@saas-ui/forms 0.1.6 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +43 -0
- 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.js +1 -1
- package/dist/index.modern.js.map +1 -1
- package/package.json +17 -13
- package/src/field.tsx +1 -3
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@saas-ui/forms",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.2.0",
|
4
4
|
"description": "Theme and components agnostic SaasProvider",
|
5
5
|
"source": "src/index.ts",
|
6
6
|
"exports": {
|
@@ -8,6 +8,10 @@
|
|
8
8
|
"require": "./dist/index.js",
|
9
9
|
"default": "./dist/index.modern.js"
|
10
10
|
},
|
11
|
+
"./resolvers/yup": {
|
12
|
+
"require": "./dist/resolvers/yup.js",
|
13
|
+
"default": "./dist/resolvers/yup.modern.js"
|
14
|
+
},
|
11
15
|
"./src": {
|
12
16
|
"default": "./src/index.ts"
|
13
17
|
}
|
@@ -35,7 +39,7 @@
|
|
35
39
|
"homepage": "https://saas-ui.dev/",
|
36
40
|
"repository": {
|
37
41
|
"type": "git",
|
38
|
-
"url": "https://github.com/
|
42
|
+
"url": "https://github.com/saas-js/saas-ui",
|
39
43
|
"directory": "packages/saas-ui-forms"
|
40
44
|
},
|
41
45
|
"keywords": [
|
@@ -58,22 +62,22 @@
|
|
58
62
|
"url": "https://storybook.saas-ui.dev"
|
59
63
|
},
|
60
64
|
"dependencies": {
|
65
|
+
"@chakra-ui/icons": "^1.1.1",
|
66
|
+
"@chakra-ui/react-utils": "^1.2.1",
|
61
67
|
"@hookform/resolvers": "^2.8.3",
|
62
|
-
"@saas-ui/button": "0.
|
63
|
-
"@saas-ui/input-right-button": "0.
|
64
|
-
"@saas-ui/number-input": "0.
|
65
|
-
"@saas-ui/password-input": "0.
|
66
|
-
"@saas-ui/pin-input": "0.
|
67
|
-
"@saas-ui/radio": "0.
|
68
|
-
"@saas-ui/select": "0.
|
68
|
+
"@saas-ui/button": "0.2.0",
|
69
|
+
"@saas-ui/input-right-button": "0.2.0",
|
70
|
+
"@saas-ui/number-input": "0.2.0",
|
71
|
+
"@saas-ui/password-input": "0.2.0",
|
72
|
+
"@saas-ui/pin-input": "0.2.0",
|
73
|
+
"@saas-ui/radio": "0.2.0",
|
74
|
+
"@saas-ui/select": "0.2.0",
|
69
75
|
"react-hook-form": "^7.22.0"
|
70
76
|
},
|
71
77
|
"peerDependencies": {
|
72
|
-
"@chakra-ui/react": ">=1.
|
78
|
+
"@chakra-ui/react": ">=1.8.0",
|
73
79
|
"@chakra-ui/system": ">=1.0.0",
|
74
|
-
"react": ">=16.8.6"
|
75
|
-
},
|
76
|
-
"optionalDependencies": {
|
80
|
+
"react": ">=16.8.6",
|
77
81
|
"yup": "^0.32.11"
|
78
82
|
}
|
79
83
|
}
|
package/src/field.tsx
CHANGED
@@ -142,7 +142,6 @@ const createField = (
|
|
142
142
|
isInvalid,
|
143
143
|
isReadOnly,
|
144
144
|
isRequired,
|
145
|
-
isOptional,
|
146
145
|
variant,
|
147
146
|
...inputProps
|
148
147
|
} = props
|
@@ -151,11 +150,10 @@ const createField = (
|
|
151
150
|
<BaseField
|
152
151
|
label={label}
|
153
152
|
hideLabel={hideLabel}
|
154
|
-
|
153
|
+
isDisabled={isDisabled}
|
155
154
|
isInvalid={isInvalid}
|
156
155
|
isReadOnly={isReadOnly}
|
157
156
|
isRequired={isRequired}
|
158
|
-
isOptional={isOptional}
|
159
157
|
variant={variant}
|
160
158
|
>
|
161
159
|
<InputComponent ref={ref} label={label} {...inputProps} />
|