@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.
- package/README.md +2 -1
- package/dist/assets/svg/bullets/jordskifterett_bullet1.svg.js +2 -2
- package/dist/cjs/components/Breadcrumbs/Breadcrumb.tokens.d.ts +2 -8
- package/dist/cjs/components/Button/Button.stories.d.ts +4 -4
- package/dist/cjs/components/Button/Button.styles.d.ts +1 -0
- package/dist/cjs/components/Button/Button.tokens.d.ts +294 -165
- package/dist/cjs/components/Card/Card.tokens.d.ts +17 -16
- package/dist/cjs/components/Card/CardAccordion/CardAccordion.tokens.d.ts +28 -0
- package/dist/cjs/components/Checkbox/Checkbox.stories.d.ts +2 -2
- package/dist/cjs/components/Checkbox/CheckboxGroup.d.ts +1 -3
- package/dist/cjs/components/Chip/Chip.tokens.d.ts +8 -6
- package/dist/cjs/components/DescriptionList/DescriptionList.tokens.d.ts +6 -36
- package/dist/cjs/components/Divider/Divider.tokens.d.ts +11 -6
- package/dist/cjs/components/Drawer/Drawer.tokens.d.ts +3 -11
- package/dist/cjs/components/GlobalMessage/GlobalMessage.tokens.d.ts +24 -22
- package/dist/cjs/components/Grid/Grid.d.ts +8 -7
- package/dist/cjs/components/Grid/Grid.tokens.d.ts +5 -5
- package/dist/cjs/components/InternalHeader/InternalHeader.styles.d.ts +3 -2
- package/dist/cjs/components/InternalHeader/InternalHeader.tokens.d.ts +4 -9
- package/dist/cjs/components/List/List.d.ts +1 -1
- package/dist/cjs/components/List/List.tokens.d.ts +21 -9
- package/dist/cjs/components/LocalMessage/LocalMessage.tokens.d.ts +49 -53
- package/dist/cjs/components/Modal/Modal.tokens.d.ts +5 -6
- package/dist/cjs/components/OverflowMenu/OverflowMenu.d.ts +4 -3
- package/dist/cjs/components/OverflowMenu/OverflowMenu.stories.d.ts +4 -3
- package/dist/cjs/components/OverflowMenu/OverflowMenu.tokens.d.ts +2 -8
- package/dist/cjs/components/OverflowMenu/OverflowMenu.types.d.ts +8 -6
- package/dist/cjs/components/Pagination/Pagination.tokens.d.ts +7 -8
- package/dist/cjs/components/Popover/Popover.tokens.d.ts +0 -1
- package/dist/cjs/components/ProgressTracker/ProgressTracker.tokens.d.ts +9 -6
- package/dist/cjs/components/RadioButton/RadioButton.stories.d.ts +4 -4
- package/dist/cjs/components/RadioButton/RadioButtonGroup.d.ts +2 -4
- package/dist/cjs/components/RadioButton/RadioButtonGroup.stories.d.ts +1 -1
- package/dist/cjs/components/Search/Search.tokens.d.ts +5 -24
- package/dist/cjs/components/Select/Select.tokens.d.ts +14 -127
- package/dist/cjs/components/SkipToContent/SkipToContent.d.ts +2 -2
- package/dist/cjs/components/SkipToContent/SkipToContent.stories.d.ts +1 -1
- package/dist/cjs/components/SkipToContent/SkipToContent.tokens.d.ts +5 -10
- package/dist/cjs/components/SplitButton/SplitButton.d.ts +11 -0
- package/dist/cjs/components/SplitButton/SplitButton.stories.d.ts +9 -0
- package/dist/cjs/components/SplitButton/index.d.ts +1 -0
- package/dist/cjs/components/Table/Table.tokens.d.ts +0 -19
- package/dist/cjs/components/Tabs/Tabs.tokens.d.ts +21 -22
- package/dist/cjs/components/Tag/Tag.d.ts +1 -1
- package/dist/cjs/components/Tag/Tag.tokens.d.ts +19 -14
- package/dist/cjs/components/TextInput/TextInput.tokens.d.ts +0 -3
- package/dist/cjs/components/ToggleBar/ToggleBar.tokens.d.ts +5 -32
- package/dist/cjs/components/ToggleButton/ToggleButton.stories.d.ts +2 -2
- package/dist/cjs/components/ToggleButton/ToggleButton.tokens.d.ts +23 -13
- package/dist/cjs/components/Tooltip/Tooltip.stories.d.ts +2 -2
- package/dist/cjs/components/Tooltip/Tooltip.styles.d.ts +4 -1
- package/dist/cjs/components/Tooltip/Tooltip.tokens.d.ts +1 -2
- package/dist/cjs/components/Typography/Typography.utils.d.ts +195 -1
- package/dist/cjs/helpers/Input/Input.tokens.d.ts +2 -68
- package/dist/cjs/helpers/Input/Input.types.d.ts +4 -0
- package/dist/cjs/helpers/SelectionControl/SelectionControl.styles.d.ts +5 -0
- package/dist/cjs/helpers/SelectionControl/SelectionControl.tokens.d.ts +11 -0
- package/dist/cjs/helpers/TextOverflowEllipsis/TextOverflowEllipsis.d.ts +2 -0
- package/dist/cjs/helpers/TextOverflowEllipsis/index.d.ts +1 -0
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.js +1475 -1823
- package/dist/cjs/utils/color.d.ts +1 -1
- package/dist/components/Breadcrumbs/Breadcrumb.tokens.d.ts +2 -8
- package/dist/components/Breadcrumbs/Breadcrumb.tokens.js +3 -4
- package/dist/components/Breadcrumbs/Breadcrumbs.js +3 -2
- package/dist/components/Button/Button.js +7 -4
- package/dist/components/Button/Button.stories.d.ts +4 -4
- package/dist/components/Button/Button.styles.d.ts +1 -0
- package/dist/components/Button/Button.styles.js +49 -24
- package/dist/components/Button/Button.tokens.d.ts +294 -165
- package/dist/components/Button/Button.tokens.js +232 -349
- package/dist/components/Card/Card.js +6 -5
- package/dist/components/Card/Card.tokens.d.ts +17 -16
- package/dist/components/Card/Card.tokens.js +26 -54
- package/dist/components/Card/CardAccordion/CardAccordion.tokens.d.ts +28 -0
- package/dist/components/Card/CardAccordion/CardAccordion.tokens.js +37 -0
- package/dist/components/Card/CardAccordion/CardAccordionBody.js +4 -3
- package/dist/components/Card/CardAccordion/CardAccordionHeader.js +9 -6
- package/dist/components/Checkbox/Checkbox.stories.d.ts +2 -2
- package/dist/components/Checkbox/CheckboxGroup.d.ts +1 -3
- package/dist/components/Checkbox/CheckboxGroup.js +3 -16
- package/dist/components/Chip/Chip.js +9 -9
- package/dist/components/Chip/Chip.tokens.d.ts +8 -6
- package/dist/components/Chip/Chip.tokens.js +8 -25
- package/dist/components/Chip/ChipGroup.js +1 -1
- package/dist/components/DescriptionList/DescriptionList.js +3 -2
- package/dist/components/DescriptionList/DescriptionList.tokens.d.ts +6 -36
- package/dist/components/DescriptionList/DescriptionList.tokens.js +7 -18
- package/dist/components/DescriptionList/DescriptionListDesc.js +3 -2
- package/dist/components/Divider/Divider.js +6 -6
- package/dist/components/Divider/Divider.tokens.d.ts +11 -6
- package/dist/components/Divider/Divider.tokens.js +16 -16
- package/dist/components/Drawer/Drawer.js +11 -4
- package/dist/components/Drawer/Drawer.tokens.d.ts +3 -11
- package/dist/components/Drawer/Drawer.tokens.js +10 -26
- package/dist/components/GlobalMessage/GlobalMessage.js +13 -10
- package/dist/components/GlobalMessage/GlobalMessage.tokens.d.ts +24 -22
- package/dist/components/GlobalMessage/GlobalMessage.tokens.js +45 -64
- package/dist/components/Grid/Grid.d.ts +8 -7
- package/dist/components/Grid/Grid.js +7 -5
- package/dist/components/Grid/Grid.tokens.d.ts +5 -5
- package/dist/components/Grid/Grid.tokens.js +5 -5
- package/dist/components/InternalHeader/InternalHeader.styles.d.ts +3 -2
- package/dist/components/InternalHeader/InternalHeader.tokens.d.ts +4 -9
- package/dist/components/InternalHeader/InternalHeader.tokens.js +6 -6
- package/dist/components/InternalHeader/NavigationItem.js +3 -2
- package/dist/components/List/List.d.ts +1 -1
- package/dist/components/List/List.js +8 -7
- package/dist/components/List/List.tokens.d.ts +21 -9
- package/dist/components/List/List.tokens.js +26 -20
- package/dist/components/List/ListItem.js +2 -2
- package/dist/components/LocalMessage/LocalMessage.js +19 -15
- package/dist/components/LocalMessage/LocalMessage.tokens.d.ts +49 -53
- package/dist/components/LocalMessage/LocalMessage.tokens.js +94 -127
- package/dist/components/Modal/Modal.js +9 -5
- package/dist/components/Modal/Modal.tokens.d.ts +5 -6
- package/dist/components/Modal/Modal.tokens.js +11 -31
- package/dist/components/Modal/ModalActions.js +1 -1
- package/dist/components/OverflowMenu/OverflowMenu.d.ts +4 -3
- package/dist/components/OverflowMenu/OverflowMenu.js +12 -3
- package/dist/components/OverflowMenu/OverflowMenu.stories.d.ts +4 -3
- package/dist/components/OverflowMenu/OverflowMenu.tokens.d.ts +2 -8
- package/dist/components/OverflowMenu/OverflowMenu.tokens.js +5 -5
- package/dist/components/OverflowMenu/OverflowMenu.types.d.ts +8 -6
- package/dist/components/OverflowMenu/OverflowMenuGroup.js +1 -0
- package/dist/components/OverflowMenu/OverflowMenuItem.js +3 -2
- package/dist/components/Pagination/Pagination.js +13 -8
- package/dist/components/Pagination/Pagination.tokens.d.ts +7 -8
- package/dist/components/Pagination/Pagination.tokens.js +17 -16
- package/dist/components/Popover/Popover.tokens.d.ts +0 -1
- package/dist/components/Popover/Popover.tokens.js +0 -1
- package/dist/components/ProgressTracker/ProgressTracker.tokens.d.ts +9 -6
- package/dist/components/ProgressTracker/ProgressTracker.tokens.js +11 -9
- package/dist/components/ProgressTracker/ProgressTrackerItem.js +7 -6
- package/dist/components/RadioButton/RadioButton.stories.d.ts +4 -4
- package/dist/components/RadioButton/RadioButtonGroup.d.ts +2 -4
- package/dist/components/RadioButton/RadioButtonGroup.js +3 -15
- package/dist/components/RadioButton/RadioButtonGroup.stories.d.ts +1 -1
- package/dist/components/Search/Search.js +3 -2
- package/dist/components/Search/Search.tokens.d.ts +5 -24
- package/dist/components/Search/Search.tokens.js +6 -5
- package/dist/components/Select/Select.js +5 -4
- package/dist/components/Select/Select.styles.js +13 -14
- package/dist/components/Select/Select.tokens.d.ts +14 -127
- package/dist/components/Select/Select.tokens.js +28 -36
- package/dist/components/SkipToContent/SkipToContent.d.ts +2 -2
- package/dist/components/SkipToContent/SkipToContent.js +7 -4
- package/dist/components/SkipToContent/SkipToContent.stories.d.ts +1 -1
- package/dist/components/SkipToContent/SkipToContent.tokens.d.ts +5 -10
- package/dist/components/SkipToContent/SkipToContent.tokens.js +14 -37
- package/dist/components/Spinner/Spinner.js +1 -2
- package/dist/components/SplitButton/SplitButton.d.ts +11 -0
- package/dist/components/SplitButton/SplitButton.js +62 -0
- package/dist/components/SplitButton/SplitButton.stories.d.ts +9 -0
- package/dist/components/SplitButton/index.d.ts +1 -0
- package/dist/components/Table/Row.js +2 -1
- package/dist/components/Table/Table.tokens.d.ts +0 -19
- package/dist/components/Table/Table.tokens.js +1 -8
- package/dist/components/Tabs/Tab.js +8 -5
- package/dist/components/Tabs/TabPanel.js +4 -3
- package/dist/components/Tabs/Tabs.tokens.d.ts +21 -22
- package/dist/components/Tabs/Tabs.tokens.js +31 -79
- package/dist/components/Tag/Tag.d.ts +1 -1
- package/dist/components/Tag/Tag.js +8 -21
- package/dist/components/Tag/Tag.tokens.d.ts +19 -14
- package/dist/components/Tag/Tag.tokens.js +14 -41
- package/dist/components/TextArea/TextArea.js +3 -2
- package/dist/components/TextInput/TextInput.tokens.d.ts +0 -3
- package/dist/components/TextInput/TextInput.tokens.js +0 -3
- package/dist/components/ToggleBar/ToggleBar.tokens.d.ts +5 -32
- package/dist/components/ToggleBar/ToggleBar.tokens.js +7 -5
- package/dist/components/ToggleBar/ToggleRadio.styles.js +3 -2
- package/dist/components/ToggleButton/ToggleButton.js +14 -8
- package/dist/components/ToggleButton/ToggleButton.stories.d.ts +2 -2
- package/dist/components/ToggleButton/ToggleButton.tokens.d.ts +23 -13
- package/dist/components/ToggleButton/ToggleButton.tokens.js +26 -49
- package/dist/components/ToggleButton/ToggleButtonGroup.js +2 -2
- package/dist/components/Tooltip/Tooltip.js +6 -2
- package/dist/components/Tooltip/Tooltip.stories.d.ts +2 -2
- package/dist/components/Tooltip/Tooltip.styles.d.ts +4 -1
- package/dist/components/Tooltip/Tooltip.styles.js +15 -4
- package/dist/components/Tooltip/Tooltip.tokens.d.ts +1 -2
- package/dist/components/Tooltip/Tooltip.tokens.js +14 -24
- package/dist/components/Typography/Typography.utils.d.ts +195 -1
- package/dist/components/Typography/Typography.utils.js +7 -1
- package/dist/helpers/Input/Input.styles.js +3 -2
- package/dist/helpers/Input/Input.tokens.d.ts +2 -68
- package/dist/helpers/Input/Input.tokens.js +10 -46
- package/dist/helpers/Input/Input.types.d.ts +4 -0
- package/dist/helpers/SelectionControl/SelectionControl.styles.d.ts +5 -0
- package/dist/helpers/SelectionControl/SelectionControl.styles.js +15 -2
- package/dist/helpers/SelectionControl/SelectionControl.tokens.d.ts +11 -0
- package/dist/helpers/SelectionControl/SelectionControl.tokens.js +14 -1
- package/dist/helpers/TextOverflowEllipsis/TextOverflowEllipsis.d.ts +2 -0
- package/dist/helpers/TextOverflowEllipsis/TextOverflowEllipsis.js +12 -0
- package/dist/helpers/TextOverflowEllipsis/index.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/utils/color.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cjs/components/Card/CardAccordion/CardAccordionBody.tokens.d.ts +0 -4
- package/dist/cjs/components/Card/CardAccordion/CardAccordionHeader.tokens.d.ts +0 -17
- package/dist/cjs/components/List/ListItem.tokens.d.ts +0 -5
- package/dist/cjs/components/RadioButton/RadioButtonGroup.tokens.d.ts +0 -19
- package/dist/cjs/components/Spinner/Spinner.tokens.d.ts +0 -6
- package/dist/components/Card/CardAccordion/CardAccordionBody.tokens.d.ts +0 -4
- package/dist/components/Card/CardAccordion/CardAccordionBody.tokens.js +0 -12
- package/dist/components/Card/CardAccordion/CardAccordionHeader.tokens.d.ts +0 -17
- package/dist/components/Card/CardAccordion/CardAccordionHeader.tokens.js +0 -38
- package/dist/components/Checkbox/CheckboxGroup.tokens.js +0 -20
- package/dist/components/List/ListItem.tokens.d.ts +0 -5
- package/dist/components/List/ListItem.tokens.js +0 -12
- package/dist/components/RadioButton/RadioButtonGroup.tokens.d.ts +0 -19
- package/dist/components/RadioButton/RadioButtonGroup.tokens.js +0 -32
- package/dist/components/Spinner/Spinner.tokens.d.ts +0 -6
- package/dist/components/Spinner/Spinner.tokens.js +0 -13
|
@@ -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: {
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
import { ddsBaseTokens, ddsReferenceTokens } from '@norges-domstoler/dds-design-tokens';
|
|
2
|
+
import '../../helpers/Backdrop/Backdrop.js';
|
|
3
|
+
import 'react/jsx-runtime';
|
|
4
|
+
import '../../helpers/Chevron/AnimatedChevronUpDown.styles.js';
|
|
5
|
+
import '../../helpers/HiddenInput/HiddenInput.js';
|
|
6
|
+
import '../../helpers/Input/Input.styles.js';
|
|
7
|
+
import { inputTypographyTypes } from '../../helpers/Input/Input.tokens.js';
|
|
8
|
+
import '../InputMessage/InputMessage.js';
|
|
9
|
+
import '../../helpers/Paper/Paper.js';
|
|
10
|
+
import '../../helpers/RequiredMarker/RequiredMarker.js';
|
|
2
11
|
import { calculateHeightWithLineHeight } from '../../utils/text.js';
|
|
3
12
|
import '../../utils/color.js';
|
|
4
13
|
|
|
@@ -7,7 +16,20 @@ var colors = ddsBaseTokens.colors,
|
|
|
7
16
|
fontPackages = ddsBaseTokens.fontPackages,
|
|
8
17
|
borderRadius = ddsBaseTokens.borderRadius,
|
|
9
18
|
border = ddsBaseTokens.border;
|
|
10
|
-
var textDefault = ddsReferenceTokens.textDefault;
|
|
19
|
+
var textDefault = ddsReferenceTokens.textDefault;
|
|
20
|
+
var placeholderTypographyTypes = {
|
|
21
|
+
medium: 'supportingStylePlaceholderText01',
|
|
22
|
+
small: 'supportingStylePlaceholderText02',
|
|
23
|
+
tiny: 'supportingStylePlaceholderText03'
|
|
24
|
+
};
|
|
25
|
+
var typographyTypes = {
|
|
26
|
+
control: inputTypographyTypes,
|
|
27
|
+
option: inputTypographyTypes,
|
|
28
|
+
placeholder: placeholderTypographyTypes,
|
|
29
|
+
noOptionsMessage: placeholderTypographyTypes,
|
|
30
|
+
groupHeading: 'supportingStyleHelperText01',
|
|
31
|
+
multiValueLabel: 'bodySans01'
|
|
32
|
+
}; //custom spacing so that multiselect has same height as single value select
|
|
11
33
|
|
|
12
34
|
var controlPaddingBottomMultiMedium = "".concat(spacing.SizesDdsSpacingLocalX075NumberPx - 1, "px");
|
|
13
35
|
var controlPaddingBottomMultiSmall = "".concat(spacing.SizesDdsSpacingLocalX05NumberPx - 1, "px");
|
|
@@ -38,32 +60,18 @@ var control = {
|
|
|
38
60
|
},
|
|
39
61
|
sizes: {
|
|
40
62
|
medium: {
|
|
41
|
-
font: fontPackages.body_sans_02.base,
|
|
42
63
|
padding: "".concat(spacing.SizesDdsSpacingLocalX075, " ").concat(spacing.SizesDdsSpacingLocalX05, " ").concat(spacing.SizesDdsSpacingLocalX075, " ").concat(spacing.SizesDdsSpacingLocalX075)
|
|
43
64
|
},
|
|
44
65
|
small: {
|
|
45
|
-
font: fontPackages.body_sans_01.base,
|
|
46
66
|
padding: "".concat(spacing.SizesDdsSpacingLocalX05, " ").concat(spacing.SizesDdsSpacingLocalX05, " ").concat(spacing.SizesDdsSpacingLocalX05, " ").concat(spacing.SizesDdsSpacingLocalX075)
|
|
47
67
|
},
|
|
48
68
|
tiny: {
|
|
49
|
-
font: fontPackages.supportingStyle_tiny_01.base,
|
|
50
69
|
padding: "".concat(spacing.SizesDdsSpacingLocalX025, " ").concat(spacing.SizesDdsSpacingLocalX05, " ").concat(spacing.SizesDdsSpacingLocalX025, " ").concat(spacing.SizesDdsSpacingLocalX05)
|
|
51
70
|
}
|
|
52
71
|
}
|
|
53
72
|
};
|
|
54
73
|
var placeholder = {
|
|
55
|
-
color: colors.DdsColorNeutralsGray6
|
|
56
|
-
sizes: {
|
|
57
|
-
medium: {
|
|
58
|
-
font: fontPackages.supportingStyle_placeholdertext_01.base
|
|
59
|
-
},
|
|
60
|
-
small: {
|
|
61
|
-
font: fontPackages.supportingStyle_placeholdertext_02.base
|
|
62
|
-
},
|
|
63
|
-
tiny: {
|
|
64
|
-
font: fontPackages.supportingStyle_placeholdertext_03.base
|
|
65
|
-
}
|
|
66
|
-
}
|
|
74
|
+
color: colors.DdsColorNeutralsGray6
|
|
67
75
|
};
|
|
68
76
|
var dropdownIndicator = {
|
|
69
77
|
base: {
|
|
@@ -97,15 +105,12 @@ var menu = {
|
|
|
97
105
|
};
|
|
98
106
|
var groupHeading = {
|
|
99
107
|
color: colors.DdsColorNeutralsGray7,
|
|
100
|
-
font: fontPackages.supportingStyle_helpertext_01.base,
|
|
101
108
|
padding: "".concat(spacing.SizesDdsSpacingLocalX05, " ").concat(spacing.SizesDdsSpacingLocalX075, " ").concat(spacing.SizesDdsSpacingLocalX0125, " ").concat(spacing.SizesDdsSpacingLocalX075)
|
|
102
109
|
};
|
|
103
110
|
var option = {
|
|
104
111
|
base: {
|
|
105
112
|
gap: spacing.SizesDdsSpacingLocalX05,
|
|
106
113
|
padding: "".concat(spacing.SizesDdsSpacingLocalX075),
|
|
107
|
-
font: fontPackages.body_sans_02.base,
|
|
108
|
-
color: textDefault.textColor,
|
|
109
114
|
backgroundColor: colors.DdsColorNeutralsWhite
|
|
110
115
|
},
|
|
111
116
|
hover: {
|
|
@@ -116,25 +121,13 @@ var option = {
|
|
|
116
121
|
color: textDefault.textColor,
|
|
117
122
|
backgroundColor: colors.DdsColorInteractiveLightest
|
|
118
123
|
},
|
|
119
|
-
selected:
|
|
124
|
+
selected: {
|
|
120
125
|
backgroundColor: colors.DdsColorNeutralsWhite
|
|
121
|
-
}, fontPackages.body_sans_02.base),
|
|
122
|
-
sizes: {
|
|
123
|
-
medium: {
|
|
124
|
-
font: fontPackages.body_sans_02.base
|
|
125
|
-
},
|
|
126
|
-
small: {
|
|
127
|
-
font: fontPackages.body_sans_01.base
|
|
128
|
-
},
|
|
129
|
-
tiny: {
|
|
130
|
-
font: fontPackages.supportingStyle_tiny_01.base
|
|
131
|
-
}
|
|
132
126
|
}
|
|
133
127
|
};
|
|
134
128
|
var noOptionsMessage = {
|
|
135
129
|
padding: "".concat(spacing.SizesDdsSpacingLocalX05, " ").concat(spacing.SizesDdsSpacingLocalX1),
|
|
136
|
-
color: colors.DdsColorNeutralsGray6
|
|
137
|
-
font: fontPackages.supportingStyle_placeholdertext_01.base
|
|
130
|
+
color: colors.DdsColorNeutralsGray6
|
|
138
131
|
};
|
|
139
132
|
var multiValue = {
|
|
140
133
|
base: {
|
|
@@ -149,8 +142,7 @@ var multiValue = {
|
|
|
149
142
|
};
|
|
150
143
|
var multiValueLabel = {
|
|
151
144
|
padding: "".concat(spacing.SizesDdsSpacingLocalX0125, " ").concat(spacing.SizesDdsSpacingLocalX025),
|
|
152
|
-
color: colors.DdsColorNeutralsGray9
|
|
153
|
-
font: fontPackages.body_sans_01.base
|
|
145
|
+
color: colors.DdsColorNeutralsGray9
|
|
154
146
|
};
|
|
155
147
|
var multiValueRemove = {
|
|
156
148
|
base: {
|
|
@@ -196,4 +188,4 @@ var selectTokens = {
|
|
|
196
188
|
icon: icon
|
|
197
189
|
};
|
|
198
190
|
|
|
199
|
-
export { selectTokens };
|
|
191
|
+
export { selectTokens, typographyTypes };
|
|
@@ -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
|
|
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<
|
|
17
|
+
top?: Property.Top<0 | (string & {})> | undefined;
|
|
18
18
|
} & {
|
|
19
19
|
htmlProps?: import("react").HTMLAttributes<HTMLAnchorElement> | undefined;
|
|
20
20
|
} & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
@@ -3,24 +3,27 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import styled from 'styled-components';
|
|
5
5
|
import { skipToContentTokens } from './SkipToContent.tokens.js';
|
|
6
|
-
import { focusVisibleTransitionValue } from '../../helpers/styling/focusVisible.js';
|
|
6
|
+
import { focusVisibleTransitionValue, focusVisibleOnDark } from '../../helpers/styling/focusVisible.js';
|
|
7
7
|
import '../../helpers/styling/hover.js';
|
|
8
8
|
import '../../helpers/styling/focus.js';
|
|
9
9
|
import '../../helpers/styling/danger.js';
|
|
10
10
|
import '../../helpers/styling/selection.js';
|
|
11
11
|
import { joinClassNames, getBaseHTMLProps } from '../../types/BaseComponentProps.js';
|
|
12
|
+
import { getFontStyling, defaultTypographyType } from '../Typography/Typography.utils.js';
|
|
12
13
|
|
|
14
|
+
var wrapper = skipToContentTokens.wrapper,
|
|
15
|
+
link = skipToContentTokens.link;
|
|
13
16
|
var Wrapper = styled.div.withConfig({
|
|
14
17
|
displayName: "SkipToContent__Wrapper",
|
|
15
18
|
componentId: "sc-57o1qv-0"
|
|
16
|
-
})(["box-sizing:border-box;position:absolute;top:", ";text-align:center;
|
|
19
|
+
})(["box-sizing:border-box;position:absolute;top:", ";text-align:center;overflow:hidden;clip:rect(1px,1px,1px,1px);height:1px;width:1px;white-space:nowrap;background-color:", ";padding:", ";opacity:0;@media (prefers-reduced-motion:no-preference){transition:opacity 0.2s;}&:focus-within{clip:auto;height:auto;overflow:auto;width:100%;z-index:200;opacity:1;}"], function (_ref) {
|
|
17
20
|
var top = _ref.top;
|
|
18
21
|
return top;
|
|
19
|
-
},
|
|
22
|
+
}, wrapper.backgroundColor, wrapper.padding);
|
|
20
23
|
var Link = styled.a.withConfig({
|
|
21
24
|
displayName: "SkipToContent__Link",
|
|
22
25
|
componentId: "sc-57o1qv-1"
|
|
23
|
-
})(["", "
|
|
26
|
+
})(["text-decoration:none;color:", ";", " @media (prefers-reduced-motion:no-preference){transition:", ";}&:focus{", "}&:hover{color:", ";}"], link.base.color, getFontStyling(defaultTypographyType), focusVisibleTransitionValue, focusVisibleOnDark, link.base.color);
|
|
24
27
|
var SkipToContent = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
25
28
|
var _props$text = props.text,
|
|
26
29
|
text = _props$text === void 0 ? 'Til hovedinnhold' : _props$text,
|
|
@@ -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<
|
|
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:
|
|
5
|
-
|
|
6
|
-
base: CSSObject;
|
|
7
|
-
};
|
|
8
|
-
focus: {
|
|
9
|
-
base: CSSObject;
|
|
3
|
+
base: {
|
|
4
|
+
color: string;
|
|
10
5
|
};
|
|
11
|
-
|
|
6
|
+
hover: {
|
|
12
7
|
color: string;
|
|
13
|
-
width: string;
|
|
14
8
|
};
|
|
15
9
|
};
|
|
16
10
|
wrapper: {
|
|
17
|
-
|
|
11
|
+
backgroundColor: string;
|
|
12
|
+
padding: string;
|
|
18
13
|
};
|
|
19
14
|
};
|
|
@@ -1,45 +1,22 @@
|
|
|
1
1
|
import { ddsBaseTokens } from '@norges-domstoler/dds-design-tokens';
|
|
2
|
-
import 'styled-components';
|
|
3
|
-
import { focusVisibleOnDark } from '../../helpers/styling/focusVisible.js';
|
|
4
|
-
import '../../helpers/styling/hover.js';
|
|
5
|
-
import '../../helpers/styling/focus.js';
|
|
6
|
-
import '../../helpers/styling/danger.js';
|
|
7
|
-
import '../../helpers/styling/selection.js';
|
|
8
2
|
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
var linkHoverBase = {
|
|
19
|
-
color: Colors.DdsColorNeutralsWhite
|
|
3
|
+
var colors = ddsBaseTokens.colors,
|
|
4
|
+
spacing = ddsBaseTokens.spacing;
|
|
5
|
+
var link = {
|
|
6
|
+
base: {
|
|
7
|
+
color: colors.DdsColorNeutralsWhite
|
|
8
|
+
},
|
|
9
|
+
hover: {
|
|
10
|
+
color: colors.DdsColorNeutralsWhite
|
|
11
|
+
}
|
|
20
12
|
};
|
|
21
|
-
var
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
padding: Spacing.SizesDdsSpacingLocalX025
|
|
13
|
+
var wrapper = {
|
|
14
|
+
backgroundColor: colors.DdsColorPrimaryBase,
|
|
15
|
+
padding: spacing.SizesDdsSpacingLocalX025
|
|
25
16
|
};
|
|
26
17
|
var skipToContentTokens = {
|
|
27
|
-
link:
|
|
28
|
-
|
|
29
|
-
hover: {
|
|
30
|
-
base: linkHoverBase
|
|
31
|
-
},
|
|
32
|
-
focus: {
|
|
33
|
-
base: linkFocusBase
|
|
34
|
-
},
|
|
35
|
-
focusOutline: {
|
|
36
|
-
color: Colors.DdsColorWarningDark,
|
|
37
|
-
width: Border.BordersDdsBorderFocusBaseStrokeWeight
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
wrapper: {
|
|
41
|
-
base: wrapperBase
|
|
42
|
-
}
|
|
18
|
+
link: link,
|
|
19
|
+
wrapper: wrapper
|
|
43
20
|
};
|
|
44
21
|
|
|
45
22
|
export { skipToContentTokens };
|
|
@@ -4,7 +4,6 @@ import React, { useId } from 'react';
|
|
|
4
4
|
import styled from 'styled-components';
|
|
5
5
|
import { getTextColor } from '../../utils/color.js';
|
|
6
6
|
import { ddsBaseTokens } from '@norges-domstoler/dds-design-tokens';
|
|
7
|
-
import { spinnerTokens } from './Spinner.tokens.js';
|
|
8
7
|
import { getBaseHTMLProps } from '../../types/BaseComponentProps.js';
|
|
9
8
|
|
|
10
9
|
var StyledSpinner = styled.svg.withConfig({
|
|
@@ -23,7 +22,7 @@ var StyledSpinner = styled.svg.withConfig({
|
|
|
23
22
|
var Circle = styled.circle.withConfig({
|
|
24
23
|
displayName: "Spinner__Circle",
|
|
25
24
|
componentId: "sc-13hsttm-1"
|
|
26
|
-
})(["
|
|
25
|
+
})(["stroke:", ";stroke-linecap:round;@media (prefers-reduced-motion:no-preference){animation:dash 1.5s ease-in-out infinite;animation-delay:", "ms;@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0;}50%{stroke-dasharray:90,150;stroke-dashoffset:-35;}100%{stroke-dasharray:90,150;stroke-dashoffset:-124;}}}"], function (_ref4) {
|
|
27
26
|
var color = _ref4.color;
|
|
28
27
|
return color && getTextColor(color);
|
|
29
28
|
}, function (_ref5) {
|
|
@@ -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,62 @@
|
|
|
1
|
+
import { slicedToArray as _slicedToArray } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import { __rest } from 'tslib';
|
|
3
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
|
+
import { forwardRef, useState } from 'react';
|
|
5
|
+
import styled from 'styled-components';
|
|
6
|
+
import '../../icons/utils/StyledSvg.js';
|
|
7
|
+
import { ChevronDownIcon } from '../../icons/tsx/chevronDown.js';
|
|
8
|
+
import { ChevronUpIcon } from '../../icons/tsx/chevronUp.js';
|
|
9
|
+
import { Button } from '../Button/Button.js';
|
|
10
|
+
import { OverflowMenu } from '../OverflowMenu/OverflowMenu.js';
|
|
11
|
+
import { OverflowMenuGroup } from '../OverflowMenu/OverflowMenuGroup.js';
|
|
12
|
+
|
|
13
|
+
var Container = styled.div.withConfig({
|
|
14
|
+
displayName: "SplitButton__Container",
|
|
15
|
+
componentId: "sc-ybpqu3-0"
|
|
16
|
+
})(["display:flex;"]);
|
|
17
|
+
var MainButton = styled(Button).withConfig({
|
|
18
|
+
displayName: "SplitButton__MainButton",
|
|
19
|
+
componentId: "sc-ybpqu3-1"
|
|
20
|
+
})(["border-top-right-radius:0;border-bottom-right-radius:0;border-right:none;&:focus{position:relative;z-index:0;}"]);
|
|
21
|
+
var OptionButton = styled(Button).withConfig({
|
|
22
|
+
displayName: "SplitButton__OptionButton",
|
|
23
|
+
componentId: "sc-ybpqu3-2"
|
|
24
|
+
})(["border-top-left-radius:0;border-bottom-left-radius:0;&:focus{position:relative;z-index:0;}"]);
|
|
25
|
+
var SplitButton = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
26
|
+
var size = props.size,
|
|
27
|
+
primaryAction = props.primaryAction,
|
|
28
|
+
secondaryActions = props.secondaryActions;
|
|
29
|
+
__rest(props, ["size", "primaryAction", "secondaryActions"]);
|
|
30
|
+
|
|
31
|
+
var _useState = useState(false),
|
|
32
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
33
|
+
isOpen = _useState2[0],
|
|
34
|
+
setIsOpen = _useState2[1];
|
|
35
|
+
|
|
36
|
+
var buttonStyleProps = {
|
|
37
|
+
appearance: 'filled',
|
|
38
|
+
purpose: 'secondary',
|
|
39
|
+
size: size
|
|
40
|
+
};
|
|
41
|
+
return jsxs(Container, Object.assign({
|
|
42
|
+
ref: ref
|
|
43
|
+
}, {
|
|
44
|
+
children: [jsx(MainButton, Object.assign({}, buttonStyleProps, primaryAction, {
|
|
45
|
+
iconPosition: "left"
|
|
46
|
+
})), jsxs(OverflowMenuGroup, Object.assign({
|
|
47
|
+
onToggle: function onToggle() {
|
|
48
|
+
return setIsOpen(!isOpen);
|
|
49
|
+
}
|
|
50
|
+
}, {
|
|
51
|
+
children: [jsx(OptionButton, Object.assign({}, buttonStyleProps, {
|
|
52
|
+
icon: isOpen ? ChevronUpIcon : ChevronDownIcon,
|
|
53
|
+
"aria-label": "\xC5pne liste med flere valg"
|
|
54
|
+
})), jsx(OverflowMenu, {
|
|
55
|
+
items: secondaryActions,
|
|
56
|
+
placement: "bottom-end"
|
|
57
|
+
})]
|
|
58
|
+
}))]
|
|
59
|
+
}));
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
export { SplitButton };
|
|
@@ -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';
|
|
@@ -7,6 +7,7 @@ import '../../helpers/styling/hover.js';
|
|
|
7
7
|
import '../../helpers/styling/focus.js';
|
|
8
8
|
import '../../helpers/styling/danger.js';
|
|
9
9
|
import '../../helpers/styling/selection.js';
|
|
10
|
+
import { getFontStyling, defaultTypographyType } from '../Typography/Typography.utils.js';
|
|
10
11
|
import { tableTokens } from './Table.tokens.js';
|
|
11
12
|
|
|
12
13
|
var row = tableTokens.row;
|
|
@@ -18,7 +19,7 @@ var bodyStyles = function bodyStyles(mode, selected) {
|
|
|
18
19
|
var StyledRow = styled.tr.withConfig({
|
|
19
20
|
displayName: "Row__StyledRow",
|
|
20
21
|
componentId: "sc-15vvjkk-0"
|
|
21
|
-
})(["@media (prefers-reduced-motion:no-preference){transition:background-color 0.2s,border-color 0.2s,box-shadow 0.2s;}", "
|
|
22
|
+
})(["@media (prefers-reduced-motion:no-preference){transition:background-color 0.2s,border-color 0.2s,box-shadow 0.2s;}", " ", " ", ""], getFontStyling(defaultTypographyType, true), function (_ref) {
|
|
22
23
|
var type = _ref.type;
|
|
23
24
|
return type === 'head' && css(["font-weight:600;text-align:left;"]);
|
|
24
25
|
}, function (_ref2) {
|
|
@@ -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,15 +1,9 @@
|
|
|
1
|
-
import { ddsBaseTokens
|
|
1
|
+
import { ddsBaseTokens } from '@norges-domstoler/dds-design-tokens';
|
|
2
2
|
|
|
3
3
|
var colors = ddsBaseTokens.colors,
|
|
4
|
-
fontPackages = ddsBaseTokens.fontPackages,
|
|
5
4
|
border = ddsBaseTokens.border,
|
|
6
5
|
spacing = ddsBaseTokens.spacing;
|
|
7
|
-
var textDefault = ddsReferenceTokens.textDefault;
|
|
8
6
|
var row = {
|
|
9
|
-
base: {
|
|
10
|
-
color: textDefault.textColor,
|
|
11
|
-
font: fontPackages.body_sans_02.base
|
|
12
|
-
},
|
|
13
7
|
body: {
|
|
14
8
|
odd: {
|
|
15
9
|
backgroundColor: colors.DdsColorNeutralsWhite
|
|
@@ -25,7 +19,6 @@ var row = {
|
|
|
25
19
|
},
|
|
26
20
|
mode: {
|
|
27
21
|
sum: {
|
|
28
|
-
font: fontPackages.body_sans_02.base,
|
|
29
22
|
borderTop: "".concat(border.BordersDdsBorderStyleLightStrokeWeight, " solid ").concat(colors.DdsColorNeutralsGray4),
|
|
30
23
|
borderBottom: "".concat(border.BordersDdsBorderStyleLightStrokeWeight, " solid ").concat(colors.DdsColorNeutralsGray4),
|
|
31
24
|
backgroundColor: colors.DdsColorNeutralsWhite
|