@moving-walls/design-system 1.0.19 → 1.0.20

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.
@@ -26,7 +26,7 @@ export interface DialogTriggerProps extends React.HTMLAttributes<HTMLElement> {
26
26
  }
27
27
  export declare function Dialog({ open, onOpenChange, children }: DialogProps): import("react/jsx-runtime").JSX.Element;
28
28
  export declare function DialogTrigger({ children, asChild, onClick, ...props }: DialogTriggerProps): import("react/jsx-runtime").JSX.Element;
29
- export declare function DialogContent({ children, className, showCloseButton, ...props }: DialogContentProps): import("react/jsx-runtime").JSX.Element | null;
29
+ export declare function DialogContent({ children, className, showCloseButton, ...props }: DialogContentProps): React.ReactPortal | null;
30
30
  export declare function DialogHeader({ children, className, ...props }: DialogHeaderProps): import("react/jsx-runtime").JSX.Element;
31
31
  export declare function DialogFooter({ children, className, ...props }: DialogFooterProps): import("react/jsx-runtime").JSX.Element;
32
32
  export declare function DialogTitle({ children, className, ...props }: DialogTitleProps): import("react/jsx-runtime").JSX.Element;
package/dist/index.esm.js CHANGED
@@ -45637,13 +45637,15 @@ function DialogContent(_a) {
45637
45637
  };
45638
45638
  }, [context === null || context === void 0 ? void 0 : context.open]);
45639
45639
  if (!(context === null || context === void 0 ? void 0 : context.open)) return null;
45640
- return jsxs("div", {
45640
+ var portalTarget = typeof document !== 'undefined' ? document.body : null;
45641
+ if (!portalTarget) return null;
45642
+ return /*#__PURE__*/ReactDOM__default.createPortal(jsxs("div", {
45641
45643
  className: "fixed inset-0 flex items-center justify-center",
45642
45644
  style: {
45643
45645
  zIndex: 999999
45644
45646
  },
45645
45647
  children: [jsx("div", {
45646
- className: "fixed inset-0 bg-black/50 backdrop-blur-sm",
45648
+ className: "fixed inset-0 bg-black/50",
45647
45649
  style: {
45648
45650
  zIndex: 999998
45649
45651
  },
@@ -45651,7 +45653,7 @@ function DialogContent(_a) {
45651
45653
  return context.onOpenChange(false);
45652
45654
  }
45653
45655
  }), jsxs("div", Object.assign({
45654
- className: clsx('relative w-full max-w-lg mx-4 max-h-[90vh] overflow-y-auto', 'bg-white dark:bg-mw-neutral-800 rounded-lg shadow-lg border border-mw-neutral-200 dark:border-mw-neutral-700', 'animate-in fade-in-0 zoom-in-95 duration-200', className),
45656
+ className: clsx('relative w-full max-w-lg max-h-[90vh] overflow-y-auto', 'bg-white dark:bg-mw-neutral-800 rounded-lg shadow-lg border border-mw-neutral-200 dark:border-mw-neutral-700', 'animate-in fade-in-0 zoom-in-95 duration-200', className),
45655
45657
  style: {
45656
45658
  zIndex: 999999
45657
45659
  }
@@ -45666,7 +45668,7 @@ function DialogContent(_a) {
45666
45668
  })
45667
45669
  }), children]
45668
45670
  }))]
45669
- });
45671
+ }), portalTarget);
45670
45672
  }
45671
45673
  function DialogHeader(_a) {
45672
45674
  var children = _a.children,
@@ -49568,10 +49570,23 @@ function AgGridTableInner(props) {
49568
49570
  // When serverSidePagination is true, disable AG Grid's built-in pagination.
49569
49571
  // We render our own bar below with proper React click handlers.
49570
49572
  var useGridPagination = !serverSidePagination && pagination;
49571
- return jsxs(Fragment, {
49573
+ // When server-side pagination is active, wrap in a flex column so the grid
49574
+ // shrinks and the pagination bar is always visible (never clipped by overflow-hidden).
49575
+ var outerStyle = serverSidePagination ? {
49576
+ display: 'flex',
49577
+ flexDirection: 'column',
49578
+ height: '100%',
49579
+ width: '100%'
49580
+ } : {};
49581
+ return jsxs("div", {
49582
+ style: outerStyle,
49572
49583
  children: [jsx("div", {
49573
49584
  className: "".concat(AG_GRID_THEME_CLASS, " ag-grid-table-wrapper ").concat(className),
49574
- style: containerStyle !== null && containerStyle !== void 0 ? containerStyle : {
49585
+ style: serverSidePagination ? {
49586
+ flex: '1 1 0%',
49587
+ minHeight: 0,
49588
+ width: '100%'
49589
+ } : containerStyle !== null && containerStyle !== void 0 ? containerStyle : {
49575
49590
  height: "100%",
49576
49591
  width: "100%"
49577
49592
  },