@tap-payments/os-micro-frontend-shared 0.0.302 → 0.0.303
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 +3 -2
- package/build/components/TableCells/CustomCells/SegmentsCell/SegmentsCell.js +1 -1
- package/build/constants/table/cell/terminalsTableCellWidth.d.ts +3 -3
- package/build/constants/table/cell/terminalsTableCellWidth.js +3 -3
- package/package.json +2 -2
package/build/components/TableCells/CustomCells/ApplicationStatusCell/ApplicationStatusCell.js
CHANGED
|
@@ -30,11 +30,12 @@ export default function ApplicationStatusCell(_a) {
|
|
|
30
30
|
tooltip: 'Acceptance',
|
|
31
31
|
enabled: isAcceptanceEnabled,
|
|
32
32
|
shown: !hideAcceptance,
|
|
33
|
+
order: 0,
|
|
33
34
|
},
|
|
34
|
-
{ icon: isPayoutEnabled ? payoutsGreenIcon : payoutWindowIcon, tooltip: 'Payout', enabled: isPayoutEnabled, shown: !hidePayout },
|
|
35
|
+
{ icon: isPayoutEnabled ? payoutsGreenIcon : payoutWindowIcon, tooltip: 'Payout', enabled: isPayoutEnabled, shown: !hidePayout, order: 1 },
|
|
35
36
|
]
|
|
36
37
|
.filter((app) => app.shown)
|
|
37
|
-
.sort((a, b) => (a.enabled !== b.enabled
|
|
38
|
+
.sort((a, b) => (a.enabled !== b.enabled ? -1 : a.order - b.order)), [isAcceptanceEnabled, isPayoutEnabled, hideAcceptance, hidePayout]);
|
|
38
39
|
const appsStatus = useMemo(() => apps.map((app, index) => {
|
|
39
40
|
const sourceTooltip = app.tooltip;
|
|
40
41
|
return (_jsx(Tooltip, Object.assign({ onOpen: () => {
|
|
@@ -34,7 +34,7 @@ function SegmentsCell(_a) {
|
|
|
34
34
|
setIsTooltipOpen(false);
|
|
35
35
|
}, title: sourceTooltip }, { children: _jsx(ImageWrapper, Object.assign({ order: index, variants: referenceSourceAnimation(index, theme.shadows[4], isTextShown ? 83 : 0), sx: {
|
|
36
36
|
width: isTextShown ? '79px' : '36px',
|
|
37
|
-
} }, { children: isTextShown ? (_jsx(ReferenceTextWrapper, { children: _jsx(ReferenceTextLabel, { children: startCase(segment) }) })) : (_jsx(IconWithBadge, { mainIcon: (segmentData === null || segmentData === void 0 ? void 0 : segmentData.icon) || segmentsIcons[segment], mainIconSize: segment === 'order' ? 11.82 : 16, containerSize: segment === 'order' ? 11.82 : 16, sx: Object.assign({}, ((segmentData === null || segmentData === void 0 ? void 0 : segmentData.icon)
|
|
37
|
+
} }, { children: isTextShown ? (_jsx(ReferenceTextWrapper, { children: _jsx(ReferenceTextLabel, { children: startCase(segment) }) })) : (_jsx(IconWithBadge, { mainIcon: (segmentData === null || segmentData === void 0 ? void 0 : segmentData.icon) || segmentsIcons[segment], mainIconSize: segment === 'order' ? 11.82 : 16, containerSize: segment === 'order' ? 11.82 : 16, sx: Object.assign({}, ((segmentData === null || segmentData === void 0 ? void 0 : segmentData.icon) && { borderRadius: '40px' })), onError: (e) => {
|
|
38
38
|
e.currentTarget.src = segmentsIcons[segment];
|
|
39
39
|
e.currentTarget.style.borderRadius = '0px';
|
|
40
40
|
}, borderColor: "transparent" })) })) }), `${segment}-${index}`));
|
|
@@ -20,9 +20,9 @@ export declare const terminalsTableCellWidth: {
|
|
|
20
20
|
readonly sheet: "80px";
|
|
21
21
|
};
|
|
22
22
|
readonly platform: {
|
|
23
|
-
readonly default: "
|
|
24
|
-
readonly text: "
|
|
25
|
-
readonly sheet: "
|
|
23
|
+
readonly default: "80px";
|
|
24
|
+
readonly text: "80px";
|
|
25
|
+
readonly sheet: "80px";
|
|
26
26
|
};
|
|
27
27
|
readonly branding: {
|
|
28
28
|
readonly default: "80px";
|
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.
|
|
5
|
-
"testVersion":
|
|
4
|
+
"version": "0.0.303",
|
|
5
|
+
"testVersion": 0,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "build/index.js",
|
|
8
8
|
"module": "build/index.js",
|