@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "10.9.0-beta.4",
3
+ "version": "10.9.0-beta.6",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -229,14 +229,14 @@ const FormInput = ({
229
229
  autoComplete={autocompleteValue}
230
230
  required={isRequired}
231
231
  // Additional handler to detect autofilled values
232
- {...(autocompleteValue && {
233
- onFocus: e => {
234
- if (!isFocused) {
235
- setValue(e.target?.value);
236
- setIsFocused(true);
237
- }
238
- }
239
- })}
232
+ // {...(autocompleteValue && {
233
+ // onFocus: e => {
234
+ // if (!isFocused) {
235
+ // setValue(e.target?.value);
236
+ // setIsFocused(true);
237
+ // }
238
+ // }
239
+ // })}
240
240
  {...props}
241
241
  />
242
242
  ) : (
@@ -117,7 +117,7 @@ const AddressForm = ({
117
117
  />
118
118
  <FormInput
119
119
  isNum={isUS}
120
- // formatter={isUS ? zipFormat : null}
120
+ formatter={isUS ? zipFormat : null}
121
121
  labelTextWhenNoError="Zip code"
122
122
  errorMessages={zipErrorMessages}
123
123
  field={fields.zip}
@@ -39,7 +39,7 @@ const PhoneForm = ({
39
39
  field={fields.phone}
40
40
  fieldActions={actions.fields.phone}
41
41
  showErrors={showErrors}
42
- // formatter={createFormat(phoneFormats, formatDelimiter)}
42
+ formatter={createFormat(phoneFormats, formatDelimiter)}
43
43
  onKeyUp={e => e.key === "Enter" && handleSubmit(e)}
44
44
  autocompleteValue="tel-national"
45
45
  dataQa="Phone number"