@ambuj.bhaskar/react-component-library 0.18.1-alpha → 0.18.3-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 +34 -21
- package/bin/cli.js +87 -87
- package/dist/assets/index.css +1 -1
- package/dist/index.cjs +161 -144
- package/dist/index.d.ts +96 -0
- package/dist/index.js +53306 -45280
- package/dist/index.umd.js +162 -145
- package/package.json +87 -87
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"> {
|
|
@@ -30,6 +84,8 @@ declare enum BadgeVariants {
|
|
|
30
84
|
MEDIUM = "m"
|
|
31
85
|
}
|
|
32
86
|
|
|
87
|
+
declare type BarChartVariant = "stacked" | "grouped";
|
|
88
|
+
|
|
33
89
|
declare type BlobType = {
|
|
34
90
|
detection?: {
|
|
35
91
|
image?: string;
|
|
@@ -84,6 +140,33 @@ export declare type ButtonProps = HTMLButtonProps & {
|
|
|
84
140
|
|
|
85
141
|
declare type ButtonVariant = "primary" | "secondary" | "tertiary" | "nav";
|
|
86
142
|
|
|
143
|
+
export declare const Chart: React.FC<ChartProps>;
|
|
144
|
+
|
|
145
|
+
declare type ChartData = {
|
|
146
|
+
labels: string[];
|
|
147
|
+
datasets: {
|
|
148
|
+
label: string;
|
|
149
|
+
data: number[];
|
|
150
|
+
color?: Color;
|
|
151
|
+
colors?: Color[];
|
|
152
|
+
}[];
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
export declare type ChartProps = {
|
|
156
|
+
type: ChartType;
|
|
157
|
+
barVariant?: BarChartVariant;
|
|
158
|
+
lineVariant?: LineVariant;
|
|
159
|
+
lineTension?: number;
|
|
160
|
+
data: ChartData;
|
|
161
|
+
options?: any;
|
|
162
|
+
width?: string;
|
|
163
|
+
height?: string;
|
|
164
|
+
backgroundColor?: Color;
|
|
165
|
+
className?: string;
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
declare type ChartType = "line" | "bar" | "doughnut" | "pie";
|
|
169
|
+
|
|
87
170
|
declare type Color = string;
|
|
88
171
|
|
|
89
172
|
export declare const CompactEventCard: React.FC<CompactEventCardPropsType>;
|
|
@@ -226,8 +309,21 @@ export declare type InputProps = HTMLInputProps & {
|
|
|
226
309
|
|
|
227
310
|
declare type JustifyContent = "center" | "start" | "end" | "flex-start" | "flex-end" | "left" | "right" | "baseline" | "first baseline" | "last baseline" | "space-between" | "space-around" | "space-evenly" | "stretch";
|
|
228
311
|
|
|
312
|
+
declare type LineVariant = "fill" | "line";
|
|
313
|
+
|
|
229
314
|
export declare const Modal: default_2.FC<ModalProps>;
|
|
230
315
|
|
|
316
|
+
export declare interface ModalButtonProps {
|
|
317
|
+
label: string;
|
|
318
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
319
|
+
type?: "button" | "submit" | "reset";
|
|
320
|
+
disabled?: boolean;
|
|
321
|
+
backgroundColor?: string;
|
|
322
|
+
borderColor?: string;
|
|
323
|
+
className?: string;
|
|
324
|
+
title?: string;
|
|
325
|
+
}
|
|
326
|
+
|
|
231
327
|
export declare type ModalProps = {
|
|
232
328
|
visible: boolean;
|
|
233
329
|
onClose: () => void;
|