@tap-payments/os-micro-frontend-shared 0.1.115 → 0.1.116

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,8 +46,8 @@ 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) {
@@ -105,6 +105,6 @@ function ListItemWrapper(_a) {
105
105
  renderSheetViewLoadingRow,
106
106
  isLoadMoreLoading,
107
107
  ]);
108
- 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 })) })));
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", isSheetView: isSheetView }, { children: memoizedListItemComponent })) })));
109
109
  }
110
110
  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",
5
- "testVersion": 0,
4
+ "version": "0.1.116",
5
+ "testVersion": 3,
6
6
  "type": "module",
7
7
  "main": "build/index.js",
8
8
  "module": "build/index.js",