@m4l/gclick 0.26.0 → 0.27.0-beta-feature-795-m4l-react-native-ui-indicator-flag.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/@types/types.d.ts +8 -0
- package/components/PhoneNumberField/PhoneNumberField.d.ts +4 -0
- package/components/PhoneNumberField/PhoneNumberField.d.ts.map +1 -0
- package/components/PhoneNumberField/PhoneNumberField.js +86 -0
- package/components/PhoneNumberField/index.d.ts +3 -0
- package/components/PhoneNumberField/index.d.ts.map +1 -0
- package/components/PhoneNumberField/phoneNumber.d.ts +7 -0
- package/components/PhoneNumberField/phoneNumber.d.ts.map +1 -0
- package/components/PhoneNumberField/phoneNumber.js +12 -0
- package/components/PhoneNumberField/types.d.ts +25 -0
- package/components/PhoneNumberField/types.d.ts.map +1 -0
- package/components/RHFs/RHFPhoneNumberField/RHFPhoneNumberField.d.ts +5 -0
- package/components/RHFs/RHFPhoneNumberField/RHFPhoneNumberField.d.ts.map +1 -0
- package/components/RHFs/RHFPhoneNumberField/RHFPhoneNumberField.js +81 -0
- package/components/RHFs/RHFPhoneNumberField/RHFPhoneNumberField.slots.d.ts +5 -0
- package/components/RHFs/RHFPhoneNumberField/RHFPhoneNumberField.slots.d.ts.map +1 -0
- package/components/RHFs/RHFPhoneNumberField/RHFPhoneNumberField.slots.js +13 -0
- package/components/RHFs/RHFPhoneNumberField/index.d.ts +3 -0
- package/components/RHFs/RHFPhoneNumberField/index.d.ts.map +1 -0
- package/components/RHFs/RHFPhoneNumberField/types.d.ts +13 -0
- package/components/RHFs/RHFPhoneNumberField/types.d.ts.map +1 -0
- package/components/index.d.ts +2 -0
- package/components/index.d.ts.map +1 -1
- package/components/indicators/IndicatorFlag/IndicatorFlag.d.ts +4 -0
- package/components/indicators/IndicatorFlag/IndicatorFlag.d.ts.map +1 -0
- package/components/indicators/IndicatorFlag/IndicatorFlag.js +168 -0
- package/components/indicators/IndicatorFlag/IndicatorFlag.slots.d.ts +31 -0
- package/components/indicators/IndicatorFlag/IndicatorFlag.slots.d.ts.map +1 -0
- package/components/indicators/IndicatorFlag/IndicatorFlag.slots.js +18 -0
- package/components/indicators/IndicatorFlag/IndicatorFlag.styles.d.ts +4 -0
- package/components/indicators/IndicatorFlag/IndicatorFlag.styles.d.ts.map +1 -0
- package/components/indicators/IndicatorFlag/IndicatorFlag.styles.js +142 -0
- package/components/indicators/IndicatorFlag/constants.d.ts +5 -0
- package/components/indicators/IndicatorFlag/constants.d.ts.map +1 -0
- package/components/indicators/IndicatorFlag/constants.js +7 -0
- package/components/indicators/IndicatorFlag/countryOptions.d.ts +4 -0
- package/components/indicators/IndicatorFlag/countryOptions.d.ts.map +1 -0
- package/components/indicators/IndicatorFlag/countryOptions.js +15 -0
- package/components/indicators/IndicatorFlag/countryStock.generated.d.ts +10 -0
- package/components/indicators/IndicatorFlag/countryStock.generated.d.ts.map +1 -0
- package/components/indicators/IndicatorFlag/countryStock.generated.js +251 -0
- package/components/indicators/IndicatorFlag/index.d.ts +3 -0
- package/components/indicators/IndicatorFlag/index.d.ts.map +1 -0
- package/components/indicators/IndicatorFlag/slots.d.ts +13 -0
- package/components/indicators/IndicatorFlag/slots.d.ts.map +1 -0
- package/components/indicators/IndicatorFlag/slots.js +4 -0
- package/components/indicators/IndicatorFlag/types.d.ts +49 -0
- package/components/indicators/IndicatorFlag/types.d.ts.map +1 -0
- package/components/indicators/index.d.ts +1 -0
- package/components/indicators/index.d.ts.map +1 -1
- package/index.js +191 -185
- package/package.json +2 -2
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
const e = {
|
|
2
|
+
/** Keep the chip and popover in one positioning context. */
|
|
3
|
+
root: () => ({
|
|
4
|
+
display: "inline-flex",
|
|
5
|
+
position: "relative",
|
|
6
|
+
verticalAlign: "middle"
|
|
7
|
+
}),
|
|
8
|
+
/** Reset native button chrome while preserving keyboard focus. */
|
|
9
|
+
trigger: () => ({
|
|
10
|
+
appearance: "none",
|
|
11
|
+
display: "inline-flex",
|
|
12
|
+
alignItems: "center",
|
|
13
|
+
justifyContent: "center",
|
|
14
|
+
width: 16,
|
|
15
|
+
height: 16,
|
|
16
|
+
padding: 0,
|
|
17
|
+
border: 0,
|
|
18
|
+
background: "transparent",
|
|
19
|
+
cursor: "pointer",
|
|
20
|
+
"&:focus-visible": { outline: "2px solid currentColor", outlineOffset: 2 },
|
|
21
|
+
"&:disabled": { cursor: "default" }
|
|
22
|
+
}),
|
|
23
|
+
/** Give the 16 px flag breathing room inside the compact Chip variant. */
|
|
24
|
+
chip: ({ theme: a }) => ({
|
|
25
|
+
"&&": {
|
|
26
|
+
minWidth: 49,
|
|
27
|
+
width: "fit-content",
|
|
28
|
+
height: 20,
|
|
29
|
+
minHeight: 20,
|
|
30
|
+
maxHeight: 20,
|
|
31
|
+
padding: `${a.vars.size.baseSpacings["sp0-5"]} ${a.vars.size.baseSpacings["sp1-5"]} ${a.vars.size.baseSpacings["sp0-5"]} 0`,
|
|
32
|
+
gap: a.vars.size.baseSpacings.sp1,
|
|
33
|
+
borderRadius: a.vars.size.borderRadius.r1,
|
|
34
|
+
borderRight: `1px solid ${a.vars.palette.border.secondary}`,
|
|
35
|
+
backgroundColor: a.vars.palette.background.default,
|
|
36
|
+
boxShadow: `0 2px 2px ${a.vars.palette.background.surface}`,
|
|
37
|
+
cursor: "inherit"
|
|
38
|
+
},
|
|
39
|
+
"&&& .M4LTypography-root": {
|
|
40
|
+
paddingLeft: 0,
|
|
41
|
+
paddingRight: 0,
|
|
42
|
+
color: a.vars.palette.text.primary,
|
|
43
|
+
fontSize: 11,
|
|
44
|
+
fontWeight: 500,
|
|
45
|
+
letterSpacing: "0.3px",
|
|
46
|
+
lineHeight: "16px"
|
|
47
|
+
},
|
|
48
|
+
"& svg": { width: 16, height: 16, flexShrink: 0 }
|
|
49
|
+
}),
|
|
50
|
+
/** Position the option panel below the selected country. */
|
|
51
|
+
popover: ({ theme: a }) => ({
|
|
52
|
+
position: "absolute",
|
|
53
|
+
left: 0,
|
|
54
|
+
top: `calc(100% + ${a.vars.size.baseSpacings["sp0-5"]})`,
|
|
55
|
+
zIndex: 1,
|
|
56
|
+
width: "max-content",
|
|
57
|
+
minWidth: 83,
|
|
58
|
+
'&[data-scrollable="true"]': { minWidth: 100 },
|
|
59
|
+
padding: a.vars.size.baseSpacings.sp3,
|
|
60
|
+
borderRadius: a.vars.size.borderRadius.r3,
|
|
61
|
+
backgroundColor: a.vars.palette.background.default,
|
|
62
|
+
boxShadow: a.vars.customShadows.z4
|
|
63
|
+
}),
|
|
64
|
+
/** Scroll through a bounded viewport while only mounting visible rows. */
|
|
65
|
+
menu: () => ({
|
|
66
|
+
position: "relative",
|
|
67
|
+
overflowY: "auto",
|
|
68
|
+
overflowX: "hidden",
|
|
69
|
+
padding: 0,
|
|
70
|
+
outline: 0,
|
|
71
|
+
'&[data-scrollable="true"]': { scrollbarGutter: "stable" }
|
|
72
|
+
}),
|
|
73
|
+
/** Give each country the dimensions and padding from Figma. */
|
|
74
|
+
menuItem: ({ theme: a }) => ({
|
|
75
|
+
"&&": {
|
|
76
|
+
display: "flex",
|
|
77
|
+
alignItems: "center",
|
|
78
|
+
gap: a.vars.size.baseSpacings.sp1,
|
|
79
|
+
position: "absolute",
|
|
80
|
+
left: 0,
|
|
81
|
+
width: "100%",
|
|
82
|
+
minWidth: 59,
|
|
83
|
+
height: 28,
|
|
84
|
+
minHeight: 28,
|
|
85
|
+
padding: `${a.vars.size.baseSpacings["sp1-5"]} ${a.vars.size.baseSpacings.sp2}`,
|
|
86
|
+
border: 0,
|
|
87
|
+
borderRadius: a.vars.size.borderRadius["r1-5"],
|
|
88
|
+
background: "transparent",
|
|
89
|
+
cursor: "pointer",
|
|
90
|
+
'&:hover, &:focus-visible, &[data-active="true"]': {
|
|
91
|
+
backgroundColor: a.vars.palette.background.surface
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}),
|
|
95
|
+
/** Clip each country flag to the rounded 16 px icon slot from Figma. */
|
|
96
|
+
flag: ({ theme: a }) => ({
|
|
97
|
+
display: "inline-flex",
|
|
98
|
+
width: 16,
|
|
99
|
+
height: 16,
|
|
100
|
+
flexShrink: 0,
|
|
101
|
+
borderRadius: a.vars.size.borderRadius.r1,
|
|
102
|
+
overflow: "hidden",
|
|
103
|
+
"& svg": { width: 16, height: 16 }
|
|
104
|
+
}),
|
|
105
|
+
/** Set the phone prefix in the compact body typography. */
|
|
106
|
+
code: ({ theme: a }) => ({
|
|
107
|
+
color: a.vars.palette.text.primary,
|
|
108
|
+
fontSize: 11,
|
|
109
|
+
fontWeight: 500,
|
|
110
|
+
letterSpacing: "0.3px",
|
|
111
|
+
lineHeight: 1,
|
|
112
|
+
whiteSpace: "nowrap"
|
|
113
|
+
}),
|
|
114
|
+
/** Keep the selected prefix editable without changing the compact chip layout. */
|
|
115
|
+
codeInput: ({ theme: a, ownerState: i }) => ({
|
|
116
|
+
width: `calc(${typeof i?.codeLength == "number" ? i.codeLength : 3}ch + ${a.vars.size.baseSpacings["sp0-5"]})`,
|
|
117
|
+
minWidth: "3ch",
|
|
118
|
+
padding: 0,
|
|
119
|
+
border: 0,
|
|
120
|
+
outline: 0,
|
|
121
|
+
background: "transparent",
|
|
122
|
+
color: a.vars.palette.text.primary,
|
|
123
|
+
font: "inherit",
|
|
124
|
+
fontSize: 11,
|
|
125
|
+
fontWeight: 500,
|
|
126
|
+
letterSpacing: "0.3px",
|
|
127
|
+
lineHeight: "16px",
|
|
128
|
+
textAlign: "left",
|
|
129
|
+
"&:disabled": { color: a.vars.palette.text.disabled, cursor: "default" }
|
|
130
|
+
}),
|
|
131
|
+
/** Explain why a typed prefix has no options to select. */
|
|
132
|
+
emptyState: ({ theme: a }) => ({
|
|
133
|
+
display: "block",
|
|
134
|
+
padding: a.vars.size.baseSpacings.sp1,
|
|
135
|
+
color: a.vars.palette.text.secondary,
|
|
136
|
+
fontSize: 11,
|
|
137
|
+
whiteSpace: "nowrap"
|
|
138
|
+
})
|
|
139
|
+
};
|
|
140
|
+
export {
|
|
141
|
+
e as indicatorFlagStyles
|
|
142
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const INDICATOR_FLAG_COMPONENT_KEY = "M4LIndicatorFlag";
|
|
2
|
+
export declare const INDICATOR_FLAG_ROW_HEIGHT = 32;
|
|
3
|
+
export declare const INDICATOR_FLAG_ROW_GAP = 4;
|
|
4
|
+
export declare const INDICATOR_FLAG_VISIBLE_ROWS = 7;
|
|
5
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../packages/gclick/src/components/indicators/IndicatorFlag/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,4BAA4B,qBAAqB,CAAC;AAC/D,eAAO,MAAM,yBAAyB,KAAK,CAAC;AAC5C,eAAO,MAAM,sBAAsB,IAAI,CAAC;AACxC,eAAO,MAAM,2BAA2B,IAAI,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IndicatorFlagCountry } from './countryStock.generated';
|
|
2
|
+
/** Resolve numeric E.164 codes to the owned country catalog in caller order. */
|
|
3
|
+
export declare function resolveIndicatorFlagCountries(options?: readonly number[]): readonly IndicatorFlagCountry[];
|
|
4
|
+
//# sourceMappingURL=countryOptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"countryOptions.d.ts","sourceRoot":"","sources":["../../../../../../../packages/gclick/src/components/indicators/IndicatorFlag/countryOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAYpF,gFAAgF;AAChF,wBAAgB,6BAA6B,CAAC,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,oBAAoB,EAAE,CAa1G"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { COUNTRY_STOCK as l } from "./countryStock.generated.js";
|
|
2
|
+
const a = [...l].sort((e, t) => e.label.localeCompare(t.label, "en")), o = /* @__PURE__ */ new Map();
|
|
3
|
+
for (const e of l) {
|
|
4
|
+
const t = Number(e.callingCode.slice(1)), n = o.get(t) ?? [];
|
|
5
|
+
n.push(e), o.set(t, n);
|
|
6
|
+
}
|
|
7
|
+
function i(e) {
|
|
8
|
+
if (e === void 0)
|
|
9
|
+
return a;
|
|
10
|
+
const t = /* @__PURE__ */ new Set();
|
|
11
|
+
return e.flatMap((n) => (o.get(n) ?? []).filter((r) => t.has(r.value) ? !1 : (t.add(r.value), !0)));
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
i as resolveIndicatorFlagCountries
|
|
15
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
import { SvgIconProps } from '@mui/material/SvgIcon';
|
|
3
|
+
export interface IndicatorFlagCountry {
|
|
4
|
+
value: string;
|
|
5
|
+
callingCode: string;
|
|
6
|
+
label: string;
|
|
7
|
+
flag: ComponentType<SvgIconProps>;
|
|
8
|
+
}
|
|
9
|
+
export declare const COUNTRY_STOCK: readonly IndicatorFlagCountry[];
|
|
10
|
+
//# sourceMappingURL=countryStock.generated.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"countryStock.generated.d.ts","sourceRoot":"","sources":["../../../../../../../packages/gclick/src/components/indicators/IndicatorFlag/countryStock.generated.tsx"],"names":[],"mappings":"AAyPA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE1D,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;CACnC;AAED,eAAO,MAAM,aAAa,EAAE,SAAS,oBAAoB,EAsPxD,CAAC"}
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
import { FlagUsFill as l, FlagAgFill as a, FlagAiFill as e, FlagAsFill as g, FlagBbFill as i, FlagBmFill as F, FlagBsFill as n, FlagCaFill as o, FlagDmFill as u, FlagDoFill as d, FlagGdFill as c, FlagGuFill as b, FlagJmFill as C, FlagKnFill as f, FlagKyFill as v, FlagLcFill as r, FlagMpFill as s, FlagMsFill as t, FlagPrFill as m, FlagSxFill as S, FlagTcFill as h, FlagTtFill as M, FlagVcFill as k, FlagVgFill as y, FlagViFill as B, FlagRuFill as p, FlagKzFill as A, FlagEgFill as G, FlagZaFill as T, FlagGrFill as I, FlagNlFill as w, FlagBeFill as z, FlagFrFill as N, FlagEsFill as P, FlagHuFill as K, FlagItFill as L, FlagVaFill as j, FlagRoFill as E, FlagChFill as R, FlagAtFill as q, FlagGbFill as U, FlagGgFill as V, FlagImFill as x, FlagJeFill as D, FlagDkFill as H, FlagSeFill as J, FlagNoFill as Z, FlagSjFill as O, FlagPlFill as W, FlagDeFill as Y, FlagPeFill as Q, FlagMxFill as X, FlagCuFill as _, FlagArFill as $, FlagBrFill as ll, FlagClFill as al, FlagCoFill as el, FlagVeFill as gl, FlagMyFill as il, FlagAuFill as Fl, FlagCcFill as nl, FlagCxFill as ol, FlagIdFill as ul, FlagPhFill as dl, FlagNzFill as cl, FlagSgFill as bl, FlagThFill as Cl, FlagJpFill as fl, FlagKrFill as vl, FlagVnFill as rl, FlagCnFill as sl, FlagTrFill as tl, FlagInFill as ml, FlagPkFill as Sl, FlagAfFill as hl, FlagLkFill as Ml, FlagMmFill as kl, FlagIrFill as yl, FlagSsFill as Bl, FlagMaFill as pl, FlagEhFill as Al, FlagDzFill as Gl, FlagTnFill as Tl, FlagLyFill as Il, FlagGmFill as wl, FlagSnFill as zl, FlagMrFill as Nl, FlagMlFill as Pl, FlagGnFill as Kl, FlagCiFill as Ll, FlagBfFill as jl, FlagNeFill as El, FlagTgFill as Rl, FlagBjFill as ql, FlagMuFill as Ul, FlagLrFill as Vl, FlagSlFill as xl, FlagGhFill as Dl, FlagNgFill as Hl, FlagTdFill as Jl, FlagCfFill as Zl, FlagCmFill as Ol, FlagCvFill as Wl, FlagStFill as Yl, FlagGqFill as Ql, FlagGaFill as Xl, FlagCgFill as _l, FlagCdFill as $l, FlagAoFill as la, FlagGwFill as aa, FlagIoFill as ea, FlagAcFill as ga, FlagScFill as ia, FlagSdFill as Fa, FlagRwFill as na, FlagEtFill as oa, FlagSoFill as ua, FlagDjFill as da, FlagKeFill as ca, FlagTzFill as ba, FlagUgFill as Ca, FlagBiFill as fa, FlagMzFill as va, FlagZmFill as ra, FlagMgFill as sa, FlagReFill as ta, FlagYtFill as ma, FlagZwFill as Sa, FlagNaFill as ha, FlagMwFill as Ma, FlagLsFill as ka, FlagBwFill as ya, FlagSzFill as Ba, FlagKmFill as pa, FlagShFill as Aa, FlagTaFill as Ga, FlagErFill as Ta, FlagAwFill as Ia, FlagFoFill as wa, FlagGlFill as za, FlagGiFill as Na, FlagPtFill as Pa, FlagLuFill as Ka, FlagIeFill as La, FlagIsFill as ja, FlagAlFill as Ea, FlagMtFill as Ra, FlagCyFill as qa, FlagFiFill as Ua, FlagAxFill as Va, FlagBgFill as xa, FlagLtFill as Da, FlagLvFill as Ha, FlagEeFill as Ja, FlagMdFill as Za, FlagAmFill as Oa, FlagByFill as Wa, FlagAdFill as Ya, FlagMcFill as Qa, FlagSmFill as Xa, FlagUaFill as _a, FlagRsFill as $a, FlagMeFill as le, FlagXkFill as ae, FlagHrFill as ee, FlagSiFill as ge, FlagBaFill as ie, FlagMkFill as Fe, FlagCzFill as ne, FlagSkFill as oe, FlagLiFill as ue, FlagFkFill as de, FlagBzFill as ce, FlagGtFill as be, FlagSvFill as Ce, FlagHnFill as fe, FlagNiFill as ve, FlagCrFill as re, FlagPaFill as se, FlagPmFill as te, FlagHtFill as me, FlagGpFill as Se, FlagBlFill as he, FlagMfFill as Me, FlagBoFill as ke, FlagGyFill as ye, FlagEcFill as Be, FlagGfFill as pe, FlagPyFill as Ae, FlagMqFill as Ge, FlagSrFill as Te, FlagUyFill as Ie, FlagCwFill as we, FlagBqFill as ze, FlagTlFill as Ne, FlagNfFill as Pe, FlagBnFill as Ke, FlagNrFill as Le, FlagPgFill as je, FlagToFill as Ee, FlagSbFill as Re, FlagVuFill as qe, FlagFjFill as Ue, FlagPwFill as Ve, FlagWfFill as xe, FlagCkFill as De, FlagNuFill as He, FlagWsFill as Je, FlagKiFill as Ze, FlagNcFill as Oe, FlagTvFill as We, FlagPfFill as Ye, FlagTkFill as Qe, FlagFmFill as Xe, FlagMhFill as _e, FlagKpFill as $e, FlagHkFill as lg, FlagMoFill as ag, FlagKhFill as eg, FlagLaFill as gg, FlagBdFill as ig, FlagTwFill as Fg, FlagMvFill as ng, FlagLbFill as og, FlagJoFill as ug, FlagSyFill as dg, FlagIqFill as cg, FlagKwFill as bg, FlagSaFill as Cg, FlagYeFill as fg, FlagOmFill as vg, FlagPsFill as rg, FlagAeFill as sg, FlagIlFill as tg, FlagBhFill as mg, FlagQaFill as Sg, FlagBtFill as hg, FlagMnFill as Mg, FlagNpFill as kg, FlagTjFill as yg, FlagTmFill as Bg, FlagAzFill as pg, FlagGeFill as Ag, FlagKgFill as Gg, FlagUzFill as Tg } from "@m4l/icons";
|
|
2
|
+
const wg = [
|
|
3
|
+
{ value: "us", callingCode: "+1", label: "United States of America", flag: l },
|
|
4
|
+
{ value: "ag", callingCode: "+1", label: "Antigua and Barbuda", flag: a },
|
|
5
|
+
{ value: "ai", callingCode: "+1", label: "Anguilla", flag: e },
|
|
6
|
+
{ value: "as", callingCode: "+1", label: "American Samoa", flag: g },
|
|
7
|
+
{ value: "bb", callingCode: "+1", label: "Barbados", flag: i },
|
|
8
|
+
{ value: "bm", callingCode: "+1", label: "Bermuda", flag: F },
|
|
9
|
+
{ value: "bs", callingCode: "+1", label: "Bahamas", flag: n },
|
|
10
|
+
{ value: "ca", callingCode: "+1", label: "Canada", flag: o },
|
|
11
|
+
{ value: "dm", callingCode: "+1", label: "Dominica", flag: u },
|
|
12
|
+
{ value: "do", callingCode: "+1", label: "Dominican Republic", flag: d },
|
|
13
|
+
{ value: "gd", callingCode: "+1", label: "Grenada", flag: c },
|
|
14
|
+
{ value: "gu", callingCode: "+1", label: "Guam", flag: b },
|
|
15
|
+
{ value: "jm", callingCode: "+1", label: "Jamaica", flag: C },
|
|
16
|
+
{ value: "kn", callingCode: "+1", label: "Saint Kitts and Nevis", flag: f },
|
|
17
|
+
{ value: "ky", callingCode: "+1", label: "Cayman Islands", flag: v },
|
|
18
|
+
{ value: "lc", callingCode: "+1", label: "Saint Lucia", flag: r },
|
|
19
|
+
{ value: "mp", callingCode: "+1", label: "Northern Mariana Islands", flag: s },
|
|
20
|
+
{ value: "ms", callingCode: "+1", label: "Montserrat", flag: t },
|
|
21
|
+
{ value: "pr", callingCode: "+1", label: "Puerto Rico", flag: m },
|
|
22
|
+
{ value: "sx", callingCode: "+1", label: "Sint Maarten", flag: S },
|
|
23
|
+
{ value: "tc", callingCode: "+1", label: "Turks and Caicos Islands", flag: h },
|
|
24
|
+
{ value: "tt", callingCode: "+1", label: "Trinidad and Tobago", flag: M },
|
|
25
|
+
{ value: "vc", callingCode: "+1", label: "Saint Vincent and the Grenadines", flag: k },
|
|
26
|
+
{ value: "vg", callingCode: "+1", label: "Virgin Islands (British)", flag: y },
|
|
27
|
+
{ value: "vi", callingCode: "+1", label: "Virgin Islands (U.S.)", flag: B },
|
|
28
|
+
{ value: "ru", callingCode: "+7", label: "Russia", flag: p },
|
|
29
|
+
{ value: "kz", callingCode: "+7", label: "Kazakhstan", flag: A },
|
|
30
|
+
{ value: "eg", callingCode: "+20", label: "Egypt", flag: G },
|
|
31
|
+
{ value: "za", callingCode: "+27", label: "South Africa", flag: T },
|
|
32
|
+
{ value: "gr", callingCode: "+30", label: "Greece", flag: I },
|
|
33
|
+
{ value: "nl", callingCode: "+31", label: "Netherlands", flag: w },
|
|
34
|
+
{ value: "be", callingCode: "+32", label: "Belgium", flag: z },
|
|
35
|
+
{ value: "fr", callingCode: "+33", label: "France", flag: N },
|
|
36
|
+
{ value: "es", callingCode: "+34", label: "Spain", flag: P },
|
|
37
|
+
{ value: "hu", callingCode: "+36", label: "Hungary", flag: K },
|
|
38
|
+
{ value: "it", callingCode: "+39", label: "Italy", flag: L },
|
|
39
|
+
{ value: "va", callingCode: "+39", label: "Holy See", flag: j },
|
|
40
|
+
{ value: "ro", callingCode: "+40", label: "Romania", flag: E },
|
|
41
|
+
{ value: "ch", callingCode: "+41", label: "Switzerland", flag: R },
|
|
42
|
+
{ value: "at", callingCode: "+43", label: "Austria", flag: q },
|
|
43
|
+
{ value: "gb", callingCode: "+44", label: "United Kingdom", flag: U },
|
|
44
|
+
{ value: "gg", callingCode: "+44", label: "Guernsey", flag: V },
|
|
45
|
+
{ value: "im", callingCode: "+44", label: "Isle of Man", flag: x },
|
|
46
|
+
{ value: "je", callingCode: "+44", label: "Jersey", flag: D },
|
|
47
|
+
{ value: "dk", callingCode: "+45", label: "Denmark", flag: H },
|
|
48
|
+
{ value: "se", callingCode: "+46", label: "Sweden", flag: J },
|
|
49
|
+
{ value: "no", callingCode: "+47", label: "Norway", flag: Z },
|
|
50
|
+
{ value: "sj", callingCode: "+47", label: "Svalbard and Jan Mayen", flag: O },
|
|
51
|
+
{ value: "pl", callingCode: "+48", label: "Poland", flag: W },
|
|
52
|
+
{ value: "de", callingCode: "+49", label: "Germany", flag: Y },
|
|
53
|
+
{ value: "pe", callingCode: "+51", label: "Peru", flag: Q },
|
|
54
|
+
{ value: "mx", callingCode: "+52", label: "Mexico", flag: X },
|
|
55
|
+
{ value: "cu", callingCode: "+53", label: "Cuba", flag: _ },
|
|
56
|
+
{ value: "ar", callingCode: "+54", label: "Argentina", flag: $ },
|
|
57
|
+
{ value: "br", callingCode: "+55", label: "Brazil", flag: ll },
|
|
58
|
+
{ value: "cl", callingCode: "+56", label: "Chile", flag: al },
|
|
59
|
+
{ value: "co", callingCode: "+57", label: "Colombia", flag: el },
|
|
60
|
+
{ value: "ve", callingCode: "+58", label: "Venezuela", flag: gl },
|
|
61
|
+
{ value: "my", callingCode: "+60", label: "Malaysia", flag: il },
|
|
62
|
+
{ value: "au", callingCode: "+61", label: "Australia", flag: Fl },
|
|
63
|
+
{ value: "cc", callingCode: "+61", label: "Cocos (Keeling) Islands", flag: nl },
|
|
64
|
+
{ value: "cx", callingCode: "+61", label: "Christmas Island", flag: ol },
|
|
65
|
+
{ value: "id", callingCode: "+62", label: "Indonesia", flag: ul },
|
|
66
|
+
{ value: "ph", callingCode: "+63", label: "Philippines", flag: dl },
|
|
67
|
+
{ value: "nz", callingCode: "+64", label: "New Zealand", flag: cl },
|
|
68
|
+
{ value: "sg", callingCode: "+65", label: "Singapore", flag: bl },
|
|
69
|
+
{ value: "th", callingCode: "+66", label: "Thailand", flag: Cl },
|
|
70
|
+
{ value: "jp", callingCode: "+81", label: "Japan", flag: fl },
|
|
71
|
+
{ value: "kr", callingCode: "+82", label: "South Korea", flag: vl },
|
|
72
|
+
{ value: "vn", callingCode: "+84", label: "Vietnam", flag: rl },
|
|
73
|
+
{ value: "cn", callingCode: "+86", label: "China", flag: sl },
|
|
74
|
+
{ value: "tr", callingCode: "+90", label: "Türkiye", flag: tl },
|
|
75
|
+
{ value: "in", callingCode: "+91", label: "India", flag: ml },
|
|
76
|
+
{ value: "pk", callingCode: "+92", label: "Pakistan", flag: Sl },
|
|
77
|
+
{ value: "af", callingCode: "+93", label: "Afghanistan", flag: hl },
|
|
78
|
+
{ value: "lk", callingCode: "+94", label: "Sri Lanka", flag: Ml },
|
|
79
|
+
{ value: "mm", callingCode: "+95", label: "Myanmar", flag: kl },
|
|
80
|
+
{ value: "ir", callingCode: "+98", label: "Iran", flag: yl },
|
|
81
|
+
{ value: "ss", callingCode: "+211", label: "South Sudan", flag: Bl },
|
|
82
|
+
{ value: "ma", callingCode: "+212", label: "Morocco", flag: pl },
|
|
83
|
+
{ value: "eh", callingCode: "+212", label: "Western Sahara", flag: Al },
|
|
84
|
+
{ value: "dz", callingCode: "+213", label: "Algeria", flag: Gl },
|
|
85
|
+
{ value: "tn", callingCode: "+216", label: "Tunisia", flag: Tl },
|
|
86
|
+
{ value: "ly", callingCode: "+218", label: "Libya", flag: Il },
|
|
87
|
+
{ value: "gm", callingCode: "+220", label: "Gambia", flag: wl },
|
|
88
|
+
{ value: "sn", callingCode: "+221", label: "Senegal", flag: zl },
|
|
89
|
+
{ value: "mr", callingCode: "+222", label: "Mauritania", flag: Nl },
|
|
90
|
+
{ value: "ml", callingCode: "+223", label: "Mali", flag: Pl },
|
|
91
|
+
{ value: "gn", callingCode: "+224", label: "Guinea", flag: Kl },
|
|
92
|
+
{ value: "ci", callingCode: "+225", label: "Côte d'Ivoire", flag: Ll },
|
|
93
|
+
{ value: "bf", callingCode: "+226", label: "Burkina Faso", flag: jl },
|
|
94
|
+
{ value: "ne", callingCode: "+227", label: "Niger", flag: El },
|
|
95
|
+
{ value: "tg", callingCode: "+228", label: "Togo", flag: Rl },
|
|
96
|
+
{ value: "bj", callingCode: "+229", label: "Benin", flag: ql },
|
|
97
|
+
{ value: "mu", callingCode: "+230", label: "Mauritius", flag: Ul },
|
|
98
|
+
{ value: "lr", callingCode: "+231", label: "Liberia", flag: Vl },
|
|
99
|
+
{ value: "sl", callingCode: "+232", label: "Sierra Leone", flag: xl },
|
|
100
|
+
{ value: "gh", callingCode: "+233", label: "Ghana", flag: Dl },
|
|
101
|
+
{ value: "ng", callingCode: "+234", label: "Nigeria", flag: Hl },
|
|
102
|
+
{ value: "td", callingCode: "+235", label: "Chad", flag: Jl },
|
|
103
|
+
{ value: "cf", callingCode: "+236", label: "Central African Republic", flag: Zl },
|
|
104
|
+
{ value: "cm", callingCode: "+237", label: "Cameroon", flag: Ol },
|
|
105
|
+
{ value: "cv", callingCode: "+238", label: "Cabo Verde", flag: Wl },
|
|
106
|
+
{ value: "st", callingCode: "+239", label: "Sao Tome and Principe", flag: Yl },
|
|
107
|
+
{ value: "gq", callingCode: "+240", label: "Equatorial Guinea", flag: Ql },
|
|
108
|
+
{ value: "ga", callingCode: "+241", label: "Gabon", flag: Xl },
|
|
109
|
+
{ value: "cg", callingCode: "+242", label: "Republic of the Congo", flag: _l },
|
|
110
|
+
{ value: "cd", callingCode: "+243", label: "Democratic Republic of the Congo", flag: $l },
|
|
111
|
+
{ value: "ao", callingCode: "+244", label: "Angola", flag: la },
|
|
112
|
+
{ value: "gw", callingCode: "+245", label: "Guinea-Bissau", flag: aa },
|
|
113
|
+
{ value: "io", callingCode: "+246", label: "British Indian Ocean Territory", flag: ea },
|
|
114
|
+
{ value: "ac", callingCode: "+247", label: "Ascension Island", flag: ga },
|
|
115
|
+
{ value: "sc", callingCode: "+248", label: "Seychelles", flag: ia },
|
|
116
|
+
{ value: "sd", callingCode: "+249", label: "Sudan", flag: Fa },
|
|
117
|
+
{ value: "rw", callingCode: "+250", label: "Rwanda", flag: na },
|
|
118
|
+
{ value: "et", callingCode: "+251", label: "Ethiopia", flag: oa },
|
|
119
|
+
{ value: "so", callingCode: "+252", label: "Somalia", flag: ua },
|
|
120
|
+
{ value: "dj", callingCode: "+253", label: "Djibouti", flag: da },
|
|
121
|
+
{ value: "ke", callingCode: "+254", label: "Kenya", flag: ca },
|
|
122
|
+
{ value: "tz", callingCode: "+255", label: "Tanzania", flag: ba },
|
|
123
|
+
{ value: "ug", callingCode: "+256", label: "Uganda", flag: Ca },
|
|
124
|
+
{ value: "bi", callingCode: "+257", label: "Burundi", flag: fa },
|
|
125
|
+
{ value: "mz", callingCode: "+258", label: "Mozambique", flag: va },
|
|
126
|
+
{ value: "zm", callingCode: "+260", label: "Zambia", flag: ra },
|
|
127
|
+
{ value: "mg", callingCode: "+261", label: "Madagascar", flag: sa },
|
|
128
|
+
{ value: "re", callingCode: "+262", label: "Réunion", flag: ta },
|
|
129
|
+
{ value: "yt", callingCode: "+262", label: "Mayotte", flag: ma },
|
|
130
|
+
{ value: "zw", callingCode: "+263", label: "Zimbabwe", flag: Sa },
|
|
131
|
+
{ value: "na", callingCode: "+264", label: "Namibia", flag: ha },
|
|
132
|
+
{ value: "mw", callingCode: "+265", label: "Malawi", flag: Ma },
|
|
133
|
+
{ value: "ls", callingCode: "+266", label: "Lesotho", flag: ka },
|
|
134
|
+
{ value: "bw", callingCode: "+267", label: "Botswana", flag: ya },
|
|
135
|
+
{ value: "sz", callingCode: "+268", label: "Eswatini", flag: Ba },
|
|
136
|
+
{ value: "km", callingCode: "+269", label: "Comoros", flag: pa },
|
|
137
|
+
{ value: "sh", callingCode: "+290", label: "Saint Helena, Ascension and Tristan da Cunha", flag: Aa },
|
|
138
|
+
{ value: "ta", callingCode: "+290", label: "Tristan da Cunha", flag: Ga },
|
|
139
|
+
{ value: "er", callingCode: "+291", label: "Eritrea", flag: Ta },
|
|
140
|
+
{ value: "aw", callingCode: "+297", label: "Aruba", flag: Ia },
|
|
141
|
+
{ value: "fo", callingCode: "+298", label: "Faroe Islands", flag: wa },
|
|
142
|
+
{ value: "gl", callingCode: "+299", label: "Greenland", flag: za },
|
|
143
|
+
{ value: "gi", callingCode: "+350", label: "Gibraltar", flag: Na },
|
|
144
|
+
{ value: "pt", callingCode: "+351", label: "Portugal", flag: Pa },
|
|
145
|
+
{ value: "lu", callingCode: "+352", label: "Luxembourg", flag: Ka },
|
|
146
|
+
{ value: "ie", callingCode: "+353", label: "Ireland", flag: La },
|
|
147
|
+
{ value: "is", callingCode: "+354", label: "Iceland", flag: ja },
|
|
148
|
+
{ value: "al", callingCode: "+355", label: "Albania", flag: Ea },
|
|
149
|
+
{ value: "mt", callingCode: "+356", label: "Malta", flag: Ra },
|
|
150
|
+
{ value: "cy", callingCode: "+357", label: "Cyprus", flag: qa },
|
|
151
|
+
{ value: "fi", callingCode: "+358", label: "Finland", flag: Ua },
|
|
152
|
+
{ value: "ax", callingCode: "+358", label: "Aland Islands", flag: Va },
|
|
153
|
+
{ value: "bg", callingCode: "+359", label: "Bulgaria", flag: xa },
|
|
154
|
+
{ value: "lt", callingCode: "+370", label: "Lithuania", flag: Da },
|
|
155
|
+
{ value: "lv", callingCode: "+371", label: "Latvia", flag: Ha },
|
|
156
|
+
{ value: "ee", callingCode: "+372", label: "Estonia", flag: Ja },
|
|
157
|
+
{ value: "md", callingCode: "+373", label: "Moldova", flag: Za },
|
|
158
|
+
{ value: "am", callingCode: "+374", label: "Armenia", flag: Oa },
|
|
159
|
+
{ value: "by", callingCode: "+375", label: "Belarus", flag: Wa },
|
|
160
|
+
{ value: "ad", callingCode: "+376", label: "Andorra", flag: Ya },
|
|
161
|
+
{ value: "mc", callingCode: "+377", label: "Monaco", flag: Qa },
|
|
162
|
+
{ value: "sm", callingCode: "+378", label: "San Marino", flag: Xa },
|
|
163
|
+
{ value: "ua", callingCode: "+380", label: "Ukraine", flag: _a },
|
|
164
|
+
{ value: "rs", callingCode: "+381", label: "Serbia", flag: $a },
|
|
165
|
+
{ value: "me", callingCode: "+382", label: "Montenegro", flag: le },
|
|
166
|
+
{ value: "xk", callingCode: "+383", label: "Kosovo", flag: ae },
|
|
167
|
+
{ value: "hr", callingCode: "+385", label: "Croatia", flag: ee },
|
|
168
|
+
{ value: "si", callingCode: "+386", label: "Slovenia", flag: ge },
|
|
169
|
+
{ value: "ba", callingCode: "+387", label: "Bosnia and Herzegovina", flag: ie },
|
|
170
|
+
{ value: "mk", callingCode: "+389", label: "North Macedonia", flag: Fe },
|
|
171
|
+
{ value: "cz", callingCode: "+420", label: "Czech Republic", flag: ne },
|
|
172
|
+
{ value: "sk", callingCode: "+421", label: "Slovakia", flag: oe },
|
|
173
|
+
{ value: "li", callingCode: "+423", label: "Liechtenstein", flag: ue },
|
|
174
|
+
{ value: "fk", callingCode: "+500", label: "Falkland Islands", flag: de },
|
|
175
|
+
{ value: "bz", callingCode: "+501", label: "Belize", flag: ce },
|
|
176
|
+
{ value: "gt", callingCode: "+502", label: "Guatemala", flag: be },
|
|
177
|
+
{ value: "sv", callingCode: "+503", label: "El Salvador", flag: Ce },
|
|
178
|
+
{ value: "hn", callingCode: "+504", label: "Honduras", flag: fe },
|
|
179
|
+
{ value: "ni", callingCode: "+505", label: "Nicaragua", flag: ve },
|
|
180
|
+
{ value: "cr", callingCode: "+506", label: "Costa Rica", flag: re },
|
|
181
|
+
{ value: "pa", callingCode: "+507", label: "Panama", flag: se },
|
|
182
|
+
{ value: "pm", callingCode: "+508", label: "Saint Pierre and Miquelon", flag: te },
|
|
183
|
+
{ value: "ht", callingCode: "+509", label: "Haiti", flag: me },
|
|
184
|
+
{ value: "gp", callingCode: "+590", label: "Guadeloupe", flag: Se },
|
|
185
|
+
{ value: "bl", callingCode: "+590", label: "Saint Barthélemy", flag: he },
|
|
186
|
+
{ value: "mf", callingCode: "+590", label: "Saint Martin", flag: Me },
|
|
187
|
+
{ value: "bo", callingCode: "+591", label: "Bolivia", flag: ke },
|
|
188
|
+
{ value: "gy", callingCode: "+592", label: "Guyana", flag: ye },
|
|
189
|
+
{ value: "ec", callingCode: "+593", label: "Ecuador", flag: Be },
|
|
190
|
+
{ value: "gf", callingCode: "+594", label: "French Guiana", flag: pe },
|
|
191
|
+
{ value: "py", callingCode: "+595", label: "Paraguay", flag: Ae },
|
|
192
|
+
{ value: "mq", callingCode: "+596", label: "Martinique", flag: Ge },
|
|
193
|
+
{ value: "sr", callingCode: "+597", label: "Suriname", flag: Te },
|
|
194
|
+
{ value: "uy", callingCode: "+598", label: "Uruguay", flag: Ie },
|
|
195
|
+
{ value: "cw", callingCode: "+599", label: "Curaçao", flag: we },
|
|
196
|
+
{ value: "bq", callingCode: "+599", label: "Bonaire, Sint Eustatius and Saba", flag: ze },
|
|
197
|
+
{ value: "tl", callingCode: "+670", label: "Timor-Leste", flag: Ne },
|
|
198
|
+
{ value: "nf", callingCode: "+672", label: "Norfolk Island", flag: Pe },
|
|
199
|
+
{ value: "bn", callingCode: "+673", label: "Brunei Darussalam", flag: Ke },
|
|
200
|
+
{ value: "nr", callingCode: "+674", label: "Nauru", flag: Le },
|
|
201
|
+
{ value: "pg", callingCode: "+675", label: "Papua New Guinea", flag: je },
|
|
202
|
+
{ value: "to", callingCode: "+676", label: "Tonga", flag: Ee },
|
|
203
|
+
{ value: "sb", callingCode: "+677", label: "Solomon Islands", flag: Re },
|
|
204
|
+
{ value: "vu", callingCode: "+678", label: "Vanuatu", flag: qe },
|
|
205
|
+
{ value: "fj", callingCode: "+679", label: "Fiji", flag: Ue },
|
|
206
|
+
{ value: "pw", callingCode: "+680", label: "Palau", flag: Ve },
|
|
207
|
+
{ value: "wf", callingCode: "+681", label: "Wallis and Futuna", flag: xe },
|
|
208
|
+
{ value: "ck", callingCode: "+682", label: "Cook Islands", flag: De },
|
|
209
|
+
{ value: "nu", callingCode: "+683", label: "Niue", flag: He },
|
|
210
|
+
{ value: "ws", callingCode: "+685", label: "Samoa", flag: Je },
|
|
211
|
+
{ value: "ki", callingCode: "+686", label: "Kiribati", flag: Ze },
|
|
212
|
+
{ value: "nc", callingCode: "+687", label: "New Caledonia", flag: Oe },
|
|
213
|
+
{ value: "tv", callingCode: "+688", label: "Tuvalu", flag: We },
|
|
214
|
+
{ value: "pf", callingCode: "+689", label: "French Polynesia", flag: Ye },
|
|
215
|
+
{ value: "tk", callingCode: "+690", label: "Tokelau", flag: Qe },
|
|
216
|
+
{ value: "fm", callingCode: "+691", label: "Federated States of Micronesia", flag: Xe },
|
|
217
|
+
{ value: "mh", callingCode: "+692", label: "Marshall Islands", flag: _e },
|
|
218
|
+
{ value: "kp", callingCode: "+850", label: "North Korea", flag: $e },
|
|
219
|
+
{ value: "hk", callingCode: "+852", label: "Hong Kong", flag: lg },
|
|
220
|
+
{ value: "mo", callingCode: "+853", label: "Macau", flag: ag },
|
|
221
|
+
{ value: "kh", callingCode: "+855", label: "Cambodia", flag: eg },
|
|
222
|
+
{ value: "la", callingCode: "+856", label: "Laos", flag: gg },
|
|
223
|
+
{ value: "bd", callingCode: "+880", label: "Bangladesh", flag: ig },
|
|
224
|
+
{ value: "tw", callingCode: "+886", label: "Taiwan", flag: Fg },
|
|
225
|
+
{ value: "mv", callingCode: "+960", label: "Maldives", flag: ng },
|
|
226
|
+
{ value: "lb", callingCode: "+961", label: "Lebanon", flag: og },
|
|
227
|
+
{ value: "jo", callingCode: "+962", label: "Jordan", flag: ug },
|
|
228
|
+
{ value: "sy", callingCode: "+963", label: "Syria", flag: dg },
|
|
229
|
+
{ value: "iq", callingCode: "+964", label: "Iraq", flag: cg },
|
|
230
|
+
{ value: "kw", callingCode: "+965", label: "Kuwait", flag: bg },
|
|
231
|
+
{ value: "sa", callingCode: "+966", label: "Saudi Arabia", flag: Cg },
|
|
232
|
+
{ value: "ye", callingCode: "+967", label: "Yemen", flag: fg },
|
|
233
|
+
{ value: "om", callingCode: "+968", label: "Oman", flag: vg },
|
|
234
|
+
{ value: "ps", callingCode: "+970", label: "State of Palestine", flag: rg },
|
|
235
|
+
{ value: "ae", callingCode: "+971", label: "United Arab Emirates", flag: sg },
|
|
236
|
+
{ value: "il", callingCode: "+972", label: "Israel", flag: tg },
|
|
237
|
+
{ value: "bh", callingCode: "+973", label: "Bahrain", flag: mg },
|
|
238
|
+
{ value: "qa", callingCode: "+974", label: "Qatar", flag: Sg },
|
|
239
|
+
{ value: "bt", callingCode: "+975", label: "Bhutan", flag: hg },
|
|
240
|
+
{ value: "mn", callingCode: "+976", label: "Mongolia", flag: Mg },
|
|
241
|
+
{ value: "np", callingCode: "+977", label: "Nepal", flag: kg },
|
|
242
|
+
{ value: "tj", callingCode: "+992", label: "Tajikistan", flag: yg },
|
|
243
|
+
{ value: "tm", callingCode: "+993", label: "Turkmenistan", flag: Bg },
|
|
244
|
+
{ value: "az", callingCode: "+994", label: "Azerbaijan", flag: pg },
|
|
245
|
+
{ value: "ge", callingCode: "+995", label: "Georgia", flag: Ag },
|
|
246
|
+
{ value: "kg", callingCode: "+996", label: "Kyrgyzstan", flag: Gg },
|
|
247
|
+
{ value: "uz", callingCode: "+998", label: "Uzbekistan", flag: Tg }
|
|
248
|
+
];
|
|
249
|
+
export {
|
|
250
|
+
wg as COUNTRY_STOCK
|
|
251
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/gclick/src/components/indicators/IndicatorFlag/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare enum IndicatorFlagSlots {
|
|
2
|
+
root = "root",
|
|
3
|
+
trigger = "trigger",
|
|
4
|
+
chip = "chip",
|
|
5
|
+
popover = "popover",
|
|
6
|
+
menu = "menu",
|
|
7
|
+
menuItem = "menuItem",
|
|
8
|
+
flag = "flag",
|
|
9
|
+
code = "code",
|
|
10
|
+
codeInput = "codeInput",
|
|
11
|
+
emptyState = "emptyState"
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=slots.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slots.d.ts","sourceRoot":"","sources":["../../../../../../../packages/gclick/src/components/indicators/IndicatorFlag/slots.ts"],"names":[],"mappings":"AAAA,oBAAY,kBAAkB;IAC5B,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,SAAS,cAAc;IACvB,UAAU,eAAe;CAC1B"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var p = /* @__PURE__ */ ((e) => (e.root = "root", e.trigger = "trigger", e.chip = "chip", e.popover = "popover", e.menu = "menu", e.menuItem = "menuItem", e.flag = "flag", e.code = "code", e.codeInput = "codeInput", e.emptyState = "emptyState", e))(p || {});
|
|
2
|
+
export {
|
|
3
|
+
p as IndicatorFlagSlots
|
|
4
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { ChipProps, M4LOverridesStyleRules } from '@m4l/components';
|
|
2
|
+
import { Theme } from '@mui/material/styles';
|
|
3
|
+
import { HTMLAttributes } from 'react';
|
|
4
|
+
import { INDICATOR_FLAG_COMPONENT_KEY } from './constants';
|
|
5
|
+
import { IndicatorFlagSlots } from './slots';
|
|
6
|
+
/** A country selected from the internal phone-prefix catalog. */
|
|
7
|
+
export interface IndicatorFlagOption {
|
|
8
|
+
/** Stable lowercase two-letter region identifier, usually ISO 3166-1 alpha-2. */
|
|
9
|
+
value: string;
|
|
10
|
+
/** Visible phone prefix, including the leading plus sign. */
|
|
11
|
+
callingCode: string;
|
|
12
|
+
/** Country name used by assistive technology. */
|
|
13
|
+
label: string;
|
|
14
|
+
}
|
|
15
|
+
/** Public props for the IndicatorFlag wrapper. */
|
|
16
|
+
export interface IndicatorFlagProps {
|
|
17
|
+
/** E.164 calling codes to include, such as [34, 44, 33]. Omit for all countries. */
|
|
18
|
+
options?: readonly number[];
|
|
19
|
+
/** Controlled selected country identifier. */
|
|
20
|
+
value?: string;
|
|
21
|
+
/** Initially selected country identifier when uncontrolled. */
|
|
22
|
+
defaultValue?: string;
|
|
23
|
+
/** Called when a country is selected. */
|
|
24
|
+
onChange?: (option: IndicatorFlagOption) => void;
|
|
25
|
+
/** Controlled popover visibility. */
|
|
26
|
+
expanded?: boolean;
|
|
27
|
+
/** Initial popover visibility when uncontrolled. */
|
|
28
|
+
defaultExpanded?: boolean;
|
|
29
|
+
/** Called whenever popover visibility is requested to change. */
|
|
30
|
+
onExpandedChange?: (expanded: boolean) => void;
|
|
31
|
+
/** Prevent country changes while the surrounding field is disabled or read-only. */
|
|
32
|
+
disabled?: boolean;
|
|
33
|
+
/** Additional Chip configuration; the wrapper owns its flag, label and click behavior. */
|
|
34
|
+
chipProps?: Omit<ChipProps, 'startIcon' | 'label' | 'onClick'>;
|
|
35
|
+
/** Additional attributes for the popover panel; the wrapper owns its content. */
|
|
36
|
+
popoverProps?: Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'dangerouslySetInnerHTML'>;
|
|
37
|
+
/** Additional class for the wrapper. */
|
|
38
|
+
className?: string;
|
|
39
|
+
/** Optional test identifier on the wrapper. */
|
|
40
|
+
dataTestId?: string;
|
|
41
|
+
}
|
|
42
|
+
/** State passed to the themeable component slots. */
|
|
43
|
+
export interface IndicatorFlagOwnerState {
|
|
44
|
+
expanded: boolean;
|
|
45
|
+
codeLength?: number;
|
|
46
|
+
}
|
|
47
|
+
export type IndicatorFlagSlotsType = keyof typeof IndicatorFlagSlots;
|
|
48
|
+
export type IndicatorFlagStyles = M4LOverridesStyleRules<IndicatorFlagSlotsType, typeof INDICATOR_FLAG_COMPONENT_KEY, Theme>;
|
|
49
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../packages/gclick/src/components/indicators/IndicatorFlag/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,iEAAiE;AACjE,MAAM,WAAW,mBAAmB;IAClC,iFAAiF;IACjF,KAAK,EAAE,MAAM,CAAC;IACd,6DAA6D;IAC7D,WAAW,EAAE,MAAM,CAAC;IACpB,iDAAiD;IACjD,KAAK,EAAE,MAAM,CAAC;CACf;AAED,kDAAkD;AAClD,MAAM,WAAW,kBAAkB;IACjC,oFAAoF;IACpF,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5B,8CAA8C;IAC9C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+DAA+D;IAC/D,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yCAAyC;IACzC,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,IAAI,CAAC;IACjD,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oDAAoD;IACpD,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,iEAAiE;IACjE,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAC/C,oFAAoF;IACpF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,0FAA0F;IAC1F,SAAS,CAAC,EAAE,IAAI,CAAC,SAAS,EAAE,WAAW,GAAG,OAAO,GAAG,SAAS,CAAC,CAAC;IAC/D,iFAAiF;IACjF,YAAY,CAAC,EAAE,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,GAAG,yBAAyB,CAAC,CAAC;IAC5F,wCAAwC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,+CAA+C;IAC/C,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,qDAAqD;AACrD,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,MAAM,sBAAsB,GAAG,MAAM,OAAO,kBAAkB,CAAC;AACrE,MAAM,MAAM,mBAAmB,GAAG,sBAAsB,CAAC,sBAAsB,EAAE,OAAO,4BAA4B,EAAE,KAAK,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick/src/components/indicators/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick/src/components/indicators/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,8BAA8B,CAAC"}
|