@moderneinc/design-system-components 7.6.1-next.f065cb → 7.7.0-alpha.6001df

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.
Files changed (86) hide show
  1. package/README.md +21 -0
  2. package/dist/ActivityHeader/ActivityHeader.d.ts +1 -1
  3. package/dist/ActivityIndicatorCell/ActivityIndicatorCell.d.ts +1 -1
  4. package/dist/Alert/Alert.d.ts +1 -1
  5. package/dist/Badge/Badge.d.ts +1 -1
  6. package/dist/Banner/Banner.d.ts +1 -1
  7. package/dist/Breadcrumbs/Breadcrumbs.d.ts +2 -2
  8. package/dist/Button/Button.d.ts +7 -5
  9. package/dist/ButtonTab/ButtonTab.d.ts +1 -1
  10. package/dist/ButtonTabGroup/ButtonTabGroup.d.ts +1 -1
  11. package/dist/CanceledIcon/CanceledIcon.d.ts +1 -1
  12. package/dist/Card/Card.d.ts +1 -1
  13. package/dist/Checkbox/Checkbox.d.ts +1 -1
  14. package/dist/CheckboxWithText/CheckboxWithText.d.ts +1 -1
  15. package/dist/CodeSnippet/CodeSnippet.d.ts +1 -1
  16. package/dist/DataGrid/DataGrid.d.ts +2 -2
  17. package/dist/DataGridCell/DataGridCell.d.ts +4 -4
  18. package/dist/DataGridColumnsButton/DataGridColumnsButton.d.ts +1 -1
  19. package/dist/DataGridColumnsPanel/DataGridColumnsPanel.d.ts +1 -1
  20. package/dist/DataGridFilterPanel/DataGridFilterPanel.d.ts +4 -4
  21. package/dist/DataGridFiltersButton/DataGridFiltersButton.d.ts +1 -1
  22. package/dist/DataGridHeaderCell/DataGridHeaderCell.d.ts +3 -3
  23. package/dist/DataGridHeaderLabel/DataGridHeaderLabel.d.ts +1 -1
  24. package/dist/DatePicker/DatePicker.d.ts +1 -1
  25. package/dist/DateTimeCell/DateTimeCell.d.ts +1 -1
  26. package/dist/Divider/Divider.d.ts +1 -1
  27. package/dist/Dot/Dot.d.ts +1 -1
  28. package/dist/DownloadToast/DownloadToast.d.ts +1 -1
  29. package/dist/DropdownInputField/DropdownInputField.d.ts +1 -1
  30. package/dist/EmptyState/EmptyState.d.ts +1 -1
  31. package/dist/FilledStatusIcons/FilledStatusIcons.d.ts +7 -7
  32. package/dist/FilterChip/FilterChip.d.ts +1 -1
  33. package/dist/Footer/Footer.d.ts +1 -1
  34. package/dist/GeneralAvatar/GeneralAvatar.d.ts +1 -1
  35. package/dist/IconButton/IconButton.d.ts +1 -1
  36. package/dist/IconWrapper/IconWrapper.d.ts +1 -1
  37. package/dist/InfiniteScrollGrid/InfiniteScrollGrid.d.ts +1 -1
  38. package/dist/InputField/InputField.d.ts +4 -4
  39. package/dist/LinkCell/LinkCell.d.ts +1 -1
  40. package/dist/ListItem/ListItem.d.ts +1 -1
  41. package/dist/ListItemButton/ListItemButton.d.ts +1 -1
  42. package/dist/LoadingSpinner/LoadingSpinner.d.ts +1 -1
  43. package/dist/Menu/Menu.d.ts +1 -1
  44. package/dist/MenuItem/MenuItem.d.ts +1 -1
  45. package/dist/ModActionsCell/ModActionsCell.d.ts +2 -2
  46. package/dist/ModAvatarCell/ModAvatarCell.d.ts +1 -1
  47. package/dist/ModIconCell/ModIconCell.d.ts +1 -1
  48. package/dist/ModLogoCell/ModLogoCell.d.ts +1 -1
  49. package/dist/ModProgressCell/ModProgressCell.d.ts +1 -1
  50. package/dist/ModStatusCell/ModStatusCell.d.ts +1 -1
  51. package/dist/Modal/Modal.d.ts +4 -4
  52. package/dist/NavIconButton/NavIconButton.d.ts +1 -1
  53. package/dist/NavigationAvatar/NavigationAvatar.d.ts +1 -1
  54. package/dist/NavigationItem/NavigationItem.d.ts +1 -1
  55. package/dist/PageContent/PageContent.d.ts +7 -1
  56. package/dist/PaginatedGrid/PaginatedGrid.d.ts +1 -1
  57. package/dist/ProgressSpinner/ProgressSpinner.d.ts +1 -1
  58. package/dist/Progressbar/Progressbar.d.ts +1 -1
  59. package/dist/QuickFilter/QuickFilter.d.ts +1 -1
  60. package/dist/Radio/Radio.d.ts +1 -1
  61. package/dist/SearchChip/SearchChip.d.ts +1 -1
  62. package/dist/Select/Select.d.ts +1 -1
  63. package/dist/SelectField/SelectField.d.ts +1 -1
  64. package/dist/SideNav/SideNav.d.ts +1 -1
  65. package/dist/Skeleton/Skeleton.d.ts +1 -1
  66. package/dist/TabPanel/TabPanel.d.ts +1 -1
  67. package/dist/Table/Table.d.ts +1 -1
  68. package/dist/Tabs/Tabs.d.ts +4 -3
  69. package/dist/Tag/Tag.d.ts +1 -1
  70. package/dist/Toast/Toast.d.ts +2 -2
  71. package/dist/Toggle/Toggle.d.ts +1 -1
  72. package/dist/ToggleButton/ToggleButton.d.ts +1 -1
  73. package/dist/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
  74. package/dist/Toolbar/Toolbar.d.ts +7 -1
  75. package/dist/Tooltip/Tooltip.d.ts +2 -2
  76. package/dist/Tree/Tree.d.ts +12 -1
  77. package/dist/TypologyControl/TypologyControl.d.ts +2 -2
  78. package/dist/index.d.ts +145 -103
  79. package/dist/index.esm.js +6847 -5888
  80. package/dist/index.esm.js.map +1 -1
  81. package/dist/index.js +6847 -5885
  82. package/dist/index.js.map +1 -1
  83. package/dist/utils/OverflowActions.d.ts +14 -0
  84. package/dist/utils/formatCount.d.ts +3 -0
  85. package/dist/utils/responsive.d.ts +26 -0
  86. package/package.json +17 -17
