tycho-components 0.4.9 → 0.4.11

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.
@@ -1,6 +1,5 @@
1
1
  import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
2
2
  import { ThemeProvider } from '@emotion/react';
3
- import Paper from '@mui/material/Paper';
4
3
  import Table from '@mui/material/Table';
5
4
  import TableBody from '@mui/material/TableBody';
6
5
  import TableCell from '@mui/material/TableCell';
@@ -41,7 +40,7 @@ export default function AppTable({ columns, data, pagination, setPagination, sor
41
40
  }
42
41
  },
43
42
  });
44
- return (_jsx(ThemeProvider, { theme: tableTheme, children: _jsxs(Paper, { className: `ds-table ${className}`, children: [_jsx(TableContainer, { children: _jsxs(Table, { children: [_jsx(TableHead, { children: table.getHeaderGroups().map((headerGroup) => (_jsx(TableRow, { children: headerGroup.headers.map((header) => {
43
+ return (_jsx(ThemeProvider, { theme: tableTheme, children: _jsxs("div", { className: `ds-table ${className}`, children: [_jsx(TableContainer, { children: _jsxs(Table, { children: [_jsx(TableHead, { children: table.getHeaderGroups().map((headerGroup) => (_jsx(TableRow, { children: headerGroup.headers.map((header) => {
45
44
  const toggleSortingHandler = header.column.getToggleSortingHandler();
46
45
  return (_jsxs(TableCell, { onClick: (event) => {
47
46
  if (toggleSortingHandler) {
@@ -1,25 +1,35 @@
1
1
  .ds-table {
2
+ height: 100%;
3
+ display: flex;
4
+ flex-direction: column;
5
+
6
+ .MuiTableContainer-root {
7
+ height: 100%;
8
+ flex: 1;
9
+ overflow: auto;
10
+ }
11
+
2
12
  .MuiTableRow-root {
3
- height: 56px;
13
+ height: 50px;
4
14
 
5
15
  &:hover {
6
16
  background-color: var(--layer-hover-1);
7
17
  }
8
18
 
9
19
  &.MuiTableRow-head {
10
- height: 48px;
20
+ height: 50px;
11
21
 
12
22
  .MuiTableCell-head {
13
23
  @include tag-medium-2;
14
24
  color: var(--text-primary);
15
- font-family: 'Lora';
25
+ font-family: "Lora";
16
26
  }
17
27
  }
18
28
 
19
29
  .MuiTableCell-body {
20
30
  @include label-medium-1;
21
31
  color: var(--text-primary);
22
- font-family: 'Work Sans';
32
+ font-family: "Work Sans";
23
33
  cursor: pointer;
24
34
 
25
35
  &.actions-button {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tycho-components",
3
3
  "private": false,
4
- "version": "0.4.9",
4
+ "version": "0.4.11",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {