@movable/ui 2.6.0 → 2.6.2
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 +32 -2
- package/lib/index.mjs +2580 -2503
- 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,24 @@ 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
|
+
|
|
74
93
|
export declare function DemoComponent({ stringToDisplay }: DemoComponentProps): JSX_2.Element;
|
|
75
94
|
|
|
76
95
|
declare type DemoComponentProps = {
|
|
@@ -79,6 +98,8 @@ declare type DemoComponentProps = {
|
|
|
79
98
|
|
|
80
99
|
export declare function DetailsLayout({ Header, children, ...rest }: LayoutDetailsProps): JSX_2.Element;
|
|
81
100
|
|
|
101
|
+
declare type DrawerType = 'basic' | 'panel' | 'filter';
|
|
102
|
+
|
|
82
103
|
declare type DropdownActionType = {
|
|
83
104
|
label: ReactNode;
|
|
84
105
|
menuOptions: MenuOptionType[];
|
|
@@ -193,6 +214,10 @@ export declare type InkDialogProps = DialogProps & {
|
|
|
193
214
|
ActionsProp?: ActionsPropType;
|
|
194
215
|
};
|
|
195
216
|
|
|
217
|
+
export declare function InkDrawer(props: PropsWithChildren<InkDrawerProps>): JSX_2.Element;
|
|
218
|
+
|
|
219
|
+
declare type InkDrawerProps = CollapsibleDrawerProps | PanelDrawerProps;
|
|
220
|
+
|
|
196
221
|
export declare function InkEmptyState({ title, description, action, variant, icon, sx, }: InkEmptyStateProps): JSX_2.Element;
|
|
197
222
|
|
|
198
223
|
declare type InkEmptyStateProps = {
|
|
@@ -229,13 +254,14 @@ declare type InkPageHeaderProps = {
|
|
|
229
254
|
sx?: SxProps<Theme>;
|
|
230
255
|
};
|
|
231
256
|
|
|
232
|
-
export declare function InkPaper({ Header, Description, Icon, CTA, children, ...props }: InkPaperProps): JSX_2.Element;
|
|
257
|
+
export declare function InkPaper({ Header, Description, Icon, CTA, children, shouldShowFullDescription, ...props }: InkPaperProps): JSX_2.Element;
|
|
233
258
|
|
|
234
259
|
export declare type InkPaperProps = PaperProps & {
|
|
235
260
|
Header: string | JSX.Element;
|
|
236
|
-
Description?: string;
|
|
261
|
+
Description?: string | JSX.Element;
|
|
237
262
|
Icon?: JSX.Element;
|
|
238
263
|
CTA?: JSX.Element;
|
|
264
|
+
shouldShowFullDescription?: boolean;
|
|
239
265
|
};
|
|
240
266
|
|
|
241
267
|
export declare function InkPersistentFilterDrawer({ isOpen, handleDrawerClose, children, drawerWidth, leftOffset, //primary nav width when closed and when open
|
|
@@ -427,6 +453,10 @@ declare type PageHeaderActionButtonsProps = {
|
|
|
427
453
|
|
|
428
454
|
export declare const PageWrapper: ({ title, addTitleSuffix, description, children, }: PropsWithChildren<IPageWrapperProps>) => JSX_2.Element;
|
|
429
455
|
|
|
456
|
+
declare interface PanelDrawerProps extends CommonDrawerProps {
|
|
457
|
+
drawerType: 'panel';
|
|
458
|
+
}
|
|
459
|
+
|
|
430
460
|
declare type PrimaryButtonType = ButtonProps & {
|
|
431
461
|
label: string;
|
|
432
462
|
loading?: boolean;
|