@thecb/components 9.2.2-beta.3 → 9.2.3-beta.3

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,7 +22126,9 @@ 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;
22129
+ dataQa = _ref4$dataQa === void 0 ? null : _ref4$dataQa,
22130
+ _ref4$isRequired = _ref4.isRequired,
22131
+ isRequired = _ref4$isRequired === void 0 ? false : _ref4$isRequired;
22130
22132
 
22131
22133
  var _useState = useState(false),
22132
22134
  _useState2 = _slicedToArray(_useState, 2),
@@ -22180,7 +22182,8 @@ var Checkbox = function Checkbox(_ref4) {
22180
22182
  errorStyles: themeValues.errorStyles,
22181
22183
  disabledStyles: themeValues.disabledStyles,
22182
22184
  disabledCheckedStyles: themeValues.disabledCheckedStyles,
22183
- focusedStyles: themeValues.focusedStyles
22185
+ focusedStyles: themeValues.focusedStyles,
22186
+ "aria-required": isRequired
22184
22187
  }, /*#__PURE__*/React.createElement(CheckboxIcon, {
22185
22188
  viewBox: "0 0 24 24",
22186
22189
  disabled: disabled,
@@ -23791,7 +23794,11 @@ var Dropdown = function Dropdown(_ref13) {
23791
23794
  _ref13$smoothScroll = _ref13.smoothScroll,
23792
23795
  smoothScroll = _ref13$smoothScroll === void 0 ? true : _ref13$smoothScroll,
23793
23796
  _ref13$ariaInvalid = _ref13.ariaInvalid,
23794
- ariaInvalid = _ref13$ariaInvalid === void 0 ? false : _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;
23795
23802
 
23796
23803
  var _useState = useState(""),
23797
23804
  _useState2 = _slicedToArray(_useState, 2),
@@ -23984,11 +23991,11 @@ var Dropdown = function Dropdown(_ref13) {
23984
23991
  clearTimeout(timer);
23985
23992
  setTimer(setTimeout(function () {
23986
23993
  return setInputValue("");
23987
- }, 20000));
23994
+ }, 3000));
23988
23995
  }
23989
23996
 
23990
23997
  setFilteredOptions(options.filter(function (option) {
23991
- return option.value.toLowerCase().match(inputValue.toLowerCase());
23998
+ return option.value.toLowerCase().startsWith(inputValue.toLowerCase()) || option.text.toLowerCase().startsWith(inputValue.toLowerCase());
23992
23999
  }));
23993
24000
  }, [inputValue]);
