dhre-component-lib 0.2.3 → 0.2.5
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/Badge/Badge.d.ts +1 -0
- package/dist/components/BreadCrumb/BreadCrumb.d.ts +1 -0
- package/dist/components/Button/Button.d.ts +1 -0
- package/dist/components/CircularProgress/CircularProgress.d.ts +1 -0
- package/dist/components/Map/GoogleMap.d.ts +1 -0
- package/dist/components/Modal/Modal.d.ts +3 -2
- package/dist/components/PdfView/PdfView.d.ts +1 -0
- package/dist/components/Search/Search.d.ts +12 -0
- package/dist/components/Tag/Tag.d.ts +1 -0
- package/dist/components/Tooltip/Tooltip.d.ts +1 -0
- package/dist/components/Typography/Typography.d.ts +10 -0
- package/dist/components/Typography/index.d.ts +1 -0
- package/dist/index.d.ts +193 -15
- package/dist/index.esm.js +110 -23
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +163 -69
- package/dist/index.js.map +1 -1
- package/dist/{colors.scss → theme/colors/colors.scss} +6 -0
- package/package.json +7 -5
- package/dist/Badge.module.scss +0 -13
- package/dist/Breadcrumb.module.scss +0 -17
- package/dist/Button.module.scss +0 -53
- package/dist/CircularProgress.module.scss +0 -18
- package/dist/GoogleMap.module.scss +0 -5
- package/dist/Modal.module.scss +0 -26
- package/dist/Notification.module.scss +0 -20
- package/dist/OtpInput.module.scss +0 -47
- package/dist/PdfView.module.scss +0 -69
- package/dist/Tooltip.module.scss +0 -37
- package/dist/assets/output-BU46CkmN.css +0 -246
- package/dist/dist/styles.css +0 -2
- package/dist/dist/styles.css.map +0 -1
- package/dist/typography.scss +0 -117
- /package/dist/components/{Modal/Modal.test.d.ts → Typography/Typography.test.d.ts} +0 -0
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import "./Modal.module.scss";
|
|
2
3
|
interface ModalProps {
|
|
3
4
|
isOpen: boolean;
|
|
4
5
|
onClose: () => void;
|
|
6
|
+
title?: React.ReactNode;
|
|
5
7
|
children: React.ReactNode;
|
|
6
|
-
|
|
7
|
-
modalContentClassname?: string;
|
|
8
|
+
crossIcon: React.ReactNode;
|
|
8
9
|
}
|
|
9
10
|
declare const Modal: React.FC<ModalProps>;
|
|
10
11
|
export default Modal;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./Search.module.scss";
|
|
3
|
+
interface CustomSearchFieldProps {
|
|
4
|
+
searchIcon: React.ReactNode;
|
|
5
|
+
crossIcon: React.ReactNode;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
onSearch: (query: string) => void;
|
|
8
|
+
placeholder: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
declare const Search: React.FC<CustomSearchFieldProps>;
|
|
12
|
+
export default Search;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import '../../theme/Typography/typography.scss';
|
|
3
|
+
interface TypographyProps {
|
|
4
|
+
variant?: 'H1' | 'H2' | 'H3' | 'H4' | 'H5' | 'H6' | 'H7' | 'H8' | 'B1' | 'B2' | 'B3' | 'B4' | 'L1' | 'L2' | 'L3';
|
|
5
|
+
weight?: 'BOLD' | 'SEMI_BOLD' | 'MEDIUM';
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const Typography: React.FC<TypographyProps>;
|
|
10
|
+
export default Typography;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./Typography";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,193 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
interface ButtonProps {
|
|
4
|
+
label: string;
|
|
5
|
+
variant: 'text' | 'outlined' | 'contained';
|
|
6
|
+
color: 'primary' | 'secondary' | 'success' | 'error' | 'warning' | 'info';
|
|
7
|
+
size: 'small' | 'medium' | 'large';
|
|
8
|
+
handleClick: () => void;
|
|
9
|
+
}
|
|
10
|
+
declare const Button: React.FC<ButtonProps>;
|
|
11
|
+
|
|
12
|
+
interface AvatarProps {
|
|
13
|
+
src: string;
|
|
14
|
+
alt: string;
|
|
15
|
+
imgClassName: string;
|
|
16
|
+
handleClick?: () => void;
|
|
17
|
+
}
|
|
18
|
+
declare const Avatar: React.FC<AvatarProps>;
|
|
19
|
+
|
|
20
|
+
interface BadgeProps {
|
|
21
|
+
content: string | number;
|
|
22
|
+
badgeClassName?: string;
|
|
23
|
+
handleClick?: () => void;
|
|
24
|
+
}
|
|
25
|
+
declare const Badge: React.FC<BadgeProps>;
|
|
26
|
+
|
|
27
|
+
interface BreadcrumbItem {
|
|
28
|
+
label: string;
|
|
29
|
+
handleClick?: () => void;
|
|
30
|
+
}
|
|
31
|
+
interface BreadcrumbProps {
|
|
32
|
+
items: BreadcrumbItem[];
|
|
33
|
+
breadcrumbClassName: string;
|
|
34
|
+
itemClassName?: string;
|
|
35
|
+
separator?: string;
|
|
36
|
+
separatorClassName?: string;
|
|
37
|
+
}
|
|
38
|
+
declare const Breadcrumb: React.FC<BreadcrumbProps>;
|
|
39
|
+
|
|
40
|
+
interface CustomCheckboxProps {
|
|
41
|
+
label?: string;
|
|
42
|
+
checked?: boolean;
|
|
43
|
+
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
44
|
+
className?: string;
|
|
45
|
+
checkboxClassName?: string;
|
|
46
|
+
labelClassName?: string;
|
|
47
|
+
}
|
|
48
|
+
declare const CustomCheckbox: React.FC<CustomCheckboxProps>;
|
|
49
|
+
|
|
50
|
+
interface CircularProgressProps {
|
|
51
|
+
value?: number;
|
|
52
|
+
variant?: 'determinate' | 'indeterminate';
|
|
53
|
+
color?: 'primary' | 'secondary' | 'error' | 'success' | 'info' | 'warning';
|
|
54
|
+
thickness?: number;
|
|
55
|
+
size?: number | string;
|
|
56
|
+
}
|
|
57
|
+
declare const CircularProgress: React.FC<CircularProgressProps>;
|
|
58
|
+
|
|
59
|
+
interface CustomDividerProps {
|
|
60
|
+
orientation?: string;
|
|
61
|
+
className?: string;
|
|
62
|
+
dividerClassName?: string;
|
|
63
|
+
}
|
|
64
|
+
declare const CustomDivider: React.FC<CustomDividerProps>;
|
|
65
|
+
|
|
66
|
+
interface LinkProps {
|
|
67
|
+
href: string;
|
|
68
|
+
target?: string;
|
|
69
|
+
rel?: string;
|
|
70
|
+
className?: string;
|
|
71
|
+
children?: React.ReactNode;
|
|
72
|
+
}
|
|
73
|
+
declare const Link: React.FC<LinkProps>;
|
|
74
|
+
|
|
75
|
+
interface ProgressProps {
|
|
76
|
+
value: number;
|
|
77
|
+
max: number;
|
|
78
|
+
className?: string;
|
|
79
|
+
barContainerClassName?: string;
|
|
80
|
+
barClassName?: string;
|
|
81
|
+
labelClassName?: string;
|
|
82
|
+
label?: string;
|
|
83
|
+
}
|
|
84
|
+
declare const Progress: React.FC<ProgressProps>;
|
|
85
|
+
|
|
86
|
+
interface RadioButtonProps {
|
|
87
|
+
name: string;
|
|
88
|
+
value: string;
|
|
89
|
+
checked?: boolean;
|
|
90
|
+
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
91
|
+
className?: string;
|
|
92
|
+
inputClassName?: string;
|
|
93
|
+
labelClassName?: string;
|
|
94
|
+
id?: string;
|
|
95
|
+
[key: string]: any;
|
|
96
|
+
}
|
|
97
|
+
declare const CustomRadioButton: React.FC<RadioButtonProps>;
|
|
98
|
+
|
|
99
|
+
interface CustomInputFieldProps {
|
|
100
|
+
label?: string;
|
|
101
|
+
value?: string;
|
|
102
|
+
type?: string;
|
|
103
|
+
placeholder?: string;
|
|
104
|
+
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
105
|
+
className?: string;
|
|
106
|
+
inputClassName?: string;
|
|
107
|
+
labelClassName?: string;
|
|
108
|
+
error?: string;
|
|
109
|
+
errorClassName?: string;
|
|
110
|
+
id?: string;
|
|
111
|
+
}
|
|
112
|
+
declare const CustomInputField: React.FC<CustomInputFieldProps>;
|
|
113
|
+
|
|
114
|
+
interface PdfViewerProps {
|
|
115
|
+
content: string;
|
|
116
|
+
contentType?: string;
|
|
117
|
+
buttonText?: string;
|
|
118
|
+
loadingText?: string;
|
|
119
|
+
errorText?: string;
|
|
120
|
+
cleanUpDelay?: number;
|
|
121
|
+
buttonVariant?: "text" | "outlined" | "contained";
|
|
122
|
+
buttonColor?: "inherit" | "primary" | "secondary" | "error" | "info" | "success" | "warning";
|
|
123
|
+
buttonSize?: "small" | "medium" | "large";
|
|
124
|
+
showLoadingSpinner?: boolean;
|
|
125
|
+
spinnerSize?: number;
|
|
126
|
+
spinnerColor?: "inherit" | "primary" | "secondary";
|
|
127
|
+
className?: string;
|
|
128
|
+
}
|
|
129
|
+
declare const PdfView: React.FC<PdfViewerProps>;
|
|
130
|
+
|
|
131
|
+
interface GetDirectionActionProps {
|
|
132
|
+
title: string;
|
|
133
|
+
titleClasses?: string;
|
|
134
|
+
location: string;
|
|
135
|
+
locationClasses?: string;
|
|
136
|
+
hours: string;
|
|
137
|
+
hoursClasses?: string;
|
|
138
|
+
directionsLink: string;
|
|
139
|
+
buttonName?: string;
|
|
140
|
+
}
|
|
141
|
+
declare const GetDirectionAction: React.FC<GetDirectionActionProps>;
|
|
142
|
+
|
|
143
|
+
interface MapComponentProps {
|
|
144
|
+
containerClassName?: string;
|
|
145
|
+
zoom?: number;
|
|
146
|
+
mapOptions?: google.maps.MapOptions;
|
|
147
|
+
radius?: number;
|
|
148
|
+
googleMapsUrls: string[];
|
|
149
|
+
buttonText: string;
|
|
150
|
+
buttonClassName: string;
|
|
151
|
+
}
|
|
152
|
+
declare const MapComponent: React.FC<MapComponentProps>;
|
|
153
|
+
|
|
154
|
+
interface OTPInputProps {
|
|
155
|
+
length?: number;
|
|
156
|
+
onChange: (otp: string) => void;
|
|
157
|
+
autoFocus?: boolean;
|
|
158
|
+
onResend: () => void;
|
|
159
|
+
resendDelay?: number;
|
|
160
|
+
error?: boolean;
|
|
161
|
+
errorText?: string;
|
|
162
|
+
resendText: string;
|
|
163
|
+
}
|
|
164
|
+
declare const OTPInput: React.FC<OTPInputProps>;
|
|
165
|
+
|
|
166
|
+
interface TypographyProps {
|
|
167
|
+
variant?: 'H1' | 'H2' | 'H3' | 'H4' | 'H5' | 'H6' | 'H7' | 'H8' | 'B1' | 'B2' | 'B3' | 'B4' | 'L1' | 'L2' | 'L3';
|
|
168
|
+
weight?: 'BOLD' | 'SEMI_BOLD' | 'MEDIUM';
|
|
169
|
+
children: React.ReactNode;
|
|
170
|
+
className?: string;
|
|
171
|
+
}
|
|
172
|
+
declare const Typography: React.FC<TypographyProps>;
|
|
173
|
+
|
|
174
|
+
interface CustomSearchFieldProps {
|
|
175
|
+
searchIcon: React.ReactNode;
|
|
176
|
+
crossIcon: React.ReactNode;
|
|
177
|
+
disabled?: boolean;
|
|
178
|
+
onSearch: (query: string) => void;
|
|
179
|
+
placeholder: string;
|
|
180
|
+
className?: string;
|
|
181
|
+
}
|
|
182
|
+
declare const Search: React.FC<CustomSearchFieldProps>;
|
|
183
|
+
|
|
184
|
+
interface ModalProps {
|
|
185
|
+
isOpen: boolean;
|
|
186
|
+
onClose: () => void;
|
|
187
|
+
title?: React.ReactNode;
|
|
188
|
+
children: React.ReactNode;
|
|
189
|
+
crossIcon: React.ReactNode;
|
|
190
|
+
}
|
|
191
|
+
declare const Modal: React.FC<ModalProps>;
|
|
192
|
+
|
|
193
|
+
export { Avatar, Badge, Breadcrumb as BreadCrumb, Button, CustomCheckbox as Checkbox, CircularProgress, GetDirectionAction as Directions, CustomDivider as Divider, MapComponent as GoogleMap, CustomInputField as InputTextField, Link, Modal, OTPInput as OtpInput, Progress, CustomRadioButton as RadioButton, Search, Typography, PdfView as default };
|