@tap-payments/os-micro-frontend-shared 0.0.281-test.1 → 0.0.282

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.
@@ -97,7 +97,7 @@ function SheetViewVirtualTable({ columns, rows, threshold = TABLE_THRESHOLD, sho
97
97
  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: {
98
98
  overflowX: isPinned ? 'hidden' : 'auto',
99
99
  paddingBottom: isPinned ? '25px' : '13px',
100
- backgroundColor: isPinned ? 'transparent' : theme.palette.background.default,
100
+ backgroundColor: isPinned ? 'transparent' : '#F6F8FACC',
101
101
  } }, { children: ListItemWrapper }))) })) })));
102
102
  }, [
103
103
  itemsCount,
@@ -6,6 +6,7 @@ export declare const LastRowContent: React.MemoExoticComponent<({ isLoadingRow,
6
6
  }) => import("react/jsx-runtime").JSX.Element>;
7
7
  export declare const StyledItemWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
8
8
  showShadowHighlight?: boolean | undefined;
9
+ isSheetView?: boolean | undefined;
9
10
  }, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
10
11
  declare function ListItemWrapper({ index, style, data: { renderedScrollTopRef, rows, rowProps, columns, isLoading, scrollToIndex, limit, totalCount, newLoadedRowsEndIndex, isError, areAllRowsLoaded, isSheetView, isPinned, ...restData }, }: Readonly<ListChildComponentProps>): import("react/jsx-runtime").JSX.Element;
11
12
  export default ListItemWrapper;
@@ -26,7 +26,7 @@ export const LastRowContent = React.memo(({ isLoadingRow, isSheetView }) => {
26
26
  height: isSheetView ? '100%' : '24px',
27
27
  width: '24px',
28
28
  borderRadius: '50%',
29
- background: isSheetView ? '#F6F8FACC' : 'transparent',
29
+ background: 'transparent',
30
30
  position: 'relative',
31
31
  display: 'flex',
32
32
  justifyContent: 'center',
@@ -41,10 +41,10 @@ const createRowClickHandler = (row, onRowClick) => (e) => {
41
41
  onRowClick === null || onRowClick === void 0 ? void 0 : onRowClick(row);
42
42
  };
43
43
  export const StyledItemWrapper = styled('div', {
44
- shouldForwardProp: (props) => props !== 'showShadowHighlight',
45
- })(({ theme }) => ({
46
- backgroundColor: theme.palette.background.default,
44
+ shouldForwardProp: (props) => props !== 'showShadowHighlight' && props !== 'isSheetView',
45
+ })(({ theme, isSheetView }) => ({
47
46
  height: '100%',
47
+ backgroundColor: isSheetView ? '#F6F8FACC' : theme.palette.background.default,
48
48
  }));
49
49
  function ListItemWrapper(_a) {
50
50
  var _b;
@@ -73,6 +73,6 @@ function ListItemWrapper(_a) {
73
73
  }
74
74
  return (_jsx(TableRow, { index: index, row: row, columns: columns, rowProps: memoizedRowProps, isSheetView: isSheetView, selectedCell: restData.selectedCell, selectedColumn: restData.selectedColumn, onCellClick: restData.onCellClick, isLastRow: index === rows.length - 1 }, `row-${index}`));
75
75
  }, [restData, index, row, columns, memoizedRowProps, isSheetView]);
76
- return (_jsx("div", Object.assign({ "data-testid": "ListItemWrapper", style: Object.assign(Object.assign({}, style), { top: Number(style.top) - ((_b = renderedScrollTopRef === null || renderedScrollTopRef === void 0 ? void 0 : renderedScrollTopRef.current) !== null && _b !== void 0 ? _b : 0), willChange: 'top' }) }, { children: _jsx(StyledItemWrapper, Object.assign({ "data-testid": "ListItemWrapper_StyledItemWrapper" }, { children: memoizedListItemComponent })) })));
76
+ return (_jsx("div", Object.assign({ "data-testid": "ListItemWrapper", style: Object.assign(Object.assign({}, style), { top: Number(style.top) - ((_b = renderedScrollTopRef === null || renderedScrollTopRef === void 0 ? void 0 : renderedScrollTopRef.current) !== null && _b !== void 0 ? _b : 0), willChange: 'top' }) }, { children: _jsx(StyledItemWrapper, Object.assign({ isSheetView: isSheetView, "data-testid": "ListItemWrapper_StyledItemWrapper" }, { children: memoizedListItemComponent })) })));
77
77
  }
78
78
  export default ListItemWrapper;
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.281-test.1",
4
+ "version": "0.0.282",
5
5
  "testVersion": 1,
6
6
  "type": "module",
7
7
  "main": "build/index.js",
@@ -131,4 +131,4 @@
131
131
  "publishConfig": {
132
132
  "registry": "https://registry.npmjs.org/"
133
133
  }
134
- }
134
+ }