@saas-ui/react 0.12.0-next.2 → 0.12.2

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