@moda/om 17.14.2 → 18.1.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.
Files changed (71) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/index.cjs.js +295 -226
  3. package/dist/index.cjs.js.map +1 -1
  4. package/dist/index.esm.js +295 -226
  5. package/dist/index.esm.js.map +1 -1
  6. package/dist/src/components/AspectRatioBox/AspectRatioBox.d.ts +1 -1
  7. package/dist/src/components/Badge/Badge.d.ts +2 -2
  8. package/dist/src/components/Breadcrumbs/Breadcrumb/Breadcrumb.d.ts +1 -1
  9. package/dist/src/components/Breadcrumbs/Breadcrumbs.d.ts +1 -1
  10. package/dist/src/components/Breakpoint/Breakpoint.d.ts +4 -4
  11. package/dist/src/components/Breakpoint/BreakpointProvider.d.ts +1 -1
  12. package/dist/src/components/Breakpoint/generateMediaQuery.d.ts +2 -2
  13. package/dist/src/components/Button/Button.d.ts +1 -1
  14. package/dist/src/components/Checkbox/Checkbox.d.ts +2 -2
  15. package/dist/src/components/Clickable/Clickable.d.ts +3 -3
  16. package/dist/src/components/ColorSwatch/ColorSwatch.d.ts +2 -2
  17. package/dist/src/components/ColorSwatch/skuColors.d.ts +1 -1
  18. package/dist/src/components/Constrain/Constrain.d.ts +1 -1
  19. package/dist/src/components/Constrain/ExceedConstrain.d.ts +1 -1
  20. package/dist/src/components/ControlLink/ControlLink.d.ts +1 -1
  21. package/dist/src/components/CreditCardNumberInput/CreditCardNumberInput.d.ts +1 -1
  22. package/dist/src/components/CreditCardNumberInput/CreditCardNumberInputField.d.ts +1 -1
  23. package/dist/src/components/DefinitionList/DefinitionList.d.ts +1 -1
  24. package/dist/src/components/Divider/Divider.d.ts +1 -1
  25. package/dist/src/components/Expandable/Expandable.d.ts +1 -1
  26. package/dist/src/components/Field/Field.d.ts +1 -1
  27. package/dist/src/components/Label/Label.d.ts +1 -1
  28. package/dist/src/components/Loading/Loading.d.ts +1 -1
  29. package/dist/src/components/Modal/Modal.d.ts +1 -1
  30. package/dist/src/components/ModalOverlay/ModalOverlay.d.ts +1 -1
  31. package/dist/src/components/Overlay/Overlay.d.ts +1 -1
  32. package/dist/src/components/PasswordInput/PasswordInput.d.ts +1 -1
  33. package/dist/src/components/Popover/Popover.d.ts +1 -1
  34. package/dist/src/components/PromoBanner/PromoBanner.d.ts +1 -1
  35. package/dist/src/components/RadioButton/RadioButton.d.ts +1 -1
  36. package/dist/src/components/SearchInput/SearchInput.d.ts +1 -2
  37. package/dist/src/components/Select/MultiSelect.d.ts +1 -1
  38. package/dist/src/components/Select/Select.d.ts +2 -2
  39. package/dist/src/components/Select/SelectLabel.d.ts +1 -1
  40. package/dist/src/components/Select/SelectOption.d.ts +1 -1
  41. package/dist/src/components/Select/SelectOptions.d.ts +2 -2
  42. package/dist/src/components/Select/useSelect.d.ts +1 -1
  43. package/dist/src/components/SelectableButton/SelectableButton.d.ts +1 -1
  44. package/dist/src/components/Shape/Shape.d.ts +1 -1
  45. package/dist/src/components/SlidingPane/SlidingPane.d.ts +1 -1
  46. package/dist/src/components/Stack/Stack.d.ts +1 -1
  47. package/dist/src/components/Tabs/Tab.d.ts +2 -2
  48. package/dist/src/components/Tabs/TabList.d.ts +1 -1
  49. package/dist/src/components/Tabs/TabPanel.d.ts +1 -1
  50. package/dist/src/components/Tabs/TabPanels.d.ts +1 -1
  51. package/dist/src/components/Tabs/Tabs.d.ts +1 -1
  52. package/dist/src/components/Tag/Tag.d.ts +1 -1
  53. package/dist/src/components/Text/Text.d.ts +6 -5
  54. package/dist/src/components/TextInput/TextInput.d.ts +2 -2
  55. package/dist/src/components/Textarea/Textarea.d.ts +1 -1
  56. package/dist/src/components/Toast/Toast.d.ts +1 -1
  57. package/dist/src/components/VerticalDivider/VerticalDivider.d.ts +1 -1
  58. package/dist/src/hooks/useBreakpoint.d.ts +3 -3
  59. package/dist/src/hooks/useKeyboardListNavigation.d.ts +3 -3
  60. package/dist/src/utilities/States/isRenderProps.d.ts +1 -1
  61. package/dist/styles.css +1 -1
  62. package/package.json +4 -4
  63. package/src/components/Checkbox/Checkbox.tsx +5 -3
  64. package/src/components/SearchInput/SearchInput.stories.tsx +2 -6
  65. package/src/components/SearchInput/SearchInput.test.tsx +14 -0
  66. package/src/components/SearchInput/SearchInput.tsx +6 -13
  67. package/src/components/Select/Select.tsx +3 -3
  68. package/src/components/Select/SelectOptions.tsx +4 -4
  69. package/src/components/SlidingPane/SlidingPane.scss +2 -0
  70. package/src/components/SlidingPane/SlidingPane.tsx +1 -1
  71. package/src/components/Text/Text.tsx +5 -3
