@saas-ui/forms 1.0.0-rc.0 → 1.0.0-rc.11
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +130 -0
- package/README.md +29 -0
- package/ajv/package.json +18 -0
- package/dist/ajv/ajv-resolver.d.ts +11 -0
- package/dist/ajv/ajv-resolver.d.ts.map +1 -0
- package/dist/ajv/index.d.ts +2 -0
- package/dist/ajv/index.d.ts.map +1 -0
- package/dist/ajv/index.js +104 -0
- package/dist/ajv/index.js.map +1 -0
- package/dist/ajv/index.modern.mjs +104 -0
- package/dist/ajv/index.modern.mjs.map +1 -0
- package/dist/array-field.d.ts +14 -3
- package/dist/array-field.d.ts.map +1 -1
- package/dist/auto-form.d.ts +13 -1
- package/dist/auto-form.d.ts.map +1 -1
- package/dist/field.d.ts +82 -27
- package/dist/field.d.ts.map +1 -1
- package/dist/form.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +1 -1
- package/dist/index.modern.mjs.map +1 -1
- package/dist/step-form.d.ts +4 -4
- package/dist/step-form.d.ts.map +1 -1
- package/dist/submit-button.d.ts +2 -1
- package/dist/submit-button.d.ts.map +1 -1
- package/dist/use-step-form.d.ts +7 -3
- package/dist/use-step-form.d.ts.map +1 -1
- package/dist/yup/index.js +1 -1
- package/dist/yup/index.js.map +1 -1
- package/dist/yup/index.modern.mjs +1 -1
- package/dist/yup/index.modern.mjs.map +1 -1
- package/dist/zod/index.js +1 -1
- package/dist/zod/index.js.map +1 -1
- package/dist/zod/index.modern.mjs +1 -1
- package/dist/zod/index.modern.mjs.map +1 -1
- package/dist/zod/zod-resolver.d.ts +2 -2
- package/dist/zod/zod-resolver.d.ts.map +1 -1
- package/package.json +32 -17
- package/src/array-field.tsx +21 -22
- package/src/auto-form.tsx +22 -3
- package/src/field-resolver.ts +2 -2
- package/src/field.tsx +184 -73
- package/src/form.tsx +0 -1
- package/src/object-field.tsx +3 -3
- package/src/step-form.tsx +27 -20
- package/src/submit-button.tsx +32 -24
- package/src/use-step-form.tsx +27 -12
- package/yup/package.json +2 -2
- package/zod/package.json +4 -4
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,135 @@
|
|
1
1
|
# @saas-ui/forms
|
2
2
|
|
3
|
+
## 1.0.0-rc.11
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- 1744543: Updated dependencies.
|
8
|
+
- Updated dependencies [1744543]
|
9
|
+
- @saas-ui/button@1.0.0-rc.5
|
10
|
+
- @saas-ui/input-right-button@1.0.0-rc.5
|
11
|
+
- @saas-ui/number-input@1.0.0-rc.4
|
12
|
+
- @saas-ui/password-input@1.0.0-rc.5
|
13
|
+
- @saas-ui/pin-input@1.0.0-rc.5
|
14
|
+
- @saas-ui/radio@1.0.0-rc.4
|
15
|
+
- @saas-ui/react-utils@1.0.0-rc.4
|
16
|
+
- @saas-ui/select@1.0.0-rc.4
|
17
|
+
- @saas-ui/stepper@1.0.0-rc.5
|
18
|
+
|
19
|
+
## 1.0.0-rc.10
|
20
|
+
|
21
|
+
### Patch Changes
|
22
|
+
|
23
|
+
- bd3438d: FormStep now supports an onSubmit handler.
|
24
|
+
|
25
|
+
## 1.0.0-rc.9
|
26
|
+
|
27
|
+
### Patch Changes
|
28
|
+
|
29
|
+
- 43dff99: Option labels are now optional.
|
30
|
+
- d4afda3: ArrayFieldRowFields now accepts all FormLayout props (#48).
|
31
|
+
- 43dff99: Field is now correctly typed based on the field type.
|
32
|
+
- 38f7171: #50 - Fixed StepForm render prop types.
|
33
|
+
- Updated dependencies [870db1f]
|
34
|
+
- @saas-ui/button@1.0.0-rc.4
|
35
|
+
- @saas-ui/input-right-button@1.0.0-rc.4
|
36
|
+
- @saas-ui/password-input@1.0.0-rc.4
|
37
|
+
|
38
|
+
## 1.0.0-rc.8
|
39
|
+
|
40
|
+
### Patch Changes
|
41
|
+
|
42
|
+
- dc6376f: Updated all readme files, added better descriptions and links to docs and source code.
|
43
|
+
- 68f5d3b: Removed isPrimary and isSecondary Button properties, use colorScheme="primary" instead.
|
44
|
+
- Updated dependencies [dc6376f]
|
45
|
+
- Updated dependencies [68f5d3b]
|
46
|
+
- @saas-ui/button@1.0.0-rc.3
|
47
|
+
- @saas-ui/input-right-button@1.0.0-rc.3
|
48
|
+
- @saas-ui/number-input@1.0.0-rc.3
|
49
|
+
- @saas-ui/password-input@1.0.0-rc.3
|
50
|
+
- @saas-ui/pin-input@1.0.0-rc.4
|
51
|
+
- @saas-ui/radio@1.0.0-rc.3
|
52
|
+
- @saas-ui/react-utils@1.0.0-rc.3
|
53
|
+
- @saas-ui/select@1.0.0-rc.3
|
54
|
+
- @saas-ui/stepper@1.0.0-rc.4
|
55
|
+
|
56
|
+
## 1.0.0-rc.7
|
57
|
+
|
58
|
+
### Patch Changes
|
59
|
+
|
60
|
+
- Fix vertical orientation for FormStepper.
|
61
|
+
|
62
|
+
## 1.0.0-rc.6
|
63
|
+
|
64
|
+
### Patch Changes
|
65
|
+
|
66
|
+
- Add exports entry for ajv
|
67
|
+
|
68
|
+
## 1.0.0-rc.5
|
69
|
+
|
70
|
+
### Patch Changes
|
71
|
+
|
72
|
+
- fca06e4: Added Json Schema (ajv) support for AutoForm.
|
73
|
+
|
74
|
+
## 1.0.0-rc.4
|
75
|
+
|
76
|
+
### Patch Changes
|
77
|
+
|
78
|
+
- Updated dependencies [9e9c601]
|
79
|
+
- @saas-ui/stepper@1.0.0-rc.3
|
80
|
+
|
81
|
+
## 1.0.0-rc.3
|
82
|
+
|
83
|
+
### Minor Changes
|
84
|
+
|
85
|
+
- 532a7d4: Updated to Chakra UI 2.2.1
|
86
|
+
- 7a16ef7: Updated to Chakra UI 2.2.1
|
87
|
+
|
88
|
+
### Patch Changes
|
89
|
+
|
90
|
+
- 6133901: No longer passing down label to input fields.
|
91
|
+
- ddec417: ArrayField no longer passing down items to the container element.
|
92
|
+
- 5f80cea: AutoForm now renders children.
|
93
|
+
- 532a7d4: Fixed all theme onconsistencies.
|
94
|
+
- 1c247cb: InputField now has type="text" by default.
|
95
|
+
- d1fb472: Select now renders a hidden input with the current value.
|
96
|
+
- Updated dependencies [c8621b8]
|
97
|
+
- Updated dependencies [532a7d4]
|
98
|
+
- Updated dependencies [7a16ef7]
|
99
|
+
- Updated dependencies [532a7d4]
|
100
|
+
- @saas-ui/select@1.0.0-rc.2
|
101
|
+
- @saas-ui/button@1.0.0-rc.2
|
102
|
+
- @saas-ui/input-right-button@1.0.0-rc.2
|
103
|
+
- @saas-ui/number-input@1.0.0-rc.2
|
104
|
+
- @saas-ui/password-input@1.0.0-rc.2
|
105
|
+
- @saas-ui/pin-input@1.0.0-rc.3
|
106
|
+
- @saas-ui/radio@1.0.0-rc.2
|
107
|
+
- @saas-ui/react-utils@1.0.0-rc.2
|
108
|
+
- @saas-ui/stepper@1.0.0-rc.2
|
109
|
+
|
110
|
+
## 1.0.0-rc.2
|
111
|
+
|
112
|
+
### Patch Changes
|
113
|
+
|
114
|
+
- Re-publish.
|
115
|
+
- Updated dependencies
|
116
|
+
- @saas-ui/button@1.0.0-rc.1
|
117
|
+
- @saas-ui/input-right-button@1.0.0-rc.1
|
118
|
+
- @saas-ui/number-input@1.0.0-rc.1
|
119
|
+
- @saas-ui/password-input@1.0.0-rc.1
|
120
|
+
- @saas-ui/pin-input@1.0.0-rc.2
|
121
|
+
- @saas-ui/radio@1.0.0-rc.1
|
122
|
+
- @saas-ui/react-utils@1.0.0-rc.1
|
123
|
+
- @saas-ui/select@1.0.0-rc.1
|
124
|
+
- @saas-ui/stepper@1.0.0-rc.1
|
125
|
+
|
126
|
+
## 1.0.0-rc.1
|
127
|
+
|
128
|
+
### Patch Changes
|
129
|
+
|
130
|
+
- Updated dependencies [3dee538]
|
131
|
+
- @saas-ui/pin-input@1.0.0-rc.1
|
132
|
+
|
3
133
|
## 1.0.0-rc.0
|
4
134
|
|
5
135
|
### Major Changes
|
package/README.md
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# @saas-ui/forms
|
2
|
+
|
3
|
+
Chakra UI Forms.
|
4
|
+
|
5
|
+
Create fully functional React forms with just a few lines of code.
|
6
|
+
|
7
|
+
Uses React Hook Form under the hood.
|
8
|
+
|
9
|
+
## Installation
|
10
|
+
|
11
|
+
```sh
|
12
|
+
$ yarn add @saas-ui/forms
|
13
|
+
|
14
|
+
#or
|
15
|
+
|
16
|
+
$ npm i @saas-ui/forms --save
|
17
|
+
```
|
18
|
+
|
19
|
+
## Docs
|
20
|
+
|
21
|
+
https://www.saas-ui.dev/docs/forms/form
|
22
|
+
|
23
|
+
## Source
|
24
|
+
|
25
|
+
https://github.com/saas-js/saas-ui/tree/next/packages/saas-ui-forms
|
26
|
+
|
27
|
+
## License
|
28
|
+
|
29
|
+
MIT - Appulse Software
|
package/ajv/package.json
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
{
|
2
|
+
"name": "ajv",
|
3
|
+
"description": "Saas UI Forms field resolver: ajv",
|
4
|
+
"version": "1.0.0",
|
5
|
+
"private": true,
|
6
|
+
"source": "./src/index.ts",
|
7
|
+
"main": "../dist/ajv/index.js",
|
8
|
+
"module": "../dist/ajv/index.modern.mjs",
|
9
|
+
"types": "../dist/ajv/index.d.ts",
|
10
|
+
"author": "Eelco Wiersma <eelco@appulse.nl>",
|
11
|
+
"license": "MIT",
|
12
|
+
"peerDependencies": {
|
13
|
+
"@chakra-ui/utils": "^2.0.2",
|
14
|
+
"@hookform/resolvers": "^2.9.0",
|
15
|
+
"react-hook-form": "^7.31.3",
|
16
|
+
"ajv": "^8.11.0"
|
17
|
+
}
|
18
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { ajvResolver } from '@hookform/resolvers/ajv';
|
2
|
+
import { FieldResolver } from '@saas-ui/forms';
|
3
|
+
import { JSONSchemaType } from 'ajv';
|
4
|
+
interface JsonSchemaFormReturn {
|
5
|
+
schema: JSONSchemaType<unknown>;
|
6
|
+
fieldResolver: FieldResolver;
|
7
|
+
resolver: ReturnType<typeof ajvResolver>;
|
8
|
+
}
|
9
|
+
export declare const jsonSchemaForm: (schema: JSONSchemaType<unknown>) => JsonSchemaFormReturn;
|
10
|
+
export {};
|
11
|
+
//# sourceMappingURL=ajv-resolver.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ajv-resolver.d.ts","sourceRoot":"","sources":["../../ajv/src/ajv-resolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AACrD,OAAO,EAAuB,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAEnE,OAAO,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AAMpC,UAAU,oBAAoB;IAC5B,MAAM,EAAE,cAAc,CAAC,OAAO,CAAC,CAAA;IAC/B,aAAa,EAAE,aAAa,CAAA;IAC5B,QAAQ,EAAE,UAAU,CAAC,OAAO,WAAW,CAAC,CAAA;CACzC;AAED,eAAO,MAAM,cAAc,WACjB,eAAe,OAAO,CAAC,KAC9B,oBAMF,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../ajv/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA"}
|