@equinor/eds-core-react 0.16.1 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/dist/core-react.cjs.js +1009 -778
  2. package/dist/esm/components/Accordion/Accordion.js +16 -3
  3. package/dist/esm/components/Accordion/Accordion.tokens.js +3 -0
  4. package/dist/esm/components/Accordion/AccordionHeader.js +24 -17
  5. package/dist/esm/components/Accordion/AccordionHeaderTitle.js +5 -5
  6. package/dist/esm/components/Accordion/AccordionPanel.js +13 -9
  7. package/dist/esm/components/Banner/Banner.js +28 -17
  8. package/dist/esm/components/Banner/Banner.tokens.js +9 -0
  9. package/dist/esm/components/Banner/BannerActions.js +8 -11
  10. package/dist/esm/components/Banner/BannerIcon.js +6 -4
  11. package/dist/esm/components/Dialog/Actions.js +5 -3
  12. package/dist/esm/components/Dialog/CustomContent.js +10 -4
  13. package/dist/esm/components/Dialog/Dialog.js +24 -9
  14. package/dist/esm/components/Dialog/Dialog.tokens.js +3 -0
  15. package/dist/esm/components/Dialog/Title.js +10 -4
  16. package/dist/esm/components/Menu/Menu.js +7 -2
  17. package/dist/esm/components/Menu/MenuSection.js +2 -2
  18. package/dist/esm/components/Popover/Popover.js +68 -37
  19. package/dist/esm/components/Popover/Popover.tokens.js +3 -0
  20. package/dist/esm/components/Popover/PopoverTitle.js +11 -4
  21. package/dist/esm/components/Scrim/Scrim.js +12 -7
  22. package/dist/esm/components/Search/Search.js +65 -42
  23. package/dist/esm/components/Search/Search.tokens.js +8 -4
  24. package/dist/esm/components/Select/MultiSelect/MultiSelect.js +8 -2
  25. package/dist/esm/components/Select/Select.tokens.js +3 -0
  26. package/dist/esm/components/Select/commonStyles.js +1 -1
  27. package/dist/esm/components/Snackbar/Snackbar.js +25 -14
  28. package/dist/esm/components/Snackbar/Snackbar.tokens.js +3 -0
  29. package/dist/esm/components/Snackbar/SnackbarAction.js +6 -3
  30. package/dist/esm/components/Table/HeaderCell/HeaderCell.js +1 -1
  31. package/dist/esm/components/TableOfContents/LinkItem.js +6 -3
  32. package/dist/esm/components/TableOfContents/TableOfContents.js +34 -16
  33. package/dist/esm/components/TableOfContents/TableOfContents.tokens.js +3 -0
  34. package/dist/esm/components/Tabs/Tab.js +11 -16
  35. package/dist/esm/components/Tabs/TabPanel.js +11 -8
  36. package/dist/esm/components/Tabs/Tabs.js +26 -13
  37. package/dist/esm/components/Tabs/Tabs.tokens.js +3 -0
  38. package/dist/esm/components/TextField/Field.js +2 -0
  39. package/dist/esm/components/TextField/TextField.js +4 -0
  40. package/dist/esm/components/TopBar/TopBar.js +21 -13
  41. package/dist/esm/components/TopBar/TopBar.tokens.js +5 -2
  42. package/dist/esm/hooks/useHideBodyScroll.js +13 -5
  43. package/dist/types/components/Group/Group.d.ts +3 -0
  44. package/dist/types/components/Group/Group.tokens.d.ts +4 -0
  45. package/dist/types/components/Group/index.d.ts +1 -0
  46. package/dist/types/components/Menu/MenuSection.d.ts +1 -2
  47. package/dist/types/components/Scrim/Scrim.d.ts +7 -3
  48. package/dist/types/components/TopBar/TopBar.tokens.d.ts +1 -1
  49. package/dist/types/hooks/useHideBodyScroll.d.ts +1 -1
  50. package/package.json +9 -4
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var React = require('react');
5
+ var react = require('react');
6
6
  var styled = require('styled-components');
7
7
  var edsTokens = require('@equinor/eds-tokens');
8
8
  var jsxRuntime = require('react/jsx-runtime');
@@ -33,7 +33,6 @@ function _interopNamespace(e) {
33
33
  return Object.freeze(n);
34
34
  }
35
35
 
36
- var React__namespace = /*#__PURE__*/_interopNamespace(React);
37
36
  var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
38
37
  var ReactDom__namespace = /*#__PURE__*/_interopNamespace(ReactDom);
39
38
 
@@ -82,7 +81,7 @@ const {
82
81
  compact__standard: compactClickboundHeight$1
83
82
  }
84
83
  } = edsTokens.tokens;
