@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.
Files changed (121) hide show
  1. package/dist/index.js +3875 -3570
  2. package/dist/index.umd.cjs +13 -13
  3. package/dist/themes/themeDark/theme/components/charts.js +48 -0
  4. package/dist/themes/themeDarkNext/theme/components/actionIconButton.js +13 -11
  5. package/dist/themes/themeDarkNext/theme/components/appBar.js +12 -12
  6. package/dist/themes/themeDarkNext/theme/components/appSelectionMenu.js +8 -8
  7. package/dist/themes/themeDarkNext/theme/components/badge.js +36 -35
  8. package/dist/themes/themeDarkNext/theme/components/boxSelectionGroup.js +20 -19
  9. package/dist/themes/themeDarkNext/theme/components/breadcrumbs.js +6 -6
  10. package/dist/themes/themeDarkNext/theme/components/button.js +35 -33
  11. package/dist/themes/themeDarkNext/theme/components/buttonGroup.js +17 -17
  12. package/dist/themes/themeDarkNext/theme/components/card.js +13 -12
  13. package/dist/themes/themeDarkNext/theme/components/charts.js +57 -6
  14. package/dist/themes/themeDarkNext/theme/components/checkbox.js +26 -22
  15. package/dist/themes/themeDarkNext/theme/components/chip.js +10 -10
  16. package/dist/themes/themeDarkNext/theme/components/chipList.js +3 -3
  17. package/dist/themes/themeDarkNext/theme/components/drawer.js +8 -8
  18. package/dist/themes/themeDarkNext/theme/components/filters.js +4 -4
  19. package/dist/themes/themeDarkNext/theme/components/formField.js +2 -2
  20. package/dist/themes/themeDarkNext/theme/components/gauge.js +9 -9
  21. package/dist/themes/themeDarkNext/theme/components/highlightedIcon.js +15 -14
  22. package/dist/themes/themeDarkNext/theme/components/icon.js +7 -7
  23. package/dist/themes/themeDarkNext/theme/components/iconButton.js +6 -6
  24. package/dist/themes/themeDarkNext/theme/components/input.js +16 -16
  25. package/dist/themes/themeDarkNext/theme/components/keyValueList.js +4 -4
  26. package/dist/themes/themeDarkNext/theme/components/label.js +5 -5
  27. package/dist/themes/themeDarkNext/theme/components/layouts.js +1 -1
  28. package/dist/themes/themeDarkNext/theme/components/link.js +9 -9
  29. package/dist/themes/themeDarkNext/theme/components/loader.js +9 -9
  30. package/dist/themes/themeDarkNext/theme/components/menu.js +13 -13
  31. package/dist/themes/themeDarkNext/theme/components/modal.js +9 -9
  32. package/dist/themes/themeDarkNext/theme/components/moreInfoIcon.js +1 -1
  33. package/dist/themes/themeDarkNext/theme/components/popover.js +2 -2
  34. package/dist/themes/themeDarkNext/theme/components/popupCard.js +3 -3
  35. package/dist/themes/themeDarkNext/theme/components/progressBar.js +9 -9
  36. package/dist/themes/themeDarkNext/theme/components/radio.js +10 -10
  37. package/dist/themes/themeDarkNext/theme/components/searchBar.js +3 -3
  38. package/dist/themes/themeDarkNext/theme/components/section.js +9 -9
  39. package/dist/themes/themeDarkNext/theme/components/select.js +17 -17
  40. package/dist/themes/themeDarkNext/theme/components/semanticButton.js +21 -21
  41. package/dist/themes/themeDarkNext/theme/components/semanticContainer.js +16 -15
  42. package/dist/themes/themeDarkNext/theme/components/semanticIcon.js +5 -5
  43. package/dist/themes/themeDarkNext/theme/components/sideBar.js +20 -19
  44. package/dist/themes/themeDarkNext/theme/components/skeleton.js +6 -6
  45. package/dist/themes/themeDarkNext/theme/components/slider.js +12 -12
  46. package/dist/themes/themeDarkNext/theme/components/stepper.js +10 -10
  47. package/dist/themes/themeDarkNext/theme/components/switch.js +18 -18
  48. package/dist/themes/themeDarkNext/theme/components/table.js +9 -9
  49. package/dist/themes/themeDarkNext/theme/components/tableHeading.js +2 -2
  50. package/dist/themes/themeDarkNext/theme/components/tabs.js +13 -13
  51. package/dist/themes/themeDarkNext/theme/components/textButton.js +30 -29
  52. package/dist/themes/themeDarkNext/theme/components/themeModeSwitch.js +3 -3
  53. package/dist/themes/themeDarkNext/theme/components/toggleButton.js +17 -14
  54. package/dist/themes/themeDarkNext/theme/components/tooltip.js +7 -7
  55. package/dist/themes/themeDarkNext/theme/components/treeView.js +2 -2
  56. package/dist/themes/themeDarkNext/theme/components/typography.js +7 -7
  57. package/dist/themes/themeDarkNext/theme/components/windowBar.js +28 -27
  58. package/dist/themes/themeDarkNext/theme/globals/body.js +2 -2
  59. package/dist/themes/themeDarkNext/theme/globals/scrollbar.js +2 -2
  60. package/dist/themes/themeDarkNext/tokens.js +3 -3
  61. package/dist/themes/themeLight/theme/components/charts.js +48 -0
  62. package/dist/themes/themeLightNext/theme/components/actionIconButton.js +12 -10
  63. package/dist/themes/themeLightNext/theme/components/appBar.js +8 -8
  64. package/dist/themes/themeLightNext/theme/components/appSelectionMenu.js +4 -4
  65. package/dist/themes/themeLightNext/theme/components/badge.js +30 -29
  66. package/dist/themes/themeLightNext/theme/components/boxSelectionGroup.js +16 -15
  67. package/dist/themes/themeLightNext/theme/components/breadcrumbs.js +2 -2
  68. package/dist/themes/themeLightNext/theme/components/button.js +43 -41
  69. package/dist/themes/themeLightNext/theme/components/buttonGroup.js +14 -14
  70. package/dist/themes/themeLightNext/theme/components/card.js +10 -9
  71. package/dist/themes/themeLightNext/theme/components/charts.js +60 -9
  72. package/dist/themes/themeLightNext/theme/components/checkbox.js +21 -17
  73. package/dist/themes/themeLightNext/theme/components/chip.js +8 -8
  74. package/dist/themes/themeLightNext/theme/components/chipList.js +3 -3
  75. package/dist/themes/themeLightNext/theme/components/countryFlag.js +1 -1
  76. package/dist/themes/themeLightNext/theme/components/drawer.js +7 -7
  77. package/dist/themes/themeLightNext/theme/components/filters.js +2 -2
  78. package/dist/themes/themeLightNext/theme/components/formField.js +2 -2
  79. package/dist/themes/themeLightNext/theme/components/gauge.js +8 -8
  80. package/dist/themes/themeLightNext/theme/components/highlightedIcon.js +13 -12
  81. package/dist/themes/themeLightNext/theme/components/icon.js +6 -6
  82. package/dist/themes/themeLightNext/theme/components/iconButton.js +4 -4
  83. package/dist/themes/themeLightNext/theme/components/input.js +11 -11
  84. package/dist/themes/themeLightNext/theme/components/keyValueList.js +4 -4
  85. package/dist/themes/themeLightNext/theme/components/label.js +3 -3
  86. package/dist/themes/themeLightNext/theme/components/layouts.js +1 -1
  87. package/dist/themes/themeLightNext/theme/components/link.js +10 -10
  88. package/dist/themes/themeLightNext/theme/components/loader.js +9 -9
  89. package/dist/themes/themeLightNext/theme/components/menu.js +13 -13
  90. package/dist/themes/themeLightNext/theme/components/modal.js +7 -7
  91. package/dist/themes/themeLightNext/theme/components/moreInfoIcon.js +1 -1
  92. package/dist/themes/themeLightNext/theme/components/popover.js +2 -2
  93. package/dist/themes/themeLightNext/theme/components/popupCard.js +3 -3
  94. package/dist/themes/themeLightNext/theme/components/progressBar.js +8 -8
  95. package/dist/themes/themeLightNext/theme/components/radio.js +10 -10
  96. package/dist/themes/themeLightNext/theme/components/searchBar.js +3 -3
  97. package/dist/themes/themeLightNext/theme/components/section.js +7 -7
  98. package/dist/themes/themeLightNext/theme/components/select.js +15 -15
  99. package/dist/themes/themeLightNext/theme/components/semanticButton.js +25 -25
  100. package/dist/themes/themeLightNext/theme/components/semanticContainer.js +13 -12
  101. package/dist/themes/themeLightNext/theme/components/semanticIcon.js +5 -5
  102. package/dist/themes/themeLightNext/theme/components/sideBar.js +20 -19
  103. package/dist/themes/themeLightNext/theme/components/skeleton.js +6 -6
  104. package/dist/themes/themeLightNext/theme/components/slider.js +8 -8
  105. package/dist/themes/themeLightNext/theme/components/stepper.js +9 -9
  106. package/dist/themes/themeLightNext/theme/components/switch.js +18 -18
  107. package/dist/themes/themeLightNext/theme/components/table.js +6 -6
  108. package/dist/themes/themeLightNext/theme/components/tableHeading.js +2 -2
  109. package/dist/themes/themeLightNext/theme/components/tabs.js +10 -10
  110. package/dist/themes/themeLightNext/theme/components/textButton.js +26 -26
  111. package/dist/themes/themeLightNext/theme/components/themeModeSwitch.js +3 -3
  112. package/dist/themes/themeLightNext/theme/components/toggleButton.js +12 -9
  113. package/dist/themes/themeLightNext/theme/components/tooltip.js +6 -6
  114. package/dist/themes/themeLightNext/theme/components/treeView.js +2 -2
  115. package/dist/themes/themeLightNext/theme/components/typography.js +6 -6
  116. package/dist/themes/themeLightNext/theme/components/windowBar.js +28 -27
  117. package/dist/themes/themeLightNext/theme/globals/body.js +1 -1
  118. package/dist/themes/themeLightNext/theme/globals/scrollbar.js +2 -2
  119. package/dist/themes/themeLightNext/tokens.js +3 -3
  120. package/dist/themes/types/theme/components/charts.types.d.ts +55 -0
  121. package/package.json +1 -1
