@fattureincloud/fic-design-system 0.15.7 → 0.15.8
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/newTable_v2/components/cell/hooks/useCellValues.d.ts +1 -0
- package/dist/components/newTable_v2/components/cell/styled.d.ts +11 -1
- package/dist/components/newTable_v2/components/header/actionsHeader/styled.d.ts +0 -1
- package/dist/components/newTable_v2/components/header/headerCell/styled.d.ts +11 -1
- package/dist/components/newTable_v2/components/header/hooks/useHeaderValues.d.ts +1 -0
- package/dist/components/newTable_v2/components/header/styled.d.ts +1 -0
- package/dist/components/newTable_v2/constants.d.ts +1 -1
- package/dist/components/newTable_v2/types/columnsTypes.d.ts +1 -0
- package/dist/components/newTable_v2/utils.d.ts +11 -0
- 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,19 @@
|
|
1
|
+
/// <reference types="react" />
|
1
2
|
declare type DSTdProps = {
|
3
|
+
fixedWidth?: number;
|
2
4
|
justifyContent: 'center' | 'left' | 'right';
|
3
5
|
maxWidth?: number;
|
4
6
|
minWidth?: number;
|
5
7
|
};
|
6
8
|
export declare const BaseTd: import("styled-components").StyledComponent<"td", import("styled-components").DefaultTheme, {}, never>;
|
7
|
-
export declare const DSTd: import("styled-components").StyledComponent<"td", import("styled-components").DefaultTheme,
|
9
|
+
export declare const DSTd: import("styled-components").StyledComponent<"td", import("styled-components").DefaultTheme, Partial<Pick<import("react").DetailedHTMLProps<import("react").TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, "key" | keyof import("react").TdHTMLAttributes<HTMLTableDataCellElement>> & {
|
10
|
+
ref?: ((instance: HTMLTableDataCellElement | null) => void) | import("react").RefObject<HTMLTableDataCellElement> | null | undefined;
|
11
|
+
} & {
|
12
|
+
minWidth?: number | undefined;
|
13
|
+
maxWidth?: number | undefined;
|
14
|
+
fixedWidth?: number | undefined;
|
15
|
+
}> & {
|
16
|
+
[others: string]: any;
|
17
|
+
} & DSTdProps, string | number>;
|
8
18
|
export declare const CutText: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
9
19
|
export {};
|
@@ -1,9 +1,19 @@
|
|
1
|
+
/// <reference types="react" />
|
1
2
|
import { ColumnPinningPosition } from '@tanstack/react-table';
|
2
3
|
declare type DSThProps = {
|
4
|
+
fixedWidth?: number;
|
3
5
|
isPinned: ColumnPinningPosition;
|
4
6
|
minWidth?: number;
|
5
7
|
maxWidth?: number;
|
6
8
|
sortable: boolean;
|
7
9
|
};
|
8
|
-
export declare const DSThHeader: import("styled-components").StyledComponent<"th", import("styled-components").DefaultTheme,
|
10
|
+
export declare const DSThHeader: 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>;
|
9
19
|
export {};
|
@@ -4,6 +4,7 @@ declare type DSTHeadProps = {
|
|
4
4
|
};
|
5
5
|
export declare const DSTHead: import("styled-components").StyledComponent<"thead", import("styled-components").DefaultTheme, DSTHeadProps, never>;
|
6
6
|
declare type DSTrHeaderProps = {
|
7
|
+
hasActions: boolean;
|
7
8
|
headerSize?: RowSize;
|
8
9
|
};
|
9
10
|
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 = 34;
|
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[]>;
|
@@ -15,4 +15,15 @@ export declare type MappedProps = {
|
|
15
15
|
};
|
16
16
|
export declare const mapBackground: ({ isDisabled, isRowHighlighted, rowHighlightColor, selected, theme, }: MapBackgrounProps) => MappedProps;
|
17
17
|
export declare const getColumnId: <T>(column: ColumnsType<T>) => string;
|
18
|
+
declare type MapColumnWidthParams = {
|
19
|
+
minWidth?: number;
|
20
|
+
maxWidth?: number;
|
21
|
+
fixedWidth?: number;
|
22
|
+
};
|
23
|
+
declare type MappedColumnWidth = {
|
24
|
+
width: string;
|
25
|
+
minWidth: string;
|
26
|
+
maxWidth: string;
|
27
|
+
};
|
28
|
+
export declare const mapColumnWidth: ({ fixedWidth, maxWidth, minWidth }: MapColumnWidthParams) => MappedColumnWidth;
|
18
29
|
export {};
|