@saas-ui/modals 3.0.0-next.42 → 3.0.0-next.44
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/_tsup-dts-rollup.d.cts +8 -12
- package/dist/_tsup-dts-rollup.d.ts +8 -12
- package/package.json +16 -15
@@ -1,14 +1,10 @@
|
|
1
|
-
import { AlertDialogProps as AlertDialogProps_2 } from './alert-dialog';
|
2
|
-
import { AlertDialogProps as AlertDialogProps_3 } from './alert-dialog.tsx';
|
3
1
|
import { ButtonProps } from '@chakra-ui/react';
|
4
2
|
import { Dialog } from '@saas-ui/react/dialog';
|
5
3
|
import { Drawer as Drawer_2 } from '@saas-ui/react/drawer';
|
6
|
-
import { DrawerProps as DrawerProps_2 } from './drawer';
|
7
4
|
import { FC } from 'react';
|
8
5
|
import { HTMLChakraProps } from '@chakra-ui/react';
|
9
6
|
import { JSX } from 'react/jsx-runtime';
|
10
7
|
import { MaybeRenderProp } from '@saas-ui/core/utils';
|
11
|
-
import { ModalProps as ModalProps_2 } from './modal';
|
12
8
|
import { ModalsContextValue } from '@saas-ui/modals-provider';
|
13
9
|
import { ModalsProviderProps } from '@saas-ui/modals-provider';
|
14
10
|
import * as React_2 from 'react';
|
@@ -78,10 +74,10 @@ export { AlertDialogProps }
|
|
78
74
|
export { AlertDialogProps as AlertDialogProps_alias_1 }
|
79
75
|
|
80
76
|
export declare const defaultModals: {
|
81
|
-
alert: FC<
|
82
|
-
confirm: FC<
|
83
|
-
drawer: FC<
|
84
|
-
modal: FC<
|
77
|
+
alert: FC<AlertDialogProps>;
|
78
|
+
confirm: FC<AlertDialogProps>;
|
79
|
+
drawer: FC<DrawerProps>;
|
80
|
+
modal: FC<ModalProps>;
|
85
81
|
};
|
86
82
|
|
87
83
|
declare const Drawer: React_2.FC<DrawerProps>;
|
@@ -203,10 +199,10 @@ export { ModalProps as ModalProps_alias_1 }
|
|
203
199
|
export declare const ModalsProvider: (props: Omit<ModalsProviderProps, "modals">) => JSX.Element;
|
204
200
|
|
205
201
|
export declare const useModals: () => ModalsContextValue< {
|
206
|
-
alert: FC<
|
207
|
-
confirm: FC<
|
208
|
-
drawer: FC<
|
209
|
-
modal: FC<
|
202
|
+
alert: FC<AlertDialogProps>;
|
203
|
+
confirm: FC<AlertDialogProps>;
|
204
|
+
drawer: FC<DrawerProps>;
|
205
|
+
modal: FC<ModalProps>;
|
210
206
|
}, "modal" | "alert" | "drawer" | "confirm">;
|
211
207
|
|
212
208
|
export { }
|
@@ -1,14 +1,10 @@
|
|
1
|
-
import { AlertDialogProps as AlertDialogProps_2 } from './alert-dialog';
|
2
|
-
import { AlertDialogProps as AlertDialogProps_3 } from './alert-dialog.tsx';
|
3
1
|
import { ButtonProps } from '@chakra-ui/react';
|
4
2
|
import { Dialog } from '@saas-ui/react/dialog';
|
5
3
|
import { Drawer as Drawer_2 } from '@saas-ui/react/drawer';
|
6
|
-
import { DrawerProps as DrawerProps_2 } from './drawer';
|
7
4
|
import { FC } from 'react';
|
8
5
|
import { HTMLChakraProps } from '@chakra-ui/react';
|
9
6
|
import { JSX } from 'react/jsx-runtime';
|
10
7
|
import { MaybeRenderProp } from '@saas-ui/core/utils';
|
11
|
-
import { ModalProps as ModalProps_2 } from './modal';
|
12
8
|
import { ModalsContextValue } from '@saas-ui/modals-provider';
|
13
9
|
import { ModalsProviderProps } from '@saas-ui/modals-provider';
|
14
10
|
import * as React_2 from 'react';
|
@@ -78,10 +74,10 @@ export { AlertDialogProps }
|
|
78
74
|
export { AlertDialogProps as AlertDialogProps_alias_1 }
|
79
75
|
|
80
76
|
export declare const defaultModals: {
|
81
|
-
alert: FC<
|
82
|
-
confirm: FC<
|
83
|
-
drawer: FC<
|
84
|
-
modal: FC<
|
77
|
+
alert: FC<AlertDialogProps>;
|
78
|
+
confirm: FC<AlertDialogProps>;
|
79
|
+
drawer: FC<DrawerProps>;
|
80
|
+
modal: FC<ModalProps>;
|
85
81
|
};
|
86
82
|
|
87
83
|
declare const Drawer: React_2.FC<DrawerProps>;
|
@@ -203,10 +199,10 @@ export { ModalProps as ModalProps_alias_1 }
|
|
203
199
|
export declare const ModalsProvider: (props: Omit<ModalsProviderProps, "modals">) => JSX.Element;
|
204
200
|
|
205
201
|
export declare const useModals: () => ModalsContextValue< {
|
206
|
-
alert: FC<
|
207
|
-
confirm: FC<
|
208
|
-
drawer: FC<
|
209
|
-
modal: FC<
|
202
|
+
alert: FC<AlertDialogProps>;
|
203
|
+
confirm: FC<AlertDialogProps>;
|
204
|
+
drawer: FC<DrawerProps>;
|
205
|
+
modal: FC<ModalProps>;
|
210
206
|
}, "modal" | "alert" | "drawer" | "confirm">;
|
211
207
|
|
212
208
|
export { }
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@saas-ui/modals",
|
3
|
-
"version": "3.0.0-next.
|
3
|
+
"version": "3.0.0-next.44",
|
4
4
|
"description": "A modal manager for Chakra UI",
|
5
5
|
"type": "module",
|
6
6
|
"exports": {
|
@@ -48,25 +48,26 @@
|
|
48
48
|
},
|
49
49
|
"dependencies": {
|
50
50
|
"@saas-ui/core": "3.0.0-next.11",
|
51
|
-
"@saas-ui/
|
52
|
-
"@saas-ui/
|
53
|
-
"@saas-ui/
|
51
|
+
"@saas-ui/hooks": "3.0.0-next.3",
|
52
|
+
"@saas-ui/forms": "3.0.0-next.44",
|
53
|
+
"@saas-ui/modals-provider": "1.0.0-next.1"
|
54
54
|
},
|
55
55
|
"peerDependencies": {
|
56
|
-
"@chakra-ui/react": "
|
56
|
+
"@chakra-ui/react": "3.27.0",
|
57
57
|
"@emotion/react": ">=11.0.0",
|
58
|
-
"react": "
|
59
|
-
"react-dom": "
|
60
|
-
"@saas-ui/react": "3.0.0-next.
|
58
|
+
"react": "19.1.1",
|
59
|
+
"react-dom": "19.1.1",
|
60
|
+
"@saas-ui/react": "3.0.0-next.43"
|
61
61
|
},
|
62
62
|
"devDependencies": {
|
63
|
-
"
|
64
|
-
"
|
65
|
-
"
|
66
|
-
"react": "
|
67
|
-
"react-dom": "
|
68
|
-
"
|
69
|
-
"
|
63
|
+
"@microsoft/api-extractor": "^7.52.15",
|
64
|
+
"@types/react": "19.2.0",
|
65
|
+
"@types/react-dom": "19.2.0",
|
66
|
+
"react": "19.2.0",
|
67
|
+
"react-dom": "19.2.0",
|
68
|
+
"typescript": "5.9.3",
|
69
|
+
"zod": "^4.1.11",
|
70
|
+
"tsup": "^8.5.0"
|
70
71
|
},
|
71
72
|
"scripts": {
|
72
73
|
"clean": "rimraf dist",
|