@equinor/eds-core-react 0.15.0-dev.20211116 → 0.16.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 (116) hide show
  1. package/dist/core-react.cjs.js +1365 -1039
  2. package/dist/esm/components/Accordion/Accordion.js +5 -4
  3. package/dist/esm/components/Accordion/AccordionHeader.js +15 -13
  4. package/dist/esm/components/Accordion/AccordionHeaderTitle.js +5 -3
  5. package/dist/esm/components/Accordion/AccordionItem.js +7 -6
  6. package/dist/esm/components/Accordion/AccordionPanel.js +7 -6
  7. package/dist/esm/components/Avatar/Avatar.js +10 -8
  8. package/dist/esm/components/Banner/Banner.js +10 -8
  9. package/dist/esm/components/Banner/BannerActions.js +6 -4
  10. package/dist/esm/components/Banner/BannerIcon.js +6 -4
  11. package/dist/esm/components/Banner/BannerMessage.js +6 -4
  12. package/dist/esm/components/Breadcrumbs/Breadcrumb.js +12 -7
  13. package/dist/esm/components/Breadcrumbs/Breadcrumbs.js +37 -25
  14. package/dist/esm/components/Button/Button.js +12 -4
  15. package/dist/esm/components/Button/InnerFullWidth.js +8 -4
  16. package/dist/esm/components/Button/tokens/button.js +2 -2
  17. package/dist/esm/components/Button/tokens/icon.js +2 -2
  18. package/dist/esm/components/Card/Card.js +7 -7
  19. package/dist/esm/components/Card/CardActions.js +13 -5
  20. package/dist/esm/components/Card/CardContent.js +24 -0
  21. package/dist/esm/components/Card/CardHeader.js +5 -2
  22. package/dist/esm/components/Card/CardHeaderTitle.js +4 -1
  23. package/dist/esm/components/Card/CardMedia.js +6 -3
  24. package/dist/esm/components/Card/index.js +3 -0
  25. package/dist/esm/components/Checkbox/Checkbox.js +13 -9
  26. package/dist/esm/components/Checkbox/Input.js +37 -28
  27. package/dist/esm/components/Chip/Chip.js +13 -12
  28. package/dist/esm/components/Dialog/Actions.js +6 -4
  29. package/dist/esm/components/Dialog/CustomContent.js +11 -7
  30. package/dist/esm/components/Dialog/Dialog.js +7 -6
  31. package/dist/esm/components/Dialog/Title.js +12 -8
  32. package/dist/esm/components/Divider/Divider.js +3 -3
  33. package/dist/esm/components/Divider/Divider.tokens.js +2 -2
  34. package/dist/esm/components/EdsProvider/eds.context.js +5 -3
  35. package/dist/esm/components/Icon/Icon.js +19 -15
  36. package/dist/esm/components/Input/Input.js +6 -3
  37. package/dist/esm/components/Label/Label.js +10 -4
  38. package/dist/esm/components/List/List.js +6 -4
  39. package/dist/esm/components/List/ListItem.js +5 -4
  40. package/dist/esm/components/Menu/Menu.context.js +11 -4
  41. package/dist/esm/components/Menu/Menu.js +26 -12
  42. package/dist/esm/components/Menu/MenuItem.js +12 -9
  43. package/dist/esm/components/Menu/MenuList.js +9 -8
  44. package/dist/esm/components/Menu/MenuSection.js +16 -8
  45. package/dist/esm/components/Pagination/Pagination.js +62 -56
  46. package/dist/esm/components/Pagination/PaginationItem.js +6 -4
  47. package/dist/esm/components/Paper/Paper.js +3 -3
  48. package/dist/esm/components/Popover/Popover.js +26 -21
  49. package/dist/esm/components/Popover/PopoverContent.js +4 -1
  50. package/dist/esm/components/Popover/PopoverTitle.js +8 -3
  51. package/dist/esm/components/Progress/Circular/CircularProgress.js +24 -23
  52. package/dist/esm/components/Progress/Dots/DotProgress.js +17 -16
  53. package/dist/esm/components/Progress/Linear/LinearProgress.js +8 -7
  54. package/dist/esm/components/Progress/Star/StarProgress.js +17 -16
  55. package/dist/esm/components/Radio/Radio.js +40 -30
  56. package/dist/esm/components/Scrim/Scrim.js +9 -6
  57. package/dist/esm/components/Search/Search.js +23 -17
  58. package/dist/esm/components/Search/Search.tokens.js +7 -0
  59. package/dist/esm/components/Select/MultiSelect/MultiSelect.js +65 -53
  60. package/dist/esm/components/Select/NativeSelect/NativeSelect.js +10 -3
  61. package/dist/esm/components/Select/SingleSelect/SingleSelect.js +56 -46
  62. package/dist/esm/components/SideSheet/SideSheet.js +19 -14
  63. package/dist/esm/components/Slider/MinMax.js +5 -3
  64. package/dist/esm/components/Slider/Output.js +5 -3
  65. package/dist/esm/components/Slider/Slider.js +96 -77
  66. package/dist/esm/components/Slider/SliderInput.js +4 -4
  67. package/dist/esm/components/Snackbar/Snackbar.js +8 -4
  68. package/dist/esm/components/Snackbar/SnackbarAction.js +4 -1
  69. package/dist/esm/components/Switch/Switch.js +27 -23
  70. package/dist/esm/components/Switch/Switch.styles.js +1 -1
  71. package/dist/esm/components/Switch/Switch.tokens.js +4 -4
  72. package/dist/esm/components/Switch/SwitchDefault.js +13 -9
  73. package/dist/esm/components/Switch/SwitchSmall.js +13 -8
  74. package/dist/esm/components/Table/Body.js +8 -6
  75. package/dist/esm/components/Table/Caption.js +3 -3
  76. package/dist/esm/components/Table/Cell.js +20 -16
  77. package/dist/esm/components/Table/DataCell/DataCell.js +8 -6
  78. package/dist/esm/components/Table/Head/Head.js +8 -6
  79. package/dist/esm/components/Table/HeaderCell/HeaderCell.js +12 -8
  80. package/dist/esm/components/Table/Row/Row.js +5 -4
  81. package/dist/esm/components/Table/Table.js +5 -4
  82. package/dist/esm/components/TableOfContents/LinkItem.js +5 -4
  83. package/dist/esm/components/TableOfContents/TableOfContents.js +11 -6
  84. package/dist/esm/components/Tabs/Tab.js +7 -6
  85. package/dist/esm/components/Tabs/TabList.js +9 -8
  86. package/dist/esm/components/Tabs/TabPanel.js +7 -5
  87. package/dist/esm/components/Tabs/TabPanels.js +8 -6
  88. package/dist/esm/components/Tabs/Tabs.js +10 -9
  89. package/dist/esm/components/TextField/Field.js +19 -11
  90. package/dist/esm/components/TextField/HelperText/HelperText.js +19 -16
  91. package/dist/esm/components/TextField/Icon/Icon.js +7 -4
  92. package/dist/esm/components/TextField/TextField.context.js +5 -3
  93. package/dist/esm/components/TextField/TextField.js +12 -3
  94. package/dist/esm/components/Textarea/Textarea.js +4 -2
  95. package/dist/esm/components/Tooltip/Tooltip.js +21 -15
  96. package/dist/esm/components/TopBar/Actions.js +7 -5
  97. package/dist/esm/components/TopBar/CustomContent.js +6 -4
  98. package/dist/esm/components/TopBar/Header.js +6 -4
  99. package/dist/esm/components/TopBar/TopBar.js +5 -4
  100. package/dist/esm/components/Typography/Typography.js +9 -7
  101. package/dist/esm/hooks/useAutoResize.js +1 -1
  102. package/dist/esm/hooks/useId.js +1 -1
  103. package/dist/esm/index.js +0 -1
  104. package/dist/esm/utils/templates/common.js +1 -1
  105. package/dist/esm/utils/templates/index.js +8 -15
  106. package/dist/types/components/Card/CardContent.d.ts +3 -0
  107. package/dist/types/components/Card/index.d.ts +3 -1
  108. package/dist/types/components/Menu/Menu.d.ts +2 -2
  109. package/dist/types/components/Menu/MenuItem.d.ts +2 -2
  110. package/dist/types/components/Menu/MenuList.d.ts +1 -1
  111. package/dist/types/components/Table/Cell.d.ts +2 -2
  112. package/dist/types/components/Table/DataCell/DataCell.d.ts +1 -1
  113. package/dist/types/components/Table/HeaderCell/HeaderCell.d.ts +1 -1
  114. package/dist/types/components/Typography/Typography.tokens.d.ts +2 -1
  115. package/dist/types/index.d.ts +0 -1
  116. package/package.json +5 -5
@@ -2,12 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('focus-visible');
6
- var _extends = require('@babel/runtime/helpers/extends');
7
- var React$1 = require('react');
5
+ var React = require('react');
8
6
  var styled = require('styled-components');
9
7
  var edsTokens = require('@equinor/eds-tokens');
10
8
  var R = require('ramda');
9
+ var jsxRuntime = require('react/jsx-runtime');
11
10
  var edsIcons = require('@equinor/eds-icons');
12
11
  var ReactDom = require('react-dom');
13
12
  var reactPopper = require('react-popper');
@@ -35,8 +34,7 @@ function _interopNamespace(e) {
35
34
  return Object.freeze(n);
36
35
  }
37
36
 
38
- var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
39
- var React__namespace = /*#__PURE__*/_interopNamespace(React$1);
37
+ var React__namespace = /*#__PURE__*/_interopNamespace(React);
40
38
  var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
41
39
  var R__namespace = /*#__PURE__*/_interopNamespace(R);
42
40
  var ReactDom__namespace = /*#__PURE__*/_interopNamespace(ReactDom);
@@ -86,7 +84,7 @@ const {
86
84
  compact__standard: compactClickboundHeight$1
87
85
  }
88
86
  } = edsTokens.tokens;
