@norges-domstoler/dds-components 5.4.0 → 5.5.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 +8 -1
- package/dist/cjs/components/Breadcrumbs/Breadcrumbs.d.ts +3 -3
- package/dist/cjs/components/Breadcrumbs/Breadcrumbs.stories.d.ts +3 -3
- package/dist/cjs/components/Button/Button.d.ts +3 -3
- package/dist/cjs/components/Button/Button.stories.d.ts +3 -3
- package/dist/cjs/components/Card/CardAccordion/CardAccordion.d.ts +3 -3
- package/dist/cjs/components/Card/CardAccordion/CardAccordionBody.d.ts +3 -3
- package/dist/cjs/components/Card/CardAccordion/CardAccordionHeader.d.ts +3 -3
- package/dist/cjs/components/Checkbox/Checkbox.d.ts +3 -3
- package/dist/cjs/components/Checkbox/Checkbox.stories.d.ts +3 -3
- package/dist/cjs/components/Chip/Chip.d.ts +3 -3
- package/dist/cjs/components/Chip/Chip.stories.d.ts +3 -3
- package/dist/cjs/components/Datepicker/Datepicker.d.ts +10 -8
- package/dist/cjs/components/Datepicker/Datepicker.stories.d.ts +3 -6
- package/dist/cjs/components/DescriptionList/DescriptionList.d.ts +3 -3
- package/dist/cjs/components/DescriptionList/DescriptionList.stories.d.ts +3 -3
- package/dist/cjs/components/DescriptionList/DescriptionListDesc.d.ts +3 -3
- package/dist/cjs/components/DescriptionList/DescriptionListGroup.d.ts +3 -3
- package/dist/cjs/components/Divider/Divider.d.ts +3 -3
- package/dist/cjs/components/Divider/Divider.stories.d.ts +3 -3
- package/dist/cjs/components/Drawer/Drawer.d.ts +3 -3
- package/dist/cjs/components/Drawer/Drawer.stories.d.ts +3 -3
- package/dist/cjs/components/GlobalMessage/GlobalMessage.d.ts +3 -3
- package/dist/cjs/components/GlobalMessage/GlobalMessage.stories.d.ts +3 -3
- package/dist/cjs/components/InputMessage/InputMessage.d.ts +3 -3
- package/dist/cjs/components/InputMessage/InputMessage.stories.d.ts +3 -3
- package/dist/cjs/components/InternalHeader/InternalHeader.stories.d.ts +10 -5
- package/dist/cjs/components/InternalHeader/InternalHeader.styles.d.ts +3 -3
- package/dist/cjs/components/InternalHeader/InternalHeader.types.d.ts +2 -0
- package/dist/cjs/components/List/List.d.ts +3 -3
- package/dist/cjs/components/List/List.stories.d.ts +3 -3
- package/dist/cjs/components/LocalMessage/LocalMessage.d.ts +3 -3
- package/dist/cjs/components/LocalMessage/LocalMessage.stories.d.ts +3 -3
- package/dist/cjs/components/Modal/Modal.d.ts +3 -3
- package/dist/cjs/components/Modal/Modal.stories.d.ts +3 -3
- package/dist/cjs/components/Modal/ModalBody.d.ts +3 -3
- package/dist/cjs/components/OverflowMenu/OverflowMenu.d.ts +3 -3
- package/dist/cjs/components/OverflowMenu/OverflowMenu.stories.d.ts +3 -3
- package/dist/cjs/components/Pagination/Pagination.d.ts +3 -3
- package/dist/cjs/components/Pagination/Pagination.stories.d.ts +3 -3
- package/dist/cjs/components/Popover/Popover.d.ts +3 -3
- package/dist/cjs/components/Popover/Popover.stories.d.ts +3 -3
- package/dist/cjs/components/RadioButton/RadioButton.d.ts +3 -3
- package/dist/cjs/components/RadioButton/RadioButton.stories.d.ts +3 -3
- package/dist/cjs/components/Select/Select.styles.d.ts +1 -0
- package/dist/cjs/components/SkipToContent/SkipToContent.d.ts +3 -3
- package/dist/cjs/components/SkipToContent/SkipToContent.stories.d.ts +3 -3
- package/dist/cjs/components/Spinner/Spinner.d.ts +1 -1
- package/dist/cjs/components/Stepper/Stepper.d.ts +3 -3
- package/dist/cjs/components/Stepper/Stepper.stories.d.ts +3 -3
- package/dist/cjs/components/Tabs/Tab.d.ts +3 -3
- package/dist/cjs/components/Tabs/TabPanel.d.ts +3 -3
- package/dist/cjs/components/Tabs/Tabs.d.ts +3 -3
- package/dist/cjs/components/Tag/Tag.d.ts +3 -3
- package/dist/cjs/components/Tag/Tag.stories.d.ts +3 -3
- package/dist/cjs/components/ToggleBar/ToggleRadio.d.ts +4 -4
- package/dist/cjs/components/ToggleButton/ToggleButton.d.ts +3 -3
- package/dist/cjs/components/ToggleButton/ToggleButton.stories.d.ts +3 -3
- package/dist/cjs/components/Tooltip/Tooltip.d.ts +4 -4
- package/dist/cjs/components/Tooltip/Tooltip.stories.d.ts +3 -3
- package/dist/cjs/components/Typography/Caption/Caption.d.ts +10 -0
- package/dist/cjs/components/Typography/Caption/Caption.stories.d.ts +28 -0
- package/dist/cjs/components/Typography/Caption/index.d.ts +1 -0
- package/dist/cjs/components/Typography/Heading/Heading.d.ts +21 -0
- package/dist/cjs/components/Typography/Heading/Heading.stories.d.ts +37 -0
- package/dist/cjs/components/Typography/Heading/index.d.ts +1 -0
- package/dist/cjs/components/Typography/Label/Label.d.ts +13 -0
- package/dist/cjs/components/Typography/Label/Label.stories.d.ts +30 -0
- package/dist/cjs/components/Typography/Label/index.d.ts +1 -0
- package/dist/cjs/components/Typography/Legend/Legend.d.ts +10 -0
- package/dist/cjs/components/Typography/Legend/Legend.stories.d.ts +28 -0
- package/dist/cjs/components/Typography/Legend/index.d.ts +1 -0
- package/dist/cjs/components/Typography/Link/Link.d.ts +23 -0
- package/dist/cjs/components/Typography/Link/Link.stories.d.ts +47 -0
- package/dist/cjs/components/Typography/Link/index.d.ts +1 -0
- package/dist/cjs/components/Typography/Paragraph/Paragraph.d.ts +16 -0
- package/dist/cjs/components/Typography/Paragraph/Paragraph.stories.d.ts +35 -0
- package/dist/cjs/components/Typography/Paragraph/index.d.ts +1 -0
- package/dist/cjs/components/Typography/Typography/Typography.d.ts +25 -0
- package/dist/{components → cjs/components/Typography}/Typography/Typography.stories.d.ts +2 -1
- package/dist/cjs/components/Typography/Typography/Typography.types.d.ts +37 -0
- package/dist/cjs/components/Typography/Typography/index.d.ts +2 -0
- package/dist/cjs/components/Typography/Typography.tokens.d.ts +401 -100
- package/dist/cjs/components/Typography/Typography.utils.d.ts +9 -0
- package/dist/cjs/components/Typography/index.d.ts +6 -1
- package/dist/cjs/components/Typography/stories/Examples.stories.d.ts +5 -0
- package/dist/cjs/components/Typography/stories/TypographyComponents.stories.d.ts +42 -0
- package/dist/cjs/components/Typography/{Body.stories.d.ts → stories/TypographyTypes.stories.d.ts} +1 -1
- package/dist/cjs/index.js +791 -702
- package/dist/cjs/types/BaseComponentProps.d.ts +2 -2
- package/dist/cjs/utils/color.d.ts +24 -0
- package/dist/components/Breadcrumbs/Breadcrumb.js +2 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +3 -3
- package/dist/components/Breadcrumbs/Breadcrumbs.js +3 -2
- package/dist/components/Breadcrumbs/Breadcrumbs.stories.d.ts +3 -3
- package/dist/components/Button/Button.d.ts +3 -3
- package/dist/components/Button/Button.js +2 -2
- package/dist/components/Button/Button.stories.d.ts +3 -3
- package/dist/components/Button/Button.styles.js +6 -3
- package/dist/components/Button/Button.tokens.js +6 -0
- package/dist/components/Card/Card.js +6 -2
- package/dist/components/Card/Card.tokens.js +5 -1
- package/dist/components/Card/CardAccordion/CardAccordion.d.ts +3 -3
- package/dist/components/Card/CardAccordion/CardAccordionBody.d.ts +3 -3
- package/dist/components/Card/CardAccordion/CardAccordionHeader.d.ts +3 -3
- package/dist/components/Card/CardAccordion/CardAccordionHeader.js +11 -0
- package/dist/components/Checkbox/Checkbox.d.ts +3 -3
- package/dist/components/Checkbox/Checkbox.js +10 -2
- package/dist/components/Checkbox/Checkbox.stories.d.ts +3 -3
- package/dist/components/Checkbox/Checkbox.styles.js +5 -1
- package/dist/components/Checkbox/Checkbox.tokens.js +4 -1
- package/dist/components/Checkbox/CheckboxGroup.js +12 -4
- package/dist/components/Chip/Chip.d.ts +3 -3
- package/dist/components/Chip/Chip.js +2 -1
- package/dist/components/Chip/Chip.stories.d.ts +3 -3
- package/dist/components/Datepicker/Datepicker.d.ts +10 -8
- package/dist/components/Datepicker/Datepicker.js +44 -11
- package/dist/components/Datepicker/Datepicker.stories.d.ts +3 -6
- package/dist/components/DescriptionList/DescriptionList.d.ts +3 -3
- package/dist/components/DescriptionList/DescriptionList.js +7 -3
- package/dist/components/DescriptionList/DescriptionList.stories.d.ts +3 -3
- package/dist/components/DescriptionList/DescriptionListDesc.d.ts +3 -3
- package/dist/components/DescriptionList/DescriptionListDesc.js +1 -1
- package/dist/components/DescriptionList/DescriptionListGroup.d.ts +3 -3
- package/dist/components/Divider/Divider.d.ts +3 -3
- package/dist/components/Divider/Divider.js +1 -1
- package/dist/components/Divider/Divider.stories.d.ts +3 -3
- package/dist/components/Drawer/Drawer.d.ts +3 -3
- package/dist/components/Drawer/Drawer.js +25 -9
- package/dist/components/Drawer/Drawer.stories.d.ts +3 -3
- package/dist/components/GlobalMessage/GlobalMessage.d.ts +3 -3
- package/dist/components/GlobalMessage/GlobalMessage.js +5 -3
- package/dist/components/GlobalMessage/GlobalMessage.stories.d.ts +3 -3
- package/dist/components/GlobalMessage/GlobalMessage.tokens.js +4 -1
- package/dist/components/InputMessage/InputMessage.d.ts +3 -3
- package/dist/components/InputMessage/InputMessage.js +5 -3
- package/dist/components/InputMessage/InputMessage.stories.d.ts +3 -3
- package/dist/components/InternalHeader/InternalHeader.js +10 -7
- package/dist/components/InternalHeader/InternalHeader.stories.d.ts +10 -5
- package/dist/components/InternalHeader/InternalHeader.styles.d.ts +3 -3
- package/dist/components/InternalHeader/InternalHeader.styles.js +8 -2
- package/dist/components/InternalHeader/InternalHeader.types.d.ts +2 -0
- package/dist/components/InternalHeader/NavigationItem.js +5 -1
- package/dist/components/List/List.d.ts +3 -3
- package/dist/components/List/List.js +6 -2
- package/dist/components/List/List.stories.d.ts +3 -3
- package/dist/components/LocalMessage/LocalMessage.d.ts +3 -3
- package/dist/components/LocalMessage/LocalMessage.js +10 -4
- package/dist/components/LocalMessage/LocalMessage.stories.d.ts +3 -3
- package/dist/components/LocalMessage/LocalMessage.tokens.js +5 -2
- package/dist/components/Modal/Modal.d.ts +3 -3
- package/dist/components/Modal/Modal.js +23 -9
- package/dist/components/Modal/Modal.stories.d.ts +3 -3
- package/dist/components/Modal/Modal.tokens.js +5 -0
- package/dist/components/Modal/ModalBody.d.ts +3 -3
- package/dist/components/Modal/ModalBody.js +3 -1
- package/dist/components/OverflowMenu/OverflowMenu.d.ts +3 -3
- package/dist/components/OverflowMenu/OverflowMenu.js +17 -9
- package/dist/components/OverflowMenu/OverflowMenu.stories.d.ts +3 -3
- package/dist/components/OverflowMenu/OverflowMenuItem.js +8 -2
- package/dist/components/Pagination/Pagination.d.ts +3 -3
- package/dist/components/Pagination/Pagination.js +9 -7
- package/dist/components/Pagination/Pagination.stories.d.ts +3 -3
- package/dist/components/Popover/Popover.d.ts +3 -3
- package/dist/components/Popover/Popover.js +12 -4
- package/dist/components/Popover/Popover.stories.d.ts +3 -3
- package/dist/components/Popover/PopoverGroup.js +3 -1
- package/dist/components/RadioButton/RadioButton.d.ts +3 -3
- package/dist/components/RadioButton/RadioButton.js +9 -2
- package/dist/components/RadioButton/RadioButton.stories.d.ts +3 -3
- package/dist/components/RadioButton/RadioButton.styles.js +4 -0
- package/dist/components/RadioButton/RadioButton.tokens.js +4 -1
- package/dist/components/RadioButton/RadioButtonGroup.js +12 -4
- package/dist/components/ScrollableContainer/ScrollableContainer.js +5 -1
- package/dist/components/ScrollableContainer/Scrollbar.js +1 -3
- package/dist/components/Search/Search.js +12 -4
- package/dist/components/Select/Select.js +34 -19
- package/dist/components/Select/Select.styles.d.ts +1 -0
- package/dist/components/Select/Select.styles.js +27 -11
- package/dist/components/Select/Select.tokens.js +5 -0
- package/dist/components/SkipToContent/SkipToContent.d.ts +3 -3
- package/dist/components/SkipToContent/SkipToContent.js +4 -0
- package/dist/components/SkipToContent/SkipToContent.stories.d.ts +3 -3
- package/dist/components/SkipToContent/SkipToContent.tokens.js +5 -0
- package/dist/components/Spinner/Spinner.d.ts +1 -1
- package/dist/components/Spinner/Spinner.js +1 -1
- package/dist/components/Stepper/Step.js +6 -2
- package/dist/components/Stepper/Stepper.d.ts +3 -3
- package/dist/components/Stepper/Stepper.js +1 -1
- package/dist/components/Stepper/Stepper.stories.d.ts +3 -3
- package/dist/components/Table/Cell.tokens.js +5 -0
- package/dist/components/Table/Row.tokens.js +5 -0
- package/dist/components/Table/SortCell.js +10 -4
- package/dist/components/Table/Table.js +9 -3
- package/dist/components/Table/TableWrapper.js +2 -0
- package/dist/components/Tabs/Tab.d.ts +3 -3
- package/dist/components/Tabs/Tab.js +9 -3
- package/dist/components/Tabs/TabList.js +8 -4
- package/dist/components/Tabs/TabPanel.d.ts +3 -3
- package/dist/components/Tabs/TabPanel.js +5 -1
- package/dist/components/Tabs/TabPanels.js +3 -1
- package/dist/components/Tabs/Tabs.d.ts +3 -3
- package/dist/components/Tabs/Tabs.js +1 -1
- package/dist/components/Tabs/Tabs.tokens.js +6 -1
- package/dist/components/Tag/Tag.d.ts +3 -3
- package/dist/components/Tag/Tag.js +2 -1
- package/dist/components/Tag/Tag.stories.d.ts +3 -3
- package/dist/components/TextInput/CharCounter.js +3 -2
- package/dist/components/TextInput/TextInput.js +9 -3
- package/dist/components/TextInput/TextInput.styles.js +9 -1
- package/dist/components/ToggleBar/ToggleBar.js +10 -4
- package/dist/components/ToggleBar/ToggleBar.tokens.js +1 -0
- package/dist/components/ToggleBar/ToggleRadio.d.ts +4 -4
- package/dist/components/ToggleBar/ToggleRadio.js +8 -2
- package/dist/components/ToggleBar/ToggleRadio.styles.js +11 -0
- package/dist/components/ToggleButton/ToggleButton.d.ts +3 -3
- package/dist/components/ToggleButton/ToggleButton.js +14 -5
- package/dist/components/ToggleButton/ToggleButton.stories.d.ts +3 -3
- package/dist/components/ToggleButton/ToggleButton.tokens.js +6 -1
- package/dist/components/ToggleButton/ToggleButtonGroup.js +3 -2
- package/dist/components/Tooltip/Tooltip.d.ts +4 -4
- package/dist/components/Tooltip/Tooltip.js +6 -4
- package/dist/components/Tooltip/Tooltip.stories.d.ts +3 -3
- package/dist/components/Tooltip/Tooltip.styles.js +7 -3
- package/dist/components/Typography/Caption/Caption.d.ts +10 -0
- package/dist/components/Typography/Caption/Caption.js +23 -0
- package/dist/components/Typography/Caption/Caption.stories.d.ts +28 -0
- package/dist/components/Typography/Caption/index.d.ts +1 -0
- package/dist/components/Typography/Heading/Heading.d.ts +21 -0
- package/dist/components/Typography/Heading/Heading.js +56 -0
- package/dist/components/Typography/Heading/Heading.stories.d.ts +37 -0
- package/dist/components/Typography/Heading/index.d.ts +1 -0
- package/dist/components/Typography/Label/Label.d.ts +13 -0
- package/dist/components/Typography/Label/Label.js +22 -0
- package/dist/components/Typography/Label/Label.stories.d.ts +30 -0
- package/dist/components/Typography/Label/index.d.ts +1 -0
- package/dist/components/Typography/Legend/Legend.d.ts +10 -0
- package/dist/components/Typography/Legend/Legend.js +23 -0
- package/dist/components/Typography/Legend/Legend.stories.d.ts +28 -0
- package/dist/components/Typography/Legend/index.d.ts +1 -0
- package/dist/components/Typography/Link/Link.d.ts +23 -0
- package/dist/components/Typography/Link/Link.js +45 -0
- package/dist/components/Typography/Link/Link.stories.d.ts +47 -0
- package/dist/components/Typography/Link/index.d.ts +1 -0
- package/dist/components/Typography/Paragraph/Paragraph.d.ts +16 -0
- package/dist/components/Typography/Paragraph/Paragraph.js +25 -0
- package/dist/components/Typography/Paragraph/Paragraph.stories.d.ts +35 -0
- package/dist/components/Typography/Paragraph/index.d.ts +1 -0
- package/dist/components/Typography/Typography/Typography.d.ts +25 -0
- package/dist/components/Typography/Typography/Typography.js +101 -0
- package/dist/{cjs/components → components/Typography}/Typography/Typography.stories.d.ts +2 -1
- package/dist/components/Typography/Typography/Typography.types.d.ts +37 -0
- package/dist/components/Typography/Typography/index.d.ts +2 -0
- package/dist/components/Typography/Typography.tokens.d.ts +401 -100
- package/dist/components/Typography/Typography.tokens.js +354 -482
- package/dist/components/Typography/Typography.utils.d.ts +9 -0
- package/dist/components/Typography/Typography.utils.js +75 -0
- package/dist/components/Typography/index.d.ts +6 -1
- package/dist/components/Typography/stories/Examples.stories.d.ts +5 -0
- package/dist/components/Typography/stories/TypographyComponents.stories.d.ts +42 -0
- package/dist/components/Typography/{Body.stories.d.ts → stories/TypographyTypes.stories.d.ts} +1 -1
- package/dist/helpers/Input/Input.styles.js +11 -3
- package/dist/helpers/Input/Input.tokens.js +4 -1
- package/dist/helpers/Paper/Paper.js +6 -2
- package/dist/hooks/useScreenSize.js +17 -0
- package/dist/index.js +7 -1
- package/dist/types/BaseComponentProps.d.ts +2 -2
- package/dist/utils/color.d.ts +24 -0
- package/dist/utils/color.js +31 -1
- package/package.json +3 -3
- package/dist/cjs/components/Typography/Examples.stories.d.ts +0 -7
- package/dist/cjs/components/Typography/Typography.d.ts +0 -49
- package/dist/cjs/components/Typography/Typography.types.d.ts +0 -13
- package/dist/components/Typography/Examples.stories.d.ts +0 -7
- package/dist/components/Typography/Typography.d.ts +0 -49
- package/dist/components/Typography/Typography.js +0 -172
- package/dist/components/Typography/Typography.types.d.ts +0 -13
|
@@ -1,230 +1,531 @@
|
|
|
1
|
-
import { CSSObject } from 'styled-components';
|
|
2
|
-
export declare const textColors: {
|
|
3
|
-
interactive: string;
|
|
4
|
-
primary: string;
|
|
5
|
-
danger: string;
|
|
6
|
-
success: string;
|
|
7
|
-
warning: string;
|
|
8
|
-
onLight: string;
|
|
9
|
-
onDark: string;
|
|
10
|
-
gray1: string;
|
|
11
|
-
gray2: string;
|
|
12
|
-
gray3: string;
|
|
13
|
-
gray4: string;
|
|
14
|
-
gray5: string;
|
|
15
|
-
gray6: string;
|
|
16
|
-
gray7: string;
|
|
17
|
-
gray8: string;
|
|
18
|
-
gray9: string;
|
|
19
|
-
};
|
|
20
|
-
export declare const textColorsArray: string[];
|
|
21
1
|
export declare const typographyTokens: {
|
|
22
|
-
selection: {
|
|
23
|
-
base: CSSObject;
|
|
24
|
-
};
|
|
25
2
|
typographyType: {
|
|
26
3
|
a: {
|
|
27
|
-
base:
|
|
28
|
-
|
|
29
|
-
|
|
4
|
+
base: {
|
|
5
|
+
color: string;
|
|
6
|
+
gap: string;
|
|
30
7
|
};
|
|
31
8
|
margins: {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
focus: {
|
|
35
|
-
base: CSSObject;
|
|
36
|
-
};
|
|
37
|
-
bold: {
|
|
38
|
-
base: CSSObject;
|
|
9
|
+
marginTop: number;
|
|
10
|
+
marginBottom: string;
|
|
39
11
|
};
|
|
40
|
-
|
|
41
|
-
|
|
12
|
+
hover: {
|
|
13
|
+
color: string;
|
|
42
14
|
};
|
|
43
15
|
};
|
|
44
16
|
headingSans01: {
|
|
45
|
-
base:
|
|
17
|
+
base: {
|
|
18
|
+
color: string;
|
|
19
|
+
font: {
|
|
20
|
+
lineHeight: any;
|
|
21
|
+
fontSize: string;
|
|
22
|
+
letterSpacing: any;
|
|
23
|
+
fontFamily: any;
|
|
24
|
+
fontWeight: any;
|
|
25
|
+
fontStyle: any;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
46
28
|
margins: {
|
|
47
|
-
|
|
29
|
+
marginTop: number;
|
|
30
|
+
marginBottom: string;
|
|
31
|
+
paddingTop: string;
|
|
48
32
|
};
|
|
49
33
|
};
|
|
50
34
|
headingSans02: {
|
|
51
|
-
base:
|
|
35
|
+
base: {
|
|
36
|
+
color: string;
|
|
37
|
+
font: {
|
|
38
|
+
lineHeight: any;
|
|
39
|
+
fontSize: string;
|
|
40
|
+
letterSpacing: any;
|
|
41
|
+
fontFamily: any;
|
|
42
|
+
fontWeight: any;
|
|
43
|
+
fontStyle: any;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
52
46
|
margins: {
|
|
53
|
-
|
|
47
|
+
marginTop: number;
|
|
48
|
+
marginBottom: string;
|
|
49
|
+
paddingTop: string;
|
|
54
50
|
};
|
|
55
51
|
};
|
|
56
52
|
headingSans03: {
|
|
57
|
-
base:
|
|
53
|
+
base: {
|
|
54
|
+
color: string;
|
|
55
|
+
font: {
|
|
56
|
+
lineHeight: any;
|
|
57
|
+
fontSize: string;
|
|
58
|
+
letterSpacing: any;
|
|
59
|
+
fontFamily: any;
|
|
60
|
+
fontWeight: any;
|
|
61
|
+
fontStyle: any;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
58
64
|
margins: {
|
|
59
|
-
|
|
65
|
+
marginTop: number;
|
|
66
|
+
marginBottom: string;
|
|
67
|
+
paddingTop: string;
|
|
60
68
|
};
|
|
61
69
|
};
|
|
62
70
|
headingSans04: {
|
|
63
|
-
base:
|
|
71
|
+
base: {
|
|
72
|
+
color: string;
|
|
73
|
+
font: {
|
|
74
|
+
lineHeight: any;
|
|
75
|
+
fontSize: string;
|
|
76
|
+
letterSpacing: any;
|
|
77
|
+
fontFamily: any;
|
|
78
|
+
fontWeight: any;
|
|
79
|
+
fontStyle: any;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
64
82
|
margins: {
|
|
65
|
-
|
|
83
|
+
marginTop: number;
|
|
84
|
+
marginBottom: string;
|
|
85
|
+
paddingTop: string;
|
|
66
86
|
};
|
|
67
87
|
};
|
|
68
88
|
headingSans05: {
|
|
69
|
-
base:
|
|
89
|
+
base: {
|
|
90
|
+
color: string;
|
|
91
|
+
font: {
|
|
92
|
+
lineHeight: any;
|
|
93
|
+
fontSize: string;
|
|
94
|
+
letterSpacing: any;
|
|
95
|
+
fontFamily: any;
|
|
96
|
+
fontWeight: any;
|
|
97
|
+
fontStyle: any;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
70
100
|
margins: {
|
|
71
|
-
|
|
101
|
+
marginTop: number;
|
|
102
|
+
marginBottom: string;
|
|
103
|
+
paddingTop: string;
|
|
72
104
|
};
|
|
73
105
|
};
|
|
74
106
|
headingSans06: {
|
|
75
|
-
base:
|
|
107
|
+
base: {
|
|
108
|
+
color: string;
|
|
109
|
+
font: {
|
|
110
|
+
lineHeight: any;
|
|
111
|
+
fontSize: string;
|
|
112
|
+
letterSpacing: any;
|
|
113
|
+
fontFamily: any;
|
|
114
|
+
fontWeight: any;
|
|
115
|
+
fontStyle: any;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
76
118
|
margins: {
|
|
77
|
-
|
|
119
|
+
marginTop: number;
|
|
120
|
+
marginBottom: string;
|
|
121
|
+
paddingTop: string;
|
|
78
122
|
};
|
|
79
123
|
};
|
|
80
124
|
headingSans07: {
|
|
81
|
-
base:
|
|
125
|
+
base: {
|
|
126
|
+
color: string;
|
|
127
|
+
font: {
|
|
128
|
+
lineHeight: any;
|
|
129
|
+
fontSize: string;
|
|
130
|
+
letterSpacing: any;
|
|
131
|
+
fontFamily: any;
|
|
132
|
+
fontWeight: any;
|
|
133
|
+
fontStyle: any;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
82
136
|
margins: {
|
|
83
|
-
|
|
137
|
+
marginTop: number;
|
|
138
|
+
marginBottom: string;
|
|
139
|
+
paddingTop: string;
|
|
84
140
|
};
|
|
85
141
|
};
|
|
86
142
|
headingSans08: {
|
|
87
|
-
base:
|
|
143
|
+
base: {
|
|
144
|
+
color: string;
|
|
145
|
+
font: {
|
|
146
|
+
lineHeight: any;
|
|
147
|
+
fontSize: string;
|
|
148
|
+
letterSpacing: any;
|
|
149
|
+
fontFamily: any;
|
|
150
|
+
fontWeight: any;
|
|
151
|
+
fontStyle: any;
|
|
152
|
+
};
|
|
153
|
+
};
|
|
88
154
|
margins: {
|
|
89
|
-
|
|
155
|
+
marginTop: number;
|
|
156
|
+
marginBottom: string;
|
|
157
|
+
paddingTop: string;
|
|
90
158
|
};
|
|
91
159
|
};
|
|
92
160
|
bodySans01: {
|
|
93
|
-
base:
|
|
161
|
+
base: {
|
|
162
|
+
color: string;
|
|
163
|
+
font: {
|
|
164
|
+
lineHeight: any;
|
|
165
|
+
fontSize: string;
|
|
166
|
+
letterSpacing: any;
|
|
167
|
+
fontFamily: any;
|
|
168
|
+
fontWeight: any;
|
|
169
|
+
fontStyle: any;
|
|
170
|
+
};
|
|
171
|
+
};
|
|
94
172
|
margins: {
|
|
95
|
-
|
|
173
|
+
marginTop: number;
|
|
174
|
+
marginBottom: string;
|
|
96
175
|
};
|
|
97
176
|
};
|
|
98
177
|
bodySans02: {
|
|
99
|
-
base:
|
|
178
|
+
base: {
|
|
179
|
+
color: string;
|
|
180
|
+
font: {
|
|
181
|
+
lineHeight: any;
|
|
182
|
+
fontSize: string;
|
|
183
|
+
letterSpacing: any;
|
|
184
|
+
fontFamily: any;
|
|
185
|
+
fontWeight: any;
|
|
186
|
+
fontStyle: any;
|
|
187
|
+
};
|
|
188
|
+
};
|
|
100
189
|
margins: {
|
|
101
|
-
|
|
190
|
+
marginTop: number;
|
|
191
|
+
marginBottom: string;
|
|
102
192
|
};
|
|
103
193
|
};
|
|
104
194
|
bodySans03: {
|
|
105
|
-
base:
|
|
195
|
+
base: {
|
|
196
|
+
color: string;
|
|
197
|
+
font: {
|
|
198
|
+
lineHeight: any;
|
|
199
|
+
fontSize: string;
|
|
200
|
+
letterSpacing: any;
|
|
201
|
+
fontFamily: any;
|
|
202
|
+
fontWeight: any;
|
|
203
|
+
fontStyle: any;
|
|
204
|
+
};
|
|
205
|
+
};
|
|
106
206
|
margins: {
|
|
107
|
-
|
|
207
|
+
marginTop: number;
|
|
208
|
+
marginBottom: string;
|
|
108
209
|
};
|
|
109
210
|
};
|
|
110
211
|
bodySans04: {
|
|
111
|
-
base:
|
|
212
|
+
base: {
|
|
213
|
+
color: string;
|
|
214
|
+
font: {
|
|
215
|
+
lineHeight: any;
|
|
216
|
+
fontSize: string;
|
|
217
|
+
letterSpacing: any;
|
|
218
|
+
fontFamily: any;
|
|
219
|
+
fontWeight: any;
|
|
220
|
+
fontStyle: any;
|
|
221
|
+
};
|
|
222
|
+
};
|
|
112
223
|
margins: {
|
|
113
|
-
|
|
224
|
+
marginTop: number;
|
|
225
|
+
marginBottom: string;
|
|
114
226
|
};
|
|
115
227
|
};
|
|
116
228
|
bodySerif01: {
|
|
117
|
-
base:
|
|
229
|
+
base: {
|
|
230
|
+
color: string;
|
|
231
|
+
font: {
|
|
232
|
+
lineHeight: any;
|
|
233
|
+
fontSize: string;
|
|
234
|
+
letterSpacing: any;
|
|
235
|
+
fontFamily: any;
|
|
236
|
+
fontWeight: any;
|
|
237
|
+
fontStyle: any;
|
|
238
|
+
};
|
|
239
|
+
};
|
|
118
240
|
margins: {
|
|
119
|
-
|
|
241
|
+
marginTop: number;
|
|
242
|
+
marginBottom: string;
|
|
120
243
|
};
|
|
121
244
|
};
|
|
122
245
|
bodySerif02: {
|
|
123
|
-
base:
|
|
246
|
+
base: {
|
|
247
|
+
color: string;
|
|
248
|
+
font: {
|
|
249
|
+
lineHeight: any;
|
|
250
|
+
fontSize: string;
|
|
251
|
+
letterSpacing: any;
|
|
252
|
+
fontFamily: any;
|
|
253
|
+
fontWeight: any;
|
|
254
|
+
fontStyle: any;
|
|
255
|
+
};
|
|
256
|
+
};
|
|
124
257
|
margins: {
|
|
125
|
-
|
|
258
|
+
marginTop: number;
|
|
259
|
+
marginBottom: string;
|
|
126
260
|
};
|
|
127
261
|
};
|
|
128
262
|
bodySerif03: {
|
|
129
|
-
base:
|
|
263
|
+
base: {
|
|
264
|
+
color: string;
|
|
265
|
+
font: {
|
|
266
|
+
lineHeight: any;
|
|
267
|
+
fontSize: string;
|
|
268
|
+
letterSpacing: any;
|
|
269
|
+
fontFamily: any;
|
|
270
|
+
fontWeight: any;
|
|
271
|
+
fontStyle: any;
|
|
272
|
+
};
|
|
273
|
+
};
|
|
130
274
|
margins: {
|
|
131
|
-
|
|
275
|
+
marginTop: number;
|
|
276
|
+
marginBottom: string;
|
|
132
277
|
};
|
|
133
278
|
};
|
|
134
279
|
bodySerif04: {
|
|
135
|
-
base:
|
|
280
|
+
base: {
|
|
281
|
+
color: string;
|
|
282
|
+
font: {
|
|
283
|
+
lineHeight: any;
|
|
284
|
+
fontSize: string;
|
|
285
|
+
letterSpacing: any;
|
|
286
|
+
fontFamily: any;
|
|
287
|
+
fontWeight: any;
|
|
288
|
+
fontStyle: any;
|
|
289
|
+
};
|
|
290
|
+
};
|
|
136
291
|
margins: {
|
|
137
|
-
|
|
292
|
+
marginTop: number;
|
|
293
|
+
marginBottom: string;
|
|
138
294
|
};
|
|
139
295
|
};
|
|
140
296
|
leadSans01: {
|
|
141
|
-
base:
|
|
297
|
+
base: {
|
|
298
|
+
color: string;
|
|
299
|
+
font: {
|
|
300
|
+
lineHeight: any;
|
|
301
|
+
fontSize: string;
|
|
302
|
+
letterSpacing: any;
|
|
303
|
+
fontFamily: any;
|
|
304
|
+
fontWeight: any;
|
|
305
|
+
fontStyle: any;
|
|
306
|
+
};
|
|
307
|
+
};
|
|
142
308
|
margins: {
|
|
143
|
-
|
|
309
|
+
marginTop: number;
|
|
310
|
+
marginBottom: string;
|
|
144
311
|
};
|
|
145
312
|
};
|
|
146
313
|
leadSans02: {
|
|
147
|
-
base:
|
|
314
|
+
base: {
|
|
315
|
+
color: string;
|
|
316
|
+
font: {
|
|
317
|
+
lineHeight: any;
|
|
318
|
+
fontSize: string;
|
|
319
|
+
letterSpacing: any;
|
|
320
|
+
fontFamily: any;
|
|
321
|
+
fontWeight: any;
|
|
322
|
+
fontStyle: any;
|
|
323
|
+
};
|
|
324
|
+
};
|
|
148
325
|
margins: {
|
|
149
|
-
|
|
326
|
+
marginTop: number;
|
|
327
|
+
marginBottom: string;
|
|
150
328
|
};
|
|
151
329
|
};
|
|
152
330
|
leadSans03: {
|
|
153
|
-
base:
|
|
331
|
+
base: {
|
|
332
|
+
color: string;
|
|
333
|
+
font: {
|
|
334
|
+
lineHeight: any;
|
|
335
|
+
fontSize: string;
|
|
336
|
+
letterSpacing: any;
|
|
337
|
+
fontFamily: any;
|
|
338
|
+
fontWeight: any;
|
|
339
|
+
fontStyle: any;
|
|
340
|
+
};
|
|
341
|
+
};
|
|
154
342
|
margins: {
|
|
155
|
-
|
|
343
|
+
marginTop: number;
|
|
344
|
+
marginBottom: string;
|
|
156
345
|
};
|
|
157
346
|
};
|
|
158
347
|
leadSans04: {
|
|
159
|
-
base:
|
|
348
|
+
base: {
|
|
349
|
+
color: string;
|
|
350
|
+
font: {
|
|
351
|
+
lineHeight: any;
|
|
352
|
+
fontSize: string;
|
|
353
|
+
letterSpacing: any;
|
|
354
|
+
fontFamily: any;
|
|
355
|
+
fontWeight: any;
|
|
356
|
+
fontStyle: any;
|
|
357
|
+
};
|
|
358
|
+
};
|
|
160
359
|
margins: {
|
|
161
|
-
|
|
360
|
+
marginTop: number;
|
|
361
|
+
marginBottom: string;
|
|
162
362
|
};
|
|
163
363
|
};
|
|
164
364
|
leadSans05: {
|
|
165
|
-
base:
|
|
365
|
+
base: {
|
|
366
|
+
color: string;
|
|
367
|
+
font: {
|
|
368
|
+
lineHeight: any;
|
|
369
|
+
fontSize: string;
|
|
370
|
+
letterSpacing: any;
|
|
371
|
+
fontFamily: any;
|
|
372
|
+
fontWeight: any;
|
|
373
|
+
fontStyle: any;
|
|
374
|
+
};
|
|
375
|
+
};
|
|
166
376
|
margins: {
|
|
167
|
-
|
|
377
|
+
marginTop: number;
|
|
378
|
+
marginBottom: string;
|
|
168
379
|
};
|
|
169
380
|
};
|
|
170
381
|
supportingStyleLabel01: {
|
|
171
|
-
base:
|
|
382
|
+
base: {
|
|
383
|
+
color: string;
|
|
384
|
+
font: {
|
|
385
|
+
lineHeight: any;
|
|
386
|
+
fontSize: string;
|
|
387
|
+
letterSpacing: any;
|
|
388
|
+
fontFamily: any;
|
|
389
|
+
fontWeight: any;
|
|
390
|
+
fontStyle: any;
|
|
391
|
+
};
|
|
392
|
+
margin: number;
|
|
393
|
+
};
|
|
172
394
|
margins: {
|
|
173
|
-
|
|
395
|
+
marginTop: string;
|
|
396
|
+
marginBottom: string;
|
|
174
397
|
};
|
|
175
398
|
};
|
|
176
399
|
supportingStyleHelperText01: {
|
|
177
|
-
base:
|
|
400
|
+
base: {
|
|
401
|
+
color: string;
|
|
402
|
+
font: {
|
|
403
|
+
lineHeight: any;
|
|
404
|
+
fontSize: string;
|
|
405
|
+
letterSpacing: any;
|
|
406
|
+
fontFamily: any;
|
|
407
|
+
fontWeight: any;
|
|
408
|
+
fontStyle: any;
|
|
409
|
+
};
|
|
410
|
+
margin: number;
|
|
411
|
+
};
|
|
178
412
|
margins: {
|
|
179
|
-
|
|
413
|
+
marginTop: string;
|
|
414
|
+
marginBottom: string;
|
|
180
415
|
};
|
|
181
416
|
};
|
|
182
417
|
supportingStyleInputText01: {
|
|
183
|
-
base:
|
|
418
|
+
base: {
|
|
419
|
+
color: string;
|
|
420
|
+
font: {
|
|
421
|
+
lineHeight: any;
|
|
422
|
+
fontSize: string;
|
|
423
|
+
letterSpacing: any;
|
|
424
|
+
fontFamily: any;
|
|
425
|
+
fontWeight: any;
|
|
426
|
+
fontStyle: any;
|
|
427
|
+
};
|
|
428
|
+
margin: number;
|
|
429
|
+
};
|
|
184
430
|
margins: {
|
|
185
|
-
|
|
431
|
+
marginTop: string;
|
|
432
|
+
marginBottom: string;
|
|
186
433
|
};
|
|
187
434
|
};
|
|
188
435
|
supportingStyleInputText02: {
|
|
189
|
-
base:
|
|
436
|
+
base: {
|
|
437
|
+
color: string;
|
|
438
|
+
font: {
|
|
439
|
+
lineHeight: any;
|
|
440
|
+
fontSize: string;
|
|
441
|
+
letterSpacing: any;
|
|
442
|
+
fontFamily: any;
|
|
443
|
+
fontWeight: any;
|
|
444
|
+
fontStyle: any;
|
|
445
|
+
};
|
|
446
|
+
margin: number;
|
|
447
|
+
};
|
|
190
448
|
margins: {
|
|
191
|
-
|
|
449
|
+
marginTop: string;
|
|
450
|
+
marginBottom: string;
|
|
192
451
|
};
|
|
193
452
|
};
|
|
194
453
|
supportingStyleInputText03: {
|
|
195
|
-
base:
|
|
454
|
+
base: {
|
|
455
|
+
color: string;
|
|
456
|
+
font: {
|
|
457
|
+
lineHeight: any;
|
|
458
|
+
fontSize: string;
|
|
459
|
+
letterSpacing: any;
|
|
460
|
+
fontFamily: any;
|
|
461
|
+
fontWeight: any;
|
|
462
|
+
fontStyle: any;
|
|
463
|
+
};
|
|
464
|
+
margin: number;
|
|
465
|
+
};
|
|
196
466
|
margins: {
|
|
197
|
-
|
|
467
|
+
marginTop: string;
|
|
468
|
+
marginBottom: string;
|
|
198
469
|
};
|
|
199
470
|
};
|
|
200
471
|
supportingStylePlaceholderText01: {
|
|
201
|
-
base:
|
|
472
|
+
base: {
|
|
473
|
+
color: string;
|
|
474
|
+
font: {
|
|
475
|
+
lineHeight: any;
|
|
476
|
+
fontSize: string;
|
|
477
|
+
letterSpacing: any;
|
|
478
|
+
fontFamily: any;
|
|
479
|
+
fontWeight: any;
|
|
480
|
+
fontStyle: any;
|
|
481
|
+
};
|
|
482
|
+
margin: number;
|
|
483
|
+
};
|
|
202
484
|
margins: {
|
|
203
|
-
|
|
485
|
+
marginTop: string;
|
|
486
|
+
marginBottom: string;
|
|
204
487
|
};
|
|
205
488
|
};
|
|
206
489
|
supportingStyleTiny01: {
|
|
207
|
-
base:
|
|
490
|
+
base: {
|
|
491
|
+
color: string;
|
|
492
|
+
font: {
|
|
493
|
+
lineHeight: any;
|
|
494
|
+
fontSize: string;
|
|
495
|
+
letterSpacing: any;
|
|
496
|
+
fontFamily: any;
|
|
497
|
+
fontWeight: any;
|
|
498
|
+
fontStyle: any;
|
|
499
|
+
};
|
|
500
|
+
margin: number;
|
|
501
|
+
};
|
|
208
502
|
margins: {
|
|
209
|
-
|
|
503
|
+
marginTop: string;
|
|
504
|
+
marginBottom: string;
|
|
210
505
|
};
|
|
211
506
|
};
|
|
212
507
|
supportingStyleTiny02: {
|
|
213
|
-
base:
|
|
508
|
+
base: {
|
|
509
|
+
color: string;
|
|
510
|
+
font: {
|
|
511
|
+
lineHeight: any;
|
|
512
|
+
fontSize: string;
|
|
513
|
+
letterSpacing: any;
|
|
514
|
+
fontFamily: any;
|
|
515
|
+
fontWeight: any;
|
|
516
|
+
fontStyle: any;
|
|
517
|
+
};
|
|
518
|
+
margin: number;
|
|
519
|
+
};
|
|
214
520
|
margins: {
|
|
215
|
-
|
|
521
|
+
marginTop: string;
|
|
522
|
+
marginBottom: string;
|
|
216
523
|
};
|
|
217
524
|
};
|
|
218
525
|
};
|
|
219
526
|
style: {
|
|
220
527
|
bold: {
|
|
221
|
-
|
|
222
|
-
};
|
|
223
|
-
italic: {
|
|
224
|
-
base: CSSObject;
|
|
225
|
-
};
|
|
226
|
-
underline: {
|
|
227
|
-
base: CSSObject;
|
|
528
|
+
fontWeight: number;
|
|
228
529
|
};
|
|
229
530
|
};
|
|
230
531
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ElementType } from 'react';
|
|
2
|
+
import { TypographyType, TypographyHeadingType, InlineElement, TypographyInteractionStyling, StaticTypographyType } from './Typography/Typography.types';
|
|
3
|
+
export declare const getElementType: (element: string) => ElementType;
|
|
4
|
+
export declare const isHeading: (type: TypographyType) => type is TypographyHeadingType;
|
|
5
|
+
export declare const inlineElements: ElementType[];
|
|
6
|
+
export declare const isInlineElement: (as: ElementType) => as is InlineElement;
|
|
7
|
+
export declare const getAdditionalFontStyle: (bold?: boolean, italic?: boolean, underline?: boolean) => import("styled-components").FlattenSimpleInterpolation;
|
|
8
|
+
export declare const getMarginStyling: (typographyType: TypographyType, element: ElementType, withMargins?: boolean) => import("styled-components").FlattenSimpleInterpolation;
|
|
9
|
+
export declare const getAnchorStyling: (external?: boolean, interactionStyling?: TypographyInteractionStyling, typographyType?: StaticTypographyType, withMargins?: boolean) => import("styled-components").FlattenSimpleInterpolation;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
argTypes: {
|
|
4
|
+
typographyType: {
|
|
5
|
+
control: {
|
|
6
|
+
type: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
bold: {
|
|
10
|
+
control: {
|
|
11
|
+
type: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
italic: {
|
|
15
|
+
control: {
|
|
16
|
+
type: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
underline: {
|
|
20
|
+
control: {
|
|
21
|
+
type: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
withMargins: {
|
|
25
|
+
control: {
|
|
26
|
+
type: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
color: {
|
|
30
|
+
control: {
|
|
31
|
+
type: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
text: {
|
|
35
|
+
control: {
|
|
36
|
+
type: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
export default _default;
|
|
42
|
+
export declare const ComponentsOverview: () => JSX.Element;
|