@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.
- package/dist/index.js +23 -17
- package/dist/index.umd.cjs +2 -2
- package/dist/themes/themeDark/theme/components/codeBlock.js +4 -3
- package/dist/themes/themeDarkNext/theme/components/codeBlock.js +6 -5
- package/dist/themes/themeDarkNext/theme/components/copyToClipboardButton.js +3 -3
- package/dist/themes/themeDarkNext/theme/components/select.js +1 -0
- package/dist/themes/themeLight/theme/components/codeBlock.js +4 -3
- package/dist/themes/themeLightNext/theme/components/codeBlock.js +4 -3
- package/dist/themes/themeLightNext/theme/components/select.js +1 -0
- package/dist/themes/types/theme/components/codeBlock.types.d.ts +5 -3
- package/dist/themes/types/theme/components/select.types.d.ts +1 -0
- package/package.json +1 -1
|
@@ -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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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.
|
|
4
|
-
textColor: tokens.semantic.color.text.
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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.
|
|
22
|
-
borderColor: border.
|
|
23
|
-
iconColor: icon.
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
}>;
|