@tap-payments/os-micro-frontend-shared 0.1.147-test.2 → 0.1.147-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.
@@ -28,7 +28,8 @@ function SegmentsCell(_a) {
28
28
  var _a, _b;
29
29
  const isPlatformSegment = (_b = (_a = segment.type) === null || _a === void 0 ? void 0 : _a.toLowerCase) === null || _b === void 0 ? void 0 : _b.call(_a).includes('platform');
30
30
  const sourceTooltip = segment.tooltip || getSegmentTooltip(segment);
31
- const icon = isPlatformSegment ? segmentsIcons.platform : segmentsIcons[segment.type];
31
+ const segmentType = segment.type;
32
+ const icon = isPlatformSegment ? segmentsIcons.platform : segmentsIcons[segmentType];
32
33
  return (_jsx(Tooltip, Object.assign({ onOpen: () => {
33
34
  setIsTooltipOpen(true);
34
35
  }, onClose: () => {
@@ -36,7 +37,7 @@ function SegmentsCell(_a) {
36
37
  }, title: sourceTooltip }, { children: _jsx(ImageWrapper, Object.assign({ order: index, variants: referenceSourceAnimation(index, theme.shadows[4], isTextShown ? 83 : 0), sx: {
37
38
  width: isTextShown ? '79px' : '36px',
38
39
  } }, { children: isTextShown ? (_jsx(ReferenceTextWrapper, { children: _jsx(ReferenceTextLabel, { children: startCase(segment.name) }) })) : (_jsx(IconWithBadge, { mainIcon: segment.icon || icon, mainIconSize: 16, containerSize: 16, sx: Object.assign({}, (segment.icon ? { borderRadius: '40px' } : { borderRadius: '0px' })), onError: (e) => {
39
- e.currentTarget.src = segmentsIcons[segment.type];
40
+ e.currentTarget.src = segmentsIcons[segmentType];
40
41
  e.currentTarget.style.borderRadius = '0px';
41
42
  }, borderColor: "transparent" })) })) }), `${segment.name}-${index}`));
42
43
  }), [segments, isTextShown, theme]);
@@ -4,7 +4,7 @@ export type SegmentsType = keyof typeof segmentsIcons;
4
4
  export interface SegmentInfo {
5
5
  name?: string;
6
6
  icon?: string;
7
- type: SegmentsType;
7
+ type: string;
8
8
  tooltip?: string;
9
9
  }
10
10
  export interface SegmentsCellProps extends TableCellProps {
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.147-test.2",
5
- "testVersion": 2,
4
+ "version": "0.1.147-test.3",
5
+ "testVersion": 3,
6
6
  "type": "module",
7
7
  "main": "build/index.js",
8
8
  "module": "build/index.js",