@ambuj.bhaskar/react-component-library 0.9.1 → 0.10.1
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/bin/cli.js +87 -0
- package/dist/assets/index.css +1 -1
- package/dist/index.cjs +84 -84
- package/dist/index.d.ts +65 -5
- package/dist/index.js +9023 -8721
- package/dist/index.umd.js +71 -71
- package/package.json +10 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,25 @@
|
|
|
1
1
|
import { ComponentProps } from 'react';
|
|
2
|
+
import { Dayjs } from 'dayjs';
|
|
2
3
|
import { default as default_2 } from 'react';
|
|
3
4
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
4
5
|
import * as React_2 from 'react';
|
|
5
6
|
import { ReactNode } from 'react';
|
|
6
7
|
import { TimeRangePickerProps } from 'antd';
|
|
7
8
|
|
|
9
|
+
declare type BlobType = {
|
|
10
|
+
detection?: {
|
|
11
|
+
image: string;
|
|
12
|
+
};
|
|
13
|
+
match?: {
|
|
14
|
+
image: string;
|
|
15
|
+
};
|
|
16
|
+
attributes?: {
|
|
17
|
+
[key: string]: string;
|
|
18
|
+
};
|
|
19
|
+
labels?: string[];
|
|
20
|
+
score?: number;
|
|
21
|
+
};
|
|
22
|
+
|
|
8
23
|
/**
|
|
9
24
|
* The Button component.
|
|
10
25
|
*
|
|
@@ -65,6 +80,17 @@ declare type ColorStatesType = {
|
|
|
65
80
|
active?: Color;
|
|
66
81
|
};
|
|
67
82
|
|
|
83
|
+
export declare const CompactEventCard: React.FC<CompactEventCardPropsType>;
|
|
84
|
+
|
|
85
|
+
declare type CompactEventCardPropsType = {
|
|
86
|
+
data: EventType;
|
|
87
|
+
className?: string;
|
|
88
|
+
focusedClassName?: string;
|
|
89
|
+
isFocused?: boolean;
|
|
90
|
+
width?: CSSstring;
|
|
91
|
+
height?: CSSstring;
|
|
92
|
+
};
|
|
93
|
+
|
|
68
94
|
/**
|
|
69
95
|
* ContactInput component.
|
|
70
96
|
*
|
|
@@ -98,6 +124,8 @@ declare type CustomOption = {
|
|
|
98
124
|
value: any;
|
|
99
125
|
};
|
|
100
126
|
|
|
127
|
+
declare type DateCompare = (() => boolean) | ((current: Dayjs) => boolean);
|
|
128
|
+
|
|
101
129
|
export declare const DateRangePicker: default_2.FC<DateRangePickerProps>;
|
|
102
130
|
|
|
103
131
|
declare type DateRangePickerProps = {
|
|
@@ -114,10 +142,42 @@ declare type DateRangePickerProps = {
|
|
|
114
142
|
pickerRangeColor?: Color;
|
|
115
143
|
pickerBackgroundColor?: Color;
|
|
116
144
|
pickerBorderColor?: Color;
|
|
145
|
+
disabledDate?: DateCompare;
|
|
146
|
+
disableFutureDates?: boolean;
|
|
117
147
|
};
|
|
118
148
|
|
|
119
149
|
declare type DateTimeFormat = string;
|
|
120
150
|
|
|
151
|
+
export declare const DetectionCarousel: React.FC<DetectionCarouselProps>;
|
|
152
|
+
|
|
153
|
+
declare type DetectionCarouselProps = {
|
|
154
|
+
title?: string;
|
|
155
|
+
height?: CSSstring;
|
|
156
|
+
width?: CSSstring;
|
|
157
|
+
data: BlobType[];
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
export declare const EventPreview: React.FC<EventPreviewProps>;
|
|
161
|
+
|
|
162
|
+
declare type EventPreviewProps = {
|
|
163
|
+
title?: string;
|
|
164
|
+
icon?: string;
|
|
165
|
+
width?: CSSstring;
|
|
166
|
+
height?: CSSstring;
|
|
167
|
+
data: EventType[];
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
declare type EventType = {
|
|
171
|
+
id: number;
|
|
172
|
+
frameUrl: string;
|
|
173
|
+
severity: string;
|
|
174
|
+
location: string;
|
|
175
|
+
timeStamp: Date;
|
|
176
|
+
color: Color;
|
|
177
|
+
blobs: BlobType[];
|
|
178
|
+
appName: string;
|
|
179
|
+
};
|
|
180
|
+
|
|
121
181
|
declare type HTMLButtonProps = ComponentProps<"button">;
|
|
122
182
|
|
|
123
183
|
declare type HTMLInputProps = ComponentProps<"input">;
|
|
@@ -217,11 +277,11 @@ export declare const Multiselect: default_2.FC<MultiselectProps>;
|
|
|
217
277
|
|
|
218
278
|
declare type MultiselectProps = {
|
|
219
279
|
options: Option_2[];
|
|
220
|
-
onChange: (value:
|
|
280
|
+
onChange: (value: Option_2["value"][]) => void;
|
|
221
281
|
placeholder?: string;
|
|
222
282
|
searchable?: boolean;
|
|
223
283
|
maxTagCount?: "responsive" | number;
|
|
224
|
-
value?:
|
|
284
|
+
value?: Option_2["value"][];
|
|
225
285
|
width?: CSSstring;
|
|
226
286
|
height?: string;
|
|
227
287
|
className?: string;
|
|
@@ -238,7 +298,7 @@ declare type MultiselectProps = {
|
|
|
238
298
|
|
|
239
299
|
declare type Option_2 = {
|
|
240
300
|
label: string;
|
|
241
|
-
value: string;
|
|
301
|
+
value: string | number;
|
|
242
302
|
};
|
|
243
303
|
|
|
244
304
|
/**
|
|
@@ -259,11 +319,11 @@ export declare const Select: React.FC<SelectProps>;
|
|
|
259
319
|
|
|
260
320
|
declare type SelectProps = {
|
|
261
321
|
options: Option_2[] | CustomOption[];
|
|
262
|
-
onChange: (value:
|
|
322
|
+
onChange: (value: Option_2["value"]) => void;
|
|
263
323
|
placeholder?: string;
|
|
264
324
|
searchable?: boolean;
|
|
265
325
|
placement?: "start" | "center" | "end";
|
|
266
|
-
value?:
|
|
326
|
+
value?: Option_2["value"];
|
|
267
327
|
className?: string;
|
|
268
328
|
triggerBackgroundColor?: Color;
|
|
269
329
|
menuBackgroundColor?: Color;
|