@movable/ui 2.6.1 → 2.7.0
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/lib/index.d.ts +35 -0
- package/lib/index.mjs +2756 -2666
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ import { CustomContentProps } from 'notistack';
|
|
|
8
8
|
import { default as default_2 } from 'react';
|
|
9
9
|
import { DialogProps } from '@mui/material/Dialog';
|
|
10
10
|
import { DrawerProps } from '@mui/material/Drawer';
|
|
11
|
+
import { DrawerProps as DrawerProps_2 } from '@mui/material';
|
|
11
12
|
import { FieldPath } from 'react-hook-form';
|
|
12
13
|
import { FieldValues } from 'react-hook-form';
|
|
13
14
|
import { ForwardRefExoticComponent } from 'react';
|
|
@@ -71,6 +72,28 @@ declare type closeButtonType = {
|
|
|
71
72
|
onClick: (e?: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
72
73
|
};
|
|
73
74
|
|
|
75
|
+
declare interface CollapsibleDrawerProps extends CommonDrawerProps {
|
|
76
|
+
drawerType: 'basic' | 'filter';
|
|
77
|
+
isOpen: boolean;
|
|
78
|
+
handleDrawerClose: () => void;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
declare interface CommonDrawerProps extends DrawerProps_2 {
|
|
82
|
+
drawerType: DrawerType;
|
|
83
|
+
drawerContent: JSX.Element;
|
|
84
|
+
drawerWidth?: number;
|
|
85
|
+
leftOffset?: string;
|
|
86
|
+
bottomContent?: JSX.Element;
|
|
87
|
+
headerLabel?: string;
|
|
88
|
+
isComponentLevelDrawer?: boolean;
|
|
89
|
+
mainProps?: BoxProps;
|
|
90
|
+
icon?: JSX.Element | OverridableComponent<SvgIconTypeMap<object, 'svg'>>;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
declare type CopiedValue = string | null;
|
|
94
|
+
|
|
95
|
+
declare type CopyFn = (text: string) => Promise<boolean>;
|
|
96
|
+
|
|
74
97
|
export declare function DemoComponent({ stringToDisplay }: DemoComponentProps): JSX_2.Element;
|
|
75
98
|
|
|
76
99
|
declare type DemoComponentProps = {
|
|
@@ -79,6 +102,8 @@ declare type DemoComponentProps = {
|
|
|
79
102
|
|
|
80
103
|
export declare function DetailsLayout({ Header, children, ...rest }: LayoutDetailsProps): JSX_2.Element;
|
|
81
104
|
|
|
105
|
+
declare type DrawerType = 'basic' | 'panel' | 'filter';
|
|
106
|
+
|
|
82
107
|
declare type DropdownActionType = {
|
|
83
108
|
label: ReactNode;
|
|
84
109
|
menuOptions: MenuOptionType[];
|
|
@@ -193,6 +218,10 @@ export declare type InkDialogProps = DialogProps & {
|
|
|
193
218
|
ActionsProp?: ActionsPropType;
|
|
194
219
|
};
|
|
195
220
|
|
|
221
|
+
export declare function InkDrawer(props: PropsWithChildren<InkDrawerProps>): JSX_2.Element;
|
|
222
|
+
|
|
223
|
+
declare type InkDrawerProps = CollapsibleDrawerProps | PanelDrawerProps;
|
|
224
|
+
|
|
196
225
|
export declare function InkEmptyState({ title, description, action, variant, icon, sx, }: InkEmptyStateProps): JSX_2.Element;
|
|
197
226
|
|
|
198
227
|
declare type InkEmptyStateProps = {
|
|
@@ -428,6 +457,10 @@ declare type PageHeaderActionButtonsProps = {
|
|
|
428
457
|
|
|
429
458
|
export declare const PageWrapper: ({ title, addTitleSuffix, description, children, }: PropsWithChildren<IPageWrapperProps>) => JSX_2.Element;
|
|
430
459
|
|
|
460
|
+
declare interface PanelDrawerProps extends CommonDrawerProps {
|
|
461
|
+
drawerType: 'panel';
|
|
462
|
+
}
|
|
463
|
+
|
|
431
464
|
declare type PrimaryButtonType = ButtonProps & {
|
|
432
465
|
label: string;
|
|
433
466
|
loading?: boolean;
|
|
@@ -435,6 +468,8 @@ declare type PrimaryButtonType = ButtonProps & {
|
|
|
435
468
|
|
|
436
469
|
export declare function SnackbarActionButton({ closeSnackbar, label, ...buttonProps }: InkSnackbarActionButtonProps): JSX_2.Element;
|
|
437
470
|
|
|
471
|
+
export declare function useCopyToClipboard(): [CopiedValue, CopyFn];
|
|
472
|
+
|
|
438
473
|
declare type VariantType = 'page' | 'paper' | 'search' | 'data';
|
|
439
474
|
|
|
440
475
|
export declare function WorkflowLayout({ Header, children, sx, ...rest }: WorkflowLayoutProps): JSX_2.Element;
|