@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.esm.js CHANGED
@@ -24011,6 +24011,7 @@ var Dropdown = function Dropdown(_ref8) {
24011
24011
  value: inputValue,
24012
24012
  width: "100%",
24013
24013
  dataQa: placeholder,
24014
+ "data-qa": placeholder,
24014
24015
  required: options.required
24015
24016
  }), /*#__PURE__*/React.createElement(IconWrapper, {
24016
24017
  open: isOpen,
@@ -26013,6 +26014,7 @@ var FormInput = function FormInput(_ref15) {
26013
26014
  formatter: formatter,
26014
26015
  showErrors: showErrors,
26015
26016
  dataQa: labelTextWhenNoError,
26017
+ "data-qa": labelTextWhenNoError,
26016
26018
  themeValues: themeValues,
26017
26019
  $customHeight: customHeight,
26018
26020
  $extraStyles: extraStyles,
@@ -26031,6 +26033,7 @@ var FormInput = function FormInput(_ref15) {
26031
26033
  field: field,
26032
26034
  showErrors: showErrors,
26033
26035
  dataQa: labelTextWhenNoError,
26036
+ "data-qa": labelTextWhenNoError,
26034
26037
  themeValues: themeValues,
26035
26038
  background: background,
26036
26039
  $customHeight: customHeight,
@@ -26040,7 +26043,8 @@ var FormInput = function FormInput(_ref15) {
26040
26043
  direction: "row",
26041
26044
  justify: "space-between",
26042
26045
  "aria-live": "polite",
26043
- "aria-atomic": true
26046
+ "aria-atomic": true,
26047
+ "data-qa": "Errors container"
26044
26048
  }, field.hasErrors && field.dirty || field.hasErrors && showErrors ? /*#__PURE__*/React.createElement(Text$1, {
26045
26049
  color: ERROR_COLOR,
26046
26050
  variant: "pXS",
@@ -40374,7 +40378,8 @@ var AddressForm = function AddressForm(_ref) {
40374
40378
  actions.fields.zip.set("");
40375
40379
  }
40376
40380
  },
40377
- showErrors: showErrors
40381
+ showErrors: showErrors,
40382
+ "data-qa": "Country"
40378
40383
  }), /*#__PURE__*/React.createElement(FormInput$1, {
40379
40384
  labelTextWhenNoError: "Address",
40380
40385
  errorMessages: street1ErrorMessages,
@@ -40386,7 +40391,8 @@ var AddressForm = function AddressForm(_ref) {
40386
40391
  return e.key === "Enter" && handleSubmit(e);
40387
40392
  },
40388
40393
  autocomplete: "address-line1",
40389
- "aria-label": "Address Line 1"
40394
+ "aria-label": "Address Line 1",
40395
+ "data-qa": "Address Line 1"
40390
40396
  }), /*#__PURE__*/React.createElement(FormInput$1, {
40391
40397
  labelTextWhenNoError: "Apt, Suite, Unit, Floor, etc. (Optional)",
40392
40398
  field: fields.street2,
@@ -40396,7 +40402,8 @@ var AddressForm = function AddressForm(_ref) {
40396
40402
  return e.key === "Enter" && handleSubmit(e);
40397
40403
  },
40398
40404
  autocomplete: "address-line2",
40399
- "aria-label": "Address Line 2"
40405
+ "aria-label": "Address Line 2",
40406
+ "data-qa": "Address Line 2"
40400
40407
  }), /*#__PURE__*/React.createElement(FormInput$1, {
40401
40408
  labelTextWhenNoError: "City",
40402
40409
  required: true,
@@ -40408,7 +40415,8 @@ var AddressForm = function AddressForm(_ref) {
40408
40415
  return e.key === "Enter" && handleSubmit(e);
40409
40416
  },
40410
40417
  autocomplete: "city",
40411
- "aria-label": "City"
40418
+ "aria-label": "City",
40419
+ "data-qa": "City"
40412
40420
  }), /*#__PURE__*/React.createElement(FormStateDropdown, {
40413
40421
  labelTextWhenNoError: isUS ? "State" : "State or Province",
40414
40422
  errorMessages: stateProvinceErrorMessages,
@@ -40421,7 +40429,8 @@ var AddressForm = function AddressForm(_ref) {
40421
40429
  },
40422
40430
  "aria-label": isUS ? "State" : "State or Province",
40423
40431
  required: true,
40424
- autocomplete: "administrative-area"
40432
+ autocomplete: "administrative-area",
40433
+ "data-qa": "State or Province"
40425
40434
  }), /*#__PURE__*/React.createElement(FormInput$1, {
40426
40435
  isNum: isUS,
40427
40436
  formatter: isUS ? zipFormat : null,
@@ -40435,12 +40444,14 @@ var AddressForm = function AddressForm(_ref) {
40435
40444
  },
40436
40445
  "aria-label": "Zip code",
40437
40446
  autocomplete: "postal-code",
40438
- required: true
40447
+ required: true,
40448
+ "data-qa": "Zip code"
40439
40449
  }), showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
40440
40450
  name: "address checkbox",
40441
40451
  title: "Save address to wallet",
40442
40452
  checked: walletCheckboxMarked,
40443
- onChange: saveToWallet
40453
+ onChange: saveToWallet,
40454
+ "data-qa": "Save address to wallet"
40444
40455
  })));
40445
40456
  };
40446
40457
 
@@ -41364,7 +41375,8 @@ var EmailForm = function EmailForm(_ref) {
41364
41375
  return e.key === "Enter" && handleSubmit(e);
41365
41376
  },
41366
41377
  isEmail: true,
41367
- autoComplete: "email"
41378
+ autoComplete: "email",
41379
+ "data-qa": "Email address"
41368
41380
  }), showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
41369
41381
  name: "email checkbox",
41370
41382
  title: "Save email address to wallet",
@@ -49088,7 +49100,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
49088
49100
  actions.fields.zipCode.set("");
49089
49101
  }
49090
49102
  },
49091
- showErrors: showErrors
49103
+ showErrors: showErrors,
49104
+ "data-qa": "Country"
49092
49105
  }), /*#__PURE__*/React.createElement(FormInput$1, {
49093
49106
  labelTextWhenNoError: "Name on card",
49094
49107
  "data-qa": "Name on card",
@@ -49378,7 +49391,8 @@ var PhoneForm = function PhoneForm(_ref) {
49378
49391
  return e.key === "Enter" && handleSubmit(e);
49379
49392
  },
49380
49393
  autocomplete: "tel",
49381
- isPhone: true
49394
+ isPhone: true,
49395
+ "data-qa": "Phone number"
49382
49396
  }), showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
49383
49397
  name: "phone checkbox",
49384
49398
  title: "Save phone number to wallet",