@fattureincloud/fic-design-system 0.4.13 → 0.4.16

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,6 +10,7 @@ export interface FileUploaderProps {
10
10
  size?: FileUploaderSize;
11
11
  status?: FileUploaderStatus;
12
12
  customPalette?: CustomPalette;
13
+ fixedHeight?: boolean;
13
14
  }
14
- declare const FileUploader: ({ allowedTypes, customPalette, className, maxFileSize, multiple, onDrop, size, status, }: FileUploaderProps) => JSX.Element;
15
+ declare const FileUploader: ({ allowedTypes, customPalette, className, maxFileSize, multiple, onDrop, size, status, fixedHeight, }: FileUploaderProps) => JSX.Element;
15
16
  export default FileUploader;
@@ -4,6 +4,7 @@ interface ContainerProps {
4
4
  status: statuses;
5
5
  size: FileUploaderSize;
6
6
  backgroundColor: paletteColor;
7
+ fixedHeight: boolean;
7
8
  }
8
9
  export declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, ContainerProps, never>;
9
10
  export declare const OnDraggingOverlay: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, ContainerProps, never>;
@@ -8,6 +8,7 @@ interface Props {
8
8
  onAction: () => void;
9
9
  isOpen: boolean;
10
10
  setIsOpen: (state: boolean) => void;
11
+ isSmall?: boolean;
11
12
  }
12
13
  export declare const ConfirmationModal: (props: Props) => JSX.Element;
13
14
  export {};
@@ -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,10 +1,11 @@
1
- import { HeaderGroup } from 'react-table';
1
+ import { HeaderGroup, SortingRule } from 'react-table';
2
2
  import { TableData } from '../../types';
3
3
  interface Props<T extends TableData> {
4
4
  scrollBar: number;
5
5
  headerGroups: HeaderGroup<T>[];
6
6
  headerHeight?: number | string;
7
7
  selectedRowsIds?: string[];
8
+ sortBy: SortingRule<T>[];
8
9
  }
9
10
  declare const TableHeader: <T extends TableData>({ headerHeight, headerGroups, scrollBar }: Props<T>) => JSX.Element;
10
11
  export default TableHeader;