@popmenu/audio-player 0.107.0 → 0.109.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 +13 -2
- package/build/index.es.js.map +1 -1
- package/build/index.js +13 -2
- package/build/index.js.map +1 -1
- package/package.json +2 -2
package/build/index.es.js
CHANGED
|
@@ -316,6 +316,7 @@ var useIconStyles = makeStyles(function (_a) {
|
|
|
316
316
|
if (props.color) {
|
|
317
317
|
if (semanticColors.includes(props.color.split('.')[0])) {
|
|
318
318
|
var _a = props.color.split('.'), color = _a[0], _b = _a[1], variant = _b === void 0 ? 'main' : _b;
|
|
319
|
+
// @ts-expect-error - todo.
|
|
319
320
|
value = palette[color][variant];
|
|
320
321
|
}
|
|
321
322
|
else if (props.color.search(/^(rgb|hsla|#)/) !== -1) {
|
|
@@ -551,6 +552,7 @@ var getBackground = function (theme) { return function (props) {
|
|
|
551
552
|
}
|
|
552
553
|
else if (severity) {
|
|
553
554
|
var _a = backgrounds[severity].split('.'), color = _a[0], colorVariant = _a[1];
|
|
555
|
+
// @ts-expect-error - todo.
|
|
554
556
|
background = theme.palette[color][colorVariant];
|
|
555
557
|
}
|
|
556
558
|
return background;
|
|
@@ -629,14 +631,18 @@ var getCustomColor = function (theme, color) {
|
|
|
629
631
|
var isTextColor = color && ['textPrimary', 'textSecondary'].includes(color);
|
|
630
632
|
switch (true) {
|
|
631
633
|
case isCommonColor:
|
|
634
|
+
// @ts-expect-error - todo.
|
|
632
635
|
return theme.palette.common[color];
|
|
633
636
|
case Boolean(isGreyColor):
|
|
634
637
|
var scale = color.split('.')[1];
|
|
638
|
+
// @ts-expect-error - todo.
|
|
635
639
|
return theme.palette.grey[scale] || theme.palette.grey[900];
|
|
636
640
|
case Boolean(isSemanticColor):
|
|
637
641
|
var _a = color.split('.'), paletteKey = _a[0], _b = _a[1], variant = _b === void 0 ? 'main' : _b;
|
|
642
|
+
// @ts-expect-error - todo.
|
|
638
643
|
return theme.palette[paletteKey][variant];
|
|
639
644
|
case isTextColor:
|
|
645
|
+
// @ts-expect-error - todo.
|
|
640
646
|
return theme.palette.text[color.slice(4).toLowerCase()];
|
|
641
647
|
default:
|
|
642
648
|
return undefined;
|
|
@@ -694,9 +700,12 @@ Typography.defaultProps = defaultTypographyProps;
|
|
|
694
700
|
|
|
695
701
|
var getFadeStop = function (_a, typographyVariant) {
|
|
696
702
|
var typography = _a.typography;
|
|
703
|
+
// @ts-expect-error - todo.
|
|
697
704
|
return !isNaN(Number(typography[typographyVariant].lineHeight))
|
|
698
|
-
?
|
|
699
|
-
|
|
705
|
+
? // @ts-expect-error - todo.
|
|
706
|
+
typography[typographyVariant].lineHeight + "rem"
|
|
707
|
+
: // @ts-expect-error - todo.
|
|
708
|
+
typography[typographyVariant].lineHeight;
|
|
700
709
|
};
|
|
701
710
|
makeStyles(function (theme) { return ({
|
|
702
711
|
overlay: {
|
|
@@ -727,6 +736,7 @@ makeStyles(function (theme) { return ({
|
|
|
727
736
|
var textColor = props.textColor;
|
|
728
737
|
if (Object.values(SemanticColors).includes(textColor)) {
|
|
729
738
|
var _a = textColor.split('.'), semanticColor = _a[0], shade = _a[1];
|
|
739
|
+
// @ts-expect-error - todo.
|
|
730
740
|
return theme.palette[semanticColor][shade];
|
|
731
741
|
}
|
|
732
742
|
else if (textColor) {
|
|
@@ -743,6 +753,7 @@ makeStyles(function (theme) { return ({
|
|
|
743
753
|
var dividerColor = props.dividerColor;
|
|
744
754
|
if (Object.values(SemanticColors).includes(dividerColor)) {
|
|
745
755
|
var _a = dividerColor.split('.'), semanticColor = _a[0], shade = _a[1];
|
|
756
|
+
// @ts-expect-error - todo.
|
|
746
757
|
return theme.palette[semanticColor][shade];
|
|
747
758
|
}
|
|
748
759
|
else if (dividerColor) {
|