@@ -5,12 +5,12 @@ const theme = {
5
5
  gap: '4rem',
6
6
  tabsLine: {
7
7
  size: '4px',
8
- color: tokens.semantic.color.border.secondary100
8
+ color: tokens.semantic.color.text.secondary200
9
9
  },
10
10
  tab: {
11
11
  states: {
12
12
  normal: {
13
- textColor: tokens.semantic.color.text.secondary700,
13
+ textColor: tokens.semantic.color.text.secondary500,
14
14
  padding: '2px 0 4px',
15
15
  letterSpacing: '0.11px'
16
16
  },
@@ -20,7 +20,7 @@ const theme = {
20
20
  letterSpacing: '0'
21
21
  },
22
22
  disabled: {
23
- textColor: tokens.semantic.color.text.secondary100
23
+ textColor: tokens.semantic.color.text.secondary500
24
24
  }
25
25
  }
26
26
  },
@@ -32,10 +32,10 @@ const theme = {
32
32
  inset: 'auto 0 -4px'
33
33
  },
34
34
  hover: {
35
- color: tokens.semantic.color.border.secondary300
35
+ color: tokens.semantic.color.text.secondary400
36
36
  },
37
37
  active: {
38
- color: tokens.semantic.color.border.secondary950
38
+ color: tokens.semantic.color.text.secondary950
39
39
  }
40
40
  }
