framepexls-ui-lib 0.2.1 → 0.2.3
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/Dialog.d.mts +3 -1
- package/dist/Dialog.d.ts +3 -1
- package/dist/Dialog.js +3 -3
- package/dist/Dialog.mjs +3 -3
- package/package.json +1 -1
package/dist/Dialog.d.mts
CHANGED
|
@@ -25,9 +25,11 @@ declare function DialogHeader({ title, description, onClose, showClose, actions,
|
|
|
25
25
|
compact?: boolean;
|
|
26
26
|
className?: string;
|
|
27
27
|
}): react_jsx_runtime.JSX.Element;
|
|
28
|
-
declare function DialogBody({ children, padded }: {
|
|
28
|
+
declare function DialogBody({ children, padded, className, noScroll }: {
|
|
29
29
|
children: React__default.ReactNode;
|
|
30
30
|
padded?: boolean;
|
|
31
|
+
className?: string;
|
|
32
|
+
noScroll?: boolean;
|
|
31
33
|
}): react_jsx_runtime.JSX.Element;
|
|
32
34
|
declare function DialogFooter({ children, align, }: {
|
|
33
35
|
children: React__default.ReactNode;
|
package/dist/Dialog.d.ts
CHANGED
|
@@ -25,9 +25,11 @@ declare function DialogHeader({ title, description, onClose, showClose, actions,
|
|
|
25
25
|
compact?: boolean;
|
|
26
26
|
className?: string;
|
|
27
27
|
}): react_jsx_runtime.JSX.Element;
|
|
28
|
-
declare function DialogBody({ children, padded }: {
|
|
28
|
+
declare function DialogBody({ children, padded, className, noScroll }: {
|
|
29
29
|
children: React__default.ReactNode;
|
|
30
30
|
padded?: boolean;
|
|
31
|
+
className?: string;
|
|
32
|
+
noScroll?: boolean;
|
|
31
33
|
}): react_jsx_runtime.JSX.Element;
|
|
32
34
|
declare function DialogFooter({ children, align, }: {
|
|
33
35
|
children: React__default.ReactNode;
|
package/dist/Dialog.js
CHANGED
|
@@ -157,7 +157,7 @@ function DialogBase({
|
|
|
157
157
|
className: cx(
|
|
158
158
|
"w-full overflow-hidden rounded-3xl border border-slate-200 bg-white shadow-xl",
|
|
159
159
|
"dark:border-white/10 dark:bg-[#0b0a0a]",
|
|
160
|
-
"flex max-h-[88vh] flex-col",
|
|
160
|
+
size === "full" ? "flex h-[calc(100vh-2rem)] flex-col" : "flex max-h-[88vh] flex-col",
|
|
161
161
|
sizeToMaxW[size],
|
|
162
162
|
className
|
|
163
163
|
),
|
|
@@ -215,8 +215,8 @@ function DialogHeader({
|
|
|
215
215
|
] })
|
|
216
216
|
] }) });
|
|
217
217
|
}
|
|
218
|
-
function DialogBody({ children, padded = true }) {
|
|
219
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: cx("min-h-[60px] flex-1 overflow-auto", padded && "px-6 pb-6 pt-2"), children });
|
|
218
|
+
function DialogBody({ children, padded = true, className, noScroll = false }) {
|
|
219
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: cx("min-h-[60px] flex-1", noScroll ? "overflow-hidden" : "overflow-auto", padded && "px-6 pb-6 pt-2", className), children });
|
|
220
220
|
}
|
|
221
221
|
function DialogFooter({
|
|
222
222
|
children,
|
package/dist/Dialog.mjs
CHANGED
|
@@ -117,7 +117,7 @@ function DialogBase({
|
|
|
117
117
|
className: cx(
|
|
118
118
|
"w-full overflow-hidden rounded-3xl border border-slate-200 bg-white shadow-xl",
|
|
119
119
|
"dark:border-white/10 dark:bg-[#0b0a0a]",
|
|
120
|
-
"flex max-h-[88vh] flex-col",
|
|
120
|
+
size === "full" ? "flex h-[calc(100vh-2rem)] flex-col" : "flex max-h-[88vh] flex-col",
|
|
121
121
|
sizeToMaxW[size],
|
|
122
122
|
className
|
|
123
123
|
),
|
|
@@ -175,8 +175,8 @@ function DialogHeader({
|
|
|
175
175
|
] })
|
|
176
176
|
] }) });
|
|
177
177
|
}
|
|
178
|
-
function DialogBody({ children, padded = true }) {
|
|
179
|
-
return /* @__PURE__ */ jsx("div", { className: cx("min-h-[60px] flex-1 overflow-auto", padded && "px-6 pb-6 pt-2"), children });
|
|
178
|
+
function DialogBody({ children, padded = true, className, noScroll = false }) {
|
|
179
|
+
return /* @__PURE__ */ jsx("div", { className: cx("min-h-[60px] flex-1", noScroll ? "overflow-hidden" : "overflow-auto", padded && "px-6 pb-6 pt-2", className), children });
|
|
180
180
|
}
|
|
181
181
|
function DialogFooter({
|
|
182
182
|
children,
|