@thecb/components 9.2.4-beta.13 → 9.2.4-beta.14

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
@@ -25076,6 +25076,8 @@ var CountryDropdown = function CountryDropdown(_ref) {
25076
25076
  fieldActions = _ref.fieldActions,
25077
25077
  showErrors = _ref.showErrors,
25078
25078
  onChange = _ref.onChange,
25079
+ _ref$isRequired = _ref.isRequired,
25080
+ isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired,
25079
25081
  _ref$dataQa = _ref.dataQa,
25080
25082
  dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa;
25081
25083
  return /*#__PURE__*/React__default.createElement(FormSelect$1, {
@@ -25087,7 +25089,8 @@ var CountryDropdown = function CountryDropdown(_ref) {
25087
25089
  errorMessages: errorMessages,
25088
25090
  showErrors: showErrors,
25089
25091
  onChange: onChange,
25090
- autocompleteValue: "country-name"
25092
+ autocompleteValue: "country-name",
25093
+ isRequired: isRequired
25091
25094
  });
25092
25095
  };
25093
25096
 
@@ -38127,7 +38130,9 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
38127
38130
  field = _ref.field,
38128
38131
  fieldActions = _ref.fieldActions,
38129
38132
  showErrors = _ref.showErrors,
38130
- countryCode = _ref.countryCode;
38133
+ countryCode = _ref.countryCode,
38134
+ _ref$isRequired = _ref.isRequired,
38135
+ isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
38131
38136
  var placeholder = countryCode === "US" ? placeHolderOptionUS : placeHolderOption;
38132
38137
  var options = [placeholder].concat(_toConsumableArray(getOptions(countryCode)));
38133
38138
  return /*#__PURE__*/React__default.createElement(FormSelect$1, {
@@ -38137,7 +38142,8 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
38137
38142
  labelTextWhenNoError: labelTextWhenNoError,
38138
38143
  errorMessages: errorMessages,
38139
38144
  showErrors: showErrors,
38140
- autocompleteValue: "address-level1"
38145
+ autocompleteValue: "address-level1",
38146
+ isRequired: isRequired
38141
38147
  });
38142
38148
  };
38143
38149
 
@@ -39476,7 +39482,8 @@ var AddressForm = function AddressForm(_ref) {
39476
39482
  }
39477
39483
  },
39478
39484
  showErrors: showErrors,
39479
- dataQa: "Country"
39485
+ dataQa: "Country",
39486
+ isRequired: true
39480
39487
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
39481
39488
  labelTextWhenNoError: "Address",
39482
39489
  errorMessages: street1ErrorMessages,
@@ -39487,7 +39494,8 @@ var AddressForm = function AddressForm(_ref) {
39487
39494
  return e.key === "Enter" && handleSubmit(e);
39488
39495
  },
39489
39496
  autocompleteValue: "address-line1",
39490
- dataQa: "Address"
39497
+ dataQa: "Address",
39498
+ isRequired: true
39491
39499
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
39492
39500
  labelTextWhenNoError: "Apt, Suite, Unit, Floor, etc. (Optional)",
39493
39501
  field: fields.street2,
@@ -39508,7 +39516,8 @@ var AddressForm = function AddressForm(_ref) {
39508
39516
  return e.key === "Enter" && handleSubmit(e);
39509
39517
  },
39510
39518
  autocompleteValue: "address-level2",
39511
- dataQa: "City"
39519
+ dataQa: "City",
39520
+ isRequired: true
39512
39521
  }), /*#__PURE__*/React__default.createElement(FormStateDropdown, {
39513
39522
  labelTextWhenNoError: isUS ? "State" : "State or Province",
39514
39523
  errorMessages: stateProvinceErrorMessages,
@@ -39519,7 +39528,8 @@ var AddressForm = function AddressForm(_ref) {
39519
39528
  onKeyDown: function onKeyDown(e) {
39520
39529
  return e.key === "Enter" && handleSubmit(e);
39521
39530
  },
39522
- dataQa: "State or Province"
39531
+ dataQa: "State or Province",
39532
+ isRequired: true
39523
39533
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
39524
39534
  isNum: isUS,
39525
39535
  formatter: isUS ? zipFormat : null,
@@ -39532,7 +39542,8 @@ var AddressForm = function AddressForm(_ref) {
39532
39542
  return e.key === "Enter" && handleSubmit(e);
39533
39543
  },
39534
39544
  autocompleteValue: "postal-code",
39535
- dataQa: "Zip code"
39545
+ dataQa: "Zip code",
39546
+ isRequired: true
39536
39547
  }), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
39537
39548
  name: "address checkbox",
39538
39549
  title: "Save address to wallet",