vrfi-design-system 1.0.67 → 1.0.69

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
@@ -5,8 +5,9 @@ import { default as AuthForm } from '../../views/Auth/AuthForm';
5
5
  import { AuthFormProps } from './../../views/Auth/AuthForm/index';
6
6
  import { AvatarSize } from '../../enums/avatarSize.enum';
7
7
  import { AvatarSize as AvatarSize_2 } from '../../../enums/avatarSize.enum';
8
+ import { BadgeType } from '../../enums/badgeType.enum';
9
+ import { BadgeType as BadgeType_2 } from '../../../enums/badgeType.enum';
8
10
  import { BaseOptionType } from 'rc-select/lib/Select';
9
- import { default as Button } from 'antd/lib/button';
10
11
  import { ButtonType } from '../../enums/buttonType';
11
12
  import { ButtonType as ButtonType_2 } from 'antd/lib/button';
12
13
  import { CheckboxChangeEvent } from 'antd/es/checkbox';
@@ -28,6 +29,7 @@ import { default as default_3 } from 'dayjs';
28
29
  import { DefaultOptionType } from 'rc-select/lib/Select';
29
30
  import { DocumentStatusEnum } from '../../enums/documentStatus.enum';
30
31
  import { DocumentStatusEnum as DocumentStatusEnum_2 } from '../../../enums/documentStatus.enum';
32
+ import { DOM_ELEMENT_ROLE } from './../../enums/domElementRole.enum';
31
33
  import { DrawerProps as DrawerProps_2 } from 'antd';
32
34
  import { FC } from 'react';
33
35
  import { FieldValues } from 'react-hook-form';
@@ -38,6 +40,7 @@ import { GenderProfileEnum } from '../../enums/genderProfile.enum';
38
40
  import { GenderProfileEnum as GenderProfileEnum_2 } from '../../../enums/genderProfile.enum';
39
41
  import { HTMLAttributes } from 'react';
40
42
  import { HtmlButtonType } from '../../enums/buttonType';
43
+ import { HtmlButtonType as HtmlButtonType_2 } from '../../../enums/buttonType';
41
44
  import { Icons } from '../../enums/icons.enum';
42
45
  import { Icons as Icons_2 } from '../../../enums/icons.enum';
43
46
  import { InputProps } from 'antd/lib';
@@ -51,7 +54,7 @@ import { Justify } from '../../enums/justify.enum';
51
54
  import { LabelType } from './../../enums/labelType.enum';
52
55
  import { LabelType as LabelType_2 } from '../../../enums/labelType.enum';
53
56
  import { LoaderSizes } from '../../../enums/LoaderSizes';
54
- import { MenuItemType } from 'antd/lib/menu/interface';
57
+ import { MenuProps } from 'antd/lib';
55
58
  import { MobileInputValue } from '../types/mobileInputValue.type';
56
59
  import { MobileInputValue as MobileInputValue_2 } from '../../../types/mobileInputValue.type';
57
60
  import { ModalProps as ModalProps_2 } from 'antd/lib/modal';
@@ -139,6 +142,7 @@ export declare interface AvatarCardProps {
139
142
  name: string;
140
143
  backgroundUrl?: string;
141
144
  email: string;
145
+ textMaxWidth?: number;
142
146
  }
143
147
 
144
148
  export declare interface AvatarProps {
@@ -151,12 +155,22 @@ export declare function AvatarWithDetailsCard(props: AvatarCardProps): default_2
151
155
 
152
156
  export declare const AvatarWithInitials: ({ names }: AvatarProps) => default_2.JSX.Element;
153
157
 
154
- export { Button }
158
+ export declare const Badge: FC<BadgeProps>;
159
+
160
+ export declare interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
161
+ className?: string;
162
+ text: string;
163
+ type?: BadgeType_2;
164
+ }
165
+
166
+ export { BadgeType }
167
+
168
+ export declare const Button: FC<ButtonProps>;
155
169
 
