@tap-payments/os-micro-frontend-shared 0.1.97 → 0.1.98-test.4
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.
package/build/components/TableCells/CustomCells/ApplicationStatusCell/ApplicationStatusCell.js
CHANGED
|
@@ -30,11 +30,10 @@ export default function ApplicationStatusCell(_a) {
|
|
|
30
30
|
tooltip: 'Acceptance',
|
|
31
31
|
enabled: isAcceptanceEnabled,
|
|
32
32
|
shown: !hideAcceptance,
|
|
33
|
+
zIndex: isAcceptanceEnabled && !isPayoutEnabled ? 3 : 1,
|
|
33
34
|
},
|
|
34
|
-
{ icon: isPayoutEnabled ? payoutsGreenIcon : payoutWindowIcon, tooltip: 'Payout', enabled: isPayoutEnabled, shown: !hidePayout },
|
|
35
|
-
]
|
|
36
|
-
.filter((app) => app.shown)
|
|
37
|
-
.sort((a, b) => (a.enabled !== b.enabled && b.enabled ? -1 : 0)), [isAcceptanceEnabled, isPayoutEnabled, hideAcceptance, hidePayout]);
|
|
35
|
+
{ icon: isPayoutEnabled ? payoutsGreenIcon : payoutWindowIcon, tooltip: 'Payout', enabled: isPayoutEnabled, shown: !hidePayout, zIndex: 2 },
|
|
36
|
+
].filter((app) => app.shown), [isAcceptanceEnabled, isPayoutEnabled, hideAcceptance, hidePayout]);
|
|
38
37
|
const appsStatus = useMemo(() => apps.map((app, index) => {
|
|
39
38
|
const sourceTooltip = app.tooltip;
|
|
40
39
|
return (_jsx(Tooltip, Object.assign({ onOpen: () => {
|
|
@@ -43,6 +42,7 @@ export default function ApplicationStatusCell(_a) {
|
|
|
43
42
|
setIsTooltipOpen(false);
|
|
44
43
|
}, title: sourceTooltip }, { children: _jsx(ImageWrapper, Object.assign({ order: index, variants: appStatusAnimation(index, theme.shadows[4], 40), sx: {
|
|
45
44
|
width: '36px',
|
|
45
|
+
zIndex: app.zIndex + 6,
|
|
46
46
|
} }, { children: _jsx(IconWithBadge, { mainIcon: app.icon, mainIconSize: 16, containerSize: 16, sx: { borderRadius: '40px' }, onError: (e) => {
|
|
47
47
|
e.currentTarget.src = app.icon;
|
|
48
48
|
e.currentTarget.style.borderRadius = '0px';
|
package/build/utils/object.js
CHANGED
|
@@ -4,10 +4,10 @@ export function removeUndefinedValues(obj) {
|
|
|
4
4
|
export function removeUndefinedArrayValues(obj) {
|
|
5
5
|
return Object.fromEntries(Object.entries(obj).filter(([, value]) => {
|
|
6
6
|
if (Array.isArray(value)) {
|
|
7
|
-
return value.length > 0 && (value === null || value === void 0 ? void 0 : value.some((v) =>
|
|
7
|
+
return value.length > 0 && (value === null || value === void 0 ? void 0 : value.some((v) => v !== undefined && v !== null && v !== ''));
|
|
8
8
|
}
|
|
9
9
|
if (typeof value === 'object') {
|
|
10
|
-
return Object.values(value || {}).some((v) =>
|
|
10
|
+
return Object.values(value || {}).some((v) => v !== undefined && v !== null && v !== '');
|
|
11
11
|
}
|
|
12
12
|
return !!value;
|
|
13
13
|
}));
|
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.
|
|
5
|
-
"testVersion":
|
|
4
|
+
"version": "0.1.98-test.4",
|
|
5
|
+
"testVersion": 4,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "build/index.js",
|
|
8
8
|
"module": "build/index.js",
|