@redis-ui/styles 21.5.0 → 21.7.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/dist/index.js +3875 -3570
- package/dist/index.umd.cjs +13 -13
- package/dist/themes/themeDark/theme/components/charts.js +48 -0
- package/dist/themes/themeDarkNext/theme/components/actionIconButton.js +13 -11
- package/dist/themes/themeDarkNext/theme/components/appBar.js +12 -12
- package/dist/themes/themeDarkNext/theme/components/appSelectionMenu.js +8 -8
- package/dist/themes/themeDarkNext/theme/components/badge.js +36 -35
- package/dist/themes/themeDarkNext/theme/components/boxSelectionGroup.js +20 -19
- package/dist/themes/themeDarkNext/theme/components/breadcrumbs.js +6 -6
- package/dist/themes/themeDarkNext/theme/components/button.js +35 -33
- package/dist/themes/themeDarkNext/theme/components/buttonGroup.js +17 -17
- package/dist/themes/themeDarkNext/theme/components/card.js +13 -12
- package/dist/themes/themeDarkNext/theme/components/charts.js +57 -6
- package/dist/themes/themeDarkNext/theme/components/checkbox.js +26 -22
- package/dist/themes/themeDarkNext/theme/components/chip.js +10 -10
- package/dist/themes/themeDarkNext/theme/components/chipList.js +3 -3
- package/dist/themes/themeDarkNext/theme/components/drawer.js +8 -8
- package/dist/themes/themeDarkNext/theme/components/filters.js +4 -4
- package/dist/themes/themeDarkNext/theme/components/formField.js +2 -2
- package/dist/themes/themeDarkNext/theme/components/gauge.js +9 -9
- package/dist/themes/themeDarkNext/theme/components/highlightedIcon.js +15 -14
- package/dist/themes/themeDarkNext/theme/components/icon.js +7 -7
- package/dist/themes/themeDarkNext/theme/components/iconButton.js +6 -6
- package/dist/themes/themeDarkNext/theme/components/input.js +16 -16
- package/dist/themes/themeDarkNext/theme/components/keyValueList.js +4 -4
- package/dist/themes/themeDarkNext/theme/components/label.js +5 -5
- package/dist/themes/themeDarkNext/theme/components/layouts.js +1 -1
- package/dist/themes/themeDarkNext/theme/components/link.js +9 -9
- package/dist/themes/themeDarkNext/theme/components/loader.js +9 -9
- package/dist/themes/themeDarkNext/theme/components/menu.js +13 -13
- package/dist/themes/themeDarkNext/theme/components/modal.js +9 -9
- package/dist/themes/themeDarkNext/theme/components/moreInfoIcon.js +1 -1
- package/dist/themes/themeDarkNext/theme/components/popover.js +2 -2
- package/dist/themes/themeDarkNext/theme/components/popupCard.js +3 -3
- package/dist/themes/themeDarkNext/theme/components/progressBar.js +9 -9
- package/dist/themes/themeDarkNext/theme/components/radio.js +10 -10
- package/dist/themes/themeDarkNext/theme/components/searchBar.js +3 -3
- package/dist/themes/themeDarkNext/theme/components/section.js +9 -9
- package/dist/themes/themeDarkNext/theme/components/select.js +17 -17
- package/dist/themes/themeDarkNext/theme/components/semanticButton.js +21 -21
- package/dist/themes/themeDarkNext/theme/components/semanticContainer.js +16 -15
- package/dist/themes/themeDarkNext/theme/components/semanticIcon.js +5 -5
- package/dist/themes/themeDarkNext/theme/components/sideBar.js +20 -19
- package/dist/themes/themeDarkNext/theme/components/skeleton.js +6 -6
- package/dist/themes/themeDarkNext/theme/components/slider.js +12 -12
- package/dist/themes/themeDarkNext/theme/components/stepper.js +10 -10
- package/dist/themes/themeDarkNext/theme/components/switch.js +18 -18
- package/dist/themes/themeDarkNext/theme/components/table.js +9 -9
- package/dist/themes/themeDarkNext/theme/components/tableHeading.js +2 -2
- package/dist/themes/themeDarkNext/theme/components/tabs.js +13 -13
- package/dist/themes/themeDarkNext/theme/components/textButton.js +30 -29
- package/dist/themes/themeDarkNext/theme/components/themeModeSwitch.js +3 -3
- package/dist/themes/themeDarkNext/theme/components/toggleButton.js +17 -14
- package/dist/themes/themeDarkNext/theme/components/tooltip.js +7 -7
- package/dist/themes/themeDarkNext/theme/components/treeView.js +2 -2
- package/dist/themes/themeDarkNext/theme/components/typography.js +7 -7
- package/dist/themes/themeDarkNext/theme/components/windowBar.js +28 -27
- package/dist/themes/themeDarkNext/theme/globals/body.js +2 -2
- package/dist/themes/themeDarkNext/theme/globals/scrollbar.js +2 -2
- package/dist/themes/themeDarkNext/tokens.js +3 -3
- package/dist/themes/themeLight/theme/components/charts.js +48 -0
- package/dist/themes/themeLightNext/theme/components/actionIconButton.js +12 -10
- package/dist/themes/themeLightNext/theme/components/appBar.js +8 -8
- package/dist/themes/themeLightNext/theme/components/appSelectionMenu.js +4 -4
- package/dist/themes/themeLightNext/theme/components/badge.js +30 -29
- package/dist/themes/themeLightNext/theme/components/boxSelectionGroup.js +16 -15
- package/dist/themes/themeLightNext/theme/components/breadcrumbs.js +2 -2
- package/dist/themes/themeLightNext/theme/components/button.js +43 -41
- package/dist/themes/themeLightNext/theme/components/buttonGroup.js +14 -14
- package/dist/themes/themeLightNext/theme/components/card.js +10 -9
- package/dist/themes/themeLightNext/theme/components/charts.js +60 -9
- package/dist/themes/themeLightNext/theme/components/checkbox.js +21 -17
- package/dist/themes/themeLightNext/theme/components/chip.js +8 -8
- package/dist/themes/themeLightNext/theme/components/chipList.js +3 -3
- package/dist/themes/themeLightNext/theme/components/countryFlag.js +1 -1
- package/dist/themes/themeLightNext/theme/components/drawer.js +7 -7
- package/dist/themes/themeLightNext/theme/components/filters.js +2 -2
- package/dist/themes/themeLightNext/theme/components/formField.js +2 -2
- package/dist/themes/themeLightNext/theme/components/gauge.js +8 -8
- package/dist/themes/themeLightNext/theme/components/highlightedIcon.js +13 -12
- package/dist/themes/themeLightNext/theme/components/icon.js +6 -6
- package/dist/themes/themeLightNext/theme/components/iconButton.js +4 -4
- package/dist/themes/themeLightNext/theme/components/input.js +11 -11
- package/dist/themes/themeLightNext/theme/components/keyValueList.js +4 -4
- package/dist/themes/themeLightNext/theme/components/label.js +3 -3
- package/dist/themes/themeLightNext/theme/components/layouts.js +1 -1
- package/dist/themes/themeLightNext/theme/components/link.js +10 -10
- package/dist/themes/themeLightNext/theme/components/loader.js +9 -9
- package/dist/themes/themeLightNext/theme/components/menu.js +13 -13
- package/dist/themes/themeLightNext/theme/components/modal.js +7 -7
- package/dist/themes/themeLightNext/theme/components/moreInfoIcon.js +1 -1
- package/dist/themes/themeLightNext/theme/components/popover.js +2 -2
- package/dist/themes/themeLightNext/theme/components/popupCard.js +3 -3
- package/dist/themes/themeLightNext/theme/components/progressBar.js +8 -8
- package/dist/themes/themeLightNext/theme/components/radio.js +10 -10
- package/dist/themes/themeLightNext/theme/components/searchBar.js +3 -3
- package/dist/themes/themeLightNext/theme/components/section.js +7 -7
- package/dist/themes/themeLightNext/theme/components/select.js +15 -15
- package/dist/themes/themeLightNext/theme/components/semanticButton.js +25 -25
- package/dist/themes/themeLightNext/theme/components/semanticContainer.js +13 -12
- package/dist/themes/themeLightNext/theme/components/semanticIcon.js +5 -5
- package/dist/themes/themeLightNext/theme/components/sideBar.js +20 -19
- package/dist/themes/themeLightNext/theme/components/skeleton.js +6 -6
- package/dist/themes/themeLightNext/theme/components/slider.js +8 -8
- package/dist/themes/themeLightNext/theme/components/stepper.js +9 -9
- package/dist/themes/themeLightNext/theme/components/switch.js +18 -18
- package/dist/themes/themeLightNext/theme/components/table.js +6 -6
- package/dist/themes/themeLightNext/theme/components/tableHeading.js +2 -2
- package/dist/themes/themeLightNext/theme/components/tabs.js +10 -10
- package/dist/themes/themeLightNext/theme/components/textButton.js +26 -26
- package/dist/themes/themeLightNext/theme/components/themeModeSwitch.js +3 -3
- package/dist/themes/themeLightNext/theme/components/toggleButton.js +12 -9
- package/dist/themes/themeLightNext/theme/components/tooltip.js +6 -6
- package/dist/themes/themeLightNext/theme/components/treeView.js +2 -2
- package/dist/themes/themeLightNext/theme/components/typography.js +6 -6
- package/dist/themes/themeLightNext/theme/components/windowBar.js +28 -27
- package/dist/themes/themeLightNext/theme/globals/body.js +1 -1
- package/dist/themes/themeLightNext/theme/globals/scrollbar.js +2 -2
- package/dist/themes/themeLightNext/tokens.js +3 -3
- package/dist/themes/types/theme/components/charts.types.d.ts +55 -0
- package/package.json +1 -1
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { tokens } from '../../tokens';
|
|
2
|
+
import { withOpacity } from '../../../../utils';
|
|
3
|
+
const destructiveBorder = withOpacity(tokens.semantic.color.background.primary400, 0.55);
|
|
2
4
|
const theme = {
|
|
3
5
|
gap: '0.2rem',
|
|
4
6
|
sizes: {
|
|
@@ -29,63 +31,63 @@ const theme = {
|
|
|
29
31
|
textColor: tokens.semantic.color.text.secondary0
|
|
30
32
|
},
|
|
31
33
|
hover: {
|
|
32
|
-
bgColor: tokens.semantic.color.background.
|
|
33
|
-
borderColor: tokens.semantic.color.border.
|
|
34
|
+
bgColor: tokens.semantic.color.background.primary700,
|
|
35
|
+
borderColor: tokens.semantic.color.border.primary700,
|
|
34
36
|
textColor: tokens.semantic.color.text.secondary0
|
|
35
37
|
},
|
|
36
38
|
active: {
|
|
37
|
-
bgColor: tokens.semantic.color.background.
|
|
39
|
+
bgColor: tokens.semantic.color.background.primary800,
|
|
38
40
|
borderColor: tokens.semantic.color.border.primary800,
|
|
39
41
|
textColor: tokens.semantic.color.text.secondary0
|
|
40
42
|
},
|
|
41
43
|
disabled: {
|
|
42
|
-
bgColor: tokens.semantic.color.background.
|
|
43
|
-
borderColor: tokens.semantic.color.border.
|
|
44
|
-
textColor: tokens.semantic.color.text.
|
|
44
|
+
bgColor: tokens.semantic.color.background.secondary200,
|
|
45
|
+
borderColor: tokens.semantic.color.border.secondary200,
|
|
46
|
+
textColor: tokens.semantic.color.text.secondary500
|
|
45
47
|
}
|
|
46
48
|
},
|
|
47
49
|
destructive: {
|
|
48
50
|
normal: {
|
|
49
|
-
bgColor: tokens.semantic.color.background.
|
|
50
|
-
borderColor:
|
|
51
|
-
textColor: tokens.semantic.color.text.
|
|
51
|
+
bgColor: tokens.semantic.color.background.secondary0,
|
|
52
|
+
borderColor: destructiveBorder,
|
|
53
|
+
textColor: tokens.semantic.color.text.danger500
|
|
52
54
|
},
|
|
53
55
|
hover: {
|
|
54
|
-
bgColor: tokens.semantic.color.background.
|
|
55
|
-
borderColor:
|
|
56
|
-
textColor: tokens.semantic.color.text.
|
|
56
|
+
bgColor: tokens.semantic.color.background.secondary100,
|
|
57
|
+
borderColor: destructiveBorder,
|
|
58
|
+
textColor: tokens.semantic.color.text.danger500
|
|
57
59
|
},
|
|
58
60
|
active: {
|
|
59
|
-
bgColor: tokens.semantic.color.background.
|
|
60
|
-
borderColor:
|
|
61
|
-
textColor: tokens.semantic.color.text.
|
|
61
|
+
bgColor: tokens.semantic.color.background.secondary200,
|
|
62
|
+
borderColor: destructiveBorder,
|
|
63
|
+
textColor: tokens.semantic.color.text.danger500
|
|
62
64
|
},
|
|
63
65
|
disabled: {
|
|
64
|
-
bgColor: tokens.semantic.color.background.
|
|
65
|
-
borderColor: tokens.semantic.color.border.
|
|
66
|
-
textColor: tokens.semantic.color.text.
|
|
66
|
+
bgColor: tokens.semantic.color.background.secondary200,
|
|
67
|
+
borderColor: tokens.semantic.color.border.secondary200,
|
|
68
|
+
textColor: tokens.semantic.color.text.secondary500
|
|
67
69
|
}
|
|
68
70
|
},
|
|
69
71
|
'secondary-fill': {
|
|
70
72
|
normal: {
|
|
71
|
-
bgColor: tokens.semantic.color.background.
|
|
73
|
+
bgColor: tokens.semantic.color.background.secondary0,
|
|
72
74
|
borderColor: tokens.semantic.color.border.secondary300,
|
|
73
75
|
textColor: tokens.semantic.color.text.secondary950
|
|
74
76
|
},
|
|
75
77
|
hover: {
|
|
76
|
-
bgColor: tokens.semantic.color.background.
|
|
77
|
-
borderColor: tokens.semantic.color.border.
|
|
78
|
+
bgColor: tokens.semantic.color.background.secondary100,
|
|
79
|
+
borderColor: tokens.semantic.color.border.secondary400,
|
|
78
80
|
textColor: tokens.semantic.color.text.secondary950
|
|
79
81
|
},
|
|
80
82
|
active: {
|
|
81
|
-
bgColor: tokens.semantic.color.background.
|
|
83
|
+
bgColor: tokens.semantic.color.background.secondary200,
|
|
82
84
|
borderColor: tokens.semantic.color.border.secondary400,
|
|
83
85
|
textColor: tokens.semantic.color.text.secondary950
|
|
84
86
|
},
|
|
85
87
|
disabled: {
|
|
86
|
-
bgColor: tokens.semantic.color.background.
|
|
87
|
-
borderColor: tokens.semantic.color.border.
|
|
88
|
-
textColor: tokens.semantic.color.text.
|
|
88
|
+
bgColor: tokens.semantic.color.background.secondary200,
|
|
89
|
+
borderColor: tokens.semantic.color.border.secondary200,
|
|
90
|
+
textColor: tokens.semantic.color.text.secondary500
|
|
89
91
|
}
|
|
90
92
|
},
|
|
91
93
|
'secondary-invert': {
|
|
@@ -105,9 +107,9 @@ const theme = {
|
|
|
105
107
|
textColor: tokens.semantic.color.text.primary600
|
|
106
108
|
},
|
|
107
109
|
disabled: {
|
|
108
|
-
bgColor: tokens.semantic.color.background.
|
|
109
|
-
borderColor: tokens.semantic.color.border.
|
|
110
|
-
textColor: tokens.semantic.color.text.
|
|
110
|
+
bgColor: tokens.semantic.color.background.secondary200,
|
|
111
|
+
borderColor: tokens.semantic.color.border.secondary200,
|
|
112
|
+
textColor: tokens.semantic.color.text.secondary500
|
|
111
113
|
}
|
|
112
114
|
},
|
|
113
115
|
'secondary-ghost': {
|
|
@@ -128,8 +130,8 @@ const theme = {
|
|
|
128
130
|
},
|
|
129
131
|
disabled: {
|
|
130
132
|
bgColor: 'transparent',
|
|
131
|
-
borderColor: tokens.semantic.color.border.
|
|
132
|
-
textColor: tokens.semantic.color.text.
|
|
133
|
+
borderColor: tokens.semantic.color.border.secondary200,
|
|
134
|
+
textColor: tokens.semantic.color.text.secondary500
|
|
133
135
|
}
|
|
134
136
|
},
|
|
135
137
|
upsell: {
|
|
@@ -148,9 +150,9 @@ const theme = {
|
|
|
148
150
|
},
|
|
149
151
|
disabled: {
|
|
150
152
|
bgGradient: 'unset',
|
|
151
|
-
bgColor: tokens.semantic.color.background.
|
|
152
|
-
borderColor: tokens.semantic.color.border.
|
|
153
|
-
textColor: tokens.semantic.color.text.
|
|
153
|
+
bgColor: tokens.semantic.color.background.secondary200,
|
|
154
|
+
borderColor: tokens.semantic.color.border.secondary200,
|
|
155
|
+
textColor: tokens.semantic.color.text.secondary500
|
|
154
156
|
}
|
|
155
157
|
},
|
|
156
158
|
'upsell-invert': {
|
|
@@ -170,9 +172,9 @@ const theme = {
|
|
|
170
172
|
textColor: tokens.semantic.color.text.discovery800
|
|
171
173
|
},
|
|
172
174
|
disabled: {
|
|
173
|
-
bgColor: tokens.semantic.color.background.
|
|
174
|
-
borderColor: tokens.semantic.color.border.
|
|
175
|
-
textColor: tokens.semantic.color.text.
|
|
175
|
+
bgColor: tokens.semantic.color.background.secondary200,
|
|
176
|
+
borderColor: tokens.semantic.color.border.secondary200,
|
|
177
|
+
textColor: tokens.semantic.color.text.secondary500
|
|
176
178
|
}
|
|
177
179
|
},
|
|
178
180
|
'upsell-ghost': {
|
|
@@ -193,8 +195,8 @@ const theme = {
|
|
|
193
195
|
},
|
|
194
196
|
disabled: {
|
|
195
197
|
bgColor: 'transparent',
|
|
196
|
-
borderColor: tokens.semantic.color.border.
|
|
197
|
-
textColor: tokens.semantic.color.text.
|
|
198
|
+
borderColor: tokens.semantic.color.border.secondary200,
|
|
199
|
+
textColor: tokens.semantic.color.text.secondary500
|
|
198
200
|
}
|
|
199
201
|
},
|
|
200
202
|
notice: {
|
|
@@ -213,9 +215,9 @@ const theme = {
|
|
|
213
215
|
},
|
|
214
216
|
disabled: {
|
|
215
217
|
bgGradient: 'unset',
|
|
216
|
-
bgColor: tokens.semantic.color.background.
|
|
217
|
-
borderColor: tokens.semantic.color.border.
|
|
218
|
-
textColor: tokens.semantic.color.text.
|
|
218
|
+
bgColor: tokens.semantic.color.background.secondary200,
|
|
219
|
+
borderColor: tokens.semantic.color.border.secondary200,
|
|
220
|
+
textColor: tokens.semantic.color.text.secondary500
|
|
219
221
|
}
|
|
220
222
|
}
|
|
221
223
|
}
|
|
@@ -2,7 +2,7 @@ import { tokens } from '../../tokens';
|
|
|
2
2
|
const theme = {
|
|
3
3
|
borderRadius: '0.5rem',
|
|
4
4
|
border: `1px solid ${tokens.semantic.color.border.transparent}`,
|
|
5
|
-
bgColor: tokens.semantic.color.background.
|
|
5
|
+
bgColor: tokens.semantic.color.background.secondary50,
|
|
6
6
|
fontSize: '1.4rem',
|
|
7
7
|
fontWeight: tokens.core.font.fontWeight.normal,
|
|
8
8
|
fontStyle: 'normal',
|
|
@@ -19,43 +19,43 @@ const theme = {
|
|
|
19
19
|
normal: {
|
|
20
20
|
bgColor: tokens.semantic.color.background.secondary0,
|
|
21
21
|
textColor: tokens.semantic.color.text.secondary950,
|
|
22
|
-
borderColor: tokens.semantic.color.border.
|
|
22
|
+
borderColor: tokens.semantic.color.border.secondary200
|
|
23
23
|
},
|
|
24
24
|
hover: {
|
|
25
|
-
bgColor: tokens.semantic.color.background.
|
|
25
|
+
bgColor: tokens.semantic.color.background.secondary0,
|
|
26
26
|
textColor: tokens.semantic.color.text.secondary950,
|
|
27
|
-
borderColor: tokens.semantic.color.border.
|
|
27
|
+
borderColor: tokens.semantic.color.border.secondary200
|
|
28
28
|
},
|
|
29
29
|
active: {
|
|
30
30
|
bgColor: tokens.semantic.color.background.secondary0,
|
|
31
31
|
textColor: tokens.semantic.color.text.secondary950,
|
|
32
|
-
borderColor: tokens.semantic.color.border.
|
|
32
|
+
borderColor: tokens.semantic.color.border.secondary200
|
|
33
33
|
},
|
|
34
34
|
disabled: {
|
|
35
|
-
bgColor: tokens.semantic.color.background.
|
|
36
|
-
textColor: tokens.semantic.color.text.
|
|
37
|
-
borderColor: tokens.semantic.color.border.
|
|
35
|
+
bgColor: tokens.semantic.color.background.secondary0,
|
|
36
|
+
textColor: tokens.semantic.color.text.secondary500,
|
|
37
|
+
borderColor: tokens.semantic.color.border.secondary200
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
off: {
|
|
41
41
|
normal: {
|
|
42
|
-
bgColor:
|
|
43
|
-
textColor: tokens.semantic.color.text.
|
|
42
|
+
bgColor: 'transparent',
|
|
43
|
+
textColor: tokens.semantic.color.text.secondary500,
|
|
44
44
|
borderColor: 'transparent'
|
|
45
45
|
},
|
|
46
46
|
hover: {
|
|
47
|
-
bgColor:
|
|
47
|
+
bgColor: 'transparent',
|
|
48
48
|
textColor: tokens.semantic.color.text.secondary950,
|
|
49
49
|
borderColor: 'transparent'
|
|
50
50
|
},
|
|
51
51
|
active: {
|
|
52
|
-
bgColor:
|
|
52
|
+
bgColor: 'transparent',
|
|
53
53
|
textColor: tokens.semantic.color.text.secondary950,
|
|
54
54
|
borderColor: 'transparent'
|
|
55
55
|
},
|
|
56
56
|
disabled: {
|
|
57
|
-
bgColor:
|
|
58
|
-
textColor: tokens.semantic.color.text.
|
|
57
|
+
bgColor: 'transparent',
|
|
58
|
+
textColor: tokens.semantic.color.text.secondary500,
|
|
59
59
|
borderColor: 'transparent'
|
|
60
60
|
}
|
|
61
61
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { withOpacity } from '../../../../utils';
|
|
1
2
|
import { tokens } from '../../tokens';
|
|
2
3
|
const theme = {
|
|
3
4
|
width: '100%',
|
|
@@ -8,28 +9,28 @@ const theme = {
|
|
|
8
9
|
borderColor: tokens.semantic.color.border.secondary200
|
|
9
10
|
},
|
|
10
11
|
secondary: {
|
|
11
|
-
bgColor: tokens.semantic.color.background.
|
|
12
|
-
borderColor: tokens.semantic.color.border.
|
|
12
|
+
bgColor: tokens.semantic.color.background.secondary0,
|
|
13
|
+
borderColor: tokens.semantic.color.border.secondary200
|
|
13
14
|
},
|
|
14
15
|
informative: {
|
|
15
16
|
bgColor: tokens.semantic.color.background.informative0,
|
|
16
|
-
borderColor: tokens.semantic.color.border.
|
|
17
|
+
borderColor: withOpacity(tokens.semantic.color.border.informative300, 0.24)
|
|
17
18
|
},
|
|
18
19
|
success: {
|
|
19
20
|
bgColor: tokens.semantic.color.background.success0,
|
|
20
|
-
borderColor: tokens.semantic.color.border.
|
|
21
|
+
borderColor: withOpacity(tokens.semantic.color.border.success500, 0.24)
|
|
21
22
|
},
|
|
22
23
|
notice: {
|
|
23
24
|
bgColor: tokens.semantic.color.background.notice0,
|
|
24
|
-
borderColor: tokens.semantic.color.border.
|
|
25
|
+
borderColor: withOpacity(tokens.semantic.color.border.notice400, 0.24)
|
|
25
26
|
},
|
|
26
27
|
attention: {
|
|
27
|
-
bgColor: tokens.semantic.color.background.
|
|
28
|
-
borderColor: tokens.semantic.color.border.
|
|
28
|
+
bgColor: tokens.semantic.color.background.notice0,
|
|
29
|
+
borderColor: withOpacity(tokens.semantic.color.border.notice400, 0.24)
|
|
29
30
|
},
|
|
30
31
|
danger: {
|
|
31
|
-
bgColor: tokens.semantic.color.background.
|
|
32
|
-
borderColor: tokens.semantic.color.border.
|
|
32
|
+
bgColor: tokens.semantic.color.background.primary0,
|
|
33
|
+
borderColor: withOpacity(tokens.semantic.color.border.primary400, 0.24)
|
|
33
34
|
},
|
|
34
35
|
upsell: {
|
|
35
36
|
bgColor: tokens.semantic.color.background.discovery0,
|
|
@@ -1,20 +1,71 @@
|
|
|
1
1
|
import { tokens } from '../../tokens';
|
|
2
2
|
const theme = {
|
|
3
3
|
categorical: [
|
|
4
|
-
tokens.semantic.color.icon.
|
|
4
|
+
tokens.semantic.color.icon.informative600,
|
|
5
|
+
tokens.semantic.color.icon.success600,
|
|
6
|
+
tokens.semantic.color.icon.attention600,
|
|
5
7
|
tokens.semantic.color.icon.discovery400,
|
|
6
|
-
tokens.semantic.color.icon.
|
|
7
|
-
tokens.semantic.color.icon.
|
|
8
|
-
tokens.semantic.color.icon.
|
|
9
|
-
tokens.semantic.color.icon.
|
|
10
|
-
tokens.semantic.color.icon.informative700,
|
|
11
|
-
tokens.semantic.color.icon.discovery700
|
|
8
|
+
tokens.semantic.color.icon.primary500,
|
|
9
|
+
tokens.semantic.color.icon.secondary500,
|
|
10
|
+
tokens.semantic.color.icon.informative800,
|
|
11
|
+
tokens.semantic.color.icon.discovery600
|
|
12
12
|
],
|
|
13
13
|
grid: tokens.semantic.color.border.secondary200,
|
|
14
|
+
gridDashArray: '3 3',
|
|
14
15
|
axisLabel: tokens.semantic.color.text.secondary500,
|
|
15
16
|
threshold: {
|
|
16
|
-
warning: tokens.semantic.color.icon.
|
|
17
|
-
critical: tokens.semantic.color.icon.
|
|
17
|
+
warning: tokens.semantic.color.icon.attention600,
|
|
18
|
+
critical: tokens.semantic.color.icon.primary500
|
|
19
|
+
},
|
|
20
|
+
axis: {
|
|
21
|
+
fontFamily: tokens.core.font.fontFamily.sourceCodeProRegular,
|
|
22
|
+
fontSize: { S: '0.95rem', M: '1.05rem' }
|
|
23
|
+
},
|
|
24
|
+
series: {
|
|
25
|
+
strokeWidth: { S: 2, M: 1.6 },
|
|
26
|
+
areaOpacity: { from: 0.3, to: 0.02 }
|
|
27
|
+
},
|
|
28
|
+
cursor: {
|
|
29
|
+
color: tokens.semantic.color.border.secondary300,
|
|
30
|
+
width: 1
|
|
31
|
+
},
|
|
32
|
+
activeDot: {
|
|
33
|
+
size: 9,
|
|
34
|
+
ringColor: tokens.semantic.color.background.secondary0,
|
|
35
|
+
ringWidth: 2
|
|
36
|
+
},
|
|
37
|
+
referenceLine: {
|
|
38
|
+
color: tokens.semantic.color.border.secondary500,
|
|
39
|
+
dashArray: '4 4'
|
|
40
|
+
},
|
|
41
|
+
tooltip: {
|
|
42
|
+
bgColor: tokens.semantic.color.background.secondary0,
|
|
43
|
+
textColor: tokens.semantic.color.text.secondary950,
|
|
44
|
+
labelColor: tokens.semantic.color.text.secondary500,
|
|
45
|
+
borderColor: tokens.semantic.color.border.secondary200,
|
|
46
|
+
borderRadius: '0.5rem',
|
|
47
|
+
shadow: tokens.core.shadow.shadow200,
|
|
48
|
+
padding: '0.7rem 1rem',
|
|
49
|
+
fontSize: '1.1rem',
|
|
50
|
+
labelFontSize: '0.95rem',
|
|
51
|
+
valueFontFamily: tokens.core.font.fontFamily.sourceCodeProRegular,
|
|
52
|
+
markerSize: '0.8rem'
|
|
53
|
+
},
|
|
54
|
+
legend: {
|
|
55
|
+
textColor: tokens.semantic.color.text.secondary500,
|
|
56
|
+
fontFamily: {
|
|
57
|
+
S: tokens.core.font.fontFamily.sourceCodeProRegular,
|
|
58
|
+
M: tokens.core.font.fontFamily.regular
|
|
59
|
+
},
|
|
60
|
+
fontSize: { S: tokens.core.font.fontSize.s10, M: '1.25rem' },
|
|
61
|
+
gap: { S: '1rem', M: '1.6rem' },
|
|
62
|
+
dotSize: '0.9rem',
|
|
63
|
+
lineWidth: '1.2rem',
|
|
64
|
+
lineHeight: '0.2rem'
|
|
65
|
+
},
|
|
66
|
+
sparkline: {
|
|
67
|
+
strokeWidth: 1.6,
|
|
68
|
+
areaOpacity: { from: 0.35, to: 0.04 }
|
|
18
69
|
}
|
|
19
70
|
};
|
|
20
71
|
export default theme;
|
|
@@ -3,7 +3,7 @@ const theme = {
|
|
|
3
3
|
width: '1.8rem',
|
|
4
4
|
height: '1.8rem',
|
|
5
5
|
padding: '0',
|
|
6
|
-
borderRadius: '0.
|
|
6
|
+
borderRadius: '0.2rem',
|
|
7
7
|
borderWidth: '1px',
|
|
8
8
|
label: {
|
|
9
9
|
padding: '0 0.8rem',
|
|
@@ -13,52 +13,56 @@ const theme = {
|
|
|
13
13
|
primary: {
|
|
14
14
|
on: {
|
|
15
15
|
normal: {
|
|
16
|
-
bgColor:
|
|
16
|
+
bgColor: '#0F6FB8',
|
|
17
|
+
borderColor: '#0F6FB8',
|
|
17
18
|
iconColor: tokens.semantic.color.icon.secondary0,
|
|
18
19
|
textColor: tokens.semantic.color.text.secondary950
|
|
19
20
|
},
|
|
20
21
|
disabled: {
|
|
21
|
-
bgColor: tokens.semantic.color.background.
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
bgColor: tokens.semantic.color.background.secondary200,
|
|
23
|
+
borderColor: tokens.semantic.color.border.secondary200,
|
|
24
|
+
iconColor: tokens.semantic.color.icon.secondary500,
|
|
25
|
+
textColor: tokens.semantic.color.text.secondary500
|
|
24
26
|
}
|
|
25
27
|
},
|
|
26
28
|
off: {
|
|
27
29
|
normal: {
|
|
28
30
|
bgColor: tokens.semantic.color.background.secondary0,
|
|
29
|
-
borderColor: tokens.semantic.color.border.
|
|
31
|
+
borderColor: tokens.semantic.color.border.secondary400,
|
|
30
32
|
textColor: tokens.semantic.color.text.secondary950
|
|
31
33
|
},
|
|
32
34
|
disabled: {
|
|
33
|
-
bgColor: tokens.semantic.color.background.
|
|
34
|
-
borderColor: tokens.semantic.color.border.
|
|
35
|
-
textColor: tokens.semantic.color.text.
|
|
35
|
+
bgColor: tokens.semantic.color.background.secondary200,
|
|
36
|
+
borderColor: tokens.semantic.color.border.secondary200,
|
|
37
|
+
textColor: tokens.semantic.color.text.secondary500
|
|
36
38
|
}
|
|
37
39
|
}
|
|
38
40
|
},
|
|
39
41
|
danger: {
|
|
40
42
|
on: {
|
|
41
43
|
normal: {
|
|
42
|
-
bgColor: tokens.semantic.color.background.
|
|
44
|
+
bgColor: tokens.semantic.color.background.primary400,
|
|
45
|
+
borderColor: tokens.semantic.color.border.primary400,
|
|
43
46
|
iconColor: tokens.semantic.color.icon.secondary0,
|
|
44
47
|
textColor: tokens.semantic.color.text.danger500
|
|
45
48
|
},
|
|
46
49
|
disabled: {
|
|
47
|
-
bgColor: tokens.semantic.color.background.
|
|
48
|
-
|
|
49
|
-
|
|
50
|
+
bgColor: tokens.semantic.color.background.secondary200,
|
|
51
|
+
borderColor: tokens.semantic.color.border.secondary200,
|
|
52
|
+
iconColor: tokens.semantic.color.icon.secondary500,
|
|
53
|
+
textColor: tokens.semantic.color.text.secondary500
|
|
50
54
|
}
|
|
51
55
|
},
|
|
52
56
|
off: {
|
|
53
57
|
normal: {
|
|
54
58
|
bgColor: tokens.semantic.color.background.secondary0,
|
|
55
|
-
borderColor: tokens.semantic.color.border.
|
|
59
|
+
borderColor: tokens.semantic.color.border.primary400,
|
|
56
60
|
textColor: tokens.semantic.color.text.danger500
|
|
57
61
|
},
|
|
58
62
|
disabled: {
|
|
59
|
-
bgColor: tokens.semantic.color.background.
|
|
60
|
-
borderColor: tokens.semantic.color.border.
|
|
61
|
-
textColor: tokens.semantic.color.text.
|
|
63
|
+
bgColor: tokens.semantic.color.background.secondary200,
|
|
64
|
+
borderColor: tokens.semantic.color.border.secondary200,
|
|
65
|
+
textColor: tokens.semantic.color.text.secondary500
|
|
62
66
|
}
|
|
63
67
|
}
|
|
64
68
|
}
|
|
@@ -17,32 +17,32 @@ const theme = {
|
|
|
17
17
|
variant: {
|
|
18
18
|
regular: {
|
|
19
19
|
normal: {
|
|
20
|
-
bgColor: tokens.semantic.color.background.
|
|
20
|
+
bgColor: tokens.semantic.color.background.neutral100,
|
|
21
21
|
textColor: tokens.semantic.color.text.secondary950
|
|
22
22
|
},
|
|
23
23
|
disabled: {
|
|
24
|
-
bgColor: tokens.semantic.color.background.
|
|
25
|
-
textColor: tokens.semantic.color.text.
|
|
24
|
+
bgColor: tokens.semantic.color.background.secondary200,
|
|
25
|
+
textColor: tokens.semantic.color.text.secondary500
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
flat: {
|
|
29
29
|
normal: {
|
|
30
|
-
bgColor: tokens.semantic.color.background.
|
|
30
|
+
bgColor: tokens.semantic.color.background.neutral100,
|
|
31
31
|
textColor: tokens.semantic.color.text.secondary950
|
|
32
32
|
},
|
|
33
33
|
disabled: {
|
|
34
|
-
bgColor: tokens.semantic.color.background.
|
|
35
|
-
textColor: tokens.semantic.color.text.
|
|
34
|
+
bgColor: tokens.semantic.color.background.secondary200,
|
|
35
|
+
textColor: tokens.semantic.color.text.secondary500
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
closeButton: {
|
|
40
40
|
variant: {
|
|
41
41
|
regular: {
|
|
42
|
-
color: tokens.semantic.color.
|
|
42
|
+
color: tokens.semantic.color.text.secondary500
|
|
43
43
|
},
|
|
44
44
|
flat: {
|
|
45
|
-
color: tokens.semantic.color.
|
|
45
|
+
color: tokens.semantic.color.text.secondary500
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
size: {
|
|
@@ -9,9 +9,9 @@ const theme = {
|
|
|
9
9
|
}
|
|
10
10
|
},
|
|
11
11
|
popupList: {
|
|
12
|
-
bgColor: tokens.semantic.color.background.
|
|
13
|
-
color: tokens.semantic.color.text.
|
|
14
|
-
disabledColor: tokens.semantic.color.text.
|
|
12
|
+
bgColor: tokens.semantic.color.background.secondary0,
|
|
13
|
+
color: tokens.semantic.color.text.secondary950,
|
|
14
|
+
disabledColor: tokens.semantic.color.text.secondary500,
|
|
15
15
|
minWidth: '18rem',
|
|
16
16
|
maxHeight: '33.2rem',
|
|
17
17
|
gap: '0.4rem',
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { withOpacity } from '../../../../utils';
|
|
2
1
|
import { tokens } from '../../tokens';
|
|
2
|
+
import { withOpacity } from '../../../../utils';
|
|
3
3
|
const theme = {
|
|
4
|
-
shadow: tokens.core.shadow.
|
|
5
|
-
bgColor: tokens.semantic.color.background.
|
|
4
|
+
shadow: tokens.core.shadow.shadow600,
|
|
5
|
+
bgColor: tokens.semantic.color.background.secondary0,
|
|
6
6
|
sidePadding: '3.2rem',
|
|
7
7
|
width: '60rem',
|
|
8
8
|
borderRadius: '0.8rem',
|
|
9
9
|
header: {
|
|
10
10
|
blockPadding: '4rem 0',
|
|
11
|
-
closeIconColor: tokens.semantic.color.icon.
|
|
11
|
+
closeIconColor: tokens.semantic.color.icon.secondary500,
|
|
12
12
|
textColor: tokens.semantic.color.text.secondary950
|
|
13
13
|
},
|
|
14
14
|
description: {
|
|
15
15
|
blockPadding: '3rem 0',
|
|
16
|
-
textColor: tokens.semantic.color.text.
|
|
16
|
+
textColor: tokens.semantic.color.text.secondary500
|
|
17
17
|
},
|
|
18
18
|
body: {
|
|
19
19
|
blockPadding: '4rem 1.6rem'
|
|
20
20
|
},
|
|
21
21
|
footer: {
|
|
22
22
|
blockPadding: '1.6rem',
|
|
23
|
-
border: `1px solid ${tokens.semantic.color.border.
|
|
23
|
+
border: `1px solid ${tokens.semantic.color.border.secondary200}`,
|
|
24
24
|
buttonsGap: '1.6rem'
|
|
25
25
|
},
|
|
26
26
|
overlay: {
|
|
27
|
-
bgColor: withOpacity(tokens.semantic.color.background.
|
|
27
|
+
bgColor: withOpacity(tokens.semantic.color.background.secondary950, 0.55)
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
30
|
export default theme;
|
|
@@ -2,14 +2,14 @@ import { tokens } from '../../tokens';
|
|
|
2
2
|
const theme = {
|
|
3
3
|
chipList: {
|
|
4
4
|
padding: '0.8rem 1.6rem',
|
|
5
|
-
border: `1px solid ${tokens.semantic.color.border.
|
|
5
|
+
border: `1px solid ${tokens.semantic.color.border.secondary200}`
|
|
6
6
|
},
|
|
7
7
|
filtersBar: {
|
|
8
8
|
gap: '1.6rem',
|
|
9
9
|
padding: '0.8rem 1.6rem 0.8rem 0.4rem',
|
|
10
10
|
separator: {
|
|
11
11
|
width: '1px',
|
|
12
|
-
color: tokens.semantic.color.
|
|
12
|
+
color: tokens.semantic.color.text.secondary200
|
|
13
13
|
},
|
|
14
14
|
trigger: {
|
|
15
15
|
margin: '0.4rem 1.6rem',
|
|
@@ -7,10 +7,10 @@ const theme = {
|
|
|
7
7
|
additionalText: {
|
|
8
8
|
margin: '0.4rem 0 0 0',
|
|
9
9
|
normal: {
|
|
10
|
-
textColor: tokens.semantic.color.text.
|
|
10
|
+
textColor: tokens.semantic.color.text.secondary500
|
|
11
11
|
},
|
|
12
12
|
error: {
|
|
13
|
-
textColor: tokens.semantic.color.text.
|
|
13
|
+
textColor: tokens.semantic.color.text.danger500
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
};
|
|
@@ -2,18 +2,18 @@ import { tokens } from '../../tokens';
|
|
|
2
2
|
const theme = {
|
|
3
3
|
variant: {
|
|
4
4
|
success: {
|
|
5
|
-
arcColor: tokens.semantic.color.background.
|
|
6
|
-
trackColor: tokens.semantic.color.background.
|
|
7
|
-
textColor:
|
|
5
|
+
arcColor: tokens.semantic.color.background.success500,
|
|
6
|
+
trackColor: tokens.semantic.color.background.secondary50,
|
|
7
|
+
textColor: '#15803D'
|
|
8
8
|
},
|
|
9
9
|
attention: {
|
|
10
|
-
arcColor: tokens.semantic.color.background.
|
|
11
|
-
trackColor: tokens.semantic.color.background.
|
|
12
|
-
textColor:
|
|
10
|
+
arcColor: tokens.semantic.color.background.notice400,
|
|
11
|
+
trackColor: tokens.semantic.color.background.secondary50,
|
|
12
|
+
textColor: '#B45309'
|
|
13
13
|
},
|
|
14
14
|
danger: {
|
|
15
|
-
arcColor: tokens.semantic.color.background.
|
|
16
|
-
trackColor: tokens.semantic.color.background.
|
|
15
|
+
arcColor: tokens.semantic.color.background.primary400,
|
|
16
|
+
trackColor: tokens.semantic.color.background.secondary50,
|
|
17
17
|
textColor: tokens.semantic.color.text.danger500
|
|
18
18
|
}
|
|
19
19
|
},
|