@snmt-react-ui/city-select 2.9.13 → 2.9.15
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 +68 -70
- package/dist/index.css +1 -1
- package/package.json +3 -3
package/dist/city-select.js
CHANGED
|
@@ -5,7 +5,7 @@ import "./index.css";
|
|
|
5
5
|
import { jsx as n, Fragment as t1, jsxs as g } from "react/jsx-runtime";
|
|
6
6
|
import { COLORS as c, SNMTUiContext as h1 } from "@snmt-react-ui/core";
|
|
7
7
|
import { forwardRef as a1, useState as D, useRef as O, useCallback as E, useEffect as I, useMemo as U1, useImperativeHandle as c1, useContext as l1, createContext as w2, useLayoutEffect as N1 } from "react";
|
|
8
|
-
import { Select as H2, Tag as
|
|
8
|
+
import { Select as H2, Tag as T1, Flex as _2, Checkbox as b2, Avatar as y2, Typography as M1, Popover as A2 } from "antd";
|
|
9
9
|
var E2 = Object.defineProperty, D2 = (l, e, t) => e in l ? E2(l, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : l[e] = t, K2 = (l, e, t) => D2(l, e + "", t), S2 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
10
10
|
function G2() {
|
|
11
11
|
if (console && console.warn) {
|
|
@@ -75,7 +75,7 @@ const f2 = (l, e) => () => {
|
|
|
75
75
|
"…": "…",
|
|
76
76
|
"/": "/",
|
|
77
77
|
"/": "/"
|
|
78
|
-
},
|
|
78
|
+
}, P2 = (l) => $2[l], T2 = (l) => l.replace(I2, P2);
|
|
79
79
|
let j2 = {
|
|
80
80
|
bindI18n: "languageChanged",
|
|
81
81
|
bindI18nStore: "",
|
|
@@ -84,7 +84,7 @@ let j2 = {
|
|
|
84
84
|
transWrapTextNodes: "",
|
|
85
85
|
transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
|
|
86
86
|
useSuspense: !0,
|
|
87
|
-
unescape:
|
|
87
|
+
unescape: T2
|
|
88
88
|
};
|
|
89
89
|
const F2 = () => j2;
|
|
90
90
|
let U2;
|
|
@@ -1509,7 +1509,7 @@ const q2 = (l, e) => {
|
|
|
1509
1509
|
)
|
|
1510
1510
|
]
|
|
1511
1511
|
}
|
|
1512
|
-
),
|
|
1512
|
+
), P5 = ({
|
|
1513
1513
|
width: l = 20,
|
|
1514
1514
|
height: e = 20,
|
|
1515
1515
|
color: t = c.GREY_DARK_5,
|
|
@@ -1542,7 +1542,7 @@ const q2 = (l, e) => {
|
|
|
1542
1542
|
)
|
|
1543
1543
|
]
|
|
1544
1544
|
}
|
|
1545
|
-
),
|
|
1545
|
+
), T5 = ({
|
|
1546
1546
|
width: l = 20,
|
|
1547
1547
|
height: e = 20,
|
|
1548
1548
|
color: t = c.GREY_DARK_5,
|
|
@@ -2740,9 +2740,9 @@ const q2 = (l, e) => {
|
|
|
2740
2740
|
onClick: a
|
|
2741
2741
|
});
|
|
2742
2742
|
case "sortUp":
|
|
2743
|
-
return T5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2744
|
-
case "sortDown":
|
|
2745
2743
|
return P5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2744
|
+
case "sortDown":
|
|
2745
|
+
return T5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2746
2746
|
case "sortDouble":
|
|
2747
2747
|
return j5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2748
2748
|
case "search":
|
|
@@ -3471,7 +3471,7 @@ const q2 = (l, e) => {
|
|
|
3471
3471
|
)
|
|
3472
3472
|
]
|
|
3473
3473
|
}
|
|
3474
|
-
),
|
|
3474
|
+
), P7 = ({
|
|
3475
3475
|
width: l = 20,
|
|
3476
3476
|
height: e = 20,
|
|
3477
3477
|
color: t = c.GREY_DARK_5,
|
|
@@ -3511,7 +3511,7 @@ const q2 = (l, e) => {
|
|
|
3511
3511
|
)
|
|
3512
3512
|
]
|
|
3513
3513
|
}
|
|
3514
|
-
),
|
|
3514
|
+
), T7 = ({
|
|
3515
3515
|
width: l = 20,
|
|
3516
3516
|
height: e = 20,
|
|
3517
3517
|
color: t = c.GREY_DARK_5,
|
|
@@ -5177,9 +5177,9 @@ const q2 = (l, e) => {
|
|
|
5177
5177
|
case "filter2":
|
|
5178
5178
|
return f9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5179
5179
|
case "attention":
|
|
5180
|
-
return T7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5181
|
-
case "users":
|
|
5182
5180
|
return P7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5181
|
+
case "users":
|
|
5182
|
+
return T7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5183
5183
|
case "mySkillsMatrix":
|
|
5184
5184
|
return j7({
|
|
5185
5185
|
width: e,
|
|
@@ -5312,7 +5312,7 @@ const q2 = (l, e) => {
|
|
|
5312
5312
|
C || i == null || i();
|
|
5313
5313
|
};
|
|
5314
5314
|
return /* @__PURE__ */ n(
|
|
5315
|
-
|
|
5315
|
+
T1,
|
|
5316
5316
|
{
|
|
5317
5317
|
className: `snmt-tag ${t} ${C ? "disabled" : ""}`,
|
|
5318
5318
|
closeIcon: /* @__PURE__ */ n(
|
|
@@ -5461,7 +5461,7 @@ const q2 = (l, e) => {
|
|
|
5461
5461
|
const d = new ResizeObserver(C);
|
|
5462
5462
|
return d.observe(h), () => d.disconnect();
|
|
5463
5463
|
}, [s, C]), t;
|
|
5464
|
-
}, { Title: $9, Text:
|
|
5464
|
+
}, { Title: $9, Text: P9 } = M1, T9 = {
|
|
5465
5465
|
h1: 1,
|
|
5466
5466
|
h2: 2,
|
|
5467
5467
|
h3: 3,
|
|
@@ -5497,7 +5497,7 @@ const q2 = (l, e) => {
|
|
|
5497
5497
|
}
|
|
5498
5498
|
} : void 0
|
|
5499
5499
|
};
|
|
5500
|
-
return r ? /* @__PURE__ */ n($9, { level:
|
|
5500
|
+
return r ? /* @__PURE__ */ n($9, { level: T9[e], ...w, children: i }) : /* @__PURE__ */ n(P9, { ...w, children: i });
|
|
5501
5501
|
}
|
|
5502
5502
|
), j9 = ({
|
|
5503
5503
|
width: l = 20,
|
|
@@ -7355,7 +7355,7 @@ const q2 = (l, e) => {
|
|
|
7355
7355
|
)
|
|
7356
7356
|
]
|
|
7357
7357
|
}
|
|
7358
|
-
),
|
|
7358
|
+
), P0 = ({
|
|
7359
7359
|
className: l,
|
|
7360
7360
|
color: e = c.GREY_DARK_5,
|
|
7361
7361
|
height: t = 20,
|
|
@@ -7395,7 +7395,7 @@ const q2 = (l, e) => {
|
|
|
7395
7395
|
)
|
|
7396
7396
|
]
|
|
7397
7397
|
}
|
|
7398
|
-
),
|
|
7398
|
+
), T0 = ({
|
|
7399
7399
|
className: l,
|
|
7400
7400
|
color: e = c.GREY_DARK_5,
|
|
7401
7401
|
height: t = 20,
|
|
@@ -7895,9 +7895,9 @@ const q2 = (l, e) => {
|
|
|
7895
7895
|
case "resourceManager":
|
|
7896
7896
|
return $0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7897
7897
|
case "image":
|
|
7898
|
-
return T0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7899
|
-
case "edit":
|
|
7900
7898
|
return P0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7899
|
+
case "edit":
|
|
7900
|
+
return T0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7901
7901
|
case "burgerMenu":
|
|
7902
7902
|
return j0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7903
7903
|
case "refresh":
|
|
@@ -7936,7 +7936,7 @@ const q2 = (l, e) => {
|
|
|
7936
7936
|
purple: c.PURPLE_LIGHT
|
|
7937
7937
|
};
|
|
7938
7938
|
return /* @__PURE__ */ n(
|
|
7939
|
-
|
|
7939
|
+
T1,
|
|
7940
7940
|
{
|
|
7941
7941
|
className: `snmt-regular-badge snmt-regular-badge--${t}`,
|
|
7942
7942
|
style: {
|
|
@@ -7985,7 +7985,7 @@ const q2 = (l, e) => {
|
|
|
7985
7985
|
canceled: c.GREY_DARK_3
|
|
7986
7986
|
};
|
|
7987
7987
|
return /* @__PURE__ */ g(
|
|
7988
|
-
|
|
7988
|
+
T1,
|
|
7989
7989
|
{
|
|
7990
7990
|
className: `snmt-status-badge snmt-status-badge--${t ? "with-icon" : "without-icon"}`,
|
|
7991
7991
|
style: { background: C[e], width: i ?? "fit-content" },
|
|
@@ -8070,14 +8070,12 @@ const l4 = ({
|
|
|
8070
8070
|
small: 20,
|
|
8071
8071
|
medium: 28,
|
|
8072
8072
|
large: 48
|
|
8073
|
-
}, Q1 = ({ size: l = "medium", color: e =
|
|
8074
|
-
const t =
|
|
8075
|
-
|
|
8076
|
-
|
|
8077
|
-
background: `${i} 0% 100%, ${i} 50% 100%, ${i} 100% 100%`,
|
|
8078
|
-
backgroundSize: "20% calc(200% + 20px)"
|
|
8073
|
+
}, Q1 = ({ size: l = "medium", color: e = c.BLUE_PRIMARY }) => {
|
|
8074
|
+
const t = {
|
|
8075
|
+
width: s4[l],
|
|
8076
|
+
"--loader-color": e
|
|
8079
8077
|
};
|
|
8080
|
-
return /* @__PURE__ */ n("span", { className: "snmt-loader", style:
|
|
8078
|
+
return /* @__PURE__ */ n("span", { className: "snmt-loader", style: t });
|
|
8081
8079
|
}, n4 = ({
|
|
8082
8080
|
width: l = 20,
|
|
8083
8081
|
height: e = 20,
|
|
@@ -9392,7 +9390,7 @@ const l4 = ({
|
|
|
9392
9390
|
}
|
|
9393
9391
|
)
|
|
9394
9392
|
}
|
|
9395
|
-
),
|
|
9393
|
+
), P4 = ({
|
|
9396
9394
|
className: l,
|
|
9397
9395
|
color: e = c.GREY_DARK_5,
|
|
9398
9396
|
height: t = 20,
|
|
@@ -9425,7 +9423,7 @@ const l4 = ({
|
|
|
9425
9423
|
)
|
|
9426
9424
|
]
|
|
9427
9425
|
}
|
|
9428
|
-
),
|
|
9426
|
+
), T4 = ({
|
|
9429
9427
|
className: l,
|
|
9430
9428
|
color: e = c.GREY_DARK_5,
|
|
9431
9429
|
height: t = 20,
|
|
@@ -10448,13 +10446,13 @@ const l4 = ({
|
|
|
10448
10446
|
case "arrow2Left":
|
|
10449
10447
|
return g4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10450
10448
|
case "link":
|
|
10451
|
-
return
|
|
10449
|
+
return P4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10452
10450
|
case "telegram":
|
|
10453
10451
|
return j4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10454
10452
|
case "mail":
|
|
10455
10453
|
return U4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10456
10454
|
case "github":
|
|
10457
|
-
return
|
|
10455
|
+
return T4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10458
10456
|
case "linkedIn":
|
|
10459
10457
|
return F4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10460
10458
|
case "emptyStateIcon":
|
|
@@ -10611,7 +10609,7 @@ const L6 = a1((l, e) => {
|
|
|
10611
10609
|
/* @__PURE__ */ n("span", { className: "custom-placeholder", children: s1 ? s : "" })
|
|
10612
10610
|
) : /* @__PURE__ */ n(t1, {}),
|
|
10613
10611
|
[s1, _, s]
|
|
10614
|
-
),
|
|
10612
|
+
), T = (N) => {
|
|
10615
10613
|
N.preventDefault(), N.stopPropagation();
|
|
10616
10614
|
}, Q = async (N) => {
|
|
10617
10615
|
const { target: R } = N;
|
|
@@ -10646,7 +10644,7 @@ const L6 = a1((l, e) => {
|
|
|
10646
10644
|
return A(R);
|
|
10647
10645
|
{
|
|
10648
10646
|
const o1 = H === "badge" && d.find((Z2) => Z2.label === N), j1 = typeof N == "object" ? N : Y(R);
|
|
10649
|
-
return /* @__PURE__ */ n("div", { onMouseDown:
|
|
10647
|
+
return /* @__PURE__ */ n("div", { onMouseDown: T, className: "tag-wrapper", children: H === "badge" ? /* @__PURE__ */ n(
|
|
10650
10648
|
m2,
|
|
10651
10649
|
{
|
|
10652
10650
|
variant: "regular",
|
|
@@ -10854,18 +10852,18 @@ const G1 = 100, w1 = {
|
|
|
10854
10852
|
), s1 = X1(L.offset), G = X1(S), [_, $] = D(!1), n1 = O(!1), d1 = E(
|
|
10855
10853
|
async ({
|
|
10856
10854
|
limit: A = G1,
|
|
10857
|
-
offset:
|
|
10855
|
+
offset: T,
|
|
10858
10856
|
search: Q
|
|
10859
10857
|
}) => {
|
|
10860
10858
|
W(!0);
|
|
10861
10859
|
try {
|
|
10862
10860
|
const Y = await t({
|
|
10863
10861
|
limit: A,
|
|
10864
|
-
offset:
|
|
10862
|
+
offset: T,
|
|
10865
10863
|
search: Q
|
|
10866
10864
|
});
|
|
10867
10865
|
x(
|
|
10868
|
-
(F) =>
|
|
10866
|
+
(F) => T === 0 ? Y.options : [...F ?? [], ...Y.options]
|
|
10869
10867
|
), H((F) => ({
|
|
10870
10868
|
...F,
|
|
10871
10869
|
count: Y.count
|
|
@@ -10884,9 +10882,9 @@ const G1 = 100, w1 = {
|
|
|
10884
10882
|
[x1]
|
|
10885
10883
|
), V1 = E(
|
|
10886
10884
|
async (A) => {
|
|
10887
|
-
y || A && L.count && L.count > ((p == null ? void 0 : p.length) ?? 0) && H((
|
|
10888
|
-
...
|
|
10889
|
-
offset:
|
|
10885
|
+
y || A && L.count && L.count > ((p == null ? void 0 : p.length) ?? 0) && H((T) => ({
|
|
10886
|
+
...T,
|
|
10887
|
+
offset: T.offset + G1
|
|
10890
10888
|
}));
|
|
10891
10889
|
},
|
|
10892
10890
|
[y, p == null ? void 0 : p.length, L.count]
|
|
@@ -10902,18 +10900,18 @@ const G1 = 100, w1 = {
|
|
|
10902
10900
|
(r || f) && d1(w1), n1.current = !0;
|
|
10903
10901
|
}, []), I(() => {
|
|
10904
10902
|
w && q((A) => {
|
|
10905
|
-
const
|
|
10903
|
+
const T = w.filter(
|
|
10906
10904
|
(Q) => !A.some((Y) => Y.value === Q.value)
|
|
10907
10905
|
);
|
|
10908
|
-
return [...A, ...
|
|
10906
|
+
return [...A, ...T];
|
|
10909
10907
|
});
|
|
10910
10908
|
}, [w]);
|
|
10911
10909
|
const i1 = E(
|
|
10912
10910
|
(A) => {
|
|
10913
10911
|
s && s(A);
|
|
10914
|
-
let
|
|
10915
|
-
if (a ?
|
|
10916
|
-
const Q =
|
|
10912
|
+
let T = [];
|
|
10913
|
+
if (a ? T = Array.isArray(A) ? A : [] : T = A ? [A] : [], S) {
|
|
10914
|
+
const Q = T.filter(
|
|
10917
10915
|
(Y) => !(j != null && j.some((F) => F.value === Y))
|
|
10918
10916
|
);
|
|
10919
10917
|
Q.length > 0 && q((Y = []) => [
|
|
@@ -10980,7 +10978,7 @@ const G1 = 100, w1 = {
|
|
|
10980
10978
|
}
|
|
10981
10979
|
}));
|
|
10982
10980
|
const g1 = U1(() => {
|
|
10983
|
-
const A = a && a !== "single",
|
|
10981
|
+
const A = a && a !== "single", T = l.selectedItemVariant === "badge", Q = T ? p || [] : p || [], Y = j, F = l, X = A ? {
|
|
10984
10982
|
mode: a,
|
|
10985
10983
|
overflowBehaviour: F.overflowBehaviour,
|
|
10986
10984
|
value: F.value
|
|
@@ -12036,7 +12034,7 @@ class I6 {
|
|
|
12036
12034
|
const $6 = (l, e) => {
|
|
12037
12035
|
l.pending[e] !== void 0 && (delete l.pending[e], l.pendingCount--);
|
|
12038
12036
|
};
|
|
12039
|
-
class
|
|
12037
|
+
class P6 extends S1 {
|
|
12040
12038
|
constructor(e, t, i) {
|
|
12041
12039
|
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
12042
12040
|
super(), this.backend = e, this.store = t, this.services = i, this.languageUtils = i.languageUtils, this.options = s, this.logger = e1.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = s.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = s.maxRetries >= 0 ? s.maxRetries : 5, this.retryTimeout = s.retryTimeout >= 1 ? s.retryTimeout : 350, this.state = {}, this.queue = [], this.backend && this.backend.init && this.backend.init(i, s.backend, s);
|
|
@@ -12228,7 +12226,7 @@ const C2 = () => ({
|
|
|
12228
12226
|
skipOnVariables: !0
|
|
12229
12227
|
}
|
|
12230
12228
|
}), h2 = (l) => (Z(l.ns) && (l.ns = [l.ns]), Z(l.fallbackLng) && (l.fallbackLng = [l.fallbackLng]), Z(l.fallbackNS) && (l.fallbackNS = [l.fallbackNS]), l.supportedLngs && l.supportedLngs.indexOf("cimode") < 0 && (l.supportedLngs = l.supportedLngs.concat(["cimode"])), l), y1 = () => {
|
|
12231
|
-
},
|
|
12229
|
+
}, T6 = (l) => {
|
|
12232
12230
|
Object.getOwnPropertyNames(Object.getPrototypeOf(l)).forEach((t) => {
|
|
12233
12231
|
typeof l[t] == "function" && (l[t] = l[t].bind(l));
|
|
12234
12232
|
});
|
|
@@ -12238,7 +12236,7 @@ class k1 extends S1 {
|
|
|
12238
12236
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
|
|
12239
12237
|
if (super(), this.options = h2(e), this.services = {}, this.logger = e1, this.modules = {
|
|
12240
12238
|
external: []
|
|
12241
|
-
},
|
|
12239
|
+
}, T6(this), t && !this.isInitialized && !e.isClone) {
|
|
12242
12240
|
if (!this.options.initImmediate)
|
|
12243
12241
|
return this.init(e, t), this;
|
|
12244
12242
|
setTimeout(() => {
|
|
@@ -12273,7 +12271,7 @@ class k1 extends S1 {
|
|
|
12273
12271
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
12274
12272
|
}), r && (!this.options.interpolation.format || this.options.interpolation.format === s.interpolation.format) && (w.formatter = C(r), w.formatter.init(w, this.options), this.options.interpolation.format = w.formatter.format.bind(w.formatter)), w.interpolator = new Y6(this.options), w.utils = {
|
|
12275
12273
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
12276
|
-
}, w.backendConnector = new
|
|
12274
|
+
}, w.backendConnector = new P6(C(this.modules.backend), w.resourceStore, w, this.options), w.backendConnector.on("*", function(u) {
|
|
12277
12275
|
for (var v = arguments.length, M = new Array(v > 1 ? v - 1 : 0), k = 1; k < v; k++)
|
|
12278
12276
|
M[k - 1] = arguments[k];
|
|
12279
12277
|
e.emit(u, ...M);
|
|
@@ -12471,22 +12469,22 @@ class k1 extends S1 {
|
|
|
12471
12469
|
};
|
|
12472
12470
|
}
|
|
12473
12471
|
}
|
|
12474
|
-
const
|
|
12475
|
-
|
|
12476
|
-
|
|
12477
|
-
|
|
12478
|
-
|
|
12479
|
-
|
|
12480
|
-
|
|
12481
|
-
|
|
12482
|
-
|
|
12483
|
-
|
|
12484
|
-
|
|
12485
|
-
|
|
12486
|
-
|
|
12487
|
-
|
|
12488
|
-
|
|
12489
|
-
|
|
12472
|
+
const P = k1.createInstance();
|
|
12473
|
+
P.createInstance = k1.createInstance;
|
|
12474
|
+
P.createInstance;
|
|
12475
|
+
P.dir;
|
|
12476
|
+
P.init;
|
|
12477
|
+
P.loadResources;
|
|
12478
|
+
P.reloadResources;
|
|
12479
|
+
P.use;
|
|
12480
|
+
P.changeLanguage;
|
|
12481
|
+
P.getFixedT;
|
|
12482
|
+
P.t;
|
|
12483
|
+
P.exists;
|
|
12484
|
+
P.setDefaultNamespace;
|
|
12485
|
+
P.hasLoadedNamespace;
|
|
12486
|
+
P.loadNamespaces;
|
|
12487
|
+
P.loadLanguages;
|
|
12490
12488
|
function j6() {
|
|
12491
12489
|
if (console && console.warn) {
|
|
12492
12490
|
for (var l = arguments.length, e = new Array(l), t = 0; t < l; t++)
|
|
@@ -12556,7 +12554,7 @@ const N2 = (l, e) => () => {
|
|
|
12556
12554
|
"/": "/",
|
|
12557
12555
|
"/": "/"
|
|
12558
12556
|
}, q6 = (l) => J6[l], Q6 = (l) => l.replace(z6, q6);
|
|
12559
|
-
let
|
|
12557
|
+
let P1 = {
|
|
12560
12558
|
bindI18n: "languageChanged",
|
|
12561
12559
|
bindI18nStore: "",
|
|
12562
12560
|
transEmptyNodeValue: "",
|
|
@@ -12568,11 +12566,11 @@ let T1 = {
|
|
|
12568
12566
|
};
|
|
12569
12567
|
const X6 = function() {
|
|
12570
12568
|
let l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
12571
|
-
|
|
12572
|
-
...
|
|
12569
|
+
P1 = {
|
|
12570
|
+
...P1,
|
|
12573
12571
|
...l
|
|
12574
12572
|
};
|
|
12575
|
-
}, e8 = () =>
|
|
12573
|
+
}, e8 = () => P1;
|
|
12576
12574
|
let M2;
|
|
12577
12575
|
const t8 = (l) => {
|
|
12578
12576
|
M2 = l;
|
|
@@ -12661,7 +12659,7 @@ function g8(l) {
|
|
|
12661
12659
|
e.current = l;
|
|
12662
12660
|
}, [l]), e.current;
|
|
12663
12661
|
}
|
|
12664
|
-
|
|
12662
|
+
P.use(l8).init({
|
|
12665
12663
|
defaultNS: "common",
|
|
12666
12664
|
lng: "en",
|
|
12667
12665
|
resources: {
|
package/dist/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.snmt-flex.inherit{flex-wrap:inherit}.snmt-avatar.ant-avatar{display:grid;border:none;background-color:var(--grey-dark-4);place-items:center;color:var(--grey-light-0)}.snmt-avatar.ant-avatar .ant-avatar-string{position:static;display:grid;place-items:center}.snmt-avatar.image.ant-avatar{background-color:transparent}.snmt-avatar-with-label-wrapper{display:grid;grid-template-columns:auto auto;place-items:center}.snmt-checkbox .ant-checkbox+span{padding-inline-start:12px}.ant-checkbox-checked .ant-checkbox-inner:after{transform:rotate(45deg) scale(1) translate(-40%,-60%)}.ant-checkbox-inner{width:20px!important;height:20px!important}.snmt-checkbox-light.ant-checkbox-wrapper .ant-checkbox .ant-checkbox-inner{border-color:var(--grey-light-4);border-radius:5px}.snmt-checkbox-light.ant-checkbox-wrapper .ant-checkbox.ant-checkbox-checked .ant-checkbox-inner{background-color:var(--blue-primary);border-color:var(--blue-primary)}.snmt-checkbox-light.ant-checkbox-wrapper .ant-checkbox.ant-checkbox-disabled .ant-checkbox-inner{background-color:var(--grey-light-3);border-color:var(--grey-light-3)}.snmt-checkbox-light.ant-checkbox-wrapper .ant-checkbox.ant-checkbox-disabled .ant-checkbox-inner:after{border-color:var(--grey-dark-2)}.snmt-checkbox-light.ant-checkbox-wrapper .ant-checkbox.ant-checkbox-indeterminate .ant-checkbox-inner{background-color:var(--blue-primary);border-color:var(--blue-primary)}.snmt-checkbox-light.ant-checkbox-wrapper .ant-checkbox.ant-checkbox-indeterminate .ant-checkbox-inner:after{background-color:var(--grey-light-0);border:1.5px solid var(--grey-light-0);transform:none;content:"";position:absolute;left:50%;top:50%;width:9px;height:1px;transform:translate(-50%,-50%)}.snmt-checkbox-light.ant-checkbox-wrapper:hover .ant-checkbox:not(.ant-checkbox-checked) .ant-checkbox-inner{border-color:var(--blue-dark-1)}.snmt-checkbox-light.ant-checkbox-wrapper:hover .ant-checkbox.ant-checkbox-checked .ant-checkbox-inner{background-color:var(--blue-hover);border-color:var(--blue-hover)}.snmt-checkbox-light.ant-checkbox-wrapper:hover .ant-checkbox-disabled.ant-checkbox-checked .ant-checkbox-inner{background-color:var(--grey-light-3);border-color:var(--grey-light-3)}.snmt-checkbox-light.ant-checkbox-wrapper:hover .ant-checkbox-disabled:not(.ant-checkbox-checked) .ant-checkbox-inner{background-color:var(--grey-light-3);border-color:var(--grey-light-3)}.snmt-checkbox-light.ant-checkbox-wrapper:hover .ant-checkbox.ant-checkbox-indeterminate .ant-checkbox-inner{background-color:var(--blue-hover)!important;border-color:var(--blue-hover)!important}.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-2)}.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)}.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-typography.ant-typography{color:var(--grey-dark-5);font-family:Montserrat,sans-serif;font-style:normal;font-feature-settings:"clig" off,"liga" off;line-height:normal;margin:0!important}.snmt-typography.ant-typography.snmt-typography-h1{font-size:25px;font-weight:700;line-height:128%}.snmt-typography.ant-typography.snmt-typography-h2{font-size:21px;font-weight:600;line-height:132%}.snmt-typography.ant-typography.snmt-typography-h3{font-size:19px;font-weight:600;line-height:124%}.snmt-typography.ant-typography.snmt-typography-h4,.snmt-typography.ant-typography.snmt-typography-h5{font-size:16px;font-weight:600;line-height:124%}.snmt-typography.ant-typography.snmt-typography-body1{font-size:16px;font-weight:500;line-height:150%}.snmt-typography.ant-typography.snmt-typography-body2{font-size:14px;font-weight:500;line-height:144%}.snmt-typography.ant-typography.snmt-typography-body3{font-size:12px;font-weight:600;line-height:120%}.snmt-typography.ant-typography.snmt-typography-body4{font-size:12px;font-weight:500;line-height:120%}.snmt-typography.ant-typography.snmt-typography-button{font-size:14px;font-weight:600;line-height:116%}.snmt-typography.ant-typography.snmt-typography-caption{font-size:10px;font-weight:500;line-height:120%}.snmt-typography.ant-typography.snmt-typography-tag{font-size:9px;font-weight:500;line-height:116%}.snmt-typography.ant-typography.snmt-typography-link{font-size:16px;font-weight:500;line-height:120%;text-decoration:underline;cursor:pointer}.snmt-typography.ant-typography.snmt-typography-link1{font-size:16px;font-weight:500;line-height:124%;text-decoration:underline;cursor:pointer}.snmt-typography.ant-typography.snmt-typography-link2{font-size:14px;font-weight:500;line-height:124%;text-decoration:underline;cursor:pointer}.snmt-typography.ant-typography.snmt-typography-align-center{text-align:center}.snmt-typography.ant-typography.snmt-typography-align-justify{text-align:justify}.snmt-typography.ant-typography.snmt-typography-align-left{text-align:left}.snmt-typography.ant-typography.snmt-typography-align-right{text-align:right}.snmt-tooltip.ant-tooltip>.ant-tooltip-arrow:before{background-color:var(--grey-dark-4);bottom:-1px}.snmt-tooltip.ant-tooltip>.ant-tooltip-content>.ant-tooltip-inner{background-color:var(--grey-dark-4);padding:12.5px 12px;border-radius:8px;color:var(--grey-light-0);font-family:Montserrat,sans-serif;font-size:10px;font-weight:500;line-height:12px}.snmt-regular-badge{display:grid;border:none;place-items:center;margin-inline-end:0}.snmt-regular-badge--medium{padding:4px 8px;border-radius:4px;height:28px}.snmt-regular-badge--small{padding:3px 6px;border-radius:4px;height:20px}.snmt-regular-badge--xsmall{padding:0 4px;border-radius:3px;height:16px}.snmt-status-badge{display:grid;border:none;place-items:center;border-radius:20px;height:24px}.snmt-status-badge--without-icon{padding:5px 8px}.snmt-status-badge--with-icon{display:grid;grid-template-columns:repeat(2,auto);justify-content:start;column-gap:4px;padding:5px 8px 5px 6px}.snmt-select{width:100%;position:relative;height:48px;font-family:Montserrat,sans-serif;font-weight:500}.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-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 .snmt-select .ant-select-arrow div{pointer-events:none!important;cursor:not-allowed!important}.snmt-select.snmt-select-single .ant-select-selection-item{font-family:Montserrat,sans-serif;font-weight:500;color:var(--grey-dark-5);max-width:none;font-size:16px}.snmt-select.snmt-select-single .ant-select-selection-item img{display:none}.snmt-select .ant-select-multiple .ant-select-selector{padding:10px 48px 10px 16px!important}.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{max-width:none}.snmt-select .ant-select-multiple .ant-select-selection-overflow-item .tag-wrapper{margin-right:4px}.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 .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.snmt-select-static{height:auto}.snmt-select.snmt-select-static .ant-select-multiple .ant-select-selection-overflow-item .tag-wrapper{margin-top:2px;margin-bottom:2px}.snmt-select.snmt-select-static .ant-select-multiple .ant-select-selection-overflow-item-suffix{width:0}.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>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>label.label-floating{top:-7px;font-size:12px}.snmt-select>label.label-disabled{color:var(--grey-dark-1)}.snmt-select>label.label-loading{padding-left:30px}.snmt-select>label.label-loading.label-floating{padding-left:0}.snmt-select 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 fieldset>legend{max-width:0;height:14px;padding:0;font-size:12px}.snmt-select fieldset>legend>span{opacity:0!important;padding:0 5px;pointer-events:none;-webkit-user-select:none;user-select:none}.snmt-select fieldset.fieldset-focused>legend,.snmt-select fieldset.fieldset-filled>legend,.snmt-select fieldset.fieldset-disabled>legend{max-width:100%}.snmt-select fieldset.fieldset-focused{border-color:var(--blue-primary);border-width:2px;color:var(--blue-primary)}.snmt-select fieldset.fieldset-disabled{border:none;color:var(--grey-dark-1)}.snmt-select fieldset.fieldset-disabled:not(.fieldset-filled){display:none}.snmt-select fieldset.fieldset-filled{border-color:var(--grey-light-4);color:var(--grey-dark-2)}.snmt-select fieldset.fieldset-filled.fieldset-disabled{color:var(--grey-dark-1)}.snmt-select fieldset.fieldset-error,.snmt-select fieldset.fieldset-focused.fieldset-error{border-color:var(--notification-error-dark)}.snmt-select:hover:not(.snmt-select-read-only) fieldset:not(.fieldset-disabled):not(.fieldset-error):not(.fieldset-focused){border-color:var(--blue-dark-1)}.snmt-select: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.snmt-select-read-only .ant-select-selector{background-color:var(--grey-light-2);cursor:not-allowed;pointer-events:none!important}.snmt-select.snmt-select-read-only .ant-select-arrow{pointer-events:all!important;cursor:pointer}.snmt-select.snmt-select-read-only .ant-select{pointer-events:auto!important}.snmt-select.snmt-select-focused fieldset.fieldset-focused:not(.fieldset-disabled):not(.fieldset-error){border-color:var(--blue-primary);border-width:2px}.snmt-select.snmt-select-focused>label.label-floating:not(.label-disabled){color:var(--blue-primary)}.snmt-select.snmt-select.snmt-select-borderless fieldset{border:none;border-radius:0}.snmt-select.snmt-select.snmt-select-borderless fieldset.fieldset-focused{border:1.5px solid var(--blue-primary)}.snmt-select.snmt-select.snmt-select-borderless fieldset.fieldset-hovered{border:1.5px solid var(--blue-dark-1)}.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%}}.clickable{cursor:pointer}.snmt-arrow-button{box-sizing:border-box;height:20px;width:20px;padding:0;margin:0;border:none;border-radius:4px;background-color:var(--grey-light-2);cursor:pointer}.snmt-arrow-button:hover{background-color:var(--grey-light-3)}.snmt-arrow-button-active{background-color:var(--blue-primary)}.snmt-arrow-button-active:hover{background-color:var(--blue-hover)}.snmt-arrow-button-disabled{cursor:default;background-color:var(--grey-light-3)}.snmt-arrow-button-disabled:hover{background-color:var(--grey-light-3)}.snmt-arrow-button-icon-rotation-initial{transition:transform .3s ease;position:relative;z-index:2}.snmt-arrow-button-icon-rotation-cw{transition:transform .3s ease;transform:rotate(180deg)}.snmt-arrow-button-icon-rotation-ccw{transition:transform .3s ease;transform:rotate(-180deg)}
|
|
1
|
+
.snmt-flex.inherit{flex-wrap:inherit}.snmt-avatar.ant-avatar{display:grid;border:none;background-color:var(--grey-dark-4);place-items:center;color:var(--grey-light-0)}.snmt-avatar.ant-avatar .ant-avatar-string{position:static;display:grid;place-items:center}.snmt-avatar.image.ant-avatar{background-color:transparent}.snmt-avatar-with-label-wrapper{display:grid;grid-template-columns:auto auto;place-items:center}.snmt-checkbox .ant-checkbox+span{padding-inline-start:12px}.ant-checkbox-checked .ant-checkbox-inner:after{transform:rotate(45deg) scale(1) translate(-40%,-60%)}.ant-checkbox-inner{width:20px!important;height:20px!important}.snmt-checkbox-light.ant-checkbox-wrapper .ant-checkbox .ant-checkbox-inner{border-color:var(--grey-light-4);border-radius:5px}.snmt-checkbox-light.ant-checkbox-wrapper .ant-checkbox.ant-checkbox-checked .ant-checkbox-inner{background-color:var(--blue-primary);border-color:var(--blue-primary)}.snmt-checkbox-light.ant-checkbox-wrapper .ant-checkbox.ant-checkbox-disabled .ant-checkbox-inner{background-color:var(--grey-light-3);border-color:var(--grey-light-3)}.snmt-checkbox-light.ant-checkbox-wrapper .ant-checkbox.ant-checkbox-disabled .ant-checkbox-inner:after{border-color:var(--grey-dark-2)}.snmt-checkbox-light.ant-checkbox-wrapper .ant-checkbox.ant-checkbox-indeterminate .ant-checkbox-inner{background-color:var(--blue-primary);border-color:var(--blue-primary)}.snmt-checkbox-light.ant-checkbox-wrapper .ant-checkbox.ant-checkbox-indeterminate .ant-checkbox-inner:after{background-color:var(--grey-light-0);border:1.5px solid var(--grey-light-0);transform:none;content:"";position:absolute;left:50%;top:50%;width:9px;height:1px;transform:translate(-50%,-50%)}.snmt-checkbox-light.ant-checkbox-wrapper:hover .ant-checkbox:not(.ant-checkbox-checked) .ant-checkbox-inner{border-color:var(--blue-dark-1)}.snmt-checkbox-light.ant-checkbox-wrapper:hover .ant-checkbox.ant-checkbox-checked .ant-checkbox-inner{background-color:var(--blue-hover);border-color:var(--blue-hover)}.snmt-checkbox-light.ant-checkbox-wrapper:hover .ant-checkbox-disabled.ant-checkbox-checked .ant-checkbox-inner{background-color:var(--grey-light-3);border-color:var(--grey-light-3)}.snmt-checkbox-light.ant-checkbox-wrapper:hover .ant-checkbox-disabled:not(.ant-checkbox-checked) .ant-checkbox-inner{background-color:var(--grey-light-3);border-color:var(--grey-light-3)}.snmt-checkbox-light.ant-checkbox-wrapper:hover .ant-checkbox.ant-checkbox-indeterminate .ant-checkbox-inner{background-color:var(--blue-hover)!important;border-color:var(--blue-hover)!important}.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-2)}.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)}.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-typography.ant-typography{color:var(--grey-dark-5);font-family:Montserrat,sans-serif;font-style:normal;font-feature-settings:"clig" off,"liga" off;line-height:normal;margin:0!important}.snmt-typography.ant-typography.snmt-typography-h1{font-size:25px;font-weight:700;line-height:128%}.snmt-typography.ant-typography.snmt-typography-h2{font-size:21px;font-weight:600;line-height:132%}.snmt-typography.ant-typography.snmt-typography-h3{font-size:19px;font-weight:600;line-height:124%}.snmt-typography.ant-typography.snmt-typography-h4,.snmt-typography.ant-typography.snmt-typography-h5{font-size:16px;font-weight:600;line-height:124%}.snmt-typography.ant-typography.snmt-typography-body1{font-size:16px;font-weight:500;line-height:150%}.snmt-typography.ant-typography.snmt-typography-body2{font-size:14px;font-weight:500;line-height:144%}.snmt-typography.ant-typography.snmt-typography-body3{font-size:12px;font-weight:600;line-height:120%}.snmt-typography.ant-typography.snmt-typography-body4{font-size:12px;font-weight:500;line-height:120%}.snmt-typography.ant-typography.snmt-typography-button{font-size:14px;font-weight:600;line-height:116%}.snmt-typography.ant-typography.snmt-typography-caption{font-size:10px;font-weight:500;line-height:120%}.snmt-typography.ant-typography.snmt-typography-tag{font-size:9px;font-weight:500;line-height:116%}.snmt-typography.ant-typography.snmt-typography-link{font-size:16px;font-weight:500;line-height:120%;text-decoration:underline;cursor:pointer}.snmt-typography.ant-typography.snmt-typography-link1{font-size:16px;font-weight:500;line-height:124%;text-decoration:underline;cursor:pointer}.snmt-typography.ant-typography.snmt-typography-link2{font-size:14px;font-weight:500;line-height:124%;text-decoration:underline;cursor:pointer}.snmt-typography.ant-typography.snmt-typography-align-center{text-align:center}.snmt-typography.ant-typography.snmt-typography-align-justify{text-align:justify}.snmt-typography.ant-typography.snmt-typography-align-left{text-align:left}.snmt-typography.ant-typography.snmt-typography-align-right{text-align:right}.snmt-tooltip.ant-tooltip>.ant-tooltip-arrow:before{background-color:var(--grey-dark-4);bottom:-1px}.snmt-tooltip.ant-tooltip>.ant-tooltip-content>.ant-tooltip-inner{background-color:var(--grey-dark-4);padding:12.5px 12px;border-radius:8px;color:var(--grey-light-0);font-family:Montserrat,sans-serif;font-size:10px;font-weight:500;line-height:12px}.snmt-regular-badge{display:grid;border:none;place-items:center;margin-inline-end:0}.snmt-regular-badge--medium{padding:4px 8px;border-radius:4px;height:28px}.snmt-regular-badge--small{padding:3px 6px;border-radius:4px;height:20px}.snmt-regular-badge--xsmall{padding:0 4px;border-radius:3px;height:16px}.snmt-status-badge{display:grid;border:none;place-items:center;border-radius:20px;height:24px}.snmt-status-badge--without-icon{padding:5px 8px}.snmt-status-badge--with-icon{display:grid;grid-template-columns:repeat(2,auto);justify-content:start;column-gap:4px;padding:5px 8px 5px 6px}.snmt-select{width:100%;position:relative;height:48px;font-family:Montserrat,sans-serif;font-weight:500}.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-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 .snmt-select .ant-select-arrow div{pointer-events:none!important;cursor:not-allowed!important}.snmt-select.snmt-select-single .ant-select-selection-item{font-family:Montserrat,sans-serif;font-weight:500;color:var(--grey-dark-5);max-width:none;font-size:16px}.snmt-select.snmt-select-single .ant-select-selection-item img{display:none}.snmt-select .ant-select-multiple .ant-select-selector{padding:10px 48px 10px 16px!important}.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{max-width:none}.snmt-select .ant-select-multiple .ant-select-selection-overflow-item .tag-wrapper{margin-right:4px}.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 .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.snmt-select-static{height:auto}.snmt-select.snmt-select-static .ant-select-multiple .ant-select-selection-overflow-item .tag-wrapper{margin-top:2px;margin-bottom:2px}.snmt-select.snmt-select-static .ant-select-multiple .ant-select-selection-overflow-item-suffix{width:0}.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>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>label.label-floating{top:-7px;font-size:12px}.snmt-select>label.label-disabled{color:var(--grey-dark-1)}.snmt-select>label.label-loading{padding-left:30px}.snmt-select>label.label-loading.label-floating{padding-left:0}.snmt-select 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 fieldset>legend{max-width:0;height:14px;padding:0;font-size:12px}.snmt-select fieldset>legend>span{opacity:0!important;padding:0 5px;pointer-events:none;-webkit-user-select:none;user-select:none}.snmt-select fieldset.fieldset-focused>legend,.snmt-select fieldset.fieldset-filled>legend,.snmt-select fieldset.fieldset-disabled>legend{max-width:100%}.snmt-select fieldset.fieldset-focused{border-color:var(--blue-primary);border-width:2px;color:var(--blue-primary)}.snmt-select fieldset.fieldset-disabled{border:none;color:var(--grey-dark-1)}.snmt-select fieldset.fieldset-disabled:not(.fieldset-filled){display:none}.snmt-select fieldset.fieldset-filled{border-color:var(--grey-light-4);color:var(--grey-dark-2)}.snmt-select fieldset.fieldset-filled.fieldset-disabled{color:var(--grey-dark-1)}.snmt-select fieldset.fieldset-error,.snmt-select fieldset.fieldset-focused.fieldset-error{border-color:var(--notification-error-dark)}.snmt-select:hover:not(.snmt-select-read-only) fieldset:not(.fieldset-disabled):not(.fieldset-error):not(.fieldset-focused){border-color:var(--blue-dark-1)}.snmt-select: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.snmt-select-read-only .ant-select-selector{background-color:var(--grey-light-2);cursor:not-allowed;pointer-events:none!important}.snmt-select.snmt-select-read-only .ant-select-arrow{pointer-events:all!important;cursor:pointer}.snmt-select.snmt-select-read-only .ant-select{pointer-events:auto!important}.snmt-select.snmt-select-focused fieldset.fieldset-focused:not(.fieldset-disabled):not(.fieldset-error){border-color:var(--blue-primary);border-width:2px}.snmt-select.snmt-select-focused>label.label-floating:not(.label-disabled){color:var(--blue-primary)}.snmt-select.snmt-select.snmt-select-borderless fieldset{border:none;border-radius:0}.snmt-select.snmt-select.snmt-select-borderless fieldset.fieldset-focused{border:1.5px solid var(--blue-primary)}.snmt-select.snmt-select.snmt-select-borderless fieldset.fieldset-hovered{border:1.5px solid var(--blue-dark-1)}.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;--loader-color: var(--blue-primary);background:linear-gradient(var(--loader-color) 0,var(--loader-color) calc(50% - 10px),transparent calc(50% - 10px),transparent calc(50% + 10px),var(--loader-color) calc(50% + 10px),var(--loader-color) 100%) 0% 100%/20% calc(200% + 20px) no-repeat,linear-gradient(var(--loader-color) 0,var(--loader-color) calc(50% - 10px),transparent calc(50% - 10px),transparent calc(50% + 10px),var(--loader-color) calc(50% + 10px),var(--loader-color) 100%) 50% 100%/20% calc(200% + 20px) no-repeat,linear-gradient(var(--loader-color) 0,var(--loader-color) calc(50% - 10px),transparent calc(50% - 10px),transparent calc(50% + 10px),var(--loader-color) calc(50% + 10px),var(--loader-color) 100%) 100% 100%/20% calc(200% + 20px) no-repeat}@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%}}.clickable{cursor:pointer}.snmt-arrow-button{box-sizing:border-box;height:20px;width:20px;padding:0;margin:0;border:none;border-radius:4px;background-color:var(--grey-light-2);cursor:pointer}.snmt-arrow-button:hover{background-color:var(--grey-light-3)}.snmt-arrow-button-active{background-color:var(--blue-primary)}.snmt-arrow-button-active:hover{background-color:var(--blue-hover)}.snmt-arrow-button-disabled{cursor:default;background-color:var(--grey-light-3)}.snmt-arrow-button-disabled:hover{background-color:var(--grey-light-3)}.snmt-arrow-button-icon-rotation-initial{transition:transform .3s ease;position:relative;z-index:2}.snmt-arrow-button-icon-rotation-cw{transition:transform .3s ease;transform:rotate(180deg)}.snmt-arrow-button-icon-rotation-ccw{transition:transform .3s ease;transform:rotate(-180deg)}
|
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.9.
|
|
4
|
+
"version": "2.9.15",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/city-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/async-select": "^1.13.
|
|
21
|
+
"@snmt-react-ui/async-select": "^1.13.15"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"@snmt-react-ui/core": "^2.8.1",
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"react": ">=18.2.0",
|
|
28
28
|
"react-i18next": "^14.0.5"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "6b48ea129a731a02640d6c00646baa5fb9116128"
|
|
31
31
|
}
|