@saas-ui/react 0.12.0-next.1 → 0.12.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/CHANGELOG.md +51 -35
  2. package/package.json +24 -24
package/CHANGELOG.md CHANGED
@@ -1,64 +1,80 @@
1
1
  # @saas-ui/react
2
2
 
3
- ## 0.12.0-next.1
3
+ ## 0.12.1
4
4
 
5
5
  ### Patch Changes
6
6
 
7
+ - Fixed issue where the ModalFooter would not render.
7
8
  - Updated dependencies
8
- - @saas-ui/forms@0.6.0-next.1
9
- - @saas-ui/auth@0.7.0-next.1
10
- - @saas-ui/modals@0.4.0-next.1
9
+ - @saas-ui/modals@0.4.1
11
10
 
12
- ## 0.12.0-next.0
11
+ ## 0.12.0
13
12
 
14
13
  ### Minor Changes
15
14
 
16
- - 9391c44: BREAKING: Removed yup dependency from forms and fixed peer dependency issues.
15
+ - 0e81abd: BREAKING: Removed Yup dependency, you now need to configure default Form resolvers
17
16
 
18
- <Form> doesn't accept a Yup `schema` any more by default.
17
+ <Form> no longer accepts a Yup `schema` by default.
19
18
 
20
19
  Use a schema resolver to use schema support. All hookform resolvers are supported.
21
20
 
22
- ```
23
- import {yupResolver} from '@hookform/resolvers/yup'
21
+ ```ts
22
+ import { yupResolver } from '@hookform/resolvers/yup'
24
23
 
25
- <Form resolver={yupResolver(schema)} />
24
+ const form = <Form resolver={yupResolver(schema)} />
26
25
  ```
27
26
 
28
27
  AutoForm only supports Yup for now and has a new API.
29
28
 
30
- ```
29
+ ```ts
31
30
  import { yupForm } from '@saas-ui/forms/yup'
32
31
 
33
- <AutoForm {...yupForm(schema)} />
32
+ const form = <AutoForm {...yupForm(schema)} />
34
33
  ```
35
34
 
35
+ Alternatively you can configure a default resolver for all forms.
36
+ Add this somewhere in the root of your project.
37
+
38
+ ```ts
39
+ import { Form } from '@saas-ui/react'
40
+ import { yupResolver, yupFieldResolver } from '@saas-ui/forms/yup' // yupResolver is exported from here as well for convenience.
41
+ import { AnyObjectSchema } from 'yup'
42
+
43
+ Form.getResolver = (schema: AnyObjectSchema) => yupResolver(schema) // @hookform/resolvers
44
+ Form.getFieldResolver = (schema: AnyObjectSchema) => yupFieldResolver(schema) // AutoForm field resolver
45
+ ```
46
+
47
+ - 9391c44: Fixed peer dependency issues.
48
+
36
49
  ### Patch Changes
37
50
 
51
+ - bf66fdf: Improved Auth forms types
52
+ - Updated dependencies [0e81abd]
53
+ - Updated dependencies [bf66fdf]
38
54
  - Updated dependencies [9391c44]
39
- - @saas-ui/auth@0.7.0-next.0
40
- - @saas-ui/button@0.4.0-next.0
41
- - @saas-ui/card@0.4.0-next.0
42
- - @saas-ui/data-table@0.3.0-next.0
43
- - @saas-ui/forms@0.6.0-next.0
44
- - @saas-ui/hooks@0.4.0-next.0
45
- - @saas-ui/hotkeys@0.5.0-next.0
46
- - @saas-ui/layout@0.3.0-next.0
47
- - @saas-ui/list@0.5.0-next.0
48
- - @saas-ui/menu@0.5.0-next.0
49
- - @saas-ui/modals@0.4.0-next.0
50
- - @saas-ui/nprogress@0.4.0-next.0
51
- - @saas-ui/persona@0.5.0-next.0
52
- - @saas-ui/search-input@0.5.0-next.0
53
- - @saas-ui/select@0.4.0-next.0
54
- - @saas-ui/snackbar@0.4.0-next.0
55
- - @saas-ui/stepper@0.2.0-next.0
56
- - @saas-ui/theme@0.7.0-next.0
57
- - @saas-ui/banner@0.0.2-next.0
58
- - @saas-ui/input-right-button@0.3.1-next.0
59
- - @saas-ui/property@0.3.1-next.0
60
- - @saas-ui/provider@0.3.5-next.0
61
- - @saas-ui/password-input@0.3.1-next.0
55
+ - @saas-ui/forms@0.6.0
56
+ - @saas-ui/auth@0.7.0
57
+ - @saas-ui/button@0.4.0
58
+ - @saas-ui/card@0.4.0
59
+ - @saas-ui/data-table@0.3.0
60
+ - @saas-ui/hooks@0.4.0
61
+ - @saas-ui/hotkeys@0.5.0
62
+ - @saas-ui/layout@0.3.0
63
+ - @saas-ui/list@0.5.0
64
+ - @saas-ui/menu@0.5.0
65
+ - @saas-ui/modals@0.4.0
66
+ - @saas-ui/nprogress@0.4.0
67
+ - @saas-ui/persona@0.5.0
68
+ - @saas-ui/search-input@0.5.0
69
+ - @saas-ui/select@0.4.0
70
+ - @saas-ui/snackbar@0.4.0
71
+ - @saas-ui/stepper@0.2.0
72
+ - @saas-ui/theme@0.7.0
73
+ - @saas-ui/banner@0.0.2
74
+ - @saas-ui/input-right-button@0.3.1
75
+ - @saas-ui/property@0.3.1
76
+ - @saas-ui/provider@0.3.5
77
+ - @saas-ui/password-input@0.3.1
62
78
 
