@tap-payments/os-micro-frontend-shared 0.1.136 → 0.1.137
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.
|
@@ -51,7 +51,7 @@ function CountriesList({ isLoading, countries, value: countryValue, onCountryCha
|
|
|
51
51
|
border: 'none',
|
|
52
52
|
height: 34,
|
|
53
53
|
paddingInlineStart: '8px',
|
|
54
|
-
} }, { children: isLoading ? (_jsx(Skeleton, { variant: "rectangular", width: 56.5, height: 20, sx: { borderRadius: '4px' } })) : (_jsxs(_Fragment, { children: [selectedCountry && (_jsxs(_Fragment, { children: [_jsx("img", { src: selectedCountry.logo, alt: "c", className: "logo" }), _jsx("span", { children: `+${selectedCountry === null || selectedCountry === void 0 ? void 0 : selectedCountry.idd_prefix}` })] })), required && _jsx(Required, Object.assign({ component: "span" }, { children: "*" })), _jsx(Box, { component: "img", src: downArrowIcon, alt: "d", className: "arrow", sx: Object.assign({}, (open && { transform: 'rotate(180deg)' })) })] })) })), open && _jsx(CustomBackdrop, { onClick: closeDropdown }), open && (_jsx(ClickAwayListener, Object.assign({ onClickAway: closeDropdown }, { children: _jsxs(CountriesWrapper, Object.assign({ id: "CountriesList_CountriesWrapper", open: open, anchorEl: anchorEl, "data-testid": "CountriesList_CountriesWrapper", placement: "bottom-start" }, { children: [_jsx(InputStyled, { endAdornment: _jsx("img", { src: searchIcon, alt: "arrow" }), onChange: handleSearch, hideArrows: true, "data-testid": "CountriesList_InputStyled", value: searchValue }), _jsx(CountriesListStyled, Object.assign({ "data-testid": "CountriesList_CountriesListStyled" }, { children: filteredCountries.map((country) => {
|
|
54
|
+
} }, { children: isLoading ? (_jsx(Skeleton, { variant: "rectangular", width: 56.5, height: 20, sx: { borderRadius: '4px' } })) : (_jsxs(_Fragment, { children: [selectedCountry && (_jsxs(_Fragment, { children: [_jsx("img", { src: selectedCountry.logo, alt: "c", className: "logo" }), _jsx("span", { children: `+${selectedCountry === null || selectedCountry === void 0 ? void 0 : selectedCountry.idd_prefix}` })] })), required && _jsx(Required, Object.assign({ component: "span" }, { children: "*" })), _jsx(Box, { component: "img", src: downArrowIcon, alt: "d", className: "arrow", sx: Object.assign({}, (open && { transform: 'rotate(180deg)' })) })] })) })), open && _jsx(CustomBackdrop, { onClick: closeDropdown, sx: { zIndex: 9999 } }), open && (_jsx(ClickAwayListener, Object.assign({ onClickAway: closeDropdown }, { children: _jsxs(CountriesWrapper, Object.assign({ id: "CountriesList_CountriesWrapper", open: open, anchorEl: anchorEl, "data-testid": "CountriesList_CountriesWrapper", placement: "bottom-start" }, { children: [_jsx(InputStyled, { endAdornment: _jsx("img", { src: searchIcon, alt: "arrow" }), onChange: handleSearch, hideArrows: true, "data-testid": "CountriesList_InputStyled", value: searchValue }), _jsx(CountriesListStyled, Object.assign({ "data-testid": "CountriesList_CountriesListStyled" }, { children: filteredCountries.map((country) => {
|
|
55
55
|
const isSelected = (selectedCountry === null || selectedCountry === void 0 ? void 0 : selectedCountry.countryId) === country.countryId;
|
|
56
56
|
return (_jsxs(CountryStyled, Object.assign({ onClick: () => {
|
|
57
57
|
handleOnCountryChange(country);
|
|
@@ -547,3 +547,5 @@ export declare const sortAscArrowIcon: string;
|
|
|
547
547
|
export declare const closedOutlinedYellowCircle: string;
|
|
548
548
|
export declare const deactivatedOrangeCircle: string;
|
|
549
549
|
export declare const exclamationOutlinedOrangeCircle: string;
|
|
550
|
+
export declare const activeGreenIcon: string;
|
|
551
|
+
export declare const inActiveGreyIcon: string;
|
|
@@ -555,3 +555,5 @@ export const sortAscArrowIcon = `${lightUrl}/sortAscArrowIcon.svg`;
|
|
|
555
555
|
export const closedOutlinedYellowCircle = `${lightUrl}/closedOutlinedYellowCircle.svg`;
|
|
556
556
|
export const deactivatedOrangeCircle = `${lightUrl}/deactivatedOrangeCircle.svg`;
|
|
557
557
|
export const exclamationOutlinedOrangeCircle = `${lightUrl}/exclamationOutlinedOrangeCircle.svg`;
|
|
558
|
+
export const activeGreenIcon = `${lightUrl}/activeGreenIcon.svg`;
|
|
559
|
+
export const inActiveGreyIcon = `${lightUrl}/inActiveGreyIcon.svg`;
|
package/package.json
CHANGED