vrfi-design-system 1.0.14 → 1.0.16

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 CHANGED
@@ -11,7 +11,7 @@ import { default as Col } from 'antd/lib/col';
11
11
  import { ColProps } from 'antd/lib/col';
12
12
  import { ComponentProps } from 'react';
13
13
  import { ControllerRenderProps } from 'react-hook-form';
14
- import { DatePickerProps as DatePickerProps_2 } from 'antd';
14
+ import { DatePickerProps } from 'antd';
15
15
  import { default as default_2 } from 'react';
16
16
  import { default as default_3 } from 'dayjs';
17
17
  import { DefaultOptionType } from 'rc-select/lib/Select';
@@ -20,35 +20,49 @@ import { FC } from 'react';
20
20
  import { FieldValues } from 'react-hook-form';
21
21
  import { FilterValue } from 'antd/lib/table/interface';
22
22
  import { FooterDetailsProps } from '../types/footerDetails';
23
- import { FooterDetailsProps as FooterDetailsProps_2 } from '../../types/footerDetails';
24
23
  import { HtmlButtonType } from '../../enums/buttonType';
24
+ import { Icons } from '../../enums/icons.enum';
25
25
  import { InputProps } from 'antd/lib';
26
+ import { InputProps as InputProps_2 } from 'antd';
26
27
  import { JSX as JSX_2 } from 'react';
27
28
  import { LoaderSizes } from '../../../enums/LoaderSizes';
28
- import { MenuItemType } from 'antd/lib/menu/interface';
29
29
  import { ModalProps as ModalProps_2 } from 'antd/lib/modal';
30
30
  import { MouseEvent as MouseEvent_2 } from 'react';
31
+ import { PasswordProps } from 'antd/es/input';
32
+ import { PropsWithChildren } from 'react';
31
33
  import { Radio as Radio_2 } from 'antd';
34
+ import { RadioProps as RadioProps_2 } from 'antd';
32
35
  import { ReactElement } from 'react';
33
36
  import { ReactNode } from 'react';
34
37
  import { default as Row } from 'antd/lib/row';
35
38
  import { RowProps } from 'antd/lib/row';
36
39
  import { SelectProps } from 'antd';
37
40
  import { SidebarMenuProps } from '../types/SidebarRouteProps';
38
- import { SidebarMenuProps as SidebarMenuProps_2 } from '../..//types/SidebarRouteProps';
39
41
  import { SizeType } from 'antd/lib/config-provider/SizeContext';
40
42
  import { SkeletonProps } from 'antd';
41
43
  import { SorterResult } from 'antd/lib/table/interface';
44
+ import { default as Space } from 'antd/lib/space';
42
45
  import { StepProps } from 'antd';
43
46
  import { StepsProps } from 'antd';
47
+ import { default as Switch } from 'antd/lib/switch';
48
+ import { SwitchProps } from 'antd/lib/switch';
44
49
  import { TableCurrentDataSource } from 'antd/lib/table/interface';
45
50
  import { TablePaginationConfig } from 'antd';
46
51
  import { TableProps } from 'antd/lib/table';
47
52
  import { TableProps as TableProps_2 } from 'rc-table/lib/Table';
48
53
  import { TableProps as TableProps_3 } from 'antd';
54
+ import { TitleHeaderStatus } from '../../enums/titleHeaderStatus.enum';
49
55
  import { tooltipPosition } from '../../../enums/tooltipPosition';
50
56
  import { UploadFile } from 'antd/lib/upload/interface';
51
57
 
58
+ export declare interface AssignedEmployerProps {
59
+ data?: EmployerDataType[];
60
+ noDataHeading?: string;
61
+ noDataSubheading?: string;
62
+ noDataIcon: ReactElement;
63
+ profileAssignedHeading: string;
64
+ }
65
+
52
66
  export { AuthBanner }
53
67
 
54
68
  export { AuthForm }
@@ -85,15 +99,24 @@ export declare interface ButtonProps {
85
99
  moduleClassName?: string;
86
100
  icon?: any;
87
101
  disabled?: boolean;
88
- size?: "small" | "medium";
102
+ size?: SizeType;
89
103
  loading?: boolean;
90
104
  name?: string;
91
105
  target?: string;
92
106
  href?: string;
107
+ block?: boolean;
93
108
  }
94
109
 
95
110
  export { ButtonType }
96
111
 
112
+ export declare function CardWithIconAndText({ icon, heading, subHeading }: CardWithIconAndTextProps): default_2.JSX.Element;
113
+
114
+ export declare interface CardWithIconAndTextProps {
115
+ icon: ReactNode;
116
+ heading: string;
117
+ subHeading: string;
118
+ }
119
+
97
120
  export declare const Checkbox: ({ children, group, options, disabled, indeterminate, defaultChecked, onChange, checked, }: CheckboxProps) => default_2.JSX.Element;
98
121
 
