@redis-ui/styles 21.24.1 → 21.26.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.
@@ -1,3 +1,4 @@
1
+ import { withOpacity } from '../../../../utils';
1
2
  import { tokens } from '../../tokens';
2
3
  const theme = {
3
4
  width: '100%',
@@ -35,6 +36,11 @@ const theme = {
35
36
  bgColor: tokens.semantic.color.background.discovery900,
36
37
  borderColor: tokens.semantic.color.border.discovery500
37
38
  }
39
+ },
40
+ hover: {
41
+ bgColor: tokens.semantic.color.background.secondary800,
42
+ borderColor: tokens.semantic.color.border.secondary600,
43
+ sunsetColor: withOpacity(tokens.semantic.color.background.primary400, 0.14)
38
44
  }
39
45
  };
40
46
  export default theme;
@@ -1,3 +1,4 @@
1
+ import { mix } from 'polished';
1
2
  import { withOpacity } from '../../../../utils';
2
3
  import { tokens } from '../../tokens';
3
4
  const theme = {
@@ -36,6 +37,11 @@ const theme = {
36
37
  bgColor: tokens.semantic.color.background.discovery900,
37
38
  borderColor: tokens.semantic.color.border.discovery500
38
39
  }
40
+ },
41
+ hover: {
42
+ bgColor: mix(0.8, tokens.semantic.color.background.secondary900, tokens.semantic.color.background.secondary800),
43
+ borderColor: tokens.semantic.color.border.secondary500,
44
+ sunsetColor: withOpacity(tokens.semantic.color.background.primary400, 0.14)
39
45
  }
40
46
  };
41
47
  export default theme;
@@ -50,15 +50,18 @@ const theme = {
50
50
  states: {
51
51
  normal: {
52
52
  textColor: tokens.semantic.color.text.secondary300,
53
- bgColor: 'transparent'
53
+ bgColor: 'transparent',
54
+ labelColor: tokens.semantic.color.text.secondary0
54
55
  },
55
56
  hover: {
56
57
  textColor: tokens.semantic.color.text.secondary0,
57
- bgColor: tokens.semantic.color.background.secondary900
58
+ bgColor: tokens.semantic.color.background.secondary900,
59
+ labelColor: tokens.semantic.color.text.secondary0
58
60
  },
59
61
  active: {
60
62
  textColor: tokens.semantic.color.text.primary400,
61
- bgColor: withOpacity(tokens.semantic.color.background.primary400, 0.1)
63
+ bgColor: withOpacity(tokens.semantic.color.background.primary400, 0.1),
64
+ labelColor: tokens.semantic.color.text.primary400
62
65
  },
63
66
  activeHover: {
64
67
  textColor: tokens.semantic.color.text.primary400
@@ -75,19 +78,20 @@ const theme = {
75
78
  activeIndicator: {
76
79
  bgColor: 'transparent'
77
80
  },
78
- fontSize: tokens.core.font.fontSize.s13,
81
+ fontSize: tokens.core.font.fontSize.s14,
79
82
  gap: tokens.core.space.space200,
80
83
  iconSize: '1.8rem',
81
84
  height: '3rem',
82
85
  margin: '0.1rem 0.5rem 0.1rem 1rem',
83
86
  child: {
84
87
  height: '2.4rem',
85
- fontSize: tokens.core.font.fontSize.s12
88
+ fontSize: tokens.core.font.fontSize.s14
86
89
  }
87
90
  },
88
91
  groupTitle: {
89
- textColor: tokens.semantic.color.text.secondary400,
90
- fontSize: tokens.core.font.fontSize.s10
92
+ textColor: tokens.semantic.color.text.secondary0,
93
+ fontSize: tokens.core.font.fontSize.s10,
94
+ letterSpacing: '0.13em'
91
95
  }
92
96
  };
93
97
  export default theme;
@@ -1,3 +1,4 @@
1
+ import { withOpacity } from '../../../../utils';
1
2
  import { tokens } from '../../tokens';
2
3
  const theme = {
3
4
  width: '100%',
@@ -35,6 +36,11 @@ const theme = {
35
36
  bgColor: tokens.semantic.color.background.discovery0,
36
37
  borderColor: tokens.semantic.color.border.discovery100
37
38
  }
39
+ },
40
+ hover: {
41
+ bgColor: tokens.semantic.color.background.neutral100,
42
+ borderColor: tokens.semantic.color.border.secondary400,
43
+ sunsetColor: withOpacity(tokens.semantic.color.background.primary400, 0.14)
38
44
  }
39
45
  };
40
46
  export default theme;
@@ -36,6 +36,11 @@ const theme = {
36
36
  bgColor: tokens.semantic.color.background.discovery0,
37
37
  borderColor: tokens.semantic.color.border.discovery100
38
38
  }
39
+ },
40
+ hover: {
41
+ bgColor: tokens.semantic.color.background.neutral100,
42
+ borderColor: tokens.semantic.color.border.secondary400,
43
+ sunsetColor: withOpacity(tokens.semantic.color.background.primary700, 0.14)
39
44
  }
