@popmenu/audio-player 0.40.3 → 0.43.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 +101 -28
- package/build/index.es.js.map +1 -1
- package/build/index.js +101 -28
- package/build/index.js.map +1 -1
- package/package.json +2 -2
package/build/index.js
CHANGED
|
@@ -172,109 +172,109 @@ var classnames$1 = {exports: {}};
|
|
|
172
172
|
|
|
173
173
|
var classNames$1 = classnames$1.exports;
|
|
174
174
|
|
|
175
|
-
var _path$
|
|
175
|
+
var _path$j;
|
|
176
176
|
|
|
177
|
-
function _extends$
|
|
177
|
+
function _extends$V() { _extends$V = 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$V.apply(this, arguments); }
|
|
178
178
|
|
|
179
179
|
function SvgPause(props) {
|
|
180
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
180
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$V({
|
|
181
181
|
viewBox: "0 0 16 16",
|
|
182
182
|
fill: "none",
|
|
183
183
|
strokeLinecap: "round",
|
|
184
184
|
strokeLinejoin: "round",
|
|
185
185
|
width: "1em",
|
|
186
186
|
height: "1em"
|
|
187
|
-
}, props), _path$
|
|
187
|
+
}, props), _path$j || (_path$j = /*#__PURE__*/React__namespace.createElement("path", {
|
|
188
188
|
d: "M6.667 2.667H4v10.666h2.667V2.666zm5.333 0H9.333v10.666H12V2.666z",
|
|
189
189
|
stroke: "currentColor"
|
|
190
190
|
})));
|
|
191
191
|
}
|
|
192
192
|
|
|
193
|
-
var _path$
|
|
193
|
+
var _path$i;
|
|
194
194
|
|
|
195
|
-
function _extends$
|
|
195
|
+
function _extends$T() { _extends$T = 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$T.apply(this, arguments); }
|
|
196
196
|
|
|
197
197
|
function SvgPlay(props) {
|
|
198
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
198
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$T({
|
|
199
199
|
viewBox: "0 0 16 16",
|
|
200
200
|
fill: "none",
|
|
201
201
|
strokeLinecap: "round",
|
|
202
202
|
strokeLinejoin: "round",
|
|
203
203
|
width: "1em",
|
|
204
204
|
height: "1em"
|
|
205
|
-
}, props), _path$
|
|
205
|
+
}, props), _path$i || (_path$i = /*#__PURE__*/React__namespace.createElement("path", {
|
|
206
206
|
d: "M3.333 2l9.334 6-9.334 6V2z",
|
|
207
207
|
stroke: "currentColor"
|
|
208
208
|
})));
|
|
209
209
|
}
|
|
210
210
|
|
|
211
|
-
var _path$
|
|
211
|
+
var _path$g;
|
|
212
212
|
|
|
213
|
-
function _extends$
|
|
213
|
+
function _extends$Q() { _extends$Q = 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$Q.apply(this, arguments); }
|
|
214
214
|
|
|
215
215
|
function SvgVolumeDown(props) {
|
|
216
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
216
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$Q({
|
|
217
217
|
viewBox: "0 0 16 16",
|
|
218
218
|
fill: "none",
|
|
219
219
|
strokeLinecap: "round",
|
|
220
220
|
strokeLinejoin: "round",
|
|
221
221
|
width: "1em",
|
|
222
222
|
height: "1em"
|
|
223
|
-
}, props), _path$
|
|
223
|
+
}, props), _path$g || (_path$g = /*#__PURE__*/React__namespace.createElement("path", {
|
|
224
224
|
d: "M8.999 3.333L5.665 6H3v4h2.666L9 12.667V3.333zm3.026 2.307a3.333 3.333 0 010 4.714",
|
|
225
225
|
stroke: "currentColor"
|
|
226
226
|
})));
|
|
227
227
|
}
|
|
228
228
|
|
|
229
|
-
var _path$
|
|
229
|
+
var _path$f;
|
|
230
230
|
|
|
231
|
-
function _extends$
|
|
231
|
+
function _extends$P() { _extends$P = 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$P.apply(this, arguments); }
|
|
232
232
|
|
|
233
233
|
function SvgVolumeMute(props) {
|
|
234
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
234
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$P({
|
|
235
235
|
viewBox: "0 0 16 16",
|
|
236
236
|
fill: "none",
|
|
237
237
|
strokeLinecap: "round",
|
|
238
238
|
strokeLinejoin: "round",
|
|
239
239
|
width: "1em",
|
|
240
240
|
height: "1em"
|
|
241
|
-
}, props), _path$
|
|
241
|
+
}, props), _path$f || (_path$f = /*#__PURE__*/React__namespace.createElement("path", {
|
|
242
242
|
d: "M7.333 3.333L4 6H1.333v4H4l3.333 2.667V3.333z",
|
|
243
243
|
stroke: "currentColor"
|
|
244
244
|
})));
|
|
245
245
|
}
|
|
246
246
|
|
|
247
|
-
var _path$
|
|
247
|
+
var _path$e;
|
|
248
248
|
|
|
249
|
-
function _extends$
|
|
249
|
+
function _extends$O() { _extends$O = 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$O.apply(this, arguments); }
|
|
250
250
|
|
|
251
251
|
function SvgVolumeOff(props) {
|
|
252
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
252
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$O({
|
|
253
253
|
viewBox: "0 0 16 16",
|
|
254
254
|
fill: "none",
|
|
255
255
|
strokeLinecap: "round",
|
|
256
256
|
strokeLinejoin: "round",
|
|
257
257
|
width: "1em",
|
|
258
258
|
height: "1em"
|
|
259
|
-
}, props), _path$
|
|
259
|
+
}, props), _path$e || (_path$e = /*#__PURE__*/React__namespace.createElement("path", {
|
|
260
260
|
d: "M7.333 3.333L4 6H1.333v4H4l3.333 2.667V3.333zm8 2.667l-4 4m0-4l4 4",
|
|
261
261
|
stroke: "currentColor"
|
|
262
262
|
})));
|
|
263
263
|
}
|
|
264
264
|
|
|
265
|
-
var _path$
|
|
265
|
+
var _path$d;
|
|
266
266
|
|
|
267
|
-
function _extends$
|
|
267
|
+
function _extends$N() { _extends$N = 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$N.apply(this, arguments); }
|
|
268
268
|
|
|
269
269
|
function SvgVolumeUp(props) {
|
|
270
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
270
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$N({
|
|
271
271
|
viewBox: "0 0 16 16",
|
|
272
272
|
fill: "none",
|
|
273
273
|
strokeLinecap: "round",
|
|
274
274
|
strokeLinejoin: "round",
|
|
275
275
|
width: "1em",
|
|
276
276
|
height: "1em"
|
|
277
|
-
}, props), _path$
|
|
277
|
+
}, props), _path$d || (_path$d = /*#__PURE__*/React__namespace.createElement("path", {
|
|
278
278
|
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",
|
|
279
279
|
stroke: "currentColor"
|
|
280
280
|
})));
|
|
@@ -318,19 +318,19 @@ function __rest(s, e) {
|
|
|
318
318
|
return t;
|
|
319
319
|
}
|
|
320
320
|
|
|
321
|
-
var _path$
|
|
321
|
+
var _path$F;
|
|
322
322
|
|
|
323
|
-
function _extends$
|
|
323
|
+
function _extends$1s() { _extends$1s = 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$1s.apply(this, arguments); }
|
|
324
324
|
|
|
325
325
|
function SvgUser(props) {
|
|
326
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
326
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1s({
|
|
327
327
|
viewBox: "0 0 16 16",
|
|
328
328
|
fill: "none",
|
|
329
329
|
strokeLinecap: "round",
|
|
330
330
|
strokeLinejoin: "round",
|
|
331
331
|
width: "1em",
|
|
332
332
|
height: "1em"
|
|
333
|
-
}, props), _path$
|
|
333
|
+
}, props), _path$F || (_path$F = /*#__PURE__*/React__namespace.createElement("path", {
|
|
334
334
|
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",
|
|
335
335
|
stroke: "currentColor"
|
|
336
336
|
})));
|
|
@@ -563,6 +563,79 @@ var Checkbox = React.forwardRef(function (props, ref) {
|
|
|
563
563
|
});
|
|
564
564
|
Checkbox.displayName = 'Checkbox';
|
|
565
565
|
|
|
566
|
+
var getBackground = function (theme) { return function (props) {
|
|
567
|
+
var variant = props.variant, severity = props.severity;
|
|
568
|
+
var background;
|
|
569
|
+
var backgrounds = {
|
|
570
|
+
outlined: 'none',
|
|
571
|
+
error: 'error.main',
|
|
572
|
+
warning: 'warning.main',
|
|
573
|
+
info: 'info.light',
|
|
574
|
+
success: 'success.light',
|
|
575
|
+
};
|
|
576
|
+
if (variant === 'outlined') {
|
|
577
|
+
background = backgrounds[variant];
|
|
578
|
+
}
|
|
579
|
+
else if (severity) {
|
|
580
|
+
var _a = backgrounds[severity].split('.'), color = _a[0], colorVariant = _a[1];
|
|
581
|
+
background = theme.palette[color][colorVariant];
|
|
582
|
+
}
|
|
583
|
+
return background;
|
|
584
|
+
}; };
|
|
585
|
+
var getColor = function (theme) { return function (props) {
|
|
586
|
+
var variant = props.variant, severity = props.severity;
|
|
587
|
+
var textColor;
|
|
588
|
+
if (variant === 'outlined' && severity) {
|
|
589
|
+
var textColors = {
|
|
590
|
+
error: theme.palette.error.main,
|
|
591
|
+
info: theme.palette.info.main,
|
|
592
|
+
warning: theme.palette.warning.dark,
|
|
593
|
+
success: theme.palette.success.dark,
|
|
594
|
+
};
|
|
595
|
+
textColor = textColors[severity];
|
|
596
|
+
}
|
|
597
|
+
else if (variant === 'outlined' && !severity) {
|
|
598
|
+
textColor = theme.palette.grey[700];
|
|
599
|
+
}
|
|
600
|
+
else if ((variant === 'default' || variant === undefined) && severity) {
|
|
601
|
+
var textColors = {
|
|
602
|
+
error: theme.palette.common.white,
|
|
603
|
+
info: theme.palette.secondary.main,
|
|
604
|
+
warning: theme.palette.secondary.main,
|
|
605
|
+
success: theme.palette.secondary.main,
|
|
606
|
+
};
|
|
607
|
+
textColor = textColors[severity];
|
|
608
|
+
}
|
|
609
|
+
return textColor;
|
|
610
|
+
}; };
|
|
611
|
+
var getBorder = function (theme) { return function (props) {
|
|
612
|
+
var variant = props.variant, severity = props.severity;
|
|
613
|
+
var borderColor;
|
|
614
|
+
if (variant === 'outlined' && severity) {
|
|
615
|
+
var borderColors = {
|
|
616
|
+
error: theme.palette.error.main,
|
|
617
|
+
info: theme.palette.info.main,
|
|
618
|
+
warning: theme.palette.warning.dark,
|
|
619
|
+
success: theme.palette.success.dark,
|
|
620
|
+
};
|
|
621
|
+
borderColor = borderColors[severity];
|
|
622
|
+
}
|
|
623
|
+
return borderColor;
|
|
624
|
+
}; };
|
|
625
|
+
styles.makeStyles(function (theme) { return ({
|
|
626
|
+
root: {
|
|
627
|
+
background: getBackground(theme),
|
|
628
|
+
color: getColor(theme),
|
|
629
|
+
borderColor: getBorder(theme),
|
|
630
|
+
borderRadius: theme.spacing(0.5),
|
|
631
|
+
},
|
|
632
|
+
icon: {
|
|
633
|
+
color: 'inherit',
|
|
634
|
+
height: theme.spacing(2),
|
|
635
|
+
width: theme.spacing(2),
|
|
636
|
+
},
|
|
637
|
+
}); });
|
|
638
|
+
|
|
566
639
|
var defaultTypographyProps = {
|
|
567
640
|
variant: 'body1',
|
|
568
641
|
};
|