@equinor/eds-core-react 0.19.0 → 0.20.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 (80) hide show
  1. package/README.md +18 -19
  2. package/dist/eds-core-react.cjs.js +1011 -347
  3. package/dist/esm/components/Accordion/Accordion.js +1 -1
  4. package/dist/esm/components/Autocomplete/Autocomplete.js +481 -0
  5. package/dist/esm/components/Autocomplete/Autocomplete.tokens.js +103 -0
  6. package/dist/esm/components/Autocomplete/Option.js +52 -0
  7. package/dist/esm/components/Banner/Banner.js +2 -2
  8. package/dist/esm/components/Banner/BannerMessage.js +1 -1
  9. package/dist/esm/components/Breadcrumbs/Breadcrumb.js +2 -2
  10. package/dist/esm/components/Breadcrumbs/Breadcrumbs.js +1 -1
  11. package/dist/esm/components/Button/Button.js +2 -2
  12. package/dist/esm/components/Button/InnerFullWidth.js +1 -1
  13. package/dist/esm/components/Button/tokens/contained.js +1 -1
  14. package/dist/esm/components/Button/tokens/ghost.js +1 -1
  15. package/dist/esm/components/Button/tokens/icon.js +1 -1
  16. package/dist/esm/components/Button/tokens/outlined.js +1 -1
  17. package/dist/esm/components/Card/Card.js +1 -1
  18. package/dist/esm/components/Card/CardActions.js +2 -2
  19. package/dist/esm/components/Card/CardHeader.js +1 -1
  20. package/dist/esm/components/Checkbox/Input.js +1 -1
  21. package/dist/esm/components/Dialog/Dialog.js +2 -2
  22. package/dist/esm/components/Dialog/DialogContent.js +1 -1
  23. package/dist/esm/components/Dialog/DialogHeader.js +1 -1
  24. package/dist/esm/components/Input/Input.js +1 -1
  25. package/dist/esm/components/Input/Input.tokens.js +1 -1
  26. package/dist/esm/components/Menu/Menu.context.js +1 -1
  27. package/dist/esm/components/Menu/Menu.js +2 -2
  28. package/dist/esm/components/Menu/MenuItem.js +3 -3
  29. package/dist/esm/components/Menu/MenuSection.js +1 -1
  30. package/dist/esm/components/Pagination/Pagination.js +2 -2
  31. package/dist/esm/components/Pagination/PaginationItem.js +1 -1
  32. package/dist/esm/components/Popover/Popover.js +4 -5
  33. package/dist/esm/components/Popover/PopoverHeader.js +1 -1
  34. package/dist/esm/components/Progress/Circular/CircularProgress.js +55 -28
  35. package/dist/esm/components/Progress/Linear/LinearProgress.js +34 -7
  36. package/dist/esm/components/Radio/Radio.js +1 -1
  37. package/dist/esm/components/Search/Search.js +4 -4
  38. package/dist/esm/components/Select/MultiSelect/MultiSelect.js +6 -3
  39. package/dist/esm/components/Select/NativeSelect/NativeSelect.js +2 -2
  40. package/dist/esm/components/Select/Select.tokens.js +1 -1
  41. package/dist/esm/components/Select/SingleSelect/SingleSelect.js +4 -2
  42. package/dist/esm/components/Select/commonStyles.js +2 -2
  43. package/dist/esm/components/SideSheet/SideSheet.js +2 -3
  44. package/dist/esm/components/Slider/Slider.js +39 -8
  45. package/dist/esm/components/Snackbar/Snackbar.js +1 -1
  46. package/dist/esm/components/Switch/Switch.js +1 -1
  47. package/dist/esm/components/Table/Cell.js +2 -2
  48. package/dist/esm/components/Table/DataCell/DataCell.js +2 -2
  49. package/dist/esm/components/Table/DataCell/DataCell.tokens.js +1 -1
  50. package/dist/esm/components/Table/HeaderCell/HeaderCell.js +2 -2
  51. package/dist/esm/components/Table/index.js +1 -1
  52. package/dist/esm/components/TableOfContents/TableOfContents.js +2 -2
  53. package/dist/esm/components/Tabs/TabList.js +1 -1
  54. package/dist/esm/components/Tabs/Tabs.js +3 -3
  55. package/dist/esm/components/TextField/Field.js +3 -3
  56. package/dist/esm/components/TextField/HelperText/HelperText.js +1 -1
  57. package/dist/esm/components/TextField/TextField.js +3 -3
  58. package/dist/esm/components/Textarea/Textarea.js +2 -2
  59. package/dist/esm/components/TopBar/TopBar.js +1 -1
  60. package/dist/esm/index.js +16 -15
  61. package/dist/esm/node_modules/.pnpm/{ramda@0.27.2/node_modules/ramda/src → ramda@0.28.0/node_modules/ramda/es}/internal/_curry1.js +2 -5
  62. package/dist/esm/node_modules/.pnpm/{ramda@0.27.2/node_modules/ramda/src → ramda@0.28.0/node_modules/ramda/es}/internal/_curry2.js +3 -7
  63. package/dist/esm/node_modules/.pnpm/{ramda@0.27.2/node_modules/ramda/src → ramda@0.28.0/node_modules/ramda/es}/internal/_curry3.js +4 -9
  64. package/dist/esm/node_modules/.pnpm/{ramda@0.27.2/node_modules/ramda/src → ramda@0.28.0/node_modules/ramda/es}/internal/_has.js +1 -3
  65. package/dist/esm/node_modules/.pnpm/{ramda@0.27.2/node_modules/ramda/src → ramda@0.28.0/node_modules/ramda/es}/internal/_isObject.js +1 -3
  66. package/dist/esm/node_modules/.pnpm/{ramda@0.27.2/node_modules/ramda/src → ramda@0.28.0/node_modules/ramda/es}/internal/_isPlaceholder.js +1 -3
  67. package/dist/esm/node_modules/.pnpm/{ramda@0.27.2/node_modules/ramda/src → ramda@0.28.0/node_modules/ramda/es}/mergeDeepRight.js +3 -8
  68. package/dist/esm/node_modules/.pnpm/{ramda@0.27.2/node_modules/ramda/src → ramda@0.28.0/node_modules/ramda/es}/mergeDeepWithKey.js +4 -9
  69. package/dist/esm/node_modules/.pnpm/{ramda@0.27.2/node_modules/ramda/src → ramda@0.28.0/node_modules/ramda/es}/mergeWithKey.js +3 -7
  70. package/dist/types/components/Autocomplete/Autocomplete.d.ts +82 -0
  71. package/dist/types/components/Autocomplete/Autocomplete.tokens.d.ts +3 -0
  72. package/dist/types/components/Autocomplete/Option.d.ts +15 -0
  73. package/dist/types/components/Autocomplete/index.d.ts +1 -0
  74. package/dist/types/components/Menu/MenuItem.d.ts +2 -2
  75. package/dist/types/components/Select/MultiSelect/MultiSelect.d.ts +1 -0
  76. package/dist/types/components/Select/SingleSelect/SingleSelect.d.ts +1 -0
  77. package/dist/types/components/Slider/Slider.d.ts +9 -9
  78. package/dist/types/components/Slider/SliderInput.d.ts +0 -6
  79. package/dist/types/index.d.ts +1 -0
  80. package/package.json +47 -42
@@ -5,8 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var react = require('react');
6
6
  var styled = require('styled-components');
7
7
  var edsTokens = require('@equinor/eds-tokens');
8
- var jsxRuntime = require('react/jsx-runtime');
9
8
  var edsUtils = require('@equinor/eds-utils');
9
+ var jsxRuntime = require('react/jsx-runtime');
10
10
  var edsIcons = require('@equinor/eds-icons');
11
11
  var ReactDom = require('react-dom');
12
12
  var downshift = require('downshift');
@@ -165,13 +165,10 @@ const button = {
165
165
  }
166
166
  };
167
167
 
