@panneau/lists 3.0.55 → 3.0.56
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 +13 -5
- package/lib/index.js +16 -6
- package/package.json +2 -2
package/es/index.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
2
|
+
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
2
3
|
import PropTypes from 'prop-types';
|
|
4
|
+
import React from 'react';
|
|
3
5
|
import { ComponentsProvider, LISTS_NAMESPACE } from '@panneau/core/contexts';
|
|
4
6
|
import listTable from '@panneau/list-table';
|
|
5
7
|
import listCards from '@panneau/list-cards';
|
|
@@ -10,18 +12,24 @@ var components = /*#__PURE__*/Object.freeze({
|
|
|
10
12
|
Cards: listCards
|
|
11
13
|
});
|
|
12
14
|
|
|
13
|
-
|
|
15
|
+
var _excluded = ["components", "children"];
|
|
14
16
|
var propTypes = {
|
|
17
|
+
components: PropTypes.object,
|
|
18
|
+
// eslint-disable-line
|
|
15
19
|
children: PropTypes.node
|
|
16
20
|
};
|
|
17
21
|
var defaultProps = {
|
|
22
|
+
components: null,
|
|
18
23
|
children: null
|
|
19
24
|
};
|
|
20
|
-
var ListsProvider = function ListsProvider(
|
|
25
|
+
var ListsProvider = function ListsProvider(_ref) {
|
|
26
|
+
var injectedComponents = _ref.components,
|
|
27
|
+
children = _ref.children,
|
|
28
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
21
29
|
return /*#__PURE__*/React.createElement(ComponentsProvider, Object.assign({
|
|
22
30
|
namespace: LISTS_NAMESPACE,
|
|
23
|
-
components: components
|
|
24
|
-
}, props));
|
|
31
|
+
components: _objectSpread(_objectSpread({}, components), injectedComponents)
|
|
32
|
+
}, props), children);
|
|
25
33
|
};
|
|
26
34
|
ListsProvider.propTypes = propTypes;
|
|
27
35
|
ListsProvider.defaultProps = defaultProps;
|
package/lib/index.js
CHANGED
|
@@ -2,16 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
|
|
6
|
+
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
6
7
|
var PropTypes = require('prop-types');
|
|
8
|
+
var React = require('react');
|
|
7
9
|
var contexts = require('@panneau/core/contexts');
|
|
8
10
|
var listTable = require('@panneau/list-table');
|
|
9
11
|
var listCards = require('@panneau/list-cards');
|
|
10
12
|
|
|
11
13
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
12
14
|
|
|
13
|
-
var
|
|
15
|
+
var _objectSpread__default = /*#__PURE__*/_interopDefaultLegacy(_objectSpread);
|
|
16
|
+
var _objectWithoutProperties__default = /*#__PURE__*/_interopDefaultLegacy(_objectWithoutProperties);
|
|
14
17
|
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
18
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
15
19
|
var listTable__default = /*#__PURE__*/_interopDefaultLegacy(listTable);
|
|
16
20
|
var listCards__default = /*#__PURE__*/_interopDefaultLegacy(listCards);
|
|
17
21
|
|
|
@@ -21,18 +25,24 @@ var components = /*#__PURE__*/Object.freeze({
|
|
|
21
25
|
Cards: listCards__default["default"]
|
|
22
26
|
});
|
|
23
27
|
|
|
24
|
-
|
|
28
|
+
var _excluded = ["components", "children"];
|
|
25
29
|
var propTypes = {
|
|
30
|
+
components: PropTypes__default["default"].object,
|
|
31
|
+
// eslint-disable-line
|
|
26
32
|
children: PropTypes__default["default"].node
|
|
27
33
|
};
|
|
28
34
|
var defaultProps = {
|
|
35
|
+
components: null,
|
|
29
36
|
children: null
|
|
30
37
|
};
|
|
31
|
-
var ListsProvider = function ListsProvider(
|
|
38
|
+
var ListsProvider = function ListsProvider(_ref) {
|
|
39
|
+
var injectedComponents = _ref.components,
|
|
40
|
+
children = _ref.children,
|
|
41
|
+
props = _objectWithoutProperties__default["default"](_ref, _excluded);
|
|
32
42
|
return /*#__PURE__*/React__default["default"].createElement(contexts.ComponentsProvider, Object.assign({
|
|
33
43
|
namespace: contexts.LISTS_NAMESPACE,
|
|
34
|
-
components: components
|
|
35
|
-
}, props));
|
|
44
|
+
components: _objectSpread__default["default"](_objectSpread__default["default"]({}, components), injectedComponents)
|
|
45
|
+
}, props), children);
|
|
36
46
|
};
|
|
37
47
|
ListsProvider.propTypes = propTypes;
|
|
38
48
|
ListsProvider.defaultProps = defaultProps;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panneau/lists",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.56",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"publishConfig": {
|
|
74
74
|
"access": "public"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "1566926c838b9a963a67a018ef77d31a678be6e3"
|
|
77
77
|
}
|