@moderneinc/design-system-components 7.6.1-next.f065cb → 7.7.0-next.f5c2ba

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