@steveesamson/microform 0.0.3 → 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 CHANGED
@@ -16,6 +16,8 @@ or
16
16
  yarn add @steveesamson/microform
17
17
  ```
18
18
 
19
+ [Demo and Docs](https://steveesamson.github.io/microform)
20
+
19
21
  ## Usage
20
22
 
21
23
  Once you've added `microform` to your project, use it as shown below, in your view(`.svelte` files):
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export * from "./types.js";
1
2
  import type { UseFormProps, UseFormReturn } from './types.js';
2
3
  declare const useForm: (props?: UseFormProps) => UseFormReturn;
3
4
  export default useForm;
package/dist/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ export * from "./types.js";
1
2
  import { writable, derived, get } from 'svelte/store';
2
3
  import { formAction } from './form-action.js';
3
4
  const useForm = (props) => {
@@ -0,0 +1,3 @@
1
+ export type Params = {
2
+ [key: string]: string | number | Array<any> | any;
3
+ };
@@ -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",
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",
@@ -12,12 +14,18 @@
12
14
  "lint": "prettier --check . && eslint .",
13
15
  "format": "prettier --write ."
14
16
  },
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "https://github.com/steveesamson/microform.git"
20
+ },
15
21
  "exports": {
16
22
  ".": {
17
23
  "types": "./dist/index.d.ts",
18
24
  "svelte": "./dist/index.js"
19
25
  }
20
26
  },
27
+ "author": "Steve S. Samson <stevee.samson@gmail.com> (http://github.com/steveesamson)",
28
+ "homepage": "https://steveesamson.github.io/microform",
21
29
  "files": [
22
30
  "dist",
23
31
  "!dist/**/*.test.*",
@@ -54,6 +62,7 @@
54
62
  "type": "module",
55
63
  "keywords": [
56
64
  "microform",
65
+ "microform-svelte",
57
66
  "@steveesamson/microform",
58
67
  "svelte",
59
68
  "sveltejs",