-
-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
69 changed files
with
786 additions
and
555 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"recommendations": [ | ||
"pakwoon.css-modules-intellisense", | ||
"henriiik.vscode-sort", | ||
"csstools.postcss", | ||
"unifiedjs.vscode-mdx", | ||
"dbaeumer.vscode-eslint" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
packages/mantine-react-table/src/body/MRT_TableBody.module.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
.root { | ||
position: relative; | ||
} | ||
|
||
.root-grid { | ||
display: grid; | ||
} | ||
|
||
.root-no-rows { | ||
min-height: 100px; | ||
} | ||
|
||
.root-virtualized { | ||
height: calc(var(--mrt-table-body-height) * 1px); | ||
} | ||
|
||
.empty-row-tr-grid { | ||
display: grid; | ||
} | ||
|
||
.empty-row-td-grid { | ||
display: grid; | ||
} | ||
|
||
.empty-row-td-content { | ||
color: var(--mantine-color-gray-3); | ||
font-style: italic; | ||
max-width: min(100vw, calc(var(--mrt-paper-width) * 1px)); | ||
padding-bottom: 2rem; | ||
padding-top: 2rem; | ||
text-align: center; | ||
width: 100%; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 26 additions & 13 deletions
39
packages/mantine-react-table/src/body/MRT_TableBodyRow.module.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,41 @@ | ||
.MRT_TableBodyRow { | ||
.root { | ||
box-sizing: border-box; | ||
width: 100%; | ||
transition: all 100ms ease-in-out; | ||
display: var(--display); | ||
} | ||
|
||
.MRT_TableBodyRowHover { | ||
@mixin hover { | ||
&[data-selected="true"] > td { | ||
background-color: var(--mantine-primary-color-filled) | ||
&[data-selected='true'] { | ||
background-color: var(--mantine-primary-color-light); | ||
} | ||
} | ||
|
||
.root-grid { | ||
display: flex; | ||
} | ||
|
||
.root-hover { | ||
&:hover td { | ||
&[data-selected='true'] { | ||
background-color: var(--mantine-primary-color-light-hover); | ||
} | ||
&[data-selected="false"] > td { | ||
@mixin dark { | ||
background-color: var(--dark-bg-color); | ||
} | ||
@mixin light { | ||
background-color: var(--light-bg-color); | ||
} | ||
&[data-selected='false'] { | ||
@mixin dark { | ||
background-color: var(--mantine-color-gray-light-hover); | ||
} | ||
@mixin light { | ||
background-color: var(--mantine-color-dark-light-hover); | ||
} | ||
} | ||
} | ||
} | ||
|
||
.MRT_TableBodyRowVirtual { | ||
.root-virtualized { | ||
position: absolute; | ||
top: 0; | ||
transition: none !important; | ||
} | ||
|
||
.root-dragging { | ||
opacity: 0.5; | ||
} |
Oops, something went wrong.