tycho-components 0.6.6 → 0.6.8

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,9 +1,9 @@
1
1
  .app-table-pagination {
2
2
  display: flex;
3
- height: 56px;
4
3
  border-top: none;
5
4
  justify-content: right;
6
5
  padding: var(--spacing-150) var(--spacing-100);
6
+ border-top: 1px solid var(--border-subtle-2);
7
7
 
8
8
  .itens-page {
9
9
  display: flex;
@@ -21,7 +21,8 @@
21
21
  .pages-total {
22
22
  display: flex;
23
23
  align-items: center;
24
- > span {
24
+
25
+ >span {
25
26
  padding: var(--spacing-100);
26
27
  }
27
28
  }
@@ -34,9 +35,9 @@
34
35
 
35
36
  .MuiInputBase-root {
36
37
  border-radius: 0px;
37
- font-family: 'Work Sans' !important;
38
+ font-family: "Work Sans" !important;
38
39
 
39
- > .MuiSelect-select {
40
+ >.MuiSelect-select {
40
41
  display: flex;
41
42
  align-items: center;
42
43
  padding: var(--spacing-0) var(--spacing-100);
@@ -47,7 +48,7 @@
47
48
  color: var(--text-on-color-dark);
48
49
  }
49
50
 
50
- > .MuiSelect-icon {
51
+ >.MuiSelect-icon {
51
52
  position: relative;
52
53
  width: 20px;
53
54
  height: 40px;
@@ -55,8 +56,8 @@
55
56
  margin-left: 8px;
56
57
  }
57
58
 
58
- > .MuiOutlinedInput-notchedOutline {
59
+ >.MuiOutlinedInput-notchedOutline {
59
60
  display: none;
60
61
  }
61
62
  }
62
- }
63
+ }
@@ -1,4 +1,5 @@
1
1
  import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
2
+ import cx from 'classnames';
2
3
  import { ThemeProvider } from '@emotion/react';
3
4
  import Table from '@mui/material/Table';
4
5
  import TableBody from '@mui/material/TableBody';
@@ -40,7 +41,10 @@ export default function AppTable({ columns, data, pagination, setPagination, sor
40
41
  }
41
42
  },
42
43
  });
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) => {
44
+ const tableClass = cx('ds-table', {
45
+ [className || '']: className || '',
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) => {
44
48
  const toggleSortingHandler = header.column.getToggleSortingHandler();
45
49
  return (_jsxs(TableCell, { onClick: (event) => {
46
50
  if (toggleSortingHandler) {
@@ -2,6 +2,8 @@
2
2
  height: 100%;
3
3
  display: flex;
4
4
  flex-direction: column;
5
+ border: 1px solid var(--border-subtle-2);
6
+ background-color: var(--background-default);
5
7
 
6
8
  .MuiTableContainer-root {
7
9
  height: 100%;
@@ -10,15 +12,21 @@
10
12
  }
11
13
 
12
14
  .MuiTableRow-root {
13
- height: 50px;
15
+ height: 46px;
14
16
 
15
17
  &:hover {
16
18
  background-color: var(--layer-hover-1);
17
19
  }
18
20
 
19
- &.MuiTableRow-head {
20
- height: 50px;
21
+ .text-center {
22
+ text-align: center;
23
+ display: flex;
24
+ justify-content: center;
25
+ }
26
+ }
21
27
 
28
+ .MuiTableBody-root {
29
+ &.MuiTableRow-head {
22
30
  .MuiTableCell-head {
23
31
  @include tag-medium-2;
24
32
  color: var(--text-primary);
@@ -31,21 +39,6 @@
31
39
  color: var(--text-primary);
32
40
  font-family: "Work Sans";
33
41
  cursor: pointer;
34
-
35
- &.actions-button {
36
- padding: 0px;
37
- text-align: center;
38
-
39
- > .ds-button {
40
- display: inline-block;
41
- }
42
- }
43
- }
44
-
45
- .text-center {
46
- text-align: center;
47
- display: flex;
48
- justify-content: center;
49
42
  }
50
43
  }
51
- }
44
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tycho-components",
3
3
  "private": false,
4
- "version": "0.6.6",
4
+ "version": "0.6.8",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {