@fattureincloud/fic-design-system 0.4.11 → 0.4.14

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,11 +4,12 @@ export declare type fileUploaderOnDrop = (acceptedFiles: File[], rejectedFiles:
4
4
  export interface FileUploaderProps {
5
5
  allowedTypes: FileType[];
6
6
  className?: string;
7
+ maxFileSize?: number;
7
8
  multiple?: boolean;
8
9
  onDrop: fileUploaderOnDrop;
9
10
  size?: FileUploaderSize;
10
11
  status?: FileUploaderStatus;
11
12
  customPalette?: CustomPalette;
12
13
  }
13
- declare const FileUploader: ({ allowedTypes, customPalette, className, multiple, onDrop, size, status, }: FileUploaderProps) => JSX.Element;
14
+ declare const FileUploader: ({ allowedTypes, customPalette, className, maxFileSize, multiple, onDrop, size, status, }: FileUploaderProps) => JSX.Element;
14
15
  export default FileUploader;
@@ -8,6 +8,7 @@ export interface TableProps<T extends TableData> extends UseTableOptions<T> {
8
8
  noPagination?: boolean;
9
9
  manualPagination?: ManualPagination;
10
10
  onScroll?: () => void;
11
+ pageSize?: number;
11
12
  selectableRows?: boolean;
12
13
  preSelectAllRows?: boolean;
13
14
  onSelectionChange?: OnSelectionChange<T>;
@@ -29,6 +30,7 @@ export interface TableProps<T extends TableData> extends UseTableOptions<T> {
29
30
  * @param {boolean} sortable Makes all columns sortable, sort can be disabled for a single column inside columns definition
30
31
  * @param {function} onSort Callback called on column sort change
31
32
  * @param {boolean} noPagination Hide table paginator and disabled pagination
33
+ * @param {number} pageSize Define the page size to use in every page
32
34
  * @param {object} manualPagination If you want to manage the pagination by yourself
33
35
  * @param {function} onScroll If pagination is disabled, this callback is called when user scroll to the bottom of the table
34
36
  * @param {boolean} selectableRows Allow to select rows
@@ -47,5 +49,5 @@ export interface TableProps<T extends TableData> extends UseTableOptions<T> {
47
49
  * @param {number|string} headerHeight Set thead and th height, default 40px (if number is provided is considered as measure in pixels)
48
50
  * @param {number|string} rowHeight Set row height, default 40px (if number is provided is considered as measure in pixels)
49
51
  */
50
- declare const Table: <T extends TableData>({ actions, bodyHeight, columns, data, EmptyPage, Footer, globalFilter: externalGlobalFilter, headerHeight, hideHeader, isLoading, manualPagination, noPagination, onRowClick, onScroll, onSelectionChange, onSort, preSelectAllRows, renderActions, rowHeight, selectableRows, sortable, withCheckbox, }: TableProps<T>) => JSX.Element;
52
+ declare const Table: <T extends TableData>({ actions, bodyHeight, columns, data, EmptyPage, Footer, globalFilter: externalGlobalFilter, headerHeight, hideHeader, isLoading, manualPagination, noPagination, onRowClick, onScroll, onSelectionChange, onSort, preSelectAllRows, renderActions, rowHeight, selectableRows, sortable, withCheckbox, pageSize, }: TableProps<T>) => JSX.Element;
51
53
  export default Table;
@@ -1,9 +1,7 @@
1
- import { Key } from 'react';
2
1
  import { ColumnInstance } from 'react-table';
3
2
  import { TableData } from '../../types';
4
3
  interface LoadingCellProps<T extends TableData> {
5
4
  column: ColumnInstance<T>;
6
- key: Key;
7
5
  }
8
- declare const LoadingCell: <T extends TableData>({ column, key }: LoadingCellProps<T>) => JSX.Element;
6
+ declare const LoadingCell: <T extends TableData>({ column }: LoadingCellProps<T>) => JSX.Element;
9
7
  export default LoadingCell;