@popmenu/common-ui 0.28.0 → 0.30.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
@@ -89,57 +89,57 @@ function __rest(s, e) {
89
89
  return t;
90
90
  }
91
91
 
92
- var _path$3g;
92
+ var _path$2q;
93
93
 
94
- function _extends$3x() { _extends$3x = 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$3x.apply(this, arguments); }
94
+ function _extends$3K() { _extends$3K = 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$3K.apply(this, arguments); }
95
95
 
96
96
  function SvgMinusCircle(props) {
97
- return /*#__PURE__*/React.createElement("svg", _extends$3x({
97
+ return /*#__PURE__*/React.createElement("svg", _extends$3K({
98
98
  viewBox: "0 0 16 16",
99
+ fill: "none",
99
100
  strokeLinecap: "round",
100
101
  strokeLinejoin: "round",
101
- stroke: "currentColor",
102
102
  width: "1em",
103
- height: "1em",
104
- fill: "none"
105
- }, props), _path$3g || (_path$3g = /*#__PURE__*/React.createElement("path", {
106
- d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333zM5.333 8h5.334"
103
+ height: "1em"
104
+ }, props), _path$2q || (_path$2q = /*#__PURE__*/React.createElement("path", {
105
+ d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333zM5.333 8h5.334",
106
+ stroke: "currentColor"
107
107
  })));
108
108
  }
109
109
 
110
- var _path$38;
110
+ var _path$2i;
111
111
 
112
- function _extends$3p() { _extends$3p = 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$3p.apply(this, arguments); }
112
+ function _extends$3C() { _extends$3C = 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$3C.apply(this, arguments); }
113
113
 
114
114
  function SvgPlusCircle(props) {
115
- return /*#__PURE__*/React.createElement("svg", _extends$3p({
115
+ return /*#__PURE__*/React.createElement("svg", _extends$3C({
116
116
  viewBox: "0 0 16 16",
117
+ fill: "none",
117
118
  strokeLinecap: "round",
118
119
  strokeLinejoin: "round",
119
- stroke: "currentColor",
120
120
  width: "1em",
121
- height: "1em",
122
- fill: "none"
123
- }, props), _path$38 || (_path$38 = /*#__PURE__*/React.createElement("path", {
124
- d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333zm0-9.334v5.334M5.333 8h5.334"
121
+ height: "1em"
122
+ }, props), _path$2i || (_path$2i = /*#__PURE__*/React.createElement("path", {
123
+ d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333zm0-9.334v5.334M5.333 8h5.334",
124
+ stroke: "currentColor"
125
125
  })));
126
126
  }
127
127
 
128
- var _path$2Q;
128
+ var _path$24;
129
129
 
130
- 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); }
130
+ 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); }
131
131
 
132
132
  function SvgUser(props) {
133
- return /*#__PURE__*/React.createElement("svg", _extends$35({
133
+ return /*#__PURE__*/React.createElement("svg", _extends$3i({
134
134
  viewBox: "0 0 16 16",
135
+ fill: "none",
135
136
  strokeLinecap: "round",
136
137
  strokeLinejoin: "round",
137
- stroke: "currentColor",
138
138
  width: "1em",
139
- height: "1em",
140
- fill: "none"
141
- }, props), _path$2Q || (_path$2Q = /*#__PURE__*/React.createElement("path", {
142
- 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"
139
+ height: "1em"
140
+ }, props), _path$24 || (_path$24 = /*#__PURE__*/React.createElement("path", {
141
+ 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",
142
+ stroke: "currentColor"
143
143
  })));
144
144
  }
145
145
 
@@ -469,8 +469,9 @@ var variantMap = {
469
469
 
470
470
  var Typography = forwardRef(function (props, ref) {
471
471
  props.weight; var _a = props.variant, variant = _a === void 0 ? 'body1' : _a; props.color; var restProps = __rest(props, ["weight", "variant", "color"]);
472
- var classes = useTypographyStyles(props);
473
- var component = variantMap[variant];
472
+ var validatedVariant = Object.keys(variantMap).includes(variant) ? variant : 'body1';
473
+ var classes = useTypographyStyles(__assign(__assign({}, props), { variant: validatedVariant }));
474
+ var component = variantMap[validatedVariant];
474
475
  return React__default.createElement(Typography$1, __assign({ component: component, ref: ref, classes: classes }, restProps, { variant: "inherit" }));
475
476
  });
476
477
  Typography.displayName = 'Typography';