@thecb/components 9.2.2-beta.4 → 9.2.4-beta.1

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
@@ -22134,7 +22134,9 @@ var Checkbox = function Checkbox(_ref4) {
22134
22134
  extraStyles = _ref4.extraStyles,
22135
22135
  textExtraStyles = _ref4.textExtraStyles,
22136
22136
  _ref4$dataQa = _ref4.dataQa,
22137
- dataQa = _ref4$dataQa === void 0 ? null : _ref4$dataQa;
22137
+ dataQa = _ref4$dataQa === void 0 ? null : _ref4$dataQa,
22138
+ _ref4$isRequired = _ref4.isRequired,
22139
+ isRequired = _ref4$isRequired === void 0 ? false : _ref4$isRequired;
22138
22140
 
22139
22141
  var _useState = React.useState(false),
22140
22142
  _useState2 = _slicedToArray(_useState, 2),
@@ -22188,7 +22190,8 @@ var Checkbox = function Checkbox(_ref4) {
22188
22190
  errorStyles: themeValues.errorStyles,
22189
22191
  disabledStyles: themeValues.disabledStyles,
22190
22192
  disabledCheckedStyles: themeValues.disabledCheckedStyles,
22191
- focusedStyles: themeValues.focusedStyles
22193
+ focusedStyles: themeValues.focusedStyles,
22194
+ "aria-required": isRequired
22192
22195
  }, /*#__PURE__*/React__default.createElement(CheckboxIcon, {
22193
22196
  viewBox: "0 0 24 24",
22194
22197
  disabled: disabled,
@@ -23799,7 +23802,11 @@ var Dropdown = function Dropdown(_ref13) {
23799
23802
  _ref13$smoothScroll = _ref13.smoothScroll,
23800
23803
  smoothScroll = _ref13$smoothScroll === void 0 ? true : _ref13$smoothScroll,
23801
23804
  _ref13$ariaInvalid = _ref13.ariaInvalid,
23802
- ariaInvalid = _ref13$ariaInvalid === void 0 ? false : _ref13$ariaInvalid;
23805
+ ariaInvalid = _ref13$ariaInvalid === void 0 ? false : _ref13$ariaInvalid,
23806
+ _ref13$isRequired = _ref13.isRequired,
23807
+ isRequired = _ref13$isRequired === void 0 ? false : _ref13$isRequired;
23808
+
23809
+ var required = options.required || isRequired;
23803
23810
 
23804
23811
  var _useState = React.useState(""),
23805
23812
  _useState2 = _slicedToArray(_useState, 2),
@@ -23992,11 +23999,11 @@ var Dropdown = function Dropdown(_ref13) {
23992
23999
  clearTimeout(timer);
23993
24000
  setTimer(setTimeout(function () {
23994
24001
  return setInputValue("");
23995
- }, 20000));
24002
+ }, 3000));
23996
24003
  }
23997
24004
 
23998
24005
  setFilteredOptions(options.filter(function (option) {
23999
- return option.value.toLowerCase().match(inputValue.toLowerCase()) || option.text.toLowerCase().match(inputValue.toLowerCase());
24006
+ return option.value.toLowerCase().startsWith(inputValue.toLowerCase()) || option.text.toLowerCase().startsWith(inputValue.toLowerCase());
24000
24007
  }));
24001
24008
  }, [inputValue]);
