@appolabs/ui 0.1.11 → 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 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 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%] sm:rounded-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
  }
@@ -1422,7 +1423,7 @@ var DialogBody = ({
1422
1423
  "div",
1423
1424
  {
1424
1425
  className: cn(
1425
- "flex-1 overflow-y-auto px-6 pb-1",
1426
+ "flex-1 overflow-y-auto px-6 pb-2",
1426
1427
  className
1427
1428
  ),
1428
1429
  ...props