@thecb/components 9.0.0-beta.6 → 9.0.0-beta.7
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 +13 -8
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +13 -8
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/form-layouts/FormInput.js +2 -2
- package/src/components/molecules/address-form/AddressForm.js +1 -1
- package/src/components/molecules/registration-form/RegistrationForm.js +5 -0
package/dist/index.cjs.js
CHANGED
|
@@ -26043,7 +26043,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26043
26043
|
themeValues: themeValues,
|
|
26044
26044
|
$customHeight: customHeight,
|
|
26045
26045
|
$extraStyles: extraStyles,
|
|
26046
|
-
"data-qa": dataQa,
|
|
26046
|
+
"data-qa": dataQa || labelTextWhenNoError,
|
|
26047
26047
|
autoComplete: autocompleteValue
|
|
26048
26048
|
}, props)) : /*#__PURE__*/React__default.createElement(InputField, _extends({
|
|
26049
26049
|
"aria-labelledby": createIdFromString(labelTextWhenNoError),
|
|
@@ -26062,7 +26062,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26062
26062
|
background: background,
|
|
26063
26063
|
$customHeight: customHeight,
|
|
26064
26064
|
$extraStyles: extraStyles,
|
|
26065
|
-
"data-qa": dataQa,
|
|
26065
|
+
"data-qa": dataQa || labelTextWhenNoError,
|
|
26066
26066
|
autoComplete: autocompleteValue
|
|
26067
26067
|
}, props))), /*#__PURE__*/React__default.createElement(Stack, {
|
|
26068
26068
|
direction: "row",
|
|
@@ -40416,7 +40416,7 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40416
40416
|
return e.key === "Enter" && handleSubmit(e);
|
|
40417
40417
|
},
|
|
40418
40418
|
autocompleteValue: "address-line1",
|
|
40419
|
-
dataQa: "Address
|
|
40419
|
+
dataQa: "Address"
|
|
40420
40420
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
40421
40421
|
labelTextWhenNoError: "Apt, Suite, Unit, Floor, etc. (Optional)",
|
|
40422
40422
|
field: fields.street2,
|
|
@@ -49736,7 +49736,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
49736
49736
|
onKeyDown: function onKeyDown(e) {
|
|
49737
49737
|
return e.key === "Enter" && handleSubmit(e);
|
|
49738
49738
|
},
|
|
49739
|
-
autocompleteValue: "given-name"
|
|
49739
|
+
autocompleteValue: "given-name",
|
|
49740
|
+
dataQa: "First name"
|
|
49740
49741
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
49741
49742
|
labelTextWhenNoError: "Last name",
|
|
49742
49743
|
errorMessages: lastNameErrorMessages,
|
|
@@ -49746,7 +49747,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
49746
49747
|
onKeyDown: function onKeyDown(e) {
|
|
49747
49748
|
return e.key === "Enter" && handleSubmit(e);
|
|
49748
49749
|
},
|
|
49749
|
-
autocompleteValue: "family-name"
|
|
49750
|
+
autocompleteValue: "family-name",
|
|
49751
|
+
dataQa: "Last name"
|
|
49750
49752
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
49751
49753
|
labelTextWhenNoError: "Email address",
|
|
49752
49754
|
errorMessages: emailErrorMessages,
|
|
@@ -49758,7 +49760,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
49758
49760
|
},
|
|
49759
49761
|
type: "email",
|
|
49760
49762
|
isEmail: true,
|
|
49761
|
-
autocompleteValue: "email"
|
|
49763
|
+
autocompleteValue: "email",
|
|
49764
|
+
dataQa: "Email address"
|
|
49762
49765
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
49763
49766
|
labelTextWhenNoError: "Password",
|
|
49764
49767
|
errorMessages: passwordErrorMessages,
|
|
@@ -49769,7 +49772,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
49769
49772
|
return e.key === "Enter" && handleSubmit(e);
|
|
49770
49773
|
},
|
|
49771
49774
|
type: "password",
|
|
49772
|
-
autocompleteValue: "new-password"
|
|
49775
|
+
autocompleteValue: "new-password",
|
|
49776
|
+
dataQa: "Password"
|
|
49773
49777
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
49774
49778
|
labelTextWhenNoError: "Confirm password",
|
|
49775
49779
|
errorMessages: confirmPasswordErrorMessages,
|
|
@@ -49780,7 +49784,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
49780
49784
|
return e.key === "Enter" && handleSubmit(e);
|
|
49781
49785
|
},
|
|
49782
49786
|
type: "password",
|
|
49783
|
-
autocompleteValue: "new-password"
|
|
49787
|
+
autocompleteValue: "new-password",
|
|
49788
|
+
dataQa: "Confirm password"
|
|
49784
49789
|
}), /*#__PURE__*/React__default.createElement(Box, {
|
|
49785
49790
|
padding: isMobile ? "0" : "0.5rem 0 0"
|
|
49786
49791
|
}, /*#__PURE__*/React__default.createElement(PasswordRequirements, {
|