@redis-ui/styles 21.19.0 → 21.21.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.
@@ -30,7 +30,6 @@ const theme = {
30
30
  borderWidth: '1px 0'
31
31
  }
32
32
  },
33
- focusRing: `0 0 0 3px ${tokens.semantic.color.border.secondary700}`,
34
33
  states: {
35
34
  normal: {
36
35
  bgColor: tokens.semantic.color.background.secondary950,
@@ -41,7 +40,7 @@ const theme = {
41
40
  borderColor: tokens.semantic.color.border.secondary400
42
41
  },
43
42
  focused: {
44
- borderColor: tokens.semantic.color.border.secondary0
43
+ borderColor: tokens.semantic.color.border.secondary500
45
44
  },
46
45
  success: {
47
46
  borderColor: tokens.semantic.color.border.success500
@@ -28,7 +28,6 @@ const theme = {
28
28
  multiValue: {
29
29
  margin: '0 0 0 -0.6rem'
30
30
  },
31
- focusRing: `0 0 0 3px ${tokens.semantic.color.border.secondary700}`,
32
31
  states: {
33
32
  normal: {
34
33
  bgColor: tokens.semantic.color.background.secondary950,
@@ -39,10 +38,10 @@ const theme = {
39
38
  borderColor: tokens.semantic.color.border.secondary400
40
39
  },
41
40
  focused: {
42
- borderColor: tokens.semantic.color.border.secondary0
41
+ borderColor: tokens.semantic.color.border.secondary500
43
42
  },
44
43
  opened: {
45
- borderColor: tokens.semantic.color.border.secondary0
44
+ borderColor: tokens.semantic.color.border.secondary500
46
45
  },
47
46
  success: {
48
47
  borderColor: tokens.semantic.color.border.success500
@@ -1,10 +1,14 @@
1
+ import { withOpacity } from '../../../../utils';
1
2
  import { tokens } from '../../tokens';
2
3
  const theme = {
3
4
  gap: '0.8rem',
4
5
  step: {
5
6
  gap: '0.8rem',
6
7
  indicator: {
7
- size: '2rem'
8
+ size: '3rem',
9
+ fontFamily: tokens.core.font.fontFamily.sourceCodeProRegular,
10
+ fontSize: '1.25rem',
11
+ fontWeight: tokens.core.font.fontWeight.semiBold
8
12
  },
9
13
  separator: {
10
14
  height: '0.2rem'
@@ -12,8 +16,9 @@ const theme = {
12
16
  states: {
13
17
  idle: {
14
18
  indicator: {
15
- bgColor: tokens.semantic.color.background.secondary990,
16
- iconColor: tokens.semantic.color.icon.secondary400,
19
+ bgColor: tokens.semantic.color.background.transparent,
20
+ iconColor: tokens.semantic.color.text.secondary400,
21
+ border: `1px solid ${tokens.semantic.color.border.secondary500}`,
17
22
  borderRadius: '100%'
18
23
  },
19
24
  label: {
@@ -27,8 +32,9 @@ const theme = {
27
32
  },
28
33
  focused: {
29
34
  indicator: {
30
- bgColor: tokens.semantic.color.background.informative300,
31
- iconColor: tokens.semantic.color.icon.secondary950,
35
+ bgColor: withOpacity(tokens.semantic.color.background.primary400, 0.14),
36
+ iconColor: tokens.semantic.color.text.primary300,
37
+ border: `1px solid ${tokens.semantic.color.border.primary400}`,
32
38
  borderRadius: '100%'
33
39
  },
34
40
  label: {
@@ -42,10 +48,11 @@ const theme = {
42
48
  },
43
49
  completed: {
44
50
  indicator: {
45
- bgColor: tokens.semantic.color.background.success500,
51
+ bgColor: tokens.semantic.color.background.success200,
46
52
  iconColor: tokens.semantic.color.icon.secondary950,
53
+ border: `1px solid ${tokens.semantic.color.border.success200}`,
47
54
  borderRadius: '100%',
48
- padding: '0.4rem'
55
+ padding: '0.9rem'
49
56
  },
50
57
  label: {
51
58
  textColor: tokens.semantic.color.text.secondary0,
@@ -30,7 +30,6 @@ const theme = {
30
30
  borderWidth: '1px 0'
31
31
  }
32
32
  },
33
- focusRing: `0 0 0 3px ${tokens.semantic.color.border.informative100}`,
34
33
  states: {
35
34
  normal: {
36
35
  bgColor: tokens.semantic.color.background.secondary0,
@@ -41,7 +40,7 @@ const theme = {
41
40
  borderColor: tokens.semantic.color.border.secondary500
42
41
  },
43
42
  focused: {
44
- borderColor: tokens.semantic.color.border.secondary950
43
+ borderColor: tokens.semantic.color.border.secondary400
45
44
  },
46
45
  success: {
47
46
  borderColor: tokens.semantic.color.border.success500
@@ -28,7 +28,6 @@ const theme = {
28
28
  multiValue: {
29
29
  margin: '0 0 0 -0.6rem'
30
30
  },
31
- focusRing: `0 0 0 3px ${tokens.semantic.color.border.informative100}`,
32
31
  states: {
33
32
  normal: {
34
33
  bgColor: tokens.semantic.color.background.secondary0,
@@ -39,10 +38,10 @@ const theme = {
39
38
  borderColor: tokens.semantic.color.border.secondary500
40
39
  },
41
40
  focused: {
42
- borderColor: tokens.semantic.color.border.secondary950
41
+ borderColor: tokens.semantic.color.border.secondary400
43
42
  },
44
43
  opened: {
45
- borderColor: tokens.semantic.color.border.secondary950
44
+ borderColor: tokens.semantic.color.border.secondary400
46
45
  },
47
46
  success: {
48
47
  borderColor: tokens.semantic.color.border.success500
@@ -1,10 +1,14 @@
1
+ import { withOpacity } from '../../../../utils';
1
2
  import { tokens } from '../../tokens';
2
3
  const theme = {
3
4
  gap: '0.8rem',
4
5
  step: {
5
6
  gap: '0.8rem',
6
7
  indicator: {
7
- size: '2rem'
8
+ size: '3rem',
9
+ fontFamily: tokens.core.font.fontFamily.sourceCodeProRegular,
10
+ fontSize: '1.25rem',
11
+ fontWeight: tokens.core.font.fontWeight.semiBold
8
12
  },
9
13
  separator: {
10
14
  height: '0.2rem'
@@ -12,8 +16,9 @@ const theme = {
12
16
  states: {
13
17
  idle: {
14
18
  indicator: {
15
- bgColor: tokens.semantic.color.background.secondary50,
16
- iconColor: tokens.semantic.color.icon.secondary500,
19
+ bgColor: tokens.semantic.color.background.transparent,
20
+ iconColor: tokens.semantic.color.text.secondary500,
21
+ border: `1px solid ${tokens.semantic.color.border.secondary400}`,
17
22
  borderRadius: '100%'
18
23
  },
19
24
  label: {
@@ -27,8 +32,9 @@ const theme = {
27
32
  },
28
33
  focused: {
29
34
  indicator: {
30
- bgColor: '#0F6FB8',
31
- iconColor: tokens.semantic.color.icon.secondary0,
35
+ bgColor: withOpacity(tokens.semantic.color.background.primary400, 0.14),
36
+ iconColor: tokens.semantic.color.text.primary300,
37
+ border: `1px solid ${tokens.semantic.color.border.primary400}`,
32
38
  borderRadius: '100%'
33
39
  },
34
40
  label: {
@@ -42,10 +48,11 @@ const theme = {
42
48
  },
43
49
  completed: {
44
50
  indicator: {
45
- bgColor: tokens.semantic.color.background.success500,
51
+ bgColor: tokens.semantic.color.background.success200,
46
52
  iconColor: tokens.semantic.color.icon.secondary950,
53
+ border: `1px solid ${tokens.semantic.color.border.success200}`,
47
54
  borderRadius: '100%',
48
- padding: '0.4rem'
55
+ padding: '0.9rem'
49
56
  },
50
57
  label: {
51
58
  textColor: tokens.semantic.color.text.secondary950,
@@ -7,6 +7,7 @@ export type StepperTheme = {
7
7
  indicator: {
8
8
  bgColor: string;
9
9
  iconColor: string;
10
+ border?: string;
10
11
  padding?: string;
11
12
  borderRadius: string;
12
13
  };
@@ -21,6 +22,9 @@ export type StepperTheme = {
21
22
  }>;
22
23
  indicator: {
23
24
  size: string;
25
+ fontFamily?: string;
26
+ fontSize?: string;
27
+ fontWeight?: string;
24
28
  };
25
29
  separator: {
26
30
  height: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@redis-ui/styles",
3
3
  "license": "UNLICENSED",
4
- "version": "21.19.0",
4
+ "version": "21.21.0",
5
5
  "repository": "git@github.com:redislabsdev/redis-ui.git",
6
6
  "type": "module",
7
7
  "files": [