@redis-ui/styles 16.3.0 → 16.4.1
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 +111 -45
- package/dist/index.umd.cjs +2 -2
- package/dist/themes/themeDark/theme/components/buttonGroup.js +14 -8
- package/dist/themes/themeDark/theme/components/sideBar.js +2 -2
- package/dist/themes/themeDark2/theme/components/buttonGroup.js +28 -9
- package/dist/themes/themeDark2/theme/components/sideBar.js +2 -2
- package/dist/themes/themeLight/theme/components/buttonGroup.js +14 -8
- package/dist/themes/themeLight/theme/components/sideBar.js +2 -2
- package/dist/themes/themeLight2/theme/components/buttonGroup.js +31 -12
- package/dist/themes/themeLight2/theme/components/sideBar.js +2 -2
- package/dist/themes/types/theme/components/buttonGroup.types.d.ts +2 -1
- package/package.json +1 -1
|
@@ -2,42 +2,48 @@ import { tokens } from '../../tokens';
|
|
|
2
2
|
const theme = {
|
|
3
3
|
borderRadius: '0.4rem',
|
|
4
4
|
border: `1px solid ${tokens.semantic.color.border.neutral600}`,
|
|
5
|
+
bgColor: tokens.semantic.color.background.neutral100,
|
|
5
6
|
fontSize: '1.4rem',
|
|
6
7
|
fontWeight: tokens.core.font.fontWeight.normal,
|
|
7
8
|
fontStyle: 'normal',
|
|
8
|
-
padding: '0.
|
|
9
|
+
padding: '0.3rem',
|
|
9
10
|
gap: '0.2rem',
|
|
10
11
|
button: {
|
|
11
12
|
padding: `${tokens.core.space.space050} ${tokens.core.space.space200}`,
|
|
12
13
|
gap: tokens.core.space.space050,
|
|
13
14
|
minWidth: '6rem',
|
|
14
|
-
border: 'transparent',
|
|
15
15
|
borderRadius: '0.4rem',
|
|
16
16
|
toggleStates: {
|
|
17
17
|
on: {
|
|
18
18
|
normal: {
|
|
19
19
|
bgColor: tokens.semantic.color.background.primary400,
|
|
20
|
-
textColor: tokens.semantic.color.text.neutral100
|
|
20
|
+
textColor: tokens.semantic.color.text.neutral100,
|
|
21
|
+
borderColor: 'transparent'
|
|
21
22
|
},
|
|
22
23
|
disabled: {
|
|
23
24
|
bgColor: tokens.semantic.color.background.neutral400,
|
|
24
|
-
textColor: tokens.semantic.color.text.neutral600
|
|
25
|
+
textColor: tokens.semantic.color.text.neutral600,
|
|
26
|
+
borderColor: 'transparent'
|
|
25
27
|
}
|
|
26
28
|
},
|
|
27
29
|
off: {
|
|
28
30
|
normal: {
|
|
29
31
|
bgColor: tokens.semantic.color.background.neutral100,
|
|
30
|
-
textColor: tokens.semantic.color.text.neutral700
|
|
32
|
+
textColor: tokens.semantic.color.text.neutral700,
|
|
33
|
+
borderColor: 'transparent'
|
|
31
34
|
},
|
|
32
35
|
hover: {
|
|
33
|
-
bgColor: tokens.semantic.color.background.neutral400
|
|
36
|
+
bgColor: tokens.semantic.color.background.neutral400,
|
|
37
|
+
borderColor: 'transparent'
|
|
34
38
|
},
|
|
35
39
|
active: {
|
|
36
|
-
bgColor: tokens.semantic.color.background.neutral400
|
|
40
|
+
bgColor: tokens.semantic.color.background.neutral400,
|
|
41
|
+
borderColor: 'transparent'
|
|
37
42
|
},
|
|
38
43
|
disabled: {
|
|
39
44
|
bgColor: tokens.semantic.color.background.neutral300,
|
|
40
|
-
textColor: tokens.semantic.color.text.neutral500
|
|
45
|
+
textColor: tokens.semantic.color.text.neutral500,
|
|
46
|
+
borderColor: 'transparent'
|
|
41
47
|
}
|
|
42
48
|
}
|
|
43
49
|
}
|
|
@@ -84,9 +84,9 @@ const theme = {
|
|
|
84
84
|
left: '-1rem',
|
|
85
85
|
top: '0.5rem',
|
|
86
86
|
bottom: '0.5rem',
|
|
87
|
-
width: '
|
|
87
|
+
width: '3px',
|
|
88
88
|
bgColor: tokens.semantic.color.background.danger500,
|
|
89
|
-
borderRadius: '0
|
|
89
|
+
borderRadius: '0 2px 2px 0'
|
|
90
90
|
}
|
|
91
91
|
},
|
|
92
92
|
logo: {
|
|
@@ -2,42 +2,61 @@ import { tokens } from '../../tokens';
|
|
|
2
2
|
const theme = {
|
|
3
3
|
borderRadius: '0.4rem',
|
|
4
4
|
border: `1px solid ${tokens.semantic.color.border.transparent}`,
|
|
5
|
+
bgColor: tokens.semantic.color.background.secondary900,
|
|
5
6
|
fontSize: '1.4rem',
|
|
6
7
|
fontWeight: tokens.core.font.fontWeight.normal,
|
|
7
8
|
fontStyle: 'normal',
|
|
8
|
-
padding: '0.
|
|
9
|
+
padding: '0.3rem',
|
|
9
10
|
gap: '0.2rem',
|
|
10
11
|
button: {
|
|
11
12
|
padding: `${tokens.core.space.space050} ${tokens.core.space.space200}`,
|
|
12
13
|
gap: tokens.core.space.space050,
|
|
13
14
|
minWidth: '6rem',
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
borderRadius: '0.3rem',
|
|
16
|
+
borderWidth: '1px',
|
|
16
17
|
toggleStates: {
|
|
17
18
|
on: {
|
|
18
19
|
normal: {
|
|
19
20
|
bgColor: tokens.semantic.color.background.primary400,
|
|
20
|
-
textColor: tokens.semantic.color.text.secondary0
|
|
21
|
+
textColor: tokens.semantic.color.text.secondary0,
|
|
22
|
+
borderColor: tokens.semantic.color.border.primary600
|
|
23
|
+
},
|
|
24
|
+
hover: {
|
|
25
|
+
bgColor: tokens.semantic.color.background.primary400,
|
|
26
|
+
textColor: tokens.semantic.color.text.secondary0,
|
|
27
|
+
borderColor: tokens.semantic.color.border.primary600
|
|
28
|
+
},
|
|
29
|
+
active: {
|
|
30
|
+
bgColor: tokens.semantic.color.background.primary400,
|
|
31
|
+
textColor: tokens.semantic.color.text.secondary0,
|
|
32
|
+
borderColor: tokens.semantic.color.border.primary600
|
|
21
33
|
},
|
|
22
34
|
disabled: {
|
|
23
35
|
bgColor: tokens.semantic.color.background.secondary800,
|
|
24
|
-
textColor: tokens.semantic.color.text.secondary600
|
|
36
|
+
textColor: tokens.semantic.color.text.secondary600,
|
|
37
|
+
borderColor: 'transparent'
|
|
25
38
|
}
|
|
26
39
|
},
|
|
27
40
|
off: {
|
|
28
41
|
normal: {
|
|
29
42
|
bgColor: tokens.semantic.color.background.secondary900,
|
|
30
|
-
textColor: tokens.semantic.color.text.
|
|
43
|
+
textColor: tokens.semantic.color.text.secondary300,
|
|
44
|
+
borderColor: 'transparent'
|
|
31
45
|
},
|
|
32
46
|
hover: {
|
|
33
|
-
bgColor: tokens.semantic.color.background.secondary800
|
|
47
|
+
bgColor: tokens.semantic.color.background.secondary800,
|
|
48
|
+
textColor: tokens.semantic.color.text.secondary200,
|
|
49
|
+
borderColor: 'transparent'
|
|
34
50
|
},
|
|
35
51
|
active: {
|
|
36
|
-
bgColor: tokens.semantic.color.background.
|
|
52
|
+
bgColor: tokens.semantic.color.background.secondary700,
|
|
53
|
+
textColor: tokens.semantic.color.text.secondary200,
|
|
54
|
+
borderColor: 'transparent'
|
|
37
55
|
},
|
|
38
56
|
disabled: {
|
|
39
57
|
bgColor: tokens.semantic.color.background.secondary900,
|
|
40
|
-
textColor: tokens.semantic.color.text.
|
|
58
|
+
textColor: tokens.semantic.color.text.secondary600,
|
|
59
|
+
borderColor: 'transparent'
|
|
41
60
|
}
|
|
42
61
|
}
|
|
43
62
|
}
|
|
@@ -84,9 +84,9 @@ const theme = {
|
|
|
84
84
|
left: '-1rem',
|
|
85
85
|
top: '0.5rem',
|
|
86
86
|
bottom: '0.5rem',
|
|
87
|
-
width: '
|
|
87
|
+
width: '3px',
|
|
88
88
|
bgColor: tokens.semantic.color.background.danger500,
|
|
89
|
-
borderRadius: '0
|
|
89
|
+
borderRadius: '0 2px 2px 0'
|
|
90
90
|
}
|
|
91
91
|
},
|
|
92
92
|
logo: {
|
|
@@ -2,42 +2,48 @@ import { tokens } from '../../tokens';
|
|
|
2
2
|
const theme = {
|
|
3
3
|
borderRadius: '0.4rem',
|
|
4
4
|
border: `1px solid ${tokens.semantic.color.border.neutral600}`,
|
|
5
|
+
bgColor: tokens.semantic.color.background.neutral100,
|
|
5
6
|
fontSize: '1.4rem',
|
|
6
7
|
fontWeight: tokens.core.font.fontWeight.normal,
|
|
7
8
|
fontStyle: 'normal',
|
|
8
|
-
padding: '0.
|
|
9
|
+
padding: '0.3rem',
|
|
9
10
|
gap: '0.2rem',
|
|
10
11
|
button: {
|
|
11
12
|
padding: `${tokens.core.space.space050} ${tokens.core.space.space200}`,
|
|
12
13
|
gap: tokens.core.space.space050,
|
|
13
14
|
minWidth: '6rem',
|
|
14
|
-
border: 'transparent',
|
|
15
15
|
borderRadius: '0.4rem',
|
|
16
16
|
toggleStates: {
|
|
17
17
|
on: {
|
|
18
18
|
normal: {
|
|
19
19
|
bgColor: tokens.semantic.color.background.primary400,
|
|
20
|
-
textColor: tokens.semantic.color.text.neutral100
|
|
20
|
+
textColor: tokens.semantic.color.text.neutral100,
|
|
21
|
+
borderColor: 'transparent'
|
|
21
22
|
},
|
|
22
23
|
disabled: {
|
|
23
24
|
bgColor: tokens.semantic.color.background.neutral400,
|
|
24
|
-
textColor: tokens.semantic.color.text.neutral600
|
|
25
|
+
textColor: tokens.semantic.color.text.neutral600,
|
|
26
|
+
borderColor: 'transparent'
|
|
25
27
|
}
|
|
26
28
|
},
|
|
27
29
|
off: {
|
|
28
30
|
normal: {
|
|
29
31
|
bgColor: tokens.semantic.color.background.neutral100,
|
|
30
|
-
textColor: tokens.semantic.color.text.neutral700
|
|
32
|
+
textColor: tokens.semantic.color.text.neutral700,
|
|
33
|
+
borderColor: 'transparent'
|
|
31
34
|
},
|
|
32
35
|
hover: {
|
|
33
|
-
bgColor: tokens.semantic.color.background.neutral400
|
|
36
|
+
bgColor: tokens.semantic.color.background.neutral400,
|
|
37
|
+
borderColor: 'transparent'
|
|
34
38
|
},
|
|
35
39
|
active: {
|
|
36
|
-
bgColor: tokens.semantic.color.background.neutral400
|
|
40
|
+
bgColor: tokens.semantic.color.background.neutral400,
|
|
41
|
+
borderColor: 'transparent'
|
|
37
42
|
},
|
|
38
43
|
disabled: {
|
|
39
44
|
bgColor: tokens.semantic.color.background.neutral300,
|
|
40
|
-
textColor: tokens.semantic.color.text.neutral500
|
|
45
|
+
textColor: tokens.semantic.color.text.neutral500,
|
|
46
|
+
borderColor: 'transparent'
|
|
41
47
|
}
|
|
42
48
|
}
|
|
43
49
|
}
|
|
@@ -84,9 +84,9 @@ const theme = {
|
|
|
84
84
|
left: '-1rem',
|
|
85
85
|
top: '0.5rem',
|
|
86
86
|
bottom: '0.5rem',
|
|
87
|
-
width: '
|
|
87
|
+
width: '3px',
|
|
88
88
|
bgColor: tokens.semantic.color.background.danger500,
|
|
89
|
-
borderRadius: '0
|
|
89
|
+
borderRadius: '0 2px 2px 0'
|
|
90
90
|
}
|
|
91
91
|
},
|
|
92
92
|
logo: {
|
|
@@ -2,42 +2,61 @@ import { tokens } from '../../tokens';
|
|
|
2
2
|
const theme = {
|
|
3
3
|
borderRadius: '0.4rem',
|
|
4
4
|
border: `1px solid ${tokens.semantic.color.border.transparent}`,
|
|
5
|
+
bgColor: tokens.semantic.color.background.secondary100,
|
|
5
6
|
fontSize: '1.4rem',
|
|
6
7
|
fontWeight: tokens.core.font.fontWeight.normal,
|
|
7
8
|
fontStyle: 'normal',
|
|
8
|
-
padding: '0.
|
|
9
|
+
padding: '0.3rem',
|
|
9
10
|
gap: '0.2rem',
|
|
10
11
|
button: {
|
|
11
12
|
padding: `${tokens.core.space.space050} ${tokens.core.space.space200}`,
|
|
12
13
|
gap: tokens.core.space.space050,
|
|
13
14
|
minWidth: '6rem',
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
borderRadius: '0.3rem',
|
|
16
|
+
borderWidth: '1px',
|
|
16
17
|
toggleStates: {
|
|
17
18
|
on: {
|
|
18
19
|
normal: {
|
|
19
|
-
bgColor: tokens.semantic.color.background.
|
|
20
|
-
textColor: tokens.semantic.color.text.
|
|
20
|
+
bgColor: tokens.semantic.color.background.secondary0,
|
|
21
|
+
textColor: tokens.semantic.color.text.secondary950,
|
|
22
|
+
borderColor: tokens.semantic.color.border.secondary400
|
|
23
|
+
},
|
|
24
|
+
hover: {
|
|
25
|
+
bgColor: tokens.semantic.color.background.secondary50,
|
|
26
|
+
textColor: tokens.semantic.color.text.secondary950,
|
|
27
|
+
borderColor: tokens.semantic.color.border.secondary400
|
|
28
|
+
},
|
|
29
|
+
active: {
|
|
30
|
+
bgColor: tokens.semantic.color.background.secondary0,
|
|
31
|
+
textColor: tokens.semantic.color.text.secondary950,
|
|
32
|
+
borderColor: tokens.semantic.color.border.secondary400
|
|
21
33
|
},
|
|
22
34
|
disabled: {
|
|
23
|
-
bgColor: tokens.semantic.color.background.
|
|
24
|
-
textColor: tokens.semantic.color.text.
|
|
35
|
+
bgColor: tokens.semantic.color.background.secondary50,
|
|
36
|
+
textColor: tokens.semantic.color.text.neutral500,
|
|
37
|
+
borderColor: tokens.semantic.color.border.secondary400
|
|
25
38
|
}
|
|
26
39
|
},
|
|
27
40
|
off: {
|
|
28
41
|
normal: {
|
|
29
42
|
bgColor: tokens.semantic.color.background.secondary100,
|
|
30
|
-
textColor: tokens.semantic.color.text.secondary900
|
|
43
|
+
textColor: tokens.semantic.color.text.secondary900,
|
|
44
|
+
borderColor: 'transparent'
|
|
31
45
|
},
|
|
32
46
|
hover: {
|
|
33
|
-
bgColor: tokens.semantic.color.background.secondary300
|
|
47
|
+
bgColor: tokens.semantic.color.background.secondary300,
|
|
48
|
+
textColor: tokens.semantic.color.text.secondary950,
|
|
49
|
+
borderColor: 'transparent'
|
|
34
50
|
},
|
|
35
51
|
active: {
|
|
36
|
-
bgColor: tokens.semantic.color.background.
|
|
52
|
+
bgColor: tokens.semantic.color.background.neutral300,
|
|
53
|
+
textColor: tokens.semantic.color.text.secondary950,
|
|
54
|
+
borderColor: 'transparent'
|
|
37
55
|
},
|
|
38
56
|
disabled: {
|
|
39
|
-
bgColor: tokens.semantic.color.background.
|
|
40
|
-
textColor: tokens.semantic.color.text.
|
|
57
|
+
bgColor: tokens.semantic.color.background.secondary100,
|
|
58
|
+
textColor: tokens.semantic.color.text.neutral500,
|
|
59
|
+
borderColor: 'transparent'
|
|
41
60
|
}
|
|
42
61
|
}
|
|
43
62
|
}
|
|
@@ -84,9 +84,9 @@ const theme = {
|
|
|
84
84
|
left: '-1rem',
|
|
85
85
|
top: '0.5rem',
|
|
86
86
|
bottom: '0.5rem',
|
|
87
|
-
width: '
|
|
87
|
+
width: '3px',
|
|
88
88
|
bgColor: tokens.semantic.color.background.danger500,
|
|
89
|
-
borderRadius: '0
|
|
89
|
+
borderRadius: '0 2px 2px 0'
|
|
90
90
|
}
|
|
91
91
|
},
|
|
92
92
|
logo: {
|
|
@@ -3,6 +3,7 @@ type ButtonGroupStates = 'on' | 'off';
|
|
|
3
3
|
export type ButtonGroupTheme = {
|
|
4
4
|
border: string;
|
|
5
5
|
borderRadius: string;
|
|
6
|
+
bgColor: string;
|
|
6
7
|
fontSize: string;
|
|
7
8
|
fontWeight: string;
|
|
8
9
|
fontStyle: string;
|
|
@@ -13,7 +14,7 @@ export type ButtonGroupTheme = {
|
|
|
13
14
|
gap: string;
|
|
14
15
|
minWidth: string;
|
|
15
16
|
borderRadius: string;
|
|
16
|
-
|
|
17
|
+
borderWidth?: string;
|
|
17
18
|
toggleStates: Record<ButtonGroupStates, ButtonStatesTheme<ButtonStateColors>>;
|
|
18
19
|
};
|
|
19
20
|
};
|