@moving-walls/design-system 1.0.19 → 1.0.21
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 +32 -7
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +32 -7
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -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):
|
|
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
|
@@ -36298,10 +36298,20 @@ var defaultPresets$1 = [{
|
|
|
36298
36298
|
function formatDate(date) {
|
|
36299
36299
|
var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'MM/dd/yyyy';
|
|
36300
36300
|
if (!date) return '';
|
|
36301
|
+
var monthNames = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
|
|
36301
36302
|
var month = String(date.getMonth() + 1).padStart(2, '0');
|
|
36303
|
+
var monthShort = monthNames[date.getMonth()];
|
|
36302
36304
|
var day = String(date.getDate()).padStart(2, '0');
|
|
36303
36305
|
var year = date.getFullYear();
|
|
36304
|
-
|
|
36306
|
+
// Replace longer tokens first using placeholders to avoid substring conflicts
|
|
36307
|
+
// (e.g. 'MMM' contains 'MM', so naive chaining can break)
|
|
36308
|
+
var result = format;
|
|
36309
|
+
if (result.includes('MMM')) {
|
|
36310
|
+
result = result.replace('MMM', monthShort);
|
|
36311
|
+
} else {
|
|
36312
|
+
result = result.replace('MM', month);
|
|
36313
|
+
}
|
|
36314
|
+
return result.replace('dd', day).replace('yyyy', String(year));
|
|
36305
36315
|
}
|
|
36306
36316
|
function isSameDay(date1, date2) {
|
|
36307
36317
|
if (!date1 || !date2) return false;
|
|
@@ -45637,13 +45647,15 @@ function DialogContent(_a) {
|
|
|
45637
45647
|
};
|
|
45638
45648
|
}, [context === null || context === void 0 ? void 0 : context.open]);
|
|
45639
45649
|
if (!(context === null || context === void 0 ? void 0 : context.open)) return null;
|
|
45640
|
-
|
|
45650
|
+
var portalTarget = typeof document !== 'undefined' ? document.body : null;
|
|
45651
|
+
if (!portalTarget) return null;
|
|
45652
|
+
return /*#__PURE__*/ReactDOM__default.createPortal(jsxs("div", {
|
|
45641
45653
|
className: "fixed inset-0 flex items-center justify-center",
|
|
45642
45654
|
style: {
|
|
45643
45655
|
zIndex: 999999
|
|
45644
45656
|
},
|
|
45645
45657
|
children: [jsx("div", {
|
|
45646
|
-
className: "fixed inset-0 bg-black/50
|
|
45658
|
+
className: "fixed inset-0 bg-black/50",
|
|
45647
45659
|
style: {
|
|
45648
45660
|
zIndex: 999998
|
|
45649
45661
|
},
|
|
@@ -45651,7 +45663,7 @@ function DialogContent(_a) {
|
|
|
45651
45663
|
return context.onOpenChange(false);
|
|
45652
45664
|
}
|
|
45653
45665
|
}), jsxs("div", Object.assign({
|
|
45654
|
-
className: clsx('relative w-full max-w-lg
|
|
45666
|
+
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
45667
|
style: {
|
|
45656
45668
|
zIndex: 999999
|
|
45657
45669
|
}
|
|
@@ -45666,7 +45678,7 @@ function DialogContent(_a) {
|
|
|
45666
45678
|
})
|
|
45667
45679
|
}), children]
|
|
45668
45680
|
}))]
|
|
45669
|
-
});
|
|
45681
|
+
}), portalTarget);
|
|
45670
45682
|
}
|
|
45671
45683
|
function DialogHeader(_a) {
|
|
45672
45684
|
var children = _a.children,
|
|
@@ -49568,10 +49580,23 @@ function AgGridTableInner(props) {
|
|
|
49568
49580
|
// When serverSidePagination is true, disable AG Grid's built-in pagination.
|
|
49569
49581
|
// We render our own bar below with proper React click handlers.
|
|
49570
49582
|
var useGridPagination = !serverSidePagination && pagination;
|
|
49571
|
-
|
|
49583
|
+
// When server-side pagination is active, wrap in a flex column so the grid
|
|
49584
|
+
// shrinks and the pagination bar is always visible (never clipped by overflow-hidden).
|
|
49585
|
+
var outerStyle = serverSidePagination ? {
|
|
49586
|
+
display: 'flex',
|
|
49587
|
+
flexDirection: 'column',
|
|
49588
|
+
height: '100%',
|
|
49589
|
+
width: '100%'
|
|
49590
|
+
} : {};
|
|
49591
|
+
return jsxs("div", {
|
|
49592
|
+
style: outerStyle,
|
|
49572
49593
|
children: [jsx("div", {
|
|
49573
49594
|
className: "".concat(AG_GRID_THEME_CLASS, " ag-grid-table-wrapper ").concat(className),
|
|
49574
|
-
style:
|
|
49595
|
+
style: serverSidePagination ? {
|
|
49596
|
+
flex: '1 1 0%',
|
|
49597
|
+
minHeight: 0,
|
|
49598
|
+
width: '100%'
|
|
49599
|
+
} : containerStyle !== null && containerStyle !== void 0 ? containerStyle : {
|
|
49575
49600
|
height: "100%",
|
|
49576
49601
|
width: "100%"
|
|
49577
49602
|
},
|