@semcore/flags 18.0.0-prerelease.6 → 18.1.0-prerelease.0

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
4
4
 
5
+ ## [18.1.0] - 2026-10-29
6
+
7
+ ### Added
8
+
9
+ - Added `ESM` export.
10
+
5
11
  ## [18.0.0] - 2026-10-08
6
12
 
7
13
  ### BREAK
package/lib/cjs/Flags.js CHANGED
@@ -13,16 +13,16 @@ var _classnames = _interopRequireDefault(require("classnames"));
13
13
  var _react = _interopRequireDefault(require("react"));
14
14
  var _countries = _interopRequireDefault(require("./countries.json"));
15
15
  /*!__reshadow-styles__:"./style/flags.shadow.css"*/
16
- const styles = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___SFlags_ahjbd_gg_{position:relative;display:inline-block;width:16px;height:16px}.___SFlags_ahjbd_gg_:after{content:\"\";position:absolute;top:3px;left:1px;display:block;width:14px;height:11px;background-color:var(--intergalactic-bg-secondary-neutral-active,oklch(.96 .005 232.5));z-index:-1}.___SFlags_ahjbd_gg_[data-capital-letters]{display:inline-flex;justify-content:center;align-items:center;background:var(--intergalactic-bg-primary-neutral-active,oklch(.96 .005 232.5))}.___SFlags_ahjbd_gg_[data-capital-letters]:before{content:attr(data-capital-letters);font-family:sans-serif;font-size:calc(var(--intergalactic-fs-50, 10px) - 2px);line-height:normal;font-weight:var(--intergalactic-bold,700);color:var(--intergalactic-text-secondary,oklch(.182 .045 244.8/.593))}", /*__inner_css_end__*/"ahjbd_gg_"),
16
+ const styles = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___SFlags_9jor3_gg_{position:relative;display:inline-block;width:16px;height:16px}.___SFlags_9jor3_gg_:after{content:\"\";position:absolute;top:3px;left:1px;display:block;width:14px;height:11px;background-color:var(--intergalactic-bg-secondary-neutral-active,oklch(.96 .005 232.5));z-index:-1}.___SFlags_9jor3_gg_[data-capital-letters]{display:inline-flex;justify-content:center;align-items:center;background:var(--intergalactic-bg-primary-neutral-active,oklch(.96 .005 232.5))}.___SFlags_9jor3_gg_[data-capital-letters]:before{content:attr(data-capital-letters);font-family:sans-serif;font-size:calc(var(--intergalactic-fs-50, 10px) - 2px);line-height:normal;font-weight:var(--intergalactic-bold,700);color:var(--intergalactic-text-secondary,oklch(.182 .045 244.8/.593))}", /*__inner_css_end__*/"9jor3_gg_"),
17
17
  /*__reshadow_css_end__*/
18
18
  {
19
- "__SFlags": "___SFlags_ahjbd_gg_"
19
+ "__SFlags": "___SFlags_9jor3_gg_"
20
20
  });
21
21
  const iso2Name = exports.iso2Name = _countries.default.iso2Name;
22
22
  const iso3iso2 = exports.iso3iso2 = _countries.default.iso3iso2;
23
23
 
24
24
  // @ts-ignore
25
- const version = "18.0.0";
25
+ const version = "18.1.0";
26
26
  const versionForClassName = version.split('.').join('_');
