@deftui/addons 0.2.5 → 0.3.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.
|
@@ -6,9 +6,9 @@ import { ModalRegistry, ModalRegistryOptions } from "./types.mjs";
|
|
|
6
6
|
* @example
|
|
7
7
|
* export const registry = createModalRegistry({ hot: import.meta.hot, key: "modals" });
|
|
8
8
|
*
|
|
9
|
-
* export const EditDialog = registry.define(Dialog,
|
|
10
|
-
* function
|
|
11
|
-
* return <Dialog.
|
|
9
|
+
* export const EditDialog = registry.define(Dialog, EditDialogBody);
|
|
10
|
+
* function EditDialogBody({ id }: Modal<{ id: string }>) {
|
|
11
|
+
* return <Dialog.Popup>{id}</Dialog.Popup>;
|
|
12
12
|
* }
|
|
13
13
|
*
|
|
14
14
|
* const handle = EditDialog.show({ id: "123" });
|
|
@@ -10,9 +10,9 @@ const EMPTY = [];
|
|
|
10
10
|
* @example
|
|
11
11
|
* export const registry = createModalRegistry({ hot: import.meta.hot, key: "modals" });
|
|
12
12
|
*
|
|
13
|
-
* export const EditDialog = registry.define(Dialog,
|
|
14
|
-
* function
|
|
15
|
-
* return <Dialog.
|
|
13
|
+
* export const EditDialog = registry.define(Dialog, EditDialogBody);
|
|
14
|
+
* function EditDialogBody({ id }: Modal<{ id: string }>) {
|
|
15
|
+
* return <Dialog.Popup>{id}</Dialog.Popup>;
|
|
16
16
|
* }
|
|
17
17
|
*
|
|
18
18
|
* const handle = EditDialog.show({ id: "123" });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deftui/addons",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/KiriRainCat/deftui.git",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"fix": "vp check --fix"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@deftui/react": "^0.
|
|
43
|
+
"@deftui/react": "^0.3.0",
|
|
44
44
|
"@tanstack/react-router": "^1.170.46",
|
|
45
45
|
"@types/react": "^19.3.0",
|
|
46
46
|
"@types/react-dom": "^19.3.0",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"vite-plus": "catalog:"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"@deftui/react": "^0.
|
|
52
|
+
"@deftui/react": "^0.3.0",
|
|
53
53
|
"@tanstack/react-router": "^1.170.0",
|
|
54
54
|
"react": "^19.0.0",
|
|
55
55
|
"react-dom": "^19.0.0",
|