@redis-ui/styles 21.15.3 → 21.17.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,6 +1,4 @@
1
1
  import { tokens } from '../../tokens';
2
- import { withOpacity } from '../../../../utils';
3
- const destructiveBorder = withOpacity(tokens.semantic.color.background.primary300, 0.55);
4
2
  const theme = {
5
3
  gap: '0.2rem',
6
4
  pressTransform: 'translateY(1px)',
@@ -8,21 +6,21 @@ const theme = {
8
6
  small: {
9
7
  borderRadius: '0.5rem',
10
8
  padding: '0.8rem 1.4rem',
11
- height: '3rem',
9
+ height: '2.8rem',
12
10
  lineHeight: '1.2rem',
13
11
  fontSize: '1.2rem'
14
12
  },
15
13
  medium: {
16
14
  borderRadius: '0.5rem',
17
- padding: '1rem 1.8rem',
18
- height: '3.6rem',
19
- lineHeight: '1.2rem',
20
- fontSize: '1.2rem'
15
+ padding: '0.8rem 1.8rem',
16
+ height: '3rem',
17
+ lineHeight: '1.3rem',
18
+ fontSize: '1.3rem'
21
19
  },
22
20
  large: {
23
21
  borderRadius: '0.5rem',
24
- padding: '1.2rem 2.8rem',
25
- height: '4.4rem',
22
+ padding: '0.9rem 2.8rem',
23
+ height: '3.6rem',
26
24
  lineHeight: '1.8rem',
27
25
  fontSize: '1.3rem'
28
26
  }
@@ -52,19 +50,19 @@ const theme = {
52
50
  },
53
51
  destructive: {
54
52
  normal: {
55
- bgColor: tokens.semantic.color.background.secondary800,
56
- borderColor: destructiveBorder,
53
+ bgColor: tokens.semantic.color.background.secondary950,
54
+ borderColor: tokens.semantic.color.border.primary300,
57
55
  textColor: tokens.semantic.color.text.primary300
58
56
  },
59
57
  hover: {
60
- bgColor: tokens.semantic.color.background.secondary700,
61
- borderColor: destructiveBorder,
62
- textColor: tokens.semantic.color.text.primary300
58
+ bgColor: '#272328',
59
+ borderColor: tokens.semantic.color.border.primary400,
60
+ textColor: tokens.semantic.color.text.primary400
63
61
  },
64
62
  active: {
65
- bgColor: tokens.semantic.color.background.secondary500,
66
- borderColor: destructiveBorder,
67
- textColor: tokens.semantic.color.text.primary300
63
+ bgColor: '#3E292C',
64
+ borderColor: tokens.semantic.color.border.primary600,
65
+ textColor: tokens.semantic.color.text.primary400
68
66
  },
69
67
  disabled: {
70
68
  bgColor: tokens.semantic.color.background.secondary700,
@@ -9,7 +9,8 @@ const theme = {
9
9
  button: {
10
10
  tooltip: {
11
11
  textColor: tokens.semantic.color.text.secondary0
12
- }
12
+ },
13
+ height: '3.4rem'
13
14
  },
14
15
  collapseButton: {
15
16
  border: {
@@ -76,7 +77,9 @@ const theme = {
76
77
  },
77
78
  fontSize: tokens.core.font.fontSize.s13,
78
79
  gap: tokens.core.space.space200,
79
- iconSize: '1.8rem'
80
+ iconSize: '1.8rem',
81
+ height: '3rem',
82
+ margin: '0.1rem 0.5rem 0.1rem 1rem'
80
83
  },
81
84
  groupTitle: {
82
85
  textColor: tokens.semantic.color.text.secondary400,
@@ -1,6 +1,4 @@
1
1
  import { tokens } from '../../tokens';
2
- import { withOpacity } from '../../../../utils';
3
- const destructiveBorder = withOpacity(tokens.semantic.color.background.primary400, 0.55);
4
2
  const theme = {
5
3
  gap: '0.2rem',
6
4
  pressTransform: 'translateY(1px)',
@@ -8,21 +6,21 @@ const theme = {
8
6
  small: {
9
7
  borderRadius: '0.5rem',
10
8
  padding: '0.8rem 1.4rem',
11
- height: '3rem',
9
+ height: '2.8rem',
12
10
  lineHeight: '1.2rem',
13
11
  fontSize: '1.2rem'
14
12
  },
15
13
  medium: {
16
14
  borderRadius: '0.5rem',
17
- padding: '1rem 1.8rem',
18
- height: '3.6rem',
19
- lineHeight: '1.2rem',
20
- fontSize: '1.2rem'
15
+ padding: '0.8rem 1.8rem',
16
+ height: '3rem',
17
+ lineHeight: '1.3rem',
18
+ fontSize: '1.3rem'
21
19
  },
22
20
  large: {
23
21
  borderRadius: '0.5rem',
24
- padding: '1.2rem 2.8rem',
25
- height: '4.4rem',
22
+ padding: '0.9rem 2.8rem',
23
+ height: '3.6rem',
26
24
  lineHeight: '1.8rem',
27
25
  fontSize: '1.3rem'
28
26
  }
@@ -53,18 +51,18 @@ const theme = {
53
51
  destructive: {
54
52
  normal: {
55
53
  bgColor: tokens.semantic.color.background.secondary0,
56
- borderColor: destructiveBorder,
57
- textColor: tokens.semantic.color.text.danger500
54
+ borderColor: tokens.semantic.color.border.primary700,
55
+ textColor: tokens.semantic.color.text.primary700
58
56
  },
59
57
  hover: {
60
- bgColor: tokens.semantic.color.background.secondary100,
61
- borderColor: destructiveBorder,
62
- textColor: tokens.semantic.color.text.danger500
58
+ bgColor: '#FFEBE7',
59
+ borderColor: tokens.semantic.color.border.primary600,
60
+ textColor: tokens.semantic.color.text.primary800
63
61
  },
64
62
  active: {
65
- bgColor: tokens.semantic.color.background.secondary200,
66
- borderColor: destructiveBorder,
67
- textColor: tokens.semantic.color.text.danger500
63
+ bgColor: '#FFDBD4',
64
+ borderColor: tokens.semantic.color.border.primary500,
65
+ textColor: tokens.semantic.color.text.primary800
68
66
  },
69
67
  disabled: {
70
68
  bgColor: tokens.semantic.color.background.secondary200,
@@ -9,7 +9,8 @@ const theme = {
9
9
  button: {
10
10
  tooltip: {
11
11
  textColor: tokens.semantic.color.text.secondary950
12
- }
12
+ },
13
+ height: '3.4rem'
13
14
  },
14
15
  collapseButton: {
15
16
  border: {
@@ -76,7 +77,9 @@ const theme = {
76
77
  },
77
78
  fontSize: tokens.core.font.fontSize.s13,
78
79
  gap: tokens.core.space.space200,
79
- iconSize: '1.8rem'
80
+ iconSize: '1.8rem',
81
+ height: '3rem',
82
+ margin: '0.1rem 0.5rem 0.1rem 1rem'
80
83
  },
81
84
  groupTitle: {
82
85
  textColor: tokens.semantic.color.text.secondary500,
@@ -9,6 +9,7 @@ export type SideBarTheme = {
9
9
  tooltip: {
10
10
  textColor: string;
11
11
  };
12
+ height?: string;
12
13
  };
13
14
  collapseButton: {
14
15
  border: {
@@ -63,6 +64,8 @@ export type SideBarTheme = {
63
64
  fontSize?: string;
64
65
  gap?: string;
65
66
  iconSize?: string;
67
+ height?: string;
68
+ margin?: string;
66
69
  };
67
70
  groupTitle: {
68
71
  textColor: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@redis-ui/styles",
3
3
  "license": "UNLICENSED",
4
- "version": "21.15.3",
4
+ "version": "21.17.0",
5
5
  "repository": "git@github.com:redislabsdev/redis-ui.git",
6
6
  "type": "module",
7
7
  "files": [