27
27
  const normalizeName = name => {
28
28
  if (!name) return name;
package/lib/es6/Flags.js CHANGED
@@ -7,16 +7,16 @@ import cn from 'classnames';
7
7
  import React from 'react';
8
8
  import countries from './countries.json';
9
9
  /*!__reshadow-styles__:"./style/flags.shadow.css"*/
10
- const styles = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".___SFlags_ahjbd_gg_{position:relative;display:inline-block;width:16px;height:16px}.___SFlags_ahjbd_gg_:after{content:\"\";position:absolute;top:3px;left:1px;display:block;width:14px;height:11px;background-color:var(--intergalactic-bg-secondary-neutral-active,oklch(.96 .005 232.5));z-index:-1}.___SFlags_ahjbd_gg_[data-capital-letters]{display:inline-flex;justify-content:center;align-items:center;background:var(--intergalactic-bg-primary-neutral-active,oklch(.96 .005 232.5))}.___SFlags_ahjbd_gg_[data-capital-letters]:before{content:attr(data-capital-letters);font-family:sans-serif;font-size:calc(var(--intergalactic-fs-50, 10px) - 2px);line-height:normal;font-weight:var(--intergalactic-bold,700);color:var(--intergalactic-text-secondary,oklch(.182 .045 244.8/.593))}", /*__inner_css_end__*/"ahjbd_gg_"),
10
+ const styles = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".___SFlags_9jor3_gg_{position:relative;display:inline-block;width:16px;height:16px}.___SFlags_9jor3_gg_:after{content:\"\";position:absolute;top:3px;left:1px;display:block;width:14px;height:11px;background-color:var(--intergalactic-bg-secondary-neutral-active,oklch(.96 .005 232.5));z-index:-1}.___SFlags_9jor3_gg_[data-capital-letters]{display:inline-flex;justify-content:center;align-items:center;background:var(--intergalactic-bg-primary-neutral-active,oklch(.96 .005 232.5))}.___SFlags_9jor3_gg_[data-capital-letters]:before{content:attr(data-capital-letters);font-family:sans-serif;font-size:calc(var(--intergalactic-fs-50, 10px) - 2px);line-height:normal;font-weight:var(--intergalactic-bold,700);color:var(--intergalactic-text-secondary,oklch(.182 .045 244.8/.593))}", /*__inner_css_end__*/"9jor3_gg_"),
11
11
  /*__reshadow_css_end__*/
12
12
  {
13
- "__SFlags": "___SFlags_ahjbd_gg_"
13
+ "__SFlags": "___SFlags_9jor3_gg_"
14
14
  });
15
15
  export const iso2Name = countries.iso2Name;
16
16
  export const iso3iso2 = countries.iso3iso2;
17
17
 
18
18
  // @ts-ignore
19
- const version = "18.0.0";
19
+ const version = "18.1.0";
20
20
  const versionForClassName = version.split('.').join('_');
