@movable/ui 2.15.0 → 2.15.1

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';
@@ -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';
@@ -223,6 +226,27 @@ declare type InkAttributeProps = ListItemTextProps & {
223
226
  };
224
227
  };
225
228
 
229
+ export declare function InkCard({ cardMedia, cardHeader, children, ...rest }: InkCardProps): JSX_2.Element;
230
+
231
+ declare interface InkCardHeaderProps {
232
+ checkboxProps?: CheckboxProps;
233
+ title?: string;
234
+ size?: 'small' | 'medium';
235
+ subheader?: string;
236
+ adornment?: JSX.Element;
237
+ titleProps?: TypographyProps;
238
+ onClose?: () => void;
239
+ }
240
+
241
+ declare interface InkCardMediaProps extends CardMediaProps {
242
+ mediaContent?: JSX.Element;
243
+ }
244
+
245
+ declare interface InkCardProps extends CardProps {
246
+ cardHeader?: InkCardHeaderProps;
247
+ cardMedia?: InkCardMediaProps;
248
+ }
249
+
226
250
  export declare function InkChart<T extends ChartTypes>({ chartOptions, type, data, customColors, height, isLoading, stacked, legend, title, }: ChartProps<T>): JSX_2.Element | undefined;
227
251
 
228
252
  export declare const InkCheckboxGroup: ForwardRefExoticComponent<InkCheckboxGroupProps & RefAttributes<HTMLDivElement>>;
@@ -250,7 +274,7 @@ export declare type InkCheckboxGroupProps = {
250
274
  options: {
251
275
  value: string;
252
276
  label: string;
253
- checkboxProps?: CheckboxProps;
277
+ checkboxProps?: CheckboxProps_2;
254
278
  }[];
255
279
  formGroupProps?: FormGroupProps;
256
280
  formLabel: string;