@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.cjs.js
CHANGED
|
@@ -27159,14 +27159,14 @@ var FormInput = function FormInput(_ref15) {
|
|
|
27159
27159
|
autoComplete: autocompleteValue,
|
|
27160
27160
|
required: isRequired
|
|
27161
27161
|
// Additional handler to detect autofilled values
|
|
27162
|
-
|
|
27163
|
-
onFocus:
|
|
27164
|
-
|
|
27165
|
-
|
|
27166
|
-
|
|
27167
|
-
|
|
27168
|
-
|
|
27169
|
-
}
|
|
27162
|
+
// {...(autocompleteValue && {
|
|
27163
|
+
// onFocus: e => {
|
|
27164
|
+
// if (!isFocused) {
|
|
27165
|
+
// setValue(e.target?.value);
|
|
27166
|
+
// setIsFocused(true);
|
|
27167
|
+
// }
|
|
27168
|
+
// }
|
|
27169
|
+
// })}
|
|
27170
27170
|
}, props)) : /*#__PURE__*/React__default.createElement(InputField, _extends({
|
|
27171
27171
|
"aria-labelledby": createIdFromString(labelTextWhenNoError),
|
|
27172
27172
|
"aria-describedby": createIdFromString(labelTextWhenNoError, "error message"),
|
|
@@ -40880,9 +40880,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40880
40880
|
dataQa: "State or Province",
|
|
40881
40881
|
isRequired: true
|
|
40882
40882
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
40883
|
-
isNum: isUS
|
|
40884
|
-
|
|
40885
|
-
,
|
|
40883
|
+
isNum: isUS,
|
|
40884
|
+
formatter: isUS ? zipFormat : null,
|
|
40886
40885
|
labelTextWhenNoError: "Zip code",
|
|
40887
40886
|
errorMessages: zipErrorMessages,
|
|
40888
40887
|
field: fields.zip,
|
|
@@ -49025,9 +49024,8 @@ var PhoneForm = function PhoneForm(_ref) {
|
|
|
49025
49024
|
errorMessages: phoneErrorMessage,
|
|
49026
49025
|
field: fields.phone,
|
|
49027
49026
|
fieldActions: actions.fields.phone,
|
|
49028
|
-
showErrors: showErrors
|
|
49029
|
-
|
|
49030
|
-
,
|
|
49027
|
+
showErrors: showErrors,
|
|
49028
|
+
formatter: createFormat(phoneFormats, formatDelimiter),
|
|
49031
49029
|
onKeyUp: function onKeyUp(e) {
|
|
49032
49030
|
return e.key === "Enter" && handleSubmit(e);
|
|
49033
49031
|
},
|