vrfi-design-system 1.0.41 → 1.0.42
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 +35 -5
- package/dist/main.es.js +21133 -19380
- package/dist/main.umd.js +150 -148
- 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 {
|
|
@@ -588,6 +592,15 @@ export { Switch }
|
|
|
588
592
|
|
|
589
593
|
export { SwitchProps }
|
|
590
594
|
|
|
595
|
+
export declare type tabItems = {
|
|
596
|
+
closeIcon?: ReactNode;
|
|
597
|
+
disabled?: boolean;
|
|
598
|
+
forceRender?: boolean;
|
|
599
|
+
key: string;
|
|
600
|
+
label: ReactNode;
|
|
601
|
+
children: ReactNode;
|
|
602
|
+
};
|
|
603
|
+
|
|
591
604
|
export declare const Table: <T extends object>(props: TableProps_3<T>) => default_2.JSX.Element;
|
|
592
605
|
|
|
593
606
|
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 +628,23 @@ export { TablePaginationConfig }
|
|
|
615
628
|
|
|
616
629
|
export { TableType }
|
|
617
630
|
|
|
631
|
+
export declare const Tabs: FC<TabsProps>;
|
|
632
|
+
|
|
633
|
+
export declare interface TabsProps {
|
|
634
|
+
activeKey?: string;
|
|
635
|
+
addIcon?: ReactNode;
|
|
636
|
+
centered?: boolean;
|
|
637
|
+
defaultActiveKey?: string;
|
|
638
|
+
hideAdd?: boolean;
|
|
639
|
+
items: tabItems[];
|
|
640
|
+
moreIcon?: ReactNode;
|
|
641
|
+
tabBarGutter?: number;
|
|
642
|
+
tabBarStyle?: CSSProperties;
|
|
643
|
+
tabPosition?: "top" | "bottom" | "right" | "left";
|
|
644
|
+
type?: "line" | "card" | "editable-card";
|
|
645
|
+
onEdit?: () => void;
|
|
646
|
+
}
|
|
647
|
+
|
|
618
648
|
export declare const TitleHeader: (props: TitleHeaderProps) => default_2.JSX.Element;
|
|
619
649
|
|
|
620
650
|
export declare interface TitleHeaderProps {
|