41
41
  }
@@ -49,7 +49,7 @@ const theme = {
49
49
  tab: {
50
50
  states: {
51
51
  normal: {
52
- textColor: tokens.semantic.color.text.secondary700,
52
+ textColor: tokens.semantic.color.text.secondary500,
53
53
  padding: '4px 8px',
54
54
  letterSpacing: '0.11px',
55
55
  fontSize: `1.2rem`,
@@ -58,17 +58,17 @@ const theme = {
58
58
  borderColor: tokens.semantic.color.border.transparent
59
59
  },
60
60
  hover: {
61
- bgColor: tokens.semantic.color.background.secondary100
61
+ bgColor: tokens.semantic.color.background.neutral100
62
62
  },
63
63
  active: {
64
64
  textColor: tokens.semantic.color.text.secondary950,
65
- bgColor: tokens.semantic.color.background.secondary100,
66
- borderColor: tokens.semantic.color.border.secondary300,
65
+ bgColor: tokens.semantic.color.background.neutral100,
66
+ borderColor: tokens.semantic.color.border.secondary200,
67
67
  fontWeight: tokens.core.font.fontWeight.semiBold,
68
68
  letterSpacing: '0'
69
69
  },
70
70
  disabled: {
71
- textColor: tokens.semantic.color.text.neutral300,
71
+ textColor: tokens.semantic.color.text.secondary500,
72
72
  bgColor: tokens.semantic.color.background.transparent
73
73
  }
74
74
  }
@@ -44,19 +44,19 @@ const theme = {
44
44
  states: {
45
45
  normal: {
46
46
  bgColor: transparent,
47
- textColor: tokens.semantic.color.text.primary400
47
+ textColor: '#0F6FB8'
48
48
  },
49
49
  hover: {
50
- bgColor: tokens.semantic.color.background.primary0,
51
- textColor: tokens.semantic.color.background.primary400
50
+ bgColor: transparent,
51
+ textColor: '#0F6FB8'
52
52
  },
53
53
  active: {
54
- bgColor: tokens.semantic.color.background.primary50,
55
- textColor: tokens.semantic.color.text.primary600
54
+ bgColor: transparent,
55
+ textColor: '#0F6FB8'
56
56
  },
57
57
  disabled: {
58
58
  bgColor: transparent,
59
- textColor: tokens.semantic.color.text.neutral400
59
+ textColor: tokens.semantic.color.text.secondary500
60
60
  }
61
61
  }
62
62
  },
@@ -67,16 +67,16 @@ const theme = {
67
67
  textColor: tokens.semantic.color.text.danger500
68
68
  },
69
69
  hover: {
70
- bgColor: tokens.semantic.color.background.danger0,
70
+ bgColor: transparent,
71
71
  textColor: tokens.semantic.color.text.danger500
72
72
  },
73
73
  active: {
74
- bgColor: tokens.semantic.color.background.danger100,
75
- textColor: tokens.semantic.color.text.danger600
74
+ bgColor: transparent,
75
+ textColor: tokens.semantic.color.text.danger500
76
76
  },
77
77
  disabled: {
78
78
  bgColor: transparent,
79
- textColor: tokens.semantic.color.text.neutral400
79
+ textColor: tokens.semantic.color.text.secondary500
80
80
  }
81
81
  }
82
82
  },
@@ -84,19 +84,19 @@ const theme = {
84
84
  states: {
85
85
  normal: {
86
86
  bgColor: transparent,
87
- textColor: tokens.semantic.color.text.secondary950
87
+ textColor: tokens.semantic.color.text.secondary500
88
88
  },
89
89
  hover: {
90
- bgColor: tokens.semantic.color.background.secondary100,
90
+ bgColor: transparent,
91
91
  textColor: tokens.semantic.color.text.secondary950
92
92
  },
93
93
  active: {
94
- bgColor: tokens.semantic.color.background.secondary200,
94
+ bgColor: transparent,
95
95
  textColor: tokens.semantic.color.text.secondary950
96
96
  },
97
97
  disabled: {
98
98
  bgColor: transparent,
99
- textColor: tokens.semantic.color.text.neutral400
99
+ textColor: tokens.semantic.color.text.secondary500
100
100
  }
101
101
  }
102
102
  },
@@ -104,19 +104,19 @@ const theme = {
104
104
  states: {
105
105
  normal: {
106
106
  bgColor: transparent,
107
- textColor: tokens.semantic.color.text.primary400
107
+ textColor: '#0F6FB8'
108
108
  },
109
109
  hover: {
110
110
  bgColor: transparent,
111
- textColor: tokens.semantic.color.text.primary500
111
+ textColor: '#0F6FB8'
112
112
  },
113
113
  active: {
114
114
  bgColor: transparent,
115
- textColor: tokens.semantic.color.text.primary400
115
+ textColor: '#0F6FB8'
116
116
  },
117
117
  disabled: {
118
118
  bgColor: transparent,
119
- textColor: tokens.semantic.color.text.neutral400
119
+ textColor: tokens.semantic.color.text.secondary500
120
120
  }
121
121
  }
122
122
  },
@@ -128,15 +128,15 @@ const theme = {
128
128
  },
129
129
  hover: {
130
130
  bgColor: transparent,
131
- textColor: tokens.semantic.color.text.danger400
131
+ textColor: tokens.semantic.color.text.danger500
132
132
  },
133
133
  active: {
134
134
  bgColor: transparent,
135
- textColor: tokens.semantic.color.text.danger600
135
+ textColor: tokens.semantic.color.text.danger500
136
136
  },
137
137
  disabled: {
138
138
  bgColor: transparent,
139
- textColor: tokens.semantic.color.text.neutral400
139
+ textColor: tokens.semantic.color.text.secondary500
140
140
  }
141
141
  }
