@woobee/ui 0.2.3 → 0.2.4
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 +5 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -639,16 +639,15 @@ function Modal({
|
|
|
639
639
|
}
|
|
640
640
|
if (!mounted) return null;
|
|
641
641
|
return reactDom.createPortal(
|
|
642
|
-
/* @__PURE__ */ jsxRuntime.jsx(Transition, { show: open, onExited, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "fixed inset-x-0 text-sm bottom-0 z-[1300] px-0 bg-opacity-30
|
|
642
|
+
/* @__PURE__ */ jsxRuntime.jsx(Transition, { show: open, onExited, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "fixed inset-x-0 text-sm bottom-0 z-[1300] px-0 bg-opacity-30 md:px-6 md:inset-0 md:flex md:items-center md:justify-center", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
643
643
|
"div",
|
|
644
644
|
{
|
|
645
645
|
className: classNames({
|
|
646
646
|
"max-h-[100dvh] overflow-y-auto sm:w-full": true,
|
|
647
|
-
"
|
|
648
|
-
"
|
|
649
|
-
"
|
|
650
|
-
"
|
|
651
|
-
"h-[100dvh] lg:h-auto lg:max-w-3xl": size === "full"
|
|
647
|
+
"md:max-w-2xl": !size || size === "medium",
|
|
648
|
+
"md:max-w-md": size === "small",
|
|
649
|
+
"md:max-w-4xl": size === "large",
|
|
650
|
+
"h-[100dvh] md:h-auto md:max-w-3xl": size === "full"
|
|
652
651
|
}),
|
|
653
652
|
children: [
|
|
654
653
|
/* @__PURE__ */ jsxRuntime.jsx(
|