@norges-domstoler/dds-components 9.2.0-beta.0 → 9.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/dist/assets/svg/bullets/jordskifterett_bullet1.svg.js +2 -2
- package/dist/cjs/components/Breadcrumbs/Breadcrumb.tokens.d.ts +2 -8
- package/dist/cjs/components/Button/Button.stories.d.ts +4 -4
- package/dist/cjs/components/Button/Button.styles.d.ts +1 -0
- package/dist/cjs/components/Button/Button.tokens.d.ts +294 -165
- package/dist/cjs/components/Card/Card.tokens.d.ts +17 -16
- package/dist/cjs/components/Card/CardAccordion/CardAccordion.tokens.d.ts +28 -0
- package/dist/cjs/components/Checkbox/Checkbox.stories.d.ts +2 -2
- package/dist/cjs/components/Checkbox/CheckboxGroup.d.ts +1 -3
- package/dist/cjs/components/Chip/Chip.tokens.d.ts +8 -6
- package/dist/cjs/components/DescriptionList/DescriptionList.tokens.d.ts +6 -36
- package/dist/cjs/components/Divider/Divider.tokens.d.ts +11 -6
- package/dist/cjs/components/Drawer/Drawer.tokens.d.ts +3 -11
- package/dist/cjs/components/GlobalMessage/GlobalMessage.tokens.d.ts +24 -22
- package/dist/cjs/components/Grid/Grid.d.ts +8 -7
- package/dist/cjs/components/Grid/Grid.tokens.d.ts +5 -5
- package/dist/cjs/components/InternalHeader/InternalHeader.styles.d.ts +3 -2
- package/dist/cjs/components/InternalHeader/InternalHeader.tokens.d.ts +4 -9
- package/dist/cjs/components/List/List.d.ts +1 -1
- package/dist/cjs/components/List/List.tokens.d.ts +21 -9
- package/dist/cjs/components/LocalMessage/LocalMessage.tokens.d.ts +49 -53
- package/dist/cjs/components/Modal/Modal.tokens.d.ts +5 -6
- package/dist/cjs/components/OverflowMenu/OverflowMenu.d.ts +4 -3
- package/dist/cjs/components/OverflowMenu/OverflowMenu.stories.d.ts +4 -3
- package/dist/cjs/components/OverflowMenu/OverflowMenu.tokens.d.ts +2 -8
- package/dist/cjs/components/OverflowMenu/OverflowMenu.types.d.ts +8 -6
- package/dist/cjs/components/Pagination/Pagination.tokens.d.ts +7 -8
- package/dist/cjs/components/Popover/Popover.tokens.d.ts +0 -1
- package/dist/cjs/components/ProgressTracker/ProgressTracker.tokens.d.ts +9 -6
- package/dist/cjs/components/RadioButton/RadioButton.stories.d.ts +4 -4
- package/dist/cjs/components/RadioButton/RadioButtonGroup.d.ts +2 -4
- package/dist/cjs/components/RadioButton/RadioButtonGroup.stories.d.ts +1 -1
- package/dist/cjs/components/Search/Search.tokens.d.ts +5 -24
- package/dist/cjs/components/Select/Select.tokens.d.ts +14 -127
- package/dist/cjs/components/SkipToContent/SkipToContent.d.ts +2 -2
- package/dist/cjs/components/SkipToContent/SkipToContent.stories.d.ts +1 -1
- package/dist/cjs/components/SkipToContent/SkipToContent.tokens.d.ts +5 -10
- package/dist/cjs/components/SplitButton/SplitButton.d.ts +11 -0
- package/dist/cjs/components/SplitButton/SplitButton.stories.d.ts +9 -0
- package/dist/cjs/components/SplitButton/index.d.ts +1 -0
- package/dist/cjs/components/Table/Table.tokens.d.ts +0 -19
- package/dist/cjs/components/Tabs/Tabs.tokens.d.ts +21 -22
- package/dist/cjs/components/Tag/Tag.d.ts +1 -1
- package/dist/cjs/components/Tag/Tag.tokens.d.ts +19 -14
- package/dist/cjs/components/TextInput/TextInput.tokens.d.ts +0 -3
- package/dist/cjs/components/ToggleBar/ToggleBar.tokens.d.ts +5 -32
- package/dist/cjs/components/ToggleButton/ToggleButton.stories.d.ts +2 -2
- package/dist/cjs/components/ToggleButton/ToggleButton.tokens.d.ts +23 -13
- package/dist/cjs/components/Tooltip/Tooltip.stories.d.ts +2 -2
- package/dist/cjs/components/Tooltip/Tooltip.styles.d.ts +4 -1
- package/dist/cjs/components/Tooltip/Tooltip.tokens.d.ts +1 -2
- package/dist/cjs/components/Typography/Typography.utils.d.ts +195 -1
- package/dist/cjs/helpers/Input/Input.tokens.d.ts +2 -68
- package/dist/cjs/helpers/Input/Input.types.d.ts +4 -0
- package/dist/cjs/helpers/SelectionControl/SelectionControl.styles.d.ts +5 -0
- package/dist/cjs/helpers/SelectionControl/SelectionControl.tokens.d.ts +11 -0
- package/dist/cjs/helpers/TextOverflowEllipsis/TextOverflowEllipsis.d.ts +2 -0
- package/dist/cjs/helpers/TextOverflowEllipsis/index.d.ts +1 -0
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.js +1475 -1823
- package/dist/cjs/utils/color.d.ts +1 -1
- package/dist/components/Breadcrumbs/Breadcrumb.tokens.d.ts +2 -8
- package/dist/components/Breadcrumbs/Breadcrumb.tokens.js +3 -4
- package/dist/components/Breadcrumbs/Breadcrumbs.js +3 -2
- package/dist/components/Button/Button.js +7 -4
- package/dist/components/Button/Button.stories.d.ts +4 -4
- package/dist/components/Button/Button.styles.d.ts +1 -0
- package/dist/components/Button/Button.styles.js +49 -24
- package/dist/components/Button/Button.tokens.d.ts +294 -165
- package/dist/components/Button/Button.tokens.js +232 -349
- package/dist/components/Card/Card.js +6 -5
- package/dist/components/Card/Card.tokens.d.ts +17 -16
- package/dist/components/Card/Card.tokens.js +26 -54
- package/dist/components/Card/CardAccordion/CardAccordion.tokens.d.ts +28 -0
- package/dist/components/Card/CardAccordion/CardAccordion.tokens.js +37 -0
- package/dist/components/Card/CardAccordion/CardAccordionBody.js +4 -3
- package/dist/components/Card/CardAccordion/CardAccordionHeader.js +9 -6
- package/dist/components/Checkbox/Checkbox.stories.d.ts +2 -2
- package/dist/components/Checkbox/CheckboxGroup.d.ts +1 -3
- package/dist/components/Checkbox/CheckboxGroup.js +3 -16
- package/dist/components/Chip/Chip.js +9 -9
- package/dist/components/Chip/Chip.tokens.d.ts +8 -6
- package/dist/components/Chip/Chip.tokens.js +8 -25
- package/dist/components/Chip/ChipGroup.js +1 -1
- package/dist/components/DescriptionList/DescriptionList.js +3 -2
- package/dist/components/DescriptionList/DescriptionList.tokens.d.ts +6 -36
- package/dist/components/DescriptionList/DescriptionList.tokens.js +7 -18
- package/dist/components/DescriptionList/DescriptionListDesc.js +3 -2
- package/dist/components/Divider/Divider.js +6 -6
- package/dist/components/Divider/Divider.tokens.d.ts +11 -6
- package/dist/components/Divider/Divider.tokens.js +16 -16
- package/dist/components/Drawer/Drawer.js +11 -4
- package/dist/components/Drawer/Drawer.tokens.d.ts +3 -11
- package/dist/components/Drawer/Drawer.tokens.js +10 -26
- package/dist/components/GlobalMessage/GlobalMessage.js +13 -10
- package/dist/components/GlobalMessage/GlobalMessage.tokens.d.ts +24 -22
- package/dist/components/GlobalMessage/GlobalMessage.tokens.js +45 -64
- package/dist/components/Grid/Grid.d.ts +8 -7
- package/dist/components/Grid/Grid.js +7 -5
- package/dist/components/Grid/Grid.tokens.d.ts +5 -5
- package/dist/components/Grid/Grid.tokens.js +5 -5
- package/dist/components/InternalHeader/InternalHeader.styles.d.ts +3 -2
- package/dist/components/InternalHeader/InternalHeader.tokens.d.ts +4 -9
- package/dist/components/InternalHeader/InternalHeader.tokens.js +6 -6
- package/dist/components/InternalHeader/NavigationItem.js +3 -2
- package/dist/components/List/List.d.ts +1 -1
- package/dist/components/List/List.js +8 -7
- package/dist/components/List/List.tokens.d.ts +21 -9
- package/dist/components/List/List.tokens.js +26 -20
- package/dist/components/List/ListItem.js +2 -2
- package/dist/components/LocalMessage/LocalMessage.js +19 -15
- package/dist/components/LocalMessage/LocalMessage.tokens.d.ts +49 -53
- package/dist/components/LocalMessage/LocalMessage.tokens.js +94 -127
- package/dist/components/Modal/Modal.js +9 -5
- package/dist/components/Modal/Modal.tokens.d.ts +5 -6
- package/dist/components/Modal/Modal.tokens.js +11 -31
- package/dist/components/Modal/ModalActions.js +1 -1
- package/dist/components/OverflowMenu/OverflowMenu.d.ts +4 -3
- package/dist/components/OverflowMenu/OverflowMenu.js +12 -3
- package/dist/components/OverflowMenu/OverflowMenu.stories.d.ts +4 -3
- package/dist/components/OverflowMenu/OverflowMenu.tokens.d.ts +2 -8
- package/dist/components/OverflowMenu/OverflowMenu.tokens.js +5 -5
- package/dist/components/OverflowMenu/OverflowMenu.types.d.ts +8 -6
- package/dist/components/OverflowMenu/OverflowMenuGroup.js +1 -0
- package/dist/components/OverflowMenu/OverflowMenuItem.js +3 -2
- package/dist/components/Pagination/Pagination.js +13 -8
- package/dist/components/Pagination/Pagination.tokens.d.ts +7 -8
- package/dist/components/Pagination/Pagination.tokens.js +17 -16
- package/dist/components/Popover/Popover.tokens.d.ts +0 -1
- package/dist/components/Popover/Popover.tokens.js +0 -1
- package/dist/components/ProgressTracker/ProgressTracker.tokens.d.ts +9 -6
- package/dist/components/ProgressTracker/ProgressTracker.tokens.js +11 -9
- package/dist/components/ProgressTracker/ProgressTrackerItem.js +7 -6
- package/dist/components/RadioButton/RadioButton.stories.d.ts +4 -4
- package/dist/components/RadioButton/RadioButtonGroup.d.ts +2 -4
- package/dist/components/RadioButton/RadioButtonGroup.js +3 -15
- package/dist/components/RadioButton/RadioButtonGroup.stories.d.ts +1 -1
- package/dist/components/Search/Search.js +3 -2
- package/dist/components/Search/Search.tokens.d.ts +5 -24
- package/dist/components/Search/Search.tokens.js +6 -5
- package/dist/components/Select/Select.js +5 -4
- package/dist/components/Select/Select.styles.js +13 -14
- package/dist/components/Select/Select.tokens.d.ts +14 -127
- package/dist/components/Select/Select.tokens.js +28 -36
- package/dist/components/SkipToContent/SkipToContent.d.ts +2 -2
- package/dist/components/SkipToContent/SkipToContent.js +7 -4
- package/dist/components/SkipToContent/SkipToContent.stories.d.ts +1 -1
- package/dist/components/SkipToContent/SkipToContent.tokens.d.ts +5 -10
- package/dist/components/SkipToContent/SkipToContent.tokens.js +14 -37
- package/dist/components/Spinner/Spinner.js +1 -2
- package/dist/components/SplitButton/SplitButton.d.ts +11 -0
- package/dist/components/SplitButton/SplitButton.js +62 -0
- package/dist/components/SplitButton/SplitButton.stories.d.ts +9 -0
- package/dist/components/SplitButton/index.d.ts +1 -0
- package/dist/components/Table/Row.js +2 -1
- package/dist/components/Table/Table.tokens.d.ts +0 -19
- package/dist/components/Table/Table.tokens.js +1 -8
- package/dist/components/Tabs/Tab.js +8 -5
- package/dist/components/Tabs/TabPanel.js +4 -3
- package/dist/components/Tabs/Tabs.tokens.d.ts +21 -22
- package/dist/components/Tabs/Tabs.tokens.js +31 -79
- package/dist/components/Tag/Tag.d.ts +1 -1
- package/dist/components/Tag/Tag.js +8 -21
- package/dist/components/Tag/Tag.tokens.d.ts +19 -14
- package/dist/components/Tag/Tag.tokens.js +14 -41
- package/dist/components/TextArea/TextArea.js +3 -2
- package/dist/components/TextInput/TextInput.tokens.d.ts +0 -3
- package/dist/components/TextInput/TextInput.tokens.js +0 -3
- package/dist/components/ToggleBar/ToggleBar.tokens.d.ts +5 -32
- package/dist/components/ToggleBar/ToggleBar.tokens.js +7 -5
- package/dist/components/ToggleBar/ToggleRadio.styles.js +3 -2
- package/dist/components/ToggleButton/ToggleButton.js +14 -8
- package/dist/components/ToggleButton/ToggleButton.stories.d.ts +2 -2
- package/dist/components/ToggleButton/ToggleButton.tokens.d.ts +23 -13
- package/dist/components/ToggleButton/ToggleButton.tokens.js +26 -49
- package/dist/components/ToggleButton/ToggleButtonGroup.js +2 -2
- package/dist/components/Tooltip/Tooltip.js +6 -2
- package/dist/components/Tooltip/Tooltip.stories.d.ts +2 -2
- package/dist/components/Tooltip/Tooltip.styles.d.ts +4 -1
- package/dist/components/Tooltip/Tooltip.styles.js +15 -4
- package/dist/components/Tooltip/Tooltip.tokens.d.ts +1 -2
- package/dist/components/Tooltip/Tooltip.tokens.js +14 -24
- package/dist/components/Typography/Typography.utils.d.ts +195 -1
- package/dist/components/Typography/Typography.utils.js +7 -1
- package/dist/helpers/Input/Input.styles.js +3 -2
- package/dist/helpers/Input/Input.tokens.d.ts +2 -68
- package/dist/helpers/Input/Input.tokens.js +10 -46
- package/dist/helpers/Input/Input.types.d.ts +4 -0
- package/dist/helpers/SelectionControl/SelectionControl.styles.d.ts +5 -0
- package/dist/helpers/SelectionControl/SelectionControl.styles.js +15 -2
- package/dist/helpers/SelectionControl/SelectionControl.tokens.d.ts +11 -0
- package/dist/helpers/SelectionControl/SelectionControl.tokens.js +14 -1
- package/dist/helpers/TextOverflowEllipsis/TextOverflowEllipsis.d.ts +2 -0
- package/dist/helpers/TextOverflowEllipsis/TextOverflowEllipsis.js +12 -0
- package/dist/helpers/TextOverflowEllipsis/index.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/utils/color.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cjs/components/Card/CardAccordion/CardAccordionBody.tokens.d.ts +0 -4
- package/dist/cjs/components/Card/CardAccordion/CardAccordionHeader.tokens.d.ts +0 -17
- package/dist/cjs/components/List/ListItem.tokens.d.ts +0 -5
- package/dist/cjs/components/RadioButton/RadioButtonGroup.tokens.d.ts +0 -19
- package/dist/cjs/components/Spinner/Spinner.tokens.d.ts +0 -6
- package/dist/components/Card/CardAccordion/CardAccordionBody.tokens.d.ts +0 -4
- package/dist/components/Card/CardAccordion/CardAccordionBody.tokens.js +0 -12
- package/dist/components/Card/CardAccordion/CardAccordionHeader.tokens.d.ts +0 -17
- package/dist/components/Card/CardAccordion/CardAccordionHeader.tokens.js +0 -38
- package/dist/components/Checkbox/CheckboxGroup.tokens.js +0 -20
- package/dist/components/List/ListItem.tokens.d.ts +0 -5
- package/dist/components/List/ListItem.tokens.js +0 -12
- package/dist/components/RadioButton/RadioButtonGroup.tokens.d.ts +0 -19
- package/dist/components/RadioButton/RadioButtonGroup.tokens.js +0 -32
- package/dist/components/Spinner/Spinner.tokens.d.ts +0 -6
- package/dist/components/Spinner/Spinner.tokens.js +0 -13
|
@@ -1,469 +1,352 @@
|
|
|
1
1
|
import { ddsBaseTokens } from '@norges-domstoler/dds-design-tokens';
|
|
2
2
|
import { calculateHeightWithLineHeight } from '../../utils/text.js';
|
|
3
3
|
import '../../utils/color.js';
|
|
4
|
-
import 'styled-components';
|
|
5
|
-
import { focusVisible } from '../../helpers/styling/focusVisible.js';
|
|
6
|
-
import '../../helpers/styling/hover.js';
|
|
7
|
-
import '../../helpers/styling/focus.js';
|
|
8
|
-
import '../../helpers/styling/danger.js';
|
|
9
|
-
import '../../helpers/styling/selection.js';
|
|
10
4
|
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
var
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
var
|
|
27
|
-
|
|
28
|
-
width: "".concat(iconSizeSmallPx, "px")
|
|
29
|
-
};
|
|
30
|
-
var textSmallBase = Object.assign(Object.assign({}, FontPackages.body_sans_01.base), {
|
|
31
|
-
padding: "".concat(Spacing.SizesDdsSpacingLocalX05, " ").concat(Spacing.SizesDdsSpacingLocalX1NumberPx - 2, "px")
|
|
32
|
-
});
|
|
33
|
-
var justIconMediumBase = {
|
|
34
|
-
fontSize: "".concat(iconSizeMediumPx + svgOffset, "px"),
|
|
35
|
-
padding: Spacing.SizesDdsSpacingLocalX075
|
|
36
|
-
};
|
|
37
|
-
var justIconWrapperMediumBase = {
|
|
38
|
-
height: "".concat(iconSizeMediumPx, "px"),
|
|
39
|
-
width: "".concat(iconSizeMediumPx, "px")
|
|
40
|
-
};
|
|
41
|
-
var textMediumBase = Object.assign(Object.assign({}, FontPackages.body_sans_02.base), {
|
|
42
|
-
padding: "".concat(Spacing.SizesDdsSpacingLocalX075, " ").concat(Spacing.SizesDdsSpacingLocalX15NumberPx - 2, "px")
|
|
43
|
-
});
|
|
44
|
-
var justIconLargeBase = {
|
|
45
|
-
fontSize: "".concat(iconSizeLargePx + svgOffset, "px"),
|
|
46
|
-
padding: Spacing.SizesDdsSpacingLocalX1
|
|
47
|
-
};
|
|
48
|
-
var justIconWrapperLargeBase = {
|
|
49
|
-
height: "".concat(iconSizeLargePx, "px"),
|
|
50
|
-
width: "".concat(iconSizeLargePx, "px")
|
|
51
|
-
};
|
|
52
|
-
var textLargeBase = Object.assign(Object.assign({}, FontPackages.body_sans_04.base), {
|
|
53
|
-
padding: "".concat(Spacing.SizesDdsSpacingLocalX1, " ").concat(Spacing.SizesDdsSpacingLocalX2NumberPx - 2, "px")
|
|
54
|
-
});
|
|
55
|
-
var justIconTinyBase = {
|
|
56
|
-
fontSize: "".concat(iconSizeTinyPx + svgOffset, "px"),
|
|
57
|
-
padding: Spacing.SizesDdsSpacingLocalX025
|
|
58
|
-
};
|
|
59
|
-
var justIconWrapperTinyBase = {
|
|
60
|
-
height: "".concat(iconSizeTinyPx, "px"),
|
|
61
|
-
width: "".concat(iconSizeTinyPx, "px")
|
|
62
|
-
};
|
|
63
|
-
var textTinyBase = Object.assign(Object.assign({}, FontPackages.supportingStyle_tiny_01.base), {
|
|
64
|
-
padding: "".concat(Spacing.SizesDdsSpacingLocalX025, " ").concat(Spacing.SizesDdsSpacingLocalX075)
|
|
65
|
-
});
|
|
66
|
-
var buttonBase = {
|
|
67
|
-
border: "".concat(Border.BordersDdsBorderStyleLightStrokeWeight, " solid")
|
|
68
|
-
};
|
|
5
|
+
var colors = ddsBaseTokens.colors,
|
|
6
|
+
border = ddsBaseTokens.border,
|
|
7
|
+
spacing = ddsBaseTokens.spacing,
|
|
8
|
+
fontPackages = ddsBaseTokens.fontPackages,
|
|
9
|
+
borderRadius = ddsBaseTokens.borderRadius,
|
|
10
|
+
outerShadow = ddsBaseTokens.outerShadow;
|
|
11
|
+
var typographyTypes = {
|
|
12
|
+
large: 'bodySans04',
|
|
13
|
+
medium: 'bodySans02',
|
|
14
|
+
small: 'bodySans01',
|
|
15
|
+
tiny: 'supportingStyleTiny01'
|
|
16
|
+
};
|
|
17
|
+
var iconSizeTinyPx = calculateHeightWithLineHeight(fontPackages.supportingStyle_tiny_01.numbers.lineHeightNumber, fontPackages.supportingStyle_tiny_01.numbers.fontSizeNumber);
|
|
18
|
+
var iconSizeSmallPx = calculateHeightWithLineHeight(fontPackages.body_sans_01.numbers.lineHeightNumber, fontPackages.body_sans_01.numbers.fontSizeNumber);
|
|
19
|
+
var iconSizeMediumPx = calculateHeightWithLineHeight(fontPackages.body_sans_02.numbers.lineHeightNumber, fontPackages.body_sans_02.numbers.fontSizeNumber);
|
|
20
|
+
var iconSizeLargePx = calculateHeightWithLineHeight(fontPackages.body_sans_04.numbers.lineHeightNumber, fontPackages.body_sans_04.numbers.fontSizeNumber);
|
|
21
|
+
var svgOffset = spacing.SizesDdsSpacingLocalX0125NumberPx;
|
|
69
22
|
var filledButtonColors = {
|
|
70
23
|
primary: {
|
|
71
24
|
base: {
|
|
72
|
-
color:
|
|
73
|
-
backgroundColor:
|
|
74
|
-
borderColor:
|
|
25
|
+
color: colors.DdsColorNeutralsWhite,
|
|
26
|
+
backgroundColor: colors.DdsColorInteractiveBase,
|
|
27
|
+
borderColor: colors.DdsColorInteractiveBase
|
|
75
28
|
},
|
|
76
29
|
hover: {
|
|
77
30
|
base: {
|
|
78
|
-
backgroundColor:
|
|
79
|
-
borderColor:
|
|
31
|
+
backgroundColor: colors.DdsColorInteractiveDark,
|
|
32
|
+
borderColor: colors.DdsColorInteractiveDark
|
|
80
33
|
}
|
|
81
34
|
},
|
|
82
35
|
active: {
|
|
83
36
|
base: {
|
|
84
|
-
backgroundColor:
|
|
85
|
-
borderColor:
|
|
37
|
+
backgroundColor: colors.DdsColorInteractiveDarker,
|
|
38
|
+
borderColor: colors.DdsColorInteractiveDarker
|
|
86
39
|
}
|
|
87
40
|
}
|
|
88
41
|
},
|
|
89
42
|
secondary: {
|
|
90
43
|
base: {
|
|
91
|
-
color:
|
|
92
|
-
backgroundColor:
|
|
93
|
-
borderColor:
|
|
44
|
+
color: colors.DdsColorNeutralsGray8,
|
|
45
|
+
backgroundColor: colors.DdsColorNeutralsGray1,
|
|
46
|
+
borderColor: colors.DdsColorNeutralsGray5
|
|
94
47
|
},
|
|
95
48
|
hover: {
|
|
96
49
|
base: {
|
|
97
|
-
backgroundColor:
|
|
50
|
+
backgroundColor: colors.DdsColorNeutralsGray2,
|
|
51
|
+
borderColor: colors.DdsColorNeutralsGray5
|
|
98
52
|
}
|
|
99
53
|
},
|
|
100
54
|
active: {
|
|
101
55
|
base: {
|
|
102
|
-
backgroundColor:
|
|
56
|
+
backgroundColor: colors.DdsColorNeutralsGray3,
|
|
57
|
+
borderColor: colors.DdsColorNeutralsGray5
|
|
103
58
|
}
|
|
104
59
|
}
|
|
105
60
|
},
|
|
106
61
|
danger: {
|
|
107
62
|
base: {
|
|
108
|
-
color:
|
|
109
|
-
backgroundColor:
|
|
110
|
-
borderColor:
|
|
63
|
+
color: colors.DdsColorNeutralsWhite,
|
|
64
|
+
backgroundColor: colors.DdsColorDangerBase,
|
|
65
|
+
borderColor: colors.DdsColorDangerBase
|
|
111
66
|
},
|
|
112
67
|
hover: {
|
|
113
68
|
base: {
|
|
114
|
-
backgroundColor:
|
|
115
|
-
borderColor:
|
|
69
|
+
backgroundColor: colors.DdsColorDangerDark,
|
|
70
|
+
borderColor: colors.DdsColorDangerDark
|
|
116
71
|
}
|
|
117
72
|
},
|
|
118
73
|
active: {
|
|
119
74
|
base: {
|
|
120
|
-
backgroundColor:
|
|
121
|
-
borderColor:
|
|
75
|
+
backgroundColor: colors.DdsColorDangerDarker,
|
|
76
|
+
borderColor: colors.DdsColorDangerDarker
|
|
122
77
|
}
|
|
123
78
|
}
|
|
124
79
|
}
|
|
125
80
|
};
|
|
126
|
-
var
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
var filledPrimaryActiveBase = Object.assign({}, filledButtonColors.primary.active.base);
|
|
133
|
-
var filledSecondaryBase = Object.assign({}, filledButtonColors.secondary.base);
|
|
134
|
-
var filledSecondaryHoverBase = Object.assign({}, filledButtonColors.secondary.hover.base);
|
|
135
|
-
var filledSecondaryActiveBase = Object.assign({}, filledButtonColors.secondary.active.base);
|
|
136
|
-
var filledDangerBase = Object.assign({}, filledButtonColors.danger.base);
|
|
137
|
-
var filledDangerHoverBase = Object.assign({}, filledButtonColors.danger.hover.base);
|
|
138
|
-
var filledDangerActiveBase = Object.assign({}, filledButtonColors.danger.active.base);
|
|
139
|
-
var roundedPrimaryBase = Object.assign({}, filledButtonColors.primary.base);
|
|
140
|
-
var roundedPrimaryHoverBase = Object.assign({}, filledButtonColors.primary.hover.base);
|
|
141
|
-
var roundedPrimaryActiveBase = Object.assign({}, filledButtonColors.primary.active.base);
|
|
142
|
-
var roundedSecondaryBase = Object.assign({}, filledButtonColors.secondary.base);
|
|
143
|
-
var roundedSecondaryHoverBase = Object.assign({}, filledButtonColors.secondary.hover.base);
|
|
144
|
-
var roundedSecondaryActiveBase = Object.assign({}, filledButtonColors.secondary.active.base);
|
|
145
|
-
var roundedDangerBase = Object.assign({}, filledButtonColors.danger.base);
|
|
146
|
-
var roundedDangerHoverBase = Object.assign({}, filledButtonColors.danger.hover.base);
|
|
147
|
-
var roundedDangerActiveBase = Object.assign({}, filledButtonColors.danger.active.base);
|
|
148
|
-
var borderlessBase = {
|
|
149
|
-
borderRadius: BorderRadius.RadiiDdsBorderRadius1Radius,
|
|
150
|
-
boxShadow: 'none',
|
|
151
|
-
backgroundColor: 'transparent',
|
|
152
|
-
borderColor: 'transparent',
|
|
153
|
-
textDecoration: 'underline',
|
|
154
|
-
textDecorationColor: 'transparent'
|
|
155
|
-
};
|
|
156
|
-
var borderlessPrimaryBase = {
|
|
157
|
-
color: Colors.DdsColorInteractiveBase,
|
|
158
|
-
taxtDecorationColor: Colors.DdsColorInteractiveBase
|
|
159
|
-
};
|
|
160
|
-
var borderlessPrimaryHoverBase = {
|
|
161
|
-
color: Colors.DdsColorInteractiveDark,
|
|
162
|
-
textDecorationColor: Colors.DdsColorInteractiveDark
|
|
163
|
-
};
|
|
164
|
-
var borderlessPrimaryActiveBase = {
|
|
165
|
-
color: Colors.DdsColorInteractiveDarker,
|
|
166
|
-
textDecorationColor: Colors.DdsColorInteractiveDarker
|
|
167
|
-
};
|
|
168
|
-
var borderlessPrimaryIconHoverBase = {
|
|
169
|
-
borderColor: Colors.DdsColorInteractiveDark,
|
|
170
|
-
boxShadow: "0 0 0 1px ".concat(Colors.DdsColorInteractiveDark)
|
|
171
|
-
};
|
|
172
|
-
var borderlessPrimaryIconActiveBase = {
|
|
173
|
-
borderColor: Colors.DdsColorInteractiveDarker,
|
|
174
|
-
boxShadow: "0 0 0 1px ".concat(Colors.DdsColorInteractiveDarker)
|
|
175
|
-
};
|
|
176
|
-
var borderlessSecondaryBase = {
|
|
177
|
-
color: Colors.DdsColorNeutralsGray7
|
|
178
|
-
};
|
|
179
|
-
var borderlessSecondaryHoverBase = {
|
|
180
|
-
color: Colors.DdsColorNeutralsGray8,
|
|
181
|
-
textDecorationColor: Colors.DdsColorNeutralsGray8
|
|
182
|
-
};
|
|
183
|
-
var borderlessSecondaryActiveBase = {
|
|
184
|
-
color: Colors.DdsColorNeutralsGray9,
|
|
185
|
-
textDecorationColor: Colors.DdsColorNeutralsGray9
|
|
186
|
-
};
|
|
187
|
-
var borderlessSecondaryIconHoverBase = {
|
|
188
|
-
borderColor: Colors.DdsColorNeutralsGray8,
|
|
189
|
-
boxShadow: "0 0 0 1px ".concat(Colors.DdsColorNeutralsGray8)
|
|
190
|
-
};
|
|
191
|
-
var borderlessSecondaryIconActiveBase = {
|
|
192
|
-
borderColor: Colors.DdsColorNeutralsGray9,
|
|
193
|
-
boxShadow: "0 0 0 1px ".concat(Colors.DdsColorNeutralsGray9)
|
|
194
|
-
};
|
|
195
|
-
var borderlessDangerBase = {
|
|
196
|
-
color: Colors.DdsColorDangerBase
|
|
197
|
-
};
|
|
198
|
-
var borderlessDangerHoverBase = {
|
|
199
|
-
color: Colors.DdsColorDangerDarker,
|
|
200
|
-
textDecorationColor: Colors.DdsColorDangerDarker
|
|
201
|
-
};
|
|
202
|
-
var borderlessDangerActiveBase = {
|
|
203
|
-
color: Colors.DdsColorDangerDarkest,
|
|
204
|
-
textDecorationColor: Colors.DdsColorDangerDarkest
|
|
205
|
-
};
|
|
206
|
-
var borderlessDangerIconHoverBase = {
|
|
207
|
-
borderColor: Colors.DdsColorDangerDark,
|
|
208
|
-
boxShadow: "0 0 0 1px ".concat(Colors.DdsColorDangerDark)
|
|
209
|
-
};
|
|
210
|
-
var borderlessDangerIconActiveBase = {
|
|
211
|
-
borderColor: Colors.DdsColorDangerDarker,
|
|
212
|
-
boxShadow: "0 0 0 1px ".concat(Colors.DdsColorDangerDarker)
|
|
213
|
-
};
|
|
214
|
-
var ghostBase = {
|
|
215
|
-
borderRadius: BorderRadius.RadiiDdsBorderRadius1Radius,
|
|
216
|
-
boxShadow: 'none',
|
|
217
|
-
backgroundColor: 'transparent'
|
|
218
|
-
};
|
|
219
|
-
var ghostPrimaryBase = {
|
|
220
|
-
color: Colors.DdsColorInteractiveBase,
|
|
221
|
-
borderColor: Colors.DdsColorInteractiveBase
|
|
222
|
-
};
|
|
223
|
-
var ghostPrimaryHoverBase = {
|
|
224
|
-
color: Colors.DdsColorInteractiveDark,
|
|
225
|
-
borderColor: Colors.DdsColorInteractiveDark,
|
|
226
|
-
boxShadow: "0 0 0 1px ".concat(Colors.DdsColorInteractiveDark)
|
|
227
|
-
};
|
|
228
|
-
var ghostPrimaryActiveBase = {
|
|
229
|
-
color: Colors.DdsColorInteractiveDarker,
|
|
230
|
-
borderColor: Colors.DdsColorInteractiveDarker,
|
|
231
|
-
boxShadow: "0 0 0 1px ".concat(Colors.DdsColorInteractiveDarker)
|
|
232
|
-
};
|
|
233
|
-
var ghostSecondaryBase = {
|
|
234
|
-
color: Colors.DdsColorNeutralsGray7,
|
|
235
|
-
borderColor: Colors.DdsColorNeutralsGray7
|
|
236
|
-
};
|
|
237
|
-
var ghostSecondaryHoverBase = {
|
|
238
|
-
color: Colors.DdsColorNeutralsGray8,
|
|
239
|
-
borderColor: Colors.DdsColorNeutralsGray8,
|
|
240
|
-
boxShadow: "0 0 0 1px ".concat(Colors.DdsColorNeutralsGray8)
|
|
241
|
-
};
|
|
242
|
-
var ghostSecondaryActiveBase = {
|
|
243
|
-
color: Colors.DdsColorNeutralsGray9,
|
|
244
|
-
borderColor: Colors.DdsColorNeutralsGray9,
|
|
245
|
-
boxShadow: "0 0 0 1px ".concat(Colors.DdsColorNeutralsGray9)
|
|
246
|
-
};
|
|
247
|
-
var ghostDangerBase = {
|
|
248
|
-
color: Colors.DdsColorDangerBase,
|
|
249
|
-
borderColor: Colors.DdsColorDangerBase
|
|
250
|
-
};
|
|
251
|
-
var ghostDangerHoverBase = {
|
|
252
|
-
color: Colors.DdsColorDangerDark,
|
|
253
|
-
borderColor: Colors.DdsColorDangerDark,
|
|
254
|
-
boxShadow: "0 0 0 1px ".concat(Colors.DdsColorDangerDark)
|
|
255
|
-
};
|
|
256
|
-
var ghostDangerActiveBase = {
|
|
257
|
-
color: Colors.DdsColorDangerDarkest,
|
|
258
|
-
borderColor: Colors.DdsColorDangerDarkest,
|
|
259
|
-
boxShadow: "0 0 0 1px ".concat(Colors.DdsColorDangerDarkest)
|
|
260
|
-
};
|
|
261
|
-
var roundedBase = {
|
|
262
|
-
borderRadius: '100px',
|
|
263
|
-
boxShadow: OuterShadow.DdsShadow1Onlight
|
|
264
|
-
};
|
|
265
|
-
var focusBase = Object.assign({}, focusVisible);
|
|
266
|
-
var buttonTokens = {
|
|
267
|
-
base: buttonBase,
|
|
268
|
-
focus: {
|
|
269
|
-
base: focusBase
|
|
270
|
-
},
|
|
271
|
-
sizes: {
|
|
272
|
-
small: {
|
|
273
|
-
justIcon: {
|
|
274
|
-
base: justIconSmallBase
|
|
81
|
+
var sizes = {
|
|
82
|
+
large: {
|
|
83
|
+
justIcon: {
|
|
84
|
+
icon: {
|
|
85
|
+
fontSize: "".concat(iconSizeLargePx + svgOffset, "px"),
|
|
86
|
+
padding: spacing.SizesDdsSpacingLocalX1
|
|
275
87
|
},
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
base: textSmallBase
|
|
281
|
-
},
|
|
282
|
-
iconWithTextMargin: Spacing.SizesDdsSpacingLocalX05
|
|
88
|
+
wrapper: {
|
|
89
|
+
height: "".concat(iconSizeLargePx, "px"),
|
|
90
|
+
width: "".concat(iconSizeLargePx, "px")
|
|
91
|
+
}
|
|
283
92
|
},
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
base: justIconMediumBase
|
|
287
|
-
},
|
|
288
|
-
justIconWrapper: {
|
|
289
|
-
base: justIconWrapperMediumBase
|
|
290
|
-
},
|
|
291
|
-
text: {
|
|
292
|
-
base: textMediumBase
|
|
293
|
-
},
|
|
294
|
-
iconWithTextMargin: Spacing.SizesDdsSpacingLocalX075
|
|
93
|
+
text: {
|
|
94
|
+
padding: "".concat(spacing.SizesDdsSpacingLocalX1, " ").concat(spacing.SizesDdsSpacingLocalX2NumberPx - 2, "px")
|
|
295
95
|
},
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
96
|
+
textAndIcon: {
|
|
97
|
+
gap: spacing.SizesDdsSpacingLocalX1
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
medium: {
|
|
101
|
+
justIcon: {
|
|
102
|
+
icon: {
|
|
103
|
+
fontSize: "".concat(iconSizeMediumPx + svgOffset, "px"),
|
|
104
|
+
padding: spacing.SizesDdsSpacingLocalX075
|
|
305
105
|
},
|
|
306
|
-
|
|
106
|
+
wrapper: {
|
|
107
|
+
height: "".concat(iconSizeMediumPx, "px"),
|
|
108
|
+
width: "".concat(iconSizeMediumPx, "px")
|
|
109
|
+
}
|
|
307
110
|
},
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
111
|
+
text: {
|
|
112
|
+
padding: "".concat(spacing.SizesDdsSpacingLocalX075, " ").concat(spacing.SizesDdsSpacingLocalX15NumberPx - 2, "px")
|
|
113
|
+
},
|
|
114
|
+
textAndIcon: {
|
|
115
|
+
gap: spacing.SizesDdsSpacingLocalX075
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
small: {
|
|
119
|
+
justIcon: {
|
|
120
|
+
icon: {
|
|
121
|
+
fontSize: "".concat(iconSizeSmallPx + svgOffset, "px"),
|
|
122
|
+
padding: spacing.SizesDdsSpacingLocalX05
|
|
317
123
|
},
|
|
318
|
-
|
|
124
|
+
wrapper: {
|
|
125
|
+
height: "".concat(iconSizeSmallPx, "px"),
|
|
126
|
+
width: "".concat(iconSizeSmallPx, "px")
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
text: {
|
|
130
|
+
padding: "".concat(spacing.SizesDdsSpacingLocalX05, " ").concat(spacing.SizesDdsSpacingLocalX1NumberPx - 2, "px")
|
|
131
|
+
},
|
|
132
|
+
textAndIcon: {
|
|
133
|
+
gap: spacing.SizesDdsSpacingLocalX05
|
|
319
134
|
}
|
|
320
135
|
},
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
136
|
+
tiny: {
|
|
137
|
+
justIcon: {
|
|
138
|
+
icon: {
|
|
139
|
+
fontSize: "".concat(iconSizeTinyPx + svgOffset, "px"),
|
|
140
|
+
padding: spacing.SizesDdsSpacingLocalX025
|
|
141
|
+
},
|
|
142
|
+
wrapper: {
|
|
143
|
+
height: "".concat(iconSizeTinyPx, "px"),
|
|
144
|
+
width: "".concat(iconSizeTinyPx, "px")
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
text: {
|
|
148
|
+
padding: "".concat(spacing.SizesDdsSpacingLocalX025, " ").concat(spacing.SizesDdsSpacingLocalX075)
|
|
149
|
+
},
|
|
150
|
+
textAndIcon: {
|
|
151
|
+
gap: spacing.SizesDdsSpacingLocalX05
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
var appearances = {
|
|
156
|
+
filled: {
|
|
157
|
+
base: {
|
|
158
|
+
borderRadius: borderRadius.RadiiDdsBorderRadius1Radius,
|
|
159
|
+
boxShadow: outerShadow.DdsShadow1Onlight
|
|
160
|
+
},
|
|
161
|
+
purpose: {
|
|
324
162
|
primary: {
|
|
325
|
-
base:
|
|
326
|
-
hover:
|
|
327
|
-
|
|
328
|
-
},
|
|
329
|
-
active: {
|
|
330
|
-
base: filledPrimaryActiveBase
|
|
331
|
-
}
|
|
163
|
+
base: filledButtonColors.primary.base,
|
|
164
|
+
hover: filledButtonColors.primary.hover.base,
|
|
165
|
+
active: filledButtonColors.primary.active.base
|
|
332
166
|
},
|
|
333
167
|
secondary: {
|
|
334
|
-
base:
|
|
335
|
-
hover:
|
|
336
|
-
|
|
337
|
-
},
|
|
338
|
-
active: {
|
|
339
|
-
base: filledSecondaryActiveBase
|
|
340
|
-
}
|
|
168
|
+
base: filledButtonColors.secondary.base,
|
|
169
|
+
hover: filledButtonColors.secondary.hover.base,
|
|
170
|
+
active: filledButtonColors.secondary.active.base
|
|
341
171
|
},
|
|
342
172
|
danger: {
|
|
343
|
-
base:
|
|
344
|
-
hover:
|
|
345
|
-
|
|
346
|
-
},
|
|
347
|
-
active: {
|
|
348
|
-
base: filledDangerActiveBase
|
|
349
|
-
}
|
|
173
|
+
base: filledButtonColors.danger.base,
|
|
174
|
+
hover: filledButtonColors.danger.hover.base,
|
|
175
|
+
active: filledButtonColors.danger.active.base
|
|
350
176
|
}
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
ghost: {
|
|
180
|
+
base: {
|
|
181
|
+
borderRadius: borderRadius.RadiiDdsBorderRadius1Radius,
|
|
182
|
+
boxShadow: 'none',
|
|
183
|
+
backgroundColor: 'transparent'
|
|
351
184
|
},
|
|
352
|
-
|
|
353
|
-
base: ghostBase,
|
|
185
|
+
purpose: {
|
|
354
186
|
primary: {
|
|
355
|
-
base:
|
|
187
|
+
base: {
|
|
188
|
+
color: colors.DdsColorInteractiveBase,
|
|
189
|
+
borderColor: colors.DdsColorInteractiveBase
|
|
190
|
+
},
|
|
356
191
|
hover: {
|
|
357
|
-
|
|
192
|
+
color: colors.DdsColorInteractiveDark,
|
|
193
|
+
borderColor: colors.DdsColorInteractiveDark,
|
|
194
|
+
boxShadow: "0 0 0 1px ".concat(colors.DdsColorInteractiveDark)
|
|
358
195
|
},
|
|
359
196
|
active: {
|
|
360
|
-
|
|
197
|
+
color: colors.DdsColorInteractiveDarker,
|
|
198
|
+
borderColor: colors.DdsColorInteractiveDarker,
|
|
199
|
+
boxShadow: "0 0 0 1px ".concat(colors.DdsColorInteractiveDarker)
|
|
361
200
|
}
|
|
362
201
|
},
|
|
363
202
|
secondary: {
|
|
364
|
-
base:
|
|
203
|
+
base: {
|
|
204
|
+
color: colors.DdsColorNeutralsGray7,
|
|
205
|
+
borderColor: colors.DdsColorNeutralsGray7
|
|
206
|
+
},
|
|
365
207
|
hover: {
|
|
366
|
-
|
|
208
|
+
color: colors.DdsColorNeutralsGray8,
|
|
209
|
+
borderColor: colors.DdsColorNeutralsGray8,
|
|
210
|
+
boxShadow: "0 0 0 1px ".concat(colors.DdsColorNeutralsGray8)
|
|
367
211
|
},
|
|
368
212
|
active: {
|
|
369
|
-
|
|
213
|
+
color: colors.DdsColorNeutralsGray9,
|
|
214
|
+
borderColor: colors.DdsColorNeutralsGray9,
|
|
215
|
+
boxShadow: "0 0 0 1px ".concat(colors.DdsColorNeutralsGray9)
|
|
370
216
|
}
|
|
371
217
|
},
|
|
372
218
|
danger: {
|
|
373
|
-
base:
|
|
219
|
+
base: {
|
|
220
|
+
color: colors.DdsColorDangerBase,
|
|
221
|
+
borderColor: colors.DdsColorDangerBase
|
|
222
|
+
},
|
|
374
223
|
hover: {
|
|
375
|
-
|
|
224
|
+
color: colors.DdsColorDangerDark,
|
|
225
|
+
borderColor: colors.DdsColorDangerDark,
|
|
226
|
+
boxShadow: "0 0 0 1px ".concat(colors.DdsColorDangerDark)
|
|
376
227
|
},
|
|
377
228
|
active: {
|
|
378
|
-
|
|
229
|
+
color: colors.DdsColorDangerDarkest,
|
|
230
|
+
borderColor: colors.DdsColorDangerDarkest,
|
|
231
|
+
boxShadow: "0 0 0 1px ".concat(colors.DdsColorDangerDarkest)
|
|
379
232
|
}
|
|
380
233
|
}
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
borderless: {
|
|
237
|
+
base: {
|
|
238
|
+
borderRadius: borderRadius.RadiiDdsBorderRadius1Radius,
|
|
239
|
+
boxShadow: 'none',
|
|
240
|
+
backgroundColor: 'transparent',
|
|
241
|
+
borderColor: 'transparent',
|
|
242
|
+
textDecoration: 'underline',
|
|
243
|
+
textDecorationColor: 'transparent'
|
|
381
244
|
},
|
|
382
|
-
|
|
383
|
-
base: borderlessBase,
|
|
245
|
+
purpose: {
|
|
384
246
|
primary: {
|
|
385
|
-
base:
|
|
247
|
+
base: {
|
|
248
|
+
color: colors.DdsColorInteractiveBase
|
|
249
|
+
},
|
|
386
250
|
hover: {
|
|
387
|
-
|
|
251
|
+
color: colors.DdsColorInteractiveDark,
|
|
252
|
+
textDecorationColor: colors.DdsColorInteractiveDark
|
|
388
253
|
},
|
|
389
254
|
active: {
|
|
390
|
-
|
|
255
|
+
color: colors.DdsColorInteractiveDarker,
|
|
256
|
+
textDecorationColor: colors.DdsColorInteractiveDarker
|
|
391
257
|
},
|
|
392
|
-
|
|
258
|
+
icon: {
|
|
393
259
|
hover: {
|
|
394
|
-
|
|
260
|
+
borderColor: colors.DdsColorInteractiveDark,
|
|
261
|
+
boxShadow: "0 0 0 1px ".concat(colors.DdsColorInteractiveDark)
|
|
395
262
|
},
|
|
396
263
|
active: {
|
|
397
|
-
|
|
264
|
+
borderColor: colors.DdsColorInteractiveDarker,
|
|
265
|
+
boxShadow: "0 0 0 1px ".concat(colors.DdsColorInteractiveDarker)
|
|
398
266
|
}
|
|
399
267
|
}
|
|
400
268
|
},
|
|
401
269
|
secondary: {
|
|
402
|
-
base:
|
|
270
|
+
base: {
|
|
271
|
+
color: colors.DdsColorNeutralsGray7
|
|
272
|
+
},
|
|
403
273
|
hover: {
|
|
404
|
-
|
|
274
|
+
color: colors.DdsColorNeutralsGray8,
|
|
275
|
+
textDecorationColor: colors.DdsColorNeutralsGray8
|
|
405
276
|
},
|
|
406
277
|
active: {
|
|
407
|
-
|
|
278
|
+
color: colors.DdsColorNeutralsGray9,
|
|
279
|
+
textDecorationColor: colors.DdsColorNeutralsGray9
|
|
408
280
|
},
|
|
409
|
-
|
|
281
|
+
icon: {
|
|
410
282
|
hover: {
|
|
411
|
-
|
|
283
|
+
borderColor: colors.DdsColorNeutralsGray8,
|
|
284
|
+
boxShadow: "0 0 0 1px ".concat(colors.DdsColorNeutralsGray8)
|
|
412
285
|
},
|
|
413
286
|
active: {
|
|
414
|
-
|
|
287
|
+
borderColor: colors.DdsColorNeutralsGray9,
|
|
288
|
+
boxShadow: "0 0 0 1px ".concat(colors.DdsColorNeutralsGray9)
|
|
415
289
|
}
|
|
416
290
|
}
|
|
417
291
|
},
|
|
418
292
|
danger: {
|
|
419
|
-
base:
|
|
293
|
+
base: {
|
|
294
|
+
color: colors.DdsColorDangerBase
|
|
295
|
+
},
|
|
420
296
|
hover: {
|
|
421
|
-
|
|
297
|
+
color: colors.DdsColorDangerDarker,
|
|
298
|
+
textDecorationColor: colors.DdsColorDangerDarker
|
|
422
299
|
},
|
|
423
300
|
active: {
|
|
424
|
-
|
|
301
|
+
color: colors.DdsColorDangerDarkest,
|
|
302
|
+
textDecorationColor: colors.DdsColorDangerDarkest
|
|
425
303
|
},
|
|
426
|
-
|
|
304
|
+
icon: {
|
|
427
305
|
hover: {
|
|
428
|
-
|
|
306
|
+
borderColor: colors.DdsColorDangerDark,
|
|
307
|
+
boxShadow: "0 0 0 1px ".concat(colors.DdsColorDangerDark)
|
|
429
308
|
},
|
|
430
309
|
active: {
|
|
431
|
-
|
|
310
|
+
borderColor: colors.DdsColorDangerDarker,
|
|
311
|
+
boxShadow: "0 0 0 1px ".concat(colors.DdsColorDangerDarker)
|
|
432
312
|
}
|
|
433
313
|
}
|
|
434
314
|
}
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
rounded: {
|
|
318
|
+
base: {
|
|
319
|
+
borderRadius: '100px',
|
|
320
|
+
boxShadow: outerShadow.DdsShadow1Onlight
|
|
435
321
|
},
|
|
436
|
-
|
|
437
|
-
base: roundedBase,
|
|
322
|
+
purpose: {
|
|
438
323
|
primary: {
|
|
439
|
-
base:
|
|
440
|
-
hover:
|
|
441
|
-
|
|
442
|
-
},
|
|
443
|
-
active: {
|
|
444
|
-
base: roundedPrimaryActiveBase
|
|
445
|
-
}
|
|
324
|
+
base: filledButtonColors.primary.base,
|
|
325
|
+
hover: filledButtonColors.primary.hover.base,
|
|
326
|
+
active: filledButtonColors.primary.active.base
|
|
446
327
|
},
|
|
447
328
|
secondary: {
|
|
448
|
-
base:
|
|
449
|
-
hover:
|
|
450
|
-
|
|
451
|
-
},
|
|
452
|
-
active: {
|
|
453
|
-
base: roundedSecondaryActiveBase
|
|
454
|
-
}
|
|
329
|
+
base: filledButtonColors.secondary.base,
|
|
330
|
+
hover: filledButtonColors.secondary.hover.base,
|
|
331
|
+
active: filledButtonColors.secondary.active.base
|
|
455
332
|
},
|
|
456
333
|
danger: {
|
|
457
|
-
base:
|
|
458
|
-
hover:
|
|
459
|
-
|
|
460
|
-
},
|
|
461
|
-
active: {
|
|
462
|
-
base: roundedDangerActiveBase
|
|
463
|
-
}
|
|
334
|
+
base: filledButtonColors.danger.base,
|
|
335
|
+
hover: filledButtonColors.danger.hover.base,
|
|
336
|
+
active: filledButtonColors.danger.active.base
|
|
464
337
|
}
|
|
465
338
|
}
|
|
466
339
|
}
|
|
467
340
|
};
|
|
341
|
+
var button = {
|
|
342
|
+
base: {
|
|
343
|
+
border: "".concat(border.BordersDdsBorderStyleLightStrokeWeight, " solid")
|
|
344
|
+
},
|
|
345
|
+
sizes: sizes,
|
|
346
|
+
appearances: appearances
|
|
347
|
+
};
|
|
348
|
+
var buttonTokens = {
|
|
349
|
+
button: button
|
|
350
|
+
};
|
|
468
351
|
|
|
469
|
-
export { buttonTokens };
|
|
352
|
+
export { buttonTokens, typographyTypes };
|