@commercetools-uikit/data-table 15.9.0 → 15.11.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/commercetools-uikit-data-table.cjs.dev.js +1 -1
- package/dist/commercetools-uikit-data-table.cjs.prod.js +1 -1
- package/dist/commercetools-uikit-data-table.esm.js +1 -1
- package/dist/declarations/src/cell.d.ts +1 -1
- package/dist/declarations/src/cell.styles.d.ts +2 -2
- package/dist/declarations/src/column-resizer.d.ts +1 -1
- package/dist/declarations/src/data-row.d.ts +1 -1
- package/dist/declarations/src/data-table.d.ts +2 -2
- package/dist/declarations/src/data-table.styles.d.ts +3 -3
- package/dist/declarations/src/footer.d.ts +1 -1
- package/dist/declarations/src/header-cell.d.ts +1 -1
- package/dist/declarations/src/header-cell.styles.d.ts +2 -2
- package/dist/declarations/src/use-manual-column-resizing-reducer.d.ts +2 -2
- package/package.json +7 -7
|
@@ -1108,7 +1108,7 @@ DataTable.displayName = 'DataTable';
|
|
|
1108
1108
|
var DataTable$1 = DataTable;
|
|
1109
1109
|
|
|
1110
1110
|
// NOTE: This string will be replaced on build time with the package version.
|
|
1111
|
-
var version = "15.
|
|
1111
|
+
var version = "15.11.0";
|
|
1112
1112
|
|
|
1113
1113
|
Object.defineProperty(exports, 'useRowSelection', {
|
|
1114
1114
|
enumerable: true,
|
|
@@ -912,7 +912,7 @@ DataTable.displayName = 'DataTable';
|
|
|
912
912
|
var DataTable$1 = DataTable;
|
|
913
913
|
|
|
914
914
|
// NOTE: This string will be replaced on build time with the package version.
|
|
915
|
-
var version = "15.
|
|
915
|
+
var version = "15.11.0";
|
|
916
916
|
|
|
917
917
|
Object.defineProperty(exports, 'useRowSelection', {
|
|
918
918
|
enumerable: true,
|
|
@@ -1084,6 +1084,6 @@ DataTable.displayName = 'DataTable';
|
|
|
1084
1084
|
var DataTable$1 = DataTable;
|
|
1085
1085
|
|
|
1086
1086
|
// NOTE: This string will be replaced on build time with the package version.
|
|
1087
|
-
var version = "15.
|
|
1087
|
+
var version = "15.11.0";
|
|
1088
1088
|
|
|
1089
1089
|
export { DataTable$1 as default, version };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { TDataCell } from './cell';
|
|
3
|
-
|
|
3
|
+
type TCellInner = {
|
|
4
4
|
shouldClipContent?: boolean;
|
|
5
5
|
} & Pick<TDataCell, 'verticalCellAlignment' | 'horizontalCellAlignment' | 'isTruncated' | 'isCondensed'>;
|
|
6
6
|
declare const getPaddingStyle: (props: TCellInner) => import("@emotion/utils").SerializedStyles;
|
|
@@ -19,7 +19,7 @@ declare const BaseCell: import("@emotion/styled").StyledComponent<{
|
|
|
19
19
|
} & {
|
|
20
20
|
shouldClipContent?: boolean | undefined;
|
|
21
21
|
} & Pick<TDataCell, "shouldIgnoreRowClick" | "shouldRenderBottomBorder">, import("react").DetailedHTMLProps<import("react").TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, {}>;
|
|
22
|
-
|
|
22
|
+
type TBaseFooterCell = {
|
|
23
23
|
disableFooterStickiness?: boolean;
|
|
24
24
|
numberOfColumns?: number;
|
|
25
25
|
};
|
|
@@ -2,7 +2,7 @@ import { ReactNode, MouseEventHandler } from 'react';
|
|
|
2
2
|
export interface TRow {
|
|
3
3
|
id: string;
|
|
4
4
|
}
|
|
5
|
-
export
|
|
5
|
+
export type TColumn<Row extends TRow = TRow> = {
|
|
6
6
|
key: string;
|
|
7
7
|
label: ReactNode;
|
|
8
8
|
width?: string;
|
|
@@ -15,7 +15,7 @@ export declare type TColumn<Row extends TRow = TRow> = {
|
|
|
15
15
|
disableResizing?: boolean;
|
|
16
16
|
shouldIgnoreRowClick?: boolean;
|
|
17
17
|
};
|
|
18
|
-
export
|
|
18
|
+
export type TDataTableProps<Row extends TRow = TRow> = {
|
|
19
19
|
rows: Row[];
|
|
20
20
|
columns: TColumn[];
|
|
21
21
|
footer?: ReactNode;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { TDataTableProps } from './data-table';
|
|
3
|
-
|
|
3
|
+
type TGetClickableRowStyleProps = {
|
|
4
4
|
isRowClickable: boolean;
|
|
5
5
|
};
|
|
6
|
-
|
|
6
|
+
type TTableContainer = {
|
|
7
7
|
isBeingResized?: boolean;
|
|
8
8
|
maxWidth?: string | number;
|
|
9
9
|
disableSelfContainment: boolean;
|
|
@@ -12,7 +12,7 @@ declare const TableContainer: import("@emotion/styled").StyledComponent<{
|
|
|
12
12
|
theme?: import("@emotion/react").Theme | undefined;
|
|
13
13
|
as?: import("react").ElementType<any> | undefined;
|
|
14
14
|
} & TTableContainer, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
15
|
-
|
|
15
|
+
type TTableGrid = {
|
|
16
16
|
resizedTotalWidth?: number;
|
|
17
17
|
columns?: TDataTableProps['columns'];
|
|
18
18
|
disableSelfContainment: boolean;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { THeaderCell } from './header-cell';
|
|
3
|
-
|
|
3
|
+
type TGetSortableHeaderStyles = {
|
|
4
4
|
isActive?: boolean;
|
|
5
5
|
};
|
|
6
6
|
declare const HeaderCellInner: import("@emotion/styled").StyledComponent<{
|
|
7
7
|
theme?: import("@emotion/react").Theme | undefined;
|
|
8
8
|
as?: import("react").ElementType<any> | undefined;
|
|
9
9
|
} & Pick<THeaderCell, "isCondensed" | "horizontalCellAlignment" | "isSortable" | "shouldWrap"> & TGetSortableHeaderStyles, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
10
|
-
|
|
10
|
+
type TBaseHeaderCell = {
|
|
11
11
|
disableHeaderStickiness?: boolean;
|
|
12
12
|
shouldClipContent?: boolean;
|
|
13
13
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MutableRefObject } from 'react';
|
|
2
|
-
|
|
3
|
-
export
|
|
2
|
+
type TTableRef = MutableRefObject<HTMLTableElement | undefined>;
|
|
3
|
+
export type TRenderedColumnMeasurements = {
|
|
4
4
|
key: string | null;
|
|
5
5
|
width: number;
|
|
6
6
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/data-table",
|
|
3
3
|
"description": "A component for rendering tabular data.",
|
|
4
|
-
"version": "15.
|
|
4
|
+
"version": "15.11.0",
|
|
5
5
|
"bugs": "https://github.com/commercetools/ui-kit/issues",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@babel/runtime": "^7.19.0",
|
|
23
23
|
"@babel/runtime-corejs3": "^7.19.1",
|
|
24
|
-
"@commercetools-uikit/accessible-button": "15.
|
|
25
|
-
"@commercetools-uikit/design-system": "15.
|
|
26
|
-
"@commercetools-uikit/hooks": "15.
|
|
27
|
-
"@commercetools-uikit/icons": "15.
|
|
28
|
-
"@commercetools-uikit/secondary-icon-button": "15.
|
|
29
|
-
"@commercetools-uikit/utils": "15.
|
|
24
|
+
"@commercetools-uikit/accessible-button": "15.11.0",
|
|
25
|
+
"@commercetools-uikit/design-system": "15.11.0",
|
|
26
|
+
"@commercetools-uikit/hooks": "15.11.0",
|
|
27
|
+
"@commercetools-uikit/icons": "15.11.0",
|
|
28
|
+
"@commercetools-uikit/secondary-icon-button": "15.11.0",
|
|
29
|
+
"@commercetools-uikit/utils": "15.11.0",
|
|
30
30
|
"@emotion/react": "^11.4.0",
|
|
31
31
|
"@emotion/styled": "^11.3.0",
|
|
32
32
|
"lodash": "4.17.21",
|