@steveesamson/microform 0.0.4 → 0.0.5
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/README.md +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/internal.d.ts +3 -0
- package/dist/internal.js +1 -0
- package/dist/types.d.ts +1 -3
- package/package.json +3 -1
package/README.md
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/internal.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/types.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="svelte" />
|
|
2
2
|
import { type Writable, type Readable } from "svelte/store";
|
|
3
|
+
import type { Params } from "./internal.js";
|
|
3
4
|
export type FieldTypes = "Standard" | "Popover" | "Checkable";
|
|
4
5
|
export type InputTypes = 'text' | 'number' | 'color' | 'time' | 'date' | 'range' | 'email' | 'hidden' | 'password' | 'tel' | 'url';
|
|
5
6
|
export type FieldType = HTMLSelectElement | HTMLInputElement | HTMLTextAreaElement;
|
|
@@ -11,9 +12,6 @@ export interface ValidateArgs {
|
|
|
11
12
|
node?: HTMLElement;
|
|
12
13
|
}
|
|
13
14
|
export type ValidateEvent = 'input' | 'change' | 'keyup' | 'blur';
|
|
14
|
-
export type Params = {
|
|
15
|
-
[key: string]: string | number | Array<any> | any;
|
|
16
|
-
};
|
|
17
15
|
export type FormValues = Writable<Params>;
|
|
18
16
|
export type FormErrors = Writable<Params>;
|
|
19
17
|
export type Dirty = Writable<boolean>;
|
package/package.json
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steveesamson/microform",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "vite dev",
|
|
6
|
+
"postbuild": "touch ./docs/.nojekyll",
|
|
7
|
+
"prebuild": "rm -fr ./docs & rm -fr ./dist",
|
|
6
8
|
"build": "vite build && npm run package",
|
|
7
9
|
"preview": "vite preview",
|
|
8
10
|
"package": "svelte-kit sync && svelte-package && publint",
|