@panneau/forms 4.0.1 → 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.
Files changed (2) hide show
  1. package/es/index.js +5 -3
  2. 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__*/React.createElement(ComponentsProvider, Object.assign({
37
+ return /*#__PURE__*/jsx(ComponentsProvider, _objectSpread(_objectSpread({
38
38
  namespace: FORMS_NAMESPACE,
39
39
  components: _objectSpread(_objectSpread({}, components), injectedComponents)
40
- }, props), children);
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.1",
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.1",
70
- "@panneau/form-auth": "^4.0.1",
71
- "@panneau/form-horizontal": "^4.0.1",
72
- "@panneau/form-inline": "^4.0.1",
73
- "@panneau/form-normal": "^4.0.1",
74
- "@panneau/form-two-pane": "^4.0.1",
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": "dbdf65640625c027ecd56cf2b816b80a5c38cb8d"
80
+ "gitHead": "e854451a718c6bc7dcde2b804c9913d8ac0297ff"
81
81
  }