@redis-ui/styles 16.1.4 → 16.3.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 +60 -12
- package/dist/index.umd.cjs +1 -1
- package/dist/themes/themeDark/theme/components/sideBar.js +14 -2
- package/dist/themes/themeDark2/theme/components/sideBar.js +14 -2
- package/dist/themes/themeLight/theme/components/sideBar.js +14 -2
- package/dist/themes/themeLight2/theme/components/sideBar.js +14 -2
- package/dist/themes/types/theme/components/sideBar.types.d.ts +12 -0
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ const theme = {
|
|
|
3
3
|
collapsed: {
|
|
4
4
|
bgColor: tokens.semantic.color.background.neutral100,
|
|
5
5
|
shadow: 'none',
|
|
6
|
-
width: '5.
|
|
6
|
+
width: '5.8rem',
|
|
7
7
|
borderRight: `1px solid ${tokens.semantic.color.border.primary100}`,
|
|
8
8
|
divider: {
|
|
9
9
|
color: tokens.semantic.color.background.neutral400,
|
|
@@ -48,7 +48,7 @@ const theme = {
|
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
item: {
|
|
51
|
-
margin: '0.5rem 1rem',
|
|
51
|
+
margin: '0.2rem 0.5rem 0.2rem 1rem',
|
|
52
52
|
height: '3.2rem',
|
|
53
53
|
padding: '0 0.8rem',
|
|
54
54
|
gap: '0.8rem',
|
|
@@ -79,10 +79,22 @@ const theme = {
|
|
|
79
79
|
borderColor: tokens.semantic.color.border.secondary800,
|
|
80
80
|
borderSize: '1px',
|
|
81
81
|
textColor: tokens.semantic.color.text.secondary800
|
|
82
|
+
},
|
|
83
|
+
activeIndicator: {
|
|
84
|
+
left: '-1rem',
|
|
85
|
+
top: '0.5rem',
|
|
86
|
+
bottom: '0.5rem',
|
|
87
|
+
width: '0.5rem',
|
|
88
|
+
bgColor: tokens.semantic.color.background.danger500,
|
|
89
|
+
borderRadius: '0 0.3rem 0.3rem 0'
|
|
82
90
|
}
|
|
83
91
|
},
|
|
84
92
|
logo: {
|
|
85
93
|
offset: '1.6rem'
|
|
94
|
+
},
|
|
95
|
+
groupTitle: {
|
|
96
|
+
padding: '1.4rem 1.6rem 0.4rem',
|
|
97
|
+
textColor: tokens.semantic.color.text.secondary500
|
|
86
98
|
}
|
|
87
99
|
},
|
|
88
100
|
expanded: {
|
|
@@ -3,7 +3,7 @@ const theme = {
|
|
|
3
3
|
collapsed: {
|
|
4
4
|
bgColor: tokens.semantic.color.background.secondary950,
|
|
5
5
|
shadow: 'none',
|
|
6
|
-
width: '5.
|
|
6
|
+
width: '5.8rem',
|
|
7
7
|
borderRight: `1px solid ${tokens.semantic.color.border.secondary800}`,
|
|
8
8
|
divider: {
|
|
9
9
|
color: tokens.semantic.color.background.secondary800,
|
|
@@ -48,7 +48,7 @@ const theme = {
|
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
item: {
|
|
51
|
-
margin: '0.5rem 1rem',
|
|
51
|
+
margin: '0.2rem 0.5rem 0.2rem 1rem',
|
|
52
52
|
height: '3.2rem',
|
|
53
53
|
padding: '0 0.8rem',
|
|
54
54
|
gap: '0.8rem',
|
|
@@ -79,10 +79,22 @@ const theme = {
|
|
|
79
79
|
borderColor: tokens.semantic.color.border.primary400,
|
|
80
80
|
borderSize: '1px',
|
|
81
81
|
textColor: tokens.semantic.color.text.secondary50
|
|
82
|
+
},
|
|
83
|
+
activeIndicator: {
|
|
84
|
+
left: '-1rem',
|
|
85
|
+
top: '0.5rem',
|
|
86
|
+
bottom: '0.5rem',
|
|
87
|
+
width: '0.5rem',
|
|
88
|
+
bgColor: tokens.semantic.color.background.danger500,
|
|
89
|
+
borderRadius: '0 0.3rem 0.3rem 0'
|
|
82
90
|
}
|
|
83
91
|
},
|
|
84
92
|
logo: {
|
|
85
93
|
offset: '1.6rem'
|
|
94
|
+
},
|
|
95
|
+
groupTitle: {
|
|
96
|
+
padding: '1.4rem 1.6rem 0.4rem',
|
|
97
|
+
textColor: tokens.semantic.color.text.secondary500
|
|
86
98
|
}
|
|
87
99
|
},
|
|
88
100
|
expanded: {
|
|
@@ -3,7 +3,7 @@ const theme = {
|
|
|
3
3
|
collapsed: {
|
|
4
4
|
bgColor: tokens.semantic.color.background.neutral300,
|
|
5
5
|
shadow: 'none',
|
|
6
|
-
width: '5.
|
|
6
|
+
width: '5.8rem',
|
|
7
7
|
borderRight: `1px solid ${tokens.semantic.color.border.primary100}`,
|
|
8
8
|
divider: {
|
|
9
9
|
color: tokens.semantic.color.background.neutral400,
|
|
@@ -48,7 +48,7 @@ const theme = {
|
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
item: {
|
|
51
|
-
margin: '0.5rem 1rem',
|
|
51
|
+
margin: '0.2rem 0.5rem 0.2rem 1rem',
|
|
52
52
|
height: '3.2rem',
|
|
53
53
|
padding: '0 0.8rem',
|
|
54
54
|
gap: '0.8rem',
|
|
@@ -79,10 +79,22 @@ const theme = {
|
|
|
79
79
|
borderColor: tokens.semantic.color.border.secondary800,
|
|
80
80
|
borderSize: '1px',
|
|
81
81
|
textColor: tokens.semantic.color.text.secondary800
|
|
82
|
+
},
|
|
83
|
+
activeIndicator: {
|
|
84
|
+
left: '-1rem',
|
|
85
|
+
top: '0.5rem',
|
|
86
|
+
bottom: '0.5rem',
|
|
87
|
+
width: '0.5rem',
|
|
88
|
+
bgColor: tokens.semantic.color.background.danger500,
|
|
89
|
+
borderRadius: '0 0.3rem 0.3rem 0'
|
|
82
90
|
}
|
|
83
91
|
},
|
|
84
92
|
logo: {
|
|
85
93
|
offset: '1.6rem'
|
|
94
|
+
},
|
|
95
|
+
groupTitle: {
|
|
96
|
+
padding: '1.4rem 1.6rem 0.4rem',
|
|
97
|
+
textColor: tokens.semantic.color.text.secondary500
|
|
86
98
|
}
|
|
87
99
|
},
|
|
88
100
|
expanded: {
|
|
@@ -3,7 +3,7 @@ const theme = {
|
|
|
3
3
|
collapsed: {
|
|
4
4
|
bgColor: tokens.semantic.color.background.secondary50,
|
|
5
5
|
shadow: 'none',
|
|
6
|
-
width: '5.
|
|
6
|
+
width: '5.8rem',
|
|
7
7
|
borderRight: `1px solid ${tokens.semantic.color.border.secondary300}`,
|
|
8
8
|
divider: {
|
|
9
9
|
color: tokens.semantic.color.background.secondary300,
|
|
@@ -48,7 +48,7 @@ const theme = {
|
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
item: {
|
|
51
|
-
margin: '0.5rem 1rem',
|
|
51
|
+
margin: '0.2rem 0.5rem 0.2rem 1rem',
|
|
52
52
|
height: '3.2rem',
|
|
53
53
|
padding: '0 0.8rem',
|
|
54
54
|
gap: '0.8rem',
|
|
@@ -79,10 +79,22 @@ const theme = {
|
|
|
79
79
|
borderColor: tokens.semantic.color.border.primary400,
|
|
80
80
|
borderSize: '1px',
|
|
81
81
|
textColor: tokens.semantic.color.text.secondary0
|
|
82
|
+
},
|
|
83
|
+
activeIndicator: {
|
|
84
|
+
left: '-1rem',
|
|
85
|
+
top: '0.5rem',
|
|
86
|
+
bottom: '0.5rem',
|
|
87
|
+
width: '0.5rem',
|
|
88
|
+
bgColor: tokens.semantic.color.background.danger500,
|
|
89
|
+
borderRadius: '0 0.3rem 0.3rem 0'
|
|
82
90
|
}
|
|
83
91
|
},
|
|
84
92
|
logo: {
|
|
85
93
|
offset: '1.6rem'
|
|
94
|
+
},
|
|
95
|
+
groupTitle: {
|
|
96
|
+
padding: '1.4rem 1.6rem 0.4rem',
|
|
97
|
+
textColor: tokens.semantic.color.text.secondary500
|
|
86
98
|
}
|
|
87
99
|
},
|
|
88
100
|
expanded: {
|
|
@@ -67,10 +67,22 @@ export type SideBarStateTheme = {
|
|
|
67
67
|
borderSize: string;
|
|
68
68
|
textColor: string;
|
|
69
69
|
};
|
|
70
|
+
activeIndicator: {
|
|
71
|
+
left: string;
|
|
72
|
+
top: string;
|
|
73
|
+
bottom: string;
|
|
74
|
+
width: string;
|
|
75
|
+
bgColor: string;
|
|
76
|
+
borderRadius: string;
|
|
77
|
+
};
|
|
70
78
|
};
|
|
71
79
|
logo: {
|
|
72
80
|
offset: string;
|
|
73
81
|
};
|
|
82
|
+
groupTitle: {
|
|
83
|
+
padding: string;
|
|
84
|
+
textColor: string;
|
|
85
|
+
};
|
|
74
86
|
};
|
|
75
87
|
export type SideBarTheme = {
|
|
76
88
|
collapsed: SideBarStateTheme;
|