40
45
  };
41
46
  export default theme;
@@ -50,15 +50,18 @@ const theme = {
50
50
  states: {
51
51
  normal: {
52
52
  textColor: tokens.semantic.color.text.secondary500,
53
- bgColor: 'transparent'
53
+ bgColor: 'transparent',
54
+ labelColor: tokens.semantic.color.text.secondary950
54
55
  },
55
56
  hover: {
56
57
  textColor: tokens.semantic.color.text.secondary950,
57
- bgColor: tokens.semantic.color.background.neutral100
58
+ bgColor: tokens.semantic.color.background.neutral100,
59
+ labelColor: tokens.semantic.color.text.secondary950
58
60
  },
59
61
  active: {
60
62
  textColor: tokens.semantic.color.text.primary700,
61
- bgColor: withOpacity(tokens.semantic.color.background.primary700, 0.04)
63
+ bgColor: withOpacity(tokens.semantic.color.background.primary700, 0.04),
64
+ labelColor: tokens.semantic.color.text.primary700
62
65
  },
63
66
  activeHover: {
64
67
  textColor: tokens.semantic.color.text.primary700
@@ -75,19 +78,20 @@ const theme = {
75
78
  activeIndicator: {
76
79
  bgColor: 'transparent'
77
80
  },
78
- fontSize: tokens.core.font.fontSize.s13,
81
+ fontSize: tokens.core.font.fontSize.s14,
79
82
  gap: tokens.core.space.space200,
80
83
  iconSize: '1.8rem',
81
84
  height: '3rem',
82
85
  margin: '0.1rem 0.5rem 0.1rem 1rem',
83
86
  child: {
84
87
  height: '2.4rem',
85
- fontSize: tokens.core.font.fontSize.s12
88
+ fontSize: tokens.core.font.fontSize.s14
86
89
  }
87
90
  },
88
91
  groupTitle: {
89
- textColor: tokens.semantic.color.text.secondary500,
90
- fontSize: tokens.core.font.fontSize.s10
92
+ textColor: tokens.semantic.color.text.secondary950,
93
+ fontSize: tokens.core.font.fontSize.s10,
94
+ letterSpacing: '0.13em'
91
95
  }
92
96
  };
93
97
  export default theme;
@@ -1,5 +1,7 @@
1
1
  export declare const cardVariants: readonly ["primary", "secondary", "informative", "success", "notice", "attention", "danger", "upsell"];
2
2
  export type CardVariant = (typeof cardVariants)[number];
3
+ export declare const cardHoverEffects: readonly ["none", "sunset", "lift", "highlight"];
4
+ export type CardHoverEffect = (typeof cardHoverEffects)[number];
3
5
  export type CardTheme = {
4
6
  width: string;
5
7
  height: string;
@@ -7,4 +9,9 @@ export type CardTheme = {
7
9
  bgColor: string;
8
10
  borderColor: string;
9
11
  }>;
12
+ hover?: {
13
+ bgColor: string;
14
+ borderColor: string;
15
+ sunsetColor: string;
16
+ };
10
17
  };
@@ -8,3 +8,4 @@ export const cardVariants = [
8
8
  'danger',
9
9
  'upsell'
10
10
  ];
11
+ export const cardHoverEffects = ['none', 'sunset', 'lift', 'highlight'];
@@ -49,6 +49,7 @@ export type SideBarTheme = {
49
49
  states: Record<SideBarItemState, {
50
50
  bgColor?: string;
51
51
  textColor?: string;
52
+ labelColor?: string;
52
53
  }>;
53
54
  tooltip: {
54
55
  textColor: string;
@@ -75,6 +76,7 @@ export type SideBarTheme = {
75
76
  groupTitle: {
76
77
  textColor: string;
77
78
  fontSize?: string;
79
+ letterSpacing?: string;
78
80
  };
79
81
  };
80
82
  export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@redis-ui/styles",
3
3
  "license": "UNLICENSED",
4
- "version": "21.24.1",
4
+ "version": "21.26.0",
5
5
  "repository": "git@github.com:redislabsdev/redis-ui.git",
6
6
  "type": "module",
7
7
  "files": [