@redis-ui/styles 21.15.3 → 21.17.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 +3661 -3651
- package/dist/index.umd.cjs +13 -13
- package/dist/themes/themeDarkNext/theme/components/button.js +15 -17
- package/dist/themes/themeDarkNext/theme/components/sideBar.js +5 -2
- package/dist/themes/themeLightNext/theme/components/button.js +15 -17
- package/dist/themes/themeLightNext/theme/components/sideBar.js +5 -2
- package/dist/themes/types/theme/components/sideBar.types.d.ts +3 -0
- package/package.json +1 -1
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { tokens } from '../../tokens';
|
|
2
|
-
import { withOpacity } from '../../../../utils';
|
|
3
|
-
const destructiveBorder = withOpacity(tokens.semantic.color.background.primary300, 0.55);
|
|
4
2
|
const theme = {
|
|
5
3
|
gap: '0.2rem',
|
|
6
4
|
pressTransform: 'translateY(1px)',
|
|
@@ -8,21 +6,21 @@ const theme = {
|
|
|
8
6
|
small: {
|
|
9
7
|
borderRadius: '0.5rem',
|
|
10
8
|
padding: '0.8rem 1.4rem',
|
|
11
|
-
height: '
|
|
9
|
+
height: '2.8rem',
|
|
12
10
|
lineHeight: '1.2rem',
|
|
13
11
|
fontSize: '1.2rem'
|
|
14
12
|
},
|
|
15
13
|
medium: {
|
|
16
14
|
borderRadius: '0.5rem',
|
|
17
|
-
padding: '
|
|
18
|
-
height: '
|
|
19
|
-
lineHeight: '1.
|
|
20
|
-
fontSize: '1.
|
|
15
|
+
padding: '0.8rem 1.8rem',
|
|
16
|
+
height: '3rem',
|
|
17
|
+
lineHeight: '1.3rem',
|
|
18
|
+
fontSize: '1.3rem'
|
|
21
19
|
},
|
|
22
20
|
large: {
|
|
23
21
|
borderRadius: '0.5rem',
|
|
24
|
-
padding: '
|
|
25
|
-
height: '
|
|
22
|
+
padding: '0.9rem 2.8rem',
|
|
23
|
+
height: '3.6rem',
|
|
26
24
|
lineHeight: '1.8rem',
|
|
27
25
|
fontSize: '1.3rem'
|
|
28
26
|
}
|
|
@@ -52,19 +50,19 @@ const theme = {
|
|
|
52
50
|
},
|
|
53
51
|
destructive: {
|
|
54
52
|
normal: {
|
|
55
|
-
bgColor: tokens.semantic.color.background.
|
|
56
|
-
borderColor:
|
|
53
|
+
bgColor: tokens.semantic.color.background.secondary950,
|
|
54
|
+
borderColor: tokens.semantic.color.border.primary300,
|
|
57
55
|
textColor: tokens.semantic.color.text.primary300
|
|
58
56
|
},
|
|
59
57
|
hover: {
|
|
60
|
-
bgColor:
|
|
61
|
-
borderColor:
|
|
62
|
-
textColor: tokens.semantic.color.text.
|
|
58
|
+
bgColor: '#272328',
|
|
59
|
+
borderColor: tokens.semantic.color.border.primary400,
|
|
60
|
+
textColor: tokens.semantic.color.text.primary400
|
|
63
61
|
},
|
|
64
62
|
active: {
|
|
65
|
-
bgColor:
|
|
66
|
-
borderColor:
|
|
67
|
-
textColor: tokens.semantic.color.text.
|
|
63
|
+
bgColor: '#3E292C',
|
|
64
|
+
borderColor: tokens.semantic.color.border.primary600,
|
|
65
|
+
textColor: tokens.semantic.color.text.primary400
|
|
68
66
|
},
|
|
69
67
|
disabled: {
|
|
70
68
|
bgColor: tokens.semantic.color.background.secondary700,
|
|
@@ -9,7 +9,8 @@ const theme = {
|
|
|
9
9
|
button: {
|
|
10
10
|
tooltip: {
|
|
11
11
|
textColor: tokens.semantic.color.text.secondary0
|
|
12
|
-
}
|
|
12
|
+
},
|
|
13
|
+
height: '3.4rem'
|
|
13
14
|
},
|
|
14
15
|
collapseButton: {
|
|
15
16
|
border: {
|
|
@@ -76,7 +77,9 @@ const theme = {
|
|
|
76
77
|
},
|
|
77
78
|
fontSize: tokens.core.font.fontSize.s13,
|
|
78
79
|
gap: tokens.core.space.space200,
|
|
79
|
-
iconSize: '1.8rem'
|
|
80
|
+
iconSize: '1.8rem',
|
|
81
|
+
height: '3rem',
|
|
82
|
+
margin: '0.1rem 0.5rem 0.1rem 1rem'
|
|
80
83
|
},
|
|
81
84
|
groupTitle: {
|
|
82
85
|
textColor: tokens.semantic.color.text.secondary400,
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { tokens } from '../../tokens';
|
|
2
|
-
import { withOpacity } from '../../../../utils';
|
|
3
|
-
const destructiveBorder = withOpacity(tokens.semantic.color.background.primary400, 0.55);
|
|
4
2
|
const theme = {
|
|
5
3
|
gap: '0.2rem',
|
|
6
4
|
pressTransform: 'translateY(1px)',
|
|
@@ -8,21 +6,21 @@ const theme = {
|
|
|
8
6
|
small: {
|
|
9
7
|
borderRadius: '0.5rem',
|
|
10
8
|
padding: '0.8rem 1.4rem',
|
|
11
|
-
height: '
|
|
9
|
+
height: '2.8rem',
|
|
12
10
|
lineHeight: '1.2rem',
|
|
13
11
|
fontSize: '1.2rem'
|
|
14
12
|
},
|
|
15
13
|
medium: {
|
|
16
14
|
borderRadius: '0.5rem',
|
|
17
|
-
padding: '
|
|
18
|
-
height: '
|
|
19
|
-
lineHeight: '1.
|
|
20
|
-
fontSize: '1.
|
|
15
|
+
padding: '0.8rem 1.8rem',
|
|
16
|
+
height: '3rem',
|
|
17
|
+
lineHeight: '1.3rem',
|
|
18
|
+
fontSize: '1.3rem'
|
|
21
19
|
},
|
|
22
20
|
large: {
|
|
23
21
|
borderRadius: '0.5rem',
|
|
24
|
-
padding: '
|
|
25
|
-
height: '
|
|
22
|
+
padding: '0.9rem 2.8rem',
|
|
23
|
+
height: '3.6rem',
|
|
26
24
|
lineHeight: '1.8rem',
|
|
27
25
|
fontSize: '1.3rem'
|
|
28
26
|
}
|
|
@@ -53,18 +51,18 @@ const theme = {
|
|
|
53
51
|
destructive: {
|
|
54
52
|
normal: {
|
|
55
53
|
bgColor: tokens.semantic.color.background.secondary0,
|
|
56
|
-
borderColor:
|
|
57
|
-
textColor: tokens.semantic.color.text.
|
|
54
|
+
borderColor: tokens.semantic.color.border.primary700,
|
|
55
|
+
textColor: tokens.semantic.color.text.primary700
|
|
58
56
|
},
|
|
59
57
|
hover: {
|
|
60
|
-
bgColor:
|
|
61
|
-
borderColor:
|
|
62
|
-
textColor: tokens.semantic.color.text.
|
|
58
|
+
bgColor: '#FFEBE7',
|
|
59
|
+
borderColor: tokens.semantic.color.border.primary600,
|
|
60
|
+
textColor: tokens.semantic.color.text.primary800
|
|
63
61
|
},
|
|
64
62
|
active: {
|
|
65
|
-
bgColor:
|
|
66
|
-
borderColor:
|
|
67
|
-
textColor: tokens.semantic.color.text.
|
|
63
|
+
bgColor: '#FFDBD4',
|
|
64
|
+
borderColor: tokens.semantic.color.border.primary500,
|
|
65
|
+
textColor: tokens.semantic.color.text.primary800
|
|
68
66
|
},
|
|
69
67
|
disabled: {
|
|
70
68
|
bgColor: tokens.semantic.color.background.secondary200,
|
|
@@ -9,7 +9,8 @@ const theme = {
|
|
|
9
9
|
button: {
|
|
10
10
|
tooltip: {
|
|
11
11
|
textColor: tokens.semantic.color.text.secondary950
|
|
12
|
-
}
|
|
12
|
+
},
|
|
13
|
+
height: '3.4rem'
|
|
13
14
|
},
|
|
14
15
|
collapseButton: {
|
|
15
16
|
border: {
|
|
@@ -76,7 +77,9 @@ const theme = {
|
|
|
76
77
|
},
|
|
77
78
|
fontSize: tokens.core.font.fontSize.s13,
|
|
78
79
|
gap: tokens.core.space.space200,
|
|
79
|
-
iconSize: '1.8rem'
|
|
80
|
+
iconSize: '1.8rem',
|
|
81
|
+
height: '3rem',
|
|
82
|
+
margin: '0.1rem 0.5rem 0.1rem 1rem'
|
|
80
83
|
},
|
|
81
84
|
groupTitle: {
|
|
82
85
|
textColor: tokens.semantic.color.text.secondary500,
|
|
@@ -9,6 +9,7 @@ export type SideBarTheme = {
|
|
|
9
9
|
tooltip: {
|
|
10
10
|
textColor: string;
|
|
11
11
|
};
|
|
12
|
+
height?: string;
|
|
12
13
|
};
|
|
13
14
|
collapseButton: {
|
|
14
15
|
border: {
|
|
@@ -63,6 +64,8 @@ export type SideBarTheme = {
|
|
|
63
64
|
fontSize?: string;
|
|
64
65
|
gap?: string;
|
|
65
66
|
iconSize?: string;
|
|
67
|
+
height?: string;
|
|
68
|
+
margin?: string;
|
|
66
69
|
};
|
|
67
70
|
groupTitle: {
|
|
68
71
|
textColor: string;
|