@underverse-ui/underverse 0.2.8 → 0.2.9
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 +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2332,6 +2332,7 @@ var Modal = ({
|
|
|
2332
2332
|
if (!isMounted || !isOpen && !isVisible) {
|
|
2333
2333
|
return null;
|
|
2334
2334
|
}
|
|
2335
|
+
const maxWidthClass = width ? "max-w-none" : fullWidth ? "max-w-full" : sizeStyles3[size];
|
|
2335
2336
|
const modalContent = /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: cn("fixed inset-0 z-[9999] flex items-center justify-center", overlayClassName), onClick: handleOverlayClick, children: [
|
|
2336
2337
|
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
2337
2338
|
"div",
|
|
@@ -2346,9 +2347,9 @@ var Modal = ({
|
|
|
2346
2347
|
"div",
|
|
2347
2348
|
{
|
|
2348
2349
|
className: cn(
|
|
2349
|
-
"relative w-full rounded-lg
|
|
2350
|
+
"relative w-full rounded-lg bg-card text-card-foreground shadow-xl",
|
|
2350
2351
|
"transition-all duration-200 ease-out",
|
|
2351
|
-
|
|
2352
|
+
maxWidthClass,
|
|
2352
2353
|
fullWidth && "mx-0",
|
|
2353
2354
|
className
|
|
2354
2355
|
),
|