@redis-ui/styles 21.23.0 → 21.24.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.
@@ -3,11 +3,12 @@ const theme = {
3
3
  bgColor: tokens.semantic.color.background.secondary900,
4
4
  textColor: tokens.semantic.color.text.neutral0,
5
5
  borderRadius: '0.5rem',
6
+ border: 'none',
6
7
  fontFamily: tokens.core.font.fontFamily.sourceCodeProRegular,
7
8
  lineHeight: '1.7',
8
- padding: '1.4rem 1.6rem',
9
- paddingWithCopy: '1.4rem 5.2rem 1.4rem 1.6rem',
10
- copyButtonOffset: '0.9rem',
9
+ paddingY: '1.4rem',
10
+ paddingX: '1.6rem',
11
+ paddingRightWithCopy: '4.8rem',
11
12
  sizes: {
12
13
  M: { fontSize: '1.25rem' },
13
14
  S: { fontSize: '1.15rem' }
@@ -1,13 +1,14 @@
1
1
  import { tokens } from '../../tokens';
2
2
  const theme = {
3
- bgColor: tokens.semantic.color.background.secondary900,
4
- textColor: tokens.semantic.color.text.neutral0,
3
+ bgColor: tokens.semantic.color.background.secondary990,
4
+ textColor: tokens.semantic.color.text.secondary300,
5
5
  borderRadius: '0.5rem',
6
+ border: `1px solid ${tokens.semantic.color.border.secondary500}`,
6
7
  fontFamily: tokens.core.font.fontFamily.sourceCodeProRegular,
7
8
  lineHeight: '1.7',
8
- padding: '1.4rem 1.6rem',
9
- paddingWithCopy: '1.4rem 5.2rem 1.4rem 1.6rem',
10
- copyButtonOffset: '0.9rem',
9
+ paddingY: '1.4rem',
10
+ paddingX: '1.6rem',
11
+ paddingRightWithCopy: '4.8rem',
11
12
  sizes: {
12
13
  M: { fontSize: '1.25rem' },
13
14
  S: { fontSize: '1.15rem' }
@@ -18,9 +18,9 @@ const theme = {
18
18
  iconColor: icon.neutral0
19
19
  },
20
20
  copied: {
21
- bgColor: background.secondary200,
22
- borderColor: border.secondary200,
23
- iconColor: icon.secondary950
21
+ bgColor: background.secondary950,
22
+ borderColor: border.secondary500,
23
+ iconColor: icon.success500
24
24
  },
25
25
  disabled: {
26
26
  bgColor: background.secondary950,
@@ -65,6 +65,7 @@ const theme = {
65
65
  padding: '0.8rem 0',
66
66
  bgColor: tokens.semantic.color.background.secondary950,
67
67
  shadow: tokens.core.shadow.shadow400,
68
+ borderColor: tokens.semantic.color.border.secondary700,
68
69
  borderRadius: '0.5rem',
69
70
  triggerOffset: '0.4rem',
70
71
  maxHeight: '50vh',
@@ -3,11 +3,12 @@ const theme = {
3
3
  bgColor: tokens.semantic.color.background.neutral100,
4
4
  textColor: tokens.semantic.color.text.secondary950,
5
5
  borderRadius: '0.5rem',
6
+ border: 'none',
6
7
  fontFamily: tokens.core.font.fontFamily.sourceCodeProRegular,
7
8
  lineHeight: '1.7',
8
- padding: '1.4rem 1.6rem',
9
- paddingWithCopy: '1.4rem 5.2rem 1.4rem 1.6rem',
10
- copyButtonOffset: '0.9rem',
9
+ paddingY: '1.4rem',
10
+ paddingX: '1.6rem',
11
+ paddingRightWithCopy: '4.8rem',
11
12
  sizes: {
12
13
  M: { fontSize: '1.25rem' },
13
14
  S: { fontSize: '1.15rem' }
@@ -3,11 +3,12 @@ const theme = {
3
3
  bgColor: tokens.semantic.color.background.neutral100,
4
4
  textColor: tokens.semantic.color.text.secondary950,
5
5
  borderRadius: '0.5rem',
6
+ border: 'none',
6
7
  fontFamily: tokens.core.font.fontFamily.sourceCodeProRegular,
7
8
  lineHeight: '1.7',
8
- padding: '1.4rem 1.6rem',
9
- paddingWithCopy: '1.4rem 5.2rem 1.4rem 1.6rem',
10
- copyButtonOffset: '0.9rem',
9
+ paddingY: '1.4rem',
10
+ paddingX: '1.6rem',
11
+ paddingRightWithCopy: '4.8rem',
11
12
  sizes: {
12
13
  M: { fontSize: '1.25rem' },
13
14
  S: { fontSize: '1.15rem' }
@@ -64,6 +64,7 @@ const theme = {
64
64
  padding: '0.8rem 0',
65
65
  bgColor: tokens.semantic.color.background.secondary0,
66
66
  shadow: tokens.core.shadow.shadow400,
67
+ borderColor: tokens.semantic.color.border.secondary200,
67
68
  borderRadius: '0.5rem',
68
69
  triggerOffset: '0.4rem',
69
70
  maxHeight: '50vh',
@@ -3,11 +3,13 @@ export type CodeBlockTheme = {
3
3
  bgColor: string;
4
4
  textColor: string;
5
5
  borderRadius: string;
6
+ border: string;
6
7
  fontFamily: string;
7
8
  lineHeight: string;
8
- padding: string;
9
- paddingWithCopy: string;
10
- copyButtonOffset: string;
9
+ paddingY: string;
10
+ paddingX: string;
11
+ /** Right padding that leaves room for the copy button */
12
+ paddingRightWithCopy: string;
11
13
  sizes: Record<CodeBlockSize, {
12
14
  fontSize: string;
13
15
  }>;
@@ -43,6 +43,7 @@ export type SelectTheme = {
43
43
  padding: string;
44
44
  bgColor: string;
45
45
  shadow: string;
46
+ borderColor?: string;
46
47
  borderRadius: string;
47
48
  triggerOffset: string;
48
49
  maxHeight: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@redis-ui/styles",
3
3
  "license": "UNLICENSED",
4
- "version": "21.23.0",
4
+ "version": "21.24.1",
5
5
  "repository": "git@github.com:redislabsdev/redis-ui.git",
6
6
  "type": "module",
7
7
  "files": [