@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.js CHANGED
@@ -155,57 +155,57 @@ function __rest(s, e) {
155
155
  return t;
156
156
  }
157
157
 
158
- var _path$3g;
158
+ var _path$2q;
159
159
 
160
- 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); }
160
+ 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); }
161
161
 
162
162
  function SvgMinusCircle(props) {
163
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$3x({
163
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$3K({
164
164
  viewBox: "0 0 16 16",
165
+ fill: "none",
165
166
  strokeLinecap: "round",
166
167
  strokeLinejoin: "round",
167
- stroke: "currentColor",
168
168
  width: "1em",
169
- height: "1em",
170
- fill: "none"
171
- }, props), _path$3g || (_path$3g = /*#__PURE__*/React__namespace.createElement("path", {
172
- d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333zM5.333 8h5.334"
169
+ height: "1em"
170
+ }, props), _path$2q || (_path$2q = /*#__PURE__*/React__namespace.createElement("path", {
171
+ d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333zM5.333 8h5.334",
172
+ stroke: "currentColor"
173
173
  })));
174
174
  }
175
175
 
176
- var _path$38;
176
+ var _path$2i;
177
177
 
178
- 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); }
178
+ 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); }
179
179
 
180
180
  function SvgPlusCircle(props) {
181
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$3p({
181
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$3C({
182
182
  viewBox: "0 0 16 16",
183
+ fill: "none",
183
184
  strokeLinecap: "round",
184
185
  strokeLinejoin: "round",
185
- stroke: "currentColor",
186
186
  width: "1em",
187
- height: "1em",
188
- fill: "none"
189
- }, props), _path$38 || (_path$38 = /*#__PURE__*/React__namespace.createElement("path", {
190
- d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333zm0-9.334v5.334M5.333 8h5.334"
187
+ height: "1em"
188
+ }, props), _path$2i || (_path$2i = /*#__PURE__*/React__namespace.createElement("path", {
189
+ d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333zm0-9.334v5.334M5.333 8h5.334",
190
+ stroke: "currentColor"
191
191
  })));
192
192
  }
193
193
 
194
- var _path$2Q;
194
+ var _path$24;
195
195
 
196
- 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); }
196
+ 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); }
197
197
 
198
198
  function SvgUser(props) {
199
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$35({
199
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$3i({
200
200
  viewBox: "0 0 16 16",
201
+ fill: "none",
201
202
  strokeLinecap: "round",
202
203
  strokeLinejoin: "round",
203
- stroke: "currentColor",
204
204
  width: "1em",
205
- height: "1em",
206
- fill: "none"
207
- }, props), _path$2Q || (_path$2Q = /*#__PURE__*/React__namespace.createElement("path", {
208
- 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"
205
+ height: "1em"
206
+ }, props), _path$24 || (_path$24 = /*#__PURE__*/React__namespace.createElement("path", {
207
+ 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",
208
+ stroke: "currentColor"
209
209
  })));
210
210
  }
211
211
 
@@ -535,8 +535,9 @@ var variantMap = {
535
535
 
536
536
  var Typography = React.forwardRef(function (props, ref) {
537
537
  props.weight; var _a = props.variant, variant = _a === void 0 ? 'body1' : _a; props.color; var restProps = __rest(props, ["weight", "variant", "color"]);
538
- var classes = useTypographyStyles(props);
539
- var component = variantMap[variant];
538
+ var validatedVariant = Object.keys(variantMap).includes(variant) ? variant : 'body1';
539
+ var classes = useTypographyStyles(__assign(__assign({}, props), { variant: validatedVariant }));
540
+ var component = variantMap[validatedVariant];
540
541
  return React__default['default'].createElement(core.Typography, __assign({ component: component, ref: ref, classes: classes }, restProps, { variant: "inherit" }));
541
542
  });
542
543
  Typography.displayName = 'Typography';