@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.
- package/dist/components/ui/Dialog.d.ts +1 -1
- package/dist/index.esm.js +21 -6
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +21 -6
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -45657,13 +45657,15 @@ function DialogContent(_a) {
|
|
|
45657
45657
|
};
|
|
45658
45658
|
}, [context === null || context === void 0 ? void 0 : context.open]);
|
|
45659
45659
|
if (!(context === null || context === void 0 ? void 0 : context.open)) return null;
|
|
45660
|
-
|
|
45660
|
+
var portalTarget = typeof document !== 'undefined' ? document.body : null;
|
|
45661
|
+
if (!portalTarget) return null;
|
|
45662
|
+
return /*#__PURE__*/ReactDOM.createPortal(require$$1.jsxs("div", {
|
|
45661
45663
|
className: "fixed inset-0 flex items-center justify-center",
|
|
45662
45664
|
style: {
|
|
45663
45665
|
zIndex: 999999
|
|
45664
45666
|
},
|
|
45665
45667
|
children: [require$$1.jsx("div", {
|
|
45666
|
-
className: "fixed inset-0 bg-black/50
|
|
45668
|
+
className: "fixed inset-0 bg-black/50",
|
|
45667
45669
|
style: {
|
|
45668
45670
|
zIndex: 999998
|
|
45669
45671
|
},
|
|
@@ -45671,7 +45673,7 @@ function DialogContent(_a) {
|
|
|
45671
45673
|
return context.onOpenChange(false);
|
|
45672
45674
|
}
|
|
45673
45675
|
}), require$$1.jsxs("div", Object.assign({
|
|
45674
|
-
className: clsx('relative w-full max-w-lg
|
|
45676
|
+
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),
|
|
45675
45677
|
style: {
|
|
45676
45678
|
zIndex: 999999
|
|
45677
45679
|
}
|
|
@@ -45686,7 +45688,7 @@ function DialogContent(_a) {
|
|
|
45686
45688
|
})
|
|
45687
45689
|
}), children]
|
|
45688
45690
|
}))]
|
|
45689
|
-
});
|
|
45691
|
+
}), portalTarget);
|
|
45690
45692
|
}
|
|
45691
45693
|
function DialogHeader(_a) {
|
|
45692
45694
|
var children = _a.children,
|
|
@@ -49588,10 +49590,23 @@ function AgGridTableInner(props) {
|
|
|
49588
49590
|
// When serverSidePagination is true, disable AG Grid's built-in pagination.
|
|
49589
49591
|
// We render our own bar below with proper React click handlers.
|
|
49590
49592
|
var useGridPagination = !serverSidePagination && pagination;
|
|
49591
|
-
|
|
49593
|
+
// When server-side pagination is active, wrap in a flex column so the grid
|
|
49594
|
+
// shrinks and the pagination bar is always visible (never clipped by overflow-hidden).
|
|
49595
|
+
var outerStyle = serverSidePagination ? {
|
|
49596
|
+
display: 'flex',
|
|
49597
|
+
flexDirection: 'column',
|
|
49598
|
+
height: '100%',
|
|
49599
|
+
width: '100%'
|
|
49600
|
+
} : {};
|
|
49601
|
+
return require$$1.jsxs("div", {
|
|
49602
|
+
style: outerStyle,
|
|
49592
49603
|
children: [require$$1.jsx("div", {
|
|
49593
49604
|
className: "".concat(AG_GRID_THEME_CLASS, " ag-grid-table-wrapper ").concat(className),
|
|
49594
|
-
style:
|
|
49605
|
+
style: serverSidePagination ? {
|
|
49606
|
+
flex: '1 1 0%',
|
|
49607
|
+
minHeight: 0,
|
|
49608
|
+
width: '100%'
|
|
49609
|
+
} : containerStyle !== null && containerStyle !== void 0 ? containerStyle : {
|
|
49595
49610
|
height: "100%",
|
|
49596
49611
|
width: "100%"
|
|
49597
49612
|
},
|