vrfi-design-system 1.0.17 → 1.0.18
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 +52 -10
- package/dist/main.es.js +15369 -14266
- package/dist/main.umd.js +163 -145
- package/dist/style.css +1 -1
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { Align } from '../../enums/align.enum';
|
|
2
|
+
import { default as AntdRadio } from 'antd/lib/radio';
|
|
1
3
|
import { default as AuthBanner } from '../../views/Auth/AuthBanner';
|
|
2
4
|
import { default as AuthForm } from '../../views/Auth/AuthForm';
|
|
3
5
|
import { AuthFormProps } from './../../views/Auth/AuthForm/index';
|
|
@@ -10,6 +12,7 @@ import { CheckboxGroupProps } from 'antd/es/checkbox';
|
|
|
10
12
|
import { CheckboxOptionType } from 'antd/lib/checkbox/Group';
|
|
11
13
|
import { default as Col } from 'antd/lib/col';
|
|
12
14
|
import { ColProps } from 'antd/lib/col';
|
|
15
|
+
import { ColumnType } from 'antd/lib/table';
|
|
13
16
|
import { ComponentProps } from 'react';
|
|
14
17
|
import { ControllerRenderProps } from 'react-hook-form';
|
|
15
18
|
import { default as DatePickerAntd } from 'antd/lib/date-picker';
|
|
@@ -24,6 +27,7 @@ import { FC } from 'react';
|
|
|
24
27
|
import { FieldValues } from 'react-hook-form';
|
|
25
28
|
import { FilterValue } from 'antd/lib/table/interface';
|
|
26
29
|
import { FooterDetailsProps } from '../types/footerDetails';
|
|
30
|
+
import { FooterDetailsProps as FooterDetailsProps_2 } from '../../types/footerDetails';
|
|
27
31
|
import { GenderProfileEnum } from '../../enums/genderProfile.enum';
|
|
28
32
|
import { HtmlButtonType } from '../../enums/buttonType';
|
|
29
33
|
import { Icons } from '../../enums/icons.enum';
|
|
@@ -32,7 +36,9 @@ import { InputProps as InputProps_2 } from 'antd';
|
|
|
32
36
|
import { InputTypes } from '../../enums/inputType.enum';
|
|
33
37
|
import { JobTypeEnum } from '../../enums/jobType.enum';
|
|
34
38
|
import { JSX as JSX_2 } from 'react';
|
|
39
|
+
import { Justify } from '../../enums/justify.enum';
|
|
35
40
|
import { LoaderSizes } from '../../../enums/LoaderSizes';
|
|
41
|
+
import { MenuItemType } from 'antd/lib/menu/interface';
|
|
36
42
|
import { ModalProps as ModalProps_2 } from 'antd/lib/modal';
|
|
37
43
|
import { MouseEvent as MouseEvent_2 } from 'react';
|
|
38
44
|
import { NotificationTypes } from '../../enums/notificationTypes';
|
|
@@ -47,6 +53,7 @@ import { default as Row } from 'antd/lib/row';
|
|
|
47
53
|
import { RowProps } from 'antd/lib/row';
|
|
48
54
|
import { SelectProps } from 'antd';
|
|
49
55
|
import { SidebarMenuProps } from '../types/SidebarRouteProps';
|
|
56
|
+
import { SidebarMenuProps as SidebarMenuProps_2 } from '../..//types/SidebarRouteProps';
|
|
50
57
|
import { Size } from '../../enums/size.enum';
|
|
51
58
|
import { SizeType } from 'antd/lib/config-provider/SizeContext';
|
|
52
59
|
import { SkeletonProps } from 'antd';
|
|
@@ -65,8 +72,14 @@ import { TableType } from '../../enums/tableType.enum';
|
|
|
65
72
|
import { TitleHeaderStatus } from '../../enums/titleHeaderStatus.enum';
|
|
66
73
|
import { tooltipPosition } from '../../../enums/tooltipPosition';
|
|
67
74
|
import { UploadFile } from 'antd/lib/upload/interface';
|
|
75
|
+
import { UseFormProps } from 'react-hook-form';
|
|
68
76
|
import { VerificationTypes } from '../../enums/verificationTypes.enum';
|
|
69
77
|
import { VerificationTypes as VerificationTypes_2 } from '../../../enums/verificationTypes.enum';
|
|
78
|
+
import * as Yup from 'yup';
|
|
79
|
+
|
|
80
|
+
export { Align }
|
|
81
|
+
|
|
82
|
+
export { AntdRadio }
|
|
70
83
|
|
|
71
84
|
export declare interface AssignedEmployerProps {
|
|
72
85
|
data?: EmployerDataType[];
|
|
@@ -147,6 +160,8 @@ export { Col }
|
|
|
147
160
|
|
|
148
161
|
export { ColProps }
|
|
149
162
|
|
|
163
|
+
export { ColumnType }
|
|
164
|
+
|
|
150
165
|
export declare const CustomAvatar: ({ name, size, imageUrl, isExtra }: CustomAvatarProps) => default_2.JSX.Element;
|
|
151
166
|
|
|
152
167
|
export declare type CustomAvatarProps = {
|
|
@@ -159,9 +174,8 @@ export declare type CustomAvatarProps = {
|
|
|
159
174
|
export declare interface CustomInputProps {
|
|
160
175
|
label: string;
|
|
161
176
|
name: string;
|
|
162
|
-
rules?: Record<string, any>;
|
|
163
177
|
placeholder?: string;
|
|
164
|
-
type
|
|
178
|
+
type?: InputTypes_2;
|
|
165
179
|
prefix?: ReactNode;
|
|
166
180
|
customonchange?: (event: default_2.ChangeEvent<HTMLInputElement | HTMLTextAreaElement> | default_3.Dayjs | null, field: ControllerRenderProps<FieldValues, string>) => void;
|
|
167
181
|
}
|
|
@@ -243,12 +257,12 @@ export declare interface FloatingLabelProps {
|
|
|
243
257
|
children: ReactNode;
|
|
244
258
|
label?: string;
|
|
245
259
|
value: string;
|
|
246
|
-
prefix?:
|
|
260
|
+
prefix?: ReactNode;
|
|
247
261
|
}
|
|
248
262
|
|
|
249
263
|
export { FooterDetailsProps }
|
|
250
264
|
|
|
251
|
-
export declare function Form({ onSubmit,
|
|
265
|
+
export declare function Form<T extends FieldValues>({ onSubmit, validationSchema, children, ...rest }: PropsWithChildren<FormProps<T>>): default_2.JSX.Element;
|
|
252
266
|
|
|
253
267
|
declare interface FormDropdown extends Omit<ComponentProps<typeof Dropdown>, "onChange"> {
|
|
254
268
|
rules: any;
|
|
@@ -257,11 +271,9 @@ declare interface FormDropdown extends Omit<ComponentProps<typeof Dropdown>, "on
|
|
|
257
271
|
customonchange?: (event: default_2.ChangeEvent<HTMLInputElement> | string | number | unknown, field: ControllerRenderProps<FieldValues, string>) => void;
|
|
258
272
|
}
|
|
259
273
|
|
|
260
|
-
declare interface FormProps {
|
|
261
|
-
onSubmit: (data:
|
|
262
|
-
|
|
263
|
-
[key: string]: string | number;
|
|
264
|
-
};
|
|
274
|
+
declare interface FormProps<T extends FieldValues> extends UseFormProps<T> {
|
|
275
|
+
onSubmit: (data: T) => void;
|
|
276
|
+
validationSchema?: Yup.ObjectSchema<T>;
|
|
265
277
|
}
|
|
266
278
|
|
|
267
279
|
export { GenderProfileEnum }
|
|
@@ -288,6 +300,15 @@ export declare const InputField: ({ label, type, placeholder, prefix, ...rest }:
|
|
|
288
300
|
|
|
289
301
|
export { InputTypes }
|
|
290
302
|
|
|
303
|
+
declare enum InputTypes_2 {
|
|
304
|
+
TEXT='text',
|
|
305
|
+
NUMBER='number',
|
|
306
|
+
TEXTAREA='textarea',
|
|
307
|
+
PASSWORD='password',
|
|
308
|
+
EMAIL='email',
|
|
309
|
+
DATE='date'
|
|
310
|
+
}
|
|
311
|
+
|
|
291
312
|
export declare const InputWithCountry: ({ label, type, ...rest }: CustomInputProps & InputProps_2) => default_2.JSX.Element;
|
|
292
313
|
|
|
293
314
|
export { JobTypeEnum }
|
|
@@ -298,6 +319,8 @@ declare enum JobTypeEnum_2{
|
|
|
298
319
|
|
|
299
320
|
}
|
|
300
321
|
|
|
322
|
+
export { Justify }
|
|
323
|
+
|
|
301
324
|
export declare const ListingTableHeader: (props: ListingTableHeaderProps) => default_2.JSX.Element;
|
|
302
325
|
|
|
303
326
|
export declare interface ListingTableHeaderProps {
|
|
@@ -337,6 +360,16 @@ declare enum ModalTypeEnum {
|
|
|
337
360
|
BASIC = "basic"
|
|
338
361
|
}
|
|
339
362
|
|
|
363
|
+
export declare const NoData: ({ headingText, subHeading, noDataIcon, buttonOnClick, buttonText }: NoDataProps) => default_2.JSX.Element;
|
|
364
|
+
|
|
365
|
+
export declare interface NoDataProps {
|
|
366
|
+
subHeading?: string;
|
|
367
|
+
buttonText?: string;
|
|
368
|
+
buttonOnClick?: () => void;
|
|
369
|
+
noDataIcon?: ReactElement;
|
|
370
|
+
headingText?: string;
|
|
371
|
+
}
|
|
372
|
+
|
|
340
373
|
declare const Notification_2: ({ message, description, type }: INotification) => unknown;
|
|
341
374
|
export { Notification_2 as Notification }
|
|
342
375
|
|
|
@@ -408,7 +441,6 @@ export declare const Select: (props: SelectPropsBase) => default_2.JSX.Element;
|
|
|
408
441
|
|
|
409
442
|
declare interface SelectPropsBase extends SelectProps {
|
|
410
443
|
name: string;
|
|
411
|
-
rules: Record<string, any>;
|
|
412
444
|
options: {
|
|
413
445
|
value: string;
|
|
414
446
|
label: string;
|
|
@@ -417,8 +449,18 @@ declare interface SelectPropsBase extends SelectProps {
|
|
|
417
449
|
customonchange?: (event: default_2.ChangeEvent<HTMLInputElement | HTMLTextAreaElement> | string | number, field: ControllerRenderProps<FieldValues, string>) => void;
|
|
418
450
|
}
|
|
419
451
|
|
|
452
|
+
export declare const Sidebar: default_2.FC<SidebarProps>;
|
|
453
|
+
|
|
420
454
|
export { SidebarMenuProps }
|
|
421
455
|
|
|
456
|
+
export declare interface SidebarProps {
|
|
457
|
+
activeMenu: string;
|
|
458
|
+
menus: SidebarMenuProps_2[];
|
|
459
|
+
footerDetails: FooterDetailsProps_2;
|
|
460
|
+
popoverContent: default_2.ReactNode;
|
|
461
|
+
onClick: MenuItemType["onClick"];
|
|
462
|
+
}
|
|
463
|
+
|
|
422
464
|
export { Size }
|
|
423
465
|
|
|
424
466
|
export declare const Skeleton: FC<SkeletonProps>;
|