@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,14 +1,14 @@
|
|
|
1
|
-
import { tokens } from '../../tokens';
|
|
2
1
|
import sunIcon from '../assets/Sun.svg';
|
|
3
2
|
import moonIcon from '../assets/Moon.svg';
|
|
3
|
+
import { tokens } from '../../tokens';
|
|
4
4
|
const theme = {
|
|
5
5
|
width: '3.6rem',
|
|
6
6
|
height: '2.2rem',
|
|
7
7
|
padding: '0.1rem',
|
|
8
8
|
borderRadius: '10rem',
|
|
9
9
|
borderWidth: '0.1rem',
|
|
10
|
-
borderColor: tokens.semantic.color.border.
|
|
11
|
-
bgColor: tokens.semantic.color.background.
|
|
10
|
+
borderColor: tokens.semantic.color.border.secondary700,
|
|
11
|
+
bgColor: tokens.semantic.color.background.secondary990,
|
|
12
12
|
thumb: {
|
|
13
13
|
icon: `url("${moonIcon}")`,
|
|
14
14
|
iconAspectRatio: '1/1',
|
|
@@ -9,43 +9,46 @@ const theme = {
|
|
|
9
9
|
toggleStates: {
|
|
10
10
|
on: {
|
|
11
11
|
normal: {
|
|
12
|
-
bgColor: tokens.semantic.color.background.
|
|
13
|
-
|
|
12
|
+
bgColor: tokens.semantic.color.background.secondary950,
|
|
13
|
+
borderColor: tokens.semantic.color.border.secondary700,
|
|
14
|
+
textColor: tokens.semantic.color.text.secondary0
|
|
14
15
|
},
|
|
15
16
|
hover: {
|
|
16
|
-
bgColor: tokens.semantic.color.background.
|
|
17
|
-
|
|
17
|
+
bgColor: tokens.semantic.color.background.secondary950,
|
|
18
|
+
borderColor: tokens.semantic.color.border.secondary700,
|
|
19
|
+
textColor: tokens.semantic.color.text.secondary0
|
|
18
20
|
},
|
|
19
21
|
active: {
|
|
20
|
-
bgColor:
|
|
21
|
-
|
|
22
|
+
bgColor: tokens.semantic.color.background.secondary950,
|
|
23
|
+
borderColor: tokens.semantic.color.border.secondary700,
|
|
24
|
+
textColor: tokens.semantic.color.text.secondary0
|
|
22
25
|
},
|
|
23
26
|
disabled: {
|
|
24
27
|
bgColor: transparent,
|
|
25
|
-
textColor: tokens.semantic.color.text.
|
|
28
|
+
textColor: tokens.semantic.color.text.secondary400
|
|
26
29
|
}
|
|
27
30
|
},
|
|
28
31
|
off: {
|
|
29
32
|
normal: {
|
|
30
33
|
bgColor: transparent,
|
|
31
|
-
textColor: tokens.semantic.color.text.
|
|
34
|
+
textColor: tokens.semantic.color.text.secondary300
|
|
32
35
|
},
|
|
33
36
|
hover: {
|
|
34
|
-
bgColor: tokens.semantic.color.background.
|
|
35
|
-
textColor: tokens.semantic.color.text.
|
|
37
|
+
bgColor: tokens.semantic.color.background.secondary900,
|
|
38
|
+
textColor: tokens.semantic.color.text.secondary0
|
|
36
39
|
},
|
|
37
40
|
active: {
|
|
38
|
-
bgColor: tokens.semantic.color.background.
|
|
39
|
-
textColor: tokens.semantic.color.text.
|
|
41
|
+
bgColor: tokens.semantic.color.background.secondary990,
|
|
42
|
+
textColor: tokens.semantic.color.text.secondary0
|
|
40
43
|
},
|
|
41
44
|
disabled: {
|
|
42
45
|
bgColor: transparent,
|
|
43
|
-
textColor: tokens.semantic.color.text.
|
|
46
|
+
textColor: tokens.semantic.color.text.secondary400
|
|
44
47
|
}
|
|
45
48
|
}
|
|
46
49
|
},
|
|
47
50
|
counter: {
|
|
48
|
-
bgColor: tokens.semantic.color.background.
|
|
51
|
+
bgColor: tokens.semantic.color.background.secondary0,
|
|
49
52
|
textColor: tokens.semantic.color.text.secondary950,
|
|
50
53
|
disabledOpacity: '0.3',
|
|
51
54
|
padding: '0.1rem 0.4rem',
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { tokens } from '../../tokens';
|
|
2
2
|
const theme = {
|
|
3
|
-
textColor: tokens.semantic.color.text.
|
|
4
|
-
bgColor: tokens.semantic.color.background.
|
|
5
|
-
shadow: `0 0 0
|
|
6
|
-
borderRadius: '0.
|
|
3
|
+
textColor: tokens.semantic.color.text.secondary300,
|
|
4
|
+
bgColor: tokens.semantic.color.background.secondary950,
|
|
5
|
+
shadow: `0 0 0 1px ${tokens.semantic.color.border.secondary500}, ${tokens.core.shadow.shadow400}`,
|
|
6
|
+
borderRadius: '0.5rem',
|
|
7
7
|
minWidth: 'initial',
|
|
8
8
|
maxWidth: '30rem',
|
|
9
|
-
blockPadding: '
|
|
10
|
-
inlinePadding: '1.
|
|
9
|
+
blockPadding: '0.9rem',
|
|
10
|
+
inlinePadding: '1.1rem',
|
|
11
11
|
arrow: {
|
|
12
12
|
width: '16px',
|
|
13
13
|
height: '8px',
|
|
14
|
-
shadow:
|
|
14
|
+
shadow: `0 1px 0 ${tokens.semantic.color.border.secondary500}`
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
17
|
export default theme;
|
|
@@ -5,11 +5,11 @@ const theme = {
|
|
|
5
5
|
inlinePadding: '0.8rem 1.6rem',
|
|
6
6
|
blockPadding: '0.5rem',
|
|
7
7
|
checkboxGap: '0.8rem',
|
|
8
|
-
selectedBgColor: tokens.semantic.color.background.
|
|
8
|
+
selectedBgColor: tokens.semantic.color.background.secondary900,
|
|
9
9
|
height: '3rem'
|
|
10
10
|
},
|
|
11
11
|
arrow: {
|
|
12
|
-
iconColor: tokens.semantic.color.icon.
|
|
12
|
+
iconColor: tokens.semantic.color.icon.secondary400,
|
|
13
13
|
gap: '0.4rem'
|
|
14
14
|
}
|
|
15
15
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { tokens } from '../../tokens';
|
|
2
2
|
const theme = {
|
|
3
3
|
colors: {
|
|
4
|
-
primary: tokens.semantic.color.
|
|
5
|
-
secondary: tokens.semantic.color.
|
|
6
|
-
notice: tokens.semantic.color.
|
|
7
|
-
success: tokens.semantic.color.
|
|
8
|
-
attention: tokens.semantic.color.
|
|
9
|
-
danger: tokens.semantic.color.
|
|
4
|
+
primary: tokens.semantic.color.background.secondary0,
|
|
5
|
+
secondary: tokens.semantic.color.background.secondary300,
|
|
6
|
+
notice: tokens.semantic.color.background.notice400,
|
|
7
|
+
success: tokens.semantic.color.background.success500,
|
|
8
|
+
attention: tokens.semantic.color.background.notice400,
|
|
9
|
+
danger: tokens.semantic.color.background.primary300,
|
|
10
10
|
upsell: tokens.semantic.color.text.discovery500,
|
|
11
|
-
informative: tokens.semantic.color.
|
|
11
|
+
informative: tokens.semantic.color.background.informative300
|
|
12
12
|
},
|
|
13
13
|
heading: {
|
|
14
14
|
fontFamily: tokens.core.font.fontFamily.regular,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { withOpacity } from '../../../../utils';
|
|
1
2
|
import { tokens } from '../../tokens';
|
|
2
3
|
const theme = {
|
|
3
4
|
gap: '1.6rem',
|
|
@@ -6,49 +7,49 @@ const theme = {
|
|
|
6
7
|
},
|
|
7
8
|
variants: {
|
|
8
9
|
white: {
|
|
9
|
-
backgroundColor: tokens.semantic.color.background.
|
|
10
|
-
color: tokens.semantic.color.text.
|
|
11
|
-
borderColor: tokens.semantic.color.border.
|
|
10
|
+
backgroundColor: tokens.semantic.color.background.secondary950,
|
|
11
|
+
color: tokens.semantic.color.text.secondary0,
|
|
12
|
+
borderColor: tokens.semantic.color.border.secondary700
|
|
12
13
|
},
|
|
13
14
|
light: {
|
|
14
|
-
backgroundColor: tokens.semantic.color.background.
|
|
15
|
-
color: tokens.semantic.color.text.
|
|
16
|
-
borderColor: tokens.semantic.color.border.
|
|
15
|
+
backgroundColor: tokens.semantic.color.background.secondary900,
|
|
16
|
+
color: tokens.semantic.color.text.secondary0,
|
|
17
|
+
borderColor: tokens.semantic.color.border.secondary700
|
|
17
18
|
},
|
|
18
19
|
default: {
|
|
19
|
-
backgroundColor: tokens.semantic.color.background.
|
|
20
|
-
color: tokens.semantic.color.text.
|
|
21
|
-
borderColor: tokens.semantic.color.border.
|
|
20
|
+
backgroundColor: tokens.semantic.color.background.secondary990,
|
|
21
|
+
color: tokens.semantic.color.text.secondary0,
|
|
22
|
+
borderColor: tokens.semantic.color.border.secondary500
|
|
22
23
|
},
|
|
23
24
|
informative: {
|
|
24
|
-
backgroundColor: tokens.semantic.color.background.
|
|
25
|
-
color: tokens.semantic.color.text.
|
|
26
|
-
borderColor: tokens.semantic.color.border.
|
|
25
|
+
backgroundColor: tokens.semantic.color.background.informative0,
|
|
26
|
+
color: tokens.semantic.color.text.informative300,
|
|
27
|
+
borderColor: withOpacity(tokens.semantic.color.border.informative200, 0.24)
|
|
27
28
|
},
|
|
28
29
|
success: {
|
|
29
|
-
backgroundColor: tokens.semantic.color.background.
|
|
30
|
-
color: tokens.semantic.color.text.
|
|
31
|
-
borderColor: tokens.semantic.color.border.
|
|
30
|
+
backgroundColor: tokens.semantic.color.background.success0,
|
|
31
|
+
color: tokens.semantic.color.text.success500,
|
|
32
|
+
borderColor: withOpacity(tokens.semantic.color.border.success500, 0.24)
|
|
32
33
|
},
|
|
33
34
|
notice: {
|
|
34
|
-
backgroundColor: tokens.semantic.color.background.
|
|
35
|
-
color: tokens.semantic.color.text.
|
|
36
|
-
borderColor: tokens.semantic.color.border.
|
|
35
|
+
backgroundColor: tokens.semantic.color.background.notice0,
|
|
36
|
+
color: tokens.semantic.color.text.notice400,
|
|
37
|
+
borderColor: withOpacity(tokens.semantic.color.border.notice400, 0.24)
|
|
37
38
|
},
|
|
38
39
|
danger: {
|
|
39
|
-
backgroundColor: tokens.semantic.color.background.
|
|
40
|
-
color: tokens.semantic.color.text.
|
|
41
|
-
borderColor: tokens.semantic.color.border.
|
|
40
|
+
backgroundColor: tokens.semantic.color.background.primary0,
|
|
41
|
+
color: tokens.semantic.color.text.primary300,
|
|
42
|
+
borderColor: withOpacity(tokens.semantic.color.border.primary300, 0.24)
|
|
42
43
|
},
|
|
43
44
|
attention: {
|
|
44
|
-
backgroundColor: tokens.semantic.color.background.
|
|
45
|
-
color: tokens.semantic.color.text.
|
|
46
|
-
borderColor: tokens.semantic.color.border.
|
|
45
|
+
backgroundColor: tokens.semantic.color.background.notice0,
|
|
46
|
+
color: tokens.semantic.color.text.notice400,
|
|
47
|
+
borderColor: withOpacity(tokens.semantic.color.border.notice400, 0.24)
|
|
47
48
|
},
|
|
48
49
|
disabled: {
|
|
49
|
-
backgroundColor: tokens.semantic.color.background.
|
|
50
|
-
color: tokens.semantic.color.text.
|
|
51
|
-
borderColor: tokens.semantic.color.border.
|
|
50
|
+
backgroundColor: tokens.semantic.color.background.secondary700,
|
|
51
|
+
color: tokens.semantic.color.text.secondary400,
|
|
52
|
+
borderColor: tokens.semantic.color.border.secondary700
|
|
52
53
|
}
|
|
53
54
|
}
|
|
54
55
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { tokens } from '../../tokens';
|
|
2
2
|
const theme = {
|
|
3
|
-
bgColor: tokens.semantic.color.background.
|
|
4
|
-
textColor: tokens.semantic.color.
|
|
3
|
+
bgColor: tokens.semantic.color.background.secondary950,
|
|
4
|
+
textColor: tokens.semantic.color.text.secondary0,
|
|
5
5
|
fontFamily: tokens.core.font.fontFamily.regular,
|
|
6
6
|
fontSize: tokens.core.font.fontSize.s14,
|
|
7
7
|
lineHeight: '1.5'
|
|
@@ -2,10 +2,10 @@ import { tokens } from '../../tokens';
|
|
|
2
2
|
const theme = {
|
|
3
3
|
width: '0.5rem',
|
|
4
4
|
height: '0.5rem',
|
|
5
|
-
bgColor:
|
|
5
|
+
bgColor: 'transparent',
|
|
6
6
|
padding: '0.1rem',
|
|
7
7
|
thumb: {
|
|
8
|
-
bgColor: tokens.semantic.color.background.
|
|
8
|
+
bgColor: tokens.semantic.color.background.secondary700,
|
|
9
9
|
borderRadius: '99rem'
|
|
10
10
|
}
|
|
11
11
|
};
|
|
@@ -36,7 +36,7 @@ const semanticColors = {
|
|
|
36
36
|
secondary800: '#163341',
|
|
37
37
|
secondary900: '#0D212C',
|
|
38
38
|
secondary950: '#091A23',
|
|
39
|
-
secondary990: '#
|
|
39
|
+
secondary990: '#07151C',
|
|
40
40
|
success0: '#1C2B16',
|
|
41
41
|
success50: '#24361C',
|
|
42
42
|
success100: '#2C421F',
|
|
@@ -140,7 +140,7 @@ export const tokens = {
|
|
|
140
140
|
shadow100: '0 1px 2px rgba(0, 0, 0, 0.3)',
|
|
141
141
|
shadow200: '0 4px 12px rgba(0, 0, 0, 0.35)',
|
|
142
142
|
shadow300: '0 4px 12px rgba(0, 0, 0, 0.4)',
|
|
143
|
-
shadow400: '0
|
|
143
|
+
shadow400: '0 16px 36px rgba(0, 0, 0, 0.45)',
|
|
144
144
|
shadow500: '0 24px 48px rgba(0, 0, 0, 0.5)',
|
|
145
145
|
shadow600: '0 24px 48px rgba(0, 0, 0, 0.55)',
|
|
146
146
|
shadow700: '0 4px 12px rgba(0, 0, 0, 0.35), 0 24px 48px rgba(0, 0, 0, 0.45)'
|
|
@@ -207,7 +207,7 @@ export const tokens = {
|
|
|
207
207
|
focus: {
|
|
208
208
|
margin: '2px',
|
|
209
209
|
size: '2px',
|
|
210
|
-
color: semanticColors.
|
|
210
|
+
color: semanticColors.primary400
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
213
|
};
|
|
@@ -11,10 +11,58 @@ const theme = {
|
|
|
11
11
|
tokens.semantic.color.icon.discovery700
|
|
12
12
|
],
|
|
13
13
|
grid: tokens.semantic.color.border.secondary200,
|
|
14
|
+
gridDashArray: '3',
|
|
14
15
|
axisLabel: tokens.semantic.color.text.secondary500,
|
|
15
16
|
threshold: {
|
|
16
17
|
warning: tokens.semantic.color.icon.attention400,
|
|
17
18
|
critical: tokens.semantic.color.icon.danger500
|
|
19
|
+
},
|
|
20
|
+
axis: {
|
|
21
|
+
fontFamily: tokens.core.font.fontFamily.regular,
|
|
22
|
+
fontSize: { S: tokens.core.font.fontSize.s10, M: tokens.core.font.fontSize.s12 }
|
|
23
|
+
},
|
|
24
|
+
series: {
|
|
25
|
+
strokeWidth: { S: 2, M: 2 },
|
|
26
|
+
areaOpacity: { from: 0.3, to: 0 }
|
|
27
|
+
},
|
|
28
|
+
cursor: {
|
|
29
|
+
color: tokens.semantic.color.border.secondary300,
|
|
30
|
+
width: 1
|
|
31
|
+
},
|
|
32
|
+
activeDot: {
|
|
33
|
+
size: 8,
|
|
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.4rem',
|
|
47
|
+
shadow: tokens.core.shadow.shadow200,
|
|
48
|
+
padding: '0.8rem 1.2rem',
|
|
49
|
+
fontSize: tokens.core.font.fontSize.s12,
|
|
50
|
+
labelFontSize: tokens.core.font.fontSize.s12,
|
|
51
|
+
valueFontFamily: tokens.core.font.fontFamily.regular,
|
|
52
|
+
markerSize: '0.8rem'
|
|
53
|
+
},
|
|
54
|
+
legend: {
|
|
55
|
+
textColor: tokens.semantic.color.text.secondary600,
|
|
56
|
+
fontFamily: { S: tokens.core.font.fontFamily.regular, M: tokens.core.font.fontFamily.regular },
|
|
57
|
+
fontSize: { S: tokens.core.font.fontSize.s12, M: tokens.core.font.fontSize.s12 },
|
|
58
|
+
gap: { S: '1.2rem', M: '1.6rem' },
|
|
59
|
+
dotSize: '0.8rem',
|
|
60
|
+
lineWidth: '1.2rem',
|
|
61
|
+
lineHeight: '0.2rem'
|
|
62
|
+
},
|
|
63
|
+
sparkline: {
|
|
64
|
+
strokeWidth: 1.5,
|
|
65
|
+
areaOpacity: { from: 0.4, to: 0.04 }
|
|
18
66
|
}
|
|
19
67
|
};
|
|
20
68
|
export default theme;
|
|
@@ -25,30 +25,32 @@ const theme = {
|
|
|
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.primary700
|
|
29
29
|
},
|
|
30
30
|
active: {
|
|
31
|
-
bgColor: tokens.semantic.color.background.
|
|
31
|
+
bgColor: tokens.semantic.color.background.primary800
|
|
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
|
secondary: {
|
|
39
39
|
normal: {
|
|
40
|
-
bgColor:
|
|
41
|
-
textColor: tokens.semantic.color.text.
|
|
40
|
+
bgColor: 'transparent',
|
|
41
|
+
textColor: tokens.semantic.color.text.secondary500
|
|
42
42
|
},
|
|
43
43
|
hover: {
|
|
44
|
-
bgColor: tokens.semantic.color.background.
|
|
44
|
+
bgColor: tokens.semantic.color.background.neutral100,
|
|
45
|
+
textColor: tokens.semantic.color.text.secondary950
|
|
45
46
|
},
|
|
46
47
|
active: {
|
|
47
|
-
bgColor: tokens.semantic.color.background.
|
|
48
|
+
bgColor: tokens.semantic.color.background.secondary50,
|
|
49
|
+
textColor: tokens.semantic.color.text.secondary950
|
|
48
50
|
},
|
|
49
51
|
disabled: {
|
|
50
|
-
bgColor: tokens.semantic.color.background.
|
|
51
|
-
textColor: tokens.semantic.color.text.
|
|
52
|
+
bgColor: tokens.semantic.color.background.secondary200,
|
|
53
|
+
textColor: tokens.semantic.color.text.secondary500
|
|
52
54
|
}
|
|
53
55
|
}
|
|
54
56
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { tokens } from '../../tokens';
|
|
2
2
|
const theme = {
|
|
3
|
-
height: '
|
|
4
|
-
padding: '
|
|
3
|
+
height: '4.8rem',
|
|
4
|
+
padding: '0.8rem 1.4rem 0.8rem 2.4rem',
|
|
5
5
|
separator: `1px solid ${tokens.semantic.color.border.secondary200}`,
|
|
6
6
|
boxShadow: `0px 1px 0px 0px ${tokens.semantic.color.border.secondary200}`,
|
|
7
7
|
group: {
|
|
@@ -10,15 +10,15 @@ const theme = {
|
|
|
10
10
|
variants: {
|
|
11
11
|
default: {
|
|
12
12
|
bgColor: tokens.semantic.color.background.secondary0,
|
|
13
|
-
color: tokens.semantic.color.
|
|
14
|
-
userNameColor: tokens.semantic.color.background.
|
|
15
|
-
accountNameColor: tokens.semantic.color.
|
|
13
|
+
color: tokens.semantic.color.text.secondary950,
|
|
14
|
+
userNameColor: tokens.semantic.color.background.secondary950,
|
|
15
|
+
accountNameColor: tokens.semantic.color.text.secondary500
|
|
16
16
|
},
|
|
17
17
|
alert: {
|
|
18
|
-
bgColor: tokens.semantic.color.background.
|
|
18
|
+
bgColor: tokens.semantic.color.background.primary0,
|
|
19
19
|
color: tokens.semantic.color.text.secondary950,
|
|
20
|
-
userNameColor: tokens.semantic.color.
|
|
21
|
-
accountNameColor: tokens.semantic.color.
|
|
20
|
+
userNameColor: tokens.semantic.color.background.secondary950,
|
|
21
|
+
accountNameColor: tokens.semantic.color.background.secondary950
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
};
|
|
@@ -8,7 +8,7 @@ const theme = {
|
|
|
8
8
|
toggleStates: {
|
|
9
9
|
on: {
|
|
10
10
|
normal: {
|
|
11
|
-
bgColor: tokens.semantic.color.background.
|
|
11
|
+
bgColor: tokens.semantic.color.background.neutral100,
|
|
12
12
|
borderColor: tokens.semantic.color.border.secondary200,
|
|
13
13
|
textColor: tokens.semantic.color.text.secondary950
|
|
14
14
|
}
|
|
@@ -20,8 +20,8 @@ const theme = {
|
|
|
20
20
|
textColor: tokens.semantic.color.text.secondary950
|
|
21
21
|
},
|
|
22
22
|
hover: {
|
|
23
|
-
bgColor: tokens.semantic.color.background.
|
|
24
|
-
borderColor: tokens.semantic.color.border.
|
|
23
|
+
bgColor: tokens.semantic.color.background.neutral100,
|
|
24
|
+
borderColor: tokens.semantic.color.border.neutral100,
|
|
25
25
|
textColor: tokens.semantic.color.text.secondary950
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -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.secondary950
|
|
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 = {
|
|
@@ -10,51 +11,51 @@ const theme = {
|
|
|
10
11
|
variants: {
|
|
11
12
|
white: {
|
|
12
13
|
backgroundColor: tokens.semantic.color.background.secondary0,
|
|
13
|
-
color: tokens.semantic.color.text.
|
|
14
|
+
color: tokens.semantic.color.text.secondary950,
|
|
14
15
|
borderColor: tokens.semantic.color.border.secondary200,
|
|
15
|
-
iconColor: tokens.semantic.color.
|
|
16
|
+
iconColor: tokens.semantic.color.icon.secondary950
|
|
16
17
|
},
|
|
17
18
|
light: {
|
|
18
19
|
backgroundColor: tokens.semantic.color.background.secondary50,
|
|
19
|
-
color: tokens.semantic.color.text.
|
|
20
|
+
color: tokens.semantic.color.text.secondary950,
|
|
20
21
|
borderColor: tokens.semantic.color.border.secondary200,
|
|
21
|
-
iconColor: tokens.semantic.color.
|
|
22
|
+
iconColor: tokens.semantic.color.icon.secondary950
|
|
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.neutral100,
|
|
26
|
+
color: tokens.semantic.color.text.secondary950,
|
|
27
|
+
borderColor: tokens.semantic.color.border.secondary200,
|
|
28
|
+
iconColor: tokens.semantic.color.icon.secondary950
|
|
28
29
|
},
|
|
29
30
|
informative: {
|
|
30
31
|
backgroundColor: tokens.semantic.color.background.informative0,
|
|
31
|
-
color:
|
|
32
|
-
borderColor: tokens.semantic.color.border.
|
|
33
|
-
iconColor:
|
|
32
|
+
color: '#0F6FB8',
|
|
33
|
+
borderColor: withOpacity(tokens.semantic.color.border.informative300, 0.24),
|
|
34
|
+
iconColor: '#0F6FB8'
|
|
34
35
|
},
|
|
35
36
|
success: {
|
|
36
37
|
backgroundColor: tokens.semantic.color.background.success0,
|
|
37
|
-
color:
|
|
38
|
-
borderColor: tokens.semantic.color.border.
|
|
39
|
-
iconColor:
|
|
38
|
+
color: '#15803D',
|
|
39
|
+
borderColor: withOpacity(tokens.semantic.color.border.success500, 0.24),
|
|
40
|
+
iconColor: '#15803D'
|
|
40
41
|
},
|
|
41
42
|
notice: {
|
|
42
43
|
backgroundColor: tokens.semantic.color.background.notice0,
|
|
43
|
-
color:
|
|
44
|
-
borderColor: tokens.semantic.color.border.
|
|
45
|
-
iconColor:
|
|
44
|
+
color: '#B45309',
|
|
45
|
+
borderColor: withOpacity(tokens.semantic.color.border.notice400, 0.24),
|
|
46
|
+
iconColor: '#B45309'
|
|
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.danger500,
|
|
51
|
+
borderColor: withOpacity(tokens.semantic.color.border.primary400, 0.24),
|
|
52
|
+
iconColor: tokens.semantic.color.icon.danger500
|
|
52
53
|
},
|
|
53
54
|
attention: {
|
|
54
|
-
backgroundColor: tokens.semantic.color.background.
|
|
55
|
-
color:
|
|
56
|
-
borderColor: tokens.semantic.color.border.
|
|
57
|
-
iconColor:
|
|
55
|
+
backgroundColor: tokens.semantic.color.background.notice0,
|
|
56
|
+
color: '#B45309',
|
|
57
|
+
borderColor: withOpacity(tokens.semantic.color.border.notice400, 0.24),
|
|
58
|
+
iconColor: '#B45309'
|
|
58
59
|
},
|
|
59
60
|
upsell: {
|
|
60
61
|
backgroundColor: tokens.semantic.color.background.discovery0,
|
|
@@ -63,10 +64,10 @@ const theme = {
|
|
|
63
64
|
iconColor: tokens.semantic.color.text.discovery600
|
|
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.secondary200,
|
|
68
|
+
color: tokens.semantic.color.text.secondary500,
|
|
69
|
+
borderColor: tokens.semantic.color.border.secondary200,
|
|
70
|
+
iconColor: tokens.semantic.color.icon.secondary500
|
|
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: {
|
|
@@ -11,41 +12,41 @@ const theme = {
|
|
|
11
12
|
default: {
|
|
12
13
|
normal: {
|
|
13
14
|
bgColor: tokens.semantic.color.background.secondary0,
|
|
14
|
-
borderColor: tokens.semantic.color.border.
|
|
15
|
+
borderColor: tokens.semantic.color.border.secondary200,
|
|
15
16
|
markerColor: 'transparent',
|
|
16
17
|
textColor: tokens.semantic.color.text.secondary950,
|
|
17
18
|
iconColor: tokens.semantic.color.icon.secondary950
|
|
18
19
|
},
|
|
19
20
|
hover: {
|
|
20
21
|
bgColor: tokens.semantic.color.background.secondary0,
|
|
21
|
-
borderColor: tokens.semantic.color.border.
|
|
22
|
-
markerColor:
|
|
22
|
+
borderColor: tokens.semantic.color.border.secondary400,
|
|
23
|
+
markerColor: 'transparent',
|
|
23
24
|
textColor: tokens.semantic.color.text.secondary950,
|
|
24
25
|
iconColor: tokens.semantic.color.icon.secondary950
|
|
25
26
|
},
|
|
26
27
|
disabled: {
|
|
27
|
-
bgColor: tokens.semantic.color.background.
|
|
28
|
-
borderColor: tokens.semantic.color.border.
|
|
28
|
+
bgColor: tokens.semantic.color.background.neutral100,
|
|
29
|
+
borderColor: tokens.semantic.color.border.secondary200,
|
|
29
30
|
markerColor: 'transparent',
|
|
30
|
-
textColor: tokens.semantic.color.text.
|
|
31
|
-
iconColor: tokens.semantic.color.icon.
|
|
31
|
+
textColor: tokens.semantic.color.text.secondary500,
|
|
32
|
+
iconColor: tokens.semantic.color.icon.secondary500,
|
|
32
33
|
opacity: '0.5'
|
|
33
34
|
}
|
|
34
35
|
},
|
|
35
36
|
checked: {
|
|
36
37
|
normal: {
|
|
37
|
-
bgColor:
|
|
38
|
-
borderColor:
|
|
39
|
-
markerColor:
|
|
38
|
+
bgColor: withOpacity('#0F6FB8', 0.08),
|
|
39
|
+
borderColor: '#0F6FB8',
|
|
40
|
+
markerColor: 'transparent',
|
|
40
41
|
textColor: tokens.semantic.color.text.secondary950,
|
|
41
42
|
iconColor: tokens.semantic.color.icon.secondary950
|
|
42
43
|
},
|
|
43
44
|
disabled: {
|
|
44
|
-
bgColor: tokens.semantic.color.background.
|
|
45
|
-
borderColor: tokens.semantic.color.border.
|
|
46
|
-
markerColor:
|
|
47
|
-
textColor: tokens.semantic.color.text.
|
|
48
|
-
iconColor: tokens.semantic.color.icon.
|
|
45
|
+
bgColor: tokens.semantic.color.background.neutral100,
|
|
46
|
+
borderColor: tokens.semantic.color.border.secondary500,
|
|
47
|
+
markerColor: 'transparent',
|
|
48
|
+
textColor: tokens.semantic.color.text.secondary500,
|
|
49
|
+
iconColor: tokens.semantic.color.icon.secondary500,
|
|
49
50
|
opacity: '0.5'
|
|
50
51
|
}
|
|
51
52
|
}
|
|
@@ -4,7 +4,7 @@ const theme = {
|
|
|
4
4
|
link: {
|
|
5
5
|
states: {
|
|
6
6
|
normal: {
|
|
7
|
-
textColor: tokens.semantic.color.text.
|
|
7
|
+
textColor: tokens.semantic.color.text.secondary500
|
|
8
8
|
},
|
|
9
9
|
hover: {
|
|
10
10
|
textColor: tokens.semantic.color.text.secondary950
|
|
@@ -22,7 +22,7 @@ const theme = {
|
|
|
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.secondary500
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
28
|
export default theme;
|