vrfi-design-system 1.0.17 → 1.0.19
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 +61 -10
- package/dist/main.es.js +20541 -19012
- package/dist/main.umd.js +171 -155
- package/dist/style.css +1 -1
- package/package.json +3 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Align } from '../../enums/align.enum';
|
|
1
2
|
import { default as AuthBanner } from '../../views/Auth/AuthBanner';
|
|
2
3
|
import { default as AuthForm } from '../../views/Auth/AuthForm';
|
|
3
4
|
import { AuthFormProps } from './../../views/Auth/AuthForm/index';
|
|
@@ -10,6 +11,7 @@ import { CheckboxGroupProps } from 'antd/es/checkbox';
|
|
|
10
11
|
import { CheckboxOptionType } from 'antd/lib/checkbox/Group';
|
|
11
12
|
import { default as Col } from 'antd/lib/col';
|
|
12
13
|
import { ColProps } from 'antd/lib/col';
|
|
14
|
+
import { ColumnType } from 'antd/lib/table';
|
|
13
15
|
import { ComponentProps } from 'react';
|
|
14
16
|
import { ControllerRenderProps } from 'react-hook-form';
|
|
15
17
|
import { default as DatePickerAntd } from 'antd/lib/date-picker';
|
|
@@ -24,6 +26,7 @@ import { FC } from 'react';
|
|
|
24
26
|
import { FieldValues } from 'react-hook-form';
|
|
25
27
|
import { FilterValue } from 'antd/lib/table/interface';
|
|
26
28
|
import { FooterDetailsProps } from '../types/footerDetails';
|
|
29
|
+
import { FooterDetailsProps as FooterDetailsProps_2 } from '../../types/footerDetails';
|
|
27
30
|
import { GenderProfileEnum } from '../../enums/genderProfile.enum';
|
|
28
31
|
import { HtmlButtonType } from '../../enums/buttonType';
|
|
29
32
|
import { Icons } from '../../enums/icons.enum';
|
|
@@ -32,7 +35,9 @@ import { InputProps as InputProps_2 } from 'antd';
|
|
|
32
35
|
import { InputTypes } from '../../enums/inputType.enum';
|
|
33
36
|
import { JobTypeEnum } from '../../enums/jobType.enum';
|
|
34
37
|
import { JSX as JSX_2 } from 'react';
|
|
38
|
+
import { Justify } from '../../enums/justify.enum';
|
|
35
39
|
import { LoaderSizes } from '../../../enums/LoaderSizes';
|
|
40
|
+
import { MenuItemType } from 'antd/lib/menu/interface';
|
|
36
41
|
import { ModalProps as ModalProps_2 } from 'antd/lib/modal';
|
|
37
42
|
import { MouseEvent as MouseEvent_2 } from 'react';
|
|
38
43
|
import { NotificationTypes } from '../../enums/notificationTypes';
|
|
@@ -47,6 +52,7 @@ import { default as Row } from 'antd/lib/row';
|
|
|
47
52
|
import { RowProps } from 'antd/lib/row';
|
|
48
53
|
import { SelectProps } from 'antd';
|
|
49
54
|
import { SidebarMenuProps } from '../types/SidebarRouteProps';
|
|
55
|
+
import { SidebarMenuProps as SidebarMenuProps_2 } from '../..//types/SidebarRouteProps';
|
|
50
56
|
import { Size } from '../../enums/size.enum';
|
|
51
57
|
import { SizeType } from 'antd/lib/config-provider/SizeContext';
|
|
52
58
|
import { SkeletonProps } from 'antd';
|
|
@@ -65,8 +71,12 @@ import { TableType } from '../../enums/tableType.enum';
|
|
|
65
71
|
import { TitleHeaderStatus } from '../../enums/titleHeaderStatus.enum';
|
|
66
72
|
import { tooltipPosition } from '../../../enums/tooltipPosition';
|
|
67
73
|
import { UploadFile } from 'antd/lib/upload/interface';
|
|
74
|
+
import { UseFormProps } from 'react-hook-form';
|
|
68
75
|
import { VerificationTypes } from '../../enums/verificationTypes.enum';
|
|
69
76
|
import { VerificationTypes as VerificationTypes_2 } from '../../../enums/verificationTypes.enum';
|
|
77
|
+
import * as Yup from 'yup';
|
|
78
|
+
|
|
79
|
+
export { Align }
|
|
70
80
|
|
|
71
81
|
export declare interface AssignedEmployerProps {
|
|
72
82
|
data?: EmployerDataType[];
|
|
@@ -147,6 +157,8 @@ export { Col }
|
|
|
147
157
|
|
|
148
158
|
export { ColProps }
|
|
149
159
|
|
|
160
|
+
export { ColumnType }
|
|
161
|
+
|
|
150
162
|
export declare const CustomAvatar: ({ name, size, imageUrl, isExtra }: CustomAvatarProps) => default_2.JSX.Element;
|
|
151
163
|
|
|
152
164
|
export declare type CustomAvatarProps = {
|
|
@@ -159,9 +171,8 @@ export declare type CustomAvatarProps = {
|
|
|
159
171
|
export declare interface CustomInputProps {
|
|
160
172
|
label: string;
|
|
161
173
|
name: string;
|
|
162
|
-
rules?: Record<string, any>;
|
|
163
174
|
placeholder?: string;
|
|
164
|
-
type
|
|
175
|
+
type?: InputTypes_2;
|
|
165
176
|
prefix?: ReactNode;
|
|
166
177
|
customonchange?: (event: default_2.ChangeEvent<HTMLInputElement | HTMLTextAreaElement> | default_3.Dayjs | null, field: ControllerRenderProps<FieldValues, string>) => void;
|
|
167
178
|
}
|
|
@@ -243,12 +254,12 @@ export declare interface FloatingLabelProps {
|
|
|
243
254
|
children: ReactNode;
|
|
244
255
|
label?: string;
|
|
245
256
|
value: string;
|
|
246
|
-
prefix?:
|
|
257
|
+
prefix?: ReactNode;
|
|
247
258
|
}
|
|
248
259
|
|
|
249
260
|
export { FooterDetailsProps }
|
|
250
261
|
|
|
251
|
-
export declare function Form({ onSubmit,
|
|
262
|
+
export declare function Form<T extends FieldValues>({ onSubmit, validationSchema, children, ...rest }: PropsWithChildren<FormProps<T>>): default_2.JSX.Element;
|
|
252
263
|
|
|
253
264
|
declare interface FormDropdown extends Omit<ComponentProps<typeof Dropdown>, "onChange"> {
|
|
254
265
|
rules: any;
|
|
@@ -257,11 +268,9 @@ declare interface FormDropdown extends Omit<ComponentProps<typeof Dropdown>, "on
|
|
|
257
268
|
customonchange?: (event: default_2.ChangeEvent<HTMLInputElement> | string | number | unknown, field: ControllerRenderProps<FieldValues, string>) => void;
|
|
258
269
|
}
|
|
259
270
|
|
|
260
|
-
declare interface FormProps {
|
|
261
|
-
onSubmit: (data:
|
|
262
|
-
|
|
263
|
-
[key: string]: string | number;
|
|
264
|
-
};
|
|
271
|
+
declare interface FormProps<T extends FieldValues> extends UseFormProps<T> {
|
|
272
|
+
onSubmit: (data: T) => void;
|
|
273
|
+
validationSchema?: Yup.ObjectSchema<T>;
|
|
265
274
|
}
|
|
266
275
|
|
|
267
276
|
export { GenderProfileEnum }
|
|
@@ -288,6 +297,15 @@ export declare const InputField: ({ label, type, placeholder, prefix, ...rest }:
|
|
|
288
297
|
|
|
289
298
|
export { InputTypes }
|
|
290
299
|
|
|
300
|
+
declare enum InputTypes_2 {
|
|
301
|
+
TEXT='text',
|
|
302
|
+
NUMBER='number',
|
|
303
|
+
TEXTAREA='textarea',
|
|
304
|
+
PASSWORD='password',
|
|
305
|
+
EMAIL='email',
|
|
306
|
+
DATE='date'
|
|
307
|
+
}
|
|
308
|
+
|
|
291
309
|
export declare const InputWithCountry: ({ label, type, ...rest }: CustomInputProps & InputProps_2) => default_2.JSX.Element;
|
|
292
310
|
|
|
293
311
|
export { JobTypeEnum }
|
|
@@ -298,6 +316,8 @@ declare enum JobTypeEnum_2{
|
|
|
298
316
|
|
|
299
317
|
}
|
|
300
318
|
|
|
319
|
+
export { Justify }
|
|
320
|
+
|
|
301
321
|
export declare const ListingTableHeader: (props: ListingTableHeaderProps) => default_2.JSX.Element;
|
|
302
322
|
|
|
303
323
|
export declare interface ListingTableHeaderProps {
|
|
@@ -337,6 +357,16 @@ declare enum ModalTypeEnum {
|
|
|
337
357
|
BASIC = "basic"
|
|
338
358
|
}
|
|
339
359
|
|
|
360
|
+
export declare const NoData: ({ headingText, subHeading, noDataIcon, buttonOnClick, buttonText }: NoDataProps) => default_2.JSX.Element;
|
|
361
|
+
|
|
362
|
+
export declare interface NoDataProps {
|
|
363
|
+
subHeading?: string;
|
|
364
|
+
buttonText?: string;
|
|
365
|
+
buttonOnClick?: () => void;
|
|
366
|
+
noDataIcon?: ReactElement;
|
|
367
|
+
headingText?: string;
|
|
368
|
+
}
|
|
369
|
+
|
|
340
370
|
declare const Notification_2: ({ message, description, type }: INotification) => unknown;
|
|
341
371
|
export { Notification_2 as Notification }
|
|
342
372
|
|
|
@@ -350,6 +380,13 @@ export declare interface OfflineProps {
|
|
|
350
380
|
|
|
351
381
|
export declare const Password: ({ label, type, placeholder, ...rest }: CustomInputProps & PasswordProps) => default_2.JSX.Element;
|
|
352
382
|
|
|
383
|
+
export declare const PasswordValidation: default_2.FC<PasswordValidationProps>;
|
|
384
|
+
|
|
385
|
+
export declare interface PasswordValidationProps {
|
|
386
|
+
fieldName: string;
|
|
387
|
+
validationRules: ValidationRuleProps[];
|
|
388
|
+
}
|
|
389
|
+
|
|
353
390
|
export declare function ProfileAssignedCard({ name }: ProfileAssignedCardProps): default_2.JSX.Element;
|
|
354
391
|
|
|
355
392
|
export declare interface ProfileAssignedCardProps {
|
|
@@ -408,7 +445,6 @@ export declare const Select: (props: SelectPropsBase) => default_2.JSX.Element;
|
|
|
408
445
|
|
|
409
446
|
declare interface SelectPropsBase extends SelectProps {
|
|
410
447
|
name: string;
|
|
411
|
-
rules: Record<string, any>;
|
|
412
448
|
options: {
|
|
413
449
|
value: string;
|
|
414
450
|
label: string;
|
|
@@ -417,8 +453,18 @@ declare interface SelectPropsBase extends SelectProps {
|
|
|
417
453
|
customonchange?: (event: default_2.ChangeEvent<HTMLInputElement | HTMLTextAreaElement> | string | number, field: ControllerRenderProps<FieldValues, string>) => void;
|
|
418
454
|
}
|
|
419
455
|
|
|
456
|
+
export declare const Sidebar: default_2.FC<SidebarProps>;
|
|
457
|
+
|
|
420
458
|
export { SidebarMenuProps }
|
|
421
459
|
|
|
460
|
+
export declare interface SidebarProps {
|
|
461
|
+
activeMenu: string;
|
|
462
|
+
menus: SidebarMenuProps_2[];
|
|
463
|
+
footerDetails: FooterDetailsProps_2;
|
|
464
|
+
popoverContent: default_2.ReactNode;
|
|
465
|
+
onClick: MenuItemType["onClick"];
|
|
466
|
+
}
|
|
467
|
+
|
|
422
468
|
export { Size }
|
|
423
469
|
|
|
424
470
|
export declare const Skeleton: FC<SkeletonProps>;
|
|
@@ -511,6 +557,11 @@ declare interface TooltipProps {
|
|
|
511
557
|
children: JSX_2.Element;
|
|
512
558
|
}
|
|
513
559
|
|
|
560
|
+
export declare interface ValidationRuleProps {
|
|
561
|
+
test: (val: string) => boolean;
|
|
562
|
+
message: string;
|
|
563
|
+
}
|
|
564
|
+
|
|
514
565
|
export declare function VerificationStatus(props: VerificationStatusProps): default_2.JSX.Element;
|
|
515
566
|
|
|
516
567
|
export declare type VerificationStatusProps = {
|