vrfi-design-system 1.0.7 → 1.0.9
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 +19 -39
- package/dist/main.es.js +18108 -18846
- package/dist/main.umd.js +113 -140
- package/dist/style.css +1 -1
- package/package.json +3 -6
package/dist/index.d.ts
CHANGED
|
@@ -21,9 +21,7 @@ import { JSX as JSX_2 } from 'react';
|
|
|
21
21
|
import { LoaderSizes } from '../../../enums/LoaderSizes';
|
|
22
22
|
import { ModalProps as ModalProps_2 } from 'antd/lib/modal';
|
|
23
23
|
import { MouseEvent as MouseEvent_2 } from 'react';
|
|
24
|
-
import { PasswordProps } from 'antd/es/input';
|
|
25
24
|
import { Radio as Radio_2 } from 'antd';
|
|
26
|
-
import { RadioButtonProps as RadioButtonProps_2 } from 'antd/es/radio/radioButton';
|
|
27
25
|
import { ReactElement } from 'react';
|
|
28
26
|
import { ReactNode } from 'react';
|
|
29
27
|
import { SelectProps } from 'antd';
|
|
@@ -37,7 +35,6 @@ import { TablePaginationConfig } from 'antd';
|
|
|
37
35
|
import { TableProps } from 'antd/lib/table';
|
|
38
36
|
import { TableProps as TableProps_2 } from 'rc-table/lib/Table';
|
|
39
37
|
import { TableProps as TableProps_3 } from 'antd';
|
|
40
|
-
import { TextAreaProps } from 'antd/lib/input';
|
|
41
38
|
import { tooltipPosition } from '../../../enums/tooltipPosition';
|
|
42
39
|
import { UploadFile } from 'antd/lib/upload/interface';
|
|
43
40
|
|
|
@@ -58,8 +55,8 @@ export declare interface AvatarProps {
|
|
|
58
55
|
}
|
|
59
56
|
|
|
60
57
|
declare const enum AvatarSize {
|
|
61
|
-
SMALL =
|
|
62
|
-
LARGE =
|
|
58
|
+
SMALL = 'small',
|
|
59
|
+
LARGE = 'large'
|
|
63
60
|
}
|
|
64
61
|
|
|
65
62
|
export declare function AvatarWithDetailsCard(props: AvatarCardProps): default_2.JSX.Element;
|
|
@@ -100,7 +97,7 @@ export declare interface CheckboxProps {
|
|
|
100
97
|
export declare const CustomAvatar: ({ name, size, imageUrl, isExtra }: CustomAvatarProps) => default_2.JSX.Element;
|
|
101
98
|
|
|
102
99
|
export declare type CustomAvatarProps = {
|
|
103
|
-
name
|
|
100
|
+
name: string;
|
|
104
101
|
size: AvatarSize;
|
|
105
102
|
imageUrl?: string;
|
|
106
103
|
isExtra?: boolean;
|
|
@@ -110,11 +107,9 @@ export declare interface CustomInputProps {
|
|
|
110
107
|
label: string;
|
|
111
108
|
name: string;
|
|
112
109
|
rules?: Record<string, any>;
|
|
113
|
-
placeholder
|
|
110
|
+
placeholder?: string;
|
|
114
111
|
type: string;
|
|
115
|
-
|
|
116
|
-
hasError: boolean;
|
|
117
|
-
customOnChange: (event: default_2.ChangeEvent<HTMLInputElement | HTMLTextAreaElement> | default_3.Dayjs | null, field: ControllerRenderProps<FieldValues, string>) => void;
|
|
112
|
+
customonchange?: (event: default_2.ChangeEvent<HTMLInputElement | HTMLTextAreaElement> | default_3.Dayjs | null, field: ControllerRenderProps<FieldValues, string>) => void;
|
|
118
113
|
}
|
|
119
114
|
|
|
120
115
|
export declare const DatePickerField: {
|
|
@@ -135,7 +130,7 @@ declare enum DocumentStatusEnum {
|
|
|
135
130
|
}
|
|
136
131
|
|
|
137
132
|
export declare type DocumentStatusTypes = {
|
|
138
|
-
|
|
133
|
+
documentType: DocumentStatusEnum;
|
|
139
134
|
};
|
|
140
135
|
|
|
141
136
|
export declare const Drawer: FC<DrawerProps>;
|
|
@@ -154,7 +149,7 @@ export declare interface DrawerProps {
|
|
|
154
149
|
placement?: 'top' | 'bottom' | 'left' | 'right';
|
|
155
150
|
}
|
|
156
151
|
|
|
157
|
-
declare const Dropdown: <ValueType, OptionType extends
|
|
152
|
+
declare const Dropdown: <ValueType, OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType>({ title, ...props }: DropdownProps<ValueType, OptionType>) => default_2.JSX.Element;
|
|
158
153
|
|
|
159
154
|
export declare const DropdownField: (props: FormDropdown) => default_2.JSX.Element;
|
|
160
155
|
|
|
@@ -170,13 +165,12 @@ export declare interface ErrorMessageProps {
|
|
|
170
165
|
message: string;
|
|
171
166
|
}
|
|
172
167
|
|
|
173
|
-
export declare const FileUpload: ({ children, actionURL, dragdrop, uploadIcon,
|
|
168
|
+
export declare const FileUpload: ({ children, actionURL, dragdrop, uploadIcon, uploadHint, fileTypes, multiple, maxCount, handleChange, supportedFileType }: FileUploadProps) => default_2.JSX.Element;
|
|
174
169
|
|
|
175
170
|
export declare interface FileUploadProps {
|
|
176
171
|
children?: default_2.ReactNode;
|
|
177
172
|
dragdrop?: boolean;
|
|
178
173
|
uploadIcon?: ReactNode;
|
|
179
|
-
uploadText?: ReactNode;
|
|
180
174
|
uploadHint?: ReactNode;
|
|
181
175
|
fileTypes?: string;
|
|
182
176
|
actionURL?: string;
|
|
@@ -210,14 +204,7 @@ export declare interface INotification {
|
|
|
210
204
|
type: string;
|
|
211
205
|
}
|
|
212
206
|
|
|
213
|
-
export declare const InputField: {
|
|
214
|
-
({ label, type, placeholder, hasError, ...rest }: CustomInputProps & InputProps): default_2.JSX.Element;
|
|
215
|
-
password: ({ label, type, placeholder, hasError, ...rest }: CustomInputProps & PasswordProps) => default_2.JSX.Element;
|
|
216
|
-
TextArea: ({ label, type, placeholder, hasError, ...rest }: CustomInputProps & TextAreaProps) => default_2.JSX.Element;
|
|
217
|
-
DatePicker: (props: CustomInputProps & DatePickerProps_2 & DatePickerProps_2) => default_2.JSX.Element;
|
|
218
|
-
Radio: (props: CustomInputProps & RadioProps_2) => default_2.JSX.Element;
|
|
219
|
-
Select: (props: SelectPropsBase) => default_2.JSX.Element;
|
|
220
|
-
};
|
|
207
|
+
export declare const InputField: ({ label, type, placeholder, ...rest }: CustomInputProps & InputProps) => default_2.JSX.Element;
|
|
221
208
|
|
|
222
209
|
export declare const Loader: default_2.FC<LoaderProps>;
|
|
223
210
|
|
|
@@ -264,27 +251,15 @@ declare interface RadioButtonProps {
|
|
|
264
251
|
|
|
265
252
|
export declare type RadioProps = RadioButtonProps & ComponentProps<typeof Radio_2.Group>;
|
|
266
253
|
|
|
267
|
-
declare type RadioProps_2 = RadioButtonProps_2 & ComponentProps<typeof Radio_2.Group>;
|
|
268
|
-
|
|
269
254
|
export declare interface SearchComponentProps {
|
|
270
255
|
onChange: (event: default_2.ChangeEvent<HTMLInputElement>) => void;
|
|
271
|
-
|
|
256
|
+
value: string | number;
|
|
257
|
+
placeholder: string;
|
|
258
|
+
onClear: () => void;
|
|
272
259
|
}
|
|
273
260
|
|
|
274
261
|
export declare const SearchField: FC<SearchComponentProps>;
|
|
275
262
|
|
|
276
|
-
declare interface SelectPropsBase extends SelectProps {
|
|
277
|
-
control: any;
|
|
278
|
-
name: string;
|
|
279
|
-
rules: Record<string, any>;
|
|
280
|
-
error: string;
|
|
281
|
-
hasError: boolean;
|
|
282
|
-
options: {
|
|
283
|
-
key: string;
|
|
284
|
-
label: string;
|
|
285
|
-
}[];
|
|
286
|
-
}
|
|
287
|
-
|
|
288
263
|
export declare const Skeleton: FC<SkeletonProps>;
|
|
289
264
|
|
|
290
265
|
declare interface StepItem extends StepProps {
|
|
@@ -299,13 +274,13 @@ export declare interface StepperProps extends StepsProps {
|
|
|
299
274
|
destroyOnChange?: boolean;
|
|
300
275
|
}
|
|
301
276
|
|
|
302
|
-
export declare const Table: <T extends object>(
|
|
277
|
+
export declare const Table: <T extends object>(props: TableProps_3<T>) => default_2.JSX.Element;
|
|
303
278
|
|
|
304
279
|
export declare const TableComponent: FC<TableComponentProps>;
|
|
305
280
|
|
|
306
281
|
export declare interface TableComponentProps extends TableProps<any> {
|
|
307
|
-
className?: string;
|
|
308
282
|
dataSource: any[] | undefined;
|
|
283
|
+
type?: TableType;
|
|
309
284
|
pagination?: false | TablePaginationConfig | undefined;
|
|
310
285
|
loading?: boolean;
|
|
311
286
|
onRow?: any;
|
|
@@ -318,6 +293,11 @@ export declare interface TableComponentProps extends TableProps<any> {
|
|
|
318
293
|
size?: SizeType;
|
|
319
294
|
}
|
|
320
295
|
|
|
296
|
+
declare const enum TableType {
|
|
297
|
+
DEFAULT = "default",
|
|
298
|
+
NO_DESIGN = "noDesign",
|
|
299
|
+
}
|
|
300
|
+
|
|
321
301
|
export declare const Tooltip: FC<TooltipProps>;
|
|
322
302
|
|
|
323
303
|
declare interface TooltipProps {
|