@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
@@ -1,12 +1,14 @@
1
- import { CSSObject } from 'styled-components';
1
+ import { StaticTypographyType } from '../Typography';
2
+ export declare const typographyType: StaticTypographyType;
2
3
  export declare const chipTokens: {
3
4
  container: {
4
- base: CSSObject;
5
+ gap: string;
6
+ padding: string;
7
+ backgroundColor: string;
8
+ border: string;
9
+ borderRadius: string;
5
10
  };
6
11
  group: {
7
- base: CSSObject;
8
- };
9
- text: {
10
- base: CSSObject;
12
+ gap: string;
11
13
  };
12
14
  };
@@ -1,38 +1,16 @@
1
+ import { StaticTypographyType } from '../Typography';
2
+ import { DescriptionListAppearance } from './DescriptionList';
3
+ export declare const termTypographyTypes: {
4
+ [k in DescriptionListAppearance]: StaticTypographyType;
5
+ };
6
+ export declare const descTypographyType: StaticTypographyType;
1
7
  export declare const descriptionListTokens: {
2
8
  term: {
3
9
  appearance: {
4
10
  small: {
5
- font: {
6
- lineHeight: any;
7
- fontSize: string;
8
- letterSpacing: any;
9
- fontFamily: any;
10
- fontWeight: any;
11
- fontStyle: any;
12
- };
13
11
  color: string;
14
- lineHeight: any;
15
- fontSize: string;
16
- letterSpacing: any;
17
- fontFamily: any;
18
- fontWeight: any;
19
- fontStyle: any;
20
12
  };
21
13
  bold: {
22
- font: {
23
- lineHeight: any;
24
- fontSize: string;
25
- letterSpacing: any;
26
- fontFamily: any;
27
- fontWeight: any;
28
- fontStyle: any;
29
- };
30
- lineHeight: any;
31
- fontSize: string;
32
- letterSpacing: any;
33
- fontFamily: any;
34
- fontWeight: number;
35
- fontStyle: any;
36
14
  color: string;
37
15
  };
38
16
  };
@@ -42,14 +20,6 @@ export declare const descriptionListTokens: {
42
20
  };
43
21
  desc: {
44
22
  base: {
45
- font: {
46
- lineHeight: any;
47
- fontSize: string;
48
- letterSpacing: any;
49
- fontFamily: any;
50
- fontWeight: any;
51
- fontStyle: any;
52
- };
53
23
  gap: string;
54
24
  color: string;
55
25
  };
@@ -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,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,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
  };
@@ -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. */
@@ -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
  };
@@ -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;
@@ -1,18 +1,13 @@
1
+ import { StaticTypographyType } from '../Typography';
2
+ export declare const typographyTypes: {
3
+ [k: string]: StaticTypographyType;
4
+ };
1
5
  export declare const internalHeaderTokens: {
2
6
  navLink: {
3
7
  base: {
4
8
  color: string;
5
- textDecoration: string;
6
9
  backgroundColor: string;
7
10
  padding: string;
8
- font: {
9
- lineHeight: any;
10
- fontSize: string;
11
- letterSpacing: any;
12
- fontFamily: any;
13
- fontWeight: any;
14
- fontStyle: any;
15
- };
16
11
  };
17
12
  hover: {
18
13
  color: string;
@@ -8,7 +8,7 @@ export declare type ListProps = BaseComponentPropsWithChildren<HTMLUListElement
8
8
  /**Spesifiserer typografi for listen. Komponenten arver i utgangspunktet fra forelder, men hvis forelder stiller ikke med relevant styling må det velges `TypographyBodyType` som brukes i `<body>` ellers på siden. */
9
9
  typographyType?: ListTypographyType;
10
10
  }>;
11
- export declare const List: import("react").ForwardRefExoticComponent<Pick<import("react").HTMLAttributes<HTMLUListElement | HTMLOListElement>, "id" | "className"> & {
11
+ export declare const List: import("react").ForwardRefExoticComponent<Pick<import("react").HTMLAttributes<HTMLUListElement | HTMLOListElement>, "className" | "id"> & {
12
12
  /**Spesifiserer om komponenten skal returnere `<ul />` (punktliste) eller `<ol />` (nummerert liste). */
13
13
  listType?: ListType | undefined;
14
14
  /**Spesifiserer typografi for listen. Komponenten arver i utgangspunktet fra forelder, men hvis forelder stiller ikke med relevant styling må det velges `TypographyBodyType` som brukes i `<body>` ellers på siden. */
@@ -1,12 +1,24 @@
1
- import { CSSObject } from 'styled-components';
2
1
  export declare const listTokens: {
3
- base: CSSObject;
4
- spaceLeft: string;
5
- sizes: {
6
- bodySans01: CSSObject;
7
- bodySans02: CSSObject;
8
- bodySans03: CSSObject;
9
- bodySans04: CSSObject;
10
- inherit: CSSObject;
2
+ list: {
3
+ base: {
4
+ margin: string;
5
+ color: string;
6
+ };
7
+ ol: {
8
+ paddingLeft: string;
9
+ };
10
+ ul: {
11
+ paddingLeft: string;
12
+ };
13
+ };
14
+ listItem: {
15
+ lineHeight: string;
16
+ ul: {
17
+ paddingLeft: string;
18
+ };
11
19
  };
20
+ bullet: {
21
+ top: string;
22
+ };
23
+ spaceLeft: string;
12
24
  };
@@ -1,89 +1,85 @@
1
- import { CSSObject } from 'styled-components';
2
- import { Property } from 'csstype';
3
- import { ErrorIcon, TipIcon, InfoIcon, WarningIcon, CheckCircledIcon } from '../../icons/tsx';
1
+ import { SvgIcon } from '../../icons/utils';
2
+ import { ButtonPurpose } from '../Button';
3
+ import { StaticTypographyType } from '../Typography';
4
+ import { LocalMessagePurpose } from './LocalMessage';
5
+ export declare const typographyType: StaticTypographyType;
6
+ export declare const purposeVariants: {
7
+ [k in LocalMessagePurpose]: {
8
+ icon: SvgIcon;
9
+ closeButtonPurpose: ButtonPurpose;
10
+ };
11
+ };
4
12
  export declare const localMessageTokens: {
5
13
  container: {
6
- base: CSSObject;
7
- defaultWidth: Property.Width<string>;
8
- info: {
9
- base: CSSObject;
10
- };
11
- danger: {
12
- base: CSSObject;
13
- };
14
- warning: {
15
- base: CSSObject;
16
- };
17
- success: {
18
- base: CSSObject;
19
- };
20
- tips: {
21
- base: CSSObject;
22
- };
23
- confidential: {
24
- base: CSSObject;
14
+ base: {
15
+ boxShadow: string;
16
+ borderRadius: string;
17
+ border: string;
18
+ padding: string;
19
+ };
20
+ purpose: {
21
+ info: {
22
+ borderColor: string;
23
+ backgroundColor: string;
24
+ };
25
+ warning: {
26
+ borderColor: string;
27
+ backgroundColor: string;
28
+ };
29
+ danger: {
30
+ borderColor: string;
31
+ backgroundColor: string;
32
+ };
33
+ success: {
34
+ borderColor: string;
35
+ backgroundColor: string;
36
+ };
37
+ tips: {
38
+ borderColor: string;
39
+ backgroundColor: string;
40
+ };
41
+ confidential: {
42
+ borderColor: string;
43
+ backgroundColor: string;
44
+ };
25
45
  };
26
46
  };
27
47
  contentContainer: {
28
- base: CSSObject;
48
+ paddingRight: string;
49
+ paddingTop: string;
50
+ paddingBottom: string;
29
51
  withClosable: {
30
- base: CSSObject;
52
+ paddingRight: string;
31
53
  };
32
54
  vertical: {
33
- base: CSSObject;
55
+ paddingBottom: string;
34
56
  };
35
57
  };
36
58
  topContainer: {
37
- base: CSSObject;
59
+ paddingTop: string;
38
60
  withClosable: {
39
- base: CSSObject;
61
+ paddingTop: string;
40
62
  };
41
63
  };
42
64
  icon: {
43
65
  marginRight: string;
44
66
  info: {
45
- icon: typeof InfoIcon;
46
67
  color: string;
47
68
  };
48
69
  danger: {
49
- icon: typeof ErrorIcon;
50
70
  color: string;
51
71
  };
52
72
  warning: {
53
- icon: typeof WarningIcon;
54
73
  color: string;
55
74
  };
56
75
  success: {
57
- icon: typeof CheckCircledIcon;
58
76
  color: string;
59
77
  };
60
78
  tips: {
61
- icon: typeof TipIcon;
62
79
  color: string;
63
80
  };
64
81
  confidential: {
65
- icon: typeof ErrorIcon;
66
82
  color: string;
67
83
  };
68
84
  };
69
- button: {
70
- info: {
71
- purpose: string;
72
- };
73
- danger: {
74
- purpose: string;
75
- };
76
- warning: {
77
- purpose: string;
78
- };
79
- success: {
80
- purpose: string;
81
- };
82
- confidential: {
83
- purpose: string;
84
- };
85
- tips: {
86
- purpose: string;
87
- };
88
- };
89
85
  };
@@ -1,13 +1,12 @@
1
- import { CSSObject } from 'styled-components';
2
1
  export declare const modalTokens: {
3
- base: CSSObject;
4
- focus: {
5
- base: CSSObject;
2
+ container: {
3
+ padding: string;
6
4
  };
7
5
  contentContainer: {
8
- base: CSSObject;
6
+ paddingRight: string;
7
+ gap: string;
9
8
  };
10
9
  actionsContainer: {
11
- base: CSSObject;
10
+ gap: string;
12
11
  };
13
12
  };
@@ -1,4 +1,4 @@
1
- import { OverflowMenuContextItem, OverflowMenuNavItem } from '.';
1
+ import { OverflowMenuContextItem } from '.';
2
2
  declare type ContainerProps = {
3
3
  isOpen: boolean;
4
4
  };
@@ -9,10 +9,11 @@ export declare const OverflowMenu: import("react").ForwardRefExoticComponent<Pic
9
9
  userProps?: ({
10
10
  name: string;
11
11
  href?: string | undefined;
12
- } & (import("react").AnchorHTMLAttributes<HTMLAnchorElement> | import("react").ButtonHTMLAttributes<HTMLButtonElement>)) | undefined;
13
- navItems?: OverflowMenuNavItem[] | undefined;
12
+ } & (import("react").ButtonHTMLAttributes<HTMLButtonElement> | import("react").AnchorHTMLAttributes<HTMLAnchorElement>)) | undefined;
13
+ navItems?: import("./OverflowMenu.types").OverflowMenuLinkItem[] | undefined;
14
14
  isOpen?: boolean | undefined;
15
15
  onClose?: (() => void) | undefined;
16
+ onToggle?: (() => void) | undefined;
16
17
  anchorRef?: import("react").RefObject<HTMLButtonElement> | undefined;
17
18
  placement?: import("../../hooks").Placement | undefined;
18
19
  offset?: number | undefined;
@@ -1,4 +1,4 @@
1
- import { OverflowMenuProps, OverflowMenuContextItem, OverflowMenuNavItem } from '.';
1
+ import { OverflowMenuProps, OverflowMenuContextItem } from '.';
2
2
  declare const _default: {
3
3
  title: string;
4
4
  component: import("react").ForwardRefExoticComponent<Pick<import("react").HTMLAttributes<HTMLDivElement>, "id" | "className"> & {
@@ -6,10 +6,11 @@ declare const _default: {
6
6
  userProps?: ({
7
7
  name: string;
8
8
  href?: string | undefined;
9
- } & (import("react").AnchorHTMLAttributes<HTMLAnchorElement> | import("react").ButtonHTMLAttributes<HTMLButtonElement>)) | undefined;
10
- navItems?: OverflowMenuNavItem[] | undefined;
9
+ } & (import("react").ButtonHTMLAttributes<HTMLButtonElement> | import("react").AnchorHTMLAttributes<HTMLAnchorElement>)) | undefined;
10
+ navItems?: import("./OverflowMenu.types").OverflowMenuLinkItem[] | undefined;
11
11
  isOpen?: boolean | undefined;
12
12
  onClose?: (() => void) | undefined;
13
+ onToggle?: (() => void) | undefined;
13
14
  anchorRef?: import("react").RefObject<HTMLButtonElement> | undefined;
14
15
  placement?: import("../..").Placement | undefined;
15
16
  offset?: number | undefined;
@@ -1,3 +1,5 @@
1
+ import { StaticTypographyType } from '../Typography';
2
+ export declare const typographyType: StaticTypographyType;
1
3
  export declare const overflowMenuTokens: {
2
4
  container: {
3
5
  border: string;
@@ -11,14 +13,6 @@ export declare const overflowMenuTokens: {
11
13
  backgroundColor: string;
12
14
  padding: string;
13
15
  gap: string;
14
- font: {
15
- lineHeight: any;
16
- fontSize: string;
17
- letterSpacing: any;
18
- fontFamily: any;
19
- fontWeight: any;
20
- fontStyle: any;
21
- };
22
16
  };
23
17
  };
24
18
  link: {
@@ -2,14 +2,14 @@ import { Placement } from '../../hooks/useFloatPosition';
2
2
  import { AnchorHTMLAttributes, ButtonHTMLAttributes, RefObject } from 'react';
3
3
  import { BaseComponentProps } from '../../types';
4
4
  import { SvgIcon } from '../../icons/utils';
5
- export declare type OverflowMenuContextItem = {
5
+ declare type OverflowMenuItemBase = {
6
6
  title: string;
7
7
  icon?: SvgIcon;
8
- } & (AnchorHTMLAttributes<HTMLAnchorElement> | ButtonHTMLAttributes<HTMLButtonElement>);
9
- export declare type OverflowMenuNavItem = {
10
- title: string;
11
- icon?: SvgIcon;
12
- } & AnchorHTMLAttributes<HTMLAnchorElement>;
8
+ };
9
+ export declare type OverflowMenuButtonItem = OverflowMenuItemBase & ButtonHTMLAttributes<HTMLButtonElement>;
10
+ export declare type OverflowMenuLinkItem = OverflowMenuItemBase & AnchorHTMLAttributes<HTMLAnchorElement>;
11
+ export declare type OverflowMenuContextItem = OverflowMenuButtonItem | OverflowMenuLinkItem;
12
+ export declare type OverflowMenuNavItem = OverflowMenuLinkItem;
13
13
  declare type UserProps = {
14
14
  name: string;
15
15
  href?: string;
@@ -25,6 +25,8 @@ export declare type OverflowMenuProps = BaseComponentProps<HTMLDivElement, {
25
25
  isOpen?: boolean;
26
26
  /**Callback for å lukke menyen. **OBS!** nødvendig kun hvis `<OverflowMenuGroup />` ikke brukes. */
27
27
  onClose?: () => void;
28
+ /**Callback for å toggle menyen. **OBS!** nødvendig kun hvis `<OverflowMenuGroup />` ikke brukes. */
29
+ onToggle?: () => void;
28
30
  /**Ref til elementet som styrer menyen. **OBS!** nødvendig kun hvis ``<OverflowMenuGroup />` ikke brukes. */
29
31
  anchorRef?: RefObject<HTMLButtonElement>;
30
32
  /**Plassering av menyen i forhold til anchor-elementet. */
@@ -1,15 +1,14 @@
1
- import { CSSObject } from 'styled-components';
2
1
  export declare const paginationTokens: {
3
- container: {
4
- spaceBetweenItems: string;
2
+ outerContainer: {
3
+ gap: string;
5
4
  };
6
5
  indicatorsContainer: {
7
- spacing: string;
6
+ gap: string;
8
7
  };
9
- list: {
10
- base: CSSObject;
8
+ truncationIcon: {
9
+ color: string;
11
10
  };
12
- paginationItem: {
13
- spacing: string;
11
+ list: {
12
+ gap: string;
14
13
  };
15
14
  };
@@ -8,7 +8,6 @@ export declare const popoverTokens: {
8
8
  padding: string;
9
9
  };
10
10
  closeButton: {
11
- position: string;
12
11
  top: string;
13
12
  right: string;
14
13
  };