From efe01e27df3047004ce60cce226c6c164e92f12c Mon Sep 17 00:00:00 2001 From: Benjamin Dehli Date: Wed, 13 Dec 2023 13:20:55 +0100 Subject: [PATCH] Build package --- dist/components/CheckBoxInput.js | 6 ++---- dist/components/CheckBoxListItem.js | 5 ++--- dist/components/DragAndDropFileInput.js | 8 ++++---- dist/components/InputField.js | 4 +--- dist/components/RadioButtonInput.js | 6 ++---- dist/components/RadioButtonListItem.js | 4 +--- dist/components/Select.js | 2 -- 7 files changed, 12 insertions(+), 23 deletions(-) diff --git a/dist/components/CheckBoxInput.js b/dist/components/CheckBoxInput.js index 541a3301..286c2fbf 100644 --- a/dist/components/CheckBoxInput.js +++ b/dist/components/CheckBoxInput.js @@ -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, @@ -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, diff --git a/dist/components/CheckBoxListItem.js b/dist/components/CheckBoxListItem.js index 6302e91f..67469448 100644 --- a/dist/components/CheckBoxListItem.js +++ b/dist/components/CheckBoxListItem.js @@ -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 }; @@ -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, diff --git a/dist/components/DragAndDropFileInput.js b/dist/components/DragAndDropFileInput.js index 6fc67c22..6db4e369 100644 --- a/dist/components/DragAndDropFileInput.js +++ b/dist/components/DragAndDropFileInput.js @@ -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; @@ -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, @@ -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]))]), @@ -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 = { diff --git a/dist/components/InputField.js b/dist/components/InputField.js index aa1e0c2a..20817762 100644 --- a/dist/components/InputField.js +++ b/dist/components/InputField.js @@ -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 }; }; @@ -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: () => { diff --git a/dist/components/RadioButtonInput.js b/dist/components/RadioButtonInput.js index 7dcf9ab2..87a144cd 100644 --- a/dist/components/RadioButtonInput.js +++ b/dist/components/RadioButtonInput.js @@ -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, @@ -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: "", diff --git a/dist/components/RadioButtonListItem.js b/dist/components/RadioButtonListItem.js index b035a3e8..1b9c16ad 100644 --- a/dist/components/RadioButtonListItem.js +++ b/dist/components/RadioButtonListItem.js @@ -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 @@ -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: "", diff --git a/dist/components/Select.js b/dist/components/Select.js index 3f85f874..87b35a35 100644 --- a/dist/components/Select.js +++ b/dist/components/Select.js @@ -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", { @@ -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 = {