@thecb/components 9.2.1-beta.0 → 9.2.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.
Files changed (28) hide show
  1. package/dist/index.cjs.js +200 -212
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +200 -212
  4. package/dist/index.esm.js.map +1 -1
  5. package/package.json +1 -1
  6. package/src/components/atoms/checkbox/Checkbox.js +1 -3
  7. package/src/components/atoms/checkbox/Checkbox.stories.js +2 -3
  8. package/src/components/atoms/country-dropdown/CountryDropdown.js +1 -3
  9. package/src/components/atoms/country-dropdown/CountryDropdown.stories.js +0 -1
  10. package/src/components/atoms/dropdown/Dropdown.js +3 -7
  11. package/src/components/atoms/form-layouts/FormInput.js +0 -3
  12. package/src/components/atoms/form-select/FormSelect.js +25 -36
  13. package/src/components/atoms/form-select/FormSelect.stories.js +2 -2
  14. package/src/components/atoms/radio-button-with-label/RadioButtonWithLabel.js +6 -9
  15. package/src/components/atoms/state-province-dropdown/StateProvinceDropdown.js +1 -4
  16. package/src/components/atoms/state-province-dropdown/StateProvinceDropdown.stories.js +0 -1
  17. package/src/components/molecules/address-form/AddressForm.js +0 -6
  18. package/src/components/molecules/payment-form-ach/PaymentFormACH.js +0 -6
  19. package/src/components/molecules/payment-form-card/PaymentFormCard.js +0 -6
  20. package/src/components/molecules/radio-group/RadioGroup.js +1 -1
  21. package/src/components/molecules/radio-section/RadioSection.js +0 -1
  22. package/src/components/molecules/radio-section/RadioSection.stories.js +2 -3
  23. package/src/components/molecules/radio-section/radio-button/RadioButton.js +1 -4
  24. package/dist/src/apps/checkout/pages/payment/sub-pages/payment-amount/PaymentAmount_old.js +0 -49322
  25. package/src/.DS_Store +0 -0
  26. package/src/components/.DS_Store +0 -0
  27. package/src/components/atoms/.DS_Store +0 -0
  28. package/src/components/atoms/icons/.DS_Store +0 -0
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,
@@ -22422,17 +22419,18 @@ var DropdownIcon = function DropdownIcon() {
22422
22419
  };
22423
22420
 
22424
22421
  var check = function (it) {
22425
- return it && it.Math == Math && it;
22422
+ return it && it.Math === Math && it;
22426
22423
  };
22427
22424
 
22428
22425
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
22429
22426
  var global_1 =
22430
- // eslint-disable-next-line es-x/no-global-this -- safe
22427
+ // eslint-disable-next-line es/no-global-this -- safe
22431
22428
  check(typeof globalThis == 'object' && globalThis) ||
22432
22429
  check(typeof window == 'object' && window) ||
22433
22430
  // eslint-disable-next-line no-restricted-globals -- safe
22434
22431
  check(typeof self == 'object' && self) ||
22435
22432
  check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
22433
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
22436
22434
  // eslint-disable-next-line no-new-func -- fallback
22437
22435
  (function () { return this; })() || Function('return this')();
22438
22436
 
@@ -22446,12 +22444,12 @@ var fails = function (exec) {
22446
22444
 
22447
22445
  // Detect IE8's incomplete defineProperty implementation
22448
22446
  var descriptors = !fails(function () {
22449
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
22450
- return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
22447
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
22448
+ return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
22451
22449
  });
22452
22450
 
22453
22451
  var functionBindNative = !fails(function () {
22454
- // eslint-disable-next-line es-x/no-function-prototype-bind -- safe
22452
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
22455
22453
  var test = (function () { /* empty */ }).bind();
22456
22454
  // eslint-disable-next-line no-prototype-builtins -- safe
22457
22455
  return typeof test != 'function' || test.hasOwnProperty('prototype');
@@ -22464,7 +22462,7 @@ var functionCall = functionBindNative ? call.bind(call) : function () {
22464
22462
  };
22465
22463
 
22466
22464
  var $propertyIsEnumerable = {}.propertyIsEnumerable;
22467
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
22465
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
22468
22466
  var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
22469
22467
 
22470
22468
  // Nashorn ~ JDK8 bug
@@ -22491,14 +22489,11 @@ var createPropertyDescriptor = function (bitmap, value) {
22491
22489
  };
22492
22490
 
22493
22491
  var FunctionPrototype = Function.prototype;
22494
- var bind$1 = FunctionPrototype.bind;
22495
22492
  var call$1 = FunctionPrototype.call;
22496
- var uncurryThis = functionBindNative && bind$1.bind(call$1, call$1);
22493
+ var uncurryThisWithBind = functionBindNative && FunctionPrototype.bind.bind(call$1, call$1);
22497
22494
 
22498
- var functionUncurryThis = functionBindNative ? function (fn) {
22499
- return fn && uncurryThis(fn);
22500
- } : function (fn) {
22501
- return fn && function () {
22495
+ var functionUncurryThis = functionBindNative ? uncurryThisWithBind : function (fn) {
22496
+ return function () {
22502
22497
  return call$1.apply(fn, arguments);
22503
22498
  };
22504
22499
  };
@@ -22519,15 +22514,21 @@ var indexedObject = fails(function () {
22519
22514
  // eslint-disable-next-line no-prototype-builtins -- safe
22520
22515
  return !$Object('z').propertyIsEnumerable(0);
22521
22516
  }) ? function (it) {
22522
- return classofRaw(it) == 'String' ? split(it, '') : $Object(it);
22517
+ return classofRaw(it) === 'String' ? split(it, '') : $Object(it);
22523
22518
  } : $Object;
22524
22519
 
22520
+ // we can't use just `it == null` since of `document.all` special case
22521
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
22522
+ var isNullOrUndefined = function (it) {
22523
+ return it === null || it === undefined;
22524
+ };
22525
+
22525
22526
  var $TypeError = TypeError;
22526
22527
 
22527
22528
  // `RequireObjectCoercible` abstract operation
22528
22529
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
22529
22530
  var requireObjectCoercible = function (it) {
22530
- if (it == undefined) throw $TypeError("Can't call method on " + it);
22531
+ if (isNullOrUndefined(it)) throw new $TypeError("Can't call method on " + it);
22531
22532
  return it;
22532
22533
  };
22533
22534
 
@@ -22539,13 +22540,32 @@ var toIndexedObject = function (it) {
22539
22540
  return indexedObject(requireObjectCoercible(it));
22540
22541
  };
22541
22542
 
22543
+ var documentAll = typeof document == 'object' && document.all;
22544
+
22545
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
22546
+ // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
22547
+ var IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;
22548
+
22549
+ var documentAll_1 = {
22550
+ all: documentAll,
22551
+ IS_HTMLDDA: IS_HTMLDDA
22552
+ };
22553
+
22554
+ var documentAll$1 = documentAll_1.all;
22555
+
22542
22556
  // `IsCallable` abstract operation
22543
22557
  // https://tc39.es/ecma262/#sec-iscallable
22544
- var isCallable = function (argument) {
22558
+ var isCallable = documentAll_1.IS_HTMLDDA ? function (argument) {
22559
+ return typeof argument == 'function' || argument === documentAll$1;
22560
+ } : function (argument) {
22545
22561
  return typeof argument == 'function';
22546
22562
  };
22547
22563
 
22548
- var isObject = function (it) {
22564
+ var documentAll$2 = documentAll_1.all;
22565
+
22566
+ var isObject = documentAll_1.IS_HTMLDDA ? function (it) {
22567
+ return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll$2;
22568
+ } : function (it) {
22549
22569
  return typeof it == 'object' ? it !== null : isCallable(it);
22550
22570
  };
22551
22571
 
@@ -22559,7 +22579,7 @@ var getBuiltIn = function (namespace, method) {
22559
22579
 
22560
22580
  var objectIsPrototypeOf = functionUncurryThis({}.isPrototypeOf);
22561
22581
 
22562
- var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
22582
+ var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
22563
22583
 
22564
22584
  var process$1 = global_1.process;
22565
22585
  var Deno = global_1.Deno;
@@ -22586,24 +22606,29 @@ if (!version && engineUserAgent) {
22586
22606
 
22587
22607
  var engineV8Version = version;
22588
22608
 
22589
- /* eslint-disable es-x/no-symbol -- required for testing */
22609
+ /* eslint-disable es/no-symbol -- required for testing */
22610
+
22590
22611
 
22591
22612
 
22592
22613
 
22593
- // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
22594
- var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
22595
- var symbol = Symbol();
22614
+ var $String = global_1.String;
22615
+
22616
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
22617
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails(function () {
22618
+ var symbol = Symbol('symbol detection');
22596
22619
  // Chrome 38 Symbol has incorrect toString conversion
22597
22620
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
22598
- return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
22621
+ // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
22622
+ // of course, fail.
22623
+ return !$String(symbol) || !(Object(symbol) instanceof Symbol) ||
22599
22624
  // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
22600
22625
  !Symbol.sham && engineV8Version && engineV8Version < 41;
22601
22626
  });
22602
22627
 
22603
- /* eslint-disable es-x/no-symbol -- required for testing */
22628
+ /* eslint-disable es/no-symbol -- required for testing */
22604
22629
 
22605
22630
 
22606
- var useSymbolAsUid = nativeSymbol
22631
+ var useSymbolAsUid = symbolConstructorDetection
22607
22632
  && !Symbol.sham
22608
22633
  && typeof Symbol.iterator == 'symbol';
22609
22634
 
@@ -22616,11 +22641,11 @@ var isSymbol = useSymbolAsUid ? function (it) {
22616
22641
  return isCallable($Symbol) && objectIsPrototypeOf($Symbol.prototype, $Object$1(it));
22617
22642
  };
22618
22643
 
22619
- var $String = String;
22644
+ var $String$1 = String;
22620
22645
 
22621
22646
  var tryToString = function (argument) {
22622
22647
  try {
22623
- return $String(argument);
22648
+ return $String$1(argument);
22624
22649
  } catch (error) {
22625
22650
  return 'Object';
22626
22651
  }
@@ -22631,14 +22656,14 @@ var $TypeError$1 = TypeError;
22631
22656
  // `Assert: IsCallable(argument) is true`
22632
22657
  var aCallable = function (argument) {
22633
22658
  if (isCallable(argument)) return argument;
22634
- throw $TypeError$1(tryToString(argument) + ' is not a function');
22659
+ throw new $TypeError$1(tryToString(argument) + ' is not a function');
22635
22660
  };
22636
22661
 
22637
22662
  // `GetMethod` abstract operation
22638
22663
  // https://tc39.es/ecma262/#sec-getmethod
22639
22664
  var getMethod = function (V, P) {
22640
22665
  var func = V[P];
22641
- return func == null ? undefined : aCallable(func);
22666
+ return isNullOrUndefined(func) ? undefined : aCallable(func);
22642
22667
  };
22643
22668
 
22644
22669
  var $TypeError$2 = TypeError;
@@ -22650,10 +22675,10 @@ var ordinaryToPrimitive = function (input, pref) {
22650
22675
  if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
22651
22676
  if (isCallable(fn = input.valueOf) && !isObject(val = functionCall(fn, input))) return val;
22652
22677
  if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
22653
- throw $TypeError$2("Can't convert object to primitive value");
22678
+ throw new $TypeError$2("Can't convert object to primitive value");
22654
22679
  };
22655
22680
 
22656
- // eslint-disable-next-line es-x/no-object-defineproperty -- safe
22681
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
22657
22682
  var defineProperty = Object.defineProperty;
22658
22683
 
22659
22684
  var defineGlobalProperty = function (key, value) {
@@ -22670,13 +22695,16 @@ var store = global_1[SHARED] || defineGlobalProperty(SHARED, {});
22670
22695
  var sharedStore = store;
22671
22696
 
22672
22697
  var shared = createCommonjsModule(function (module) {
22698
+
22699
+
22700
+
22673
22701
  (module.exports = function (key, value) {
22674
22702
  return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
22675
22703
  })('versions', []).push({
22676
- version: '3.24.1',
22704
+ version: '3.33.3',
22677
22705
  mode: 'global',
22678
- copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
22679
- license: 'https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE',
22706
+ copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
22707
+ license: 'https://github.com/zloirock/core-js/blob/v3.33.3/LICENSE',
22680
22708
  source: 'https://github.com/zloirock/core-js'
22681
22709
  });
22682
22710
  });
@@ -22693,7 +22721,7 @@ var hasOwnProperty = functionUncurryThis({}.hasOwnProperty);
22693
22721
 
22694
22722
  // `HasOwnProperty` abstract operation
22695
22723
  // https://tc39.es/ecma262/#sec-hasownproperty
22696
- // eslint-disable-next-line es-x/no-object-hasown -- safe
22724
+ // eslint-disable-next-line es/no-object-hasown -- safe
22697
22725
  var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
22698
22726
  return hasOwnProperty(toObject(it), key);
22699
22727
  };
@@ -22706,21 +22734,15 @@ var uid = function (key) {
22706
22734
  return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$3(++id + postfix, 36);
22707
22735
  };
22708
22736
 
22709
- var WellKnownSymbolsStore = shared('wks');
22710
22737
  var Symbol$1 = global_1.Symbol;
22711
- var symbolFor = Symbol$1 && Symbol$1['for'];
22712
- var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
22738
+ var WellKnownSymbolsStore = shared('wks');
22739
+ var createWellKnownSymbol = useSymbolAsUid ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
22713
22740
 
22714
22741
  var wellKnownSymbol = function (name) {
22715
- if (!hasOwnProperty_1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
22716
- var description = 'Symbol.' + name;
22717
- if (nativeSymbol && hasOwnProperty_1(Symbol$1, name)) {
22718
- WellKnownSymbolsStore[name] = Symbol$1[name];
22719
- } else if (useSymbolAsUid && symbolFor) {
22720
- WellKnownSymbolsStore[name] = symbolFor(description);
22721
- } else {
22722
- WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
22723
- }
22742
+ if (!hasOwnProperty_1(WellKnownSymbolsStore, name)) {
22743
+ WellKnownSymbolsStore[name] = symbolConstructorDetection && hasOwnProperty_1(Symbol$1, name)
22744
+ ? Symbol$1[name]
22745
+ : createWellKnownSymbol('Symbol.' + name);
22724
22746
  } return WellKnownSymbolsStore[name];
22725
22747
  };
22726
22748
 
@@ -22737,7 +22759,7 @@ var toPrimitive = function (input, pref) {
22737
22759
  if (pref === undefined) pref = 'default';
22738
22760
  result = functionCall(exoticToPrim, input, pref);
22739
22761
  if (!isObject(result) || isSymbol(result)) return result;
22740
- throw $TypeError$3("Can't convert object to primitive value");
22762
+ throw new $TypeError$3("Can't convert object to primitive value");
22741
22763
  }
22742
22764
  if (pref === undefined) pref = 'number';
22743
22765
  return ordinaryToPrimitive(input, pref);
@@ -22760,13 +22782,13 @@ var documentCreateElement = function (it) {
22760
22782
 
22761
22783
  // Thanks to IE8 for its funny defineProperty
22762
22784
  var ie8DomDefine = !descriptors && !fails(function () {
22763
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
22785
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
22764
22786
  return Object.defineProperty(documentCreateElement('div'), 'a', {
22765
22787
  get: function () { return 7; }
22766
- }).a != 7;
22788
+ }).a !== 7;
22767
22789
  });
22768
22790
 
22769
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
22791
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
22770
22792
  var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
22771
22793
 
22772
22794
  // `Object.getOwnPropertyDescriptor` method
@@ -22787,26 +22809,26 @@ var objectGetOwnPropertyDescriptor = {
22787
22809
  // V8 ~ Chrome 36-
22788
22810
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
22789
22811
  var v8PrototypeDefineBug = descriptors && fails(function () {
22790
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
22812
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
22791
22813
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
22792
22814
  value: 42,
22793
22815
  writable: false
22794
- }).prototype != 42;
22816
+ }).prototype !== 42;
22795
22817
  });
22796
22818
 
22797
- var $String$1 = String;
22819
+ var $String$2 = String;
22798
22820
  var $TypeError$4 = TypeError;
22799
22821
 
22800
22822
  // `Assert: Type(argument) is Object`
22801
22823
  var anObject = function (argument) {
22802
22824
  if (isObject(argument)) return argument;
22803
- throw $TypeError$4($String$1(argument) + ' is not an object');
22825
+ throw new $TypeError$4($String$2(argument) + ' is not an object');
22804
22826
  };
22805
22827
 
22806
22828
  var $TypeError$5 = TypeError;
22807
- // eslint-disable-next-line es-x/no-object-defineproperty -- safe
22829
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
22808
22830
  var $defineProperty = Object.defineProperty;
22809
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
22831
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
22810
22832
  var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
22811
22833
  var ENUMERABLE = 'enumerable';
22812
22834
  var CONFIGURABLE = 'configurable';
@@ -22836,7 +22858,7 @@ var f$2 = descriptors ? v8PrototypeDefineBug ? function defineProperty(O, P, Att
22836
22858
  if (ie8DomDefine) try {
22837
22859
  return $defineProperty(O, P, Attributes);
22838
22860
  } catch (error) { /* empty */ }
22839
- if ('get' in Attributes || 'set' in Attributes) throw $TypeError$5('Accessors not supported');
22861
+ if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$5('Accessors not supported');
22840
22862
  if ('value' in Attributes) O[P] = Attributes.value;
22841
22863
  return O;
22842
22864
  };
@@ -22853,7 +22875,7 @@ var createNonEnumerableProperty = descriptors ? function (object, key, value) {
22853
22875
  };
22854
22876
 
22855
22877
  var FunctionPrototype$1 = Function.prototype;
22856
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
22878
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
22857
22879
  var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
22858
22880
 
22859
22881
  var EXISTS$1 = hasOwnProperty_1(FunctionPrototype$1, 'name');
@@ -22880,7 +22902,7 @@ var inspectSource = sharedStore.inspectSource;
22880
22902
 
22881
22903
  var WeakMap$1 = global_1.WeakMap;
22882
22904
 
22883
- var nativeWeakMap = isCallable(WeakMap$1) && /native code/.test(inspectSource(WeakMap$1));
22905
+ var weakMapBasicDetection = isCallable(WeakMap$1) && /native code/.test(String(WeakMap$1));
22884
22906
 
22885
22907
  var keys$1 = shared('keys');
22886
22908
 
@@ -22903,27 +22925,29 @@ var getterFor = function (TYPE) {
22903
22925
  return function (it) {
22904
22926
  var state;
22905
22927
  if (!isObject(it) || (state = get(it)).type !== TYPE) {
22906
- throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
22928
+ throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
22907
22929
  } return state;
22908
22930
  };
22909
22931
  };
22910
22932
 
22911
- if (nativeWeakMap || sharedStore.state) {
22933
+ if (weakMapBasicDetection || sharedStore.state) {
22912
22934
  var store$1 = sharedStore.state || (sharedStore.state = new WeakMap$2());
22913
- var wmget = functionUncurryThis(store$1.get);
22914
- var wmhas = functionUncurryThis(store$1.has);
22915
- var wmset = functionUncurryThis(store$1.set);
22935
+ /* eslint-disable no-self-assign -- prototype methods protection */
22936
+ store$1.get = store$1.get;
22937
+ store$1.has = store$1.has;
22938
+ store$1.set = store$1.set;
22939
+ /* eslint-enable no-self-assign -- prototype methods protection */
22916
22940
  set = function (it, metadata) {
22917
- if (wmhas(store$1, it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
22941
+ if (store$1.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
22918
22942
  metadata.facade = it;
22919
- wmset(store$1, it, metadata);
22943
+ store$1.set(it, metadata);
22920
22944
  return metadata;
22921
22945
  };
22922
22946
  get = function (it) {
22923
- return wmget(store$1, it) || {};
22947
+ return store$1.get(it) || {};
22924
22948
  };
22925
22949
  has = function (it) {
22926
- return wmhas(store$1, it);
22950
+ return store$1.has(it);
22927
22951
  };
22928
22952
  } else {
22929
22953
  var STATE = sharedKey('state');
@@ -22951,14 +22975,23 @@ var internalState = {
22951
22975
  };
22952
22976
 
22953
22977
  var makeBuiltIn_1 = createCommonjsModule(function (module) {
22978
+
22979
+
22980
+
22981
+
22982
+
22954
22983
  var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
22955
22984
 
22956
22985
 
22957
22986
 
22958
22987
  var enforceInternalState = internalState.enforce;
22959
22988
  var getInternalState = internalState.get;
22960
- // eslint-disable-next-line es-x/no-object-defineproperty -- safe
22989
+ var $String = String;
22990
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
22961
22991
  var defineProperty = Object.defineProperty;
22992
+ var stringSlice = functionUncurryThis(''.slice);
22993
+ var replace = functionUncurryThis(''.replace);
22994
+ var join = functionUncurryThis([].join);
22962
22995
 
22963
22996
  var CONFIGURABLE_LENGTH = descriptors && !fails(function () {
22964
22997
  return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
@@ -22967,8 +23000,8 @@ var CONFIGURABLE_LENGTH = descriptors && !fails(function () {
22967
23000
  var TEMPLATE = String(String).split('String');
22968
23001
 
22969
23002
  var makeBuiltIn = module.exports = function (value, name, options) {
22970
- if (String(name).slice(0, 7) === 'Symbol(') {
22971
- name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
23003
+ if (stringSlice($String(name), 0, 7) === 'Symbol(') {
23004
+ name = '[' + replace($String(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
22972
23005
  }
22973
23006
  if (options && options.getter) name = 'get ' + name;
22974
23007
  if (options && options.setter) name = 'set ' + name;
@@ -22987,7 +23020,7 @@ var makeBuiltIn = module.exports = function (value, name, options) {
22987
23020
  } catch (error) { /* empty */ }
22988
23021
  var state = enforceInternalState(value);
22989
23022
  if (!hasOwnProperty_1(state, 'source')) {
22990
- state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
23023
+ state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
22991
23024
  } return value;
22992
23025
  };
22993
23026
 
@@ -23026,7 +23059,7 @@ var floor = Math.floor;
23026
23059
 
23027
23060
  // `Math.trunc` method
23028
23061
  // https://tc39.es/ecma262/#sec-math.trunc
23029
- // eslint-disable-next-line es-x/no-math-trunc -- safe
23062
+ // eslint-disable-next-line es/no-math-trunc -- safe
23030
23063
  var mathTrunc = Math.trunc || function trunc(x) {
23031
23064
  var n = +x;
23032
23065
  return (n > 0 ? floor : ceil)(n);
@@ -23074,10 +23107,10 @@ var createMethod = function (IS_INCLUDES) {
23074
23107
  var value;
23075
23108
  // Array#includes uses SameValueZero equality algorithm
23076
23109
  // eslint-disable-next-line no-self-compare -- NaN check
23077
- if (IS_INCLUDES && el != el) while (length > index) {
23110
+ if (IS_INCLUDES && el !== el) while (length > index) {
23078
23111
  value = O[index++];
23079
23112
  // eslint-disable-next-line no-self-compare -- NaN check
23080
- if (value != value) return true;
23113
+ if (value !== value) return true;
23081
23114
  // Array#indexOf ignores holes, Array#includes - not
23082
23115
  } else for (;length > index; index++) {
23083
23116
  if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
@@ -23127,7 +23160,7 @@ var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype');
23127
23160
 
23128
23161
  // `Object.getOwnPropertyNames` method
23129
23162
  // https://tc39.es/ecma262/#sec-object.getownpropertynames
23130
- // eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
23163
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
23131
23164
  var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
23132
23165
  return objectKeysInternal(O, hiddenKeys$1);
23133
23166
  };
@@ -23136,7 +23169,7 @@ var objectGetOwnPropertyNames = {
23136
23169
  f: f$3
23137
23170
  };
23138
23171
 
23139
- // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
23172
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
23140
23173
  var f$4 = Object.getOwnPropertySymbols;
23141
23174
 
23142
23175
  var objectGetOwnPropertySymbols = {
@@ -23168,8 +23201,8 @@ var replacement = /#|\.prototype\./;
23168
23201
 
23169
23202
  var isForced = function (feature, detection) {
23170
23203
  var value = data[normalize(feature)];
23171
- return value == POLYFILL ? true
23172
- : value == NATIVE ? false
23204
+ return value === POLYFILL ? true
23205
+ : value === NATIVE ? false
23173
23206
  : isCallable(detection) ? fails(detection)
23174
23207
  : !!detection;
23175
23208
  };
@@ -23249,7 +23282,7 @@ var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
23249
23282
  var $Object$3 = Object;
23250
23283
 
23251
23284
  // ES3 wrong here
23252
- var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
23285
+ var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
23253
23286
 
23254
23287
  // fallback for IE11 Script Access Denied error
23255
23288
  var tryGet = function (it, key) {
@@ -23267,25 +23300,25 @@ var classof = toStringTagSupport ? classofRaw : function (it) {
23267
23300
  // builtinTag case
23268
23301
  : CORRECT_ARGUMENTS ? classofRaw(O)
23269
23302
  // ES3 arguments fallback
23270
- : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
23303
+ : (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;
23271
23304
  };
23272
23305
 
23273
- var $String$2 = String;
23306
+ var $String$3 = String;
23274
23307
 
23275
23308
  var toString_1 = function (argument) {
23276
- if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
23277
- return $String$2(argument);
23309
+ if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
23310
+ return $String$3(argument);
23278
23311
  };
23279
23312
 
23280
23313
  var charAt = functionUncurryThis(''.charAt);
23281
23314
 
23282
23315
  var FORCED = fails(function () {
23283
- // eslint-disable-next-line es-x/no-array-string-prototype-at -- safe
23316
+ // eslint-disable-next-line es/no-array-string-prototype-at -- safe
23284
23317
  return '𠮷'.at(-2) !== '\uD842';
23285
23318
  });
23286
23319
 
23287
23320
  // `String.prototype.at` method
23288
- // https://github.com/tc39/proposal-relative-indexing-method
23321
+ // https://tc39.es/ecma262/#sec-string.prototype.at
23289
23322
  _export({ target: 'String', proto: true, forced: FORCED }, {
23290
23323
  at: function at(index) {
23291
23324
  var S = toString_1(requireObjectCoercible(this));
@@ -23298,14 +23331,14 @@ _export({ target: 'String', proto: true, forced: FORCED }, {
23298
23331
 
23299
23332
  // `Object.keys` method
23300
23333
  // https://tc39.es/ecma262/#sec-object.keys
23301
- // eslint-disable-next-line es-x/no-object-keys -- safe
23334
+ // eslint-disable-next-line es/no-object-keys -- safe
23302
23335
  var objectKeys = Object.keys || function keys(O) {
23303
23336
  return objectKeysInternal(O, enumBugKeys);
23304
23337
  };
23305
23338
 
23306
23339
  // `Object.defineProperties` method
23307
23340
  // https://tc39.es/ecma262/#sec-object.defineproperties
23308
- // eslint-disable-next-line es-x/no-object-defineproperties -- safe
23341
+ // eslint-disable-next-line es/no-object-defineproperties -- safe
23309
23342
  var f$5 = descriptors && !v8PrototypeDefineBug ? Object.defineProperties : function defineProperties(O, Properties) {
23310
23343
  anObject(O);
23311
23344
  var props = toIndexedObject(Properties);
@@ -23394,7 +23427,7 @@ hiddenKeys[IE_PROTO] = true;
23394
23427
 
23395
23428
  // `Object.create` method
23396
23429
  // https://tc39.es/ecma262/#sec-object.create
23397
- // eslint-disable-next-line es-x/no-object-create -- safe
23430
+ // eslint-disable-next-line es/no-object-create -- safe
23398
23431
  var objectCreate = Object.create || function create(O, Properties) {
23399
23432
  var result;
23400
23433
  if (O !== null) {
@@ -23414,7 +23447,7 @@ var ArrayPrototype = Array.prototype;
23414
23447
 
23415
23448
  // Array.prototype[@@unscopables]
23416
23449
  // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
23417
- if (ArrayPrototype[UNSCOPABLES] == undefined) {
23450
+ if (ArrayPrototype[UNSCOPABLES] === undefined) {
23418
23451
  defineProperty$1(ArrayPrototype, UNSCOPABLES, {
23419
23452
  configurable: true,
23420
23453
  value: objectCreate(null)
@@ -23427,7 +23460,7 @@ var addToUnscopables = function (key) {
23427
23460
  };
23428
23461
 
23429
23462
  // `Array.prototype.at` method
23430
- // https://github.com/tc39/proposal-relative-indexing-method
23463
+ // https://tc39.es/ecma262/#sec-array.prototype.at
23431
23464
  _export({ target: 'Array', proto: true }, {
23432
23465
  at: function at(index) {
23433
23466
  var O = toObject(this);
@@ -23440,13 +23473,19 @@ _export({ target: 'Array', proto: true }, {
23440
23473
 
23441
23474
  addToUnscopables('at');
23442
23475
 
23443
- // eslint-disable-next-line es-x/no-typed-arrays -- safe
23444
- var arrayBufferNative = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined';
23476
+ // eslint-disable-next-line es/no-typed-arrays -- safe
23477
+ var arrayBufferBasicDetection = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined';
23478
+
23479
+ var defineBuiltInAccessor = function (target, name, descriptor) {
23480
+ if (descriptor.get) makeBuiltIn_1(descriptor.get, name, { getter: true });
23481
+ if (descriptor.set) makeBuiltIn_1(descriptor.set, name, { setter: true });
23482
+ return objectDefineProperty.f(target, name, descriptor);
23483
+ };
23445
23484
 
23446
23485
  var correctPrototypeGetter = !fails(function () {
23447
23486
  function F() { /* empty */ }
23448
23487
  F.prototype.constructor = null;
23449
- // eslint-disable-next-line es-x/no-object-getprototypeof -- required for testing
23488
+ // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
23450
23489
  return Object.getPrototypeOf(new F()) !== F.prototype;
23451
23490
  });
23452
23491
 
@@ -23456,7 +23495,7 @@ var ObjectPrototype = $Object$4.prototype;
23456
23495
 
23457
23496
  // `Object.getPrototypeOf` method
23458
23497
  // https://tc39.es/ecma262/#sec-object.getprototypeof
23459
- // eslint-disable-next-line es-x/no-object-getprototypeof -- safe
23498
+ // eslint-disable-next-line es/no-object-getprototypeof -- safe
23460
23499
  var objectGetPrototypeOf = correctPrototypeGetter ? $Object$4.getPrototypeOf : function (O) {
23461
23500
  var object = toObject(O);
23462
23501
  if (hasOwnProperty_1(object, IE_PROTO$1)) return object[IE_PROTO$1];
@@ -23466,12 +23505,19 @@ var objectGetPrototypeOf = correctPrototypeGetter ? $Object$4.getPrototypeOf : f
23466
23505
  } return object instanceof $Object$4 ? ObjectPrototype : null;
23467
23506
  };
23468
23507
 
23469
- var $String$3 = String;
23508
+ var functionUncurryThisAccessor = function (object, key, method) {
23509
+ try {
23510
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
23511
+ return functionUncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
23512
+ } catch (error) { /* empty */ }
23513
+ };
23514
+
23515
+ var $String$4 = String;
23470
23516
  var $TypeError$6 = TypeError;
23471
23517
 
23472
23518
  var aPossiblePrototype = function (argument) {
23473
23519
  if (typeof argument == 'object' || isCallable(argument)) return argument;
23474
- throw $TypeError$6("Can't set " + $String$3(argument) + ' as a prototype');
23520
+ throw new $TypeError$6("Can't set " + $String$4(argument) + ' as a prototype');
23475
23521
  };
23476
23522
 
23477
23523
  /* eslint-disable no-proto -- safe */
@@ -23482,14 +23528,13 @@ var aPossiblePrototype = function (argument) {
23482
23528
  // `Object.setPrototypeOf` method
23483
23529
  // https://tc39.es/ecma262/#sec-object.setprototypeof
23484
23530
  // Works with __proto__ only. Old v8 can't work with null proto objects.
23485
- // eslint-disable-next-line es-x/no-object-setprototypeof -- safe
23531
+ // eslint-disable-next-line es/no-object-setprototypeof -- safe
23486
23532
  var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
23487
23533
  var CORRECT_SETTER = false;
23488
23534
  var test = {};
23489
23535
  var setter;
23490
23536
  try {
23491
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
23492
- setter = functionUncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
23537
+ setter = functionUncurryThisAccessor(Object.prototype, '__proto__', 'set');
23493
23538
  setter(test, []);
23494
23539
  CORRECT_SETTER = test instanceof Array;
23495
23540
  } catch (error) { /* empty */ }
@@ -23502,14 +23547,6 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
23502
23547
  };
23503
23548
  }() : undefined);
23504
23549
 
23505
- var defineProperty$2 = objectDefineProperty.f;
23506
-
23507
-
23508
-
23509
-
23510
-
23511
-
23512
-
23513
23550
  var enforceInternalState = internalState.enforce;
23514
23551
  var getInternalState = internalState.get;
23515
23552
  var Int8Array = global_1.Int8Array;
@@ -23525,7 +23562,7 @@ var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag');
23525
23562
  var TYPED_ARRAY_TAG = uid('TYPED_ARRAY_TAG');
23526
23563
  var TYPED_ARRAY_CONSTRUCTOR = 'TypedArrayConstructor';
23527
23564
  // Fixing native typed arrays in Opera Presto crashes the browser, see #595
23528
- var NATIVE_ARRAY_BUFFER_VIEWS = arrayBufferNative && !!objectSetPrototypeOf && classof(global_1.opera) !== 'Opera';
23565
+ var NATIVE_ARRAY_BUFFER_VIEWS = arrayBufferBasicDetection && !!objectSetPrototypeOf && classof(global_1.opera) !== 'Opera';
23529
23566
  var TYPED_ARRAY_TAG_REQUIRED = false;
23530
23567
  var NAME, Constructor, Prototype;
23531
23568
 
@@ -23570,12 +23607,12 @@ var isTypedArray = function (it) {
23570
23607
 
23571
23608
  var aTypedArray = function (it) {
23572
23609
  if (isTypedArray(it)) return it;
23573
- throw TypeError$2('Target is not a typed array');
23610
+ throw new TypeError$2('Target is not a typed array');
23574
23611
  };
23575
23612
 
23576
23613
  var aTypedArrayConstructor = function (C) {
23577
23614
  if (isCallable(C) && (!objectSetPrototypeOf || objectIsPrototypeOf(TypedArray, C))) return C;
23578
- throw TypeError$2(tryToString(C) + ' is not a typed array constructor');
23615
+ throw new TypeError$2(tryToString(C) + ' is not a typed array constructor');
23579
23616
  };
23580
23617
 
23581
23618
  var exportTypedArrayMethod = function (KEY, property, forced, options) {
@@ -23639,7 +23676,7 @@ for (NAME in BigIntArrayConstructorsList) {
23639
23676
  if (!NATIVE_ARRAY_BUFFER_VIEWS || !isCallable(TypedArray) || TypedArray === Function.prototype) {
23640
23677
  // eslint-disable-next-line no-shadow -- safe
23641
23678
  TypedArray = function TypedArray() {
23642
- throw TypeError$2('Incorrect invocation');
23679
+ throw new TypeError$2('Incorrect invocation');
23643
23680
  };
23644
23681
  if (NATIVE_ARRAY_BUFFER_VIEWS) for (NAME in TypedArrayConstructorsList) {
23645
23682
  if (global_1[NAME]) objectSetPrototypeOf(global_1[NAME], TypedArray);
@@ -23660,9 +23697,12 @@ if (NATIVE_ARRAY_BUFFER_VIEWS && objectGetPrototypeOf(Uint8ClampedArrayPrototype
23660
23697
 
23661
23698
  if (descriptors && !hasOwnProperty_1(TypedArrayPrototype, TO_STRING_TAG$2)) {
23662
23699
  TYPED_ARRAY_TAG_REQUIRED = true;
23663
- defineProperty$2(TypedArrayPrototype, TO_STRING_TAG$2, { get: function () {
23664
- return isObject(this) ? this[TYPED_ARRAY_TAG] : undefined;
23665
- } });
23700
+ defineBuiltInAccessor(TypedArrayPrototype, TO_STRING_TAG$2, {
23701
+ configurable: true,
23702
+ get: function () {
23703
+ return isObject(this) ? this[TYPED_ARRAY_TAG] : undefined;
23704
+ }
23705
+ });
23666
23706
  for (NAME in TypedArrayConstructorsList) if (global_1[NAME]) {
23667
23707
  createNonEnumerableProperty(global_1[NAME], TYPED_ARRAY_TAG, NAME);
23668
23708
  }
@@ -23686,7 +23726,7 @@ var aTypedArray$1 = arrayBufferViewCore.aTypedArray;
23686
23726
  var exportTypedArrayMethod$1 = arrayBufferViewCore.exportTypedArrayMethod;
23687
23727
 
23688
23728
  // `%TypedArray%.prototype.at` method
23689
- // https://github.com/tc39/proposal-relative-indexing-method
23729
+ // https://tc39.es/ecma262/#sec-%typedarray%.prototype.at
23690
23730
  exportTypedArrayMethod$1('at', function at(index) {
23691
23731
  var O = aTypedArray$1(this);
23692
23732
  var len = lengthOfArrayLike(O);
@@ -23794,11 +23834,7 @@ var Dropdown = function Dropdown(_ref13) {
23794
23834
  _ref13$smoothScroll = _ref13.smoothScroll,
23795
23835
  smoothScroll = _ref13$smoothScroll === void 0 ? true : _ref13$smoothScroll,
23796
23836
  _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;
23837
+ ariaInvalid = _ref13$ariaInvalid === void 0 ? false : _ref13$ariaInvalid;
23802
23838
 
23803
23839
  var _useState = useState(""),
23804
23840
  _useState2 = _slicedToArray(_useState, 2),
@@ -24047,7 +24083,7 @@ var Dropdown = function Dropdown(_ref13) {
24047
24083
  "aria-labelledby": ariaLabelledby,
24048
24084
  "aria-describedby": ariaDescribedby,
24049
24085
  "aria-expanded": isOpen,
24050
- "aria-required": required,
24086
+ "aria-required": options.required,
24051
24087
  "aria-invalid": ariaInvalid,
24052
24088
  background: isOpen ? themeValues.hoverColor : WHITE,
24053
24089
  borderRadius: "2px",
@@ -24069,6 +24105,7 @@ var Dropdown = function Dropdown(_ref13) {
24069
24105
  },
24070
24106
  padding: "12px",
24071
24107
  placeholder: getSelection(),
24108
+ required: options.required,
24072
24109
  role: "combobox",
24073
24110
  themeValues: themeValues,
24074
24111
  title: hasTitles ? getSelection() : null,
@@ -24076,9 +24113,6 @@ var Dropdown = function Dropdown(_ref13) {
24076
24113
  tabIndex: 0,
24077
24114
  value: inputValue,
24078
24115
  width: "100%"
24079
- /* Non-semantic elements need the aria-* version of the attribute */
24080
- ,
24081
- "aria-disabled": disabledValues.includes(inputValue)
24082
24116
  }), /*#__PURE__*/React.createElement(IconWrapper, {
24083
24117
  open: isOpen,
24084
24118
  onClick: _onClick
@@ -24089,8 +24123,7 @@ var Dropdown = function Dropdown(_ref13) {
24089
24123
  widthFitOptions: widthFitOptions,
24090
24124
  tabIndex: 0,
24091
24125
  role: "listbox",
24092
- id: "".concat(ariaLabelledby, "_listbox"),
24093
- required: required
24126
+ id: "".concat(ariaLabelledby, "_listbox")
24094
24127
  }, /*#__PURE__*/React.createElement(Stack, {
24095
24128
  childGap: "0",
24096
24129
  as: "ul"
@@ -24240,9 +24273,7 @@ var FormSelect = function FormSelect(_ref) {
24240
24273
  _ref$dataQa = _ref.dataQa,
24241
24274
  dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa,
24242
24275
  _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;
24276
+ widthFitOptions = _ref$widthFitOptions === void 0 ? false : _ref$widthFitOptions;
24246
24277
 
24247
24278
  var _useState = useState(false),
24248
24279
  _useState2 = _slicedToArray(_useState, 2),
@@ -24250,17 +24281,6 @@ var FormSelect = function FormSelect(_ref) {
24250
24281
  setOpen = _useState2[1];
24251
24282
 
24252
24283
  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
24284
 
24265
24285
  var handleClickAway = function handleClickAway(event) {
24266
24286
  if (dropdownRef.current && !dropdownRef.current.contains(event.target)) {
@@ -24276,8 +24296,8 @@ var FormSelect = function FormSelect(_ref) {
24276
24296
  });
24277
24297
  return /*#__PURE__*/React.createElement(SelectContainer, {
24278
24298
  ref: dropdownRef,
24279
- "aria-role": "group",
24280
24299
  disabled: disabled,
24300
+ "aria-disabled": disabled,
24281
24301
  "data-qa": dataQa
24282
24302
  }, /*#__PURE__*/React.createElement(Box, {
24283
24303
  padding: "0",
@@ -24291,10 +24311,10 @@ var FormSelect = function FormSelect(_ref) {
24291
24311
  color: themeValues.labelColor,
24292
24312
  weight: themeValues.fontWeight,
24293
24313
  extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }",
24294
- id: labelId(labelTextWhenNoError)
24314
+ id: createIdFromString(labelTextWhenNoError)
24295
24315
  }, labelTextWhenNoError))), /*#__PURE__*/React.createElement(Dropdown$1, {
24296
- ariaLabelledby: labelId(labelTextWhenNoError),
24297
- ariaDescribedby: descriptionId(field, labelTextWhenNoError),
24316
+ ariaLabelledby: createIdFromString(labelTextWhenNoError),
24317
+ ariaDescribedby: createIdFromString(labelTextWhenNoError, "error message"),
24298
24318
  maxHeight: dropdownMaxHeight,
24299
24319
  widthFitOptions: widthFitOptions,
24300
24320
  hasTitles: hasTitles,
@@ -24315,12 +24335,11 @@ var FormSelect = function FormSelect(_ref) {
24315
24335
  },
24316
24336
  disabled: disabled,
24317
24337
  autocompleteValue: autocompleteValue,
24318
- smoothScroll: smoothScroll,
24319
- isRequired: required
24338
+ smoothScroll: smoothScroll
24320
24339
  }), /*#__PURE__*/React.createElement(Stack, {
24321
24340
  direction: "row",
24322
24341
  justify: "space-between"
24323
- }, /*#__PURE__*/React.createElement(Text$1, {
24342
+ }, field.hasErrors && field.dirty || field.hasErrors && showErrors ? /*#__PURE__*/React.createElement(Text$1, {
24324
24343
  color: ERROR_COLOR,
24325
24344
  variant: "pXS",
24326
24345
  weight: themeValues.fontWeight,
@@ -24329,7 +24348,9 @@ var FormSelect = function FormSelect(_ref) {
24329
24348
  "aria-live": "polite",
24330
24349
  "aria-atomic": true,
24331
24350
  "data-qa": createIdFromString(labelTextWhenNoError, "error message")
24332
- }, field.hasErrors && field.dirty || field.hasErrors && showErrors ? errorMessages[field.errors[0]] : "")));
24351
+ }, errorMessages[field.errors[0]]) : /*#__PURE__*/React.createElement(Text$1, {
24352
+ extraStyles: "height: ".concat(themeValues.lineHeight, ";")
24353
+ })));
24333
24354
  };
24334
24355
 
24335
24356
  var FormSelect$1 = themeComponent(FormSelect, "FormSelect", fallbackValues$g, "default");
@@ -25086,9 +25107,7 @@ var CountryDropdown = function CountryDropdown(_ref) {
25086
25107
  showErrors = _ref.showErrors,
25087
25108
  onChange = _ref.onChange,
25088
25109
  _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;
25110
+ dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa;
25092
25111
  return /*#__PURE__*/React.createElement(FormSelect$1, {
25093
25112
  options: options,
25094
25113
  field: field,
@@ -25098,8 +25117,7 @@ var CountryDropdown = function CountryDropdown(_ref) {
25098
25117
  errorMessages: errorMessages,
25099
25118
  showErrors: showErrors,
25100
25119
  onChange: onChange,
25101
- autocompleteValue: "country-name",
25102
- isRequired: isRequired
25120
+ autocompleteValue: "country-name"
25103
25121
  });
25104
25122
  };
25105
25123
 
@@ -25946,7 +25964,7 @@ var fallbackValues$k = {
25946
25964
  };
25947
25965
 
25948
25966
  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"];
25967
+ _excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocompleteValue", "extraStyles", "removeFromValue", "dataQa"];
25950
25968
  var InputField = styled.input.withConfig({
25951
25969
  displayName: "FormInput__InputField",
25952
25970
  componentId: "sc-l094r1-0"
@@ -26033,8 +26051,6 @@ var FormInput = function FormInput(_ref15) {
26033
26051
  removeFromValue = _ref15.removeFromValue,
26034
26052
  _ref15$dataQa = _ref15.dataQa,
26035
26053
  dataQa = _ref15$dataQa === void 0 ? null : _ref15$dataQa,
26036
- _ref15$isRequired = _ref15.isRequired,
26037
- isRequired = _ref15$isRequired === void 0 ? false : _ref15$isRequired,
26038
26054
  props = _objectWithoutProperties(_ref15, _excluded2);
26039
26055
 
26040
26056
  var _useState = useState(false),
@@ -26121,8 +26137,7 @@ var FormInput = function FormInput(_ref15) {
26121
26137
  $customHeight: customHeight,
26122
26138
  $extraStyles: extraStyles,
26123
26139
  "data-qa": dataQa || labelTextWhenNoError,
26124
- autoComplete: autocompleteValue,
26125
- required: isRequired
26140
+ autoComplete: autocompleteValue
26126
26141
  }, props)) : /*#__PURE__*/React.createElement(InputField, _extends({
26127
26142
  "aria-labelledby": createIdFromString(labelTextWhenNoError),
26128
26143
  "aria-describedby": createIdFromString(labelTextWhenNoError, "error message"),
@@ -26141,8 +26156,7 @@ var FormInput = function FormInput(_ref15) {
26141
26156
  $customHeight: customHeight,
26142
26157
  $extraStyles: extraStyles,
26143
26158
  "data-qa": dataQa || labelTextWhenNoError,
26144
- autoComplete: autocompleteValue,
26145
- required: isRequired
26159
+ autoComplete: autocompleteValue
26146
26160
  }, props))), /*#__PURE__*/React.createElement(Stack, {
26147
26161
  direction: "row",
26148
26162
  justify: "space-between",
@@ -27275,7 +27289,7 @@ var HiddenRadioInput = styled.input.withConfig({
27275
27289
  var Circle = styled.div.withConfig({
27276
27290
  displayName: "RadioButtonWithLabel__Circle",
27277
27291
  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) {
27292
+ })(["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
27293
  var inactiveBorderColor = _ref.inactiveBorderColor;
27280
27294
  return "1px solid ".concat(inactiveBorderColor);
27281
27295
  }, function (_ref2) {
@@ -27285,12 +27299,12 @@ var Circle = styled.div.withConfig({
27285
27299
  var InputAndLabelContainer = styled(Cluster).withConfig({
27286
27300
  displayName: "RadioButtonWithLabel__InputAndLabelContainer",
27287
27301
  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) {
27302
+ })(["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
27303
  var activeColor = _ref3.activeColor;
27290
- return "1px solid " + activeColor;
27304
+ return "1px solid ".concat(activeColor, ";");
27291
27305
  }, HiddenRadioInput, Circle, function (_ref4) {
27292
27306
  var activeColor = _ref4.activeColor;
27293
- return "0px 0px 2px 1px " + activeColor;
27307
+ return "0px 0px 2px 1px ".concat(activeColor, ";");
27294
27308
  });
27295
27309
 
27296
27310
  var RadioButtonWithLabel = function RadioButtonWithLabel(_ref5) {
@@ -27384,9 +27398,7 @@ var RadioButton$1 = function RadioButton(_ref2) {
27384
27398
  _ref2$ariaLabelledBy = _ref2.ariaLabelledBy,
27385
27399
  ariaLabelledBy = _ref2$ariaLabelledBy === void 0 ? "" : _ref2$ariaLabelledBy,
27386
27400
  _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;
27401
+ ariaLabel = _ref2$ariaLabel === void 0 ? null : _ref2$ariaLabel;
27390
27402
  var buttonBorder = {
27391
27403
  onFocused: {
27392
27404
  borderColor: themeValues.activeColor,
@@ -27446,8 +27458,6 @@ var RadioButton$1 = function RadioButton(_ref2) {
27446
27458
  type: "radio",
27447
27459
  id: "radio-".concat(name),
27448
27460
  disabled: disabled,
27449
- required: required,
27450
- "aria-required": required,
27451
27461
  onClick: toggleRadio,
27452
27462
  "aria-describedby": ariaDescribedBy,
27453
27463
  tabIndex: "-1"
@@ -38140,9 +38150,7 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
38140
38150
  field = _ref.field,
38141
38151
  fieldActions = _ref.fieldActions,
38142
38152
  showErrors = _ref.showErrors,
38143
- countryCode = _ref.countryCode,
38144
- _ref$isRequired = _ref.isRequired,
38145
- isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
38153
+ countryCode = _ref.countryCode;
38146
38154
  var placeholder = countryCode === "US" ? placeHolderOptionUS : placeHolderOption;
38147
38155
  var options = [placeholder].concat(_toConsumableArray(getOptions(countryCode)));
38148
38156
  return /*#__PURE__*/React.createElement(FormSelect$1, {
@@ -38152,8 +38160,7 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
38152
38160
  labelTextWhenNoError: labelTextWhenNoError,
38153
38161
  errorMessages: errorMessages,
38154
38162
  showErrors: showErrors,
38155
- autocompleteValue: "address-level1",
38156
- isRequired: isRequired
38163
+ autocompleteValue: "address-level1"
38157
38164
  });
38158
38165
  };
38159
38166
 
@@ -39479,7 +39486,6 @@ var AddressForm = function AddressForm(_ref) {
39479
39486
  labelTextWhenNoError: "Country",
39480
39487
  errorMessages: countryErrorMessages,
39481
39488
  field: fields.country,
39482
- isRequired: true,
39483
39489
  onChange: function onChange(value) {
39484
39490
  actions.fields.country.set(value); // temporary measure to not dirty fields until
39485
39491
  // we can write a reset function for fields
@@ -39504,8 +39510,7 @@ var AddressForm = function AddressForm(_ref) {
39504
39510
  return e.key === "Enter" && handleSubmit(e);
39505
39511
  },
39506
39512
  autocompleteValue: "address-line1",
39507
- dataQa: "Address",
39508
- isRequired: true
39513
+ dataQa: "Address"
39509
39514
  }), /*#__PURE__*/React.createElement(FormInput$1, {
39510
39515
  labelTextWhenNoError: "Apt, Suite, Unit, Floor, etc. (Optional)",
39511
39516
  field: fields.street2,
@@ -39515,8 +39520,7 @@ var AddressForm = function AddressForm(_ref) {
39515
39520
  return e.key === "Enter" && handleSubmit(e);
39516
39521
  },
39517
39522
  autocompleteValue: "address-line2",
39518
- dataQa: "Address Line 2",
39519
- isRequired: false
39523
+ dataQa: "Address Line 2"
39520
39524
  }), /*#__PURE__*/React.createElement(FormInput$1, {
39521
39525
  labelTextWhenNoError: "City",
39522
39526
  errorMessages: cityErrorMessages,
@@ -39527,8 +39531,7 @@ var AddressForm = function AddressForm(_ref) {
39527
39531
  return e.key === "Enter" && handleSubmit(e);
39528
39532
  },
39529
39533
  autocompleteValue: "address-level2",
39530
- dataQa: "City",
39531
- isRequired: true
39534
+ dataQa: "City"
39532
39535
  }), /*#__PURE__*/React.createElement(FormStateDropdown, {
39533
39536
  labelTextWhenNoError: isUS ? "State" : "State or Province",
39534
39537
  errorMessages: stateProvinceErrorMessages,
@@ -39539,8 +39542,7 @@ var AddressForm = function AddressForm(_ref) {
39539
39542
  onKeyDown: function onKeyDown(e) {
39540
39543
  return e.key === "Enter" && handleSubmit(e);
39541
39544
  },
39542
- dataQa: "State or Province",
39543
- isRequired: true
39545
+ dataQa: "State or Province"
39544
39546
  }), /*#__PURE__*/React.createElement(FormInput$1, {
39545
39547
  isNum: isUS,
39546
39548
  formatter: isUS ? zipFormat : null,
@@ -39553,8 +39555,7 @@ var AddressForm = function AddressForm(_ref) {
39553
39555
  return e.key === "Enter" && handleSubmit(e);
39554
39556
  },
39555
39557
  autocompleteValue: "postal-code",
39556
- dataQa: "Zip code",
39557
- isRequired: true
39558
+ dataQa: "Zip code"
39558
39559
  }), showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
39559
39560
  name: "address checkbox",
39560
39561
  title: "Save address to wallet",
@@ -48021,8 +48022,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48021
48022
  onKeyDown: function onKeyDown(e) {
48022
48023
  return e.key === "Enter" && handleSubmit(e);
48023
48024
  },
48024
- autocompleteValue: "name",
48025
- isRequired: true
48025
+ autocompleteValue: "name"
48026
48026
  }), /*#__PURE__*/React.createElement(FormInput$1, {
48027
48027
  labelTextWhenNoError: "Routing number",
48028
48028
  dataQa: "Routing number",
@@ -48044,8 +48044,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48044
48044
  },
48045
48045
  onKeyDown: function onKeyDown(e) {
48046
48046
  return e.key === "Enter" && handleSubmit(e);
48047
- },
48048
- isRequired: true
48047
+ }
48049
48048
  }), /*#__PURE__*/React.createElement(FormInput$1, {
48050
48049
  labelTextWhenNoError: "Confirm routing number",
48051
48050
  dataQa: "Confirm routing number",
@@ -48056,7 +48055,6 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48056
48055
  onKeyDown: function onKeyDown(e) {
48057
48056
  return e.key === "Enter" && handleSubmit(e);
48058
48057
  },
48059
- isRequired: true,
48060
48058
  isNum: true
48061
48059
  }), /*#__PURE__*/React.createElement(FormInput$1, {
48062
48060
  labelTextWhenNoError: "Account number",
@@ -48065,7 +48063,6 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48065
48063
  field: fields.accountNumber,
48066
48064
  fieldActions: actions.fields.accountNumber,
48067
48065
  showErrors: showErrors,
48068
- isRequired: true,
48069
48066
  isNum: true,
48070
48067
  helperModal: function helperModal() {
48071
48068
  return /*#__PURE__*/React.createElement(AccountAndRoutingModal$1, {
@@ -48084,7 +48081,6 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48084
48081
  }), /*#__PURE__*/React.createElement(FormInput$1, {
48085
48082
  labelTextWhenNoError: "Confirm account number",
48086
48083
  dataQa: "Confirm account number",
48087
- isRequired: true,
48088
48084
  errorMessages: confirmAccountNumberErrors,
48089
48085
  field: fields.confirmAccountNumber,
48090
48086
  fieldActions: actions.fields.confirmAccountNumber,
@@ -48095,7 +48091,6 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48095
48091
  isNum: true
48096
48092
  }), allowBankAccountType && /*#__PURE__*/React.createElement(FormSelect$1, {
48097
48093
  labelTextWhenNoError: "Account type",
48098
- isRequired: true,
48099
48094
  dataQa: "Account type",
48100
48095
  options: [{
48101
48096
  text: "Select account type",
@@ -48226,7 +48221,6 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48226
48221
  "aria-label": "Card payment"
48227
48222
  }, /*#__PURE__*/React.createElement(FormInputColumn, null, !hideZipCode && /*#__PURE__*/React.createElement(CountryDropdown, {
48228
48223
  labelTextWhenNoError: "Country",
48229
- isRequired: true,
48230
48224
  errorMessages: countryErrorMessages,
48231
48225
  field: fields.country,
48232
48226
  onChange: function onChange(value) {
@@ -48249,10 +48243,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48249
48243
  onKeyDown: function onKeyDown(e) {
48250
48244
  return e.key === "Enter" && handleSubmit(e);
48251
48245
  },
48252
- autocompleteValue: "cc-name",
48253
- isRequired: true
48246
+ autocompleteValue: "cc-name"
48254
48247
  }), /*#__PURE__*/React.createElement(FormInput$1, {
48255
- isRequired: true,
48256
48248
  labelTextWhenNoError: "Credit card number",
48257
48249
  dataQa: "Credit card number",
48258
48250
  errorMessages: creditCardNumberErrors,
@@ -48282,8 +48274,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48282
48274
  isNum: true,
48283
48275
  removeFromValue: /\// // removes "/" from browser autofill
48284
48276
  ,
48285
- autocompleteValue: "cc-exp",
48286
- isRequired: true
48277
+ autocompleteValue: "cc-exp"
48287
48278
  }), /*#__PURE__*/React.createElement(FormInput$1, {
48288
48279
  labelTextWhenNoError: "CVV",
48289
48280
  dataQa: "CVV",
@@ -48296,8 +48287,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48296
48287
  onKeyDown: function onKeyDown(e) {
48297
48288
  return e.key === "Enter" && handleSubmit(e);
48298
48289
  },
48299
- autocompleteValue: "cc-csc",
48300
- isRequired: true
48290
+ autocompleteValue: "cc-csc"
48301
48291
  })), !hideZipCode && /*#__PURE__*/React.createElement(Box, {
48302
48292
  padding: isMobile ? "0" : "0 0.5rem 0 0",
48303
48293
  width: isMobile ? "100%" : "50%"
@@ -48313,8 +48303,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48313
48303
  onKeyDown: function onKeyDown(e) {
48314
48304
  return e.key === "Enter" && handleSubmit(e);
48315
48305
  },
48316
- autocompleteValue: "billing postal-code",
48317
- isRequired: true
48306
+ autocompleteValue: "billing postal-code"
48318
48307
  })), (showWalletCheckbox || showTerms) && /*#__PURE__*/React.createElement(Cluster, {
48319
48308
  childGap: "4px",
48320
48309
  align: "center"
@@ -48562,7 +48551,7 @@ PhoneForm.mapDispatchToProps = mapDispatchToProps$8;
48562
48551
  var DefaultHeading = styled.div.withConfig({
48563
48552
  displayName: "RadioGroup__DefaultHeading",
48564
48553
  componentId: "sc-7lqrl8-0"
48565
- })(["font-size:0.875rem;color:", ";margin:0;padding:8px 0px;"], CHARADE_GREY);
48554
+ })(["font-size:0.875rem;color:", " margin:0;padding:8px 0px;"], CHARADE_GREY);
48566
48555
  var StyledFieldset = styled.fieldset.withConfig({
48567
48556
  displayName: "RadioGroup__StyledFieldset",
48568
48557
  componentId: "sc-7lqrl8-1"
@@ -48783,8 +48772,7 @@ var RadioSection = function RadioSection(_ref) {
48783
48772
  toggleRadio: section.disabled ? noop : function () {
48784
48773
  return toggleOpenSection(section.id);
48785
48774
  },
48786
- tabIndex: "-1",
48787
- required: section === null || section === void 0 ? void 0 : section.required
48775
+ tabIndex: "-1"
48788
48776
  })), section.titleIcon && /*#__PURE__*/React.createElement(Cluster, {
48789
48777
  align: "center"
48790
48778
  }, section.titleIcon), /*#__PURE__*/React.createElement(Box, {