@openedx/paragon 23.0.0-alpha.2 → 23.0.0-alpha.4
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/bin/paragon-scripts.js +10 -0
- package/dist/Annotation/index.scss +16 -0
- package/dist/Button/index.d.ts +35 -0
- package/dist/Button/index.js +37 -15
- package/dist/Button/index.js.map +1 -1
- package/dist/Card/CardDeck.js +0 -2
- package/dist/Card/CardDeck.js.map +1 -1
- package/dist/Card/index.scss +6 -6
- package/dist/Carousel/index.scss +24 -1
- package/dist/Chip/ChipIcon.d.ts +13 -8
- package/dist/Chip/ChipIcon.js +0 -2
- package/dist/Chip/ChipIcon.js.map +1 -1
- package/dist/Chip/constants.d.ts +4 -0
- package/dist/Chip/constants.js +3 -2
- package/dist/Chip/constants.js.map +1 -0
- package/dist/Chip/index.d.ts +4 -3
- package/dist/Chip/index.js +2 -4
- package/dist/Chip/index.js.map +1 -1
- package/dist/ChipCarousel/index.js +0 -2
- package/dist/ChipCarousel/index.js.map +1 -1
- package/dist/CloseButton/index.scss +8 -0
- package/dist/ColorPicker/index.scss +1 -1
- package/dist/DataTable/index.scss +12 -0
- package/dist/Dropdown/dropdown-bootstrap.scss +6 -0
- package/dist/Dropzone/index.scss +34 -0
- package/dist/Form/_FormText.scss +1 -1
- package/dist/Form/_bootstrap-custom-forms.scss +40 -0
- package/dist/Form/_index.scss +9 -0
- package/dist/Form/_mixins.scss +22 -0
- package/dist/Hyperlink/index.d.ts +24 -0
- package/dist/Hyperlink/index.js +20 -32
- package/dist/Hyperlink/index.js.map +1 -1
- package/dist/Icon/index.d.ts +4 -2
- package/dist/Icon/index.js +1 -1
- package/dist/Icon/index.js.map +1 -1
- package/dist/IconButton/index.d.ts +342 -0
- package/dist/IconButton/index.js +18 -26
- package/dist/IconButton/index.js.map +1 -1
- package/dist/IconButton/index.scss +146 -0
- package/dist/Menu/index.scss +8 -0
- package/dist/Modal/ModalDialog.js +8 -4
- package/dist/Modal/ModalDialog.js.map +1 -1
- package/dist/Modal/ModalPopup.js +7 -1
- package/dist/Modal/ModalPopup.js.map +1 -1
- package/dist/Modal/_ModalDialog.scss +26 -2
- package/dist/Nav/index.scss +8 -0
- package/dist/Overlay/index.d.ts +128 -0
- package/dist/Overlay/index.js +8 -2
- package/dist/Overlay/index.js.map +1 -1
- package/dist/PageBanner/index.scss +2 -2
- package/dist/Pagination/pagination-bootstrap.scss +9 -0
- package/dist/Popover/index.scss +1 -1
- package/dist/ProductTour/Checkpoint.scss +1 -1
- package/dist/ProgressBar/bootstrap-progress.scss +20 -5
- package/dist/ProgressBar/index.scss +3 -3
- package/dist/Stepper/index.scss +1 -1
- package/dist/Sticky/index.scss +12 -0
- package/dist/Toast/index.scss +13 -1
- package/dist/Tooltip/index.d.ts +7 -0
- package/dist/Tooltip/index.js.map +1 -1
- package/dist/Tooltip/index.scss +16 -0
- package/dist/core.css +914 -470
- package/dist/core.css.map +1 -1
- package/dist/core.min.css +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +7 -7
- package/dist/light.css +2035 -1315
- package/dist/light.css.map +1 -1
- package/dist/light.min.css +1 -1
- package/dist/setupTest.d.ts +2 -0
- package/dist/setupTest.js.map +1 -0
- package/dist/utils/types/bootstrap.d.ts +39 -0
- package/dist/utils/types/bootstrap.js +2 -0
- package/dist/utils/types/bootstrap.js.map +1 -0
- package/lib/build-tokens.js +67 -31
- package/package.json +11 -8
- package/src/Annotation/index.scss +16 -0
- package/src/Button/{Button.test.jsx → Button.test.tsx} +14 -2
- package/src/Button/__snapshots__/{Button.test.jsx.snap → Button.test.tsx.snap} +19 -2
- package/src/Button/{index.jsx → index.tsx} +58 -16
- package/src/Card/CardDeck.jsx +0 -3
- package/src/Card/README.md +0 -31
- package/src/Card/index.scss +6 -6
- package/src/Carousel/index.scss +24 -1
- package/src/Chip/{Chip.test.jsx → Chip.test.tsx} +5 -7
- package/src/Chip/ChipIcon.tsx +8 -8
- package/src/Chip/{constants.js → constants.ts} +1 -1
- package/src/Chip/index.tsx +6 -8
- package/src/ChipCarousel/index.tsx +0 -2
- package/src/CloseButton/index.scss +8 -0
- package/src/ColorPicker/index.scss +1 -1
- package/src/DataTable/index.scss +12 -0
- package/src/Dropdown/dropdown-bootstrap.scss +6 -0
- package/src/Dropzone/index.scss +34 -0
- package/src/Form/_FormText.scss +1 -1
- package/src/Form/_bootstrap-custom-forms.scss +40 -0
- package/src/Form/_index.scss +9 -0
- package/src/Form/_mixins.scss +22 -0
- package/src/Hyperlink/{Hyperlink.test.jsx → Hyperlink.test.tsx} +21 -10
- package/src/Hyperlink/{index.jsx → index.tsx} +41 -37
- package/src/Icon/index.d.ts +4 -2
- package/src/Icon/index.jsx +1 -1
- package/src/IconButton/{IconButton.test.jsx → IconButton.test.tsx} +24 -3
- package/src/IconButton/__snapshots__/IconButton.test.tsx.snap +90 -0
- package/src/IconButton/index.scss +146 -0
- package/src/IconButton/{index.jsx → index.tsx} +66 -26
- package/src/Menu/index.scss +8 -0
- package/src/Modal/ModalDialog.jsx +7 -3
- package/src/Modal/ModalPopup.jsx +9 -1
- package/src/Modal/_ModalDialog.scss +26 -2
- package/src/Modal/modal-dialog.mdx +95 -6
- package/src/Modal/tests/ModalDialog.test.jsx +2 -0
- package/src/Modal/tests/ModalPopupNoMock.test.jsx +29 -0
- package/src/Nav/index.scss +8 -0
- package/src/Overlay/{index.jsx → index.tsx} +13 -8
- package/src/PageBanner/index.scss +2 -2
- package/src/Pagination/pagination-bootstrap.scss +9 -0
- package/src/Popover/index.scss +1 -1
- package/src/ProductTour/Checkpoint.scss +1 -1
- package/src/ProgressBar/bootstrap-progress.scss +20 -5
- package/src/ProgressBar/index.scss +3 -3
- package/src/Stepper/index.scss +1 -1
- package/src/Sticky/index.scss +12 -0
- package/src/Toast/index.scss +13 -1
- package/src/Tooltip/index.scss +16 -0
- package/src/Tooltip/{index.jsx → index.tsx} +9 -3
- package/src/index.d.ts +5 -5
- package/src/index.js +7 -7
- package/src/{setupTest.js → setupTest.ts} +1 -0
- package/src/utils/types/bootstrap.test.tsx +86 -0
- package/src/utils/types/bootstrap.ts +43 -0
- package/styles/css/core/abstraction-variables.css +44 -0
- package/styles/css/core/custom-media-breakpoints.css +3 -4
- package/styles/css/core/index.css +2 -1
- package/styles/css/core/variables.css +494 -430
- package/styles/css/themes/light/abstraction-variables.css +304 -0
- package/styles/css/themes/light/index.css +1 -0
- package/styles/css/themes/light/utility-classes.css +2 -3
- package/styles/css/themes/light/variables.css +1753 -1334
- package/styles/scss/core/_typography.scss +16 -4
- package/styles/scss/core/_utilities.scss +7 -3
- package/styles/scss/core/_variables.scss +43 -30
- package/styles/scss/core/core.scss +1 -0
- package/tokens/src/core/alias/size.json +6 -5
- package/tokens/src/core/components/ActionRow.json +3 -2
- package/tokens/src/core/components/Alert.json +12 -10
- package/tokens/src/core/components/Annotation.json +9 -7
- package/tokens/src/core/components/Avatar.json +9 -9
- package/tokens/src/core/components/AvatarButton.json +4 -3
- package/tokens/src/core/components/Badge.json +12 -9
- package/tokens/src/core/components/Breadcrumb.json +7 -5
- package/tokens/src/core/components/Bubble.json +4 -3
- package/tokens/src/core/components/Button/core.json +35 -59
- package/tokens/src/core/components/Card.json +33 -44
- package/tokens/src/core/components/Carousel.json +39 -13
- package/tokens/src/core/components/Chip.json +13 -21
- package/tokens/src/core/components/ChipCarousel.json +4 -5
- package/tokens/src/core/components/CloseButton.json +2 -6
- package/tokens/src/core/components/Code.json +9 -8
- package/tokens/src/core/components/Collapsible.json +10 -13
- package/tokens/src/core/components/ColorPicker.json +3 -2
- package/tokens/src/core/components/Container.json +6 -5
- package/tokens/src/core/components/DataTable.json +17 -9
- package/tokens/src/core/components/Dropdown.json +24 -29
- package/tokens/src/core/components/Dropzone.json +5 -7
- package/tokens/src/core/components/Form/other.json +5 -4
- package/tokens/src/core/components/Form/size.json +72 -119
- package/tokens/src/core/components/Form/spacing.json +39 -83
- package/tokens/src/core/components/Form/transition.json +43 -7
- package/tokens/src/core/components/Form/typography.json +24 -88
- package/tokens/src/core/components/Icon.json +6 -5
- package/tokens/src/core/components/IconButton.json +4 -7
- package/tokens/src/core/components/Image.json +7 -6
- package/tokens/src/core/components/Menu.json +14 -12
- package/tokens/src/core/components/Modal.json +26 -21
- package/tokens/src/core/components/Nav.json +14 -16
- package/tokens/src/core/components/Navbar.json +15 -30
- package/tokens/src/core/components/Pagination.json +23 -24
- package/tokens/src/core/components/Popover.json +18 -14
- package/tokens/src/core/components/ProductTour.json +8 -14
- package/tokens/src/core/components/ProgressBar.json +29 -14
- package/tokens/src/core/components/SearchField.json +7 -9
- package/tokens/src/core/components/SelectableBox.json +4 -3
- package/tokens/src/core/components/Sheet.json +3 -2
- package/tokens/src/core/components/Spinner.json +9 -7
- package/tokens/src/core/components/Stack.json +2 -1
- package/tokens/src/core/components/Stepper.json +12 -14
- package/tokens/src/core/components/Sticky.json +2 -1
- package/tokens/src/core/components/Tab.json +8 -7
- package/tokens/src/core/components/Tabs.json +5 -5
- package/tokens/src/core/components/Toast.json +11 -8
- package/tokens/src/core/components/Tooltip.json +13 -11
- package/tokens/src/core/components/general/caret.json +5 -3
- package/tokens/src/core/components/general/headings.json +5 -4
- package/tokens/src/core/components/general/hr.json +3 -2
- package/tokens/src/core/components/general/input.json +19 -19
- package/tokens/src/core/components/general/link.json +13 -12
- package/tokens/src/core/components/general/list.json +9 -6
- package/tokens/src/core/components/general/text.json +6 -12
- package/tokens/src/core/global/breakpoints.json +25 -6
- package/tokens/src/core/global/elevation.json +55 -13
- package/tokens/src/core/global/other.json +5 -1
- package/tokens/src/core/global/spacing.json +70 -17
- package/tokens/src/core/global/transition.json +41 -4
- package/tokens/src/core/global/typography.json +248 -53
- package/tokens/src/core/utilities/color.json +35 -4
- package/tokens/src/themes/light/alias/color.json +276 -75
- package/tokens/src/themes/light/components/Alert.json +15 -26
- package/tokens/src/themes/light/components/Annotation.json +27 -13
- package/tokens/src/themes/light/components/Avatar.json +2 -1
- package/tokens/src/themes/light/components/Badge.json +57 -122
- package/tokens/src/themes/light/components/Breadcrumb.json +6 -5
- package/tokens/src/themes/light/components/Bubble.json +9 -8
- package/tokens/src/themes/light/components/Button/brand.json +171 -119
- package/tokens/src/themes/light/components/Button/core.json +8 -9
- package/tokens/src/themes/light/components/Button/danger.json +171 -112
- package/tokens/src/themes/light/components/Button/dark.json +188 -106
- package/tokens/src/themes/light/components/Button/info.json +186 -112
- package/tokens/src/themes/light/components/Button/light.json +186 -110
- package/tokens/src/themes/light/components/Button/primary.json +178 -116
- package/tokens/src/themes/light/components/Button/secondary.json +166 -132
- package/tokens/src/themes/light/components/Button/success.json +176 -117
- package/tokens/src/themes/light/components/Button/tertiary.json +34 -60
- package/tokens/src/themes/light/components/Button/warning.json +164 -128
- package/tokens/src/themes/light/components/Card.json +10 -21
- package/tokens/src/themes/light/components/Carousel.json +12 -11
- package/tokens/src/themes/light/components/Chip.json +14 -26
- package/tokens/src/themes/light/components/CloseButton.json +12 -2
- package/tokens/src/themes/light/components/Code.json +7 -9
- package/tokens/src/themes/light/components/DataTable.json +7 -11
- package/tokens/src/themes/light/components/Dropdown.json +17 -20
- package/tokens/src/themes/light/components/Dropzone.json +49 -11
- package/tokens/src/themes/light/components/Form/color.json +101 -155
- package/tokens/src/themes/light/components/Form/elevation.json +38 -42
- package/tokens/src/themes/light/components/Form/other.json +44 -41
- package/tokens/src/themes/light/components/IconButton.json +408 -256
- package/tokens/src/themes/light/components/Image.json +7 -4
- package/tokens/src/themes/light/components/Menu.json +12 -10
- package/tokens/src/themes/light/components/Modal.json +22 -12
- package/tokens/src/themes/light/components/Nav.json +82 -94
- package/tokens/src/themes/light/components/Navbar.json +32 -76
- package/tokens/src/themes/light/components/OverflowScroll.json +3 -1
- package/tokens/src/themes/light/components/PageBanner.json +11 -10
- package/tokens/src/themes/light/components/Pagination.json +19 -23
- package/tokens/src/themes/light/components/Popover.json +22 -27
- package/tokens/src/themes/light/components/ProductTour.json +9 -20
- package/tokens/src/themes/light/components/ProgressBar.json +12 -10
- package/tokens/src/themes/light/components/Scrollable.json +3 -3
- package/tokens/src/themes/light/components/SearchField.json +9 -9
- package/tokens/src/themes/light/components/Sheet.json +6 -7
- package/tokens/src/themes/light/components/Stepper.json +12 -17
- package/tokens/src/themes/light/components/Sticky.json +31 -6
- package/tokens/src/themes/light/components/Tab.json +47 -24
- package/tokens/src/themes/light/components/Toast.json +26 -14
- package/tokens/src/themes/light/components/Tooltip.json +25 -10
- package/tokens/src/themes/light/components/general/body.json +3 -2
- package/tokens/src/themes/light/components/general/headings.json +2 -1
- package/tokens/src/themes/light/components/general/hr.json +3 -6
- package/tokens/src/themes/light/components/general/input.json +11 -4
- package/tokens/src/themes/light/components/general/link.json +34 -43
- package/tokens/src/themes/light/components/general/list.json +15 -19
- package/tokens/src/themes/light/components/general/text.json +5 -6
- package/tokens/src/themes/light/global/color.json +1592 -867
- package/tokens/src/themes/light/global/elevation.json +481 -93
- package/tokens/style-dictionary.js +342 -144
- package/tokens/utils.js +176 -6
- package/src/IconButton/__snapshots__/IconButton.test.jsx.snap +0 -20
- package/tokens/src/core/global/display.json +0 -22
- /package/src/Button/{ButtonGroup.test.jsx → ButtonGroup.test.tsx} +0 -0
- /package/src/Button/{ButtonToolbar.test.jsx → ButtonToolbar.test.tsx} +0 -0
- /package/src/Button/__snapshots__/{ButtonGroup.test.jsx.snap → ButtonGroup.test.tsx.snap} +0 -0
- /package/src/Button/__snapshots__/{ButtonToolbar.test.jsx.snap → ButtonToolbar.test.tsx.snap} +0 -0
- /package/src/Chip/__snapshots__/{Chip.test.jsx.snap → Chip.test.tsx.snap} +0 -0
- /package/src/Tooltip/{Tooltip.test.jsx → Tooltip.test.tsx} +0 -0
|
@@ -1,244 +1,303 @@
|
|
|
1
1
|
{
|
|
2
2
|
"color": {
|
|
3
|
+
"$type": "color",
|
|
3
4
|
"btn": {
|
|
4
5
|
"text": {
|
|
5
6
|
"danger": {
|
|
6
|
-
"value": "{color.btn.bg.danger}",
|
|
7
|
-
"type": "color",
|
|
8
7
|
"source": "$btn-danger-color",
|
|
9
|
-
"modify": [{ "type": "color-yiq" }]
|
|
10
|
-
|
|
11
|
-
"outline-danger": {
|
|
12
|
-
"value": "{color.danger.base}", "type": "color", "source": "$btn-danger-outline-color"
|
|
8
|
+
"modify": [{ "type": "color-yiq" }],
|
|
9
|
+
"$value": "{color.btn.bg.danger}"
|
|
13
10
|
},
|
|
11
|
+
"outline-danger": { "source": "$btn-danger-outline-color", "$value": "{color.danger.base}" },
|
|
14
12
|
"inverse-danger": {
|
|
15
|
-
"
|
|
13
|
+
"source": "$btn-danger-inverse-color",
|
|
14
|
+
"$value": "{color.danger.base}"
|
|
16
15
|
},
|
|
17
16
|
"inverse-outline-danger": {
|
|
18
|
-
"
|
|
17
|
+
"source": "$btn-danger-inverse-outline-color",
|
|
18
|
+
"$value": "{color.white}"
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
"bg": {
|
|
22
|
-
"danger": { "
|
|
23
|
-
"outline-danger": {
|
|
22
|
+
"danger": { "source": "$btn-danger-bg", "$value": "{color.danger.base}" },
|
|
23
|
+
"outline-danger": {
|
|
24
|
+
"source": "$btn-danger-outline-bg",
|
|
25
|
+
"$value": "inherit"
|
|
26
|
+
},
|
|
24
27
|
"inverse-danger": {
|
|
25
|
-
"value": "{color.btn.text.inverse-danger}",
|
|
26
|
-
"type": "color",
|
|
27
28
|
"source": "$btn-danger-inverse-bg",
|
|
28
|
-
"modify": [{ "type": "color-yiq" }]
|
|
29
|
+
"modify": [{ "type": "color-yiq" }],
|
|
30
|
+
"$value": "{color.btn.text.inverse-danger}"
|
|
29
31
|
},
|
|
30
|
-
"inverse-outline-danger": {
|
|
32
|
+
"inverse-outline-danger": {
|
|
33
|
+
"source": "$btn-danger-inverse-outline-bg",
|
|
34
|
+
"$value": "transparent"
|
|
35
|
+
}
|
|
31
36
|
},
|
|
32
37
|
"border": {
|
|
33
|
-
"danger": {
|
|
38
|
+
"danger": {
|
|
39
|
+
"source": "$btn-danger-border-color",
|
|
40
|
+
"$value": "{color.btn.bg.danger}"
|
|
41
|
+
},
|
|
34
42
|
"outline-danger": {
|
|
35
|
-
"
|
|
43
|
+
"source": "$btn-danger-outline-border-color",
|
|
44
|
+
"$value": "{color.danger.base}"
|
|
45
|
+
},
|
|
46
|
+
"inverse-danger": {
|
|
47
|
+
"source": "$btn-danger-inverse-border-color",
|
|
48
|
+
"$value": "transparent"
|
|
36
49
|
},
|
|
37
|
-
"inverse-danger": { "value": "transparent", "type": "color", "source": "$btn-danger-inverse-border-color" },
|
|
38
50
|
"inverse-outline-danger": {
|
|
39
|
-
"
|
|
51
|
+
"source": "$btn-danger-inverse-outline-border-color",
|
|
52
|
+
"$value": "{color.white}"
|
|
40
53
|
}
|
|
41
54
|
},
|
|
42
55
|
"hover": {
|
|
43
56
|
"text": {
|
|
44
57
|
"danger": {
|
|
45
|
-
"value": "{color.btn.hover.bg.danger}",
|
|
46
|
-
"type": "color",
|
|
47
58
|
"source": "$btn-danger-hover-color",
|
|
48
|
-
"modify": [{ "type": "color-yiq" }]
|
|
59
|
+
"modify": [{ "type": "color-yiq" }],
|
|
60
|
+
"$value": "{color.btn.hover.bg.danger}"
|
|
49
61
|
},
|
|
50
62
|
"outline-danger": {
|
|
51
|
-
"
|
|
63
|
+
"source": "$btn-danger-outline-hover-color",
|
|
64
|
+
"$value": "{color.theme.hover.danger}"
|
|
52
65
|
},
|
|
53
66
|
"inverse-danger": {
|
|
54
|
-
"value": "{color.btn.text.inverse-danger}",
|
|
55
|
-
"type": "color",
|
|
56
67
|
"source": "$btn-danger-inverse-hover-color",
|
|
57
|
-
"modify": [{ "type": "darken", "amount": 0.075 }]
|
|
68
|
+
"modify": [{ "type": "darken", "amount": 0.075 }],
|
|
69
|
+
"$value": "{color.btn.text.inverse-danger}"
|
|
58
70
|
},
|
|
59
71
|
"inverse-outline-danger": {
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"source": "$btn-danger-inverse-outline-hover-color"
|
|
72
|
+
"source": "$btn-danger-inverse-outline-hover-color",
|
|
73
|
+
"$value": "{color.theme.hover.danger}"
|
|
63
74
|
}
|
|
64
75
|
},
|
|
65
76
|
"bg": {
|
|
66
|
-
"danger": {
|
|
77
|
+
"danger": {
|
|
78
|
+
"source": "$btn-danger-hover-bg",
|
|
79
|
+
"$value": "{color.theme.hover.danger}"
|
|
80
|
+
},
|
|
67
81
|
"outline-danger": {
|
|
68
|
-
"
|
|
82
|
+
"source": "$btn-danger-outline-hover-bg",
|
|
83
|
+
"$value": "{color.danger.100}"
|
|
69
84
|
},
|
|
70
85
|
"inverse-danger": {
|
|
71
|
-
"value": "{color.btn.bg.inverse-danger}",
|
|
72
|
-
"type": "color",
|
|
73
86
|
"source": "$btn-danger-inverse-hover-bg",
|
|
74
|
-
"modify": [{ "type": "darken", "amount": 0.075 }]
|
|
87
|
+
"modify": [{ "type": "darken", "amount": 0.075 }],
|
|
88
|
+
"$value": "{color.btn.bg.inverse-danger}"
|
|
75
89
|
},
|
|
76
90
|
"inverse-outline-danger": {
|
|
77
|
-
"
|
|
91
|
+
"source": "$btn-danger-inverse-outline-hover-bg",
|
|
92
|
+
"$value": "{color.danger.100}"
|
|
78
93
|
}
|
|
79
94
|
},
|
|
80
95
|
"border": {
|
|
81
96
|
"danger": {
|
|
82
|
-
"
|
|
97
|
+
"source": "$btn-danger-hover-border-color",
|
|
98
|
+
"$value": "{color.theme.hover.danger}"
|
|
83
99
|
},
|
|
84
100
|
"outline-danger": {
|
|
85
|
-
"
|
|
101
|
+
"source": "$btn-danger-outline-hover-border-color",
|
|
102
|
+
"$value": "{color.danger.900}"
|
|
103
|
+
},
|
|
104
|
+
"inverse-danger": {
|
|
105
|
+
"source": "$btn-danger-inverse-hover-border-color",
|
|
106
|
+
"$value": "transparent"
|
|
86
107
|
},
|
|
87
|
-
"inverse-danger": { "value": "transparent", "type": "color", "source": "$btn-danger-inverse-hover-border-color" },
|
|
88
108
|
"inverse-outline-danger": {
|
|
89
|
-
"
|
|
109
|
+
"source": "$btn-danger-inverse-outline-hover-border-color",
|
|
110
|
+
"$value": "transparent"
|
|
90
111
|
}
|
|
91
112
|
}
|
|
92
113
|
},
|
|
93
114
|
"active": {
|
|
94
115
|
"text": {
|
|
95
116
|
"danger": {
|
|
96
|
-
"value": "{color.btn.active.bg.danger}",
|
|
97
|
-
"type": "color",
|
|
98
117
|
"source": "$btn-danger-active-color",
|
|
99
|
-
"modify": [{ "type": "color-yiq" }]
|
|
118
|
+
"modify": [{ "type": "color-yiq" }],
|
|
119
|
+
"$value": "{color.btn.active.bg.danger}"
|
|
100
120
|
},
|
|
101
121
|
"outline-danger": {
|
|
102
|
-
"value": "{color.btn.active.bg.outline-danger}",
|
|
103
|
-
"type": "color",
|
|
104
122
|
"source": "$btn-danger-outline-active-color",
|
|
105
|
-
"modify": [{ "type": "color-yiq" }]
|
|
123
|
+
"modify": [{ "type": "color-yiq" }],
|
|
124
|
+
"$value": "{color.btn.active.bg.outline-danger}"
|
|
106
125
|
},
|
|
107
126
|
"inverse-danger": {
|
|
108
|
-
"value": "{color.btn.text.inverse-danger}",
|
|
109
|
-
"type": "color",
|
|
110
127
|
"source": "$btn-danger-inverse-active-color",
|
|
111
|
-
"modify": [{ "type": "darken", "amount": 0.1 }]
|
|
128
|
+
"modify": [{ "type": "darken", "amount": 0.1 }],
|
|
129
|
+
"$value": "{color.btn.text.inverse-danger}"
|
|
112
130
|
},
|
|
113
131
|
"inverse-outline-danger": {
|
|
114
|
-
"value": "{color.btn.active.bg.inverse-outline-danger}",
|
|
115
|
-
"type": "color",
|
|
116
132
|
"source": "$btn-danger-inverse-outline-active-color",
|
|
117
|
-
"modify": [{ "type": "color-yiq" }]
|
|
133
|
+
"modify": [{ "type": "color-yiq" }],
|
|
134
|
+
"$value": "{color.btn.active.bg.inverse-outline-danger}"
|
|
135
|
+
}
|
|
118
136
|
},
|
|
119
137
|
"bg": {
|
|
120
138
|
"danger": {
|
|
121
|
-
"
|
|
139
|
+
"source": "$btn-danger-active-bg",
|
|
140
|
+
"$value": "{color.theme.active.danger}"
|
|
122
141
|
},
|
|
123
142
|
"outline-danger": {
|
|
124
|
-
"
|
|
143
|
+
"source": "$btn-danger-outline-active-bg",
|
|
144
|
+
"$value": "{color.theme.bg.danger}"
|
|
145
|
+
},
|
|
146
|
+
"inverse-danger": {
|
|
147
|
+
"source": "$btn-danger-inverse-active-bg",
|
|
148
|
+
"$value": "{color.gray.100}"
|
|
125
149
|
},
|
|
126
|
-
"inverse-danger": { "value": "{color.gray.100}", "type": "color", "source": "$btn-danger-inverse-active-bg" },
|
|
127
150
|
"inverse-outline-danger": {
|
|
128
|
-
"
|
|
151
|
+
"source": "$btn-danger-inverse-outline-active-bg",
|
|
152
|
+
"$value": "{color.theme.bg.danger}"
|
|
129
153
|
}
|
|
130
154
|
},
|
|
131
155
|
"border": {
|
|
132
156
|
"danger": {
|
|
133
|
-
"
|
|
157
|
+
"source": "$btn-danger-active-border-color",
|
|
158
|
+
"$value": "{color.theme.active.danger}"
|
|
134
159
|
},
|
|
135
160
|
"outline-danger": {
|
|
136
|
-
"
|
|
137
|
-
"
|
|
138
|
-
|
|
161
|
+
"source": "$btn-danger-outline-active-border-color",
|
|
162
|
+
"$value": "{color.theme.active.danger}"
|
|
163
|
+
},
|
|
164
|
+
"inverse-danger": {
|
|
165
|
+
"source": "$btn-danger-inverse-active-border-color",
|
|
166
|
+
"$value": "transparent"
|
|
139
167
|
},
|
|
140
|
-
"inverse-danger": { "value": "transparent", "type": "color", "source": "$btn-danger-inverse-active-border-color" },
|
|
141
168
|
"inverse-outline-danger": {
|
|
142
|
-
"
|
|
169
|
+
"source": "$btn-danger-inverse-outline-active-border-color",
|
|
170
|
+
"$value": "transparent"
|
|
171
|
+
}
|
|
143
172
|
}
|
|
144
173
|
},
|
|
145
174
|
"focus": {
|
|
146
175
|
"text": {
|
|
147
|
-
"danger": {
|
|
176
|
+
"danger": {
|
|
177
|
+
"source": "$btn-danger-focus-color",
|
|
178
|
+
"$value": "{color.btn.text.danger}"
|
|
179
|
+
},
|
|
148
180
|
"inverse-danger": {
|
|
149
|
-
"
|
|
150
|
-
"
|
|
151
|
-
"source": "$btn-danger-inverse-focus-color"
|
|
181
|
+
"source": "$btn-danger-inverse-focus-color",
|
|
182
|
+
"$value": "{color.btn.text.inverse-danger}"
|
|
152
183
|
},
|
|
153
184
|
"outline-danger": {
|
|
154
|
-
"
|
|
155
|
-
"
|
|
156
|
-
"source": "$btn-danger-outline-focus-color"
|
|
185
|
+
"source": "$btn-danger-outline-focus-color",
|
|
186
|
+
"$value": "{color.btn.text.outline-danger}"
|
|
157
187
|
},
|
|
158
188
|
"inverse-outline-danger": {
|
|
159
|
-
"
|
|
160
|
-
"
|
|
161
|
-
"source": "$btn-danger-inverse-outline-focus-color"
|
|
189
|
+
"source": "$btn-danger-inverse-outline-focus-color",
|
|
190
|
+
"$value": "{color.btn.text.inverse-outline-danger}"
|
|
162
191
|
}
|
|
163
192
|
},
|
|
164
193
|
"border": {
|
|
165
194
|
"danger": {
|
|
166
|
-
"
|
|
195
|
+
"source": "$btn-danger-focus-border-color",
|
|
196
|
+
"$value": "{color.btn.focus.bg.danger}"
|
|
167
197
|
},
|
|
168
198
|
"outline-danger": {
|
|
169
|
-
"
|
|
170
|
-
"
|
|
171
|
-
"source": "$btn-danger-outline-focus-border-color"
|
|
199
|
+
"source": "$btn-danger-outline-focus-border-color",
|
|
200
|
+
"$value": "{color.btn.border.outline-danger}"
|
|
172
201
|
},
|
|
173
202
|
"inverse-danger": {
|
|
174
|
-
"
|
|
203
|
+
"source": "$btn-danger-inverse-focus-border-color",
|
|
204
|
+
"$value": "{color.white}"
|
|
175
205
|
},
|
|
176
206
|
"inverse-outline-danger": {
|
|
177
|
-
"
|
|
207
|
+
"source": "$btn-danger-inverse-outline-focus-border-color",
|
|
208
|
+
"$value": "{color.white}"
|
|
178
209
|
}
|
|
179
210
|
},
|
|
180
211
|
"bg": {
|
|
181
|
-
"danger": {
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
212
|
+
"danger": {
|
|
213
|
+
"source": "$btn-danger-focus-bg",
|
|
214
|
+
"$value": "{color.btn.bg.danger}"
|
|
215
|
+
},
|
|
216
|
+
"outline-danger": {
|
|
217
|
+
"source": "$btn-danger-outline-focus-bg",
|
|
218
|
+
"$value": "inherit"
|
|
219
|
+
},
|
|
220
|
+
"inverse-danger": {
|
|
221
|
+
"source": "$btn-danger-inverse-focus-bg",
|
|
222
|
+
"$value": "{color.btn.bg.inverse-danger}"
|
|
223
|
+
},
|
|
224
|
+
"inverse-outline-danger": {
|
|
225
|
+
"source": "$btn-danger-inverse-outline-focus-bg",
|
|
226
|
+
"$value": "inherit"
|
|
227
|
+
}
|
|
185
228
|
},
|
|
186
229
|
"outline": {
|
|
187
|
-
"danger": {
|
|
230
|
+
"danger": {
|
|
231
|
+
"source": "$btn-danger-focus-outline-color",
|
|
232
|
+
"$value": "{color.theme.focus.danger}"
|
|
233
|
+
},
|
|
188
234
|
"outline-danger": {
|
|
189
|
-
"
|
|
190
|
-
"
|
|
191
|
-
"source": "$btn-danger-outline-focus-outline-color"
|
|
235
|
+
"source": "$btn-danger-outline-focus-outline-color",
|
|
236
|
+
"$value": "{color.theme.focus.danger}"
|
|
192
237
|
},
|
|
193
238
|
"inverse-danger": {
|
|
194
|
-
"
|
|
195
|
-
"
|
|
196
|
-
"source": "$btn-danger-inverse-focus-outline-color"
|
|
239
|
+
"source": "$btn-danger-inverse-focus-outline-color",
|
|
240
|
+
"$value": "{color.btn.focus.border.inverse-danger}"
|
|
197
241
|
},
|
|
198
242
|
"inverse-outline-danger": {
|
|
199
|
-
"
|
|
200
|
-
"
|
|
201
|
-
"source": "$btn-danger-inverse-outline-focus-outline-color"
|
|
243
|
+
"source": "$btn-danger-inverse-outline-focus-outline-color",
|
|
244
|
+
"$value": "{color.btn.focus.border.inverse-danger}"
|
|
202
245
|
}
|
|
203
246
|
}
|
|
204
247
|
},
|
|
205
248
|
"disabled": {
|
|
206
249
|
"text": {
|
|
207
|
-
"danger": {
|
|
250
|
+
"danger": {
|
|
251
|
+
"source": "$btn-danger-disabled-color",
|
|
252
|
+
"$value": "{color.btn.text.danger}"
|
|
253
|
+
},
|
|
208
254
|
"outline-danger": {
|
|
209
|
-
"
|
|
210
|
-
"
|
|
211
|
-
|
|
255
|
+
"source": "$btn-danger-outline-disabled-color",
|
|
256
|
+
"$value": "{color.btn.hover.text.outline-danger}"
|
|
257
|
+
},
|
|
258
|
+
"inverse-danger": {
|
|
259
|
+
"source": "$btn-danger-inverse-disabled-color",
|
|
260
|
+
"$value": "{color.danger.base}"
|
|
212
261
|
},
|
|
213
|
-
"inverse-danger": { "value": "{color.danger.base}", "type": "color", "source": "$btn-danger-inverse-disabled-color" },
|
|
214
262
|
"inverse-outline-danger": {
|
|
215
|
-
"
|
|
216
|
-
"
|
|
217
|
-
"source": "$btn-danger-inverse-outline-disabled-color"
|
|
263
|
+
"source": "$btn-danger-inverse-outline-disabled-color",
|
|
264
|
+
"$value": "{color.btn.text.inverse-outline-danger}"
|
|
218
265
|
}
|
|
219
266
|
},
|
|
220
267
|
"bg": {
|
|
221
|
-
"danger": {
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
268
|
+
"danger": {
|
|
269
|
+
"source": "$btn-danger-disabled-bg",
|
|
270
|
+
"$value": "{color.btn.bg.danger}"
|
|
271
|
+
},
|
|
272
|
+
"outline-danger": {
|
|
273
|
+
"source": "$btn-danger-outline-disabled-bg",
|
|
274
|
+
"$value": "inherit"
|
|
275
|
+
},
|
|
276
|
+
"inverse-danger": {
|
|
277
|
+
"source": "$btn-danger-inverse-disabled-bg",
|
|
278
|
+
"$value": "transparent"
|
|
279
|
+
},
|
|
280
|
+
"inverse-outline-danger": {
|
|
281
|
+
"source": "$btn-danger-inverse-outline-disabled-bg",
|
|
282
|
+
"$value": "inherit"
|
|
283
|
+
}
|
|
225
284
|
},
|
|
226
285
|
"border": {
|
|
227
|
-
"danger": {
|
|
286
|
+
"danger": {
|
|
287
|
+
"source": "$btn-danger-disabled-border-color",
|
|
288
|
+
"$value": "{color.btn.border.danger}"
|
|
289
|
+
},
|
|
228
290
|
"outline-danger": {
|
|
229
|
-
"
|
|
230
|
-
"
|
|
231
|
-
"source": "$btn-danger-outline-disabled-border-color"
|
|
291
|
+
"source": "$btn-danger-outline-disabled-border-color",
|
|
292
|
+
"$value": "{color.btn.border.outline-danger}"
|
|
232
293
|
},
|
|
233
294
|
"inverse-danger": {
|
|
234
|
-
"
|
|
235
|
-
"
|
|
236
|
-
"source": "$btn-danger-inverse-disabled-border-color"
|
|
295
|
+
"source": "$btn-danger-inverse-disabled-border-color",
|
|
296
|
+
"$value": "transparent"
|
|
237
297
|
},
|
|
238
298
|
"inverse-outline-danger": {
|
|
239
|
-
"
|
|
240
|
-
"
|
|
241
|
-
"source": "$btn-danger-inverse-outline-disabled-border-color"
|
|
299
|
+
"source": "$btn-danger-inverse-outline-disabled-border-color",
|
|
300
|
+
"$value": "{color.btn.border.inverse-outline-danger}"
|
|
242
301
|
}
|
|
243
302
|
}
|
|
244
303
|
}
|