@steveesamson/microform 0.0.9 → 0.0.10
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/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export * from "./types.js";
|
|
2
2
|
import type { MicroFormProps, MicroFormReturn } from './types.js';
|
|
3
|
-
declare const
|
|
4
|
-
export default
|
|
3
|
+
declare const microForm: (props?: MicroFormProps) => MicroFormReturn;
|
|
4
|
+
export default microForm;
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from "./types.js";
|
|
2
2
|
import { writable, derived, get } from 'svelte/store';
|
|
3
3
|
import { formAction } from './form-action.js';
|
|
4
|
-
const
|
|
4
|
+
const microForm = (props) => {
|
|
5
5
|
// form default values
|
|
6
6
|
const data = props?.data || {};
|
|
7
7
|
// form values
|
|
@@ -62,4 +62,4 @@ const useForm = (props) => {
|
|
|
62
62
|
reset,
|
|
63
63
|
};
|
|
64
64
|
};
|
|
65
|
-
export default
|
|
65
|
+
export default microForm;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steveesamson/microform",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "vite dev",
|
|
6
6
|
"postbuild": "touch ./docs/.nojekyll",
|
|
@@ -59,7 +59,6 @@
|
|
|
59
59
|
"vite": "^5.0.3"
|
|
60
60
|
},
|
|
61
61
|
"default": "./dist/index.js",
|
|
62
|
-
"svelte": "./dist/index.js",
|
|
63
62
|
"types": "./dist/index.d.ts",
|
|
64
63
|
"type": "module",
|
|
65
64
|
"keywords": [
|