@movable/ui 2.15.1 → 2.15.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/components/InkDrawer/InkDrawer.d.ts +6 -2
- package/lib/index.d.ts +7 -1
- package/lib/index.mjs +1208 -1198
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -3,10 +3,15 @@ import { BoxProps, DrawerProps, SxProps, Theme } from '@mui/material';
|
|
|
3
3
|
import { SvgIconTypeMap } from '@mui/material';
|
|
4
4
|
import { OverridableComponent } from '@mui/material/OverridableComponent';
|
|
5
5
|
type DrawerType = 'basic' | 'panel' | 'filter';
|
|
6
|
+
declare const defaultDrawerWidths: {
|
|
7
|
+
md: number;
|
|
8
|
+
lg: number;
|
|
9
|
+
xl: number;
|
|
10
|
+
};
|
|
6
11
|
interface CommonDrawerProps extends DrawerProps {
|
|
7
12
|
drawerType: DrawerType;
|
|
8
13
|
drawerContent: JSX.Element;
|
|
9
|
-
drawerWidth?: number
|
|
14
|
+
drawerWidth?: number | Partial<typeof defaultDrawerWidths>;
|
|
10
15
|
leftOffset?: string;
|
|
11
16
|
bottomContent?: JSX.Element;
|
|
12
17
|
headerLabel?: string;
|
|
@@ -24,6 +29,5 @@ interface PanelDrawerProps extends CommonDrawerProps {
|
|
|
24
29
|
drawerType: 'panel';
|
|
25
30
|
}
|
|
26
31
|
type InkDrawerProps = CollapsibleDrawerProps | PanelDrawerProps;
|
|
27
|
-
export declare const defaultFilterDrawerWidth = 280;
|
|
28
32
|
export declare function InkDrawer(props: PropsWithChildren<InkDrawerProps>): import("react/jsx-runtime").JSX.Element;
|
|
29
33
|
export {};
|
package/lib/index.d.ts
CHANGED
|
@@ -113,7 +113,7 @@ declare interface CollapsibleDrawerProps extends CommonDrawerProps {
|
|
|
113
113
|
declare interface CommonDrawerProps extends DrawerProps_2 {
|
|
114
114
|
drawerType: DrawerType;
|
|
115
115
|
drawerContent: JSX.Element;
|
|
116
|
-
drawerWidth?: number
|
|
116
|
+
drawerWidth?: number | Partial<typeof defaultDrawerWidths>;
|
|
117
117
|
leftOffset?: string;
|
|
118
118
|
bottomContent?: JSX.Element;
|
|
119
119
|
headerLabel?: string;
|
|
@@ -127,6 +127,12 @@ declare type CopiedValue = string | null;
|
|
|
127
127
|
|
|
128
128
|
declare type CopyFn = (text: string) => Promise<boolean>;
|
|
129
129
|
|
|
130
|
+
declare const defaultDrawerWidths: {
|
|
131
|
+
md: number;
|
|
132
|
+
lg: number;
|
|
133
|
+
xl: number;
|
|
134
|
+
};
|
|
135
|
+
|
|
130
136
|
export declare function DemoComponent({ stringToDisplay }: DemoComponentProps): JSX_2.Element;
|
|
131
137
|
|
|
132
138
|
declare type DemoComponentProps = {
|