@thecb/components 9.0.0-beta.6 → 9.0.0-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +16 -10
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +16 -10
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/checkbox/Checkbox.js +1 -0
- package/src/components/atoms/form-layouts/FormInput.js +2 -2
- package/src/components/atoms/form-select/FormSelect.js +1 -1
- package/src/components/molecules/address-form/AddressForm.js +1 -1
- package/src/components/molecules/modal/Modal.js +1 -1
- package/src/components/molecules/registration-form/RegistrationForm.js +5 -0
- package/src/components/atoms/dropdown/index.d.ts +0 -32
package/dist/index.cjs.js
CHANGED
|
@@ -22162,6 +22162,7 @@ var Checkbox = function Checkbox(_ref4) {
|
|
|
22162
22162
|
error: error,
|
|
22163
22163
|
disabled: disabled,
|
|
22164
22164
|
checked: checked,
|
|
22165
|
+
"aria-checked": checked,
|
|
22165
22166
|
focused: focused,
|
|
22166
22167
|
defaultStyles: themeValues.defaultStyles,
|
|
22167
22168
|
checkedStyles: themeValues.checkedStyles,
|
|
@@ -24227,7 +24228,7 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
24227
24228
|
id: createIdFromString(labelTextWhenNoError)
|
|
24228
24229
|
}, labelTextWhenNoError))), /*#__PURE__*/React__default.createElement(Dropdown$1, {
|
|
24229
24230
|
ariaLabelledby: createIdFromString(labelTextWhenNoError),
|
|
24230
|
-
|
|
24231
|
+
ariaDescribedby: createIdFromString(labelTextWhenNoError, "error message"),
|
|
24231
24232
|
maxHeight: dropdownMaxHeight,
|
|
24232
24233
|
hasTitles: hasTitles,
|
|
24233
24234
|
placeholder: options[0] ? options[0].text : "",
|
|
@@ -26043,7 +26044,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26043
26044
|
themeValues: themeValues,
|
|
26044
26045
|
$customHeight: customHeight,
|
|
26045
26046
|
$extraStyles: extraStyles,
|
|
26046
|
-
"data-qa": dataQa,
|
|
26047
|
+
"data-qa": dataQa || labelTextWhenNoError,
|
|
26047
26048
|
autoComplete: autocompleteValue
|
|
26048
26049
|
}, props)) : /*#__PURE__*/React__default.createElement(InputField, _extends({
|
|
26049
26050
|
"aria-labelledby": createIdFromString(labelTextWhenNoError),
|
|
@@ -26062,7 +26063,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26062
26063
|
background: background,
|
|
26063
26064
|
$customHeight: customHeight,
|
|
26064
26065
|
$extraStyles: extraStyles,
|
|
26065
|
-
"data-qa": dataQa,
|
|
26066
|
+
"data-qa": dataQa || labelTextWhenNoError,
|
|
26066
26067
|
autoComplete: autocompleteValue
|
|
26067
26068
|
}, props))), /*#__PURE__*/React__default.createElement(Stack, {
|
|
26068
26069
|
direction: "row",
|
|
@@ -40416,7 +40417,7 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40416
40417
|
return e.key === "Enter" && handleSubmit(e);
|
|
40417
40418
|
},
|
|
40418
40419
|
autocompleteValue: "address-line1",
|
|
40419
|
-
dataQa: "Address
|
|
40420
|
+
dataQa: "Address"
|
|
40420
40421
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
40421
40422
|
labelTextWhenNoError: "Apt, Suite, Unit, Floor, etc. (Optional)",
|
|
40422
40423
|
field: fields.street2,
|
|
@@ -46667,7 +46668,7 @@ var Modal$1 = function Modal(_ref) {
|
|
|
46667
46668
|
buttonExtraStyles = _ref.buttonExtraStyles,
|
|
46668
46669
|
children = _ref.children,
|
|
46669
46670
|
_ref$dataQa = _ref.dataQa,
|
|
46670
|
-
dataQa = _ref$dataQa === void 0 ?
|
|
46671
|
+
dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa;
|
|
46671
46672
|
|
|
46672
46673
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
46673
46674
|
isMobile = _useContext.isMobile;
|
|
@@ -49736,7 +49737,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
49736
49737
|
onKeyDown: function onKeyDown(e) {
|
|
49737
49738
|
return e.key === "Enter" && handleSubmit(e);
|
|
49738
49739
|
},
|
|
49739
|
-
autocompleteValue: "given-name"
|
|
49740
|
+
autocompleteValue: "given-name",
|
|
49741
|
+
dataQa: "First name"
|
|
49740
49742
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
49741
49743
|
labelTextWhenNoError: "Last name",
|
|
49742
49744
|
errorMessages: lastNameErrorMessages,
|
|
@@ -49746,7 +49748,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
49746
49748
|
onKeyDown: function onKeyDown(e) {
|
|
49747
49749
|
return e.key === "Enter" && handleSubmit(e);
|
|
49748
49750
|
},
|
|
49749
|
-
autocompleteValue: "family-name"
|
|
49751
|
+
autocompleteValue: "family-name",
|
|
49752
|
+
dataQa: "Last name"
|
|
49750
49753
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
49751
49754
|
labelTextWhenNoError: "Email address",
|
|
49752
49755
|
errorMessages: emailErrorMessages,
|
|
@@ -49758,7 +49761,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
49758
49761
|
},
|
|
49759
49762
|
type: "email",
|
|
49760
49763
|
isEmail: true,
|
|
49761
|
-
autocompleteValue: "email"
|
|
49764
|
+
autocompleteValue: "email",
|
|
49765
|
+
dataQa: "Email address"
|
|
49762
49766
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
49763
49767
|
labelTextWhenNoError: "Password",
|
|
49764
49768
|
errorMessages: passwordErrorMessages,
|
|
@@ -49769,7 +49773,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
49769
49773
|
return e.key === "Enter" && handleSubmit(e);
|
|
49770
49774
|
},
|
|
49771
49775
|
type: "password",
|
|
49772
|
-
autocompleteValue: "new-password"
|
|
49776
|
+
autocompleteValue: "new-password",
|
|
49777
|
+
dataQa: "Password"
|
|
49773
49778
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
49774
49779
|
labelTextWhenNoError: "Confirm password",
|
|
49775
49780
|
errorMessages: confirmPasswordErrorMessages,
|
|
@@ -49780,7 +49785,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
49780
49785
|
return e.key === "Enter" && handleSubmit(e);
|
|
49781
49786
|
},
|
|
49782
49787
|
type: "password",
|
|
49783
|
-
autocompleteValue: "new-password"
|
|
49788
|
+
autocompleteValue: "new-password",
|
|
49789
|
+
dataQa: "Confirm password"
|
|
49784
49790
|
}), /*#__PURE__*/React__default.createElement(Box, {
|
|
49785
49791
|
padding: isMobile ? "0" : "0.5rem 0 0"
|
|
49786
49792
|
}, /*#__PURE__*/React__default.createElement(PasswordRequirements, {
|