vrfi-design-system 1.0.12 → 1.0.14

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
@@ -2,10 +2,13 @@ import { default as AuthBanner } from '../../views/Auth/AuthBanner';
2
2
  import { default as AuthForm } from '../../views/Auth/AuthForm';
3
3
  import { AuthFormProps } from './../../views/Auth/AuthForm/index';
4
4
  import { BaseOptionType } from 'rc-select/lib/Select';
5
- import { ButtonType } from 'antd/lib/button';
5
+ import { ButtonType } from '../../enums/buttonType';
6
+ import { ButtonType as ButtonType_2 } from 'antd/lib/button';
6
7
  import { CheckboxChangeEvent } from 'antd/es/checkbox';
7
8
  import { CheckboxGroupProps } from 'antd/es/checkbox';
8
9
  import { CheckboxOptionType } from 'antd/lib/checkbox/Group';
10
+ import { default as Col } from 'antd/lib/col';
11
+ import { ColProps } from 'antd/lib/col';
9
12
  import { ComponentProps } from 'react';
10
13
  import { ControllerRenderProps } from 'react-hook-form';
11
14
  import { DatePickerProps as DatePickerProps_2 } from 'antd';
@@ -16,16 +19,23 @@ import { DrawerProps as DrawerProps_2 } from 'antd';
16
19
  import { FC } from 'react';
17
20
  import { FieldValues } from 'react-hook-form';
18
21
  import { FilterValue } from 'antd/lib/table/interface';
22
+ import { FooterDetailsProps } from '../types/footerDetails';
23
+ import { FooterDetailsProps as FooterDetailsProps_2 } from '../../types/footerDetails';
24
+ import { HtmlButtonType } from '../../enums/buttonType';
19
25
  import { InputProps } from 'antd/lib';
20
26
  import { JSX as JSX_2 } from 'react';
21
27
  import { LoaderSizes } from '../../../enums/LoaderSizes';
28
+ import { MenuItemType } from 'antd/lib/menu/interface';
22
29
  import { ModalProps as ModalProps_2 } from 'antd/lib/modal';
23
30
  import { MouseEvent as MouseEvent_2 } from 'react';
24
- import { PropsWithChildren } from 'react';
25
31
  import { Radio as Radio_2 } from 'antd';
26
32
  import { ReactElement } from 'react';
27
33
  import { ReactNode } from 'react';
34
+ import { default as Row } from 'antd/lib/row';
35
+ import { RowProps } from 'antd/lib/row';
28
36
  import { SelectProps } from 'antd';
37
+ import { SidebarMenuProps } from '../types/SidebarRouteProps';
38
+ import { SidebarMenuProps as SidebarMenuProps_2 } from '../..//types/SidebarRouteProps';
29
39
  import { SizeType } from 'antd/lib/config-provider/SizeContext';
30
40
  import { SkeletonProps } from 'antd';
31
41
  import { SorterResult } from 'antd/lib/table/interface';
@@ -39,14 +49,6 @@ import { TableProps as TableProps_3 } from 'antd';
39
49
  import { tooltipPosition } from '../../../enums/tooltipPosition';
40
50
  import { UploadFile } from 'antd/lib/upload/interface';
41
51
 
42
- export declare interface AssignedEmployerProps {
43
- data?: EmployerDataType[];
44
- noDataHeading?: string;
45
- noDataSubheading?: string;
46
- noDataIcon: ReactElement;
47
- profileAssignedHeading: string;
48
- }
49
-
50
52
  export { AuthBanner }
51
53
 
52
54
  export { AuthForm }
