@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,4 +1,9 @@
1
1
  import { IconSize } from '../Icon';
2
+ import { StaticTypographyType } from '../Typography';
3
+ export declare const typographyTypes: {
4
+ number: StaticTypographyType;
5
+ label: StaticTypographyType;
6
+ };
2
7
  export declare const progressTrackerTokens: {
3
8
  itemsWrapper: {
4
9
  gap: string;
@@ -15,7 +20,6 @@ export declare const progressTrackerTokens: {
15
20
  size: string;
16
21
  borderWidth: string;
17
22
  iconSize: IconSize;
18
- fontSize: string;
19
23
  active: {
20
24
  borderColor: string;
21
25
  color: string;
@@ -48,17 +52,16 @@ export declare const progressTrackerTokens: {
48
52
  };
49
53
  };
50
54
  itemText: {
51
- fontFamily: string;
52
- fontSize: string;
55
+ textDecoration: string;
53
56
  active: {
54
57
  color: string;
55
- textDecoration: string;
58
+ textDecorationColor: string;
56
59
  };
57
60
  inactive: {
58
61
  color: string;
59
- textDecoration: string;
62
+ textDecorationColor: string;
60
63
  hover: {
61
- textDecoration: string;
64
+ textDecorationColor: string;
62
65
  };
63
66
  };
64
67
  disabled: {
@@ -1,22 +1,22 @@
1
1
  import { RadioButtonProps } from '.';
2
2
  declare const _default: {
3
3
  title: string;
4
- component: import("react").ForwardRefExoticComponent<Pick<Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "aria-describedby" | "onChange" | "name" | "value" | "checked" | "readOnly" | "required">, "id" | "className"> & {
4
+ component: import("react").ForwardRefExoticComponent<Pick<Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "name" | "value" | "aria-describedby" | "onChange" | "checked" | "readOnly" | "required">, "id" | "className"> & {
5
5
  label?: string | undefined;
6
6
  disabled?: boolean | undefined;
7
7
  error?: boolean | undefined;
8
8
  } & {
9
- 'aria-describedby'?: string | undefined;
10
- onChange?: import("react").ChangeEventHandler<HTMLInputElement> | undefined;
11
9
  name?: string | undefined;
12
10
  value?: string | number | readonly string[] | undefined;
11
+ 'aria-describedby'?: string | undefined;
12
+ onChange?: import("react").ChangeEventHandler<HTMLInputElement> | undefined;
13
13
  checked?: boolean | undefined;
14
14
  readOnly?: boolean | undefined;
15
15
  required?: boolean | undefined;
16
16
  } & {
17
17
  children?: import("react").ReactNode;
18
18
  } & {
19
- htmlProps?: Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "aria-describedby" | "onChange" | "name" | "value" | "checked" | "readOnly" | "required"> | undefined;
19
+ htmlProps?: Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "name" | "value" | "aria-describedby" | "onChange" | "checked" | "readOnly" | "required"> | undefined;
20
20
  } & import("react").RefAttributes<HTMLInputElement>>;
21
21
  argTypes: {
22
22
  label: {
@@ -1,6 +1,5 @@
1
1
  import { ChangeEvent, HTMLAttributes, ReactElement, Ref } from 'react';
2
- import { BaseComponentPropsWithChildren } from '../../types';
3
- declare type Direction = 'column' | 'row';
2
+ import { BaseComponentPropsWithChildren, Direction } from '../../types';
4
3
  export declare type RadioButtonGroupProps<T extends string | number> = BaseComponentPropsWithChildren<HTMLDivElement, {
5
4
  /** Gir alle barna `name` prop.*/
6
5
  name?: string;
@@ -51,8 +50,7 @@ export declare const RadioButtonGroup: <T extends string | number = string>(prop
51
50
  } & {
52
51
  children?: import("react").ReactNode;
53
52
  } & {
54
- htmlProps?: Omit<HTMLAttributes<HTMLDivElement>, "onChange"> | undefined; /**Funksjonen for onChange-event for barna. */
53
+ htmlProps?: Omit<HTMLAttributes<HTMLDivElement>, "onChange"> | undefined;
55
54
  } & {
56
55
  ref?: Ref<HTMLDivElement> | undefined;
57
56
  }) => ReactElement;
58
- export {};
@@ -10,7 +10,7 @@ declare const _default: {
10
10
  tip?: string | undefined;
11
11
  disabled?: boolean | undefined;
12
12
  readOnly?: boolean | undefined;
13
- direction?: ("row" | "column") | undefined;
13
+ direction?: import("../../types").Direction | undefined;
14
14
  value?: T | undefined;
15
15
  groupId?: string | undefined;
16
16
  } & {
@@ -1,3 +1,8 @@
1
+ import { StaticTypographyType } from '../Typography';
2
+ import { SearchSize } from './Search';
3
+ export declare const typographyTypes: {
4
+ [k in SearchSize]: StaticTypographyType;
5
+ };
1
6
  export declare const searchTokens: {
2
7
  input: {
3
8
  base: {
@@ -6,40 +11,16 @@ export declare const searchTokens: {
6
11
  };
7
12
  sizes: {
8
13
  small: {
9
- font: {
10
- lineHeight: any;
11
- fontSize: string;
12
- letterSpacing: any;
13
- fontFamily: any;
14
- fontWeight: any;
15
- fontStyle: any;
16
- };
17
14
  paddingTop: string;
18
15
  paddingBottom: string;
19
16
  paddingLeft: string;
20
17
  };
21
18
  medium: {
22
- font: {
23
- lineHeight: any;
24
- fontSize: string;
25
- letterSpacing: any;
26
- fontFamily: any;
27
- fontWeight: any;
28
- fontStyle: any;
29
- };
30
19
  paddingTop: string;
31
20
  paddingBottom: string;
32
21
  paddingLeft: string;
33
22
  };
34
23
  large: {
35
- font: {
36
- lineHeight: any;
37
- fontSize: string;
38
- letterSpacing: any;
39
- fontFamily: any;
40
- fontWeight: any;
41
- fontStyle: any;
42
- };
43
24
  paddingTop: string;
44
25
  paddingBottom: string;
45
26
  paddingLeft: string;
@@ -1,3 +1,17 @@
1
+ import { InputSize, InputTypographyTypes } from '../../helpers';
2
+ import { StaticTypographyType } from '../Typography';
3
+ export declare const typographyTypes: {
4
+ control: InputTypographyTypes;
5
+ option: InputTypographyTypes;
6
+ placeholder: {
7
+ [k in InputSize]: StaticTypographyType;
8
+ };
9
+ noOptionsMessage: {
10
+ [k in InputSize]: StaticTypographyType;
11
+ };
12
+ groupHeading: StaticTypographyType;
13
+ multiValueLabel: StaticTypographyType;
14
+ };
1
15
  export declare const selectTokens: {
2
16
  control: {
3
17
  borderRadius: string;
@@ -25,36 +39,12 @@ export declare const selectTokens: {
25
39
  };
26
40
  sizes: {
27
41
  medium: {
28
- font: {
29
- lineHeight: any;
30
- fontSize: string;
31
- letterSpacing: any;
32
- fontFamily: any;
33
- fontWeight: any;
34
- fontStyle: any;
35
- };
36
42
  padding: string;
37
43
  };
38
44
  small: {
39
- font: {
40
- lineHeight: any;
41
- fontSize: string;
42
- letterSpacing: any;
43
- fontFamily: any;
44
- fontWeight: any;
45
- fontStyle: any;
46
- };
47
45
  padding: string;
48
46
  };
49
47
  tiny: {
50
- font: {
51
- lineHeight: any;
52
- fontSize: string;
53
- letterSpacing: any;
54
- fontFamily: any;
55
- fontWeight: any;
56
- fontStyle: any;
57
- };
58
48
  padding: string;
59
49
  };
60
50
  };
@@ -72,38 +62,6 @@ export declare const selectTokens: {
72
62
  };
73
63
  placeholder: {
74
64
  color: string;
75
- sizes: {
76
- medium: {
77
- font: {
78
- lineHeight: any;
79
- fontSize: string;
80
- letterSpacing: any;
81
- fontFamily: any;
82
- fontWeight: any;
83
- fontStyle: any;
84
- };
85
- };
86
- small: {
87
- font: {
88
- lineHeight: any;
89
- fontSize: string;
90
- letterSpacing: any;
91
- fontFamily: any;
92
- fontWeight: any;
93
- fontStyle: any;
94
- };
95
- };
96
- tiny: {
97
- font: {
98
- lineHeight: any;
99
- fontSize: string;
100
- letterSpacing: any;
101
- fontFamily: any;
102
- fontWeight: any;
103
- fontStyle: any;
104
- };
105
- };
106
- };
107
65
  };
108
66
  menu: {
109
67
  border: string;
@@ -115,29 +73,12 @@ export declare const selectTokens: {
115
73
  };
116
74
  groupHeading: {
117
75
  color: string;
118
- font: {
119
- lineHeight: any;
120
- fontSize: string;
121
- letterSpacing: any;
122
- fontFamily: any;
123
- fontWeight: any;
124
- fontStyle: any;
125
- };
126
76
  padding: string;
127
77
  };
128
78
  option: {
129
79
  base: {
130
80
  gap: string;
131
81
  padding: string;
132
- font: {
133
- lineHeight: any;
134
- fontSize: string;
135
- letterSpacing: any;
136
- fontFamily: any;
137
- fontWeight: any;
138
- fontStyle: any;
139
- };
140
- color: string;
141
82
  backgroundColor: string;
142
83
  };
143
84
  hover: {
@@ -149,46 +90,8 @@ export declare const selectTokens: {
149
90
  backgroundColor: string;
150
91
  };
151
92
  selected: {
152
- lineHeight: any;
153
- fontSize: string;
154
- letterSpacing: any;
155
- fontFamily: any;
156
- fontWeight: any;
157
- fontStyle: any;
158
93
  backgroundColor: string;
159
94
  };
160
- sizes: {
161
- medium: {
162
- font: {
163
- lineHeight: any;
164
- fontSize: string;
165
- letterSpacing: any;
166
- fontFamily: any;
167
- fontWeight: any;
168
- fontStyle: any;
169
- };
170
- };
171
- small: {
172
- font: {
173
- lineHeight: any;
174
- fontSize: string;
175
- letterSpacing: any;
176
- fontFamily: any;
177
- fontWeight: any;
178
- fontStyle: any;
179
- };
180
- };
181
- tiny: {
182
- font: {
183
- lineHeight: any;
184
- fontSize: string;
185
- letterSpacing: any;
186
- fontFamily: any;
187
- fontWeight: any;
188
- fontStyle: any;
189
- };
190
- };
191
- };
192
95
  };
193
96
  valueContainer: {
194
97
  isMulti: {
@@ -214,14 +117,6 @@ export declare const selectTokens: {
214
117
  multiValueLabel: {
215
118
  padding: string;
216
119
  color: string;
217
- font: {
218
- lineHeight: any;
219
- fontSize: string;
220
- letterSpacing: any;
221
- fontFamily: any;
222
- fontWeight: any;
223
- fontStyle: any;
224
- };
225
120
  };
226
121
  multiValueRemove: {
227
122
  base: {
@@ -239,14 +134,6 @@ export declare const selectTokens: {
239
134
  noOptionsMessage: {
240
135
  padding: string;
241
136
  color: string;
242
- font: {
243
- lineHeight: any;
244
- fontSize: string;
245
- letterSpacing: any;
246
- fontFamily: any;
247
- fontWeight: any;
248
- fontStyle: any;
249
- };
250
137
  };
251
138
  clearIndicator: {
252
139
  base: {
@@ -6,7 +6,7 @@ export declare type SkipToContentProps = BaseComponentProps<HTMLAnchorElement, {
6
6
  /**Spesifiserer hvor det skal hoppes til via `id`-attributtet til innholdet. */
7
7
  href: string;
8
8
  /**Avstand fra top i nærmeste posisjonert container. */
9
- top?: Property.Top<string | number>;
9
+ top?: Property.Top;
10
10
  }>;
11
11
  export declare const SkipToContent: import("react").ForwardRefExoticComponent<Pick<import("react").HTMLAttributes<HTMLAnchorElement>, "className" | "id"> & {
12
12
  /** Teksten som vises i lenka. */
@@ -14,7 +14,7 @@ export declare const SkipToContent: import("react").ForwardRefExoticComponent<Pi
14
14
  /**Spesifiserer hvor det skal hoppes til via `id`-attributtet til innholdet. */
15
15
  href: string;
16
16
  /**Avstand fra top i nærmeste posisjonert container. */
17
- top?: Property.Top<string | number> | undefined;
17
+ top?: Property.Top<0 | (string & {})> | undefined;
18
18
  } & {
19
19
  htmlProps?: import("react").HTMLAttributes<HTMLAnchorElement> | undefined;
20
20
  } & import("react").RefAttributes<HTMLAnchorElement>>;
@@ -4,7 +4,7 @@ declare const _default: {
4
4
  component: import("react").ForwardRefExoticComponent<Pick<import("react").HTMLAttributes<HTMLAnchorElement>, "id" | "className"> & {
5
5
  text?: string | undefined;
6
6
  href: string;
7
- top?: import("csstype").Property.Top<string | number> | undefined;
7
+ top?: import("csstype").Property.Top<0 | (string & {})> | undefined;
8
8
  } & {
9
9
  htmlProps?: import("react").HTMLAttributes<HTMLAnchorElement> | undefined;
10
10
  } & import("react").RefAttributes<HTMLAnchorElement>>;
@@ -1,19 +1,14 @@
1
- import { CSSObject } from 'styled-components';
2
1
  export declare const skipToContentTokens: {
3
2
  link: {
4
- base: CSSObject;
5
- hover: {
6
- base: CSSObject;
7
- };
8
- focus: {
9
- base: CSSObject;
3
+ base: {
4
+ color: string;
10
5
  };
11
- focusOutline: {
6
+ hover: {
12
7
  color: string;
13
- width: string;
14
8
  };
15
9
  };
16
10
  wrapper: {
17
- base: CSSObject;
11
+ backgroundColor: string;
12
+ padding: string;
18
13
  };
19
14
  };
@@ -0,0 +1,11 @@
1
+ import { ButtonProps, ButtonSize } from '../Button';
2
+ import { OverflowMenuButtonItem } from '../OverflowMenu';
3
+ export declare type SplitButtonProps = {
4
+ /**Størrelse på komponenten. */
5
+ size?: ButtonSize;
6
+ /**Props for primær handling. Samme props som for `<Button />` unntatt `size`, `purpose`, og `appearance`. */
7
+ primaryAction: Omit<ButtonProps, 'size' | 'apperance' | 'purpose'>;
8
+ /**Props for sekunære handlinger. */
9
+ secondaryActions: OverflowMenuButtonItem[];
10
+ };
11
+ export declare const SplitButton: import("react").ForwardRefExoticComponent<SplitButtonProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,9 @@
1
+ import { SplitButtonProps } from '.';
2
+ declare const _default: {
3
+ title: string;
4
+ component: import("react").ForwardRefExoticComponent<SplitButtonProps & import("react").RefAttributes<HTMLDivElement>>;
5
+ };
6
+ export default _default;
7
+ export declare const Overview: (args: SplitButtonProps) => JSX.Element;
8
+ export declare const Default: (args: SplitButtonProps) => JSX.Element;
9
+ export declare const FullWidth: () => JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './SplitButton';
@@ -1,16 +1,5 @@
1
1
  export declare const tableTokens: {
2
2
  row: {
3
- base: {
4
- color: string;
5
- font: {
6
- lineHeight: any;
7
- fontSize: string;
8
- letterSpacing: any;
9
- fontFamily: any;
10
- fontWeight: any;
11
- fontStyle: any;
12
- };
13
- };
14
3
  body: {
15
4
  odd: {
16
5
  backgroundColor: string;
@@ -26,14 +15,6 @@ export declare const tableTokens: {
26
15
  };
27
16
  mode: {
28
17
  sum: {
29
- font: {
30
- lineHeight: any;
31
- fontSize: string;
32
- letterSpacing: any;
33
- fontFamily: any;
34
- fontWeight: any;
35
- fontStyle: any;
36
- };
37
18
  borderTop: string;
38
19
  borderBottom: string;
39
20
  backgroundColor: string;
@@ -1,33 +1,32 @@
1
- import { CSSObject } from 'styled-components';
2
1
  export declare const tabsTokens: {
3
- tabList: CSSObject;
2
+ tabList: {
3
+ borderBottom: string;
4
+ };
4
5
  tab: {
5
- base: CSSObject;
6
- direction: {
7
- row: {
8
- base: CSSObject;
9
- };
10
- column: {
11
- base: CSSObject;
12
- };
6
+ base: {
7
+ borderBottom: string;
8
+ color: string;
9
+ padding: string;
10
+ };
11
+ row: {
12
+ gap: string;
13
+ };
14
+ column: {
15
+ gap: string;
13
16
  };
14
17
  active: {
15
- base: CSSObject;
18
+ backgroundColor: string;
19
+ color: string;
20
+ boxShadow: string;
21
+ borderColor: string;
16
22
  };
17
23
  hover: {
18
- base: CSSObject;
19
- active: {
20
- base: CSSObject;
21
- };
22
- };
23
- focus: {
24
- base: CSSObject;
24
+ color: string;
25
+ boxShadow: string;
26
+ borderColor: string;
25
27
  };
26
28
  };
27
29
  panel: {
28
- base: CSSObject;
29
- focusVisible: {
30
- base: CSSObject;
31
- };
30
+ padding: string;
32
31
  };
33
32
  };
@@ -6,7 +6,7 @@ export declare type TagProps = BaseComponentProps<HTMLSpanElement, {
6
6
  /**Formål med status eller kategorisering. Påvirker styling. */
7
7
  purpose?: TagPurpose;
8
8
  }>;
9
- export declare const Tag: import("react").ForwardRefExoticComponent<Pick<import("react").HTMLAttributes<HTMLSpanElement>, "id" | "className"> & {
9
+ export declare const Tag: import("react").ForwardRefExoticComponent<Pick<import("react").HTMLAttributes<HTMLSpanElement>, "className" | "id"> & {
10
10
  /**Tekst som vises i `<Tag />.` */
11
11
  text?: string | undefined;
12
12
  /**Formål med status eller kategorisering. Påvirker styling. */
@@ -1,26 +1,31 @@
1
- import { CSSObject } from 'styled-components';
1
+ import { StaticTypographyType } from '../Typography';
2
+ export declare const typographyType: StaticTypographyType;
2
3
  export declare const tagTokens: {
3
4
  wrapper: {
4
- base: CSSObject;
5
- type: {
6
- success: {
7
- base: CSSObject;
5
+ border: string;
6
+ borderRadius: string;
7
+ padding: string;
8
+ purpose: {
9
+ default: {
10
+ backgroundColor: string;
11
+ borderColor: string;
8
12
  };
9
- warning: {
10
- base: CSSObject;
13
+ success: {
14
+ borderColor: string;
15
+ backgroundColor: string;
11
16
  };
12
17
  danger: {
13
- base: CSSObject;
18
+ borderColor: string;
19
+ backgroundColor: string;
14
20
  };
15
- default: {
16
- base: CSSObject;
21
+ warning: {
22
+ borderColor: string;
23
+ backgroundColor: string;
17
24
  };
18
25
  info: {
19
- base: CSSObject;
26
+ borderColor: string;
27
+ backgroundColor: string;
20
28
  };
21
29
  };
22
30
  };
23
- inner: {
24
- base: CSSObject;
25
- };
26
31
  };
@@ -1,8 +1,5 @@
1
1
  export declare const textInputTokens: {
2
2
  input: {
3
- multiline: {
4
- paddingBottom: string;
5
- };
6
3
  withIcon: {
7
4
  medium: {
8
5
  paddingLeft: string;
@@ -1,3 +1,8 @@
1
+ import { StaticTypographyType } from '../Typography';
2
+ import { ToggleBarSize } from './ToggleBar.types';
3
+ export declare const typographyTypes: {
4
+ [k in ToggleBarSize]: StaticTypographyType;
5
+ };
1
6
  export declare const toggleBarTokens: {
2
7
  outerContainer: {
3
8
  gap: string;
@@ -20,14 +25,6 @@ export declare const toggleBarTokens: {
20
25
  };
21
26
  withText: {
22
27
  padding: string;
23
- font: {
24
- lineHeight: any;
25
- fontSize: string;
26
- letterSpacing: any;
27
- fontFamily: any;
28
- fontWeight: any;
29
- fontStyle: any;
30
- };
31
28
  gap: string;
32
29
  };
33
30
  };
@@ -38,14 +35,6 @@ export declare const toggleBarTokens: {
38
35
  };
39
36
  withText: {
40
37
  padding: string;
41
- font: {
42
- lineHeight: any;
43
- fontSize: string;
44
- letterSpacing: any;
45
- fontFamily: any;
46
- fontWeight: any;
47
- fontStyle: any;
48
- };
49
38
  gap: string;
50
39
  };
51
40
  };
@@ -56,14 +45,6 @@ export declare const toggleBarTokens: {
56
45
  };
57
46
  withText: {
58
47
  padding: string;
59
- font: {
60
- lineHeight: any;
61
- fontSize: string;
62
- letterSpacing: any;
63
- fontFamily: any;
64
- fontWeight: any;
65
- fontStyle: any;
66
- };
67
48
  gap: string;
68
49
  };
69
50
  };
@@ -74,14 +55,6 @@ export declare const toggleBarTokens: {
74
55
  };
75
56
  withText: {
76
57
  padding: string;
77
- font: {
78
- lineHeight: any;
79
- fontSize: string;
80
- letterSpacing: any;
81
- fontFamily: any;
82
- fontWeight: any;
83
- fontStyle: any;
84
- };
85
58
  gap: string;
86
59
  };
87
60
  };
@@ -1,11 +1,11 @@
1
1
  import { ToggleButtonProps } from '.';
2
2
  declare const _default: {
3
3
  title: string;
4
- component: import("react").ForwardRefExoticComponent<Pick<Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "defaultChecked" | "defaultValue" | "aria-describedby" | "onBlur" | "onChange" | "name" | "value" | "checked">, "id" | "className"> & {
4
+ component: import("react").ForwardRefExoticComponent<Pick<Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "onBlur" | "name" | "value" | "defaultChecked" | "defaultValue" | "aria-describedby" | "onChange" | "checked">, "id" | "className"> & {
5
5
  label?: string | undefined;
6
6
  icon?: import("../../icons/utils").SvgIcon | undefined;
7
7
  } & import("../../types").CheckboxPickedHTMLAttributes & {
8
- htmlProps?: Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "defaultChecked" | "defaultValue" | "aria-describedby" | "onBlur" | "onChange" | "name" | "value" | "checked"> | undefined;
8
+ htmlProps?: Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "onBlur" | "name" | "value" | "defaultChecked" | "defaultValue" | "aria-describedby" | "onChange" | "checked"> | undefined;
9
9
  } & import("react").RefAttributes<HTMLInputElement>>;
10
10
  argTypes: {
11
11
  label: {