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