142
142
  },
@@ -144,11 +144,11 @@ const theme = {
144
144
  states: {
145
145
  normal: {
146
146
  bgColor: transparent,
147
- textColor: tokens.semantic.color.text.secondary950
147
+ textColor: tokens.semantic.color.text.secondary500
148
148
  },
149
149
  hover: {
150
150
  bgColor: transparent,
151
- textColor: tokens.semantic.color.text.secondary800
151
+ textColor: tokens.semantic.color.text.secondary950
152
152
  },
153
153
  active: {
154
154
  bgColor: transparent,
@@ -156,7 +156,7 @@ const theme = {
156
156
  },
157
157
  disabled: {
158
158
  bgColor: transparent,
159
- textColor: tokens.semantic.color.text.neutral400
159
+ textColor: tokens.semantic.color.text.secondary500
160
160
  }
161
161
  }
162
162
  },
@@ -176,7 +176,7 @@ const theme = {
176
176
  },
177
177
  disabled: {
178
178
  bgColor: transparent,
179
- textColor: tokens.semantic.color.text.neutral400
179
+ textColor: tokens.semantic.color.text.secondary500
180
180
  }
181
181
  }
182
182
  },
@@ -194,7 +194,7 @@ const theme = {
194
194
  },
195
195
  disabled: {
196
196
  bgColor: transparent,
197
- textColor: tokens.semantic.color.text.neutral400
197
+ textColor: tokens.semantic.color.text.secondary500
198
198
  }
