@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.cjs.js CHANGED
@@ -516,7 +516,11 @@ breakpoints.breakpoints = {
516
516
 
517
517
  var helpers = {};
518
518
 
519
- var colorString = {exports: {}};
519
+ var colorStringExports = {};
520
+ var colorString = {
521
+ get exports(){ return colorStringExports; },
522
+ set exports(v){ colorStringExports = v; },
523
+ };
520
524
 
521
525
  var colorName = {
522
526
  "aliceblue": [240, 248, 255],
@@ -669,7 +673,11 @@ var colorName = {
669
673
  "yellowgreen": [154, 205, 50]
670
674
  };
671
675
 
672
- var simpleSwizzle = {exports: {}};
676
+ var simpleSwizzleExports = {};
677
+ var simpleSwizzle = {
678
+ get exports(){ return simpleSwizzleExports; },
679
+ set exports(v){ simpleSwizzleExports = v; },
680
+ };
673
681
 
674
682
  var isArrayish$1 = function isArrayish(obj) {
675
683
  if (!obj || typeof obj === 'string') {
@@ -702,7 +710,7 @@ swizzle$1.wrap = function (fn) {
702
710
 
703
711
  /* MIT license */
704
712
  var colorNames = colorName;
705
- var swizzle = simpleSwizzle.exports;
713
+ var swizzle = simpleSwizzleExports;
706
714
  var hasOwnProperty = Object.hasOwnProperty;
707
715
  var reverseNames = Object.create(null);
708
716
 
@@ -918,7 +926,7 @@ function hexDouble(num) {
918
926
  value: true
919
927
  });
920
928
  exports.spacing = exports.colorInHex = exports.color = exports.remToUnitlessPx = exports.text = void 0;
921
- var colorString$1 = colorString.exports;
929
+ var colorString = colorStringExports;
922
930
  var colors_1 = colors;
923
931
  var space_1 = space;
924
932
  var typography_1 = typography;
@@ -942,11 +950,11 @@ function hexDouble(num) {
942
950
  var color = colors_1.colors.all[name];
943
951
  return alpha != null ?
944
952
  // eslint-disable-next-line @typescript-eslint/no-magic-numbers
945
- 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;
953
+ colorString.to.rgb(__spreadArray(__spreadArray([], ((_a = colorString.get.rgb(color)) === null || _a === void 0 ? void 0 : _a.slice(0, 3)) || [], true), [alpha], false)) : color;
946
954
  };
947
955
  exports.color = color;
948
956
  var colorInHex = function colorInHex(name, alpha) {
949
- return colorString$1.to.hex(colorString$1.get.rgb((0, exports.color)(name, alpha)));
957
+ return colorString.to.hex(colorString.get.rgb((0, exports.color)(name, alpha)));
950
958
  };
951
959
  exports.colorInHex = colorInHex;
952
960
  var spacing = function spacing(topY, rightX, bottom, left) {
@@ -1017,6 +1025,33 @@ function hexDouble(num) {
1017
1025
  __exportStar(helpers, exports);
1018
1026
  })(dist$4);
1019
1027
 
1028
+ function _iterableToArrayLimit(arr, i) {
1029
+ var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
1030
+ if (null != _i) {
1031
+ var _s,
1032
+ _e,
1033
+ _x,
1034
+ _r,
1035
+ _arr = [],
1036
+ _n = !0,
1037
+ _d = !1;
1038
+ try {
1039
+ if (_x = (_i = _i.call(arr)).next, 0 === i) {
1040
+ if (Object(_i) !== _i) return;
1041
+ _n = !1;
1042
+ } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
1043
+ } catch (err) {
1044
+ _d = !0, _e = err;
1045
+ } finally {
1046
+ try {
1047
+ if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
1048
+ } finally {
1049
+ if (_d) throw _e;
1050
+ }
1051
+ }
1052
+ return _arr;
1053
+ }
1054
+ }
1020
1055
  function ownKeys(object, enumerableOnly) {
1021
1056
  var keys = Object.keys(object);
1022
1057
  if (Object.getOwnPropertySymbols) {
@@ -1048,6 +1083,7 @@ function _typeof(obj) {
1048
1083
  }, _typeof(obj);
1049
1084
  }
1050
1085
  function _defineProperty$1(obj, key, value) {
1086
+ key = _toPropertyKey(key);
1051
1087
  if (key in obj) {
1052
1088
  Object.defineProperty(obj, key, {
1053
1089
  value: value,
@@ -1119,30 +1155,6 @@ function _arrayWithHoles(arr) {
1119
1155
  function _iterableToArray(iter) {
1120
1156
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
1121
1157
  }
1122
- function _iterableToArrayLimit(arr, i) {
1123
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
1124
- if (_i == null) return;
1125
- var _arr = [];
1126
- var _n = true;
1127
- var _d = false;
1128
- var _s, _e;
1129
- try {
1130
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
1131
- _arr.push(_s.value);
1132
- if (i && _arr.length === i) break;
1133
- }
1134
- } catch (err) {
1135
- _d = true;
1136
- _e = err;
1137
- } finally {
1138
- try {
1139
- if (!_n && _i["return"] != null) _i["return"]();
1140
- } finally {
1141
- if (_d) throw _e;
1142
- }
1143
- }
1144
- return _arr;
1145
- }
1146
1158
  function _unsupportedIterableToArray(o, minLen) {
1147
1159
  if (!o) return;
1148
1160
  if (typeof o === "string") return _arrayLikeToArray(o, minLen);
@@ -1162,12 +1174,30 @@ function _nonIterableSpread() {
1162
1174
  function _nonIterableRest() {
1163
1175
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1164
1176
  }
1177
+ function _toPrimitive(input, hint) {
1178
+ if (typeof input !== "object" || input === null) return input;
1179
+ var prim = input[Symbol.toPrimitive];
1180
+ if (prim !== undefined) {
1181
+ var res = prim.call(input, hint || "default");
1182
+ if (typeof res !== "object") return res;
1183
+ throw new TypeError("@@toPrimitive must return a primitive value.");
1184
+ }
1185
+ return (hint === "string" ? String : Number)(input);
1186
+ }
1187
+ function _toPropertyKey(arg) {
1188
+ var key = _toPrimitive(arg, "string");
1189
+ return typeof key === "symbol" ? key : String(key);
1190
+ }
1165
1191
 
1166
1192
  var isRenderProps = function isRenderProps(children) {
1167
1193
  return typeof children === 'function';
1168
1194
  };
1169
1195
 
1170
- var classnames = {exports: {}};
1196
+ var classnamesExports = {};
1197
+ var classnames = {
1198
+ get exports(){ return classnamesExports; },
1199
+ set exports(v){ classnamesExports = v; },
1200
+ };
1171
1201
 
1172
1202
  (function (module) {
1173
1203
  /* global define */
@@ -1212,7 +1242,7 @@ var classnames = {exports: {}};
1212
1242
  }
1213
1243
  })();
1214
1244
  })(classnames);
1215
- var classNames = classnames.exports;
1245
+ var classNames = classnamesExports;
1216
1246
 
1217
1247
  var _excluded$F = ["className", "children", "space", "direction", "alignItems", "justifyContent", "style"];
1218
1248
  var Stack = function Stack(_ref) {
@@ -1651,9 +1681,17 @@ function _extends() {
1651
1681
  return _extends.apply(this, arguments);
1652
1682
  }
1653
1683
 
1654
- var propTypes = {exports: {}};
1684
+ var propTypesExports = {};
1685
+ var propTypes = {
1686
+ get exports(){ return propTypesExports; },
1687
+ set exports(v){ propTypesExports = v; },
1688
+ };
1655
1689
 
1656
- var reactIs = {exports: {}};
1690
+ var reactIsExports = {};
1691
+ var reactIs = {
1692
+ get exports(){ return reactIsExports; },
1693
+ set exports(v){ reactIsExports = v; },
1694
+ };
1657
1695
 
1658
1696
  var reactIs_production_min = {};
1659
1697
 
@@ -1937,7 +1975,7 @@ function requireReactIs_development() {
1937
1975
 
1938
1976
  var hasRequiredReactIs;
1939
1977
  function requireReactIs() {
1940
- if (hasRequiredReactIs) return reactIs.exports;
1978
+ if (hasRequiredReactIs) return reactIsExports;
1941
1979
  hasRequiredReactIs = 1;
1942
1980
  (function (module) {
1943
1981
 
@@ -1947,7 +1985,7 @@ function requireReactIs() {
1947
1985
  module.exports = requireReactIs_development();
1948
1986
  }
1949
1987
  })(reactIs);
1950
- return reactIs.exports;
1988
+ return reactIsExports;
1951
1989
  }
1952
1990
 
1953
1991
  /*
@@ -2804,7 +2842,7 @@ var hiddenGuard = {
2804
2842
  left: '1px'
2805
2843
  };
2806
2844
  process.env.NODE_ENV !== "production" ? {
2807
- children: propTypes.exports.node
2845
+ children: propTypesExports.node
2808
2846
  } : {};
2809
2847
 
2810
2848
  var mediumFocus = createMedium({}, function (_ref) {
@@ -2969,25 +3007,25 @@ var FocusLock = /*#__PURE__*/React__namespace.forwardRef(function FocusLockUI(pr
2969
3007
  }));
2970
3008
  });
2971
3009
  FocusLock.propTypes = process.env.NODE_ENV !== "production" ? {
2972
- children: propTypes.exports.node,
2973
- disabled: propTypes.exports.bool,
2974
- returnFocus: propTypes.exports.oneOfType([propTypes.exports.bool, propTypes.exports.object, propTypes.exports.func]),
2975
- focusOptions: propTypes.exports.object,
2976
- noFocusGuards: propTypes.exports.bool,
2977
- hasPositiveIndices: propTypes.exports.bool,
2978
- allowTextSelection: propTypes.exports.bool,
2979
- autoFocus: propTypes.exports.bool,
2980
- persistentFocus: propTypes.exports.bool,
2981
- crossFrame: propTypes.exports.bool,
2982
- group: propTypes.exports.string,
2983
- className: propTypes.exports.string,
2984
- whiteList: propTypes.exports.func,
2985
- shards: propTypes.exports.arrayOf(propTypes.exports.any),
2986
- as: propTypes.exports.oneOfType([propTypes.exports.string, propTypes.exports.func, propTypes.exports.object]),
2987
- lockProps: propTypes.exports.object,
2988
- onActivation: propTypes.exports.func,
2989
- onDeactivation: propTypes.exports.func,
2990
- sideCar: propTypes.exports.any.isRequired
3010
+ children: propTypesExports.node,
3011
+ disabled: propTypesExports.bool,
3012
+ returnFocus: propTypesExports.oneOfType([propTypesExports.bool, propTypesExports.object, propTypesExports.func]),
3013
+ focusOptions: propTypesExports.object,
3014
+ noFocusGuards: propTypesExports.bool,
3015
+ hasPositiveIndices: propTypesExports.bool,
3016
+ allowTextSelection: propTypesExports.bool,
3017
+ autoFocus: propTypesExports.bool,
3018
+ persistentFocus: propTypesExports.bool,
3019
+ crossFrame: propTypesExports.bool,
3020
+ group: propTypesExports.string,
3021
+ className: propTypesExports.string,
3022
+ whiteList: propTypesExports.func,
3023
+ shards: propTypesExports.arrayOf(propTypesExports.any),
3024
+ as: propTypesExports.oneOfType([propTypesExports.string, propTypesExports.func, propTypesExports.object]),
3025
+ lockProps: propTypesExports.object,
3026
+ onActivation: propTypesExports.func,
3027
+ onDeactivation: propTypesExports.func,
3028
+ sideCar: propTypesExports.any.isRequired
2991
3029
  } : {};
2992
3030
  FocusLock.defaultProps = {
2993
3031
  children: undefined,
@@ -3374,9 +3412,16 @@ var parentAutofocusables = function parentAutofocusables(topNode, visibilityCach
3374
3412
  * Determines if element is contained in scope, including nested shadow DOMs
3375
3413
  */
3376
3414
  var contains$1 = function contains(scope, element) {
3377
- return (scope.shadowRoot ? contains(scope.shadowRoot, element) : Object.getPrototypeOf(scope).contains.call(scope, element)) || toArray(scope.children).some(function (child) {
3378
- return contains(child, element);
3379
- });
3415
+ if (scope.shadowRoot) {
3416
+ return contains(scope.shadowRoot, element);
3417
+ } else {
3418
+ if (Object.getPrototypeOf(scope).contains !== undefined && Object.getPrototypeOf(scope).contains.call(scope, element)) {
3419
+ return true;
3420
+ }
3421
+ return toArray(scope.children).some(function (child) {
3422
+ return contains(child, element);
3423
+ });
3424
+ }
3380
3425
  };
3381
3426
 
3382
3427
  /**
@@ -3586,6 +3631,32 @@ var newFocus = function newFocus(innerNodes, outerNodes, activeElement, lastNode
3586
3631
  return undefined;
3587
3632
  };
3588
3633
 
3634
+ var findAutoFocused = function findAutoFocused(autoFocusables) {
3635
+ return function (node) {
3636
+ var _a;
3637
+ var autofocus = (_a = getDataset(node)) === null || _a === void 0 ? void 0 : _a.autofocus;
3638
+ return (
3639
+ // @ts-expect-error
3640
+ node.autofocus ||
3641
+ //
3642
+ autofocus !== undefined && autofocus !== 'false' ||
3643
+ //
3644
+ autoFocusables.indexOf(node) >= 0
3645
+ );
3646
+ };
3647
+ };
3648
+ var pickAutofocus = function pickAutofocus(nodesIndexes, orderedNodes, groups) {
3649
+ var nodes = nodesIndexes.map(function (_a) {
3650
+ var node = _a.node;
3651
+ return node;
3652
+ });
3653
+ var autoFocusable = filterAutoFocusable(nodes.filter(findAutoFocused(groups)));
3654
+ if (autoFocusable && autoFocusable.length) {
3655
+ return pickFirstFocus(autoFocusable);
3656
+ }
3657
+ return pickFirstFocus(filterAutoFocusable(orderedNodes));
3658
+ };
3659
+
3589
3660
  var getParents = function getParents(node, parents) {
3590
3661
  if (parents === void 0) {
3591
3662
  parents = [];
@@ -3646,13 +3717,6 @@ var allParentAutofocusables = function allParentAutofocusables(entries, visibili
3646
3717
  }, []);
3647
3718
  };
3648
3719
 
3649
- var findAutoFocused = function findAutoFocused(autoFocusables) {
3650
- return function (node) {
3651
- var _a;
3652
- // @ts-expect-error
3653
- return node.autofocus || !!((_a = getDataset(node)) === null || _a === void 0 ? void 0 : _a.autofocus) || autoFocusables.indexOf(node) >= 0;
3654
- };
3655
- };
3656
3720
  var reorderNodes = function reorderNodes(srcNodes, dstNodes) {
3657
3721
  var remap = new Map();
3658
3722
  // no Set(dstNodes) for IE11 :(
@@ -3696,12 +3760,8 @@ var getFocusMerge = function getFocusMerge(topNode, lastNode) {
3696
3760
  });
3697
3761
  var newId = newFocus(innerNodes, outerNodes, activeElement, lastNode);
3698
3762
  if (newId === NEW_FOCUS) {
3699
- var autoFocusable = filterAutoFocusable(anyFocusable.map(function (_a) {
3700
- var node = _a.node;
3701
- return node;
3702
- })).filter(findAutoFocused(allParentAutofocusables(entries, visibilityCache)));
3703
3763
  return {
3704
- node: autoFocusable && autoFocusable.length ? pickFirstFocus(autoFocusable) : pickFirstFocus(filterAutoFocusable(innerNodes))
3764
+ node: pickAutofocus(anyFocusable, innerNodes, allParentAutofocusables(entries, visibilityCache))
3705
3765
  };
3706
3766
  }
3707
3767
  if (newId === undefined) {
@@ -3938,7 +3998,7 @@ var FocusWatcher = function FocusWatcher() {
3938
3998
  return null;
3939
3999
  };
3940
4000
  process.env.NODE_ENV !== "production" ? {
3941
- children: propTypes.exports.node.isRequired
4001
+ children: propTypesExports.node.isRequired
3942
4002
  } : {};
3943
4003
  var onWindowBlur = function onWindowBlur() {
3944
4004
  focusWasOutsideWindow = 'just'; // using setTimeout to set this variable after React/sidecar reaction
@@ -4109,11 +4169,6 @@ var parse = function parse(x) {
4109
4169
  };
4110
4170
  var getOffset = function getOffset(gapMode) {
4111
4171
  var cs = window.getComputedStyle(document.body);
4112
- if (process.env.NODE_ENV !== 'production') {
4113
- if (cs.overflowY === 'hidden') {
4114
- console.error('react-remove-scroll-bar: cannot calculate scrollbar size because it is removed (overflow:hidden on body');
4115
- }
4116
- }
4117
4172
  var left = cs[gapMode === 'padding' ? 'paddingLeft' : 'marginLeft'];
4118
4173
  var top = cs[gapMode === 'padding' ? 'paddingTop' : 'marginTop'];
4119
4174
  var right = cs[gapMode === 'padding' ? 'paddingRight' : 'marginRight'];
@@ -4159,6 +4214,11 @@ var RemoveScrollBar = function RemoveScrollBar(props) {
4159
4214
  noImportant = props.noImportant,
4160
4215
  _a = props.gapMode,
4161
4216
  gapMode = _a === void 0 ? 'margin' : _a;
4217
+ /*
4218
+ gap will be measured on every component mount
4219
+ however it will be used only by the "first" invocation
4220
+ due to singleton nature of <Style
4221
+ */
4162
4222
  var gap = React__namespace.useMemo(function () {
4163
4223
  return getGapWidth(gapMode);
4164
4224
  }, [gapMode]);
@@ -6607,7 +6667,7 @@ var Circle12 = function Circle12(_a) {
6607
6667
  };
6608
6668
  Circle12.displayName = 'Circle12';
6609
6669
 
6610
- var _excluded$u = ["className", "defaultChecked", "checked", "children", "value", "onChange", "disabled", "checkIcon", "dataTestId"];
6670
+ var _excluded$u = ["className", "defaultChecked", "checked", "children", "value", "onChange", "disabled", "checkIcon", "dataTestId", "id"];
6611
6671
  var CHECKED_ITEM_PROPS = {
6612
6672
  className: 'Checkbox__check-mark',
6613
6673
  height: '85%',
@@ -6625,6 +6685,7 @@ var Checkbox = function Checkbox(_ref) {
6625
6685
  _ref$checkIcon = _ref.checkIcon,
6626
6686
  checkIcon = _ref$checkIcon === void 0 ? 'checkmark' : _ref$checkIcon,
6627
6687
  dataTestId = _ref.dataTestId,
6688
+ id = _ref.id,
6628
6689
  rest = _objectWithoutProperties(_ref, _excluded$u);
6629
6690
  var _useState = React.useState((_ref2 = checked !== null && checked !== void 0 ? checked : defaultChecked) !== null && _ref2 !== void 0 ? _ref2 : false),
6630
6691
  _useState2 = _slicedToArray(_useState, 2),
@@ -6638,18 +6699,19 @@ var Checkbox = function Checkbox(_ref) {
6638
6699
  onChange && onChange(event);
6639
6700
  }, [onChange, checked]);
6640
6701
  return /*#__PURE__*/React.createElement("label", {
6641
- role: "button",
6702
+ htmlFor: id,
6642
6703
  tabIndex: 0,
6643
6704
  className: classNames('Checkbox', className, {
6644
6705
  'Checkbox--disabled': disabled
6645
6706
  }),
6646
- "data-test-id": "".concat(dataTestId, "--label")
6707
+ "data-test-id": dataTestId && "".concat(dataTestId, "--label")
6647
6708
  }, /*#__PURE__*/React.createElement("span", {
6648
6709
  tabIndex: -1,
6649
6710
  className: classNames('Checkbox__indicator', {
6650
6711
  'Checkbox__indicator--disabled': disabled
6651
6712
  })
6652
6713
  }, isChecked && /*#__PURE__*/React.createElement(React.Fragment, null, checkIcon === 'checkmark' && /*#__PURE__*/React.createElement(Checkmark16, CHECKED_ITEM_PROPS), checkIcon === 'circle' && /*#__PURE__*/React.createElement(Circle12, CHECKED_ITEM_PROPS))), /*#__PURE__*/React.createElement("input", _extends$1({
6714
+ id: id,
6653
6715
  tabIndex: -1,
6654
6716
  className: "Checkbox__input",
6655
6717
  type: "checkbox",
@@ -6657,7 +6719,7 @@ var Checkbox = function Checkbox(_ref) {
6657
6719
  value: value,
6658
6720
  onChange: handleChange,
6659
6721
  disabled: disabled,
6660
- "data-test-id": "".concat(dataTestId, "--input")
6722
+ "data-test-id": dataTestId && "".concat(dataTestId, "--input")
6661
6723
  }, rest)), children && /*#__PURE__*/React.createElement("span", {
6662
6724
  className: "Checkbox__label"
6663
6725
  }, children));
@@ -6787,7 +6849,11 @@ var ExceedConstrain = function ExceedConstrain(_ref) {
6787
6849
  }, rest), children);
6788
6850
  };
6789
6851
 
6790
- var reactInputMask = {exports: {}};
6852
+ var reactInputMaskExports = {};
6853
+ var reactInputMask = {
6854
+ get exports(){ return reactInputMaskExports; },
6855
+ set exports(v){ reactInputMaskExports = v; },
6856
+ };
6791
6857
 
6792
6858
  var reactInputMask_production_min;
6793
6859
  var hasRequiredReactInputMask_production_min;
@@ -8373,7 +8439,7 @@ function requireReactInputMask_development() {
8373
8439
  module.exports = requireReactInputMask_development();
8374
8440
  }
8375
8441
  })(reactInputMask);
8376
- var InputMask = /*@__PURE__*/getDefaultExportFromCjs(reactInputMask.exports);
8442
+ var InputMask = /*@__PURE__*/getDefaultExportFromCjs(reactInputMaskExports);
8377
8443
 
8378
8444
  var cardTypes$1 = {
8379
8445
  visa: {
@@ -9131,9 +9197,11 @@ var useUpdateEffect = function useUpdateEffect(effect, deps) {
9131
9197
  }, deps);
9132
9198
  };
9133
9199
 
9134
- var _excluded$p = ["className", "treatment", "color", "family", "children", "style"];
9200
+ var _excluded$p = ["as", "className", "treatment", "color", "family", "children", "style"];
9135
9201
  var Text = function Text(_ref) {
9136
- var className = _ref.className,
9202
+ var _ref$as = _ref.as,
9203
+ Component = _ref$as === void 0 ? 'span' : _ref$as,
9204
+ className = _ref.className,
9137
9205
  _ref$treatment = _ref.treatment,
9138
9206
  treatment = _ref$treatment === void 0 ? 'body1' : _ref$treatment,
9139
9207
  _ref$color = _ref.color,
@@ -9142,7 +9210,7 @@ var Text = function Text(_ref) {
9142
9210
  children = _ref.children,
9143
9211
  style = _ref.style,
9144
9212
  rest = _objectWithoutProperties(_ref, _excluded$p);
9145
- return /*#__PURE__*/React.createElement("span", _extends$1({
9213
+ return /*#__PURE__*/React.createElement(Component, _extends$1({
9146
9214
  className: classNames("Text Text--".concat(treatment, " ").concat(family ? "Text--".concat(family) : ''), className),
9147
9215
  style: _objectSpread2({
9148
9216
  color: dist$4.colors.all[color]
@@ -9277,12 +9345,11 @@ var Search20 = function Search20(_a) {
9277
9345
  };
9278
9346
  Search20.displayName = 'Search20';
9279
9347
 
9280
- var _excluded$o = ["className", "onChange", "onChangeValue", "onClear", "value"];
9348
+ var _excluded$o = ["className", "onChange", "onClear", "value"];
9281
9349
  var DEFAULT_INPUT_VALUE = '';
9282
9350
  var SearchInput = function SearchInput(_ref) {
9283
9351
  var className = _ref.className,
9284
9352
  onChange = _ref.onChange,
9285
- onChangeValue = _ref.onChangeValue,
9286
9353
  onClear = _ref.onClear,
9287
9354
  _ref$value = _ref.value,
9288
9355
  value = _ref$value === void 0 ? DEFAULT_INPUT_VALUE : _ref$value,
@@ -9292,13 +9359,13 @@ var SearchInput = function SearchInput(_ref) {
9292
9359
  _useState2 = _slicedToArray(_useState, 2),
9293
9360
  controlledValue = _useState2[0],
9294
9361
  setValue = _useState2[1];
9295
- var handleClick = React.useCallback(function () {
9362
+ var handleClear = React.useCallback(function () {
9363
+ var _ref$current;
9296
9364
  setValue(DEFAULT_INPUT_VALUE);
9297
- onClear && onClear();
9298
- if (ref.current) {
9299
- ref.current.focus();
9300
- }
9301
- }, [onClear]);
9365
+ onChange === null || onChange === void 0 ? void 0 : onChange(DEFAULT_INPUT_VALUE);
9366
+ onClear === null || onClear === void 0 ? void 0 : onClear();
9367
+ (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.focus();
9368
+ }, [onClear, onChange]);
9302
9369
  var handleChange = React.useCallback(function (value) {
9303
9370
  onChange === null || onChange === void 0 ? void 0 : onChange(value);
9304
9371
  setValue(value);
@@ -9306,9 +9373,6 @@ var SearchInput = function SearchInput(_ref) {
9306
9373
  React.useEffect(function () {
9307
9374
  return setValue(value);
9308
9375
  }, [value]);
9309
- React.useEffect(function () {
9310
- onChangeValue && onChangeValue(controlledValue);
9311
- }, [controlledValue, onChangeValue]);
9312
9376
  return /*#__PURE__*/React.createElement("div", {
9313
9377
  className: classNames('SearchInput', className)
9314
9378
  }, /*#__PURE__*/React.createElement("div", {
@@ -9320,138 +9384,143 @@ var SearchInput = function SearchInput(_ref) {
9320
9384
  ref: ref
9321
9385
  }, rest)), controlledValue && /*#__PURE__*/React.createElement(Clickable, {
9322
9386
  className: "SearchInput__clear",
9323
- onClick: handleClick,
9387
+ onClick: handleClear,
9324
9388
  type: "reset"
9325
9389
  }, /*#__PURE__*/React.createElement(Exit20, null)));
9326
9390
  };
9327
9391
 
9328
- function t(t) {
9329
- return "object" == _typeof(t) && null != t && 1 === t.nodeType;
9330
- }
9331
- function e(t, e) {
9332
- return (!e || "hidden" !== t) && "visible" !== t && "clip" !== t;
9333
- }
9334
- function n(t, n) {
9335
- if (t.clientHeight < t.scrollHeight || t.clientWidth < t.scrollWidth) {
9336
- var r = getComputedStyle(t, null);
9337
- return e(r.overflowY, n) || e(r.overflowX, n) || function (t) {
9338
- var e = function (t) {
9339
- if (!t.ownerDocument || !t.ownerDocument.defaultView) return null;
9340
- try {
9341
- return t.ownerDocument.defaultView.frameElement;
9342
- } catch (t) {
9343
- return null;
9344
- }
9345
- }(t);
9346
- return !!e && (e.clientHeight < t.scrollHeight || e.clientWidth < t.scrollWidth);
9347
- }(t);
9348
- }
9349
- return !1;
9350
- }
9351
- function r(t, e, n, r, i, o, l, d) {
9352
- 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;
9353
- }
9354
- function compute (e, i) {
9355
- var o = window,
9356
- l = i.scrollMode,
9357
- d = i.block,
9358
- u = i.inline,
9359
- h = i.boundary,
9360
- a = i.skipOverflowHiddenElements,
9361
- c = "function" == typeof h ? h : function (t) {
9362
- return t !== h;
9392
+ var e = function e(_e) {
9393
+ return "object" == _typeof(_e) && null != _e && 1 === _e.nodeType;
9394
+ },
9395
+ t$1 = function t(e, _t) {
9396
+ return (!_t || "hidden" !== e) && "visible" !== e && "clip" !== e;
9397
+ },
9398
+ n = function n(e, _n) {
9399
+ if (e.clientHeight < e.scrollHeight || e.clientWidth < e.scrollWidth) {
9400
+ var _l = getComputedStyle(e, null);
9401
+ return t$1(_l.overflowY, _n) || t$1(_l.overflowX, _n) || function (e) {
9402
+ var t = function (e) {
9403
+ if (!e.ownerDocument || !e.ownerDocument.defaultView) return null;
9404
+ try {
9405
+ return e.ownerDocument.defaultView.frameElement;
9406
+ } catch (e) {
9407
+ return null;
9408
+ }
9409
+ }(e);
9410
+ return !!t && (t.clientHeight < e.scrollHeight || t.clientWidth < e.scrollWidth);
9411
+ }(e);
9412
+ }
9413
+ return !1;
9414
+ },
9415
+ l = function l(e, t, n, _l2, i, o, r, d) {
9416
+ 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;
9417
+ },
9418
+ i = function i(e) {
9419
+ var t = e.parentElement;
9420
+ return null == t ? e.getRootNode().host || null : t;
9421
+ };
9422
+ var o$1 = function o(t, _o2) {
9423
+ var r, d, h, f, u, s;
9424
+ if ("undefined" == typeof document) return [];
9425
+ var a = _o2.scrollMode,
9426
+ c = _o2.block,
9427
+ g = _o2.inline,
9428
+ m = _o2.boundary,
9429
+ p = _o2.skipOverflowHiddenElements,
9430
+ w = "function" == typeof m ? m : function (e) {
9431
+ return e !== m;
9363
9432
  };
9364
- if (!t(e)) throw new TypeError("Invalid target");
9365
- for (var f = document.scrollingElement || document.documentElement, s = [], p = e; t(p) && c(p);) {
9366
- if ((p = p.parentElement) === f) {
9367
- s.push(p);
9433
+ if (!e(t)) throw new TypeError("Invalid target");
9434
+ var W = document.scrollingElement || document.documentElement,
9435
+ H = [],
9436
+ b = t;
9437
+ for (; e(b) && w(b);) {
9438
+ if (b = i(b), b === W) {
9439
+ H.push(b);
9368
9440
  break;
9369
9441
  }
9370
- null != p && p === document.body && n(p) && !n(document.documentElement) || null != p && n(p, a) && s.push(p);
9371
- }
9372
- 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++) {
9373
- var k = s[T],
9374
- B = k.getBoundingClientRect(),
9375
- D = B.height,
9376
- O = B.width,
9377
- R = B.top,
9378
- X = B.right,
9379
- Y = B.bottom,
9380
- L = B.left;
9381
- if ("if-needed" === l && y >= 0 && V >= 0 && M <= g && E <= m && y >= R && M <= Y && V >= L && E <= X) return C;
9382
- var S = getComputedStyle(k),
9383
- j = parseInt(S.borderLeftWidth, 10),
9384
- q = parseInt(S.borderTopWidth, 10),
9385
- z = parseInt(S.borderRightWidth, 10),
9386
- A = parseInt(S.borderBottomWidth, 10),
9387
- F = 0,
9388
- G = 0,
9389
- J = "offsetWidth" in k ? k.offsetWidth - k.clientWidth - j - z : 0,
9390
- K = "offsetHeight" in k ? k.offsetHeight - k.clientHeight - q - A : 0;
9391
- 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 {
9392
- 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);
9393
- var N = k.scrollLeft,
9394
- P = k.scrollTop;
9395
- 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)));
9396
- }
9397
- C.push({
9398
- el: k,
9399
- top: F,
9400
- left: G
9442
+ null != b && b === document.body && n(b) && !n(document.documentElement) || null != b && n(b, p) && H.push(b);
9443
+ }
9444
+ var v = null != (d = null == (r = window.visualViewport) ? void 0 : r.width) ? d : innerWidth,
9445
+ y = null != (f = null == (h = window.visualViewport) ? void 0 : h.height) ? f : innerHeight,
9446
+ E = null != (u = window.scrollX) ? u : pageXOffset,
9447
+ M = null != (s = window.scrollY) ? s : pageYOffset,
9448
+ _t$getBoundingClientR = t.getBoundingClientRect(),
9449
+ x = _t$getBoundingClientR.height,
9450
+ I = _t$getBoundingClientR.width,
9451
+ C = _t$getBoundingClientR.top,
9452
+ R = _t$getBoundingClientR.right,
9453
+ T = _t$getBoundingClientR.bottom,
9454
+ V = _t$getBoundingClientR.left,
9455
+ k = "start" === c || "nearest" === c ? C : "end" === c ? T : C + x / 2,
9456
+ B = "center" === g ? V + I / 2 : "end" === g ? R : V,
9457
+ D = [];
9458
+ for (var _e2 = 0; _e2 < H.length; _e2++) {
9459
+ var _t2 = H[_e2],
9460
+ _t2$getBoundingClient = _t2.getBoundingClientRect(),
9461
+ _n2 = _t2$getBoundingClient.height,
9462
+ _i = _t2$getBoundingClient.width,
9463
+ _o = _t2$getBoundingClient.top,
9464
+ _r = _t2$getBoundingClient.right,
9465
+ _d = _t2$getBoundingClient.bottom,
9466
+ _h = _t2$getBoundingClient.left;
9467
+ if ("if-needed" === a && C >= 0 && V >= 0 && T <= y && R <= v && C >= _o && T <= _d && V >= _h && R <= _r) return D;
9468
+ var _f = getComputedStyle(_t2),
9469
+ _u = parseInt(_f.borderLeftWidth, 10),
9470
+ _s = parseInt(_f.borderTopWidth, 10),
9471
+ _m = parseInt(_f.borderRightWidth, 10),
9472
+ _p = parseInt(_f.borderBottomWidth, 10),
9473
+ _w = 0,
9474
+ _b = 0,
9475
+ O = "offsetWidth" in _t2 ? _t2.offsetWidth - _t2.clientWidth - _u - _m : 0,
9476
+ X = "offsetHeight" in _t2 ? _t2.offsetHeight - _t2.clientHeight - _s - _p : 0,
9477
+ Y = "offsetWidth" in _t2 ? 0 === _t2.offsetWidth ? 0 : _i / _t2.offsetWidth : 0,
9478
+ L = "offsetHeight" in _t2 ? 0 === _t2.offsetHeight ? 0 : _n2 / _t2.offsetHeight : 0;
9479
+ 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 {
9480
+ _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);
9481
+ var _e3 = _t2.scrollLeft,
9482
+ _f2 = _t2.scrollTop;
9483
+ _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;
9484
+ }
9485
+ D.push({
9486
+ el: _t2,
9487
+ top: _w,
9488
+ left: _b
9401
9489
  });
9402
9490
  }
9403
- return C;
9404
- }
9491
+ return D;
9492
+ };
9405
9493
 
9406
- function isOptionsObject(options) {
9407
- return options === Object(options) && Object.keys(options).length !== 0;
9408
- }
9409
- function defaultBehavior(actions, behavior) {
9410
- if (behavior === void 0) {
9411
- behavior = 'auto';
9412
- }
9413
- var canSmoothScroll = ('scrollBehavior' in document.body.style);
9414
- actions.forEach(function (_ref) {
9415
- var el = _ref.el,
9416
- top = _ref.top,
9417
- left = _ref.left;
9418
- if (el.scroll && canSmoothScroll) {
9419
- el.scroll({
9420
- top: top,
9421
- left: left,
9422
- behavior: behavior
9423
- });
9424
- } else {
9425
- el.scrollTop = top;
9426
- el.scrollLeft = left;
9427
- }
9428
- });
9429
- }
9430
- function getOptions(options) {
9431
- if (options === false) {
9432
- return {
9433
- block: 'end',
9434
- inline: 'nearest'
9435
- };
9436
- }
9437
- if (isOptionsObject(options)) {
9438
- return options;
9439
- }
9440
- return {
9441
- block: 'start',
9442
- inline: 'nearest'
9494
+ var t = function t(e) {
9495
+ return !1 === e ? {
9496
+ block: "end",
9497
+ inline: "nearest"
9498
+ } : function (e) {
9499
+ return e === Object(e) && 0 !== Object.keys(e).length;
9500
+ }(e) ? e : {
9501
+ block: "start",
9502
+ inline: "nearest"
9443
9503
  };
9444
- }
9445
- function scrollIntoView(target, options) {
9446
- var isTargetAttached = target.isConnected || target.ownerDocument.documentElement.contains(target);
9447
- if (isOptionsObject(options) && typeof options.behavior === 'function') {
9448
- return options.behavior(isTargetAttached ? compute(target, options) : []);
9449
- }
9450
- if (!isTargetAttached) {
9451
- return;
9452
- }
9453
- var computeOptions = getOptions(options);
9454
- return defaultBehavior(compute(target, computeOptions), computeOptions.behavior);
9504
+ };
9505
+ function o(o, l) {
9506
+ var n = o.isConnected || o.ownerDocument.documentElement.contains(o);
9507
+ if (function (e) {
9508
+ return "object" == _typeof(e) && "function" == typeof e.behavior;
9509
+ }(l)) return l.behavior(n ? o$1(o, l) : []);
9510
+ if (!n) return;
9511
+ var r = t(l),
9512
+ c = o$1(o, r),
9513
+ i = ("scrollBehavior" in document.body.style);
9514
+ c.forEach(function (e) {
9515
+ var t = e.el,
9516
+ o = e.top,
9517
+ l = e.left;
9518
+ t.scroll && i ? t.scroll({
9519
+ top: o,
9520
+ left: l,
9521
+ behavior: r.behavior
9522
+ }) : (t.scrollTop = o, t.scrollLeft = l);
9523
+ });
9455
9524
  }
9456
9525
 
9457
9526
  var SelectOption = function SelectOption(_ref) {
@@ -9468,7 +9537,7 @@ var SelectOption = function SelectOption(_ref) {
9468
9537
  }, [onClick, option]);
9469
9538
  React.useEffect(function () {
9470
9539
  if (active && ref.current) {
9471
- scrollIntoView(ref.current, {
9540
+ o(ref.current, {
9472
9541
  scrollMode: 'if-needed',
9473
9542
  block: 'nearest'
9474
9543
  });
@@ -9547,11 +9616,11 @@ var SelectOptions = function SelectOptions(_ref) {
9547
9616
  tabIndex: -1,
9548
9617
  role: "listbox",
9549
9618
  ref: ref,
9550
- "aria-labelledby": "Select__label--".concat(idRef),
9551
- "aria-activedescendant": "SelectOption--".concat(activeOption === null || activeOption === void 0 ? void 0 : activeOption.value, "-").concat(idRef)
9619
+ "aria-labelledby": "Select__label".concat(idRef ? "--".concat(idRef) : ''),
9620
+ "aria-activedescendant": "SelectOption--".concat(activeOption === null || activeOption === void 0 ? void 0 : activeOption.value).concat(idRef ? "-".concat(idRef) : '')
9552
9621
  }, rest), options.map(function (option) {
9553
9622
  return /*#__PURE__*/React.createElement(SelectOption, {
9554
- id: "SelectOption--".concat(option.value, "-").concat(idRef),
9623
+ id: "SelectOption--".concat(option.value).concat(idRef ? "-".concat(idRef) : ''),
9555
9624
  key: option.value,
9556
9625
  option: option,
9557
9626
  dataTestId: dataTestId,
@@ -9681,8 +9750,7 @@ var Select = function Select(_ref) {
9681
9750
  _ref$dropDirection = _ref.dropDirection,
9682
9751
  dropDirection = _ref$dropDirection === void 0 ? 'down' : _ref$dropDirection,
9683
9752
  error = _ref.error,
9684
- _ref$idRef = _ref.idRef,
9685
- idRef = _ref$idRef === void 0 ? '' : _ref$idRef,
9753
+ idRef = _ref.idRef,
9686
9754
  _ref$label = _ref.label,
9687
9755
  label = _ref$label === void 0 ? '' : _ref$label,
9688
9756
  name = _ref.name,
@@ -9744,7 +9812,7 @@ var Select = function Select(_ref) {
9744
9812
  });
9745
9813
  }, [options, state.focused]);
9746
9814
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", _extends$1({
9747
- id: idRef ? "Select--".concat(idRef) : undefined,
9815
+ id: idRef && "Select--".concat(idRef),
9748
9816
  className: classNames('Select', {
9749
9817
  'Select--disabled': disabled,
9750
9818
  'Select--error': error
@@ -9756,7 +9824,7 @@ var Select = function Select(_ref) {
9756
9824
  type: "hidden",
9757
9825
  value: state.value
9758
9826
  }), /*#__PURE__*/React.createElement(Clickable, {
9759
- id: "Select__value--".concat(idRef),
9827
+ id: idRef && "Select__value--".concat(idRef),
9760
9828
  className: "Select__value",
9761
9829
  disabled: disabled,
9762
9830
  onClick: handleToggle,
@@ -11199,6 +11267,7 @@ var SlidingPane = function SlidingPane(_ref) {
11199
11267
  family: "serif"
11200
11268
  }, title), /*#__PURE__*/React.createElement(Clickable, {
11201
11269
  className: "SlidingPane__close",
11270
+ "aria-label": "Close",
11202
11271
  onClick: onClose
11203
11272
  }, /*#__PURE__*/React.createElement(Exit16, null))), /*#__PURE__*/React.createElement("div", {
11204
11273
  className: "SlidingPane__content"