@panneau/forms 3.0.120 → 3.0.127

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 (3) hide show
  1. package/es/index.js +5 -5
  2. package/lib/index.js +11 -22
  3. package/package.json +10 -9
package/es/index.js CHANGED
@@ -13,19 +13,19 @@ import { ChangePassword, ConfirmPassword, ForgotPassword, Login, Register, Reset
13
13
 
14
14
  var components = /*#__PURE__*/Object.freeze({
15
15
  __proto__: null,
16
- Horizontal: formHorizontal,
17
- Inline: formInline,
18
- Normal: formNormal,
19
- TwoPane: formTwoPane,
20
16
  ChangePassword: ChangePassword,
21
17
  ConfirmPassword: ConfirmPassword,
22
18
  ForgotPassword: ForgotPassword,
19
+ Horizontal: formHorizontal,
20
+ Inline: formInline,
23
21
  Login: Login,
22
+ Normal: formNormal,
24
23
  Register: Register,
25
24
  ResetPassword: ResetPassword,
26
25
  TwoFactorChallenge: TwoFactorChallenge,
27
26
  TwoFactorDisable: TwoFactorDisable,
28
- TwoFactorEnable: TwoFactorEnable
27
+ TwoFactorEnable: TwoFactorEnable,
28
+ TwoPane: formTwoPane
29
29
  });
30
30
 
31
31
  var _excluded = ["components", "children"];
package/lib/index.js CHANGED
@@ -13,41 +13,30 @@ var formNormal = require('@panneau/form-normal');
13
13
  var formTwoPane = require('@panneau/form-two-pane');
14
14
  var formAuth = require('@panneau/form-auth');
15
15
 
16
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
17
-
18
- var _objectSpread__default = /*#__PURE__*/_interopDefaultLegacy(_objectSpread);
19
- var _objectWithoutProperties__default = /*#__PURE__*/_interopDefaultLegacy(_objectWithoutProperties);
20
- var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
21
- var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
22
- var formHorizontal__default = /*#__PURE__*/_interopDefaultLegacy(formHorizontal);
23
- var formInline__default = /*#__PURE__*/_interopDefaultLegacy(formInline);
24
- var formNormal__default = /*#__PURE__*/_interopDefaultLegacy(formNormal);
25
- var formTwoPane__default = /*#__PURE__*/_interopDefaultLegacy(formTwoPane);
26
-
27
16
  // Import forms
28
17
 
29
18
  var components = /*#__PURE__*/Object.freeze({
30
19
  __proto__: null,
31
- Horizontal: formHorizontal__default["default"],
32
- Inline: formInline__default["default"],
33
- Normal: formNormal__default["default"],
34
- TwoPane: formTwoPane__default["default"],
35
20
  ChangePassword: formAuth.ChangePassword,
36
21
  ConfirmPassword: formAuth.ConfirmPassword,
37
22
  ForgotPassword: formAuth.ForgotPassword,
23
+ Horizontal: formHorizontal,
24
+ Inline: formInline,
38
25
  Login: formAuth.Login,
26
+ Normal: formNormal,
39
27
  Register: formAuth.Register,
40
28
  ResetPassword: formAuth.ResetPassword,
41
29
  TwoFactorChallenge: formAuth.TwoFactorChallenge,
42
30
  TwoFactorDisable: formAuth.TwoFactorDisable,
43
- TwoFactorEnable: formAuth.TwoFactorEnable
31
+ TwoFactorEnable: formAuth.TwoFactorEnable,
32
+ TwoPane: formTwoPane
44
33
  });
45
34
 
46
35
  var _excluded = ["components", "children"];
47
36
  var propTypes = {
48
- components: PropTypes__default["default"].object,
37
+ components: PropTypes.object,
49
38
  // eslint-disable-line
50
- children: PropTypes__default["default"].node
39
+ children: PropTypes.node
51
40
  };
52
41
  var defaultProps = {
53
42
  components: null,
@@ -56,14 +45,14 @@ var defaultProps = {
56
45
  var FormsProvider = function FormsProvider(_ref) {
57
46
  var injectedComponents = _ref.components,
58
47
  children = _ref.children,
59
- props = _objectWithoutProperties__default["default"](_ref, _excluded);
60
- return /*#__PURE__*/React__default["default"].createElement(contexts.ComponentsProvider, Object.assign({
48
+ props = _objectWithoutProperties(_ref, _excluded);
49
+ return /*#__PURE__*/React.createElement(contexts.ComponentsProvider, Object.assign({
61
50
  namespace: contexts.FORMS_NAMESPACE,
62
- components: _objectSpread__default["default"](_objectSpread__default["default"]({}, components), injectedComponents)
51
+ components: _objectSpread(_objectSpread({}, components), injectedComponents)
63
52
  }, props), children);
64
53
  };
65
54
  FormsProvider.propTypes = propTypes;
66
55
  FormsProvider.defaultProps = defaultProps;
67
56
  var FormsProvider$1 = FormsProvider;
68
57
 
69
- exports["default"] = FormsProvider$1;
58
+ exports.default = FormsProvider$1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/forms",
3
- "version": "3.0.120",
3
+ "version": "3.0.127",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -53,7 +53,8 @@
53
53
  "scripts": {
54
54
  "scss": "../../scripts/build-packages-styles.js --pattern='@panneau/form-*' ./src/styles.scss.ejs ./scss/styles.scss",
55
55
  "css": "../../scripts/build-sass.js ./scss/styles.scss ./assets/css/styles.css",
56
- "prepare": "../../scripts/prepare-package.sh && npm run scss && npm run css"
56
+ "prepublishOnly": "npm run build",
57
+ "build": "../../scripts/prepare-package.sh && npm run scss && npm run css"
57
58
  },
58
59
  "devDependencies": {
59
60
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
@@ -65,16 +66,16 @@
65
66
  },
66
67
  "dependencies": {
67
68
  "@babel/runtime": "^7.12.5",
68
- "@panneau/core": "^3.0.119",
69
- "@panneau/form-auth": "^3.0.120",
70
- "@panneau/form-horizontal": "^3.0.120",
71
- "@panneau/form-inline": "^3.0.120",
72
- "@panneau/form-normal": "^3.0.120",
73
- "@panneau/form-two-pane": "^3.0.120",
69
+ "@panneau/core": "^3.0.126",
70
+ "@panneau/form-auth": "^3.0.127",
71
+ "@panneau/form-horizontal": "^3.0.127",
72
+ "@panneau/form-inline": "^3.0.127",
73
+ "@panneau/form-normal": "^3.0.127",
74
+ "@panneau/form-two-pane": "^3.0.127",
74
75
  "prop-types": "^15.7.2"
75
76
  },
76
77
  "publishConfig": {
77
78
  "access": "public"
78
79
  },
79
- "gitHead": "1ab504501bdbb268e3fe1f7aef94294897203518"
80
+ "gitHead": "7bf824aaa232f4d9ba161f406213b9384cabf8ba"
80
81
  }