@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
package/dist/index.js
CHANGED
|
@@ -36318,10 +36318,20 @@ var defaultPresets$1 = [{
|
|
|
36318
36318
|
function formatDate(date) {
|
|
36319
36319
|
var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'MM/dd/yyyy';
|
|
36320
36320
|
if (!date) return '';
|
|
36321
|
+
var monthNames = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
|
|
36321
36322
|
var month = String(date.getMonth() + 1).padStart(2, '0');
|
|
36323
|
+
var monthShort = monthNames[date.getMonth()];
|
|
36322
36324
|
var day = String(date.getDate()).padStart(2, '0');
|
|
36323
36325
|
var year = date.getFullYear();
|
|
36324
|
-
|
|
36326
|
+
// Replace longer tokens first using placeholders to avoid substring conflicts
|
|
36327
|
+
// (e.g. 'MMM' contains 'MM', so naive chaining can break)
|
|
36328
|
+
var result = format;
|
|
36329
|
+
if (result.includes('MMM')) {
|
|
36330
|
+
result = result.replace('MMM', monthShort);
|
|
36331
|
+
} else {
|
|
36332
|
+
result = result.replace('MM', month);
|
|
36333
|
+
}
|
|
36334
|
+
return result.replace('dd', day).replace('yyyy', String(year));
|
|
36325
36335
|
}
|
|
36326
36336
|
function isSameDay(date1, date2) {
|
|
36327
36337
|
if (!date1 || !date2) return false;
|
|
@@ -45657,13 +45667,15 @@ function DialogContent(_a) {
|
|
|
45657
45667
|
};
|
|
45658
45668
|
}, [context === null || context === void 0 ? void 0 : context.open]);
|
|
45659
45669
|
if (!(context === null || context === void 0 ? void 0 : context.open)) return null;
|
|
45660
|
-
|
|
45670
|
+
var portalTarget = typeof document !== 'undefined' ? document.body : null;
|
|
45671
|
+
if (!portalTarget) return null;
|
|
45672
|
+
return /*#__PURE__*/ReactDOM.createPortal(require$$1.jsxs("div", {
|
|
45661
45673
|
className: "fixed inset-0 flex items-center justify-center",
|
|
45662
45674
|
style: {
|
|
45663
45675
|
zIndex: 999999
|
|
45664
45676
|
},
|
|
45665
45677
|
children: [require$$1.jsx("div", {
|
|
45666
|
-
className: "fixed inset-0 bg-black/50
|
|
45678
|
+
className: "fixed inset-0 bg-black/50",
|
|
45667
45679
|
style: {
|
|
45668
45680
|
zIndex: 999998
|
|
45669
45681
|
},
|
|
@@ -45671,7 +45683,7 @@ function DialogContent(_a) {
|
|
|
45671
45683
|
return context.onOpenChange(false);
|
|
45672
45684
|
}
|
|
45673
45685
|
}), require$$1.jsxs("div", Object.assign({
|
|
45674
|
-
className: clsx('relative w-full max-w-lg
|
|
45686
|
+
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
45687
|
style: {
|
|
45676
45688
|
zIndex: 999999
|
|
45677
45689
|
}
|
|
@@ -45686,7 +45698,7 @@ function DialogContent(_a) {
|
|
|
45686
45698
|
})
|
|
45687
45699
|
}), children]
|
|
45688
45700
|
}))]
|
|
45689
|
-
});
|
|
45701
|
+
}), portalTarget);
|
|
45690
45702
|
}
|
|
45691
45703
|
function DialogHeader(_a) {
|
|
45692
45704
|
var children = _a.children,
|
|
@@ -49588,10 +49600,23 @@ function AgGridTableInner(props) {
|
|
|
49588
49600
|
// When serverSidePagination is true, disable AG Grid's built-in pagination.
|
|
49589
49601
|
// We render our own bar below with proper React click handlers.
|
|
49590
49602
|
var useGridPagination = !serverSidePagination && pagination;
|
|
49591
|
-
|
|
49603
|
+
// When server-side pagination is active, wrap in a flex column so the grid
|
|
49604
|
+
// shrinks and the pagination bar is always visible (never clipped by overflow-hidden).
|
|
49605
|
+
var outerStyle = serverSidePagination ? {
|
|
49606
|
+
display: 'flex',
|
|
49607
|
+
flexDirection: 'column',
|
|
49608
|
+
height: '100%',
|
|
49609
|
+
width: '100%'
|
|
49610
|
+
} : {};
|
|
49611
|
+
return require$$1.jsxs("div", {
|
|
49612
|
+
style: outerStyle,
|
|
49592
49613
|
children: [require$$1.jsx("div", {
|
|
49593
49614
|
className: "".concat(AG_GRID_THEME_CLASS, " ag-grid-table-wrapper ").concat(className),
|
|
49594
|
-
style:
|
|
49615
|
+
style: serverSidePagination ? {
|
|
49616
|
+
flex: '1 1 0%',
|
|
49617
|
+
minHeight: 0,
|
|
49618
|
+
width: '100%'
|
|
49619
|
+
} : containerStyle !== null && containerStyle !== void 0 ? containerStyle : {
|
|
49595
49620
|
height: "100%",
|
|
49596
49621
|
width: "100%"
|
|
49597
49622
|
},
|