@redis-ui/styles 21.7.0 → 21.9.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 +122 -31
- package/dist/index.umd.cjs +2 -2
- package/dist/themes/themeDark/theme/components/charts.js +4 -0
- package/dist/themes/themeDarkNext/theme/components/actionIconButton.js +6 -2
- package/dist/themes/themeDarkNext/theme/components/button.js +3 -1
- package/dist/themes/themeDarkNext/theme/components/charts.js +4 -0
- package/dist/themes/themeDarkNext/theme/components/chip.js +8 -4
- package/dist/themes/themeDarkNext/theme/components/input.js +4 -0
- package/dist/themes/themeDarkNext/theme/components/menu.js +1 -0
- package/dist/themes/themeDarkNext/theme/components/modal.js +3 -1
- package/dist/themes/themeDarkNext/theme/components/popover.js +2 -0
- package/dist/themes/themeDarkNext/theme/components/select.js +4 -0
- package/dist/themes/themeDarkNext/theme/components/tabs.js +1 -0
- package/dist/themes/themeDarkNext/theme/components/toast.js +2 -1
- package/dist/themes/themeDarkNext/theme/components/tooltip.js +7 -6
- package/dist/themes/themeLight/theme/components/charts.js +4 -0
- package/dist/themes/themeLightNext/theme/components/button.js +3 -1
- package/dist/themes/themeLightNext/theme/components/charts.js +4 -0
- package/dist/themes/themeLightNext/theme/components/chip.js +8 -4
- package/dist/themes/themeLightNext/theme/components/input.js +4 -0
- package/dist/themes/themeLightNext/theme/components/menu.js +1 -0
- package/dist/themes/themeLightNext/theme/components/modal.js +3 -1
- package/dist/themes/themeLightNext/theme/components/popover.js +2 -0
- package/dist/themes/themeLightNext/theme/components/select.js +4 -0
- package/dist/themes/themeLightNext/theme/components/tabs.js +4 -0
- package/dist/themes/themeLightNext/theme/components/toast.js +2 -1
- package/dist/themes/themeLightNext/theme/components/tooltip.js +8 -7
- package/dist/themes/types/theme/components/button.types.d.ts +2 -0
- package/dist/themes/types/theme/components/charts.types.d.ts +4 -0
- package/dist/themes/types/theme/components/chip.types.d.ts +1 -0
- package/dist/themes/types/theme/components/input.types.d.ts +9 -5
- package/dist/themes/types/theme/components/menu.types.d.ts +1 -0
- package/dist/themes/types/theme/components/modal.types.d.ts +2 -0
- package/dist/themes/types/theme/components/popover.types.d.ts +2 -0
- package/dist/themes/types/theme/components/select.types.d.ts +10 -6
- package/dist/themes/types/theme/components/tooltip.types.d.ts +1 -0
- package/package.json +1 -1
|
@@ -63,6 +63,10 @@ const theme = {
|
|
|
63
63
|
sparkline: {
|
|
64
64
|
strokeWidth: 1.5,
|
|
65
65
|
areaOpacity: { from: 0.4, to: 0.04 }
|
|
66
|
+
},
|
|
67
|
+
panel: {
|
|
68
|
+
padding: { S: tokens.core.space.space200, M: tokens.core.space.space200 },
|
|
69
|
+
gap: { S: tokens.core.space.space100, M: tokens.core.space.space100 }
|
|
66
70
|
}
|
|
67
71
|
};
|
|
68
72
|
export default theme;
|
|
@@ -22,16 +22,20 @@ const theme = {
|
|
|
22
22
|
primary: {
|
|
23
23
|
normal: {
|
|
24
24
|
bgColor: tokens.semantic.color.background.primary950,
|
|
25
|
+
borderColor: tokens.semantic.color.border.primary400,
|
|
25
26
|
textColor: tokens.semantic.color.text.secondary0
|
|
26
27
|
},
|
|
27
28
|
hover: {
|
|
28
|
-
bgColor: tokens.semantic.color.background.primary800
|
|
29
|
+
bgColor: tokens.semantic.color.background.primary800,
|
|
30
|
+
borderColor: tokens.semantic.color.border.primary600
|
|
29
31
|
},
|
|
30
32
|
active: {
|
|
31
|
-
bgColor: tokens.semantic.color.background.primary600
|
|
33
|
+
bgColor: tokens.semantic.color.background.primary600,
|
|
34
|
+
borderColor: tokens.semantic.color.border.primary600
|
|
32
35
|
},
|
|
33
36
|
disabled: {
|
|
34
37
|
bgColor: tokens.semantic.color.background.secondary700,
|
|
38
|
+
borderColor: tokens.semantic.color.border.secondary700,
|
|
35
39
|
textColor: tokens.semantic.color.text.secondary400
|
|
36
40
|
}
|
|
37
41
|
},
|
|
@@ -3,6 +3,7 @@ import { withOpacity } from '../../../../utils';
|
|
|
3
3
|
const destructiveBorder = withOpacity(tokens.semantic.color.background.primary300, 0.55);
|
|
4
4
|
const theme = {
|
|
5
5
|
gap: '0.2rem',
|
|
6
|
+
pressTransform: 'translateY(1px)',
|
|
6
7
|
sizes: {
|
|
7
8
|
small: {
|
|
8
9
|
borderRadius: '0.3rem',
|
|
@@ -20,7 +21,8 @@ const theme = {
|
|
|
20
21
|
borderRadius: '0.5rem',
|
|
21
22
|
padding: '0.8rem 1.6rem',
|
|
22
23
|
height: '3.6rem',
|
|
23
|
-
lineHeight: '1.91rem'
|
|
24
|
+
lineHeight: '1.91rem',
|
|
25
|
+
fontSize: '1.6rem'
|
|
24
26
|
}
|
|
25
27
|
},
|
|
26
28
|
variants: {
|
|
@@ -66,6 +66,10 @@ const theme = {
|
|
|
66
66
|
sparkline: {
|
|
67
67
|
strokeWidth: 1.6,
|
|
68
68
|
areaOpacity: { from: 0.55, to: 0.04 }
|
|
69
|
+
},
|
|
70
|
+
panel: {
|
|
71
|
+
padding: { S: '1.8rem', M: '2rem 2.2rem 1.6rem' },
|
|
72
|
+
gap: { S: '0.6rem', M: tokens.core.space.space100 }
|
|
69
73
|
}
|
|
70
74
|
};
|
|
71
75
|
export default theme;
|
|
@@ -18,21 +18,25 @@ const theme = {
|
|
|
18
18
|
regular: {
|
|
19
19
|
normal: {
|
|
20
20
|
bgColor: tokens.semantic.color.background.secondary900,
|
|
21
|
-
textColor: tokens.semantic.color.text.secondary0
|
|
21
|
+
textColor: tokens.semantic.color.text.secondary0,
|
|
22
|
+
borderColor: tokens.semantic.color.border.secondary700
|
|
22
23
|
},
|
|
23
24
|
disabled: {
|
|
24
25
|
bgColor: tokens.semantic.color.background.secondary700,
|
|
25
|
-
textColor: tokens.semantic.color.text.secondary400
|
|
26
|
+
textColor: tokens.semantic.color.text.secondary400,
|
|
27
|
+
borderColor: tokens.semantic.color.border.secondary700
|
|
26
28
|
}
|
|
27
29
|
},
|
|
28
30
|
flat: {
|
|
29
31
|
normal: {
|
|
30
32
|
bgColor: tokens.semantic.color.background.secondary900,
|
|
31
|
-
textColor: tokens.semantic.color.text.secondary0
|
|
33
|
+
textColor: tokens.semantic.color.text.secondary0,
|
|
34
|
+
borderColor: tokens.semantic.color.border.secondary700
|
|
32
35
|
},
|
|
33
36
|
disabled: {
|
|
34
37
|
bgColor: tokens.semantic.color.background.secondary700,
|
|
35
|
-
textColor: tokens.semantic.color.text.secondary400
|
|
38
|
+
textColor: tokens.semantic.color.text.secondary400,
|
|
39
|
+
borderColor: tokens.semantic.color.border.secondary700
|
|
36
40
|
}
|
|
37
41
|
}
|
|
38
42
|
},
|
|
@@ -30,12 +30,16 @@ const theme = {
|
|
|
30
30
|
borderWidth: '1px 0'
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
|
+
focusRing: `0 0 0 3px ${tokens.semantic.color.border.secondary700}`,
|
|
33
34
|
states: {
|
|
34
35
|
normal: {
|
|
35
36
|
bgColor: tokens.semantic.color.background.secondary950,
|
|
36
37
|
textColor: tokens.semantic.color.text.secondary0,
|
|
37
38
|
borderColor: tokens.semantic.color.border.secondary500
|
|
38
39
|
},
|
|
40
|
+
hover: {
|
|
41
|
+
borderColor: tokens.semantic.color.border.secondary400
|
|
42
|
+
},
|
|
39
43
|
focused: {
|
|
40
44
|
borderColor: tokens.semantic.color.border.secondary0
|
|
41
45
|
},
|
|
@@ -8,6 +8,7 @@ const theme = {
|
|
|
8
8
|
borderRadius: '0.8rem',
|
|
9
9
|
shadow: tokens.core.shadow.shadow600,
|
|
10
10
|
bgColor: tokens.semantic.color.background.secondary950,
|
|
11
|
+
borderColor: tokens.semantic.color.border.secondary700,
|
|
11
12
|
header: {
|
|
12
13
|
blockPadding: '0 1.6rem',
|
|
13
14
|
closeIconColor: tokens.semantic.color.icon.secondary400,
|
|
@@ -28,7 +29,8 @@ const theme = {
|
|
|
28
29
|
buttonsGap: '0.8rem'
|
|
29
30
|
},
|
|
30
31
|
overlay: {
|
|
31
|
-
bgColor: withOpacity(tokens.semantic.color.background.secondary950, 0.55)
|
|
32
|
+
bgColor: withOpacity(tokens.semantic.color.background.secondary950, 0.55),
|
|
33
|
+
backdropFilter: 'blur(4px)'
|
|
32
34
|
}
|
|
33
35
|
};
|
|
34
36
|
export default theme;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { tokens } from '../../tokens';
|
|
2
2
|
const theme = {
|
|
3
3
|
bgColor: tokens.semantic.color.background.secondary950,
|
|
4
|
+
textColor: tokens.semantic.color.text.secondary300,
|
|
5
|
+
borderColor: tokens.semantic.color.border.secondary700,
|
|
4
6
|
shadow: tokens.core.shadow.shadow400,
|
|
5
7
|
borderRadius: '0.8rem',
|
|
6
8
|
minWidth: '10rem',
|
|
@@ -28,12 +28,16 @@ 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}`,
|
|
31
32
|
states: {
|
|
32
33
|
normal: {
|
|
33
34
|
bgColor: tokens.semantic.color.background.secondary950,
|
|
34
35
|
borderColor: tokens.semantic.color.border.secondary500,
|
|
35
36
|
textColor: tokens.semantic.color.text.secondary0
|
|
36
37
|
},
|
|
38
|
+
hover: {
|
|
39
|
+
borderColor: tokens.semantic.color.border.secondary400
|
|
40
|
+
},
|
|
37
41
|
focused: {
|
|
38
42
|
borderColor: tokens.semantic.color.border.secondary0
|
|
39
43
|
},
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { tokens } from '../../tokens';
|
|
1
2
|
const theme = {
|
|
2
3
|
width: 'clamp(400px, 33vw, 640px)',
|
|
3
4
|
padding: '12px max(12px, calc(20 * (100vw / 1920)))',
|
|
4
|
-
shadow:
|
|
5
|
+
shadow: tokens.core.shadow.shadow400,
|
|
5
6
|
gap: '1.2rem',
|
|
6
7
|
actions: { gap: '0.8rem', inlineMargin: '2.4rem 0' },
|
|
7
8
|
toaster: { gap: '2rem' }
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { tokens } from '../../tokens';
|
|
2
2
|
const theme = {
|
|
3
|
-
textColor: tokens.semantic.color.text.
|
|
3
|
+
textColor: tokens.semantic.color.text.secondary0,
|
|
4
|
+
contentTextColor: tokens.semantic.color.text.secondary0,
|
|
4
5
|
bgColor: tokens.semantic.color.background.secondary950,
|
|
5
|
-
shadow: `0 0 0 1px ${tokens.semantic.color.border.
|
|
6
|
-
borderRadius: '0.
|
|
6
|
+
shadow: `0 0 0 1px ${tokens.semantic.color.border.secondary700}`,
|
|
7
|
+
borderRadius: '0.2rem',
|
|
7
8
|
minWidth: 'initial',
|
|
8
9
|
maxWidth: '30rem',
|
|
9
|
-
blockPadding: '0.
|
|
10
|
-
inlinePadding: '
|
|
10
|
+
blockPadding: '0.6rem',
|
|
11
|
+
inlinePadding: '1rem',
|
|
11
12
|
arrow: {
|
|
12
13
|
width: '16px',
|
|
13
14
|
height: '8px',
|
|
14
|
-
shadow: `0 1px 0 ${tokens.semantic.color.border.
|
|
15
|
+
shadow: `0 1px 0 ${tokens.semantic.color.border.secondary700}`
|
|
15
16
|
}
|
|
16
17
|
};
|
|
17
18
|
export default theme;
|
|
@@ -63,6 +63,10 @@ const theme = {
|
|
|
63
63
|
sparkline: {
|
|
64
64
|
strokeWidth: 1.5,
|
|
65
65
|
areaOpacity: { from: 0.4, to: 0.04 }
|
|
66
|
+
},
|
|
67
|
+
panel: {
|
|
68
|
+
padding: { S: tokens.core.space.space200, M: tokens.core.space.space200 },
|
|
69
|
+
gap: { S: tokens.core.space.space100, M: tokens.core.space.space100 }
|
|
66
70
|
}
|
|
67
71
|
};
|
|
68
72
|
export default theme;
|
|
@@ -3,6 +3,7 @@ import { withOpacity } from '../../../../utils';
|
|
|
3
3
|
const destructiveBorder = withOpacity(tokens.semantic.color.background.primary400, 0.55);
|
|
4
4
|
const theme = {
|
|
5
5
|
gap: '0.2rem',
|
|
6
|
+
pressTransform: 'translateY(1px)',
|
|
6
7
|
sizes: {
|
|
7
8
|
small: {
|
|
8
9
|
borderRadius: '0.3rem',
|
|
@@ -20,7 +21,8 @@ const theme = {
|
|
|
20
21
|
borderRadius: '0.5rem',
|
|
21
22
|
padding: '0.8rem 1.6rem',
|
|
22
23
|
height: '3.6rem',
|
|
23
|
-
lineHeight: '1.91rem'
|
|
24
|
+
lineHeight: '1.91rem',
|
|
25
|
+
fontSize: '1.6rem'
|
|
24
26
|
}
|
|
25
27
|
},
|
|
26
28
|
variants: {
|
|
@@ -66,6 +66,10 @@ const theme = {
|
|
|
66
66
|
sparkline: {
|
|
67
67
|
strokeWidth: 1.6,
|
|
68
68
|
areaOpacity: { from: 0.35, to: 0.04 }
|
|
69
|
+
},
|
|
70
|
+
panel: {
|
|
71
|
+
padding: { S: '1.8rem', M: '2rem 2.2rem 1.6rem' },
|
|
72
|
+
gap: { S: '0.6rem', M: tokens.core.space.space100 }
|
|
69
73
|
}
|
|
70
74
|
};
|
|
71
75
|
export default theme;
|
|
@@ -18,21 +18,25 @@ const theme = {
|
|
|
18
18
|
regular: {
|
|
19
19
|
normal: {
|
|
20
20
|
bgColor: tokens.semantic.color.background.neutral100,
|
|
21
|
-
textColor: tokens.semantic.color.text.secondary950
|
|
21
|
+
textColor: tokens.semantic.color.text.secondary950,
|
|
22
|
+
borderColor: tokens.semantic.color.border.secondary200
|
|
22
23
|
},
|
|
23
24
|
disabled: {
|
|
24
25
|
bgColor: tokens.semantic.color.background.secondary200,
|
|
25
|
-
textColor: tokens.semantic.color.text.secondary500
|
|
26
|
+
textColor: tokens.semantic.color.text.secondary500,
|
|
27
|
+
borderColor: tokens.semantic.color.border.secondary200
|
|
26
28
|
}
|
|
27
29
|
},
|
|
28
30
|
flat: {
|
|
29
31
|
normal: {
|
|
30
32
|
bgColor: tokens.semantic.color.background.neutral100,
|
|
31
|
-
textColor: tokens.semantic.color.text.secondary950
|
|
33
|
+
textColor: tokens.semantic.color.text.secondary950,
|
|
34
|
+
borderColor: tokens.semantic.color.border.secondary200
|
|
32
35
|
},
|
|
33
36
|
disabled: {
|
|
34
37
|
bgColor: tokens.semantic.color.background.secondary200,
|
|
35
|
-
textColor: tokens.semantic.color.text.secondary500
|
|
38
|
+
textColor: tokens.semantic.color.text.secondary500,
|
|
39
|
+
borderColor: tokens.semantic.color.border.secondary200
|
|
36
40
|
}
|
|
37
41
|
}
|
|
38
42
|
},
|
|
@@ -30,12 +30,16 @@ const theme = {
|
|
|
30
30
|
borderWidth: '1px 0'
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
|
+
focusRing: `0 0 0 3px ${tokens.semantic.color.border.informative100}`,
|
|
33
34
|
states: {
|
|
34
35
|
normal: {
|
|
35
36
|
bgColor: tokens.semantic.color.background.secondary0,
|
|
36
37
|
textColor: tokens.semantic.color.text.secondary950,
|
|
37
38
|
borderColor: tokens.semantic.color.border.secondary400
|
|
38
39
|
},
|
|
40
|
+
hover: {
|
|
41
|
+
borderColor: tokens.semantic.color.border.secondary500
|
|
42
|
+
},
|
|
39
43
|
focused: {
|
|
40
44
|
borderColor: tokens.semantic.color.border.secondary950
|
|
41
45
|
},
|
|
@@ -8,6 +8,7 @@ const theme = {
|
|
|
8
8
|
borderRadius: '0.8rem',
|
|
9
9
|
shadow: tokens.core.shadow.shadow600,
|
|
10
10
|
bgColor: tokens.semantic.color.background.secondary0,
|
|
11
|
+
borderColor: tokens.semantic.color.border.secondary200,
|
|
11
12
|
header: {
|
|
12
13
|
blockPadding: '0 1.6rem',
|
|
13
14
|
closeIconColor: tokens.semantic.color.icon.secondary500,
|
|
@@ -28,7 +29,8 @@ const theme = {
|
|
|
28
29
|
buttonsGap: '0.8rem'
|
|
29
30
|
},
|
|
30
31
|
overlay: {
|
|
31
|
-
bgColor: withOpacity(tokens.semantic.color.background.secondary950, 0.55)
|
|
32
|
+
bgColor: withOpacity(tokens.semantic.color.background.secondary950, 0.55),
|
|
33
|
+
backdropFilter: 'blur(4px)'
|
|
32
34
|
}
|
|
33
35
|
};
|
|
34
36
|
export default theme;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { tokens } from '../../tokens';
|
|
2
2
|
const theme = {
|
|
3
3
|
bgColor: tokens.semantic.color.background.secondary0,
|
|
4
|
+
textColor: tokens.semantic.color.text.secondary500,
|
|
5
|
+
borderColor: tokens.semantic.color.border.secondary200,
|
|
4
6
|
shadow: tokens.core.shadow.shadow400,
|
|
5
7
|
borderRadius: '0.8rem',
|
|
6
8
|
minWidth: '10rem',
|
|
@@ -28,12 +28,16 @@ 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}`,
|
|
31
32
|
states: {
|
|
32
33
|
normal: {
|
|
33
34
|
bgColor: tokens.semantic.color.background.secondary0,
|
|
34
35
|
borderColor: tokens.semantic.color.border.secondary400,
|
|
35
36
|
textColor: tokens.semantic.color.text.secondary950
|
|
36
37
|
},
|
|
38
|
+
hover: {
|
|
39
|
+
borderColor: tokens.semantic.color.border.secondary500
|
|
40
|
+
},
|
|
37
41
|
focused: {
|
|
38
42
|
borderColor: tokens.semantic.color.border.secondary950
|
|
39
43
|
},
|
|
@@ -14,6 +14,9 @@ const theme = {
|
|
|
14
14
|
padding: '2px 0 4px',
|
|
15
15
|
letterSpacing: '0.11px'
|
|
16
16
|
},
|
|
17
|
+
hover: {
|
|
18
|
+
textColor: tokens.semantic.color.text.secondary950
|
|
19
|
+
},
|
|
17
20
|
active: {
|
|
18
21
|
textColor: tokens.semantic.color.text.secondary950,
|
|
19
22
|
fontWeight: tokens.core.font.fontWeight.semiBold,
|
|
@@ -58,6 +61,7 @@ const theme = {
|
|
|
58
61
|
borderColor: tokens.semantic.color.border.transparent
|
|
59
62
|
},
|
|
60
63
|
hover: {
|
|
64
|
+
textColor: tokens.semantic.color.text.secondary950,
|
|
61
65
|
bgColor: tokens.semantic.color.background.neutral100
|
|
62
66
|
},
|
|
63
67
|
active: {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { tokens } from '../../tokens';
|
|
1
2
|
const theme = {
|
|
2
3
|
width: 'clamp(400px, 33vw, 640px)',
|
|
3
4
|
padding: '12px max(12px, calc(20 * (100vw / 1920)))',
|
|
4
|
-
shadow:
|
|
5
|
+
shadow: tokens.core.shadow.shadow400,
|
|
5
6
|
gap: '1.2rem',
|
|
6
7
|
actions: { gap: '0.8rem', inlineMargin: '2.4rem 0' },
|
|
7
8
|
toaster: { gap: '2rem' }
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { tokens } from '../../tokens';
|
|
2
2
|
const theme = {
|
|
3
|
-
textColor: tokens.semantic.color.text.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
textColor: tokens.semantic.color.text.secondary0,
|
|
4
|
+
contentTextColor: tokens.semantic.color.text.secondary0,
|
|
5
|
+
bgColor: tokens.semantic.color.background.secondary950,
|
|
6
|
+
shadow: 'none',
|
|
7
|
+
borderRadius: '0.2rem',
|
|
7
8
|
minWidth: 'initial',
|
|
8
9
|
maxWidth: '30rem',
|
|
9
|
-
blockPadding: '0.
|
|
10
|
-
inlinePadding: '
|
|
10
|
+
blockPadding: '0.6rem',
|
|
11
|
+
inlinePadding: '1rem',
|
|
11
12
|
arrow: {
|
|
12
13
|
width: '16px',
|
|
13
14
|
height: '8px',
|
|
14
|
-
shadow:
|
|
15
|
+
shadow: '0 0 0 transparent'
|
|
15
16
|
}
|
|
16
17
|
};
|
|
17
18
|
export default theme;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import type { LoaderSize } from './loader.types';
|
|
2
2
|
type InputVariant = 'outline' | 'underline';
|
|
3
3
|
type InputState = 'normal' | 'focused' | 'disabled' | 'error' | 'success' | 'readonly';
|
|
4
|
+
type InputStateColors = {
|
|
5
|
+
bgColor?: string;
|
|
6
|
+
textColor?: string;
|
|
7
|
+
borderColor?: string;
|
|
8
|
+
};
|
|
4
9
|
export type InputTheme = {
|
|
5
10
|
padding: string;
|
|
6
11
|
height: string;
|
|
@@ -26,11 +31,10 @@ export type InputTheme = {
|
|
|
26
31
|
borderRadius: string;
|
|
27
32
|
borderWidth: string;
|
|
28
33
|
}>;
|
|
29
|
-
states: Record<InputState, {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}>;
|
|
34
|
+
states: Record<InputState, InputStateColors> & {
|
|
35
|
+
hover?: InputStateColors;
|
|
36
|
+
};
|
|
37
|
+
focusRing?: string;
|
|
34
38
|
textarea: {
|
|
35
39
|
padding: string;
|
|
36
40
|
statusPadding: string;
|
|
@@ -5,6 +5,7 @@ export type ModalTheme = {
|
|
|
5
5
|
blockScreenMargin: string;
|
|
6
6
|
shadow: string;
|
|
7
7
|
bgColor: string;
|
|
8
|
+
borderColor?: string;
|
|
8
9
|
borderRadius: string;
|
|
9
10
|
header: {
|
|
10
11
|
blockPadding: string;
|
|
@@ -27,5 +28,6 @@ export type ModalTheme = {
|
|
|
27
28
|
};
|
|
28
29
|
overlay: {
|
|
29
30
|
bgColor: string;
|
|
31
|
+
backdropFilter?: string;
|
|
30
32
|
};
|
|
31
33
|
};
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
type SelectState = 'normal' | 'focused' | 'opened' | 'error' | 'success' | 'disabled' | 'readonly';
|
|
2
|
+
type SelectStateColors = {
|
|
3
|
+
bgColor?: string;
|
|
4
|
+
textColor?: string;
|
|
5
|
+
borderColor?: string;
|
|
6
|
+
iconOpacity?: string;
|
|
7
|
+
};
|
|
2
8
|
type OptionState = 'normal' | 'highlighted' | 'checked' | 'disabled';
|
|
3
9
|
export type SelectTheme = {
|
|
4
10
|
padding: string;
|
|
@@ -29,12 +35,10 @@ export type SelectTheme = {
|
|
|
29
35
|
multiValue: {
|
|
30
36
|
margin: string;
|
|
31
37
|
};
|
|
32
|
-
states: Record<SelectState, {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
iconOpacity?: string;
|
|
37
|
-
}>;
|
|
38
|
+
states: Record<SelectState, SelectStateColors> & {
|
|
39
|
+
hover?: SelectStateColors;
|
|
40
|
+
};
|
|
41
|
+
focusRing?: string;
|
|
38
42
|
dropdown: {
|
|
39
43
|
padding: string;
|
|
40
44
|
bgColor: string;
|