@equinor/eds-core-react 0.19.0-dev.202205096 → 0.20.1-dev.20220609

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.
@@ -946,7 +946,7 @@ const Button = /*#__PURE__*/react.forwardRef(function Button(_ref2, ref) {
946
946
  });
947
947
 
948
948
  const {
949
- typography: typography$g,
949
+ typography: typography$h,
950
950
  colors: colorsToken,
951
951
  interactions: {
952
952
  focused: {
@@ -957,7 +957,7 @@ const {
957
957
  const {
958
958
  heading,
959
959
  paragraph: paragraph$2
960
- } = typography$g;
960
+ } = typography$h;
961
961
  const {
962
962
  interactive: {
963
963
  primary__resting: {
@@ -983,7 +983,7 @@ const {
983
983
  }
984
984
  }
985
985
  } = colorsToken;
986
- const colors$7 = {
986
+ const colors$8 = {
987
987
  primary: primary$5,
988
988
  secondary,
989
989
  danger: danger$1,
@@ -1039,12 +1039,12 @@ const findTypography = (variantName, group) => {
1039
1039
  return quickVariants[variantName];
1040
1040
  }
1041
1041
 
1042
- return typography$g[group][variantName];
1042
+ return typography$h[group][variantName];
1043
1043
  };
1044
1044
 
1045
1045
  const findColor = function () {
1046
1046
  let inputColor = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
1047
- return typeof colors$7[inputColor] === 'undefined' ? inputColor : colors$7[inputColor];
1047
+ return typeof colors$8[inputColor] === 'undefined' ? inputColor : colors$8[inputColor];
1048
1048
  };
1049
1049
 
1050
1050
  const toVariantName = function (variant) {
@@ -1330,7 +1330,7 @@ const StyledTableCell$1 = styled__default["default"].td.withConfig({
1330
1330
  align
1331
1331
  } = theme;
1332
1332
  const backgroundColor = color === 'error' ? (_theme$validation$err = theme.validation.error) === null || _theme$validation$err === void 0 ? void 0 : _theme$validation$err.background : '';
1333
- const base = styled.css(["min-height:", ";height:", ";background:", ";vertical-align:", ";", " ", " ", ""], height, height, backgroundColor, align.vertical, edsUtils.spacingsTemplate(spacings), edsUtils.typographyTemplate(typography), edsUtils.bordersTemplate(border));
1333
+ const base = styled.css(["min-height:", ";height:", ";background:", ";vertical-align:", ";box-sizing:border-box;", " ", " ", ""], height, height, backgroundColor, align.vertical, edsUtils.spacingsTemplate(spacings), edsUtils.typographyTemplate(typography), edsUtils.bordersTemplate(border));
1334
1334
  return base;
1335
1335
  });
1336
1336
  const TableDataCell = /*#__PURE__*/react.forwardRef(function TableDataCell(_ref2, ref) {
@@ -1506,7 +1506,7 @@ const StyledTableCell = styled__default["default"].th.withConfig({
1506
1506
  sortStylingActive = styled.css(["", ";background:", ";color:", ";"], activeToken.border.type === 'bordergroup' ? styled.css(["border-color:", ";"], activeToken.border.bottom.color) : '', activeToken.background, activeToken.typography.color);
1507
1507
  }
1508
1508
 
1509
- return styled.css(["min-height:", ";height:", ";background:", ";", " ", " ", " ", " ", " ", ""], height, height, background, edsUtils.spacingsTemplate(spacings), edsUtils.typographyTemplate(typography), edsUtils.bordersTemplate(theme.border), sortStylingHover, sortStylingActive, sticky ? styled.css(["position:sticky;top:0;z-index:1;"]) : '');
1509
+ return styled.css(["min-height:", ";height:", ";background:", ";box-sizing:border-box;", " ", " ", " ", " ", " ", ""], height, height, background, edsUtils.spacingsTemplate(spacings), edsUtils.typographyTemplate(typography), edsUtils.bordersTemplate(theme.border), sortStylingHover, sortStylingActive, sticky ? styled.css(["position:sticky;top:0;z-index:1;"]) : '');
1510
1510
  });
1511
1511
  const CellInner = styled__default["default"].div.withConfig({
1512
1512
  displayName: "HeaderCell__CellInner",
@@ -1713,8 +1713,8 @@ const {
1713
1713
  },
1714
1714
  spacings: {
1715
1715
  comfortable: {
1716
- small: spacingSmall$4,
1717
- medium: spacingMedium$8
1716
+ small: spacingSmall$5,
1717
+ medium: spacingMedium$9
1718
1718
  }
1719
1719
  }
1720
1720
  } = edsTokens.tokens;
@@ -1742,14 +1742,14 @@ const divider$1 = {
1742
1742
  };
1743
1743
  const small$7 = { ...baseDivider$1,
1744
1744
  spacings: {
1745
- top: spacingSmall$4,
1746
- bottom: reduceValueByDividerHeight(spacingSmall$4)
1745
+ top: spacingSmall$5,
1746
+ bottom: reduceValueByDividerHeight(spacingSmall$5)
1747
1747
  }
1748
1748
  };
1749
1749
  const medium$3 = { ...baseDivider$1,
1750
1750
  spacings: {
1751
- top: spacingMedium$8,
1752
- bottom: reduceValueByDividerHeight(spacingMedium$8)
1751
+ top: spacingMedium$9,
1752
+ bottom: reduceValueByDividerHeight(spacingMedium$9)
1753
1753
  }
1754
1754
  };
1755
1755
 
@@ -1850,7 +1850,7 @@ const {
1850
1850
  x_small: x_small$5
1851
1851
  }
1852
1852
  },
1853
- typography: typography$f,
1853
+ typography: typography$g,
1854
1854
  shape: shape$2
1855
1855
  } = edsTokens.tokens;
1856
1856
  const input$2 = {
@@ -1862,7 +1862,7 @@ const input$2 = {
1862
1862
  top: '6px',
1863
1863
  bottom: '6px'
1864
1864
  },
1865
- typography: { ...typography$f.input.text,
1865
+ typography: { ...typography$g.input.text,
1866
1866
  color: static_icons__default.rgba
1867
1867
  },
1868
1868
  entities: {
@@ -1999,7 +1999,7 @@ var tokens$6 = /*#__PURE__*/Object.freeze({
1999
1999
  inputToken: inputToken
2000
2000
  });
2001
2001
 
2002
- const StyledInput = styled__default["default"].input.withConfig({
2002
+ const StyledInput$1 = styled__default["default"].input.withConfig({
2003
2003
  displayName: "Input__StyledInput",
2004
2004
  componentId: "sc-1ykv024-0"
2005
2005
  })(_ref => {
@@ -2044,13 +2044,13 @@ const Input$4 = /*#__PURE__*/react.forwardRef(function Input(_ref2, ref) {
2044
2044
  };
2045
2045
  return /*#__PURE__*/jsxRuntime.jsx(styled.ThemeProvider, {
2046
2046
  theme: token,
2047
- children: /*#__PURE__*/jsxRuntime.jsx(StyledInput, { ...inputProps
2047
+ children: /*#__PURE__*/jsxRuntime.jsx(StyledInput$1, { ...inputProps
2048
2048
  })
2049
2049
  });
2050
2050
  });
2051
2051
 
2052
2052
  const {
2053
- colors: colors$6,
2053
+ colors: colors$7,
2054
2054
  spacings: {
2055
2055
  comfortable: comfortable$6
2056
2056
  }
@@ -2071,24 +2071,24 @@ const input$1 = {
2071
2071
  }
2072
2072
  },
2073
2073
  default: {
2074
- color: colors$6.text.static_icons__tertiary.hex,
2075
- disabledColor: colors$6.interactive.disabled__fill.hex,
2076
- focusColor: colors$6.interactive.primary__resting.hex
2074
+ color: colors$7.text.static_icons__tertiary.hex,
2075
+ disabledColor: colors$7.interactive.disabled__fill.hex,
2076
+ focusColor: colors$7.interactive.primary__resting.hex
2077
2077
  },
2078
2078
  error: {
2079
- color: colors$6.interactive.danger__resting.hex,
2080
- disabledColor: colors$6.interactive.disabled__fill.hex,
2081
- focusColor: colors$6.interactive.danger__hover.hex
2079
+ color: colors$7.interactive.danger__resting.hex,
2080
+ disabledColor: colors$7.interactive.disabled__fill.hex,
2081
+ focusColor: colors$7.interactive.danger__hover.hex
2082
2082
  },
2083
2083
  warning: {
2084
- color: colors$6.interactive.warning__resting.hex,
2085
- disabledColor: colors$6.interactive.disabled__fill.hex,
2086
- focusColor: colors$6.interactive.warning__hover.hex
2084
+ color: colors$7.interactive.warning__resting.hex,
2085
+ disabledColor: colors$7.interactive.disabled__fill.hex,
2086
+ focusColor: colors$7.interactive.warning__hover.hex
2087
2087
  },
2088
2088
  success: {
2089
- color: colors$6.interactive.success__resting.hex,
2090
- disabledColor: colors$6.interactive.disabled__fill.hex,
2091
- focusColor: colors$6.interactive.success__hover.hex
2089
+ color: colors$7.interactive.success__resting.hex,
2090
+ disabledColor: colors$7.interactive.disabled__fill.hex,
2091
+ focusColor: colors$7.interactive.success__hover.hex
2092
2092
  }
2093
2093
  };
2094
2094
 
@@ -2150,8 +2150,8 @@ const InputIcon = /*#__PURE__*/react.forwardRef(function InputIcon(_ref2, ref) {
2150
2150
  });
2151
2151
 
2152
2152
  const {
2153
- colors: colors$5,
2154
- typography: typography$e,
2153
+ colors: colors$6,
2154
+ typography: typography$f,
2155
2155
  spacings: {
2156
2156
  comfortable: {
2157
2157
  small: small$5,
@@ -2160,12 +2160,12 @@ const {
2160
2160
  }
2161
2161
  } = edsTokens.tokens;
2162
2162
  const textfield$1 = {
2163
- background: colors$5.ui.background__light.hex,
2163
+ background: colors$6.ui.background__light.hex,
2164
2164
  border: {
2165
2165
  type: 'border',
2166
2166
  radius: 0,
2167
2167
  width: '1px',
2168
- color: colors$5.text.static_icons__tertiary.hex
2168
+ color: colors$6.text.static_icons__tertiary.hex
2169
2169
  },
2170
2170
  spacings: {
2171
2171
  left: small$5,
@@ -2176,7 +2176,7 @@ const textfield$1 = {
2176
2176
  focus: {
2177
2177
  outline: {
2178
2178
  width: '2px',
2179
- color: colors$5.interactive.primary__resting.hex,
2179
+ color: colors$6.interactive.primary__resting.hex,
2180
2180
  style: 'solid',
2181
2181
  type: 'outline',
2182
2182
  offset: '0px'
@@ -2189,13 +2189,13 @@ const textfield$1 = {
2189
2189
  },
2190
2190
  entities: {
2191
2191
  unit: {
2192
- typography: { ...typography$e.input.label,
2193
- color: colors$5.text.static_icons__tertiary.hex
2192
+ typography: { ...typography$f.input.label,
2193
+ color: colors$6.text.static_icons__tertiary.hex
2194
2194
  },
2195
2195
  states: {
2196
2196
  disabled: {
2197
2197
  typography: {
2198
- color: colors$5.interactive.disabled__text.hex
2198
+ color: colors$6.interactive.disabled__text.hex
2199
2199
  }
2200
2200
  }
2201
2201
  }
@@ -2217,13 +2217,13 @@ const error$3 = {
2217
2217
  type: 'border',
2218
2218
  radius: 0,
2219
2219
  width: '1px',
2220
- color: colors$5.interactive.danger__resting.hex
2220
+ color: colors$6.interactive.danger__resting.hex
2221
2221
  },
2222
2222
  states: {
2223
2223
  focus: {
2224
2224
  outline: {
2225
2225
  width: '2px',
2226
- color: colors$5.interactive.danger__hover.hex,
2226
+ color: colors$6.interactive.danger__hover.hex,
2227
2227
  style: 'solid',
2228
2228
  type: 'outline',
2229
2229
  offset: '0px'
@@ -2236,13 +2236,13 @@ const warning$3 = {
2236
2236
  type: 'border',
2237
2237
  radius: 0,
2238
2238
  width: '1px',
2239
- color: colors$5.interactive.warning__resting.hex
2239
+ color: colors$6.interactive.warning__resting.hex
2240
2240
  },
2241
2241
  states: {
2242
2242
  focus: {
2243
2243
  outline: {
2244
2244
  width: '2px',
2245
- color: colors$5.interactive.warning__hover.hex,
2245
+ color: colors$6.interactive.warning__hover.hex,
2246
2246
  style: 'solid',
2247
2247
  type: 'outline',
2248
2248
  offset: '0px'
@@ -2255,13 +2255,13 @@ const success = {
2255
2255
  type: 'border',
2256
2256
  radius: 0,
2257
2257
  width: '1px',
2258
- color: colors$5.interactive.success__resting.hex
2258
+ color: colors$6.interactive.success__resting.hex
2259
2259
  },
2260
2260
  states: {
2261
2261
  focus: {
2262
2262
  outline: {
2263
2263
  width: '2px',
2264
- color: colors$5.interactive.success__hover.hex,
2264
+ color: colors$6.interactive.success__hover.hex,
2265
2265
  style: 'solid',
2266
2266
  type: 'outline',
2267
2267
  offset: '0px'
@@ -2508,16 +2508,16 @@ const Field = /*#__PURE__*/react.forwardRef(function Field(_ref5, ref) {
2508
2508
  });
2509
2509
 
2510
2510
  const {
2511
- colors: colors$4,
2511
+ colors: colors$5,
2512
2512
  spacings: {
2513
2513
  comfortable: comfortable$5
2514
2514
  },
2515
- typography: typography$d
2515
+ typography: typography$e
2516
2516
  } = edsTokens.tokens;
2517
2517
  const label = {
2518
- background: colors$4.ui.background__light.rgba,
2519
- typography: { ...typography$d.input.label,
2520
- color: colors$4.text.static_icons__tertiary.rgba
2518
+ background: colors$5.ui.background__light.rgba,
2519
+ typography: { ...typography$e.input.label,
2520
+ color: colors$5.text.static_icons__tertiary.rgba
2521
2521
  },
2522
2522
  spacings: {
2523
2523
  left: comfortable$5.small,
@@ -2528,7 +2528,7 @@ const label = {
2528
2528
  states: {
2529
2529
  disabled: {
2530
2530
  typography: {
2531
- color: colors$4.interactive.disabled__text.rgba
2531
+ color: colors$5.interactive.disabled__text.rgba
2532
2532
  }
2533
2533
  }
2534
2534
  }
@@ -2572,15 +2572,15 @@ const Label$1 = /*#__PURE__*/react.forwardRef(function Label(props, ref) {
2572
2572
  }); // Label.displayName = 'eds-text-field-label'
2573
2573
 
2574
2574
  const {
2575
- colors: colors$3,
2575
+ colors: colors$4,
2576
2576
  spacings: {
2577
2577
  comfortable: comfortable$4
2578
2578
  },
2579
- typography: typography$c
2579
+ typography: typography$d
2580
2580
  } = edsTokens.tokens;
2581
2581
  const helperText = {
2582
- background: colors$3.ui.background__light.hex,
2583
- typography: typography$c.input.helper,
2582
+ background: colors$4.ui.background__light.hex,
2583
+ typography: typography$d.input.helper,
2584
2584
  spacings: {
2585
2585
  comfortable: {
2586
2586
  left: comfortable$4.small,
@@ -2596,24 +2596,24 @@ const helperText = {
2596
2596
  }
2597
2597
  },
2598
2598
  default: {
2599
- color: colors$3.text.static_icons__tertiary.hex,
2600
- disabledColor: colors$3.interactive.disabled__text.hex,
2601
- focusColor: colors$3.text.static_icons__tertiary.hex
2599
+ color: colors$4.text.static_icons__tertiary.hex,
2600
+ disabledColor: colors$4.interactive.disabled__text.hex,
2601
+ focusColor: colors$4.text.static_icons__tertiary.hex
2602
2602
  },
2603
2603
  error: {
2604
- color: colors$3.interactive.danger__text.hex,
2605
- disabledColor: colors$3.interactive.disabled__text.hex,
2606
- focusColor: colors$3.interactive.danger__hover.hex
2604
+ color: colors$4.interactive.danger__text.hex,
2605
+ disabledColor: colors$4.interactive.disabled__text.hex,
2606
+ focusColor: colors$4.interactive.danger__hover.hex
2607
2607
  },
2608
2608
  warning: {
2609
- color: colors$3.interactive.warning__text.hex,
2610
- disabledColor: colors$3.interactive.disabled__text.hex,
2611
- focusColor: colors$3.interactive.warning__hover.hex
2609
+ color: colors$4.interactive.warning__text.hex,
2610
+ disabledColor: colors$4.interactive.disabled__text.hex,
2611
+ focusColor: colors$4.interactive.warning__hover.hex
2612
2612
  },
2613
2613
  success: {
2614
- color: colors$3.interactive.success__text.hex,
2615
- disabledColor: colors$3.interactive.disabled__text.hex,
2616
- focusColor: colors$3.interactive.success__hover.hex
2614
+ color: colors$4.interactive.success__text.hex,
2615
+ disabledColor: colors$4.interactive.disabled__text.hex,
2616
+ focusColor: colors$4.interactive.success__hover.hex
2617
2617
  }
2618
2618
  };
2619
2619
 
@@ -2645,7 +2645,7 @@ const Variation = _ref => {
2645
2645
  return styled.css(["color:", ";"], color);
2646
2646
  };
2647
2647
 
2648
- const Container$4 = styled__default["default"].div.withConfig({
2648
+ const Container$5 = styled__default["default"].div.withConfig({
2649
2649
  displayName: "HelperText__Container",
2650
2650
  componentId: "sc-1kfkyxg-0"
2651
2651
  })(["display:flex;align-items:flex-start;margin-top:", ";"], _ref2 => {
@@ -2681,7 +2681,7 @@ const TextfieldHelperText = /*#__PURE__*/react.forwardRef(function TextfieldHelp
2681
2681
  disabledColor: helperVariant.disabledColor,
2682
2682
  focusColor: helperVariant.focusColor
2683
2683
  };
2684
- return /*#__PURE__*/jsxRuntime.jsxs(Container$4, {
2684
+ return /*#__PURE__*/jsxRuntime.jsxs(Container$5, {
2685
2685
  ref: ref,
2686
2686
  ...rest,
2687
2687
  spacings: spacings,
@@ -2700,7 +2700,7 @@ const TextfieldHelperText = /*#__PURE__*/react.forwardRef(function TextfieldHelp
2700
2700
  });
2701
2701
  });
2702
2702
 
2703
- const Container$3 = styled__default["default"].div.withConfig({
2703
+ const Container$4 = styled__default["default"].div.withConfig({
2704
2704
  displayName: "TextField__Container",
2705
2705
  componentId: "sc-o1nc07-0"
2706
2706
  })(["min-width:100px;width:100%;"]);
@@ -2764,7 +2764,7 @@ const TextField = /*#__PURE__*/react.forwardRef(function TextField(_ref, ref) {
2764
2764
  }, textfield$1);
2765
2765
  return /*#__PURE__*/jsxRuntime.jsx(styled.ThemeProvider, {
2766
2766
  theme: token,
2767
- children: /*#__PURE__*/jsxRuntime.jsx(Container$3, { ...containerProps,
2767
+ children: /*#__PURE__*/jsxRuntime.jsx(Container$4, { ...containerProps,
2768
2768
  children: /*#__PURE__*/jsxRuntime.jsxs(TextFieldProvider, {
2769
2769
  children: [showLabel && /*#__PURE__*/jsxRuntime.jsx(Label$1, { ...labelProps
2770
2770
  }), /*#__PURE__*/jsxRuntime.jsx(Field, { ...inputProps
@@ -2933,9 +2933,9 @@ const list = {
2933
2933
  };
2934
2934
 
2935
2935
  const {
2936
- typography: typography$b
2936
+ typography: typography$c
2937
2937
  } = list;
2938
- const StyledList$1 = styled__default["default"].ul.withConfig({
2938
+ const StyledList$2 = styled__default["default"].ul.withConfig({
2939
2939
  displayName: "List__StyledList",
2940
2940
  componentId: "sc-v9d2hy-0"
2941
2941
  })(["", " ", ""], _ref => {
@@ -2943,7 +2943,7 @@ const StyledList$1 = styled__default["default"].ul.withConfig({
2943
2943
  as
2944
2944
  } = _ref;
2945
2945
  return as === 'ol' ? styled.css(["& ol{list-style-type:lower-alpha;}"]) : '';
2946
- }, edsUtils.typographyTemplate(typography$b));
2946
+ }, edsUtils.typographyTemplate(typography$c));
2947
2947
  const List$2 = /*#__PURE__*/react.forwardRef(function List(_ref2, ref) {
2948
2948
  let {
2949
2949
  children,
@@ -2951,7 +2951,7 @@ const List$2 = /*#__PURE__*/react.forwardRef(function List(_ref2, ref) {
2951
2951
  ...props
2952
2952
  } = _ref2;
2953
2953
  const as = variant === 'numbered' ? 'ol' : 'ul';
2954
- return /*#__PURE__*/jsxRuntime.jsx(StyledList$1, {
2954
+ return /*#__PURE__*/jsxRuntime.jsx(StyledList$2, {
2955
2955
  as: as,
2956
2956
  ref: ref,
2957
2957
  ...props,
@@ -2977,7 +2977,7 @@ List$1.Item.displayName = 'List.Item';
2977
2977
  const {
2978
2978
  typography: {
2979
2979
  ui: {
2980
- accordion_header: typography$a
2980
+ accordion_header: typography$b
2981
2981
  }
2982
2982
  },
2983
2983
  colors: {
@@ -3042,7 +3042,7 @@ const accordion = {
3042
3042
  header: {
3043
3043
  height: '48px',
3044
3044
  background: backgroundDefault,
3045
- typography: typography$a,
3045
+ typography: typography$b,
3046
3046
  spacings: {
3047
3047
  left: mediumSpacing,
3048
3048
  right: mediumSpacing
@@ -3058,12 +3058,12 @@ const accordion = {
3058
3058
  }
3059
3059
  },
3060
3060
  disabled: {
3061
- typography: { ...typography$a,
3061
+ typography: { ...typography$b,
3062
3062
  color: disabledColor$2
3063
3063
  }
3064
3064
  },
3065
3065
  active: {
3066
- typography: { ...typography$a,
3066
+ typography: { ...typography$b,
3067
3067
  color: activatedColor
3068
3068
  }
3069
3069
  },
@@ -3436,7 +3436,7 @@ const {
3436
3436
  },
3437
3437
  spacings: {
3438
3438
  comfortable: {
3439
- medium: spacingMedium$7
3439
+ medium: spacingMedium$8
3440
3440
  }
3441
3441
  },
3442
3442
  interactions: {
@@ -3449,8 +3449,8 @@ const token$1 = {
3449
3449
  entities: {
3450
3450
  panel: {
3451
3451
  spacings: {
3452
- top: spacingMedium$7,
3453
- bottom: spacingMedium$7
3452
+ top: spacingMedium$8,
3453
+ bottom: spacingMedium$8
3454
3454
  },
3455
3455
  states: {
3456
3456
  focus: {
@@ -3473,8 +3473,8 @@ const token$1 = {
3473
3473
  }
3474
3474
  },
3475
3475
  spacings: {
3476
- left: spacingMedium$7,
3477
- right: spacingMedium$7
3476
+ left: spacingMedium$8,
3477
+ right: spacingMedium$8
3478
3478
  },
3479
3479
  typography: {
3480
3480
  color: defaultColor,
@@ -3540,11 +3540,11 @@ const token$1 = {
3540
3540
  const Tabs$1 = /*#__PURE__*/react.forwardRef(function Tabs(_ref, ref) {
3541
3541
  let {
3542
3542
  activeTab = 0,
3543
- onChange,
3543
+ onChange = () => null,
3544
3544
  onBlur,
3545
3545
  onFocus,
3546
3546
  variant = 'minWidth',
3547
- scrollable,
3547
+ scrollable = false,
3548
3548
  id,
3549
3549
  ...props
3550
3550
  } = _ref;
@@ -3841,12 +3841,12 @@ const {
3841
3841
  },
3842
3842
  spacings: {
3843
3843
  comfortable: {
3844
- medium: spacingMedium$6
3844
+ medium: spacingMedium$7
3845
3845
  }
3846
3846
  },
3847
3847
  shape: {
3848
3848
  corners: {
3849
- borderRadius: borderRadius$7
3849
+ borderRadius: borderRadius$8
3850
3850
  }
3851
3851
  }
3852
3852
  } = edsTokens.tokens;
@@ -3854,13 +3854,13 @@ const primary$4 = {
3854
3854
  background: background$c,
3855
3855
  border: {
3856
3856
  type: 'border',
3857
- radius: borderRadius$7
3857
+ radius: borderRadius$8
3858
3858
  },
3859
3859
  spacings: {
3860
- left: spacingMedium$6,
3861
- bottom: spacingMedium$6,
3862
- right: spacingMedium$6,
3863
- top: spacingMedium$6
3860
+ left: spacingMedium$7,
3861
+ bottom: spacingMedium$7,
3862
+ right: spacingMedium$7,
3863
+ top: spacingMedium$7
3864
3864
  }
3865
3865
  };
3866
3866
  const info$2 = {
@@ -3887,7 +3887,7 @@ const {
3887
3887
  const StyledCard = styled__default["default"].div.withConfig({
3888
3888
  displayName: "Card__StyledCard",
3889
3889
  componentId: "sc-bjucjn-0"
3890
- })(["height:fit-content;width:100%;position:relative;background-color:", ";box-sizing:border-box;display:grid;grid-gap:16px;grid-auto-columns:auto;align-items:center;align-content:start;cursor:", ";", ";"], _ref => {
3890
+ })(["width:100%;position:relative;background-color:", ";box-sizing:border-box;display:flex;flex-direction:column;grid-gap:16px;cursor:", ";", ";"], _ref => {
3891
3891
  let {
3892
3892
  background
3893
3893
  } = _ref;
@@ -3926,7 +3926,7 @@ const {
3926
3926
  const StyledCardActions = styled__default["default"].div.withConfig({
3927
3927
  displayName: "CardActions__StyledCardActions",
3928
3928
  componentId: "sc-1d5vskp-0"
3929
- })(["display:grid;grid-gap:8px;grid-auto-flow:column;align-items:center;justify-content:", ";padding:0 ", " 0 ", ";:first-child{padding-top:", ";}:last-child{padding-bottom:", ";}"], _ref => {
3929
+ })(["display:grid;grid-gap:8px;grid-auto-flow:column;align-items:center;justify-content:", ";padding:0 ", " 0 ", ";margin-top:auto;:first-child{padding-top:", ";}:last-child{padding-bottom:", ";}"], _ref => {
3930
3930
  let {
3931
3931
  justifyContent
3932
3932
  } = _ref;
@@ -4050,7 +4050,7 @@ Card.Media.displayName = 'Card.Media';
4050
4050
  Card.HeaderTitle.displayName = 'Card.HeaderTitle';
4051
4051
 
4052
4052
  const {
4053
- colors: colors$2,
4053
+ colors: colors$3,
4054
4054
  spacings: {
4055
4055
  comfortable: comfortable$3
4056
4056
  },
@@ -4060,7 +4060,7 @@ const {
4060
4060
  } = edsTokens.tokens;
4061
4061
  const topbar = {
4062
4062
  height: '64px',
4063
- background: colors$2.ui.background__default.rgba,
4063
+ background: colors$3.ui.background__default.rgba,
4064
4064
  typography: navigation.menu_title,
4065
4065
  spacings: {
4066
4066
  left: comfortable$3.xx_large,
@@ -4072,7 +4072,7 @@ const topbar = {
4072
4072
  type: 'bordergroup',
4073
4073
  bottom: {
4074
4074
  style: 'solid',
4075
- color: colors$2.ui.background__light.rgba,
4075
+ color: colors$3.ui.background__light.rgba,
4076
4076
  width: '2px'
4077
4077
  }
4078
4078
  },
@@ -4278,7 +4278,7 @@ const Scrim = /*#__PURE__*/react.forwardRef(function Scrim(_ref, ref) {
4278
4278
  const {
4279
4279
  spacings: {
4280
4280
  comfortable: {
4281
- medium: spacingMedium$5
4281
+ medium: spacingMedium$6
4282
4282
  }
4283
4283
  },
4284
4284
  typography: {
@@ -4298,7 +4298,7 @@ const {
4298
4298
  },
4299
4299
  shape: {
4300
4300
  corners: {
4301
- borderRadius: borderRadius$6
4301
+ borderRadius: borderRadius$7
4302
4302
  }
4303
4303
  }
4304
4304
  } = edsTokens.tokens;
@@ -4308,18 +4308,18 @@ const dialog = {
4308
4308
  typography: accordion_header,
4309
4309
  border: {
4310
4310
  type: 'border',
4311
- radius: borderRadius$6
4311
+ radius: borderRadius$7
4312
4312
  },
4313
4313
  spacings: {
4314
- bottom: spacingMedium$5
4314
+ bottom: spacingMedium$6
4315
4315
  },
4316
4316
  entities: {
4317
4317
  children: {
4318
4318
  spacings: {
4319
- top: spacingMedium$5,
4320
- bottom: spacingMedium$5,
4321
- left: spacingMedium$5,
4322
- right: spacingMedium$5
4319
+ top: spacingMedium$6,
4320
+ bottom: spacingMedium$6,
4321
+ left: spacingMedium$6,
4322
+ right: spacingMedium$6
4323
4323
  }
4324
4324
  },
4325
4325
  title: {
@@ -4549,7 +4549,7 @@ const {
4549
4549
  },
4550
4550
  shape: {
4551
4551
  corners: {
4552
- borderRadius: borderRadius$5
4552
+ borderRadius: borderRadius$6
4553
4553
  }
4554
4554
  },
4555
4555
  spacings: {
@@ -4559,10 +4559,10 @@ const {
4559
4559
  xxx_large
4560
4560
  }
4561
4561
  },
4562
- typography: typography$9
4562
+ typography: typography$a
4563
4563
  } = edsTokens.tokens;
4564
4564
  const tableOfContents = {
4565
- typography: { ...typography$9.navigation.button,
4565
+ typography: { ...typography$a.navigation.button,
4566
4566
  color: labelColor
4567
4567
  },
4568
4568
  spacings: {
@@ -4578,7 +4578,7 @@ const tableOfContents = {
4578
4578
  },
4579
4579
  links: {
4580
4580
  width: 'calc(189px - 36px)',
4581
- typography: { ...typography$9.navigation.button,
4581
+ typography: { ...typography$a.navigation.button,
4582
4582
  color: primaryColor$4
4583
4583
  },
4584
4584
  spacings: {
@@ -4611,14 +4611,14 @@ const tableOfContents = {
4611
4611
  hover: {
4612
4612
  background: primaryHoverAlt$6,
4613
4613
  border: {
4614
- radius: borderRadius$5
4614
+ radius: borderRadius$6
4615
4615
  },
4616
4616
  entities: {
4617
4617
  icon: {
4618
4618
  background: primaryHover$3
4619
4619
  }
4620
4620
  },
4621
- typography: { ...typography$9.navigation.button,
4621
+ typography: { ...typography$a.navigation.button,
4622
4622
  color: primaryHover$3
4623
4623
  }
4624
4624
  }
@@ -4719,7 +4719,7 @@ const {
4719
4719
  spacings: {
4720
4720
  comfortable: {
4721
4721
  xx_small: spacingXXS,
4722
- medium: spacingMedium$4
4722
+ medium: spacingMedium$5
4723
4723
  }
4724
4724
  }
4725
4725
  } = edsTokens.tokens;
@@ -4728,8 +4728,8 @@ const comfortable$2 = {
4728
4728
  spacings: {
4729
4729
  left: '14px',
4730
4730
  // padding left is 14px, because of border-left 'steals' 2px of the padding
4731
- right: spacingMedium$4,
4732
- top: spacingMedium$4
4731
+ right: spacingMedium$5,
4732
+ top: spacingMedium$5
4733
4733
  },
4734
4734
  border: {
4735
4735
  type: 'bordergroup',
@@ -4852,7 +4852,7 @@ const {
4852
4852
  },
4853
4853
  shape: {
4854
4854
  rounded: {
4855
- borderRadius: borderRadius$4
4855
+ borderRadius: borderRadius$5
4856
4856
  }
4857
4857
  },
4858
4858
  interactions: {
@@ -4865,7 +4865,7 @@ const enabled$3 = {
4865
4865
  background: backgroundColor$2,
4866
4866
  height: '22px',
4867
4867
  border: {
4868
- radius: borderRadius$4,
4868
+ radius: borderRadius$5,
4869
4869
  color: 'transparent',
4870
4870
  type: 'border',
4871
4871
  width: '1px',
@@ -4907,7 +4907,7 @@ const enabled$3 = {
4907
4907
  height: medium$2,
4908
4908
  width: medium$2,
4909
4909
  border: {
4910
- radius: borderRadius$4,
4910
+ radius: borderRadius$5,
4911
4911
  type: 'border',
4912
4912
  width: 0
4913
4913
  },
@@ -4926,7 +4926,7 @@ const error$2 = {
4926
4926
  color: errorColor,
4927
4927
  width: '1px',
4928
4928
  style: 'solid',
4929
- radius: borderRadius$4
4929
+ radius: borderRadius$5
4930
4930
  },
4931
4931
  typography: {
4932
4932
  color: errorColor
@@ -4990,7 +4990,7 @@ const {
4990
4990
  const {
4991
4991
  background: background$5,
4992
4992
  height,
4993
- typography: typography$8,
4993
+ typography: typography$9,
4994
4994
  spacings: spacings$1,
4995
4995
  border: border$1,
4996
4996
  states: states$2
@@ -5007,7 +5007,7 @@ const StyledChips = styled__default["default"].div.attrs(_ref => {
5007
5007
  }).withConfig({
5008
5008
  displayName: "Chip__StyledChips",
5009
5009
  componentId: "sc-wzsllq-0"
5010
- })(["background:", ";height:", ";width:fit-content;display:grid;grid-gap:8px;grid-auto-flow:column;grid-auto-columns:max-content;align-items:center;svg{fill:", ";}@media (hover:hover) and (pointer:fine){&:hover{color:", ";svg{fill:", ";}}}&:focus{outline:none;}&[data-focus-visible-added]:focus{", "}&:focus-visible{", "}", " ", " ", " ", " ", " ", " ", " ", ""], background$5, height, typography$8.color, states$2.hover.typography.color, states$2.hover.typography.color, edsUtils.outlineTemplate(states$2.focus.outline), edsUtils.outlineTemplate(states$2.focus.outline), edsUtils.bordersTemplate(border$1), edsUtils.spacingsTemplate(spacings$1), edsUtils.typographyTemplate(typography$8), _ref2 => {
5010
+ })(["background:", ";height:", ";width:fit-content;display:grid;grid-gap:8px;grid-auto-flow:column;grid-auto-columns:max-content;align-items:center;svg{fill:", ";}@media (hover:hover) and (pointer:fine){&:hover{color:", ";svg{fill:", ";}}}&:focus{outline:none;}&[data-focus-visible-added]:focus{", "}&:focus-visible{", "}", " ", " ", " ", " ", " ", " ", " ", ""], background$5, height, typography$9.color, states$2.hover.typography.color, states$2.hover.typography.color, edsUtils.outlineTemplate(states$2.focus.outline), edsUtils.outlineTemplate(states$2.focus.outline), edsUtils.bordersTemplate(border$1), edsUtils.spacingsTemplate(spacings$1), edsUtils.typographyTemplate(typography$9), _ref2 => {
5011
5011
  let {
5012
5012
  clickable
5013
5013
  } = _ref2;
@@ -5197,14 +5197,14 @@ const {
5197
5197
  },
5198
5198
  typography: {
5199
5199
  input: {
5200
- text: typography$7
5200
+ text: typography$8
5201
5201
  }
5202
5202
  },
5203
5203
  shape: shape$1
5204
5204
  } = edsTokens.tokens;
5205
5205
  const search = {
5206
5206
  background: background$4,
5207
- typography: typography$7,
5207
+ typography: typography$8,
5208
5208
  height: '36px',
5209
5209
  clickbound: {
5210
5210
  offset: {
@@ -5273,7 +5273,7 @@ const search = {
5273
5273
  }
5274
5274
  };
5275
5275
 
5276
- const Container$2 = styled__default["default"].span.withConfig({
5276
+ const Container$3 = styled__default["default"].span.withConfig({
5277
5277
  displayName: "Search__Container",
5278
5278
  componentId: "sc-v8l23u-0"
5279
5279
  })(_ref => {
@@ -5447,7 +5447,7 @@ const Search = /*#__PURE__*/react.forwardRef(function Search(_ref4, ref) {
5447
5447
  };
5448
5448
  return /*#__PURE__*/jsxRuntime.jsx(styled.ThemeProvider, {
5449
5449
  theme: token,
5450
- children: /*#__PURE__*/jsxRuntime.jsxs(Container$2, { ...containerProps,
5450
+ children: /*#__PURE__*/jsxRuntime.jsxs(Container$3, { ...containerProps,
5451
5451
  children: [/*#__PURE__*/jsxRuntime.jsx(Icon$1, {
5452
5452
  data: edsIcons.search,
5453
5453
  "aria-hidden": true,
@@ -5897,17 +5897,11 @@ const Slider = /*#__PURE__*/react.forwardRef(function Slider(_ref10, ref) {
5897
5897
  inputId = "".concat(overrideId, "-thumb");
5898
5898
  }
5899
5899
 
5900
- const getAriaLabelledby = () => {
5900
+ const getAriaLabelledby = react.useCallback(() => {
5901
5901
  if (ariaLabelledbyNative) return ariaLabelledbyNative;
5902
-
5903
- if (ariaLabelledby) {
5904
- console.warn('Slider: The "ariaLabelledby" prop is deprecated and will be removed in a future version of EDS, please use the native "aria-labelledby" instead');
5905
- return ariaLabelledby;
5906
- }
5907
-
5902
+ if (ariaLabelledby) return ariaLabelledby;
5908
5903
  return null;
5909
- };
5910
-
5904
+ }, [ariaLabelledbyNative, ariaLabelledby]);
5911
5905
  return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
5912
5906
  children: isRangeSlider ? /*#__PURE__*/jsxRuntime.jsxs(RangeWrapper, { ...rest,
5913
5907
  ref: ref,
@@ -6032,12 +6026,12 @@ const {
6032
6026
  spacings: {
6033
6027
  comfortable: {
6034
6028
  x_large: spacingXlarge,
6035
- small: spacingSmall$3
6029
+ small: spacingSmall$4
6036
6030
  }
6037
6031
  },
6038
6032
  shape: {
6039
6033
  corners: {
6040
- borderRadius: borderRadius$3
6034
+ borderRadius: borderRadius$4
6041
6035
  }
6042
6036
  }
6043
6037
  } = edsTokens.tokens;
@@ -6048,7 +6042,7 @@ const tooltip = {
6048
6042
  background: background$3,
6049
6043
  border: {
6050
6044
  type: 'border',
6051
- radius: borderRadius$3
6045
+ radius: borderRadius$4
6052
6046
  },
6053
6047
  entities: {
6054
6048
  tooltip: {
@@ -6056,7 +6050,7 @@ const tooltip = {
6056
6050
  },
6057
6051
  arrow: {
6058
6052
  width: '6px',
6059
- height: spacingSmall$3,
6053
+ height: spacingSmall$4,
6060
6054
  spacings: {
6061
6055
  bottom: '-6px',
6062
6056
  top: '-6px',
@@ -6066,10 +6060,10 @@ const tooltip = {
6066
6060
  }
6067
6061
  },
6068
6062
  spacings: {
6069
- left: spacingSmall$3,
6070
- right: spacingSmall$3,
6071
- top: spacingSmall$3,
6072
- bottom: spacingSmall$3
6063
+ left: spacingSmall$4,
6064
+ right: spacingSmall$4,
6065
+ top: spacingSmall$4,
6066
+ bottom: spacingSmall$4
6073
6067
  }
6074
6068
  };
6075
6069
 
@@ -6208,7 +6202,7 @@ const SnackbarAction = /*#__PURE__*/react.forwardRef(function SnackbarAction(_re
6208
6202
  const {
6209
6203
  typography: {
6210
6204
  ui: {
6211
- snackbar: typography$6
6205
+ snackbar: typography$7
6212
6206
  }
6213
6207
  },
6214
6208
  colors: {
@@ -6230,7 +6224,7 @@ const {
6230
6224
  },
6231
6225
  spacings: {
6232
6226
  comfortable: {
6233
- medium: spacingMedium$3,
6227
+ medium: spacingMedium$4,
6234
6228
  x_large: spacingXLarge
6235
6229
  }
6236
6230
  },
@@ -6266,12 +6260,12 @@ const snackbar = {
6266
6260
  }
6267
6261
  },
6268
6262
  spacings: {
6269
- left: spacingMedium$3,
6270
- bottom: spacingMedium$3,
6271
- right: spacingMedium$3,
6272
- top: spacingMedium$3
6263
+ left: spacingMedium$4,
6264
+ bottom: spacingMedium$4,
6265
+ right: spacingMedium$4,
6266
+ top: spacingMedium$4
6273
6267
  },
6274
- typography: { ...typography$6,
6268
+ typography: { ...typography$7,
6275
6269
  color
6276
6270
  },
6277
6271
  modes: {
@@ -6357,13 +6351,13 @@ const {
6357
6351
  },
6358
6352
  spacings: {
6359
6353
  comfortable: {
6360
- medium: spacingMedium$2,
6361
- small: spacingSmall$2
6354
+ medium: spacingMedium$3,
6355
+ small: spacingSmall$3
6362
6356
  }
6363
6357
  },
6364
6358
  shape: {
6365
6359
  corners: {
6366
- borderRadius: borderRadius$2
6360
+ borderRadius: borderRadius$3
6367
6361
  }
6368
6362
  }
6369
6363
  } = edsTokens.tokens;
@@ -6375,7 +6369,7 @@ const popover = {
6375
6369
  entities: {
6376
6370
  arrow: {
6377
6371
  width: '6px',
6378
- height: spacingSmall$2,
6372
+ height: spacingSmall$3,
6379
6373
  spacings: {
6380
6374
  top: '-5px',
6381
6375
  // 1px less than arrow width, if not the shadow would show between arrow and popover
@@ -6391,14 +6385,14 @@ const popover = {
6391
6385
  }
6392
6386
  },
6393
6387
  spacings: {
6394
- top: spacingMedium$2,
6395
- left: spacingMedium$2,
6396
- right: spacingMedium$2,
6397
- bottom: spacingMedium$2
6388
+ top: spacingMedium$3,
6389
+ left: spacingMedium$3,
6390
+ right: spacingMedium$3,
6391
+ bottom: spacingMedium$3
6398
6392
  },
6399
6393
  border: {
6400
6394
  type: 'border',
6401
- radius: borderRadius$2
6395
+ radius: borderRadius$3
6402
6396
  },
6403
6397
  modes: {
6404
6398
  compact: {}
@@ -6458,12 +6452,12 @@ const Popover$1 = /*#__PURE__*/react.forwardRef(function Popover(_ref5, ref) {
6458
6452
  const [arrowRef, setArrowRef] = react.useState(null);
6459
6453
  const popoverRef = edsUtils.useCombinedRefs(ref, setPopperEl);
6460
6454
  edsUtils.useOutsideClick(popperEl, e => {
6461
- if (open && onClose !== null && anchorEl && !anchorEl.contains(e.target)) {
6455
+ if (open && onClose && anchorEl && !anchorEl.contains(e.target)) {
6462
6456
  onClose();
6463
6457
  }
6464
6458
  });
6465
6459
  edsUtils.useGlobalKeyPress('Escape', () => {
6466
- if (onClose !== null && open) {
6460
+ if (onClose && open) {
6467
6461
  onClose();
6468
6462
  }
6469
6463
  });
@@ -6659,7 +6653,7 @@ const {
6659
6653
  circle: {
6660
6654
  minHeight,
6661
6655
  minWidth,
6662
- borderRadius: borderRadius$1
6656
+ borderRadius: borderRadius$2
6663
6657
  }
6664
6658
  }
6665
6659
  } = edsTokens.tokens;
@@ -6679,7 +6673,7 @@ const enabled = {
6679
6673
  width: minWidth,
6680
6674
  border: {
6681
6675
  type: 'border',
6682
- radius: borderRadius$1
6676
+ radius: borderRadius$2
6683
6677
  }
6684
6678
  }
6685
6679
  },
@@ -6903,6 +6897,10 @@ const IndeterminateProgressBar = styled__default["default"].div.withConfig({
6903
6897
  displayName: "LinearProgress__IndeterminateProgressBar",
6904
6898
  componentId: "sc-5orxpi-2"
6905
6899
  })(["width:75%;border-radius:50px;position:absolute;left:0;bottom:0;top:0;transition:transform 0.2s linear;transform-origin:left;background-color:", ";animation:", " 1.5s cubic-bezier(0.165,0.84,0.44,1) 1s infinite;"], primary$2.entities.progress.background, indeterminate$2);
6900
+ const SrOnlyOutput$1 = styled__default["default"].output.withConfig({
6901
+ displayName: "LinearProgress__SrOnlyOutput",
6902
+ componentId: "sc-5orxpi-3"
6903
+ })(["position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0;"]);
6906
6904
  const LinearProgress = /*#__PURE__*/react.forwardRef(function LinearProgress(_ref, ref) {
6907
6905
  let {
6908
6906
  variant = 'indeterminate',
@@ -6912,6 +6910,7 @@ const LinearProgress = /*#__PURE__*/react.forwardRef(function LinearProgress(_re
6912
6910
  const props = { ...rest,
6913
6911
  ref
6914
6912
  };
6913
+ const [srProgress, setSrProgress] = react.useState(0);
6915
6914
  let barStyle;
6916
6915
 
6917
6916
  if (variant === 'determinate') {
@@ -6927,11 +6926,33 @@ const LinearProgress = /*#__PURE__*/react.forwardRef(function LinearProgress(_re
6927
6926
  const transformStyle = {
6928
6927
  transform: barStyle
6929
6928
  };
6930
- return /*#__PURE__*/jsxRuntime.jsx(Track$2, { ...props,
6931
- role: "progressbar",
6932
- children: variant === 'indeterminate' ? /*#__PURE__*/jsxRuntime.jsx(IndeterminateProgressBar, {}) : /*#__PURE__*/jsxRuntime.jsx(ProgressBar, {
6933
- style: transformStyle
6934
- })
6929
+ react.useEffect(() => {
6930
+ if (variant === 'indeterminate') return;
6931
+
6932
+ if (value >= 25 && value < 50) {
6933
+ setSrProgress(25);
6934
+ } else if (value >= 50 && value < 75) {
6935
+ setSrProgress(50);
6936
+ } else if (value >= 75 && value < 100) {
6937
+ setSrProgress(75);
6938
+ } else if (value === 100) {
6939
+ setSrProgress(100);
6940
+ }
6941
+ }, [value, variant]);
6942
+
6943
+ const getProgressFormatted = () => {
6944
+ return "Loading ".concat(srProgress, "%");
6945
+ };
6946
+
6947
+ return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
6948
+ children: [/*#__PURE__*/jsxRuntime.jsx(Track$2, { ...props,
6949
+ role: "progressbar",
6950
+ children: variant === 'indeterminate' ? /*#__PURE__*/jsxRuntime.jsx(IndeterminateProgressBar, {}) : /*#__PURE__*/jsxRuntime.jsx(ProgressBar, {
6951
+ style: transformStyle
6952
+ })
6953
+ }), variant === 'determinate' && /*#__PURE__*/jsxRuntime.jsx(SrOnlyOutput$1, {
6954
+ children: getProgressFormatted()
6955
+ })]
6935
6956
  });
6936
6957
  }); // LinearProgress.displayName = 'eds-linear-progress'
6937
6958
 
@@ -6990,13 +7011,17 @@ const Svg$4 = styled__default["default"].svg.withConfig({
6990
7011
  } = _ref;
6991
7012
  return variant === 'indeterminate' ? styled.css(["animation:", " 1.4s linear infinite;"], indeterminate$1) : styled.css(["transform:rotate(-90deg);"]);
6992
7013
  });
7014
+ const SrOnlyOutput = styled__default["default"].output.withConfig({
7015
+ displayName: "CircularProgress__SrOnlyOutput",
7016
+ componentId: "sc-hib054-1"
7017
+ })(["position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0;"]);
6993
7018
  const TrackCircle = styled__default["default"].circle.withConfig({
6994
7019
  displayName: "CircularProgress__TrackCircle",
6995
- componentId: "sc-hib054-1"
7020
+ componentId: "sc-hib054-2"
6996
7021
  })([""]);
6997
7022
  const ProgressCircle = styled__default["default"].circle.withConfig({
6998
7023
  displayName: "CircularProgress__ProgressCircle",
6999
- componentId: "sc-hib054-2"
7024
+ componentId: "sc-hib054-3"
7000
7025
  })([""]);
7001
7026
 
7002
7027
  const getToken = color => {
@@ -7030,6 +7055,7 @@ const CircularProgress = /*#__PURE__*/react.forwardRef(function CircularProgress
7030
7055
  variant
7031
7056
  };
7032
7057
  const token = getToken(color);
7058
+ const [srProgress, setSrProgress] = react.useState(0);
7033
7059
  const circumference = 2 * Math.PI * ((48 - thickness) / 2);
7034
7060
 
7035
7061
  if (variant === 'determinate') {
@@ -7044,30 +7070,52 @@ const CircularProgress = /*#__PURE__*/react.forwardRef(function CircularProgress
7044
7070
  }
7045
7071
  }
7046
7072
 
7047
- return /*#__PURE__*/jsxRuntime.jsxs(Svg$4, { ...props,
7048
- viewBox: "24 24 48 48",
7049
- role: "progressbar",
7050
- height: size,
7051
- width: size,
7052
- preserveAspectRatio: "xMidYMid meet",
7053
- children: [/*#__PURE__*/jsxRuntime.jsx(TrackCircle, {
7054
- style: trackStyle,
7055
- cx: 48,
7056
- cy: 48,
7057
- r: (48 - thickness) / 2,
7058
- fill: "none",
7059
- strokeWidth: thickness,
7060
- stroke: token.background
7061
- }), /*#__PURE__*/jsxRuntime.jsx(ProgressCircle, {
7062
- style: trackStyle,
7063
- cx: 48,
7064
- cy: 48,
7065
- r: (48 - thickness) / 2,
7066
- fill: "none",
7067
- strokeLinecap: "round",
7068
- strokeWidth: thickness,
7069
- strokeDasharray: variant === 'determinate' ? circumference : 48,
7070
- stroke: token.entities.progress.background
7073
+ react.useEffect(() => {
7074
+ if (variant === 'indeterminate') return;
7075
+
7076
+ if (progress >= 25 && progress < 50) {
7077
+ setSrProgress(25);
7078
+ } else if (progress >= 50 && progress < 75) {
7079
+ setSrProgress(50);
7080
+ } else if (progress >= 75 && progress < 100) {
7081
+ setSrProgress(75);
7082
+ } else if (progress === 100) {
7083
+ setSrProgress(100);
7084
+ }
7085
+ }, [progress, variant]);
7086
+
7087
+ const getProgressFormatted = () => {
7088
+ return "Loading ".concat(srProgress, "%");
7089
+ };
7090
+
7091
+ return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
7092
+ children: [/*#__PURE__*/jsxRuntime.jsxs(Svg$4, { ...props,
7093
+ viewBox: "24 24 48 48",
7094
+ role: "progressbar",
7095
+ height: size,
7096
+ width: size,
7097
+ preserveAspectRatio: "xMidYMid meet",
7098
+ children: [/*#__PURE__*/jsxRuntime.jsx(TrackCircle, {
7099
+ style: trackStyle,
7100
+ cx: 48,
7101
+ cy: 48,
7102
+ r: (48 - thickness) / 2,
7103
+ fill: "none",
7104
+ strokeWidth: thickness,
7105
+ stroke: token.background
7106
+ }), /*#__PURE__*/jsxRuntime.jsx(ProgressCircle, {
7107
+ style: trackStyle,
7108
+ cx: 48,
7109
+ cy: 48,
7110
+ r: (48 - thickness) / 2,
7111
+ fill: "none",
7112
+ strokeLinecap: "round",
7113
+ strokeWidth: thickness,
7114
+ strokeDasharray: variant === 'determinate' ? circumference : 48,
7115
+ stroke: token.entities.progress.background
7116
+ })]
7117
+ }), variant === 'determinate' && /*#__PURE__*/jsxRuntime.jsx(SrOnlyOutput, {
7118
+ children: getProgressFormatted()
7071
7119
  })]
7072
7120
  });
7073
7121
  }); // CircularProgress.displayName = 'eds-circular-progress'
@@ -7254,14 +7302,14 @@ const {
7254
7302
  },
7255
7303
  spacings: {
7256
7304
  comfortable: {
7257
- medium: spacingMedium$1
7305
+ medium: spacingMedium$2
7258
7306
  }
7259
7307
  }
7260
7308
  } = edsTokens.tokens;
7261
7309
  const breadcrumbs = {
7262
7310
  spacings: {
7263
- left: spacingMedium$1,
7264
- right: spacingMedium$1
7311
+ left: spacingMedium$2,
7312
+ right: spacingMedium$2
7265
7313
  },
7266
7314
  typography: {
7267
7315
  color: enabledColor
@@ -7277,7 +7325,7 @@ const breadcrumbs = {
7277
7325
 
7278
7326
  const {
7279
7327
  spacings,
7280
- typography: typography$5,
7328
+ typography: typography$6,
7281
7329
  states: states$1
7282
7330
  } = breadcrumbs;
7283
7331
  const OrderedList$1 = styled__default["default"].ol.withConfig({
@@ -7291,11 +7339,11 @@ const ListItem$1 = styled__default["default"].li.withConfig({
7291
7339
  const Separator = styled__default["default"](Typography).withConfig({
7292
7340
  displayName: "Breadcrumbs__Separator",
7293
7341
  componentId: "sc-12awlbz-2"
7294
- })(["color:", ";", ""], typography$5.color, edsUtils.spacingsTemplate(spacings));
7342
+ })(["color:", ";", ""], typography$6.color, edsUtils.spacingsTemplate(spacings));
7295
7343
  const Collapsed = styled__default["default"](Typography).withConfig({
7296
7344
  displayName: "Breadcrumbs__Collapsed",
7297
7345
  componentId: "sc-12awlbz-3"
7298
- })(["@media (hover:hover) and (pointer:fine){&:hover{text-decoration:underline;color:", ";}}color:", ";text-decoration:none;"], states$1.hover.typography.color, typography$5.color);
7346
+ })(["@media (hover:hover) and (pointer:fine){&:hover{text-decoration:underline;color:", ";}}color:", ";text-decoration:none;"], states$1.hover.typography.color, typography$6.color);
7299
7347
  const Breadcrumbs$1 = /*#__PURE__*/react.forwardRef(function Breadcrumbs(_ref, ref) {
7300
7348
  let {
7301
7349
  children,
@@ -7368,12 +7416,12 @@ const Breadcrumbs$1 = /*#__PURE__*/react.forwardRef(function Breadcrumbs(_ref, r
7368
7416
 
7369
7417
  const {
7370
7418
  states,
7371
- typography: typography$4
7419
+ typography: typography$5
7372
7420
  } = breadcrumbs;
7373
7421
  const StyledTypography = styled__default["default"](Typography).withConfig({
7374
7422
  displayName: "Breadcrumb__StyledTypography",
7375
7423
  componentId: "sc-10nvwte-0"
7376
- })(["@media (hover:hover) and (pointer:fine){&:hover{text-decoration:underline;color:", ";cursor:pointer;}}white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-block;text-decoration:none;color:", ";", ""], states.hover.typography.color, typography$4.color, _ref => {
7424
+ })(["@media (hover:hover) and (pointer:fine){&:hover{text-decoration:underline;color:", ";cursor:pointer;}}white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-block;text-decoration:none;color:", ";", ""], states.hover.typography.color, typography$5.color, _ref => {
7377
7425
  let {
7378
7426
  maxWidth
7379
7427
  } = _ref;
@@ -7513,7 +7561,7 @@ const {
7513
7561
  },
7514
7562
  typography: {
7515
7563
  navigation: {
7516
- menu_title: typography$3
7564
+ menu_title: typography$4
7517
7565
  }
7518
7566
  }
7519
7567
  } = edsTokens.tokens;
@@ -7529,7 +7577,7 @@ const menu = {
7529
7577
  type: 'border',
7530
7578
  radius: '4px'
7531
7579
  },
7532
- typography: { ...typography$3,
7580
+ typography: { ...typography$4,
7533
7581
  color: textColor
7534
7582
  },
7535
7583
  entities: {
@@ -7551,7 +7599,7 @@ const menu = {
7551
7599
  },
7552
7600
  states: {
7553
7601
  active: {
7554
- typography: { ...typography$3,
7602
+ typography: { ...typography$4,
7555
7603
  color: activeTextColor
7556
7604
  },
7557
7605
  background: activeBackground
@@ -7569,7 +7617,7 @@ const menu = {
7569
7617
  background: hoverBackground
7570
7618
  },
7571
7619
  disabled: {
7572
- typography: { ...typography$3,
7620
+ typography: { ...typography$4,
7573
7621
  color: disabledTextColor
7574
7622
  }
7575
7623
  }
@@ -7601,7 +7649,7 @@ const menu = {
7601
7649
  };
7602
7650
 
7603
7651
  const {
7604
- typography: typography$2,
7652
+ typography: typography$3,
7605
7653
  entities: {
7606
7654
  item: {
7607
7655
  states: {
@@ -7625,7 +7673,7 @@ const Item = styled__default["default"].button.attrs(_ref => {
7625
7673
  }).withConfig({
7626
7674
  displayName: "MenuItem__Item",
7627
7675
  componentId: "sc-1g9fpbe-0"
7628
- })(["border:0;background-color:transparent;width:auto;position:relative;z-index:2;", " ", " ", " ", ""], edsUtils.typographyTemplate(typography$2), _ref2 => {
7676
+ })(["border:0;background-color:transparent;width:auto;position:relative;z-index:2;", " ", " ", " ", ""], edsUtils.typographyTemplate(typography$3), _ref2 => {
7629
7677
  let {
7630
7678
  theme
7631
7679
  } = _ref2;
@@ -7984,7 +8032,7 @@ const {
7984
8032
  },
7985
8033
  spacings: {
7986
8034
  comfortable: {
7987
- small: spacingSmall$1
8035
+ small: spacingSmall$2
7988
8036
  }
7989
8037
  }
7990
8038
  } = edsTokens.tokens;
@@ -8004,7 +8052,7 @@ const pagination = {
8004
8052
  }
8005
8053
  },
8006
8054
  spacings: {
8007
- left: spacingSmall$1
8055
+ left: spacingSmall$2
8008
8056
  }
8009
8057
  };
8010
8058
 
@@ -8224,20 +8272,20 @@ const Pagination = /*#__PURE__*/react.forwardRef(function Pagination(_ref2, ref)
8224
8272
  });
8225
8273
 
8226
8274
  const {
8227
- colors: colors$1,
8275
+ colors: colors$2,
8228
8276
  spacings: {
8229
8277
  comfortable: {
8230
8278
  small,
8231
8279
  x_small: x_small$2
8232
8280
  }
8233
8281
  },
8234
- typography: typography$1,
8282
+ typography: typography$2,
8235
8283
  shape
8236
8284
  } = edsTokens.tokens;
8237
8285
  const nativeselect = {
8238
- background: colors$1.ui.background__light.rgba,
8239
- typography: { ...typography$1.input.text,
8240
- color: colors$1.text.static_icons__default.rgba
8286
+ background: colors$2.ui.background__light.rgba,
8287
+ typography: { ...typography$2.input.text,
8288
+ color: colors$2.text.static_icons__default.rgba
8241
8289
  },
8242
8290
  entities: {
8243
8291
  input: {
@@ -8252,20 +8300,20 @@ const nativeselect = {
8252
8300
  width: '24px'
8253
8301
  }
8254
8302
  },
8255
- boxShadow: 'inset 0 -1px 0 0 ' + colors$1.text.static_icons__tertiary.rgba,
8303
+ boxShadow: 'inset 0 -1px 0 0 ' + colors$2.text.static_icons__tertiary.rgba,
8256
8304
  states: {
8257
8305
  focus: {
8258
8306
  outline: {
8259
8307
  type: 'outline',
8260
8308
  width: '2px',
8261
- color: colors$1.interactive.primary__resting.rgba,
8309
+ color: colors$2.interactive.primary__resting.rgba,
8262
8310
  style: 'solid',
8263
8311
  offset: '0px'
8264
8312
  }
8265
8313
  },
8266
8314
  disabled: {
8267
8315
  typography: {
8268
- color: colors$1.interactive.disabled__text.rgba
8316
+ color: colors$2.interactive.disabled__text.rgba
8269
8317
  }
8270
8318
  }
8271
8319
  },
@@ -8286,7 +8334,7 @@ const nativeselect = {
8286
8334
  }
8287
8335
  };
8288
8336
 
8289
- const Container$1 = styled__default["default"].div.withConfig({
8337
+ const Container$2 = styled__default["default"].div.withConfig({
8290
8338
  displayName: "NativeSelect__Container",
8291
8339
  componentId: "sc-1c1ogya-0"
8292
8340
  })(["min-width:100px;width:100%;"]);
@@ -8336,7 +8384,7 @@ const NativeSelect = /*#__PURE__*/react.forwardRef(function NativeSelect(_ref2,
8336
8384
  const showLabel = label || meta;
8337
8385
  return /*#__PURE__*/jsxRuntime.jsx(styled.ThemeProvider, {
8338
8386
  theme: token,
8339
- children: /*#__PURE__*/jsxRuntime.jsxs(Container$1, { ...containerProps,
8387
+ children: /*#__PURE__*/jsxRuntime.jsxs(Container$2, { ...containerProps,
8340
8388
  children: [showLabel && /*#__PURE__*/jsxRuntime.jsx(Label$1, { ...labelProps
8341
8389
  }), /*#__PURE__*/jsxRuntime.jsx(StyledSelect, { ...selectProps,
8342
8390
  children: children
@@ -8346,78 +8394,78 @@ const NativeSelect = /*#__PURE__*/react.forwardRef(function NativeSelect(_ref2,
8346
8394
  });
8347
8395
 
8348
8396
  const {
8349
- typography,
8350
- colors,
8397
+ typography: typography$1,
8398
+ colors: colors$1,
8351
8399
  shape: {
8352
- straight,
8400
+ straight: straight$1,
8353
8401
  corners: {
8354
- borderRadius
8402
+ borderRadius: borderRadius$1
8355
8403
  }
8356
8404
  },
8357
8405
  spacings: {
8358
8406
  comfortable: {
8359
- small: spacingSmall,
8360
- medium_small: spacingMediumSmall,
8361
- medium: spacingMedium,
8362
- large: spacingLarge,
8363
- xx_small
8407
+ small: spacingSmall$1,
8408
+ medium_small: spacingMediumSmall$1,
8409
+ medium: spacingMedium$1,
8410
+ large: spacingLarge$1,
8411
+ xx_small: xx_small$1
8364
8412
  }
8365
8413
  },
8366
8414
  elevation: {
8367
- temporary_nav: boxShadow$1
8415
+ temporary_nav: boxShadow$2
8368
8416
  }
8369
8417
  } = edsTokens.tokens;
8370
8418
  const select = {
8371
- background: colors.ui.background__default.rgba,
8372
- boxShadow: boxShadow$1,
8373
- minHeight: straight.minHeight,
8419
+ background: colors$1.ui.background__default.rgba,
8420
+ boxShadow: boxShadow$2,
8421
+ minHeight: straight$1.minHeight,
8374
8422
  spacings: {
8375
- top: spacingMedium,
8376
- right: spacingLarge,
8377
- bottom: spacingMedium,
8378
- left: spacingLarge
8423
+ top: spacingMedium$1,
8424
+ right: spacingLarge$1,
8425
+ bottom: spacingMedium$1,
8426
+ left: spacingLarge$1
8379
8427
  },
8380
- typography: { ...typography.navigation.menu_title,
8381
- color: colors.text.static_icons__default.rgba
8428
+ typography: { ...typography$1.navigation.menu_title,
8429
+ color: colors$1.text.static_icons__default.rgba
8382
8430
  },
8383
8431
  border: {
8384
8432
  type: 'border',
8385
- radius: borderRadius
8433
+ radius: borderRadius$1
8386
8434
  },
8387
8435
  states: {
8388
8436
  hover: {
8389
- background: colors.ui.background__medium.rgba
8437
+ background: colors$1.ui.background__medium.rgba
8390
8438
  },
8391
8439
  active: {
8392
- background: colors.interactive.primary__selected_highlight.rgba
8440
+ background: colors$1.interactive.primary__selected_highlight.rgba
8393
8441
  }
8394
8442
  },
8395
8443
  entities: {
8396
8444
  button: {
8397
8445
  height: '24px',
8398
8446
  spacings: {
8399
- left: spacingSmall,
8400
- right: spacingSmall,
8447
+ left: spacingSmall$1,
8448
+ right: spacingSmall$1,
8401
8449
  top: '6px'
8402
8450
  },
8403
8451
  typography: {
8404
- color: colors.text.static_icons__tertiary.rgba
8452
+ color: colors$1.text.static_icons__tertiary.rgba
8405
8453
  }
8406
8454
  }
8407
8455
  },
8408
8456
  modes: {
8409
8457
  compact: {
8410
8458
  spacings: {
8411
- left: spacingSmall,
8412
- right: spacingSmall,
8413
- top: spacingSmall,
8414
- bottom: spacingSmall
8459
+ left: spacingSmall$1,
8460
+ right: spacingSmall$1,
8461
+ top: spacingSmall$1,
8462
+ bottom: spacingSmall$1
8415
8463
  },
8416
8464
  entities: {
8417
8465
  button: {
8418
8466
  spacings: {
8419
- left: spacingSmall,
8420
- right: spacingSmall,
8467
+ left: spacingSmall$1,
8468
+ right: spacingSmall$1,
8421
8469
  top: '0'
8422
8470
  }
8423
8471
  }
@@ -8425,17 +8473,17 @@ const select = {
8425
8473
  }
8426
8474
  }
8427
8475
  };
8428
- const multiSelect = mergeDeepRight(select, {
8476
+ const multiSelect$1 = mergeDeepRight(select, {
8429
8477
  spacings: {
8430
8478
  top: '0',
8431
8479
  bottom: '0',
8432
- left: spacingMediumSmall,
8433
- right: spacingLarge
8480
+ left: spacingMediumSmall$1,
8481
+ right: spacingLarge$1
8434
8482
  },
8435
8483
  modes: {
8436
8484
  compact: {
8437
8485
  spacings: {
8438
- top: xx_small,
8486
+ top: xx_small$1,
8439
8487
  bottom: '0'
8440
8488
  }
8441
8489
  }
@@ -8447,7 +8495,7 @@ const {
8447
8495
  button: buttonToken
8448
8496
  }
8449
8497
  } = select;
8450
- const Container = styled__default["default"].div.withConfig({
8498
+ const Container$1 = styled__default["default"].div.withConfig({
8451
8499
  displayName: "commonStyles__Container",
8452
8500
  componentId: "sc-v98ajk-0"
8453
8501
  })(["position:relative;"]);
@@ -8455,11 +8503,11 @@ const PaddedInput = styled__default["default"](Input$4).withConfig({
8455
8503
  displayName: "commonStyles__PaddedInput",
8456
8504
  componentId: "sc-v98ajk-1"
8457
8505
  })(["padding-right:calc( ", " + ", " + ", " + 0px );"], buttonToken.height, buttonToken.spacings.left, buttonToken.spacings.right);
8458
- const StyledList = styled__default["default"](List$1).withConfig({
8506
+ const StyledList$1 = styled__default["default"](List$1).withConfig({
8459
8507
  displayName: "commonStyles__StyledList",
8460
8508
  componentId: "sc-v98ajk-2"
8461
8509
  })(["background-color:", ";box-shadow:", ";overflow-y:scroll;max-height:300px;padding:0;", " margin-top:4px;position:absolute;right:0;left:0;z-index:50;"], select.background, select.boxShadow, edsUtils.bordersTemplate(select.border));
8462
- const StyledListItem = styled__default["default"](List$1.Item).withConfig({
8510
+ const StyledListItem$1 = styled__default["default"](List$1.Item).withConfig({
8463
8511
  displayName: "commonStyles__StyledListItem",
8464
8512
  componentId: "sc-v98ajk-3"
8465
8513
  })(_ref => {
@@ -8471,7 +8519,7 @@ const StyledListItem = styled__default["default"](List$1.Item).withConfig({
8471
8519
  const backgroundColor = highlighted === 'true' ? theme.states.hover.background : active === 'true' ? theme.states.active.background : theme.background;
8472
8520
  return styled.css(["margin:0;list-style:none;background-color:", ";", ";cursor:", ";"], backgroundColor, edsUtils.typographyTemplate(theme.typography), highlighted === 'true' ? 'pointer' : 'default');
8473
8521
  });
8474
- const StyledButton = styled__default["default"](Button).withConfig({
8522
+ const StyledButton$1 = styled__default["default"](Button).withConfig({
8475
8523
  displayName: "commonStyles__StyledButton",
8476
8524
  componentId: "sc-v98ajk-4"
8477
8525
  })(_ref2 => {
@@ -8489,7 +8537,7 @@ const StyledInputWrapper = styled__default["default"].div.withConfig({
8489
8537
  componentId: "sc-v98ajk-5"
8490
8538
  })(["position:relative;"]);
8491
8539
 
8492
- const PaddedStyledListItem$1 = styled__default["default"](StyledListItem).withConfig({
8540
+ const PaddedStyledListItem$1 = styled__default["default"](StyledListItem$1).withConfig({
8493
8541
  displayName: "SingleSelect__PaddedStyledListItem",
8494
8542
  componentId: "sc-rh1yw2-0"
8495
8543
  })(["", ""], _ref => {
@@ -8498,6 +8546,8 @@ const PaddedStyledListItem$1 = styled__default["default"](StyledListItem).withCo
8498
8546
  } = _ref;
8499
8547
  return edsUtils.spacingsTemplate(theme.spacings);
8500
8548
  });
8549
+ /** @deprecated Use `<Autocomplete />` instead */
8550
+
8501
8551
  const SingleSelect = /*#__PURE__*/react.forwardRef(function SingleSelect(_ref2, ref) {
8502
8552
  let {
8503
8553
  items = [],
@@ -8572,7 +8622,7 @@ const SingleSelect = /*#__PURE__*/react.forwardRef(function SingleSelect(_ref2,
8572
8622
 
8573
8623
  return /*#__PURE__*/jsxRuntime.jsx(styled.ThemeProvider, {
8574
8624
  theme: token,
8575
- children: /*#__PURE__*/jsxRuntime.jsxs(Container, {
8625
+ children: /*#__PURE__*/jsxRuntime.jsxs(Container$1, {
8576
8626
  className: className,
8577
8627
  ref: ref,
8578
8628
  children: [/*#__PURE__*/jsxRuntime.jsx(Label$1, { ...getLabelProps(),
@@ -8587,7 +8637,7 @@ const SingleSelect = /*#__PURE__*/react.forwardRef(function SingleSelect(_ref2,
8587
8637
  onFocus: openSelect,
8588
8638
  onClick: openSelect,
8589
8639
  ...other
8590
- }), Boolean(inputValue) && /*#__PURE__*/jsxRuntime.jsx(StyledButton, {
8640
+ }), Boolean(inputValue) && /*#__PURE__*/jsxRuntime.jsx(StyledButton$1, {
8591
8641
  variant: "ghost_icon",
8592
8642
  disabled: disabled || readOnly,
8593
8643
  "aria-label": 'clear options',
@@ -8600,7 +8650,7 @@ const SingleSelect = /*#__PURE__*/react.forwardRef(function SingleSelect(_ref2,
8600
8650
  data: edsIcons.close,
8601
8651
  size: 16
8602
8652
  })
8603
- }), /*#__PURE__*/jsxRuntime.jsx(StyledButton, {
8653
+ }), /*#__PURE__*/jsxRuntime.jsx(StyledButton$1, {
8604
8654
  variant: "ghost_icon",
8605
8655
  ...getToggleButtonProps({
8606
8656
  disabled: disabled || readOnly
@@ -8611,7 +8661,7 @@ const SingleSelect = /*#__PURE__*/react.forwardRef(function SingleSelect(_ref2,
8611
8661
  data: isOpen ? edsIcons.arrow_drop_up : edsIcons.arrow_drop_down
8612
8662
  })
8613
8663
  })]
8614
- }), /*#__PURE__*/jsxRuntime.jsx(StyledList, { ...getMenuProps(),
8664
+ }), /*#__PURE__*/jsxRuntime.jsx(StyledList$1, { ...getMenuProps(),
8615
8665
  children: isOpen && inputItems.map((item, index) => /*#__PURE__*/jsxRuntime.jsx(PaddedStyledListItem$1, {
8616
8666
  highlighted: highlightedIndex === index ? 'true' : 'false',
8617
8667
  active: selectedItem === item ? 'true' : 'false',
@@ -8854,7 +8904,7 @@ const CheckboxInput = /*#__PURE__*/react.forwardRef(function CheckboxInput(_ref1
8854
8904
  });
8855
8905
  });
8856
8906
 
8857
- const PaddedStyledListItem = styled__default["default"](StyledListItem).withConfig({
8907
+ const PaddedStyledListItem = styled__default["default"](StyledListItem$1).withConfig({
8858
8908
  displayName: "MultiSelect__PaddedStyledListItem",
8859
8909
  componentId: "sc-69ntfg-0"
8860
8910
  })(["display:flex;align-items:center;", ""], _ref => {
@@ -8863,6 +8913,8 @@ const PaddedStyledListItem = styled__default["default"](StyledListItem).withConf
8863
8913
  } = _ref;
8864
8914
  return edsUtils.spacingsTemplate(theme.spacings);
8865
8915
  });
8916
+
8917
+ /** @deprecated Use `<Autocomplete multiple />` instead. */
8866
8918
  const MultiSelect = /*#__PURE__*/react.forwardRef(function MultiSelect(_ref2, ref) {
8867
8919
  let {
8868
8920
  items = [],
@@ -8883,7 +8935,7 @@ const MultiSelect = /*#__PURE__*/react.forwardRef(function MultiSelect(_ref2, re
8883
8935
  } = useEds();
8884
8936
  const token = edsUtils.useToken({
8885
8937
  density
8886
- }, multiSelect);
8938
+ }, multiSelect$1);
8887
8939
  let multipleSelectionProps = {
8888
8940
  initialSelectedItems: initialSelectedItems,
8889
8941
  onSelectedItemsChange: changes => {
@@ -8990,7 +9042,7 @@ const MultiSelect = /*#__PURE__*/react.forwardRef(function MultiSelect(_ref2, re
8990
9042
 
8991
9043
  return /*#__PURE__*/jsxRuntime.jsx(styled.ThemeProvider, {
8992
9044
  theme: token,
8993
- children: /*#__PURE__*/jsxRuntime.jsxs(Container, {
9045
+ children: /*#__PURE__*/jsxRuntime.jsxs(Container$1, {
8994
9046
  className: className,
8995
9047
  ref: ref,
8996
9048
  children: [/*#__PURE__*/jsxRuntime.jsx(Label$1, { ...getLabelProps(),
@@ -9007,7 +9059,7 @@ const MultiSelect = /*#__PURE__*/react.forwardRef(function MultiSelect(_ref2, re
9007
9059
  readOnly: readOnly,
9008
9060
  onFocus: openSelect,
9009
9061
  ...other
9010
- }), Boolean(selectedItems.length || inputValue) && /*#__PURE__*/jsxRuntime.jsx(StyledButton, {
9062
+ }), Boolean(selectedItems.length || inputValue) && /*#__PURE__*/jsxRuntime.jsx(StyledButton$1, {
9011
9063
  variant: "ghost_icon",
9012
9064
  disabled: disabled || readOnly,
9013
9065
  "aria-label": 'clear options',
@@ -9020,7 +9072,7 @@ const MultiSelect = /*#__PURE__*/react.forwardRef(function MultiSelect(_ref2, re
9020
9072
  data: edsIcons.close,
9021
9073
  size: 16
9022
9074
  })
9023
- }), /*#__PURE__*/jsxRuntime.jsx(StyledButton, {
9075
+ }), /*#__PURE__*/jsxRuntime.jsx(StyledButton$1, {
9024
9076
  variant: "ghost_icon",
9025
9077
  ...getToggleButtonProps({
9026
9078
  disabled: disabled || readOnly
@@ -9031,7 +9083,7 @@ const MultiSelect = /*#__PURE__*/react.forwardRef(function MultiSelect(_ref2, re
9031
9083
  data: isOpen ? edsIcons.arrow_drop_up : edsIcons.arrow_drop_down
9032
9084
  })
9033
9085
  })]
9034
- }), /*#__PURE__*/jsxRuntime.jsx(StyledList, { ...getMenuProps(),
9086
+ }), /*#__PURE__*/jsxRuntime.jsx(StyledList$1, { ...getMenuProps(),
9035
9087
  children: isOpen && getFilteredItems(items).map((item, index) => /*#__PURE__*/jsxRuntime.jsxs(PaddedStyledListItem, {
9036
9088
  highlighted: highlightedIndex === index ? 'true' : 'false',
9037
9089
  ...getItemProps({
@@ -9546,7 +9598,7 @@ const {
9546
9598
  },
9547
9599
  clickbounds,
9548
9600
  elevation: {
9549
- raised: boxShadow
9601
+ raised: boxShadow$1
9550
9602
  },
9551
9603
  spacings: {
9552
9604
  comfortable: {
@@ -9605,7 +9657,7 @@ const comfortable = {
9605
9657
  handle: {
9606
9658
  height: '16px',
9607
9659
  width: '16px',
9608
- boxShadow,
9660
+ boxShadow: boxShadow$1,
9609
9661
  background: iconTertiary,
9610
9662
  states: {
9611
9663
  active: {
@@ -9736,7 +9788,615 @@ const Switch = /*#__PURE__*/react.forwardRef(function Switch(_ref3, ref) {
9736
9788
  });
9737
9789
  Switch.displayName = 'Switch';
9738
9790
 
9791
+ const {
9792
+ typography,
9793
+ colors,
9794
+ shape: {
9795
+ straight,
9796
+ corners: {
9797
+ borderRadius
9798
+ }
9799
+ },
9800
+ spacings: {
9801
+ comfortable: {
9802
+ small: spacingSmall,
9803
+ medium_small: spacingMediumSmall,
9804
+ medium: spacingMedium,
9805
+ large: spacingLarge,
9806
+ xx_small
9807
+ }
9808
+ },
9809
+ elevation: {
9810
+ temporary_nav: boxShadow
9811
+ }
9812
+ } = edsTokens.tokens;
9813
+ const selectTokens = {
9814
+ background: colors.ui.background__default.rgba,
9815
+ boxShadow,
9816
+ minHeight: straight.minHeight,
9817
+ spacings: {
9818
+ top: spacingMedium,
9819
+ right: spacingLarge,
9820
+ bottom: spacingMedium,
9821
+ left: spacingLarge
9822
+ },
9823
+ typography: { ...typography.navigation.menu_title,
9824
+ color: colors.text.static_icons__default.rgba
9825
+ },
9826
+ border: {
9827
+ type: 'border',
9828
+ radius: borderRadius
9829
+ },
9830
+ states: {
9831
+ hover: {
9832
+ background: colors.ui.background__medium.rgba
9833
+ },
9834
+ active: {
9835
+ background: colors.interactive.primary__selected_highlight.rgba
9836
+ },
9837
+ disabled: {
9838
+ typography: {
9839
+ color: colors.interactive.disabled__text.rgba
9840
+ }
9841
+ }
9842
+ },
9843
+ entities: {
9844
+ button: {
9845
+ height: '24px',
9846
+ spacings: {
9847
+ left: spacingSmall,
9848
+ right: spacingSmall,
9849
+ top: '6px'
9850
+ }
9851
+ }
9852
+ },
9853
+ modes: {
9854
+ compact: {
9855
+ spacings: {
9856
+ left: spacingSmall,
9857
+ right: spacingSmall,
9858
+ top: spacingSmall,
9859
+ bottom: spacingSmall
9860
+ },
9861
+ entities: {
9862
+ button: {
9863
+ spacings: {
9864
+ left: spacingSmall,
9865
+ right: spacingSmall,
9866
+ top: '0'
9867
+ }
9868
+ }
9869
+ }
9870
+ }
9871
+ }
9872
+ };
9873
+ const multiSelect = mergeDeepRight(selectTokens, {
9874
+ spacings: {
9875
+ top: '0',
9876
+ bottom: '0',
9877
+ left: spacingMediumSmall,
9878
+ right: spacingLarge
9879
+ },
9880
+ modes: {
9881
+ compact: {
9882
+ spacings: {
9883
+ top: xx_small,
9884
+ bottom: '0'
9885
+ }
9886
+ }
9887
+ }
9888
+ });
9889
+
9890
+ const StyledListItem = styled__default["default"](List$1.Item).withConfig({
9891
+ displayName: "Option__StyledListItem",
9892
+ componentId: "sc-1ly11zu-0"
9893
+ })(_ref => {
9894
+ let {
9895
+ theme,
9896
+ highlighted,
9897
+ active,
9898
+ isdisabled
9899
+ } = _ref;
9900
+ const backgroundColor = highlighted === 'true' ? theme.states.hover.background : active === 'true' ? theme.states.active.background : theme.background;
9901
+ return styled.css(["display:flex;align-items:center;margin:0;list-style:none;background-color:", ";user-select:none;cursor:", ";", " ", " ", ""], backgroundColor, highlighted === 'true' ? 'pointer' : 'default', edsUtils.typographyTemplate(theme.typography), edsUtils.spacingsTemplate(theme.spacings), isdisabled === 'true' ? styled.css(["color:", ";"], theme.states.disabled.typography.color) : '');
9902
+ });
9903
+ const AutocompleteOption = /*#__PURE__*/react.forwardRef(function AutocompleteOption(_ref2, ref) {
9904
+ let {
9905
+ value,
9906
+ multiple,
9907
+ isSelected,
9908
+ isDisabled,
9909
+ onClick,
9910
+ 'aria-selected': ariaSelected,
9911
+ ...other
9912
+ } = _ref2;
9913
+ return /*#__PURE__*/jsxRuntime.jsxs(StyledListItem, {
9914
+ ref: ref,
9915
+ isdisabled: isDisabled ? 'true' : 'false',
9916
+ "aria-hidden": isDisabled,
9917
+ active: !multiple && isSelected ? 'true' : 'false',
9918
+ onClick: e => !isDisabled && onClick(e),
9919
+ "aria-selected": multiple ? isSelected : ariaSelected,
9920
+ ...other,
9921
+ children: [multiple && /*#__PURE__*/jsxRuntime.jsx(Checkbox, {
9922
+ disabled: isDisabled,
9923
+ checked: isSelected,
9924
+ value: value,
9925
+ onChange: () => {
9926
+ return null;
9927
+ }
9928
+ }), /*#__PURE__*/jsxRuntime.jsx("span", {
9929
+ children: value
9930
+ })]
9931
+ });
9932
+ });
9933
+
9934
+ const Container = styled__default["default"].div.withConfig({
9935
+ displayName: "Autocomplete__Container",
9936
+ componentId: "sc-yvif0e-0"
9937
+ })(["position:relative;"]);
9938
+ const StyledInput = styled__default["default"](Input$4).withConfig({
9939
+ displayName: "Autocomplete__StyledInput",
9940
+ componentId: "sc-yvif0e-1"
9941
+ })(_ref => {
9942
+ let {
9943
+ theme: {
9944
+ entities: {
9945
+ button
9946
+ }
9947
+ }
9948
+ } = _ref;
9949
+ return styled.css(["padding-right:calc( ", " + ", " + (", " * 2) );"], button.spacings.left, button.spacings.right, button.height);
9950
+ });
9951
+ const StyledList = styled__default["default"](List$1).withConfig({
9952
+ displayName: "Autocomplete__StyledList",
9953
+ componentId: "sc-yvif0e-2"
9954
+ })(_ref2 => {
9955
+ let {
9956
+ theme
9957
+ } = _ref2;
9958
+ return styled.css(["background-color:", ";box-shadow:", ";", " overflow-y:auto;max-height:300px;padding:0;position:absolute;right:0;left:0;z-index:50;"], theme.background, theme.boxShadow, edsUtils.bordersTemplate(theme.border));
9959
+ });
9960
+ const StyledButton = styled__default["default"](Button).withConfig({
9961
+ displayName: "Autocomplete__StyledButton",
9962
+ componentId: "sc-yvif0e-3"
9963
+ })(_ref3 => {
9964
+ let {
9965
+ theme: {
9966
+ entities: {
9967
+ button
9968
+ }
9969
+ }
9970
+ } = _ref3;
9971
+ return styled.css(["position:absolute;height:", ";width:", ";right:", ";top:", ";"], button.height, button.height, button.spacings.right, button.spacings.top);
9972
+ });
9973
+
9974
+ const findIndex = _ref4 => {
9975
+ let {
9976
+ calc,
9977
+ index,
9978
+ optionDisabled,
9979
+ availableItems
9980
+ } = _ref4;
9981
+ const nextItem = availableItems[index];
9982
+
9983
+ if (optionDisabled(nextItem)) {
9984
+ const nextIndex = calc(index);
9985
+ return findIndex({
9986
+ calc,
9987
+ index: nextIndex,
9988
+ availableItems,
9989
+ optionDisabled
9990
+ });
9991
+ }
9992
+
9993
+ return index;
9994
+ };
9995
+
9996
+ const findNextIndex = _ref5 => {
9997
+ let {
9998
+ index,
9999
+ optionDisabled,
10000
+ availableItems
10001
+ } = _ref5;
10002
+ const options = {
10003
+ index,
10004
+ optionDisabled,
10005
+ availableItems,
10006
+ calc: num => num + 1
10007
+ };
10008
+ const nextIndex = findIndex(options);
10009
+
10010
+ if (nextIndex > availableItems.length - 1) {
10011
+ // jump to start of list
10012
+ return findIndex({ ...options,
10013
+ index: 0
10014
+ });
10015
+ }
10016
+
10017
+ return nextIndex;
10018
+ };
10019
+
10020
+ const findPrevIndex = _ref6 => {
10021
+ let {
10022
+ index,
10023
+ optionDisabled,
10024
+ availableItems
10025
+ } = _ref6;
10026
+ const options = {
10027
+ index,
10028
+ optionDisabled,
10029
+ availableItems,
10030
+ calc: num => num - 1
10031
+ };
10032
+ const prevIndex = findIndex(options);
10033
+
10034
+ if (prevIndex < 0) {
10035
+ // jump to end of list
10036
+ return findIndex({ ...options,
10037
+ index: availableItems.length - 1
10038
+ });
10039
+ }
10040
+
10041
+ return prevIndex;
10042
+ };
10043
+
10044
+ function AutocompleteInner(props, ref) {
10045
+ const {
10046
+ options = [],
10047
+ label,
10048
+ meta,
10049
+ className,
10050
+ disabled = false,
10051
+ readOnly = false,
10052
+ onOptionsChange,
10053
+ selectedOptions,
10054
+ multiple,
10055
+ initialSelectedOptions = [],
10056
+ disablePortal,
10057
+ optionDisabled = () => false,
10058
+ optionsFilter,
10059
+ autoWidth,
10060
+ placeholder,
10061
+ optionLabel,
10062
+ ...other
10063
+ } = props;
10064
+ const anchorRef = react.useRef();
10065
+ const [anchorEl, setAnchorEl] = react.useState();
10066
+ const [containerEl, setContainerEl] = react.useState();
10067
+ const isMounted = edsUtils.useIsMounted();
10068
+ const isControlled = Boolean(selectedOptions);
10069
+ const [availableItems, setAvailableItems] = react.useState(options);
10070
+ const disabledItems = react.useMemo(() => options.filter(optionDisabled), [options, optionDisabled]);
10071
+ const {
10072
+ density
10073
+ } = useEds();
10074
+ const token = edsUtils.useToken({
10075
+ density
10076
+ }, multiple ? multiSelect : selectTokens);
10077
+ let placeholderText = placeholder;
10078
+ let multipleSelectionProps = {
10079
+ initialSelectedItems: multiple ? initialSelectedOptions : initialSelectedOptions[0] ? [initialSelectedOptions[0]] : [],
10080
+ onSelectedItemsChange: changes => {
10081
+ if (onOptionsChange) {
10082
+ onOptionsChange(changes);
10083
+ }
10084
+ }
10085
+ };
10086
+
10087
+ if (isControlled) {
10088
+ multipleSelectionProps = { ...multipleSelectionProps,
10089
+ selectedItems: selectedOptions
10090
+ };
10091
+ }
10092
+
10093
+ const {
10094
+ getDropdownProps,
10095
+ addSelectedItem,
10096
+ removeSelectedItem,
10097
+ selectedItems,
10098
+ reset: resetSelection,
10099
+ setSelectedItems
10100
+ } = downshift.useMultipleSelection(multipleSelectionProps);
10101
+ const getLabel = react.useCallback(item => {
10102
+ if (!item) {
10103
+ return '';
10104
+ }
10105
+
10106
+ if (typeof item === 'object') {
10107
+ if (optionLabel) {
10108
+ return optionLabel(item);
10109
+ } else {
10110
+ throw new Error('Missing label. When using objects for options make sure to define the `optionLabel` property');
10111
+ }
10112
+ }
10113
+
10114
+ if (typeof item === 'string') {
10115
+ return item;
10116
+ }
10117
+
10118
+ try {
10119
+ return item === null || item === void 0 ? void 0 : item.toString();
10120
+ } catch (error) {
10121
+ throw new Error('Unable to find label, make sure your are using options as documented');
10122
+ }
10123
+ }, [optionLabel]);
10124
+ let comboBoxProps = {
10125
+ items: availableItems,
10126
+ initialSelectedItem: initialSelectedOptions[0],
10127
+ itemToString: getLabel,
10128
+ onInputValueChange: _ref7 => {
10129
+ let {
10130
+ inputValue
10131
+ } = _ref7;
10132
+ setAvailableItems(options.filter(item => {
10133
+ if (optionsFilter) {
10134
+ return optionsFilter(item, inputValue);
10135
+ }
10136
+
10137
+ return getLabel(item).toLowerCase().includes(inputValue.toLowerCase());
10138
+ }));
10139
+ },
10140
+ onIsOpenChange: _ref8 => {
10141
+ let {
10142
+ selectedItem
10143
+ } = _ref8;
10144
+
10145
+ // Show all options when single select is reopened with a selected item
10146
+ if (availableItems.length === 1 && selectedItem === availableItems[0]) {
10147
+ setAvailableItems(options);
10148
+ }
10149
+ },
10150
+ onStateChange: _ref9 => {
10151
+ let {
10152
+ type,
10153
+ selectedItem
10154
+ } = _ref9;
10155
+
10156
+ switch (type) {
10157
+ case downshift.useCombobox.stateChangeTypes.InputChange:
10158
+ break;
10159
+
10160
+ case downshift.useCombobox.stateChangeTypes.InputKeyDownEnter:
10161
+ case downshift.useCombobox.stateChangeTypes.ItemClick:
10162
+ case downshift.useCombobox.stateChangeTypes.InputBlur:
10163
+ if (selectedItem && !optionDisabled(selectedItem)) {
10164
+ if (multiple) {
10165
+ selectedItems.includes(selectedItem) ? removeSelectedItem(selectedItem) : addSelectedItem(selectedItem);
10166
+ } else {
10167
+ setSelectedItems([selectedItem]);
10168
+ }
10169
+ }
10170
+
10171
+ break;
10172
+ }
10173
+ },
10174
+ stateReducer: (_, actionAndChanges) => {
10175
+ const {
10176
+ changes,
10177
+ type
10178
+ } = actionAndChanges;
10179
+
10180
+ switch (type) {
10181
+ case downshift.useCombobox.stateChangeTypes.InputKeyDownArrowDown:
10182
+ case downshift.useCombobox.stateChangeTypes.InputKeyDownHome:
10183
+ return { ...changes,
10184
+ highlightedIndex: findNextIndex({
10185
+ index: changes.highlightedIndex,
10186
+ availableItems,
10187
+ optionDisabled
10188
+ })
10189
+ };
10190
+
10191
+ case downshift.useCombobox.stateChangeTypes.InputKeyDownArrowUp:
10192
+ case downshift.useCombobox.stateChangeTypes.InputKeyDownEnd:
10193
+ return { ...changes,
10194
+ highlightedIndex: findPrevIndex({
10195
+ index: changes.highlightedIndex,
10196
+ availableItems,
10197
+ optionDisabled
10198
+ })
10199
+ };
10200
+
10201
+ default:
10202
+ return changes;
10203
+ }
10204
+ }
10205
+ };
10206
+
10207
+ if (isControlled && !multiple) {
10208
+ comboBoxProps = { ...comboBoxProps,
10209
+ selectedItem: selectedOptions[0]
10210
+ };
10211
+ }
10212
+
10213
+ if (multiple) {
10214
+ placeholderText = typeof placeholderText !== 'undefined' ? placeholderText : "".concat(selectedItems.length, "/").concat(options.length - disabledItems.length, " selected");
10215
+ comboBoxProps = { ...comboBoxProps,
10216
+ selectedItem: null,
10217
+ stateReducer: (state, actionAndChanges) => {
10218
+ const {
10219
+ changes,
10220
+ type
10221
+ } = actionAndChanges;
10222
+
10223
+ switch (type) {
10224
+ case downshift.useCombobox.stateChangeTypes.InputKeyDownArrowDown:
10225
+ case downshift.useCombobox.stateChangeTypes.InputKeyDownHome:
10226
+ return { ...changes,
10227
+ highlightedIndex: findNextIndex({
10228
+ index: changes.highlightedIndex,
10229
+ availableItems,
10230
+ optionDisabled
10231
+ })
10232
+ };
10233
+
10234
+ case downshift.useCombobox.stateChangeTypes.InputKeyDownArrowUp:
10235
+ case downshift.useCombobox.stateChangeTypes.InputKeyDownEnd:
10236
+ return { ...changes,
10237
+ highlightedIndex: findPrevIndex({
10238
+ index: changes.highlightedIndex,
10239
+ availableItems,
10240
+ optionDisabled
10241
+ })
10242
+ };
10243
+
10244
+ case downshift.useCombobox.stateChangeTypes.InputKeyDownEnter:
10245
+ case downshift.useCombobox.stateChangeTypes.ItemClick:
10246
+ return { ...changes,
10247
+ isOpen: true,
10248
+ // keep menu open after selection.
10249
+ highlightedIndex: state.highlightedIndex,
10250
+ inputValue: '' // don't add the item string as input value at selection.
10251
+
10252
+ };
10253
+
10254
+ case downshift.useCombobox.stateChangeTypes.InputBlur:
10255
+ return { ...changes,
10256
+ inputValue: '' // don't add the item string as input value at selection.
10257
+
10258
+ };
10259
+
10260
+ default:
10261
+ return changes;
10262
+ }
10263
+ }
10264
+ };
10265
+ }
10266
+
10267
+ const {
10268
+ isOpen,
10269
+ getToggleButtonProps,
10270
+ getLabelProps,
10271
+ getMenuProps,
10272
+ getInputProps,
10273
+ getComboboxProps,
10274
+ highlightedIndex,
10275
+ getItemProps,
10276
+ openMenu,
10277
+ inputValue,
10278
+ reset: resetCombobox
10279
+ } = downshift.useCombobox(comboBoxProps);
10280
+ react.useEffect(() => {
10281
+ if (anchorRef.current) {
10282
+ setAnchorEl(anchorRef.current);
10283
+ }
10284
+
10285
+ if (isControlled) {
10286
+ setSelectedItems(selectedOptions);
10287
+ }
10288
+
10289
+ return () => {
10290
+ setAnchorEl(null);
10291
+ setContainerEl(null);
10292
+ };
10293
+ }, [anchorRef, isControlled, isOpen, selectedOptions, setSelectedItems]);
10294
+ const {
10295
+ styles,
10296
+ attributes
10297
+ } = edsUtils.usePopper({
10298
+ anchorEl,
10299
+ popperEl: containerEl,
10300
+ placement: 'bottom-start',
10301
+ offset: 4,
10302
+ autoWidth
10303
+ });
10304
+
10305
+ const openSelect = () => {
10306
+ if (!isOpen && !(disabled || readOnly)) {
10307
+ openMenu();
10308
+ }
10309
+ };
10310
+
10311
+ const clear = () => {
10312
+ resetCombobox();
10313
+ resetSelection();
10314
+ };
10315
+
10316
+ const showClearButton = (selectedItems.length > 0 || inputValue) && !readOnly;
10317
+ const selectedItemsLabels = react.useMemo(() => selectedItems.map(getLabel), [selectedItems, getLabel]);
10318
+
10319
+ const optionsList = /*#__PURE__*/jsxRuntime.jsx(StyledList, { ...getMenuProps({
10320
+ ref: setContainerEl,
10321
+ style: styles.popper,
10322
+ 'aria-multiselectable': multiple ? 'true' : null,
10323
+ ...attributes.popper
10324
+ }, {
10325
+ suppressRefError: true
10326
+ }),
10327
+ children: !isOpen ? null : availableItems.map((item, index) => {
10328
+ const label = getLabel(item);
10329
+ const isDisabled = optionDisabled(item);
10330
+ const isSelected = selectedItemsLabels.includes(label);
10331
+ return /*#__PURE__*/jsxRuntime.jsx(AutocompleteOption, {
10332
+ value: label,
10333
+ multiple: multiple,
10334
+ highlighted: highlightedIndex === index && !isDisabled ? 'true' : 'false',
10335
+ isSelected: isSelected,
10336
+ isDisabled: isDisabled,
10337
+ ...getItemProps({
10338
+ item,
10339
+ index,
10340
+ disabled
10341
+ })
10342
+ }, label);
10343
+ })
10344
+ });
10345
+
10346
+ return /*#__PURE__*/jsxRuntime.jsx(styled.ThemeProvider, {
10347
+ theme: token,
10348
+ children: /*#__PURE__*/jsxRuntime.jsxs(Container, {
10349
+ className: className,
10350
+ ref: ref,
10351
+ children: [/*#__PURE__*/jsxRuntime.jsx(Label$1, { ...getLabelProps(),
10352
+ label: label,
10353
+ meta: meta,
10354
+ disabled: disabled
10355
+ }), /*#__PURE__*/jsxRuntime.jsxs(Container, { ...getComboboxProps(),
10356
+ children: [/*#__PURE__*/jsxRuntime.jsx(StyledInput, { ...getInputProps( // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
10357
+ getDropdownProps({
10358
+ preventKeyAction: multiple ? isOpen : undefined,
10359
+ disabled,
10360
+ ref: anchorRef
10361
+ })),
10362
+ placeholder: placeholderText,
10363
+ readOnly: readOnly,
10364
+ onFocus: openSelect,
10365
+ onClick: openSelect,
10366
+ ...other
10367
+ }), showClearButton && /*#__PURE__*/jsxRuntime.jsx(StyledButton, {
10368
+ variant: "ghost_icon",
10369
+ disabled: disabled || readOnly,
10370
+ "aria-label": 'clear options',
10371
+ title: "clear",
10372
+ onClick: clear,
10373
+ style: {
10374
+ right: 32
10375
+ },
10376
+ children: /*#__PURE__*/jsxRuntime.jsx(Icon$1, {
10377
+ data: edsIcons.close,
10378
+ size: 16
10379
+ })
10380
+ }), /*#__PURE__*/jsxRuntime.jsx(StyledButton, {
10381
+ variant: "ghost_icon",
10382
+ ...getToggleButtonProps({
10383
+ disabled: disabled || readOnly
10384
+ }),
10385
+ "aria-label": 'toggle options',
10386
+ title: "open",
10387
+ children: !readOnly && /*#__PURE__*/jsxRuntime.jsx(Icon$1, {
10388
+ data: isOpen ? edsIcons.arrow_drop_up : edsIcons.arrow_drop_down
10389
+ })
10390
+ })]
10391
+ }), disablePortal ? optionsList : !isMounted ? null : /*#__PURE__*/ReactDom.createPortal(optionsList, document.body)]
10392
+ })
10393
+ });
10394
+ }
10395
+
10396
+ const Autocomplete = /*#__PURE__*/react.forwardRef(AutocompleteInner);
10397
+
9739
10398
  exports.Accordion = Accordion;
10399
+ exports.Autocomplete = Autocomplete;
9740
10400
  exports.Avatar = Avatar;
9741
10401
  exports.Banner = Banner;
9742
10402
  exports.Breadcrumbs = Breadcrumbs;