@redis-ui/styles 21.6.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 +3645 -3616
- package/dist/index.umd.cjs +13 -13
- 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/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/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/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/package.json +1 -1
|
@@ -21,34 +21,36 @@ const theme = {
|
|
|
21
21
|
variants: {
|
|
22
22
|
primary: {
|
|
23
23
|
normal: {
|
|
24
|
-
bgColor: tokens.semantic.color.background.
|
|
24
|
+
bgColor: tokens.semantic.color.background.primary950,
|
|
25
25
|
textColor: tokens.semantic.color.text.secondary0
|
|
26
26
|
},
|
|
27
27
|
hover: {
|
|
28
|
-
bgColor: tokens.semantic.color.background.
|
|
28
|
+
bgColor: tokens.semantic.color.background.primary800
|
|
29
29
|
},
|
|
30
30
|
active: {
|
|
31
|
-
bgColor: tokens.semantic.color.background.
|
|
31
|
+
bgColor: tokens.semantic.color.background.primary600
|
|
32
32
|
},
|
|
33
33
|
disabled: {
|
|
34
|
-
bgColor: tokens.semantic.color.background.
|
|
35
|
-
textColor: tokens.semantic.color.text.
|
|
34
|
+
bgColor: tokens.semantic.color.background.secondary700,
|
|
35
|
+
textColor: tokens.semantic.color.text.secondary400
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
secondary: {
|
|
39
39
|
normal: {
|
|
40
|
-
bgColor:
|
|
41
|
-
textColor: tokens.semantic.color.text.
|
|
40
|
+
bgColor: 'transparent',
|
|
41
|
+
textColor: tokens.semantic.color.text.secondary300
|
|
42
42
|
},
|
|
43
43
|
hover: {
|
|
44
|
-
bgColor: tokens.semantic.color.background.
|
|
44
|
+
bgColor: tokens.semantic.color.background.secondary900,
|
|
45
|
+
textColor: tokens.semantic.color.text.secondary0
|
|
45
46
|
},
|
|
46
47
|
active: {
|
|
47
|
-
bgColor: tokens.semantic.color.background.
|
|
48
|
+
bgColor: tokens.semantic.color.background.secondary990,
|
|
49
|
+
textColor: tokens.semantic.color.text.secondary0
|
|
48
50
|
},
|
|
49
51
|
disabled: {
|
|
50
|
-
bgColor: tokens.semantic.color.background.
|
|
51
|
-
textColor: tokens.semantic.color.text.
|
|
52
|
+
bgColor: tokens.semantic.color.background.secondary700,
|
|
53
|
+
textColor: tokens.semantic.color.text.secondary400
|
|
52
54
|
}
|
|
53
55
|
}
|
|
54
56
|
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { tokens } from '../../tokens';
|
|
2
2
|
const theme = {
|
|
3
|
-
height: '
|
|
4
|
-
padding: '
|
|
5
|
-
separator: `1px solid ${tokens.semantic.color.border.
|
|
6
|
-
boxShadow: `0px 1px 0px 0px ${tokens.semantic.color.border.
|
|
3
|
+
height: '4.8rem',
|
|
4
|
+
padding: '0.8rem 1.4rem 0.8rem 2.4rem',
|
|
5
|
+
separator: `1px solid ${tokens.semantic.color.border.secondary700}`,
|
|
6
|
+
boxShadow: `0px 1px 0px 0px ${tokens.semantic.color.border.secondary700}`,
|
|
7
7
|
group: {
|
|
8
8
|
gap: '1.6rem'
|
|
9
9
|
},
|
|
10
10
|
variants: {
|
|
11
11
|
default: {
|
|
12
|
-
bgColor: tokens.semantic.color.background.
|
|
13
|
-
color: tokens.semantic.color.
|
|
14
|
-
userNameColor: tokens.semantic.color.background.
|
|
15
|
-
accountNameColor: tokens.semantic.color.background.
|
|
12
|
+
bgColor: tokens.semantic.color.background.secondary900,
|
|
13
|
+
color: tokens.semantic.color.text.secondary0,
|
|
14
|
+
userNameColor: tokens.semantic.color.background.secondary0,
|
|
15
|
+
accountNameColor: tokens.semantic.color.background.secondary400
|
|
16
16
|
},
|
|
17
17
|
alert: {
|
|
18
|
-
bgColor: tokens.semantic.color.background.
|
|
19
|
-
color: tokens.semantic.color.text.
|
|
20
|
-
userNameColor: tokens.semantic.color.
|
|
21
|
-
accountNameColor: tokens.semantic.color.
|
|
18
|
+
bgColor: tokens.semantic.color.background.primary0,
|
|
19
|
+
color: tokens.semantic.color.text.secondary0,
|
|
20
|
+
userNameColor: tokens.semantic.color.background.secondary0,
|
|
21
|
+
accountNameColor: tokens.semantic.color.background.secondary0
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
};
|
|
@@ -8,21 +8,21 @@ const theme = {
|
|
|
8
8
|
toggleStates: {
|
|
9
9
|
on: {
|
|
10
10
|
normal: {
|
|
11
|
-
bgColor:
|
|
12
|
-
borderColor:
|
|
13
|
-
textColor: tokens.semantic.color.text.
|
|
11
|
+
bgColor: tokens.semantic.color.background.secondary900,
|
|
12
|
+
borderColor: tokens.semantic.color.border.secondary700,
|
|
13
|
+
textColor: tokens.semantic.color.text.secondary0
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
16
|
off: {
|
|
17
17
|
normal: {
|
|
18
18
|
bgColor: 'transparent',
|
|
19
19
|
borderColor: 'transparent',
|
|
20
|
-
textColor: tokens.semantic.color.text.
|
|
20
|
+
textColor: tokens.semantic.color.text.secondary0
|
|
21
21
|
},
|
|
22
22
|
hover: {
|
|
23
|
-
bgColor: tokens.semantic.color.background.
|
|
24
|
-
borderColor: tokens.semantic.color.border.
|
|
25
|
-
textColor: tokens.semantic.color.text.
|
|
23
|
+
bgColor: tokens.semantic.color.background.secondary900,
|
|
24
|
+
borderColor: tokens.semantic.color.border.secondary900,
|
|
25
|
+
textColor: tokens.semantic.color.text.secondary0
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
}
|
|
@@ -39,7 +39,7 @@ const theme = {
|
|
|
39
39
|
width: '11rem',
|
|
40
40
|
height: '6rem',
|
|
41
41
|
label: {
|
|
42
|
-
color: tokens.semantic.color.text.
|
|
42
|
+
color: tokens.semantic.color.text.secondary0
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { withOpacity } from '../../../../utils';
|
|
1
2
|
import { tokens } from '../../tokens';
|
|
2
3
|
const borderWidth = '1px';
|
|
3
4
|
const theme = {
|
|
@@ -9,52 +10,52 @@ const theme = {
|
|
|
9
10
|
borderStyle: 'solid',
|
|
10
11
|
variants: {
|
|
11
12
|
white: {
|
|
12
|
-
backgroundColor: tokens.semantic.color.background.
|
|
13
|
-
color: tokens.semantic.color.text.
|
|
14
|
-
borderColor: tokens.semantic.color.border.
|
|
15
|
-
iconColor: tokens.semantic.color.
|
|
13
|
+
backgroundColor: tokens.semantic.color.background.secondary950,
|
|
14
|
+
color: tokens.semantic.color.text.secondary0,
|
|
15
|
+
borderColor: tokens.semantic.color.border.secondary700,
|
|
16
|
+
iconColor: tokens.semantic.color.icon.secondary0
|
|
16
17
|
},
|
|
17
18
|
light: {
|
|
18
|
-
backgroundColor: tokens.semantic.color.background.
|
|
19
|
+
backgroundColor: tokens.semantic.color.background.secondary990,
|
|
19
20
|
color: tokens.semantic.color.text.secondary0,
|
|
20
|
-
borderColor: tokens.semantic.color.border.
|
|
21
|
-
iconColor: tokens.semantic.color.
|
|
21
|
+
borderColor: tokens.semantic.color.border.secondary700,
|
|
22
|
+
iconColor: tokens.semantic.color.icon.secondary0
|
|
22
23
|
},
|
|
23
24
|
default: {
|
|
24
|
-
backgroundColor: tokens.semantic.color.background.
|
|
25
|
-
color: tokens.semantic.color.text.
|
|
26
|
-
borderColor: tokens.semantic.color.border.
|
|
27
|
-
iconColor: tokens.semantic.color.
|
|
25
|
+
backgroundColor: tokens.semantic.color.background.secondary900,
|
|
26
|
+
color: tokens.semantic.color.text.secondary0,
|
|
27
|
+
borderColor: tokens.semantic.color.border.secondary700,
|
|
28
|
+
iconColor: tokens.semantic.color.icon.secondary0
|
|
28
29
|
},
|
|
29
30
|
informative: {
|
|
30
|
-
backgroundColor: tokens.semantic.color.background.
|
|
31
|
-
color: tokens.semantic.color.text.
|
|
32
|
-
borderColor: tokens.semantic.color.border.
|
|
33
|
-
iconColor: tokens.semantic.color.
|
|
31
|
+
backgroundColor: tokens.semantic.color.background.informative0,
|
|
32
|
+
color: tokens.semantic.color.text.informative300,
|
|
33
|
+
borderColor: withOpacity(tokens.semantic.color.border.informative200, 0.24),
|
|
34
|
+
iconColor: tokens.semantic.color.icon.informative300
|
|
34
35
|
},
|
|
35
36
|
success: {
|
|
36
|
-
backgroundColor: tokens.semantic.color.background.
|
|
37
|
-
color: tokens.semantic.color.text.
|
|
38
|
-
borderColor: tokens.semantic.color.border.
|
|
39
|
-
iconColor: tokens.semantic.color.
|
|
37
|
+
backgroundColor: tokens.semantic.color.background.success0,
|
|
38
|
+
color: tokens.semantic.color.text.success500,
|
|
39
|
+
borderColor: withOpacity(tokens.semantic.color.border.success500, 0.24),
|
|
40
|
+
iconColor: tokens.semantic.color.icon.success500
|
|
40
41
|
},
|
|
41
42
|
notice: {
|
|
42
|
-
backgroundColor: tokens.semantic.color.background.
|
|
43
|
-
color: tokens.semantic.color.text.
|
|
44
|
-
borderColor: tokens.semantic.color.border.
|
|
45
|
-
iconColor: tokens.semantic.color.
|
|
43
|
+
backgroundColor: tokens.semantic.color.background.notice0,
|
|
44
|
+
color: tokens.semantic.color.text.notice400,
|
|
45
|
+
borderColor: withOpacity(tokens.semantic.color.border.notice400, 0.24),
|
|
46
|
+
iconColor: tokens.semantic.color.icon.notice400
|
|
46
47
|
},
|
|
47
48
|
danger: {
|
|
48
|
-
backgroundColor: tokens.semantic.color.background.
|
|
49
|
-
color: tokens.semantic.color.text.
|
|
50
|
-
borderColor: tokens.semantic.color.border.
|
|
51
|
-
iconColor: tokens.semantic.color.
|
|
49
|
+
backgroundColor: tokens.semantic.color.background.primary0,
|
|
50
|
+
color: tokens.semantic.color.text.primary300,
|
|
51
|
+
borderColor: withOpacity(tokens.semantic.color.border.primary300, 0.24),
|
|
52
|
+
iconColor: tokens.semantic.color.icon.primary300
|
|
52
53
|
},
|
|
53
54
|
attention: {
|
|
54
|
-
backgroundColor: tokens.semantic.color.background.
|
|
55
|
-
color: tokens.semantic.color.text.
|
|
56
|
-
borderColor: tokens.semantic.color.border.
|
|
57
|
-
iconColor: tokens.semantic.color.
|
|
55
|
+
backgroundColor: tokens.semantic.color.background.notice0,
|
|
56
|
+
color: tokens.semantic.color.text.notice400,
|
|
57
|
+
borderColor: withOpacity(tokens.semantic.color.border.notice400, 0.24),
|
|
58
|
+
iconColor: tokens.semantic.color.icon.notice400
|
|
58
59
|
},
|
|
59
60
|
upsell: {
|
|
60
61
|
backgroundColor: tokens.semantic.color.background.discovery700,
|
|
@@ -63,10 +64,10 @@ const theme = {
|
|
|
63
64
|
iconColor: tokens.semantic.color.text.discovery400
|
|
64
65
|
},
|
|
65
66
|
disabled: {
|
|
66
|
-
backgroundColor: tokens.semantic.color.background.
|
|
67
|
-
color: tokens.semantic.color.text.
|
|
68
|
-
borderColor: tokens.semantic.color.border.
|
|
69
|
-
iconColor: tokens.semantic.color.
|
|
67
|
+
backgroundColor: tokens.semantic.color.background.secondary700,
|
|
68
|
+
color: tokens.semantic.color.text.secondary400,
|
|
69
|
+
borderColor: tokens.semantic.color.border.secondary700,
|
|
70
|
+
iconColor: tokens.semantic.color.icon.secondary400
|
|
70
71
|
}
|
|
71
72
|
}
|
|
72
73
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { tokens } from '../../tokens';
|
|
2
|
+
import { withOpacity } from '../../../../utils';
|
|
2
3
|
const theme = {
|
|
3
4
|
gap: tokens.core.space.space300,
|
|
4
5
|
item: {
|
|
@@ -13,39 +14,39 @@ const theme = {
|
|
|
13
14
|
bgColor: tokens.semantic.color.background.secondary900,
|
|
14
15
|
borderColor: tokens.semantic.color.border.secondary700,
|
|
15
16
|
markerColor: 'transparent',
|
|
16
|
-
textColor: tokens.semantic.color.text.
|
|
17
|
-
iconColor: tokens.semantic.color.icon.
|
|
17
|
+
textColor: tokens.semantic.color.text.secondary0,
|
|
18
|
+
iconColor: tokens.semantic.color.icon.secondary0
|
|
18
19
|
},
|
|
19
20
|
hover: {
|
|
20
21
|
bgColor: tokens.semantic.color.background.secondary900,
|
|
21
|
-
borderColor: tokens.semantic.color.border.
|
|
22
|
-
markerColor:
|
|
23
|
-
textColor: tokens.semantic.color.text.
|
|
24
|
-
iconColor: tokens.semantic.color.icon.
|
|
22
|
+
borderColor: tokens.semantic.color.border.secondary500,
|
|
23
|
+
markerColor: 'transparent',
|
|
24
|
+
textColor: tokens.semantic.color.text.secondary0,
|
|
25
|
+
iconColor: tokens.semantic.color.icon.secondary0
|
|
25
26
|
},
|
|
26
27
|
disabled: {
|
|
27
|
-
bgColor: tokens.semantic.color.background.
|
|
28
|
-
borderColor: tokens.semantic.color.border.
|
|
28
|
+
bgColor: tokens.semantic.color.background.secondary900,
|
|
29
|
+
borderColor: tokens.semantic.color.border.secondary700,
|
|
29
30
|
markerColor: 'transparent',
|
|
30
|
-
textColor: tokens.semantic.color.text.
|
|
31
|
-
iconColor: tokens.semantic.color.icon.
|
|
31
|
+
textColor: tokens.semantic.color.text.secondary400,
|
|
32
|
+
iconColor: tokens.semantic.color.icon.secondary400,
|
|
32
33
|
opacity: '0.5'
|
|
33
34
|
}
|
|
34
35
|
},
|
|
35
36
|
checked: {
|
|
36
37
|
normal: {
|
|
37
|
-
bgColor: tokens.semantic.color.background.
|
|
38
|
-
borderColor: tokens.semantic.color.border.
|
|
39
|
-
markerColor:
|
|
40
|
-
textColor: tokens.semantic.color.text.
|
|
41
|
-
iconColor: tokens.semantic.color.icon.
|
|
38
|
+
bgColor: withOpacity(tokens.semantic.color.background.informative300, 0.08),
|
|
39
|
+
borderColor: tokens.semantic.color.border.informative300,
|
|
40
|
+
markerColor: 'transparent',
|
|
41
|
+
textColor: tokens.semantic.color.text.secondary0,
|
|
42
|
+
iconColor: tokens.semantic.color.icon.secondary0
|
|
42
43
|
},
|
|
43
44
|
disabled: {
|
|
44
45
|
bgColor: tokens.semantic.color.background.secondary900,
|
|
45
|
-
borderColor: tokens.semantic.color.border.
|
|
46
|
-
markerColor:
|
|
47
|
-
textColor: tokens.semantic.color.text.
|
|
48
|
-
iconColor: tokens.semantic.color.icon.
|
|
46
|
+
borderColor: tokens.semantic.color.border.secondary400,
|
|
47
|
+
markerColor: 'transparent',
|
|
48
|
+
textColor: tokens.semantic.color.text.secondary400,
|
|
49
|
+
iconColor: tokens.semantic.color.icon.secondary400,
|
|
49
50
|
opacity: '0.5'
|
|
50
51
|
}
|
|
51
52
|
}
|
|
@@ -4,25 +4,25 @@ const theme = {
|
|
|
4
4
|
link: {
|
|
5
5
|
states: {
|
|
6
6
|
normal: {
|
|
7
|
-
textColor: tokens.semantic.color.text.
|
|
7
|
+
textColor: tokens.semantic.color.text.secondary300
|
|
8
8
|
},
|
|
9
9
|
hover: {
|
|
10
|
-
textColor: tokens.semantic.color.text.
|
|
10
|
+
textColor: tokens.semantic.color.text.secondary0
|
|
11
11
|
},
|
|
12
12
|
active: {
|
|
13
|
-
textColor: tokens.semantic.color.text.
|
|
13
|
+
textColor: tokens.semantic.color.text.secondary0
|
|
14
14
|
},
|
|
15
15
|
disabled: {
|
|
16
|
-
textColor: tokens.semantic.color.text.
|
|
16
|
+
textColor: tokens.semantic.color.text.secondary400
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
current: {
|
|
21
|
-
textColor: tokens.semantic.color.text.
|
|
21
|
+
textColor: tokens.semantic.color.text.secondary0,
|
|
22
22
|
fontWeight: tokens.core.font.fontWeight.semiBold
|
|
23
23
|
},
|
|
24
24
|
separator: {
|
|
25
|
-
textColor: tokens.semantic.color.text.
|
|
25
|
+
textColor: tokens.semantic.color.text.secondary400
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
28
|
export default theme;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { tokens } from '../../tokens';
|
|
2
|
+
import { withOpacity } from '../../../../utils';
|
|
3
|
+
const destructiveBorder = withOpacity(tokens.semantic.color.background.primary300, 0.55);
|
|
2
4
|
const theme = {
|
|
3
5
|
gap: '0.2rem',
|
|
4
6
|
sizes: {
|
|
@@ -24,46 +26,46 @@ const theme = {
|
|
|
24
26
|
variants: {
|
|
25
27
|
primary: {
|
|
26
28
|
normal: {
|
|
27
|
-
bgColor: tokens.semantic.color.background.
|
|
28
|
-
borderColor: tokens.semantic.color.border.
|
|
29
|
+
bgColor: tokens.semantic.color.background.primary950,
|
|
30
|
+
borderColor: tokens.semantic.color.border.primary400,
|
|
29
31
|
textColor: tokens.semantic.color.text.secondary0
|
|
30
32
|
},
|
|
31
33
|
hover: {
|
|
32
|
-
bgColor: tokens.semantic.color.background.
|
|
34
|
+
bgColor: tokens.semantic.color.background.primary800,
|
|
33
35
|
borderColor: tokens.semantic.color.border.primary600,
|
|
34
|
-
textColor: tokens.semantic.color.text.
|
|
36
|
+
textColor: tokens.semantic.color.text.secondary0
|
|
35
37
|
},
|
|
36
38
|
active: {
|
|
37
39
|
bgColor: tokens.semantic.color.background.primary600,
|
|
38
|
-
borderColor: tokens.semantic.color.border.
|
|
40
|
+
borderColor: tokens.semantic.color.border.primary600,
|
|
39
41
|
textColor: tokens.semantic.color.text.secondary0
|
|
40
42
|
},
|
|
41
43
|
disabled: {
|
|
42
|
-
bgColor: tokens.semantic.color.background.
|
|
44
|
+
bgColor: tokens.semantic.color.background.secondary700,
|
|
43
45
|
borderColor: tokens.semantic.color.border.secondary700,
|
|
44
|
-
textColor: tokens.semantic.color.text.
|
|
46
|
+
textColor: tokens.semantic.color.text.secondary400
|
|
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.secondary800,
|
|
52
|
+
borderColor: destructiveBorder,
|
|
53
|
+
textColor: tokens.semantic.color.text.primary300
|
|
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.secondary700,
|
|
57
|
+
borderColor: destructiveBorder,
|
|
58
|
+
textColor: tokens.semantic.color.text.primary300
|
|
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.secondary500,
|
|
62
|
+
borderColor: destructiveBorder,
|
|
63
|
+
textColor: tokens.semantic.color.text.primary300
|
|
62
64
|
},
|
|
63
65
|
disabled: {
|
|
64
|
-
bgColor: tokens.semantic.color.background.
|
|
66
|
+
bgColor: tokens.semantic.color.background.secondary700,
|
|
65
67
|
borderColor: tokens.semantic.color.border.secondary700,
|
|
66
|
-
textColor: tokens.semantic.color.text.
|
|
68
|
+
textColor: tokens.semantic.color.text.secondary400
|
|
67
69
|
}
|
|
68
70
|
},
|
|
69
71
|
'secondary-fill': {
|
|
@@ -74,18 +76,18 @@ const theme = {
|
|
|
74
76
|
},
|
|
75
77
|
hover: {
|
|
76
78
|
bgColor: tokens.semantic.color.background.secondary700,
|
|
77
|
-
borderColor: tokens.semantic.color.border.
|
|
79
|
+
borderColor: tokens.semantic.color.border.secondary500,
|
|
78
80
|
textColor: tokens.semantic.color.text.secondary0
|
|
79
81
|
},
|
|
80
82
|
active: {
|
|
81
|
-
bgColor: tokens.semantic.color.background.
|
|
82
|
-
borderColor: tokens.semantic.color.border.
|
|
83
|
+
bgColor: tokens.semantic.color.background.secondary500,
|
|
84
|
+
borderColor: tokens.semantic.color.border.secondary500,
|
|
83
85
|
textColor: tokens.semantic.color.text.secondary0
|
|
84
86
|
},
|
|
85
87
|
disabled: {
|
|
86
|
-
bgColor: tokens.semantic.color.background.
|
|
88
|
+
bgColor: tokens.semantic.color.background.secondary700,
|
|
87
89
|
borderColor: tokens.semantic.color.border.secondary700,
|
|
88
|
-
textColor: tokens.semantic.color.text.
|
|
90
|
+
textColor: tokens.semantic.color.text.secondary400
|
|
89
91
|
}
|
|
90
92
|
},
|
|
91
93
|
'secondary-invert': {
|
|
@@ -105,9 +107,9 @@ const theme = {
|
|
|
105
107
|
textColor: tokens.semantic.color.text.secondary0
|
|
106
108
|
},
|
|
107
109
|
disabled: {
|
|
108
|
-
bgColor: tokens.semantic.color.background.
|
|
110
|
+
bgColor: tokens.semantic.color.background.secondary700,
|
|
109
111
|
borderColor: tokens.semantic.color.border.secondary700,
|
|
110
|
-
textColor: tokens.semantic.color.text.
|
|
112
|
+
textColor: tokens.semantic.color.text.secondary400
|
|
111
113
|
}
|
|
112
114
|
},
|
|
113
115
|
'secondary-ghost': {
|
|
@@ -129,7 +131,7 @@ const theme = {
|
|
|
129
131
|
disabled: {
|
|
130
132
|
bgColor: 'transparent',
|
|
131
133
|
borderColor: tokens.semantic.color.border.secondary700,
|
|
132
|
-
textColor: tokens.semantic.color.text.
|
|
134
|
+
textColor: tokens.semantic.color.text.secondary400
|
|
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.
|
|
153
|
+
bgColor: tokens.semantic.color.background.secondary700,
|
|
152
154
|
borderColor: tokens.semantic.color.border.secondary700,
|
|
153
|
-
textColor: tokens.semantic.color.text.
|
|
155
|
+
textColor: tokens.semantic.color.text.secondary400
|
|
154
156
|
}
|
|
155
157
|
},
|
|
156
158
|
'upsell-invert': {
|
|
@@ -170,9 +172,9 @@ const theme = {
|
|
|
170
172
|
textColor: tokens.semantic.color.text.discovery200
|
|
171
173
|
},
|
|
172
174
|
disabled: {
|
|
173
|
-
bgColor: tokens.semantic.color.background.
|
|
175
|
+
bgColor: tokens.semantic.color.background.secondary700,
|
|
174
176
|
borderColor: tokens.semantic.color.border.secondary700,
|
|
175
|
-
textColor: tokens.semantic.color.text.
|
|
177
|
+
textColor: tokens.semantic.color.text.secondary400
|
|
176
178
|
}
|
|
177
179
|
},
|
|
178
180
|
'upsell-ghost': {
|
|
@@ -194,7 +196,7 @@ const theme = {
|
|
|
194
196
|
disabled: {
|
|
195
197
|
bgColor: 'transparent',
|
|
196
198
|
borderColor: tokens.semantic.color.border.secondary700,
|
|
197
|
-
textColor: tokens.semantic.color.text.
|
|
199
|
+
textColor: tokens.semantic.color.text.secondary400
|
|
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.
|
|
218
|
+
bgColor: tokens.semantic.color.background.secondary700,
|
|
217
219
|
borderColor: tokens.semantic.color.border.secondary700,
|
|
218
|
-
textColor: tokens.semantic.color.text.
|
|
220
|
+
textColor: tokens.semantic.color.text.secondary400
|
|
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.secondary990,
|
|
6
6
|
fontSize: '1.4rem',
|
|
7
7
|
fontWeight: tokens.core.font.fontWeight.normal,
|
|
8
8
|
fontStyle: 'normal',
|
|
@@ -17,45 +17,45 @@ const theme = {
|
|
|
17
17
|
toggleStates: {
|
|
18
18
|
on: {
|
|
19
19
|
normal: {
|
|
20
|
-
bgColor: tokens.semantic.color.background.
|
|
20
|
+
bgColor: tokens.semantic.color.background.secondary950,
|
|
21
21
|
textColor: tokens.semantic.color.text.secondary0,
|
|
22
|
-
borderColor: tokens.semantic.color.border.
|
|
22
|
+
borderColor: tokens.semantic.color.border.secondary500
|
|
23
23
|
},
|
|
24
24
|
hover: {
|
|
25
|
-
bgColor: tokens.semantic.color.background.
|
|
25
|
+
bgColor: tokens.semantic.color.background.secondary950,
|
|
26
26
|
textColor: tokens.semantic.color.text.secondary0,
|
|
27
|
-
borderColor: tokens.semantic.color.border.
|
|
27
|
+
borderColor: tokens.semantic.color.border.secondary500
|
|
28
28
|
},
|
|
29
29
|
active: {
|
|
30
|
-
bgColor: tokens.semantic.color.background.
|
|
30
|
+
bgColor: tokens.semantic.color.background.secondary950,
|
|
31
31
|
textColor: tokens.semantic.color.text.secondary0,
|
|
32
|
-
borderColor: tokens.semantic.color.border.
|
|
32
|
+
borderColor: tokens.semantic.color.border.secondary500
|
|
33
33
|
},
|
|
34
34
|
disabled: {
|
|
35
|
-
bgColor: tokens.semantic.color.background.
|
|
36
|
-
textColor: tokens.semantic.color.text.
|
|
37
|
-
borderColor:
|
|
35
|
+
bgColor: tokens.semantic.color.background.secondary950,
|
|
36
|
+
textColor: tokens.semantic.color.text.secondary400,
|
|
37
|
+
borderColor: tokens.semantic.color.border.secondary500
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
off: {
|
|
41
41
|
normal: {
|
|
42
|
-
bgColor:
|
|
42
|
+
bgColor: 'transparent',
|
|
43
43
|
textColor: tokens.semantic.color.text.secondary300,
|
|
44
44
|
borderColor: 'transparent'
|
|
45
45
|
},
|
|
46
46
|
hover: {
|
|
47
|
-
bgColor:
|
|
48
|
-
textColor: tokens.semantic.color.text.
|
|
47
|
+
bgColor: 'transparent',
|
|
48
|
+
textColor: tokens.semantic.color.text.secondary0,
|
|
49
49
|
borderColor: 'transparent'
|
|
50
50
|
},
|
|
51
51
|
active: {
|
|
52
|
-
bgColor:
|
|
53
|
-
textColor: tokens.semantic.color.text.
|
|
52
|
+
bgColor: 'transparent',
|
|
53
|
+
textColor: tokens.semantic.color.text.secondary0,
|
|
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.secondary400,
|
|
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%',
|
|
@@ -5,31 +6,31 @@ const theme = {
|
|
|
5
6
|
variants: {
|
|
6
7
|
primary: {
|
|
7
8
|
bgColor: tokens.semantic.color.background.secondary900,
|
|
8
|
-
borderColor: tokens.semantic.color.border.
|
|
9
|
+
borderColor: tokens.semantic.color.border.secondary700
|
|
9
10
|
},
|
|
10
11
|
secondary: {
|
|
11
|
-
bgColor: tokens.semantic.color.background.
|
|
12
|
+
bgColor: tokens.semantic.color.background.secondary950,
|
|
12
13
|
borderColor: tokens.semantic.color.border.secondary700
|
|
13
14
|
},
|
|
14
15
|
informative: {
|
|
15
|
-
bgColor: tokens.semantic.color.background.
|
|
16
|
-
borderColor: tokens.semantic.color.border.
|
|
16
|
+
bgColor: tokens.semantic.color.background.informative0,
|
|
17
|
+
borderColor: withOpacity(tokens.semantic.color.border.informative200, 0.24)
|
|
17
18
|
},
|
|
18
19
|
success: {
|
|
19
|
-
bgColor: tokens.semantic.color.background.
|
|
20
|
-
borderColor: tokens.semantic.color.border.success500
|
|
20
|
+
bgColor: tokens.semantic.color.background.success0,
|
|
21
|
+
borderColor: withOpacity(tokens.semantic.color.border.success500, 0.24)
|
|
21
22
|
},
|
|
22
23
|
notice: {
|
|
23
|
-
bgColor: tokens.semantic.color.background.
|
|
24
|
-
borderColor: tokens.semantic.color.border.
|
|
24
|
+
bgColor: tokens.semantic.color.background.notice0,
|
|
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.primary300, 0.24)
|
|
33
34
|
},
|
|
34
35
|
upsell: {
|
|
35
36
|
bgColor: tokens.semantic.color.background.discovery900,
|