@panneau/lists 1.0.1-alpha.0 → 1.0.3-alpha.2
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 +31 -3
- package/lib/index.js +37 -24
- package/package.json +30 -32
package/es/index.js
CHANGED
|
@@ -1,3 +1,31 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import { ComponentsProvider, LISTS_NAMESPACE } from '@panneau/core/contexts';
|
|
4
|
+
import listTable from '@panneau/list-table';
|
|
5
|
+
import listCards from '@panneau/list-cards';
|
|
6
|
+
|
|
7
|
+
var components = /*#__PURE__*/Object.freeze({
|
|
8
|
+
__proto__: null,
|
|
9
|
+
Table: listTable,
|
|
10
|
+
Cards: listCards
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
/* eslint-disable react/jsx-props-no-spreading */
|
|
14
|
+
var propTypes = {
|
|
15
|
+
children: PropTypes.node
|
|
16
|
+
};
|
|
17
|
+
var defaultProps = {
|
|
18
|
+
children: null
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
var ListsProvider = function ListsProvider(props) {
|
|
22
|
+
return /*#__PURE__*/React.createElement(ComponentsProvider, Object.assign({
|
|
23
|
+
namespace: LISTS_NAMESPACE,
|
|
24
|
+
components: components
|
|
25
|
+
}, props));
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
ListsProvider.propTypes = propTypes;
|
|
29
|
+
ListsProvider.defaultProps = defaultProps;
|
|
30
|
+
|
|
31
|
+
export { ListsProvider as default };
|
package/lib/index.js
CHANGED
|
@@ -1,29 +1,42 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
get: function get() {
|
|
23
|
-
return _list.Pagination;
|
|
24
|
-
}
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var PropTypes = require('prop-types');
|
|
7
|
+
var contexts = require('@panneau/core/contexts');
|
|
8
|
+
var listTable = require('@panneau/list-table');
|
|
9
|
+
var listCards = require('@panneau/list-cards');
|
|
10
|
+
|
|
11
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
12
|
+
|
|
13
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
14
|
+
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
15
|
+
var listTable__default = /*#__PURE__*/_interopDefaultLegacy(listTable);
|
|
16
|
+
var listCards__default = /*#__PURE__*/_interopDefaultLegacy(listCards);
|
|
17
|
+
|
|
18
|
+
var components = /*#__PURE__*/Object.freeze({
|
|
19
|
+
__proto__: null,
|
|
20
|
+
Table: listTable__default["default"],
|
|
21
|
+
Cards: listCards__default["default"]
|
|
25
22
|
});
|
|
26
23
|
|
|
27
|
-
|
|
24
|
+
/* eslint-disable react/jsx-props-no-spreading */
|
|
25
|
+
var propTypes = {
|
|
26
|
+
children: PropTypes__default["default"].node
|
|
27
|
+
};
|
|
28
|
+
var defaultProps = {
|
|
29
|
+
children: null
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
var ListsProvider = function ListsProvider(props) {
|
|
33
|
+
return /*#__PURE__*/React__default["default"].createElement(contexts.ComponentsProvider, Object.assign({
|
|
34
|
+
namespace: contexts.LISTS_NAMESPACE,
|
|
35
|
+
components: components
|
|
36
|
+
}, props));
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
ListsProvider.propTypes = propTypes;
|
|
40
|
+
ListsProvider.defaultProps = defaultProps;
|
|
28
41
|
|
|
29
|
-
|
|
42
|
+
exports["default"] = ListsProvider;
|
package/package.json
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panneau/lists",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.0.3-alpha.2",
|
|
4
|
+
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
|
-
"
|
|
7
|
-
"javascript",
|
|
8
|
-
"form",
|
|
9
|
-
"dashboard"
|
|
6
|
+
"javascript"
|
|
10
7
|
],
|
|
11
|
-
"homepage": "https://github.com/folkloreinc/panneau-js
|
|
8
|
+
"homepage": "https://github.com/folkloreinc/panneau-js",
|
|
12
9
|
"repository": {
|
|
13
10
|
"type": "git",
|
|
14
11
|
"url": "git+https://github.com/folkloreinc/panneau-js.git"
|
|
@@ -25,43 +22,44 @@
|
|
|
25
22
|
{
|
|
26
23
|
"name": "Nicolas Roy-Bourdages",
|
|
27
24
|
"email": "nrb@folklore.email"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "Julien Carignan",
|
|
28
|
+
"email": "jc@folklore.email"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "Théo Gjini",
|
|
32
|
+
"email": "tg@folklore.email"
|
|
28
33
|
}
|
|
29
34
|
],
|
|
35
|
+
"license": "ISC",
|
|
30
36
|
"main": "lib/index.js",
|
|
31
37
|
"module": "es/index.js",
|
|
32
38
|
"files": [
|
|
33
39
|
"lib",
|
|
34
40
|
"es",
|
|
35
|
-
"
|
|
41
|
+
"assets"
|
|
36
42
|
],
|
|
37
43
|
"scripts": {
|
|
38
|
-
"
|
|
39
|
-
"clean": "rm -rf dist && rm -rf lib && rm -rf es",
|
|
40
|
-
"webpack:dist": "../../node_modules/.bin/webpack --config ./webpack.config.js --progress --colors",
|
|
41
|
-
"webpack": "npm run webpack:dist",
|
|
42
|
-
"babel:es": "BABEL_ENV=es ../../node_modules/.bin/babel src --out-dir es --ignore story.js,test.js",
|
|
43
|
-
"babel:cjs": "BABEL_ENV=cjs ../../node_modules/.bin/babel src --out-dir lib --ignore story.js,test.js",
|
|
44
|
-
"babel": "npm run babel:es && npm run babel:cjs",
|
|
45
|
-
"build": "npm run babel",
|
|
46
|
-
"prepare": "npm run clean && npm run build",
|
|
47
|
-
"start": "npm run storybook"
|
|
48
|
-
},
|
|
49
|
-
"dependencies": {
|
|
50
|
-
"@babel/runtime": "^7.5.5",
|
|
51
|
-
"@panneau/core": "^1.0.1-alpha.0",
|
|
52
|
-
"@panneau/list": "^1.0.1-alpha.0",
|
|
53
|
-
"@panneau/list-table": "^1.0.1-alpha.0",
|
|
54
|
-
"invariant": "^2.2.2",
|
|
55
|
-
"lodash": "^4.17.4",
|
|
56
|
-
"prop-types": "^15.7.0"
|
|
44
|
+
"prepare": "../../scripts/prepare-package.sh --scss"
|
|
57
45
|
},
|
|
58
46
|
"devDependencies": {
|
|
59
|
-
"react": "^16.
|
|
60
|
-
"react-dom": "^16.
|
|
47
|
+
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
48
|
+
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
|
61
49
|
},
|
|
62
50
|
"peerDependencies": {
|
|
63
|
-
"react": "^16.8.0",
|
|
64
|
-
"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
|
+
},
|
|
54
|
+
"dependencies": {
|
|
55
|
+
"@babel/runtime": "^7.12.5",
|
|
56
|
+
"@panneau/core": "^1.0.3-alpha.1",
|
|
57
|
+
"@panneau/list-cards": "^1.0.3-alpha.2",
|
|
58
|
+
"@panneau/list-table": "^1.0.3-alpha.2",
|
|
59
|
+
"prop-types": "^15.7.2"
|
|
60
|
+
},
|
|
61
|
+
"publishConfig": {
|
|
62
|
+
"access": "public"
|
|
65
63
|
},
|
|
66
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "3fb9865bb17e8ddc0b2d372d38f39700c90e2605"
|
|
67
65
|
}
|