@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.cjs +5 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -505,6 +505,7 @@ var Modal = ({
|
|
|
505
505
|
}, [open, onOpenChange, onEscapeKeyDown]);
|
|
506
506
|
if (!open) return null;
|
|
507
507
|
const isBottomSheet = variant === "bottom-sheet";
|
|
508
|
+
const hasCustomMaxWidth = contentClassName?.includes("max-w-");
|
|
508
509
|
return /* @__PURE__ */ jsxRuntime.jsxs(ShadowPortal, { theme, children: [
|
|
509
510
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
510
511
|
"div",
|
|
@@ -538,7 +539,10 @@ var Modal = ({
|
|
|
538
539
|
tabIndex: -1,
|
|
539
540
|
className: cn(
|
|
540
541
|
"volr:border volr:shadow-xl volr:overflow-y-auto volr:relative volr:w-full volr:pointer-events-auto volr-surface volr-border-strong",
|
|
541
|
-
isBottomSheet ? "volr:max-w-full volr:max-h-[85vh] volr:rounded-t-3xl volr:px-4 volr:py-6 volr:shadow-2xl" :
|
|
542
|
+
isBottomSheet ? "volr:max-w-full volr:max-h-[85vh] volr:rounded-t-3xl volr:px-4 volr:py-6 volr:shadow-2xl" : cn(
|
|
543
|
+
"volr:rounded-2xl volr:p-5 volr:w-full volr:max-h-[90vh]",
|
|
544
|
+
!hasCustomMaxWidth && "volr:max-w-md"
|
|
545
|
+
),
|
|
542
546
|
className,
|
|
543
547
|
contentClassName
|
|
544
548
|
),
|