@redis-ui/styles 21.27.0 → 21.29.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.
- package/dist/index.js +64 -4
- package/dist/index.umd.cjs +1 -1
- package/dist/themes/themeDark/theme/components/input.js +15 -1
- package/dist/themes/themeDarkNext/theme/components/button.js +2 -0
- package/dist/themes/themeDarkNext/theme/components/input.js +15 -1
- package/dist/themes/themeLight/theme/components/input.js +15 -1
- package/dist/themes/themeLightNext/theme/components/button.js +2 -0
- package/dist/themes/themeLightNext/theme/components/input.js +15 -1
- package/dist/themes/types/theme/components/button.types.d.ts +1 -0
- package/dist/themes/types/theme/components/input.types.d.ts +11 -1
- package/package.json +1 -1
|
@@ -9,6 +9,10 @@ const theme = {
|
|
|
9
9
|
resetButton: {
|
|
10
10
|
iconColor: tokens.semantic.color.icon.secondary200
|
|
11
11
|
},
|
|
12
|
+
copyButton: {
|
|
13
|
+
iconSize: '1.4rem',
|
|
14
|
+
hoverIconColor: tokens.semantic.color.text.secondary200
|
|
15
|
+
},
|
|
12
16
|
indicator: {
|
|
13
17
|
errorTooltipTextColor: tokens.semantic.color.text.secondary50,
|
|
14
18
|
errorIconColor: tokens.semantic.color.icon.danger400,
|
|
@@ -54,6 +58,10 @@ const theme = {
|
|
|
54
58
|
bgColor: 'transparent',
|
|
55
59
|
textColor: tokens.semantic.color.text.secondary200,
|
|
56
60
|
borderColor: 'transparent'
|
|
61
|
+
},
|
|
62
|
+
boxedReadonly: {
|
|
63
|
+
bgColor: tokens.semantic.color.background.secondary990,
|
|
64
|
+
textColor: tokens.semantic.color.text.secondary400
|
|
57
65
|
}
|
|
58
66
|
},
|
|
59
67
|
textarea: {
|
|
@@ -65,7 +73,13 @@ const theme = {
|
|
|
65
73
|
minHeight: '3.6rem',
|
|
66
74
|
maxHeight: '8rem'
|
|
67
75
|
},
|
|
68
|
-
indicatorMargin: '0.8rem 0.9rem auto auto'
|
|
76
|
+
indicatorMargin: '0.8rem 0.9rem auto auto',
|
|
77
|
+
copyButton: {
|
|
78
|
+
inset: '1.1rem 0.9rem auto auto',
|
|
79
|
+
statusInset: '1.1rem 3.7rem auto auto',
|
|
80
|
+
padding: '0.8rem 3.1rem 0.8rem 1rem',
|
|
81
|
+
statusPadding: '0.8rem 5.9rem 0.8rem 1rem'
|
|
82
|
+
}
|
|
69
83
|
},
|
|
70
84
|
search: {
|
|
71
85
|
iconColor: tokens.semantic.color.icon.secondary200,
|
|
@@ -12,6 +12,7 @@ const theme = {
|
|
|
12
12
|
},
|
|
13
13
|
medium: {
|
|
14
14
|
borderRadius: '0.5rem',
|
|
15
|
+
gap: '0.4rem',
|
|
15
16
|
padding: '0.8rem 1.8rem',
|
|
16
17
|
height: '3rem',
|
|
17
18
|
lineHeight: '1.3rem',
|
|
@@ -19,6 +20,7 @@ const theme = {
|
|
|
19
20
|
},
|
|
20
21
|
large: {
|
|
21
22
|
borderRadius: '0.5rem',
|
|
23
|
+
gap: '0.4rem',
|
|
22
24
|
padding: '0.9rem 2.8rem',
|
|
23
25
|
height: '3.6rem',
|
|
24
26
|
lineHeight: '1.8rem',
|
|
@@ -9,6 +9,10 @@ const theme = {
|
|
|
9
9
|
resetButton: {
|
|
10
10
|
iconColor: tokens.semantic.color.icon.secondary400
|
|
11
11
|
},
|
|
12
|
+
copyButton: {
|
|
13
|
+
iconSize: '1.4rem',
|
|
14
|
+
hoverIconColor: tokens.semantic.color.text.secondary0
|
|
15
|
+
},
|
|
12
16
|
indicator: {
|
|
13
17
|
errorTooltipTextColor: tokens.semantic.color.text.primary300,
|
|
14
18
|
errorIconColor: tokens.semantic.color.icon.primary300,
|
|
@@ -57,6 +61,10 @@ const theme = {
|
|
|
57
61
|
bgColor: 'transparent',
|
|
58
62
|
textColor: tokens.semantic.color.text.secondary0,
|
|
59
63
|
borderColor: 'transparent'
|
|
64
|
+
},
|
|
65
|
+
boxedReadonly: {
|
|
66
|
+
bgColor: tokens.semantic.color.background.secondary990,
|
|
67
|
+
textColor: tokens.semantic.color.text.secondary300
|
|
60
68
|
}
|
|
61
69
|
},
|
|
62
70
|
textarea: {
|
|
@@ -68,7 +76,13 @@ const theme = {
|
|
|
68
76
|
minHeight: '3.6rem',
|
|
69
77
|
maxHeight: '8rem'
|
|
70
78
|
},
|
|
71
|
-
indicatorMargin: '0.8rem 0.9rem auto auto'
|
|
79
|
+
indicatorMargin: '0.8rem 0.9rem auto auto',
|
|
80
|
+
copyButton: {
|
|
81
|
+
inset: '1.1rem 0.9rem auto auto',
|
|
82
|
+
statusInset: '1.1rem 3.7rem auto auto',
|
|
83
|
+
padding: '0.8rem 3.1rem 0.8rem 1rem',
|
|
84
|
+
statusPadding: '0.8rem 5.9rem 0.8rem 1rem'
|
|
85
|
+
}
|
|
72
86
|
},
|
|
73
87
|
search: {
|
|
74
88
|
iconColor: tokens.semantic.color.icon.secondary400,
|
|
@@ -9,6 +9,10 @@ const theme = {
|
|
|
9
9
|
resetButton: {
|
|
10
10
|
iconColor: tokens.semantic.color.icon.secondary950
|
|
11
11
|
},
|
|
12
|
+
copyButton: {
|
|
13
|
+
iconSize: '1.4rem',
|
|
14
|
+
hoverIconColor: tokens.semantic.color.text.secondary950
|
|
15
|
+
},
|
|
12
16
|
indicator: {
|
|
13
17
|
errorTooltipTextColor: tokens.semantic.color.text.danger500,
|
|
14
18
|
errorIconColor: tokens.semantic.color.icon.danger500,
|
|
@@ -54,6 +58,10 @@ const theme = {
|
|
|
54
58
|
bgColor: 'transparent',
|
|
55
59
|
textColor: tokens.semantic.color.text.secondary950,
|
|
56
60
|
borderColor: 'transparent'
|
|
61
|
+
},
|
|
62
|
+
boxedReadonly: {
|
|
63
|
+
bgColor: tokens.semantic.color.background.secondary100,
|
|
64
|
+
textColor: tokens.semantic.color.text.secondary700
|
|
57
65
|
}
|
|
58
66
|
},
|
|
59
67
|
textarea: {
|
|
@@ -65,7 +73,13 @@ const theme = {
|
|
|
65
73
|
minHeight: '3.6rem',
|
|
66
74
|
maxHeight: '8rem'
|
|
67
75
|
},
|
|
68
|
-
indicatorMargin: '0.8rem 0.9rem auto auto'
|
|
76
|
+
indicatorMargin: '0.8rem 0.9rem auto auto',
|
|
77
|
+
copyButton: {
|
|
78
|
+
inset: '1.1rem 0.9rem auto auto',
|
|
79
|
+
statusInset: '1.1rem 3.7rem auto auto',
|
|
80
|
+
padding: '0.8rem 3.1rem 0.8rem 1rem',
|
|
81
|
+
statusPadding: '0.8rem 5.9rem 0.8rem 1rem'
|
|
82
|
+
}
|
|
69
83
|
},
|
|
70
84
|
search: {
|
|
71
85
|
iconColor: tokens.semantic.color.icon.secondary950,
|
|
@@ -12,6 +12,7 @@ const theme = {
|
|
|
12
12
|
},
|
|
13
13
|
medium: {
|
|
14
14
|
borderRadius: '0.5rem',
|
|
15
|
+
gap: '0.4rem',
|
|
15
16
|
padding: '0.8rem 1.8rem',
|
|
16
17
|
height: '3rem',
|
|
17
18
|
lineHeight: '1.3rem',
|
|
@@ -19,6 +20,7 @@ const theme = {
|
|
|
19
20
|
},
|
|
20
21
|
large: {
|
|
21
22
|
borderRadius: '0.5rem',
|
|
23
|
+
gap: '0.4rem',
|
|
22
24
|
padding: '0.9rem 2.8rem',
|
|
23
25
|
height: '3.6rem',
|
|
24
26
|
lineHeight: '1.8rem',
|
|
@@ -9,6 +9,10 @@ const theme = {
|
|
|
9
9
|
resetButton: {
|
|
10
10
|
iconColor: tokens.semantic.color.icon.secondary500
|
|
11
11
|
},
|
|
12
|
+
copyButton: {
|
|
13
|
+
iconSize: '1.4rem',
|
|
14
|
+
hoverIconColor: tokens.semantic.color.text.secondary950
|
|
15
|
+
},
|
|
12
16
|
indicator: {
|
|
13
17
|
errorTooltipTextColor: tokens.semantic.color.text.danger500,
|
|
14
18
|
errorIconColor: tokens.semantic.color.icon.danger500,
|
|
@@ -57,6 +61,10 @@ const theme = {
|
|
|
57
61
|
bgColor: 'transparent',
|
|
58
62
|
textColor: tokens.semantic.color.text.secondary950,
|
|
59
63
|
borderColor: 'transparent'
|
|
64
|
+
},
|
|
65
|
+
boxedReadonly: {
|
|
66
|
+
bgColor: tokens.semantic.color.background.secondary50,
|
|
67
|
+
textColor: tokens.semantic.color.text.secondary700
|
|
60
68
|
}
|
|
61
69
|
},
|
|
62
70
|
textarea: {
|
|
@@ -68,7 +76,13 @@ const theme = {
|
|
|
68
76
|
minHeight: '3.6rem',
|
|
69
77
|
maxHeight: '8rem'
|
|
70
78
|
},
|
|
71
|
-
indicatorMargin: '0.8rem 0.9rem auto auto'
|
|
79
|
+
indicatorMargin: '0.8rem 0.9rem auto auto',
|
|
80
|
+
copyButton: {
|
|
81
|
+
inset: '1.1rem 0.9rem auto auto',
|
|
82
|
+
statusInset: '1.1rem 3.7rem auto auto',
|
|
83
|
+
padding: '0.8rem 3.1rem 0.8rem 1rem',
|
|
84
|
+
statusPadding: '0.8rem 5.9rem 0.8rem 1rem'
|
|
85
|
+
}
|
|
72
86
|
},
|
|
73
87
|
search: {
|
|
74
88
|
iconColor: tokens.semantic.color.icon.secondary500,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { LoaderSize } from './loader.types';
|
|
2
2
|
type InputVariant = 'outline' | 'underline';
|
|
3
|
-
type InputState = 'normal' | 'focused' | 'disabled' | 'error' | 'success' | 'readonly';
|
|
3
|
+
type InputState = 'normal' | 'focused' | 'disabled' | 'error' | 'success' | 'readonly' | 'boxedReadonly';
|
|
4
4
|
type InputStateColors = {
|
|
5
5
|
bgColor?: string;
|
|
6
6
|
textColor?: string;
|
|
@@ -16,6 +16,10 @@ export type InputTheme = {
|
|
|
16
16
|
resetButton: {
|
|
17
17
|
iconColor: string;
|
|
18
18
|
};
|
|
19
|
+
copyButton: {
|
|
20
|
+
iconSize: string;
|
|
21
|
+
hoverIconColor: string;
|
|
22
|
+
};
|
|
19
23
|
indicator: {
|
|
20
24
|
errorTooltipTextColor: string;
|
|
21
25
|
errorIconColor: string;
|
|
@@ -45,6 +49,12 @@ export type InputTheme = {
|
|
|
45
49
|
maxHeight: string;
|
|
46
50
|
};
|
|
47
51
|
indicatorMargin: string;
|
|
52
|
+
copyButton: {
|
|
53
|
+
inset: string;
|
|
54
|
+
statusInset: string;
|
|
55
|
+
padding: string;
|
|
56
|
+
statusPadding: string;
|
|
57
|
+
};
|
|
48
58
|
};
|
|
49
59
|
search: {
|
|
50
60
|
iconColor: string;
|