99
122
  export declare interface CheckboxProps {
@@ -129,14 +152,11 @@ export declare interface CustomInputProps {
129
152
  customonchange?: (event: default_2.ChangeEvent<HTMLInputElement | HTMLTextAreaElement> | default_3.Dayjs | null, field: ControllerRenderProps<FieldValues, string>) => void;
130
153
  }
131
154
 
132
- export declare const DatePickerField: {
133
- ({ title, ...props }: DatePickerProps & DatePickerProps_2): default_2.JSX.Element;
134
- Formik: (props: DatePickerProps & DatePickerProps_2) => default_2.JSX.Element;
135
- };
155
+ export declare const DatePicker: (props: CustomInputProps & DatePickerProps) => default_2.JSX.Element;
136
156
 
137
- export declare interface DatePickerProps {
157
+ declare interface DocumentCardProps {
138
158
  name: string;
139
- title?: string;
159
+ onDownload?: () => void;
140
160
  }
141
161
 
142
162
  export declare function DocumentStatus(props: DocumentStatusTypes): default_2.JSX.Element;
@@ -175,11 +195,16 @@ export declare interface DropdownProps<ValueType, OptionType extends BaseOptionT
175
195
  title?: string;
176
196
  }
177
197
 
178
- declare const Error_2: FC<ErrorMessageProps>;
198
+ declare type EmployerDataType = {
199
+ name: string;
200
+ startDate: string;
201
+ };
202
+
203
+ declare const Error_2: FC<ErrorProps>;
179
204
  export { Error_2 as Error }
180
205
 
181
- export declare interface ErrorMessageProps {
182
- message: string;
206
+ declare interface ErrorProps {
207
+ fieldName: string;
183
208
  }
184
209
 
185
210
  export declare const FileUpload: ({ children, actionURL, dragdrop, uploadIcon, uploadHint, fileTypes, multiple, maxCount, handleChange, supportedFileType }: FileUploadProps) => default_2.JSX.Element;
@@ -207,18 +232,34 @@ export declare interface FloatingLabelProps {
207
232
 
208
233
  export { FooterDetailsProps }
209
234
 
235
+ export declare function Form({ onSubmit, initialValues, children }: PropsWithChildren<FormProps>): default_2.JSX.Element;
236
+
210
237
  declare interface FormDropdown extends Omit<ComponentProps<typeof Dropdown>, "onChange"> {
211
- control: any;
212
238
  rules: any;
213
239
  name: string;
214
- hasError: boolean;
215
240
  type: string;
216
- error: string;
217
- customOnChange: (event: default_2.ChangeEvent<HTMLInputElement>, field: any) => void;
241
+ customonchange?: (event: default_2.ChangeEvent<HTMLInputElement> | string | number | unknown, field: ControllerRenderProps<FieldValues, string>) => void;
242
+ }
243
+
244
+ declare interface FormProps {
245
+ onSubmit: (data: FieldValues) => void;
246
+ initialValues: {
247
+ [key: string]: string | number;
248
+ };
249
+ }
250
+
251
+ declare enum GenderProfileEnum{
252
+ MALE='Male',
253
+ FEMALE='Female',
254
+ PREFER_NOT_TO_SAY='Prefer not to say',
255
+ OTHER='Other',
256
+
218
257
  }
219
258
 
220
259
  export { HtmlButtonType }
221
260
 
261
+ export { Icons }
262
+
222
263
  export declare interface INotification {
223
264
  message: string;
224
265
  description: string;
@@ -227,6 +268,25 @@ export declare interface INotification {
227
268
 
228
269
  export declare const InputField: ({ label, type, placeholder, ...rest }: CustomInputProps & InputProps) => default_2.JSX.Element;
229
270
 
271
+ export declare const InputWithCountry: ({ label, type, ...rest }: CustomInputProps & InputProps_2) => default_2.JSX.Element;
272
+
273
+ declare enum JobTypeEnum{
274
+ PART_TIME='Part time',
275
+ FULL_TIME='Full time',
276
+
277
+ }
278
+
279
+ export declare const ListingTableHeader: (props: ListingTableHeaderProps) => default_2.JSX.Element;
280
+
281
+ export declare interface ListingTableHeaderProps {
282
+ onSearch?: (event: default_2.ChangeEvent<HTMLInputElement>) => void;
283
+ onFilter?: () => void;
284
+ onClear?: () => void;
285
+ searchPlaceholder?: string;
286
+ searchValue?: string;
287
+ actionButtons?: ReactNode;
288
+ }
289
+
230
290
  export declare const Loader: default_2.FC<LoaderProps>;
231
291
 
232
292
  export declare interface LoaderProps {
@@ -264,9 +324,39 @@ export declare interface OfflineProps {
264
324
  isOffline: boolean;
265
325
  }
266
326
 
267
- export declare const PasswordValidation: default_2.FC;
327
+ export declare const Password: ({ label, type, placeholder, ...rest }: CustomInputProps & PasswordProps) => default_2.JSX.Element;
328
+
329
+ export declare function ProfileAssignedCard({ name }: ProfileAssignedCardProps): default_2.JSX.Element;
330
+
331
+ export declare interface ProfileAssignedCardProps {
332
+ name: string;
333
+ }
334
+
335
+ export declare const ProfileAssignedEmployer: ({ data, profileAssignedHeading, noDataHeading, noDataSubheading, noDataIcon }: AssignedEmployerProps) => default_2.JSX.Element;
336
+
337
+ export declare interface ProfileAttachmentProps {
338
+ data?: DocumentCardProps[];
339
+ }
340
+
341
+ export declare const ProfileAttachments: ({ data }: ProfileAttachmentProps) => default_2.JSX.Element;
268
342
 
269
- export declare const Radio: ({ label, ...props }: RadioProps) => default_2.JSX.Element;
343
+ export declare const ProfileDetail: (props: ProfileDetailProps) => default_2.JSX.Element;
344
+
345
+ export declare interface ProfileDetailProps {
346
+ name: string;
347
+ phoneNumber: string;
348
+ email: string;
349
+ address: string;
350
+ gender: GenderProfileEnum;
351
+ jobType?: JobTypeEnum;
352
+ jobTitle?: string;
353
+ skills?: string[];
354
+ yearsOfExperience?: number | string;
355
+ userId: string;
356
+ imageUrl?: string;
357
+ }
358
+
359
+ export declare const Radio: (props: CustomInputProps & RadioProps_2) => default_2.JSX.Element;
270
360
 
271
361
  declare interface RadioButtonProps {
272
362
  label?: string;
@@ -280,37 +370,31 @@ export { RowProps }
280
370
 
281
371
  export declare interface SearchComponentProps {
282
372
  onChange: (event: default_2.ChangeEvent<HTMLInputElement>) => void;
283
- value: string | number;
284
- placeholder: string;
285
- onClear: () => void;
373
+ value?: string | number;
374
+ placeholder?: string;
375
+ onClear?: () => void;
286
376
  }
287
377
 
288
378
  export declare const SearchField: FC<SearchComponentProps>;
289
379
 
290
- export declare const Sidebar: default_2.FC<SidebarProps>;
291
-
292
- export { SidebarMenuProps }
293
-
294
- declare interface SidebarProps {
295
- activeMenu: string;
296
- menus: SidebarMenuProps_2[];
297
- footerDetails: FooterDetailsProps_2;
298
- popoverContent: default_2.ReactNode;
299
- onClick: MenuItemType["onClick"];
300
- }
301
-
302
- export declare const Skeleton: FC<SkeletonProps>;
380
+ export declare const Select: (props: SelectPropsBase) => default_2.JSX.Element;
303
381
 
304
- declare interface Stats {
382
+ declare interface SelectPropsBase extends SelectProps {
383
+ name: string;
384
+ rules: Record<string, any>;
385
+ options: {
386
+ value: string;
387
+ label: string;
388
+ }[];
305
389
  label: string;
306
- value: string | number;
390
+ customonchange?: (event: default_2.ChangeEvent<HTMLInputElement | HTMLTextAreaElement> | string | number, field: ControllerRenderProps<FieldValues, string>) => void;
307
391
  }
308
392
 
309
- export declare const StatsBanner: default_2.FC<StatsBannerProps>;
393
+ export { SidebarMenuProps }
310
394
 
311
- declare interface StatsBannerProps {
312
- stats: Stats[];
313
- }
395
+ export declare const Skeleton: FC<SkeletonProps>;
396
+
397
+ export { Space }
314
398
 
315
399
  declare interface StepItem extends StepProps {
316
400
  component?: default_2.ReactElement;
@@ -324,6 +408,12 @@ export declare interface StepperProps extends StepsProps {
324
408
  destroyOnChange?: boolean;
325
409
  }
326
410
 
411
+ export declare const SummaryCard: (props: PropsWithChildren) => default_2.JSX.Element;
412
+
413
+ export { Switch }
414
+
415
+ export { SwitchProps }
416
+
327
417
  export declare const Table: <T extends object>(props: TableProps_3<T>) => default_2.JSX.Element;
328
418
 
329
419
  export declare const TableComponent: FC<TableComponentProps>;
@@ -350,11 +440,19 @@ declare const enum TableType {
350
440
 
351
441
  export declare const TitleHeader: (props: TitleHeaderProps) => default_2.JSX.Element;
352
442
 
353
- declare interface TitleHeaderProps {
443
+ export declare interface TitleHeaderProps {
354
444
  heading: string;
355
445
  subHeading?: string;
356
446
  icon?: JSX.Element;
357
447
  description?: string;
448
+ active?: TitleHeaderStatus_2;
449
+ }
450
+
451
+ export { TitleHeaderStatus }
452
+
453
+ declare enum TitleHeaderStatus_2{
454
+ ACTIVE='active',
455
+ INACTIVE='inactive',
358
456
  }
359
457
 
360
458
  export declare const Tooltip: FC<TooltipProps>;