@tap-payments/os-micro-frontend-shared 0.0.84-sheet-view-scroll-v5 → 0.0.84-sheet-view-scroll-v7
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.
|
@@ -79,6 +79,7 @@ function SheetViewVirtualTable({ columns, rows, threshold = TABLE_THRESHOLD, sho
|
|
|
79
79
|
};
|
|
80
80
|
return (_jsx(InfiniteLoader, Object.assign({ isItemLoaded: (index) => index !== lastItemIndex, itemCount: tableItemsCount, loadMoreItems: handleOnLoadMoreItems, threshold: threshold }, { children: ({ onItemsRendered }) => (_jsx(AutoSizer, { children: ({ height, width }) => (_jsx(StyledVirtualList, Object.assign({ listRef: listRef, height: height, width: fixedWidth || width, itemCount: tableItemsCount, itemSize: () => rowHeight, itemData: currentItemData, onItemsRendered: onItemsRendered, overscanCount: TABLE_LIST_OVER_SCAN, setBackdropVisibility: setShowBackdrop, scrollToIndex: scrollToIndex, areTotalRowsNotFillingHeight: areTotalRowsNotFillingHeight, useIsScrolling: true, onScroll: handleScrollCallback, clearBackdropVisibilityTimeout: clearBackdropVisibilityTimeout, style: {
|
|
81
81
|
overflowX: isPinned ? 'hidden' : 'auto',
|
|
82
|
+
paddingBottom: '15px',
|
|
82
83
|
} }, { children: ListItemWrapper }))) })) })));
|
|
83
84
|
}, [
|
|
84
85
|
itemsCount,
|
|
@@ -56,11 +56,11 @@ function ListItemWrapper(_a) {
|
|
|
56
56
|
const lastRowContent = _jsx(LastRowContent, { isLoadingRow: isLoadingRow });
|
|
57
57
|
const isLastRow = isLoadingRow || (areAllRowsLoaded && index === lastItemIndex + 1);
|
|
58
58
|
if (isPinned && isLastRow) {
|
|
59
|
-
return _jsx(Box, { sx: {
|
|
59
|
+
return _jsx(Box, { sx: { minHeight: isSheetView ? SHEET_VIEW_TABLE_ROW_HEIGHT : TABLE_ROW_HEIGHT, backgroundColor: '#F6F8FACC' } });
|
|
60
60
|
}
|
|
61
61
|
if (isLastRow) {
|
|
62
62
|
return (_jsx(Box, Object.assign({ sx: {
|
|
63
|
-
|
|
63
|
+
minHeight: isSheetView ? SHEET_VIEW_TABLE_ROW_HEIGHT : TABLE_ROW_HEIGHT,
|
|
64
64
|
display: 'flex',
|
|
65
65
|
justifyContent: 'center',
|
|
66
66
|
alignItems: 'center',
|
|
@@ -105,7 +105,7 @@ export const StyledTableBox = styled(Box, {
|
|
|
105
105
|
'&::-webkit-scrollbar-thumb': {
|
|
106
106
|
backgroundColor: '#DADCDF',
|
|
107
107
|
borderRadius: '32px',
|
|
108
|
-
border: '
|
|
108
|
+
border: '3px solid transparent',
|
|
109
109
|
backgroundClip: 'content-box',
|
|
110
110
|
minHeight: '20px',
|
|
111
111
|
},
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tap-payments/os-micro-frontend-shared",
|
|
3
3
|
"description": "Shared components and utilities for Tap Payments micro frontends",
|
|
4
|
-
"version": "0.0.84-sheet-view-scroll-
|
|
4
|
+
"version": "0.0.84-sheet-view-scroll-v7",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "build/index.js",
|
|
7
7
|
"module": "build/index.js",
|