199
199
  }
200
200
  }
@@ -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.transparent,
11
- bgColor: tokens.semantic.color.background.secondary200,
10
+ borderColor: tokens.semantic.color.border.secondary200,
11
+ bgColor: tokens.semantic.color.background.secondary50,
12
12
  thumb: {
13
13
  icon: `url("${sunIcon}")`,
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.secondary200,
12
+ bgColor: tokens.semantic.color.background.secondary0,
13
+ borderColor: tokens.semantic.color.border.secondary200,
13
14
  textColor: tokens.semantic.color.text.secondary950
14
15
  },
15
16
  hover: {
16
- bgColor: tokens.semantic.color.background.neutral100,
17
+ bgColor: tokens.semantic.color.background.secondary0,
18
+ borderColor: tokens.semantic.color.border.secondary200,
17
19
  textColor: tokens.semantic.color.text.secondary950
18
20
  },
19
21
  active: {
20
- bgColor: transparent,
22
+ bgColor: tokens.semantic.color.background.secondary0,
23
+ borderColor: tokens.semantic.color.border.secondary200,
21
24
  textColor: tokens.semantic.color.text.secondary950
22
25
  },
23
26
  disabled: {
24
27
  bgColor: transparent,
25
- textColor: tokens.semantic.color.text.neutral400
28
+ textColor: tokens.semantic.color.text.secondary500
26
29
  }
