@equinor/eds-core-react 0.13.1 → 0.14.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 (31) hide show
  1. package/dist/core-react.cjs.js +860 -576
  2. package/dist/core-react.esm.js +861 -577
  3. package/dist/core-react.umd.js +860 -576
  4. package/dist/types/components/Accordion/Accordion.tokens.d.ts +1 -0
  5. package/dist/types/components/Banner/Banner.d.ts +4 -2
  6. package/dist/types/components/Banner/BannerActions.d.ts +5 -2
  7. package/dist/types/components/Banner/BannerIcon.d.ts +7 -2
  8. package/dist/types/components/Banner/BannerMessage.d.ts +5 -2
  9. package/dist/types/components/Combobox/Combobox.d.ts +55 -0
  10. package/dist/types/components/Combobox/Combobox.tokens.d.ts +3 -0
  11. package/dist/types/components/Combobox/index.d.ts +1 -0
  12. package/dist/types/components/Input/Input.d.ts +2 -2
  13. package/dist/types/components/Pagination/Pagination.d.ts +2 -2
  14. package/dist/types/components/Select/commonStyles.d.ts +3 -6
  15. package/dist/types/components/Snackbar/Snackbar.d.ts +4 -4
  16. package/dist/types/components/Snackbar/SnackbarAction.d.ts +1 -1
  17. package/dist/types/components/Switch/Switch.styles.d.ts +1 -0
  18. package/dist/types/components/Table/DataCell/DataCell.tokens.d.ts +5 -3
  19. package/dist/types/components/TextField/Field.d.ts +4 -4
  20. package/dist/types/components/TextField/Icon/Icon.d.ts +2 -5
  21. package/dist/types/components/TextField/{context.d.ts → TextField.context.d.ts} +0 -0
  22. package/dist/types/components/Textarea/Textarea.d.ts +2 -2
  23. package/dist/types/components/Tooltip/Tooltip.d.ts +2 -2
  24. package/dist/types/components/Typography/Typography.tokens.d.ts +48 -0
  25. package/dist/types/hooks/index.d.ts +1 -0
  26. package/dist/types/hooks/useHideBodyScroll.d.ts +1 -0
  27. package/dist/types/utils/index.d.ts +1 -0
  28. package/dist/types/utils/joinHandlers.d.ts +3 -0
  29. package/package.json +110 -108
  30. package/src/index.ts +37 -0
  31. package/CHANGELOG.md +0 -590
@@ -362,6 +362,17 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
362
362
  PERFORMANCE OF THIS SOFTWARE.
363
363
  ***************************************************************************** */
364
364
 
365
+ var __assign = function() {
366
+ __assign = Object.assign || function __assign(t) {
367
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
368
+ s = arguments[i];
369
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
370
+ }
371
+ return t;
372
+ };
373
+ return __assign.apply(this, arguments);
374
+ };
375
+
365
376
  function __rest(s, e) {
366
377
  var t = {};
367
378
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -2181,6 +2192,11 @@ var shape$3 = {
2181
2192
  minHeight: '24px',
2182
2193
  minWidth: '2px',
2183
2194
  borderRadius: ''
2195
+ },
2196
+ circle: {
2197
+ minHeight: '24px',
2198
+ minWidth: '24px',
2199
+ borderRadius: '100px'
2184
2200
  }
2185
2201
  }
2186
2202
  },
@@ -2253,7 +2269,7 @@ var spacings$7 = {
2253
2269
  xx_small: '2px'
2254
2270
  }
2255
2271
  };