@@ -0,0 +1,14 @@
1
+ import { type ComponentProps, type ReactNode } from 'react';
2
+ import { ModButton } from '../Button/Button';
3
+ export type ModAction = {
4
+ id: string;
5
+ label: string;
6
+ icon?: ReactNode;
7
+ onClick: () => void;
8
+ disabled?: boolean;
9
+ variant?: ComponentProps<typeof ModButton>['variant'];
10
+ };
11
+ /** Renders actions as a button row; below `md`, all but the first move into a "More actions" menu. */
12
+ export declare function OverflowActions({ actions }: {
13
+ actions?: ModAction[];
14
+ }): import("react").JSX.Element | null;
@@ -0,0 +1,3 @@
1
+ export declare const formatCount: (value: number, locales?: Intl.LocalesArgument) => string;
2
+ /** The data grid footer's "start-end of total" label for a zero-based page. */
3
+ export declare const paginationRangeLabel: (page: number, pageSize: number, rowCount: number, locales?: Intl.LocalesArgument) => string;
@@ -0,0 +1,26 @@
1
+ import type { CSSObject, Theme } from '@mui/material/styles';
2
+ export declare const TOUCH_TARGET: 44;
3
+ /** Fills the container with the margin box under either box-sizing; later values win where supported. */
4
+ export declare const FILL_AVAILABLE: string[];
5
+ /** True below `md`. Takes the desktop branch during SSR so the first desktop paint is unchanged. */
6
+ export declare function useIsCompact(): boolean;
7
+ /**
8
+ * Grows a control's hit area to 44×44 below `md` without changing how it looks.
9
+ *
10
+ * The host must already be positioned (ButtonBase is) and must not use `pseudo` itself; pass
11
+ * `'before'` when `::after` is taken. Nesting the media query under the pseudo selector keeps
12
+ * this from overwriting a `down('md')` block on the host.
13
+ */
14
+ export declare function touchTarget(theme: Theme, { pseudo }?: {
15
+ pseudo?: 'before' | 'after';
16
+ }): CSSObject;
17
+ /**
18
+ * Grows the hidden native `<input>` of a Checkbox, Radio or Switch to 44×44 below `md`.
19
+ *
20
+ * SwitchBase overlays an invisible input on the control and taps land on it; a pseudo-element on
21
+ * the wrapping span would hit-test as the span and not toggle. Spread into the input's styles.
22
+ * `heightOnly` keeps MUI's horizontal geometry (Switch already stretches its input over the track).
23
+ */
24
+ export declare function inputTouchTarget(theme: Theme, { heightOnly }?: {
25
+ heightOnly?: boolean;
26
+ }): CSSObject;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moderneinc/design-system-components",
3
- "version": "7.6.1-next.f065cb",
3
+ "version": "7.7.0-alpha.6001df",
4
4
  "type": "module",
