@ambuj.bhaskar/react-component-library 0.9.0 → 0.10.0
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 +76 -9
- package/dist/index.js +9504 -9192
- 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">;
|
|
@@ -153,18 +213,22 @@ declare type IconProps = SVGprops & {
|
|
|
153
213
|
declare const IconRegistry: Record<string, any>;
|
|
154
214
|
|
|
155
215
|
/**
|
|
156
|
-
* Input component
|
|
216
|
+
* Input component.
|
|
157
217
|
*
|
|
158
|
-
* @prop {string} [className] - Additional class names for styling.
|
|
159
|
-
* @prop {string | number} [value] - The value of the input.
|
|
160
|
-
* @prop {"s" | "m" | "l"} [height] -
|
|
161
|
-
* @prop {CSSstring} [width] -
|
|
162
|
-
* @prop {"flex-start"
|
|
218
|
+
* @prop {string} [className=""] - Additional class names for styling.
|
|
219
|
+
* @prop {string | number | undefined} [value] - The current value of the input.
|
|
220
|
+
* @prop {"s" | "m" | "l"} [height="m"] - Height of the input field.
|
|
221
|
+
* @prop {CSSstring} [width="24rem"] - Width of the component.
|
|
222
|
+
* @prop {JustifyContent} [placement="flex-start"] - Placement of the content inside the input.
|
|
163
223
|
* @prop {IconName} [icon] - The icon to display inside the input.
|
|
164
|
-
* @prop {
|
|
165
|
-
* @prop {
|
|
224
|
+
* @prop {string} [backgroundColor="#2929291a"] - Background color of the input.
|
|
225
|
+
* @prop {string} [textColor="#292929"] - Color of the text inside the input.
|
|
226
|
+
* @prop {string} [borderColor="#292929"] - Border color of the input.
|
|
227
|
+
* @prop {"before" | "after"} [iconPosition="after"] - Position of the icon relative to the text.
|
|
228
|
+
* @prop {string} [iconColor="#292929"] - Color of the icon inside the input.
|
|
166
229
|
* @prop {boolean} [disabled=false] - If true, the input is disabled.
|
|
167
|
-
* @prop {(
|
|
230
|
+
* @prop {(val: string) => void} [onChange=() => {}] - Callback when the input value changes.
|
|
231
|
+
* @prop {React.ComponentProps<HTMLInputElement>} ...props - Additional props to pass to the input element.
|
|
168
232
|
*/
|
|
169
233
|
export declare const Input: React.FC<InputProps>;
|
|
170
234
|
|
|
@@ -178,6 +242,9 @@ declare type InputProps = HTMLInputProps & {
|
|
|
178
242
|
iconPosition?: "before" | "after";
|
|
179
243
|
iconColor?: Color;
|
|
180
244
|
disabled?: boolean;
|
|
245
|
+
backgroundColor?: Color;
|
|
246
|
+
textColor?: Color;
|
|
247
|
+
borderColor?: Color;
|
|
181
248
|
};
|
|
182
249
|
|
|
183
250
|
declare type JustifyContent = "center" | "start" | "end" | "flex-start" | "flex-end" | "left" | "right" | "baseline" | "first baseline" | "last baseline" | "space-between" | "space-around" | "space-evenly" | "stretch";
|