@tap-payments/os-micro-frontend-shared 0.1.257-test.2 → 0.1.257-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.
@@ -27,7 +27,7 @@ export default function MerchantItem({ brands, isLoading, onFilterChange, mercha
27
27
  }, [brands, merchantsIds]);
28
28
  const onClick = () => {
29
29
  if (isAllSelected) {
30
- if (atLeastOneMerchantSelected && merchantsIds.length === 1)
30
+ if (atLeastOneMerchantSelected)
31
31
  return;
32
32
  onFilterChange === null || onFilterChange === void 0 ? void 0 : onFilterChange([]);
33
33
  return;
@@ -35,7 +35,7 @@ export default function MerchantItem({ brands, isLoading, onFilterChange, mercha
35
35
  const allMerchants = brands.flatMap((brand) => brand.merchants.map(({ legacy_id }) => legacy_id));
36
36
  onFilterChange === null || onFilterChange === void 0 ? void 0 : onFilterChange(allMerchants);
37
37
  };
38
- const isDisabled = isLoading || (brands === null || brands === void 0 ? void 0 : brands.length) <= 0;
38
+ const isDisabled = isLoading || !(brands === null || brands === void 0 ? void 0 : brands.length);
39
39
  return (_jsxs(MenuItem, Object.assign({ isDisabled: isDisabled, isSelected: isAllSelected, hideCheckbox: hideCheckbox, isIndeterminate: isSomeSelected, sx: Object.assign(Object.assign({ maxHeight: 36, minHeight: 36, padding: '12px 8px 12px 16px' }, (open && { boxShadow: '0px 0px 16px 0px #00000021' })), (isDisabled && {
40
40
  pointerEvents: 'none',
41
41
  opacity: 0.5,
@@ -24,7 +24,7 @@ function RetailersItem({ retailersIds = [], isLoading, retailers = [], onFilterC
24
24
  const isSomeSelected = useMemo(() => !isAllSelected && retailersIds.length > 0, [retailersIds, isAllSelected]);
25
25
  const onClick = () => {
26
26
  if (isAllSelected) {
27
- if (atLeastOneRetailerSelected && retailersIds.length === 1)
27
+ if (atLeastOneRetailerSelected)
28
28
  return;
29
29
  onFilterChange === null || onFilterChange === void 0 ? void 0 : onFilterChange([]);
30
30
  return;
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.257-test.2",
5
- "testVersion": 2,
4
+ "version": "0.1.257-test.4",
5
+ "testVersion": 4,
6
6
  "type": "module",
7
7
  "main": "build/index.js",
8
8
  "module": "build/index.js",