@snmt-react-ui/country-select 2.5.0 → 2.6.1
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/dist/country-select.js +207 -205
- package/dist/index.css +1 -1
- package/package.json +3 -3
package/dist/country-select.js
CHANGED
@@ -7,7 +7,7 @@ import { SNMTUiContext as Ce } from "@snmt-react-ui/core";
|
|
7
7
|
import { Select as ue, Flex as pe, Avatar as we, Checkbox as fe, Typography as J1, Tag as me, Popover as ke } from "antd";
|
8
8
|
import { createContext as e1, forwardRef as m1, useState as S, useRef as a1, useEffect as A, useCallback as j, useContext as J } from "react";
|
9
9
|
var Le = Object.defineProperty, ve = (i, e, t) => e in i ? Le(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, Ne = (i, e, t) => ve(i, e + "", t), xe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
10
|
-
function
|
10
|
+
function Re() {
|
11
11
|
if (console && console.warn) {
|
12
12
|
for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
|
13
13
|
e[t] = arguments[t];
|
@@ -15,10 +15,10 @@ function Me() {
|
|
15
15
|
}
|
16
16
|
}
|
17
17
|
const I1 = {};
|
18
|
-
function
|
18
|
+
function R1() {
|
19
19
|
for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
|
20
20
|
e[t] = arguments[t];
|
21
|
-
U(e[0]) && I1[e[0]] || (U(e[0]) && (I1[e[0]] = /* @__PURE__ */ new Date()),
|
21
|
+
U(e[0]) && I1[e[0]] || (U(e[0]) && (I1[e[0]] = /* @__PURE__ */ new Date()), Re(...e));
|
22
22
|
}
|
23
23
|
const q1 = (i, e) => () => {
|
24
24
|
if (i.isInitialized)
|
@@ -37,7 +37,7 @@ const q1 = (i, e) => () => {
|
|
37
37
|
U(t) && (t = [t]), t.forEach((o) => {
|
38
38
|
i.options.ns.indexOf(o) < 0 && i.options.ns.push(o);
|
39
39
|
}), i.loadLanguages(e, q1(i, s));
|
40
|
-
},
|
40
|
+
}, Me = function(i, e) {
|
41
41
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
42
42
|
const s = e.languages[0], o = e.options ? e.options.fallbackLng : !1, l = e.languages[e.languages.length - 1];
|
43
43
|
if (s.toLowerCase() === "cimode") return !0;
|
@@ -48,12 +48,12 @@ const q1 = (i, e) => () => {
|
|
48
48
|
return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !c(e.isLanguageChangingTo, i) ? !1 : !!(e.hasResourceBundle(s, i) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || c(s, i) && (!o || c(l, i)));
|
49
49
|
}, ye = function(i, e) {
|
50
50
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
51
|
-
return !e.languages || !e.languages.length ? (
|
51
|
+
return !e.languages || !e.languages.length ? (R1("i18n.languages were undefined or empty", e.languages), !0) : e.options.ignoreJSONStructure !== void 0 ? e.hasLoadedNamespace(i, {
|
52
52
|
lng: t.lng,
|
53
53
|
precheck: (s, o) => {
|
54
54
|
if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && s.services.backendConnector.backend && s.isLanguageChangingTo && !o(s.isLanguageChangingTo, i)) return !1;
|
55
55
|
}
|
56
|
-
}) :
|
56
|
+
}) : Me(i, e, t);
|
57
57
|
}, U = (i) => typeof i == "string", be = (i) => typeof i == "object" && i !== null, _e = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Ee = {
|
58
58
|
"&": "&",
|
59
59
|
"&": "&",
|
@@ -113,11 +113,11 @@ const We = (i, e) => {
|
|
113
113
|
defaultNS: o
|
114
114
|
} = J(Be) || {}, l = t || s || Ae();
|
115
115
|
if (l && !l.reportNamespaces && (l.reportNamespaces = new Ze()), !l) {
|
116
|
-
|
117
|
-
const w = (N, x) => U(x) ? x : be(x) && U(x.defaultValue) ? x.defaultValue : Array.isArray(N) ? N[N.length - 1] : N,
|
118
|
-
return
|
116
|
+
R1("You will need to pass in an i18next instance by using initReactI18next");
|
117
|
+
const w = (N, x) => U(x) ? x : be(x) && U(x.defaultValue) ? x.defaultValue : Array.isArray(N) ? N[N.length - 1] : N, M = [w, {}, !1];
|
118
|
+
return M.t = w, M.i18n = {}, M.ready = !1, M;
|
119
119
|
}
|
120
|
-
l.options.react && l.options.react.wait !== void 0 &&
|
120
|
+
l.options.react && l.options.react.wait !== void 0 && R1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
|
121
121
|
const c = {
|
122
122
|
...Oe(),
|
123
123
|
...l.options.react,
|
@@ -135,7 +135,7 @@ const We = (i, e) => {
|
|
135
135
|
A(() => {
|
136
136
|
const {
|
137
137
|
bindI18n: w,
|
138
|
-
bindI18nStore:
|
138
|
+
bindI18nStore: M
|
139
139
|
} = c;
|
140
140
|
b.current = !0, !a && !r && (e.lng ? S1(l, e.lng, g, () => {
|
141
141
|
b.current && y(p);
|
@@ -145,8 +145,8 @@ const We = (i, e) => {
|
|
145
145
|
const N = () => {
|
146
146
|
b.current && y(p);
|
147
147
|
};
|
148
|
-
return w && l && l.on(w, N),
|
149
|
-
b.current = !1, w && l && w.split(" ").forEach((x) => l.off(x, N)),
|
148
|
+
return w && l && l.on(w, N), M && l && l.store.on(M, N), () => {
|
149
|
+
b.current = !1, w && l && w.split(" ").forEach((x) => l.off(x, N)), M && l && M.split(" ").forEach((x) => l.store.off(x, N));
|
150
150
|
};
|
151
151
|
}, [l, f]), A(() => {
|
152
152
|
b.current && a && y(u);
|
@@ -1504,7 +1504,7 @@ const Ke = ({
|
|
1504
1504
|
/* @__PURE__ */ n("circle", { cx: "10", cy: "10", r: "2.375", stroke: t, strokeWidth: "1.25" })
|
1505
1505
|
]
|
1506
1506
|
}
|
1507
|
-
),
|
1507
|
+
), R2 = ({
|
1508
1508
|
width: i = 20,
|
1509
1509
|
height: e = 20,
|
1510
1510
|
color: t = "#070739",
|
@@ -1542,7 +1542,7 @@ const Ke = ({
|
|
1542
1542
|
)
|
1543
1543
|
]
|
1544
1544
|
}
|
1545
|
-
),
|
1545
|
+
), M2 = ({
|
1546
1546
|
width: i = 9,
|
1547
1547
|
height: e = 5,
|
1548
1548
|
color: t = "#001E52",
|
@@ -3003,8 +3003,8 @@ const Ke = ({
|
|
3003
3003
|
children: /* @__PURE__ */ n(
|
3004
3004
|
"path",
|
3005
3005
|
{
|
3006
|
-
|
3007
|
-
|
3006
|
+
fillRule: "evenodd",
|
3007
|
+
clipRule: "evenodd",
|
3008
3008
|
d: "M7.99994 13C10.7614 13 12.9999 10.7614 12.9999 8C12.9999 5.23858 10.7614 3 7.99994 3C5.23852 3 2.99994 5.23858 2.99994 8C2.99994 10.7614 5.23852 13 7.99994 13ZM5.73419 5.6757C5.92945 5.48044 6.24603 5.48044 6.4413 5.6757L8.02837 7.26277L9.56074 5.7304C9.756 5.53514 10.0726 5.53514 10.2678 5.7304C10.4631 5.92566 10.4631 6.24225 10.2678 6.43751L8.73548 7.96988L10.3254 9.55981C10.5207 9.75507 10.5207 10.0717 10.3254 10.2669C10.1301 10.4622 9.81357 10.4622 9.61831 10.2669L8.02837 8.67698L6.38373 10.3216C6.18847 10.5169 5.87189 10.5169 5.67663 10.3216C5.48136 10.1264 5.48136 9.80978 5.67663 9.61452L7.32126 7.96988L5.73419 6.3828C5.53893 6.18754 5.53893 5.87096 5.73419 5.6757Z",
|
3009
3009
|
fill: e
|
3010
3010
|
}
|
@@ -3027,11 +3027,11 @@ const Ke = ({
|
|
3027
3027
|
fill: "none",
|
3028
3028
|
xmlns: "http://www.w3.org/2000/svg",
|
3029
3029
|
children: [
|
3030
|
-
/* @__PURE__ */ n("g", {
|
3030
|
+
/* @__PURE__ */ n("g", { clipPath: "url(#clip0_3992_5989)", children: /* @__PURE__ */ n(
|
3031
3031
|
"path",
|
3032
3032
|
{
|
3033
|
-
|
3034
|
-
|
3033
|
+
fillRule: "evenodd",
|
3034
|
+
clipRule: "evenodd",
|
3035
3035
|
d: "M6.22724 7.50312C5.92425 7.80612 5.92425 8.29737 6.22724 8.60036L9.67552 12.0486C9.97851 12.3516 10.4698 12.3516 10.7728 12.0486L14.221 8.60036C14.524 8.29737 14.524 7.80612 14.221 7.50312C13.918 7.20013 13.4268 7.20013 13.1238 7.50312L10.2241 10.4028L7.32448 7.50312C7.02149 7.20013 6.53024 7.20013 6.22724 7.50312Z",
|
3036
3036
|
fill: e
|
3037
3037
|
}
|
@@ -3056,11 +3056,11 @@ const Ke = ({
|
|
3056
3056
|
fill: "none",
|
3057
3057
|
xmlns: "http://www.w3.org/2000/svg",
|
3058
3058
|
children: [
|
3059
|
-
/* @__PURE__ */ n("g", {
|
3059
|
+
/* @__PURE__ */ n("g", { clipPath: "url(#clip0_3992_5988)", children: /* @__PURE__ */ n(
|
3060
3060
|
"path",
|
3061
3061
|
{
|
3062
|
-
|
3063
|
-
|
3062
|
+
fillRule: "evenodd",
|
3063
|
+
clipRule: "evenodd",
|
3064
3064
|
d: "M13.7728 12.4969C14.0757 12.1939 14.0757 11.7026 13.7728 11.3996L10.3245 7.95137C10.0215 7.64837 9.53024 7.64837 9.22724 7.95137L5.77897 11.3996C5.47598 11.7026 5.47598 12.1939 5.77897 12.4969C6.08196 12.7999 6.57321 12.7999 6.8762 12.4969L9.77586 9.59722L12.6755 12.4969C12.9785 12.7999 13.4698 12.7999 13.7728 12.4969Z",
|
3065
3065
|
fill: e
|
3066
3066
|
}
|
@@ -3089,8 +3089,8 @@ const Ke = ({
|
|
3089
3089
|
/* @__PURE__ */ n(
|
3090
3090
|
"path",
|
3091
3091
|
{
|
3092
|
-
|
3093
|
-
|
3092
|
+
fillRule: "evenodd",
|
3093
|
+
clipRule: "evenodd",
|
3094
3094
|
d: "M11.7728 6.22718C11.4698 5.92419 10.9785 5.92419 10.6755 6.22718L7.22724 9.67546C6.92425 9.97845 6.92425 10.4697 7.22724 10.7727L10.6755 14.221C10.9785 14.524 11.4698 14.524 11.7728 14.221C12.0757 13.918 12.0757 13.4267 11.7728 13.1237L8.8731 10.2241L11.7728 7.32442C12.0757 7.02143 12.0757 6.53018 11.7728 6.22718Z",
|
3095
3095
|
fill: e
|
3096
3096
|
}
|
@@ -3118,8 +3118,8 @@ const Ke = ({
|
|
3118
3118
|
/* @__PURE__ */ n(
|
3119
3119
|
"path",
|
3120
3120
|
{
|
3121
|
-
|
3122
|
-
|
3121
|
+
fillRule: "evenodd",
|
3122
|
+
clipRule: "evenodd",
|
3123
3123
|
d: "M8.22724 13.7728C8.53024 14.0757 9.02149 14.0757 9.32448 13.7728L12.7728 10.3245C13.0757 10.0215 13.0757 9.53024 12.7728 9.22724L9.32448 5.77897C9.02149 5.47598 8.53024 5.47598 8.22724 5.77897C7.92425 6.08196 7.92425 6.57321 8.22724 6.8762L11.1269 9.77586L8.22724 12.6755C7.92425 12.9785 7.92425 13.4698 8.22724 13.7728Z",
|
3124
3124
|
fill: e
|
3125
3125
|
}
|
@@ -3145,8 +3145,8 @@ const Ke = ({
|
|
3145
3145
|
children: /* @__PURE__ */ n(
|
3146
3146
|
"path",
|
3147
3147
|
{
|
3148
|
-
|
3149
|
-
|
3148
|
+
fillRule: "evenodd",
|
3149
|
+
clipRule: "evenodd",
|
3150
3150
|
d: "M20.75 7C20.75 7.19891 20.671 7.38968 20.5303 7.53033C20.3897 7.67098 20.1989 7.75 20 7.75H4C3.80109 7.75 3.61032 7.67098 3.46967 7.53033C3.32902 7.38968 3.25 7.19891 3.25 7C3.25 6.80109 3.32902 6.61032 3.46967 6.46967C3.61032 6.32902 3.80109 6.25 4 6.25H20C20.1989 6.25 20.3897 6.32902 20.5303 6.46967C20.671 6.61032 20.75 6.80109 20.75 7ZM20.75 12C20.75 12.1989 20.671 12.3897 20.5303 12.5303C20.3897 12.671 20.1989 12.75 20 12.75H4C3.80109 12.75 3.61032 12.671 3.46967 12.5303C3.32902 12.3897 3.25 12.1989 3.25 12C3.25 11.8011 3.32902 11.6103 3.46967 11.4697C3.61032 11.329 3.80109 11.25 4 11.25H20C20.1989 11.25 20.3897 11.329 20.5303 11.4697C20.671 11.6103 20.75 11.8011 20.75 12ZM20.75 17C20.75 17.1989 20.671 17.3897 20.5303 17.5303C20.3897 17.671 20.1989 17.75 20 17.75H4C3.80109 17.75 3.61032 17.671 3.46967 17.5303C3.32902 17.3897 3.25 17.1989 3.25 17C3.25 16.8011 3.32902 16.6103 3.46967 16.4697C3.61032 16.329 3.80109 16.25 4 16.25H20C20.1989 16.25 20.3897 16.329 20.5303 16.4697C20.671 16.6103 20.75 16.8011 20.75 17Z",
|
3151
3151
|
fill: e
|
3152
3152
|
}
|
@@ -3440,7 +3440,7 @@ const Ke = ({
|
|
3440
3440
|
}
|
3441
3441
|
)
|
3442
3442
|
}
|
3443
|
-
),
|
3443
|
+
), Rt = ({
|
3444
3444
|
width: i = 24,
|
3445
3445
|
height: e = 24,
|
3446
3446
|
color: t = m.GREY_DARK_2,
|
@@ -3610,7 +3610,7 @@ const Ke = ({
|
|
3610
3610
|
onClick: h
|
3611
3611
|
});
|
3612
3612
|
case "visibilityOffIcon":
|
3613
|
-
return
|
3613
|
+
return R2({
|
3614
3614
|
width: e,
|
3615
3615
|
height: t,
|
3616
3616
|
color: a,
|
@@ -3618,7 +3618,7 @@ const Ke = ({
|
|
3618
3618
|
onClick: h
|
3619
3619
|
});
|
3620
3620
|
case "selectArrowIcon":
|
3621
|
-
return
|
3621
|
+
return M2({
|
3622
3622
|
width: e,
|
3623
3623
|
height: t,
|
3624
3624
|
color: a,
|
@@ -3736,12 +3736,12 @@ const Ke = ({
|
|
3736
3736
|
case "community":
|
3737
3737
|
return xt({ width: e, height: t, color: a, className: r, onClick: h });
|
3738
3738
|
case "docs":
|
3739
|
-
return
|
3739
|
+
return Rt({ width: e, height: t, color: a, className: r, onClick: h });
|
3740
3740
|
default:
|
3741
3741
|
return /* @__PURE__ */ n($, { children: "No Icon provided" });
|
3742
3742
|
}
|
3743
3743
|
})() });
|
3744
|
-
}, { Title:
|
3744
|
+
}, { Title: Mt, Text: yt } = J1, bt = {
|
3745
3745
|
h1: 1,
|
3746
3746
|
h2: 2,
|
3747
3747
|
h3: 3,
|
@@ -3759,7 +3759,7 @@ const Ke = ({
|
|
3759
3759
|
const d = e === "h1" || e === "h2" || e === "h3" || e === "h4";
|
3760
3760
|
let g = `snmt-typography snmt-typography-${e}`;
|
3761
3761
|
return i && i !== "inherit" && (g += ` snmt-typography-align-${i}`), l && (g += " collapsed"), d ? /* @__PURE__ */ n(
|
3762
|
-
|
3762
|
+
Mt,
|
3763
3763
|
{
|
3764
3764
|
className: g,
|
3765
3765
|
style: { color: t, whiteSpace: c },
|
@@ -5522,7 +5522,7 @@ const Et = ({
|
|
5522
5522
|
}
|
5523
5523
|
)
|
5524
5524
|
}
|
5525
|
-
),
|
5525
|
+
), R5 = ({
|
5526
5526
|
className: i,
|
5527
5527
|
color: e = k.GREY_DARK_5,
|
5528
5528
|
height: t = 5,
|
@@ -5547,7 +5547,7 @@ const Et = ({
|
|
5547
5547
|
}
|
5548
5548
|
)
|
5549
5549
|
}
|
5550
|
-
),
|
5550
|
+
), M5 = ({
|
5551
5551
|
className: i,
|
5552
5552
|
color: e = k.GREY_DARK_5,
|
5553
5553
|
height: t = 24,
|
@@ -6558,8 +6558,8 @@ const Et = ({
|
|
6558
6558
|
children: /* @__PURE__ */ n(
|
6559
6559
|
"path",
|
6560
6560
|
{
|
6561
|
-
|
6562
|
-
|
6561
|
+
fillRule: "evenodd",
|
6562
|
+
clipRule: "evenodd",
|
6563
6563
|
d: "M7.99994 13C10.7614 13 12.9999 10.7614 12.9999 8C12.9999 5.23858 10.7614 3 7.99994 3C5.23852 3 2.99994 5.23858 2.99994 8C2.99994 10.7614 5.23852 13 7.99994 13ZM5.73419 5.6757C5.92945 5.48044 6.24603 5.48044 6.4413 5.6757L8.02837 7.26277L9.56074 5.7304C9.756 5.53514 10.0726 5.53514 10.2678 5.7304C10.4631 5.92566 10.4631 6.24225 10.2678 6.43751L8.73548 7.96988L10.3254 9.55981C10.5207 9.75507 10.5207 10.0717 10.3254 10.2669C10.1301 10.4622 9.81357 10.4622 9.61831 10.2669L8.02837 8.67698L6.38373 10.3216C6.18847 10.5169 5.87189 10.5169 5.67663 10.3216C5.48136 10.1264 5.48136 9.80978 5.67663 9.61452L7.32126 7.96988L5.73419 6.3828C5.53893 6.18754 5.53893 5.87096 5.73419 5.6757Z",
|
6564
6564
|
fill: e
|
6565
6565
|
}
|
@@ -6582,11 +6582,11 @@ const Et = ({
|
|
6582
6582
|
fill: "none",
|
6583
6583
|
xmlns: "http://www.w3.org/2000/svg",
|
6584
6584
|
children: [
|
6585
|
-
/* @__PURE__ */ n("g", {
|
6585
|
+
/* @__PURE__ */ n("g", { clipPath: "url(#clip0_3992_5989)", children: /* @__PURE__ */ n(
|
6586
6586
|
"path",
|
6587
6587
|
{
|
6588
|
-
|
6589
|
-
|
6588
|
+
fillRule: "evenodd",
|
6589
|
+
clipRule: "evenodd",
|
6590
6590
|
d: "M6.22724 7.50312C5.92425 7.80612 5.92425 8.29737 6.22724 8.60036L9.67552 12.0486C9.97851 12.3516 10.4698 12.3516 10.7728 12.0486L14.221 8.60036C14.524 8.29737 14.524 7.80612 14.221 7.50312C13.918 7.20013 13.4268 7.20013 13.1238 7.50312L10.2241 10.4028L7.32448 7.50312C7.02149 7.20013 6.53024 7.20013 6.22724 7.50312Z",
|
6591
6591
|
fill: e
|
6592
6592
|
}
|
@@ -6611,11 +6611,11 @@ const Et = ({
|
|
6611
6611
|
fill: "none",
|
6612
6612
|
xmlns: "http://www.w3.org/2000/svg",
|
6613
6613
|
children: [
|
6614
|
-
/* @__PURE__ */ n("g", {
|
6614
|
+
/* @__PURE__ */ n("g", { clipPath: "url(#clip0_3992_5988)", children: /* @__PURE__ */ n(
|
6615
6615
|
"path",
|
6616
6616
|
{
|
6617
|
-
|
6618
|
-
|
6617
|
+
fillRule: "evenodd",
|
6618
|
+
clipRule: "evenodd",
|
6619
6619
|
d: "M13.7728 12.4969C14.0757 12.1939 14.0757 11.7026 13.7728 11.3996L10.3245 7.95137C10.0215 7.64837 9.53024 7.64837 9.22724 7.95137L5.77897 11.3996C5.47598 11.7026 5.47598 12.1939 5.77897 12.4969C6.08196 12.7999 6.57321 12.7999 6.8762 12.4969L9.77586 9.59722L12.6755 12.4969C12.9785 12.7999 13.4698 12.7999 13.7728 12.4969Z",
|
6620
6620
|
fill: e
|
6621
6621
|
}
|
@@ -6644,8 +6644,8 @@ const Et = ({
|
|
6644
6644
|
/* @__PURE__ */ n(
|
6645
6645
|
"path",
|
6646
6646
|
{
|
6647
|
-
|
6648
|
-
|
6647
|
+
fillRule: "evenodd",
|
6648
|
+
clipRule: "evenodd",
|
6649
6649
|
d: "M11.7728 6.22718C11.4698 5.92419 10.9785 5.92419 10.6755 6.22718L7.22724 9.67546C6.92425 9.97845 6.92425 10.4697 7.22724 10.7727L10.6755 14.221C10.9785 14.524 11.4698 14.524 11.7728 14.221C12.0757 13.918 12.0757 13.4267 11.7728 13.1237L8.8731 10.2241L11.7728 7.32442C12.0757 7.02143 12.0757 6.53018 11.7728 6.22718Z",
|
6650
6650
|
fill: e
|
6651
6651
|
}
|
@@ -6673,8 +6673,8 @@ const Et = ({
|
|
6673
6673
|
/* @__PURE__ */ n(
|
6674
6674
|
"path",
|
6675
6675
|
{
|
6676
|
-
|
6677
|
-
|
6676
|
+
fillRule: "evenodd",
|
6677
|
+
clipRule: "evenodd",
|
6678
6678
|
d: "M8.22724 13.7728C8.53024 14.0757 9.02149 14.0757 9.32448 13.7728L12.7728 10.3245C13.0757 10.0215 13.0757 9.53024 12.7728 9.22724L9.32448 5.77897C9.02149 5.47598 8.53024 5.47598 8.22724 5.77897C7.92425 6.08196 7.92425 6.57321 8.22724 6.8762L11.1269 9.77586L8.22724 12.6755C7.92425 12.9785 7.92425 13.4698 8.22724 13.7728Z",
|
6679
6679
|
fill: e
|
6680
6680
|
}
|
@@ -6700,8 +6700,8 @@ const Et = ({
|
|
6700
6700
|
children: /* @__PURE__ */ n(
|
6701
6701
|
"path",
|
6702
6702
|
{
|
6703
|
-
|
6704
|
-
|
6703
|
+
fillRule: "evenodd",
|
6704
|
+
clipRule: "evenodd",
|
6705
6705
|
d: "M20.75 7C20.75 7.19891 20.671 7.38968 20.5303 7.53033C20.3897 7.67098 20.1989 7.75 20 7.75H4C3.80109 7.75 3.61032 7.67098 3.46967 7.53033C3.32902 7.38968 3.25 7.19891 3.25 7C3.25 6.80109 3.32902 6.61032 3.46967 6.46967C3.61032 6.32902 3.80109 6.25 4 6.25H20C20.1989 6.25 20.3897 6.32902 20.5303 6.46967C20.671 6.61032 20.75 6.80109 20.75 7ZM20.75 12C20.75 12.1989 20.671 12.3897 20.5303 12.5303C20.3897 12.671 20.1989 12.75 20 12.75H4C3.80109 12.75 3.61032 12.671 3.46967 12.5303C3.32902 12.3897 3.25 12.1989 3.25 12C3.25 11.8011 3.32902 11.6103 3.46967 11.4697C3.61032 11.329 3.80109 11.25 4 11.25H20C20.1989 11.25 20.3897 11.329 20.5303 11.4697C20.671 11.6103 20.75 11.8011 20.75 12ZM20.75 17C20.75 17.1989 20.671 17.3897 20.5303 17.5303C20.3897 17.671 20.1989 17.75 20 17.75H4C3.80109 17.75 3.61032 17.671 3.46967 17.5303C3.32902 17.3897 3.25 17.1989 3.25 17C3.25 16.8011 3.32902 16.6103 3.46967 16.4697C3.61032 16.329 3.80109 16.25 4 16.25H20C20.1989 16.25 20.3897 16.329 20.5303 16.4697C20.671 16.6103 20.75 16.8011 20.75 17Z",
|
6706
6706
|
fill: e
|
6707
6707
|
}
|
@@ -7209,11 +7209,11 @@ const Et = ({
|
|
7209
7209
|
case "handRock":
|
7210
7210
|
return L5({ width: e, height: t, color: a, className: r, onClick: h });
|
7211
7211
|
case "arrowUpFilled":
|
7212
|
-
return
|
7212
|
+
return R5({ width: e, height: t, color: a, className: r, onClick: h });
|
7213
7213
|
case "arrowDownFilled":
|
7214
7214
|
return x5({ width: e, height: t, color: a, className: r, onClick: h });
|
7215
7215
|
case "link":
|
7216
|
-
return
|
7216
|
+
return M5({ width: e, height: t, color: a, className: r, onClick: h });
|
7217
7217
|
case "telegram":
|
7218
7218
|
return b5({ width: e, height: t, color: a, className: r, onClick: h });
|
7219
7219
|
case "mail":
|
@@ -7490,29 +7490,29 @@ const k3 = ({
|
|
7490
7490
|
optionRender: b,
|
7491
7491
|
isLoading: E,
|
7492
7492
|
readOnly: w,
|
7493
|
-
error:
|
7493
|
+
error: M
|
7494
7494
|
}, N) => {
|
7495
7495
|
const [x, Z] = S(!1), [T, t1] = S(!1), [F, h1] = S(!0), [H, G] = S(i), Y = a1(null);
|
7496
7496
|
A(() => {
|
7497
7497
|
G(i);
|
7498
7498
|
}, [i]);
|
7499
|
-
const q = (
|
7500
|
-
Z(
|
7501
|
-
}, c1 = (
|
7499
|
+
const q = (R) => {
|
7500
|
+
Z(R), u && u(R);
|
7501
|
+
}, c1 = (R, V) => {
|
7502
7502
|
var W;
|
7503
|
-
return !!((W = V == null ? void 0 : V.label) != null && W.toString().toLowerCase().includes(
|
7503
|
+
return !!((W = V == null ? void 0 : V.label) != null && W.toString().toLowerCase().includes(R.toLowerCase()));
|
7504
7504
|
}, O = () => {
|
7505
7505
|
t1(!0);
|
7506
7506
|
}, K = () => {
|
7507
7507
|
t1(!1);
|
7508
7508
|
}, B = j(
|
7509
|
-
(
|
7510
|
-
if (G(
|
7511
|
-
const W =
|
7509
|
+
(R) => {
|
7510
|
+
if (G(R), s) {
|
7511
|
+
const W = R;
|
7512
7512
|
e == null || e(W);
|
7513
7513
|
return;
|
7514
7514
|
}
|
7515
|
-
const V =
|
7515
|
+
const V = R;
|
7516
7516
|
e == null || e(V);
|
7517
7517
|
},
|
7518
7518
|
[s, e]
|
@@ -7525,38 +7525,38 @@ const k3 = ({
|
|
7525
7525
|
B("");
|
7526
7526
|
}
|
7527
7527
|
}, [B, s, w]), g1 = j(
|
7528
|
-
(
|
7529
|
-
const V = H.filter((W) => W !==
|
7528
|
+
(R) => {
|
7529
|
+
const V = H.filter((W) => W !== R);
|
7530
7530
|
B(V), G(V);
|
7531
7531
|
},
|
7532
7532
|
[B, H]
|
7533
7533
|
), E1 = j(
|
7534
|
-
(
|
7534
|
+
(R) => (H == null ? void 0 : H.indexOf(R)) === 0 ? (
|
7535
7535
|
// if the search input is empty
|
7536
7536
|
// then display the placeholder, else do not display it
|
7537
7537
|
/* @__PURE__ */ n("span", { className: "custom-placeholder", children: F ? t : "" })
|
7538
7538
|
) : /* @__PURE__ */ n($, {}),
|
7539
7539
|
[F, H, t]
|
7540
|
-
), le = (
|
7541
|
-
|
7542
|
-
}, ae = async (
|
7543
|
-
const { target: V } =
|
7544
|
-
V.scrollTop + V.offsetHeight >= V.scrollHeight - a && (p == null || p(!0)), L && await L(
|
7540
|
+
), le = (R) => {
|
7541
|
+
R.preventDefault(), R.stopPropagation();
|
7542
|
+
}, ae = async (R) => {
|
7543
|
+
const { target: V } = R;
|
7544
|
+
V.scrollTop + V.offsetHeight >= V.scrollHeight - a && (p == null || p(!0)), L && await L(R);
|
7545
7545
|
}, L1 = j(
|
7546
|
-
(
|
7546
|
+
(R) => {
|
7547
7547
|
var V, W;
|
7548
|
-
return ((V = l.find((v1) => v1.value ===
|
7549
|
-
(v1) => v1.value ===
|
7550
|
-
)) == null ? void 0 : W.label) ||
|
7548
|
+
return ((V = l.find((v1) => v1.value === R)) == null ? void 0 : V.label) || ((W = f == null ? void 0 : f.find(
|
7549
|
+
(v1) => v1.value === R
|
7550
|
+
)) == null ? void 0 : W.label) || R;
|
7551
7551
|
},
|
7552
7552
|
[f, l]
|
7553
7553
|
), he = j(
|
7554
|
-
(
|
7554
|
+
(R) => {
|
7555
7555
|
var V;
|
7556
7556
|
return /* @__PURE__ */ n(
|
7557
7557
|
k3,
|
7558
7558
|
{
|
7559
|
-
values:
|
7559
|
+
values: R,
|
7560
7560
|
onTagClose: g1,
|
7561
7561
|
maxWidth: ((V = Y.current) == null ? void 0 : V.clientWidth) || 0,
|
7562
7562
|
disabled: r,
|
@@ -7568,116 +7568,118 @@ const k3 = ({
|
|
7568
7568
|
},
|
7569
7569
|
[r, f, g1, l, w]
|
7570
7570
|
), ce = j(
|
7571
|
-
({ label:
|
7571
|
+
({ label: R, value: V, mode: W }) => W === "filter" ? E1(V) : /* @__PURE__ */ n("div", { onMouseDown: le, className: "tag-wrapper", children: /* @__PURE__ */ n(te, { onClose: () => g1(V), disabled: r, children: typeof R == "object" ? R : L1(V) }) }),
|
7572
7572
|
[r, L1, g1, E1]
|
7573
7573
|
), V1 = Array.isArray(H) && H.length > 0 || !!H && typeof H == "string" && H.trim() !== "";
|
7574
|
-
return /* @__PURE__ */ C(
|
7575
|
-
|
7576
|
-
|
7577
|
-
|
7578
|
-
|
7579
|
-
|
7580
|
-
|
7581
|
-
|
7582
|
-
|
7583
|
-
|
7584
|
-
|
7585
|
-
|
7586
|
-
|
7587
|
-
|
7588
|
-
|
7589
|
-
|
7590
|
-
|
7591
|
-
|
7592
|
-
|
7593
|
-
|
7594
|
-
|
7595
|
-
|
7596
|
-
|
7597
|
-
|
7598
|
-
|
7599
|
-
|
7600
|
-
|
7601
|
-
|
7602
|
-
|
7603
|
-
|
7604
|
-
|
7605
|
-
|
7606
|
-
|
7607
|
-
|
7608
|
-
|
7609
|
-
|
7610
|
-
|
7611
|
-
|
7612
|
-
|
7613
|
-
|
7614
|
-
|
7615
|
-
|
7616
|
-
|
7617
|
-
|
7618
|
-
|
7619
|
-
|
7620
|
-
name: "selectArrowIcon",
|
7621
|
-
color: r ? P.GREY_DARK_1 : P.GREY_DARK_5,
|
7622
|
-
className: x ? "select-arrow-rotated" : "select-arrow",
|
7623
|
-
onClick: () => Z(!x)
|
7624
|
-
}
|
7625
|
-
)
|
7626
|
-
] }) }),
|
7627
|
-
removeIcon: /* @__PURE__ */ n(i1, { name: "errorSmall", color: P.GREY_DARK_2 }),
|
7628
|
-
options: l,
|
7629
|
-
optionRender: (M) => b ? b(M.data) : /* @__PURE__ */ C(o1, { justifyContent: "space-between", alignItems: "center", flex: "1", children: [
|
7630
|
-
/* @__PURE__ */ C(o1, { alignItems: "center", gap: 12, children: [
|
7631
|
-
s && /* @__PURE__ */ n(
|
7632
|
-
Ge,
|
7574
|
+
return /* @__PURE__ */ C("div", { className: "snmt-select-container", children: [
|
7575
|
+
/* @__PURE__ */ C(
|
7576
|
+
"div",
|
7577
|
+
{
|
7578
|
+
className: `snmt-select-1-15-6 ${T ? "snmt-select-focused" : ""}
|
7579
|
+
${s ? "" : "snmt-select-single"} ${w ? "snmt-select-read-only" : ""}`,
|
7580
|
+
ref: Y,
|
7581
|
+
style: { width: c },
|
7582
|
+
children: [
|
7583
|
+
/* @__PURE__ */ n(
|
7584
|
+
ue,
|
7585
|
+
{
|
7586
|
+
className: "snmt-select-blank",
|
7587
|
+
popupClassName: w ? "dropdown-read-only" : "",
|
7588
|
+
id: y,
|
7589
|
+
ref: N,
|
7590
|
+
showSearch: !!o,
|
7591
|
+
filterOption: o && c1,
|
7592
|
+
onDropdownVisibleChange: q,
|
7593
|
+
disabled: r,
|
7594
|
+
value: H || void 0,
|
7595
|
+
labelRender: (R) => L1(R.value),
|
7596
|
+
mode: s === "filter" ? "multiple" : s,
|
7597
|
+
onChange: B,
|
7598
|
+
onFocus: O,
|
7599
|
+
onBlur: K,
|
7600
|
+
onSearch: (R) => {
|
7601
|
+
h1(!R), h && h(R);
|
7602
|
+
},
|
7603
|
+
onSelect: () => h1(!0),
|
7604
|
+
onDeselect: () => h1(!0),
|
7605
|
+
tagRender: (R) => ce({ ...R, mode: s }),
|
7606
|
+
maxTagCount: "responsive",
|
7607
|
+
maxTagPlaceholder: he,
|
7608
|
+
onPopupScroll: ae,
|
7609
|
+
prefix: E && /* @__PURE__ */ n(A1, { size: 15 }),
|
7610
|
+
suffixIcon: /* @__PURE__ */ n("div", { className: "wrapper-suffix-icon", children: s !== "filter" && /* @__PURE__ */ C($, { children: [
|
7611
|
+
H && !!H.length && (s || g) && /* @__PURE__ */ n("div", { onClick: d1, children: /* @__PURE__ */ n(
|
7612
|
+
i1,
|
7613
|
+
{
|
7614
|
+
name: "cancel",
|
7615
|
+
color: r ? P.GREY_DARK_1 : P.GREY_DARK_5
|
7616
|
+
}
|
7617
|
+
) }),
|
7618
|
+
/* @__PURE__ */ n(
|
7619
|
+
i1,
|
7633
7620
|
{
|
7634
|
-
|
7621
|
+
name: "selectArrowIcon",
|
7622
|
+
color: r ? P.GREY_DARK_1 : P.GREY_DARK_5,
|
7623
|
+
className: x ? "select-arrow-rotated" : "select-arrow",
|
7624
|
+
onClick: () => Z(!x)
|
7635
7625
|
}
|
7636
|
-
)
|
7637
|
-
|
7638
|
-
|
7639
|
-
|
7640
|
-
|
7626
|
+
)
|
7627
|
+
] }) }),
|
7628
|
+
removeIcon: /* @__PURE__ */ n(i1, { name: "errorSmall", color: P.GREY_DARK_2 }),
|
7629
|
+
options: l,
|
7630
|
+
optionRender: (R) => b ? b(R.data) : /* @__PURE__ */ C(o1, { justifyContent: "space-between", alignItems: "center", flex: "1", children: [
|
7631
|
+
/* @__PURE__ */ C(o1, { alignItems: "center", gap: 12, children: [
|
7632
|
+
s && /* @__PURE__ */ n(
|
7633
|
+
Ge,
|
7634
|
+
{
|
7635
|
+
checked: !!(H != null && H.includes(R.value))
|
7636
|
+
}
|
7637
|
+
),
|
7638
|
+
/* @__PURE__ */ C(o1, { alignItems: "center", gap: 8, children: [
|
7639
|
+
R.data.image && /* @__PURE__ */ n(Te, { src: R.data.image, size: 20 }),
|
7640
|
+
/* @__PURE__ */ n("span", { children: R.label })
|
7641
|
+
] })
|
7642
|
+
] }),
|
7643
|
+
!s && H === R.value && /* @__PURE__ */ n(
|
7644
|
+
i1,
|
7645
|
+
{
|
7646
|
+
name: "ok",
|
7647
|
+
color: P.BLUE_PRIMARY,
|
7648
|
+
width: 16,
|
7649
|
+
height: 16
|
7650
|
+
}
|
7651
|
+
)
|
7641
7652
|
] }),
|
7642
|
-
|
7643
|
-
|
7644
|
-
{
|
7645
|
-
|
7646
|
-
color: P.BLUE_PRIMARY,
|
7647
|
-
width: 16,
|
7648
|
-
height: 16
|
7649
|
-
}
|
7650
|
-
)
|
7651
|
-
] }),
|
7652
|
-
dropdownRender: (M) => /* @__PURE__ */ C("div", { className: "dropdown-container", children: [
|
7653
|
-
/* @__PURE__ */ n("div", { className: "dropdown-menu", children: _ ? _(M) : M }),
|
7654
|
-
E && /* @__PURE__ */ n("div", { className: "loading-overlay", children: /* @__PURE__ */ n(A1, { size: 28 }) })
|
7655
|
-
] })
|
7656
|
-
}
|
7657
|
-
),
|
7658
|
-
t && /* @__PURE__ */ C($, { children: [
|
7659
|
-
/* @__PURE__ */ n(
|
7660
|
-
"label",
|
7661
|
-
{
|
7662
|
-
className: `${T || V1 ? "label-floating" : ""} ${r ? "label-disabled" : ""} ${T ? "label-focused" : ""} ${E ? "label-loading" : ""} ${R ? "label-error" : ""}`,
|
7663
|
-
children: d ? `${t}*` : t
|
7653
|
+
dropdownRender: (R) => /* @__PURE__ */ C("div", { className: "dropdown-container", children: [
|
7654
|
+
/* @__PURE__ */ n("div", { className: "dropdown-menu", children: _ ? _(R) : R }),
|
7655
|
+
E && /* @__PURE__ */ n("div", { className: "loading-overlay", children: /* @__PURE__ */ n(A1, { size: 28 }) })
|
7656
|
+
] })
|
7664
7657
|
}
|
7665
7658
|
),
|
7666
|
-
/* @__PURE__ */
|
7667
|
-
|
7668
|
-
|
7669
|
-
|
7670
|
-
|
7671
|
-
|
7672
|
-
|
7673
|
-
|
7674
|
-
|
7675
|
-
|
7676
|
-
|
7677
|
-
|
7678
|
-
|
7679
|
-
|
7680
|
-
|
7659
|
+
t && /* @__PURE__ */ C($, { children: [
|
7660
|
+
/* @__PURE__ */ n(
|
7661
|
+
"label",
|
7662
|
+
{
|
7663
|
+
className: `${T || V1 ? "label-floating" : ""} ${r ? "label-disabled" : ""} ${T ? "label-focused" : ""} ${E ? "label-loading" : ""} ${M ? "label-error" : ""}`,
|
7664
|
+
children: d ? `${t}*` : t
|
7665
|
+
}
|
7666
|
+
),
|
7667
|
+
/* @__PURE__ */ n(
|
7668
|
+
"fieldset",
|
7669
|
+
{
|
7670
|
+
className: `${T ? "fieldset-focused" : ""} ${r ? "fieldset-disabled" : ""} ${V1 ? "fieldset-filled" : ""} ${M ? "fieldset-error" : ""}`,
|
7671
|
+
children: /* @__PURE__ */ n("legend", { children: /* @__PURE__ */ n("span", { children: d ? `${t}*` : t }) })
|
7672
|
+
}
|
7673
|
+
)
|
7674
|
+
] })
|
7675
|
+
]
|
7676
|
+
}
|
7677
|
+
),
|
7678
|
+
M && /* @__PURE__ */ C(o1, { justifyContent: "flex-start", gap: 6, children: [
|
7679
|
+
/* @__PURE__ */ n(i1, { name: "attention", color: P.NOTIFICATION_ERROR_DARK }),
|
7680
|
+
typeof M == "string" ? /* @__PURE__ */ n(w3, { color: P.NOTIFICATION_ERROR_DARK, variant: "body4", children: M }) : M
|
7681
|
+
] })
|
7682
|
+
] });
|
7681
7683
|
}
|
7682
7684
|
), v = (i) => typeof i == "string", s1 = () => {
|
7683
7685
|
let i, e;
|
@@ -7727,7 +7729,7 @@ const k3 = ({
|
|
7727
7729
|
} = r1(i, e);
|
7728
7730
|
if (t)
|
7729
7731
|
return t[s];
|
7730
|
-
},
|
7732
|
+
}, R3 = (i, e, t) => {
|
7731
7733
|
const s = u1(i, t);
|
7732
7734
|
return s !== void 0 ? s : u1(e, t);
|
7733
7735
|
}, ie = (i, e, t) => {
|
@@ -7735,7 +7737,7 @@ const k3 = ({
|
|
7735
7737
|
s !== "__proto__" && s !== "constructor" && (s in i ? v(i[s]) || i[s] instanceof String || v(e[s]) || e[s] instanceof String ? t && (i[s] = e[s]) : ie(i[s], e[s], t) : i[s] = e[s]);
|
7736
7738
|
return i;
|
7737
7739
|
}, Q = (i) => i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
7738
|
-
var
|
7740
|
+
var M3 = {
|
7739
7741
|
"&": "&",
|
7740
7742
|
"<": "<",
|
7741
7743
|
">": ">",
|
@@ -7743,7 +7745,7 @@ var R3 = {
|
|
7743
7745
|
"'": "'",
|
7744
7746
|
"/": "/"
|
7745
7747
|
};
|
7746
|
-
const y3 = (i) => v(i) ? i.replace(/[&<>"'\/]/g, (e) =>
|
7748
|
+
const y3 = (i) => v(i) ? i.replace(/[&<>"'\/]/g, (e) => M3[e]) : i;
|
7747
7749
|
class b3 {
|
7748
7750
|
constructor(e) {
|
7749
7751
|
this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
|
@@ -7767,7 +7769,7 @@ const _3 = [" ", ",", "?", "!", ";"], E3 = new b3(20), V3 = (i, e, t) => {
|
|
7767
7769
|
c > 0 && !o.test(i.substring(0, c)) && (l = !0);
|
7768
7770
|
}
|
7769
7771
|
return l;
|
7770
|
-
},
|
7772
|
+
}, M1 = function(i, e) {
|
7771
7773
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ".";
|
7772
7774
|
if (!i) return;
|
7773
7775
|
if (i[e]) return i[e];
|
@@ -7900,7 +7902,7 @@ class D1 extends k1 {
|
|
7900
7902
|
let r;
|
7901
7903
|
e.indexOf(".") > -1 ? r = e.split(".") : (r = [e, t], s && (Array.isArray(s) ? r.push(...s) : v(s) && l ? r.push(...s.split(l)) : r.push(s)));
|
7902
7904
|
const d = u1(this.data, r);
|
7903
|
-
return !d && !t && !s && e.indexOf(".") > -1 && (e = r[0], t = r[1], s = r.slice(2).join(".")), d || !c || !v(s) ? d :
|
7905
|
+
return !d && !t && !s && e.indexOf(".") > -1 && (e = r[0], t = r[1], s = r.slice(2).join(".")), d || !c || !v(s) ? d : M1(this.data && this.data[e] && this.data[e][t], s, l);
|
7904
7906
|
}
|
7905
7907
|
addResource(e, t, s, o) {
|
7906
7908
|
let l = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
@@ -8047,28 +8049,28 @@ class f1 extends k1 {
|
|
8047
8049
|
return o ? (h.res = w, h.usedParams = this.getUsedParamsDetails(t), h) : w;
|
8048
8050
|
}
|
8049
8051
|
if (l) {
|
8050
|
-
const w = Array.isArray(u),
|
8052
|
+
const w = Array.isArray(u), M = w ? [] : {}, N = w ? L : p;
|
8051
8053
|
for (const x in u)
|
8052
8054
|
if (Object.prototype.hasOwnProperty.call(u, x)) {
|
8053
8055
|
const Z = `${N}${l}${x}`;
|
8054
|
-
|
8056
|
+
M[x] = this.translate(Z, {
|
8055
8057
|
...t,
|
8056
8058
|
joinArrays: !1,
|
8057
8059
|
ns: r
|
8058
|
-
}),
|
8060
|
+
}), M[x] === Z && (M[x] = u[x]);
|
8059
8061
|
}
|
8060
|
-
u =
|
8062
|
+
u = M;
|
8061
8063
|
}
|
8062
8064
|
} else if (b && v(_) && Array.isArray(u))
|
8063
8065
|
u = u.join(_), u && (u = this.extendTranslation(u, e, t, s));
|
8064
8066
|
else {
|
8065
|
-
let w = !1,
|
8067
|
+
let w = !1, M = !1;
|
8066
8068
|
const N = t.count !== void 0 && !v(t.count), x = f1.hasDefaultValue(t), Z = N ? this.pluralResolver.getSuffix(g, t.count, t) : "", T = t.ordinal && N ? this.pluralResolver.getSuffix(g, t.count, {
|
8067
8069
|
ordinal: !1
|
8068
8070
|
}) : "", t1 = N && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), F = t1 && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${Z}`] || t[`defaultValue${T}`] || t.defaultValue;
|
8069
|
-
!this.isValidLookup(u) && x && (w = !0, u = F), this.isValidLookup(u) || (
|
8070
|
-
const H = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) &&
|
8071
|
-
if (
|
8071
|
+
!this.isValidLookup(u) && x && (w = !0, u = F), this.isValidLookup(u) || (M = !0, u = c);
|
8072
|
+
const H = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && M ? void 0 : u, G = x && F !== u && this.options.updateMissing;
|
8073
|
+
if (M || w || G) {
|
8072
8074
|
if (this.logger.log(G ? "updateKey" : "missingKey", g, d, c, G ? F : u), l) {
|
8073
8075
|
const O = this.resolve(c, {
|
8074
8076
|
...t,
|
@@ -8093,7 +8095,7 @@ class f1 extends k1 {
|
|
8093
8095
|
});
|
8094
8096
|
}) : c1(Y, c, F));
|
8095
8097
|
}
|
8096
|
-
u = this.extendTranslation(u, e, t, h, s),
|
8098
|
+
u = this.extendTranslation(u, e, t, h, s), M && u === c && this.options.appendNamespaceToMissingKey && (u = `${d}:${c}`), (M || w) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? u = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${d}:${c}` : c, w ? u : void 0) : u = this.options.parseMissingKeyHandler(u));
|
8097
8099
|
}
|
8098
8100
|
return o ? (h.res = u, h.usedParams = this.getUsedParamsDetails(t), h) : u;
|
8099
8101
|
}
|
@@ -8162,10 +8164,10 @@ class f1 extends k1 {
|
|
8162
8164
|
else {
|
8163
8165
|
let w;
|
8164
8166
|
u && (w = this.pluralResolver.getSuffix(_, t.count, t));
|
8165
|
-
const
|
8166
|
-
if (u && (b.push(a + w), t.ordinal && w.indexOf(N) === 0 && b.push(a + w.replace(N, this.options.pluralSeparator)), p && b.push(a +
|
8167
|
+
const M = `${this.options.pluralSeparator}zero`, N = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
8168
|
+
if (u && (b.push(a + w), t.ordinal && w.indexOf(N) === 0 && b.push(a + w.replace(N, this.options.pluralSeparator)), p && b.push(a + M)), L) {
|
8167
8169
|
const x = `${a}${this.options.contextSeparator}${t.context}`;
|
8168
|
-
b.push(x), u && (b.push(x + w), t.ordinal && w.indexOf(N) === 0 && b.push(x + w.replace(N, this.options.pluralSeparator)), p && b.push(x +
|
8170
|
+
b.push(x), u && (b.push(x + w), t.ordinal && w.indexOf(N) === 0 && b.push(x + w.replace(N, this.options.pluralSeparator)), p && b.push(x + M));
|
8169
8171
|
}
|
8170
8172
|
}
|
8171
8173
|
let E;
|
@@ -8477,8 +8479,8 @@ class Z3 {
|
|
8477
8479
|
}
|
8478
8480
|
}
|
8479
8481
|
const P1 = function(i, e, t) {
|
8480
|
-
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", o = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, l =
|
8481
|
-
return !l && o && v(t) && (l =
|
8482
|
+
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", o = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, l = R3(i, e, t);
|
8483
|
+
return !l && o && v(t) && (l = M1(i, t, s), l === void 0 && (l = M1(e, t, s))), l;
|
8482
8484
|
}, x1 = (i) => i.replace(/\$/g, "$$$$");
|
8483
8485
|
class W3 {
|
8484
8486
|
constructor() {
|
@@ -9290,8 +9292,8 @@ const n0 = (i, e) => {
|
|
9290
9292
|
} = J(s0) || {}, l = t || s || t0();
|
9291
9293
|
if (l && !l.reportNamespaces && (l.reportNamespaces = new o0()), !l) {
|
9292
9294
|
y1("You will need to pass in an i18next instance by using initReactI18next");
|
9293
|
-
const w = (N, x) => z(x) ? x : $3(x) && z(x.defaultValue) ? x.defaultValue : Array.isArray(N) ? N[N.length - 1] : N,
|
9294
|
-
return
|
9295
|
+
const w = (N, x) => z(x) ? x : $3(x) && z(x.defaultValue) ? x.defaultValue : Array.isArray(N) ? N[N.length - 1] : N, M = [w, {}, !1];
|
9296
|
+
return M.t = w, M.i18n = {}, M.ready = !1, M;
|
9295
9297
|
}
|
9296
9298
|
l.options.react && l.options.react.wait !== void 0 && y1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
|
9297
9299
|
const c = {
|
@@ -9311,7 +9313,7 @@ const n0 = (i, e) => {
|
|
9311
9313
|
A(() => {
|
9312
9314
|
const {
|
9313
9315
|
bindI18n: w,
|
9314
|
-
bindI18nStore:
|
9316
|
+
bindI18nStore: M
|
9315
9317
|
} = c;
|
9316
9318
|
b.current = !0, !a && !r && (e.lng ? z1(l, e.lng, g, () => {
|
9317
9319
|
b.current && y(p);
|
@@ -9321,8 +9323,8 @@ const n0 = (i, e) => {
|
|
9321
9323
|
const N = () => {
|
9322
9324
|
b.current && y(p);
|
9323
9325
|
};
|
9324
|
-
return w && l && l.on(w, N),
|
9325
|
-
b.current = !1, w && l && w.split(" ").forEach((x) => l.off(x, N)),
|
9326
|
+
return w && l && l.on(w, N), M && l && l.store.on(M, N), () => {
|
9327
|
+
b.current = !1, w && l && w.split(" ").forEach((x) => l.off(x, N)), M && l && M.split(" ").forEach((x) => l.store.off(x, N));
|
9326
9328
|
};
|
9327
9329
|
}, [l, f]), A(() => {
|
9328
9330
|
b.current && a && y(u);
|
@@ -9401,7 +9403,7 @@ const k0 = m1(
|
|
9401
9403
|
}));
|
9402
9404
|
u(N);
|
9403
9405
|
}, [p]);
|
9404
|
-
const
|
9406
|
+
const M = (N) => {
|
9405
9407
|
N === null ? (s(""), t && t("")) : (s(N), t && t(""));
|
9406
9408
|
};
|
9407
9409
|
return /* @__PURE__ */ n("div", { className: "snmt-country-select", children: /* @__PURE__ */ n(
|
@@ -9412,7 +9414,7 @@ const k0 = m1(
|
|
9412
9414
|
placeholder: E("placeholder"),
|
9413
9415
|
value: o,
|
9414
9416
|
ref: a,
|
9415
|
-
onChange:
|
9417
|
+
onChange: M,
|
9416
9418
|
options: h,
|
9417
9419
|
disabled: c,
|
9418
9420
|
isLoading: y,
|
package/dist/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import"https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap";.snmt-flex.inherit{flex-wrap:inherit}.snmt-avatar.ant-avatar{border:0;background-color:var(--grey-dark-5);color:var(--grey-light-0);font-family:Montserrat,sans-serif}.snmt-avatar.image.ant-avatar{background-color:transparent}.snmt-checkbox .ant-checkbox-indeterminate .ant-checkbox-inner:after{height:2px;background-color:var(--grey-light-0)}.snmt-checkbox .ant-checkbox+span{padding-inline-start:12px;padding-inline-end:unset;font-family:Montserrat,sans-serif;font-size:14px;font-weight:500;line-height:20px;letter-spacing:0;text-align:left}:not(.ant-checkbox-indeterminate).ant-checkbox-checked .ant-checkbox-inner:after{transform:rotate(45deg) scale(1) translate(-40%,-60%)}.ant-checkbox-inner{width:20px!important;height:20px!important}.ant-checkbox-checked .ant-checkbox-inner,.snmt-checkbox-light.ant-checkbox-checked .ant-checkbox-inner:hover{background-color:var(--blue-primary);border-color:var(--blue-primary)}.snmt-checkbox-light:not(.ant-checkbox-checked):hover .ant-checkbox-inner{border:1px solid var(--grey-dark-1)}.snmt-checkbox-light+span{color:var(--grey-light-0)}.snmt-checkbox-dark .ant-checkbox:not(.ant-checkbox-checked) .ant-checkbox-inner{background-color:var(--grey-dark-4);border:1px solid var(--grey-dark-4)}.snmt-checkbox-dark .ant-checkbox:not(.ant-checkbox-checked):hover .ant-checkbox-inner{background-color:var(--grey-dark-3);border:1px solid var(--grey-dark-3)}.snmt-checkbox-dark .ant-checkbox+span{color:var(--grey-light-0)}.snmt-tag{display:flex;align-items:center;justify-content:center;border-radius:4px;border:none;margin-inline-end:0;padding:2px 6px;height:20px;background:var(--grey-light-2)}.snmt-tag .ant-tag-close-icon{display:flex;align-items:center;margin-inline-start:6px}.snmt-tag:not(.disabled) .ant-tag-close-icon:hover>path{fill:var(--blue-primary);transition:fill .2s ease-in-out}.snmt-tag.medium{padding:4px 8px;height:28px}.snmt-tag.medium .ant-tag-close-icon{margin-inline-start:7.75px}.snmt-tag.disabled{background:var(--grey-light-3)}.clickable{cursor:pointer}:root{--grey-light-0: #ffffff;--grey-light-1: #fbfbfb;--grey-light-2: #f4f4f5;--grey-light-3: #e6e6e9;--grey-light-4: #d0d0d7;--grey-dark-1: #babac4;--grey-dark-2: #8b8b9d;--grey-dark-3: #6f6f83;--grey-dark-4: #35353f;--grey-dark-5: #131314;--blue-primary: #004ed7;--blue-hover: #003899;--blue-light-1: #ebf2ff;--blue-light-2: #deeaff;--blue-light-3: #c3d9ff;--blue-light-4: #a5c6ff;--blue-dark-1: #498bff;--purple-light: #f2e5ff;--purple-dark: #6900d1;--notification-warning-light: #fff4e8;--notification-warning-dark: #d17100;--notification-success-light: #e0ffdb;--notification-success-dark: #0f6e00;--notification-error-light: #ffecec;--notification-error-dark: #d20000;--notification-error-dark-mode: #e50f00}html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.snmt-typography.ant-typography{color:var(--blue-dark-3);font-family:Montserrat,sans-serif;font-style:normal;font-feature-settings:"clig" off,"liga" off;line-height:normal;margin:0!important}.snmt-typography.snmt-typography-h1{font-size:29px;font-weight:700;line-height:110%}.snmt-typography.snmt-typography-h2{font-size:25px;font-weight:600;line-height:120%}.snmt-typography.snmt-typography-h3{font-size:21px;font-weight:600;line-height:116%}.snmt-typography.snmt-typography-h4{font-size:19px;font-weight:600;line-height:124%}.snmt-typography.snmt-typography-h5{font-size:16px;font-weight:600;line-height:124%}.snmt-typography.snmt-typography-body1{font-size:16px;font-weight:500;line-height:144%}.snmt-typography.snmt-typography-body2{font-size:14px;font-weight:500;line-height:144%}.snmt-typography.snmt-typography-body3{font-size:12px;font-weight:600;line-height:120%}.snmt-typography.snmt-typography-body4{font-size:12px;font-weight:500;line-height:120%}.snmt-typography.snmt-typography-caption{font-size:10px;font-weight:500;line-height:120%}.snmt-typography.snmt-typography-button{font-size:14px;font-weight:600;line-height:116%}.snmt-typography.snmt-typography-tag{font-size:9px;font-weight:500;line-height:116%}.snmt-typography.snmt-typography-link{font-size:16px;font-weight:500;line-height:120%;text-decoration:underline;cursor:pointer}.snmt-typography.snmt-typography-align-center{text-align:center}.snmt-typography.snmt-typography-align-justify{text-align:justify}.snmt-typography.snmt-typography-align-left{text-align:left}.snmt-typography.snmt-typography-align-right{text-align:right}.snmt-typography.collapsed{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.snmt-popover:has(.snmt-popover-from-select){z-index:1050!important}.ant-select-selection-overflow>:nth-last-child(2) .snmt-tag{font-family:Montserrat,sans-serif}.ant-select-selection-overflow>:nth-last-child(2):hover .snmt-tag{background:var(--blue-light-1)}.ant-select-selection-overflow>:nth-last-child(2) .snmt-tag:has(.ant-popover-open){color:var(--blue-primary);background:var(--blue-light-2)}.snmt-popover .ant-popover-inner{padding:0}.snmt-popover.padding .ant-popover-inner{padding:16px}.wrapper{cursor:pointer}.snmt-select-1-15-6{width:100%;position:relative;height:48px;font-family:Montserrat,sans-serif;font-weight:500}.snmt-select-1-15-6 .snmt-select-blank .ant-select-selector{border:none!important}.snmt-select-1-15-6 .ant-select{height:100%;pointer-events:none;width:100%;border-radius:8px}.snmt-select-1-15-6 .ant-select .wrapper-suffix-icon{pointer-events:none;display:flex;align-items:center;gap:10px}.snmt-select-1-15-6 .ant-select-focused .ant-select-selector{box-shadow:none!important}.snmt-select-1-15-6 .ant-select-selector{pointer-events:all;border:1px solid var(--grey-light-4)!important;border-radius:8px!important;height:100%!important;padding:8px 16px!important}.snmt-select-1-15-6 .ant-select-selector:hover{border-color:var(--blue-dark-1)!important}.snmt-select-1-15-6 .ant-select-selection-search{margin-inline-start:0px!important;font-size:16px;font-weight:500}.snmt-select-1-15-6 .ant-select-selection-search input{font-size:16px!important;font-weight:500!important;color:var(--grey-dark-5)!important}.snmt-select-1-15-6 .ant-select-arrow div{pointer-events:all;position:relative;z-index:10}.snmt-select-1-15-6 .ant-select-selection-overflow-item-rest .ant-tag-close-icon{display:none}.snmt-select-1-15-6 .ant-select-disabled .snmt-select-1-15-6 .ant-select-arrow div{pointer-events:none!important;cursor:not-allowed!important}.snmt-select-1-15-6.snmt-select-single .ant-select-selection-item{font-family:Montserrat,sans-serif;font-weight:500;color:var(--grey-dark-5);font-size:16px}.snmt-select-1-15-6.snmt-select-single .ant-select-selection-item img{display:none}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selector{padding:9px 48px 9px 16px!important}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-item{background-color:var(--grey-light-2)}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-item-content{font-family:Montserrat,sans-serif;color:var(--grey-dark-5);font-weight:500;font-size:12px;margin-inline-end:6px}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-item-content img{display:none}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow-item .tag-wrapper{margin:0 3px}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow-item-rest .ant-select-selection-item{margin-inline-start:3px;margin-inline-end:0;margin-block:0;padding-inline-start:0;padding-inline-end:0;height:22px;background:transparent}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow-item-rest .ant-select-selection-item-content{margin:0}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow-item:first-of-type .tag-wrapper{margin-left:0;margin-right:3px}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow .custom-placeholder{position:absolute;top:50%;transform:translateY(-50%);transition:all .3s;font-size:16px;font-weight:500;color:var(--grey-dark-2);font-family:Montserrat,sans-serif;text-align:left}.snmt-select-1-15-6 .ant-select-open .ant-select-selector{box-shadow:none!important;border-color:var(--blue-primary)!important}.snmt-select-1-15-6 .select-arrow{transition:transform .3s ease;position:relative;z-index:2}.snmt-select-1-15-6 .select-arrow-rotated{transition:transform .3s ease;transform:rotate(180deg)}.snmt-select-1-15-6>label{position:absolute;top:calc(50% - 10px);left:18px;width:calc(100% - 32px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;font-size:16px;font-style:normal;font-weight:500;line-height:normal;-webkit-user-select:none;user-select:none;pointer-events:none;color:var(--grey-dark-2);transition:top .2s cubic-bezier(0,0,.2,1) 0ms,font-size .2s cubic-bezier(0,0,.2,1) 0ms}.snmt-select-1-15-6>label.label-floating{top:-7px;font-size:12px}.snmt-select-1-15-6>label.label-disabled{color:var(--grey-dark-1)}.snmt-select-1-15-6>label.label-loading{padding-left:30px}.snmt-select-1-15-6>label.label-loading.label-floating{padding-left:0}.snmt-select-1-15-6 fieldset{position:absolute;min-width:0;margin:0;padding:0 11px;top:-6px;right:0;bottom:0;left:0;border:1px solid var(--grey-light-4);border-radius:8px;text-align:left;pointer-events:none}.snmt-select-1-15-6 fieldset>legend{max-width:0;height:14px;padding:0;font-size:12px}.snmt-select-1-15-6 fieldset>legend>span{opacity:0!important;padding:0 5px;pointer-events:none;-webkit-user-select:none;user-select:none}.snmt-select-1-15-6 fieldset.fieldset-focused>legend,.snmt-select-1-15-6 fieldset.fieldset-filled>legend,.snmt-select-1-15-6 fieldset.fieldset-disabled>legend{max-width:100%}.snmt-select-1-15-6 fieldset.fieldset-focused{border-color:var(--blue-primary);border-width:2px;color:var(--blue-primary)}.snmt-select-1-15-6 fieldset.fieldset-disabled{border:none;color:var(--grey-dark-1)}.snmt-select-1-15-6 fieldset.fieldset-disabled:not(.fieldset-filled){display:none}.snmt-select-1-15-6 fieldset.fieldset-filled{border-color:var(--grey-light-4);color:var(--grey-dark-2)}.snmt-select-1-15-6 fieldset.fieldset-filled.fieldset-disabled{color:var(--grey-dark-1)}.snmt-select-1-15-6 fieldset.fieldset-error,.snmt-select-1-15-6 fieldset.fieldset-focused.fieldset-error{border-color:var(--notification-error-dark)}.snmt-select-1-15-6:hover:not(.snmt-select-read-only) fieldset:not(.fieldset-disabled):not(.fieldset-error):not(.fieldset-focused){border-color:var(--blue-dark-1)}.snmt-select-1-15-6:hover:not(.snmt-select-read-only)>label.label-floating:not(.label-disabled):not(.label-focused):not(.label-error){color:var(--blue-dark-1)}.snmt-select-1-15-6.snmt-select-read-only .ant-select-selector{background-color:var(--grey-light-2);cursor:not-allowed;pointer-events:none!important}.snmt-select-1-15-6.snmt-select-read-only .ant-select-arrow{pointer-events:all!important;cursor:pointer}.snmt-select-1-15-6.snmt-select-read-only .ant-select{pointer-events:auto!important}.snmt-select-1-15-6.snmt-select-focused fieldset.fieldset-focused:not(.fieldset-disabled):not(.fieldset-error){border-color:var(--blue-primary);border-width:2px}.snmt-select-1-15-6.snmt-select-focused>label.label-floating:not(.label-disabled){color:var(--blue-primary)}.snmt-select-1-15-6>.snmt-flex{margin-top:6px}.snmt-select-1-15-6>label.label-floating.label-error:not(.label-disabled){color:var(--notification-error-dark)}.ant-select-dropdown{padding:0}.ant-select-dropdown .ant-select-item{border-radius:0}.ant-select-dropdown .ant-select-item-option{padding:14px 16px}.ant-select-dropdown .ant-select-item-option-state{display:none}.ant-select-dropdown .ant-select-item-option-active{background-color:var(--blue-light-1)!important}.ant-select-dropdown .ant-select-item-option-disabled .ant-select-item-option-content span{color:var(--grey-light-4)!important}.ant-select-dropdown .ant-select-item-option-disabled .ant-select-item-option-content img{filter:opacity(.5)}.ant-select-dropdown .ant-select-item-option-content span{font-family:Montserrat,sans-serif;color:var(--grey-dark-5);font-weight:500}.ant-select-dropdown .ant-select-item-option-selected:not(.ant-select-item-option-disabled){background-color:transparent}.ant-select-dropdown .ant-select-item-option-selected:not(.ant-select-item-option-disabled) .ant-select-item-option-content span{font-weight:500!important}.ant-select-dropdown .ant-select-outlined.ant-select-disabled:not(.ant-select-customize-input) .ant-select-selector{background:var(--grey-light-2);border:none!important}.ant-select-dropdown .ant-select-outlined.ant-select-disabled:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-item{color:var(--grey-dark-1)!important}.ant-select-dropdown .rc-virtual-list-holder{overflow-y:auto!important}.ant-select-dropdown .rc-virtual-list-holder::-webkit-scrollbar{width:6px}.ant-select-dropdown .rc-virtual-list-holder::-webkit-scrollbar-thumb{background:var(--grey-light-4);border-radius:10px}.ant-select-dropdown .rc-virtual-list-scrollbar-vertical{visibility:hidden!important}.dropdown-read-only .rc-virtual-list{pointer-events:none}.dropdown-container{position:relative;display:block}.dropdown-container .dropdown-menu{position:relative;z-index:0}.dropdown-container .loading-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:10;background:var(--grey-light-1);opacity:.9;display:flex;align-items:center;justify-content:center;pointer-events:none}.snmt-loader{display:inline-block;aspect-ratio:1;animation:loader 1s infinite linear}@keyframes loader{33%{background-position:0% 50%,50% 100%,100% 100%}50%{background-position:0% 0%,50% 50%,100% 100%}66%{background-position:0% 0%,50% 0%,100% 50%}to{background-position:0% 0%,50% 0%,100% 0%}}
|
1
|
+
@import"https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap";.snmt-flex.inherit{flex-wrap:inherit}.snmt-avatar.ant-avatar{border:0;background-color:var(--grey-dark-5);color:var(--grey-light-0);font-family:Montserrat,sans-serif}.snmt-avatar.image.ant-avatar{background-color:transparent}.snmt-checkbox .ant-checkbox-indeterminate .ant-checkbox-inner:after{height:2px;background-color:var(--grey-light-0)}.snmt-checkbox .ant-checkbox+span{padding-inline-start:12px;padding-inline-end:unset;font-family:Montserrat,sans-serif;font-size:14px;font-weight:500;line-height:20px;letter-spacing:0;text-align:left}:not(.ant-checkbox-indeterminate).ant-checkbox-checked .ant-checkbox-inner:after{transform:rotate(45deg) scale(1) translate(-40%,-60%)}.ant-checkbox-inner{width:20px!important;height:20px!important}.ant-checkbox-checked .ant-checkbox-inner,.snmt-checkbox-light.ant-checkbox-checked .ant-checkbox-inner:hover{background-color:var(--blue-primary);border-color:var(--blue-primary)}.snmt-checkbox-light:not(.ant-checkbox-checked):hover .ant-checkbox-inner{border:1px solid var(--grey-dark-1)}.snmt-checkbox-light+span{color:var(--grey-light-0)}.snmt-checkbox-dark .ant-checkbox:not(.ant-checkbox-checked) .ant-checkbox-inner{background-color:var(--grey-dark-4);border:1px solid var(--grey-dark-4)}.snmt-checkbox-dark .ant-checkbox:not(.ant-checkbox-checked):hover .ant-checkbox-inner{background-color:var(--grey-dark-3);border:1px solid var(--grey-dark-3)}.snmt-checkbox-dark .ant-checkbox+span{color:var(--grey-light-0)}.snmt-tag{display:flex;align-items:center;justify-content:center;border-radius:4px;border:none;margin-inline-end:0;padding:2px 6px;height:20px;background:var(--grey-light-2)}.snmt-tag .ant-tag-close-icon{display:flex;align-items:center;margin-inline-start:6px}.snmt-tag:not(.disabled) .ant-tag-close-icon:hover>path{fill:var(--blue-primary);transition:fill .2s ease-in-out}.snmt-tag.medium{padding:4px 8px;height:28px}.snmt-tag.medium .ant-tag-close-icon{margin-inline-start:7.75px}.snmt-tag.disabled{background:var(--grey-light-3)}.clickable{cursor:pointer}:root{--grey-light-0: #ffffff;--grey-light-1: #fbfbfb;--grey-light-2: #f4f4f5;--grey-light-3: #e6e6e9;--grey-light-4: #d0d0d7;--grey-dark-1: #babac4;--grey-dark-2: #8b8b9d;--grey-dark-3: #6f6f83;--grey-dark-4: #35353f;--grey-dark-5: #131314;--blue-primary: #004ed7;--blue-hover: #003899;--blue-light-1: #ebf2ff;--blue-light-2: #deeaff;--blue-light-3: #c3d9ff;--blue-light-4: #a5c6ff;--blue-dark-1: #498bff;--purple-light: #f2e5ff;--purple-dark: #6900d1;--notification-warning-light: #fff4e8;--notification-warning-dark: #d17100;--notification-success-light: #e0ffdb;--notification-success-dark: #0f6e00;--notification-error-light: #ffecec;--notification-error-dark: #d20000;--notification-error-dark-mode: #e50f00}html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.snmt-typography.ant-typography{color:var(--blue-dark-3);font-family:Montserrat,sans-serif;font-style:normal;font-feature-settings:"clig" off,"liga" off;line-height:normal;margin:0!important}.snmt-typography.snmt-typography-h1{font-size:29px;font-weight:700;line-height:110%}.snmt-typography.snmt-typography-h2{font-size:25px;font-weight:600;line-height:120%}.snmt-typography.snmt-typography-h3{font-size:21px;font-weight:600;line-height:116%}.snmt-typography.snmt-typography-h4{font-size:19px;font-weight:600;line-height:124%}.snmt-typography.snmt-typography-h5{font-size:16px;font-weight:600;line-height:124%}.snmt-typography.snmt-typography-body1{font-size:16px;font-weight:500;line-height:144%}.snmt-typography.snmt-typography-body2{font-size:14px;font-weight:500;line-height:144%}.snmt-typography.snmt-typography-body3{font-size:12px;font-weight:600;line-height:120%}.snmt-typography.snmt-typography-body4{font-size:12px;font-weight:500;line-height:120%}.snmt-typography.snmt-typography-caption{font-size:10px;font-weight:500;line-height:120%}.snmt-typography.snmt-typography-button{font-size:14px;font-weight:600;line-height:116%}.snmt-typography.snmt-typography-tag{font-size:9px;font-weight:500;line-height:116%}.snmt-typography.snmt-typography-link{font-size:16px;font-weight:500;line-height:120%;text-decoration:underline;cursor:pointer}.snmt-typography.snmt-typography-align-center{text-align:center}.snmt-typography.snmt-typography-align-justify{text-align:justify}.snmt-typography.snmt-typography-align-left{text-align:left}.snmt-typography.snmt-typography-align-right{text-align:right}.snmt-typography.collapsed{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.snmt-popover:has(.snmt-popover-from-select){z-index:1050!important}.ant-select-selection-overflow>:nth-last-child(2) .snmt-tag{font-family:Montserrat,sans-serif}.ant-select-selection-overflow>:nth-last-child(2):hover .snmt-tag{background:var(--blue-light-1)}.ant-select-selection-overflow>:nth-last-child(2) .snmt-tag:has(.ant-popover-open){color:var(--blue-primary);background:var(--blue-light-2)}.snmt-popover .ant-popover-inner{padding:0}.snmt-popover.padding .ant-popover-inner{padding:16px}.wrapper{cursor:pointer}.snmt-select-1-15-6{width:100%;position:relative;height:48px;font-family:Montserrat,sans-serif;font-weight:500}.snmt-select-1-15-6 .snmt-select-blank .ant-select-selector{border:none!important}.snmt-select-1-15-6 .ant-select{height:100%;pointer-events:none;width:100%;border-radius:8px}.snmt-select-1-15-6 .ant-select .wrapper-suffix-icon{pointer-events:none;display:flex;align-items:center;gap:10px}.snmt-select-1-15-6 .ant-select-focused .ant-select-selector{box-shadow:none!important}.snmt-select-1-15-6 .ant-select-selector{pointer-events:all;border:1px solid var(--grey-light-4)!important;border-radius:8px!important;height:100%!important;padding:8px 16px!important}.snmt-select-1-15-6 .ant-select-selector:hover{border-color:var(--blue-dark-1)!important}.snmt-select-1-15-6 .ant-select-selection-search{margin-inline-start:0px!important;font-size:16px;font-weight:500}.snmt-select-1-15-6 .ant-select-selection-search input{font-size:16px!important;font-weight:500!important;color:var(--grey-dark-5)!important}.snmt-select-1-15-6 .ant-select-arrow div{pointer-events:all;position:relative;z-index:10}.snmt-select-1-15-6 .ant-select-selection-overflow-item-rest .ant-tag-close-icon{display:none}.snmt-select-1-15-6 .ant-select-disabled .snmt-select-1-15-6 .ant-select-arrow div{pointer-events:none!important;cursor:not-allowed!important}.snmt-select-1-15-6.snmt-select-single .ant-select-selection-item{font-family:Montserrat,sans-serif;font-weight:500;color:var(--grey-dark-5);font-size:16px}.snmt-select-1-15-6.snmt-select-single .ant-select-selection-item img{display:none}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selector{padding:9px 48px 9px 16px!important}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-item{background-color:var(--grey-light-2)}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-item-content{font-family:Montserrat,sans-serif;color:var(--grey-dark-5);font-weight:500;font-size:12px;margin-inline-end:6px}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-item-content img{display:none}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow-item .tag-wrapper{margin:0 3px}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow-item-rest .ant-select-selection-item{margin-inline-start:3px;margin-inline-end:0;margin-block:0;padding-inline-start:0;padding-inline-end:0;height:22px;background:transparent}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow-item-rest .ant-select-selection-item-content{margin:0}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow-item:first-of-type .tag-wrapper{margin-left:0;margin-right:3px}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow .custom-placeholder{position:absolute;top:50%;transform:translateY(-50%);transition:all .3s;font-size:16px;font-weight:500;color:var(--grey-dark-2);font-family:Montserrat,sans-serif;text-align:left}.snmt-select-1-15-6 .ant-select-open .ant-select-selector{box-shadow:none!important;border-color:var(--blue-primary)!important}.snmt-select-1-15-6 .select-arrow{transition:transform .3s ease;position:relative;z-index:2}.snmt-select-1-15-6 .select-arrow-rotated{transition:transform .3s ease;transform:rotate(180deg)}.snmt-select-1-15-6>label{position:absolute;top:calc(50% - 10px);left:18px;width:calc(100% - 32px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;font-size:16px;font-style:normal;font-weight:500;line-height:normal;-webkit-user-select:none;user-select:none;pointer-events:none;color:var(--grey-dark-2);transition:top .2s cubic-bezier(0,0,.2,1) 0ms,font-size .2s cubic-bezier(0,0,.2,1) 0ms}.snmt-select-1-15-6>label.label-floating{top:-7px;font-size:12px}.snmt-select-1-15-6>label.label-disabled{color:var(--grey-dark-1)}.snmt-select-1-15-6>label.label-loading{padding-left:30px}.snmt-select-1-15-6>label.label-loading.label-floating{padding-left:0}.snmt-select-1-15-6 fieldset{position:absolute;min-width:0;margin:0;padding:0 11px;top:-6px;right:0;bottom:0;left:0;border:1px solid var(--grey-light-4);border-radius:8px;text-align:left;pointer-events:none}.snmt-select-1-15-6 fieldset>legend{max-width:0;height:14px;padding:0;font-size:12px}.snmt-select-1-15-6 fieldset>legend>span{opacity:0!important;padding:0 5px;pointer-events:none;-webkit-user-select:none;user-select:none}.snmt-select-1-15-6 fieldset.fieldset-focused>legend,.snmt-select-1-15-6 fieldset.fieldset-filled>legend,.snmt-select-1-15-6 fieldset.fieldset-disabled>legend{max-width:100%}.snmt-select-1-15-6 fieldset.fieldset-focused{border-color:var(--blue-primary);border-width:2px;color:var(--blue-primary)}.snmt-select-1-15-6 fieldset.fieldset-disabled{border:none;color:var(--grey-dark-1)}.snmt-select-1-15-6 fieldset.fieldset-disabled:not(.fieldset-filled){display:none}.snmt-select-1-15-6 fieldset.fieldset-filled{border-color:var(--grey-light-4);color:var(--grey-dark-2)}.snmt-select-1-15-6 fieldset.fieldset-filled.fieldset-disabled{color:var(--grey-dark-1)}.snmt-select-1-15-6 fieldset.fieldset-error,.snmt-select-1-15-6 fieldset.fieldset-focused.fieldset-error{border-color:var(--notification-error-dark)}.snmt-select-1-15-6:hover:not(.snmt-select-read-only) fieldset:not(.fieldset-disabled):not(.fieldset-error):not(.fieldset-focused){border-color:var(--blue-dark-1)}.snmt-select-1-15-6:hover:not(.snmt-select-read-only)>label.label-floating:not(.label-disabled):not(.label-focused):not(.label-error){color:var(--blue-dark-1)}.snmt-select-1-15-6.snmt-select-read-only .ant-select-selector{background-color:var(--grey-light-2);cursor:not-allowed;pointer-events:none!important}.snmt-select-1-15-6.snmt-select-read-only .ant-select-arrow{pointer-events:all!important;cursor:pointer}.snmt-select-1-15-6.snmt-select-read-only .ant-select{pointer-events:auto!important}.snmt-select-1-15-6.snmt-select-focused fieldset.fieldset-focused:not(.fieldset-disabled):not(.fieldset-error){border-color:var(--blue-primary);border-width:2px}.snmt-select-1-15-6.snmt-select-focused>label.label-floating:not(.label-disabled){color:var(--blue-primary)}.snmt-select-1-15-6>label.label-floating.label-error:not(.label-disabled){color:var(--notification-error-dark)}.ant-select-dropdown{padding:0}.ant-select-dropdown .ant-select-item{border-radius:0}.ant-select-dropdown .ant-select-item-option{padding:14px 16px}.ant-select-dropdown .ant-select-item-option-state{display:none}.ant-select-dropdown .ant-select-item-option-active{background-color:var(--blue-light-1)!important}.ant-select-dropdown .ant-select-item-option-disabled .ant-select-item-option-content span{color:var(--grey-light-4)!important}.ant-select-dropdown .ant-select-item-option-disabled .ant-select-item-option-content img{filter:opacity(.5)}.ant-select-dropdown .ant-select-item-option-content span{font-family:Montserrat,sans-serif;color:var(--grey-dark-5);font-weight:500}.ant-select-dropdown .ant-select-item-option-selected:not(.ant-select-item-option-disabled){background-color:transparent}.ant-select-dropdown .ant-select-item-option-selected:not(.ant-select-item-option-disabled) .ant-select-item-option-content span{font-weight:500!important}.ant-select-dropdown .ant-select-outlined.ant-select-disabled:not(.ant-select-customize-input) .ant-select-selector{background:var(--grey-light-2);border:none!important}.ant-select-dropdown .ant-select-outlined.ant-select-disabled:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-item{color:var(--grey-dark-1)!important}.ant-select-dropdown .rc-virtual-list-holder{overflow-y:auto!important}.ant-select-dropdown .rc-virtual-list-holder::-webkit-scrollbar{width:6px}.ant-select-dropdown .rc-virtual-list-holder::-webkit-scrollbar-thumb{background:var(--grey-light-4);border-radius:10px}.ant-select-dropdown .rc-virtual-list-scrollbar-vertical{visibility:hidden!important}.dropdown-read-only .rc-virtual-list{pointer-events:none}.dropdown-container{position:relative;display:block}.dropdown-container .dropdown-menu{position:relative;z-index:0}.dropdown-container .loading-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:10;background:var(--grey-light-1);opacity:.9;display:flex;align-items:center;justify-content:center;pointer-events:none}.snmt-select-container .snmt-flex{margin-top:6px}.snmt-loader{display:inline-block;aspect-ratio:1;animation:loader 1s infinite linear}@keyframes loader{33%{background-position:0% 50%,50% 100%,100% 100%}50%{background-position:0% 0%,50% 50%,100% 100%}66%{background-position:0% 0%,50% 0%,100% 50%}to{background-position:0% 0%,50% 0%,100% 0%}}
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@snmt-react-ui/country-select",
|
3
3
|
"private": false,
|
4
|
-
"version": "2.
|
4
|
+
"version": "2.6.1",
|
5
5
|
"type": "module",
|
6
6
|
"main": "dist/country-select.js",
|
7
7
|
"types": "dist/index.d.ts",
|
@@ -18,7 +18,7 @@
|
|
18
18
|
"build": "tsc && vite build"
|
19
19
|
},
|
20
20
|
"dependencies": {
|
21
|
-
"@snmt-react-ui/city-select": "^2.
|
21
|
+
"@snmt-react-ui/city-select": "^2.6.1",
|
22
22
|
"@snmt-react-ui/core": "^2.2.0",
|
23
23
|
"@snmt-react-ui/flex": "^1.5.1",
|
24
24
|
"i18next": "^23.11.5",
|
@@ -27,5 +27,5 @@
|
|
27
27
|
"peerDependencies": {
|
28
28
|
"antd": "^5.18.3"
|
29
29
|
},
|
30
|
-
"gitHead": "
|
30
|
+
"gitHead": "6dbd975528d375edce7e731b5a16372d9e5a5bae"
|
31
31
|
}
|