5
5
  "description": "Styled MUI components for Moderne applications",
6
6
  "main": "dist/index.js",
@@ -20,7 +20,7 @@
20
20
  "scripts": {
21
21
  "clean": "rm -rf dist/*",
22
22
  "prebuild": "npm run clean",
23
- "build": "mkdir -p dist && rollup -c",
23
+ "build": "mkdir -p dist && tsc -p tsconfig.json --noEmit false --emitDeclarationOnly --outDir dist && rollup -c",
24
24
  "dev": "mkdir -p dist && rollup -c --watch",
25
25
  "scaffold": "node scripts/scaffold-component.js",
26
26
  "test": "vitest",
@@ -46,36 +46,36 @@
46
46
  "url": "git+https://github.com/moderneinc/design-system.git"
47
47
  },
48
48
  "dependencies": {
49
- "@moderneinc/design-system-tokens": "7.6.1-next.f065cb",
50
- "lucide-react": "1.33.0"
49
+ "@moderneinc/design-system-tokens": "7.7.0-alpha.6001df",
50
+ "lucide-react": "1.64.0"
51
51
  },
52
52
  "sideEffects": false,
53
53
  "peerDependencies": {
54
- "@mui/material": "9.4.0",
55
- "@mui/x-data-grid": "9.12.0",
56
- "@mui/x-data-grid-pro": "9.12.0",
57
- "@mui/x-date-pickers": "9.12.0",
58
- "@mui/x-date-pickers-pro": "9.12.0",
54
+ "@mui/material": "9.5.0",
55
+ "@mui/x-data-grid": "9.17.0",
56
+ "@mui/x-data-grid-pro": "9.17.0",
57
+ "@mui/x-date-pickers": "9.17.0",
58
+ "@mui/x-date-pickers-pro": "9.17.0",
59
59
  "@mui/x-tree-view": "^9.10.0",
60
- "@mui/x-tree-view-pro": "9.12.0",
60
+ "@mui/x-tree-view-pro": "9.17.0",
61
61
  "date-fns": "4.4.0",
62
62
  "react": "^18.0.0 || ^19.0.0"
63
63
  },
64
64
  "devDependencies": {
65
65
  "@rollup/plugin-node-resolve": "16.0.3",
66
- "@rollup/plugin-typescript": "12.3.0",
67
66
  "@semantic-release/commit-analyzer": "13.0.1",
68
67
  "@semantic-release/github": "12.0.2",
69
- "@semantic-release/npm": "13.1.3",
68
+ "@semantic-release/npm": "13.2.0",
70
69
  "@semantic-release/release-notes-generator": "14.1.0",
71
- "@types/node": "26.5.1",
72
- "@types/react": "^19.2.7",
70
+ "@types/node": "26.6.2",
71
+ "@types/react": "^19.3.0",
73
72
  "conventional-changelog-conventionalcommits": "10.4.0",
73
+ "esbuild": "0.28.1",
74
74
  "mustache": "4.2.0",
75
- "rollup": "4.63.1",
75
+ "rollup": "4.68.2",
76
76
  "rollup-plugin-dts": "6.5.1",
77
77
  "semantic-release": "25.0.2",
78
- "tslib": "2.8.1",
79
- "typescript": "6.0.2"
78
+ "tslib": "2.9.1",
79
+ "typescript": "7.0.2"
80
80
  }
81
81
  }