@synerise/ds-table 0.56.7 → 0.57.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.
Files changed (83) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/Cell/Action/ActionCell.d.ts +3 -3
  3. package/dist/Cell/Action/ActionCell.js +14 -5
  4. package/dist/Cell/Action/ActionCell.types.d.ts +9 -4
  5. package/dist/Cell/AvatarLabel/AvatarLabel.d.ts +1 -1
  6. package/dist/Cell/AvatarLabel/AvatarLabel.js +9 -3
  7. package/dist/Cell/AvatarLabel/AvatarLabel.types.d.ts +6 -2
  8. package/dist/Cell/Copyable/Copyable.types.d.ts +7 -2
  9. package/dist/Cell/Copyable/CopyableCell.d.ts +3 -3
  10. package/dist/Cell/Copyable/CopyableCell.js +15 -9
  11. package/dist/Cell/Editable/EditableCell.d.ts +3 -3
  12. package/dist/Cell/Editable/EditableCell.js +16 -11
  13. package/dist/Cell/Editable/EditableCell.types.d.ts +8 -3
  14. package/dist/Cell/FlagLabel/FlagLabelCell.d.ts +3 -3
  15. package/dist/Cell/FlagLabel/FlagLabelCell.js +9 -3
  16. package/dist/Cell/FlagLabel/FlagLabelCell.types.d.ts +7 -2
  17. package/dist/Cell/IconLabel/IconLabel.d.ts +3 -3
  18. package/dist/Cell/IconLabel/IconLabel.js +9 -3
  19. package/dist/Cell/IconLabel/IconLabel.types.d.ts +7 -2
  20. package/dist/Cell/IconTooltipCell/IconTooltipCell.d.ts +3 -3
  21. package/dist/Cell/IconTooltipCell/IconTooltipCell.js +9 -3
  22. package/dist/Cell/IconTooltipCell/IconTooltipCell.types.d.ts +7 -2
  23. package/dist/Cell/LabelsWithShowMore/LabelsWithShowMore.d.ts +3 -3
  24. package/dist/Cell/LabelsWithShowMore/LabelsWithShowMore.js +13 -8
  25. package/dist/Cell/LabelsWithShowMore/LabelsWithShowMore.types.d.ts +12 -7
  26. package/dist/Cell/LabelsWithShowMore/Modal/Modal.d.ts +1 -1
  27. package/dist/Cell/LabelsWithShowMore/Modal/Modal.js +1 -1
  28. package/dist/Cell/LabelsWithShowMore/Modal/Modal.types.d.ts +1 -1
  29. package/dist/Cell/Star/StarCell.d.ts +261 -2
  30. package/dist/Cell/Star/StarCell.js +12 -6
  31. package/dist/Cell/Star/StarCell.types.d.ts +11 -6
  32. package/dist/Cell/StatusLabel/StatusLabel.d.ts +3 -3
  33. package/dist/Cell/StatusLabel/StatusLabel.js +9 -3
  34. package/dist/Cell/StatusLabel/StatusLabel.types.d.ts +10 -5
  35. package/dist/Cell/TagIcon/TagIcon.d.ts +3 -3
  36. package/dist/Cell/TagIcon/TagIcon.js +9 -3
  37. package/dist/Cell/TagIcon/TagIcon.types.d.ts +9 -4
  38. package/dist/ColumnSortMenu/SortIcons.d.ts +1 -1
  39. package/dist/ColumnSortMenu/SortIcons.js +1 -1
  40. package/dist/ColumnSortMenu/TitleWithSort.d.ts +1 -1
  41. package/dist/ColumnSortMenu/TitleWithSort.js +1 -1
  42. package/dist/ColumnSortMenu/columnWithSortButtons.js +1 -1
  43. package/dist/ColumnSortMenu/replaceSortButtons.d.ts +1 -1
  44. package/dist/ColumnSortMenu/useSortState.js +1 -1
  45. package/dist/FilterTrigger/FilterTrigger.d.ts +1 -1
  46. package/dist/FilterTrigger/FilterTrigger.js +1 -1
  47. package/dist/FilterTrigger/FilterTrigger.types.d.ts +1 -1
  48. package/dist/GroupTable/GroupTable.d.ts +1 -1
  49. package/dist/GroupTable/GroupTable.js +1 -1
  50. package/dist/GroupTable/GroupTable.types.d.ts +1 -1
  51. package/dist/GroupTable/GroupTableBody/GroupTableBody.js +1 -1
  52. package/dist/GroupTable/GroupTableBody/GroupTableBody.types.d.ts +1 -1
  53. package/dist/GroupTable/GroupTableHeader/GroupTableHeader.js +1 -1
  54. package/dist/InfiniteScroll/BackToTopButton.d.ts +1 -1
  55. package/dist/InfiniteScroll/BackToTopButton.js +1 -1
  56. package/dist/ItemsMenu/ItemsMenu.d.ts +1 -1
  57. package/dist/ItemsMenu/ItemsMenu.js +1 -1
  58. package/dist/ItemsMenu/ItemsMenu.types.d.ts +1 -1
  59. package/dist/RowSelection/RowSelectionColumn.types.d.ts +1 -1
  60. package/dist/Table.js +8 -7
  61. package/dist/Table.types.d.ts +4 -1
  62. package/dist/TableHeader/TableHeader.d.ts +1 -1
  63. package/dist/TableHeader/TableHeader.js +1 -1
  64. package/dist/TableHeader/TableLimit/TableLimit.d.ts +1 -1
  65. package/dist/TableHeader/TableLimit/TableLimit.js +1 -1
  66. package/dist/TableHeader/TableLimit/TableLimit.types.d.ts +1 -1
  67. package/dist/TableHeader/TableSelection.types.d.ts +1 -1
  68. package/dist/TableSkeleton/TableSkeleton.d.ts +1 -1
  69. package/dist/TableSkeleton/TableSkeleton.js +10 -2
  70. package/dist/TableSkeleton/TableSkeleton.styles.d.ts +9 -3
  71. package/dist/TableSkeleton/TableSkeleton.styles.js +15 -6
  72. package/dist/TableSkeleton/TableSkeleton.types.d.ts +3 -0
  73. package/dist/TableSkeleton/components/TableSkeletonBody.d.ts +2 -1
  74. package/dist/TableSkeleton/components/TableSkeletonBody.js +3 -1
  75. package/dist/TableSkeleton/components/TableSkeletonHeader.d.ts +3 -1
  76. package/dist/TableSkeleton/components/TableSkeletonSubheader.d.ts +3 -1
  77. package/dist/TreeTable/TreeTable.d.ts +1 -1
  78. package/dist/TreeTable/TreeTable.js +1 -1
  79. package/dist/VirtualTable/VirtualTable.d.ts +2 -1
  80. package/dist/hooks/useRowKey/useRowKey.js +1 -1
  81. package/dist/hooks/useRowStar/useRowStar.js +1 -1
  82. package/dist/hooks/useRowStar/useRowStar.types.d.ts +1 -1
  83. package/package.json +28 -28
