@saas-ui/forms 1.0.0-rc.2 → 1.0.0-rc.5
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +42 -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 +97 -0
- package/dist/ajv/index.js.map +1 -0
- package/dist/ajv/index.modern.mjs +97 -0
- package/dist/ajv/index.modern.mjs.map +1 -0
- package/dist/auto-form.d.ts +13 -1
- package/dist/auto-form.d.ts.map +1 -1
- package/dist/field.d.ts +1 -1
- package/dist/field.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/layout.d.ts +0 -1
- package/dist/layout.d.ts.map +1 -1
- package/dist/step-form.d.ts.map +1 -1
- package/dist/use-step-form.d.ts +1 -1
- package/dist/use-step-form.d.ts.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/package.json +25 -17
- package/src/auto-form.tsx +22 -3
- package/src/field-resolver.ts +2 -2
- package/src/field.tsx +19 -19
- package/src/object-field.tsx +3 -3
- package/src/step-form.tsx +9 -11
- package/src/use-step-form.tsx +3 -2
- package/yup/package.json +2 -2
- package/zod/package.json +4 -4
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,47 @@
|
|
1
1
|
# @saas-ui/forms
|
2
2
|
|
3
|
+
## 1.0.0-rc.5
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- fca06e4: Added Json Schema (ajv) support for AutoForm.
|
8
|
+
|
9
|
+
## 1.0.0-rc.4
|
10
|
+
|
11
|
+
### Patch Changes
|
12
|
+
|
13
|
+
- Updated dependencies [9e9c601]
|
14
|
+
- @saas-ui/stepper@1.0.0-rc.3
|
15
|
+
|
16
|
+
## 1.0.0-rc.3
|
17
|
+
|
18
|
+
### Minor Changes
|
19
|
+
|
20
|
+
- 532a7d4: Updated to Chakra UI 2.2.1
|
21
|
+
- 7a16ef7: Updated to Chakra UI 2.2.1
|
22
|
+
|
23
|
+
### Patch Changes
|
24
|
+
|
25
|
+
- 6133901: No longer passing down label to input fields.
|
26
|
+
- ddec417: ArrayField no longer passing down items to the container element.
|
27
|
+
- 5f80cea: AutoForm now renders children.
|
28
|
+
- 532a7d4: Fixed all theme onconsistencies.
|
29
|
+
- 1c247cb: InputField now has type="text" by default.
|
30
|
+
- d1fb472: Select now renders a hidden input with the current value.
|
31
|
+
- Updated dependencies [c8621b8]
|
32
|
+
- Updated dependencies [532a7d4]
|
33
|
+
- Updated dependencies [7a16ef7]
|
34
|
+
- Updated dependencies [532a7d4]
|
35
|
+
- @saas-ui/select@1.0.0-rc.2
|
36
|
+
- @saas-ui/button@1.0.0-rc.2
|
37
|
+
- @saas-ui/input-right-button@1.0.0-rc.2
|
38
|
+
- @saas-ui/number-input@1.0.0-rc.2
|
39
|
+
- @saas-ui/password-input@1.0.0-rc.2
|
40
|
+
- @saas-ui/pin-input@1.0.0-rc.3
|
41
|
+
- @saas-ui/radio@1.0.0-rc.2
|
42
|
+
- @saas-ui/react-utils@1.0.0-rc.2
|
43
|
+
- @saas-ui/stepper@1.0.0-rc.2
|
44
|
+
|
3
45
|
## 1.0.0-rc.2
|
4
46
|
|
5
47
|
### Patch Changes
|
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"}
|