@movable/ui 2.15.0 → 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.
@@ -0,0 +1,8 @@
1
+ import { CardProps } from '@mui/material';
2
+ import { InkCardHeaderProps } from './InkCardHeader';
3
+ import { InkCardMediaProps } from './InkCardMedia';
4
+ export interface InkCardProps extends CardProps {
5
+ cardHeader?: InkCardHeaderProps;
6
+ cardMedia?: InkCardMediaProps;
7
+ }
8
+ export declare function InkCard({ cardMedia, cardHeader, children, ...rest }: InkCardProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { CheckboxProps, TypographyProps } from '@mui/material';
2
+ export interface InkCardHeaderProps {
3
+ checkboxProps?: CheckboxProps;
4
+ title?: string;
5
+ size?: 'small' | 'medium';
6
+ subheader?: string;
7
+ adornment?: JSX.Element;
8
+ titleProps?: TypographyProps;
9
+ onClose?: () => void;
10
+ }
11
+ export declare function InkCardHeader({ checkboxProps, title, size, subheader, adornment, titleProps, onClose, }: InkCardHeaderProps): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,5 @@
1
+ import { CardMediaProps } from '@mui/material';
2
+ export interface InkCardMediaProps extends CardMediaProps {
3
+ mediaContent?: JSX.Element;
4
+ }
5
+ export declare function InkCardMedia({ mediaContent, ...rest }: InkCardMediaProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export { InkCard } from './InkCard';
@@ -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 {};
@@ -22,3 +22,4 @@ export * from './InkTextField';
22
22
  export * from './InkSelect';
23
23
  export { InternalUseOnlyLabel, InternalUseOnlyAlert, } from './InternalUseOnlyIndicators';
24
24
  export { InkChart } from './InkChart';
25
+ export { InkCard } from './InkCard';
package/lib/index.d.ts CHANGED
@@ -3,9 +3,12 @@ import { BoxProps } from '@mui/material';
3
3
  import { BoxProps as BoxProps_2 } from '@mui/material/Box';
4
4
  import { ButtonProps } from '@mui/material';
5
5
  import { ButtonProps as ButtonProps_2 } from '@mui/material/Button';
6
+ import { CardMediaProps } from '@mui/material';
7
+ import { CardProps } from '@mui/material';
6
8
  import type { ChartData } from 'chart.js';
7
9
  import type { ChartOptions } from 'chart.js';
8
- import { CheckboxProps } from '@mui/material/Checkbox';
10
+ import { CheckboxProps } from '@mui/material';
11
+ import { CheckboxProps as CheckboxProps_2 } from '@mui/material/Checkbox';
9
12
  import { ChipProps } from '@mui/material';
10
13
  import { CustomContentProps } from 'notistack';
11
14
  import type { DialogProps } from '@mui/material/Dialog';
@@ -110,7 +113,7 @@ declare interface CollapsibleDrawerProps extends CommonDrawerProps {
110
113
  declare interface CommonDrawerProps extends DrawerProps_2 {
111
114
  drawerType: DrawerType;
112
115
  drawerContent: JSX.Element;
113
- drawerWidth?: number;
116
+ drawerWidth?: number | Partial<typeof defaultDrawerWidths>;
114
117
  leftOffset?: string;
115
118
  bottomContent?: JSX.Element;
116
119
  headerLabel?: string;
@@ -124,6 +127,12 @@ declare type CopiedValue = string | null;
124
127
 
125
128
  declare type CopyFn = (text: string) => Promise<boolean>;
126
129
 
130
+ declare const defaultDrawerWidths: {
131
+ md: number;
132
+ lg: number;
133
+ xl: number;
134
+ };
135
+
127
136
  export declare function DemoComponent({ stringToDisplay }: DemoComponentProps): JSX_2.Element;
128
137
 
129
138
  declare type DemoComponentProps = {
@@ -223,6 +232,27 @@ declare type InkAttributeProps = ListItemTextProps & {
223
232
  };
224
233
  };
225
234
 
235
+ export declare function InkCard({ cardMedia, cardHeader, children, ...rest }: InkCardProps): JSX_2.Element;
236
+
237
+ declare interface InkCardHeaderProps {
238
+ checkboxProps?: CheckboxProps;
239
+ title?: string;
240
+ size?: 'small' | 'medium';
241
+ subheader?: string;
242
+ adornment?: JSX.Element;
243
+ titleProps?: TypographyProps;
244
+ onClose?: () => void;
245
+ }
246
+
247
+ declare interface InkCardMediaProps extends CardMediaProps {
248
+ mediaContent?: JSX.Element;
249
+ }
250
+
251
+ declare interface InkCardProps extends CardProps {
252
+ cardHeader?: InkCardHeaderProps;
253
+ cardMedia?: InkCardMediaProps;
254
+ }
255
+
226
256
  export declare function InkChart<T extends ChartTypes>({ chartOptions, type, data, customColors, height, isLoading, stacked, legend, title, }: ChartProps<T>): JSX_2.Element | undefined;
227
257
 
228
258
  export declare const InkCheckboxGroup: ForwardRefExoticComponent<InkCheckboxGroupProps & RefAttributes<HTMLDivElement>>;
@@ -250,7 +280,7 @@ export declare type InkCheckboxGroupProps = {
250
280
  options: {
251
281
  value: string;
252
282
  label: string;
253
- checkboxProps?: CheckboxProps;
283
+ checkboxProps?: CheckboxProps_2;
254
284
  }[];
255
285
  formGroupProps?: FormGroupProps;
256
286
  formLabel: string;