package/dist/index.esm.js CHANGED
@@ -496,7 +496,11 @@ breakpoints.breakpoints = {
496
496
 
497
497
  var helpers = {};
498
498
 
499
- var colorString = {exports: {}};
499
+ var colorStringExports = {};
500
+ var colorString = {
501
+ get exports(){ return colorStringExports; },
502
+ set exports(v){ colorStringExports = v; },
503
+ };
500
504
 
501
505
  var colorName = {
502
506
  "aliceblue": [240, 248, 255],
@@ -649,7 +653,11 @@ var colorName = {
649
653
  "yellowgreen": [154, 205, 50]
650
654
  };
651
655
 
652
- var simpleSwizzle = {exports: {}};
656
+ var simpleSwizzleExports = {};
657
+ var simpleSwizzle = {
658
+ get exports(){ return simpleSwizzleExports; },
659
+ set exports(v){ simpleSwizzleExports = v; },
660
+ };
653
661
 
654
662
  var isArrayish$1 = function isArrayish(obj) {
655
663
  if (!obj || typeof obj === 'string') {
@@ -682,7 +690,7 @@ swizzle$1.wrap = function (fn) {
682
690
 
683
691
  /* MIT license */
684
692
  var colorNames = colorName;
685
- var swizzle = simpleSwizzle.exports;
693
+ var swizzle = simpleSwizzleExports;
686
694
  var hasOwnProperty = Object.hasOwnProperty;
687
695
  var reverseNames = Object.create(null);
688
696
 
@@ -898,7 +906,7 @@ function hexDouble(num) {
898
906
  value: true
899
907
  });
900
908
  exports.spacing = exports.colorInHex = exports.color = exports.remToUnitlessPx = exports.text = void 0;
901
- var colorString$1 = colorString.exports;
909
+ var colorString = colorStringExports;
902
910
  var colors_1 = colors;
903
911
  var space_1 = space;
904
912
  var typography_1 = typography;
@@ -922,11 +930,11 @@ function hexDouble(num) {
922
930
  var color = colors_1.colors.all[name];
923
931
  return alpha != null ?
924
932
  // eslint-disable-next-line @typescript-eslint/no-magic-numbers
925
- colorString$1.to.rgb(__spreadArray(__spreadArray([], ((_a = colorString$1.get.rgb(color)) === null || _a === void 0 ? void 0 : _a.slice(0, 3)) || [], true), [alpha], false)) : color;
933
+ colorString.to.rgb(__spreadArray(__spreadArray([], ((_a = colorString.get.rgb(color)) === null || _a === void 0 ? void 0 : _a.slice(0, 3)) || [], true), [alpha], false)) : color;
926
934
  };
927
935
  exports.color = color;
928
936
  var colorInHex = function colorInHex(name, alpha) {
929
- return colorString$1.to.hex(colorString$1.get.rgb((0, exports.color)(name, alpha)));
937
+ return colorString.to.hex(colorString.get.rgb((0, exports.color)(name, alpha)));
930
938
  };
931
939
  exports.colorInHex = colorInHex;
932
940
  var spacing = function spacing(topY, rightX, bottom, left) {
@@ -997,6 +1005,33 @@ function hexDouble(num) {
997
1005
  __exportStar(helpers, exports);
998
1006
  })(dist$4);
999
1007
 
1008
+ function _iterableToArrayLimit(arr, i) {
1009
+ var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
1010
+ if (null != _i) {
1011
+ var _s,
1012
+ _e,
1013
+ _x,
1014
+ _r,
1015
+ _arr = [],
1016
+ _n = !0,
1017
+ _d = !1;
1018
+ try {
1019
+ if (_x = (_i = _i.call(arr)).next, 0 === i) {
1020
+ if (Object(_i) !== _i) return;
1021
+ _n = !1;
1022
+ } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
1023
+ } catch (err) {
1024
+ _d = !0, _e = err;
1025
+ } finally {
1026
+ try {
1027
+ if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
1028
+ } finally {
1029
+ if (_d) throw _e;
1030
+ }
1031
+ }
1032
+ return _arr;
1033
+ }
1034
+ }
1000
1035
  function ownKeys(object, enumerableOnly) {
1001
1036
  var keys = Object.keys(object);
1002
1037
  if (Object.getOwnPropertySymbols) {
@@ -1028,6 +1063,7 @@ function _typeof(obj) {
1028
1063
  }, _typeof(obj);
1029
1064
  }
1030
1065
  function _defineProperty$1(obj, key, value) {
1066
+ key = _toPropertyKey(key);
1031
1067
  if (key in obj) {
1032
1068
  Object.defineProperty(obj, key, {
1033
1069
  value: value,
@@ -1099,30 +1135,6 @@ function _arrayWithHoles(arr) {
1099
1135
  function _iterableToArray(iter) {
1100
1136
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
1101
1137
  }
1102
- function _iterableToArrayLimit(arr, i) {
1103
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
1104
- if (_i == null) return;
1105
- var _arr = [];
1106
- var _n = true;
1107
- var _d = false;
1108
- var _s, _e;
1109
- try {
1110
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
1111
- _arr.push(_s.value);
1112
- if (i && _arr.length === i) break;
1113
- }
1114
- } catch (err) {
1115
- _d = true;
1116
- _e = err;
1117
- } finally {
1118
- try {
1119
- if (!_n && _i["return"] != null) _i["return"]();
1120
- } finally {
1121
- if (_d) throw _e;
1122
- }
1123
- }
1124
- return _arr;
1125
- }
1126
1138
  function _unsupportedIterableToArray(o, minLen) {
1127
1139
  if (!o) return;
1128
1140
  if (typeof o === "string") return _arrayLikeToArray(o, minLen);
@@ -1142,12 +1154,30 @@ function _nonIterableSpread() {
1142
1154
  function _nonIterableRest() {
1143
1155
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1144
1156
  }
1157
+ function _toPrimitive(input, hint) {
1158
+ if (typeof input !== "object" || input === null) return input;
1159
+ var prim = input[Symbol.toPrimitive];
1160
+ if (prim !== undefined) {
1161
+ var res = prim.call(input, hint || "default");
1162
+ if (typeof res !== "object") return res;
1163
+ throw new TypeError("@@toPrimitive must return a primitive value.");
1164
+ }
1165
+ return (hint === "string" ? String : Number)(input);
1166
+ }
1167
+ function _toPropertyKey(arg) {
1168
+ var key = _toPrimitive(arg, "string");
1169
+ return typeof key === "symbol" ? key : String(key);
1170
+ }
1145
1171
 
1146
1172
  var isRenderProps = function isRenderProps(children) {
1147
1173
  return typeof children === 'function';
1148
1174
  };
1149
1175
 
1150
- var classnames = {exports: {}};
1176
+ var classnamesExports = {};
1177
+ var classnames = {
1178
+ get exports(){ return classnamesExports; },
1179
+ set exports(v){ classnamesExports = v; },
1180
+ };
1151
1181
 
1152
1182
  (function (module) {
1153
1183
  /* global define */
@@ -1192,7 +1222,7 @@ var classnames = {exports: {}};
1192
1222
  }
1193
1223
  })();
1194
1224
  })(classnames);
1195
- var classNames = classnames.exports;
1225
+ var classNames = classnamesExports;
1196
1226
 
1197
1227
  var _excluded$F = ["className", "children", "space", "direction", "alignItems", "justifyContent", "style"];
1198
1228
  var Stack = function Stack(_ref) {
@@ -1631,9 +1661,17 @@ function _extends() {
1631
1661
  return _extends.apply(this, arguments);
1632
1662
  }
1633
1663
 
1634
- var propTypes = {exports: {}};
1664
+ var propTypesExports = {};
1665
+ var propTypes = {
1666
+ get exports(){ return propTypesExports; },
1667
+ set exports(v){ propTypesExports = v; },
1668
+ };
1635
1669
 
1636
- var reactIs = {exports: {}};
1670
+ var reactIsExports = {};
1671
+ var reactIs = {
1672
+ get exports(){ return reactIsExports; },
1673
+ set exports(v){ reactIsExports = v; },
1674
+ };
1637
1675
 
1638
1676
  var reactIs_production_min = {};
1639
1677
 
@@ -1917,7 +1955,7 @@ function requireReactIs_development() {
1917
1955
 
1918
1956
  var hasRequiredReactIs;
1919
1957
  function requireReactIs() {
1920
- if (hasRequiredReactIs) return reactIs.exports;
1958
+ if (hasRequiredReactIs) return reactIsExports;
1921
1959
  hasRequiredReactIs = 1;
1922
1960
  (function (module) {
1923
1961
 
@@ -1927,7 +1965,7 @@ function requireReactIs() {
1927
1965
  module.exports = requireReactIs_development();
1928
1966
  }
1929
1967
  })(reactIs);
1930
- return reactIs.exports;
1968
+ return reactIsExports;
1931
1969
  }
1932
1970
 
1933
1971
  /*
@@ -2784,7 +2822,7 @@ var hiddenGuard = {
2784
2822
  left: '1px'
2785
2823
  };
2786
2824
  process.env.NODE_ENV !== "production" ? {
2787
- children: propTypes.exports.node
2825
+ children: propTypesExports.node
2788
2826
  } : {};
2789
2827
 
2790
2828
  var mediumFocus = createMedium({}, function (_ref) {
@@ -2949,25 +2987,25 @@ var FocusLock = /*#__PURE__*/React.forwardRef(function FocusLockUI(props, parent
2949
2987
  }));
2950
2988
  });
2951
2989
  FocusLock.propTypes = process.env.NODE_ENV !== "production" ? {
2952
- children: propTypes.exports.node,
2953
- disabled: propTypes.exports.bool,
2954
- returnFocus: propTypes.exports.oneOfType([propTypes.exports.bool, propTypes.exports.object, propTypes.exports.func]),
2955
- focusOptions: propTypes.exports.object,
2956
- noFocusGuards: propTypes.exports.bool,
2957
- hasPositiveIndices: propTypes.exports.bool,
2958
- allowTextSelection: propTypes.exports.bool,
2959
- autoFocus: propTypes.exports.bool,
2960
- persistentFocus: propTypes.exports.bool,
2961
- crossFrame: propTypes.exports.bool,
2962
- group: propTypes.exports.string,
2963
- className: propTypes.exports.string,
2964
- whiteList: propTypes.exports.func,
2965
- shards: propTypes.exports.arrayOf(propTypes.exports.any),
2966
- as: propTypes.exports.oneOfType([propTypes.exports.string, propTypes.exports.func, propTypes.exports.object]),
2967
- lockProps: propTypes.exports.object,
2968
- onActivation: propTypes.exports.func,
2969
- onDeactivation: propTypes.exports.func,
2970
- sideCar: propTypes.exports.any.isRequired
2990
+ children: propTypesExports.node,
2991
+ disabled: propTypesExports.bool,
2992
+ returnFocus: propTypesExports.oneOfType([propTypesExports.bool, propTypesExports.object, propTypesExports.func]),
2993
+ focusOptions: propTypesExports.object,
2994
+ noFocusGuards: propTypesExports.bool,
2995
+ hasPositiveIndices: propTypesExports.bool,
2996
+ allowTextSelection: propTypesExports.bool,
2997
+ autoFocus: propTypesExports.bool,
2998
+ persistentFocus: propTypesExports.bool,
2999
+ crossFrame: propTypesExports.bool,
3000
+ group: propTypesExports.string,
3001
+ className: propTypesExports.string,
3002
+ whiteList: propTypesExports.func,
3003
+ shards: propTypesExports.arrayOf(propTypesExports.any),
3004
+ as: propTypesExports.oneOfType([propTypesExports.string, propTypesExports.func, propTypesExports.object]),
3005
+ lockProps: propTypesExports.object,
3006
+ onActivation: propTypesExports.func,
3007
+ onDeactivation: propTypesExports.func,
3008
+ sideCar: propTypesExports.any.isRequired
2971
3009
  } : {};
2972
3010
  FocusLock.defaultProps = {
2973
3011
  children: undefined,
@@ -3354,9 +3392,16 @@ var parentAutofocusables = function parentAutofocusables(topNode, visibilityCach
3354
3392
  * Determines if element is contained in scope, including nested shadow DOMs
3355
3393
  */
3356
3394
  var contains$1 = function contains(scope, element) {
3357
- return (scope.shadowRoot ? contains(scope.shadowRoot, element) : Object.getPrototypeOf(scope).contains.call(scope, element)) || toArray(scope.children).some(function (child) {
3358
- return contains(child, element);
3359
- });
3395
+ if (scope.shadowRoot) {
3396
+ return contains(scope.shadowRoot, element);
3397
+ } else {
3398
+ if (Object.getPrototypeOf(scope).contains !== undefined && Object.getPrototypeOf(scope).contains.call(scope, element)) {
3399
+ return true;
3400
+ }
3401
+ return toArray(scope.children).some(function (child) {
3402
+ return contains(child, element);
3403
+ });
3404
+ }
3360
3405
  };
3361
3406
 
3362
3407
  /**
@@ -3566,6 +3611,32 @@ var newFocus = function newFocus(innerNodes, outerNodes, activeElement, lastNode
3566
3611
  return undefined;
3567
3612
  };
3568
3613
 
3614
+ var findAutoFocused = function findAutoFocused(autoFocusables) {
3615
+ return function (node) {
3616
+ var _a;
3617
+ var autofocus = (_a = getDataset(node)) === null || _a === void 0 ? void 0 : _a.autofocus;
3618
+ return (
3619
+ // @ts-expect-error
3620
+ node.autofocus ||
3621
+ //
3622
+ autofocus !== undefined && autofocus !== 'false' ||
3623
+ //
3624
+ autoFocusables.indexOf(node) >= 0
3625
+ );
3626
+ };
3627
+ };
3628
+ var pickAutofocus = function pickAutofocus(nodesIndexes, orderedNodes, groups) {
3629
+ var nodes = nodesIndexes.map(function (_a) {
3630
+ var node = _a.node;
3631
+ return node;
3632
+ });
3633
+ var autoFocusable = filterAutoFocusable(nodes.filter(findAutoFocused(groups)));
3634
+ if (autoFocusable && autoFocusable.length) {
3635
+ return pickFirstFocus(autoFocusable);
3636
+ }
3637
+ return pickFirstFocus(filterAutoFocusable(orderedNodes));
3638
+ };
3639
+
3569
3640
  var getParents = function getParents(node, parents) {
3570
3641
  if (parents === void 0) {
3571
3642
  parents = [];
@@ -3626,13 +3697,6 @@ var allParentAutofocusables = function allParentAutofocusables(entries, visibili
3626
3697
  }, []);
3627
3698
  };
3628
3699
 
3629
- var findAutoFocused = function findAutoFocused(autoFocusables) {
3630
- return function (node) {
3631
- var _a;
3632
- // @ts-expect-error
3633
- return node.autofocus || !!((_a = getDataset(node)) === null || _a === void 0 ? void 0 : _a.autofocus) || autoFocusables.indexOf(node) >= 0;
3634
- };
3635
- };
3636
3700
  var reorderNodes = function reorderNodes(srcNodes, dstNodes) {
3637
3701
  var remap = new Map();
3638
3702
  // no Set(dstNodes) for IE11 :(
@@ -3676,12 +3740,8 @@ var getFocusMerge = function getFocusMerge(topNode, lastNode) {
3676
3740
  });
3677
3741
  var newId = newFocus(innerNodes, outerNodes, activeElement, lastNode);
3678
3742
  if (newId === NEW_FOCUS) {
3679
- var autoFocusable = filterAutoFocusable(anyFocusable.map(function (_a) {
3680
- var node = _a.node;
3681
- return node;
3682
- })).filter(findAutoFocused(allParentAutofocusables(entries, visibilityCache)));
3683
3743
  return {
3684
- node: autoFocusable && autoFocusable.length ? pickFirstFocus(autoFocusable) : pickFirstFocus(filterAutoFocusable(innerNodes))
3744
+ node: pickAutofocus(anyFocusable, innerNodes, allParentAutofocusables(entries, visibilityCache))
3685
3745
  };
3686
3746
  }
3687
3747
  if (newId === undefined) {
@@ -3918,7 +3978,7 @@ var FocusWatcher = function FocusWatcher() {
3918
3978
  return null;
3919
3979
  };
3920
3980
  process.env.NODE_ENV !== "production" ? {
3921
- children: propTypes.exports.node.isRequired
3981
+ children: propTypesExports.node.isRequired
3922
3982
  } : {};
3923
3983
  var onWindowBlur = function onWindowBlur() {
3924
3984
  focusWasOutsideWindow = 'just'; // using setTimeout to set this variable after React/sidecar reaction
@@ -4089,11 +4149,6 @@ var parse = function parse(x) {
4089
4149
  };
4090
4150
  var getOffset = function getOffset(gapMode) {
4091
4151
  var cs = window.getComputedStyle(document.body);
4092
- if (process.env.NODE_ENV !== 'production') {
4093
- if (cs.overflowY === 'hidden') {
4094
- console.error('react-remove-scroll-bar: cannot calculate scrollbar size because it is removed (overflow:hidden on body');
4095
- }
4096
- }
4097
4152
  var left = cs[gapMode === 'padding' ? 'paddingLeft' : 'marginLeft'];
4098
4153
  var top = cs[gapMode === 'padding' ? 'paddingTop' : 'marginTop'];
4099
4154
  var right = cs[gapMode === 'padding' ? 'paddingRight' : 'marginRight'];
@@ -4139,6 +4194,11 @@ var RemoveScrollBar = function RemoveScrollBar(props) {
4139
4194
  noImportant = props.noImportant,
4140
4195
  _a = props.gapMode,
4141
4196
  gapMode = _a === void 0 ? 'margin' : _a;
4197
+ /*
4198
+ gap will be measured on every component mount
4199
+ however it will be used only by the "first" invocation
4200
+ due to singleton nature of <Style
4201
+ */
4142
4202
  var gap = React.useMemo(function () {
4143
4203
  return getGapWidth(gapMode);
4144
4204
  }, [gapMode]);
@@ -6587,7 +6647,7 @@ var Circle12 = function Circle12(_a) {
6587
6647
  };
6588
6648
  Circle12.displayName = 'Circle12';
6589
6649
 
6590
- var _excluded$u = ["className", "defaultChecked", "checked", "children", "value", "onChange", "disabled", "checkIcon", "dataTestId"];
6650
+ var _excluded$u = ["className", "defaultChecked", "checked", "children", "value", "onChange", "disabled", "checkIcon", "dataTestId", "id"];
6591
6651
  var CHECKED_ITEM_PROPS = {
6592
6652
  className: 'Checkbox__check-mark',
6593
6653
  height: '85%',
@@ -6605,6 +6665,7 @@ var Checkbox = function Checkbox(_ref) {
6605
6665
  _ref$checkIcon = _ref.checkIcon,
6606
6666
  checkIcon = _ref$checkIcon === void 0 ? 'checkmark' : _ref$checkIcon,
6607
6667
  dataTestId = _ref.dataTestId,
6668
+ id = _ref.id,
6608
6669
  rest = _objectWithoutProperties(_ref, _excluded$u);
6609
6670
  var _useState = useState((_ref2 = checked !== null && checked !== void 0 ? checked : defaultChecked) !== null && _ref2 !== void 0 ? _ref2 : false),
6610
6671
  _useState2 = _slicedToArray(_useState, 2),
@@ -6618,18 +6679,19 @@ var Checkbox = function Checkbox(_ref) {
6618
6679
  onChange && onChange(event);
6619
6680
  }, [onChange, checked]);
6620
6681
  return /*#__PURE__*/React__default.createElement("label", {
6621
- role: "button",
6682
+ htmlFor: id,
6622
6683
  tabIndex: 0,
6623
6684
  className: classNames('Checkbox', className, {
6624
6685
  'Checkbox--disabled': disabled
6625
6686
  }),
6626
- "data-test-id": "".concat(dataTestId, "--label")
6687
+ "data-test-id": dataTestId && "".concat(dataTestId, "--label")
6627
6688
  }, /*#__PURE__*/React__default.createElement("span", {
6628
6689
  tabIndex: -1,
6629
6690
  className: classNames('Checkbox__indicator', {
6630
6691
  'Checkbox__indicator--disabled': disabled
6631
6692
  })
6632
6693
  }, isChecked && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, checkIcon === 'checkmark' && /*#__PURE__*/React__default.createElement(Checkmark16, CHECKED_ITEM_PROPS), checkIcon === 'circle' && /*#__PURE__*/React__default.createElement(Circle12, CHECKED_ITEM_PROPS))), /*#__PURE__*/React__default.createElement("input", _extends$1({
6694
+ id: id,
6633
6695
  tabIndex: -1,
6634
6696
  className: "Checkbox__input",
6635
6697
  type: "checkbox",
@@ -6637,7 +6699,7 @@ var Checkbox = function Checkbox(_ref) {
6637
6699
  value: value,
6638
6700
  onChange: handleChange,
6639
6701
  disabled: disabled,
6640
- "data-test-id": "".concat(dataTestId, "--input")
6702
+ "data-test-id": dataTestId && "".concat(dataTestId, "--input")
6641
6703
  }, rest)), children && /*#__PURE__*/React__default.createElement("span", {
6642
6704
  className: "Checkbox__label"
6643
6705
  }, children));
@@ -6767,7 +6829,11 @@ var ExceedConstrain = function ExceedConstrain(_ref) {
6767
6829
  }, rest), children);
6768
6830
  };
6769
6831
 
6770
- var reactInputMask = {exports: {}};
6832
+ var reactInputMaskExports = {};
6833
+ var reactInputMask = {
6834
+ get exports(){ return reactInputMaskExports; },
6835
+ set exports(v){ reactInputMaskExports = v; },
6836
+ };
6771
6837
 
6772
6838
  var reactInputMask_production_min;
6773
6839
  var hasRequiredReactInputMask_production_min;
@@ -8353,7 +8419,7 @@ function requireReactInputMask_development() {
8353
8419
  module.exports = requireReactInputMask_development();
8354
8420
  }
8355
8421
  })(reactInputMask);
8356
- var InputMask = /*@__PURE__*/getDefaultExportFromCjs(reactInputMask.exports);
8422
+ var InputMask = /*@__PURE__*/getDefaultExportFromCjs(reactInputMaskExports);
8357
8423
 
8358
8424
  var cardTypes$1 = {
8359
8425
  visa: {
@@ -9111,9 +9177,11 @@ var useUpdateEffect = function useUpdateEffect(effect, deps) {
9111
9177
  }, deps);
9112
9178
  };
9113
9179
 
9114
- var _excluded$p = ["className", "treatment", "color", "family", "children", "style"];
9180
+ var _excluded$p = ["as", "className", "treatment", "color", "family", "children", "style"];
9115
9181
  var Text = function Text(_ref) {
9116
- var className = _ref.className,
9182
+ var _ref$as = _ref.as,
9183
+ Component = _ref$as === void 0 ? 'span' : _ref$as,
9184
+ className = _ref.className,
9117
9185
  _ref$treatment = _ref.treatment,
9118
9186
  treatment = _ref$treatment === void 0 ? 'body1' : _ref$treatment,
9119
9187
  _ref$color = _ref.color,
@@ -9122,7 +9190,7 @@ var Text = function Text(_ref) {
9122
9190
  children = _ref.children,
9123
9191
  style = _ref.style,
9124
9192
  rest = _objectWithoutProperties(_ref, _excluded$p);
9125
- return /*#__PURE__*/React__default.createElement("span", _extends$1({
9193
+ return /*#__PURE__*/React__default.createElement(Component, _extends$1({
9126
9194
  className: classNames("Text Text--".concat(treatment, " ").concat(family ? "Text--".concat(family) : ''), className),
9127
9195
  style: _objectSpread2({
9128
9196
  color: dist$4.colors.all[color]
@@ -9257,12 +9325,11 @@ var Search20 = function Search20(_a) {
9257
9325
  };
9258
9326
  Search20.displayName = 'Search20';
9259
9327
 
9260
- var _excluded$o = ["className", "onChange", "onChangeValue", "onClear", "value"];
9328
+ var _excluded$o = ["className", "onChange", "onClear", "value"];
9261
9329
  var DEFAULT_INPUT_VALUE = '';
9262
9330
  var SearchInput = function SearchInput(_ref) {
9263
9331
  var className = _ref.className,
9264
9332
  onChange = _ref.onChange,
9265
- onChangeValue = _ref.onChangeValue,
9266
9333
  onClear = _ref.onClear,
9267
9334
  _ref$value = _ref.value,
9268
9335
  value = _ref$value === void 0 ? DEFAULT_INPUT_VALUE : _ref$value,
@@ -9272,13 +9339,13 @@ var SearchInput = function SearchInput(_ref) {
9272
9339
  _useState2 = _slicedToArray(_useState, 2),
9273
9340
  controlledValue = _useState2[0],
9274
9341
  setValue = _useState2[1];
9275
- var handleClick = useCallback(function () {
9342
+ var handleClear = useCallback(function () {
9343
+ var _ref$current;
9276
9344
  setValue(DEFAULT_INPUT_VALUE);
9277
- onClear && onClear();
9278
- if (ref.current) {
9279
- ref.current.focus();
9280
- }
9281
- }, [onClear]);
9345
+ onChange === null || onChange === void 0 ? void 0 : onChange(DEFAULT_INPUT_VALUE);
9346
+ onClear === null || onClear === void 0 ? void 0 : onClear();
9347
+ (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.focus();
9348
+ }, [onClear, onChange]);
9282
9349
  var handleChange = useCallback(function (value) {
9283
9350
  onChange === null || onChange === void 0 ? void 0 : onChange(value);
9284
9351
  setValue(value);
@@ -9286,9 +9353,6 @@ var SearchInput = function SearchInput(_ref) {
9286
9353
  useEffect(function () {
9287
9354
  return setValue(value);
9288
9355
  }, [value]);
9289
- useEffect(function () {
9290
- onChangeValue && onChangeValue(controlledValue);
9291
- }, [controlledValue, onChangeValue]);
9292
9356
  return /*#__PURE__*/React__default.createElement("div", {
9293
9357
  className: classNames('SearchInput', className)
9294
9358
  }, /*#__PURE__*/React__default.createElement("div", {
@@ -9300,138 +9364,143 @@ var SearchInput = function SearchInput(_ref) {
9300
9364
  ref: ref
9301
9365
  }, rest)), controlledValue && /*#__PURE__*/React__default.createElement(Clickable, {
9302
9366
  className: "SearchInput__clear",
9303
- onClick: handleClick,
9367
+ onClick: handleClear,
9304
9368
  type: "reset"
9305
9369
  }, /*#__PURE__*/React__default.createElement(Exit20, null)));
9306
9370
  };
9307
9371
 
9308
- function t(t) {
9309
- return "object" == _typeof(t) && null != t && 1 === t.nodeType;
9310
- }
9311
- function e(t, e) {
9312
- return (!e || "hidden" !== t) && "visible" !== t && "clip" !== t;
9313
- }
9314
- function n(t, n) {
9315
- if (t.clientHeight < t.scrollHeight || t.clientWidth < t.scrollWidth) {
9316
- var r = getComputedStyle(t, null);
9317
- return e(r.overflowY, n) || e(r.overflowX, n) || function (t) {
9318
- var e = function (t) {
9319
- if (!t.ownerDocument || !t.ownerDocument.defaultView) return null;
9320
- try {
9321
- return t.ownerDocument.defaultView.frameElement;
9322
- } catch (t) {
9323
- return null;
9324
- }
9325
- }(t);
9326
- return !!e && (e.clientHeight < t.scrollHeight || e.clientWidth < t.scrollWidth);
9327
- }(t);
9328
- }
9329
- return !1;
9330
- }
9331
- function r(t, e, n, r, i, o, l, d) {
9332
- return o < t && l > e || o > t && l < e ? 0 : o <= t && d <= n || l >= e && d >= n ? o - t - r : l > e && d < n || o < t && d > n ? l - e + i : 0;
9333
- }
9334
- function compute (e, i) {
9335
- var o = window,
9336
- l = i.scrollMode,
9337
- d = i.block,
9338
- u = i.inline,
9339
- h = i.boundary,
9340
- a = i.skipOverflowHiddenElements,
9341
- c = "function" == typeof h ? h : function (t) {
9342
- return t !== h;
9372
+ var e = function e(_e) {
9373
+ return "object" == _typeof(_e) && null != _e && 1 === _e.nodeType;
9374
+ },
9375
+ t$1 = function t(e, _t) {
9376
+ return (!_t || "hidden" !== e) && "visible" !== e && "clip" !== e;
9377
+ },
9378
+ n = function n(e, _n) {
9379
+ if (e.clientHeight < e.scrollHeight || e.clientWidth < e.scrollWidth) {
9380
+ var _l = getComputedStyle(e, null);
9381
+ return t$1(_l.overflowY, _n) || t$1(_l.overflowX, _n) || function (e) {
9382
+ var t = function (e) {
9383
+ if (!e.ownerDocument || !e.ownerDocument.defaultView) return null;
9384
+ try {
9385
+ return e.ownerDocument.defaultView.frameElement;
9386
+ } catch (e) {
9387
+ return null;
9388
+ }
9389
+ }(e);
9390
+ return !!t && (t.clientHeight < e.scrollHeight || t.clientWidth < e.scrollWidth);
9391
+ }(e);
9392
+ }
9393
+ return !1;
9394
+ },
9395
+ l = function l(e, t, n, _l2, i, o, r, d) {
9396
+ return o < e && r > t || o > e && r < t ? 0 : o <= e && d <= n || r >= t && d >= n ? o - e - _l2 : r > t && d < n || o < e && d > n ? r - t + i : 0;
9397
+ },
9398
+ i = function i(e) {
9399
+ var t = e.parentElement;
9400
+ return null == t ? e.getRootNode().host || null : t;
9401
+ };
9402
+ var o$1 = function o(t, _o2) {
9403
+ var r, d, h, f, u, s;
9404
+ if ("undefined" == typeof document) return [];
9405
+ var a = _o2.scrollMode,
9406
+ c = _o2.block,
9407
+ g = _o2.inline,
9408
+ m = _o2.boundary,
9409
+ p = _o2.skipOverflowHiddenElements,
9410
+ w = "function" == typeof m ? m : function (e) {
9411
+ return e !== m;
9343
9412
  };
9344
- if (!t(e)) throw new TypeError("Invalid target");
9345
- for (var f = document.scrollingElement || document.documentElement, s = [], p = e; t(p) && c(p);) {
9346
- if ((p = p.parentElement) === f) {
9347
- s.push(p);
9413
+ if (!e(t)) throw new TypeError("Invalid target");
9414
+ var W = document.scrollingElement || document.documentElement,
9415
+ H = [],
9416
+ b = t;
9417
+ for (; e(b) && w(b);) {
9418
+ if (b = i(b), b === W) {
9419
+ H.push(b);
9348
9420
  break;
9349
9421
  }
9350
- null != p && p === document.body && n(p) && !n(document.documentElement) || null != p && n(p, a) && s.push(p);
9351
- }
9352
- for (var m = o.visualViewport ? o.visualViewport.width : innerWidth, g = o.visualViewport ? o.visualViewport.height : innerHeight, w = window.scrollX || pageXOffset, v = window.scrollY || pageYOffset, W = e.getBoundingClientRect(), b = W.height, H = W.width, y = W.top, E = W.right, M = W.bottom, V = W.left, x = "start" === d || "nearest" === d ? y : "end" === d ? M : y + b / 2, I = "center" === u ? V + H / 2 : "end" === u ? E : V, C = [], T = 0; T < s.length; T++) {
9353
- var k = s[T],
9354
- B = k.getBoundingClientRect(),
9355
- D = B.height,
9356
- O = B.width,
9357
- R = B.top,
9358
- X = B.right,
9359
- Y = B.bottom,
9360
- L = B.left;
9361
- if ("if-needed" === l && y >= 0 && V >= 0 && M <= g && E <= m && y >= R && M <= Y && V >= L && E <= X) return C;
9362
- var S = getComputedStyle(k),
9363
- j = parseInt(S.borderLeftWidth, 10),
9364
- q = parseInt(S.borderTopWidth, 10),
9365
- z = parseInt(S.borderRightWidth, 10),
9366
- A = parseInt(S.borderBottomWidth, 10),
9367
- F = 0,
9368
- G = 0,
9369
- J = "offsetWidth" in k ? k.offsetWidth - k.clientWidth - j - z : 0,
9370
- K = "offsetHeight" in k ? k.offsetHeight - k.clientHeight - q - A : 0;
9371
- if (f === k) F = "start" === d ? x : "end" === d ? x - g : "nearest" === d ? r(v, v + g, g, q, A, v + x, v + x + b, b) : x - g / 2, G = "start" === u ? I : "center" === u ? I - m / 2 : "end" === u ? I - m : r(w, w + m, m, j, z, w + I, w + I + H, H), F = Math.max(0, F + v), G = Math.max(0, G + w);else {
9372
- F = "start" === d ? x - R - q : "end" === d ? x - Y + A + K : "nearest" === d ? r(R, Y, D, q, A + K, x, x + b, b) : x - (R + D / 2) + K / 2, G = "start" === u ? I - L - j : "center" === u ? I - (L + O / 2) + J / 2 : "end" === u ? I - X + z + J : r(L, X, O, j, z + J, I, I + H, H);
9373
- var N = k.scrollLeft,
9374
- P = k.scrollTop;
9375
- x += P - (F = Math.max(0, Math.min(P + F, k.scrollHeight - D + K))), I += N - (G = Math.max(0, Math.min(N + G, k.scrollWidth - O + J)));
9376
- }
9377
- C.push({
9378
- el: k,
9379
- top: F,
9380
- left: G
9422
+ null != b && b === document.body && n(b) && !n(document.documentElement) || null != b && n(b, p) && H.push(b);
9423
+ }
9424
+ var v = null != (d = null == (r = window.visualViewport) ? void 0 : r.width) ? d : innerWidth,
9425
+ y = null != (f = null == (h = window.visualViewport) ? void 0 : h.height) ? f : innerHeight,
9426
+ E = null != (u = window.scrollX) ? u : pageXOffset,
9427
+ M = null != (s = window.scrollY) ? s : pageYOffset,
9428
+ _t$getBoundingClientR = t.getBoundingClientRect(),
9429
+ x = _t$getBoundingClientR.height,
9430
+ I = _t$getBoundingClientR.width,
9431
+ C = _t$getBoundingClientR.top,
9432
+ R = _t$getBoundingClientR.right,
9433
+ T = _t$getBoundingClientR.bottom,
9434
+ V = _t$getBoundingClientR.left,
9435
+ k = "start" === c || "nearest" === c ? C : "end" === c ? T : C + x / 2,
9436
+ B = "center" === g ? V + I / 2 : "end" === g ? R : V,
9437
+ D = [];
9438
+ for (var _e2 = 0; _e2 < H.length; _e2++) {
9439
+ var _t2 = H[_e2],
9440
+ _t2$getBoundingClient = _t2.getBoundingClientRect(),
9441
+ _n2 = _t2$getBoundingClient.height,
9442
+ _i = _t2$getBoundingClient.width,
9443
+ _o = _t2$getBoundingClient.top,
9444
+ _r = _t2$getBoundingClient.right,
9445
+ _d = _t2$getBoundingClient.bottom,
9446
+ _h = _t2$getBoundingClient.left;
9447
+ if ("if-needed" === a && C >= 0 && V >= 0 && T <= y && R <= v && C >= _o && T <= _d && V >= _h && R <= _r) return D;
9448
+ var _f = getComputedStyle(_t2),
9449
+ _u = parseInt(_f.borderLeftWidth, 10),
9450
+ _s = parseInt(_f.borderTopWidth, 10),
9451
+ _m = parseInt(_f.borderRightWidth, 10),
9452
+ _p = parseInt(_f.borderBottomWidth, 10),
9453
+ _w = 0,
9454
+ _b = 0,
9455
+ O = "offsetWidth" in _t2 ? _t2.offsetWidth - _t2.clientWidth - _u - _m : 0,
9456
+ X = "offsetHeight" in _t2 ? _t2.offsetHeight - _t2.clientHeight - _s - _p : 0,
9457
+ Y = "offsetWidth" in _t2 ? 0 === _t2.offsetWidth ? 0 : _i / _t2.offsetWidth : 0,
9458
+ L = "offsetHeight" in _t2 ? 0 === _t2.offsetHeight ? 0 : _n2 / _t2.offsetHeight : 0;
9459
+ if (W === _t2) _w = "start" === c ? k : "end" === c ? k - y : "nearest" === c ? l(M, M + y, y, _s, _p, M + k, M + k + x, x) : k - y / 2, _b = "start" === g ? B : "center" === g ? B - v / 2 : "end" === g ? B - v : l(E, E + v, v, _u, _m, E + B, E + B + I, I), _w = Math.max(0, _w + M), _b = Math.max(0, _b + E);else {
9460
+ _w = "start" === c ? k - _o - _s : "end" === c ? k - _d + _p + X : "nearest" === c ? l(_o, _d, _n2, _s, _p + X, k, k + x, x) : k - (_o + _n2 / 2) + X / 2, _b = "start" === g ? B - _h - _u : "center" === g ? B - (_h + _i / 2) + O / 2 : "end" === g ? B - _r + _m + O : l(_h, _r, _i, _u, _m + O, B, B + I, I);
9461
+ var _e3 = _t2.scrollLeft,
9462
+ _f2 = _t2.scrollTop;
9463
+ _w = Math.max(0, Math.min(_f2 + _w / L, _t2.scrollHeight - _n2 / L + X)), _b = Math.max(0, Math.min(_e3 + _b / Y, _t2.scrollWidth - _i / Y + O)), k += _f2 - _w, B += _e3 - _b;
9464
+ }
9465
+ D.push({
9466
+ el: _t2,
9467
+ top: _w,
9468
+ left: _b
9381
9469
  });
9382
9470
  }
9383
- return C;
9384
- }
9471
+ return D;
9472
+ };
9385
9473
 
9386
- function isOptionsObject(options) {
9387
- return options === Object(options) && Object.keys(options).length !== 0;
9388
- }
9389
- function defaultBehavior(actions, behavior) {
9390
- if (behavior === void 0) {
9391
- behavior = 'auto';
9392
- }
9393
- var canSmoothScroll = ('scrollBehavior' in document.body.style);
9394
- actions.forEach(function (_ref) {
9395
- var el = _ref.el,
9396
- top = _ref.top,
9397
- left = _ref.left;
9398
- if (el.scroll && canSmoothScroll) {
9399
- el.scroll({
9400
- top: top,
9401
- left: left,
9402
- behavior: behavior
9403
- });
9404
- } else {
9405
- el.scrollTop = top;
9406
- el.scrollLeft = left;
9407
- }
9408
- });
9409
- }
9410
- function getOptions(options) {
9411
- if (options === false) {
9412
- return {
9413
- block: 'end',
9414
- inline: 'nearest'
9415
- };
9416
- }
9417
- if (isOptionsObject(options)) {
9418
- return options;
9419
- }
9420
- return {
9421
- block: 'start',
9422
- inline: 'nearest'
9474
+ var t = function t(e) {
9475
+ return !1 === e ? {
9476
+ block: "end",
9477
+ inline: "nearest"
9478
+ } : function (e) {
9479
+ return e === Object(e) && 0 !== Object.keys(e).length;
9480
+ }(e) ? e : {
9481
+ block: "start",
9482
+ inline: "nearest"
9423
9483
  };
9424
- }
9425
- function scrollIntoView(target, options) {
9426
- var isTargetAttached = target.isConnected || target.ownerDocument.documentElement.contains(target);
9427
- if (isOptionsObject(options) && typeof options.behavior === 'function') {
9428
- return options.behavior(isTargetAttached ? compute(target, options) : []);
9429
- }
9430
- if (!isTargetAttached) {
9431
- return;
9432
- }
9433
- var computeOptions = getOptions(options);
9434
- return defaultBehavior(compute(target, computeOptions), computeOptions.behavior);
9484
+ };
9485
+ function o(o, l) {
9486
+ var n = o.isConnected || o.ownerDocument.documentElement.contains(o);
9487
+ if (function (e) {
9488
+ return "object" == _typeof(e) && "function" == typeof e.behavior;
9489
+ }(l)) return l.behavior(n ? o$1(o, l) : []);
9490
+ if (!n) return;
9491
+ var r = t(l),
9492
+ c = o$1(o, r),
9493
+ i = ("scrollBehavior" in document.body.style);
9494
+ c.forEach(function (e) {
9495
+ var t = e.el,
9496
+ o = e.top,
9497
+ l = e.left;
9498
+ t.scroll && i ? t.scroll({
9499
+ top: o,
9500
+ left: l,
9501
+ behavior: r.behavior
9502
+ }) : (t.scrollTop = o, t.scrollLeft = l);
9503
+ });
9435
9504
  }
9436
9505
 
9437
9506
  var SelectOption = function SelectOption(_ref) {
@@ -9448,7 +9517,7 @@ var SelectOption = function SelectOption(_ref) {
9448
9517
  }, [onClick, option]);
9449
9518
  useEffect(function () {
9450
9519
  if (active && ref.current) {
9451
- scrollIntoView(ref.current, {
9520
+ o(ref.current, {
9452
9521
  scrollMode: 'if-needed',
9453
9522
  block: 'nearest'
9454
9523
  });
@@ -9527,11 +9596,11 @@ var SelectOptions = function SelectOptions(_ref) {
9527
9596
  tabIndex: -1,
9528
9597
  role: "listbox",
9529
9598
  ref: ref,
9530
- "aria-labelledby": "Select__label--".concat(idRef),
9531
- "aria-activedescendant": "SelectOption--".concat(activeOption === null || activeOption === void 0 ? void 0 : activeOption.value, "-").concat(idRef)
9599
+ "aria-labelledby": "Select__label".concat(idRef ? "--".concat(idRef) : ''),
9600
+ "aria-activedescendant": "SelectOption--".concat(activeOption === null || activeOption === void 0 ? void 0 : activeOption.value).concat(idRef ? "-".concat(idRef) : '')
9532
9601
  }, rest), options.map(function (option) {
9533
9602
  return /*#__PURE__*/React__default.createElement(SelectOption, {
9534
- id: "SelectOption--".concat(option.value, "-").concat(idRef),
9603
+ id: "SelectOption--".concat(option.value).concat(idRef ? "-".concat(idRef) : ''),
9535
9604
  key: option.value,
9536
9605
  option: option,
9537
9606
  dataTestId: dataTestId,
@@ -9661,8 +9730,7 @@ var Select = function Select(_ref) {
9661
9730
  _ref$dropDirection = _ref.dropDirection,
9662
9731
  dropDirection = _ref$dropDirection === void 0 ? 'down' : _ref$dropDirection,
9663
9732
  error = _ref.error,
9664
- _ref$idRef = _ref.idRef,
9665
- idRef = _ref$idRef === void 0 ? '' : _ref$idRef,
9733
+ idRef = _ref.idRef,
9666
9734
  _ref$label = _ref.label,
9667
9735
  label = _ref$label === void 0 ? '' : _ref$label,
9668
9736
  name = _ref.name,
@@ -9724,7 +9792,7 @@ var Select = function Select(_ref) {
9724
9792
  });
9725
9793
  }, [options, state.focused]);
9726
9794
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", _extends$1({
9727
- id: idRef ? "Select--".concat(idRef) : undefined,
9795
+ id: idRef && "Select--".concat(idRef),
9728
9796
  className: classNames('Select', {
9729
9797
  'Select--disabled': disabled,
9730
9798
  'Select--error': error
@@ -9736,7 +9804,7 @@ var Select = function Select(_ref) {
9736
9804
  type: "hidden",
9737
9805
  value: state.value
9738
9806
  }), /*#__PURE__*/React__default.createElement(Clickable, {
9739
- id: "Select__value--".concat(idRef),
9807
+ id: idRef && "Select__value--".concat(idRef),
9740
9808
  className: "Select__value",
9741
9809
  disabled: disabled,
9742
9810
  onClick: handleToggle,
@@ -11179,6 +11247,7 @@ var SlidingPane = function SlidingPane(_ref) {
11179
11247
  family: "serif"
11180
11248
  }, title), /*#__PURE__*/React__default.createElement(Clickable, {
11181
11249
  className: "SlidingPane__close",
11250
+ "aria-label": "Close",
11182
11251
  onClick: onClose
11183
11252
  }, /*#__PURE__*/React__default.createElement(Exit16, null))), /*#__PURE__*/React__default.createElement("div", {
11184
11253
  className: "SlidingPane__content"