@thecb/components 9.2.1-beta.0 → 9.2.2-beta.0

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
@@ -22126,9 +22126,7 @@ var Checkbox = function Checkbox(_ref4) {
22126
22126
  extraStyles = _ref4.extraStyles,
22127
22127
  textExtraStyles = _ref4.textExtraStyles,
22128
22128
  _ref4$dataQa = _ref4.dataQa,
22129
- dataQa = _ref4$dataQa === void 0 ? null : _ref4$dataQa,
22130
- _ref4$isRequired = _ref4.isRequired,
22131
- isRequired = _ref4$isRequired === void 0 ? false : _ref4$isRequired;
22129
+ dataQa = _ref4$dataQa === void 0 ? null : _ref4$dataQa;
22132
22130
 
22133
22131
  var _useState = useState(false),
22134
22132
  _useState2 = _slicedToArray(_useState, 2),
@@ -22182,8 +22180,7 @@ var Checkbox = function Checkbox(_ref4) {
22182
22180
  errorStyles: themeValues.errorStyles,
22183
22181
  disabledStyles: themeValues.disabledStyles,
22184
22182
  disabledCheckedStyles: themeValues.disabledCheckedStyles,
22185
- focusedStyles: themeValues.focusedStyles,
22186
- "aria-required": isRequired
22183
+ focusedStyles: themeValues.focusedStyles
22187
22184
  }, /*#__PURE__*/React.createElement(CheckboxIcon, {
22188
22185
  viewBox: "0 0 24 24",
22189
22186
  disabled: disabled,
@@ -23794,11 +23791,7 @@ var Dropdown = function Dropdown(_ref13) {
23794
23791
  _ref13$smoothScroll = _ref13.smoothScroll,
23795
23792
  smoothScroll = _ref13$smoothScroll === void 0 ? true : _ref13$smoothScroll,
23796
23793
  _ref13$ariaInvalid = _ref13.ariaInvalid,
23797
- ariaInvalid = _ref13$ariaInvalid === void 0 ? false : _ref13$ariaInvalid,
23798
- _ref13$isRequired = _ref13.isRequired,
23799
- isRequired = _ref13$isRequired === void 0 ? false : _ref13$isRequired;
23800
-
23801
- var required = options.required || isRequired;
23794
+ ariaInvalid = _ref13$ariaInvalid === void 0 ? false : _ref13$ariaInvalid;
23802
23795
 
23803
23796
  var _useState = useState(""),
23804
23797
  _useState2 = _slicedToArray(_useState, 2),
@@ -23995,7 +23988,7 @@ var Dropdown = function Dropdown(_ref13) {
23995
23988
  }
23996
23989
 
23997
23990
  setFilteredOptions(options.filter(function (option) {
23998
- return option.value.toLowerCase().startsWith(inputValue.toLowerCase()) || option.text.toLowerCase().startsWith(inputValue.toLowerCase());
23991
+ return option.value.toLowerCase().match(inputValue.toLowerCase());
23999
23992
  }));
24000
23993
  }, [inputValue]);
24001
23994
  useEffect$1(function () {
@@ -24047,7 +24040,7 @@ var Dropdown = function Dropdown(_ref13) {
24047
24040
  "aria-labelledby": ariaLabelledby,
24048
24041
  "aria-describedby": ariaDescribedby,
24049
24042
  "aria-expanded": isOpen,
24050
- "aria-required": required,
24043
+ "aria-required": options.required,
24051
24044
  "aria-invalid": ariaInvalid,
24052
24045
  background: isOpen ? themeValues.hoverColor : WHITE,
24053
24046
  borderRadius: "2px",
@@ -24069,6 +24062,7 @@ var Dropdown = function Dropdown(_ref13) {
24069
24062
  },
24070
24063
  padding: "12px",
24071
24064
  placeholder: getSelection(),
24065
+ required: options.required,
24072
24066
  role: "combobox",
24073
24067
  themeValues: themeValues,
24074
24068
  title: hasTitles ? getSelection() : null,
@@ -24076,9 +24070,6 @@ var Dropdown = function Dropdown(_ref13) {
24076
24070
  tabIndex: 0,
24077
24071
  value: inputValue,
24078
24072
  width: "100%"
24079
- /* Non-semantic elements need the aria-* version of the attribute */
24080
- ,
24081
- "aria-disabled": disabledValues.includes(inputValue)
24082
24073
  }), /*#__PURE__*/React.createElement(IconWrapper, {
24083
24074
  open: isOpen,
24084
24075
  onClick: _onClick
@@ -24089,8 +24080,7 @@ var Dropdown = function Dropdown(_ref13) {
24089
24080
  widthFitOptions: widthFitOptions,
24090
24081
  tabIndex: 0,
24091
24082
  role: "listbox",
24092
- id: "".concat(ariaLabelledby, "_listbox"),
24093
- required: required
24083
+ id: "".concat(ariaLabelledby, "_listbox")
24094
24084
  }, /*#__PURE__*/React.createElement(Stack, {
24095
24085
  childGap: "0",
24096
24086
  as: "ul"
@@ -24240,9 +24230,7 @@ var FormSelect = function FormSelect(_ref) {
24240
24230
  _ref$dataQa = _ref.dataQa,
24241
24231
  dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa,
24242
24232
  _ref$widthFitOptions = _ref.widthFitOptions,
24243
- widthFitOptions = _ref$widthFitOptions === void 0 ? false : _ref$widthFitOptions,
24244
- _ref$isRequired = _ref.isRequired,
24245
- isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
24233
+ widthFitOptions = _ref$widthFitOptions === void 0 ? false : _ref$widthFitOptions;
24246
24234
 
24247
24235
  var _useState = useState(false),
24248
24236
  _useState2 = _slicedToArray(_useState, 2),
@@ -24250,17 +24238,6 @@ var FormSelect = function FormSelect(_ref) {
24250
24238
  setOpen = _useState2[1];
24251
24239
 
24252
24240
  var dropdownRef = useRef(null);
24253
- var required = (options === null || options === void 0 ? void 0 : options.required) || isRequired;
24254
- var labelId = useMemo(function () {
24255
- return function (labelTextWhenNoError) {
24256
- return createIdFromString(labelTextWhenNoError);
24257
- };
24258
- }, [labelTextWhenNoError]);
24259
- var descriptionId = useMemo(function () {
24260
- return function (field, labelTextWhenNoError) {
24261
- return field.hasErrors && field.dirty ? labelId(labelTextWhenNoError) + "error-message" : "";
24262
- };
24263
- }, [field, labelTextWhenNoError]);
24264
24241
 
24265
24242
  var handleClickAway = function handleClickAway(event) {
24266
24243
  if (dropdownRef.current && !dropdownRef.current.contains(event.target)) {
@@ -24276,8 +24253,8 @@ var FormSelect = function FormSelect(_ref) {
24276
24253
  });
24277
24254
  return /*#__PURE__*/React.createElement(SelectContainer, {
24278
24255
  ref: dropdownRef,
24279
- "aria-role": "group",
24280
24256
  disabled: disabled,
24257
+ "aria-disabled": disabled,
24281
24258
  "data-qa": dataQa
24282
24259
  }, /*#__PURE__*/React.createElement(Box, {
24283
24260
  padding: "0",
@@ -24291,10 +24268,10 @@ var FormSelect = function FormSelect(_ref) {
24291
24268
  color: themeValues.labelColor,
24292
24269
  weight: themeValues.fontWeight,
24293
24270
  extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }",
24294
- id: labelId(labelTextWhenNoError)
24271
+ id: createIdFromString(labelTextWhenNoError)
24295
24272
  }, labelTextWhenNoError))), /*#__PURE__*/React.createElement(Dropdown$1, {
24296
- ariaLabelledby: labelId(labelTextWhenNoError),
24297
- ariaDescribedby: descriptionId(field, labelTextWhenNoError),
24273
+ ariaLabelledby: createIdFromString(labelTextWhenNoError),
24274
+ ariaDescribedby: createIdFromString(labelTextWhenNoError, "error message"),
24298
24275
  maxHeight: dropdownMaxHeight,
24299
24276
  widthFitOptions: widthFitOptions,
24300
24277
  hasTitles: hasTitles,
@@ -24315,8 +24292,7 @@ var FormSelect = function FormSelect(_ref) {
24315
24292
  },
24316
24293
  disabled: disabled,
24317
24294
  autocompleteValue: autocompleteValue,
24318
- smoothScroll: smoothScroll,
24319
- isRequired: required
24295
+ smoothScroll: smoothScroll
24320
24296
  }), /*#__PURE__*/React.createElement(Stack, {
24321
24297
  direction: "row",
24322
24298
  justify: "space-between"
@@ -25086,9 +25062,7 @@ var CountryDropdown = function CountryDropdown(_ref) {
25086
25062
  showErrors = _ref.showErrors,
25087
25063
  onChange = _ref.onChange,
25088
25064
  _ref$dataQa = _ref.dataQa,
25089
- dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa,
25090
- _ref$isRequired = _ref.isRequired,
25091
- isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
25065
+ dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa;
25092
25066
  return /*#__PURE__*/React.createElement(FormSelect$1, {
25093
25067
  options: options,
25094
25068
  field: field,
@@ -25098,8 +25072,7 @@ var CountryDropdown = function CountryDropdown(_ref) {
25098
25072
  errorMessages: errorMessages,
25099
25073
  showErrors: showErrors,
25100
25074
  onChange: onChange,
25101
- autocompleteValue: "country-name",
25102
- isRequired: isRequired
25075
+ autocompleteValue: "country-name"
25103
25076
  });
25104
25077
  };
25105
25078
 
@@ -25946,7 +25919,7 @@ var fallbackValues$k = {
25946
25919
  };
25947
25920
 
25948
25921
  var _excluded$p = ["showErrors", "themeValues"],
25949
- _excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocompleteValue", "extraStyles", "removeFromValue", "dataQa", "isRequired"];
25922
+ _excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocompleteValue", "extraStyles", "removeFromValue", "dataQa"];
25950
25923
  var InputField = styled.input.withConfig({
25951
25924
  displayName: "FormInput__InputField",
25952
25925
  componentId: "sc-l094r1-0"
@@ -26033,8 +26006,6 @@ var FormInput = function FormInput(_ref15) {
26033
26006
  removeFromValue = _ref15.removeFromValue,
26034
26007
  _ref15$dataQa = _ref15.dataQa,
26035
26008
  dataQa = _ref15$dataQa === void 0 ? null : _ref15$dataQa,
26036
- _ref15$isRequired = _ref15.isRequired,
26037
- isRequired = _ref15$isRequired === void 0 ? false : _ref15$isRequired,
26038
26009
  props = _objectWithoutProperties(_ref15, _excluded2);
26039
26010
 
26040
26011
  var _useState = useState(false),
@@ -26121,8 +26092,7 @@ var FormInput = function FormInput(_ref15) {
26121
26092
  $customHeight: customHeight,
26122
26093
  $extraStyles: extraStyles,
26123
26094
  "data-qa": dataQa || labelTextWhenNoError,
26124
- autoComplete: autocompleteValue,
26125
- required: isRequired
26095
+ autoComplete: autocompleteValue
26126
26096
  }, props)) : /*#__PURE__*/React.createElement(InputField, _extends({
26127
26097
  "aria-labelledby": createIdFromString(labelTextWhenNoError),
26128
26098
  "aria-describedby": createIdFromString(labelTextWhenNoError, "error message"),
@@ -26141,8 +26111,7 @@ var FormInput = function FormInput(_ref15) {
26141
26111
  $customHeight: customHeight,
26142
26112
  $extraStyles: extraStyles,
26143
26113
  "data-qa": dataQa || labelTextWhenNoError,
26144
- autoComplete: autocompleteValue,
26145
- required: isRequired
26114
+ autoComplete: autocompleteValue
26146
26115
  }, props))), /*#__PURE__*/React.createElement(Stack, {
26147
26116
  direction: "row",
26148
26117
  justify: "space-between",
@@ -27275,7 +27244,7 @@ var HiddenRadioInput = styled.input.withConfig({
27275
27244
  var Circle = styled.div.withConfig({
27276
27245
  displayName: "RadioButtonWithLabel__Circle",
27277
27246
  componentId: "sc-1m9whwg-1"
27278
- })(["flex-shrink:0;margin-right:8px;width:1.5rem;height:1.5rem;border:", ";border-radius:50%;box-sizing:border-box;padding:2px;:after{content:\"\";width:100%;height:100%;display:block;background:", ";border-radius:50%;transform:scale(0);}"], function (_ref) {
27247
+ })(["flex-shrink:0;margin-right:8px;width:1.5rem;height 1.5rem;border:", ";border-radius:50%;box-sizing:border-box;padding:2px;:after{content:\"\";width:100%;height:100%;display:block;background:", ";border-radius:50%;transform:scale(0);}"], function (_ref) {
27279
27248
  var inactiveBorderColor = _ref.inactiveBorderColor;
27280
27249
  return "1px solid ".concat(inactiveBorderColor);
27281
27250
  }, function (_ref2) {
@@ -27285,12 +27254,12 @@ var Circle = styled.div.withConfig({
27285
27254
  var InputAndLabelContainer = styled(Cluster).withConfig({
27286
27255
  displayName: "RadioButtonWithLabel__InputAndLabelContainer",
27287
27256
  componentId: "sc-1m9whwg-2"
27288
- })(["overflow:visible;", ":checked + label ", ":after{transform:scale(0.85);transition:transform 0.15s;}", ":checked + label ", "{border:", ";}", ":focus + label ", "{box-shadow:", ";}"], HiddenRadioInput, Circle, HiddenRadioInput, Circle, function (_ref3) {
27257
+ })(["overflow:visible;", ":checked + label ", ":after{transform:scale(0.85);transition:transform 0.15s;}", ":checked + label ", "{border:", "}", ":focus + label ", "{{box-shadow:", "}"], HiddenRadioInput, Circle, HiddenRadioInput, Circle, function (_ref3) {
27289
27258
  var activeColor = _ref3.activeColor;
27290
- return "1px solid " + activeColor;
27259
+ return "1px solid ".concat(activeColor, ";");
27291
27260
  }, HiddenRadioInput, Circle, function (_ref4) {
27292
27261
  var activeColor = _ref4.activeColor;
27293
- return "0px 0px 2px 1px " + activeColor;
27262
+ return "0px 0px 2px 1px ".concat(activeColor, ";");
27294
27263
  });
27295
27264
 
27296
27265
  var RadioButtonWithLabel = function RadioButtonWithLabel(_ref5) {
@@ -27384,9 +27353,7 @@ var RadioButton$1 = function RadioButton(_ref2) {
27384
27353
  _ref2$ariaLabelledBy = _ref2.ariaLabelledBy,
27385
27354
  ariaLabelledBy = _ref2$ariaLabelledBy === void 0 ? "" : _ref2$ariaLabelledBy,
27386
27355
  _ref2$ariaLabel = _ref2.ariaLabel,
27387
- ariaLabel = _ref2$ariaLabel === void 0 ? null : _ref2$ariaLabel,
27388
- _ref2$required = _ref2.required,
27389
- required = _ref2$required === void 0 ? false : _ref2$required;
27356
+ ariaLabel = _ref2$ariaLabel === void 0 ? null : _ref2$ariaLabel;
27390
27357
  var buttonBorder = {
27391
27358
  onFocused: {
27392
27359
  borderColor: themeValues.activeColor,
@@ -27446,8 +27413,6 @@ var RadioButton$1 = function RadioButton(_ref2) {
27446
27413
  type: "radio",
27447
27414
  id: "radio-".concat(name),
27448
27415
  disabled: disabled,
27449
- required: required,
27450
- "aria-required": required,
27451
27416
  onClick: toggleRadio,
27452
27417
  "aria-describedby": ariaDescribedBy,
27453
27418
  tabIndex: "-1"
@@ -38140,9 +38105,7 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
38140
38105
  field = _ref.field,
38141
38106
  fieldActions = _ref.fieldActions,
38142
38107
  showErrors = _ref.showErrors,
38143
- countryCode = _ref.countryCode,
38144
- _ref$isRequired = _ref.isRequired,
38145
- isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
38108
+ countryCode = _ref.countryCode;
38146
38109
  var placeholder = countryCode === "US" ? placeHolderOptionUS : placeHolderOption;
38147
38110
  var options = [placeholder].concat(_toConsumableArray(getOptions(countryCode)));
38148
38111
  return /*#__PURE__*/React.createElement(FormSelect$1, {
@@ -38152,8 +38115,7 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
38152
38115
  labelTextWhenNoError: labelTextWhenNoError,
38153
38116
  errorMessages: errorMessages,
38154
38117
  showErrors: showErrors,
38155
- autocompleteValue: "address-level1",
38156
- isRequired: isRequired
38118
+ autocompleteValue: "address-level1"
38157
38119
  });
38158
38120
  };
38159
38121
 
@@ -39479,7 +39441,6 @@ var AddressForm = function AddressForm(_ref) {
39479
39441
  labelTextWhenNoError: "Country",
39480
39442
  errorMessages: countryErrorMessages,
39481
39443
  field: fields.country,
39482
- isRequired: true,
39483
39444
  onChange: function onChange(value) {
39484
39445
  actions.fields.country.set(value); // temporary measure to not dirty fields until
39485
39446
  // we can write a reset function for fields
@@ -39504,8 +39465,7 @@ var AddressForm = function AddressForm(_ref) {
39504
39465
  return e.key === "Enter" && handleSubmit(e);
39505
39466
  },
39506
39467
  autocompleteValue: "address-line1",
39507
- dataQa: "Address",
39508
- isRequired: true
39468
+ dataQa: "Address"
39509
39469
  }), /*#__PURE__*/React.createElement(FormInput$1, {
39510
39470
  labelTextWhenNoError: "Apt, Suite, Unit, Floor, etc. (Optional)",
39511
39471
  field: fields.street2,
@@ -39515,8 +39475,7 @@ var AddressForm = function AddressForm(_ref) {
39515
39475
  return e.key === "Enter" && handleSubmit(e);
39516
39476
  },
39517
39477
  autocompleteValue: "address-line2",
39518
- dataQa: "Address Line 2",
39519
- isRequired: false
39478
+ dataQa: "Address Line 2"
39520
39479
  }), /*#__PURE__*/React.createElement(FormInput$1, {
39521
39480
  labelTextWhenNoError: "City",
39522
39481
  errorMessages: cityErrorMessages,
@@ -39527,8 +39486,7 @@ var AddressForm = function AddressForm(_ref) {
39527
39486
  return e.key === "Enter" && handleSubmit(e);
39528
39487
  },
39529
39488
  autocompleteValue: "address-level2",
39530
- dataQa: "City",
39531
- isRequired: true
39489
+ dataQa: "City"
39532
39490
  }), /*#__PURE__*/React.createElement(FormStateDropdown, {
39533
39491
  labelTextWhenNoError: isUS ? "State" : "State or Province",
39534
39492
  errorMessages: stateProvinceErrorMessages,
@@ -39539,8 +39497,7 @@ var AddressForm = function AddressForm(_ref) {
39539
39497
  onKeyDown: function onKeyDown(e) {
39540
39498
  return e.key === "Enter" && handleSubmit(e);
39541
39499
  },
39542
- dataQa: "State or Province",
39543
- isRequired: true
39500
+ dataQa: "State or Province"
39544
39501
  }), /*#__PURE__*/React.createElement(FormInput$1, {
39545
39502
  isNum: isUS,
39546
39503
  formatter: isUS ? zipFormat : null,
@@ -39553,8 +39510,7 @@ var AddressForm = function AddressForm(_ref) {
39553
39510
  return e.key === "Enter" && handleSubmit(e);
39554
39511
  },
39555
39512
  autocompleteValue: "postal-code",
39556
- dataQa: "Zip code",
39557
- isRequired: true
39513
+ dataQa: "Zip code"
39558
39514
  }), showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
39559
39515
  name: "address checkbox",
39560
39516
  title: "Save address to wallet",
@@ -48021,8 +47977,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48021
47977
  onKeyDown: function onKeyDown(e) {
48022
47978
  return e.key === "Enter" && handleSubmit(e);
48023
47979
  },
48024
- autocompleteValue: "name",
48025
- isRequired: true
47980
+ autocompleteValue: "name"
48026
47981
  }), /*#__PURE__*/React.createElement(FormInput$1, {
48027
47982
  labelTextWhenNoError: "Routing number",
48028
47983
  dataQa: "Routing number",
@@ -48044,8 +47999,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48044
47999
  },
48045
48000
  onKeyDown: function onKeyDown(e) {
48046
48001
  return e.key === "Enter" && handleSubmit(e);
48047
- },
48048
- isRequired: true
48002
+ }
48049
48003
  }), /*#__PURE__*/React.createElement(FormInput$1, {
48050
48004
  labelTextWhenNoError: "Confirm routing number",
48051
48005
  dataQa: "Confirm routing number",
@@ -48056,7 +48010,6 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48056
48010
  onKeyDown: function onKeyDown(e) {
48057
48011
  return e.key === "Enter" && handleSubmit(e);
48058
48012
  },
48059
- isRequired: true,
48060
48013
  isNum: true
48061
48014
  }), /*#__PURE__*/React.createElement(FormInput$1, {
48062
48015
  labelTextWhenNoError: "Account number",
@@ -48065,7 +48018,6 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48065
48018
  field: fields.accountNumber,
48066
48019
  fieldActions: actions.fields.accountNumber,
48067
48020
  showErrors: showErrors,
48068
- isRequired: true,
48069
48021
  isNum: true,
48070
48022
  helperModal: function helperModal() {
48071
48023
  return /*#__PURE__*/React.createElement(AccountAndRoutingModal$1, {
@@ -48084,7 +48036,6 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48084
48036
  }), /*#__PURE__*/React.createElement(FormInput$1, {
48085
48037
  labelTextWhenNoError: "Confirm account number",
48086
48038
  dataQa: "Confirm account number",
48087
- isRequired: true,
48088
48039
  errorMessages: confirmAccountNumberErrors,
48089
48040
  field: fields.confirmAccountNumber,
48090
48041
  fieldActions: actions.fields.confirmAccountNumber,
@@ -48095,7 +48046,6 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48095
48046
  isNum: true
48096
48047
  }), allowBankAccountType && /*#__PURE__*/React.createElement(FormSelect$1, {
48097
48048
  labelTextWhenNoError: "Account type",
48098
- isRequired: true,
48099
48049
  dataQa: "Account type",
48100
48050
  options: [{
48101
48051
  text: "Select account type",
@@ -48226,7 +48176,6 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48226
48176
  "aria-label": "Card payment"
48227
48177
  }, /*#__PURE__*/React.createElement(FormInputColumn, null, !hideZipCode && /*#__PURE__*/React.createElement(CountryDropdown, {
48228
48178
  labelTextWhenNoError: "Country",
48229
- isRequired: true,
48230
48179
  errorMessages: countryErrorMessages,
48231
48180
  field: fields.country,
48232
48181
  onChange: function onChange(value) {
@@ -48249,10 +48198,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48249
48198
  onKeyDown: function onKeyDown(e) {
48250
48199
  return e.key === "Enter" && handleSubmit(e);
48251
48200
  },
48252
- autocompleteValue: "cc-name",
48253
- isRequired: true
48201
+ autocompleteValue: "cc-name"
48254
48202
  }), /*#__PURE__*/React.createElement(FormInput$1, {
48255
- isRequired: true,
48256
48203
  labelTextWhenNoError: "Credit card number",
48257
48204
  dataQa: "Credit card number",
48258
48205
  errorMessages: creditCardNumberErrors,
@@ -48282,8 +48229,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48282
48229
  isNum: true,
48283
48230
  removeFromValue: /\// // removes "/" from browser autofill
48284
48231
  ,
48285
- autocompleteValue: "cc-exp",
48286
- isRequired: true
48232
+ autocompleteValue: "cc-exp"
48287
48233
  }), /*#__PURE__*/React.createElement(FormInput$1, {
48288
48234
  labelTextWhenNoError: "CVV",
48289
48235
  dataQa: "CVV",
@@ -48296,8 +48242,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48296
48242
  onKeyDown: function onKeyDown(e) {
48297
48243
  return e.key === "Enter" && handleSubmit(e);
48298
48244
  },
48299
- autocompleteValue: "cc-csc",
48300
- isRequired: true
48245
+ autocompleteValue: "cc-csc"
48301
48246
  })), !hideZipCode && /*#__PURE__*/React.createElement(Box, {
48302
48247
  padding: isMobile ? "0" : "0 0.5rem 0 0",
48303
48248
  width: isMobile ? "100%" : "50%"
@@ -48313,8 +48258,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48313
48258
  onKeyDown: function onKeyDown(e) {
48314
48259
  return e.key === "Enter" && handleSubmit(e);
48315
48260
  },
48316
- autocompleteValue: "billing postal-code",
48317
- isRequired: true
48261
+ autocompleteValue: "billing postal-code"
48318
48262
  })), (showWalletCheckbox || showTerms) && /*#__PURE__*/React.createElement(Cluster, {
48319
48263
  childGap: "4px",
48320
48264
  align: "center"
@@ -48562,7 +48506,7 @@ PhoneForm.mapDispatchToProps = mapDispatchToProps$8;
48562
48506
  var DefaultHeading = styled.div.withConfig({
48563
48507
  displayName: "RadioGroup__DefaultHeading",
48564
48508
  componentId: "sc-7lqrl8-0"
48565
- })(["font-size:0.875rem;color:", ";margin:0;padding:8px 0px;"], CHARADE_GREY);
48509
+ })(["font-size:0.875rem;color:", " margin:0;padding:8px 0px;"], CHARADE_GREY);
48566
48510
  var StyledFieldset = styled.fieldset.withConfig({
48567
48511
  displayName: "RadioGroup__StyledFieldset",
48568
48512
  componentId: "sc-7lqrl8-1"
@@ -48783,8 +48727,7 @@ var RadioSection = function RadioSection(_ref) {
48783
48727
  toggleRadio: section.disabled ? noop : function () {
48784
48728
  return toggleOpenSection(section.id);
48785
48729
  },
48786
- tabIndex: "-1",
48787
- required: section === null || section === void 0 ? void 0 : section.required
48730
+ tabIndex: "-1"
48788
48731
  })), section.titleIcon && /*#__PURE__*/React.createElement(Cluster, {
48789
48732
  align: "center"
48790
48733
  }, section.titleIcon), /*#__PURE__*/React.createElement(Box, {