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