@equinor/eds-core-react 0.22.0 → 0.23.0-dev.20221003

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 (67) hide show
  1. package/dist/eds-core-react.cjs.js +109 -102
  2. package/dist/esm/components/Accordion/Accordion.js +1 -1
  3. package/dist/esm/components/Accordion/AccordionHeader.js +1 -1
  4. package/dist/esm/components/Accordion/AccordionItem.js +2 -2
  5. package/dist/esm/components/Autocomplete/Autocomplete.js +7 -7
  6. package/dist/esm/components/Autocomplete/Option.js +1 -1
  7. package/dist/esm/components/Banner/Banner.js +3 -3
  8. package/dist/esm/components/Banner/BannerMessage.js +1 -1
  9. package/dist/esm/components/Breadcrumbs/Breadcrumb.js +2 -2
  10. package/dist/esm/components/Breadcrumbs/Breadcrumbs.js +2 -2
  11. package/dist/esm/components/Button/Button.js +1 -1
  12. package/dist/esm/components/Button/ToggleButton/ToggleButton.js +1 -1
  13. package/dist/esm/components/Button/tokens/button.js +10 -10
  14. package/dist/esm/components/Button/tokens/contained.js +1 -1
  15. package/dist/esm/components/Button/tokens/contained_icon.js +3 -3
  16. package/dist/esm/components/Button/tokens/ghost.js +1 -1
  17. package/dist/esm/components/Button/tokens/icon.js +4 -4
  18. package/dist/esm/components/Button/tokens/outlined.js +2 -2
  19. package/dist/esm/components/Card/Card.js +1 -1
  20. package/dist/esm/components/Card/CardActions.js +1 -1
  21. package/dist/esm/components/Checkbox/Input.js +3 -3
  22. package/dist/esm/components/Dialog/Dialog.js +3 -3
  23. package/dist/esm/components/Dialog/DialogContent.js +1 -1
  24. package/dist/esm/components/Dialog/DialogHeader.js +1 -1
  25. package/dist/esm/components/Icon/Icon.js +7 -7
  26. package/dist/esm/components/Input/Input.js +1 -1
  27. package/dist/esm/components/Menu/Menu.context.js +1 -1
  28. package/dist/esm/components/Menu/Menu.js +2 -2
  29. package/dist/esm/components/Menu/MenuSection.js +1 -1
  30. package/dist/esm/components/Pagination/Pagination.js +12 -7
  31. package/dist/esm/components/Popover/Popover.js +4 -4
  32. package/dist/esm/components/Popover/PopoverHeader.js +1 -1
  33. package/dist/esm/components/Progress/Circular/CircularProgress.js +2 -2
  34. package/dist/esm/components/Progress/Linear/LinearProgress.js +2 -2
  35. package/dist/esm/components/Radio/Radio.js +2 -2
  36. package/dist/esm/components/Search/Search.js +2 -2
  37. package/dist/esm/components/Select/MultiSelect/MultiSelect.js +4 -4
  38. package/dist/esm/components/Select/NativeSelect/NativeSelect.js +2 -2
  39. package/dist/esm/components/Select/SingleSelect/SingleSelect.js +3 -3
  40. package/dist/esm/components/Select/commonStyles.js +1 -1
  41. package/dist/esm/components/SideSheet/SideSheet.js +1 -1
  42. package/dist/esm/components/Slider/Slider.js +4 -4
  43. package/dist/esm/components/Snackbar/Snackbar.js +1 -1
  44. package/dist/esm/components/Switch/Switch.js +1 -1
  45. package/dist/esm/components/Switch/Switch.tokens.js +4 -4
  46. package/dist/esm/components/Table/Cell.js +2 -2
  47. package/dist/esm/components/Table/DataCell/DataCell.js +1 -1
  48. package/dist/esm/components/Table/DataCell/DataCell.tokens.js +5 -5
  49. package/dist/esm/components/Table/HeaderCell/HeaderCell.js +1 -1
  50. package/dist/esm/components/Table/HeaderCell/HeaderCell.tokens.js +5 -5
  51. package/dist/esm/components/Table/index.js +1 -1
  52. package/dist/esm/components/TableOfContents/TableOfContents.js +2 -2
  53. package/dist/esm/components/Tabs/TabList.js +2 -2
  54. package/dist/esm/components/Tabs/TabPanels.js +2 -2
  55. package/dist/esm/components/Tabs/Tabs.js +1 -1
  56. package/dist/esm/components/Tabs/Tabs.tokens.js +1 -1
  57. package/dist/esm/components/TextField/Field.js +5 -5
  58. package/dist/esm/components/TextField/HelperText/HelperText.js +2 -2
  59. package/dist/esm/components/TextField/TextField.context.js +1 -1
  60. package/dist/esm/components/TextField/TextField.js +3 -3
  61. package/dist/esm/components/Textarea/Textarea.js +3 -3
  62. package/dist/esm/components/Tooltip/Tooltip.js +2 -2
  63. package/dist/esm/components/TopBar/TopBar.js +2 -2
  64. package/dist/esm/components/Typography/Typography.js +3 -3
  65. package/dist/esm/index.js +14 -14
  66. package/dist/esm/node_modules/.pnpm/ramda@0.28.0/node_modules/ramda/es/mergeDeepRight.js +3 -1
  67. package/package.json +40 -42
