@popmenu/table 0.23.0 → 0.26.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/CHANGELOG.md +97 -0
- package/build/index.es.js +51 -52
- package/build/index.es.js.map +1 -1
- package/build/index.js +50 -52
- package/build/index.js.map +1 -1
- package/package.json +2 -3
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
# [0.26.0](https://github.com/Popmenu/component-library/compare/v0.25.1...v0.26.0) (2022-06-22)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @popmenu/table
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [0.25.0](https://github.com/Popmenu/component-library/compare/v0.24.1...v0.25.0) (2022-06-14)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @popmenu/table
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [0.24.0](https://github.com/Popmenu/component-library/compare/v0.23.0...v0.24.0) (2022-05-04)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @popmenu/table
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
# [0.23.0](https://github.com/Popmenu/component-library/compare/v0.22.0...v0.23.0) (2022-05-03)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Features
|
|
34
|
+
|
|
35
|
+
* init GlobalFilter ([774e48f](https://github.com/Popmenu/component-library/commit/774e48f6e03450d98c3e2749ec8a3a5aca85cfa3))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
# [0.22.0](https://github.com/Popmenu/component-library/compare/v0.21.1...v0.22.0) (2022-04-25)
|
|
42
|
+
|
|
43
|
+
**Note:** Version bump only for package @popmenu/table
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
# [0.21.0](https://github.com/Popmenu/component-library/compare/v0.20.0...v0.21.0) (2022-03-17)
|
|
50
|
+
|
|
51
|
+
**Note:** Version bump only for package @popmenu/table
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
# [0.20.0](https://github.com/Popmenu/component-library/compare/v0.19.5...v0.20.0) (2022-03-16)
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
### Features
|
|
61
|
+
|
|
62
|
+
* enable manual pagination ([4a9c04c](https://github.com/Popmenu/component-library/commit/4a9c04cdcf9857f8481bca3fa95f13ffdc073c2a))
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
## [0.19.5](https://github.com/Popmenu/component-library/compare/v0.19.4...v0.19.5) (2022-03-07)
|
|
69
|
+
|
|
70
|
+
**Note:** Version bump only for package @popmenu/table
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
## [0.19.2](https://github.com/Popmenu/component-library/compare/v0.19.1...v0.19.2) (2022-02-15)
|
|
77
|
+
|
|
78
|
+
**Note:** Version bump only for package @popmenu/table
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
# [0.19.0](https://github.com/Popmenu/component-library/compare/v0.19.0-alpha.0...v0.19.0) (2022-02-11)
|
|
85
|
+
|
|
86
|
+
**Note:** Version bump only for package @popmenu/table
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
# [0.19.0-alpha.0](https://github.com/Popmenu/component-library/compare/v0.18.4-alpha.4...v0.19.0-alpha.0) (2022-02-11)
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
### Features
|
|
96
|
+
|
|
97
|
+
* init table package ([e369471](https://github.com/Popmenu/component-library/commit/e369471c3dbf53a49b845d269acae4785a7dc7c8))
|
package/build/index.es.js
CHANGED
|
@@ -6,10 +6,9 @@ import { useSortBy } from 'react-table/src/plugin-hooks/useSortBy.js';
|
|
|
6
6
|
import { useGlobalFilter } from 'react-table/src/plugin-hooks/useGlobalFilter.js';
|
|
7
7
|
import { Pagination } from '@material-ui/lab';
|
|
8
8
|
import '@material-ui/lab/Alert';
|
|
9
|
-
import { makeStyles, Paper as Paper$1, Link as Link$1, Box, useTheme as useTheme$1, TextField, InputAdornment } from '@material-ui/core';
|
|
9
|
+
import { makeStyles, Typography as Typography$1, Paper as Paper$1, Link as Link$1, Box, useTheme as useTheme$1, TextField, InputAdornment } from '@material-ui/core';
|
|
10
10
|
import '@material-ui/core/AppBar';
|
|
11
11
|
import MuiIconButton from '@material-ui/core/IconButton';
|
|
12
|
-
import MuiTypography from '@material-ui/core/Typography';
|
|
13
12
|
import { makeStyles as makeStyles$1, useTheme } from '@material-ui/core/styles';
|
|
14
13
|
import MuiAvatar from '@material-ui/core/Avatar';
|
|
15
14
|
import '@material-ui/core/Badge';
|
|
@@ -138,20 +137,20 @@ function __rest(s, e) {
|
|
|
138
137
|
return t;
|
|
139
138
|
}
|
|
140
139
|
|
|
141
|
-
var _path$
|
|
140
|
+
var _path$2P;
|
|
142
141
|
|
|
143
|
-
function _extends$
|
|
142
|
+
function _extends$33() { _extends$33 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$33.apply(this, arguments); }
|
|
144
143
|
|
|
145
144
|
function SvgUser(props) {
|
|
146
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
145
|
+
return /*#__PURE__*/React.createElement("svg", _extends$33({
|
|
147
146
|
viewBox: "0 0 16 16",
|
|
148
147
|
strokeLinecap: "round",
|
|
149
148
|
strokeLinejoin: "round",
|
|
150
149
|
stroke: "currentColor",
|
|
151
|
-
fill: "none",
|
|
152
150
|
width: "1em",
|
|
153
|
-
height: "1em"
|
|
154
|
-
|
|
151
|
+
height: "1em",
|
|
152
|
+
fill: "none"
|
|
153
|
+
}, props), _path$2P || (_path$2P = /*#__PURE__*/React.createElement("path", {
|
|
155
154
|
d: "M13.333 14v-1.333A2.667 2.667 0 0010.667 10H5.333a2.667 2.667 0 00-2.666 2.667V14M8 7.333A2.667 2.667 0 108 2a2.667 2.667 0 000 5.333z"
|
|
156
155
|
})));
|
|
157
156
|
}
|
|
@@ -278,29 +277,29 @@ IconButton.defaultProps = {
|
|
|
278
277
|
color: 'secondary',
|
|
279
278
|
};
|
|
280
279
|
|
|
281
|
-
var useTypographyStyles = makeStyles$1(function () {
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
});
|
|
280
|
+
var useTypographyStyles = makeStyles$1(function () { return ({
|
|
281
|
+
root: function (_a) {
|
|
282
|
+
var _b;
|
|
283
|
+
var weight = _a.weight;
|
|
284
|
+
return (__assign((_b = {}, _b["& ." + iconStaticClassName] = {
|
|
285
|
+
position: 'relative',
|
|
286
|
+
top: '0.125em',
|
|
287
|
+
padding: '0 0.125em',
|
|
288
|
+
boxSizing: 'content-box',
|
|
289
|
+
}, _b), (weight && { fontWeight: (weight === 'semi-bold' && 600) || (weight === 'bold' && 700) || 400 })));
|
|
290
|
+
},
|
|
291
|
+
caption: {
|
|
292
|
+
display: 'inline',
|
|
293
|
+
},
|
|
294
|
+
overline: {
|
|
295
|
+
display: 'inline',
|
|
296
|
+
},
|
|
297
|
+
}); });
|
|
300
298
|
|
|
301
299
|
var Typography = forwardRef(function (props, ref) {
|
|
300
|
+
props.weight; var restProps = __rest(props, ["weight"]);
|
|
302
301
|
var classes = useTypographyStyles(props);
|
|
303
|
-
return React__default.createElement(
|
|
302
|
+
return React__default.createElement(Typography$1, __assign({ ref: ref, classes: classes }, restProps));
|
|
304
303
|
});
|
|
305
304
|
Typography.displayName = 'Typography';
|
|
306
305
|
|
|
@@ -716,74 +715,74 @@ var TableHeader = function (props) {
|
|
|
716
715
|
return React__default.createElement("thead", __assign$1({}, restProps), children);
|
|
717
716
|
};
|
|
718
717
|
|
|
719
|
-
var _path$
|
|
718
|
+
var _path$4x;
|
|
720
719
|
|
|
721
|
-
function _extends$
|
|
720
|
+
function _extends$4N() { _extends$4N = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$4N.apply(this, arguments); }
|
|
722
721
|
|
|
723
722
|
function SvgChevronDown(props) {
|
|
724
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
723
|
+
return /*#__PURE__*/React.createElement("svg", _extends$4N({
|
|
725
724
|
viewBox: "0 0 16 16",
|
|
726
725
|
strokeLinecap: "round",
|
|
727
726
|
strokeLinejoin: "round",
|
|
728
727
|
stroke: "currentColor",
|
|
729
|
-
fill: "none",
|
|
730
728
|
width: "1em",
|
|
731
|
-
height: "1em"
|
|
732
|
-
|
|
729
|
+
height: "1em",
|
|
730
|
+
fill: "none"
|
|
731
|
+
}, props), _path$4x || (_path$4x = /*#__PURE__*/React.createElement("path", {
|
|
733
732
|
d: "M4 6l4 4 4-4"
|
|
734
733
|
})));
|
|
735
734
|
}
|
|
736
735
|
|
|
737
|
-
var _path$
|
|
736
|
+
var _path$4w;
|
|
738
737
|
|
|
739
|
-
function _extends$
|
|
738
|
+
function _extends$4M() { _extends$4M = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$4M.apply(this, arguments); }
|
|
740
739
|
|
|
741
740
|
function SvgChevronUp(props) {
|
|
742
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
741
|
+
return /*#__PURE__*/React.createElement("svg", _extends$4M({
|
|
743
742
|
viewBox: "0 0 16 16",
|
|
744
743
|
strokeLinecap: "round",
|
|
745
744
|
strokeLinejoin: "round",
|
|
746
745
|
stroke: "currentColor",
|
|
747
|
-
fill: "none",
|
|
748
746
|
width: "1em",
|
|
749
|
-
height: "1em"
|
|
750
|
-
|
|
747
|
+
height: "1em",
|
|
748
|
+
fill: "none"
|
|
749
|
+
}, props), _path$4w || (_path$4w = /*#__PURE__*/React.createElement("path", {
|
|
751
750
|
d: "M12 10L8 6l-4 4"
|
|
752
751
|
})));
|
|
753
752
|
}
|
|
754
753
|
|
|
755
|
-
var _path$
|
|
754
|
+
var _path$3d;
|
|
756
755
|
|
|
757
|
-
function _extends$
|
|
756
|
+
function _extends$3t() { _extends$3t = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$3t.apply(this, arguments); }
|
|
758
757
|
|
|
759
758
|
function SvgMore(props) {
|
|
760
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
759
|
+
return /*#__PURE__*/React.createElement("svg", _extends$3t({
|
|
761
760
|
viewBox: "0 0 16 16",
|
|
762
761
|
strokeLinecap: "round",
|
|
763
762
|
strokeLinejoin: "round",
|
|
764
763
|
stroke: "currentColor",
|
|
765
|
-
fill: "none",
|
|
766
764
|
width: "1em",
|
|
767
|
-
height: "1em"
|
|
768
|
-
|
|
765
|
+
height: "1em",
|
|
766
|
+
fill: "none"
|
|
767
|
+
}, props), _path$3d || (_path$3d = /*#__PURE__*/React.createElement("path", {
|
|
769
768
|
d: "M8 8.667a.667.667 0 100-1.334.667.667 0 000 1.334zM8 4a.667.667 0 100-1.334A.667.667 0 008 4zm0 9.333A.667.667 0 108 12a.667.667 0 000 1.333z"
|
|
770
769
|
})));
|
|
771
770
|
}
|
|
772
771
|
|
|
773
|
-
var _path$
|
|
772
|
+
var _path$33;
|
|
774
773
|
|
|
775
|
-
function _extends$
|
|
774
|
+
function _extends$3j() { _extends$3j = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$3j.apply(this, arguments); }
|
|
776
775
|
|
|
777
776
|
function SvgSearch(props) {
|
|
778
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
777
|
+
return /*#__PURE__*/React.createElement("svg", _extends$3j({
|
|
779
778
|
viewBox: "0 0 16 16",
|
|
780
779
|
strokeLinecap: "round",
|
|
781
780
|
strokeLinejoin: "round",
|
|
782
781
|
stroke: "currentColor",
|
|
783
|
-
fill: "none",
|
|
784
782
|
width: "1em",
|
|
785
|
-
height: "1em"
|
|
786
|
-
|
|
783
|
+
height: "1em",
|
|
784
|
+
fill: "none"
|
|
785
|
+
}, props), _path$33 || (_path$33 = /*#__PURE__*/React.createElement("path", {
|
|
787
786
|
d: "M7.333 12.667A5.333 5.333 0 107.333 2a5.333 5.333 0 000 10.667zM14 14l-2.9-2.9"
|
|
788
787
|
})));
|
|
789
788
|
}
|