@@ -78,7 +80,7 @@ export declare interface ButtonProps {
78
80
  clickHandler?: (event: MouseEvent_2) => void;
79
81
  children: ReactNode;
80
82
  htmlType?: "reset" | "submit" | "button";
81
- type?: ButtonType;
83
+ type?: ButtonType_2;
82
84
  className?: string;
83
85
  moduleClassName?: string;
84
86
  icon?: any;
@@ -90,13 +92,7 @@ export declare interface ButtonProps {
90
92
  href?: string;
91
93
  }
92
94
 
93
- export declare function CardWithIconAndText({ icon, heading, subHeading }: CardWithIconAndTextProps): default_2.JSX.Element;
94
-
95
- export declare interface CardWithIconAndTextProps {
96
- icon: ReactNode;
97
- heading: string;
98
- subHeading: string;
99
- }
95
+ export { ButtonType }
100
96
 
101
97
  export declare const Checkbox: ({ children, group, options, disabled, indeterminate, defaultChecked, onChange, checked, }: CheckboxProps) => default_2.JSX.Element;
102
98
 
@@ -111,6 +107,10 @@ export declare interface CheckboxProps {
111
107
  checked?: boolean;
112
108
  }
113
109
 
110
+ export { Col }
111
+
112
+ export { ColProps }
113
+
114
114
  export declare const CustomAvatar: ({ name, size, imageUrl, isExtra }: CustomAvatarProps) => default_2.JSX.Element;
115
115
 
116
116
  export declare type CustomAvatarProps = {
@@ -139,11 +139,6 @@ export declare interface DatePickerProps {
139
139
  title?: string;
140
140
  }
141
141
 
142
- declare interface DocumentCardProps {
143
- name: string;
144
- onDownload?: () => void;
145
- }
146
-
147
142
  export declare function DocumentStatus(props: DocumentStatusTypes): default_2.JSX.Element;
148
143
 
149
144
  declare enum DocumentStatusEnum {
@@ -180,11 +175,6 @@ export declare interface DropdownProps<ValueType, OptionType extends BaseOptionT
180
175
  title?: string;
181
176
  }
182
177
 
183
- declare type EmployerDataType = {
184
- name: string;
185
- startDate: string;
186
- };
187
-
188
178
  declare const Error_2: FC<ErrorMessageProps>;
189
179
  export { Error_2 as Error }
190
180
 
@@ -215,6 +205,8 @@ export declare interface FloatingLabelProps {
215
205
  value: string;
216
206
  }
217
207
 
208
+ export { FooterDetailsProps }
209
+
218
210
  declare interface FormDropdown extends Omit<ComponentProps<typeof Dropdown>, "onChange"> {
219
211
  control: any;
220
212
  rules: any;
@@ -225,13 +217,7 @@ declare interface FormDropdown extends Omit<ComponentProps<typeof Dropdown>, "on
225
217
  customOnChange: (event: default_2.ChangeEvent<HTMLInputElement>, field: any) => void;
226
218
  }
227
219
 
228
- declare enum GenderProfileEnum{
229
- MALE='Male',
230
- FEMALE='Female',
231
- PREFER_NOT_TO_SAY='Prefer not to say',
232
- OTHER='Other',
233
-
234
- }
220
+ export { HtmlButtonType }
235
221
 
236
222
  export declare interface INotification {
237
223
  message: string;
@@ -241,25 +227,6 @@ export declare interface INotification {
241
227
 
242
228
  export declare const InputField: ({ label, type, placeholder, ...rest }: CustomInputProps & InputProps) => default_2.JSX.Element;
243
229
 
244
- declare enum JobTypeEnum{
245
- PART_TIME='Part time',
246
- FULL_TIME='Full time',
247
-
248
- }
249
-
250
- export declare const ListingTableHeader: (props: ListingTableHeaderProps) => default_2.JSX.Element;
251
-
252
- export declare interface ListingTableHeaderProps {
253
- onSearch: (event: default_2.ChangeEvent<HTMLInputElement>) => void;
254
- onFilter: () => void;
255
- showButtons: boolean;
256
- onClear: () => void;
257
- searchPlaceholder: string;
258
- buttonText: string;
259
- searchValue: string;
260
- actionButtons: ReactNode;
261
- }
262
-
263
230
  export declare const Loader: default_2.FC<LoaderProps>;
264
231
 
265
232
  export declare interface LoaderProps {
@@ -297,35 +264,7 @@ export declare interface OfflineProps {
297
264
  isOffline: boolean;
298
265
  }
299
266
 
300
- export declare function ProfileAssignedCard({ name }: ProfileAssignedCardProps): default_2.JSX.Element;
301
-
302
- export declare interface ProfileAssignedCardProps {
303
- name: string;
304
- }
305
-
306
- export declare const ProfileAssignedEmployer: ({ data, profileAssignedHeading, noDataHeading, noDataSubheading, noDataIcon }: AssignedEmployerProps) => default_2.JSX.Element;
307
-
308
- export declare interface ProfileAttachmentProps {
309
- data?: DocumentCardProps[];
310
- }
311
-
312
- export declare const ProfileAttachments: ({ data }: ProfileAttachmentProps) => default_2.JSX.Element;
313
-
314
- export declare const ProfileDetail: (props: ProfileDetailProps) => default_2.JSX.Element;
315
-
316
- export declare interface ProfileDetailProps {
317
- name: string;
318
- phoneNumber: string;
319
- email: string;
320
- address: string;
321
- gender: GenderProfileEnum;
322
- jobType?: JobTypeEnum;
323
- jobTitle?: string;
324
- skills?: string[];
325
- yearsOfExperience?: number | string;
326
- userId: string;
327
- imageUrl?: string;
328
- }
267
+ export declare const PasswordValidation: default_2.FC;
329
268
 
330
269
  export declare const Radio: ({ label, ...props }: RadioProps) => default_2.JSX.Element;
331
270
 
@@ -335,6 +274,10 @@ declare interface RadioButtonProps {
335
274
 
336
275
  export declare type RadioProps = RadioButtonProps & ComponentProps<typeof Radio_2.Group>;
337
276
 
277
+ export { Row }
278
+
279
+ export { RowProps }
280
+
338
281
  export declare interface SearchComponentProps {
339
282
  onChange: (event: default_2.ChangeEvent<HTMLInputElement>) => void;
340
283
  value: string | number;
@@ -344,8 +287,31 @@ export declare interface SearchComponentProps {
344
287
 
345
288
  export declare const SearchField: FC<SearchComponentProps>;
346
289
 
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
+
347
302
  export declare const Skeleton: FC<SkeletonProps>;
348
303
 
304
+ declare interface Stats {
305
+ label: string;
306
+ value: string | number;
307
+ }
308
+
309
+ export declare const StatsBanner: default_2.FC<StatsBannerProps>;
310
+
311
+ declare interface StatsBannerProps {
312
+ stats: Stats[];
313
+ }
314
+
349
315
  declare interface StepItem extends StepProps {
350
316
  component?: default_2.ReactElement;
351
317
  }
@@ -358,8 +324,6 @@ export declare interface StepperProps extends StepsProps {
358
324
  destroyOnChange?: boolean;
359
325
  }
360
326
 
361
- export declare const SummaryCard: (props: PropsWithChildren) => default_2.JSX.Element;
362
-
363
327
  export declare const Table: <T extends object>(props: TableProps_3<T>) => default_2.JSX.Element;
364
328
 
365
329
  export declare const TableComponent: FC<TableComponentProps>;
@@ -386,7 +350,7 @@ declare const enum TableType {
386
350
 
387
351
  export declare const TitleHeader: (props: TitleHeaderProps) => default_2.JSX.Element;
388
352
 
389
- export declare interface TitleHeaderProps {
353
+ declare interface TitleHeaderProps {
390
354
  heading: string;
391
355
  subHeading?: string;
392
356
  icon?: JSX.Element;