27
30
  },
28
31
  off: {
29
32
  normal: {
30
33
  bgColor: transparent,
31
- textColor: tokens.semantic.color.text.secondary950
34
+ textColor: tokens.semantic.color.text.secondary500
32
35
  },
33
36
  hover: {
34
- bgColor: tokens.semantic.color.background.secondary100,
37
+ bgColor: tokens.semantic.color.background.neutral100,
35
38
  textColor: tokens.semantic.color.text.secondary950
36
39
  },
37
40
  active: {
38
- bgColor: tokens.semantic.color.background.secondary200,
41
+ bgColor: tokens.semantic.color.background.secondary50,
39
42
  textColor: tokens.semantic.color.text.secondary950
40
43
  },
41
44
  disabled: {
42
45
  bgColor: transparent,
43
- textColor: tokens.semantic.color.text.neutral400
46
+ textColor: tokens.semantic.color.text.secondary500
44
47
  }
45
48
  }
46
49
  },
47
50
  counter: {
48
- bgColor: tokens.semantic.color.background.secondary900,
51
+ bgColor: tokens.semantic.color.background.secondary950,
49
52
  textColor: tokens.semantic.color.text.secondary0,
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.secondary950,
3
+ textColor: tokens.semantic.color.text.secondary500,
4
4
  bgColor: tokens.semantic.color.background.secondary0,
5
- shadow: tokens.core.shadow.shadow400,
6
- borderRadius: '0.8rem',
5
+ shadow: `0 0 0 1px ${tokens.semantic.color.border.secondary400}, ${tokens.core.shadow.shadow400}`,
6
+ borderRadius: '0.5rem',
7
7
  minWidth: 'initial',
8
8
  maxWidth: '30rem',
9
- blockPadding: '1.6rem',
10
- inlinePadding: '1.6rem',
9
+ blockPadding: '0.9rem',
10
+ inlinePadding: '1.1rem',
11
11
  arrow: {
12
12
  width: '16px',
13
13
  height: '8px',
14
- shadow: 'rgba(0, 0, 0, 0.03) 0px 2px 1px'
14
+ shadow: `0 1px 0 ${tokens.semantic.color.border.secondary400}`
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.neutral400,
8
+ selectedBgColor: tokens.semantic.color.background.neutral100,
9
9
  height: '3rem'
10
10
  },
11
11
  arrow: {
12
- iconColor: tokens.semantic.color.icon.neutral800,
12
+ iconColor: tokens.semantic.color.icon.secondary500,
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.text.secondary950,
5
- secondary: tokens.semantic.color.text.secondary600,
6
- notice: tokens.semantic.color.text.notice500,
7
- success: tokens.semantic.color.text.success500,
8
- attention: tokens.semantic.color.text.attention500,
4
+ primary: tokens.semantic.color.background.secondary950,
5
+ secondary: tokens.semantic.color.background.secondary500,
6
+ notice: '#B45309',
7
+ success: '#15803D',
8
+ attention: '#B45309',
9
9
  danger: tokens.semantic.color.text.danger500,
10
10
  upsell: tokens.semantic.color.text.discovery500,
11
- informative: tokens.semantic.color.text.informative500
11
+ informative: '#0F6FB8'
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.neutral100,
10
- color: tokens.semantic.color.text.neutral700,
11
- borderColor: tokens.semantic.color.border.neutral400
10
+ backgroundColor: tokens.semantic.color.background.secondary0,
11
+ color: tokens.semantic.color.text.secondary950,
12
+ borderColor: tokens.semantic.color.border.secondary200
12
13
  },
13
14
  light: {
14
- backgroundColor: tokens.semantic.color.background.neutral200,
15
- color: tokens.semantic.color.text.neutral700,
16
- borderColor: tokens.semantic.color.border.neutral400
15
+ backgroundColor: tokens.semantic.color.background.neutral100,
16
+ color: tokens.semantic.color.text.secondary950,
17
+ borderColor: tokens.semantic.color.border.secondary200
17
18
  },
18
19
  default: {
19
- backgroundColor: tokens.semantic.color.background.neutral300,
20
- color: tokens.semantic.color.text.neutral700,
21
- borderColor: tokens.semantic.color.border.neutral500
20
+ backgroundColor: tokens.semantic.color.background.secondary50,
21
+ color: tokens.semantic.color.text.secondary950,
22
+ borderColor: tokens.semantic.color.border.secondary400
22
23
  },
23
24
  informative: {
24
- backgroundColor: tokens.semantic.color.background.informative50,
25
- color: tokens.semantic.color.text.informative900,
26
- borderColor: tokens.semantic.color.border.informative300
25
+ backgroundColor: tokens.semantic.color.background.informative0,
26
+ color: '#0F6FB8',
27
+ borderColor: withOpacity(tokens.semantic.color.border.informative300, 0.24)
27
28
  },
28
29
  success: {
29
- backgroundColor: tokens.semantic.color.background.success100,
30
- color: tokens.semantic.color.text.success700,
31
- borderColor: tokens.semantic.color.border.success300
30
+ backgroundColor: tokens.semantic.color.background.success0,
31
+ color: '#15803D',
32
+ borderColor: withOpacity(tokens.semantic.color.border.success500, 0.24)
32
33
  },
33
34
  notice: {
34
- backgroundColor: tokens.semantic.color.background.notice100,
35
- color: tokens.semantic.color.text.notice700,
36
- borderColor: tokens.semantic.color.border.notice200
35
+ backgroundColor: tokens.semantic.color.background.notice0,
36
+ color: '#B45309',
37
+ borderColor: withOpacity(tokens.semantic.color.border.notice400, 0.24)
37
38
  },
38
39
  danger: {
39
- backgroundColor: tokens.semantic.color.background.danger100,
40
- color: tokens.semantic.color.text.danger700,
41
- borderColor: tokens.semantic.color.border.danger200
40
+ backgroundColor: tokens.semantic.color.background.primary0,
41
+ color: tokens.semantic.color.text.danger500,
42
+ borderColor: withOpacity(tokens.semantic.color.border.primary400, 0.24)
42
43
  },
43
44
  attention: {
44
- backgroundColor: tokens.semantic.color.background.attention100,
45
- color: tokens.semantic.color.text.attention700,
46
- borderColor: tokens.semantic.color.border.attention300
45
+ backgroundColor: tokens.semantic.color.background.notice0,
46
+ color: '#B45309',
47
+ borderColor: withOpacity(tokens.semantic.color.border.notice400, 0.24)
47
48
  },
48
49
  disabled: {
49
- backgroundColor: tokens.semantic.color.background.neutral200,
50
- color: tokens.semantic.color.text.neutral500,
51
- borderColor: tokens.semantic.color.border.neutral300
50
+ backgroundColor: tokens.semantic.color.background.secondary200,
51
+ color: tokens.semantic.color.text.secondary500,
52
+ borderColor: tokens.semantic.color.border.secondary200
52
53
  }
53
54
  }
