@redis-ui/table 2.25.0 → 3.4.1

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 (76) hide show
  1. package/dist/Table/Table.cjs +27 -4
  2. package/dist/Table/Table.context.d.ts +0 -1
  3. package/dist/Table/Table.d.ts +18 -14
  4. package/dist/Table/Table.js +27 -4
  5. package/dist/Table/Table.style.cjs +65 -39
  6. package/dist/Table/Table.style.d.ts +9 -6
  7. package/dist/Table/Table.style.js +65 -39
  8. package/dist/Table/Table.types.d.ts +13 -20
  9. package/dist/Table/components/Compose/Compose.cjs +2 -3
  10. package/dist/Table/components/Compose/Compose.d.ts +1 -1
  11. package/dist/Table/components/Compose/Compose.js +2 -3
  12. package/dist/Table/components/PluggableTable/PluggableTable.cjs +7 -1
  13. package/dist/Table/components/PluggableTable/PluggableTable.d.ts +3 -1
  14. package/dist/Table/components/PluggableTable/PluggableTable.js +7 -1
  15. package/dist/Table/components/PluggableTable/compositionComponents.cjs +4 -0
  16. package/dist/Table/components/PluggableTable/compositionComponents.d.ts +6 -4
  17. package/dist/Table/components/PluggableTable/compositionComponents.js +4 -0
  18. package/dist/Table/components/TableBody/TableBody.d.ts +2 -2
  19. package/dist/Table/components/TableBodyCell/TableBodyCell.d.ts +1 -1
  20. package/dist/Table/components/TableBodyCell/components/CellContainers/CellContainers.cjs +21 -0
  21. package/dist/Table/components/TableBodyCell/components/CellContainers/CellContainers.d.ts +2 -0
  22. package/dist/Table/components/TableBodyCell/components/CellContainers/CellContainers.js +21 -0
  23. package/dist/Table/components/TableBodyCell/components/CellContainers/CellContainers.style.cjs +16 -0
  24. package/dist/Table/components/TableBodyCell/components/CellContainers/CellContainers.style.d.ts +3 -0
  25. package/dist/Table/components/TableBodyCell/components/CellContainers/CellContainers.style.js +14 -0
  26. package/dist/Table/components/TableBodyCell/components/CellContainers/CellContainers.test.d.ts +1 -0
  27. package/dist/Table/components/TableBodyCell/components/Compose/Compose.cjs +12 -3
  28. package/dist/Table/components/TableBodyCell/components/Compose/Compose.d.ts +1 -1
  29. package/dist/Table/components/TableBodyCell/components/Compose/Compose.js +12 -3
  30. package/dist/Table/components/TableBodyRow/TableBodyRow.d.ts +1 -1
  31. package/dist/Table/components/TableBodyRow/components/Compose/Compose.d.ts +1 -1
  32. package/dist/Table/components/TableBottomBar/TableBottomBar.cjs +12 -0
  33. package/dist/Table/components/TableBottomBar/TableBottomBar.d.ts +2 -0
  34. package/dist/Table/components/TableBottomBar/TableBottomBar.js +12 -0
  35. package/dist/Table/components/TableBottomBar/TableBottomBar.test.d.ts +1 -0
  36. package/dist/Table/components/TableExpandedRow/TableAnimatedExpandedRow.cjs +8 -1
  37. package/dist/Table/components/TableExpandedRow/TableAnimatedExpandedRow.d.ts +1 -1
  38. package/dist/Table/components/TableExpandedRow/TableAnimatedExpandedRow.js +9 -2
  39. package/dist/Table/components/TableExpandedRow/TableAnimatedExpandedRow.style.cjs +11 -1
  40. package/dist/Table/components/TableExpandedRow/TableAnimatedExpandedRow.style.d.ts +3 -2
  41. package/dist/Table/components/TableExpandedRow/TableAnimatedExpandedRow.style.js +11 -1
  42. package/dist/Table/components/TableExpandedRow/TableExpandedRow.cjs +2 -1
  43. package/dist/Table/components/TableExpandedRow/TableExpandedRow.d.ts +1 -1
  44. package/dist/Table/components/TableExpandedRow/TableExpandedRow.js +2 -1
  45. package/dist/Table/components/TableExpandedRow/TableExpandedRow.style.cjs +2 -2
  46. package/dist/Table/components/TableExpandedRow/TableExpandedRow.style.js +2 -2
  47. package/dist/Table/components/TableExpandedRow/TableExpandedRow.types.d.ts +3 -2
  48. package/dist/Table/components/TableHeader/TableHeader.d.ts +1 -1
  49. package/dist/Table/components/TableHeaderCell/TableHeaderCell.d.ts +1 -1
  50. package/dist/Table/components/TableHeaderCell/components/Compose/Compose.cjs +1 -1
  51. package/dist/Table/components/TableHeaderCell/components/Compose/Compose.d.ts +1 -1
  52. package/dist/Table/components/TableHeaderCell/components/Compose/Compose.js +2 -2
  53. package/dist/Table/components/TablePagination/TablePagination.style.cjs +1 -1
  54. package/dist/Table/components/TablePagination/TablePagination.style.js +1 -1
  55. package/dist/Table/components/TableRoot/TableRoot.cjs +6 -3
  56. package/dist/Table/components/TableRoot/TableRoot.js +7 -4
  57. package/dist/Table/components/TableTopBar/TableTopBar.cjs +12 -0
  58. package/dist/Table/components/TableTopBar/TableTopBar.d.ts +2 -0
  59. package/dist/Table/components/TableTopBar/TableTopBar.js +12 -0
  60. package/dist/Table/components/TableTopBar/TableTopBar.test.d.ts +1 -0
  61. package/dist/Table/index.d.ts +1 -0
  62. package/dist/Table/plugins/ColumnVisibilityPlugin.cjs +14 -0
  63. package/dist/Table/plugins/ColumnVisibilityPlugin.d.ts +10 -0
  64. package/dist/Table/plugins/ColumnVisibilityPlugin.js +14 -0
  65. package/dist/Table/plugins/ColumnVisibilityPlugin.test.d.ts +1 -0
  66. package/dist/Table/plugins/FilteringPlugin.cjs +25 -0
  67. package/dist/Table/plugins/FilteringPlugin.d.ts +20 -0
  68. package/dist/Table/plugins/FilteringPlugin.js +25 -0
  69. package/dist/Table/plugins/FilteringPlugin.test.d.ts +1 -0
  70. package/dist/Table/tanStackExtendedTypes.d.ts +5 -3
  71. package/dist/Table/utils/table.utils.cjs +13 -0
  72. package/dist/Table/utils/table.utils.d.ts +12 -0
  73. package/dist/Table/utils/table.utils.js +13 -0
  74. package/dist/index.cjs +2 -0
  75. package/dist/index.js +2 -0
  76. package/package.json +4 -4
