@popmenu/audio-player 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
@@ -132,111 +132,111 @@ var classnames$1 = {exports: {}};
132
132
 
133
133
  var classNames$1 = classnames$1.exports;
134
134
 
135
- var _path$1m;
135
+ var _path$V;
136
136
 
137
- function _extends$1r() { _extends$1r = 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$1r.apply(this, arguments); }
137
+ function _extends$1n() { _extends$1n = 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$1n.apply(this, arguments); }
138
138
 
139
139
  function SvgPause(props) {
140
- return /*#__PURE__*/React.createElement("svg", _extends$1r({
140
+ return /*#__PURE__*/React.createElement("svg", _extends$1n({
141
141
  viewBox: "0 0 16 16",
142
+ fill: "none",
142
143
  strokeLinecap: "round",
143
144
  strokeLinejoin: "round",
144
- stroke: "currentColor",
145
145
  width: "1em",
146
- height: "1em",
147
- fill: "none"
148
- }, props), _path$1m || (_path$1m = /*#__PURE__*/React.createElement("path", {
149
- d: "M6.667 2.667H4v10.666h2.667V2.666zm5.333 0H9.333v10.666H12V2.666z"
146
+ height: "1em"
147
+ }, props), _path$V || (_path$V = /*#__PURE__*/React.createElement("path", {
148
+ d: "M6.667 2.667H4v10.666h2.667V2.666zm5.333 0H9.333v10.666H12V2.666z",
149
+ stroke: "currentColor"
150
150
  })));
151
151
  }
152
152
 
153
- var _path$1k;
153
+ var _path$T;
154
154
 
155
- function _extends$1p() { _extends$1p = 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$1p.apply(this, arguments); }
155
+ function _extends$1l() { _extends$1l = 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$1l.apply(this, arguments); }
156
156
 
157
157
  function SvgPlay(props) {
158
- return /*#__PURE__*/React.createElement("svg", _extends$1p({
158
+ return /*#__PURE__*/React.createElement("svg", _extends$1l({
159
159
  viewBox: "0 0 16 16",
160
+ fill: "none",
160
161
  strokeLinecap: "round",
161
162
  strokeLinejoin: "round",
162
- stroke: "currentColor",
163
163
  width: "1em",
164
- height: "1em",
165
- fill: "none"
166
- }, props), _path$1k || (_path$1k = /*#__PURE__*/React.createElement("path", {
167
- d: "M3.333 2l9.334 6-9.334 6V2z"
164
+ height: "1em"
165
+ }, props), _path$T || (_path$T = /*#__PURE__*/React.createElement("path", {
166
+ d: "M3.333 2l9.334 6-9.334 6V2z",
167
+ stroke: "currentColor"
168
168
  })));
169
169
  }
170
170
 
171
- var _path$17;
171
+ var _path$L;
172
172
 
173
- function _extends$1c() { _extends$1c = 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$1c.apply(this, arguments); }
173
+ function _extends$18() { _extends$18 = 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$18.apply(this, arguments); }
174
174
 
175
175
  function SvgVolumeDown(props) {
176
- return /*#__PURE__*/React.createElement("svg", _extends$1c({
176
+ return /*#__PURE__*/React.createElement("svg", _extends$18({
177
177
  viewBox: "0 0 16 16",
178
+ fill: "none",
178
179
  strokeLinecap: "round",
179
180
  strokeLinejoin: "round",
180
- stroke: "currentColor",
181
181
  width: "1em",
182
- height: "1em",
183
- fill: "none"
184
- }, props), _path$17 || (_path$17 = /*#__PURE__*/React.createElement("path", {
185
- d: "M8.999 3.333L5.665 6H3v4h2.666L9 12.667V3.333zm3.026 2.307a3.333 3.333 0 010 4.714"
182
+ height: "1em"
183
+ }, props), _path$L || (_path$L = /*#__PURE__*/React.createElement("path", {
184
+ d: "M8.999 3.333L5.665 6H3v4h2.666L9 12.667V3.333zm3.026 2.307a3.333 3.333 0 010 4.714",
185
+ stroke: "currentColor"
186
186
  })));
187
187
  }
188
188
 
189
- var _path$16;
189
+ var _path$K;
190
190
 
191
- function _extends$1b() { _extends$1b = 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$1b.apply(this, arguments); }
191
+ function _extends$17() { _extends$17 = 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$17.apply(this, arguments); }
192
192
 
193
193
  function SvgVolumeMute(props) {
194
- return /*#__PURE__*/React.createElement("svg", _extends$1b({
194
+ return /*#__PURE__*/React.createElement("svg", _extends$17({
195
195
  viewBox: "0 0 16 16",
196
+ fill: "none",
196
197
  strokeLinecap: "round",
197
198
  strokeLinejoin: "round",
198
- stroke: "currentColor",
199
199
  width: "1em",
200
- height: "1em",
201
- fill: "none"
202
- }, props), _path$16 || (_path$16 = /*#__PURE__*/React.createElement("path", {
203
- d: "M7.333 3.333L4 6H1.333v4H4l3.333 2.667V3.333z"
200
+ height: "1em"
201
+ }, props), _path$K || (_path$K = /*#__PURE__*/React.createElement("path", {
202
+ d: "M7.333 3.333L4 6H1.333v4H4l3.333 2.667V3.333z",
203
+ stroke: "currentColor"
204
204
  })));
205
205
  }
206
206
 
207
- var _path$15;
207
+ var _path$J;
208
208
 
209
- function _extends$1a() { _extends$1a = 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$1a.apply(this, arguments); }
209
+ function _extends$16() { _extends$16 = 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$16.apply(this, arguments); }
210
210
 
211
211
  function SvgVolumeOff(props) {
212
- return /*#__PURE__*/React.createElement("svg", _extends$1a({
212
+ return /*#__PURE__*/React.createElement("svg", _extends$16({
213
213
  viewBox: "0 0 16 16",
214
+ fill: "none",
214
215
  strokeLinecap: "round",
215
216
  strokeLinejoin: "round",
216
- stroke: "currentColor",
217
217
  width: "1em",
218
- height: "1em",
219
- fill: "none"
220
- }, props), _path$15 || (_path$15 = /*#__PURE__*/React.createElement("path", {
221
- d: "M7.333 3.333L4 6H1.333v4H4l3.333 2.667V3.333zm8 2.667l-4 4m0-4l4 4"
218
+ height: "1em"
219
+ }, props), _path$J || (_path$J = /*#__PURE__*/React.createElement("path", {
220
+ d: "M7.333 3.333L4 6H1.333v4H4l3.333 2.667V3.333zm8 2.667l-4 4m0-4l4 4",
221
+ stroke: "currentColor"
222
222
  })));
223
223
  }
224
224
 
225
- var _path$14;
225
+ var _path$I;
226
226
 
227
- function _extends$19() { _extends$19 = 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$19.apply(this, arguments); }
227
+ function _extends$15() { _extends$15 = 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$15.apply(this, arguments); }
228
228
 
229
229
  function SvgVolumeUp(props) {
230
- return /*#__PURE__*/React.createElement("svg", _extends$19({
230
+ return /*#__PURE__*/React.createElement("svg", _extends$15({
231
231
  viewBox: "0 0 16 16",
232
+ fill: "none",
232
233
  strokeLinecap: "round",
233
234
  strokeLinejoin: "round",
234
- stroke: "currentColor",
235
235
  width: "1em",
236
- height: "1em",
237
- fill: "none"
238
- }, props), _path$14 || (_path$14 = /*#__PURE__*/React.createElement("path", {
239
- d: "M7.333 3.333L4 6H1.333v4H4l3.333 2.667V3.333zm5.38-.046a6.667 6.667 0 010 9.426M10.36 5.64a3.333 3.333 0 010 4.713"
236
+ height: "1em"
237
+ }, props), _path$I || (_path$I = /*#__PURE__*/React.createElement("path", {
238
+ d: "M7.333 3.333L4 6H1.333v4H4l3.333 2.667V3.333zm5.38-.046a6.667 6.667 0 010 9.426M10.36 5.64a3.333 3.333 0 010 4.713",
239
+ stroke: "currentColor"
240
240
  })));
241
241
  }
242
242
 
@@ -278,21 +278,21 @@ function __rest(s, e) {
278
278
  return t;
279
279
  }
280
280
 
281
- var _path$2Q;
281
+ var _path$1W;
282
282
 
283
- 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); }
283
+ 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); }
284
284
 
285
285
  function SvgUser(props) {
286
- return /*#__PURE__*/React.createElement("svg", _extends$35({
286
+ return /*#__PURE__*/React.createElement("svg", _extends$31({
287
287
  viewBox: "0 0 16 16",
288
+ fill: "none",
288
289
  strokeLinecap: "round",
289
290
  strokeLinejoin: "round",
290
- stroke: "currentColor",
291
291
  width: "1em",
292
- height: "1em",
293
- fill: "none"
294
- }, props), _path$2Q || (_path$2Q = /*#__PURE__*/React.createElement("path", {
295
- 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"
292
+ height: "1em"
293
+ }, props), _path$1W || (_path$1W = /*#__PURE__*/React.createElement("path", {
294
+ 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",
295
+ stroke: "currentColor"
296
296
  })));
297
297
  }
298
298
 
@@ -622,8 +622,9 @@ var variantMap = {
622
622
 
623
623
  var Typography = forwardRef(function (props, ref) {
624
624
  props.weight; var _a = props.variant, variant = _a === void 0 ? 'body1' : _a; props.color; var restProps = __rest(props, ["weight", "variant", "color"]);
625
- var classes = useTypographyStyles(props);
626
- var component = variantMap[variant];
625
+ var validatedVariant = Object.keys(variantMap).includes(variant) ? variant : 'body1';
626
+ var classes = useTypographyStyles(__assign(__assign({}, props), { variant: validatedVariant }));
627
+ var component = variantMap[validatedVariant];
627
628
  return React__default.createElement(Typography$1, __assign({ component: component, ref: ref, classes: classes }, restProps, { variant: "inherit" }));
628
629
  });
629
630
  Typography.displayName = 'Typography';