@panneau/forms 1.0.0-y.0 → 1.0.3-alpha.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 (3) hide show
  1. package/es/index.js +5 -5
  2. package/lib/index.js +13 -11
  3. package/package.json +11 -11
package/es/index.js CHANGED
@@ -1,18 +1,18 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { ComponentsProvider, FORMS_NAMESPACE } from '@panneau/core/contexts';
4
- import formNormal from '@panneau/form-normal';
5
- import formInline from '@panneau/form-inline';
6
4
  import formHorizontal from '@panneau/form-horizontal';
5
+ import formInline from '@panneau/form-inline';
6
+ import formNormal from '@panneau/form-normal';
7
7
  import formTwoPane from '@panneau/form-two-pane';
8
8
 
9
9
  // Import forms
10
10
 
11
11
  var components = /*#__PURE__*/Object.freeze({
12
12
  __proto__: null,
13
- Normal: formNormal,
14
- Inline: formInline,
15
13
  Horizontal: formHorizontal,
14
+ Inline: formInline,
15
+ Normal: formNormal,
16
16
  TwoPane: formTwoPane
17
17
  });
18
18
 
@@ -34,4 +34,4 @@ var FormsProvider = function FormsProvider(props) {
34
34
  FormsProvider.propTypes = propTypes;
35
35
  FormsProvider.defaultProps = defaultProps;
36
36
 
37
- export default FormsProvider;
37
+ export { FormsProvider as default };
package/lib/index.js CHANGED
@@ -1,42 +1,44 @@
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');
6
- var formNormal = require('@panneau/form-normal');
7
- var formInline = require('@panneau/form-inline');
8
8
  var formHorizontal = require('@panneau/form-horizontal');
9
+ var formInline = require('@panneau/form-inline');
10
+ var formNormal = require('@panneau/form-normal');
9
11
  var formTwoPane = require('@panneau/form-two-pane');
10
12
 
11
13
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
12
14
 
13
15
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
14
16
  var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
15
- var formNormal__default = /*#__PURE__*/_interopDefaultLegacy(formNormal);
16
- var formInline__default = /*#__PURE__*/_interopDefaultLegacy(formInline);
17
17
  var formHorizontal__default = /*#__PURE__*/_interopDefaultLegacy(formHorizontal);
18
+ var formInline__default = /*#__PURE__*/_interopDefaultLegacy(formInline);
19
+ var formNormal__default = /*#__PURE__*/_interopDefaultLegacy(formNormal);
18
20
  var formTwoPane__default = /*#__PURE__*/_interopDefaultLegacy(formTwoPane);
19
21
 
20
22
  // Import forms
21
23
 
22
24
  var components = /*#__PURE__*/Object.freeze({
23
25
  __proto__: null,
24
- Normal: formNormal__default['default'],
25
- Inline: formInline__default['default'],
26
- Horizontal: formHorizontal__default['default'],
27
- TwoPane: formTwoPane__default['default']
26
+ Horizontal: formHorizontal__default["default"],
27
+ Inline: formInline__default["default"],
28
+ Normal: formNormal__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['default'].node
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['default'].createElement(contexts.ComponentsProvider, Object.assign({
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
- module.exports = FormsProvider;
50
+ exports["default"] = FormsProvider;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/forms",
3
- "version": "1.0.0-y.0",
3
+ "version": "1.0.3-alpha.0",
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 || ^18.0.0",
48
+ "react-dom": "^16.8.0 || ^17.0.0 || ^18.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 || ^18.0.0",
52
+ "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
53
53
  },
54
54
  "dependencies": {
55
55
  "@babel/runtime": "^7.12.5",
56
- "@panneau/core": "^1.0.0-y.0",
57
- "@panneau/form-horizontal": "^1.0.0-y.0",
58
- "@panneau/form-inline": "^1.0.0-y.0",
59
- "@panneau/form-normal": "^1.0.0-y.0",
60
- "@panneau/form-two-pane": "^1.0.0-y.0",
56
+ "@panneau/core": "^1.0.3-alpha.0",
57
+ "@panneau/form-horizontal": "^1.0.3-alpha.0",
58
+ "@panneau/form-inline": "^1.0.3-alpha.0",
59
+ "@panneau/form-normal": "^1.0.3-alpha.0",
60
+ "@panneau/form-two-pane": "^1.0.3-alpha.0",
61
61
  "prop-types": "^15.7.2"
62
62
  },
63
63
  "publishConfig": {
64
64
  "access": "public"
65
65
  },
66
- "gitHead": "168d858d58681ee6c96f00ec460a456576cb512b"
66
+ "gitHead": "7f9c472b97c79a5c81da30730549acdde2de5c9f"
67
67
  }