@@ -2,8 +2,8 @@ import { forwardRef, Children, cloneElement } from 'react';
2
2
  import { ThemeProvider } from 'styled-components';
3
3
  import { accordion } from './Accordion.tokens.js';
4
4
  import { useId, useToken } from '@equinor/eds-utils';
5
- import { useEds } from '../EdsProvider/eds.context.js';
6
5
  import { jsx } from 'react/jsx-runtime';
6
+ import { useEds } from '../EdsProvider/eds.context.js';
7
7
 
8
8
  const Accordion = /*#__PURE__*/forwardRef(function Accordion(_ref, ref) {
9
9
  let {
@@ -136,7 +136,7 @@ const AccordionHeader = /*#__PURE__*/forwardRef(function AccordionHeader(_ref5,
136
136
  size: 24,
137
137
  chevronPosition: chevronPosition,
138
138
  color: disabled ? chevronToken.states.disabled.background : chevronToken.background
139
- }, "".concat(id, "-icon"));
139
+ }, `${id}-icon`);
140
140
 
141
141
  const headerChildren = Children.map(children, child => {
142
142
  if (typeof child === 'string') {
@@ -19,8 +19,8 @@ const AccordionItem = /*#__PURE__*/forwardRef(function AccordionItem(_ref, ref)
19
19
  };
20
20
 
21
21
  const Children$1 = Children.map(children, (child, childIndex) => {
22
- const headerId = "".concat(accordionId, "-header-").concat(index + 1);
23
- const panelId = "".concat(accordionId, "-panel-").concat(index + 1);
22
+ const headerId = `${accordionId}-header-${index + 1}`;
23
+ const panelId = `${accordionId}-panel-${index + 1}`;
24
24
  return childIndex === 0 ? /*#__PURE__*/cloneElement(child, {
25
25
  isExpanded: expanded,
26
26
  toggleExpanded,
@@ -3,16 +3,16 @@ import { useMultipleSelection, useCombobox } from 'downshift';
3
3
  import styled, { css, ThemeProvider } from 'styled-components';
4
4
  import { Button } from '../Button/index.js';
5
5
  import { List } from '../List/index.js';
6
- import { useEds } from '../EdsProvider/eds.context.js';
7
- import { Label } from '../Label/Label.js';
8
6
  import { Icon } from '../Icon/index.js';
9
- import { Input } from '../Input/Input.js';
10
7
  import { close, arrow_drop_up, arrow_drop_down } from '@equinor/eds-icons';
11
8
  import { multiSelect, selectTokens } from './Autocomplete.tokens.js';
12
9
  import { bordersTemplate, useToken } from '@equinor/eds-utils';
13
10
  import { AutocompleteOption } from './Option.js';
14
11
  import { useFloating, offset, flip, shift, size, useInteractions, autoUpdate, FloatingPortal } from '@floating-ui/react-dom-interactions';
15
12
  import { jsx, jsxs } from 'react/jsx-runtime';
13
+ import { Input } from '../Input/Input.js';
14
+ import { useEds } from '../EdsProvider/eds.context.js';
15
+ import { Label } from '../Label/Label.js';
16
16
 
17
17
  const Container = styled.div.withConfig({
18
18
  displayName: "Autocomplete__Container",
@@ -332,7 +332,7 @@ function AutocompleteInner(props, ref) {
332
332
  }
333
333
 
334
334
  if (multiple) {
335
- placeholderText = typeof placeholderText !== 'undefined' ? placeholderText : "".concat(selectedItems.length, "/").concat(options.length - disabledItems.length, " selected");
335
+ placeholderText = typeof placeholderText !== 'undefined' ? placeholderText : `${selectedItems.length}/${options.length - disabledItems.length} selected`;
336
336
  comboBoxProps = { ...comboBoxProps,
337
337
  selectedItem: null,
338
338
  stateReducer: (state, actionAndChanges) => {
@@ -429,10 +429,10 @@ function AutocompleteInner(props, ref) {
429
429
  availableHeight,
430
430
  elements
431
431
  } = _ref10;
432
- const anchorWidth = "".concat(rects.reference.width, "px");
432
+ const anchorWidth = `${rects.reference.width}px`;
433
433
  Object.assign(elements.floating.style, {
434
- width: "".concat(autoWidth ? anchorWidth : 'auto'),
435
- maxHeight: "".concat(availableHeight, "px")
434
+ width: `${autoWidth ? anchorWidth : 'auto'}`,
435
+ maxHeight: `${availableHeight}px`
436
436
  });
437
437
  },
438
438
 
@@ -1,9 +1,9 @@
1
1
  import { forwardRef } from 'react';
2
2
  import styled, { css } from 'styled-components';
3
3
  import { List } from '../List/index.js';
4
- import { Checkbox } from '../Checkbox/Checkbox.js';
5
4
  import { typographyTemplate, spacingsTemplate } from '@equinor/eds-utils';
6
5
  import { jsxs, jsx } from 'react/jsx-runtime';
6
+ import { Checkbox } from '../Checkbox/Checkbox.js';
7
7
 
8
8
  const StyledListItem = styled(List.Item).withConfig({
9
9
  displayName: "Option__StyledListItem",
@@ -1,12 +1,12 @@
1
1
  import { forwardRef, Children, isValidElement } from 'react';
2
2
  import styled, { css, ThemeProvider } from 'styled-components';
3
3
  import { spacingsTemplate, useToken } from '@equinor/eds-utils';
4
- import { Paper } from '../Paper/Paper.js';
5
4
  import { enabled } from './Banner.tokens.js';
6
- import { Divider } from '../Divider/Divider.js';
7
5
  import { BannerIcon } from './BannerIcon.js';
8
- import { useEds } from '../EdsProvider/eds.context.js';
9
6
  import { jsx, jsxs } from 'react/jsx-runtime';
7
+ import { Divider } from '../Divider/Divider.js';
8
+ import { useEds } from '../EdsProvider/eds.context.js';
9
+ import { Paper } from '../Paper/Paper.js';
10
10
 
11
11
  const Content = styled.div.withConfig({
12
12
  displayName: "Banner__Content",
@@ -1,7 +1,7 @@
1
1
  import { forwardRef } from 'react';
2
2
  import styled from 'styled-components';
3
- import { Typography } from '../Typography/Typography.js';
4
3
  import { jsx } from 'react/jsx-runtime';
4
+ import { Typography } from '../Typography/Typography.js';
5
5
 
6
6
  const StyledBannerMessage = styled(Typography).withConfig({
7
7
  displayName: "BannerMessage__StyledBannerMessage",
@@ -1,9 +1,9 @@
1
1
  import { forwardRef, useMemo } from 'react';
2
2
  import styled, { css } from 'styled-components';
3
- import { Typography } from '../Typography/Typography.js';
4
- import { Tooltip } from '../Tooltip/Tooltip.js';
5
3
  import { breadcrumbs } from './Breadcrumbs.tokens.js';
6
4
  import { jsx } from 'react/jsx-runtime';
5
+ import { Tooltip } from '../Tooltip/Tooltip.js';
6
+ import { Typography } from '../Typography/Typography.js';
7
7
 
8
8
  const {
9
9
  states,
@@ -1,9 +1,9 @@
1
1
  import { forwardRef, useState, Children, Fragment } from 'react';
2
2
  import styled from 'styled-components';
3
3
  import { breadcrumbs } from './Breadcrumbs.tokens.js';
4
- import { Typography } from '../Typography/Typography.js';
5
4
  import { spacingsTemplate } from '@equinor/eds-utils';
6
5
  import { jsxs, jsx } from 'react/jsx-runtime';
6
+ import { Typography } from '../Typography/Typography.js';
7
7
 
8
8
  const {
9
9
  spacings,
@@ -87,7 +87,7 @@ const Breadcrumbs = /*#__PURE__*/forwardRef(function Breadcrumbs(_ref, ref) {
87
87
  children: "/"
88
88
  })
89
89
  })]
90
- }, "breadcrumb-".concat(index)));
90
+ }, `breadcrumb-${index}`));
91
91
  return /*#__PURE__*/jsx("nav", { ...props,
92
92
  "aria-label": "breadcrumbs",
93
93
  children: /*#__PURE__*/jsx(OrderedList, {
@@ -3,8 +3,8 @@ import styled, { css, ThemeProvider } from 'styled-components';
3
3
  import { token } from './tokens/index.js';
4
4
  import { spacingsTemplate, bordersTemplate, typographyTemplate, outlineTemplate, useToken } from '@equinor/eds-utils';
5
5
  import { InnerFullWidth } from './InnerFullWidth.js';
6
- import { useEds } from '../EdsProvider/eds.context.js';
7
6
  import { jsx } from 'react/jsx-runtime';
7
+ import { useEds } from '../EdsProvider/eds.context.js';
8
8
 
9
9
  const getVariant = (tokenSet, variant) => {
10
10
  switch (variant) {
@@ -1,7 +1,7 @@
1
1
  import { forwardRef, useState, useEffect, Children, isValidElement, cloneElement } from 'react';
2
2
  import { Button } from '../Button.js';
3
- import { ButtonGroup } from '../ButtonGroup/ButtonGroup.js';
4
3
  import { jsx } from 'react/jsx-runtime';
4
+ import { ButtonGroup } from '../ButtonGroup/ButtonGroup.js';
5
5
 
6
6
  const ToggleButton = /*#__PURE__*/forwardRef(function ToggleButton(_ref, ref) {
7
7
  let {
@@ -47,29 +47,29 @@ const {
47
47
  } = tokens;
48
48
  const button = {
49
49
  background: 'transparent',
50
- height: "var(--eds_button__height, ".concat(buttonHeight, ")"),
50
+ height: `var(--eds_button__height, ${buttonHeight})`,
51
51
  typography: { ...buttonTypography,
52
52
  textAlign: 'center',
53
- fontSize: "var(--eds_button__font_size, ".concat(buttonTypography.fontSize, ")")
53
+ fontSize: `var(--eds_button__font_size, ${buttonTypography.fontSize})`
54
54
  },
55
55
  border: {
56
56
  type: 'border',
57
- width: "var(--eds_button__border_width, 1px)",
57
+ width: `var(--eds_button__border_width, 1px)`,
58
58
  color: 'transparent',
59
- radius: "var(--eds_button__radius, ".concat(buttonBorderRadius, ")"),
59
+ radius: `var(--eds_button__radius, ${buttonBorderRadius})`,
60
60
  style: 'solid'
61
61
  },
62
62
  spacings: {
63
63
  top: 'var(--eds_button__padding_y, 0)',
64
64
  bottom: 'var(--eds_button__padding_y, 0)',
65
- left: "var(--eds_button__padding_x, ".concat(medium, ")"),
66
- right: "var(--eds_button__padding_x, ".concat(medium, ")")
65
+ left: `var(--eds_button__padding_x, ${medium})`,
66
+ right: `var(--eds_button__padding_x, ${medium})`
67
67
  },
68
68
  clickbound: {
69
69
  height: clicboundHeight,
70
70
  width: '100%',
71
71
  offset: {
72
- top: "".concat((parseInt(clicboundHeight) - parseInt(buttonHeight)) / 2 + 1, "px"),
72
+ top: `${(parseInt(clicboundHeight) - parseInt(buttonHeight)) / 2 + 1}px`,
73
73
  left: '0'
74
74
  }
75
75
  },
@@ -85,7 +85,7 @@ const button = {
85
85
  type: 'border',
86
86
  width: '1px',
87
87
  color: 'transparent',
88
- radius: "var(--eds_button__radius, ".concat(buttonBorderRadius, ")"),
88
+ radius: `var(--eds_button__radius, ${buttonBorderRadius})`,
89
89
  style: 'solid'
90
90
  }
91
91
  },
@@ -114,7 +114,7 @@ const button = {
114
114
  },
115
115
  modes: {
116
116
  compact: {
117
- height: "var(--eds_button__height_compact, ".concat(compactButtonHeight, ")"),
117
+ height: `var(--eds_button__height_compact, ${compactButtonHeight})`,
118
118
  spacings: {
119
119
  top: 'var(--eds_button__padding_y_compact, 0)',
120
120
  bottom: 'var(--eds_button__padding_y_compact, 0)'
@@ -123,7 +123,7 @@ const button = {
123
123
  height: compactClickboundHeight,
124
124
  width: '100%',
125
125
  offset: {
126
- top: "".concat((parseInt(compactClickboundHeight) - parseInt(compactButtonHeight)) / 2 + 1, "px"),
126
+ top: `${(parseInt(compactClickboundHeight) - parseInt(compactButtonHeight)) / 2 + 1}px`,
127
127
  left: '0'
128
128
  }
129
129
  }
@@ -46,7 +46,7 @@ const primary = mergeDeepRight(button, {
46
46
  style: 'solid',
47
47
  width: '1px',
48
48
  color: primaryColor,
49
- radius: "var(--eds_button__radius, ".concat(buttonBorderRadius, ")")
49
+ radius: `var(--eds_button__radius, ${buttonBorderRadius})`
50
50
  },
51
51
  states: {
52
52
  hover: {
@@ -1,6 +1,6 @@
1
1
  import { tokens } from '@equinor/eds-tokens';
2
- import mergeDeepRight from '../../../node_modules/.pnpm/ramda@0.28.0/node_modules/ramda/es/mergeDeepRight.js';
3
2
  import { primary as primary$1, secondary as secondary$1, danger as danger$1 } from './contained.js';
3
+ import mergeDeepRight from '../../../node_modules/.pnpm/ramda@0.28.0/node_modules/ramda/es/mergeDeepRight.js';
4
4
 
5
5
  const {
6
6
  clickbounds: {
@@ -24,7 +24,7 @@ const contained_icon = {
24
24
  width: clicboundHeight,
25
25
  offset: {
26
26
  top: '0',
27
- left: "".concat((parseInt(clicboundHeight) - parseInt('40px')) / 2, "px")
27
+ left: `${(parseInt(clicboundHeight) - parseInt('40px')) / 2}px`
28
28
  }
29
29
  },
30
30
  states: {
@@ -43,7 +43,7 @@ const contained_icon = {
43
43
  width: compactClickboundHeight,
44
44
  offset: {
45
45
  top: '0',
46
- left: "".concat((parseInt(compactClickboundHeight) - parseInt(shape._modes.compact.icon_button.minWidth)) / 2, "px")
46
+ left: `${(parseInt(compactClickboundHeight) - parseInt(shape._modes.compact.icon_button.minWidth)) / 2}px`
47
47
  }
48
48
  }
49
49
  }
@@ -1,6 +1,6 @@
1
1
  import { tokens } from '@equinor/eds-tokens';
2
- import mergeDeepRight from '../../../node_modules/.pnpm/ramda@0.28.0/node_modules/ramda/es/mergeDeepRight.js';
3
2
  import { button } from './button.js';
3
+ import mergeDeepRight from '../../../node_modules/.pnpm/ramda@0.28.0/node_modules/ramda/es/mergeDeepRight.js';
4
4
 
5
5
  const {
6
6
  colors: {
@@ -1,6 +1,6 @@
1
1
  import { tokens } from '@equinor/eds-tokens';
2
- import mergeDeepRight from '../../../node_modules/.pnpm/ramda@0.28.0/node_modules/ramda/es/mergeDeepRight.js';
3
2
  import { button } from './button.js';
3
+ import mergeDeepRight from '../../../node_modules/.pnpm/ramda@0.28.0/node_modules/ramda/es/mergeDeepRight.js';
4
4
 
5
5
  const {
6
6
  colors: {
@@ -61,7 +61,7 @@ const primary = mergeDeepRight(button, {
61
61
  width: clicboundHeight,
62
62
  offset: {
63
63
  top: '0',
64
- left: "".concat((parseInt(clicboundHeight) - parseInt(shape.icon_button.minWidth)) / 2, "px")
64
+ left: `${(parseInt(clicboundHeight) - parseInt(shape.icon_button.minWidth)) / 2}px`
65
65
  }
66
66
  },
67
67
  states: {
@@ -80,7 +80,7 @@ const primary = mergeDeepRight(button, {
80
80
  },
81
81
  focus: {
82
82
  outline: {
83
- offset: "-".concat(parseInt(focusOutlineWidth), "px")
83
+ offset: `-${parseInt(focusOutlineWidth)}px`
84
84
  }
85
85
  }
86
86
  },
@@ -92,7 +92,7 @@ const primary = mergeDeepRight(button, {
92
92
  width: compactClickboundHeight,
93
93
  offset: {
94
94
  top: '0',
95
- left: "".concat((parseInt(compactClickboundHeight) - parseInt(shape._modes.compact.icon_button.minWidth)) / 2, "px")
95
+ left: `${(parseInt(compactClickboundHeight) - parseInt(shape._modes.compact.icon_button.minWidth)) / 2}px`
96
96
  }
97
97
  }
98
98
  }
@@ -1,6 +1,6 @@
1
1
  import { tokens } from '@equinor/eds-tokens';
2
- import mergeDeepRight from '../../../node_modules/.pnpm/ramda@0.28.0/node_modules/ramda/es/mergeDeepRight.js';
3
2
  import { button } from './button.js';
3
+ import mergeDeepRight from '../../../node_modules/.pnpm/ramda@0.28.0/node_modules/ramda/es/mergeDeepRight.js';
4
4
 
5
5
  const {
6
6
  colors: {
@@ -49,7 +49,7 @@ const primary = mergeDeepRight(button, {
49
49
  style: 'solid',
50
50
  width: '1px',
51
51
  color: primaryColor,
52
- radius: "var(--eds_button__radius, ".concat(buttonBorderRadius, ")")
52
+ radius: `var(--eds_button__radius, ${buttonBorderRadius})`
53
53
  },
54
54
  states: {
55
55
  hover: {
@@ -1,9 +1,9 @@
1
1
  import { forwardRef } from 'react';
2
2
  import styled from 'styled-components';
3
- import { Paper } from '../Paper/Paper.js';
4
3
  import * as Card_tokens from './Card.tokens.js';
5
4
  import { bordersTemplate } from '@equinor/eds-utils';
6
5
  import { jsx } from 'react/jsx-runtime';
6
+ import { Paper } from '../Paper/Paper.js';
7
7
 
8
8
  const {
9
9
  primary
@@ -1,8 +1,8 @@
1
1
  import { forwardRef } from 'react';
2
2
  import styled from 'styled-components';
3
- import { Typography } from '../Typography/Typography.js';
4
3
  import { primary } from './Card.tokens.js';
5
4
  import { jsxs, jsx } from 'react/jsx-runtime';
5
+ import { Typography } from '../Typography/Typography.js';
6
6
 
7
7
  const {
8
8
  spacings
@@ -3,8 +3,8 @@ import styled, { ThemeProvider } from 'styled-components';
3
3
  import { checkbox_indeterminate, checkbox as checkbox$1, checkbox_outline } from '@equinor/eds-icons';
4
4
  import { checkbox } from './Checkbox.tokens.js';
5
5
  import { outlineTemplate, spacingsTemplate, useToken } from '@equinor/eds-utils';
6
- import { useEds } from '../EdsProvider/eds.context.js';
7
6
  import { jsx, jsxs } from 'react/jsx-runtime';
7
+ import { useEds } from '../EdsProvider/eds.context.js';
8
8
 
9
9
  /* eslint camelcase: "off" */
10
10
  const StyledPath = styled.path.attrs(_ref => {
@@ -119,7 +119,7 @@ const CheckboxInput = /*#__PURE__*/forwardRef(function CheckboxInput(_ref10, ref
119
119
  }), indeterminate ? /*#__PURE__*/jsx(Svg, {
120
120
  width: iconSize,
121
121
  height: iconSize,
122
- viewBox: "0 0 ".concat(iconSize, " ").concat(iconSize),
122
+ viewBox: `0 0 ${iconSize} ${iconSize}`,
123
123
  fill: fill,
124
124
  "aria-hidden": true,
125
125
  children: /*#__PURE__*/jsx(StyledPath, {
@@ -129,7 +129,7 @@ const CheckboxInput = /*#__PURE__*/forwardRef(function CheckboxInput(_ref10, ref
129
129
  }) : /*#__PURE__*/jsxs(Svg, {
130
130
  width: iconSize,
131
131
  height: iconSize,
132
- viewBox: "0 0 ".concat(iconSize, " ").concat(iconSize),
132
+ viewBox: `0 0 ${iconSize} ${iconSize}`,
133
133
  fill: fill,
134
134
  "aria-hidden": true,
135
135
  children: [/*#__PURE__*/jsx(StyledPath, {
@@ -1,12 +1,12 @@
1
1
  import { forwardRef, useMemo } from 'react';
2
2
  import styled, { css, ThemeProvider } from 'styled-components';
3
3
  import { typographyTemplate, bordersTemplate, useToken, mergeRefs } from '@equinor/eds-utils';
4
- import { Paper } from '../Paper/Paper.js';
5
- import { Scrim } from '../Scrim/Scrim.js';
6
4
  import { dialog } from './Dialog.tokens.js';
7
- import { useEds } from '../EdsProvider/eds.context.js';
8
5
  import { useFloating, FloatingPortal, FloatingFocusManager } from '@floating-ui/react-dom-interactions';
9
6
  import { jsx } from 'react/jsx-runtime';
7
+ import { Scrim } from '../Scrim/Scrim.js';
8
+ import { Paper } from '../Paper/Paper.js';
9
+ import { useEds } from '../EdsProvider/eds.context.js';
10
10
 
11
11
  const StyledDialog = styled(Paper).attrs({
12
12
  tabIndex: 0,
@@ -1,8 +1,8 @@
1
1
  import { forwardRef } from 'react';
2
2
  import styled, { css } from 'styled-components';
3
- import { Divider } from '../Divider/Divider.js';
4
3
  import { typographyTemplate } from '@equinor/eds-utils';
5
4
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
5
+ import { Divider } from '../Divider/Divider.js';
6
6
 
7
7
  const StyledDialogContent = styled.div.withConfig({
8
8
  displayName: "DialogContent__StyledDialogContent",
@@ -1,7 +1,7 @@
1
1
  import { forwardRef } from 'react';
2
2
  import styled, { css } from 'styled-components';
3
- import { Divider } from '../Divider/Divider.js';
4
3
  import { jsxs, jsx } from 'react/jsx-runtime';
4
+ import { Divider } from '../Divider/Divider.js';
5
5
 
6
6
  const StyledDialogHeader = styled.div.withConfig({
7
7
  displayName: "DialogHeader__StyledDialogHeader",
@@ -7,7 +7,7 @@ const transform = _ref => {
7
7
  let {
8
8
  rotation
9
9
  } = _ref;
10
- return rotation ? "transform: rotate(".concat(rotation, "deg)") : '';
10
+ return rotation ? `transform: rotate(${rotation}deg)` : '';
11
11
  };
12
12
 
13
13
  const StyledSvg = styled.svg.attrs(_ref2 => {
@@ -19,8 +19,8 @@ const StyledSvg = styled.svg.attrs(_ref2 => {
19
19
  return {
20
20
  name: null,
21
21
  xmlns: 'http://www.w3.org/2000/svg',
22
- height: "".concat(height, "px"),
23
- width: "".concat(width, "px"),
22
+ height: `${height}px`,
23
+ width: `${width}px`,
24
24
  fill
25
25
  };
26
26
  }).withConfig({
@@ -36,7 +36,7 @@ const StyledPath = styled.path.attrs(_ref3 => {
36
36
  size: null,
37
37
  fillRule: 'evenodd',
38
38
  clipRule: 'evenodd',
39
- transform: size / height !== 1 ? "scale(".concat(size / height, ")") : null
39
+ transform: size / height !== 1 ? `scale(${size / height})` : null
40
40
  };
41
41
  }).withConfig({
42
42
  displayName: "Icon__StyledPath",
@@ -85,7 +85,7 @@ const Icon = /*#__PURE__*/forwardRef(function Icon(_ref4, ref) {
85
85
  } = findIcon(name, data, size);
86
86
 
87
87
  if (typeof icon === 'undefined') {
88
- throw Error("Icon \"".concat(name, "\" not found. Have you added it using Icon.add() or using data props?"));
88
+ throw Error(`Icon "${name}" not found. Have you added it using Icon.add() or using data props?`);
89
89
  }
90
90
 
91
91
  const height = size ? size : parseInt(icon.width);
@@ -94,7 +94,7 @@ const Icon = /*#__PURE__*/forwardRef(function Icon(_ref4, ref) {
94
94
  height,
95
95
  width,
96
96
  fill: color,
97
- viewBox: "0 0 ".concat(width, " ").concat(height),
97
+ viewBox: `0 0 ${width} ${height}`,
98
98
  rotation,
99
99
  name,
100
100
  'aria-hidden': true
@@ -108,7 +108,7 @@ const Icon = /*#__PURE__*/forwardRef(function Icon(_ref4, ref) {
108
108
  let titleId = '';
109
109
 
110
110
  if (title) {
111
- titleId = "".concat(icon.prefix, "-").concat(icon.name, "-").concat(count);
111
+ titleId = `${icon.prefix}-${icon.name}-${count}`;
112
112
  svgProps = { ...svgProps,
113
113
  title,
114
114
  role: 'img',
@@ -2,8 +2,8 @@ import { forwardRef } from 'react';
2
2
  import styled, { css, ThemeProvider } from 'styled-components';
3
3
  import { inputToken } from './Input.tokens.js';
4
4
  import { outlineTemplate, typographyTemplate, spacingsTemplate, useToken } from '@equinor/eds-utils';
5
- import { useEds } from '../EdsProvider/eds.context.js';
6
5
  import { jsx } from 'react/jsx-runtime';
6
+ import { useEds } from '../EdsProvider/eds.context.js';
7
7
 
8
8
  const StyledInput = styled.input.withConfig({
9
9
  displayName: "Input__StyledInput",
@@ -1,4 +1,4 @@
1
- import { useContext, createContext, useState } from 'react';
1
+ import { useState, useContext, createContext } from 'react';
2
2
  import { jsx } from 'react/jsx-runtime';
3
3
 
4
4
  const initalState = {
@@ -1,13 +1,13 @@
1
1
  import { forwardRef, useLayoutEffect, useMemo, useEffect } from 'react';
2
2
  import styled, { css, ThemeProvider } from 'styled-components';
3
3
  import { MenuProvider, useMenu } from './Menu.context.js';
4
- import { Paper } from '../Paper/Paper.js';
5
4
  import { MenuList } from './MenuList.js';
6
5
  import { bordersTemplate, useToken, mergeRefs, useGlobalKeyPress } from '@equinor/eds-utils';
7
6
  import { menu } from './Menu.tokens.js';
8
- import { useEds } from '../EdsProvider/eds.context.js';
9
7
  import { useFloating, offset, flip, shift, autoUpdate, useInteractions, useDismiss, FloatingPortal } from '@floating-ui/react-dom-interactions';
10
8
  import { jsx, Fragment } from 'react/jsx-runtime';
9
+ import { Paper } from '../Paper/Paper.js';
10
+ import { useEds } from '../EdsProvider/eds.context.js';
11
11
 
12
12
  const {
13
13
  border
@@ -2,9 +2,9 @@ import { memo } from 'react';
2
2
  import styled from 'styled-components';
3
3
  import { menu } from './Menu.tokens.js';
4
4
  import { spacingsTemplate } from '@equinor/eds-utils';
5
+ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
5
6
  import { Divider } from '../Divider/Divider.js';
6
7
  import { Typography } from '../Typography/Typography.js';
7
- import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
8
8
 
9
9
  const Header = styled.div.attrs(() => ({
10
10
  tabIndex: 0
@@ -3,12 +3,12 @@ import styled from 'styled-components';
3
3
  import { useIsMounted } from '@equinor/eds-utils';
4
4
  import { Button } from '../Button/index.js';
5
5
  import { Icon } from '../Icon/index.js';
6
- import { Typography } from '../Typography/Typography.js';
7
6
  import { PaginationItem } from './PaginationItem.js';
8
7
  import { pagination } from './Pagination.tokens.js';
9
8
  import { chevron_left, chevron_right, more_horizontal } from '@equinor/eds-icons';
10
9
  import { PaginationControl } from './paginationControl.js';
11
10
  import { jsx, jsxs } from 'react/jsx-runtime';
11
+ import { Typography } from '../Typography/Typography.js';
12
12
 
13
13
  const icons = {
14
14
  chevron_left,
@@ -47,7 +47,7 @@ const Text = styled(Typography).withConfig({
47
47
  })(["white-space:nowrap;"]);
48
48
 
49
49
  function getAriaLabel(page, selected) {
50
- return "".concat(selected === page ? 'Current page, ' : 'Go to ', "page ").concat(page);
50
+ return `${selected === page ? 'Current page, ' : 'Go to '}page ${page}`;
51
51
  }
52
52
 
53
53
  const Pagination = /*#__PURE__*/forwardRef(function Pagination(_ref2, ref) {
@@ -99,7 +99,7 @@ const Pagination = /*#__PURE__*/forwardRef(function Pagination(_ref2, ref) {
99
99
  ...props,
100
100
  children: /*#__PURE__*/jsxs(OrderedList, {
101
101
  style: {
102
- gridTemplateColumns: "repeat(".concat(columns, ", 48px)")
102
+ gridTemplateColumns: `repeat(${columns}, 48px)`
103
103
  },
104
104
  children: [/*#__PURE__*/jsx(ListItem, {
105
105
  children: /*#__PURE__*/jsx(Button, {
@@ -117,7 +117,7 @@ const Pagination = /*#__PURE__*/forwardRef(function Pagination(_ref2, ref) {
117
117
  /*#__PURE__*/
118
118
  // eslint-disable-next-line react/no-array-index-key
119
119
  jsx(ListItem, {
120
- children: /*#__PURE__*/jsx(PaginationItem, { ...page,
120
+ children: /*#__PURE__*/jsx(PaginationItem, {
121
121
  "aria-label": getAriaLabel(page, activePage),
122
122
  "aria-current": activePage,
123
123
  page: page,
@@ -126,13 +126,13 @@ const Pagination = /*#__PURE__*/forwardRef(function Pagination(_ref2, ref) {
126
126
  onPageChange(event, page);
127
127
  }
128
128
  })
129
- }, "list-item ".concat(index)) : /*#__PURE__*/jsx(ListItem // eslint-disable-next-line react/no-array-index-key
129
+ }, `list-item ${index}`) : /*#__PURE__*/jsx(ListItem // eslint-disable-next-line react/no-array-index-key
130
130
  , {
131
131
  children: /*#__PURE__*/jsx(StyledIcon, {
132
132
  name: "more_horizontal",
133
133
  "aria-label": "Ellipsis of pages"
134
134
  })
135
- }, "ellipsis-".concat(index))) : undefined, /*#__PURE__*/jsx(ListItem, {
135
+ }, `ellipsis-${index}`)) : undefined, /*#__PURE__*/jsx(ListItem, {
136
136
  children: /*#__PURE__*/jsx(Button, {
137
137
  variant: "ghost_icon",
138
138
  onClick: activePage < pages ? event => {
@@ -150,7 +150,12 @@ const Pagination = /*#__PURE__*/forwardRef(function Pagination(_ref2, ref) {
150
150
 
151
151
  return withItemIndicator ? /*#__PURE__*/jsxs(FlexContainer, {
152
152
  children: [/*#__PURE__*/jsx(Text, {
153
- children: currentItemFirst !== currentItemLast ? "".concat(currentItemFirst, "\n ", ' - ', "\n ").concat(currentItemLast, "\n ", ' of ', "\n ").concat(totalItems, "\n ", ' items') : "".concat(currentItemFirst, " ", ' of ', " ").concat(totalItems, " ", ' items')
153
+ children: currentItemFirst !== currentItemLast ? `${currentItemFirst}
154
+ ${' - '}
155
+ ${currentItemLast}
156
+ ${' of '}
157
+ ${totalItems}
158
+ ${' items'}` : `${currentItemFirst} ${' of '} ${totalItems} ${' items'}`
154
159
  }), pagination]
155
160
  }) : pagination;
156
161
  });
@@ -1,11 +1,11 @@
1
1
  import { forwardRef, useRef, useLayoutEffect, useMemo, useEffect } from 'react';
2
2
  import styled, { css, ThemeProvider } from 'styled-components';
3
- import { Paper } from '../Paper/Paper.js';
4
3
  import { typographyTemplate, bordersTemplate, mergeRefs, useToken } from '@equinor/eds-utils';
5
4
  import { popover } from './Popover.tokens.js';
6
- import { useEds } from '../EdsProvider/eds.context.js';
7
5
  import { useFloating, offset, flip, shift, arrow, autoUpdate, useInteractions, useDismiss } from '@floating-ui/react-dom-interactions';
8
6
  import { jsx, jsxs } from 'react/jsx-runtime';
7
+ import { Paper } from '../Paper/Paper.js';
8
+ import { useEds } from '../EdsProvider/eds.context.js';
9
9
 
10
10
  const PopoverPaper = styled(Paper).withConfig({
11
11
  displayName: "Popover__PopoverPaper",
@@ -123,8 +123,8 @@ const Popover = /*#__PURE__*/forwardRef(function Popover(_ref5, ref) {
123
123
 
124
124
  if (arrowRef.current) {
125
125
  Object.assign(arrowRef.current.style, {
126
- left: arrowX != null ? "".concat(arrowX, "px") : '',
127
- top: arrowY != null ? "".concat(arrowY, "px") : '',
126
+ left: arrowX != null ? `${arrowX}px` : '',
127
+ top: arrowY != null ? `${arrowY}px` : '',
128
128
  right: '',
129
129
  bottom: '',
130
130
  [staticSide]: '-6px',
@@ -1,7 +1,7 @@
1
1
  import { forwardRef } from 'react';
2
2
  import styled, { css } from 'styled-components';
3
- import { Divider } from '../Divider/Divider.js';
4
3
  import { jsxs, jsx } from 'react/jsx-runtime';
4
+ import { Divider } from '../Divider/Divider.js';
5
5
 
6
6
  const StyledPopoverHeader = styled.div.withConfig({
7
7
  displayName: "PopoverHeader__StyledPopoverHeader",