24002
24009
  React.useEffect(function () {
@@ -24048,7 +24055,7 @@ var Dropdown = function Dropdown(_ref13) {
24048
24055
  "aria-labelledby": ariaLabelledby,
24049
24056
  "aria-describedby": ariaDescribedby,
24050
24057
  "aria-expanded": isOpen,
24051
- "aria-required": options.required,
24058
+ "aria-required": required,
24052
24059
  "aria-invalid": ariaInvalid,
24053
24060
  background: isOpen ? themeValues.hoverColor : WHITE,
24054
24061
  borderRadius: "2px",
@@ -24070,7 +24077,6 @@ var Dropdown = function Dropdown(_ref13) {
24070
24077
  },
24071
24078
  padding: "12px",
24072
24079
  placeholder: getSelection(),
24073
- required: options.required,
24074
24080
  role: "combobox",
24075
24081
  themeValues: themeValues,
24076
24082
  title: hasTitles ? getSelection() : null,
@@ -24078,6 +24084,9 @@ var Dropdown = function Dropdown(_ref13) {
24078
24084
  tabIndex: 0,
24079
24085
  value: inputValue,
24080
24086
  width: "100%"
24087
+ /* Non-semantic elements need the aria-* version of the attribute */
24088
+ ,
24089
+ "aria-disabled": disabledValues.includes(inputValue)
24081
24090
  }), /*#__PURE__*/React__default.createElement(IconWrapper, {
24082
24091
  open: isOpen,
24083
24092
  onClick: _onClick
@@ -24088,7 +24097,8 @@ var Dropdown = function Dropdown(_ref13) {
24088
24097
  widthFitOptions: widthFitOptions,
24089
24098
  tabIndex: 0,
24090
24099
  role: "listbox",
24091
- id: "".concat(ariaLabelledby, "_listbox")
24100
+ id: "".concat(ariaLabelledby, "_listbox"),
24101
+ required: required
24092
24102
  }, /*#__PURE__*/React__default.createElement(Stack, {
24093
24103
  childGap: "0",
24094
24104
  as: "ul"
@@ -24238,7 +24248,9 @@ var FormSelect = function FormSelect(_ref) {
24238
24248
  _ref$dataQa = _ref.dataQa,
24239
24249
  dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa,
24240
24250
  _ref$widthFitOptions = _ref.widthFitOptions,
24241
- widthFitOptions = _ref$widthFitOptions === void 0 ? false : _ref$widthFitOptions;
24251
+ widthFitOptions = _ref$widthFitOptions === void 0 ? false : _ref$widthFitOptions,
24252
+ _ref$isRequired = _ref.isRequired,
24253
+ isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
24242
24254
 
24243
24255
  var _useState = React.useState(false),
24244
24256
  _useState2 = _slicedToArray(_useState, 2),
@@ -24246,6 +24258,17 @@ var FormSelect = function FormSelect(_ref) {
24246
24258
  setOpen = _useState2[1];
24247
24259
 
24248
24260
  var dropdownRef = React.useRef(null);
24261
+ var required = (options === null || options === void 0 ? void 0 : options.required) || isRequired;
24262
+ var labelId = React.useMemo(function () {
24263
+ return function (labelTextWhenNoError) {
24264
+ return createIdFromString(labelTextWhenNoError);
24265
+ };
24266
+ }, [labelTextWhenNoError]);
24267
+ var descriptionId = React.useMemo(function () {
24268
+ return function (field, labelTextWhenNoError) {
24269
+ return field.hasErrors && field.dirty ? labelId(labelTextWhenNoError) + "error-message" : "";
24270
+ };
24271
+ }, [field, labelTextWhenNoError]);
24249
24272
 
24250
24273
  var handleClickAway = function handleClickAway(event) {
24251
24274
  if (dropdownRef.current && !dropdownRef.current.contains(event.target)) {
@@ -24261,8 +24284,8 @@ var FormSelect = function FormSelect(_ref) {
24261
24284
  });
24262
24285
  return /*#__PURE__*/React__default.createElement(SelectContainer, {
24263
24286
  ref: dropdownRef,
24287
+ "aria-role": "group",
24264
24288
  disabled: disabled,
24265
- "aria-disabled": disabled,
24266
24289
  "data-qa": dataQa
24267
24290
  }, /*#__PURE__*/React__default.createElement(Box, {
24268
24291
  padding: "0",
@@ -24276,10 +24299,10 @@ var FormSelect = function FormSelect(_ref) {
24276
24299
  color: themeValues.labelColor,
24277
24300
  weight: themeValues.fontWeight,
24278
24301
  extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }",
24279
- id: createIdFromString(labelTextWhenNoError)
24302
+ id: labelId(labelTextWhenNoError)
24280
24303
  }, labelTextWhenNoError))), /*#__PURE__*/React__default.createElement(Dropdown$1, {
24281
- ariaLabelledby: createIdFromString(labelTextWhenNoError),
24282
- ariaDescribedby: createIdFromString(labelTextWhenNoError, "error message"),
24304
+ ariaLabelledby: labelId(labelTextWhenNoError),
24305
+ ariaDescribedby: descriptionId(field, labelTextWhenNoError),
24283
24306
  maxHeight: dropdownMaxHeight,
24284
24307
  widthFitOptions: widthFitOptions,
24285
24308
  hasTitles: hasTitles,
@@ -24300,7 +24323,8 @@ var FormSelect = function FormSelect(_ref) {
24300
24323
  },
24301
24324
  disabled: disabled,
24302
24325
  autocompleteValue: autocompleteValue,
24303
- smoothScroll: smoothScroll
24326
+ smoothScroll: smoothScroll,
24327
+ isRequired: required
24304
24328
  }), /*#__PURE__*/React__default.createElement(Stack, {
24305
24329
  direction: "row",
24306
24330
  justify: "space-between"
@@ -25072,7 +25096,9 @@ var CountryDropdown = function CountryDropdown(_ref) {
25072
25096
  showErrors = _ref.showErrors,
25073
25097
  onChange = _ref.onChange,
25074
25098
  _ref$dataQa = _ref.dataQa,
25075
- dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa;
25099
+ dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa,
25100
+ _ref$isRequired = _ref.isRequired,
25101
+ isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
25076
25102
  return /*#__PURE__*/React__default.createElement(FormSelect$1, {
25077
25103
  options: options,
25078
25104
  field: field,
@@ -25082,7 +25108,8 @@ var CountryDropdown = function CountryDropdown(_ref) {
25082
25108
  errorMessages: errorMessages,
25083
25109
  showErrors: showErrors,
25084
25110
  onChange: onChange,
25085
- autocompleteValue: "country-name"
25111
+ autocompleteValue: "country-name",
25112
+ isRequired: isRequired
25086
25113
  });
25087
25114
  };
25088
25115
 
@@ -25929,7 +25956,7 @@ var fallbackValues$k = {
25929
25956
  };
25930
25957
 
25931
25958
  var _excluded$p = ["showErrors", "themeValues"],
25932
- _excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocompleteValue", "extraStyles", "removeFromValue", "dataQa"];
25959
+ _excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocompleteValue", "extraStyles", "removeFromValue", "dataQa", "isRequired"];
25933
25960
  var InputField = styled__default.input.withConfig({
25934
25961
  displayName: "FormInput__InputField",
25935
25962
  componentId: "sc-l094r1-0"
@@ -26016,6 +26043,8 @@ var FormInput = function FormInput(_ref15) {
26016
26043
  removeFromValue = _ref15.removeFromValue,
26017
26044
  _ref15$dataQa = _ref15.dataQa,
26018
26045
  dataQa = _ref15$dataQa === void 0 ? null : _ref15$dataQa,
26046
+ _ref15$isRequired = _ref15.isRequired,
26047
+ isRequired = _ref15$isRequired === void 0 ? false : _ref15$isRequired,
26019
26048
  props = _objectWithoutProperties(_ref15, _excluded2);
26020
26049
 
26021
26050
  var _useState = React.useState(false),
@@ -26102,7 +26131,8 @@ var FormInput = function FormInput(_ref15) {
26102
26131
  $customHeight: customHeight,
26103
26132
  $extraStyles: extraStyles,
26104
26133
  "data-qa": dataQa || labelTextWhenNoError,
26105
- autoComplete: autocompleteValue
26134
+ autoComplete: autocompleteValue,
26135
+ required: isRequired
26106
26136
  }, props)) : /*#__PURE__*/React__default.createElement(InputField, _extends({
26107
26137
  "aria-labelledby": createIdFromString(labelTextWhenNoError),
26108
26138
  "aria-describedby": createIdFromString(labelTextWhenNoError, "error message"),
@@ -26121,7 +26151,8 @@ var FormInput = function FormInput(_ref15) {
26121
26151
  $customHeight: customHeight,
26122
26152
  $extraStyles: extraStyles,
26123
26153
  "data-qa": dataQa || labelTextWhenNoError,
26124
- autoComplete: autocompleteValue
26154
+ autoComplete: autocompleteValue,
26155
+ required: isRequired
26125
26156
  }, props))), /*#__PURE__*/React__default.createElement(Stack, {
26126
26157
  direction: "row",
26127
26158
  justify: "space-between",
@@ -27254,7 +27285,7 @@ var HiddenRadioInput = styled__default.input.withConfig({
27254
27285
  var Circle = styled__default.div.withConfig({
27255
27286
  displayName: "RadioButtonWithLabel__Circle",
27256
27287
  componentId: "sc-1m9whwg-1"
27257
- })(["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) {
27288
+ })(["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) {
27258
27289
  var inactiveBorderColor = _ref.inactiveBorderColor;
27259
27290
  return "1px solid ".concat(inactiveBorderColor);
27260
27291
  }, function (_ref2) {
@@ -27264,12 +27295,12 @@ var Circle = styled__default.div.withConfig({
27264
27295
  var InputAndLabelContainer = styled__default(Cluster).withConfig({
27265
27296
  displayName: "RadioButtonWithLabel__InputAndLabelContainer",
27266
27297
  componentId: "sc-1m9whwg-2"
27267
- })(["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) {
27298
+ })(["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) {
27268
27299
  var activeColor = _ref3.activeColor;
27269
- return "1px solid ".concat(activeColor, ";");
27300
+ return "1px solid " + activeColor;
27270
27301
  }, HiddenRadioInput, Circle, function (_ref4) {
27271
27302
  var activeColor = _ref4.activeColor;
27272
- return "0px 0px 2px 1px ".concat(activeColor, ";");
27303
+ return "0px 0px 2px 1px " + activeColor;
27273
27304
  });
27274
27305
 
27275
27306
  var RadioButtonWithLabel = function RadioButtonWithLabel(_ref5) {
@@ -27363,7 +27394,9 @@ var RadioButton$1 = function RadioButton(_ref2) {
27363
27394
  _ref2$ariaLabelledBy = _ref2.ariaLabelledBy,
27364
27395
  ariaLabelledBy = _ref2$ariaLabelledBy === void 0 ? "" : _ref2$ariaLabelledBy,
27365
27396
  _ref2$ariaLabel = _ref2.ariaLabel,
27366
- ariaLabel = _ref2$ariaLabel === void 0 ? null : _ref2$ariaLabel;
27397
+ ariaLabel = _ref2$ariaLabel === void 0 ? null : _ref2$ariaLabel,
27398
+ _ref2$required = _ref2.required,
27399
+ required = _ref2$required === void 0 ? false : _ref2$required;
27367
27400
  var buttonBorder = {
27368
27401
  onFocused: {
27369
27402
  borderColor: themeValues.activeColor,
@@ -27423,6 +27456,8 @@ var RadioButton$1 = function RadioButton(_ref2) {
27423
27456
  type: "radio",
27424
27457
  id: "radio-".concat(name),
27425
27458
  disabled: disabled,
27459
+ required: required,
27460
+ "aria-required": required,
27426
27461
  onClick: toggleRadio,
27427
27462
  "aria-describedby": ariaDescribedBy,
27428
27463
  tabIndex: "-1"
@@ -38115,7 +38150,9 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
38115
38150
  field = _ref.field,
38116
38151
  fieldActions = _ref.fieldActions,
38117
38152
  showErrors = _ref.showErrors,
38118
- countryCode = _ref.countryCode;
38153
+ countryCode = _ref.countryCode,
38154
+ _ref$isRequired = _ref.isRequired,
38155
+ isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
38119
38156
  var placeholder = countryCode === "US" ? placeHolderOptionUS : placeHolderOption;
38120
38157
  var options = [placeholder].concat(_toConsumableArray(getOptions(countryCode)));
38121
38158
  return /*#__PURE__*/React__default.createElement(FormSelect$1, {
@@ -38125,7 +38162,8 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
38125
38162
  labelTextWhenNoError: labelTextWhenNoError,
38126
38163
  errorMessages: errorMessages,
38127
38164
  showErrors: showErrors,
38128
- autocompleteValue: "address-level1"
38165
+ autocompleteValue: "address-level1",
38166
+ isRequired: isRequired
38129
38167
  });
38130
38168
  };
38131
38169
 
@@ -39451,6 +39489,7 @@ var AddressForm = function AddressForm(_ref) {
39451
39489
  labelTextWhenNoError: "Country",
39452
39490
  errorMessages: countryErrorMessages,
39453
39491
  field: fields.country,
39492
+ isRequired: true,
39454
39493
  onChange: function onChange(value) {
39455
39494
  actions.fields.country.set(value); // temporary measure to not dirty fields until
39456
39495
  // we can write a reset function for fields
@@ -39475,7 +39514,8 @@ var AddressForm = function AddressForm(_ref) {
39475
39514
  return e.key === "Enter" && handleSubmit(e);
39476
39515
  },
39477
39516
  autocompleteValue: "address-line1",
39478
- dataQa: "Address"
39517
+ dataQa: "Address",
39518
+ isRequired: true
39479
39519
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
39480
39520
  labelTextWhenNoError: "Apt, Suite, Unit, Floor, etc. (Optional)",
39481
39521
  field: fields.street2,
@@ -39485,7 +39525,8 @@ var AddressForm = function AddressForm(_ref) {
39485
39525
  return e.key === "Enter" && handleSubmit(e);
39486
39526
  },
39487
39527
  autocompleteValue: "address-line2",
39488
- dataQa: "Address Line 2"
39528
+ dataQa: "Address Line 2",
39529
+ isRequired: false
39489
39530
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
39490
39531
  labelTextWhenNoError: "City",
39491
39532
  errorMessages: cityErrorMessages,
@@ -39496,7 +39537,8 @@ var AddressForm = function AddressForm(_ref) {
39496
39537
  return e.key === "Enter" && handleSubmit(e);
39497
39538
  },
39498
39539
  autocompleteValue: "address-level2",
39499
- dataQa: "City"
39540
+ dataQa: "City",
39541
+ isRequired: true
39500
39542
  }), /*#__PURE__*/React__default.createElement(FormStateDropdown, {
39501
39543
  labelTextWhenNoError: isUS ? "State" : "State or Province",
39502
39544
  errorMessages: stateProvinceErrorMessages,
@@ -39507,7 +39549,8 @@ var AddressForm = function AddressForm(_ref) {
39507
39549
  onKeyDown: function onKeyDown(e) {
39508
39550
  return e.key === "Enter" && handleSubmit(e);
39509
39551
  },
39510
- dataQa: "State or Province"
39552
+ dataQa: "State or Province",
39553
+ isRequired: true
39511
39554
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
39512
39555
  isNum: isUS,
39513
39556
  formatter: isUS ? zipFormat : null,
@@ -39520,7 +39563,8 @@ var AddressForm = function AddressForm(_ref) {
39520
39563
  return e.key === "Enter" && handleSubmit(e);
39521
39564
  },
39522
39565
  autocompleteValue: "postal-code",
39523
- dataQa: "Zip code"
39566
+ dataQa: "Zip code",
39567
+ isRequired: true
39524
39568
  }), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
39525
39569
  name: "address checkbox",
39526
39570
  title: "Save address to wallet",
@@ -47987,7 +48031,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
47987
48031
  onKeyDown: function onKeyDown(e) {
47988
48032
  return e.key === "Enter" && handleSubmit(e);
47989
48033
  },
47990
- autocompleteValue: "name"
48034
+ autocompleteValue: "name",
48035
+ isRequired: true
47991
48036
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
47992
48037
  labelTextWhenNoError: "Routing number",
47993
48038
  dataQa: "Routing number",
@@ -48009,7 +48054,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48009
48054
  },
48010
48055
  onKeyDown: function onKeyDown(e) {
48011
48056
  return e.key === "Enter" && handleSubmit(e);
48012
- }
48057
+ },
48058
+ isRequired: true
48013
48059
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
48014
48060
  labelTextWhenNoError: "Confirm routing number",
48015
48061
  dataQa: "Confirm routing number",
@@ -48020,6 +48066,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48020
48066
  onKeyDown: function onKeyDown(e) {
48021
48067
  return e.key === "Enter" && handleSubmit(e);
48022
48068
  },
48069
+ isRequired: true,
48023
48070
  isNum: true
48024
48071
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
48025
48072
  labelTextWhenNoError: "Account number",
@@ -48028,6 +48075,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48028
48075
  field: fields.accountNumber,
48029
48076
  fieldActions: actions.fields.accountNumber,
48030
48077
  showErrors: showErrors,
48078
+ isRequired: true,
48031
48079
  isNum: true,
48032
48080
  helperModal: function helperModal() {
48033
48081
  return /*#__PURE__*/React__default.createElement(AccountAndRoutingModal$1, {
@@ -48046,6 +48094,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48046
48094
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
48047
48095
  labelTextWhenNoError: "Confirm account number",
48048
48096
  dataQa: "Confirm account number",
48097
+ isRequired: true,
48049
48098
  errorMessages: confirmAccountNumberErrors,
48050
48099
  field: fields.confirmAccountNumber,
48051
48100
  fieldActions: actions.fields.confirmAccountNumber,
@@ -48056,6 +48105,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48056
48105
  isNum: true
48057
48106
  }), allowBankAccountType && /*#__PURE__*/React__default.createElement(FormSelect$1, {
48058
48107
  labelTextWhenNoError: "Account type",
48108
+ isRequired: true,
48059
48109
  dataQa: "Account type",
48060
48110
  options: [{
48061
48111
  text: "Select account type",
@@ -48186,6 +48236,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48186
48236
  "aria-label": "Card payment"
48187
48237
  }, /*#__PURE__*/React__default.createElement(FormInputColumn, null, !hideZipCode && /*#__PURE__*/React__default.createElement(CountryDropdown, {
48188
48238
  labelTextWhenNoError: "Country",
48239
+ isRequired: true,
48189
48240
  errorMessages: countryErrorMessages,
48190
48241
  field: fields.country,
48191
48242
  onChange: function onChange(value) {
@@ -48208,8 +48259,10 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48208
48259
  onKeyDown: function onKeyDown(e) {
48209
48260
  return e.key === "Enter" && handleSubmit(e);
48210
48261
  },
48211
- autocompleteValue: "cc-name"
48262
+ autocompleteValue: "cc-name",
48263
+ isRequired: true
48212
48264
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
48265
+ isRequired: true,
48213
48266
  labelTextWhenNoError: "Credit card number",
48214
48267
  dataQa: "Credit card number",
48215
48268
  errorMessages: creditCardNumberErrors,
@@ -48239,7 +48292,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48239
48292
  isNum: true,
48240
48293
  removeFromValue: /\// // removes "/" from browser autofill
48241
48294
  ,
48242
- autocompleteValue: "cc-exp"
48295
+ autocompleteValue: "cc-exp",
48296
+ isRequired: true
48243
48297
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
48244
48298
  labelTextWhenNoError: "CVV",
48245
48299
  dataQa: "CVV",
@@ -48252,7 +48306,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48252
48306
  onKeyDown: function onKeyDown(e) {
48253
48307
  return e.key === "Enter" && handleSubmit(e);
48254
48308
  },
48255
- autocompleteValue: "cc-csc"
48309
+ autocompleteValue: "cc-csc",
48310
+ isRequired: true
48256
48311
  })), !hideZipCode && /*#__PURE__*/React__default.createElement(Box, {
48257
48312
  padding: isMobile ? "0" : "0 0.5rem 0 0",
48258
48313
  width: isMobile ? "100%" : "50%"
@@ -48268,7 +48323,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48268
48323
  onKeyDown: function onKeyDown(e) {
48269
48324
  return e.key === "Enter" && handleSubmit(e);
48270
48325
  },
48271
- autocompleteValue: "billing postal-code"
48326
+ autocompleteValue: "billing postal-code",
48327
+ isRequired: true
48272
48328
  })), (showWalletCheckbox || showTerms) && /*#__PURE__*/React__default.createElement(Cluster, {
48273
48329
  childGap: "4px",
48274
48330
  align: "center"
@@ -48516,7 +48572,7 @@ PhoneForm.mapDispatchToProps = mapDispatchToProps$8;
48516
48572
  var DefaultHeading = styled__default.div.withConfig({
48517
48573
  displayName: "RadioGroup__DefaultHeading",
48518
48574
  componentId: "sc-7lqrl8-0"
48519
- })(["font-size:0.875rem;color:", " margin:0;padding:8px 0px;"], CHARADE_GREY);
48575
+ })(["font-size:0.875rem;color:", ";margin:0;padding:8px 0px;"], CHARADE_GREY);
48520
48576
  var StyledFieldset = styled__default.fieldset.withConfig({
48521
48577
  displayName: "RadioGroup__StyledFieldset",
48522
48578
  componentId: "sc-7lqrl8-1"
@@ -48737,7 +48793,8 @@ var RadioSection = function RadioSection(_ref) {
48737
48793
  toggleRadio: section.disabled ? noop : function () {
48738
48794
  return toggleOpenSection(section.id);
48739
48795
  },
48740
- tabIndex: "-1"
48796
+ tabIndex: "-1",
48797
+ required: section === null || section === void 0 ? void 0 : section.required
48741
48798
  })), section.titleIcon && /*#__PURE__*/React__default.createElement(Cluster, {
48742
48799
  align: "center"
48743
48800
  }, section.titleIcon), /*#__PURE__*/React__default.createElement(Box, {