54
55
  };
@@ -1,7 +1,7 @@
1
1
  import { tokens } from '../../tokens';
2
2
  const theme = {
3
3
  bgColor: tokens.semantic.color.background.secondary0,
4
- textColor: tokens.semantic.color.background.secondary950,
4
+ textColor: tokens.semantic.color.text.secondary950,
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: tokens.semantic.color.background.secondary100,
5
+ bgColor: 'transparent',
6
6
  padding: '0.1rem',
7
7
  thumb: {
8
- bgColor: tokens.semantic.color.background.secondary600,
8
+ bgColor: tokens.semantic.color.background.secondary200,
9
9
  borderRadius: '99rem'
10
10
  }
11
11
  };
@@ -138,9 +138,9 @@ export const tokens = {
138
138
  shadow100: '0 1px 2px rgba(9, 26, 35, 0.06)',
139
139
  shadow200: '0 4px 12px rgba(9, 26, 35, 0.08)',
140
140
  shadow300: '0 4px 12px rgba(9, 26, 35, 0.10)',
141
- shadow400: '0 24px 48px rgba(9, 26, 35, 0.18)',
141
+ shadow400: '0 12px 28px rgba(9, 26, 35, 0.18)',
142
142
  shadow500: '0 24px 48px rgba(9, 26, 35, 0.16)',
143
- shadow600: '0 24px 48px rgba(9, 26, 35, 0.18)',
143
+ shadow600: '0 24px 48px rgba(9, 26, 35, 0.25)',
144
144
  shadow700: '0 4px 12px rgba(9, 26, 35, 0.08), 0 24px 48px rgba(9, 26, 35, 0.14)'
145
145
  },
