@redis-ui/styles 16.4.3 → 17.0.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 +212 -368
- package/dist/index.umd.cjs +1 -1
- package/dist/themes/themeDark/theme/components/sideBar.js +63 -102
- package/dist/themes/themeDark2/theme/components/sideBar.js +63 -102
- package/dist/themes/themeLight/theme/components/sideBar.js +63 -102
- package/dist/themes/themeLight2/theme/components/sideBar.js +63 -102
- package/dist/themes/types/theme/components/sideBar.types.d.ts +17 -40
- package/package.json +1 -1
|
@@ -1,120 +1,81 @@
|
|
|
1
1
|
import { tokens } from '../../tokens';
|
|
2
2
|
const theme = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
tooltip: {
|
|
18
|
-
textColor: tokens.semantic.color.text.secondary950
|
|
19
|
-
}
|
|
3
|
+
bgColor: tokens.semantic.color.background.secondary50,
|
|
4
|
+
borderRight: `1px solid ${tokens.semantic.color.border.secondary300}`,
|
|
5
|
+
divider: {
|
|
6
|
+
color: tokens.semantic.color.background.secondary300
|
|
7
|
+
},
|
|
8
|
+
button: {
|
|
9
|
+
tooltip: {
|
|
10
|
+
textColor: tokens.semantic.color.text.secondary950
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
collapseButton: {
|
|
14
|
+
border: {
|
|
15
|
+
collapsed: `1px solid ${tokens.semantic.color.border.secondary300}`,
|
|
16
|
+
expanded: `none`
|
|
20
17
|
},
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
18
|
+
filterShadow: 'none',
|
|
19
|
+
iconColor: tokens.semantic.color.icon.secondary950,
|
|
20
|
+
right: {
|
|
21
|
+
collapsed: 'calc(2.2rem * -0.45)',
|
|
22
|
+
expanded: '1.6rem'
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
header: {
|
|
26
|
+
dividerColor: tokens.semantic.color.border.secondary300
|
|
27
|
+
},
|
|
28
|
+
footer: {
|
|
29
|
+
dividerColor: tokens.semantic.color.background.secondary600,
|
|
30
|
+
link: {
|
|
31
|
+
textColor: tokens.semantic.color.text.secondary600
|
|
30
32
|
},
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
dividerColor: tokens.semantic.color.border.secondary300,
|
|
34
|
-
margin: '0 0 3rem 0'
|
|
33
|
+
text: {
|
|
34
|
+
textColor: tokens.semantic.color.text.secondary600
|
|
35
35
|
},
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
meta: {
|
|
37
|
+
visibility: {
|
|
38
|
+
collapsed: 'hidden',
|
|
39
|
+
expanded: 'visible'
|
|
40
40
|
},
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
meta: {
|
|
45
|
-
padding: '0 1.8rem 2rem 1.8rem',
|
|
46
|
-
visibility: 'hidden',
|
|
47
|
-
whiteSpace: 'nowrap'
|
|
41
|
+
whiteSpace: {
|
|
42
|
+
collapsed: 'nowrap',
|
|
43
|
+
expanded: 'normal'
|
|
48
44
|
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
itemWithButtonOffset: '1.8rem',
|
|
57
|
-
states: {
|
|
58
|
-
normal: {
|
|
59
|
-
textColor: tokens.semantic.color.text.secondary800,
|
|
60
|
-
bgColor: 'transparent'
|
|
61
|
-
},
|
|
62
|
-
hover: {
|
|
63
|
-
textColor: tokens.semantic.color.text.secondary950,
|
|
64
|
-
bgColor: tokens.semantic.color.background.secondary100
|
|
65
|
-
},
|
|
66
|
-
active: {
|
|
67
|
-
textColor: tokens.semantic.color.text.secondary950,
|
|
68
|
-
bgColor: tokens.semantic.color.background.secondary200
|
|
69
|
-
},
|
|
70
|
-
activeHover: {
|
|
71
|
-
textColor: tokens.semantic.color.text.secondary800
|
|
72
|
-
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
item: {
|
|
48
|
+
states: {
|
|
49
|
+
normal: {
|
|
50
|
+
textColor: tokens.semantic.color.text.secondary800,
|
|
51
|
+
bgColor: 'transparent'
|
|
73
52
|
},
|
|
74
|
-
|
|
75
|
-
textColor: tokens.semantic.color.text.
|
|
53
|
+
hover: {
|
|
54
|
+
textColor: tokens.semantic.color.text.secondary950,
|
|
55
|
+
bgColor: tokens.semantic.color.background.secondary100
|
|
76
56
|
},
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
borderSize: '1px',
|
|
81
|
-
textColor: tokens.semantic.color.text.secondary0
|
|
57
|
+
active: {
|
|
58
|
+
textColor: tokens.semantic.color.text.secondary950,
|
|
59
|
+
bgColor: tokens.semantic.color.background.secondary200
|
|
82
60
|
},
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
top: '0.5rem',
|
|
86
|
-
bottom: '0.5rem',
|
|
87
|
-
width: '3px',
|
|
88
|
-
bgColor: tokens.semantic.color.background.danger500,
|
|
89
|
-
borderRadius: '0 2px 2px 0'
|
|
61
|
+
activeHover: {
|
|
62
|
+
textColor: tokens.semantic.color.text.secondary800
|
|
90
63
|
}
|
|
91
64
|
},
|
|
92
|
-
|
|
93
|
-
|
|
65
|
+
tooltip: {
|
|
66
|
+
textColor: tokens.semantic.color.text.secondary800
|
|
94
67
|
},
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
},
|
|
100
|
-
expanded: {
|
|
101
|
-
width: '20rem',
|
|
102
|
-
divider: {
|
|
103
|
-
sidePadding: '1rem'
|
|
104
|
-
},
|
|
105
|
-
button: { width: '14.5rem' },
|
|
106
|
-
logo: {
|
|
107
|
-
offset: '1.6rem'
|
|
108
|
-
},
|
|
109
|
-
header: {
|
|
110
|
-
dividerColor: tokens.semantic.color.border.secondary300
|
|
68
|
+
button: {
|
|
69
|
+
bgColor: tokens.semantic.color.background.primary400,
|
|
70
|
+
borderColor: tokens.semantic.color.border.primary400,
|
|
71
|
+
textColor: tokens.semantic.color.text.secondary0
|
|
111
72
|
},
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
visibility: 'visible',
|
|
115
|
-
whiteSpace: 'normal'
|
|
116
|
-
}
|
|
73
|
+
activeIndicator: {
|
|
74
|
+
bgColor: tokens.semantic.color.background.danger500
|
|
117
75
|
}
|
|
76
|
+
},
|
|
77
|
+
groupTitle: {
|
|
78
|
+
textColor: tokens.semantic.color.text.secondary500
|
|
118
79
|
}
|
|
119
80
|
};
|
|
120
81
|
export default theme;
|
|
@@ -1,37 +1,29 @@
|
|
|
1
|
-
import { PartialDeep } from 'type-fest';
|
|
2
1
|
type SideBarItemState = 'normal' | 'hover' | 'active' | 'activeHover';
|
|
3
|
-
export type
|
|
2
|
+
export type SideBarTheme = {
|
|
4
3
|
bgColor: string;
|
|
5
|
-
shadow: string;
|
|
6
|
-
width: string;
|
|
7
4
|
borderRight: string;
|
|
8
5
|
divider: {
|
|
9
6
|
color: string;
|
|
10
|
-
thickness: string;
|
|
11
|
-
blockMargin: string;
|
|
12
|
-
sidePadding: string;
|
|
13
7
|
};
|
|
14
8
|
button: {
|
|
15
|
-
height: string;
|
|
16
|
-
width: string;
|
|
17
9
|
tooltip: {
|
|
18
10
|
textColor: string;
|
|
19
11
|
};
|
|
20
12
|
};
|
|
21
13
|
collapseButton: {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
14
|
+
border: {
|
|
15
|
+
collapsed: string;
|
|
16
|
+
expanded: string;
|
|
17
|
+
};
|
|
26
18
|
filterShadow: string;
|
|
27
19
|
iconColor: string;
|
|
28
|
-
|
|
29
|
-
|
|
20
|
+
right: {
|
|
21
|
+
collapsed: string;
|
|
22
|
+
expanded: string;
|
|
23
|
+
};
|
|
30
24
|
};
|
|
31
25
|
header: {
|
|
32
|
-
height: string;
|
|
33
26
|
dividerColor: string;
|
|
34
|
-
margin: string;
|
|
35
27
|
};
|
|
36
28
|
footer: {
|
|
37
29
|
dividerColor: string;
|
|
@@ -42,18 +34,17 @@ export type SideBarStateTheme = {
|
|
|
42
34
|
textColor: string;
|
|
43
35
|
};
|
|
44
36
|
meta: {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
37
|
+
visibility: {
|
|
38
|
+
collapsed: string;
|
|
39
|
+
expanded: string;
|
|
40
|
+
};
|
|
41
|
+
whiteSpace: {
|
|
42
|
+
collapsed: string;
|
|
43
|
+
expanded: string;
|
|
44
|
+
};
|
|
48
45
|
};
|
|
49
46
|
};
|
|
50
47
|
item: {
|
|
51
|
-
margin: string;
|
|
52
|
-
height: string;
|
|
53
|
-
padding: string;
|
|
54
|
-
gap: string;
|
|
55
|
-
borderRadius: string;
|
|
56
|
-
itemWithButtonOffset: string;
|
|
57
48
|
states: Record<SideBarItemState, {
|
|
58
49
|
bgColor?: string;
|
|
59
50
|
textColor?: string;
|
|
@@ -64,28 +55,14 @@ export type SideBarStateTheme = {
|
|
|
64
55
|
button: {
|
|
65
56
|
bgColor: string;
|
|
66
57
|
borderColor: string;
|
|
67
|
-
borderSize: string;
|
|
68
58
|
textColor: string;
|
|
69
59
|
};
|
|
70
60
|
activeIndicator: {
|
|
71
|
-
left: string;
|
|
72
|
-
top: string;
|
|
73
|
-
bottom: string;
|
|
74
|
-
width: string;
|
|
75
61
|
bgColor: string;
|
|
76
|
-
borderRadius: string;
|
|
77
62
|
};
|
|
78
63
|
};
|
|
79
|
-
logo: {
|
|
80
|
-
offset: string;
|
|
81
|
-
};
|
|
82
64
|
groupTitle: {
|
|
83
|
-
padding: string;
|
|
84
65
|
textColor: string;
|
|
85
66
|
};
|
|
86
67
|
};
|
|
87
|
-
export type SideBarTheme = {
|
|
88
|
-
collapsed: SideBarStateTheme;
|
|
89
|
-
expanded: PartialDeep<SideBarStateTheme>;
|
|
90
|
-
};
|
|
91
68
|
export {};
|