Skip to content

Commit

Permalink
Build package
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamindehli committed Dec 13, 2023
1 parent 17ed2b9 commit efe01e2
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 23 deletions.
6 changes: 2 additions & 4 deletions dist/components/CheckBoxInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ const CheckBoxInput = props => {
tabIndex: props.tabIndex || null,
"aria-controls": props["aria-controls"],
"aria-invalid": props.hasErrors ? "true" : null,
"aria-describedby": props["aria-describedby"],
"data-transaction-name": props["data-transaction-name"]
"aria-describedby": props["aria-describedby"]
};
return _react.default.createElement("label", labelProps, !props.contentOnly ? _react.default.createElement(_react.default.Fragment, null, _react.default.createElement(_CheckBoxIcon.default, iconProps), _react.default.createElement("input", inputProps)) : _react.default.createElement(_CheckBoxIcon.default, iconProps), _react.default.createElement("span", null, props.children, props.required && _react.default.createElement("img", {
src: _asterisk.default,
Expand All @@ -56,8 +55,7 @@ CheckBoxInput.propTypes = {
theme: _propTypes.default.object,
checkmarkCharacter: _propTypes.default.string,
"aria-controls": _propTypes.default.string,
"aria-describedby": _propTypes.default.string,
"data-transaction-name": _propTypes.default.string
"aria-describedby": _propTypes.default.string
};
CheckBoxInput.defaultProps = {
checked: false,
Expand Down
5 changes: 2 additions & 3 deletions dist/components/CheckBoxListItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ const CheckBoxListItem = props => {
hasErrors: props.hasErrors,
"aria-controls": props["aria-controls"],
"aria-describedby": props["aria-describedby"],
"data-transaction-name": props["data-transaction-name"],
id: props.id,
name: props.name,
theme: props.theme,
checkmarkCharacter: props.checkmarkCharacter
};
Expand All @@ -46,8 +46,7 @@ CheckBoxListItem.propTypes = {
hasErrors: _propTypes.default.bool,
checkmarkCharacter: _propTypes.default.string,
"aria-controls": _propTypes.default.string,
"aria-describedby": _propTypes.default.string,
"data-transaction-name": _propTypes.default.string
"aria-describedby": _propTypes.default.string
};
CheckBoxListItem.defaultProps = {
checked: false,
Expand Down
8 changes: 4 additions & 4 deletions dist/components/DragAndDropFileInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const DragAndDropFileInput = props => {
const inputElementProps = {
"aria-describedby": props.hasErrors && !!((_props$errorMessage = props.errorMessage) !== null && _props$errorMessage !== void 0 && _props$errorMessage.length) ? getErrorElementId() : !!((_props$ariaDescribed = props["aria-describedby"]) !== null && _props$ariaDescribed !== void 0 && _props$ariaDescribed.length) ? props["aria-describedby"] : null,
"aria-invalid": props.hasErrors ? "true" : null,
"data-transaction-name": props["data-transaction-name-for-input"],
name: props.name,
required: props.required
};
let buttonContent;
Expand Down Expand Up @@ -95,7 +95,7 @@ const DragAndDropFileInput = props => {
onClick: () => handleAddButtonOnClick(),
content: buttonContent,
hasErrors: props.hasErrors,
"data-transaction-name": props["data-transaction-name-for-button"]
"data-transaction-name": props["data-transaction-name"]
})) : null) : null, props.contentOnly ? _react.default.createElement("span", null, renderValueAsText(props.selectedFileName, props.defaultContent)) : "", _react.default.createElement(_ErrorMessage.default, {
id: getErrorElementId(),
content: props.errorMessage,
Expand All @@ -104,6 +104,7 @@ const DragAndDropFileInput = props => {
};
DragAndDropFileInput.propTypes = {
id: _propTypes.default.string.isRequired,
name: _propTypes.default.string,
onSelectChange: _propTypes.default.func.isRequired,
onDragAndDropChange: _propTypes.default.func.isRequired,
label: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.object]))]),
Expand All @@ -116,8 +117,7 @@ DragAndDropFileInput.propTypes = {
hasErrors: _propTypes.default.bool,
errorMessage: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.object]))]),
required: _propTypes.default.bool,
"data-transaction-name-for-button": _propTypes.default.string,
"data-transaction-name-for-input": _propTypes.default.string,
"data-transaction-name": _propTypes.default.string,
theme: _propTypes.default.object
};
DragAndDropFileInput.defaultProps = {
Expand Down
4 changes: 1 addition & 3 deletions dist/components/InputField.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ const InputField = props => {
"aria-describedby": props.hasErrors && !!((_props$errorMessage = props.errorMessage) !== null && _props$errorMessage !== void 0 && _props$errorMessage.length) ? getErrorElementId() : !!((_props$ariaDescribed = props["aria-describedby"]) !== null && _props$ariaDescribed !== void 0 && _props$ariaDescribed.length) ? props["aria-describedby"] : null,
"aria-invalid": props.hasErrors ? "true" : null,
"aria-autocomplete": props["aria-autocomplete"] || null,
"data-transaction-name": props["data-transaction-name"] || null,
style: styleRules
};
};
Expand Down Expand Up @@ -120,8 +119,7 @@ InputField.propTypes = {
"aria-autocomplete": _propTypes.default.oneOf(["none", "inline", "list", "both"]),
hasErrors: _propTypes.default.bool,
errorMessage: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.object]))]),
theme: _propTypes.default.object,
"data-transaction-name": _propTypes.default.string
theme: _propTypes.default.object
};
InputField.defaultProps = {
onChange: () => {
Expand Down
6 changes: 2 additions & 4 deletions dist/components/RadioButtonInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ const RadioButtonInput = props => {
tabIndex: props.tabIndex || null,
"aria-controls": props["aria-controls"],
"aria-invalid": props.hasErrors ? "true" : null,
"aria-describedby": props["aria-describedby"],
"data-transaction-name": props["data-transaction-name"]
"aria-describedby": props["aria-describedby"]
};
return _react.default.createElement("label", labelProps, !props.contentOnly ? _react.default.createElement(_react.default.Fragment, null, _react.default.createElement(_RadioButtonIcon.default, iconProps), _react.default.createElement("input", inputProps)) : null, _react.default.createElement("span", null, props.children, props.required && _react.default.createElement("img", {
src: _asterisk.default,
Expand All @@ -55,8 +54,7 @@ RadioButtonInput.propTypes = {
theme: _propTypes.default.object,
inputValue: _propTypes.default.string.isRequired,
"aria-controls": _propTypes.default.string,
"aria-describedby": _propTypes.default.string,
"data-transaction-name": _propTypes.default.string
"aria-describedby": _propTypes.default.string
};
RadioButtonInput.defaultProps = {
name: "",
Expand Down
4 changes: 1 addition & 3 deletions dist/components/RadioButtonListItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ const RadioButtonListItem = props => {
hasErrors: props.hasErrors,
"aria-controls": props["aria-controls"],
"aria-describedby": props["aria-describedby"],
"data-transaction-name": props["data-transaction-name"],
id: props.id,
name: props.name,
theme: props.theme
Expand All @@ -47,8 +46,7 @@ RadioButtonListItem.propTypes = {
theme: _propTypes.default.object,
hasErrors: _propTypes.default.bool,
"aria-controls": _propTypes.default.string,
"aria-describedby": _propTypes.default.string,
"data-transaction-name": _propTypes.default.string
"aria-describedby": _propTypes.default.string
};
RadioButtonListItem.defaultProps = {
name: "",
Expand Down
2 changes: 0 additions & 2 deletions dist/components/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ const Select = props => {
className,
"aria-describedby": props.hasErrors && !!((_props$errorMessage = props.errorMessage) !== null && _props$errorMessage !== void 0 && _props$errorMessage.length) ? getErrorElementId() : !!((_props$ariaDescribed = props["aria-describedby"]) !== null && _props$ariaDescribed !== void 0 && _props$ariaDescribed.length) ? props["aria-describedby"] : null,
"aria-invalid": props.hasErrors ? "true" : null,
"data-transaction-name": props["data-transaction-name"],
style: styleRules
};
return _react.default.createElement("div", {
Expand Down Expand Up @@ -219,7 +218,6 @@ Select.propTypes = {
"aria-describedby": _propTypes.default.string,
hasErrors: _propTypes.default.bool,
errorMessage: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.object]))]),
"data-transaction-name": _propTypes.default.string,
theme: _propTypes.default.object
};
Select.defaultProps = {
Expand Down

0 comments on commit efe01e2

Please sign in to comment.