@panneau/forms 4.0.2 → 4.0.4
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 +5 -3
- package/package.json +8 -8
package/es/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
|
-
import React from 'react';
|
|
4
3
|
import { ComponentsProvider, FORMS_NAMESPACE } from '@panneau/core/contexts';
|
|
5
4
|
import formHorizontal from '@panneau/form-horizontal';
|
|
6
5
|
import formInline from '@panneau/form-inline';
|
|
7
6
|
import formNormal from '@panneau/form-normal';
|
|
8
7
|
import formTwoPane from '@panneau/form-two-pane';
|
|
9
8
|
import { ChangePassword, ConfirmPassword, ForgotPassword, Login, Register, ResetPassword, TwoFactorChallenge, TwoFactorDisable, TwoFactorEnable } from '@panneau/form-auth';
|
|
9
|
+
import { jsx } from 'react/jsx-runtime';
|
|
10
10
|
|
|
11
11
|
// Import forms
|
|
12
12
|
|
|
@@ -34,10 +34,12 @@ function FormsProvider(_ref) {
|
|
|
34
34
|
_ref$children = _ref.children,
|
|
35
35
|
children = _ref$children === void 0 ? null : _ref$children,
|
|
36
36
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
37
|
-
return /*#__PURE__*/
|
|
37
|
+
return /*#__PURE__*/jsx(ComponentsProvider, _objectSpread(_objectSpread({
|
|
38
38
|
namespace: FORMS_NAMESPACE,
|
|
39
39
|
components: _objectSpread(_objectSpread({}, components), injectedComponents)
|
|
40
|
-
}, props),
|
|
40
|
+
}, props), {}, {
|
|
41
|
+
children: children
|
|
42
|
+
}));
|
|
41
43
|
}
|
|
42
44
|
|
|
43
45
|
export { FormsProvider as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panneau/forms",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -66,16 +66,16 @@
|
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
68
|
"@babel/runtime": "^7.12.5",
|
|
69
|
-
"@panneau/core": "^4.0.
|
|
70
|
-
"@panneau/form-auth": "^4.0.
|
|
71
|
-
"@panneau/form-horizontal": "^4.0.
|
|
72
|
-
"@panneau/form-inline": "^4.0.
|
|
73
|
-
"@panneau/form-normal": "^4.0.
|
|
74
|
-
"@panneau/form-two-pane": "^4.0.
|
|
69
|
+
"@panneau/core": "^4.0.4",
|
|
70
|
+
"@panneau/form-auth": "^4.0.4",
|
|
71
|
+
"@panneau/form-horizontal": "^4.0.4",
|
|
72
|
+
"@panneau/form-inline": "^4.0.4",
|
|
73
|
+
"@panneau/form-normal": "^4.0.4",
|
|
74
|
+
"@panneau/form-two-pane": "^4.0.4",
|
|
75
75
|
"prop-types": "^15.7.2"
|
|
76
76
|
},
|
|
77
77
|
"publishConfig": {
|
|
78
78
|
"access": "public"
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "e854451a718c6bc7dcde2b804c9913d8ac0297ff"
|
|
81
81
|
}
|