@tap-payments/os-micro-frontend-shared 0.1.241-test.4 → 0.1.241-test.5

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.
@@ -6,6 +6,7 @@ import CustomBackdrop from '../../../CustomBackdrop';
6
6
  import { downArrowIcon, searchIcon } from '../../../../constants/index.js';
7
7
  import { CountryStyled, CountriesWrapper, CountriesListStyled, InputStyled, CountryButton, Required } from './style';
8
8
  import { ClickAwayListener } from '@mui/material';
9
+ import CountryFlag from '../../../CountryFlag';
9
10
  function CountriesList({ isLoading, countries, value: countryValue, onCountryChange, required, disabled }) {
10
11
  const [selectedCountry, setSelectedCountry] = useState();
11
12
  const [anchorEl, setAnchorEl] = useState(null);
@@ -58,7 +59,7 @@ function CountriesList({ isLoading, countries, value: countryValue, onCountryCha
58
59
  }, sx: {
59
60
  backgroundColor: isSelected ? '#F9F9F9' : 'transparent',
60
61
  color: isSelected ? '#000' : '#8D8D94',
61
- } }, { children: [_jsx("img", { src: country.logo, alt: "c", className: "logo" }), _jsx("span", { children: `+${country.idd_prefix}` })] }), `country-code-${country.countryId}`));
62
+ } }, { children: [_jsx(CountryFlag, { code: country.iso2 }), _jsx("span", { children: `+${country.idd_prefix}` })] }), `country-code-${country.countryId}`));
62
63
  }) }))] })) })))] })));
63
64
  }
64
65
  CountriesList.displayName = 'CountriesList';
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.241-test.4",
5
- "testVersion": 4,
4
+ "version": "0.1.241-test.5",
5
+ "testVersion": 5,
6
6
  "type": "module",
7
7
  "main": "build/index.js",
8
8
  "module": "build/index.js",