@popmenu/table 0.23.0 → 0.24.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/build/index.js CHANGED
@@ -12,7 +12,6 @@ require('@material-ui/lab/Alert');
12
12
  var core = require('@material-ui/core');
13
13
  require('@material-ui/core/AppBar');
14
14
  var MuiIconButton = require('@material-ui/core/IconButton');
15
- var MuiTypography = require('@material-ui/core/Typography');
16
15
  var styles = require('@material-ui/core/styles');
17
16
  var MuiAvatar = require('@material-ui/core/Avatar');
18
17
  require('@material-ui/core/Badge');
@@ -80,7 +79,6 @@ function _interopNamespace(e) {
80
79
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
81
80
  var React__namespace = /*#__PURE__*/_interopNamespace(React);
82
81
  var MuiIconButton__default = /*#__PURE__*/_interopDefaultLegacy(MuiIconButton);
83
- var MuiTypography__default = /*#__PURE__*/_interopDefaultLegacy(MuiTypography);
84
82
  var MuiAvatar__default = /*#__PURE__*/_interopDefaultLegacy(MuiAvatar);
85
83
  var MuiButton__default = /*#__PURE__*/_interopDefaultLegacy(MuiButton);
86
84
  var CircularProgress__default = /*#__PURE__*/_interopDefaultLegacy(CircularProgress);
@@ -180,20 +178,20 @@ function __rest(s, e) {
180
178
  return t;
181
179
  }
182
180
 
183
- var _path$2O;
181
+ var _path$3k;
184
182
 
185
- function _extends$32() { _extends$32 = 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$32.apply(this, arguments); }
183
+ function _extends$3B() { _extends$3B = 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$3B.apply(this, arguments); }
186
184
 
187
185
  function SvgUser(props) {
188
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$32({
186
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$3B({
189
187
  viewBox: "0 0 16 16",
190
188
  strokeLinecap: "round",
191
189
  strokeLinejoin: "round",
192
190
  stroke: "currentColor",
193
- fill: "none",
194
191
  width: "1em",
195
- height: "1em"
196
- }, props), _path$2O || (_path$2O = /*#__PURE__*/React__namespace.createElement("path", {
192
+ height: "1em",
193
+ fill: "none"
194
+ }, props), _path$3k || (_path$3k = /*#__PURE__*/React__namespace.createElement("path", {
197
195
  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"
198
196
  })));
199
197
  }
@@ -320,29 +318,29 @@ IconButton.defaultProps = {
320
318
  color: 'secondary',
321
319
  };
322
320
 
323
- var useTypographyStyles = styles.makeStyles(function () {
324
- var _a;
325
- return ({
326
- root: (_a = {},
327
- _a["& ." + iconStaticClassName] = {
328
- position: 'relative',
329
- top: '0.125em',
330
- padding: '0 0.125em',
331
- boxSizing: 'content-box',
332
- },
333
- _a),
334
- caption: {
335
- display: 'inline',
336
- },
337
- overline: {
338
- display: 'inline',
339
- },
340
- });
341
- });
321
+ var useTypographyStyles = styles.makeStyles(function () { return ({
322
+ root: function (_a) {
323
+ var _b;
324
+ var weight = _a.weight;
325
+ return (__assign((_b = {}, _b["& ." + iconStaticClassName] = {
326
+ position: 'relative',
327
+ top: '0.125em',
328
+ padding: '0 0.125em',
329
+ boxSizing: 'content-box',
330
+ }, _b), (weight && { fontWeight: (weight === 'semi-bold' && 600) || (weight === 'bold' && 700) || 400 })));
331
+ },
332
+ caption: {
333
+ display: 'inline',
334
+ },
335
+ overline: {
336
+ display: 'inline',
337
+ },
338
+ }); });
342
339
 
343
340
  var Typography = React.forwardRef(function (props, ref) {
341
+ props.weight; var restProps = __rest(props, ["weight"]);
344
342
  var classes = useTypographyStyles(props);
345
- return React__default['default'].createElement(MuiTypography__default['default'], __assign({ ref: ref, classes: classes }, props));
343
+ return React__default['default'].createElement(core.Typography, __assign({ ref: ref, classes: classes }, restProps));
346
344
  });
347
345
  Typography.displayName = 'Typography';
348
346
 
@@ -758,75 +756,75 @@ var TableHeader = function (props) {
758
756
  return React__default['default'].createElement("thead", __assign$1({}, restProps), children);
759
757
  };
760
758
 
761
- var _path$4w;
759
+ var _path$3K;
762
760
 
763
- 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); }
761
+ function _extends$3$() { _extends$3$ = 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$3$.apply(this, arguments); }
764
762
 
765
- function SvgChevronDown(props) {
766
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$4M({
763
+ function SvgMore(props) {
764
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$3$({
767
765
  viewBox: "0 0 16 16",
768
766
  strokeLinecap: "round",
769
767
  strokeLinejoin: "round",
770
768
  stroke: "currentColor",
771
- fill: "none",
772
769
  width: "1em",
773
- height: "1em"
774
- }, props), _path$4w || (_path$4w = /*#__PURE__*/React__namespace.createElement("path", {
775
- d: "M4 6l4 4 4-4"
770
+ height: "1em",
771
+ fill: "none"
772
+ }, props), _path$3K || (_path$3K = /*#__PURE__*/React__namespace.createElement("path", {
773
+ d: "M8 8.667a.667.667 0 100-1.334.667.667 0 000 1.334zM8 4a.667.667 0 100-1.333A.667.667 0 008 4zm0 9.333A.667.667 0 108 12a.667.667 0 000 1.333z"
776
774
  })));
777
775
  }
778
776
 
779
- var _path$4v;
777
+ var _path$3A;
780
778
 
781
- function _extends$4L() { _extends$4L = 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$4L.apply(this, arguments); }
779
+ function _extends$3R() { _extends$3R = 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$3R.apply(this, arguments); }
782
780
 
783
- function SvgChevronUp(props) {
784
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$4L({
781
+ function SvgSearch(props) {
782
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$3R({
785
783
  viewBox: "0 0 16 16",
786
784
  strokeLinecap: "round",
787
785
  strokeLinejoin: "round",
788
786
  stroke: "currentColor",
789
- fill: "none",
790
787
  width: "1em",
791
- height: "1em"
792
- }, props), _path$4v || (_path$4v = /*#__PURE__*/React__namespace.createElement("path", {
793
- d: "M12 10L8 6l-4 4"
788
+ height: "1em",
789
+ fill: "none"
790
+ }, props), _path$3A || (_path$3A = /*#__PURE__*/React__namespace.createElement("path", {
791
+ d: "M7.333 12.667A5.333 5.333 0 107.333 2a5.333 5.333 0 000 10.667zM14 14l-2.9-2.9"
794
792
  })));
795
793
  }
796
794
 
797
- var _path$3c;
795
+ var _path$2X;
798
796
 
799
- function _extends$3s() { _extends$3s = 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$3s.apply(this, arguments); }
797
+ function _extends$3b() { _extends$3b = 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$3b.apply(this, arguments); }
800
798
 
801
- function SvgMore(props) {
802
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$3s({
799
+ function SvgChevronDown(props) {
800
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$3b({
803
801
  viewBox: "0 0 16 16",
804
802
  strokeLinecap: "round",
805
803
  strokeLinejoin: "round",
806
804
  stroke: "currentColor",
807
- fill: "none",
808
805
  width: "1em",
809
- height: "1em"
810
- }, props), _path$3c || (_path$3c = /*#__PURE__*/React__namespace.createElement("path", {
811
- 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"
806
+ height: "1em",
807
+ fill: "none"
808
+ }, props), _path$2X || (_path$2X = /*#__PURE__*/React__namespace.createElement("path", {
809
+ d: "M4 6l4 4 4-4"
812
810
  })));
813
811
  }
814
812
 
815
- var _path$32;
813
+ var _path$2W;
816
814
 
817
- function _extends$3i() { _extends$3i = 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$3i.apply(this, arguments); }
815
+ function _extends$3a() { _extends$3a = 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$3a.apply(this, arguments); }
818
816
 
819
- function SvgSearch(props) {
820
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$3i({
817
+ function SvgChevronUp(props) {
818
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$3a({
821
819
  viewBox: "0 0 16 16",
822
820
  strokeLinecap: "round",
823
821
  strokeLinejoin: "round",
824
822
  stroke: "currentColor",
825
- fill: "none",
826
823
  width: "1em",
827
- height: "1em"
828
- }, props), _path$32 || (_path$32 = /*#__PURE__*/React__namespace.createElement("path", {
829
- d: "M7.333 12.667A5.333 5.333 0 107.333 2a5.333 5.333 0 000 10.667zM14 14l-2.9-2.9"
824
+ height: "1em",
825
+ fill: "none"
826
+ }, props), _path$2W || (_path$2W = /*#__PURE__*/React__namespace.createElement("path", {
827
+ d: "M12 10L8 6l-4 4"
830
828
  })));
831
829
  }
832
830