146
146
  zIndex: {
@@ -205,7 +205,7 @@ export const tokens = {
205
205
  focus: {
206
206
  margin: '2px',
207
207
  size: '2px',
208
- color: semanticColors.primary600
208
+ color: semanticColors.primary400
209
209
  }
210
210
  }
211
211
  };
@@ -1,10 +1,65 @@
1
+ export type ChartSize = 'S' | 'M';
1
2
  export interface ChartsTheme {
2
3
  /** Ordered series colors for categorical charts */
3
4
  categorical: string[];
4
5
  grid: string;
6
+ gridDashArray: string;
5
7
  axisLabel: string;
6
8
  threshold: {
7
9
  warning: string;
8
10
  critical: string;
9
11
  };
12
+ axis: {
13
+ fontFamily: string;
14
+ fontSize: Record<ChartSize, string>;
15
+ };
16
+ series: {
17
+ strokeWidth: Record<ChartSize, number>;
18
+ areaOpacity: {
19
+ from: number;
20
+ to: number;
21
+ };
22
+ };
23
+ cursor: {
24
+ color: string;
25
+ width: number;
26
+ };
27
+ activeDot: {
28
+ size: number;
29
+ ringColor: string;
30
+ ringWidth: number;
31
+ };
32
+ referenceLine: {
33
+ color: string;
34
+ dashArray: string;
35
+ };
36
+ tooltip: {
37
+ bgColor: string;
38
+ textColor: string;
39
+ labelColor: string;
40
+ borderColor: string;
41
+ borderRadius: string;
42
+ shadow: string;
43
+ padding: string;
44
+ fontSize: string;
45
+ labelFontSize: string;
46
+ valueFontFamily: string;
47
+ markerSize: string;
48
+ };
49
+ legend: {
50
+ textColor: string;
51
+ fontFamily: Record<ChartSize, string>;
52
+ fontSize: Record<ChartSize, string>;
53
+ gap: Record<ChartSize, string>;
54
+ dotSize: string;
55
+ lineWidth: string;
56
+ lineHeight: string;
57
+ };
58
+ sparkline: {
59
+ strokeWidth: number;
60
+ areaOpacity: {
61
+ from: number;
62
+ to: number;
63
+ };
64
+ };
10
65
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@redis-ui/styles",
3
3
  "license": "UNLICENSED",
4
- "version": "21.5.0",
4
+ "version": "21.7.0",
5
5
  "repository": "git@github.com:redislabsdev/redis-ui.git",
6
6
  "type": "module",
7
7
  "files": [