package/dist/Table.js CHANGED
@@ -7,13 +7,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
7
7
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
8
8
 
9
9
  import React, { useMemo } from 'react';
10
+ import { useIntl } from 'react-intl';
10
11
  import '@synerise/ds-core/dist/js/style';
11
- import "./style/index.css";
12
12
  import Icon, { AngleLeftS, AngleRightS, SpinnerM } from '@synerise/ds-icon';
13
13
  import Button from '@synerise/ds-button';
14
- import { useIntl } from 'react-intl';
15
14
  import Skeleton from '@synerise/ds-skeleton';
16
15
  import { useDataFormat } from '@synerise/ds-data-format';
16
+ import "./style/index.css";
17
17
  import * as S from './Table.styles';
18
18
  import TableHeader from './TableHeader/TableHeader';
19
19
  import DefaultTable from './DefaultTable/DefaultTable';
@@ -26,7 +26,7 @@ export var SELECTION_INVERT = 'SELECTION_INVERT';
26
26
  var ITEM_RENDER_TYPE = {
27
27
  prev: 'prev',
28
28
  next: 'next'
29
- }; // eslint-disable-next-line @typescript-eslint/no-explicit-any
29
+ };
30
30
 
31
31
  function DSTable(props) {
32
32
  var intl = useIntl();
@@ -54,7 +54,8 @@ function DSTable(props) {
54
54
  hideTitlePart = props.hideTitlePart,
55
55
  disableColumnNamesLineBreak = props.disableColumnNamesLineBreak,
56
56
  expandable = props.expandable,
57
- maxHeight = props.maxHeight;
57
+ maxHeight = props.maxHeight,
58
+ skeletonProps = props.skeletonProps;
58
59
  var tableLocale = useTableLocale(intl, locale);
59
60
 
60
61
  var _useDataFormat = useDataFormat(),
@@ -129,9 +130,9 @@ function DSTable(props) {
129
130
  }, pagination);
130
131
  }, [pagination, formatValue, grouped, tableLocale, hideTitlePart]);
