vrfi-design-system 1.0.42 → 1.0.43

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,6 +8,8 @@ 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';
11
13
  import { CheckboxOptionType } from 'antd/lib/checkbox/Group';
12
14
  import { default as Col } from 'antd/lib/col';
13
15
  import { ColProps } from 'antd/lib/col';
@@ -16,7 +18,6 @@ import { ColumnType } from 'antd/lib/table';
16
18
  import { ComponentProps } from 'react';
17
19
  import { Control } from 'react-hook-form';
18
20
  import { ControllerRenderProps } from 'react-hook-form';
19
- import { CSSProperties } from 'react';
20
21
  import { default as DatePickerAntd } from 'antd/lib/date-picker';
21
22
  import { DatePickerProps } from 'antd';
22
23
  import { default as default_2 } from 'react';
@@ -44,6 +45,7 @@ import { JSX as JSX_2 } from 'react';
44
45
  import { Justify } from '../../enums/justify.enum';
45
46
  import { LoaderSizes } from '../../../enums/LoaderSizes';
46
47
  import { MenuItemType } from 'antd/lib/menu/interface';
48
+ import { Meta } from '../../../models/meta.model';
47
49
  import { ModalProps as ModalProps_2 } from 'antd/lib/modal';
48
50
  import { MouseEvent as MouseEvent_2 } from 'react';
49
51
  import { NotificationTypes } from '../../enums/notificationTypes';
@@ -159,12 +161,12 @@ export declare interface CardWithIconAndTextProps {
159
161
  export declare const Checkbox: ({ children, group, options, disabled, indeterminate, defaultChecked, onChange, checked, }: CheckboxProps) => default_2.JSX.Element;
160
162
 
161
163
  export declare interface CheckboxProps {
162
- children?: string | number;
164
+ children?: default_2.ReactNode;
163
165
  disabled?: boolean;
164
166
  indeterminate?: boolean;
165
167
  defaultChecked?: boolean;
166
168
  group?: boolean;
167
- onChange: (checkedValue: (string | number)[]) => void;
169
+ onChange: (event: CheckboxChangeEvent | CheckboxGroupProps[]) => void;
168
170
  options?: (CheckboxOptionType | string | number)[];
169
171
  checked?: boolean;
170
172
  }
@@ -398,12 +400,6 @@ export declare interface LoaderProps {
398
400
  tip?: string;
399
401
  }
400
402
 
401
- declare type Meta = {
402
- id: number;
403
- code: string;
404
- label: string;
405
- };
406
-
407
403
  export declare const Modal: default_2.FC<ModalProps>;
408
404
 
409
405
  export declare interface ModalProps extends ModalProps_2 {
@@ -592,15 +588,6 @@ export { Switch }
592
588
 
593
589
  export { SwitchProps }
594
590
 
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
-
604
591
  export declare const Table: <T extends object>(props: TableProps_3<T>) => default_2.JSX.Element;
605
592
 
606
593
  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;
@@ -628,23 +615,6 @@ export { TablePaginationConfig }
628
615
 
629
616
  export { TableType }
630
617
 
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
-
648
618
  export declare const TitleHeader: (props: TitleHeaderProps) => default_2.JSX.Element;
649
619
 
650
620
  export declare interface TitleHeaderProps {