@saas-ui/react 2.8.4 → 2.8.5
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +17 -5
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# @saas-ui/react
|
2
2
|
|
3
|
+
## 2.8.5
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- 29c6fea: Fixed issue where hideLabel would not be passed to base field
|
8
|
+
- b6ce1bf: Fixed return type of useFormContext
|
9
|
+
- Updated dependencies [29c6fea]
|
10
|
+
- Updated dependencies [b6ce1bf]
|
11
|
+
- @saas-ui/forms@2.6.5
|
12
|
+
- @saas-ui/modals@2.1.35
|
13
|
+
- @saas-ui/data-table@10.0.5
|
14
|
+
|
3
15
|
## 2.8.4
|
4
16
|
|
5
17
|
### Patch Changes
|
@@ -2774,12 +2786,12 @@
|
|
2774
2786
|
Add this somewhere in the root of your project.
|
2775
2787
|
|
2776
2788
|
```ts
|
2777
|
-
import { Form } from
|
2778
|
-
import { yupResolver, yupFieldResolver } from
|
2779
|
-
import { AnyObjectSchema } from
|
2789
|
+
import { Form } from '@saas-ui/react'
|
2790
|
+
import { yupResolver, yupFieldResolver } from '@saas-ui/forms/yup' // yupResolver is exported from here as well for convenience.
|
2791
|
+
import { AnyObjectSchema } from 'yup'
|
2780
2792
|
|
2781
|
-
Form.getResolver = (schema: AnyObjectSchema) => yupResolver(schema)
|
2782
|
-
Form.getFieldResolver = (schema: AnyObjectSchema) => yupFieldResolver(schema)
|
2793
|
+
Form.getResolver = (schema: AnyObjectSchema) => yupResolver(schema) // @hookform/resolvers
|
2794
|
+
Form.getFieldResolver = (schema: AnyObjectSchema) => yupFieldResolver(schema) // AutoForm field resolver
|
2783
2795
|
```
|
2784
2796
|
|
2785
2797
|
- 9391c44: Fixed peer dependency issues.
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@saas-ui/react",
|
3
|
-
"version": "2.8.
|
3
|
+
"version": "2.8.5",
|
4
4
|
"description": "Saas UI - The React component library for startups.",
|
5
5
|
"source": "src/index.ts",
|
6
6
|
"exports": {
|
@@ -61,11 +61,11 @@
|
|
61
61
|
"@chakra-ui/system": "^2.6.2",
|
62
62
|
"@chakra-ui/utils": "^2.0.15",
|
63
63
|
"@saas-ui/core": "2.5.3",
|
64
|
-
"@saas-ui/data-table": "10.0.
|
65
|
-
"@saas-ui/forms": "2.6.
|
64
|
+
"@saas-ui/data-table": "10.0.5",
|
65
|
+
"@saas-ui/forms": "2.6.5",
|
66
66
|
"@saas-ui/hooks": "2.0.3",
|
67
67
|
"@saas-ui/hotkeys": "2.2.11",
|
68
|
-
"@saas-ui/modals": "2.1.
|
68
|
+
"@saas-ui/modals": "2.1.35",
|
69
69
|
"@saas-ui/nprogress": "2.0.3",
|
70
70
|
"@saas-ui/theme": "2.4.1"
|
71
71
|
},
|