@tap-payments/os-micro-frontend-shared 0.0.284 → 0.0.285-test.6

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.
@@ -13,6 +13,12 @@ export declare const statusIcons: {
13
13
  UNKNOWN: string;
14
14
  AUTHORIZED: string;
15
15
  };
16
+ export declare const unCapturedStatusesStyles: Record<(typeof unCapturedStatuses)[number], {
17
+ gatewayIcon: string;
18
+ acquirerIcon: string;
19
+ color: string;
20
+ background: string;
21
+ }>;
16
22
  export declare const chargeSheetViewChipStyles: {
17
23
  CAPTURED: {
18
24
  color: string;
@@ -29,12 +35,6 @@ export declare const chargeSheetViewChipStyles: {
29
35
  border: string;
30
36
  };
31
37
  };
32
- export declare const unCapturedStatusesStyles: Record<(typeof unCapturedStatuses)[number], {
33
- gatewayIcon: string;
34
- acquirerIcon: string;
35
- color: string;
36
- background: string;
37
- }>;
38
38
  export declare const refundStatusIcons: {
39
39
  PENDING: string;
40
40
  REFUNDED: string;
@@ -13,22 +13,6 @@ export const statusIcons = {
13
13
  UNKNOWN: unknownIcon,
14
14
  AUTHORIZED: authorizedIcon,
15
15
  };
16
- export const chargeSheetViewChipStyles = {
17
- CAPTURED: {
18
- color: '#1F88D0',
19
- background: '#1F88D01A',
20
- },
21
- ABANDONED: {
22
- color: '#FFD600',
23
- background: 'white',
24
- border: '1px solid #FFD60080',
25
- },
26
- CANCELLED: {
27
- color: '#EDC806',
28
- background: '#FFD6001A',
29
- border: 'none',
30
- },
31
- };
32
16
  export const unCapturedStatusesStyles = {
33
17
  UNKNOWN: {
34
18
  gatewayIcon: gatewayOrangeIcon,
@@ -79,6 +63,18 @@ export const unCapturedStatusesStyles = {
79
63
  acquirerIcon: acquirerOrangeIcon,
80
64
  },
81
65
  };
66
+ export const chargeSheetViewChipStyles = Object.assign(Object.assign({}, unCapturedStatusesStyles), { CAPTURED: {
67
+ color: '#1F88D0',
68
+ background: '#1F88D01A',
69
+ }, ABANDONED: {
70
+ color: '#FFD600',
71
+ background: 'white',
72
+ border: '1px solid #FFD60080',
73
+ }, CANCELLED: {
74
+ color: '#EDC806',
75
+ background: '#FFD6001A',
76
+ border: 'none',
77
+ } });
82
78
  export const refundStatusIcons = {
83
79
  PENDING: refundInitiatedIcon,
84
80
  REFUNDED: refundedIcon,
@@ -93,12 +93,12 @@ function SheetViewVirtualTable({ columns, rows, threshold = TABLE_THRESHOLD, sho
93
93
  return (_jsx(InfiniteLoader, Object.assign({ isItemLoaded: (index) => index !== lastItemIndex, itemCount: tableItemsCount, loadMoreItems: handleOnLoadMoreItems, threshold: threshold }, { children: ({ onItemsRendered }) => (_jsx(AutoSizer, { children: ({ height, width }) => {
94
94
  var _a;
95
95
  const getItemSize = (index) => {
96
- console.log({ All: areAllRowsLoaded, rows, index });
97
96
  const isLastRow = areAllRowsLoaded && index === rows.length;
98
97
  if (isLastRow) {
99
98
  const usedHeight = rows.length * rowHeight;
100
99
  const remainingHeight = height - usedHeight;
101
- return Math.max(remainingHeight, rowHeight);
100
+ const minimumLastRowHeight = rowHeight * 2;
101
+ return Math.max(remainingHeight, minimumLastRowHeight);
102
102
  }
103
103
  return rowHeight;
104
104
  };
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.0.284",
5
- "testVersion": 4,
4
+ "version": "0.0.285-test.6",
5
+ "testVersion": 6,
6
6
  "type": "module",
7
7
  "main": "build/index.js",
8
8
  "module": "build/index.js",
@@ -131,4 +131,4 @@
131
131
  "publishConfig": {
132
132
  "registry": "https://registry.npmjs.org/"
133
133
  }
134
- }
134
+ }