156
170
  export declare interface ButtonProps {
157
- clickHandler?: (event: MouseEvent_2) => void;
171
+ onClick?: (event: MouseEvent_2) => void;
158
172
  children: ReactNode;
159
- htmlType?: "reset" | "submit" | "button";
173
+ htmlType?: HtmlButtonType_2;
160
174
  type?: ButtonType_2;
161
175
  className?: string;
162
176
  moduleClassName?: string;
@@ -168,6 +182,7 @@ export declare interface ButtonProps {
168
182
  target?: string;
169
183
  href?: string;
170
184
  block?: boolean;
185
+ outlinetype?: OutlineType;
171
186
  }
172
187
 
173
188
  export { ButtonType }
@@ -180,7 +195,7 @@ export declare interface CardWithIconAndTextProps {
180
195
  subHeading: string;
181
196
  }
182
197
 
183
- export declare const Checkbox: ({ children, group, options, disabled, indeterminate, defaultChecked, onChange, checked, }: CheckboxProps) => default_2.JSX.Element;
198
+ export declare const Checkbox: ({ children, group, options, disabled, indeterminate, defaultChecked, onChange, label, isBlock, checked, maxRows }: CheckboxProps) => default_2.JSX.Element;
184
199
 
185
200
  export declare interface CheckboxProps {
186
201
  children?: string | number;
@@ -191,6 +206,9 @@ export declare interface CheckboxProps {
191
206
  onChange: (checkedValue: (string | number)[]) => void;
192
207
  options?: (CheckboxOptionType | string | number)[];
193
208
  checked?: boolean;
209
+ label?: string;
210
+ isBlock?: boolean;
211
+ maxRows?: number;
194
212
  }
195
213
 
196
214
  export declare const CheckBoxWithFormWrapper: ({ name, onCheckboxChange, group, children, ...props }: CheckBoxWithFormWrapperProps) => default_2.JSX.Element;
@@ -263,7 +281,7 @@ export declare interface CustomTooltipProps extends Omit<TooltipProps, 'title'>
263
281
  title: ReactNode;
264
282
  }
265
283
 
266
- declare interface CustomUploadProps extends Omit<UploadProps, 'onChange'> {
284
+ declare interface CustomUploadProps extends Omit<UploadProps, "onChange"> {
267
285
  value?: UploadFile_2[];
268
286
  onChange: (fileList: UploadFile_2[]) => void | boolean;
269
287
  uploadIcon?: string;
@@ -278,6 +296,7 @@ declare interface CustomUploadProps extends Omit<UploadProps, 'onChange'> {
278
296
  className?: string;
279
297
  required?: boolean;
280
298
  loading?: boolean;
299
+ fileNamePrefix?: string;
281
300
  }
282
301
 
283
302
  export declare const DatePicker: default_2.FC<DatePickerComponentProps>;
@@ -310,6 +329,8 @@ export declare type DocumentStatusTypes = {
310
329
  documentType: DocumentStatusEnum_2;
311
330
  };
312
331
 
332
+ export { DOM_ELEMENT_ROLE }
333
+
313
334
  export declare const Drawer: FC<DrawerProps>;
314
335
 
315
336
  export declare interface DrawerProps extends DrawerProps_2 {
@@ -323,7 +344,8 @@ export declare interface DrawerProps extends DrawerProps_2 {
323
344
  size?: DrawerProps_2["size"];
324
345
  zIndex?: number;
325
346
  children: JSX_2.Element;
326
- placement?: 'top' | 'bottom' | 'left' | 'right';
347
+ placement?: "top" | "bottom" | "left" | "right";
348
+ subHeading?: string;
327
349
  }
328
350
 
329
351
  declare const Dropdown: <ValueType, OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType>({ title, ...props }: DropdownProps<ValueType, OptionType>) => default_2.JSX.Element;
@@ -335,6 +357,14 @@ export declare interface DropdownProps<ValueType, OptionType extends BaseOptionT
335
357
  title?: string;
336
358
  }
337
359
 
360
+ export declare const EllipsisWithTooltip: default_2.FC<EllipsisWithTooltipProps>;
361
+
362
+ export declare interface EllipsisWithTooltipProps {
363
+ text: string;
364
+ maxWidth?: number;
365
+ textClassName?: string;
366
+ }
367
+
338
368
  declare type EmployerDataType = {
339
369
  name: string;
340
370
  startDate: string;
@@ -437,7 +467,7 @@ export declare interface ListingTableHeaderProps {
437
467
  actionButtons?: ReactNode;
438
468
  }
439
469
 
440
- export declare const ListItem: ({ text, iconName, ...props }: ListItemProps) => default_2.JSX.Element;
470
+ export declare const ListItem: ({ text, iconName, className, ...props }: ListItemProps) => default_2.JSX.Element;
441
471
 
442
472
  declare interface ListItemProps extends HTMLAttributes<HTMLSpanElement> {
443
473
  text: string;
@@ -463,7 +493,6 @@ export declare interface ModalProps extends ModalProps_2 {
463
493
  visible: boolean;
464
494
  width?: number;
465
495
  title?: string;
466
- footer?: JSX_2.Element[];
467
496
  confirmLoading?: boolean;
468
497
  modalTitleIcon?: string;
469
498
  modalType: ModalTypeEnum;
@@ -506,6 +535,8 @@ export declare const Offline: ({ children, }: PropsWithChildren<OfflineProps>) =
506
535
  declare interface OfflineProps {
507
536
  }
508
537
 
538
+ declare type OutlineType = "primary" | "danger" | "success";
539
+
509
540
  declare const PasswordField: ({ label, placeholder, required, ...rest }: CustomInputProps & PasswordProps) => default_2.JSX.Element;
510
541
  export { PasswordField as Password }
511
542
  export { PasswordField }
@@ -632,7 +663,7 @@ export declare interface SidebarProps {
632
663
  menus: SidebarMenuProps_2[];
633
664
  footerDetails: FooterDetailsProps_2;
634
665
  popoverContent: default_2.ReactNode;
635
- onClick: MenuItemType["onClick"];
666
+ onClick: MenuProps["onClick"];
636
667
  }
637
668
 
638
669
  export { Size }
@@ -746,7 +777,7 @@ export declare const TitleHeader: (props: TitleHeaderProps) => default_2.JSX.Ele
746
777
  export declare interface TitleHeaderProps {
747
778
  heading: string;
748
779
  subHeading?: string;
749
- icon?: JSX.Element;
780
+ icon?: default_2.JSX.Element;
750
781
  description?: string;
751
782
  active?: TitleHeaderStatus_2;
752
783
  prefix?: ReactNode;