@thecb/components 9.1.6-beta.0 → 9.1.7-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -12406,7 +12406,7 @@ if (typeof window !== "undefined") {
12406
12406
  var MotionWrapper = styled__default(motion.div).withConfig({
12407
12407
  displayName: "Motionstyled__MotionWrapper",
12408
12408
  componentId: "sc-1m6r1io-0"
12409
- })(["position:", ";display:", ";box-sizing:border-box;padding:", ";border:", ";border-color:", ";border-width:", ";border-style:", ";border-width:", ";border-radius:", ";background-color:", ";box-shadow:", ";min-height:", ";min-width:", ";height:", ";width:", ";text-align:", ";margin:", ";&:hover,&:focus{", ";}&:active{", ";}&:disabled{", ";}", ";"], function (_ref) {
12409
+ })(["position:", ";display:", ";box-sizing:border-box;padding:", ";border:", ";border-color:", ";border-size:", ";border-style:", ";border-width:", ";border-radius:", ";background-color:", ";box-shadow:", ";min-height:", ";min-width:", ";height:", ";width:", ";text-align:", ";margin:", ";&:hover,&:focus{", ";}&:active{", ";}&:disabled{", ";}", ";"], function (_ref) {
12410
12410
  var position = _ref.position;
12411
12411
  return position;
12412
12412
  }, function (_ref2) {
@@ -22423,17 +22423,18 @@ var DropdownIcon = function DropdownIcon() {
22423
22423
  };
22424
22424
 
22425
22425
  var check = function (it) {
22426
- return it && it.Math == Math && it;
22426
+ return it && it.Math === Math && it;
22427
22427
  };
22428
22428
 
22429
22429
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
22430
22430
  var global_1 =
22431
- // eslint-disable-next-line es-x/no-global-this -- safe
22431
+ // eslint-disable-next-line es/no-global-this -- safe
22432
22432
  check(typeof globalThis == 'object' && globalThis) ||
22433
22433
  check(typeof window == 'object' && window) ||
22434
22434
  // eslint-disable-next-line no-restricted-globals -- safe
22435
22435
  check(typeof self == 'object' && self) ||
22436
22436
  check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
22437
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
22437
22438
  // eslint-disable-next-line no-new-func -- fallback
22438
22439
  (function () { return this; })() || Function('return this')();
22439
22440
 
@@ -22447,12 +22448,12 @@ var fails = function (exec) {
22447
22448
 
22448
22449
  // Detect IE8's incomplete defineProperty implementation
22449
22450
  var descriptors = !fails(function () {
22450
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
22451
- return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
22451
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
22452
+ return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
22452
22453
  });
22453
22454
 
22454
22455
  var functionBindNative = !fails(function () {
22455
- // eslint-disable-next-line es-x/no-function-prototype-bind -- safe
22456
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
22456
22457
  var test = (function () { /* empty */ }).bind();
22457
22458
  // eslint-disable-next-line no-prototype-builtins -- safe
22458
22459
  return typeof test != 'function' || test.hasOwnProperty('prototype');
@@ -22465,7 +22466,7 @@ var functionCall = functionBindNative ? call.bind(call) : function () {
22465
22466
  };
22466
22467
 
22467
22468
  var $propertyIsEnumerable = {}.propertyIsEnumerable;
22468
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
22469
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
22469
22470
  var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
22470
22471
 
22471
22472
  // Nashorn ~ JDK8 bug
@@ -22492,14 +22493,11 @@ var createPropertyDescriptor = function (bitmap, value) {
22492
22493
  };
22493
22494
 
22494
22495
  var FunctionPrototype = Function.prototype;
22495
- var bind$1 = FunctionPrototype.bind;
22496
22496
  var call$1 = FunctionPrototype.call;
22497
- var uncurryThis = functionBindNative && bind$1.bind(call$1, call$1);
22497
+ var uncurryThisWithBind = functionBindNative && FunctionPrototype.bind.bind(call$1, call$1);
22498
22498
 
22499
- var functionUncurryThis = functionBindNative ? function (fn) {
22500
- return fn && uncurryThis(fn);
22501
- } : function (fn) {
22502
- return fn && function () {
22499
+ var functionUncurryThis = functionBindNative ? uncurryThisWithBind : function (fn) {
22500
+ return function () {
22503
22501
  return call$1.apply(fn, arguments);
22504
22502
  };
22505
22503
  };
@@ -22520,15 +22518,21 @@ var indexedObject = fails(function () {
22520
22518
  // eslint-disable-next-line no-prototype-builtins -- safe
22521
22519
  return !$Object('z').propertyIsEnumerable(0);
22522
22520
  }) ? function (it) {
22523
- return classofRaw(it) == 'String' ? split(it, '') : $Object(it);
22521
+ return classofRaw(it) === 'String' ? split(it, '') : $Object(it);
22524
22522
  } : $Object;
22525
22523
 
22524
+ // we can't use just `it == null` since of `document.all` special case
22525
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
22526
+ var isNullOrUndefined = function (it) {
22527
+ return it === null || it === undefined;
22528
+ };
22529
+
22526
22530
  var $TypeError = TypeError;
22527
22531
 
22528
22532
  // `RequireObjectCoercible` abstract operation
22529
22533
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
22530
22534
  var requireObjectCoercible = function (it) {
22531
- if (it == undefined) throw $TypeError("Can't call method on " + it);
22535
+ if (isNullOrUndefined(it)) throw new $TypeError("Can't call method on " + it);
22532
22536
  return it;
22533
22537
  };
22534
22538
 
@@ -22540,13 +22544,32 @@ var toIndexedObject = function (it) {
22540
22544
  return indexedObject(requireObjectCoercible(it));
22541
22545
  };
22542
22546
 
22547
+ var documentAll = typeof document == 'object' && document.all;
22548
+
22549
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
22550
+ // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
22551
+ var IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;
22552
+
22553
+ var documentAll_1 = {
22554
+ all: documentAll,
22555
+ IS_HTMLDDA: IS_HTMLDDA
22556
+ };
22557
+
22558
+ var documentAll$1 = documentAll_1.all;
22559
+
22543
22560
  // `IsCallable` abstract operation
22544
22561
  // https://tc39.es/ecma262/#sec-iscallable
22545
- var isCallable = function (argument) {
22562
+ var isCallable = documentAll_1.IS_HTMLDDA ? function (argument) {
22563
+ return typeof argument == 'function' || argument === documentAll$1;
22564
+ } : function (argument) {
22546
22565
  return typeof argument == 'function';
22547
22566
  };
22548
22567
 
22549
- var isObject = function (it) {
22568
+ var documentAll$2 = documentAll_1.all;
22569
+
22570
+ var isObject = documentAll_1.IS_HTMLDDA ? function (it) {
22571
+ return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll$2;
22572
+ } : function (it) {
22550
22573
  return typeof it == 'object' ? it !== null : isCallable(it);
22551
22574
  };
22552
22575
 
@@ -22560,7 +22583,7 @@ var getBuiltIn = function (namespace, method) {
22560
22583
 
22561
22584
  var objectIsPrototypeOf = functionUncurryThis({}.isPrototypeOf);
22562
22585
 
22563
- var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
22586
+ var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
22564
22587
 
22565
22588
  var process$1 = global_1.process;
22566
22589
  var Deno = global_1.Deno;
@@ -22587,24 +22610,29 @@ if (!version && engineUserAgent) {
22587
22610
 
22588
22611
  var engineV8Version = version;
22589
22612
 
22590
- /* eslint-disable es-x/no-symbol -- required for testing */
22613
+ /* eslint-disable es/no-symbol -- required for testing */
22614
+
22591
22615
 
22592
22616
 
22593
22617
 
22594
- // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
22595
- var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
22596
- var symbol = Symbol();
22618
+ var $String = global_1.String;
22619
+
22620
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
22621
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails(function () {
22622
+ var symbol = Symbol('symbol detection');
22597
22623
  // Chrome 38 Symbol has incorrect toString conversion
22598
22624
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
22599
- return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
22625
+ // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
22626
+ // of course, fail.
22627
+ return !$String(symbol) || !(Object(symbol) instanceof Symbol) ||
22600
22628
  // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
22601
22629
  !Symbol.sham && engineV8Version && engineV8Version < 41;
22602
22630
  });
22603
22631
 
22604
- /* eslint-disable es-x/no-symbol -- required for testing */
22632
+ /* eslint-disable es/no-symbol -- required for testing */
22605
22633
 
22606
22634
 
22607
- var useSymbolAsUid = nativeSymbol
22635
+ var useSymbolAsUid = symbolConstructorDetection
22608
22636
  && !Symbol.sham
22609
22637
  && typeof Symbol.iterator == 'symbol';
22610
22638
 
@@ -22617,11 +22645,11 @@ var isSymbol = useSymbolAsUid ? function (it) {
22617
22645
  return isCallable($Symbol) && objectIsPrototypeOf($Symbol.prototype, $Object$1(it));
22618
22646
  };
22619
22647
 
22620
- var $String = String;
22648
+ var $String$1 = String;
22621
22649
 
22622
22650
  var tryToString = function (argument) {
22623
22651
  try {
22624
- return $String(argument);
22652
+ return $String$1(argument);
22625
22653
  } catch (error) {
22626
22654
  return 'Object';
22627
22655
  }
@@ -22632,14 +22660,14 @@ var $TypeError$1 = TypeError;
22632
22660
  // `Assert: IsCallable(argument) is true`
22633
22661
  var aCallable = function (argument) {
22634
22662
  if (isCallable(argument)) return argument;
22635
- throw $TypeError$1(tryToString(argument) + ' is not a function');
22663
+ throw new $TypeError$1(tryToString(argument) + ' is not a function');
22636
22664
  };
22637
22665
 
22638
22666
  // `GetMethod` abstract operation
22639
22667
  // https://tc39.es/ecma262/#sec-getmethod
22640
22668
  var getMethod = function (V, P) {
22641
22669
  var func = V[P];
22642
- return func == null ? undefined : aCallable(func);
22670
+ return isNullOrUndefined(func) ? undefined : aCallable(func);
22643
22671
  };
22644
22672
 
22645
22673
  var $TypeError$2 = TypeError;
@@ -22651,10 +22679,10 @@ var ordinaryToPrimitive = function (input, pref) {
22651
22679
  if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
22652
22680
  if (isCallable(fn = input.valueOf) && !isObject(val = functionCall(fn, input))) return val;
22653
22681
  if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
22654
- throw $TypeError$2("Can't convert object to primitive value");
22682
+ throw new $TypeError$2("Can't convert object to primitive value");
22655
22683
  };
22656
22684
 
22657
- // eslint-disable-next-line es-x/no-object-defineproperty -- safe
22685
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
22658
22686
  var defineProperty = Object.defineProperty;
22659
22687
 
22660
22688
  var defineGlobalProperty = function (key, value) {
@@ -22671,13 +22699,16 @@ var store = global_1[SHARED] || defineGlobalProperty(SHARED, {});
22671
22699
  var sharedStore = store;
22672
22700
 
22673
22701
  var shared = createCommonjsModule(function (module) {
22702
+
22703
+
22704
+
22674
22705
  (module.exports = function (key, value) {
22675
22706
  return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
22676
22707
  })('versions', []).push({
22677
- version: '3.24.1',
22708
+ version: '3.33.3',
22678
22709
  mode: 'global',
22679
- copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
22680
- license: 'https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE',
22710
+ copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
22711
+ license: 'https://github.com/zloirock/core-js/blob/v3.33.3/LICENSE',
22681
22712
  source: 'https://github.com/zloirock/core-js'
22682
22713
  });
22683
22714
  });
@@ -22694,7 +22725,7 @@ var hasOwnProperty = functionUncurryThis({}.hasOwnProperty);
22694
22725
 
22695
22726
  // `HasOwnProperty` abstract operation
22696
22727
  // https://tc39.es/ecma262/#sec-hasownproperty
22697
- // eslint-disable-next-line es-x/no-object-hasown -- safe
22728
+ // eslint-disable-next-line es/no-object-hasown -- safe
22698
22729
  var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
22699
22730
  return hasOwnProperty(toObject(it), key);
22700
22731
  };
@@ -22707,21 +22738,15 @@ var uid = function (key) {
22707
22738
  return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$3(++id + postfix, 36);
22708
22739
  };
22709
22740
 
22710
- var WellKnownSymbolsStore = shared('wks');
22711
22741
  var Symbol$1 = global_1.Symbol;
22712
- var symbolFor = Symbol$1 && Symbol$1['for'];
22713
- var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
22742
+ var WellKnownSymbolsStore = shared('wks');
22743
+ var createWellKnownSymbol = useSymbolAsUid ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
22714
22744
 
22715
22745
  var wellKnownSymbol = function (name) {
22716
- if (!hasOwnProperty_1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
22717
- var description = 'Symbol.' + name;
22718
- if (nativeSymbol && hasOwnProperty_1(Symbol$1, name)) {
22719
- WellKnownSymbolsStore[name] = Symbol$1[name];
22720
- } else if (useSymbolAsUid && symbolFor) {
22721
- WellKnownSymbolsStore[name] = symbolFor(description);
22722
- } else {
22723
- WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
22724
- }
22746
+ if (!hasOwnProperty_1(WellKnownSymbolsStore, name)) {
22747
+ WellKnownSymbolsStore[name] = symbolConstructorDetection && hasOwnProperty_1(Symbol$1, name)
22748
+ ? Symbol$1[name]
22749
+ : createWellKnownSymbol('Symbol.' + name);
22725
22750
  } return WellKnownSymbolsStore[name];
22726
22751
  };
22727
22752
 
@@ -22738,7 +22763,7 @@ var toPrimitive = function (input, pref) {
22738
22763
  if (pref === undefined) pref = 'default';
22739
22764
  result = functionCall(exoticToPrim, input, pref);
22740
22765
  if (!isObject(result) || isSymbol(result)) return result;
22741
- throw $TypeError$3("Can't convert object to primitive value");
22766
+ throw new $TypeError$3("Can't convert object to primitive value");
22742
22767
  }
22743
22768
  if (pref === undefined) pref = 'number';
22744
22769
  return ordinaryToPrimitive(input, pref);
@@ -22761,13 +22786,13 @@ var documentCreateElement = function (it) {
22761
22786
 
22762
22787
  // Thanks to IE8 for its funny defineProperty
22763
22788
  var ie8DomDefine = !descriptors && !fails(function () {
22764
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
22789
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
22765
22790
  return Object.defineProperty(documentCreateElement('div'), 'a', {
22766
22791
  get: function () { return 7; }
22767
- }).a != 7;
22792
+ }).a !== 7;
22768
22793
  });
22769
22794
 
22770
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
22795
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
22771
22796
  var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
22772
22797
 
22773
22798
  // `Object.getOwnPropertyDescriptor` method
@@ -22788,26 +22813,26 @@ var objectGetOwnPropertyDescriptor = {
22788
22813
  // V8 ~ Chrome 36-
22789
22814
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
22790
22815
  var v8PrototypeDefineBug = descriptors && fails(function () {
22791
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
22816
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
22792
22817
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
22793
22818
  value: 42,
22794
22819
  writable: false
22795
- }).prototype != 42;
22820
+ }).prototype !== 42;
22796
22821
  });
22797
22822
 
22798
- var $String$1 = String;
22823
+ var $String$2 = String;
22799
22824
  var $TypeError$4 = TypeError;
22800
22825
 
22801
22826
  // `Assert: Type(argument) is Object`
22802
22827
  var anObject = function (argument) {
22803
22828
  if (isObject(argument)) return argument;
22804
- throw $TypeError$4($String$1(argument) + ' is not an object');
22829
+ throw new $TypeError$4($String$2(argument) + ' is not an object');
22805
22830
  };
22806
22831
 
22807
22832
  var $TypeError$5 = TypeError;
22808
- // eslint-disable-next-line es-x/no-object-defineproperty -- safe
22833
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
22809
22834
  var $defineProperty = Object.defineProperty;
22810
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
22835
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
22811
22836
  var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
22812
22837
  var ENUMERABLE = 'enumerable';
22813
22838
  var CONFIGURABLE = 'configurable';
@@ -22837,7 +22862,7 @@ var f$2 = descriptors ? v8PrototypeDefineBug ? function defineProperty(O, P, Att
22837
22862
  if (ie8DomDefine) try {
22838
22863
  return $defineProperty(O, P, Attributes);
22839
22864
  } catch (error) { /* empty */ }
22840
- if ('get' in Attributes || 'set' in Attributes) throw $TypeError$5('Accessors not supported');
22865
+ if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$5('Accessors not supported');
22841
22866
  if ('value' in Attributes) O[P] = Attributes.value;
22842
22867
  return O;
22843
22868
  };
@@ -22854,7 +22879,7 @@ var createNonEnumerableProperty = descriptors ? function (object, key, value) {
22854
22879
  };
22855
22880
 
22856
22881
  var FunctionPrototype$1 = Function.prototype;
22857
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
22882
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
22858
22883
  var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
22859
22884
 
22860
22885
  var EXISTS$1 = hasOwnProperty_1(FunctionPrototype$1, 'name');
@@ -22881,7 +22906,7 @@ var inspectSource = sharedStore.inspectSource;
22881
22906
 
22882
22907
  var WeakMap$1 = global_1.WeakMap;
22883
22908
 
22884
- var nativeWeakMap = isCallable(WeakMap$1) && /native code/.test(inspectSource(WeakMap$1));
22909
+ var weakMapBasicDetection = isCallable(WeakMap$1) && /native code/.test(String(WeakMap$1));
22885
22910
 
22886
22911
  var keys$1 = shared('keys');
22887
22912
 
@@ -22904,27 +22929,29 @@ var getterFor = function (TYPE) {
22904
22929
  return function (it) {
22905
22930
  var state;
22906
22931
  if (!isObject(it) || (state = get(it)).type !== TYPE) {
22907
- throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
22932
+ throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
22908
22933
  } return state;
22909
22934
  };
22910
22935
  };
22911
22936
 
22912
- if (nativeWeakMap || sharedStore.state) {
22937
+ if (weakMapBasicDetection || sharedStore.state) {
22913
22938
  var store$1 = sharedStore.state || (sharedStore.state = new WeakMap$2());
22914
- var wmget = functionUncurryThis(store$1.get);
22915
- var wmhas = functionUncurryThis(store$1.has);
22916
- var wmset = functionUncurryThis(store$1.set);
22939
+ /* eslint-disable no-self-assign -- prototype methods protection */
22940
+ store$1.get = store$1.get;
22941
+ store$1.has = store$1.has;
22942
+ store$1.set = store$1.set;
22943
+ /* eslint-enable no-self-assign -- prototype methods protection */
22917
22944
  set = function (it, metadata) {
22918
- if (wmhas(store$1, it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
22945
+ if (store$1.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
22919
22946
  metadata.facade = it;
22920
- wmset(store$1, it, metadata);
22947
+ store$1.set(it, metadata);
22921
22948
  return metadata;
22922
22949
  };
22923
22950
  get = function (it) {
22924
- return wmget(store$1, it) || {};
22951
+ return store$1.get(it) || {};
22925
22952
  };
22926
22953
  has = function (it) {
22927
- return wmhas(store$1, it);
22954
+ return store$1.has(it);
22928
22955
  };
22929
22956
  } else {
22930
22957
  var STATE = sharedKey('state');
@@ -22952,14 +22979,23 @@ var internalState = {
22952
22979
  };
22953
22980
 
22954
22981
  var makeBuiltIn_1 = createCommonjsModule(function (module) {
22982
+
22983
+
22984
+
22985
+
22986
+
22955
22987
  var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
22956
22988
 
22957
22989
 
22958
22990
 
22959
22991
  var enforceInternalState = internalState.enforce;
22960
22992
  var getInternalState = internalState.get;
22961
- // eslint-disable-next-line es-x/no-object-defineproperty -- safe
22993
+ var $String = String;
22994
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
22962
22995
  var defineProperty = Object.defineProperty;
22996
+ var stringSlice = functionUncurryThis(''.slice);
22997
+ var replace = functionUncurryThis(''.replace);
22998
+ var join = functionUncurryThis([].join);
22963
22999
 
22964
23000
  var CONFIGURABLE_LENGTH = descriptors && !fails(function () {
22965
23001
  return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
@@ -22968,8 +23004,8 @@ var CONFIGURABLE_LENGTH = descriptors && !fails(function () {
22968
23004
  var TEMPLATE = String(String).split('String');
22969
23005
 
22970
23006
  var makeBuiltIn = module.exports = function (value, name, options) {
22971
- if (String(name).slice(0, 7) === 'Symbol(') {
22972
- name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
23007
+ if (stringSlice($String(name), 0, 7) === 'Symbol(') {
23008
+ name = '[' + replace($String(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
22973
23009
  }
22974
23010
  if (options && options.getter) name = 'get ' + name;
22975
23011
  if (options && options.setter) name = 'set ' + name;
@@ -22988,7 +23024,7 @@ var makeBuiltIn = module.exports = function (value, name, options) {
22988
23024
  } catch (error) { /* empty */ }
22989
23025
  var state = enforceInternalState(value);
22990
23026
  if (!hasOwnProperty_1(state, 'source')) {
22991
- state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
23027
+ state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
22992
23028
  } return value;
22993
23029
  };
22994
23030
 
@@ -23027,7 +23063,7 @@ var floor = Math.floor;
23027
23063
 
23028
23064
  // `Math.trunc` method
23029
23065
  // https://tc39.es/ecma262/#sec-math.trunc
23030
- // eslint-disable-next-line es-x/no-math-trunc -- safe
23066
+ // eslint-disable-next-line es/no-math-trunc -- safe
23031
23067
  var mathTrunc = Math.trunc || function trunc(x) {
23032
23068
  var n = +x;
23033
23069
  return (n > 0 ? floor : ceil)(n);
@@ -23075,10 +23111,10 @@ var createMethod = function (IS_INCLUDES) {
23075
23111
  var value;
23076
23112
  // Array#includes uses SameValueZero equality algorithm
23077
23113
  // eslint-disable-next-line no-self-compare -- NaN check
23078
- if (IS_INCLUDES && el != el) while (length > index) {
23114
+ if (IS_INCLUDES && el !== el) while (length > index) {
23079
23115
  value = O[index++];
23080
23116
  // eslint-disable-next-line no-self-compare -- NaN check
23081
- if (value != value) return true;
23117
+ if (value !== value) return true;
23082
23118
  // Array#indexOf ignores holes, Array#includes - not
23083
23119
  } else for (;length > index; index++) {
23084
23120
  if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
@@ -23128,7 +23164,7 @@ var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype');
23128
23164
 
23129
23165
  // `Object.getOwnPropertyNames` method
23130
23166
  // https://tc39.es/ecma262/#sec-object.getownpropertynames
23131
- // eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
23167
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
23132
23168
  var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
23133
23169
  return objectKeysInternal(O, hiddenKeys$1);
23134
23170
  };
@@ -23137,7 +23173,7 @@ var objectGetOwnPropertyNames = {
23137
23173
  f: f$3
23138
23174
  };
23139
23175
 
23140
- // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
23176
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
23141
23177
  var f$4 = Object.getOwnPropertySymbols;
23142
23178
 
23143
23179
  var objectGetOwnPropertySymbols = {
@@ -23169,8 +23205,8 @@ var replacement = /#|\.prototype\./;
23169
23205
 
23170
23206
  var isForced = function (feature, detection) {
23171
23207
  var value = data[normalize(feature)];
23172
- return value == POLYFILL ? true
23173
- : value == NATIVE ? false
23208
+ return value === POLYFILL ? true
23209
+ : value === NATIVE ? false
23174
23210
  : isCallable(detection) ? fails(detection)
23175
23211
  : !!detection;
23176
23212
  };
@@ -23250,7 +23286,7 @@ var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
23250
23286
  var $Object$3 = Object;
23251
23287
 
23252
23288
  // ES3 wrong here
23253
- var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
23289
+ var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
23254
23290
 
23255
23291
  // fallback for IE11 Script Access Denied error
23256
23292
  var tryGet = function (it, key) {
@@ -23268,25 +23304,25 @@ var classof = toStringTagSupport ? classofRaw : function (it) {
23268
23304
  // builtinTag case
23269
23305
  : CORRECT_ARGUMENTS ? classofRaw(O)
23270
23306
  // ES3 arguments fallback
23271
- : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
23307
+ : (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;
23272
23308
  };
23273
23309
 
23274
- var $String$2 = String;
23310
+ var $String$3 = String;
23275
23311
 
23276
23312
  var toString_1 = function (argument) {
23277
- if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
23278
- return $String$2(argument);
23313
+ if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
23314
+ return $String$3(argument);
23279
23315
  };
23280
23316
 
23281
23317
  var charAt = functionUncurryThis(''.charAt);
23282
23318
 
23283
23319
  var FORCED = fails(function () {
23284
- // eslint-disable-next-line es-x/no-array-string-prototype-at -- safe
23320
+ // eslint-disable-next-line es/no-array-string-prototype-at -- safe
23285
23321
  return '𠮷'.at(-2) !== '\uD842';
23286
23322
  });
23287
23323
 
23288
23324
  // `String.prototype.at` method
23289
- // https://github.com/tc39/proposal-relative-indexing-method
23325
+ // https://tc39.es/ecma262/#sec-string.prototype.at
23290
23326
  _export({ target: 'String', proto: true, forced: FORCED }, {
23291
23327
  at: function at(index) {
23292
23328
  var S = toString_1(requireObjectCoercible(this));
@@ -23299,14 +23335,14 @@ _export({ target: 'String', proto: true, forced: FORCED }, {
23299
23335
 
23300
23336
  // `Object.keys` method
23301
23337
  // https://tc39.es/ecma262/#sec-object.keys
23302
- // eslint-disable-next-line es-x/no-object-keys -- safe
23338
+ // eslint-disable-next-line es/no-object-keys -- safe
23303
23339
  var objectKeys = Object.keys || function keys(O) {
23304
23340
  return objectKeysInternal(O, enumBugKeys);
23305
23341
  };
23306
23342
 
23307
23343
  // `Object.defineProperties` method
23308
23344
  // https://tc39.es/ecma262/#sec-object.defineproperties
23309
- // eslint-disable-next-line es-x/no-object-defineproperties -- safe
23345
+ // eslint-disable-next-line es/no-object-defineproperties -- safe
23310
23346
  var f$5 = descriptors && !v8PrototypeDefineBug ? Object.defineProperties : function defineProperties(O, Properties) {
23311
23347
  anObject(O);
23312
23348
  var props = toIndexedObject(Properties);
@@ -23395,7 +23431,7 @@ hiddenKeys[IE_PROTO] = true;
23395
23431
 
23396
23432
  // `Object.create` method
23397
23433
  // https://tc39.es/ecma262/#sec-object.create
23398
- // eslint-disable-next-line es-x/no-object-create -- safe
23434
+ // eslint-disable-next-line es/no-object-create -- safe
23399
23435
  var objectCreate = Object.create || function create(O, Properties) {
23400
23436
  var result;
23401
23437
  if (O !== null) {
@@ -23415,7 +23451,7 @@ var ArrayPrototype = Array.prototype;
23415
23451
 
23416
23452
  // Array.prototype[@@unscopables]
23417
23453
  // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
23418
- if (ArrayPrototype[UNSCOPABLES] == undefined) {
23454
+ if (ArrayPrototype[UNSCOPABLES] === undefined) {
23419
23455
  defineProperty$1(ArrayPrototype, UNSCOPABLES, {
23420
23456
  configurable: true,
23421
23457
  value: objectCreate(null)
@@ -23428,7 +23464,7 @@ var addToUnscopables = function (key) {
23428
23464
  };
23429
23465
 
23430
23466
  // `Array.prototype.at` method
23431
- // https://github.com/tc39/proposal-relative-indexing-method
23467
+ // https://tc39.es/ecma262/#sec-array.prototype.at
23432
23468
  _export({ target: 'Array', proto: true }, {
23433
23469
  at: function at(index) {
23434
23470
  var O = toObject(this);
@@ -23441,13 +23477,19 @@ _export({ target: 'Array', proto: true }, {
23441
23477
 
23442
23478
  addToUnscopables('at');
23443
23479
 
23444
- // eslint-disable-next-line es-x/no-typed-arrays -- safe
23445
- var arrayBufferNative = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined';
23480
+ // eslint-disable-next-line es/no-typed-arrays -- safe
23481
+ var arrayBufferBasicDetection = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined';
23482
+
23483
+ var defineBuiltInAccessor = function (target, name, descriptor) {
23484
+ if (descriptor.get) makeBuiltIn_1(descriptor.get, name, { getter: true });
23485
+ if (descriptor.set) makeBuiltIn_1(descriptor.set, name, { setter: true });
23486
+ return objectDefineProperty.f(target, name, descriptor);
23487
+ };
23446
23488
 
23447
23489
  var correctPrototypeGetter = !fails(function () {
23448
23490
  function F() { /* empty */ }
23449
23491
  F.prototype.constructor = null;
23450
- // eslint-disable-next-line es-x/no-object-getprototypeof -- required for testing
23492
+ // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
23451
23493
  return Object.getPrototypeOf(new F()) !== F.prototype;
23452
23494
  });
23453
23495
 
@@ -23457,7 +23499,7 @@ var ObjectPrototype = $Object$4.prototype;
23457
23499
 
23458
23500
  // `Object.getPrototypeOf` method
23459
23501
  // https://tc39.es/ecma262/#sec-object.getprototypeof
23460
- // eslint-disable-next-line es-x/no-object-getprototypeof -- safe
23502
+ // eslint-disable-next-line es/no-object-getprototypeof -- safe
23461
23503
  var objectGetPrototypeOf = correctPrototypeGetter ? $Object$4.getPrototypeOf : function (O) {
23462
23504
  var object = toObject(O);
23463
23505
  if (hasOwnProperty_1(object, IE_PROTO$1)) return object[IE_PROTO$1];
@@ -23467,12 +23509,19 @@ var objectGetPrototypeOf = correctPrototypeGetter ? $Object$4.getPrototypeOf : f
23467
23509
  } return object instanceof $Object$4 ? ObjectPrototype : null;
23468
23510
  };
23469
23511
 
23470
- var $String$3 = String;
23512
+ var functionUncurryThisAccessor = function (object, key, method) {
23513
+ try {
23514
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
23515
+ return functionUncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
23516
+ } catch (error) { /* empty */ }
23517
+ };
23518
+
23519
+ var $String$4 = String;
23471
23520
  var $TypeError$6 = TypeError;
23472
23521
 
23473
23522
  var aPossiblePrototype = function (argument) {
23474
23523
  if (typeof argument == 'object' || isCallable(argument)) return argument;
23475
- throw $TypeError$6("Can't set " + $String$3(argument) + ' as a prototype');
23524
+ throw new $TypeError$6("Can't set " + $String$4(argument) + ' as a prototype');
23476
23525
  };
23477
23526
 
23478
23527
  /* eslint-disable no-proto -- safe */
@@ -23483,14 +23532,13 @@ var aPossiblePrototype = function (argument) {
23483
23532
  // `Object.setPrototypeOf` method
23484
23533
  // https://tc39.es/ecma262/#sec-object.setprototypeof
23485
23534
  // Works with __proto__ only. Old v8 can't work with null proto objects.
23486
- // eslint-disable-next-line es-x/no-object-setprototypeof -- safe
23535
+ // eslint-disable-next-line es/no-object-setprototypeof -- safe
23487
23536
  var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
23488
23537
  var CORRECT_SETTER = false;
23489
23538
  var test = {};
23490
23539
  var setter;
23491
23540
  try {
23492
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
23493
- setter = functionUncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
23541
+ setter = functionUncurryThisAccessor(Object.prototype, '__proto__', 'set');
23494
23542
  setter(test, []);
23495
23543
  CORRECT_SETTER = test instanceof Array;
23496
23544
  } catch (error) { /* empty */ }
@@ -23503,14 +23551,6 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
23503
23551
  };
23504
23552
  }() : undefined);
23505
23553
 
23506
- var defineProperty$2 = objectDefineProperty.f;
23507
-
23508
-
23509
-
23510
-
23511
-
23512
-
23513
-
23514
23554
  var enforceInternalState = internalState.enforce;
23515
23555
  var getInternalState = internalState.get;
23516
23556
  var Int8Array = global_1.Int8Array;
@@ -23526,7 +23566,7 @@ var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag');
23526
23566
  var TYPED_ARRAY_TAG = uid('TYPED_ARRAY_TAG');
23527
23567
  var TYPED_ARRAY_CONSTRUCTOR = 'TypedArrayConstructor';
23528
23568
  // Fixing native typed arrays in Opera Presto crashes the browser, see #595
23529
- var NATIVE_ARRAY_BUFFER_VIEWS = arrayBufferNative && !!objectSetPrototypeOf && classof(global_1.opera) !== 'Opera';
23569
+ var NATIVE_ARRAY_BUFFER_VIEWS = arrayBufferBasicDetection && !!objectSetPrototypeOf && classof(global_1.opera) !== 'Opera';
23530
23570
  var TYPED_ARRAY_TAG_REQUIRED = false;
23531
23571
  var NAME, Constructor, Prototype;
23532
23572
 
@@ -23571,12 +23611,12 @@ var isTypedArray = function (it) {
23571
23611
 
23572
23612
  var aTypedArray = function (it) {
23573
23613
  if (isTypedArray(it)) return it;
23574
- throw TypeError$2('Target is not a typed array');
23614
+ throw new TypeError$2('Target is not a typed array');
23575
23615
  };
23576
23616
 
23577
23617
  var aTypedArrayConstructor = function (C) {
23578
23618
  if (isCallable(C) && (!objectSetPrototypeOf || objectIsPrototypeOf(TypedArray, C))) return C;
23579
- throw TypeError$2(tryToString(C) + ' is not a typed array constructor');
23619
+ throw new TypeError$2(tryToString(C) + ' is not a typed array constructor');
23580
23620
  };
23581
23621
 
23582
23622
  var exportTypedArrayMethod = function (KEY, property, forced, options) {
@@ -23640,7 +23680,7 @@ for (NAME in BigIntArrayConstructorsList) {
23640
23680
  if (!NATIVE_ARRAY_BUFFER_VIEWS || !isCallable(TypedArray) || TypedArray === Function.prototype) {
23641
23681
  // eslint-disable-next-line no-shadow -- safe
23642
23682
  TypedArray = function TypedArray() {
23643
- throw TypeError$2('Incorrect invocation');
23683
+ throw new TypeError$2('Incorrect invocation');
23644
23684
  };
23645
23685
  if (NATIVE_ARRAY_BUFFER_VIEWS) for (NAME in TypedArrayConstructorsList) {
23646
23686
  if (global_1[NAME]) objectSetPrototypeOf(global_1[NAME], TypedArray);
@@ -23661,9 +23701,12 @@ if (NATIVE_ARRAY_BUFFER_VIEWS && objectGetPrototypeOf(Uint8ClampedArrayPrototype
23661
23701
 
23662
23702
  if (descriptors && !hasOwnProperty_1(TypedArrayPrototype, TO_STRING_TAG$2)) {
23663
23703
  TYPED_ARRAY_TAG_REQUIRED = true;
23664
- defineProperty$2(TypedArrayPrototype, TO_STRING_TAG$2, { get: function () {
23665
- return isObject(this) ? this[TYPED_ARRAY_TAG] : undefined;
23666
- } });
23704
+ defineBuiltInAccessor(TypedArrayPrototype, TO_STRING_TAG$2, {
23705
+ configurable: true,
23706
+ get: function () {
23707
+ return isObject(this) ? this[TYPED_ARRAY_TAG] : undefined;
23708
+ }
23709
+ });
23667
23710
  for (NAME in TypedArrayConstructorsList) if (global_1[NAME]) {
23668
23711
  createNonEnumerableProperty(global_1[NAME], TYPED_ARRAY_TAG, NAME);
23669
23712
  }
@@ -23687,7 +23730,7 @@ var aTypedArray$1 = arrayBufferViewCore.aTypedArray;
23687
23730
  var exportTypedArrayMethod$1 = arrayBufferViewCore.exportTypedArrayMethod;
23688
23731
 
23689
23732
  // `%TypedArray%.prototype.at` method
23690
- // https://github.com/tc39/proposal-relative-indexing-method
23733
+ // https://tc39.es/ecma262/#sec-%typedarray%.prototype.at
23691
23734
  exportTypedArrayMethod$1('at', function at(index) {
23692
23735
  var O = aTypedArray$1(this);
23693
23736
  var len = lengthOfArrayLike(O);
@@ -23723,13 +23766,19 @@ var DropdownContentWrapper = styled__default.div.withConfig({
23723
23766
  var DropdownItemWrapper = styled__default.li.withConfig({
23724
23767
  displayName: "Dropdown__DropdownItemWrapper",
23725
23768
  componentId: "sc-pn6m0h-2"
23726
- })(["background-color:", ";text-align:start;border-width:0px;border-color:transparent;box-shadow:none;padding:1rem;box-sizing:border-box;width:100%;list-style:none;cursor:", ";&:hover{background-color:", ";}&:focus{background-color:", ";outline:none;}"], function (_ref4) {
23727
- var selected = _ref4.selected,
23728
- themeValues = _ref4.themeValues;
23729
- return selected ? themeValues.selectedColor : WHITE;
23730
- }, function (_ref5) {
23731
- var disabled = _ref5.disabled;
23769
+ })(["text-align:start;border-width:2px;border-color:transparent;box-shadow:none;padding:1rem;box-sizing:border-box;width:100%;list-style:none;cursor:", ";&:hover{border-color:themeValues.selectedColor;}&:focus{outline:none;border-color:themeValues.selectedColor;}"], function (_ref4) {
23770
+ var disabled = _ref4.disabled;
23732
23771
  return disabled ? "default" : "pointer";
23772
+ }); // ${({ selected, themeValues }) =>
23773
+ // selected ? themeValues.selectedColor : TRANSPARENT};
23774
+
23775
+ var DropdownItemBorder = styled__default.div.withConfig({
23776
+ displayName: "Dropdown__DropdownItemBorder",
23777
+ componentId: "sc-pn6m0h-3"
23778
+ })(["background-color:", ";border-width:2px;border-color:white;width:100%;&:hover{background-color:", ";}&:focus{background-color:", ";outline:none;}"], function (_ref5) {
23779
+ var selected = _ref5.selected,
23780
+ themeValues = _ref5.themeValues;
23781
+ return selected ? themeValues.selectedColor : WHITE;
23733
23782
  }, function (_ref6) {
23734
23783
  var selected = _ref6.selected,
23735
23784
  disabled = _ref6.disabled,
@@ -23768,9 +23817,7 @@ var Dropdown = function Dropdown(_ref8) {
23768
23817
  _ref8$smoothScroll = _ref8.smoothScroll,
23769
23818
  smoothScroll = _ref8$smoothScroll === void 0 ? true : _ref8$smoothScroll,
23770
23819
  _ref8$ariaInvalid = _ref8.ariaInvalid,
23771
- ariaInvalid = _ref8$ariaInvalid === void 0 ? false : _ref8$ariaInvalid,
23772
- _ref8$isRequired = _ref8.isRequired,
23773
- isRequired = _ref8$isRequired === void 0 ? false : _ref8$isRequired;
23820
+ ariaInvalid = _ref8$ariaInvalid === void 0 ? false : _ref8$ariaInvalid;
23774
23821
 
23775
23822
  var _useState = React.useState(""),
23776
23823
  _useState2 = _slicedToArray(_useState, 2),
@@ -24041,7 +24088,7 @@ var Dropdown = function Dropdown(_ref8) {
24041
24088
  },
24042
24089
  padding: "12px",
24043
24090
  placeholder: getSelection(),
24044
- required: options.required || isRequired,
24091
+ required: options.required,
24045
24092
  role: "combobox",
24046
24093
  themeValues: themeValues,
24047
24094
  title: hasTitles ? getSelection() : null,
@@ -24092,11 +24139,13 @@ var Dropdown = function Dropdown(_ref8) {
24092
24139
  onFocus: function onFocus() {
24093
24140
  return setFocusedRef(optionRefs.current[i]);
24094
24141
  }
24142
+ }, /*#__PURE__*/React__default.createElement(DropdownItemBorder, {
24143
+ selected: choice.value === value
24095
24144
  }, /*#__PURE__*/React__default.createElement(Text$1, {
24096
24145
  variant: "p",
24097
24146
  color: choice.value === value ? WHITE : disabledValues.includes(choice.value) ? STORM_GREY : MINESHAFT_GREY,
24098
- extraStyles: "padding-left: 16px;\n cursor: ".concat(disabledValues.includes(choice.value) ? "default" : "pointer", ";\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;")
24099
- }, choice.text));
24147
+ extraStyles: "padding-left: 16px;\n cursor: ".concat(disabledValues.includes(choice.value) ? "default" : "pointer", ";\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;")
24148
+ }, choice.text)));
24100
24149
  }))) : /*#__PURE__*/React__default.createElement(React.Fragment, null)));
24101
24150
  };
24102
24151
 
@@ -24205,9 +24254,7 @@ var FormSelect = function FormSelect(_ref) {
24205
24254
  _ref$dataQa = _ref.dataQa,
24206
24255
  dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa,
24207
24256
  _ref$widthFitOptions = _ref.widthFitOptions,
24208
- widthFitOptions = _ref$widthFitOptions === void 0 ? false : _ref$widthFitOptions,
24209
- _ref$isRequired = _ref.isRequired,
24210
- isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
24257
+ widthFitOptions = _ref$widthFitOptions === void 0 ? false : _ref$widthFitOptions;
24211
24258
 
24212
24259
  var _useState = React.useState(false),
24213
24260
  _useState2 = _slicedToArray(_useState, 2),
@@ -24269,8 +24316,7 @@ var FormSelect = function FormSelect(_ref) {
24269
24316
  },
24270
24317
  disabled: disabled,
24271
24318
  autocompleteValue: autocompleteValue,
24272
- smoothScroll: smoothScroll,
24273
- required: isRequired
24319
+ smoothScroll: smoothScroll
24274
24320
  }), /*#__PURE__*/React__default.createElement(Stack, {
24275
24321
  direction: "row",
24276
24322
  justify: "space-between"
@@ -25040,9 +25086,7 @@ var CountryDropdown = function CountryDropdown(_ref) {
25040
25086
  showErrors = _ref.showErrors,
25041
25087
  onChange = _ref.onChange,
25042
25088
  _ref$dataQa = _ref.dataQa,
25043
- dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa,
25044
- _ref$isRequired = _ref.isRequired,
25045
- isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
25089
+ dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa;
25046
25090
  return /*#__PURE__*/React__default.createElement(FormSelect$1, {
25047
25091
  options: options,
25048
25092
  field: field,
@@ -25052,8 +25096,7 @@ var CountryDropdown = function CountryDropdown(_ref) {
25052
25096
  errorMessages: errorMessages,
25053
25097
  showErrors: showErrors,
25054
25098
  onChange: onChange,
25055
- autocompleteValue: "country-name",
25056
- isRequired: isRequired
25099
+ autocompleteValue: "country-name"
25057
25100
  });
25058
25101
  };
25059
25102
 
@@ -25898,7 +25941,7 @@ var fallbackValues$k = {
25898
25941
  };
25899
25942
 
25900
25943
  var _excluded$p = ["showErrors", "themeValues"],
25901
- _excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocompleteValue", "extraStyles", "removeFromValue", "dataQa", "isRequired"];
25944
+ _excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocompleteValue", "extraStyles", "removeFromValue", "dataQa"];
25902
25945
  var InputField = styled__default.input.withConfig({
25903
25946
  displayName: "FormInput__InputField",
25904
25947
  componentId: "sc-l094r1-0"
@@ -25985,8 +26028,6 @@ var FormInput = function FormInput(_ref15) {
25985
26028
  removeFromValue = _ref15.removeFromValue,
25986
26029
  _ref15$dataQa = _ref15.dataQa,
25987
26030
  dataQa = _ref15$dataQa === void 0 ? null : _ref15$dataQa,
25988
- _ref15$isRequired = _ref15.isRequired,
25989
- isRequired = _ref15$isRequired === void 0 ? false : _ref15$isRequired,
25990
26031
  props = _objectWithoutProperties(_ref15, _excluded2);
25991
26032
 
25992
26033
  var _useState = React.useState(false),
@@ -26073,8 +26114,7 @@ var FormInput = function FormInput(_ref15) {
26073
26114
  $customHeight: customHeight,
26074
26115
  $extraStyles: extraStyles,
26075
26116
  "data-qa": dataQa || labelTextWhenNoError,
26076
- autoComplete: autocompleteValue,
26077
- required: isRequired
26117
+ autoComplete: autocompleteValue
26078
26118
  }, props)) : /*#__PURE__*/React__default.createElement(InputField, _extends({
26079
26119
  "aria-labelledby": createIdFromString(labelTextWhenNoError),
26080
26120
  "aria-describedby": createIdFromString(labelTextWhenNoError, "error message"),
@@ -26093,8 +26133,7 @@ var FormInput = function FormInput(_ref15) {
26093
26133
  $customHeight: customHeight,
26094
26134
  $extraStyles: extraStyles,
26095
26135
  "data-qa": dataQa || labelTextWhenNoError,
26096
- autoComplete: autocompleteValue,
26097
- required: isRequired
26136
+ autoComplete: autocompleteValue
26098
26137
  }, props))), /*#__PURE__*/React__default.createElement(Stack, {
26099
26138
  direction: "row",
26100
26139
  justify: "space-between",
@@ -27276,9 +27315,7 @@ var RadioButton$1 = function RadioButton(_ref2) {
27276
27315
  _ref2$ariaLabelledBy = _ref2.ariaLabelledBy,
27277
27316
  ariaLabelledBy = _ref2$ariaLabelledBy === void 0 ? "" : _ref2$ariaLabelledBy,
27278
27317
  _ref2$ariaLabel = _ref2.ariaLabel,
27279
- ariaLabel = _ref2$ariaLabel === void 0 ? null : _ref2$ariaLabel,
27280
- _ref2$required = _ref2.required,
27281
- required = _ref2$required === void 0 ? false : _ref2$required;
27318
+ ariaLabel = _ref2$ariaLabel === void 0 ? null : _ref2$ariaLabel;
27282
27319
  var buttonBorder = {
27283
27320
  onFocused: {
27284
27321
  borderColor: themeValues.activeColor,
@@ -27340,8 +27377,7 @@ var RadioButton$1 = function RadioButton(_ref2) {
27340
27377
  disabled: disabled,
27341
27378
  onClick: toggleRadio,
27342
27379
  "aria-describedby": ariaDescribedBy,
27343
- tabIndex: "-1",
27344
- required: required
27380
+ tabIndex: "-1"
27345
27381
  }, extraProps)), /*#__PURE__*/React__default.createElement(Motion, {
27346
27382
  borderWidth: "1px",
27347
27383
  borderStyle: "solid",
@@ -38031,9 +38067,7 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
38031
38067
  field = _ref.field,
38032
38068
  fieldActions = _ref.fieldActions,
38033
38069
  showErrors = _ref.showErrors,
38034
- countryCode = _ref.countryCode,
38035
- _ref$isRequired = _ref.isRequired,
38036
- isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
38070
+ countryCode = _ref.countryCode;
38037
38071
  var placeholder = countryCode === "US" ? placeHolderOptionUS : placeHolderOption;
38038
38072
  var options = [placeholder].concat(_toConsumableArray(getOptions(countryCode)));
38039
38073
  return /*#__PURE__*/React__default.createElement(FormSelect$1, {
@@ -38043,8 +38077,7 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
38043
38077
  labelTextWhenNoError: labelTextWhenNoError,
38044
38078
  errorMessages: errorMessages,
38045
38079
  showErrors: showErrors,
38046
- autocompleteValue: "address-level1",
38047
- isRequired: isRequired
38080
+ autocompleteValue: "address-level1"
38048
38081
  });
38049
38082
  };
38050
38083
 
@@ -39325,14 +39358,6 @@ const createFormState = (formConfig) => ({
39325
39358
  mapStateToProps: mapStateToProps,
39326
39359
  });
39327
39360
 
39328
- var getIsRequiredFromValidators = function getIsRequiredFromValidators(callbackFn) {
39329
- return callbackFn(function (field) {
39330
- return !!field.validators.find(function (validator) {
39331
- return validator.type === "validator/REQUIRED";
39332
- });
39333
- }, []);
39334
- };
39335
-
39336
39361
  var AddressForm = function AddressForm(_ref) {
39337
39362
  var _zipErrorMessages;
39338
39363
 
@@ -39391,8 +39416,7 @@ var AddressForm = function AddressForm(_ref) {
39391
39416
  }
39392
39417
  },
39393
39418
  showErrors: showErrors,
39394
- dataQa: "Country",
39395
- isRequired: getIsRequiredFromValidators(React.useCallback)(fields.city)
39419
+ dataQa: "Country"
39396
39420
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
39397
39421
  labelTextWhenNoError: "Address",
39398
39422
  errorMessages: street1ErrorMessages,
@@ -39403,8 +39427,7 @@ var AddressForm = function AddressForm(_ref) {
39403
39427
  return e.key === "Enter" && handleSubmit(e);
39404
39428
  },
39405
39429
  autocompleteValue: "address-line1",
39406
- dataQa: "Address",
39407
- isRequired: getIsRequiredFromValidators(React.useCallback)(fields.street1)
39430
+ dataQa: "Address"
39408
39431
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
39409
39432
  labelTextWhenNoError: "Apt, Suite, Unit, Floor, etc. (Optional)",
39410
39433
  field: fields.street2,
@@ -39414,8 +39437,7 @@ var AddressForm = function AddressForm(_ref) {
39414
39437
  return e.key === "Enter" && handleSubmit(e);
39415
39438
  },
39416
39439
  autocompleteValue: "address-line2",
39417
- dataQa: "Address Line 2",
39418
- isRequired: getIsRequiredFromValidators(React.useCallback)(fields.street2)
39440
+ dataQa: "Address Line 2"
39419
39441
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
39420
39442
  labelTextWhenNoError: "City",
39421
39443
  errorMessages: cityErrorMessages,
@@ -39426,8 +39448,7 @@ var AddressForm = function AddressForm(_ref) {
39426
39448
  return e.key === "Enter" && handleSubmit(e);
39427
39449
  },
39428
39450
  autocompleteValue: "address-level2",
39429
- dataQa: "City",
39430
- isRequired: getIsRequiredFromValidators(React.useCallback)(fields.city)
39451
+ dataQa: "City"
39431
39452
  }), /*#__PURE__*/React__default.createElement(FormStateDropdown, {
39432
39453
  labelTextWhenNoError: isUS ? "State" : "State or Province",
39433
39454
  errorMessages: stateProvinceErrorMessages,
@@ -39438,8 +39459,7 @@ var AddressForm = function AddressForm(_ref) {
39438
39459
  onKeyDown: function onKeyDown(e) {
39439
39460
  return e.key === "Enter" && handleSubmit(e);
39440
39461
  },
39441
- dataQa: "State or Province",
39442
- isRequired: getIsRequiredFromValidators(React.useCallback)(fields.stateProvince)
39462
+ dataQa: "State or Province"
39443
39463
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
39444
39464
  isNum: isUS,
39445
39465
  formatter: isUS ? zipFormat : null,
@@ -39452,8 +39472,7 @@ var AddressForm = function AddressForm(_ref) {
39452
39472
  return e.key === "Enter" && handleSubmit(e);
39453
39473
  },
39454
39474
  autocompleteValue: "postal-code",
39455
- dataQa: "Zip code",
39456
- isRequired: getIsRequiredFromValidators(React.useCallback)(fields.zip)
39475
+ dataQa: "Zip code"
39457
39476
  }), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
39458
39477
  name: "address checkbox",
39459
39478
  title: "Save address to wallet",
@@ -47891,7 +47910,7 @@ var TermsAndConditions = function TermsAndConditions(_ref) {
47891
47910
  };
47892
47911
 
47893
47912
  var PaymentFormACH = function PaymentFormACH(_ref) {
47894
- var _routingNumberErrors, _confirmRoutingNumber, _accountNumberErrors, _confirmAccountNumber;
47913
+ var _routingNumberErrors, _accountNumberErrors;
47895
47914
 
47896
47915
  var _ref$variant = _ref.variant,
47897
47916
  variant = _ref$variant === void 0 ? "default" : _ref$variant,
@@ -47934,9 +47953,12 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
47934
47953
  var nameErrors = _defineProperty({}, required.error, "Name is required");
47935
47954
 
47936
47955
  var routingNumberErrors = (_routingNumberErrors = {}, _defineProperty(_routingNumberErrors, required.error, "Routing number is required"), _defineProperty(_routingNumberErrors, hasLength.error, "Routing number must be 9 digits"), _defineProperty(_routingNumberErrors, isRoutingNumber.error, "Invalid routing number"), _routingNumberErrors);
47937
- var confirmRoutingNumberErrors = (_confirmRoutingNumber = {}, _defineProperty(_confirmRoutingNumber, matchesField.error, "Confirm routing number field must match routing number"), _defineProperty(_confirmRoutingNumber, required.error, "Confirm routing number is required"), _confirmRoutingNumber);
47956
+
47957
+ var confirmRoutingNumberErrors = _defineProperty({}, matchesField.error, "Confirm routing number field must match routing number");
47958
+
47938
47959
  var accountNumberErrors = (_accountNumberErrors = {}, _defineProperty(_accountNumberErrors, required.error, "Account number is required"), _defineProperty(_accountNumberErrors, hasLength.error, "Account number must be between 5 and 17 digits"), _accountNumberErrors);
47939
- var confirmAccountNumberErrors = (_confirmAccountNumber = {}, _defineProperty(_confirmAccountNumber, matchesField.error, "Confirm account number field must match account number"), _defineProperty(_confirmAccountNumber, required.error, "Confirm account number is required"), _confirmAccountNumber);
47960
+
47961
+ var confirmAccountNumberErrors = _defineProperty({}, matchesField.error, "Confirm account number field must match account number");
47940
47962
 
47941
47963
  var accountTypeErrors = _defineProperty({}, required.error, "Account type is required");
47942
47964
 
@@ -47954,8 +47976,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
47954
47976
  onKeyDown: function onKeyDown(e) {
47955
47977
  return e.key === "Enter" && handleSubmit(e);
47956
47978
  },
47957
- autocompleteValue: "name",
47958
- isRequired: getIsRequiredFromValidators(React.useCallback)(fields.name)
47979
+ autocompleteValue: "name"
47959
47980
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
47960
47981
  labelTextWhenNoError: "Routing number",
47961
47982
  dataQa: "Routing number",
@@ -47963,7 +47984,6 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
47963
47984
  field: fields.routingNumber,
47964
47985
  fieldActions: actions.fields.routingNumber,
47965
47986
  showErrors: showErrors,
47966
- isRequired: getIsRequiredFromValidators(React.useCallback)(fields.routingNumber),
47967
47987
  isNum: true,
47968
47988
  helperModal: function helperModal() {
47969
47989
  return /*#__PURE__*/React__default.createElement(AccountAndRoutingModal$1, {
@@ -47989,7 +48009,6 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
47989
48009
  onKeyDown: function onKeyDown(e) {
47990
48010
  return e.key === "Enter" && handleSubmit(e);
47991
48011
  },
47992
- isRequired: getIsRequiredFromValidators(React.useCallback)(fields.confirmRoutingNumber),
47993
48012
  isNum: true
47994
48013
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
47995
48014
  labelTextWhenNoError: "Account number",
@@ -47998,7 +48017,6 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
47998
48017
  field: fields.accountNumber,
47999
48018
  fieldActions: actions.fields.accountNumber,
48000
48019
  showErrors: showErrors,
48001
- isRequired: getIsRequiredFromValidators(React.useCallback)(fields.accountNumber),
48002
48020
  isNum: true,
48003
48021
  helperModal: function helperModal() {
48004
48022
  return /*#__PURE__*/React__default.createElement(AccountAndRoutingModal$1, {
@@ -48024,7 +48042,6 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48024
48042
  onKeyDown: function onKeyDown(e) {
48025
48043
  return e.key === "Enter" && handleSubmit(e);
48026
48044
  },
48027
- isRequired: getIsRequiredFromValidators(React.useCallback)(fields.confirmAccountNumber),
48028
48045
  isNum: true
48029
48046
  }), allowBankAccountType && /*#__PURE__*/React__default.createElement(FormSelect$1, {
48030
48047
  labelTextWhenNoError: "Account type",
@@ -48042,8 +48059,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48042
48059
  fieldActions: actions.fields.accountType,
48043
48060
  showErrors: showErrors,
48044
48061
  errorMessages: accountTypeErrors,
48045
- field: fields.accountType,
48046
- isRequired: getIsRequiredFromValidators(React.useCallback)(fields.accountType)
48062
+ field: fields.accountType
48047
48063
  }), !hideDefaultPayment && /*#__PURE__*/React__default.createElement(Checkbox$1, {
48048
48064
  title: "Save as Default Payment Method",
48049
48065
  dataQa: "default-payment-ach",
@@ -48079,7 +48095,7 @@ var formConfig$6 = {
48079
48095
  constraints: [onlyIntegers(), hasLength(0, 9)]
48080
48096
  },
48081
48097
  confirmRoutingNumber: {
48082
- validators: [matchesField("routingNumber"), required()],
48098
+ validators: [matchesField("routingNumber")],
48083
48099
  constraints: [onlyIntegers(), hasLength(0, 9)]
48084
48100
  },
48085
48101
  accountNumber: {
@@ -48087,7 +48103,7 @@ var formConfig$6 = {
48087
48103
  constraints: [onlyIntegers(), hasLength(0, 17)]
48088
48104
  },
48089
48105
  confirmAccountNumber: {
48090
- validators: [matchesField("accountNumber"), required()],
48106
+ validators: [matchesField("accountNumber")],
48091
48107
  constraints: [onlyIntegers(), hasLength(0, 17)]
48092
48108
  },
48093
48109
  accountType: {
@@ -48170,8 +48186,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48170
48186
  }
48171
48187
  },
48172
48188
  showErrors: showErrors,
48173
- dataQa: "Country",
48174
- isRequired: getIsRequiredFromValidators(React.useCallback)(fields.country)
48189
+ dataQa: "Country"
48175
48190
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
48176
48191
  labelTextWhenNoError: "Name on card",
48177
48192
  dataQa: "Name on card",
@@ -48182,8 +48197,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48182
48197
  onKeyDown: function onKeyDown(e) {
48183
48198
  return e.key === "Enter" && handleSubmit(e);
48184
48199
  },
48185
- autocompleteValue: "cc-name",
48186
- isRequired: getIsRequiredFromValidators(React.useCallback)(fields.nameOnCard)
48200
+ autocompleteValue: "cc-name"
48187
48201
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
48188
48202
  labelTextWhenNoError: "Credit card number",
48189
48203
  dataQa: "Credit card number",
@@ -48196,8 +48210,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48196
48210
  return e.key === "Enter" && handleSubmit(e);
48197
48211
  },
48198
48212
  isNum: true,
48199
- autocompleteValue: "cc-number",
48200
- isRequired: getIsRequiredFromValidators(React.useCallback)(fields.creditCardNumber)
48213
+ autocompleteValue: "cc-number"
48201
48214
  }), /*#__PURE__*/React__default.createElement(FormInputRow, {
48202
48215
  breakpoint: isMobile ? "1000rem" : "21rem",
48203
48216
  childGap: isMobile ? "0rem" : "1rem"
@@ -48215,8 +48228,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48215
48228
  isNum: true,
48216
48229
  removeFromValue: /\// // removes "/" from browser autofill
48217
48230
  ,
48218
- autocompleteValue: "cc-exp",
48219
- isRequired: getIsRequiredFromValidators(React.useCallback)(fields.expirationDate)
48231
+ autocompleteValue: "cc-exp"
48220
48232
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
48221
48233
  labelTextWhenNoError: "CVV",
48222
48234
  dataQa: "CVV",
@@ -48229,8 +48241,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48229
48241
  onKeyDown: function onKeyDown(e) {
48230
48242
  return e.key === "Enter" && handleSubmit(e);
48231
48243
  },
48232
- autocompleteValue: "cc-csc",
48233
- isRequired: getIsRequiredFromValidators(React.useCallback)(fields.cvv)
48244
+ autocompleteValue: "cc-csc"
48234
48245
  })), !hideZipCode && /*#__PURE__*/React__default.createElement(Box, {
48235
48246
  padding: isMobile ? "0" : "0 0.5rem 0 0",
48236
48247
  width: isMobile ? "100%" : "50%"
@@ -48246,8 +48257,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48246
48257
  onKeyDown: function onKeyDown(e) {
48247
48258
  return e.key === "Enter" && handleSubmit(e);
48248
48259
  },
48249
- autocompleteValue: "billing postal-code",
48250
- isRequired: getIsRequiredFromValidators(React.useCallback)(fields.zipCode)
48260
+ autocompleteValue: "billing postal-code"
48251
48261
  })), (showWalletCheckbox || showTerms) && /*#__PURE__*/React__default.createElement(Cluster, {
48252
48262
  childGap: "4px",
48253
48263
  align: "center"
@@ -48600,9 +48610,7 @@ var RadioSection = function RadioSection(_ref) {
48600
48610
  openHeight = _ref$openHeight === void 0 ? "auto" : _ref$openHeight,
48601
48611
  _ref$containerStyles = _ref.containerStyles,
48602
48612
  containerStyles = _ref$containerStyles === void 0 ? "" : _ref$containerStyles,
48603
- ariaDescribedBy = _ref.ariaDescribedBy,
48604
- _ref$isRequired = _ref.isRequired,
48605
- isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
48613
+ ariaDescribedBy = _ref.ariaDescribedBy;
48606
48614
 
48607
48615
  var handleKeyDown = function handleKeyDown(id, e) {
48608
48616
  if ((e === null || e === void 0 ? void 0 : e.keyCode) === 13 || (e === null || e === void 0 ? void 0 : e.keyCode) === 32) {
@@ -48658,8 +48666,7 @@ var RadioSection = function RadioSection(_ref) {
48658
48666
  extraStyles: containerStyles
48659
48667
  }, /*#__PURE__*/React__default.createElement(Stack, {
48660
48668
  childGap: "0",
48661
- role: "radiogroup",
48662
- required: isRequired
48669
+ role: "radiogroup"
48663
48670
  }, sections.filter(function (section) {
48664
48671
  return !section.hidden;
48665
48672
  }).map(function (section) {
@@ -48681,8 +48688,7 @@ var RadioSection = function RadioSection(_ref) {
48681
48688
  extraStyles: borderStyles,
48682
48689
  role: "radio",
48683
48690
  "aria-checked": openSection === section.id,
48684
- disabled: section.disabled,
48685
- required: section === null || section === void 0 ? void 0 : section.required
48691
+ "aria-disabled": section.disabled
48686
48692
  }, /*#__PURE__*/React__default.createElement(Stack, {
48687
48693
  childGap: "0"
48688
48694
  }, /*#__PURE__*/React__default.createElement(Box, {
@@ -48712,8 +48718,6 @@ var RadioSection = function RadioSection(_ref) {
48712
48718
  }, !section.hideRadioButton && /*#__PURE__*/React__default.createElement(Box, {
48713
48719
  padding: "0"
48714
48720
  }, /*#__PURE__*/React__default.createElement(RadioButton$2, {
48715
- role: "radio",
48716
- required: !!(section !== null && section !== void 0 && section.required),
48717
48721
  id: "radio-input-".concat(idString(section)),
48718
48722
  name: idString(section),
48719
48723
  ariaDescribedBy: ariaDescribedBy,