@ambuj.bhaskar/react-component-library 0.18.0-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 +72 -0
- package/dist/index.js +10223 -10008
- package/dist/index.umd.js +90 -90
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,67 @@ 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
|
+
|
|
65
|
+
export declare const Backdrop: default_2.FC<BackdropProps>;
|
|
66
|
+
|
|
67
|
+
export declare interface BackdropProps extends ComponentProps<"div"> {
|
|
68
|
+
onClick: () => void;
|
|
69
|
+
className?: string;
|
|
70
|
+
}
|
|
71
|
+
|
|
11
72
|
export declare const Badge: React.FC<BadgeProps>;
|
|
12
73
|
|
|
13
74
|
export declare interface BadgeProps extends ComponentProps<"div"> {
|
|
@@ -221,6 +282,17 @@ declare type JustifyContent = "center" | "start" | "end" | "flex-start" | "flex-
|
|
|
221
282
|
|
|
222
283
|
export declare const Modal: default_2.FC<ModalProps>;
|
|
223
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
|
+
|
|
224
296
|
export declare type ModalProps = {
|
|
225
297
|
visible: boolean;
|
|
226
298
|
onClose: () => void;
|