@norges-domstoler/dds-components 9.2.0-beta.0 → 9.2.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 (216) hide show
  1. package/README.md +2 -1
  2. package/dist/assets/svg/bullets/jordskifterett_bullet1.svg.js +2 -2
  3. package/dist/cjs/components/Breadcrumbs/Breadcrumb.tokens.d.ts +2 -8
  4. package/dist/cjs/components/Button/Button.stories.d.ts +4 -4
  5. package/dist/cjs/components/Button/Button.styles.d.ts +1 -0
  6. package/dist/cjs/components/Button/Button.tokens.d.ts +294 -165
  7. package/dist/cjs/components/Card/Card.tokens.d.ts +17 -16
  8. package/dist/cjs/components/Card/CardAccordion/CardAccordion.tokens.d.ts +28 -0
  9. package/dist/cjs/components/Checkbox/Checkbox.stories.d.ts +2 -2
  10. package/dist/cjs/components/Checkbox/CheckboxGroup.d.ts +1 -3
  11. package/dist/cjs/components/Chip/Chip.tokens.d.ts +8 -6
  12. package/dist/cjs/components/DescriptionList/DescriptionList.tokens.d.ts +6 -36
  13. package/dist/cjs/components/Divider/Divider.tokens.d.ts +11 -6
  14. package/dist/cjs/components/Drawer/Drawer.tokens.d.ts +3 -11
  15. package/dist/cjs/components/GlobalMessage/GlobalMessage.tokens.d.ts +24 -22
  16. package/dist/cjs/components/Grid/Grid.d.ts +8 -7
  17. package/dist/cjs/components/Grid/Grid.tokens.d.ts +5 -5
  18. package/dist/cjs/components/InternalHeader/InternalHeader.styles.d.ts +3 -2
  19. package/dist/cjs/components/InternalHeader/InternalHeader.tokens.d.ts +4 -9
  20. package/dist/cjs/components/List/List.d.ts +1 -1
  21. package/dist/cjs/components/List/List.tokens.d.ts +21 -9
  22. package/dist/cjs/components/LocalMessage/LocalMessage.tokens.d.ts +49 -53
  23. package/dist/cjs/components/Modal/Modal.tokens.d.ts +5 -6
  24. package/dist/cjs/components/OverflowMenu/OverflowMenu.d.ts +4 -3
  25. package/dist/cjs/components/OverflowMenu/OverflowMenu.stories.d.ts +4 -3
  26. package/dist/cjs/components/OverflowMenu/OverflowMenu.tokens.d.ts +2 -8
  27. package/dist/cjs/components/OverflowMenu/OverflowMenu.types.d.ts +8 -6
  28. package/dist/cjs/components/Pagination/Pagination.tokens.d.ts +7 -8
  29. package/dist/cjs/components/Popover/Popover.tokens.d.ts +0 -1
  30. package/dist/cjs/components/ProgressTracker/ProgressTracker.tokens.d.ts +9 -6
  31. package/dist/cjs/components/RadioButton/RadioButton.stories.d.ts +4 -4
  32. package/dist/cjs/components/RadioButton/RadioButtonGroup.d.ts +2 -4
  33. package/dist/cjs/components/RadioButton/RadioButtonGroup.stories.d.ts +1 -1
  34. package/dist/cjs/components/Search/Search.tokens.d.ts +5 -24
  35. package/dist/cjs/components/Select/Select.tokens.d.ts +14 -127
  36. package/dist/cjs/components/SkipToContent/SkipToContent.d.ts +2 -2
  37. package/dist/cjs/components/SkipToContent/SkipToContent.stories.d.ts +1 -1
  38. package/dist/cjs/components/SkipToContent/SkipToContent.tokens.d.ts +5 -10
  39. package/dist/cjs/components/SplitButton/SplitButton.d.ts +11 -0
  40. package/dist/cjs/components/SplitButton/SplitButton.stories.d.ts +9 -0
  41. package/dist/cjs/components/SplitButton/index.d.ts +1 -0
  42. package/dist/cjs/components/Table/Table.tokens.d.ts +0 -19
  43. package/dist/cjs/components/Tabs/Tabs.tokens.d.ts +21 -22
  44. package/dist/cjs/components/Tag/Tag.d.ts +1 -1
  45. package/dist/cjs/components/Tag/Tag.tokens.d.ts +19 -14
  46. package/dist/cjs/components/TextInput/TextInput.tokens.d.ts +0 -3
  47. package/dist/cjs/components/ToggleBar/ToggleBar.tokens.d.ts +5 -32
  48. package/dist/cjs/components/ToggleButton/ToggleButton.stories.d.ts +2 -2
  49. package/dist/cjs/components/ToggleButton/ToggleButton.tokens.d.ts +23 -13
  50. package/dist/cjs/components/Tooltip/Tooltip.stories.d.ts +2 -2
  51. package/dist/cjs/components/Tooltip/Tooltip.styles.d.ts +4 -1
  52. package/dist/cjs/components/Tooltip/Tooltip.tokens.d.ts +1 -2
  53. package/dist/cjs/components/Typography/Typography.utils.d.ts +195 -1
  54. package/dist/cjs/helpers/Input/Input.tokens.d.ts +2 -68
  55. package/dist/cjs/helpers/Input/Input.types.d.ts +4 -0
  56. package/dist/cjs/helpers/SelectionControl/SelectionControl.styles.d.ts +5 -0
  57. package/dist/cjs/helpers/SelectionControl/SelectionControl.tokens.d.ts +11 -0
  58. package/dist/cjs/helpers/TextOverflowEllipsis/TextOverflowEllipsis.d.ts +2 -0
  59. package/dist/cjs/helpers/TextOverflowEllipsis/index.d.ts +1 -0
  60. package/dist/cjs/index.d.ts +1 -0
  61. package/dist/cjs/index.js +1475 -1823
  62. package/dist/cjs/utils/color.d.ts +1 -1
  63. package/dist/components/Breadcrumbs/Breadcrumb.tokens.d.ts +2 -8
  64. package/dist/components/Breadcrumbs/Breadcrumb.tokens.js +3 -4
  65. package/dist/components/Breadcrumbs/Breadcrumbs.js +3 -2
  66. package/dist/components/Button/Button.js +7 -4
  67. package/dist/components/Button/Button.stories.d.ts +4 -4
  68. package/dist/components/Button/Button.styles.d.ts +1 -0
  69. package/dist/components/Button/Button.styles.js +49 -24
  70. package/dist/components/Button/Button.tokens.d.ts +294 -165
  71. package/dist/components/Button/Button.tokens.js +232 -349
  72. package/dist/components/Card/Card.js +6 -5
  73. package/dist/components/Card/Card.tokens.d.ts +17 -16
  74. package/dist/components/Card/Card.tokens.js +26 -54
  75. package/dist/components/Card/CardAccordion/CardAccordion.tokens.d.ts +28 -0
  76. package/dist/components/Card/CardAccordion/CardAccordion.tokens.js +37 -0
  77. package/dist/components/Card/CardAccordion/CardAccordionBody.js +4 -3
  78. package/dist/components/Card/CardAccordion/CardAccordionHeader.js +9 -6
  79. package/dist/components/Checkbox/Checkbox.stories.d.ts +2 -2
  80. package/dist/components/Checkbox/CheckboxGroup.d.ts +1 -3
  81. package/dist/components/Checkbox/CheckboxGroup.js +3 -16
  82. package/dist/components/Chip/Chip.js +9 -9
  83. package/dist/components/Chip/Chip.tokens.d.ts +8 -6
  84. package/dist/components/Chip/Chip.tokens.js +8 -25
  85. package/dist/components/Chip/ChipGroup.js +1 -1
  86. package/dist/components/DescriptionList/DescriptionList.js +3 -2
  87. package/dist/components/DescriptionList/DescriptionList.tokens.d.ts +6 -36
  88. package/dist/components/DescriptionList/DescriptionList.tokens.js +7 -18
  89. package/dist/components/DescriptionList/DescriptionListDesc.js +3 -2
  90. package/dist/components/Divider/Divider.js +6 -6
  91. package/dist/components/Divider/Divider.tokens.d.ts +11 -6
  92. package/dist/components/Divider/Divider.tokens.js +16 -16
  93. package/dist/components/Drawer/Drawer.js +11 -4
  94. package/dist/components/Drawer/Drawer.tokens.d.ts +3 -11
  95. package/dist/components/Drawer/Drawer.tokens.js +10 -26
  96. package/dist/components/GlobalMessage/GlobalMessage.js +13 -10
  97. package/dist/components/GlobalMessage/GlobalMessage.tokens.d.ts +24 -22
  98. package/dist/components/GlobalMessage/GlobalMessage.tokens.js +45 -64
  99. package/dist/components/Grid/Grid.d.ts +8 -7
  100. package/dist/components/Grid/Grid.js +7 -5
  101. package/dist/components/Grid/Grid.tokens.d.ts +5 -5
  102. package/dist/components/Grid/Grid.tokens.js +5 -5
  103. package/dist/components/InternalHeader/InternalHeader.styles.d.ts +3 -2
  104. package/dist/components/InternalHeader/InternalHeader.tokens.d.ts +4 -9
  105. package/dist/components/InternalHeader/InternalHeader.tokens.js +6 -6
  106. package/dist/components/InternalHeader/NavigationItem.js +3 -2
  107. package/dist/components/List/List.d.ts +1 -1
  108. package/dist/components/List/List.js +8 -7
  109. package/dist/components/List/List.tokens.d.ts +21 -9
  110. package/dist/components/List/List.tokens.js +26 -20
  111. package/dist/components/List/ListItem.js +2 -2
  112. package/dist/components/LocalMessage/LocalMessage.js +19 -15
  113. package/dist/components/LocalMessage/LocalMessage.tokens.d.ts +49 -53
  114. package/dist/components/LocalMessage/LocalMessage.tokens.js +94 -127
  115. package/dist/components/Modal/Modal.js +9 -5
  116. package/dist/components/Modal/Modal.tokens.d.ts +5 -6
  117. package/dist/components/Modal/Modal.tokens.js +11 -31
  118. package/dist/components/Modal/ModalActions.js +1 -1
  119. package/dist/components/OverflowMenu/OverflowMenu.d.ts +4 -3
  120. package/dist/components/OverflowMenu/OverflowMenu.js +12 -3
  121. package/dist/components/OverflowMenu/OverflowMenu.stories.d.ts +4 -3
  122. package/dist/components/OverflowMenu/OverflowMenu.tokens.d.ts +2 -8
  123. package/dist/components/OverflowMenu/OverflowMenu.tokens.js +5 -5
  124. package/dist/components/OverflowMenu/OverflowMenu.types.d.ts +8 -6
  125. package/dist/components/OverflowMenu/OverflowMenuGroup.js +1 -0
  126. package/dist/components/OverflowMenu/OverflowMenuItem.js +3 -2
  127. package/dist/components/Pagination/Pagination.js +13 -8
  128. package/dist/components/Pagination/Pagination.tokens.d.ts +7 -8
  129. package/dist/components/Pagination/Pagination.tokens.js +17 -16
  130. package/dist/components/Popover/Popover.tokens.d.ts +0 -1
  131. package/dist/components/Popover/Popover.tokens.js +0 -1
  132. package/dist/components/ProgressTracker/ProgressTracker.tokens.d.ts +9 -6
  133. package/dist/components/ProgressTracker/ProgressTracker.tokens.js +11 -9
  134. package/dist/components/ProgressTracker/ProgressTrackerItem.js +7 -6
  135. package/dist/components/RadioButton/RadioButton.stories.d.ts +4 -4
  136. package/dist/components/RadioButton/RadioButtonGroup.d.ts +2 -4
  137. package/dist/components/RadioButton/RadioButtonGroup.js +3 -15
  138. package/dist/components/RadioButton/RadioButtonGroup.stories.d.ts +1 -1
  139. package/dist/components/Search/Search.js +3 -2
  140. package/dist/components/Search/Search.tokens.d.ts +5 -24
  141. package/dist/components/Search/Search.tokens.js +6 -5
  142. package/dist/components/Select/Select.js +5 -4
  143. package/dist/components/Select/Select.styles.js +13 -14
  144. package/dist/components/Select/Select.tokens.d.ts +14 -127
  145. package/dist/components/Select/Select.tokens.js +28 -36
  146. package/dist/components/SkipToContent/SkipToContent.d.ts +2 -2
  147. package/dist/components/SkipToContent/SkipToContent.js +7 -4
  148. package/dist/components/SkipToContent/SkipToContent.stories.d.ts +1 -1
  149. package/dist/components/SkipToContent/SkipToContent.tokens.d.ts +5 -10
  150. package/dist/components/SkipToContent/SkipToContent.tokens.js +14 -37
  151. package/dist/components/Spinner/Spinner.js +1 -2
  152. package/dist/components/SplitButton/SplitButton.d.ts +11 -0
  153. package/dist/components/SplitButton/SplitButton.js +62 -0
  154. package/dist/components/SplitButton/SplitButton.stories.d.ts +9 -0
  155. package/dist/components/SplitButton/index.d.ts +1 -0
  156. package/dist/components/Table/Row.js +2 -1
  157. package/dist/components/Table/Table.tokens.d.ts +0 -19
  158. package/dist/components/Table/Table.tokens.js +1 -8
  159. package/dist/components/Tabs/Tab.js +8 -5
  160. package/dist/components/Tabs/TabPanel.js +4 -3
  161. package/dist/components/Tabs/Tabs.tokens.d.ts +21 -22
  162. package/dist/components/Tabs/Tabs.tokens.js +31 -79
  163. package/dist/components/Tag/Tag.d.ts +1 -1
  164. package/dist/components/Tag/Tag.js +8 -21
  165. package/dist/components/Tag/Tag.tokens.d.ts +19 -14
  166. package/dist/components/Tag/Tag.tokens.js +14 -41
  167. package/dist/components/TextArea/TextArea.js +3 -2
  168. package/dist/components/TextInput/TextInput.tokens.d.ts +0 -3
  169. package/dist/components/TextInput/TextInput.tokens.js +0 -3
  170. package/dist/components/ToggleBar/ToggleBar.tokens.d.ts +5 -32
  171. package/dist/components/ToggleBar/ToggleBar.tokens.js +7 -5
  172. package/dist/components/ToggleBar/ToggleRadio.styles.js +3 -2
  173. package/dist/components/ToggleButton/ToggleButton.js +14 -8
  174. package/dist/components/ToggleButton/ToggleButton.stories.d.ts +2 -2
  175. package/dist/components/ToggleButton/ToggleButton.tokens.d.ts +23 -13
  176. package/dist/components/ToggleButton/ToggleButton.tokens.js +26 -49
  177. package/dist/components/ToggleButton/ToggleButtonGroup.js +2 -2
  178. package/dist/components/Tooltip/Tooltip.js +6 -2
  179. package/dist/components/Tooltip/Tooltip.stories.d.ts +2 -2
  180. package/dist/components/Tooltip/Tooltip.styles.d.ts +4 -1
  181. package/dist/components/Tooltip/Tooltip.styles.js +15 -4
  182. package/dist/components/Tooltip/Tooltip.tokens.d.ts +1 -2
  183. package/dist/components/Tooltip/Tooltip.tokens.js +14 -24
  184. package/dist/components/Typography/Typography.utils.d.ts +195 -1
  185. package/dist/components/Typography/Typography.utils.js +7 -1
  186. package/dist/helpers/Input/Input.styles.js +3 -2
  187. package/dist/helpers/Input/Input.tokens.d.ts +2 -68
  188. package/dist/helpers/Input/Input.tokens.js +10 -46
  189. package/dist/helpers/Input/Input.types.d.ts +4 -0
  190. package/dist/helpers/SelectionControl/SelectionControl.styles.d.ts +5 -0
  191. package/dist/helpers/SelectionControl/SelectionControl.styles.js +15 -2
  192. package/dist/helpers/SelectionControl/SelectionControl.tokens.d.ts +11 -0
  193. package/dist/helpers/SelectionControl/SelectionControl.tokens.js +14 -1
  194. package/dist/helpers/TextOverflowEllipsis/TextOverflowEllipsis.d.ts +2 -0
  195. package/dist/helpers/TextOverflowEllipsis/TextOverflowEllipsis.js +12 -0
  196. package/dist/helpers/TextOverflowEllipsis/index.d.ts +1 -0
  197. package/dist/index.d.ts +1 -0
  198. package/dist/index.js +1 -0
  199. package/dist/utils/color.d.ts +1 -1
  200. package/package.json +1 -1
  201. package/dist/cjs/components/Card/CardAccordion/CardAccordionBody.tokens.d.ts +0 -4
  202. package/dist/cjs/components/Card/CardAccordion/CardAccordionHeader.tokens.d.ts +0 -17
  203. package/dist/cjs/components/List/ListItem.tokens.d.ts +0 -5
  204. package/dist/cjs/components/RadioButton/RadioButtonGroup.tokens.d.ts +0 -19
  205. package/dist/cjs/components/Spinner/Spinner.tokens.d.ts +0 -6
  206. package/dist/components/Card/CardAccordion/CardAccordionBody.tokens.d.ts +0 -4
  207. package/dist/components/Card/CardAccordion/CardAccordionBody.tokens.js +0 -12
  208. package/dist/components/Card/CardAccordion/CardAccordionHeader.tokens.d.ts +0 -17
  209. package/dist/components/Card/CardAccordion/CardAccordionHeader.tokens.js +0 -38
  210. package/dist/components/Checkbox/CheckboxGroup.tokens.js +0 -20
  211. package/dist/components/List/ListItem.tokens.d.ts +0 -5
  212. package/dist/components/List/ListItem.tokens.js +0 -12
  213. package/dist/components/RadioButton/RadioButtonGroup.tokens.d.ts +0 -19
  214. package/dist/components/RadioButton/RadioButtonGroup.tokens.js +0 -32
  215. package/dist/components/Spinner/Spinner.tokens.d.ts +0 -6
  216. package/dist/components/Spinner/Spinner.tokens.js +0 -13
