@popmenu/dashboard 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 CHANGED
@@ -161,6 +161,7 @@ var useIconStyles = makeStyles(function (_a) {
161
161
  if (props.color) {
162
162
  if (semanticColors.includes(props.color.split('.')[0])) {
163
163
  var _a = props.color.split('.'), color = _a[0], _b = _a[1], variant = _b === void 0 ? 'main' : _b;
164
+ // @ts-expect-error - todo.
164
165
  value = palette[color][variant];
165
166
  }
166
167
  else if (props.color.search(/^(rgb|hsla|#)/) !== -1) {
@@ -396,6 +397,7 @@ var getBackground = function (theme) { return function (props) {
396
397
  }
397
398
  else if (severity) {
398
399
  var _a = backgrounds[severity].split('.'), color = _a[0], colorVariant = _a[1];
400
+ // @ts-expect-error - todo.
399
401
  background = theme.palette[color][colorVariant];
400
402
  }
401
403
  return background;
@@ -474,14 +476,18 @@ var getCustomColor = function (theme, color) {
474
476
  var isTextColor = color && ['textPrimary', 'textSecondary'].includes(color);
475
477
  switch (true) {
476
478
  case isCommonColor:
479
+ // @ts-expect-error - todo.
477
480
  return theme.palette.common[color];
478
481
  case Boolean(isGreyColor):
479
482
  var scale = color.split('.')[1];
483
+ // @ts-expect-error - todo.
480
484
  return theme.palette.grey[scale] || theme.palette.grey[900];
481
485
  case Boolean(isSemanticColor):
482
486
  var _a = color.split('.'), paletteKey = _a[0], _b = _a[1], variant = _b === void 0 ? 'main' : _b;
487
+ // @ts-expect-error - todo.
483
488
  return theme.palette[paletteKey][variant];
484
489
  case isTextColor:
490
+ // @ts-expect-error - todo.
485
491
  return theme.palette.text[color.slice(4).toLowerCase()];
486
492
  default:
487
493
  return undefined;
@@ -539,9 +545,12 @@ Typography.defaultProps = defaultTypographyProps;
539
545
 
540
546
  var getFadeStop = function (_a, typographyVariant) {
541
547
  var typography = _a.typography;
548
+ // @ts-expect-error - todo.
542
549
  return !isNaN(Number(typography[typographyVariant].lineHeight))
543
- ? typography[typographyVariant].lineHeight + "rem"
544
- : typography[typographyVariant].lineHeight;
550
+ ? // @ts-expect-error - todo.
551
+ typography[typographyVariant].lineHeight + "rem"
552
+ : // @ts-expect-error - todo.
553
+ typography[typographyVariant].lineHeight;
545
554
  };
546
555
  makeStyles(function (theme) { return ({
547
556
  overlay: {
@@ -572,6 +581,7 @@ makeStyles(function (theme) { return ({
572
581
  var textColor = props.textColor;
573
582
  if (Object.values(SemanticColors).includes(textColor)) {
574
583
  var _a = textColor.split('.'), semanticColor = _a[0], shade = _a[1];
584
+ // @ts-expect-error - todo.
575
585
  return theme.palette[semanticColor][shade];
576
586
  }
577
587
  else if (textColor) {
@@ -588,6 +598,7 @@ makeStyles(function (theme) { return ({
588
598
  var dividerColor = props.dividerColor;
589
599
  if (Object.values(SemanticColors).includes(dividerColor)) {
590
600
  var _a = dividerColor.split('.'), semanticColor = _a[0], shade = _a[1];
601
+ // @ts-expect-error - todo.
591
602
  return theme.palette[semanticColor][shade];
592
603
  }
593
604
  else if (dividerColor) {