vrfi-design-system 1.0.44 → 1.0.46

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
@@ -8,8 +8,6 @@ import { BaseOptionType } from 'rc-select/lib/Select';
8
8
  import { default as Button } from 'antd/lib/button';
9
9
  import { ButtonType } from '../../enums/buttonType';
10
10
  import { ButtonType as ButtonType_2 } from 'antd/lib/button';
11
- import { CheckboxChangeEvent } from 'antd/es/checkbox';
12
- import { CheckboxGroupProps } from 'antd/es/checkbox';
13
11
  import { CheckboxOptionType } from 'antd/lib/checkbox/Group';
14
12
  import { default as Col } from 'antd/lib/col';
15
13
  import { ColProps } from 'antd/lib/col';
@@ -18,6 +16,7 @@ import { ColumnType } from 'antd/lib/table';
18
16
  import { ComponentProps } from 'react';
19
17
  import { Control } from 'react-hook-form';
20
18
  import { ControllerRenderProps } from 'react-hook-form';
19
+ import { CSSProperties } from 'react';
21
20
  import { default as DatePickerAntd } from 'antd/lib/date-picker';
22
21
  import { DatePickerProps } from 'antd';
23
22
  import { default as default_2 } from 'react';
@@ -35,6 +34,7 @@ import { GenderProfileEnum } from '../../enums/genderProfile.enum';
35
34
  import { GenderProfileEnum as GenderProfileEnum_2 } from '../../../enums/genderProfile.enum';
36
35
  import { HtmlButtonType } from '../../enums/buttonType';
37
36
  import { Icons } from '../../enums/icons.enum';
37
+ import { Icons as Icons_2 } from '../../../enums/icons.enum';
38
38
  import { InputProps } from 'antd/lib';
39
39
  import { InputProps as InputProps_2 } from 'antd';
40
40
  import { InputTypes } from '../../enums/inputType.enum';
@@ -45,7 +45,6 @@ import { JSX as JSX_2 } from 'react';
45
45
  import { Justify } from '../../enums/justify.enum';
46
46
  import { LoaderSizes } from '../../../enums/LoaderSizes';
47
47
  import { MenuItemType } from 'antd/lib/menu/interface';
48
- import { Meta } from '../../../models/meta.model';
49
48
  import { ModalProps as ModalProps_2 } from 'antd/lib/modal';
50
49
  import { MouseEvent as MouseEvent_2 } from 'react';
51
50
  import { NotificationTypes } from '../../enums/notificationTypes';
@@ -85,6 +84,7 @@ import { TableProps as TableProps_2 } from 'rc-table/lib/Table';
85
84
  import { TableProps as TableProps_3 } from 'antd';
86
85
  import { TableType } from '../../enums/tableType.enum';
87
86
  import { TableType as TableType_2 } from '../../../enums/tableType.enum';
87
+ import { TextAreaProps as TextAreaProps_2 } from 'antd/es/input';
88
88
  import { TitleHeaderStatus } from '../../enums/titleHeaderStatus.enum';
89
89
  import { TitleHeaderStatus as TitleHeaderStatus_2 } from '../../../enums/titleHeaderStatus.enum';
90
90
  import { tooltipPosition } from '../../../enums/tooltipPosition';
