@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.
- package/README.md +21 -0
- package/dist/ActivityHeader/ActivityHeader.d.ts +1 -1
- package/dist/ActivityIndicatorCell/ActivityIndicatorCell.d.ts +1 -1
- package/dist/Alert/Alert.d.ts +1 -1
- package/dist/Badge/Badge.d.ts +1 -1
- package/dist/Banner/Banner.d.ts +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.d.ts +2 -2
- package/dist/Button/Button.d.ts +7 -5
- package/dist/ButtonTab/ButtonTab.d.ts +1 -1
- package/dist/ButtonTabGroup/ButtonTabGroup.d.ts +1 -1
- package/dist/CanceledIcon/CanceledIcon.d.ts +1 -1
- package/dist/Card/Card.d.ts +1 -1
- package/dist/Checkbox/Checkbox.d.ts +1 -1
- package/dist/CheckboxWithText/CheckboxWithText.d.ts +1 -1
- package/dist/CodeSnippet/CodeSnippet.d.ts +1 -1
- package/dist/DataGrid/DataGrid.d.ts +2 -2
- package/dist/DataGridCell/DataGridCell.d.ts +4 -4
- package/dist/DataGridColumnsButton/DataGridColumnsButton.d.ts +1 -1
- package/dist/DataGridColumnsPanel/DataGridColumnsPanel.d.ts +1 -1
- package/dist/DataGridFilterPanel/DataGridFilterPanel.d.ts +4 -4
- package/dist/DataGridFiltersButton/DataGridFiltersButton.d.ts +1 -1
- package/dist/DataGridHeaderCell/DataGridHeaderCell.d.ts +3 -3
- package/dist/DataGridHeaderLabel/DataGridHeaderLabel.d.ts +1 -1
- package/dist/DatePicker/DatePicker.d.ts +1 -1
- package/dist/DateTimeCell/DateTimeCell.d.ts +1 -1
- package/dist/Divider/Divider.d.ts +1 -1
- package/dist/Dot/Dot.d.ts +1 -1
- package/dist/DownloadToast/DownloadToast.d.ts +1 -1
- package/dist/DropdownInputField/DropdownInputField.d.ts +1 -1
- package/dist/EmptyState/EmptyState.d.ts +1 -1
- package/dist/FilledStatusIcons/FilledStatusIcons.d.ts +7 -7
- package/dist/FilterChip/FilterChip.d.ts +1 -1
- package/dist/Footer/Footer.d.ts +1 -1
- package/dist/GeneralAvatar/GeneralAvatar.d.ts +1 -1
- package/dist/IconButton/IconButton.d.ts +1 -1
- package/dist/IconWrapper/IconWrapper.d.ts +1 -1
- package/dist/InfiniteScrollGrid/InfiniteScrollGrid.d.ts +1 -1
- package/dist/InputField/InputField.d.ts +4 -4
- package/dist/LinkCell/LinkCell.d.ts +1 -1
- package/dist/ListItem/ListItem.d.ts +1 -1
- package/dist/ListItemButton/ListItemButton.d.ts +1 -1
- package/dist/LoadingSpinner/LoadingSpinner.d.ts +1 -1
- package/dist/Menu/Menu.d.ts +1 -1
- package/dist/MenuItem/MenuItem.d.ts +1 -1
- package/dist/ModActionsCell/ModActionsCell.d.ts +2 -2
- package/dist/ModAvatarCell/ModAvatarCell.d.ts +1 -1
- package/dist/ModIconCell/ModIconCell.d.ts +1 -1
- package/dist/ModLogoCell/ModLogoCell.d.ts +1 -1
- package/dist/ModProgressCell/ModProgressCell.d.ts +1 -1
- package/dist/ModStatusCell/ModStatusCell.d.ts +1 -1
- package/dist/Modal/Modal.d.ts +4 -4
- package/dist/NavIconButton/NavIconButton.d.ts +1 -1
- package/dist/NavigationAvatar/NavigationAvatar.d.ts +1 -1
- package/dist/NavigationItem/NavigationItem.d.ts +1 -1
- package/dist/PageContent/PageContent.d.ts +7 -1
- package/dist/PaginatedGrid/PaginatedGrid.d.ts +1 -1
- package/dist/ProgressSpinner/ProgressSpinner.d.ts +1 -1
- package/dist/Progressbar/Progressbar.d.ts +1 -1
- package/dist/QuickFilter/QuickFilter.d.ts +1 -1
- package/dist/Radio/Radio.d.ts +1 -1
- package/dist/SearchChip/SearchChip.d.ts +1 -1
- package/dist/Select/Select.d.ts +1 -1
- package/dist/SelectField/SelectField.d.ts +1 -1
- package/dist/SideNav/SideNav.d.ts +1 -1
- package/dist/Skeleton/Skeleton.d.ts +1 -1
- package/dist/TabPanel/TabPanel.d.ts +1 -1
- package/dist/Table/Table.d.ts +1 -1
- package/dist/Tabs/Tabs.d.ts +4 -3
- package/dist/Tag/Tag.d.ts +1 -1
- package/dist/Toast/Toast.d.ts +2 -2
- package/dist/Toggle/Toggle.d.ts +1 -1
- package/dist/ToggleButton/ToggleButton.d.ts +1 -1
- package/dist/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
- package/dist/Toolbar/Toolbar.d.ts +7 -1
- package/dist/Tooltip/Tooltip.d.ts +2 -2
- package/dist/Tree/Tree.d.ts +12 -1
- package/dist/TypologyControl/TypologyControl.d.ts +2 -2
- package/dist/index.d.ts +145 -103
- package/dist/index.esm.js +6847 -5888
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +6847 -5885
- package/dist/index.js.map +1 -1
- package/dist/utils/OverflowActions.d.ts +14 -0
- package/dist/utils/formatCount.d.ts +3 -0
- package/dist/utils/responsive.d.ts +26 -0
- package/package.json +17 -17
|
@@ -17,7 +17,7 @@ export type ModLogoCellProps = ModLogoCellNoSrc | ModLogoCellWithSrc;
|
|
|
17
17
|
* - ModLogoCell: raster or SVG image URLs (img tag)
|
|
18
18
|
*/
|
|
19
19
|
export declare const ModLogoCell: {
|
|
20
|
-
({ src, alt, disabled }: ModLogoCellProps): import("react
|
|
20
|
+
({ src, alt, disabled }: ModLogoCellProps): import("react").JSX.Element;
|
|
21
21
|
displayName: string;
|
|
22
22
|
};
|
|
23
23
|
export {};
|
|
@@ -14,7 +14,7 @@ export type ModProgressCellProps = ModProgressCellEmpty | ModProgressCellContent
|
|
|
14
14
|
* ModProgressCell — DataGrid cell displaying a linear progress indicator.
|
|
15
15
|
*/
|
|
16
16
|
export declare const ModProgressCell: {
|
|
17
|
-
({ value, disabled, empty, }: ModProgressCellProps): import("react
|
|
17
|
+
({ value, disabled, empty, }: ModProgressCellProps): import("react").JSX.Element;
|
|
18
18
|
displayName: string;
|
|
19
19
|
};
|
|
20
20
|
export {};
|
|
@@ -23,7 +23,7 @@ export type ModStatusCellProps = ModStatusCellEmpty | ModStatusCellContent;
|
|
|
23
23
|
* ModStatusCell — DataGrid cell displaying an icon + label chip with optional error tooltip.
|
|
24
24
|
*/
|
|
25
25
|
export declare const ModStatusCell: {
|
|
26
|
-
({ icon, label, details, disabled, variant, empty, }: ModStatusCellProps): import("react
|
|
26
|
+
({ icon, label, details, disabled, variant, empty, }: ModStatusCellProps): import("react").JSX.Element;
|
|
27
27
|
displayName: string;
|
|
28
28
|
};
|
|
29
29
|
export {};
|
package/dist/Modal/Modal.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ export interface ModModalProps extends Omit<DialogProps, 'children'> {
|
|
|
28
28
|
* </ModModal>
|
|
29
29
|
*/
|
|
30
30
|
export declare const ModModal: {
|
|
31
|
-
({ children, ...props }: ModModalProps): import("react
|
|
31
|
+
({ children, ...props }: ModModalProps): import("react").JSX.Element;
|
|
32
32
|
displayName: string;
|
|
33
33
|
};
|
|
34
34
|
export interface ModModalHeaderProps {
|
|
@@ -71,7 +71,7 @@ export interface ModModalHeaderProps {
|
|
|
71
71
|
* ModModalHeader - Header section with title, optional subtitle, and close button
|
|
72
72
|
*/
|
|
73
73
|
export declare const ModModalHeader: {
|
|
74
|
-
({ title, subtitle, href, LinkComponent, onClose, hideCloseButton, children, }: ModModalHeaderProps): import("react
|
|
74
|
+
({ title, subtitle, href, LinkComponent, onClose, hideCloseButton, children, }: ModModalHeaderProps): import("react").JSX.Element;
|
|
75
75
|
displayName: string;
|
|
76
76
|
};
|
|
77
77
|
export interface ModModalContentProps {
|
|
@@ -84,7 +84,7 @@ export interface ModModalContentProps {
|
|
|
84
84
|
* ModModalContent - Main content area of the modal
|
|
85
85
|
*/
|
|
86
86
|
export declare const ModModalContent: {
|
|
87
|
-
({ children }: ModModalContentProps): import("react
|
|
87
|
+
({ children }: ModModalContentProps): import("react").JSX.Element;
|
|
88
88
|
displayName: string;
|
|
89
89
|
};
|
|
90
90
|
export interface ModModalFooterProps {
|
|
@@ -101,6 +101,6 @@ export interface ModModalFooterProps {
|
|
|
101
101
|
* ModModalFooter - Footer section with optional leading content and action buttons
|
|
102
102
|
*/
|
|
103
103
|
export declare const ModModalFooter: {
|
|
104
|
-
({ leadingContent, children }: ModModalFooterProps): import("react
|
|
104
|
+
({ leadingContent, children }: ModModalFooterProps): import("react").JSX.Element;
|
|
105
105
|
displayName: string;
|
|
106
106
|
};
|
|
@@ -12,6 +12,6 @@ export interface ModNavIconButtonProps {
|
|
|
12
12
|
* ModNavIconButton — scaffold placeholder, not yet implemented.
|
|
13
13
|
*/
|
|
14
14
|
export declare const ModNavIconButton: {
|
|
15
|
-
({ children, ...props }: ModNavIconButtonProps): import("react
|
|
15
|
+
({ children, ...props }: ModNavIconButtonProps): import("react").JSX.Element;
|
|
16
16
|
displayName: string;
|
|
17
17
|
};
|
|
@@ -8,6 +8,6 @@ export interface ModNavigationAvatarProps extends Omit<ModGeneralAvatarProps, 's
|
|
|
8
8
|
* providing an interactive area for navigation UI.
|
|
9
9
|
*/
|
|
10
10
|
export declare const ModNavigationAvatar: {
|
|
11
|
-
({ children, ...props }: ModNavigationAvatarProps): import("react
|
|
11
|
+
({ children, ...props }: ModNavigationAvatarProps): import("react").JSX.Element;
|
|
12
12
|
displayName: string;
|
|
13
13
|
};
|
|
@@ -48,7 +48,7 @@ export type ModNavigationItemProps<C extends ElementType = typeof ButtonBase> =
|
|
|
48
48
|
/**
|
|
49
49
|
* ModNavigationItem - Vertical navigation item with icon, label, and optional tag
|
|
50
50
|
*/
|
|
51
|
-
export declare function ModNavigationItem<C extends ElementType = typeof ButtonBase>({ icon, label, selected, tag, tooltip, slotProps, children, ...props }: ModNavigationItemProps<C>): import("react
|
|
51
|
+
export declare function ModNavigationItem<C extends ElementType = typeof ButtonBase>({ icon, label, selected, tag, tooltip, slotProps, children, ...props }: ModNavigationItemProps<C>): import("react").JSX.Element;
|
|
52
52
|
export declare namespace ModNavigationItem {
|
|
53
53
|
var displayName: string;
|
|
54
54
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { BoxProps } from '@mui/material/Box';
|
|
2
2
|
import type { Breakpoint } from '@mui/material/styles';
|
|
3
3
|
import type { ElementType, ReactNode } from 'react';
|
|
4
|
+
import { type ModAction } from '../utils/OverflowActions';
|
|
4
5
|
/**
|
|
5
6
|
* Breadcrumb item configuration
|
|
6
7
|
*/
|
|
@@ -49,6 +50,11 @@ export interface ModPageContentProps extends BoxProps {
|
|
|
49
50
|
* Action button displayed in the top-right corner
|
|
50
51
|
*/
|
|
51
52
|
action?: ReactNode;
|
|
53
|
+
/**
|
|
54
|
+
* Structured actions shown after `action`. Below `md`, all but the first move into a
|
|
55
|
+
* "More actions" menu.
|
|
56
|
+
*/
|
|
57
|
+
actions?: ModAction[];
|
|
52
58
|
/**
|
|
53
59
|
* Make header sticky on scroll
|
|
54
60
|
* @default false
|
|
@@ -144,7 +150,7 @@ export interface ModPageContentProps extends BoxProps {
|
|
|
144
150
|
* </ModPageContent>
|
|
145
151
|
* ```
|
|
146
152
|
*/
|
|
147
|
-
export declare function ModPageContent({ pageTitle, subtitle, breadcrumbs, action, sticky, contentMaxWidth: contentMaxWidthProp, centerContent, disableGutters: disableGuttersProp, isLoading, showBackToTop, layout, children, sx, ...boxProps }: ModPageContentProps): import("react
|
|
153
|
+
export declare function ModPageContent({ pageTitle, subtitle, breadcrumbs, action, actions, sticky, contentMaxWidth: contentMaxWidthProp, centerContent, disableGutters: disableGuttersProp, isLoading, showBackToTop, layout, children, sx, ...boxProps }: ModPageContentProps): import("react").JSX.Element;
|
|
148
154
|
export declare namespace ModPageContent {
|
|
149
155
|
var displayName: string;
|
|
150
156
|
}
|
|
@@ -26,7 +26,7 @@ export interface ModPaginatedGridProps extends Omit<ModDataGridProps, 'slots'> {
|
|
|
26
26
|
* rowCount={100}
|
|
27
27
|
* />
|
|
28
28
|
*/
|
|
29
|
-
export declare function ModPaginatedGrid({ slots, pageSizeOptions, slotProps: userSlotProps, ...props }: ModPaginatedGridProps): import("react
|
|
29
|
+
export declare function ModPaginatedGrid({ slots, pageSizeOptions, slotProps: userSlotProps, ...props }: ModPaginatedGridProps): import("react").JSX.Element;
|
|
30
30
|
export declare namespace ModPaginatedGrid {
|
|
31
31
|
var displayName: string;
|
|
32
32
|
}
|
|
@@ -12,6 +12,6 @@ export interface ModProgressSpinnerProps {
|
|
|
12
12
|
* ModProgressSpinner — scaffold placeholder, not yet implemented.
|
|
13
13
|
*/
|
|
14
14
|
export declare const ModProgressSpinner: {
|
|
15
|
-
({ children, ...props }: ModProgressSpinnerProps): import("react
|
|
15
|
+
({ children, ...props }: ModProgressSpinnerProps): import("react").JSX.Element;
|
|
16
16
|
displayName: string;
|
|
17
17
|
};
|
|
@@ -30,6 +30,6 @@ export interface ModProgressbarProps extends Omit<LinearProgressProps, 'variant'
|
|
|
30
30
|
* - Cancelled State: Separate variant prop (variant='cancelled') alongside value prop
|
|
31
31
|
*/
|
|
32
32
|
export declare const ModProgressbar: {
|
|
33
|
-
({ value, labelPosition, variant, labelText, ...props }: ModProgressbarProps): import("react
|
|
33
|
+
({ value, labelPosition, variant, labelText, ...props }: ModProgressbarProps): import("react").JSX.Element;
|
|
34
34
|
displayName: string;
|
|
35
35
|
};
|
|
@@ -37,6 +37,6 @@ export interface ModQuickFilterProps {
|
|
|
37
37
|
* />
|
|
38
38
|
*/
|
|
39
39
|
export declare const ModQuickFilter: {
|
|
40
|
-
({ placeholder, onKeyDown, autoFocus, }: ModQuickFilterProps): import("react
|
|
40
|
+
({ placeholder, onKeyDown, autoFocus, }: ModQuickFilterProps): import("react").JSX.Element;
|
|
41
41
|
displayName: string;
|
|
42
42
|
};
|
package/dist/Radio/Radio.d.ts
CHANGED
|
@@ -53,7 +53,7 @@ export interface ModRadioProps extends Omit<RadioProps, 'size'> {
|
|
|
53
53
|
* </RadioGroup>
|
|
54
54
|
*/
|
|
55
55
|
export declare const ModRadio: {
|
|
56
|
-
({ size, label, helperText, disabled, ...props }: ModRadioProps): import("react
|
|
56
|
+
({ size, label, helperText, disabled, ...props }: ModRadioProps): import("react").JSX.Element;
|
|
57
57
|
displayName: string;
|
|
58
58
|
};
|
|
59
59
|
export {};
|
|
@@ -22,7 +22,7 @@ export interface ModSearchChipProps extends Omit<InputBaseProps, 'startAdornment
|
|
|
22
22
|
* <ModSearchChip size="small" placeholder="Search titles" value={query} onChange={handleChange} />
|
|
23
23
|
*/
|
|
24
24
|
export declare const ModSearchChip: {
|
|
25
|
-
({ onClear, value, ...props }: ModSearchChipProps): import("react
|
|
25
|
+
({ onClear, value, ...props }: ModSearchChipProps): import("react").JSX.Element;
|
|
26
26
|
displayName: string;
|
|
27
27
|
};
|
|
28
28
|
export {};
|
package/dist/Select/Select.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export type ModSelectProps = MuiSelectProps;
|
|
|
18
18
|
* ```
|
|
19
19
|
*/
|
|
20
20
|
export declare const ModSelect: {
|
|
21
|
-
(props: ModSelectProps): import("react
|
|
21
|
+
(props: ModSelectProps): import("react").JSX.Element;
|
|
22
22
|
displayName: string;
|
|
23
23
|
};
|
|
24
24
|
export { ModMenuItem as ModSelectOption };
|
|
@@ -57,7 +57,7 @@ export interface ModSelectFieldProps extends Omit<SelectProps, 'size' | 'variant
|
|
|
57
57
|
* />
|
|
58
58
|
*/
|
|
59
59
|
export declare const ModSelectField: {
|
|
60
|
-
({ size, destructive, label, required, infoIcon, helperText, errorMessage, options, children, disabled, id, ...selectProps }: ModSelectFieldProps): import("react
|
|
60
|
+
({ size, destructive, label, required, infoIcon, helperText, errorMessage, options, children, disabled, id, ...selectProps }: ModSelectFieldProps): import("react").JSX.Element;
|
|
61
61
|
displayName: string;
|
|
62
62
|
};
|
|
63
63
|
export { ModSelectOption };
|
|
@@ -27,7 +27,7 @@ export type ModSideNavProps = {
|
|
|
27
27
|
* and pass it in — see the `AutoCollapseOnResize` Storybook story for the
|
|
28
28
|
* pattern.
|
|
29
29
|
*/
|
|
30
|
-
export declare function ModSideNav({ collapsed, onCollapsedChange, header, footer, children, className, id, 'aria-label': ariaLabel, }: ModSideNavProps): import("react
|
|
30
|
+
export declare function ModSideNav({ collapsed, onCollapsedChange, header, footer, children, className, id, 'aria-label': ariaLabel, }: ModSideNavProps): import("react").JSX.Element;
|
|
31
31
|
export declare namespace ModSideNav {
|
|
32
32
|
var displayName: string;
|
|
33
33
|
}
|
|
@@ -24,6 +24,6 @@ export interface ModSkeletonProps extends Omit<SkeletonProps, 'variant' | 'anima
|
|
|
24
24
|
* ```
|
|
25
25
|
*/
|
|
26
26
|
export declare const ModSkeleton: {
|
|
27
|
-
({ colorTheme, position, ...props }: ModSkeletonProps): import("react
|
|
27
|
+
({ colorTheme, position, ...props }: ModSkeletonProps): import("react").JSX.Element;
|
|
28
28
|
displayName: string;
|
|
29
29
|
};
|
|
@@ -41,7 +41,7 @@ export interface ModTabPanelProps extends Omit<BoxProps, 'role'> {
|
|
|
41
41
|
* )
|
|
42
42
|
*/
|
|
43
43
|
export declare const ModTabPanel: {
|
|
44
|
-
({ value, currentValue, variant, children, ...boxProps }: ModTabPanelProps): import("react
|
|
44
|
+
({ value, currentValue, variant, children, ...boxProps }: ModTabPanelProps): import("react").JSX.Element;
|
|
45
45
|
displayName: string;
|
|
46
46
|
};
|
|
47
47
|
export {};
|
package/dist/Table/Table.d.ts
CHANGED
|
@@ -58,7 +58,7 @@ export interface ModTableProps extends Omit<TableProps, 'size'> {
|
|
|
58
58
|
* />
|
|
59
59
|
*/
|
|
60
60
|
export declare const ModTable: {
|
|
61
|
-
({ columns, rows, size, variant, ariaLabel, ...tableProps }: ModTableProps): import("react
|
|
61
|
+
({ columns, rows, size, variant, ariaLabel, ...tableProps }: ModTableProps): import("react").JSX.Element;
|
|
62
62
|
displayName: string;
|
|
63
63
|
};
|
|
64
64
|
export {};
|
package/dist/Tabs/Tabs.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { type TabProps } from '@mui/material/Tab';
|
|
2
|
-
import type
|
|
2
|
+
import { type TabsProps } from '@mui/material/Tabs';
|
|
3
|
+
import { type ReactNode } from 'react';
|
|
3
4
|
/**
|
|
4
5
|
* ModTabs - Tabs container component based on MUI Tabs
|
|
5
6
|
*/
|
|
6
|
-
export declare const ModTabs: import("
|
|
7
|
+
export declare const ModTabs: import("react").ForwardRefExoticComponent<Omit<TabsProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
8
|
export interface ModTabProps extends Omit<TabProps, 'label'> {
|
|
8
9
|
/**
|
|
9
10
|
* The label for the tab
|
|
@@ -23,6 +24,6 @@ export interface ModTabProps extends Omit<TabProps, 'label'> {
|
|
|
23
24
|
* ModTab - Individual tab button component based on MUI Tab
|
|
24
25
|
*/
|
|
25
26
|
export declare const ModTab: {
|
|
26
|
-
({ label, count, ...props }: ModTabProps): import("react
|
|
27
|
+
({ label, count, ...props }: ModTabProps): import("react").JSX.Element;
|
|
27
28
|
displayName: string;
|
|
28
29
|
};
|
package/dist/Tag/Tag.d.ts
CHANGED
|
@@ -44,7 +44,7 @@ export type ModTagProps<C extends ElementType = typeof Chip> = ModTagOwnProps &
|
|
|
44
44
|
/**
|
|
45
45
|
* ModTag - Small label component based on MUI Chip
|
|
46
46
|
*/
|
|
47
|
-
export declare function ModTag<C extends ElementType = typeof Chip>({ size, variant, intent, shape, ...props }: ModTagProps<C>): import("react
|
|
47
|
+
export declare function ModTag<C extends ElementType = typeof Chip>({ size, variant, intent, shape, ...props }: ModTagProps<C>): import("react").JSX.Element;
|
|
48
48
|
export declare namespace ModTag {
|
|
49
49
|
var displayName: string;
|
|
50
50
|
}
|
package/dist/Toast/Toast.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ export interface ModToastProps extends Omit<AlertProps, 'variant' | 'severity' |
|
|
|
45
45
|
* ModToast - Notification/Toast component based on MUI Alert
|
|
46
46
|
*/
|
|
47
47
|
export declare const ModToast: {
|
|
48
|
-
({ intent, type: _type, title, message, showClose, actions, onClose, ...props }: ModToastProps): import("react
|
|
48
|
+
({ intent, type: _type, title, message, showClose, actions, onClose, ...props }: ModToastProps): import("react").JSX.Element;
|
|
49
49
|
displayName: string;
|
|
50
50
|
};
|
|
51
51
|
/**
|
|
@@ -60,7 +60,7 @@ export declare const ModToastButton: {
|
|
|
60
60
|
*/
|
|
61
61
|
type?: ToastType;
|
|
62
62
|
children: ReactNode;
|
|
63
|
-
} & Omit<React.ComponentProps<typeof Button>, "variant" | "type">): import("react
|
|
63
|
+
} & Omit<React.ComponentProps<typeof Button>, "variant" | "type">): import("react").JSX.Element;
|
|
64
64
|
displayName: string;
|
|
65
65
|
};
|
|
66
66
|
export {};
|
package/dist/Toggle/Toggle.d.ts
CHANGED
|
@@ -46,7 +46,7 @@ export interface ModToggleProps extends Omit<SwitchProps, 'size'> {
|
|
|
46
46
|
* <ModToggle checked={isChecked} onChange={handleChange} label="Remember me" />
|
|
47
47
|
*/
|
|
48
48
|
export declare const ModToggle: {
|
|
49
|
-
({ size, label, helperText, disabled, ...props }: ModToggleProps): import("react
|
|
49
|
+
({ size, label, helperText, disabled, ...props }: ModToggleProps): import("react").JSX.Element;
|
|
50
50
|
displayName: string;
|
|
51
51
|
};
|
|
52
52
|
export {};
|
|
@@ -28,7 +28,7 @@ export interface ModToggleButtonProps extends Omit<MuiToggleButtonProps, 'color'
|
|
|
28
28
|
* ("Table" / "Raw"). For page-level tabs, prefer ModButtonTab.
|
|
29
29
|
*/
|
|
30
30
|
export declare const ModToggleButton: {
|
|
31
|
-
({ children, size, variant, ...props }: ModToggleButtonProps): import("react
|
|
31
|
+
({ children, size, variant, ...props }: ModToggleButtonProps): import("react").JSX.Element;
|
|
32
32
|
displayName: string;
|
|
33
33
|
};
|
|
34
34
|
export {};
|
|
@@ -27,7 +27,7 @@ export interface ModToggleButtonGroupProps extends Omit<MuiToggleButtonGroupProp
|
|
|
27
27
|
* </ModToggleButtonGroup>
|
|
28
28
|
*/
|
|
29
29
|
export declare const ModToggleButtonGroup: {
|
|
30
|
-
({ size, variant, children, ...props }: ModToggleButtonGroupProps): import("react
|
|
30
|
+
({ size, variant, children, ...props }: ModToggleButtonGroupProps): import("react").JSX.Element;
|
|
31
31
|
displayName: string;
|
|
32
32
|
};
|
|
33
33
|
export {};
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import { type ToolbarProps } from '@mui/x-data-grid';
|
|
2
2
|
import type { ReactNode } from 'react';
|
|
3
|
+
import { type ModAction } from '../utils/OverflowActions';
|
|
3
4
|
export interface ModToolbarProps extends ToolbarProps {
|
|
4
5
|
/**
|
|
5
6
|
* Toolbar content (typically ModQuickFilter, ModButton, ModToggle, etc.)
|
|
6
7
|
*/
|
|
7
8
|
children?: ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* Structured actions rendered after `children`. Below `md`, all but the first move into a
|
|
11
|
+
* "More actions" menu.
|
|
12
|
+
*/
|
|
13
|
+
actions?: ModAction[];
|
|
8
14
|
}
|
|
9
15
|
/**
|
|
10
16
|
* ModToolbar - Styled toolbar component for data grid controls
|
|
@@ -46,6 +52,6 @@ export interface ModToolbarProps extends ToolbarProps {
|
|
|
46
52
|
* </ModToolbar>
|
|
47
53
|
*/
|
|
48
54
|
export declare const ModToolbar: {
|
|
49
|
-
({ children, ...props }: ModToolbarProps): import("react
|
|
55
|
+
({ children, actions, ...props }: ModToolbarProps): import("react").JSX.Element;
|
|
50
56
|
displayName: string;
|
|
51
57
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type TooltipProps } from '@mui/material/Tooltip';
|
|
2
|
-
import type
|
|
2
|
+
import { type ReactNode } from 'react';
|
|
3
3
|
/**
|
|
4
4
|
* Variant type for ModTooltip
|
|
5
5
|
*/
|
|
@@ -39,7 +39,7 @@ export interface ModTooltipProps extends Omit<TooltipProps, 'title' | 'variant'>
|
|
|
39
39
|
* - Typography: semanticTypography.tooltip (12px/1.5 line-height), fontWeight.semiBold (600) for the title
|
|
40
40
|
*/
|
|
41
41
|
export declare const ModTooltip: {
|
|
42
|
-
({ variant, title, description, children, arrow, placement, ...props }: ModTooltipProps): import("react
|
|
42
|
+
({ variant, title, description, children, arrow, placement, describeChild, slotProps, ...props }: ModTooltipProps): import("react").JSX.Element;
|
|
43
43
|
displayName: string;
|
|
44
44
|
};
|
|
45
45
|
export {};
|
package/dist/Tree/Tree.d.ts
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { type TreeItemProps } from '@mui/x-tree-view/TreeItem';
|
|
2
2
|
import { type RichTreeViewProProps } from '@mui/x-tree-view-pro/RichTreeViewPro';
|
|
3
3
|
import { type ReactNode } from 'react';
|
|
4
|
+
import type { ModAction } from '../utils/OverflowActions';
|
|
5
|
+
/** End actions render icon-only, so each needs an icon. */
|
|
6
|
+
type IconAction = ModAction & {
|
|
7
|
+
icon: ReactNode;
|
|
8
|
+
};
|
|
4
9
|
/**
|
|
5
10
|
* Extended item data that ModTreeItem can read from the items array.
|
|
6
11
|
* Consumers pass these via the `items` prop on ModTreeView.
|
|
@@ -12,6 +17,11 @@ export interface ModTreeItemData {
|
|
|
12
17
|
checkbox?: ReactNode;
|
|
13
18
|
secondaryLabel?: ReactNode;
|
|
14
19
|
endAction?: ReactNode;
|
|
20
|
+
/**
|
|
21
|
+
* Trailing actions, each an icon button labelled by `label`. Below `md` they collapse into one
|
|
22
|
+
* "More actions" menu so every row keeps a single full-size touch target.
|
|
23
|
+
*/
|
|
24
|
+
endActions?: IconAction[];
|
|
15
25
|
statusIcon?: ReactNode;
|
|
16
26
|
children?: ModTreeItemData[];
|
|
17
27
|
}
|
|
@@ -33,6 +43,7 @@ export interface ModTreeViewProps extends Omit<RichTreeViewProProps<ModTreeItemD
|
|
|
33
43
|
* and ModTreeItem as the default item slot.
|
|
34
44
|
*/
|
|
35
45
|
export declare const ModTreeView: {
|
|
36
|
-
({ slots, ...props }: ModTreeViewProps): import("react
|
|
46
|
+
({ slots, ...props }: ModTreeViewProps): import("react").JSX.Element;
|
|
37
47
|
displayName: string;
|
|
38
48
|
};
|
|
49
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ToggleButtonGroupProps } from '@mui/material/ToggleButtonGroup';
|
|
2
|
-
declare const StyledToggleButton: import("@emotion/styled").StyledComponent<import("@mui/material").ToggleButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, keyof import("@mui/material").ToggleButtonOwnProps> & Omit<import("@mui/material").ButtonBaseOwnProps, "type" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "nativeButton" | "onFocusVisible" | "tabIndex" | "TouchRippleProps" | "touchRippleRef" | keyof import("@mui/material").ToggleButtonOwnProps> & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "
|
|
2
|
+
declare const StyledToggleButton: import("@emotion/styled").StyledComponent<import("@mui/material").ToggleButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, keyof import("@mui/material").ToggleButtonOwnProps> & Omit<import("@mui/material").ButtonBaseOwnProps, "type" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "nativeButton" | "onFocusVisible" | "tabIndex" | "TouchRippleProps" | "touchRippleRef" | keyof import("@mui/material").ToggleButtonOwnProps> & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "color" | "style" | "disabled" | "size" | "classes" | "type" | "className" | "action" | "centerRipple" | "children" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "nativeButton" | "onFocusVisible" | "sx" | "tabIndex" | "TouchRippleProps" | "touchRippleRef" | "value" | "onChange" | "onClick" | "disableFocusRipple" | "fullWidth" | "selected"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
3
3
|
export interface ModTypologyControlProps extends Omit<ToggleButtonGroupProps, 'orientation'> {
|
|
4
4
|
}
|
|
5
5
|
/**
|
|
@@ -13,7 +13,7 @@ export interface ModTypologyControlProps extends Omit<ToggleButtonGroupProps, 'o
|
|
|
13
13
|
* - borderRadius.m - container border radius
|
|
14
14
|
*/
|
|
15
15
|
export declare const ModTypologyControl: {
|
|
16
|
-
({ children, ...props }: ModTypologyControlProps): import("react
|
|
16
|
+
({ children, ...props }: ModTypologyControlProps): import("react").JSX.Element;
|
|
17
17
|
displayName: string;
|
|
18
18
|
};
|
|
19
19
|
export { StyledToggleButton as ModTypologyButton };
|