mui-drawer 1.0.12 → 1.0.13

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.
@@ -3429,7 +3429,10 @@ const MuiDrawer = (props) => {
3429
3429
  onTertiaryCtaClick = _noop,
3430
3430
  primaryCtaTooltipText,
3431
3431
  secondaryCtaTooltipText,
3432
- tertiaryCtaTooltipText
3432
+ tertiaryCtaTooltipText,
3433
+ showPrimaryCtaTooltipMsg = false,
3434
+ showSecondaryCtaTooltipMsg = false,
3435
+ showTertiaryCtaTooltipMsg = false
3433
3436
  } = actions || {};
3434
3437
  const config = DRAWER_CONFIGS[type][subtype] || DRAWER_CONFIGS[type].default;
3435
3438
  const showFooter = showActions && (primaryCtaTitle || secondaryCtaTitle || tertiaryCtaTitle);
@@ -3438,6 +3441,9 @@ const MuiDrawer = (props) => {
3438
3441
  secondaryCtaTitle,
3439
3442
  tertiaryCtaTitle
3440
3443
  ].filter(Boolean).length;
3444
+ const primaryCtaTooltipTitle = isPrimaryCtaDisabled || showPrimaryCtaTooltipMsg ? primaryCtaTooltipText : "";
3445
+ const secondaryCtaTooltipTitle = isSecondaryCtaDisabled || showSecondaryCtaTooltipMsg ? secondaryCtaTooltipText : "";
3446
+ const tertiaryCtaTooltipTitle = isTertiaryCtaDisabled || showTertiaryCtaTooltipMsg ? tertiaryCtaTooltipText : "";
3441
3447
  const handleClose = () => {
3442
3448
  if (config?.DISMISSIBLE === "full") {
3443
3449
  onClose();
@@ -3519,7 +3525,7 @@ const MuiDrawer = (props) => {
3519
3525
  tertiaryCtaTitle && /* @__PURE__ */ jsx(
3520
3526
  Tooltip,
3521
3527
  {
3522
- title: isTertiaryCtaDisabled ? tertiaryCtaTooltipText : "",
3528
+ title: tertiaryCtaTooltipTitle,
3523
3529
  arrow: true,
3524
3530
  children: /* @__PURE__ */ jsx(
3525
3531
  LoadingButton,
@@ -3546,7 +3552,7 @@ const MuiDrawer = (props) => {
3546
3552
  secondaryCtaTitle && /* @__PURE__ */ jsx(
3547
3553
  Tooltip,
3548
3554
  {
3549
- title: isSecondaryCtaDisabled ? secondaryCtaTooltipText : "",
3555
+ title: secondaryCtaTooltipTitle,
3550
3556
  arrow: true,
3551
3557
  children: /* @__PURE__ */ jsx(
3552
3558
  LoadingButton,
@@ -3564,7 +3570,7 @@ const MuiDrawer = (props) => {
3564
3570
  primaryCtaTitle && /* @__PURE__ */ jsx(
3565
3571
  Tooltip,
3566
3572
  {
3567
- title: isPrimaryCtaDisabled ? primaryCtaTooltipText : "",
3573
+ title: primaryCtaTooltipTitle,
3568
3574
  arrow: true,
3569
3575
  children: /* @__PURE__ */ jsx(
3570
3576
  LoadingButton,
@@ -4,6 +4,9 @@ export interface IActions {
4
4
  primaryCtaTitle?: string;
5
5
  secondaryCtaTitle?: string;
6
6
  tertiaryCtaTitle?: string;
7
+ showPrimaryCtaTooltipMsg?: boolean;
8
+ showSecondaryCtaTooltipMsg?: boolean;
9
+ showTertiaryCtaTooltipMsg?: boolean;
7
10
  primaryCtaTooltipText?: string;
8
11
  secondaryCtaTooltipText?: string;
9
12
  tertiaryCtaTooltipText?: string;
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "url": "https://github.com/viplatform/mui-drawer/issues"
8
8
  },
9
9
  "homepage": "https://github.com/viplatform/mui-drawer#readme",
10
- "version": "1.0.12",
10
+ "version": "1.0.13",
11
11
  "files": [
12
12
  "dist"
13
13
  ],