@@ -6,11 +6,11 @@ import { useTableContext } from "./Table.context.js";
6
6
  const TableContainer = _styled.div.withConfig({
7
7
  displayName: "Tablestyle__TableContainer",
8
8
  componentId: "RedisUI__sc-o0xfty-0"
9
- })(["width:100%;border-radius:0.8rem;box-shadow:", ";background-color:", ";overflow:hidden;"], () => useTheme().components.table.table.tableContainer.boxShadow, () => useTheme().components.table.table.tableContainer.backgroundColor);
10
- const Table = _styled.table.withConfig({
11
- displayName: "Tablestyle__Table",
9
+ })(["width:100%;border-radius:", ";box-shadow:", ";background-color:", ";overflow:hidden;display:flex;flex-direction:column;"], () => useTheme().components.table.table.tableContainer.borderRadius, () => useTheme().components.table.table.tableContainer.boxShadow, () => useTheme().components.table.table.tableContainer.backgroundColor);
10
+ const TableScroller = _styled.div.withConfig({
11
+ displayName: "Tablestyle__TableScroller",
12
12
  componentId: "RedisUI__sc-o0xfty-1"
13
- })(["width:100%;border-collapse:collapse;border-spacing:0;overflow-x:auto;display:block;table-layout:fixed;", ""], () => {
13
+ })(["flex:1;width:100%;overflow:auto;", ""], () => {
14
14
  const {
15
15
  table
16
16
  } = useTableContext();
@@ -18,33 +18,66 @@ const Table = _styled.table.withConfig({
18
18
  overflow-x: ${table.getRowModel().rows.length ? "auto" : "hidden"};
19
19
  `;
20
20
  });
21
- const TableHead = _styled.thead.attrs((props) => ({
22
- "data-role": "table-header",
23
- ...props
24
- })).withConfig({
25
- displayName: "Tablestyle__TableHead",
21
+ const TableTopBar = _styled.div.withConfig({
22
+ displayName: "Tablestyle__TableTopBar",
26
23
  componentId: "RedisUI__sc-o0xfty-2"
27
- })(["display:table;table-layout:fixed;", ""], () => {
24
+ })(["", ""], () => {
25
+ const styles = useTheme().components.table.table.topBar;
26
+ return css`
27
+ display: flex;
28
+ align-items: center;
29
+ gap: ${styles.gap};
30
+ padding: ${styles.padding};
31
+ min-height: ${styles.minHeight};
32
+ border-bottom: ${styles.separator.width} solid ${styles.separator.color};
33
+ background-color: ${styles.bgColor};
34
+ `;
35
+ });
36
+ const TableBottomBar = _styled.div.withConfig({
37
+ displayName: "Tablestyle__TableBottomBar",
38
+ componentId: "RedisUI__sc-o0xfty-3"
39
+ })(["", ""], () => {
40
+ const styles = useTheme().components.table.table.bottomBar;
41
+ return css`
42
+ display: flex;
43
+ align-items: center;
44
+ gap: ${styles.gap};
45
+ padding: ${styles.padding};
46
+ min-height: ${styles.minHeight};
47
+ border-top: ${styles.separator.width} solid ${styles.separator.color};
48
+ background-color: ${styles.bgColor};
49
+ `;
50
+ });
51
+ const Table = _styled.table.withConfig({
52
+ displayName: "Tablestyle__Table",
53
+ componentId: "RedisUI__sc-o0xfty-4"
54
+ })(["border-collapse:separate;border-spacing:0;width:100%;table-layout:fixed;min-width:", ";"], () => {
28
55
  const {
56
+ table,
29
57
  minWidth
30
58
  } = useTableContext();
31
- return css`
32
- min-width: ${minWidth || void 0};
33
- `;
59
+ return table.getRowModel().rows.length && minWidth || void 0;
34
60
  });
61
+ const TableHead = _styled.thead.attrs((props) => ({
62
+ "data-role": "table-header",
63
+ ...props
64
+ })).withConfig({
65
+ displayName: "Tablestyle__TableHead",
66
+ componentId: "RedisUI__sc-o0xfty-5"
67
+ })(["position:sticky;top:0;z-index:3;background-color:", ";"], () => useTheme().components.table.table.tableHeaderRow.bgColor);
35
68
  const TableHeaderRow = _styled.tr.withConfig({
36
69
  displayName: "Tablestyle__TableHeaderRow",
37
- componentId: "RedisUI__sc-o0xfty-3"
38
- })(["height:5.6rem;display:table;width:100%;table-layout:fixed;"]);
70
+ componentId: "RedisUI__sc-o0xfty-6"
71
+ })(["height:", ";"], () => useTheme().components.table.table.tableHeaderRow.minHeight);
39
72
  const SortableHeadingCompose = _styled.button.withConfig({
40
73
  displayName: "Tablestyle__SortableHeadingCompose",
41
- componentId: "RedisUI__sc-o0xfty-4"
74
+ componentId: "RedisUI__sc-o0xfty-7"
42
75
  })(["all:unset;border-radius:0.03rem;display:flex;align-items:center;justify-content:flex-start;gap:0.8rem;height:100%;width:100%;min-height:35px;max-width:100%;overflow:", ";", " svg{flex:none;}"], ({
43
76
  $custom
44
77
  }) => $custom ? void 0 : "hidden", getFocusStyle("0.6rem"));
45
78
  const HeaderTitleWrapper = _styled(Typography.Body).withConfig({
46
79
  displayName: "Tablestyle__HeaderTitleWrapper",
47
- componentId: "RedisUI__sc-o0xfty-5"
80
+ componentId: "RedisUI__sc-o0xfty-8"
48
81
  })(["flex:0 1 auto;white-space:inherit;text-align:start;", ""], ({
49
82
  $isTextual
50
83
  }) => $isTextual ? null : css`
@@ -52,28 +85,18 @@ const HeaderTitleWrapper = _styled(Typography.Body).withConfig({
52
85
  align-items: center;
53
86
  justify-content: flex-start;
54
87
  `);
55
- const TableTh = _styled.th.withConfig({
56
- displayName: "Tablestyle__TableTh",
57
- componentId: "RedisUI__sc-o0xfty-6"
58
- })(["padding:1.05rem 1.2rem;color:", ";user-select:none;white-space:nowrap;word-break:break-word;line-height:normal;position:relative;overflow:hidden;&[aria-sort]{cursor:pointer;}&:not(:last-child)::after{content:'';position:absolute;inset:1.05rem 0 1.05rem auto;border-right:1px solid ", ";}"], () => useTheme().components.table.table.tableTh.color, () => useTheme().components.table.table.tableTh.borderRight);
88
+ const TableHeaderCell = _styled.th.withConfig({
89
+ displayName: "Tablestyle__TableHeaderCell",
90
+ componentId: "RedisUI__sc-o0xfty-9"
91
+ })(["padding:", ";color:", ";user-select:none;white-space:nowrap;word-break:break-word;line-height:normal;position:relative;overflow:hidden;border-bottom:", " solid ", ";&[aria-sort]{cursor:pointer;}&:not(:last-child)::after{content:'';position:absolute;inset-inline-end:0;inset-block:", ";border-right:", " solid ", ";}"], () => useTheme().components.table.table.tableHeaderCell.padding, () => useTheme().components.table.table.tableHeaderCell.color, () => useTheme().components.table.table.tableHeaderRow.separator.width, () => useTheme().components.table.table.tableHeaderRow.separator.color, () => useTheme().components.table.table.tableHeaderCell.separator.blockPadding, () => useTheme().components.table.table.tableHeaderCell.separator.width, () => useTheme().components.table.table.tableHeaderCell.separator.color);
59
92
  const TableBody = _styled.tbody.withConfig({
60
93
  displayName: "Tablestyle__TableBody",
61
- componentId: "RedisUI__sc-o0xfty-7"
62
- })(["", " overflow-y:auto;overflow-x:hidden;display:inline-block;table-layout:fixed;"], () => {
63
- const {
64
- maxHeight,
65
- minWidth,
66
- table
67
- } = useTableContext();
68
- return css`
69
- max-height: ${maxHeight};
70
- min-width: ${table.getRowModel().rows.length && minWidth || void 0};
71
- `;
72
- });
94
+ componentId: "RedisUI__sc-o0xfty-10"
95
+ })([""]);
73
96
  const TableBodyRow = _styled.tr.withConfig({
74
97
  displayName: "Tablestyle__TableBodyRow",
75
- componentId: "RedisUI__sc-o0xfty-8"
76
- })(["border-top:1px solid ", ";height:4.8rem;transition:box-shadow 0.2s ease-in-out;position:relative;&:hover,&:focus,&:focus-within{cursor:", ";z-index:1;box-shadow:", ";", "{opacity:1;visibility:visible;}}", " display:table;width:100%;table-layout:fixed;"], () => useTheme().components.table.table.tableBodyRow.borderTop, ({
98
+ componentId: "RedisUI__sc-o0xfty-11"
99
+ })(["> *{border-top:", " solid transparent;}&:not(:first-child) > *{border-top-color:", ";}height:", ";transition:box-shadow 0.2s ease-in-out;position:relative;&:hover,&:focus,&:focus-within{cursor:", ";z-index:1;box-shadow:", ";", "{opacity:1;visibility:visible;}}", ""], () => useTheme().components.table.table.tableBodyRow.separator.width, () => useTheme().components.table.table.tableBodyRow.separator.color, () => useTheme().components.table.table.tableBodyRow.minHeight, ({
77
100
  onClick
78
101
  }) => onClick ? "pointer" : "default", () => useTheme().components.table.table.tableBodyRow.hoverBoxShadow, ShowOnRowHover, ({
79
102
  $stripedRows
@@ -84,11 +107,11 @@ const TableBodyRow = _styled.tr.withConfig({
84
107
  `);
85
108
  const TableBodyCell = _styled.td.withConfig({
86
109
  displayName: "Tablestyle__TableBodyCell",
87
- componentId: "RedisUI__sc-o0xfty-9"
88
- })(["color:", ";padding:0 1.2rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;"], () => useTheme().components.table.table.tableBodyCell.color);
110
+ componentId: "RedisUI__sc-o0xfty-12"
111
+ })(["color:", ";padding:", ";text-overflow:ellipsis;overflow:hidden;white-space:nowrap;"], () => useTheme().components.table.table.tableBodyCell.color, () => useTheme().components.table.table.tableBodyCell.padding);
89
112
  const EmptyStateContainer = _styled.div.withConfig({
90
113
  displayName: "Tablestyle__EmptyStateContainer",
91
- componentId: "RedisUI__sc-o0xfty-10"
114
+ componentId: "RedisUI__sc-o0xfty-13"
92
115
  })(["text-align:center;"]);
93
116
  export {
94
117
  EmptyStateContainer,
@@ -98,8 +121,11 @@ export {
98
121
  TableBody,
99
122
  TableBodyCell,
100
123
  TableBodyRow,
124
+ TableBottomBar,
101
125
  TableContainer,
102
126
  TableHead,
127
+ TableHeaderCell,
103
128
  TableHeaderRow,
104
- TableTh
129
+ TableScroller,
130
+ TableTopBar
105
131
  };
@@ -1,32 +1,25 @@
1
- import type { CellContext, ColumnDef, PaginationState, Row, SortingState } from '@tanstack/react-table';
1
+ import { ReactElement, ReactNode } from 'react';
2
2
  import { TableExpandableRowParams } from './plugins/ExpandableRowPlugin';
3
3
  import { TablePaginationParams } from './plugins/PaginationPlugin';
4
4
  import { TableRowSelectionParams } from './plugins/RowSelectionPlugin';
5
5
  import { TableSortingParams } from './plugins/SortingPlugin';
6
- import { EmptyStateProps } from './components/EmptyState/EmptyState';
6
+ import { TableFilteringParams } from './plugins/FilteringPlugin';
7
7
  import { TableRowNavigationParams } from './plugins/RowNavigationPlugin';
8
+ import { OwnPluggableTableProps, RestPluggableTableProps } from './components/PluggableTable/PluggableTable';
9
+ import { TableColumnVisibilityParams } from './plugins/ColumnVisibilityPlugin';
8
10
  export * from '@tanstack/react-table';
9
- /** @deprecated use ColumnDef */
10
- export type ColumnDefinition<T extends object> = ColumnDef<T>;
11
- /** @deprecated use Row */
12
- export type RowDefinition<T extends object> = Row<T>;
13
- /** @deprecated use CellContext */
14
- export type CellDefinition<T extends object, D> = CellContext<T, D>;
15
- /** @deprecated use PaginationState */
16
- export type PaginationTypes = PaginationState;
17
- /** @deprecated use SortingState */
18
- export type SortingTypes = SortingState;
19
11
  type TableExpandableRowProps<T extends object> = Omit<TableExpandableRowParams<T>, 'getRowCanExpand'> & {
20
12
  getIsRowExpandable?: (rowData: T) => boolean;
21
13
  };
22
- export interface TableProps<T extends object> extends TableSortingParams, TableExpandableRowProps<T>, TablePaginationParams, TableRowSelectionParams<T>, TableRowNavigationParams {
23
- data: T[];
24
- columns: ColumnDef<T>[];
14
+ export interface TableProps<T extends object> extends TableSortingParams, TableColumnVisibilityParams, TableFilteringParams<T>, TableExpandableRowProps<T>, TablePaginationParams, TableRowSelectionParams<T>, TableRowNavigationParams, Omit<OwnPluggableTableProps<T>, 'tableOptions' | 'pluginsData' | 'emptyStateRender' | 'components'>, RestPluggableTableProps {
25
15
  getRowId?: (rowData: T, index: number) => string;
26
16
  onRowClick?: (rowData: T) => void;
27
- emptyState?: EmptyStateProps['emptyStateRender'];
28
- maxHeight?: string;
29
- minWidth?: string;
30
- stripedRows?: boolean;
31
- caption?: string;
17
+ emptyState?: OwnPluggableTableProps<T>['emptyStateRender'];
32
18
  }
19
+ export type ColumnSizeUnit = 'fraction' | 'px' | 'rem';
20
+ /** @deprecated use {@link ColumnSizeUnit} instead */
21
+ export type CellSizingUnits = ColumnSizeUnit;
22
+ export type CellContainerComponent = ({ children }: {
23
+ children: ReactNode;
24
+ }) => ReactElement;
25
+ export type ColumnCellContainer = 'flex' | 'ellipsis' | CellContainerComponent;
@@ -12,7 +12,6 @@ const TableCompose = ({
12
12
  pluginsData,
13
13
  tableOptions,
14
14
  components,
15
- maxHeight,
16
15
  minWidth,
17
16
  stripedRows,
18
17
  ...restProps
@@ -31,13 +30,13 @@ const TableCompose = ({
31
30
  plugins: mergedPluginsData.context,
32
31
  components,
33
32
  stripedRows,
34
- maxHeight,
35
33
  minWidth
36
34
  };
37
35
  return jsxRuntime.jsxRuntimeExports.jsx(Table_context.TableContextProvider, {
38
36
  value: tableContext,
39
37
  children: jsxRuntime.jsxRuntimeExports.jsx(Table_style.TableContainer, {
40
- ...restProps
38
+ ...restProps,
39
+ "data-role": "table-container"
41
40
  })
42
41
  });
43
42
  };
@@ -11,4 +11,4 @@ export type OwnTableComposeProps<T extends object> = TableMainContextProps & {
11
11
  };
12
12
  export type RestTableComposeProps = ComposeElementProps;
13
13
  export type TableComposeProps<T extends object> = OwnTableComposeProps<T> & RestTableComposeProps;
14
- export declare const TableCompose: <T extends object>({ data, columns, pluginsData, tableOptions, components, maxHeight, minWidth, stripedRows, ...restProps }: TableComposeProps<T>) => import("react/jsx-runtime").JSX.Element;
14
+ export declare const TableCompose: <T extends object>({ data, columns, pluginsData, tableOptions, components, minWidth, stripedRows, ...restProps }: TableComposeProps<T>) => import("react/jsx-runtime").JSX.Element;
@@ -10,7 +10,6 @@ const TableCompose = ({
10
10
  pluginsData,
11
11
  tableOptions,
12
12
  components,
13
- maxHeight,
14
13
  minWidth,
15
14
  stripedRows,
16
15
  ...restProps
@@ -29,13 +28,13 @@ const TableCompose = ({
29
28
  plugins: mergedPluginsData.context,
30
29
  components,
31
30
  stripedRows,
32
- maxHeight,
33
31
  minWidth
34
32
  };
35
33
  return jsxRuntimeExports.jsx(TableContextProvider, {
36
34
  value: tableContext,
37
35
  children: jsxRuntimeExports.jsx(TableContainer, {
38
- ...restProps
36
+ ...restProps,
37
+ "data-role": "table-container"
39
38
  })
40
39
  });
41
40
  };
@@ -5,15 +5,21 @@ const compositionComponents = require("./compositionComponents.cjs");
5
5
  const PluggableTable = ({
6
6
  caption,
7
7
  emptyStateRender,
8
+ topBar,
9
+ bottomBar,
8
10
  ...restProps
9
11
  }) => jsxRuntime.jsxRuntimeExports.jsxs(compositionComponents.compositionComponents.Compose, {
10
12
  ...restProps,
11
- children: [jsxRuntime.jsxRuntimeExports.jsxs(compositionComponents.compositionComponents.Root, {
13
+ children: [jsxRuntime.jsxRuntimeExports.jsx(compositionComponents.compositionComponents.TopBar, {
14
+ children: topBar
15
+ }), jsxRuntime.jsxRuntimeExports.jsxs(compositionComponents.compositionComponents.Root, {
12
16
  children: [jsxRuntime.jsxRuntimeExports.jsx(compositionComponents.compositionComponents.SRCaption, {
13
17
  caption
14
18
  }), jsxRuntime.jsxRuntimeExports.jsx(compositionComponents.compositionComponents.Header, {}), jsxRuntime.jsxRuntimeExports.jsx(compositionComponents.compositionComponents.EmptyState, {
15
19
  emptyStateRender
16
20
  }), jsxRuntime.jsxRuntimeExports.jsx(compositionComponents.compositionComponents.Body, {})]
21
+ }), jsxRuntime.jsxRuntimeExports.jsx(compositionComponents.compositionComponents.BottomBar, {
22
+ children: bottomBar
17
23
  }), jsxRuntime.jsxRuntimeExports.jsx(compositionComponents.compositionComponents.Pagination, {}), jsxRuntime.jsxRuntimeExports.jsx(compositionComponents.compositionComponents.SRSortingNotification, {})]
18
24
  });
19
25
  exports.PluggableTable = PluggableTable;
@@ -4,7 +4,9 @@ import { OwnTableComposeProps, RestTableComposeProps } from '../Compose/Compose'
4
4
  export type OwnPluggableTableProps<T extends object> = OwnTableComposeProps<T> & {
5
5
  caption?: string;
6
6
  emptyStateRender?: (() => ReactNode) | string;
7
+ topBar?: ReactNode;
8
+ bottomBar?: ReactNode;
7
9
  };
8
10
  export type RestPluggableTableProps = ChildFree<RestTableComposeProps>;
9
11
  export type PluggableTableProps<T extends object> = OwnPluggableTableProps<T> & RestPluggableTableProps;
10
- export declare const PluggableTable: <T extends object>({ caption, emptyStateRender, ...restProps }: PluggableTableProps<T>) => import("react/jsx-runtime").JSX.Element;
12
+ export declare const PluggableTable: <T extends object>({ caption, emptyStateRender, topBar, bottomBar, ...restProps }: PluggableTableProps<T>) => import("react/jsx-runtime").JSX.Element;
@@ -3,15 +3,21 @@ import { compositionComponents } from "./compositionComponents.js";
3
3
  const PluggableTable = ({
4
4
  caption,
5
5
  emptyStateRender,
6
+ topBar,
7
+ bottomBar,
6
8
  ...restProps
7
9
  }) => jsxRuntimeExports.jsxs(compositionComponents.Compose, {
8
10
  ...restProps,
9
- children: [jsxRuntimeExports.jsxs(compositionComponents.Root, {
11
+ children: [jsxRuntimeExports.jsx(compositionComponents.TopBar, {
12
+ children: topBar
13
+ }), jsxRuntimeExports.jsxs(compositionComponents.Root, {
10
14
  children: [jsxRuntimeExports.jsx(compositionComponents.SRCaption, {
11
15
  caption
12
16
  }), jsxRuntimeExports.jsx(compositionComponents.Header, {}), jsxRuntimeExports.jsx(compositionComponents.EmptyState, {
13
17
  emptyStateRender
14
18
  }), jsxRuntimeExports.jsx(compositionComponents.Body, {})]
19
+ }), jsxRuntimeExports.jsx(compositionComponents.BottomBar, {
20
+ children: bottomBar
15
21
  }), jsxRuntimeExports.jsx(compositionComponents.Pagination, {}), jsxRuntimeExports.jsx(compositionComponents.SRSortingNotification, {})]
16
22
  });
17
23
  export {
@@ -8,8 +8,12 @@ const EmptyState = require("../EmptyState/EmptyState.cjs");
8
8
  const TableBody = require("../TableBody/TableBody.cjs");
9
9
  const TablePagination = require("../TablePagination/TablePagination.cjs");
10
10
  const SRSortingNotification = require("../TableHeaderCell/SRSortingNotification.cjs");
11
+ const TableTopBar = require("../TableTopBar/TableTopBar.cjs");
12
+ const TableBottomBar = require("../TableBottomBar/TableBottomBar.cjs");
11
13
  const compositionComponents = {
12
14
  Compose: Compose.TableCompose,
15
+ TopBar: TableTopBar.TableTopBar,
16
+ BottomBar: TableBottomBar.TableBottomBar,
13
17
  Root: TableRoot.TableRoot,
14
18
  SRCaption: HiddenCaption.HiddenCaption,
15
19
  Header: TableHeader.TableHeader,
@@ -1,7 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  import { SRSortingNotification } from '../TableHeaderCell/SRSortingNotification';
3
3
  export declare const compositionComponents: {
4
- Compose: <T extends object>({ data, columns, pluginsData, tableOptions, components, maxHeight, minWidth, stripedRows, ...restProps }: import("../Compose/Compose").TableComposeProps<T>) => import("react/jsx-runtime").JSX.Element;
4
+ Compose: <T extends object>({ data, columns, pluginsData, tableOptions, components, minWidth, stripedRows, ...restProps }: import("../Compose/Compose").TableComposeProps<T>) => import("react/jsx-runtime").JSX.Element;
5
+ TopBar: (props: import("@redislabsdev/redis-ui-components").ComposeElementProps<HTMLElement>) => import("react/jsx-runtime").JSX.Element | null;
6
+ BottomBar: (props: import("@redislabsdev/redis-ui-components").ComposeElementProps<HTMLElement>) => import("react/jsx-runtime").JSX.Element | null;
5
7
  Root: (props: import("react").HTMLAttributes<HTMLTableElement>) => import("react/jsx-runtime").JSX.Element;
6
8
  SRCaption: ({ caption }: {
7
9
  caption?: string | undefined;
@@ -12,7 +14,7 @@ export declare const compositionComponents: {
12
14
  Compose: import("styled-components").StyledComponent<"tr", any, {}, never>;
13
15
  };
14
16
  Cell: (<T_3 extends object>(props: import("../TableHeaderCell/TableHeaderCell").OwnTableHeaderCellProps<T_3> & import("../TableHeaderCell/TableHeaderCell").RestTableHeaderCellProps & import("react").RefAttributes<HTMLTableCellElement>) => import("react").ReactElement<any, any> | null) & {
15
- Compose: <T_4 extends object>(props: import("../TableHeaderCell/components/Compose/Compose").OwnTableHeaderCellComposeProps<T_4> & import("@redislabsdev/redis-ui-components").ComposeChildrenProps & Omit<import("react").HTMLAttributes<HTMLTableCellElement>, "content" | "children"> & import("react").RefAttributes<HTMLTableCellElement>) => import("react").ReactElement<any, any> | null;
17
+ Compose: <T_4 extends object>(props: import("../TableHeaderCell/components/Compose/Compose").OwnTableHeaderCellComposeProps<T_4> & import("@redislabsdev/redis-ui-components").ComposeChildrenProps & Omit<import("react").HTMLAttributes<HTMLTableCellElement>, "children" | "content"> & import("react").RefAttributes<HTMLTableCellElement>) => import("react").ReactElement<any, any> | null;
16
18
  SortableHeading: (({ children, ...restProps }: import("@redislabsdev/redis-ui-components").ComposeElementProps<HTMLElement>) => import("react/jsx-runtime").JSX.Element) & {
17
19
  Compose: ((props: import("@redislabsdev/redis-ui-components").ComposeElementProps<HTMLElement>) => import("react/jsx-runtime").JSX.Element) & {
18
20
  SortIndicator: () => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
@@ -26,7 +28,7 @@ export declare const compositionComponents: {
26
28
  Body: (<T_5 extends object>(props: import("../TableBody/TableBody").RestTableBodyProps) => import("react/jsx-runtime").JSX.Element | null) & {
27
29
  Compose: (props: import("../TableBody/components/Compose/Compose").TableBodyComposeProps) => import("react/jsx-runtime").JSX.Element;
28
30
  Row: (<T_6 extends object>(props: import("../TableBodyRow/TableBodyRow").OwnTableBodyRowProps<T_6> & import("../TableBodyRow/TableBodyRow").RestTableBodyRowProps & import("react").RefAttributes<HTMLTableRowElement>) => import("react").ReactElement<any, any> | null) & {
29
- Compose: (props: import("@redislabsdev/redis-ui-components").ComposeChildrenProps & Omit<import("react").HTMLAttributes<HTMLTableRowElement>, "content" | "children"> & import("react").RefAttributes<HTMLTableRowElement>) => import("react").ReactElement<any, any> | null;
31
+ Compose: (props: import("@redislabsdev/redis-ui-components").ComposeChildrenProps & Omit<import("react").HTMLAttributes<HTMLTableRowElement>, "children" | "content"> & import("react").RefAttributes<HTMLTableRowElement>) => import("react").ReactElement<any, any> | null;
30
32
  useHandleClickableRow: <T_7 extends object>({ row, onClick, onKeyDown }: {
31
33
  row: import("@tanstack/table-core").Row<T_7>;
32
34
  onClick?: import("react").MouseEventHandler<HTMLTableRowElement> | undefined;
@@ -38,7 +40,7 @@ export declare const compositionComponents: {
38
40
  };
39
41
  ExpandableRow: <T_8 extends object>(props: import("../TableBodyRow/TableBodyRow").OwnTableBodyRowProps<T_8> & import("../TableBodyRow/TableBodyRow").RestTableBodyRowProps & import("react").RefAttributes<HTMLTableRowElement>) => import("react").ReactElement<any, any> | null;
40
42
  Cell: (<T_9 extends object>(props: import("../TableBodyCell/TableBodyCell").OwnTableBodyCellProps<T_9> & import("../TableBodyCell/TableBodyCell").RestTableBodyCellProps & import("react").RefAttributes<HTMLTableCellElement>) => import("react").ReactElement<any, any> | null) & {
41
- Compose: <T_10 extends object>(props: import("@redislabsdev/redis-ui-components").ComposeChildrenProps & Omit<import("react").HTMLAttributes<HTMLTableCellElement>, "content" | "children"> & import("../TableBodyCell/components/Compose/Compose").OwnTableBodyCellComposeProps<T_10> & import("react").RefAttributes<HTMLTableCellElement>) => import("react").ReactElement<any, any> | null;
43
+ Compose: <T_10 extends object>(props: import("@redislabsdev/redis-ui-components").ComposeChildrenProps & Omit<import("react").HTMLAttributes<HTMLTableCellElement>, "children" | "content"> & import("../TableBodyCell/components/Compose/Compose").OwnTableBodyCellComposeProps<T_10> & import("react").RefAttributes<HTMLTableCellElement>) => import("react").ReactElement<any, any> | null;
42
44
  };
43
45
  };
44
46
  Pagination: (() => import("react/jsx-runtime").JSX.Element | null) & {
@@ -6,8 +6,12 @@ import { EmptyState } from "../EmptyState/EmptyState.js";
6
6
  import { TableBody } from "../TableBody/TableBody.js";
7
7
  import TablePagination from "../TablePagination/TablePagination.js";
8
8
  import { SRSortingNotification } from "../TableHeaderCell/SRSortingNotification.js";
9
+ import { TableTopBar } from "../TableTopBar/TableTopBar.js";
10
+ import { TableBottomBar } from "../TableBottomBar/TableBottomBar.js";
9
11
  const compositionComponents = {
10
12
  Compose: TableCompose,
13
+ TopBar: TableTopBar,
14
+ BottomBar: TableBottomBar,
11
15
  Root: TableRoot,
12
16
  SRCaption: HiddenCaption,
13
17
  Header: TableHeader,
@@ -6,7 +6,7 @@ export type TableBodyProps = RestTableBodyProps;
6
6
  export declare const TableBody: (<T extends object>(props: TableBodyProps) => import("react/jsx-runtime").JSX.Element | null) & {
7
7
  Compose: (props: TableBodyComposeProps) => import("react/jsx-runtime").JSX.Element;
8
8
  Row: (<T_1 extends object>(props: import("../TableBodyRow/TableBodyRow").OwnTableBodyRowProps<T_1> & import("../TableBodyRow/TableBodyRow").RestTableBodyRowProps & import("react").RefAttributes<HTMLTableRowElement>) => import("react").ReactElement<any, any> | null) & {
9
- Compose: (props: import("@redislabsdev/redis-ui-components").ComposeChildrenProps & Omit<import("react").HTMLAttributes<HTMLTableRowElement>, "content" | "children"> & import("react").RefAttributes<HTMLTableRowElement>) => import("react").ReactElement<any, any> | null;
9
+ Compose: (props: import("@redislabsdev/redis-ui-components").ComposeChildrenProps & Omit<import("react").HTMLAttributes<HTMLTableRowElement>, "children" | "content"> & import("react").RefAttributes<HTMLTableRowElement>) => import("react").ReactElement<any, any> | null;
10
10
  useHandleClickableRow: <T_2 extends object>({ row, onClick, onKeyDown }: {
11
11
  row: import("@tanstack/table-core").Row<T_2>;
12
12
  onClick?: import("react").MouseEventHandler<HTMLTableRowElement> | undefined;
@@ -18,6 +18,6 @@ export declare const TableBody: (<T extends object>(props: TableBodyProps) => im
18
18
  };
19
19
  ExpandableRow: <T_3 extends object>(props: import("../TableBodyRow/TableBodyRow").OwnTableBodyRowProps<T_3> & import("../TableBodyRow/TableBodyRow").RestTableBodyRowProps & import("react").RefAttributes<HTMLTableRowElement>) => import("react").ReactElement<any, any> | null;
20
20
  Cell: (<T_4 extends object>(props: import("../TableBodyCell/TableBodyCell").OwnTableBodyCellProps<T_4> & import("../TableBodyCell/TableBodyCell").RestTableBodyCellProps & import("react").RefAttributes<HTMLTableCellElement>) => import("react").ReactElement<any, any> | null) & {
21
- Compose: <T_5 extends object>(props: import("@redislabsdev/redis-ui-components").ComposeChildrenProps & Omit<import("react").HTMLAttributes<HTMLTableCellElement>, "content" | "children"> & import("../TableBodyCell/components/Compose/Compose").OwnTableBodyCellComposeProps<T_5> & import("react").RefAttributes<HTMLTableCellElement>) => import("react").ReactElement<any, any> | null;
21
+ Compose: <T_5 extends object>(props: import("@redislabsdev/redis-ui-components").ComposeChildrenProps & Omit<import("react").HTMLAttributes<HTMLTableCellElement>, "children" | "content"> & import("../TableBodyCell/components/Compose/Compose").OwnTableBodyCellComposeProps<T_5> & import("react").RefAttributes<HTMLTableCellElement>) => import("react").ReactElement<any, any> | null;
22
22
  };
23
23
  };
@@ -5,5 +5,5 @@ export type OwnTableBodyCellProps<T extends object> = OwnTableBodyCellComposePro
5
5
  export type RestTableBodyCellProps = ChildFree<RestTableBodyCellComposeProps>;
6
6
  export type TableBodyCellProps<T extends object> = OwnTableBodyCellProps<T> & RestTableBodyCellProps;
7
7
  export declare const TableBodyCell: (<T extends object>(props: OwnTableBodyCellProps<T> & RestTableBodyCellProps & import("react").RefAttributes<HTMLTableCellElement>) => import("react").ReactElement<any, any> | null) & {
8
- Compose: <T_1 extends object>(props: import("@redislabsdev/redis-ui-components").ComposeChildrenProps & Omit<import("react").HTMLAttributes<HTMLTableCellElement>, "content" | "children"> & OwnTableBodyCellComposeProps<T_1> & import("react").RefAttributes<HTMLTableCellElement>) => import("react").ReactElement<any, any> | null;
8
+ Compose: <T_1 extends object>(props: import("@redislabsdev/redis-ui-components").ComposeChildrenProps & Omit<import("react").HTMLAttributes<HTMLTableCellElement>, "children" | "content"> & OwnTableBodyCellComposeProps<T_1> & import("react").RefAttributes<HTMLTableCellElement>) => import("react").ReactElement<any, any> | null;
9
9
  };
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const jsxRuntime = require("../../../../../node_modules/react/jsx-runtime.cjs");
4
+ const CellContainers_style = require("./CellContainers.style.cjs");
5
+ const EllipsisContainer = (props) => jsxRuntime.jsxRuntimeExports.jsx(CellContainers_style.FlexContainer, {
6
+ children: jsxRuntime.jsxRuntimeExports.jsx(CellContainers_style.EllipsisContainer, {
7
+ ...props,
8
+ ellipsis: true,
9
+ tooltipOnEllipsis: true
10
+ })
11
+ });
12
+ const containers = {
13
+ flex: CellContainers_style.FlexContainer,
14
+ ellipsis: EllipsisContainer
15
+ };
16
+ const getCellContainer = (containerOrType) => {
17
+ if (!containerOrType) return void 0;
18
+ if (typeof containerOrType === "string") return containers[containerOrType];
19
+ return containerOrType;
20
+ };
21
+ exports.getCellContainer = getCellContainer;
@@ -0,0 +1,2 @@
1
+ import type { CellContainerComponent, ColumnCellContainer } from '../../../../Table.types';
2
+ export declare const getCellContainer: (containerOrType: ColumnCellContainer | undefined) => CellContainerComponent | undefined;
@@ -0,0 +1,21 @@
1
+ import { j as jsxRuntimeExports } from "../../../../../node_modules/react/jsx-runtime.js";
2
+ import { FlexContainer, EllipsisContainer as EllipsisContainer$1 } from "./CellContainers.style.js";
3
+ const EllipsisContainer = (props) => jsxRuntimeExports.jsx(FlexContainer, {
4
+ children: jsxRuntimeExports.jsx(EllipsisContainer$1, {
5
+ ...props,
6
+ ellipsis: true,
7
+ tooltipOnEllipsis: true
8
+ })
9
+ });
10
+ const containers = {
11
+ flex: FlexContainer,
12
+ ellipsis: EllipsisContainer
13
+ };
14
+ const getCellContainer = (containerOrType) => {
15
+ if (!containerOrType) return void 0;
16
+ if (typeof containerOrType === "string") return containers[containerOrType];
17
+ return containerOrType;
18
+ };
19
+ export {
20
+ getCellContainer
21
+ };
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const _styled = require("styled-components");
4
+ const redisUiComponents = require("@redislabsdev/redis-ui-components");
5
+ const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
6
+ const _styled__default = /* @__PURE__ */ _interopDefault(_styled);
7
+ const FlexContainer = _styled__default.default(redisUiComponents.FlexGroup).withConfig({
8
+ displayName: "CellContainersstyle__FlexContainer",
9
+ componentId: "RedisUI__sc-1w37zg2-0"
10
+ })(["height:100%;width:100%;max-width:100%;overflow:hidden;svg{flex:none;}"]);
11
+ const EllipsisContainer = _styled__default.default(redisUiComponents.Typography.Base).withConfig({
12
+ displayName: "CellContainersstyle__EllipsisContainer",
13
+ componentId: "RedisUI__sc-1w37zg2-1"
14
+ })(["flex:0 1 auto;white-space:inherit;text-align:start;"]);
15
+ exports.EllipsisContainer = EllipsisContainer;
16
+ exports.FlexContainer = FlexContainer;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ export declare const FlexContainer: import("styled-components").StyledComponent<({ gap, direction, align, justify, wrap, ...restProps }: import("@redislabsdev/redis-ui-components").FlexGroupProps) => import("react/jsx-runtime").JSX.Element, any, {}, never>;
3
+ export declare const EllipsisContainer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@redislabsdev/redis-ui-components").TypographyBaseProps & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
@@ -0,0 +1,14 @@
1
+ import _styled from "styled-components";
2
+ import { FlexGroup, Typography } from "@redislabsdev/redis-ui-components";
3
+ const FlexContainer = _styled(FlexGroup).withConfig({
4
+ displayName: "CellContainersstyle__FlexContainer",
5
+ componentId: "RedisUI__sc-1w37zg2-0"
6
+ })(["height:100%;width:100%;max-width:100%;overflow:hidden;svg{flex:none;}"]);
7
+ const EllipsisContainer = _styled(Typography.Base).withConfig({
8
+ displayName: "CellContainersstyle__EllipsisContainer",
9
+ componentId: "RedisUI__sc-1w37zg2-1"
10
+ })(["flex:0 1 auto;white-space:inherit;text-align:start;"]);
11
+ export {
12
+ EllipsisContainer,
13
+ FlexContainer
14
+ };
@@ -3,14 +3,20 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("../../../../../node_modules/react/jsx-runtime.cjs");
4
4
  const redisUiComponents = require("@redislabsdev/redis-ui-components");
5
5
  const table_utils = require("../../../../utils/table.utils.cjs");
6
+ const CellContainers = require("../CellContainers/CellContainers.cjs");
6
7
  const Table_style = require("../../../../Table.style.cjs");
7
8
  const TableBodyCellCompose = redisUiComponents.forwardRefWithGenerics(({
8
9
  cell,
9
10
  style,
11
+ children,
10
12
  ...restProps
11
13
  }, ref) => {
12
- var _a, _b;
13
- const columnCellProps = (_b = (_a = cell.column.columnDef).getCellProps) == null ? void 0 : _b.call(_a, cell.row.original, cell);
14
+ const {
15
+ getCellProps,
16
+ cellContainer
17
+ } = cell.column.columnDef;
18
+ const columnCellProps = getCellProps == null ? void 0 : getCellProps(cell.row.original, cell);
19
+ const CellContainer = CellContainers.getCellContainer(cellContainer);
14
20
  return jsxRuntime.jsxRuntimeExports.jsx(Table_style.TableBodyCell, {
15
21
  ...restProps,
16
22
  ...columnCellProps,
@@ -19,7 +25,10 @@ const TableBodyCellCompose = redisUiComponents.forwardRefWithGenerics(({
19
25
  width: table_utils.getWidth(cell.column),
20
26
  ...style,
21
27
  ...columnCellProps == null ? void 0 : columnCellProps.style
22
- }
28
+ },
29
+ children: CellContainer ? jsxRuntime.jsxRuntimeExports.jsx(CellContainer, {
30
+ children
31
+ }) : children
23
32
  });
24
33
  });
25
34
  exports.TableBodyCellCompose = TableBodyCellCompose;
@@ -6,4 +6,4 @@ export type OwnTableBodyCellComposeProps<T extends object> = {
6
6
  };
7
7
  export type RestTableBodyCellComposeProps = ComposeElementProps<HTMLTableCellElement>;
8
8
  export type TableBodyCellComposeProps<T extends object> = RestTableBodyCellComposeProps & OwnTableBodyCellComposeProps<T>;
9
- export declare const TableBodyCellCompose: <T extends object>(props: import("@redislabsdev/redis-ui-components").ComposeChildrenProps & Omit<import("react").HTMLAttributes<HTMLTableCellElement>, "content" | "children"> & OwnTableBodyCellComposeProps<T> & import("react").RefAttributes<HTMLTableCellElement>) => import("react").ReactElement<any, any> | null;
9
+ export declare const TableBodyCellCompose: <T extends object>(props: import("@redislabsdev/redis-ui-components").ComposeChildrenProps & Omit<import("react").HTMLAttributes<HTMLTableCellElement>, "children" | "content"> & OwnTableBodyCellComposeProps<T> & import("react").RefAttributes<HTMLTableCellElement>) => import("react").ReactElement<any, any> | null;
@@ -1,14 +1,20 @@
1
1
  import { j as jsxRuntimeExports } from "../../../../../node_modules/react/jsx-runtime.js";
2
2
  import { forwardRefWithGenerics } from "@redislabsdev/redis-ui-components";
3
3
  import { getWidth } from "../../../../utils/table.utils.js";
4
+ import { getCellContainer } from "../CellContainers/CellContainers.js";
4
5
  import { TableBodyCell } from "../../../../Table.style.js";
5
6
  const TableBodyCellCompose = forwardRefWithGenerics(({
6
7
  cell,
7
8
  style,
9
+ children,
8
10
  ...restProps
9
11
  }, ref) => {
10
- var _a, _b;
11
- const columnCellProps = (_b = (_a = cell.column.columnDef).getCellProps) == null ? void 0 : _b.call(_a, cell.row.original, cell);
12
+ const {
13
+ getCellProps,
14
+ cellContainer
15
+ } = cell.column.columnDef;
16
+ const columnCellProps = getCellProps == null ? void 0 : getCellProps(cell.row.original, cell);
17
+ const CellContainer = getCellContainer(cellContainer);
12
18
  return jsxRuntimeExports.jsx(TableBodyCell, {
13
19
  ...restProps,
14
20
  ...columnCellProps,
@@ -17,7 +23,10 @@ const TableBodyCellCompose = forwardRefWithGenerics(({
17
23
  width: getWidth(cell.column),
18
24
  ...style,
19
25
  ...columnCellProps == null ? void 0 : columnCellProps.style
20
- }
26
+ },
27
+ children: CellContainer ? jsxRuntimeExports.jsx(CellContainer, {
28
+ children
29
+ }) : children
21
30
  });
22
31
  });
23
32
  export {
@@ -8,7 +8,7 @@ export type OwnTableBodyRowProps<T extends object> = {
8
8
  export type RestTableBodyRowProps = ChildFree<RestTableBodyRowComposeProps>;
9
9
  export type TableBodyRowProps<T extends object> = OwnTableBodyRowProps<T> & RestTableBodyRowProps;
10
10
  export declare const TableBodyRow: (<T extends object>(props: OwnTableBodyRowProps<T> & RestTableBodyRowProps & import("react").RefAttributes<HTMLTableRowElement>) => import("react").ReactElement<any, any> | null) & {
11
- Compose: (props: import("@redislabsdev/redis-ui-components").ComposeChildrenProps & Omit<import("react").HTMLAttributes<HTMLTableRowElement>, "content" | "children"> & import("react").RefAttributes<HTMLTableRowElement>) => import("react").ReactElement<any, any> | null;
11
+ Compose: (props: import("@redislabsdev/redis-ui-components").ComposeChildrenProps & Omit<import("react").HTMLAttributes<HTMLTableRowElement>, "children" | "content"> & import("react").RefAttributes<HTMLTableRowElement>) => import("react").ReactElement<any, any> | null;
12
12
  useHandleClickableRow: <T_1 extends object>({ row, onClick, onKeyDown }: {
13
13
  row: Row<T_1>;
14
14
  onClick?: import("react").MouseEventHandler<HTMLTableRowElement> | undefined;
@@ -2,4 +2,4 @@
2
2
  import { ComposeElementProps } from '@redislabsdev/redis-ui-components';
3
3
  export type RestTableBodyRowComposeProps = ComposeElementProps<HTMLTableRowElement>;
4
4
  export type TableBodyRowComposeProps = RestTableBodyRowComposeProps;
5
- export declare const TableBodyRowCompose: (props: import("@redislabsdev/redis-ui-components").ComposeChildrenProps & Omit<import("react").HTMLAttributes<HTMLTableRowElement>, "content" | "children"> & import("react").RefAttributes<HTMLTableRowElement>) => import("react").ReactElement<any, any> | null;
5
+ export declare const TableBodyRowCompose: (props: import("@redislabsdev/redis-ui-components").ComposeChildrenProps & Omit<import("react").HTMLAttributes<HTMLTableRowElement>, "children" | "content"> & import("react").RefAttributes<HTMLTableRowElement>) => import("react").ReactElement<any, any> | null;