21
21
  const normalizeName = name => {
22
22
  if (!name) return name;
@@ -0,0 +1,108 @@
1
+ import { sstyled, createBaseComponent } from "@semcore/core";
2
+ import { useBox } from "@semcore/base-components";
3
+ import canUseDOM from "@semcore/core/lib/utils/canUseDOM";
4
+ import isRetina from "@semcore/core/lib/utils/isRetina";
5
+ import cn from "classnames";
6
+ import React from "react";
7
+ import countries from "./countries.json.mjs";
8
+ /*!__reshadow-styles__:"./style/flags.shadow.css"*/
9
+ const styles = (
10
+ /*__reshadow_css_start__*/
11
+ (sstyled.insert(
12
+ /*__inner_css_start__*/
13
+ '.___SFlags_9jor3_gg_{position:relative;display:inline-block;width:16px;height:16px}.___SFlags_9jor3_gg_:after{content:"";position:absolute;top:3px;left:1px;display:block;width:14px;height:11px;background-color:var(--intergalactic-bg-secondary-neutral-active,oklch(.96 .005 232.5));z-index:-1}.___SFlags_9jor3_gg_[data-capital-letters]{display:inline-flex;justify-content:center;align-items:center;background:var(--intergalactic-bg-primary-neutral-active,oklch(.96 .005 232.5))}.___SFlags_9jor3_gg_[data-capital-letters]:before{content:attr(data-capital-letters);font-family:sans-serif;font-size:calc(var(--intergalactic-fs-50, 10px) - 2px);line-height:normal;font-weight:var(--intergalactic-bold,700);color:var(--intergalactic-text-secondary,oklch(.182 .045 244.8/.593))}',
14
+ /*__inner_css_end__*/
15
+ "9jor3_gg_"
16
+ ), /*__reshadow_css_end__*/
17
+ {
18
+ "__SFlags": "___SFlags_9jor3_gg_"
19
+ })
20
+ );
21
+ const iso2Name = countries.iso2Name;
22
+ const iso3iso2 = countries.iso3iso2;
23
+ const version = "18.1.0";
24
+ const versionForClassName = version.split(".").join("_");
25
+ const normalizeName = (name) => {
26
+ if (!name) return name;
27
+ const noExtensions = name.includes(".") ? name.split(".").slice(0, -1).join(".") : name;
28
+ const noApostrophe = noExtensions.split("'").join("");
29
+ const noSpaces = noApostrophe.split(" ").join("-");
30
+ const noComas = noSpaces.split(",").join("-");
31
+ return noComas.toLowerCase();
32
+ };
33
+ function getCapitalLetters(iso2, iso3, name) {
34
+ if (name) {
35
+ return name;
36
+ }
37
+ if (iso2) {
38
+ return iso2;
39
+ }
40
+ if (iso3) {
41
+ return iso3.slice(0, 2);
42
+ }
43
+ return "__";
44
+ }
45
+ const addLinkStyleSprite = (patch) => {
46
+ if (!canUseDOM()) return false;
47
+ const head = window.document.head;
48
+ const prevLink = head.querySelector(`._css-style-flags-${versionForClassName}`);
49
+ if (!prevLink) {
50
+ const link = document.createElement("link");
51
+ link.classList.add(`_css-style-flags-${versionForClassName}`);
52
+ link.setAttribute("rel", "stylesheet");
53
+ link.setAttribute("href", `${patch}/sprite@${isRetina() ? "2" : "1"}x.css`);
54
+ document.head.appendChild(link);
55
+ }
56
+ return true;
57
+ };
58
+ let _addedStyle = false;
59
+ function calculateName(iso2, iso3, name) {
60
+ const iso3Name = Object.fromEntries(Object.entries(iso3iso2).map((pair) => [pair[0], iso2Name[pair[1]]]));
61
+ const allNames = {
62
+ ...iso2Name,
63
+ ...iso3Name
64
+ };
65
+ if (name) return normalizeName(allNames[name.toUpperCase()]);
66
+ if (iso2) return normalizeName(iso2Name[iso2.toUpperCase()]);
67
+ if (iso3) return normalizeName(iso2Name[iso3iso2[iso3.toUpperCase()]]);
68
+ return false;
69
+ }
70
+ function Flags(props, ref) {
71
+ var _ref;
72
+ const [SFlags, {
73
+ className,
74
+ ...other
75
+ }] = useBox({
76
+ "tag": "span",
77
+ "data-ui-name": "Flags",
78
+ ...props
79
+ }, ref);
80
+ const flagsBase = globalThis?.__intergalacticFlagsBaseUrl ?? "//static.semrush.com/intergalactic/flags/";
81
+ const {
82
+ iso2,
83
+ iso3,
84
+ name,
85
+ staticPath = `${flagsBase}${version}`
86
+ } = props;
87
+ if (!_addedStyle) {
88
+ _addedStyle = addLinkStyleSprite(staticPath);
89
+ }
90
+ const countryName = calculateName(iso2, iso3, name);
91
+ const capitalLetters = countryName ? void 0 : getCapitalLetters(iso2, iso3, name);
92
+ return _ref = sstyled(styles), /* @__PURE__ */ React.createElement(SFlags, _ref.cn("SFlags", {
93
+ "className": cn({
94
+ [`flag-${versionForClassName}`]: countryName,
95
+ [`flag-${countryName}-${versionForClassName}`]: countryName
96
+ }, className),
97
+ "data-capital-letters": capitalLetters,
98
+ ...other
99
+ }));
100
+ }
101
+ Flags.displayName = "Flags";
102
+ const Flags_default = createBaseComponent(Flags);
103
+ export {
104
+ addLinkStyleSprite,
105
+ Flags_default as default,
106
+ iso2Name,
107
+ iso3iso2
108
+ };
@@ -0,0 +1,11 @@
1
+ const iso2Name = { "AF": "Afghanistan", "AX": "Aland", "AL": "Albania", "DZ": "Algeria", "AS": "American Samoa", "AD": "Andorra", "AO": "Angola", "AI": "Anguilla", "AQ": "Antarctica", "AG": "Antigua And Barbuda", "AR": "Argentina", "AM": "Armenia", "AW": "Aruba", "AU": "Australia", "AT": "Austria", "AZ": "Azerbaijan", "BS": "Bahamas", "BH": "Bahrain", "BD": "Bangladesh", "BB": "Barbados", "BY": "Belarus", "BE": "Belgium", "BZ": "Belize", "BJ": "Benin", "BM": "Bermuda", "BN": "Brunei", "BT": "Bhutan", "BO": "Bolivia", "BQ": "Bonaire, Sint Eustatius And Saba", "BA": "Bosnia And Herzegovina", "BW": "Botswana", "BV": "Bouvet Island", "BR": "Brazil", "IO": "British Indian Ocean Territory", "VG": "British Virgin Islands", "BG": "Bulgaria", "BF": "Burkina Faso", "BI": "Burundi", "KH": "Cambodia", "CM": "Cameroon", "CA": "Canada", "CV": "Cape Verde", "KY": "Cayman Islands", "CF": "Central African Republic", "TD": "Chad", "CL": "Chile", "CN": "China", "CX": "Christmas Island", "CC": "Cocos Islands", "CO": "Colombia", "KM": "Comoros", "CG": "Republic Of The Congo", "CK": "Cook Islands", "CR": "Costa Rica", "CI": "Cote d'Ivoire", "HR": "Croatia", "CU": "Cuba", "CW": "Curacao", "CY": "Cyprus", "CZ": "Czech Republic", "CD": "Democratic Republic Of The Congo", "DK": "Denmark", "DJ": "Djibouti", "DM": "Dominica", "DO": "Dominican Republic", "TL": "East Timor", "EC": "Ecuador", "EG": "Egypt", "SV": "El Salvador", "GQ": "Equatorial Guinea", "ER": "Eritrea", "EE": "Estonia", "ET": "Ethiopia", "EU": "European Union", "FK": "Falkland Islands", "FO": "Faroes", "FJ": "Fiji", "FI": "Finland", "FR": "France", "GF": "French Guiana", "PF": "French Polynesia", "TF": "French Southern Territories", "GA": "Gabon", "GM": "Gambia", "GE": "Georgia", "DE": "Germany", "GH": "Ghana", "GI": "Gibraltar", "GR": "Greece", "GL": "Greenland", "GD": "Grenada", "GU": "Guam", "GP": "Guadeloupe", "GT": "Guatemala", "GG": "Guernsey", "GN": "Guinea", "GW": "Guinea Bissau", "GY": "Guyana", "HT": "Haiti", "HM": "Heard Island And McDonald Islands", "VA": "Vatican City", "HN": "Honduras", "HK": "Hong Kong", "HU": "Hungary", "IS": "Iceland", "IN": "India", "ID": "Indonesia", "IR": "Iran", "IQ": "Iraq", "IE": "Ireland", "IM": "Isle Of Man", "IL": "Israel", "IT": "Italy", "JM": "Jamaica", "JP": "Japan", "JE": "Jersey", "JO": "Jordan", "KZ": "Kazakhstan", "KE": "Kenya", "KI": "Kiribati", "KP": "North Korea", "KR": "South Korea", "XK": "Kosovo", "KW": "Kuwait", "KG": "Kyrgyzstan", "LA": "Laos", "LV": "Latvia", "LB": "Lebanon", "LS": "Lesotho", "LR": "Liberia", "LY": "Libya", "LI": "Liechtenstein", "LT": "Lithuania", "LU": "Luxembourg", "MO": "Macao", "MK": "Macedonia", "MG": "Madagascar", "MW": "Malawi", "MY": "Malaysia", "MV": "Maldives", "ML": "Mali", "MT": "Malta", "MH": "Marshall Islands", "MQ": "Martinique", "MR": "Mauritania", "MU": "Mauritius", "YT": "Mayotte", "MX": "Mexico", "FM": "Micronesia", "MD": "Moldova", "MC": "Monaco", "MN": "Mongolia", "ME": "Montenegro", "MS": "Montserrat", "MA": "Morocco", "MZ": "Mozambique", "MM": "Myanmar", "NA": "Namibia", "NR": "Nauru", "NP": "Nepal", "NL": "Netherlands", "AN": "Netherlands Antilles", "NC": "New Caledonia", "NZ": "New Zealand", "NI": "Nicaragua", "NE": "Niger", "NG": "Nigeria", "NU": "Niue", "NF": "Norfolk Island", "MP": "Northern Mariana Islands", "NO": "Norway", "OM": "Oman", "PK": "Pakistan", "PW": "Palau", "PS": "Palestine", "PA": "Panama", "PG": "Papua New Guinea", "PY": "Paraguay", "PE": "Peru", "PH": "Philippines", "PM": "Saint Pierre And Miquelon", "PN": "Pitcairn Islands", "PL": "Poland", "PT": "Portugal", "PR": "Puerto Rico", "QA": "Qatar", "RE": "Reunion", "RO": "Romania", "RU": "Russia", "RW": "Rwanda", "BL": "Saint Barthelemy", "SH": "Saint Helena", "KN": "Saint Kitts And Nevis", "LC": "Saint Lucia", "MF": "Saint Martin", "VC": "Saint Vincent And The Grenadines", "WS": "Samoa", "SM": "San Marino", "ST": "Sao Tome And Principe", "SA": "Saudi Arabia", "SN": "Senegal", "RS": "Serbia", "SC": "Seychelles", "SL": "Sierra Leone", "SG": "Singapore", "SX": "Sint Maarten", "SK": "Slovakia", "SI": "Slovenia", "SB": "Solomon Islands", "SO": "Somalia", "ZA": "South Africa", "GS": "South Georgia And The South Sandwich Islands", "SS": "South Sudan", "ES": "Spain", "LK": "Sri Lanka", "SD": "Sudan", "SR": "Suriname", "SJ": "Svalbard And Jan Mayen", "SZ": "Swaziland", "SE": "Sweden", "CH": "Switzerland", "SY": "Syria", "TW": "Taiwan", "TJ": "Tajikistan", "TZ": "Tanzania", "TH": "Thailand", "TG": "Togo", "TK": "Tokelau", "TO": "Tonga", "TT": "Trinidad And Tobago", "TN": "Tunisia", "TR": "Turkey", "TM": "Turkmenistan", "TC": "Turks And Caicos Islands", "TV": "Tuvalu", "UG": "Uganda", "UA": "Ukraine", "AE": "United Arab Emirates", "GB": "United Kingdom", "US": "United States", "UM": "United States Minor Outlying Islands", "VI": "United States Virgin Islands", "UY": "Uruguay", "UZ": "Uzbekistan", "VU": "Vanuatu", "VE": "Venezuela", "VN": "Vietnam", "WF": "Wallis And Futuna", "EH": "Western Sahara", "YE": "Yemen", "ZM": "Zambia", "ZW": "Zimbabwe" };
2
+ const iso3iso2 = { "AFG": "AF", "ALA": "AX", "ALB": "AL", "DZA": "DZ", "ASM": "AS", "AND": "AD", "ANT": "AN", "AGO": "AO", "AIA": "AI", "ATA": "AQ", "ATG": "AG", "ARG": "AR", "ARM": "AM", "ABW": "AW", "AUS": "AU", "AUT": "AT", "AZE": "AZ", "BHS": "BS", "BHR": "BH", "BGD": "BD", "BRB": "BB", "BLR": "BY", "BEL": "BE", "BLZ": "BZ", "BEN": "BJ", "BMU": "BM", "BTN": "BT", "BOL": "BO", "BES": "BQ", "BIH": "BA", "BWA": "BW", "BVT": "BV", "BRA": "BR", "IOT": "IO", "BRN": "BN", "BGR": "BG", "BFA": "BF", "BDI": "BI", "CPV": "CV", "KHM": "KH", "CMR": "CM", "CAN": "CA", "CYM": "KY", "CAF": "CF", "TCD": "TD", "CHL": "CL", "CHN": "CN", "CXR": "CX", "CCK": "CC", "COL": "CO", "COM": "KM", "COG": "CG", "COD": "CD", "COK": "CK", "CRI": "CR", "CIV": "CI", "HRV": "HR", "CUB": "CU", "CUW": "CW", "CYP": "CY", "CZE": "CZ", "DNK": "DK", "DJI": "DJ", "DMA": "DM", "DOM": "DO", "ECU": "EC", "EGY": "EG", "SLV": "SV", "GNQ": "GQ", "ERI": "ER", "EST": "EE", "ETH": "ET", "FLK": "FK", "FRO": "FO", "FJI": "FJ", "FIN": "FI", "FRA": "FR", "GUF": "GF", "PYF": "PF", "ATF": "TF", "GAB": "GA", "GMB": "GM", "GEO": "GE", "DEU": "DE", "GHA": "GH", "GIB": "GI", "GRC": "GR", "GRL": "GL", "GRD": "GD", "GLP": "GP", "GUM": "GU", "GTM": "GT", "GGY": "GG", "GIN": "GN", "GNB": "GW", "GUY": "GY", "HTI": "HT", "HMD": "HM", "VAT": "VA", "HND": "HN", "HKG": "HK", "HUN": "HU", "ISL": "IS", "IND": "IN", "IDN": "ID", "IRN": "IR", "IRQ": "IQ", "IRL": "IE", "IMN": "IM", "ISR": "IL", "ITA": "IT", "JAM": "JM", "JPN": "JP", "JEY": "JE", "JOR": "JO", "KAZ": "KZ", "KEN": "KE", "KIR": "KI", "PRK": "KP", "KOR": "KR", "KWT": "KW", "KGZ": "KG", "LAO": "LA", "LVA": "LV", "LBN": "LB", "LSO": "LS", "LBR": "LR", "LBY": "LY", "LIE": "LI", "LTU": "LT", "LUX": "LU", "MAC": "MO", "MKD": "MK", "MDG": "MG", "MWI": "MW", "MYS": "MY", "MDV": "MV", "MLI": "ML", "MLT": "MT", "MHL": "MH", "MTQ": "MQ", "MRT": "MR", "MUS": "MU", "MYT": "YT", "MEX": "MX", "FSM": "FM", "MDA": "MD", "MCO": "MC", "MNG": "MN", "MNE": "ME", "MSR": "MS", "MAR": "MA", "MOZ": "MZ", "MMR": "MM", "NAM": "NA", "NRU": "NR", "NPL": "NP", "NLD": "NL", "NCL": "NC", "NZL": "NZ", "NIC": "NI", "NER": "NE", "NGA": "NG", "NIU": "NU", "NFK": "NF", "MNP": "MP", "NOR": "NO", "OMN": "OM", "PAK": "PK", "PLW": "PW", "PSE": "PS", "PAN": "PA", "PNG": "PG", "PRY": "PY", "PER": "PE", "PHL": "PH", "PCN": "PN", "POL": "PL", "PRT": "PT", "PRI": "PR", "QAT": "QA", "REU": "RE", "ROU": "RO", "RUS": "RU", "RWA": "RW", "BLM": "BL", "SHN": "SH", "KNA": "KN", "LCA": "LC", "MAF": "MF", "SPM": "PM", "VCT": "VC", "WSM": "WS", "SMR": "SM", "STP": "ST", "SAU": "SA", "SEN": "SN", "SRB": "RS", "RKS": "XK", "SYC": "SC", "SLE": "SL", "SGP": "SG", "SXM": "SX", "SVK": "SK", "SVN": "SI", "SLB": "SB", "SOM": "SO", "ZAF": "ZA", "SGS": "GS", "SSD": "SS", "ESP": "ES", "LKA": "LK", "SDN": "SD", "SUR": "SR", "SJM": "SJ", "SWZ": "SZ", "SWE": "SE", "CHE": "CH", "SYR": "SY", "TWN": "TW", "TJK": "TJ", "TZA": "TZ", "THA": "TH", "TLS": "TL", "TGO": "TG", "TKL": "TK", "TON": "TO", "TTO": "TT", "TUN": "TN", "TUR": "TR", "TKM": "TM", "TCA": "TC", "TUV": "TV", "UGA": "UG", "UKR": "UA", "ARE": "AE", "GBR": "GB", "USA": "US", "UMI": "UM", "URY": "UY", "UZB": "UZ", "VUT": "VU", "VEN": "VE", "VNM": "VN", "VGB": "VG", "VIR": "VI", "WLF": "WF", "ESH": "EH", "YEM": "YE", "ZMB": "ZM", "ZWE": "ZW" };
3
+ const countries = {
4
+ iso2Name,
5
+ iso3iso2
6
+ };
7
+ export {
8
+ countries as default,
9
+ iso2Name,
10
+ iso3iso2
11
+ };
@@ -0,0 +1,7 @@
1
+ import { addLinkStyleSprite, default as default2, iso2Name, iso3iso2 } from "./Flags.mjs";
2
+ export {
3
+ addLinkStyleSprite,
4
+ default2 as default,
5
+ iso2Name,
6
+ iso3iso2
7
+ };
@@ -0,0 +1,35 @@
1
+ SFlags {
2
+ position: relative;
3
+ display: inline-block;
4
+ width: 16px;
5
+ height: 16px;
6
+
7
+ &::after {
8
+ content: '';
9
+ position: absolute;
10
+ top: 3px;
11
+ left: 1px;
12
+ display: block;
13
+ width: 14px;
14
+ height: 11px;
15
+ background-color: var(--intergalactic-bg-secondary-neutral-active, oklch(0.96 0.005 232.5));
16
+ z-index: -1;
17
+ }
18
+ }
19
+
20
+ SFlags[data-capital-letters] {
21
+ display: inline-flex;
22
+ justify-content: center;
23
+ align-items: center;
24
+ background: var(--intergalactic-bg-primary-neutral-active, oklch(0.96 0.005 232.5));
25
+
26
+ &::before {
27
+ content: attr(data-capital-letters);
28
+ font-family: sans-serif;
29
+ /* disable-tokens-validator */
30
+ font-size: calc(var(--intergalactic-fs-50, 10px) - 2px);
31
+ line-height: normal;
32
+ font-weight: var(--intergalactic-bold, 700);
33
+ color: var(--intergalactic-text-secondary, oklch(0.182 0.045 244.8 / 0.593));
34
+ }
35
+ }