dfh-ui-library 1.1.7 → 1.1.8
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/cjs/index.js +11 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/Button/Button.d.ts +2 -2
- package/dist/cjs/types/components/Card/Card.d.ts +7 -0
- package/dist/cjs/types/components/Card/Card.test.d.ts +1 -0
- package/dist/cjs/types/components/Card/index.d.ts +1 -0
- package/dist/cjs/types/components/FormElements/CheckBox/CheckBox.d.ts +2 -2
- package/dist/cjs/types/components/FormElements/Input/Input.d.ts +2 -2
- package/dist/cjs/types/components/FormElements/InputValidation/InputValidation.d.ts +2 -11
- package/dist/cjs/types/components/FormElements/Label/Label.d.ts +2 -2
- package/dist/cjs/types/components/FormElements/RadioButton/RadioButton.d.ts +2 -2
- package/dist/cjs/types/components/FormElements/Select/Select.d.ts +2 -2
- package/dist/cjs/types/components/FormElements/Select/Select.handler.d.ts +3 -0
- package/dist/cjs/types/components/FormElements/Textarea/Textarea.d.ts +3 -45
- package/dist/cjs/types/components/Media/Icon/Icon.d.ts +2 -2
- package/dist/cjs/types/components/Typho/Typho.d.ts +37 -0
- package/dist/cjs/types/components/Typhography/Typhography.d.ts +2 -2
- package/dist/cjs/types/components/index.d.ts +2 -1
- package/dist/cjs/types/constants/index.d.ts +3 -0
- package/dist/cjs/types/shared/configs/customClasses.d.ts +83 -0
- package/dist/cjs/types/shared/models/components/base.model.d.ts +86 -12
- package/dist/cjs/types/shared/models/components/common.model.d.ts +16 -6
- package/dist/esm/index.js +11 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/Button/Button.d.ts +2 -2
- package/dist/esm/types/components/Card/Card.d.ts +7 -0
- package/dist/esm/types/components/Card/Card.test.d.ts +1 -0
- package/dist/esm/types/components/Card/index.d.ts +1 -0
- package/dist/esm/types/components/FormElements/CheckBox/CheckBox.d.ts +2 -2
- package/dist/esm/types/components/FormElements/Input/Input.d.ts +2 -2
- package/dist/esm/types/components/FormElements/InputValidation/InputValidation.d.ts +2 -11
- package/dist/esm/types/components/FormElements/Label/Label.d.ts +2 -2
- package/dist/esm/types/components/FormElements/RadioButton/RadioButton.d.ts +2 -2
- package/dist/esm/types/components/FormElements/Select/Select.d.ts +2 -2
- package/dist/esm/types/components/FormElements/Select/Select.handler.d.ts +3 -0
- package/dist/esm/types/components/FormElements/Textarea/Textarea.d.ts +3 -45
- package/dist/esm/types/components/Media/Icon/Icon.d.ts +2 -2
- package/dist/esm/types/components/Typho/Typho.d.ts +37 -0
- package/dist/esm/types/components/Typhography/Typhography.d.ts +2 -2
- package/dist/esm/types/components/index.d.ts +2 -1
- package/dist/esm/types/constants/index.d.ts +3 -0
- package/dist/esm/types/shared/configs/customClasses.d.ts +83 -0
- package/dist/esm/types/shared/models/components/base.model.d.ts +86 -12
- package/dist/esm/types/shared/models/components/common.model.d.ts +16 -6
- package/dist/index.d.ts +306 -351
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,401 +1,356 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import React$1, {
|
|
3
|
-
InputHTMLAttributes,
|
|
4
|
-
SelectHTMLAttributes,
|
|
5
|
-
FC,
|
|
6
|
-
TextareaHTMLAttributes,
|
|
7
|
-
} from "react";
|
|
2
|
+
import React$1, { InputHTMLAttributes, SelectHTMLAttributes, TextareaHTMLAttributes, FC } from 'react';
|
|
8
3
|
|
|
9
4
|
type AlignmentType = "center" | "left" | "right";
|
|
10
|
-
type IconColorTypes =
|
|
11
|
-
|
|
12
|
-
| "black-900"
|
|
13
|
-
| "gray-220"
|
|
14
|
-
| "gray-720"
|
|
15
|
-
| "inherit"
|
|
16
|
-
| "gray-300"
|
|
17
|
-
| string;
|
|
18
|
-
type IconType =
|
|
19
|
-
| "Home"
|
|
20
|
-
| "Info"
|
|
21
|
-
| "Email"
|
|
22
|
-
| "RightArrow"
|
|
23
|
-
| "DropDown"
|
|
24
|
-
| "DropDownArrow"
|
|
25
|
-
| "WhiteArrow"
|
|
26
|
-
| "TrashIcon"
|
|
27
|
-
| "AddNewitemIcon"
|
|
28
|
-
| "OkIcon"
|
|
29
|
-
| "EditIcon"
|
|
30
|
-
| "Delete"
|
|
31
|
-
| "AddIcon"
|
|
32
|
-
| "RemoveTrashIcon"
|
|
33
|
-
| "RoundTickIcon"
|
|
34
|
-
| "ValidationWarningIcon"
|
|
35
|
-
| "WarningIcon"
|
|
36
|
-
| "NeturalIcon"
|
|
37
|
-
| "SuccessIcon"
|
|
38
|
-
| string;
|
|
5
|
+
type IconColorTypes = "white" | "black-900" | "gray-220" | "gray-720" | "inherit" | "gray-300" | string;
|
|
6
|
+
type IconType = "Home" | "Info" | "Email" | "RightArrow" | "DropDown" | "DropDownArrow" | "WhiteArrow" | "TrashIcon" | "AddNewitemIcon" | "OkIcon" | "EditIcon" | "Delete" | "AddIcon" | "RemoveTrashIcon" | "RoundTickIcon" | "ValidationWarningIcon" | "WarningIcon" | "NeturalIcon" | "SuccessIcon" | string;
|
|
39
7
|
interface IChildrenProp {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Se the child node and element;
|
|
10
|
+
*/
|
|
11
|
+
children?: React.ReactNode;
|
|
44
12
|
}
|
|
45
13
|
interface IIconTypeProp {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
14
|
+
/**
|
|
15
|
+
* Set icon type
|
|
16
|
+
*/
|
|
17
|
+
iconType?: IconType;
|
|
18
|
+
/**
|
|
19
|
+
* Set the Icon Color
|
|
20
|
+
*/
|
|
21
|
+
iconColor?: IconColorTypes;
|
|
54
22
|
}
|
|
55
23
|
interface IAdditionalClassesProp {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
24
|
+
/**
|
|
25
|
+
* Optional | Set the additional classes
|
|
26
|
+
*/
|
|
27
|
+
additionalClasses?: string | undefined;
|
|
60
28
|
}
|
|
61
29
|
interface IOnClickEventProps {
|
|
62
|
-
|
|
30
|
+
onClick?: () => void;
|
|
63
31
|
}
|
|
64
|
-
type TyphoTypes =
|
|
65
|
-
| "h1"
|
|
66
|
-
| "h1Bold"
|
|
67
|
-
| "h1ExtraBold"
|
|
68
|
-
| "h2"
|
|
69
|
-
| "h2Bold"
|
|
70
|
-
| "h2ExtraBold"
|
|
71
|
-
| "h10"
|
|
72
|
-
| "h10Bold"
|
|
73
|
-
| "h10ExtraBold"
|
|
74
|
-
| "h6"
|
|
75
|
-
| "h6Bold"
|
|
76
|
-
| "h6ExtraBold"
|
|
77
|
-
| "header1"
|
|
78
|
-
| "header2"
|
|
79
|
-
| "label1"
|
|
80
|
-
| "label2";
|
|
32
|
+
type TyphoTypes = "h1" | "h1Bold" | "h1ExtraBold" | "h2" | "h2Bold" | "h2ExtraBold" | "h10" | "h10Bold" | "h10ExtraBold" | "h6" | "h6Bold" | "h6ExtraBold" | "header1" | "header2" | "label1" | "label2" | "p";
|
|
81
33
|
type TyphoComponents = "p" | "span" | "em" | "div" | undefined;
|
|
34
|
+
interface IInputValidationProps {
|
|
35
|
+
/**
|
|
36
|
+
* Set validation message
|
|
37
|
+
*/
|
|
38
|
+
message?: string | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* Optional for additional classes
|
|
41
|
+
*/
|
|
42
|
+
additionalClasses?: string | undefined;
|
|
43
|
+
}
|
|
82
44
|
|
|
83
|
-
interface
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* Set the icon visibility
|
|
114
|
-
*/
|
|
115
|
-
isIconEnabled?: boolean;
|
|
116
|
-
/**
|
|
117
|
-
* Set the icon Alignment
|
|
118
|
-
*/
|
|
119
|
-
iconAlignment?: AlignmentType;
|
|
120
|
-
/**
|
|
121
|
-
* Set icon classes
|
|
122
|
-
*/
|
|
123
|
-
iconClass?: string;
|
|
45
|
+
interface IButtonProps extends IChildrenProp, IAdditionalClassesProp, IIconTypeProp, IOnClickEventProps {
|
|
46
|
+
/**
|
|
47
|
+
* Set the button type
|
|
48
|
+
*/
|
|
49
|
+
type?: "submit" | "button";
|
|
50
|
+
/**
|
|
51
|
+
* Button Variants
|
|
52
|
+
*/
|
|
53
|
+
variants?: "large" | "small" | "extraSmall" | "largeOutlined" | "smallOutlined" | "extraSmallOutlined" | "default" | "defaultOutlined";
|
|
54
|
+
/**
|
|
55
|
+
* Set the button disable state
|
|
56
|
+
*/
|
|
57
|
+
isDisabled?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Set the button Label
|
|
60
|
+
*/
|
|
61
|
+
buttonLabel?: string | number;
|
|
62
|
+
/**
|
|
63
|
+
* Set the icon visibility
|
|
64
|
+
*/
|
|
65
|
+
isIconEnabled?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Set the icon Alignment
|
|
68
|
+
*/
|
|
69
|
+
iconAlignment?: AlignmentType;
|
|
70
|
+
/**
|
|
71
|
+
* Set icon classes
|
|
72
|
+
*/
|
|
73
|
+
iconClass?: string;
|
|
124
74
|
}
|
|
125
|
-
interface ITyphographyProps extends
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
75
|
+
interface ITyphographyProps extends IChildrenProp, IAdditionalClassesProp {
|
|
76
|
+
/**
|
|
77
|
+
* Set element type
|
|
78
|
+
*/
|
|
79
|
+
type?: TyphoTypes;
|
|
80
|
+
/**
|
|
81
|
+
* Set element node of the content wrapper
|
|
82
|
+
*/
|
|
83
|
+
component?: TyphoComponents;
|
|
84
|
+
/**
|
|
85
|
+
* Set font-color of the content
|
|
86
|
+
*/
|
|
87
|
+
color?: string;
|
|
88
|
+
onClick?: () => void;
|
|
139
89
|
}
|
|
140
|
-
type InputType
|
|
90
|
+
type InputType = "text" | "email" | "password" | "name" | "date";
|
|
141
91
|
interface IHookFormsInputProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
92
|
+
/**
|
|
93
|
+
* Set Input type
|
|
94
|
+
*/
|
|
95
|
+
type?: InputType;
|
|
96
|
+
/**
|
|
97
|
+
* Set new variant of the input
|
|
98
|
+
*/
|
|
99
|
+
inputVariant?: "default" | "large";
|
|
100
|
+
/**
|
|
101
|
+
* Set Input name
|
|
102
|
+
*/
|
|
103
|
+
id?: string;
|
|
104
|
+
/**
|
|
105
|
+
* Set Input name
|
|
106
|
+
*/
|
|
107
|
+
labelName?: string;
|
|
108
|
+
/**
|
|
109
|
+
* Set the Label Type
|
|
110
|
+
*/
|
|
111
|
+
labelType?: "default" | "black" | "smallSelect" | "blackSmall";
|
|
112
|
+
/**
|
|
113
|
+
* Set Input label name
|
|
114
|
+
*/
|
|
115
|
+
label?: string | undefined;
|
|
116
|
+
/**
|
|
117
|
+
* Ser Error message
|
|
118
|
+
*/
|
|
119
|
+
error?: string;
|
|
120
|
+
/**
|
|
121
|
+
* Ser Error message
|
|
122
|
+
*/
|
|
123
|
+
isBorderedError?: boolean;
|
|
124
|
+
/**
|
|
125
|
+
* Set Wrapper classes, new classes will overide the existing default classes
|
|
126
|
+
*/
|
|
127
|
+
wrapperClass?: string | undefined;
|
|
128
|
+
/**
|
|
129
|
+
* Optional for additional classes
|
|
130
|
+
*/
|
|
131
|
+
additionalClasses?: string | undefined;
|
|
132
|
+
/**
|
|
133
|
+
* Enable read only
|
|
134
|
+
*/
|
|
135
|
+
readonly?: boolean;
|
|
136
|
+
/**
|
|
137
|
+
* LabelClasses
|
|
138
|
+
*/
|
|
139
|
+
labelClasses?: string | undefined;
|
|
140
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
141
|
+
placeholder?: string;
|
|
142
|
+
/**
|
|
143
|
+
* Set label only
|
|
144
|
+
*/
|
|
145
|
+
onlyLabel?: boolean | undefined;
|
|
146
|
+
/**
|
|
147
|
+
* inner span Classes
|
|
148
|
+
*/
|
|
149
|
+
labelSpanClasses?: string;
|
|
150
|
+
/**
|
|
151
|
+
* add additional InputValidation Classes
|
|
152
|
+
*/
|
|
153
|
+
additionalErrorClasses?: string;
|
|
154
|
+
isAdditionalErrorInput?: boolean;
|
|
155
|
+
fullError?: boolean;
|
|
206
156
|
}
|
|
207
|
-
interface
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
157
|
+
interface ICheckboxProps {
|
|
158
|
+
onChange?: (checked: boolean) => void;
|
|
159
|
+
checked?: boolean;
|
|
160
|
+
id?: any;
|
|
161
|
+
label?: string;
|
|
212
162
|
}
|
|
213
163
|
type LABELTYPE = "default" | "black" | "smallSelect" | "blackSmall" | undefined;
|
|
214
164
|
interface ILabelProps {
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
165
|
+
/**
|
|
166
|
+
* Set the Label Type
|
|
167
|
+
*/
|
|
168
|
+
labelType?: LABELTYPE;
|
|
169
|
+
/**
|
|
170
|
+
* Label name
|
|
171
|
+
*/
|
|
172
|
+
name: string | undefined;
|
|
173
|
+
/**
|
|
174
|
+
* Label contents
|
|
175
|
+
*/
|
|
176
|
+
label?: string | undefined;
|
|
177
|
+
/**
|
|
178
|
+
* Add children
|
|
179
|
+
*/
|
|
180
|
+
children?: React.ReactNode;
|
|
181
|
+
/**
|
|
182
|
+
* Optional for additional classes
|
|
183
|
+
*/
|
|
184
|
+
additionalClasses?: string | undefined;
|
|
185
|
+
/**
|
|
186
|
+
* inner span Classes
|
|
187
|
+
*/
|
|
188
|
+
labelSpanClasses?: string;
|
|
189
|
+
}
|
|
190
|
+
interface IRadioProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
191
|
+
/**
|
|
192
|
+
* Set Input name
|
|
193
|
+
*/
|
|
194
|
+
name?: string;
|
|
195
|
+
/**
|
|
196
|
+
* Set Input label name
|
|
197
|
+
*/
|
|
198
|
+
label?: string | undefined;
|
|
199
|
+
/**
|
|
200
|
+
* Optional for additional classes
|
|
201
|
+
*/
|
|
202
|
+
additionalClasses?: string | undefined;
|
|
203
|
+
id?: any;
|
|
204
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
205
|
+
isDeafult?: boolean;
|
|
239
206
|
}
|
|
207
|
+
interface IOption {
|
|
208
|
+
displayName: string;
|
|
209
|
+
}
|
|
210
|
+
type selectType = "small" | "medium";
|
|
240
211
|
interface ISelectProps extends SelectHTMLAttributes<HTMLSelectElement> {
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
212
|
+
/**
|
|
213
|
+
* Type
|
|
214
|
+
*/
|
|
215
|
+
selectType?: selectType;
|
|
216
|
+
/**
|
|
217
|
+
* Set Input type
|
|
218
|
+
*/
|
|
219
|
+
options?: IOption[];
|
|
220
|
+
/**
|
|
221
|
+
* Set Input name
|
|
222
|
+
*/
|
|
223
|
+
name: string;
|
|
224
|
+
/**
|
|
225
|
+
* Set Label type
|
|
226
|
+
*/
|
|
227
|
+
labelType?: "default" | "black" | "smallSelect" | "blackSmall";
|
|
228
|
+
/**
|
|
229
|
+
* Set Input label name
|
|
230
|
+
*/
|
|
231
|
+
label?: string | undefined;
|
|
232
|
+
/**
|
|
233
|
+
* LabelClasses
|
|
234
|
+
*/
|
|
235
|
+
labelClasses?: string;
|
|
236
|
+
/**
|
|
237
|
+
* Default text for placeholder
|
|
238
|
+
*/
|
|
239
|
+
defaultText?: string | undefined;
|
|
240
|
+
/**
|
|
241
|
+
* Ser Error message
|
|
242
|
+
*/
|
|
243
|
+
error?: string;
|
|
244
|
+
/**
|
|
245
|
+
* Set Wrapper classes, new classes will overide the existing default classes
|
|
246
|
+
*/
|
|
247
|
+
wrapperClass?: string | undefined;
|
|
248
|
+
/**
|
|
249
|
+
* Optional for additional classes
|
|
250
|
+
*/
|
|
251
|
+
additionalClasses?: string | undefined;
|
|
252
|
+
updateInputValue?: (e: React.ChangeEvent<HTMLSelectElement>) => void;
|
|
253
|
+
defaultValue?: string;
|
|
254
|
+
}
|
|
255
|
+
interface IInputProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
256
|
+
/**
|
|
257
|
+
* Set Input type
|
|
258
|
+
*/
|
|
259
|
+
type?: InputType;
|
|
260
|
+
/**
|
|
261
|
+
* Set Input name
|
|
262
|
+
*/
|
|
263
|
+
name: string;
|
|
264
|
+
/**
|
|
265
|
+
* Set the Label Type
|
|
266
|
+
*/
|
|
267
|
+
labelType?: "default" | "black" | "smallSelect";
|
|
268
|
+
/**
|
|
269
|
+
* Set Input label name
|
|
270
|
+
*/
|
|
271
|
+
label?: string | undefined;
|
|
272
|
+
/**
|
|
273
|
+
* Ser Error message
|
|
274
|
+
*/
|
|
275
|
+
error?: string;
|
|
276
|
+
/**
|
|
277
|
+
* Set Wrapper classes, new classes will overide the existing default classes
|
|
278
|
+
*/
|
|
279
|
+
wrapperClass?: string | undefined;
|
|
280
|
+
/**
|
|
281
|
+
* Optional for additional classes
|
|
282
|
+
*/
|
|
283
|
+
additionalClasses?: string | undefined;
|
|
284
|
+
/**
|
|
285
|
+
* Enable read only
|
|
286
|
+
*/
|
|
287
|
+
readonly?: boolean;
|
|
288
|
+
/**
|
|
289
|
+
* LabelClasses
|
|
290
|
+
*/
|
|
291
|
+
labelClasses?: string;
|
|
292
|
+
/**
|
|
293
|
+
* Set label only
|
|
294
|
+
*/
|
|
295
|
+
onlyLabel?: boolean;
|
|
296
|
+
}
|
|
297
|
+
interface ICardProps {
|
|
298
|
+
/**
|
|
299
|
+
* Set button type
|
|
300
|
+
*/
|
|
301
|
+
cardType?: "lightGray" | "lightGrayHalf" | "gray" | "white" | "black" | "whiteBorder";
|
|
302
|
+
/**
|
|
303
|
+
* Optional for additional classes
|
|
304
|
+
*/
|
|
305
|
+
additionalClasses?: string | undefined;
|
|
306
|
+
/**
|
|
307
|
+
* Nested child elements and contents
|
|
308
|
+
*/
|
|
309
|
+
children?: React.ReactNode;
|
|
283
310
|
}
|
|
284
311
|
|
|
285
|
-
declare const Button: ({
|
|
286
|
-
type,
|
|
287
|
-
isDisabled,
|
|
288
|
-
buttonLabel,
|
|
289
|
-
iconType,
|
|
290
|
-
iconColor,
|
|
291
|
-
iconAlignment,
|
|
292
|
-
isIconEnabled,
|
|
293
|
-
variants,
|
|
294
|
-
additionalClasses,
|
|
295
|
-
iconClass,
|
|
296
|
-
onClick,
|
|
297
|
-
}: ButtonProps) => React$1.JSX.Element;
|
|
312
|
+
declare const Button: ({ type, isDisabled, buttonLabel, iconType, iconColor, iconAlignment, isIconEnabled, variants, additionalClasses, iconClass, onClick, }: IButtonProps) => React$1.JSX.Element;
|
|
298
313
|
|
|
299
314
|
/**
|
|
300
315
|
* Primary UI component
|
|
301
316
|
*/
|
|
302
|
-
declare const Typhography: ({
|
|
303
|
-
type,
|
|
304
|
-
component,
|
|
305
|
-
color,
|
|
306
|
-
additionalClasses,
|
|
307
|
-
children,
|
|
308
|
-
onClick,
|
|
309
|
-
...rest
|
|
310
|
-
}: TyphographyProps) => React$1.JSX.Element;
|
|
317
|
+
declare const Typhography: ({ type, component, color, additionalClasses, children, onClick, ...rest }: ITyphographyProps) => React$1.JSX.Element;
|
|
311
318
|
|
|
312
|
-
declare const Checkbox: React$1.FC<
|
|
319
|
+
declare const Checkbox: React$1.FC<ICheckboxProps>;
|
|
313
320
|
|
|
314
|
-
interface IInputValidationProps {
|
|
315
|
-
/**
|
|
316
|
-
* Set validation message
|
|
317
|
-
*/
|
|
318
|
-
message?: string | undefined;
|
|
319
|
-
/**
|
|
320
|
-
* Optional for additional classes
|
|
321
|
-
*/
|
|
322
|
-
additionalClasses?: string | undefined;
|
|
323
|
-
}
|
|
324
321
|
/**
|
|
325
322
|
* Primary UI component for user interaction
|
|
326
323
|
*/
|
|
327
|
-
declare const InputValidation: React$1.FC<
|
|
324
|
+
declare const InputValidation: React$1.FC<IInputValidationProps>;
|
|
328
325
|
|
|
329
326
|
/**
|
|
330
327
|
* Primary UI component for user interaction
|
|
331
328
|
*/
|
|
332
|
-
declare const Input: FC<
|
|
329
|
+
declare const Input: FC<IHookFormsInputProps>;
|
|
333
330
|
|
|
334
331
|
/**
|
|
335
332
|
* Primary UI component for user interaction
|
|
336
333
|
*/
|
|
337
|
-
declare const Label: React$1.FC<
|
|
334
|
+
declare const Label: React$1.FC<ILabelProps>;
|
|
338
335
|
|
|
339
336
|
/**
|
|
340
337
|
* Primary UI component for user interaction
|
|
341
338
|
*/
|
|
342
|
-
declare const Select: React$1.FC<
|
|
339
|
+
declare const Select: React$1.FC<ISelectProps>;
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* Primary UI component for user interaction
|
|
343
|
+
*/
|
|
344
|
+
declare const RadioButton: React$1.FC<IRadioProps>;
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* Primary UI component for user interaction
|
|
348
|
+
*/
|
|
349
|
+
declare const Textarea: React$1.FC<IInputProps>;
|
|
343
350
|
|
|
344
|
-
type InputType = "text" | "email" | "password" | "name";
|
|
345
|
-
interface IInputProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
346
|
-
/**
|
|
347
|
-
* Set Input type
|
|
348
|
-
*/
|
|
349
|
-
type?: InputType;
|
|
350
|
-
/**
|
|
351
|
-
* Set Input name
|
|
352
|
-
*/
|
|
353
|
-
name: string;
|
|
354
|
-
/**
|
|
355
|
-
* Set the Label Type
|
|
356
|
-
*/
|
|
357
|
-
labelType?: "default" | "black" | "smallSelect";
|
|
358
|
-
/**
|
|
359
|
-
* Set Input label name
|
|
360
|
-
*/
|
|
361
|
-
label?: string | undefined;
|
|
362
|
-
/**
|
|
363
|
-
* Ser Error message
|
|
364
|
-
*/
|
|
365
|
-
error?: string;
|
|
366
|
-
/**
|
|
367
|
-
* Set Wrapper classes, new classes will overide the existing default classes
|
|
368
|
-
*/
|
|
369
|
-
wrapperClass?: string | undefined;
|
|
370
|
-
/**
|
|
371
|
-
* Optional for additional classes
|
|
372
|
-
*/
|
|
373
|
-
additionalClasses?: string | undefined;
|
|
374
|
-
/**
|
|
375
|
-
* Enable read only
|
|
376
|
-
*/
|
|
377
|
-
readonly?: boolean;
|
|
378
|
-
/**
|
|
379
|
-
* LabelClasses
|
|
380
|
-
*/
|
|
381
|
-
labelClasses?: string;
|
|
382
|
-
/**
|
|
383
|
-
* Set label only
|
|
384
|
-
*/
|
|
385
|
-
onlyLabel?: boolean;
|
|
386
|
-
}
|
|
387
351
|
/**
|
|
388
352
|
* Primary UI component for user interaction
|
|
389
353
|
*/
|
|
390
|
-
declare const
|
|
354
|
+
declare const Card: React$1.FC<ICardProps>;
|
|
391
355
|
|
|
392
|
-
export {
|
|
393
|
-
Button,
|
|
394
|
-
Checkbox as CheckBox,
|
|
395
|
-
Input,
|
|
396
|
-
InputValidation,
|
|
397
|
-
Label,
|
|
398
|
-
Select,
|
|
399
|
-
Textarea,
|
|
400
|
-
Typhography,
|
|
401
|
-
};
|
|
356
|
+
export { Button, Card, Checkbox as CheckBox, Input, InputValidation, Label, RadioButton, Select, Textarea, Typhography };
|