@sarunyu/system-one 4.2.1 → 4.2.2
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 +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/src/components/modal.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3472,6 +3472,7 @@ function Modal({
|
|
|
3472
3472
|
}) {
|
|
3473
3473
|
const isContent = variant === "content";
|
|
3474
3474
|
const isAlert = variant === "alert";
|
|
3475
|
+
const isDialog = variant === "dialog";
|
|
3475
3476
|
const isDesktop = responsive === "desktop";
|
|
3476
3477
|
const alert = ALERT_CONFIG[alertStatus];
|
|
3477
3478
|
return /* @__PURE__ */ jsxs(
|
|
@@ -3480,7 +3481,7 @@ function Modal({
|
|
|
3480
3481
|
className: cn(
|
|
3481
3482
|
"w-auto overflow-hidden border border-border bg-background",
|
|
3482
3483
|
isAlert ? "w-[343px] rounded-2xl" : "rounded-xl",
|
|
3483
|
-
isContent ? "min-w-[343px] max-w-[500px] " : isAlert ? void 0 : "min-w-[375px] max-w-[500px]",
|
|
3484
|
+
isContent ? "min-w-[343px] max-w-[500px] " : isAlert ? void 0 : isDialog && "min-w-[375px] max-w-[500px]",
|
|
3484
3485
|
className
|
|
3485
3486
|
),
|
|
3486
3487
|
children: [
|