@panneau/lists 3.0.307 → 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.
- package/es/index.js +6 -16
- package/package.json +5 -5
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, LISTS_NAMESPACE } from '@panneau/core/contexts';
|
|
6
5
|
import listTable from '@panneau/list-table';
|
|
@@ -13,25 +12,16 @@ var components = /*#__PURE__*/Object.freeze({
|
|
|
13
12
|
});
|
|
14
13
|
|
|
15
14
|
var _excluded = ["components", "children"];
|
|
16
|
-
|
|
17
|
-
components
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
var defaultProps = {
|
|
22
|
-
components: null,
|
|
23
|
-
children: null
|
|
24
|
-
};
|
|
25
|
-
var ListsProvider = function ListsProvider(_ref) {
|
|
26
|
-
var injectedComponents = _ref.components,
|
|
27
|
-
children = _ref.children,
|
|
15
|
+
function ListsProvider(_ref) {
|
|
16
|
+
var _ref$components = _ref.components,
|
|
17
|
+
injectedComponents = _ref$components === void 0 ? null : _ref$components,
|
|
18
|
+
_ref$children = _ref.children,
|
|
19
|
+
children = _ref$children === void 0 ? null : _ref$children,
|
|
28
20
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
29
21
|
return /*#__PURE__*/React.createElement(ComponentsProvider, Object.assign({
|
|
30
22
|
namespace: LISTS_NAMESPACE,
|
|
31
23
|
components: _objectSpread(_objectSpread({}, components), injectedComponents)
|
|
32
24
|
}, props), children);
|
|
33
|
-
}
|
|
34
|
-
ListsProvider.propTypes = propTypes;
|
|
35
|
-
ListsProvider.defaultProps = defaultProps;
|
|
25
|
+
}
|
|
36
26
|
|
|
37
27
|
export { ListsProvider as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panneau/lists",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -66,13 +66,13 @@
|
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
68
|
"@babel/runtime": "^7.12.5",
|
|
69
|
-
"@panneau/core": "^
|
|
70
|
-
"@panneau/list-cards": "^
|
|
71
|
-
"@panneau/list-table": "^
|
|
69
|
+
"@panneau/core": "^4.0.0",
|
|
70
|
+
"@panneau/list-cards": "^4.0.0",
|
|
71
|
+
"@panneau/list-table": "^4.0.0",
|
|
72
72
|
"prop-types": "^15.7.2"
|
|
73
73
|
},
|
|
74
74
|
"publishConfig": {
|
|
75
75
|
"access": "public"
|
|
76
76
|
},
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "2cca874e0388b4a20c39aadb205c0e67d5a946fc"
|
|
78
78
|
}
|