@@ -161,12 +161,12 @@ export declare interface CardWithIconAndTextProps {
161
161
  export declare const Checkbox: ({ children, group, options, disabled, indeterminate, defaultChecked, onChange, checked, }: CheckboxProps) => default_2.JSX.Element;
162
162
 
163
163
  export declare interface CheckboxProps {
164
- children?: default_2.ReactNode;
164
+ children?: string | number;
165
165
  disabled?: boolean;
166
166
  indeterminate?: boolean;
167
167
  defaultChecked?: boolean;
168
168
  group?: boolean;
169
- onChange: (event: CheckboxChangeEvent | CheckboxGroupProps[]) => void;
169
+ onChange: (checkedValue: (string | number)[]) => void;
170
170
  options?: (CheckboxOptionType | string | number)[];
171
171
  checked?: boolean;
172
172
  }
@@ -400,6 +400,12 @@ export declare interface LoaderProps {
400
400
  tip?: string;
401
401
  }
402
402
 
403
+ declare type Meta = {
404
+ id: number;
405
+ code: string;
406
+ label: string;
407
+ };
408
+
403
409
  export declare const Modal: default_2.FC<ModalProps>;
404
410
 
405
411
  export declare interface ModalProps extends ModalProps_2 {
@@ -453,8 +459,24 @@ export declare interface PasswordValidationProps {
453
459
  validationRules: ValidationRuleProps[];
454
460
  }
455
461
 
462
+ export declare const PathIcon: default_2.MemoExoticComponent<({ count, className }: PathIconProps) => default_2.JSX.Element>;
463
+
464
+ declare interface PathIconProps {
465
+ count?: number;
466
+ className: Icons_2;
467
+ }
468
+
456
469
  export { Placement }
457
470
 
471
+ export declare const PreviewCard: default_2.FC<PreviewCardProps>;
472
+
473
+ declare interface PreviewCardProps {
474
+ fileName: string;
475
+ url?: string;
476
+ showPreviewIcon?: boolean;
477
+ className?: string;
478
+ }
479
+
458
480
  export declare const PreviewDocumentsCard: default_2.FC<PreviewDocumentsCardProps>;
459
481
 
460
482
  export declare interface PreviewDocumentsCardProps {
@@ -588,6 +610,15 @@ export { Switch }
588
610
 
589
611
  export { SwitchProps }
590
612
 
613
+ export declare type tabItems = {
614
+ closeIcon?: ReactNode;
615
+ disabled?: boolean;
616
+ forceRender?: boolean;
617
+ key: string;
618
+ label: ReactNode;
619
+ children: ReactNode;
620
+ };
621
+
591
622
  export declare const Table: <T extends object>(props: TableProps_3<T>) => default_2.JSX.Element;
592
623
 
593
624
  export declare const TableComponent: <T extends object>({ dataSource, columns, pagination, loading, onRow, onChange, loadingCount, size, type, scroll, rowHoverable, rowClassName, noDataComponent, rowHoverAction, ...restProps }: TableComponentProps<T>) => default_2.JSX.Element;
@@ -615,6 +646,36 @@ export { TablePaginationConfig }
615
646
 
616
647
  export { TableType }
617
648
 
649
+ export declare const Tabs: FC<TabsProps>;
650
+
651
+ export declare interface TabsProps {
652
+ activeKey?: string;
653
+ addIcon?: ReactNode;
654
+ centered?: boolean;
655
+ defaultActiveKey?: string;
656
+ hideAdd?: boolean;
657
+ items: tabItems[];
658
+ moreIcon?: ReactNode;
659
+ tabBarGutter?: number;
660
+ tabBarStyle?: CSSProperties;
661
+ tabPosition?: "top" | "bottom" | "right" | "left";
662
+ type?: "line" | "card" | "editable-card";
663
+ onEdit?: () => void;
664
+ onChange?: (activeKey: string) => void;
665
+ }
666
+
667
+ export declare const TextArea: ({ className, label, value, required, ...props }: TextAreaProps) => default_2.JSX.Element;
668
+
669
+ export declare interface TextAreaProps extends Omit<TextAreaProps_2, "value"> {
670
+ label?: string;
671
+ value?: string;
672
+ required?: boolean;
673
+ }
674
+
675
+ export declare const TextAreaWithController: ({ label, type, placeholder, required, ...rest }: TextAreaWithControllerProps) => default_2.JSX.Element;
676
+
677
+ export declare type TextAreaWithControllerProps = CustomInputProps & TextAreaProps_2;
678
+
618
679
  export declare const TitleHeader: (props: TitleHeaderProps) => default_2.JSX.Element;
619
680
 
620
681
  export declare interface TitleHeaderProps {
@@ -668,10 +729,11 @@ export declare interface UserBadgeProps {
668
729
  address: string;
669
730
  inviteLinkIncluded?: boolean;
670
731
  inviteLink?: string;
671
- shareLink?: string;
672
732
  onClose: () => void;
673
733
  visible: boolean;
674
734
  modalWidth: number;
735
+ emailSubject?: string;
736
+ emailBody?: string;
675
737
  }
676
738
 
677
739
  export declare function UserStatus(props: UserStatusProps): default_2.JSX.Element;