@danderson00/react-forms-material 0.0.27 → 0.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +14 -1
- package/package.json +7 -7
- package/src/index.js +2 -2
package/dist/index.js
CHANGED
|
@@ -3,7 +3,14 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.Form = exports.ErrorMessage = exports.Checkbox = exports.Button = void 0;
|
|
7
|
+
Object.defineProperty(exports, "Group", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function get() {
|
|
10
|
+
return _reactForms.Group;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
exports.Text = exports.Submit = exports.Select = exports.RadioButton = exports.Radio = exports.Input = void 0;
|
|
7
14
|
Object.defineProperty(exports, "useFormValues", {
|
|
8
15
|
enumerable: true,
|
|
9
16
|
get: function get() {
|
|
@@ -11,6 +18,12 @@ Object.defineProperty(exports, "useFormValues", {
|
|
|
11
18
|
}
|
|
12
19
|
});
|
|
13
20
|
exports.wrapField = void 0;
|
|
21
|
+
Object.defineProperty(exports, "wrapInput", {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function get() {
|
|
24
|
+
return _reactForms.wrapInput;
|
|
25
|
+
}
|
|
26
|
+
});
|
|
14
27
|
|
|
15
28
|
var _react = require("react");
|
|
16
29
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@danderson00/react-forms-material",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.30",
|
|
4
4
|
"description": "Beautiful, ultra simple, stateless, validated forms for use in React function components",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "src/index.js",
|
|
@@ -10,23 +10,23 @@
|
|
|
10
10
|
"prepare": "babel src --source-maps false --out-dir dist"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@danderson00/react-forms": "0.0.
|
|
13
|
+
"@danderson00/react-forms": "0.0.30",
|
|
14
14
|
"@material-ui/core": "^4.11.3"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
|
-
"react": "
|
|
17
|
+
"react": "*"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@babel/cli": "^7.4.4",
|
|
21
21
|
"@babel/core": "^7.4.4",
|
|
22
22
|
"@babel/preset-env": "^7.4.4",
|
|
23
23
|
"@babel/preset-react": "^7.0.0",
|
|
24
|
-
"babel-jest": "26.6.
|
|
24
|
+
"babel-jest": "26.6.3",
|
|
25
25
|
"enzyme": "^3.9.0",
|
|
26
26
|
"enzyme-adapter-react-16": "^1.9.1",
|
|
27
|
-
"jest": "26.6.
|
|
28
|
-
"react": "^17.0.
|
|
29
|
-
"react-dom": "^17.0.
|
|
27
|
+
"jest": "26.6.3",
|
|
28
|
+
"react" : "^17.0.2",
|
|
29
|
+
"react-dom": "^17.0.2"
|
|
30
30
|
},
|
|
31
31
|
"jest": {
|
|
32
32
|
"moduleNameMapper": {
|
package/src/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createElement } from 'react'
|
|
2
|
-
import { FormProvider, context, createRawConsumer, wrapInput, wrapSubmit, useFormValues } from '@danderson00/react-forms'
|
|
2
|
+
import { FormProvider, Group, context, createRawConsumer, wrapInput, wrapSubmit, useFormValues } from '@danderson00/react-forms'
|
|
3
3
|
import { extractErrorMessage } from '@danderson00/react-forms/dist/ErrorMessage'
|
|
4
4
|
import MuiButton from '@material-ui/core/Button'
|
|
5
5
|
import MuiCheckbox from '@material-ui/core/Checkbox'
|
|
@@ -17,7 +17,7 @@ export const ErrorMessage = ({ error }) => createElement(MuiFormHelperText, { ch
|
|
|
17
17
|
export const Form = FormProvider(context.Provider, { margin: 'dense' }, ErrorMessage)
|
|
18
18
|
export const Submit = wrapSubmit(MuiButton)
|
|
19
19
|
export const Button = MuiButton
|
|
20
|
-
export { useFormValues }
|
|
20
|
+
export { useFormValues, Group, wrapInput }
|
|
21
21
|
|
|
22
22
|
const wrapped = (component, options, baseOptions) => wrapInput(
|
|
23
23
|
base(component, options, baseOptions),
|