168
- function _isPlaceholder$3(a) {
168
+ function _isPlaceholder(a) {
169
169
  return a != null && typeof a === 'object' && a['@@functional/placeholder'] === true;
170
170
  }
171
171
 
172
- var _isPlaceholder_1 = _isPlaceholder$3;
173
-
174
- var _isPlaceholder$2 = _isPlaceholder_1;
175
172
  /**
176
173
  * Optimized internal one-arity curry function.
177
174
  *
@@ -181,9 +178,9 @@ var _isPlaceholder$2 = _isPlaceholder_1;
181
178
  * @return {Function} The curried function.
182
179
  */
183
180
 
184
- function _curry1$2(fn) {
181
+ function _curry1(fn) {
185
182
  return function f1(a) {
186
- if (arguments.length === 0 || _isPlaceholder$2(a)) {
183
+ if (arguments.length === 0 || _isPlaceholder(a)) {
187
184
  return f1;
188
185
  } else {
189
186
  return fn.apply(this, arguments);
@@ -191,10 +188,6 @@ function _curry1$2(fn) {
191
188
  };
192
189
  }
193
190
 
194
- var _curry1_1 = _curry1$2;
195
-
196
- var _curry1$1 = _curry1_1;
197
- var _isPlaceholder$1 = _isPlaceholder_1;
198
191
  /**
199
192
  * Optimized internal two-arity curry function.
200
193
  *
@@ -204,32 +197,27 @@ var _isPlaceholder$1 = _isPlaceholder_1;
204
197
  * @return {Function} The curried function.
205
198
  */
206
199
 
207
- function _curry2$2(fn) {
200
+ function _curry2(fn) {
208
201
  return function f2(a, b) {
209
202
  switch (arguments.length) {
210
203
  case 0:
211
204
  return f2;
212
205
 
213
206
  case 1:
214
- return _isPlaceholder$1(a) ? f2 : _curry1$1(function (_b) {
207
+ return _isPlaceholder(a) ? f2 : _curry1(function (_b) {
215
208
  return fn(a, _b);
216
209
  });
217
210
 
218
211
  default:
219
- return _isPlaceholder$1(a) && _isPlaceholder$1(b) ? f2 : _isPlaceholder$1(a) ? _curry1$1(function (_a) {
212
+ return _isPlaceholder(a) && _isPlaceholder(b) ? f2 : _isPlaceholder(a) ? _curry1(function (_a) {
220
213
  return fn(_a, b);
221
- }) : _isPlaceholder$1(b) ? _curry1$1(function (_b) {
214
+ }) : _isPlaceholder(b) ? _curry1(function (_b) {
222
215
  return fn(a, _b);
223
216
  }) : fn(a, b);
224
217
  }
225
218
  };
226
219
  }
227
220
 
228
- var _curry2_1 = _curry2$2;
229
-
230
- var _curry1 = _curry1_1;
231
- var _curry2$1 = _curry2_1;
232
- var _isPlaceholder = _isPlaceholder_1;
233
221
  /**
234
222
  * Optimized internal three-arity curry function.
235
223
  *
@@ -239,32 +227,32 @@ var _isPlaceholder = _isPlaceholder_1;
239
227
  * @return {Function} The curried function.
240
228
  */
241
229
 
242
- function _curry3$2(fn) {
230
+ function _curry3(fn) {
243
231
  return function f3(a, b, c) {
244
232
  switch (arguments.length) {
245
233
  case 0:
246
234
  return f3;
247
235
 
248
236
  case 1:
249
- return _isPlaceholder(a) ? f3 : _curry2$1(function (_b, _c) {
237
+ return _isPlaceholder(a) ? f3 : _curry2(function (_b, _c) {
250
238
  return fn(a, _b, _c);
251
239
  });
252
240
 
253
241
  case 2:
254
- return _isPlaceholder(a) && _isPlaceholder(b) ? f3 : _isPlaceholder(a) ? _curry2$1(function (_a, _c) {
242
+ return _isPlaceholder(a) && _isPlaceholder(b) ? f3 : _isPlaceholder(a) ? _curry2(function (_a, _c) {
255
243
  return fn(_a, b, _c);
256
- }) : _isPlaceholder(b) ? _curry2$1(function (_b, _c) {
244
+ }) : _isPlaceholder(b) ? _curry2(function (_b, _c) {
257
245
  return fn(a, _b, _c);
258
246
  }) : _curry1(function (_c) {
259
247
  return fn(a, b, _c);
260
248
  });
261
249
 
262
250
  default:
263
- return _isPlaceholder(a) && _isPlaceholder(b) && _isPlaceholder(c) ? f3 : _isPlaceholder(a) && _isPlaceholder(b) ? _curry2$1(function (_a, _b) {
251
+ return _isPlaceholder(a) && _isPlaceholder(b) && _isPlaceholder(c) ? f3 : _isPlaceholder(a) && _isPlaceholder(b) ? _curry2(function (_a, _b) {
264
252
  return fn(_a, _b, c);
265
- }) : _isPlaceholder(a) && _isPlaceholder(c) ? _curry2$1(function (_a, _c) {
253
+ }) : _isPlaceholder(a) && _isPlaceholder(c) ? _curry2(function (_a, _c) {
266
254
  return fn(_a, b, _c);
267
- }) : _isPlaceholder(b) && _isPlaceholder(c) ? _curry2$1(function (_b, _c) {
255
+ }) : _isPlaceholder(b) && _isPlaceholder(c) ? _curry2(function (_b, _c) {
268
256
  return fn(a, _b, _c);
269
257
  }) : _isPlaceholder(a) ? _curry1(function (_a) {
270
258
  return fn(_a, b, c);
@@ -277,22 +265,14 @@ function _curry3$2(fn) {
277
265
  };
278
266
  }
279
267
 
280
- var _curry3_1 = _curry3$2;
281
-
282
- function _isObject$1(x) {
283
- return Object.prototype.toString.call(x) === '[object Object]';
284
- }
285
-
286
- var _isObject_1 = _isObject$1;
287
-
288
- function _has$1(prop, obj) {
268
+ function _has(prop, obj) {
289
269
  return Object.prototype.hasOwnProperty.call(obj, prop);
290
270
  }
291
271
 
292
- var _has_1 = _has$1;
272
+ function _isObject(x) {
273
+ return Object.prototype.toString.call(x) === '[object Object]';
274
+ }
293
275
 
294
- var _curry3$1 = _curry3_1;
295
- var _has = _has_1;
296
276
  /**
297
277
  * Creates a new object with the own properties of the two provided objects. If
298
278
  * a key exists in both objects, the provided function is applied to the key
@@ -319,7 +299,7 @@ var _has = _has_1;
319
299
  * @symb R.mergeWithKey(f, { x: 1, y: 2 }, { y: 5, z: 3 }) = { x: 1, y: f('y', 2, 5), z: 3 }
320
300
  */
321
301
 
322
- var mergeWithKey$1 = /*#__PURE__*/_curry3$1(function mergeWithKey(fn, l, r) {
302
+ var mergeWithKey = /*#__PURE__*/_curry3(function mergeWithKey(fn, l, r) {
323
303
  var result = {};
324
304
  var k;
325
305
 
@@ -338,11 +318,6 @@ var mergeWithKey$1 = /*#__PURE__*/_curry3$1(function mergeWithKey(fn, l, r) {
338
318
  return result;
339
319
  });
340
320
 
341
- var mergeWithKey_1 = mergeWithKey$1;
342
-
343
- var _curry3 = _curry3_1;
344
- var _isObject = _isObject_1;
345
- var mergeWithKey = mergeWithKey_1;
346
321
  /**
347
322
  * Creates a new object with the own properties of the two provided objects.
348
323
  * If a key exists in both objects:
@@ -372,7 +347,7 @@ var mergeWithKey = mergeWithKey_1;
372
347
  * //=> { a: true, b: true, c: { thing: 'bar', values: [10, 20, 15, 35] }}
373
348
  */
374
349
 
375
- var mergeDeepWithKey$1 = /*#__PURE__*/_curry3(function mergeDeepWithKey(fn, lObj, rObj) {
350
+ var mergeDeepWithKey = /*#__PURE__*/_curry3(function mergeDeepWithKey(fn, lObj, rObj) {
376
351
  return mergeWithKey(function (k, lVal, rVal) {
377
352
  if (_isObject(lVal) && _isObject(rVal)) {
378
353
  return mergeDeepWithKey(fn, lVal, rVal);
@@ -382,10 +357,6 @@ var mergeDeepWithKey$1 = /*#__PURE__*/_curry3(function mergeDeepWithKey(fn, lObj
382
357
  }, lObj, rObj);
383
358
  });
384
359
 
385
- var mergeDeepWithKey_1 = mergeDeepWithKey$1;
386
-
387
- var _curry2 = _curry2_1;
388
- var mergeDeepWithKey = mergeDeepWithKey_1;
389
360
  /**
390
361
  * Creates a new object with the own properties of the first object merged with
391
362
  * the own properties of the second object. If a key exists in both objects:
@@ -414,9 +385,6 @@ var mergeDeepRight = /*#__PURE__*/_curry2(function mergeDeepRight(lObj, rObj) {
414
385
  }, lObj, rObj);
415
386
  });
416
387
 
417
- var mergeDeepRight_1 = mergeDeepRight;
418
- var mergeDeepRight$1 = mergeDeepRight_1;
419
-
420
388
  const {
421
389
  colors: {
422
390
  text: {
@@ -451,7 +419,7 @@ const {
451
419
  }
452
420
  }
453
421
  } = edsTokens.tokens;
454
- const primary$9 = mergeDeepRight$1(button, {
422
+ const primary$9 = mergeDeepRight(button, {
455
423
  background: primaryColor$8,
456
424
  typography: {
457
425
  color: primaryWhite
@@ -469,7 +437,7 @@ const primary$9 = mergeDeepRight$1(button, {
469
437
  }
470
438
  }
471
439
  });
472
- const secondary$4 = mergeDeepRight$1(primary$9, {
440
+ const secondary$4 = mergeDeepRight(primary$9, {
473
441
  background: secondaryColor$3,
474
442
  border: {
475
443
  color: secondaryColor$3
@@ -483,7 +451,7 @@ const secondary$4 = mergeDeepRight$1(primary$9, {
483
451
  }
484
452
  }
485
453
  });
486
- const danger$5 = mergeDeepRight$1(primary$9, {
454
+ const danger$5 = mergeDeepRight(primary$9, {
487
455
  background: dangerColor$3,
488
456
  border: {
489
457
  color: dangerColor$3
@@ -536,7 +504,7 @@ const {
536
504
  }
537
505
  }
538
506
  } = edsTokens.tokens;
539
- const primary$8 = mergeDeepRight$1(button, {
507
+ const primary$8 = mergeDeepRight(button, {
540
508
  typography: {
541
509
  color: primaryColor$7
542
510
  },
@@ -565,7 +533,7 @@ const primary$8 = mergeDeepRight$1(button, {
565
533
  }
566
534
  }
567
535
  });
568
- const secondary$3 = mergeDeepRight$1(primary$8, {
536
+ const secondary$3 = mergeDeepRight(primary$8, {
569
537
  typography: {
570
538
  color: secondaryColor$2
571
539
  },
@@ -584,7 +552,7 @@ const secondary$3 = mergeDeepRight$1(primary$8, {
584
552
  }
585
553
  }
586
554
  });
587
- const danger$4 = mergeDeepRight$1(primary$8, {
555
+ const danger$4 = mergeDeepRight(primary$8, {
588
556
  typography: {
589
557
  color: dangerColor$2
590
558
  },
@@ -637,7 +605,7 @@ const {
637
605
  }
638
606
  }
639
607
  } = edsTokens.tokens;
640
- const primary$7 = mergeDeepRight$1(button, {
608
+ const primary$7 = mergeDeepRight(button, {
641
609
  typography: {
642
610
  color: primaryColor$6
643
611
  },
@@ -656,7 +624,7 @@ const primary$7 = mergeDeepRight$1(button, {
656
624
  }
657
625
  }
658
626
  });
659
- const secondary$2 = mergeDeepRight$1(primary$7, {
627
+ const secondary$2 = mergeDeepRight(primary$7, {
660
628
  typography: {
661
629
  color: secondaryColor$1
662
630
  },
@@ -669,7 +637,7 @@ const secondary$2 = mergeDeepRight$1(primary$7, {
669
637
  }
670
638
  }
671
639
  });
672
- const danger$3 = mergeDeepRight$1(primary$7, {
640
+ const danger$3 = mergeDeepRight(primary$7, {
673
641
  typography: {
674
642
  color: dangerColor$1
675
643
  },
@@ -723,7 +691,7 @@ const {
723
691
  }
724
692
  }
725
693
  } = edsTokens.tokens;
726
- const primary$6 = mergeDeepRight$1(button, {
694
+ const primary$6 = mergeDeepRight(button, {
727
695
  height: shape$3.icon_button.minHeight,
728
696
  width: shape$3.icon_button.minWidth,
729
697
  typography: {
@@ -779,7 +747,7 @@ const primary$6 = mergeDeepRight$1(button, {
779
747
  }
780
748
  }
781
749
  });
782
- const secondary$1 = mergeDeepRight$1(primary$6, {
750
+ const secondary$1 = mergeDeepRight(primary$6, {
783
751
  typography: {
784
752
  color: secondaryColor
785
753
  },
@@ -792,7 +760,7 @@ const secondary$1 = mergeDeepRight$1(primary$6, {
792
760
  }
793
761
  }
794
762
  });
795
- const danger$2 = mergeDeepRight$1(primary$6, {
763
+ const danger$2 = mergeDeepRight(primary$6, {
796
764
  typography: {
797
765
  color: dangerColor
798
766
  },
@@ -834,7 +802,7 @@ const FullWidthCenterContent = styled__default["default"].span.withConfig({
834
802
  const FullWidthInner = styled__default["default"].span.withConfig({
835
803
  displayName: "InnerFullWidth__FullWidthInner",
836
804
  componentId: "sc-qeawkb-1"
837
- })(["height:100%;display:flex;align-items:center;>:is(svg,img){margin-top:var(--eds_button__margin_y,inherit);margin-bottom:var(--eds_button__margin_y,inherit);}>:is(svg,img):first-child{margin-right:var(--eds_button__fullwidth__icon__margin_x,8px);}>:is(svg,img):last-child{margin-left:var(--eds_button__fullwidth__icon__margin_x,8px);}>:is(svg,img):only-child{margin-left:auto;margin-right:auto;}> span:first-child{margin-left:var(--eds_button__fullwidth__margin_x,32px);}> span:last-child{margin-right:var(--eds_button__fullwidth__margin_x,32px);}> span:only-child{margin-right:0;margin-left:0;}"]);
805
+ })(["height:100%;display:flex;align-items:center;> :is(svg,img){margin-top:var(--eds_button__margin_y,inherit);margin-bottom:var(--eds_button__margin_y,inherit);}> :is(svg,img):first-child{margin-right:var(--eds_button__fullwidth__icon__margin_x,8px);}> :is(svg,img):last-child{margin-left:var(--eds_button__fullwidth__icon__margin_x,8px);}> :is(svg,img):only-child{margin-left:auto;margin-right:auto;}> span:first-child{margin-left:var(--eds_button__fullwidth__margin_x,32px);}> span:last-child{margin-right:var(--eds_button__fullwidth__margin_x,32px);}> span:only-child{margin-right:0;margin-left:0;}"]);
838
806
  const InnerFullWidth = /*#__PURE__*/react.forwardRef(function InnerFullWidth(_ref, ref) {
839
807
  let {
840
808
  children
@@ -915,7 +883,7 @@ const getToken$1 = (variant, color) => {
915
883
  const Inner = styled__default["default"].span.withConfig({
916
884
  displayName: "Button__Inner",
917
885
  componentId: "sc-1hs0myn-0"
918
- })(["display:grid;grid-gap:var(--eds_button__gap,8px);grid-auto-flow:column;align-items:center;height:100%;justify-content:center;& >:is(svg,img){margin-top:var(--eds_button__icon__margin_y,0);margin-bottom:var(--eds_button__icon__margin_y,0);}"]);
886
+ })(["display:grid;grid-gap:var(--eds_button__gap,8px);grid-auto-flow:column;align-items:center;height:100%;justify-content:center;& > :is(svg,img){margin-top:var(--eds_button__icon__margin_y,0);margin-bottom:var(--eds_button__icon__margin_y,0);}"]);
919
887
  const ButtonBase = styled__default["default"].button.withConfig({
920
888
  displayName: "Button__ButtonBase",
921
889
  componentId: "sc-1hs0myn-1"
@@ -978,7 +946,7 @@ const Button = /*#__PURE__*/react.forwardRef(function Button(_ref2, ref) {
978
946
  });
979
947
 
980
948
  const {
981
- typography: typography$g,
949
+ typography: typography$h,
982
950
  colors: colorsToken,
983
951
  interactions: {
984
952
  focused: {
@@ -989,7 +957,7 @@ const {
989
957
  const {
990
958
  heading,
991
959
  paragraph: paragraph$2
992
- } = typography$g;
960
+ } = typography$h;
993
961
  const {
994
962
  interactive: {
995
963
  primary__resting: {
@@ -1015,7 +983,7 @@ const {
1015
983
  }
1016
984
  }
1017
985
  } = colorsToken;
1018
- const colors$7 = {
986
+ const colors$8 = {
1019
987
  primary: primary$5,
1020
988
  secondary,
1021
989
  danger: danger$1,
@@ -1071,12 +1039,12 @@ const findTypography = (variantName, group) => {
1071
1039
  return quickVariants[variantName];
1072
1040
  }
1073
1041
 
1074
- return typography$g[group][variantName];
1042
+ return typography$h[group][variantName];
1075
1043
  };
1076
1044
 
1077
1045
  const findColor = function () {
1078
1046
  let inputColor = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
1079
- return typeof colors$7[inputColor] === 'undefined' ? inputColor : colors$7[inputColor];
1047
+ return typeof colors$8[inputColor] === 'undefined' ? inputColor : colors$8[inputColor];
1080
1048
  };
1081
1049
 
1082
1050
  const toVariantName = function (variant) {
@@ -1297,7 +1265,7 @@ const tableCell = {
1297
1265
  const applyVariant = (variant, token) => {
1298
1266
  switch (variant) {
1299
1267
  case 'numeric':
1300
- return mergeDeepRight$1(token, token.variants.numeric);
1268
+ return mergeDeepRight(token, token.variants.numeric);
1301
1269
 
1302
1270
  default:
1303
1271
  return token;
@@ -1362,7 +1330,7 @@ const StyledTableCell$1 = styled__default["default"].td.withConfig({
1362
1330
  align
1363
1331
  } = theme;
1364
1332
  const backgroundColor = color === 'error' ? (_theme$validation$err = theme.validation.error) === null || _theme$validation$err === void 0 ? void 0 : _theme$validation$err.background : '';
1365
- const base = styled.css(["min-height:", ";height:", ";background:", ";vertical-align:", ";", " ", " ", ""], height, height, backgroundColor, align.vertical, edsUtils.spacingsTemplate(spacings), edsUtils.typographyTemplate(typography), edsUtils.bordersTemplate(border));
1333
+ const base = styled.css(["min-height:", ";height:", ";background:", ";vertical-align:", ";box-sizing:border-box;", " ", " ", ""], height, height, backgroundColor, align.vertical, edsUtils.spacingsTemplate(spacings), edsUtils.typographyTemplate(typography), edsUtils.bordersTemplate(border));
1366
1334
  return base;
1367
1335
  });
1368
1336
  const TableDataCell = /*#__PURE__*/react.forwardRef(function TableDataCell(_ref2, ref) {
@@ -1538,7 +1506,7 @@ const StyledTableCell = styled__default["default"].th.withConfig({
1538
1506
  sortStylingActive = styled.css(["", ";background:", ";color:", ";"], activeToken.border.type === 'bordergroup' ? styled.css(["border-color:", ";"], activeToken.border.bottom.color) : '', activeToken.background, activeToken.typography.color);
1539
1507
  }
1540
1508
 
1541
- return styled.css(["min-height:", ";height:", ";background:", ";", " ", " ", " ", " ", " ", ""], height, height, background, edsUtils.spacingsTemplate(spacings), edsUtils.typographyTemplate(typography), edsUtils.bordersTemplate(theme.border), sortStylingHover, sortStylingActive, sticky ? styled.css(["position:sticky;top:0;z-index:1;"]) : '');
1509
+ return styled.css(["min-height:", ";height:", ";background:", ";box-sizing:border-box;", " ", " ", " ", " ", " ", ""], height, height, background, edsUtils.spacingsTemplate(spacings), edsUtils.typographyTemplate(typography), edsUtils.bordersTemplate(theme.border), sortStylingHover, sortStylingActive, sticky ? styled.css(["position:sticky;top:0;z-index:1;"]) : '');
1542
1510
  });
1543
1511
  const CellInner = styled__default["default"].div.withConfig({
1544
1512
  displayName: "HeaderCell__CellInner",
@@ -1745,8 +1713,8 @@ const {
1745
1713
  },
1746
1714
  spacings: {
1747
1715
  comfortable: {
1748
- small: spacingSmall$4,
1749
- medium: spacingMedium$8
1716
+ small: spacingSmall$5,
1717
+ medium: spacingMedium$9
1750
1718
  }
1751
1719
  }
1752
1720
  } = edsTokens.tokens;
@@ -1774,14 +1742,14 @@ const divider$1 = {
1774
1742
  };
1775
1743
  const small$7 = { ...baseDivider$1,
1776
1744
  spacings: {
1777
- top: spacingSmall$4,
1778
- bottom: reduceValueByDividerHeight(spacingSmall$4)
1745
+ top: spacingSmall$5,
1746
+ bottom: reduceValueByDividerHeight(spacingSmall$5)
1779
1747
  }
1780
1748
  };
1781
1749
  const medium$3 = { ...baseDivider$1,
1782
1750
  spacings: {
1783
- top: spacingMedium$8,
1784
- bottom: reduceValueByDividerHeight(spacingMedium$8)
1751
+ top: spacingMedium$9,
1752
+ bottom: reduceValueByDividerHeight(spacingMedium$9)
1785
1753
  }
1786
1754
  };
1787
1755
 
@@ -1882,7 +1850,7 @@ const {
1882
1850
  x_small: x_small$5
1883
1851
  }
1884
1852
  },
1885
- typography: typography$f,
1853
+ typography: typography$g,
1886
1854
  shape: shape$2
1887
1855
  } = edsTokens.tokens;
1888
1856
  const input$2 = {
@@ -1894,7 +1862,7 @@ const input$2 = {
1894
1862
  top: '6px',
1895
1863
  bottom: '6px'
1896
1864
  },
1897
- typography: { ...typography$f.input.text,
1865
+ typography: { ...typography$g.input.text,
1898
1866
  color: static_icons__default.rgba
1899
1867
  },
1900
1868
  entities: {
@@ -1946,7 +1914,7 @@ const input$2 = {
1946
1914
  }
1947
1915
  }
1948
1916
  };
1949
- const error$4 = mergeDeepRight$1(input$2, {
1917
+ const error$4 = mergeDeepRight(input$2, {
1950
1918
  boxShadow: 'inset 0px -1px 0px 0px transparent',
1951
1919
  states: {
1952
1920
  active: {
@@ -1969,7 +1937,7 @@ const error$4 = mergeDeepRight$1(input$2, {
1969
1937
  }
1970
1938
  }
1971
1939
  });
1972
- const warning$4 = mergeDeepRight$1(input$2, {
1940
+ const warning$4 = mergeDeepRight(input$2, {
1973
1941
  boxShadow: 'inset 0px -1px 0px 0px transparent',
1974
1942
  states: {
1975
1943
  active: {
@@ -1992,7 +1960,7 @@ const warning$4 = mergeDeepRight$1(input$2, {
1992
1960
  }
1993
1961
  }
1994
1962
  });
1995
- const success$1 = mergeDeepRight$1(input$2, {
1963
+ const success$1 = mergeDeepRight(input$2, {
1996
1964
  boxShadow: 'inset 0px -1px 0px 0px transparent',
1997
1965
  states: {
1998
1966
  active: {
@@ -2031,7 +1999,7 @@ var tokens$6 = /*#__PURE__*/Object.freeze({
2031
1999
  inputToken: inputToken
2032
2000
  });
2033
2001
 
2034
- const StyledInput = styled__default["default"].input.withConfig({
2002
+ const StyledInput$1 = styled__default["default"].input.withConfig({
2035
2003
  displayName: "Input__StyledInput",
2036
2004
  componentId: "sc-1ykv024-0"
2037
2005
  })(_ref => {
@@ -2076,13 +2044,13 @@ const Input$4 = /*#__PURE__*/react.forwardRef(function Input(_ref2, ref) {
2076
2044
  };
2077
2045
  return /*#__PURE__*/jsxRuntime.jsx(styled.ThemeProvider, {
2078
2046
  theme: token,
2079
- children: /*#__PURE__*/jsxRuntime.jsx(StyledInput, { ...inputProps
2047
+ children: /*#__PURE__*/jsxRuntime.jsx(StyledInput$1, { ...inputProps
2080
2048
  })
2081
2049
  });
2082
2050
  });
2083
2051
 
2084
2052
  const {
2085
- colors: colors$6,
2053
+ colors: colors$7,
2086
2054
  spacings: {
2087
2055
  comfortable: comfortable$6
2088
2056
  }
@@ -2103,24 +2071,24 @@ const input$1 = {
2103
2071
  }
2104
2072
  },
2105
2073
  default: {
2106
- color: colors$6.text.static_icons__tertiary.hex,
2107
- disabledColor: colors$6.interactive.disabled__fill.hex,
2108
- focusColor: colors$6.interactive.primary__resting.hex
2074
+ color: colors$7.text.static_icons__tertiary.hex,
2075
+ disabledColor: colors$7.interactive.disabled__fill.hex,
2076
+ focusColor: colors$7.interactive.primary__resting.hex
2109
2077
  },
2110
2078
  error: {
2111
- color: colors$6.interactive.danger__resting.hex,
2112
- disabledColor: colors$6.interactive.disabled__fill.hex,
2113
- focusColor: colors$6.interactive.danger__hover.hex
2079
+ color: colors$7.interactive.danger__resting.hex,
2080
+ disabledColor: colors$7.interactive.disabled__fill.hex,
2081
+ focusColor: colors$7.interactive.danger__hover.hex
2114
2082
  },
2115
2083
  warning: {
2116
- color: colors$6.interactive.warning__resting.hex,
2117
- disabledColor: colors$6.interactive.disabled__fill.hex,
2118
- focusColor: colors$6.interactive.warning__hover.hex
2084
+ color: colors$7.interactive.warning__resting.hex,
2085
+ disabledColor: colors$7.interactive.disabled__fill.hex,
2086
+ focusColor: colors$7.interactive.warning__hover.hex
2119
2087
  },
2120
2088
  success: {
2121
- color: colors$6.interactive.success__resting.hex,
2122
- disabledColor: colors$6.interactive.disabled__fill.hex,
2123
- focusColor: colors$6.interactive.success__hover.hex
2089
+ color: colors$7.interactive.success__resting.hex,
2090
+ disabledColor: colors$7.interactive.disabled__fill.hex,
2091
+ focusColor: colors$7.interactive.success__hover.hex
2124
2092
  }
2125
2093
  };
2126
2094
 
@@ -2182,8 +2150,8 @@ const InputIcon = /*#__PURE__*/react.forwardRef(function InputIcon(_ref2, ref) {
2182
2150
  });
2183
2151
 
2184
2152
  const {
2185
- colors: colors$5,
2186
- typography: typography$e,
2153
+ colors: colors$6,
2154
+ typography: typography$f,
2187
2155
  spacings: {
2188
2156
  comfortable: {
2189
2157
  small: small$5,
@@ -2192,12 +2160,12 @@ const {
2192
2160
  }
2193
2161
  } = edsTokens.tokens;
2194
2162
  const textfield$1 = {
2195
- background: colors$5.ui.background__light.hex,
2163
+ background: colors$6.ui.background__light.hex,
2196
2164
  border: {
2197
2165
  type: 'border',
2198
2166
  radius: 0,
2199
2167
  width: '1px',
2200
- color: colors$5.text.static_icons__tertiary.hex
2168
+ color: colors$6.text.static_icons__tertiary.hex
2201
2169
  },
2202
2170
  spacings: {
2203
2171
  left: small$5,
@@ -2208,7 +2176,7 @@ const textfield$1 = {
2208
2176
  focus: {
2209
2177
  outline: {
2210
2178
  width: '2px',
2211
- color: colors$5.interactive.primary__resting.hex,
2179
+ color: colors$6.interactive.primary__resting.hex,
2212
2180
  style: 'solid',
2213
2181
  type: 'outline',
2214
2182
  offset: '0px'
@@ -2221,13 +2189,13 @@ const textfield$1 = {
2221
2189
  },
2222
2190
  entities: {
2223
2191
  unit: {
2224
- typography: { ...typography$e.input.label,
2225
- color: colors$5.text.static_icons__tertiary.hex
2192
+ typography: { ...typography$f.input.label,
2193
+ color: colors$6.text.static_icons__tertiary.hex
2226
2194
  },
2227
2195
  states: {
2228
2196
  disabled: {
2229
2197
  typography: {
2230
- color: colors$5.interactive.disabled__text.hex
2198
+ color: colors$6.interactive.disabled__text.hex
2231
2199
  }
2232
2200
  }
2233
2201
  }
@@ -2249,13 +2217,13 @@ const error$3 = {
2249
2217
  type: 'border',
2250
2218
  radius: 0,
2251
2219
  width: '1px',
2252
- color: colors$5.interactive.danger__resting.hex
2220
+ color: colors$6.interactive.danger__resting.hex
2253
2221
  },
2254
2222
  states: {
2255
2223
  focus: {
2256
2224
  outline: {
2257
2225
  width: '2px',
2258
- color: colors$5.interactive.danger__hover.hex,
2226
+ color: colors$6.interactive.danger__hover.hex,
2259
2227
  style: 'solid',
2260
2228
  type: 'outline',
2261
2229
  offset: '0px'
@@ -2268,13 +2236,13 @@ const warning$3 = {
2268
2236
  type: 'border',
2269
2237
  radius: 0,
2270
2238
  width: '1px',
2271
- color: colors$5.interactive.warning__resting.hex
2239
+ color: colors$6.interactive.warning__resting.hex
2272
2240
  },
2273
2241
  states: {
2274
2242
  focus: {
2275
2243
  outline: {
2276
2244
  width: '2px',
2277
- color: colors$5.interactive.warning__hover.hex,
2245
+ color: colors$6.interactive.warning__hover.hex,
2278
2246
  style: 'solid',
2279
2247
  type: 'outline',
2280
2248
  offset: '0px'
@@ -2287,13 +2255,13 @@ const success = {
2287
2255
  type: 'border',
2288
2256
  radius: 0,
2289
2257
  width: '1px',
2290
- color: colors$5.interactive.success__resting.hex
2258
+ color: colors$6.interactive.success__resting.hex
2291
2259
  },
2292
2260
  states: {
2293
2261
  focus: {
2294
2262
  outline: {
2295
2263
  width: '2px',
2296
- color: colors$5.interactive.success__hover.hex,
2264
+ color: colors$6.interactive.success__hover.hex,
2297
2265
  style: 'solid',
2298
2266
  type: 'outline',
2299
2267
  offset: '0px'
@@ -2540,16 +2508,16 @@ const Field = /*#__PURE__*/react.forwardRef(function Field(_ref5, ref) {
2540
2508
  });
2541
2509
 
2542
2510
  const {
2543
- colors: colors$4,
2511
+ colors: colors$5,
2544
2512
  spacings: {
2545
2513
  comfortable: comfortable$5
2546
2514
  },
2547
- typography: typography$d
2515
+ typography: typography$e
2548
2516
  } = edsTokens.tokens;
2549
2517
  const label = {
2550
- background: colors$4.ui.background__light.rgba,
2551
- typography: { ...typography$d.input.label,
2552
- color: colors$4.text.static_icons__tertiary.rgba
2518
+ background: colors$5.ui.background__light.rgba,
2519
+ typography: { ...typography$e.input.label,
2520
+ color: colors$5.text.static_icons__tertiary.rgba
2553
2521
  },
2554
2522
  spacings: {
2555
2523
  left: comfortable$5.small,
@@ -2560,7 +2528,7 @@ const label = {
2560
2528
  states: {
2561
2529
  disabled: {
2562
2530
  typography: {
2563
- color: colors$4.interactive.disabled__text.rgba
2531
+ color: colors$5.interactive.disabled__text.rgba
2564
2532
  }
2565
2533
  }
2566
2534
  }
@@ -2604,15 +2572,15 @@ const Label$1 = /*#__PURE__*/react.forwardRef(function Label(props, ref) {
2604
2572
  }); // Label.displayName = 'eds-text-field-label'
2605
2573
 
2606
2574
  const {
2607
- colors: colors$3,
2575
+ colors: colors$4,
2608
2576
  spacings: {
2609
2577
  comfortable: comfortable$4
2610
2578
  },
2611
- typography: typography$c
2579
+ typography: typography$d
2612
2580
  } = edsTokens.tokens;
2613
2581
  const helperText = {
2614
- background: colors$3.ui.background__light.hex,
2615
- typography: typography$c.input.helper,
2582
+ background: colors$4.ui.background__light.hex,
2583
+ typography: typography$d.input.helper,
2616
2584
  spacings: {
2617
2585
  comfortable: {
2618
2586
  left: comfortable$4.small,
@@ -2628,24 +2596,24 @@ const helperText = {
2628
2596
  }
2629
2597
  },
2630
2598
  default: {
2631
- color: colors$3.text.static_icons__tertiary.hex,
2632
- disabledColor: colors$3.interactive.disabled__text.hex,
2633
- focusColor: colors$3.text.static_icons__tertiary.hex
2599
+ color: colors$4.text.static_icons__tertiary.hex,
2600
+ disabledColor: colors$4.interactive.disabled__text.hex,
2601
+ focusColor: colors$4.text.static_icons__tertiary.hex
2634
2602
  },
2635
2603
  error: {
2636
- color: colors$3.interactive.danger__text.hex,
2637
- disabledColor: colors$3.interactive.disabled__text.hex,
2638
- focusColor: colors$3.interactive.danger__hover.hex
2604
+ color: colors$4.interactive.danger__text.hex,
2605
+ disabledColor: colors$4.interactive.disabled__text.hex,
2606
+ focusColor: colors$4.interactive.danger__hover.hex
2639
2607
  },
2640
2608
  warning: {
2641
- color: colors$3.interactive.warning__text.hex,
2642
- disabledColor: colors$3.interactive.disabled__text.hex,
2643
- focusColor: colors$3.interactive.warning__hover.hex
2609
+ color: colors$4.interactive.warning__text.hex,
2610
+ disabledColor: colors$4.interactive.disabled__text.hex,
2611
+ focusColor: colors$4.interactive.warning__hover.hex
2644
2612
  },
2645
2613
  success: {
2646
- color: colors$3.interactive.success__text.hex,
2647
- disabledColor: colors$3.interactive.disabled__text.hex,
2648
- focusColor: colors$3.interactive.success__hover.hex
2614
+ color: colors$4.interactive.success__text.hex,
2615
+ disabledColor: colors$4.interactive.disabled__text.hex,
2616
+ focusColor: colors$4.interactive.success__hover.hex
2649
2617
  }
2650
2618
  };
2651
2619
 
@@ -2677,7 +2645,7 @@ const Variation = _ref => {
2677
2645
  return styled.css(["color:", ";"], color);
2678
2646
  };
2679
2647
 
2680
- const Container$4 = styled__default["default"].div.withConfig({
2648
+ const Container$5 = styled__default["default"].div.withConfig({
2681
2649
  displayName: "HelperText__Container",
2682
2650
  componentId: "sc-1kfkyxg-0"
2683
2651
  })(["display:flex;align-items:flex-start;margin-top:", ";"], _ref2 => {
@@ -2713,7 +2681,7 @@ const TextfieldHelperText = /*#__PURE__*/react.forwardRef(function TextfieldHelp
2713
2681
  disabledColor: helperVariant.disabledColor,
2714
2682
  focusColor: helperVariant.focusColor
2715
2683
  };
2716
- return /*#__PURE__*/jsxRuntime.jsxs(Container$4, {
2684
+ return /*#__PURE__*/jsxRuntime.jsxs(Container$5, {
2717
2685
  ref: ref,
2718
2686
  ...rest,
2719
2687
  spacings: spacings,
@@ -2732,7 +2700,7 @@ const TextfieldHelperText = /*#__PURE__*/react.forwardRef(function TextfieldHelp
2732
2700
  });
2733
2701
  });
2734
2702
 
2735
- const Container$3 = styled__default["default"].div.withConfig({
2703
+ const Container$4 = styled__default["default"].div.withConfig({
2736
2704
  displayName: "TextField__Container",
2737
2705
  componentId: "sc-o1nc07-0"
2738
2706
  })(["min-width:100px;width:100%;"]);
@@ -2796,7 +2764,7 @@ const TextField = /*#__PURE__*/react.forwardRef(function TextField(_ref, ref) {
2796
2764
  }, textfield$1);
2797
2765
  return /*#__PURE__*/jsxRuntime.jsx(styled.ThemeProvider, {
2798
2766
  theme: token,
2799
- children: /*#__PURE__*/jsxRuntime.jsx(Container$3, { ...containerProps,
2767
+ children: /*#__PURE__*/jsxRuntime.jsx(Container$4, { ...containerProps,
2800
2768
  children: /*#__PURE__*/jsxRuntime.jsxs(TextFieldProvider, {
2801
2769
  children: [showLabel && /*#__PURE__*/jsxRuntime.jsx(Label$1, { ...labelProps
2802
2770
  }), /*#__PURE__*/jsxRuntime.jsx(Field, { ...inputProps
@@ -2965,9 +2933,9 @@ const list = {
2965
2933
  };
2966
2934
 
2967
2935
  const {
2968
- typography: typography$b
2936
+ typography: typography$c
2969
2937
  } = list;
2970
- const StyledList$1 = styled__default["default"].ul.withConfig({
2938
+ const StyledList$2 = styled__default["default"].ul.withConfig({
2971
2939
  displayName: "List__StyledList",
2972
2940
  componentId: "sc-v9d2hy-0"
2973
2941
  })(["", " ", ""], _ref => {
@@ -2975,7 +2943,7 @@ const StyledList$1 = styled__default["default"].ul.withConfig({
2975
2943
  as
2976
2944
  } = _ref;
2977
2945
  return as === 'ol' ? styled.css(["& ol{list-style-type:lower-alpha;}"]) : '';
2978
- }, edsUtils.typographyTemplate(typography$b));
2946
+ }, edsUtils.typographyTemplate(typography$c));
2979
2947
  const List$2 = /*#__PURE__*/react.forwardRef(function List(_ref2, ref) {
2980
2948
  let {
2981
2949
  children,
@@ -2983,7 +2951,7 @@ const List$2 = /*#__PURE__*/react.forwardRef(function List(_ref2, ref) {
2983
2951
  ...props
2984
2952
  } = _ref2;
2985
2953
  const as = variant === 'numbered' ? 'ol' : 'ul';
2986
- return /*#__PURE__*/jsxRuntime.jsx(StyledList$1, {
2954
+ return /*#__PURE__*/jsxRuntime.jsx(StyledList$2, {
2987
2955
  as: as,
2988
2956
  ref: ref,
2989
2957
  ...props,
@@ -3009,7 +2977,7 @@ List$1.Item.displayName = 'List.Item';
3009
2977
  const {
3010
2978
  typography: {
3011
2979
  ui: {
3012
- accordion_header: typography$a
2980
+ accordion_header: typography$b
3013
2981
  }
3014
2982
  },
3015
2983
  colors: {
@@ -3074,7 +3042,7 @@ const accordion = {
3074
3042
  header: {
3075
3043
  height: '48px',
3076
3044
  background: backgroundDefault,
3077
- typography: typography$a,
3045
+ typography: typography$b,
3078
3046
  spacings: {
3079
3047
  left: mediumSpacing,
3080
3048
  right: mediumSpacing
@@ -3090,12 +3058,12 @@ const accordion = {
3090
3058
  }
3091
3059
  },
3092
3060
  disabled: {
3093
- typography: { ...typography$a,
3061
+ typography: { ...typography$b,
3094
3062
  color: disabledColor$2
3095
3063
  }
3096
3064
  },
3097
3065
  active: {
3098
- typography: { ...typography$a,
3066
+ typography: { ...typography$b,
3099
3067
  color: activatedColor
3100
3068
  }
3101
3069
  },
@@ -3468,7 +3436,7 @@ const {
3468
3436
  },
3469
3437
  spacings: {
3470
3438
  comfortable: {
3471
- medium: spacingMedium$7
3439
+ medium: spacingMedium$8
3472
3440
  }
3473
3441
  },
3474
3442
  interactions: {
@@ -3481,8 +3449,8 @@ const token$1 = {
3481
3449
  entities: {
3482
3450
  panel: {
3483
3451
  spacings: {
3484
- top: spacingMedium$7,
3485
- bottom: spacingMedium$7
3452
+ top: spacingMedium$8,
3453
+ bottom: spacingMedium$8
3486
3454
  },
3487
3455
  states: {
3488
3456
  focus: {
@@ -3505,8 +3473,8 @@ const token$1 = {
3505
3473
  }
3506
3474
  },
3507
3475
  spacings: {
3508
- left: spacingMedium$7,
3509
- right: spacingMedium$7
3476
+ left: spacingMedium$8,
3477
+ right: spacingMedium$8
3510
3478
  },
3511
3479
  typography: {
3512
3480
  color: defaultColor,
@@ -3572,11 +3540,11 @@ const token$1 = {
3572
3540
  const Tabs$1 = /*#__PURE__*/react.forwardRef(function Tabs(_ref, ref) {
3573
3541
  let {
3574
3542
  activeTab = 0,
3575
- onChange,
3543
+ onChange = () => null,
3576
3544
  onBlur,
3577
3545
  onFocus,
3578
3546
  variant = 'minWidth',
3579
- scrollable,
3547
+ scrollable = false,
3580
3548
  id,
3581
3549
  ...props
3582
3550
  } = _ref;
@@ -3671,7 +3639,7 @@ const StyledTabList = styled__default["default"].div.attrs(() => ({
3671
3639
  })).withConfig({
3672
3640
  displayName: "TabList__StyledTabList",
3673
3641
  componentId: "sc-1g1p5i1-0"
3674
- })(["display:grid;grid-auto-flow:column;grid-auto-columns:", ";overflow-x:", ";scroll-snap-type:x mandatory;overscroll-behavior-x:contain;@media (prefers-reduced-motion:no-preference){scroll-behavior:smooth;}@media (hover:none){overflow-x:scroll;-webkit-overflow-scrolling:touch;scrollbar-width:0;&::-webkit-scrollbar{width:0;height:0;}}"], _ref => {
3642
+ })(["display:grid;grid-auto-flow:column;grid-auto-columns:", ";overflow-x:", ";scroll-snap-type:x mandatory;overscroll-behavior-x:contain;@media (prefers-reduced-motion:no-preference){scroll-behavior:smooth;}@media (hover:none){overflow-x:scroll;-webkit-overflow-scrolling:touch;scrollbar-width:0;& ::-webkit-scrollbar{width:0;height:0;}}"], _ref => {
3675
3643
  let {
3676
3644
  variant
3677
3645
  } = _ref;
@@ -3873,12 +3841,12 @@ const {
3873
3841
  },
3874
3842
  spacings: {
3875
3843
  comfortable: {
3876
- medium: spacingMedium$6
3844
+ medium: spacingMedium$7
3877
3845
  }
3878
3846
  },
3879
3847
  shape: {
3880
3848
  corners: {
3881
- borderRadius: borderRadius$7
3849
+ borderRadius: borderRadius$8
3882
3850
  }
3883
3851
  }
3884
3852
  } = edsTokens.tokens;
@@ -3886,13 +3854,13 @@ const primary$4 = {
3886
3854
  background: background$c,
3887
3855
  border: {
3888
3856
  type: 'border',
3889
- radius: borderRadius$7
3857
+ radius: borderRadius$8
3890
3858
  },
3891
3859
  spacings: {
3892
- left: spacingMedium$6,
3893
- bottom: spacingMedium$6,
3894
- right: spacingMedium$6,
3895
- top: spacingMedium$6
3860
+ left: spacingMedium$7,
3861
+ bottom: spacingMedium$7,
3862
+ right: spacingMedium$7,
3863
+ top: spacingMedium$7
3896
3864
  }
3897
3865
  };
3898
3866
  const info$2 = {
@@ -3919,7 +3887,7 @@ const {
3919
3887
  const StyledCard = styled__default["default"].div.withConfig({
3920
3888
  displayName: "Card__StyledCard",
3921
3889
  componentId: "sc-bjucjn-0"
3922
- })(["height:fit-content;width:100%;position:relative;background-color:", ";box-sizing:border-box;display:grid;grid-gap:16px;grid-auto-columns:auto;align-items:center;align-content:start;cursor:", ";", ";"], _ref => {
3890
+ })(["width:100%;position:relative;background-color:", ";box-sizing:border-box;display:flex;flex-direction:column;grid-gap:16px;cursor:", ";", ";"], _ref => {
3923
3891
  let {
3924
3892
  background
3925
3893
  } = _ref;
@@ -3958,7 +3926,7 @@ const {
3958
3926
  const StyledCardActions = styled__default["default"].div.withConfig({
3959
3927
  displayName: "CardActions__StyledCardActions",
3960
3928
  componentId: "sc-1d5vskp-0"
3961
- })(["display:grid;grid-gap:8px;grid-auto-flow:column;align-items:center;justify-content:", ";padding:0 ", " 0 ", ";:first-child{padding-top:", ";}:last-child{padding-bottom:", ";}"], _ref => {
3929
+ })(["display:grid;grid-gap:8px;grid-auto-flow:column;align-items:center;justify-content:", ";padding:0 ", " 0 ", ";margin-top:auto;:first-child{padding-top:", ";}:last-child{padding-bottom:", ";}"], _ref => {
3962
3930
  let {
3963
3931
  justifyContent
3964
3932
  } = _ref;
@@ -4038,7 +4006,7 @@ const {
4038
4006
  const StyledCardHeader = styled__default["default"].div.withConfig({
4039
4007
  displayName: "CardHeader__StyledCardHeader",
4040
4008
  componentId: "sc-15k8edh-0"
4041
- })(["display:flex;justify-content:space-between;align-items:center;padding:0 ", " 0 ", ";>:not(:first-child){margin-left:", ";}:first-child{padding-top:", ";}:last-child{padding-bottom:", ";}"], spacings$3.right, spacings$3.left, spacings$3.left, spacings$3.top, spacings$3.bottom);
4009
+ })(["display:flex;justify-content:space-between;align-items:center;padding:0 ", " 0 ", ";> :not(:first-child){margin-left:", ";}:first-child{padding-top:", ";}:last-child{padding-bottom:", ";}"], spacings$3.right, spacings$3.left, spacings$3.left, spacings$3.top, spacings$3.bottom);
4042
4010
  const CardHeader = /*#__PURE__*/react.forwardRef(function CardHeader(_ref, ref) {
4043
4011
  let {
4044
4012
  children,
@@ -4082,7 +4050,7 @@ Card.Media.displayName = 'Card.Media';
4082
4050
  Card.HeaderTitle.displayName = 'Card.HeaderTitle';
4083
4051
 
4084
4052
  const {
4085
- colors: colors$2,
4053
+ colors: colors$3,
4086
4054
  spacings: {
4087
4055
  comfortable: comfortable$3
4088
4056
  },
@@ -4092,7 +4060,7 @@ const {
4092
4060
  } = edsTokens.tokens;
4093
4061
  const topbar = {
4094
4062
  height: '64px',
4095
- background: colors$2.ui.background__default.rgba,
4063
+ background: colors$3.ui.background__default.rgba,
4096
4064
  typography: navigation.menu_title,
4097
4065
  spacings: {
4098
4066
  left: comfortable$3.xx_large,
@@ -4104,7 +4072,7 @@ const topbar = {
4104
4072
  type: 'bordergroup',
4105
4073
  bottom: {
4106
4074
  style: 'solid',
4107
- color: colors$2.ui.background__light.rgba,
4075
+ color: colors$3.ui.background__light.rgba,
4108
4076
  width: '2px'
4109
4077
  }
4110
4078
  },
@@ -4310,7 +4278,7 @@ const Scrim = /*#__PURE__*/react.forwardRef(function Scrim(_ref, ref) {
4310
4278
  const {
4311
4279
  spacings: {
4312
4280
  comfortable: {
4313
- medium: spacingMedium$5
4281
+ medium: spacingMedium$6
4314
4282
  }
4315
4283
  },
4316
4284
  typography: {
@@ -4330,7 +4298,7 @@ const {
4330
4298
  },
4331
4299
  shape: {
4332
4300
  corners: {
4333
- borderRadius: borderRadius$6
4301
+ borderRadius: borderRadius$7
4334
4302
  }
4335
4303
  }
4336
4304
  } = edsTokens.tokens;
@@ -4340,18 +4308,18 @@ const dialog = {
4340
4308
  typography: accordion_header,
4341
4309
  border: {
4342
4310
  type: 'border',
4343
- radius: borderRadius$6
4311
+ radius: borderRadius$7
4344
4312
  },
4345
4313
  spacings: {
4346
- bottom: spacingMedium$5
4314
+ bottom: spacingMedium$6
4347
4315
  },
4348
4316
  entities: {
4349
4317
  children: {
4350
4318
  spacings: {
4351
- top: spacingMedium$5,
4352
- bottom: spacingMedium$5,
4353
- left: spacingMedium$5,
4354
- right: spacingMedium$5
4319
+ top: spacingMedium$6,
4320
+ bottom: spacingMedium$6,
4321
+ left: spacingMedium$6,
4322
+ right: spacingMedium$6
4355
4323
  }
4356
4324
  },
4357
4325
  title: {
@@ -4581,7 +4549,7 @@ const {
4581
4549
  },
4582
4550
  shape: {
4583
4551
  corners: {
4584
- borderRadius: borderRadius$5
4552
+ borderRadius: borderRadius$6
4585
4553
  }
4586
4554
  },
4587
4555
  spacings: {
@@ -4591,10 +4559,10 @@ const {
4591
4559
  xxx_large
4592
4560
  }
4593
4561
  },
4594
- typography: typography$9
4562
+ typography: typography$a
4595
4563
  } = edsTokens.tokens;
4596
4564
  const tableOfContents = {
4597
- typography: { ...typography$9.navigation.button,
4565
+ typography: { ...typography$a.navigation.button,
4598
4566
  color: labelColor
4599
4567
  },
4600
4568
  spacings: {
@@ -4610,7 +4578,7 @@ const tableOfContents = {
4610
4578
  },
4611
4579
  links: {
4612
4580
  width: 'calc(189px - 36px)',
4613
- typography: { ...typography$9.navigation.button,
4581
+ typography: { ...typography$a.navigation.button,
4614
4582
  color: primaryColor$4
4615
4583
  },
4616
4584
  spacings: {
@@ -4643,14 +4611,14 @@ const tableOfContents = {
4643
4611
  hover: {
4644
4612
  background: primaryHoverAlt$6,
4645
4613
  border: {
4646
- radius: borderRadius$5
4614
+ radius: borderRadius$6
4647
4615
  },
4648
4616
  entities: {
4649
4617
  icon: {
4650
4618
  background: primaryHover$3
4651
4619
  }
4652
4620
  },
4653
- typography: { ...typography$9.navigation.button,
4621
+ typography: { ...typography$a.navigation.button,
4654
4622
  color: primaryHover$3
4655
4623
  }
4656
4624
  }
@@ -4751,7 +4719,7 @@ const {
4751
4719
  spacings: {
4752
4720
  comfortable: {
4753
4721
  xx_small: spacingXXS,
4754
- medium: spacingMedium$4
4722
+ medium: spacingMedium$5
4755
4723
  }
4756
4724
  }
4757
4725
  } = edsTokens.tokens;
@@ -4760,8 +4728,8 @@ const comfortable$2 = {
4760
4728
  spacings: {
4761
4729
  left: '14px',
4762
4730
  // padding left is 14px, because of border-left 'steals' 2px of the padding
4763
- right: spacingMedium$4,
4764
- top: spacingMedium$4
4731
+ right: spacingMedium$5,
4732
+ top: spacingMedium$5
4765
4733
  },
4766
4734
  border: {
4767
4735
  type: 'bordergroup',
@@ -4812,7 +4780,6 @@ const SideSheet = /*#__PURE__*/react.forwardRef(function SideSheet(_ref2, ref) {
4812
4780
  }; // Controller must set open={false} when pressing the close button
4813
4781
 
4814
4782
  return open && /*#__PURE__*/jsxRuntime.jsxs(StyledSideSheet, { ...props,
4815
- id: "side-sheet",
4816
4783
  children: [/*#__PURE__*/jsxRuntime.jsxs(Header$1, {
4817
4784
  children: [/*#__PURE__*/jsxRuntime.jsx(Typography, {
4818
4785
  variant: "h2",
@@ -4885,7 +4852,7 @@ const {
4885
4852
  },
4886
4853
  shape: {
4887
4854
  rounded: {
4888
- borderRadius: borderRadius$4
4855
+ borderRadius: borderRadius$5
4889
4856
  }
4890
4857
  },
4891
4858
  interactions: {
@@ -4898,7 +4865,7 @@ const enabled$3 = {
4898
4865
  background: backgroundColor$2,
4899
4866
  height: '22px',
4900
4867
  border: {
4901
- radius: borderRadius$4,
4868
+ radius: borderRadius$5,
4902
4869
  color: 'transparent',
4903
4870
  type: 'border',
4904
4871
  width: '1px',
@@ -4940,7 +4907,7 @@ const enabled$3 = {
4940
4907
  height: medium$2,
4941
4908
  width: medium$2,
4942
4909
  border: {
4943
- radius: borderRadius$4,
4910
+ radius: borderRadius$5,
4944
4911
  type: 'border',
4945
4912
  width: 0
4946
4913
  },
@@ -4959,7 +4926,7 @@ const error$2 = {
4959
4926
  color: errorColor,
4960
4927
  width: '1px',
4961
4928
  style: 'solid',
4962
- radius: borderRadius$4
4929
+ radius: borderRadius$5
4963
4930
  },
4964
4931
  typography: {
4965
4932
  color: errorColor
@@ -5023,7 +4990,7 @@ const {
5023
4990
  const {
5024
4991
  background: background$5,
5025
4992
  height,
5026
- typography: typography$8,
4993
+ typography: typography$9,
5027
4994
  spacings: spacings$1,
5028
4995
  border: border$1,
5029
4996
  states: states$2
@@ -5040,7 +5007,7 @@ const StyledChips = styled__default["default"].div.attrs(_ref => {
5040
5007
  }).withConfig({
5041
5008
  displayName: "Chip__StyledChips",
5042
5009
  componentId: "sc-wzsllq-0"
5043
- })(["background:", ";height:", ";width:fit-content;display:grid;grid-gap:8px;grid-auto-flow:column;grid-auto-columns:max-content;align-items:center;svg{fill:", ";}@media (hover:hover) and (pointer:fine){&:hover{color:", ";svg{fill:", ";}}}&:focus{outline:none;}&[data-focus-visible-added]:focus{", "}&:focus-visible{", "}", " ", " ", " ", " ", " ", " ", " ", ""], background$5, height, typography$8.color, states$2.hover.typography.color, states$2.hover.typography.color, edsUtils.outlineTemplate(states$2.focus.outline), edsUtils.outlineTemplate(states$2.focus.outline), edsUtils.bordersTemplate(border$1), edsUtils.spacingsTemplate(spacings$1), edsUtils.typographyTemplate(typography$8), _ref2 => {
5010
+ })(["background:", ";height:", ";width:fit-content;display:grid;grid-gap:8px;grid-auto-flow:column;grid-auto-columns:max-content;align-items:center;svg{fill:", ";}@media (hover:hover) and (pointer:fine){&:hover{color:", ";svg{fill:", ";}}}&:focus{outline:none;}&[data-focus-visible-added]:focus{", "}&:focus-visible{", "}", " ", " ", " ", " ", " ", " ", " ", ""], background$5, height, typography$9.color, states$2.hover.typography.color, states$2.hover.typography.color, edsUtils.outlineTemplate(states$2.focus.outline), edsUtils.outlineTemplate(states$2.focus.outline), edsUtils.bordersTemplate(border$1), edsUtils.spacingsTemplate(spacings$1), edsUtils.typographyTemplate(typography$9), _ref2 => {
5044
5011
  let {
5045
5012
  clickable
5046
5013
  } = _ref2;
@@ -5230,14 +5197,14 @@ const {
5230
5197
  },
5231
5198
  typography: {
5232
5199
  input: {
5233
- text: typography$7
5200
+ text: typography$8
5234
5201
  }
5235
5202
  },
5236
5203
  shape: shape$1
5237
5204
  } = edsTokens.tokens;
5238
5205
  const search = {
5239
5206
  background: background$4,
5240
- typography: typography$7,
5207
+ typography: typography$8,
5241
5208
  height: '36px',
5242
5209
  clickbound: {
5243
5210
  offset: {
@@ -5306,7 +5273,7 @@ const search = {
5306
5273
  }
5307
5274
  };
5308
5275
 
5309
- const Container$2 = styled__default["default"].span.withConfig({
5276
+ const Container$3 = styled__default["default"].span.withConfig({
5310
5277
  displayName: "Search__Container",
5311
5278
  componentId: "sc-v8l23u-0"
5312
5279
  })(_ref => {
@@ -5337,7 +5304,7 @@ const SearchInput = styled__default["default"](Input$4).withConfig({
5337
5304
  theme,
5338
5305
  disabled
5339
5306
  } = _ref2;
5340
- return styled.css(["height:calc(", " - 2px);align-self:start;box-shadow:unset;&[type='search']::-webkit-search-decoration,&[type='search']::-webkit-search-cancel-button,&[type='search']::-webkit-search-results-button,&[type='search']::-webkit-search-results-decoration{-webkit-appearance:none;}", " &:focus{outline:none;}", ""], theme.height, edsUtils.typographyTemplate(theme.typography), disabled && styled.css(["cursor:not-allowed;"]));
5307
+ return styled.css(["height:calc(", " - 2px);align-self:start;box-shadow:unset;&[type='search']::-webkit-search-decoration,&[type='search']::-webkit-search-cancel-button,&[type='search']::-webkit-search-results-button,&[type='search']::-webkit-search-results-decoration{-webkit-appearance:none;}", " &:focus{outline:none;}&:-webkit-autofill{box-shadow:0 0 0px 1000px ", " inset;}&:autofill{box-shadow:0 0 0px 1000px ", " inset;}", ""], theme.height, edsUtils.typographyTemplate(theme.typography), theme.background, theme.background, disabled && styled.css(["cursor:not-allowed;"]));
5341
5308
  });
5342
5309
  const InsideButton = styled__default["default"](Button).withConfig({
5343
5310
  displayName: "Search__InsideButton",
@@ -5480,7 +5447,7 @@ const Search = /*#__PURE__*/react.forwardRef(function Search(_ref4, ref) {
5480
5447
  };
5481
5448
  return /*#__PURE__*/jsxRuntime.jsx(styled.ThemeProvider, {
5482
5449
  theme: token,
5483
- children: /*#__PURE__*/jsxRuntime.jsxs(Container$2, { ...containerProps,
5450
+ children: /*#__PURE__*/jsxRuntime.jsxs(Container$3, { ...containerProps,
5484
5451
  children: [/*#__PURE__*/jsxRuntime.jsx(Icon$1, {
5485
5452
  data: edsIcons.search,
5486
5453
  "aria-hidden": true,
@@ -5830,6 +5797,7 @@ const Slider = /*#__PURE__*/react.forwardRef(function Slider(_ref10, ref) {
5830
5797
  step = 1,
5831
5798
  disabled,
5832
5799
  ariaLabelledby,
5800
+ 'aria-labelledby': ariaLabelledbyNative,
5833
5801
  ...rest
5834
5802
  } = _ref10;
5835
5803
  const isRangeSlider = Array.isArray(value);
@@ -5853,8 +5821,7 @@ const Slider = /*#__PURE__*/react.forwardRef(function Slider(_ref10, ref) {
5853
5821
  const maxRange = react.useRef(null);
5854
5822
 
5855
5823
  const onValueChange = (event, valueArrIdx) => {
5856
- const target = event.target;
5857
- const changedValue = parseFloat(target.value);
5824
+ const changedValue = parseFloat(event.target.value);
5858
5825
 
5859
5826
  if (isRangeSlider) {
5860
5827
  const newValue = sliderValue.slice();
@@ -5919,14 +5886,33 @@ const Slider = /*#__PURE__*/react.forwardRef(function Slider(_ref10, ref) {
5919
5886
  }
5920
5887
  };
5921
5888
 
5922
- const inputIdA = "".concat(ariaLabelledby, "-thumb-a");
5923
- const inputIdB = "".concat(ariaLabelledby, "-thumb-b");
5924
- const inputId = "".concat(ariaLabelledby, "-thumb");
5889
+ let inputIdA = edsUtils.useId(null, 'inputA');
5890
+ let inputIdB = edsUtils.useId(null, 'inputB');
5891
+ let inputId = edsUtils.useId(null, 'thumb');
5892
+
5893
+ if (rest['id']) {
5894
+ const overrideId = rest['id'];
5895
+ inputIdA = "".concat(overrideId, "-thumb-a");
5896
+ inputIdB = "".concat(overrideId, "-thumb-b");
5897
+ inputId = "".concat(overrideId, "-thumb");
5898
+ }
5899
+
5900
+ const getAriaLabelledby = () => {
5901
+ if (ariaLabelledbyNative) return ariaLabelledbyNative;
5902
+
5903
+ if (ariaLabelledby) {
5904
+ console.warn('Slider: The "ariaLabelledby" prop is deprecated and will be removed in a future version of EDS, please use the native "aria-labelledby" instead');
5905
+ return ariaLabelledby;
5906
+ }
5907
+
5908
+ return null;
5909
+ };
5910
+
5925
5911
  return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
5926
5912
  children: isRangeSlider ? /*#__PURE__*/jsxRuntime.jsxs(RangeWrapper, { ...rest,
5927
5913
  ref: ref,
5928
5914
  role: "group",
5929
- "aria-labelledby": ariaLabelledby,
5915
+ "aria-labelledby": getAriaLabelledby(),
5930
5916
  valA: sliderValue[0],
5931
5917
  valB: sliderValue[1],
5932
5918
  max: max,
@@ -5942,6 +5928,10 @@ const Slider = /*#__PURE__*/react.forwardRef(function Slider(_ref10, ref) {
5942
5928
  value: sliderValue[0],
5943
5929
  max: max,
5944
5930
  min: min,
5931
+ "aria-valuemax": max,
5932
+ "aria-valuemin": min,
5933
+ "aria-valuenow": sliderValue[0],
5934
+ "aria-valuetext": getFormattedText(sliderValue[0]).toString(),
5945
5935
  id: inputIdA,
5946
5936
  step: step,
5947
5937
  onChange: event => {
@@ -5964,6 +5954,10 @@ const Slider = /*#__PURE__*/react.forwardRef(function Slider(_ref10, ref) {
5964
5954
  value: sliderValue[1],
5965
5955
  min: min,
5966
5956
  max: max,
5957
+ "aria-valuemax": max,
5958
+ "aria-valuemin": min,
5959
+ "aria-valuenow": sliderValue[1],
5960
+ "aria-valuetext": getFormattedText(sliderValue[1]).toString(),
5967
5961
  id: inputIdB,
5968
5962
  step: step,
5969
5963
  ref: maxRange,
@@ -5991,13 +5985,17 @@ const Slider = /*#__PURE__*/react.forwardRef(function Slider(_ref10, ref) {
5991
5985
  value: sliderValue[0],
5992
5986
  min: min,
5993
5987
  max: max,
5988
+ "aria-valuemax": max,
5989
+ "aria-valuemin": min,
5990
+ "aria-valuenow": sliderValue[0],
5991
+ "aria-valuetext": getFormattedText(sliderValue[0]).toString(),
5994
5992
  step: step,
5995
5993
  id: inputId,
5996
5994
  onChange: event => {
5997
5995
  onValueChange(event);
5998
5996
  },
5999
5997
  disabled: disabled,
6000
- "aria-labelledby": ariaLabelledby,
5998
+ "aria-labelledby": getAriaLabelledby(),
6001
5999
  onMouseUp: event => handleCommitedValue(event),
6002
6000
  onKeyUp: event => handleKeyUp(event)
6003
6001
  }), /*#__PURE__*/jsxRuntime.jsx(Output, {
@@ -6034,12 +6032,12 @@ const {
6034
6032
  spacings: {
6035
6033
  comfortable: {
6036
6034
  x_large: spacingXlarge,
6037
- small: spacingSmall$3
6035
+ small: spacingSmall$4
6038
6036
  }
6039
6037
  },
6040
6038
  shape: {
6041
6039
  corners: {
6042
- borderRadius: borderRadius$3
6040
+ borderRadius: borderRadius$4
6043
6041
  }
6044
6042
  }
6045
6043
  } = edsTokens.tokens;
@@ -6050,7 +6048,7 @@ const tooltip = {
6050
6048
  background: background$3,
6051
6049
  border: {
6052
6050
  type: 'border',
6053
- radius: borderRadius$3
6051
+ radius: borderRadius$4
6054
6052
  },
6055
6053
  entities: {
6056
6054
  tooltip: {
@@ -6058,7 +6056,7 @@ const tooltip = {
6058
6056
  },
6059
6057
  arrow: {
6060
6058
  width: '6px',
6061
- height: spacingSmall$3,
6059
+ height: spacingSmall$4,
6062
6060
  spacings: {
6063
6061
  bottom: '-6px',
6064
6062
  top: '-6px',
@@ -6068,10 +6066,10 @@ const tooltip = {
6068
6066
  }
6069
6067
  },
6070
6068
  spacings: {
6071
- left: spacingSmall$3,
6072
- right: spacingSmall$3,
6073
- top: spacingSmall$3,
6074
- bottom: spacingSmall$3
6069
+ left: spacingSmall$4,
6070
+ right: spacingSmall$4,
6071
+ top: spacingSmall$4,
6072
+ bottom: spacingSmall$4
6075
6073
  }
6076
6074
  };
6077
6075
 
@@ -6210,7 +6208,7 @@ const SnackbarAction = /*#__PURE__*/react.forwardRef(function SnackbarAction(_re
6210
6208
  const {
6211
6209
  typography: {
6212
6210
  ui: {
6213
- snackbar: typography$6
6211
+ snackbar: typography$7
6214
6212
  }
6215
6213
  },
6216
6214
  colors: {
@@ -6232,7 +6230,7 @@ const {
6232
6230
  },
6233
6231
  spacings: {
6234
6232
  comfortable: {
6235
- medium: spacingMedium$3,
6233
+ medium: spacingMedium$4,
6236
6234
  x_large: spacingXLarge
6237
6235
  }
6238
6236
  },
@@ -6268,12 +6266,12 @@ const snackbar = {
6268
6266
  }
6269
6267
  },
6270
6268
  spacings: {
6271
- left: spacingMedium$3,
6272
- bottom: spacingMedium$3,
6273
- right: spacingMedium$3,
6274
- top: spacingMedium$3
6269
+ left: spacingMedium$4,
6270
+ bottom: spacingMedium$4,
6271
+ right: spacingMedium$4,
6272
+ top: spacingMedium$4
6275
6273
  },
6276
- typography: { ...typography$6,
6274
+ typography: { ...typography$7,
6277
6275
  color
6278
6276
  },
6279
6277
  modes: {
@@ -6359,13 +6357,13 @@ const {
6359
6357
  },
6360
6358
  spacings: {
6361
6359
  comfortable: {
6362
- medium: spacingMedium$2,
6363
- small: spacingSmall$2
6360
+ medium: spacingMedium$3,
6361
+ small: spacingSmall$3
6364
6362
  }
6365
6363
  },
6366
6364
  shape: {
6367
6365
  corners: {
6368
- borderRadius: borderRadius$2
6366
+ borderRadius: borderRadius$3
6369
6367
  }
6370
6368
  }
6371
6369
  } = edsTokens.tokens;
@@ -6377,7 +6375,7 @@ const popover = {
6377
6375
  entities: {
6378
6376
  arrow: {
6379
6377
  width: '6px',
6380
- height: spacingSmall$2,
6378
+ height: spacingSmall$3,
6381
6379
  spacings: {
6382
6380
  top: '-5px',
6383
6381
  // 1px less than arrow width, if not the shadow would show between arrow and popover
@@ -6393,14 +6391,14 @@ const popover = {
6393
6391
  }
6394
6392
  },
6395
6393
  spacings: {
6396
- top: spacingMedium$2,
6397
- left: spacingMedium$2,
6398
- right: spacingMedium$2,
6399
- bottom: spacingMedium$2
6394
+ top: spacingMedium$3,
6395
+ left: spacingMedium$3,
6396
+ right: spacingMedium$3,
6397
+ bottom: spacingMedium$3
6400
6398
  },
6401
6399
  border: {
6402
6400
  type: 'border',
6403
- radius: borderRadius$2
6401
+ radius: borderRadius$3
6404
6402
  },
6405
6403
  modes: {
6406
6404
  compact: {}
@@ -6460,12 +6458,12 @@ const Popover$1 = /*#__PURE__*/react.forwardRef(function Popover(_ref5, ref) {
6460
6458
  const [arrowRef, setArrowRef] = react.useState(null);
6461
6459
  const popoverRef = edsUtils.useCombinedRefs(ref, setPopperEl);
6462
6460
  edsUtils.useOutsideClick(popperEl, e => {
6463
- if (open && onClose !== null && anchorEl && !anchorEl.contains(e.target)) {
6461
+ if (open && onClose && anchorEl && !anchorEl.contains(e.target)) {
6464
6462
  onClose();
6465
6463
  }
6466
6464
  });
6467
6465
  edsUtils.useGlobalKeyPress('Escape', () => {
6468
- if (onClose !== null && open) {
6466
+ if (onClose && open) {
6469
6467
  onClose();
6470
6468
  }
6471
6469
  });
@@ -6499,7 +6497,6 @@ const Popover$1 = /*#__PURE__*/react.forwardRef(function Popover(_ref5, ref) {
6499
6497
  ref: popoverRef,
6500
6498
  elevation: "overlay",
6501
6499
  style: styles.popper,
6502
- "data-testid": "popover",
6503
6500
  ...props,
6504
6501
  children: [/*#__PURE__*/jsxRuntime.jsx(ArrowWrapper, {
6505
6502
  ref: setArrowRef,
@@ -6662,7 +6659,7 @@ const {
6662
6659
  circle: {
6663
6660
  minHeight,
6664
6661
  minWidth,
6665
- borderRadius: borderRadius$1
6662
+ borderRadius: borderRadius$2
6666
6663
  }
6667
6664
  }
6668
6665
  } = edsTokens.tokens;
@@ -6682,7 +6679,7 @@ const enabled = {
6682
6679
  width: minWidth,
6683
6680
  border: {
6684
6681
  type: 'border',
6685
- radius: borderRadius$1
6682
+ radius: borderRadius$2
6686
6683
  }
6687
6684
  }
6688
6685
  },
@@ -6906,6 +6903,10 @@ const IndeterminateProgressBar = styled__default["default"].div.withConfig({
6906
6903
  displayName: "LinearProgress__IndeterminateProgressBar",
6907
6904
  componentId: "sc-5orxpi-2"
6908
6905
  })(["width:75%;border-radius:50px;position:absolute;left:0;bottom:0;top:0;transition:transform 0.2s linear;transform-origin:left;background-color:", ";animation:", " 1.5s cubic-bezier(0.165,0.84,0.44,1) 1s infinite;"], primary$2.entities.progress.background, indeterminate$2);
6906
+ const SrOnlyOutput$1 = styled__default["default"].output.withConfig({
6907
+ displayName: "LinearProgress__SrOnlyOutput",
6908
+ componentId: "sc-5orxpi-3"
6909
+ })(["position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0;"]);
6909
6910
  const LinearProgress = /*#__PURE__*/react.forwardRef(function LinearProgress(_ref, ref) {
6910
6911
  let {
6911
6912
  variant = 'indeterminate',
@@ -6915,6 +6916,7 @@ const LinearProgress = /*#__PURE__*/react.forwardRef(function LinearProgress(_re
6915
6916
  const props = { ...rest,
6916
6917
  ref
6917
6918
  };
6919
+ const [srProgress, setSrProgress] = react.useState(0);
6918
6920
  let barStyle;
6919
6921
 
6920
6922
  if (variant === 'determinate') {
@@ -6930,11 +6932,33 @@ const LinearProgress = /*#__PURE__*/react.forwardRef(function LinearProgress(_re
6930
6932
  const transformStyle = {
6931
6933
  transform: barStyle
6932
6934
  };
6933
- return /*#__PURE__*/jsxRuntime.jsx(Track$2, { ...props,
6934
- role: "progressbar",
6935
- children: variant === 'indeterminate' ? /*#__PURE__*/jsxRuntime.jsx(IndeterminateProgressBar, {}) : /*#__PURE__*/jsxRuntime.jsx(ProgressBar, {
6936
- style: transformStyle
6937
- })
6935
+ react.useEffect(() => {
6936
+ if (variant === 'indeterminate') return;
6937
+
6938
+ if (value >= 25 && value < 50) {
6939
+ setSrProgress(25);
6940
+ } else if (value >= 50 && value < 75) {
6941
+ setSrProgress(50);
6942
+ } else if (value >= 75 && value < 100) {
6943
+ setSrProgress(75);
6944
+ } else if (value === 100) {
6945
+ setSrProgress(100);
6946
+ }
6947
+ }, [value, variant]);
6948
+
6949
+ const getProgressFormatted = () => {
6950
+ return "Loading ".concat(srProgress, "%");
6951
+ };
6952
+
6953
+ return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
6954
+ children: [/*#__PURE__*/jsxRuntime.jsx(Track$2, { ...props,
6955
+ role: "progressbar",
6956
+ children: variant === 'indeterminate' ? /*#__PURE__*/jsxRuntime.jsx(IndeterminateProgressBar, {}) : /*#__PURE__*/jsxRuntime.jsx(ProgressBar, {
6957
+ style: transformStyle
6958
+ })
6959
+ }), variant === 'determinate' && /*#__PURE__*/jsxRuntime.jsx(SrOnlyOutput$1, {
6960
+ children: getProgressFormatted()
6961
+ })]
6938
6962
  });
6939
6963
  }); // LinearProgress.displayName = 'eds-linear-progress'
6940
6964
 
@@ -6993,13 +7017,17 @@ const Svg$4 = styled__default["default"].svg.withConfig({
6993
7017
  } = _ref;
6994
7018
  return variant === 'indeterminate' ? styled.css(["animation:", " 1.4s linear infinite;"], indeterminate$1) : styled.css(["transform:rotate(-90deg);"]);
6995
7019
  });
7020
+ const SrOnlyOutput = styled__default["default"].output.withConfig({
7021
+ displayName: "CircularProgress__SrOnlyOutput",
7022
+ componentId: "sc-hib054-1"
7023
+ })(["position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0;"]);
6996
7024
  const TrackCircle = styled__default["default"].circle.withConfig({
6997
7025
  displayName: "CircularProgress__TrackCircle",
6998
- componentId: "sc-hib054-1"
7026
+ componentId: "sc-hib054-2"
6999
7027
  })([""]);
7000
7028
  const ProgressCircle = styled__default["default"].circle.withConfig({
7001
7029
  displayName: "CircularProgress__ProgressCircle",
7002
- componentId: "sc-hib054-2"
7030
+ componentId: "sc-hib054-3"
7003
7031
  })([""]);
7004
7032
 
7005
7033
  const getToken = color => {
@@ -7033,6 +7061,7 @@ const CircularProgress = /*#__PURE__*/react.forwardRef(function CircularProgress
7033
7061
  variant
7034
7062
  };
7035
7063
  const token = getToken(color);
7064
+ const [srProgress, setSrProgress] = react.useState(0);
7036
7065
  const circumference = 2 * Math.PI * ((48 - thickness) / 2);
7037
7066
 
7038
7067
  if (variant === 'determinate') {
@@ -7047,30 +7076,52 @@ const CircularProgress = /*#__PURE__*/react.forwardRef(function CircularProgress
7047
7076
  }
7048
7077
  }
7049
7078
 
7050
- return /*#__PURE__*/jsxRuntime.jsxs(Svg$4, { ...props,
7051
- viewBox: "24 24 48 48",
7052
- role: "progressbar",
7053
- height: size,
7054
- width: size,
7055
- preserveAspectRatio: "xMidYMid meet",
7056
- children: [/*#__PURE__*/jsxRuntime.jsx(TrackCircle, {
7057
- style: trackStyle,
7058
- cx: 48,
7059
- cy: 48,
7060
- r: (48 - thickness) / 2,
7061
- fill: "none",
7062
- strokeWidth: thickness,
7063
- stroke: token.background
7064
- }), /*#__PURE__*/jsxRuntime.jsx(ProgressCircle, {
7065
- style: trackStyle,
7066
- cx: 48,
7067
- cy: 48,
7068
- r: (48 - thickness) / 2,
7069
- fill: "none",
7070
- strokeLinecap: "round",
7071
- strokeWidth: thickness,
7072
- strokeDasharray: variant === 'determinate' ? circumference : 48,
7073
- stroke: token.entities.progress.background
7079
+ react.useEffect(() => {
7080
+ if (variant === 'indeterminate') return;
7081
+
7082
+ if (progress >= 25 && progress < 50) {
7083
+ setSrProgress(25);
7084
+ } else if (progress >= 50 && progress < 75) {
7085
+ setSrProgress(50);
7086
+ } else if (progress >= 75 && progress < 100) {
7087
+ setSrProgress(75);
7088
+ } else if (progress === 100) {
7089
+ setSrProgress(100);
7090
+ }
7091
+ }, [progress, variant]);
7092
+
7093
+ const getProgressFormatted = () => {
7094
+ return "Loading ".concat(srProgress, "%");
7095
+ };
7096
+
7097
+ return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
7098
+ children: [/*#__PURE__*/jsxRuntime.jsxs(Svg$4, { ...props,
7099
+ viewBox: "24 24 48 48",
7100
+ role: "progressbar",
7101
+ height: size,
7102
+ width: size,
7103
+ preserveAspectRatio: "xMidYMid meet",
7104
+ children: [/*#__PURE__*/jsxRuntime.jsx(TrackCircle, {
7105
+ style: trackStyle,
7106
+ cx: 48,
7107
+ cy: 48,
7108
+ r: (48 - thickness) / 2,
7109
+ fill: "none",
7110
+ strokeWidth: thickness,
7111
+ stroke: token.background
7112
+ }), /*#__PURE__*/jsxRuntime.jsx(ProgressCircle, {
7113
+ style: trackStyle,
7114
+ cx: 48,
7115
+ cy: 48,
7116
+ r: (48 - thickness) / 2,
7117
+ fill: "none",
7118
+ strokeLinecap: "round",
7119
+ strokeWidth: thickness,
7120
+ strokeDasharray: variant === 'determinate' ? circumference : 48,
7121
+ stroke: token.entities.progress.background
7122
+ })]
7123
+ }), variant === 'determinate' && /*#__PURE__*/jsxRuntime.jsx(SrOnlyOutput, {
7124
+ children: getProgressFormatted()
7074
7125
  })]
7075
7126
  });
7076
7127
  }); // CircularProgress.displayName = 'eds-circular-progress'
@@ -7257,14 +7308,14 @@ const {
7257
7308
  },
7258
7309
  spacings: {
7259
7310
  comfortable: {
7260
- medium: spacingMedium$1
7311
+ medium: spacingMedium$2
7261
7312
  }
7262
7313
  }
7263
7314
  } = edsTokens.tokens;
7264
7315
  const breadcrumbs = {
7265
7316
  spacings: {
7266
- left: spacingMedium$1,
7267
- right: spacingMedium$1
7317
+ left: spacingMedium$2,
7318
+ right: spacingMedium$2
7268
7319
  },
7269
7320
  typography: {
7270
7321
  color: enabledColor
@@ -7280,7 +7331,7 @@ const breadcrumbs = {
7280
7331
 
7281
7332
  const {
7282
7333
  spacings,
7283
- typography: typography$5,
7334
+ typography: typography$6,
7284
7335
  states: states$1
7285
7336
  } = breadcrumbs;
7286
7337
  const OrderedList$1 = styled__default["default"].ol.withConfig({
@@ -7294,11 +7345,11 @@ const ListItem$1 = styled__default["default"].li.withConfig({
7294
7345
  const Separator = styled__default["default"](Typography).withConfig({
7295
7346
  displayName: "Breadcrumbs__Separator",
7296
7347
  componentId: "sc-12awlbz-2"
7297
- })(["color:", ";", ""], typography$5.color, edsUtils.spacingsTemplate(spacings));
7348
+ })(["color:", ";", ""], typography$6.color, edsUtils.spacingsTemplate(spacings));
7298
7349
  const Collapsed = styled__default["default"](Typography).withConfig({
7299
7350
  displayName: "Breadcrumbs__Collapsed",
7300
7351
  componentId: "sc-12awlbz-3"
7301
- })(["@media (hover:hover) and (pointer:fine){&:hover{text-decoration:underline;color:", ";}}color:", ";text-decoration:none;"], states$1.hover.typography.color, typography$5.color);
7352
+ })(["@media (hover:hover) and (pointer:fine){&:hover{text-decoration:underline;color:", ";}}color:", ";text-decoration:none;"], states$1.hover.typography.color, typography$6.color);
7302
7353
  const Breadcrumbs$1 = /*#__PURE__*/react.forwardRef(function Breadcrumbs(_ref, ref) {
7303
7354
  let {
7304
7355
  children,
@@ -7371,12 +7422,12 @@ const Breadcrumbs$1 = /*#__PURE__*/react.forwardRef(function Breadcrumbs(_ref, r
7371
7422
 
7372
7423
  const {
7373
7424
  states,
7374
- typography: typography$4
7425
+ typography: typography$5
7375
7426
  } = breadcrumbs;
7376
7427
  const StyledTypography = styled__default["default"](Typography).withConfig({
7377
7428
  displayName: "Breadcrumb__StyledTypography",
7378
7429
  componentId: "sc-10nvwte-0"
7379
- })(["@media (hover:hover) and (pointer:fine){&:hover{text-decoration:underline;color:", ";cursor:pointer;}}white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-block;text-decoration:none;color:", ";", ""], states.hover.typography.color, typography$4.color, _ref => {
7430
+ })(["@media (hover:hover) and (pointer:fine){&:hover{text-decoration:underline;color:", ";cursor:pointer;}}white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-block;text-decoration:none;color:", ";", ""], states.hover.typography.color, typography$5.color, _ref => {
7380
7431
  let {
7381
7432
  maxWidth
7382
7433
  } = _ref;
@@ -7516,7 +7567,7 @@ const {
7516
7567
  },
7517
7568
  typography: {
7518
7569
  navigation: {
7519
- menu_title: typography$3
7570
+ menu_title: typography$4
7520
7571
  }
7521
7572
  }
7522
7573
  } = edsTokens.tokens;
@@ -7532,7 +7583,7 @@ const menu = {
7532
7583
  type: 'border',
7533
7584
  radius: '4px'
7534
7585
  },
7535
- typography: { ...typography$3,
7586
+ typography: { ...typography$4,
7536
7587
  color: textColor
7537
7588
  },
7538
7589
  entities: {
@@ -7554,7 +7605,7 @@ const menu = {
7554
7605
  },
7555
7606
  states: {
7556
7607
  active: {
7557
- typography: { ...typography$3,
7608
+ typography: { ...typography$4,
7558
7609
  color: activeTextColor
7559
7610
  },
7560
7611
  background: activeBackground
@@ -7572,7 +7623,7 @@ const menu = {
7572
7623
  background: hoverBackground
7573
7624
  },
7574
7625
  disabled: {
7575
- typography: { ...typography$3,
7626
+ typography: { ...typography$4,
7576
7627
  color: disabledTextColor
7577
7628
  }
7578
7629
  }
@@ -7604,7 +7655,7 @@ const menu = {
7604
7655
  };
7605
7656
 
7606
7657
  const {
7607
- typography: typography$2,
7658
+ typography: typography$3,
7608
7659
  entities: {
7609
7660
  item: {
7610
7661
  states: {
@@ -7628,7 +7679,7 @@ const Item = styled__default["default"].button.attrs(_ref => {
7628
7679
  }).withConfig({
7629
7680
  displayName: "MenuItem__Item",
7630
7681
  componentId: "sc-1g9fpbe-0"
7631
- })(["border:0;background-color:transparent;width:auto;position:relative;z-index:2;", " ", " ", " ", ""], edsUtils.typographyTemplate(typography$2), _ref2 => {
7682
+ })(["border:0;background-color:transparent;width:auto;position:relative;z-index:2;", " ", " ", " ", ""], edsUtils.typographyTemplate(typography$3), _ref2 => {
7632
7683
  let {
7633
7684
  theme
7634
7685
  } = _ref2;
@@ -7648,7 +7699,7 @@ const Content = styled__default["default"].div.withConfig({
7648
7699
  displayName: "MenuItem__Content",
7649
7700
  componentId: "sc-1g9fpbe-1"
7650
7701
  })(["width:auto;display:grid;grid-gap:16px;grid-auto-flow:column;grid-auto-columns:max-content auto max-content;align-items:center;"]);
7651
- const MenuItem = /*#__PURE__*/react.memo( /*#__PURE__*/react.forwardRef(function MenuItem(_ref5, ref) {
7702
+ const MenuItem = /*#__PURE__*/react.forwardRef(function MenuItem(_ref5, ref) {
7652
7703
  let {
7653
7704
  children,
7654
7705
  disabled,
@@ -7695,7 +7746,7 @@ const MenuItem = /*#__PURE__*/react.memo( /*#__PURE__*/react.forwardRef(function
7695
7746
  children: children
7696
7747
  })
7697
7748
  });
7698
- }));
7749
+ });
7699
7750
  MenuItem.displayName = 'MenuItem';
7700
7751
 
7701
7752
  const Header = styled__default["default"].div.attrs(() => ({
@@ -7987,7 +8038,7 @@ const {
7987
8038
  },
7988
8039
  spacings: {
7989
8040
  comfortable: {
7990
- small: spacingSmall$1
8041
+ small: spacingSmall$2
7991
8042
  }
7992
8043
  }
7993
8044
  } = edsTokens.tokens;
@@ -8007,7 +8058,7 @@ const pagination = {
8007
8058
  }
8008
8059
  },
8009
8060
  spacings: {
8010
- left: spacingSmall$1
8061
+ left: spacingSmall$2
8011
8062
  }
8012
8063
  };
8013
8064
 
@@ -8227,20 +8278,20 @@ const Pagination = /*#__PURE__*/react.forwardRef(function Pagination(_ref2, ref)
8227
8278
  });
8228
8279
 
8229
8280
  const {
8230
- colors: colors$1,
8281
+ colors: colors$2,
8231
8282
  spacings: {
8232
8283
  comfortable: {
8233
8284
  small,
8234
8285
  x_small: x_small$2
8235
8286
  }
8236
8287
  },
8237
- typography: typography$1,
8288
+ typography: typography$2,
8238
8289
  shape
8239
8290
  } = edsTokens.tokens;
8240
8291
  const nativeselect = {
8241
- background: colors$1.ui.background__light.rgba,
8242
- typography: { ...typography$1.input.text,
8243
- color: colors$1.text.static_icons__default.rgba
8292
+ background: colors$2.ui.background__light.rgba,
8293
+ typography: { ...typography$2.input.text,
8294
+ color: colors$2.text.static_icons__default.rgba
8244
8295
  },
8245
8296
  entities: {
8246
8297
  input: {
@@ -8255,20 +8306,20 @@ const nativeselect = {
8255
8306
  width: '24px'
8256
8307
  }
8257
8308
  },
8258
- boxShadow: 'inset 0 -1px 0 0 ' + colors$1.text.static_icons__tertiary.rgba,
8309
+ boxShadow: 'inset 0 -1px 0 0 ' + colors$2.text.static_icons__tertiary.rgba,
8259
8310
  states: {
8260
8311
  focus: {
8261
8312
  outline: {
8262
8313
  type: 'outline',
8263
8314
  width: '2px',
8264
- color: colors$1.interactive.primary__resting.rgba,
8315
+ color: colors$2.interactive.primary__resting.rgba,
8265
8316
  style: 'solid',
8266
8317
  offset: '0px'
8267
8318
  }
8268
8319
  },
8269
8320
  disabled: {
8270
8321
  typography: {
8271
- color: colors$1.interactive.disabled__text.rgba
8322
+ color: colors$2.interactive.disabled__text.rgba
8272
8323
  }
8273
8324
  }
8274
8325
  },
@@ -8289,7 +8340,7 @@ const nativeselect = {
8289
8340
  }
8290
8341
  };
8291
8342
 
8292
- const Container$1 = styled__default["default"].div.withConfig({
8343
+ const Container$2 = styled__default["default"].div.withConfig({
8293
8344
  displayName: "NativeSelect__Container",
8294
8345
  componentId: "sc-1c1ogya-0"
8295
8346
  })(["min-width:100px;width:100%;"]);
@@ -8339,7 +8390,7 @@ const NativeSelect = /*#__PURE__*/react.forwardRef(function NativeSelect(_ref2,
8339
8390
  const showLabel = label || meta;
8340
8391
  return /*#__PURE__*/jsxRuntime.jsx(styled.ThemeProvider, {
8341
8392
  theme: token,
8342
- children: /*#__PURE__*/jsxRuntime.jsxs(Container$1, { ...containerProps,
8393
+ children: /*#__PURE__*/jsxRuntime.jsxs(Container$2, { ...containerProps,
8343
8394
  children: [showLabel && /*#__PURE__*/jsxRuntime.jsx(Label$1, { ...labelProps
8344
8395
  }), /*#__PURE__*/jsxRuntime.jsx(StyledSelect, { ...selectProps,
8345
8396
  children: children
@@ -8349,78 +8400,78 @@ const NativeSelect = /*#__PURE__*/react.forwardRef(function NativeSelect(_ref2,
8349
8400
  });
8350
8401
 
8351
8402
  const {
8352
- typography,
8353
- colors,
8403
+ typography: typography$1,
8404
+ colors: colors$1,
8354
8405
  shape: {
8355
- straight,
8406
+ straight: straight$1,
8356
8407
  corners: {
8357
- borderRadius
8408
+ borderRadius: borderRadius$1
8358
8409
  }
8359
8410
  },
8360
8411
  spacings: {
8361
8412
  comfortable: {
8362
- small: spacingSmall,
8363
- medium_small: spacingMediumSmall,
8364
- medium: spacingMedium,
8365
- large: spacingLarge,
8366
- xx_small
8413
+ small: spacingSmall$1,
8414
+ medium_small: spacingMediumSmall$1,
8415
+ medium: spacingMedium$1,
8416
+ large: spacingLarge$1,
8417
+ xx_small: xx_small$1
8367
8418
  }
8368
8419
  },
8369
8420
  elevation: {
8370
- temporary_nav: boxShadow$1
8421
+ temporary_nav: boxShadow$2
8371
8422
  }
8372
8423
  } = edsTokens.tokens;
8373
8424
  const select = {
8374
- background: colors.ui.background__default.rgba,
8375
- boxShadow: boxShadow$1,
8376
- minHeight: straight.minHeight,
8425
+ background: colors$1.ui.background__default.rgba,
8426
+ boxShadow: boxShadow$2,
8427
+ minHeight: straight$1.minHeight,
8377
8428
  spacings: {
8378
- top: spacingMedium,
8379
- right: spacingLarge,
8380
- bottom: spacingMedium,
8381
- left: spacingLarge
8429
+ top: spacingMedium$1,
8430
+ right: spacingLarge$1,
8431
+ bottom: spacingMedium$1,
8432
+ left: spacingLarge$1
8382
8433
  },
8383
- typography: { ...typography.navigation.menu_title,
8384
- color: colors.text.static_icons__default.rgba
8434
+ typography: { ...typography$1.navigation.menu_title,
8435
+ color: colors$1.text.static_icons__default.rgba
8385
8436
  },
8386
8437
  border: {
8387
8438
  type: 'border',
8388
- radius: borderRadius
8439
+ radius: borderRadius$1
8389
8440
  },
8390
8441
  states: {
8391
8442
  hover: {
8392
- background: colors.ui.background__medium.rgba
8443
+ background: colors$1.ui.background__medium.rgba
8393
8444
  },
8394
8445
  active: {
8395
- background: colors.interactive.primary__selected_highlight.rgba
8446
+ background: colors$1.interactive.primary__selected_highlight.rgba
8396
8447
  }
8397
8448
  },
8398
8449
  entities: {
8399
8450
  button: {
8400
8451
  height: '24px',
8401
8452
  spacings: {
8402
- left: spacingSmall,
8403
- right: spacingSmall,
8453
+ left: spacingSmall$1,
8454
+ right: spacingSmall$1,
8404
8455
  top: '6px'
8405
8456
  },
8406
8457
  typography: {
8407
- color: colors.text.static_icons__tertiary.rgba
8458
+ color: colors$1.text.static_icons__tertiary.rgba
8408
8459
  }
8409
8460
  }
8410
8461
  },
8411
8462
  modes: {
8412
8463
  compact: {
8413
8464
  spacings: {
8414
- left: spacingSmall,
8415
- right: spacingSmall,
8416
- top: spacingSmall,
8417
- bottom: spacingSmall
8465
+ left: spacingSmall$1,
8466
+ right: spacingSmall$1,
8467
+ top: spacingSmall$1,
8468
+ bottom: spacingSmall$1
8418
8469
  },
8419
8470
  entities: {
8420
8471
  button: {
8421
8472
  spacings: {
8422
- left: spacingSmall,
8423
- right: spacingSmall,
8473
+ left: spacingSmall$1,
8474
+ right: spacingSmall$1,
8424
8475
  top: '0'
8425
8476
  }
8426
8477
  }
@@ -8428,17 +8479,17 @@ const select = {
8428
8479
  }
8429
8480
  }
8430
8481
  };
8431
- const multiSelect = mergeDeepRight$1(select, {
8482
+ const multiSelect$1 = mergeDeepRight(select, {
8432
8483
  spacings: {
8433
8484
  top: '0',
8434
8485
  bottom: '0',
8435
- left: spacingMediumSmall,
8436
- right: spacingLarge
8486
+ left: spacingMediumSmall$1,
8487
+ right: spacingLarge$1
8437
8488
  },
8438
8489
  modes: {
8439
8490
  compact: {
8440
8491
  spacings: {
8441
- top: xx_small,
8492
+ top: xx_small$1,
8442
8493
  bottom: '0'
8443
8494
  }
8444
8495
  }
@@ -8450,7 +8501,7 @@ const {
8450
8501
  button: buttonToken
8451
8502
  }
8452
8503
  } = select;
8453
- const Container = styled__default["default"].div.withConfig({
8504
+ const Container$1 = styled__default["default"].div.withConfig({
8454
8505
  displayName: "commonStyles__Container",
8455
8506
  componentId: "sc-v98ajk-0"
8456
8507
  })(["position:relative;"]);
@@ -8458,11 +8509,11 @@ const PaddedInput = styled__default["default"](Input$4).withConfig({
8458
8509
  displayName: "commonStyles__PaddedInput",
8459
8510
  componentId: "sc-v98ajk-1"
8460
8511
  })(["padding-right:calc( ", " + ", " + ", " + 0px );"], buttonToken.height, buttonToken.spacings.left, buttonToken.spacings.right);
8461
- const StyledList = styled__default["default"](List$1).withConfig({
8512
+ const StyledList$1 = styled__default["default"](List$1).withConfig({
8462
8513
  displayName: "commonStyles__StyledList",
8463
8514
  componentId: "sc-v98ajk-2"
8464
8515
  })(["background-color:", ";box-shadow:", ";overflow-y:scroll;max-height:300px;padding:0;", " margin-top:4px;position:absolute;right:0;left:0;z-index:50;"], select.background, select.boxShadow, edsUtils.bordersTemplate(select.border));
8465
- const StyledListItem = styled__default["default"](List$1.Item).withConfig({
8516
+ const StyledListItem$1 = styled__default["default"](List$1.Item).withConfig({
8466
8517
  displayName: "commonStyles__StyledListItem",
8467
8518
  componentId: "sc-v98ajk-3"
8468
8519
  })(_ref => {
@@ -8474,7 +8525,7 @@ const StyledListItem = styled__default["default"](List$1.Item).withConfig({
8474
8525
  const backgroundColor = highlighted === 'true' ? theme.states.hover.background : active === 'true' ? theme.states.active.background : theme.background;
8475
8526
  return styled.css(["margin:0;list-style:none;background-color:", ";", ";cursor:", ";"], backgroundColor, edsUtils.typographyTemplate(theme.typography), highlighted === 'true' ? 'pointer' : 'default');
8476
8527
  });
8477
- const StyledButton = styled__default["default"](Button).withConfig({
8528
+ const StyledButton$1 = styled__default["default"](Button).withConfig({
8478
8529
  displayName: "commonStyles__StyledButton",
8479
8530
  componentId: "sc-v98ajk-4"
8480
8531
  })(_ref2 => {
@@ -8492,7 +8543,7 @@ const StyledInputWrapper = styled__default["default"].div.withConfig({
8492
8543
  componentId: "sc-v98ajk-5"
8493
8544
  })(["position:relative;"]);
8494
8545
 
8495
- const PaddedStyledListItem$1 = styled__default["default"](StyledListItem).withConfig({
8546
+ const PaddedStyledListItem$1 = styled__default["default"](StyledListItem$1).withConfig({
8496
8547
  displayName: "SingleSelect__PaddedStyledListItem",
8497
8548
  componentId: "sc-rh1yw2-0"
8498
8549
  })(["", ""], _ref => {
@@ -8501,6 +8552,8 @@ const PaddedStyledListItem$1 = styled__default["default"](StyledListItem).withCo
8501
8552
  } = _ref;
8502
8553
  return edsUtils.spacingsTemplate(theme.spacings);
8503
8554
  });
8555
+ /** @deprecated Use `<Autocomplete />` instead */
8556
+
8504
8557
  const SingleSelect = /*#__PURE__*/react.forwardRef(function SingleSelect(_ref2, ref) {
8505
8558
  let {
8506
8559
  items = [],
@@ -8575,7 +8628,7 @@ const SingleSelect = /*#__PURE__*/react.forwardRef(function SingleSelect(_ref2,
8575
8628
 
8576
8629
  return /*#__PURE__*/jsxRuntime.jsx(styled.ThemeProvider, {
8577
8630
  theme: token,
8578
- children: /*#__PURE__*/jsxRuntime.jsxs(Container, {
8631
+ children: /*#__PURE__*/jsxRuntime.jsxs(Container$1, {
8579
8632
  className: className,
8580
8633
  ref: ref,
8581
8634
  children: [/*#__PURE__*/jsxRuntime.jsx(Label$1, { ...getLabelProps(),
@@ -8590,7 +8643,7 @@ const SingleSelect = /*#__PURE__*/react.forwardRef(function SingleSelect(_ref2,
8590
8643
  onFocus: openSelect,
8591
8644
  onClick: openSelect,
8592
8645
  ...other
8593
- }), Boolean(inputValue) && /*#__PURE__*/jsxRuntime.jsx(StyledButton, {
8646
+ }), Boolean(inputValue) && /*#__PURE__*/jsxRuntime.jsx(StyledButton$1, {
8594
8647
  variant: "ghost_icon",
8595
8648
  disabled: disabled || readOnly,
8596
8649
  "aria-label": 'clear options',
@@ -8603,7 +8656,7 @@ const SingleSelect = /*#__PURE__*/react.forwardRef(function SingleSelect(_ref2,
8603
8656
  data: edsIcons.close,
8604
8657
  size: 16
8605
8658
  })
8606
- }), /*#__PURE__*/jsxRuntime.jsx(StyledButton, {
8659
+ }), /*#__PURE__*/jsxRuntime.jsx(StyledButton$1, {
8607
8660
  variant: "ghost_icon",
8608
8661
  ...getToggleButtonProps({
8609
8662
  disabled: disabled || readOnly
@@ -8614,7 +8667,7 @@ const SingleSelect = /*#__PURE__*/react.forwardRef(function SingleSelect(_ref2,
8614
8667
  data: isOpen ? edsIcons.arrow_drop_up : edsIcons.arrow_drop_down
8615
8668
  })
8616
8669
  })]
8617
- }), /*#__PURE__*/jsxRuntime.jsx(StyledList, { ...getMenuProps(),
8670
+ }), /*#__PURE__*/jsxRuntime.jsx(StyledList$1, { ...getMenuProps(),
8618
8671
  children: isOpen && inputItems.map((item, index) => /*#__PURE__*/jsxRuntime.jsx(PaddedStyledListItem$1, {
8619
8672
  highlighted: highlightedIndex === index ? 'true' : 'false',
8620
8673
  active: selectedItem === item ? 'true' : 'false',
@@ -8857,7 +8910,7 @@ const CheckboxInput = /*#__PURE__*/react.forwardRef(function CheckboxInput(_ref1
8857
8910
  });
8858
8911
  });
8859
8912
 
8860
- const PaddedStyledListItem = styled__default["default"](StyledListItem).withConfig({
8913
+ const PaddedStyledListItem = styled__default["default"](StyledListItem$1).withConfig({
8861
8914
  displayName: "MultiSelect__PaddedStyledListItem",
8862
8915
  componentId: "sc-69ntfg-0"
8863
8916
  })(["display:flex;align-items:center;", ""], _ref => {
@@ -8866,6 +8919,8 @@ const PaddedStyledListItem = styled__default["default"](StyledListItem).withConf
8866
8919
  } = _ref;
8867
8920
  return edsUtils.spacingsTemplate(theme.spacings);
8868
8921
  });
8922
+
8923
+ /** @deprecated Use `<Autocomplete multiple />` instead. */
8869
8924
  const MultiSelect = /*#__PURE__*/react.forwardRef(function MultiSelect(_ref2, ref) {
8870
8925
  let {
8871
8926
  items = [],
@@ -8886,7 +8941,7 @@ const MultiSelect = /*#__PURE__*/react.forwardRef(function MultiSelect(_ref2, re
8886
8941
  } = useEds();
8887
8942
  const token = edsUtils.useToken({
8888
8943
  density
8889
- }, multiSelect);
8944
+ }, multiSelect$1);
8890
8945
  let multipleSelectionProps = {
8891
8946
  initialSelectedItems: initialSelectedItems,
8892
8947
  onSelectedItemsChange: changes => {
@@ -8993,7 +9048,7 @@ const MultiSelect = /*#__PURE__*/react.forwardRef(function MultiSelect(_ref2, re
8993
9048
 
8994
9049
  return /*#__PURE__*/jsxRuntime.jsx(styled.ThemeProvider, {
8995
9050
  theme: token,
8996
- children: /*#__PURE__*/jsxRuntime.jsxs(Container, {
9051
+ children: /*#__PURE__*/jsxRuntime.jsxs(Container$1, {
8997
9052
  className: className,
8998
9053
  ref: ref,
8999
9054
  children: [/*#__PURE__*/jsxRuntime.jsx(Label$1, { ...getLabelProps(),
@@ -9001,7 +9056,8 @@ const MultiSelect = /*#__PURE__*/react.forwardRef(function MultiSelect(_ref2, re
9001
9056
  meta: meta,
9002
9057
  disabled: disabled
9003
9058
  }), /*#__PURE__*/jsxRuntime.jsxs(StyledInputWrapper, { ...getComboboxProps(),
9004
- children: [/*#__PURE__*/jsxRuntime.jsx(PaddedInput, { ...getInputProps(getDropdownProps({
9059
+ children: [/*#__PURE__*/jsxRuntime.jsx(PaddedInput, { ...getInputProps( // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
9060
+ getDropdownProps({
9005
9061
  preventKeyAction: isOpen,
9006
9062
  disabled: disabled
9007
9063
  })),
@@ -9009,7 +9065,7 @@ const MultiSelect = /*#__PURE__*/react.forwardRef(function MultiSelect(_ref2, re
9009
9065
  readOnly: readOnly,
9010
9066
  onFocus: openSelect,
9011
9067
  ...other
9012
- }), Boolean(selectedItems.length || inputValue) && /*#__PURE__*/jsxRuntime.jsx(StyledButton, {
9068
+ }), Boolean(selectedItems.length || inputValue) && /*#__PURE__*/jsxRuntime.jsx(StyledButton$1, {
9013
9069
  variant: "ghost_icon",
9014
9070
  disabled: disabled || readOnly,
9015
9071
  "aria-label": 'clear options',
@@ -9022,7 +9078,7 @@ const MultiSelect = /*#__PURE__*/react.forwardRef(function MultiSelect(_ref2, re
9022
9078
  data: edsIcons.close,
9023
9079
  size: 16
9024
9080
  })
9025
- }), /*#__PURE__*/jsxRuntime.jsx(StyledButton, {
9081
+ }), /*#__PURE__*/jsxRuntime.jsx(StyledButton$1, {
9026
9082
  variant: "ghost_icon",
9027
9083
  ...getToggleButtonProps({
9028
9084
  disabled: disabled || readOnly
@@ -9033,7 +9089,7 @@ const MultiSelect = /*#__PURE__*/react.forwardRef(function MultiSelect(_ref2, re
9033
9089
  data: isOpen ? edsIcons.arrow_drop_up : edsIcons.arrow_drop_down
9034
9090
  })
9035
9091
  })]
9036
- }), /*#__PURE__*/jsxRuntime.jsx(StyledList, { ...getMenuProps(),
9092
+ }), /*#__PURE__*/jsxRuntime.jsx(StyledList$1, { ...getMenuProps(),
9037
9093
  children: isOpen && getFilteredItems(items).map((item, index) => /*#__PURE__*/jsxRuntime.jsxs(PaddedStyledListItem, {
9038
9094
  highlighted: highlightedIndex === index ? 'true' : 'false',
9039
9095
  ...getItemProps({
@@ -9548,7 +9604,7 @@ const {
9548
9604
  },
9549
9605
  clickbounds,
9550
9606
  elevation: {
9551
- raised: boxShadow
9607
+ raised: boxShadow$1
9552
9608
  },
9553
9609
  spacings: {
9554
9610
  comfortable: {
@@ -9607,7 +9663,7 @@ const comfortable = {
9607
9663
  handle: {
9608
9664
  height: '16px',
9609
9665
  width: '16px',
9610
- boxShadow,
9666
+ boxShadow: boxShadow$1,
9611
9667
  background: iconTertiary,
9612
9668
  states: {
9613
9669
  active: {
@@ -9738,7 +9794,615 @@ const Switch = /*#__PURE__*/react.forwardRef(function Switch(_ref3, ref) {
9738
9794
  });
9739
9795
  Switch.displayName = 'Switch';
9740
9796
 
9797
+ const {
9798
+ typography,
9799
+ colors,
9800
+ shape: {
9801
+ straight,
9802
+ corners: {
9803
+ borderRadius
9804
+ }
9805
+ },
9806
+ spacings: {
9807
+ comfortable: {
9808
+ small: spacingSmall,
9809
+ medium_small: spacingMediumSmall,
9810
+ medium: spacingMedium,
9811
+ large: spacingLarge,
9812
+ xx_small
9813
+ }
9814
+ },
9815
+ elevation: {
9816
+ temporary_nav: boxShadow
9817
+ }
9818
+ } = edsTokens.tokens;
9819
+ const selectTokens = {
9820
+ background: colors.ui.background__default.rgba,
9821
+ boxShadow,
9822
+ minHeight: straight.minHeight,
9823
+ spacings: {
9824
+ top: spacingMedium,
9825
+ right: spacingLarge,
9826
+ bottom: spacingMedium,
9827
+ left: spacingLarge
9828
+ },
9829
+ typography: { ...typography.navigation.menu_title,
9830
+ color: colors.text.static_icons__default.rgba
9831
+ },
9832
+ border: {
9833
+ type: 'border',
9834
+ radius: borderRadius
9835
+ },
9836
+ states: {
9837
+ hover: {
9838
+ background: colors.ui.background__medium.rgba
9839
+ },
9840
+ active: {
9841
+ background: colors.interactive.primary__selected_highlight.rgba
9842
+ },
9843
+ disabled: {
9844
+ typography: {
9845
+ color: colors.interactive.disabled__text.rgba
9846
+ }
9847
+ }
9848
+ },
9849
+ entities: {
9850
+ button: {
9851
+ height: '24px',
9852
+ spacings: {
9853
+ left: spacingSmall,
9854
+ right: spacingSmall,
9855
+ top: '6px'
9856
+ }
9857
+ }
9858
+ },
9859
+ modes: {
9860
+ compact: {
9861
+ spacings: {
9862
+ left: spacingSmall,
9863
+ right: spacingSmall,
9864
+ top: spacingSmall,
9865
+ bottom: spacingSmall
9866
+ },
9867
+ entities: {
9868
+ button: {
9869
+ spacings: {
9870
+ left: spacingSmall,
9871
+ right: spacingSmall,
9872
+ top: '0'
9873
+ }
9874
+ }
9875
+ }
9876
+ }
9877
+ }
9878
+ };
9879
+ const multiSelect = mergeDeepRight(selectTokens, {
9880
+ spacings: {
9881
+ top: '0',
9882
+ bottom: '0',
9883
+ left: spacingMediumSmall,
9884
+ right: spacingLarge
9885
+ },
9886
+ modes: {
9887
+ compact: {
9888
+ spacings: {
9889
+ top: xx_small,
9890
+ bottom: '0'
9891
+ }
9892
+ }
9893
+ }
9894
+ });
9895
+
9896
+ const StyledListItem = styled__default["default"](List$1.Item).withConfig({
9897
+ displayName: "Option__StyledListItem",
9898
+ componentId: "sc-1ly11zu-0"
9899
+ })(_ref => {
9900
+ let {
9901
+ theme,
9902
+ highlighted,
9903
+ active,
9904
+ isdisabled
9905
+ } = _ref;
9906
+ const backgroundColor = highlighted === 'true' ? theme.states.hover.background : active === 'true' ? theme.states.active.background : theme.background;
9907
+ return styled.css(["display:flex;align-items:center;margin:0;list-style:none;background-color:", ";user-select:none;cursor:", ";", " ", " ", ""], backgroundColor, highlighted === 'true' ? 'pointer' : 'default', edsUtils.typographyTemplate(theme.typography), edsUtils.spacingsTemplate(theme.spacings), isdisabled === 'true' ? styled.css(["color:", ";"], theme.states.disabled.typography.color) : '');
9908
+ });
9909
+ const AutocompleteOption = /*#__PURE__*/react.forwardRef(function AutocompleteOption(_ref2, ref) {
9910
+ let {
9911
+ value,
9912
+ multiple,
9913
+ isSelected,
9914
+ isDisabled,
9915
+ onClick,
9916
+ 'aria-selected': ariaSelected,
9917
+ ...other
9918
+ } = _ref2;
9919
+ return /*#__PURE__*/jsxRuntime.jsxs(StyledListItem, {
9920
+ ref: ref,
9921
+ isdisabled: isDisabled ? 'true' : 'false',
9922
+ "aria-hidden": isDisabled,
9923
+ active: !multiple && isSelected ? 'true' : 'false',
9924
+ onClick: e => !isDisabled && onClick(e),
9925
+ "aria-selected": multiple ? isSelected : ariaSelected,
9926
+ ...other,
9927
+ children: [multiple && /*#__PURE__*/jsxRuntime.jsx(Checkbox, {
9928
+ disabled: isDisabled,
9929
+ checked: isSelected,
9930
+ value: value,
9931
+ onChange: () => {
9932
+ return null;
9933
+ }
9934
+ }), /*#__PURE__*/jsxRuntime.jsx("span", {
9935
+ children: value
9936
+ })]
9937
+ });
9938
+ });
9939
+
9940
+ const Container = styled__default["default"].div.withConfig({
9941
+ displayName: "Autocomplete__Container",
9942
+ componentId: "sc-yvif0e-0"
9943
+ })(["position:relative;"]);
9944
+ const StyledInput = styled__default["default"](Input$4).withConfig({
9945
+ displayName: "Autocomplete__StyledInput",
9946
+ componentId: "sc-yvif0e-1"
9947
+ })(_ref => {
9948
+ let {
9949
+ theme: {
9950
+ entities: {
9951
+ button
9952
+ }
9953
+ }
9954
+ } = _ref;
9955
+ return styled.css(["padding-right:calc( ", " + ", " + (", " * 2) );"], button.spacings.left, button.spacings.right, button.height);
9956
+ });
9957
+ const StyledList = styled__default["default"](List$1).withConfig({
9958
+ displayName: "Autocomplete__StyledList",
9959
+ componentId: "sc-yvif0e-2"
9960
+ })(_ref2 => {
9961
+ let {
9962
+ theme
9963
+ } = _ref2;
9964
+ return styled.css(["background-color:", ";box-shadow:", ";", " overflow-y:auto;max-height:300px;padding:0;position:absolute;right:0;left:0;z-index:50;"], theme.background, theme.boxShadow, edsUtils.bordersTemplate(theme.border));
9965
+ });
9966
+ const StyledButton = styled__default["default"](Button).withConfig({
9967
+ displayName: "Autocomplete__StyledButton",
9968
+ componentId: "sc-yvif0e-3"
9969
+ })(_ref3 => {
9970
+ let {
9971
+ theme: {
9972
+ entities: {
9973
+ button
9974
+ }
9975
+ }
9976
+ } = _ref3;
9977
+ return styled.css(["position:absolute;height:", ";width:", ";right:", ";top:", ";"], button.height, button.height, button.spacings.right, button.spacings.top);
9978
+ });
9979
+
9980
+ const findIndex = _ref4 => {
9981
+ let {
9982
+ calc,
9983
+ index,
9984
+ optionDisabled,
9985
+ availableItems
9986
+ } = _ref4;
9987
+ const nextItem = availableItems[index];
9988
+
9989
+ if (optionDisabled(nextItem)) {
9990
+ const nextIndex = calc(index);
9991
+ return findIndex({
9992
+ calc,
9993
+ index: nextIndex,
9994
+ availableItems,
9995
+ optionDisabled
9996
+ });
9997
+ }
9998
+
9999
+ return index;
10000
+ };
10001
+
10002
+ const findNextIndex = _ref5 => {
10003
+ let {
10004
+ index,
10005
+ optionDisabled,
10006
+ availableItems
10007
+ } = _ref5;
10008
+ const options = {
10009
+ index,
10010
+ optionDisabled,
10011
+ availableItems,
10012
+ calc: num => num + 1
10013
+ };
10014
+ const nextIndex = findIndex(options);
10015
+
10016
+ if (nextIndex > availableItems.length - 1) {
10017
+ // jump to start of list
10018
+ return findIndex({ ...options,
10019
+ index: 0
10020
+ });
10021
+ }
10022
+
10023
+ return nextIndex;
10024
+ };
10025
+
10026
+ const findPrevIndex = _ref6 => {
10027
+ let {
10028
+ index,
10029
+ optionDisabled,
10030
+ availableItems
10031
+ } = _ref6;
10032
+ const options = {
10033
+ index,
10034
+ optionDisabled,
10035
+ availableItems,
10036
+ calc: num => num - 1
10037
+ };
10038
+ const prevIndex = findIndex(options);
10039
+
10040
+ if (prevIndex < 0) {
10041
+ // jump to end of list
10042
+ return findIndex({ ...options,
10043
+ index: availableItems.length - 1
10044
+ });
10045
+ }
10046
+
10047
+ return prevIndex;
10048
+ };
10049
+
10050
+ function AutocompleteInner(props, ref) {
10051
+ const {
10052
+ options = [],
10053
+ label,
10054
+ meta,
10055
+ className,
10056
+ disabled = false,
10057
+ readOnly = false,
10058
+ onOptionsChange,
10059
+ selectedOptions,
10060
+ multiple,
10061
+ initialSelectedOptions = [],
10062
+ disablePortal,
10063
+ optionDisabled = () => false,
10064
+ optionsFilter,
10065
+ autoWidth,
10066
+ placeholder,
10067
+ optionLabel,
10068
+ ...other
10069
+ } = props;
10070
+ const anchorRef = react.useRef();
10071
+ const [anchorEl, setAnchorEl] = react.useState();
10072
+ const [containerEl, setContainerEl] = react.useState();
10073
+ const isMounted = edsUtils.useIsMounted();
10074
+ const isControlled = Boolean(selectedOptions);
10075
+ const [availableItems, setAvailableItems] = react.useState(options);
10076
+ const disabledItems = react.useMemo(() => options.filter(optionDisabled), [options, optionDisabled]);
10077
+ const {
10078
+ density
10079
+ } = useEds();
10080
+ const token = edsUtils.useToken({
10081
+ density
10082
+ }, multiple ? multiSelect : selectTokens);
10083
+ let placeholderText = placeholder;
10084
+ let multipleSelectionProps = {
10085
+ initialSelectedItems: multiple ? initialSelectedOptions : initialSelectedOptions[0] ? [initialSelectedOptions[0]] : [],
10086
+ onSelectedItemsChange: changes => {
10087
+ if (onOptionsChange) {
10088
+ onOptionsChange(changes);
10089
+ }
10090
+ }
10091
+ };
10092
+
10093
+ if (isControlled) {
10094
+ multipleSelectionProps = { ...multipleSelectionProps,
10095
+ selectedItems: selectedOptions
10096
+ };
10097
+ }
10098
+
10099
+ const {
10100
+ getDropdownProps,
10101
+ addSelectedItem,
10102
+ removeSelectedItem,
10103
+ selectedItems,
10104
+ reset: resetSelection,
10105
+ setSelectedItems
10106
+ } = downshift.useMultipleSelection(multipleSelectionProps);
10107
+ const getLabel = react.useCallback(item => {
10108
+ if (!item) {
10109
+ return '';
10110
+ }
10111
+
10112
+ if (typeof item === 'object') {
10113
+ if (optionLabel) {
10114
+ return optionLabel(item);
10115
+ } else {
10116
+ throw new Error('Missing label. When using objects for options make sure to define the `optionLabel` property');
10117
+ }
10118
+ }
10119
+
10120
+ if (typeof item === 'string') {
10121
+ return item;
10122
+ }
10123
+
10124
+ try {
10125
+ return item === null || item === void 0 ? void 0 : item.toString();
10126
+ } catch (error) {
10127
+ throw new Error('Unable to find label, make sure your are using options as documented');
10128
+ }
10129
+ }, [optionLabel]);
10130
+ let comboBoxProps = {
10131
+ items: availableItems,
10132
+ initialSelectedItem: initialSelectedOptions[0],
10133
+ itemToString: getLabel,
10134
+ onInputValueChange: _ref7 => {
10135
+ let {
10136
+ inputValue
10137
+ } = _ref7;
10138
+ setAvailableItems(options.filter(item => {
10139
+ if (optionsFilter) {
10140
+ return optionsFilter(item, inputValue);
10141
+ }
10142
+
10143
+ return getLabel(item).toLowerCase().includes(inputValue.toLowerCase());
10144
+ }));
10145
+ },
10146
+ onIsOpenChange: _ref8 => {
10147
+ let {
10148
+ selectedItem
10149
+ } = _ref8;
10150
+
10151
+ // Show all options when single select is reopened with a selected item
10152
+ if (availableItems.length === 1 && selectedItem === availableItems[0]) {
10153
+ setAvailableItems(options);
10154
+ }
10155
+ },
10156
+ onStateChange: _ref9 => {
10157
+ let {
10158
+ type,
10159
+ selectedItem
10160
+ } = _ref9;
10161
+
10162
+ switch (type) {
10163
+ case downshift.useCombobox.stateChangeTypes.InputChange:
10164
+ break;
10165
+
10166
+ case downshift.useCombobox.stateChangeTypes.InputKeyDownEnter:
10167
+ case downshift.useCombobox.stateChangeTypes.ItemClick:
10168
+ case downshift.useCombobox.stateChangeTypes.InputBlur:
10169
+ if (selectedItem && !optionDisabled(selectedItem)) {
10170
+ if (multiple) {
10171
+ selectedItems.includes(selectedItem) ? removeSelectedItem(selectedItem) : addSelectedItem(selectedItem);
10172
+ } else {
10173
+ setSelectedItems([selectedItem]);
10174
+ }
10175
+ }
10176
+
10177
+ break;
10178
+ }
10179
+ },
10180
+ stateReducer: (_, actionAndChanges) => {
10181
+ const {
10182
+ changes,
10183
+ type
10184
+ } = actionAndChanges;
10185
+
10186
+ switch (type) {
10187
+ case downshift.useCombobox.stateChangeTypes.InputKeyDownArrowDown:
10188
+ case downshift.useCombobox.stateChangeTypes.InputKeyDownHome:
10189
+ return { ...changes,
10190
+ highlightedIndex: findNextIndex({
10191
+ index: changes.highlightedIndex,
10192
+ availableItems,
10193
+ optionDisabled
10194
+ })
10195
+ };
10196
+
10197
+ case downshift.useCombobox.stateChangeTypes.InputKeyDownArrowUp:
10198
+ case downshift.useCombobox.stateChangeTypes.InputKeyDownEnd:
10199
+ return { ...changes,
10200
+ highlightedIndex: findPrevIndex({
10201
+ index: changes.highlightedIndex,
10202
+ availableItems,
10203
+ optionDisabled
10204
+ })
10205
+ };
10206
+
10207
+ default:
10208
+ return changes;
10209
+ }
10210
+ }
10211
+ };
10212
+
10213
+ if (isControlled && !multiple) {
10214
+ comboBoxProps = { ...comboBoxProps,
10215
+ selectedItem: selectedOptions[0]
10216
+ };
10217
+ }
10218
+
10219
+ if (multiple) {
10220
+ placeholderText = typeof placeholderText !== 'undefined' ? placeholderText : "".concat(selectedItems.length, "/").concat(options.length - disabledItems.length, " selected");
10221
+ comboBoxProps = { ...comboBoxProps,
10222
+ selectedItem: null,
10223
+ stateReducer: (state, actionAndChanges) => {
10224
+ const {
10225
+ changes,
10226
+ type
10227
+ } = actionAndChanges;
10228
+
10229
+ switch (type) {
10230
+ case downshift.useCombobox.stateChangeTypes.InputKeyDownArrowDown:
10231
+ case downshift.useCombobox.stateChangeTypes.InputKeyDownHome:
10232
+ return { ...changes,
10233
+ highlightedIndex: findNextIndex({
10234
+ index: changes.highlightedIndex,
10235
+ availableItems,
10236
+ optionDisabled
10237
+ })
10238
+ };
10239
+
10240
+ case downshift.useCombobox.stateChangeTypes.InputKeyDownArrowUp:
10241
+ case downshift.useCombobox.stateChangeTypes.InputKeyDownEnd:
10242
+ return { ...changes,
10243
+ highlightedIndex: findPrevIndex({
10244
+ index: changes.highlightedIndex,
10245
+ availableItems,
10246
+ optionDisabled
10247
+ })
10248
+ };
10249
+
10250
+ case downshift.useCombobox.stateChangeTypes.InputKeyDownEnter:
10251
+ case downshift.useCombobox.stateChangeTypes.ItemClick:
10252
+ return { ...changes,
10253
+ isOpen: true,
10254
+ // keep menu open after selection.
10255
+ highlightedIndex: state.highlightedIndex,
10256
+ inputValue: '' // don't add the item string as input value at selection.
10257
+
10258
+ };
10259
+
10260
+ case downshift.useCombobox.stateChangeTypes.InputBlur:
10261
+ return { ...changes,
10262
+ inputValue: '' // don't add the item string as input value at selection.
10263
+
10264
+ };
10265
+
10266
+ default:
10267
+ return changes;
10268
+ }
10269
+ }
10270
+ };
10271
+ }
10272
+
10273
+ const {
10274
+ isOpen,
10275
+ getToggleButtonProps,
10276
+ getLabelProps,
10277
+ getMenuProps,
10278
+ getInputProps,
10279
+ getComboboxProps,
10280
+ highlightedIndex,
10281
+ getItemProps,
10282
+ openMenu,
10283
+ inputValue,
10284
+ reset: resetCombobox
10285
+ } = downshift.useCombobox(comboBoxProps);
10286
+ react.useEffect(() => {
10287
+ if (anchorRef.current) {
10288
+ setAnchorEl(anchorRef.current);
10289
+ }
10290
+
10291
+ if (isControlled) {
10292
+ setSelectedItems(selectedOptions);
10293
+ }
10294
+
10295
+ return () => {
10296
+ setAnchorEl(null);
10297
+ setContainerEl(null);
10298
+ };
10299
+ }, [anchorRef, isControlled, isOpen, selectedOptions, setSelectedItems]);
10300
+ const {
10301
+ styles,
10302
+ attributes
10303
+ } = edsUtils.usePopper({
10304
+ anchorEl,
10305
+ popperEl: containerEl,
10306
+ placement: 'bottom-start',
10307
+ offset: 4,
10308
+ autoWidth
10309
+ });
10310
+
10311
+ const openSelect = () => {
10312
+ if (!isOpen && !(disabled || readOnly)) {
10313
+ openMenu();
10314
+ }
10315
+ };
10316
+
10317
+ const clear = () => {
10318
+ resetCombobox();
10319
+ resetSelection();
10320
+ };
10321
+
10322
+ const showClearButton = (selectedItems.length > 0 || inputValue) && !readOnly;
10323
+ const selectedItemsLabels = react.useMemo(() => selectedItems.map(getLabel), [selectedItems, getLabel]);
10324
+
10325
+ const optionsList = /*#__PURE__*/jsxRuntime.jsx(StyledList, { ...getMenuProps({
10326
+ ref: setContainerEl,
10327
+ style: styles.popper,
10328
+ 'aria-multiselectable': multiple ? 'true' : null,
10329
+ ...attributes.popper
10330
+ }, {
10331
+ suppressRefError: true
10332
+ }),
10333
+ children: !isOpen ? null : availableItems.map((item, index) => {
10334
+ const label = getLabel(item);
10335
+ const isDisabled = optionDisabled(item);
10336
+ const isSelected = selectedItemsLabels.includes(label);
10337
+ return /*#__PURE__*/jsxRuntime.jsx(AutocompleteOption, {
10338
+ value: label,
10339
+ multiple: multiple,
10340
+ highlighted: highlightedIndex === index && !isDisabled ? 'true' : 'false',
10341
+ isSelected: isSelected,
10342
+ isDisabled: isDisabled,
10343
+ ...getItemProps({
10344
+ item,
10345
+ index,
10346
+ disabled
10347
+ })
10348
+ }, label);
10349
+ })
10350
+ });
10351
+
10352
+ return /*#__PURE__*/jsxRuntime.jsx(styled.ThemeProvider, {
10353
+ theme: token,
10354
+ children: /*#__PURE__*/jsxRuntime.jsxs(Container, {
10355
+ className: className,
10356
+ ref: ref,
10357
+ children: [/*#__PURE__*/jsxRuntime.jsx(Label$1, { ...getLabelProps(),
10358
+ label: label,
10359
+ meta: meta,
10360
+ disabled: disabled
10361
+ }), /*#__PURE__*/jsxRuntime.jsxs(Container, { ...getComboboxProps(),
10362
+ children: [/*#__PURE__*/jsxRuntime.jsx(StyledInput, { ...getInputProps( // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
10363
+ getDropdownProps({
10364
+ preventKeyAction: multiple ? isOpen : undefined,
10365
+ disabled,
10366
+ ref: anchorRef
10367
+ })),
10368
+ placeholder: placeholderText,
10369
+ readOnly: readOnly,
10370
+ onFocus: openSelect,
10371
+ onClick: openSelect,
10372
+ ...other
10373
+ }), showClearButton && /*#__PURE__*/jsxRuntime.jsx(StyledButton, {
10374
+ variant: "ghost_icon",
10375
+ disabled: disabled || readOnly,
10376
+ "aria-label": 'clear options',
10377
+ title: "clear",
10378
+ onClick: clear,
10379
+ style: {
10380
+ right: 32
10381
+ },
10382
+ children: /*#__PURE__*/jsxRuntime.jsx(Icon$1, {
10383
+ data: edsIcons.close,
10384
+ size: 16
10385
+ })
10386
+ }), /*#__PURE__*/jsxRuntime.jsx(StyledButton, {
10387
+ variant: "ghost_icon",
10388
+ ...getToggleButtonProps({
10389
+ disabled: disabled || readOnly
10390
+ }),
10391
+ "aria-label": 'toggle options',
10392
+ title: "open",
10393
+ children: !readOnly && /*#__PURE__*/jsxRuntime.jsx(Icon$1, {
10394
+ data: isOpen ? edsIcons.arrow_drop_up : edsIcons.arrow_drop_down
10395
+ })
10396
+ })]
10397
+ }), disablePortal ? optionsList : !isMounted ? null : /*#__PURE__*/ReactDom.createPortal(optionsList, document.body)]
10398
+ })
10399
+ });
10400
+ }
10401
+
10402
+ const Autocomplete = /*#__PURE__*/react.forwardRef(AutocompleteInner);
10403
+
9741
10404
  exports.Accordion = Accordion;
10405
+ exports.Autocomplete = Autocomplete;
9742
10406
  exports.Avatar = Avatar;
9743
10407
  exports.Banner = Banner;
9744
10408
  exports.Breadcrumbs = Breadcrumbs;