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