@equinor/eds-core-react 0.19.0 → 0.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/README.md +18 -19
  2. package/dist/eds-core-react.cjs.js +1005 -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 +34 -9
  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 +15 -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,27 @@ 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 = react.useCallback(() => {
5901
+ if (ariaLabelledbyNative) return ariaLabelledbyNative;
5902
+ if (ariaLabelledby) return ariaLabelledby;
5903
+ return null;
5904
+ }, [ariaLabelledbyNative, ariaLabelledby]);
5925
5905
  return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
5926
5906
  children: isRangeSlider ? /*#__PURE__*/jsxRuntime.jsxs(RangeWrapper, { ...rest,
5927
5907
  ref: ref,
5928
5908
  role: "group",
5929
- "aria-labelledby": ariaLabelledby,
5909
+ "aria-labelledby": getAriaLabelledby(),
5930
5910
  valA: sliderValue[0],
5931
5911
  valB: sliderValue[1],
5932
5912
  max: max,
@@ -5942,6 +5922,10 @@ const Slider = /*#__PURE__*/react.forwardRef(function Slider(_ref10, ref) {
5942
5922
  value: sliderValue[0],
5943
5923
  max: max,
5944
5924
  min: min,
5925
+ "aria-valuemax": max,
5926
+ "aria-valuemin": min,
5927
+ "aria-valuenow": sliderValue[0],
5928
+ "aria-valuetext": getFormattedText(sliderValue[0]).toString(),
5945
5929
  id: inputIdA,
5946
5930
  step: step,
5947
5931
  onChange: event => {
@@ -5964,6 +5948,10 @@ const Slider = /*#__PURE__*/react.forwardRef(function Slider(_ref10, ref) {
5964
5948
  value: sliderValue[1],
5965
5949
  min: min,
5966
5950
  max: max,
5951
+ "aria-valuemax": max,
5952
+ "aria-valuemin": min,
5953
+ "aria-valuenow": sliderValue[1],
5954
+ "aria-valuetext": getFormattedText(sliderValue[1]).toString(),
5967
5955
  id: inputIdB,
5968
5956
  step: step,
5969
5957
  ref: maxRange,
@@ -5991,13 +5979,17 @@ const Slider = /*#__PURE__*/react.forwardRef(function Slider(_ref10, ref) {
5991
5979
  value: sliderValue[0],
5992
5980
  min: min,
5993
5981
  max: max,
5982
+ "aria-valuemax": max,
5983
+ "aria-valuemin": min,
5984
+ "aria-valuenow": sliderValue[0],
5985
+ "aria-valuetext": getFormattedText(sliderValue[0]).toString(),
5994
5986
  step: step,
5995
5987
  id: inputId,
5996
5988
  onChange: event => {
5997
5989
  onValueChange(event);
5998
5990
  },
5999
5991
  disabled: disabled,
6000
- "aria-labelledby": ariaLabelledby,
5992
+ "aria-labelledby": getAriaLabelledby(),
6001
5993
  onMouseUp: event => handleCommitedValue(event),
6002
5994
  onKeyUp: event => handleKeyUp(event)
6003
5995
  }), /*#__PURE__*/jsxRuntime.jsx(Output, {
@@ -6034,12 +6026,12 @@ const {
6034
6026
  spacings: {
6035
6027
  comfortable: {
6036
6028
  x_large: spacingXlarge,
6037
- small: spacingSmall$3
6029
+ small: spacingSmall$4
6038
6030
  }
6039
6031
  },
6040
6032
  shape: {
6041
6033
  corners: {
6042
- borderRadius: borderRadius$3
6034
+ borderRadius: borderRadius$4
6043
6035
  }
6044
6036
  }
6045
6037
  } = edsTokens.tokens;
@@ -6050,7 +6042,7 @@ const tooltip = {
6050
6042
  background: background$3,
6051
6043
  border: {
6052
6044
  type: 'border',
6053
- radius: borderRadius$3
6045
+ radius: borderRadius$4
6054
6046
  },
6055
6047
  entities: {
6056
6048
  tooltip: {
@@ -6058,7 +6050,7 @@ const tooltip = {
6058
6050
  },
6059
6051
  arrow: {
6060
6052
  width: '6px',
6061
- height: spacingSmall$3,
6053
+ height: spacingSmall$4,
6062
6054
  spacings: {
6063
6055
  bottom: '-6px',
6064
6056
  top: '-6px',
@@ -6068,10 +6060,10 @@ const tooltip = {
6068
6060
  }
6069
6061
  },
6070
6062
  spacings: {
6071
- left: spacingSmall$3,
6072
- right: spacingSmall$3,
6073
- top: spacingSmall$3,
6074
- bottom: spacingSmall$3
6063
+ left: spacingSmall$4,
6064
+ right: spacingSmall$4,
6065
+ top: spacingSmall$4,
6066
+ bottom: spacingSmall$4
6075
6067
  }
6076
6068
  };
6077
6069
 
@@ -6210,7 +6202,7 @@ const SnackbarAction = /*#__PURE__*/react.forwardRef(function SnackbarAction(_re
6210
6202
  const {
6211
6203
  typography: {
6212
6204
  ui: {
6213
- snackbar: typography$6
6205
+ snackbar: typography$7
6214
6206
  }
6215
6207
  },
6216
6208
  colors: {
@@ -6232,7 +6224,7 @@ const {
6232
6224
  },
6233
6225
  spacings: {
6234
6226
  comfortable: {
6235
- medium: spacingMedium$3,
6227
+ medium: spacingMedium$4,
6236
6228
  x_large: spacingXLarge
6237
6229
  }
6238
6230
  },
@@ -6268,12 +6260,12 @@ const snackbar = {
6268
6260
  }
6269
6261
  },
6270
6262
  spacings: {
6271
- left: spacingMedium$3,
6272
- bottom: spacingMedium$3,
6273
- right: spacingMedium$3,
6274
- top: spacingMedium$3
6263
+ left: spacingMedium$4,
6264
+ bottom: spacingMedium$4,
6265
+ right: spacingMedium$4,
6266
+ top: spacingMedium$4
6275
6267
  },
6276
- typography: { ...typography$6,
6268
+ typography: { ...typography$7,
6277
6269
  color
6278
6270
  },
6279
6271
  modes: {
@@ -6359,13 +6351,13 @@ const {
6359
6351
  },
6360
6352
  spacings: {
6361
6353
  comfortable: {
6362
- medium: spacingMedium$2,
6363
- small: spacingSmall$2
6354
+ medium: spacingMedium$3,
6355
+ small: spacingSmall$3
6364
6356
  }
6365
6357
  },
6366
6358
  shape: {
6367
6359
  corners: {
6368
- borderRadius: borderRadius$2
6360
+ borderRadius: borderRadius$3
6369
6361
  }
6370
6362
  }
6371
6363
  } = edsTokens.tokens;
@@ -6377,7 +6369,7 @@ const popover = {
6377
6369
  entities: {
6378
6370
  arrow: {
6379
6371
  width: '6px',
6380
- height: spacingSmall$2,
6372
+ height: spacingSmall$3,
6381
6373
  spacings: {
6382
6374
  top: '-5px',
6383
6375
  // 1px less than arrow width, if not the shadow would show between arrow and popover
@@ -6393,14 +6385,14 @@ const popover = {
6393
6385
  }
6394
6386
  },
6395
6387
  spacings: {
6396
- top: spacingMedium$2,
6397
- left: spacingMedium$2,
6398
- right: spacingMedium$2,
6399
- bottom: spacingMedium$2
6388
+ top: spacingMedium$3,
6389
+ left: spacingMedium$3,
6390
+ right: spacingMedium$3,
6391
+ bottom: spacingMedium$3
6400
6392
  },
6401
6393
  border: {
6402
6394
  type: 'border',
6403
- radius: borderRadius$2
6395
+ radius: borderRadius$3
6404
6396
  },
6405
6397
  modes: {
6406
6398
  compact: {}
@@ -6460,12 +6452,12 @@ const Popover$1 = /*#__PURE__*/react.forwardRef(function Popover(_ref5, ref) {
6460
6452
  const [arrowRef, setArrowRef] = react.useState(null);
6461
6453
  const popoverRef = edsUtils.useCombinedRefs(ref, setPopperEl);
6462
6454
  edsUtils.useOutsideClick(popperEl, e => {
6463
- if (open && onClose !== null && anchorEl && !anchorEl.contains(e.target)) {
6455
+ if (open && onClose && anchorEl && !anchorEl.contains(e.target)) {
6464
6456
  onClose();
6465
6457
  }
6466
6458
  });
6467
6459
  edsUtils.useGlobalKeyPress('Escape', () => {
6468
- if (onClose !== null && open) {
6460
+ if (onClose && open) {
6469
6461
  onClose();
6470
6462
  }
6471
6463
  });
@@ -6499,7 +6491,6 @@ const Popover$1 = /*#__PURE__*/react.forwardRef(function Popover(_ref5, ref) {
6499
6491
  ref: popoverRef,
6500
6492
  elevation: "overlay",
6501
6493
  style: styles.popper,
6502
- "data-testid": "popover",
6503
6494
  ...props,
6504
6495
  children: [/*#__PURE__*/jsxRuntime.jsx(ArrowWrapper, {
6505
6496
  ref: setArrowRef,
@@ -6662,7 +6653,7 @@ const {
6662
6653
  circle: {
6663
6654
  minHeight,
6664
6655
  minWidth,
6665
- borderRadius: borderRadius$1
6656
+ borderRadius: borderRadius$2
6666
6657
  }
6667
6658
  }
6668
6659
  } = edsTokens.tokens;
@@ -6682,7 +6673,7 @@ const enabled = {
6682
6673
  width: minWidth,
6683
6674
  border: {
6684
6675
  type: 'border',
6685
- radius: borderRadius$1
6676
+ radius: borderRadius$2
6686
6677
  }
6687
6678
  }
6688
6679
  },
@@ -6906,6 +6897,10 @@ const IndeterminateProgressBar = styled__default["default"].div.withConfig({
6906
6897
  displayName: "LinearProgress__IndeterminateProgressBar",
6907
6898
  componentId: "sc-5orxpi-2"
6908
6899
  })(["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);
6900
+ const SrOnlyOutput$1 = styled__default["default"].output.withConfig({
6901
+ displayName: "LinearProgress__SrOnlyOutput",
6902
+ componentId: "sc-5orxpi-3"
6903
+ })(["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
6904
  const LinearProgress = /*#__PURE__*/react.forwardRef(function LinearProgress(_ref, ref) {
6910
6905
  let {
6911
6906
  variant = 'indeterminate',
@@ -6915,6 +6910,7 @@ const LinearProgress = /*#__PURE__*/react.forwardRef(function LinearProgress(_re
6915
6910
  const props = { ...rest,
6916
6911
  ref
6917
6912
  };
6913
+ const [srProgress, setSrProgress] = react.useState(0);
6918
6914
  let barStyle;
6919
6915
 
6920
6916
  if (variant === 'determinate') {
@@ -6930,11 +6926,33 @@ const LinearProgress = /*#__PURE__*/react.forwardRef(function LinearProgress(_re
6930
6926
  const transformStyle = {
6931
6927
  transform: barStyle
6932
6928
  };
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
- })
6929
+ react.useEffect(() => {
6930
+ if (variant === 'indeterminate') return;
6931
+
6932
+ if (value >= 25 && value < 50) {
6933
+ setSrProgress(25);
6934
+ } else if (value >= 50 && value < 75) {
6935
+ setSrProgress(50);
6936
+ } else if (value >= 75 && value < 100) {
6937
+ setSrProgress(75);
6938
+ } else if (value === 100) {
6939
+ setSrProgress(100);
6940
+ }
6941
+ }, [value, variant]);
6942
+
6943
+ const getProgressFormatted = () => {
6944
+ return "Loading ".concat(srProgress, "%");
6945
+ };
6946
+
6947
+ return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
6948
+ children: [/*#__PURE__*/jsxRuntime.jsx(Track$2, { ...props,
6949
+ role: "progressbar",
6950
+ children: variant === 'indeterminate' ? /*#__PURE__*/jsxRuntime.jsx(IndeterminateProgressBar, {}) : /*#__PURE__*/jsxRuntime.jsx(ProgressBar, {
6951
+ style: transformStyle
6952
+ })
6953
+ }), variant === 'determinate' && /*#__PURE__*/jsxRuntime.jsx(SrOnlyOutput$1, {
6954
+ children: getProgressFormatted()
6955
+ })]
6938
6956
  });
6939
6957
  }); // LinearProgress.displayName = 'eds-linear-progress'
6940
6958
 
@@ -6993,13 +7011,17 @@ const Svg$4 = styled__default["default"].svg.withConfig({
6993
7011
  } = _ref;
6994
7012
  return variant === 'indeterminate' ? styled.css(["animation:", " 1.4s linear infinite;"], indeterminate$1) : styled.css(["transform:rotate(-90deg);"]);
6995
7013
  });
7014
+ const SrOnlyOutput = styled__default["default"].output.withConfig({
7015
+ displayName: "CircularProgress__SrOnlyOutput",
7016
+ componentId: "sc-hib054-1"
7017
+ })(["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
7018
  const TrackCircle = styled__default["default"].circle.withConfig({
6997
7019
  displayName: "CircularProgress__TrackCircle",
6998
- componentId: "sc-hib054-1"
7020
+ componentId: "sc-hib054-2"
6999
7021
  })([""]);
7000
7022
  const ProgressCircle = styled__default["default"].circle.withConfig({
7001
7023
  displayName: "CircularProgress__ProgressCircle",
7002
- componentId: "sc-hib054-2"
7024
+ componentId: "sc-hib054-3"
7003
7025
  })([""]);
7004
7026
 
7005
7027
  const getToken = color => {
@@ -7033,6 +7055,7 @@ const CircularProgress = /*#__PURE__*/react.forwardRef(function CircularProgress
7033
7055
  variant
7034
7056
  };
7035
7057
  const token = getToken(color);
7058
+ const [srProgress, setSrProgress] = react.useState(0);
7036
7059
  const circumference = 2 * Math.PI * ((48 - thickness) / 2);
7037
7060
 
7038
7061
  if (variant === 'determinate') {
@@ -7047,30 +7070,52 @@ const CircularProgress = /*#__PURE__*/react.forwardRef(function CircularProgress
7047
7070
  }
7048
7071
  }
7049
7072
 
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
7073
+ react.useEffect(() => {
7074
+ if (variant === 'indeterminate') return;
7075
+
7076
+ if (progress >= 25 && progress < 50) {
7077
+ setSrProgress(25);
7078
+ } else if (progress >= 50 && progress < 75) {
7079
+ setSrProgress(50);
7080
+ } else if (progress >= 75 && progress < 100) {
7081
+ setSrProgress(75);
7082
+ } else if (progress === 100) {
7083
+ setSrProgress(100);
7084
+ }
7085
+ }, [progress, variant]);
7086
+
7087
+ const getProgressFormatted = () => {
7088
+ return "Loading ".concat(srProgress, "%");
7089
+ };
7090
+
7091
+ return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
7092
+ children: [/*#__PURE__*/jsxRuntime.jsxs(Svg$4, { ...props,
7093
+ viewBox: "24 24 48 48",
7094
+ role: "progressbar",
7095
+ height: size,
7096
+ width: size,
7097
+ preserveAspectRatio: "xMidYMid meet",
7098
+ children: [/*#__PURE__*/jsxRuntime.jsx(TrackCircle, {
7099
+ style: trackStyle,
7100
+ cx: 48,
7101
+ cy: 48,
7102
+ r: (48 - thickness) / 2,
7103
+ fill: "none",
7104
+ strokeWidth: thickness,
7105
+ stroke: token.background
7106
+ }), /*#__PURE__*/jsxRuntime.jsx(ProgressCircle, {
7107
+ style: trackStyle,
7108
+ cx: 48,
7109
+ cy: 48,
7110
+ r: (48 - thickness) / 2,
7111
+ fill: "none",
7112
+ strokeLinecap: "round",
7113
+ strokeWidth: thickness,
7114
+ strokeDasharray: variant === 'determinate' ? circumference : 48,
7115
+ stroke: token.entities.progress.background
7116
+ })]
7117
+ }), variant === 'determinate' && /*#__PURE__*/jsxRuntime.jsx(SrOnlyOutput, {
7118
+ children: getProgressFormatted()
7074
7119
  })]
7075
7120
  });
7076
7121
  }); // CircularProgress.displayName = 'eds-circular-progress'
@@ -7257,14 +7302,14 @@ const {
7257
7302
  },
7258
7303
  spacings: {
7259
7304
  comfortable: {
7260
- medium: spacingMedium$1
7305
+ medium: spacingMedium$2
7261
7306
  }
7262
7307
  }
7263
7308
  } = edsTokens.tokens;
7264
7309
  const breadcrumbs = {
7265
7310
  spacings: {
7266
- left: spacingMedium$1,
7267
- right: spacingMedium$1
7311
+ left: spacingMedium$2,
7312
+ right: spacingMedium$2
7268
7313
  },
7269
7314
  typography: {
7270
7315
  color: enabledColor
@@ -7280,7 +7325,7 @@ const breadcrumbs = {
7280
7325
 
7281
7326
  const {
7282
7327
  spacings,
7283
- typography: typography$5,
7328
+ typography: typography$6,
7284
7329
  states: states$1
7285
7330
  } = breadcrumbs;
7286
7331
  const OrderedList$1 = styled__default["default"].ol.withConfig({
@@ -7294,11 +7339,11 @@ const ListItem$1 = styled__default["default"].li.withConfig({
7294
7339
  const Separator = styled__default["default"](Typography).withConfig({
7295
7340
  displayName: "Breadcrumbs__Separator",
7296
7341
  componentId: "sc-12awlbz-2"
7297
- })(["color:", ";", ""], typography$5.color, edsUtils.spacingsTemplate(spacings));
7342
+ })(["color:", ";", ""], typography$6.color, edsUtils.spacingsTemplate(spacings));
7298
7343
  const Collapsed = styled__default["default"](Typography).withConfig({
7299
7344
  displayName: "Breadcrumbs__Collapsed",
7300
7345
  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);
7346
+ })(["@media (hover:hover) and (pointer:fine){&:hover{text-decoration:underline;color:", ";}}color:", ";text-decoration:none;"], states$1.hover.typography.color, typography$6.color);
7302
7347
  const Breadcrumbs$1 = /*#__PURE__*/react.forwardRef(function Breadcrumbs(_ref, ref) {
7303
7348
  let {
7304
7349
  children,
@@ -7371,12 +7416,12 @@ const Breadcrumbs$1 = /*#__PURE__*/react.forwardRef(function Breadcrumbs(_ref, r
7371
7416
 
7372
7417
  const {
7373
7418
  states,
7374
- typography: typography$4
7419
+ typography: typography$5
7375
7420
  } = breadcrumbs;
7376
7421
  const StyledTypography = styled__default["default"](Typography).withConfig({
7377
7422
  displayName: "Breadcrumb__StyledTypography",
7378
7423
  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 => {
7424
+ })(["@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
7425
  let {
7381
7426
  maxWidth
7382
7427
  } = _ref;
@@ -7516,7 +7561,7 @@ const {
7516
7561
  },
7517
7562
  typography: {
7518
7563
  navigation: {
7519
- menu_title: typography$3
7564
+ menu_title: typography$4
7520
7565
  }
7521
7566
  }
7522
7567
  } = edsTokens.tokens;
@@ -7532,7 +7577,7 @@ const menu = {
7532
7577
  type: 'border',
7533
7578
  radius: '4px'
7534
7579
  },
7535
- typography: { ...typography$3,
7580
+ typography: { ...typography$4,
7536
7581
  color: textColor
7537
7582
  },
7538
7583
  entities: {
@@ -7554,7 +7599,7 @@ const menu = {
7554
7599
  },
7555
7600
  states: {
7556
7601
  active: {
7557
- typography: { ...typography$3,
7602
+ typography: { ...typography$4,
7558
7603
  color: activeTextColor
7559
7604
  },
7560
7605
  background: activeBackground
@@ -7572,7 +7617,7 @@ const menu = {
7572
7617
  background: hoverBackground
7573
7618
  },
7574
7619
  disabled: {
7575
- typography: { ...typography$3,
7620
+ typography: { ...typography$4,
7576
7621
  color: disabledTextColor
7577
7622
  }
7578
7623
  }
@@ -7604,7 +7649,7 @@ const menu = {
7604
7649
  };
7605
7650
 
7606
7651
  const {
7607
- typography: typography$2,
7652
+ typography: typography$3,
7608
7653
  entities: {
7609
7654
  item: {
7610
7655
  states: {
@@ -7628,7 +7673,7 @@ const Item = styled__default["default"].button.attrs(_ref => {
7628
7673
  }).withConfig({
7629
7674
  displayName: "MenuItem__Item",
7630
7675
  componentId: "sc-1g9fpbe-0"
7631
- })(["border:0;background-color:transparent;width:auto;position:relative;z-index:2;", " ", " ", " ", ""], edsUtils.typographyTemplate(typography$2), _ref2 => {
7676
+ })(["border:0;background-color:transparent;width:auto;position:relative;z-index:2;", " ", " ", " ", ""], edsUtils.typographyTemplate(typography$3), _ref2 => {
7632
7677
  let {
7633
7678
  theme
7634
7679
  } = _ref2;
@@ -7648,7 +7693,7 @@ const Content = styled__default["default"].div.withConfig({
7648
7693
  displayName: "MenuItem__Content",
7649
7694
  componentId: "sc-1g9fpbe-1"
7650
7695
  })(["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) {
7696
+ const MenuItem = /*#__PURE__*/react.forwardRef(function MenuItem(_ref5, ref) {
7652
7697
  let {
7653
7698
  children,
7654
7699
  disabled,
@@ -7695,7 +7740,7 @@ const MenuItem = /*#__PURE__*/react.memo( /*#__PURE__*/react.forwardRef(function
7695
7740
  children: children
7696
7741
  })
7697
7742
  });
7698
- }));
7743
+ });
7699
7744
  MenuItem.displayName = 'MenuItem';
7700
7745
 
7701
7746
  const Header = styled__default["default"].div.attrs(() => ({
@@ -7987,7 +8032,7 @@ const {
7987
8032
  },
7988
8033
  spacings: {
7989
8034
  comfortable: {
7990
- small: spacingSmall$1
8035
+ small: spacingSmall$2
7991
8036
  }
7992
8037
  }
7993
8038
  } = edsTokens.tokens;
@@ -8007,7 +8052,7 @@ const pagination = {
8007
8052
  }
8008
8053
  },
8009
8054
  spacings: {
8010
- left: spacingSmall$1
8055
+ left: spacingSmall$2
8011
8056
  }
8012
8057
  };
8013
8058
 
@@ -8227,20 +8272,20 @@ const Pagination = /*#__PURE__*/react.forwardRef(function Pagination(_ref2, ref)
8227
8272
  });
8228
8273
 
8229
8274
  const {
8230
- colors: colors$1,
8275
+ colors: colors$2,
8231
8276
  spacings: {
8232
8277
  comfortable: {
8233
8278
  small,
8234
8279
  x_small: x_small$2
8235
8280
  }
8236
8281
  },
8237
- typography: typography$1,
8282
+ typography: typography$2,
8238
8283
  shape
8239
8284
  } = edsTokens.tokens;
8240
8285
  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
8286
+ background: colors$2.ui.background__light.rgba,
8287
+ typography: { ...typography$2.input.text,
8288
+ color: colors$2.text.static_icons__default.rgba
8244
8289
  },
8245
8290
  entities: {
8246
8291
  input: {
@@ -8255,20 +8300,20 @@ const nativeselect = {
8255
8300
  width: '24px'
8256
8301
  }
8257
8302
  },
8258
- boxShadow: 'inset 0 -1px 0 0 ' + colors$1.text.static_icons__tertiary.rgba,
8303
+ boxShadow: 'inset 0 -1px 0 0 ' + colors$2.text.static_icons__tertiary.rgba,
8259
8304
  states: {
8260
8305
  focus: {
8261
8306
  outline: {
8262
8307
  type: 'outline',
8263
8308
  width: '2px',
8264
- color: colors$1.interactive.primary__resting.rgba,
8309
+ color: colors$2.interactive.primary__resting.rgba,
8265
8310
  style: 'solid',
8266
8311
  offset: '0px'
8267
8312
  }
8268
8313
  },
8269
8314
  disabled: {
8270
8315
  typography: {
8271
- color: colors$1.interactive.disabled__text.rgba
8316
+ color: colors$2.interactive.disabled__text.rgba
8272
8317
  }
8273
8318
  }
8274
8319
  },
@@ -8289,7 +8334,7 @@ const nativeselect = {
8289
8334
  }
8290
8335
  };
8291
8336
 
8292
- const Container$1 = styled__default["default"].div.withConfig({
8337
+ const Container$2 = styled__default["default"].div.withConfig({
8293
8338
  displayName: "NativeSelect__Container",
8294
8339
  componentId: "sc-1c1ogya-0"
8295
8340
  })(["min-width:100px;width:100%;"]);
@@ -8339,7 +8384,7 @@ const NativeSelect = /*#__PURE__*/react.forwardRef(function NativeSelect(_ref2,
8339
8384
  const showLabel = label || meta;
8340
8385
  return /*#__PURE__*/jsxRuntime.jsx(styled.ThemeProvider, {
8341
8386
  theme: token,
8342
- children: /*#__PURE__*/jsxRuntime.jsxs(Container$1, { ...containerProps,
8387
+ children: /*#__PURE__*/jsxRuntime.jsxs(Container$2, { ...containerProps,
8343
8388
  children: [showLabel && /*#__PURE__*/jsxRuntime.jsx(Label$1, { ...labelProps
8344
8389
  }), /*#__PURE__*/jsxRuntime.jsx(StyledSelect, { ...selectProps,
8345
8390
  children: children
@@ -8349,78 +8394,78 @@ const NativeSelect = /*#__PURE__*/react.forwardRef(function NativeSelect(_ref2,
8349
8394
  });
8350
8395
 
8351
8396
  const {
8352
- typography,
8353
- colors,
8397
+ typography: typography$1,
8398
+ colors: colors$1,
8354
8399
  shape: {
8355
- straight,
8400
+ straight: straight$1,
8356
8401
  corners: {
8357
- borderRadius
8402
+ borderRadius: borderRadius$1
8358
8403
  }
8359
8404
  },
8360
8405
  spacings: {
8361
8406
  comfortable: {
8362
- small: spacingSmall,
8363
- medium_small: spacingMediumSmall,
8364
- medium: spacingMedium,
8365
- large: spacingLarge,
8366
- xx_small
8407
+ small: spacingSmall$1,
8408
+ medium_small: spacingMediumSmall$1,
8409
+ medium: spacingMedium$1,
8410
+ large: spacingLarge$1,
8411
+ xx_small: xx_small$1
8367
8412
  }
8368
8413
  },
8369
8414
  elevation: {
8370
- temporary_nav: boxShadow$1
8415
+ temporary_nav: boxShadow$2
8371
8416
  }
8372
8417
  } = edsTokens.tokens;
8373
8418
  const select = {
8374
- background: colors.ui.background__default.rgba,
8375
- boxShadow: boxShadow$1,
8376
- minHeight: straight.minHeight,
8419
+ background: colors$1.ui.background__default.rgba,
8420
+ boxShadow: boxShadow$2,
8421
+ minHeight: straight$1.minHeight,
8377
8422
  spacings: {
8378
- top: spacingMedium,
8379
- right: spacingLarge,
8380
- bottom: spacingMedium,
8381
- left: spacingLarge
8423
+ top: spacingMedium$1,
8424
+ right: spacingLarge$1,
8425
+ bottom: spacingMedium$1,
8426
+ left: spacingLarge$1
8382
8427
  },
8383
- typography: { ...typography.navigation.menu_title,
8384
- color: colors.text.static_icons__default.rgba
8428
+ typography: { ...typography$1.navigation.menu_title,
8429
+ color: colors$1.text.static_icons__default.rgba
8385
8430
  },
8386
8431
  border: {
8387
8432
  type: 'border',
8388
- radius: borderRadius
8433
+ radius: borderRadius$1
8389
8434
  },
8390
8435
  states: {
8391
8436
  hover: {
8392
- background: colors.ui.background__medium.rgba
8437
+ background: colors$1.ui.background__medium.rgba
8393
8438
  },
8394
8439
  active: {
8395
- background: colors.interactive.primary__selected_highlight.rgba
8440
+ background: colors$1.interactive.primary__selected_highlight.rgba
8396
8441
  }
8397
8442
  },
8398
8443
  entities: {
8399
8444
  button: {
8400
8445
  height: '24px',
8401
8446
  spacings: {
8402
- left: spacingSmall,
8403
- right: spacingSmall,
8447
+ left: spacingSmall$1,
8448
+ right: spacingSmall$1,
8404
8449
  top: '6px'
8405
8450
  },
8406
8451
  typography: {
8407
- color: colors.text.static_icons__tertiary.rgba
8452
+ color: colors$1.text.static_icons__tertiary.rgba
8408
8453
  }
8409
8454
  }
8410
8455
  },
8411
8456
  modes: {
8412
8457
  compact: {
8413
8458
  spacings: {
8414
- left: spacingSmall,
8415
- right: spacingSmall,
8416
- top: spacingSmall,
8417
- bottom: spacingSmall
8459
+ left: spacingSmall$1,
8460
+ right: spacingSmall$1,
8461
+ top: spacingSmall$1,
8462
+ bottom: spacingSmall$1
8418
8463
  },
8419
8464
  entities: {
8420
8465
  button: {
8421
8466
  spacings: {
8422
- left: spacingSmall,
8423
- right: spacingSmall,
8467
+ left: spacingSmall$1,
8468
+ right: spacingSmall$1,
8424
8469
  top: '0'
8425
8470
  }
8426
8471
  }
@@ -8428,17 +8473,17 @@ const select = {
8428
8473
  }
8429
8474
  }
8430
8475
  };
8431
- const multiSelect = mergeDeepRight$1(select, {
8476
+ const multiSelect$1 = mergeDeepRight(select, {
8432
8477
  spacings: {
8433
8478
  top: '0',
8434
8479
  bottom: '0',
8435
- left: spacingMediumSmall,
8436
- right: spacingLarge
8480
+ left: spacingMediumSmall$1,
8481
+ right: spacingLarge$1
8437
8482
  },
8438
8483
  modes: {
8439
8484
  compact: {
8440
8485
  spacings: {
8441
- top: xx_small,
8486
+ top: xx_small$1,
8442
8487
  bottom: '0'
8443
8488
  }
8444
8489
  }
@@ -8450,7 +8495,7 @@ const {
8450
8495
  button: buttonToken
8451
8496
  }
8452
8497
  } = select;
8453
- const Container = styled__default["default"].div.withConfig({
8498
+ const Container$1 = styled__default["default"].div.withConfig({
8454
8499
  displayName: "commonStyles__Container",
8455
8500
  componentId: "sc-v98ajk-0"
8456
8501
  })(["position:relative;"]);
@@ -8458,11 +8503,11 @@ const PaddedInput = styled__default["default"](Input$4).withConfig({
8458
8503
  displayName: "commonStyles__PaddedInput",
8459
8504
  componentId: "sc-v98ajk-1"
8460
8505
  })(["padding-right:calc( ", " + ", " + ", " + 0px );"], buttonToken.height, buttonToken.spacings.left, buttonToken.spacings.right);
8461
- const StyledList = styled__default["default"](List$1).withConfig({
8506
+ const StyledList$1 = styled__default["default"](List$1).withConfig({
8462
8507
  displayName: "commonStyles__StyledList",
8463
8508
  componentId: "sc-v98ajk-2"
8464
8509
  })(["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({
8510
+ const StyledListItem$1 = styled__default["default"](List$1.Item).withConfig({
8466
8511
  displayName: "commonStyles__StyledListItem",
8467
8512
  componentId: "sc-v98ajk-3"
8468
8513
  })(_ref => {
@@ -8474,7 +8519,7 @@ const StyledListItem = styled__default["default"](List$1.Item).withConfig({
8474
8519
  const backgroundColor = highlighted === 'true' ? theme.states.hover.background : active === 'true' ? theme.states.active.background : theme.background;
8475
8520
  return styled.css(["margin:0;list-style:none;background-color:", ";", ";cursor:", ";"], backgroundColor, edsUtils.typographyTemplate(theme.typography), highlighted === 'true' ? 'pointer' : 'default');
8476
8521
  });
8477
- const StyledButton = styled__default["default"](Button).withConfig({
8522
+ const StyledButton$1 = styled__default["default"](Button).withConfig({
8478
8523
  displayName: "commonStyles__StyledButton",
8479
8524
  componentId: "sc-v98ajk-4"
8480
8525
  })(_ref2 => {
@@ -8492,7 +8537,7 @@ const StyledInputWrapper = styled__default["default"].div.withConfig({
8492
8537
  componentId: "sc-v98ajk-5"
8493
8538
  })(["position:relative;"]);
8494
8539
 
8495
- const PaddedStyledListItem$1 = styled__default["default"](StyledListItem).withConfig({
8540
+ const PaddedStyledListItem$1 = styled__default["default"](StyledListItem$1).withConfig({
8496
8541
  displayName: "SingleSelect__PaddedStyledListItem",
8497
8542
  componentId: "sc-rh1yw2-0"
8498
8543
  })(["", ""], _ref => {
@@ -8501,6 +8546,8 @@ const PaddedStyledListItem$1 = styled__default["default"](StyledListItem).withCo
8501
8546
  } = _ref;
8502
8547
  return edsUtils.spacingsTemplate(theme.spacings);
8503
8548
  });
8549
+ /** @deprecated Use `<Autocomplete />` instead */
8550
+
8504
8551
  const SingleSelect = /*#__PURE__*/react.forwardRef(function SingleSelect(_ref2, ref) {
8505
8552
  let {
8506
8553
  items = [],
@@ -8575,7 +8622,7 @@ const SingleSelect = /*#__PURE__*/react.forwardRef(function SingleSelect(_ref2,
8575
8622
 
8576
8623
  return /*#__PURE__*/jsxRuntime.jsx(styled.ThemeProvider, {
8577
8624
  theme: token,
8578
- children: /*#__PURE__*/jsxRuntime.jsxs(Container, {
8625
+ children: /*#__PURE__*/jsxRuntime.jsxs(Container$1, {
8579
8626
  className: className,
8580
8627
  ref: ref,
8581
8628
  children: [/*#__PURE__*/jsxRuntime.jsx(Label$1, { ...getLabelProps(),
@@ -8590,7 +8637,7 @@ const SingleSelect = /*#__PURE__*/react.forwardRef(function SingleSelect(_ref2,
8590
8637
  onFocus: openSelect,
8591
8638
  onClick: openSelect,
8592
8639
  ...other
8593
- }), Boolean(inputValue) && /*#__PURE__*/jsxRuntime.jsx(StyledButton, {
8640
+ }), Boolean(inputValue) && /*#__PURE__*/jsxRuntime.jsx(StyledButton$1, {
8594
8641
  variant: "ghost_icon",
8595
8642
  disabled: disabled || readOnly,
8596
8643
  "aria-label": 'clear options',
@@ -8603,7 +8650,7 @@ const SingleSelect = /*#__PURE__*/react.forwardRef(function SingleSelect(_ref2,
8603
8650
  data: edsIcons.close,
8604
8651
  size: 16
8605
8652
  })
8606
- }), /*#__PURE__*/jsxRuntime.jsx(StyledButton, {
8653
+ }), /*#__PURE__*/jsxRuntime.jsx(StyledButton$1, {
8607
8654
  variant: "ghost_icon",
8608
8655
  ...getToggleButtonProps({
8609
8656
  disabled: disabled || readOnly
@@ -8614,7 +8661,7 @@ const SingleSelect = /*#__PURE__*/react.forwardRef(function SingleSelect(_ref2,
8614
8661
  data: isOpen ? edsIcons.arrow_drop_up : edsIcons.arrow_drop_down
8615
8662
  })
8616
8663
  })]
8617
- }), /*#__PURE__*/jsxRuntime.jsx(StyledList, { ...getMenuProps(),
8664
+ }), /*#__PURE__*/jsxRuntime.jsx(StyledList$1, { ...getMenuProps(),
8618
8665
  children: isOpen && inputItems.map((item, index) => /*#__PURE__*/jsxRuntime.jsx(PaddedStyledListItem$1, {
8619
8666
  highlighted: highlightedIndex === index ? 'true' : 'false',
8620
8667
  active: selectedItem === item ? 'true' : 'false',
@@ -8857,7 +8904,7 @@ const CheckboxInput = /*#__PURE__*/react.forwardRef(function CheckboxInput(_ref1
8857
8904
  });
8858
8905
  });
8859
8906
 
8860
- const PaddedStyledListItem = styled__default["default"](StyledListItem).withConfig({
8907
+ const PaddedStyledListItem = styled__default["default"](StyledListItem$1).withConfig({
8861
8908
  displayName: "MultiSelect__PaddedStyledListItem",
8862
8909
  componentId: "sc-69ntfg-0"
8863
8910
  })(["display:flex;align-items:center;", ""], _ref => {
@@ -8866,6 +8913,8 @@ const PaddedStyledListItem = styled__default["default"](StyledListItem).withConf
8866
8913
  } = _ref;
8867
8914
  return edsUtils.spacingsTemplate(theme.spacings);
8868
8915
  });
8916
+
8917
+ /** @deprecated Use `<Autocomplete multiple />` instead. */
8869
8918
  const MultiSelect = /*#__PURE__*/react.forwardRef(function MultiSelect(_ref2, ref) {
8870
8919
  let {
8871
8920
  items = [],
@@ -8886,7 +8935,7 @@ const MultiSelect = /*#__PURE__*/react.forwardRef(function MultiSelect(_ref2, re
8886
8935
  } = useEds();
8887
8936
  const token = edsUtils.useToken({
8888
8937
  density
8889
- }, multiSelect);
8938
+ }, multiSelect$1);
8890
8939
  let multipleSelectionProps = {
8891
8940
  initialSelectedItems: initialSelectedItems,
8892
8941
  onSelectedItemsChange: changes => {
@@ -8993,7 +9042,7 @@ const MultiSelect = /*#__PURE__*/react.forwardRef(function MultiSelect(_ref2, re
8993
9042
 
8994
9043
  return /*#__PURE__*/jsxRuntime.jsx(styled.ThemeProvider, {
8995
9044
  theme: token,
8996
- children: /*#__PURE__*/jsxRuntime.jsxs(Container, {
9045
+ children: /*#__PURE__*/jsxRuntime.jsxs(Container$1, {
8997
9046
  className: className,
8998
9047
  ref: ref,
8999
9048
  children: [/*#__PURE__*/jsxRuntime.jsx(Label$1, { ...getLabelProps(),
@@ -9001,7 +9050,8 @@ const MultiSelect = /*#__PURE__*/react.forwardRef(function MultiSelect(_ref2, re
9001
9050
  meta: meta,
9002
9051
  disabled: disabled
9003
9052
  }), /*#__PURE__*/jsxRuntime.jsxs(StyledInputWrapper, { ...getComboboxProps(),
9004
- children: [/*#__PURE__*/jsxRuntime.jsx(PaddedInput, { ...getInputProps(getDropdownProps({
9053
+ children: [/*#__PURE__*/jsxRuntime.jsx(PaddedInput, { ...getInputProps( // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
9054
+ getDropdownProps({
9005
9055
  preventKeyAction: isOpen,
9006
9056
  disabled: disabled
9007
9057
  })),
@@ -9009,7 +9059,7 @@ const MultiSelect = /*#__PURE__*/react.forwardRef(function MultiSelect(_ref2, re
9009
9059
  readOnly: readOnly,
9010
9060
  onFocus: openSelect,
9011
9061
  ...other
9012
- }), Boolean(selectedItems.length || inputValue) && /*#__PURE__*/jsxRuntime.jsx(StyledButton, {
9062
+ }), Boolean(selectedItems.length || inputValue) && /*#__PURE__*/jsxRuntime.jsx(StyledButton$1, {
9013
9063
  variant: "ghost_icon",
9014
9064
  disabled: disabled || readOnly,
9015
9065
  "aria-label": 'clear options',
@@ -9022,7 +9072,7 @@ const MultiSelect = /*#__PURE__*/react.forwardRef(function MultiSelect(_ref2, re
9022
9072
  data: edsIcons.close,
9023
9073
  size: 16
9024
9074
  })
9025
- }), /*#__PURE__*/jsxRuntime.jsx(StyledButton, {
9075
+ }), /*#__PURE__*/jsxRuntime.jsx(StyledButton$1, {
9026
9076
  variant: "ghost_icon",
9027
9077
  ...getToggleButtonProps({
9028
9078
  disabled: disabled || readOnly
@@ -9033,7 +9083,7 @@ const MultiSelect = /*#__PURE__*/react.forwardRef(function MultiSelect(_ref2, re
9033
9083
  data: isOpen ? edsIcons.arrow_drop_up : edsIcons.arrow_drop_down
9034
9084
  })
9035
9085
  })]
9036
- }), /*#__PURE__*/jsxRuntime.jsx(StyledList, { ...getMenuProps(),
9086
+ }), /*#__PURE__*/jsxRuntime.jsx(StyledList$1, { ...getMenuProps(),
9037
9087
  children: isOpen && getFilteredItems(items).map((item, index) => /*#__PURE__*/jsxRuntime.jsxs(PaddedStyledListItem, {
9038
9088
  highlighted: highlightedIndex === index ? 'true' : 'false',
9039
9089
  ...getItemProps({
@@ -9548,7 +9598,7 @@ const {
9548
9598
  },
9549
9599
  clickbounds,
9550
9600
  elevation: {
9551
- raised: boxShadow
9601
+ raised: boxShadow$1
9552
9602
  },
9553
9603
  spacings: {
9554
9604
  comfortable: {
@@ -9607,7 +9657,7 @@ const comfortable = {
9607
9657
  handle: {
9608
9658
  height: '16px',
9609
9659
  width: '16px',
9610
- boxShadow,
9660
+ boxShadow: boxShadow$1,
9611
9661
  background: iconTertiary,
9612
9662
  states: {
9613
9663
  active: {
@@ -9738,7 +9788,615 @@ const Switch = /*#__PURE__*/react.forwardRef(function Switch(_ref3, ref) {
9738
9788
  });
9739
9789
  Switch.displayName = 'Switch';
9740
9790
 
9791
+ const {
9792
+ typography,
9793
+ colors,
9794
+ shape: {
9795
+ straight,
9796
+ corners: {
9797
+ borderRadius
9798
+ }
9799
+ },
9800
+ spacings: {
9801
+ comfortable: {
9802
+ small: spacingSmall,
9803
+ medium_small: spacingMediumSmall,
9804
+ medium: spacingMedium,
9805
+ large: spacingLarge,
9806
+ xx_small
9807
+ }
9808
+ },
9809
+ elevation: {
9810
+ temporary_nav: boxShadow
9811
+ }
9812
+ } = edsTokens.tokens;
9813
+ const selectTokens = {
9814
+ background: colors.ui.background__default.rgba,
9815
+ boxShadow,
9816
+ minHeight: straight.minHeight,
9817
+ spacings: {
9818
+ top: spacingMedium,
9819
+ right: spacingLarge,
9820
+ bottom: spacingMedium,
9821
+ left: spacingLarge
9822
+ },
9823
+ typography: { ...typography.navigation.menu_title,
9824
+ color: colors.text.static_icons__default.rgba
9825
+ },
9826
+ border: {
9827
+ type: 'border',
9828
+ radius: borderRadius
9829
+ },
9830
+ states: {
9831
+ hover: {
9832
+ background: colors.ui.background__medium.rgba
9833
+ },
9834
+ active: {
9835
+ background: colors.interactive.primary__selected_highlight.rgba
9836
+ },
9837
+ disabled: {
9838
+ typography: {
9839
+ color: colors.interactive.disabled__text.rgba
9840
+ }
9841
+ }
9842
+ },
9843
+ entities: {
9844
+ button: {
9845
+ height: '24px',
9846
+ spacings: {
9847
+ left: spacingSmall,
9848
+ right: spacingSmall,
9849
+ top: '6px'
9850
+ }
9851
+ }
9852
+ },
9853
+ modes: {
9854
+ compact: {
9855
+ spacings: {
9856
+ left: spacingSmall,
9857
+ right: spacingSmall,
9858
+ top: spacingSmall,
9859
+ bottom: spacingSmall
9860
+ },
9861
+ entities: {
9862
+ button: {
9863
+ spacings: {
9864
+ left: spacingSmall,
9865
+ right: spacingSmall,
9866
+ top: '0'
9867
+ }
9868
+ }
9869
+ }
9870
+ }
9871
+ }
9872
+ };
9873
+ const multiSelect = mergeDeepRight(selectTokens, {
9874
+ spacings: {
9875
+ top: '0',
9876
+ bottom: '0',
9877
+ left: spacingMediumSmall,
9878
+ right: spacingLarge
9879
+ },
9880
+ modes: {
9881
+ compact: {
9882
+ spacings: {
9883
+ top: xx_small,
9884
+ bottom: '0'
9885
+ }
9886
+ }
9887
+ }
9888
+ });
9889
+
9890
+ const StyledListItem = styled__default["default"](List$1.Item).withConfig({
9891
+ displayName: "Option__StyledListItem",
9892
+ componentId: "sc-1ly11zu-0"
9893
+ })(_ref => {
9894
+ let {
9895
+ theme,
9896
+ highlighted,
9897
+ active,
9898
+ isdisabled
9899
+ } = _ref;
9900
+ const backgroundColor = highlighted === 'true' ? theme.states.hover.background : active === 'true' ? theme.states.active.background : theme.background;
9901
+ 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) : '');
9902
+ });
9903
+ const AutocompleteOption = /*#__PURE__*/react.forwardRef(function AutocompleteOption(_ref2, ref) {
9904
+ let {
9905
+ value,
9906
+ multiple,
9907
+ isSelected,
9908
+ isDisabled,
9909
+ onClick,
9910
+ 'aria-selected': ariaSelected,
9911
+ ...other
9912
+ } = _ref2;
9913
+ return /*#__PURE__*/jsxRuntime.jsxs(StyledListItem, {
9914
+ ref: ref,
9915
+ isdisabled: isDisabled ? 'true' : 'false',
9916
+ "aria-hidden": isDisabled,
9917
+ active: !multiple && isSelected ? 'true' : 'false',
9918
+ onClick: e => !isDisabled && onClick(e),
9919
+ "aria-selected": multiple ? isSelected : ariaSelected,
9920
+ ...other,
9921
+ children: [multiple && /*#__PURE__*/jsxRuntime.jsx(Checkbox, {
9922
+ disabled: isDisabled,
9923
+ checked: isSelected,
9924
+ value: value,
9925
+ onChange: () => {
9926
+ return null;
9927
+ }
9928
+ }), /*#__PURE__*/jsxRuntime.jsx("span", {
9929
+ children: value
9930
+ })]
9931
+ });
9932
+ });
9933
+
9934
+ const Container = styled__default["default"].div.withConfig({
9935
+ displayName: "Autocomplete__Container",
9936
+ componentId: "sc-yvif0e-0"
9937
+ })(["position:relative;"]);
9938
+ const StyledInput = styled__default["default"](Input$4).withConfig({
9939
+ displayName: "Autocomplete__StyledInput",
9940
+ componentId: "sc-yvif0e-1"
9941
+ })(_ref => {
9942
+ let {
9943
+ theme: {
9944
+ entities: {
9945
+ button
9946
+ }
9947
+ }
9948
+ } = _ref;
9949
+ return styled.css(["padding-right:calc( ", " + ", " + (", " * 2) );"], button.spacings.left, button.spacings.right, button.height);
9950
+ });
9951
+ const StyledList = styled__default["default"](List$1).withConfig({
9952
+ displayName: "Autocomplete__StyledList",
9953
+ componentId: "sc-yvif0e-2"
9954
+ })(_ref2 => {
9955
+ let {
9956
+ theme
9957
+ } = _ref2;
9958
+ 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));
9959
+ });
9960
+ const StyledButton = styled__default["default"](Button).withConfig({
9961
+ displayName: "Autocomplete__StyledButton",
9962
+ componentId: "sc-yvif0e-3"
9963
+ })(_ref3 => {
9964
+ let {
9965
+ theme: {
9966
+ entities: {
9967
+ button
9968
+ }
9969
+ }
9970
+ } = _ref3;
9971
+ return styled.css(["position:absolute;height:", ";width:", ";right:", ";top:", ";"], button.height, button.height, button.spacings.right, button.spacings.top);
9972
+ });
9973
+
9974
+ const findIndex = _ref4 => {
9975
+ let {
9976
+ calc,
9977
+ index,
9978
+ optionDisabled,
9979
+ availableItems
9980
+ } = _ref4;
9981
+ const nextItem = availableItems[index];
9982
+
9983
+ if (optionDisabled(nextItem)) {
9984
+ const nextIndex = calc(index);
9985
+ return findIndex({
9986
+ calc,
9987
+ index: nextIndex,
9988
+ availableItems,
9989
+ optionDisabled
9990
+ });
9991
+ }
9992
+
9993
+ return index;
9994
+ };
9995
+
9996
+ const findNextIndex = _ref5 => {
9997
+ let {
9998
+ index,
9999
+ optionDisabled,
10000
+ availableItems
10001
+ } = _ref5;
10002
+ const options = {
10003
+ index,
10004
+ optionDisabled,
10005
+ availableItems,
10006
+ calc: num => num + 1
10007
+ };
10008
+ const nextIndex = findIndex(options);
10009
+
10010
+ if (nextIndex > availableItems.length - 1) {
10011
+ // jump to start of list
10012
+ return findIndex({ ...options,
10013
+ index: 0
10014
+ });
10015
+ }
10016
+
10017
+ return nextIndex;
10018
+ };
10019
+
10020
+ const findPrevIndex = _ref6 => {
10021
+ let {
10022
+ index,
10023
+ optionDisabled,
10024
+ availableItems
10025
+ } = _ref6;
10026
+ const options = {
10027
+ index,
10028
+ optionDisabled,
10029
+ availableItems,
10030
+ calc: num => num - 1
10031
+ };
10032
+ const prevIndex = findIndex(options);
10033
+
10034
+ if (prevIndex < 0) {
10035
+ // jump to end of list
10036
+ return findIndex({ ...options,
10037
+ index: availableItems.length - 1
10038
+ });
10039
+ }
10040
+
10041
+ return prevIndex;
10042
+ };
10043
+
10044
+ function AutocompleteInner(props, ref) {
10045
+ const {
10046
+ options = [],
10047
+ label,
10048
+ meta,
10049
+ className,
10050
+ disabled = false,
10051
+ readOnly = false,
10052
+ onOptionsChange,
10053
+ selectedOptions,
10054
+ multiple,
10055
+ initialSelectedOptions = [],
10056
+ disablePortal,
10057
+ optionDisabled = () => false,
10058
+ optionsFilter,
10059
+ autoWidth,
10060
+ placeholder,
10061
+ optionLabel,
10062
+ ...other
10063
+ } = props;
10064
+ const anchorRef = react.useRef();
10065
+ const [anchorEl, setAnchorEl] = react.useState();
10066
+ const [containerEl, setContainerEl] = react.useState();
10067
+ const isMounted = edsUtils.useIsMounted();
10068
+ const isControlled = Boolean(selectedOptions);
10069
+ const [availableItems, setAvailableItems] = react.useState(options);
10070
+ const disabledItems = react.useMemo(() => options.filter(optionDisabled), [options, optionDisabled]);
10071
+ const {
10072
+ density
10073
+ } = useEds();
10074
+ const token = edsUtils.useToken({
10075
+ density
10076
+ }, multiple ? multiSelect : selectTokens);
10077
+ let placeholderText = placeholder;
10078
+ let multipleSelectionProps = {
10079
+ initialSelectedItems: multiple ? initialSelectedOptions : initialSelectedOptions[0] ? [initialSelectedOptions[0]] : [],
10080
+ onSelectedItemsChange: changes => {
10081
+ if (onOptionsChange) {
10082
+ onOptionsChange(changes);
10083
+ }
10084
+ }
10085
+ };
10086
+
10087
+ if (isControlled) {
10088
+ multipleSelectionProps = { ...multipleSelectionProps,
10089
+ selectedItems: selectedOptions
10090
+ };
10091
+ }
10092
+
10093
+ const {
10094
+ getDropdownProps,
10095
+ addSelectedItem,
10096
+ removeSelectedItem,
10097
+ selectedItems,
10098
+ reset: resetSelection,
10099
+ setSelectedItems
10100
+ } = downshift.useMultipleSelection(multipleSelectionProps);
10101
+ const getLabel = react.useCallback(item => {
10102
+ if (!item) {
10103
+ return '';
10104
+ }
10105
+
10106
+ if (typeof item === 'object') {
10107
+ if (optionLabel) {
10108
+ return optionLabel(item);
10109
+ } else {
10110
+ throw new Error('Missing label. When using objects for options make sure to define the `optionLabel` property');
10111
+ }
10112
+ }
10113
+
10114
+ if (typeof item === 'string') {
10115
+ return item;
10116
+ }
10117
+
10118
+ try {
10119
+ return item === null || item === void 0 ? void 0 : item.toString();
10120
+ } catch (error) {
10121
+ throw new Error('Unable to find label, make sure your are using options as documented');
10122
+ }
10123
+ }, [optionLabel]);
10124
+ let comboBoxProps = {
10125
+ items: availableItems,
10126
+ initialSelectedItem: initialSelectedOptions[0],
10127
+ itemToString: getLabel,
10128
+ onInputValueChange: _ref7 => {
10129
+ let {
10130
+ inputValue
10131
+ } = _ref7;
10132
+ setAvailableItems(options.filter(item => {
10133
+ if (optionsFilter) {
10134
+ return optionsFilter(item, inputValue);
10135
+ }
10136
+
10137
+ return getLabel(item).toLowerCase().includes(inputValue.toLowerCase());
10138
+ }));
10139
+ },
10140
+ onIsOpenChange: _ref8 => {
10141
+ let {
10142
+ selectedItem
10143
+ } = _ref8;
10144
+
10145
+ // Show all options when single select is reopened with a selected item
10146
+ if (availableItems.length === 1 && selectedItem === availableItems[0]) {
10147
+ setAvailableItems(options);
10148
+ }
10149
+ },
10150
+ onStateChange: _ref9 => {
10151
+ let {
10152
+ type,
10153
+ selectedItem
10154
+ } = _ref9;
10155
+
10156
+ switch (type) {
10157
+ case downshift.useCombobox.stateChangeTypes.InputChange:
10158
+ break;
10159
+
10160
+ case downshift.useCombobox.stateChangeTypes.InputKeyDownEnter:
10161
+ case downshift.useCombobox.stateChangeTypes.ItemClick:
10162
+ case downshift.useCombobox.stateChangeTypes.InputBlur:
10163
+ if (selectedItem && !optionDisabled(selectedItem)) {
10164
+ if (multiple) {
10165
+ selectedItems.includes(selectedItem) ? removeSelectedItem(selectedItem) : addSelectedItem(selectedItem);
10166
+ } else {
10167
+ setSelectedItems([selectedItem]);
10168
+ }
10169
+ }
10170
+
10171
+ break;
10172
+ }
10173
+ },
10174
+ stateReducer: (_, actionAndChanges) => {
10175
+ const {
10176
+ changes,
10177
+ type
10178
+ } = actionAndChanges;
10179
+
10180
+ switch (type) {
10181
+ case downshift.useCombobox.stateChangeTypes.InputKeyDownArrowDown:
10182
+ case downshift.useCombobox.stateChangeTypes.InputKeyDownHome:
10183
+ return { ...changes,
10184
+ highlightedIndex: findNextIndex({
10185
+ index: changes.highlightedIndex,
10186
+ availableItems,
10187
+ optionDisabled
10188
+ })
10189
+ };
10190
+
10191
+ case downshift.useCombobox.stateChangeTypes.InputKeyDownArrowUp:
10192
+ case downshift.useCombobox.stateChangeTypes.InputKeyDownEnd:
10193
+ return { ...changes,
10194
+ highlightedIndex: findPrevIndex({
10195
+ index: changes.highlightedIndex,
10196
+ availableItems,
10197
+ optionDisabled
10198
+ })
10199
+ };
10200
+
10201
+ default:
10202
+ return changes;
10203
+ }
10204
+ }
10205
+ };
10206
+
10207
+ if (isControlled && !multiple) {
10208
+ comboBoxProps = { ...comboBoxProps,
10209
+ selectedItem: selectedOptions[0]
10210
+ };
10211
+ }
10212
+
10213
+ if (multiple) {
10214
+ placeholderText = typeof placeholderText !== 'undefined' ? placeholderText : "".concat(selectedItems.length, "/").concat(options.length - disabledItems.length, " selected");
10215
+ comboBoxProps = { ...comboBoxProps,
10216
+ selectedItem: null,
10217
+ stateReducer: (state, actionAndChanges) => {
10218
+ const {
10219
+ changes,
10220
+ type
10221
+ } = actionAndChanges;
10222
+
10223
+ switch (type) {
10224
+ case downshift.useCombobox.stateChangeTypes.InputKeyDownArrowDown:
10225
+ case downshift.useCombobox.stateChangeTypes.InputKeyDownHome:
10226
+ return { ...changes,
10227
+ highlightedIndex: findNextIndex({
10228
+ index: changes.highlightedIndex,
10229
+ availableItems,
10230
+ optionDisabled
10231
+ })
10232
+ };
10233
+
10234
+ case downshift.useCombobox.stateChangeTypes.InputKeyDownArrowUp:
10235
+ case downshift.useCombobox.stateChangeTypes.InputKeyDownEnd:
10236
+ return { ...changes,
10237
+ highlightedIndex: findPrevIndex({
10238
+ index: changes.highlightedIndex,
10239
+ availableItems,
10240
+ optionDisabled
10241
+ })
10242
+ };
10243
+
10244
+ case downshift.useCombobox.stateChangeTypes.InputKeyDownEnter:
10245
+ case downshift.useCombobox.stateChangeTypes.ItemClick:
10246
+ return { ...changes,
10247
+ isOpen: true,
10248
+ // keep menu open after selection.
10249
+ highlightedIndex: state.highlightedIndex,
10250
+ inputValue: '' // don't add the item string as input value at selection.
10251
+
10252
+ };
10253
+
10254
+ case downshift.useCombobox.stateChangeTypes.InputBlur:
10255
+ return { ...changes,
10256
+ inputValue: '' // don't add the item string as input value at selection.
10257
+
10258
+ };
10259
+
10260
+ default:
10261
+ return changes;
10262
+ }
10263
+ }
10264
+ };
10265
+ }
10266
+
10267
+ const {
10268
+ isOpen,
10269
+ getToggleButtonProps,
10270
+ getLabelProps,
10271
+ getMenuProps,
10272
+ getInputProps,
10273
+ getComboboxProps,
10274
+ highlightedIndex,
10275
+ getItemProps,
10276
+ openMenu,
10277
+ inputValue,
10278
+ reset: resetCombobox
10279
+ } = downshift.useCombobox(comboBoxProps);
10280
+ react.useEffect(() => {
10281
+ if (anchorRef.current) {
10282
+ setAnchorEl(anchorRef.current);
10283
+ }
10284
+
10285
+ if (isControlled) {
10286
+ setSelectedItems(selectedOptions);
10287
+ }
10288
+
10289
+ return () => {
10290
+ setAnchorEl(null);
10291
+ setContainerEl(null);
10292
+ };
10293
+ }, [anchorRef, isControlled, isOpen, selectedOptions, setSelectedItems]);
10294
+ const {
10295
+ styles,
10296
+ attributes
10297
+ } = edsUtils.usePopper({
10298
+ anchorEl,
10299
+ popperEl: containerEl,
10300
+ placement: 'bottom-start',
10301
+ offset: 4,
10302
+ autoWidth
10303
+ });
10304
+
10305
+ const openSelect = () => {
10306
+ if (!isOpen && !(disabled || readOnly)) {
10307
+ openMenu();
10308
+ }
10309
+ };
10310
+
10311
+ const clear = () => {
10312
+ resetCombobox();
10313
+ resetSelection();
10314
+ };
10315
+
10316
+ const showClearButton = (selectedItems.length > 0 || inputValue) && !readOnly;
10317
+ const selectedItemsLabels = react.useMemo(() => selectedItems.map(getLabel), [selectedItems, getLabel]);
10318
+
10319
+ const optionsList = /*#__PURE__*/jsxRuntime.jsx(StyledList, { ...getMenuProps({
10320
+ ref: setContainerEl,
10321
+ style: styles.popper,
10322
+ 'aria-multiselectable': multiple ? 'true' : null,
10323
+ ...attributes.popper
10324
+ }, {
10325
+ suppressRefError: true
10326
+ }),
10327
+ children: !isOpen ? null : availableItems.map((item, index) => {
10328
+ const label = getLabel(item);
10329
+ const isDisabled = optionDisabled(item);
10330
+ const isSelected = selectedItemsLabels.includes(label);
10331
+ return /*#__PURE__*/jsxRuntime.jsx(AutocompleteOption, {
10332
+ value: label,
10333
+ multiple: multiple,
10334
+ highlighted: highlightedIndex === index && !isDisabled ? 'true' : 'false',
10335
+ isSelected: isSelected,
10336
+ isDisabled: isDisabled,
10337
+ ...getItemProps({
10338
+ item,
10339
+ index,
10340
+ disabled
10341
+ })
10342
+ }, label);
10343
+ })
10344
+ });
10345
+
10346
+ return /*#__PURE__*/jsxRuntime.jsx(styled.ThemeProvider, {
10347
+ theme: token,
10348
+ children: /*#__PURE__*/jsxRuntime.jsxs(Container, {
10349
+ className: className,
10350
+ ref: ref,
10351
+ children: [/*#__PURE__*/jsxRuntime.jsx(Label$1, { ...getLabelProps(),
10352
+ label: label,
10353
+ meta: meta,
10354
+ disabled: disabled
10355
+ }), /*#__PURE__*/jsxRuntime.jsxs(Container, { ...getComboboxProps(),
10356
+ children: [/*#__PURE__*/jsxRuntime.jsx(StyledInput, { ...getInputProps( // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
10357
+ getDropdownProps({
10358
+ preventKeyAction: multiple ? isOpen : undefined,
10359
+ disabled,
10360
+ ref: anchorRef
10361
+ })),
10362
+ placeholder: placeholderText,
10363
+ readOnly: readOnly,
10364
+ onFocus: openSelect,
10365
+ onClick: openSelect,
10366
+ ...other
10367
+ }), showClearButton && /*#__PURE__*/jsxRuntime.jsx(StyledButton, {
10368
+ variant: "ghost_icon",
10369
+ disabled: disabled || readOnly,
10370
+ "aria-label": 'clear options',
10371
+ title: "clear",
10372
+ onClick: clear,
10373
+ style: {
10374
+ right: 32
10375
+ },
10376
+ children: /*#__PURE__*/jsxRuntime.jsx(Icon$1, {
10377
+ data: edsIcons.close,
10378
+ size: 16
10379
+ })
10380
+ }), /*#__PURE__*/jsxRuntime.jsx(StyledButton, {
10381
+ variant: "ghost_icon",
10382
+ ...getToggleButtonProps({
10383
+ disabled: disabled || readOnly
10384
+ }),
10385
+ "aria-label": 'toggle options',
10386
+ title: "open",
10387
+ children: !readOnly && /*#__PURE__*/jsxRuntime.jsx(Icon$1, {
10388
+ data: isOpen ? edsIcons.arrow_drop_up : edsIcons.arrow_drop_down
10389
+ })
10390
+ })]
10391
+ }), disablePortal ? optionsList : !isMounted ? null : /*#__PURE__*/ReactDom.createPortal(optionsList, document.body)]
10392
+ })
10393
+ });
10394
+ }
10395
+
10396
+ const Autocomplete = /*#__PURE__*/react.forwardRef(AutocompleteInner);
10397
+
9741
10398
  exports.Accordion = Accordion;
10399
+ exports.Autocomplete = Autocomplete;
9742
10400
  exports.Avatar = Avatar;
9743
10401
  exports.Banner = Banner;
9744
10402
  exports.Breadcrumbs = Breadcrumbs;