@redis-ui/styles 16.2.0 → 16.4.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.
@@ -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.1rem',
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
  }
@@ -3,7 +3,7 @@ const theme = {
3
3
  collapsed: {
4
4
  bgColor: tokens.semantic.color.background.neutral100,
5
5
  shadow: 'none',
6
- width: '6.2rem',
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,13 +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'
86
94
  },
87
95
  groupTitle: {
88
- padding: `${tokens.core.space.space150} ${tokens.core.space.space200} ${tokens.core.space.space050}`
96
+ padding: '1.4rem 1.6rem 0.4rem',
97
+ textColor: tokens.semantic.color.text.secondary500
89
98
  }
90
99
  },
91
100
  expanded: {
@@ -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.1rem',
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
- borderRadius: '0.4rem',
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.secondary400
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.secondary800
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.secondary700
58
+ textColor: tokens.semantic.color.text.secondary600,
59
+ borderColor: 'transparent'
41
60
  }
42
61
  }
43
62
  }
@@ -3,7 +3,7 @@ const theme = {
3
3
  collapsed: {
4
4
  bgColor: tokens.semantic.color.background.secondary950,
5
5
  shadow: 'none',
6
- width: '6.2rem',
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,13 +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'
86
94
  },
87
95
  groupTitle: {
88
- padding: `${tokens.core.space.space150} ${tokens.core.space.space200} ${tokens.core.space.space050}`
96
+ padding: '1.4rem 1.6rem 0.4rem',
97
+ textColor: tokens.semantic.color.text.secondary500
89
98
  }
90
99
  },
91
100
  expanded: {
@@ -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.1rem',
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
  }
@@ -3,7 +3,7 @@ const theme = {
3
3
  collapsed: {
4
4
  bgColor: tokens.semantic.color.background.neutral300,
5
5
  shadow: 'none',
6
- width: '6.2rem',
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,13 +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'
86
94
  },
87
95
  groupTitle: {
88
- padding: `${tokens.core.space.space150} ${tokens.core.space.space200} ${tokens.core.space.space050}`
96
+ padding: '1.4rem 1.6rem 0.4rem',
97
+ textColor: tokens.semantic.color.text.secondary500
89
98
  }
90
99
  },
91
100
  expanded: {
@@ -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.1rem',
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
- borderRadius: '0.4rem',
15
+ borderRadius: '0.3rem',
16
+ borderWidth: '1px',
16
17
  toggleStates: {
17
18
  on: {
18
19
  normal: {
19
- bgColor: tokens.semantic.color.background.primary400,
20
- textColor: tokens.semantic.color.text.secondary0
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.primary100,
24
- textColor: tokens.semantic.color.text.primary0
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.secondary300
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.secondary50,
40
- textColor: tokens.semantic.color.text.secondary300
57
+ bgColor: tokens.semantic.color.background.secondary100,
58
+ textColor: tokens.semantic.color.text.neutral500,
59
+ borderColor: 'transparent'
41
60
  }
42
61
  }
43
62
  }
@@ -3,7 +3,7 @@ const theme = {
3
3
  collapsed: {
4
4
  bgColor: tokens.semantic.color.background.secondary50,
5
5
  shadow: 'none',
6
- width: '6.2rem',
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,13 +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'
86
94
  },
87
95
  groupTitle: {
88
- padding: `${tokens.core.space.space150} ${tokens.core.space.space200} ${tokens.core.space.space050}`
96
+ padding: '1.4rem 1.6rem 0.4rem',
97
+ textColor: tokens.semantic.color.text.secondary500
89
98
  }
90
99
  },
91
100
  expanded: {
@@ -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
- border: string;
17
+ borderWidth?: string;
17
18
  toggleStates: Record<ButtonGroupStates, ButtonStatesTheme<ButtonStateColors>>;
18
19
  };
19
20
  };
@@ -67,12 +67,21 @@ 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
  };
74
82
  groupTitle: {
75
83
  padding: string;
84
+ textColor: string;
76
85
  };
77
86
  };
78
87
  export type SideBarTheme = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@redis-ui/styles",
3
3
  "license": "UNLICENSED",
4
- "version": "16.2.0",
4
+ "version": "16.4.0",
5
5
  "repository": "git@github.com:redislabsdev/redis-ui.git",
6
6
  "type": "module",
7
7
  "files": [