vrfi-design-system 1.0.44 → 1.0.45
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 +45 -5
- package/dist/main.es.js +20171 -18363
- package/dist/main.umd.js +162 -160
- package/dist/style.css +1 -1
- package/package.json +1 -1
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';
|
|
@@ -45,7 +44,6 @@ import { JSX as JSX_2 } from 'react';
|
|
|
45
44
|
import { Justify } from '../../enums/justify.enum';
|
|
46
45
|
import { LoaderSizes } from '../../../enums/LoaderSizes';
|
|
47
46
|
import { MenuItemType } from 'antd/lib/menu/interface';
|
|
48
|
-
import { Meta } from '../../../models/meta.model';
|
|
49
47
|
import { ModalProps as ModalProps_2 } from 'antd/lib/modal';
|
|
50
48
|
import { MouseEvent as MouseEvent_2 } from 'react';
|
|
51
49
|
import { NotificationTypes } from '../../enums/notificationTypes';
|
|
@@ -161,12 +159,12 @@ export declare interface CardWithIconAndTextProps {
|
|
|
161
159
|
export declare const Checkbox: ({ children, group, options, disabled, indeterminate, defaultChecked, onChange, checked, }: CheckboxProps) => default_2.JSX.Element;
|
|
162
160
|
|
|
163
161
|
export declare interface CheckboxProps {
|
|
164
|
-
children?:
|
|
162
|
+
children?: string | number;
|
|
165
163
|
disabled?: boolean;
|
|
166
164
|
indeterminate?: boolean;
|
|
167
165
|
defaultChecked?: boolean;
|
|
168
166
|
group?: boolean;
|
|
169
|
-
onChange: (
|
|
167
|
+
onChange: (checkedValue: (string | number)[]) => void;
|
|
170
168
|
options?: (CheckboxOptionType | string | number)[];
|
|
171
169
|
checked?: boolean;
|
|
172
170
|
}
|
|
@@ -400,6 +398,12 @@ export declare interface LoaderProps {
|
|
|
400
398
|
tip?: string;
|
|
401
399
|
}
|
|
402
400
|
|
|
401
|
+
declare type Meta = {
|
|
402
|
+
id: number;
|
|
403
|
+
code: string;
|
|
404
|
+
label: string;
|
|
405
|
+
};
|
|
406
|
+
|
|
403
407
|
export declare const Modal: default_2.FC<ModalProps>;
|
|
404
408
|
|
|
405
409
|
export declare interface ModalProps extends ModalProps_2 {
|
|
@@ -455,6 +459,16 @@ export declare interface PasswordValidationProps {
|
|
|
455
459
|
|
|
456
460
|
export { Placement }
|
|
457
461
|
|
|
462
|
+
export declare const PreviewCard: default_2.FC<PreviewCardProps>;
|
|
463
|
+
|
|
464
|
+
declare interface PreviewCardProps {
|
|
465
|
+
fileName: string;
|
|
466
|
+
onRemove: () => void;
|
|
467
|
+
url?: string;
|
|
468
|
+
showPreviewIcon?: boolean;
|
|
469
|
+
className?: string;
|
|
470
|
+
}
|
|
471
|
+
|
|
458
472
|
export declare const PreviewDocumentsCard: default_2.FC<PreviewDocumentsCardProps>;
|
|
459
473
|
|
|
460
474
|
export declare interface PreviewDocumentsCardProps {
|
|
@@ -588,6 +602,15 @@ export { Switch }
|
|
|
588
602
|
|
|
589
603
|
export { SwitchProps }
|
|
590
604
|
|
|
605
|
+
export declare type tabItems = {
|
|
606
|
+
closeIcon?: ReactNode;
|
|
607
|
+
disabled?: boolean;
|
|
608
|
+
forceRender?: boolean;
|
|
609
|
+
key: string;
|
|
610
|
+
label: ReactNode;
|
|
611
|
+
children: ReactNode;
|
|
612
|
+
};
|
|
613
|
+
|
|
591
614
|
export declare const Table: <T extends object>(props: TableProps_3<T>) => default_2.JSX.Element;
|
|
592
615
|
|
|
593
616
|
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 +638,23 @@ export { TablePaginationConfig }
|
|
|
615
638
|
|
|
616
639
|
export { TableType }
|
|
617
640
|
|
|
641
|
+
export declare const Tabs: FC<TabsProps>;
|
|
642
|
+
|
|
643
|
+
export declare interface TabsProps {
|
|
644
|
+
activeKey?: string;
|
|
645
|
+
addIcon?: ReactNode;
|
|
646
|
+
centered?: boolean;
|
|
647
|
+
defaultActiveKey?: string;
|
|
648
|
+
hideAdd?: boolean;
|
|
649
|
+
items: tabItems[];
|
|
650
|
+
moreIcon?: ReactNode;
|
|
651
|
+
tabBarGutter?: number;
|
|
652
|
+
tabBarStyle?: CSSProperties;
|
|
653
|
+
tabPosition?: "top" | "bottom" | "right" | "left";
|
|
654
|
+
type?: "line" | "card" | "editable-card";
|
|
655
|
+
onEdit?: () => void;
|
|
656
|
+
}
|
|
657
|
+
|
|
618
658
|
export declare const TitleHeader: (props: TitleHeaderProps) => default_2.JSX.Element;
|
|
619
659
|
|
|
620
660
|
export declare interface TitleHeaderProps {
|