63
79
  ## 0.11.8
64
80
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saas-ui/react",
3
- "version": "0.12.0-next.1",
3
+ "version": "0.12.1",
4
4
  "description": "Saas UI - The frontend stack for SaaS companies.",
5
5
  "source": "src/index.ts",
6
6
  "exports": {
@@ -55,34 +55,34 @@
55
55
  "url": "https://storybook.saas-ui.dev"
56
56
  },
57
57
  "dependencies": {
58
- "@saas-ui/auth": "0.7.0-next.1",
59
- "@saas-ui/banner": "0.0.2-next.0",
60
- "@saas-ui/button": "0.4.0-next.0",
61
- "@saas-ui/card": "0.4.0-next.0",
58
+ "@saas-ui/auth": "0.7.0",
59
+ "@saas-ui/banner": "0.0.2",
60
+ "@saas-ui/button": "0.4.0",
61
+ "@saas-ui/card": "0.4.0",
62
62
  "@saas-ui/collapse": "0.3.0",
63
- "@saas-ui/data-table": "0.3.0-next.0",
64
- "@saas-ui/forms": "0.6.0-next.1",
65
- "@saas-ui/hooks": "0.4.0-next.0",
66
- "@saas-ui/hotkeys": "0.5.0-next.0",
67
- "@saas-ui/input-right-button": "0.3.1-next.0",
68
- "@saas-ui/layout": "0.3.0-next.0",
69
- "@saas-ui/list": "0.5.0-next.0",
70
- "@saas-ui/menu": "0.5.0-next.0",
71
- "@saas-ui/modals": "0.4.0-next.1",
72
- "@saas-ui/nprogress": "0.4.0-next.0",
63
+ "@saas-ui/data-table": "0.3.0",
64
+ "@saas-ui/forms": "0.6.0",
65
+ "@saas-ui/hooks": "0.4.0",
66
+ "@saas-ui/hotkeys": "0.5.0",
67
+ "@saas-ui/input-right-button": "0.3.1",
68
+ "@saas-ui/layout": "0.3.0",
69
+ "@saas-ui/list": "0.5.0",
70
+ "@saas-ui/menu": "0.5.0",
71
+ "@saas-ui/modals": "0.4.1",
72
+ "@saas-ui/nprogress": "0.4.0",
73
73
  "@saas-ui/number-input": "0.3.0",
74
74
  "@saas-ui/palette": "0.5.0",
75
- "@saas-ui/password-input": "0.3.1-next.0",
76
- "@saas-ui/persona": "0.5.0-next.0",
75
+ "@saas-ui/password-input": "0.3.1",
76
+ "@saas-ui/persona": "0.5.0",
77
77
  "@saas-ui/pin-input": "0.3.0",
78
- "@saas-ui/property": "0.3.1-next.0",
79
- "@saas-ui/provider": "0.3.5-next.0",
78
+ "@saas-ui/property": "0.3.1",
79
+ "@saas-ui/provider": "0.3.5",
80
80
  "@saas-ui/radio": "0.3.0",
81
- "@saas-ui/search-input": "0.5.0-next.0",
82
- "@saas-ui/select": "0.4.0-next.0",
83
- "@saas-ui/snackbar": "0.4.0-next.0",
84
- "@saas-ui/stepper": "0.2.0-next.0",
85
- "@saas-ui/theme": "0.7.0-next.0"
81
+ "@saas-ui/search-input": "0.5.0",
82
+ "@saas-ui/select": "0.4.0",
83
+ "@saas-ui/snackbar": "0.4.0",
84
+ "@saas-ui/stepper": "0.2.0",
85
+ "@saas-ui/theme": "0.7.0"
86
86
  },
87
87
  "peerDependencies": {
88
88
  "@chakra-ui/react": ">=1.8.0",