89
- const button = {
87
+ const button$1 = {
90
88
  background: 'transparent',
91
89
  height: buttonHeight,
92
90
  typography: { ...buttonTypography,
@@ -107,7 +105,7 @@ const button = {
107
105
  height: clicboundHeight$1,
108
106
  width: '100%',
109
107
  offset: {
110
- top: `${(parseInt(clicboundHeight$1) - parseInt(buttonHeight)) / 2 + 1}px`,
108
+ top: "".concat((parseInt(clicboundHeight$1) - parseInt(buttonHeight)) / 2 + 1, "px"),
111
109
  left: '0'
112
110
  }
113
111
  },
@@ -157,7 +155,7 @@ const button = {
157
155
  height: compactClickboundHeight$1,
158
156
  width: '100%',
159
157
  offset: {
160
- top: `${(parseInt(compactClickboundHeight$1) - parseInt(compactButtonHeight)) / 2 + 1}px`,
158
+ top: "".concat((parseInt(compactClickboundHeight$1) - parseInt(compactButtonHeight)) / 2 + 1, "px"),
161
159
  left: '0'
162
160
  }
163
161
  }
@@ -199,7 +197,7 @@ const {
199
197
  }
200
198
  }
201
199
  } = edsTokens.tokens;
202
- const primary$9 = R__namespace.mergeDeepRight(button, {
200
+ const primary$9 = R__namespace.mergeDeepRight(button$1, {
203
201
  background: primaryColor$8,
204
202
  typography: {
205
203
  color: primaryWhite
@@ -284,7 +282,7 @@ const {
284
282
  }
285
283
  }
286
284
  } = edsTokens.tokens;
287
- const primary$8 = R__namespace.mergeDeepRight(button, {
285
+ const primary$8 = R__namespace.mergeDeepRight(button$1, {
288
286
  typography: {
289
287
  color: primaryColor$7
290
288
  },
@@ -385,7 +383,7 @@ const {
385
383
  }
386
384
  }
387
385
  } = edsTokens.tokens;
388
- const primary$7 = R__namespace.mergeDeepRight(button, {
386
+ const primary$7 = R__namespace.mergeDeepRight(button$1, {
389
387
  typography: {
390
388
  color: primaryColor$6
391
389
  },
@@ -466,7 +464,7 @@ const {
466
464
  },
467
465
  shape: shape$2
468
466
  } = edsTokens.tokens;
469
- const primary$6 = R__namespace.mergeDeepRight(button, {
467
+ const primary$6 = R__namespace.mergeDeepRight(button$1, {
470
468
  height: shape$2.icon_button.minHeight,
471
469
  width: shape$2.icon_button.minWidth,
472
470
  typography: {
@@ -485,7 +483,7 @@ const primary$6 = R__namespace.mergeDeepRight(button, {
485
483
  width: clicboundHeight,
486
484
  offset: {
487
485
  top: '0',
488
- left: `${(parseInt(clicboundHeight) - parseInt(shape$2.icon_button.minWidth)) / 2}px`
486
+ left: "".concat((parseInt(clicboundHeight) - parseInt(shape$2.icon_button.minWidth)) / 2, "px")
489
487
  }
490
488
  },
491
489
  states: {
@@ -516,7 +514,7 @@ const primary$6 = R__namespace.mergeDeepRight(button, {
516
514
  width: compactClickboundHeight,
517
515
  offset: {
518
516
  top: '0',
519
- left: `${(parseInt(compactClickboundHeight) - parseInt(shape$2._modes.compact.icon_button.minWidth)) / 2}px`
517
+ left: "".concat((parseInt(compactClickboundHeight) - parseInt(shape$2._modes.compact.icon_button.minWidth)) / 2, "px")
520
518
  }
521
519
  }
522
520
  }
@@ -585,7 +583,7 @@ const shorthand = token => {
585
583
  return null;
586
584
  }
587
585
 
588
- return `${width} ${style} ${color}`;
586
+ return "".concat(width, " ").concat(style, " ").concat(color);
589
587
  };
590
588
 
591
589
  const bordersTemplate = border => {
@@ -654,41 +652,34 @@ const typographyTemplate = (typography, link) => {
654
652
  return '';
655
653
  }
656
654
 
657
- let base = `
658
- margin: 0;
659
- color: ${typography.color};
660
- font-family: ${typography.fontFamily};
661
- font-size: ${typography.fontSize};
662
- font-weight: ${typography.fontWeight};
663
- line-height: ${typography.lineHeight};
664
- `;
655
+ let base = "\n margin: 0;\n color: ".concat(typography.color, ";\n font-family: ").concat(typography.fontFamily, ";\n font-size: ").concat(typography.fontSize, ";\n font-weight: ").concat(typography.fontWeight, ";\n line-height: ").concat(typography.lineHeight, ";\n ");
665
656
 
666
657
  if (typography.fontStyle) {
667
- base += `\nfont-style: ${typography.fontStyle};`;
658
+ base += "\nfont-style: ".concat(typography.fontStyle, ";");
668
659
  }
669
660
 
670
661
  if (typography.letterSpacing) {
671
- base += `\nletter-spacing: ${typography.letterSpacing};`;
662
+ base += "\nletter-spacing: ".concat(typography.letterSpacing, ";");
672
663
  }
673
664
 
674
665
  if (typography.textTransform) {
675
- base += `\ntext-transform: ${typography.textTransform};`;
666
+ base += "\ntext-transform: ".concat(typography.textTransform, ";");
676
667
  }
677
668
 
678
669
  if (typography.textDecoration) {
679
- base += `\ntext-decoration: ${typography.textDecoration};`;
670
+ base += "\ntext-decoration: ".concat(typography.textDecoration, ";");
680
671
  }
681
672
 
682
673
  if (typography.textAlign) {
683
- base += `\ntext-align: ${typography.textAlign};`;
674
+ base += "\ntext-align: ".concat(typography.textAlign, ";");
684
675
  }
685
676
 
686
677
  if (typography.fontFeature) {
687
- base += `\nfont-feature-settings: ${typography.fontFeature};`;
678
+ base += "\nfont-feature-settings: ".concat(typography.fontFeature, ";");
688
679
  }
689
680
 
690
681
  if (link) {
691
- base += `\ncursor: pointer;`;
682
+ base += "\ncursor: pointer;";
692
683
  }
693
684
 
694
685
  return base;
@@ -732,7 +723,7 @@ const setReactInputValue = (input, value) => {
732
723
  };
733
724
 
734
725
  const useOutsideClick = (el, callback) => {
735
- React$1.useEffect(() => {
726
+ React.useEffect(() => {
736
727
  const handleClick = e => {
737
728
  if (el && !el.contains(e.target)) {
738
729
  callback(e);
@@ -748,7 +739,7 @@ const useOutsideClick = (el, callback) => {
748
739
 
749
740
  /** Returns a memoized function that calls passed refs sequentially with passed element */
750
741
  const useCombinedRefs = (...refs) => {
751
- return React$1.useCallback(element => refs.forEach(ref => {
742
+ return React.useCallback(element => refs.forEach(ref => {
752
743
  if (typeof ref === 'function') {
753
744
  ref(element);
754
745
  } else if (ref && typeof ref === 'object') {
@@ -796,7 +787,7 @@ var KEY;
796
787
  })(KEY || (KEY = {}));
797
788
 
798
789
  const useGlobalKeyPress = (targetKey, callback) => {
799
- React$1.useEffect(() => {
790
+ React.useEffect(() => {
800
791
  const handleGlobalKeyPress = e => {
801
792
  const {
802
793
  key
@@ -817,19 +808,19 @@ const useGlobalKeyPress = (targetKey, callback) => {
817
808
  };
818
809
 
819
810
  const useId = (idOverride, type) => {
820
- const [defaultId, setDefaultId] = React$1.useState(idOverride);
811
+ const [defaultId, setDefaultId] = React.useState(idOverride);
821
812
  const id = idOverride || defaultId;
822
- React$1.useEffect(() => {
813
+ React.useEffect(() => {
823
814
  if (defaultId == null) {
824
- setDefaultId(`eds-${type ? type + `-` : ''}${Math.round(Math.random() * 1e5)}`);
815
+ setDefaultId("eds-".concat(type ? type + "-" : '').concat(Math.round(Math.random() * 1e5)));
825
816
  }
826
817
  }, [defaultId, type]);
827
818
  return id;
828
819
  };
829
820
 
830
821
  const useIsMounted = () => {
831
- const [isMounted, setIsMounted] = React$1.useState(null);
832
- React$1.useEffect(() => {
822
+ const [isMounted, setIsMounted] = React.useState(null);
823
+ React.useEffect(() => {
833
824
  setIsMounted(true);
834
825
  return () => setIsMounted(false);
835
826
  }, []);
@@ -837,7 +828,7 @@ const useIsMounted = () => {
837
828
  };
838
829
 
839
830
  const useAutoResize = (targetEl, maxHeight) => {
840
- React$1.useEffect(() => {
831
+ React.useEffect(() => {
841
832
  const handleResize = () => {
842
833
  targetEl.style.height = 'auto';
843
834
  const {
@@ -856,7 +847,7 @@ const useAutoResize = (targetEl, maxHeight) => {
856
847
  }
857
848
 
858
849
  if (newHeight > clientHeight) {
859
- targetEl.style.height = `${newHeight}px`;
850
+ targetEl.style.height = "".concat(newHeight, "px");
860
851
  }
861
852
  }
862
853
  };
@@ -872,7 +863,7 @@ const useAutoResize = (targetEl, maxHeight) => {
872
863
  }, [targetEl, maxHeight]);
873
864
  };
874
865
 
875
- const useToken = (options, token) => React$1.useCallback(() => {
866
+ const useToken = (options, token) => React.useCallback(() => {
876
867
  const {
877
868
  density
878
869
  } = options;
@@ -885,7 +876,7 @@ const useToken = (options, token) => React$1.useCallback(() => {
885
876
  }, [options, token]);
886
877
 
887
878
  const useHideBodyScroll = overflowState => {
888
- React$1.useEffect(() => {
879
+ React.useEffect(() => {
889
880
  document.body.style.overflow = 'hidden';
890
881
  return () => {
891
882
  document.body.style.overflow = overflowState;
@@ -901,25 +892,28 @@ const FullWidthInner = styled__default['default'].span.withConfig({
901
892
  displayName: "InnerFullWidth__FullWidthInner",
902
893
  componentId: "sc-qeawkb-1"
903
894
  })(["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;}"]);
904
- const InnerFullWidth = /*#__PURE__*/React$1.forwardRef(function InnerFullWidth({
895
+ const InnerFullWidth = /*#__PURE__*/React.forwardRef(function InnerFullWidth({
905
896
  children
906
897
  }, ref) {
907
898
  // We need everything in elements for proper flexing 💪
908
- const updatedChildren = React$1.Children.map(children, child => typeof child !== 'object' ? /*#__PURE__*/React.createElement(FullWidthCenterContent, null, child) : child);
909
- return /*#__PURE__*/React.createElement(FullWidthInner, {
910
- ref: ref
911
- }, updatedChildren);
899
+ const updatedChildren = React.Children.map(children, child => typeof child !== 'object' ? /*#__PURE__*/jsxRuntime.jsx(FullWidthCenterContent, {
900
+ children: child
901
+ }) : child);
902
+ return /*#__PURE__*/jsxRuntime.jsx(FullWidthInner, {
903
+ ref: ref,
904
+ children: updatedChildren
905
+ });
912
906
  });
913
907
 
914
908
  const initalState$3 = {
915
909
  density: 'comfortable'
916
910
  };
917
- const EdsContext = /*#__PURE__*/React$1.createContext(initalState$3);
911
+ const EdsContext = /*#__PURE__*/React.createContext(initalState$3);
918
912
  const EdsProvider = ({
919
913
  children,
920
914
  density = 'comfortable'
921
915
  }) => {
922
- const [state, setState] = React$1.useState({ ...initalState$3,
916
+ const [state, setState] = React.useState({ ...initalState$3,
923
917
  density
924
918
  });
925
919
 
@@ -927,7 +921,7 @@ const EdsProvider = ({
927
921
  density
928
922
  }));
929
923
 
930
- React$1.useEffect(() => {
924
+ React.useEffect(() => {
931
925
  if (typeof density !== 'undefined' && density !== state.density) {
932
926
  setDensity(density);
933
927
  }
@@ -935,11 +929,12 @@ const EdsProvider = ({
935
929
  const value = {
936
930
  density: state.density
937
931
  };
938
- return /*#__PURE__*/React.createElement(EdsContext.Provider, {
939
- value: value
940
- }, children);
932
+ return /*#__PURE__*/jsxRuntime.jsx(EdsContext.Provider, {
933
+ value: value,
934
+ children: children
935
+ });
941
936
  };
942
- const useEds = () => React$1.useContext(EdsContext);
937
+ const useEds = () => React.useContext(EdsContext);
943
938
 
944
939
  const getVariant = (tokenSet, variant) => {
945
940
  switch (variant) {
@@ -993,9 +988,9 @@ const ButtonBase = styled__default['default'].button.withConfig({
993
988
  hover,
994
989
  disabled
995
990
  } = states;
996
- return styled.css(["margin:0;padding:0;text-decoration:none;position:relative;cursor:pointer;display:inline-block;background:", ";height:", ";width:", ";svg{justify-self:center;}", " ", " ", " &::before{position:absolute;top:0;left:0;width:auto;min-height:auto;content:'';}&::after{position:absolute;top:-", ";left:-", ";width:", ";height:", ";content:'';}@media (hover:hover) and (pointer:fine){&:hover{background:", ";color:", ";", ";}}&:focus{outline:none;}&[data-focus-visible-added]:focus{", "}&::-moz-focus-inner{border:0;}&:disabled{cursor:not-allowed;background:", ";", ";", ";@media (hover:hover) and (pointer:fine){&:hover{background:", ";}}}"], theme.background, theme.height, theme.width, spacingsTemplate(theme.spacings), bordersTemplate(theme.border), typographyTemplate(theme.typography), 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), disabled.background, bordersTemplate(disabled.border), typographyTemplate(disabled.typography), disabled.background);
991
+ 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);
997
992
  });
998
- const Button = /*#__PURE__*/React$1.forwardRef(function Button({
993
+ const Button = /*#__PURE__*/React.forwardRef(function Button({
999
994
  color = 'primary',
1000
995
  variant = 'contained',
1001
996
  children,
@@ -1023,9 +1018,16 @@ const Button = /*#__PURE__*/React$1.forwardRef(function Button({
1023
1018
  tabIndex,
1024
1019
  ...other
1025
1020
  };
1026
- return /*#__PURE__*/React.createElement(styled.ThemeProvider, {
1027
- theme: token
1028
- }, /*#__PURE__*/React.createElement(ButtonBase, buttonProps, fullWidth ? /*#__PURE__*/React.createElement(InnerFullWidth, null, children) : /*#__PURE__*/React.createElement(Inner, null, children)));
1021
+ return /*#__PURE__*/jsxRuntime.jsx(styled.ThemeProvider, {
1022
+ theme: token,
1023
+ children: /*#__PURE__*/jsxRuntime.jsx(ButtonBase, { ...buttonProps,
1024
+ children: fullWidth ? /*#__PURE__*/jsxRuntime.jsx(InnerFullWidth, {
1025
+ children: children
1026
+ }) : /*#__PURE__*/jsxRuntime.jsx(Inner, {
1027
+ children: children
1028
+ })
1029
+ })
1030
+ });
1029
1031
  });
1030
1032
 
1031
1033
  const {
@@ -1122,7 +1124,7 @@ const findTypography = (variantName, group) => {
1122
1124
 
1123
1125
  const findColor = (inputColor = null) => typeof colors$7[inputColor] === 'undefined' ? inputColor : colors$7[inputColor];
1124
1126
 
1125
- const toVariantName = (variant, bold = false, italic = false, link = false) => `${variant}${bold ? '_bold' : ''}${italic ? '_italic' : ''}${link ? '_link' : ''}`;
1127
+ const toVariantName = (variant, bold = false, italic = false, link = false) => "".concat(variant).concat(bold ? '_bold' : '').concat(italic ? '_italic' : '').concat(link ? '_link' : '');
1126
1128
 
1127
1129
  const StyledTypography$1 = styled__default['default'].p.withConfig({
1128
1130
  displayName: "Typography__StyledTypography",
@@ -1139,8 +1141,8 @@ const StyledTypography$1 = styled__default['default'].p.withConfig({
1139
1141
  }) => //https://caniuse.com/#feat=css-line-clamp
1140
1142
  lines > 0 && styled.css(["&{display:-webkit-box;-webkit-line-clamp:", ";-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;}"], lines), ({
1141
1143
  link: link$1
1142
- }) => link$1 && styled.css(["&:focus{outline:none;}&[data-focus-visible-added]:focus{", "}"], outlineTemplate(link.states.focus.outline)));
1143
- const Typography = /*#__PURE__*/React$1.forwardRef(function Typography({
1144
+ }) => link$1 && styled.css(["&:focus{outline:none;}&[data-focus-visible-added]:focus{", "}&:focus-visible{", "}"], outlineTemplate(link.states.focus.outline), outlineTemplate(link.states.focus.outline)));
1145
+ const Typography = /*#__PURE__*/React.forwardRef(function Typography({
1144
1146
  variant = 'body_short',
1145
1147
  children,
1146
1148
  bold,
@@ -1156,17 +1158,19 @@ const Typography = /*#__PURE__*/React$1.forwardRef(function Typography({
1156
1158
  const typography = findTypography(variantName, group);
1157
1159
 
1158
1160
  if (typeof typography === 'undefined') {
1159
- throw new Error(`Typography variant not found for variant "${variantName}" ("${variant}") & group "${group || ''}"`);
1161
+ throw new Error("Typography variant not found for variant \"".concat(variantName, "\" (\"").concat(variant, "\") & group \"").concat(group || '', "\""));
1160
1162
  }
1161
1163
 
1162
- return /*#__PURE__*/React.createElement(StyledTypography$1, _extends__default['default']({
1164
+ return /*#__PURE__*/jsxRuntime.jsx(StyledTypography$1, {
1163
1165
  as: as,
1164
1166
  typography: { ...typography,
1165
1167
  ...token
1166
1168
  },
1167
1169
  link: link,
1168
- ref: ref
1169
- }, other), children);
1170
+ ref: ref,
1171
+ ...other,
1172
+ children: children
1173
+ });
1170
1174
  }); // Typography.displayName = 'EdsTypography'
1171
1175
 
1172
1176
  const {
@@ -1320,35 +1324,38 @@ const TableBase$1 = styled__default['default'].table.withConfig({
1320
1324
  displayName: "Table__TableBase",
1321
1325
  componentId: "sc-14kktwc-0"
1322
1326
  })(["border-spacing:0;background:", ";"], tableCell.background);
1323
- const Table$1 = /*#__PURE__*/React$1.forwardRef(function Table({
1327
+ const Table$1 = /*#__PURE__*/React.forwardRef(function Table({
1324
1328
  children,
1325
1329
  ...props
1326
1330
  }, ref) {
1327
- return /*#__PURE__*/React.createElement(TableBase$1, _extends__default['default']({}, props, {
1328
- ref: ref
1329
- }), children);
1331
+ return /*#__PURE__*/jsxRuntime.jsx(TableBase$1, { ...props,
1332
+ ref: ref,
1333
+ children: children
1334
+ });
1330
1335
  }); // Table.displayName = 'EdsTable'
1331
1336
 
1332
1337
  const initalState$2 = {
1333
1338
  variant: 'body'
1334
1339
  };
1335
- const InnerContext = /*#__PURE__*/React$1.createContext(initalState$2);
1340
+ const InnerContext = /*#__PURE__*/React.createContext(initalState$2);
1336
1341
 
1337
1342
  const TableBase = styled__default['default'].tbody.withConfig({
1338
1343
  displayName: "Body__TableBase",
1339
1344
  componentId: "sc-1pdmiku-0"
1340
1345
  })([""]);
1341
- const Body = /*#__PURE__*/React$1.forwardRef(function Body({
1346
+ const Body = /*#__PURE__*/React.forwardRef(function Body({
1342
1347
  children,
1343
1348
  ...props
1344
1349
  }, ref) {
1345
- return /*#__PURE__*/React.createElement(InnerContext.Provider, {
1350
+ return /*#__PURE__*/jsxRuntime.jsx(InnerContext.Provider, {
1346
1351
  value: {
1347
1352
  variant: 'body'
1348
- }
1349
- }, /*#__PURE__*/React.createElement(TableBase, _extends__default['default']({}, props, {
1350
- ref: ref
1351
- }), children));
1353
+ },
1354
+ children: /*#__PURE__*/jsxRuntime.jsx(TableBase, { ...props,
1355
+ ref: ref,
1356
+ children: children
1357
+ })
1358
+ });
1352
1359
  });
1353
1360
 
1354
1361
  const StyledTableCell$1 = styled__default['default'].td.withConfig({
@@ -1370,7 +1377,7 @@ const StyledTableCell$1 = styled__default['default'].td.withConfig({
1370
1377
  const base = styled.css(["min-height:", ";height:", ";background:", ";", " ", " ", ""], height, height, backgroundColor, spacingsTemplate(spacings), typographyTemplate(typography), bordersTemplate(border));
1371
1378
  return base;
1372
1379
  });
1373
- const TableDataCell = /*#__PURE__*/React$1.forwardRef(function TableDataCell({
1380
+ const TableDataCell = /*#__PURE__*/React.forwardRef(function TableDataCell({
1374
1381
  children,
1375
1382
  variant = 'text',
1376
1383
  ...rest
@@ -1381,11 +1388,13 @@ const TableDataCell = /*#__PURE__*/React$1.forwardRef(function TableDataCell({
1381
1388
  const token = useToken({
1382
1389
  density
1383
1390
  }, applyVariant(variant, tableCell));
1384
- return /*#__PURE__*/React.createElement(styled.ThemeProvider, {
1385
- theme: token
1386
- }, /*#__PURE__*/React.createElement(StyledTableCell$1, _extends__default['default']({}, rest, {
1387
- ref: ref
1388
- }), children));
1391
+ return /*#__PURE__*/jsxRuntime.jsx(styled.ThemeProvider, {
1392
+ theme: token,
1393
+ children: /*#__PURE__*/jsxRuntime.jsx(StyledTableCell$1, { ...rest,
1394
+ ref: ref,
1395
+ children: children
1396
+ })
1397
+ });
1389
1398
  });
1390
1399
 
1391
1400
  const {
@@ -1536,7 +1545,7 @@ const CellInner = styled__default['default'].div.withConfig({
1536
1545
  displayName: "HeaderCell__CellInner",
1537
1546
  componentId: "sc-18w2o3a-1"
1538
1547
  })(["display:flex;align-items:center;"]);
1539
- const TableHeaderCell = /*#__PURE__*/React$1.forwardRef(function TableHeaderCell({
1548
+ const TableHeaderCell = /*#__PURE__*/React.forwardRef(function TableHeaderCell({
1540
1549
  children,
1541
1550
  sort,
1542
1551
  ...rest
@@ -1547,33 +1556,41 @@ const TableHeaderCell = /*#__PURE__*/React$1.forwardRef(function TableHeaderCell
1547
1556
  const token = useToken({
1548
1557
  density
1549
1558
  }, token$5);
1550
- return /*#__PURE__*/React.createElement(styled.ThemeProvider, {
1551
- theme: token
1552
- }, /*#__PURE__*/React.createElement(StyledTableCell, _extends__default['default']({
1553
- "aria-sort": sort
1554
- }, rest, {
1555
- ref: ref
1556
- }), /*#__PURE__*/React.createElement(CellInner, null, children)));
1559
+ return /*#__PURE__*/jsxRuntime.jsx(styled.ThemeProvider, {
1560
+ theme: token,
1561
+ children: /*#__PURE__*/jsxRuntime.jsx(StyledTableCell, {
1562
+ "aria-sort": sort,
1563
+ ...rest,
1564
+ ref: ref,
1565
+ children: /*#__PURE__*/jsxRuntime.jsx(CellInner, {
1566
+ children: children
1567
+ })
1568
+ })
1569
+ });
1557
1570
  });
1558
1571
 
1559
- const Cell = /*#__PURE__*/React$1.forwardRef(function Cell({ ...rest
1572
+ const Cell = /*#__PURE__*/React.forwardRef(function Cell({ ...rest
1560
1573
  }, ref) {
1561
- return /*#__PURE__*/React.createElement(InnerContext.Consumer, null, ({
1562
- variant,
1563
- sticky
1564
- }) => {
1565
- switch (variant) {
1566
- case 'head':
1567
- return /*#__PURE__*/React.createElement(TableHeaderCell, _extends__default['default']({
1568
- ref: ref,
1569
- sticky: sticky
1570
- }, rest));
1574
+ return /*#__PURE__*/jsxRuntime.jsx(InnerContext.Consumer, {
1575
+ children: ({
1576
+ variant,
1577
+ sticky
1578
+ }) => {
1579
+ switch (variant) {
1580
+ case 'head':
1581
+ return /*#__PURE__*/jsxRuntime.jsx(TableHeaderCell, {
1582
+ ref: ref,
1583
+ sticky: sticky,
1584
+ ...rest
1585
+ });
1571
1586
 
1572
- default:
1573
- case 'body':
1574
- return /*#__PURE__*/React.createElement(TableDataCell, _extends__default['default']({
1575
- ref: ref
1576
- }, rest));
1587
+ default:
1588
+ case 'body':
1589
+ return /*#__PURE__*/jsxRuntime.jsx(TableDataCell, {
1590
+ ref: ref,
1591
+ ...rest
1592
+ });
1593
+ }
1577
1594
  }
1578
1595
  });
1579
1596
  });
@@ -1609,19 +1626,21 @@ const StyledTableHead = styled__default['default'].thead.withConfig({
1609
1626
  displayName: "Head__StyledTableHead",
1610
1627
  componentId: "sc-g9tch7-0"
1611
1628
  })(["", " background:", ";"], bordersTemplate(token$4.border), token$4.background);
1612
- const Head = /*#__PURE__*/React$1.forwardRef(function Head({
1629
+ const Head = /*#__PURE__*/React.forwardRef(function Head({
1613
1630
  children,
1614
1631
  sticky,
1615
1632
  ...props
1616
1633
  }, ref) {
1617
- return /*#__PURE__*/React.createElement(InnerContext.Provider, {
1634
+ return /*#__PURE__*/jsxRuntime.jsx(InnerContext.Provider, {
1618
1635
  value: {
1619
1636
  variant: 'head',
1620
1637
  sticky
1621
- }
1622
- }, /*#__PURE__*/React.createElement(StyledTableHead, _extends__default['default']({}, props, {
1623
- ref: ref
1624
- }), children));
1638
+ },
1639
+ children: /*#__PURE__*/jsxRuntime.jsx(StyledTableHead, { ...props,
1640
+ ref: ref,
1641
+ children: children
1642
+ })
1643
+ });
1625
1644
  });
1626
1645
 
1627
1646
  const {
@@ -1664,14 +1683,15 @@ const StyledRow = styled__default['default'].tr.withConfig({
1664
1683
  }
1665
1684
  };
1666
1685
  });
1667
- const Row = /*#__PURE__*/React$1.forwardRef(function Row({ ...props
1686
+ const Row = /*#__PURE__*/React.forwardRef(function Row({ ...props
1668
1687
  }, ref) {
1669
1688
  const {
1670
1689
  children
1671
1690
  } = props;
1672
- return /*#__PURE__*/React.createElement(StyledRow, _extends__default['default']({}, props, {
1673
- ref: ref
1674
- }), children);
1691
+ return /*#__PURE__*/jsxRuntime.jsx(StyledRow, { ...props,
1692
+ ref: ref,
1693
+ children: children
1694
+ });
1675
1695
  });
1676
1696
 
1677
1697
  const StyledCaption = styled__default['default'].caption.withConfig({
@@ -1682,10 +1702,10 @@ const StyledCaption = styled__default['default'].caption.withConfig({
1682
1702
  }) => ({
1683
1703
  captionSide
1684
1704
  }));
1685
- const Caption = /*#__PURE__*/React$1.forwardRef(function Caption(props, ref) {
1686
- return /*#__PURE__*/React.createElement(StyledCaption, _extends__default['default']({}, props, {
1705
+ const Caption = /*#__PURE__*/React.forwardRef(function Caption(props, ref) {
1706
+ return /*#__PURE__*/jsxRuntime.jsx(StyledCaption, { ...props,
1687
1707
  ref: ref
1688
- }));
1708
+ });
1689
1709
  });
1690
1710
 
1691
1711
  const Table = Table$1;
@@ -1725,12 +1745,12 @@ const dividerHeight = 1;
1725
1745
 
1726
1746
  const reduceByValue = subtractValue => valueWithUnit => {
1727
1747
  const valueAndUnit = valueWithUnit.split(/(\d+)/).filter(val => val.length > 0);
1728
- return `${parseInt(valueAndUnit[0]) - subtractValue}` + valueAndUnit[1];
1748
+ return "".concat(parseInt(valueAndUnit[0]) - subtractValue) + valueAndUnit[1];
1729
1749
  };
1730
1750
 
1731
1751
  const reduceValueByDividerHeight = reduceByValue(dividerHeight);
1732
1752
  const baseDivider$1 = {
1733
- height: `${dividerHeight}px`
1753
+ height: "".concat(dividerHeight, "px")
1734
1754
  };
1735
1755
  const divider$1 = {
1736
1756
  lighter: {
@@ -1772,7 +1792,7 @@ const StyledDivider$3 = styled__default['default'].hr.withConfig({
1772
1792
  displayName: "Divider__StyledDivider",
1773
1793
  componentId: "sc-1d8osde-0"
1774
1794
  })(["border:none;background-color:", ";margin-top:", ";margin-bottom:", ";height:", ";"], props => props.backgroundColor, props => props.marginTop, props => props.marginBottom, props => props.dividerHeight);
1775
- const Divider = /*#__PURE__*/React$1.forwardRef(function Divider({
1795
+ const Divider = /*#__PURE__*/React.forwardRef(function Divider({
1776
1796
  color = 'medium',
1777
1797
  variant = 'medium',
1778
1798
  ...rest
@@ -1785,19 +1805,19 @@ const Divider = /*#__PURE__*/React$1.forwardRef(function Divider({
1785
1805
  dividerHeight: baseDivider.height,
1786
1806
  ...rest
1787
1807
  };
1788
- return /*#__PURE__*/React.createElement(StyledDivider$3, _extends__default['default']({}, props, {
1808
+ return /*#__PURE__*/jsxRuntime.jsx(StyledDivider$3, { ...props,
1789
1809
  ref: ref
1790
- }));
1810
+ });
1791
1811
  });
1792
1812
 
1793
1813
  const initalState$1 = {
1794
1814
  isFocused: false
1795
1815
  };
1796
- const TextFieldContext = /*#__PURE__*/React$1.createContext(initalState$1);
1816
+ const TextFieldContext = /*#__PURE__*/React.createContext(initalState$1);
1797
1817
  const TextFieldProvider = ({
1798
1818
  children
1799
1819
  }) => {
1800
- const [state, setState] = React$1.useState(initalState$1);
1820
+ const [state, setState] = React.useState(initalState$1);
1801
1821
 
1802
1822
  const handleFocus = () => {
1803
1823
  setState(prevState => ({ ...prevState,
@@ -1816,11 +1836,12 @@ const TextFieldProvider = ({
1816
1836
  handleBlur,
1817
1837
  isFocused: state.isFocused
1818
1838
  };
1819
- return /*#__PURE__*/React.createElement(TextFieldContext.Provider, {
1820
- value: value
1821
- }, children);
1839
+ return /*#__PURE__*/jsxRuntime.jsx(TextFieldContext.Provider, {
1840
+ value: value,
1841
+ children: children
1842
+ });
1822
1843
  };
1823
- const useTextField = () => React$1.useContext(TextFieldContext);
1844
+ const useTextField = () => React.useContext(TextFieldContext);
1824
1845
 
1825
1846
  const {
1826
1847
  colors: {
@@ -2020,7 +2041,7 @@ const StyledInput = styled__default['default'].input.withConfig({
2020
2041
  } = theme;
2021
2042
  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);
2022
2043
  });
2023
- const Input$5 = /*#__PURE__*/React$1.forwardRef(function Input({
2044
+ const Input$5 = /*#__PURE__*/React.forwardRef(function Input({
2024
2045
  variant = 'default',
2025
2046
  disabled = false,
2026
2047
  type = 'text',
@@ -2040,9 +2061,11 @@ const Input$5 = /*#__PURE__*/React$1.forwardRef(function Input({
2040
2061
  disabled,
2041
2062
  ...other
2042
2063
  };
2043
- return /*#__PURE__*/React.createElement(styled.ThemeProvider, {
2044
- theme: token
2045
- }, /*#__PURE__*/React.createElement(StyledInput, inputProps));
2064
+ return /*#__PURE__*/jsxRuntime.jsx(styled.ThemeProvider, {
2065
+ theme: token,
2066
+ children: /*#__PURE__*/jsxRuntime.jsx(StyledInput, { ...inputProps
2067
+ })
2068
+ });
2046
2069
  });
2047
2070
 
2048
2071
  const {
@@ -2114,7 +2137,7 @@ const StyledIcon$2 = styled__default['default'].div.withConfig({
2114
2137
 
2115
2138
  return styled.css(["&,svg{fill:", ";width:", "px;height:", "px;}"], fill, size, size);
2116
2139
  });
2117
- const InputIcon = /*#__PURE__*/React$1.forwardRef(function InputIcon({
2140
+ const InputIcon = /*#__PURE__*/React.forwardRef(function InputIcon({
2118
2141
  size = 24,
2119
2142
  variant = 'default',
2120
2143
  isDisabled = false,
@@ -2135,9 +2158,12 @@ const InputIcon = /*#__PURE__*/React$1.forwardRef(function InputIcon({
2135
2158
  isFocused,
2136
2159
  size
2137
2160
  };
2138
- return /*#__PURE__*/React.createElement(StyledIcon$2, _extends__default['default']({
2139
- ref: ref
2140
- }, iconProps, other), children);
2161
+ return /*#__PURE__*/jsxRuntime.jsx(StyledIcon$2, {
2162
+ ref: ref,
2163
+ ...iconProps,
2164
+ ...other,
2165
+ children: children
2166
+ });
2141
2167
  });
2142
2168
 
2143
2169
  const {
@@ -2279,7 +2305,7 @@ const Variation$2 = ({
2279
2305
  density
2280
2306
  }) => {
2281
2307
  if (!variant) {
2282
- return ``;
2308
+ return "";
2283
2309
  }
2284
2310
 
2285
2311
  const {
@@ -2306,7 +2332,7 @@ const StyledTextarea = styled__default['default'].textarea.withConfig({
2306
2332
  displayName: "Textarea__StyledTextarea",
2307
2333
  componentId: "sc-2yjdcc-0"
2308
2334
  })(["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);
2309
- const Textarea = /*#__PURE__*/React$1.forwardRef(function Textarea({
2335
+ const Textarea = /*#__PURE__*/React.forwardRef(function Textarea({
2310
2336
  variant = 'default',
2311
2337
  disabled = false,
2312
2338
  type = 'text',
@@ -2315,7 +2341,7 @@ const Textarea = /*#__PURE__*/React$1.forwardRef(function Textarea({
2315
2341
  }, ref) {
2316
2342
  const actualVariant = variant === 'default' ? 'input' : variant;
2317
2343
  const inputVariant = tokens$6[actualVariant];
2318
- const [textareaEl, setTextareaEl] = React$1.useState(null);
2344
+ const [textareaEl, setTextareaEl] = React.useState(null);
2319
2345
  const {
2320
2346
  density
2321
2347
  } = useEds();
@@ -2345,7 +2371,8 @@ const Textarea = /*#__PURE__*/React$1.forwardRef(function Textarea({
2345
2371
  density,
2346
2372
  ...other
2347
2373
  };
2348
- return /*#__PURE__*/React.createElement(StyledTextarea, inputProps);
2374
+ return /*#__PURE__*/jsxRuntime.jsx(StyledTextarea, { ...inputProps
2375
+ });
2349
2376
  });
2350
2377
 
2351
2378
  const {
@@ -2360,10 +2387,10 @@ const Variation$1 = ({
2360
2387
  var _token$border, _token$border2, _token$border3, _token$border4;
2361
2388
 
2362
2389
  if (!variant) {
2363
- return ``;
2390
+ return "";
2364
2391
  }
2365
2392
 
2366
- return styled.css(["box-shadow:", ";", ""], isFocused ? `none` : variant === 'default' ? `inset 0 -1px 0 0 ${((_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 ${((_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));
2393
+ 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));
2367
2394
  };
2368
2395
 
2369
2396
  const StrippedInput = styled__default['default'](Input$5).withConfig({
@@ -2403,7 +2430,7 @@ const Adornments = styled__default['default'].div.withConfig({
2403
2430
  marginTop: theme.spacings.top,
2404
2431
  alignSelf: 'start'
2405
2432
  });
2406
- const Field = /*#__PURE__*/React$1.forwardRef(function Field({
2433
+ const Field = /*#__PURE__*/React.forwardRef(function Field({
2407
2434
  multiline,
2408
2435
  variant,
2409
2436
  disabled,
@@ -2462,15 +2489,22 @@ const Field = /*#__PURE__*/React$1.forwardRef(function Field({
2462
2489
  rowsMax,
2463
2490
  ref: ref
2464
2491
  };
2465
- return /*#__PURE__*/React.createElement(InputWrapper$2, inputWrapperProps, multiline ? /*#__PURE__*/React.createElement(StrippedTextarea, textareaProps) : /*#__PURE__*/React.createElement(StrippedInput, inputProps), (inputIcon || unit) && /*#__PURE__*/React.createElement(Adornments, {
2466
- multiline: multiline
2467
- }, unit && /*#__PURE__*/React.createElement(Unit, {
2468
- isDisabled: disabled
2469
- }, unit), inputIcon && /*#__PURE__*/React.createElement(InputIcon, {
2470
- isDisabled: disabled,
2471
- variant: variant,
2472
- size: iconSize
2473
- }, inputIcon)));
2492
+ return /*#__PURE__*/jsxRuntime.jsxs(InputWrapper$2, { ...inputWrapperProps,
2493
+ children: [multiline ? /*#__PURE__*/jsxRuntime.jsx(StrippedTextarea, { ...textareaProps
2494
+ }) : /*#__PURE__*/jsxRuntime.jsx(StrippedInput, { ...inputProps
2495
+ }), (inputIcon || unit) && /*#__PURE__*/jsxRuntime.jsxs(Adornments, {
2496
+ multiline: multiline,
2497
+ children: [unit && /*#__PURE__*/jsxRuntime.jsx(Unit, {
2498
+ isDisabled: disabled,
2499
+ children: unit
2500
+ }), inputIcon && /*#__PURE__*/jsxRuntime.jsx(InputIcon, {
2501
+ isDisabled: disabled,
2502
+ variant: variant,
2503
+ size: iconSize,
2504
+ children: inputIcon
2505
+ })]
2506
+ })]
2507
+ });
2474
2508
  });
2475
2509
 
2476
2510
  const {
@@ -2510,7 +2544,7 @@ const Text$2 = styled__default['default'].span.withConfig({
2510
2544
  displayName: "Label__Text",
2511
2545
  componentId: "sc-1gi2bcn-1"
2512
2546
  })(["margin:0;"]);
2513
- const Label$1 = /*#__PURE__*/React$1.forwardRef(function Label(props, ref) {
2547
+ const Label$1 = /*#__PURE__*/React.forwardRef(function Label(props, ref) {
2514
2548
  const {
2515
2549
  label = '',
2516
2550
  meta,
@@ -2521,10 +2555,16 @@ const Label$1 = /*#__PURE__*/React$1.forwardRef(function Label(props, ref) {
2521
2555
  /*#__PURE__*/
2522
2556
 
2523
2557
  /* @TODO: Other props spread has to be at the end for downshift to create the for attribute */
2524
- React.createElement(LabelBase, _extends__default['default']({
2558
+ jsxRuntime.jsxs(LabelBase, {
2525
2559
  ref: ref,
2526
- disabledText: disabled
2527
- }, other), /*#__PURE__*/React.createElement(Text$2, null, label), meta && /*#__PURE__*/React.createElement(Text$2, null, meta))
2560
+ disabledText: disabled,
2561
+ ...other,
2562
+ children: [/*#__PURE__*/jsxRuntime.jsx(Text$2, {
2563
+ children: label
2564
+ }), meta && /*#__PURE__*/jsxRuntime.jsx(Text$2, {
2565
+ children: meta
2566
+ })]
2567
+ })
2528
2568
  );
2529
2569
  }); // Label.displayName = 'eds-text-field-label'
2530
2570
 
@@ -2580,7 +2620,7 @@ const Variation = ({
2580
2620
  isDisabled
2581
2621
  }) => {
2582
2622
  if (!variant) {
2583
- return ``;
2623
+ return "";
2584
2624
  }
2585
2625
 
2586
2626
  const {
@@ -2612,7 +2652,7 @@ const Text$1 = styled__default['default'].p.withConfig({
2612
2652
  })(["", " margin:0 0 0 ", ";", ""], typographyTemplate(helperText.typography), ({
2613
2653
  spacings
2614
2654
  }) => spacings.left, Variation);
2615
- const TextfieldHelperText = /*#__PURE__*/React$1.forwardRef(function TextfieldHelperText({
2655
+ const TextfieldHelperText = /*#__PURE__*/React.forwardRef(function TextfieldHelperText({
2616
2656
  helperText: helperText$1,
2617
2657
  icon,
2618
2658
  variant = 'default',
@@ -2629,27 +2669,30 @@ const TextfieldHelperText = /*#__PURE__*/React$1.forwardRef(function TextfieldHe
2629
2669
  disabledColor: helperVariant.disabledColor,
2630
2670
  focusColor: helperVariant.focusColor
2631
2671
  };
2632
- return /*#__PURE__*/React.createElement(Container$4, _extends__default['default']({
2633
- ref: ref
2634
- }, rest, {
2635
- spacings: spacings
2636
- }), icon && /*#__PURE__*/React.createElement(InputIcon, {
2637
- isDisabled: isDisabled,
2638
- colors: colors,
2639
- size: 16
2640
- }, icon), /*#__PURE__*/React.createElement(Text$1, {
2641
- variant: helperVariant,
2642
- isFocused: isFocused,
2643
- isDisabled: isDisabled,
2644
- spacings: spacings
2645
- }, helperText$1));
2672
+ return /*#__PURE__*/jsxRuntime.jsxs(Container$4, {
2673
+ ref: ref,
2674
+ ...rest,
2675
+ spacings: spacings,
2676
+ children: [icon && /*#__PURE__*/jsxRuntime.jsx(InputIcon, {
2677
+ isDisabled: isDisabled,
2678
+ colors: colors,
2679
+ size: 16,
2680
+ children: icon
2681
+ }), /*#__PURE__*/jsxRuntime.jsx(Text$1, {
2682
+ variant: helperVariant,
2683
+ isFocused: isFocused,
2684
+ isDisabled: isDisabled,
2685
+ spacings: spacings,
2686
+ children: helperText$1
2687
+ })]
2688
+ });
2646
2689
  });
2647
2690
 
2648
2691
  const Container$3 = styled__default['default'].div.withConfig({
2649
2692
  displayName: "TextField__Container",
2650
2693
  componentId: "sc-o1nc07-0"
2651
2694
  })(["min-width:100px;width:100%;"]);
2652
- const TextField = /*#__PURE__*/React$1.forwardRef(function TextField({
2695
+ const TextField = /*#__PURE__*/React.forwardRef(function TextField({
2653
2696
  id,
2654
2697
  label,
2655
2698
  meta,
@@ -2703,9 +2746,17 @@ const TextField = /*#__PURE__*/React$1.forwardRef(function TextField({
2703
2746
  const token = useToken({
2704
2747
  density
2705
2748
  }, textfield$1);
2706
- return /*#__PURE__*/React.createElement(styled.ThemeProvider, {
2707
- theme: token
2708
- }, /*#__PURE__*/React.createElement(Container$3, containerProps, /*#__PURE__*/React.createElement(TextFieldProvider, null, showLabel && /*#__PURE__*/React.createElement(Label$1, labelProps), /*#__PURE__*/React.createElement(Field, inputProps), showHelperText && /*#__PURE__*/React.createElement(TextfieldHelperText, helperProps))));
2749
+ return /*#__PURE__*/jsxRuntime.jsx(styled.ThemeProvider, {
2750
+ theme: token,
2751
+ children: /*#__PURE__*/jsxRuntime.jsx(Container$3, { ...containerProps,
2752
+ children: /*#__PURE__*/jsxRuntime.jsxs(TextFieldProvider, {
2753
+ children: [showLabel && /*#__PURE__*/jsxRuntime.jsx(Label$1, { ...labelProps
2754
+ }), /*#__PURE__*/jsxRuntime.jsx(Field, { ...inputProps
2755
+ }), showHelperText && /*#__PURE__*/jsxRuntime.jsx(TextfieldHelperText, { ...helperProps
2756
+ })]
2757
+ })
2758
+ })
2759
+ });
2709
2760
  });
2710
2761
 
2711
2762
  let _icons = {};
@@ -2733,7 +2784,7 @@ const customIcon = icon => ({
2733
2784
 
2734
2785
  const transform = ({
2735
2786
  rotation
2736
- }) => rotation ? `transform: rotate(${rotation}deg)` : '';
2787
+ }) => rotation ? "transform: rotate(".concat(rotation, "deg)") : '';
2737
2788
 
2738
2789
  const StyledSvg = styled__default['default'].svg.attrs(({
2739
2790
  height,
@@ -2742,8 +2793,8 @@ const StyledSvg = styled__default['default'].svg.attrs(({
2742
2793
  }) => ({
2743
2794
  name: null,
2744
2795
  xmlns: 'http://www.w3.org/2000/svg',
2745
- height: `${height}px`,
2746
- width: `${width}px`,
2796
+ height: "".concat(height, "px"),
2797
+ width: "".concat(width, "px"),
2747
2798
  fill
2748
2799
  })).withConfig({
2749
2800
  displayName: "Icon__StyledSvg",
@@ -2756,12 +2807,12 @@ const StyledPath$2 = styled__default['default'].path.attrs(({
2756
2807
  size: null,
2757
2808
  fillRule: 'evenodd',
2758
2809
  clipRule: 'evenodd',
2759
- transform: size / height !== 1 ? `scale(${size / height})` : null
2810
+ transform: size / height !== 1 ? "scale(".concat(size / height, ")") : null
2760
2811
  })).withConfig({
2761
2812
  displayName: "Icon__StyledPath",
2762
2813
  componentId: "sc-6evbi1-1"
2763
2814
  })([""]);
2764
- const Icon$2 = /*#__PURE__*/React$1.forwardRef(function Icon({
2815
+ const Icon$2 = /*#__PURE__*/React.forwardRef(function Icon({
2765
2816
  size = 24,
2766
2817
  color = 'currentColor',
2767
2818
  name,
@@ -2777,14 +2828,14 @@ const Icon$2 = /*#__PURE__*/React$1.forwardRef(function Icon({
2777
2828
  } = data ? customIcon(data) : get(name);
2778
2829
 
2779
2830
  if (typeof icon === 'undefined') {
2780
- throw Error(`Icon "${name}" not found. Have you added it using Icon.add() or using data props?`);
2831
+ throw Error("Icon \"".concat(name, "\" not found. Have you added it using Icon.add() or using data props?"));
2781
2832
  }
2782
2833
 
2783
2834
  let svgProps = {
2784
2835
  height: size,
2785
2836
  width: size,
2786
2837
  fill: color,
2787
- viewBox: `0 0 ${size} ${size}`,
2838
+ viewBox: "0 0 ".concat(size, " ").concat(size),
2788
2839
  className,
2789
2840
  rotation,
2790
2841
  name,
@@ -2800,7 +2851,7 @@ const Icon$2 = /*#__PURE__*/React$1.forwardRef(function Icon({
2800
2851
  let titleId = '';
2801
2852
 
2802
2853
  if (title) {
2803
- titleId = `${icon.prefix}-${icon.name}-${count}`;
2854
+ titleId = "".concat(icon.prefix, "-").concat(icon.name, "-").concat(count);
2804
2855
  svgProps = { ...svgProps,
2805
2856
  title,
2806
2857
  role: 'img',
@@ -2809,13 +2860,17 @@ const Icon$2 = /*#__PURE__*/React$1.forwardRef(function Icon({
2809
2860
  };
2810
2861
  }
2811
2862
 
2812
- return /*#__PURE__*/React.createElement(StyledSvg, _extends__default['default']({}, svgProps, rest, {
2813
- ref: ref
2814
- }), title && /*#__PURE__*/React.createElement("title", {
2815
- id: titleId
2816
- }, title), /*#__PURE__*/React.createElement(StyledPath$2, _extends__default['default']({
2817
- "data-testid": "eds-icon-path"
2818
- }, pathProps)));
2863
+ return /*#__PURE__*/jsxRuntime.jsxs(StyledSvg, { ...svgProps,
2864
+ ...rest,
2865
+ ref: ref,
2866
+ children: [title && /*#__PURE__*/jsxRuntime.jsx("title", {
2867
+ id: titleId,
2868
+ children: title
2869
+ }), /*#__PURE__*/jsxRuntime.jsx(StyledPath$2, {
2870
+ "data-testid": "eds-icon-path",
2871
+ ...pathProps
2872
+ })]
2873
+ });
2819
2874
  }); // Icon.displayName = 'EdsIcon'
2820
2875
 
2821
2876
  const Icon$1 = Icon$2;
@@ -2839,32 +2894,35 @@ const StyledList$1 = styled__default['default'].ul.withConfig({
2839
2894
  })(["", " ", ""], ({
2840
2895
  as
2841
2896
  }) => as === 'ol' ? styled.css(["& ol{list-style-type:lower-alpha;}"]) : '', typographyTemplate(typography$d));
2842
- const List$2 = /*#__PURE__*/React$1.forwardRef(function List({
2897
+ const List$2 = /*#__PURE__*/React.forwardRef(function List({
2843
2898
  children,
2844
2899
  variant = 'bullet',
2845
2900
  ...props
2846
2901
  }, ref) {
2847
2902
  const as = variant === 'numbered' ? 'ol' : 'ul';
2848
- return /*#__PURE__*/React.createElement(StyledList$1, _extends__default['default']({
2903
+ return /*#__PURE__*/jsxRuntime.jsx(StyledList$1, {
2849
2904
  as: as,
2850
- ref: ref
2851
- }, props), children);
2905
+ ref: ref,
2906
+ ...props,
2907
+ children: children
2908
+ });
2852
2909
  }); // List.displayName = 'List'
2853
2910
 
2854
- const ListItem$4 = /*#__PURE__*/React$1.forwardRef(function ListItem({
2911
+ const ListItem$2 = /*#__PURE__*/React.forwardRef(function ListItem({
2855
2912
  children,
2856
2913
  ...props
2857
2914
  }, ref) {
2858
- return /*#__PURE__*/React.createElement("li", _extends__default['default']({}, props, {
2859
- ref: ref
2860
- }), children);
2915
+ return /*#__PURE__*/jsxRuntime.jsx("li", { ...props,
2916
+ ref: ref,
2917
+ children: children
2918
+ });
2861
2919
  }); // ListItem.displayName = 'ListItem'
2862
2920
 
2863
2921
  const List$1 = List$2;
2864
- List$1.Item = ListItem$4;
2922
+ List$1.Item = ListItem$2;
2865
2923
  List$1.Item.displayName = 'List.Item';
2866
2924
 
2867
- const Accordion$1 = /*#__PURE__*/React$1.forwardRef(function Accordion({
2925
+ const Accordion$1 = /*#__PURE__*/React.forwardRef(function Accordion({
2868
2926
  headerLevel = 'h2',
2869
2927
  chevronPosition = 'left',
2870
2928
  children,
@@ -2872,21 +2930,22 @@ const Accordion$1 = /*#__PURE__*/React$1.forwardRef(function Accordion({
2872
2930
  ...props
2873
2931
  }, ref) {
2874
2932
  const accordionId = useId(id, 'accordion');
2875
- const AccordionItems = React$1.Children.map(children, (child, index) => {
2933
+ const AccordionItems = React.Children.map(children, (child, index) => {
2876
2934
  if (!child) return null;
2877
- return /*#__PURE__*/React$1.cloneElement(child, {
2935
+ return /*#__PURE__*/React.cloneElement(child, {
2878
2936
  accordionId,
2879
2937
  index,
2880
2938
  headerLevel,
2881
2939
  chevronPosition
2882
2940
  });
2883
2941
  });
2884
- return /*#__PURE__*/React.createElement("div", _extends__default['default']({}, props, {
2885
- ref: ref
2886
- }), AccordionItems);
2942
+ return /*#__PURE__*/jsxRuntime.jsx("div", { ...props,
2943
+ ref: ref,
2944
+ children: AccordionItems
2945
+ });
2887
2946
  }); // Accordion.displayName = 'Accordion'
2888
2947
 
2889
- const AccordionItem = /*#__PURE__*/React$1.forwardRef(function AccordionItem({
2948
+ const AccordionItem = /*#__PURE__*/React.forwardRef(function AccordionItem({
2890
2949
  headerLevel,
2891
2950
  chevronPosition,
2892
2951
  index = 0,
@@ -2896,16 +2955,16 @@ const AccordionItem = /*#__PURE__*/React$1.forwardRef(function AccordionItem({
2896
2955
  disabled,
2897
2956
  ...props
2898
2957
  }, ref) {
2899
- const [expanded, setExpanded] = React$1.useState(isExpanded);
2958
+ const [expanded, setExpanded] = React.useState(isExpanded);
2900
2959
 
2901
2960
  const toggleExpanded = () => {
2902
2961
  setExpanded(!expanded);
2903
2962
  };
2904
2963
 
2905
- const Children = React$1.Children.map(children, (child, childIndex) => {
2906
- const headerId = `${accordionId}-header-${index + 1}`;
2907
- const panelId = `${accordionId}-panel-${index + 1}`;
2908
- return childIndex === 0 ? /*#__PURE__*/React$1.cloneElement(child, {
2964
+ const Children = React.Children.map(children, (child, childIndex) => {
2965
+ const headerId = "".concat(accordionId, "-header-").concat(index + 1);
2966
+ const panelId = "".concat(accordionId, "-panel-").concat(index + 1);
2967
+ return childIndex === 0 ? /*#__PURE__*/React.cloneElement(child, {
2909
2968
  isExpanded: expanded,
2910
2969
  toggleExpanded,
2911
2970
  id: headerId,
@@ -2914,18 +2973,19 @@ const AccordionItem = /*#__PURE__*/React$1.forwardRef(function AccordionItem({
2914
2973
  chevronPosition,
2915
2974
  parentIndex: index,
2916
2975
  disabled
2917
- }) : /*#__PURE__*/React$1.cloneElement(child, {
2976
+ }) : /*#__PURE__*/React.cloneElement(child, {
2918
2977
  hidden: !expanded,
2919
2978
  id: panelId,
2920
2979
  headerId
2921
2980
  });
2922
2981
  });
2923
- React$1.useEffect(() => {
2982
+ React.useEffect(() => {
2924
2983
  setExpanded(isExpanded);
2925
2984
  }, [isExpanded]);
2926
- return /*#__PURE__*/React.createElement("div", _extends__default['default']({}, props, {
2927
- ref: ref
2928
- }), Children);
2985
+ return /*#__PURE__*/jsxRuntime.jsx("div", { ...props,
2986
+ ref: ref,
2987
+ children: Children
2988
+ });
2929
2989
  }); // AccordionItem.displayName = 'AccordionItem'
2930
2990
 
2931
2991
  const {
@@ -3048,16 +3108,17 @@ const StyledAccordionHeaderTitle = styled__default['default'].span.withConfig({
3048
3108
 
3049
3109
  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';
3050
3110
  });
3051
- const AccordionHeaderTitle = /*#__PURE__*/React$1.forwardRef(function AccordionHeaderTitle({
3111
+ const AccordionHeaderTitle = /*#__PURE__*/React.forwardRef(function AccordionHeaderTitle({
3052
3112
  isExpanded,
3053
3113
  disabled,
3054
3114
  children
3055
3115
  }, ref) {
3056
- return /*#__PURE__*/React.createElement(StyledAccordionHeaderTitle, {
3116
+ return /*#__PURE__*/jsxRuntime.jsx(StyledAccordionHeaderTitle, {
3057
3117
  ref: ref,
3058
3118
  isExpanded: isExpanded,
3059
- disabled: disabled
3060
- }, children);
3119
+ disabled: disabled,
3120
+ children: children
3121
+ });
3061
3122
  }); // AccordionHeaderTitle.displayName = 'AccordionHeaderTitle'
3062
3123
 
3063
3124
  const {
@@ -3081,7 +3142,7 @@ const StyledAccordionHeader = styled__default['default'].div.attrs(({
3081
3142
  })).withConfig({
3082
3143
  displayName: "AccordionHeader__StyledAccordionHeader",
3083
3144
  componentId: "sc-cu2e95-0"
3084
- })(["", " ", " ", " &[data-focus-visible-added]:focus{", "}border-top:", ";background:", ";height:", ";margin:0;display:flex;align-items:center;box-sizing:border-box;", " > svg{color:", ";}"], typographyTemplate(header$2.typography), bordersTemplate(accordion.border), spacingsTemplate(header$2.spacings), outlineTemplate(header$2.states.focus.outline), ({
3145
+ })(["", " ", " ", " &[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), ({
3085
3146
  parentIndex
3086
3147
  }) => parentIndex === 0 ? null : 'none', header$2.background, header$2.height, ({
3087
3148
  disabled
@@ -3107,7 +3168,7 @@ const StyledIcon$1 = styled__default['default'](Icon$1).withConfig({
3107
3168
  } : {
3108
3169
  marginLeft: '16px'
3109
3170
  });
3110
- const AccordionHeader = /*#__PURE__*/React$1.forwardRef(function AccordionHeader({
3171
+ const AccordionHeader = /*#__PURE__*/React.forwardRef(function AccordionHeader({
3111
3172
  parentIndex,
3112
3173
  headerLevel,
3113
3174
  chevronPosition,
@@ -3145,23 +3206,24 @@ const AccordionHeader = /*#__PURE__*/React$1.forwardRef(function AccordionHeader
3145
3206
  }
3146
3207
  };
3147
3208
 
3148
- const chevron = /*#__PURE__*/React.createElement(StyledIcon$1, {
3149
- key: `${id}-icon`,
3209
+ const chevron = /*#__PURE__*/jsxRuntime.jsx(StyledIcon$1, {
3150
3210
  data: isExpanded ? edsIcons.chevron_up : edsIcons.chevron_down,
3151
3211
  size: 24,
3152
3212
  chevronPosition: chevronPosition,
3153
3213
  color: disabled ? chevronToken.states.disabled.background : chevronToken.background
3154
- });
3155
- const headerChildren = React$1.Children.map(children, child => {
3214
+ }, "".concat(id, "-icon"));
3215
+
3216
+ const headerChildren = React.Children.map(children, child => {
3156
3217
  if (typeof child === 'string') {
3157
- return /*#__PURE__*/React.createElement(AccordionHeaderTitle, {
3218
+ return /*#__PURE__*/jsxRuntime.jsx(AccordionHeaderTitle, {
3158
3219
  isExpanded: isExpanded,
3159
- disabled: disabled
3160
- }, child);
3220
+ disabled: disabled,
3221
+ children: child
3222
+ });
3161
3223
  }
3162
3224
 
3163
- if ( /*#__PURE__*/React$1.isValidElement(child) && child.type === AccordionHeaderTitle) {
3164
- return /*#__PURE__*/React$1.cloneElement(child, {
3225
+ if ( /*#__PURE__*/React.isValidElement(child) && child.type === AccordionHeaderTitle) {
3226
+ return /*#__PURE__*/React.cloneElement(child, {
3165
3227
  isExpanded,
3166
3228
  disabled
3167
3229
  });
@@ -3170,17 +3232,18 @@ const AccordionHeader = /*#__PURE__*/React$1.forwardRef(function AccordionHeader
3170
3232
  return child;
3171
3233
  });
3172
3234
  const newChildren = [chevron, headerChildren];
3173
- return /*#__PURE__*/React.createElement(StyledAccordionHeader, _extends__default['default']({
3235
+ return /*#__PURE__*/jsxRuntime.jsx(StyledAccordionHeader, {
3174
3236
  isExpanded: isExpanded,
3175
3237
  parentIndex: parentIndex,
3176
3238
  as: headerLevel,
3177
- disabled: disabled
3178
- }, props, {
3239
+ disabled: disabled,
3240
+ ...props,
3179
3241
  panelId: panelId,
3180
3242
  onClick: handleClick,
3181
3243
  onKeyDown: handleKeyDown,
3182
- ref: ref
3183
- }), chevronPosition === 'left' ? newChildren : newChildren.reverse());
3244
+ ref: ref,
3245
+ children: chevronPosition === 'left' ? newChildren : newChildren.reverse()
3246
+ });
3184
3247
  }); // AccordionHeader.displayName = 'EdsAccordionHeader'
3185
3248
 
3186
3249
  const {
@@ -3198,20 +3261,21 @@ const StyledAccordionPanel = styled__default['default'].div.attrs(({
3198
3261
  displayName: "AccordionPanel__StyledAccordionPanel",
3199
3262
  componentId: "sc-suplv4-0"
3200
3263
  })(["", " ", " background:", ";min-height:96px;box-sizing:border-box;"], bordersTemplate(accordion.border), spacingsTemplate(panel$1.spacings), header$1.background);
3201
- const AccordionPanel = /*#__PURE__*/React$1.forwardRef(function AccordionPanel({
3264
+ const AccordionPanel = /*#__PURE__*/React.forwardRef(function AccordionPanel({
3202
3265
  id,
3203
3266
  headerId,
3204
3267
  hidden,
3205
3268
  children,
3206
3269
  ...props
3207
3270
  }, ref) {
3208
- return /*#__PURE__*/React.createElement(StyledAccordionPanel, _extends__default['default']({
3271
+ return /*#__PURE__*/jsxRuntime.jsx(StyledAccordionPanel, {
3209
3272
  headerId: headerId,
3210
3273
  id: id,
3211
- hidden: hidden
3212
- }, props, {
3213
- ref: ref
3214
- }), children);
3274
+ hidden: hidden,
3275
+ ...props,
3276
+ ref: ref,
3277
+ children: children
3278
+ });
3215
3279
  }); // AccordionPanel.displayName = 'eds-accordion-panel'
3216
3280
 
3217
3281
  const Accordion = Accordion$1;
@@ -3224,7 +3288,7 @@ Accordion.Header.displayName = 'Accordion.Header';
3224
3288
  Accordion.HeaderTitle.displayName = 'Accordion.HeaderTitle';
3225
3289
  Accordion.Panel.displayName = 'Accordion.Panel';
3226
3290
 
3227
- const TabsContext = /*#__PURE__*/React$1.createContext({
3291
+ const TabsContext = /*#__PURE__*/React.createContext({
3228
3292
  variant: 'minWidth',
3229
3293
  handleChange: () => null,
3230
3294
  activeTab: 0,
@@ -3234,7 +3298,7 @@ const TabsContext = /*#__PURE__*/React$1.createContext({
3234
3298
  const TabsProvider = TabsContext.Provider;
3235
3299
  TabsContext.Consumer;
3236
3300
 
3237
- const Tabs$1 = /*#__PURE__*/React$1.forwardRef(function Tabs({
3301
+ const Tabs$1 = /*#__PURE__*/React.forwardRef(function Tabs({
3238
3302
  activeTab = 0,
3239
3303
  onChange,
3240
3304
  onBlur,
@@ -3244,7 +3308,7 @@ const Tabs$1 = /*#__PURE__*/React$1.forwardRef(function Tabs({
3244
3308
  ...props
3245
3309
  }, ref) {
3246
3310
  const tabsId = useId(id, 'tabs');
3247
- const [tabsFocused, setTabsFocused] = React$1.useState(false);
3311
+ const [tabsFocused, setTabsFocused] = React.useState(false);
3248
3312
  let blurTimer;
3249
3313
 
3250
3314
  const handleBlur = e => {
@@ -3270,20 +3334,21 @@ const Tabs$1 = /*#__PURE__*/React$1.forwardRef(function Tabs({
3270
3334
  onFocus && onFocus(e);
3271
3335
  };
3272
3336
 
3273
- return /*#__PURE__*/React.createElement(TabsProvider, {
3337
+ return /*#__PURE__*/jsxRuntime.jsx(TabsProvider, {
3274
3338
  value: {
3275
3339
  activeTab,
3276
3340
  handleChange: onChange,
3277
3341
  tabsId,
3278
3342
  variant,
3279
3343
  tabsFocused
3280
- }
3281
- }, /*#__PURE__*/React.createElement("div", _extends__default['default']({
3282
- ref: ref
3283
- }, props, {
3284
- onBlur: handleBlur,
3285
- onFocus: handleFocus
3286
- })));
3344
+ },
3345
+ children: /*#__PURE__*/jsxRuntime.jsx("div", {
3346
+ ref: ref,
3347
+ ...props,
3348
+ onBlur: handleBlur,
3349
+ onFocus: handleFocus
3350
+ })
3351
+ });
3287
3352
  });
3288
3353
 
3289
3354
  const variants$1 = {
@@ -3298,7 +3363,7 @@ const StyledTabList = styled__default['default'].div.attrs(() => ({
3298
3363
  })(["display:grid;grid-auto-flow:column;grid-auto-columns:", ";"], ({
3299
3364
  variant
3300
3365
  }) => variants$1[variant]);
3301
- const TabList = /*#__PURE__*/React$1.forwardRef(function TabsList({
3366
+ const TabList = /*#__PURE__*/React.forwardRef(function TabsList({
3302
3367
  children = [],
3303
3368
  ...props
3304
3369
  }, ref) {
@@ -3308,22 +3373,22 @@ const TabList = /*#__PURE__*/React$1.forwardRef(function TabsList({
3308
3373
  tabsId,
3309
3374
  variant = 'minWidth',
3310
3375
  tabsFocused
3311
- } = React$1.useContext(TabsContext);
3312
- const currentTab = React$1.useRef(activeTab);
3313
- const selectedTabRef = React$1.useCallback(node => {
3376
+ } = React.useContext(TabsContext);
3377
+ const currentTab = React.useRef(activeTab);
3378
+ const selectedTabRef = React.useCallback(node => {
3314
3379
  if (node !== null && tabsFocused) {
3315
3380
  node.focus();
3316
3381
  }
3317
3382
  }, [tabsFocused]);
3318
- React$1.useEffect(() => {
3383
+ React.useEffect(() => {
3319
3384
  currentTab.current = activeTab;
3320
3385
  }, [activeTab]);
3321
- const Tabs = React$1.Children.map(children, (child, index) => {
3386
+ const Tabs = React.Children.map(children, (child, index) => {
3322
3387
  const tabRef = index === activeTab ? // eslint-disable-next-line react-hooks/rules-of-hooks
3323
3388
  useCombinedRefs(child.ref, selectedTabRef) : child.ref;
3324
- return /*#__PURE__*/React$1.cloneElement(child, {
3325
- id: `${tabsId}-tab-${index + 1}`,
3326
- 'aria-controls': `${tabsId}-panel-${index + 1}`,
3389
+ return /*#__PURE__*/React.cloneElement(child, {
3390
+ id: "".concat(tabsId, "-tab-").concat(index + 1),
3391
+ 'aria-controls': "".concat(tabsId, "-panel-").concat(index + 1),
3327
3392
  active: index === activeTab,
3328
3393
  index,
3329
3394
  onClick: () => handleChange(index),
@@ -3360,12 +3425,13 @@ const TabList = /*#__PURE__*/React$1.forwardRef(function TabsList({
3360
3425
  }
3361
3426
  };
3362
3427
 
3363
- return /*#__PURE__*/React.createElement(StyledTabList, _extends__default['default']({
3428
+ return /*#__PURE__*/jsxRuntime.jsx(StyledTabList, {
3364
3429
  onKeyDown: handleKeyPress,
3365
- ref: ref
3366
- }, props, {
3367
- variant: variant
3368
- }), Tabs);
3430
+ ref: ref,
3431
+ ...props,
3432
+ variant: variant,
3433
+ children: Tabs
3434
+ });
3369
3435
  });
3370
3436
 
3371
3437
  const {
@@ -3509,9 +3575,9 @@ const StyledTab = styled__default['default'].button.attrs(({
3509
3575
  })).withConfig({
3510
3576
  displayName: "Tab__StyledTab",
3511
3577
  componentId: "sc-scjkct-0"
3512
- })(["appearance:none;box-sizing:border-box;font-family:inherit;border:none;outline:none;font-size:1rem;height:", ";", " color:", ";background-color:", ";position:relative;white-space:nowrap;text-overflow:ellipsis;overflow-x:hidden;&:focus{outline:none;}&[data-focus],&[data-focus-visible-added]:focus{", "}&::-moz-focus-inner{border:0;}@media (hover:hover) and (pointer:fine){&[data-hover],&:hover{color:", ";", "}}", " ", ""], tab.height, spacingsTemplate(tab.spacings), ({
3578
+ })(["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), ({
3513
3579
  active
3514
- }) => active ? tab.states.active.typography.color : tab.typography.color, tab.background, outlineTemplate(tab.states.focus.outline), ({
3580
+ }) => active ? tab.states.active.typography.color : tab.typography.color, tab.background, outlineTemplate(tab.states.focus.outline), outlineTemplate(tab.states.focus.outline), ({
3515
3581
  active
3516
3582
  }) => active ? tab.states.active.states.hover.typography.color : tab.typography.color, ({
3517
3583
  disabled
@@ -3520,28 +3586,31 @@ const StyledTab = styled__default['default'].button.attrs(({
3520
3586
  }) => disabled ? bordersTemplate(tab.states.disabled.border) : bordersTemplate(tab.border), ({
3521
3587
  active
3522
3588
  }) => active && bordersTemplate(tab.states.active.border));
3523
- const Tab = /*#__PURE__*/React$1.forwardRef(function Tab(props, ref) {
3524
- return /*#__PURE__*/React.createElement(StyledTab, _extends__default['default']({
3525
- ref: ref
3526
- }, props));
3589
+ const Tab = /*#__PURE__*/React.forwardRef(function Tab(props, ref) {
3590
+ return /*#__PURE__*/jsxRuntime.jsx(StyledTab, {
3591
+ ref: ref,
3592
+ ...props
3593
+ });
3527
3594
  });
3528
3595
 
3529
- const TabPanels = /*#__PURE__*/React$1.forwardRef(function TabPanels({
3596
+ const TabPanels = /*#__PURE__*/React.forwardRef(function TabPanels({
3530
3597
  children,
3531
3598
  ...props
3532
3599
  }, ref) {
3533
3600
  const {
3534
3601
  activeTab,
3535
3602
  tabsId
3536
- } = React$1.useContext(TabsContext);
3537
- const Panels = React$1.Children.map(children, (child, index) => /*#__PURE__*/React$1.cloneElement(child, {
3538
- id: `${tabsId}-panel-${index + 1}`,
3539
- 'aria-labelledby': `${tabsId}-tab-${index + 1}`,
3603
+ } = React.useContext(TabsContext);
3604
+ const Panels = React.Children.map(children, (child, index) => /*#__PURE__*/React.cloneElement(child, {
3605
+ id: "".concat(tabsId, "-panel-").concat(index + 1),
3606
+ 'aria-labelledby': "".concat(tabsId, "-tab-").concat(index + 1),
3540
3607
  hidden: activeTab !== index
3541
3608
  }));
3542
- return /*#__PURE__*/React.createElement("div", _extends__default['default']({
3543
- ref: ref
3544
- }, props), Panels);
3609
+ return /*#__PURE__*/jsxRuntime.jsx("div", {
3610
+ ref: ref,
3611
+ ...props,
3612
+ children: Panels
3613
+ });
3545
3614
  });
3546
3615
 
3547
3616
  const {
@@ -3555,12 +3624,14 @@ const StyledTabPanel = styled__default['default'].div.attrs(() => ({
3555
3624
  })).withConfig({
3556
3625
  displayName: "TabPanel__StyledTabPanel",
3557
3626
  componentId: "sc-e8v1d4-0"
3558
- })(["", " &:focus{outline:none;}&[data-focus-visible-added]:focus{", "}"], spacingsTemplate(panel.spacings), outlineTemplate(panel.states.focus.outline));
3559
- const TabPanel = /*#__PURE__*/React$1.forwardRef(function TabPanel({ ...props
3627
+ })(["", " &:focus{outline:none;}&[data-focus-visible-added]:focus{", "}&:focus-visible{", "}"], spacingsTemplate(panel.spacings), outlineTemplate(panel.states.focus.outline), outlineTemplate(panel.states.focus.outline));
3628
+ const TabPanel = /*#__PURE__*/React.forwardRef(function TabPanel({ ...props
3560
3629
  }, ref) {
3561
- return /*#__PURE__*/React.createElement(StyledTabPanel, _extends__default['default']({
3562
- ref: ref
3563
- }, props), props.children);
3630
+ return /*#__PURE__*/jsxRuntime.jsx(StyledTabPanel, {
3631
+ ref: ref,
3632
+ ...props,
3633
+ children: props.children
3634
+ });
3564
3635
  });
3565
3636
 
3566
3637
  const Tabs = Tabs$1;
@@ -3638,12 +3709,12 @@ const {
3638
3709
  const StyledCard = styled__default['default'].div.withConfig({
3639
3710
  displayName: "Card__StyledCard",
3640
3711
  componentId: "sc-bjucjn-0"
3641
- })(["height:fit-content;width:100%;position:relative;background-color:", ";box-sizing:border-box;display:grid;grid-gap:16px;grid-auto-columns:auto;align-items:center;align-content:start;cursor:", ";", ";", ""], ({
3712
+ })(["height:fit-content;width:100%;position:relative;background-color:", ";box-sizing:border-box;display:grid;grid-gap:16px;grid-auto-columns:auto;align-items:center;align-content:start;cursor:", ";", ";"], ({
3642
3713
  background
3643
3714
  }) => background, ({
3644
3715
  cursor
3645
- }) => cursor, bordersTemplate(primary$3.border), spacingsTemplate(primary$3.spacings));
3646
- const Card$1 = /*#__PURE__*/React$1.forwardRef(function Card({
3716
+ }) => cursor, bordersTemplate(primary$3.border));
3717
+ const Card$1 = /*#__PURE__*/React.forwardRef(function Card({
3647
3718
  children,
3648
3719
  variant = 'default',
3649
3720
  onClick,
@@ -3658,18 +3729,22 @@ const Card$1 = /*#__PURE__*/React$1.forwardRef(function Card({
3658
3729
  cursor,
3659
3730
  ...rest
3660
3731
  };
3661
- return /*#__PURE__*/React.createElement(StyledCard, _extends__default['default']({}, props, {
3662
- onClick: onClick
3663
- }), children);
3732
+ return /*#__PURE__*/jsxRuntime.jsx(StyledCard, { ...props,
3733
+ onClick: onClick,
3734
+ children: children
3735
+ });
3664
3736
  });
3665
3737
 
3738
+ const {
3739
+ spacings: spacings$8
3740
+ } = primary$4;
3666
3741
  const StyledCardActions = styled__default['default'].div.withConfig({
3667
3742
  displayName: "CardActions__StyledCardActions",
3668
3743
  componentId: "sc-1d5vskp-0"
3669
- })(["display:grid;grid-gap:8px;grid-auto-flow:column;align-items:center;justify-content:", ";"], ({
3744
+ })(["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:", ";}"], ({
3670
3745
  justifyContent
3671
- }) => justifyContent);
3672
- const CardActions = /*#__PURE__*/React$1.forwardRef(function CardActions({
3746
+ }) => justifyContent, spacings$8.right, spacings$8.left, spacings$8.top, spacings$8.bottom);
3747
+ const CardActions = /*#__PURE__*/React.forwardRef(function CardActions({
3673
3748
  children,
3674
3749
  alignRight = false,
3675
3750
  meta = '',
@@ -3681,9 +3756,30 @@ const CardActions = /*#__PURE__*/React$1.forwardRef(function CardActions({
3681
3756
  justifyContent,
3682
3757
  ...rest
3683
3758
  };
3684
- return /*#__PURE__*/React.createElement(StyledCardActions, props, children, meta !== '' && /*#__PURE__*/React.createElement(Typography, {
3685
- variant: "caption"
3686
- }, meta));
3759
+ return /*#__PURE__*/jsxRuntime.jsxs(StyledCardActions, { ...props,
3760
+ children: [children, meta !== '' && /*#__PURE__*/jsxRuntime.jsx(Typography, {
3761
+ variant: "caption",
3762
+ children: meta
3763
+ })]
3764
+ });
3765
+ });
3766
+
3767
+ const {
3768
+ spacings: spacings$7
3769
+ } = primary$4;
3770
+ const StyledCardContent = styled__default['default'].div.withConfig({
3771
+ displayName: "CardContent__StyledCardContent",
3772
+ componentId: "sc-esm4ym-0"
3773
+ })(["display:grid;padding:0 ", " 0 ", ";:last-child{padding-bottom:", ";}"], spacings$7.right, spacings$7.left, spacings$7.bottom);
3774
+ const CardContent = /*#__PURE__*/React.forwardRef(function CardContent({
3775
+ children,
3776
+ ...props
3777
+ }, ref) {
3778
+ return /*#__PURE__*/jsxRuntime.jsx(StyledCardContent, {
3779
+ ref: ref,
3780
+ ...props,
3781
+ children: children
3782
+ });
3687
3783
  });
3688
3784
 
3689
3785
  const {
@@ -3693,10 +3789,10 @@ const {
3693
3789
  const StyledCardMedia = styled__default['default'].div.withConfig({
3694
3790
  displayName: "CardMedia__StyledCardMedia",
3695
3791
  componentId: "sc-kr8q9c-0"
3696
- })(["display:flex;width:100%;&:last-child{margin-bottom:8px;}", ""], ({
3792
+ })(["display:flex;width:auto;", ""], ({
3697
3793
  fullWidth
3698
- }) => fullWidth ? styled.css(["> *{width:calc(100% + ", " + ", ");margin-left:-", ";margin-right:-", ";}&:first-child{margin-top:-", ";img{border-top-right-radius:", ";border-top-left-radius:", ";}}"], spacings$6.left, spacings$6.right, spacings$6.left, spacings$6.right, spacings$6.top, border$5.type === 'border' && border$5.radius, border$5.type === 'border' && border$5.radius) : styled.css(["> *{width:100%;}"]));
3699
- const CardMedia = /*#__PURE__*/React$1.forwardRef(function CardMedia({
3794
+ }) => 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));
3795
+ const CardMedia = /*#__PURE__*/React.forwardRef(function CardMedia({
3700
3796
  children,
3701
3797
  fullWidth = false,
3702
3798
  ...rest
@@ -3705,7 +3801,9 @@ const CardMedia = /*#__PURE__*/React$1.forwardRef(function CardMedia({
3705
3801
  ref,
3706
3802
  fullWidth
3707
3803
  };
3708
- return /*#__PURE__*/React.createElement(StyledCardMedia, props, children);
3804
+ return /*#__PURE__*/jsxRuntime.jsx(StyledCardMedia, { ...props,
3805
+ children: children
3806
+ });
3709
3807
  });
3710
3808
 
3711
3809
  const {
@@ -3714,37 +3812,43 @@ const {
3714
3812
  const StyledCardHeader = styled__default['default'].div.withConfig({
3715
3813
  displayName: "CardHeader__StyledCardHeader",
3716
3814
  componentId: "sc-15k8edh-0"
3717
- })(["display:flex;justify-content:space-between;align-items:center;>:not(:first-child){margin-left:", ";}"], spacings$5.left);
3718
- const CardHeader = /*#__PURE__*/React$1.forwardRef(function CardHeader({
3815
+ })(["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);
3816
+ const CardHeader = /*#__PURE__*/React.forwardRef(function CardHeader({
3719
3817
  children,
3720
3818
  ...rest
3721
3819
  }, ref) {
3722
3820
  const props = { ...rest,
3723
3821
  ref
3724
3822
  };
3725
- return /*#__PURE__*/React.createElement(StyledCardHeader, props, children);
3823
+ return /*#__PURE__*/jsxRuntime.jsx(StyledCardHeader, { ...props,
3824
+ children: children
3825
+ });
3726
3826
  });
3727
3827
 
3728
3828
  const StyledCardHeaderTitle = styled__default['default'].div.withConfig({
3729
3829
  displayName: "CardHeaderTitle__StyledCardHeaderTitle",
3730
3830
  componentId: "sc-11m80r3-0"
3731
3831
  })(["display:grid;flex-grow:2;grid-auto-columns:auto;"]);
3732
- const CardHeaderTitle = /*#__PURE__*/React$1.forwardRef(function CardHeaderTitle({
3832
+ const CardHeaderTitle = /*#__PURE__*/React.forwardRef(function CardHeaderTitle({
3733
3833
  children,
3734
3834
  ...rest
3735
3835
  }, ref) {
3736
3836
  const props = { ...rest,
3737
3837
  ref
3738
3838
  };
3739
- return /*#__PURE__*/React.createElement(StyledCardHeaderTitle, props, children);
3839
+ return /*#__PURE__*/jsxRuntime.jsx(StyledCardHeaderTitle, { ...props,
3840
+ children: children
3841
+ });
3740
3842
  });
3741
3843
 
3742
3844
  const Card = Card$1;
3743
3845
  Card.Actions = CardActions;
3846
+ Card.Content = CardContent;
3744
3847
  Card.Header = CardHeader;
3745
3848
  Card.Media = CardMedia;
3746
3849
  Card.HeaderTitle = CardHeaderTitle;
3747
3850
  Card.Actions.displayName = 'Card.Actions';
3851
+ Card.Content.displayName = 'Card.Content';
3748
3852
  Card.Header.displayName = 'Card.Header';
3749
3853
  Card.Media.displayName = 'Card.Media';
3750
3854
  Card.HeaderTitle.displayName = 'Card.HeaderTitle';
@@ -3789,57 +3893,64 @@ const StyledTopBar = styled__default['default'].header.withConfig({
3789
3893
  displayName: "TopBar__StyledTopBar",
3790
3894
  componentId: "sc-1yj236q-0"
3791
3895
  })(["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));
3792
- const TopBar$1 = /*#__PURE__*/React$1.forwardRef(function TopBar({
3896
+ const TopBar$1 = /*#__PURE__*/React.forwardRef(function TopBar({
3793
3897
  children,
3794
3898
  ...props
3795
3899
  }, ref) {
3796
- return /*#__PURE__*/React.createElement(StyledTopBar, _extends__default['default']({}, props, {
3797
- ref: ref
3798
- }), children);
3900
+ return /*#__PURE__*/jsxRuntime.jsx(StyledTopBar, { ...props,
3901
+ ref: ref,
3902
+ children: children
3903
+ });
3799
3904
  }); // TopBar.displayName = 'eds-topbar'
3800
3905
 
3801
3906
  const StyledActions$1 = styled__default['default'].div.withConfig({
3802
3907
  displayName: "Actions__StyledActions",
3803
3908
  componentId: "sc-1251ang-0"
3804
- })(["grid-area:right;text-align:right;"]);
3805
- const Actions$1 = /*#__PURE__*/React$1.forwardRef(function Actions({
3909
+ })(["grid-area:right;text-align:right;align-items:center;display:flex;"]);
3910
+ const Actions$1 = /*#__PURE__*/React.forwardRef(function Actions({
3806
3911
  children,
3807
3912
  ...props
3808
3913
  }, ref) {
3809
- return /*#__PURE__*/React.createElement(StyledActions$1, _extends__default['default']({
3810
- ref: ref
3811
- }, props), children);
3914
+ return /*#__PURE__*/jsxRuntime.jsx(StyledActions$1, {
3915
+ ref: ref,
3916
+ ...props,
3917
+ children: children
3918
+ });
3812
3919
  }); // Actions.displayName = 'eds-topbar-actions'
3813
3920
 
3814
3921
  const StyledHeader = styled__default['default'].div.withConfig({
3815
3922
  displayName: "Header__StyledHeader",
3816
3923
  componentId: "sc-1fpllve-0"
3817
3924
  })(["grid-area:left;display:grid;grid-template-columns:auto auto;grid-gap:24px;align-items:center;"]);
3818
- const Header$1 = /*#__PURE__*/React$1.forwardRef(function Header({
3925
+ const Header$2 = /*#__PURE__*/React.forwardRef(function Header({
3819
3926
  children,
3820
3927
  ...props
3821
3928
  }, ref) {
3822
- return /*#__PURE__*/React.createElement(StyledHeader, _extends__default['default']({
3823
- ref: ref
3824
- }, props), children);
3929
+ return /*#__PURE__*/jsxRuntime.jsx(StyledHeader, {
3930
+ ref: ref,
3931
+ ...props,
3932
+ children: children
3933
+ });
3825
3934
  }); // Header.displayName = 'eds-topbar-header'
3826
3935
 
3827
3936
  const StyledCustomContent$1 = styled__default['default'].div.withConfig({
3828
3937
  displayName: "CustomContent__StyledCustomContent",
3829
3938
  componentId: "sc-d0e83a-0"
3830
3939
  })(["grid-area:center;"]);
3831
- const CustomContent$1 = /*#__PURE__*/React$1.forwardRef(function CustomContent({
3940
+ const CustomContent$1 = /*#__PURE__*/React.forwardRef(function CustomContent({
3832
3941
  children,
3833
3942
  ...props
3834
3943
  }, ref) {
3835
- return /*#__PURE__*/React.createElement(StyledCustomContent$1, _extends__default['default']({
3836
- ref: ref
3837
- }, props), children);
3944
+ return /*#__PURE__*/jsxRuntime.jsx(StyledCustomContent$1, {
3945
+ ref: ref,
3946
+ ...props,
3947
+ children: children
3948
+ });
3838
3949
  }); // CustomContent.displayName = 'eds-topbar-customcontent'
3839
3950
 
3840
3951
  const TopBar = TopBar$1;
3841
3952
  TopBar.Actions = Actions$1;
3842
- TopBar.Header = Header$1;
3953
+ TopBar.Header = Header$2;
3843
3954
  TopBar.CustomContent = CustomContent$1;
3844
3955
  TopBar.Actions.displayName = 'Topbar.Actions';
3845
3956
  TopBar.Header.displayName = 'Topbar.Header';
@@ -3937,16 +4048,16 @@ const StyledPaper = styled__default['default'].div.withConfig({
3937
4048
  })(["min-width:", ";max-width:", ";background:", ";box-shadow:", ";"], paper.minWidth, paper.maxWidth, paper.background, ({
3938
4049
  elevation
3939
4050
  }) => elevation);
3940
- const Paper = /*#__PURE__*/React$1.forwardRef(function Paper({
4051
+ const Paper = /*#__PURE__*/React.forwardRef(function Paper({
3941
4052
  elevation: elevation$1,
3942
4053
  ...rest
3943
4054
  }, ref) {
3944
4055
  const props = { ...rest,
3945
4056
  elevation: elevation[elevation$1] || 'none'
3946
4057
  };
3947
- return /*#__PURE__*/React.createElement(StyledPaper, _extends__default['default']({}, props, {
4058
+ return /*#__PURE__*/jsxRuntime.jsx(StyledPaper, { ...props,
3948
4059
  ref: ref
3949
- }));
4060
+ });
3950
4061
  });
3951
4062
 
3952
4063
  const StyledDialog = styled__default['default'](Paper).attrs(() => ({
@@ -3959,15 +4070,16 @@ const StyledDialog = styled__default['default'](Paper).attrs(() => ({
3959
4070
  displayName: "Dialog__StyledDialog",
3960
4071
  componentId: "sc-1mewo3f-0"
3961
4072
  })(["width:", ";background:", ";display:grid;", " ", " ", ""], dialog.width, dialog.background, typographyTemplate(dialog.typography), spacingsTemplate(dialog.spacings), bordersTemplate(dialog.border));
3962
- const Dialog$1 = /*#__PURE__*/React$1.forwardRef(function Dialog({
4073
+ const Dialog$1 = /*#__PURE__*/React.forwardRef(function Dialog({
3963
4074
  children,
3964
4075
  ...props
3965
4076
  }, ref) {
3966
- return /*#__PURE__*/React.createElement(StyledDialog, _extends__default['default']({
3967
- elevation: "above_scrim"
3968
- }, props, {
3969
- ref: ref
3970
- }), children);
4077
+ return /*#__PURE__*/jsxRuntime.jsx(StyledDialog, {
4078
+ elevation: "above_scrim",
4079
+ ...props,
4080
+ ref: ref,
4081
+ children: children
4082
+ });
3971
4083
  }); // Dialog.displayName = 'EdsDialog'
3972
4084
 
3973
4085
  const StyledActions = styled__default['default'].div.withConfig({
@@ -3976,13 +4088,15 @@ const StyledActions = styled__default['default'].div.withConfig({
3976
4088
  })(["min-height:", ";", " align-self:end;justify-self:start;", ""], dialog.entities.actions.minHeight, spacingsTemplate(dialog.entities.children.spacings), ({
3977
4089
  children
3978
4090
  }) => !children && styled.css(["min-height:initial;height:'8px';"]));
3979
- const Actions = /*#__PURE__*/React$1.forwardRef(function Actions({
4091
+ const Actions = /*#__PURE__*/React.forwardRef(function Actions({
3980
4092
  children,
3981
4093
  ...props
3982
4094
  }, ref) {
3983
- return /*#__PURE__*/React.createElement(StyledActions, _extends__default['default']({
3984
- ref: ref
3985
- }, props), children);
4095
+ return /*#__PURE__*/jsxRuntime.jsx(StyledActions, {
4096
+ ref: ref,
4097
+ ...props,
4098
+ children: children
4099
+ });
3986
4100
  }); // Actions.displayName = 'EdsDialogActions'
3987
4101
 
3988
4102
  const StyledTitle = styled__default['default'].div.withConfig({
@@ -3995,17 +4109,21 @@ const StyledDivider$2 = styled__default['default'](Divider).withConfig({
3995
4109
  displayName: "Title__StyledDivider",
3996
4110
  componentId: "sc-i4qfl5-1"
3997
4111
  })(["width:100%;margin-bottom:", ";"], dialog.entities.divider.spacings.bottom);
3998
- const Title = /*#__PURE__*/React$1.forwardRef(function Title({
4112
+ const Title = /*#__PURE__*/React.forwardRef(function Title({
3999
4113
  children,
4000
4114
  ...rest
4001
4115
  }, ref) {
4002
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StyledTitle, _extends__default['default']({
4003
- id: "eds-dialog-title",
4004
- ref: ref
4005
- }, rest), children), children && /*#__PURE__*/React.createElement(StyledDivider$2, {
4006
- color: "medium",
4007
- variant: "small"
4008
- }));
4116
+ return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
4117
+ children: [/*#__PURE__*/jsxRuntime.jsx(StyledTitle, {
4118
+ id: "eds-dialog-title",
4119
+ ref: ref,
4120
+ ...rest,
4121
+ children: children
4122
+ }), children && /*#__PURE__*/jsxRuntime.jsx(StyledDivider$2, {
4123
+ color: "medium",
4124
+ variant: "small"
4125
+ })]
4126
+ });
4009
4127
  });
4010
4128
 
4011
4129
  const StyledCustomContent = styled__default['default'].div.withConfig({
@@ -4018,7 +4136,7 @@ const StyledDivider$1 = styled__default['default'](Divider).withConfig({
4018
4136
  displayName: "CustomContent__StyledDivider",
4019
4137
  componentId: "sc-17fsw6x-1"
4020
4138
  })(["width:100%;margin-bottom:", ";"], dialog.entities.divider.spacings.bottom);
4021
- const CustomContent = /*#__PURE__*/React$1.forwardRef(function CustomContent({
4139
+ const CustomContent = /*#__PURE__*/React.forwardRef(function CustomContent({
4022
4140
  children,
4023
4141
  scrollable = false,
4024
4142
  ...rest
@@ -4028,12 +4146,16 @@ const CustomContent = /*#__PURE__*/React$1.forwardRef(function CustomContent({
4028
4146
  ref,
4029
4147
  ...rest
4030
4148
  };
4031
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StyledCustomContent, _extends__default['default']({
4032
- id: "eds-dialog-customcontent"
4033
- }, props), children), children && scrollable && /*#__PURE__*/React.createElement(StyledDivider$1, {
4034
- color: "medium",
4035
- variant: "small"
4036
- }));
4149
+ return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
4150
+ children: [/*#__PURE__*/jsxRuntime.jsx(StyledCustomContent, {
4151
+ id: "eds-dialog-customcontent",
4152
+ ...props,
4153
+ children: children
4154
+ }), children && scrollable && /*#__PURE__*/jsxRuntime.jsx(StyledDivider$1, {
4155
+ color: "medium",
4156
+ variant: "small"
4157
+ })]
4158
+ });
4037
4159
  });
4038
4160
 
4039
4161
  const Dialog = Dialog$1;
@@ -4072,7 +4194,7 @@ const ScrimContent = styled__default['default'].div.withConfig({
4072
4194
  displayName: "Scrim__ScrimContent",
4073
4195
  componentId: "sc-1fr7uvy-1"
4074
4196
  })(["width:auto;height:auto;"]);
4075
- const Scrim = /*#__PURE__*/React$1.forwardRef(function Scrim({
4197
+ const Scrim = /*#__PURE__*/React.forwardRef(function Scrim({
4076
4198
  children,
4077
4199
  onClose,
4078
4200
  isDismissable = false,
@@ -4103,11 +4225,14 @@ const Scrim = /*#__PURE__*/React$1.forwardRef(function Scrim({
4103
4225
  event.stopPropagation();
4104
4226
  };
4105
4227
 
4106
- return /*#__PURE__*/React.createElement(StyledScrim, _extends__default['default']({
4107
- onClick: handleMouseClose
4108
- }, props), /*#__PURE__*/React.createElement(ScrimContent, {
4109
- onClick: handleContentClick
4110
- }, children));
4228
+ return /*#__PURE__*/jsxRuntime.jsx(StyledScrim, {
4229
+ onClick: handleMouseClose,
4230
+ ...props,
4231
+ children: /*#__PURE__*/jsxRuntime.jsx(ScrimContent, {
4232
+ onClick: handleContentClick,
4233
+ children: children
4234
+ })
4235
+ });
4111
4236
  });
4112
4237
 
4113
4238
  const {
@@ -4224,32 +4349,38 @@ const TocLabel = styled__default['default'](Typography).withConfig({
4224
4349
  displayName: "TableOfContents__TocLabel",
4225
4350
  componentId: "sc-q23s6y-2"
4226
4351
  })(["", ""], typographyTemplate(tableOfContents.typography));
4227
- const TableOfContents$1 = /*#__PURE__*/React$1.forwardRef(function TableOfContents({
4352
+ const TableOfContents$1 = /*#__PURE__*/React.forwardRef(function TableOfContents({
4228
4353
  children,
4229
4354
  sticky = false,
4230
4355
  label = '',
4231
4356
  ...rest
4232
4357
  }, ref) {
4233
- return /*#__PURE__*/React.createElement(StyledTableOfContents, _extends__default['default']({
4358
+ return /*#__PURE__*/jsxRuntime.jsxs(StyledTableOfContents, {
4234
4359
  ref: ref,
4235
4360
  label: label,
4236
- sticky: sticky
4237
- }, rest), /*#__PURE__*/React.createElement(TocLabel, {
4238
- variant: "overline"
4239
- }, label), /*#__PURE__*/React.createElement(TocList, null, children));
4361
+ sticky: sticky,
4362
+ ...rest,
4363
+ children: [/*#__PURE__*/jsxRuntime.jsx(TocLabel, {
4364
+ variant: "overline",
4365
+ children: label
4366
+ }), /*#__PURE__*/jsxRuntime.jsx(TocList, {
4367
+ children: children
4368
+ })]
4369
+ });
4240
4370
  });
4241
4371
 
4242
4372
  const StyledLinkItem = styled__default['default'].li.withConfig({
4243
4373
  displayName: "LinkItem__StyledLinkItem",
4244
4374
  componentId: "sc-1tfuad4-0"
4245
4375
  })(["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);
4246
- const LinkItem = /*#__PURE__*/React$1.forwardRef(function LinkItem({
4376
+ const LinkItem = /*#__PURE__*/React.forwardRef(function LinkItem({
4247
4377
  children,
4248
4378
  ...props
4249
4379
  }, ref) {
4250
- return /*#__PURE__*/React.createElement(StyledLinkItem, _extends__default['default']({}, props, {
4251
- ref: ref
4252
- }), children);
4380
+ return /*#__PURE__*/jsxRuntime.jsx(StyledLinkItem, { ...props,
4381
+ ref: ref,
4382
+ children: children
4383
+ });
4253
4384
  });
4254
4385
 
4255
4386
  const TableOfContents = TableOfContents$1;
@@ -4309,11 +4440,11 @@ const StyledSideSheet = styled__default['default'].div.withConfig({
4309
4440
  })(["height:100%;position:absolute;z-index:200;top:0;right:0;box-sizing:border-box;background:", ";width:", ";", " ", ";"], background$7, ({
4310
4441
  width
4311
4442
  }) => width, bordersTemplate(border$3), spacingsTemplate(spacings$3));
4312
- const Header = styled__default['default'].div.withConfig({
4443
+ const Header$1 = styled__default['default'].div.withConfig({
4313
4444
  displayName: "SideSheet__Header",
4314
4445
  componentId: "sc-wkzlnn-1"
4315
4446
  })(["display:flex;flex-wrap:nowrap;justify-content:space-between;align-items:center;padding-bottom:24px;padding-right:10px;"]);
4316
- const SideSheet = /*#__PURE__*/React$1.forwardRef(function SideSheet({
4447
+ const SideSheet = /*#__PURE__*/React.forwardRef(function SideSheet({
4317
4448
  variant = 'medium',
4318
4449
  title = '',
4319
4450
  children,
@@ -4326,19 +4457,24 @@ const SideSheet = /*#__PURE__*/React$1.forwardRef(function SideSheet({
4326
4457
  width: variants[variant]
4327
4458
  }; // Controller must set open={false} when pressing the close button
4328
4459
 
4329
- return open && /*#__PURE__*/React.createElement(StyledSideSheet, _extends__default['default']({}, props, {
4330
- id: "side-sheet"
4331
- }), /*#__PURE__*/React.createElement(Header, null, /*#__PURE__*/React.createElement(Typography, {
4332
- variant: "h2"
4333
- }, title), /*#__PURE__*/React.createElement(Button, {
4334
- variant: "ghost_icon",
4335
- onClick: onClose,
4336
- title: "Close",
4337
- "aria-label": "Close sidesheet"
4338
- }, /*#__PURE__*/React.createElement(Icon$1, {
4339
- name: "clear",
4340
- data: edsIcons.clear
4341
- }))), children);
4460
+ return open && /*#__PURE__*/jsxRuntime.jsxs(StyledSideSheet, { ...props,
4461
+ id: "side-sheet",
4462
+ children: [/*#__PURE__*/jsxRuntime.jsxs(Header$1, {
4463
+ children: [/*#__PURE__*/jsxRuntime.jsx(Typography, {
4464
+ variant: "h2",
4465
+ children: title
4466
+ }), /*#__PURE__*/jsxRuntime.jsx(Button, {
4467
+ variant: "ghost_icon",
4468
+ onClick: onClose,
4469
+ title: "Close",
4470
+ "aria-label": "Close sidesheet",
4471
+ children: /*#__PURE__*/jsxRuntime.jsx(Icon$1, {
4472
+ name: "clear",
4473
+ data: edsIcons.clear
4474
+ })
4475
+ })]
4476
+ }), children]
4477
+ });
4342
4478
  });
4343
4479
 
4344
4480
  const {
@@ -4537,7 +4673,7 @@ const StyledChips = styled__default['default'].div.attrs(({
4537
4673
  })).withConfig({
4538
4674
  displayName: "Chip__StyledChips",
4539
4675
  componentId: "sc-wzsllq-0"
4540
- })(["background:", ";height:", ";width:fit-content;display:grid;grid-gap:8px;grid-auto-flow:column;grid-auto-columns:max-content;align-items:center;z-index:10;svg{fill:", ";}@media (hover:hover) and (pointer:fine){&:hover{color:", ";svg{fill:", ";}}}&:focus{outline:none;}&[data-focus-visible-added]:focus{", "}", " ", " ", " ", " ", " ", " ", " ", ""], background$6, height$1, typography$9.color, states$3.hover.typography.color, states$3.hover.typography.color, outlineTemplate(states$3.focus.outline), bordersTemplate(border$2), spacingsTemplate(spacings$2), typographyTemplate(typography$9), ({
4676
+ })(["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), ({
4541
4677
  clickable
4542
4678
  }) => clickable && styled.css(["@media (hover:hover) and (pointer:fine){&:hover{cursor:pointer;}}"]), ({
4543
4679
  variant
@@ -4559,7 +4695,7 @@ const StyledChips = styled__default['default'].div.attrs(({
4559
4695
  }) => deletable && styled.css(["padding-right:4px;"]), ({
4560
4696
  onlyChild
4561
4697
  }) => onlyChild ? styled.css(["padding-left:8px;"]) : '');
4562
- const Chip = /*#__PURE__*/React$1.forwardRef(function Chip({
4698
+ const Chip = /*#__PURE__*/React.forwardRef(function Chip({
4563
4699
  children,
4564
4700
  onDelete,
4565
4701
  disabled = false,
@@ -4598,10 +4734,10 @@ const Chip = /*#__PURE__*/React$1.forwardRef(function Chip({
4598
4734
  }
4599
4735
  };
4600
4736
 
4601
- const resizedChildren = React$1.Children.map(children, child => {
4737
+ const resizedChildren = React.Children.map(children, child => {
4602
4738
  // We force size on Icon & Avatar component
4603
4739
  if (child.props) {
4604
- return /*#__PURE__*/React$1.cloneElement(child, {
4740
+ return /*#__PURE__*/React.cloneElement(child, {
4605
4741
  size: 16,
4606
4742
  disabled
4607
4743
  });
@@ -4618,17 +4754,18 @@ const Chip = /*#__PURE__*/React$1.forwardRef(function Chip({
4618
4754
  }
4619
4755
  };
4620
4756
 
4621
- return /*#__PURE__*/React.createElement(StyledChips, _extends__default['default']({}, chipProps, {
4757
+ return /*#__PURE__*/jsxRuntime.jsxs(StyledChips, { ...chipProps,
4622
4758
  onClick: event => clickable && handleClick(event),
4623
- onKeyPress: handleKeyPress
4624
- }), resizedChildren, onDelete && /*#__PURE__*/React.createElement(Icon, {
4625
- name: "close",
4626
- title: "close",
4627
- disabled: disabled,
4628
- variant: variant,
4629
- onClick: onDeleteClick,
4630
- size: 16
4631
- }));
4759
+ onKeyPress: handleKeyPress,
4760
+ children: [resizedChildren, onDelete && /*#__PURE__*/jsxRuntime.jsx(Icon, {
4761
+ name: "close",
4762
+ title: "close",
4763
+ disabled: disabled,
4764
+ variant: variant,
4765
+ onClick: onDeleteClick,
4766
+ size: 16
4767
+ })]
4768
+ });
4632
4769
  }); // Chip.displayName = 'eds-chip'
4633
4770
 
4634
4771
  const avatar = {
@@ -4655,22 +4792,24 @@ const StyledImage = styled__default['default'].img.withConfig({
4655
4792
  })(["height:100%;text-align:center;color:transparent;", ";"], ({
4656
4793
  disabled
4657
4794
  }) => disabled && styled.css(["opacity:", ";"], avatar.states.disabled.opacity));
4658
- const Avatar = /*#__PURE__*/React$1.forwardRef(function Avatar({
4795
+ const Avatar = /*#__PURE__*/React.forwardRef(function Avatar({
4659
4796
  src = null,
4660
4797
  alt,
4661
4798
  size = 24,
4662
4799
  disabled = false,
4663
4800
  ...rest
4664
4801
  }, ref) {
4665
- return /*#__PURE__*/React.createElement(StyledAvatar, _extends__default['default']({
4802
+ return /*#__PURE__*/jsxRuntime.jsx(StyledAvatar, {
4666
4803
  size: size,
4667
4804
  disabled: disabled,
4668
- ref: ref
4669
- }, rest), /*#__PURE__*/React.createElement(StyledImage, {
4670
- src: src,
4671
- alt: alt,
4672
- disabled: disabled
4673
- }));
4805
+ ref: ref,
4806
+ ...rest,
4807
+ children: /*#__PURE__*/jsxRuntime.jsx(StyledImage, {
4808
+ src: src,
4809
+ alt: alt,
4810
+ disabled: disabled
4811
+ })
4812
+ });
4674
4813
  });
4675
4814
  Avatar.displayName = 'Avatar';
4676
4815
 
@@ -4763,6 +4902,13 @@ const search = {
4763
4902
  },
4764
4903
  height: '36px'
4765
4904
  }
4905
+ },
4906
+ button: {
4907
+ height: '24px',
4908
+ width: '24px',
4909
+ spacings: {
4910
+ right: small$2
4911
+ }
4766
4912
  }
4767
4913
  }
4768
4914
  };
@@ -4776,7 +4922,8 @@ const {
4776
4922
  clickbound,
4777
4923
  entities: {
4778
4924
  icon: icon$1,
4779
- placeholder
4925
+ placeholder,
4926
+ button
4780
4927
  },
4781
4928
  states: states$2
4782
4929
  } = search;
@@ -4794,13 +4941,13 @@ const Input$4 = styled__default['default'].input.withConfig({
4794
4941
  })(["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), ({
4795
4942
  disabled
4796
4943
  }) => disabled && styled.css(["cursor:not-allowed;"]));
4797
- const InsideButton = styled__default['default'].div.withConfig({
4944
+ const InsideButton = styled__default['default'](Button).withConfig({
4798
4945
  displayName: "Search__InsideButton",
4799
4946
  componentId: "sc-v8l23u-2"
4800
- })(["", " display:flex;align-items:center;visibility:hidden;z-index:1;padding:4px;height:16px;width:16px;position:relative;&::after{z-index:-1;position:absolute;top:-", ";left:0;width:100%;height:", ";content:'';}&::before{position:absolute;top:0;left:0;width:auto;min-height:auto;content:'';}", ""], bordersTemplate(icon$1.border), icon$1.clickbound.offset.top, icon$1.clickbound.height, ({
4947
+ })(["visibility:hidden;position:absolute;right:", ";height:", ";width:", ";", ""], button.spacings.right, button.height, button.width, ({
4801
4948
  isActive
4802
- }) => isActive && styled.css(["visibility:visible;@media (hover:hover) and (pointer:fine){&:hover{cursor:pointer;background:", ";}}"], icon$1.states.hover.background));
4803
- const Search = /*#__PURE__*/React$1.forwardRef(function Search({
4949
+ }) => isActive && styled.css(["visibility:visible;"]));
4950
+ const Search = /*#__PURE__*/React.forwardRef(function Search({
4804
4951
  onChange,
4805
4952
  defaultValue = '',
4806
4953
  value,
@@ -4812,12 +4959,12 @@ const Search = /*#__PURE__*/React$1.forwardRef(function Search({
4812
4959
  }, ref) {
4813
4960
  const isControlled = typeof value !== 'undefined';
4814
4961
  const isActive = isControlled && value !== '' || defaultValue !== '';
4815
- const inputRef = React$1.useRef(null);
4816
- const [state, setState] = React$1.useState({
4962
+ const inputRef = React.useRef(null);
4963
+ const [state, setState] = React.useState({
4817
4964
  isActive,
4818
4965
  isFocused: false
4819
4966
  });
4820
- React$1.useEffect(() => {
4967
+ React.useEffect(() => {
4821
4968
  setState(prevState => ({ ...prevState,
4822
4969
  isActive
4823
4970
  }));
@@ -4909,8 +5056,6 @@ const Search = /*#__PURE__*/React$1.forwardRef(function Search({
4909
5056
  }, value, defaultValue);
4910
5057
  const clearButtonProps = {
4911
5058
  isActive: state.isActive,
4912
- size,
4913
- role: 'button',
4914
5059
  onClick: e => {
4915
5060
  e.stopPropagation();
4916
5061
 
@@ -4919,16 +5064,22 @@ const Search = /*#__PURE__*/React$1.forwardRef(function Search({
4919
5064
  }
4920
5065
  }
4921
5066
  };
4922
- return /*#__PURE__*/React.createElement(Container$2, containerProps, /*#__PURE__*/React.createElement(Icon$1, {
4923
- data: edsIcons.search,
4924
- "aria-hidden": true,
4925
- size: size
4926
- }), /*#__PURE__*/React.createElement(Input$4, inputProps), /*#__PURE__*/React.createElement(InsideButton, _extends__default['default']({}, clearButtonProps, {
4927
- "aria-label": "Clear search"
4928
- }), /*#__PURE__*/React.createElement(Icon$1, {
4929
- data: edsIcons.close,
4930
- size: size
4931
- })));
5067
+ return /*#__PURE__*/jsxRuntime.jsxs(Container$2, { ...containerProps,
5068
+ children: [/*#__PURE__*/jsxRuntime.jsx(Icon$1, {
5069
+ data: edsIcons.search,
5070
+ "aria-hidden": true,
5071
+ size: size
5072
+ }), /*#__PURE__*/jsxRuntime.jsx(Input$4, { ...inputProps
5073
+ }), /*#__PURE__*/jsxRuntime.jsx(InsideButton, { ...clearButtonProps,
5074
+ "aria-label": 'clear search',
5075
+ title: "clear",
5076
+ variant: "ghost_icon",
5077
+ children: /*#__PURE__*/jsxRuntime.jsx(Icon$1, {
5078
+ data: edsIcons.close,
5079
+ size: 16
5080
+ })
5081
+ })]
5082
+ });
4932
5083
  }); // Search.displayName = 'eds-search'
4933
5084
 
4934
5085
  const {
@@ -5074,12 +5225,13 @@ const StyledMinMax = styled__default['default'].span.withConfig({
5074
5225
  displayName: "MinMax__StyledMinMax",
5075
5226
  componentId: "sc-lxmlid-0"
5076
5227
  })(["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);
5077
- const MinMax = /*#__PURE__*/React$1.forwardRef(function MinMax({
5228
+ const MinMax = /*#__PURE__*/React.forwardRef(function MinMax({
5078
5229
  children
5079
5230
  }, ref) {
5080
- return /*#__PURE__*/React.createElement(StyledMinMax, {
5081
- ref: ref
5082
- }, children);
5231
+ return /*#__PURE__*/jsxRuntime.jsx(StyledMinMax, {
5232
+ ref: ref,
5233
+ children: children
5234
+ });
5083
5235
  });
5084
5236
 
5085
5237
  const {
@@ -5094,16 +5246,17 @@ const StyledOutput = styled__default['default'].output.withConfig({
5094
5246
  })(["--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;"], ({
5095
5247
  value
5096
5248
  }) => value, typographyTemplate(output.typography), slider.background, track$2.spacings.top);
5097
- const Output = /*#__PURE__*/React$1.forwardRef(function Output({
5249
+ const Output = /*#__PURE__*/React.forwardRef(function Output({
5098
5250
  children,
5099
5251
  value,
5100
5252
  htmlFor
5101
5253
  }, ref) {
5102
- return /*#__PURE__*/React.createElement(StyledOutput, {
5254
+ return /*#__PURE__*/jsxRuntime.jsx(StyledOutput, {
5103
5255
  ref: ref,
5104
5256
  value: value,
5105
- htmlFor: htmlFor
5106
- }, children);
5257
+ htmlFor: htmlFor,
5258
+ children: children
5259
+ });
5107
5260
  });
5108
5261
 
5109
5262
  const {
@@ -5124,8 +5277,8 @@ const StyledSliderInput = styled__default['default'].input.attrs(() => ({
5124
5277
  })).withConfig({
5125
5278
  displayName: "SliderInput__StyledSliderInput",
5126
5279
  componentId: "sc-17orw4f-0"
5127
- })(["&::-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{", ";}}&: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), thumbHover, thumbHover, thumbDisabled, thumbDisabled, thumbHoverAndDisabled, thumbHoverAndDisabled, thumb, thumb, track$1, track$1);
5128
- const SliderInput = /*#__PURE__*/React$1.forwardRef(function SliderInput({
5280
+ })(["&::-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);
5281
+ const SliderInput = /*#__PURE__*/React.forwardRef(function SliderInput({
5129
5282
  value,
5130
5283
  min,
5131
5284
  max,
@@ -5137,7 +5290,7 @@ const SliderInput = /*#__PURE__*/React$1.forwardRef(function SliderInput({
5137
5290
  disabled,
5138
5291
  ...restProps
5139
5292
  }, ref) {
5140
- return /*#__PURE__*/React.createElement(StyledSliderInput, _extends__default['default']({}, restProps, {
5293
+ return /*#__PURE__*/jsxRuntime.jsx(StyledSliderInput, { ...restProps,
5141
5294
  value: value,
5142
5295
  ref: ref,
5143
5296
  min: min,
@@ -5154,7 +5307,7 @@ const SliderInput = /*#__PURE__*/React$1.forwardRef(function SliderInput({
5154
5307
  onKeyUp(event);
5155
5308
  },
5156
5309
  disabled: disabled
5157
- }));
5310
+ });
5158
5311
  });
5159
5312
  SliderInput.displayName = 'SliderInput';
5160
5313
 
@@ -5167,7 +5320,7 @@ const {
5167
5320
  } = slider;
5168
5321
  const fakeTrackBg = styled.css(["background-image:url(\"data:image/svg+xml,<svg xmlns='http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'><rect x='0' y='11' fill='", "' width='100%' height='4' rx='2' /></svg>\");background-size:cover;background-repeat:no-repeat;"], track.background);
5169
5322
  const fakeTrackBgHover = styled.css({
5170
- backgroundImage: `url("data:image/svg+xml,<svg xmlns='http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'><rect x='0' y='11' fill='${track.states.hover.background}' width='100%' height='4' rx='2' /></svg>")`
5323
+ backgroundImage: "url(\"data:image/svg+xml,<svg xmlns='http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'><rect x='0' y='11' fill='".concat(track.states.hover.background, "' width='100%' height='4' rx='2' /></svg>\")")
5171
5324
  });
5172
5325
  const trackFill = styled.css(["grid-column:1 / span 2;grid-row:2;height:", ";margin-bottom:", ";align-self:end;content:'';"], track.height, track.spacings.bottom);
5173
5326
  const wrapperGrid = styled.css(["display:grid;grid-template-rows:max-content 24px;grid-template-columns:1fr 1fr;width:100%;position:relative;"]);
@@ -5209,7 +5362,7 @@ const SrOnlyLabel = styled__default['default'].label.withConfig({
5209
5362
  displayName: "Slider__SrOnlyLabel",
5210
5363
  componentId: "sc-n1grrg-4"
5211
5364
  })(["position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0;"]);
5212
- const Slider = /*#__PURE__*/React$1.forwardRef(function Slider({
5365
+ const Slider = /*#__PURE__*/React.forwardRef(function Slider({
5213
5366
  min = 0,
5214
5367
  max = 100,
5215
5368
  value = [40, 60],
@@ -5224,9 +5377,9 @@ const Slider = /*#__PURE__*/React$1.forwardRef(function Slider({
5224
5377
  ...rest
5225
5378
  }, ref) {
5226
5379
  const isRangeSlider = Array.isArray(value);
5227
- const [sliderValue, setSliderValue] = React$1.useState(isRangeSlider ? value : [value]);
5228
- const minRange = React$1.useRef(null);
5229
- const maxRange = React$1.useRef(null);
5380
+ const [sliderValue, setSliderValue] = React.useState(isRangeSlider ? value : [value]);
5381
+ const minRange = React.useRef(null);
5382
+ const maxRange = React.useRef(null);
5230
5383
 
5231
5384
  const onValueChange = (event, valueArrIdx) => {
5232
5385
  const target = event.target;
@@ -5295,81 +5448,100 @@ const Slider = /*#__PURE__*/React$1.forwardRef(function Slider({
5295
5448
  }
5296
5449
  };
5297
5450
 
5298
- const inputIdA = `${ariaLabelledby}-thumb-a`;
5299
- const inputIdB = `${ariaLabelledby}-thumb-b`;
5300
- const inputId = `${ariaLabelledby}-thumb`;
5301
- return /*#__PURE__*/React.createElement(React.Fragment, null, isRangeSlider ? /*#__PURE__*/React.createElement(RangeWrapper, _extends__default['default']({}, rest, {
5302
- ref: ref,
5303
- role: "group",
5304
- "aria-labelledby": ariaLabelledby,
5305
- valA: sliderValue[0],
5306
- valB: sliderValue[1],
5307
- max: max,
5308
- min: min,
5309
- disabled: disabled,
5310
- onMouseMove: findClosestRange
5311
- }), minMaxDots && /*#__PURE__*/React.createElement(WrapperGroupLabelDots, null), /*#__PURE__*/React.createElement(SrOnlyLabel, {
5312
- htmlFor: inputIdA
5313
- }, "Value A"), /*#__PURE__*/React.createElement(SliderInput, {
5314
- type: "range",
5315
- ref: minRange,
5316
- value: sliderValue[0],
5317
- max: max,
5318
- min: min,
5319
- id: inputIdA,
5320
- step: step,
5321
- onChange: event => {
5322
- onValueChange(event, 0);
5323
- },
5324
- onMouseUp: event => handleCommitedValue(event),
5325
- onKeyUp: event => handleKeyUp(event),
5326
- disabled: disabled
5327
- }), /*#__PURE__*/React.createElement(Output, {
5328
- htmlFor: inputIdA,
5329
- value: sliderValue[0]
5330
- }, getFormattedText(sliderValue[0])), minMaxValues && /*#__PURE__*/React.createElement(MinMax, null, getFormattedText(min)), /*#__PURE__*/React.createElement(SrOnlyLabel, {
5331
- htmlFor: inputIdB
5332
- }, "Value B"), /*#__PURE__*/React.createElement(SliderInput, {
5333
- type: "range",
5334
- value: sliderValue[1],
5335
- min: min,
5336
- max: max,
5337
- id: inputIdB,
5338
- step: step,
5339
- ref: maxRange,
5340
- onChange: event => {
5341
- onValueChange(event, 1);
5342
- },
5343
- onMouseUp: event => handleCommitedValue(event),
5344
- onKeyUp: event => handleKeyUp(event),
5345
- disabled: disabled
5346
- }), /*#__PURE__*/React.createElement(Output, {
5347
- htmlFor: inputIdB,
5348
- value: sliderValue[1]
5349
- }, getFormattedText(sliderValue[1])), minMaxValues && /*#__PURE__*/React.createElement(MinMax, null, getFormattedText(max))) : /*#__PURE__*/React.createElement(Wrapper, _extends__default['default']({}, rest, {
5350
- ref: ref,
5351
- max: max,
5352
- min: min,
5353
- value: sliderValue[0],
5354
- disabled: disabled
5355
- }), /*#__PURE__*/React.createElement(SliderInput, {
5356
- type: "range",
5357
- value: sliderValue[0],
5358
- min: min,
5359
- max: max,
5360
- step: step,
5361
- id: inputId,
5362
- onChange: event => {
5363
- onValueChange(event);
5364
- },
5365
- disabled: disabled,
5366
- "aria-labelledby": ariaLabelledby,
5367
- onMouseUp: event => handleCommitedValue(event),
5368
- onKeyUp: event => handleKeyUp(event)
5369
- }), /*#__PURE__*/React.createElement(Output, {
5370
- htmlFor: inputId,
5371
- value: sliderValue[0]
5372
- }, getFormattedText(sliderValue[0])), minMaxDots && /*#__PURE__*/React.createElement(WrapperGroupLabelDots, null), minMaxValues && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(MinMax, null, getFormattedText(min)), /*#__PURE__*/React.createElement(MinMax, null, getFormattedText(max)))));
5451
+ const inputIdA = "".concat(ariaLabelledby, "-thumb-a");
5452
+ const inputIdB = "".concat(ariaLabelledby, "-thumb-b");
5453
+ const inputId = "".concat(ariaLabelledby, "-thumb");
5454
+ return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
5455
+ children: isRangeSlider ? /*#__PURE__*/jsxRuntime.jsxs(RangeWrapper, { ...rest,
5456
+ ref: ref,
5457
+ role: "group",
5458
+ "aria-labelledby": ariaLabelledby,
5459
+ valA: sliderValue[0],
5460
+ valB: sliderValue[1],
5461
+ max: max,
5462
+ min: min,
5463
+ disabled: disabled,
5464
+ onMouseMove: findClosestRange,
5465
+ children: [minMaxDots && /*#__PURE__*/jsxRuntime.jsx(WrapperGroupLabelDots, {}), /*#__PURE__*/jsxRuntime.jsx(SrOnlyLabel, {
5466
+ htmlFor: inputIdA,
5467
+ children: "Value A"
5468
+ }), /*#__PURE__*/jsxRuntime.jsx(SliderInput, {
5469
+ type: "range",
5470
+ ref: minRange,
5471
+ value: sliderValue[0],
5472
+ max: max,
5473
+ min: min,
5474
+ id: inputIdA,
5475
+ step: step,
5476
+ onChange: event => {
5477
+ onValueChange(event, 0);
5478
+ },
5479
+ onMouseUp: event => handleCommitedValue(event),
5480
+ onKeyUp: event => handleKeyUp(event),
5481
+ disabled: disabled
5482
+ }), /*#__PURE__*/jsxRuntime.jsx(Output, {
5483
+ htmlFor: inputIdA,
5484
+ value: sliderValue[0],
5485
+ children: getFormattedText(sliderValue[0])
5486
+ }), minMaxValues && /*#__PURE__*/jsxRuntime.jsx(MinMax, {
5487
+ children: getFormattedText(min)
5488
+ }), /*#__PURE__*/jsxRuntime.jsx(SrOnlyLabel, {
5489
+ htmlFor: inputIdB,
5490
+ children: "Value B"
5491
+ }), /*#__PURE__*/jsxRuntime.jsx(SliderInput, {
5492
+ type: "range",
5493
+ value: sliderValue[1],
5494
+ min: min,
5495
+ max: max,
5496
+ id: inputIdB,
5497
+ step: step,
5498
+ ref: maxRange,
5499
+ onChange: event => {
5500
+ onValueChange(event, 1);
5501
+ },
5502
+ onMouseUp: event => handleCommitedValue(event),
5503
+ onKeyUp: event => handleKeyUp(event),
5504
+ disabled: disabled
5505
+ }), /*#__PURE__*/jsxRuntime.jsx(Output, {
5506
+ htmlFor: inputIdB,
5507
+ value: sliderValue[1],
5508
+ children: getFormattedText(sliderValue[1])
5509
+ }), minMaxValues && /*#__PURE__*/jsxRuntime.jsx(MinMax, {
5510
+ children: getFormattedText(max)
5511
+ })]
5512
+ }) : /*#__PURE__*/jsxRuntime.jsxs(Wrapper, { ...rest,
5513
+ ref: ref,
5514
+ max: max,
5515
+ min: min,
5516
+ value: sliderValue[0],
5517
+ disabled: disabled,
5518
+ children: [/*#__PURE__*/jsxRuntime.jsx(SliderInput, {
5519
+ type: "range",
5520
+ value: sliderValue[0],
5521
+ min: min,
5522
+ max: max,
5523
+ step: step,
5524
+ id: inputId,
5525
+ onChange: event => {
5526
+ onValueChange(event);
5527
+ },
5528
+ disabled: disabled,
5529
+ "aria-labelledby": ariaLabelledby,
5530
+ onMouseUp: event => handleCommitedValue(event),
5531
+ onKeyUp: event => handleKeyUp(event)
5532
+ }), /*#__PURE__*/jsxRuntime.jsx(Output, {
5533
+ htmlFor: inputId,
5534
+ value: sliderValue[0],
5535
+ children: getFormattedText(sliderValue[0])
5536
+ }), minMaxDots && /*#__PURE__*/jsxRuntime.jsx(WrapperGroupLabelDots, {}), minMaxValues && /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
5537
+ children: [/*#__PURE__*/jsxRuntime.jsx(MinMax, {
5538
+ children: getFormattedText(min)
5539
+ }), /*#__PURE__*/jsxRuntime.jsx(MinMax, {
5540
+ children: getFormattedText(max)
5541
+ })]
5542
+ })]
5543
+ })
5544
+ });
5373
5545
  });
5374
5546
 
5375
5547
  const {
@@ -5444,7 +5616,7 @@ const TooltipArrow = styled__default['default'].svg.withConfig({
5444
5616
  displayName: "Tooltip__TooltipArrow",
5445
5617
  componentId: "sc-m2im2p-2"
5446
5618
  })(["width:", ";height:", ";position:absolute;fill:", ";"], tooltip.entities.arrow.width, tooltip.entities.arrow.height, tooltip.background);
5447
- const Tooltip = /*#__PURE__*/React$1.forwardRef(function Tooltip({
5619
+ const Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip({
5448
5620
  title,
5449
5621
  placement = 'bottom',
5450
5622
  children,
@@ -5453,12 +5625,12 @@ const Tooltip = /*#__PURE__*/React$1.forwardRef(function Tooltip({
5453
5625
  ...rest
5454
5626
  }, ref) {
5455
5627
  const isMounted = useIsMounted();
5456
- const [popperEl, setPopperEl] = React$1.useState(null);
5457
- const [arrowRef, setArrowRef] = React$1.useState(null);
5458
- const [open, setOpen] = React$1.useState(false);
5459
- const openTimer = React$1.useRef();
5628
+ const [popperEl, setPopperEl] = React.useState(null);
5629
+ const [arrowRef, setArrowRef] = React.useState(null);
5630
+ const [open, setOpen] = React.useState(false);
5631
+ const openTimer = React.useRef();
5460
5632
  const tooltipRef = useCombinedRefs(setPopperEl, ref);
5461
- const anchorRef = React$1.useRef();
5633
+ const anchorRef = React.useRef();
5462
5634
  const combinedChilddRef = useCombinedRefs(anchorRef, children === null || children === void 0 ? void 0 : children.ref);
5463
5635
  const tooltipId = useId(id, 'tooltip');
5464
5636
  const containerId = 'eds-tooltip-container';
@@ -5467,7 +5639,7 @@ const Tooltip = /*#__PURE__*/React$1.forwardRef(function Tooltip({
5467
5639
  setTimeout,
5468
5640
  clearTimeout
5469
5641
  } = window;
5470
- React$1.useEffect(() => {
5642
+ React.useEffect(() => {
5471
5643
  if (document.getElementById(containerId) === null) {
5472
5644
  const tooltipContainerElement = document.createElement('div');
5473
5645
  tooltipContainerElement.id = containerId;
@@ -5504,7 +5676,7 @@ const Tooltip = /*#__PURE__*/React$1.forwardRef(function Tooltip({
5504
5676
  ...attributes.popper
5505
5677
  };
5506
5678
  const childProps = children.props;
5507
- const updatedChildren = /*#__PURE__*/React$1.cloneElement(children, {
5679
+ const updatedChildren = /*#__PURE__*/React.cloneElement(children, {
5508
5680
  ref: combinedChilddRef,
5509
5681
  'aria-describedby': open ? tooltipId : null,
5510
5682
  onMouseOver: joinHandlers(openTooltip, childProps.onMouseOver),
@@ -5514,20 +5686,26 @@ const Tooltip = /*#__PURE__*/React$1.forwardRef(function Tooltip({
5514
5686
  onBlur: joinHandlers(closeTooltip, childProps.onBlur),
5515
5687
  onFocus: joinHandlers(openTooltip, childProps.onFocus)
5516
5688
  });
5517
- return /*#__PURE__*/React.createElement(React.Fragment, null, shouldOpen && open && /*#__PURE__*/ReactDom__namespace.createPortal( /*#__PURE__*/React.createElement(StyledTooltip, _extends__default['default']({
5518
- id: tooltipId,
5519
- role: "tooltip",
5520
- ref: tooltipRef,
5521
- style: styles.popper
5522
- }, props), title, /*#__PURE__*/React.createElement(ArrowWrapper$1, {
5523
- ref: setArrowRef,
5524
- style: styles.arrow,
5525
- className: "arrow"
5526
- }, /*#__PURE__*/React.createElement(TooltipArrow, {
5527
- className: "arrowSvg"
5528
- }, /*#__PURE__*/React.createElement("path", {
5529
- d: "M0.504838 4.86885C-0.168399 4.48524 -0.168399 3.51476 0.504838 3.13115L6 8.59227e-08L6 8L0.504838 4.86885Z"
5530
- })))), document.getElementById(containerId)), updatedChildren);
5689
+ return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
5690
+ children: [shouldOpen && open && /*#__PURE__*/ReactDom__namespace.createPortal( /*#__PURE__*/jsxRuntime.jsxs(StyledTooltip, {
5691
+ id: tooltipId,
5692
+ role: "tooltip",
5693
+ ref: tooltipRef,
5694
+ style: styles.popper,
5695
+ ...props,
5696
+ children: [title, /*#__PURE__*/jsxRuntime.jsx(ArrowWrapper$1, {
5697
+ ref: setArrowRef,
5698
+ style: styles.arrow,
5699
+ className: "arrow",
5700
+ children: /*#__PURE__*/jsxRuntime.jsx(TooltipArrow, {
5701
+ className: "arrowSvg",
5702
+ children: /*#__PURE__*/jsxRuntime.jsx("path", {
5703
+ d: "M0.504838 4.86885C-0.168399 4.48524 -0.168399 3.51476 0.504838 3.13115L6 8.59227e-08L6 8L0.504838 4.86885Z"
5704
+ })
5705
+ })
5706
+ })]
5707
+ }), document.getElementById(containerId)), updatedChildren]
5708
+ });
5531
5709
  });
5532
5710
 
5533
5711
  const {
@@ -5605,14 +5783,16 @@ const StyledSnackbarAction = styled__default['default'].div.withConfig({
5605
5783
  displayName: "SnackbarAction__StyledSnackbarAction",
5606
5784
  componentId: "sc-1v5mjvd-0"
5607
5785
  })(["display:inline-flex;margin-left:", ";margin-top:", ";margin-bottom:", ";"], snackbar.entities.actions.spacings.left, snackbar.entities.actions.spacings.top, snackbar.entities.actions.spacings.bottom);
5608
- const SnackbarAction = /*#__PURE__*/React$1.forwardRef(function SnackbarAction({
5786
+ const SnackbarAction = /*#__PURE__*/React.forwardRef(function SnackbarAction({
5609
5787
  children,
5610
5788
  ...rest
5611
5789
  }, ref) {
5612
5790
  const props = { ...rest,
5613
5791
  ref
5614
5792
  };
5615
- return /*#__PURE__*/React.createElement(StyledSnackbarAction, props, React$1.Children.only(children));
5793
+ return /*#__PURE__*/jsxRuntime.jsx(StyledSnackbarAction, { ...props,
5794
+ children: React.Children.only(children)
5795
+ });
5616
5796
  });
5617
5797
 
5618
5798
  const StyledSnackbar = styled__default['default'](Paper).attrs(() => ({
@@ -5629,7 +5809,7 @@ const StyledSnackbar = styled__default['default'](Paper).attrs(() => ({
5629
5809
  left: placement.includes('left') ? snackbar.spacings.left : placement === 'top' || placement === 'bottom' ? '50%' : undefined,
5630
5810
  transform: placement === 'left' || placement === 'right' ? 'translateY(-50%)' : placement === 'top' || placement === 'bottom' ? 'translateX(-50%)' : undefined
5631
5811
  }), snackbar.entities.button.typography.color);
5632
- const Snackbar$1 = /*#__PURE__*/React$1.forwardRef(function Snackbar({
5812
+ const Snackbar$1 = /*#__PURE__*/React.forwardRef(function Snackbar({
5633
5813
  open = false,
5634
5814
  autoHideDuration = 7000,
5635
5815
  onClose,
@@ -5637,13 +5817,13 @@ const Snackbar$1 = /*#__PURE__*/React$1.forwardRef(function Snackbar({
5637
5817
  children,
5638
5818
  ...rest
5639
5819
  }, ref) {
5640
- const [visible, setVisible] = React$1.useState(open);
5641
- const timer = React$1.useRef();
5820
+ const [visible, setVisible] = React.useState(open);
5821
+ const timer = React.useRef();
5642
5822
  const {
5643
5823
  setTimeout,
5644
5824
  clearTimeout
5645
5825
  } = window;
5646
- React$1.useEffect(() => {
5826
+ React.useEffect(() => {
5647
5827
  setVisible(open);
5648
5828
  timer.current = setTimeout(() => {
5649
5829
  setVisible(false);
@@ -5659,9 +5839,13 @@ const Snackbar$1 = /*#__PURE__*/React$1.forwardRef(function Snackbar({
5659
5839
  placement,
5660
5840
  ...rest
5661
5841
  };
5662
- return /*#__PURE__*/React.createElement(React.Fragment, null, visible && /*#__PURE__*/ReactDom__namespace.createPortal( /*#__PURE__*/React.createElement(StyledSnackbar, _extends__default['default']({
5663
- elevation: "overlay"
5664
- }, props), children), document.body));
5842
+ return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
5843
+ children: visible && /*#__PURE__*/ReactDom__namespace.createPortal( /*#__PURE__*/jsxRuntime.jsx(StyledSnackbar, {
5844
+ elevation: "overlay",
5845
+ ...props,
5846
+ children: children
5847
+ }), document.body)
5848
+ });
5665
5849
  });
5666
5850
 
5667
5851
  const Snackbar = Snackbar$1;
@@ -5757,7 +5941,7 @@ const PopoverArrow = styled__default['default'].svg.withConfig({
5757
5941
  displayName: "Popover__PopoverArrow",
5758
5942
  componentId: "sc-b7p1is-3"
5759
5943
  })(["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);
5760
- const Popover$1 = /*#__PURE__*/React$1.forwardRef(function Popover({
5944
+ const Popover$1 = /*#__PURE__*/React.forwardRef(function Popover({
5761
5945
  children,
5762
5946
  placement = 'bottom',
5763
5947
  anchorEl,
@@ -5765,8 +5949,8 @@ const Popover$1 = /*#__PURE__*/React$1.forwardRef(function Popover({
5765
5949
  onClose,
5766
5950
  ...rest
5767
5951
  }, ref) {
5768
- const [popperEl, setPopperEl] = React$1.useState(null);
5769
- const [arrowRef, setArrowRef] = React$1.useState(null);
5952
+ const [popperEl, setPopperEl] = React.useState(null);
5953
+ const [arrowRef, setArrowRef] = React.useState(null);
5770
5954
  const popoverRef = useCombinedRefs(ref, setPopperEl);
5771
5955
  useOutsideClick(popperEl, e => {
5772
5956
  if (open && onClose !== null && anchorEl && !anchorEl.contains(e.target)) {
@@ -5787,29 +5971,34 @@ const Popover$1 = /*#__PURE__*/React$1.forwardRef(function Popover({
5787
5971
  ...rest,
5788
5972
  ...attributes.popper
5789
5973
  };
5790
- return /*#__PURE__*/React.createElement(PopoverPaper, _extends__default['default']({
5974
+ return /*#__PURE__*/jsxRuntime.jsxs(PopoverPaper, {
5791
5975
  ref: popoverRef,
5792
5976
  elevation: "overlay",
5793
5977
  style: styles.popper,
5794
- "data-testid": "popover"
5795
- }, props), /*#__PURE__*/React.createElement(ArrowWrapper, {
5796
- ref: setArrowRef,
5797
- style: styles.arrow,
5798
- className: "arrow"
5799
- }, /*#__PURE__*/React.createElement(PopoverArrow, {
5800
- className: "arrowSvg"
5801
- }, /*#__PURE__*/React.createElement("path", {
5802
- d: "M0.504838 4.86885C-0.168399 4.48524 -0.168399 3.51476 0.504838 3.13115L6 8.59227e-08L6 8L0.504838 4.86885Z"
5803
- }))), children, /*#__PURE__*/React.createElement(StyledCloseButton, {
5804
- onClick: onClose,
5805
- variant: "ghost_icon",
5806
- "data-testid": "popover-close",
5807
- "aria-label": "Close popover"
5808
- }, /*#__PURE__*/React.createElement(Icon$1, {
5809
- name: "close",
5810
- data: edsIcons.close,
5811
- size: 24
5812
- })));
5978
+ "data-testid": "popover",
5979
+ ...props,
5980
+ children: [/*#__PURE__*/jsxRuntime.jsx(ArrowWrapper, {
5981
+ ref: setArrowRef,
5982
+ style: styles.arrow,
5983
+ className: "arrow",
5984
+ children: /*#__PURE__*/jsxRuntime.jsx(PopoverArrow, {
5985
+ className: "arrowSvg",
5986
+ children: /*#__PURE__*/jsxRuntime.jsx("path", {
5987
+ d: "M0.504838 4.86885C-0.168399 4.48524 -0.168399 3.51476 0.504838 3.13115L6 8.59227e-08L6 8L0.504838 4.86885Z"
5988
+ })
5989
+ })
5990
+ }), children, /*#__PURE__*/jsxRuntime.jsx(StyledCloseButton, {
5991
+ onClick: onClose,
5992
+ variant: "ghost_icon",
5993
+ "data-testid": "popover-close",
5994
+ "aria-label": "Close popover",
5995
+ children: /*#__PURE__*/jsxRuntime.jsx(Icon$1, {
5996
+ name: "close",
5997
+ data: edsIcons.close,
5998
+ size: 24
5999
+ })
6000
+ })]
6001
+ });
5813
6002
  });
5814
6003
 
5815
6004
  const StyledPopoverTitle = styled__default['default'].div.withConfig({
@@ -5820,30 +6009,36 @@ const StyledDivider = styled__default['default'](Divider).withConfig({
5820
6009
  displayName: "PopoverTitle__StyledDivider",
5821
6010
  componentId: "sc-1ben8su-1"
5822
6011
  })(["margin-left:-", ";margin-right:-", ";margin-bottom:0;width:auto;max-width:", ";"], popover.spacings.left, popover.spacings.right, popover.maxWidth);
5823
- const PopoverTitle = /*#__PURE__*/React$1.forwardRef(function PopoverTitle({
6012
+ const PopoverTitle = /*#__PURE__*/React.forwardRef(function PopoverTitle({
5824
6013
  children,
5825
6014
  ...rest
5826
6015
  }, ref) {
5827
6016
  const props = { ...rest,
5828
6017
  ref
5829
6018
  };
5830
- return /*#__PURE__*/React.createElement("div", props, /*#__PURE__*/React.createElement(StyledPopoverTitle, null, children), /*#__PURE__*/React.createElement(StyledDivider, {
5831
- variant: "small"
5832
- }));
6019
+ return /*#__PURE__*/jsxRuntime.jsxs("div", { ...props,
6020
+ children: [/*#__PURE__*/jsxRuntime.jsx(StyledPopoverTitle, {
6021
+ children: children
6022
+ }), /*#__PURE__*/jsxRuntime.jsx(StyledDivider, {
6023
+ variant: "small"
6024
+ })]
6025
+ });
5833
6026
  });
5834
6027
 
5835
6028
  const ContentWrapper = styled__default['default'].div.withConfig({
5836
6029
  displayName: "PopoverContent__ContentWrapper",
5837
6030
  componentId: "sc-vwww9h-0"
5838
6031
  })(["overflow:hidden;"]);
5839
- const PopoverContent = /*#__PURE__*/React$1.forwardRef(function PopoverContent({
6032
+ const PopoverContent = /*#__PURE__*/React.forwardRef(function PopoverContent({
5840
6033
  children,
5841
6034
  ...rest
5842
6035
  }, ref) {
5843
6036
  const props = { ...rest,
5844
6037
  ref
5845
6038
  };
5846
- return /*#__PURE__*/React.createElement(ContentWrapper, props, children);
6039
+ return /*#__PURE__*/jsxRuntime.jsx(ContentWrapper, { ...props,
6040
+ children: children
6041
+ });
5847
6042
  }); // PopoverContent.displayName = 'eds-popover-content'
5848
6043
 
5849
6044
  const Popover = Popover$1;
@@ -5953,14 +6148,14 @@ const StyledBannerIcon = styled__default['default'].span.withConfig({
5953
6148
  })(["display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;", ";background-color:", ";width:", ";height:", ";margin-right:", ";"], bordersTemplate(enabled$2.entities.icon.border), ({
5954
6149
  variant
5955
6150
  }) => variant === 'warning' ? warning.entities.icon.background : info.entities.icon.background, enabled$2.entities.icon.width, enabled$2.entities.icon.height, enabled$2.spacings.right);
5956
- const BannerIcon = /*#__PURE__*/React$1.forwardRef(function BannerIcon({
6151
+ const BannerIcon = /*#__PURE__*/React.forwardRef(function BannerIcon({
5957
6152
  children,
5958
6153
  variant = 'info',
5959
6154
  ...rest
5960
6155
  }, ref) {
5961
- const childrenWithColor = React$1.Children.map(children, child => {
6156
+ const childrenWithColor = React.Children.map(children, child => {
5962
6157
  const color = variant === 'warning' ? warning.entities.icon.typography.color : info.entities.icon.typography.color;
5963
- return /*#__PURE__*/React$1.isValidElement(child) && child.type === Icon$1 && /*#__PURE__*/React$1.cloneElement(child, {
6158
+ return /*#__PURE__*/React.isValidElement(child) && child.type === Icon$1 && /*#__PURE__*/React.cloneElement(child, {
5964
6159
  color
5965
6160
  }) || child;
5966
6161
  });
@@ -5968,9 +6163,11 @@ const BannerIcon = /*#__PURE__*/React$1.forwardRef(function BannerIcon({
5968
6163
  ref,
5969
6164
  ...rest
5970
6165
  };
5971
- return /*#__PURE__*/React.createElement(StyledBannerIcon, _extends__default['default']({
5972
- variant: variant
5973
- }, props), childrenWithColor);
6166
+ return /*#__PURE__*/jsxRuntime.jsx(StyledBannerIcon, {
6167
+ variant: variant,
6168
+ ...props,
6169
+ children: childrenWithColor
6170
+ });
5974
6171
  });
5975
6172
 
5976
6173
  const StyledBanner = styled__default['default'].div.withConfig({
@@ -5990,34 +6187,36 @@ const NonMarginDivider = styled__default['default'](Divider).withConfig({
5990
6187
  displayName: "Banner__NonMarginDivider",
5991
6188
  componentId: "sc-1ju451i-2"
5992
6189
  })(["margin:0;height:2px;"]);
5993
- const Banner$1 = /*#__PURE__*/React$1.forwardRef(function Banner({
6190
+ const Banner$1 = /*#__PURE__*/React.forwardRef(function Banner({
5994
6191
  children,
5995
6192
  className,
5996
6193
  ...rest
5997
6194
  }, ref) {
5998
- const childrenWhereBannerIcon = React$1.Children.map(children, child => {
5999
- return /*#__PURE__*/React$1.isValidElement(child) && child.type === BannerIcon;
6195
+ const childrenWhereBannerIcon = React.Children.map(children, child => {
6196
+ return /*#__PURE__*/React.isValidElement(child) && child.type === BannerIcon;
6000
6197
  });
6001
6198
  const hasIcon = childrenWhereBannerIcon.some(bool => bool);
6002
6199
  const props = {
6003
6200
  ref,
6004
6201
  ...rest
6005
6202
  };
6006
- return /*#__PURE__*/React.createElement(StyledBanner, _extends__default['default']({}, props, {
6203
+ return /*#__PURE__*/jsxRuntime.jsxs(StyledBanner, { ...props,
6007
6204
  className: className,
6008
- role: "alert"
6009
- }), /*#__PURE__*/React.createElement(Content$1, {
6010
- hasIcon: hasIcon
6011
- }, children), /*#__PURE__*/React.createElement(NonMarginDivider, {
6012
- color: "light"
6013
- }));
6205
+ role: "alert",
6206
+ children: [/*#__PURE__*/jsxRuntime.jsx(Content$1, {
6207
+ hasIcon: hasIcon,
6208
+ children: children
6209
+ }), /*#__PURE__*/jsxRuntime.jsx(NonMarginDivider, {
6210
+ color: "light"
6211
+ })]
6212
+ });
6014
6213
  });
6015
6214
 
6016
6215
  const StyledBannerMessage = styled__default['default'](Typography).withConfig({
6017
6216
  displayName: "BannerMessage__StyledBannerMessage",
6018
6217
  componentId: "sc-1lfqos1-0"
6019
6218
  })([""]);
6020
- const BannerMessage = /*#__PURE__*/React$1.forwardRef(function BannerMessage({
6219
+ const BannerMessage = /*#__PURE__*/React.forwardRef(function BannerMessage({
6021
6220
  children,
6022
6221
  ...rest
6023
6222
  }, ref) {
@@ -6025,9 +6224,11 @@ const BannerMessage = /*#__PURE__*/React$1.forwardRef(function BannerMessage({
6025
6224
  ref,
6026
6225
  ...rest
6027
6226
  };
6028
- return /*#__PURE__*/React.createElement(StyledBannerMessage, _extends__default['default']({
6029
- variant: "body_long"
6030
- }, props), children);
6227
+ return /*#__PURE__*/jsxRuntime.jsx(StyledBannerMessage, {
6228
+ variant: "body_long",
6229
+ ...props,
6230
+ children: children
6231
+ });
6031
6232
  });
6032
6233
 
6033
6234
  const {
@@ -6044,7 +6245,7 @@ const StyledBannerActions = styled__default['default'].div.withConfig({
6044
6245
  marginTop: enabled.spacings.top,
6045
6246
  marginLeft: '0'
6046
6247
  });
6047
- const BannerActions = /*#__PURE__*/React$1.forwardRef(function BannerActions({
6248
+ const BannerActions = /*#__PURE__*/React.forwardRef(function BannerActions({
6048
6249
  children,
6049
6250
  placement = 'left',
6050
6251
  ...rest
@@ -6053,9 +6254,11 @@ const BannerActions = /*#__PURE__*/React$1.forwardRef(function BannerActions({
6053
6254
  ref,
6054
6255
  ...rest
6055
6256
  };
6056
- return /*#__PURE__*/React.createElement(StyledBannerActions, _extends__default['default']({
6057
- placement: placement
6058
- }, props), children);
6257
+ return /*#__PURE__*/jsxRuntime.jsx(StyledBannerActions, {
6258
+ placement: placement,
6259
+ ...props,
6260
+ children: children
6261
+ });
6059
6262
  });
6060
6263
 
6061
6264
  const Banner = Banner$1;
@@ -6100,7 +6303,7 @@ const IndeterminateProgressBar = styled__default['default'].div.withConfig({
6100
6303
  displayName: "LinearProgress__IndeterminateProgressBar",
6101
6304
  componentId: "sc-5orxpi-2"
6102
6305
  })(["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);
6103
- const LinearProgress = /*#__PURE__*/React$1.forwardRef(function LinearProgress({
6306
+ const LinearProgress = /*#__PURE__*/React.forwardRef(function LinearProgress({
6104
6307
  variant = 'indeterminate',
6105
6308
  value = null,
6106
6309
  ...rest
@@ -6116,18 +6319,19 @@ const LinearProgress = /*#__PURE__*/React$1.forwardRef(function LinearProgress({
6116
6319
  props['aria-valuemin'] = 0;
6117
6320
  props['aria-valuemax'] = 100;
6118
6321
  const transform = value - 100;
6119
- barStyle = `translateX(${transform}%)`;
6322
+ barStyle = "translateX(".concat(transform, "%)");
6120
6323
  }
6121
6324
  }
6122
6325
 
6123
6326
  const transformStyle = {
6124
6327
  transform: barStyle
6125
6328
  };
6126
- return /*#__PURE__*/React.createElement(Track$2, _extends__default['default']({}, props, {
6127
- role: "progressbar"
6128
- }), variant === 'indeterminate' ? /*#__PURE__*/React.createElement(IndeterminateProgressBar, null) : /*#__PURE__*/React.createElement(ProgressBar, {
6129
- style: transformStyle
6130
- }));
6329
+ return /*#__PURE__*/jsxRuntime.jsx(Track$2, { ...props,
6330
+ role: "progressbar",
6331
+ children: variant === 'indeterminate' ? /*#__PURE__*/jsxRuntime.jsx(IndeterminateProgressBar, {}) : /*#__PURE__*/jsxRuntime.jsx(ProgressBar, {
6332
+ style: transformStyle
6333
+ })
6334
+ });
6131
6335
  }); // LinearProgress.displayName = 'eds-linear-progress'
6132
6336
 
6133
6337
  const {
@@ -6206,7 +6410,7 @@ const getToken = color => {
6206
6410
  };
6207
6411
  };
6208
6412
 
6209
- const CircularProgress = /*#__PURE__*/React$1.forwardRef(function CircularProgress({
6413
+ const CircularProgress = /*#__PURE__*/React.forwardRef(function CircularProgress({
6210
6414
  variant = 'indeterminate',
6211
6415
  value = null,
6212
6416
  size = 48,
@@ -6225,7 +6429,7 @@ const CircularProgress = /*#__PURE__*/React$1.forwardRef(function CircularProgre
6225
6429
 
6226
6430
  if (variant === 'determinate') {
6227
6431
  trackStyle.stroke = circumference.toFixed(3);
6228
- trackStyle.strokeDashoffset = `${((100 - progress) / 100 * circumference).toFixed(3)}px`;
6432
+ trackStyle.strokeDashoffset = "".concat(((100 - progress) / 100 * circumference).toFixed(3), "px");
6229
6433
  props['aria-valuenow'] = progress;
6230
6434
 
6231
6435
  if (value !== undefined) {
@@ -6235,31 +6439,32 @@ const CircularProgress = /*#__PURE__*/React$1.forwardRef(function CircularProgre
6235
6439
  }
6236
6440
  }
6237
6441
 
6238
- return /*#__PURE__*/React.createElement(Svg$4, _extends__default['default']({}, props, {
6442
+ return /*#__PURE__*/jsxRuntime.jsxs(Svg$4, { ...props,
6239
6443
  viewBox: "24 24 48 48",
6240
6444
  role: "progressbar",
6241
6445
  height: size,
6242
6446
  width: size,
6243
- preserveAspectRatio: "xMidYMid meet"
6244
- }), /*#__PURE__*/React.createElement(TrackCircle, {
6245
- style: trackStyle,
6246
- cx: 48,
6247
- cy: 48,
6248
- r: (48 - thickness) / 2,
6249
- fill: "none",
6250
- strokeWidth: thickness,
6251
- stroke: token.background
6252
- }), /*#__PURE__*/React.createElement(ProgressCircle, {
6253
- style: trackStyle,
6254
- cx: 48,
6255
- cy: 48,
6256
- r: (48 - thickness) / 2,
6257
- fill: "none",
6258
- strokeLinecap: "round",
6259
- strokeWidth: thickness,
6260
- strokeDasharray: variant === 'determinate' ? circumference : 48,
6261
- stroke: token.entities.progress.background
6262
- }));
6447
+ preserveAspectRatio: "xMidYMid meet",
6448
+ children: [/*#__PURE__*/jsxRuntime.jsx(TrackCircle, {
6449
+ style: trackStyle,
6450
+ cx: 48,
6451
+ cy: 48,
6452
+ r: (48 - thickness) / 2,
6453
+ fill: "none",
6454
+ strokeWidth: thickness,
6455
+ stroke: token.background
6456
+ }), /*#__PURE__*/jsxRuntime.jsx(ProgressCircle, {
6457
+ style: trackStyle,
6458
+ cx: 48,
6459
+ cy: 48,
6460
+ r: (48 - thickness) / 2,
6461
+ fill: "none",
6462
+ strokeLinecap: "round",
6463
+ strokeWidth: thickness,
6464
+ strokeDasharray: variant === 'determinate' ? circumference : 48,
6465
+ stroke: token.entities.progress.background
6466
+ })]
6467
+ });
6263
6468
  }); // CircularProgress.displayName = 'eds-circular-progress'
6264
6469
 
6265
6470
  const {
@@ -6284,7 +6489,7 @@ const Svg$3 = styled__default['default'].svg.withConfig({
6284
6489
  variant,
6285
6490
  progress
6286
6491
  }) => 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'));
6287
- const StarProgress = /*#__PURE__*/React$1.forwardRef(function StarProgress({
6492
+ const StarProgress = /*#__PURE__*/React.forwardRef(function StarProgress({
6288
6493
  variant = 'indeterminate',
6289
6494
  value = null,
6290
6495
  size = 48,
@@ -6307,27 +6512,28 @@ const StarProgress = /*#__PURE__*/React$1.forwardRef(function StarProgress({
6307
6512
  }
6308
6513
  }
6309
6514
 
6310
- return /*#__PURE__*/React.createElement(Svg$3, _extends__default['default']({}, props, {
6515
+ return /*#__PURE__*/jsxRuntime.jsxs(Svg$3, { ...props,
6311
6516
  role: "progressbar",
6312
6517
  width: width,
6313
6518
  height: height,
6314
6519
  viewBox: "0 0 40 48",
6315
6520
  fill: "none",
6316
6521
  xmlns: "http://www.w3.org/2000/svg",
6317
- preserveAspectRatio: "xMidYMid meet"
6318
- }), /*#__PURE__*/React.createElement("path", {
6319
- d: "M32.756 34.6798L29.482 36.5817C29.4139 36.6219 29.3295 36.6227 29.2606 36.5829L25.9476 34.7151C25.7975 34.6306 25.7967 34.4149 25.9456 34.3284L29.2397 32.4256C29.3077 32.3858 29.3914 32.3858 29.4603 32.4248L32.754 34.2931C32.9033 34.3784 32.9041 34.5929 32.756 34.6798Z"
6320
- }), /*#__PURE__*/React.createElement("path", {
6321
- d: "M25.9596 45.4706L22.6655 43.5867C22.5966 43.5469 22.554 43.4744 22.554 43.396V41.4289V39.5922C22.5519 39.4204 22.7381 39.3109 22.8878 39.397L26.1819 41.2981C26.25 41.3379 26.2926 41.4104 26.2934 41.4896V43.4268V45.2762C26.2947 45.4472 26.1085 45.5559 25.9596 45.4706Z"
6322
- }), /*#__PURE__*/React.createElement("path", {
6323
- d: "M12.3022 47.7037V44.9795V42.6544C12.3022 42.5495 12.3576 42.4515 12.4482 42.3986L14.1262 41.4062L16.8143 39.8188C17.0119 39.7019 17.2617 39.8442 17.2625 40.0739L17.2633 42.7627V45.1456C17.2633 45.251 17.2079 45.3486 17.1165 45.4015L12.7496 47.9587C12.552 48.0748 12.3031 47.9325 12.3022 47.7037Z"
6324
- }), /*#__PURE__*/React.createElement("path", {
6325
- d: "M0.221343 34.2106L6.76939 30.4056C6.90636 30.326 7.07449 30.3256 7.21227 30.4023L13.8378 34.1401C14.138 34.3095 14.14 34.7413 13.8415 34.9131L7.25492 38.7182C7.11795 38.7977 6.94941 38.7985 6.81204 38.7206L0.225854 34.9836C-0.0734986 34.8139 -0.075549 34.3833 0.221343 34.2106Z"
6326
- }), /*#__PURE__*/React.createElement("path", {
6327
- d: "M6.03876 9.125L16.9237 15.5151C17.1513 15.6484 17.2903 15.8912 17.2903 16.1549V28.8331C17.2903 29.4076 16.665 29.7647 16.1704 29.4728L5.28546 23.0264C5.05869 22.8919 4.92008 22.6479 4.9209 22.3855V9.76307C4.92254 9.1902 5.54503 8.83467 6.03876 9.125Z"
6328
- }), /*#__PURE__*/React.createElement("path", {
6329
- d: "M39.6262 1.07261V11.7603V19.3368C39.627 19.7178 39.4265 20.0709 39.0988 20.2644L31.4145 24.8195L23.3545 29.5964C22.6385 30.0192 21.7339 29.5029 21.7339 28.6717V10.3259C21.7339 9.94495 21.9356 9.5927 22.2641 9.39955L38.008 0.149533C38.7232 -0.270381 39.6241 0.24385 39.6262 1.07261Z"
6330
- }));
6522
+ preserveAspectRatio: "xMidYMid meet",
6523
+ children: [/*#__PURE__*/jsxRuntime.jsx("path", {
6524
+ d: "M32.756 34.6798L29.482 36.5817C29.4139 36.6219 29.3295 36.6227 29.2606 36.5829L25.9476 34.7151C25.7975 34.6306 25.7967 34.4149 25.9456 34.3284L29.2397 32.4256C29.3077 32.3858 29.3914 32.3858 29.4603 32.4248L32.754 34.2931C32.9033 34.3784 32.9041 34.5929 32.756 34.6798Z"
6525
+ }), /*#__PURE__*/jsxRuntime.jsx("path", {
6526
+ d: "M25.9596 45.4706L22.6655 43.5867C22.5966 43.5469 22.554 43.4744 22.554 43.396V41.4289V39.5922C22.5519 39.4204 22.7381 39.3109 22.8878 39.397L26.1819 41.2981C26.25 41.3379 26.2926 41.4104 26.2934 41.4896V43.4268V45.2762C26.2947 45.4472 26.1085 45.5559 25.9596 45.4706Z"
6527
+ }), /*#__PURE__*/jsxRuntime.jsx("path", {
6528
+ d: "M12.3022 47.7037V44.9795V42.6544C12.3022 42.5495 12.3576 42.4515 12.4482 42.3986L14.1262 41.4062L16.8143 39.8188C17.0119 39.7019 17.2617 39.8442 17.2625 40.0739L17.2633 42.7627V45.1456C17.2633 45.251 17.2079 45.3486 17.1165 45.4015L12.7496 47.9587C12.552 48.0748 12.3031 47.9325 12.3022 47.7037Z"
6529
+ }), /*#__PURE__*/jsxRuntime.jsx("path", {
6530
+ d: "M0.221343 34.2106L6.76939 30.4056C6.90636 30.326 7.07449 30.3256 7.21227 30.4023L13.8378 34.1401C14.138 34.3095 14.14 34.7413 13.8415 34.9131L7.25492 38.7182C7.11795 38.7977 6.94941 38.7985 6.81204 38.7206L0.225854 34.9836C-0.0734986 34.8139 -0.075549 34.3833 0.221343 34.2106Z"
6531
+ }), /*#__PURE__*/jsxRuntime.jsx("path", {
6532
+ d: "M6.03876 9.125L16.9237 15.5151C17.1513 15.6484 17.2903 15.8912 17.2903 16.1549V28.8331C17.2903 29.4076 16.665 29.7647 16.1704 29.4728L5.28546 23.0264C5.05869 22.8919 4.92008 22.6479 4.9209 22.3855V9.76307C4.92254 9.1902 5.54503 8.83467 6.03876 9.125Z"
6533
+ }), /*#__PURE__*/jsxRuntime.jsx("path", {
6534
+ d: "M39.6262 1.07261V11.7603V19.3368C39.627 19.7178 39.4265 20.0709 39.0988 20.2644L31.4145 24.8195L23.3545 29.5964C22.6385 30.0192 21.7339 29.5029 21.7339 28.6717V10.3259C21.7339 9.94495 21.9356 9.5927 22.2641 9.39955L38.008 0.149533C38.7232 -0.270381 39.6241 0.24385 39.6262 1.07261Z"
6535
+ })]
6536
+ });
6331
6537
  }); // StarProgress.displayName = 'eds-star-progress'
6332
6538
 
6333
6539
  const {
@@ -6380,7 +6586,7 @@ const getColor = color => {
6380
6586
  return color;
6381
6587
  };
6382
6588
 
6383
- const DotProgress = /*#__PURE__*/React$1.forwardRef(function DotProgress({
6589
+ const DotProgress = /*#__PURE__*/React.forwardRef(function DotProgress({
6384
6590
  color = 'neutral',
6385
6591
  size = 32,
6386
6592
  ...rest
@@ -6391,25 +6597,26 @@ const DotProgress = /*#__PURE__*/React$1.forwardRef(function DotProgress({
6391
6597
  };
6392
6598
  const height = size / 4;
6393
6599
  const width = size;
6394
- return /*#__PURE__*/React.createElement(Svg$2, _extends__default['default']({}, props, {
6600
+ return /*#__PURE__*/jsxRuntime.jsxs(Svg$2, { ...props,
6395
6601
  role: "progressbar",
6396
6602
  viewBox: "0 0 16 4",
6397
6603
  height: height,
6398
6604
  width: width,
6399
- preserveAspectRatio: "xMidYMid meet"
6400
- }), /*#__PURE__*/React.createElement("circle", {
6401
- cx: 2,
6402
- cy: 2,
6403
- r: 2
6404
- }), /*#__PURE__*/React.createElement("circle", {
6405
- cx: 8,
6406
- cy: 2,
6407
- r: 2
6408
- }), /*#__PURE__*/React.createElement("circle", {
6409
- cx: 14,
6410
- cy: 2,
6411
- r: 2
6412
- }));
6605
+ preserveAspectRatio: "xMidYMid meet",
6606
+ children: [/*#__PURE__*/jsxRuntime.jsx("circle", {
6607
+ cx: 2,
6608
+ cy: 2,
6609
+ r: 2
6610
+ }), /*#__PURE__*/jsxRuntime.jsx("circle", {
6611
+ cx: 8,
6612
+ cy: 2,
6613
+ r: 2
6614
+ }), /*#__PURE__*/jsxRuntime.jsx("circle", {
6615
+ cx: 14,
6616
+ cy: 2,
6617
+ r: 2
6618
+ })]
6619
+ });
6413
6620
  });
6414
6621
 
6415
6622
  const Progress = {
@@ -6464,7 +6671,7 @@ const OrderedList$1 = styled__default['default'].ol.withConfig({
6464
6671
  displayName: "Breadcrumbs__OrderedList",
6465
6672
  componentId: "sc-12awlbz-0"
6466
6673
  })(["list-style:none;display:flex;padding:0;margin:0;flex-wrap:wrap;"]);
6467
- const ListItem$3 = styled__default['default'].li.withConfig({
6674
+ const ListItem$1 = styled__default['default'].li.withConfig({
6468
6675
  displayName: "Breadcrumbs__ListItem",
6469
6676
  componentId: "sc-12awlbz-1"
6470
6677
  })(["display:inline-block;"]);
@@ -6476,7 +6683,7 @@ const Collapsed = styled__default['default'](Typography).withConfig({
6476
6683
  displayName: "Breadcrumbs__Collapsed",
6477
6684
  componentId: "sc-12awlbz-3"
6478
6685
  })(["@media (hover:hover) and (pointer:fine){&:hover{text-decoration:underline;color:", ";}}color:", ";text-decoration:none;"], states$1.hover.typography.color, typography$5.color);
6479
- const Breadcrumbs$1 = /*#__PURE__*/React$1.forwardRef(function Breadcrumbs({
6686
+ const Breadcrumbs$1 = /*#__PURE__*/React.forwardRef(function Breadcrumbs({
6480
6687
  children,
6481
6688
  collapse,
6482
6689
  ...rest
@@ -6484,7 +6691,7 @@ const Breadcrumbs$1 = /*#__PURE__*/React$1.forwardRef(function Breadcrumbs({
6484
6691
  const props = { ...rest,
6485
6692
  ref
6486
6693
  };
6487
- const [expanded, setExpanded] = React$1.useState(false);
6694
+ const [expanded, setExpanded] = React.useState(false);
6488
6695
 
6489
6696
  const collapsedCrumbs = allCrumbs => {
6490
6697
  const handleExpandClick = e => {
@@ -6502,35 +6709,47 @@ const Breadcrumbs$1 = /*#__PURE__*/React$1.forwardRef(function Breadcrumbs({
6502
6709
  return allCrumbs;
6503
6710
  }
6504
6711
 
6505
- return [allCrumbs[0], /*#__PURE__*/React.createElement(React$1.Fragment, {
6506
- key: "collapsed"
6507
- }, /*#__PURE__*/React.createElement(ListItem$3, null, /*#__PURE__*/React.createElement(Collapsed, {
6508
- link: true,
6509
- role: "button",
6510
- variant: "body_short",
6511
- onClick: handleExpandClick,
6512
- onKeyPress: handleExpandClick,
6513
- tabIndex: 0
6514
- }, "\u2026")), /*#__PURE__*/React.createElement("li", {
6515
- "aria-hidden": true
6516
- }, /*#__PURE__*/React.createElement(Separator, {
6517
- variant: "body_short"
6518
- }, "/"))), allCrumbs[allCrumbs.length - 1]];
6712
+ return [allCrumbs[0], /*#__PURE__*/jsxRuntime.jsxs(React.Fragment, {
6713
+ children: [/*#__PURE__*/jsxRuntime.jsx(ListItem$1, {
6714
+ children: /*#__PURE__*/jsxRuntime.jsx(Collapsed, {
6715
+ link: true,
6716
+ role: "button",
6717
+ variant: "body_short",
6718
+ onClick: handleExpandClick,
6719
+ onKeyPress: handleExpandClick,
6720
+ tabIndex: 0,
6721
+ children: "\u2026"
6722
+ })
6723
+ }), /*#__PURE__*/jsxRuntime.jsx("li", {
6724
+ "aria-hidden": true,
6725
+ children: /*#__PURE__*/jsxRuntime.jsx(Separator, {
6726
+ variant: "body_short",
6727
+ children: "/"
6728
+ })
6729
+ })]
6730
+ }, "collapsed"), allCrumbs[allCrumbs.length - 1]];
6519
6731
  };
6520
6732
 
6521
- const allCrumbs = React$1.Children.toArray(children).map((child, index) =>
6733
+ const allCrumbs = React.Children.toArray(children).map((child, index) =>
6522
6734
  /*#__PURE__*/
6523
6735
  // eslint-disable-next-line react/no-array-index-key
6524
- React.createElement(React$1.Fragment, {
6525
- key: `breadcrumb-${index}`
6526
- }, /*#__PURE__*/React.createElement(ListItem$3, null, child), index !== React$1.Children.toArray(children).length - 1 && /*#__PURE__*/React.createElement("li", {
6527
- "aria-hidden": true
6528
- }, /*#__PURE__*/React.createElement(Separator, {
6529
- variant: "body_short"
6530
- }, "/"))));
6531
- return /*#__PURE__*/React.createElement("nav", _extends__default['default']({}, props, {
6532
- "aria-label": "breadcrumbs"
6533
- }), /*#__PURE__*/React.createElement(OrderedList$1, null, collapse && !expanded ? collapsedCrumbs(allCrumbs) : allCrumbs));
6736
+ jsxRuntime.jsxs(React.Fragment, {
6737
+ children: [/*#__PURE__*/jsxRuntime.jsx(ListItem$1, {
6738
+ children: child
6739
+ }), index !== React.Children.toArray(children).length - 1 && /*#__PURE__*/jsxRuntime.jsx("li", {
6740
+ "aria-hidden": true,
6741
+ children: /*#__PURE__*/jsxRuntime.jsx(Separator, {
6742
+ variant: "body_short",
6743
+ children: "/"
6744
+ })
6745
+ })]
6746
+ }, "breadcrumb-".concat(index)));
6747
+ return /*#__PURE__*/jsxRuntime.jsx("nav", { ...props,
6748
+ "aria-label": "breadcrumbs",
6749
+ children: /*#__PURE__*/jsxRuntime.jsx(OrderedList$1, {
6750
+ children: collapse && !expanded ? collapsedCrumbs(allCrumbs) : allCrumbs
6751
+ })
6752
+ });
6534
6753
  }); // Breadcrumbs.displayName = 'eds-breadcrumbs'
6535
6754
 
6536
6755
  const {
@@ -6545,7 +6764,7 @@ const StyledTypography = styled__default['default'](Typography).withConfig({
6545
6764
  }) => styled.css({
6546
6765
  maxWidth
6547
6766
  }));
6548
- const Breadcrumb = /*#__PURE__*/React$1.forwardRef(function Breadcrumb({
6767
+ const Breadcrumb = /*#__PURE__*/React.forwardRef(function Breadcrumb({
6549
6768
  children,
6550
6769
  maxWidth,
6551
6770
  href,
@@ -6558,15 +6777,20 @@ const Breadcrumb = /*#__PURE__*/React$1.forwardRef(function Breadcrumb({
6558
6777
  };
6559
6778
  const showTooltip = maxWidth > 0;
6560
6779
  const isHrefDefined = href !== undefined;
6561
- const crumb = /*#__PURE__*/React.createElement(StyledTypography, _extends__default['default']({
6780
+
6781
+ const crumb = /*#__PURE__*/jsxRuntime.jsx(StyledTypography, {
6562
6782
  link: isHrefDefined,
6563
6783
  as: isHrefDefined ? null : 'span',
6564
- variant: "body_short"
6565
- }, props), children);
6566
- return showTooltip ? /*#__PURE__*/React.createElement(Tooltip, {
6784
+ variant: "body_short",
6785
+ ...props,
6786
+ children: children
6787
+ });
6788
+
6789
+ return showTooltip ? /*#__PURE__*/jsxRuntime.jsx(Tooltip, {
6567
6790
  title: children,
6568
- placement: "top"
6569
- }, crumb) : crumb;
6791
+ placement: "top",
6792
+ children: crumb
6793
+ }) : crumb;
6570
6794
  });
6571
6795
 
6572
6796
  const Breadcrumbs = Breadcrumbs$1;
@@ -6577,11 +6801,11 @@ const initalState = {
6577
6801
  focusedIndex: -1,
6578
6802
  onClose: null
6579
6803
  };
6580
- const MenuContext = /*#__PURE__*/React$1.createContext(initalState);
6804
+ const MenuContext = /*#__PURE__*/React.createContext(initalState);
6581
6805
  const MenuProvider = ({
6582
6806
  children
6583
6807
  }) => {
6584
- const [state, setState] = React$1.useState(initalState);
6808
+ const [state, setState] = React.useState(initalState);
6585
6809
  const {
6586
6810
  focusedIndex,
6587
6811
  onClose
@@ -6594,8 +6818,13 @@ const MenuProvider = ({
6594
6818
  };
6595
6819
 
6596
6820
  const setOnClose = onClose => {
6821
+ const onCloseHelper = () => {
6822
+ onClose();
6823
+ setFocusedIndex(-1);
6824
+ };
6825
+
6597
6826
  setState(prevState => ({ ...prevState,
6598
- onClose
6827
+ onClose: onCloseHelper
6599
6828
  }));
6600
6829
  };
6601
6830
 
@@ -6605,11 +6834,12 @@ const MenuProvider = ({
6605
6834
  setOnClose,
6606
6835
  onClose
6607
6836
  };
6608
- return /*#__PURE__*/React.createElement(MenuContext.Provider, {
6609
- value: value
6610
- }, children);
6837
+ return /*#__PURE__*/jsxRuntime.jsx(MenuContext.Provider, {
6838
+ value: value,
6839
+ children: children
6840
+ });
6611
6841
  };
6612
- const useMenu = () => React$1.useContext(MenuContext);
6842
+ const useMenu = () => React.useContext(MenuContext);
6613
6843
 
6614
6844
  const {
6615
6845
  colors: {
@@ -6754,26 +6984,26 @@ const {
6754
6984
  icon
6755
6985
  }
6756
6986
  } = menu;
6757
- const ListItem$2 = styled__default['default'].li.attrs(({
6987
+ const Item = styled__default['default'].button.attrs(({
6758
6988
  isFocused
6759
6989
  }) => ({
6760
6990
  role: 'menuitem',
6761
6991
  tabIndex: isFocused ? -1 : 0
6762
6992
  })).withConfig({
6763
- displayName: "MenuItem__ListItem",
6993
+ displayName: "MenuItem__Item",
6764
6994
  componentId: "sc-1g9fpbe-0"
6765
- })(["width:auto;position:relative;z-index:2;", " ", " ", " ", ""], typographyTemplate(typography$2), ({
6995
+ })(["border:0;background-color:transparent;width:auto;position:relative;z-index:2;", " ", " ", " ", ""], typographyTemplate(typography$2), ({
6766
6996
  theme
6767
6997
  }) => spacingsTemplate(theme.entities.item.spacings), ({
6768
6998
  active
6769
6999
  }) => active && styled.css(["background:", ";*{color:", ";}"], activeToken.background, activeToken.typography.color), ({
6770
7000
  disabled
6771
- }) => disabled ? styled.css(["*{color:", ";}svg{fill:", ";}&:focus{outline:none;}@media (hover:hover) and (pointer:fine){&:hover{cursor:not-allowed;}}"], disabledToken.typography.color, icon.states.disabled.typography.color) : styled.css(["@media (hover:hover) and (pointer:fine){&:hover{z-index:1;cursor:pointer;background:", ";}}&:focus{", "}"], hover.background, outlineTemplate(focus.outline)));
7001
+ }) => disabled ? styled.css(["*{color:", ";}svg{fill:", ";}&:focus{outline:none;}@media (hover:hover) and (pointer:fine){&:hover{cursor:not-allowed;}}"], disabledToken.typography.color, icon.states.disabled.typography.color) : styled.css(["@media (hover:hover) and (pointer:fine){&:hover{z-index:1;cursor:pointer;background:", ";}}&:focus{z-index:3;", "}"], hover.background, outlineTemplate(focus.outline)));
6772
7002
  const Content = styled__default['default'].div.withConfig({
6773
7003
  displayName: "MenuItem__Content",
6774
7004
  componentId: "sc-1g9fpbe-1"
6775
7005
  })(["width:auto;display:grid;grid-gap:16px;grid-auto-flow:column;grid-auto-columns:max-content auto max-content;align-items:center;"]);
6776
- const MenuItem = /*#__PURE__*/React$1.memo( /*#__PURE__*/React$1.forwardRef(function MenuItem({
7006
+ const MenuItem = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function MenuItem({
6777
7007
  children,
6778
7008
  disabled,
6779
7009
  index = 0,
@@ -6797,7 +7027,7 @@ const MenuItem = /*#__PURE__*/React$1.memo( /*#__PURE__*/React$1.forwardRef(func
6797
7027
  disabled,
6798
7028
  isFocused
6799
7029
  };
6800
- return /*#__PURE__*/React.createElement(ListItem$2, _extends__default['default']({}, props, {
7030
+ return /*#__PURE__*/jsxRuntime.jsx(Item, { ...props,
6801
7031
  ref: useCombinedRefs(ref, el => {
6802
7032
  if (el !== null && isFocused) {
6803
7033
  el.focus();
@@ -6805,22 +7035,25 @@ const MenuItem = /*#__PURE__*/React$1.memo( /*#__PURE__*/React$1.forwardRef(func
6805
7035
  }),
6806
7036
  onFocus: () => toggleFocus(index),
6807
7037
  onClick: e => {
6808
- if (!disabled && onClick) {
7038
+ if (onClick) {
6809
7039
  onClick(e);
6810
7040
 
6811
7041
  if (onClose !== null) {
6812
7042
  onClose(e);
6813
7043
  }
6814
7044
  }
6815
- }
6816
- }), /*#__PURE__*/React.createElement(Content, null, children));
7045
+ },
7046
+ children: /*#__PURE__*/jsxRuntime.jsx(Content, {
7047
+ children: children
7048
+ })
7049
+ });
6817
7050
  }));
6818
7051
  MenuItem.displayName = 'MenuItem';
6819
7052
 
6820
- const ListItem$1 = styled__default['default'].li.attrs(() => ({
7053
+ const Header = styled__default['default'].div.attrs(() => ({
6821
7054
  tabIndex: 0
6822
7055
  })).withConfig({
6823
- displayName: "MenuSection__ListItem",
7056
+ displayName: "MenuSection__Header",
6824
7057
  componentId: "sc-gfcbvg-0"
6825
7058
  })(["", " &:focus{outline:none;}"], spacingsTemplate(menu.entities.title.spacings));
6826
7059
  const MenuSection = /*#__PURE__*/React__namespace.memo(function MenuSection(props) {
@@ -6829,25 +7062,32 @@ const MenuSection = /*#__PURE__*/React__namespace.memo(function MenuSection(prop
6829
7062
  title,
6830
7063
  index
6831
7064
  } = props;
6832
- return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, index !== 0 && /*#__PURE__*/React__namespace.createElement("li", null, /*#__PURE__*/React__namespace.createElement(Divider, {
6833
- variant: "small"
6834
- })), title && /*#__PURE__*/React__namespace.createElement(ListItem$1, null, /*#__PURE__*/React__namespace.createElement(Typography, {
6835
- group: "navigation",
6836
- variant: "label"
6837
- }, title)), children);
7065
+ return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
7066
+ children: [index !== 0 && /*#__PURE__*/jsxRuntime.jsx("div", {
7067
+ children: /*#__PURE__*/jsxRuntime.jsx(Divider, {
7068
+ variant: "small"
7069
+ })
7070
+ }), title && /*#__PURE__*/jsxRuntime.jsx(Header, {
7071
+ children: /*#__PURE__*/jsxRuntime.jsx(Typography, {
7072
+ group: "navigation",
7073
+ variant: "label",
7074
+ children: title
7075
+ })
7076
+ }), children]
7077
+ });
6838
7078
  }); // MenuSection.displayName = 'EdsMenuSection'
6839
7079
 
6840
- const List = styled__default['default'].ul.withConfig({
7080
+ const List = styled__default['default'].div.withConfig({
6841
7081
  displayName: "MenuList__List",
6842
7082
  componentId: "sc-104rzof-0"
6843
- })(["position:relative;list-style:none;margin:0;", " li:first-child{z-index:3;}"], spacingsTemplate(menu.spacings));
7083
+ })(["position:relative;list-style:none;display:flex;flex-direction:column;margin:0;", " li:first-child{z-index:3;}"], spacingsTemplate(menu.spacings));
6844
7084
 
6845
7085
  function isIndexable(item) {
6846
- if ( /*#__PURE__*/React$1.isValidElement(item) && !item.props.disabled && item.type === MenuItem) return true;
7086
+ if ( /*#__PURE__*/React.isValidElement(item) && !item.props.disabled && item.type === MenuItem) return true;
6847
7087
  return false;
6848
7088
  }
6849
7089
 
6850
- const MenuList = /*#__PURE__*/React$1.forwardRef(function MenuList({
7090
+ const MenuList = /*#__PURE__*/React.forwardRef(function MenuList({
6851
7091
  children,
6852
7092
  focus,
6853
7093
  ...rest
@@ -6857,28 +7097,28 @@ const MenuList = /*#__PURE__*/React$1.forwardRef(function MenuList({
6857
7097
  setFocusedIndex
6858
7098
  } = useMenu();
6859
7099
  let index = -1;
6860
- const focusableIndexs = React$1.useMemo(() => [], []);
6861
- const updatedChildren = React$1.useMemo(() => React$1.Children.map(children, child => {
7100
+ const focusableIndexs = React.useMemo(() => [], []);
7101
+ const updatedChildren = React.useMemo(() => React.Children.map(children, child => {
6862
7102
  if (child.type === MenuSection) {
6863
- const updatedGrandChildren = React$1.Children.map(child.props.children, grandChild => {
7103
+ const updatedGrandChildren = React.Children.map(child.props.children, grandChild => {
6864
7104
  index++;
6865
7105
  if (isIndexable(grandChild)) focusableIndexs.push(index);
6866
- return /*#__PURE__*/React$1.cloneElement(grandChild, {
7106
+ return /*#__PURE__*/React.cloneElement(grandChild, {
6867
7107
  index
6868
7108
  });
6869
7109
  });
6870
- return /*#__PURE__*/React$1.cloneElement(child, null, updatedGrandChildren);
7110
+ return /*#__PURE__*/React.cloneElement(child, null, updatedGrandChildren);
6871
7111
  } else {
6872
7112
  index++;
6873
7113
  if (isIndexable(child)) focusableIndexs.push(index);
6874
- return /*#__PURE__*/React$1.cloneElement(child, {
7114
+ return /*#__PURE__*/React.cloneElement(child, {
6875
7115
  index
6876
7116
  });
6877
7117
  }
6878
7118
  }), [children, focusableIndexs, index]);
6879
7119
  const firstFocusIndex = focusableIndexs[0];
6880
7120
  const lastFocusIndex = focusableIndexs[focusableIndexs.length - 1];
6881
- React$1.useEffect(() => {
7121
+ React.useEffect(() => {
6882
7122
  if (focus === 'first') {
6883
7123
  setFocusedIndex(firstFocusIndex);
6884
7124
  }
@@ -6914,12 +7154,13 @@ const MenuList = /*#__PURE__*/React$1.forwardRef(function MenuList({
6914
7154
  }
6915
7155
  };
6916
7156
 
6917
- return /*#__PURE__*/React.createElement(List, _extends__default['default']({
7157
+ return /*#__PURE__*/jsxRuntime.jsx(List, {
6918
7158
  onKeyDown: handleKeyPress,
6919
- role: "menu"
6920
- }, rest, {
6921
- ref: ref
6922
- }), updatedChildren);
7159
+ role: "menu",
7160
+ ...rest,
7161
+ ref: ref,
7162
+ children: updatedChildren
7163
+ });
6923
7164
  }); // MenuList.displayName = 'EdsMenuList'
6924
7165
 
6925
7166
  const {
@@ -6933,7 +7174,7 @@ const MenuPaper = styled__default['default'](Paper).withConfig({
6933
7174
  }) => styled.css({
6934
7175
  visibility: open ? null : 'hidden'
6935
7176
  }));
6936
- const MenuContainer = /*#__PURE__*/React$1.forwardRef(function MenuContainer({
7177
+ const MenuContainer = /*#__PURE__*/React.forwardRef(function MenuContainer({
6937
7178
  children,
6938
7179
  anchorEl,
6939
7180
  onClose: onCloseCallback,
@@ -6945,7 +7186,7 @@ const MenuContainer = /*#__PURE__*/React$1.forwardRef(function MenuContainer({
6945
7186
  setOnClose,
6946
7187
  onClose
6947
7188
  } = useMenu();
6948
- React$1.useEffect(() => {
7189
+ React.useEffect(() => {
6949
7190
  if (onClose === null && onCloseCallback) {
6950
7191
  setOnClose(onCloseCallback);
6951
7192
  }
@@ -6958,13 +7199,20 @@ const MenuContainer = /*#__PURE__*/React$1.forwardRef(function MenuContainer({
6958
7199
  useGlobalKeyPress('Escape', () => {
6959
7200
  if (open && onClose !== null) {
6960
7201
  onClose();
7202
+ anchorEl.focus();
6961
7203
  }
6962
7204
  });
6963
- return /*#__PURE__*/React.createElement(MenuList, _extends__default['default']({}, rest, {
6964
- ref: ref
6965
- }), children);
7205
+ useGlobalKeyPress('Enter', () => {
7206
+ if (open && onClose !== null) {
7207
+ if (window.document.contains(anchorEl)) anchorEl.focus();
7208
+ }
7209
+ });
7210
+ return /*#__PURE__*/jsxRuntime.jsx(MenuList, { ...rest,
7211
+ ref: ref,
7212
+ children: children
7213
+ });
6966
7214
  });
6967
- const Menu$1 = /*#__PURE__*/React$1.forwardRef(function Menu({
7215
+ const Menu$1 = /*#__PURE__*/React.forwardRef(function Menu({
6968
7216
  anchorEl,
6969
7217
  open,
6970
7218
  placement = 'auto',
@@ -6972,7 +7220,7 @@ const Menu$1 = /*#__PURE__*/React$1.forwardRef(function Menu({
6972
7220
  className,
6973
7221
  ...rest
6974
7222
  }, ref) {
6975
- const [containerEl, setContainerEl] = React$1.useState(null);
7223
+ const [containerEl, setContainerEl] = React.useState(null);
6976
7224
  const isMounted = useIsMounted();
6977
7225
  const {
6978
7226
  density
@@ -6997,14 +7245,21 @@ const Menu$1 = /*#__PURE__*/React$1.forwardRef(function Menu({
6997
7245
  open,
6998
7246
  containerEl
6999
7247
  };
7000
- return /*#__PURE__*/React.createElement(React.Fragment, null, isMounted && /*#__PURE__*/ReactDom__namespace.createPortal( /*#__PURE__*/React.createElement(styled.ThemeProvider, {
7001
- theme: token
7002
- }, /*#__PURE__*/React.createElement(MenuPaper, _extends__default['default']({
7003
- elevation: "raised",
7004
- ref: setContainerEl
7005
- }, props), /*#__PURE__*/React.createElement(MenuProvider, null, /*#__PURE__*/React.createElement(MenuContainer, _extends__default['default']({}, menuProps, {
7006
- ref: ref
7007
- }))))), document.body));
7248
+ return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
7249
+ children: isMounted && /*#__PURE__*/ReactDom__namespace.createPortal( /*#__PURE__*/jsxRuntime.jsx(styled.ThemeProvider, {
7250
+ theme: token,
7251
+ children: /*#__PURE__*/jsxRuntime.jsx(MenuPaper, {
7252
+ elevation: "raised",
7253
+ ref: setContainerEl,
7254
+ ...props,
7255
+ children: /*#__PURE__*/jsxRuntime.jsx(MenuProvider, {
7256
+ children: /*#__PURE__*/jsxRuntime.jsx(MenuContainer, { ...menuProps,
7257
+ ref: ref
7258
+ })
7259
+ })
7260
+ })
7261
+ }), document.body)
7262
+ });
7008
7263
  });
7009
7264
 
7010
7265
  const Menu = Menu$1;
@@ -7050,7 +7305,7 @@ const pagination = {
7050
7305
  }
7051
7306
  };
7052
7307
 
7053
- const PaginationItem = /*#__PURE__*/React$1.forwardRef(function PaginationItem({
7308
+ const PaginationItem = /*#__PURE__*/React.forwardRef(function PaginationItem({
7054
7309
  page,
7055
7310
  selected,
7056
7311
  onClick,
@@ -7063,13 +7318,15 @@ const PaginationItem = /*#__PURE__*/React$1.forwardRef(function PaginationItem({
7063
7318
  ...rest
7064
7319
  };
7065
7320
  const background = selected ? pagination.entities.item.states.active.background : null;
7066
- return /*#__PURE__*/React.createElement(Button, _extends__default['default']({
7321
+ return /*#__PURE__*/jsxRuntime.jsx(Button, {
7067
7322
  style: {
7068
7323
  background
7069
7324
  },
7070
7325
  variant: "ghost_icon",
7071
- onClick: onClick ? onClick : undefined
7072
- }, props), page);
7326
+ onClick: onClick ? onClick : undefined,
7327
+ ...props,
7328
+ children: page
7329
+ });
7073
7330
  });
7074
7331
 
7075
7332
  function PaginationControl(pages, activePage) {
@@ -7151,10 +7408,10 @@ const Text = styled__default['default'](Typography).withConfig({
7151
7408
  })(["white-space:nowrap;"]);
7152
7409
 
7153
7410
  function getAriaLabel(page, selected) {
7154
- return `${selected === page ? 'Current page, ' : 'Go to '}page ${page}`;
7411
+ return "".concat(selected === page ? 'Current page, ' : 'Go to ', "page ").concat(page);
7155
7412
  }
7156
7413
 
7157
- const Pagination = /*#__PURE__*/React$1.forwardRef(function Pagination({
7414
+ const Pagination = /*#__PURE__*/React.forwardRef(function Pagination({
7158
7415
  totalItems,
7159
7416
  defaultPage = 1,
7160
7417
  withItemIndicator,
@@ -7166,7 +7423,7 @@ const Pagination = /*#__PURE__*/React$1.forwardRef(function Pagination({
7166
7423
 
7167
7424
  const columns = pages < 5 ? pages + 2 : 7; // Total pages to display on the control + 2: < and >
7168
7425
 
7169
- const [activePage, setActivePage] = React$1.useState(defaultPage);
7426
+ const [activePage, setActivePage] = React.useState(defaultPage);
7170
7427
  const currentItemFirst = activePage === 1 ? 1 : activePage * itemsPerPage - itemsPerPage + 1; // First number of range of items at current page
7171
7428
 
7172
7429
  const currentItemLast = activePage === pages ? totalItems : activePage * itemsPerPage; // Last number of range of items at current page
@@ -7184,7 +7441,7 @@ const Pagination = /*#__PURE__*/React$1.forwardRef(function Pagination({
7184
7441
 
7185
7442
  const isMounted = useIsMounted();
7186
7443
  const items = PaginationControl(pages, activePage);
7187
- React$1.useLayoutEffect(() => {
7444
+ React.useLayoutEffect(() => {
7188
7445
  if (isMounted) {
7189
7446
  setActivePage(1);
7190
7447
  onChange === null || onChange === void 0 ? void 0 : onChange(null, 1);
@@ -7196,60 +7453,66 @@ const Pagination = /*#__PURE__*/React$1.forwardRef(function Pagination({
7196
7453
  withItemIndicator,
7197
7454
  ...rest
7198
7455
  };
7199
- const pagination = /*#__PURE__*/React.createElement(Navigation, _extends__default['default']({
7200
- "aria-label": "pagination"
7201
- }, props), /*#__PURE__*/React.createElement(OrderedList, {
7202
- style: {
7203
- gridTemplateColumns: `repeat(${columns}, 48px)`
7204
- }
7205
- }, /*#__PURE__*/React.createElement(ListItem, {
7206
- key: "previous"
7207
- }, /*#__PURE__*/React.createElement(Button, {
7208
- variant: "ghost_icon",
7209
- onClick: activePage > 1 ? event => {
7210
- onPageChange(event, activePage - 1);
7211
- } : undefined,
7212
- disabled: activePage === 1,
7213
- "aria-label": "Go to previous page"
7214
- }, /*#__PURE__*/React.createElement(Icon$1, {
7215
- name: "chevron_left"
7216
- }))), items.length > 0 ? items.map((page, index) => page !== 'ELLIPSIS' ?
7217
- /*#__PURE__*/
7218
- // eslint-disable-next-line react/no-array-index-key
7219
- React.createElement(ListItem, {
7220
- key: `list-item ${index}`
7221
- }, /*#__PURE__*/React.createElement(PaginationItem, _extends__default['default']({}, page, {
7222
- "aria-label": getAriaLabel(page, activePage),
7223
- "aria-current": activePage,
7224
- page: page,
7225
- selected: page === activePage,
7226
- onClick: event => {
7227
- onPageChange(event, page);
7228
- }
7229
- }))) : /*#__PURE__*/React.createElement(ListItem // eslint-disable-next-line react/no-array-index-key
7230
- , {
7231
- key: `ellipsis-${index}`
7232
- }, /*#__PURE__*/React.createElement(StyledIcon, {
7233
- name: "more_horizontal",
7234
- "aria-label": "Ellipsis of pages"
7235
- }))) : undefined, /*#__PURE__*/React.createElement(ListItem, {
7236
- key: "next"
7237
- }, /*#__PURE__*/React.createElement(Button, {
7238
- variant: "ghost_icon",
7239
- onClick: activePage < pages ? event => {
7240
- onPageChange(event, activePage + 1);
7241
- } : undefined,
7242
- "aria-label": "Go to next page",
7243
- disabled: activePage === pages
7244
- }, /*#__PURE__*/React.createElement(Icon$1, {
7245
- name: "chevron_right"
7246
- })))));
7247
- return withItemIndicator ? /*#__PURE__*/React.createElement(FlexContainer, null, /*#__PURE__*/React.createElement(Text, null, currentItemFirst !== currentItemLast ? `${currentItemFirst}
7248
- ${' - '}
7249
- ${currentItemLast}
7250
- ${' of '}
7251
- ${totalItems}
7252
- ${' items'}` : `${currentItemFirst} ${' of '} ${totalItems} ${' items'}`), pagination) : pagination;
7456
+
7457
+ const pagination = /*#__PURE__*/jsxRuntime.jsx(Navigation, {
7458
+ "aria-label": "pagination",
7459
+ ...props,
7460
+ children: /*#__PURE__*/jsxRuntime.jsxs(OrderedList, {
7461
+ style: {
7462
+ gridTemplateColumns: "repeat(".concat(columns, ", 48px)")
7463
+ },
7464
+ children: [/*#__PURE__*/jsxRuntime.jsx(ListItem, {
7465
+ children: /*#__PURE__*/jsxRuntime.jsx(Button, {
7466
+ variant: "ghost_icon",
7467
+ onClick: activePage > 1 ? event => {
7468
+ onPageChange(event, activePage - 1);
7469
+ } : undefined,
7470
+ disabled: activePage === 1,
7471
+ "aria-label": "Go to previous page",
7472
+ children: /*#__PURE__*/jsxRuntime.jsx(Icon$1, {
7473
+ name: "chevron_left"
7474
+ })
7475
+ })
7476
+ }, "previous"), items.length > 0 ? items.map((page, index) => page !== 'ELLIPSIS' ?
7477
+ /*#__PURE__*/
7478
+ // eslint-disable-next-line react/no-array-index-key
7479
+ jsxRuntime.jsx(ListItem, {
7480
+ children: /*#__PURE__*/jsxRuntime.jsx(PaginationItem, { ...page,
7481
+ "aria-label": getAriaLabel(page, activePage),
7482
+ "aria-current": activePage,
7483
+ page: page,
7484
+ selected: page === activePage,
7485
+ onClick: event => {
7486
+ onPageChange(event, page);
7487
+ }
7488
+ })
7489
+ }, "list-item ".concat(index)) : /*#__PURE__*/jsxRuntime.jsx(ListItem // eslint-disable-next-line react/no-array-index-key
7490
+ , {
7491
+ children: /*#__PURE__*/jsxRuntime.jsx(StyledIcon, {
7492
+ name: "more_horizontal",
7493
+ "aria-label": "Ellipsis of pages"
7494
+ })
7495
+ }, "ellipsis-".concat(index))) : undefined, /*#__PURE__*/jsxRuntime.jsx(ListItem, {
7496
+ children: /*#__PURE__*/jsxRuntime.jsx(Button, {
7497
+ variant: "ghost_icon",
7498
+ onClick: activePage < pages ? event => {
7499
+ onPageChange(event, activePage + 1);
7500
+ } : undefined,
7501
+ "aria-label": "Go to next page",
7502
+ disabled: activePage === pages,
7503
+ children: /*#__PURE__*/jsxRuntime.jsx(Icon$1, {
7504
+ name: "chevron_right"
7505
+ })
7506
+ })
7507
+ }, "next")]
7508
+ })
7509
+ });
7510
+
7511
+ return withItemIndicator ? /*#__PURE__*/jsxRuntime.jsxs(FlexContainer, {
7512
+ children: [/*#__PURE__*/jsxRuntime.jsx(Text, {
7513
+ children: currentItemFirst !== currentItemLast ? "".concat(currentItemFirst, "\n ", ' - ', "\n ").concat(currentItemLast, "\n ", ' of ', "\n ").concat(totalItems, "\n ", ' items') : "".concat(currentItemFirst, " ", ' of ', " ").concat(totalItems, " ", ' items')
7514
+ }), pagination]
7515
+ }) : pagination;
7253
7516
  });
7254
7517
 
7255
7518
  const {
@@ -7325,7 +7588,7 @@ const StyledSelect = styled__default['default'].select.withConfig({
7325
7588
  })(["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), ({
7326
7589
  theme
7327
7590
  }) => 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);
7328
- const NativeSelect = /*#__PURE__*/React$1.forwardRef(function NativeSelect({
7591
+ const NativeSelect = /*#__PURE__*/React.forwardRef(function NativeSelect({
7329
7592
  label,
7330
7593
  children,
7331
7594
  className,
@@ -7359,9 +7622,15 @@ const NativeSelect = /*#__PURE__*/React$1.forwardRef(function NativeSelect({
7359
7622
  meta
7360
7623
  };
7361
7624
  const showLabel = label || meta;
7362
- return /*#__PURE__*/React.createElement(styled.ThemeProvider, {
7363
- theme: token
7364
- }, /*#__PURE__*/React.createElement(Container$1, containerProps, showLabel && /*#__PURE__*/React.createElement(Label$1, labelProps), /*#__PURE__*/React.createElement(StyledSelect, selectProps, children)));
7625
+ return /*#__PURE__*/jsxRuntime.jsx(styled.ThemeProvider, {
7626
+ theme: token,
7627
+ children: /*#__PURE__*/jsxRuntime.jsxs(Container$1, { ...containerProps,
7628
+ children: [showLabel && /*#__PURE__*/jsxRuntime.jsx(Label$1, { ...labelProps
7629
+ }), /*#__PURE__*/jsxRuntime.jsx(StyledSelect, { ...selectProps,
7630
+ children: children
7631
+ })]
7632
+ })
7633
+ });
7365
7634
  });
7366
7635
 
7367
7636
  const {
@@ -7509,7 +7778,7 @@ const PaddedStyledListItem$1 = styled__default['default'](StyledListItem).withCo
7509
7778
  })(["", ""], ({
7510
7779
  theme
7511
7780
  }) => spacingsTemplate(theme.spacings));
7512
- const SingleSelect = /*#__PURE__*/React$1.forwardRef(function SingleSelect({
7781
+ const SingleSelect = /*#__PURE__*/React.forwardRef(function SingleSelect({
7513
7782
  items = [],
7514
7783
  label,
7515
7784
  meta,
@@ -7521,7 +7790,7 @@ const SingleSelect = /*#__PURE__*/React$1.forwardRef(function SingleSelect({
7521
7790
  handleSelectedItemChange,
7522
7791
  ...other
7523
7792
  }, ref) {
7524
- const [inputItems, setInputItems] = React$1.useState(items);
7793
+ const [inputItems, setInputItems] = React.useState(items);
7525
7794
  const isControlled = selectedOption !== undefined ? true : false;
7526
7795
  const {
7527
7796
  density
@@ -7529,7 +7798,7 @@ const SingleSelect = /*#__PURE__*/React$1.forwardRef(function SingleSelect({
7529
7798
  const token = useToken({
7530
7799
  density
7531
7800
  }, select);
7532
- React$1.useEffect(() => {
7801
+ React.useEffect(() => {
7533
7802
  setInputItems(items);
7534
7803
  }, [items]);
7535
7804
  let comboboxProps = {
@@ -7577,51 +7846,61 @@ const SingleSelect = /*#__PURE__*/React$1.forwardRef(function SingleSelect({
7577
7846
  }
7578
7847
  };
7579
7848
 
7580
- return /*#__PURE__*/React.createElement(styled.ThemeProvider, {
7581
- theme: token
7582
- }, /*#__PURE__*/React.createElement(Container, {
7583
- className: className,
7584
- ref: ref
7585
- }, /*#__PURE__*/React.createElement(Label$1, _extends__default['default']({}, getLabelProps(), {
7586
- label: label,
7587
- meta: meta,
7588
- disabled: disabled
7589
- })), /*#__PURE__*/React.createElement(StyledInputWrapper, getComboboxProps(), /*#__PURE__*/React.createElement(PaddedInput, _extends__default['default']({}, getInputProps({
7590
- disabled: disabled
7591
- }), {
7592
- readOnly: readOnly,
7593
- onFocus: openSelect,
7594
- onClick: openSelect
7595
- }, other)), Boolean(inputValue) && /*#__PURE__*/React.createElement(StyledButton, {
7596
- variant: "ghost_icon",
7597
- disabled: disabled || readOnly,
7598
- "aria-label": 'clear options',
7599
- title: "clear",
7600
- onClick: reset,
7601
- style: {
7602
- right: 32
7603
- }
7604
- }, /*#__PURE__*/React.createElement(Icon$1, {
7605
- data: edsIcons.close,
7606
- size: 16
7607
- })), /*#__PURE__*/React.createElement(StyledButton, _extends__default['default']({
7608
- variant: "ghost_icon"
7609
- }, getToggleButtonProps({
7610
- disabled: disabled || readOnly
7611
- }), {
7612
- "aria-label": 'toggle options',
7613
- title: "open"
7614
- }), /*#__PURE__*/React.createElement(Icon$1, {
7615
- data: isOpen ? edsIcons.arrow_drop_up : edsIcons.arrow_drop_down
7616
- }))), /*#__PURE__*/React.createElement(StyledList, getMenuProps(), isOpen && inputItems.map((item, index) => /*#__PURE__*/React.createElement(PaddedStyledListItem$1, _extends__default['default']({
7617
- highlighted: highlightedIndex === index ? 'true' : 'false',
7618
- active: selectedItem === item ? 'true' : 'false',
7619
- key: `${item}`
7620
- }, getItemProps({
7621
- item,
7622
- index,
7623
- disabled: disabled
7624
- })), item)))));
7849
+ return /*#__PURE__*/jsxRuntime.jsx(styled.ThemeProvider, {
7850
+ theme: token,
7851
+ children: /*#__PURE__*/jsxRuntime.jsxs(Container, {
7852
+ className: className,
7853
+ ref: ref,
7854
+ children: [/*#__PURE__*/jsxRuntime.jsx(Label$1, { ...getLabelProps(),
7855
+ label: label,
7856
+ meta: meta,
7857
+ disabled: disabled
7858
+ }), /*#__PURE__*/jsxRuntime.jsxs(StyledInputWrapper, { ...getComboboxProps(),
7859
+ children: [/*#__PURE__*/jsxRuntime.jsx(PaddedInput, { ...getInputProps({
7860
+ disabled: disabled
7861
+ }),
7862
+ readOnly: readOnly,
7863
+ onFocus: openSelect,
7864
+ onClick: openSelect,
7865
+ ...other
7866
+ }), Boolean(inputValue) && /*#__PURE__*/jsxRuntime.jsx(StyledButton, {
7867
+ variant: "ghost_icon",
7868
+ disabled: disabled || readOnly,
7869
+ "aria-label": 'clear options',
7870
+ title: "clear",
7871
+ onClick: reset,
7872
+ style: {
7873
+ right: 32
7874
+ },
7875
+ children: /*#__PURE__*/jsxRuntime.jsx(Icon$1, {
7876
+ data: edsIcons.close,
7877
+ size: 16
7878
+ })
7879
+ }), /*#__PURE__*/jsxRuntime.jsx(StyledButton, {
7880
+ variant: "ghost_icon",
7881
+ ...getToggleButtonProps({
7882
+ disabled: disabled || readOnly
7883
+ }),
7884
+ "aria-label": 'toggle options',
7885
+ title: "open",
7886
+ children: /*#__PURE__*/jsxRuntime.jsx(Icon$1, {
7887
+ data: isOpen ? edsIcons.arrow_drop_up : edsIcons.arrow_drop_down
7888
+ })
7889
+ })]
7890
+ }), /*#__PURE__*/jsxRuntime.jsx(StyledList, { ...getMenuProps(),
7891
+ children: isOpen && inputItems.map((item, index) => /*#__PURE__*/jsxRuntime.jsx(PaddedStyledListItem$1, {
7892
+ highlighted: highlightedIndex === index ? 'true' : 'false',
7893
+ active: selectedItem === item ? 'true' : 'false',
7894
+ ...getItemProps({
7895
+ item,
7896
+ index,
7897
+ disabled: disabled
7898
+ }),
7899
+ children: item
7900
+ }, "".concat(item)))
7901
+ })]
7902
+ })
7903
+ });
7625
7904
  });
7626
7905
 
7627
7906
  const {
@@ -7712,6 +7991,7 @@ const checkbox = {
7712
7991
  }
7713
7992
  };
7714
7993
 
7994
+ /* eslint camelcase: "off" */
7715
7995
  const StyledPath$1 = styled__default['default'].path.attrs(({
7716
7996
  icon
7717
7997
  }) => ({
@@ -7729,13 +8009,15 @@ const Input$3 = styled__default['default'].input.attrs(({
7729
8009
  })).withConfig({
7730
8010
  displayName: "Input",
7731
8011
  componentId: "sc-rqj7qf-1"
7732
- })(["--scale:", ";appearance:none;width:100%;height:100%;margin:0;grid-area:input;transform:scale(var(--scale));cursor:", ";&:focus{outline:none;}&[data-focus-visible-added]:focus + svg{", "}&:not(:checked) ~ svg path[name='checked']{display:none;}&:not(:checked) ~ svg path[name='not-checked']{display:inline;}&:checked ~ svg path[name='not-checked']{display:none;}&:checked ~ svg path[name='checked']{display:inline;}"], ({
8012
+ })(["--scale:", ";appearance:none;width:100%;height:100%;margin:0;grid-area:input;transform:scale(var(--scale));cursor:", ";&:focus{outline:none;}&[data-focus-visible-added]:focus + svg{", "}&:focus-visible + svg{", "}&:not(:checked) ~ svg path[name='checked']{display:none;}&:not(:checked) ~ svg path[name='not-checked']{display:inline;}&:checked ~ svg path[name='not-checked']{display:none;}&:checked ~ svg path[name='checked']{display:inline;}"], ({
7733
8013
  theme,
7734
8014
  iconSize
7735
8015
  }) => parseFloat(theme.clickbound.height) / iconSize, ({
7736
8016
  disabled
7737
8017
  }) => disabled ? 'not-allowed' : 'pointer', ({
7738
8018
  theme
8019
+ }) => outlineTemplate(theme.states.focus.outline), ({
8020
+ theme
7739
8021
  }) => outlineTemplate(theme.states.focus.outline));
7740
8022
  const Svg$1 = styled__default['default'].svg.attrs(({
7741
8023
  height,
@@ -7759,7 +8041,7 @@ const InputWrapper$1 = styled__default['default'].span.withConfig({
7759
8041
  }) => spacingsTemplate(theme.spacings), ({
7760
8042
  disabled
7761
8043
  }) => disabled ? 'transparent' : checkbox.states.hover.background);
7762
- const CheckboxInput = /*#__PURE__*/React$1.forwardRef(function CheckboxInput({
8044
+ const CheckboxInput = /*#__PURE__*/React.forwardRef(function CheckboxInput({
7763
8045
  disabled = false,
7764
8046
  indeterminate,
7765
8047
  ...rest
@@ -7781,32 +8063,38 @@ const CheckboxInput = /*#__PURE__*/React$1.forwardRef(function CheckboxInput({
7781
8063
  ['data-indeterminate']: indeterminate,
7782
8064
  ...rest
7783
8065
  };
7784
- return /*#__PURE__*/React.createElement(styled.ThemeProvider, {
7785
- theme: token
7786
- }, /*#__PURE__*/React.createElement(InputWrapper$1, inputWrapperProps, /*#__PURE__*/React.createElement(Input$3, _extends__default['default']({
7787
- iconSize: iconSize
7788
- }, inputProps)), indeterminate ? /*#__PURE__*/React.createElement(Svg$1, {
7789
- width: iconSize,
7790
- height: iconSize,
7791
- viewBox: `0 0 ${iconSize} ${iconSize}`,
7792
- fill: fill,
7793
- "aria-hidden": true
7794
- }, /*#__PURE__*/React.createElement(StyledPath$1, {
7795
- icon: edsIcons.checkbox_indeterminate,
7796
- name: "indeterminate"
7797
- })) : /*#__PURE__*/React.createElement(Svg$1, {
7798
- width: iconSize,
7799
- height: iconSize,
7800
- viewBox: `0 0 ${iconSize} ${iconSize}`,
7801
- fill: fill,
7802
- "aria-hidden": true
7803
- }, /*#__PURE__*/React.createElement(StyledPath$1, {
7804
- icon: edsIcons.checkbox,
7805
- name: "checked"
7806
- }), /*#__PURE__*/React.createElement(StyledPath$1, {
7807
- icon: edsIcons.checkbox_outline,
7808
- name: "not-checked"
7809
- }))));
8066
+ return /*#__PURE__*/jsxRuntime.jsx(styled.ThemeProvider, {
8067
+ theme: token,
8068
+ children: /*#__PURE__*/jsxRuntime.jsxs(InputWrapper$1, { ...inputWrapperProps,
8069
+ children: [/*#__PURE__*/jsxRuntime.jsx(Input$3, {
8070
+ iconSize: iconSize,
8071
+ ...inputProps
8072
+ }), indeterminate ? /*#__PURE__*/jsxRuntime.jsx(Svg$1, {
8073
+ width: iconSize,
8074
+ height: iconSize,
8075
+ viewBox: "0 0 ".concat(iconSize, " ").concat(iconSize),
8076
+ fill: fill,
8077
+ "aria-hidden": true,
8078
+ children: /*#__PURE__*/jsxRuntime.jsx(StyledPath$1, {
8079
+ icon: edsIcons.checkbox_indeterminate,
8080
+ name: "indeterminate"
8081
+ })
8082
+ }) : /*#__PURE__*/jsxRuntime.jsxs(Svg$1, {
8083
+ width: iconSize,
8084
+ height: iconSize,
8085
+ viewBox: "0 0 ".concat(iconSize, " ").concat(iconSize),
8086
+ fill: fill,
8087
+ "aria-hidden": true,
8088
+ children: [/*#__PURE__*/jsxRuntime.jsx(StyledPath$1, {
8089
+ icon: edsIcons.checkbox,
8090
+ name: "checked"
8091
+ }), /*#__PURE__*/jsxRuntime.jsx(StyledPath$1, {
8092
+ icon: edsIcons.checkbox_outline,
8093
+ name: "not-checked"
8094
+ })]
8095
+ })]
8096
+ })
8097
+ });
7810
8098
  });
7811
8099
 
7812
8100
  const PaddedStyledListItem = styled__default['default'](StyledListItem).withConfig({
@@ -7815,7 +8103,7 @@ const PaddedStyledListItem = styled__default['default'](StyledListItem).withConf
7815
8103
  })(["display:flex;align-items:center;", ""], ({
7816
8104
  theme
7817
8105
  }) => spacingsTemplate(theme.spacings));
7818
- const MultiSelect = /*#__PURE__*/React$1.forwardRef(function MultiSelect({
8106
+ const MultiSelect = /*#__PURE__*/React.forwardRef(function MultiSelect({
7819
8107
  items = [],
7820
8108
  initialSelectedItems = [],
7821
8109
  label,
@@ -7828,7 +8116,7 @@ const MultiSelect = /*#__PURE__*/React$1.forwardRef(function MultiSelect({
7828
8116
  ...other
7829
8117
  }, ref) {
7830
8118
  const isControlled = selectedOptions ? true : false;
7831
- const [inputValue, setInputValue] = React$1.useState('');
8119
+ const [inputValue, setInputValue] = React.useState('');
7832
8120
  const {
7833
8121
  density
7834
8122
  } = useEds();
@@ -7923,7 +8211,7 @@ const MultiSelect = /*#__PURE__*/React$1.forwardRef(function MultiSelect({
7923
8211
  }
7924
8212
  }
7925
8213
  });
7926
- const placeholderText = items.length > 0 ? `${selectedItems.length}/${items.length} selected` : '';
8214
+ const placeholderText = items.length > 0 ? "".concat(selectedItems.length, "/").concat(items.length, " selected") : '';
7927
8215
 
7928
8216
  const openSelect = () => {
7929
8217
  if (!isOpen && !(disabled || readOnly)) {
@@ -7931,59 +8219,72 @@ const MultiSelect = /*#__PURE__*/React$1.forwardRef(function MultiSelect({
7931
8219
  }
7932
8220
  };
7933
8221
 
7934
- return /*#__PURE__*/React.createElement(styled.ThemeProvider, {
7935
- theme: token
7936
- }, /*#__PURE__*/React.createElement(Container, {
7937
- className: className,
7938
- ref: ref
7939
- }, /*#__PURE__*/React.createElement(Label$1, _extends__default['default']({}, getLabelProps(), {
7940
- label: label,
7941
- meta: meta,
7942
- disabled: disabled
7943
- })), /*#__PURE__*/React.createElement(StyledInputWrapper, getComboboxProps(), /*#__PURE__*/React.createElement(PaddedInput, _extends__default['default']({}, getInputProps(getDropdownProps({
7944
- preventKeyAction: isOpen,
7945
- disabled: disabled
7946
- })), {
7947
- placeholder: placeholderText,
7948
- readOnly: readOnly,
7949
- onFocus: openSelect
7950
- }, other)), Boolean(selectedItems.length || inputValue) && /*#__PURE__*/React.createElement(StyledButton, {
7951
- variant: "ghost_icon",
7952
- disabled: disabled || readOnly,
7953
- "aria-label": 'clear options',
7954
- title: "clear",
7955
- onClick: reset,
7956
- style: {
7957
- right: 32
7958
- }
7959
- }, /*#__PURE__*/React.createElement(Icon$1, {
7960
- data: edsIcons.close,
7961
- size: 16
7962
- })), /*#__PURE__*/React.createElement(StyledButton, _extends__default['default']({
7963
- variant: "ghost_icon"
7964
- }, getToggleButtonProps({
7965
- disabled: disabled || readOnly
7966
- }), {
7967
- "aria-label": 'toggle options',
7968
- title: "open"
7969
- }), /*#__PURE__*/React.createElement(Icon$1, {
7970
- data: isOpen ? edsIcons.arrow_drop_up : edsIcons.arrow_drop_down
7971
- }))), /*#__PURE__*/React.createElement(StyledList, getMenuProps(), isOpen && getFilteredItems(items).map((item, index) => /*#__PURE__*/React.createElement(PaddedStyledListItem, _extends__default['default']({
7972
- key: `${item}`,
7973
- highlighted: highlightedIndex === index ? 'true' : 'false'
7974
- }, getItemProps({
7975
- item,
7976
- index,
7977
- disabled: disabled
7978
- })), /*#__PURE__*/React.createElement(CheckboxInput, {
7979
- checked: selectedItems.includes(item),
7980
- value: item,
7981
- onChange: () => {
7982
- return null;
7983
- }
7984
- }), /*#__PURE__*/React.createElement("span", null, item))))));
8222
+ return /*#__PURE__*/jsxRuntime.jsx(styled.ThemeProvider, {
8223
+ theme: token,
8224
+ children: /*#__PURE__*/jsxRuntime.jsxs(Container, {
8225
+ className: className,
8226
+ ref: ref,
8227
+ children: [/*#__PURE__*/jsxRuntime.jsx(Label$1, { ...getLabelProps(),
8228
+ label: label,
8229
+ meta: meta,
8230
+ disabled: disabled
8231
+ }), /*#__PURE__*/jsxRuntime.jsxs(StyledInputWrapper, { ...getComboboxProps(),
8232
+ children: [/*#__PURE__*/jsxRuntime.jsx(PaddedInput, { ...getInputProps(getDropdownProps({
8233
+ preventKeyAction: isOpen,
8234
+ disabled: disabled
8235
+ })),
8236
+ placeholder: placeholderText,
8237
+ readOnly: readOnly,
8238
+ onFocus: openSelect,
8239
+ ...other
8240
+ }), Boolean(selectedItems.length || inputValue) && /*#__PURE__*/jsxRuntime.jsx(StyledButton, {
8241
+ variant: "ghost_icon",
8242
+ disabled: disabled || readOnly,
8243
+ "aria-label": 'clear options',
8244
+ title: "clear",
8245
+ onClick: reset,
8246
+ style: {
8247
+ right: 32
8248
+ },
8249
+ children: /*#__PURE__*/jsxRuntime.jsx(Icon$1, {
8250
+ data: edsIcons.close,
8251
+ size: 16
8252
+ })
8253
+ }), /*#__PURE__*/jsxRuntime.jsx(StyledButton, {
8254
+ variant: "ghost_icon",
8255
+ ...getToggleButtonProps({
8256
+ disabled: disabled || readOnly
8257
+ }),
8258
+ "aria-label": 'toggle options',
8259
+ title: "open",
8260
+ children: /*#__PURE__*/jsxRuntime.jsx(Icon$1, {
8261
+ data: isOpen ? edsIcons.arrow_drop_up : edsIcons.arrow_drop_down
8262
+ })
8263
+ })]
8264
+ }), /*#__PURE__*/jsxRuntime.jsx(StyledList, { ...getMenuProps(),
8265
+ children: isOpen && getFilteredItems(items).map((item, index) => /*#__PURE__*/jsxRuntime.jsxs(PaddedStyledListItem, {
8266
+ highlighted: highlightedIndex === index ? 'true' : 'false',
8267
+ ...getItemProps({
8268
+ item,
8269
+ index,
8270
+ disabled: disabled
8271
+ }),
8272
+ children: [/*#__PURE__*/jsxRuntime.jsx(CheckboxInput, {
8273
+ checked: selectedItems.includes(item),
8274
+ value: item,
8275
+ onChange: () => {
8276
+ return null;
8277
+ }
8278
+ }), /*#__PURE__*/jsxRuntime.jsx("span", {
8279
+ children: item
8280
+ })]
8281
+ }, "".concat(item)))
8282
+ })]
8283
+ })
8284
+ });
7985
8285
  });
7986
8286
 
8287
+ /* eslint camelcase: "off" */
7987
8288
  const StyledLabel$2 = styled__default['default'].label.withConfig({
7988
8289
  displayName: "Checkbox__StyledLabel",
7989
8290
  componentId: "sc-yg6l8h-0"
@@ -7994,25 +8295,28 @@ const LabelText$1 = styled__default['default'].span.withConfig({
7994
8295
  displayName: "Checkbox__LabelText",
7995
8296
  componentId: "sc-yg6l8h-1"
7996
8297
  })(["", ";"], typographyTemplate(checkbox.typography));
7997
- const Checkbox = /*#__PURE__*/React$1.forwardRef(function Checkbox({
8298
+ const Checkbox = /*#__PURE__*/React.forwardRef(function Checkbox({
7998
8299
  label,
7999
8300
  disabled = false,
8000
8301
  indeterminate,
8001
8302
  className,
8002
8303
  ...rest
8003
8304
  }, ref) {
8004
- return label ? /*#__PURE__*/React.createElement(StyledLabel$2, {
8005
- disabled: disabled,
8006
- className: className
8007
- }, /*#__PURE__*/React.createElement(CheckboxInput, _extends__default['default']({}, rest, {
8305
+ return label ? /*#__PURE__*/jsxRuntime.jsxs(StyledLabel$2, {
8008
8306
  disabled: disabled,
8009
- ref: ref,
8010
- indeterminate: indeterminate
8011
- })), /*#__PURE__*/React.createElement(LabelText$1, null, label)) : /*#__PURE__*/React.createElement(CheckboxInput, _extends__default['default']({}, rest, {
8307
+ className: className,
8308
+ children: [/*#__PURE__*/jsxRuntime.jsx(CheckboxInput, { ...rest,
8309
+ disabled: disabled,
8310
+ ref: ref,
8311
+ indeterminate: indeterminate
8312
+ }), /*#__PURE__*/jsxRuntime.jsx(LabelText$1, {
8313
+ children: label
8314
+ })]
8315
+ }) : /*#__PURE__*/jsxRuntime.jsx(CheckboxInput, { ...rest,
8012
8316
  disabled: disabled,
8013
8317
  ref: ref,
8014
8318
  indeterminate: indeterminate
8015
- }));
8319
+ });
8016
8320
  });
8017
8321
  Checkbox.displayName = 'Checkbox';
8018
8322
 
@@ -8104,6 +8408,7 @@ const comfortable$1 = {
8104
8408
  }
8105
8409
  };
8106
8410
 
8411
+ /* eslint camelcase: "off" */
8107
8412
  const Input$2 = styled__default['default'].input.attrs(({
8108
8413
  type = 'radio'
8109
8414
  }) => ({
@@ -8111,13 +8416,15 @@ const Input$2 = styled__default['default'].input.attrs(({
8111
8416
  })).withConfig({
8112
8417
  displayName: "Radio__Input",
8113
8418
  componentId: "sc-we59oz-0"
8114
- })(["--scale:", ";appearance:none;width:100%;height:100%;margin:0;grid-area:input;transform:scale(var(--scale));cursor:", ";&:focus{outline:none;}&[data-focus-visible-added]:focus + svg{", "}&:not(:checked) ~ svg path[name='selected']{display:none;}&:not(:checked) ~ svg path[name='unselected']{display:inline;}&:checked ~ svg path[name='unselected']{display:none;}&:checked ~ svg path[name='selected']{display:inline;}"], ({
8419
+ })(["--scale:", ";appearance:none;width:100%;height:100%;margin:0;grid-area:input;transform:scale(var(--scale));cursor:", ";&:focus{outline:none;}&[data-focus-visible-added]:focus + svg{", "}&:focus-visible + svg{", "}&:not(:checked) ~ svg path[name='selected']{display:none;}&:not(:checked) ~ svg path[name='unselected']{display:inline;}&:checked ~ svg path[name='unselected']{display:none;}&:checked ~ svg path[name='selected']{display:inline;}"], ({
8115
8420
  theme,
8116
8421
  iconSize
8117
8422
  }) => parseFloat(theme.clickbound.height) / iconSize, ({
8118
8423
  disabled
8119
8424
  }) => disabled ? 'not-allowed' : 'pointer', ({
8120
8425
  theme
8426
+ }) => outlineTemplate(theme.states.focus.outline), ({
8427
+ theme
8121
8428
  }) => outlineTemplate(theme.states.focus.outline));
8122
8429
  const StyledLabel$1 = styled__default['default'].label.withConfig({
8123
8430
  displayName: "Radio__StyledLabel",
@@ -8163,7 +8470,7 @@ const InputWrapper = styled__default['default'].span.withConfig({
8163
8470
  }) => disabled ? 'not-allowed' : 'pointer', ({
8164
8471
  disabled
8165
8472
  }) => disabled ? 'transparent' : comfortable$1.states.hover.background);
8166
- const Radio = /*#__PURE__*/React$1.forwardRef(function Radio({
8473
+ const Radio = /*#__PURE__*/React.forwardRef(function Radio({
8167
8474
  label,
8168
8475
  disabled = false,
8169
8476
  className,
@@ -8177,39 +8484,46 @@ const Radio = /*#__PURE__*/React$1.forwardRef(function Radio({
8177
8484
  }, comfortable$1);
8178
8485
  const iconSize = 24;
8179
8486
  const fill = disabled ? comfortable$1.states.disabled.background : comfortable$1.background;
8180
- const renderSVG = React$1.useMemo(() => {
8181
- return /*#__PURE__*/React.createElement(Svg, {
8487
+ const renderSVG = React.useMemo(() => {
8488
+ return /*#__PURE__*/jsxRuntime.jsxs(Svg, {
8182
8489
  width: iconSize,
8183
8490
  height: iconSize,
8184
- viewBox: `0 0 ${iconSize} ${iconSize}`,
8491
+ viewBox: "0 0 ".concat(iconSize, " ").concat(iconSize),
8185
8492
  fill: fill,
8186
- "aria-hidden": true
8187
- }, /*#__PURE__*/React.createElement(StyledPath, {
8188
- icon: edsIcons.radio_button_selected,
8189
- name: "selected"
8190
- }), /*#__PURE__*/React.createElement(StyledPath, {
8191
- icon: edsIcons.radio_button_unselected,
8192
- name: "unselected"
8193
- }));
8493
+ "aria-hidden": true,
8494
+ children: [/*#__PURE__*/jsxRuntime.jsx(StyledPath, {
8495
+ icon: edsIcons.radio_button_selected,
8496
+ name: "selected"
8497
+ }), /*#__PURE__*/jsxRuntime.jsx(StyledPath, {
8498
+ icon: edsIcons.radio_button_unselected,
8499
+ name: "unselected"
8500
+ })]
8501
+ });
8194
8502
  }, [fill]);
8195
- return /*#__PURE__*/React.createElement(styled.ThemeProvider, {
8196
- theme: token
8197
- }, label ? /*#__PURE__*/React.createElement(StyledLabel$1, {
8198
- disabled: disabled,
8199
- className: className
8200
- }, /*#__PURE__*/React.createElement(InputWrapper, {
8201
- disabled: disabled
8202
- }, /*#__PURE__*/React.createElement(Input$2, _extends__default['default']({}, rest, {
8203
- ref: ref,
8204
- disabled: disabled,
8205
- iconSize: iconSize
8206
- })), renderSVG), /*#__PURE__*/React.createElement(LabelText, null, label)) : /*#__PURE__*/React.createElement(InputWrapper, {
8207
- disabled: disabled
8208
- }, /*#__PURE__*/React.createElement(Input$2, _extends__default['default']({}, rest, {
8209
- ref: ref,
8210
- disabled: disabled,
8211
- iconSize: iconSize
8212
- })), renderSVG));
8503
+ return /*#__PURE__*/jsxRuntime.jsx(styled.ThemeProvider, {
8504
+ theme: token,
8505
+ children: label ? /*#__PURE__*/jsxRuntime.jsxs(StyledLabel$1, {
8506
+ disabled: disabled,
8507
+ className: className,
8508
+ children: [/*#__PURE__*/jsxRuntime.jsxs(InputWrapper, {
8509
+ disabled: disabled,
8510
+ children: [/*#__PURE__*/jsxRuntime.jsx(Input$2, { ...rest,
8511
+ ref: ref,
8512
+ disabled: disabled,
8513
+ iconSize: iconSize
8514
+ }), renderSVG]
8515
+ }), /*#__PURE__*/jsxRuntime.jsx(LabelText, {
8516
+ children: label
8517
+ })]
8518
+ }) : /*#__PURE__*/jsxRuntime.jsxs(InputWrapper, {
8519
+ disabled: disabled,
8520
+ children: [/*#__PURE__*/jsxRuntime.jsx(Input$2, { ...rest,
8521
+ ref: ref,
8522
+ disabled: disabled,
8523
+ iconSize: iconSize
8524
+ }), renderSVG]
8525
+ })
8526
+ });
8213
8527
  });
8214
8528
  Radio.displayName = 'Radio';
8215
8529
 
@@ -8237,7 +8551,7 @@ const BaseInput = styled__default['default'].input.attrs(({
8237
8551
  })(({
8238
8552
  disabled,
8239
8553
  theme
8240
- }) => styled.css(["appearance:none;width:100%;height:100%;grid-area:input;margin:0;cursor:", ";&:focus{outline:none;}&[data-focus-visible-added]:focus + span{", "}"], disabled ? 'not-allowed' : 'pointer', outlineTemplate(theme.states.focus.outline)));
8554
+ }) => styled.css(["appearance:none;width:100%;height:100%;grid-area:input;margin:0;cursor:", ";&:focus{outline:none;}&[data-focus-visible-added]:focus + span{", "}&:focus-visible + span{", "}"], disabled ? 'not-allowed' : 'pointer', outlineTemplate(theme.states.focus.outline), outlineTemplate(theme.states.focus.outline)));
8241
8555
  const GridWrapper = styled__default['default'].span.withConfig({
8242
8556
  displayName: "Switchstyles__GridWrapper",
8243
8557
  componentId: "sc-x39lde-2"
@@ -8255,7 +8569,7 @@ const Input$1 = styled__default['default'](BaseInput).withConfig({
8255
8569
  track
8256
8570
  }
8257
8571
  }
8258
- }) => styled.css(["&[data-focus-visible-added]:focus + span{outline-offset:", ";}&:checked + span > span{background-color:", ";}&:checked + span > span:last-child{transform:translate(180%,-50%);background-color:", ";}@media (hover:hover) and (pointer:fine){&:hover + span{background-color:", ";}}"], states.focus.outline.offset, disabled ? states.disabled.background : track.states.active.background, handle.background, disabled ? 'transparent' : states.hover.background));
8572
+ }) => styled.css(["&[data-focus-visible-added]:focus + span{", "}&:focus-visible + span{", "}&:checked + span > span{background-color:", ";}&:checked + span > span:last-child{transform:translate(180%,-50%);background-color:", ";}@media (hover:hover) and (pointer:fine){&:hover + span{background-color:", ";}}"], outlineTemplate(states.focus.outline), outlineTemplate(states.focus.outline), disabled ? states.disabled.background : track.states.active.background, handle.background, disabled ? 'transparent' : states.hover.background));
8259
8573
  const Track$1 = styled__default['default'].span.withConfig({
8260
8574
  displayName: "SwitchSmall__Track",
8261
8575
  componentId: "sc-1a99mis-1"
@@ -8278,16 +8592,20 @@ const Handle$1 = styled__default['default'].span.withConfig({
8278
8592
  }
8279
8593
  }
8280
8594
  }) => 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));
8281
- const SwitchSmall = /*#__PURE__*/React$1.forwardRef(function SwitchSmall({
8595
+ const SwitchSmall = /*#__PURE__*/React.forwardRef(function SwitchSmall({
8282
8596
  disabled,
8283
8597
  ...rest
8284
8598
  }, ref) {
8285
- return /*#__PURE__*/React.createElement(GridWrapper, null, /*#__PURE__*/React.createElement(Input$1, _extends__default['default']({}, rest, {
8286
- ref: ref,
8287
- disabled: disabled
8288
- })), /*#__PURE__*/React.createElement(BaseInputWrapper, null, /*#__PURE__*/React.createElement(Track$1, {
8289
- isDisabled: disabled
8290
- }), /*#__PURE__*/React.createElement(Handle$1, null)));
8599
+ return /*#__PURE__*/jsxRuntime.jsxs(GridWrapper, {
8600
+ children: [/*#__PURE__*/jsxRuntime.jsx(Input$1, { ...rest,
8601
+ ref: ref,
8602
+ disabled: disabled
8603
+ }), /*#__PURE__*/jsxRuntime.jsxs(BaseInputWrapper, {
8604
+ children: [/*#__PURE__*/jsxRuntime.jsx(Track$1, {
8605
+ isDisabled: disabled
8606
+ }), /*#__PURE__*/jsxRuntime.jsx(Handle$1, {})]
8607
+ })]
8608
+ });
8291
8609
  });
8292
8610
  SwitchSmall.displayName = 'SwitchSmall';
8293
8611
 
@@ -8326,18 +8644,22 @@ const Handle = styled__default['default'].span.withConfig({
8326
8644
  }) => 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 && {
8327
8645
  backgroundColor: states.disabled.background
8328
8646
  }, handle.boxShadow, handle.width, handle.height));
8329
- const SwitchDefault = /*#__PURE__*/React$1.forwardRef(function SwitchDefault({
8647
+ const SwitchDefault = /*#__PURE__*/React.forwardRef(function SwitchDefault({
8330
8648
  disabled,
8331
8649
  ...rest
8332
8650
  }, ref) {
8333
- return /*#__PURE__*/React.createElement(GridWrapper, null, /*#__PURE__*/React.createElement(Input, _extends__default['default']({}, rest, {
8334
- ref: ref,
8335
- disabled: disabled
8336
- })), /*#__PURE__*/React.createElement(BaseInputWrapper, null, /*#__PURE__*/React.createElement(Track, {
8337
- isDisabled: disabled
8338
- }), /*#__PURE__*/React.createElement(Handle, {
8339
- isDisabled: disabled
8340
- })));
8651
+ return /*#__PURE__*/jsxRuntime.jsxs(GridWrapper, {
8652
+ children: [/*#__PURE__*/jsxRuntime.jsx(Input, { ...rest,
8653
+ ref: ref,
8654
+ disabled: disabled
8655
+ }), /*#__PURE__*/jsxRuntime.jsxs(BaseInputWrapper, {
8656
+ children: [/*#__PURE__*/jsxRuntime.jsx(Track, {
8657
+ isDisabled: disabled
8658
+ }), /*#__PURE__*/jsxRuntime.jsx(Handle, {
8659
+ isDisabled: disabled
8660
+ })]
8661
+ })]
8662
+ });
8341
8663
  });
8342
8664
  SwitchDefault.displayName = 'SwitchDefault';
8343
8665
 
@@ -8408,8 +8730,8 @@ const comfortable = {
8408
8730
  height: clickbounds.default__base,
8409
8731
  width: clickbounds.default__base,
8410
8732
  offset: {
8411
- top: `${(parseInt(clickbounds.default__base) - parseInt(circle.minHeight)) / 2}px`,
8412
- left: `${(parseInt(clickbounds.default__base) - parseInt(circle.minWidth)) / 2}px`
8733
+ top: "".concat((parseInt(clickbounds.default__base) - parseInt(circle.minHeight)) / 2, "px"),
8734
+ left: "".concat((parseInt(clickbounds.default__base) - parseInt(circle.minWidth)) / 2, "px")
8413
8735
  }
8414
8736
  },
8415
8737
  entities: {
@@ -8458,8 +8780,8 @@ const comfortable = {
8458
8780
  height: clickbounds.compact__standard,
8459
8781
  width: clickbounds.compact__standard,
8460
8782
  offset: {
8461
- top: `${(parseInt(clickbounds.compact__standard) - parseInt(compactIconButton.minHeight)) / 2}px`,
8462
- left: `${(parseInt(clickbounds.compact__standard) - parseInt(compactIconButton.minWidth)) / 2}px`
8783
+ top: "".concat((parseInt(clickbounds.compact__standard) - parseInt(compactIconButton.minHeight)) / 2, "px"),
8784
+ left: "".concat((parseInt(clickbounds.compact__standard) - parseInt(compactIconButton.minWidth)) / 2, "px")
8463
8785
  }
8464
8786
  },
8465
8787
  entities: {
@@ -8518,7 +8840,7 @@ const Label = styled__default['default'].span.withConfig({
8518
8840
  })(({
8519
8841
  theme
8520
8842
  }) => styled.css(["", " margin-left:", ";"], typographyTemplate(theme.typography), theme.entities.label.spacings.left));
8521
- const Switch = /*#__PURE__*/React$1.forwardRef(function Switch({
8843
+ const Switch = /*#__PURE__*/React.forwardRef(function Switch({
8522
8844
  size = 'default',
8523
8845
  disabled,
8524
8846
  label,
@@ -8533,28 +8855,32 @@ const Switch = /*#__PURE__*/React$1.forwardRef(function Switch({
8533
8855
  const token = useToken({
8534
8856
  density: overrideDensity
8535
8857
  }, comfortable);
8536
- return /*#__PURE__*/React.createElement(styled.ThemeProvider, {
8537
- theme: token
8538
- }, label ? /*#__PURE__*/React.createElement(StyledLabel, {
8539
- isDisabled: disabled,
8540
- className: className
8541
- }, size === 'small' ? /*#__PURE__*/React.createElement(SwitchSmall, _extends__default['default']({
8542
- disabled: disabled
8543
- }, rest, {
8544
- ref: ref
8545
- })) : /*#__PURE__*/React.createElement(SwitchDefault, _extends__default['default']({
8546
- disabled: disabled
8547
- }, rest, {
8548
- ref: ref
8549
- })), label && /*#__PURE__*/React.createElement(Label, null, label)) : size === 'small' ? /*#__PURE__*/React.createElement(SwitchSmall, _extends__default['default']({
8550
- disabled: disabled
8551
- }, rest, {
8552
- ref: ref
8553
- })) : /*#__PURE__*/React.createElement(SwitchDefault, _extends__default['default']({
8554
- disabled: disabled
8555
- }, rest, {
8556
- ref: ref
8557
- })));
8858
+ return /*#__PURE__*/jsxRuntime.jsx(styled.ThemeProvider, {
8859
+ theme: token,
8860
+ children: label ? /*#__PURE__*/jsxRuntime.jsxs(StyledLabel, {
8861
+ isDisabled: disabled,
8862
+ className: className,
8863
+ children: [size === 'small' ? /*#__PURE__*/jsxRuntime.jsx(SwitchSmall, {
8864
+ disabled: disabled,
8865
+ ...rest,
8866
+ ref: ref
8867
+ }) : /*#__PURE__*/jsxRuntime.jsx(SwitchDefault, {
8868
+ disabled: disabled,
8869
+ ...rest,
8870
+ ref: ref
8871
+ }), label && /*#__PURE__*/jsxRuntime.jsx(Label, {
8872
+ children: label
8873
+ })]
8874
+ }) : size === 'small' ? /*#__PURE__*/jsxRuntime.jsx(SwitchSmall, {
8875
+ disabled: disabled,
8876
+ ...rest,
8877
+ ref: ref
8878
+ }) : /*#__PURE__*/jsxRuntime.jsx(SwitchDefault, {
8879
+ disabled: disabled,
8880
+ ...rest,
8881
+ ref: ref
8882
+ })
8883
+ });
8558
8884
  });
8559
8885
  Switch.displayName = 'Switch';
8560
8886