tycho-components 0.46.3 → 0.46.5

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) {
@@ -60,47 +60,21 @@
60
60
  .help-modal {
61
61
  max-width: 90vw !important;
62
62
  width: 90vw !important;
63
+
64
+ .body {
65
+ grid-template-columns: repeat(2, minmax(0, 1fr));
66
+ }
63
67
  }
64
68
  }
65
69
 
66
70
  @media (max-width: 767px) {
67
71
  .help-modal {
68
72
  top: 50% !important;
69
- max-width: 90vw !important;
70
- width: 90vw !important;
71
73
 
72
74
  .body {
73
- .live-tour {
74
- flex-direction: column;
75
- gap: 8px;
76
-
77
- .tour-content {
78
- max-width: 100%;
79
-
80
- > .title {
81
- @include subtitle-small-2;
82
- }
83
-
84
- > .desc {
85
- @include body-small-1;
86
- }
87
- }
88
-
89
- .app-picture-container > img {
90
- width: 120px;
91
- height: 90px;
92
- }
93
- }
94
-
95
- .other-actions {
96
- display: flex;
97
- flex-direction: column;
98
- gap: var(--spacing-200);
99
-
100
- .item {
101
- padding: 8px 16px;
102
- }
103
- }
75
+ grid-template-columns: repeat(1, minmax(0, 1fr));
76
+ max-height: 86vh;
77
+ overflow-y: auto;
104
78
  }
105
79
  }
106
80
  }
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.5",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {