@npm-questionpro/wick-ui-lib 1.0.3 → 1.0.4
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,4 +1,4 @@
|
|
|
1
|
-
import { Dialog, DialogClose } from '../../base/ui/dialog';
|
|
1
|
+
import { Dialog, DialogClose, DialogContent, DialogFooter, DialogHeader } from '../../base/ui/dialog';
|
|
2
2
|
import { default as React, FC, ReactNode } from 'react';
|
|
3
3
|
declare const MAX_WIDTH: {
|
|
4
4
|
readonly sm: "400px";
|
|
@@ -12,7 +12,7 @@ declare const BUTTON_VARIANTS: {
|
|
|
12
12
|
};
|
|
13
13
|
type IModalSize = keyof typeof MAX_WIDTH;
|
|
14
14
|
type IButtonVariant = keyof typeof BUTTON_VARIANTS;
|
|
15
|
-
export
|
|
15
|
+
export type IWuModalProps = React.ComponentProps<typeof Dialog> & {
|
|
16
16
|
Trigger?: ReactNode;
|
|
17
17
|
children?: ReactNode;
|
|
18
18
|
size?: IModalSize;
|
|
@@ -23,11 +23,11 @@ export interface IWuModalProps extends React.ComponentProps<typeof Dialog> {
|
|
|
23
23
|
dir?: 'ltr' | 'rtl';
|
|
24
24
|
maxWidth?: string;
|
|
25
25
|
maxHeight?: string;
|
|
26
|
-
}
|
|
26
|
+
};
|
|
27
27
|
export declare const WuModal: FC<IWuModalProps>;
|
|
28
|
-
export declare const WuModalContent: FC<React.
|
|
29
|
-
export declare const WuModalHeader: FC<React.
|
|
30
|
-
export declare const WuModalFooter: FC<React.
|
|
28
|
+
export declare const WuModalContent: FC<React.ComponentProps<typeof DialogContent>>;
|
|
29
|
+
export declare const WuModalHeader: FC<React.ComponentProps<typeof DialogHeader>>;
|
|
30
|
+
export declare const WuModalFooter: FC<React.ComponentProps<typeof DialogFooter>>;
|
|
31
31
|
interface IModalCloseProps extends React.ComponentProps<typeof DialogClose> {
|
|
32
32
|
children?: ReactNode;
|
|
33
33
|
variant?: IButtonVariant;
|