@panneau/forms 1.0.0-alpha.23 → 1.0.0-alpha.231
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/es/index.js +1 -1
- package/lib/index.js +9 -7
- package/package.json +11 -11
package/es/index.js
CHANGED
package/lib/index.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
3
5
|
var React = require('react');
|
|
4
6
|
var PropTypes = require('prop-types');
|
|
5
7
|
var contexts = require('@panneau/core/contexts');
|
|
@@ -21,22 +23,22 @@ var formTwoPane__default = /*#__PURE__*/_interopDefaultLegacy(formTwoPane);
|
|
|
21
23
|
|
|
22
24
|
var components = /*#__PURE__*/Object.freeze({
|
|
23
25
|
__proto__: null,
|
|
24
|
-
Normal: formNormal__default[
|
|
25
|
-
Inline: formInline__default[
|
|
26
|
-
Horizontal: formHorizontal__default[
|
|
27
|
-
TwoPane: formTwoPane__default[
|
|
26
|
+
Normal: formNormal__default["default"],
|
|
27
|
+
Inline: formInline__default["default"],
|
|
28
|
+
Horizontal: formHorizontal__default["default"],
|
|
29
|
+
TwoPane: formTwoPane__default["default"]
|
|
28
30
|
});
|
|
29
31
|
|
|
30
32
|
/* eslint-disable react/jsx-props-no-spreading */
|
|
31
33
|
var propTypes = {
|
|
32
|
-
children: PropTypes__default[
|
|
34
|
+
children: PropTypes__default["default"].node
|
|
33
35
|
};
|
|
34
36
|
var defaultProps = {
|
|
35
37
|
children: null
|
|
36
38
|
};
|
|
37
39
|
|
|
38
40
|
var FormsProvider = function FormsProvider(props) {
|
|
39
|
-
return /*#__PURE__*/React__default[
|
|
41
|
+
return /*#__PURE__*/React__default["default"].createElement(contexts.ComponentsProvider, Object.assign({
|
|
40
42
|
namespace: contexts.FORMS_NAMESPACE,
|
|
41
43
|
components: components
|
|
42
44
|
}, props));
|
|
@@ -45,4 +47,4 @@ var FormsProvider = function FormsProvider(props) {
|
|
|
45
47
|
FormsProvider.propTypes = propTypes;
|
|
46
48
|
FormsProvider.defaultProps = defaultProps;
|
|
47
49
|
|
|
48
|
-
|
|
50
|
+
exports["default"] = FormsProvider;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panneau/forms",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.231",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -44,24 +44,24 @@
|
|
|
44
44
|
"prepare": "../../scripts/prepare-package.sh --scss"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"react": "^16.8.0",
|
|
48
|
-
"react-dom": "^16.8.0"
|
|
47
|
+
"react": "^16.8.0 || ^17.0.0",
|
|
48
|
+
"react-dom": "^16.8.0 || ^17.0.0"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"react": "^16.8.0",
|
|
52
|
-
"react-dom": "^16.8.0"
|
|
51
|
+
"react": "^16.8.0 || ^17.0.0",
|
|
52
|
+
"react-dom": "^16.8.0 || ^17.0.0"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@babel/runtime": "^7.12.5",
|
|
56
|
-
"@panneau/core": "^1.0.0-alpha.
|
|
57
|
-
"@panneau/form-horizontal": "^1.0.0-alpha.
|
|
58
|
-
"@panneau/form-inline": "^1.0.0-alpha.
|
|
59
|
-
"@panneau/form-normal": "^1.0.0-alpha.
|
|
60
|
-
"@panneau/form-two-pane": "^1.0.0-alpha.
|
|
56
|
+
"@panneau/core": "^1.0.0-alpha.231",
|
|
57
|
+
"@panneau/form-horizontal": "^1.0.0-alpha.231",
|
|
58
|
+
"@panneau/form-inline": "^1.0.0-alpha.231",
|
|
59
|
+
"@panneau/form-normal": "^1.0.0-alpha.231",
|
|
60
|
+
"@panneau/form-two-pane": "^1.0.0-alpha.231",
|
|
61
61
|
"prop-types": "^15.7.2"
|
|
62
62
|
},
|
|
63
63
|
"publishConfig": {
|
|
64
64
|
"access": "public"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "74eccc596298a471a8985fe2cccf4a201dd18349"
|
|
67
67
|
}
|