@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
package/dist/cjs/index.js
CHANGED
|
@@ -18,590 +18,367 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
18
18
|
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
19
19
|
var ReactSelect__default = /*#__PURE__*/_interopDefaultLegacy(ReactSelect);
|
|
20
20
|
|
|
21
|
-
var
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
21
|
+
var colors$c = ddsDesignTokens.ddsBaseTokens.colors,
|
|
22
|
+
fontPackages$8 = ddsDesignTokens.ddsBaseTokens.fontPackages,
|
|
23
|
+
spacing$c = ddsDesignTokens.ddsBaseTokens.spacing;
|
|
24
|
+
var textDefault$6 = ddsDesignTokens.ddsReferenceTokens.textDefault;
|
|
25
|
+
var a = {
|
|
26
|
+
base: {
|
|
27
|
+
color: colors$c.DdsColorInteractiveBase,
|
|
28
|
+
gap: spacing$c.SizesDdsSpacingLocalX0125
|
|
29
|
+
},
|
|
30
|
+
margins: {
|
|
31
|
+
marginTop: 0,
|
|
32
|
+
marginBottom: fontPackages$8.body_sans_02.paragraph.paragraphSpacing
|
|
33
|
+
},
|
|
34
|
+
hover: {
|
|
35
|
+
color: colors$c.DdsColorInteractiveDark
|
|
36
|
+
}
|
|
29
37
|
};
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
return styled.css(["@media (prefers-reduced-motion:no-preference){transition:visibility 0.4s,opacity 0.2s;}visibility:", ";opacity:", ";"], open ? 'visible' : 'hidden', open ? 1 : 0);
|
|
38
|
+
var bold = {
|
|
39
|
+
fontWeight: 600
|
|
33
40
|
};
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
41
|
+
var headingSans01 = {
|
|
42
|
+
base: {
|
|
43
|
+
color: textDefault$6.textColor,
|
|
44
|
+
font: fontPackages$8.heading_sans_01.base
|
|
45
|
+
},
|
|
46
|
+
margins: {
|
|
47
|
+
marginTop: 0,
|
|
48
|
+
marginBottom: fontPackages$8.heading_sans_01.paragraph.paragraphSpacing,
|
|
49
|
+
paddingTop: spacing$c.SpacingDdsSpacingPaddingTopHeadingSans01Top
|
|
50
|
+
}
|
|
42
51
|
};
|
|
43
|
-
var
|
|
44
|
-
|
|
45
|
-
|
|
52
|
+
var headingSans02 = {
|
|
53
|
+
base: {
|
|
54
|
+
color: textDefault$6.textColor,
|
|
55
|
+
font: fontPackages$8.heading_sans_02.base
|
|
56
|
+
},
|
|
57
|
+
margins: {
|
|
58
|
+
marginTop: 0,
|
|
59
|
+
marginBottom: fontPackages$8.heading_sans_02.paragraph.paragraphSpacing,
|
|
60
|
+
paddingTop: spacing$c.SpacingDdsSpacingPaddingTopHeadingSans02Top
|
|
61
|
+
}
|
|
46
62
|
};
|
|
47
|
-
var
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
63
|
+
var headingSans03 = {
|
|
64
|
+
base: {
|
|
65
|
+
color: textDefault$6.textColor,
|
|
66
|
+
font: fontPackages$8.heading_sans_03.base
|
|
67
|
+
},
|
|
68
|
+
margins: {
|
|
69
|
+
marginTop: 0,
|
|
70
|
+
marginBottom: fontPackages$8.heading_sans_03.paragraph.paragraphSpacing,
|
|
71
|
+
paddingTop: spacing$c.SpacingDdsSpacingPaddingTopHeadingSans03Top
|
|
72
|
+
}
|
|
53
73
|
};
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
boxShadow: "inset 0 0 0 1px ".concat(Border$e.BordersDdsBorderFocusCardStroke)
|
|
74
|
+
var headingSans04 = {
|
|
75
|
+
base: {
|
|
76
|
+
color: textDefault$6.textColor,
|
|
77
|
+
font: fontPackages$8.heading_sans_04.base
|
|
78
|
+
},
|
|
79
|
+
margins: {
|
|
80
|
+
marginTop: 0,
|
|
81
|
+
marginBottom: fontPackages$8.heading_sans_04.paragraph.paragraphSpacing,
|
|
82
|
+
paddingTop: spacing$c.SpacingDdsSpacingPaddingTopHeadingSans04Top
|
|
83
|
+
}
|
|
65
84
|
};
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
85
|
+
var headingSans05 = {
|
|
86
|
+
base: {
|
|
87
|
+
color: textDefault$6.textColor,
|
|
88
|
+
font: fontPackages$8.heading_sans_05.base
|
|
89
|
+
},
|
|
90
|
+
margins: {
|
|
91
|
+
marginTop: 0,
|
|
92
|
+
marginBottom: fontPackages$8.heading_sans_05.paragraph.paragraphSpacing,
|
|
93
|
+
paddingTop: spacing$c.SpacingDdsSpacingPaddingTopHeadingSans05Top
|
|
94
|
+
}
|
|
74
95
|
};
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
96
|
+
var headingSans06 = {
|
|
97
|
+
base: {
|
|
98
|
+
color: textDefault$6.textColor,
|
|
99
|
+
font: fontPackages$8.heading_sans_06.base
|
|
100
|
+
},
|
|
101
|
+
margins: {
|
|
102
|
+
marginTop: 0,
|
|
103
|
+
marginBottom: fontPackages$8.heading_sans_06.paragraph.paragraphSpacing,
|
|
104
|
+
paddingTop: spacing$c.SpacingDdsSpacingPaddingTopHeadingSans06Top
|
|
105
|
+
}
|
|
81
106
|
};
|
|
82
|
-
var
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
107
|
+
var headingSans07 = {
|
|
108
|
+
base: {
|
|
109
|
+
color: textDefault$6.textColor,
|
|
110
|
+
font: fontPackages$8.heading_sans_07.base
|
|
111
|
+
},
|
|
112
|
+
margins: {
|
|
113
|
+
marginTop: 0,
|
|
114
|
+
marginBottom: fontPackages$8.heading_sans_07.paragraph.paragraphSpacing,
|
|
115
|
+
paddingTop: spacing$c.SpacingDdsSpacingPaddingTopHeadingSans07Top
|
|
116
|
+
}
|
|
86
117
|
};
|
|
87
|
-
var
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
118
|
+
var headingSans08 = {
|
|
119
|
+
base: {
|
|
120
|
+
color: textDefault$6.textColor,
|
|
121
|
+
font: fontPackages$8.heading_sans_08.base
|
|
122
|
+
},
|
|
123
|
+
margins: {
|
|
124
|
+
marginTop: 0,
|
|
125
|
+
marginBottom: fontPackages$8.heading_sans_08.paragraph.paragraphSpacing,
|
|
126
|
+
paddingTop: spacing$c.SpacingDdsSpacingPaddingTopHeadingSans08Top
|
|
127
|
+
}
|
|
91
128
|
};
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
129
|
+
var bodySans01 = {
|
|
130
|
+
base: {
|
|
131
|
+
color: textDefault$6.textColor,
|
|
132
|
+
font: fontPackages$8.body_sans_01.base
|
|
133
|
+
},
|
|
134
|
+
margins: {
|
|
135
|
+
marginTop: 0,
|
|
136
|
+
marginBottom: fontPackages$8.body_sans_01.paragraph.paragraphSpacing
|
|
137
|
+
}
|
|
99
138
|
};
|
|
100
|
-
var
|
|
101
|
-
|
|
102
|
-
|
|
139
|
+
var bodySans02 = {
|
|
140
|
+
base: {
|
|
141
|
+
color: textDefault$6.textColor,
|
|
142
|
+
font: fontPackages$8.body_sans_02.base
|
|
143
|
+
},
|
|
144
|
+
margins: {
|
|
145
|
+
marginTop: 0,
|
|
146
|
+
marginBottom: fontPackages$8.body_sans_02.paragraph.paragraphSpacing
|
|
147
|
+
}
|
|
103
148
|
};
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
149
|
+
var bodySans03 = {
|
|
150
|
+
base: {
|
|
151
|
+
color: textDefault$6.textColor,
|
|
152
|
+
font: fontPackages$8.body_sans_03.base
|
|
153
|
+
},
|
|
154
|
+
margins: {
|
|
155
|
+
marginTop: 0,
|
|
156
|
+
marginBottom: fontPackages$8.body_sans_03.paragraph.paragraphSpacing
|
|
157
|
+
}
|
|
109
158
|
};
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
159
|
+
var bodySans04 = {
|
|
160
|
+
base: {
|
|
161
|
+
color: textDefault$6.textColor,
|
|
162
|
+
font: fontPackages$8.body_sans_04.base
|
|
163
|
+
},
|
|
164
|
+
margins: {
|
|
165
|
+
marginTop: 0,
|
|
166
|
+
marginBottom: fontPackages$8.body_sans_04.paragraph.paragraphSpacing
|
|
167
|
+
}
|
|
115
168
|
};
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
success: Colors$k.DdsColorSuccessBase,
|
|
126
|
-
warning: Colors$k.DdsColorWarningBase,
|
|
127
|
-
onLight: textDefault$5.textColor,
|
|
128
|
-
onDark: Colors$k.DdsColorNeutralsWhite,
|
|
129
|
-
gray1: Colors$k.DdsColorNeutralsGray1,
|
|
130
|
-
gray2: Colors$k.DdsColorNeutralsGray2,
|
|
131
|
-
gray3: Colors$k.DdsColorNeutralsGray3,
|
|
132
|
-
gray4: Colors$k.DdsColorNeutralsGray4,
|
|
133
|
-
gray5: Colors$k.DdsColorNeutralsGray5,
|
|
134
|
-
gray6: Colors$k.DdsColorNeutralsGray6,
|
|
135
|
-
gray7: Colors$k.DdsColorNeutralsGray7,
|
|
136
|
-
gray8: Colors$k.DdsColorNeutralsGray8,
|
|
137
|
-
gray9: Colors$k.DdsColorNeutralsGray9
|
|
169
|
+
var bodySerif01 = {
|
|
170
|
+
base: {
|
|
171
|
+
color: textDefault$6.textColor,
|
|
172
|
+
font: fontPackages$8.body_serif_01.base
|
|
173
|
+
},
|
|
174
|
+
margins: {
|
|
175
|
+
marginTop: 0,
|
|
176
|
+
marginBottom: fontPackages$8.body_serif_01.paragraph.paragraphSpacing
|
|
177
|
+
}
|
|
138
178
|
};
|
|
139
|
-
var
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
179
|
+
var bodySerif02 = {
|
|
180
|
+
base: {
|
|
181
|
+
color: textDefault$6.textColor,
|
|
182
|
+
font: fontPackages$8.body_serif_02.base
|
|
183
|
+
},
|
|
184
|
+
margins: {
|
|
185
|
+
marginTop: 0,
|
|
186
|
+
marginBottom: fontPackages$8.body_serif_02.paragraph.paragraphSpacing
|
|
187
|
+
}
|
|
145
188
|
};
|
|
146
|
-
var
|
|
147
|
-
|
|
148
|
-
|
|
189
|
+
var bodySerif03 = {
|
|
190
|
+
base: {
|
|
191
|
+
color: textDefault$6.textColor,
|
|
192
|
+
font: fontPackages$8.body_serif_03.base
|
|
193
|
+
},
|
|
194
|
+
margins: {
|
|
195
|
+
marginTop: 0,
|
|
196
|
+
marginBottom: fontPackages$8.body_serif_03.paragraph.paragraphSpacing
|
|
197
|
+
}
|
|
149
198
|
};
|
|
150
|
-
var
|
|
151
|
-
|
|
199
|
+
var bodySerif04 = {
|
|
200
|
+
base: {
|
|
201
|
+
color: textDefault$6.textColor,
|
|
202
|
+
font: fontPackages$8.body_serif_04.base
|
|
203
|
+
},
|
|
204
|
+
margins: {
|
|
205
|
+
marginTop: 0,
|
|
206
|
+
marginBottom: fontPackages$8.body_serif_04.paragraph.paragraphSpacing
|
|
207
|
+
}
|
|
152
208
|
};
|
|
153
|
-
var
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
209
|
+
var leadSans01 = {
|
|
210
|
+
base: {
|
|
211
|
+
color: textDefault$6.textColor,
|
|
212
|
+
font: fontPackages$8.lead_sans_01.base
|
|
213
|
+
},
|
|
214
|
+
margins: {
|
|
215
|
+
marginTop: 0,
|
|
216
|
+
marginBottom: fontPackages$8.lead_sans_01.paragraph.paragraphSpacing
|
|
217
|
+
}
|
|
159
218
|
};
|
|
160
|
-
var
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
}
|
|
169
|
-
var headingSans01MarginsBase = {
|
|
170
|
-
marginTop: 0,
|
|
171
|
-
marginBottom: FontPackages$d.heading_sans_01.paragraph.paragraphSpacing,
|
|
172
|
-
paddingTop: Spacing$r.SpacingDdsSpacingPaddingTopHeadingSans01Top
|
|
173
|
-
};
|
|
174
|
-
var headingSans02Base = Object.assign({
|
|
175
|
-
color: textDefault$5.textColor
|
|
176
|
-
}, FontPackages$d.heading_sans_02.base);
|
|
177
|
-
var headingSans02MarginsBase = {
|
|
178
|
-
marginTop: 0,
|
|
179
|
-
marginBottom: FontPackages$d.heading_sans_02.paragraph.paragraphSpacing,
|
|
180
|
-
paddingTop: Spacing$r.SpacingDdsSpacingPaddingTopHeadingSans02Top
|
|
181
|
-
};
|
|
182
|
-
var headingSans03Base = Object.assign({
|
|
183
|
-
color: textDefault$5.textColor
|
|
184
|
-
}, FontPackages$d.heading_sans_03.base);
|
|
185
|
-
var headingSans03MarginsBase = {
|
|
186
|
-
marginTop: 0,
|
|
187
|
-
marginBottom: FontPackages$d.heading_sans_03.paragraph.paragraphSpacing,
|
|
188
|
-
paddingTop: Spacing$r.SpacingDdsSpacingPaddingTopHeadingSans03Top
|
|
189
|
-
};
|
|
190
|
-
var headingSans04Base = Object.assign({
|
|
191
|
-
color: textDefault$5.textColor
|
|
192
|
-
}, FontPackages$d.heading_sans_04.base);
|
|
193
|
-
var headingSans04MarginsBase = {
|
|
194
|
-
marginTop: 0,
|
|
195
|
-
marginBottom: FontPackages$d.heading_sans_04.paragraph.paragraphSpacing,
|
|
196
|
-
paddingTop: Spacing$r.SpacingDdsSpacingPaddingTopHeadingSans04Top
|
|
197
|
-
};
|
|
198
|
-
var headingSans05Base = Object.assign({
|
|
199
|
-
color: textDefault$5.textColor
|
|
200
|
-
}, FontPackages$d.heading_sans_05.base);
|
|
201
|
-
var headingSans05MarginsBase = {
|
|
202
|
-
marginTop: 0,
|
|
203
|
-
marginBottom: FontPackages$d.heading_sans_05.paragraph.paragraphSpacing,
|
|
204
|
-
paddingTop: Spacing$r.SpacingDdsSpacingPaddingTopHeadingSans05Top
|
|
205
|
-
};
|
|
206
|
-
var headingSans06Base = Object.assign({
|
|
207
|
-
color: textDefault$5.textColor
|
|
208
|
-
}, FontPackages$d.heading_sans_06.base);
|
|
209
|
-
var headingSans06MarginsBase = {
|
|
210
|
-
marginTop: 0,
|
|
211
|
-
marginBottom: FontPackages$d.heading_sans_06.paragraph.paragraphSpacing,
|
|
212
|
-
paddingTop: Spacing$r.SpacingDdsSpacingPaddingTopHeadingSans06Top
|
|
213
|
-
};
|
|
214
|
-
var headingSans07Base = Object.assign({
|
|
215
|
-
color: textDefault$5.textColor
|
|
216
|
-
}, FontPackages$d.heading_sans_07.base);
|
|
217
|
-
var headingSans07MarginsBase = {
|
|
218
|
-
marginTop: 0,
|
|
219
|
-
marginBottom: FontPackages$d.heading_sans_07.paragraph.paragraphSpacing,
|
|
220
|
-
paddingTop: Spacing$r.SpacingDdsSpacingPaddingTopHeadingSans07Top
|
|
221
|
-
};
|
|
222
|
-
var headingSans08Base = Object.assign({
|
|
223
|
-
color: textDefault$5.textColor
|
|
224
|
-
}, FontPackages$d.heading_sans_08.base);
|
|
225
|
-
var headingSans08MarginsBase = {
|
|
226
|
-
marginTop: 0,
|
|
227
|
-
marginBottom: FontPackages$d.heading_sans_08.paragraph.paragraphSpacing,
|
|
228
|
-
paddingTop: Spacing$r.SpacingDdsSpacingPaddingTopHeadingSans08Top
|
|
229
|
-
};
|
|
230
|
-
var bodySans01Base$1 = Object.assign({
|
|
231
|
-
color: textDefault$5.textColor
|
|
232
|
-
}, FontPackages$d.body_sans_01.base);
|
|
233
|
-
var bodySans01MarginsBase = {
|
|
234
|
-
marginTop: 0,
|
|
235
|
-
marginBottom: FontPackages$d.body_sans_01.paragraph.paragraphSpacing
|
|
236
|
-
};
|
|
237
|
-
var bodySans02Base$1 = Object.assign({
|
|
238
|
-
color: textDefault$5.textColor
|
|
239
|
-
}, FontPackages$d.body_sans_02.base);
|
|
240
|
-
var bodySans02MarginsBase = {
|
|
241
|
-
marginTop: 0,
|
|
242
|
-
marginBottom: FontPackages$d.body_sans_02.paragraph.paragraphSpacing
|
|
243
|
-
};
|
|
244
|
-
var bodySans03Base$1 = Object.assign({
|
|
245
|
-
color: textDefault$5.textColor
|
|
246
|
-
}, FontPackages$d.body_sans_03.base);
|
|
247
|
-
var bodySans03MarginsBase = {
|
|
248
|
-
marginTop: 0,
|
|
249
|
-
marginBottom: FontPackages$d.body_sans_03.paragraph.paragraphSpacing
|
|
250
|
-
};
|
|
251
|
-
var bodySans04Base$1 = Object.assign({
|
|
252
|
-
color: textDefault$5.textColor
|
|
253
|
-
}, FontPackages$d.body_sans_04.base);
|
|
254
|
-
var bodySans04MarginsBase = {
|
|
255
|
-
marginTop: 0,
|
|
256
|
-
marginBottom: FontPackages$d.body_sans_04.paragraph.paragraphSpacing
|
|
257
|
-
};
|
|
258
|
-
var bodySerif01Base$1 = Object.assign({
|
|
259
|
-
color: textDefault$5.textColor
|
|
260
|
-
}, FontPackages$d.body_serif_01.base);
|
|
261
|
-
var bodySerif01MarginsBase = {
|
|
262
|
-
marginTop: 0,
|
|
263
|
-
marginBottom: FontPackages$d.body_serif_01.paragraph.paragraphSpacing
|
|
264
|
-
};
|
|
265
|
-
var bodySerif02Base$1 = Object.assign({
|
|
266
|
-
color: textDefault$5.textColor
|
|
267
|
-
}, FontPackages$d.body_serif_02.base);
|
|
268
|
-
var bodySerif02MarginsBase = {
|
|
269
|
-
marginTop: 0,
|
|
270
|
-
marginBottom: FontPackages$d.body_serif_02.paragraph.paragraphSpacing
|
|
271
|
-
};
|
|
272
|
-
var bodySerif03Base$1 = Object.assign({
|
|
273
|
-
color: textDefault$5.textColor
|
|
274
|
-
}, FontPackages$d.body_serif_03.base);
|
|
275
|
-
var bodySerif03MarginsBase = {
|
|
276
|
-
marginTop: 0,
|
|
277
|
-
marginBottom: FontPackages$d.body_serif_03.paragraph.paragraphSpacing
|
|
278
|
-
};
|
|
279
|
-
var bodySerif04Base$1 = Object.assign({
|
|
280
|
-
color: textDefault$5.textColor
|
|
281
|
-
}, FontPackages$d.body_serif_04.base);
|
|
282
|
-
var bodySerif04MarginsBase = {
|
|
283
|
-
marginTop: 0,
|
|
284
|
-
marginBottom: FontPackages$d.body_serif_04.paragraph.paragraphSpacing
|
|
285
|
-
};
|
|
286
|
-
var leadSans01Base = Object.assign({
|
|
287
|
-
color: textDefault$5.textColor
|
|
288
|
-
}, FontPackages$d.lead_sans_01.base);
|
|
289
|
-
var leadSans01MarginsBase = {
|
|
290
|
-
marginTop: 0,
|
|
291
|
-
marginBottom: FontPackages$d.lead_sans_01.paragraph.paragraphSpacing
|
|
292
|
-
};
|
|
293
|
-
var leadSans02Base = Object.assign({
|
|
294
|
-
color: textDefault$5.textColor
|
|
295
|
-
}, FontPackages$d.lead_sans_02.base);
|
|
296
|
-
var leadSans02MarginsBase = {
|
|
297
|
-
marginTop: 0,
|
|
298
|
-
marginBottom: FontPackages$d.lead_sans_02.paragraph.paragraphSpacing
|
|
299
|
-
};
|
|
300
|
-
var leadSans03Base = Object.assign({
|
|
301
|
-
color: textDefault$5.textColor
|
|
302
|
-
}, FontPackages$d.lead_sans_03.base);
|
|
303
|
-
var leadSans03MarginsBase = {
|
|
304
|
-
marginTop: 0,
|
|
305
|
-
marginBottom: FontPackages$d.lead_sans_03.paragraph.paragraphSpacing
|
|
306
|
-
};
|
|
307
|
-
var leadSans04Base = Object.assign({
|
|
308
|
-
color: textDefault$5.textColor
|
|
309
|
-
}, FontPackages$d.lead_sans_04.base);
|
|
310
|
-
var leadSans04MarginsBase = {
|
|
311
|
-
marginTop: 0,
|
|
312
|
-
marginBottom: FontPackages$d.lead_sans_04.paragraph.paragraphSpacing
|
|
313
|
-
};
|
|
314
|
-
var leadSans05Base = Object.assign({
|
|
315
|
-
color: textDefault$5.textColor
|
|
316
|
-
}, FontPackages$d.lead_sans_05.base);
|
|
317
|
-
var leadSans05MarginsBase = {
|
|
318
|
-
marginTop: 0,
|
|
319
|
-
marginBottom: FontPackages$d.lead_sans_05.paragraph.paragraphSpacing
|
|
320
|
-
};
|
|
321
|
-
var supportingStyleLabel01Base = Object.assign(Object.assign({
|
|
322
|
-
color: Colors$k.DdsColorNeutralsGray7
|
|
323
|
-
}, FontPackages$d.supportingStyle_label_01.base), {
|
|
324
|
-
margin: 0
|
|
325
|
-
});
|
|
326
|
-
var supportingStyleLabel01MarginsBase = {
|
|
327
|
-
marginTop: FontPackages$d.supportingStyle_label_01.paragraph.paragraphSpacing,
|
|
328
|
-
marginBottom: FontPackages$d.supportingStyle_label_01.paragraph.paragraphSpacing
|
|
219
|
+
var leadSans02 = {
|
|
220
|
+
base: {
|
|
221
|
+
color: textDefault$6.textColor,
|
|
222
|
+
font: fontPackages$8.lead_sans_02.base
|
|
223
|
+
},
|
|
224
|
+
margins: {
|
|
225
|
+
marginTop: 0,
|
|
226
|
+
marginBottom: fontPackages$8.lead_sans_02.paragraph.paragraphSpacing
|
|
227
|
+
}
|
|
329
228
|
};
|
|
330
|
-
var
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
229
|
+
var leadSans03 = {
|
|
230
|
+
base: {
|
|
231
|
+
color: textDefault$6.textColor,
|
|
232
|
+
font: fontPackages$8.lead_sans_03.base
|
|
233
|
+
},
|
|
234
|
+
margins: {
|
|
235
|
+
marginTop: 0,
|
|
236
|
+
marginBottom: fontPackages$8.lead_sans_03.paragraph.paragraphSpacing
|
|
237
|
+
}
|
|
338
238
|
};
|
|
339
|
-
var
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
239
|
+
var leadSans04 = {
|
|
240
|
+
base: {
|
|
241
|
+
color: textDefault$6.textColor,
|
|
242
|
+
font: fontPackages$8.lead_sans_04.base
|
|
243
|
+
},
|
|
244
|
+
margins: {
|
|
245
|
+
marginTop: 0,
|
|
246
|
+
marginBottom: fontPackages$8.lead_sans_04.paragraph.paragraphSpacing
|
|
247
|
+
}
|
|
347
248
|
};
|
|
348
|
-
var
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
249
|
+
var leadSans05 = {
|
|
250
|
+
base: {
|
|
251
|
+
color: textDefault$6.textColor,
|
|
252
|
+
font: fontPackages$8.lead_sans_05.base
|
|
253
|
+
},
|
|
254
|
+
margins: {
|
|
255
|
+
marginTop: 0,
|
|
256
|
+
marginBottom: fontPackages$8.lead_sans_05.paragraph.paragraphSpacing
|
|
257
|
+
}
|
|
356
258
|
};
|
|
357
|
-
var
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
259
|
+
var supportingStyleLabel01 = {
|
|
260
|
+
base: {
|
|
261
|
+
color: colors$c.DdsColorNeutralsGray7,
|
|
262
|
+
font: fontPackages$8.supportingStyle_label_01.base,
|
|
263
|
+
margin: 0
|
|
264
|
+
},
|
|
265
|
+
margins: {
|
|
266
|
+
marginTop: fontPackages$8.supportingStyle_label_01.paragraph.paragraphSpacing,
|
|
267
|
+
marginBottom: fontPackages$8.supportingStyle_label_01.paragraph.paragraphSpacing
|
|
268
|
+
}
|
|
365
269
|
};
|
|
366
|
-
var
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
270
|
+
var supportingStyleHelperText01 = {
|
|
271
|
+
base: {
|
|
272
|
+
color: colors$c.DdsColorNeutralsGray6,
|
|
273
|
+
font: fontPackages$8.supportingStyle_helpertext_01.base,
|
|
274
|
+
margin: 0
|
|
275
|
+
},
|
|
276
|
+
margins: {
|
|
277
|
+
marginTop: fontPackages$8.supportingStyle_helpertext_01.paragraph.paragraphSpacing,
|
|
278
|
+
marginBottom: fontPackages$8.supportingStyle_helpertext_01.paragraph.paragraphSpacing
|
|
279
|
+
}
|
|
374
280
|
};
|
|
375
|
-
var
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
281
|
+
var supportingStyleInputText01 = {
|
|
282
|
+
base: {
|
|
283
|
+
color: textDefault$6.textColor,
|
|
284
|
+
font: fontPackages$8.supportingStyle_inputtext_01.base,
|
|
285
|
+
margin: 0
|
|
286
|
+
},
|
|
287
|
+
margins: {
|
|
288
|
+
marginTop: fontPackages$8.supportingStyle_inputtext_01.paragraph.paragraphSpacing,
|
|
289
|
+
marginBottom: fontPackages$8.supportingStyle_inputtext_01.paragraph.paragraphSpacing
|
|
290
|
+
}
|
|
383
291
|
};
|
|
384
|
-
var
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
292
|
+
var supportingStyleInputText02 = {
|
|
293
|
+
base: {
|
|
294
|
+
color: textDefault$6.textColor,
|
|
295
|
+
font: fontPackages$8.supportingStyle_inputtext_02.base,
|
|
296
|
+
margin: 0
|
|
297
|
+
},
|
|
298
|
+
margins: {
|
|
299
|
+
marginTop: fontPackages$8.supportingStyle_inputtext_02.paragraph.paragraphSpacing,
|
|
300
|
+
marginBottom: fontPackages$8.supportingStyle_inputtext_02.paragraph.paragraphSpacing
|
|
301
|
+
}
|
|
392
302
|
};
|
|
393
|
-
var
|
|
394
|
-
|
|
395
|
-
|
|
303
|
+
var supportingStyleInputText03 = {
|
|
304
|
+
base: {
|
|
305
|
+
color: textDefault$6.textColor,
|
|
306
|
+
font: fontPackages$8.supportingStyle_inputtext_03.base,
|
|
307
|
+
margin: 0
|
|
308
|
+
},
|
|
309
|
+
margins: {
|
|
310
|
+
marginTop: fontPackages$8.supportingStyle_inputtext_03.paragraph.paragraphSpacing,
|
|
311
|
+
marginBottom: fontPackages$8.supportingStyle_inputtext_03.paragraph.paragraphSpacing
|
|
312
|
+
}
|
|
396
313
|
};
|
|
397
|
-
var
|
|
398
|
-
|
|
399
|
-
|
|
314
|
+
var supportingStylePlaceholderText01 = {
|
|
315
|
+
base: {
|
|
316
|
+
color: colors$c.DdsColorNeutralsGray6,
|
|
317
|
+
font: fontPackages$8.supportingStyle_placeholdertext_01.base,
|
|
318
|
+
margin: 0
|
|
319
|
+
},
|
|
320
|
+
margins: {
|
|
321
|
+
marginTop: fontPackages$8.supportingStyle_placeholdertext_01.paragraph.paragraphSpacing,
|
|
322
|
+
marginBottom: fontPackages$8.supportingStyle_placeholdertext_01.paragraph.paragraphSpacing
|
|
323
|
+
}
|
|
324
|
+
};
|
|
325
|
+
var supportingStyleTiny01 = {
|
|
326
|
+
base: {
|
|
327
|
+
color: textDefault$6.textColor,
|
|
328
|
+
font: fontPackages$8.supportingStyle_tiny_01.base,
|
|
329
|
+
margin: 0
|
|
400
330
|
},
|
|
331
|
+
margins: {
|
|
332
|
+
marginTop: fontPackages$8.supportingStyle_tiny_01.paragraph.paragraphSpacing,
|
|
333
|
+
marginBottom: fontPackages$8.supportingStyle_tiny_01.paragraph.paragraphSpacing
|
|
334
|
+
}
|
|
335
|
+
};
|
|
336
|
+
var supportingStyleTiny02 = {
|
|
337
|
+
base: {
|
|
338
|
+
color: textDefault$6.textColor,
|
|
339
|
+
font: fontPackages$8.supportingStyle_tiny_02.base,
|
|
340
|
+
margin: 0
|
|
341
|
+
},
|
|
342
|
+
margins: {
|
|
343
|
+
marginTop: fontPackages$8.supportingStyle_tiny_02.paragraph.paragraphSpacing,
|
|
344
|
+
marginBottom: fontPackages$8.supportingStyle_tiny_02.paragraph.paragraphSpacing
|
|
345
|
+
}
|
|
346
|
+
};
|
|
347
|
+
var typographyTokens = {
|
|
401
348
|
typographyType: {
|
|
402
|
-
a:
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
headingSans03: {
|
|
433
|
-
base: headingSans03Base,
|
|
434
|
-
margins: {
|
|
435
|
-
base: headingSans03MarginsBase
|
|
436
|
-
}
|
|
437
|
-
},
|
|
438
|
-
headingSans04: {
|
|
439
|
-
base: headingSans04Base,
|
|
440
|
-
margins: {
|
|
441
|
-
base: headingSans04MarginsBase
|
|
442
|
-
}
|
|
443
|
-
},
|
|
444
|
-
headingSans05: {
|
|
445
|
-
base: headingSans05Base,
|
|
446
|
-
margins: {
|
|
447
|
-
base: headingSans05MarginsBase
|
|
448
|
-
}
|
|
449
|
-
},
|
|
450
|
-
headingSans06: {
|
|
451
|
-
base: headingSans06Base,
|
|
452
|
-
margins: {
|
|
453
|
-
base: headingSans06MarginsBase
|
|
454
|
-
}
|
|
455
|
-
},
|
|
456
|
-
headingSans07: {
|
|
457
|
-
base: headingSans07Base,
|
|
458
|
-
margins: {
|
|
459
|
-
base: headingSans07MarginsBase
|
|
460
|
-
}
|
|
461
|
-
},
|
|
462
|
-
headingSans08: {
|
|
463
|
-
base: headingSans08Base,
|
|
464
|
-
margins: {
|
|
465
|
-
base: headingSans08MarginsBase
|
|
466
|
-
}
|
|
467
|
-
},
|
|
468
|
-
bodySans01: {
|
|
469
|
-
base: bodySans01Base$1,
|
|
470
|
-
margins: {
|
|
471
|
-
base: bodySans01MarginsBase
|
|
472
|
-
}
|
|
473
|
-
},
|
|
474
|
-
bodySans02: {
|
|
475
|
-
base: bodySans02Base$1,
|
|
476
|
-
margins: {
|
|
477
|
-
base: bodySans02MarginsBase
|
|
478
|
-
}
|
|
479
|
-
},
|
|
480
|
-
bodySans03: {
|
|
481
|
-
base: bodySans03Base$1,
|
|
482
|
-
margins: {
|
|
483
|
-
base: bodySans03MarginsBase
|
|
484
|
-
}
|
|
485
|
-
},
|
|
486
|
-
bodySans04: {
|
|
487
|
-
base: bodySans04Base$1,
|
|
488
|
-
margins: {
|
|
489
|
-
base: bodySans04MarginsBase
|
|
490
|
-
}
|
|
491
|
-
},
|
|
492
|
-
bodySerif01: {
|
|
493
|
-
base: bodySerif01Base$1,
|
|
494
|
-
margins: {
|
|
495
|
-
base: bodySerif01MarginsBase
|
|
496
|
-
}
|
|
497
|
-
},
|
|
498
|
-
bodySerif02: {
|
|
499
|
-
base: bodySerif02Base$1,
|
|
500
|
-
margins: {
|
|
501
|
-
base: bodySerif02MarginsBase
|
|
502
|
-
}
|
|
503
|
-
},
|
|
504
|
-
bodySerif03: {
|
|
505
|
-
base: bodySerif03Base$1,
|
|
506
|
-
margins: {
|
|
507
|
-
base: bodySerif03MarginsBase
|
|
508
|
-
}
|
|
509
|
-
},
|
|
510
|
-
bodySerif04: {
|
|
511
|
-
base: bodySerif04Base$1,
|
|
512
|
-
margins: {
|
|
513
|
-
base: bodySerif04MarginsBase
|
|
514
|
-
}
|
|
515
|
-
},
|
|
516
|
-
leadSans01: {
|
|
517
|
-
base: leadSans01Base,
|
|
518
|
-
margins: {
|
|
519
|
-
base: leadSans01MarginsBase
|
|
520
|
-
}
|
|
521
|
-
},
|
|
522
|
-
leadSans02: {
|
|
523
|
-
base: leadSans02Base,
|
|
524
|
-
margins: {
|
|
525
|
-
base: leadSans02MarginsBase
|
|
526
|
-
}
|
|
527
|
-
},
|
|
528
|
-
leadSans03: {
|
|
529
|
-
base: leadSans03Base,
|
|
530
|
-
margins: {
|
|
531
|
-
base: leadSans03MarginsBase
|
|
532
|
-
}
|
|
533
|
-
},
|
|
534
|
-
leadSans04: {
|
|
535
|
-
base: leadSans04Base,
|
|
536
|
-
margins: {
|
|
537
|
-
base: leadSans04MarginsBase
|
|
538
|
-
}
|
|
539
|
-
},
|
|
540
|
-
leadSans05: {
|
|
541
|
-
base: leadSans05Base,
|
|
542
|
-
margins: {
|
|
543
|
-
base: leadSans05MarginsBase
|
|
544
|
-
}
|
|
545
|
-
},
|
|
546
|
-
supportingStyleLabel01: {
|
|
547
|
-
base: supportingStyleLabel01Base,
|
|
548
|
-
margins: {
|
|
549
|
-
base: supportingStyleLabel01MarginsBase
|
|
550
|
-
}
|
|
551
|
-
},
|
|
552
|
-
supportingStyleHelperText01: {
|
|
553
|
-
base: supportingStyleHelperText01Base,
|
|
554
|
-
margins: {
|
|
555
|
-
base: supportingStyleHelperText01MarginsBase
|
|
556
|
-
}
|
|
557
|
-
},
|
|
558
|
-
supportingStyleInputText01: {
|
|
559
|
-
base: supportingStyleInputText01Base,
|
|
560
|
-
margins: {
|
|
561
|
-
base: supportingStyleInputText01MarginsBase
|
|
562
|
-
}
|
|
563
|
-
},
|
|
564
|
-
supportingStyleInputText02: {
|
|
565
|
-
base: supportingStyleInputText02Base,
|
|
566
|
-
margins: {
|
|
567
|
-
base: supportingStyleInputText02MarginsBase
|
|
568
|
-
}
|
|
569
|
-
},
|
|
570
|
-
supportingStyleInputText03: {
|
|
571
|
-
base: supportingStyleInputText03Base,
|
|
572
|
-
margins: {
|
|
573
|
-
base: supportingStyleInputText03MarginsBase
|
|
574
|
-
}
|
|
575
|
-
},
|
|
576
|
-
supportingStylePlaceholderText01: {
|
|
577
|
-
base: supportingStylePlaceholderText01Base,
|
|
578
|
-
margins: {
|
|
579
|
-
base: supportingStylePlaceholderText01MarginsBase
|
|
580
|
-
}
|
|
581
|
-
},
|
|
582
|
-
supportingStyleTiny01: {
|
|
583
|
-
base: supportingStyleTiny01Base,
|
|
584
|
-
margins: {
|
|
585
|
-
base: supportingStyleTiny01MarginsBase
|
|
586
|
-
}
|
|
587
|
-
},
|
|
588
|
-
supportingStyleTiny02: {
|
|
589
|
-
base: supportingStyleTiny02Base,
|
|
590
|
-
margins: {
|
|
591
|
-
base: supportingStyleTiny02MarginsBase
|
|
592
|
-
}
|
|
593
|
-
}
|
|
349
|
+
a: a,
|
|
350
|
+
headingSans01: headingSans01,
|
|
351
|
+
headingSans02: headingSans02,
|
|
352
|
+
headingSans03: headingSans03,
|
|
353
|
+
headingSans04: headingSans04,
|
|
354
|
+
headingSans05: headingSans05,
|
|
355
|
+
headingSans06: headingSans06,
|
|
356
|
+
headingSans07: headingSans07,
|
|
357
|
+
headingSans08: headingSans08,
|
|
358
|
+
bodySans01: bodySans01,
|
|
359
|
+
bodySans02: bodySans02,
|
|
360
|
+
bodySans03: bodySans03,
|
|
361
|
+
bodySans04: bodySans04,
|
|
362
|
+
bodySerif01: bodySerif01,
|
|
363
|
+
bodySerif02: bodySerif02,
|
|
364
|
+
bodySerif03: bodySerif03,
|
|
365
|
+
bodySerif04: bodySerif04,
|
|
366
|
+
leadSans01: leadSans01,
|
|
367
|
+
leadSans02: leadSans02,
|
|
368
|
+
leadSans03: leadSans03,
|
|
369
|
+
leadSans04: leadSans04,
|
|
370
|
+
leadSans05: leadSans05,
|
|
371
|
+
supportingStyleLabel01: supportingStyleLabel01,
|
|
372
|
+
supportingStyleHelperText01: supportingStyleHelperText01,
|
|
373
|
+
supportingStyleInputText01: supportingStyleInputText01,
|
|
374
|
+
supportingStyleInputText02: supportingStyleInputText02,
|
|
375
|
+
supportingStyleInputText03: supportingStyleInputText03,
|
|
376
|
+
supportingStylePlaceholderText01: supportingStylePlaceholderText01,
|
|
377
|
+
supportingStyleTiny01: supportingStyleTiny01,
|
|
378
|
+
supportingStyleTiny02: supportingStyleTiny02
|
|
594
379
|
},
|
|
595
380
|
style: {
|
|
596
|
-
bold:
|
|
597
|
-
base: boldBase
|
|
598
|
-
},
|
|
599
|
-
italic: {
|
|
600
|
-
base: italicBase
|
|
601
|
-
},
|
|
602
|
-
underline: {
|
|
603
|
-
base: underlineBase
|
|
604
|
-
}
|
|
381
|
+
bold: bold
|
|
605
382
|
}
|
|
606
383
|
};
|
|
607
384
|
|
|
@@ -693,31 +470,127 @@ var getSize = function getSize(iconSize) {
|
|
|
693
470
|
}
|
|
694
471
|
};
|
|
695
472
|
|
|
696
|
-
function Icon(props) {
|
|
697
|
-
var id = props.id,
|
|
698
|
-
_props$iconSize = props.iconSize,
|
|
699
|
-
iconSize = _props$iconSize === void 0 ? 'medium' : _props$iconSize,
|
|
700
|
-
_props$color = props.color,
|
|
701
|
-
color = _props$color === void 0 ? 'currentcolor' : _props$color,
|
|
702
|
-
icon = props.icon,
|
|
703
|
-
className = props.className,
|
|
704
|
-
_props$htmlProps = props.htmlProps,
|
|
705
|
-
htmlProps = _props$htmlProps === void 0 ? {} : _props$htmlProps,
|
|
706
|
-
rest = tslib.__rest(props, ["id", "iconSize", "color", "icon", "className", "htmlProps"]);
|
|
473
|
+
function Icon(props) {
|
|
474
|
+
var id = props.id,
|
|
475
|
+
_props$iconSize = props.iconSize,
|
|
476
|
+
iconSize = _props$iconSize === void 0 ? 'medium' : _props$iconSize,
|
|
477
|
+
_props$color = props.color,
|
|
478
|
+
color = _props$color === void 0 ? 'currentcolor' : _props$color,
|
|
479
|
+
icon = props.icon,
|
|
480
|
+
className = props.className,
|
|
481
|
+
_props$htmlProps = props.htmlProps,
|
|
482
|
+
htmlProps = _props$htmlProps === void 0 ? {} : _props$htmlProps,
|
|
483
|
+
rest = tslib.__rest(props, ["id", "iconSize", "color", "icon", "className", "htmlProps"]);
|
|
484
|
+
|
|
485
|
+
var title = htmlProps.title,
|
|
486
|
+
_htmlProps$ariaHidde = htmlProps['aria-hidden'],
|
|
487
|
+
ariaHidden = _htmlProps$ariaHidde === void 0 ? true : _htmlProps$ariaHidde;
|
|
488
|
+
var size = getSize(iconSize);
|
|
489
|
+
return icon(Object.assign(Object.assign({}, getBaseHTMLProps(id, className, htmlProps, rest)), {
|
|
490
|
+
title: title,
|
|
491
|
+
height: size,
|
|
492
|
+
width: size,
|
|
493
|
+
fill: color,
|
|
494
|
+
viewBox: '0 0 24 24',
|
|
495
|
+
'aria-hidden': ariaHidden
|
|
496
|
+
}));
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
var removeButtonStyling = {
|
|
500
|
+
background: 'none',
|
|
501
|
+
color: 'inherit',
|
|
502
|
+
border: 'none',
|
|
503
|
+
padding: 0,
|
|
504
|
+
font: 'inherit',
|
|
505
|
+
cursor: 'pointer',
|
|
506
|
+
outline: 'inherit'
|
|
507
|
+
};
|
|
508
|
+
|
|
509
|
+
var visibilityTransition = function visibilityTransition(open) {
|
|
510
|
+
return styled.css(["@media (prefers-reduced-motion:no-preference){transition:visibility 0.4s,opacity 0.2s;}visibility:", ";opacity:", ";"], open ? 'visible' : 'hidden', open ? 1 : 0);
|
|
511
|
+
};
|
|
512
|
+
|
|
513
|
+
var Border$e = ddsDesignTokens.ddsBaseTokens.border,
|
|
514
|
+
Colors$n = ddsDesignTokens.ddsBaseTokens.colors,
|
|
515
|
+
spacing$b = ddsDesignTokens.ddsBaseTokens.spacing;
|
|
516
|
+
var outlineOffset = spacing$b.SizesDdsSpacingLocalX0125;
|
|
517
|
+
var focusVisible = {
|
|
518
|
+
outline: "".concat(Border$e.BordersDdsBorderFocusBaseStrokeWeight, " ").concat(Border$e.BordersDdsBorderFocusBaseStroke, " solid"),
|
|
519
|
+
outlineOffset: outlineOffset
|
|
520
|
+
};
|
|
521
|
+
var focusVisibleOnDark = {
|
|
522
|
+
outline: "".concat(Border$e.BordersDdsBorderFocusOndarkStrokeWeight, " ").concat(Border$e.BordersDdsBorderFocusOndarkStroke, " solid"),
|
|
523
|
+
outlineOffset: outlineOffset
|
|
524
|
+
};
|
|
525
|
+
var focusVisibleTransitionValue = 'outline-offset 0.2s';
|
|
526
|
+
var focusVisibleLink = {
|
|
527
|
+
outline: 'none',
|
|
528
|
+
backgroundColor: Border$e.BordersDdsBorderFocusBaseStroke,
|
|
529
|
+
color: Colors$n.DdsColorNeutralsWhite,
|
|
530
|
+
textDecoration: 'none'
|
|
531
|
+
};
|
|
532
|
+
({
|
|
533
|
+
outline: 'none',
|
|
534
|
+
backgroundColor: Border$e.BordersDdsBorderFocusOndarkStroke,
|
|
535
|
+
color: Colors$n.DdsColorNeutralsGray9,
|
|
536
|
+
textDecoration: 'none'
|
|
537
|
+
});
|
|
538
|
+
var focusVisibleLinkTransitionValue = 'background-color 0.2s, text-decoration 0.2s, color 0.2s';
|
|
539
|
+
var focusVisibleWithBorder = {
|
|
540
|
+
outline: 'none',
|
|
541
|
+
borderColor: Border$e.BordersDdsBorderFocusCardStroke,
|
|
542
|
+
boxShadow: "inset 0 0 0 1px ".concat(Border$e.BordersDdsBorderFocusCardStroke)
|
|
543
|
+
};
|
|
544
|
+
({
|
|
545
|
+
outline: 'none',
|
|
546
|
+
borderColor: Border$e.BordersDdsBorderFocusOndarkStroke,
|
|
547
|
+
boxShadow: "inset 0 0 0 1px ".concat(Border$e.BordersDdsBorderFocusOndarkStroke)
|
|
548
|
+
});
|
|
549
|
+
var focusVisibleInset = {
|
|
550
|
+
outline: 'none',
|
|
551
|
+
boxShadow: "inset 0 0 0 2px ".concat(Border$e.BordersDdsBorderFocusCardStroke)
|
|
552
|
+
};
|
|
553
|
+
|
|
554
|
+
var Border$d = ddsDesignTokens.ddsBaseTokens.border,
|
|
555
|
+
Colors$m = ddsDesignTokens.ddsBaseTokens.colors;
|
|
556
|
+
var hoverWithBorder = {
|
|
557
|
+
borderColor: Border$d.BordersDdsBorderFocusInputfieldStroke,
|
|
558
|
+
boxShadow: "inset 0 0 0 1px ".concat(Border$d.BordersDdsBorderFocusInputfieldStroke)
|
|
559
|
+
};
|
|
560
|
+
var hoverInputfield = {
|
|
561
|
+
borderColor: Border$d.BordersDdsBorderFocusInputfieldStroke,
|
|
562
|
+
boxShadow: "inset 0 0 0 1px ".concat(Border$d.BordersDdsBorderFocusInputfieldStroke),
|
|
563
|
+
backgroundColor: Colors$m.DdsColorInteractiveLightest
|
|
564
|
+
};
|
|
565
|
+
var hoverDangerInputfield = {
|
|
566
|
+
borderColor: Colors$m.DdsColorDangerBase,
|
|
567
|
+
boxShadow: "inset 0 0 0 1px ".concat(Colors$m.DdsColorDangerBase),
|
|
568
|
+
backgroundColor: Colors$m.DdsColorDangerLightest
|
|
569
|
+
};
|
|
570
|
+
|
|
571
|
+
var Border$c = ddsDesignTokens.ddsBaseTokens.border,
|
|
572
|
+
Colors$l = ddsDesignTokens.ddsBaseTokens.colors;
|
|
573
|
+
var focusInputfield = {
|
|
574
|
+
outline: 'none',
|
|
575
|
+
borderColor: Border$c.BordersDdsBorderFocusInputfieldStroke,
|
|
576
|
+
boxShadow: "inset 0 0 0 1px ".concat(Border$c.BordersDdsBorderFocusInputfieldStroke)
|
|
577
|
+
};
|
|
578
|
+
var focusDangerInputfield = {
|
|
579
|
+
borderColor: Colors$l.DdsColorDangerDarker,
|
|
580
|
+
boxShadow: "inset 0 0 0 1px ".concat(Colors$l.DdsColorDangerDarker)
|
|
581
|
+
};
|
|
582
|
+
|
|
583
|
+
var Colors$k = ddsDesignTokens.ddsBaseTokens.colors;
|
|
584
|
+
var dangerInputfield = {
|
|
585
|
+
borderColor: Colors$k.DdsColorDangerBase,
|
|
586
|
+
boxShadow: "inset 0 0 0 1px ".concat(Colors$k.DdsColorDangerBase)
|
|
587
|
+
};
|
|
707
588
|
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
title: title,
|
|
714
|
-
height: size,
|
|
715
|
-
width: size,
|
|
716
|
-
fill: color,
|
|
717
|
-
viewBox: '0 0 24 24',
|
|
718
|
-
'aria-hidden': ariaHidden
|
|
719
|
-
}));
|
|
720
|
-
}
|
|
589
|
+
var colors$b = ddsDesignTokens.ddsBaseTokens.colors;
|
|
590
|
+
var selection = {
|
|
591
|
+
color: colors$b.DdsColorNeutralsGray9,
|
|
592
|
+
backgroundColor: colors$b.DdsColorTertiaryLightest
|
|
593
|
+
};
|
|
721
594
|
|
|
722
595
|
var StyledSvg = styled__default["default"].svg.withConfig({
|
|
723
596
|
displayName: "StyledSvg",
|
|
@@ -2179,7 +2052,7 @@ function LanguageIcon(props) {
|
|
|
2179
2052
|
}));
|
|
2180
2053
|
}
|
|
2181
2054
|
|
|
2182
|
-
function LinkIcon
|
|
2055
|
+
function LinkIcon(props) {
|
|
2183
2056
|
var title = props.title,
|
|
2184
2057
|
rest = tslib.__rest(props, ["title"]);
|
|
2185
2058
|
|
|
@@ -3359,13 +3232,79 @@ var getElementType = function getElementType(element) {
|
|
|
3359
3232
|
return 'p';
|
|
3360
3233
|
}
|
|
3361
3234
|
};
|
|
3362
|
-
|
|
3363
3235
|
var inlineElements = ['a', 'abbr', 'audio', 'b', 'bdi', 'bdo', 'big', 'br', 'button', 'canvas', 'cite', 'code', 'data', 'datalist', 'del', 'dfn', 'em', 'embed', 'i', 'iframe', 'img', 'input', 'ins', 'kbd', 'label', 'map', 'mark', 'meter', 'noscript', 'object', 'output', 'picture', 'progress', 'q', 'ruby', 's', 'samp', 'script', 'select', 'slot', 'small', 'span', 'strong', 'sub', 'sup', 'svg', 'template', 'textarea', 'time', 'u', 'var', 'video', 'wbr'];
|
|
3364
|
-
|
|
3365
3236
|
var isInlineElement = function isInlineElement(as) {
|
|
3366
3237
|
return inlineElements.indexOf(as) !== -1;
|
|
3367
3238
|
};
|
|
3239
|
+
var getAdditionalFontStyle = function getAdditionalFontStyle(bold, italic, underline) {
|
|
3240
|
+
return styled.css(["", " ", " ", ""], bold && styled.css(["font-weight:", ";"], typographyTokens.style.bold.fontWeight), italic && styled.css(["font-style:italic;"]), underline && styled.css(["text-decoration:underline;"]));
|
|
3241
|
+
};
|
|
3242
|
+
var getMarginStyling = function getMarginStyling(typographyType, element, withMargins) {
|
|
3243
|
+
return withMargins ? styled.css(["", " margin-top:", ";margin-bottom:", ";", ""], isInlineElement(element) && element !== 'a' && styled.css(["display:block;"]), typographyTokens.typographyType[typographyType].margins.marginTop, typographyTokens.typographyType[typographyType].margins.marginBottom, styled.css(["padding-top:", ";"], typographyTokens.typographyType[typographyType].margins.paddingTop)) : styled.css(["margin:0;"]);
|
|
3244
|
+
};
|
|
3245
|
+
var getAnchorStyling = function getAnchorStyling(external, interactionStyling, typographyType, withMargins) {
|
|
3246
|
+
return styled.css(["", " width:fit-content;text-decoration:underline;@media (prefers-reduced-motion:no-preference){transition:", ";}", " &:hover{color:", ";", "}", " &:focus-visible,&.focus-visible,&:focus-visible::selection,&.focus-visible::selection{", "}"], typographyType ? styled.css(["", ";color:", ";", ""], typographyTokens.typographyType[typographyType].base.font, typographyTokens.typographyType[typographyType].base.color, getMarginStyling(typographyType, 'a', withMargins)) : styled.css(["font:inherit;color:", ";", ""], typographyTokens.typographyType.a.base.color, getMarginStyling('a', 'a', withMargins)), focusVisibleLinkTransitionValue, external ? styled.css(["display:inline-flex;align-items:center;gap:", ";"], typographyTokens.typographyType.a.base.gap) : '', typographyTokens.typographyType.a.hover.color, interactionStyling && interactionStyling.hover && styled.css(["", ""], interactionStyling.hover), interactionStyling && interactionStyling.active && styled.css(["&:active{", "}"], interactionStyling.active), focusVisibleLink);
|
|
3247
|
+
};
|
|
3248
|
+
|
|
3249
|
+
var combineHandlers = function combineHandlers(handler1, handler2) {
|
|
3250
|
+
var callback = function callback(event) {
|
|
3251
|
+
handler1 && handler1(event);
|
|
3252
|
+
handler2 && handler2(event);
|
|
3253
|
+
};
|
|
3254
|
+
|
|
3255
|
+
return callback;
|
|
3256
|
+
};
|
|
3257
|
+
|
|
3258
|
+
var derivativeIdGenerator = function derivativeIdGenerator(prefix, suffix, value) {
|
|
3259
|
+
return value ? "".concat(prefix, "-").concat(suffix) : undefined;
|
|
3260
|
+
};
|
|
3261
|
+
var idArrayGenerator = function idArrayGenerator(values) {
|
|
3262
|
+
var array = [];
|
|
3263
|
+
values.forEach(function (e) {
|
|
3264
|
+
if (e) {
|
|
3265
|
+
array.push(e);
|
|
3266
|
+
}
|
|
3267
|
+
});
|
|
3268
|
+
return array.length > 0 ? array : undefined;
|
|
3269
|
+
};
|
|
3270
|
+
var spaceSeparatedIdListGenerator = function spaceSeparatedIdListGenerator(values) {
|
|
3271
|
+
var _a;
|
|
3272
|
+
|
|
3273
|
+
return (_a = idArrayGenerator(values)) === null || _a === void 0 ? void 0 : _a.join(' ');
|
|
3274
|
+
};
|
|
3275
|
+
|
|
3276
|
+
var calculateHeightWithLineHeight = function calculateHeightWithLineHeight(lineHeight, fontSize) {
|
|
3277
|
+
return lineHeight * 0.01 * fontSize;
|
|
3278
|
+
};
|
|
3279
|
+
|
|
3280
|
+
var colors$a = ddsDesignTokens.ddsBaseTokens.colors;
|
|
3281
|
+
var textDefault$5 = ddsDesignTokens.ddsReferenceTokens.textDefault;
|
|
3282
|
+
var changeRGBAAlpha = function changeRGBAAlpha(value, alpha) {
|
|
3283
|
+
if (value.slice(0, 5) !== 'rgba(' || value.slice(-1) !== ')') {
|
|
3284
|
+
return '';
|
|
3285
|
+
}
|
|
3368
3286
|
|
|
3287
|
+
return value.replace(/[\d\.]+\)$/g, alpha.toString() + ')');
|
|
3288
|
+
};
|
|
3289
|
+
var textColors = {
|
|
3290
|
+
interactive: colors$a.DdsColorInteractiveBase,
|
|
3291
|
+
primary: colors$a.DdsColorPrimaryBase,
|
|
3292
|
+
danger: colors$a.DdsColorDangerBase,
|
|
3293
|
+
success: colors$a.DdsColorSuccessBase,
|
|
3294
|
+
warning: colors$a.DdsColorWarningBase,
|
|
3295
|
+
onLight: textDefault$5.textColor,
|
|
3296
|
+
onDark: colors$a.DdsColorNeutralsWhite,
|
|
3297
|
+
gray1: colors$a.DdsColorNeutralsGray1,
|
|
3298
|
+
gray2: colors$a.DdsColorNeutralsGray2,
|
|
3299
|
+
gray3: colors$a.DdsColorNeutralsGray3,
|
|
3300
|
+
gray4: colors$a.DdsColorNeutralsGray4,
|
|
3301
|
+
gray5: colors$a.DdsColorNeutralsGray5,
|
|
3302
|
+
gray6: colors$a.DdsColorNeutralsGray6,
|
|
3303
|
+
gray7: colors$a.DdsColorNeutralsGray7,
|
|
3304
|
+
gray8: colors$a.DdsColorNeutralsGray8,
|
|
3305
|
+
gray9: colors$a.DdsColorNeutralsGray9
|
|
3306
|
+
};
|
|
3307
|
+
var textColorsArray = ['interactive', 'primary', 'danger', 'success', 'warning', 'onLight', 'onDark', 'gray1', 'gray2', 'gray3', 'gray4', 'gray5', 'gray6', 'gray7', 'gray8', 'gray9'];
|
|
3369
3308
|
function isTextColor(color) {
|
|
3370
3309
|
return textColorsArray.indexOf(color) !== -1;
|
|
3371
3310
|
}
|
|
@@ -3374,47 +3313,33 @@ var getTextColor = function getTextColor(color) {
|
|
|
3374
3313
|
return color;
|
|
3375
3314
|
};
|
|
3376
3315
|
|
|
3377
|
-
var getElementStyling = function getElementStyling(type) {
|
|
3378
|
-
return styled.css(["", " &::selection,*::selection{", "}"], typographyTokens.typographyType[type].base, typographyTokens.selection.base);
|
|
3379
|
-
};
|
|
3380
|
-
|
|
3381
|
-
var LinkIcon = styled__default["default"](Icon).withConfig({
|
|
3382
|
-
displayName: "Typography__LinkIcon",
|
|
3383
|
-
componentId: "sc-1uvxoh6-0"
|
|
3384
|
-
})(["", ""], typographyTokens.typographyType.a.icon);
|
|
3385
3316
|
var StyledTypography = styled__default["default"].p.withConfig({
|
|
3386
3317
|
displayName: "Typography__StyledTypography",
|
|
3387
|
-
componentId: "sc-
|
|
3388
|
-
})(["", "
|
|
3389
|
-
var typographyType = _ref.typographyType
|
|
3390
|
-
|
|
3318
|
+
componentId: "sc-1tegrnl-0"
|
|
3319
|
+
})(["&::selection,*::selection{", "}", " ", " ", " color:", ";", " ", ";"], selection, function (_ref) {
|
|
3320
|
+
var typographyType = _ref.typographyType,
|
|
3321
|
+
externalLink = _ref.externalLink,
|
|
3322
|
+
interactionProps = _ref.interactionProps;
|
|
3323
|
+
return typographyType === 'a' ? styled.css(["", ""], getAnchorStyling(externalLink, interactionProps)) : styled.css(["color:", ";", ";"], typographyTokens.typographyType[typographyType].base.color, typographyTokens.typographyType[typographyType].base.font);
|
|
3391
3324
|
}, function (_ref2) {
|
|
3392
|
-
var
|
|
3393
|
-
|
|
3394
|
-
return typographyType === 'a' && styled.css(["display:inline-flex;align-items:center;@media (prefers-reduced-motion:no-preference){transition:", ";}&:hover{", "}", " &:focus-visible,&.focus-visible{", "}&:focus-visible::selection &.focus-visible::selection{", "}"], focusVisibleLinkTransitionValue, typographyTokens.typographyType[typographyType].hover.base, interactionProps && interactionProps.active && styled.css(["&:active{", "}"], interactionProps.active), typographyTokens.typographyType[typographyType].focus.base, typographyTokens.typographyType[typographyType].focus.base);
|
|
3325
|
+
var interactionProps = _ref2.interactionProps;
|
|
3326
|
+
return interactionProps && interactionProps.hover && styled.css(["&:hover{", "}"], interactionProps.hover);
|
|
3395
3327
|
}, function (_ref3) {
|
|
3396
3328
|
var interactionProps = _ref3.interactionProps;
|
|
3397
|
-
return interactionProps && interactionProps.hover && styled.css(["&:hover{", "}"], interactionProps.hover);
|
|
3398
|
-
}, function (_ref4) {
|
|
3399
|
-
var interactionProps = _ref4.interactionProps;
|
|
3400
3329
|
return interactionProps && interactionProps.active && styled.css(["&:active{", "}"], interactionProps.active);
|
|
3330
|
+
}, function (_ref4) {
|
|
3331
|
+
var color = _ref4.color;
|
|
3332
|
+
return getTextColor(color);
|
|
3401
3333
|
}, function (_ref5) {
|
|
3402
|
-
var
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
return
|
|
3334
|
+
var typographyType = _ref5.typographyType,
|
|
3335
|
+
as = _ref5.as,
|
|
3336
|
+
withMargins = _ref5.withMargins;
|
|
3337
|
+
return getMarginStyling(typographyType, as, withMargins);
|
|
3406
3338
|
}, function (_ref6) {
|
|
3407
|
-
var
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
return bold && styled.css(["", ""], typographyTokens.style.bold.base);
|
|
3412
|
-
}, function (_ref8) {
|
|
3413
|
-
var italic = _ref8.italic;
|
|
3414
|
-
return italic && styled.css(["", ""], typographyTokens.style.italic.base);
|
|
3415
|
-
}, function (_ref9) {
|
|
3416
|
-
var underline = _ref9.underline;
|
|
3417
|
-
return underline && styled.css(["", ""], typographyTokens.style.underline.base);
|
|
3339
|
+
var bold = _ref6.bold,
|
|
3340
|
+
italic = _ref6.italic,
|
|
3341
|
+
underline = _ref6.underline;
|
|
3342
|
+
return getAdditionalFontStyle(bold, italic, underline);
|
|
3418
3343
|
});
|
|
3419
3344
|
|
|
3420
3345
|
var isAnchorProps$1 = function isAnchorProps(props) {
|
|
@@ -3441,6 +3366,7 @@ var Typography = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
3441
3366
|
var as = propAs ? propAs : getElementType(typographyType);
|
|
3442
3367
|
var relProp;
|
|
3443
3368
|
var targetProp;
|
|
3369
|
+
var externalLinkProp;
|
|
3444
3370
|
var renderIcon = false;
|
|
3445
3371
|
|
|
3446
3372
|
if (isAnchorProps$1(props)) {
|
|
@@ -3449,6 +3375,7 @@ var Typography = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
3449
3375
|
renderIcon = (_a = as === 'a' && externalLink) !== null && _a !== void 0 ? _a : false;
|
|
3450
3376
|
relProp = as === 'a' ? 'noopener noreferer' : undefined;
|
|
3451
3377
|
targetProp = as !== 'a' ? undefined : externalLink ? '_blank' : target;
|
|
3378
|
+
externalLinkProp = as === 'a' && externalLink ? externalLink : undefined;
|
|
3452
3379
|
}
|
|
3453
3380
|
|
|
3454
3381
|
var typographyProps = Object.assign(Object.assign({}, getBaseHTMLProps(id, className, restHtmlProps, rest)), {
|
|
@@ -3456,18 +3383,167 @@ var Typography = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
3456
3383
|
as: as,
|
|
3457
3384
|
style: Object.assign(Object.assign({}, htmlPropsStyle), style),
|
|
3458
3385
|
rel: relProp,
|
|
3459
|
-
target: targetProp
|
|
3386
|
+
target: targetProp,
|
|
3387
|
+
externalLink: externalLinkProp
|
|
3460
3388
|
});
|
|
3461
3389
|
return jsxRuntime.jsxs(StyledTypography, Object.assign({
|
|
3462
3390
|
ref: ref
|
|
3463
3391
|
}, typographyProps, {
|
|
3464
|
-
children: [children, renderIcon && jsxRuntime.jsx(
|
|
3392
|
+
children: [children, renderIcon && jsxRuntime.jsx(Icon, {
|
|
3393
|
+
icon: OpenExternalIcon,
|
|
3394
|
+
iconSize: "inherit"
|
|
3395
|
+
})]
|
|
3396
|
+
}));
|
|
3397
|
+
});
|
|
3398
|
+
|
|
3399
|
+
var Label$7 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
3400
|
+
var id = props.id,
|
|
3401
|
+
className = props.className,
|
|
3402
|
+
htmlProps = props.htmlProps,
|
|
3403
|
+
children = props.children,
|
|
3404
|
+
rest = tslib.__rest(props, ["id", "className", "htmlProps", "children"]);
|
|
3405
|
+
|
|
3406
|
+
return jsxRuntime.jsx(Typography, Object.assign({}, getBaseHTMLProps(id, className, htmlProps, rest), {
|
|
3407
|
+
ref: ref,
|
|
3408
|
+
typographyType: "supportingStyleLabel01"
|
|
3409
|
+
}, {
|
|
3410
|
+
children: children
|
|
3411
|
+
}));
|
|
3412
|
+
});
|
|
3413
|
+
|
|
3414
|
+
var Paragraph = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
3415
|
+
var id = props.id,
|
|
3416
|
+
className = props.className,
|
|
3417
|
+
htmlProps = props.htmlProps,
|
|
3418
|
+
children = props.children,
|
|
3419
|
+
_props$typographyType = props.typographyType,
|
|
3420
|
+
typographyType = _props$typographyType === void 0 ? 'bodySans02' : _props$typographyType,
|
|
3421
|
+
rest = tslib.__rest(props, ["id", "className", "htmlProps", "children", "typographyType"]);
|
|
3422
|
+
|
|
3423
|
+
var paragraphProps = Object.assign(Object.assign({}, getBaseHTMLProps(id, className, htmlProps, rest)), {
|
|
3424
|
+
typographyType: typographyType,
|
|
3425
|
+
ref: ref
|
|
3426
|
+
});
|
|
3427
|
+
return jsxRuntime.jsx(Typography, Object.assign({}, paragraphProps, {
|
|
3428
|
+
children: children
|
|
3429
|
+
}));
|
|
3430
|
+
});
|
|
3431
|
+
|
|
3432
|
+
var getHeadingElement = function getHeadingElement(level) {
|
|
3433
|
+
return "h".concat(level);
|
|
3434
|
+
};
|
|
3435
|
+
|
|
3436
|
+
var getDefaultTypographyType = function getDefaultTypographyType(h) {
|
|
3437
|
+
switch (h) {
|
|
3438
|
+
case 'h1':
|
|
3439
|
+
return 'headingSans06';
|
|
3440
|
+
|
|
3441
|
+
case 'h2':
|
|
3442
|
+
return 'headingSans05';
|
|
3443
|
+
|
|
3444
|
+
case 'h3':
|
|
3445
|
+
return 'headingSans04';
|
|
3446
|
+
|
|
3447
|
+
case 'h4':
|
|
3448
|
+
return 'headingSans03';
|
|
3449
|
+
|
|
3450
|
+
case 'h5':
|
|
3451
|
+
return 'headingSans02';
|
|
3452
|
+
|
|
3453
|
+
case 'h6':
|
|
3454
|
+
return 'headingSans01';
|
|
3455
|
+
|
|
3456
|
+
default:
|
|
3457
|
+
return 'headingSans06';
|
|
3458
|
+
}
|
|
3459
|
+
};
|
|
3460
|
+
|
|
3461
|
+
var Heading = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
3462
|
+
var id = props.id,
|
|
3463
|
+
className = props.className,
|
|
3464
|
+
htmlProps = props.htmlProps,
|
|
3465
|
+
children = props.children,
|
|
3466
|
+
typographyType = props.typographyType,
|
|
3467
|
+
level = props.level,
|
|
3468
|
+
rest = tslib.__rest(props, ["id", "className", "htmlProps", "children", "typographyType", "level"]);
|
|
3469
|
+
|
|
3470
|
+
var headingElement = getHeadingElement(level);
|
|
3471
|
+
var headingProps = Object.assign(Object.assign({}, getBaseHTMLProps(id, className, htmlProps, rest)), {
|
|
3472
|
+
typographyType: typographyType ? typographyType : getDefaultTypographyType(headingElement),
|
|
3473
|
+
as: headingElement,
|
|
3474
|
+
ref: ref
|
|
3475
|
+
});
|
|
3476
|
+
return jsxRuntime.jsx(Typography, Object.assign({}, headingProps, {
|
|
3477
|
+
children: children
|
|
3478
|
+
}));
|
|
3479
|
+
});
|
|
3480
|
+
|
|
3481
|
+
var StyledLink = styled__default["default"].a.withConfig({
|
|
3482
|
+
displayName: "Link__StyledLink",
|
|
3483
|
+
componentId: "sc-6r1xu5-0"
|
|
3484
|
+
})(["", ""], function (_ref) {
|
|
3485
|
+
var external = _ref.external,
|
|
3486
|
+
typographyType = _ref.typographyType,
|
|
3487
|
+
withMargins = _ref.withMargins;
|
|
3488
|
+
return getAnchorStyling(external, undefined, typographyType, withMargins);
|
|
3489
|
+
});
|
|
3490
|
+
var Link$3 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
3491
|
+
var id = props.id,
|
|
3492
|
+
className = props.className,
|
|
3493
|
+
htmlProps = props.htmlProps,
|
|
3494
|
+
children = props.children,
|
|
3495
|
+
typographyType = props.typographyType,
|
|
3496
|
+
external = props.external,
|
|
3497
|
+
target = props.target,
|
|
3498
|
+
rest = tslib.__rest(props, ["id", "className", "htmlProps", "children", "typographyType", "external", "target"]);
|
|
3499
|
+
|
|
3500
|
+
var linkProps = Object.assign(Object.assign(Object.assign({}, getBaseHTMLProps(id, className, htmlProps, rest)), {
|
|
3501
|
+
typographyType: typographyType,
|
|
3502
|
+
ref: ref,
|
|
3503
|
+
rel: 'noopener noreferer',
|
|
3504
|
+
target: external ? '_blank' : target ? target : undefined,
|
|
3505
|
+
external: external
|
|
3506
|
+
}), rest);
|
|
3507
|
+
return jsxRuntime.jsxs(StyledLink, Object.assign({}, linkProps, {
|
|
3508
|
+
children: [children, external && jsxRuntime.jsx(Icon, {
|
|
3465
3509
|
icon: OpenExternalIcon,
|
|
3466
3510
|
iconSize: "inherit"
|
|
3467
3511
|
})]
|
|
3468
3512
|
}));
|
|
3469
3513
|
});
|
|
3470
3514
|
|
|
3515
|
+
var Legend = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
3516
|
+
var id = props.id,
|
|
3517
|
+
className = props.className,
|
|
3518
|
+
htmlProps = props.htmlProps,
|
|
3519
|
+
children = props.children,
|
|
3520
|
+
rest = tslib.__rest(props, ["id", "className", "htmlProps", "children"]);
|
|
3521
|
+
|
|
3522
|
+
return jsxRuntime.jsx(Typography, Object.assign({}, getBaseHTMLProps(id, className, htmlProps, rest), {
|
|
3523
|
+
ref: ref,
|
|
3524
|
+
as: "legend",
|
|
3525
|
+
typographyType: "headingSans03"
|
|
3526
|
+
}, {
|
|
3527
|
+
children: children
|
|
3528
|
+
}));
|
|
3529
|
+
});
|
|
3530
|
+
|
|
3531
|
+
var Caption = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
3532
|
+
var id = props.id,
|
|
3533
|
+
className = props.className,
|
|
3534
|
+
htmlProps = props.htmlProps,
|
|
3535
|
+
children = props.children,
|
|
3536
|
+
rest = tslib.__rest(props, ["id", "className", "htmlProps", "children"]);
|
|
3537
|
+
|
|
3538
|
+
return jsxRuntime.jsx(Typography, Object.assign({}, getBaseHTMLProps(id, className, htmlProps, rest), {
|
|
3539
|
+
ref: ref,
|
|
3540
|
+
typographyType: "headingSans03",
|
|
3541
|
+
as: "caption"
|
|
3542
|
+
}, {
|
|
3543
|
+
children: children
|
|
3544
|
+
}));
|
|
3545
|
+
});
|
|
3546
|
+
|
|
3471
3547
|
var RadioButtonGroupContext = /*#__PURE__*/React__default["default"].createContext(null);
|
|
3472
3548
|
var useRadioButtonGroup = function useRadioButtonGroup() {
|
|
3473
3549
|
return React.useContext(RadioButtonGroupContext);
|
|
@@ -3582,14 +3658,6 @@ var Container$j = styled__default["default"].label.withConfig({
|
|
|
3582
3658
|
return readOnly && styled.css(["cursor:default;input ~ ", "{", "}input:checked ~ ", "{", "}"], CustomRadioButton, radioButtonTokens.radioButton.readOnly.base, CustomRadioButton, radioButtonTokens.radioButton.checked.readOnly.base);
|
|
3583
3659
|
}, CustomRadioButton, radioButtonTokens.checkmark.base);
|
|
3584
3660
|
|
|
3585
|
-
var changeRGBAAlpha = function changeRGBAAlpha(value, alpha) {
|
|
3586
|
-
if (value.slice(0, 5) !== 'rgba(' || value.slice(-1) !== ')') {
|
|
3587
|
-
return '';
|
|
3588
|
-
}
|
|
3589
|
-
|
|
3590
|
-
return value.replace(/[\d\.]+\)$/g, alpha.toString() + ')');
|
|
3591
|
-
};
|
|
3592
|
-
|
|
3593
3661
|
var Backdrop = styled__default["default"].div.withConfig({
|
|
3594
3662
|
displayName: "Backdrop",
|
|
3595
3663
|
componentId: "sc-vimg90-0"
|
|
@@ -3769,7 +3837,7 @@ var inputTokens = {
|
|
|
3769
3837
|
var Input$2 = styled__default["default"].input.withConfig({
|
|
3770
3838
|
displayName: "Inputstyles__Input",
|
|
3771
3839
|
componentId: "sc-1oz9x8w-0"
|
|
3772
|
-
})(["", " width:100%;top:0;left:0;margin:0;padding:0;box-sizing:border-box;box-shadow:none;@media (prefers-reduced-motion:no-preference){transition:box-shadow 0.2s,border-color 0.2s,background-color 0.2s;}&[type='text'],&[type='password'],&[type='number'],&[type='tel'],&[type='date'],&[type='url'],&[type='email'],&[type='search'],&[type='datetime-local']{-webkit-appearance:none;}&::selection{", "}&:focus:enabled:read-write,&:active:enabled:read-write{", "}&:hover:enabled:read-write{", "}"], inputTokens.baseInput.base,
|
|
3840
|
+
})(["", " width:100%;top:0;left:0;margin:0;padding:0;box-sizing:border-box;box-shadow:none;@media (prefers-reduced-motion:no-preference){transition:box-shadow 0.2s,border-color 0.2s,background-color 0.2s;}&[type='text'],&[type='password'],&[type='number'],&[type='tel'],&[type='date'],&[type='url'],&[type='email'],&[type='search'],&[type='datetime-local']{-webkit-appearance:none;}&::selection{", "}&:focus:enabled:read-write,&:active:enabled:read-write{", "}&:hover:enabled:read-write{", "}"], inputTokens.baseInput.base, selection, inputTokens.baseInput.focus.base, inputTokens.baseInput.hover.base);
|
|
3773
3841
|
var StatefulInput = styled__default["default"](Input$2).withConfig({
|
|
3774
3842
|
displayName: "Inputstyles__StatefulInput",
|
|
3775
3843
|
componentId: "sc-1oz9x8w-1"
|
|
@@ -3816,7 +3884,7 @@ var paperTokens = {
|
|
|
3816
3884
|
var Paper = styled__default["default"].div.withConfig({
|
|
3817
3885
|
displayName: "Paper",
|
|
3818
3886
|
componentId: "sc-mrbi8q-0"
|
|
3819
|
-
})(["box-sizing:border-box;margin:0;&::selection,*::selection{", "}", ""],
|
|
3887
|
+
})(["box-sizing:border-box;margin:0;&::selection,*::selection{", "}", ""], selection, paperTokens.base);
|
|
3820
3888
|
|
|
3821
3889
|
var MarkerWrapper = styled__default["default"].span.withConfig({
|
|
3822
3890
|
displayName: "RequiredMarker__MarkerWrapper",
|
|
@@ -4096,37 +4164,6 @@ var radioButtonGroupTokens = {
|
|
|
4096
4164
|
}
|
|
4097
4165
|
};
|
|
4098
4166
|
|
|
4099
|
-
var combineHandlers = function combineHandlers(handler1, handler2) {
|
|
4100
|
-
var callback = function callback(event) {
|
|
4101
|
-
handler1 && handler1(event);
|
|
4102
|
-
handler2 && handler2(event);
|
|
4103
|
-
};
|
|
4104
|
-
|
|
4105
|
-
return callback;
|
|
4106
|
-
};
|
|
4107
|
-
|
|
4108
|
-
var derivativeIdGenerator = function derivativeIdGenerator(prefix, suffix, value) {
|
|
4109
|
-
return value ? "".concat(prefix, "-").concat(suffix) : undefined;
|
|
4110
|
-
};
|
|
4111
|
-
var idArrayGenerator = function idArrayGenerator(values) {
|
|
4112
|
-
var array = [];
|
|
4113
|
-
values.forEach(function (e) {
|
|
4114
|
-
if (e) {
|
|
4115
|
-
array.push(e);
|
|
4116
|
-
}
|
|
4117
|
-
});
|
|
4118
|
-
return array.length > 0 ? array : undefined;
|
|
4119
|
-
};
|
|
4120
|
-
var spaceSeparatedIdListGenerator = function spaceSeparatedIdListGenerator(values) {
|
|
4121
|
-
var _a;
|
|
4122
|
-
|
|
4123
|
-
return (_a = idArrayGenerator(values)) === null || _a === void 0 ? void 0 : _a.join(' ');
|
|
4124
|
-
};
|
|
4125
|
-
|
|
4126
|
-
var calculateHeightWithLineHeight = function calculateHeightWithLineHeight(lineHeight, fontSize) {
|
|
4127
|
-
return lineHeight * 0.01 * fontSize;
|
|
4128
|
-
};
|
|
4129
|
-
|
|
4130
4167
|
var Container$i = styled__default["default"].div.withConfig({
|
|
4131
4168
|
displayName: "RadioButtonGroup__Container",
|
|
4132
4169
|
componentId: "sc-1xsll60-0"
|
|
@@ -5089,7 +5126,7 @@ var ButtonWrapper$1 = styled__default["default"].button.withConfig({
|
|
|
5089
5126
|
isLoading = _ref5.isLoading,
|
|
5090
5127
|
iconPosition = _ref5.iconPosition;
|
|
5091
5128
|
return fullWidth && (!hasIcon || !hasLabel || isLoading ? styled.css(["justify-content:center;"]) : hasIcon && hasLabel && iconPosition === 'left' ? styled.css(["justify-content:left;"]) : styled.css(["justify-content:space-between;"]));
|
|
5092
|
-
}, buttonTokens.focus.base,
|
|
5129
|
+
}, buttonTokens.focus.base, selection);
|
|
5093
5130
|
var StyledIconWrapperSpan = styled__default["default"].span.withConfig({
|
|
5094
5131
|
displayName: "Buttonstyles__StyledIconWrapperSpan",
|
|
5095
5132
|
componentId: "sc-14dutqk-1"
|
|
@@ -5392,8 +5429,6 @@ var Scrollbar = function Scrollbar(props) {
|
|
|
5392
5429
|
}
|
|
5393
5430
|
}, [thumbHeight]);
|
|
5394
5431
|
var handleThumbPositioning = React.useCallback(function () {
|
|
5395
|
-
console.log('positioning');
|
|
5396
|
-
|
|
5397
5432
|
if (!(contentRef === null || contentRef === void 0 ? void 0 : contentRef.current) || !trackRef.current || !thumbRef.current) {
|
|
5398
5433
|
return;
|
|
5399
5434
|
}
|
|
@@ -5823,6 +5858,7 @@ var optionBase = Object.assign(Object.assign({
|
|
|
5823
5858
|
color: textDefault$4.textColor
|
|
5824
5859
|
});
|
|
5825
5860
|
var optionHoverBase = {
|
|
5861
|
+
color: textDefault$4.textColor,
|
|
5826
5862
|
backgroundColor: Colors$c.DdsColorInteractiveLightest
|
|
5827
5863
|
};
|
|
5828
5864
|
var optionSelectedBase = Object.assign({
|
|
@@ -6015,7 +6051,7 @@ var Label$1 = styled__default["default"](Typography).withConfig({
|
|
|
6015
6051
|
var Container$f = styled__default["default"].div.withConfig({
|
|
6016
6052
|
displayName: "Selectstyles__Container",
|
|
6017
6053
|
componentId: "sc-19jkd5s-1"
|
|
6018
|
-
})(["@media (prefers-reduced-motion:no-preference){transition:box-shadow 0.2s,border-color 0.2s,background-color 0.2s;}position:relative;", " *::selection{", "}", " &:hover{", " ", "{", "}}&:focus-within{", " ", "{", "}}", " .", "__menu-list{", " ", "}&:hover .", "__dropdown-indicator,&:focus-within .", "__dropdown-indicator{", "}", " ", ""], selectTokens.container.base,
|
|
6054
|
+
})(["@media (prefers-reduced-motion:no-preference){transition:box-shadow 0.2s,border-color 0.2s,background-color 0.2s;}position:relative;", " *::selection{", "}", " &:hover{", " ", "{", "}}&:focus-within{", " ", "{", "}}", " .", "__menu-list{", " ", "}&:hover .", "__dropdown-indicator,&:focus-within .", "__dropdown-indicator{", "}", " ", ""], selectTokens.container.base, selection, function (_ref) {
|
|
6019
6055
|
var hasLabel = _ref.hasLabel,
|
|
6020
6056
|
isMulti = _ref.isMulti;
|
|
6021
6057
|
return isMulti && hasLabel ? styled.css([".", "__value-container{", "}.", "__indicators{", "}"], prefix, selectTokens.valueContainer.isMulti.withLabel.base, prefix, selectTokens.indicatorsContainer.isMulti.withLabel.base) : isMulti && !hasLabel ? styled.css([".", "__control{", "}.", "__value-container{", "}.", "__indicators{", "}"], prefix, selectTokens.input.isMulti.noLabel.base, prefix, selectTokens.valueContainer.isMulti.noLabel.base, prefix, selectTokens.indicatorsContainer.isMulti.noLabel.base) : hasLabel ? styled.css([".", "__value-container{", "}.", "__indicators{", "}"], prefix, selectTokens.valueContainer.withLabel.base, prefix, selectTokens.indicatorsContainer.withLabel.base) : styled.css([".", "__control{", "}.", "__value-container{", "}.", "__indicators{", "}"], prefix, selectTokens.input.noLabel.base, prefix, selectTokens.valueContainer.noLabel.base, prefix, selectTokens.indicatorsContainer.noLabel.base);
|
|
@@ -6036,6 +6072,10 @@ var Wrapper$6 = styled__default["default"].div.withConfig({
|
|
|
6036
6072
|
var width = _ref5.width;
|
|
6037
6073
|
return width;
|
|
6038
6074
|
});
|
|
6075
|
+
var InnerSingleValue = styled__default["default"].div.withConfig({
|
|
6076
|
+
displayName: "Selectstyles__InnerSingleValue",
|
|
6077
|
+
componentId: "sc-19jkd5s-3"
|
|
6078
|
+
})(["overflow:hidden;text-overflow:ellipsis;white-space:nowrap;box-sizing:border-box;max-width:100%;"]);
|
|
6039
6079
|
var getCustomStyles = function getCustomStyles() {
|
|
6040
6080
|
return {
|
|
6041
6081
|
control: function control() {
|
|
@@ -6073,10 +6113,12 @@ var getCustomStyles = function getCustomStyles() {
|
|
|
6073
6113
|
padding: 0
|
|
6074
6114
|
});
|
|
6075
6115
|
},
|
|
6076
|
-
singleValue: function singleValue(
|
|
6077
|
-
return
|
|
6078
|
-
|
|
6079
|
-
|
|
6116
|
+
singleValue: function singleValue() {
|
|
6117
|
+
return {
|
|
6118
|
+
gridArea: '1/1/2/3',
|
|
6119
|
+
overflow: 'hidden',
|
|
6120
|
+
boxSizing: 'border-box'
|
|
6121
|
+
};
|
|
6080
6122
|
},
|
|
6081
6123
|
multiValue: function multiValue(provided, state) {
|
|
6082
6124
|
return Object.assign(Object.assign(Object.assign({}, provided), selectTokens.multiValue.base), state.selectProps.isDisabled ? selectTokens.multiValue.disabled.base : selectTokens.multiValue.enabled.base);
|
|
@@ -6115,13 +6157,13 @@ var getCustomStyles = function getCustomStyles() {
|
|
|
6115
6157
|
});
|
|
6116
6158
|
},
|
|
6117
6159
|
option: function option(provided, state) {
|
|
6118
|
-
return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, provided), {
|
|
6160
|
+
return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, provided), {
|
|
6119
6161
|
'@media (prefers-reduced-motion: no-preference)': {
|
|
6120
6162
|
transition: 'color 0.2s, background-color 0.2s'
|
|
6121
6163
|
}
|
|
6122
6164
|
}), selectTokens.option.base), {
|
|
6123
6165
|
'&:hover': Object.assign({}, selectTokens.option.hover.base)
|
|
6124
|
-
}), state.isSelected
|
|
6166
|
+
}), state.isSelected ? selectTokens.option.selected.base : {}), state.isFocused ? focusVisibleLink : {});
|
|
6125
6167
|
},
|
|
6126
6168
|
noOptionsMessage: function noOptionsMessage() {
|
|
6127
6169
|
return Object.assign({}, selectTokens.noOptionsMessage.base);
|
|
@@ -6177,9 +6219,13 @@ var CustomOption = function CustomOption(props, Element) {
|
|
|
6177
6219
|
}));
|
|
6178
6220
|
};
|
|
6179
6221
|
|
|
6180
|
-
var CustomSingleValue = function CustomSingleValue(props, Element) {
|
|
6222
|
+
var CustomSingleValue = function CustomSingleValue(props, id, Element) {
|
|
6181
6223
|
return jsxRuntime.jsx(SingleValue, Object.assign({}, props, {
|
|
6182
|
-
children: jsxRuntime.jsx(
|
|
6224
|
+
children: jsxRuntime.jsx(InnerSingleValue, Object.assign({
|
|
6225
|
+
id: id
|
|
6226
|
+
}, {
|
|
6227
|
+
children: Element ? jsxRuntime.jsx(Element, Object.assign({}, props)) : props.children
|
|
6228
|
+
}))
|
|
6183
6229
|
}));
|
|
6184
6230
|
};
|
|
6185
6231
|
|
|
@@ -6216,6 +6262,13 @@ var CustomDropdownIndicator = function CustomDropdownIndicator(props) {
|
|
|
6216
6262
|
}));
|
|
6217
6263
|
};
|
|
6218
6264
|
|
|
6265
|
+
var CustomInput = function CustomInput(props, ariaInvalid, ariaDescribedby) {
|
|
6266
|
+
return jsxRuntime.jsx(Input$1, Object.assign({}, props, {
|
|
6267
|
+
"aria-invalid": ariaInvalid,
|
|
6268
|
+
"aria-describedby": ariaDescribedby
|
|
6269
|
+
}));
|
|
6270
|
+
};
|
|
6271
|
+
|
|
6219
6272
|
function escapeRegexCharacters(text) {
|
|
6220
6273
|
return text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
|
|
6221
6274
|
}
|
|
@@ -6253,17 +6306,11 @@ var SelectInner = function SelectInner(_a, ref) {
|
|
|
6253
6306
|
|
|
6254
6307
|
var generatedId = React.useId();
|
|
6255
6308
|
var uniqueId = id !== null && id !== void 0 ? id : "".concat(generatedId, "-select");
|
|
6309
|
+
var singleValueId = !isMulti ? "".concat(uniqueId, "-singleValue") : undefined;
|
|
6256
6310
|
var hasLabel = !!label;
|
|
6257
6311
|
var hasErrorMessage = !!errorMessage;
|
|
6258
6312
|
var tipId = derivativeIdGenerator(uniqueId, 'tip', tip);
|
|
6259
6313
|
var errorMessageId = derivativeIdGenerator(uniqueId, 'errorMessage', errorMessage);
|
|
6260
|
-
|
|
6261
|
-
var CustomInput = function CustomInput(props) {
|
|
6262
|
-
return jsxRuntime.jsx(Input$1, Object.assign({}, props, {
|
|
6263
|
-
"aria-describedby": spaceSeparatedIdListGenerator([tipId, errorMessageId])
|
|
6264
|
-
}));
|
|
6265
|
-
};
|
|
6266
|
-
|
|
6267
6314
|
var wrapperProps = {
|
|
6268
6315
|
width: width
|
|
6269
6316
|
};
|
|
@@ -6298,10 +6345,12 @@ var SelectInner = function SelectInner(_a, ref) {
|
|
|
6298
6345
|
return CustomOption(props, customOptionElement);
|
|
6299
6346
|
} : IconOption,
|
|
6300
6347
|
NoOptionsMessage: NoOptionsMessageCustom,
|
|
6301
|
-
Input:
|
|
6302
|
-
|
|
6303
|
-
|
|
6304
|
-
|
|
6348
|
+
Input: function Input(props) {
|
|
6349
|
+
return CustomInput(props, hasErrorMessage, spaceSeparatedIdListGenerator([singleValueId, tipId, errorMessageId]));
|
|
6350
|
+
},
|
|
6351
|
+
SingleValue: function SingleValue(props) {
|
|
6352
|
+
return CustomSingleValue(props, singleValueId, customSingleValueElement);
|
|
6353
|
+
},
|
|
6305
6354
|
ClearIndicator: CustomClearIndicator,
|
|
6306
6355
|
DropdownIndicator: CustomDropdownIndicator,
|
|
6307
6356
|
MultiValueRemove: CustomMultiValueRemove
|
|
@@ -6635,7 +6684,7 @@ var Container$d = styled__default["default"].div.withConfig({
|
|
|
6635
6684
|
}, function (_ref2) {
|
|
6636
6685
|
var layout = _ref2.layout;
|
|
6637
6686
|
return layout === 'horisontal' && styled.css(["align-items:center;justify-content:space-between;"]);
|
|
6638
|
-
},
|
|
6687
|
+
}, selection, function (_ref3) {
|
|
6639
6688
|
var purpose = _ref3.purpose;
|
|
6640
6689
|
return purpose && styled.css(["", " ", ""], localMessageTokens.container.base, localMessageTokens.container[purpose].base);
|
|
6641
6690
|
}, function (_ref4) {
|
|
@@ -6937,7 +6986,7 @@ var cellTokens = {
|
|
|
6937
6986
|
var StyledTable = styled__default["default"].table.withConfig({
|
|
6938
6987
|
displayName: "Table__StyledTable",
|
|
6939
6988
|
componentId: "sc-bw0w0a-0"
|
|
6940
|
-
})(["border-spacing:0;border-collapse:collapse;*::selection{", "}", " ", " ", " ", ""],
|
|
6989
|
+
})(["border-spacing:0;border-collapse:collapse;*::selection{", "}", " ", " ", " ", ""], selection, scrollbarStyling.webkit, scrollbarStyling.firefox, function (_ref) {
|
|
6941
6990
|
var density = _ref.density;
|
|
6942
6991
|
return density && styled.css(["td,th{", "}"], cellTokens.density[density].base);
|
|
6943
6992
|
}, function (_ref2) {
|
|
@@ -7761,7 +7810,7 @@ var ulPaddingLeft = "".concat(listTokens.spaceLeft, " - (").concat(liTextPadding
|
|
|
7761
7810
|
var StyledList = styled__default["default"].ul.withConfig({
|
|
7762
7811
|
displayName: "List__StyledList",
|
|
7763
7812
|
componentId: "sc-1f1c7eb-0"
|
|
7764
|
-
})(["", " ul,ol{margin:0;}*::selection{", "}", " ", ""], listTokens.base,
|
|
7813
|
+
})(["", " ul,ol{margin:0;}*::selection{", "}", " ", ""], listTokens.base, selection, function (_ref) {
|
|
7765
7814
|
var typographyType = _ref.typographyType;
|
|
7766
7815
|
return typographyType && styled.css(["", " ul,ol{", "}"], listTokens.sizes[typographyType], listTokens.sizes[typographyType]);
|
|
7767
7816
|
}, function (_ref2) {
|
|
@@ -7869,7 +7918,7 @@ var term = descriptionListTokens.term,
|
|
|
7869
7918
|
var DList = styled__default["default"].dl.withConfig({
|
|
7870
7919
|
displayName: "DescriptionList__DList",
|
|
7871
7920
|
componentId: "sc-1ob73hm-0"
|
|
7872
|
-
})(["margin:0;*::selection{", "}", " & > dt:first-of-type{margin-top:", ";}& > dd:last-child{margin-bottom:", ";}dd + dt{margin-top:", ";}"],
|
|
7921
|
+
})(["margin:0;*::selection{", "}", " & > dt:first-of-type{margin-top:", ";}& > dd:last-child{margin-bottom:", ";}dd + dt{margin-top:", ";}"], selection, function (_ref) {
|
|
7873
7922
|
var appearance = _ref.appearance;
|
|
7874
7923
|
return appearance && styled.css(["dt{", " color:", ";line-height:", ";font-size:", ";letter-spacing:", ";font-family:", ";font-weight:", ";font-style:", ";}"], term.appearance[appearance].font, term.appearance[appearance].color, term.appearance[appearance].lineHeight, term.appearance[appearance].fontSize, term.appearance[appearance].letterSpacing, term.appearance[appearance].fontFamily, term.appearance[appearance].fontWeight, term.appearance[appearance].fontStyle);
|
|
7875
7924
|
}, term.firstOfType.marginTop, desc.lastChild.marginBottom, list.beforeNextTerm.marginTop);
|
|
@@ -8013,7 +8062,7 @@ var cardTokens = {
|
|
|
8013
8062
|
var Container$a = styled__default["default"].div.withConfig({
|
|
8014
8063
|
displayName: "Card__Container",
|
|
8015
8064
|
componentId: "sc-410ao9-0"
|
|
8016
|
-
})(["", " &::selection,*::selection{", "}@media (prefers-reduced-motion:no-preference){transition:box-shadow 0.2s,border-color 0.2s;}", " ", ""], cardTokens.base,
|
|
8065
|
+
})(["", " &::selection,*::selection{", "}@media (prefers-reduced-motion:no-preference){transition:box-shadow 0.2s,border-color 0.2s;}", " ", ""], cardTokens.base, selection, function (_ref) {
|
|
8017
8066
|
var color = _ref.color;
|
|
8018
8067
|
return color && styled.css(["", ""], cardTokens.colors[color].base);
|
|
8019
8068
|
}, function (_ref2) {
|
|
@@ -8580,6 +8629,19 @@ function useId(prefix, suffix) {
|
|
|
8580
8629
|
return "".concat(prefix, "-").concat(id).concat(suffix ? '-' + suffix : '');
|
|
8581
8630
|
}
|
|
8582
8631
|
|
|
8632
|
+
var breakpoints = ddsDesignTokens.ddsBaseTokens.breakpoints;
|
|
8633
|
+
var ScreenSize;
|
|
8634
|
+
|
|
8635
|
+
(function (ScreenSize) {
|
|
8636
|
+
ScreenSize[ScreenSize["XSmall"] = 0] = "XSmall";
|
|
8637
|
+
ScreenSize[ScreenSize["Small"] = 1] = "Small";
|
|
8638
|
+
ScreenSize[ScreenSize["Medium"] = 2] = "Medium";
|
|
8639
|
+
ScreenSize[ScreenSize["Large"] = 3] = "Large";
|
|
8640
|
+
ScreenSize[ScreenSize["XLarge"] = 4] = "XLarge";
|
|
8641
|
+
})(ScreenSize || (ScreenSize = {}));
|
|
8642
|
+
|
|
8643
|
+
[[ScreenSize.XLarge, "only screen and (min-width: ".concat(breakpoints.DdsBreakpointXl, ")")], [ScreenSize.Large, "only screen and (min-width: ".concat(breakpoints.DdsBreakpointLg, ")")], [ScreenSize.Medium, "only screen and (min-width: ".concat(breakpoints.DdsBreakpointMd, ")")], [ScreenSize.Small, "only screen and (min-width: ".concat(breakpoints.DdsBreakpointSm, ")")], [ScreenSize.XSmall, "only screen and (min-width: ".concat(breakpoints.DdsBreakpointXs, ")")]];
|
|
8644
|
+
|
|
8583
8645
|
var border$1 = ddsDesignTokens.ddsBaseTokens.border,
|
|
8584
8646
|
borderRadius$3 = ddsDesignTokens.ddsBaseTokens.borderRadius,
|
|
8585
8647
|
colors$4 = ddsDesignTokens.ddsBaseTokens.colors,
|
|
@@ -8733,7 +8795,7 @@ var Container$9 = styled__default["default"].div.withConfig({
|
|
|
8733
8795
|
})(["box-sizing:border-box;z-index:3;overflow-y:auto;min-width:180px;max-width:300px;", " border:", ";background-color:", ";border-radius:", ";", " ", " *::selection{", "}"], function (_ref) {
|
|
8734
8796
|
var isOpen = _ref.isOpen;
|
|
8735
8797
|
return visibilityTransition(isOpen);
|
|
8736
|
-
}, container.border, container.backgroundColor, container.borderRadius, scrollbarStyling.webkit, scrollbarStyling.firefox,
|
|
8798
|
+
}, container.border, container.backgroundColor, container.borderRadius, scrollbarStyling.webkit, scrollbarStyling.firefox, selection);
|
|
8737
8799
|
var OverflowMenuList = styled__default["default"].ul.withConfig({
|
|
8738
8800
|
displayName: "OverflowMenu__OverflowMenuList",
|
|
8739
8801
|
componentId: "sc-kh744b-1"
|
|
@@ -8934,7 +8996,7 @@ var outerContainer$1 = internalHeaderTokens.outerContainer,
|
|
|
8934
8996
|
var OuterContainer$1 = styled__default["default"].div.withConfig({
|
|
8935
8997
|
displayName: "InternalHeaderstyles__OuterContainer",
|
|
8936
8998
|
componentId: "sc-91bnca-0"
|
|
8937
|
-
})(["position:relative;*::selection{", "}background-color:", ";"],
|
|
8999
|
+
})(["position:relative;*::selection{", "}background-color:", ";"], selection, outerContainer$1.backgroundColor);
|
|
8938
9000
|
var BannerWrapper = styled__default["default"].div.withConfig({
|
|
8939
9001
|
displayName: "InternalHeaderstyles__BannerWrapper",
|
|
8940
9002
|
componentId: "sc-91bnca-1"
|
|
@@ -9015,7 +9077,8 @@ var InternalHeaderListItem = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
9015
9077
|
});
|
|
9016
9078
|
|
|
9017
9079
|
var InternalHeader = function InternalHeader(props) {
|
|
9018
|
-
var
|
|
9080
|
+
var applicationDesc = props.applicationDesc,
|
|
9081
|
+
applicationName = props.applicationName,
|
|
9019
9082
|
smallScreen = props.smallScreen,
|
|
9020
9083
|
navigationElements = props.navigationElements,
|
|
9021
9084
|
contextMenuElements = props.contextMenuElements,
|
|
@@ -9025,7 +9088,7 @@ var InternalHeader = function InternalHeader(props) {
|
|
|
9025
9088
|
id = props.id,
|
|
9026
9089
|
className = props.className,
|
|
9027
9090
|
htmlProps = props.htmlProps,
|
|
9028
|
-
rest = tslib.__rest(props, ["applicationName", "smallScreen", "navigationElements", "contextMenuElements", "currentPageHref", "userProps", "onCurrentPageChange", "id", "className", "htmlProps"]);
|
|
9091
|
+
rest = tslib.__rest(props, ["applicationDesc", "applicationName", "smallScreen", "navigationElements", "contextMenuElements", "currentPageHref", "userProps", "onCurrentPageChange", "id", "className", "htmlProps"]);
|
|
9029
9092
|
|
|
9030
9093
|
var _useState = React.useState(true),
|
|
9031
9094
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -9089,14 +9152,14 @@ var InternalHeader = function InternalHeader(props) {
|
|
|
9089
9152
|
bold: true,
|
|
9090
9153
|
as: "span"
|
|
9091
9154
|
}, {
|
|
9092
|
-
children:
|
|
9155
|
+
children: applicationName
|
|
9093
9156
|
}))
|
|
9094
9157
|
}), jsxRuntime.jsx(ApplicationNameWrapper, {
|
|
9095
9158
|
children: jsxRuntime.jsx(Typography, Object.assign({
|
|
9096
9159
|
typographyType: "bodySans02",
|
|
9097
9160
|
as: "span"
|
|
9098
9161
|
}, {
|
|
9099
|
-
children:
|
|
9162
|
+
children: applicationDesc
|
|
9100
9163
|
}))
|
|
9101
9164
|
})]
|
|
9102
9165
|
})
|
|
@@ -9147,14 +9210,10 @@ var datepickerTokens = {
|
|
|
9147
9210
|
}
|
|
9148
9211
|
};
|
|
9149
9212
|
|
|
9150
|
-
var getWidth = function getWidth(type) {
|
|
9151
|
-
return type === 'date' ? '205px' : type === 'datetime-local' ? '235px' : '320px';
|
|
9152
|
-
};
|
|
9153
|
-
|
|
9154
9213
|
var StyledInput = styled__default["default"](StatefulInput).withConfig({
|
|
9155
9214
|
displayName: "Datepicker__StyledInput",
|
|
9156
9215
|
componentId: "sc-1ijxhje-0"
|
|
9157
|
-
})(["&::-webkit-calendar-picker-indicator{background-image:", ";", " margin-left:0px;padding:0;top:50%;transform:translate(0,-50%);box-sizing:border-box;}&::-webkit-datetime-edit-fields-wrapper{padding:0;}&::-webkit-calendar-picker-indicator:focus-visible{", "}&::-webkit-inner-spin-button{display:none;}@media (prefers-reduced-motion:no-preference){::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field{transition:0.2s;}}&::-webkit-datetime-edit-day-field:focus,&::-webkit-datetime-edit-month-field:focus,&::-webkit-datetime-edit-year-field:focus,&::-webkit-datetime-edit-hour-field:focus,&::-webkit-datetime-edit-minute-field:focus{", "}"], "url(\"".concat(CalendarIcon, "\")"), datepickerTokens.calendarIndicator.base, datepickerTokens.calendarIndicator.focus.base,
|
|
9216
|
+
})(["&::-webkit-calendar-picker-indicator{background-image:", ";", " margin-left:0px;padding:0;top:50%;transform:translate(0,-50%);box-sizing:border-box;}&::-webkit-datetime-edit-fields-wrapper{padding:0;}&::-webkit-calendar-picker-indicator:focus-visible{", "}&::-webkit-inner-spin-button{display:none;}@media (prefers-reduced-motion:no-preference){::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field{transition:0.2s;}}&::-webkit-datetime-edit-day-field:focus,&::-webkit-datetime-edit-month-field:focus,&::-webkit-datetime-edit-year-field:focus,&::-webkit-datetime-edit-hour-field:focus,&::-webkit-datetime-edit-minute-field:focus{", "}"], "url(\"".concat(CalendarIcon, "\")"), datepickerTokens.calendarIndicator.base, datepickerTokens.calendarIndicator.focus.base, selection);
|
|
9158
9217
|
var Datepicker = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
9159
9218
|
var id = _a.id,
|
|
9160
9219
|
_a$type = _a.type,
|
|
@@ -9192,7 +9251,7 @@ var Datepicker = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
9192
9251
|
type: type,
|
|
9193
9252
|
'aria-describedby': spaceSeparatedIdListGenerator([tipId, errorMessageId, ariaDescribedby]),
|
|
9194
9253
|
'aria-invalid': hasErrorMessage ? true : undefined,
|
|
9195
|
-
max: max
|
|
9254
|
+
max: getMax(type, max)
|
|
9196
9255
|
}, rest);
|
|
9197
9256
|
var outerInputContainerProps = {
|
|
9198
9257
|
width: componentWidth,
|
|
@@ -9223,6 +9282,33 @@ var Datepicker = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
9223
9282
|
}));
|
|
9224
9283
|
});
|
|
9225
9284
|
|
|
9285
|
+
var getWidth = function getWidth(type) {
|
|
9286
|
+
if (type === 'date') {
|
|
9287
|
+
return '205px';
|
|
9288
|
+
}
|
|
9289
|
+
|
|
9290
|
+
if (type === 'datetime-local') {
|
|
9291
|
+
return '235px';
|
|
9292
|
+
}
|
|
9293
|
+
|
|
9294
|
+
return '320px';
|
|
9295
|
+
};
|
|
9296
|
+
|
|
9297
|
+
var getMax = function getMax(type, max) {
|
|
9298
|
+
if (max !== undefined) {
|
|
9299
|
+
return max;
|
|
9300
|
+
} // Limit the year-part to only four digits by default
|
|
9301
|
+
|
|
9302
|
+
|
|
9303
|
+
if (type === 'datetime-local') {
|
|
9304
|
+
return '9999-12-31T23:59';
|
|
9305
|
+
}
|
|
9306
|
+
|
|
9307
|
+
if (type === 'date') {
|
|
9308
|
+
return '9999-12-31';
|
|
9309
|
+
}
|
|
9310
|
+
};
|
|
9311
|
+
|
|
9226
9312
|
var Colors$5 = ddsDesignTokens.ddsBaseTokens.colors,
|
|
9227
9313
|
Spacing$7 = ddsDesignTokens.ddsBaseTokens.spacing,
|
|
9228
9314
|
FontPackages$1 = ddsDesignTokens.ddsBaseTokens.fontPackages,
|
|
@@ -9342,7 +9428,7 @@ var Container$8 = styled__default["default"].div.withConfig({
|
|
|
9342
9428
|
var TooltipWrapper = styled__default["default"].div.withConfig({
|
|
9343
9429
|
displayName: "Tooltipstyles__TooltipWrapper",
|
|
9344
9430
|
componentId: "sc-1cna5tc-3"
|
|
9345
|
-
})(["&::selection{", "}", " width:fit-content;position:absolute;z-index:20;text-align:center;", ""],
|
|
9431
|
+
})(["&::selection{", "}", " width:fit-content;position:absolute;z-index:20;text-align:center;", ""], selection, function (_ref) {
|
|
9346
9432
|
var open = _ref.open;
|
|
9347
9433
|
return visibilityTransition(open);
|
|
9348
9434
|
}, tooltipTokens.wrapper.base);
|
|
@@ -9481,7 +9567,7 @@ var modalTokens = {
|
|
|
9481
9567
|
var Container$7 = styled__default["default"].div.withConfig({
|
|
9482
9568
|
displayName: "Modal__Container",
|
|
9483
9569
|
componentId: "sc-12c14zx-0"
|
|
9484
|
-
})(["display:flex;flex-direction:column-reverse;box-sizing:border-box;margin:0;min-width:200px;&::selection,*::selection{", "}", " :focus-visible,&.focus-visible{", "}"],
|
|
9570
|
+
})(["display:flex;flex-direction:column-reverse;box-sizing:border-box;margin:0;min-width:200px;&::selection,*::selection{", "}", " :focus-visible,&.focus-visible{", "}"], selection, modalTokens.base, modalTokens.focus.base);
|
|
9485
9571
|
var ContentContainer$2 = styled__default["default"].div.withConfig({
|
|
9486
9572
|
displayName: "Modal__ContentContainer",
|
|
9487
9573
|
componentId: "sc-12c14zx-1"
|
|
@@ -10047,7 +10133,7 @@ var toggleButtonTokens = {
|
|
|
10047
10133
|
var Content$1 = styled__default["default"].span.withConfig({
|
|
10048
10134
|
displayName: "ToggleButton__Content",
|
|
10049
10135
|
componentId: "sc-ya01sa-0"
|
|
10050
|
-
})(["display:flex;align-items:center;width:100%;height:100%;box-sizing:border-box;@media (prefers-reduced-motion:no-preference){transition:border-color 0.2s,background-color 0.2s,box-shadow 0.2s;}", ";cursor:pointer;", " width:fit-content;", " ", " ", " &::selection,*::selection{", "}&:hover{", "}"], focusVisibleTransitionValue, buttonTokens.base, buttonTokens.appearance.rounded.base, buttonTokens.sizes.small.text.base, toggleButtonTokens.base,
|
|
10136
|
+
})(["display:flex;align-items:center;width:100%;height:100%;box-sizing:border-box;@media (prefers-reduced-motion:no-preference){transition:border-color 0.2s,background-color 0.2s,box-shadow 0.2s;}", ";cursor:pointer;", " width:fit-content;", " ", " ", " &::selection,*::selection{", "}&:hover{", "}"], focusVisibleTransitionValue, buttonTokens.base, buttonTokens.appearance.rounded.base, buttonTokens.sizes.small.text.base, toggleButtonTokens.base, selection, toggleButtonTokens.hover.base);
|
|
10051
10137
|
var Container$3 = styled__default["default"].label.withConfig({
|
|
10052
10138
|
displayName: "ToggleButton__Container",
|
|
10053
10139
|
componentId: "sc-ya01sa-1"
|
|
@@ -11209,6 +11295,7 @@ exports.CalendarViewDayIcon = CalendarViewDayIcon;
|
|
|
11209
11295
|
exports.CalendarViewMonthIcon = CalendarViewMonthIcon;
|
|
11210
11296
|
exports.CalendarViewWeekIcon = CalendarViewWeekIcon;
|
|
11211
11297
|
exports.CallIcon = CallIcon;
|
|
11298
|
+
exports.Caption = Caption;
|
|
11212
11299
|
exports.Card = Card;
|
|
11213
11300
|
exports.CardAccordion = CardAccordion;
|
|
11214
11301
|
exports.CardAccordionBody = CardAccordionBody;
|
|
@@ -11275,6 +11362,7 @@ exports.FullscreenIcon = FullscreenIcon;
|
|
|
11275
11362
|
exports.GavelIcon = GavelIcon;
|
|
11276
11363
|
exports.GlobalMessage = GlobalMessage;
|
|
11277
11364
|
exports.Head = Head;
|
|
11365
|
+
exports.Heading = Heading;
|
|
11278
11366
|
exports.HelpFilledIcon = HelpFilledIcon;
|
|
11279
11367
|
exports.HelpIcon = HelpIcon;
|
|
11280
11368
|
exports.HomeIcon = HomeIcon;
|
|
@@ -11286,9 +11374,12 @@ exports.InstagramIcon = InstagramIcon;
|
|
|
11286
11374
|
exports.InternalHeader = InternalHeader;
|
|
11287
11375
|
exports.JordskifterettIcon = JordskifterettIcon;
|
|
11288
11376
|
exports.KeyIcon = KeyIcon;
|
|
11377
|
+
exports.Label = Label$7;
|
|
11289
11378
|
exports.LagmannsrettIcon = LagmannsrettIcon;
|
|
11290
11379
|
exports.LanguageIcon = LanguageIcon;
|
|
11291
|
-
exports.
|
|
11380
|
+
exports.Legend = Legend;
|
|
11381
|
+
exports.Link = Link$3;
|
|
11382
|
+
exports.LinkIcon = LinkIcon;
|
|
11292
11383
|
exports.LinkOffIcon = LinkOffIcon;
|
|
11293
11384
|
exports.LinkedInIcon = LinkedInIcon;
|
|
11294
11385
|
exports.List = List;
|
|
@@ -11320,6 +11411,7 @@ exports.OverflowMenu = OverflowMenu;
|
|
|
11320
11411
|
exports.OverflowMenuGroup = OverflowMenuGroup;
|
|
11321
11412
|
exports.OverflowMenuList = OverflowMenuList;
|
|
11322
11413
|
exports.Pagination = Pagination;
|
|
11414
|
+
exports.Paragraph = Paragraph;
|
|
11323
11415
|
exports.PdfIcon = PdfIcon;
|
|
11324
11416
|
exports.PersonAddIcon = PersonAddIcon;
|
|
11325
11417
|
exports.PersonIcon = PersonIcon;
|
|
@@ -11385,8 +11477,5 @@ exports.WarningIcon = WarningIcon;
|
|
|
11385
11477
|
exports.ZoomInIcon = ZoomInIcon;
|
|
11386
11478
|
exports.ZoomOutIcon = ZoomOutIcon;
|
|
11387
11479
|
exports.createSelectOptions = createSelectOptions;
|
|
11388
|
-
exports.getTextColor = getTextColor;
|
|
11389
|
-
exports.inlineElements = inlineElements;
|
|
11390
|
-
exports.isTextColor = isTextColor;
|
|
11391
11480
|
exports.scrollbarStyling = scrollbarStyling;
|
|
11392
11481
|
exports.searchFilter = searchFilter;
|