@volr/react-ui 0.1.78 → 0.1.79

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/dist/index.js CHANGED
@@ -500,6 +500,7 @@ var Modal = ({
500
500
  }, [open, onOpenChange, onEscapeKeyDown]);
501
501
  if (!open) return null;
502
502
  const isBottomSheet = variant === "bottom-sheet";
503
+ const hasCustomMaxWidth = contentClassName?.includes("max-w-");
503
504
  return /* @__PURE__ */ jsxs(ShadowPortal, { theme, children: [
504
505
  /* @__PURE__ */ jsx(
505
506
  "div",
@@ -533,7 +534,10 @@ var Modal = ({
533
534
  tabIndex: -1,
534
535
  className: cn(
535
536
  "volr:border volr:shadow-xl volr:overflow-y-auto volr:relative volr:w-full volr:pointer-events-auto volr-surface volr-border-strong",
536
- isBottomSheet ? "volr:max-w-full volr:max-h-[85vh] volr:rounded-t-3xl volr:px-4 volr:py-6 volr:shadow-2xl" : "volr:rounded-2xl volr:p-5 volr:max-w-md volr:w-full volr:max-h-[90vh]",
537
+ isBottomSheet ? "volr:max-w-full volr:max-h-[85vh] volr:rounded-t-3xl volr:px-4 volr:py-6 volr:shadow-2xl" : cn(
538
+ "volr:rounded-2xl volr:p-5 volr:w-full volr:max-h-[90vh]",
539
+ !hasCustomMaxWidth && "volr:max-w-md"
540
+ ),
537
541
  className,
538
542
  contentClassName
539
543
  ),