@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.
- 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 -1822
- 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 -3
- 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
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @norges-domstoler/dds-components
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
 [](https://www.npmjs.com/package/@norges-domstoler/dds-components) 
|
|
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
|
|
2
|
+
var bulletLvl1 = img;
|
|
3
3
|
|
|
4
|
-
export {
|
|
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>, "
|
|
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>, "
|
|
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 {
|
|
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
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
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
|
-
|
|
96
|
-
|
|
26
|
+
textAndIcon: {
|
|
27
|
+
gap: string;
|
|
97
28
|
};
|
|
98
29
|
};
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
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
|
-
|
|
109
|
-
base: CSSObject;
|
|
110
|
-
hover: {
|
|
111
|
-
base: CSSObject;
|
|
41
|
+
text: {
|
|
42
|
+
padding: string;
|
|
112
43
|
};
|
|
113
|
-
|
|
114
|
-
|
|
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
|
-
|
|
130
|
-
|
|
50
|
+
icon: {
|
|
51
|
+
fontSize: string;
|
|
52
|
+
padding: string;
|
|
131
53
|
};
|
|
132
|
-
|
|
133
|
-
|
|
54
|
+
wrapper: {
|
|
55
|
+
height: string;
|
|
56
|
+
width: string;
|
|
134
57
|
};
|
|
135
58
|
};
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
base: CSSObject;
|
|
139
|
-
hover: {
|
|
140
|
-
base: CSSObject;
|
|
59
|
+
text: {
|
|
60
|
+
padding: string;
|
|
141
61
|
};
|
|
142
|
-
|
|
143
|
-
|
|
62
|
+
textAndIcon: {
|
|
63
|
+
gap: string;
|
|
144
64
|
};
|
|
65
|
+
};
|
|
66
|
+
tiny: {
|
|
145
67
|
justIcon: {
|
|
146
|
-
|
|
147
|
-
|
|
68
|
+
icon: {
|
|
69
|
+
fontSize: string;
|
|
70
|
+
padding: string;
|
|
148
71
|
};
|
|
149
|
-
|
|
150
|
-
|
|
72
|
+
wrapper: {
|
|
73
|
+
height: string;
|
|
74
|
+
width: string;
|
|
151
75
|
};
|
|
152
76
|
};
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
base: CSSObject;
|
|
156
|
-
hover: {
|
|
157
|
-
base: CSSObject;
|
|
77
|
+
text: {
|
|
78
|
+
padding: string;
|
|
158
79
|
};
|
|
159
|
-
|
|
160
|
-
|
|
80
|
+
textAndIcon: {
|
|
81
|
+
gap: string;
|
|
161
82
|
};
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
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
|
-
|
|
167
|
-
base:
|
|
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
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
hover: {
|
|
177
|
-
base: CSSObject;
|
|
139
|
+
ghost: {
|
|
140
|
+
base: {
|
|
141
|
+
borderRadius: string;
|
|
142
|
+
boxShadow: string;
|
|
143
|
+
backgroundColor: string;
|
|
178
144
|
};
|
|
179
|
-
|
|
180
|
-
|
|
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
|
-
|
|
184
|
-
base:
|
|
185
|
-
|
|
186
|
-
|
|
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
|
-
|
|
189
|
-
|
|
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
|
-
|
|
193
|
-
base:
|
|
194
|
-
|
|
195
|
-
|
|
277
|
+
rounded: {
|
|
278
|
+
base: {
|
|
279
|
+
borderRadius: string;
|
|
280
|
+
boxShadow: string;
|
|
196
281
|
};
|
|
197
|
-
|
|
198
|
-
|
|
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:
|
|
4
|
-
|
|
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
|
-
|
|
7
|
+
backgroundColor: string;
|
|
8
|
+
borderColor: string;
|
|
9
|
+
color: string;
|
|
18
10
|
};
|
|
19
|
-
|
|
20
|
-
|
|
11
|
+
filledDark: {
|
|
12
|
+
backgroundColor: string;
|
|
13
|
+
borderColor: string;
|
|
14
|
+
color: string;
|
|
21
15
|
};
|
|
22
16
|
strokeDark: {
|
|
23
|
-
|
|
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>, "
|
|
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>, "
|
|
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 {};
|