@snmt-react-ui/city-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/city-select.js +72 -72
- package/dist/index.css +1 -1
- package/package.json +3 -3
package/dist/city-select.js
CHANGED
@@ -6784,10 +6784,10 @@ const Q1 = ({ children: i, width: e, size: t = "small", onClose: o, closable: s
|
|
6784
6784
|
extraOptions: N,
|
6785
6785
|
dropdownRender: v,
|
6786
6786
|
optionRender: E,
|
6787
|
-
isLoading:
|
6788
|
-
readOnly:
|
6787
|
+
isLoading: R,
|
6788
|
+
readOnly: V
|
6789
6789
|
}, L) => {
|
6790
|
-
const [
|
6790
|
+
const [M, b] = O(!1), [x, Z] = O(!1), [J, U] = O(!0), [y, I] = O(i), B = r1(null);
|
6791
6791
|
W(() => {
|
6792
6792
|
I(i);
|
6793
6793
|
}, [i]);
|
@@ -6800,7 +6800,7 @@ const Q1 = ({ children: i, width: e, size: t = "small", onClose: o, closable: s
|
|
6800
6800
|
Z(!0);
|
6801
6801
|
}, $ = () => {
|
6802
6802
|
Z(!1);
|
6803
|
-
},
|
6803
|
+
}, H = G(
|
6804
6804
|
(f) => {
|
6805
6805
|
if (I(f), o) {
|
6806
6806
|
const j = f;
|
@@ -6812,19 +6812,19 @@ const Q1 = ({ children: i, width: e, size: t = "small", onClose: o, closable: s
|
|
6812
6812
|
},
|
6813
6813
|
[o, e]
|
6814
6814
|
), Y = G(() => {
|
6815
|
-
if (!
|
6815
|
+
if (!V) {
|
6816
6816
|
if (o) {
|
6817
|
-
|
6817
|
+
H([]);
|
6818
6818
|
return;
|
6819
6819
|
}
|
6820
|
-
|
6820
|
+
H("");
|
6821
6821
|
}
|
6822
|
-
}, [
|
6822
|
+
}, [H, o, V]), T = G(
|
6823
6823
|
(f) => {
|
6824
6824
|
const _ = y.filter((j) => j !== f);
|
6825
|
-
|
6825
|
+
H(_), I(_);
|
6826
6826
|
},
|
6827
|
-
[
|
6827
|
+
[H, y]
|
6828
6828
|
), t1 = G(
|
6829
6829
|
(f) => (y == null ? void 0 : y.indexOf(f)) === 0 ? (
|
6830
6830
|
// if the search input is empty
|
@@ -6854,13 +6854,13 @@ const Q1 = ({ children: i, width: e, size: t = "small", onClose: o, closable: s
|
|
6854
6854
|
values: f,
|
6855
6855
|
onTagClose: T,
|
6856
6856
|
maxWidth: ((_ = B.current) == null ? void 0 : _.clientWidth) || 0,
|
6857
|
-
disabled: r ||
|
6857
|
+
disabled: r || V,
|
6858
6858
|
options: l,
|
6859
6859
|
extraOptions: N
|
6860
6860
|
}
|
6861
6861
|
);
|
6862
6862
|
},
|
6863
|
-
[r, N, T, l,
|
6863
|
+
[r, N, T, l, V]
|
6864
6864
|
), le = G(
|
6865
6865
|
({ label: f, value: _, mode: j }) => j === "filter" ? t1(_) : /* @__PURE__ */ n("div", { onMouseDown: se, className: "tag-wrapper", children: /* @__PURE__ */ n(Q1, { onClose: () => T(_), closable: !r, children: /* @__PURE__ */ n(q1, { variant: "body4", children: typeof f == "object" ? f : m1(_) }) }) }),
|
6866
6866
|
[r, m1, T, t1]
|
@@ -6869,7 +6869,7 @@ const Q1 = ({ children: i, width: e, size: t = "small", onClose: o, closable: s
|
|
6869
6869
|
"div",
|
6870
6870
|
{
|
6871
6871
|
className: `snmt-select ${x ? "snmt-select-focused" : ""}
|
6872
|
-
${o ? "" : "snmt-select-single"} ${
|
6872
|
+
${o ? "" : "snmt-select-single"} ${V ? "snmt-select-read-only" : ""}`,
|
6873
6873
|
ref: B,
|
6874
6874
|
style: { width: c },
|
6875
6875
|
children: [
|
@@ -6877,7 +6877,7 @@ const Q1 = ({ children: i, width: e, size: t = "small", onClose: o, closable: s
|
|
6877
6877
|
de,
|
6878
6878
|
{
|
6879
6879
|
className: "snmt-select-blank",
|
6880
|
-
popupClassName:
|
6880
|
+
popupClassName: V ? "dropdown-read-only" : "",
|
6881
6881
|
id: w,
|
6882
6882
|
ref: L,
|
6883
6883
|
showSearch: !!s,
|
@@ -6888,7 +6888,7 @@ const Q1 = ({ children: i, width: e, size: t = "small", onClose: o, closable: s
|
|
6888
6888
|
value: y || void 0,
|
6889
6889
|
labelRender: (f) => m1(f.value),
|
6890
6890
|
mode: o === "filter" ? "multiple" : o,
|
6891
|
-
onChange:
|
6891
|
+
onChange: H,
|
6892
6892
|
onFocus: F,
|
6893
6893
|
onBlur: $,
|
6894
6894
|
onSearch: (f) => {
|
@@ -6900,7 +6900,7 @@ const Q1 = ({ children: i, width: e, size: t = "small", onClose: o, closable: s
|
|
6900
6900
|
maxTagCount: "responsive",
|
6901
6901
|
maxTagPlaceholder: re,
|
6902
6902
|
onPopupScroll: ne,
|
6903
|
-
prefix:
|
6903
|
+
prefix: R && /* @__PURE__ */ n(b1, { size: 15 }),
|
6904
6904
|
suffixIcon: /* @__PURE__ */ n("div", { className: "wrapper-suffix-icon", children: o !== "filter" && /* @__PURE__ */ u(e1, { children: [
|
6905
6905
|
o && y && !!y.length && /* @__PURE__ */ n("div", { onClick: Y, children: /* @__PURE__ */ n(a1, { name: "cancel" }) }),
|
6906
6906
|
/* @__PURE__ */ n(
|
@@ -6908,8 +6908,8 @@ const Q1 = ({ children: i, width: e, size: t = "small", onClose: o, closable: s
|
|
6908
6908
|
{
|
6909
6909
|
name: "selectArrowIcon",
|
6910
6910
|
color: r ? X.GREY_DARK_1 : X.GREY_DARK_5,
|
6911
|
-
className:
|
6912
|
-
onClick: () => b(!
|
6911
|
+
className: M ? "select-arrow-rotated" : "select-arrow",
|
6912
|
+
onClick: () => b(!M)
|
6913
6913
|
}
|
6914
6914
|
)
|
6915
6915
|
] }) }),
|
@@ -6938,7 +6938,7 @@ const Q1 = ({ children: i, width: e, size: t = "small", onClose: o, closable: s
|
|
6938
6938
|
}
|
6939
6939
|
)
|
6940
6940
|
] }),
|
6941
|
-
dropdownRender:
|
6941
|
+
dropdownRender: R ? () => /* @__PURE__ */ n(
|
6942
6942
|
"div",
|
6943
6943
|
{
|
6944
6944
|
style: {
|
@@ -7323,8 +7323,8 @@ class p1 extends w1 {
|
|
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, N = Object.prototype.toString.apply(C), v = ["[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, N = Object.prototype.toString.apply(C), v = ["[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") && v.indexOf(N) < 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 L = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(p, C, {
|
@@ -7334,53 +7334,53 @@ class p1 extends w1 {
|
|
7334
7334
|
return s ? (h.res = L, h.usedParams = this.getUsedParamsDetails(t), h) : L;
|
7335
7335
|
}
|
7336
7336
|
if (l) {
|
7337
|
-
const L = Array.isArray(C),
|
7337
|
+
const L = Array.isArray(C), M = L ? [] : {}, b = L ? w : p;
|
7338
7338
|
for (const x in C)
|
7339
7339
|
if (Object.prototype.hasOwnProperty.call(C, x)) {
|
7340
7340
|
const Z = `${b}${l}${x}`;
|
7341
|
-
|
7341
|
+
M[x] = this.translate(Z, {
|
7342
7342
|
...t,
|
7343
7343
|
joinArrays: !1,
|
7344
7344
|
ns: r
|
7345
|
-
}),
|
7345
|
+
}), M[x] === Z && (M[x] = C[x]);
|
7346
7346
|
}
|
7347
|
-
C =
|
7347
|
+
C = M;
|
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, o));
|
7351
7351
|
else {
|
7352
|
-
let L = !1,
|
7352
|
+
let L = !1, M = !1;
|
7353
7353
|
const b = t.count !== void 0 && typeof t.count != "string", x = p1.hasDefaultValue(t), Z = b ? this.pluralResolver.getSuffix(g, t.count, t) : "", J = t.ordinal && b ? this.pluralResolver.getSuffix(g, t.count, {
|
7354
7354
|
ordinal: !1
|
7355
7355
|
}) : "", U = b && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), y = U && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${Z}`] || t[`defaultValue${J}`] || t.defaultValue;
|
7356
|
-
!this.isValidLookup(C) && x && (L = !0, C = y), this.isValidLookup(C) || (
|
7357
|
-
const B = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) &&
|
7358
|
-
if (
|
7356
|
+
!this.isValidLookup(C) && x && (L = !0, C = y), this.isValidLookup(C) || (M = !0, C = c);
|
7357
|
+
const B = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && M ? void 0 : C, D = x && y !== C && this.options.updateMissing;
|
7358
|
+
if (M || L || D) {
|
7359
7359
|
if (this.logger.log(D ? "updateKey" : "missingKey", g, d, c, D ? y : C), l) {
|
7360
|
-
const
|
7360
|
+
const H = this.resolve(c, {
|
7361
7361
|
...t,
|
7362
7362
|
keySeparator: !1
|
7363
7363
|
});
|
7364
|
-
|
7364
|
+
H && H.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
|
7365
7365
|
}
|
7366
7366
|
let P = [];
|
7367
7367
|
const F = this.languageUtils.getFallbackCodes(this.options.fallbackLng, t.lng || this.language);
|
7368
7368
|
if (this.options.saveMissingTo === "fallback" && F && F[0])
|
7369
|
-
for (let
|
7370
|
-
P.push(F[
|
7369
|
+
for (let H = 0; H < F.length; H++)
|
7370
|
+
P.push(F[H]);
|
7371
7371
|
else this.options.saveMissingTo === "all" ? P = this.languageUtils.toResolveHierarchy(t.lng || this.language) : P.push(t.lng || this.language);
|
7372
|
-
const $ = (
|
7372
|
+
const $ = (H, Y, T) => {
|
7373
7373
|
const t1 = x && T !== C ? T : B;
|
7374
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(
|
7374
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(H, d, Y, t1, D, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(H, d, Y, t1, D, t), this.emit("missingKey", H, d, Y, C);
|
7375
7375
|
};
|
7376
|
-
this.options.saveMissing && (this.options.saveMissingPlurals && b ? P.forEach((
|
7377
|
-
const Y = this.pluralResolver.getSuffixes(
|
7376
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && b ? P.forEach((H) => {
|
7377
|
+
const Y = this.pluralResolver.getSuffixes(H, t);
|
7378
7378
|
U && t[`defaultValue${this.options.pluralSeparator}zero`] && Y.indexOf(`${this.options.pluralSeparator}zero`) < 0 && Y.push(`${this.options.pluralSeparator}zero`), Y.forEach((T) => {
|
7379
|
-
$([
|
7379
|
+
$([H], c + T, t[`defaultValue${T}`] || y);
|
7380
7380
|
});
|
7381
7381
|
}) : $(P, c, y));
|
7382
7382
|
}
|
7383
|
-
C = this.extendTranslation(C, e, t, h, o),
|
7383
|
+
C = this.extendTranslation(C, e, t, h, o), M && C === c && this.options.appendNamespaceToMissingKey && (C = `${d}:${c}`), (M || L) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? C = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${d}:${c}` : c, L ? C : void 0) : C = this.options.parseMissingKeyHandler(C));
|
7384
7384
|
}
|
7385
7385
|
return s ? (h.res = C, h.usedParams = this.getUsedParamsDetails(t), h) : C;
|
7386
7386
|
}
|
@@ -7443,21 +7443,21 @@ class p1 extends w1 {
|
|
7443
7443
|
this.isValidLookup(o) || (r = v, !S1[`${N[0]}-${v}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(r) && (S1[`${N[0]}-${v}`] = !0, this.logger.warn(`key "${s}" for languages "${N.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!!!")), N.forEach((E) => {
|
7444
7444
|
if (this.isValidLookup(o)) 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, v, t);
|
7449
7449
|
else {
|
7450
7450
|
let L;
|
7451
7451
|
C && (L = this.pluralResolver.getSuffix(E, t.count, t));
|
7452
|
-
const
|
7453
|
-
if (C && (
|
7452
|
+
const M = `${this.options.pluralSeparator}zero`, b = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
7453
|
+
if (C && (R.push(a + L), t.ordinal && L.indexOf(b) === 0 && R.push(a + L.replace(b, this.options.pluralSeparator)), p && R.push(a + M)), w) {
|
7454
7454
|
const x = `${a}${this.options.contextSeparator}${t.context}`;
|
7455
|
-
|
7455
|
+
R.push(x), C && (R.push(x + L), t.ordinal && L.indexOf(b) === 0 && R.push(x + L.replace(b, this.options.pluralSeparator)), p && R.push(x + M));
|
7456
7456
|
}
|
7457
7457
|
}
|
7458
|
-
let
|
7459
|
-
for (;
|
7460
|
-
this.isValidLookup(o) || (l =
|
7458
|
+
let V;
|
7459
|
+
for (; V = R.pop(); )
|
7460
|
+
this.isValidLookup(o) || (l = V, o = this.getResource(E, v, V, t));
|
7461
7461
|
}));
|
7462
7462
|
});
|
7463
7463
|
}), {
|
@@ -7784,9 +7784,9 @@ class Qi {
|
|
7784
7784
|
nestingSuffixEscaped: N,
|
7785
7785
|
nestingOptionsSeparator: v,
|
7786
7786
|
maxReplaces: E,
|
7787
|
-
alwaysFormat:
|
7787
|
+
alwaysFormat: R
|
7788
7788
|
} = e.interpolation;
|
7789
|
-
this.escape = t !== void 0 ? t : Di, this.escapeValue = o !== void 0 ? o : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = l ? Q(l) : c || "{{", this.suffix = r ? Q(r) : d || "}}", this.formatSeparator = g || ",", this.unescapePrefix = a ? "" : h || "-", this.unescapeSuffix = this.unescapePrefix ? "" : a || "", this.nestingPrefix = C ? Q(C) : p || Q("$t("), this.nestingSuffix = w ? Q(w) : N || Q(")"), this.nestingOptionsSeparator = v || ",", this.maxReplaces = E || 1e3, this.alwaysFormat =
|
7789
|
+
this.escape = t !== void 0 ? t : Di, this.escapeValue = o !== void 0 ? o : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = l ? Q(l) : c || "{{", this.suffix = r ? Q(r) : d || "}}", this.formatSeparator = g || ",", this.unescapePrefix = a ? "" : h || "-", this.unescapeSuffix = this.unescapePrefix ? "" : a || "", this.nestingPrefix = C ? Q(C) : p || Q("$t("), this.nestingSuffix = w ? Q(w) : N || Q(")"), this.nestingOptionsSeparator = v || ",", 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,8 +8567,8 @@ const m5 = (i, e) => {
|
|
8567
8567
|
} = l1(f5) || {}, l = t || o || C5();
|
8568
8568
|
if (l && !l.reportNamespaces && (l.reportNamespaces = new w5()), !l) {
|
8569
8569
|
R1("You will need to pass in an i18next instance by using initReactI18next");
|
8570
|
-
const L = (b, x) => z(x) ? x : r5(x) && z(x.defaultValue) ? x.defaultValue : Array.isArray(b) ? b[b.length - 1] : b,
|
8571
|
-
return
|
8570
|
+
const L = (b, x) => z(x) ? x : r5(x) && z(x.defaultValue) ? x.defaultValue : Array.isArray(b) ? b[b.length - 1] : b, M = [L, {}, !1];
|
8571
|
+
return M.t = L, M.i18n = {}, M.ready = !1, M;
|
8572
8572
|
}
|
8573
8573
|
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.");
|
8574
8574
|
const c = {
|
@@ -8584,28 +8584,28 @@ const m5 = (i, e) => {
|
|
8584
8584
|
const a = (l.isInitialized || l.initializedStoreOnce) && g.every((L) => n5(L, l, c)), h = k5(l, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), C = () => h, p = () => oe(l, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), [w, N] = O(C);
|
8585
8585
|
let v = g.join();
|
8586
8586
|
e.lng && (v = `${e.lng}${v}`);
|
8587
|
-
const E = m5(v),
|
8587
|
+
const E = m5(v), R = r1(!0);
|
8588
8588
|
W(() => {
|
8589
8589
|
const {
|
8590
8590
|
bindI18n: L,
|
8591
|
-
bindI18nStore:
|
8591
|
+
bindI18nStore: M
|
8592
8592
|
} = c;
|
8593
|
-
|
8594
|
-
|
8593
|
+
R.current = !0, !a && !r && (e.lng ? T1(l, e.lng, g, () => {
|
8594
|
+
R.current && N(p);
|
8595
8595
|
}) : D1(l, g, () => {
|
8596
|
-
|
8597
|
-
})), a && E && E !== v &&
|
8596
|
+
R.current && N(p);
|
8597
|
+
})), a && E && E !== v && R.current && N(p);
|
8598
8598
|
const b = () => {
|
8599
|
-
|
8599
|
+
R.current && N(p);
|
8600
8600
|
};
|
8601
|
-
return L && l && l.on(L, b),
|
8602
|
-
|
8601
|
+
return L && l && l.on(L, b), M && l && l.store.on(M, b), () => {
|
8602
|
+
R.current = !1, L && l && L.split(" ").forEach((x) => l.off(x, b)), M && l && M.split(" ").forEach((x) => l.store.off(x, b));
|
8603
8603
|
};
|
8604
8604
|
}, [l, v]), W(() => {
|
8605
|
-
|
8605
|
+
R.current && a && N(C);
|
8606
8606
|
}, [l, d, a]);
|
8607
|
-
const
|
8608
|
-
if (
|
8607
|
+
const V = [w, l, a];
|
8608
|
+
if (V.t = w, V.i18n = l, V.ready = a, a || !a && !r) return V;
|
8609
8609
|
throw new Promise((L) => {
|
8610
8610
|
e.lng ? T1(l, e.lng, g, () => L()) : D1(l, g, () => L());
|
8611
8611
|
});
|
@@ -8666,22 +8666,22 @@ const P1 = {
|
|
8666
8666
|
offset: 0
|
8667
8667
|
}, W5 = f1(
|
8668
8668
|
({ width: i, selectedCountry: e, onChange: t, value: o, id: s, disabled: l }, c) => {
|
8669
|
-
const [r, d] = O([]), [g, a] = O(P1), [h, C] = O(null), [p, w] = O([]), [N, v] = O(!1), [E,
|
8670
|
-
if (!
|
8669
|
+
const [r, d] = O([]), [g, a] = O(P1), [h, C] = O(null), [p, w] = O([]), [N, v] = O(!1), [E, R] = O(!1), V = r1(e), { locale: L, axiosPeople: M } = l1(ce);
|
8670
|
+
if (!M)
|
8671
8671
|
throw new Error(
|
8672
8672
|
`CitySelect requires "axiosPeople" to fetch cities.
|
8673
8673
|
Please provide it via SNMTUiContext.`
|
8674
8674
|
);
|
8675
8675
|
const { t: b } = L5("common", { lng: L }), x = G(
|
8676
8676
|
async (y) => {
|
8677
|
-
y ?
|
8677
|
+
y ? R(!0) : v(!0);
|
8678
8678
|
try {
|
8679
8679
|
const I = {
|
8680
8680
|
offset: g.offset,
|
8681
8681
|
limit: g.limit
|
8682
8682
|
};
|
8683
8683
|
e && e.length > 0 && (I.countryId = e), y && (I.search = y);
|
8684
|
-
const B = await
|
8684
|
+
const B = await M.post("v1/cities/search", I), D = (B == null ? void 0 : B.data.data) || [], P = B == null ? void 0 : B.data.metadata.count, F = D.map(($) => ({
|
8685
8685
|
key: K1(),
|
8686
8686
|
label: $.name,
|
8687
8687
|
value: $.geoNameId
|
@@ -8690,10 +8690,10 @@ const P1 = {
|
|
8690
8690
|
($) => g.offset === 0 ? F : [...$, ...F]
|
8691
8691
|
), w(D), C(P);
|
8692
8692
|
} finally {
|
8693
|
-
v(!1),
|
8693
|
+
v(!1), R(!1);
|
8694
8694
|
}
|
8695
8695
|
},
|
8696
|
-
[
|
8696
|
+
[M, g, e]
|
8697
8697
|
);
|
8698
8698
|
W(() => {
|
8699
8699
|
a(P1);
|
@@ -8708,11 +8708,11 @@ const P1 = {
|
|
8708
8708
|
}));
|
8709
8709
|
d(
|
8710
8710
|
(I) => g.offset === 0 ? y : [...I, ...y]
|
8711
|
-
),
|
8711
|
+
), V.current = e, o && t(o);
|
8712
8712
|
}, [e, t, o, p, g.offset]);
|
8713
8713
|
const Z = _5(x), J = G(
|
8714
8714
|
(y) => {
|
8715
|
-
a((I) => ({ ...I, offset: 0, search: y })),
|
8715
|
+
a((I) => ({ ...I, offset: 0, search: y })), R(!0), Z(y);
|
8716
8716
|
},
|
8717
8717
|
[Z]
|
8718
8718
|
), U = async (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 .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/city-select",
|
3
3
|
"private": false,
|
4
|
-
"version": "2.3.
|
4
|
+
"version": "2.3.2",
|
5
5
|
"type": "module",
|
6
6
|
"main": "dist/city-select.js",
|
7
7
|
"types": "dist/index.d.ts",
|
@@ -19,7 +19,7 @@
|
|
19
19
|
},
|
20
20
|
"dependencies": {
|
21
21
|
"@snmt-react-ui/core": "^2.1.0",
|
22
|
-
"@snmt-react-ui/select": "^1.13.
|
22
|
+
"@snmt-react-ui/select": "^1.13.2",
|
23
23
|
"i18next": "^23.11.5",
|
24
24
|
"react-i18next": "^14.1.1",
|
25
25
|
"uuid": "^10.0.0"
|
@@ -27,5 +27,5 @@
|
|
27
27
|
"peerDependencies": {
|
28
28
|
"antd": "^5.22.0"
|
29
29
|
},
|
30
|
-
"gitHead": "
|
30
|
+
"gitHead": "c535681c0bded860cc56805548d7044e47c9d2f3"
|
31
31
|
}
|