131
132
  var defaultTableContent = useMemo(function () {
132
- return loading && !(dataSource != null && dataSource.length) ? /*#__PURE__*/React.createElement(TableSkeleton, {
133
+ return loading && !(dataSource != null && dataSource.length) ? /*#__PURE__*/React.createElement(TableSkeleton, _extends({
133
134
  maxHeight: maxHeight
134
- }) : /*#__PURE__*/React.createElement(DefaultTable, _extends({
135
+ }, skeletonProps)) : /*#__PURE__*/React.createElement(DefaultTable, _extends({
135
136
  scroll: {
136
137
  x: 'auto'
137
138
  },
@@ -141,7 +142,7 @@ function DSTable(props) {
141
142
  title: renderHeader,
142
143
  pagination: dataSource != null && dataSource.length && pagination ? footerPagination : false
143
144
  }));
144
- }, [dataSource == null ? void 0 : dataSource.length, footerPagination, loading, pagination, props, renderHeader, maxHeight, tableLocale]);
145
+ }, [dataSource == null ? void 0 : dataSource.length, skeletonProps, footerPagination, loading, pagination, props, renderHeader, maxHeight, tableLocale]);
145
146
  return /*#__PURE__*/React.createElement(TableLocaleContext.Provider, {
146
147
  value: tableLocale
147
148
  }, /*#__PURE__*/React.createElement(S.TableWrapper, {
@@ -1,6 +1,8 @@
1
1
  import { ReactNode, ReactText, Ref } from 'react';
2
2
  import { ColumnType, TableProps } from 'antd/lib/table';
3
3
  import { TableLocale, TableRowSelection } from 'antd/lib/table/interface';
4
+ import { TableSkeletonProps } from 'TableSkeleton/TableSkeleton.types';
5
+ import { LiteralStringUnion } from '@synerise/ds-utils';
4
6
  import DSTable from './Table';
5
7
  import { GroupType } from './GroupTable/GroupTable.types';
6
8
  import { RowStar } from './hooks/useRowStar';
@@ -103,7 +105,7 @@ export type DSTableProps<T extends any & GroupType<T>> = AntTableProps<T> & {
103
105
  headerWithBorderTop?: boolean;
104
106
  itemsMenu?: string | ReactNode;
105
107
  search?: string;
106
- cellSize?: string | 'medium' | 'small';
108
+ cellSize?: LiteralStringUnion<'medium' | 'small'>;
107
109
  roundedHeader?: boolean;
108
110
  selection?: RowSelection<T>;
109
111
  rowStar?: RowStar<T>;
@@ -126,5 +128,6 @@ export type DSTableProps<T extends any & GroupType<T>> = AntTableProps<T> & {
126
128
  dataSourceFull?: T[];
127
129
  dataSourceTotalCount?: number;
128
130
  maxHeight?: number;
131
+ skeletonProps?: Pick<TableSkeletonProps, 'headerHeight' | 'subheaderHeight' | 'rowHeight'>;
129
132
  };
130
133
  export {};
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { Props } from './TableHeader.types';
3
3
  declare const TableHeader: React.FC<Props>;
4
4
  export default TableHeader;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import Tooltip from '@synerise/ds-tooltip';
3
3
  import { useDataFormat } from '@synerise/ds-data-format';
4
4
  import * as S from '../Table.styles';
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { TableLimitProps } from './TableLimit.types';
3
3
  export declare function TableLimit<T extends {
4
4
  key: React.ReactText;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import Alert from '@synerise/ds-alert';
3
3
  import { useDataFormat } from '@synerise/ds-data-format';
4
4
  import * as S from './TableLimit.styles';
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { Locale, RowSelection } from '../../Table.types';
3
3
  export interface TableLimitProps<T extends {
4
4
  key: React.ReactText;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { RowSelection, Locale } from '../Table.types';
3
3
  export interface Props<T extends {
4
4
  key: React.ReactText;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
2
  import { TableSkeletonProps } from './TableSkeleton.types';
3
- export declare const TableSkeleton: ({ maxHeight, ...htmlAttributes }: TableSkeletonProps) => React.JSX.Element;
3
+ export declare const TableSkeleton: ({ maxHeight, headerHeight, subheaderHeight, rowHeight, ...htmlAttributes }: TableSkeletonProps) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- var _excluded = ["maxHeight"];
1
+ var _excluded = ["maxHeight", "headerHeight", "subheaderHeight", "rowHeight"];
2
2
 
3
3
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
4
 
@@ -10,6 +10,9 @@ import { DEFAULT_ROW_COUNT, TABLE_HEADER, GAP, ROW_HEIGHT, PADDING } from './con
10
10
  import { TableSkeletonHeader, TableSkeletonSubheader, TableSkeletonBody } from './components';
11
11
  export var TableSkeleton = function TableSkeleton(_ref) {
12
12
  var maxHeight = _ref.maxHeight,
13
+ headerHeight = _ref.headerHeight,
14
+ subheaderHeight = _ref.subheaderHeight,
15
+ rowHeight = _ref.rowHeight,
13
16
  htmlAttributes = _objectWithoutPropertiesLoose(_ref, _excluded);
14
17
 
15
18
  var rowCount = useMemo(function () {
@@ -20,7 +23,12 @@ export var TableSkeleton = function TableSkeleton(_ref) {
20
23
  maxHeight: maxHeight
21
24
  }, htmlAttributes, {
22
25
  "data-testid": "ds-table-skeleton"
23
- }), /*#__PURE__*/React.createElement(TableSkeletonHeader, null), /*#__PURE__*/React.createElement(TableSkeletonSubheader, null), /*#__PURE__*/React.createElement(TableSkeletonBody, {
26
+ }), /*#__PURE__*/React.createElement(TableSkeletonHeader, {
27
+ headerHeight: headerHeight
28
+ }), /*#__PURE__*/React.createElement(TableSkeletonSubheader, {
29
+ subheaderHeight: subheaderHeight
30
+ }), /*#__PURE__*/React.createElement(TableSkeletonBody, {
31
+ rowHeight: rowHeight,
24
32
  rows: rowCount
25
33
  }));
26
34
  };
@@ -2,13 +2,19 @@
2
2
  export declare const TableSkeletonWrapper: import("styled-components").StyledComponent<"div", any, {
3
3
  maxHeight?: number | undefined;
4
4
  }, never>;
5
- export declare const TableSkeletonHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
5
+ export declare const TableSkeletonHeader: import("styled-components").StyledComponent<"div", any, {
6
+ headerHeight?: number | undefined;
7
+ }, never>;
6
8
  export declare const Skeleton: import("styled-components").StyledComponent<({ size, numberOfSkeletons, width, height, className }: import("@synerise/ds-skeleton").SkeletonProps) => import("react").JSX.Element, any, {}, never>;
7
9
  export declare const SkeletonWrapper: import("styled-components").StyledComponent<"div", any, {
8
10
  width?: number | undefined;
9
11
  }, never>;
10
- export declare const TableSkeletonSubHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
12
+ export declare const TableSkeletonSubHeader: import("styled-components").StyledComponent<"div", any, {
13
+ subheaderHeight?: number | undefined;
14
+ }, never>;
11
15
  export declare const TableSkeletonLeft: import("styled-components").StyledComponent<"div", any, {}, never>;
12
16
  export declare const TableSkeletonRight: import("styled-components").StyledComponent<"div", any, {}, never>;
13
17
  export declare const TableSkeletonBody: import("styled-components").StyledComponent<"div", any, {}, never>;
14
- export declare const TableSkeletonRow: import("styled-components").StyledComponent<"div", any, {}, never>;
18
+ export declare const TableSkeletonRow: import("styled-components").StyledComponent<"div", any, {
19
+ rowHeight?: number | undefined;
20
+ }, never>;
@@ -1,5 +1,8 @@
1
1
  import styled, { css } from 'styled-components';
2
2
  import DSSkeleton from '@synerise/ds-skeleton';
3
+ var HEADER_HEIGHT = 73;
4
+ var SUBHEADER_HEIGHT = 64;
5
+ var ROW_HEIGHT = 73;
3
6
  var rowCss = css(["display:flex;flex-direction:row;justify-content:space-between;"]);
4
7
  export var TableSkeletonWrapper = styled.div.withConfig({
5
8
  displayName: "TableSkeletonstyles__TableSkeletonWrapper",
@@ -12,7 +15,9 @@ export var TableSkeletonWrapper = styled.div.withConfig({
12
15
  export var TableSkeletonHeader = styled.div.withConfig({
13
16
  displayName: "TableSkeletonstyles__TableSkeletonHeader",
14
17
  componentId: "sc-9yqnm1-1"
15
- })(["", " padding:18px;"], rowCss);
18
+ })(["", " padding:0 18px;height:", "px;"], rowCss, function (props) {
19
+ return props.headerHeight || HEADER_HEIGHT;
20
+ });
16
21
  export var Skeleton = styled(DSSkeleton).withConfig({
17
22
  displayName: "TableSkeletonstyles__Skeleton",
18
23
  componentId: "sc-9yqnm1-2"
@@ -26,24 +31,28 @@ export var SkeletonWrapper = styled.div.withConfig({
26
31
  export var TableSkeletonSubHeader = styled.div.withConfig({
27
32
  displayName: "TableSkeletonstyles__TableSkeletonSubHeader",
28
33
  componentId: "sc-9yqnm1-4"
29
- })(["", " border-top:solid 1px ", ";border-bottom:solid 1px ", ";padding:18px 18px 18px 84px;"], rowCss, function (props) {
34
+ })(["", " border-top:solid 1px ", ";border-bottom:solid 1px ", ";padding:0 18px 0 84px;height:", "px;"], rowCss, function (props) {
30
35
  return props.theme.palette['grey-200'];
31
36
  }, function (props) {
32
37
  return props.theme.palette['grey-200'];
38
+ }, function (props) {
39
+ return props.subheaderHeight || SUBHEADER_HEIGHT;
33
40
  });
34
41
  export var TableSkeletonLeft = styled.div.withConfig({
35
42
  displayName: "TableSkeletonstyles__TableSkeletonLeft",
36
43
  componentId: "sc-9yqnm1-5"
37
- })(["display:flex;flex-direction:row;gap:50px;"]);
44
+ })(["display:flex;flex-direction:row;gap:50px;align-items:center;"]);
38
45
  export var TableSkeletonRight = styled.div.withConfig({
39
46
  displayName: "TableSkeletonstyles__TableSkeletonRight",
40
47
  componentId: "sc-9yqnm1-6"
41
- })(["display:flex;flex-direction:row;gap:50px;"]);
48
+ })(["display:flex;flex-direction:row;gap:50px;align-items:center;"]);
42
49
  export var TableSkeletonBody = styled.div.withConfig({
43
50
  displayName: "TableSkeletonstyles__TableSkeletonBody",
44
51
  componentId: "sc-9yqnm1-7"
45
- })(["display:flex;flex-direction:column;gap:36px;padding:18px;"]);
52
+ })(["display:flex;flex-direction:column;padding:0 18px;"]);
46
53
  export var TableSkeletonRow = styled.div.withConfig({
47
54
  displayName: "TableSkeletonstyles__TableSkeletonRow",
48
55
  componentId: "sc-9yqnm1-8"
49
- })(["", ""], rowCss);
56
+ })(["", " height:", "px;"], rowCss, function (props) {
57
+ return props.rowHeight || ROW_HEIGHT;
58
+ });
@@ -1,4 +1,7 @@
1
1
  import { HTMLAttributes } from 'react';
2
2
  export type TableSkeletonProps = HTMLAttributes<HTMLDivElement> & {
3
3
  maxHeight?: number;
4
+ headerHeight?: number;
5
+ subheaderHeight?: number;
6
+ rowHeight?: number;
4
7
  };
@@ -1,6 +1,7 @@
1
1
  import React, { HTMLAttributes } from 'react';
2
2
  type TableSkeletonBodyProps = HTMLAttributes<HTMLDivElement> & {
3
3
  rows: number;
4
+ rowHeight?: number;
4
5
  };
5
- export declare const TableSkeletonBody: ({ rows, ...htmlAttributes }: TableSkeletonBodyProps) => React.JSX.Element;
6
+ export declare const TableSkeletonBody: ({ rows, rowHeight, ...htmlAttributes }: TableSkeletonBodyProps) => React.JSX.Element;
6
7
  export {};
@@ -1,4 +1,4 @@
1
- var _excluded = ["rows"];
1
+ var _excluded = ["rows", "rowHeight"];
2
2
 
3
3
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
4
4
 
@@ -11,12 +11,14 @@ import { SKELETON_BAR_TINY, SKELETON_BAR_WIDE } from '../constants';
11
11
  export var TableSkeletonBody = function TableSkeletonBody(_ref) {
12
12
  var _ref$rows = _ref.rows,
13
13
  rows = _ref$rows === void 0 ? 10 : _ref$rows,
14
+ rowHeight = _ref.rowHeight,
14
15
  htmlAttributes = _objectWithoutPropertiesLoose(_ref, _excluded);
15
16
 
16
17
  return /*#__PURE__*/React.createElement(S.TableSkeletonBody, htmlAttributes, Array.from({
17
18
  length: rows
18
19
  }, function (_, index) {
19
20
  return /*#__PURE__*/React.createElement(S.TableSkeletonRow, {
21
+ rowHeight: rowHeight,
20
22
  "data-testid": "ds-table-skeleton-row",
21
23
  key: "ds-skeleton-row-" + index
22
24
  }, /*#__PURE__*/React.createElement(S.TableSkeletonLeft, null, /*#__PURE__*/React.createElement(TableSkeletonBar, {
@@ -1,2 +1,4 @@
1
1
  import React, { HTMLAttributes } from 'react';
2
- export declare const TableSkeletonHeader: (props: HTMLAttributes<HTMLDivElement>) => React.JSX.Element;
2
+ export declare const TableSkeletonHeader: (props: HTMLAttributes<HTMLDivElement> & {
3
+ headerHeight?: number;
4
+ }) => React.JSX.Element;
@@ -1,2 +1,4 @@
1
1
  import React, { HTMLAttributes } from 'react';
2
- export declare const TableSkeletonSubheader: (props: HTMLAttributes<HTMLDivElement>) => React.JSX.Element;
2
+ export declare const TableSkeletonSubheader: (props: HTMLAttributes<HTMLDivElement> & {
3
+ subheaderHeight?: number;
4
+ }) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import '@synerise/ds-core/dist/js/style';
3
3
  import { DSTableProps } from '../Table.types';
4
4
  declare function TreeTable<T extends object = any>(props: DSTableProps<T>): React.ReactElement;
@@ -1,6 +1,6 @@
1
1
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
- import * as React from 'react';
3
+ import React from 'react';
4
4
  import '@synerise/ds-core/dist/js/style';
5
5
  import classNames from 'classnames';
6
6
  import Button from '@synerise/ds-button';
@@ -11,7 +11,7 @@ declare const _default: <T extends object & RowType<T> & {
11
11
  headerWithBorderTop?: boolean | undefined;
12
12
  itemsMenu?: React.ReactNode;
13
13
  search?: string | undefined;
14
- cellSize?: string | undefined;
14
+ cellSize?: import("@synerise/ds-utils").LiteralStringUnion<"small" | "medium"> | undefined;
15
15
  roundedHeader?: boolean | undefined;
16
16
  selection?: RowSelection<T> | undefined;
17
17
  rowStar?: import("../hooks/useRowStar").RowStar<T> | undefined;
@@ -36,6 +36,7 @@ declare const _default: <T extends object & RowType<T> & {
36
36
  dataSourceFull?: T[] | undefined;
37
37
  dataSourceTotalCount?: number | undefined;
38
38
  maxHeight?: number | undefined;
39
+ skeletonProps?: Pick<import("../TableSkeleton/TableSkeleton.types").TableSkeletonProps, "headerHeight" | "subheaderHeight" | "rowHeight"> | undefined;
39
40
  } & {
40
41
  cellHeight: number;
41
42
  infiniteScroll?: import("../InfiniteScroll/InfiniteLoaderItem.types").InfiniteScrollProps | undefined;
@@ -1,4 +1,4 @@
1
- import * as React from 'react'; // eslint-disable-next-line @typescript-eslint/no-explicit-any
1
+ import React from 'react'; // eslint-disable-next-line @typescript-eslint/no-explicit-any
2
2
 
3
3
  // eslint-disable-next-line import/prefer-default-export
4
4
  export var useRowKey = function useRowKey(rowKey) {
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import Button from '@synerise/ds-button';
3
3
  import Tooltip from '@synerise/ds-tooltip';
4
4
  var STAR_COL_WIDTH_SINGLE = 64;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { ColumnType } from 'antd/lib/table';
3
3
  import { DSTableProps, DSColumnType } from '../../Table.types';
4
4
  export interface RowStar<T> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-table",
3
- "version": "0.56.7",
3
+ "version": "0.57.0",
4
4
  "description": "Table UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "synerise/synerise-design",
@@ -33,35 +33,35 @@
33
33
  ],
34
34
  "types": "dist/index.d.ts",
35
35
  "dependencies": {
36
- "@synerise/ds-alert": "^0.8.27",
37
- "@synerise/ds-badge": "^0.8.8",
38
- "@synerise/ds-button": "^0.21.9",
39
- "@synerise/ds-button-group": "^0.7.13",
40
- "@synerise/ds-checkbox": "^0.12.6",
41
- "@synerise/ds-column-manager": "^0.11.71",
42
- "@synerise/ds-data-format": "^0.5.2",
43
- "@synerise/ds-dropdown": "^0.18.13",
44
- "@synerise/ds-flag": "^0.5.1",
45
- "@synerise/ds-icon": "^0.65.4",
46
- "@synerise/ds-input": "^0.24.3",
47
- "@synerise/ds-loader": "^0.3.13",
48
- "@synerise/ds-menu": "^0.19.13",
49
- "@synerise/ds-modal": "^0.17.40",
50
- "@synerise/ds-pagination": "^0.7.61",
51
- "@synerise/ds-result": "^0.7.3",
52
- "@synerise/ds-scrollbar": "^0.11.9",
53
- "@synerise/ds-search": "^0.9.9",
54
- "@synerise/ds-select": "^0.16.15",
55
- "@synerise/ds-skeleton": "^0.6.7",
56
- "@synerise/ds-status": "^0.6.21",
57
- "@synerise/ds-tags": "^0.10.6",
58
- "@synerise/ds-tooltip": "^0.14.39",
59
- "@synerise/ds-typography": "^0.15.1",
60
- "@synerise/ds-utils": "^0.29.1",
36
+ "@synerise/ds-alert": "^0.8.29",
37
+ "@synerise/ds-badge": "^0.8.10",
38
+ "@synerise/ds-button": "^0.21.11",
39
+ "@synerise/ds-button-group": "^0.7.15",
40
+ "@synerise/ds-checkbox": "^0.12.8",
41
+ "@synerise/ds-column-manager": "^0.12.0",
42
+ "@synerise/ds-data-format": "^0.5.3",
43
+ "@synerise/ds-dropdown": "^0.18.15",
44
+ "@synerise/ds-flag": "^0.5.2",
45
+ "@synerise/ds-icon": "^0.65.6",
46
+ "@synerise/ds-input": "^0.24.5",
47
+ "@synerise/ds-loader": "^0.3.15",
48
+ "@synerise/ds-menu": "^0.19.15",
49
+ "@synerise/ds-modal": "^0.17.42",
50
+ "@synerise/ds-pagination": "^0.7.63",
51
+ "@synerise/ds-result": "^0.7.5",
52
+ "@synerise/ds-scrollbar": "^0.11.11",
53
+ "@synerise/ds-search": "^0.9.11",
54
+ "@synerise/ds-select": "^0.16.17",
55
+ "@synerise/ds-skeleton": "^0.6.9",
56
+ "@synerise/ds-status": "^0.6.23",
57
+ "@synerise/ds-tags": "^0.10.8",
58
+ "@synerise/ds-tooltip": "^0.14.41",
59
+ "@synerise/ds-typography": "^0.15.2",
60
+ "@synerise/ds-utils": "^0.29.3",
61
61
  "@types/react-window": "^1.8.5",
62
62
  "classnames": "2.3.2",
63
63
  "copy-to-clipboard": "^3.3.1",
64
- "lodash": "^4.17.19",
64
+ "lodash": "^4.17.21",
65
65
  "ramda": "0.27.0",
66
66
  "rc-resize-observer": "^0.2.1",
67
67
  "rc-table": "7.10.4",
@@ -77,5 +77,5 @@
77
77
  "react-dom": "^16.14.0",
78
78
  "styled-components": "5.0.1"
79
79
  },
80
- "gitHead": "fcf3fa64e906cf9fefb37a61ee28218c8eed9b73"
80
+ "gitHead": "ae3c38b44ca0f9071cd55f7b82c182a99b5710e8"
81
81
  }