@thecb/components 8.4.11-beta.21 → 8.4.11-beta.23

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 CHANGED
@@ -24019,6 +24019,7 @@ var Dropdown = function Dropdown(_ref8) {
24019
24019
  value: inputValue,
24020
24020
  width: "100%",
24021
24021
  dataQa: placeholder,
24022
+ "data-qa": placeholder,
24022
24023
  required: options.required
24023
24024
  }), /*#__PURE__*/React__default.createElement(IconWrapper, {
24024
24025
  open: isOpen,
@@ -26021,6 +26022,7 @@ var FormInput = function FormInput(_ref15) {
26021
26022
  formatter: formatter,
26022
26023
  showErrors: showErrors,
26023
26024
  dataQa: labelTextWhenNoError,
26025
+ "data-qa": labelTextWhenNoError,
26024
26026
  themeValues: themeValues,
26025
26027
  $customHeight: customHeight,
26026
26028
  $extraStyles: extraStyles,
@@ -26039,6 +26041,7 @@ var FormInput = function FormInput(_ref15) {
26039
26041
  field: field,
26040
26042
  showErrors: showErrors,
26041
26043
  dataQa: labelTextWhenNoError,
26044
+ "data-qa": labelTextWhenNoError,
26042
26045
  themeValues: themeValues,
26043
26046
  background: background,
26044
26047
  $customHeight: customHeight,
@@ -26048,7 +26051,8 @@ var FormInput = function FormInput(_ref15) {
26048
26051
  direction: "row",
26049
26052
  justify: "space-between",
26050
26053
  "aria-live": "polite",
26051
- "aria-atomic": true
26054
+ "aria-atomic": true,
26055
+ "data-qa": "Errors container"
26052
26056
  }, field.hasErrors && field.dirty || field.hasErrors && showErrors ? /*#__PURE__*/React__default.createElement(Text$1, {
26053
26057
  color: ERROR_COLOR,
26054
26058
  variant: "pXS",
@@ -40382,7 +40386,8 @@ var AddressForm = function AddressForm(_ref) {
40382
40386
  actions.fields.zip.set("");
40383
40387
  }
40384
40388
  },
40385
- showErrors: showErrors
40389
+ showErrors: showErrors,
40390
+ "data-qa": "Country"
40386
40391
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
40387
40392
  labelTextWhenNoError: "Address",
40388
40393
  errorMessages: street1ErrorMessages,
@@ -40394,7 +40399,8 @@ var AddressForm = function AddressForm(_ref) {
40394
40399
  return e.key === "Enter" && handleSubmit(e);
40395
40400
  },
40396
40401
  autocomplete: "address-line1",
40397
- "aria-label": "Address Line 1"
40402
+ "aria-label": "Address Line 1",
40403
+ "data-qa": "Address Line 1"
40398
40404
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
40399
40405
  labelTextWhenNoError: "Apt, Suite, Unit, Floor, etc. (Optional)",
40400
40406
  field: fields.street2,
@@ -40404,7 +40410,8 @@ var AddressForm = function AddressForm(_ref) {
40404
40410
  return e.key === "Enter" && handleSubmit(e);
40405
40411
  },
40406
40412
  autocomplete: "address-line2",
40407
- "aria-label": "Address Line 2"
40413
+ "aria-label": "Address Line 2",
40414
+ "data-qa": "Address Line 2"
40408
40415
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
40409
40416
  labelTextWhenNoError: "City",
40410
40417
  required: true,
@@ -40416,7 +40423,8 @@ var AddressForm = function AddressForm(_ref) {
40416
40423
  return e.key === "Enter" && handleSubmit(e);
40417
40424
  },
40418
40425
  autocomplete: "city",
40419
- "aria-label": "City"
40426
+ "aria-label": "City",
40427
+ "data-qa": "City"
40420
40428
  }), /*#__PURE__*/React__default.createElement(FormStateDropdown, {
40421
40429
  labelTextWhenNoError: isUS ? "State" : "State or Province",
40422
40430
  errorMessages: stateProvinceErrorMessages,
@@ -40429,7 +40437,8 @@ var AddressForm = function AddressForm(_ref) {
40429
40437
  },
40430
40438
  "aria-label": isUS ? "State" : "State or Province",
40431
40439
  required: true,
40432
- autocomplete: "administrative-area"
40440
+ autocomplete: "administrative-area",
40441
+ "data-qa": "State or Province"
40433
40442
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
40434
40443
  isNum: isUS,
40435
40444
  formatter: isUS ? zipFormat : null,
@@ -40443,12 +40452,14 @@ var AddressForm = function AddressForm(_ref) {
40443
40452
  },
40444
40453
  "aria-label": "Zip code",
40445
40454
  autocomplete: "postal-code",
40446
- required: true
40455
+ required: true,
40456
+ "data-qa": "Zip code"
40447
40457
  }), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
40448
40458
  name: "address checkbox",
40449
40459
  title: "Save address to wallet",
40450
40460
  checked: walletCheckboxMarked,
40451
- onChange: saveToWallet
40461
+ onChange: saveToWallet,
40462
+ "data-qa": "Save address to wallet"
40452
40463
  })));
40453
40464
  };
40454
40465
 
@@ -41372,7 +41383,8 @@ var EmailForm = function EmailForm(_ref) {
41372
41383
  return e.key === "Enter" && handleSubmit(e);
41373
41384
  },
41374
41385
  isEmail: true,
41375
- autoComplete: "email"
41386
+ autoComplete: "email",
41387
+ "data-qa": "Email address"
41376
41388
  }), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
41377
41389
  name: "email checkbox",
41378
41390
  title: "Save email address to wallet",
@@ -49096,7 +49108,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
49096
49108
  actions.fields.zipCode.set("");
49097
49109
  }
49098
49110
  },
49099
- showErrors: showErrors
49111
+ showErrors: showErrors,
49112
+ "data-qa": "Country"
49100
49113
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
49101
49114
  labelTextWhenNoError: "Name on card",
49102
49115
  "data-qa": "Name on card",
@@ -49386,7 +49399,8 @@ var PhoneForm = function PhoneForm(_ref) {
49386
49399
  return e.key === "Enter" && handleSubmit(e);
49387
49400
  },
49388
49401
  autocomplete: "tel",
49389
- isPhone: true
49402
+ isPhone: true,
49403
+ "data-qa": "Phone number"
49390
49404
  }), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
49391
49405
  name: "phone checkbox",
49392
49406
  title: "Save phone number to wallet",