@snmt-react-ui/country-select 2.3.0 → 2.3.2
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 +55 -55
- package/dist/index.css +1 -1
- package/package.json +3 -3
package/dist/country-select.js
CHANGED
@@ -6784,10 +6784,10 @@ const F1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: o
|
|
6784
6784
|
extraOptions: v,
|
6785
6785
|
dropdownRender: N,
|
6786
6786
|
optionRender: E,
|
6787
|
-
isLoading:
|
6788
|
-
readOnly:
|
6787
|
+
isLoading: R,
|
6788
|
+
readOnly: M
|
6789
6789
|
}, m) => {
|
6790
|
-
const [x, b] = S(!1), [
|
6790
|
+
const [x, b] = S(!1), [y, D] = S(!1), [i1, P] = S(!0), [V, s1] = S(i), o1 = N1(null);
|
6791
6791
|
A(() => {
|
6792
6792
|
s1(i);
|
6793
6793
|
}, [i]);
|
@@ -6812,14 +6812,14 @@ const F1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: o
|
|
6812
6812
|
},
|
6813
6813
|
[s, e]
|
6814
6814
|
), j = Z(() => {
|
6815
|
-
if (!
|
6815
|
+
if (!M) {
|
6816
6816
|
if (s) {
|
6817
6817
|
H([]);
|
6818
6818
|
return;
|
6819
6819
|
}
|
6820
6820
|
H("");
|
6821
6821
|
}
|
6822
|
-
}, [H, s,
|
6822
|
+
}, [H, s, M]), B = Z(
|
6823
6823
|
(f) => {
|
6824
6824
|
const _ = V.filter((O) => O !== f);
|
6825
6825
|
H(_), s1(_);
|
@@ -6854,13 +6854,13 @@ const F1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: o
|
|
6854
6854
|
values: f,
|
6855
6855
|
onTagClose: B,
|
6856
6856
|
maxWidth: ((_ = o1.current) == null ? void 0 : _.clientWidth) || 0,
|
6857
|
-
disabled: r ||
|
6857
|
+
disabled: r || M,
|
6858
6858
|
options: l,
|
6859
6859
|
extraOptions: v
|
6860
6860
|
}
|
6861
6861
|
);
|
6862
6862
|
},
|
6863
|
-
[r, v, B, l,
|
6863
|
+
[r, v, B, l, M]
|
6864
6864
|
), te = Z(
|
6865
6865
|
({ label: f, value: _, mode: O }) => O === "filter" ? J(_) : /* @__PURE__ */ n("div", { onMouseDown: q1, className: "tag-wrapper", children: /* @__PURE__ */ n(F1, { onClose: () => B(_), closable: !r, children: /* @__PURE__ */ n($1, { variant: "body4", children: typeof f == "object" ? f : p1(_) }) }) }),
|
6866
6866
|
[r, p1, B, J]
|
@@ -6868,8 +6868,8 @@ const F1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: o
|
|
6868
6868
|
return /* @__PURE__ */ u(
|
6869
6869
|
"div",
|
6870
6870
|
{
|
6871
|
-
className: `snmt-select ${
|
6872
|
-
${s ? "" : "snmt-select-single"} ${
|
6871
|
+
className: `snmt-select ${y ? "snmt-select-focused" : ""}
|
6872
|
+
${s ? "" : "snmt-select-single"} ${M ? "snmt-select-read-only" : ""}`,
|
6873
6873
|
ref: o1,
|
6874
6874
|
style: { width: c },
|
6875
6875
|
children: [
|
@@ -6877,7 +6877,7 @@ const F1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: o
|
|
6877
6877
|
ne,
|
6878
6878
|
{
|
6879
6879
|
className: "snmt-select-blank",
|
6880
|
-
popupClassName:
|
6880
|
+
popupClassName: M ? "dropdown-read-only" : "",
|
6881
6881
|
id: w,
|
6882
6882
|
ref: m,
|
6883
6883
|
showSearch: !!o,
|
@@ -6900,7 +6900,7 @@ const F1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: o
|
|
6900
6900
|
maxTagCount: "responsive",
|
6901
6901
|
maxTagPlaceholder: ee,
|
6902
6902
|
onPopupScroll: X1,
|
6903
|
-
prefix: R &&
|
6903
|
+
prefix: R && /* @__PURE__ */ n(R1, { size: 15 }),
|
6904
6904
|
suffixIcon: /* @__PURE__ */ n("div", { className: "wrapper-suffix-icon", children: s !== "filter" && /* @__PURE__ */ u(z, { children: [
|
6905
6905
|
s && V && !!V.length && /* @__PURE__ */ n("div", { onClick: j, children: /* @__PURE__ */ n(r1, { name: "cancel" }) }),
|
6906
6906
|
/* @__PURE__ */ n(
|
@@ -6938,7 +6938,7 @@ const F1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: o
|
|
6938
6938
|
}
|
6939
6939
|
)
|
6940
6940
|
] }),
|
6941
|
-
dropdownRender:
|
6941
|
+
dropdownRender: R ? () => /* @__PURE__ */ n(
|
6942
6942
|
"div",
|
6943
6943
|
{
|
6944
6944
|
style: {
|
@@ -6954,7 +6954,7 @@ const F1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: o
|
|
6954
6954
|
/* @__PURE__ */ n(
|
6955
6955
|
"fieldset",
|
6956
6956
|
{
|
6957
|
-
className: `${
|
6957
|
+
className: `${y ? "fieldset-focused" : ""}
|
6958
6958
|
${r ? "fieldset-disabled" : ""}
|
6959
6959
|
${typeof i == "string" && i ? "fieldset-filled" : ""}
|
6960
6960
|
${typeof i == "object" && i != null && i.length ? "fieldset-filled" : ""}`,
|
@@ -7323,8 +7323,8 @@ class g1 extends C1 {
|
|
7323
7323
|
}
|
7324
7324
|
const h = this.resolve(e, t);
|
7325
7325
|
let C = h && h.res;
|
7326
|
-
const p = h && h.usedKey || c, w = h && h.exactUsedKey || c, v = Object.prototype.toString.apply(C), N = ["[object Number]", "[object Function]", "[object RegExp]"], E = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays,
|
7327
|
-
if (
|
7326
|
+
const p = h && h.usedKey || c, w = h && h.exactUsedKey || c, v = Object.prototype.toString.apply(C), N = ["[object Number]", "[object Function]", "[object RegExp]"], E = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, R = !this.i18nFormat || this.i18nFormat.handleAsObject;
|
7327
|
+
if (R && C && (typeof C != "string" && typeof C != "boolean" && typeof C != "number") && N.indexOf(v) < 0 && !(typeof E == "string" && Array.isArray(C))) {
|
7328
7328
|
if (!t.returnObjects && !this.options.returnObjects) {
|
7329
7329
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
7330
7330
|
const m = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(p, C, {
|
@@ -7335,26 +7335,26 @@ class g1 extends C1 {
|
|
7335
7335
|
}
|
7336
7336
|
if (l) {
|
7337
7337
|
const m = Array.isArray(C), x = m ? [] : {}, b = m ? w : p;
|
7338
|
-
for (const
|
7339
|
-
if (Object.prototype.hasOwnProperty.call(C,
|
7340
|
-
const D = `${b}${l}${
|
7341
|
-
x[
|
7338
|
+
for (const y in C)
|
7339
|
+
if (Object.prototype.hasOwnProperty.call(C, y)) {
|
7340
|
+
const D = `${b}${l}${y}`;
|
7341
|
+
x[y] = this.translate(D, {
|
7342
7342
|
...t,
|
7343
7343
|
joinArrays: !1,
|
7344
7344
|
ns: r
|
7345
|
-
}), x[
|
7345
|
+
}), x[y] === D && (x[y] = C[y]);
|
7346
7346
|
}
|
7347
7347
|
C = x;
|
7348
7348
|
}
|
7349
|
-
} else if (
|
7349
|
+
} else if (R && typeof E == "string" && Array.isArray(C))
|
7350
7350
|
C = C.join(E), C && (C = this.extendTranslation(C, e, t, s));
|
7351
7351
|
else {
|
7352
7352
|
let m = !1, x = !1;
|
7353
|
-
const b = t.count !== void 0 && typeof t.count != "string",
|
7353
|
+
const b = t.count !== void 0 && typeof t.count != "string", y = g1.hasDefaultValue(t), D = b ? this.pluralResolver.getSuffix(g, t.count, t) : "", i1 = t.ordinal && b ? this.pluralResolver.getSuffix(g, t.count, {
|
7354
7354
|
ordinal: !1
|
7355
7355
|
}) : "", P = b && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), V = P && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${D}`] || t[`defaultValue${i1}`] || t.defaultValue;
|
7356
|
-
!this.isValidLookup(C) &&
|
7357
|
-
const o1 = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && x ? void 0 : C, T =
|
7356
|
+
!this.isValidLookup(C) && y && (m = !0, C = V), this.isValidLookup(C) || (x = !0, C = c);
|
7357
|
+
const o1 = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && x ? void 0 : C, T = y && V !== C && this.options.updateMissing;
|
7358
7358
|
if (x || m || T) {
|
7359
7359
|
if (this.logger.log(T ? "updateKey" : "missingKey", g, d, c, T ? V : C), l) {
|
7360
7360
|
const H = this.resolve(c, {
|
@@ -7370,7 +7370,7 @@ class g1 extends C1 {
|
|
7370
7370
|
G.push(F[H]);
|
7371
7371
|
else this.options.saveMissingTo === "all" ? G = this.languageUtils.toResolveHierarchy(t.lng || this.language) : G.push(t.lng || this.language);
|
7372
7372
|
const n1 = (H, j, B) => {
|
7373
|
-
const J =
|
7373
|
+
const J = y && B !== C ? B : o1;
|
7374
7374
|
this.options.missingKeyHandler ? this.options.missingKeyHandler(H, d, j, J, T, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(H, d, j, J, T, t), this.emit("missingKey", H, d, j, C);
|
7375
7375
|
};
|
7376
7376
|
this.options.saveMissing && (this.options.saveMissingPlurals && b ? G.forEach((H) => {
|
@@ -7443,21 +7443,21 @@ class g1 extends C1 {
|
|
7443
7443
|
this.isValidLookup(s) || (r = N, !H1[`${v[0]}-${N}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(r) && (H1[`${v[0]}-${N}`] = !0, this.logger.warn(`key "${o}" for languages "${v.join(", ")}" won't get resolved as namespace "${r}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), v.forEach((E) => {
|
7444
7444
|
if (this.isValidLookup(s)) return;
|
7445
7445
|
c = E;
|
7446
|
-
const
|
7446
|
+
const R = [a];
|
7447
7447
|
if (this.i18nFormat && this.i18nFormat.addLookupKeys)
|
7448
|
-
this.i18nFormat.addLookupKeys(
|
7448
|
+
this.i18nFormat.addLookupKeys(R, a, E, N, t);
|
7449
7449
|
else {
|
7450
7450
|
let m;
|
7451
7451
|
C && (m = this.pluralResolver.getSuffix(E, t.count, t));
|
7452
7452
|
const x = `${this.options.pluralSeparator}zero`, b = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
7453
|
-
if (C && (
|
7454
|
-
const
|
7455
|
-
|
7453
|
+
if (C && (R.push(a + m), t.ordinal && m.indexOf(b) === 0 && R.push(a + m.replace(b, this.options.pluralSeparator)), p && R.push(a + x)), w) {
|
7454
|
+
const y = `${a}${this.options.contextSeparator}${t.context}`;
|
7455
|
+
R.push(y), C && (R.push(y + m), t.ordinal && m.indexOf(b) === 0 && R.push(y + m.replace(b, this.options.pluralSeparator)), p && R.push(y + x));
|
7456
7456
|
}
|
7457
7457
|
}
|
7458
|
-
let
|
7459
|
-
for (;
|
7460
|
-
this.isValidLookup(s) || (l =
|
7458
|
+
let M;
|
7459
|
+
for (; M = R.pop(); )
|
7460
|
+
this.isValidLookup(s) || (l = M, s = this.getResource(E, N, M, t));
|
7461
7461
|
}));
|
7462
7462
|
});
|
7463
7463
|
}), {
|
@@ -7784,9 +7784,9 @@ class Fi {
|
|
7784
7784
|
nestingSuffixEscaped: v,
|
7785
7785
|
nestingOptionsSeparator: N,
|
7786
7786
|
maxReplaces: E,
|
7787
|
-
alwaysFormat:
|
7787
|
+
alwaysFormat: R
|
7788
7788
|
} = e.interpolation;
|
7789
|
-
this.escape = t !== void 0 ? t : Oi, this.escapeValue = s !== void 0 ? s : !0, this.useRawValueToEscape = o !== void 0 ? o : !1, this.prefix = l ? $(l) : c || "{{", this.suffix = r ? $(r) : d || "}}", this.formatSeparator = g || ",", this.unescapePrefix = a ? "" : h || "-", this.unescapeSuffix = this.unescapePrefix ? "" : a || "", this.nestingPrefix = C ? $(C) : p || $("$t("), this.nestingSuffix = w ? $(w) : v || $(")"), this.nestingOptionsSeparator = N || ",", this.maxReplaces = E || 1e3, this.alwaysFormat =
|
7789
|
+
this.escape = t !== void 0 ? t : Oi, this.escapeValue = s !== void 0 ? s : !0, this.useRawValueToEscape = o !== void 0 ? o : !1, this.prefix = l ? $(l) : c || "{{", this.suffix = r ? $(r) : d || "}}", this.formatSeparator = g || ",", this.unescapePrefix = a ? "" : h || "-", this.unescapeSuffix = this.unescapePrefix ? "" : a || "", this.nestingPrefix = C ? $(C) : p || $("$t("), this.nestingSuffix = w ? $(w) : v || $(")"), this.nestingOptionsSeparator = N || ",", this.maxReplaces = E || 1e3, this.alwaysFormat = R !== void 0 ? R : !1, this.resetRegExp();
|
7790
7790
|
}
|
7791
7791
|
reset() {
|
7792
7792
|
this.options && this.init(this.options);
|
@@ -8567,7 +8567,7 @@ const g5 = (i, e) => {
|
|
8567
8567
|
} = t1(c5) || {}, l = t || s || a5();
|
8568
8568
|
if (l && !l.reportNamespaces && (l.reportNamespaces = new d5()), !l) {
|
8569
8569
|
L1("You will need to pass in an i18next instance by using initReactI18next");
|
8570
|
-
const m = (b,
|
8570
|
+
const m = (b, y) => K(y) ? y : e5(y) && K(y.defaultValue) ? y.defaultValue : Array.isArray(b) ? b[b.length - 1] : b, x = [m, {}, !1];
|
8571
8571
|
return x.t = m, x.i18n = {}, x.ready = !1, x;
|
8572
8572
|
}
|
8573
8573
|
l.options.react && l.options.react.wait !== void 0 && L1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
|
@@ -8584,28 +8584,28 @@ const g5 = (i, e) => {
|
|
8584
8584
|
const a = (l.isInitialized || l.initializedStoreOnce) && g.every((m) => Xi(m, l, c)), h = u5(l, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), C = () => h, p = () => Q1(l, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), [w, v] = S(C);
|
8585
8585
|
let N = g.join();
|
8586
8586
|
e.lng && (N = `${e.lng}${N}`);
|
8587
|
-
const E = g5(N),
|
8587
|
+
const E = g5(N), R = N1(!0);
|
8588
8588
|
A(() => {
|
8589
8589
|
const {
|
8590
8590
|
bindI18n: m,
|
8591
8591
|
bindI18nStore: x
|
8592
8592
|
} = c;
|
8593
|
-
|
8594
|
-
|
8593
|
+
R.current = !0, !a && !r && (e.lng ? j1(l, e.lng, g, () => {
|
8594
|
+
R.current && v(p);
|
8595
8595
|
}) : W1(l, g, () => {
|
8596
|
-
|
8597
|
-
})), a && E && E !== N &&
|
8596
|
+
R.current && v(p);
|
8597
|
+
})), a && E && E !== N && R.current && v(p);
|
8598
8598
|
const b = () => {
|
8599
|
-
|
8599
|
+
R.current && v(p);
|
8600
8600
|
};
|
8601
8601
|
return m && l && l.on(m, b), x && l && l.store.on(x, b), () => {
|
8602
|
-
|
8602
|
+
R.current = !1, m && l && m.split(" ").forEach((y) => l.off(y, b)), x && l && x.split(" ").forEach((y) => l.store.off(y, b));
|
8603
8603
|
};
|
8604
8604
|
}, [l, N]), A(() => {
|
8605
|
-
|
8605
|
+
R.current && a && v(C);
|
8606
8606
|
}, [l, d, a]);
|
8607
|
-
const
|
8608
|
-
if (
|
8607
|
+
const M = [w, l, a];
|
8608
|
+
if (M.t = w, M.i18n = l, M.ready = a, a || !a && !r) return M;
|
8609
8609
|
throw new Promise((m) => {
|
8610
8610
|
e.lng ? j1(l, e.lng, g, () => m()) : W1(l, g, () => m());
|
8611
8611
|
});
|
@@ -8637,8 +8637,8 @@ const y5 = u1(
|
|
8637
8637
|
const { t: N } = C5("common", { lng: w }), E = Z(async () => {
|
8638
8638
|
p(!0);
|
8639
8639
|
try {
|
8640
|
-
const
|
8641
|
-
h(
|
8640
|
+
const M = await v.post("v1/countries/search");
|
8641
|
+
h(M == null ? void 0 : M.data.data);
|
8642
8642
|
} catch {
|
8643
8643
|
g([]);
|
8644
8644
|
} finally {
|
@@ -8649,8 +8649,8 @@ const y5 = u1(
|
|
8649
8649
|
E();
|
8650
8650
|
}, []), A(() => {
|
8651
8651
|
if (e) {
|
8652
|
-
const
|
8653
|
-
(x) => x.name.includes(
|
8652
|
+
const M = e.split("-")[1], m = a.filter(
|
8653
|
+
(x) => x.name.includes(M)
|
8654
8654
|
);
|
8655
8655
|
if (m.length) {
|
8656
8656
|
const x = m.map((b) => ({
|
@@ -8661,14 +8661,14 @@ const y5 = u1(
|
|
8661
8661
|
}
|
8662
8662
|
}
|
8663
8663
|
}, [e, a, s]), A(() => {
|
8664
|
-
const
|
8664
|
+
const M = a.map((m) => ({
|
8665
8665
|
label: m.name,
|
8666
8666
|
value: m.name
|
8667
8667
|
}));
|
8668
|
-
g(
|
8668
|
+
g(M);
|
8669
8669
|
}, [a]);
|
8670
|
-
const
|
8671
|
-
|
8670
|
+
const R = (M) => {
|
8671
|
+
M === null ? (s(""), t && t("")) : (s(M), t && t(""));
|
8672
8672
|
};
|
8673
8673
|
return /* @__PURE__ */ n("div", { className: "snmt-country-select", children: /* @__PURE__ */ n(
|
8674
8674
|
bi,
|
@@ -8678,7 +8678,7 @@ const y5 = u1(
|
|
8678
8678
|
placeholder: N("placeholder"),
|
8679
8679
|
value: o,
|
8680
8680
|
ref: r,
|
8681
|
-
onChange:
|
8681
|
+
onChange: R,
|
8682
8682
|
options: [{ label: "None", value: null }, ...d],
|
8683
8683
|
disabled: c,
|
8684
8684
|
isLoading: C
|
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 .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}.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}.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}.overflow-button{width:fit-content;display:flex;align-items:center;border:none;margin-inline-end:3px;padding:2px 6px;height:20px;cursor:pointer;background:var(--grey-light-2)}.overflow-button:hover{background:var(--blue-light-1)}.overflow-button.open{background:var(--blue-light-2)}.snmt-popover{z-index:1050!important}.snmt-popover .ant-popover-inner{padding:0}.snmt-popover.padding .ant-popover-inner{padding:16px}.wrapper{cursor:pointer}.snmt-select{width:100%;position:relative}.snmt-select .snmt-select-blank .ant-select-selector{border:none!important}.snmt-select .ant-select{height:100%;pointer-events:none;width:100%;border-radius:8px}.snmt-select .ant-select .wrapper-suffix-icon{pointer-events:none;display:flex;align-items:center;gap:10px}.snmt-select .ant-select-focused .ant-select-selector{box-shadow:none!important}.snmt-select .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 .ant-select-selector:hover{border-color:var(--blue-dark-1)!important}.snmt-select .ant-select-selection-placeholder{font-size:16px!important;font-weight:500;color:var(--grey-dark-2);font-family:Montserrat,sans-serif;text-align:left!important}.snmt-select .ant-select-selection-search{margin-inline-start:0px!important;font-size:16px;font-weight:500}.snmt-select .ant-select-selection-search input{font-size:16px!important;font-weight:500!important;color:var(--grey-dark-5)!important}.snmt-select .ant-select-arrow div{pointer-events:all;position:relative;z-index:10}.snmt-select .ant-select-selection-overflow-item-rest .ant-tag-close-icon{display:none}.snmt-select .ant-select-disabled .ant-select-arrow div{pointer-events:none!important;cursor:not-allowed!important}.snmt-select .ant-select-single .ant-select-selection-item{font-family:Montserrat,sans-serif;font-weight:500;color:var(--grey-dark-5);font-size:16px}.snmt-select .ant-select-single .ant-select-selection-item img{display:none}.snmt-select .ant-select-multiple .ant-select-selector{padding:9px 48px 9px 16px!important}.snmt-select .ant-select-multiple .ant-select-selection-placeholder{inset-inline-start:0px;inset-inline-end:16px}.snmt-select .ant-select-multiple .ant-select-selection-item{background-color:var(--grey-light-2)}.snmt-select .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 .ant-select-multiple .ant-select-selection-item-content img{display:none}.snmt-select .ant-select-multiple .ant-select-selection-overflow-item .tag-wrapper{margin:0 3px}.snmt-select .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 .ant-select-multiple .ant-select-selection-overflow-item-rest .ant-select-selection-item-content{margin:0}.snmt-select .ant-select-multiple .ant-select-selection-overflow-item:first-of-type .tag-wrapper{margin-left:0;margin-right:3px}.snmt-select .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 .ant-select-open .ant-select-selector{box-shadow:none!important;border-color:var(--blue-primary)!important}.snmt-select .select-arrow{transition:transform .3s ease;position:relative;z-index:2}.snmt-select .select-arrow-rotated{transition:transform .3s ease;transform:rotate(180deg)}.snmt-select fieldset{position:absolute;min-width:0;margin:0;padding:0 11px;top:-6px;right:0;bottom:0;left:0;border:1px solid;border-color:var(--grey-light-4);border-radius:8px;text-align:left;pointer-events:none}.snmt-select fieldset>legend{max-width:0;height:14px;padding:0;font-size:12px}.snmt-select fieldset>legend>span{padding:0 5px;opacity:0;pointer-events:none;-webkit-user-select:none;user-select:none}.snmt-select-focused{border-color:var(--blue-primary)!important;border-width:2px}.snmt-select-read-only .ant-select-selector{background-color:var(--grey-light-2);cursor:not-allowed;pointer-events:none!important}.snmt-select-read-only .ant-select-arrow{pointer-events:all!important;cursor:pointer}.snmt-select-read-only .ant-select{pointer-events:auto!important}.snmt-select-read-only .ant-select-selection-item,.snmt-select-read-only .ant-select-selection-placeholder{color:var(--grey-dark-1)!important}.snmt-select:not(.ant-select-disabled):not(.snmt-select-error):not(.snmt-select-focused):hover fieldset{border-color:var(--blue-dark-1)!important;color:var(--blue-dark-1)!important;box-shadow:none!important}.dropdown-read-only .rc-virtual-list{pointer-events:none}.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 .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-outlined.ant-select-disabled:not(.ant-select-customize-input) .ant-select-selector{background:var(--grey-light-2);border:none!important}.ant-select-outlined.ant-select-disabled:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-item{color:var(--grey-dark-1)!important}.rc-virtual-list-scrollbar.rc-virtual-list-scrollbar-vertical{visibility:hidden!important}.snmt-select-single .ant-select-item-option-state{display:block}.fieldset-focused>legend,.fieldset-disabled>legend,.fieldset-filled>legend{max-width:100%!important}.fieldset-focused>legend>span,.fieldset-disabled>legend>span,.fieldset-filled>legend>span{opacity:1!important}.fieldset-focused{border-color:var(--blue-primary)!important;color:var(--blue-primary)!important;border-width:2px!important}.fieldset-disabled{border:none!important;color:var(--grey-dark-1)}.fieldset-filled{border-color:var(--grey-light-4);color:var(--grey-light-4)}.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 .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}.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}.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}.overflow-button{width:fit-content;display:flex;align-items:center;border:none;margin-inline-end:3px;padding:2px 6px;height:20px;cursor:pointer;background:var(--grey-light-2)}.overflow-button:hover{background:var(--blue-light-1)}.overflow-button.open{background:var(--blue-light-2)}.snmt-popover{z-index:1050!important}.snmt-popover .ant-popover-inner{padding:0}.snmt-popover.padding .ant-popover-inner{padding:16px}.wrapper{cursor:pointer}.snmt-select{width:100%;position:relative;height:48px}.snmt-select .snmt-select-blank .ant-select-selector{border:none!important}.snmt-select .ant-select{height:100%;pointer-events:none;width:100%;border-radius:8px}.snmt-select .ant-select .wrapper-suffix-icon{pointer-events:none;display:flex;align-items:center;gap:10px}.snmt-select .ant-select-focused .ant-select-selector{box-shadow:none!important}.snmt-select .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 .ant-select-selector:hover{border-color:var(--blue-dark-1)!important}.snmt-select .ant-select-selection-placeholder{font-size:16px!important;font-weight:500;color:var(--grey-dark-2);font-family:Montserrat,sans-serif;text-align:left!important}.snmt-select .ant-select-selection-search{margin-inline-start:0px!important;font-size:16px;font-weight:500}.snmt-select .ant-select-selection-search input{font-size:16px!important;font-weight:500!important;color:var(--grey-dark-5)!important}.snmt-select .ant-select-arrow div{pointer-events:all;position:relative;z-index:10}.snmt-select .ant-select-selection-overflow-item-rest .ant-tag-close-icon{display:none}.snmt-select .ant-select-disabled .ant-select-arrow div{pointer-events:none!important;cursor:not-allowed!important}.snmt-select .ant-select-single .ant-select-selection-item{font-family:Montserrat,sans-serif;font-weight:500;color:var(--grey-dark-5);font-size:16px}.snmt-select .ant-select-single .ant-select-selection-item img{display:none}.snmt-select .ant-select-multiple .ant-select-selector{padding:9px 48px 9px 16px!important}.snmt-select .ant-select-multiple .ant-select-selection-placeholder{inset-inline-start:0px;inset-inline-end:16px}.snmt-select .ant-select-multiple .ant-select-selection-item{background-color:var(--grey-light-2)}.snmt-select .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 .ant-select-multiple .ant-select-selection-item-content img{display:none}.snmt-select .ant-select-multiple .ant-select-selection-overflow-item .tag-wrapper{margin:0 3px}.snmt-select .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 .ant-select-multiple .ant-select-selection-overflow-item-rest .ant-select-selection-item-content{margin:0}.snmt-select .ant-select-multiple .ant-select-selection-overflow-item:first-of-type .tag-wrapper{margin-left:0;margin-right:3px}.snmt-select .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 .ant-select-open .ant-select-selector{box-shadow:none!important;border-color:var(--blue-primary)!important}.snmt-select .select-arrow{transition:transform .3s ease;position:relative;z-index:2}.snmt-select .select-arrow-rotated{transition:transform .3s ease;transform:rotate(180deg)}.snmt-select fieldset{position:absolute;min-width:0;margin:0;padding:0 11px;top:-6px;right:0;bottom:0;left:0;border:1px solid;border-color:var(--grey-light-4);border-radius:8px;text-align:left;pointer-events:none}.snmt-select fieldset>legend{max-width:0;height:14px;padding:0;font-size:12px}.snmt-select fieldset>legend>span{padding:0 5px;opacity:0;pointer-events:none;-webkit-user-select:none;user-select:none}.snmt-select-focused{border-color:var(--blue-primary)!important;border-width:2px}.snmt-select-read-only .ant-select-selector{background-color:var(--grey-light-2);cursor:not-allowed;pointer-events:none!important}.snmt-select-read-only .ant-select-arrow{pointer-events:all!important;cursor:pointer}.snmt-select-read-only .ant-select{pointer-events:auto!important}.snmt-select-read-only .ant-select-selection-item,.snmt-select-read-only .ant-select-selection-placeholder{color:var(--grey-dark-1)!important}.snmt-select:not(.ant-select-disabled):not(.snmt-select-error):not(.snmt-select-focused):hover fieldset{border-color:var(--blue-dark-1)!important;color:var(--blue-dark-1)!important;box-shadow:none!important}.dropdown-read-only .rc-virtual-list{pointer-events:none}.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 .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-outlined.ant-select-disabled:not(.ant-select-customize-input) .ant-select-selector{background:var(--grey-light-2);border:none!important}.ant-select-outlined.ant-select-disabled:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-item{color:var(--grey-dark-1)!important}.rc-virtual-list-scrollbar.rc-virtual-list-scrollbar-vertical{visibility:hidden!important}.snmt-select-single{height:48px}.snmt-select-single .ant-select-item-option-state{display:block}.fieldset-focused>legend,.fieldset-disabled>legend,.fieldset-filled>legend{max-width:100%!important}.fieldset-focused>legend>span,.fieldset-disabled>legend>span,.fieldset-filled>legend>span{opacity:1!important}.fieldset-focused{border-color:var(--blue-primary)!important;color:var(--blue-primary)!important;border-width:2px!important}.fieldset-disabled{border:none!important;color:var(--grey-dark-1)}.fieldset-filled{border-color:var(--grey-light-4);color:var(--grey-light-4)}.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.3.
|
4
|
+
"version": "2.3.2",
|
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.3.
|
21
|
+
"@snmt-react-ui/city-select": "^2.3.2",
|
22
22
|
"@snmt-react-ui/core": "^2.1.0",
|
23
23
|
"@snmt-react-ui/flex": "^1.5.0",
|
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": "c535681c0bded860cc56805548d7044e47c9d2f3"
|
31
31
|
}
|