@movable/ui 1.4.1 → 1.5.0

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.
@@ -1,7 +1,9 @@
1
1
  /// <reference types="react" />
2
+ import { OverridableComponent } from '@mui/material/OverridableComponent';
3
+ import { SvgIconTypeMap } from '@mui/material';
2
4
  type EmptyStateIconType = {
3
5
  variant: 'page' | 'paper' | 'search' | 'data';
4
- icon?: JSX.Element;
6
+ icon?: JSX.Element | OverridableComponent<SvgIconTypeMap<object, 'svg'>>;
5
7
  };
6
- export declare function EmptyStateIcon({ variant, icon }: EmptyStateIconType): import("react/jsx-runtime").JSX.Element;
8
+ export declare function EmptyStateIcon({ icon }: EmptyStateIconType): import("react/jsx-runtime").JSX.Element | null;
7
9
  export {};
@@ -1,5 +1,7 @@
1
1
  /// <reference types="react" />
2
- import { SxProps, Theme } from '@mui/material';
2
+ import { SxProps, Theme, SvgIconTypeMap } from '@mui/material';
3
+ import { OverridableComponent } from '@mui/material/OverridableComponent';
4
+ import { VariantType } from './VariantStyles';
3
5
  type ActionType = {
4
6
  title: string;
5
7
  onClick: () => void;
@@ -8,8 +10,8 @@ type InkEmptyStateProps = {
8
10
  title?: string;
9
11
  description?: string;
10
12
  action?: ActionType;
11
- variant: 'page' | 'paper' | 'search' | 'data';
12
- icon?: JSX.Element;
13
+ variant: VariantType;
14
+ icon?: JSX.Element | OverridableComponent<SvgIconTypeMap<object, 'svg'>>;
13
15
  sx?: SxProps<Theme>;
14
16
  };
15
17
  export declare function InkEmptyState({ title, description, action, variant, icon, sx, }: InkEmptyStateProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { TypographyVariant } from '@mui/material';
2
+ type StyleObjType = {
3
+ fontSize: number;
4
+ fontSizeDescription: number;
5
+ titleVariant: TypographyVariant;
6
+ descriptionVariant: TypographyVariant;
7
+ };
8
+ export type VariantType = 'page' | 'paper' | 'search' | 'data';
9
+ export declare const styleMap: Readonly<Record<VariantType, StyleObjType>>;
10
+ export {};