@popmenu/table 0.28.0 → 0.29.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.es.js CHANGED
@@ -137,21 +137,21 @@ function __rest(s, e) {
137
137
  return t;
138
138
  }
139
139
 
140
- var _path$2Q;
140
+ var _path$1W;
141
141
 
142
- function _extends$35() { _extends$35 = 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$35.apply(this, arguments); }
142
+ function _extends$31() { _extends$31 = 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$31.apply(this, arguments); }
143
143
 
144
144
  function SvgUser(props) {
145
- return /*#__PURE__*/React.createElement("svg", _extends$35({
145
+ return /*#__PURE__*/React.createElement("svg", _extends$31({
146
146
  viewBox: "0 0 16 16",
147
+ fill: "none",
147
148
  strokeLinecap: "round",
148
149
  strokeLinejoin: "round",
149
- stroke: "currentColor",
150
150
  width: "1em",
151
- height: "1em",
152
- fill: "none"
153
- }, props), _path$2Q || (_path$2Q = /*#__PURE__*/React.createElement("path", {
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"
151
+ height: "1em"
152
+ }, props), _path$1W || (_path$1W = /*#__PURE__*/React.createElement("path", {
153
+ 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",
154
+ stroke: "currentColor"
155
155
  })));
156
156
  }
157
157
 
@@ -481,8 +481,9 @@ var variantMap = {
481
481
 
482
482
  var Typography = forwardRef(function (props, ref) {
483
483
  props.weight; var _a = props.variant, variant = _a === void 0 ? 'body1' : _a; props.color; var restProps = __rest(props, ["weight", "variant", "color"]);
484
- var classes = useTypographyStyles(props);
485
- var component = variantMap[variant];
484
+ var validatedVariant = Object.keys(variantMap).includes(variant) ? variant : 'body1';
485
+ var classes = useTypographyStyles(__assign(__assign({}, props), { variant: validatedVariant }));
486
+ var component = variantMap[validatedVariant];
486
487
  return React__default.createElement(Typography$1, __assign({ component: component, ref: ref, classes: classes }, restProps, { variant: "inherit" }));
487
488
  });
488
489
  Typography.displayName = 'Typography';
@@ -753,75 +754,75 @@ var TableHeader = function (props) {
753
754
  return React__default.createElement("thead", __assign$1({}, restProps), children);
754
755
  };
755
756
 
756
- var _path$4y;
757
+ var _path$2$;
757
758
 
758
- function _extends$4P() { _extends$4P = 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$4P.apply(this, arguments); }
759
+ 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); }
759
760
 
760
761
  function SvgChevronDown(props) {
761
- return /*#__PURE__*/React.createElement("svg", _extends$4P({
762
+ return /*#__PURE__*/React.createElement("svg", _extends$4L({
762
763
  viewBox: "0 0 16 16",
764
+ fill: "none",
763
765
  strokeLinecap: "round",
764
766
  strokeLinejoin: "round",
765
- stroke: "currentColor",
766
767
  width: "1em",
767
- height: "1em",
768
- fill: "none"
769
- }, props), _path$4y || (_path$4y = /*#__PURE__*/React.createElement("path", {
770
- d: "M4 6l4 4 4-4"
768
+ height: "1em"
769
+ }, props), _path$2$ || (_path$2$ = /*#__PURE__*/React.createElement("path", {
770
+ d: "M4 6l4 4 4-4",
771
+ stroke: "currentColor"
771
772
  })));
772
773
  }
773
774
 
774
- var _path$4x;
775
+ var _path$2_;
775
776
 
776
- function _extends$4O() { _extends$4O = 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$4O.apply(this, arguments); }
777
+ function _extends$4K() { _extends$4K = 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$4K.apply(this, arguments); }
777
778
 
778
779
  function SvgChevronUp(props) {
779
- return /*#__PURE__*/React.createElement("svg", _extends$4O({
780
+ return /*#__PURE__*/React.createElement("svg", _extends$4K({
780
781
  viewBox: "0 0 16 16",
782
+ fill: "none",
781
783
  strokeLinecap: "round",
782
784
  strokeLinejoin: "round",
783
- stroke: "currentColor",
784
785
  width: "1em",
785
- height: "1em",
786
- fill: "none"
787
- }, props), _path$4x || (_path$4x = /*#__PURE__*/React.createElement("path", {
788
- d: "M12 10L8 6l-4 4"
786
+ height: "1em"
787
+ }, props), _path$2_ || (_path$2_ = /*#__PURE__*/React.createElement("path", {
788
+ d: "M12 10L8 6l-4 4",
789
+ stroke: "currentColor"
789
790
  })));
790
791
  }
791
792
 
792
- var _path$3e;
793
+ var _path$2e;
793
794
 
794
- function _extends$3v() { _extends$3v = 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$3v.apply(this, arguments); }
795
+ 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); }
795
796
 
796
797
  function SvgMore(props) {
797
- return /*#__PURE__*/React.createElement("svg", _extends$3v({
798
+ return /*#__PURE__*/React.createElement("svg", _extends$3r({
798
799
  viewBox: "0 0 16 16",
800
+ fill: "none",
799
801
  strokeLinecap: "round",
800
802
  strokeLinejoin: "round",
801
- stroke: "currentColor",
802
803
  width: "1em",
803
- height: "1em",
804
- fill: "none"
805
- }, props), _path$3e || (_path$3e = /*#__PURE__*/React.createElement("path", {
806
- 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"
804
+ height: "1em"
805
+ }, props), _path$2e || (_path$2e = /*#__PURE__*/React.createElement("path", {
806
+ 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",
807
+ stroke: "currentColor"
807
808
  })));
808
809
  }
809
810
 
810
- var _path$34;
811
+ var _path$25;
811
812
 
812
- function _extends$3l() { _extends$3l = 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$3l.apply(this, arguments); }
813
+ function _extends$3h() { _extends$3h = 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$3h.apply(this, arguments); }
813
814
 
814
815
  function SvgSearch(props) {
815
- return /*#__PURE__*/React.createElement("svg", _extends$3l({
816
+ return /*#__PURE__*/React.createElement("svg", _extends$3h({
816
817
  viewBox: "0 0 16 16",
818
+ fill: "none",
817
819
  strokeLinecap: "round",
818
820
  strokeLinejoin: "round",
819
- stroke: "currentColor",
820
821
  width: "1em",
821
- height: "1em",
822
- fill: "none"
823
- }, props), _path$34 || (_path$34 = /*#__PURE__*/React.createElement("path", {
824
- d: "M7.333 12.667A5.333 5.333 0 107.333 2a5.333 5.333 0 000 10.667zM14 14l-2.9-2.9"
822
+ height: "1em"
823
+ }, props), _path$25 || (_path$25 = /*#__PURE__*/React.createElement("path", {
824
+ d: "M7.333 12.667A5.333 5.333 0 107.333 2a5.333 5.333 0 000 10.667zM14 14l-2.9-2.9",
825
+ stroke: "currentColor"
825
826
  })));
826
827
  }
827
828