vrfi-design-system 1.0.40 → 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 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';
@@ -160,12 +159,12 @@ export declare interface CardWithIconAndTextProps {
160
159
  export declare const Checkbox: ({ children, group, options, disabled, indeterminate, defaultChecked, onChange, checked, }: CheckboxProps) => default_2.JSX.Element;
161
160
 
162
161
  export declare interface CheckboxProps {
163
- children?: default_2.ReactNode;
162
+ children?: string | number;
164
163
  disabled?: boolean;
165
164
  indeterminate?: boolean;
166
165
  defaultChecked?: boolean;
167
166
  group?: boolean;
168
- onChange: (event: CheckboxChangeEvent | CheckboxGroupProps[]) => void;
167
+ onChange: (checkedValue: (string | number)[]) => void;
169
168
  options?: (CheckboxOptionType | string | number)[];
170
169
  checked?: boolean;
171
170
  }
@@ -318,6 +317,18 @@ export declare interface FileUploadProps {
318
317
 
319
318
  export declare const FileUploadWithDropdown: ({ loading, required, selectLabel, dropdownName, dropdownOptions, className, value, onChange, maxFileSize, uploadHint, uploadTitle, uploadIcon, supportedFileType, ...propsDragDrop }: CustomDropDownFileUploadProps) => default_2.JSX.Element;
320
319
 
320
+ export declare const FiltersListing: (props: FiltersListingProps) => default_2.JSX.Element;
321
+
322
+ export declare interface FiltersListingProps {
323
+ filterData: Meta[];
324
+ searchPlaceholder?: string;
325
+ loading?: boolean;
326
+ onSelectedChange?: (selectedIds: number[]) => void;
327
+ onClose: () => void;
328
+ noDataText?: string;
329
+ noDataSubText?: string;
330
+ }
331
+
321
332
  export { FilterValue }
322
333
 
323
334
  export declare const FloatingLabel: (props: FloatingLabelProps) => default_2.JSX.Element;
@@ -387,6 +398,12 @@ export declare interface LoaderProps {
387
398
  tip?: string;
388
399
  }
389
400
 
401
+ declare type Meta = {
402
+ id: number;
403
+ code: string;
404
+ label: string;
405
+ };
406
+
390
407
  export declare const Modal: default_2.FC<ModalProps>;
391
408
 
392
409
  export declare interface ModalProps extends ModalProps_2 {
@@ -575,6 +592,15 @@ export { Switch }
575
592
 
576
593
  export { SwitchProps }
577
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
+
578
604
  export declare const Table: <T extends object>(props: TableProps_3<T>) => default_2.JSX.Element;
579
605
 
580
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;
@@ -602,6 +628,23 @@ export { TablePaginationConfig }
602
628
 
603
629
  export { TableType }
604
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
+
605
648
  export declare const TitleHeader: (props: TitleHeaderProps) => default_2.JSX.Element;
606
649
 
607
650
  export declare interface TitleHeaderProps {