@ambuj.bhaskar/react-component-library 0.9.1 → 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/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">;