@ambuj.bhaskar/react-component-library 0.10.0 → 0.10.2
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/assets/index.css +1 -1
- package/dist/index.cjs +31 -31
- package/dist/index.d.ts +20 -18
- package/dist/index.js +3462 -3472
- package/dist/index.umd.js +32 -32
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -47,7 +47,7 @@ declare type BlobType = {
|
|
|
47
47
|
*/
|
|
48
48
|
export declare const Button: React.FC<ButtonProps>;
|
|
49
49
|
|
|
50
|
-
declare type ButtonProps = HTMLButtonProps & {
|
|
50
|
+
export declare type ButtonProps = HTMLButtonProps & {
|
|
51
51
|
variant?: "primary" | "secondary" | "tertiary" | "nav";
|
|
52
52
|
background?: Color;
|
|
53
53
|
backgroundStates?: ColorStatesType;
|
|
@@ -82,7 +82,7 @@ declare type ColorStatesType = {
|
|
|
82
82
|
|
|
83
83
|
export declare const CompactEventCard: React.FC<CompactEventCardPropsType>;
|
|
84
84
|
|
|
85
|
-
declare type CompactEventCardPropsType = {
|
|
85
|
+
export declare type CompactEventCardPropsType = {
|
|
86
86
|
data: EventType;
|
|
87
87
|
className?: string;
|
|
88
88
|
focusedClassName?: string;
|
|
@@ -106,7 +106,7 @@ declare type CompactEventCardPropsType = {
|
|
|
106
106
|
*/
|
|
107
107
|
export declare const ContactInput: ({ value, onChange, height, width, className, placeholder, separator, disabled, }: ContactInputProps) => JSX_2.Element;
|
|
108
108
|
|
|
109
|
-
declare type ContactInputProps = {
|
|
109
|
+
export declare type ContactInputProps = {
|
|
110
110
|
value?: string;
|
|
111
111
|
onChange?: (val: string) => void;
|
|
112
112
|
height?: "s" | "m" | "l";
|
|
@@ -128,7 +128,7 @@ declare type DateCompare = (() => boolean) | ((current: Dayjs) => boolean);
|
|
|
128
128
|
|
|
129
129
|
export declare const DateRangePicker: default_2.FC<DateRangePickerProps>;
|
|
130
130
|
|
|
131
|
-
declare type DateRangePickerProps = {
|
|
131
|
+
export declare type DateRangePickerProps = {
|
|
132
132
|
value?: Date[];
|
|
133
133
|
onChange?: (value: Date[]) => void;
|
|
134
134
|
className?: string;
|
|
@@ -150,7 +150,7 @@ declare type DateTimeFormat = string;
|
|
|
150
150
|
|
|
151
151
|
export declare const DetectionCarousel: React.FC<DetectionCarouselProps>;
|
|
152
152
|
|
|
153
|
-
declare type DetectionCarouselProps = {
|
|
153
|
+
export declare type DetectionCarouselProps = {
|
|
154
154
|
title?: string;
|
|
155
155
|
height?: CSSstring;
|
|
156
156
|
width?: CSSstring;
|
|
@@ -159,12 +159,14 @@ declare type DetectionCarouselProps = {
|
|
|
159
159
|
|
|
160
160
|
export declare const EventPreview: React.FC<EventPreviewProps>;
|
|
161
161
|
|
|
162
|
-
declare type EventPreviewProps = {
|
|
162
|
+
export declare type EventPreviewProps = {
|
|
163
163
|
title?: string;
|
|
164
164
|
icon?: string;
|
|
165
165
|
width?: CSSstring;
|
|
166
166
|
height?: CSSstring;
|
|
167
167
|
data: EventType[];
|
|
168
|
+
focusedIndex?: number;
|
|
169
|
+
setFocusedIndex?: (index: number) => void;
|
|
168
170
|
};
|
|
169
171
|
|
|
170
172
|
declare type EventType = {
|
|
@@ -201,7 +203,7 @@ declare type IconName = keyof typeof IconRegistry;
|
|
|
201
203
|
|
|
202
204
|
declare type IconPositionType = "before" | "after";
|
|
203
205
|
|
|
204
|
-
declare type IconProps = SVGprops & {
|
|
206
|
+
export declare type IconProps = SVGprops & {
|
|
205
207
|
name: IconName;
|
|
206
208
|
size?: "xs" | "s" | "m" | "l" | "xl" | "auto";
|
|
207
209
|
className?: string;
|
|
@@ -232,7 +234,7 @@ declare const IconRegistry: Record<string, any>;
|
|
|
232
234
|
*/
|
|
233
235
|
export declare const Input: React.FC<InputProps>;
|
|
234
236
|
|
|
235
|
-
declare type InputProps = HTMLInputProps & {
|
|
237
|
+
export declare type InputProps = HTMLInputProps & {
|
|
236
238
|
height?: "s" | "m" | "l";
|
|
237
239
|
width?: CSSstring;
|
|
238
240
|
className?: string;
|
|
@@ -251,7 +253,7 @@ declare type JustifyContent = "center" | "start" | "end" | "flex-start" | "flex-
|
|
|
251
253
|
|
|
252
254
|
export declare const Modal: default_2.FC<ModalProps>;
|
|
253
255
|
|
|
254
|
-
declare type ModalProps = {
|
|
256
|
+
export declare type ModalProps = {
|
|
255
257
|
visible: boolean;
|
|
256
258
|
onClose: () => void;
|
|
257
259
|
showCloseButton?: boolean;
|
|
@@ -275,13 +277,13 @@ declare type ModalProps = {
|
|
|
275
277
|
*/
|
|
276
278
|
export declare const Multiselect: default_2.FC<MultiselectProps>;
|
|
277
279
|
|
|
278
|
-
declare type MultiselectProps = {
|
|
280
|
+
export declare type MultiselectProps = {
|
|
279
281
|
options: Option_2[];
|
|
280
|
-
onChange: (value:
|
|
282
|
+
onChange: (value: Option_2["value"][]) => void;
|
|
281
283
|
placeholder?: string;
|
|
282
284
|
searchable?: boolean;
|
|
283
285
|
maxTagCount?: "responsive" | number;
|
|
284
|
-
value?:
|
|
286
|
+
value?: Option_2["value"][];
|
|
285
287
|
width?: CSSstring;
|
|
286
288
|
height?: string;
|
|
287
289
|
className?: string;
|
|
@@ -298,7 +300,7 @@ declare type MultiselectProps = {
|
|
|
298
300
|
|
|
299
301
|
declare type Option_2 = {
|
|
300
302
|
label: string;
|
|
301
|
-
value: string;
|
|
303
|
+
value: string | number;
|
|
302
304
|
};
|
|
303
305
|
|
|
304
306
|
/**
|
|
@@ -317,13 +319,13 @@ declare type Option_2 = {
|
|
|
317
319
|
*/
|
|
318
320
|
export declare const Select: React.FC<SelectProps>;
|
|
319
321
|
|
|
320
|
-
declare type SelectProps = {
|
|
322
|
+
export declare type SelectProps = {
|
|
321
323
|
options: Option_2[] | CustomOption[];
|
|
322
|
-
onChange: (value:
|
|
324
|
+
onChange: (value: Option_2["value"]) => void;
|
|
323
325
|
placeholder?: string;
|
|
324
326
|
searchable?: boolean;
|
|
325
327
|
placement?: "start" | "center" | "end";
|
|
326
|
-
value?:
|
|
328
|
+
value?: Option_2["value"];
|
|
327
329
|
className?: string;
|
|
328
330
|
triggerBackgroundColor?: Color;
|
|
329
331
|
menuBackgroundColor?: Color;
|
|
@@ -348,7 +350,7 @@ declare type Size = "s" | "m" | "l";
|
|
|
348
350
|
*/
|
|
349
351
|
export declare const Spinner: React_2.FC<SpinnerProps>;
|
|
350
352
|
|
|
351
|
-
declare type SpinnerProps = {
|
|
353
|
+
export declare type SpinnerProps = {
|
|
352
354
|
size?: "xs" | "s" | "m" | "l" | "xl";
|
|
353
355
|
color?: string;
|
|
354
356
|
};
|
|
@@ -375,7 +377,7 @@ declare type SVGprops = React.ComponentProps<"svg">;
|
|
|
375
377
|
*/
|
|
376
378
|
export declare const Switch: React.FC<SwitchProps>;
|
|
377
379
|
|
|
378
|
-
declare type SwitchProps = {
|
|
380
|
+
export declare type SwitchProps = {
|
|
379
381
|
value?: boolean;
|
|
380
382
|
disabled?: boolean;
|
|
381
383
|
checkedChildren?: ReactNode;
|