@optilogic/core 1.3.7 → 1.4.0
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 +8 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +23 -4
- package/dist/index.d.ts +23 -4
- package/dist/index.js +8 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/modal.tsx +29 -4
package/dist/index.cjs
CHANGED
|
@@ -2128,7 +2128,8 @@ function Modal({
|
|
|
2128
2128
|
footer,
|
|
2129
2129
|
size = "md",
|
|
2130
2130
|
zIndex = 50,
|
|
2131
|
-
className
|
|
2131
|
+
className,
|
|
2132
|
+
contentClassName
|
|
2132
2133
|
}) {
|
|
2133
2134
|
React20__namespace.useEffect(() => {
|
|
2134
2135
|
if (!isOpen) return;
|
|
@@ -2154,7 +2155,10 @@ function Modal({
|
|
|
2154
2155
|
const sizeClasses = {
|
|
2155
2156
|
sm: "max-w-md",
|
|
2156
2157
|
md: "max-w-lg",
|
|
2157
|
-
lg: "max-w-2xl"
|
|
2158
|
+
lg: "max-w-2xl",
|
|
2159
|
+
xl: "max-w-4xl",
|
|
2160
|
+
"2xl": "max-w-6xl",
|
|
2161
|
+
full: "max-w-[95vw]"
|
|
2158
2162
|
};
|
|
2159
2163
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2160
2164
|
"div",
|
|
@@ -2172,7 +2176,8 @@ function Modal({
|
|
|
2172
2176
|
"bg-card border border-border rounded-lg shadow-lg",
|
|
2173
2177
|
"flex flex-col",
|
|
2174
2178
|
"max-h-[90vh]",
|
|
2175
|
-
sizeClasses[size]
|
|
2179
|
+
sizeClasses[size],
|
|
2180
|
+
contentClassName
|
|
2176
2181
|
),
|
|
2177
2182
|
onClick: (e) => e.stopPropagation(),
|
|
2178
2183
|
children: [
|