23994
24001
  useEffect$1(function () {
@@ -24017,7 +24024,7 @@ var Dropdown = function Dropdown(_ref13) {
24017
24024
  return /*#__PURE__*/React.createElement(Box, {
24018
24025
  padding: "0",
24019
24026
  background: isOpen ? themeValues.hoverColor : WHITE,
24020
- extraStyles: "position: relative; margin-bottom: 1rem;",
24027
+ extraStyles: "position: relative;",
24021
24028
  minWidth: "100%",
24022
24029
  onClick: function onClick() {
24023
24030
  if (!isOpen) {
@@ -24040,7 +24047,7 @@ var Dropdown = function Dropdown(_ref13) {
24040
24047
  "aria-labelledby": ariaLabelledby,
24041
24048
  "aria-describedby": ariaDescribedby,
24042
24049
  "aria-expanded": isOpen,
24043
- "aria-required": options.required,
24050
+ "aria-required": required,
24044
24051
  "aria-invalid": ariaInvalid,
24045
24052
  background: isOpen ? themeValues.hoverColor : WHITE,
24046
24053
  borderRadius: "2px",
@@ -24062,7 +24069,6 @@ var Dropdown = function Dropdown(_ref13) {
24062
24069
  },
24063
24070
  padding: "12px",
24064
24071
  placeholder: getSelection(),
24065
- required: options.required,
24066
24072
  role: "combobox",
24067
24073
  themeValues: themeValues,
24068
24074
  title: hasTitles ? getSelection() : null,
@@ -24070,6 +24076,9 @@ var Dropdown = function Dropdown(_ref13) {
24070
24076
  tabIndex: 0,
24071
24077
  value: inputValue,
24072
24078
  width: "100%"
24079
+ /* Non-semantic elements need the aria-* version of the attribute */
24080
+ ,
24081
+ "aria-disabled": disabledValues.includes(inputValue)
24073
24082
  }), /*#__PURE__*/React.createElement(IconWrapper, {
24074
24083
  open: isOpen,
24075
24084
  onClick: _onClick
@@ -24080,7 +24089,8 @@ var Dropdown = function Dropdown(_ref13) {
24080
24089
  widthFitOptions: widthFitOptions,
24081
24090
  tabIndex: 0,
24082
24091
  role: "listbox",
24083
- id: "".concat(ariaLabelledby, "_listbox")
24092
+ id: "".concat(ariaLabelledby, "_listbox"),
24093
+ required: required
24084
24094
  }, /*#__PURE__*/React.createElement(Stack, {
24085
24095
  childGap: "0",
24086
24096
  as: "ul"
@@ -24230,7 +24240,9 @@ var FormSelect = function FormSelect(_ref) {
24230
24240
  _ref$dataQa = _ref.dataQa,
24231
24241
  dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa,
24232
24242
  _ref$widthFitOptions = _ref.widthFitOptions,
24233
- widthFitOptions = _ref$widthFitOptions === void 0 ? false : _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;
24234
24246
 
24235
24247
  var _useState = useState(false),
24236
24248
  _useState2 = _slicedToArray(_useState, 2),
@@ -24238,6 +24250,17 @@ var FormSelect = function FormSelect(_ref) {
24238
24250
  setOpen = _useState2[1];
24239
24251
 
24240
24252
  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]);
24241
24264
 
24242
24265
  var handleClickAway = function handleClickAway(event) {
24243
24266
  if (dropdownRef.current && !dropdownRef.current.contains(event.target)) {
@@ -24253,8 +24276,8 @@ var FormSelect = function FormSelect(_ref) {
24253
24276
  });
24254
24277
  return /*#__PURE__*/React.createElement(SelectContainer, {
24255
24278
  ref: dropdownRef,
24279
+ "aria-role": "group",
24256
24280
  disabled: disabled,
24257
- "aria-disabled": disabled,
24258
24281
  "data-qa": dataQa
24259
24282
  }, /*#__PURE__*/React.createElement(Box, {
24260
24283
  padding: "0",
@@ -24268,10 +24291,10 @@ var FormSelect = function FormSelect(_ref) {
24268
24291
  color: themeValues.labelColor,
24269
24292
  weight: themeValues.fontWeight,
24270
24293
  extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }",
24271
- id: createIdFromString(labelTextWhenNoError)
24294
+ id: labelId(labelTextWhenNoError)
24272
24295
  }, labelTextWhenNoError))), /*#__PURE__*/React.createElement(Dropdown$1, {
24273
- ariaLabelledby: createIdFromString(labelTextWhenNoError),
24274
- ariaDescribedby: createIdFromString(labelTextWhenNoError, "error message"),
24296
+ ariaLabelledby: labelId(labelTextWhenNoError),
24297
+ ariaDescribedby: descriptionId(field, labelTextWhenNoError),
24275
24298
  maxHeight: dropdownMaxHeight,
24276
24299
  widthFitOptions: widthFitOptions,
24277
24300
  hasTitles: hasTitles,
@@ -24292,7 +24315,8 @@ var FormSelect = function FormSelect(_ref) {
24292
24315
  },
24293
24316
  disabled: disabled,
24294
24317
  autocompleteValue: autocompleteValue,
24295
- smoothScroll: smoothScroll
24318
+ smoothScroll: smoothScroll,
24319
+ isRequired: required
24296
24320
  }), /*#__PURE__*/React.createElement(Stack, {
24297
24321
  direction: "row",
24298
24322
  justify: "space-between"
@@ -25064,7 +25088,9 @@ var CountryDropdown = function CountryDropdown(_ref) {
25064
25088
  showErrors = _ref.showErrors,
25065
25089
  onChange = _ref.onChange,
25066
25090
  _ref$dataQa = _ref.dataQa,
25067
- dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa;
25091
+ dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa,
25092
+ _ref$isRequired = _ref.isRequired,
25093
+ isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
25068
25094
  return /*#__PURE__*/React.createElement(FormSelect$1, {
25069
25095
  options: options,
25070
25096
  field: field,
@@ -25074,7 +25100,8 @@ var CountryDropdown = function CountryDropdown(_ref) {
25074
25100
  errorMessages: errorMessages,
25075
25101
  showErrors: showErrors,
25076
25102
  onChange: onChange,
25077
- autocompleteValue: "country-name"
25103
+ autocompleteValue: "country-name",
25104
+ isRequired: isRequired
25078
25105
  });
25079
25106
  };
25080
25107
 
@@ -25921,7 +25948,7 @@ var fallbackValues$k = {
25921
25948
  };
25922
25949
 
25923
25950
  var _excluded$p = ["showErrors", "themeValues"],
25924
- _excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocompleteValue", "extraStyles", "removeFromValue", "dataQa"];
25951
+ _excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocompleteValue", "extraStyles", "removeFromValue", "dataQa", "isRequired"];
25925
25952
  var InputField = styled.input.withConfig({
25926
25953
  displayName: "FormInput__InputField",
25927
25954
  componentId: "sc-l094r1-0"
@@ -26008,6 +26035,8 @@ var FormInput = function FormInput(_ref15) {
26008
26035
  removeFromValue = _ref15.removeFromValue,
26009
26036
  _ref15$dataQa = _ref15.dataQa,
26010
26037
  dataQa = _ref15$dataQa === void 0 ? null : _ref15$dataQa,
26038
+ _ref15$isRequired = _ref15.isRequired,
26039
+ isRequired = _ref15$isRequired === void 0 ? false : _ref15$isRequired,
26011
26040
  props = _objectWithoutProperties(_ref15, _excluded2);
26012
26041
 
26013
26042
  var _useState = useState(false),
@@ -26094,7 +26123,8 @@ var FormInput = function FormInput(_ref15) {
26094
26123
  $customHeight: customHeight,
26095
26124
  $extraStyles: extraStyles,
26096
26125
  "data-qa": dataQa || labelTextWhenNoError,
26097
- autoComplete: autocompleteValue
26126
+ autoComplete: autocompleteValue,
26127
+ required: isRequired
26098
26128
  }, props)) : /*#__PURE__*/React.createElement(InputField, _extends({
26099
26129
  "aria-labelledby": createIdFromString(labelTextWhenNoError),
26100
26130
  "aria-describedby": createIdFromString(labelTextWhenNoError, "error message"),
@@ -26113,7 +26143,8 @@ var FormInput = function FormInput(_ref15) {
26113
26143
  $customHeight: customHeight,
26114
26144
  $extraStyles: extraStyles,
26115
26145
  "data-qa": dataQa || labelTextWhenNoError,
26116
- autoComplete: autocompleteValue
26146
+ autoComplete: autocompleteValue,
26147
+ required: isRequired
26117
26148
  }, props))), /*#__PURE__*/React.createElement(Stack, {
26118
26149
  direction: "row",
26119
26150
  justify: "space-between",
@@ -27246,7 +27277,7 @@ var HiddenRadioInput = styled.input.withConfig({
27246
27277
  var Circle = styled.div.withConfig({
27247
27278
  displayName: "RadioButtonWithLabel__Circle",
27248
27279
  componentId: "sc-1m9whwg-1"
27249
- })(["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) {
27280
+ })(["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) {
27250
27281
  var inactiveBorderColor = _ref.inactiveBorderColor;
27251
27282
  return "1px solid ".concat(inactiveBorderColor);
27252
27283
  }, function (_ref2) {
@@ -27256,12 +27287,12 @@ var Circle = styled.div.withConfig({
27256
27287
  var InputAndLabelContainer = styled(Cluster).withConfig({
27257
27288
  displayName: "RadioButtonWithLabel__InputAndLabelContainer",
27258
27289
  componentId: "sc-1m9whwg-2"
27259
- })(["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) {
27290
+ })(["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) {
27260
27291
  var activeColor = _ref3.activeColor;
27261
- return "1px solid ".concat(activeColor, ";");
27292
+ return "1px solid " + activeColor;
27262
27293
  }, HiddenRadioInput, Circle, function (_ref4) {
27263
27294
  var activeColor = _ref4.activeColor;
27264
- return "0px 0px 2px 1px ".concat(activeColor, ";");
27295
+ return "0px 0px 2px 1px " + activeColor;
27265
27296
  });
27266
27297
 
27267
27298
  var RadioButtonWithLabel = function RadioButtonWithLabel(_ref5) {
@@ -27355,7 +27386,9 @@ var RadioButton$1 = function RadioButton(_ref2) {
27355
27386
  _ref2$ariaLabelledBy = _ref2.ariaLabelledBy,
27356
27387
  ariaLabelledBy = _ref2$ariaLabelledBy === void 0 ? "" : _ref2$ariaLabelledBy,
27357
27388
  _ref2$ariaLabel = _ref2.ariaLabel,
27358
- ariaLabel = _ref2$ariaLabel === void 0 ? null : _ref2$ariaLabel;
27389
+ ariaLabel = _ref2$ariaLabel === void 0 ? null : _ref2$ariaLabel,
27390
+ _ref2$required = _ref2.required,
27391
+ required = _ref2$required === void 0 ? false : _ref2$required;
27359
27392
  var buttonBorder = {
27360
27393
  onFocused: {
27361
27394
  borderColor: themeValues.activeColor,
@@ -27415,6 +27448,8 @@ var RadioButton$1 = function RadioButton(_ref2) {
27415
27448
  type: "radio",
27416
27449
  id: "radio-".concat(name),
27417
27450
  disabled: disabled,
27451
+ required: required,
27452
+ "aria-required": required,
27418
27453
  onClick: toggleRadio,
27419
27454
  "aria-describedby": ariaDescribedBy,
27420
27455
  tabIndex: "-1"
@@ -38107,7 +38142,9 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
38107
38142
  field = _ref.field,
38108
38143
  fieldActions = _ref.fieldActions,
38109
38144
  showErrors = _ref.showErrors,
38110
- countryCode = _ref.countryCode;
38145
+ countryCode = _ref.countryCode,
38146
+ _ref$isRequired = _ref.isRequired,
38147
+ isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
38111
38148
  var placeholder = countryCode === "US" ? placeHolderOptionUS : placeHolderOption;
38112
38149
  var options = [placeholder].concat(_toConsumableArray(getOptions(countryCode)));
38113
38150
  return /*#__PURE__*/React.createElement(FormSelect$1, {
@@ -38117,7 +38154,8 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
38117
38154
  labelTextWhenNoError: labelTextWhenNoError,
38118
38155
  errorMessages: errorMessages,
38119
38156
  showErrors: showErrors,
38120
- autocompleteValue: "address-level1"
38157
+ autocompleteValue: "address-level1",
38158
+ isRequired: isRequired
38121
38159
  });
38122
38160
  };
38123
38161
 
@@ -39443,6 +39481,7 @@ var AddressForm = function AddressForm(_ref) {
39443
39481
  labelTextWhenNoError: "Country",
39444
39482
  errorMessages: countryErrorMessages,
39445
39483
  field: fields.country,
39484
+ isRequired: true,
39446
39485
  onChange: function onChange(value) {
39447
39486
  actions.fields.country.set(value); // temporary measure to not dirty fields until
39448
39487
  // we can write a reset function for fields
@@ -39467,7 +39506,8 @@ var AddressForm = function AddressForm(_ref) {
39467
39506
  return e.key === "Enter" && handleSubmit(e);
39468
39507
  },
39469
39508
  autocompleteValue: "address-line1",
39470
- dataQa: "Address"
39509
+ dataQa: "Address",
39510
+ isRequired: true
39471
39511
  }), /*#__PURE__*/React.createElement(FormInput$1, {
39472
39512
  labelTextWhenNoError: "Apt, Suite, Unit, Floor, etc. (Optional)",
39473
39513
  field: fields.street2,
@@ -39477,7 +39517,8 @@ var AddressForm = function AddressForm(_ref) {
39477
39517
  return e.key === "Enter" && handleSubmit(e);
39478
39518
  },
39479
39519
  autocompleteValue: "address-line2",
39480
- dataQa: "Address Line 2"
39520
+ dataQa: "Address Line 2",
39521
+ isRequired: false
39481
39522
  }), /*#__PURE__*/React.createElement(FormInput$1, {
39482
39523
  labelTextWhenNoError: "City",
39483
39524
  errorMessages: cityErrorMessages,
@@ -39488,7 +39529,8 @@ var AddressForm = function AddressForm(_ref) {
39488
39529
  return e.key === "Enter" && handleSubmit(e);
39489
39530
  },
39490
39531
  autocompleteValue: "address-level2",
39491
- dataQa: "City"
39532
+ dataQa: "City",
39533
+ isRequired: true
39492
39534
  }), /*#__PURE__*/React.createElement(FormStateDropdown, {
39493
39535
  labelTextWhenNoError: isUS ? "State" : "State or Province",
39494
39536
  errorMessages: stateProvinceErrorMessages,
@@ -39499,7 +39541,8 @@ var AddressForm = function AddressForm(_ref) {
39499
39541
  onKeyDown: function onKeyDown(e) {
39500
39542
  return e.key === "Enter" && handleSubmit(e);
39501
39543
  },
39502
- dataQa: "State or Province"
39544
+ dataQa: "State or Province",
39545
+ isRequired: true
39503
39546
  }), /*#__PURE__*/React.createElement(FormInput$1, {
39504
39547
  isNum: isUS,
39505
39548
  formatter: isUS ? zipFormat : null,
@@ -39512,7 +39555,8 @@ var AddressForm = function AddressForm(_ref) {
39512
39555
  return e.key === "Enter" && handleSubmit(e);
39513
39556
  },
39514
39557
  autocompleteValue: "postal-code",
39515
- dataQa: "Zip code"
39558
+ dataQa: "Zip code",
39559
+ isRequired: true
39516
39560
  }), showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
39517
39561
  name: "address checkbox",
39518
39562
  title: "Save address to wallet",
@@ -47979,7 +48023,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
47979
48023
  onKeyDown: function onKeyDown(e) {
47980
48024
  return e.key === "Enter" && handleSubmit(e);
47981
48025
  },
47982
- autocompleteValue: "name"
48026
+ autocompleteValue: "name",
48027
+ isRequired: true
47983
48028
  }), /*#__PURE__*/React.createElement(FormInput$1, {
47984
48029
  labelTextWhenNoError: "Routing number",
47985
48030
  dataQa: "Routing number",
@@ -48001,7 +48046,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48001
48046
  },
48002
48047
  onKeyDown: function onKeyDown(e) {
48003
48048
  return e.key === "Enter" && handleSubmit(e);
48004
- }
48049
+ },
48050
+ isRequired: true
48005
48051
  }), /*#__PURE__*/React.createElement(FormInput$1, {
48006
48052
  labelTextWhenNoError: "Confirm routing number",
48007
48053
  dataQa: "Confirm routing number",
@@ -48012,6 +48058,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48012
48058
  onKeyDown: function onKeyDown(e) {
48013
48059
  return e.key === "Enter" && handleSubmit(e);
48014
48060
  },
48061
+ isRequired: true,
48015
48062
  isNum: true
48016
48063
  }), /*#__PURE__*/React.createElement(FormInput$1, {
48017
48064
  labelTextWhenNoError: "Account number",
@@ -48020,6 +48067,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48020
48067
  field: fields.accountNumber,
48021
48068
  fieldActions: actions.fields.accountNumber,
48022
48069
  showErrors: showErrors,
48070
+ isRequired: true,
48023
48071
  isNum: true,
48024
48072
  helperModal: function helperModal() {
48025
48073
  return /*#__PURE__*/React.createElement(AccountAndRoutingModal$1, {
@@ -48038,6 +48086,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48038
48086
  }), /*#__PURE__*/React.createElement(FormInput$1, {
48039
48087
  labelTextWhenNoError: "Confirm account number",
48040
48088
  dataQa: "Confirm account number",
48089
+ isRequired: true,
48041
48090
  errorMessages: confirmAccountNumberErrors,
48042
48091
  field: fields.confirmAccountNumber,
48043
48092
  fieldActions: actions.fields.confirmAccountNumber,
@@ -48048,6 +48097,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48048
48097
  isNum: true
48049
48098
  }), allowBankAccountType && /*#__PURE__*/React.createElement(FormSelect$1, {
48050
48099
  labelTextWhenNoError: "Account type",
48100
+ isRequired: true,
48051
48101
  dataQa: "Account type",
48052
48102
  options: [{
48053
48103
  text: "Select account type",
@@ -48178,6 +48228,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48178
48228
  "aria-label": "Card payment"
48179
48229
  }, /*#__PURE__*/React.createElement(FormInputColumn, null, !hideZipCode && /*#__PURE__*/React.createElement(CountryDropdown, {
48180
48230
  labelTextWhenNoError: "Country",
48231
+ isRequired: true,
48181
48232
  errorMessages: countryErrorMessages,
48182
48233
  field: fields.country,
48183
48234
  onChange: function onChange(value) {
@@ -48200,8 +48251,10 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48200
48251
  onKeyDown: function onKeyDown(e) {
48201
48252
  return e.key === "Enter" && handleSubmit(e);
48202
48253
  },
48203
- autocompleteValue: "cc-name"
48254
+ autocompleteValue: "cc-name",
48255
+ isRequired: true
48204
48256
  }), /*#__PURE__*/React.createElement(FormInput$1, {
48257
+ isRequired: true,
48205
48258
  labelTextWhenNoError: "Credit card number",
48206
48259
  dataQa: "Credit card number",
48207
48260
  errorMessages: creditCardNumberErrors,
@@ -48231,7 +48284,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48231
48284
  isNum: true,
48232
48285
  removeFromValue: /\// // removes "/" from browser autofill
48233
48286
  ,
48234
- autocompleteValue: "cc-exp"
48287
+ autocompleteValue: "cc-exp",
48288
+ isRequired: true
48235
48289
  }), /*#__PURE__*/React.createElement(FormInput$1, {
48236
48290
  labelTextWhenNoError: "CVV",
48237
48291
  dataQa: "CVV",
@@ -48244,7 +48298,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48244
48298
  onKeyDown: function onKeyDown(e) {
48245
48299
  return e.key === "Enter" && handleSubmit(e);
48246
48300
  },
48247
- autocompleteValue: "cc-csc"
48301
+ autocompleteValue: "cc-csc",
48302
+ isRequired: true
48248
48303
  })), !hideZipCode && /*#__PURE__*/React.createElement(Box, {
48249
48304
  padding: isMobile ? "0" : "0 0.5rem 0 0",
48250
48305
  width: isMobile ? "100%" : "50%"
@@ -48260,7 +48315,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48260
48315
  onKeyDown: function onKeyDown(e) {
48261
48316
  return e.key === "Enter" && handleSubmit(e);
48262
48317
  },
48263
- autocompleteValue: "billing postal-code"
48318
+ autocompleteValue: "billing postal-code",
48319
+ isRequired: true
48264
48320
  })), (showWalletCheckbox || showTerms) && /*#__PURE__*/React.createElement(Cluster, {
48265
48321
  childGap: "4px",
48266
48322
  align: "center"
@@ -48508,7 +48564,7 @@ PhoneForm.mapDispatchToProps = mapDispatchToProps$8;
48508
48564
  var DefaultHeading = styled.div.withConfig({
48509
48565
  displayName: "RadioGroup__DefaultHeading",
48510
48566
  componentId: "sc-7lqrl8-0"
48511
- })(["font-size:0.875rem;color:", " margin:0;padding:8px 0px;"], CHARADE_GREY);
48567
+ })(["font-size:0.875rem;color:", ";margin:0;padding:8px 0px;"], CHARADE_GREY);
48512
48568
  var StyledFieldset = styled.fieldset.withConfig({
48513
48569
  displayName: "RadioGroup__StyledFieldset",
48514
48570
  componentId: "sc-7lqrl8-1"
@@ -48729,7 +48785,8 @@ var RadioSection = function RadioSection(_ref) {
48729
48785
  toggleRadio: section.disabled ? noop : function () {
48730
48786
  return toggleOpenSection(section.id);
48731
48787
  },
48732
- tabIndex: "-1"
48788
+ tabIndex: "-1",
48789
+ required: section === null || section === void 0 ? void 0 : section.required
48733
48790
  })), section.titleIcon && /*#__PURE__*/React.createElement(Cluster, {
48734
48791
  align: "center"
48735
48792
  }, section.titleIcon), /*#__PURE__*/React.createElement(Box, {