@norges-domstoler/dds-components 9.1.1 → 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 -1822
  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 -3
  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
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @norges-domstoler/dds-components
2
2
 
3
- [![Version](https://img.shields.io/npm/v/@norges-domstoler/dds-components)](https://www.npmjs.com/package/@norges-domstoler/dds-components)
3
+ ![Version](https://img.shields.io/npm/v/@norges-domstoler/dds-components) [![License](https://img.shields.io/npm/l/@norges-domstoler/dds-components)](https://www.npmjs.com/package/@norges-domstoler/dds-components) ![Checks](https://github.com/domstolene/designsystem/actions/workflows/design-system.yml/badge.svg)
4
4
 
5
5
  React UI komponenter til bruk i domstolenes tjenester.
6
6
 
@@ -47,6 +47,7 @@ Tilgjengelige komponenter:
47
47
  - DescriptionList
48
48
  - Divider
49
49
  - Drawer
50
+ - FileUploader
50
51
  - GlobalMessage
51
52
  - Grid
52
53
  - Icon
@@ -1,4 +1,4 @@
1
1
  var img = "data:image/svg+xml,%3csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='6.7085' cy='6.7085' r='2.625' fill='%230B0D0E'/%3e%3c/svg%3e";
2
- var bullet = img;
2
+ var bulletLvl1 = img;
3
3
 
4
- export { bullet as default };
4
+ export { bulletLvl1 as default };
@@ -1,16 +1,10 @@
1
+ import { StaticTypographyType } from '../Typography';
2
+ export declare const typographyType: StaticTypographyType;
1
3
  export declare const breadcrumbTokens: {
2
4
  list: {
3
5
  gap: string;
4
6
  };
5
7
  listItem: {
6
- font: {
7
- lineHeight: any;
8
- fontSize: string;
9
- letterSpacing: any;
10
- fontFamily: any;
11
- fontWeight: any;
12
- fontStyle: any;
13
- };
14
8
  gap: string;
15
9
  };
16
10
  icon: {
@@ -1,7 +1,7 @@
1
1
  import { ButtonProps } from '.';
2
2
  declare const _default: {
3
3
  title: string;
4
- component: import("react").ForwardRefExoticComponent<Pick<Omit<import("react").ButtonHTMLAttributes<HTMLButtonElement>, "onFocus" | "onBlur" | "onClick" | "type">, "id" | "className"> & {
4
+ component: import("react").ForwardRefExoticComponent<Pick<Omit<import("react").ButtonHTMLAttributes<HTMLButtonElement>, "type" | "onClick" | "onFocus" | "onBlur">, "id" | "className"> & {
5
5
  size?: import("./Button.types").ButtonSize | undefined;
6
6
  label?: string | undefined;
7
7
  purpose?: import("./Button.types").ButtonPurpose | undefined;
@@ -13,12 +13,12 @@ declare const _default: {
13
13
  href?: string | undefined;
14
14
  target?: string | undefined;
15
15
  } & {
16
+ type?: "button" | "submit" | "reset" | undefined;
17
+ onClick?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
16
18
  onFocus?: import("react").FocusEventHandler<HTMLButtonElement> | undefined;
17
19
  onBlur?: import("react").FocusEventHandler<HTMLButtonElement> | undefined;
18
- onClick?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
19
- type?: "button" | "submit" | "reset" | undefined;
20
20
  } & {
21
- htmlProps?: Omit<import("react").ButtonHTMLAttributes<HTMLButtonElement>, "onFocus" | "onBlur" | "onClick" | "type"> | undefined;
21
+ htmlProps?: Omit<import("react").ButtonHTMLAttributes<HTMLButtonElement>, "type" | "onClick" | "onFocus" | "onBlur"> | undefined;
22
22
  } & import("react").RefAttributes<HTMLButtonElement>>;
23
23
  argTypes: {
24
24
  label: {
@@ -15,6 +15,7 @@ declare type StyledIconWrapperSpanProps = {
15
15
  size: ButtonSize;
16
16
  absolutePosition?: boolean;
17
17
  isHidden?: boolean;
18
+ justIcon?: boolean;
18
19
  };
19
20
  export declare const StyledIconWrapperSpan: import("styled-components").StyledComponent<"span", any, StyledIconWrapperSpanProps, never>;
20
21
  declare type LabelProps = {
@@ -1,201 +1,330 @@
1
- import { CSSObject } from 'styled-components';
1
+ import { ButtonSize } from '.';
2
+ import { StaticTypographyType } from '../Typography';
3
+ export declare const typographyTypes: {
4
+ [k in ButtonSize]: StaticTypographyType;
5
+ };
2
6
  export declare const buttonTokens: {
3
- base: CSSObject;
4
- focus: {
5
- base: CSSObject;
6
- };
7
- sizes: {
8
- small: {
9
- justIcon: {
10
- base: CSSObject;
11
- };
12
- justIconWrapper: {
13
- base: CSSObject;
14
- };
15
- text: {
16
- base: CSSObject;
17
- };
18
- iconWithTextMargin: string;
19
- };
20
- medium: {
21
- justIcon: {
22
- base: CSSObject;
23
- };
24
- justIconWrapper: {
25
- base: CSSObject;
26
- };
27
- text: {
28
- base: CSSObject;
29
- };
30
- iconWithTextMargin: string;
31
- };
32
- large: {
33
- justIcon: {
34
- base: CSSObject;
35
- };
36
- justIconWrapper: {
37
- base: CSSObject;
38
- };
39
- text: {
40
- base: CSSObject;
41
- };
42
- iconWithTextMargin: string;
43
- };
44
- tiny: {
45
- justIcon: {
46
- base: CSSObject;
47
- };
48
- justIconWrapper: {
49
- base: CSSObject;
50
- };
51
- text: {
52
- base: CSSObject;
53
- };
54
- iconWithTextMargin: string;
7
+ button: {
8
+ base: {
9
+ border: string;
55
10
  };
56
- };
57
- appearance: {
58
- filled: {
59
- base: CSSObject;
60
- primary: {
61
- base: CSSObject;
62
- hover: {
63
- base: CSSObject;
64
- };
65
- active: {
66
- base: CSSObject;
67
- };
68
- };
69
- secondary: {
70
- base: CSSObject;
71
- hover: {
72
- base: CSSObject;
73
- };
74
- active: {
75
- base: CSSObject;
76
- };
77
- };
78
- danger: {
79
- base: CSSObject;
80
- hover: {
81
- base: CSSObject;
82
- };
83
- active: {
84
- base: CSSObject;
11
+ sizes: {
12
+ large: {
13
+ justIcon: {
14
+ icon: {
15
+ fontSize: string;
16
+ padding: string;
17
+ };
18
+ wrapper: {
19
+ height: string;
20
+ width: string;
21
+ };
85
22
  };
86
- };
87
- };
88
- ghost: {
89
- base: CSSObject;
90
- primary: {
91
- base: CSSObject;
92
- hover: {
93
- base: CSSObject;
23
+ text: {
24
+ padding: string;
94
25
  };
95
- active: {
96
- base: CSSObject;
26
+ textAndIcon: {
27
+ gap: string;
97
28
  };
98
29
  };
99
- secondary: {
100
- base: CSSObject;
101
- hover: {
102
- base: CSSObject;
103
- };
104
- active: {
105
- base: CSSObject;
30
+ medium: {
31
+ justIcon: {
32
+ icon: {
33
+ fontSize: string;
34
+ padding: string;
35
+ };
36
+ wrapper: {
37
+ height: string;
38
+ width: string;
39
+ };
106
40
  };
107
- };
108
- danger: {
109
- base: CSSObject;
110
- hover: {
111
- base: CSSObject;
41
+ text: {
42
+ padding: string;
112
43
  };
113
- active: {
114
- base: CSSObject;
44
+ textAndIcon: {
45
+ gap: string;
115
46
  };
116
47
  };
117
- };
118
- borderless: {
119
- base: CSSObject;
120
- primary: {
121
- base: CSSObject;
122
- hover: {
123
- base: CSSObject;
124
- };
125
- active: {
126
- base: CSSObject;
127
- };
48
+ small: {
128
49
  justIcon: {
129
- hover: {
130
- base: CSSObject;
50
+ icon: {
51
+ fontSize: string;
52
+ padding: string;
131
53
  };
132
- active: {
133
- base: CSSObject;
54
+ wrapper: {
55
+ height: string;
56
+ width: string;
134
57
  };
135
58
  };
136
- };
137
- secondary: {
138
- base: CSSObject;
139
- hover: {
140
- base: CSSObject;
59
+ text: {
60
+ padding: string;
141
61
  };
142
- active: {
143
- base: CSSObject;
62
+ textAndIcon: {
63
+ gap: string;
144
64
  };
65
+ };
66
+ tiny: {
145
67
  justIcon: {
146
- hover: {
147
- base: CSSObject;
68
+ icon: {
69
+ fontSize: string;
70
+ padding: string;
148
71
  };
149
- active: {
150
- base: CSSObject;
72
+ wrapper: {
73
+ height: string;
74
+ width: string;
151
75
  };
152
76
  };
153
- };
154
- danger: {
155
- base: CSSObject;
156
- hover: {
157
- base: CSSObject;
77
+ text: {
78
+ padding: string;
158
79
  };
159
- active: {
160
- base: CSSObject;
80
+ textAndIcon: {
81
+ gap: string;
161
82
  };
162
- justIcon: {
163
- hover: {
164
- base: CSSObject;
83
+ };
84
+ };
85
+ appearances: {
86
+ filled: {
87
+ base: {
88
+ borderRadius: string;
89
+ boxShadow: string;
90
+ };
91
+ purpose: {
92
+ primary: {
93
+ base: {
94
+ color: string;
95
+ backgroundColor: string;
96
+ borderColor: string;
97
+ };
98
+ hover: {
99
+ backgroundColor: string;
100
+ borderColor: string;
101
+ };
102
+ active: {
103
+ backgroundColor: string;
104
+ borderColor: string;
105
+ };
106
+ };
107
+ secondary: {
108
+ base: {
109
+ color: string;
110
+ backgroundColor: string;
111
+ borderColor: string;
112
+ };
113
+ hover: {
114
+ backgroundColor: string;
115
+ borderColor: string;
116
+ };
117
+ active: {
118
+ backgroundColor: string;
119
+ borderColor: string;
120
+ };
165
121
  };
166
- active: {
167
- base: CSSObject;
122
+ danger: {
123
+ base: {
124
+ color: string;
125
+ backgroundColor: string;
126
+ borderColor: string;
127
+ };
128
+ hover: {
129
+ backgroundColor: string;
130
+ borderColor: string;
131
+ };
132
+ active: {
133
+ backgroundColor: string;
134
+ borderColor: string;
135
+ };
168
136
  };
169
137
  };
170
138
  };
171
- };
172
- rounded: {
173
- base: CSSObject;
174
- primary: {
175
- base: CSSObject;
176
- hover: {
177
- base: CSSObject;
139
+ ghost: {
140
+ base: {
141
+ borderRadius: string;
142
+ boxShadow: string;
143
+ backgroundColor: string;
178
144
  };
179
- active: {
180
- base: CSSObject;
145
+ purpose: {
146
+ primary: {
147
+ base: {
148
+ color: string;
149
+ borderColor: string;
150
+ };
151
+ hover: {
152
+ color: string;
153
+ borderColor: string;
154
+ boxShadow: string;
155
+ };
156
+ active: {
157
+ color: string;
158
+ borderColor: string;
159
+ boxShadow: string;
160
+ };
161
+ };
162
+ secondary: {
163
+ base: {
164
+ color: string;
165
+ borderColor: string;
166
+ };
167
+ hover: {
168
+ color: string;
169
+ borderColor: string;
170
+ boxShadow: string;
171
+ };
172
+ active: {
173
+ color: string;
174
+ borderColor: string;
175
+ boxShadow: string;
176
+ };
177
+ };
178
+ danger: {
179
+ base: {
180
+ color: string;
181
+ borderColor: string;
182
+ };
183
+ hover: {
184
+ color: string;
185
+ borderColor: string;
186
+ boxShadow: string;
187
+ };
188
+ active: {
189
+ color: string;
190
+ borderColor: string;
191
+ boxShadow: string;
192
+ };
193
+ };
181
194
  };
182
195
  };
183
- secondary: {
184
- base: CSSObject;
185
- hover: {
186
- base: CSSObject;
196
+ borderless: {
197
+ base: {
198
+ borderRadius: string;
199
+ boxShadow: string;
200
+ backgroundColor: string;
201
+ borderColor: string;
202
+ textDecoration: string;
203
+ textDecorationColor: string;
187
204
  };
188
- active: {
189
- base: CSSObject;
205
+ purpose: {
206
+ primary: {
207
+ base: {
208
+ color: string;
209
+ };
210
+ hover: {
211
+ color: string;
212
+ textDecorationColor: string;
213
+ };
214
+ active: {
215
+ color: string;
216
+ textDecorationColor: string;
217
+ };
218
+ icon: {
219
+ hover: {
220
+ borderColor: string;
221
+ boxShadow: string;
222
+ };
223
+ active: {
224
+ borderColor: string;
225
+ boxShadow: string;
226
+ };
227
+ };
228
+ };
229
+ secondary: {
230
+ base: {
231
+ color: string;
232
+ };
233
+ hover: {
234
+ color: string;
235
+ textDecorationColor: string;
236
+ };
237
+ active: {
238
+ color: string;
239
+ textDecorationColor: string;
240
+ };
241
+ icon: {
242
+ hover: {
243
+ borderColor: string;
244
+ boxShadow: string;
245
+ };
246
+ active: {
247
+ borderColor: string;
248
+ boxShadow: string;
249
+ };
250
+ };
251
+ };
252
+ danger: {
253
+ base: {
254
+ color: string;
255
+ };
256
+ hover: {
257
+ color: string;
258
+ textDecorationColor: string;
259
+ };
260
+ active: {
261
+ color: string;
262
+ textDecorationColor: string;
263
+ };
264
+ icon: {
265
+ hover: {
266
+ borderColor: string;
267
+ boxShadow: string;
268
+ };
269
+ active: {
270
+ borderColor: string;
271
+ boxShadow: string;
272
+ };
273
+ };
274
+ };
190
275
  };
191
276
  };
192
- danger: {
193
- base: CSSObject;
194
- hover: {
195
- base: CSSObject;
277
+ rounded: {
278
+ base: {
279
+ borderRadius: string;
280
+ boxShadow: string;
196
281
  };
197
- active: {
198
- base: CSSObject;
282
+ purpose: {
283
+ primary: {
284
+ base: {
285
+ color: string;
286
+ backgroundColor: string;
287
+ borderColor: string;
288
+ };
289
+ hover: {
290
+ backgroundColor: string;
291
+ borderColor: string;
292
+ };
293
+ active: {
294
+ backgroundColor: string;
295
+ borderColor: string;
296
+ };
297
+ };
298
+ secondary: {
299
+ base: {
300
+ color: string;
301
+ backgroundColor: string;
302
+ borderColor: string;
303
+ };
304
+ hover: {
305
+ backgroundColor: string;
306
+ borderColor: string;
307
+ };
308
+ active: {
309
+ backgroundColor: string;
310
+ borderColor: string;
311
+ };
312
+ };
313
+ danger: {
314
+ base: {
315
+ color: string;
316
+ backgroundColor: string;
317
+ borderColor: string;
318
+ };
319
+ hover: {
320
+ backgroundColor: string;
321
+ borderColor: string;
322
+ };
323
+ active: {
324
+ backgroundColor: string;
325
+ borderColor: string;
326
+ };
327
+ };
199
328
  };
200
329
  };
201
330
  };
@@ -1,26 +1,27 @@
1
- import { CSSObject } from 'styled-components';
2
1
  export declare const cardTokens: {
3
- base: CSSObject;
4
- navigation: {
5
- hover: {
6
- base: CSSObject;
7
- };
8
- focus: {
9
- base: CSSObject;
10
- };
2
+ base: {
3
+ border: string;
11
4
  };
12
5
  colors: {
13
- filledDark: {
14
- base: CSSObject;
15
- };
16
6
  filledLight: {
17
- base: CSSObject;
7
+ backgroundColor: string;
8
+ borderColor: string;
9
+ color: string;
18
10
  };
19
- strokeLight: {
20
- base: CSSObject;
11
+ filledDark: {
12
+ backgroundColor: string;
13
+ borderColor: string;
14
+ color: string;
21
15
  };
22
16
  strokeDark: {
23
- base: CSSObject;
17
+ backgroundColor: string;
18
+ borderColor: string;
19
+ color: string;
20
+ };
21
+ strokeLight: {
22
+ backgroundColor: string;
23
+ borderColor: string;
24
+ color: string;
24
25
  };
25
26
  };
26
27
  };
@@ -0,0 +1,28 @@
1
+ import { StaticTypographyType } from '../../Typography';
2
+ export declare const typographyTypes: {
3
+ body: StaticTypographyType;
4
+ header: StaticTypographyType;
5
+ };
6
+ export declare const cardAccordionTokens: {
7
+ header: {
8
+ padding: string;
9
+ hover: {
10
+ boxShadow: string;
11
+ };
12
+ focus: {
13
+ boxShadow: string;
14
+ };
15
+ };
16
+ body: {
17
+ padding: string;
18
+ };
19
+ chevronWrapper: {
20
+ width: string;
21
+ height: string;
22
+ marginLeft: string;
23
+ };
24
+ chevron: {
25
+ width: string;
26
+ height: string;
27
+ };
28
+ };
@@ -1,14 +1,14 @@
1
1
  import { CheckboxProps } 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
  error?: boolean | undefined;
7
7
  disabled?: boolean | undefined;
8
8
  readOnly?: boolean | undefined;
9
9
  indeterminate?: boolean | undefined;
10
10
  } & import("../../types").CheckboxPickedHTMLAttributes & {
11
- htmlProps?: Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "defaultChecked" | "defaultValue" | "aria-describedby" | "onBlur" | "onChange" | "name" | "value" | "checked"> | undefined;
11
+ htmlProps?: Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "onBlur" | "name" | "value" | "defaultChecked" | "defaultValue" | "aria-describedby" | "onChange" | "checked"> | undefined;
12
12
  } & import("react").RefAttributes<HTMLInputElement>>;
13
13
  argTypes: {
14
14
  label: {
@@ -1,5 +1,4 @@
1
- import { BaseComponentPropsWithChildren } from '../../types';
2
- declare type Direction = 'column' | 'row';
1
+ import { BaseComponentPropsWithChildren, Direction } from '../../types';
3
2
  export declare type CheckboxGroupProps = BaseComponentPropsWithChildren<HTMLDivElement, {
4
3
  /**Ledetekst for gruppen. */
5
4
  label?: string;
@@ -14,4 +13,3 @@ export declare type CheckboxGroupProps = BaseComponentPropsWithChildren<HTMLDivE
14
13
  required?: boolean;
15
14
  }>;
16
15
  export declare const CheckboxGroup: (props: CheckboxGroupProps) => JSX.Element;
17
- export {};