@openedx/paragon 23.0.0-alpha.3 → 23.0.0-alpha.5
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/Card/CardDeck.js +0 -2
- package/dist/Card/CardDeck.js.map +1 -1
- package/dist/Card/index.scss +8 -6
- package/dist/Carousel/index.scss +24 -1
- package/dist/Chip/ChipIcon.d.ts +1 -1
- package/dist/CloseButton/index.scss +8 -0
- package/dist/ColorPicker/index.scss +1 -1
- package/dist/Container/index.d.ts +16 -0
- package/dist/Container/index.js +15 -13
- package/dist/Container/index.js.map +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/IconButton/index.d.ts +1 -1
- package/dist/IconButton/index.js +1 -1
- package/dist/IconButton/index.js.map +1 -1
- package/dist/IconButton/index.scss +146 -0
- package/dist/Menu/SelectMenu.js +9 -4
- package/dist/Menu/SelectMenu.js.map +1 -1
- package/dist/Menu/index.scss +8 -0
- package/dist/Modal/ModalContext.d.ts +15 -0
- package/dist/Modal/ModalContext.js +7 -14
- package/dist/Modal/ModalContext.js.map +1 -1
- package/dist/Modal/ModalDialog.d.ts +110 -0
- package/dist/Modal/ModalDialog.js +30 -24
- package/dist/Modal/ModalDialog.js.map +1 -1
- package/dist/Modal/ModalDialogHeader.d.ts +10 -0
- package/dist/Modal/ModalDialogHeader.js +6 -7
- package/dist/Modal/ModalDialogHeader.js.map +1 -1
- package/dist/Modal/ModalLayer.d.ts +53 -0
- package/dist/Modal/ModalLayer.js +5 -14
- package/dist/Modal/ModalLayer.js.map +1 -1
- package/dist/Modal/Portal.d.ts +11 -0
- package/dist/Modal/Portal.js +5 -6
- package/dist/Modal/Portal.js.map +1 -1
- package/dist/Modal/_ModalDialog.scss +22 -2
- package/dist/Nav/index.scss +8 -0
- package/dist/Overlay/index.d.ts +2 -2
- 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.scss +16 -0
- package/dist/core.css +913 -470
- package/dist/core.css.map +1 -1
- package/dist/core.min.css +1 -1
- package/dist/hooks/useArrowKeyNavigation.js +2 -3
- package/dist/hooks/useArrowKeyNavigation.js.map +1 -1
- package/dist/index.d.ts +19 -5
- package/dist/index.js +5 -5
- package/dist/light.css +2035 -1315
- package/dist/light.css.map +1 -1
- package/dist/light.min.css +1 -1
- package/icons/es5/Newsstand.js +15 -0
- package/icons/es5/index.js +1 -0
- package/icons/es5/index.ts +1 -0
- package/icons/jsx/Newsstand.jsx +17 -0
- package/icons/jsx/index.jsx +1 -0
- package/icons/svg/newsstand.svg +1 -0
- package/lib/build-tokens.js +67 -31
- package/package.json +8 -5
- package/src/Annotation/index.scss +16 -0
- package/src/Card/CardDeck.jsx +0 -3
- package/src/Card/README.md +0 -31
- package/src/Card/index.scss +8 -6
- package/src/Carousel/index.scss +24 -1
- package/src/CloseButton/index.scss +8 -0
- package/src/ColorPicker/index.scss +1 -1
- package/src/Container/{Container.test.jsx → Container.test.tsx} +14 -8
- package/src/Container/README.md +4 -0
- package/src/Container/index.tsx +64 -0
- package/src/DataTable/index.scss +12 -0
- package/src/DataTable/selection/tests/ControlledSelectHeader.test.jsx +7 -7
- 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/IconButton/index.scss +146 -0
- package/src/IconButton/index.tsx +1 -1
- package/src/Menu/SelectMenu.jsx +5 -0
- package/src/Menu/SelectMenu.test.jsx +6 -0
- package/src/Menu/index.scss +8 -0
- package/src/Menu/select-menu.md +8 -0
- package/src/Modal/{ModalContext.jsx → ModalContext.tsx} +19 -16
- package/src/Modal/{ModalDialog.jsx → ModalDialog.tsx} +57 -26
- package/src/Modal/{ModalDialogHeader.jsx → ModalDialogHeader.tsx} +17 -11
- package/src/Modal/{ModalLayer.jsx → ModalLayer.tsx} +17 -17
- package/src/Modal/{Portal.jsx → Portal.tsx} +10 -7
- package/src/Modal/_ModalDialog.scss +22 -2
- package/src/Modal/modal-dialog.mdx +95 -6
- package/src/Modal/tests/{ModalDialog.test.jsx → ModalDialog.test.tsx} +18 -10
- package/src/Modal/tests/{ModalLayer.test.jsx → ModalLayer.test.tsx} +5 -5
- package/src/Modal/tests/{Portal.test.jsx → Portal.test.tsx} +3 -3
- package/src/Nav/index.scss +8 -0
- 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/hooks/useArrowKeyNavigation.jsx +1 -2
- package/src/index.d.ts +19 -5
- package/src/index.js +5 -5
- 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/Container/index.jsx +0 -49
- package/tokens/src/core/global/display.json +0 -22
- /package/src/Truncate/{Truncate.test.js → utils.test.js} +0 -0
|
@@ -1,257 +1,309 @@
|
|
|
1
1
|
{
|
|
2
2
|
"color": {
|
|
3
|
+
"$type": "color",
|
|
3
4
|
"btn": {
|
|
4
5
|
"text": {
|
|
5
6
|
"brand": {
|
|
6
|
-
"value": "{color.btn.bg.brand}",
|
|
7
|
-
"type": "color",
|
|
8
7
|
"source": "$btn-brand-color",
|
|
9
|
-
"modify": [{ "type": "color-yiq" }]
|
|
8
|
+
"modify": [{ "type": "color-yiq" }],
|
|
9
|
+
"$value": "{color.btn.bg.brand}"
|
|
10
|
+
},
|
|
11
|
+
"outline-brand": {
|
|
12
|
+
"source": "$btn-brand-outline-color",
|
|
13
|
+
"$value": "{color.brand.base}"
|
|
14
|
+
},
|
|
15
|
+
"inverse-brand": {
|
|
16
|
+
"source": "$btn-brand-inverse-color",
|
|
17
|
+
"$value": "{color.brand.base}"
|
|
10
18
|
},
|
|
11
|
-
"outline-brand": { "value": "{color.brand.base}", "type": "color", "source": "$btn-brand-outline-color" },
|
|
12
|
-
"inverse-brand": { "value": "{color.brand.base}", "type": "color", "source": "$btn-brand-inverse-color" },
|
|
13
19
|
"inverse-outline-brand": {
|
|
14
|
-
"
|
|
20
|
+
"source": "$btn-brand-inverse-outline-color",
|
|
21
|
+
"$value": "{color.white}"
|
|
15
22
|
}
|
|
16
23
|
},
|
|
17
24
|
"bg": {
|
|
18
|
-
"brand": {
|
|
19
|
-
|
|
25
|
+
"brand": {
|
|
26
|
+
"source": "$btn-brand-bg",
|
|
27
|
+
"$value": "{color.brand.base}"
|
|
28
|
+
},
|
|
29
|
+
"outline-brand": {
|
|
30
|
+
"source": "$btn-brand-outline-bg",
|
|
31
|
+
"$value": "inherit"
|
|
32
|
+
},
|
|
20
33
|
"inverse-brand": {
|
|
21
|
-
"value": "{color.btn.text.inverse-brand}",
|
|
22
|
-
"type": "color",
|
|
23
34
|
"source": "$btn-brand-inverse-bg",
|
|
24
|
-
"modify": [{ "type": "color-yiq" }]
|
|
35
|
+
"modify": [{ "type": "color-yiq" }],
|
|
36
|
+
"$value": "{color.btn.text.inverse-brand}"
|
|
25
37
|
},
|
|
26
38
|
"inverse-outline-brand": {
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"source": "$btn-brand-inverse-outline-bg"
|
|
39
|
+
"source": "$btn-brand-inverse-outline-bg",
|
|
40
|
+
"$value": "transparent"
|
|
30
41
|
}
|
|
31
42
|
},
|
|
32
43
|
"border": {
|
|
33
|
-
"brand": {
|
|
44
|
+
"brand": {
|
|
45
|
+
"source": "$btn-brand-border-color",
|
|
46
|
+
"$value": "{color.btn.bg.brand}"
|
|
47
|
+
},
|
|
34
48
|
"outline-brand": {
|
|
35
|
-
"
|
|
49
|
+
"source": "$btn-brand-outline-border-color",
|
|
50
|
+
"$value": "{color.brand.base}"
|
|
36
51
|
},
|
|
37
52
|
"inverse-outline-brand": {
|
|
38
|
-
"
|
|
53
|
+
"source": "$btn-brand-inverse-outline-border-color",
|
|
54
|
+
"$value": "{color.white}"
|
|
39
55
|
},
|
|
40
|
-
"inverse-brand": {
|
|
56
|
+
"inverse-brand": {
|
|
57
|
+
"source": "$btn-brand-inverse-border-color",
|
|
58
|
+
"$value": "transparent"
|
|
59
|
+
}
|
|
41
60
|
},
|
|
42
61
|
"hover": {
|
|
43
62
|
"text": {
|
|
44
63
|
"brand": {
|
|
45
|
-
"value": "{color.btn.hover.bg.brand}",
|
|
46
|
-
"type": "color",
|
|
47
64
|
"source": "$btn-brand-hover-color",
|
|
48
|
-
"modify": [{ "type": "color-yiq" }]
|
|
65
|
+
"modify": [{ "type": "color-yiq" }],
|
|
66
|
+
"$value": "{color.btn.hover.bg.brand}"
|
|
49
67
|
},
|
|
50
68
|
"outline-brand": {
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"source": "$btn-brand-outline-hover-color"
|
|
69
|
+
"source": "$btn-brand-outline-hover-color",
|
|
70
|
+
"$value": "{color.theme.hover.brand}"
|
|
54
71
|
},
|
|
55
72
|
"inverse-brand": {
|
|
56
|
-
"value": "{color.btn.text.inverse-brand}",
|
|
57
|
-
"type": "color",
|
|
58
73
|
"source": "$btn-brand-inverse-hover-color",
|
|
59
|
-
"modify": [{ "type": "darken", "amount": 0.075 }]
|
|
74
|
+
"modify": [{ "type": "darken", "amount": 0.075 }],
|
|
75
|
+
"$value": "{color.btn.text.inverse-brand}"
|
|
60
76
|
},
|
|
61
77
|
"inverse-outline-brand": {
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"source": "$btn-brand-inverse-outline-hover-color"
|
|
78
|
+
"source": "$btn-brand-inverse-outline-hover-color",
|
|
79
|
+
"$value": "{color.theme.hover.brand}"
|
|
65
80
|
}
|
|
66
81
|
},
|
|
67
82
|
"bg": {
|
|
68
|
-
"brand": {
|
|
69
|
-
|
|
83
|
+
"brand": {
|
|
84
|
+
"source": "$btn-brand-hover-bg",
|
|
85
|
+
"$value": "{color.theme.hover.brand}"
|
|
86
|
+
},
|
|
87
|
+
"outline-brand": {
|
|
88
|
+
"source": "$btn-brand-outline-hover-bg",
|
|
89
|
+
"$value": "{color.brand.100}"
|
|
90
|
+
},
|
|
70
91
|
"inverse-brand": {
|
|
71
|
-
"value": "{color.btn.bg.inverse-brand}",
|
|
72
|
-
"type": "color",
|
|
73
92
|
"source": "$btn-brand-inverse-hover-bg",
|
|
74
|
-
"modify": [{ "type": "darken", "amount": 0.075 }]
|
|
93
|
+
"modify": [{ "type": "darken", "amount": 0.075 }],
|
|
94
|
+
"$value": "{color.btn.bg.inverse-brand}"
|
|
75
95
|
},
|
|
76
96
|
"inverse-outline-brand": {
|
|
77
|
-
"
|
|
97
|
+
"source": "$btn-brand-inverse-outline-hover-bg",
|
|
98
|
+
"$value": "{color.brand.100}"
|
|
78
99
|
}
|
|
79
100
|
},
|
|
80
101
|
"border": {
|
|
81
102
|
"brand": {
|
|
82
|
-
"
|
|
103
|
+
"source": "$btn-brand-hover-border-color",
|
|
104
|
+
"$value": "{color.theme.hover.brand}"
|
|
83
105
|
},
|
|
84
106
|
"outline-brand": {
|
|
85
|
-
"
|
|
107
|
+
"source": "$btn-brand-outline-hover-border-color",
|
|
108
|
+
"$value": "{color.brand.900}"
|
|
86
109
|
},
|
|
87
110
|
"inverse-outline-brand": {
|
|
88
|
-
"
|
|
111
|
+
"source": "$btn-brand-inverse-outline-hover-border-color",
|
|
112
|
+
"$value": "transparent"
|
|
89
113
|
},
|
|
90
|
-
"inverse-brand": {
|
|
114
|
+
"inverse-brand": {
|
|
115
|
+
"source": "$btn-brand-inverse-hover-border-color",
|
|
116
|
+
"$value": "transparent"
|
|
117
|
+
}
|
|
91
118
|
}
|
|
92
119
|
},
|
|
93
120
|
"active": {
|
|
94
121
|
"text": {
|
|
95
122
|
"brand": {
|
|
96
|
-
"value": "{color.btn.active.bg.brand}",
|
|
97
|
-
"type": "color",
|
|
98
123
|
"source": "$btn-brand-active-color",
|
|
99
|
-
"modify": [{ "type": "color-yiq" }]
|
|
124
|
+
"modify": [{ "type": "color-yiq" }],
|
|
125
|
+
"$value": "{color.btn.active.bg.brand}"
|
|
100
126
|
},
|
|
101
127
|
"outline-brand": {
|
|
102
|
-
"value": "{color.btn.active.bg.outline-brand}",
|
|
103
|
-
"type": "color",
|
|
104
128
|
"source": "$btn-brand-outline-active-color",
|
|
105
|
-
"modify": [{ "type": "color-yiq" }]
|
|
129
|
+
"modify": [{ "type": "color-yiq" }],
|
|
130
|
+
"$value": "{color.btn.active.bg.outline-brand}"
|
|
106
131
|
},
|
|
107
132
|
"inverse-brand": {
|
|
108
|
-
"value": "{color.btn.text.inverse-brand}",
|
|
109
|
-
"type": "color",
|
|
110
133
|
"source": "$btn-brand-inverse-active-color",
|
|
111
|
-
"modify": [{ "type": "darken", "amount": 0.1 }]
|
|
134
|
+
"modify": [{ "type": "darken", "amount": 0.1 }],
|
|
135
|
+
"$value": "{color.btn.text.inverse-brand}"
|
|
112
136
|
},
|
|
113
137
|
"inverse-outline-brand": {
|
|
114
|
-
"value": "{color.btn.active.bg.inverse-outline-brand}",
|
|
115
|
-
"type": "color",
|
|
116
138
|
"source": "$btn-brand-inverse-outline-active-color",
|
|
117
|
-
"modify": [{ "type": "color-yiq" }]
|
|
139
|
+
"modify": [{ "type": "color-yiq" }],
|
|
140
|
+
"$value": "{color.btn.active.bg.inverse-outline-brand}"
|
|
141
|
+
}
|
|
118
142
|
},
|
|
119
143
|
"bg": {
|
|
120
144
|
"brand": {
|
|
121
|
-
"
|
|
145
|
+
"source": "$btn-brand-active-bg",
|
|
146
|
+
"$value": "{color.theme.active.brand}"
|
|
122
147
|
},
|
|
123
148
|
"outline-brand": {
|
|
124
|
-
"
|
|
149
|
+
"source": "$btn-brand-outline-active-bg",
|
|
150
|
+
"$value": "{color.theme.bg.brand}"
|
|
125
151
|
},
|
|
126
152
|
"inverse-outline-brand": {
|
|
127
|
-
"
|
|
153
|
+
"source": "$btn-brand-inverse-outline-active-bg",
|
|
154
|
+
"$value": "{color.theme.bg.brand}"
|
|
128
155
|
},
|
|
129
|
-
"inverse-brand": {
|
|
156
|
+
"inverse-brand": {
|
|
157
|
+
"source": "$btn-brand-inverse-active-bg",
|
|
158
|
+
"$value": "{color.gray.100}"
|
|
159
|
+
}
|
|
130
160
|
},
|
|
131
161
|
"border": {
|
|
132
162
|
"brand": {
|
|
133
|
-
"
|
|
163
|
+
"source": "$btn-brand-active-border-color",
|
|
164
|
+
"$value": "{color.theme.active.brand}"
|
|
134
165
|
},
|
|
135
166
|
"outline-brand": {
|
|
136
|
-
"
|
|
137
|
-
"
|
|
138
|
-
"source": "$btn-brand-outline-active-border-color"
|
|
167
|
+
"source": "$btn-brand-outline-active-border-color",
|
|
168
|
+
"$value": "{color.theme.active.brand}"
|
|
139
169
|
},
|
|
140
170
|
"inverse-brand": {
|
|
141
|
-
"
|
|
142
|
-
"
|
|
143
|
-
"source": "$btn-brand-inverse-active-border-color"
|
|
171
|
+
"source": "$btn-brand-inverse-active-border-color",
|
|
172
|
+
"$value": "transparent"
|
|
144
173
|
},
|
|
145
174
|
"inverse-outline-brand": {
|
|
146
|
-
"
|
|
175
|
+
"source": "$btn-brand-inverse-outline-active-border-color",
|
|
176
|
+
"$value": "transparent"
|
|
147
177
|
}
|
|
148
178
|
}
|
|
149
179
|
},
|
|
150
180
|
"focus": {
|
|
151
181
|
"text": {
|
|
152
|
-
"brand": {
|
|
182
|
+
"brand": {
|
|
183
|
+
"source": "$btn-brand-focus-color",
|
|
184
|
+
"$value": "{color.btn.text.brand}"
|
|
185
|
+
},
|
|
153
186
|
"inverse-brand": {
|
|
154
|
-
"
|
|
155
|
-
"
|
|
156
|
-
"source": "$btn-brand-inverse-focus-color"
|
|
187
|
+
"source": "$btn-brand-inverse-focus-color",
|
|
188
|
+
"$value": "{color.btn.text.inverse-brand}"
|
|
157
189
|
},
|
|
158
190
|
"outline-brand": {
|
|
159
|
-
"
|
|
160
|
-
"
|
|
161
|
-
"source": "$btn-brand-outline-focus-color"
|
|
191
|
+
"source": "$btn-brand-outline-focus-color",
|
|
192
|
+
"$value": "{color.btn.text.outline-brand}"
|
|
162
193
|
},
|
|
163
194
|
"inverse-outline-brand": {
|
|
164
|
-
"
|
|
165
|
-
"
|
|
166
|
-
"source": "$btn-brand-inverse-outline-focus-color"
|
|
195
|
+
"source": "$btn-brand-inverse-outline-focus-color",
|
|
196
|
+
"$value": "{color.btn.text.inverse-outline-brand}"
|
|
167
197
|
}
|
|
168
198
|
},
|
|
169
199
|
"border": {
|
|
170
200
|
"brand": {
|
|
171
|
-
"
|
|
201
|
+
"source": "$btn-brand-focus-border-color",
|
|
202
|
+
"$value": "{color.btn.border.brand}"
|
|
172
203
|
},
|
|
173
204
|
"outline-brand": {
|
|
174
|
-
"
|
|
175
|
-
"
|
|
176
|
-
"source": "$btn-brand-outline-focus-border-color"
|
|
205
|
+
"source": "$btn-brand-outline-focus-border-color",
|
|
206
|
+
"$value": "{color.btn.border.outline-brand}"
|
|
177
207
|
},
|
|
178
208
|
"inverse-brand": {
|
|
179
|
-
"
|
|
209
|
+
"source": "$btn-brand-inverse-focus-border-color",
|
|
210
|
+
"$value": "{color.white}"
|
|
180
211
|
},
|
|
181
212
|
"inverse-outline-brand": {
|
|
182
|
-
"
|
|
213
|
+
"source": "$btn-brand-inverse-outline-focus-border-color",
|
|
214
|
+
"$value": "{color.btn.border.inverse-outline-brand}"
|
|
183
215
|
}
|
|
184
216
|
},
|
|
185
217
|
"bg": {
|
|
186
|
-
"brand": {
|
|
218
|
+
"brand": {
|
|
219
|
+
"source": "$btn-brand-focus-bg",
|
|
220
|
+
"$value": "{color.btn.bg.brand}"
|
|
221
|
+
},
|
|
187
222
|
"inverse-brand": {
|
|
188
|
-
"value": "{color.btn.bg.inverse-brand}",
|
|
189
223
|
"source": "$btn-brand-inverse-focus-bg",
|
|
190
|
-
"
|
|
224
|
+
"$value": "{color.btn.bg.inverse-brand}"
|
|
191
225
|
},
|
|
192
|
-
"outline-brand": {
|
|
193
|
-
|
|
226
|
+
"outline-brand": {
|
|
227
|
+
"source": "$btn-brand-outline-focus-bg",
|
|
228
|
+
"$value": "inherit"
|
|
229
|
+
},
|
|
230
|
+
"inverse-outline-brand": {
|
|
231
|
+
"source": "$btn-brand-inverse-outline-focus-bg",
|
|
232
|
+
"$value": "inherit"
|
|
233
|
+
}
|
|
194
234
|
},
|
|
195
235
|
"outline": {
|
|
196
|
-
"brand": {
|
|
236
|
+
"brand": {
|
|
237
|
+
"source": "$btn-brand-focus-outline-color",
|
|
238
|
+
"$value": "{color.theme.focus.brand}"
|
|
239
|
+
},
|
|
197
240
|
"outline-brand": {
|
|
198
|
-
"
|
|
199
|
-
"
|
|
200
|
-
"source": "$btn-brand-outline-focus-outline-color"
|
|
241
|
+
"source": "$btn-brand-outline-focus-outline-color",
|
|
242
|
+
"$value": "{color.theme.focus.brand}"
|
|
201
243
|
},
|
|
202
244
|
"inverse-brand": {
|
|
203
|
-
"
|
|
204
|
-
"
|
|
205
|
-
"source": "$btn-brand-inverse-focus-outline-color"
|
|
245
|
+
"source": "$btn-brand-inverse-focus-outline-color",
|
|
246
|
+
"$value": "{color.btn.focus.border.inverse-brand}"
|
|
206
247
|
},
|
|
207
248
|
"inverse-outline-brand": {
|
|
208
|
-
"
|
|
209
|
-
"
|
|
210
|
-
"source": "$btn-brand-inverse-outline-focus-outline-color"
|
|
249
|
+
"source": "$btn-brand-inverse-outline-focus-outline-color",
|
|
250
|
+
"$value": "{color.btn.focus.border.inverse-outline-brand}"
|
|
211
251
|
}
|
|
212
252
|
}
|
|
213
253
|
},
|
|
214
254
|
"disabled": {
|
|
215
255
|
"text": {
|
|
216
|
-
"brand": {
|
|
217
|
-
|
|
256
|
+
"brand": {
|
|
257
|
+
"source": "$btn-brand-disabled-color",
|
|
258
|
+
"$value": "{color.btn.text.brand}"
|
|
259
|
+
},
|
|
260
|
+
"inverse-brand": {
|
|
261
|
+
"source": "$btn-brand-inverse-disabled-color",
|
|
262
|
+
"$value": "{color.brand.500}"
|
|
263
|
+
},
|
|
218
264
|
"outline-brand": {
|
|
219
|
-
"
|
|
220
|
-
"
|
|
221
|
-
"source": "$btn-brand-outline-disabled-color"
|
|
265
|
+
"source": "$btn-brand-outline-disabled-color",
|
|
266
|
+
"$value": "{color.btn.hover.text.outline-brand}"
|
|
222
267
|
},
|
|
223
268
|
"inverse-outline-brand": {
|
|
224
|
-
"
|
|
225
|
-
"
|
|
226
|
-
"source": "$btn-brand-inverse-outline-disabled-color"
|
|
269
|
+
"source": "$btn-brand-inverse-outline-disabled-color",
|
|
270
|
+
"$value": "{color.btn.text.inverse-outline-brand}"
|
|
227
271
|
}
|
|
228
272
|
},
|
|
229
273
|
"bg": {
|
|
230
|
-
"brand": {
|
|
231
|
-
|
|
232
|
-
|
|
274
|
+
"brand": {
|
|
275
|
+
"source": "$btn-brand-disabled-bg",
|
|
276
|
+
"$value": "{color.btn.bg.brand}"
|
|
277
|
+
},
|
|
278
|
+
"outline-brand": {
|
|
279
|
+
"source": "$btn-brand-outline-disabled-bg",
|
|
280
|
+
"$value": "inherit"
|
|
281
|
+
},
|
|
282
|
+
"inverse-brand": {
|
|
283
|
+
"source": "$btn-brand-inverse-disabled-bg",
|
|
284
|
+
"$value": "{color.white}"
|
|
285
|
+
},
|
|
233
286
|
"inverse-outline-brand": {
|
|
234
|
-
"
|
|
235
|
-
"
|
|
236
|
-
"source": "$btn-brand-inverse-outline-disabled-bg"
|
|
287
|
+
"source": "$btn-brand-inverse-outline-disabled-bg",
|
|
288
|
+
"$value": "{color.btn.bg.inverse-outline-brand}"
|
|
237
289
|
}
|
|
238
290
|
},
|
|
239
291
|
"border": {
|
|
240
|
-
"brand": {
|
|
292
|
+
"brand": {
|
|
293
|
+
"source": "$btn-brand-disabled-border-color",
|
|
294
|
+
"$value": "{color.btn.border.brand}"
|
|
295
|
+
},
|
|
241
296
|
"outline-brand": {
|
|
242
|
-
"
|
|
243
|
-
"
|
|
244
|
-
"source": "$btn-brand-outline-disabled-border-color"
|
|
297
|
+
"source": "$btn-brand-outline-disabled-border-color",
|
|
298
|
+
"$value": "{color.btn.border.outline-brand}"
|
|
245
299
|
},
|
|
246
300
|
"inverse-brand": {
|
|
247
|
-
"
|
|
248
|
-
"
|
|
249
|
-
"source": "$btn-brand-inverse-disabled-border-color"
|
|
301
|
+
"source": "$btn-brand-inverse-disabled-border-color",
|
|
302
|
+
"$value": "{color.btn.disabled.bg.inverse-brand}"
|
|
250
303
|
},
|
|
251
304
|
"inverse-outline-brand": {
|
|
252
|
-
"
|
|
253
|
-
"
|
|
254
|
-
"source": "$btn-brand-inverse-outline-disabled-border-color"
|
|
305
|
+
"source": "$btn-brand-inverse-outline-disabled-border-color",
|
|
306
|
+
"$value": "{color.btn.text.inverse-outline-brand}"
|
|
255
307
|
}
|
|
256
308
|
}
|
|
257
309
|
}
|
|
@@ -1,24 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"color": {
|
|
3
|
+
"$type": "color",
|
|
3
4
|
"btn": {
|
|
4
|
-
"disabled-link": { "
|
|
5
|
+
"disabled-link": { "source": "$btn-link-disabled-color", "$value": "{color.disabled}" }
|
|
5
6
|
}
|
|
6
7
|
},
|
|
7
|
-
"elevation":
|
|
8
|
+
"elevation": {
|
|
9
|
+
"$type": "shadow",
|
|
8
10
|
"btn": {
|
|
9
11
|
"box-shadow": {
|
|
10
|
-
"base": {
|
|
11
|
-
|
|
12
|
-
"type": "shadow",
|
|
13
|
-
"source": "$btn-box-shadow"
|
|
14
|
-
},
|
|
15
|
-
"active": { "value": "none", "type": "shadow", "source": "$btn-active-box-shadow" }
|
|
12
|
+
"base": { "source": "$btn-box-shadow", "$value": "none" },
|
|
13
|
+
"active": { "source": "$btn-active-box-shadow", "$value": "none" }
|
|
16
14
|
}
|
|
17
15
|
}
|
|
18
16
|
},
|
|
19
17
|
"other": {
|
|
18
|
+
"$type": "number",
|
|
20
19
|
"btn": {
|
|
21
|
-
"disabled-opacity": { "
|
|
20
|
+
"disabled-opacity": { "source": "$btn-disabled-opacity", "$value": ".65" }
|
|
22
21
|
}
|
|
23
22
|
}
|
|
24
23
|
}
|