@tap-payments/os-micro-frontend-shared 0.1.326 → 0.1.327

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.
@@ -45,7 +45,7 @@ function SelectWithAccordion(_a) {
45
45
  e.stopPropagation();
46
46
  e.preventDefault();
47
47
  setExpandedParentGroupIndex(expanded ? parentIndex : null);
48
- } }, { children: ((optionsGroup === null || optionsGroup === void 0 ? void 0 : optionsGroup.options) || []).map((option) => {
48
+ } }, { children: ((optionsGroup === null || optionsGroup === void 0 ? void 0 : optionsGroup.options) || []).map((option, index) => {
49
49
  var _a, _b;
50
50
  const isSelected = (_a = props === null || props === void 0 ? void 0 : props.isOptionEqualToValue) === null || _a === void 0 ? void 0 : _a.call(props, option, selectedOption);
51
51
  return (_jsxs(ItemStyled, Object.assign({ onClick: () => {
@@ -55,8 +55,8 @@ function SelectWithAccordion(_a) {
55
55
  shouldValidate: true,
56
56
  });
57
57
  closeDropdown();
58
- } }, { children: [((_b = props.renderOption) === null || _b === void 0 ? void 0 : _b.call(props, option)) || option.label, isSelected && _jsx(Icon, { src: blueCheckIcon, alt: "blue-check", sx: { width: 14, height: 10 } })] }), option.value));
59
- }) }), `${optionsGroup.group}-group`));
58
+ } }, { children: [((_b = props.renderOption) === null || _b === void 0 ? void 0 : _b.call(props, option)) || option.label, isSelected && _jsx(Icon, { src: blueCheckIcon, alt: "blue-check", sx: { width: 14, height: 10 } })] }), `${option.value}-${option.label}-${index}`));
59
+ }) }), `${optionsGroup.group}-group-${parentIndex}`));
60
60
  }) })) }) })));
61
61
  }
62
62
  export default SelectWithAccordion;
@@ -19,5 +19,5 @@ import { verificationIcon } from './constants';
19
19
  export default function EntityCell(_a) {
20
20
  var { entity, country, verificationStatus, licenseNumber, hideStatus } = _a, props = __rest(_a, ["entity", "country", "verificationStatus", "licenseNumber", "hideStatus"]);
21
21
  const icon = verificationIcon[verificationStatus !== null && verificationStatus !== void 0 ? verificationStatus : 'incomplete'];
22
- return (_jsx(TableCell, Object.assign({}, props, { sx: { cursor: (props === null || props === void 0 ? void 0 : props.onClick) ? 'pointer' : 'default' } }, { children: _jsx(Tooltip, Object.assign({ title: entity }, { children: _jsx(EntityWrapper, Object.assign({ hasClick: !!(props === null || props === void 0 ? void 0 : props.onClick), licenseNumber: licenseNumber }, { children: _jsxs(EntityWrapperContent, { children: [_jsx(Tooltip, Object.assign({ title: getCountryNameByISO(country) }, { children: _jsx(CountryFlag, { countryCode: country }) })), _jsx(EntityName, Object.assign({ licenseNumber: licenseNumber }, { children: licenseNumber || 'Not Available' })), !hideStatus && (_jsx(VerificationContainer, { children: _jsx(VerificationIcon, { src: icon }) }))] }) })) })) })));
22
+ return (_jsx(TableCell, Object.assign({}, props, { sx: { cursor: (props === null || props === void 0 ? void 0 : props.onClick) ? 'pointer' : 'default' } }, { children: _jsx(Tooltip, Object.assign({ title: entity }, { children: _jsx(EntityWrapper, Object.assign({ hasClick: !!(props === null || props === void 0 ? void 0 : props.onClick), licenseNumber: licenseNumber }, { children: _jsxs(EntityWrapperContent, { children: [_jsx(Tooltip, Object.assign({ title: country ? getCountryNameByISO(country) : '' }, { children: _jsx(CountryFlag, { countryCode: country }) })), _jsx(EntityName, Object.assign({ licenseNumber: licenseNumber }, { children: licenseNumber || 'Not Available' })), !hideStatus && (_jsx(VerificationContainer, { children: _jsx(VerificationIcon, { src: icon }) }))] }) })) })) })));
23
23
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
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.326",
4
+ "version": "0.1.327",
5
5
  "testVersion": 0,
6
6
  "type": "module",
7
7
  "main": "build/index.js",