dhre-component-lib 0.8.28 → 0.8.29
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/components/OtpInput/OtpInput.test.d.ts +1 -0
- package/dist/components/Search/Search.d.ts +1 -0
- package/dist/index.d.ts +32 -429
- package/dist/index.esm.js +8835 -9092
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +8792 -9049
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,429 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
label: React.ReactNode;
|
|
34
|
-
onClick?: () => void;
|
|
35
|
-
category?: ButtonCategory;
|
|
36
|
-
loading?: boolean;
|
|
37
|
-
disabled?: boolean;
|
|
38
|
-
width?: string;
|
|
39
|
-
height?: string;
|
|
40
|
-
id?: string;
|
|
41
|
-
type?: "button" | "submit" | "reset";
|
|
42
|
-
borderRadius?: string;
|
|
43
|
-
className?: string;
|
|
44
|
-
loaderThickness?: number;
|
|
45
|
-
loaderColor?: CircularProgressColor;
|
|
46
|
-
loaderSize?: number;
|
|
47
|
-
};
|
|
48
|
-
declare const Button: React.FC<ButtonProps>;
|
|
49
|
-
|
|
50
|
-
interface AvatarProps {
|
|
51
|
-
src: string;
|
|
52
|
-
alt: string;
|
|
53
|
-
imgClassName: string;
|
|
54
|
-
handleClick?: () => void;
|
|
55
|
-
}
|
|
56
|
-
declare const Avatar: React.FC<AvatarProps>;
|
|
57
|
-
|
|
58
|
-
interface BadgeProps {
|
|
59
|
-
content: string | number;
|
|
60
|
-
badgeClassName?: string;
|
|
61
|
-
handleClick?: () => void;
|
|
62
|
-
}
|
|
63
|
-
declare const Badge: React.FC<BadgeProps>;
|
|
64
|
-
|
|
65
|
-
interface BreadcrumbItem {
|
|
66
|
-
label: string;
|
|
67
|
-
handleClick?: () => void;
|
|
68
|
-
}
|
|
69
|
-
interface BreadcrumbProps {
|
|
70
|
-
items: BreadcrumbItem[];
|
|
71
|
-
breadcrumbClassName: string;
|
|
72
|
-
itemClassName?: string;
|
|
73
|
-
separator?: string;
|
|
74
|
-
separatorClassName?: string;
|
|
75
|
-
}
|
|
76
|
-
declare const Breadcrumb: React.FC<BreadcrumbProps>;
|
|
77
|
-
|
|
78
|
-
interface CustomCheckboxProps {
|
|
79
|
-
label?: React.ReactNode;
|
|
80
|
-
checked?: boolean;
|
|
81
|
-
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
82
|
-
className?: string;
|
|
83
|
-
checkboxClassName?: string;
|
|
84
|
-
labelClassName?: string;
|
|
85
|
-
}
|
|
86
|
-
declare const Checkbox: React.FC<CustomCheckboxProps>;
|
|
87
|
-
|
|
88
|
-
interface CircularProgressProps {
|
|
89
|
-
value?: number;
|
|
90
|
-
variant?: CircularProgressVariant;
|
|
91
|
-
color?: CircularProgressColor;
|
|
92
|
-
thickness?: number;
|
|
93
|
-
size?: number | string;
|
|
94
|
-
}
|
|
95
|
-
declare const CircularProgress: React.FC<CircularProgressProps>;
|
|
96
|
-
|
|
97
|
-
interface CustomDividerProps {
|
|
98
|
-
orientation?: string;
|
|
99
|
-
className?: string;
|
|
100
|
-
dividerClassName?: string;
|
|
101
|
-
}
|
|
102
|
-
declare const CustomDivider: React.FC<CustomDividerProps>;
|
|
103
|
-
|
|
104
|
-
interface LinkProps {
|
|
105
|
-
href: string;
|
|
106
|
-
target?: string;
|
|
107
|
-
rel?: string;
|
|
108
|
-
className?: string;
|
|
109
|
-
children?: React.ReactNode;
|
|
110
|
-
}
|
|
111
|
-
declare const Link: React.FC<LinkProps>;
|
|
112
|
-
|
|
113
|
-
interface ProgressProps {
|
|
114
|
-
value: number;
|
|
115
|
-
max: number;
|
|
116
|
-
className?: string;
|
|
117
|
-
barContainerClassName?: string;
|
|
118
|
-
barClassName?: string;
|
|
119
|
-
labelClassName?: string;
|
|
120
|
-
label?: string;
|
|
121
|
-
}
|
|
122
|
-
declare const Progress: React.FC<ProgressProps>;
|
|
123
|
-
|
|
124
|
-
interface RadioButtonProps {
|
|
125
|
-
name: string;
|
|
126
|
-
value: string;
|
|
127
|
-
checked?: boolean;
|
|
128
|
-
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
129
|
-
className?: string;
|
|
130
|
-
inputClassName?: string;
|
|
131
|
-
labelClassName?: string;
|
|
132
|
-
id?: string;
|
|
133
|
-
[key: string]: any;
|
|
134
|
-
}
|
|
135
|
-
declare const CustomRadioButton: React.FC<RadioButtonProps>;
|
|
136
|
-
|
|
137
|
-
interface CustomInputFieldProps {
|
|
138
|
-
label?: string;
|
|
139
|
-
value?: any;
|
|
140
|
-
type?: string;
|
|
141
|
-
placeholder?: string;
|
|
142
|
-
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
143
|
-
className?: string;
|
|
144
|
-
inputClassName?: string;
|
|
145
|
-
labelClassName?: string;
|
|
146
|
-
error?: string;
|
|
147
|
-
errorClassName?: string;
|
|
148
|
-
id?: string;
|
|
149
|
-
maxLength?: number;
|
|
150
|
-
minLength?: number;
|
|
151
|
-
checkValidation?: () => void;
|
|
152
|
-
name?: string;
|
|
153
|
-
min?: string;
|
|
154
|
-
disabled?: boolean;
|
|
155
|
-
istoolTip?: boolean;
|
|
156
|
-
toolTipText?: string;
|
|
157
|
-
link?: string;
|
|
158
|
-
handleLink?: () => void;
|
|
159
|
-
linkWrapper?: string;
|
|
160
|
-
linkClassName?: string;
|
|
161
|
-
}
|
|
162
|
-
declare const CustomInputField: React.FC<CustomInputFieldProps>;
|
|
163
|
-
|
|
164
|
-
interface PdfViewerProps {
|
|
165
|
-
content: string;
|
|
166
|
-
contentType?: string;
|
|
167
|
-
buttonText?: string;
|
|
168
|
-
loadingText?: string;
|
|
169
|
-
errorText?: string;
|
|
170
|
-
cleanUpDelay?: number;
|
|
171
|
-
buttonVariant?: "text" | "outlined" | "contained";
|
|
172
|
-
buttonColor?: "inherit" | "primary" | "secondary" | "error" | "info" | "success" | "warning";
|
|
173
|
-
buttonSize?: "small" | "medium" | "large";
|
|
174
|
-
showLoadingSpinner?: boolean;
|
|
175
|
-
spinnerSize?: number;
|
|
176
|
-
spinnerColor?: "inherit" | "primary" | "secondary";
|
|
177
|
-
className?: string;
|
|
178
|
-
}
|
|
179
|
-
declare const PdfView: React.FC<PdfViewerProps>;
|
|
180
|
-
|
|
181
|
-
interface GetDirectionActionProps {
|
|
182
|
-
title: string;
|
|
183
|
-
titleClasses?: string;
|
|
184
|
-
location: string;
|
|
185
|
-
locationClasses?: string;
|
|
186
|
-
hours: string;
|
|
187
|
-
hoursClasses?: string;
|
|
188
|
-
directionsLink: string;
|
|
189
|
-
buttonName?: string;
|
|
190
|
-
}
|
|
191
|
-
declare const GetDirectionAction: React.FC<GetDirectionActionProps>;
|
|
192
|
-
|
|
193
|
-
interface MapComponentProps {
|
|
194
|
-
containerClassName?: string;
|
|
195
|
-
zoom?: number;
|
|
196
|
-
mapOptions?: google.maps.MapOptions;
|
|
197
|
-
radius?: number;
|
|
198
|
-
googleMapsUrls: string[];
|
|
199
|
-
buttonText: string;
|
|
200
|
-
buttonClassName: string;
|
|
201
|
-
}
|
|
202
|
-
declare const MapComponent: React.FC<MapComponentProps>;
|
|
203
|
-
|
|
204
|
-
interface OTPInputProps {
|
|
205
|
-
length?: number;
|
|
206
|
-
onChange: (otp: string) => void;
|
|
207
|
-
autoFocus?: boolean;
|
|
208
|
-
onResend: (_: () => void) => void;
|
|
209
|
-
resendDelay?: number;
|
|
210
|
-
error?: boolean;
|
|
211
|
-
errorText?: React.ReactNode;
|
|
212
|
-
resendText: React.ReactNode;
|
|
213
|
-
showResendButton?: boolean;
|
|
214
|
-
className?: string;
|
|
215
|
-
inputClassName?: string;
|
|
216
|
-
icon: React.ReactNode;
|
|
217
|
-
disableResend?: boolean;
|
|
218
|
-
noResendButtonText?: string;
|
|
219
|
-
secondText?: string;
|
|
220
|
-
patternRegex?: RegExp;
|
|
221
|
-
}
|
|
222
|
-
declare const OTPInput: React.FC<OTPInputProps>;
|
|
223
|
-
|
|
224
|
-
interface TypographyProps {
|
|
225
|
-
variant?: 'H1' | 'H2' | 'H3' | 'H4' | 'H5' | 'H6' | 'H7' | 'H8' | 'B1' | 'B2' | 'B3' | 'B4' | 'L1' | 'L2' | 'L3';
|
|
226
|
-
weight?: 'BOLD' | 'SEMI_BOLD' | 'MEDIUM';
|
|
227
|
-
children: React.ReactNode;
|
|
228
|
-
className?: string;
|
|
229
|
-
}
|
|
230
|
-
declare const Typography: React.FC<TypographyProps>;
|
|
231
|
-
|
|
232
|
-
interface Suggestion {
|
|
233
|
-
id: string;
|
|
234
|
-
title: string;
|
|
235
|
-
faqAnswer: string;
|
|
236
|
-
faqQuestion: any;
|
|
237
|
-
fieldFaqCategory: string;
|
|
238
|
-
isBookmarked: boolean;
|
|
239
|
-
images: string[];
|
|
240
|
-
videos: string[];
|
|
241
|
-
}
|
|
242
|
-
interface CustomSearchFieldProps {
|
|
243
|
-
searchIcon: React.ReactNode;
|
|
244
|
-
crossIcon: React.ReactNode;
|
|
245
|
-
disabled?: boolean;
|
|
246
|
-
onSearch: (query: string) => void;
|
|
247
|
-
onSelectSuggestion?: (selectedSuggestion: Suggestion | null) => void;
|
|
248
|
-
suggestions: Suggestion[] | null | undefined;
|
|
249
|
-
placeholder: string;
|
|
250
|
-
className?: string;
|
|
251
|
-
suggestionClassName?: string;
|
|
252
|
-
onSearchIconClick?: () => void;
|
|
253
|
-
onHandleClear?: () => void;
|
|
254
|
-
isWhiteBackgound?: boolean;
|
|
255
|
-
shouldShowAll?: boolean;
|
|
256
|
-
}
|
|
257
|
-
declare const Search: React.FC<CustomSearchFieldProps>;
|
|
258
|
-
|
|
259
|
-
interface ModalProps {
|
|
260
|
-
isOpen: boolean;
|
|
261
|
-
onClose: () => void;
|
|
262
|
-
title?: React.ReactNode;
|
|
263
|
-
children: React.ReactNode;
|
|
264
|
-
crossIcon: React.ReactNode;
|
|
265
|
-
className?: string;
|
|
266
|
-
}
|
|
267
|
-
declare const Modal: React.FC<ModalProps>;
|
|
268
|
-
|
|
269
|
-
type AccordionProps = {
|
|
270
|
-
icon?: React.ReactNode;
|
|
271
|
-
title: React.ReactNode;
|
|
272
|
-
description?: React.ReactNode;
|
|
273
|
-
children?: React.ReactNode;
|
|
274
|
-
border?: boolean;
|
|
275
|
-
upArrowIcon: React.ReactNode;
|
|
276
|
-
downArrowIcon: React.ReactNode;
|
|
277
|
-
openByDefault?: boolean;
|
|
278
|
-
borderBottom?: boolean;
|
|
279
|
-
className?: string;
|
|
280
|
-
};
|
|
281
|
-
declare const Accordion: React.FC<AccordionProps>;
|
|
282
|
-
|
|
283
|
-
type Tab = {
|
|
284
|
-
name: string;
|
|
285
|
-
value: string;
|
|
286
|
-
count?: number;
|
|
287
|
-
};
|
|
288
|
-
interface TabsProps {
|
|
289
|
-
tabs: Tab[];
|
|
290
|
-
onTabChange: (selectedTab: Tab) => void;
|
|
291
|
-
selectedTabValue?: string;
|
|
292
|
-
dot?: boolean;
|
|
293
|
-
wrapperClassName?: string;
|
|
294
|
-
}
|
|
295
|
-
declare const Tabs: React.FC<TabsProps>;
|
|
296
|
-
|
|
297
|
-
type value = {
|
|
298
|
-
name: string;
|
|
299
|
-
value: string;
|
|
300
|
-
isNotClickable?: boolean;
|
|
301
|
-
};
|
|
302
|
-
declare function Dropdown(props: {
|
|
303
|
-
placeholder: string;
|
|
304
|
-
getSelectedValue: (value: value) => void;
|
|
305
|
-
dropdownList: value[];
|
|
306
|
-
arrowUp: React.ReactNode;
|
|
307
|
-
arrowDown: React.ReactNode;
|
|
308
|
-
value?: value;
|
|
309
|
-
className?: string;
|
|
310
|
-
onDropdownOpen?: (data: boolean) => void;
|
|
311
|
-
}): React.JSX.Element;
|
|
312
|
-
|
|
313
|
-
declare function TextArea(props: {
|
|
314
|
-
value?: string;
|
|
315
|
-
onChange: (event: {
|
|
316
|
-
target: {
|
|
317
|
-
value: string;
|
|
318
|
-
};
|
|
319
|
-
}, property?: any) => void;
|
|
320
|
-
requiredLimit: string;
|
|
321
|
-
placeholder: string;
|
|
322
|
-
charText: string;
|
|
323
|
-
property?: any;
|
|
324
|
-
isShortTextBox?: boolean;
|
|
325
|
-
shouldCheckRegex?: boolean;
|
|
326
|
-
}): React.JSX.Element;
|
|
327
|
-
|
|
328
|
-
interface DrawerProps {
|
|
329
|
-
openSideDrawer: boolean;
|
|
330
|
-
closeSideDrawer: () => void;
|
|
331
|
-
width: string;
|
|
332
|
-
component: React.ReactNode;
|
|
333
|
-
anchor?: "left" | "right" | "top" | "bottom";
|
|
334
|
-
variant?: "temporary" | "persistent" | "permanent";
|
|
335
|
-
className?: string;
|
|
336
|
-
}
|
|
337
|
-
declare const Drawer: React.FC<DrawerProps>;
|
|
338
|
-
|
|
339
|
-
type ToggleSwitchProps = {
|
|
340
|
-
initialState?: boolean;
|
|
341
|
-
onToggle?: (state: boolean) => void;
|
|
342
|
-
};
|
|
343
|
-
declare const ToggleSwitch: React.FC<ToggleSwitchProps>;
|
|
344
|
-
|
|
345
|
-
interface SwipeActionWrapperProps {
|
|
346
|
-
children: ReactNode;
|
|
347
|
-
onPin?: () => void;
|
|
348
|
-
onRead?: () => void;
|
|
349
|
-
onDelete?: () => void;
|
|
350
|
-
pinIcon: React.ReactNode;
|
|
351
|
-
readIcon: React.ReactNode;
|
|
352
|
-
deleteIcon: React.ReactNode;
|
|
353
|
-
swipeThreshold?: number;
|
|
354
|
-
}
|
|
355
|
-
declare const HoverOptionsWrapper: React.FC<SwipeActionWrapperProps>;
|
|
356
|
-
|
|
357
|
-
interface MenuInterface {
|
|
358
|
-
openMenu: boolean;
|
|
359
|
-
closeMenu: () => void;
|
|
360
|
-
component: React.ReactNode;
|
|
361
|
-
menuStyles: string;
|
|
362
|
-
}
|
|
363
|
-
declare const Menu: (props: MenuInterface) => React.JSX.Element;
|
|
364
|
-
|
|
365
|
-
interface ToastProps {
|
|
366
|
-
icon?: React.ReactNode;
|
|
367
|
-
text: string;
|
|
368
|
-
onAction?: () => void;
|
|
369
|
-
onActionText?: string;
|
|
370
|
-
onHide?: () => void;
|
|
371
|
-
type: ToastStatus;
|
|
372
|
-
className?: string;
|
|
373
|
-
duration: number;
|
|
374
|
-
showCrossIcon?: boolean;
|
|
375
|
-
crossIcon?: React.ReactNode;
|
|
376
|
-
}
|
|
377
|
-
declare const Toast: React.FC<ToastProps>;
|
|
378
|
-
|
|
379
|
-
interface rangeSlider {
|
|
380
|
-
sliderLimit: number;
|
|
381
|
-
minRange: number;
|
|
382
|
-
maxRange: number;
|
|
383
|
-
text1: string;
|
|
384
|
-
text2: string;
|
|
385
|
-
getSliderValue?: (event: any, property?: any) => void;
|
|
386
|
-
value?: string;
|
|
387
|
-
rangeMultiples?: number;
|
|
388
|
-
property?: any;
|
|
389
|
-
}
|
|
390
|
-
declare const RangeSlider: (props: rangeSlider) => React.JSX.Element;
|
|
391
|
-
|
|
392
|
-
interface CarouselProps {
|
|
393
|
-
items: CarouselItems[];
|
|
394
|
-
}
|
|
395
|
-
interface CarouselItems {
|
|
396
|
-
src: string;
|
|
397
|
-
type: MediaType;
|
|
398
|
-
alt: string;
|
|
399
|
-
extension: string;
|
|
400
|
-
}
|
|
401
|
-
declare const Carousel: React.FC<CarouselProps>;
|
|
402
|
-
|
|
403
|
-
interface StepperData {
|
|
404
|
-
name: string;
|
|
405
|
-
id: number;
|
|
406
|
-
component?: React.ReactNode;
|
|
407
|
-
status?: string;
|
|
408
|
-
value?: string;
|
|
409
|
-
img?: React.ReactNode;
|
|
410
|
-
}
|
|
411
|
-
interface StepperInterface {
|
|
412
|
-
stepperData: StepperData[];
|
|
413
|
-
type: string;
|
|
414
|
-
showLabelIndex: boolean;
|
|
415
|
-
currentStep?: number;
|
|
416
|
-
successIcon?: React.ReactNode;
|
|
417
|
-
alignment?: string;
|
|
418
|
-
status?: string;
|
|
419
|
-
statusIcon?: React.ReactNode;
|
|
420
|
-
component?: React.ReactNode;
|
|
421
|
-
submittedDate?: React.ReactNode;
|
|
422
|
-
dividerWidth?: string;
|
|
423
|
-
variant?: any;
|
|
424
|
-
displayRightContent?: boolean;
|
|
425
|
-
isPaymentPlanFlow?: boolean;
|
|
426
|
-
}
|
|
427
|
-
declare const Stepper: React.FC<StepperInterface>;
|
|
428
|
-
|
|
429
|
-
export { Accordion as Accordian, Avatar, Badge, Breadcrumb as BreadCrumb, Button, ButtonCategory, Carousel, Checkbox, CircularProgress, GetDirectionAction as Directions, CustomDivider as Divider, Drawer, Dropdown, MapComponent as GoogleMap, HoverOptionsWrapper, CustomInputField as InputTextField, Link, MediaType, Menu, Modal, OTPInput as OtpInput, Progress, CustomRadioButton as RadioButton, RangeSlider, Search, Stepper, Tabs, TextArea, Toast, ToastStatus, ToggleSwitch, Typography, PdfView as default };
|
|
1
|
+
export { default as Button } from "./components/Button";
|
|
2
|
+
export { default as Avatar } from "./components/Avatar";
|
|
3
|
+
export { default as Badge } from "./components/Badge";
|
|
4
|
+
export { default as BreadCrumb } from "./components/BreadCrumb";
|
|
5
|
+
export { default as Checkbox } from "./components/Checkbox";
|
|
6
|
+
export { default as CircularProgress } from "./components/CircularProgress";
|
|
7
|
+
export { default as Divider } from "./components/Divider";
|
|
8
|
+
export { default as Link } from "./components/Link";
|
|
9
|
+
export { default as Progress } from "./components/Progress";
|
|
10
|
+
export { default as RadioButton } from "./components/RadioButton";
|
|
11
|
+
export { default as InputTextField } from "./components/InputTextField";
|
|
12
|
+
export { default } from "./components/PdfView";
|
|
13
|
+
export { default as Directions } from "./components/Map/Directions";
|
|
14
|
+
export { default as GoogleMap } from "./components/Map/GoogleMap";
|
|
15
|
+
export { default as OtpInput } from "./components/OtpInput/OtpInput";
|
|
16
|
+
export { default as Typography } from "./components/Typography/Typography";
|
|
17
|
+
export { default as Search } from "./components/Search/Search";
|
|
18
|
+
export { default as Modal } from "./components/Modal/Modal";
|
|
19
|
+
export { default as Accordian } from "./components/Accordian/Accordian";
|
|
20
|
+
export { default as Tabs } from "./components/Tabs/Tabs";
|
|
21
|
+
export { default as Dropdown } from "./components/Dropdown/Dropdown";
|
|
22
|
+
export { default as TextArea } from "./components/TextArea/TextArea";
|
|
23
|
+
export { default as Drawer } from "./components/Drawer/Drawer";
|
|
24
|
+
export { default as ToggleSwitch } from "./components/ToggleSwitch/ToggleSwitch";
|
|
25
|
+
export { default as HoverOptionsWrapper } from "./components/HoverOptionsWrapper/HoverOptionsWrapper";
|
|
26
|
+
export { default as Menu } from "./components/Menu/Menu";
|
|
27
|
+
export { default as Toast } from "./components/Toast/Toast";
|
|
28
|
+
export { default as RangeSlider } from "./components/RangeSlider/RangeSlider";
|
|
29
|
+
export { default as Carousel } from "./components/Carousel/Carousel";
|
|
30
|
+
export { default as Stepper } from "./components/Stepper/Stepper";
|
|
31
|
+
export { MediaType } from "./components/Enum";
|
|
32
|
+
export { ToastStatus, ButtonCategory } from "./components/Enum";
|