@panneau/forms 3.0.308 → 4.0.0

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 +6 -16
  2. package/package.json +8 -8
package/es/index.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import _objectSpread from '@babel/runtime/helpers/objectSpread2';
2
2
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
3
- import PropTypes from 'prop-types';
4
3
  import React from 'react';
5
4
  import { ComponentsProvider, FORMS_NAMESPACE } from '@panneau/core/contexts';
6
5
  import formHorizontal from '@panneau/form-horizontal';
@@ -29,25 +28,16 @@ var components = /*#__PURE__*/Object.freeze({
29
28
  });
30
29
 
31
30
  var _excluded = ["components", "children"];
32
- var propTypes = {
33
- components: PropTypes.object,
34
- // eslint-disable-line
35
- children: PropTypes.node
36
- };
37
- var defaultProps = {
38
- components: null,
39
- children: null
40
- };
41
- var FormsProvider = function FormsProvider(_ref) {
42
- var injectedComponents = _ref.components,
43
- children = _ref.children,
31
+ function FormsProvider(_ref) {
32
+ var _ref$components = _ref.components,
33
+ injectedComponents = _ref$components === void 0 ? null : _ref$components,
34
+ _ref$children = _ref.children,
35
+ children = _ref$children === void 0 ? null : _ref$children,
44
36
  props = _objectWithoutProperties(_ref, _excluded);
45
37
  return /*#__PURE__*/React.createElement(ComponentsProvider, Object.assign({
46
38
  namespace: FORMS_NAMESPACE,
47
39
  components: _objectSpread(_objectSpread({}, components), injectedComponents)
48
40
  }, props), children);
49
- };
50
- FormsProvider.propTypes = propTypes;
51
- FormsProvider.defaultProps = defaultProps;
41
+ }
52
42
 
53
43
  export { FormsProvider as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/forms",
3
- "version": "3.0.308",
3
+ "version": "4.0.0",
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": "^3.0.307",
70
- "@panneau/form-auth": "^3.0.308",
71
- "@panneau/form-horizontal": "^3.0.308",
72
- "@panneau/form-inline": "^3.0.308",
73
- "@panneau/form-normal": "^3.0.308",
74
- "@panneau/form-two-pane": "^3.0.308",
69
+ "@panneau/core": "^4.0.0",
70
+ "@panneau/form-auth": "^4.0.0",
71
+ "@panneau/form-horizontal": "^4.0.0",
72
+ "@panneau/form-inline": "^4.0.0",
73
+ "@panneau/form-normal": "^4.0.0",
74
+ "@panneau/form-two-pane": "^4.0.0",
75
75
  "prop-types": "^15.7.2"
76
76
  },
77
77
  "publishConfig": {
78
78
  "access": "public"
79
79
  },
80
- "gitHead": "8711276a09fcda499a4a2f206554f9cd995976f5"
80
+ "gitHead": "2cca874e0388b4a20c39aadb205c0e67d5a946fc"
81
81
  }