@equinor/apollo-components 1.11.0 → 1.11.2
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.
- package/dist/index.js +6 -6
- package/dist/index.mjs +6 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -285,8 +285,6 @@ var TypographyCustom = (props) => {
|
|
|
285
285
|
});
|
|
286
286
|
};
|
|
287
287
|
var HoverCapture = import_styled_components6.default.div`
|
|
288
|
-
padding: 0.5em 0;
|
|
289
|
-
margin: -0.5em 0;
|
|
290
288
|
height: ${import_eds_tokens3.tokens.typography.table.cell_text.lineHeight};
|
|
291
289
|
background-color: inherit;
|
|
292
290
|
|
|
@@ -463,7 +461,8 @@ var HeaderDiv = import_styled_components11.default.div`
|
|
|
463
461
|
var HeaderCell = ({ header }) => {
|
|
464
462
|
var _a;
|
|
465
463
|
const style = {
|
|
466
|
-
width: header.column.getSize()
|
|
464
|
+
width: header.column.getSize(),
|
|
465
|
+
zIndex: 10
|
|
467
466
|
};
|
|
468
467
|
const cellProps = {
|
|
469
468
|
style,
|
|
@@ -564,7 +563,7 @@ function TableRow({ row, rowConfig, cellConfig }) {
|
|
|
564
563
|
}
|
|
565
564
|
var StyledTableRow = (0, import_styled_components12.default)(import_eds_core_react11.Table.Row)`
|
|
566
565
|
/* Background color must be inherited here. Does not work with inline styling */
|
|
567
|
-
background-color: inherit;
|
|
566
|
+
${({ active }) => active ? "" : "background-color: inherit;"}
|
|
568
567
|
`;
|
|
569
568
|
function handleRowEvent(row, handler) {
|
|
570
569
|
if (!handler)
|
|
@@ -882,8 +881,9 @@ function VirtualTable({
|
|
|
882
881
|
const { rows } = table.getRowModel();
|
|
883
882
|
const rowVirtualizer = (0, import_react_virtual.useVirtualizer)({
|
|
884
883
|
count: rows.length,
|
|
885
|
-
estimateSize: () =>
|
|
886
|
-
getScrollElement: () => containerRef.current
|
|
884
|
+
estimateSize: () => 48,
|
|
885
|
+
getScrollElement: () => containerRef.current,
|
|
886
|
+
overscan: 5
|
|
887
887
|
});
|
|
888
888
|
const virtualRows = rowVirtualizer.getVirtualItems();
|
|
889
889
|
const paddingTop = virtualRows.length > 0 ? ((_a = virtualRows == null ? void 0 : virtualRows[0]) == null ? void 0 : _a.start) || 0 : 0;
|
package/dist/index.mjs
CHANGED
|
@@ -239,8 +239,6 @@ var TypographyCustom = (props) => {
|
|
|
239
239
|
});
|
|
240
240
|
};
|
|
241
241
|
var HoverCapture = styled6.div`
|
|
242
|
-
padding: 0.5em 0;
|
|
243
|
-
margin: -0.5em 0;
|
|
244
242
|
height: ${tokens3.typography.table.cell_text.lineHeight};
|
|
245
243
|
background-color: inherit;
|
|
246
244
|
|
|
@@ -417,7 +415,8 @@ var HeaderDiv = styled11.div`
|
|
|
417
415
|
var HeaderCell = ({ header }) => {
|
|
418
416
|
var _a;
|
|
419
417
|
const style = {
|
|
420
|
-
width: header.column.getSize()
|
|
418
|
+
width: header.column.getSize(),
|
|
419
|
+
zIndex: 10
|
|
421
420
|
};
|
|
422
421
|
const cellProps = {
|
|
423
422
|
style,
|
|
@@ -518,7 +517,7 @@ function TableRow({ row, rowConfig, cellConfig }) {
|
|
|
518
517
|
}
|
|
519
518
|
var StyledTableRow = styled12(Table7.Row)`
|
|
520
519
|
/* Background color must be inherited here. Does not work with inline styling */
|
|
521
|
-
background-color: inherit;
|
|
520
|
+
${({ active }) => active ? "" : "background-color: inherit;"}
|
|
522
521
|
`;
|
|
523
522
|
function handleRowEvent(row, handler) {
|
|
524
523
|
if (!handler)
|
|
@@ -836,8 +835,9 @@ function VirtualTable({
|
|
|
836
835
|
const { rows } = table.getRowModel();
|
|
837
836
|
const rowVirtualizer = useVirtualizer({
|
|
838
837
|
count: rows.length,
|
|
839
|
-
estimateSize: () =>
|
|
840
|
-
getScrollElement: () => containerRef.current
|
|
838
|
+
estimateSize: () => 48,
|
|
839
|
+
getScrollElement: () => containerRef.current,
|
|
840
|
+
overscan: 5
|
|
841
841
|
});
|
|
842
842
|
const virtualRows = rowVirtualizer.getVirtualItems();
|
|
843
843
|
const paddingTop = virtualRows.length > 0 ? ((_a = virtualRows == null ? void 0 : virtualRows[0]) == null ? void 0 : _a.start) || 0 : 0;
|