@ambuj.bhaskar/react-component-library 0.18.1-alpha → 0.18.2-alpha
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.
- package/README.md +149 -15
- package/dist/assets/index.css +1 -1
- package/dist/index.cjs +87 -87
- package/dist/index.d.ts +65 -0
- package/dist/index.js +10124 -9947
- package/dist/index.umd.js +89 -89
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,60 @@ import { SetStateAction } from 'react';
|
|
|
8
8
|
import { TableProps as TableProps_2 } from 'antd';
|
|
9
9
|
import { TimeRangePickerProps } from 'antd';
|
|
10
10
|
|
|
11
|
+
export declare const AwiModal: ({ children, isBackdrop, backdropAction, detailsModal, className, type, popupPosition, }: AwiModalProps) => JSX_2.Element;
|
|
12
|
+
|
|
13
|
+
export declare const AwiModalBody: default_2.FC<AwiModalBodyProps>;
|
|
14
|
+
|
|
15
|
+
export declare interface AwiModalBodyProps {
|
|
16
|
+
children: React.ReactNode;
|
|
17
|
+
className?: string;
|
|
18
|
+
fixHeightScroll?: boolean;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export declare const AwiModalFooter: default_2.FC<AwiModalFooterProps>;
|
|
22
|
+
|
|
23
|
+
export declare interface AwiModalFooterProps {
|
|
24
|
+
leftButtons?: ModalButtonProps[];
|
|
25
|
+
centerButtons?: ModalButtonProps[];
|
|
26
|
+
rightButtons?: ModalButtonProps[];
|
|
27
|
+
buttons?: ModalButtonProps[];
|
|
28
|
+
borderTopRequired?: boolean;
|
|
29
|
+
children?: React.ReactNode;
|
|
30
|
+
alignmentType?: "row" | "column";
|
|
31
|
+
className?: string;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export declare const AwiModalHeader: default_2.FC<AwiModalHeaderProps>;
|
|
35
|
+
|
|
36
|
+
export declare interface AwiModalHeaderProps {
|
|
37
|
+
title: string;
|
|
38
|
+
onClose?: any;
|
|
39
|
+
backgroundColor?: string;
|
|
40
|
+
disableBottomBorder?: boolean;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export declare interface AwiModalProps {
|
|
44
|
+
children: React.ReactNode;
|
|
45
|
+
isBackdrop?: boolean;
|
|
46
|
+
backdropAction?: any;
|
|
47
|
+
leftaligned?: boolean;
|
|
48
|
+
detailsModal?: boolean;
|
|
49
|
+
className?: string;
|
|
50
|
+
type?: string;
|
|
51
|
+
popupPosition?: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export declare const AwiModalRow: default_2.FC<AwiModalRowProps>;
|
|
55
|
+
|
|
56
|
+
export declare interface AwiModalRowProps {
|
|
57
|
+
label?: string;
|
|
58
|
+
children: React.ReactNode;
|
|
59
|
+
isRequired?: boolean;
|
|
60
|
+
labelTitle?: string;
|
|
61
|
+
boldLabel?: boolean;
|
|
62
|
+
className?: string;
|
|
63
|
+
}
|
|
64
|
+
|
|
11
65
|
export declare const Backdrop: default_2.FC<BackdropProps>;
|
|
12
66
|
|
|
13
67
|
export declare interface BackdropProps extends ComponentProps<"div"> {
|
|
@@ -228,6 +282,17 @@ declare type JustifyContent = "center" | "start" | "end" | "flex-start" | "flex-
|
|
|
228
282
|
|
|
229
283
|
export declare const Modal: default_2.FC<ModalProps>;
|
|
230
284
|
|
|
285
|
+
export declare interface ModalButtonProps {
|
|
286
|
+
label: string;
|
|
287
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
288
|
+
type?: "button" | "submit" | "reset";
|
|
289
|
+
disabled?: boolean;
|
|
290
|
+
backgroundColor?: string;
|
|
291
|
+
borderColor?: string;
|
|
292
|
+
className?: string;
|
|
293
|
+
title?: string;
|
|
294
|
+
}
|
|
295
|
+
|
|
231
296
|
export declare type ModalProps = {
|
|
232
297
|
visible: boolean;
|
|
233
298
|
onClose: () => void;
|