@fattureincloud/fic-design-system 0.11.2 → 0.12.0
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/components/newTable/Table.d.ts +2 -2
- package/dist/components/newTable/components/body/Body.d.ts +2 -2
- package/dist/components/newTable/components/row/Row.d.ts +2 -2
- package/dist/components/newTable/stories/types.d.ts +1 -0
- package/dist/components/newTable/types.d.ts +1 -1
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -27,8 +27,8 @@ import { TableProps } from './types';
|
|
|
27
27
|
* @param {function} onPaginationChange Callback to handle server side pagination
|
|
28
28
|
* @param {function} renderEmptyState Render a custom empty state for the table's body
|
|
29
29
|
* @param {function} onRowClick Callback called after a click on a row, returns the row
|
|
30
|
-
* @param {number} rowIdHighlight id of the row that will be highlighted
|
|
31
30
|
* @param {number} actionColumnWidth used to determine the width of the action column
|
|
31
|
+
* @param {function} isRowHighlighted used to underline table rows
|
|
32
32
|
*/
|
|
33
|
-
declare const Table: <T>({ data, columns, isSelectable, toggles, onTogglesChange, headerSize, isTogglesSortable, sortable, sortDescFirst, enableSettings, settingsDropdownConfig, rowActions, bulkActions, isLoading, allSelectedCTA, noPagination, pageSize: pageLength, listSize, paginationPreviousText, paginationNextText, onPaginationChange, uniqueId, onSort, renderEmptyState, onRowClick, bodyHeight, totalPages,
|
|
33
|
+
declare const Table: <T>({ data, columns, isSelectable, toggles, onTogglesChange, headerSize, isTogglesSortable, sortable, sortDescFirst, enableSettings, settingsDropdownConfig, rowActions, bulkActions, isLoading, allSelectedCTA, noPagination, pageSize: pageLength, listSize, paginationPreviousText, paginationNextText, onPaginationChange, uniqueId, onSort, renderEmptyState, onRowClick, bodyHeight, totalPages, rowHighlightColor, rowSelection, onRowSelection, forceHideSettings, renderBulkActions, preSettedTableSettings, onChangeTableSettings, notRemovableColumns, rowSize, actionColumnWidth, disableScrollX, resetPageIndex, isRowHighlighted, }: TableProps<T>) => JSX.Element;
|
|
34
34
|
export default Table;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Row } from '@tanstack/react-table';
|
|
3
3
|
import { TableProps } from '../../types';
|
|
4
|
-
interface BodyProps<T> extends Pick<TableProps<T>, 'rowSize' | 'bodyHeight' | '
|
|
4
|
+
interface BodyProps<T> extends Pick<TableProps<T>, 'rowSize' | 'bodyHeight' | 'rowHighlightColor' | 'isRowHighlighted'> {
|
|
5
5
|
rows: Row<T>[];
|
|
6
6
|
isLoading?: boolean;
|
|
7
7
|
onRowClick?: (row: Row<T>) => void;
|
|
@@ -9,5 +9,5 @@ interface BodyProps<T> extends Pick<TableProps<T>, 'rowSize' | 'bodyHeight' | 'r
|
|
|
9
9
|
actionColumnWidth: number;
|
|
10
10
|
disableScrollX?: boolean;
|
|
11
11
|
}
|
|
12
|
-
declare const Body: <T>({ rows, rowSize, isLoading, onRowClick, bodyHeight,
|
|
12
|
+
declare const Body: <T>({ rows, rowSize, isLoading, onRowClick, bodyHeight, rowHighlightColor, pageIndex, actionColumnWidth, disableScrollX, isRowHighlighted, }: BodyProps<T>) => JSX.Element;
|
|
13
13
|
export default Body;
|
|
@@ -6,9 +6,9 @@ interface TrProps<T> extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLTa
|
|
|
6
6
|
defaultRowSize?: RowSize;
|
|
7
7
|
isLoading?: boolean;
|
|
8
8
|
onRowClick?: (row: Row<T>) => void;
|
|
9
|
-
isRowHighlighted: boolean;
|
|
10
9
|
rowHighlightColor?: TableProps<T>['rowHighlightColor'];
|
|
11
10
|
actionColumnWidth: number;
|
|
11
|
+
isRowHighlighted?: (row: Row<T>) => boolean;
|
|
12
12
|
}
|
|
13
|
-
declare const Tr: <T>({ row, isLoading, onRowClick,
|
|
13
|
+
declare const Tr: <T>({ row, isLoading, onRowClick, rowHighlightColor, defaultRowSize, actionColumnWidth, isRowHighlighted, }: TrProps<T>) => JSX.Element;
|
|
14
14
|
export default Tr;
|
|
@@ -39,7 +39,7 @@ export interface TableProps<T> {
|
|
|
39
39
|
onRowClick?: (row: Row<T>) => void;
|
|
40
40
|
bodyHeight?: number;
|
|
41
41
|
totalPages?: number;
|
|
42
|
-
|
|
42
|
+
isRowHighlighted?: (row: Row<T>) => boolean;
|
|
43
43
|
rowHighlightColor?: string;
|
|
44
44
|
rowSelection?: string[];
|
|
45
45
|
onRowSelection?: (e: string[]) => void;
|