@redis-ui/styles 16.2.0 → 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.
@@ -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: {
@@ -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: {
@@ -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: {
@@ -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: {
@@ -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.3.0",
5
5
  "repository": "git@github.com:redislabsdev/redis-ui.git",
6
6
  "type": "module",
7
7
  "files": [