@movable/ui 2.6.1 → 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 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 = {
@@ -428,6 +453,10 @@ declare type PageHeaderActionButtonsProps = {
428
453
 
429
454
  export declare const PageWrapper: ({ title, addTitleSuffix, description, children, }: PropsWithChildren<IPageWrapperProps>) => JSX_2.Element;
430
455
 
456
+ declare interface PanelDrawerProps extends CommonDrawerProps {
457
+ drawerType: 'panel';
458
+ }
459
+
431
460
  declare type PrimaryButtonType = ButtonProps & {
432
461
  label: string;
433
462
  loading?: boolean;