@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.esm.js
CHANGED
|
@@ -22154,6 +22154,7 @@ var Checkbox = function Checkbox(_ref4) {
|
|
|
22154
22154
|
error: error,
|
|
22155
22155
|
disabled: disabled,
|
|
22156
22156
|
checked: checked,
|
|
22157
|
+
"aria-checked": checked,
|
|
22157
22158
|
focused: focused,
|
|
22158
22159
|
defaultStyles: themeValues.defaultStyles,
|
|
22159
22160
|
checkedStyles: themeValues.checkedStyles,
|
|
@@ -24219,7 +24220,7 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
24219
24220
|
id: createIdFromString(labelTextWhenNoError)
|
|
24220
24221
|
}, labelTextWhenNoError))), /*#__PURE__*/React.createElement(Dropdown$1, {
|
|
24221
24222
|
ariaLabelledby: createIdFromString(labelTextWhenNoError),
|
|
24222
|
-
|
|
24223
|
+
ariaDescribedby: createIdFromString(labelTextWhenNoError, "error message"),
|
|
24223
24224
|
maxHeight: dropdownMaxHeight,
|
|
24224
24225
|
hasTitles: hasTitles,
|
|
24225
24226
|
placeholder: options[0] ? options[0].text : "",
|
|
@@ -26035,7 +26036,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26035
26036
|
themeValues: themeValues,
|
|
26036
26037
|
$customHeight: customHeight,
|
|
26037
26038
|
$extraStyles: extraStyles,
|
|
26038
|
-
"data-qa": dataQa,
|
|
26039
|
+
"data-qa": dataQa || labelTextWhenNoError,
|
|
26039
26040
|
autoComplete: autocompleteValue
|
|
26040
26041
|
}, props)) : /*#__PURE__*/React.createElement(InputField, _extends({
|
|
26041
26042
|
"aria-labelledby": createIdFromString(labelTextWhenNoError),
|
|
@@ -26054,7 +26055,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26054
26055
|
background: background,
|
|
26055
26056
|
$customHeight: customHeight,
|
|
26056
26057
|
$extraStyles: extraStyles,
|
|
26057
|
-
"data-qa": dataQa,
|
|
26058
|
+
"data-qa": dataQa || labelTextWhenNoError,
|
|
26058
26059
|
autoComplete: autocompleteValue
|
|
26059
26060
|
}, props))), /*#__PURE__*/React.createElement(Stack, {
|
|
26060
26061
|
direction: "row",
|
|
@@ -40408,7 +40409,7 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40408
40409
|
return e.key === "Enter" && handleSubmit(e);
|
|
40409
40410
|
},
|
|
40410
40411
|
autocompleteValue: "address-line1",
|
|
40411
|
-
dataQa: "Address
|
|
40412
|
+
dataQa: "Address"
|
|
40412
40413
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
40413
40414
|
labelTextWhenNoError: "Apt, Suite, Unit, Floor, etc. (Optional)",
|
|
40414
40415
|
field: fields.street2,
|
|
@@ -46659,7 +46660,7 @@ var Modal$1 = function Modal(_ref) {
|
|
|
46659
46660
|
buttonExtraStyles = _ref.buttonExtraStyles,
|
|
46660
46661
|
children = _ref.children,
|
|
46661
46662
|
_ref$dataQa = _ref.dataQa,
|
|
46662
|
-
dataQa = _ref$dataQa === void 0 ?
|
|
46663
|
+
dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa;
|
|
46663
46664
|
|
|
46664
46665
|
var _useContext = useContext(ThemeContext),
|
|
46665
46666
|
isMobile = _useContext.isMobile;
|
|
@@ -49728,7 +49729,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
49728
49729
|
onKeyDown: function onKeyDown(e) {
|
|
49729
49730
|
return e.key === "Enter" && handleSubmit(e);
|
|
49730
49731
|
},
|
|
49731
|
-
autocompleteValue: "given-name"
|
|
49732
|
+
autocompleteValue: "given-name",
|
|
49733
|
+
dataQa: "First name"
|
|
49732
49734
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
49733
49735
|
labelTextWhenNoError: "Last name",
|
|
49734
49736
|
errorMessages: lastNameErrorMessages,
|
|
@@ -49738,7 +49740,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
49738
49740
|
onKeyDown: function onKeyDown(e) {
|
|
49739
49741
|
return e.key === "Enter" && handleSubmit(e);
|
|
49740
49742
|
},
|
|
49741
|
-
autocompleteValue: "family-name"
|
|
49743
|
+
autocompleteValue: "family-name",
|
|
49744
|
+
dataQa: "Last name"
|
|
49742
49745
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
49743
49746
|
labelTextWhenNoError: "Email address",
|
|
49744
49747
|
errorMessages: emailErrorMessages,
|
|
@@ -49750,7 +49753,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
49750
49753
|
},
|
|
49751
49754
|
type: "email",
|
|
49752
49755
|
isEmail: true,
|
|
49753
|
-
autocompleteValue: "email"
|
|
49756
|
+
autocompleteValue: "email",
|
|
49757
|
+
dataQa: "Email address"
|
|
49754
49758
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
49755
49759
|
labelTextWhenNoError: "Password",
|
|
49756
49760
|
errorMessages: passwordErrorMessages,
|
|
@@ -49761,7 +49765,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
49761
49765
|
return e.key === "Enter" && handleSubmit(e);
|
|
49762
49766
|
},
|
|
49763
49767
|
type: "password",
|
|
49764
|
-
autocompleteValue: "new-password"
|
|
49768
|
+
autocompleteValue: "new-password",
|
|
49769
|
+
dataQa: "Password"
|
|
49765
49770
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
49766
49771
|
labelTextWhenNoError: "Confirm password",
|
|
49767
49772
|
errorMessages: confirmPasswordErrorMessages,
|
|
@@ -49772,7 +49777,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
49772
49777
|
return e.key === "Enter" && handleSubmit(e);
|
|
49773
49778
|
},
|
|
49774
49779
|
type: "password",
|
|
49775
|
-
autocompleteValue: "new-password"
|
|
49780
|
+
autocompleteValue: "new-password",
|
|
49781
|
+
dataQa: "Confirm password"
|
|
49776
49782
|
}), /*#__PURE__*/React.createElement(Box, {
|
|
49777
49783
|
padding: isMobile ? "0" : "0.5rem 0 0"
|
|
49778
49784
|
}, /*#__PURE__*/React.createElement(PasswordRequirements, {
|