@tap-payments/os-micro-frontend-shared 0.1.115-test.2 → 0.1.115-test.3

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.
@@ -9,6 +9,7 @@ export declare const LastRowContent: React.MemoExoticComponent<({ isLoadingRow,
9
9
  }) => import("react/jsx-runtime").JSX.Element>;
10
10
  export declare const StyledItemWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
11
11
  showShadowHighlight?: boolean | undefined;
12
+ isSheetView?: boolean | undefined;
12
13
  }, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
13
14
  declare function ListItemWrapper({ index, style, data: { renderedScrollTopRef, rows, rowProps, columns, isLoading, scrollToIndex, newLoadedRowsEndIndex, isError, areAllRowsLoaded, isSheetView, isPinned, isLoadMoreLoading, ...restData }, }: Readonly<ListChildComponentProps>): import("react/jsx-runtime").JSX.Element;
14
15
  export default ListItemWrapper;
@@ -46,13 +46,14 @@ const createRowClickHandler = (row, onRowClick) => (e) => {
46
46
  };
47
47
  export const StyledItemWrapper = styled('div', {
48
48
  shouldForwardProp: (props) => props !== 'showShadowHighlight' && props !== 'isSheetView',
49
- })(({ theme }) => ({
50
- height: '100%',
49
+ })(({ theme, isSheetView }) => ({
50
+ height: isSheetView ? SHEET_VIEW_TABLE_ROW_HEIGHT : '100%',
51
51
  backgroundColor: theme.palette.background.default,
52
52
  }));
53
53
  function ListItemWrapper(_a) {
54
54
  var _b;
55
55
  var { index, style } = _a, _c = _a.data, { renderedScrollTopRef, rows, rowProps, columns, isLoading, scrollToIndex, newLoadedRowsEndIndex, isError, areAllRowsLoaded, isSheetView, isPinned = false, isLoadMoreLoading = false } = _c, restData = __rest(_c, ["renderedScrollTopRef", "rows", "rowProps", "columns", "isLoading", "scrollToIndex", "newLoadedRowsEndIndex", "isError", "areAllRowsLoaded", "isSheetView", "isPinned", "isLoadMoreLoading"]);
56
+ console.log({ style });
56
57
  const lastItemIndex = rows.length - 1;
57
58
  const row = rows[index];
58
59
  const isLoadingRow = isLoading && index === lastItemIndex + 1;
@@ -105,6 +106,6 @@ function ListItemWrapper(_a) {
105
106
  renderSheetViewLoadingRow,
106
107
  isLoadMoreLoading,
107
108
  ]);
108
- return (_jsx("div", Object.assign({ "data-testid": "ListItemWrapper", style: Object.assign(Object.assign({}, (!isSheetView && 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 })) })));
109
+ return (_jsx("div", Object.assign({ "data-testid": "ListItemWrapper", style: Object.assign(Object.assign({}, (!isSheetView && 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", isSheetView: isSheetView }, { children: memoizedListItemComponent })) })));
109
110
  }
110
111
  export default ListItemWrapper;
package/package.json CHANGED
@@ -1,8 +1,8 @@
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.1.115-test.2",
5
- "testVersion": 2,
4
+ "version": "0.1.115-test.3",
5
+ "testVersion": 3,
6
6
  "type": "module",
7
7
  "main": "build/index.js",
8
8
  "module": "build/index.js",