@commercetools-uikit/data-table 15.8.0 → 15.10.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.
@@ -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.8.0";
1111
+ var version = "15.10.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.8.0";
915
+ var version = "15.10.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.8.0";
1087
+ var version = "15.10.0";
1088
1088
 
1089
1089
  export { DataTable$1 as default, version };
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- export declare type TDataCell = {
2
+ export type TDataCell = {
3
3
  children: ReactNode;
4
4
  isCondensed?: boolean;
5
5
  isTruncated?: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import type { TDataCell } from './cell';
3
- declare type TCellInner = {
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
- declare type TBaseFooterCell = {
22
+ type TBaseFooterCell = {
23
23
  disableFooterStickiness?: boolean;
24
24
  numberOfColumns?: number;
25
25
  };
@@ -1,5 +1,5 @@
1
1
  import type { MouseEvent } from 'react';
2
- declare type TColumnResizer = {
2
+ type TColumnResizer = {
3
3
  onMouseDown?: (event: MouseEvent) => void;
4
4
  isOnDataCell?: boolean;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { TColumn, TRow, TDataTableProps } from './data-table';
2
- export declare type TDataRow<Row extends TRow = TRow> = {
2
+ export type TDataRow<Row extends TRow = TRow> = {
3
3
  row: Row;
4
4
  rowIndex: number;
5
5
  columns: TColumn<Row>[];
@@ -2,7 +2,7 @@ import { ReactNode, MouseEventHandler } from 'react';
2
2
  export interface TRow {
3
3
  id: string;
4
4
  }
5
- export declare type TColumn<Row extends TRow = TRow> = {
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 declare type TDataTableProps<Row extends TRow = TRow> = {
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
- declare type TGetClickableRowStyleProps = {
3
+ type TGetClickableRowStyleProps = {
4
4
  isRowClickable: boolean;
5
5
  };
6
- declare type TTableContainer = {
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
- declare type TTableGrid = {
15
+ type TTableGrid = {
16
16
  resizedTotalWidth?: number;
17
17
  columns?: TDataTableProps['columns'];
18
18
  disableSelfContainment: boolean;
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- declare type TFooter = {
2
+ type TFooter = {
3
3
  children: ReactNode;
4
4
  isCondensed?: boolean;
5
5
  horizontalCellAlignment?: 'left' | 'center' | 'right';
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
2
  import type { TColumn } from './data-table';
3
- export declare type THeaderCell = {
3
+ export type THeaderCell = {
4
4
  onClick?: (columnKey: string, sortDirection: 'asc' | 'desc') => void;
5
5
  sortedBy?: string;
6
6
  children: ReactNode;
@@ -1,13 +1,13 @@
1
1
  /// <reference types="react" />
2
2
  import type { THeaderCell } from './header-cell';
3
- declare type TGetSortableHeaderStyles = {
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
- declare type TBaseHeaderCell = {
10
+ type TBaseHeaderCell = {
11
11
  disableHeaderStickiness?: boolean;
12
12
  shouldClipContent?: boolean;
13
13
  };
@@ -1,6 +1,6 @@
1
1
  import { MutableRefObject } from 'react';
2
- declare type TTableRef = MutableRefObject<HTMLTableElement | undefined>;
3
- export declare type TRenderedColumnMeasurements = {
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.8.0",
4
+ "version": "15.10.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.8.0",
25
- "@commercetools-uikit/design-system": "15.8.0",
26
- "@commercetools-uikit/hooks": "15.8.0",
27
- "@commercetools-uikit/icons": "15.8.0",
28
- "@commercetools-uikit/secondary-icon-button": "15.8.0",
29
- "@commercetools-uikit/utils": "15.8.0",
24
+ "@commercetools-uikit/accessible-button": "15.10.0",
25
+ "@commercetools-uikit/design-system": "15.10.0",
26
+ "@commercetools-uikit/hooks": "15.10.0",
27
+ "@commercetools-uikit/icons": "15.10.0",
28
+ "@commercetools-uikit/secondary-icon-button": "15.10.0",
29
+ "@commercetools-uikit/utils": "15.10.0",
30
30
  "@emotion/react": "^11.4.0",
31
31
  "@emotion/styled": "^11.3.0",
32
32
  "lodash": "4.17.21",