@redis-ui/styles 21.25.0 → 21.26.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.
@@ -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,7 +1,7 @@
1
1
  import { tokens } from '../../tokens';
2
2
  const theme = {
3
3
  borderRadius: '0.5rem',
4
- border: `1px solid ${tokens.semantic.color.border.transparent}`,
4
+ border: `1px solid ${tokens.semantic.color.border.secondary700}`,
5
5
  bgColor: tokens.semantic.color.background.secondary990,
6
6
  fontSize: '1.4rem',
7
7
  fontWeight: tokens.core.font.fontWeight.normal,
@@ -17,22 +17,22 @@ const theme = {
17
17
  toggleStates: {
18
18
  on: {
19
19
  normal: {
20
- bgColor: tokens.semantic.color.background.secondary950,
20
+ bgColor: tokens.semantic.color.background.secondary900,
21
21
  textColor: tokens.semantic.color.text.secondary0,
22
22
  borderColor: tokens.semantic.color.border.secondary500
23
23
  },
24
24
  hover: {
25
- bgColor: tokens.semantic.color.background.secondary950,
25
+ bgColor: tokens.semantic.color.background.secondary900,
26
26
  textColor: tokens.semantic.color.text.secondary0,
27
27
  borderColor: tokens.semantic.color.border.secondary500
28
28
  },
29
29
  active: {
30
- bgColor: tokens.semantic.color.background.secondary950,
30
+ bgColor: tokens.semantic.color.background.secondary900,
31
31
  textColor: tokens.semantic.color.text.secondary0,
32
32
  borderColor: tokens.semantic.color.border.secondary500
33
33
  },
34
34
  disabled: {
35
- bgColor: tokens.semantic.color.background.secondary950,
35
+ bgColor: tokens.semantic.color.background.secondary900,
36
36
  textColor: tokens.semantic.color.text.secondary400,
37
37
  borderColor: tokens.semantic.color.border.secondary500
38
38
  }
@@ -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;
@@ -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;
@@ -1,7 +1,7 @@
1
1
  import { tokens } from '../../tokens';
2
2
  const theme = {
3
3
  borderRadius: '0.5rem',
4
- border: `1px solid ${tokens.semantic.color.border.transparent}`,
4
+ border: `1px solid ${tokens.semantic.color.border.secondary200}`,
5
5
  bgColor: tokens.semantic.color.background.secondary50,
6
6
  fontSize: '1.4rem',
7
7
  fontWeight: tokens.core.font.fontWeight.normal,
@@ -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;
@@ -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'];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@redis-ui/styles",
3
3
  "license": "UNLICENSED",
4
- "version": "21.25.0",
4
+ "version": "21.26.1",
5
5
  "repository": "git@github.com:redislabsdev/redis-ui.git",
6
6
  "type": "module",
7
7
  "files": [