mui-drawer 1.0.13 → 1.0.16

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.
@@ -3415,7 +3415,9 @@ const MuiDrawer = (props) => {
3415
3415
  } = props;
3416
3416
  const {
3417
3417
  primaryCtaTitle,
3418
+ primaryCtaClassName,
3418
3419
  secondaryCtaTitle,
3420
+ secondaryCtaClassName,
3419
3421
  isPrimaryCtaLoading = false,
3420
3422
  isPrimaryCtaDisabled,
3421
3423
  isSecondaryCtaLoading = false,
@@ -3423,6 +3425,7 @@ const MuiDrawer = (props) => {
3423
3425
  onPrimaryCtaClick = _noop,
3424
3426
  onSecondaryCtaClick = _noop,
3425
3427
  tertiaryCtaTitle,
3428
+ tertiaryCtaClassName,
3426
3429
  tertiaryCtaStartIcon,
3427
3430
  isTertiaryCtaLoading = false,
3428
3431
  isTertiaryCtaDisabled,
@@ -3531,7 +3534,8 @@ const MuiDrawer = (props) => {
3531
3534
  LoadingButton,
3532
3535
  {
3533
3536
  className: classNames(
3534
- tertiaryCtaType === TERTIARY_CTA_TYPES.DESTRUCTIVE ? "tertiary-cta-destructive" : ""
3537
+ tertiaryCtaType === TERTIARY_CTA_TYPES.DESTRUCTIVE ? "tertiary-cta-destructive" : "",
3538
+ tertiaryCtaClassName
3535
3539
  ),
3536
3540
  variant: "text",
3537
3541
  onClick: onTertiaryCtaClick,
@@ -3557,7 +3561,7 @@ const MuiDrawer = (props) => {
3557
3561
  children: /* @__PURE__ */ jsx(
3558
3562
  LoadingButton,
3559
3563
  {
3560
- className: "vi-drawer-cta",
3564
+ className: classNames("vi-drawer-cta", secondaryCtaClassName),
3561
3565
  variant: "outlined",
3562
3566
  onClick: onSecondaryCtaClick,
3563
3567
  loading: isSecondaryCtaLoading,
@@ -3577,7 +3581,8 @@ const MuiDrawer = (props) => {
3577
3581
  {
3578
3582
  className: classNames(
3579
3583
  "vi-drawer-cta",
3580
- subtype === "destructive" ? "destructive" : ""
3584
+ subtype === "destructive" ? "destructive" : "",
3585
+ primaryCtaClassName
3581
3586
  ),
3582
3587
  variant: "contained",
3583
3588
  onClick: onPrimaryCtaClick,
@@ -2,8 +2,11 @@ import { DrawerProps } from '@mui/material';
2
2
  import { INFORMATION_SUBTYPES, INPUT_SUBTYPES, DRAWER_TYPES, TERTIARY_CTA_TYPES } from './muiDrawer.types';
3
3
  export interface IActions {
4
4
  primaryCtaTitle?: string;
5
+ primaryCtaClassName?: string;
5
6
  secondaryCtaTitle?: string;
7
+ secondaryCtaClassName?: string;
6
8
  tertiaryCtaTitle?: string;
9
+ tertiaryCtaClassName?: string;
7
10
  showPrimaryCtaTooltipMsg?: boolean;
8
11
  showSecondaryCtaTooltipMsg?: boolean;
9
12
  showTertiaryCtaTooltipMsg?: boolean;
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.13",
10
+ "version": "1.0.16",
11
11
  "files": [
12
12
  "dist"
13
13
  ],