@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,22 +1,32 @@
|
|
|
1
|
-
|
|
1
|
+
export declare const typographyType: import("../Typography").StaticTypographyType;
|
|
2
2
|
export declare const toggleButtonTokens: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
checked: {
|
|
11
|
-
base: CSSObject;
|
|
3
|
+
toggleButton: {
|
|
4
|
+
border: string;
|
|
5
|
+
backgroundColor: string;
|
|
6
|
+
color: string;
|
|
7
|
+
gap: string;
|
|
8
|
+
borderRadius: string;
|
|
9
|
+
padding: string;
|
|
12
10
|
hover: {
|
|
13
|
-
|
|
11
|
+
backgroundColor: string;
|
|
12
|
+
boxShadow: string;
|
|
13
|
+
borderColor: string;
|
|
14
|
+
};
|
|
15
|
+
checked: {
|
|
16
|
+
color: string;
|
|
17
|
+
hover: {
|
|
18
|
+
backgroundColor: string;
|
|
19
|
+
boxShadow: string;
|
|
20
|
+
borderColor: string;
|
|
21
|
+
};
|
|
22
|
+
borderColor: string;
|
|
23
|
+
backgroundColor: string;
|
|
14
24
|
};
|
|
15
25
|
};
|
|
16
26
|
group: {
|
|
17
|
-
|
|
27
|
+
gap: string;
|
|
18
28
|
};
|
|
19
29
|
container: {
|
|
20
|
-
|
|
30
|
+
gap: string;
|
|
21
31
|
};
|
|
22
32
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TooltipProps } from '.';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: import("react").ForwardRefExoticComponent<Pick<Omit<import("react").HTMLAttributes<HTMLDivElement>, "
|
|
4
|
+
component: import("react").ForwardRefExoticComponent<Pick<Omit<import("react").HTMLAttributes<HTMLDivElement>, "style" | "children" | "onMouseLeave" | "onMouseOver">, "id" | "className"> & {
|
|
5
5
|
text: string;
|
|
6
6
|
placement?: import("../..").Placement | undefined;
|
|
7
7
|
children: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> & import("react").RefAttributes<HTMLElement>;
|
|
@@ -12,7 +12,7 @@ declare const _default: {
|
|
|
12
12
|
onMouseLeave?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
13
13
|
onMouseOver?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
14
14
|
} & {
|
|
15
|
-
htmlProps?: Omit<import("react").HTMLAttributes<HTMLDivElement>, "
|
|
15
|
+
htmlProps?: Omit<import("react").HTMLAttributes<HTMLDivElement>, "style" | "children" | "onMouseLeave" | "onMouseOver"> | undefined;
|
|
16
16
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
17
17
|
argTypes: {
|
|
18
18
|
text: {
|
|
@@ -4,5 +4,8 @@ export declare const Container: import("styled-components").StyledComponent<"div
|
|
|
4
4
|
declare type WrapperProps = {
|
|
5
5
|
open: boolean;
|
|
6
6
|
};
|
|
7
|
-
export declare const TooltipWrapper: import("styled-components").StyledComponent<"div", any,
|
|
7
|
+
export declare const TooltipWrapper: import("styled-components").StyledComponent<"div", any, {
|
|
8
|
+
elevation?: (1 | 2 | 3 | 4) | undefined;
|
|
9
|
+
border?: ("light" | "dark") | undefined;
|
|
10
|
+
} & WrapperProps, never>;
|
|
8
11
|
export {};
|
|
@@ -1,5 +1,199 @@
|
|
|
1
1
|
import { ElementType } from 'react';
|
|
2
|
-
import { TypographyType, TypographyHeadingType, InlineElement, TypographyInteractionStyling, StaticTypographyType } from './Typography/Typography.types';
|
|
2
|
+
import { TypographyType, TypographyHeadingType, InlineElement, TypographyInteractionStyling, StaticTypographyType, TypographyBodyType } from './Typography/Typography.types';
|
|
3
|
+
export declare const defaultTypographyType: TypographyBodyType;
|
|
4
|
+
export declare const getFontStyling: (type: StaticTypographyType, withColor?: boolean) => {
|
|
5
|
+
lineHeight: any;
|
|
6
|
+
fontSize: string;
|
|
7
|
+
letterSpacing: any;
|
|
8
|
+
fontFamily: any;
|
|
9
|
+
fontWeight: any;
|
|
10
|
+
fontStyle: any;
|
|
11
|
+
color: string | undefined;
|
|
12
|
+
} | {
|
|
13
|
+
lineHeight: any;
|
|
14
|
+
fontSize: string;
|
|
15
|
+
letterSpacing: any;
|
|
16
|
+
fontFamily: any;
|
|
17
|
+
fontWeight: any;
|
|
18
|
+
fontStyle: any;
|
|
19
|
+
color: string | undefined;
|
|
20
|
+
} | {
|
|
21
|
+
lineHeight: any;
|
|
22
|
+
fontSize: string;
|
|
23
|
+
letterSpacing: any;
|
|
24
|
+
fontFamily: any;
|
|
25
|
+
fontWeight: any;
|
|
26
|
+
fontStyle: any;
|
|
27
|
+
color: string | undefined;
|
|
28
|
+
} | {
|
|
29
|
+
lineHeight: any;
|
|
30
|
+
fontSize: string;
|
|
31
|
+
letterSpacing: any;
|
|
32
|
+
fontFamily: any;
|
|
33
|
+
fontWeight: any;
|
|
34
|
+
fontStyle: any;
|
|
35
|
+
color: string | undefined;
|
|
36
|
+
} | {
|
|
37
|
+
lineHeight: any;
|
|
38
|
+
fontSize: string;
|
|
39
|
+
letterSpacing: any;
|
|
40
|
+
fontFamily: any;
|
|
41
|
+
fontWeight: any;
|
|
42
|
+
fontStyle: any;
|
|
43
|
+
color: string | undefined;
|
|
44
|
+
} | {
|
|
45
|
+
lineHeight: any;
|
|
46
|
+
fontSize: string;
|
|
47
|
+
letterSpacing: any;
|
|
48
|
+
fontFamily: any;
|
|
49
|
+
fontWeight: any;
|
|
50
|
+
fontStyle: any;
|
|
51
|
+
color: string | undefined;
|
|
52
|
+
} | {
|
|
53
|
+
lineHeight: any;
|
|
54
|
+
fontSize: string;
|
|
55
|
+
letterSpacing: any;
|
|
56
|
+
fontFamily: any;
|
|
57
|
+
fontWeight: any;
|
|
58
|
+
fontStyle: any;
|
|
59
|
+
color: string | undefined;
|
|
60
|
+
} | {
|
|
61
|
+
lineHeight: any;
|
|
62
|
+
fontSize: string;
|
|
63
|
+
letterSpacing: any;
|
|
64
|
+
fontFamily: any;
|
|
65
|
+
fontWeight: any;
|
|
66
|
+
fontStyle: any;
|
|
67
|
+
color: string | undefined;
|
|
68
|
+
} | {
|
|
69
|
+
lineHeight: any;
|
|
70
|
+
fontSize: string;
|
|
71
|
+
letterSpacing: any;
|
|
72
|
+
fontFamily: any;
|
|
73
|
+
fontWeight: any;
|
|
74
|
+
fontStyle: any;
|
|
75
|
+
color: string | undefined;
|
|
76
|
+
} | {
|
|
77
|
+
lineHeight: any;
|
|
78
|
+
fontSize: string;
|
|
79
|
+
letterSpacing: any;
|
|
80
|
+
fontFamily: any;
|
|
81
|
+
fontWeight: any;
|
|
82
|
+
fontStyle: any;
|
|
83
|
+
color: string | undefined;
|
|
84
|
+
} | {
|
|
85
|
+
lineHeight: any;
|
|
86
|
+
fontSize: string;
|
|
87
|
+
letterSpacing: any;
|
|
88
|
+
fontFamily: any;
|
|
89
|
+
fontWeight: any;
|
|
90
|
+
fontStyle: any;
|
|
91
|
+
color: string | undefined;
|
|
92
|
+
} | {
|
|
93
|
+
lineHeight: any;
|
|
94
|
+
fontSize: string;
|
|
95
|
+
letterSpacing: any;
|
|
96
|
+
fontFamily: any;
|
|
97
|
+
fontWeight: any;
|
|
98
|
+
fontStyle: any;
|
|
99
|
+
color: string | undefined;
|
|
100
|
+
} | {
|
|
101
|
+
lineHeight: any;
|
|
102
|
+
fontSize: string;
|
|
103
|
+
letterSpacing: any;
|
|
104
|
+
fontFamily: any;
|
|
105
|
+
fontWeight: any;
|
|
106
|
+
fontStyle: any;
|
|
107
|
+
color: string | undefined;
|
|
108
|
+
} | {
|
|
109
|
+
lineHeight: any;
|
|
110
|
+
fontSize: string;
|
|
111
|
+
letterSpacing: any;
|
|
112
|
+
fontFamily: any;
|
|
113
|
+
fontWeight: any;
|
|
114
|
+
fontStyle: any;
|
|
115
|
+
color: string | undefined;
|
|
116
|
+
} | {
|
|
117
|
+
lineHeight: any;
|
|
118
|
+
fontSize: string;
|
|
119
|
+
letterSpacing: any;
|
|
120
|
+
fontFamily: any;
|
|
121
|
+
fontWeight: any;
|
|
122
|
+
fontStyle: any;
|
|
123
|
+
color: string | undefined;
|
|
124
|
+
} | {
|
|
125
|
+
lineHeight: any;
|
|
126
|
+
fontSize: string;
|
|
127
|
+
letterSpacing: any;
|
|
128
|
+
fontFamily: any;
|
|
129
|
+
fontWeight: any;
|
|
130
|
+
fontStyle: any;
|
|
131
|
+
color: string | undefined;
|
|
132
|
+
} | {
|
|
133
|
+
lineHeight: any;
|
|
134
|
+
fontSize: string;
|
|
135
|
+
letterSpacing: any;
|
|
136
|
+
fontFamily: any;
|
|
137
|
+
fontWeight: any;
|
|
138
|
+
fontStyle: any;
|
|
139
|
+
color: string | undefined;
|
|
140
|
+
} | {
|
|
141
|
+
lineHeight: any;
|
|
142
|
+
fontSize: string;
|
|
143
|
+
letterSpacing: any;
|
|
144
|
+
fontFamily: any;
|
|
145
|
+
fontWeight: any;
|
|
146
|
+
fontStyle: any;
|
|
147
|
+
color: string | undefined;
|
|
148
|
+
} | {
|
|
149
|
+
lineHeight: any;
|
|
150
|
+
fontSize: string;
|
|
151
|
+
letterSpacing: any;
|
|
152
|
+
fontFamily: any;
|
|
153
|
+
fontWeight: any;
|
|
154
|
+
fontStyle: any;
|
|
155
|
+
color: string | undefined;
|
|
156
|
+
} | {
|
|
157
|
+
lineHeight: any;
|
|
158
|
+
fontSize: string;
|
|
159
|
+
letterSpacing: any;
|
|
160
|
+
fontFamily: any;
|
|
161
|
+
fontWeight: any;
|
|
162
|
+
fontStyle: any;
|
|
163
|
+
color: string | undefined;
|
|
164
|
+
} | {
|
|
165
|
+
lineHeight: any;
|
|
166
|
+
fontSize: string;
|
|
167
|
+
letterSpacing: any;
|
|
168
|
+
fontFamily: any;
|
|
169
|
+
fontWeight: any;
|
|
170
|
+
fontStyle: any;
|
|
171
|
+
color: string | undefined;
|
|
172
|
+
} | {
|
|
173
|
+
lineHeight: any;
|
|
174
|
+
fontSize: string;
|
|
175
|
+
letterSpacing: any;
|
|
176
|
+
fontFamily: any;
|
|
177
|
+
fontWeight: any;
|
|
178
|
+
fontStyle: any;
|
|
179
|
+
color: string | undefined;
|
|
180
|
+
} | {
|
|
181
|
+
lineHeight: any;
|
|
182
|
+
fontSize: string;
|
|
183
|
+
letterSpacing: any;
|
|
184
|
+
fontFamily: any;
|
|
185
|
+
fontWeight: any;
|
|
186
|
+
fontStyle: any;
|
|
187
|
+
color: string | undefined;
|
|
188
|
+
} | {
|
|
189
|
+
lineHeight: any;
|
|
190
|
+
fontSize: string;
|
|
191
|
+
letterSpacing: any;
|
|
192
|
+
fontFamily: any;
|
|
193
|
+
fontWeight: any;
|
|
194
|
+
fontStyle: any;
|
|
195
|
+
color: string | undefined;
|
|
196
|
+
};
|
|
3
197
|
export declare const getElementType: (element: string) => ElementType;
|
|
4
198
|
export declare const isHeading: (type: TypographyType) => type is TypographyHeadingType;
|
|
5
199
|
export declare const inlineElements: ElementType[];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { InputTypographyTypes } from './Input.types';
|
|
2
|
+
export declare const inputTypographyTypes: InputTypographyTypes;
|
|
2
3
|
export declare const inputTokens: {
|
|
3
4
|
input: {
|
|
4
5
|
base: {
|
|
@@ -19,83 +20,16 @@ export declare const inputTokens: {
|
|
|
19
20
|
sizes: {
|
|
20
21
|
medium: {
|
|
21
22
|
padding: string;
|
|
22
|
-
font: {
|
|
23
|
-
lineHeight: any;
|
|
24
|
-
fontSize: string;
|
|
25
|
-
letterSpacing: any;
|
|
26
|
-
fontFamily: any;
|
|
27
|
-
fontWeight: any;
|
|
28
|
-
fontStyle: any;
|
|
29
|
-
};
|
|
30
23
|
};
|
|
31
24
|
small: {
|
|
32
25
|
padding: string;
|
|
33
|
-
font: {
|
|
34
|
-
lineHeight: any;
|
|
35
|
-
fontSize: string;
|
|
36
|
-
letterSpacing: any;
|
|
37
|
-
fontFamily: any;
|
|
38
|
-
fontWeight: any;
|
|
39
|
-
fontStyle: any;
|
|
40
|
-
};
|
|
41
26
|
};
|
|
42
27
|
tiny: {
|
|
43
28
|
padding: string;
|
|
44
|
-
font: {
|
|
45
|
-
lineHeight: any;
|
|
46
|
-
fontSize: string;
|
|
47
|
-
letterSpacing: any;
|
|
48
|
-
fontFamily: any;
|
|
49
|
-
fontWeight: any;
|
|
50
|
-
fontStyle: any;
|
|
51
|
-
};
|
|
52
29
|
};
|
|
53
30
|
};
|
|
54
31
|
};
|
|
55
32
|
container: {
|
|
56
33
|
gap: string;
|
|
57
34
|
};
|
|
58
|
-
general: {
|
|
59
|
-
input: {
|
|
60
|
-
borderRadius: string;
|
|
61
|
-
borderWidth: string;
|
|
62
|
-
borderColor: string;
|
|
63
|
-
textColor: string;
|
|
64
|
-
hover: {
|
|
65
|
-
backgroundColor: string;
|
|
66
|
-
borderColor: string;
|
|
67
|
-
borderWidth: string;
|
|
68
|
-
};
|
|
69
|
-
focus: {
|
|
70
|
-
borderColor: string;
|
|
71
|
-
borderWidth: string;
|
|
72
|
-
};
|
|
73
|
-
};
|
|
74
|
-
label: {
|
|
75
|
-
hover: {
|
|
76
|
-
textColor: string;
|
|
77
|
-
};
|
|
78
|
-
focus: {
|
|
79
|
-
textColor: string;
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
hasLabel: {
|
|
84
|
-
base: CSSObject;
|
|
85
|
-
};
|
|
86
|
-
noLabel: {
|
|
87
|
-
base: CSSObject;
|
|
88
|
-
};
|
|
89
|
-
label: {
|
|
90
|
-
base: CSSObject;
|
|
91
|
-
hover: {
|
|
92
|
-
base: CSSObject;
|
|
93
|
-
};
|
|
94
|
-
focus: {
|
|
95
|
-
base: CSSObject;
|
|
96
|
-
};
|
|
97
|
-
disabled: {
|
|
98
|
-
base: CSSObject;
|
|
99
|
-
};
|
|
100
|
-
};
|
|
101
35
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { InputHTMLAttributes } from 'react';
|
|
2
2
|
import { Property } from 'csstype';
|
|
3
|
+
import { StaticTypographyType } from '../../components/Typography';
|
|
3
4
|
export declare type CommonInputProps = {
|
|
4
5
|
/**Ledetekst for input. */
|
|
5
6
|
label?: string;
|
|
@@ -19,3 +20,6 @@ export declare type StyledCommonInputProps = Pick<InputProps, 'readOnly' | 'disa
|
|
|
19
20
|
hasErrorMessage: boolean;
|
|
20
21
|
};
|
|
21
22
|
export declare type StyledInputProps = StyledCommonInputProps & Pick<InputProps, 'componentSize'>;
|
|
23
|
+
export declare type InputTypographyTypes = {
|
|
24
|
+
[k in InputSize]: StaticTypographyType;
|
|
25
|
+
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Direction } from '../../types';
|
|
1
2
|
declare type SelectionControlType = 'radio' | 'checkbox';
|
|
2
3
|
declare type CustomSelectionControlProps = {
|
|
3
4
|
controlType?: SelectionControlType;
|
|
@@ -12,4 +13,8 @@ declare type ContainerProps = {
|
|
|
12
13
|
controlType: SelectionControlType;
|
|
13
14
|
};
|
|
14
15
|
export declare const Container: import("styled-components").StyledComponent<"label", any, ContainerProps, never>;
|
|
16
|
+
export declare const OuterGroupContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
17
|
+
export declare const GroupContainer: import("styled-components").StyledComponent<"div", any, {
|
|
18
|
+
direction: Direction;
|
|
19
|
+
}, never>;
|
|
15
20
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './TextOverflowEllipsis';
|
package/dist/cjs/index.d.ts
CHANGED