85
- const button$1 = {
84
+ const button = {
86
85
  background: 'transparent',
87
86
  height: buttonHeight,
88
87
  typography: { ...buttonTypography,
@@ -446,7 +445,7 @@ const {
446
445
  }
447
446
  }
448
447
  } = edsTokens.tokens;
449
- const primary$9 = mergeDeepRight_1(button$1, {
448
+ const primary$9 = mergeDeepRight_1(button, {
450
449
  background: primaryColor$8,
451
450
  typography: {
452
451
  color: primaryWhite
@@ -531,7 +530,7 @@ const {
531
530
  }
532
531
  }
533
532
  } = edsTokens.tokens;
534
- const primary$8 = mergeDeepRight_1(button$1, {
533
+ const primary$8 = mergeDeepRight_1(button, {
535
534
  typography: {
536
535
  color: primaryColor$7
537
536
  },
@@ -632,7 +631,7 @@ const {
632
631
  }
633
632
  }
634
633
  } = edsTokens.tokens;
635
- const primary$7 = mergeDeepRight_1(button$1, {
634
+ const primary$7 = mergeDeepRight_1(button, {
636
635
  typography: {
637
636
  color: primaryColor$6
638
637
  },
@@ -711,11 +710,11 @@ const {
711
710
  default__base: clicboundHeight,
712
711
  compact__standard: compactClickboundHeight
713
712
  },
714
- shape: shape$2
713
+ shape: shape$3
715
714
  } = edsTokens.tokens;
716
- const primary$6 = mergeDeepRight_1(button$1, {
717
- height: shape$2.icon_button.minHeight,
718
- width: shape$2.icon_button.minWidth,
715
+ const primary$6 = mergeDeepRight_1(button, {
716
+ height: shape$3.icon_button.minHeight,
717
+ width: shape$3.icon_button.minWidth,
719
718
  typography: {
720
719
  color: primaryColor$5
721
720
  },
@@ -732,7 +731,7 @@ const primary$6 = mergeDeepRight_1(button$1, {
732
731
  width: clicboundHeight,
733
732
  offset: {
734
733
  top: '0',
735
- left: "".concat((parseInt(clicboundHeight) - parseInt(shape$2.icon_button.minWidth)) / 2, "px")
734
+ left: "".concat((parseInt(clicboundHeight) - parseInt(shape$3.icon_button.minWidth)) / 2, "px")
736
735
  }
737
736
  },
738
737
  states: {
@@ -757,13 +756,13 @@ const primary$6 = mergeDeepRight_1(button$1, {
757
756
  },
758
757
  modes: {
759
758
  compact: {
760
- height: shape$2._modes.compact.icon_button.minHeight,
761
- width: shape$2._modes.compact.icon_button.minWidth,
759
+ height: shape$3._modes.compact.icon_button.minHeight,
760
+ width: shape$3._modes.compact.icon_button.minWidth,
762
761
  clickbound: {
763
762
  width: compactClickboundHeight,
764
763
  offset: {
765
764
  top: '0',
766
- left: "".concat((parseInt(compactClickboundHeight) - parseInt(shape$2._modes.compact.icon_button.minWidth)) / 2, "px")
765
+ left: "".concat((parseInt(compactClickboundHeight) - parseInt(shape$3._modes.compact.icon_button.minWidth)) / 2, "px")
767
766
  }
768
767
  }
769
768
  }
@@ -796,7 +795,7 @@ const danger$2 = mergeDeepRight_1(primary$6, {
796
795
  }
797
796
  });
798
797
 
799
- const token$6 = {
798
+ const token$5 = {
800
799
  primary: {
801
800
  contained: primary$9,
802
801
  outlined: primary$8,
@@ -972,7 +971,7 @@ const setReactInputValue = (input, value) => {
972
971
  };
973
972
 
974
973
  const useOutsideClick = (el, callback) => {
975
- React.useEffect(() => {
974
+ react.useEffect(() => {
976
975
  const handleClick = e => {
977
976
  if (el && !el.contains(e.target)) {
978
977
  callback(e);
@@ -988,7 +987,7 @@ const useOutsideClick = (el, callback) => {
988
987
 
989
988
  /** Returns a memoized function that calls passed refs sequentially with passed element */
990
989
  const useCombinedRefs = (...refs) => {
991
- return React.useCallback(element => refs.forEach(ref => {
990
+ return react.useCallback(element => refs.forEach(ref => {
992
991
  if (typeof ref === 'function') {
993
992
  ref(element);
994
993
  } else if (ref && typeof ref === 'object') {
@@ -1036,7 +1035,7 @@ var KEY;
1036
1035
  })(KEY || (KEY = {}));
1037
1036
 
1038
1037
  const useGlobalKeyPress = (targetKey, callback) => {
1039
- React.useEffect(() => {
1038
+ react.useEffect(() => {
1040
1039
  const handleGlobalKeyPress = e => {
1041
1040
  const {
1042
1041
  key
@@ -1057,9 +1056,9 @@ const useGlobalKeyPress = (targetKey, callback) => {
1057
1056
  };
1058
1057
 
1059
1058
  const useId = (idOverride, type) => {
1060
- const [defaultId, setDefaultId] = React.useState(idOverride);
1059
+ const [defaultId, setDefaultId] = react.useState(idOverride);
1061
1060
  const id = idOverride || defaultId;
1062
- React.useEffect(() => {
1061
+ react.useEffect(() => {
1063
1062
  if (defaultId == null) {
1064
1063
  setDefaultId("eds-".concat(type ? type + "-" : '').concat(Math.round(Math.random() * 1e5)));
1065
1064
  }
@@ -1068,8 +1067,8 @@ const useId = (idOverride, type) => {
1068
1067
  };
1069
1068
 
1070
1069
  const useIsMounted = () => {
1071
- const [isMounted, setIsMounted] = React.useState(null);
1072
- React.useEffect(() => {
1070
+ const [isMounted, setIsMounted] = react.useState(null);
1071
+ react.useEffect(() => {
1073
1072
  setIsMounted(true);
1074
1073
  return () => setIsMounted(false);
1075
1074
  }, []);
@@ -1077,7 +1076,7 @@ const useIsMounted = () => {
1077
1076
  };
1078
1077
 
1079
1078
  const useAutoResize = (targetEl, maxHeight) => {
1080
- React.useEffect(() => {
1079
+ react.useEffect(() => {
1081
1080
  const handleResize = () => {
1082
1081
  targetEl.style.height = 'auto';
1083
1082
  const {
@@ -1112,7 +1111,7 @@ const useAutoResize = (targetEl, maxHeight) => {
1112
1111
  }, [targetEl, maxHeight]);
1113
1112
  };
1114
1113
 
1115
- const useToken = (options, token) => React.useCallback(() => {
1114
+ const useToken = (options, token) => react.useCallback(() => {
1116
1115
  const {
1117
1116
  density
1118
1117
  } = options;
@@ -1124,13 +1123,21 @@ const useToken = (options, token) => React.useCallback(() => {
1124
1123
  return token;
1125
1124
  }, [options, token]);
1126
1125
 
1127
- const useHideBodyScroll = overflowState => {
1128
- React.useEffect(() => {
1129
- document.body.style.overflow = 'hidden';
1126
+ const useHideBodyScroll = active => {
1127
+ const overflowState = react.useRef(document.body.style.overflow);
1128
+ react.useEffect(() => {
1129
+ const originalState = overflowState.current;
1130
+
1131
+ if (active) {
1132
+ document.body.style.overflow = 'hidden';
1133
+ } else {
1134
+ document.body.style.overflow = originalState;
1135
+ }
1136
+
1130
1137
  return () => {
1131
- document.body.style.overflow = overflowState;
1138
+ document.body.style.overflow = originalState;
1132
1139
  };
1133
- }, []);
1140
+ }, [active]);
1134
1141
  };
1135
1142
 
1136
1143
  const FullWidthCenterContent = styled__default['default'].span.withConfig({
@@ -1141,11 +1148,11 @@ const FullWidthInner = styled__default['default'].span.withConfig({
1141
1148
  displayName: "InnerFullWidth__FullWidthInner",
1142
1149
  componentId: "sc-qeawkb-1"
1143
1150
  })(["height:100%;display:flex;align-items:center;> img:first-child,> svg:first-child{margin-right:8px;}> img:last-child,> svg:last-child{margin-left:8px;}> img:only-child,> svg:only-child{margin-left:auto;margin-right:auto;}> span:first-child{margin-left:32px;}> span:last-child{margin-right:32px;}> span:only-child{margin-right:0;margin-left:0;}"]);
1144
- const InnerFullWidth = /*#__PURE__*/React.forwardRef(function InnerFullWidth({
1151
+ const InnerFullWidth = /*#__PURE__*/react.forwardRef(function InnerFullWidth({
1145
1152
  children
1146
1153
  }, ref) {
1147
1154
  // We need everything in elements for proper flexing 💪
1148
- const updatedChildren = React.Children.map(children, child => typeof child !== 'object' ? /*#__PURE__*/jsxRuntime.jsx(FullWidthCenterContent, {
1155
+ const updatedChildren = react.Children.map(children, child => typeof child !== 'object' ? /*#__PURE__*/jsxRuntime.jsx(FullWidthCenterContent, {
1149
1156
  children: child
1150
1157
  }) : child);
1151
1158
  return /*#__PURE__*/jsxRuntime.jsx(FullWidthInner, {
@@ -1157,12 +1164,12 @@ const InnerFullWidth = /*#__PURE__*/React.forwardRef(function InnerFullWidth({
1157
1164
  const initalState$3 = {
1158
1165
  density: 'comfortable'
1159
1166
  };
1160
- const EdsContext = /*#__PURE__*/React.createContext(initalState$3);
1167
+ const EdsContext = /*#__PURE__*/react.createContext(initalState$3);
1161
1168
  const EdsProvider = ({
1162
1169
  children,
1163
1170
  density = 'comfortable'
1164
1171
  }) => {
1165
- const [state, setState] = React.useState({ ...initalState$3,
1172
+ const [state, setState] = react.useState({ ...initalState$3,
1166
1173
  density
1167
1174
  });
1168
1175
 
@@ -1170,7 +1177,7 @@ const EdsProvider = ({
1170
1177
  density
1171
1178
  }));
1172
1179
 
1173
- React.useEffect(() => {
1180
+ react.useEffect(() => {
1174
1181
  if (typeof density !== 'undefined' && density !== state.density) {
1175
1182
  setDensity(density);
1176
1183
  }
@@ -1183,7 +1190,7 @@ const EdsProvider = ({
1183
1190
  children: children
1184
1191
  });
1185
1192
  };
1186
- const useEds = () => React.useContext(EdsContext);
1193
+ const useEds = () => react.useContext(EdsContext);
1187
1194
 
1188
1195
  const getVariant = (tokenSet, variant) => {
1189
1196
  switch (variant) {
@@ -1205,14 +1212,14 @@ const getVariant = (tokenSet, variant) => {
1205
1212
  const getToken$1 = (variant, color) => {
1206
1213
  switch (color) {
1207
1214
  case 'danger':
1208
- return getVariant(token$6.danger, variant);
1215
+ return getVariant(token$5.danger, variant);
1209
1216
 
1210
1217
  case 'secondary':
1211
- return getVariant(token$6.secondary, variant);
1218
+ return getVariant(token$5.secondary, variant);
1212
1219
 
1213
1220
  case 'primary':
1214
1221
  default:
1215
- return getVariant(token$6.primary, variant);
1222
+ return getVariant(token$5.primary, variant);
1216
1223
  }
1217
1224
  };
1218
1225
 
@@ -1239,7 +1246,7 @@ const ButtonBase = styled__default['default'].button.withConfig({
1239
1246
  } = states;
1240
1247
  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{", "}&:focus-visible{", "}&::-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), clickbound === null || clickbound === void 0 ? void 0 : (_clickbound$offset = clickbound.offset) === null || _clickbound$offset === void 0 ? void 0 : _clickbound$offset.top, clickbound === null || clickbound === void 0 ? void 0 : (_clickbound$offset2 = clickbound.offset) === null || _clickbound$offset2 === void 0 ? void 0 : _clickbound$offset2.left, clickbound === null || clickbound === void 0 ? void 0 : clickbound.width, clickbound === null || clickbound === void 0 ? void 0 : clickbound.height, hover.background, (_hover$typography = hover.typography) === null || _hover$typography === void 0 ? void 0 : _hover$typography.color, bordersTemplate(hover === null || hover === void 0 ? void 0 : hover.border), outlineTemplate(focus.outline), outlineTemplate(focus.outline), disabled.background, bordersTemplate(disabled.border), typographyTemplate(disabled.typography), disabled.background);
1241
1248
  });
1242
- const Button = /*#__PURE__*/React.forwardRef(function Button({
1249
+ const Button = /*#__PURE__*/react.forwardRef(function Button({
1243
1250
  color = 'primary',
1244
1251
  variant = 'contained',
1245
1252
  children,
@@ -1280,13 +1287,13 @@ const Button = /*#__PURE__*/React.forwardRef(function Button({
1280
1287
  });
1281
1288
 
1282
1289
  const {
1283
- typography: typography$i,
1290
+ typography: typography$g,
1284
1291
  colors: colorsToken
1285
1292
  } = edsTokens.tokens;
1286
1293
  const {
1287
1294
  heading,
1288
1295
  paragraph: paragraph$2
1289
- } = typography$i;
1296
+ } = typography$g;
1290
1297
  const {
1291
1298
  interactive: {
1292
1299
  primary__resting: {
@@ -1368,7 +1375,7 @@ const findTypography = (variantName, group) => {
1368
1375
  return quickVariants[variantName];
1369
1376
  }
1370
1377
 
1371
- return typography$i[group][variantName];
1378
+ return typography$g[group][variantName];
1372
1379
  };
1373
1380
 
1374
1381
  const findColor = (inputColor = null) => typeof colors$7[inputColor] === 'undefined' ? inputColor : colors$7[inputColor];
@@ -1391,7 +1398,7 @@ const StyledTypography$1 = styled__default['default'].p.withConfig({
1391
1398
  lines > 0 && styled.css(["&{display:-webkit-box;-webkit-line-clamp:", ";-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;}"], lines), ({
1392
1399
  link: link$1
1393
1400
  }) => link$1 && styled.css(["&:focus{outline:none;}&[data-focus-visible-added]:focus{", "}&:focus-visible{", "}"], outlineTemplate(link.states.focus.outline), outlineTemplate(link.states.focus.outline)));
1394
- const Typography = /*#__PURE__*/React.forwardRef(function Typography({
1401
+ const Typography = /*#__PURE__*/react.forwardRef(function Typography({
1395
1402
  variant = 'body_short',
1396
1403
  children,
1397
1404
  bold,
@@ -1573,7 +1580,7 @@ const TableBase$1 = styled__default['default'].table.withConfig({
1573
1580
  displayName: "Table__TableBase",
1574
1581
  componentId: "sc-14kktwc-0"
1575
1582
  })(["border-spacing:0;background:", ";"], tableCell.background);
1576
- const Table$1 = /*#__PURE__*/React.forwardRef(function Table({
1583
+ const Table$1 = /*#__PURE__*/react.forwardRef(function Table({
1577
1584
  children,
1578
1585
  ...props
1579
1586
  }, ref) {
@@ -1586,13 +1593,13 @@ const Table$1 = /*#__PURE__*/React.forwardRef(function Table({
1586
1593
  const initalState$2 = {
1587
1594
  variant: 'body'
1588
1595
  };
1589
- const InnerContext = /*#__PURE__*/React.createContext(initalState$2);
1596
+ const InnerContext = /*#__PURE__*/react.createContext(initalState$2);
1590
1597
 
1591
1598
  const TableBase = styled__default['default'].tbody.withConfig({
1592
1599
  displayName: "Body__TableBase",
1593
1600
  componentId: "sc-1pdmiku-0"
1594
1601
  })([""]);
1595
- const Body = /*#__PURE__*/React.forwardRef(function Body({
1602
+ const Body = /*#__PURE__*/react.forwardRef(function Body({
1596
1603
  children,
1597
1604
  ...props
1598
1605
  }, ref) {
@@ -1626,7 +1633,7 @@ const StyledTableCell$1 = styled__default['default'].td.withConfig({
1626
1633
  const base = styled.css(["min-height:", ";height:", ";background:", ";", " ", " ", ""], height, height, backgroundColor, spacingsTemplate(spacings), typographyTemplate(typography), bordersTemplate(border));
1627
1634
  return base;
1628
1635
  });
1629
- const TableDataCell = /*#__PURE__*/React.forwardRef(function TableDataCell({
1636
+ const TableDataCell = /*#__PURE__*/react.forwardRef(function TableDataCell({
1630
1637
  children,
1631
1638
  variant = 'text',
1632
1639
  ...rest
@@ -1696,7 +1703,7 @@ const {
1696
1703
  }
1697
1704
  }
1698
1705
  } = edsTokens.tokens;
1699
- const token$5 = {
1706
+ const token$4 = {
1700
1707
  height: '48px',
1701
1708
  background: backgroundColor$4,
1702
1709
  typography: { ...cellTypography,
@@ -1788,13 +1795,13 @@ const StyledTableCell = styled__default['default'].th.withConfig({
1788
1795
  sortStylingActive = styled.css(["", ";background:", ";color:", ";"], activeToken.border.type === 'bordergroup' ? styled.css(["border-color:", ";"], activeToken.border.bottom.color) : '', activeToken.background, activeToken.typography.color);
1789
1796
  }
1790
1797
 
1791
- return styled.css(["min-height:", ";height:", ";background:", ";", " ", " ", " ", " ", " ", ""], height, height, background, spacingsTemplate(spacings), typographyTemplate(typography), bordersTemplate(theme.border), sortStylingHover, sortStylingActive, sticky ? styled.css(["position:sticky;top:0;"]) : '');
1798
+ return styled.css(["min-height:", ";height:", ";background:", ";", " ", " ", " ", " ", " ", ""], height, height, background, spacingsTemplate(spacings), typographyTemplate(typography), bordersTemplate(theme.border), sortStylingHover, sortStylingActive, sticky ? styled.css(["position:sticky;top:0;z-index:1;"]) : '');
1792
1799
  });
1793
1800
  const CellInner = styled__default['default'].div.withConfig({
1794
1801
  displayName: "HeaderCell__CellInner",
1795
1802
  componentId: "sc-18w2o3a-1"
1796
1803
  })(["display:flex;align-items:center;"]);
1797
- const TableHeaderCell = /*#__PURE__*/React.forwardRef(function TableHeaderCell({
1804
+ const TableHeaderCell = /*#__PURE__*/react.forwardRef(function TableHeaderCell({
1798
1805
  children,
1799
1806
  sort,
1800
1807
  ...rest
@@ -1804,7 +1811,7 @@ const TableHeaderCell = /*#__PURE__*/React.forwardRef(function TableHeaderCell({
1804
1811
  } = useEds();
1805
1812
  const token = useToken({
1806
1813
  density
1807
- }, token$5);
1814
+ }, token$4);
1808
1815
  return /*#__PURE__*/jsxRuntime.jsx(styled.ThemeProvider, {
1809
1816
  theme: token,
1810
1817
  children: /*#__PURE__*/jsxRuntime.jsx(StyledTableCell, {
@@ -1818,7 +1825,7 @@ const TableHeaderCell = /*#__PURE__*/React.forwardRef(function TableHeaderCell({
1818
1825
  });
1819
1826
  });
1820
1827
 
1821
- const Cell = /*#__PURE__*/React.forwardRef(function Cell({ ...rest
1828
+ const Cell = /*#__PURE__*/react.forwardRef(function Cell({ ...rest
1822
1829
  }, ref) {
1823
1830
  return /*#__PURE__*/jsxRuntime.jsx(InnerContext.Consumer, {
1824
1831
  children: ({
@@ -1858,7 +1865,7 @@ const {
1858
1865
  }
1859
1866
  }
1860
1867
  } = edsTokens.tokens;
1861
- const token$4 = {
1868
+ const token$3 = {
1862
1869
  background: backgroundColor$3,
1863
1870
  border: {
1864
1871
  type: 'bordergroup',
@@ -1874,8 +1881,8 @@ const token$4 = {
1874
1881
  const StyledTableHead = styled__default['default'].thead.withConfig({
1875
1882
  displayName: "Head__StyledTableHead",
1876
1883
  componentId: "sc-g9tch7-0"
1877
- })(["", " background:", ";"], bordersTemplate(token$4.border), token$4.background);
1878
- const Head = /*#__PURE__*/React.forwardRef(function Head({
1884
+ })(["", " background:", ";"], bordersTemplate(token$3.border), token$3.background);
1885
+ const Head = /*#__PURE__*/react.forwardRef(function Head({
1879
1886
  children,
1880
1887
  sticky,
1881
1888
  ...props
@@ -1904,7 +1911,7 @@ const {
1904
1911
  }
1905
1912
  }
1906
1913
  } = edsTokens.tokens;
1907
- const token$3 = {
1914
+ const token$2 = {
1908
1915
  states: {
1909
1916
  active: {
1910
1917
  background: activeBackgroundColor
@@ -1924,15 +1931,15 @@ const StyledRow = styled__default['default'].tr.withConfig({
1924
1931
  var _token$states$active, _token$states$hover;
1925
1932
 
1926
1933
  return {
1927
- background: active ? (_token$states$active = token$3.states.active) === null || _token$states$active === void 0 ? void 0 : _token$states$active.background : null,
1934
+ background: active ? (_token$states$active = token$2.states.active) === null || _token$states$active === void 0 ? void 0 : _token$states$active.background : null,
1928
1935
  '@media (hover: hover) and (pointer: fine)': {
1929
1936
  ':hover': {
1930
- background: (_token$states$hover = token$3.states.hover) === null || _token$states$hover === void 0 ? void 0 : _token$states$hover.background
1937
+ background: (_token$states$hover = token$2.states.hover) === null || _token$states$hover === void 0 ? void 0 : _token$states$hover.background
1931
1938
  }
1932
1939
  }
1933
1940
  };
1934
1941
  });
1935
- const Row = /*#__PURE__*/React.forwardRef(function Row({ ...props
1942
+ const Row = /*#__PURE__*/react.forwardRef(function Row({ ...props
1936
1943
  }, ref) {
1937
1944
  const {
1938
1945
  children
@@ -1951,7 +1958,7 @@ const StyledCaption = styled__default['default'].caption.withConfig({
1951
1958
  }) => ({
1952
1959
  captionSide
1953
1960
  }));
1954
- const Caption = /*#__PURE__*/React.forwardRef(function Caption(props, ref) {
1961
+ const Caption = /*#__PURE__*/react.forwardRef(function Caption(props, ref) {
1955
1962
  return /*#__PURE__*/jsxRuntime.jsx(StyledCaption, { ...props,
1956
1963
  ref: ref
1957
1964
  });
@@ -2041,7 +2048,7 @@ const StyledDivider$3 = styled__default['default'].hr.withConfig({
2041
2048
  displayName: "Divider__StyledDivider",
2042
2049
  componentId: "sc-1d8osde-0"
2043
2050
  })(["border:none;background-color:", ";margin-top:", ";margin-bottom:", ";height:", ";"], props => props.backgroundColor, props => props.marginTop, props => props.marginBottom, props => props.dividerHeight);
2044
- const Divider = /*#__PURE__*/React.forwardRef(function Divider({
2051
+ const Divider = /*#__PURE__*/react.forwardRef(function Divider({
2045
2052
  color = 'medium',
2046
2053
  variant = 'medium',
2047
2054
  ...rest
@@ -2062,11 +2069,11 @@ const Divider = /*#__PURE__*/React.forwardRef(function Divider({
2062
2069
  const initalState$1 = {
2063
2070
  isFocused: false
2064
2071
  };
2065
- const TextFieldContext = /*#__PURE__*/React.createContext(initalState$1);
2072
+ const TextFieldContext = /*#__PURE__*/react.createContext(initalState$1);
2066
2073
  const TextFieldProvider = ({
2067
2074
  children
2068
2075
  }) => {
2069
- const [state, setState] = React.useState(initalState$1);
2076
+ const [state, setState] = react.useState(initalState$1);
2070
2077
 
2071
2078
  const handleFocus = () => {
2072
2079
  setState(prevState => ({ ...prevState,
@@ -2090,13 +2097,13 @@ const TextFieldProvider = ({
2090
2097
  children: children
2091
2098
  });
2092
2099
  };
2093
- const useTextField = () => React.useContext(TextFieldContext);
2100
+ const useTextField = () => react.useContext(TextFieldContext);
2094
2101
 
2095
2102
  const {
2096
2103
  colors: {
2097
2104
  ui: {
2098
2105
  background__light: {
2099
- rgba: background$f
2106
+ rgba: background$d
2100
2107
  }
2101
2108
  },
2102
2109
  text: {
@@ -2120,19 +2127,19 @@ const {
2120
2127
  x_small: x_small$5
2121
2128
  }
2122
2129
  },
2123
- typography: typography$h,
2124
- shape: shape$1
2130
+ typography: typography$f,
2131
+ shape: shape$2
2125
2132
  } = edsTokens.tokens;
2126
2133
  const input$2 = {
2127
- minHeight: shape$1.straight.minHeight,
2128
- background: background$f,
2134
+ minHeight: shape$2.straight.minHeight,
2135
+ background: background$d,
2129
2136
  spacings: {
2130
2137
  left: small$6,
2131
2138
  right: small$6,
2132
2139
  top: '6px',
2133
2140
  bottom: '6px'
2134
2141
  },
2135
- typography: { ...typography$h.input.text,
2142
+ typography: { ...typography$f.input.text,
2136
2143
  color: static_icons__default.rgba
2137
2144
  },
2138
2145
  entities: {
@@ -2174,7 +2181,7 @@ const input$2 = {
2174
2181
  boxShadow: 'inset 0px -1px 0px 0px ' + static_icons__tertiary.rgba,
2175
2182
  modes: {
2176
2183
  compact: {
2177
- minHeight: shape$1._modes.compact.straight.minHeight,
2184
+ minHeight: shape$2._modes.compact.straight.minHeight,
2178
2185
  spacings: {
2179
2186
  left: x_small$5,
2180
2187
  right: x_small$5,
@@ -2290,7 +2297,7 @@ const StyledInput = styled__default['default'].input.withConfig({
2290
2297
  } = theme;
2291
2298
  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);
2292
2299
  });
2293
- const Input$5 = /*#__PURE__*/React.forwardRef(function Input({
2300
+ const Input$4 = /*#__PURE__*/react.forwardRef(function Input({
2294
2301
  variant = 'default',
2295
2302
  disabled = false,
2296
2303
  type = 'text',
@@ -2386,7 +2393,7 @@ const StyledIcon$2 = styled__default['default'].div.withConfig({
2386
2393
 
2387
2394
  return styled.css(["&,svg{fill:", ";width:", "px;height:", "px;}"], fill, size, size);
2388
2395
  });
2389
- const InputIcon = /*#__PURE__*/React.forwardRef(function InputIcon({
2396
+ const InputIcon = /*#__PURE__*/react.forwardRef(function InputIcon({
2390
2397
  size = 24,
2391
2398
  variant = 'default',
2392
2399
  isDisabled = false,
@@ -2417,7 +2424,7 @@ const InputIcon = /*#__PURE__*/React.forwardRef(function InputIcon({
2417
2424
 
2418
2425
  const {
2419
2426
  colors: colors$5,
2420
- typography: typography$g,
2427
+ typography: typography$e,
2421
2428
  spacings: {
2422
2429
  comfortable: {
2423
2430
  small: small$5,
@@ -2455,7 +2462,7 @@ const textfield$1 = {
2455
2462
  },
2456
2463
  entities: {
2457
2464
  unit: {
2458
- typography: { ...typography$g.input.label,
2465
+ typography: { ...typography$e.input.label,
2459
2466
  color: colors$5.text.static_icons__tertiary.hex
2460
2467
  },
2461
2468
  states: {
@@ -2581,7 +2588,7 @@ const StyledTextarea = styled__default['default'].textarea.withConfig({
2581
2588
  displayName: "Textarea__StyledTextarea",
2582
2589
  componentId: "sc-2yjdcc-0"
2583
2590
  })(["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);
2584
- const Textarea = /*#__PURE__*/React.forwardRef(function Textarea({
2591
+ const Textarea = /*#__PURE__*/react.forwardRef(function Textarea({
2585
2592
  variant = 'default',
2586
2593
  disabled = false,
2587
2594
  type = 'text',
@@ -2590,7 +2597,7 @@ const Textarea = /*#__PURE__*/React.forwardRef(function Textarea({
2590
2597
  }, ref) {
2591
2598
  const actualVariant = variant === 'default' ? 'input' : variant;
2592
2599
  const inputVariant = tokens$6[actualVariant];
2593
- const [textareaEl, setTextareaEl] = React.useState(null);
2600
+ const [textareaEl, setTextareaEl] = react.useState(null);
2594
2601
  const {
2595
2602
  density
2596
2603
  } = useEds();
@@ -2642,7 +2649,7 @@ const Variation$1 = ({
2642
2649
  return styled.css(["box-shadow:", ";", ""], isFocused ? "none" : variant === 'default' ? "inset 0 -1px 0 0 ".concat(((_token$border = token.border) === null || _token$border === void 0 ? void 0 : _token$border.type) === 'border' && ((_token$border2 = token.border) === null || _token$border2 === void 0 ? void 0 : _token$border2.color)) : "0 0 0 1px ".concat(((_token$border3 = token.border) === null || _token$border3 === void 0 ? void 0 : _token$border3.type) === 'border' && ((_token$border4 = token.border) === null || _token$border4 === void 0 ? void 0 : _token$border4.color)), isFocused && outlineTemplate(token.states.focus.outline));
2643
2650
  };
2644
2651
 
2645
- const StrippedInput = styled__default['default'](Input$5).withConfig({
2652
+ const StrippedInput = styled__default['default'](Input$4).withConfig({
2646
2653
  displayName: "Field__StrippedInput",
2647
2654
  componentId: "sc-455b88-0"
2648
2655
  })(["outline:none;&:active,&:focus{outline:none;box-shadow:none;}"]);
@@ -2679,7 +2686,7 @@ const Adornments = styled__default['default'].div.withConfig({
2679
2686
  marginTop: theme.spacings.top,
2680
2687
  alignSelf: 'start'
2681
2688
  });
2682
- const Field = /*#__PURE__*/React.forwardRef(function Field({
2689
+ const Field = /*#__PURE__*/react.forwardRef(function Field({
2683
2690
  multiline,
2684
2691
  variant,
2685
2692
  disabled,
@@ -2703,6 +2710,7 @@ const Field = /*#__PURE__*/React.forwardRef(function Field({
2703
2710
  const iconSize = density === 'compact' ? 16 : 24;
2704
2711
  const actualVariant = variant === 'default' ? 'textfield' : variant;
2705
2712
  const inputVariant = tokens$5[actualVariant];
2713
+ const isError = actualVariant === 'error';
2706
2714
 
2707
2715
  const focusHandler = e => {
2708
2716
  handleFocus();
@@ -2726,6 +2734,7 @@ const Field = /*#__PURE__*/React.forwardRef(function Field({
2726
2734
  };
2727
2735
  const inputProps = {
2728
2736
  ref: ref,
2737
+ 'aria-invalid': isError,
2729
2738
  type,
2730
2739
  disabled,
2731
2740
  readOnly,
@@ -2761,11 +2770,11 @@ const {
2761
2770
  spacings: {
2762
2771
  comfortable: comfortable$5
2763
2772
  },
2764
- typography: typography$f
2773
+ typography: typography$d
2765
2774
  } = edsTokens.tokens;
2766
2775
  const label = {
2767
2776
  background: colors$4.ui.background__light.rgba,
2768
- typography: { ...typography$f.input.label,
2777
+ typography: { ...typography$d.input.label,
2769
2778
  color: colors$4.text.static_icons__tertiary.rgba
2770
2779
  },
2771
2780
  spacings: {
@@ -2793,7 +2802,7 @@ const Text$2 = styled__default['default'].span.withConfig({
2793
2802
  displayName: "Label__Text",
2794
2803
  componentId: "sc-1gi2bcn-1"
2795
2804
  })(["margin:0;"]);
2796
- const Label$1 = /*#__PURE__*/React.forwardRef(function Label(props, ref) {
2805
+ const Label$1 = /*#__PURE__*/react.forwardRef(function Label(props, ref) {
2797
2806
  const {
2798
2807
  label = '',
2799
2808
  meta,
@@ -2822,11 +2831,11 @@ const {
2822
2831
  spacings: {
2823
2832
  comfortable: comfortable$4
2824
2833
  },
2825
- typography: typography$e
2834
+ typography: typography$c
2826
2835
  } = edsTokens.tokens;
2827
2836
  const helperText = {
2828
2837
  background: colors$3.ui.background__light.hex,
2829
- typography: typography$e.input.helper,
2838
+ typography: typography$c.input.helper,
2830
2839
  spacings: {
2831
2840
  comfortable: {
2832
2841
  left: comfortable$4.small,
@@ -2901,7 +2910,7 @@ const Text$1 = styled__default['default'].p.withConfig({
2901
2910
  })(["", " margin:0 0 0 ", ";", ""], typographyTemplate(helperText.typography), ({
2902
2911
  spacings
2903
2912
  }) => spacings.left, Variation);
2904
- const TextfieldHelperText = /*#__PURE__*/React.forwardRef(function TextfieldHelperText({
2913
+ const TextfieldHelperText = /*#__PURE__*/react.forwardRef(function TextfieldHelperText({
2905
2914
  helperText: helperText$1,
2906
2915
  icon,
2907
2916
  variant = 'default',
@@ -2941,7 +2950,7 @@ const Container$3 = styled__default['default'].div.withConfig({
2941
2950
  displayName: "TextField__Container",
2942
2951
  componentId: "sc-o1nc07-0"
2943
2952
  })(["min-width:100px;width:100%;"]);
2944
- const TextField = /*#__PURE__*/React.forwardRef(function TextField({
2953
+ const TextField = /*#__PURE__*/react.forwardRef(function TextField({
2945
2954
  id,
2946
2955
  label,
2947
2956
  meta,
@@ -2958,7 +2967,9 @@ const TextField = /*#__PURE__*/React.forwardRef(function TextField({
2958
2967
  rowsMax,
2959
2968
  ...other
2960
2969
  }, ref) {
2970
+ const helperTextId = useId(null, 'helpertext');
2961
2971
  const inputProps = {
2972
+ 'aria-describedby': helperTextId,
2962
2973
  multiline,
2963
2974
  disabled,
2964
2975
  placeholder,
@@ -2971,6 +2982,7 @@ const TextField = /*#__PURE__*/React.forwardRef(function TextField({
2971
2982
  ...other
2972
2983
  };
2973
2984
  const helperProps = {
2985
+ id: helperTextId,
2974
2986
  variant,
2975
2987
  helperText,
2976
2988
  icon: helperIcon,
@@ -3061,7 +3073,7 @@ const StyledPath$2 = styled__default['default'].path.attrs(({
3061
3073
  displayName: "Icon__StyledPath",
3062
3074
  componentId: "sc-6evbi1-1"
3063
3075
  })([""]);
3064
- const Icon$2 = /*#__PURE__*/React.forwardRef(function Icon({
3076
+ const Icon$2 = /*#__PURE__*/react.forwardRef(function Icon({
3065
3077
  size = 24,
3066
3078
  color = 'currentColor',
3067
3079
  name,
@@ -3135,15 +3147,15 @@ const list = {
3135
3147
  };
3136
3148
 
3137
3149
  const {
3138
- typography: typography$d
3150
+ typography: typography$b
3139
3151
  } = list;
3140
3152
  const StyledList$1 = styled__default['default'].ul.withConfig({
3141
3153
  displayName: "List__StyledList",
3142
3154
  componentId: "sc-v9d2hy-0"
3143
3155
  })(["", " ", ""], ({
3144
3156
  as
3145
- }) => as === 'ol' ? styled.css(["& ol{list-style-type:lower-alpha;}"]) : '', typographyTemplate(typography$d));
3146
- const List$2 = /*#__PURE__*/React.forwardRef(function List({
3157
+ }) => as === 'ol' ? styled.css(["& ol{list-style-type:lower-alpha;}"]) : '', typographyTemplate(typography$b));
3158
+ const List$2 = /*#__PURE__*/react.forwardRef(function List({
3147
3159
  children,
3148
3160
  variant = 'bullet',
3149
3161
  ...props
@@ -3157,7 +3169,7 @@ const List$2 = /*#__PURE__*/React.forwardRef(function List({
3157
3169
  });
3158
3170
  }); // List.displayName = 'List'
3159
3171
 
3160
- const ListItem$2 = /*#__PURE__*/React.forwardRef(function ListItem({
3172
+ const ListItem$2 = /*#__PURE__*/react.forwardRef(function ListItem({
3161
3173
  children,
3162
3174
  ...props
3163
3175
  }, ref) {
@@ -3171,76 +3183,10 @@ const List$1 = List$2;
3171
3183
  List$1.Item = ListItem$2;
3172
3184
  List$1.Item.displayName = 'List.Item';
3173
3185
 
3174
- const Accordion$1 = /*#__PURE__*/React.forwardRef(function Accordion({
3175
- headerLevel = 'h2',
3176
- chevronPosition = 'left',
3177
- children,
3178
- id,
3179
- ...props
3180
- }, ref) {
3181
- const accordionId = useId(id, 'accordion');
3182
- const AccordionItems = React.Children.map(children, (child, index) => {
3183
- if (!child) return null;
3184
- return /*#__PURE__*/React.cloneElement(child, {
3185
- accordionId,
3186
- index,
3187
- headerLevel,
3188
- chevronPosition
3189
- });
3190
- });
3191
- return /*#__PURE__*/jsxRuntime.jsx("div", { ...props,
3192
- ref: ref,
3193
- children: AccordionItems
3194
- });
3195
- }); // Accordion.displayName = 'Accordion'
3196
-
3197
- const AccordionItem = /*#__PURE__*/React.forwardRef(function AccordionItem({
3198
- headerLevel,
3199
- chevronPosition,
3200
- index = 0,
3201
- accordionId,
3202
- isExpanded,
3203
- children,
3204
- disabled,
3205
- ...props
3206
- }, ref) {
3207
- const [expanded, setExpanded] = React.useState(isExpanded);
3208
-
3209
- const toggleExpanded = () => {
3210
- setExpanded(!expanded);
3211
- };
3212
-
3213
- const Children = React.Children.map(children, (child, childIndex) => {
3214
- const headerId = "".concat(accordionId, "-header-").concat(index + 1);
3215
- const panelId = "".concat(accordionId, "-panel-").concat(index + 1);
3216
- return childIndex === 0 ? /*#__PURE__*/React.cloneElement(child, {
3217
- isExpanded: expanded,
3218
- toggleExpanded,
3219
- id: headerId,
3220
- panelId,
3221
- headerLevel,
3222
- chevronPosition,
3223
- parentIndex: index,
3224
- disabled
3225
- }) : /*#__PURE__*/React.cloneElement(child, {
3226
- hidden: !expanded,
3227
- id: panelId,
3228
- headerId
3229
- });
3230
- });
3231
- React.useEffect(() => {
3232
- setExpanded(isExpanded);
3233
- }, [isExpanded]);
3234
- return /*#__PURE__*/jsxRuntime.jsx("div", { ...props,
3235
- ref: ref,
3236
- children: Children
3237
- });
3238
- }); // AccordionItem.displayName = 'AccordionItem'
3239
-
3240
3186
  const {
3241
3187
  typography: {
3242
3188
  ui: {
3243
- accordion_header: typography$c
3189
+ accordion_header: typography$a
3244
3190
  }
3245
3191
  },
3246
3192
  colors: {
@@ -3300,7 +3246,7 @@ const accordion = {
3300
3246
  header: {
3301
3247
  height: '48px',
3302
3248
  background: backgroundDefault,
3303
- typography: typography$c,
3249
+ typography: typography$a,
3304
3250
  spacings: {
3305
3251
  left: mediumSpacing,
3306
3252
  right: mediumSpacing
@@ -3316,12 +3262,12 @@ const accordion = {
3316
3262
  }
3317
3263
  },
3318
3264
  disabled: {
3319
- typography: { ...typography$c,
3265
+ typography: { ...typography$a,
3320
3266
  color: disabledColor$2
3321
3267
  }
3322
3268
  },
3323
3269
  active: {
3324
- typography: { ...typography$c,
3270
+ typography: { ...typography$a,
3325
3271
  color: activatedColor
3326
3272
  }
3327
3273
  },
@@ -3343,21 +3289,100 @@ const accordion = {
3343
3289
  color: defaultIconColor
3344
3290
  }
3345
3291
  }
3292
+ },
3293
+ modes: {
3294
+ compact: {}
3346
3295
  }
3347
3296
  };
3348
3297
 
3298
+ const Accordion$1 = /*#__PURE__*/react.forwardRef(function Accordion({
3299
+ headerLevel = 'h2',
3300
+ chevronPosition = 'left',
3301
+ children,
3302
+ id,
3303
+ ...props
3304
+ }, ref) {
3305
+ const accordionId = useId(id, 'accordion');
3306
+ const {
3307
+ density
3308
+ } = useEds();
3309
+ const token = useToken({
3310
+ density
3311
+ }, accordion);
3312
+ const AccordionItems = react.Children.map(children, (child, index) => {
3313
+ if (!child) return null;
3314
+ return /*#__PURE__*/react.cloneElement(child, {
3315
+ accordionId,
3316
+ index,
3317
+ headerLevel,
3318
+ chevronPosition
3319
+ });
3320
+ });
3321
+ return /*#__PURE__*/jsxRuntime.jsx(styled.ThemeProvider, {
3322
+ theme: token,
3323
+ children: /*#__PURE__*/jsxRuntime.jsx("div", { ...props,
3324
+ ref: ref,
3325
+ children: AccordionItems
3326
+ })
3327
+ });
3328
+ }); // Accordion.displayName = 'Accordion'
3329
+
3330
+ const AccordionItem = /*#__PURE__*/react.forwardRef(function AccordionItem({
3331
+ headerLevel,
3332
+ chevronPosition,
3333
+ index = 0,
3334
+ accordionId,
3335
+ isExpanded,
3336
+ children,
3337
+ disabled,
3338
+ ...props
3339
+ }, ref) {
3340
+ const [expanded, setExpanded] = react.useState(isExpanded);
3341
+
3342
+ const toggleExpanded = () => {
3343
+ setExpanded(!expanded);
3344
+ };
3345
+
3346
+ const Children = react.Children.map(children, (child, childIndex) => {
3347
+ const headerId = "".concat(accordionId, "-header-").concat(index + 1);
3348
+ const panelId = "".concat(accordionId, "-panel-").concat(index + 1);
3349
+ return childIndex === 0 ? /*#__PURE__*/react.cloneElement(child, {
3350
+ isExpanded: expanded,
3351
+ toggleExpanded,
3352
+ id: headerId,
3353
+ panelId,
3354
+ headerLevel,
3355
+ chevronPosition,
3356
+ parentIndex: index,
3357
+ disabled
3358
+ }) : /*#__PURE__*/react.cloneElement(child, {
3359
+ hidden: !expanded,
3360
+ id: panelId,
3361
+ headerId
3362
+ });
3363
+ });
3364
+ react.useEffect(() => {
3365
+ setExpanded(isExpanded);
3366
+ }, [isExpanded]);
3367
+ return /*#__PURE__*/jsxRuntime.jsx("div", { ...props,
3368
+ ref: ref,
3369
+ children: Children
3370
+ });
3371
+ }); // AccordionItem.displayName = 'AccordionItem'
3372
+
3349
3373
  const StyledAccordionHeaderTitle = styled__default['default'].span.withConfig({
3350
3374
  displayName: "AccordionHeaderTitle__StyledAccordionHeaderTitle",
3351
3375
  componentId: "sc-g27uve-0"
3352
- })(["flex:1;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;text-align:left;font-family:Equinor;color:", ";"], ({
3376
+ })(({
3377
+ theme,
3353
3378
  isExpanded,
3354
3379
  disabled
3355
3380
  }) => {
3356
- var _tokens$entities$head;
3381
+ var _theme$entities$heade;
3357
3382
 
3358
- return isExpanded && !disabled ? (_tokens$entities$head = accordion.entities.header.states.active.typography) === null || _tokens$entities$head === void 0 ? void 0 : _tokens$entities$head.color : 'inherit';
3383
+ return styled.css(["flex:1;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;text-align:left;font-family:Equinor;color:", ";"], isExpanded && !disabled ? (_theme$entities$heade = theme.entities.header.states.active.typography) === null || _theme$entities$heade === void 0 ? void 0 : _theme$entities$heade.color : 'inherit');
3359
3384
  });
3360
- const AccordionHeaderTitle = /*#__PURE__*/React.forwardRef(function AccordionHeaderTitle({
3385
+ const AccordionHeaderTitle = /*#__PURE__*/react.forwardRef(function AccordionHeaderTitle({
3361
3386
  isExpanded,
3362
3387
  disabled,
3363
3388
  children
@@ -3372,9 +3397,7 @@ const AccordionHeaderTitle = /*#__PURE__*/React.forwardRef(function AccordionHea
3372
3397
 
3373
3398
  const {
3374
3399
  entities: {
3375
- header: header$2,
3376
- chevron: chevronToken,
3377
- icon: iconToken
3400
+ chevron: chevronToken
3378
3401
  }
3379
3402
  } = accordion;
3380
3403
  const StyledAccordionHeader = styled__default['default'].div.attrs(({
@@ -3391,22 +3414,31 @@ const StyledAccordionHeader = styled__default['default'].div.attrs(({
3391
3414
  })).withConfig({
3392
3415
  displayName: "AccordionHeader__StyledAccordionHeader",
3393
3416
  componentId: "sc-cu2e95-0"
3394
- })(["", " ", " ", " &[data-focus-visible-added]:focus{", "}&:focus-visible{", "}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), outlineTemplate(header$2.states.focus.outline), ({
3417
+ })(({
3418
+ theme,
3419
+ disabled,
3395
3420
  parentIndex
3396
- }) => parentIndex === 0 ? null : 'none', header$2.background, header$2.height, ({
3397
- disabled
3398
- }) => disabled ? styled.css({
3399
- color: header$2.states.disabled.typography.color,
3400
- cursor: 'not-allowed'
3401
- }) : styled.css({
3402
- color: header$2.typography.color,
3403
- cursor: 'pointer',
3404
- '@media (hover: hover) and (pointer: fine)': {
3405
- ':hover': {
3406
- background: header$2.states.hover.background
3407
- }
3408
- }
3409
- }), iconToken.typography.color);
3421
+ }) => {
3422
+ const {
3423
+ entities: {
3424
+ header,
3425
+ icon: iconToken
3426
+ },
3427
+ border
3428
+ } = theme;
3429
+ return styled.css(["", " ", " ", " &[data-focus-visible-added]:focus{", "}&:focus-visible{", "}border-top:", ";background:", ";height:", ";margin:0;display:flex;align-items:center;box-sizing:border-box;", " > svg{color:", ";}"], typographyTemplate(header.typography), bordersTemplate(border), spacingsTemplate(header.spacings), outlineTemplate(header.states.focus.outline), outlineTemplate(header.states.focus.outline), parentIndex === 0 ? null : 'none', header.background, header.height, disabled ? styled.css({
3430
+ color: header.states.disabled.typography.color,
3431
+ cursor: 'not-allowed'
3432
+ }) : styled.css({
3433
+ color: header.typography.color,
3434
+ cursor: 'pointer',
3435
+ '@media (hover: hover) and (pointer: fine)': {
3436
+ ':hover': {
3437
+ background: header.states.hover.background
3438
+ }
3439
+ }
3440
+ }), iconToken.typography.color);
3441
+ });
3410
3442
  const StyledIcon$1 = styled__default['default'](Icon$1).withConfig({
3411
3443
  displayName: "AccordionHeader__StyledIcon",
3412
3444
  componentId: "sc-cu2e95-1"
@@ -3417,7 +3449,7 @@ const StyledIcon$1 = styled__default['default'](Icon$1).withConfig({
3417
3449
  } : {
3418
3450
  marginLeft: '16px'
3419
3451
  });
3420
- const AccordionHeader = /*#__PURE__*/React.forwardRef(function AccordionHeader({
3452
+ const AccordionHeader = /*#__PURE__*/react.forwardRef(function AccordionHeader({
3421
3453
  parentIndex,
3422
3454
  headerLevel,
3423
3455
  chevronPosition,
@@ -3462,7 +3494,7 @@ const AccordionHeader = /*#__PURE__*/React.forwardRef(function AccordionHeader({
3462
3494
  color: disabled ? chevronToken.states.disabled.background : chevronToken.background
3463
3495
  }, "".concat(id, "-icon"));
3464
3496
 
3465
- const headerChildren = React.Children.map(children, child => {
3497
+ const headerChildren = react.Children.map(children, child => {
3466
3498
  if (typeof child === 'string') {
3467
3499
  return /*#__PURE__*/jsxRuntime.jsx(AccordionHeaderTitle, {
3468
3500
  isExpanded: isExpanded,
@@ -3471,8 +3503,8 @@ const AccordionHeader = /*#__PURE__*/React.forwardRef(function AccordionHeader({
3471
3503
  });
3472
3504
  }
3473
3505
 
3474
- if ( /*#__PURE__*/React.isValidElement(child) && child.type === AccordionHeaderTitle) {
3475
- return /*#__PURE__*/React.cloneElement(child, {
3506
+ if ( /*#__PURE__*/react.isValidElement(child) && child.type === AccordionHeaderTitle) {
3507
+ return /*#__PURE__*/react.cloneElement(child, {
3476
3508
  isExpanded,
3477
3509
  disabled
3478
3510
  });
@@ -3495,12 +3527,6 @@ const AccordionHeader = /*#__PURE__*/React.forwardRef(function AccordionHeader({
3495
3527
  });
3496
3528
  }); // AccordionHeader.displayName = 'EdsAccordionHeader'
3497
3529
 
3498
- const {
3499
- entities: {
3500
- header: header$1,
3501
- panel: panel$1
3502
- }
3503
- } = accordion;
3504
3530
  const StyledAccordionPanel = styled__default['default'].div.attrs(({
3505
3531
  headerId
3506
3532
  }) => ({
@@ -3509,8 +3535,19 @@ const StyledAccordionPanel = styled__default['default'].div.attrs(({
3509
3535
  })).withConfig({
3510
3536
  displayName: "AccordionPanel__StyledAccordionPanel",
3511
3537
  componentId: "sc-suplv4-0"
3512
- })(["", " ", " background:", ";min-height:96px;box-sizing:border-box;"], bordersTemplate(accordion.border), spacingsTemplate(panel$1.spacings), header$1.background);
3513
- const AccordionPanel = /*#__PURE__*/React.forwardRef(function AccordionPanel({
3538
+ })(({
3539
+ theme
3540
+ }) => {
3541
+ const {
3542
+ entities: {
3543
+ header,
3544
+ panel
3545
+ },
3546
+ border
3547
+ } = theme;
3548
+ return styled.css(["", " ", " background:", ";min-height:96px;box-sizing:border-box;"], bordersTemplate(border), spacingsTemplate(panel.spacings), header.background);
3549
+ });
3550
+ const AccordionPanel = /*#__PURE__*/react.forwardRef(function AccordionPanel({
3514
3551
  id,
3515
3552
  headerId,
3516
3553
  hidden,
@@ -3537,7 +3574,7 @@ Accordion.Header.displayName = 'Accordion.Header';
3537
3574
  Accordion.HeaderTitle.displayName = 'Accordion.HeaderTitle';
3538
3575
  Accordion.Panel.displayName = 'Accordion.Panel';
3539
3576
 
3540
- const TabsContext = /*#__PURE__*/React.createContext({
3577
+ const TabsContext = /*#__PURE__*/react.createContext({
3541
3578
  variant: 'minWidth',
3542
3579
  handleChange: () => null,
3543
3580
  activeTab: 0,
@@ -3547,55 +3584,191 @@ const TabsContext = /*#__PURE__*/React.createContext({
3547
3584
  const TabsProvider = TabsContext.Provider;
3548
3585
  TabsContext.Consumer;
3549
3586
 
3550
- const Tabs$1 = /*#__PURE__*/React.forwardRef(function Tabs({
3551
- activeTab = 0,
3552
- onChange,
3553
- onBlur,
3554
- onFocus,
3555
- variant = 'minWidth',
3556
- id,
3557
- ...props
3558
- }, ref) {
3559
- const tabsId = useId(id, 'tabs');
3560
- const [tabsFocused, setTabsFocused] = React.useState(false);
3561
- let blurTimer;
3562
-
3563
- const handleBlur = e => {
3564
- blurTimer = setTimeout(() => {
3565
- if (tabsFocused) {
3566
- setTabsFocused(false);
3587
+ const {
3588
+ colors: {
3589
+ text: {
3590
+ static_icons__tertiary: {
3591
+ rgba: defaultColor
3592
+ }
3593
+ },
3594
+ ui: {
3595
+ background__medium: {
3596
+ rgba: defaultBorderColor
3597
+ }
3598
+ },
3599
+ interactive: {
3600
+ focus: {
3601
+ rgba: focusOutlineColor$5
3602
+ },
3603
+ primary__hover_alt: {
3604
+ rgba: hoverBackgroundColor
3605
+ },
3606
+ primary__resting: {
3607
+ rgba: activeColor$2
3608
+ },
3609
+ primary__hover: {
3610
+ rgba: activeHoverColor
3567
3611
  }
3568
- }, 0);
3569
- onBlur && onBlur(e);
3570
- };
3571
-
3572
- const handleFocus = e => {
3573
- if (e.target.getAttribute('role') !== 'tab') {
3574
- return;
3575
3612
  }
3576
-
3577
- clearTimeout(blurTimer);
3578
-
3579
- if (!tabsFocused) {
3580
- setTabsFocused(true);
3613
+ },
3614
+ clickbounds: {
3615
+ default__base: clickboundsHeight
3616
+ },
3617
+ spacings: {
3618
+ comfortable: {
3619
+ medium: spacingMedium$7
3581
3620
  }
3582
-
3583
- onFocus && onFocus(e);
3584
- };
3585
-
3586
- return /*#__PURE__*/jsxRuntime.jsx(TabsProvider, {
3587
- value: {
3588
- activeTab,
3589
- handleChange: onChange,
3590
- tabsId,
3591
- variant,
3592
- tabsFocused
3621
+ }
3622
+ } = edsTokens.tokens;
3623
+ const token$1 = {
3624
+ entities: {
3625
+ panel: {
3626
+ spacings: {
3627
+ top: spacingMedium$7,
3628
+ bottom: spacingMedium$7
3629
+ },
3630
+ states: {
3631
+ focus: {
3632
+ outline: {
3633
+ type: 'outline',
3634
+ width: '1px',
3635
+ style: 'dashed',
3636
+ color: focusOutlineColor$5
3637
+ }
3638
+ }
3639
+ }
3593
3640
  },
3594
- children: /*#__PURE__*/jsxRuntime.jsx("div", {
3595
- ref: ref,
3596
- ...props,
3597
- onBlur: handleBlur,
3598
- onFocus: handleFocus
3641
+ tab: {
3642
+ background: 'transparent',
3643
+ height: clickboundsHeight,
3644
+ clickbound: {
3645
+ height: clickboundsHeight,
3646
+ offset: {
3647
+ top: '2px'
3648
+ }
3649
+ },
3650
+ spacings: {
3651
+ left: spacingMedium$7,
3652
+ right: spacingMedium$7
3653
+ },
3654
+ typography: {
3655
+ color: defaultColor,
3656
+ textAlign: 'center'
3657
+ },
3658
+ border: {
3659
+ type: 'bordergroup',
3660
+ bottom: {
3661
+ color: defaultBorderColor,
3662
+ style: 'solid',
3663
+ width: '2px'
3664
+ }
3665
+ },
3666
+ states: {
3667
+ disabled: {
3668
+ border: {
3669
+ type: 'border',
3670
+ width: 0,
3671
+ color: 'transparent',
3672
+ style: 'solid'
3673
+ }
3674
+ },
3675
+ hover: {
3676
+ background: hoverBackgroundColor
3677
+ },
3678
+ focus: {
3679
+ outline: {
3680
+ type: 'outline',
3681
+ width: '1px',
3682
+ style: 'dashed',
3683
+ color: focusOutlineColor$5
3684
+ }
3685
+ },
3686
+ active: {
3687
+ typography: {
3688
+ color: activeColor$2
3689
+ },
3690
+ border: {
3691
+ type: 'bordergroup',
3692
+ bottom: {
3693
+ color: activeColor$2,
3694
+ style: 'solid',
3695
+ width: '2px'
3696
+ }
3697
+ },
3698
+ states: {
3699
+ hover: {
3700
+ typography: {
3701
+ color: activeHoverColor
3702
+ }
3703
+ }
3704
+ }
3705
+ }
3706
+ }
3707
+ }
3708
+ },
3709
+ modes: {
3710
+ compact: {}
3711
+ }
3712
+ };
3713
+
3714
+ const Tabs$1 = /*#__PURE__*/react.forwardRef(function Tabs({
3715
+ activeTab = 0,
3716
+ onChange,
3717
+ onBlur,
3718
+ onFocus,
3719
+ variant = 'minWidth',
3720
+ id,
3721
+ ...props
3722
+ }, ref) {
3723
+ const tabsId = useId(id, 'tabs');
3724
+ const [tabsFocused, setTabsFocused] = react.useState(false);
3725
+ let blurTimer;
3726
+
3727
+ const handleBlur = e => {
3728
+ blurTimer = setTimeout(() => {
3729
+ if (tabsFocused) {
3730
+ setTabsFocused(false);
3731
+ }
3732
+ }, 0);
3733
+ onBlur && onBlur(e);
3734
+ };
3735
+
3736
+ const handleFocus = e => {
3737
+ if (e.target.getAttribute('role') !== 'tab') {
3738
+ return;
3739
+ }
3740
+
3741
+ clearTimeout(blurTimer);
3742
+
3743
+ if (!tabsFocused) {
3744
+ setTabsFocused(true);
3745
+ }
3746
+
3747
+ onFocus && onFocus(e);
3748
+ };
3749
+
3750
+ const {
3751
+ density
3752
+ } = useEds();
3753
+ const token = useToken({
3754
+ density
3755
+ }, token$1);
3756
+ return /*#__PURE__*/jsxRuntime.jsx(styled.ThemeProvider, {
3757
+ theme: token,
3758
+ children: /*#__PURE__*/jsxRuntime.jsx(TabsProvider, {
3759
+ value: {
3760
+ activeTab,
3761
+ handleChange: onChange,
3762
+ tabsId,
3763
+ variant,
3764
+ tabsFocused
3765
+ },
3766
+ children: /*#__PURE__*/jsxRuntime.jsx("div", {
3767
+ ref: ref,
3768
+ ...props,
3769
+ onBlur: handleBlur,
3770
+ onFocus: handleFocus
3771
+ })
3599
3772
  })
3600
3773
  });
3601
3774
  });
@@ -3612,7 +3785,7 @@ const StyledTabList = styled__default['default'].div.attrs(() => ({
3612
3785
  })(["display:grid;grid-auto-flow:column;grid-auto-columns:", ";"], ({
3613
3786
  variant
3614
3787
  }) => variants$1[variant]);
3615
- const TabList = /*#__PURE__*/React.forwardRef(function TabsList({
3788
+ const TabList = /*#__PURE__*/react.forwardRef(function TabsList({
3616
3789
  children = [],
3617
3790
  ...props
3618
3791
  }, ref) {
@@ -3622,20 +3795,20 @@ const TabList = /*#__PURE__*/React.forwardRef(function TabsList({
3622
3795
  tabsId,
3623
3796
  variant = 'minWidth',
3624
3797
  tabsFocused
3625
- } = React.useContext(TabsContext);
3626
- const currentTab = React.useRef(activeTab);
3627
- const selectedTabRef = React.useCallback(node => {
3798
+ } = react.useContext(TabsContext);
3799
+ const currentTab = react.useRef(activeTab);
3800
+ const selectedTabRef = react.useCallback(node => {
3628
3801
  if (node !== null && tabsFocused) {
3629
3802
  node.focus();
3630
3803
  }
3631
3804
  }, [tabsFocused]);
3632
- React.useEffect(() => {
3805
+ react.useEffect(() => {
3633
3806
  currentTab.current = activeTab;
3634
3807
  }, [activeTab]);
3635
- const Tabs = React.Children.map(children, (child, index) => {
3808
+ const Tabs = react.Children.map(children, (child, index) => {
3636
3809
  const tabRef = index === activeTab ? // eslint-disable-next-line react-hooks/rules-of-hooks
3637
3810
  useCombinedRefs(child.ref, selectedTabRef) : child.ref;
3638
- return /*#__PURE__*/React.cloneElement(child, {
3811
+ return /*#__PURE__*/react.cloneElement(child, {
3639
3812
  id: "".concat(tabsId, "-tab-").concat(index + 1),
3640
3813
  'aria-controls': "".concat(tabsId, "-panel-").concat(index + 1),
3641
3814
  active: index === activeTab,
@@ -3683,135 +3856,6 @@ const TabList = /*#__PURE__*/React.forwardRef(function TabsList({
3683
3856
  });
3684
3857
  });
3685
3858
 
3686
- const {
3687
- colors: {
3688
- text: {
3689
- static_icons__tertiary: {
3690
- rgba: defaultColor
3691
- }
3692
- },
3693
- ui: {
3694
- background__medium: {
3695
- rgba: defaultBorderColor
3696
- }
3697
- },
3698
- interactive: {
3699
- focus: {
3700
- rgba: focusOutlineColor$5
3701
- },
3702
- primary__hover_alt: {
3703
- rgba: hoverBackgroundColor
3704
- },
3705
- primary__resting: {
3706
- rgba: activeColor$2
3707
- },
3708
- primary__hover: {
3709
- rgba: activeHoverColor
3710
- }
3711
- }
3712
- },
3713
- clickbounds: {
3714
- default__base: clickboundsHeight
3715
- },
3716
- spacings: {
3717
- comfortable: {
3718
- medium: spacingMedium$7
3719
- }
3720
- }
3721
- } = edsTokens.tokens;
3722
- const token$2 = {
3723
- entities: {
3724
- panel: {
3725
- spacings: {
3726
- top: spacingMedium$7,
3727
- bottom: spacingMedium$7
3728
- },
3729
- states: {
3730
- focus: {
3731
- outline: {
3732
- type: 'outline',
3733
- width: '1px',
3734
- style: 'dashed',
3735
- color: focusOutlineColor$5
3736
- }
3737
- }
3738
- }
3739
- },
3740
- tab: {
3741
- background: 'transparent',
3742
- height: clickboundsHeight,
3743
- clickbound: {
3744
- height: clickboundsHeight,
3745
- offset: {
3746
- top: '2px'
3747
- }
3748
- },
3749
- spacings: {
3750
- left: spacingMedium$7,
3751
- right: spacingMedium$7
3752
- },
3753
- typography: {
3754
- color: defaultColor,
3755
- textAlign: 'center'
3756
- },
3757
- border: {
3758
- type: 'bordergroup',
3759
- bottom: {
3760
- color: defaultBorderColor,
3761
- style: 'solid',
3762
- width: '2px'
3763
- }
3764
- },
3765
- states: {
3766
- disabled: {
3767
- border: {
3768
- type: 'border',
3769
- width: 0,
3770
- color: 'transparent',
3771
- style: 'solid'
3772
- }
3773
- },
3774
- hover: {
3775
- background: hoverBackgroundColor
3776
- },
3777
- focus: {
3778
- outline: {
3779
- type: 'outline',
3780
- width: '1px',
3781
- style: 'dashed',
3782
- color: focusOutlineColor$5
3783
- }
3784
- },
3785
- active: {
3786
- typography: {
3787
- color: activeColor$2
3788
- },
3789
- border: {
3790
- type: 'bordergroup',
3791
- bottom: {
3792
- color: activeColor$2,
3793
- style: 'solid',
3794
- width: '2px'
3795
- }
3796
- },
3797
- states: {
3798
- hover: {
3799
- typography: {
3800
- color: activeHoverColor
3801
- }
3802
- }
3803
- }
3804
- }
3805
- }
3806
- }
3807
- }
3808
- };
3809
-
3810
- const {
3811
- entities: {
3812
- tab
3813
- }
3814
- } = token$2;
3815
3859
  const StyledTab = styled__default['default'].button.attrs(({
3816
3860
  active = false,
3817
3861
  disabled = false
@@ -3824,33 +3868,34 @@ const StyledTab = styled__default['default'].button.attrs(({
3824
3868
  })).withConfig({
3825
3869
  displayName: "Tab__StyledTab",
3826
3870
  componentId: "sc-scjkct-0"
3827
- })(["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{", "}&:focus-visible{", "}&::-moz-focus-inner{border:0;}@media (hover:hover) and (pointer:fine){&[data-hover],&:hover{color:", ";", "}}", " ", ""], tab.height, spacingsTemplate(tab.spacings), ({
3828
- active
3829
- }) => active ? tab.states.active.typography.color : tab.typography.color, tab.background, outlineTemplate(tab.states.focus.outline), outlineTemplate(tab.states.focus.outline), ({
3830
- active
3831
- }) => active ? tab.states.active.states.hover.typography.color : tab.typography.color, ({
3832
- disabled
3833
- }) => disabled ? styled.css(["background:", ";cursor:not-allowed;"], tab.states.disabled.background) : styled.css(["background:", ";cursor:pointer;"], tab.states.hover.background), ({
3871
+ })(({
3872
+ theme,
3873
+ active,
3834
3874
  disabled
3835
- }) => disabled ? bordersTemplate(tab.states.disabled.border) : bordersTemplate(tab.border), ({
3836
- active
3837
- }) => active && bordersTemplate(tab.states.active.border));
3838
- const Tab = /*#__PURE__*/React.forwardRef(function Tab(props, ref) {
3875
+ }) => {
3876
+ const {
3877
+ entities: {
3878
+ tab
3879
+ }
3880
+ } = theme;
3881
+ return styled.css(["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{", "}&:focus-visible{", "}&::-moz-focus-inner{border:0;}@media (hover:hover) and (pointer:fine){&[data-hover],&:hover{color:", ";", "}}", " ", ""], tab.height, spacingsTemplate(tab.spacings), active ? tab.states.active.typography.color : tab.typography.color, tab.background, outlineTemplate(tab.states.focus.outline), outlineTemplate(tab.states.focus.outline), active ? tab.states.active.states.hover.typography.color : tab.typography.color, disabled ? styled.css(["background:", ";cursor:not-allowed;"], tab.states.disabled.background) : styled.css(["background:", ";cursor:pointer;"], tab.states.hover.background), disabled ? bordersTemplate(tab.states.disabled.border) : bordersTemplate(tab.border), active && bordersTemplate(tab.states.active.border));
3882
+ });
3883
+ const Tab = /*#__PURE__*/react.forwardRef(function Tab(props, ref) {
3839
3884
  return /*#__PURE__*/jsxRuntime.jsx(StyledTab, {
3840
3885
  ref: ref,
3841
3886
  ...props
3842
3887
  });
3843
3888
  });
3844
3889
 
3845
- const TabPanels = /*#__PURE__*/React.forwardRef(function TabPanels({
3890
+ const TabPanels = /*#__PURE__*/react.forwardRef(function TabPanels({
3846
3891
  children,
3847
3892
  ...props
3848
3893
  }, ref) {
3849
3894
  const {
3850
3895
  activeTab,
3851
3896
  tabsId
3852
- } = React.useContext(TabsContext);
3853
- const Panels = React.Children.map(children, (child, index) => /*#__PURE__*/React.cloneElement(child, {
3897
+ } = react.useContext(TabsContext);
3898
+ const Panels = react.Children.map(children, (child, index) => /*#__PURE__*/react.cloneElement(child, {
3854
3899
  id: "".concat(tabsId, "-panel-").concat(index + 1),
3855
3900
  'aria-labelledby': "".concat(tabsId, "-tab-").concat(index + 1),
3856
3901
  hidden: activeTab !== index
@@ -3862,19 +3907,23 @@ const TabPanels = /*#__PURE__*/React.forwardRef(function TabPanels({
3862
3907
  });
3863
3908
  });
3864
3909
 
3865
- const {
3866
- entities: {
3867
- panel
3868
- }
3869
- } = token$2;
3870
3910
  const StyledTabPanel = styled__default['default'].div.attrs(() => ({
3871
3911
  tabIndex: 0,
3872
3912
  role: 'tabpanel'
3873
3913
  })).withConfig({
3874
3914
  displayName: "TabPanel__StyledTabPanel",
3875
3915
  componentId: "sc-e8v1d4-0"
3876
- })(["", " &:focus{outline:none;}&[data-focus-visible-added]:focus{", "}&:focus-visible{", "}"], spacingsTemplate(panel.spacings), outlineTemplate(panel.states.focus.outline), outlineTemplate(panel.states.focus.outline));
3877
- const TabPanel = /*#__PURE__*/React.forwardRef(function TabPanel({ ...props
3916
+ })(({
3917
+ theme
3918
+ }) => {
3919
+ const {
3920
+ entities: {
3921
+ panel
3922
+ }
3923
+ } = theme;
3924
+ return styled.css(["", " &:focus{outline:none;}&[data-focus-visible-added]:focus{", "}&:focus-visible{", "}"], spacingsTemplate(panel.spacings), outlineTemplate(panel.states.focus.outline), outlineTemplate(panel.states.focus.outline));
3925
+ });
3926
+ const TabPanel = /*#__PURE__*/react.forwardRef(function TabPanel({ ...props
3878
3927
  }, ref) {
3879
3928
  return /*#__PURE__*/jsxRuntime.jsx(StyledTabPanel, {
3880
3929
  ref: ref,
@@ -3897,7 +3946,7 @@ const {
3897
3946
  colors: {
3898
3947
  ui: {
3899
3948
  background__default: {
3900
- rgba: background$e
3949
+ rgba: background$c
3901
3950
  },
3902
3951
  background__info: {
3903
3952
  rgba: backgroundInfo
@@ -3922,7 +3971,7 @@ const {
3922
3971
  }
3923
3972
  } = edsTokens.tokens;
3924
3973
  const primary$4 = {
3925
- background: background$e,
3974
+ background: background$c,
3926
3975
  border: {
3927
3976
  type: 'border',
3928
3977
  radius: borderRadius$7
@@ -3963,7 +4012,7 @@ const StyledCard = styled__default['default'].div.withConfig({
3963
4012
  }) => background, ({
3964
4013
  cursor
3965
4014
  }) => cursor, bordersTemplate(primary$3.border));
3966
- const Card$1 = /*#__PURE__*/React.forwardRef(function Card({
4015
+ const Card$1 = /*#__PURE__*/react.forwardRef(function Card({
3967
4016
  children,
3968
4017
  variant = 'default',
3969
4018
  onClick,
@@ -3985,15 +4034,15 @@ const Card$1 = /*#__PURE__*/React.forwardRef(function Card({
3985
4034
  });
3986
4035
 
3987
4036
  const {
3988
- spacings: spacings$8
4037
+ spacings: spacings$6
3989
4038
  } = primary$4;
3990
4039
  const StyledCardActions = styled__default['default'].div.withConfig({
3991
4040
  displayName: "CardActions__StyledCardActions",
3992
4041
  componentId: "sc-1d5vskp-0"
3993
4042
  })(["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:", ";}"], ({
3994
4043
  justifyContent
3995
- }) => justifyContent, spacings$8.right, spacings$8.left, spacings$8.top, spacings$8.bottom);
3996
- const CardActions = /*#__PURE__*/React.forwardRef(function CardActions({
4044
+ }) => justifyContent, spacings$6.right, spacings$6.left, spacings$6.top, spacings$6.bottom);
4045
+ const CardActions = /*#__PURE__*/react.forwardRef(function CardActions({
3997
4046
  children,
3998
4047
  alignRight = false,
3999
4048
  meta = '',
@@ -4014,13 +4063,13 @@ const CardActions = /*#__PURE__*/React.forwardRef(function CardActions({
4014
4063
  });
4015
4064
 
4016
4065
  const {
4017
- spacings: spacings$7
4066
+ spacings: spacings$5
4018
4067
  } = primary$4;
4019
4068
  const StyledCardContent = styled__default['default'].div.withConfig({
4020
4069
  displayName: "CardContent__StyledCardContent",
4021
4070
  componentId: "sc-esm4ym-0"
4022
- })(["display:grid;padding:0 ", " 0 ", ";:last-child{padding-bottom:", ";}"], spacings$7.right, spacings$7.left, spacings$7.bottom);
4023
- const CardContent = /*#__PURE__*/React.forwardRef(function CardContent({
4071
+ })(["display:grid;padding:0 ", " 0 ", ";:last-child{padding-bottom:", ";}"], spacings$5.right, spacings$5.left, spacings$5.bottom);
4072
+ const CardContent = /*#__PURE__*/react.forwardRef(function CardContent({
4024
4073
  children,
4025
4074
  ...props
4026
4075
  }, ref) {
@@ -4032,16 +4081,16 @@ const CardContent = /*#__PURE__*/React.forwardRef(function CardContent({
4032
4081
  });
4033
4082
 
4034
4083
  const {
4035
- spacings: spacings$6,
4036
- border: border$5
4084
+ spacings: spacings$4,
4085
+ border: border$3
4037
4086
  } = primary$4;
4038
4087
  const StyledCardMedia = styled__default['default'].div.withConfig({
4039
4088
  displayName: "CardMedia__StyledCardMedia",
4040
4089
  componentId: "sc-kr8q9c-0"
4041
4090
  })(["display:flex;width:auto;", ""], ({
4042
4091
  fullWidth
4043
- }) => fullWidth ? styled.css(["> *{width:100%;}&:first-child{img{border-top-right-radius:", ";border-top-left-radius:", ";}}&:last-child{img{border-bottom-right-radius:", ";border-bottom-left-radius:", ";}}"], border$5.type === 'border' && border$5.radius, border$5.type === 'border' && border$5.radius, border$5.type === 'border' && border$5.radius, border$5.type === 'border' && border$5.radius) : styled.css(["padding:0 ", " 0 ", ";&:first-child{padding:", " ", " 0 ", ";}&:last-child{padding:0 ", " ", " ", ";}> *{width:100%;}"], spacings$6.right, spacings$6.left, spacings$6.top, spacings$6.right, spacings$6.left, spacings$6.right, spacings$6.bottom, spacings$6.left));
4044
- const CardMedia = /*#__PURE__*/React.forwardRef(function CardMedia({
4092
+ }) => fullWidth ? styled.css(["> *{width:100%;}&:first-child{img{border-top-right-radius:", ";border-top-left-radius:", ";}}&:last-child{img{border-bottom-right-radius:", ";border-bottom-left-radius:", ";}}"], border$3.type === 'border' && border$3.radius, border$3.type === 'border' && border$3.radius, border$3.type === 'border' && border$3.radius, border$3.type === 'border' && border$3.radius) : styled.css(["padding:0 ", " 0 ", ";&:first-child{padding:", " ", " 0 ", ";}&:last-child{padding:0 ", " ", " ", ";}> *{width:100%;}"], spacings$4.right, spacings$4.left, spacings$4.top, spacings$4.right, spacings$4.left, spacings$4.right, spacings$4.bottom, spacings$4.left));
4093
+ const CardMedia = /*#__PURE__*/react.forwardRef(function CardMedia({
4045
4094
  children,
4046
4095
  fullWidth = false,
4047
4096
  ...rest
@@ -4056,13 +4105,13 @@ const CardMedia = /*#__PURE__*/React.forwardRef(function CardMedia({
4056
4105
  });
4057
4106
 
4058
4107
  const {
4059
- spacings: spacings$5
4108
+ spacings: spacings$3
4060
4109
  } = primary$4;
4061
4110
  const StyledCardHeader = styled__default['default'].div.withConfig({
4062
4111
  displayName: "CardHeader__StyledCardHeader",
4063
4112
  componentId: "sc-15k8edh-0"
4064
- })(["display:flex;justify-content:space-between;align-items:center;padding:0 ", " 0 ", ";>:not(:first-child){margin-left:", ";}:first-child{padding-top:", ";}:last-child{padding-bottom:", ";}"], spacings$5.right, spacings$5.left, spacings$5.left, spacings$5.top, spacings$5.bottom);
4065
- const CardHeader = /*#__PURE__*/React.forwardRef(function CardHeader({
4113
+ })(["display:flex;justify-content:space-between;align-items:center;padding:0 ", " 0 ", ";>:not(:first-child){margin-left:", ";}:first-child{padding-top:", ";}:last-child{padding-bottom:", ";}"], spacings$3.right, spacings$3.left, spacings$3.left, spacings$3.top, spacings$3.bottom);
4114
+ const CardHeader = /*#__PURE__*/react.forwardRef(function CardHeader({
4066
4115
  children,
4067
4116
  ...rest
4068
4117
  }, ref) {
@@ -4078,7 +4127,7 @@ const StyledCardHeaderTitle = styled__default['default'].div.withConfig({
4078
4127
  displayName: "CardHeaderTitle__StyledCardHeaderTitle",
4079
4128
  componentId: "sc-11m80r3-0"
4080
4129
  })(["display:grid;flex-grow:2;grid-auto-columns:auto;"]);
4081
- const CardHeaderTitle = /*#__PURE__*/React.forwardRef(function CardHeaderTitle({
4130
+ const CardHeaderTitle = /*#__PURE__*/react.forwardRef(function CardHeaderTitle({
4082
4131
  children,
4083
4132
  ...rest
4084
4133
  }, ref) {
@@ -4111,7 +4160,7 @@ const {
4111
4160
  navigation
4112
4161
  }
4113
4162
  } = edsTokens.tokens;
4114
- const token$1 = {
4163
+ const topbar = {
4115
4164
  height: '64px',
4116
4165
  background: colors$2.ui.background__default.rgba,
4117
4166
  typography: navigation.menu_title,
@@ -4128,27 +4177,36 @@ const token$1 = {
4128
4177
  color: colors$2.ui.background__light.rgba,
4129
4178
  width: '2px'
4130
4179
  }
4180
+ },
4181
+ modes: {
4182
+ compact: {}
4131
4183
  }
4132
4184
  };
4133
4185
 
4134
- const {
4135
- background: background$d,
4136
- height: height$3,
4137
- spacings: spacings$4,
4138
- border: border$4,
4139
- typography: typography$b
4140
- } = token$1;
4141
4186
  const StyledTopBar = styled__default['default'].header.withConfig({
4142
4187
  displayName: "TopBar__StyledTopBar",
4143
4188
  componentId: "sc-1yj236q-0"
4144
- })(["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));
4145
- const TopBar$1 = /*#__PURE__*/React.forwardRef(function TopBar({
4189
+ })(({
4190
+ theme
4191
+ }) => {
4192
+ return styled.css(["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;", " ", ";", ""], theme.height, theme.background, theme.spacings.left, bordersTemplate(theme.border), spacingsTemplate(theme.spacings), typographyTemplate(theme.typography));
4193
+ });
4194
+ const TopBar$1 = /*#__PURE__*/react.forwardRef(function TopBar({
4146
4195
  children,
4147
4196
  ...props
4148
4197
  }, ref) {
4149
- return /*#__PURE__*/jsxRuntime.jsx(StyledTopBar, { ...props,
4150
- ref: ref,
4151
- children: children
4198
+ const {
4199
+ density
4200
+ } = useEds();
4201
+ const token = useToken({
4202
+ density
4203
+ }, topbar);
4204
+ return /*#__PURE__*/jsxRuntime.jsx(styled.ThemeProvider, {
4205
+ theme: token,
4206
+ children: /*#__PURE__*/jsxRuntime.jsx(StyledTopBar, { ...props,
4207
+ ref: ref,
4208
+ children: children
4209
+ })
4152
4210
  });
4153
4211
  }); // TopBar.displayName = 'eds-topbar'
4154
4212
 
@@ -4156,7 +4214,7 @@ const StyledActions$1 = styled__default['default'].div.withConfig({
4156
4214
  displayName: "Actions__StyledActions",
4157
4215
  componentId: "sc-1251ang-0"
4158
4216
  })(["grid-area:right;text-align:right;align-items:center;display:flex;"]);
4159
- const Actions$1 = /*#__PURE__*/React.forwardRef(function Actions({
4217
+ const Actions$1 = /*#__PURE__*/react.forwardRef(function Actions({
4160
4218
  children,
4161
4219
  ...props
4162
4220
  }, ref) {
@@ -4171,7 +4229,7 @@ const StyledHeader = styled__default['default'].div.withConfig({
4171
4229
  displayName: "Header__StyledHeader",
4172
4230
  componentId: "sc-1fpllve-0"
4173
4231
  })(["grid-area:left;display:grid;grid-template-columns:auto auto;grid-gap:24px;align-items:center;"]);
4174
- const Header$2 = /*#__PURE__*/React.forwardRef(function Header({
4232
+ const Header$2 = /*#__PURE__*/react.forwardRef(function Header({
4175
4233
  children,
4176
4234
  ...props
4177
4235
  }, ref) {
@@ -4186,7 +4244,7 @@ const StyledCustomContent$1 = styled__default['default'].div.withConfig({
4186
4244
  displayName: "CustomContent__StyledCustomContent",
4187
4245
  componentId: "sc-d0e83a-0"
4188
4246
  })(["grid-area:center;"]);
4189
- const CustomContent$1 = /*#__PURE__*/React.forwardRef(function CustomContent({
4247
+ const CustomContent$1 = /*#__PURE__*/react.forwardRef(function CustomContent({
4190
4248
  children,
4191
4249
  ...props
4192
4250
  }, ref) {
@@ -4205,6 +4263,40 @@ TopBar.Actions.displayName = 'Topbar.Actions';
4205
4263
  TopBar.Header.displayName = 'Topbar.Header';
4206
4264
  TopBar.CustomContent.displayName = 'Topbar.CustomContent';
4207
4265
 
4266
+ const {
4267
+ elevation,
4268
+ colors: {
4269
+ ui: {
4270
+ background__default: {
4271
+ rgba: background$b
4272
+ }
4273
+ }
4274
+ }
4275
+ } = edsTokens.tokens;
4276
+ const paper = {
4277
+ maxWidth: 'calc(100% - 32px)',
4278
+ minWidth: '96px',
4279
+ background: background$b
4280
+ };
4281
+
4282
+ const StyledPaper = styled__default['default'].div.withConfig({
4283
+ displayName: "Paper__StyledPaper",
4284
+ componentId: "sc-6ncnv9-0"
4285
+ })(["min-width:", ";max-width:", ";background:", ";box-shadow:", ";"], paper.minWidth, paper.maxWidth, paper.background, ({
4286
+ elevation
4287
+ }) => elevation);
4288
+ const Paper = /*#__PURE__*/react.forwardRef(function Paper({
4289
+ elevation: elevation$1,
4290
+ ...rest
4291
+ }, ref) {
4292
+ const props = { ...rest,
4293
+ elevation: elevation[elevation$1] || 'none'
4294
+ };
4295
+ return /*#__PURE__*/jsxRuntime.jsx(StyledPaper, { ...props,
4296
+ ref: ref
4297
+ });
4298
+ });
4299
+
4208
4300
  const {
4209
4301
  spacings: {
4210
4302
  comfortable: {
@@ -4222,7 +4314,7 @@ const {
4222
4314
  colors: {
4223
4315
  ui: {
4224
4316
  background__default: {
4225
- rgba: background$c
4317
+ rgba: background$a
4226
4318
  }
4227
4319
  }
4228
4320
  },
@@ -4234,7 +4326,7 @@ const {
4234
4326
  } = edsTokens.tokens;
4235
4327
  const dialog = {
4236
4328
  width: '252px',
4237
- background: background$c,
4329
+ background: background$a,
4238
4330
  typography: accordion_header,
4239
4331
  border: {
4240
4332
  type: 'border',
@@ -4272,72 +4364,57 @@ const dialog = {
4272
4364
  actions: {
4273
4365
  minHeight: '48px'
4274
4366
  }
4367
+ },
4368
+ modes: {
4369
+ compact: {}
4275
4370
  }
4276
4371
  };
4277
4372
 
4278
- const {
4279
- elevation,
4280
- colors: {
4281
- ui: {
4282
- background__default: {
4283
- rgba: background$b
4284
- }
4285
- }
4286
- }
4287
- } = edsTokens.tokens;
4288
- const paper = {
4289
- maxWidth: 'calc(100% - 32px)',
4290
- minWidth: '96px',
4291
- background: background$b
4292
- };
4293
-
4294
- const StyledPaper = styled__default['default'].div.withConfig({
4295
- displayName: "Paper__StyledPaper",
4296
- componentId: "sc-6ncnv9-0"
4297
- })(["min-width:", ";max-width:", ";background:", ";box-shadow:", ";"], paper.minWidth, paper.maxWidth, paper.background, ({
4298
- elevation
4299
- }) => elevation);
4300
- const Paper = /*#__PURE__*/React.forwardRef(function Paper({
4301
- elevation: elevation$1,
4302
- ...rest
4303
- }, ref) {
4304
- const props = { ...rest,
4305
- elevation: elevation[elevation$1] || 'none'
4306
- };
4307
- return /*#__PURE__*/jsxRuntime.jsx(StyledPaper, { ...props,
4308
- ref: ref
4309
- });
4310
- });
4311
-
4312
- const StyledDialog = styled__default['default'](Paper).attrs(() => ({
4373
+ const StyledDialog = styled__default['default'](Paper).attrs({
4313
4374
  tabIndex: 0,
4314
4375
  role: 'dialog',
4315
4376
  'aria-labelledby': 'eds-dialog-title',
4316
4377
  'aria-describedby': 'eds-dialog-customcontent',
4317
4378
  'aria-modal': true
4318
- })).withConfig({
4379
+ }).withConfig({
4319
4380
  displayName: "Dialog__StyledDialog",
4320
4381
  componentId: "sc-1mewo3f-0"
4321
- })(["width:", ";background:", ";display:grid;", " ", " ", ""], dialog.width, dialog.background, typographyTemplate(dialog.typography), spacingsTemplate(dialog.spacings), bordersTemplate(dialog.border));
4322
- const Dialog$1 = /*#__PURE__*/React.forwardRef(function Dialog({
4382
+ })(({
4383
+ theme
4384
+ }) => {
4385
+ return styled.css(["width:", ";background:", ";display:grid;", " ", " ", ""], theme.width, theme.background, typographyTemplate(theme.typography), spacingsTemplate(theme.spacings), bordersTemplate(theme.border));
4386
+ });
4387
+ const Dialog$1 = /*#__PURE__*/react.forwardRef(function Dialog({
4323
4388
  children,
4324
4389
  ...props
4325
4390
  }, ref) {
4326
- return /*#__PURE__*/jsxRuntime.jsx(StyledDialog, {
4327
- elevation: "above_scrim",
4328
- ...props,
4329
- ref: ref,
4330
- children: children
4391
+ const {
4392
+ density
4393
+ } = useEds();
4394
+ const token = useToken({
4395
+ density
4396
+ }, dialog);
4397
+ return /*#__PURE__*/jsxRuntime.jsx(styled.ThemeProvider, {
4398
+ theme: token,
4399
+ children: /*#__PURE__*/jsxRuntime.jsx(StyledDialog, {
4400
+ elevation: "above_scrim",
4401
+ ...props,
4402
+ ref: ref,
4403
+ children: children
4404
+ })
4331
4405
  });
4332
4406
  }); // Dialog.displayName = 'EdsDialog'
4333
4407
 
4334
4408
  const StyledActions = styled__default['default'].div.withConfig({
4335
4409
  displayName: "Actions__StyledActions",
4336
4410
  componentId: "sc-1qfwg1m-0"
4337
- })(["min-height:", ";", " align-self:end;justify-self:start;", ""], dialog.entities.actions.minHeight, spacingsTemplate(dialog.entities.children.spacings), ({
4411
+ })(({
4412
+ theme,
4338
4413
  children
4339
- }) => !children && styled.css(["min-height:initial;height:'8px';"]));
4340
- const Actions = /*#__PURE__*/React.forwardRef(function Actions({
4414
+ }) => {
4415
+ return styled.css(["min-height:", ";", " align-self:end;justify-self:start;", ""], theme.entities.actions.minHeight, spacingsTemplate(theme.entities.children.spacings), !children && styled.css(["min-height:initial;height:'8px';"]));
4416
+ });
4417
+ const Actions = /*#__PURE__*/react.forwardRef(function Actions({
4341
4418
  children,
4342
4419
  ...props
4343
4420
  }, ref) {
@@ -4351,14 +4428,21 @@ const Actions = /*#__PURE__*/React.forwardRef(function Actions({
4351
4428
  const StyledTitle = styled__default['default'].div.withConfig({
4352
4429
  displayName: "Title__StyledTitle",
4353
4430
  componentId: "sc-i4qfl5-0"
4354
- })(["", " min-height:", ";align-self:end;justify-self:start;", ";", ""], typographyTemplate(dialog.entities.title.typography), dialog.entities.title.minHeight, spacingsTemplate(dialog.entities.children.spacings), ({
4431
+ })(({
4432
+ theme,
4355
4433
  children
4356
- }) => !children && styled.css(["min-height:initial;height:'8px';"]));
4434
+ }) => {
4435
+ return styled.css(["", " min-height:", ";align-self:end;justify-self:start;", ";", ""], typographyTemplate(theme.entities.title.typography), theme.entities.title.minHeight, spacingsTemplate(theme.entities.children.spacings), !children && styled.css(["min-height:initial;height:'8px';"]));
4436
+ });
4357
4437
  const StyledDivider$2 = styled__default['default'](Divider).withConfig({
4358
4438
  displayName: "Title__StyledDivider",
4359
4439
  componentId: "sc-i4qfl5-1"
4360
- })(["width:100%;margin-bottom:", ";"], dialog.entities.divider.spacings.bottom);
4361
- const Title = /*#__PURE__*/React.forwardRef(function Title({
4440
+ })(({
4441
+ theme
4442
+ }) => {
4443
+ return styled.css(["width:100%;margin-bottom:", ";"], theme.entities.divider.spacings.bottom);
4444
+ });
4445
+ const Title = /*#__PURE__*/react.forwardRef(function Title({
4362
4446
  children,
4363
4447
  ...rest
4364
4448
  }, ref) {
@@ -4378,14 +4462,21 @@ const Title = /*#__PURE__*/React.forwardRef(function Title({
4378
4462
  const StyledCustomContent = styled__default['default'].div.withConfig({
4379
4463
  displayName: "CustomContent__StyledCustomContent",
4380
4464
  componentId: "sc-17fsw6x-0"
4381
- })(["", " min-height:", ";margin-bottom:", ";align-self:stretch;justify-self:stretch;", " ", ""], typographyTemplate(dialog.entities.content.typography), dialog.entities.content.minHeight, dialog.entities.content.spacings.bottom, spacingsTemplate(dialog.entities.children.spacings), ({
4465
+ })(({
4466
+ theme,
4382
4467
  scrollable
4383
- }) => scrollable && styled.css(["min-height:initial;height:", ";overflow-y:auto;"], dialog.entities.content.height));
4468
+ }) => {
4469
+ return styled.css(["", " min-height:", ";margin-bottom:", ";align-self:stretch;justify-self:stretch;", " ", ""], typographyTemplate(theme.entities.content.typography), theme.entities.content.minHeight, theme.entities.content.spacings.bottom, spacingsTemplate(theme.entities.children.spacings), scrollable && styled.css(["min-height:initial;height:", ";overflow-y:auto;"], theme.entities.content.height));
4470
+ });
4384
4471
  const StyledDivider$1 = styled__default['default'](Divider).withConfig({
4385
4472
  displayName: "CustomContent__StyledDivider",
4386
4473
  componentId: "sc-17fsw6x-1"
4387
- })(["width:100%;margin-bottom:", ";"], dialog.entities.divider.spacings.bottom);
4388
- const CustomContent = /*#__PURE__*/React.forwardRef(function CustomContent({
4474
+ })(({
4475
+ theme
4476
+ }) => {
4477
+ return styled.css(["width:100%;margin-bottom:", ";"], theme.entities.divider.spacings.bottom);
4478
+ });
4479
+ const CustomContent = /*#__PURE__*/react.forwardRef(function CustomContent({
4389
4480
  children,
4390
4481
  scrollable = false,
4391
4482
  ...rest
@@ -4419,7 +4510,7 @@ const {
4419
4510
  colors: {
4420
4511
  ui: {
4421
4512
  background__scrim: {
4422
- rgba: background$a
4513
+ rgba: background$9
4423
4514
  }
4424
4515
  }
4425
4516
  }
@@ -4427,44 +4518,45 @@ const {
4427
4518
  const scrim = {
4428
4519
  width: '100%',
4429
4520
  height: '100%',
4430
- background: background$a
4521
+ background: background$9
4431
4522
  };
4432
4523
 
4433
4524
  const {
4434
- height: height$2,
4525
+ height: height$1,
4435
4526
  width,
4436
- background: background$9
4527
+ background: background$8
4437
4528
  } = scrim;
4438
4529
  const StyledScrim = styled__default['default'].div.withConfig({
4439
4530
  displayName: "Scrim__StyledScrim",
4440
4531
  componentId: "sc-1fr7uvy-0"
4441
- })(["width:", ";height:", ";background:", ";position:fixed;z-index:500;top:0;left:0;align-items:center;justify-content:center;display:flex;"], width, height$2, background$9);
4532
+ })(["width:", ";height:", ";background:", ";position:fixed;z-index:500;top:0;left:0;align-items:center;justify-content:center;display:flex;"], width, height$1, background$8);
4442
4533
  const ScrimContent = styled__default['default'].div.withConfig({
4443
4534
  displayName: "Scrim__ScrimContent",
4444
4535
  componentId: "sc-1fr7uvy-1"
4445
4536
  })(["width:auto;height:auto;"]);
4446
- const Scrim = /*#__PURE__*/React.forwardRef(function Scrim({
4537
+ const Scrim = /*#__PURE__*/react.forwardRef(function Scrim({
4447
4538
  children,
4448
4539
  onClose,
4540
+ open,
4449
4541
  isDismissable = false,
4450
4542
  ...rest
4451
4543
  }, ref) {
4452
4544
  const props = { ...rest,
4545
+ open,
4453
4546
  isDismissable,
4454
4547
  ref
4455
4548
  };
4456
- const overflowState = document.body.style.overflow;
4457
- useHideBodyScroll(overflowState);
4458
- useGlobalKeyPress('Escape', e => {
4459
- if (isDismissable && onClose) {
4460
- onClose(e, false);
4549
+ useHideBodyScroll(open);
4550
+ useGlobalKeyPress('Escape', () => {
4551
+ if (isDismissable && onClose && open) {
4552
+ onClose();
4461
4553
  }
4462
4554
  });
4463
4555
 
4464
4556
  const handleMouseClose = event => {
4465
4557
  if (event) {
4466
- if (event.type === 'click' && isDismissable) {
4467
- onClose && onClose(event, false);
4558
+ if (event.type === 'click' && isDismissable && open) {
4559
+ onClose && onClose();
4468
4560
  }
4469
4561
  }
4470
4562
  };
@@ -4474,6 +4566,10 @@ const Scrim = /*#__PURE__*/React.forwardRef(function Scrim({
4474
4566
  event.stopPropagation();
4475
4567
  };
4476
4568
 
4569
+ if (!open) {
4570
+ return null;
4571
+ }
4572
+
4477
4573
  return /*#__PURE__*/jsxRuntime.jsx(StyledScrim, {
4478
4574
  onClick: handleMouseClose,
4479
4575
  ...props,
@@ -4518,10 +4614,10 @@ const {
4518
4614
  xxx_large
4519
4615
  }
4520
4616
  },
4521
- typography: typography$a
4617
+ typography: typography$9
4522
4618
  } = edsTokens.tokens;
4523
4619
  const tableOfContents = {
4524
- typography: { ...typography$a.navigation.button,
4620
+ typography: { ...typography$9.navigation.button,
4525
4621
  color: labelColor
4526
4622
  },
4527
4623
  spacings: {
@@ -4537,7 +4633,7 @@ const tableOfContents = {
4537
4633
  },
4538
4634
  links: {
4539
4635
  width: 'calc(189px - 36px)',
4540
- typography: { ...typography$a.navigation.button,
4636
+ typography: { ...typography$9.navigation.button,
4541
4637
  color: primaryColor$4
4542
4638
  },
4543
4639
  spacings: {
@@ -4577,19 +4673,25 @@ const tableOfContents = {
4577
4673
  background: primaryHover$3
4578
4674
  }
4579
4675
  },
4580
- typography: { ...typography$a.navigation.button,
4676
+ typography: { ...typography$9.navigation.button,
4581
4677
  color: primaryHover$3
4582
4678
  }
4583
4679
  }
4680
+ },
4681
+ modes: {
4682
+ compact: {}
4584
4683
  }
4585
4684
  };
4586
4685
 
4587
4686
  const StyledTableOfContents = styled__default['default'].nav.withConfig({
4588
4687
  displayName: "TableOfContents__StyledTableOfContents",
4589
4688
  componentId: "sc-q23s6y-0"
4590
- })(["margin-top:", ";margin-bottom:", ";", ""], tableOfContents.spacings.top, tableOfContents.spacings.bottom, ({
4689
+ })(({
4690
+ theme,
4591
4691
  sticky
4592
- }) => sticky && styled.css(["position:fixed;top:", ";right:", ";"], tableOfContents.entities.sticky.spacings.top, tableOfContents.entities.sticky.spacings.right));
4692
+ }) => {
4693
+ return styled.css(["margin-top:", ";margin-bottom:", ";", ""], theme.spacings.top, theme.spacings.bottom, sticky && styled.css(["position:fixed;top:", ";right:", ";"], theme.entities.sticky.spacings.top, theme.entities.sticky.spacings.right));
4694
+ });
4593
4695
  const TocList = styled__default['default'](List$1).withConfig({
4594
4696
  displayName: "TableOfContents__TocList",
4595
4697
  componentId: "sc-q23s6y-1"
@@ -4597,32 +4699,49 @@ const TocList = styled__default['default'](List$1).withConfig({
4597
4699
  const TocLabel = styled__default['default'](Typography).withConfig({
4598
4700
  displayName: "TableOfContents__TocLabel",
4599
4701
  componentId: "sc-q23s6y-2"
4600
- })(["", ""], typographyTemplate(tableOfContents.typography));
4601
- const TableOfContents$1 = /*#__PURE__*/React.forwardRef(function TableOfContents({
4702
+ })(({
4703
+ theme
4704
+ }) => {
4705
+ return styled.css(["", ""], typographyTemplate(theme.typography));
4706
+ });
4707
+ const TableOfContents$1 = /*#__PURE__*/react.forwardRef(function TableOfContents({
4602
4708
  children,
4603
4709
  sticky = false,
4604
4710
  label = '',
4605
4711
  ...rest
4606
4712
  }, ref) {
4607
- return /*#__PURE__*/jsxRuntime.jsxs(StyledTableOfContents, {
4608
- ref: ref,
4609
- label: label,
4610
- sticky: sticky,
4611
- ...rest,
4612
- children: [/*#__PURE__*/jsxRuntime.jsx(TocLabel, {
4613
- variant: "overline",
4614
- children: label
4615
- }), /*#__PURE__*/jsxRuntime.jsx(TocList, {
4616
- children: children
4617
- })]
4713
+ const {
4714
+ density
4715
+ } = useEds();
4716
+ const token = useToken({
4717
+ density
4718
+ }, tableOfContents);
4719
+ return /*#__PURE__*/jsxRuntime.jsx(styled.ThemeProvider, {
4720
+ theme: token,
4721
+ children: /*#__PURE__*/jsxRuntime.jsxs(StyledTableOfContents, {
4722
+ ref: ref,
4723
+ label: label,
4724
+ sticky: sticky,
4725
+ ...rest,
4726
+ children: [/*#__PURE__*/jsxRuntime.jsx(TocLabel, {
4727
+ variant: "overline",
4728
+ children: label
4729
+ }), /*#__PURE__*/jsxRuntime.jsx(TocList, {
4730
+ children: children
4731
+ })]
4732
+ })
4618
4733
  });
4619
4734
  });
4620
4735
 
4621
4736
  const StyledLinkItem = styled__default['default'].li.withConfig({
4622
4737
  displayName: "LinkItem__StyledLinkItem",
4623
4738
  componentId: "sc-1tfuad4-0"
4624
- })(["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);
4625
- const LinkItem = /*#__PURE__*/React.forwardRef(function LinkItem({
4739
+ })(({
4740
+ theme
4741
+ }) => {
4742
+ return styled.css(["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(theme.entities.links.typography), spacingsTemplate(theme.entities.links.spacings), theme.entities.links.typography.lineHeight, theme.entities.links.width, theme.entities.icon.background, theme.entities.icon.spacings.right, theme.entities.span.maxWidth, outlineTemplate(theme.states.focus.outline), typographyTemplate(theme.states.hover.typography), theme.states.hover.background, bordersTemplate(theme.states.hover.border), theme.states.hover.entities.icon.background);
4743
+ });
4744
+ const LinkItem = /*#__PURE__*/react.forwardRef(function LinkItem({
4626
4745
  children,
4627
4746
  ...props
4628
4747
  }, ref) {
@@ -4640,7 +4759,7 @@ const {
4640
4759
  colors: {
4641
4760
  ui: {
4642
4761
  background__default: {
4643
- rgba: background$8
4762
+ rgba: background$7
4644
4763
  },
4645
4764
  background__light: {
4646
4765
  rgba: borderColor
@@ -4655,7 +4774,7 @@ const {
4655
4774
  }
4656
4775
  } = edsTokens.tokens;
4657
4776
  const comfortable$2 = {
4658
- background: background$8,
4777
+ background: background$7,
4659
4778
  spacings: {
4660
4779
  left: '14px',
4661
4780
  // padding left is 14px, because of border-left 'steals' 2px of the padding
@@ -4679,21 +4798,21 @@ const variants = {
4679
4798
  };
4680
4799
 
4681
4800
  const {
4682
- background: background$7,
4683
- spacings: spacings$3,
4684
- border: border$3
4801
+ background: background$6,
4802
+ spacings: spacings$2,
4803
+ border: border$2
4685
4804
  } = comfortable$2;
4686
4805
  const StyledSideSheet = styled__default['default'].div.withConfig({
4687
4806
  displayName: "SideSheet__StyledSideSheet",
4688
4807
  componentId: "sc-wkzlnn-0"
4689
- })(["height:100%;position:absolute;z-index:200;top:0;right:0;box-sizing:border-box;background:", ";width:", ";", " ", ";"], background$7, ({
4808
+ })(["height:100%;position:absolute;z-index:200;top:0;right:0;box-sizing:border-box;background:", ";width:", ";", " ", ";"], background$6, ({
4690
4809
  width
4691
- }) => width, bordersTemplate(border$3), spacingsTemplate(spacings$3));
4810
+ }) => width, bordersTemplate(border$2), spacingsTemplate(spacings$2));
4692
4811
  const Header$1 = styled__default['default'].div.withConfig({
4693
4812
  displayName: "SideSheet__Header",
4694
4813
  componentId: "sc-wkzlnn-1"
4695
4814
  })(["display:flex;flex-wrap:nowrap;justify-content:space-between;align-items:center;padding-bottom:24px;padding-right:10px;"]);
4696
- const SideSheet = /*#__PURE__*/React.forwardRef(function SideSheet({
4815
+ const SideSheet = /*#__PURE__*/react.forwardRef(function SideSheet({
4697
4816
  variant = 'medium',
4698
4817
  title = '',
4699
4818
  children,
@@ -4784,7 +4903,7 @@ const {
4784
4903
  }
4785
4904
  }
4786
4905
  } = edsTokens.tokens;
4787
- const enabled$6 = {
4906
+ const enabled$3 = {
4788
4907
  background: backgroundColor$2,
4789
4908
  height: '22px',
4790
4909
  border: {
@@ -4873,7 +4992,7 @@ const error$2 = {
4873
4992
 
4874
4993
  var tokens$3 = /*#__PURE__*/Object.freeze({
4875
4994
  __proto__: null,
4876
- enabled: enabled$6,
4995
+ enabled: enabled$3,
4877
4996
  error: error$2
4878
4997
  });
4879
4998
 
@@ -4881,13 +5000,13 @@ Icon$1.add({
4881
5000
  close: edsIcons.close
4882
5001
  });
4883
5002
  const {
4884
- enabled: enabled$5,
5003
+ enabled: enabled$2,
4885
5004
  error: error$1
4886
5005
  } = tokens$3;
4887
5006
  const Icon = styled__default['default'](Icon$1).withConfig({
4888
5007
  displayName: "Icon",
4889
5008
  componentId: "sc-50ffvg-0"
4890
- })(["cursor:pointer;padding:1px;", " z-index:11;&:hover{", ";}", ""], bordersTemplate(enabled$5.entities.icon.border), ({
5009
+ })(["cursor:pointer;padding:1px;", " z-index:11;&:hover{", ";}", ""], bordersTemplate(enabled$2.entities.icon.border), ({
4891
5010
  variant
4892
5011
  }) => {
4893
5012
  switch (variant) {
@@ -4895,24 +5014,24 @@ const Icon = styled__default['default'](Icon$1).withConfig({
4895
5014
  return styled.css(["background:", ";svg{fill:", ";}"], error$1.entities.icon.background, error$1.entities.icon.typography.color);
4896
5015
 
4897
5016
  default:
4898
- return styled.css(["background:", ";svg{fill:", ";}"], enabled$5.entities.icon.states.hover.background, enabled$5.states.hover.typography.color);
5017
+ return styled.css(["background:", ";svg{fill:", ";}"], enabled$2.entities.icon.states.hover.background, enabled$2.states.hover.typography.color);
4899
5018
  }
4900
5019
  }, ({
4901
5020
  disabled
4902
5021
  }) => disabled && styled.css(["cursor:not-allowed;&:hover{background:transparent;}"]));
4903
5022
 
4904
5023
  const {
4905
- enabled: enabled$4,
5024
+ enabled: enabled$1,
4906
5025
  error
4907
5026
  } = tokens$3;
4908
5027
  const {
4909
- background: background$6,
4910
- height: height$1,
4911
- typography: typography$9,
4912
- spacings: spacings$2,
4913
- border: border$2,
4914
- states: states$3
4915
- } = enabled$4;
5028
+ background: background$5,
5029
+ height,
5030
+ typography: typography$8,
5031
+ spacings: spacings$1,
5032
+ border: border$1,
5033
+ states: states$2
5034
+ } = enabled$1;
4916
5035
  const StyledChips = styled__default['default'].div.attrs(({
4917
5036
  clickable,
4918
5037
  deletable
@@ -4922,14 +5041,14 @@ const StyledChips = styled__default['default'].div.attrs(({
4922
5041
  })).withConfig({
4923
5042
  displayName: "Chip__StyledChips",
4924
5043
  componentId: "sc-wzsllq-0"
4925
- })(["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{", "}&:focus-visible{", "}", " ", " ", " ", " ", " ", " ", " ", ""], background$6, height$1, typography$9.color, states$3.hover.typography.color, states$3.hover.typography.color, outlineTemplate(states$3.focus.outline), outlineTemplate(states$3.focus.outline), bordersTemplate(border$2), spacingsTemplate(spacings$2), typographyTemplate(typography$9), ({
5044
+ })(["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{", "}&:focus-visible{", "}", " ", " ", " ", " ", " ", " ", " ", ""], background$5, height, typography$8.color, states$2.hover.typography.color, states$2.hover.typography.color, outlineTemplate(states$2.focus.outline), outlineTemplate(states$2.focus.outline), bordersTemplate(border$1), spacingsTemplate(spacings$1), typographyTemplate(typography$8), ({
4926
5045
  clickable
4927
5046
  }) => clickable && styled.css(["@media (hover:hover) and (pointer:fine){&:hover{cursor:pointer;}}"]), ({
4928
5047
  variant
4929
5048
  }) => {
4930
5049
  switch (variant) {
4931
5050
  case 'active':
4932
- return styled.css(["background:", ";"], states$3.active.background);
5051
+ return styled.css(["background:", ";"], states$2.active.background);
4933
5052
 
4934
5053
  case 'error':
4935
5054
  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);
@@ -4939,12 +5058,12 @@ const StyledChips = styled__default['default'].div.attrs(({
4939
5058
  }
4940
5059
  }, ({
4941
5060
  disabled
4942
- }) => 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), ({
5061
+ }) => disabled && styled.css(["cursor:not-allowed;background:", ";color:", ";svg{fill:", ";}@media (hover:hover) and (pointer:fine){&:hover{color:", ";cursor:not-allowed;svg{fill:", ";}}}"], background$5, states$2.disabled.typography.color, states$2.disabled.typography.color, states$2.disabled.typography.color, states$2.disabled.typography.color), ({
4943
5062
  deletable
4944
5063
  }) => deletable && styled.css(["padding-right:4px;"]), ({
4945
5064
  onlyChild
4946
5065
  }) => onlyChild ? styled.css(["padding-left:8px;"]) : '');
4947
- const Chip = /*#__PURE__*/React.forwardRef(function Chip({
5066
+ const Chip = /*#__PURE__*/react.forwardRef(function Chip({
4948
5067
  children,
4949
5068
  onDelete,
4950
5069
  disabled = false,
@@ -4983,10 +5102,10 @@ const Chip = /*#__PURE__*/React.forwardRef(function Chip({
4983
5102
  }
4984
5103
  };
4985
5104
 
4986
- const resizedChildren = React.Children.map(children, child => {
5105
+ const resizedChildren = react.Children.map(children, child => {
4987
5106
  // We force size on Icon & Avatar component
4988
5107
  if (child.props) {
4989
- return /*#__PURE__*/React.cloneElement(child, {
5108
+ return /*#__PURE__*/react.cloneElement(child, {
4990
5109
  size: 16,
4991
5110
  disabled
4992
5111
  });
@@ -5041,7 +5160,7 @@ const StyledImage = styled__default['default'].img.withConfig({
5041
5160
  })(["height:100%;text-align:center;color:transparent;", ";"], ({
5042
5161
  disabled
5043
5162
  }) => disabled && styled.css(["opacity:", ";"], avatar.states.disabled.opacity));
5044
- const Avatar = /*#__PURE__*/React.forwardRef(function Avatar({
5163
+ const Avatar = /*#__PURE__*/react.forwardRef(function Avatar({
5045
5164
  src = null,
5046
5165
  alt,
5047
5166
  size = 24,
@@ -5066,7 +5185,7 @@ const {
5066
5185
  colors: {
5067
5186
  ui: {
5068
5187
  background__light: {
5069
- rgba: background$5
5188
+ rgba: background$4
5070
5189
  }
5071
5190
  },
5072
5191
  interactive: {
@@ -5090,13 +5209,14 @@ const {
5090
5209
  },
5091
5210
  typography: {
5092
5211
  input: {
5093
- text: typography$8
5212
+ text: typography$7
5094
5213
  }
5095
- }
5214
+ },
5215
+ shape: shape$1
5096
5216
  } = edsTokens.tokens;
5097
5217
  const search = {
5098
- background: background$5,
5099
- typography: typography$8,
5218
+ background: background$4,
5219
+ typography: typography$7,
5100
5220
  height: '36px',
5101
5221
  clickbound: {
5102
5222
  offset: {
@@ -5106,9 +5226,7 @@ const search = {
5106
5226
  },
5107
5227
  spacings: {
5108
5228
  left: small$2,
5109
- right: small$2,
5110
- top: '6px',
5111
- bottom: '6px'
5229
+ right: small$2
5112
5230
  },
5113
5231
  border: {
5114
5232
  type: 'border',
@@ -5159,44 +5277,60 @@ const search = {
5159
5277
  right: small$2
5160
5278
  }
5161
5279
  }
5280
+ },
5281
+ modes: {
5282
+ compact: {
5283
+ height: shape$1._modes.compact.straight.minHeight
5284
+ }
5162
5285
  }
5163
5286
  };
5164
5287
 
5165
- const {
5166
- height,
5167
- spacings: spacings$1,
5168
- background: background$4,
5169
- typography: typography$7,
5170
- border: border$1,
5171
- clickbound,
5172
- entities: {
5173
- icon: icon$1,
5174
- placeholder,
5175
- button
5176
- },
5177
- states: states$2
5178
- } = search;
5179
5288
  const Container$2 = styled__default['default'].span.withConfig({
5180
5289
  displayName: "Search__Container",
5181
5290
  componentId: "sc-v8l23u-0"
5182
- })(["position:relative;background:", ";width:100%;height:", ";display:grid;grid-gap:8px;grid-auto-flow:column;grid-auto-columns:max-content auto max-content;align-items:center;box-sizing:border-box;", " z-index:0;svg{fill:", ";}", " ", " &::placeholder{color:", ";}", " &::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:'';}"], background$4, height, bordersTemplate(border$1), icon$1.typography.color, spacingsTemplate(spacings$1), ({
5183
- isFocused
5184
- }) => isFocused && styled.css(["", ""], bordersTemplate(states$2.focus.border)), placeholder.typography.color, ({
5185
- disabled
5186
- }) => disabled ? styled.css(["cursor:not-allowed;"]) : styled.css(["@media (hover:hover) and (pointer:fine){&:hover{", " cursor:text;}}"], bordersTemplate(states$2.focus.border)), clickbound.offset, clickbound.height);
5187
- const Input$4 = styled__default['default'].input.withConfig({
5188
- displayName: "Search__Input",
5291
+ })(({
5292
+ disabled,
5293
+ isFocused,
5294
+ theme
5295
+ }) => {
5296
+ const {
5297
+ height,
5298
+ spacings,
5299
+ background,
5300
+ border,
5301
+ clickbound,
5302
+ entities: {
5303
+ icon,
5304
+ placeholder
5305
+ },
5306
+ states
5307
+ } = theme;
5308
+ return styled.css(["position:relative;background:", ";width:100%;height:", ";display:grid;grid-gap:8px;grid-auto-flow:column;grid-auto-columns:max-content auto max-content;align-items:center;box-sizing:border-box;", " z-index:0;svg{fill:", ";}", " ", " &::placeholder{color:", ";}", " &::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:'';}"], background, height, bordersTemplate(border), icon.typography.color, spacingsTemplate(spacings), isFocused && bordersTemplate(states.focus.border), placeholder.typography.color, disabled ? styled.css(["cursor:not-allowed;"]) : styled.css(["@media (hover:hover) and (pointer:fine){&:hover{", " cursor:text;}}"], bordersTemplate(states.focus.border)), clickbound.offset, clickbound.height);
5309
+ });
5310
+ const SearchInput = styled__default['default'](Input$4).withConfig({
5311
+ displayName: "Search__SearchInput",
5189
5312
  componentId: "sc-v8l23u-1"
5190
- })(["min-height:0;min-width:0;width:100%;height:100%;margin:0;padding:0;border:none;appearance:none;box-sizing:border-box;background:transparent;&[type='search']::-webkit-search-decoration,&[type='search']::-webkit-search-cancel-button,&[type='search']::-webkit-search-results-button,&[type='search']::-webkit-search-results-decoration{-webkit-appearance:none;}", " &:focus{outline:none;}", ""], typographyTemplate(typography$7), ({
5313
+ })(({
5314
+ theme,
5191
5315
  disabled
5192
- }) => disabled && styled.css(["cursor:not-allowed;"]));
5316
+ }) => {
5317
+ return styled.css(["height:calc(", " - 2px);align-self:start;box-shadow:unset;&[type='search']::-webkit-search-decoration,&[type='search']::-webkit-search-cancel-button,&[type='search']::-webkit-search-results-button,&[type='search']::-webkit-search-results-decoration{-webkit-appearance:none;}", " &:focus{outline:none;}", ""], theme.height, typographyTemplate(theme.typography), disabled && styled.css(["cursor:not-allowed;"]));
5318
+ });
5193
5319
  const InsideButton = styled__default['default'](Button).withConfig({
5194
5320
  displayName: "Search__InsideButton",
5195
5321
  componentId: "sc-v8l23u-2"
5196
- })(["visibility:hidden;position:absolute;right:", ";height:", ";width:", ";", ""], button.spacings.right, button.height, button.width, ({
5322
+ })(({
5323
+ theme,
5197
5324
  isActive
5198
- }) => isActive && styled.css(["visibility:visible;"]));
5199
- const Search = /*#__PURE__*/React.forwardRef(function Search({
5325
+ }) => {
5326
+ const {
5327
+ entities: {
5328
+ button
5329
+ }
5330
+ } = theme;
5331
+ return styled.css(["visibility:hidden;position:absolute;right:", ";height:", ";width:", ";", ""], button.spacings.right, button.height, button.width, isActive && styled.css(["visibility:visible;"]));
5332
+ });
5333
+ const Search = /*#__PURE__*/react.forwardRef(function Search({
5200
5334
  onChange,
5201
5335
  defaultValue = '',
5202
5336
  value,
@@ -5206,14 +5340,20 @@ const Search = /*#__PURE__*/React.forwardRef(function Search({
5206
5340
  onFocus,
5207
5341
  ...rest
5208
5342
  }, ref) {
5343
+ const {
5344
+ density
5345
+ } = useEds();
5346
+ const token = useToken({
5347
+ density
5348
+ }, search);
5209
5349
  const isControlled = typeof value !== 'undefined';
5210
5350
  const isActive = isControlled && value !== '' || defaultValue !== '';
5211
- const inputRef = React.useRef(null);
5212
- const [state, setState] = React.useState({
5351
+ const inputRef = react.useRef(null);
5352
+ const [state, setState] = react.useState({
5213
5353
  isActive,
5214
5354
  isFocused: false
5215
5355
  });
5216
- React.useEffect(() => {
5356
+ react.useEffect(() => {
5217
5357
  setState(prevState => ({ ...prevState,
5218
5358
  isActive
5219
5359
  }));
@@ -5313,21 +5453,24 @@ const Search = /*#__PURE__*/React.forwardRef(function Search({
5313
5453
  }
5314
5454
  }
5315
5455
  };
5316
- return /*#__PURE__*/jsxRuntime.jsxs(Container$2, { ...containerProps,
5317
- children: [/*#__PURE__*/jsxRuntime.jsx(Icon$1, {
5318
- data: edsIcons.search,
5319
- "aria-hidden": true,
5320
- size: size
5321
- }), /*#__PURE__*/jsxRuntime.jsx(Input$4, { ...inputProps
5322
- }), /*#__PURE__*/jsxRuntime.jsx(InsideButton, { ...clearButtonProps,
5323
- "aria-label": 'clear search',
5324
- title: "clear",
5325
- variant: "ghost_icon",
5326
- children: /*#__PURE__*/jsxRuntime.jsx(Icon$1, {
5327
- data: edsIcons.close,
5328
- size: 16
5329
- })
5330
- })]
5456
+ return /*#__PURE__*/jsxRuntime.jsx(styled.ThemeProvider, {
5457
+ theme: token,
5458
+ children: /*#__PURE__*/jsxRuntime.jsxs(Container$2, { ...containerProps,
5459
+ children: [/*#__PURE__*/jsxRuntime.jsx(Icon$1, {
5460
+ data: edsIcons.search,
5461
+ "aria-hidden": true,
5462
+ size: size
5463
+ }), /*#__PURE__*/jsxRuntime.jsx(SearchInput, { ...inputProps
5464
+ }), /*#__PURE__*/jsxRuntime.jsx(InsideButton, { ...clearButtonProps,
5465
+ "aria-label": 'clear search',
5466
+ title: "clear",
5467
+ variant: "ghost_icon",
5468
+ children: /*#__PURE__*/jsxRuntime.jsx(Icon$1, {
5469
+ data: edsIcons.close,
5470
+ size: 16
5471
+ })
5472
+ })]
5473
+ })
5331
5474
  });
5332
5475
  }); // Search.displayName = 'eds-search'
5333
5476
 
@@ -5474,7 +5617,7 @@ const StyledMinMax = styled__default['default'].span.withConfig({
5474
5617
  displayName: "MinMax__StyledMinMax",
5475
5618
  componentId: "sc-lxmlid-0"
5476
5619
  })(["grid-row:2;", " position:absolute;left:2px;top:", ";pointer-events:none;text-align:left;transform:translate(calc(-1 * calc((100% - 8px) / 2)));&:last-child{left:auto;right:2px;transform:translate(calc((100% - 8px) / 2));}"], typographyTemplate(output$1.typography), track$3.spacings.top);
5477
- const MinMax = /*#__PURE__*/React.forwardRef(function MinMax({
5620
+ const MinMax = /*#__PURE__*/react.forwardRef(function MinMax({
5478
5621
  children
5479
5622
  }, ref) {
5480
5623
  return /*#__PURE__*/jsxRuntime.jsx(StyledMinMax, {
@@ -5495,7 +5638,7 @@ const StyledOutput = styled__default['default'].output.withConfig({
5495
5638
  })(["--val:", ";--realWidth:calc(100% - 12px);width:fit-content;position:relative;z-index:1;", " background:", ";padding:0 5px;top:", ";pointer-events:none;margin-left:calc((var(--val) - var(--min)) / var(--dif) * var(--realWidth));transform:translate(calc(-1 * calc(var(--realWidth) / 2)));grid-row:2;grid-column:1 / -1;"], ({
5496
5639
  value
5497
5640
  }) => value, typographyTemplate(output.typography), slider.background, track$2.spacings.top);
5498
- const Output = /*#__PURE__*/React.forwardRef(function Output({
5641
+ const Output = /*#__PURE__*/react.forwardRef(function Output({
5499
5642
  children,
5500
5643
  value,
5501
5644
  htmlFor
@@ -5527,7 +5670,7 @@ const StyledSliderInput = styled__default['default'].input.attrs(() => ({
5527
5670
  displayName: "SliderInput__StyledSliderInput",
5528
5671
  componentId: "sc-17orw4f-0"
5529
5672
  })(["&::-webkit-slider-runnable-track,&::-webkit-slider-thumb,&{-webkit-appearance:none;}::-moz-focus-outer{border:0;}width:100%;background:transparent;background:none;grid-column:1 / -1;grid-row:2;font:inherit;margin:0;z-index:2;outline:none;&[data-focus-visible-added]:focus{z-index:2;&::-webkit-slider-thumb{", ";}&::-moz-range-thumb{", ";}}&:focus-visible{z-index:2;&::-webkit-slider-thumb{", ";}&::-moz-range-thumb{", ";}}&:hover,&:active{&::-webkit-slider-thumb{", "}&::-moz-range-thumb{", "}}&:disabled{&::-webkit-slider-thumb{", "}&::-moz-range-thumb{", "}}&:disabled:hover,&:disabled:active{&::-webkit-slider-thumb{", "}&::-moz-range-thumb{", "}&::-webkit-slider-runnable-track{cursor:not-allowed;}&::-moz-range-track{cursor:not-allowed;}}&:before,&:after{}&:after{right:0;}&::-webkit-slider-thumb{", " margin-top:6px;}&::-moz-range-thumb{", " height:8px;width:8px;}&::-webkit-slider-runnable-track{", "}&::-moz-range-track{", "}"], outlineTemplate(handle$1.states.focus.outline), outlineTemplate(handle$1.states.focus.outline), outlineTemplate(handle$1.states.focus.outline), outlineTemplate(handle$1.states.focus.outline), thumbHover, thumbHover, thumbDisabled, thumbDisabled, thumbHoverAndDisabled, thumbHoverAndDisabled, thumb, thumb, track$1, track$1);
5530
- const SliderInput = /*#__PURE__*/React.forwardRef(function SliderInput({
5673
+ const SliderInput = /*#__PURE__*/react.forwardRef(function SliderInput({
5531
5674
  value,
5532
5675
  min,
5533
5676
  max,
@@ -5611,7 +5754,7 @@ const SrOnlyLabel = styled__default['default'].label.withConfig({
5611
5754
  displayName: "Slider__SrOnlyLabel",
5612
5755
  componentId: "sc-n1grrg-4"
5613
5756
  })(["position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0;"]);
5614
- const Slider = /*#__PURE__*/React.forwardRef(function Slider({
5757
+ const Slider = /*#__PURE__*/react.forwardRef(function Slider({
5615
5758
  min = 0,
5616
5759
  max = 100,
5617
5760
  value = [40, 60],
@@ -5626,9 +5769,9 @@ const Slider = /*#__PURE__*/React.forwardRef(function Slider({
5626
5769
  ...rest
5627
5770
  }, ref) {
5628
5771
  const isRangeSlider = Array.isArray(value);
5629
- const [sliderValue, setSliderValue] = React.useState(isRangeSlider ? value : [value]);
5630
- const minRange = React.useRef(null);
5631
- const maxRange = React.useRef(null);
5772
+ const [sliderValue, setSliderValue] = react.useState(isRangeSlider ? value : [value]);
5773
+ const minRange = react.useRef(null);
5774
+ const maxRange = react.useRef(null);
5632
5775
 
5633
5776
  const onValueChange = (event, valueArrIdx) => {
5634
5777
  const target = event.target;
@@ -5865,7 +6008,7 @@ const TooltipArrow = styled__default['default'].svg.withConfig({
5865
6008
  displayName: "Tooltip__TooltipArrow",
5866
6009
  componentId: "sc-m2im2p-2"
5867
6010
  })(["width:", ";height:", ";position:absolute;fill:", ";"], tooltip.entities.arrow.width, tooltip.entities.arrow.height, tooltip.background);
5868
- const Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip({
6011
+ const Tooltip = /*#__PURE__*/react.forwardRef(function Tooltip({
5869
6012
  title,
5870
6013
  placement = 'bottom',
5871
6014
  children,
@@ -5874,12 +6017,12 @@ const Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip({
5874
6017
  ...rest
5875
6018
  }, ref) {
5876
6019
  const isMounted = useIsMounted();
5877
- const [popperEl, setPopperEl] = React.useState(null);
5878
- const [arrowRef, setArrowRef] = React.useState(null);
5879
- const [open, setOpen] = React.useState(false);
5880
- const openTimer = React.useRef();
6020
+ const [popperEl, setPopperEl] = react.useState(null);
6021
+ const [arrowRef, setArrowRef] = react.useState(null);
6022
+ const [open, setOpen] = react.useState(false);
6023
+ const openTimer = react.useRef();
5881
6024
  const tooltipRef = useCombinedRefs(setPopperEl, ref);
5882
- const anchorRef = React.useRef();
6025
+ const anchorRef = react.useRef();
5883
6026
  const combinedChilddRef = useCombinedRefs(anchorRef, children === null || children === void 0 ? void 0 : children.ref);
5884
6027
  const tooltipId = useId(id, 'tooltip');
5885
6028
  const containerId = 'eds-tooltip-container';
@@ -5888,7 +6031,7 @@ const Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip({
5888
6031
  setTimeout,
5889
6032
  clearTimeout
5890
6033
  } = window;
5891
- React.useEffect(() => {
6034
+ react.useEffect(() => {
5892
6035
  if (document.getElementById(containerId) === null) {
5893
6036
  const tooltipContainerElement = document.createElement('div');
5894
6037
  tooltipContainerElement.id = containerId;
@@ -5925,7 +6068,7 @@ const Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip({
5925
6068
  ...attributes.popper
5926
6069
  };
5927
6070
  const childProps = children.props;
5928
- const updatedChildren = /*#__PURE__*/React.cloneElement(children, {
6071
+ const updatedChildren = /*#__PURE__*/react.cloneElement(children, {
5929
6072
  ref: combinedChilddRef,
5930
6073
  'aria-describedby': open ? tooltipId : null,
5931
6074
  onMouseOver: joinHandlers(openTooltip, childProps.onMouseOver),
@@ -5957,6 +6100,26 @@ const Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip({
5957
6100
  });
5958
6101
  });
5959
6102
 
6103
+ const StyledSnackbarAction = styled__default['default'].div.withConfig({
6104
+ displayName: "SnackbarAction__StyledSnackbarAction",
6105
+ componentId: "sc-1v5mjvd-0"
6106
+ })(({
6107
+ theme
6108
+ }) => {
6109
+ return styled.css(["display:inline-flex;margin-left:", ";margin-top:", ";margin-bottom:", ";"], theme.entities.actions.spacings.left, theme.entities.actions.spacings.top, theme.entities.actions.spacings.bottom);
6110
+ });
6111
+ const SnackbarAction = /*#__PURE__*/react.forwardRef(function SnackbarAction({
6112
+ children,
6113
+ ...rest
6114
+ }, ref) {
6115
+ const props = { ...rest,
6116
+ ref
6117
+ };
6118
+ return /*#__PURE__*/jsxRuntime.jsx(StyledSnackbarAction, { ...props,
6119
+ children: react.Children.only(children)
6120
+ });
6121
+ });
6122
+
5960
6123
  const {
5961
6124
  typography: {
5962
6125
  ui: {
@@ -6025,40 +6188,28 @@ const snackbar = {
6025
6188
  },
6026
6189
  typography: { ...typography$6,
6027
6190
  color
6191
+ },
6192
+ modes: {
6193
+ compact: {}
6028
6194
  }
6029
6195
  };
6030
6196
 
6031
- const StyledSnackbarAction = styled__default['default'].div.withConfig({
6032
- displayName: "SnackbarAction__StyledSnackbarAction",
6033
- componentId: "sc-1v5mjvd-0"
6034
- })(["display:inline-flex;margin-left:", ";margin-top:", ";margin-bottom:", ";"], snackbar.entities.actions.spacings.left, snackbar.entities.actions.spacings.top, snackbar.entities.actions.spacings.bottom);
6035
- const SnackbarAction = /*#__PURE__*/React.forwardRef(function SnackbarAction({
6036
- children,
6037
- ...rest
6038
- }, ref) {
6039
- const props = { ...rest,
6040
- ref
6041
- };
6042
- return /*#__PURE__*/jsxRuntime.jsx(StyledSnackbarAction, { ...props,
6043
- children: React.Children.only(children)
6044
- });
6045
- });
6046
-
6047
- const StyledSnackbar = styled__default['default'](Paper).attrs(() => ({
6048
- role: 'alert'
6049
- })).withConfig({
6197
+ const StyledSnackbar = styled__default['default'](Paper).withConfig({
6050
6198
  displayName: "Snackbar__StyledSnackbar",
6051
6199
  componentId: "sc-ac6no8-0"
6052
- })(["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, ({
6200
+ })(({
6201
+ theme,
6053
6202
  placement
6054
- }) => styled.css({
6055
- top: placement.includes('top') ? snackbar.spacings.top : placement === 'left' || placement === 'right' ? '50%' : undefined,
6056
- bottom: placement.includes('bottom') ? snackbar.spacings.bottom : undefined,
6057
- right: placement.includes('right') ? snackbar.spacings.right : undefined,
6058
- left: placement.includes('left') ? snackbar.spacings.left : placement === 'top' || placement === 'bottom' ? '50%' : undefined,
6059
- transform: placement === 'left' || placement === 'right' ? 'translateY(-50%)' : placement === 'top' || placement === 'bottom' ? 'translateX(-50%)' : undefined
6060
- }), snackbar.entities.button.typography.color);
6061
- const Snackbar$1 = /*#__PURE__*/React.forwardRef(function Snackbar({
6203
+ }) => {
6204
+ return styled.css(["position:fixed;background-color:", ";", " ", " ", " min-height:", ";box-sizing:border-box;z-index:300;", " a,button{color:", ";}"], theme.background, spacingsTemplate(theme.spacings), bordersTemplate(theme.border), typographyTemplate(theme.typography), theme.minHeight, {
6205
+ top: placement.includes('top') ? theme.spacings.top : placement === 'left' || placement === 'right' ? '50%' : undefined,
6206
+ bottom: placement.includes('bottom') ? theme.spacings.bottom : undefined,
6207
+ right: placement.includes('right') ? theme.spacings.right : undefined,
6208
+ left: placement.includes('left') ? theme.spacings.left : placement === 'top' || placement === 'bottom' ? '50%' : undefined,
6209
+ transform: placement === 'left' || placement === 'right' ? 'translateY(-50%)' : placement === 'top' || placement === 'bottom' ? 'translateX(-50%)' : undefined
6210
+ }, theme.entities.button.typography.color);
6211
+ });
6212
+ const Snackbar$1 = /*#__PURE__*/react.forwardRef(function Snackbar({
6062
6213
  open = false,
6063
6214
  autoHideDuration = 7000,
6064
6215
  onClose,
@@ -6066,13 +6217,13 @@ const Snackbar$1 = /*#__PURE__*/React.forwardRef(function Snackbar({
6066
6217
  children,
6067
6218
  ...rest
6068
6219
  }, ref) {
6069
- const [visible, setVisible] = React.useState(open);
6070
- const timer = React.useRef();
6220
+ const [visible, setVisible] = react.useState(open);
6221
+ const timer = react.useRef();
6071
6222
  const {
6072
6223
  setTimeout,
6073
6224
  clearTimeout
6074
6225
  } = window;
6075
- React.useEffect(() => {
6226
+ react.useEffect(() => {
6076
6227
  setVisible(open);
6077
6228
  timer.current = setTimeout(() => {
6078
6229
  setVisible(false);
@@ -6088,8 +6239,16 @@ const Snackbar$1 = /*#__PURE__*/React.forwardRef(function Snackbar({
6088
6239
  placement,
6089
6240
  ...rest
6090
6241
  };
6091
- return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
6242
+ const {
6243
+ density
6244
+ } = useEds();
6245
+ const token = useToken({
6246
+ density
6247
+ }, snackbar);
6248
+ return /*#__PURE__*/jsxRuntime.jsx(styled.ThemeProvider, {
6249
+ theme: token,
6092
6250
  children: visible && /*#__PURE__*/ReactDom__namespace.createPortal( /*#__PURE__*/jsxRuntime.jsx(StyledSnackbar, {
6251
+ role: "alert",
6093
6252
  elevation: "overlay",
6094
6253
  ...props,
6095
6254
  children: children
@@ -6167,30 +6326,48 @@ const popover = {
6167
6326
  border: {
6168
6327
  type: 'border',
6169
6328
  radius: borderRadius$2
6329
+ },
6330
+ modes: {
6331
+ compact: {}
6170
6332
  }
6171
6333
  };
6172
6334
 
6173
6335
  const PopoverPaper = styled__default['default'](Paper).withConfig({
6174
6336
  displayName: "Popover__PopoverPaper",
6175
6337
  componentId: "sc-b7p1is-0"
6176
- })(["", " ", " ", " display:grid;grid-gap:", ";grid-auto-columns:auto;align-items:center;align-content:start;background:", ";width:max-content;max-height:", ";max-width:", ";min-height:", ";", " z-index:300;.arrow{z-index:-1;width:", ";height:", ";}&[data-popper-placement^='top'] > .arrow{bottom:", ";.arrowSvg{transform:rotate(-90deg);}}&[data-popper-placement^='bottom'] > .arrow{top:", ";.arrowSvg{transform:rotate(90deg);}}&[data-popper-placement^='left'] > .arrow{right:", ";.arrowSvg{transform:rotate(-180deg);}}&[data-popper-placement^='right'] > .arrow{left:", ";}"], ({
6338
+ })(({
6339
+ theme,
6177
6340
  open
6178
- }) => styled.css({
6179
- visibility: open ? null : 'hidden'
6180
- }), typographyTemplate(popover.typography), spacingsTemplate(popover.spacings), popover.spacings.bottom, popover.background, popover.maxHeight, popover.maxWidth, popover.minHeight, bordersTemplate(popover.border), popover.entities.arrow.width, popover.entities.arrow.height, popover.entities.arrow.spacings.bottom, popover.entities.arrow.spacings.top, popover.entities.arrow.spacings.right, popover.entities.arrow.spacings.left);
6341
+ }) => {
6342
+ return styled.css(["", " ", " ", " display:grid;grid-gap:", ";grid-auto-columns:auto;align-items:center;align-content:start;background:", ";width:max-content;max-height:", ";max-width:", ";min-height:", ";", " z-index:300;.arrow{z-index:-1;width:", ";height:", ";}&[data-popper-placement^='top'] > .arrow{bottom:", ";.arrowSvg{transform:rotate(-90deg);}}&[data-popper-placement^='bottom'] > .arrow{top:", ";.arrowSvg{transform:rotate(90deg);}}&[data-popper-placement^='left'] > .arrow{right:", ";.arrowSvg{transform:rotate(-180deg);}}&[data-popper-placement^='right'] > .arrow{left:", ";}"], {
6343
+ visibility: open ? null : 'hidden'
6344
+ }, typographyTemplate(theme.typography), spacingsTemplate(theme.spacings), theme.spacings.bottom, theme.background, theme.maxHeight, theme.maxWidth, theme.minHeight, bordersTemplate(theme.border), theme.entities.arrow.width, theme.entities.arrow.height, theme.entities.arrow.spacings.bottom, theme.entities.arrow.spacings.top, theme.entities.arrow.spacings.right, theme.entities.arrow.spacings.left);
6345
+ });
6181
6346
  const StyledCloseButton = styled__default['default'](Button).withConfig({
6182
6347
  displayName: "Popover__StyledCloseButton",
6183
6348
  componentId: "sc-b7p1is-1"
6184
- })(["position:absolute;top:", ";right:", ";height:", ";width:", ";&:after{height:", ";}"], popover.entities.closeButton.spacings.top, popover.spacings.right, popover.entities.closeButton.height, popover.entities.closeButton.width, popover.entities.closeButton.height);
6349
+ })(({
6350
+ theme
6351
+ }) => {
6352
+ return styled.css(["position:absolute;top:", ";right:", ";height:", ";width:", ";&:after{height:", ";}"], theme.entities.closeButton.spacings.top, theme.spacings.right, theme.entities.closeButton.height, theme.entities.closeButton.width, theme.entities.closeButton.height);
6353
+ });
6185
6354
  const ArrowWrapper = styled__default['default'].div.withConfig({
6186
6355
  displayName: "Popover__ArrowWrapper",
6187
6356
  componentId: "sc-b7p1is-2"
6188
- })(["&,&::before{position:absolute;width:", ";height:", ";z-index:-1;}&::before{content:'';}"], popover.entities.arrow.width, popover.entities.arrow.height);
6357
+ })(({
6358
+ theme
6359
+ }) => {
6360
+ return styled.css(["&,&::before{position:absolute;width:", ";height:", ";z-index:-1;}&::before{content:'';}"], theme.entities.arrow.width, theme.entities.arrow.height);
6361
+ });
6189
6362
  const PopoverArrow = styled__default['default'].svg.withConfig({
6190
6363
  displayName: "Popover__PopoverArrow",
6191
6364
  componentId: "sc-b7p1is-3"
6192
- })(["width:", ";height:", ";position:absolute;fill:", ";filter:drop-shadow(-4px 0px 2px rgba(0,0,0,0.2));"], popover.entities.arrow.width, popover.entities.arrow.height, popover.background);
6193
- const Popover$1 = /*#__PURE__*/React.forwardRef(function Popover({
6365
+ })(({
6366
+ theme
6367
+ }) => {
6368
+ return styled.css(["width:", ";height:", ";position:absolute;fill:", ";filter:drop-shadow(-4px 0px 2px rgba(0,0,0,0.2));"], theme.entities.arrow.width, theme.entities.arrow.height, theme.background);
6369
+ });
6370
+ const Popover$1 = /*#__PURE__*/react.forwardRef(function Popover({
6194
6371
  children,
6195
6372
  placement = 'bottom',
6196
6373
  anchorEl,
@@ -6198,8 +6375,9 @@ const Popover$1 = /*#__PURE__*/React.forwardRef(function Popover({
6198
6375
  onClose,
6199
6376
  ...rest
6200
6377
  }, ref) {
6201
- const [popperEl, setPopperEl] = React.useState(null);
6202
- const [arrowRef, setArrowRef] = React.useState(null);
6378
+ const [popperEl, setPopperEl] = react.useState(null);
6379
+ const [storedAnchorEl, setStoredAnchorEl] = react.useState(null);
6380
+ const [arrowRef, setArrowRef] = react.useState(null);
6203
6381
  const popoverRef = useCombinedRefs(ref, setPopperEl);
6204
6382
  useOutsideClick(popperEl, e => {
6205
6383
  if (open && onClose !== null && anchorEl && !anchorEl.contains(e.target)) {
@@ -6211,54 +6389,75 @@ const Popover$1 = /*#__PURE__*/React.forwardRef(function Popover({
6211
6389
  onClose();
6212
6390
  }
6213
6391
  });
6392
+ react.useEffect(() => {
6393
+ open ? setStoredAnchorEl(anchorEl) : setStoredAnchorEl(null);
6394
+ return () => setStoredAnchorEl(null);
6395
+ }, [anchorEl, open]);
6214
6396
  const {
6215
6397
  styles,
6216
6398
  attributes
6217
- } = usePopper(anchorEl, popperEl, arrowRef, placement);
6399
+ } = usePopper(storedAnchorEl, popperEl, arrowRef, placement);
6218
6400
  const props = {
6219
6401
  open,
6220
6402
  ...rest,
6221
6403
  ...attributes.popper
6222
6404
  };
6223
- return /*#__PURE__*/jsxRuntime.jsxs(PopoverPaper, {
6224
- ref: popoverRef,
6225
- elevation: "overlay",
6226
- style: styles.popper,
6227
- "data-testid": "popover",
6228
- ...props,
6229
- children: [/*#__PURE__*/jsxRuntime.jsx(ArrowWrapper, {
6230
- ref: setArrowRef,
6231
- style: styles.arrow,
6232
- className: "arrow",
6233
- children: /*#__PURE__*/jsxRuntime.jsx(PopoverArrow, {
6234
- className: "arrowSvg",
6235
- children: /*#__PURE__*/jsxRuntime.jsx("path", {
6236
- d: "M0.504838 4.86885C-0.168399 4.48524 -0.168399 3.51476 0.504838 3.13115L6 8.59227e-08L6 8L0.504838 4.86885Z"
6405
+ const {
6406
+ density
6407
+ } = useEds();
6408
+ const token = useToken({
6409
+ density
6410
+ }, popover);
6411
+ return /*#__PURE__*/jsxRuntime.jsx(styled.ThemeProvider, {
6412
+ theme: token,
6413
+ children: /*#__PURE__*/jsxRuntime.jsxs(PopoverPaper, {
6414
+ ref: popoverRef,
6415
+ elevation: "overlay",
6416
+ style: styles.popper,
6417
+ "data-testid": "popover",
6418
+ ...props,
6419
+ children: [/*#__PURE__*/jsxRuntime.jsx(ArrowWrapper, {
6420
+ ref: setArrowRef,
6421
+ style: styles.arrow,
6422
+ className: "arrow",
6423
+ children: /*#__PURE__*/jsxRuntime.jsx(PopoverArrow, {
6424
+ className: "arrowSvg",
6425
+ children: /*#__PURE__*/jsxRuntime.jsx("path", {
6426
+ d: "M0.504838 4.86885C-0.168399 4.48524 -0.168399 3.51476 0.504838 3.13115L6 8.59227e-08L6 8L0.504838 4.86885Z"
6427
+ })
6237
6428
  })
6238
- })
6239
- }), children, /*#__PURE__*/jsxRuntime.jsx(StyledCloseButton, {
6240
- onClick: onClose,
6241
- variant: "ghost_icon",
6242
- "data-testid": "popover-close",
6243
- "aria-label": "Close popover",
6244
- children: /*#__PURE__*/jsxRuntime.jsx(Icon$1, {
6245
- name: "close",
6246
- data: edsIcons.close,
6247
- size: 24
6248
- })
6249
- })]
6429
+ }), children, /*#__PURE__*/jsxRuntime.jsx(StyledCloseButton, {
6430
+ onClick: onClose,
6431
+ variant: "ghost_icon",
6432
+ "data-testid": "popover-close",
6433
+ "aria-label": "Close popover",
6434
+ children: /*#__PURE__*/jsxRuntime.jsx(Icon$1, {
6435
+ name: "close",
6436
+ data: edsIcons.close,
6437
+ size: 24
6438
+ })
6439
+ })]
6440
+ })
6250
6441
  });
6251
6442
  });
6252
6443
 
6253
6444
  const StyledPopoverTitle = styled__default['default'].div.withConfig({
6254
6445
  displayName: "PopoverTitle__StyledPopoverTitle",
6255
6446
  componentId: "sc-1ben8su-0"
6256
- })(["margin-right:", ";max-width:calc(", " - ", ");overflow:hidden;margin-top:-", ";"], popover.entities.closeButton.width, popover.maxWidth, popover.entities.closeButton.width, popover.entities.title.spacings.top);
6447
+ })(({
6448
+ theme
6449
+ }) => {
6450
+ return styled.css(["margin-right:", ";max-width:calc(", " - ", ");overflow:hidden;margin-top:-", ";"], theme.entities.closeButton.width, theme.maxWidth, theme.entities.closeButton.width, theme.entities.title.spacings.top);
6451
+ });
6257
6452
  const StyledDivider = styled__default['default'](Divider).withConfig({
6258
6453
  displayName: "PopoverTitle__StyledDivider",
6259
6454
  componentId: "sc-1ben8su-1"
6260
- })(["margin-left:-", ";margin-right:-", ";margin-bottom:0;width:auto;max-width:", ";"], popover.spacings.left, popover.spacings.right, popover.maxWidth);
6261
- const PopoverTitle = /*#__PURE__*/React.forwardRef(function PopoverTitle({
6455
+ })(({
6456
+ theme
6457
+ }) => {
6458
+ return styled.css(["margin-left:-", ";margin-right:-", ";margin-bottom:0;width:auto;max-width:", ";"], theme.spacings.left, theme.spacings.right, theme.maxWidth);
6459
+ });
6460
+ const PopoverTitle = /*#__PURE__*/react.forwardRef(function PopoverTitle({
6262
6461
  children,
6263
6462
  ...rest
6264
6463
  }, ref) {
@@ -6278,7 +6477,7 @@ const ContentWrapper = styled__default['default'].div.withConfig({
6278
6477
  displayName: "PopoverContent__ContentWrapper",
6279
6478
  componentId: "sc-vwww9h-0"
6280
6479
  })(["overflow:hidden;"]);
6281
- const PopoverContent = /*#__PURE__*/React.forwardRef(function PopoverContent({
6480
+ const PopoverContent = /*#__PURE__*/react.forwardRef(function PopoverContent({
6282
6481
  children,
6283
6482
  ...rest
6284
6483
  }, ref) {
@@ -6337,7 +6536,7 @@ const {
6337
6536
  }
6338
6537
  }
6339
6538
  } = edsTokens.tokens;
6340
- const enabled$3 = {
6539
+ const enabled = {
6341
6540
  typography: { ...messageTypography
6342
6541
  },
6343
6542
  background: backgroundColor,
@@ -6356,6 +6555,9 @@ const enabled$3 = {
6356
6555
  radius: borderRadius$1
6357
6556
  }
6358
6557
  }
6558
+ },
6559
+ modes: {
6560
+ compact: {}
6359
6561
  }
6360
6562
  };
6361
6563
  const info$1 = {
@@ -6366,6 +6568,9 @@ const info$1 = {
6366
6568
  color: infoColor
6367
6569
  }
6368
6570
  }
6571
+ },
6572
+ modes: {
6573
+ compact: {}
6369
6574
  }
6370
6575
  };
6371
6576
  const warning$1 = {
@@ -6376,35 +6581,40 @@ const warning$1 = {
6376
6581
  color: warningColor
6377
6582
  }
6378
6583
  }
6584
+ },
6585
+ modes: {
6586
+ compact: {}
6379
6587
  }
6380
6588
  };
6381
6589
 
6382
6590
  var tokens$2 = /*#__PURE__*/Object.freeze({
6383
6591
  __proto__: null,
6384
- enabled: enabled$3,
6592
+ enabled: enabled,
6385
6593
  info: info$1,
6386
6594
  warning: warning$1
6387
6595
  });
6388
6596
 
6389
6597
  const {
6390
- enabled: enabled$2,
6391
6598
  info,
6392
6599
  warning
6393
6600
  } = tokens$2;
6394
6601
  const StyledBannerIcon = styled__default['default'].span.withConfig({
6395
6602
  displayName: "BannerIcon__StyledBannerIcon",
6396
6603
  componentId: "sc-7ow3zc-0"
6397
- })(["display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;", ";background-color:", ";width:", ";height:", ";margin-right:", ";"], bordersTemplate(enabled$2.entities.icon.border), ({
6604
+ })(({
6605
+ theme,
6398
6606
  variant
6399
- }) => variant === 'warning' ? warning.entities.icon.background : info.entities.icon.background, enabled$2.entities.icon.width, enabled$2.entities.icon.height, enabled$2.spacings.right);
6400
- const BannerIcon = /*#__PURE__*/React.forwardRef(function BannerIcon({
6607
+ }) => {
6608
+ return styled.css(["display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;", ";background-color:", ";width:", ";height:", ";margin-right:", ";"], bordersTemplate(theme.entities.icon.border), variant === 'warning' ? warning.entities.icon.background : info.entities.icon.background, theme.entities.icon.width, theme.entities.icon.height, theme.spacings.right);
6609
+ });
6610
+ const BannerIcon = /*#__PURE__*/react.forwardRef(function BannerIcon({
6401
6611
  children,
6402
6612
  variant = 'info',
6403
6613
  ...rest
6404
6614
  }, ref) {
6405
- const childrenWithColor = React.Children.map(children, child => {
6615
+ const childrenWithColor = react.Children.map(children, child => {
6406
6616
  const color = variant === 'warning' ? warning.entities.icon.typography.color : info.entities.icon.typography.color;
6407
- return /*#__PURE__*/React.isValidElement(child) && child.type === Icon$1 && /*#__PURE__*/React.cloneElement(child, {
6617
+ return /*#__PURE__*/react.isValidElement(child) && child.type === Icon$1 && /*#__PURE__*/react.cloneElement(child, {
6408
6618
  color
6409
6619
  }) || child;
6410
6620
  });
@@ -6423,41 +6633,50 @@ const StyledBanner = styled__default['default'].div.withConfig({
6423
6633
  displayName: "Banner__StyledBanner",
6424
6634
  componentId: "sc-1ju451i-0"
6425
6635
  })([""]);
6426
- const {
6427
- enabled: enabled$1
6428
- } = tokens$2;
6429
6636
  const Content$1 = styled__default['default'].div.withConfig({
6430
6637
  displayName: "Banner__Content",
6431
6638
  componentId: "sc-1ju451i-1"
6432
- })(["", " display:grid;grid-template-columns:", ";align-items:center;background-color:", ";"], spacingsTemplate(enabled$1.spacings), ({
6639
+ })(({
6640
+ theme,
6433
6641
  hasIcon
6434
- }) => hasIcon ? 'min-content 1fr auto' : '1fr auto', enabled$1.background);
6642
+ }) => {
6643
+ return styled.css(["", " display:grid;grid-template-columns:", ";align-items:center;background-color:", ";"], spacingsTemplate(theme.spacings), hasIcon ? 'min-content 1fr auto' : '1fr auto', theme.background);
6644
+ });
6435
6645
  const NonMarginDivider = styled__default['default'](Divider).withConfig({
6436
6646
  displayName: "Banner__NonMarginDivider",
6437
6647
  componentId: "sc-1ju451i-2"
6438
6648
  })(["margin:0;height:2px;"]);
6439
- const Banner$1 = /*#__PURE__*/React.forwardRef(function Banner({
6649
+ const Banner$1 = /*#__PURE__*/react.forwardRef(function Banner({
6440
6650
  children,
6441
6651
  className,
6442
6652
  ...rest
6443
6653
  }, ref) {
6444
- const childrenWhereBannerIcon = React.Children.map(children, child => {
6445
- return /*#__PURE__*/React.isValidElement(child) && child.type === BannerIcon;
6654
+ const childrenWhereBannerIcon = react.Children.map(children, child => {
6655
+ return /*#__PURE__*/react.isValidElement(child) && child.type === BannerIcon;
6446
6656
  });
6447
6657
  const hasIcon = childrenWhereBannerIcon.some(bool => bool);
6448
6658
  const props = {
6449
6659
  ref,
6450
6660
  ...rest
6451
6661
  };
6452
- return /*#__PURE__*/jsxRuntime.jsxs(StyledBanner, { ...props,
6453
- className: className,
6454
- role: "alert",
6455
- children: [/*#__PURE__*/jsxRuntime.jsx(Content$1, {
6456
- hasIcon: hasIcon,
6457
- children: children
6458
- }), /*#__PURE__*/jsxRuntime.jsx(NonMarginDivider, {
6459
- color: "light"
6460
- })]
6662
+ const {
6663
+ density
6664
+ } = useEds();
6665
+ const token = useToken({
6666
+ density
6667
+ }, enabled);
6668
+ return /*#__PURE__*/jsxRuntime.jsx(styled.ThemeProvider, {
6669
+ theme: token,
6670
+ children: /*#__PURE__*/jsxRuntime.jsxs(StyledBanner, { ...props,
6671
+ className: className,
6672
+ role: "alert",
6673
+ children: [/*#__PURE__*/jsxRuntime.jsx(Content$1, {
6674
+ hasIcon: hasIcon,
6675
+ children: children
6676
+ }), /*#__PURE__*/jsxRuntime.jsx(NonMarginDivider, {
6677
+ color: "light"
6678
+ })]
6679
+ })
6461
6680
  });
6462
6681
  });
6463
6682
 
@@ -6465,7 +6684,7 @@ const StyledBannerMessage = styled__default['default'](Typography).withConfig({
6465
6684
  displayName: "BannerMessage__StyledBannerMessage",
6466
6685
  componentId: "sc-1lfqos1-0"
6467
6686
  })([""]);
6468
- const BannerMessage = /*#__PURE__*/React.forwardRef(function BannerMessage({
6687
+ const BannerMessage = /*#__PURE__*/react.forwardRef(function BannerMessage({
6469
6688
  children,
6470
6689
  ...rest
6471
6690
  }, ref) {
@@ -6480,21 +6699,19 @@ const BannerMessage = /*#__PURE__*/React.forwardRef(function BannerMessage({
6480
6699
  });
6481
6700
  });
6482
6701
 
6483
- const {
6484
- enabled
6485
- } = tokens$2;
6486
6702
  const StyledBannerActions = styled__default['default'].div.withConfig({
6487
6703
  displayName: "BannerActions__StyledBannerActions",
6488
6704
  componentId: "sc-1o38ds2-0"
6489
- })(["display:flex;margin-left:", ";grid-gap:8px;grid-column:", ";", ""], enabled.spacings.left, ({
6490
- placement
6491
- }) => placement === 'bottom' ? '1/-1' : 'auto', ({
6705
+ })(({
6706
+ theme,
6492
6707
  placement
6493
- }) => placement === 'bottom' && {
6494
- marginTop: enabled.spacings.top,
6495
- marginLeft: '0'
6708
+ }) => {
6709
+ return styled.css(["display:flex;margin-left:", ";grid-gap:8px;grid-column:", ";", ""], theme.spacings.left, placement === 'bottom' ? '1/-1' : 'auto', placement === 'bottom' && {
6710
+ marginTop: theme.spacings.top,
6711
+ marginLeft: '0'
6712
+ });
6496
6713
  });
6497
- const BannerActions = /*#__PURE__*/React.forwardRef(function BannerActions({
6714
+ const BannerActions = /*#__PURE__*/react.forwardRef(function BannerActions({
6498
6715
  children,
6499
6716
  placement = 'left',
6500
6717
  ...rest
@@ -6552,7 +6769,7 @@ const IndeterminateProgressBar = styled__default['default'].div.withConfig({
6552
6769
  displayName: "LinearProgress__IndeterminateProgressBar",
6553
6770
  componentId: "sc-5orxpi-2"
6554
6771
  })(["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);
6555
- const LinearProgress = /*#__PURE__*/React.forwardRef(function LinearProgress({
6772
+ const LinearProgress = /*#__PURE__*/react.forwardRef(function LinearProgress({
6556
6773
  variant = 'indeterminate',
6557
6774
  value = null,
6558
6775
  ...rest
@@ -6659,7 +6876,7 @@ const getToken = color => {
6659
6876
  };
6660
6877
  };
6661
6878
 
6662
- const CircularProgress = /*#__PURE__*/React.forwardRef(function CircularProgress({
6879
+ const CircularProgress = /*#__PURE__*/react.forwardRef(function CircularProgress({
6663
6880
  variant = 'indeterminate',
6664
6881
  value = null,
6665
6882
  size = 48,
@@ -6738,7 +6955,7 @@ const Svg$3 = styled__default['default'].svg.withConfig({
6738
6955
  variant,
6739
6956
  progress
6740
6957
  }) => variant === 'indeterminate' ? styled.css(["path{&:nth-child(1){animation:", " 1.3s linear infinite;}&:nth-child(2){animation:", " 1.3s linear 0.3s infinite;}&:nth-child(3){animation:", " 1.3s linear 0.4s infinite;}&:nth-child(4){animation:", " 1.3s linear 0.6s infinite;}&:nth-child(5){animation:", " 1.3s linear 0.8s infinite;}&:nth-child(6){animation:", " 1.3s linear 1s infinite;}}"], indeterminate, indeterminate, indeterminate, indeterminate, indeterminate, indeterminate) : styled.css(["path{animation:", " 1.3s linear;&:nth-child(6){animation-play-state:", ";}&:nth-child(5){animation-play-state:", ";}&:nth-child(4){animation-play-state:", ";}&:nth-child(3){animation-play-state:", ";}&:nth-child(2){animation-play-state:", ";}&:nth-child(1){animation-play-state:", ";}}"], determinate, progress > 90 ? 'running' : 'paused', progress > 80 ? 'running' : 'paused', progress > 60 ? 'running' : 'paused', progress > 40 ? 'running' : 'paused', progress > 20 ? 'running' : 'paused', progress <= 20 ? 'running' : 'paused'));
6741
- const StarProgress = /*#__PURE__*/React.forwardRef(function StarProgress({
6958
+ const StarProgress = /*#__PURE__*/react.forwardRef(function StarProgress({
6742
6959
  variant = 'indeterminate',
6743
6960
  value = null,
6744
6961
  size = 48,
@@ -6835,7 +7052,7 @@ const getColor = color => {
6835
7052
  return color;
6836
7053
  };
6837
7054
 
6838
- const DotProgress = /*#__PURE__*/React.forwardRef(function DotProgress({
7055
+ const DotProgress = /*#__PURE__*/react.forwardRef(function DotProgress({
6839
7056
  color = 'neutral',
6840
7057
  size = 32,
6841
7058
  ...rest
@@ -6932,7 +7149,7 @@ const Collapsed = styled__default['default'](Typography).withConfig({
6932
7149
  displayName: "Breadcrumbs__Collapsed",
6933
7150
  componentId: "sc-12awlbz-3"
6934
7151
  })(["@media (hover:hover) and (pointer:fine){&:hover{text-decoration:underline;color:", ";}}color:", ";text-decoration:none;"], states$1.hover.typography.color, typography$5.color);
6935
- const Breadcrumbs$1 = /*#__PURE__*/React.forwardRef(function Breadcrumbs({
7152
+ const Breadcrumbs$1 = /*#__PURE__*/react.forwardRef(function Breadcrumbs({
6936
7153
  children,
6937
7154
  collapse,
6938
7155
  ...rest
@@ -6940,7 +7157,7 @@ const Breadcrumbs$1 = /*#__PURE__*/React.forwardRef(function Breadcrumbs({
6940
7157
  const props = { ...rest,
6941
7158
  ref
6942
7159
  };
6943
- const [expanded, setExpanded] = React.useState(false);
7160
+ const [expanded, setExpanded] = react.useState(false);
6944
7161
 
6945
7162
  const collapsedCrumbs = allCrumbs => {
6946
7163
  const handleExpandClick = e => {
@@ -6958,7 +7175,7 @@ const Breadcrumbs$1 = /*#__PURE__*/React.forwardRef(function Breadcrumbs({
6958
7175
  return allCrumbs;
6959
7176
  }
6960
7177
 
6961
- return [allCrumbs[0], /*#__PURE__*/jsxRuntime.jsxs(React.Fragment, {
7178
+ return [allCrumbs[0], /*#__PURE__*/jsxRuntime.jsxs(react.Fragment, {
6962
7179
  children: [/*#__PURE__*/jsxRuntime.jsx(ListItem$1, {
6963
7180
  children: /*#__PURE__*/jsxRuntime.jsx(Collapsed, {
6964
7181
  link: true,
@@ -6979,13 +7196,13 @@ const Breadcrumbs$1 = /*#__PURE__*/React.forwardRef(function Breadcrumbs({
6979
7196
  }, "collapsed"), allCrumbs[allCrumbs.length - 1]];
6980
7197
  };
6981
7198
 
6982
- const allCrumbs = React.Children.toArray(children).map((child, index) =>
7199
+ const allCrumbs = react.Children.toArray(children).map((child, index) =>
6983
7200
  /*#__PURE__*/
6984
7201
  // eslint-disable-next-line react/no-array-index-key
6985
- jsxRuntime.jsxs(React.Fragment, {
7202
+ jsxRuntime.jsxs(react.Fragment, {
6986
7203
  children: [/*#__PURE__*/jsxRuntime.jsx(ListItem$1, {
6987
7204
  children: child
6988
- }), index !== React.Children.toArray(children).length - 1 && /*#__PURE__*/jsxRuntime.jsx("li", {
7205
+ }), index !== react.Children.toArray(children).length - 1 && /*#__PURE__*/jsxRuntime.jsx("li", {
6989
7206
  "aria-hidden": true,
6990
7207
  children: /*#__PURE__*/jsxRuntime.jsx(Separator, {
6991
7208
  variant: "body_short",
@@ -7013,7 +7230,7 @@ const StyledTypography = styled__default['default'](Typography).withConfig({
7013
7230
  }) => styled.css({
7014
7231
  maxWidth
7015
7232
  }));
7016
- const Breadcrumb = /*#__PURE__*/React.forwardRef(function Breadcrumb({
7233
+ const Breadcrumb = /*#__PURE__*/react.forwardRef(function Breadcrumb({
7017
7234
  children,
7018
7235
  maxWidth,
7019
7236
  href,
@@ -7050,11 +7267,11 @@ const initalState = {
7050
7267
  focusedIndex: -1,
7051
7268
  onClose: null
7052
7269
  };
7053
- const MenuContext = /*#__PURE__*/React.createContext(initalState);
7270
+ const MenuContext = /*#__PURE__*/react.createContext(initalState);
7054
7271
  const MenuProvider = ({
7055
7272
  children
7056
7273
  }) => {
7057
- const [state, setState] = React.useState(initalState);
7274
+ const [state, setState] = react.useState(initalState);
7058
7275
  const {
7059
7276
  focusedIndex,
7060
7277
  onClose
@@ -7088,7 +7305,7 @@ const MenuProvider = ({
7088
7305
  children: children
7089
7306
  });
7090
7307
  };
7091
- const useMenu = () => React.useContext(MenuContext);
7308
+ const useMenu = () => react.useContext(MenuContext);
7092
7309
 
7093
7310
  const {
7094
7311
  colors: {
@@ -7252,7 +7469,7 @@ const Content = styled__default['default'].div.withConfig({
7252
7469
  displayName: "MenuItem__Content",
7253
7470
  componentId: "sc-1g9fpbe-1"
7254
7471
  })(["width:auto;display:grid;grid-gap:16px;grid-auto-flow:column;grid-auto-columns:max-content auto max-content;align-items:center;"]);
7255
- const MenuItem = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function MenuItem({
7472
+ const MenuItem = /*#__PURE__*/react.memo( /*#__PURE__*/react.forwardRef(function MenuItem({
7256
7473
  children,
7257
7474
  disabled,
7258
7475
  index = 0,
@@ -7305,7 +7522,7 @@ const Header = styled__default['default'].div.attrs(() => ({
7305
7522
  displayName: "MenuSection__Header",
7306
7523
  componentId: "sc-gfcbvg-0"
7307
7524
  })(["", " &:focus{outline:none;}"], spacingsTemplate(menu.entities.title.spacings));
7308
- const MenuSection = /*#__PURE__*/React__namespace.memo(function MenuSection(props) {
7525
+ const MenuSection = /*#__PURE__*/react.memo(function MenuSection(props) {
7309
7526
  const {
7310
7527
  children,
7311
7528
  title,
@@ -7332,11 +7549,11 @@ const List = styled__default['default'].div.withConfig({
7332
7549
  })(["position:relative;list-style:none;display:flex;flex-direction:column;margin:0;", " li:first-child{z-index:3;}"], spacingsTemplate(menu.spacings));
7333
7550
 
7334
7551
  function isIndexable(item) {
7335
- if ( /*#__PURE__*/React.isValidElement(item) && !item.props.disabled && item.type === MenuItem) return true;
7552
+ if ( /*#__PURE__*/react.isValidElement(item) && !item.props.disabled && item.type === MenuItem) return true;
7336
7553
  return false;
7337
7554
  }
7338
7555
 
7339
- const MenuList = /*#__PURE__*/React.forwardRef(function MenuList({
7556
+ const MenuList = /*#__PURE__*/react.forwardRef(function MenuList({
7340
7557
  children,
7341
7558
  focus,
7342
7559
  ...rest
@@ -7346,28 +7563,28 @@ const MenuList = /*#__PURE__*/React.forwardRef(function MenuList({
7346
7563
  setFocusedIndex
7347
7564
  } = useMenu();
7348
7565
  let index = -1;
7349
- const focusableIndexs = React.useMemo(() => [], []);
7350
- const updatedChildren = React.useMemo(() => React.Children.map(children, child => {
7566
+ const focusableIndexs = react.useMemo(() => [], []);
7567
+ const updatedChildren = react.useMemo(() => react.Children.map(children, child => {
7351
7568
  if (child.type === MenuSection) {
7352
- const updatedGrandChildren = React.Children.map(child.props.children, grandChild => {
7569
+ const updatedGrandChildren = react.Children.map(child.props.children, grandChild => {
7353
7570
  index++;
7354
7571
  if (isIndexable(grandChild)) focusableIndexs.push(index);
7355
- return /*#__PURE__*/React.cloneElement(grandChild, {
7572
+ return /*#__PURE__*/react.cloneElement(grandChild, {
7356
7573
  index
7357
7574
  });
7358
7575
  });
7359
- return /*#__PURE__*/React.cloneElement(child, null, updatedGrandChildren);
7576
+ return /*#__PURE__*/react.cloneElement(child, null, updatedGrandChildren);
7360
7577
  } else {
7361
7578
  index++;
7362
7579
  if (isIndexable(child)) focusableIndexs.push(index);
7363
- return /*#__PURE__*/React.cloneElement(child, {
7580
+ return /*#__PURE__*/react.cloneElement(child, {
7364
7581
  index
7365
7582
  });
7366
7583
  }
7367
7584
  }), [children, focusableIndexs, index]);
7368
7585
  const firstFocusIndex = focusableIndexs[0];
7369
7586
  const lastFocusIndex = focusableIndexs[focusableIndexs.length - 1];
7370
- React.useEffect(() => {
7587
+ react.useEffect(() => {
7371
7588
  if (focus === 'first') {
7372
7589
  setFocusedIndex(firstFocusIndex);
7373
7590
  }
@@ -7423,7 +7640,7 @@ const MenuPaper = styled__default['default'](Paper).withConfig({
7423
7640
  }) => styled.css({
7424
7641
  visibility: open ? null : 'hidden'
7425
7642
  }));
7426
- const MenuContainer = /*#__PURE__*/React.forwardRef(function MenuContainer({
7643
+ const MenuContainer = /*#__PURE__*/react.forwardRef(function MenuContainer({
7427
7644
  children,
7428
7645
  anchorEl,
7429
7646
  onClose: onCloseCallback,
@@ -7435,11 +7652,11 @@ const MenuContainer = /*#__PURE__*/React.forwardRef(function MenuContainer({
7435
7652
  setOnClose,
7436
7653
  onClose
7437
7654
  } = useMenu();
7438
- React.useEffect(() => {
7655
+ react.useEffect(() => {
7439
7656
  if (onClose === null && onCloseCallback) {
7440
7657
  setOnClose(onCloseCallback);
7441
7658
  }
7442
- });
7659
+ }, [onClose, onCloseCallback, setOnClose]);
7443
7660
  useOutsideClick(containerEl, e => {
7444
7661
  if (open && onClose !== null && !anchorEl.contains(e.target)) {
7445
7662
  onClose();
@@ -7461,7 +7678,7 @@ const MenuContainer = /*#__PURE__*/React.forwardRef(function MenuContainer({
7461
7678
  children: children
7462
7679
  });
7463
7680
  });
7464
- const Menu$1 = /*#__PURE__*/React.forwardRef(function Menu({
7681
+ const Menu$1 = /*#__PURE__*/react.forwardRef(function Menu({
7465
7682
  anchorEl,
7466
7683
  open,
7467
7684
  placement = 'auto',
@@ -7469,7 +7686,8 @@ const Menu$1 = /*#__PURE__*/React.forwardRef(function Menu({
7469
7686
  className,
7470
7687
  ...rest
7471
7688
  }, ref) {
7472
- const [containerEl, setContainerEl] = React.useState(null);
7689
+ const [containerEl, setContainerEl] = react.useState(null);
7690
+ const [storedAnchorEl, setStoredAnchorEl] = react.useState(null);
7473
7691
  const isMounted = useIsMounted();
7474
7692
  const {
7475
7693
  density
@@ -7477,10 +7695,14 @@ const Menu$1 = /*#__PURE__*/React.forwardRef(function Menu({
7477
7695
  const token = useToken({
7478
7696
  density
7479
7697
  }, menu);
7698
+ react.useEffect(() => {
7699
+ open ? setStoredAnchorEl(anchorEl) : setStoredAnchorEl(null);
7700
+ return () => setStoredAnchorEl(null);
7701
+ }, [anchorEl, open]);
7480
7702
  const {
7481
7703
  styles,
7482
7704
  attributes
7483
- } = usePopper(anchorEl, containerEl, null, placement, 4);
7705
+ } = usePopper(storedAnchorEl, containerEl, null, placement, 4);
7484
7706
  const props = {
7485
7707
  open,
7486
7708
  style: { ...styles.popper,
@@ -7554,7 +7776,7 @@ const pagination = {
7554
7776
  }
7555
7777
  };
7556
7778
 
7557
- const PaginationItem = /*#__PURE__*/React.forwardRef(function PaginationItem({
7779
+ const PaginationItem = /*#__PURE__*/react.forwardRef(function PaginationItem({
7558
7780
  page,
7559
7781
  selected,
7560
7782
  onClick,
@@ -7660,7 +7882,7 @@ function getAriaLabel(page, selected) {
7660
7882
  return "".concat(selected === page ? 'Current page, ' : 'Go to ', "page ").concat(page);
7661
7883
  }
7662
7884
 
7663
- const Pagination = /*#__PURE__*/React.forwardRef(function Pagination({
7885
+ const Pagination = /*#__PURE__*/react.forwardRef(function Pagination({
7664
7886
  totalItems,
7665
7887
  defaultPage = 1,
7666
7888
  withItemIndicator,
@@ -7672,7 +7894,7 @@ const Pagination = /*#__PURE__*/React.forwardRef(function Pagination({
7672
7894
 
7673
7895
  const columns = pages < 5 ? pages + 2 : 7; // Total pages to display on the control + 2: < and >
7674
7896
 
7675
- const [activePage, setActivePage] = React.useState(defaultPage);
7897
+ const [activePage, setActivePage] = react.useState(defaultPage);
7676
7898
  const currentItemFirst = activePage === 1 ? 1 : activePage * itemsPerPage - itemsPerPage + 1; // First number of range of items at current page
7677
7899
 
7678
7900
  const currentItemLast = activePage === pages ? totalItems : activePage * itemsPerPage; // Last number of range of items at current page
@@ -7690,7 +7912,7 @@ const Pagination = /*#__PURE__*/React.forwardRef(function Pagination({
7690
7912
 
7691
7913
  const isMounted = useIsMounted();
7692
7914
  const items = PaginationControl(pages, activePage);
7693
- React.useLayoutEffect(() => {
7915
+ react.useLayoutEffect(() => {
7694
7916
  if (isMounted) {
7695
7917
  setActivePage(1);
7696
7918
  onChange === null || onChange === void 0 ? void 0 : onChange(null, 1);
@@ -7837,7 +8059,7 @@ const StyledSelect = styled__default['default'].select.withConfig({
7837
8059
  })(["border:none;border-radius:0;box-shadow:", ";", " ", " padding-right:calc(", " *2 + ", ");display:block;margin:0;appearance:none;background-image:url(\"data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%236f6f6f' d='M7 9.5l5 5 5-5H7z'/%3E%3C/svg%3E\"),linear-gradient( to bottom,", " 0%,", " 100% );background-repeat:no-repeat,repeat;background-position:right ", " top 50%;width:100%;&:active,&:focus{box-shadow:none;", "}&:disabled{color:", ";background-image:url(\"data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23bebebe' d='M7 9.5l5 5 5-5H7z'/%3E%3C/svg%3E\"),linear-gradient( to bottom,", " 0%,", " 100% );cursor:not-allowed;box-shadow:none;outline:none;.arrow-icon{fill:red;}&:focus,&:active{outline:none;}}"], nativeselect.boxShadow, typographyTemplate(nativeselect.typography), ({
7838
8060
  theme
7839
8061
  }) => styled.css(["height:", ";", ""], theme.minHeight, spacingsTemplate(theme.entities.input.spacings)), nativeselect.entities.input.spacings.right, nativeselect.entities.icon.width, nativeselect.background, nativeselect.background, nativeselect.entities.input.spacings.right, outlineTemplate(nativeselect.states.focus.outline), nativeselect.states.disabled.typography.color, nativeselect.background, nativeselect.background);
7840
- const NativeSelect = /*#__PURE__*/React.forwardRef(function NativeSelect({
8062
+ const NativeSelect = /*#__PURE__*/react.forwardRef(function NativeSelect({
7841
8063
  label,
7842
8064
  children,
7843
8065
  className,
@@ -7936,6 +8158,9 @@ const select = {
7936
8158
  left: spacingSmall,
7937
8159
  right: spacingSmall,
7938
8160
  top: '6px'
8161
+ },
8162
+ typography: {
8163
+ color: colors.text.static_icons__tertiary.rgba
7939
8164
  }
7940
8165
  }
7941
8166
  },
@@ -7985,7 +8210,7 @@ const Container = styled__default['default'].div.withConfig({
7985
8210
  displayName: "commonStyles__Container",
7986
8211
  componentId: "sc-v98ajk-0"
7987
8212
  })(["position:relative;"]);
7988
- const PaddedInput = styled__default['default'](Input$5).withConfig({
8213
+ const PaddedInput = styled__default['default'](Input$4).withConfig({
7989
8214
  displayName: "commonStyles__PaddedInput",
7990
8215
  componentId: "sc-v98ajk-1"
7991
8216
  })(["padding-right:calc( ", " + ", " + ", " + 0px );"], buttonToken.height, buttonToken.spacings.left, buttonToken.spacings.right);
@@ -8014,7 +8239,7 @@ const StyledButton = styled__default['default'](Button).withConfig({
8014
8239
  }
8015
8240
  }
8016
8241
  }) => {
8017
- return styled.css(["position:absolute;right:", ";height:", ";width:", ";top:", ";"], button.spacings.right, button.height, button.height, button.spacings.top);
8242
+ return styled.css(["position:absolute;right:", ";height:", ";width:", ";top:", ";color:", ";"], button.spacings.right, button.height, button.height, button.spacings.top, button.typography.color);
8018
8243
  });
8019
8244
  const StyledInputWrapper = styled__default['default'].div.withConfig({
8020
8245
  displayName: "commonStyles__StyledInputWrapper",
@@ -8027,7 +8252,7 @@ const PaddedStyledListItem$1 = styled__default['default'](StyledListItem).withCo
8027
8252
  })(["", ""], ({
8028
8253
  theme
8029
8254
  }) => spacingsTemplate(theme.spacings));
8030
- const SingleSelect = /*#__PURE__*/React.forwardRef(function SingleSelect({
8255
+ const SingleSelect = /*#__PURE__*/react.forwardRef(function SingleSelect({
8031
8256
  items = [],
8032
8257
  label,
8033
8258
  meta,
@@ -8039,7 +8264,7 @@ const SingleSelect = /*#__PURE__*/React.forwardRef(function SingleSelect({
8039
8264
  handleSelectedItemChange,
8040
8265
  ...other
8041
8266
  }, ref) {
8042
- const [inputItems, setInputItems] = React.useState(items);
8267
+ const [inputItems, setInputItems] = react.useState(items);
8043
8268
  const isControlled = selectedOption !== undefined ? true : false;
8044
8269
  const {
8045
8270
  density
@@ -8047,7 +8272,7 @@ const SingleSelect = /*#__PURE__*/React.forwardRef(function SingleSelect({
8047
8272
  const token = useToken({
8048
8273
  density
8049
8274
  }, select);
8050
- React.useEffect(() => {
8275
+ react.useEffect(() => {
8051
8276
  setInputItems(items);
8052
8277
  }, [items]);
8053
8278
  let comboboxProps = {
@@ -8290,7 +8515,7 @@ const InputWrapper$1 = styled__default['default'].span.withConfig({
8290
8515
  }) => spacingsTemplate(theme.spacings), ({
8291
8516
  disabled
8292
8517
  }) => disabled ? 'transparent' : checkbox.states.hover.background);
8293
- const CheckboxInput = /*#__PURE__*/React.forwardRef(function CheckboxInput({
8518
+ const CheckboxInput = /*#__PURE__*/react.forwardRef(function CheckboxInput({
8294
8519
  disabled = false,
8295
8520
  indeterminate,
8296
8521
  ...rest
@@ -8352,7 +8577,7 @@ const PaddedStyledListItem = styled__default['default'](StyledListItem).withConf
8352
8577
  })(["display:flex;align-items:center;", ""], ({
8353
8578
  theme
8354
8579
  }) => spacingsTemplate(theme.spacings));
8355
- const MultiSelect = /*#__PURE__*/React.forwardRef(function MultiSelect({
8580
+ const MultiSelect = /*#__PURE__*/react.forwardRef(function MultiSelect({
8356
8581
  items = [],
8357
8582
  initialSelectedItems = [],
8358
8583
  label,
@@ -8365,7 +8590,7 @@ const MultiSelect = /*#__PURE__*/React.forwardRef(function MultiSelect({
8365
8590
  ...other
8366
8591
  }, ref) {
8367
8592
  const isControlled = selectedOptions ? true : false;
8368
- const [inputValue, setInputValue] = React.useState('');
8593
+ const [inputValue, setInputValue] = react.useState('');
8369
8594
  const {
8370
8595
  density
8371
8596
  } = useEds();
@@ -8451,8 +8676,9 @@ const MultiSelect = /*#__PURE__*/React.forwardRef(function MultiSelect({
8451
8676
  case downshift.useCombobox.stateChangeTypes.InputKeyDownEnter:
8452
8677
  case downshift.useCombobox.stateChangeTypes.ItemClick:
8453
8678
  case downshift.useCombobox.stateChangeTypes.InputBlur:
8679
+ setInputValue('');
8680
+
8454
8681
  if (selectedItem) {
8455
- setInputValue('');
8456
8682
  selectedItems.includes(selectedItem) ? removeSelectedItem(selectedItem) : addSelectedItem(selectedItem);
8457
8683
  }
8458
8684
 
@@ -8468,6 +8694,11 @@ const MultiSelect = /*#__PURE__*/React.forwardRef(function MultiSelect({
8468
8694
  }
8469
8695
  };
8470
8696
 
8697
+ const handleClear = () => {
8698
+ reset();
8699
+ setInputValue('');
8700
+ };
8701
+
8471
8702
  return /*#__PURE__*/jsxRuntime.jsx(styled.ThemeProvider, {
8472
8703
  theme: token,
8473
8704
  children: /*#__PURE__*/jsxRuntime.jsxs(Container, {
@@ -8491,7 +8722,7 @@ const MultiSelect = /*#__PURE__*/React.forwardRef(function MultiSelect({
8491
8722
  disabled: disabled || readOnly,
8492
8723
  "aria-label": 'clear options',
8493
8724
  title: "clear",
8494
- onClick: reset,
8725
+ onClick: handleClear,
8495
8726
  style: {
8496
8727
  right: 32
8497
8728
  },
@@ -8544,7 +8775,7 @@ const LabelText$1 = styled__default['default'].span.withConfig({
8544
8775
  displayName: "Checkbox__LabelText",
8545
8776
  componentId: "sc-yg6l8h-1"
8546
8777
  })(["", ";"], typographyTemplate(checkbox.typography));
8547
- const Checkbox = /*#__PURE__*/React.forwardRef(function Checkbox({
8778
+ const Checkbox = /*#__PURE__*/react.forwardRef(function Checkbox({
8548
8779
  label,
8549
8780
  disabled = false,
8550
8781
  indeterminate,
@@ -8719,7 +8950,7 @@ const InputWrapper = styled__default['default'].span.withConfig({
8719
8950
  }) => disabled ? 'not-allowed' : 'pointer', ({
8720
8951
  disabled
8721
8952
  }) => disabled ? 'transparent' : comfortable$1.states.hover.background);
8722
- const Radio = /*#__PURE__*/React.forwardRef(function Radio({
8953
+ const Radio = /*#__PURE__*/react.forwardRef(function Radio({
8723
8954
  label,
8724
8955
  disabled = false,
8725
8956
  className,
@@ -8733,7 +8964,7 @@ const Radio = /*#__PURE__*/React.forwardRef(function Radio({
8733
8964
  }, comfortable$1);
8734
8965
  const iconSize = 24;
8735
8966
  const fill = disabled ? comfortable$1.states.disabled.background : comfortable$1.background;
8736
- const renderSVG = React.useMemo(() => {
8967
+ const renderSVG = react.useMemo(() => {
8737
8968
  return /*#__PURE__*/jsxRuntime.jsxs(Svg, {
8738
8969
  width: iconSize,
8739
8970
  height: iconSize,
@@ -8841,7 +9072,7 @@ const Handle$1 = styled__default['default'].span.withConfig({
8841
9072
  }
8842
9073
  }
8843
9074
  }) => styled.css(["background-color:", ";width:", ";height:", ";border-radius:50%;display:inline-block;position:absolute;top:50%;transform:translate(11%,-50%);left:7px;transition:transform 0.36s cubic-bezier(0.78,0.14,0.15,0.86);"], handle.background, handle.width, handle.height));
8844
- const SwitchSmall = /*#__PURE__*/React.forwardRef(function SwitchSmall({
9075
+ const SwitchSmall = /*#__PURE__*/react.forwardRef(function SwitchSmall({
8845
9076
  disabled,
8846
9077
  ...rest
8847
9078
  }, ref) {
@@ -8893,7 +9124,7 @@ const Handle = styled__default['default'].span.withConfig({
8893
9124
  }) => styled.css(["background-color:", ";", " box-shadow:", ";width:", ";height:", ";border-radius:50%;display:inline-block;position:absolute;top:50%;transform:translate(0,-50%);left:4px;transition:transform 0.36s cubic-bezier(0.78,0.14,0.15,0.86);"], handle.background, isDisabled && {
8894
9125
  backgroundColor: states.disabled.background
8895
9126
  }, handle.boxShadow, handle.width, handle.height));
8896
- const SwitchDefault = /*#__PURE__*/React.forwardRef(function SwitchDefault({
9127
+ const SwitchDefault = /*#__PURE__*/react.forwardRef(function SwitchDefault({
8897
9128
  disabled,
8898
9129
  ...rest
8899
9130
  }, ref) {
@@ -9089,7 +9320,7 @@ const Label = styled__default['default'].span.withConfig({
9089
9320
  })(({
9090
9321
  theme
9091
9322
  }) => styled.css(["", " margin-left:", ";"], typographyTemplate(theme.typography), theme.entities.label.spacings.left));
9092
- const Switch = /*#__PURE__*/React.forwardRef(function Switch({
9323
+ const Switch = /*#__PURE__*/react.forwardRef(function Switch({
9093
9324
  size = 'default',
9094
9325
  disabled,
9095
9326
  label,
@@ -9147,7 +9378,7 @@ exports.Divider = Divider;
9147
9378
  exports.DotProgress = DotProgress;
9148
9379
  exports.EdsProvider = EdsProvider;
9149
9380
  exports.Icon = Icon$1;
9150
- exports.Input = Input$5;
9381
+ exports.Input = Input$4;
9151
9382
  exports.Label = Label$1;
9152
9383
  exports.LinearProgress = LinearProgress;
9153
9384
  exports.List = List$1;