@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.neutral700
|
|
19
|
-
}
|
|
3
|
+
bgColor: tokens.semantic.color.background.neutral100,
|
|
4
|
+
borderRight: `1px solid ${tokens.semantic.color.border.primary100}`,
|
|
5
|
+
divider: {
|
|
6
|
+
color: tokens.semantic.color.background.neutral400
|
|
7
|
+
},
|
|
8
|
+
button: {
|
|
9
|
+
tooltip: {
|
|
10
|
+
textColor: tokens.semantic.color.text.neutral700
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
collapseButton: {
|
|
14
|
+
border: {
|
|
15
|
+
collapsed: `1px solid ${tokens.semantic.color.border.primary100}`,
|
|
16
|
+
expanded: `none`
|
|
20
17
|
},
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
18
|
+
filterShadow: 'none',
|
|
19
|
+
iconColor: tokens.semantic.color.icon.neutral800,
|
|
20
|
+
right: {
|
|
21
|
+
collapsed: 'calc(2.2rem * -0.45)',
|
|
22
|
+
expanded: '1.6rem'
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
header: {
|
|
26
|
+
dividerColor: tokens.semantic.color.border.neutral400
|
|
27
|
+
},
|
|
28
|
+
footer: {
|
|
29
|
+
dividerColor: tokens.semantic.color.background.neutral700,
|
|
30
|
+
link: {
|
|
31
|
+
textColor: tokens.semantic.color.text.neutral700
|
|
30
32
|
},
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
dividerColor: tokens.semantic.color.border.neutral400,
|
|
34
|
-
margin: '0 0 3rem 0'
|
|
33
|
+
text: {
|
|
34
|
+
textColor: tokens.semantic.color.text.neutral700
|
|
35
35
|
},
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
},
|
|
41
|
-
text: {
|
|
42
|
-
textColor: tokens.semantic.color.text.neutral700
|
|
36
|
+
meta: {
|
|
37
|
+
visibility: {
|
|
38
|
+
collapsed: 'hidden',
|
|
39
|
+
expanded: 'visible'
|
|
43
40
|
},
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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.neutral700,
|
|
60
|
-
bgColor: 'transparent'
|
|
61
|
-
},
|
|
62
|
-
hover: {
|
|
63
|
-
textColor: tokens.semantic.color.text.neutral100,
|
|
64
|
-
bgColor: tokens.semantic.color.background.neutral950
|
|
65
|
-
},
|
|
66
|
-
active: {
|
|
67
|
-
textColor: tokens.semantic.color.text.secondary800,
|
|
68
|
-
bgColor: tokens.semantic.color.background.secondary200
|
|
69
|
-
},
|
|
70
|
-
activeHover: {
|
|
71
|
-
textColor: tokens.semantic.color.text.primary600
|
|
72
|
-
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
item: {
|
|
48
|
+
states: {
|
|
49
|
+
normal: {
|
|
50
|
+
textColor: tokens.semantic.color.text.neutral700,
|
|
51
|
+
bgColor: 'transparent'
|
|
73
52
|
},
|
|
74
|
-
|
|
75
|
-
textColor: tokens.semantic.color.text.
|
|
53
|
+
hover: {
|
|
54
|
+
textColor: tokens.semantic.color.text.neutral100,
|
|
55
|
+
bgColor: tokens.semantic.color.background.neutral950
|
|
76
56
|
},
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
borderSize: '1px',
|
|
81
|
-
textColor: tokens.semantic.color.text.secondary800
|
|
57
|
+
active: {
|
|
58
|
+
textColor: tokens.semantic.color.text.secondary800,
|
|
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.primary600
|
|
90
63
|
}
|
|
91
64
|
},
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
},
|
|
95
|
-
groupTitle: {
|
|
96
|
-
padding: '1.4rem 1.6rem 0.4rem',
|
|
97
|
-
textColor: tokens.semantic.color.text.secondary500
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
expanded: {
|
|
101
|
-
width: '20rem',
|
|
102
|
-
divider: {
|
|
103
|
-
sidePadding: '1rem'
|
|
104
|
-
},
|
|
105
|
-
button: { width: '14.5rem' },
|
|
106
|
-
logo: {
|
|
107
|
-
offset: '1.6rem'
|
|
65
|
+
tooltip: {
|
|
66
|
+
textColor: tokens.semantic.color.text.neutral700
|
|
108
67
|
},
|
|
109
|
-
|
|
110
|
-
|
|
68
|
+
button: {
|
|
69
|
+
bgColor: tokens.semantic.color.background.primary400,
|
|
70
|
+
borderColor: tokens.semantic.color.border.secondary800,
|
|
71
|
+
textColor: tokens.semantic.color.text.secondary800
|
|
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,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.secondary200
|
|
19
|
-
}
|
|
3
|
+
bgColor: tokens.semantic.color.background.secondary950,
|
|
4
|
+
borderRight: `1px solid ${tokens.semantic.color.border.secondary800}`,
|
|
5
|
+
divider: {
|
|
6
|
+
color: tokens.semantic.color.background.secondary800
|
|
7
|
+
},
|
|
8
|
+
button: {
|
|
9
|
+
tooltip: {
|
|
10
|
+
textColor: tokens.semantic.color.text.secondary200
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
collapseButton: {
|
|
14
|
+
border: {
|
|
15
|
+
collapsed: `1px solid ${tokens.semantic.color.border.secondary800}`,
|
|
16
|
+
expanded: `none`
|
|
20
17
|
},
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
18
|
+
filterShadow: 'none',
|
|
19
|
+
iconColor: tokens.semantic.color.icon.primary0,
|
|
20
|
+
right: {
|
|
21
|
+
collapsed: 'calc(2.2rem * -0.45)',
|
|
22
|
+
expanded: '1.6rem'
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
header: {
|
|
26
|
+
dividerColor: tokens.semantic.color.border.secondary800
|
|
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.secondary800,
|
|
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.secondary300,
|
|
60
|
-
bgColor: 'transparent'
|
|
61
|
-
},
|
|
62
|
-
hover: {
|
|
63
|
-
textColor: tokens.semantic.color.text.secondary200,
|
|
64
|
-
bgColor: tokens.semantic.color.background.secondary700
|
|
65
|
-
},
|
|
66
|
-
active: {
|
|
67
|
-
textColor: tokens.semantic.color.text.secondary50,
|
|
68
|
-
bgColor: tokens.semantic.color.background.primary950
|
|
69
|
-
},
|
|
70
|
-
activeHover: {
|
|
71
|
-
textColor: tokens.semantic.color.text.secondary300
|
|
72
|
-
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
item: {
|
|
48
|
+
states: {
|
|
49
|
+
normal: {
|
|
50
|
+
textColor: tokens.semantic.color.text.secondary300,
|
|
51
|
+
bgColor: 'transparent'
|
|
73
52
|
},
|
|
74
|
-
|
|
75
|
-
textColor: tokens.semantic.color.text.
|
|
53
|
+
hover: {
|
|
54
|
+
textColor: tokens.semantic.color.text.secondary200,
|
|
55
|
+
bgColor: tokens.semantic.color.background.secondary700
|
|
76
56
|
},
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
borderSize: '1px',
|
|
81
|
-
textColor: tokens.semantic.color.text.secondary50
|
|
57
|
+
active: {
|
|
58
|
+
textColor: tokens.semantic.color.text.secondary50,
|
|
59
|
+
bgColor: tokens.semantic.color.background.primary950
|
|
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.secondary300
|
|
90
63
|
}
|
|
91
64
|
},
|
|
92
|
-
|
|
93
|
-
|
|
65
|
+
tooltip: {
|
|
66
|
+
textColor: tokens.semantic.color.text.secondary300
|
|
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.secondary800
|
|
68
|
+
button: {
|
|
69
|
+
bgColor: tokens.semantic.color.background.primary400,
|
|
70
|
+
borderColor: tokens.semantic.color.border.primary400,
|
|
71
|
+
textColor: tokens.semantic.color.text.secondary50
|
|
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,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.neutral700
|
|
19
|
-
}
|
|
3
|
+
bgColor: tokens.semantic.color.background.neutral300,
|
|
4
|
+
borderRight: `1px solid ${tokens.semantic.color.border.primary100}`,
|
|
5
|
+
divider: {
|
|
6
|
+
color: tokens.semantic.color.background.neutral400
|
|
7
|
+
},
|
|
8
|
+
button: {
|
|
9
|
+
tooltip: {
|
|
10
|
+
textColor: tokens.semantic.color.text.neutral700
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
collapseButton: {
|
|
14
|
+
border: {
|
|
15
|
+
collapsed: `1px solid ${tokens.semantic.color.border.primary100}`,
|
|
16
|
+
expanded: `none`
|
|
20
17
|
},
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
18
|
+
filterShadow: 'none',
|
|
19
|
+
iconColor: tokens.semantic.color.icon.neutral800,
|
|
20
|
+
right: {
|
|
21
|
+
collapsed: 'calc(2.2rem * -0.45)',
|
|
22
|
+
expanded: '1.6rem'
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
header: {
|
|
26
|
+
dividerColor: tokens.semantic.color.border.neutral400
|
|
27
|
+
},
|
|
28
|
+
footer: {
|
|
29
|
+
dividerColor: tokens.semantic.color.background.neutral700,
|
|
30
|
+
link: {
|
|
31
|
+
textColor: tokens.semantic.color.text.neutral700
|
|
30
32
|
},
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
dividerColor: tokens.semantic.color.border.neutral400,
|
|
34
|
-
margin: '0 0 3rem 0'
|
|
33
|
+
text: {
|
|
34
|
+
textColor: tokens.semantic.color.text.neutral700
|
|
35
35
|
},
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
},
|
|
41
|
-
text: {
|
|
42
|
-
textColor: tokens.semantic.color.text.neutral700
|
|
36
|
+
meta: {
|
|
37
|
+
visibility: {
|
|
38
|
+
collapsed: 'hidden',
|
|
39
|
+
expanded: 'visible'
|
|
43
40
|
},
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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.secondary800,
|
|
64
|
-
bgColor: tokens.semantic.color.background.secondary200
|
|
65
|
-
},
|
|
66
|
-
active: {
|
|
67
|
-
textColor: tokens.semantic.color.text.secondary100,
|
|
68
|
-
bgColor: tokens.semantic.color.background.secondary800
|
|
69
|
-
},
|
|
70
|
-
activeHover: {
|
|
71
|
-
textColor: tokens.semantic.color.text.primary600
|
|
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.secondary800,
|
|
55
|
+
bgColor: tokens.semantic.color.background.secondary200
|
|
76
56
|
},
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
borderSize: '1px',
|
|
81
|
-
textColor: tokens.semantic.color.text.secondary800
|
|
57
|
+
active: {
|
|
58
|
+
textColor: tokens.semantic.color.text.secondary100,
|
|
59
|
+
bgColor: tokens.semantic.color.background.secondary800
|
|
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.primary600
|
|
90
63
|
}
|
|
91
64
|
},
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
},
|
|
95
|
-
groupTitle: {
|
|
96
|
-
padding: '1.4rem 1.6rem 0.4rem',
|
|
97
|
-
textColor: tokens.semantic.color.text.secondary500
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
expanded: {
|
|
101
|
-
width: '20rem',
|
|
102
|
-
divider: {
|
|
103
|
-
sidePadding: '1rem'
|
|
104
|
-
},
|
|
105
|
-
button: { width: '14.5rem' },
|
|
106
|
-
logo: {
|
|
107
|
-
offset: '1.6rem'
|
|
65
|
+
tooltip: {
|
|
66
|
+
textColor: tokens.semantic.color.text.neutral700
|
|
108
67
|
},
|
|
109
|
-
|
|
110
|
-
|
|
68
|
+
button: {
|
|
69
|
+
bgColor: tokens.semantic.color.background.primary200,
|
|
70
|
+
borderColor: tokens.semantic.color.border.secondary800,
|
|
71
|
+
textColor: tokens.semantic.color.text.secondary800
|
|
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;
|