@saas-ui/react 3.0.0-next.39 → 3.0.0-next.40
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/.tsbuildinfo.json +1 -1
- package/dist/components/card/card.recipe.js +6 -2
- package/dist/components/center/index.d.ts +1 -1
- package/dist/components/center/index.js +1 -1
- package/dist/components/combobox/combobox.recipe.d.ts +18 -2
- package/dist/components/combobox/combobox.recipe.js +19 -6
- package/dist/components/data-list/data-list.recipe.d.ts +1 -1
- package/dist/components/data-list/data-list.recipe.js +1 -1
- package/dist/components/dialog/dialog.recipe.js +8 -2
- package/dist/components/empty-state/empty-state.d.ts +1 -1
- package/dist/components/empty-state/empty-state.js +2 -1
- package/dist/components/empty-state/empty-state.recipe.d.ts +1 -0
- package/dist/components/empty-state/empty-state.recipe.js +7 -0
- package/dist/components/popover/popover.recipe.js +0 -1
- package/dist/components/progress-circle/progress-circle.recipe.d.ts +5 -5
- package/dist/components/progress-circle/progress-circle.recipe.js +5 -5
- package/dist/components/tabs/tabs.recipe.d.ts +1 -1
- package/dist/components/tabs/tabs.recipe.js +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.js +1 -1
- package/dist/theme/slot-recipes.d.ts +26 -9
- package/dist/theme/tokens/colors.d.ts +1 -0
- package/package.json +3 -3
@@ -23,6 +23,7 @@ export const cardSlotRecipe = defineSlotRecipe({
|
|
23
23
|
},
|
24
24
|
header: {
|
25
25
|
padding: 'var(--card-padding)',
|
26
|
+
paddingBottom: 'calc(var(--card-padding) / 2)',
|
26
27
|
display: 'flex',
|
27
28
|
flexDirection: 'column',
|
28
29
|
gap: '1',
|
@@ -33,7 +34,10 @@ export const cardSlotRecipe = defineSlotRecipe({
|
|
33
34
|
display: 'flex',
|
34
35
|
flexDirection: 'column',
|
35
36
|
'&:is(.chakra-card__header + &)': {
|
36
|
-
paddingTop:
|
37
|
+
paddingTop: 'calc(var(--card-padding) / 2)',
|
38
|
+
},
|
39
|
+
'&:has(+ .chakra-card__footer)': {
|
40
|
+
paddingBottom: 'calc(var(--card-padding) / 2)',
|
37
41
|
},
|
38
42
|
},
|
39
43
|
footer: {
|
@@ -41,7 +45,7 @@ export const cardSlotRecipe = defineSlotRecipe({
|
|
41
45
|
alignItems: 'center',
|
42
46
|
gap: '2',
|
43
47
|
padding: 'var(--card-padding)',
|
44
|
-
paddingTop:
|
48
|
+
paddingTop: 'calc(var(--card-padding) / 2)',
|
45
49
|
},
|
46
50
|
},
|
47
51
|
variants: {
|
@@ -1 +1 @@
|
|
1
|
-
export { Center, type CenterProps, } from '@chakra-ui/react/center';
|
1
|
+
export { Center, type CenterProps, AbsoluteCenter, type AbsoluteCenterProps, } from '@chakra-ui/react/center';
|
@@ -1 +1 @@
|
|
1
|
-
export { Center, } from '@chakra-ui/react/center';
|
1
|
+
export { Center, AbsoluteCenter, } from '@chakra-ui/react/center';
|
@@ -47,6 +47,7 @@ export declare const comboboxSlotRecipe: import("@chakra-ui/react").SlotRecipeDe
|
|
47
47
|
'--combobox-item-padding-x': "spacing.1";
|
48
48
|
'--combobox-item-padding-y': "spacing.0.5";
|
49
49
|
'--combobox-indicator-size': "sizes.3.5";
|
50
|
+
borderRadius: "panel.sm";
|
50
51
|
p: "0.5";
|
51
52
|
textStyle: "xs";
|
52
53
|
};
|
@@ -54,6 +55,9 @@ export declare const comboboxSlotRecipe: import("@chakra-ui/react").SlotRecipeDe
|
|
54
55
|
textStyle: "xs";
|
55
56
|
gap: "1";
|
56
57
|
};
|
58
|
+
item: {
|
59
|
+
borderRadius: "calc({radii.panel.sm} - {sizes.0.5})";
|
60
|
+
};
|
57
61
|
};
|
58
62
|
sm: {
|
59
63
|
root: {
|
@@ -68,13 +72,17 @@ export declare const comboboxSlotRecipe: import("@chakra-ui/react").SlotRecipeDe
|
|
68
72
|
'--combobox-item-padding-x': "spacing.1.5";
|
69
73
|
'--combobox-item-padding-y': "spacing.1";
|
70
74
|
'--combobox-indicator-size': "sizes.4";
|
71
|
-
|
75
|
+
borderRadius: "panel.md";
|
76
|
+
p: "1";
|
72
77
|
textStyle: "xs";
|
73
78
|
};
|
74
79
|
trigger: {
|
75
80
|
textStyle: "xs";
|
76
81
|
gap: "1";
|
77
82
|
};
|
83
|
+
item: {
|
84
|
+
borderRadius: "calc({radii.panel.md} - {sizes.0.5})";
|
85
|
+
};
|
78
86
|
};
|
79
87
|
md: {
|
80
88
|
root: {
|
@@ -89,6 +97,7 @@ export declare const comboboxSlotRecipe: import("@chakra-ui/react").SlotRecipeDe
|
|
89
97
|
'--combobox-item-padding-x': "spacing.2";
|
90
98
|
'--combobox-item-padding-y': "spacing.1.5";
|
91
99
|
'--combobox-indicator-size': "sizes.4";
|
100
|
+
borderRadius: "panel.lg";
|
92
101
|
p: "1";
|
93
102
|
textStyle: "sm";
|
94
103
|
};
|
@@ -101,6 +110,9 @@ export declare const comboboxSlotRecipe: import("@chakra-ui/react").SlotRecipeDe
|
|
101
110
|
textStyle: "sm";
|
102
111
|
gap: "2";
|
103
112
|
};
|
113
|
+
item: {
|
114
|
+
borderRadius: "calc({radii.panel.lg} - {sizes.1})";
|
115
|
+
};
|
104
116
|
};
|
105
117
|
lg: {
|
106
118
|
root: {
|
@@ -115,7 +127,8 @@ export declare const comboboxSlotRecipe: import("@chakra-ui/react").SlotRecipeDe
|
|
115
127
|
'--combobox-item-padding-y': "spacing.2";
|
116
128
|
'--combobox-item-padding-x': "spacing.3";
|
117
129
|
'--combobox-indicator-size': "sizes.5";
|
118
|
-
|
130
|
+
borderRadius: "panel.lg";
|
131
|
+
p: "1";
|
119
132
|
textStyle: "md";
|
120
133
|
};
|
121
134
|
trigger: {
|
@@ -123,6 +136,9 @@ export declare const comboboxSlotRecipe: import("@chakra-ui/react").SlotRecipeDe
|
|
123
136
|
py: "3";
|
124
137
|
gap: "2";
|
125
138
|
};
|
139
|
+
item: {
|
140
|
+
borderRadius: "calc({radii.panel.lg} - {sizes.1})";
|
141
|
+
};
|
126
142
|
};
|
127
143
|
};
|
128
144
|
}>;
|
@@ -79,15 +79,12 @@ export const comboboxSlotRecipe = defineSlotRecipe({
|
|
79
79
|
},
|
80
80
|
content: {
|
81
81
|
layerStyle: 'overlay',
|
82
|
-
boxShadow: 'md',
|
83
|
-
borderWidth: '1px',
|
84
|
-
borderColor: 'border',
|
85
82
|
display: 'flex',
|
86
83
|
flexDirection: 'column',
|
87
84
|
'--menu-z-index': 'zIndex.layer-3',
|
88
85
|
zIndex: 'calc(var(--menu-z-index) + var(--layer-index, 0))',
|
89
86
|
outline: 0,
|
90
|
-
maxH: '
|
87
|
+
maxH: 'var(--available-height)',
|
91
88
|
overflowY: 'auto',
|
92
89
|
_open: {
|
93
90
|
animationStyle: 'slide-fade-in',
|
@@ -193,6 +190,7 @@ export const comboboxSlotRecipe = defineSlotRecipe({
|
|
193
190
|
'--combobox-item-padding-x': 'spacing.1',
|
194
191
|
'--combobox-item-padding-y': 'spacing.0.5',
|
195
192
|
'--combobox-indicator-size': 'sizes.3.5',
|
193
|
+
borderRadius: 'panel.sm',
|
196
194
|
p: '0.5',
|
197
195
|
textStyle: 'xs',
|
198
196
|
},
|
@@ -200,6 +198,9 @@ export const comboboxSlotRecipe = defineSlotRecipe({
|
|
200
198
|
textStyle: 'xs',
|
201
199
|
gap: '1',
|
202
200
|
},
|
201
|
+
item: {
|
202
|
+
borderRadius: 'calc({radii.panel.sm} - {sizes.0.5})',
|
203
|
+
},
|
203
204
|
},
|
204
205
|
sm: {
|
205
206
|
root: {
|
@@ -214,13 +215,17 @@ export const comboboxSlotRecipe = defineSlotRecipe({
|
|
214
215
|
'--combobox-item-padding-x': 'spacing.1.5',
|
215
216
|
'--combobox-item-padding-y': 'spacing.1',
|
216
217
|
'--combobox-indicator-size': 'sizes.4',
|
217
|
-
|
218
|
+
borderRadius: 'panel.md',
|
219
|
+
p: '1',
|
218
220
|
textStyle: 'xs',
|
219
221
|
},
|
220
222
|
trigger: {
|
221
223
|
textStyle: 'xs',
|
222
224
|
gap: '1',
|
223
225
|
},
|
226
|
+
item: {
|
227
|
+
borderRadius: 'calc({radii.panel.md} - {sizes.0.5})',
|
228
|
+
},
|
224
229
|
},
|
225
230
|
md: {
|
226
231
|
root: {
|
@@ -235,6 +240,7 @@ export const comboboxSlotRecipe = defineSlotRecipe({
|
|
235
240
|
'--combobox-item-padding-x': 'spacing.2',
|
236
241
|
'--combobox-item-padding-y': 'spacing.1.5',
|
237
242
|
'--combobox-indicator-size': 'sizes.4',
|
243
|
+
borderRadius: 'panel.lg',
|
238
244
|
p: '1',
|
239
245
|
textStyle: 'sm',
|
240
246
|
},
|
@@ -247,6 +253,9 @@ export const comboboxSlotRecipe = defineSlotRecipe({
|
|
247
253
|
textStyle: 'sm',
|
248
254
|
gap: '2',
|
249
255
|
},
|
256
|
+
item: {
|
257
|
+
borderRadius: 'calc({radii.panel.lg} - {sizes.1})',
|
258
|
+
},
|
250
259
|
},
|
251
260
|
lg: {
|
252
261
|
root: {
|
@@ -261,7 +270,8 @@ export const comboboxSlotRecipe = defineSlotRecipe({
|
|
261
270
|
'--combobox-item-padding-y': 'spacing.2',
|
262
271
|
'--combobox-item-padding-x': 'spacing.3',
|
263
272
|
'--combobox-indicator-size': 'sizes.5',
|
264
|
-
|
273
|
+
borderRadius: 'panel.lg',
|
274
|
+
p: '1',
|
265
275
|
textStyle: 'md',
|
266
276
|
},
|
267
277
|
trigger: {
|
@@ -269,6 +279,9 @@ export const comboboxSlotRecipe = defineSlotRecipe({
|
|
269
279
|
py: '3',
|
270
280
|
gap: '2',
|
271
281
|
},
|
282
|
+
item: {
|
283
|
+
borderRadius: 'calc({radii.panel.lg} - {sizes.1})',
|
284
|
+
},
|
272
285
|
},
|
273
286
|
},
|
274
287
|
},
|
@@ -55,12 +55,18 @@ export const dialogSlotRecipe = defineSlotRecipe({
|
|
55
55
|
flex: 0,
|
56
56
|
px: '6',
|
57
57
|
py: '4',
|
58
|
+
paddingBottom: '2',
|
58
59
|
},
|
59
60
|
body: {
|
60
61
|
flex: '1',
|
61
62
|
px: '6',
|
62
|
-
|
63
|
-
|
63
|
+
py: '4',
|
64
|
+
'&:is(.chakra-dialog__header + &)': {
|
65
|
+
paddingTop: '2',
|
66
|
+
},
|
67
|
+
'&:has(+ .chakra-dialog__footer)': {
|
68
|
+
paddingBottom: '2',
|
69
|
+
},
|
64
70
|
},
|
65
71
|
footer: {
|
66
72
|
display: 'flex',
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { EmptyState as ChakraEmptyState } from '@chakra-ui/react';
|
2
2
|
export interface EmptyStateProps extends ChakraEmptyState.RootProps {
|
3
3
|
title: string;
|
4
|
-
description?:
|
4
|
+
description?: React.ReactNode;
|
5
5
|
icon?: React.ReactNode;
|
6
6
|
}
|
7
7
|
export declare const EmptyState: import("react").ForwardRefExoticComponent<EmptyStateProps & import("react").RefAttributes<HTMLDivElement>>;
|
@@ -7,5 +7,6 @@ const EmptyStateActions = (props) => {
|
|
7
7
|
};
|
8
8
|
export const EmptyState = forwardRef(function EmptyState(props, ref) {
|
9
9
|
const { title, description, icon, children, ...rest } = props;
|
10
|
-
|
10
|
+
const as = typeof description === 'string' ? 'p' : 'div';
|
11
|
+
return (_jsx(ChakraEmptyState.Root, { ref: ref, ...rest, children: _jsxs(ChakraEmptyState.Content, { children: [icon && (_jsx(ChakraEmptyState.Indicator, { children: icon })), _jsx(ChakraEmptyState.Title, { children: title }), description ? (_jsx(ChakraEmptyState.Description, { as: as, children: description })) : null, _jsx(EmptyStateActions, { children: children })] }) }));
|
11
12
|
});
|
@@ -18,6 +18,7 @@ export const emptyStateSlotRecipe = defineSlotRecipe({
|
|
18
18
|
flexDirection: 'column',
|
19
19
|
alignItems: 'center',
|
20
20
|
justifyContent: 'center',
|
21
|
+
gap: '0.25rem',
|
21
22
|
},
|
22
23
|
indicator: {
|
23
24
|
display: 'flex',
|
@@ -34,6 +35,11 @@ export const emptyStateSlotRecipe = defineSlotRecipe({
|
|
34
35
|
description: {
|
35
36
|
textStyle: 'sm',
|
36
37
|
color: 'fg.muted',
|
38
|
+
'&:is(div)': {
|
39
|
+
display: 'flex',
|
40
|
+
flexDirection: 'column',
|
41
|
+
gap: '0.5rem',
|
42
|
+
},
|
37
43
|
},
|
38
44
|
actions: {
|
39
45
|
display: 'flex',
|
@@ -119,6 +125,7 @@ export const emptyStateSlotRecipe = defineSlotRecipe({
|
|
119
125
|
center: {
|
120
126
|
content: {
|
121
127
|
alignItems: 'center',
|
128
|
+
textAlign: 'center',
|
122
129
|
},
|
123
130
|
},
|
124
131
|
},
|
@@ -20,7 +20,6 @@ export const popoverSlotRecipe = defineSlotRecipe({
|
|
20
20
|
},
|
21
21
|
'--popover-z-index': 'zIndex.layer-2',
|
22
22
|
zIndex: 'calc(var(--popover-z-index) + var(--layer-index, 0))',
|
23
|
-
borderWidth: '1px',
|
24
23
|
outline: '0',
|
25
24
|
transformOrigin: 'var(--transform-origin)',
|
26
25
|
_open: {
|
@@ -2,7 +2,7 @@ export declare const progressCircleSlotRecipe: import("@chakra-ui/react").SlotRe
|
|
2
2
|
size: {
|
3
3
|
xs: {
|
4
4
|
circle: {
|
5
|
-
'--size': "
|
5
|
+
'--size': "sizes.4";
|
6
6
|
'--thickness': "3px";
|
7
7
|
};
|
8
8
|
valueText: {
|
@@ -11,7 +11,7 @@ export declare const progressCircleSlotRecipe: import("@chakra-ui/react").SlotRe
|
|
11
11
|
};
|
12
12
|
sm: {
|
13
13
|
circle: {
|
14
|
-
'--size': "
|
14
|
+
'--size': "sizes.6";
|
15
15
|
'--thickness': "5px";
|
16
16
|
};
|
17
17
|
valueText: {
|
@@ -20,7 +20,7 @@ export declare const progressCircleSlotRecipe: import("@chakra-ui/react").SlotRe
|
|
20
20
|
};
|
21
21
|
md: {
|
22
22
|
circle: {
|
23
|
-
'--size': "
|
23
|
+
'--size': "sizes.10";
|
24
24
|
'--thickness': "6px";
|
25
25
|
};
|
26
26
|
valueText: {
|
@@ -29,7 +29,7 @@ export declare const progressCircleSlotRecipe: import("@chakra-ui/react").SlotRe
|
|
29
29
|
};
|
30
30
|
lg: {
|
31
31
|
circle: {
|
32
|
-
'--size': "
|
32
|
+
'--size': "sizes.14";
|
33
33
|
'--thickness': "7px";
|
34
34
|
};
|
35
35
|
valueText: {
|
@@ -38,7 +38,7 @@ export declare const progressCircleSlotRecipe: import("@chakra-ui/react").SlotRe
|
|
38
38
|
};
|
39
39
|
xl: {
|
40
40
|
circle: {
|
41
|
-
'--size': "
|
41
|
+
'--size': "sizes.16";
|
42
42
|
'--thickness': "8px";
|
43
43
|
};
|
44
44
|
valueText: {
|
@@ -40,7 +40,7 @@ export const progressCircleSlotRecipe = defineSlotRecipe({
|
|
40
40
|
size: {
|
41
41
|
xs: {
|
42
42
|
circle: {
|
43
|
-
'--size': '
|
43
|
+
'--size': 'sizes.4',
|
44
44
|
'--thickness': '3px',
|
45
45
|
},
|
46
46
|
valueText: {
|
@@ -49,7 +49,7 @@ export const progressCircleSlotRecipe = defineSlotRecipe({
|
|
49
49
|
},
|
50
50
|
sm: {
|
51
51
|
circle: {
|
52
|
-
'--size': '
|
52
|
+
'--size': 'sizes.6',
|
53
53
|
'--thickness': '5px',
|
54
54
|
},
|
55
55
|
valueText: {
|
@@ -58,7 +58,7 @@ export const progressCircleSlotRecipe = defineSlotRecipe({
|
|
58
58
|
},
|
59
59
|
md: {
|
60
60
|
circle: {
|
61
|
-
'--size': '
|
61
|
+
'--size': 'sizes.10',
|
62
62
|
'--thickness': '6px',
|
63
63
|
},
|
64
64
|
valueText: {
|
@@ -67,7 +67,7 @@ export const progressCircleSlotRecipe = defineSlotRecipe({
|
|
67
67
|
},
|
68
68
|
lg: {
|
69
69
|
circle: {
|
70
|
-
'--size': '
|
70
|
+
'--size': 'sizes.14',
|
71
71
|
'--thickness': '7px',
|
72
72
|
},
|
73
73
|
valueText: {
|
@@ -76,7 +76,7 @@ export const progressCircleSlotRecipe = defineSlotRecipe({
|
|
76
76
|
},
|
77
77
|
xl: {
|
78
78
|
circle: {
|
79
|
-
'--size': '
|
79
|
+
'--size': 'sizes.16',
|
80
80
|
'--thickness': '8px',
|
81
81
|
},
|
82
82
|
valueText: {
|
@@ -172,7 +172,7 @@ export declare const tabsSlotRecipe: import("@chakra-ui/react").SlotRecipeDefini
|
|
172
172
|
trigger: {
|
173
173
|
justifyContent: "center";
|
174
174
|
color: "fg.muted";
|
175
|
-
borderRadius: "
|
175
|
+
borderRadius: "calc({radii.md} - 1px)";
|
176
176
|
_hover: {
|
177
177
|
color: "fg.subtle";
|
178
178
|
};
|
@@ -240,7 +240,7 @@ export const tabsSlotRecipe = defineSlotRecipe({
|
|
240
240
|
trigger: {
|
241
241
|
justifyContent: 'center',
|
242
242
|
color: 'fg.muted',
|
243
|
-
borderRadius: '
|
243
|
+
borderRadius: 'calc({radii.md} - 1px)',
|
244
244
|
_hover: {
|
245
245
|
color: 'fg.subtle',
|
246
246
|
},
|
package/dist/index.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
export { defaultSystem, defaultConfig } from './preset.ts';
|
2
2
|
export { createSystem, defineAnimationStyles, defineConditions, defineConfig, defineGlobalStyles, defineKeyframes, defineLayerStyles, defineRecipe, defineSemanticTokens, defineSlotRecipe, defineStyle, defineTextStyles, defineTokens, chakra, createRecipeContext, createSlotRecipeContext, useRecipe, useSlotRecipe, useChakraContext, useToken, } from '@chakra-ui/react/styled-system';
|
3
|
-
export type { RecipeProps, SlotRecipeProps, RecipeDefinition, SlotRecipeDefinition, HTMLChakraProps, } from '@chakra-ui/react/styled-system';
|
3
|
+
export type { RecipeProps, SlotRecipeProps, RecipeDefinition, SlotRecipeDefinition, HTMLChakraProps, SystemConfig, ConditionalValue, SystemStyleObject, } from '@chakra-ui/react/styled-system';
|
4
4
|
export { useMediaQuery, useBreakpoint, useBreakpointValue, useControllableState, useDisclosure, createListCollection, createContext, mergeRefs, } from '@chakra-ui/react';
|
5
5
|
export type { UseDisclosureProps, UseDisclosureReturn, UseControllableStateProps, UseBreakpointOptions, UseBreakpointValueOptions, } from '@chakra-ui/react';
|
6
6
|
export { SuiProvider, SuiContext, useLink, useSui } from './provider/index.ts';
|
@@ -96,7 +96,7 @@ export { ToggleTip, type ToggleTipProps, } from './components/toggle-tip/index.t
|
|
96
96
|
export { AspectRatio, type AspectRatioProps, } from './components/aspect-ratio/index.ts';
|
97
97
|
export { Bleed, type BleedProps } from './components/bleed/index.ts';
|
98
98
|
export { Box, type BoxProps, Span, type SpanProps, } from './components/box/index.ts';
|
99
|
-
export { Center, type CenterProps } from './components/center/index.ts';
|
99
|
+
export { Center, type CenterProps, AbsoluteCenter, type AbsoluteCenterProps, } from './components/center/index.ts';
|
100
100
|
export { ClientOnly } from './components/client-only/index.ts';
|
101
101
|
export { ColorPicker } from './components/color-picker/index.ts';
|
102
102
|
export { ColorSwatch } from './components/color-swatch/index.ts';
|
@@ -120,3 +120,4 @@ export { Em, type EmProps, Strong, type StrongProps, Text, type TextProps, } fro
|
|
120
120
|
export { VisuallyHidden } from './components/visually-hidden/index.ts';
|
121
121
|
export { Wrap, type WrapProps } from './components/wrap/index.ts';
|
122
122
|
export { Flex, type FlexProps } from './components/flex/index.ts';
|
123
|
+
export type { ColorPalette } from './theme/tokens/colors.ts';
|
package/dist/index.js
CHANGED
@@ -91,7 +91,7 @@ export { ToggleTip, } from "./components/toggle-tip/index.js";
|
|
91
91
|
export { AspectRatio, } from "./components/aspect-ratio/index.js";
|
92
92
|
export { Bleed } from "./components/bleed/index.js";
|
93
93
|
export { Box, Span, } from "./components/box/index.js";
|
94
|
-
export { Center } from "./components/center/index.js";
|
94
|
+
export { Center, AbsoluteCenter, } from "./components/center/index.js";
|
95
95
|
export { ClientOnly } from "./components/client-only/index.js";
|
96
96
|
export { ColorPicker } from "./components/color-picker/index.js";
|
97
97
|
export { ColorSwatch } from "./components/color-swatch/index.js";
|
@@ -786,6 +786,7 @@ export declare const slotRecipes: {
|
|
786
786
|
'--combobox-item-padding-x': "spacing.1";
|
787
787
|
'--combobox-item-padding-y': "spacing.0.5";
|
788
788
|
'--combobox-indicator-size': "sizes.3.5";
|
789
|
+
borderRadius: "panel.sm";
|
789
790
|
p: "0.5";
|
790
791
|
textStyle: "xs";
|
791
792
|
};
|
@@ -793,6 +794,9 @@ export declare const slotRecipes: {
|
|
793
794
|
textStyle: "xs";
|
794
795
|
gap: "1";
|
795
796
|
};
|
797
|
+
item: {
|
798
|
+
borderRadius: "calc({radii.panel.sm} - {sizes.0.5})";
|
799
|
+
};
|
796
800
|
};
|
797
801
|
sm: {
|
798
802
|
root: {
|
@@ -807,13 +811,17 @@ export declare const slotRecipes: {
|
|
807
811
|
'--combobox-item-padding-x': "spacing.1.5";
|
808
812
|
'--combobox-item-padding-y': "spacing.1";
|
809
813
|
'--combobox-indicator-size': "sizes.4";
|
810
|
-
|
814
|
+
borderRadius: "panel.md";
|
815
|
+
p: "1";
|
811
816
|
textStyle: "xs";
|
812
817
|
};
|
813
818
|
trigger: {
|
814
819
|
textStyle: "xs";
|
815
820
|
gap: "1";
|
816
821
|
};
|
822
|
+
item: {
|
823
|
+
borderRadius: "calc({radii.panel.md} - {sizes.0.5})";
|
824
|
+
};
|
817
825
|
};
|
818
826
|
md: {
|
819
827
|
root: {
|
@@ -828,6 +836,7 @@ export declare const slotRecipes: {
|
|
828
836
|
'--combobox-item-padding-x': "spacing.2";
|
829
837
|
'--combobox-item-padding-y': "spacing.1.5";
|
830
838
|
'--combobox-indicator-size': "sizes.4";
|
839
|
+
borderRadius: "panel.lg";
|
831
840
|
p: "1";
|
832
841
|
textStyle: "sm";
|
833
842
|
};
|
@@ -840,6 +849,9 @@ export declare const slotRecipes: {
|
|
840
849
|
textStyle: "sm";
|
841
850
|
gap: "2";
|
842
851
|
};
|
852
|
+
item: {
|
853
|
+
borderRadius: "calc({radii.panel.lg} - {sizes.1})";
|
854
|
+
};
|
843
855
|
};
|
844
856
|
lg: {
|
845
857
|
root: {
|
@@ -854,7 +866,8 @@ export declare const slotRecipes: {
|
|
854
866
|
'--combobox-item-padding-y': "spacing.2";
|
855
867
|
'--combobox-item-padding-x': "spacing.3";
|
856
868
|
'--combobox-indicator-size': "sizes.5";
|
857
|
-
|
869
|
+
borderRadius: "panel.lg";
|
870
|
+
p: "1";
|
858
871
|
textStyle: "md";
|
859
872
|
};
|
860
873
|
trigger: {
|
@@ -862,6 +875,9 @@ export declare const slotRecipes: {
|
|
862
875
|
py: "3";
|
863
876
|
gap: "2";
|
864
877
|
};
|
878
|
+
item: {
|
879
|
+
borderRadius: "calc({radii.panel.lg} - {sizes.1})";
|
880
|
+
};
|
865
881
|
};
|
866
882
|
};
|
867
883
|
}>;
|
@@ -878,7 +894,7 @@ export declare const slotRecipes: {
|
|
878
894
|
gap: "4";
|
879
895
|
};
|
880
896
|
itemLabel: {
|
881
|
-
minWidth: "120px";
|
897
|
+
minWidth: "var(--label-width, 120px)";
|
882
898
|
};
|
883
899
|
};
|
884
900
|
vertical: {
|
@@ -1314,6 +1330,7 @@ export declare const slotRecipes: {
|
|
1314
1330
|
center: {
|
1315
1331
|
content: {
|
1316
1332
|
alignItems: "center";
|
1333
|
+
textAlign: "center";
|
1317
1334
|
};
|
1318
1335
|
};
|
1319
1336
|
};
|
@@ -2052,7 +2069,7 @@ export declare const slotRecipes: {
|
|
2052
2069
|
size: {
|
2053
2070
|
xs: {
|
2054
2071
|
circle: {
|
2055
|
-
'--size': "
|
2072
|
+
'--size': "sizes.4";
|
2056
2073
|
'--thickness': "3px";
|
2057
2074
|
};
|
2058
2075
|
valueText: {
|
@@ -2061,7 +2078,7 @@ export declare const slotRecipes: {
|
|
2061
2078
|
};
|
2062
2079
|
sm: {
|
2063
2080
|
circle: {
|
2064
|
-
'--size': "
|
2081
|
+
'--size': "sizes.6";
|
2065
2082
|
'--thickness': "5px";
|
2066
2083
|
};
|
2067
2084
|
valueText: {
|
@@ -2070,7 +2087,7 @@ export declare const slotRecipes: {
|
|
2070
2087
|
};
|
2071
2088
|
md: {
|
2072
2089
|
circle: {
|
2073
|
-
'--size': "
|
2090
|
+
'--size': "sizes.10";
|
2074
2091
|
'--thickness': "6px";
|
2075
2092
|
};
|
2076
2093
|
valueText: {
|
@@ -2079,7 +2096,7 @@ export declare const slotRecipes: {
|
|
2079
2096
|
};
|
2080
2097
|
lg: {
|
2081
2098
|
circle: {
|
2082
|
-
'--size': "
|
2099
|
+
'--size': "sizes.14";
|
2083
2100
|
'--thickness': "7px";
|
2084
2101
|
};
|
2085
2102
|
valueText: {
|
@@ -2088,7 +2105,7 @@ export declare const slotRecipes: {
|
|
2088
2105
|
};
|
2089
2106
|
xl: {
|
2090
2107
|
circle: {
|
2091
|
-
'--size': "
|
2108
|
+
'--size': "sizes.16";
|
2092
2109
|
'--thickness': "8px";
|
2093
2110
|
};
|
2094
2111
|
valueText: {
|
@@ -3226,7 +3243,7 @@ export declare const slotRecipes: {
|
|
3226
3243
|
trigger: {
|
3227
3244
|
justifyContent: "center";
|
3228
3245
|
color: "fg.muted";
|
3229
|
-
borderRadius: "
|
3246
|
+
borderRadius: "calc({radii.md} - 1px)";
|
3230
3247
|
_hover: {
|
3231
3248
|
color: "fg.subtle";
|
3232
3249
|
};
|
@@ -1,3 +1,4 @@
|
|
1
|
+
export type ColorPalette = 'gray' | 'zinc' | 'neutral' | 'stone' | 'red' | 'orange' | 'amber' | 'yellow' | 'lime' | 'green' | 'emerald' | 'teal' | 'cyan' | 'sky' | 'blue' | 'indigo' | 'violet' | 'purple' | 'fuchsia' | 'pink' | 'rose';
|
1
2
|
export declare const colors: {
|
2
3
|
transparent: {
|
3
4
|
value: string;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@saas-ui/react",
|
3
|
-
"version": "3.0.0-next.
|
3
|
+
"version": "3.0.0-next.40",
|
4
4
|
"description": "Saas UI - The React component library for startups.",
|
5
5
|
"type": "module",
|
6
6
|
"exports": {
|
@@ -62,8 +62,8 @@
|
|
62
62
|
"dependencies": {
|
63
63
|
"@ark-ui/react": "^5.9.1",
|
64
64
|
"next-themes": "^0.4.6",
|
65
|
-
"@saas-ui/
|
66
|
-
"@saas-ui/
|
65
|
+
"@saas-ui/hooks": "3.0.0-next.3",
|
66
|
+
"@saas-ui/core": "3.0.0-next.11"
|
67
67
|
},
|
68
68
|
"peerDependencies": {
|
69
69
|
"@chakra-ui/react": "^3.20.0",
|