@tap-payments/os-micro-frontend-shared 0.1.390-test.1 → 0.1.390-test.2-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.
@@ -23,7 +23,7 @@ function StatusBar({ isFilteredIdsShown, availableStatuses, status, onStatusChan
23
23
  onStatusChange === null || onStatusChange === void 0 ? void 0 : onStatusChange(selected);
24
24
  }, [onStatusChange]);
25
25
  return (_jsx(_Fragment, { children: availableStatuses === null || availableStatuses === void 0 ? void 0 : availableStatuses.map((_a, index) => {
26
- var _b, _c;
26
+ var _b;
27
27
  var { render } = _a, s = __rest(_a, ["render"]);
28
28
  if (render) {
29
29
  return (_jsx(Fragment, { children: render({ status: status, onChange: handleStatusChange }, Object.assign(Object.assign({}, s), { index })) }, `custom-status-slot-${index}`));
@@ -42,13 +42,13 @@ function StatusBar({ isFilteredIdsShown, availableStatuses, status, onStatusChan
42
42
  []);
43
43
  const hasMatchingDropdownStatus = !!status && formattedStatuses.some((item) => (item === null || item === void 0 ? void 0 : item.value) === status);
44
44
  const variant = hasMatchingDropdownStatus ? 'active' : 'inActive';
45
- const selectedStatus = hasMatchingDropdownStatus ? status : (_b = formattedStatuses[0]) === null || _b === void 0 ? void 0 : _b.value;
45
+ const selectedStatus = hasMatchingDropdownStatus ? status : undefined;
46
46
  return (_jsx("div", { children: _jsx(StatusButton, Object.assign({}, s, { selectedStatus: selectedStatus, variant: variant, onButtonBodyClick: (buttonStatus) => handleStatusChange(buttonStatus), dropdownOptions: formattedStatuses.map((stat) => ({
47
47
  label: t((stat === null || stat === void 0 ? void 0 : stat.value) || ''),
48
48
  status: stat === null || stat === void 0 ? void 0 : stat.value,
49
49
  icon: stat.icon,
50
50
  onClick: () => handleStatusChange(stat.value),
51
- })), buttonSx: buttonSx })) }, (_c = formattedStatuses[0]) === null || _c === void 0 ? void 0 : _c.value));
51
+ })), buttonSx: buttonSx })) }, (_b = formattedStatuses[0]) === null || _b === void 0 ? void 0 : _b.value));
52
52
  }) }));
53
53
  }
54
54
  export default memo(StatusBar);
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.390-test.1",
5
- "testVersion": 1,
4
+ "version": "0.1.390-test.2-test.3",
5
+ "testVersion": 3,
6
6
  "type": "module",
7
7
  "main": "build/index.js",
8
8
  "module": "build/index.js",