@saas-ui/react 3.0.0-next.26 → 3.0.0-next.28
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/CHANGELOG.md +16 -0
- package/dist/.tsbuildinfo.json +1 -1
- package/dist/components/action-bar/action-bar.recipe.js +1 -1
- package/dist/components/avatar/avatar.recipe.d.ts +6 -7
- package/dist/components/avatar/avatar.recipe.js +6 -7
- package/dist/components/breadcrumb/breadcrumb.recipe.js +1 -1
- package/dist/components/button/button.recipe.d.ts +4 -1
- package/dist/components/button/button.recipe.js +4 -1
- package/dist/components/card/card.recipe.d.ts +13 -5
- package/dist/components/card/card.recipe.js +18 -9
- package/dist/components/checkbox/checkbox.recipe.d.ts +4 -4
- package/dist/components/checkbox-card/checkbox-card.recipe.d.ts +2 -2
- package/dist/components/checkbox-card/checkbox-card.recipe.js +3 -2
- package/dist/components/checkmark/checkmark.recipe.d.ts +3 -3
- package/dist/components/checkmark/checkmark.recipe.js +4 -4
- package/dist/components/code/code.recipe.js +1 -1
- package/dist/components/collapsible/collapsible.recipe.d.ts +1 -1
- package/dist/components/dialog/dialog.recipe.d.ts +18 -0
- package/dist/components/dialog/dialog.recipe.js +34 -3
- package/dist/components/drawer/drawer.recipe.js +5 -0
- package/dist/components/editable/editable.recipe.js +1 -1
- package/dist/components/grid-list/grid-list.recipe.js +4 -5
- package/dist/components/icon-badge/icon-badge.d.ts +1 -1
- package/dist/components/icon-badge/icon-badge.recipe.js +1 -0
- package/dist/components/input/input-addon.recipe.d.ts +1 -1
- package/dist/components/input/input-addon.recipe.js +1 -1
- package/dist/components/kbd/kbd.recipe.js +1 -1
- package/dist/components/link/link.recipe.js +1 -1
- package/dist/components/loading-overlay/loading-overlay.recipe.d.ts +3 -12
- package/dist/components/loading-overlay/loading-overlay.recipe.js +3 -12
- package/dist/components/menu/menu.js +2 -1
- package/dist/components/menu/menu.recipe.d.ts +2 -0
- package/dist/components/menu/menu.recipe.js +4 -2
- package/dist/components/native-select/native-select.recipe.js +1 -1
- package/dist/components/navbar/navbar.d.ts +3 -3
- package/dist/components/navbar/navbar.recipe.js +1 -4
- package/dist/components/page/page.d.ts +3 -3
- package/dist/components/page/page.recipe.d.ts +4 -0
- package/dist/components/page/page.recipe.js +4 -2
- package/dist/components/progress/progress.recipe.d.ts +2 -2
- package/dist/components/progress/progress.recipe.js +3 -2
- package/dist/components/radio/index.d.ts +1 -0
- package/dist/components/radio/index.js +1 -0
- package/dist/components/radio-card/radio-card.recipe.js +1 -1
- package/dist/components/section/section.d.ts +2 -2
- package/dist/components/select/select.recipe.js +5 -4
- package/dist/components/sidebar/sidebar.d.ts +14 -13
- package/dist/components/sidebar/sidebar.recipe.js +1 -1
- package/dist/components/skeleton/skeleton.recipe.d.ts +1 -1
- package/dist/components/skeleton/skeleton.recipe.js +1 -1
- package/dist/components/skip-nav-link/skip-nav-link.recipe.js +1 -1
- package/dist/components/stat/stat.recipe.js +1 -1
- package/dist/components/steps/steps.recipe.js +1 -1
- package/dist/components/tabs/tabs.recipe.d.ts +29 -9
- package/dist/components/tabs/tabs.recipe.js +29 -9
- package/dist/components/tag/tag.recipe.d.ts +1 -1
- package/dist/components/tooltip/tooltip.recipe.js +1 -1
- package/dist/theme/conditions.d.ts +1 -0
- package/dist/theme/conditions.js +1 -0
- package/dist/theme/global-css.js +5 -2
- package/dist/theme/layer-styles.js +12 -4
- package/dist/theme/recipes.d.ts +9 -6
- package/dist/theme/semantic-tokens/colors.js +1 -1
- package/dist/theme/semantic-tokens/shadows.js +1 -1
- package/dist/theme/slot-recipes.d.ts +121 -79
- package/package.json +1 -1
@@ -8,27 +8,27 @@ export declare const avatarSlotRecipe: import("@chakra-ui/react").SlotRecipeDefi
|
|
8
8
|
};
|
9
9
|
'2xs': {
|
10
10
|
root: {
|
11
|
-
'--avatar-size': "sizes.
|
11
|
+
'--avatar-size': "sizes.4";
|
12
12
|
};
|
13
13
|
};
|
14
14
|
xs: {
|
15
15
|
root: {
|
16
|
-
'--avatar-size': "sizes.
|
16
|
+
'--avatar-size': "sizes.5";
|
17
17
|
};
|
18
18
|
};
|
19
19
|
sm: {
|
20
20
|
root: {
|
21
|
-
'--avatar-size': "sizes.
|
21
|
+
'--avatar-size': "sizes.6";
|
22
22
|
};
|
23
23
|
};
|
24
24
|
md: {
|
25
25
|
root: {
|
26
|
-
'--avatar-size': "sizes.
|
26
|
+
'--avatar-size': "sizes.9";
|
27
27
|
};
|
28
28
|
};
|
29
29
|
lg: {
|
30
30
|
root: {
|
31
|
-
'--avatar-size': "sizes.
|
31
|
+
'--avatar-size': "sizes.12";
|
32
32
|
};
|
33
33
|
};
|
34
34
|
xl: {
|
@@ -38,7 +38,6 @@ export declare const avatarSlotRecipe: import("@chakra-ui/react").SlotRecipeDefi
|
|
38
38
|
};
|
39
39
|
'2xl': {
|
40
40
|
root: {
|
41
|
-
'--avatar-font-size': "calc(var(--avatar-size) / 2)";
|
42
41
|
'--avatar-size': "sizes.20";
|
43
42
|
};
|
44
43
|
};
|
@@ -68,7 +67,7 @@ export declare const avatarSlotRecipe: import("@chakra-ui/react").SlotRecipeDefi
|
|
68
67
|
square: {};
|
69
68
|
rounded: {
|
70
69
|
root: {
|
71
|
-
'--avatar-radius': "radii.
|
70
|
+
'--avatar-radius': "radii.indicator.md";
|
72
71
|
};
|
73
72
|
};
|
74
73
|
full: {
|
@@ -47,27 +47,27 @@ export const avatarSlotRecipe = defineSlotRecipe({
|
|
47
47
|
},
|
48
48
|
'2xs': {
|
49
49
|
root: {
|
50
|
-
'--avatar-size': 'sizes.
|
50
|
+
'--avatar-size': 'sizes.4',
|
51
51
|
},
|
52
52
|
},
|
53
53
|
xs: {
|
54
54
|
root: {
|
55
|
-
'--avatar-size': 'sizes.
|
55
|
+
'--avatar-size': 'sizes.5',
|
56
56
|
},
|
57
57
|
},
|
58
58
|
sm: {
|
59
59
|
root: {
|
60
|
-
'--avatar-size': 'sizes.
|
60
|
+
'--avatar-size': 'sizes.6',
|
61
61
|
},
|
62
62
|
},
|
63
63
|
md: {
|
64
64
|
root: {
|
65
|
-
'--avatar-size': 'sizes.
|
65
|
+
'--avatar-size': 'sizes.9',
|
66
66
|
},
|
67
67
|
},
|
68
68
|
lg: {
|
69
69
|
root: {
|
70
|
-
'--avatar-size': 'sizes.
|
70
|
+
'--avatar-size': 'sizes.12',
|
71
71
|
},
|
72
72
|
},
|
73
73
|
xl: {
|
@@ -77,7 +77,6 @@ export const avatarSlotRecipe = defineSlotRecipe({
|
|
77
77
|
},
|
78
78
|
'2xl': {
|
79
79
|
root: {
|
80
|
-
'--avatar-font-size': 'calc(var(--avatar-size) / 2)',
|
81
80
|
'--avatar-size': 'sizes.20',
|
82
81
|
},
|
83
82
|
},
|
@@ -106,7 +105,7 @@ export const avatarSlotRecipe = defineSlotRecipe({
|
|
106
105
|
shape: {
|
107
106
|
square: {},
|
108
107
|
rounded: {
|
109
|
-
root: { '--avatar-radius': 'radii.
|
108
|
+
root: { '--avatar-radius': 'radii.indicator.md' },
|
110
109
|
},
|
111
110
|
full: {
|
112
111
|
root: { '--avatar-radius': 'radii.full' },
|
@@ -67,7 +67,10 @@ export declare const buttonRecipe: import("@chakra-ui/react").RecipeDefinition<{
|
|
67
67
|
bg: "colorPalette.solid";
|
68
68
|
color: "colorPalette.contrast";
|
69
69
|
'--btn-shadow': "shadows.sm";
|
70
|
-
boxShadow:
|
70
|
+
boxShadow: {
|
71
|
+
base: "0 0 0 1px rgba(0,0,0,0.25) inset, 0px 2px 0px 0px rgba(255,255,255,0.2) inset, var(--btn-shadow)";
|
72
|
+
_dark: " 0px 1px 0px 0px rgba(255,255,255,0.2) inset, var(--btn-shadow)";
|
73
|
+
};
|
71
74
|
textShadow: "0 1px 2px rgba(0,0,0,0.3)";
|
72
75
|
overflow: "clip";
|
73
76
|
_after: {
|
@@ -97,7 +97,10 @@ export const buttonRecipe = defineRecipe({
|
|
97
97
|
bg: 'colorPalette.solid',
|
98
98
|
color: 'colorPalette.contrast',
|
99
99
|
'--btn-shadow': 'shadows.sm',
|
100
|
-
boxShadow:
|
100
|
+
boxShadow: {
|
101
|
+
base: '0 0 0 1px rgba(0,0,0,0.25) inset, 0px 2px 0px 0px rgba(255,255,255,0.2) inset, var(--btn-shadow)',
|
102
|
+
_dark: ' 0px 1px 0px 0px rgba(255,255,255,0.2) inset, var(--btn-shadow)',
|
103
|
+
},
|
101
104
|
textShadow: '0 1px 2px rgba(0,0,0,0.3)',
|
102
105
|
overflow: 'clip',
|
103
106
|
_after: {
|
@@ -2,18 +2,18 @@ export declare const cardSlotRecipe: import("@chakra-ui/react").SlotRecipeDefini
|
|
2
2
|
size: {
|
3
3
|
sm: {
|
4
4
|
root: {
|
5
|
-
'--card-padding': "spacing.2";
|
5
|
+
'--card-padding': "spacing.2.5";
|
6
6
|
};
|
7
7
|
title: {
|
8
|
-
|
8
|
+
fontSize: "sm";
|
9
9
|
};
|
10
10
|
};
|
11
11
|
md: {
|
12
12
|
root: {
|
13
|
-
'--card-padding': "spacing.
|
13
|
+
'--card-padding': "spacing.4";
|
14
14
|
};
|
15
15
|
title: {
|
16
|
-
|
16
|
+
fontSize: "md";
|
17
17
|
};
|
18
18
|
};
|
19
19
|
lg: {
|
@@ -21,7 +21,7 @@ export declare const cardSlotRecipe: import("@chakra-ui/react").SlotRecipeDefini
|
|
21
21
|
'--card-padding': "spacing.6";
|
22
22
|
};
|
23
23
|
title: {
|
24
|
-
|
24
|
+
fontSize: "lg";
|
25
25
|
};
|
26
26
|
};
|
27
27
|
};
|
@@ -64,6 +64,14 @@ export declare const cardSlotRecipe: import("@chakra-ui/react").SlotRecipeDefini
|
|
64
64
|
root: {
|
65
65
|
bg: "colorPalette.solid";
|
66
66
|
color: "colorPalette.contrast";
|
67
|
+
_pressable: {
|
68
|
+
_hover: {
|
69
|
+
bg: string;
|
70
|
+
};
|
71
|
+
};
|
72
|
+
};
|
73
|
+
description: {
|
74
|
+
color: "colorPalette.contrast/80";
|
67
75
|
};
|
68
76
|
};
|
69
77
|
};
|
@@ -23,42 +23,43 @@ export const cardSlotRecipe = defineSlotRecipe({
|
|
23
23
|
},
|
24
24
|
header: {
|
25
25
|
padding: 'var(--card-padding)',
|
26
|
-
paddingBlock: 'calc(var(--card-padding) / 1.5)',
|
27
26
|
display: 'flex',
|
28
27
|
flexDirection: 'column',
|
29
|
-
gap: '1
|
28
|
+
gap: '1',
|
30
29
|
},
|
31
30
|
body: {
|
32
31
|
padding: 'var(--card-padding)',
|
33
|
-
paddingBlock: 'calc(var(--card-padding) / 1.5)',
|
34
32
|
flex: '1',
|
35
33
|
display: 'flex',
|
36
34
|
flexDirection: 'column',
|
35
|
+
'&:is(.chakra-card__header + &)': {
|
36
|
+
paddingTop: 0,
|
37
|
+
},
|
37
38
|
},
|
38
39
|
footer: {
|
39
40
|
display: 'flex',
|
40
41
|
alignItems: 'center',
|
41
42
|
gap: '2',
|
42
43
|
padding: 'var(--card-padding)',
|
43
|
-
|
44
|
+
paddingTop: 0,
|
44
45
|
},
|
45
46
|
},
|
46
47
|
variants: {
|
47
48
|
size: {
|
48
49
|
sm: {
|
49
50
|
root: {
|
50
|
-
'--card-padding': 'spacing.2',
|
51
|
+
'--card-padding': 'spacing.2.5',
|
51
52
|
},
|
52
53
|
title: {
|
53
|
-
|
54
|
+
fontSize: 'sm',
|
54
55
|
},
|
55
56
|
},
|
56
57
|
md: {
|
57
58
|
root: {
|
58
|
-
'--card-padding': 'spacing.
|
59
|
+
'--card-padding': 'spacing.4',
|
59
60
|
},
|
60
61
|
title: {
|
61
|
-
|
62
|
+
fontSize: 'md',
|
62
63
|
},
|
63
64
|
},
|
64
65
|
lg: {
|
@@ -66,7 +67,7 @@ export const cardSlotRecipe = defineSlotRecipe({
|
|
66
67
|
'--card-padding': 'spacing.6',
|
67
68
|
},
|
68
69
|
title: {
|
69
|
-
|
70
|
+
fontSize: 'lg',
|
70
71
|
},
|
71
72
|
},
|
72
73
|
},
|
@@ -109,6 +110,14 @@ export const cardSlotRecipe = defineSlotRecipe({
|
|
109
110
|
root: {
|
110
111
|
bg: 'colorPalette.solid',
|
111
112
|
color: 'colorPalette.contrast',
|
113
|
+
_pressable: {
|
114
|
+
_hover: {
|
115
|
+
bg: 'colorPalette.solid/80',
|
116
|
+
},
|
117
|
+
},
|
118
|
+
},
|
119
|
+
description: {
|
120
|
+
color: 'colorPalette.contrast/80',
|
112
121
|
},
|
113
122
|
},
|
114
123
|
},
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare const checkboxSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"label" | "
|
1
|
+
export declare const checkboxSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"label" | "control" | "indicator" | "root" | "group", {
|
2
2
|
size: {
|
3
3
|
xs: {
|
4
4
|
root: {
|
@@ -50,7 +50,7 @@ export declare const checkboxSlotRecipe: import("@chakra-ui/react").SlotRecipeDe
|
|
50
50
|
variant: {
|
51
51
|
outline: {
|
52
52
|
control: {
|
53
|
-
borderColor: "border";
|
53
|
+
borderColor: "border.emphasized";
|
54
54
|
'&:is([data-state=checked], [data-state=indeterminate])': {
|
55
55
|
color: "colorPalette.fg";
|
56
56
|
borderColor: "colorPalette.solid";
|
@@ -59,7 +59,7 @@ export declare const checkboxSlotRecipe: import("@chakra-ui/react").SlotRecipeDe
|
|
59
59
|
};
|
60
60
|
solid: {
|
61
61
|
control: {
|
62
|
-
borderColor: "border";
|
62
|
+
borderColor: "border.emphasized";
|
63
63
|
'&:is([data-state=checked], [data-state=indeterminate])': {
|
64
64
|
bg: "colorPalette.solid";
|
65
65
|
color: "colorPalette.contrast";
|
@@ -70,7 +70,7 @@ export declare const checkboxSlotRecipe: import("@chakra-ui/react").SlotRecipeDe
|
|
70
70
|
subtle: {
|
71
71
|
control: {
|
72
72
|
bg: "colorPalette.muted";
|
73
|
-
borderColor: "colorPalette.
|
73
|
+
borderColor: "colorPalette.emphasized";
|
74
74
|
'&:is([data-state=checked], [data-state=indeterminate])': {
|
75
75
|
color: "colorPalette.fg";
|
76
76
|
};
|
@@ -69,7 +69,7 @@ export declare const checkboxCardSlotRecipe: import("@chakra-ui/react").SlotReci
|
|
69
69
|
};
|
70
70
|
};
|
71
71
|
indicator: {
|
72
|
-
borderColor: "border";
|
72
|
+
borderColor: "border.emphasized";
|
73
73
|
'&:is([data-state=checked], [data-state=indeterminate])': {
|
74
74
|
bg: "colorPalette.solid";
|
75
75
|
color: "colorPalette.contrast";
|
@@ -104,7 +104,7 @@ export declare const checkboxCardSlotRecipe: import("@chakra-ui/react").SlotReci
|
|
104
104
|
};
|
105
105
|
};
|
106
106
|
indicator: {
|
107
|
-
borderColor: "border";
|
107
|
+
borderColor: "border.emphasized";
|
108
108
|
'&:is([data-state=checked], [data-state=indeterminate])': {
|
109
109
|
bg: "colorPalette.solid";
|
110
110
|
color: "colorPalette.contrast";
|
@@ -6,11 +6,12 @@ export const checkboxCardSlotRecipe = defineSlotRecipe({
|
|
6
6
|
className: 'chakra-checkbox-card',
|
7
7
|
base: {
|
8
8
|
root: {
|
9
|
+
colorPalette: 'accent',
|
9
10
|
display: 'flex',
|
10
11
|
flexDirection: 'column',
|
11
12
|
userSelect: 'none',
|
12
13
|
position: 'relative',
|
13
|
-
borderRadius: '
|
14
|
+
borderRadius: 'panel.md',
|
14
15
|
flex: '1',
|
15
16
|
focusVisibleRing: 'outside',
|
16
17
|
_disabled: {
|
@@ -26,7 +27,7 @@ export const checkboxCardSlotRecipe = defineSlotRecipe({
|
|
26
27
|
display: 'inline-flex',
|
27
28
|
flex: '1',
|
28
29
|
position: 'relative',
|
29
|
-
borderRadius: '
|
30
|
+
borderRadius: 'panel.md',
|
30
31
|
justifyContent: 'var(--checkbox-card-justify)',
|
31
32
|
alignItems: 'var(--checkbox-card-align)',
|
32
33
|
},
|
@@ -17,7 +17,7 @@ export declare const checkmarkRecipe: import("@chakra-ui/react").RecipeDefinitio
|
|
17
17
|
};
|
18
18
|
variant: {
|
19
19
|
solid: {
|
20
|
-
borderColor: "border";
|
20
|
+
borderColor: "border.emphasized";
|
21
21
|
'&:is([data-state=checked], [data-state=indeterminate])': {
|
22
22
|
bg: "colorPalette.solid";
|
23
23
|
color: "colorPalette.contrast";
|
@@ -25,7 +25,7 @@ export declare const checkmarkRecipe: import("@chakra-ui/react").RecipeDefinitio
|
|
25
25
|
};
|
26
26
|
};
|
27
27
|
outline: {
|
28
|
-
borderColor: "border";
|
28
|
+
borderColor: "border.emphasized";
|
29
29
|
'&:is([data-state=checked], [data-state=indeterminate])': {
|
30
30
|
color: "colorPalette.fg";
|
31
31
|
borderColor: "colorPalette.solid";
|
@@ -33,7 +33,7 @@ export declare const checkmarkRecipe: import("@chakra-ui/react").RecipeDefinitio
|
|
33
33
|
};
|
34
34
|
subtle: {
|
35
35
|
bg: "colorPalette.muted";
|
36
|
-
borderColor: "colorPalette.
|
36
|
+
borderColor: "colorPalette.emphasized";
|
37
37
|
'&:is([data-state=checked], [data-state=indeterminate])': {
|
38
38
|
color: "colorPalette.fg";
|
39
39
|
};
|
@@ -9,7 +9,7 @@ export const checkmarkRecipe = defineRecipe({
|
|
9
9
|
color: 'white',
|
10
10
|
borderWidth: '1px',
|
11
11
|
borderColor: 'transparent',
|
12
|
-
borderRadius: '
|
12
|
+
borderRadius: 'control.md',
|
13
13
|
focusVisibleRing: 'outside',
|
14
14
|
_invalid: {
|
15
15
|
colorPalette: 'red',
|
@@ -38,7 +38,7 @@ export const checkmarkRecipe = defineRecipe({
|
|
38
38
|
},
|
39
39
|
variant: {
|
40
40
|
solid: {
|
41
|
-
borderColor: 'border',
|
41
|
+
borderColor: 'border.emphasized',
|
42
42
|
'&:is([data-state=checked], [data-state=indeterminate])': {
|
43
43
|
bg: 'colorPalette.solid',
|
44
44
|
color: 'colorPalette.contrast',
|
@@ -46,7 +46,7 @@ export const checkmarkRecipe = defineRecipe({
|
|
46
46
|
},
|
47
47
|
},
|
48
48
|
outline: {
|
49
|
-
borderColor: 'border',
|
49
|
+
borderColor: 'border.emphasized',
|
50
50
|
'&:is([data-state=checked], [data-state=indeterminate])': {
|
51
51
|
color: 'colorPalette.fg',
|
52
52
|
borderColor: 'colorPalette.solid',
|
@@ -54,7 +54,7 @@ export const checkmarkRecipe = defineRecipe({
|
|
54
54
|
},
|
55
55
|
subtle: {
|
56
56
|
bg: 'colorPalette.muted',
|
57
|
-
borderColor: 'colorPalette.
|
57
|
+
borderColor: 'colorPalette.emphasized',
|
58
58
|
'&:is([data-state=checked], [data-state=indeterminate])': {
|
59
59
|
color: 'colorPalette.fg',
|
60
60
|
},
|
@@ -1 +1 @@
|
|
1
|
-
export declare const collapsibleSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"content" | "root" | "trigger", import("@chakra-ui/react").SlotRecipeVariantRecord<"content" | "root" | "trigger">>;
|
1
|
+
export declare const collapsibleSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"content" | "indicator" | "root" | "trigger", import("@chakra-ui/react").SlotRecipeVariantRecord<"content" | "indicator" | "root" | "trigger">>;
|
@@ -1,4 +1,22 @@
|
|
1
1
|
export declare const dialogSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"description" | "content" | "body" | "backdrop" | "positioner" | "closeTrigger" | "title" | "header" | "footer" | "trigger", {
|
2
|
+
variant: {
|
3
|
+
dialog: {};
|
4
|
+
confirm: {
|
5
|
+
content: {
|
6
|
+
textAlign: "center";
|
7
|
+
};
|
8
|
+
header: {
|
9
|
+
flexDirection: "column";
|
10
|
+
alignItems: "center";
|
11
|
+
};
|
12
|
+
footer: {
|
13
|
+
display: "flex";
|
14
|
+
flexDirection: "column-reverse";
|
15
|
+
justifyContent: "stretch";
|
16
|
+
alignItems: "stretch";
|
17
|
+
};
|
18
|
+
};
|
19
|
+
};
|
2
20
|
placement: {
|
3
21
|
center: {
|
4
22
|
positioner: {
|
@@ -52,9 +52,6 @@ export const dialogSlotRecipe = defineSlotRecipe({
|
|
52
52
|
},
|
53
53
|
header: {
|
54
54
|
display: 'flex',
|
55
|
-
flexDirection: 'row',
|
56
|
-
alignItems: 'center',
|
57
|
-
justifyContent: 'space-between',
|
58
55
|
flex: 0,
|
59
56
|
px: '6',
|
60
57
|
py: '4',
|
@@ -81,8 +78,31 @@ export const dialogSlotRecipe = defineSlotRecipe({
|
|
81
78
|
description: {
|
82
79
|
color: 'fg.muted',
|
83
80
|
},
|
81
|
+
closeTrigger: {
|
82
|
+
position: 'absolute',
|
83
|
+
top: '4',
|
84
|
+
right: '4',
|
85
|
+
},
|
84
86
|
},
|
85
87
|
variants: {
|
88
|
+
variant: {
|
89
|
+
dialog: {},
|
90
|
+
confirm: {
|
91
|
+
content: {
|
92
|
+
textAlign: 'center',
|
93
|
+
},
|
94
|
+
header: {
|
95
|
+
flexDirection: 'column',
|
96
|
+
alignItems: 'center',
|
97
|
+
},
|
98
|
+
footer: {
|
99
|
+
display: 'flex',
|
100
|
+
flexDirection: 'column-reverse',
|
101
|
+
justifyContent: 'stretch',
|
102
|
+
alignItems: 'stretch',
|
103
|
+
},
|
104
|
+
},
|
105
|
+
},
|
86
106
|
placement: {
|
87
107
|
center: {
|
88
108
|
positioner: {
|
@@ -210,10 +230,21 @@ export const dialogSlotRecipe = defineSlotRecipe({
|
|
210
230
|
none: {},
|
211
231
|
},
|
212
232
|
},
|
233
|
+
compoundVariants: [
|
234
|
+
{
|
235
|
+
variant: 'confirm',
|
236
|
+
css: {
|
237
|
+
content: {
|
238
|
+
maxW: 'xs',
|
239
|
+
},
|
240
|
+
},
|
241
|
+
},
|
242
|
+
],
|
213
243
|
defaultVariants: {
|
214
244
|
size: 'md',
|
215
245
|
scrollBehavior: 'outside',
|
216
246
|
placement: 'top',
|
217
247
|
motionPreset: 'scale',
|
248
|
+
variant: 'dialog',
|
218
249
|
},
|
219
250
|
});
|
@@ -39,9 +39,8 @@ export const gridListSlotRecipe = defineSlotRecipe({
|
|
39
39
|
display: 'flex',
|
40
40
|
flexDirection: 'row',
|
41
41
|
position: 'sticky',
|
42
|
-
|
43
|
-
|
44
|
-
color: 'fg.muted',
|
42
|
+
fontWeight: 'medium',
|
43
|
+
color: 'fg.subtle',
|
45
44
|
},
|
46
45
|
cell: {
|
47
46
|
flexShrink: 0,
|
@@ -84,7 +83,7 @@ export const gridListSlotRecipe = defineSlotRecipe({
|
|
84
83
|
gap: 1,
|
85
84
|
},
|
86
85
|
header: {
|
87
|
-
py:
|
86
|
+
py: 0.5,
|
88
87
|
px: 2,
|
89
88
|
},
|
90
89
|
},
|
@@ -99,7 +98,7 @@ export const gridListSlotRecipe = defineSlotRecipe({
|
|
99
98
|
gap: 2,
|
100
99
|
},
|
101
100
|
header: {
|
102
|
-
py:
|
101
|
+
py: 1,
|
103
102
|
px: 3,
|
104
103
|
},
|
105
104
|
},
|
@@ -21,7 +21,7 @@ export const inputAddonRecipe = defineRecipe({
|
|
21
21
|
subtle: {
|
22
22
|
border: '2px solid',
|
23
23
|
borderColor: 'transparent',
|
24
|
-
bg: { _light: 'gray.100', _dark: '
|
24
|
+
bg: { _light: 'gray.100', _dark: 'white/10' },
|
25
25
|
},
|
26
26
|
flushed: {
|
27
27
|
borderBottom: '1px solid',
|
@@ -4,10 +4,7 @@ export declare const loadingOverlaySlotRecipe: import("@chakra-ui/react").SlotRe
|
|
4
4
|
root: {
|
5
5
|
flex: number;
|
6
6
|
height: "100%";
|
7
|
-
bg:
|
8
|
-
base: "whiteAlpha.400";
|
9
|
-
_dark: "blackAlpha.400";
|
10
|
-
};
|
7
|
+
bg: "currentBg";
|
11
8
|
};
|
12
9
|
};
|
13
10
|
fullscreen: {
|
@@ -15,20 +12,14 @@ export declare const loadingOverlaySlotRecipe: import("@chakra-ui/react").SlotRe
|
|
15
12
|
position: "fixed";
|
16
13
|
inset: number;
|
17
14
|
zIndex: "modal";
|
18
|
-
bg:
|
19
|
-
base: "white";
|
20
|
-
_dark: "gray.800";
|
21
|
-
};
|
15
|
+
bg: "bg";
|
22
16
|
};
|
23
17
|
};
|
24
18
|
overlay: {
|
25
19
|
root: {
|
26
20
|
position: "absolute";
|
27
21
|
inset: number;
|
28
|
-
bg:
|
29
|
-
base: "whiteAlpha.300";
|
30
|
-
_dark: "blackAlpha.300";
|
31
|
-
};
|
22
|
+
bg: "currentBg/50";
|
32
23
|
};
|
33
24
|
};
|
34
25
|
};
|