2256
- var typography$i = {
2272
+ var typography$j = {
2257
2273
  heading: {
2258
2274
  h1_bold: {
2259
2275
  color: 'rgba(61, 61, 61, 1)',
@@ -2388,7 +2404,7 @@ var typography$i = {
2388
2404
  color: 'rgba(61, 61, 61, 1)',
2389
2405
  fontFamily: 'Equinor',
2390
2406
  fontSize: '1.000rem',
2391
- fontWeight: 700,
2407
+ fontWeight: 400,
2392
2408
  letterSpacing: '0.013em',
2393
2409
  lineHeight: '1.000em',
2394
2410
  textAlign: 'left'
@@ -2598,6 +2614,54 @@ var typography$i = {
2598
2614
  textAlign: 'left'
2599
2615
  }
2600
2616
  },
2617
+ _modes: {
2618
+ compact: {
2619
+ table: {
2620
+ cell_header: {
2621
+ color: 'rgba(0, 0, 0, 1)',
2622
+ fontFamily: 'Equinor',
2623
+ fontSize: '0.875rem',
2624
+ fontWeight: 700,
2625
+ lineHeight: '1.143em',
2626
+ textAlign: 'left'
2627
+ },
2628
+ cell_text: {
2629
+ color: 'rgba(0, 0, 0, 1)',
2630
+ fontFamily: 'Equinor',
2631
+ fontSize: '0.875rem',
2632
+ fontWeight: 500,
2633
+ lineHeight: '1.143em',
2634
+ textAlign: 'left'
2635
+ },
2636
+ cell_text_bold: {
2637
+ color: 'rgba(0, 0, 0, 1)',
2638
+ fontFamily: 'Equinor',
2639
+ fontSize: '0.875rem',
2640
+ fontWeight: 700,
2641
+ lineHeight: '1.143em',
2642
+ textAlign: 'left'
2643
+ },
2644
+ cell_text_link: {
2645
+ color: 'rgba(0, 0, 0, 1)',
2646
+ fontFamily: 'Equinor',
2647
+ fontSize: '0.875rem',
2648
+ fontWeight: 500,
2649
+ lineHeight: '1.143em',
2650
+ textDecoration: 'underline',
2651
+ textAlign: 'left'
2652
+ },
2653
+ cell_numeric_monospaced: {
2654
+ fontFeature: "'tnum' on,'lnum' on",
2655
+ color: 'rgba(0, 0, 0, 1)',
2656
+ fontFamily: 'Equinor',
2657
+ fontSize: '0.875rem',
2658
+ fontWeight: 500,
2659
+ lineHeight: '1.143em',
2660
+ textAlign: 'left'
2661
+ }
2662
+ }
2663
+ }
2664
+ },
2601
2665
  ui: {
2602
2666
  tooltip: {
2603
2667
  color: 'rgba(61, 61, 61, 1)',
@@ -2648,7 +2712,7 @@ var tokens$6 = {
2648
2712
  interactions: interactions,
2649
2713
  shape: shape$3,
2650
2714
  spacings: spacings$7,
2651
- typography: typography$i
2715
+ typography: typography$j
2652
2716
  };
2653
2717
 
2654
2718
  var buttonTypography = tokens$6.typography.navigation.button,
@@ -2663,9 +2727,9 @@ var buttonTypography = tokens$6.typography.navigation.button,
2663
2727
  buttonBorderRadius$2 = _tokens$shape$button.borderRadius,
2664
2728
  compactButtonHeight = _tokens$shape$2._modes.compact.button.minHeight,
2665
2729
  outline = tokens$6.interactions.focused,
2666
- _tokens$clickbounds$1 = tokens$6.clickbounds,
2667
- clicboundHeight$1 = _tokens$clickbounds$1.default__base,
2668
- compactClickboundHeight$1 = _tokens$clickbounds$1.compact__standard;
2730
+ _tokens$clickbounds$3 = tokens$6.clickbounds,
2731
+ clicboundHeight$1 = _tokens$clickbounds$3.default__base,
2732
+ compactClickboundHeight$1 = _tokens$clickbounds$3.compact__standard;
2669
2733
  var button = {
2670
2734
  background: 'transparent',
2671
2735
  height: buttonHeight,
@@ -3172,9 +3236,9 @@ var _tokens$colors$intera$g = tokens$6.colors.interactive,
3172
3236
  dangerColor = _tokens$colors$intera$g.danger__resting.rgba,
3173
3237
  dangerHoverColor = _tokens$colors$intera$g.danger__hover.rgba,
3174
3238
  dangerHoverAltColor = _tokens$colors$intera$g.danger__highlight.rgba,
3175
- _tokens$clickbounds = tokens$6.clickbounds,
3176
- clicboundHeight = _tokens$clickbounds.default__base,
3177
- compactClickboundHeight = _tokens$clickbounds.compact__standard,
3239
+ _tokens$clickbounds$2 = tokens$6.clickbounds,
3240
+ clicboundHeight = _tokens$clickbounds$2.default__base,
3241
+ compactClickboundHeight = _tokens$clickbounds$2.compact__standard,
3178
3242
  shape$2 = tokens$6.shape;
3179
3243
  var primary$6 = mergeDeepRight(button, {
3180
3244
  height: shape$2.icon_button.minHeight,
@@ -3211,6 +3275,11 @@ var primary$6 = mergeDeepRight(button, {
3211
3275
  border: {
3212
3276
  color: 'transparent'
3213
3277
  }
3278
+ },
3279
+ focus: {
3280
+ outline: {
3281
+ offset: '0px'
3282
+ }
3214
3283
  }
3215
3284
  },
3216
3285
  modes: {
@@ -3254,7 +3323,7 @@ var danger$2 = mergeDeepRight(primary$6, {
3254
3323
  }
3255
3324
  });
3256
3325
 
3257
- var token$7 = {
3326
+ var token$6 = {
3258
3327
  primary: {
3259
3328
  contained: primary$9,
3260
3329
  outlined: primary$8,
@@ -3399,6 +3468,15 @@ var spacingsTemplate = function spacingsTemplate(_ref) {
3399
3468
  });
3400
3469
  };
3401
3470
 
3471
+ var joinHandlers = function joinHandlers(handler1, handler2) {
3472
+ var callback = function callback(event) {
3473
+ handler1 && handler1(event);
3474
+ handler2 && handler2(event);
3475
+ };
3476
+
3477
+ return callback;
3478
+ };
3479
+
3402
3480
  var setReactInputValue = function setReactInputValue(input, value) {
3403
3481
  var previousValue = input.value;
3404
3482
  input.value = value;
@@ -5749,7 +5827,7 @@ var useId = function useId(idOverride, type) {
5749
5827
  if (defaultId == null) {
5750
5828
  setDefaultId("eds-".concat(type ? type + "-" : '').concat(Math.round(Math.random() * 1e5)));
5751
5829
  }
5752
- }, [defaultId]);
5830
+ }, [defaultId, type]);
5753
5831
  return id;
5754
5832
  };
5755
5833
 
@@ -5816,6 +5894,15 @@ var useToken = function useToken(options, token) {
5816
5894
  }, [options, token]);
5817
5895
  };
5818
5896
 
5897
+ var useHideBodyScroll = function useHideBodyScroll(overflowState) {
5898
+ React.useEffect(function () {
5899
+ document.body.style.overflow = 'hidden';
5900
+ return function () {
5901
+ document.body.style.overflow = overflowState;
5902
+ };
5903
+ }, []);
5904
+ };
5905
+
5819
5906
  var FullWidthCenterContent = styled__default['default'].span.withConfig({
5820
5907
  displayName: "InnerFullWidth__FullWidthCenterContent",
5821
5908
  componentId: "sc-qeawkb-0"
@@ -5901,14 +5988,14 @@ var getVariant = function getVariant(tokenSet, variant) {
5901
5988
  var getToken$1 = function getToken(variant, color) {
5902
5989
  switch (color) {
5903
5990
  case 'danger':
5904
- return getVariant(token$7.danger, variant);
5991
+ return getVariant(token$6.danger, variant);
5905
5992
 
5906
5993
  case 'secondary':
5907
- return getVariant(token$7.secondary, variant);
5994
+ return getVariant(token$6.secondary, variant);
5908
5995
 
5909
5996
  case 'primary':
5910
5997
  default:
5911
- return getVariant(token$7.primary, variant);
5998
+ return getVariant(token$6.primary, variant);
5912
5999
  }
5913
6000
  };
5914
6001
 
@@ -5929,7 +6016,7 @@ var ButtonBase = styled__default['default'].button.withConfig({
5929
6016
  var focus = states.focus,
5930
6017
  hover = states.hover,
5931
6018
  disabled = states.disabled;
5932
- return styled.css(["margin:0;padding:0;text-decoration:none;position:relative;cursor:pointer;display:inline-block;background:", ";height:", ";width:", ";svg{justify-self:center;}", " ", " ", " &::before{position:absolute;top:0;left:0;width:auto;min-height:auto;content:'';}&::after{position:absolute;top:-", ";left:-", ";width:", ";height:", ";content:'';}&:hover{background:", ";color:", ";", "}&:focus{outline:none;}&[data-focus-visible-added]:focus{", "}&::-moz-focus-inner{border:0;}&:disabled{cursor:not-allowed;background:", ";", " ", " &:hover{background:", ";}}"], theme.background, theme.height, theme.width, spacingsTemplate(theme.spacings), bordersTemplate(theme.border), typographyTemplate(theme.typography), (_a = clickbound === null || clickbound === void 0 ? void 0 : clickbound.offset) === null || _a === void 0 ? void 0 : _a.top, (_b = clickbound === null || clickbound === void 0 ? void 0 : clickbound.offset) === null || _b === void 0 ? void 0 : _b.left, clickbound === null || clickbound === void 0 ? void 0 : clickbound.width, clickbound === null || clickbound === void 0 ? void 0 : clickbound.height, hover.background, (_c = hover.typography) === null || _c === void 0 ? void 0 : _c.color, bordersTemplate(hover === null || hover === void 0 ? void 0 : hover.border), outlineTemplate(focus.outline), disabled.background, bordersTemplate(disabled.border), typographyTemplate(disabled.typography), disabled.background);
6019
+ return styled.css(["margin:0;padding:0;text-decoration:none;position:relative;cursor:pointer;display:inline-block;background:", ";height:", ";width:", ";svg{justify-self:center;}", " ", " ", " &::before{position:absolute;top:0;left:0;width:auto;min-height:auto;content:'';}&::after{position:absolute;top:-", ";left:-", ";width:", ";height:", ";content:'';}@media (hover:hover) and (pointer:fine){&:hover{background:", ";color:", ";", ";}}&:focus{outline:none;}&[data-focus-visible-added]:focus{", "}&::-moz-focus-inner{border:0;}&:disabled{cursor:not-allowed;background:", ";", ";", ";@media (hover:hover) and (pointer:fine){&:hover{background:", ";}}}"], theme.background, theme.height, theme.width, spacingsTemplate(theme.spacings), bordersTemplate(theme.border), typographyTemplate(theme.typography), (_a = clickbound === null || clickbound === void 0 ? void 0 : clickbound.offset) === null || _a === void 0 ? void 0 : _a.top, (_b = clickbound === null || clickbound === void 0 ? void 0 : clickbound.offset) === null || _b === void 0 ? void 0 : _b.left, clickbound === null || clickbound === void 0 ? void 0 : clickbound.width, clickbound === null || clickbound === void 0 ? void 0 : clickbound.height, hover.background, (_c = hover.typography) === null || _c === void 0 ? void 0 : _c.color, bordersTemplate(hover === null || hover === void 0 ? void 0 : hover.border), outlineTemplate(focus.outline), disabled.background, bordersTemplate(disabled.border), typographyTemplate(disabled.typography), disabled.background);
5933
6020
  });
5934
6021
  var Button = /*#__PURE__*/React.forwardRef(function Button(_a, ref) {
5935
6022
  var _a$color = _a.color,
@@ -5951,7 +6038,7 @@ var Button = /*#__PURE__*/React.forwardRef(function Button(_a, ref) {
5951
6038
 
5952
6039
  var token = useToken({
5953
6040
  density: density
5954
- }, getToken$1(variant, color))();
6041
+ }, getToken$1(variant, color));
5955
6042
  var as = href && !disabled ? 'a' : other.as ? other.as : 'button';
5956
6043
  var type = href || other.as ? undefined : 'button';
5957
6044
  tabIndex = disabled ? -1 : tabIndex;
@@ -5976,10 +6063,10 @@ var Button = /*#__PURE__*/React.forwardRef(function Button(_a, ref) {
5976
6063
  }), void 0);
5977
6064
  });
5978
6065
 
5979
- var typography$h = tokens$6.typography,
6066
+ var typography$i = tokens$6.typography,
5980
6067
  colorsToken = tokens$6.colors;
5981
- var heading = typography$h.heading,
5982
- paragraph$2 = typography$h.paragraph;
6068
+ var heading = typography$i.heading,
6069
+ paragraph$2 = typography$i.paragraph;
5983
6070
  var _colorsToken$interact = colorsToken.interactive,
5984
6071
  primary$5 = _colorsToken$interact.primary__resting.rgba,
5985
6072
  secondary = _colorsToken$interact.secondary__resting.rgba,
@@ -6042,7 +6129,7 @@ var findTypography = function findTypography(variantName, group) {
6042
6129
  return quickVariants[variantName];
6043
6130
  }
6044
6131
 
6045
- return typography$h[group][variantName];
6132
+ return typography$i[group][variantName];
6046
6133
  };
6047
6134
 
6048
6135
  var findColor = function findColor() {
@@ -6108,9 +6195,11 @@ var Typography = /*#__PURE__*/React.forwardRef(function Typography(_a, ref) {
6108
6195
  }), void 0);
6109
6196
  });
6110
6197
 
6111
- var _tokens$typography$ta = tokens$6.typography.table,
6198
+ var _tokens$typography$2 = tokens$6.typography,
6199
+ _tokens$typography$ta = _tokens$typography$2.table,
6112
6200
  cellTypography$1 = _tokens$typography$ta.cell_text,
6113
6201
  cellNumericTypography = _tokens$typography$ta.cell_numeric_monospaced,
6202
+ compactTypography$1 = _tokens$typography$2._modes.compact,
6114
6203
  _tokens$colors$h = tokens$6.colors,
6115
6204
  typographyColor$1 = _tokens$colors$h.text.static_icons__default.rgba,
6116
6205
  borderColor$4 = _tokens$colors$h.ui.background__medium.rgba,
@@ -6182,33 +6271,45 @@ var tableCell = {
6182
6271
  modes: {
6183
6272
  compact: {
6184
6273
  height: '32px',
6185
- typography: {
6186
- lineHeight: '1rem'
6274
+ typography: Object.assign(Object.assign({}, compactTypography$1.table.cell_text), {
6275
+ color: typographyColor$1
6276
+ })
6277
+ }
6278
+ },
6279
+ validation: {
6280
+ error: {
6281
+ background: errorColor$1
6282
+ }
6283
+ },
6284
+ variants: {
6285
+ numeric: {
6286
+ typography: Object.assign(Object.assign({}, cellNumericTypography), {
6287
+ color: typographyColor$1
6288
+ }),
6289
+ modes: {
6290
+ compact: {
6291
+ typography: Object.assign(Object.assign({}, compactTypography$1.table.cell_numeric_monospaced), {
6292
+ color: typographyColor$1
6293
+ })
6294
+ }
6187
6295
  }
6188
6296
  }
6189
6297
  }
6190
6298
  };
6191
- var validation = {
6192
- error: {
6193
- background: errorColor$1
6194
- }
6195
- };
6196
- var variants$2 = {
6197
- numeric: {
6198
- typography: Object.assign(Object.assign({}, cellNumericTypography), {
6199
- color: typographyColor$1
6200
- })
6299
+ var applyVariant = function applyVariant(variant, token) {
6300
+ switch (variant) {
6301
+ case 'numeric':
6302
+ return mergeDeepRight(token, token.variants.numeric);
6303
+
6304
+ default:
6305
+ return token;
6201
6306
  }
6202
6307
  };
6203
- var token$6 = Object.assign(Object.assign({}, tableCell), {
6204
- validation: validation,
6205
- variants: variants$2
6206
- });
6207
6308
 
6208
6309
  var TableBase$1 = styled__default['default'].table.withConfig({
6209
6310
  displayName: "Table__TableBase",
6210
6311
  componentId: "sc-14kktwc-0"
6211
- })(["border-spacing:0;background:", ";"], token$6.background);
6312
+ })(["border-spacing:0;background:", ";"], tableCell.background);
6212
6313
  var Table$1 = /*#__PURE__*/React.forwardRef(function Table(_a, ref) {
6213
6314
  var children = _a.children,
6214
6315
  props = __rest(_a, ["children"]);
@@ -6246,18 +6347,6 @@ var Body = /*#__PURE__*/React.forwardRef(function Body(_a, ref) {
6246
6347
  }), void 0);
6247
6348
  });
6248
6349
 
6249
- var applyMutations = function applyMutations(variant, token) {
6250
- switch (variant) {
6251
- case 'numeric':
6252
- return Object.assign(Object.assign({}, token), {
6253
- typography: Object.assign(Object.assign({}, token.typography), token.variants.numeric.typography)
6254
- });
6255
-
6256
- default:
6257
- return token;
6258
- }
6259
- };
6260
-
6261
6350
  var StyledTableCell$1 = styled__default['default'].td.withConfig({
6262
6351
  displayName: "DataCell__StyledTableCell",
6263
6352
  componentId: "sc-15tuitc-0"
@@ -6286,7 +6375,7 @@ var TableDataCell = /*#__PURE__*/React.forwardRef(function TableDataCell(_a, ref
6286
6375
 
6287
6376
  var token = useToken({
6288
6377
  density: density
6289
- }, applyMutations(variant, token$6))();
6378
+ }, applyVariant(variant, tableCell));
6290
6379
  return jsxRuntime.exports.jsx(styled.ThemeProvider, Object.assign({
6291
6380
  theme: token
6292
6381
  }, {
@@ -6298,7 +6387,9 @@ var TableDataCell = /*#__PURE__*/React.forwardRef(function TableDataCell(_a, ref
6298
6387
  }), void 0);
6299
6388
  });
6300
6389
 
6301
- var cellTypography = tokens$6.typography.table.cell_header,
6390
+ var _tokens$typography$1 = tokens$6.typography,
6391
+ cellTypography = _tokens$typography$1.table.cell_header,
6392
+ compactTypography = _tokens$typography$1._modes.compact,
6302
6393
  _tokens$colors$g = tokens$6.colors,
6303
6394
  typographyColor = _tokens$colors$g.text.static_icons__default.rgba,
6304
6395
  borderColor$3 = _tokens$colors$g.ui.background__medium.rgba,
@@ -6371,9 +6462,7 @@ var token$5 = {
6371
6462
  modes: {
6372
6463
  compact: {
6373
6464
  height: '32px',
6374
- typography: {
6375
- lineHeight: '1rem'
6376
- }
6465
+ typography: compactTypography.table.cell_header
6377
6466
  }
6378
6467
  }
6379
6468
  };
@@ -6417,7 +6506,7 @@ var TableHeaderCell = /*#__PURE__*/React.forwardRef(function TableHeaderCell(_a,
6417
6506
 
6418
6507
  var token = useToken({
6419
6508
  density: density
6420
- }, token$5)();
6509
+ }, token$5);
6421
6510
  return jsxRuntime.exports.jsx(styled.ThemeProvider, Object.assign({
6422
6511
  theme: token
6423
6512
  }, {
@@ -6521,8 +6610,10 @@ var StyledRow = styled__default['default'].tr.withConfig({
6521
6610
 
6522
6611
  return {
6523
6612
  background: active ? (_a = token$3.states.active) === null || _a === void 0 ? void 0 : _a.background : null,
6524
- ':hover': {
6525
- background: (_b = token$3.states.hover) === null || _b === void 0 ? void 0 : _b.background
6613
+ '@media (hover: hover) and (pointer: fine)': {
6614
+ ':hover': {
6615
+ background: (_b = token$3.states.hover) === null || _b === void 0 ? void 0 : _b.background
6616
+ }
6526
6617
  }
6527
6618
  };
6528
6619
  });
@@ -6569,9 +6660,9 @@ var _tokens$colors$ui$5 = tokens$6.colors.ui,
6569
6660
  lighter = _tokens$colors$ui$5.background__default.rgba,
6570
6661
  light = _tokens$colors$ui$5.background__light.rgba,
6571
6662
  mediumColor = _tokens$colors$ui$5.background__medium.rgba,
6572
- _tokens$spacings$comf$c = tokens$6.spacings.comfortable,
6573
- spacingSmall$4 = _tokens$spacings$comf$c.small,
6574
- spacingMedium$8 = _tokens$spacings$comf$c.medium;
6663
+ _tokens$spacings$comf$d = tokens$6.spacings.comfortable,
6664
+ spacingSmall$4 = _tokens$spacings$comf$d.small,
6665
+ spacingMedium$8 = _tokens$spacings$comf$d.medium;
6575
6666
  var dividerHeight = 1;
6576
6667
 
6577
6668
  var reduceByValue = function reduceByValue(subtractValue) {
@@ -6598,7 +6689,7 @@ var divider$1 = {
6598
6689
  background: mediumColor
6599
6690
  }
6600
6691
  };
6601
- var small$8 = Object.assign(Object.assign({}, baseDivider$1), {
6692
+ var small$7 = Object.assign(Object.assign({}, baseDivider$1), {
6602
6693
  spacings: {
6603
6694
  top: spacingSmall$4,
6604
6695
  bottom: reduceValueByDividerHeight(spacingSmall$4)
@@ -6615,7 +6706,7 @@ var tokens$5 = /*#__PURE__*/Object.freeze({
6615
6706
  __proto__: null,
6616
6707
  baseDivider: baseDivider$1,
6617
6708
  divider: divider$1,
6618
- small: small$8,
6709
+ small: small$7,
6619
6710
  medium: medium$3
6620
6711
  });
6621
6712
 
@@ -6709,21 +6800,21 @@ var _tokens$colors$e = tokens$6.colors,
6709
6800
  warning__hover = _tokens$colors$intera$c.warning__hover,
6710
6801
  success__resting = _tokens$colors$intera$c.success__resting,
6711
6802
  success__hover = _tokens$colors$intera$c.success__hover,
6712
- _tokens$spacings$comf$b = tokens$6.spacings.comfortable,
6713
- small$7 = _tokens$spacings$comf$b.small,
6714
- x_small$4 = _tokens$spacings$comf$b.x_small,
6715
- typography$g = tokens$6.typography,
6803
+ _tokens$spacings$comf$c = tokens$6.spacings.comfortable,
6804
+ small$6 = _tokens$spacings$comf$c.small,
6805
+ x_small$5 = _tokens$spacings$comf$c.x_small,
6806
+ typography$h = tokens$6.typography,
6716
6807
  shape$1 = tokens$6.shape;
6717
6808
  var input$2 = {
6718
6809
  minHeight: shape$1.straight.minHeight,
6719
6810
  background: background$f,
6720
6811
  spacings: {
6721
- left: small$7,
6722
- right: small$7,
6812
+ left: small$6,
6813
+ right: small$6,
6723
6814
  top: '6px',
6724
6815
  bottom: '6px'
6725
6816
  },
6726
- typography: Object.assign(Object.assign({}, typography$g.input.text), {
6817
+ typography: Object.assign(Object.assign({}, typography$h.input.text), {
6727
6818
  color: static_icons__default.rgba
6728
6819
  }),
6729
6820
  entities: {
@@ -6739,6 +6830,10 @@ var input$2 = {
6739
6830
  color: disabled__text.rgba
6740
6831
  }
6741
6832
  },
6833
+ readOnly: {
6834
+ background: 'transparent',
6835
+ boxShadow: 'none'
6836
+ },
6742
6837
  active: {
6743
6838
  outline: {
6744
6839
  type: 'outline',
@@ -6763,10 +6858,10 @@ var input$2 = {
6763
6858
  compact: {
6764
6859
  minHeight: shape$1._modes.compact.straight.minHeight,
6765
6860
  spacings: {
6766
- left: x_small$4,
6767
- right: x_small$4,
6768
- top: x_small$4,
6769
- bottom: x_small$4
6861
+ left: x_small$5,
6862
+ right: x_small$5,
6863
+ top: x_small$5,
6864
+ bottom: x_small$5
6770
6865
  }
6771
6866
  }
6772
6867
  }
@@ -6865,8 +6960,9 @@ var StyledInput = styled__default['default'].input.withConfig({
6865
6960
  focusOutline = _theme$states.focus.outline,
6866
6961
  activeOutline = _theme$states.active.outline,
6867
6962
  disabled = _theme$states.disabled,
6963
+ readOnly = _theme$states.readOnly,
6868
6964
  boxShadow = theme.boxShadow;
6869
- return styled.css(["width:100%;box-sizing:border-box;margin:0;appearance:none;background:", ";border:none;height:", ";box-shadow:", ";", " ", " ", ";&::placeholder{color:", ";}&:active,&:focus{outline-offset:0;box-shadow:none;", "}&:disabled{color:", ";cursor:not-allowed;box-shadow:none;outline:none;&:focus,&:active{outline:none;}}"], theme.background, theme.minHeight, boxShadow, outlineTemplate(activeOutline), typographyTemplate(theme.typography), spacingsTemplate(theme.spacings), theme.entities.placeholder.typography.color, outlineTemplate(focusOutline), disabled.typography.color);
6965
+ return styled.css(["width:100%;box-sizing:border-box;margin:0;appearance:none;background:", ";border:none;height:", ";box-shadow:", ";", " ", " ", ";&::placeholder{color:", ";}&:active,&:focus{outline-offset:0;box-shadow:none;", "}&:disabled{color:", ";cursor:not-allowed;box-shadow:none;outline:none;&:focus,&:active{outline:none;}}&[readOnly]{background:", ";box-shadow:", ";}"], theme.background, theme.minHeight, boxShadow, outlineTemplate(activeOutline), typographyTemplate(theme.typography), spacingsTemplate(theme.spacings), theme.entities.placeholder.typography.color, outlineTemplate(focusOutline), disabled.typography.color, readOnly.background, readOnly.boxShadow);
6870
6966
  });
6871
6967
  var Input$5 = /*#__PURE__*/React.forwardRef(function Input(_a, ref) {
6872
6968
  var _a$variant = _a.variant,
@@ -6885,7 +6981,7 @@ var Input$5 = /*#__PURE__*/React.forwardRef(function Input(_a, ref) {
6885
6981
 
6886
6982
  var token = useToken({
6887
6983
  density: density
6888
- }, inputVariant)();
6984
+ }, inputVariant);
6889
6985
  var inputProps = Object.assign({
6890
6986
  ref: ref,
6891
6987
  type: type,
@@ -6937,36 +7033,36 @@ var input$1 = {
6937
7033
  }
6938
7034
  };
6939
7035
 
6940
- var Variation$3 = function Variation(_ref) {
7036
+ var StyledIcon$2 = styled__default['default'].div.withConfig({
7037
+ displayName: "Icon__StyledIcon",
7038
+ componentId: "sc-jr0rqa-0"
7039
+ })(function (_ref) {
6941
7040
  var colors = _ref.colors,
6942
7041
  isDisabled = _ref.isDisabled,
6943
- isFocused = _ref.isFocused;
7042
+ isFocused = _ref.isFocused,
7043
+ size = _ref.size;
6944
7044
  var focusColor = colors.focusColor,
6945
7045
  color = colors.color,
6946
7046
  disabledColor = colors.disabledColor;
7047
+ var fill = color;
6947
7048
 
6948
7049
  if (isDisabled) {
6949
- return styled.css(["&,svg{fill:", ";}"], disabledColor);
7050
+ fill = disabledColor;
6950
7051
  }
6951
7052
 
6952
7053
  if (isFocused) {
6953
- return styled.css(["&,svg{fill:", ";}"], focusColor);
7054
+ fill = focusColor;
6954
7055
  }
6955
7056
 
6956
- return styled.css(["&,svg{fill:", ";}"], color);
6957
- };
6958
-
6959
- var StyledIcon$3 = styled__default['default'].div.withConfig({
6960
- displayName: "Icon__StyledIcon",
6961
- componentId: "sc-jr0rqa-0"
6962
- })(["&,svg{width:16px;height:16px;}", ""], Variation$3);
7057
+ return styled.css(["&,svg{fill:", ";width:", "px;height:", "px;}"], fill, size, size);
7058
+ });
6963
7059
  var InputIcon = /*#__PURE__*/React.forwardRef(function InputIcon(_a, ref) {
6964
- var _a$variant = _a.variant,
7060
+ var _a$size = _a.size,
7061
+ size = _a$size === void 0 ? 24 : _a$size,
7062
+ _a$variant = _a.variant,
6965
7063
  variant = _a$variant === void 0 ? 'default' : _a$variant,
6966
7064
  _a$isDisabled = _a.isDisabled,
6967
7065
  isDisabled = _a$isDisabled === void 0 ? false : _a$isDisabled,
6968
- _a$spacings = _a.spacings,
6969
- spacings = _a$spacings === void 0 ? input$1.spacings.comfortable : _a$spacings,
6970
7066
  _a$colors = _a.colors,
6971
7067
  colors = _a$colors === void 0 ? {
6972
7068
  color: input$1[variant].color,
@@ -6974,18 +7070,18 @@ var InputIcon = /*#__PURE__*/React.forwardRef(function InputIcon(_a, ref) {
6974
7070
  focusColor: input$1[variant].focusColor
6975
7071
  } : _a$colors,
6976
7072
  children = _a.children,
6977
- other = __rest(_a, ["variant", "isDisabled", "spacings", "colors", "children"]);
7073
+ other = __rest(_a, ["size", "variant", "isDisabled", "colors", "children"]);
6978
7074
 
6979
7075
  var _useTextField = useTextField(),
6980
7076
  isFocused = _useTextField.isFocused;
6981
7077
 
6982
7078
  var iconProps = {
6983
- spacings: spacings,
6984
7079
  isDisabled: isDisabled,
6985
7080
  colors: colors,
6986
- isFocused: isFocused
7081
+ isFocused: isFocused,
7082
+ size: size
6987
7083
  };
6988
- return jsxRuntime.exports.jsx(StyledIcon$3, Object.assign({
7084
+ return jsxRuntime.exports.jsx(StyledIcon$2, Object.assign({
6989
7085
  ref: ref
6990
7086
  }, iconProps, other, {
6991
7087
  children: children
@@ -6993,10 +7089,10 @@ var InputIcon = /*#__PURE__*/React.forwardRef(function InputIcon(_a, ref) {
6993
7089
  });
6994
7090
 
6995
7091
  var colors$5 = tokens$6.colors,
6996
- typography$f = tokens$6.typography,
6997
- _tokens$spacings$comf$a = tokens$6.spacings.comfortable,
6998
- small$6 = _tokens$spacings$comf$a.small,
6999
- x_small$3 = _tokens$spacings$comf$a.x_small;
7092
+ typography$g = tokens$6.typography,
7093
+ _tokens$spacings$comf$b = tokens$6.spacings.comfortable,
7094
+ small$5 = _tokens$spacings$comf$b.small,
7095
+ x_small$4 = _tokens$spacings$comf$b.x_small;
7000
7096
  var textfield$1 = {
7001
7097
  background: colors$5.ui.background__light.hex,
7002
7098
  border: {
@@ -7006,9 +7102,9 @@ var textfield$1 = {
7006
7102
  color: colors$5.text.static_icons__tertiary.hex
7007
7103
  },
7008
7104
  spacings: {
7009
- left: small$6,
7010
- right: small$6,
7011
- top: small$6
7105
+ left: small$5,
7106
+ right: small$5,
7107
+ top: small$5
7012
7108
  },
7013
7109
  states: {
7014
7110
  focus: {
@@ -7019,11 +7115,15 @@ var textfield$1 = {
7019
7115
  type: 'outline',
7020
7116
  offset: '0px'
7021
7117
  }
7118
+ },
7119
+ readOnly: {
7120
+ background: 'transparent',
7121
+ boxShadow: 'none'
7022
7122
  }
7023
7123
  },
7024
7124
  entities: {
7025
7125
  unit: {
7026
- typography: Object.assign(Object.assign({}, typography$f.input.label), {
7126
+ typography: Object.assign(Object.assign({}, typography$g.input.label), {
7027
7127
  color: colors$5.text.static_icons__tertiary.hex
7028
7128
  }),
7029
7129
  states: {
@@ -7038,10 +7138,10 @@ var textfield$1 = {
7038
7138
  modes: {
7039
7139
  compact: {
7040
7140
  spacings: {
7041
- left: x_small$3,
7042
- right: x_small$3,
7043
- top: x_small$3,
7044
- bottom: x_small$3
7141
+ left: x_small$4,
7142
+ right: x_small$4,
7143
+ top: x_small$4,
7144
+ bottom: x_small$4
7045
7145
  }
7046
7146
  }
7047
7147
  }
@@ -7139,7 +7239,7 @@ var Variation$2 = function Variation(_ref) {
7139
7239
  var StyledTextarea = styled__default['default'].textarea.withConfig({
7140
7240
  displayName: "Textarea__StyledTextarea",
7141
7241
  componentId: "sc-2yjdcc-0"
7142
- })(["width:100%;box-sizing:border-box;margin:0;border:none;appearance:none;background:", ";height:auto;", " ", " &::placeholder{color:", ";}&:disabled{color:", ";}"], input.background, typographyTemplate(input.typography), Variation$2, input.entities.placeholder.typography.color, input.states.disabled.typography.color);
7242
+ })(["width:100%;box-sizing:border-box;margin:0;border:none;appearance:none;background:", ";height:auto;", " ", " &::placeholder{color:", ";}&:disabled{color:", ";}&[readOnly]{box-shadow:", ";background:", ";}"], input.background, typographyTemplate(input.typography), Variation$2, input.entities.placeholder.typography.color, input.states.disabled.typography.color, input.states.readOnly.boxShadow, input.states.readOnly.background);
7143
7243
  var Textarea = /*#__PURE__*/React.forwardRef(function Textarea(_a, ref) {
7144
7244
  var _a$variant = _a.variant,
7145
7245
  variant = _a$variant === void 0 ? 'default' : _a$variant,
@@ -7216,9 +7316,10 @@ var InputWrapper$2 = styled__default['default'].div.withConfig({
7216
7316
  var inputIcon = _ref2.inputIcon,
7217
7317
  unit = _ref2.unit,
7218
7318
  isDisabled = _ref2.isDisabled,
7319
+ isReadOnly = _ref2.isReadOnly,
7219
7320
  multiline = _ref2.multiline,
7220
7321
  variant = _ref2.variant;
7221
- return styled.css(["", " ", " ", " ", ""], Variation$1, (inputIcon || unit) && styled.css(["display:flex;align-items:center;background:", ";padding-right:", ";"], textfield.background, textfield.spacings.right), isDisabled && styled.css(["box-shadow:none;cursor:not-allowed;outline:none;"]), multiline && variant === 'default' && !inputIcon && !unit && styled.css(["box-shadow:none;"]));
7322
+ return styled.css(["", " ", " ", " ", " ", ""], Variation$1, (inputIcon || unit) && styled.css(["display:flex;align-items:center;background:", ";padding-right:", ";"], textfield.background, textfield.spacings.right), isReadOnly && styled.css(["box-shadow:", ";background:", ";"], textfield.states.readOnly.boxShadow, textfield.states.readOnly.background), isDisabled && styled.css(["box-shadow:none;cursor:not-allowed;outline:none;"]), multiline && variant === 'default' && !inputIcon && !unit && styled.css(["box-shadow:none;"]));
7222
7323
  });
7223
7324
  var Unit = styled__default['default'].span.withConfig({
7224
7325
  displayName: "Field__Unit",
@@ -7244,22 +7345,41 @@ var Field = /*#__PURE__*/React.forwardRef(function Field(_a, ref) {
7244
7345
  var multiline = _a.multiline,
7245
7346
  variant = _a.variant,
7246
7347
  disabled = _a.disabled,
7348
+ readOnly = _a.readOnly,
7247
7349
  type = _a.type,
7248
7350
  unit = _a.unit,
7249
7351
  inputIcon = _a.inputIcon,
7250
7352
  rowsMax = _a.rowsMax,
7251
- other = __rest(_a, ["multiline", "variant", "disabled", "type", "unit", "inputIcon", "rowsMax"]);
7353
+ onBlur = _a.onBlur,
7354
+ onFocus = _a.onFocus,
7355
+ other = __rest(_a, ["multiline", "variant", "disabled", "readOnly", "type", "unit", "inputIcon", "rowsMax", "onBlur", "onFocus"]);
7252
7356
 
7253
7357
  var _useTextField = useTextField(),
7254
7358
  handleFocus = _useTextField.handleFocus,
7255
7359
  handleBlur = _useTextField.handleBlur,
7256
7360
  isFocused = _useTextField.isFocused;
7257
7361
 
7362
+ var _useEds = useEds(),
7363
+ density = _useEds.density;
7364
+
7365
+ var iconSize = density === 'compact' ? 16 : 24;
7258
7366
  var actualVariant = variant === 'default' ? 'textfield' : variant;
7259
7367
  var inputVariant = tokens$3[actualVariant];
7368
+
7369
+ var focusHandler = function focusHandler(e) {
7370
+ handleFocus();
7371
+ onFocus && onFocus(e);
7372
+ };
7373
+
7374
+ var blurHandler = function blurHandler(e) {
7375
+ handleBlur();
7376
+ onBlur && onBlur(e);
7377
+ };
7378
+
7260
7379
  var inputWrapperProps = {
7261
7380
  isFocused: isFocused,
7262
7381
  isDisabled: disabled,
7382
+ isReadOnly: readOnly,
7263
7383
  variant: variant,
7264
7384
  token: inputVariant,
7265
7385
  inputIcon: inputIcon,
@@ -7270,20 +7390,17 @@ var Field = /*#__PURE__*/React.forwardRef(function Field(_a, ref) {
7270
7390
  ref: ref,
7271
7391
  type: type,
7272
7392
  disabled: disabled,
7273
- variant: variant
7393
+ readOnly: readOnly,
7394
+ variant: variant,
7395
+ onBlur: blurHandler,
7396
+ onFocus: focusHandler
7274
7397
  }, other);
7275
7398
  var textareaProps = Object.assign(Object.assign({}, inputProps), {
7276
7399
  rowsMax: rowsMax,
7277
7400
  ref: ref
7278
7401
  });
7279
7402
  return jsxRuntime.exports.jsxs(InputWrapper$2, Object.assign({}, inputWrapperProps, {
7280
- children: [multiline ? jsxRuntime.exports.jsx(StrippedTextarea, Object.assign({
7281
- onBlur: handleBlur,
7282
- onFocus: handleFocus
7283
- }, textareaProps), void 0) : jsxRuntime.exports.jsx(StrippedInput, Object.assign({
7284
- onBlur: handleBlur,
7285
- onFocus: handleFocus
7286
- }, inputProps), void 0), (inputIcon || unit) && jsxRuntime.exports.jsxs(Adornments, Object.assign({
7403
+ children: [multiline ? jsxRuntime.exports.jsx(StrippedTextarea, Object.assign({}, textareaProps), void 0) : jsxRuntime.exports.jsx(StrippedInput, Object.assign({}, inputProps), void 0), (inputIcon || unit) && jsxRuntime.exports.jsxs(Adornments, Object.assign({
7287
7404
  multiline: multiline
7288
7405
  }, {
7289
7406
  children: [unit && jsxRuntime.exports.jsx(Unit, Object.assign({
@@ -7292,7 +7409,8 @@ var Field = /*#__PURE__*/React.forwardRef(function Field(_a, ref) {
7292
7409
  children: unit
7293
7410
  }), void 0), inputIcon && jsxRuntime.exports.jsx(InputIcon, Object.assign({
7294
7411
  isDisabled: disabled,
7295
- variant: variant
7412
+ variant: variant,
7413
+ size: iconSize
7296
7414
  }, {
7297
7415
  children: inputIcon
7298
7416
  }), void 0)]
@@ -7302,10 +7420,10 @@ var Field = /*#__PURE__*/React.forwardRef(function Field(_a, ref) {
7302
7420
 
7303
7421
  var colors$4 = tokens$6.colors,
7304
7422
  comfortable$5 = tokens$6.spacings.comfortable,
7305
- typography$e = tokens$6.typography;
7423
+ typography$f = tokens$6.typography;
7306
7424
  var label = {
7307
7425
  background: colors$4.ui.background__light.rgba,
7308
- typography: Object.assign(Object.assign({}, typography$e.input.label), {
7426
+ typography: Object.assign(Object.assign({}, typography$f.input.label), {
7309
7427
  color: colors$4.text.static_icons__tertiary.rgba
7310
7428
  }),
7311
7429
  spacings: {
@@ -7359,10 +7477,10 @@ var Label$1 = /*#__PURE__*/React.forwardRef(function Label(props, ref) {
7359
7477
 
7360
7478
  var colors$3 = tokens$6.colors,
7361
7479
  comfortable$4 = tokens$6.spacings.comfortable,
7362
- typography$d = tokens$6.typography;
7480
+ typography$e = tokens$6.typography;
7363
7481
  var helperText = {
7364
7482
  background: colors$3.ui.background__light.hex,
7365
- typography: typography$d.input.helper,
7483
+ typography: typography$e.input.helper,
7366
7484
  spacings: {
7367
7485
  comfortable: {
7368
7486
  left: comfortable$4.small,
@@ -7437,10 +7555,6 @@ var Text$1 = styled__default['default'].p.withConfig({
7437
7555
  var spacings = _ref3.spacings;
7438
7556
  return spacings.left;
7439
7557
  }, Variation);
7440
- var StyledIcon$2 = styled__default['default'](InputIcon).withConfig({
7441
- displayName: "HelperText__StyledIcon",
7442
- componentId: "sc-1kfkyxg-2"
7443
- })([""]);
7444
7558
  var TextfieldHelperText = /*#__PURE__*/React.forwardRef(function TextfieldHelperText(_a, ref) {
7445
7559
  var helperText$1 = _a.helperText,
7446
7560
  icon = _a.icon,
@@ -7465,11 +7579,10 @@ var TextfieldHelperText = /*#__PURE__*/React.forwardRef(function TextfieldHelper
7465
7579
  }, rest, {
7466
7580
  spacings: spacings
7467
7581
  }, {
7468
- children: [icon && jsxRuntime.exports.jsx(StyledIcon$2, Object.assign({
7582
+ children: [icon && jsxRuntime.exports.jsx(InputIcon, Object.assign({
7469
7583
  isDisabled: isDisabled,
7470
- spacings: spacings,
7471
7584
  colors: colors,
7472
- isInputIcon: false
7585
+ size: 16
7473
7586
  }, {
7474
7587
  children: icon
7475
7588
  }), void 0), jsxRuntime.exports.jsx(Text$1, Object.assign({
@@ -7541,7 +7654,7 @@ var TextField = /*#__PURE__*/React.forwardRef(function TextField(_a, ref) {
7541
7654
 
7542
7655
  var token = useToken({
7543
7656
  density: density
7544
- }, textfield$1)();
7657
+ }, textfield$1);
7545
7658
  return jsxRuntime.exports.jsx(styled.ThemeProvider, Object.assign({
7546
7659
  theme: token
7547
7660
  }, {
@@ -7679,14 +7792,14 @@ var list = {
7679
7792
  typography: paragraph$1.body_short
7680
7793
  };
7681
7794
 
7682
- var typography$c = list.typography;
7795
+ var typography$d = list.typography;
7683
7796
  var StyledList$1 = styled__default['default'].ul.withConfig({
7684
7797
  displayName: "List__StyledList",
7685
7798
  componentId: "sc-v9d2hy-0"
7686
7799
  })(["", " ", ""], function (_ref) {
7687
7800
  var as = _ref.as;
7688
7801
  return as === 'ol' ? styled.css(["& ol{list-style-type:lower-alpha;}"]) : '';
7689
- }, typographyTemplate(typography$c));
7802
+ }, typographyTemplate(typography$d));
7690
7803
  var List$2 = /*#__PURE__*/React.forwardRef(function List(_a, ref) {
7691
7804
  var children = _a.children,
7692
7805
  _a$variant = _a.variant,
@@ -8135,28 +8248,28 @@ var clear = {
8135
8248
  prefix: 'eds',
8136
8249
  height: '24',
8137
8250
  width: '24',
8138
- svgPathData: 'M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z'
8251
+ svgPathData: 'M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z'
8139
8252
  };
8140
8253
  var search$1 = {
8141
8254
  name: 'search',
8142
8255
  prefix: 'eds',
8143
8256
  height: '24',
8144
8257
  width: '24',
8145
- svgPathData: 'M14.966 14.255h.79l4.99 5-1.49 1.49-5-4.99v-.79l-.27-.28a6.471 6.471 0 01-4.23 1.57 6.5 6.5 0 116.5-6.5c0 1.61-.59 3.09-1.57 4.23l.28.27zm-9.71-4.5c0 2.49 2.01 4.5 4.5 4.5s4.5-2.01 4.5-4.5-2.01-4.5-4.5-4.5-4.5 2.01-4.5 4.5z'
8258
+ svgPathData: 'M14.966 14.255h.79l4.99 5-1.49 1.49-5-4.99v-.79l-.27-.28a6.471 6.471 0 0 1-4.23 1.57 6.5 6.5 0 1 1 6.5-6.5c0 1.61-.59 3.09-1.57 4.23l.28.27zm-9.71-4.5c0 2.49 2.01 4.5 4.5 4.5s4.5-2.01 4.5-4.5-2.01-4.5-4.5-4.5-4.5 2.01-4.5 4.5z'
8146
8259
  };
8147
8260
  var close = {
8148
8261
  name: 'close',
8149
8262
  prefix: 'eds',
8150
8263
  height: '24',
8151
8264
  width: '24',
8152
- svgPathData: 'M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z'
8265
+ svgPathData: 'M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z'
8153
8266
  };
8154
8267
  var checkbox$1 = {
8155
8268
  name: 'checkbox',
8156
8269
  prefix: 'eds',
8157
8270
  height: '24',
8158
8271
  width: '24',
8159
- svgPathData: 'M5 3h14c1.1 0 2 .9 2 2v14c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2zm4.3 13.29c.39.39 1.02.39 1.41 0l7.58-7.59a.996.996 0 10-1.41-1.41L10 14.17l-2.88-2.88a.996.996 0 10-1.41 1.41l3.59 3.59z'
8272
+ svgPathData: 'M5 3h14c1.1 0 2 .9 2 2v14c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2zm4.3 13.29c.39.39 1.02.39 1.41 0l7.58-7.59a.996.996 0 1 0-1.41-1.41L10 14.17l-2.88-2.88a.996.996 0 1 0-1.41 1.41l3.59 3.59z'
8160
8273
  };
8161
8274
  var checkbox_outline = {
8162
8275
  name: 'checkbox_outline',
@@ -8177,7 +8290,7 @@ var radio_button_selected = {
8177
8290
  prefix: 'eds',
8178
8291
  height: '24',
8179
8292
  width: '24',
8180
- svgPathData: 'M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm-5-8a5 5 0 1110 0 5 5 0 01-10 0z'
8293
+ svgPathData: 'M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm-5-8a5 5 0 1 1 10 0 5 5 0 0 1-10 0z'
8181
8294
  };
8182
8295
  var radio_button_unselected = {
8183
8296
  name: 'radio_button_unselected',
@@ -8191,45 +8304,45 @@ var arrow_drop_up = {
8191
8304
  prefix: 'eds',
8192
8305
  height: '24',
8193
8306
  width: '24',
8194
- svgPathData: 'M7 14.5l5-5 5 5H7z'
8307
+ svgPathData: 'm7 14.5 5-5 5 5H7z'
8195
8308
  };
8196
8309
  var arrow_drop_down = {
8197
8310
  name: 'arrow_drop_down',
8198
8311
  prefix: 'eds',
8199
8312
  height: '24',
8200
8313
  width: '24',
8201
- svgPathData: 'M7 9.5l5 5 5-5H7z'
8314
+ svgPathData: 'm7 9.5 5 5 5-5H7z'
8202
8315
  };
8203
8316
  var chevron_down = {
8204
8317
  name: 'chevron_down',
8205
8318
  prefix: 'eds',
8206
8319
  height: '24',
8207
8320
  width: '24',
8208
- svgPathData: 'M7.41 8.295l4.59 4.58 4.59-4.58L18 9.705l-6 6-6-6 1.41-1.41z'
8321
+ svgPathData: 'm7.41 8.295 4.59 4.58 4.59-4.58L18 9.705l-6 6-6-6 1.41-1.41z'
8209
8322
  };
8210
8323
  var chevron_left = {
8211
8324
  name: 'chevron_left',
8212
8325
  prefix: 'eds',
8213
8326
  height: '24',
8214
8327
  width: '24',
8215
- svgPathData: 'M15.705 16.59L11.125 12l4.58-4.59L14.295 6l-6 6 6 6 1.41-1.41z'
8328
+ svgPathData: 'M15.705 16.59 11.125 12l4.58-4.59L14.295 6l-6 6 6 6 1.41-1.41z'
8216
8329
  };
8217
8330
  var chevron_right = {
8218
8331
  name: 'chevron_right',
8219
8332
  prefix: 'eds',
8220
8333
  height: '24',
8221
8334
  width: '24',
8222
- svgPathData: 'M8.295 16.59l4.58-4.59-4.58-4.59L9.705 6l6 6-6 6-1.41-1.41z'
8335
+ svgPathData: 'm8.295 16.59 4.58-4.59-4.58-4.59L9.705 6l6 6-6 6-1.41-1.41z'
8223
8336
  };
8224
8337
  var chevron_up = {
8225
8338
  name: 'chevron_up',
8226
8339
  prefix: 'eds',
8227
8340
  height: '24',
8228
8341
  width: '24',
8229
- svgPathData: 'M7.41 15.705l4.59-4.58 4.59 4.58 1.41-1.41-6-6-6 6 1.41 1.41z'
8342
+ svgPathData: 'm7.41 15.705 4.59-4.58 4.59 4.58 1.41-1.41-6-6-6 6 1.41 1.41z'
8230
8343
  };
8231
8344
 
8232
- var typography$b = tokens$6.typography.ui.accordion_header,
8345
+ var typography$c = tokens$6.typography.ui.accordion_header,
8233
8346
  _tokens$colors$d = tokens$6.colors,
8234
8347
  _tokens$colors$ui$4 = _tokens$colors$d.ui,
8235
8348
  backgroundDefault = _tokens$colors$ui$4.background__default.rgba,
@@ -8240,6 +8353,7 @@ var typography$b = tokens$6.typography.ui.accordion_header,
8240
8353
  disabledIconColor$1 = _tokens$colors$intera$b.disabled__fill.rgba,
8241
8354
  disabledColor$2 = _tokens$colors$intera$b.disabled__text.rgba,
8242
8355
  focusOutlineColor$6 = _tokens$colors$intera$b.focus.rgba,
8356
+ defaultIconColor = _tokens$colors$d.text.static_icons__default.rgba,
8243
8357
  mediumSpacing = tokens$6.spacings.comfortable.medium;
8244
8358
  var accordion = {
8245
8359
  border: {
@@ -8260,7 +8374,7 @@ var accordion = {
8260
8374
  header: {
8261
8375
  height: '48px',
8262
8376
  background: backgroundDefault,
8263
- typography: typography$b,
8377
+ typography: typography$c,
8264
8378
  spacings: {
8265
8379
  left: mediumSpacing,
8266
8380
  right: mediumSpacing
@@ -8276,12 +8390,12 @@ var accordion = {
8276
8390
  }
8277
8391
  },
8278
8392
  disabled: {
8279
- typography: Object.assign(Object.assign({}, typography$b), {
8393
+ typography: Object.assign(Object.assign({}, typography$c), {
8280
8394
  color: disabledColor$2
8281
8395
  })
8282
8396
  },
8283
8397
  active: {
8284
- typography: Object.assign(Object.assign({}, typography$b), {
8398
+ typography: Object.assign(Object.assign({}, typography$c), {
8285
8399
  color: activatedColor
8286
8400
  })
8287
8401
  },
@@ -8297,6 +8411,11 @@ var accordion = {
8297
8411
  right: mediumSpacing,
8298
8412
  top: mediumSpacing
8299
8413
  }
8414
+ },
8415
+ icon: {
8416
+ typography: {
8417
+ color: defaultIconColor
8418
+ }
8300
8419
  }
8301
8420
  }
8302
8421
  };
@@ -8325,13 +8444,10 @@ var AccordionHeaderTitle = /*#__PURE__*/React.forwardRef(function AccordionHeade
8325
8444
  }), void 0);
8326
8445
  }); // AccordionHeaderTitle.displayName = 'AccordionHeaderTitle'
8327
8446
 
8328
- Icon$1.add({
8329
- chevron_down: chevron_down,
8330
- chevron_up: chevron_up
8331
- });
8332
8447
  var _tokens$entities$6 = accordion.entities,
8333
8448
  header$2 = _tokens$entities$6.header,
8334
- chevronToken = _tokens$entities$6.chevron;
8449
+ chevronToken = _tokens$entities$6.chevron,
8450
+ iconToken = _tokens$entities$6.icon;
8335
8451
  var StyledAccordionHeader = styled__default['default'].div.attrs(function (_ref) {
8336
8452
  var panelId = _ref.panelId,
8337
8453
  isExpanded = _ref.isExpanded,
@@ -8347,7 +8463,7 @@ var StyledAccordionHeader = styled__default['default'].div.attrs(function (_ref)
8347
8463
  }).withConfig({
8348
8464
  displayName: "AccordionHeader__StyledAccordionHeader",
8349
8465
  componentId: "sc-cu2e95-0"
8350
- })(["", " ", " ", " &[data-focus-visible-added]:focus{", "}border-top:", ";background:", ";height:", ";margin:0;display:flex;align-items:center;box-sizing:border-box;", ""], typographyTemplate(header$2.typography), bordersTemplate(accordion.border), spacingsTemplate(header$2.spacings), outlineTemplate(header$2.states.focus.outline), function (_ref2) {
8466
+ })(["", " ", " ", " &[data-focus-visible-added]:focus{", "}border-top:", ";background:", ";height:", ";margin:0;display:flex;align-items:center;box-sizing:border-box;", " > svg{color:", ";}"], typographyTemplate(header$2.typography), bordersTemplate(accordion.border), spacingsTemplate(header$2.spacings), outlineTemplate(header$2.states.focus.outline), function (_ref2) {
8351
8467
  var parentIndex = _ref2.parentIndex;
8352
8468
  return parentIndex === 0 ? null : 'none';
8353
8469
  }, header$2.background, header$2.height, function (_ref3) {
@@ -8358,11 +8474,13 @@ var StyledAccordionHeader = styled__default['default'].div.attrs(function (_ref)
8358
8474
  }) : styled.css({
8359
8475
  color: header$2.typography.color,
8360
8476
  cursor: 'pointer',
8361
- ':hover': {
8362
- background: header$2.states.hover.background
8477
+ '@media (hover: hover) and (pointer: fine)': {
8478
+ ':hover': {
8479
+ background: header$2.states.hover.background
8480
+ }
8363
8481
  }
8364
8482
  });
8365
- });
8483
+ }, iconToken.typography.color);
8366
8484
  var StyledIcon$1 = styled__default['default'](Icon$1).withConfig({
8367
8485
  displayName: "AccordionHeader__StyledIcon",
8368
8486
  componentId: "sc-cu2e95-1"
@@ -8412,8 +8530,8 @@ var AccordionHeader = /*#__PURE__*/React.forwardRef(function AccordionHeader(_a,
8412
8530
  };
8413
8531
 
8414
8532
  var chevron = jsxRuntime.exports.jsx(StyledIcon$1, {
8415
- name: isExpanded ? 'chevron_up' : 'chevron_down',
8416
- size: 16,
8533
+ data: isExpanded ? chevron_up : chevron_down,
8534
+ size: 24,
8417
8535
  chevronPosition: chevronPosition,
8418
8536
  color: disabled ? chevronToken.states.disabled.background : chevronToken.background
8419
8537
  }, "".concat(id, "-icon"));
@@ -8771,7 +8889,7 @@ var StyledTab = styled__default['default'].button.attrs(function (_ref) {
8771
8889
  }).withConfig({
8772
8890
  displayName: "Tab__StyledTab",
8773
8891
  componentId: "sc-scjkct-0"
8774
- })(["appearance:none;box-sizing:border-box;font-family:inherit;border:none;outline:none;font-size:1rem;height:", ";", " color:", ";background-color:", ";position:relative;white-space:nowrap;text-overflow:ellipsis;overflow-x:hidden;&:focus{outline:none;}&[data-focus],&[data-focus-visible-added]:focus{", "}&::-moz-focus-inner{border:0;}&[data-hover],&:hover{color:", ";", "}", " ", ""], tab.height, spacingsTemplate(tab.spacings), function (_ref2) {
8892
+ })(["appearance:none;box-sizing:border-box;font-family:inherit;border:none;outline:none;font-size:1rem;height:", ";", " color:", ";background-color:", ";position:relative;white-space:nowrap;text-overflow:ellipsis;overflow-x:hidden;&:focus{outline:none;}&[data-focus],&[data-focus-visible-added]:focus{", "}&::-moz-focus-inner{border:0;}@media (hover:hover) and (pointer:fine){&[data-hover],&:hover{color:", ";", "}}", " ", ""], tab.height, spacingsTemplate(tab.spacings), function (_ref2) {
8775
8893
  var active = _ref2.active;
8776
8894
  return active ? tab.states.active.typography.color : tab.typography.color;
8777
8895
  }, tab.background, outlineTemplate(tab.states.focus.outline), function (_ref3) {
@@ -8896,21 +9014,19 @@ var StyledCard = styled__default['default'].div.withConfig({
8896
9014
  }, bordersTemplate(primary$3.border), spacingsTemplate(primary$3.spacings));
8897
9015
  var Card$1 = /*#__PURE__*/React.forwardRef(function Card(_a, ref) {
8898
9016
  var children = _a.children,
8899
- className = _a.className,
8900
9017
  _a$variant = _a.variant,
8901
9018
  variant = _a$variant === void 0 ? 'default' : _a$variant,
8902
9019
  onClick = _a.onClick,
8903
- rest = __rest(_a, ["children", "className", "variant", "onClick"]);
9020
+ rest = __rest(_a, ["children", "variant", "onClick"]);
8904
9021
 
8905
9022
  var cursor = onClick ? 'pointer' : 'default';
8906
9023
  var cardVariant = variant === 'default' ? 'primary' : variant;
8907
9024
  var token = tokens$2[cardVariant];
8908
- var props = Object.assign(Object.assign({}, rest), {
8909
- className: className,
9025
+ var props = Object.assign({
8910
9026
  ref: ref,
8911
9027
  background: token.background,
8912
9028
  cursor: cursor
8913
- });
9029
+ }, rest);
8914
9030
  return jsxRuntime.exports.jsx(StyledCard, Object.assign({}, props, {
8915
9031
  onClick: onClick
8916
9032
  }, {
@@ -8921,26 +9037,23 @@ var Card$1 = /*#__PURE__*/React.forwardRef(function Card(_a, ref) {
8921
9037
  var StyledCardActions = styled__default['default'].div.withConfig({
8922
9038
  displayName: "CardActions__StyledCardActions",
8923
9039
  componentId: "sc-1d5vskp-0"
8924
- })(["display:grid;grid-gap:8px;grid-auto-flow:column;grid-auto-columns:max-content;align-items:center;justify-content:", ";"], function (_ref) {
9040
+ })(["display:grid;grid-gap:8px;grid-auto-flow:column;align-items:center;justify-content:", ";"], function (_ref) {
8925
9041
  var justifyContent = _ref.justifyContent;
8926
9042
  return justifyContent;
8927
9043
  });
8928
9044
  var CardActions = /*#__PURE__*/React.forwardRef(function CardActions(_a, ref) {
8929
9045
  var children = _a.children,
8930
- _a$className = _a.className,
8931
- className = _a$className === void 0 ? '' : _a$className,
8932
9046
  _a$alignRight = _a.alignRight,
8933
9047
  alignRight = _a$alignRight === void 0 ? false : _a$alignRight,
8934
9048
  _a$meta = _a.meta,
8935
9049
  meta = _a$meta === void 0 ? '' : _a$meta,
8936
- rest = __rest(_a, ["children", "className", "alignRight", "meta"]);
9050
+ rest = __rest(_a, ["children", "alignRight", "meta"]);
8937
9051
 
8938
9052
  var justifyContent = alignRight ? 'flex-end' : 'flex-start';
8939
- var props = Object.assign(Object.assign({}, rest), {
8940
- className: className,
9053
+ var props = Object.assign({
8941
9054
  ref: ref,
8942
9055
  justifyContent: justifyContent
8943
- });
9056
+ }, rest);
8944
9057
  return jsxRuntime.exports.jsxs(StyledCardActions, Object.assign({}, props, {
8945
9058
  children: [children, meta !== '' && jsxRuntime.exports.jsx(Typography, Object.assign({
8946
9059
  variant: "caption"
@@ -8961,14 +9074,11 @@ var StyledCardMedia = styled__default['default'].div.withConfig({
8961
9074
  });
8962
9075
  var CardMedia = /*#__PURE__*/React.forwardRef(function CardMedia(_a, ref) {
8963
9076
  var children = _a.children,
8964
- _a$className = _a.className,
8965
- className = _a$className === void 0 ? '' : _a$className,
8966
9077
  _a$fullWidth = _a.fullWidth,
8967
9078
  fullWidth = _a$fullWidth === void 0 ? false : _a$fullWidth,
8968
- rest = __rest(_a, ["children", "className", "fullWidth"]);
9079
+ rest = __rest(_a, ["children", "fullWidth"]);
8969
9080
 
8970
9081
  var props = Object.assign(Object.assign({}, rest), {
8971
- className: className,
8972
9082
  ref: ref,
8973
9083
  fullWidth: fullWidth
8974
9084
  });
@@ -8984,12 +9094,9 @@ var StyledCardHeader = styled__default['default'].div.withConfig({
8984
9094
  })(["display:flex;justify-content:space-between;align-items:center;>:not(:first-child){margin-left:", ";}"], spacings$5.left);
8985
9095
  var CardHeader = /*#__PURE__*/React.forwardRef(function CardHeader(_a, ref) {
8986
9096
  var children = _a.children,
8987
- _a$className = _a.className,
8988
- className = _a$className === void 0 ? '' : _a$className,
8989
- rest = __rest(_a, ["children", "className"]);
9097
+ rest = __rest(_a, ["children"]);
8990
9098
 
8991
9099
  var props = Object.assign(Object.assign({}, rest), {
8992
- className: className,
8993
9100
  ref: ref
8994
9101
  });
8995
9102
  return jsxRuntime.exports.jsx(StyledCardHeader, Object.assign({}, props, {
@@ -9003,12 +9110,9 @@ var StyledCardHeaderTitle = styled__default['default'].div.withConfig({
9003
9110
  })(["display:grid;flex-grow:2;grid-auto-columns:auto;"]);
9004
9111
  var CardHeaderTitle = /*#__PURE__*/React.forwardRef(function CardHeaderTitle(_a, ref) {
9005
9112
  var children = _a.children,
9006
- _a$className = _a.className,
9007
- className = _a$className === void 0 ? '' : _a$className,
9008
- rest = __rest(_a, ["children", "className"]);
9113
+ rest = __rest(_a, ["children"]);
9009
9114
 
9010
9115
  var props = Object.assign(Object.assign({}, rest), {
9011
- className: className,
9012
9116
  ref: ref
9013
9117
  });
9014
9118
  return jsxRuntime.exports.jsx(StyledCardHeaderTitle, Object.assign({}, props, {
@@ -9053,11 +9157,11 @@ var background$d = token$1.background,
9053
9157
  height$3 = token$1.height,
9054
9158
  spacings$4 = token$1.spacings,
9055
9159
  border$4 = token$1.border,
9056
- typography$a = token$1.typography;
9160
+ typography$b = token$1.typography;
9057
9161
  var StyledTopBar = styled__default['default'].header.withConfig({
9058
9162
  displayName: "TopBar__StyledTopBar",
9059
9163
  componentId: "sc-1yj236q-0"
9060
- })(["height:", ";top:0;position:sticky;background:", ";box-sizing:border-box;z-index:250;display:grid;grid-column-gap:", ";grid-template-columns:auto 1fr auto;grid-template-areas:'left center right';align-items:center;", " ", ";", ""], height$3, background$d, spacings$4.left, bordersTemplate(border$4), spacingsTemplate(spacings$4), typographyTemplate(typography$a));
9164
+ })(["height:", ";top:0;position:sticky;background:", ";box-sizing:border-box;z-index:250;display:grid;grid-column-gap:", ";grid-template-columns:auto 1fr auto;grid-template-areas:'left center right';align-items:center;", " ", ";", ""], height$3, background$d, spacings$4.left, bordersTemplate(border$4), spacingsTemplate(spacings$4), typographyTemplate(typography$b));
9061
9165
  var TopBar$1 = /*#__PURE__*/React.forwardRef(function TopBar(_a, ref) {
9062
9166
  var children = _a.children,
9063
9167
  props = __rest(_a, ["children"]);
@@ -9254,16 +9358,13 @@ var StyledDivider$2 = styled__default['default'](Divider).withConfig({
9254
9358
  })(["width:100%;margin-bottom:", ";"], dialog.entities.divider.spacings.bottom);
9255
9359
  var Title = /*#__PURE__*/React.forwardRef(function Title(_a, ref) {
9256
9360
  var children = _a.children,
9257
- _a$className = _a.className,
9258
- className = _a$className === void 0 ? '' : _a$className,
9259
- props = __rest(_a, ["children", "className"]);
9361
+ rest = __rest(_a, ["children"]);
9260
9362
 
9261
- return jsxRuntime.exports.jsxs(React.Fragment, {
9363
+ return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment, {
9262
9364
  children: [jsxRuntime.exports.jsx(StyledTitle, Object.assign({
9263
- className: className,
9264
9365
  id: "eds-dialog-title",
9265
9366
  ref: ref
9266
- }, props, {
9367
+ }, rest, {
9267
9368
  children: children
9268
9369
  }), void 0), children && jsxRuntime.exports.jsx(StyledDivider$2, {
9269
9370
  color: "medium",
@@ -9285,19 +9386,18 @@ var StyledDivider$1 = styled__default['default'](Divider).withConfig({
9285
9386
  })(["width:100%;margin-bottom:", ";"], dialog.entities.divider.spacings.bottom);
9286
9387
  var CustomContent = /*#__PURE__*/React.forwardRef(function CustomContent(_a, ref) {
9287
9388
  var children = _a.children,
9288
- _a$className = _a.className,
9289
- className = _a$className === void 0 ? '' : _a$className,
9290
9389
  _a$scrollable = _a.scrollable,
9291
9390
  scrollable = _a$scrollable === void 0 ? false : _a$scrollable,
9292
- rest = __rest(_a, ["children", "className", "scrollable"]);
9391
+ rest = __rest(_a, ["children", "scrollable"]);
9293
9392
 
9294
- return jsxRuntime.exports.jsxs(React.Fragment, {
9393
+ var props = Object.assign({
9394
+ scrollable: scrollable,
9395
+ ref: ref
9396
+ }, rest);
9397
+ return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment, {
9295
9398
  children: [jsxRuntime.exports.jsx(StyledCustomContent, Object.assign({
9296
- className: className,
9297
- scrollable: scrollable,
9298
- id: "eds-dialog-customcontent",
9299
- ref: ref
9300
- }, rest, {
9399
+ id: "eds-dialog-customcontent"
9400
+ }, props, {
9301
9401
  children: children
9302
9402
  }), void 0), children && scrollable && jsxRuntime.exports.jsx(StyledDivider$1, {
9303
9403
  color: "medium",
@@ -9316,8 +9416,8 @@ Dialog.CustomContent.displayName = 'Dialog.CustomContent';
9316
9416
 
9317
9417
  var background$a = tokens$6.colors.ui.background__scrim.rgba;
9318
9418
  var scrim = {
9319
- width: '100vw',
9320
- height: '100vh',
9419
+ width: '100%',
9420
+ height: '100%',
9321
9421
  background: background$a
9322
9422
  };
9323
9423
 
@@ -9343,6 +9443,8 @@ var Scrim = /*#__PURE__*/React.forwardRef(function Scrim(_a, ref) {
9343
9443
  isDismissable: isDismissable,
9344
9444
  ref: ref
9345
9445
  });
9446
+ var overflowState = document.body.style.overflow;
9447
+ useHideBodyScroll(overflowState);
9346
9448
  useGlobalKeyPress('Escape', function (e) {
9347
9449
  if (isDismissable && onClose) {
9348
9450
  onClose(e, false);
@@ -9381,27 +9483,31 @@ var _tokens$colors$b = tokens$6.colors,
9381
9483
  focusColor$1 = _tokens$colors$intera$9.focus.rgba,
9382
9484
  labelColor = _tokens$colors$b.text.static_icons__tertiary.rgba,
9383
9485
  borderRadius$5 = tokens$6.shape.corners.borderRadius,
9384
- _tokens$spacings$comf$9 = tokens$6.spacings.comfortable,
9385
- small$5 = _tokens$spacings$comf$9.small,
9386
- x_large = _tokens$spacings$comf$9.x_large,
9387
- xxx_large = _tokens$spacings$comf$9.xxx_large,
9388
- _tokens$typography$pa = tokens$6.typography.paragraph.caption,
9389
- fontSize = _tokens$typography$pa.fontSize,
9390
- lineHeight = _tokens$typography$pa.lineHeight;
9486
+ _tokens$spacings$comf$a = tokens$6.spacings.comfortable,
9487
+ small$4 = _tokens$spacings$comf$a.small,
9488
+ x_large = _tokens$spacings$comf$a.x_large,
9489
+ xxx_large = _tokens$spacings$comf$a.xxx_large,
9490
+ typography$a = tokens$6.typography;
9391
9491
  var tableOfContents = {
9492
+ typography: Object.assign(Object.assign({}, typography$a.navigation.button), {
9493
+ color: labelColor
9494
+ }),
9495
+ spacings: {
9496
+ top: xxx_large,
9497
+ bottom: x_large
9498
+ },
9392
9499
  entities: {
9393
9500
  icon: {
9394
9501
  background: primaryColor$4,
9395
9502
  spacings: {
9396
- right: small$5
9503
+ right: small$4
9397
9504
  }
9398
9505
  },
9399
9506
  links: {
9400
9507
  width: 'calc(189px - 36px)',
9401
- typography: {
9402
- fontSize: fontSize,
9403
- lineHeight: lineHeight
9404
- },
9508
+ typography: Object.assign(Object.assign({}, typography$a.navigation.button), {
9509
+ color: primaryColor$4
9510
+ }),
9405
9511
  spacings: {
9406
9512
  top: '10px',
9407
9513
  bottom: '10px',
@@ -9439,17 +9545,10 @@ var tableOfContents = {
9439
9545
  background: primaryHover$3
9440
9546
  }
9441
9547
  },
9442
- typography: {
9548
+ typography: Object.assign(Object.assign({}, typography$a.navigation.button), {
9443
9549
  color: primaryHover$3
9444
- }
9550
+ })
9445
9551
  }
9446
- },
9447
- typography: {
9448
- color: labelColor
9449
- },
9450
- spacings: {
9451
- top: xxx_large,
9452
- bottom: x_large
9453
9552
  }
9454
9553
  };
9455
9554
 
@@ -9474,11 +9573,9 @@ var TableOfContents$1 = /*#__PURE__*/React.forwardRef(function TableOfContents(_
9474
9573
  sticky = _a$sticky === void 0 ? false : _a$sticky,
9475
9574
  _a$label = _a.label,
9476
9575
  label = _a$label === void 0 ? '' : _a$label,
9477
- className = _a.className,
9478
- rest = __rest(_a, ["children", "sticky", "label", "className"]);
9576
+ rest = __rest(_a, ["children", "sticky", "label"]);
9479
9577
 
9480
9578
  return jsxRuntime.exports.jsxs(StyledTableOfContents, Object.assign({
9481
- className: className,
9482
9579
  ref: ref,
9483
9580
  label: label,
9484
9581
  sticky: sticky
@@ -9491,12 +9588,12 @@ var TableOfContents$1 = /*#__PURE__*/React.forwardRef(function TableOfContents(_
9491
9588
  children: children
9492
9589
  }, void 0)]
9493
9590
  }), void 0);
9494
- }); // TableOfContents.displayName = 'eds-toc'
9591
+ });
9495
9592
 
9496
9593
  var StyledLinkItem = styled__default['default'].li.withConfig({
9497
9594
  displayName: "LinkItem__StyledLinkItem",
9498
9595
  componentId: "sc-1tfuad4-0"
9499
- })(["list-style:none;margin:0;padding:0;a{text-decoration:none;", " ", " height:", ";width:", ";display:block;position:relative;svg{fill:", ";margin-right:", ";vertical-align:text-bottom;}span{max-width:", ";overflow:hidden;white-space:nowrap;text-overflow:ellipsis;vertical-align:text-bottom;display:inline-block;}&:focus{", ";}&:hover{", " background:", ";", " svg{fill:", ";}}&:active{outline:none;}}"], typographyTemplate(tableOfContents.entities.links.typography), spacingsTemplate(tableOfContents.entities.links.spacings), tableOfContents.entities.links.typography.lineHeight, tableOfContents.entities.links.width, tableOfContents.entities.icon.background, tableOfContents.entities.icon.spacings.right, tableOfContents.entities.span.maxWidth, outlineTemplate(tableOfContents.states.focus.outline), typographyTemplate(tableOfContents.states.hover.typography), tableOfContents.states.hover.background, bordersTemplate(tableOfContents.states.hover.border), tableOfContents.states.hover.entities.icon.background);
9596
+ })(["list-style:none;margin:0;padding:0;a{text-decoration:none;", " ", " height:", ";width:", ";display:block;position:relative;svg{fill:", ";margin-right:", ";vertical-align:text-bottom;}span{max-width:", ";overflow:hidden;white-space:nowrap;text-overflow:ellipsis;vertical-align:text-bottom;display:inline-block;}&:focus{", ";}@media (hover:hover) and (pointer:fine){&:hover{", " background:", ";", " svg{fill:", ";}}}&:active{outline:none;}}"], typographyTemplate(tableOfContents.entities.links.typography), spacingsTemplate(tableOfContents.entities.links.spacings), tableOfContents.entities.links.typography.lineHeight, tableOfContents.entities.links.width, tableOfContents.entities.icon.background, tableOfContents.entities.icon.spacings.right, tableOfContents.entities.span.maxWidth, outlineTemplate(tableOfContents.states.focus.outline), typographyTemplate(tableOfContents.states.hover.typography), tableOfContents.states.hover.background, bordersTemplate(tableOfContents.states.hover.border), tableOfContents.states.hover.entities.icon.background);
9500
9597
  var LinkItem = /*#__PURE__*/React.forwardRef(function LinkItem(_a, ref) {
9501
9598
  var children = _a.children,
9502
9599
  props = __rest(_a, ["children"]);
@@ -9515,9 +9612,9 @@ TableOfContents.LinkItem.displayName = 'TableOfContents.LinkItem';
9515
9612
  var _tokens$colors$ui$2 = tokens$6.colors.ui,
9516
9613
  background$8 = _tokens$colors$ui$2.background__default.rgba,
9517
9614
  borderColor = _tokens$colors$ui$2.background__light.rgba,
9518
- _tokens$spacings$comf$8 = tokens$6.spacings.comfortable,
9519
- spacingXXS = _tokens$spacings$comf$8.xx_small,
9520
- spacingMedium$4 = _tokens$spacings$comf$8.medium;
9615
+ _tokens$spacings$comf$9 = tokens$6.spacings.comfortable,
9616
+ spacingXXS = _tokens$spacings$comf$9.xx_small,
9617
+ spacingMedium$4 = _tokens$spacings$comf$9.medium;
9521
9618
  var comfortable$2 = {
9522
9619
  background: background$8,
9523
9620
  spacings: {
@@ -9561,15 +9658,12 @@ var SideSheet = /*#__PURE__*/React.forwardRef(function SideSheet(_a, ref) {
9561
9658
  _a$title = _a.title,
9562
9659
  title = _a$title === void 0 ? '' : _a$title,
9563
9660
  children = _a.children,
9564
- _a$className = _a.className,
9565
- className = _a$className === void 0 ? '' : _a$className,
9566
9661
  _a$open = _a.open,
9567
9662
  open = _a$open === void 0 ? true : _a$open,
9568
9663
  onClose = _a.onClose,
9569
- rest = __rest(_a, ["variant", "title", "children", "className", "open", "onClose"]);
9664
+ rest = __rest(_a, ["variant", "title", "children", "open", "onClose"]);
9570
9665
 
9571
9666
  var props = Object.assign(Object.assign({}, rest), {
9572
- className: className,
9573
9667
  ref: ref,
9574
9668
  width: variants[variant]
9575
9669
  }); // Controller must set open={false} when pressing the close button
@@ -9597,10 +9691,10 @@ var SideSheet = /*#__PURE__*/React.forwardRef(function SideSheet(_a, ref) {
9597
9691
  }), void 0);
9598
9692
  });
9599
9693
 
9600
- var _tokens$spacings$comf$7 = tokens$6.spacings.comfortable,
9601
- x_small$2 = _tokens$spacings$comf$7.x_small,
9602
- small$4 = _tokens$spacings$comf$7.small,
9603
- medium$2 = _tokens$spacings$comf$7.medium,
9694
+ var _tokens$spacings$comf$8 = tokens$6.spacings.comfortable,
9695
+ x_small$3 = _tokens$spacings$comf$8.x_small,
9696
+ small$3 = _tokens$spacings$comf$8.small,
9697
+ medium$2 = _tokens$spacings$comf$8.medium,
9604
9698
  chipTypography = tokens$6.typography.ui.chip__badge,
9605
9699
  _tokens$colors$a = tokens$6.colors,
9606
9700
  _tokens$colors$ui$1 = _tokens$colors$a.ui,
@@ -9628,8 +9722,8 @@ var enabled$6 = {
9628
9722
  style: 'solid'
9629
9723
  },
9630
9724
  spacings: {
9631
- left: x_small$2,
9632
- right: small$4
9725
+ left: x_small$3,
9726
+ right: small$3
9633
9727
  },
9634
9728
  typography: Object.assign(Object.assign({}, chipTypography), {
9635
9729
  color: primaryColor$3
@@ -9745,9 +9839,9 @@ var StyledChips = styled__default['default'].div.attrs(function (_ref) {
9745
9839
  }).withConfig({
9746
9840
  displayName: "Chip__StyledChips",
9747
9841
  componentId: "sc-wzsllq-0"
9748
- })(["background:", ";height:", ";width:fit-content;display:grid;grid-gap:8px;grid-auto-flow:column;grid-auto-columns:max-content;align-items:center;z-index:10;svg{fill:", ";}&:hover{color:", ";svg{fill:", ";}}&:focus{outline:none;}&[data-focus-visible-added]:focus{", "}", " ", " ", " ", " ", " ", " ", " ", ""], background$6, height$1, typography$9.color, states$3.hover.typography.color, states$3.hover.typography.color, outlineTemplate(states$3.focus.outline), bordersTemplate(border$2), spacingsTemplate(spacings$2), typographyTemplate(typography$9), function (_ref2) {
9842
+ })(["background:", ";height:", ";width:fit-content;display:grid;grid-gap:8px;grid-auto-flow:column;grid-auto-columns:max-content;align-items:center;z-index:10;svg{fill:", ";}@media (hover:hover) and (pointer:fine){&:hover{color:", ";svg{fill:", ";}}}&:focus{outline:none;}&[data-focus-visible-added]:focus{", "}", " ", " ", " ", " ", " ", " ", " ", ""], background$6, height$1, typography$9.color, states$3.hover.typography.color, states$3.hover.typography.color, outlineTemplate(states$3.focus.outline), bordersTemplate(border$2), spacingsTemplate(spacings$2), typographyTemplate(typography$9), function (_ref2) {
9749
9843
  var clickable = _ref2.clickable;
9750
- return clickable && styled.css(["&:hover{cursor:pointer;}"]);
9844
+ return clickable && styled.css(["@media (hover:hover) and (pointer:fine){&:hover{cursor:pointer;}}"]);
9751
9845
  }, function (_ref3) {
9752
9846
  var variant = _ref3.variant;
9753
9847
 
@@ -9756,14 +9850,14 @@ var StyledChips = styled__default['default'].div.attrs(function (_ref) {
9756
9850
  return styled.css(["background:", ";"], states$3.active.background);
9757
9851
 
9758
9852
  case 'error':
9759
- return styled.css(["background:", ";color:", ";svg{fill:", ";}", ";&:hover{border-color:", ";color:", ";svg{fill:", ";}}"], error.background, error.typography.color, error.entities.icon.typography.color, bordersTemplate(error.border), error.states.hover.typography.color, error.states.hover.typography.color, error.states.hover.typography.color);
9853
+ return styled.css(["background:", ";color:", ";svg{fill:", ";}", ";@media (hover:hover) and (pointer:fine){&:hover{border-color:", ";color:", ";svg{fill:", ";}}}"], error.background, error.typography.color, error.entities.icon.typography.color, bordersTemplate(error.border), error.states.hover.typography.color, error.states.hover.typography.color, error.states.hover.typography.color);
9760
9854
 
9761
9855
  default:
9762
9856
  return '';
9763
9857
  }
9764
9858
  }, function (_ref4) {
9765
9859
  var disabled = _ref4.disabled;
9766
- return disabled && styled.css(["cursor:not-allowed;background:", ";color:", ";svg{fill:", ";}&:hover{color:", ";cursor:not-allowed;svg{fill:", ";}}"], background$6, states$3.disabled.typography.color, states$3.disabled.typography.color, states$3.disabled.typography.color, states$3.disabled.typography.color);
9860
+ return disabled && styled.css(["cursor:not-allowed;background:", ";color:", ";svg{fill:", ";}@media (hover:hover) and (pointer:fine){&:hover{color:", ";cursor:not-allowed;svg{fill:", ";}}}"], background$6, states$3.disabled.typography.color, states$3.disabled.typography.color, states$3.disabled.typography.color, states$3.disabled.typography.color);
9767
9861
  }, function (_ref5) {
9768
9862
  var deletable = _ref5.deletable;
9769
9863
  return deletable && styled.css(["padding-right:4px;"]);
@@ -9903,7 +9997,7 @@ var _tokens$colors$9 = tokens$6.colors,
9903
9997
  primaryHoverAlt$4 = _tokens$colors$intera$7.primary__hover_alt.rgba,
9904
9998
  primaryColor$2 = _tokens$colors$intera$7.primary__resting.rgba,
9905
9999
  placeholderColor = _tokens$colors$9.text.static_icons__tertiary.rgba,
9906
- small$3 = tokens$6.spacings.comfortable.small,
10000
+ small$2 = tokens$6.spacings.comfortable.small,
9907
10001
  typography$8 = tokens$6.typography.input.text;
9908
10002
  var search = {
9909
10003
  background: background$5,
@@ -9916,8 +10010,8 @@ var search = {
9916
10010
  height: '48px'
9917
10011
  },
9918
10012
  spacings: {
9919
- left: small$3,
9920
- right: small$3,
10013
+ left: small$2,
10014
+ right: small$2,
9921
10015
  top: '6px',
9922
10016
  bottom: '6px'
9923
10017
  },
@@ -9966,11 +10060,6 @@ var search = {
9966
10060
  }
9967
10061
  };
9968
10062
 
9969
- var icons$1 = {
9970
- search: search$1,
9971
- close: close
9972
- };
9973
- Icon$1.add(icons$1);
9974
10063
  var height = search.height,
9975
10064
  spacings$1 = search.spacings,
9976
10065
  background$4 = search.background,
@@ -9989,7 +10078,7 @@ var Container$2 = styled__default['default'].span.withConfig({
9989
10078
  return isFocused && styled.css(["", ""], bordersTemplate(states$2.focus.border));
9990
10079
  }, placeholder.typography.color, function (_ref2) {
9991
10080
  var disabled = _ref2.disabled;
9992
- return disabled ? styled.css(["cursor:not-allowed;"]) : styled.css(["&:hover{", " cursor:text;}"], bordersTemplate(states$2.focus.border));
10081
+ return disabled ? styled.css(["cursor:not-allowed;"]) : styled.css(["@media (hover:hover) and (pointer:fine){&:hover{", " cursor:text;}}"], bordersTemplate(states$2.focus.border));
9993
10082
  }, clickbound.offset, clickbound.height);
9994
10083
  var Input$4 = styled__default['default'].input.withConfig({
9995
10084
  displayName: "Search__Input",
@@ -10003,7 +10092,7 @@ var InsideButton = styled__default['default'].div.withConfig({
10003
10092
  componentId: "sc-v8l23u-2"
10004
10093
  })(["", " display:flex;align-items:center;visibility:hidden;z-index:1;padding:4px;height:16px;width:16px;position:relative;&::after{z-index:-1;position:absolute;top:-", ";left:0;width:100%;height:", ";content:'';}&::before{position:absolute;top:0;left:0;width:auto;min-height:auto;content:'';}", ""], bordersTemplate(icon$1.border), icon$1.clickbound.offset.top, icon$1.clickbound.height, function (_ref4) {
10005
10094
  var isActive = _ref4.isActive;
10006
- return isActive && styled.css(["visibility:visible;&:hover{cursor:pointer;background:", ";}"], icon$1.states.hover.background);
10095
+ return isActive && styled.css(["visibility:visible;@media (hover:hover) and (pointer:fine){&:hover{cursor:pointer;background:", ";}}"], icon$1.states.hover.background);
10007
10096
  });
10008
10097
  var Search = /*#__PURE__*/React.forwardRef(function Search(_a, ref) {
10009
10098
  var _onChange = _a.onChange,
@@ -10097,7 +10186,7 @@ var Search = /*#__PURE__*/React.forwardRef(function Search(_a, ref) {
10097
10186
  };
10098
10187
 
10099
10188
  var isFocused = state.isFocused;
10100
- var size = 16;
10189
+ var size = 24;
10101
10190
  var containerProps = {
10102
10191
  isFocused: isFocused,
10103
10192
  className: className,
@@ -10148,14 +10237,14 @@ var Search = /*#__PURE__*/React.forwardRef(function Search(_a, ref) {
10148
10237
  };
10149
10238
  return jsxRuntime.exports.jsxs(Container$2, Object.assign({}, containerProps, {
10150
10239
  children: [jsxRuntime.exports.jsx(Icon$1, {
10151
- name: "search",
10240
+ data: search$1,
10152
10241
  "aria-hidden": true,
10153
10242
  size: size
10154
10243
  }, void 0), jsxRuntime.exports.jsx(Input$4, Object.assign({}, inputProps), void 0), jsxRuntime.exports.jsx(InsideButton, Object.assign({}, clearButtonProps, {
10155
10244
  "aria-label": "Clear search"
10156
10245
  }, {
10157
10246
  children: jsxRuntime.exports.jsx(Icon$1, {
10158
- name: "close",
10247
+ data: close,
10159
10248
  size: size
10160
10249
  }, void 0)
10161
10250
  }), void 0)]
@@ -10309,8 +10398,8 @@ var handle$1 = slider.entities.handle,
10309
10398
  _disabled = slider.states.disabled;
10310
10399
  var track$1 = styled.css(["width:100%;height:100%;cursor:pointer;background:none;"]);
10311
10400
  var thumb = styled.css(["", " height:", ";width:", ";background:", ";cursor:pointer;position:relative;z-index:1;"], bordersTemplate(handle$1.border), handle$1.height, handle$1.width, handle$1.background);
10312
- var thumbHover = styled.css(["box-shadow:0px 0px 0px 6px ", ";border-color:", ";"], handle$1.states.hover.background, handle$1.states.hover.border.color);
10313
- var thumbHoverAndDisabled = styled.css(["cursor:not-allowed;box-shadow:none;"]);
10401
+ var thumbHover = styled.css(["@media (hover:hover) and (pointer:fine){box-shadow:0px 0px 0px 6px ", ";border-color:", ";}"], handle$1.states.hover.background, handle$1.states.hover.border.color);
10402
+ var thumbHoverAndDisabled = styled.css(["@media (hover:hover) and (pointer:fine){cursor:not-allowed;box-shadow:none;}"]);
10314
10403
  var thumbDisabled = styled.css(["background-color:", ";border-color:", ";"], _disabled.background, _disabled.border.color);
10315
10404
  var StyledSliderInput = styled__default['default'].input.attrs(function () {
10316
10405
  return {
@@ -10366,7 +10455,7 @@ var wrapperGrid = styled.css(["display:grid;grid-template-rows:max-content 24px;
10366
10455
  var RangeWrapper = styled__default['default'].div.withConfig({
10367
10456
  displayName: "Slider__RangeWrapper",
10368
10457
  componentId: "sc-n1grrg-0"
10369
- })(["--a:", ";--b:", ";--min:", ";--max:", ";--dif:calc(var(--max) - var(--min));--realWidth:calc(100% - 12px);", " ", " &::before,&::after{", " background:", ";}&::before{margin-left:calc( calc(", " / 2) + (var(--a) - var(--min)) / var(--dif) * var(--realWidth) );width:calc((var(--b) - var(--a)) / var(--dif) * var(--realWidth));}&::after{margin-left:calc( calc(", " / 2) + (var(--b) - var(--min)) / var(--dif) * var(--realWidth) );width:calc((var(--a) - var(--b)) / var(--dif) * var(--realWidth));}&:hover:not([disabled]){", " &::before,&::after{background:", ";}}"], function (_ref) {
10458
+ })(["--a:", ";--b:", ";--min:", ";--max:", ";--dif:calc(var(--max) - var(--min));--realWidth:calc(100% - 12px);", " ", " &::before,&::after{", " background:", ";}&::before{margin-left:calc( calc(", " / 2) + (var(--a) - var(--min)) / var(--dif) * var(--realWidth) );width:calc((var(--b) - var(--a)) / var(--dif) * var(--realWidth));}&::after{margin-left:calc( calc(", " / 2) + (var(--b) - var(--min)) / var(--dif) * var(--realWidth) );width:calc((var(--a) - var(--b)) / var(--dif) * var(--realWidth));}@media (hover:hover) and (pointer:fine){&:hover:not([disabled]){", " &::before,&::after{background:", ";}}}"], function (_ref) {
10370
10459
  var valA = _ref.valA;
10371
10460
  return valA;
10372
10461
  }, function (_ref2) {
@@ -10385,7 +10474,7 @@ var RangeWrapper = styled__default['default'].div.withConfig({
10385
10474
  var Wrapper$2 = styled__default['default'].div.withConfig({
10386
10475
  displayName: "Slider__Wrapper",
10387
10476
  componentId: "sc-n1grrg-1"
10388
- })(["--min:", ";--max:", ";--dif:calc(var(--max) - var(--min));--value:", ";--realWidth:calc(100% - 12px);", " ", " &::after{", " background:", "}&::after{margin-right:calc( (var(--max) - var(--value)) / var(--dif) * var(--realWidth) );margin-left:3px;}&:hover:not([disabled]){", " &::after{background:", ";}}"], function (_ref6) {
10477
+ })(["--min:", ";--max:", ";--dif:calc(var(--max) - var(--min));--value:", ";--realWidth:calc(100% - 12px);", " ", " &::after{", " background:", "}&::after{margin-right:calc( (var(--max) - var(--value)) / var(--dif) * var(--realWidth) );margin-left:3px;}@media (hover:hover) and (pointer:fine){&:hover:not([disabled]){", " &::after{background:", ";}}}"], function (_ref6) {
10389
10478
  var min = _ref6.min;
10390
10479
  return min;
10391
10480
  }, function (_ref7) {
@@ -10626,9 +10715,9 @@ var _tokens$colors$7 = tokens$6.colors,
10626
10715
  white = _tokens$colors$7.text.static_icons__primary_white.rgba,
10627
10716
  background$3 = _tokens$colors$7.ui.background__overlay.rgba,
10628
10717
  ui = tokens$6.typography.ui,
10629
- _tokens$spacings$comf$6 = tokens$6.spacings.comfortable,
10630
- spacingXlarge$1 = _tokens$spacings$comf$6.x_large,
10631
- spacingSmall$3 = _tokens$spacings$comf$6.small,
10718
+ _tokens$spacings$comf$7 = tokens$6.spacings.comfortable,
10719
+ spacingXlarge$1 = _tokens$spacings$comf$7.x_large,
10720
+ spacingSmall$3 = _tokens$spacings$comf$7.small,
10632
10721
  borderRadius$3 = tokens$6.shape.corners.borderRadius;
10633
10722
  var tooltip = {
10634
10723
  typography: Object.assign(Object.assign({}, ui.tooltip), {
@@ -10701,9 +10790,10 @@ var Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(_a, ref) {
10701
10790
  open = _useState6[0],
10702
10791
  setOpen = _useState6[1];
10703
10792
 
10704
- var anchorRef = React.useRef();
10705
10793
  var openTimer = React.useRef();
10706
10794
  var tooltipRef = useCombinedRefs(setPopperEl, ref);
10795
+ var anchorRef = React.useRef();
10796
+ var combinedChilddRef = useCombinedRefs(anchorRef, children === null || children === void 0 ? void 0 : children.ref);
10707
10797
  var tooltipId = useId(id, 'tooltip');
10708
10798
  var containerId = 'eds-tooltip-container';
10709
10799
  var shouldOpen = isMounted && title !== '';
@@ -10720,7 +10810,7 @@ var Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(_a, ref) {
10720
10810
  return function () {
10721
10811
  clearTimeout(openTimer.current);
10722
10812
  };
10723
- }, []);
10813
+ }, [clearTimeout]);
10724
10814
 
10725
10815
  var openTooltip = function openTooltip() {
10726
10816
  if (shouldOpen) {
@@ -10747,15 +10837,16 @@ var Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(_a, ref) {
10747
10837
  var props = Object.assign(Object.assign({
10748
10838
  open: open
10749
10839
  }, rest), attributes.popper);
10840
+ var childProps = children.props;
10750
10841
  var updatedChildren = /*#__PURE__*/React.cloneElement(children, {
10751
- ref: anchorRef,
10842
+ ref: combinedChilddRef,
10752
10843
  'aria-describedby': open ? tooltipId : null,
10753
- onMouseOver: openTooltip,
10754
- onMouseLeave: closeTooltip,
10755
- onPointerEnter: openTooltip,
10756
- onPointerLeave: closeTooltip,
10757
- onBlur: closeTooltip,
10758
- onFocus: openTooltip
10844
+ onMouseOver: joinHandlers(openTooltip, childProps.onMouseOver),
10845
+ onMouseLeave: joinHandlers(closeTooltip, childProps.onMouseLeave),
10846
+ onPointerEnter: joinHandlers(openTooltip, childProps.onPointerEnter),
10847
+ onPointerLeave: joinHandlers(closeTooltip, childProps.onPointerLeave),
10848
+ onBlur: joinHandlers(closeTooltip, childProps.onBlur),
10849
+ onFocus: joinHandlers(openTooltip, childProps.onFocus)
10759
10850
  });
10760
10851
  return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment, {
10761
10852
  children: [shouldOpen && open && /*#__PURE__*/ReactDom__namespace.createPortal(jsxRuntime.exports.jsxs(StyledTooltip, Object.assign({
@@ -10786,9 +10877,9 @@ var typography$6 = tokens$6.typography.ui.snackbar,
10786
10877
  background$2 = _tokens$colors$6.ui.background__overlay.rgba,
10787
10878
  color = _tokens$colors$6.text.static_icons__primary_white.rgba,
10788
10879
  buttonColor = _tokens$colors$6.interactive.link_in_snackbars.rgba,
10789
- _tokens$spacings$comf$5 = tokens$6.spacings.comfortable,
10790
- spacingMedium$3 = _tokens$spacings$comf$5.medium,
10791
- spacingXLarge = _tokens$spacings$comf$5.x_large,
10880
+ _tokens$spacings$comf$6 = tokens$6.spacings.comfortable,
10881
+ spacingMedium$3 = _tokens$spacings$comf$6.medium,
10882
+ spacingXLarge = _tokens$spacings$comf$6.x_large,
10792
10883
  clickbounds$1 = tokens$6.clickbounds.default__base,
10793
10884
  radius = tokens$6.shape.button.borderRadius;
10794
10885
  var snackbar = {
@@ -10828,12 +10919,17 @@ var StyledSnackbarAction = styled__default['default'].div.withConfig({
10828
10919
  displayName: "SnackbarAction__StyledSnackbarAction",
10829
10920
  componentId: "sc-1v5mjvd-0"
10830
10921
  })(["display:inline-flex;margin-left:", ";margin-top:", ";margin-bottom:", ";"], snackbar.entities.actions.spacings.left, snackbar.entities.actions.spacings.top, snackbar.entities.actions.spacings.bottom);
10831
- var SnackbarAction = function SnackbarAction(_ref) {
10832
- var children = _ref.children;
10833
- return jsxRuntime.exports.jsx(StyledSnackbarAction, {
10922
+ var SnackbarAction = /*#__PURE__*/React.forwardRef(function SnackbarAction(_a, ref) {
10923
+ var children = _a.children,
10924
+ rest = __rest(_a, ["children"]);
10925
+
10926
+ var props = Object.assign(Object.assign({}, rest), {
10927
+ ref: ref
10928
+ });
10929
+ return jsxRuntime.exports.jsx(StyledSnackbarAction, Object.assign({}, props, {
10834
10930
  children: React.Children.only(children)
10835
- }, void 0);
10836
- };
10931
+ }), void 0);
10932
+ });
10837
10933
 
10838
10934
  var StyledSnackbar = styled__default['default'](Paper).attrs(function () {
10839
10935
  return {
@@ -10842,9 +10938,15 @@ var StyledSnackbar = styled__default['default'](Paper).attrs(function () {
10842
10938
  }).withConfig({
10843
10939
  displayName: "Snackbar__StyledSnackbar",
10844
10940
  componentId: "sc-ac6no8-0"
10845
- })(["position:fixed;left:", ";bottom:", ";background-color:", ";", " ", " ", " min-height:", ";box-sizing:border-box;left:50%;transform:translateX(-50%);z-index:300;@media (min-width:", "){left:auto;transform:none;}a,button{color:", ";}"], snackbar.spacings.left, snackbar.spacings.bottom, snackbar.background, spacingsTemplate(snackbar.spacings), bordersTemplate(snackbar.border), typographyTemplate(snackbar.typography), snackbar.minHeight, function (_ref) {
10846
- var leftAlignFrom = _ref.leftAlignFrom;
10847
- return leftAlignFrom;
10941
+ })(["position:fixed;background-color:", ";", " ", " ", " min-height:", ";box-sizing:border-box;z-index:300;", " a,button{color:", ";}"], snackbar.background, spacingsTemplate(snackbar.spacings), bordersTemplate(snackbar.border), typographyTemplate(snackbar.typography), snackbar.minHeight, function (_ref) {
10942
+ var placement = _ref.placement;
10943
+ return styled.css({
10944
+ top: placement.includes('top') ? snackbar.spacings.top : placement === 'left' || placement === 'right' ? '50%' : undefined,
10945
+ bottom: placement.includes('bottom') ? snackbar.spacings.bottom : undefined,
10946
+ right: placement.includes('right') ? snackbar.spacings.right : undefined,
10947
+ left: placement.includes('left') ? snackbar.spacings.left : placement === 'top' || placement === 'bottom' ? '50%' : undefined,
10948
+ transform: placement === 'left' || placement === 'right' ? 'translateY(-50%)' : placement === 'top' || placement === 'bottom' ? 'translateX(-50%)' : undefined
10949
+ });
10848
10950
  }, snackbar.entities.button.typography.color);
10849
10951
  var Snackbar$1 = /*#__PURE__*/React.forwardRef(function Snackbar(_a, ref) {
10850
10952
  var _a$open = _a.open,
@@ -10852,11 +10954,10 @@ var Snackbar$1 = /*#__PURE__*/React.forwardRef(function Snackbar(_a, ref) {
10852
10954
  _a$autoHideDuration = _a.autoHideDuration,
10853
10955
  autoHideDuration = _a$autoHideDuration === void 0 ? 7000 : _a$autoHideDuration,
10854
10956
  onClose = _a.onClose,
10855
- _a$leftAlignFrom = _a.leftAlignFrom,
10856
- leftAlignFrom = _a$leftAlignFrom === void 0 ? '1200px' : _a$leftAlignFrom,
10957
+ _a$placement = _a.placement,
10958
+ placement = _a$placement === void 0 ? 'bottom' : _a$placement,
10857
10959
  children = _a.children,
10858
- className = _a.className,
10859
- rest = __rest(_a, ["open", "autoHideDuration", "onClose", "leftAlignFrom", "children", "className"]);
10960
+ rest = __rest(_a, ["open", "autoHideDuration", "onClose", "placement", "children"]);
10860
10961
 
10861
10962
  var _useState = React.useState(open),
10862
10963
  _useState2 = _slicedToArray(_useState, 2),
@@ -10879,14 +10980,15 @@ var Snackbar$1 = /*#__PURE__*/React.forwardRef(function Snackbar(_a, ref) {
10879
10980
  return function () {
10880
10981
  return clearTimeout(timer.current);
10881
10982
  };
10882
- }, [open]);
10983
+ }, [open, autoHideDuration, setVisible, onClose, clearTimeout, setTimeout]);
10984
+ var props = Object.assign({
10985
+ ref: ref,
10986
+ placement: placement
10987
+ }, rest);
10883
10988
  return jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment, {
10884
10989
  children: visible && /*#__PURE__*/ReactDom__namespace.createPortal(jsxRuntime.exports.jsx(StyledSnackbar, Object.assign({
10885
- elevation: "overlay",
10886
- leftAlignFrom: leftAlignFrom,
10887
- className: className,
10888
- ref: ref
10889
- }, rest, {
10990
+ elevation: "overlay"
10991
+ }, props, {
10890
10992
  children: children
10891
10993
  }), void 0), document.body)
10892
10994
  }, void 0);
@@ -10897,11 +10999,11 @@ Snackbar.Action = SnackbarAction;
10897
10999
 
10898
11000
  var header = tokens$6.typography.ui.accordion_header,
10899
11001
  background$1 = tokens$6.colors.ui.background__default.rgba,
10900
- _tokens$spacings$comf$4 = tokens$6.spacings.comfortable,
10901
- spacingXlarge = _tokens$spacings$comf$4.x_large,
10902
- spacingMedium$2 = _tokens$spacings$comf$4.medium,
10903
- spacingSmall$2 = _tokens$spacings$comf$4.small,
10904
- spacingXsmall = _tokens$spacings$comf$4.x_small,
11002
+ _tokens$spacings$comf$5 = tokens$6.spacings.comfortable,
11003
+ spacingXlarge = _tokens$spacings$comf$5.x_large,
11004
+ spacingMedium$2 = _tokens$spacings$comf$5.medium,
11005
+ spacingSmall$2 = _tokens$spacings$comf$5.small,
11006
+ spacingXsmall = _tokens$spacings$comf$5.x_small,
10905
11007
  borderRadius$2 = tokens$6.shape.corners.borderRadius;
10906
11008
  var popover = {
10907
11009
  background: background$1,
@@ -10987,12 +11089,12 @@ var Popover$1 = /*#__PURE__*/React.forwardRef(function Popover(_a, ref) {
10987
11089
 
10988
11090
  var popoverRef = useCombinedRefs(ref, setPopperEl);
10989
11091
  useOutsideClick(popperEl, function (e) {
10990
- if (open && onClose !== null && !anchorEl.contains(e.target)) {
11092
+ if (open && onClose !== null && anchorEl && !anchorEl.contains(e.target)) {
10991
11093
  onClose();
10992
11094
  }
10993
11095
  });
10994
11096
  useGlobalKeyPress('Escape', function () {
10995
- if (onClose !== null) {
11097
+ if (onClose !== null && open) {
10996
11098
  onClose();
10997
11099
  }
10998
11100
  });
@@ -11047,11 +11149,9 @@ var StyledDivider = styled__default['default'](Divider).withConfig({
11047
11149
  })(["margin-left:-", ";margin-right:-", ";margin-bottom:0;width:auto;max-width:", ";"], popover.spacings.left, popover.spacings.right, popover.maxWidth);
11048
11150
  var PopoverTitle = /*#__PURE__*/React.forwardRef(function PopoverTitle(_a, ref) {
11049
11151
  var children = _a.children,
11050
- className = _a.className,
11051
- rest = __rest(_a, ["children", "className"]);
11152
+ rest = __rest(_a, ["children"]);
11052
11153
 
11053
11154
  var props = Object.assign(Object.assign({}, rest), {
11054
- className: className,
11055
11155
  ref: ref
11056
11156
  });
11057
11157
  return jsxRuntime.exports.jsxs("div", Object.assign({}, props, {
@@ -11150,11 +11250,11 @@ var StyledBannerIcon = styled__default['default'].span.withConfig({
11150
11250
  var variant = _ref.variant;
11151
11251
  return variant === 'warning' ? warning.entities.icon.background : info.entities.icon.background;
11152
11252
  }, enabled$2.entities.icon.width, enabled$2.entities.icon.height, enabled$2.spacings.right);
11153
- var BannerIcon = function BannerIcon(_a) {
11253
+ var BannerIcon = /*#__PURE__*/React.forwardRef(function BannerIcon(_a, ref) {
11154
11254
  var children = _a.children,
11155
11255
  _a$variant = _a.variant,
11156
11256
  variant = _a$variant === void 0 ? 'info' : _a$variant,
11157
- props = __rest(_a, ["children", "variant"]);
11257
+ rest = __rest(_a, ["children", "variant"]);
11158
11258
 
11159
11259
  var childrenWithColor = React.Children.map(children, function (child) {
11160
11260
  var color = variant === 'warning' ? warning.entities.icon.typography.color : info.entities.icon.typography.color;
@@ -11162,12 +11262,15 @@ var BannerIcon = function BannerIcon(_a) {
11162
11262
  color: color
11163
11263
  }) || child;
11164
11264
  });
11265
+ var props = Object.assign({
11266
+ ref: ref
11267
+ }, rest);
11165
11268
  return jsxRuntime.exports.jsx(StyledBannerIcon, Object.assign({
11166
11269
  variant: variant
11167
11270
  }, props, {
11168
11271
  children: childrenWithColor
11169
11272
  }), void 0);
11170
- };
11273
+ });
11171
11274
 
11172
11275
  var StyledBanner = styled__default['default'].div.withConfig({
11173
11276
  displayName: "Banner__StyledBanner",
@@ -11185,10 +11288,10 @@ var NonMarginDivider = styled__default['default'](Divider).withConfig({
11185
11288
  displayName: "Banner__NonMarginDivider",
11186
11289
  componentId: "sc-1ju451i-2"
11187
11290
  })(["margin:0;height:2px;"]);
11188
- var Banner$1 = function Banner(_a) {
11291
+ var Banner$1 = /*#__PURE__*/React.forwardRef(function Banner(_a, ref) {
11189
11292
  var children = _a.children,
11190
11293
  className = _a.className,
11191
- props = __rest(_a, ["children", "className"]);
11294
+ rest = __rest(_a, ["children", "className"]);
11192
11295
 
11193
11296
  var childrenWhereBannerIcon = React.Children.map(children, function (child) {
11194
11297
  return /*#__PURE__*/React.isValidElement(child) && child.type === BannerIcon;
@@ -11196,7 +11299,10 @@ var Banner$1 = function Banner(_a) {
11196
11299
  var hasIcon = childrenWhereBannerIcon.some(function (bool) {
11197
11300
  return bool;
11198
11301
  });
11199
- return jsxRuntime.exports.jsxs(StyledBanner, Object.assign({}, props, {
11302
+ var props = Object.assign({
11303
+ ref: ref
11304
+ }, rest);
11305
+ return jsxRuntime.exports.jsxs(StyledBanner, Object.assign({}, props, {
11200
11306
  className: className,
11201
11307
  role: "alert"
11202
11308
  }, {
@@ -11208,22 +11314,25 @@ var Banner$1 = function Banner(_a) {
11208
11314
  color: "light"
11209
11315
  }, void 0)]
11210
11316
  }), void 0);
11211
- };
11317
+ });
11212
11318
 
11213
11319
  var StyledBannerMessage = styled__default['default'](Typography).withConfig({
11214
11320
  displayName: "BannerMessage__StyledBannerMessage",
11215
11321
  componentId: "sc-1lfqos1-0"
11216
11322
  })([""]);
11217
- var BannerMessage = function BannerMessage(_a) {
11323
+ var BannerMessage = /*#__PURE__*/React.forwardRef(function BannerMessage(_a, ref) {
11218
11324
  var children = _a.children,
11219
- props = __rest(_a, ["children"]);
11325
+ rest = __rest(_a, ["children"]);
11220
11326
 
11327
+ var props = Object.assign({
11328
+ ref: ref
11329
+ }, rest);
11221
11330
  return jsxRuntime.exports.jsx(StyledBannerMessage, Object.assign({
11222
11331
  variant: "body_long"
11223
11332
  }, props, {
11224
11333
  children: children
11225
11334
  }), void 0);
11226
- };
11335
+ });
11227
11336
 
11228
11337
  var enabled = enabled$3;
11229
11338
  var StyledBannerActions = styled__default['default'].div.withConfig({
@@ -11239,20 +11348,21 @@ var StyledBannerActions = styled__default['default'].div.withConfig({
11239
11348
  marginLeft: '0'
11240
11349
  };
11241
11350
  });
11242
- var BannerActions = function BannerActions(_a) {
11351
+ var BannerActions = /*#__PURE__*/React.forwardRef(function BannerActions(_a, ref) {
11243
11352
  var children = _a.children,
11244
11353
  _a$placement = _a.placement,
11245
11354
  placement = _a$placement === void 0 ? 'left' : _a$placement,
11246
- className = _a.className,
11247
- props = __rest(_a, ["children", "placement", "className"]);
11355
+ rest = __rest(_a, ["children", "placement"]);
11248
11356
 
11249
- return jsxRuntime.exports.jsx(StyledBannerActions, Object.assign({}, props, {
11250
- placement: placement,
11251
- className: className
11252
- }, {
11357
+ var props = Object.assign({
11358
+ ref: ref
11359
+ }, rest);
11360
+ return jsxRuntime.exports.jsx(StyledBannerActions, Object.assign({
11361
+ placement: placement
11362
+ }, props, {
11253
11363
  children: children
11254
11364
  }), void 0);
11255
- };
11365
+ });
11256
11366
 
11257
11367
  var Banner = Banner$1;
11258
11368
  Banner.Icon = BannerIcon;
@@ -11631,7 +11741,7 @@ var Separator = styled__default['default'](Typography).withConfig({
11631
11741
  var Collapsed = styled__default['default'](Typography).withConfig({
11632
11742
  displayName: "Breadcrumbs__Collapsed",
11633
11743
  componentId: "sc-12awlbz-3"
11634
- })(["&:hover{text-decoration:underline;color:", ";}color:", ";text-decoration:none;"], states$1.hover.typography.color, typography$5.color);
11744
+ })(["@media (hover:hover) and (pointer:fine){&:hover{text-decoration:underline;color:", ";}}color:", ";text-decoration:none;"], states$1.hover.typography.color, typography$5.color);
11635
11745
  var Breadcrumbs$1 = /*#__PURE__*/React.forwardRef(function Breadcrumbs(_a, ref) {
11636
11746
  var children = _a.children,
11637
11747
  collapse = _a.collapse,
@@ -11715,7 +11825,7 @@ var states = breadcrumbs.states,
11715
11825
  var StyledTypography = styled__default['default'](Typography).withConfig({
11716
11826
  displayName: "Breadcrumb__StyledTypography",
11717
11827
  componentId: "sc-10nvwte-0"
11718
- })(["&:hover{text-decoration:underline;color:", ";}white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-block;text-decoration:none;color:", ";", ""], states.hover.typography.color, typography$4.color, function (_ref) {
11828
+ })(["@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, function (_ref) {
11719
11829
  var maxWidth = _ref.maxWidth;
11720
11830
  return styled.css({
11721
11831
  maxWidth: maxWidth
@@ -11724,29 +11834,30 @@ var StyledTypography = styled__default['default'](Typography).withConfig({
11724
11834
  var Breadcrumb = /*#__PURE__*/React.forwardRef(function Breadcrumb(_a, ref) {
11725
11835
  var children = _a.children,
11726
11836
  maxWidth = _a.maxWidth,
11727
- other = __rest(_a, ["children", "maxWidth"]);
11837
+ href = _a.href,
11838
+ other = __rest(_a, ["children", "maxWidth", "href"]);
11728
11839
 
11729
11840
  var props = Object.assign(Object.assign({}, other), {
11730
11841
  ref: ref,
11731
11842
  maxWidth: maxWidth
11732
11843
  });
11733
11844
  var showTooltip = maxWidth > 0;
11734
- return showTooltip ? jsxRuntime.exports.jsx(Tooltip, Object.assign({
11735
- title: children,
11736
- placement: "top"
11737
- }, {
11738
- children: jsxRuntime.exports.jsx(StyledTypography, Object.assign({
11739
- link: true,
11740
- variant: "body_short"
11741
- }, props, {
11742
- children: children
11743
- }), void 0)
11744
- }), void 0) : jsxRuntime.exports.jsx(StyledTypography, Object.assign({
11745
- link: true,
11845
+ var isHrefDefined = href !== undefined;
11846
+
11847
+ var crumb = jsxRuntime.exports.jsx(StyledTypography, Object.assign({
11848
+ link: isHrefDefined,
11849
+ as: isHrefDefined ? null : 'span',
11746
11850
  variant: "body_short"
11747
11851
  }, props, {
11748
11852
  children: children
11749
11853
  }), void 0);
11854
+
11855
+ return showTooltip ? jsxRuntime.exports.jsx(Tooltip, Object.assign({
11856
+ title: children,
11857
+ placement: "top"
11858
+ }, {
11859
+ children: crumb
11860
+ }), void 0) : crumb;
11750
11861
  });
11751
11862
 
11752
11863
  var Breadcrumbs = Breadcrumbs$1;
@@ -11811,16 +11922,16 @@ var _tokens$colors$1 = tokens$6.colors,
11811
11922
  disabledTextColor = _tokens$colors$intera$4.disabled__text.rgba,
11812
11923
  hoverBackground = _tokens$colors$intera$4.table__header__fill_hover.rgba,
11813
11924
  textColor = _tokens$colors$1.text.static_icons__default.rgba,
11814
- _tokens$spacings$comf$3 = tokens$6.spacings.comfortable,
11815
- medium = _tokens$spacings$comf$3.medium,
11816
- large = _tokens$spacings$comf$3.large,
11817
- small$2 = _tokens$spacings$comf$3.small,
11925
+ _tokens$spacings$comf$4 = tokens$6.spacings.comfortable,
11926
+ medium = _tokens$spacings$comf$4.medium,
11927
+ large = _tokens$spacings$comf$4.large,
11928
+ small$1 = _tokens$spacings$comf$4.small,
11818
11929
  typography$3 = tokens$6.typography.navigation.menu_title;
11819
11930
  var menu = {
11820
11931
  background: background,
11821
11932
  spacings: {
11822
- top: small$2,
11823
- bottom: small$2,
11933
+ top: small$1,
11934
+ bottom: small$1,
11824
11935
  left: '0px',
11825
11936
  right: '0px'
11826
11937
  },
@@ -11878,8 +11989,8 @@ var menu = {
11878
11989
  spacings: {
11879
11990
  left: large,
11880
11991
  right: large,
11881
- top: small$2,
11882
- bottom: small$2
11992
+ top: small$1,
11993
+ bottom: small$1
11883
11994
  }
11884
11995
  }
11885
11996
  },
@@ -11890,8 +12001,8 @@ var menu = {
11890
12001
  spacings: {
11891
12002
  left: large,
11892
12003
  right: large,
11893
- top: small$2,
11894
- bottom: small$2
12004
+ top: small$1,
12005
+ bottom: small$1
11895
12006
  }
11896
12007
  }
11897
12008
  }
@@ -11924,7 +12035,7 @@ var ListItem$2 = styled__default['default'].li.attrs(function (_ref) {
11924
12035
  return active && styled.css(["background:", ";*{color:", ";}"], activeToken.background, activeToken.typography.color);
11925
12036
  }, function (_ref4) {
11926
12037
  var disabled = _ref4.disabled;
11927
- return disabled ? styled.css(["*{color:", ";}svg{fill:", ";}&:focus{outline:none;}&:hover{cursor:not-allowed;}"], disabledToken.typography.color, icon.states.disabled.typography.color) : styled.css(["&:hover{z-index:1;cursor:pointer;background:", ";}&:focus{", "}"], hover.background, outlineTemplate(focus.outline));
12038
+ return disabled ? styled.css(["*{color:", ";}svg{fill:", ";}&:focus{outline:none;}@media (hover:hover) and (pointer:fine){&:hover{cursor:not-allowed;}}"], disabledToken.typography.color, icon.states.disabled.typography.color) : styled.css(["@media (hover:hover) and (pointer:fine){&:hover{z-index:1;cursor:pointer;background:", ";}}&:focus{", "}"], hover.background, outlineTemplate(focus.outline));
11928
12039
  });
11929
12040
  var Content = styled__default['default'].div.withConfig({
11930
12041
  displayName: "MenuItem__Content",
@@ -12051,8 +12162,9 @@ var MenuList = /*#__PURE__*/React.forwardRef(function MenuList(_a, ref) {
12051
12162
 
12052
12163
  if (focus === 'last') {
12053
12164
  setFocusedIndex(lastFocusIndex);
12054
- }
12055
- }, [focus]);
12165
+ } // eslint-disable-next-line react-hooks/exhaustive-deps
12166
+
12167
+ }, [focus, firstFocusIndex, lastFocusIndex]);
12056
12168
 
12057
12169
  var handleMenuItemChange = function handleMenuItemChange(direction, fallbackIndex) {
12058
12170
  var i = direction === 'down' ? 1 : -1;
@@ -12147,7 +12259,7 @@ var Menu$1 = /*#__PURE__*/React.forwardRef(function Menu(_a, ref) {
12147
12259
 
12148
12260
  var token = useToken({
12149
12261
  density: density
12150
- }, menu)();
12262
+ }, menu);
12151
12263
 
12152
12264
  var _usePopper = usePopper(anchorEl, containerEl, null, placement, 4),
12153
12265
  styles = _usePopper.styles,
@@ -12214,13 +12326,13 @@ var PaginationItem = /*#__PURE__*/React.forwardRef(function PaginationItem(_a, r
12214
12326
  var page = _a.page,
12215
12327
  selected = _a.selected,
12216
12328
  onClick = _a.onClick,
12217
- other = __rest(_a, ["page", "selected", "onClick"]);
12329
+ rest = __rest(_a, ["page", "selected", "onClick"]);
12218
12330
 
12219
12331
  var props = Object.assign({
12220
12332
  ref: ref,
12221
12333
  page: page,
12222
12334
  selected: selected
12223
- }, other);
12335
+ }, rest);
12224
12336
  var background = selected ? pagination.entities.item.states.active.background : null;
12225
12337
  return jsxRuntime.exports.jsx(Button, Object.assign({
12226
12338
  style: {
@@ -12326,8 +12438,7 @@ var Pagination = /*#__PURE__*/React.forwardRef(function Pagination(_a, ref) {
12326
12438
  _a$itemsPerPage = _a.itemsPerPage,
12327
12439
  itemsPerPage = _a$itemsPerPage === void 0 ? 10 : _a$itemsPerPage,
12328
12440
  onChange = _a.onChange,
12329
- className = _a.className,
12330
- other = __rest(_a, ["totalItems", "defaultPage", "withItemIndicator", "itemsPerPage", "onChange", "className"]);
12441
+ rest = __rest(_a, ["totalItems", "defaultPage", "withItemIndicator", "itemsPerPage", "onChange"]);
12331
12442
 
12332
12443
  var pages = Math.ceil(totalItems / itemsPerPage); // Total page numbers
12333
12444
 
@@ -12353,12 +12464,19 @@ var Pagination = /*#__PURE__*/React.forwardRef(function Pagination(_a, ref) {
12353
12464
  }
12354
12465
  };
12355
12466
 
12467
+ var isMounted = useIsMounted();
12356
12468
  var items = PaginationControl(pages, activePage);
12469
+ React.useLayoutEffect(function () {
12470
+ if (isMounted) {
12471
+ setActivePage(1);
12472
+ onChange === null || onChange === void 0 ? void 0 : onChange(null, 1);
12473
+ } // eslint-disable-next-line react-hooks/exhaustive-deps
12474
+
12475
+ }, [itemsPerPage]);
12357
12476
  var props = Object.assign({
12358
12477
  ref: ref,
12359
- withItemIndicator: withItemIndicator,
12360
- className: className
12361
- }, other);
12478
+ withItemIndicator: withItemIndicator
12479
+ }, rest);
12362
12480
 
12363
12481
  var pagination = jsxRuntime.exports.jsx(Navigation, Object.assign({
12364
12482
  "aria-label": "pagination"
@@ -12425,21 +12543,21 @@ var Pagination = /*#__PURE__*/React.forwardRef(function Pagination(_a, ref) {
12425
12543
  });
12426
12544
 
12427
12545
  var colors$1 = tokens$6.colors,
12428
- _tokens$spacings$comf$2 = tokens$6.spacings.comfortable,
12429
- small$1 = _tokens$spacings$comf$2.small,
12430
- x_small$1 = _tokens$spacings$comf$2.x_small,
12546
+ _tokens$spacings$comf$3 = tokens$6.spacings.comfortable,
12547
+ small = _tokens$spacings$comf$3.small,
12548
+ x_small$2 = _tokens$spacings$comf$3.x_small,
12431
12549
  typography$1 = tokens$6.typography,
12432
12550
  shape = tokens$6.shape;
12433
12551
  var nativeselect = {
12434
12552
  background: colors$1.ui.background__light.rgba,
12435
12553
  typography: Object.assign(Object.assign({}, typography$1.input.text), {
12436
- color: colors$1.text.static_icons__tertiary.rgba
12554
+ color: colors$1.text.static_icons__default.rgba
12437
12555
  }),
12438
12556
  entities: {
12439
12557
  input: {
12440
12558
  spacings: {
12441
- left: small$1,
12442
- right: small$1,
12559
+ left: small,
12560
+ right: small,
12443
12561
  top: '6px',
12444
12562
  bottom: '6px'
12445
12563
  }
@@ -12471,8 +12589,8 @@ var nativeselect = {
12471
12589
  entities: {
12472
12590
  input: {
12473
12591
  spacings: {
12474
- left: x_small$1,
12475
- right: x_small$1,
12592
+ left: x_small$2,
12593
+ right: x_small$2,
12476
12594
  top: '0',
12477
12595
  bottom: '0'
12478
12596
  }
@@ -12511,7 +12629,7 @@ var NativeSelect = /*#__PURE__*/React.forwardRef(function NativeSelect(_a, ref)
12511
12629
 
12512
12630
  var token = useToken({
12513
12631
  density: density
12514
- }, nativeselect)();
12632
+ }, nativeselect);
12515
12633
  var containerProps = {
12516
12634
  ref: ref,
12517
12635
  className: className
@@ -13979,7 +14097,7 @@ function generateId() {
13979
14097
  }
13980
14098
  /**
13981
14099
  * Default implementation for status message. Only added when menu is open.
13982
- * Will specift if there are results in the list, and if so, how many,
14100
+ * Will specify if there are results in the list, and if so, how many,
13983
14101
  * and what keys are relevant.
13984
14102
  *
13985
14103
  * @param {Object} param the downshift state and other relevant properties
@@ -14358,6 +14476,12 @@ var stateChangeTypes$3 = /*#__PURE__*/Object.freeze({
14358
14476
  touchEnd: touchEnd
14359
14477
  });
14360
14478
 
14479
+ var _excluded$4 = ["refKey", "ref"],
14480
+ _excluded2$3 = ["onClick", "onPress", "onKeyDown", "onKeyUp", "onBlur"],
14481
+ _excluded3$2 = ["onKeyDown", "onBlur", "onChange", "onInput", "onChangeText"],
14482
+ _excluded4$1 = ["refKey", "ref"],
14483
+ _excluded5$1 = ["onMouseMove", "onMouseDown", "onClick", "onPress", "index", "item"];
14484
+
14361
14485
  var Downshift = /*#__PURE__*/function () {
14362
14486
  var Downshift = /*#__PURE__*/function (_Component) {
14363
14487
  _inheritsLoose(Downshift, _Component);
@@ -14477,6 +14601,8 @@ var Downshift = /*#__PURE__*/function () {
14477
14601
  isItemSelected = newStateToSet.hasOwnProperty('selectedItem'); // this keeps track of the object we want to call with setState
14478
14602
 
14479
14603
  var nextState = {}; // this is just used to tell whether the state changed
14604
+
14605
+ var nextFullState = {}; // we need to call on change if the outside world is controlling any of our state
14480
14606
  // and we're trying to update that state. OR if the selection has changed and we're
14481
14607
  // trying to update the selection
14482
14608
 
@@ -14502,7 +14628,7 @@ var Downshift = /*#__PURE__*/function () {
14502
14628
  return;
14503
14629
  }
14504
14630
 
14505
- newStateToSet[key]; // if it's coming from props, then we don't care to set it internally
14631
+ nextFullState[key] = newStateToSet[key]; // if it's coming from props, then we don't care to set it internally
14506
14632
 
14507
14633
  if (!isControlledProp(_this.props, key)) {
14508
14634
  nextState[key] = newStateToSet[key];
@@ -14551,7 +14677,7 @@ var Downshift = /*#__PURE__*/function () {
14551
14677
  _ref$refKey = _ref.refKey,
14552
14678
  refKey = _ref$refKey === void 0 ? 'ref' : _ref$refKey,
14553
14679
  ref = _ref.ref,
14554
- rest = _objectWithoutPropertiesLoose(_ref, ["refKey", "ref"]);
14680
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$4);
14555
14681
 
14556
14682
  var _ref2 = _temp2 === void 0 ? {} : _temp2,
14557
14683
  _ref2$suppressRefErro = _ref2.suppressRefError,
@@ -14735,7 +14861,7 @@ var Downshift = /*#__PURE__*/function () {
14735
14861
  var onKeyDown = _ref3.onKeyDown,
14736
14862
  onKeyUp = _ref3.onKeyUp,
14737
14863
  onBlur = _ref3.onBlur,
14738
- rest = _objectWithoutPropertiesLoose(_ref3, ["onClick", "onPress", "onKeyDown", "onKeyUp", "onBlur"]);
14864
+ rest = _objectWithoutPropertiesLoose(_ref3, _excluded2$3);
14739
14865
 
14740
14866
  var _this$getState5 = _this.getState(),
14741
14867
  isOpen = _this$getState5.isOpen;
@@ -14803,10 +14929,10 @@ var Downshift = /*#__PURE__*/function () {
14803
14929
  _this.internalSetTimeout(function () {
14804
14930
  if (!_this.isMouseDown && (_this.props.environment.document.activeElement == null || _this.props.environment.document.activeElement.id !== _this.inputId) && _this.props.environment.document.activeElement !== blurTarget // Do nothing if we refocus the same element again (to solve issue in Safari on iOS)
14805
14931
  ) {
14806
- _this.reset({
14807
- type: blurButton
14808
- });
14809
- }
14932
+ _this.reset({
14933
+ type: blurButton
14934
+ });
14935
+ }
14810
14936
  });
14811
14937
  };
14812
14938
 
@@ -14824,7 +14950,7 @@ var Downshift = /*#__PURE__*/function () {
14824
14950
  onChange = _ref4.onChange,
14825
14951
  onInput = _ref4.onInput;
14826
14952
  _ref4.onChangeText;
14827
- var rest = _objectWithoutPropertiesLoose(_ref4, ["onKeyDown", "onBlur", "onChange", "onInput", "onChangeText"]);
14953
+ var rest = _objectWithoutPropertiesLoose(_ref4, _excluded3$2);
14828
14954
 
14829
14955
  var onChangeKey;
14830
14956
  var eventHandlers = {};
@@ -14899,7 +15025,7 @@ var Downshift = /*#__PURE__*/function () {
14899
15025
  _ref5$refKey = _ref5.refKey,
14900
15026
  refKey = _ref5$refKey === void 0 ? 'ref' : _ref5$refKey,
14901
15027
  ref = _ref5.ref,
14902
- props = _objectWithoutPropertiesLoose(_ref5, ["refKey", "ref"]);
15028
+ props = _objectWithoutPropertiesLoose(_ref5, _excluded4$1);
14903
15029
 
14904
15030
  var _ref6 = _temp6 === void 0 ? {} : _temp6,
14905
15031
  _ref6$suppressRefErro = _ref6.suppressRefError,
@@ -14924,7 +15050,7 @@ var Downshift = /*#__PURE__*/function () {
14924
15050
  item = _ref7$item === void 0 ? process.env.NODE_ENV === 'production' ?
14925
15051
  /* istanbul ignore next */
14926
15052
  undefined : requiredProp('getItemProps', 'item') : _ref7$item,
14927
- rest = _objectWithoutPropertiesLoose(_ref7, ["onMouseMove", "onMouseDown", "onClick", "onPress", "index", "item"]);
15053
+ rest = _objectWithoutPropertiesLoose(_ref7, _excluded5$1);
14928
15054
 
14929
15055
  if (index === undefined) {
14930
15056
  _this.items.push(item);
@@ -15432,9 +15558,9 @@ var Downshift = /*#__PURE__*/function () {
15432
15558
  selectedItemChanged: function selectedItemChanged(prevItem, item) {
15433
15559
  return prevItem !== item;
15434
15560
  },
15435
- environment: typeof window === 'undefined'
15561
+ environment:
15436
15562
  /* istanbul ignore next (ssr) */
15437
- ? {} : window,
15563
+ typeof window === 'undefined' ? {} : window,
15438
15564
  stateReducer: function stateReducer(state, stateToSet) {
15439
15565
  return stateToSet;
15440
15566
  },
@@ -15520,6 +15646,7 @@ function validateGetRootPropsCalledCorrectly(element, _ref13) {
15520
15646
  }
15521
15647
  }
15522
15648
 
15649
+ var _excluded$3 = ["isInitialMount", "highlightedIndex", "items", "environment"];
15523
15650
  var dropdownDefaultStateValues = {
15524
15651
  highlightedIndex: -1,
15525
15652
  isOpen: false,
@@ -15713,9 +15840,9 @@ var defaultProps$3 = {
15713
15840
  getA11ySelectionMessage: getA11ySelectionMessage,
15714
15841
  scrollIntoView: scrollIntoView,
15715
15842
  circularNavigation: false,
15716
- environment: typeof window === 'undefined'
15843
+ environment:
15717
15844
  /* istanbul ignore next (ssr) */
15718
- ? {} : window
15845
+ typeof window === 'undefined' ? {} : window
15719
15846
  };
15720
15847
 
15721
15848
  function getDefaultValue$1(props, propKey, defaultStateValues) {
@@ -15929,11 +16056,11 @@ function useA11yMessageSetter(getA11yMessage, dependencyArray, _ref2) {
15929
16056
  highlightedIndex = _ref2.highlightedIndex,
15930
16057
  items = _ref2.items,
15931
16058
  environment = _ref2.environment,
15932
- rest = _objectWithoutPropertiesLoose(_ref2, ["isInitialMount", "highlightedIndex", "items", "environment"]);
16059
+ rest = _objectWithoutPropertiesLoose(_ref2, _excluded$3);
15933
16060
 
15934
16061
  // Sets a11y status message on changes in state.
15935
16062
  React.useEffect(function () {
15936
- if (isInitialMount) {
16063
+ if (isInitialMount || false) {
15937
16064
  return;
15938
16065
  }
15939
16066
 
@@ -16062,41 +16189,40 @@ function downshiftCommonReducer(state, action, stateChangeTypes) {
16062
16189
 
16063
16190
  return _extends({}, state, changes);
16064
16191
  }
16065
-
16066
16192
  ({
16067
- items: PropTypes.array.isRequired,
16068
- itemToString: PropTypes.func,
16069
- getA11yStatusMessage: PropTypes.func,
16070
- getA11ySelectionMessage: PropTypes.func,
16071
- circularNavigation: PropTypes.bool,
16072
- highlightedIndex: PropTypes.number,
16073
- defaultHighlightedIndex: PropTypes.number,
16074
- initialHighlightedIndex: PropTypes.number,
16075
- isOpen: PropTypes.bool,
16076
- defaultIsOpen: PropTypes.bool,
16077
- initialIsOpen: PropTypes.bool,
16078
- selectedItem: PropTypes.any,
16079
- initialSelectedItem: PropTypes.any,
16080
- defaultSelectedItem: PropTypes.any,
16081
- id: PropTypes.string,
16082
- labelId: PropTypes.string,
16083
- menuId: PropTypes.string,
16084
- getItemId: PropTypes.func,
16085
- toggleButtonId: PropTypes.string,
16086
- stateReducer: PropTypes.func,
16087
- onSelectedItemChange: PropTypes.func,
16088
- onHighlightedIndexChange: PropTypes.func,
16089
- onStateChange: PropTypes.func,
16090
- onIsOpenChange: PropTypes.func,
16091
- environment: PropTypes.shape({
16092
- addEventListener: PropTypes.func,
16093
- removeEventListener: PropTypes.func,
16094
- document: PropTypes.shape({
16095
- getElementById: PropTypes.func,
16096
- activeElement: PropTypes.any,
16097
- body: PropTypes.any
16193
+ items: PropTypes.array.isRequired,
16194
+ itemToString: PropTypes.func,
16195
+ getA11yStatusMessage: PropTypes.func,
16196
+ getA11ySelectionMessage: PropTypes.func,
16197
+ circularNavigation: PropTypes.bool,
16198
+ highlightedIndex: PropTypes.number,
16199
+ defaultHighlightedIndex: PropTypes.number,
16200
+ initialHighlightedIndex: PropTypes.number,
16201
+ isOpen: PropTypes.bool,
16202
+ defaultIsOpen: PropTypes.bool,
16203
+ initialIsOpen: PropTypes.bool,
16204
+ selectedItem: PropTypes.any,
16205
+ initialSelectedItem: PropTypes.any,
16206
+ defaultSelectedItem: PropTypes.any,
16207
+ id: PropTypes.string,
16208
+ labelId: PropTypes.string,
16209
+ menuId: PropTypes.string,
16210
+ getItemId: PropTypes.func,
16211
+ toggleButtonId: PropTypes.string,
16212
+ stateReducer: PropTypes.func,
16213
+ onSelectedItemChange: PropTypes.func,
16214
+ onHighlightedIndexChange: PropTypes.func,
16215
+ onStateChange: PropTypes.func,
16216
+ onIsOpenChange: PropTypes.func,
16217
+ environment: PropTypes.shape({
16218
+ addEventListener: PropTypes.func,
16219
+ removeEventListener: PropTypes.func,
16220
+ document: PropTypes.shape({
16221
+ getElementById: PropTypes.func,
16222
+ activeElement: PropTypes.any,
16223
+ body: PropTypes.any
16224
+ })
16098
16225
  })
16099
- })
16100
16226
  });
16101
16227
  /**
16102
16228
  * Default implementation for status message. Only added when menu is open.
@@ -16106,32 +16232,21 @@ function downshiftCommonReducer(state, action, stateChangeTypes) {
16106
16232
  * @param {Object} param the downshift state and other relevant properties
16107
16233
  * @return {String} the a11y status message
16108
16234
  */
16109
-
16110
- function getA11yStatusMessage(_ref) {
16111
- var isOpen = _ref.isOpen,
16112
- resultCount = _ref.resultCount,
16113
- previousResultCount = _ref.previousResultCount;
16114
-
16115
- if (!isOpen) {
16235
+ function getA11yStatusMessage(_a) {
16236
+ var isOpen = _a.isOpen, resultCount = _a.resultCount, previousResultCount = _a.previousResultCount;
16237
+ if (!isOpen) {
16238
+ return '';
16239
+ }
16240
+ if (!resultCount) {
16241
+ return 'No results are available.';
16242
+ }
16243
+ if (resultCount !== previousResultCount) {
16244
+ return resultCount + " result" + (resultCount === 1 ? ' is' : 's are') + " available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select.";
16245
+ }
16116
16246
  return '';
16117
- }
16118
-
16119
- if (!resultCount) {
16120
- return 'No results are available.';
16121
- }
16122
-
16123
- if (resultCount !== previousResultCount) {
16124
- return resultCount + " result" + (resultCount === 1 ? ' is' : 's are') + " available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select.";
16125
- }
16126
-
16127
- return '';
16128
16247
  }
16129
-
16130
- _extends({}, defaultProps$3, {
16131
- getA11yStatusMessage: getA11yStatusMessage
16132
- }); // eslint-disable-next-line import/no-mutable-exports
16248
+ __assign(__assign({}, defaultProps$3), { getA11yStatusMessage: getA11yStatusMessage });
16133
16249
  /* istanbul ignore next */
16134
-
16135
16250
  if (process.env.NODE_ENV !== 'production') ;
16136
16251
 
16137
16252
  process.env.NODE_ENV !== "production" ? '__menu_keydown_arrow_down__' : 0;
@@ -16424,6 +16539,11 @@ function downshiftUseComboboxReducer(state, action) {
16424
16539
  }
16425
16540
  /* eslint-enable complexity */
16426
16541
 
16542
+ var _excluded$1 = ["onMouseLeave", "refKey", "ref"],
16543
+ _excluded2$1 = ["item", "index", "refKey", "ref", "onMouseMove", "onClick", "onPress"],
16544
+ _excluded3 = ["onClick", "onPress", "refKey", "ref"],
16545
+ _excluded4 = ["onKeyDown", "onChange", "onInput", "onBlur", "onChangeText", "refKey", "ref"],
16546
+ _excluded5 = ["refKey", "ref"];
16427
16547
  useCombobox.stateChangeTypes = stateChangeTypes$1;
16428
16548
 
16429
16549
  function useCombobox(userProps) {
@@ -16594,8 +16714,8 @@ function useCombobox(userProps) {
16594
16714
 
16595
16715
  if (!latestState.isOpen || latestState.highlightedIndex < 0 || event.which === 229 // if IME composing, wait for next Enter keydown event.
16596
16716
  ) {
16597
- return;
16598
- }
16717
+ return;
16718
+ }
16599
16719
 
16600
16720
  event.preventDefault();
16601
16721
  dispatch({
@@ -16620,7 +16740,7 @@ function useCombobox(userProps) {
16620
16740
  _ref$refKey = _ref.refKey,
16621
16741
  refKey = _ref$refKey === void 0 ? 'ref' : _ref$refKey,
16622
16742
  ref = _ref.ref,
16623
- rest = _objectWithoutPropertiesLoose(_ref, ["onMouseLeave", "refKey", "ref"]);
16743
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$1);
16624
16744
 
16625
16745
  var _ref2 = _temp2 === void 0 ? {} : _temp2,
16626
16746
  _ref2$suppressRefErro = _ref2.suppressRefError,
@@ -16647,7 +16767,7 @@ function useCombobox(userProps) {
16647
16767
  onMouseMove = _ref3.onMouseMove,
16648
16768
  onClick = _ref3.onClick;
16649
16769
  _ref3.onPress;
16650
- var rest = _objectWithoutPropertiesLoose(_ref3, ["item", "index", "refKey", "ref", "onMouseMove", "onClick", "onPress"]);
16770
+ var rest = _objectWithoutPropertiesLoose(_ref3, _excluded2$1);
16651
16771
 
16652
16772
  var _latest$current = latest.current,
16653
16773
  latestProps = _latest$current.props,
@@ -16701,7 +16821,7 @@ function useCombobox(userProps) {
16701
16821
  var _ref5$refKey = _ref5.refKey,
16702
16822
  refKey = _ref5$refKey === void 0 ? 'ref' : _ref5$refKey,
16703
16823
  ref = _ref5.ref,
16704
- rest = _objectWithoutPropertiesLoose(_ref5, ["onClick", "onPress", "refKey", "ref"]);
16824
+ rest = _objectWithoutPropertiesLoose(_ref5, _excluded3);
16705
16825
 
16706
16826
  var toggleButtonHandleClick = function toggleButtonHandleClick() {
16707
16827
  dispatch({
@@ -16731,7 +16851,7 @@ function useCombobox(userProps) {
16731
16851
  var _ref6$refKey = _ref6.refKey,
16732
16852
  refKey = _ref6$refKey === void 0 ? 'ref' : _ref6$refKey,
16733
16853
  ref = _ref6.ref,
16734
- rest = _objectWithoutPropertiesLoose(_ref6, ["onKeyDown", "onChange", "onInput", "onBlur", "onChangeText", "refKey", "ref"]);
16854
+ rest = _objectWithoutPropertiesLoose(_ref6, _excluded4);
16735
16855
 
16736
16856
  var _ref7 = _temp6 === void 0 ? {} : _temp6,
16737
16857
  _ref7$suppressRefErro = _ref7.suppressRefError,
@@ -16795,7 +16915,7 @@ function useCombobox(userProps) {
16795
16915
  _ref8$refKey = _ref8.refKey,
16796
16916
  refKey = _ref8$refKey === void 0 ? 'ref' : _ref8$refKey,
16797
16917
  ref = _ref8.ref,
16798
- rest = _objectWithoutPropertiesLoose(_ref8, ["refKey", "ref"]);
16918
+ rest = _objectWithoutPropertiesLoose(_ref8, _excluded5);
16799
16919
 
16800
16920
  var _ref9 = _temp8 === void 0 ? {} : _temp8,
16801
16921
  _ref9$suppressRefErro = _ref9.suppressRefError,
@@ -16935,9 +17055,7 @@ function isKeyDownOperationPermitted(event) {
16935
17055
  var element = event.target;
16936
17056
 
16937
17057
  if (element instanceof HTMLInputElement && // if element is a text input
16938
- element.value !== '' && ( // and we have text in it
16939
- // and cursor is either not at the start or is currently highlighting text.
16940
- element.selectionStart !== 0 || element.selectionEnd !== 0)) {
17058
+ element.value !== '' && (element.selectionStart !== 0 || element.selectionEnd !== 0)) {
16941
17059
  return false;
16942
17060
  }
16943
17061
 
@@ -17154,6 +17272,8 @@ function downshiftMultipleSelectionReducer(state, action) {
17154
17272
  return _extends({}, state, changes);
17155
17273
  }
17156
17274
 
17275
+ var _excluded = ["refKey", "ref", "onClick", "onKeyDown", "selectedItem", "index"],
17276
+ _excluded2 = ["refKey", "ref", "onKeyDown", "onClick", "preventKeyAction"];
17157
17277
  useMultipleSelection.stateChangeTypes = stateChangeTypes;
17158
17278
 
17159
17279
  function useMultipleSelection(userProps) {
@@ -17283,7 +17403,7 @@ function useMultipleSelection(userProps) {
17283
17403
  onKeyDown = _ref3.onKeyDown,
17284
17404
  selectedItem = _ref3.selectedItem,
17285
17405
  index = _ref3.index,
17286
- rest = _objectWithoutPropertiesLoose(_ref3, ["refKey", "ref", "onClick", "onKeyDown", "selectedItem", "index"]);
17406
+ rest = _objectWithoutPropertiesLoose(_ref3, _excluded);
17287
17407
 
17288
17408
  var latestState = latest.current.state;
17289
17409
  var itemIndex = getItemIndex(index, selectedItem, latestState.selectedItems);
@@ -17324,7 +17444,7 @@ function useMultipleSelection(userProps) {
17324
17444
  onClick = _ref4.onClick,
17325
17445
  _ref4$preventKeyActio = _ref4.preventKeyAction,
17326
17446
  preventKeyAction = _ref4$preventKeyActio === void 0 ? false : _ref4$preventKeyActio,
17327
- rest = _objectWithoutPropertiesLoose(_ref4, ["refKey", "ref", "onKeyDown", "onClick", "preventKeyAction"]);
17447
+ rest = _objectWithoutPropertiesLoose(_ref4, _excluded2);
17328
17448
 
17329
17449
  var _ref5 = _temp3 === void 0 ? {} : _temp3,
17330
17450
  _ref5$suppressRefErro = _ref5.suppressRefError,
@@ -17403,12 +17523,12 @@ var typography = tokens$6.typography,
17403
17523
  _tokens$shape$1 = tokens$6.shape,
17404
17524
  straight = _tokens$shape$1.straight,
17405
17525
  borderRadius = _tokens$shape$1.corners.borderRadius,
17406
- _tokens$spacings$comf$1 = tokens$6.spacings.comfortable,
17407
- spacingSmall = _tokens$spacings$comf$1.small,
17408
- spacingMediumSmall = _tokens$spacings$comf$1.medium_small,
17409
- spacingMedium = _tokens$spacings$comf$1.medium,
17410
- spacingLarge = _tokens$spacings$comf$1.large,
17411
- xx_small = _tokens$spacings$comf$1.xx_small,
17526
+ _tokens$spacings$comf$2 = tokens$6.spacings.comfortable,
17527
+ spacingSmall = _tokens$spacings$comf$2.small,
17528
+ spacingMediumSmall = _tokens$spacings$comf$2.medium_small,
17529
+ spacingMedium = _tokens$spacings$comf$2.medium,
17530
+ spacingLarge = _tokens$spacings$comf$2.large,
17531
+ xx_small = _tokens$spacings$comf$2.xx_small,
17412
17532
  boxShadow$1 = tokens$6.elevation.temporary_nav;
17413
17533
  var select = {
17414
17534
  background: colors.ui.background__default.rgba,
@@ -17421,7 +17541,7 @@ var select = {
17421
17541
  left: spacingLarge
17422
17542
  },
17423
17543
  typography: Object.assign(Object.assign({}, typography.navigation.menu_title), {
17424
- color: colors.text.static_icons__tertiary.rgba
17544
+ color: colors.text.static_icons__default.rgba
17425
17545
  }),
17426
17546
  border: {
17427
17547
  type: 'border',
@@ -17429,7 +17549,10 @@ var select = {
17429
17549
  },
17430
17550
  states: {
17431
17551
  hover: {
17432
- background: colors.ui.background__light.rgba
17552
+ background: colors.ui.background__medium.rgba
17553
+ },
17554
+ active: {
17555
+ background: colors.interactive.primary__selected_highlight.rgba
17433
17556
  }
17434
17557
  },
17435
17558
  entities: {
@@ -17495,23 +17618,19 @@ var StyledList = styled__default['default'](List$1).withConfig({
17495
17618
  var StyledListItem = styled__default['default'](List$1.Item).withConfig({
17496
17619
  displayName: "commonStyles__StyledListItem",
17497
17620
  componentId: "sc-v98ajk-3"
17498
- })(["list-style:none;", ";margin:0;background-color:", ";cursor:", ";"], typographyTemplate(select.typography), function (_ref) {
17499
- var highlighted = _ref.highlighted;
17500
- return highlighted === 'true' ? select.states.hover.background : select.background;
17501
- }, function (_ref2) {
17502
- var highlighted = _ref2.highlighted;
17503
- return highlighted === 'true' ? 'pointer' : 'default';
17621
+ })(function (_ref) {
17622
+ var theme = _ref.theme,
17623
+ highlighted = _ref.highlighted,
17624
+ active = _ref.active;
17625
+ var backgroundColor = highlighted === 'true' ? theme.states.hover.background : active === 'true' ? theme.states.active.background : theme.background;
17626
+ return styled.css(["margin:0;list-style:none;background-color:", ";", ";cursor:", ";"], backgroundColor, typographyTemplate(theme.typography), highlighted === 'true' ? 'pointer' : 'default');
17504
17627
  });
17505
17628
  var StyledButton = styled__default['default'](Button).withConfig({
17506
17629
  displayName: "commonStyles__StyledButton",
17507
17630
  componentId: "sc-v98ajk-4"
17508
- })(["position:absolute;right:", ";height:", ";width:", ";", ""], buttonToken.spacings.right, buttonToken.height, buttonToken.height, function (_ref3) {
17509
- var density = _ref3.density;
17510
- return density === 'compact' ? styled.css({
17511
- top: select.modes.compact.entities.button.spacings.top
17512
- }) : styled.css({
17513
- top: buttonToken.spacings.top
17514
- });
17631
+ })(function (_ref2) {
17632
+ var button = _ref2.theme.entities.button;
17633
+ return styled.css(["position:absolute;right:", ";height:", ";width:", ";top:", ";"], button.spacings.right, button.height, button.height, button.spacings.top);
17515
17634
  });
17516
17635
  var StyledInputWrapper = styled__default['default'].div.withConfig({
17517
17636
  displayName: "commonStyles__StyledInputWrapper",
@@ -17552,7 +17671,7 @@ var SingleSelect = /*#__PURE__*/React.forwardRef(function SingleSelect(_a, ref)
17552
17671
 
17553
17672
  var token = useToken({
17554
17673
  density: density
17555
- }, select)();
17674
+ }, select);
17556
17675
  React.useEffect(function () {
17557
17676
  setInputItems(items);
17558
17677
  }, [items]);
@@ -17565,6 +17684,13 @@ var SingleSelect = /*#__PURE__*/React.forwardRef(function SingleSelect(_a, ref)
17565
17684
  return item.toLowerCase().includes(inputValue.toLowerCase());
17566
17685
  }));
17567
17686
  },
17687
+ onIsOpenChange: function onIsOpenChange(_ref3) {
17688
+ var selectedItem = _ref3.selectedItem;
17689
+
17690
+ if (inputItems.length === 1 && selectedItem === inputItems[0]) {
17691
+ setInputItems(items);
17692
+ }
17693
+ },
17568
17694
  initialSelectedItem: initialSelectedItem
17569
17695
  };
17570
17696
 
@@ -17582,7 +17708,17 @@ var SingleSelect = /*#__PURE__*/React.forwardRef(function SingleSelect(_a, ref)
17582
17708
  getInputProps = _useCombobox.getInputProps,
17583
17709
  getComboboxProps = _useCombobox.getComboboxProps,
17584
17710
  highlightedIndex = _useCombobox.highlightedIndex,
17585
- getItemProps = _useCombobox.getItemProps;
17711
+ getItemProps = _useCombobox.getItemProps,
17712
+ openMenu = _useCombobox.openMenu,
17713
+ selectedItem = _useCombobox.selectedItem,
17714
+ reset = _useCombobox.reset,
17715
+ inputValue = _useCombobox.inputValue;
17716
+
17717
+ var openSelect = function openSelect() {
17718
+ if (!isOpen && !(disabled || readOnly)) {
17719
+ openMenu();
17720
+ }
17721
+ };
17586
17722
 
17587
17723
  return jsxRuntime.exports.jsx(styled.ThemeProvider, Object.assign({
17588
17724
  theme: token
@@ -17599,14 +17735,30 @@ var SingleSelect = /*#__PURE__*/React.forwardRef(function SingleSelect(_a, ref)
17599
17735
  children: [jsxRuntime.exports.jsx(PaddedInput, Object.assign({}, getInputProps({
17600
17736
  disabled: disabled
17601
17737
  }), {
17602
- readOnly: readOnly
17603
- }, other), void 0), jsxRuntime.exports.jsx(StyledButton, Object.assign({
17738
+ readOnly: readOnly,
17739
+ onFocus: openSelect,
17740
+ onClick: openSelect
17741
+ }, other), void 0), Boolean(inputValue) && jsxRuntime.exports.jsx(StyledButton, Object.assign({
17742
+ variant: "ghost_icon",
17743
+ disabled: disabled || readOnly,
17744
+ "aria-label": 'clear options',
17745
+ title: "clear",
17746
+ onClick: reset,
17747
+ style: {
17748
+ right: 32
17749
+ }
17750
+ }, {
17751
+ children: jsxRuntime.exports.jsx(Icon$1, {
17752
+ data: close,
17753
+ size: 16
17754
+ }, void 0)
17755
+ }), void 0), jsxRuntime.exports.jsx(StyledButton, Object.assign({
17604
17756
  variant: "ghost_icon"
17605
17757
  }, getToggleButtonProps({
17606
17758
  disabled: disabled || readOnly
17607
17759
  }), {
17608
17760
  "aria-label": 'toggle options',
17609
- density: density
17761
+ title: "open"
17610
17762
  }, {
17611
17763
  children: jsxRuntime.exports.jsx(Icon$1, {
17612
17764
  data: isOpen ? arrow_drop_up : arrow_drop_down
@@ -17615,14 +17767,13 @@ var SingleSelect = /*#__PURE__*/React.forwardRef(function SingleSelect(_a, ref)
17615
17767
  }), void 0), jsxRuntime.exports.jsx(StyledList, Object.assign({}, getMenuProps(), {
17616
17768
  children: isOpen && inputItems.map(function (item, index) {
17617
17769
  return jsxRuntime.exports.jsx(PaddedStyledListItem$1, Object.assign({
17618
- highlighted: highlightedIndex === index ? 'true' : 'false'
17770
+ highlighted: highlightedIndex === index ? 'true' : 'false',
17771
+ active: selectedItem === item ? 'true' : 'false'
17619
17772
  }, getItemProps({
17620
17773
  item: item,
17621
17774
  index: index,
17622
17775
  disabled: disabled
17623
17776
  }), {
17624
- density: density
17625
- }, {
17626
17777
  children: item
17627
17778
  }), "".concat(item));
17628
17779
  })
@@ -17637,17 +17788,23 @@ var _tokens$colors$intera$2 = tokens$6.colors.interactive,
17637
17788
  focusOutlineColor$2 = _tokens$colors$intera$2.focus.rgba,
17638
17789
  disabledText$1 = _tokens$colors$intera$2.disabled__text.rgba,
17639
17790
  labelTypography$2 = tokens$6.typography.navigation.menu_title,
17640
- _tokens$spacings$comf = tokens$6.spacings.comfortable,
17641
- medium_small$1 = _tokens$spacings$comf.medium_small,
17642
- x_small = _tokens$spacings$comf.x_small;
17791
+ _tokens$spacings$comf$1 = tokens$6.spacings.comfortable,
17792
+ medium_small$2 = _tokens$spacings$comf$1.medium_small,
17793
+ x_small$1 = _tokens$spacings$comf$1.x_small,
17794
+ _tokens$clickbounds$1 = tokens$6.clickbounds,
17795
+ clicboundSize$1 = _tokens$clickbounds$1.default__base,
17796
+ compactClickboundSize$1 = _tokens$clickbounds$1.compact__standard;
17643
17797
  var checkbox = {
17644
17798
  background: primaryColor$1,
17645
17799
  typography: labelTypography$2,
17646
17800
  spacings: {
17647
- bottom: medium_small$1,
17648
- top: medium_small$1,
17649
- left: medium_small$1,
17650
- right: medium_small$1
17801
+ bottom: medium_small$2,
17802
+ top: medium_small$2,
17803
+ left: medium_small$2,
17804
+ right: medium_small$2
17805
+ },
17806
+ clickbound: {
17807
+ height: clicboundSize$1
17651
17808
  },
17652
17809
  states: {
17653
17810
  hover: {
@@ -17669,17 +17826,20 @@ var checkbox = {
17669
17826
  entities: {
17670
17827
  label: {
17671
17828
  spacings: {
17672
- left: medium_small$1
17829
+ left: medium_small$2
17673
17830
  }
17674
17831
  }
17675
17832
  },
17676
17833
  modes: {
17677
17834
  compact: {
17678
17835
  spacings: {
17679
- bottom: x_small,
17680
- top: x_small,
17681
- left: x_small,
17682
- right: x_small
17836
+ bottom: x_small$1,
17837
+ top: x_small$1,
17838
+ left: x_small$1,
17839
+ right: x_small$1
17840
+ },
17841
+ clickbound: {
17842
+ height: compactClickboundSize$1
17683
17843
  },
17684
17844
  states: {
17685
17845
  focus: {
@@ -17716,14 +17876,21 @@ var Input$3 = styled__default['default'].input.attrs(function (_ref2) {
17716
17876
  }).withConfig({
17717
17877
  displayName: "Input",
17718
17878
  componentId: "sc-rqj7qf-1"
17719
- })(["border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;&:focus{outline:none;}&[data-focus-visible-added]:focus + svg{", "}&:not(:checked) ~ svg path[name='checked']{display:none;}&:not(:checked) ~ svg path[name='not-checked']{display:inline;}&:checked ~ svg path[name='not-checked']{display:none;}&:checked ~ svg path[name='checked']{display:inline;}"], function (_ref3) {
17720
- var theme = _ref3.theme;
17879
+ })(["--scale:", ";appearance:none;width:100%;height:100%;margin:0;grid-area:input;transform:scale(var(--scale));cursor:", ";&:focus{outline:none;}&[data-focus-visible-added]:focus + svg{", "}&:not(:checked) ~ svg path[name='checked']{display:none;}&:not(:checked) ~ svg path[name='not-checked']{display:inline;}&:checked ~ svg path[name='not-checked']{display:none;}&:checked ~ svg path[name='checked']{display:inline;}"], function (_ref3) {
17880
+ var theme = _ref3.theme,
17881
+ iconSize = _ref3.iconSize;
17882
+ return parseFloat(theme.clickbound.height) / iconSize;
17883
+ }, function (_ref4) {
17884
+ var disabled = _ref4.disabled;
17885
+ return disabled ? 'not-allowed' : 'pointer';
17886
+ }, function (_ref5) {
17887
+ var theme = _ref5.theme;
17721
17888
  return outlineTemplate(theme.states.focus.outline);
17722
17889
  });
17723
- var Svg$1 = styled__default['default'].svg.attrs(function (_ref4) {
17724
- var height = _ref4.height,
17725
- width = _ref4.width,
17726
- fill = _ref4.fill;
17890
+ var Svg$1 = styled__default['default'].svg.attrs(function (_ref6) {
17891
+ var height = _ref6.height,
17892
+ width = _ref6.width,
17893
+ fill = _ref6.fill;
17727
17894
  return {
17728
17895
  name: null,
17729
17896
  xmlns: 'http://www.w3.org/2000/svg',
@@ -17734,15 +17901,15 @@ var Svg$1 = styled__default['default'].svg.attrs(function (_ref4) {
17734
17901
  }).withConfig({
17735
17902
  displayName: "Input__Svg",
17736
17903
  componentId: "sc-rqj7qf-2"
17737
- })([""]);
17904
+ })(["grid-area:input;pointer-events:none;"]);
17738
17905
  var InputWrapper$1 = styled__default['default'].span.withConfig({
17739
17906
  displayName: "Input__InputWrapper",
17740
17907
  componentId: "sc-rqj7qf-3"
17741
- })(["display:inline-flex;border-radius:50%;", " @media (hover:hover) and (pointer:fine){&:hover{background-color:", ";}}"], function (_ref5) {
17742
- var theme = _ref5.theme;
17908
+ })(["display:inline-grid;grid:[input] 1fr / [input] 1fr;border-radius:50%;", " @media (hover:hover) and (pointer:fine){&:hover{background-color:", ";}}"], function (_ref7) {
17909
+ var theme = _ref7.theme;
17743
17910
  return spacingsTemplate(theme.spacings);
17744
- }, function (_ref6) {
17745
- var disabled = _ref6.disabled;
17911
+ }, function (_ref8) {
17912
+ var disabled = _ref8.disabled;
17746
17913
  return disabled ? 'transparent' : checkbox.states.hover.background;
17747
17914
  });
17748
17915
  var CheckboxInput = /*#__PURE__*/React.forwardRef(function CheckboxInput(_a, ref) {
@@ -17756,7 +17923,7 @@ var CheckboxInput = /*#__PURE__*/React.forwardRef(function CheckboxInput(_a, ref
17756
17923
 
17757
17924
  var token = useToken({
17758
17925
  density: density
17759
- }, checkbox)();
17926
+ }, checkbox);
17760
17927
  var iconSize = 24;
17761
17928
  var fill = disabled ? checkbox.states.disabled.background : checkbox.background;
17762
17929
  var inputWrapperProps = {
@@ -17770,7 +17937,9 @@ var CheckboxInput = /*#__PURE__*/React.forwardRef(function CheckboxInput(_a, ref
17770
17937
  theme: token
17771
17938
  }, {
17772
17939
  children: jsxRuntime.exports.jsxs(InputWrapper$1, Object.assign({}, inputWrapperProps, {
17773
- children: [jsxRuntime.exports.jsx(Input$3, Object.assign({}, inputProps), void 0), indeterminate ? jsxRuntime.exports.jsx(Svg$1, Object.assign({
17940
+ children: [jsxRuntime.exports.jsx(Input$3, Object.assign({
17941
+ iconSize: iconSize
17942
+ }, inputProps), void 0), indeterminate ? jsxRuntime.exports.jsx(Svg$1, Object.assign({
17774
17943
  width: iconSize,
17775
17944
  height: iconSize,
17776
17945
  viewBox: "0 0 ".concat(iconSize, " ").concat(iconSize),
@@ -17835,7 +18004,7 @@ var MultiSelect = /*#__PURE__*/React.forwardRef(function MultiSelect(_a, ref) {
17835
18004
 
17836
18005
  var token = useToken({
17837
18006
  density: density
17838
- }, multiSelect)();
18007
+ }, multiSelect);
17839
18008
  var multipleSelectionProps = {
17840
18009
  initialSelectedItems: initialSelectedItems,
17841
18010
  onSelectedItemsChange: function onSelectedItemsChange(changes) {
@@ -17855,7 +18024,8 @@ var MultiSelect = /*#__PURE__*/React.forwardRef(function MultiSelect(_a, ref) {
17855
18024
  getDropdownProps = _useMultipleSelection.getDropdownProps,
17856
18025
  addSelectedItem = _useMultipleSelection.addSelectedItem,
17857
18026
  removeSelectedItem = _useMultipleSelection.removeSelectedItem,
17858
- selectedItems = _useMultipleSelection.selectedItems;
18027
+ selectedItems = _useMultipleSelection.selectedItems,
18028
+ reset = _useMultipleSelection.reset;
17859
18029
 
17860
18030
  var getFilteredItems = function getFilteredItems(items) {
17861
18031
  return items.filter(function (item) {
@@ -17918,9 +18088,17 @@ var MultiSelect = /*#__PURE__*/React.forwardRef(function MultiSelect(_a, ref) {
17918
18088
  getInputProps = _useCombobox.getInputProps,
17919
18089
  getComboboxProps = _useCombobox.getComboboxProps,
17920
18090
  highlightedIndex = _useCombobox.highlightedIndex,
17921
- getItemProps = _useCombobox.getItemProps;
18091
+ getItemProps = _useCombobox.getItemProps,
18092
+ openMenu = _useCombobox.openMenu;
17922
18093
 
17923
18094
  var placeholderText = items.length > 0 ? "".concat(selectedItems.length, "/").concat(items.length, " selected") : '';
18095
+
18096
+ var openSelect = function openSelect() {
18097
+ if (!isOpen && !(disabled || readOnly)) {
18098
+ openMenu();
18099
+ }
18100
+ };
18101
+
17924
18102
  return jsxRuntime.exports.jsx(styled.ThemeProvider, Object.assign({
17925
18103
  theme: token
17926
18104
  }, {
@@ -17938,14 +18116,29 @@ var MultiSelect = /*#__PURE__*/React.forwardRef(function MultiSelect(_a, ref) {
17938
18116
  disabled: disabled
17939
18117
  })), {
17940
18118
  placeholder: placeholderText,
17941
- readOnly: readOnly
17942
- }, other), void 0), jsxRuntime.exports.jsx(StyledButton, Object.assign({
18119
+ readOnly: readOnly,
18120
+ onFocus: openSelect
18121
+ }, other), void 0), Boolean(selectedItems.length || inputValue) && jsxRuntime.exports.jsx(StyledButton, Object.assign({
18122
+ variant: "ghost_icon",
18123
+ disabled: disabled || readOnly,
18124
+ "aria-label": 'clear options',
18125
+ title: "clear",
18126
+ onClick: reset,
18127
+ style: {
18128
+ right: 32
18129
+ }
18130
+ }, {
18131
+ children: jsxRuntime.exports.jsx(Icon$1, {
18132
+ data: close,
18133
+ size: 16
18134
+ }, void 0)
18135
+ }), void 0), jsxRuntime.exports.jsx(StyledButton, Object.assign({
17943
18136
  variant: "ghost_icon"
17944
18137
  }, getToggleButtonProps({
17945
18138
  disabled: disabled || readOnly
17946
18139
  }), {
17947
18140
  "aria-label": 'toggle options',
17948
- density: density
18141
+ title: "open"
17949
18142
  }, {
17950
18143
  children: jsxRuntime.exports.jsx(Icon$1, {
17951
18144
  data: isOpen ? arrow_drop_up : arrow_drop_down
@@ -17960,8 +18153,6 @@ var MultiSelect = /*#__PURE__*/React.forwardRef(function MultiSelect(_a, ref) {
17960
18153
  index: index,
17961
18154
  disabled: disabled
17962
18155
  }), {
17963
- density: density
17964
- }, {
17965
18156
  children: [jsxRuntime.exports.jsx(CheckboxInput, {
17966
18157
  checked: selectedItems.includes(item),
17967
18158
  value: item,
@@ -17978,8 +18169,8 @@ var MultiSelect = /*#__PURE__*/React.forwardRef(function MultiSelect(_a, ref) {
17978
18169
  }), void 0);
17979
18170
  });
17980
18171
 
17981
- var StyledCheckbox = styled__default['default'].label.withConfig({
17982
- displayName: "Checkbox__StyledCheckbox",
18172
+ var StyledLabel$2 = styled__default['default'].label.withConfig({
18173
+ displayName: "Checkbox__StyledLabel",
17983
18174
  componentId: "sc-yg6l8h-0"
17984
18175
  })(["display:inline-flex;align-items:center;cursor:", ";"], function (_ref) {
17985
18176
  var disabled = _ref.disabled;
@@ -17997,7 +18188,7 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function Checkbox(_a, ref) {
17997
18188
  className = _a.className,
17998
18189
  rest = __rest(_a, ["label", "disabled", "indeterminate", "className"]);
17999
18190
 
18000
- return jsxRuntime.exports.jsxs(StyledCheckbox, Object.assign({
18191
+ return label ? jsxRuntime.exports.jsxs(StyledLabel$2, Object.assign({
18001
18192
  disabled: disabled,
18002
18193
  className: className
18003
18194
  }, {
@@ -18005,9 +18196,13 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function Checkbox(_a, ref) {
18005
18196
  disabled: disabled,
18006
18197
  ref: ref,
18007
18198
  indeterminate: indeterminate
18008
- }), void 0), label && jsxRuntime.exports.jsx(LabelText$1, {
18199
+ }), void 0), jsxRuntime.exports.jsx(LabelText$1, {
18009
18200
  children: label
18010
18201
  }, void 0)]
18202
+ }), void 0) : jsxRuntime.exports.jsx(CheckboxInput, Object.assign({}, rest, {
18203
+ disabled: disabled,
18204
+ ref: ref,
18205
+ indeterminate: indeterminate
18011
18206
  }), void 0);
18012
18207
  });
18013
18208
  Checkbox.displayName = 'Checkbox';
@@ -18018,15 +18213,23 @@ var _tokens$colors$intera$1 = tokens$6.colors.interactive,
18018
18213
  focusOutlineColor$1 = _tokens$colors$intera$1.focus.rgba,
18019
18214
  disabledText = _tokens$colors$intera$1.disabled__text.rgba,
18020
18215
  labelTypography$1 = tokens$6.typography.navigation.menu_title,
18021
- medium_small = tokens$6.spacings.comfortable.medium_small;
18216
+ _tokens$spacings$comf = tokens$6.spacings.comfortable,
18217
+ medium_small$1 = _tokens$spacings$comf.medium_small,
18218
+ x_small = _tokens$spacings$comf.x_small,
18219
+ _tokens$clickbounds = tokens$6.clickbounds,
18220
+ clicboundSize = _tokens$clickbounds.default__base,
18221
+ compactClickboundSize = _tokens$clickbounds.compact__standard;
18022
18222
  var comfortable$1 = {
18023
18223
  background: primaryColor,
18024
18224
  typography: labelTypography$1,
18025
18225
  spacings: {
18026
- bottom: medium_small,
18027
- top: medium_small,
18028
- left: medium_small,
18029
- right: medium_small
18226
+ bottom: medium_small$1,
18227
+ top: medium_small$1,
18228
+ left: medium_small$1,
18229
+ right: medium_small$1
18230
+ },
18231
+ clickbound: {
18232
+ height: clicboundSize
18030
18233
  },
18031
18234
  states: {
18032
18235
  hover: {
@@ -18041,7 +18244,38 @@ var comfortable$1 = {
18041
18244
  style: 'dashed',
18042
18245
  width: '1px',
18043
18246
  color: focusOutlineColor$1,
18044
- offset: '4px'
18247
+ offset: '11px'
18248
+ }
18249
+ }
18250
+ },
18251
+ entities: {
18252
+ label: {
18253
+ spacings: {
18254
+ left: medium_small$1
18255
+ }
18256
+ }
18257
+ },
18258
+ modes: {
18259
+ compact: {
18260
+ spacings: {
18261
+ bottom: x_small,
18262
+ top: x_small,
18263
+ left: x_small,
18264
+ right: x_small
18265
+ },
18266
+ clickbound: {
18267
+ height: compactClickboundSize
18268
+ },
18269
+ states: {
18270
+ focus: {
18271
+ outline: {
18272
+ type: 'outline',
18273
+ style: 'dashed',
18274
+ width: '1px',
18275
+ color: focusOutlineColor$1,
18276
+ offset: '3px'
18277
+ }
18278
+ }
18045
18279
  }
18046
18280
  }
18047
18281
  }
@@ -18056,16 +18290,26 @@ var Input$2 = styled__default['default'].input.attrs(function (_ref) {
18056
18290
  }).withConfig({
18057
18291
  displayName: "Radio__Input",
18058
18292
  componentId: "sc-we59oz-0"
18059
- })(["border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;&:focus{outline:none;}&[data-focus-visible-added]:focus + svg{", "}&:not(:checked) ~ svg path[name='selected']{display:none;}&:not(:checked) ~ svg path[name='unselected']{display:inline;}&:checked ~ svg path[name='unselected']{display:none;}&:checked ~ svg path[name='selected']{display:inline;}"], outlineTemplate(comfortable$1.states.focus.outline));
18060
- var StyledRadio = styled__default['default'].label.withConfig({
18061
- displayName: "Radio__StyledRadio",
18293
+ })(["--scale:", ";appearance:none;width:100%;height:100%;margin:0;grid-area:input;transform:scale(var(--scale));cursor:", ";&:focus{outline:none;}&[data-focus-visible-added]:focus + svg{", "}&:not(:checked) ~ svg path[name='selected']{display:none;}&:not(:checked) ~ svg path[name='unselected']{display:inline;}&:checked ~ svg path[name='unselected']{display:none;}&:checked ~ svg path[name='selected']{display:inline;}"], function (_ref2) {
18294
+ var theme = _ref2.theme,
18295
+ iconSize = _ref2.iconSize;
18296
+ return parseFloat(theme.clickbound.height) / iconSize;
18297
+ }, function (_ref3) {
18298
+ var disabled = _ref3.disabled;
18299
+ return disabled ? 'not-allowed' : 'pointer';
18300
+ }, function (_ref4) {
18301
+ var theme = _ref4.theme;
18302
+ return outlineTemplate(theme.states.focus.outline);
18303
+ });
18304
+ var StyledLabel$1 = styled__default['default'].label.withConfig({
18305
+ displayName: "Radio__StyledLabel",
18062
18306
  componentId: "sc-we59oz-1"
18063
- })(["display:inline-flex;align-items:center;cursor:", ";"], function (_ref2) {
18064
- var disabled = _ref2.disabled;
18307
+ })(["display:inline-flex;align-items:center;cursor:", ";"], function (_ref5) {
18308
+ var disabled = _ref5.disabled;
18065
18309
  return disabled ? 'not-allowed' : 'pointer';
18066
18310
  });
18067
- var StyledPath = styled__default['default'].path.attrs(function (_ref3) {
18068
- var icon = _ref3.icon;
18311
+ var StyledPath = styled__default['default'].path.attrs(function (_ref6) {
18312
+ var icon = _ref6.icon;
18069
18313
  return {
18070
18314
  fillRule: 'evenodd',
18071
18315
  clipRule: 'evenodd',
@@ -18075,10 +18319,10 @@ var StyledPath = styled__default['default'].path.attrs(function (_ref3) {
18075
18319
  displayName: "Radio__StyledPath",
18076
18320
  componentId: "sc-we59oz-2"
18077
18321
  })([""]);
18078
- var Svg = styled__default['default'].svg.attrs(function (_ref4) {
18079
- var height = _ref4.height,
18080
- width = _ref4.width,
18081
- fill = _ref4.fill;
18322
+ var Svg = styled__default['default'].svg.attrs(function (_ref7) {
18323
+ var height = _ref7.height,
18324
+ width = _ref7.width,
18325
+ fill = _ref7.fill;
18082
18326
  return {
18083
18327
  name: null,
18084
18328
  xmlns: 'http://www.w3.org/2000/svg',
@@ -18089,16 +18333,22 @@ var Svg = styled__default['default'].svg.attrs(function (_ref4) {
18089
18333
  }).withConfig({
18090
18334
  displayName: "Radio__Svg",
18091
18335
  componentId: "sc-we59oz-3"
18092
- })([""]);
18336
+ })(["grid-area:input;pointer-events:none;"]);
18093
18337
  var LabelText = styled__default['default'].span.withConfig({
18094
18338
  displayName: "Radio__LabelText",
18095
18339
  componentId: "sc-we59oz-4"
18096
- })(["", ""], typographyTemplate(comfortable$1.typography));
18340
+ })(["", " ", ""], typographyTemplate(comfortable$1.typography), spacingsTemplate(comfortable$1.entities.label.spacings));
18097
18341
  var InputWrapper = styled__default['default'].span.withConfig({
18098
18342
  displayName: "Radio__InputWrapper",
18099
18343
  componentId: "sc-we59oz-5"
18100
- })(["", " display:inline-flex;border-radius:50%;@media (hover:hover) and (pointer:fine){&:hover{background-color:", ";}}"], spacingsTemplate(comfortable$1.spacings), function (_ref5) {
18101
- var disabled = _ref5.disabled;
18344
+ })(["", " display:inline-grid;grid:[input] 1fr / [input] 1fr;border-radius:50%;cursor:", ";@media (hover:hover) and (pointer:fine){&:hover{background-color:", ";}}"], function (_ref8) {
18345
+ var theme = _ref8.theme;
18346
+ return spacingsTemplate(theme.spacings);
18347
+ }, function (_ref9) {
18348
+ var disabled = _ref9.disabled;
18349
+ return disabled ? 'not-allowed' : 'pointer';
18350
+ }, function (_ref10) {
18351
+ var disabled = _ref10.disabled;
18102
18352
  return disabled ? 'transparent' : comfortable$1.states.hover.background;
18103
18353
  });
18104
18354
  var Radio = /*#__PURE__*/React.forwardRef(function Radio(_a, ref) {
@@ -18108,36 +18358,58 @@ var Radio = /*#__PURE__*/React.forwardRef(function Radio(_a, ref) {
18108
18358
  className = _a.className,
18109
18359
  rest = __rest(_a, ["label", "disabled", "className"]);
18110
18360
 
18361
+ var _useEds = useEds(),
18362
+ density = _useEds.density;
18363
+
18364
+ var token = useToken({
18365
+ density: density
18366
+ }, comfortable$1);
18111
18367
  var iconSize = 24;
18112
18368
  var fill = disabled ? comfortable$1.states.disabled.background : comfortable$1.background;
18113
- return jsxRuntime.exports.jsxs(StyledRadio, Object.assign({
18114
- disabled: disabled,
18115
- className: className
18369
+ var renderSVG = React.useMemo(function () {
18370
+ return jsxRuntime.exports.jsxs(Svg, Object.assign({
18371
+ width: iconSize,
18372
+ height: iconSize,
18373
+ viewBox: "0 0 ".concat(iconSize, " ").concat(iconSize),
18374
+ fill: fill,
18375
+ "aria-hidden": true
18376
+ }, {
18377
+ children: [jsxRuntime.exports.jsx(StyledPath, {
18378
+ icon: radio_button_selected,
18379
+ name: "selected"
18380
+ }, void 0), jsxRuntime.exports.jsx(StyledPath, {
18381
+ icon: radio_button_unselected,
18382
+ name: "unselected"
18383
+ }, void 0)]
18384
+ }), void 0);
18385
+ }, [fill]);
18386
+ return jsxRuntime.exports.jsx(styled.ThemeProvider, Object.assign({
18387
+ theme: token
18116
18388
  }, {
18117
- children: [jsxRuntime.exports.jsxs(InputWrapper, Object.assign({
18389
+ children: label ? jsxRuntime.exports.jsxs(StyledLabel$1, Object.assign({
18390
+ disabled: disabled,
18391
+ className: className
18392
+ }, {
18393
+ children: [jsxRuntime.exports.jsxs(InputWrapper, Object.assign({
18394
+ disabled: disabled
18395
+ }, {
18396
+ children: [jsxRuntime.exports.jsx(Input$2, Object.assign({}, rest, {
18397
+ ref: ref,
18398
+ disabled: disabled,
18399
+ iconSize: iconSize
18400
+ }), void 0), renderSVG]
18401
+ }), void 0), jsxRuntime.exports.jsx(LabelText, {
18402
+ children: label
18403
+ }, void 0)]
18404
+ }), void 0) : jsxRuntime.exports.jsxs(InputWrapper, Object.assign({
18118
18405
  disabled: disabled
18119
18406
  }, {
18120
18407
  children: [jsxRuntime.exports.jsx(Input$2, Object.assign({}, rest, {
18121
18408
  ref: ref,
18122
- disabled: disabled
18123
- }), void 0), jsxRuntime.exports.jsxs(Svg, Object.assign({
18124
- width: iconSize,
18125
- height: iconSize,
18126
- viewBox: "0 0 ".concat(iconSize, " ").concat(iconSize),
18127
- fill: fill,
18128
- "aria-hidden": true
18129
- }, {
18130
- children: [jsxRuntime.exports.jsx(StyledPath, {
18131
- icon: radio_button_selected,
18132
- name: "selected"
18133
- }, void 0), jsxRuntime.exports.jsx(StyledPath, {
18134
- icon: radio_button_unselected,
18135
- name: "unselected"
18136
- }, void 0)]
18137
- }), void 0)]
18138
- }), void 0), label && jsxRuntime.exports.jsx(LabelText, {
18139
- children: label
18140
- }, void 0)]
18409
+ disabled: disabled,
18410
+ iconSize: iconSize
18411
+ }), void 0), renderSVG]
18412
+ }), void 0)
18141
18413
  }), void 0);
18142
18414
  });
18143
18415
  Radio.displayName = 'Radio';
@@ -18153,7 +18425,7 @@ var BaseInputWrapper = styled__default['default'].span.withConfig({
18153
18425
 
18154
18426
  var _a, _b;
18155
18427
 
18156
- return styled.css(["width:", ";height:", ";border-radius:50%;position:relative;&::before{position:absolute;top:0;left:0;width:auto;min-height:auto;content:'';}&::after{position:absolute;top:-", ";left:-", ";width:", ";height:", ";content:'';}"], width, height, (_a = clickbound === null || clickbound === void 0 ? void 0 : clickbound.offset) === null || _a === void 0 ? void 0 : _a.top, (_b = clickbound === null || clickbound === void 0 ? void 0 : clickbound.offset) === null || _b === void 0 ? void 0 : _b.left, clickbound === null || clickbound === void 0 ? void 0 : clickbound.width, clickbound === null || clickbound === void 0 ? void 0 : clickbound.height);
18428
+ return styled.css(["width:", ";height:", ";border-radius:50%;position:relative;grid-area:input;pointer-events:none;&::before{position:absolute;top:0;left:0;width:auto;min-height:auto;content:'';}&::after{position:absolute;top:-", ";left:-", ";width:", ";height:", ";content:'';}"], width, height, (_a = clickbound === null || clickbound === void 0 ? void 0 : clickbound.offset) === null || _a === void 0 ? void 0 : _a.top, (_b = clickbound === null || clickbound === void 0 ? void 0 : clickbound.offset) === null || _b === void 0 ? void 0 : _b.left, clickbound === null || clickbound === void 0 ? void 0 : clickbound.width, clickbound === null || clickbound === void 0 ? void 0 : clickbound.height);
18157
18429
  });
18158
18430
  var BaseInput = styled__default['default'].input.attrs(function (_ref2) {
18159
18431
  var _ref2$type = _ref2.type,
@@ -18165,9 +18437,14 @@ var BaseInput = styled__default['default'].input.attrs(function (_ref2) {
18165
18437
  displayName: "Switchstyles__BaseInput",
18166
18438
  componentId: "sc-x39lde-1"
18167
18439
  })(function (_ref3) {
18168
- var theme = _ref3.theme;
18169
- return styled.css(["border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;&:focus{outline:none;}&[data-focus-visible-added]:focus + span{", "}"], outlineTemplate(theme.states.focus.outline));
18440
+ var disabled = _ref3.disabled,
18441
+ theme = _ref3.theme;
18442
+ return styled.css(["appearance:none;width:100%;height:100%;grid-area:input;margin:0;cursor:", ";&:focus{outline:none;}&[data-focus-visible-added]:focus + span{", "}"], disabled ? 'not-allowed' : 'pointer', outlineTemplate(theme.states.focus.outline));
18170
18443
  });
18444
+ var GridWrapper = styled__default['default'].span.withConfig({
18445
+ displayName: "Switchstyles__GridWrapper",
18446
+ componentId: "sc-x39lde-2"
18447
+ })(["display:inline-grid;vertical-align:middle;grid:[input] 1fr / [input] 1fr;"]);
18171
18448
 
18172
18449
  var Wrapper$1 = styled__default['default'](BaseInputWrapper).withConfig({
18173
18450
  displayName: "SwitchSmall__Wrapper",
@@ -18210,7 +18487,7 @@ var SwitchSmall = /*#__PURE__*/React.forwardRef(function SwitchSmall(_a, ref) {
18210
18487
  var disabled = _a.disabled,
18211
18488
  rest = __rest(_a, ["disabled"]);
18212
18489
 
18213
- return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment, {
18490
+ return jsxRuntime.exports.jsxs(GridWrapper, {
18214
18491
  children: [jsxRuntime.exports.jsx(Input$1, Object.assign({}, rest, {
18215
18492
  ref: ref,
18216
18493
  disabled: disabled
@@ -18269,7 +18546,7 @@ var SwitchDefault = /*#__PURE__*/React.forwardRef(function SwitchDefault(_a, ref
18269
18546
  var disabled = _a.disabled,
18270
18547
  rest = __rest(_a, ["disabled"]);
18271
18548
 
18272
- return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment, {
18549
+ return jsxRuntime.exports.jsxs(GridWrapper, {
18273
18550
  children: [jsxRuntime.exports.jsx(Input, Object.assign({}, rest, {
18274
18551
  ref: ref,
18275
18552
  disabled: disabled
@@ -18300,7 +18577,7 @@ var _tokens$colors = tokens$6.colors,
18300
18577
  labelTypography = tokens$6.typography.navigation.menu_title,
18301
18578
  clickbounds = tokens$6.clickbounds,
18302
18579
  boxShadow = tokens$6.elevation.raised,
18303
- small = tokens$6.spacings.comfortable.small,
18580
+ medium_small = tokens$6.spacings.comfortable.medium_small,
18304
18581
  _tokens$shape = tokens$6.shape,
18305
18582
  circle = _tokens$shape.circle,
18306
18583
  compactIconButton = _tokens$shape._modes.compact.icon_button;
@@ -18319,7 +18596,7 @@ var comfortable = {
18319
18596
  entities: {
18320
18597
  label: {
18321
18598
  spacings: {
18322
- left: small
18599
+ left: medium_small
18323
18600
  }
18324
18601
  },
18325
18602
  track: {
@@ -18396,8 +18673,7 @@ var comfortable = {
18396
18673
  width: '1px',
18397
18674
  type: 'outline',
18398
18675
  style: 'dashed',
18399
- color: focusOutlineColor,
18400
- offset: '2px'
18676
+ color: focusOutlineColor
18401
18677
  }
18402
18678
  },
18403
18679
  hover: {
@@ -18411,8 +18687,8 @@ var comfortable = {
18411
18687
  }
18412
18688
  };
18413
18689
 
18414
- var StyledSwitch = styled__default['default'].label.withConfig({
18415
- displayName: "Switch__StyledSwitch",
18690
+ var StyledLabel = styled__default['default'].label.withConfig({
18691
+ displayName: "Switch__StyledLabel",
18416
18692
  componentId: "sc-sdaahx-0"
18417
18693
  })(["cursor:", ";border:none;background-color:transparent;vertical-align:middle;display:inline-flex;align-items:center;position:relative;"], function (_ref) {
18418
18694
  var isDisabled = _ref.isDisabled;
@@ -18440,11 +18716,11 @@ var Switch = /*#__PURE__*/React.forwardRef(function Switch(_a, ref) {
18440
18716
  var overrideDensity = size === 'small' ? 'compact' : density;
18441
18717
  var token = useToken({
18442
18718
  density: overrideDensity
18443
- }, comfortable)();
18719
+ }, comfortable);
18444
18720
  return jsxRuntime.exports.jsx(styled.ThemeProvider, Object.assign({
18445
18721
  theme: token
18446
18722
  }, {
18447
- children: jsxRuntime.exports.jsxs(StyledSwitch, Object.assign({
18723
+ children: label ? jsxRuntime.exports.jsxs(StyledLabel, Object.assign({
18448
18724
  isDisabled: disabled,
18449
18725
  className: className
18450
18726
  }, {
@@ -18459,6 +18735,14 @@ var Switch = /*#__PURE__*/React.forwardRef(function Switch(_a, ref) {
18459
18735
  }), void 0), label && jsxRuntime.exports.jsx(Label, {
18460
18736
  children: label
18461
18737
  }, void 0)]
18738
+ }), void 0) : size === 'small' ? jsxRuntime.exports.jsx(SwitchSmall, Object.assign({
18739
+ disabled: disabled
18740
+ }, rest, {
18741
+ ref: ref
18742
+ }), void 0) : jsxRuntime.exports.jsx(SwitchDefault, Object.assign({
18743
+ disabled: disabled
18744
+ }, rest, {
18745
+ ref: ref
18462
18746
  }), void 0)
18463
18747
  }), void 0);
18464
18748
  });