@moderneinc/design-system-components 7.6.1-next.3dd0ae → 7.6.1-next.f065cb
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.esm.js +7 -14
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +7 -14
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -943,9 +943,8 @@ function useTabAriaSync() {
|
|
|
943
943
|
observerRef.current.disconnect();
|
|
944
944
|
observerRef.current = null;
|
|
945
945
|
}
|
|
946
|
-
if (!node)
|
|
946
|
+
if (!node)
|
|
947
947
|
return;
|
|
948
|
-
}
|
|
949
948
|
const sync = () => {
|
|
950
949
|
node.setAttribute('role', 'tab');
|
|
951
950
|
node.setAttribute('aria-selected', String(node.classList.contains('Mui-selected')));
|
|
@@ -1765,9 +1764,8 @@ sx: _sx, theme: _theme, ...props }) => {
|
|
|
1765
1764
|
const [searchText, setSearchText] = useState('');
|
|
1766
1765
|
// Filter columns based on search
|
|
1767
1766
|
const filteredColumns = useMemo(() => {
|
|
1768
|
-
if (!searchText)
|
|
1767
|
+
if (!searchText)
|
|
1769
1768
|
return columns;
|
|
1770
|
-
}
|
|
1771
1769
|
const search = searchText.toLowerCase();
|
|
1772
1770
|
return columns.filter(col => {
|
|
1773
1771
|
const headerName = col.headerName || col.field;
|
|
@@ -1800,9 +1798,8 @@ sx: _sx, theme: _theme, ...props }) => {
|
|
|
1800
1798
|
disableUnderline: true,
|
|
1801
1799
|
},
|
|
1802
1800
|
} })), filteredColumns.map(column => {
|
|
1803
|
-
if (column.hideable === false)
|
|
1801
|
+
if (column.hideable === false)
|
|
1804
1802
|
return null;
|
|
1805
|
-
}
|
|
1806
1803
|
const isVisible = columnVisibilityModel[column.field] !== false;
|
|
1807
1804
|
const headerName = column.headerName || column.field;
|
|
1808
1805
|
return (jsx(ColumnItemContainer, { onClick: () => handleColumnToggle(column.field), children: jsxs(MenuItemContent$1, { children: [jsx(ModCheckbox, { checked: isVisible, size: "small", disableRipple: true }), jsx(MenuItemLabel, { children: headerName })] }) }, column.field));
|
|
@@ -3094,13 +3091,11 @@ const ActionButton = styled(IconButton)({
|
|
|
3094
3091
|
*/
|
|
3095
3092
|
const ModDownloadToast = ({ title, fileName, progress, showClose = true, showPause = true, onClose, onPause, actions, ...props }) => {
|
|
3096
3093
|
const renderActions = () => {
|
|
3097
|
-
if (actions)
|
|
3094
|
+
if (actions)
|
|
3098
3095
|
return actions;
|
|
3099
|
-
}
|
|
3100
3096
|
const hasActions = showPause || showClose;
|
|
3101
|
-
if (!hasActions)
|
|
3097
|
+
if (!hasActions)
|
|
3102
3098
|
return null;
|
|
3103
|
-
}
|
|
3104
3099
|
return (jsxs(Stack, { direction: "row", sx: { alignItems: 'center', gap: `${spacing.spacing_2}px` }, children: [showPause && (jsx(ActionButton, { size: "small", onClick: onPause, "aria-label": "Pause download", children: jsx(Minus, { size: spacing.spacing_2 }) })), showClose && (jsx(ActionButton, { size: "small", onClick: onClose, "aria-label": "Close", children: jsx(X, { size: spacing.spacing_2 }) }))] }));
|
|
3105
3100
|
};
|
|
3106
3101
|
return (jsxs(StyledRoot$1, { elevation: 0, role: "status", ...props, children: [jsxs(Stack, { direction: "row", sx: {
|
|
@@ -4454,9 +4449,8 @@ const CellRoot = styled('div', {
|
|
|
4454
4449
|
* ModIconCell — Icon cell for DataGrid. Renders an icon centered in the cell.
|
|
4455
4450
|
*/
|
|
4456
4451
|
const ModIconCell = ({ icon, ariaLabel, disabled = false }) => {
|
|
4457
|
-
if (!icon)
|
|
4452
|
+
if (!icon)
|
|
4458
4453
|
return null;
|
|
4459
|
-
}
|
|
4460
4454
|
return (jsx(CellRoot, { disabled: disabled, "aria-label": ariaLabel, children: jsx(ModIconWrapper, { size: 16, children: icon }) }));
|
|
4461
4455
|
};
|
|
4462
4456
|
ModIconCell.displayName = 'ModIconCell';
|
|
@@ -4946,9 +4940,8 @@ function ModPageContent({ pageTitle, subtitle, breadcrumbs, action, sticky = fal
|
|
|
4946
4940
|
const containerRef = useRef(null);
|
|
4947
4941
|
// Intersection observer for back to top button
|
|
4948
4942
|
useEffect(() => {
|
|
4949
|
-
if (!showBackToTop || !headerRef.current)
|
|
4943
|
+
if (!showBackToTop || !headerRef.current)
|
|
4950
4944
|
return;
|
|
4951
|
-
}
|
|
4952
4945
|
const observer = new IntersectionObserver(([entry]) => {
|
|
4953
4946
|
setShowBackToTopButton(!entry.isIntersecting);
|
|
4954
4947
|
}, {
|