@movable/ui 1.0.1 → 1.1.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.
@@ -0,0 +1,5 @@
1
+ type DialogIconType = {
2
+ variant: 'primary' | 'warning' | 'destructive';
3
+ };
4
+ export declare function DialogIcons({ variant }: DialogIconType): import("react/jsx-runtime").JSX.Element | null;
5
+ export {};
@@ -1,10 +1,22 @@
1
1
  /// <reference types="react" />
2
- import { DialogProps } from '@mui/material/Dialog';
2
+ import type { DialogProps } from '@mui/material/Dialog';
3
+ type ActionPropType = {
4
+ label: string;
5
+ onClick: () => void;
6
+ variant?: 'primary' | 'warning' | 'destructive';
7
+ };
8
+ type ActionsPropType = {
9
+ primary?: ActionPropType;
10
+ secondary?: ActionPropType;
11
+ cancel?: ActionPropType;
12
+ };
3
13
  export type InkDialogProps = DialogProps & {
4
14
  Title?: string | JSX.Element;
5
15
  Content?: JSX.Element;
6
16
  Actions?: JSX.Element;
7
17
  hideCloseButton?: boolean;
8
18
  onClose: () => void;
19
+ ActionsProp?: ActionsPropType;
9
20
  };
10
- export declare function InkDialog({ Title, Content, Actions, onClose, hideCloseButton, ...props }: InkDialogProps): import("react/jsx-runtime").JSX.Element;
21
+ export declare function InkDialog({ Title, Content, Actions, onClose, hideCloseButton, ActionsProp, ...props }: InkDialogProps): import("react/jsx-runtime").JSX.Element;
22
+ export {};