tycho-components 0.46.3 → 0.46.4

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.
@@ -14,6 +14,7 @@ type Props = {
14
14
  onMouseLeave?: (row: any) => void;
15
15
  hiddenColumns?: string[];
16
16
  numItens?: number[];
17
+ dataTour?: string;
17
18
  };
18
- export default function AppTable({ columns, data, pagination, setPagination, sorting, setSorting, className, onClickRow, onMouseEnter, onMouseLeave, hiddenColumns, numItens, }: Props): import("react").JSX.Element;
19
+ export default function AppTable({ columns, data, pagination, setPagination, sorting, setSorting, className, onClickRow, onMouseEnter, onMouseLeave, hiddenColumns, numItens, dataTour, }: Props): import("react").JSX.Element;
19
20
  export {};
@@ -11,7 +11,7 @@ import cx from 'classnames';
11
11
  import AppPagination from '../AppPagination';
12
12
  import { tableTheme } from './AppTableTheme';
13
13
  import './styles.scss';
14
- export default function AppTable({ columns, data, pagination, setPagination, sorting, setSorting, className, onClickRow, onMouseEnter, onMouseLeave, hiddenColumns, numItens, }) {
14
+ export default function AppTable({ columns, data, pagination, setPagination, sorting, setSorting, className, onClickRow, onMouseEnter, onMouseLeave, hiddenColumns, numItens, dataTour, }) {
15
15
  const { content, totalPages, totalElements } = data;
16
16
  const columnVisibility = hiddenColumns?.reduce((acc, col) => {
17
17
  acc[col] = false;
@@ -44,7 +44,7 @@ export default function AppTable({ columns, data, pagination, setPagination, sor
44
44
  const tableClass = cx('ds-table', {
45
45
  [className || '']: className || '',
46
46
  });
47
- return (_jsx(ThemeProvider, { theme: tableTheme, children: _jsxs("div", { className: tableClass, children: [_jsx(TableContainer, { children: _jsxs(Table, { children: [_jsx(TableHead, { children: table.getHeaderGroups().map((headerGroup) => (_jsx(TableRow, { children: headerGroup.headers.map((header) => {
47
+ return (_jsx(ThemeProvider, { theme: tableTheme, children: _jsxs("div", { className: tableClass, "data-tour": dataTour, children: [_jsx(TableContainer, { children: _jsxs(Table, { children: [_jsx(TableHead, { children: table.getHeaderGroups().map((headerGroup) => (_jsx(TableRow, { children: headerGroup.headers.map((header) => {
48
48
  const toggleSortingHandler = header.column.getToggleSortingHandler();
49
49
  return (_jsxs(TableCell, { onClick: (event) => {
50
50
  if (toggleSortingHandler) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tycho-components",
3
3
  "private": false,
4
- "version": "0.46.3",
4
+ "version": "0.46.4",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {