@saas-ui/react 3.0.0-next.34 → 3.0.0-next.36
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/LICENSE +21 -0
- package/dist/.tsbuildinfo.json +1 -1
- package/dist/components/accordion/accordion.recipe.d.ts +9 -0
- package/dist/components/accordion/accordion.recipe.js +10 -1
- package/dist/components/app-shell/app-shell.recipe.d.ts +1 -1
- package/dist/components/color-mode/color-mode.d.ts +19 -0
- package/dist/components/color-mode/color-mode.js +35 -0
- package/dist/components/color-mode/index.d.ts +2 -0
- package/dist/components/color-mode/index.js +1 -0
- package/dist/components/combobox/combobox.recipe.d.ts +128 -0
- package/dist/components/combobox/combobox.recipe.js +279 -0
- package/dist/components/combobox/index.d.ts +1 -0
- package/dist/components/combobox/index.js +1 -0
- package/dist/components/file-upload/file-upload.recipe.d.ts +1 -1
- package/dist/components/menu/menu.recipe.d.ts +1 -1
- package/dist/components/navbar/navbar.d.ts +3 -3
- package/dist/components/page/page.d.ts +3 -3
- package/dist/components/page/page.recipe.d.ts +1 -1
- package/dist/components/page/page.recipe.js +1 -1
- package/dist/components/persona/persona-primitive.js +1 -1
- package/dist/components/progress-circle/progress-circle.recipe.d.ts +2 -2
- package/dist/components/progress-circle/progress-circle.recipe.js +2 -2
- package/dist/components/section/section.d.ts +2 -2
- package/dist/components/segmented-control/segment-group.recipe.js +1 -1
- package/dist/components/select/select.recipe.d.ts +1 -1
- package/dist/components/sidebar/sidebar-nav-item.recipe.d.ts +5 -0
- package/dist/components/sidebar/sidebar-nav-item.recipe.js +5 -0
- package/dist/components/sidebar/sidebar.d.ts +12 -12
- package/dist/components/sidebar/sidebar.recipe.d.ts +2 -2
- package/dist/components/sidebar/sidebar.recipe.js +19 -2
- package/dist/components/toaster/toaster.d.ts +3 -2
- package/dist/index.d.ts +3 -0
- package/dist/index.js +2 -0
- package/dist/theme/global-css.js +3 -4
- package/dist/theme/semantic-tokens/colors.d.ts +6 -0
- package/dist/theme/semantic-tokens/colors.js +3 -0
- package/dist/theme/semantic-tokens/shadows.js +7 -7
- package/dist/theme/slot-recipes.d.ts +165 -23
- package/dist/theme/slot-recipes.js +2 -0
- package/package.json +22 -17
- package/CHANGELOG.md +0 -4203
@@ -12,8 +12,8 @@ export declare const sidebarSlotRecipe: import("@chakra-ui/react").SlotRecipeDef
|
|
12
12
|
borderColor: "sidebar.border";
|
13
13
|
borderWidth: "1px";
|
14
14
|
borderRadius: "panel.md";
|
15
|
-
marginBlock:
|
16
|
-
marginEnd:
|
15
|
+
marginBlock: "var(--inset-gap, {spacing.2})";
|
16
|
+
marginEnd: "var(--inset-gap, {spacing.2})";
|
17
17
|
overflow: "clip";
|
18
18
|
};
|
19
19
|
};
|
@@ -145,6 +145,7 @@ export const sidebarSlotRecipe = defineSlotRecipe({
|
|
145
145
|
minHeight: '0',
|
146
146
|
display: 'flex',
|
147
147
|
flexDirection: 'column',
|
148
|
+
bg: 'bg.content',
|
148
149
|
},
|
149
150
|
},
|
150
151
|
variants: {
|
@@ -161,8 +162,8 @@ export const sidebarSlotRecipe = defineSlotRecipe({
|
|
161
162
|
borderColor: 'sidebar.border',
|
162
163
|
borderWidth: '1px',
|
163
164
|
borderRadius: 'panel.md',
|
164
|
-
marginBlock: 2,
|
165
|
-
marginEnd: 2,
|
165
|
+
marginBlock: 'var(--inset-gap, {spacing.2})',
|
166
|
+
marginEnd: 'var(--inset-gap, {spacing.2})',
|
166
167
|
overflow: 'clip',
|
167
168
|
},
|
168
169
|
},
|
@@ -255,6 +256,22 @@ export const sidebarSlotRecipe = defineSlotRecipe({
|
|
255
256
|
},
|
256
257
|
},
|
257
258
|
},
|
259
|
+
compoundVariants: [
|
260
|
+
{
|
261
|
+
variant: 'inset',
|
262
|
+
mode: 'collapsible',
|
263
|
+
css: {
|
264
|
+
root: {
|
265
|
+
py: 'var(--inset-gap, {spacing.2})',
|
266
|
+
_closed: {
|
267
|
+
'& [class*="__inset"]': {
|
268
|
+
ps: 'var(--inset-gap, {spacing.2})',
|
269
|
+
},
|
270
|
+
},
|
271
|
+
},
|
272
|
+
},
|
273
|
+
},
|
274
|
+
],
|
258
275
|
defaultVariants: {
|
259
276
|
variant: 'sidebar',
|
260
277
|
mode: 'collapsible',
|
@@ -1,5 +1,6 @@
|
|
1
|
-
import { type CreateToasterProps } from '@chakra-ui/react/toast';
|
2
|
-
export
|
1
|
+
import { type CreateToasterProps, CreateToasterReturn } from '@chakra-ui/react/toast';
|
2
|
+
export type { CreateToasterProps, CreateToasterReturn };
|
3
|
+
export declare let toast: CreateToasterReturn;
|
3
4
|
export interface ToasterProps extends Partial<CreateToasterProps> {
|
4
5
|
closable?: boolean;
|
5
6
|
}
|
package/dist/index.d.ts
CHANGED
@@ -27,6 +27,9 @@ export { CloseButton, type CloseButtonProps, } from './components/close-button/i
|
|
27
27
|
export { Container, type ContainerProps } from './components/container/index.ts';
|
28
28
|
export { Code, type CodeProps } from './components/code/index.ts';
|
29
29
|
export { Collapsible } from './components/collapsible/index.ts';
|
30
|
+
export { ColorModeProvider, DarkMode, LightMode, useColorMode, useColorModeValue, ColorModeTrigger, } from './components/color-mode/index.ts';
|
31
|
+
export type { ColorMode, UseColorModeReturn, } from './components/color-mode/index.ts';
|
32
|
+
export { Combobox, useCombobox, useComboboxContext, useComboboxItemContext, useComboboxStyles, } from './components/combobox/index.ts';
|
30
33
|
export { Command } from './components/command/index.ts';
|
31
34
|
export { DataList, useDataListStyles } from './components/data-list/index.ts';
|
32
35
|
export { Dialog } from './components/dialog/index.ts';
|
package/dist/index.js
CHANGED
@@ -23,6 +23,8 @@ export { CloseButton, } from "./components/close-button/index.js";
|
|
23
23
|
export { Container } from "./components/container/index.js";
|
24
24
|
export { Code } from "./components/code/index.js";
|
25
25
|
export { Collapsible } from "./components/collapsible/index.js";
|
26
|
+
export { ColorModeProvider, DarkMode, LightMode, useColorMode, useColorModeValue, ColorModeTrigger, } from "./components/color-mode/index.js";
|
27
|
+
export { Combobox, useCombobox, useComboboxContext, useComboboxItemContext, useComboboxStyles, } from "./components/combobox/index.js";
|
26
28
|
export { Command } from "./components/command/index.js";
|
27
29
|
export { DataList, useDataListStyles } from "./components/data-list/index.js";
|
28
30
|
export { Dialog } from "./components/dialog/index.js";
|
package/dist/theme/global-css.js
CHANGED
@@ -33,15 +33,14 @@ export const globalCss = defineGlobalStyles({
|
|
33
33
|
'--global-font-body': 'fonts.body',
|
34
34
|
'--global-color-border': 'colors.border',
|
35
35
|
'--cursor-button': 'default',
|
36
|
-
// '--radius-factor': '1',
|
37
|
-
// '--radius-control': '1',
|
38
|
-
// '--radius-panel': '1',
|
39
|
-
// '--radius-indicator': '1',
|
40
36
|
'--radius-full': '9999px',
|
41
37
|
'--scale-factor': '1',
|
42
38
|
'--overlay-translucency': '95%',
|
43
39
|
'--overlay-effect': 'blur({blurs.lg})',
|
44
40
|
'--backdrop-effect': 'none',
|
41
|
+
'--scrollbar-color': 'colors.border.emphasized',
|
42
|
+
scrollbarWidth: 'thin',
|
43
|
+
scrollbarColor: 'var(--scrollbar-color) transparent',
|
45
44
|
},
|
46
45
|
'.dark *': {
|
47
46
|
'--overlay-translucency': '85%',
|
@@ -66,6 +66,9 @@ export const semanticColors = defineSemanticTokens.colors({
|
|
66
66
|
inverted: {
|
67
67
|
value: { _light: '{colors.black}', _dark: '{colors.white}' },
|
68
68
|
},
|
69
|
+
content: {
|
70
|
+
value: { _light: '{colors.gray.50}', _dark: '{colors.gray.950}' },
|
71
|
+
},
|
69
72
|
panel: {
|
70
73
|
value: { _light: '{colors.white}', _dark: '{colors.gray.900}' },
|
71
74
|
},
|
@@ -3,37 +3,37 @@ export const semanticShadows = defineSemanticTokens.shadows({
|
|
3
3
|
xs: {
|
4
4
|
value: {
|
5
5
|
_light: '0px 1px 2px {colors.gray.900/5}, 0px 0px 1px {colors.gray.900/5}',
|
6
|
-
_dark: '0px 1px 1px {black/
|
6
|
+
_dark: '0px 1px 1px {black/30}, 0px 0px 1px inset {colors.gray.300/5}',
|
7
7
|
},
|
8
8
|
},
|
9
9
|
sm: {
|
10
10
|
value: {
|
11
11
|
_light: '0px 2px 4px {colors.gray.900/5}, 0px 0px 2px {colors.gray.900/5}',
|
12
|
-
_dark: '0px 2px 4px {black/
|
12
|
+
_dark: '0px 2px 4px {black/30}, 0px 0px 1px inset {colors.gray.300/5}',
|
13
13
|
},
|
14
14
|
},
|
15
15
|
md: {
|
16
16
|
value: {
|
17
17
|
_light: '0px 4px 8px {colors.gray.900/5}, 0px 0px 3px {colors.gray.900/5}',
|
18
|
-
_dark: '0px 4px 8px {black/
|
18
|
+
_dark: '0px 4px 8px {black/30}, 0px 0px 1px inset {colors.gray.300/5}',
|
19
19
|
},
|
20
20
|
},
|
21
21
|
lg: {
|
22
22
|
value: {
|
23
23
|
_light: '0px 8px 16px {colors.gray.900/5}, 0px 0px 4px {colors.gray.900/5}',
|
24
|
-
_dark: '0px 8px 16px {black/
|
24
|
+
_dark: '0px 8px 16px {black/30}, 0px 0px 1px inset {colors.gray.300/5}',
|
25
25
|
},
|
26
26
|
},
|
27
27
|
xl: {
|
28
28
|
value: {
|
29
29
|
_light: '0px 16px 24px {colors.gray.900/5}, 0px 0px 5px {colors.gray.900/5}',
|
30
|
-
_dark: '0px 16px 24px {black/
|
30
|
+
_dark: '0px 16px 24px {black/30}, 0px 0px 1px inset {colors.gray.300/5}',
|
31
31
|
},
|
32
32
|
},
|
33
33
|
'2xl': {
|
34
34
|
value: {
|
35
35
|
_light: '0px 24px 40px {colors.gray.900/10}, 0px 0px 6px {colors.gray.900/5}',
|
36
|
-
_dark: '0px 24px 40px {black/
|
36
|
+
_dark: '0px 24px 40px {black/30}, 0px 0px 1px inset {colors.gray.300/5}',
|
37
37
|
},
|
38
38
|
},
|
39
39
|
inner: {
|
@@ -45,7 +45,7 @@ export const semanticShadows = defineSemanticTokens.shadows({
|
|
45
45
|
inset: {
|
46
46
|
value: {
|
47
47
|
_light: 'inset 0 1px 2px 0 {black/5}',
|
48
|
-
_dark: 'inset 0 -1px 2px 0 {colors.gray.300/
|
48
|
+
_dark: 'inset 0 -1px 2px 0 {colors.gray.300/4}, inset 0 0 0 1px {colors.gray.300/4}',
|
49
49
|
},
|
50
50
|
},
|
51
51
|
});
|
@@ -51,6 +51,9 @@ export declare const slotRecipes: {
|
|
51
51
|
textStyle: "sm";
|
52
52
|
py: "var(--accordion-padding-y)";
|
53
53
|
};
|
54
|
+
itemContent: {
|
55
|
+
textStyle: "sm";
|
56
|
+
};
|
54
57
|
};
|
55
58
|
md: {
|
56
59
|
root: {
|
@@ -61,6 +64,9 @@ export declare const slotRecipes: {
|
|
61
64
|
textStyle: "md";
|
62
65
|
py: "var(--accordion-padding-y)";
|
63
66
|
};
|
67
|
+
itemContent: {
|
68
|
+
textStyle: "md";
|
69
|
+
};
|
64
70
|
};
|
65
71
|
lg: {
|
66
72
|
root: {
|
@@ -71,6 +77,9 @@ export declare const slotRecipes: {
|
|
71
77
|
textStyle: "lg";
|
72
78
|
py: "var(--accordion-padding-y)";
|
73
79
|
};
|
80
|
+
itemContent: {
|
81
|
+
textStyle: "lg";
|
82
|
+
};
|
74
83
|
};
|
75
84
|
};
|
76
85
|
}>;
|
@@ -459,7 +468,7 @@ export declare const slotRecipes: {
|
|
459
468
|
};
|
460
469
|
};
|
461
470
|
}>;
|
462
|
-
checkbox: import("@chakra-ui/react").SlotRecipeDefinition<"
|
471
|
+
checkbox: import("@chakra-ui/react").SlotRecipeDefinition<"label" | "control" | "indicator" | "root" | "group", {
|
463
472
|
size: {
|
464
473
|
xs: {
|
465
474
|
root: {
|
@@ -539,7 +548,7 @@ export declare const slotRecipes: {
|
|
539
548
|
};
|
540
549
|
};
|
541
550
|
}>;
|
542
|
-
checkboxCard: import("@chakra-ui/react").SlotRecipeDefinition<"description" | "content" | "
|
551
|
+
checkboxCard: import("@chakra-ui/react").SlotRecipeDefinition<"description" | "content" | "label" | "control" | "indicator" | "root" | "addon", {
|
543
552
|
size: {
|
544
553
|
sm: {
|
545
554
|
root: {
|
@@ -728,6 +737,134 @@ export declare const slotRecipes: {
|
|
728
737
|
};
|
729
738
|
}>;
|
730
739
|
collapsible: import("@chakra-ui/react").SlotRecipeDefinition<"content" | "indicator" | "root" | "trigger", import("@chakra-ui/react").SlotRecipeVariantRecord<"content" | "indicator" | "root" | "trigger">>;
|
740
|
+
combobox: import("@chakra-ui/react").SlotRecipeDefinition<"content" | "label" | "control" | "root" | "item" | "itemIndicator" | "positioner" | "list" | "trigger" | "input" | "itemGroup" | "clearTrigger" | "itemGroupLabel" | "itemText" | "indicatorGroup" | "empty", {
|
741
|
+
variant: {
|
742
|
+
outline: {
|
743
|
+
input: {
|
744
|
+
bg: "transparent";
|
745
|
+
borderWidth: "1px";
|
746
|
+
borderColor: "border";
|
747
|
+
focusVisibleRing: "inside";
|
748
|
+
};
|
749
|
+
};
|
750
|
+
subtle: {
|
751
|
+
input: {
|
752
|
+
borderWidth: "1px";
|
753
|
+
borderColor: "transparent";
|
754
|
+
bg: "bg.muted";
|
755
|
+
focusVisibleRing: "inside";
|
756
|
+
};
|
757
|
+
};
|
758
|
+
flushed: {
|
759
|
+
input: {
|
760
|
+
bg: "transparent";
|
761
|
+
borderBottomWidth: "1px";
|
762
|
+
borderBottomColor: "border";
|
763
|
+
borderRadius: "0";
|
764
|
+
px: "0";
|
765
|
+
_focusVisible: {
|
766
|
+
borderColor: "var(--focus-color)";
|
767
|
+
boxShadow: "0px 1px 0px 0px var(--focus-color)";
|
768
|
+
};
|
769
|
+
};
|
770
|
+
indicatorGroup: {
|
771
|
+
px: "0";
|
772
|
+
};
|
773
|
+
};
|
774
|
+
};
|
775
|
+
size: {
|
776
|
+
xs: {
|
777
|
+
root: {
|
778
|
+
'--combobox-input-height': "sizes.6";
|
779
|
+
'--combobox-input-padding-x': "spacing.2";
|
780
|
+
'--combobox-indicator-size': "sizes.3.5";
|
781
|
+
};
|
782
|
+
input: {
|
783
|
+
textStyle: "xs";
|
784
|
+
};
|
785
|
+
content: {
|
786
|
+
'--combobox-item-padding-x': "spacing.1";
|
787
|
+
'--combobox-item-padding-y': "spacing.0.5";
|
788
|
+
'--combobox-indicator-size': "sizes.3.5";
|
789
|
+
p: "0.5";
|
790
|
+
textStyle: "xs";
|
791
|
+
};
|
792
|
+
trigger: {
|
793
|
+
textStyle: "xs";
|
794
|
+
gap: "1";
|
795
|
+
};
|
796
|
+
};
|
797
|
+
sm: {
|
798
|
+
root: {
|
799
|
+
'--combobox-input-height': "sizes.7";
|
800
|
+
'--combobox-input-padding-x': "spacing.2.5";
|
801
|
+
'--combobox-indicator-size': "sizes.4";
|
802
|
+
};
|
803
|
+
input: {
|
804
|
+
textStyle: "sm";
|
805
|
+
};
|
806
|
+
content: {
|
807
|
+
'--combobox-item-padding-x': "spacing.1.5";
|
808
|
+
'--combobox-item-padding-y': "spacing.1";
|
809
|
+
'--combobox-indicator-size': "sizes.4";
|
810
|
+
p: "0.5";
|
811
|
+
textStyle: "xs";
|
812
|
+
};
|
813
|
+
trigger: {
|
814
|
+
textStyle: "xs";
|
815
|
+
gap: "1";
|
816
|
+
};
|
817
|
+
};
|
818
|
+
md: {
|
819
|
+
root: {
|
820
|
+
'--combobox-input-height': "sizes.8";
|
821
|
+
'--combobox-input-padding-x': "spacing.3";
|
822
|
+
'--combobox-indicator-size': "sizes.4";
|
823
|
+
};
|
824
|
+
input: {
|
825
|
+
textStyle: "sm";
|
826
|
+
};
|
827
|
+
content: {
|
828
|
+
'--combobox-item-padding-x': "spacing.2";
|
829
|
+
'--combobox-item-padding-y': "spacing.1.5";
|
830
|
+
'--combobox-indicator-size': "sizes.4";
|
831
|
+
p: "1";
|
832
|
+
textStyle: "sm";
|
833
|
+
};
|
834
|
+
itemIndicator: {
|
835
|
+
display: "flex";
|
836
|
+
alignItems: "center";
|
837
|
+
justifyContent: "center";
|
838
|
+
};
|
839
|
+
trigger: {
|
840
|
+
textStyle: "sm";
|
841
|
+
gap: "2";
|
842
|
+
};
|
843
|
+
};
|
844
|
+
lg: {
|
845
|
+
root: {
|
846
|
+
'--combobox-input-height': "sizes.10";
|
847
|
+
'--combobox-input-padding-x': "spacing.4";
|
848
|
+
'--combobox-indicator-size': "sizes.5";
|
849
|
+
};
|
850
|
+
input: {
|
851
|
+
textStyle: "md";
|
852
|
+
};
|
853
|
+
content: {
|
854
|
+
'--combobox-item-padding-y': "spacing.2";
|
855
|
+
'--combobox-item-padding-x': "spacing.3";
|
856
|
+
'--combobox-indicator-size': "sizes.5";
|
857
|
+
p: "1.5";
|
858
|
+
textStyle: "md";
|
859
|
+
};
|
860
|
+
trigger: {
|
861
|
+
textStyle: "md";
|
862
|
+
py: "3";
|
863
|
+
gap: "2";
|
864
|
+
};
|
865
|
+
};
|
866
|
+
};
|
867
|
+
}>;
|
731
868
|
dataList: import("@chakra-ui/react").SlotRecipeDefinition<"root" | "item" | "itemLabel" | "itemValue", {
|
732
869
|
orientation: {
|
733
870
|
horizontal: {
|
@@ -1062,7 +1199,7 @@ export declare const slotRecipes: {
|
|
1062
1199
|
};
|
1063
1200
|
};
|
1064
1201
|
}>;
|
1065
|
-
editable: import("@chakra-ui/react").SlotRecipeDefinition<"
|
1202
|
+
editable: import("@chakra-ui/react").SlotRecipeDefinition<"label" | "textarea" | "control" | "root" | "input" | "area" | "preview" | "editTrigger" | "submitTrigger" | "cancelTrigger", {
|
1066
1203
|
size: {
|
1067
1204
|
sm: {
|
1068
1205
|
root: {
|
@@ -1210,7 +1347,7 @@ export declare const slotRecipes: {
|
|
1210
1347
|
};
|
1211
1348
|
};
|
1212
1349
|
}>;
|
1213
|
-
fileUpload: import("@chakra-ui/react").SlotRecipeDefinition<"label" | "root" | "item" | "itemContent" | "trigger" | "
|
1350
|
+
fileUpload: import("@chakra-ui/react").SlotRecipeDefinition<"label" | "root" | "item" | "itemContent" | "trigger" | "itemGroup" | "clearTrigger" | "dropzone" | "itemDeleteTrigger" | "itemName" | "itemPreview" | "itemPreviewImage" | "itemSizeText" | "dropzoneContent" | "fileText", import("@chakra-ui/react").SlotRecipeVariantRecord<"label" | "root" | "item" | "itemContent" | "trigger" | "itemGroup" | "clearTrigger" | "dropzone" | "itemDeleteTrigger" | "itemName" | "itemPreview" | "itemPreviewImage" | "itemSizeText" | "dropzoneContent" | "fileText">>;
|
1214
1351
|
hoverCard: import("@chakra-ui/react").SlotRecipeDefinition<"content" | "positioner" | "trigger" | "arrow" | "arrowTip", {
|
1215
1352
|
size: {
|
1216
1353
|
xs: {
|
@@ -1277,7 +1414,7 @@ export declare const slotRecipes: {
|
|
1277
1414
|
};
|
1278
1415
|
};
|
1279
1416
|
}>;
|
1280
|
-
menu: import("@chakra-ui/react").SlotRecipeDefinition<"content" | "indicator" | "item" | "itemIndicator" | "positioner" | "separator" | "trigger" | "itemGroup" | "
|
1417
|
+
menu: import("@chakra-ui/react").SlotRecipeDefinition<"content" | "indicator" | "item" | "itemIndicator" | "positioner" | "separator" | "trigger" | "itemGroup" | "itemGroupLabel" | "itemText" | "arrow" | "arrowTip" | "contextTrigger" | "triggerItem" | "itemCommand", {
|
1281
1418
|
variant: {
|
1282
1419
|
subtle: {
|
1283
1420
|
item: {
|
@@ -1424,7 +1561,7 @@ export declare const slotRecipes: {
|
|
1424
1561
|
};
|
1425
1562
|
};
|
1426
1563
|
}>;
|
1427
|
-
numberInput: import("@chakra-ui/react").SlotRecipeDefinition<"
|
1564
|
+
numberInput: import("@chakra-ui/react").SlotRecipeDefinition<"label" | "control" | "root" | "input" | "valueText" | "incrementTrigger" | "decrementTrigger" | "scrubber", {
|
1428
1565
|
size: {
|
1429
1566
|
xs: {
|
1430
1567
|
input: {
|
@@ -1568,7 +1705,7 @@ export declare const slotRecipes: {
|
|
1568
1705
|
};
|
1569
1706
|
};
|
1570
1707
|
}>;
|
1571
|
-
pinInput: import("@chakra-ui/react").SlotRecipeDefinition<"
|
1708
|
+
pinInput: import("@chakra-ui/react").SlotRecipeDefinition<"label" | "control" | "root" | "input", {
|
1572
1709
|
size: {
|
1573
1710
|
sm: {
|
1574
1711
|
input: {
|
@@ -1914,8 +2051,8 @@ export declare const slotRecipes: {
|
|
1914
2051
|
size: {
|
1915
2052
|
xs: {
|
1916
2053
|
circle: {
|
1917
|
-
'--size': "
|
1918
|
-
'--thickness': "
|
2054
|
+
'--size': "6";
|
2055
|
+
'--thickness': "3px";
|
1919
2056
|
};
|
1920
2057
|
valueText: {
|
1921
2058
|
textStyle: "2xs";
|
@@ -1959,7 +2096,7 @@ export declare const slotRecipes: {
|
|
1959
2096
|
};
|
1960
2097
|
};
|
1961
2098
|
}>;
|
1962
|
-
radioCard: import("@chakra-ui/react").SlotRecipeDefinition<"
|
2099
|
+
radioCard: import("@chakra-ui/react").SlotRecipeDefinition<"label" | "indicator" | "root" | "item" | "itemContent" | "itemIndicator" | "itemText" | "itemControl" | "itemAddon" | "itemDescription", {
|
1963
2100
|
size: {
|
1964
2101
|
sm: {
|
1965
2102
|
item: {
|
@@ -2150,7 +2287,7 @@ export declare const slotRecipes: {
|
|
2150
2287
|
};
|
2151
2288
|
};
|
2152
2289
|
}>;
|
2153
|
-
radioGroup: import("@chakra-ui/react").SlotRecipeDefinition<"
|
2290
|
+
radioGroup: import("@chakra-ui/react").SlotRecipeDefinition<"label" | "indicator" | "root" | "item" | "itemIndicator" | "itemText" | "itemControl" | "itemAddon", {
|
2154
2291
|
variant: {
|
2155
2292
|
outline: {
|
2156
2293
|
itemControl: {
|
@@ -2227,7 +2364,7 @@ export declare const slotRecipes: {
|
|
2227
2364
|
};
|
2228
2365
|
};
|
2229
2366
|
}>;
|
2230
|
-
ratingGroup: import("@chakra-ui/react").SlotRecipeDefinition<"
|
2367
|
+
ratingGroup: import("@chakra-ui/react").SlotRecipeDefinition<"label" | "control" | "root" | "item" | "itemIndicator", {
|
2231
2368
|
size: {
|
2232
2369
|
xs: {
|
2233
2370
|
item: {
|
@@ -2251,7 +2388,7 @@ export declare const slotRecipes: {
|
|
2251
2388
|
};
|
2252
2389
|
};
|
2253
2390
|
}>;
|
2254
|
-
segmentGroup: import("@chakra-ui/react").SlotRecipeDefinition<"
|
2391
|
+
segmentGroup: import("@chakra-ui/react").SlotRecipeDefinition<"label" | "indicator" | "root" | "item" | "itemText" | "itemControl", {
|
2255
2392
|
size: {
|
2256
2393
|
xs: {
|
2257
2394
|
root: {
|
@@ -2299,7 +2436,7 @@ export declare const slotRecipes: {
|
|
2299
2436
|
};
|
2300
2437
|
};
|
2301
2438
|
}>;
|
2302
|
-
select: import("@chakra-ui/react").SlotRecipeDefinition<"content" | "
|
2439
|
+
select: import("@chakra-ui/react").SlotRecipeDefinition<"content" | "label" | "control" | "indicator" | "root" | "item" | "itemIndicator" | "positioner" | "list" | "trigger" | "itemGroup" | "clearTrigger" | "itemGroupLabel" | "itemText" | "indicatorGroup" | "valueText", {
|
2303
2440
|
variant: {
|
2304
2441
|
outline: {
|
2305
2442
|
trigger: {
|
@@ -2454,7 +2591,7 @@ export declare const slotRecipes: {
|
|
2454
2591
|
};
|
2455
2592
|
};
|
2456
2593
|
}>;
|
2457
|
-
slider: import("@chakra-ui/react").SlotRecipeDefinition<"marker" | "
|
2594
|
+
slider: import("@chakra-ui/react").SlotRecipeDefinition<"marker" | "label" | "control" | "root" | "valueText" | "track" | "range" | "thumb" | "markerGroup" | "draggingIndicator" | "markerIndicator", {
|
2458
2595
|
size: {
|
2459
2596
|
sm: {
|
2460
2597
|
root: {
|
@@ -2555,7 +2692,7 @@ export declare const slotRecipes: {
|
|
2555
2692
|
};
|
2556
2693
|
};
|
2557
2694
|
}>;
|
2558
|
-
stat: import("@chakra-ui/react").SlotRecipeDefinition<"
|
2695
|
+
stat: import("@chakra-ui/react").SlotRecipeDefinition<"label" | "indicator" | "root" | "valueText" | "helpText" | "valueUnit", {
|
2559
2696
|
size: {
|
2560
2697
|
sm: {
|
2561
2698
|
valueText: {
|
@@ -2574,7 +2711,7 @@ export declare const slotRecipes: {
|
|
2574
2711
|
};
|
2575
2712
|
};
|
2576
2713
|
}>;
|
2577
|
-
steps: import("@chakra-ui/react").SlotRecipeDefinition<"description" | "content" | "
|
2714
|
+
steps: import("@chakra-ui/react").SlotRecipeDefinition<"description" | "content" | "progress" | "indicator" | "root" | "item" | "separator" | "title" | "list" | "trigger" | "nextTrigger" | "prevTrigger", {
|
2578
2715
|
orientation: {
|
2579
2716
|
vertical: {
|
2580
2717
|
root: {
|
@@ -2716,7 +2853,7 @@ export declare const slotRecipes: {
|
|
2716
2853
|
};
|
2717
2854
|
};
|
2718
2855
|
}>;
|
2719
|
-
switch: import("@chakra-ui/react").SlotRecipeDefinition<"
|
2856
|
+
switch: import("@chakra-ui/react").SlotRecipeDefinition<"label" | "control" | "indicator" | "root" | "thumb", {
|
2720
2857
|
variant: {
|
2721
2858
|
solid: {
|
2722
2859
|
control: {
|
@@ -3177,7 +3314,7 @@ export declare const slotRecipes: {
|
|
3177
3314
|
};
|
3178
3315
|
};
|
3179
3316
|
}>;
|
3180
|
-
tag: import("@chakra-ui/react").SlotRecipeDefinition<"label" | "root" | "closeTrigger" | "
|
3317
|
+
tag: import("@chakra-ui/react").SlotRecipeDefinition<"label" | "root" | "closeTrigger" | "endElement" | "startElement", {
|
3181
3318
|
size: {
|
3182
3319
|
sm: {
|
3183
3320
|
root: {
|
@@ -3403,7 +3540,7 @@ export declare const slotRecipes: {
|
|
3403
3540
|
};
|
3404
3541
|
};
|
3405
3542
|
}>;
|
3406
|
-
suiPersona: import("@chakra-ui/react").SlotRecipeDefinition<"
|
3543
|
+
suiPersona: import("@chakra-ui/react").SlotRecipeDefinition<"label" | "presence" | "root" | "avatar" | "details" | "secondaryLabel" | "tertiaryLabel", {
|
3407
3544
|
size: {
|
3408
3545
|
'2xs': {
|
3409
3546
|
details: {
|
@@ -3611,8 +3748,8 @@ export declare const slotRecipes: {
|
|
3611
3748
|
borderColor: "sidebar.border";
|
3612
3749
|
borderWidth: "1px";
|
3613
3750
|
borderRadius: "panel.md";
|
3614
|
-
marginBlock:
|
3615
|
-
marginEnd:
|
3751
|
+
marginBlock: "var(--inset-gap, {spacing.2})";
|
3752
|
+
marginEnd: "var(--inset-gap, {spacing.2})";
|
3616
3753
|
overflow: "clip";
|
3617
3754
|
};
|
3618
3755
|
};
|
@@ -3722,6 +3859,11 @@ export declare const slotRecipes: {
|
|
3722
3859
|
color: "sidebar.accent.fg";
|
3723
3860
|
'--sidebar-item-icon-color': "sidebar.accent.fg";
|
3724
3861
|
};
|
3862
|
+
_currentPage: {
|
3863
|
+
bg: "sidebar.accent.bg";
|
3864
|
+
color: "sidebar.accent.fg";
|
3865
|
+
'--sidebar-item-icon-color': "sidebar.accent.fg";
|
3866
|
+
};
|
3725
3867
|
};
|
3726
3868
|
};
|
3727
3869
|
};
|
@@ -3771,7 +3913,7 @@ export declare const slotRecipes: {
|
|
3771
3913
|
variant: {
|
3772
3914
|
panel: {
|
3773
3915
|
root: {
|
3774
|
-
bg: "var(--page-bg-color
|
3916
|
+
bg: "var(--page-bg-color)";
|
3775
3917
|
zIndex: number;
|
3776
3918
|
};
|
3777
3919
|
header: {
|
@@ -9,6 +9,7 @@ import { cardSlotRecipe } from "../components/card/card.recipe.js";
|
|
9
9
|
import { checkboxCardSlotRecipe } from "../components/checkbox-card/checkbox-card.recipe.js";
|
10
10
|
import { checkboxSlotRecipe } from "../components/checkbox/checkbox.recipe.js";
|
11
11
|
import { collapsibleSlotRecipe } from "../components/collapsible/collapsible.recipe.js";
|
12
|
+
import { comboboxSlotRecipe } from "../components/combobox/combobox.recipe.js";
|
12
13
|
import { dataListSlotRecipe } from "../components/data-list/data-list.recipe.js";
|
13
14
|
import { dialogSlotRecipe } from "../components/dialog/dialog.recipe.js";
|
14
15
|
import { drawerSlotRecipe } from "../components/drawer/drawer.recipe.js";
|
@@ -61,6 +62,7 @@ export const slotRecipes = {
|
|
61
62
|
checkbox: checkboxSlotRecipe,
|
62
63
|
checkboxCard: checkboxCardSlotRecipe,
|
63
64
|
collapsible: collapsibleSlotRecipe,
|
65
|
+
combobox: comboboxSlotRecipe,
|
64
66
|
dataList: dataListSlotRecipe,
|
65
67
|
dialog: dialogSlotRecipe,
|
66
68
|
drawer: drawerSlotRecipe,
|
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.36",
|
4
4
|
"description": "Saas UI - The React component library for startups.",
|
5
5
|
"type": "module",
|
6
6
|
"exports": {
|
@@ -28,17 +28,6 @@
|
|
28
28
|
"main": "./dist/index.js",
|
29
29
|
"module": "./dist/index.js",
|
30
30
|
"types": "./dist/index.d.ts",
|
31
|
-
"scripts": {
|
32
|
-
"clean": "rimraf --no-glob ./dist",
|
33
|
-
"build:tsup": "NODE_OPTIONS='--max-old-space-size=16384' tsup --config tsup.config.ts ",
|
34
|
-
"build:components": "tsup --config tsup.components.config.ts --dts-only",
|
35
|
-
"build:types": "tsc --emitDeclarationOnly --outDir dist --project tsconfig.json",
|
36
|
-
"prebuild": "yarn clean",
|
37
|
-
"build": "tsc --outDir dist --project tsconfig.json",
|
38
|
-
"lint": "eslint src --ext .ts,.tsx,.js,.jsx --config ../../eslint.config.js",
|
39
|
-
"lint:staged": "lint-staged --allow-empty --config ../../lint-staged.config.js",
|
40
|
-
"typecheck": "tsc --noEmit"
|
41
|
-
},
|
42
31
|
"files": [
|
43
32
|
"dist"
|
44
33
|
],
|
@@ -71,12 +60,13 @@
|
|
71
60
|
"url": "https://storybook.saas-ui.dev"
|
72
61
|
},
|
73
62
|
"dependencies": {
|
74
|
-
"@ark-ui/react": "^5.
|
75
|
-
"
|
76
|
-
"@saas-ui/hooks": "3.0.0-next.
|
63
|
+
"@ark-ui/react": "^5.9.1",
|
64
|
+
"next-themes": "^0.4.6",
|
65
|
+
"@saas-ui/hooks": "3.0.0-next.3",
|
66
|
+
"@saas-ui/core": "3.0.0-next.10"
|
77
67
|
},
|
78
68
|
"peerDependencies": {
|
79
|
-
"@chakra-ui/react": "^3.
|
69
|
+
"@chakra-ui/react": "^3.20.0",
|
80
70
|
"@emotion/react": "^11",
|
81
71
|
"react": ">=18",
|
82
72
|
"react-dom": ">=18"
|
@@ -85,6 +75,21 @@
|
|
85
75
|
"react-icons": "^5.5.0",
|
86
76
|
"rimraf": "^6.0.1",
|
87
77
|
"tsup": "^8.4.0",
|
88
|
-
"typescript": "^5.8.
|
78
|
+
"typescript": "^5.8.3",
|
79
|
+
"react": "^19.0.0",
|
80
|
+
"react-dom": "^19.0.0",
|
81
|
+
"@types/react": "^19.0.12",
|
82
|
+
"@types/react-dom": "^19.0.4"
|
83
|
+
},
|
84
|
+
"scripts": {
|
85
|
+
"clean": "rimraf --no-glob ./dist",
|
86
|
+
"build:tsup": "NODE_OPTIONS='--max-old-space-size=16384' tsup --config tsup.config.ts ",
|
87
|
+
"build:components": "tsup --config tsup.components.config.ts --dts-only",
|
88
|
+
"build:types": "tsc --emitDeclarationOnly --outDir dist --project tsconfig.json",
|
89
|
+
"prebuild": "pnpm clean",
|
90
|
+
"build": "tsc --outDir dist --project tsconfig.json",
|
91
|
+
"lint": "eslint src --ext .ts,.tsx,.js,.jsx --config ../../eslint.config.js",
|
92
|
+
"lint:staged": "lint-staged --allow-empty --config ../../lint-staged.config.js",
|
93
|
+
"typecheck": "tsc --noEmit"
|
89
94
|
}
|
90
95
|
}
|