@fattureincloud/fic-design-system 0.15.8 → 0.15.9
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/newTable_v2/components/body/Body.d.ts +2 -2
- package/dist/components/newTable_v2/components/footer/footerCell/styled.d.ts +10 -1
- package/dist/components/newTable_v2/components/footer/styled.d.ts +5 -0
- package/dist/components/newTable_v2/components/header/Header.d.ts +1 -2
- package/dist/components/newTable_v2/components/header/styled.d.ts +1 -5
- package/dist/components/newTable_v2/constants.d.ts +1 -1
- package/dist/components/newTable_v2/styled.d.ts +3 -1
- package/dist/components/newTable_v2/types/tableTypes.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
@@ -1,9 +1,9 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { Row as RowType } from '@tanstack/react-table';
|
3
3
|
import { TableProps } from '../../types';
|
4
|
-
interface BodyProps<T> extends Pick<TableProps<T>, '
|
4
|
+
interface BodyProps<T> extends Pick<TableProps<T>, 'isLoading' | 'isRowDisabled' | 'isRowHighlighted' | 'onRowClick' | 'rowActions' | 'rowHighlightColor' | 'rowSelection' | 'rowTooltip'> {
|
5
5
|
pageIndex: number;
|
6
6
|
rows: RowType<T>[];
|
7
7
|
}
|
8
|
-
declare const Body: <T>({
|
8
|
+
declare const Body: <T>({ isLoading, isRowDisabled, isRowHighlighted, onRowClick, pageIndex, rowActions, rowHighlightColor, rowSelection, rowTooltip, rows, }: BodyProps<T>) => JSX.Element;
|
9
9
|
export default Body;
|
@@ -1,3 +1,4 @@
|
|
1
|
+
/// <reference types="react" />
|
1
2
|
import { ColumnPinningPosition } from '@tanstack/react-table';
|
2
3
|
import { RowSize } from '../../../types';
|
3
4
|
declare type DSThProps = {
|
@@ -6,5 +7,13 @@ declare type DSThProps = {
|
|
6
7
|
minWidth?: number;
|
7
8
|
maxWidth?: number;
|
8
9
|
};
|
9
|
-
export declare const DSThFooter: import("styled-components").StyledComponent<"th", import("styled-components").DefaultTheme,
|
10
|
+
export declare const DSThFooter: import("styled-components").StyledComponent<"th", import("styled-components").DefaultTheme, Partial<Pick<import("react").DetailedHTMLProps<import("react").ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, "key" | keyof import("react").ThHTMLAttributes<HTMLTableHeaderCellElement>> & {
|
11
|
+
ref?: ((instance: HTMLTableHeaderCellElement | null) => void) | import("react").RefObject<HTMLTableHeaderCellElement> | null | undefined;
|
12
|
+
} & {
|
13
|
+
minWidth?: number | undefined;
|
14
|
+
maxWidth?: number | undefined;
|
15
|
+
fixedWidth?: number | undefined;
|
16
|
+
}> & {
|
17
|
+
[others: string]: any;
|
18
|
+
} & DSThProps, string | number>;
|
10
19
|
export {};
|
@@ -4,4 +4,9 @@ declare type DSTHeadProps = {
|
|
4
4
|
footerSize?: RowSize;
|
5
5
|
};
|
6
6
|
export declare const DSTrFooter: import("styled-components").StyledComponent<"tr", import("styled-components").DefaultTheme, DSTHeadProps, never>;
|
7
|
+
export declare const CheckboxFooter: import("styled-components").StyledComponent<"th", import("styled-components").DefaultTheme, {}, never>;
|
8
|
+
declare type ActionsFooterProps = {
|
9
|
+
actionColumnWidth: number;
|
10
|
+
};
|
11
|
+
export declare const ActionsFooter: import("styled-components").StyledComponent<"th", import("styled-components").DefaultTheme, ActionsFooterProps, never>;
|
7
12
|
export {};
|
@@ -4,10 +4,9 @@ import { TableProps } from '../../types';
|
|
4
4
|
declare type HeaderProps<T> = Pick<TableProps<T>, 'headerSize' | 'onSort'> & {
|
5
5
|
actionsHeader?: string | JSX.Element;
|
6
6
|
headerGroups: HeaderGroup<T>[];
|
7
|
-
isSelectable?: boolean;
|
8
7
|
onRowSelection?: (e: string[]) => void;
|
9
8
|
rowSelection?: string[];
|
10
9
|
table: Table<T>;
|
11
10
|
};
|
12
|
-
declare const Header: <T>({ actionsHeader, headerGroups, headerSize,
|
11
|
+
declare const Header: <T>({ actionsHeader, headerGroups, headerSize, onRowSelection, onSort, rowSelection, table, }: HeaderProps<T>) => JSX.Element;
|
13
12
|
export default Header;
|
@@ -1,10 +1,6 @@
|
|
1
1
|
import { RowSize } from '../../types';
|
2
|
-
declare
|
3
|
-
scrollbarPadding: number;
|
4
|
-
};
|
5
|
-
export declare const DSTHead: import("styled-components").StyledComponent<"thead", import("styled-components").DefaultTheme, DSTHeadProps, never>;
|
2
|
+
export declare const DSTHead: import("styled-components").StyledComponent<"thead", import("styled-components").DefaultTheme, {}, never>;
|
6
3
|
declare type DSTrHeaderProps = {
|
7
|
-
hasActions: boolean;
|
8
4
|
headerSize?: RowSize;
|
9
5
|
};
|
10
6
|
export declare const DSTrHeader: import("styled-components").StyledComponent<"tr", import("styled-components").DefaultTheme, DSTrHeaderProps, never>;
|
@@ -2,7 +2,7 @@ import { SettingsLabels, TableComponent } from './types';
|
|
2
2
|
export declare const HEIGHT_SMALL = 42;
|
3
3
|
export declare const HEIGHT_LARGE = 56;
|
4
4
|
export declare const TEXTAREA_HEIGHT = 100;
|
5
|
-
export declare const CHECKBOX_WIDTH =
|
5
|
+
export declare const CHECKBOX_WIDTH = 18;
|
6
6
|
export declare const CLASS_PREFIX = "DS-table";
|
7
7
|
export declare const DS_PREFIX = "dstbl";
|
8
8
|
export declare const COMPONENTS: Record<TableComponent, string[]>;
|
@@ -1,6 +1,8 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
export declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
3
|
-
export declare const HorizontalScroll: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
3
|
+
export declare const HorizontalScroll: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
4
|
+
maxHeight?: number | undefined;
|
5
|
+
}, never>;
|
4
6
|
export declare const DSTable: import("styled-components").StyledComponent<"table", import("styled-components").DefaultTheme, {}, never>;
|
5
7
|
export declare const SortIndicator: import("styled-components").StyledComponent<({ isDisabled, onClick, ...props }: import("../icon").IconProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
6
8
|
export declare const PaginationContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
@@ -11,13 +11,13 @@ import { SortableTable } from './features/sort';
|
|
11
11
|
export declare type TableProps<T> = SelectableTable & PaginatedTable & SortableTable<T> & TableSettings & HighlightRow<T> & TableActions<T> & {
|
12
12
|
absoluteElementsPortal?: HTMLElement;
|
13
13
|
actionColumnWidth?: number;
|
14
|
-
bodyHeight?: number;
|
15
14
|
columns: ColumnsType<T>[];
|
16
15
|
data: T[];
|
17
16
|
headerSize?: RowSize;
|
18
17
|
isLoading?: boolean;
|
19
18
|
isRowDisabled?: (row: Row<T>) => boolean;
|
20
19
|
loadingStyle?: LoadingStyle;
|
20
|
+
maxHeight?: number;
|
21
21
|
onRowClick?: (row: Row<T>) => void;
|
22
22
|
renderEmptyState?: () => JSX.Element;
|
23
23
|
rowTooltip?: (row: Row<T>) => string;
|