@redis-ui/styles 21.13.1 → 21.14.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.
@@ -66,7 +66,13 @@ const theme = {
66
66
  triggerOffset: '0.4rem',
67
67
  maxHeight: '50vh',
68
68
  search: {
69
- margin: '0.8rem 1.6rem'
69
+ margin: '0.8rem 1.6rem',
70
+ inline: {
71
+ padding: '1.1rem 1.3rem',
72
+ gap: '0.9rem',
73
+ fontSize: tokens.core.font.fontSize.s13,
74
+ iconSize: '1.4rem'
75
+ }
70
76
  },
71
77
  footer: {
72
78
  blockPadding: '1rem 0.2rem',
@@ -74,6 +80,27 @@ const theme = {
74
80
  separator: {
75
81
  size: '1px',
76
82
  color: tokens.semantic.color.border.secondary800
83
+ },
84
+ action: {
85
+ padding: '1.1rem 1.5rem',
86
+ gap: '0.9rem',
87
+ fontSize: tokens.core.font.fontSize.s13,
88
+ iconSize: '1.3rem',
89
+ textColor: tokens.semantic.color.text.secondary50,
90
+ iconColor: tokens.semantic.color.icon.secondary400,
91
+ hoverBgColor: tokens.semantic.color.background.secondary800
92
+ }
93
+ },
94
+ compact: {
95
+ listPadding: '0.5rem',
96
+ borderColor: tokens.semantic.color.border.secondary800,
97
+ option: {
98
+ height: '3.6rem',
99
+ fontSize: tokens.core.font.fontSize.s13,
100
+ padding: '0 0.4rem 0 1rem',
101
+ gap: '0.9rem',
102
+ borderRadius: '0.4rem',
103
+ indicatorSize: '1.4rem'
77
104
  }
78
105
  },
79
106
  option: {
@@ -12,7 +12,8 @@ const theme = {
12
12
  normal: {
13
13
  textColor: tokens.semantic.color.text.secondary400,
14
14
  padding: '2px 0 4px',
15
- letterSpacing: '0.11px'
15
+ letterSpacing: '0.11px',
16
+ fontSize: tokens.core.font.fontSize.s14
16
17
  },
17
18
  hover: {
18
19
  textColor: tokens.semantic.color.text.secondary200
@@ -55,7 +56,7 @@ const theme = {
55
56
  textColor: tokens.semantic.color.text.secondary400,
56
57
  padding: '4px 8px',
57
58
  letterSpacing: '0.11px',
58
- fontSize: `1.2rem`,
59
+ fontSize: tokens.core.font.fontSize.s14,
59
60
  borderRadius: '0.3rem',
60
61
  borderWidth: '1px',
61
62
  borderColor: tokens.semantic.color.border.transparent
@@ -1,6 +1,7 @@
1
1
  import { tokens } from '../../tokens';
2
2
  const theme = {
3
3
  gap: tokens.core.space.space100,
4
+ fontSize: tokens.core.font.fontSize.s13,
4
5
  link: {
5
6
  states: {
6
7
  normal: {
@@ -70,7 +70,13 @@ const theme = {
70
70
  triggerOffset: '0.4rem',
71
71
  maxHeight: '50vh',
72
72
  search: {
73
- margin: '0.8rem 1.6rem'
73
+ margin: '0.8rem 1.6rem',
74
+ inline: {
75
+ padding: '1.1rem 1.3rem',
76
+ gap: '0.9rem',
77
+ fontSize: tokens.core.font.fontSize.s13,
78
+ iconSize: '1.4rem'
79
+ }
74
80
  },
75
81
  footer: {
76
82
  blockPadding: '1rem 0.2rem',
@@ -78,6 +84,27 @@ const theme = {
78
84
  separator: {
79
85
  size: '1px',
80
86
  color: tokens.semantic.color.text.secondary700
87
+ },
88
+ action: {
89
+ padding: '1.1rem 1.5rem',
90
+ gap: '0.9rem',
91
+ fontSize: tokens.core.font.fontSize.s13,
92
+ iconSize: '1.3rem',
93
+ textColor: tokens.semantic.color.text.secondary0,
94
+ iconColor: tokens.semantic.color.icon.secondary400,
95
+ hoverBgColor: tokens.semantic.color.background.secondary900
96
+ }
97
+ },
98
+ compact: {
99
+ listPadding: '0.5rem',
100
+ borderColor: tokens.semantic.color.text.secondary700,
101
+ option: {
102
+ height: '3.6rem',
103
+ fontSize: tokens.core.font.fontSize.s13,
104
+ padding: '0 0.4rem 0 1rem',
105
+ gap: '0.9rem',
106
+ borderRadius: '0.4rem',
107
+ indicatorSize: '1.4rem'
81
108
  }
82
109
  },
83
110
  option: {
@@ -2,25 +2,24 @@ import { tokens } from '../../tokens';
2
2
  const theme = {
3
3
  variants: {
4
4
  default: {
5
- gap: '4rem',
5
+ gap: '2.4rem',
6
6
  tabsLine: {
7
- size: '4px',
7
+ size: '1px',
8
8
  color: tokens.semantic.color.text.secondary700
9
9
  },
10
10
  tab: {
11
11
  states: {
12
12
  normal: {
13
13
  textColor: tokens.semantic.color.text.secondary300,
14
- padding: '2px 0 4px',
15
- letterSpacing: '0.11px'
14
+ padding: '9px 2px',
15
+ fontSize: tokens.core.font.fontSize.s13
16
16
  },
17
17
  hover: {
18
18
  textColor: tokens.semantic.color.text.secondary0
19
19
  },
20
20
  active: {
21
21
  textColor: tokens.semantic.color.text.secondary0,
22
- fontWeight: tokens.core.font.fontWeight.semiBold,
23
- letterSpacing: '0'
22
+ fontWeight: tokens.core.font.fontWeight.semiBold
24
23
  },
25
24
  disabled: {
26
25
  textColor: tokens.semantic.color.text.secondary400
@@ -31,14 +30,14 @@ const theme = {
31
30
  states: {
32
31
  normal: {
33
32
  color: 'transparent',
34
- size: '4px',
35
- inset: 'auto 0 -4px'
33
+ size: '2px',
34
+ inset: 'auto 0 -1px'
36
35
  },
37
36
  hover: {
38
37
  color: tokens.semantic.color.text.secondary500
39
38
  },
40
39
  active: {
41
- color: tokens.semantic.color.text.secondary0
40
+ color: tokens.semantic.color.border.primary400
42
41
  }
43
42
  }
44
43
  }
@@ -55,7 +54,7 @@ const theme = {
55
54
  textColor: tokens.semantic.color.text.secondary300,
56
55
  padding: '4px 8px',
57
56
  letterSpacing: '0.11px',
58
- fontSize: `1.2rem`,
57
+ fontSize: tokens.core.font.fontSize.s14,
59
58
  borderRadius: '0.3rem',
60
59
  borderWidth: '1px',
61
60
  borderColor: tokens.semantic.color.border.transparent
@@ -65,7 +65,13 @@ const theme = {
65
65
  triggerOffset: '0.4rem',
66
66
  maxHeight: '50vh',
67
67
  search: {
68
- margin: '0.8rem 1.6rem'
68
+ margin: '0.8rem 1.6rem',
69
+ inline: {
70
+ padding: '1.1rem 1.3rem',
71
+ gap: '0.9rem',
72
+ fontSize: tokens.core.font.fontSize.s13,
73
+ iconSize: '1.4rem'
74
+ }
69
75
  },
70
76
  footer: {
71
77
  blockPadding: '1rem 0.2rem',
@@ -73,6 +79,27 @@ const theme = {
73
79
  separator: {
74
80
  size: '1px',
75
81
  color: tokens.semantic.color.border.secondary300
82
+ },
83
+ action: {
84
+ padding: '1.1rem 1.5rem',
85
+ gap: '0.9rem',
86
+ fontSize: tokens.core.font.fontSize.s13,
87
+ iconSize: '1.3rem',
88
+ textColor: tokens.semantic.color.text.secondary950,
89
+ iconColor: tokens.semantic.color.icon.secondary950,
90
+ hoverBgColor: tokens.semantic.color.background.secondary100
91
+ }
92
+ },
93
+ compact: {
94
+ listPadding: '0.5rem',
95
+ borderColor: tokens.semantic.color.border.secondary300,
96
+ option: {
97
+ height: '3.6rem',
98
+ fontSize: tokens.core.font.fontSize.s13,
99
+ padding: '0 0.4rem 0 1rem',
100
+ gap: '0.9rem',
101
+ borderRadius: '0.4rem',
102
+ indicatorSize: '1.4rem'
76
103
  }
77
104
  },
78
105
  option: {
@@ -12,7 +12,8 @@ const theme = {
12
12
  normal: {
13
13
  textColor: tokens.semantic.color.text.secondary700,
14
14
  padding: '2px 0 4px',
15
- letterSpacing: '0.11px'
15
+ letterSpacing: '0.11px',
16
+ fontSize: tokens.core.font.fontSize.s14
16
17
  },
17
18
  active: {
18
19
  textColor: tokens.semantic.color.text.secondary950,
@@ -52,7 +53,7 @@ const theme = {
52
53
  textColor: tokens.semantic.color.text.secondary700,
53
54
  padding: '4px 8px',
54
55
  letterSpacing: '0.11px',
55
- fontSize: `1.2rem`,
56
+ fontSize: tokens.core.font.fontSize.s14,
56
57
  borderRadius: '0.3rem',
57
58
  borderWidth: '1px',
58
59
  borderColor: tokens.semantic.color.border.transparent
@@ -1,6 +1,7 @@
1
1
  import { tokens } from '../../tokens';
2
2
  const theme = {
3
3
  gap: tokens.core.space.space100,
4
+ fontSize: tokens.core.font.fontSize.s13,
4
5
  link: {
5
6
  states: {
6
7
  normal: {
@@ -69,7 +69,13 @@ const theme = {
69
69
  triggerOffset: '0.4rem',
70
70
  maxHeight: '50vh',
71
71
  search: {
72
- margin: '0.8rem 1.6rem'
72
+ margin: '0.8rem 1.6rem',
73
+ inline: {
74
+ padding: '1.1rem 1.3rem',
75
+ gap: '0.9rem',
76
+ fontSize: tokens.core.font.fontSize.s13,
77
+ iconSize: '1.4rem'
78
+ }
73
79
  },
74
80
  footer: {
75
81
  blockPadding: '1rem 0.2rem',
@@ -77,6 +83,27 @@ const theme = {
77
83
  separator: {
78
84
  size: '1px',
79
85
  color: tokens.semantic.color.text.secondary200
86
+ },
87
+ action: {
88
+ padding: '1.1rem 1.5rem',
89
+ gap: '0.9rem',
90
+ fontSize: tokens.core.font.fontSize.s13,
91
+ iconSize: '1.3rem',
92
+ textColor: tokens.semantic.color.text.secondary950,
93
+ iconColor: tokens.semantic.color.icon.secondary500,
94
+ hoverBgColor: tokens.semantic.color.background.neutral100
95
+ }
96
+ },
97
+ compact: {
98
+ listPadding: '0.5rem',
99
+ borderColor: tokens.semantic.color.text.secondary200,
100
+ option: {
101
+ height: '3.6rem',
102
+ fontSize: tokens.core.font.fontSize.s13,
103
+ padding: '0 0.4rem 0 1rem',
104
+ gap: '0.9rem',
105
+ borderRadius: '0.4rem',
106
+ indicatorSize: '1.4rem'
80
107
  }
81
108
  },
82
109
  option: {
@@ -2,25 +2,24 @@ import { tokens } from '../../tokens';
2
2
  const theme = {
3
3
  variants: {
4
4
  default: {
5
- gap: '4rem',
5
+ gap: '2.4rem',
6
6
  tabsLine: {
7
- size: '4px',
7
+ size: '1px',
8
8
  color: tokens.semantic.color.text.secondary200
9
9
  },
10
10
  tab: {
11
11
  states: {
12
12
  normal: {
13
13
  textColor: tokens.semantic.color.text.secondary500,
14
- padding: '2px 0 4px',
15
- letterSpacing: '0.11px'
14
+ padding: '9px 2px',
15
+ fontSize: tokens.core.font.fontSize.s13
16
16
  },
17
17
  hover: {
18
18
  textColor: tokens.semantic.color.text.secondary950
19
19
  },
20
20
  active: {
21
21
  textColor: tokens.semantic.color.text.secondary950,
22
- fontWeight: tokens.core.font.fontWeight.semiBold,
23
- letterSpacing: '0'
22
+ fontWeight: tokens.core.font.fontWeight.semiBold
24
23
  },
25
24
  disabled: {
26
25
  textColor: tokens.semantic.color.text.secondary500
@@ -31,14 +30,14 @@ const theme = {
31
30
  states: {
32
31
  normal: {
33
32
  color: 'transparent',
34
- size: '4px',
35
- inset: 'auto 0 -4px'
33
+ size: '2px',
34
+ inset: 'auto 0 -1px'
36
35
  },
37
36
  hover: {
38
37
  color: tokens.semantic.color.text.secondary400
39
38
  },
40
39
  active: {
41
- color: tokens.semantic.color.text.secondary950
40
+ color: tokens.semantic.color.border.primary400
42
41
  }
43
42
  }
44
43
  }
@@ -55,7 +54,7 @@ const theme = {
55
54
  textColor: tokens.semantic.color.text.secondary500,
56
55
  padding: '4px 8px',
57
56
  letterSpacing: '0.11px',
58
- fontSize: `1.2rem`,
57
+ fontSize: tokens.core.font.fontSize.s14,
59
58
  borderRadius: '0.3rem',
60
59
  borderWidth: '1px',
61
60
  borderColor: tokens.semantic.color.border.transparent
@@ -5,6 +5,8 @@ export type BreadcrumbsStateColors = {
5
5
  export type BreadcrumbsStatesTheme = Partial<Record<BreadcrumbsState, BreadcrumbsStateColors>>;
6
6
  export type BreadcrumbsTheme = {
7
7
  gap: string;
8
+ /** Falls back to the body `M` text size. */
9
+ fontSize?: string;
8
10
  link: {
9
11
  states: BreadcrumbsStatesTheme;
10
12
  };
@@ -48,6 +48,12 @@ export type SelectTheme = {
48
48
  maxHeight: string;
49
49
  search: {
50
50
  margin: string;
51
+ inline?: {
52
+ padding: string;
53
+ gap: string;
54
+ fontSize: string;
55
+ iconSize: string;
56
+ };
51
57
  };
52
58
  footer: {
53
59
  blockPadding: string;
@@ -56,6 +62,27 @@ export type SelectTheme = {
56
62
  size: string;
57
63
  color: string;
58
64
  };
65
+ action?: {
66
+ padding: string;
67
+ gap: string;
68
+ fontSize: string;
69
+ iconSize: string;
70
+ textColor: string;
71
+ iconColor: string;
72
+ hoverBgColor: string;
73
+ };
74
+ };
75
+ compact?: {
76
+ listPadding: string;
77
+ borderColor: string;
78
+ option: {
79
+ height: string;
80
+ fontSize: string;
81
+ padding: string;
82
+ gap: string;
83
+ borderRadius: string;
84
+ indicatorSize: string;
85
+ };
59
86
  };
60
87
  option: {
61
88
  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.13.1",
4
+ "version": "21.14.1",
5
5
  "repository": "git@github.com:redislabsdev/redis-ui.git",
6
6
  "type": "module",
7
7
  "files": [