@thecb/components 10.9.0-beta.4 → 10.9.0-beta.6
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 +12 -14
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +12 -14
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/form-layouts/FormInput.js +8 -8
- package/src/components/molecules/address-form/AddressForm.js +1 -1
- package/src/components/molecules/phone-form/PhoneForm.js +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -27151,14 +27151,14 @@ var FormInput = function FormInput(_ref15) {
|
|
|
27151
27151
|
autoComplete: autocompleteValue,
|
|
27152
27152
|
required: isRequired
|
|
27153
27153
|
// Additional handler to detect autofilled values
|
|
27154
|
-
|
|
27155
|
-
onFocus:
|
|
27156
|
-
|
|
27157
|
-
|
|
27158
|
-
|
|
27159
|
-
|
|
27160
|
-
|
|
27161
|
-
}
|
|
27154
|
+
// {...(autocompleteValue && {
|
|
27155
|
+
// onFocus: e => {
|
|
27156
|
+
// if (!isFocused) {
|
|
27157
|
+
// setValue(e.target?.value);
|
|
27158
|
+
// setIsFocused(true);
|
|
27159
|
+
// }
|
|
27160
|
+
// }
|
|
27161
|
+
// })}
|
|
27162
27162
|
}, props)) : /*#__PURE__*/React.createElement(InputField, _extends({
|
|
27163
27163
|
"aria-labelledby": createIdFromString(labelTextWhenNoError),
|
|
27164
27164
|
"aria-describedby": createIdFromString(labelTextWhenNoError, "error message"),
|
|
@@ -40872,9 +40872,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40872
40872
|
dataQa: "State or Province",
|
|
40873
40873
|
isRequired: true
|
|
40874
40874
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
40875
|
-
isNum: isUS
|
|
40876
|
-
|
|
40877
|
-
,
|
|
40875
|
+
isNum: isUS,
|
|
40876
|
+
formatter: isUS ? zipFormat : null,
|
|
40878
40877
|
labelTextWhenNoError: "Zip code",
|
|
40879
40878
|
errorMessages: zipErrorMessages,
|
|
40880
40879
|
field: fields.zip,
|
|
@@ -49017,9 +49016,8 @@ var PhoneForm = function PhoneForm(_ref) {
|
|
|
49017
49016
|
errorMessages: phoneErrorMessage,
|
|
49018
49017
|
field: fields.phone,
|
|
49019
49018
|
fieldActions: actions.fields.phone,
|
|
49020
|
-
showErrors: showErrors
|
|
49021
|
-
|
|
49022
|
-
,
|
|
49019
|
+
showErrors: showErrors,
|
|
49020
|
+
formatter: createFormat(phoneFormats, formatDelimiter),
|
|
49023
49021
|
onKeyUp: function onKeyUp(e) {
|
|
49024
49022
|
return e.key === "Enter" && handleSubmit(e);
|
|
49025
49023
|
},
|