@@ -2,14 +2,15 @@ import { __rest } from 'tslib';
2
2
  import { jsxs, jsx } from 'react/jsx-runtime';
3
3
  import { forwardRef } from 'react';
4
4
  import styled from 'styled-components';
5
- import { descriptionListTokens } from './DescriptionList.tokens.js';
5
+ import { descriptionListTokens, descTypographyType } from './DescriptionList.tokens.js';
6
6
  import { Icon } from '../Icon/Icon.js';
7
7
  import { getBaseHTMLProps } from '../../types/BaseComponentProps.js';
8
+ import { getFontStyling } from '../Typography/Typography.utils.js';
8
9
 
9
10
  var DListDesc = styled.dd.withConfig({
10
11
  displayName: "DescriptionListDesc__DListDesc",
11
12
  componentId: "sc-1djcf0s-0"
12
- })(["margin-inline-start:0;align-items:center;display:flex;color:", ";", ";gap:", ";"], descriptionListTokens.desc.base.color, descriptionListTokens.desc.base.font, descriptionListTokens.desc.base.gap);
13
+ })(["margin-inline-start:0;align-items:center;display:flex;color:", ";", " gap:", ";"], descriptionListTokens.desc.base.color, getFontStyling(descTypographyType), descriptionListTokens.desc.base.gap);
13
14
  var DescriptionListDesc = /*#__PURE__*/forwardRef(function (props, ref) {
14
15
  var children = props.children,
15
16
  icon = props.icon,
@@ -3,14 +3,14 @@ import { jsx } from 'react/jsx-runtime';
3
3
  import { forwardRef } from 'react';
4
4
  import styled, { css } from 'styled-components';
5
5
  import { getBaseHTMLProps } from '../../types/BaseComponentProps.js';
6
- import { dividerTokens, dividerColors } from './Divider.tokens.js';
6
+ import { dividerTokens } from './Divider.tokens.js';
7
7
 
8
- var DividerLine = styled.hr.withConfig({
9
- displayName: "Divider__DividerLine",
8
+ var StyledDivider = styled.hr.withConfig({
9
+ displayName: "Divider__StyledDivider",
10
10
  componentId: "sc-ggdopz-0"
11
- })(["", " ", ""], dividerTokens.base, function (_ref) {
11
+ })(["border:0;background-color:transparent;border-top:", ";margin-top:", ";margin-bottom:", ";", ""], dividerTokens.borderTop, dividerTokens.marginTop, dividerTokens.marginBottom, function (_ref) {
12
12
  var color = _ref.color;
13
- return color && css(["border-color:", ";"], dividerColors[color]);
13
+ return color && css(["border-color:", ";"], dividerTokens.color[color].borderColor);
14
14
  });
15
15
  var Divider = /*#__PURE__*/forwardRef(function (props, ref) {
16
16
  var _props$color = props.color,
@@ -23,7 +23,7 @@ var Divider = /*#__PURE__*/forwardRef(function (props, ref) {
23
23
  var lineProps = Object.assign(Object.assign({}, getBaseHTMLProps(id, className, htmlProps, rest)), {
24
24
  color: color
25
25
  });
26
- return jsx(DividerLine, Object.assign({
26
+ return jsx(StyledDivider, Object.assign({
27
27
  ref: ref
28
28
  }, lineProps));
29
29
  });
@@ -1,8 +1,13 @@
1
- import { CSSObject } from 'styled-components';
2
- export declare const dividerColors: {
3
- primary: string;
4
- primaryLighter: string;
5
- };
6
1
  export declare const dividerTokens: {
7
- base: CSSObject;
2
+ borderTop: string;
3
+ marginTop: string;
4
+ marginBottom: string;
5
+ color: {
6
+ primary: {
7
+ borderColor: string;
8
+ };
9
+ primaryLighter: {
10
+ borderColor: string;
11
+ };
12
+ };
8
13
  };
@@ -1,20 +1,20 @@
1
1
  import { ddsBaseTokens } from '@norges-domstoler/dds-design-tokens';
2
2
 
3
- var Border = ddsBaseTokens.border,
4
- Spacing = ddsBaseTokens.spacing;
5
- var dividerColors = {
6
- primary: Border.BordersDdsBorderStyleDarkStroke,
7
- primaryLighter: Border.BordersDdsBorderStyleLightStroke
8
- };
9
- var base = {
10
- border: 0,
11
- backgroundColor: 'transparent',
12
- borderTop: "".concat(Border.BordersDdsBorderStyleLightStrokeWeight, " solid"),
13
- marginTop: Spacing.SizesDdsSpacingLocalX1,
14
- marginBottom: Spacing.SizesDdsSpacingLocalX1
15
- };
16
- var dividerTokens = {
17
- base: base
3
+ var border = ddsBaseTokens.border,
4
+ spacing = ddsBaseTokens.spacing;
5
+ var divider = {
6
+ borderTop: "".concat(border.BordersDdsBorderStyleLightStrokeWeight, " solid"),
7
+ marginTop: spacing.SizesDdsSpacingLocalX1,
8
+ marginBottom: spacing.SizesDdsSpacingLocalX1,
9
+ color: {
10
+ primary: {
11
+ borderColor: border.BordersDdsBorderStyleDarkStroke
12
+ },
13
+ primaryLighter: {
14
+ borderColor: border.BordersDdsBorderStyleLightStroke
15
+ }
16
+ }
18
17
  };
18
+ var dividerTokens = Object.assign({}, divider);
19
19
 
20
- export { dividerColors, dividerTokens };
20
+ export { dividerTokens };
@@ -35,12 +35,19 @@ import '../ScrollableContainer/Scrollbar.js';
35
35
  import { ScrollableContainer } from '../ScrollableContainer/ScrollableContainer.js';
36
36
  import '../ScrollableContainer/ScrollableContainer.tokens.js';
37
37
 
38
+ var container = drawerTokens.container,
39
+ contentContainer = drawerTokens.contentContainer;
40
+
41
+ var getMaxWidth = function getMaxWidth(size) {
42
+ if (size === 'large') return '800px';else return '400px';
43
+ };
44
+
38
45
  var Container = styled(Paper).withConfig({
39
46
  displayName: "Drawer__Container",
40
47
  componentId: "sc-i9luw3-0"
41
- })(["position:fixed;top:0;height:100%;display:flex;flex-direction:column-reverse;justify-content:flex-end;min-width:300px;", " ", " z-index:50;", " @media (prefers-reduced-motion:no-preference){transition:transform 0.5s;}", " &:focus-visible,&.focus-visible{", "}"], function (_ref) {
48
+ })(["position:fixed;top:0;height:100%;display:flex;flex-direction:column-reverse;justify-content:flex-end;min-width:300px;z-index:50;padding:", ";", " ", " ", " @media (prefers-reduced-motion:no-preference){transition:transform 0.5s;}&:focus-visible,&.focus-visible{", "}"], container.padding, function (_ref) {
42
49
  var size = _ref.size;
43
- return css(["", ""], drawerTokens.container.size[size].base);
50
+ return css(["max-width:", ";"], getMaxWidth(size));
44
51
  }, function (_ref2) {
45
52
  var widthProps = _ref2.widthProps;
46
53
  return widthProps && css(["", ""], widthProps);
@@ -48,11 +55,11 @@ var Container = styled(Paper).withConfig({
48
55
  var placement = _ref3.placement,
49
56
  isOpen = _ref3.isOpen;
50
57
  return placement === 'left' ? css(["left:0;transform:", ";"], isOpen ? 'translate(0px)' : 'translateX(-100%)') : placement === 'right' ? css(["right:0;transform:", ";"], isOpen ? 'translate(0px)' : 'translateX(100%)') : '';
51
- }, drawerTokens.container.base, focusVisible);
58
+ }, focusVisible);
52
59
  var ContentContainer = styled.div.withConfig({
53
60
  displayName: "Drawer__ContentContainer",
54
61
  componentId: "sc-i9luw3-1"
55
- })(["display:flex;flex-direction:column;", ""], drawerTokens.contentContainer.base);
62
+ })(["display:flex;flex-direction:column;gap:", ";padding:", ";"], contentContainer.gap, contentContainer.padding);
56
63
  var HeaderContainer = styled.div.withConfig({
57
64
  displayName: "Drawer__HeaderContainer",
58
65
  componentId: "sc-i9luw3-2"
@@ -1,17 +1,9 @@
1
- import { CSSObject } from 'styled-components';
2
1
  export declare const drawerTokens: {
3
2
  container: {
4
- base: CSSObject;
5
- size: {
6
- large: {
7
- base: CSSObject;
8
- };
9
- small: {
10
- base: CSSObject;
11
- };
12
- };
3
+ padding: string;
13
4
  };
14
5
  contentContainer: {
15
- base: CSSObject;
6
+ gap: string;
7
+ padding: string;
16
8
  };
17
9
  };
@@ -1,34 +1,18 @@
1
1
  import { ddsBaseTokens } from '@norges-domstoler/dds-design-tokens';
2
2
 
3
- var Spacing = ddsBaseTokens.spacing;
4
- var containerBase = {
5
- padding: "".concat(Spacing.SizesDdsSpacingLocalX1NumberPx - Spacing.SizesDdsSpacingLocalX025NumberPx, "px ").concat(Spacing.SizesDdsSpacingLocalX1NumberPx - Spacing.SizesDdsSpacingLocalX025NumberPx, "px ").concat(Spacing.SizesDdsSpacingLocalX1NumberPx - Spacing.SizesDdsSpacingLocalX025NumberPx, "px ").concat(Spacing.SizesDdsSpacingLocalX15NumberPx - Spacing.SizesDdsSpacingLocalX025NumberPx, "px")
3
+ var spacing = ddsBaseTokens.spacing;
4
+ var contentContainerPaddingNumberPx = spacing.SizesDdsSpacingLocalX025NumberPx;
5
+ var contentContainerPadding = "".concat(contentContainerPaddingNumberPx, "px");
6
+ var container = {
7
+ padding: "".concat(spacing.SizesDdsSpacingLocalX1NumberPx - contentContainerPaddingNumberPx, "px ").concat(spacing.SizesDdsSpacingLocalX1NumberPx - contentContainerPaddingNumberPx, "px ").concat(spacing.SizesDdsSpacingLocalX1NumberPx - contentContainerPaddingNumberPx, "px ").concat(spacing.SizesDdsSpacingLocalX15NumberPx - contentContainerPaddingNumberPx, "px")
6
8
  };
7
- var contentContainerBase = {
8
- gap: Spacing.SizesDdsSpacingLocalX1,
9
- padding: Spacing.SizesDdsSpacingLocalX025
10
- };
11
- var containerLarge = {
12
- maxWidth: '800px'
13
- };
14
- var containerSmall = {
15
- maxWidth: '400px'
9
+ var contentContainer = {
10
+ gap: spacing.SizesDdsSpacingLocalX1,
11
+ padding: contentContainerPadding
16
12
  };
17
13
  var drawerTokens = {
18
- container: {
19
- base: containerBase,
20
- size: {
21
- large: {
22
- base: containerLarge
23
- },
24
- small: {
25
- base: containerSmall
26
- }
27
- }
28
- },
29
- contentContainer: {
30
- base: contentContainerBase
31
- }
14
+ container: container,
15
+ contentContainer: contentContainer
32
16
  };
33
17
 
34
18
  export { drawerTokens };
@@ -4,7 +4,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
4
4
  import styled, { css } from 'styled-components';
5
5
  import { Button } from '../Button/Button.js';
6
6
  import { forwardRef, useState } from 'react';
7
- import { globalMessageTokens } from './GlobalMessage.tokens.js';
7
+ import { globalMessageTokens, typographyType, purposeVariants } from './GlobalMessage.tokens.js';
8
8
  import { Icon } from '../Icon/Icon.js';
9
9
  import { Typography } from '../Typography/Typography/Typography.js';
10
10
  import '../../helpers/Backdrop/Backdrop.js';
@@ -19,18 +19,22 @@ import { getBaseHTMLProps } from '../../types/BaseComponentProps.js';
19
19
  import '../Typography/Link/Link.js';
20
20
  import '../../icons/utils/StyledSvg.js';
21
21
  import { CloseIcon } from '../../icons/tsx/close.js';
22
+ import { getFontStyling } from '../Typography/Typography.utils.js';
22
23
 
24
+ var container = globalMessageTokens.container,
25
+ contentContainer = globalMessageTokens.contentContainer,
26
+ icon = globalMessageTokens.icon;
23
27
  var Container = styled.div.withConfig({
24
28
  displayName: "GlobalMessage__Container",
25
29
  componentId: "sc-bf2l65-0"
26
- })(["display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;", ""], function (_ref) {
30
+ })(["display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;width:100%;padding:", ";border-bottom:", ";", " ", ""], container.padding, container.borderBottom, getFontStyling(typographyType, true), function (_ref) {
27
31
  var purpose = _ref.purpose;
28
- return purpose && css(["", " ", ""], globalMessageTokens.container.base, globalMessageTokens.container[purpose].base);
32
+ return purpose && css(["border-color:", ";background-color:", ";"], container[purpose].borderColor, container[purpose].backgroundColor);
29
33
  });
30
34
  var MessageIconWrapper = styled(Icon).withConfig({
31
35
  displayName: "GlobalMessage__MessageIconWrapper",
32
36
  componentId: "sc-bf2l65-1"
33
- })(["margin-right:", ";"], globalMessageTokens.icon.marginRight);
37
+ })(["margin-right:", ";"], icon.marginRight);
34
38
  var ControlsContainer = styled.div.withConfig({
35
39
  displayName: "GlobalMessage__ControlsContainer",
36
40
  componentId: "sc-bf2l65-2"
@@ -38,9 +42,9 @@ var ControlsContainer = styled.div.withConfig({
38
42
  var ContentContainer = styled.div.withConfig({
39
43
  displayName: "GlobalMessage__ContentContainer",
40
44
  componentId: "sc-bf2l65-3"
41
- })(["display:flex;align-items:center;", " ", ""], globalMessageTokens.contentContainer.base, function (_ref2) {
45
+ })(["display:flex;align-items:center;padding-top:", ";padding-bottom:", ";padding-right:", ";"], contentContainer.paddingTop, contentContainer.paddingBottom, function (_ref2) {
42
46
  var closable = _ref2.closable;
43
- return closable && css(["", ""], globalMessageTokens.contentContainer.withClosable.base);
47
+ return closable ? contentContainer.withClosable.paddingRight : contentContainer.paddingRight;
44
48
  });
45
49
  var GlobalMessage = /*#__PURE__*/forwardRef(function (props, ref) {
46
50
  var message = props.message,
@@ -59,7 +63,6 @@ var GlobalMessage = /*#__PURE__*/forwardRef(function (props, ref) {
59
63
  isClosed = _useState2[0],
60
64
  setClosed = _useState2[1];
61
65
 
62
- var buttonPurpose = globalMessageTokens.button[purpose].purpose;
63
66
  var containerProps = Object.assign(Object.assign({}, getBaseHTMLProps(id, className, htmlProps, rest)), {
64
67
  ref: ref,
65
68
  purpose: purpose
@@ -69,8 +72,8 @@ var GlobalMessage = /*#__PURE__*/forwardRef(function (props, ref) {
69
72
  closable: closable
70
73
  }, {
71
74
  children: [jsx(MessageIconWrapper, {
72
- icon: globalMessageTokens.icon[purpose].icon,
73
- color: globalMessageTokens.icon[purpose].color
75
+ icon: purposeVariants[purpose].icon,
76
+ color: icon[purpose].color
74
77
  }), children !== null && children !== void 0 ? children : jsx(Typography, Object.assign({
75
78
  as: "span"
76
79
  }, {
@@ -79,7 +82,7 @@ var GlobalMessage = /*#__PURE__*/forwardRef(function (props, ref) {
79
82
  })), jsx(ControlsContainer, {
80
83
  children: closable && jsx(Button, {
81
84
  icon: CloseIcon,
82
- purpose: buttonPurpose,
85
+ purpose: purposeVariants[purpose].closeButtonPurpose,
83
86
  appearance: "borderless",
84
87
  onClick: function onClick() {
85
88
  setClosed(true);
@@ -1,48 +1,50 @@
1
- import { CSSObject } from 'styled-components';
2
- import { ErrorIcon, InfoIcon, WarningIcon } from '../../icons/tsx';
1
+ import { SvgIcon } from '../../icons/utils';
2
+ import { ButtonPurpose } from '../Button';
3
+ import { StaticTypographyType } from '../Typography';
4
+ import { GlobalMessagePurpose } from './GlobalMessage';
5
+ export declare const typographyType: StaticTypographyType;
6
+ export declare const purposeVariants: {
7
+ [k in GlobalMessagePurpose]: {
8
+ icon: SvgIcon;
9
+ closeButtonPurpose: ButtonPurpose;
10
+ };
11
+ };
3
12
  export declare const globalMessageTokens: {
4
13
  container: {
5
- base: CSSObject;
14
+ borderBottom: string;
15
+ padding: string;
6
16
  info: {
7
- base: CSSObject;
17
+ borderColor: string;
18
+ backgroundColor: string;
8
19
  };
9
20
  danger: {
10
- base: CSSObject;
21
+ borderColor: string;
22
+ backgroundColor: string;
11
23
  };
12
24
  warning: {
13
- base: CSSObject;
25
+ borderColor: string;
26
+ backgroundColor: string;
14
27
  };
15
28
  };
16
29
  contentContainer: {
17
- base: CSSObject;
30
+ paddingRight: string;
31
+ paddingTop: string;
32
+ paddingBottom: string;
33
+ gap: string;
18
34
  withClosable: {
19
- base: CSSObject;
35
+ paddingRight: string;
20
36
  };
21
37
  };
22
38
  icon: {
23
39
  marginRight: string;
24
40
  info: {
25
- icon: typeof InfoIcon;
26
41
  color: string;
27
42
  };
28
43
  danger: {
29
- icon: typeof ErrorIcon;
30
44
  color: string;
31
45
  };
32
46
  warning: {
33
- icon: typeof WarningIcon;
34
47
  color: string;
35
48
  };
36
49
  };
37
- button: {
38
- info: {
39
- purpose: string;
40
- };
41
- danger: {
42
- purpose: string;
43
- };
44
- warning: {
45
- purpose: string;
46
- };
47
- };
48
50
  };
@@ -6,82 +6,63 @@ import { ErrorIcon } from '../../icons/tsx/error.js';
6
6
  import { InfoIcon } from '../../icons/tsx/info.js';
7
7
  import { WarningIcon } from '../../icons/tsx/warning.js';
8
8
 
9
- var Colors = ddsBaseTokens.colors,
10
- Spacing = ddsBaseTokens.spacing,
11
- FontPackages = ddsBaseTokens.fontPackages;
12
- var containerBase = Object.assign(Object.assign({
9
+ var colors = ddsBaseTokens.colors,
10
+ spacing = ddsBaseTokens.spacing;
11
+ var typographyType = 'bodySans02';
12
+ var container = {
13
13
  borderBottom: '2px solid',
14
- padding: "0 ".concat(Spacing.SizesDdsSpacingLocalX1),
15
- width: '100%'
16
- }, FontPackages.body_sans_02.base), {
17
- color: Colors.DdsColorNeutralsGray8
18
- });
19
- var contentContainerBase = {
20
- paddingRight: Spacing.SizesDdsSpacingLocalX15,
21
- paddingTop: Spacing.SizesDdsSpacingLocalX075,
22
- paddingBottom: Spacing.SizesDdsSpacingLocalX075,
23
- gap: Spacing.SizesDdsSpacingLocalX075
24
- };
25
- var contentContainerWithClosableBase = {
26
- paddingRight: Spacing.SizesDdsSpacingLocalX075
27
- };
28
- var containerInfoBase = {
29
- borderColor: Colors.DdsColorInfoLighter,
30
- backgroundColor: Colors.DdsColorInfoLightest
31
- };
32
- var containerDangerBase = {
33
- borderColor: Colors.DdsColorDangerLighter,
34
- backgroundColor: Colors.DdsColorDangerLightest
14
+ padding: "0 ".concat(spacing.SizesDdsSpacingLocalX1),
15
+ info: {
16
+ borderColor: colors.DdsColorInfoLighter,
17
+ backgroundColor: colors.DdsColorInfoLightest
18
+ },
19
+ danger: {
20
+ borderColor: colors.DdsColorDangerLighter,
21
+ backgroundColor: colors.DdsColorDangerLightest
22
+ },
23
+ warning: {
24
+ borderColor: colors.DdsColorWarningLighter,
25
+ backgroundColor: colors.DdsColorWarningLightest
26
+ }
35
27
  };
36
- var containerWarningBase = {
37
- borderColor: Colors.DdsColorWarningLighter,
38
- backgroundColor: Colors.DdsColorWarningLightest
28
+ var contentContainer = {
29
+ paddingRight: spacing.SizesDdsSpacingLocalX15,
30
+ paddingTop: spacing.SizesDdsSpacingLocalX075,
31
+ paddingBottom: spacing.SizesDdsSpacingLocalX075,
32
+ gap: spacing.SizesDdsSpacingLocalX075,
33
+ withClosable: {
34
+ paddingRight: spacing.SizesDdsSpacingLocalX075
35
+ }
39
36
  };
40
- var globalMessageTokens = {
41
- container: {
42
- base: containerBase,
43
- info: {
44
- base: containerInfoBase
45
- },
46
- danger: {
47
- base: containerDangerBase
48
- },
49
- warning: {
50
- base: containerWarningBase
51
- }
37
+ var purposeVariants = {
38
+ info: {
39
+ icon: InfoIcon,
40
+ closeButtonPurpose: 'secondary'
52
41
  },
53
- contentContainer: {
54
- base: contentContainerBase,
55
- withClosable: {
56
- base: contentContainerWithClosableBase
57
- }
42
+ danger: {
43
+ icon: ErrorIcon,
44
+ closeButtonPurpose: 'danger'
58
45
  },
46
+ warning: {
47
+ icon: WarningIcon,
48
+ closeButtonPurpose: 'secondary'
49
+ }
50
+ };
51
+ var globalMessageTokens = {
52
+ container: container,
53
+ contentContainer: contentContainer,
59
54
  icon: {
60
- marginRight: "".concat(Spacing.SizesDdsSpacingLocalX075),
61
- info: {
62
- icon: InfoIcon,
63
- color: Colors.DdsColorInfoDarkest
64
- },
65
- danger: {
66
- icon: ErrorIcon,
67
- color: Colors.DdsColorDangerDarkest
68
- },
69
- warning: {
70
- icon: WarningIcon,
71
- color: Colors.DdsColorWarningDarkest
72
- }
73
- },
74
- button: {
55
+ marginRight: "".concat(spacing.SizesDdsSpacingLocalX075),
75
56
  info: {
76
- purpose: 'secondary'
57
+ color: colors.DdsColorInfoDarkest
77
58
  },
78
59
  danger: {
79
- purpose: 'danger'
60
+ color: colors.DdsColorDangerDarkest
80
61
  },
81
62
  warning: {
82
- purpose: 'secondary'
63
+ color: colors.DdsColorWarningDarkest
83
64
  }
84
65
  }
85
66
  };
86
67
 
87
- export { globalMessageTokens };
68
+ export { globalMessageTokens, purposeVariants, typographyType };
@@ -1,16 +1,17 @@
1
1
  import { BaseComponentPropsWithChildren } from '../../types';
2
- import { Property } from 'csstype';
2
+ import { StandardProperties } from 'csstype';
3
+ import { ScreenSizeLiteral } from './Grid.utils';
3
4
  import { HTMLAttributes } from 'react';
4
- declare type MaxWidthGrid = {
5
- xs?: Property.MaxWidth;
6
- sm?: Property.MaxWidth;
7
- md?: Property.MaxWidth;
8
- lg?: Property.MaxWidth;
9
- xl?: Property.MaxWidth;
5
+ declare type BreakpointBasedProps<T extends keyof StandardProperties> = {
6
+ [k in ScreenSizeLiteral]?: StandardProperties[T];
10
7
  };
8
+ declare type RowGapGrid = BreakpointBasedProps<'rowGap'>;
9
+ declare type MaxWidthGrid = BreakpointBasedProps<'maxWidth'>;
11
10
  declare type BaseGridProps = {
12
11
  /**Maksimal bredde. Gjøres per brekkepunkt. */
13
12
  maxWidth?: MaxWidthGrid;
13
+ /** CSS `row-gap`. Gjøres per brekkepunkt. */
14
+ rowGap?: RowGapGrid;
14
15
  } & Pick<HTMLAttributes<HTMLElement>, 'style'>;
15
16
  declare type GridDivProps = BaseComponentPropsWithChildren<HTMLDivElement, {
16
17
  /**HTML tag som returneres. */
@@ -10,14 +10,15 @@ import { gridTokens } from './Grid.tokens.js';
10
10
  import { GridContext } from './Grid.context.js';
11
11
  import { getLiteralScreenSize } from './Grid.utils.js';
12
12
 
13
- var getHooksGridStyling = function getHooksGridStyling(screenSize, maxWidth) {
13
+ var getHooksGridStyling = function getHooksGridStyling(screenSize, maxWidth, rowGap) {
14
14
  var tokens = gridTokens[screenSize].grid;
15
15
  return {
16
16
  gridTemplateColumns: "repeat(".concat(tokens.columns, ", minmax(0, 1fr))"),
17
- gap: tokens.gap,
17
+ columnGap: tokens.columnGap,
18
18
  marginLeft: tokens.marginLeft,
19
19
  marginRight: tokens.marginRight,
20
- maxWidth: maxWidth && maxWidth[getLiteralScreenSize(screenSize)]
20
+ rowGap: rowGap && rowGap[getLiteralScreenSize(screenSize)] ? rowGap[getLiteralScreenSize(screenSize)] : tokens.columnGap,
21
+ maxWidth: maxWidth && maxWidth[getLiteralScreenSize(screenSize)] && maxWidth[getLiteralScreenSize(screenSize)]
21
22
  };
22
23
  };
23
24
 
@@ -29,8 +30,9 @@ var StyledGrid = styled.div.withConfig({
29
30
  return css(["max-width:", ";"], maxWidth);
30
31
  }, function (_ref2) {
31
32
  var screenSize = _ref2.screenSize,
32
- maxWidth = _ref2.maxWidth;
33
- return getHooksGridStyling(screenSize, maxWidth);
33
+ maxWidth = _ref2.maxWidth,
34
+ rowGap = _ref2.rowGap;
35
+ return getHooksGridStyling(screenSize, maxWidth, rowGap);
34
36
  });
35
37
  var Grid = function Grid(props) {
36
38
  var id = props.id,
@@ -2,7 +2,7 @@ export declare const gridTokens: {
2
2
  0: {
3
3
  grid: {
4
4
  columns: number;
5
- gap: string;
5
+ columnGap: string;
6
6
  marginLeft: string;
7
7
  marginRight: string;
8
8
  };
@@ -18,7 +18,7 @@ export declare const gridTokens: {
18
18
  1: {
19
19
  grid: {
20
20
  columns: number;
21
- gap: string;
21
+ columnGap: string;
22
22
  marginLeft: string;
23
23
  marginRight: string;
24
24
  };
@@ -34,7 +34,7 @@ export declare const gridTokens: {
34
34
  2: {
35
35
  grid: {
36
36
  columns: number;
37
- gap: string;
37
+ columnGap: string;
38
38
  marginLeft: string;
39
39
  marginRight: string;
40
40
  };
@@ -50,7 +50,7 @@ export declare const gridTokens: {
50
50
  3: {
51
51
  grid: {
52
52
  columns: number;
53
- gap: string;
53
+ columnGap: string;
54
54
  marginLeft: string;
55
55
  marginRight: string;
56
56
  };
@@ -66,7 +66,7 @@ export declare const gridTokens: {
66
66
  4: {
67
67
  grid: {
68
68
  columns: number;
69
- gap: string;
69
+ columnGap: string;
70
70
  marginLeft: string;
71
71
  marginRight: string;
72
72
  };
@@ -13,7 +13,7 @@ var halfWayColumn = (_halfWayColumn = {}, _defineProperty(_halfWayColumn, Screen
13
13
  var gridTokens = (_gridTokens = {}, _defineProperty(_gridTokens, ScreenSize.XSmall, {
14
14
  grid: {
15
15
  columns: grid.DdsGridXs0599Count,
16
- gap: grid.DdsGridXs0599GutterSize,
16
+ columnGap: grid.DdsGridXs0599GutterSize,
17
17
  marginLeft: spacing.SizesDdsSpacingLayoutX1,
18
18
  marginRight: spacing.SizesDdsSpacingLayoutX1
19
19
  },
@@ -28,7 +28,7 @@ var gridTokens = (_gridTokens = {}, _defineProperty(_gridTokens, ScreenSize.XSma
28
28
  }), _defineProperty(_gridTokens, ScreenSize.Small, {
29
29
  grid: {
30
30
  columns: grid.DdsGridSm600959Count,
31
- gap: grid.DdsGridSm600959GutterSize,
31
+ columnGap: grid.DdsGridSm600959GutterSize,
32
32
  marginLeft: spacing.SizesDdsSpacingLayoutX2,
33
33
  marginRight: spacing.SizesDdsSpacingLayoutX2
34
34
  },
@@ -43,7 +43,7 @@ var gridTokens = (_gridTokens = {}, _defineProperty(_gridTokens, ScreenSize.XSma
43
43
  }), _defineProperty(_gridTokens, ScreenSize.Medium, {
44
44
  grid: {
45
45
  columns: grid.DdsGridMd9601279Count,
46
- gap: grid.DdsGridMd9601279GutterSize,
46
+ columnGap: grid.DdsGridMd9601279GutterSize,
47
47
  marginLeft: spacing.SizesDdsSpacingLayoutX4,
48
48
  marginRight: spacing.SizesDdsSpacingLayoutX4
49
49
  },
@@ -58,7 +58,7 @@ var gridTokens = (_gridTokens = {}, _defineProperty(_gridTokens, ScreenSize.XSma
58
58
  }), _defineProperty(_gridTokens, ScreenSize.Large, {
59
59
  grid: {
60
60
  columns: grid.DdsGridLg12801919Count,
61
- gap: grid.DdsGridLg12801919GutterSize,
61
+ columnGap: grid.DdsGridLg12801919GutterSize,
62
62
  marginLeft: spacing.SizesDdsSpacingLayoutX6,
63
63
  marginRight: spacing.SizesDdsSpacingLayoutX6
64
64
  },
@@ -73,7 +73,7 @@ var gridTokens = (_gridTokens = {}, _defineProperty(_gridTokens, ScreenSize.XSma
73
73
  }), _defineProperty(_gridTokens, ScreenSize.XLarge, {
74
74
  grid: {
75
75
  columns: grid.DdsGridXl1920Count,
76
- gap: grid.DdsGridXl1920GutterSize,
76
+ columnGap: grid.DdsGridXl1920GutterSize,
77
77
  marginLeft: spacing.SizesDdsSpacingLayoutX10,
78
78
  marginRight: spacing.SizesDdsSpacingLayoutX10
79
79
  },
@@ -16,10 +16,11 @@ export declare const StyledOverflowMenu: import("styled-components").StyledCompo
16
16
  userProps?: ({
17
17
  name: string;
18
18
  href?: string | undefined;
19
- } & (import("react").AnchorHTMLAttributes<HTMLAnchorElement> | import("react").ButtonHTMLAttributes<HTMLButtonElement>)) | undefined;
20
- navItems?: import("../OverflowMenu").OverflowMenuNavItem[] | undefined;
19
+ } & (import("react").ButtonHTMLAttributes<HTMLButtonElement> | import("react").AnchorHTMLAttributes<HTMLAnchorElement>)) | undefined;
20
+ navItems?: import("../OverflowMenu").OverflowMenuLinkItem[] | undefined;
21
21
  isOpen?: boolean | undefined;
22
22
  onClose?: (() => void) | undefined;
23
+ onToggle?: (() => void) | undefined;
23
24
  anchorRef?: import("react").RefObject<HTMLButtonElement> | undefined;
24
25
  placement?: import("../..").Placement | undefined;
25
26
  offset?: number | undefined;