@appolabs/ui 0.1.12 → 0.1.13
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 +5 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1373,7 +1373,7 @@ var DialogOverlay = React40__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
1373
1373
|
}
|
|
1374
1374
|
));
|
|
1375
1375
|
DialogOverlay.displayName = DialogPrimitive__namespace.Overlay.displayName;
|
|
1376
|
-
var DialogContent = React40__namespace.forwardRef(({ className, children, onCloseComplete, onAnimationEnd, ...props }, ref) => {
|
|
1376
|
+
var DialogContent = React40__namespace.forwardRef(({ className, children, onCloseComplete, onAnimationEnd, instant, ...props }, ref) => {
|
|
1377
1377
|
const handleAnimationEnd = React40__namespace.useCallback(
|
|
1378
1378
|
(e) => {
|
|
1379
1379
|
onAnimationEnd?.(e);
|
|
@@ -1384,16 +1384,17 @@ var DialogContent = React40__namespace.forwardRef(({ className, children, onClos
|
|
|
1384
1384
|
[onAnimationEnd, onCloseComplete]
|
|
1385
1385
|
);
|
|
1386
1386
|
return /* @__PURE__ */ jsxRuntime.jsxs(DialogPortal, { children: [
|
|
1387
|
-
/* @__PURE__ */ jsxRuntime.jsx(DialogOverlay, {}),
|
|
1387
|
+
/* @__PURE__ */ jsxRuntime.jsx(DialogOverlay, { className: instant ? "animate-none" : void 0 }),
|
|
1388
1388
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1389
1389
|
DialogPrimitive__namespace.Content,
|
|
1390
1390
|
{
|
|
1391
1391
|
ref,
|
|
1392
1392
|
className: cn(
|
|
1393
|
-
"fixed left-[50%] top-[50%] z-50 flex max-h-[85vh] w-full max-w-lg translate-x-[-50%] translate-y-[-50%] flex-col gap-4 border bg-background p-1 shadow-lg
|
|
1393
|
+
"fixed left-[50%] top-[50%] z-50 flex max-h-[85vh] w-full max-w-lg translate-x-[-50%] translate-y-[-50%] flex-col gap-4 border bg-background p-1 shadow-lg sm:rounded-lg",
|
|
1394
|
+
!instant && "duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",
|
|
1394
1395
|
className
|
|
1395
1396
|
),
|
|
1396
|
-
onAnimationEnd: handleAnimationEnd,
|
|
1397
|
+
onAnimationEnd: instant ? void 0 : handleAnimationEnd,
|
|
1397
1398
|
...props,
|
|
1398
1399
|
children
|
|
1399
1400
|
}
|