@snmt-react-ui/async-select 1.8.25 → 1.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/async-select.js +338 -310
- package/dist/index.css +1 -1
- package/package.json +3 -3
package/dist/async-select.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import "./index.css";
|
|
2
|
-
import { jsx as t, Fragment as
|
|
3
|
-
import { createContext as n1, forwardRef as g1,
|
|
4
|
-
import { Select as A1, Flex as G1, Avatar as B1, Checkbox as W1, Typography as
|
|
5
|
-
var
|
|
2
|
+
import { jsx as t, Fragment as U, jsxs as c } from "react/jsx-runtime";
|
|
3
|
+
import { createContext as n1, forwardRef as g1, useRef as Y, useImperativeHandle as u1, useState as R, useEffect as A, useCallback as W, useContext as r1, useMemo as Z1 } from "react";
|
|
4
|
+
import { Select as A1, Flex as G1, Avatar as B1, Checkbox as W1, Typography as _1, Tag as y1, Popover as T1 } from "antd";
|
|
5
|
+
var b1 = Object.defineProperty, D1 = (i, o, e) => o in i ? b1(i, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[o] = e, K1 = (i, o, e) => D1(i, o + "", e), j1 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
6
6
|
function Y1() {
|
|
7
7
|
if (console && console.warn) {
|
|
8
8
|
for (var i = arguments.length, o = new Array(i), e = 0; e < i; e++)
|
|
9
9
|
o[e] = arguments[e];
|
|
10
|
-
|
|
10
|
+
P(o[0]) && (o[0] = `react-i18next:: ${o[0]}`), console.warn(...o);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
const L1 = {};
|
|
14
14
|
function p1() {
|
|
15
15
|
for (var i = arguments.length, o = new Array(i), e = 0; e < i; e++)
|
|
16
16
|
o[e] = arguments[e];
|
|
17
|
-
|
|
17
|
+
P(o[0]) && L1[o[0]] || (P(o[0]) && (L1[o[0]] = /* @__PURE__ */ new Date()), Y1(...o));
|
|
18
18
|
}
|
|
19
|
-
const
|
|
19
|
+
const x1 = (i, o) => () => {
|
|
20
20
|
if (i.isInitialized)
|
|
21
21
|
o();
|
|
22
22
|
else {
|
|
@@ -27,19 +27,19 @@ const _1 = (i, o) => () => {
|
|
|
27
27
|
};
|
|
28
28
|
i.on("initialized", e);
|
|
29
29
|
}
|
|
30
|
-
},
|
|
31
|
-
i.loadNamespaces(o,
|
|
32
|
-
},
|
|
33
|
-
|
|
30
|
+
}, v1 = (i, o, e) => {
|
|
31
|
+
i.loadNamespaces(o, x1(i, e));
|
|
32
|
+
}, N1 = (i, o, e, l) => {
|
|
33
|
+
P(e) && (e = [e]), e.forEach((n) => {
|
|
34
34
|
i.options.ns.indexOf(n) < 0 && i.options.ns.push(n);
|
|
35
|
-
}), i.loadLanguages(o,
|
|
35
|
+
}), i.loadLanguages(o, x1(i, l));
|
|
36
36
|
}, O1 = function(i, o) {
|
|
37
37
|
let e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
38
38
|
const l = o.languages[0], n = o.options ? o.options.fallbackLng : !1, a = o.languages[o.languages.length - 1];
|
|
39
39
|
if (l.toLowerCase() === "cimode") return !0;
|
|
40
|
-
const p = (r,
|
|
41
|
-
const
|
|
42
|
-
return
|
|
40
|
+
const p = (r, m) => {
|
|
41
|
+
const C = o.services.backendConnector.state[`${r}|${m}`];
|
|
42
|
+
return C === -1 || C === 2;
|
|
43
43
|
};
|
|
44
44
|
return e.bindI18n && e.bindI18n.indexOf("languageChanging") > -1 && o.services.backendConnector.backend && o.isLanguageChangingTo && !p(o.isLanguageChangingTo, i) ? !1 : !!(o.hasResourceBundle(l, i) || !o.services.backendConnector.backend || o.options.resources && !o.options.partialBundledLanguages || p(l, i) && (!n || p(a, i)));
|
|
45
45
|
}, F1 = function(i, o) {
|
|
@@ -50,7 +50,7 @@ const _1 = (i, o) => () => {
|
|
|
50
50
|
if (e.bindI18n && e.bindI18n.indexOf("languageChanging") > -1 && l.services.backendConnector.backend && l.isLanguageChangingTo && !n(l.isLanguageChangingTo, i)) return !1;
|
|
51
51
|
}
|
|
52
52
|
}) : O1(i, o, e);
|
|
53
|
-
},
|
|
53
|
+
}, P = (i) => typeof i == "string", S1 = (i) => typeof i == "object" && i !== null, U1 = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, P1 = {
|
|
54
54
|
"&": "&",
|
|
55
55
|
"&": "&",
|
|
56
56
|
"<": "<",
|
|
@@ -96,11 +96,11 @@ class o2 {
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
const i2 = (i, o) => {
|
|
99
|
-
const e =
|
|
99
|
+
const e = Y();
|
|
100
100
|
return A(() => {
|
|
101
101
|
e.current = i;
|
|
102
102
|
}, [i, o]), e.current;
|
|
103
|
-
},
|
|
103
|
+
}, H1 = (i, o, e, l) => i.getFixedT(o, e, l), t2 = (i, o, e, l) => W(H1(i, o, e, l), [i, o, e, l]), l2 = function(i) {
|
|
104
104
|
let o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
105
105
|
const {
|
|
106
106
|
i18n: e
|
|
@@ -110,8 +110,8 @@ const i2 = (i, o) => {
|
|
|
110
110
|
} = r1(e2) || {}, a = e || l || X1();
|
|
111
111
|
if (a && !a.reportNamespaces && (a.reportNamespaces = new o2()), !a) {
|
|
112
112
|
p1("You will need to pass in an i18next instance by using initReactI18next");
|
|
113
|
-
const u = (
|
|
114
|
-
return
|
|
113
|
+
const u = (_, x) => P(x) ? x : S1(x) && P(x.defaultValue) ? x.defaultValue : Array.isArray(_) ? _[_.length - 1] : _, H = [u, {}, !1];
|
|
114
|
+
return H.t = u, H.i18n = {}, H.ready = !1, H;
|
|
115
115
|
}
|
|
116
116
|
a.options.react && a.options.react.wait !== void 0 && p1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
|
|
117
117
|
const p = {
|
|
@@ -120,37 +120,37 @@ const i2 = (i, o) => {
|
|
|
120
120
|
...o
|
|
121
121
|
}, {
|
|
122
122
|
useSuspense: r,
|
|
123
|
-
keyPrefix:
|
|
123
|
+
keyPrefix: m
|
|
124
124
|
} = p;
|
|
125
|
-
let
|
|
126
|
-
|
|
127
|
-
const h = (a.isInitialized || a.initializedStoreOnce) &&
|
|
128
|
-
let
|
|
129
|
-
o.lng && (
|
|
130
|
-
const
|
|
125
|
+
let C = i;
|
|
126
|
+
C = P(C) ? [C] : C || ["translation"], a.reportNamespaces.addUsedNamespaces && a.reportNamespaces.addUsedNamespaces(C);
|
|
127
|
+
const h = (a.isInitialized || a.initializedStoreOnce) && C.every((u) => F1(u, a, p)), s = t2(a, o.lng || null, p.nsMode === "fallback" ? C : C[0], m), N = () => s, f = () => H1(a, o.lng || null, p.nsMode === "fallback" ? C : C[0], m), [I, V] = R(N);
|
|
128
|
+
let L = C.join();
|
|
129
|
+
o.lng && (L = `${o.lng}${L}`);
|
|
130
|
+
const Z = i2(L), B = Y(!0);
|
|
131
131
|
A(() => {
|
|
132
132
|
const {
|
|
133
133
|
bindI18n: u,
|
|
134
|
-
bindI18nStore:
|
|
134
|
+
bindI18nStore: H
|
|
135
135
|
} = p;
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
}) :
|
|
139
|
-
|
|
140
|
-
})), h &&
|
|
141
|
-
const
|
|
142
|
-
|
|
136
|
+
B.current = !0, !h && !r && (o.lng ? N1(a, o.lng, C, () => {
|
|
137
|
+
B.current && V(f);
|
|
138
|
+
}) : v1(a, C, () => {
|
|
139
|
+
B.current && V(f);
|
|
140
|
+
})), h && Z && Z !== L && B.current && V(f);
|
|
141
|
+
const _ = () => {
|
|
142
|
+
B.current && V(f);
|
|
143
143
|
};
|
|
144
|
-
return u && a && a.on(u,
|
|
145
|
-
|
|
144
|
+
return u && a && a.on(u, _), H && a && a.store.on(H, _), () => {
|
|
145
|
+
B.current = !1, u && a && u.split(" ").forEach((x) => a.off(x, _)), H && a && H.split(" ").forEach((x) => a.store.off(x, _));
|
|
146
146
|
};
|
|
147
|
-
}, [a,
|
|
148
|
-
|
|
149
|
-
}, [a,
|
|
150
|
-
const
|
|
151
|
-
if (
|
|
147
|
+
}, [a, L]), A(() => {
|
|
148
|
+
B.current && h && V(N);
|
|
149
|
+
}, [a, m, h]);
|
|
150
|
+
const y = [I, a, h];
|
|
151
|
+
if (y.t = I, y.i18n = a, y.ready = h, h || !h && !r) return y;
|
|
152
152
|
throw new Promise((u) => {
|
|
153
|
-
o.lng ?
|
|
153
|
+
o.lng ? N1(a, o.lng, C, () => u()) : v1(a, C, () => u());
|
|
154
154
|
});
|
|
155
155
|
}, t1 = ({
|
|
156
156
|
children: i,
|
|
@@ -189,11 +189,11 @@ const i2 = (i, o) => {
|
|
|
189
189
|
);
|
|
190
190
|
};
|
|
191
191
|
var D = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_1 = "var(--grey-light-1)", i.GREY_LIGHT_2 = "var(--grey-light-2)", i.GREY_LIGHT_3 = "var(--grey-light-3)", i.GREY_LIGHT_4 = "var(--grey-light-4)", i.GREY_DARK_1 = "var(--grey-dark-1)", i.GREY_DARK_2 = "var(--grey-dark-2)", i.GREY_DARK_3 = "var(--grey-dark-3)", i.GREY_DARK_4 = "var(--grey-dark-4)", i.GREY_DARK_5 = "var(--grey-dark-5)", i.BLUE_PRIMARY = "var(--blue-primary)", i.BLUE_HOVER = "var(--blue-hover)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.BLUE_DARK_3 = "var(--blue-dark-3)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_DARK = "var(--purple-dark)", i.NOTIFICATION_WARNING_LIGHT = "var(--notification-warning-light)", i.NOTIFICATION_WARNING_DARK = "var(--notification-warning-dark)", i.NOTIFICATION_SUCCESS_LIGHT = "var(--notification-success-light)", i.NOTIFICATION_SUCCESS_DARK = "var(--notification-success-dark)", i.NOTIFICATION_ERROR_LIGHT = "var(--notification-error-light)", i.NOTIFICATION_ERROR_DARK = "var(--notification-error-dark)", i.NOTIFICATION_ERROR_DARK_MODE = "var(--notification-error-dark-mode)", i))(D || {});
|
|
192
|
-
const
|
|
192
|
+
const m1 = n1({
|
|
193
193
|
locale: "en",
|
|
194
194
|
theme: "light"
|
|
195
195
|
});
|
|
196
|
-
|
|
196
|
+
m1.Provider;
|
|
197
197
|
const r2 = ({
|
|
198
198
|
checked: i = !0,
|
|
199
199
|
indeterminate: o = !1,
|
|
@@ -202,19 +202,19 @@ const r2 = ({
|
|
|
202
202
|
disabled: n = !1,
|
|
203
203
|
disableUncheck: a = !1
|
|
204
204
|
}) => {
|
|
205
|
-
const [p, r] =
|
|
205
|
+
const [p, r] = R(i), [m, C] = R(o);
|
|
206
206
|
A(() => {
|
|
207
|
-
r(i),
|
|
207
|
+
r(i), C(o);
|
|
208
208
|
}, [i, o]);
|
|
209
|
-
const { theme: h } = r1(
|
|
209
|
+
const { theme: h } = r1(m1);
|
|
210
210
|
return /* @__PURE__ */ t(
|
|
211
211
|
W1,
|
|
212
212
|
{
|
|
213
213
|
className: `snmt-checkbox snmt-checkbox-${h}`,
|
|
214
214
|
checked: p,
|
|
215
|
-
indeterminate:
|
|
215
|
+
indeterminate: m,
|
|
216
216
|
onChange: (s) => {
|
|
217
|
-
a && p || (
|
|
217
|
+
a && p || (C(!1), r(s.target.checked), l && l(s));
|
|
218
218
|
},
|
|
219
219
|
disabled: n,
|
|
220
220
|
children: e
|
|
@@ -222,11 +222,11 @@ const r2 = ({
|
|
|
222
222
|
);
|
|
223
223
|
};
|
|
224
224
|
var g = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_1 = "var(--grey-light-1)", i.GREY_LIGHT_2 = "var(--grey-light-2)", i.GREY_LIGHT_3 = "var(--grey-light-3)", i.GREY_LIGHT_4 = "var(--grey-light-4)", i.GREY_DARK_1 = "var(--grey-dark-1)", i.GREY_DARK_2 = "var(--grey-dark-2)", i.GREY_DARK_3 = "var(--grey-dark-3)", i.GREY_DARK_4 = "var(--grey-dark-4)", i.GREY_DARK_5 = "var(--grey-dark-5)", i.BLUE_PRIMARY = "var(--blue-primary)", i.BLUE_HOVER = "var(--blue-hover)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.BLUE_DARK_3 = "var(--blue-dark-3)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_DARK = "var(--purple-dark)", i.NOTIFICATION_WARNING_LIGHT = "var(--notification-warning-light)", i.NOTIFICATION_WARNING_DARK = "var(--notification-warning-dark)", i.NOTIFICATION_SUCCESS_LIGHT = "var(--notification-success-light)", i.NOTIFICATION_SUCCESS_DARK = "var(--notification-success-dark)", i.NOTIFICATION_ERROR_LIGHT = "var(--notification-error-light)", i.NOTIFICATION_ERROR_DARK = "var(--notification-error-dark)", i.NOTIFICATION_ERROR_DARK_MODE = "var(--notification-error-dark-mode)", i))(g || {});
|
|
225
|
-
const
|
|
225
|
+
const E1 = n1({
|
|
226
226
|
locale: "en",
|
|
227
227
|
theme: "light"
|
|
228
228
|
});
|
|
229
|
-
|
|
229
|
+
E1.Provider;
|
|
230
230
|
const s2 = ({
|
|
231
231
|
width: i = 20,
|
|
232
232
|
height: o = 20,
|
|
@@ -629,7 +629,7 @@ const s2 = ({
|
|
|
629
629
|
)
|
|
630
630
|
]
|
|
631
631
|
}
|
|
632
|
-
),
|
|
632
|
+
), m2 = ({
|
|
633
633
|
width: i = 20,
|
|
634
634
|
height: o = 20,
|
|
635
635
|
color: e = "#001E52",
|
|
@@ -676,7 +676,7 @@ const s2 = ({
|
|
|
676
676
|
)
|
|
677
677
|
]
|
|
678
678
|
}
|
|
679
|
-
),
|
|
679
|
+
), L2 = ({
|
|
680
680
|
width: i = 20,
|
|
681
681
|
height: o = 20,
|
|
682
682
|
color: e = "#001E52",
|
|
@@ -1351,7 +1351,7 @@ const s2 = ({
|
|
|
1351
1351
|
)
|
|
1352
1352
|
]
|
|
1353
1353
|
}
|
|
1354
|
-
),
|
|
1354
|
+
), b2 = ({
|
|
1355
1355
|
width: i = 10,
|
|
1356
1356
|
height: o = 10,
|
|
1357
1357
|
color: e = "#001E52",
|
|
@@ -1380,7 +1380,7 @@ const s2 = ({
|
|
|
1380
1380
|
)
|
|
1381
1381
|
]
|
|
1382
1382
|
}
|
|
1383
|
-
),
|
|
1383
|
+
), D2 = ({
|
|
1384
1384
|
width: i = 10,
|
|
1385
1385
|
height: o = 10,
|
|
1386
1386
|
color: e = "#001E52",
|
|
@@ -2613,7 +2613,7 @@ const s2 = ({
|
|
|
2613
2613
|
)
|
|
2614
2614
|
]
|
|
2615
2615
|
}
|
|
2616
|
-
),
|
|
2616
|
+
), m5 = ({
|
|
2617
2617
|
width: i = 24,
|
|
2618
2618
|
height: o = 24,
|
|
2619
2619
|
color: e = g.GREY_DARK_2,
|
|
@@ -2640,7 +2640,7 @@ const s2 = ({
|
|
|
2640
2640
|
}
|
|
2641
2641
|
)
|
|
2642
2642
|
}
|
|
2643
|
-
),
|
|
2643
|
+
), L5 = ({
|
|
2644
2644
|
width: i = 24,
|
|
2645
2645
|
height: o = 24,
|
|
2646
2646
|
color: e = g.GREY_DARK_2,
|
|
@@ -2702,14 +2702,14 @@ const s2 = ({
|
|
|
2702
2702
|
disabled: a = !1,
|
|
2703
2703
|
onClick: p
|
|
2704
2704
|
}) => {
|
|
2705
|
-
const [r,
|
|
2705
|
+
const [r, m] = R(n), { theme: C } = r1(E1), h = a ? C && C === "dark" ? g.GREY_LIGHT_4 : g.GREY_DARK_1 : l, s = a ? void 0 : p;
|
|
2706
2706
|
return A(() => {
|
|
2707
2707
|
if (n) {
|
|
2708
|
-
s && !a &&
|
|
2708
|
+
s && !a && m(`${n} clickable`);
|
|
2709
2709
|
return;
|
|
2710
2710
|
}
|
|
2711
|
-
s && !a &&
|
|
2712
|
-
}, [s, n, a]), /* @__PURE__ */ t(
|
|
2711
|
+
s && !a && m("clickable");
|
|
2712
|
+
}, [s, n, a]), /* @__PURE__ */ t(U, { children: (() => {
|
|
2713
2713
|
switch (i) {
|
|
2714
2714
|
case "nextIcon":
|
|
2715
2715
|
return j2({ width: o, height: e, color: h, className: r, onClick: s });
|
|
@@ -2738,9 +2738,9 @@ const s2 = ({
|
|
|
2738
2738
|
case "attention":
|
|
2739
2739
|
return u2({ width: o, height: e, color: h, className: r, onClick: s });
|
|
2740
2740
|
case "users":
|
|
2741
|
-
return
|
|
2741
|
+
return m2({ width: o, height: e, color: h, className: r, onClick: s });
|
|
2742
2742
|
case "mySkillsMatrix":
|
|
2743
|
-
return
|
|
2743
|
+
return L2({
|
|
2744
2744
|
width: o,
|
|
2745
2745
|
height: e,
|
|
2746
2746
|
color: h,
|
|
@@ -2826,9 +2826,9 @@ const s2 = ({
|
|
|
2826
2826
|
onClick: s
|
|
2827
2827
|
});
|
|
2828
2828
|
case "sortUp":
|
|
2829
|
-
return D2({ width: o, height: e, color: h, className: r, onClick: s });
|
|
2830
|
-
case "sortDown":
|
|
2831
2829
|
return b2({ width: o, height: e, color: h, className: r, onClick: s });
|
|
2830
|
+
case "sortDown":
|
|
2831
|
+
return D2({ width: o, height: e, color: h, className: r, onClick: s });
|
|
2832
2832
|
case "search":
|
|
2833
2833
|
return K2({ width: o, height: e, color: h, className: r, onClick: s });
|
|
2834
2834
|
case "arrowUpFilled":
|
|
@@ -2892,14 +2892,14 @@ const s2 = ({
|
|
|
2892
2892
|
case "openPointCircle":
|
|
2893
2893
|
return u5({ width: o, height: e, color: h, className: r, onClick: s });
|
|
2894
2894
|
case "community":
|
|
2895
|
-
return L5({ width: o, height: e, color: h, className: r, onClick: s });
|
|
2896
|
-
case "docs":
|
|
2897
2895
|
return m5({ width: o, height: e, color: h, className: r, onClick: s });
|
|
2896
|
+
case "docs":
|
|
2897
|
+
return L5({ width: o, height: e, color: h, className: r, onClick: s });
|
|
2898
2898
|
default:
|
|
2899
|
-
return /* @__PURE__ */ t(
|
|
2899
|
+
return /* @__PURE__ */ t(U, { children: "No Icon provided" });
|
|
2900
2900
|
}
|
|
2901
2901
|
})() });
|
|
2902
|
-
}, { Title: N5, Text: f5 } =
|
|
2902
|
+
}, { Title: N5, Text: f5 } = _1, M5 = {
|
|
2903
2903
|
h1: 1,
|
|
2904
2904
|
h2: 2,
|
|
2905
2905
|
h3: 3,
|
|
@@ -2915,32 +2915,46 @@ const s2 = ({
|
|
|
2915
2915
|
whiteSpace: p = "normal",
|
|
2916
2916
|
/** This prop allows you to enable tooltip if text size is too big */
|
|
2917
2917
|
trim: r = !1
|
|
2918
|
-
},
|
|
2919
|
-
const
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2918
|
+
}, m) => {
|
|
2919
|
+
const C = Y(null);
|
|
2920
|
+
u1(m, () => C.current);
|
|
2921
|
+
const [h, s] = R(!1);
|
|
2922
|
+
A(() => {
|
|
2923
|
+
var V;
|
|
2924
|
+
if (!r) return;
|
|
2925
|
+
const L = () => {
|
|
2926
|
+
C.current && s(C.current.scrollWidth > C.current.clientWidth);
|
|
2927
|
+
};
|
|
2928
|
+
L();
|
|
2929
|
+
const Z = new ResizeObserver(L);
|
|
2930
|
+
return C.current && Z.observe(C.current), (V = C.current) != null && V.parentElement && Z.observe(C.current.parentElement), () => {
|
|
2931
|
+
Z.disconnect();
|
|
2932
|
+
};
|
|
2933
|
+
}, [r]);
|
|
2934
|
+
const N = o === "h1" || o === "h2" || o === "h3" || o === "h4";
|
|
2935
|
+
let f = `snmt-typography snmt-typography-${o}`;
|
|
2936
|
+
i && i !== "inherit" && (f += ` snmt-typography-align-${i}`), a && (f += " collapsed");
|
|
2937
|
+
const I = {
|
|
2938
|
+
className: f,
|
|
2924
2939
|
style: { color: e, whiteSpace: r ? "nowrap" : p, display: r ? "block" : "" },
|
|
2925
2940
|
onClick: n,
|
|
2926
|
-
ref:
|
|
2927
|
-
ellipsis: r ? {
|
|
2941
|
+
ref: C,
|
|
2942
|
+
ellipsis: r && h ? {
|
|
2928
2943
|
tooltip: {
|
|
2929
2944
|
title: l,
|
|
2930
|
-
arrow: !0,
|
|
2931
2945
|
overlayClassName: "snmt-tooltip"
|
|
2932
2946
|
}
|
|
2933
2947
|
} : void 0
|
|
2934
2948
|
};
|
|
2935
|
-
return
|
|
2949
|
+
return N ? /* @__PURE__ */ t(N5, { level: M5[o], ...I, children: l }) : /* @__PURE__ */ t(f5, { ...I, children: l });
|
|
2936
2950
|
}
|
|
2937
2951
|
);
|
|
2938
2952
|
var k = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_1 = "var(--grey-light-1)", i.GREY_LIGHT_2 = "var(--grey-light-2)", i.GREY_LIGHT_3 = "var(--grey-light-3)", i.GREY_LIGHT_4 = "var(--grey-light-4)", i.GREY_DARK_1 = "var(--grey-dark-1)", i.GREY_DARK_2 = "var(--grey-dark-2)", i.GREY_DARK_3 = "var(--grey-dark-3)", i.GREY_DARK_4 = "var(--grey-dark-4)", i.GREY_DARK_5 = "var(--grey-dark-5)", i.BLUE_PRIMARY = "var(--blue-primary)", i.BLUE_HOVER = "var(--blue-hover)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.BLUE_DARK_3 = "var(--blue-dark-3)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_DARK = "var(--purple-dark)", i.NOTIFICATION_WARNING_LIGHT = "var(--notification-warning-light)", i.NOTIFICATION_WARNING_DARK = "var(--notification-warning-dark)", i.NOTIFICATION_SUCCESS_LIGHT = "var(--notification-success-light)", i.NOTIFICATION_SUCCESS_DARK = "var(--notification-success-dark)", i.NOTIFICATION_ERROR_LIGHT = "var(--notification-error-light)", i.NOTIFICATION_ERROR_DARK = "var(--notification-error-dark)", i.NOTIFICATION_ERROR_DARK_MODE = "var(--notification-error-dark-mode)", i))(k || {});
|
|
2939
|
-
const
|
|
2953
|
+
const I1 = n1({
|
|
2940
2954
|
locale: "en",
|
|
2941
2955
|
theme: "light"
|
|
2942
2956
|
});
|
|
2943
|
-
|
|
2957
|
+
I1.Provider;
|
|
2944
2958
|
const _5 = ({
|
|
2945
2959
|
width: i = 20,
|
|
2946
2960
|
height: o = 20,
|
|
@@ -3423,7 +3437,7 @@ const _5 = ({
|
|
|
3423
3437
|
)
|
|
3424
3438
|
]
|
|
3425
3439
|
}
|
|
3426
|
-
),
|
|
3440
|
+
), b5 = ({
|
|
3427
3441
|
width: i = 20,
|
|
3428
3442
|
height: o = 20,
|
|
3429
3443
|
color: e = "#001E52",
|
|
@@ -3470,7 +3484,7 @@ const _5 = ({
|
|
|
3470
3484
|
)
|
|
3471
3485
|
]
|
|
3472
3486
|
}
|
|
3473
|
-
),
|
|
3487
|
+
), D5 = ({
|
|
3474
3488
|
width: i = 20,
|
|
3475
3489
|
height: o = 20,
|
|
3476
3490
|
color: e = "#001E52",
|
|
@@ -4627,7 +4641,7 @@ const _5 = ({
|
|
|
4627
4641
|
)
|
|
4628
4642
|
]
|
|
4629
4643
|
}
|
|
4630
|
-
),
|
|
4644
|
+
), m3 = ({
|
|
4631
4645
|
className: i,
|
|
4632
4646
|
color: o = k.NOTIFICATION_WARNING_DARK,
|
|
4633
4647
|
height: e = 37,
|
|
@@ -4666,7 +4680,7 @@ const _5 = ({
|
|
|
4666
4680
|
)
|
|
4667
4681
|
]
|
|
4668
4682
|
}
|
|
4669
|
-
),
|
|
4683
|
+
), L3 = ({
|
|
4670
4684
|
className: i,
|
|
4671
4685
|
color: o = k.GREY_DARK_5,
|
|
4672
4686
|
height: e = 24,
|
|
@@ -5381,7 +5395,7 @@ const _5 = ({
|
|
|
5381
5395
|
}
|
|
5382
5396
|
)
|
|
5383
5397
|
}
|
|
5384
|
-
),
|
|
5398
|
+
), b3 = ({
|
|
5385
5399
|
width: i = 20,
|
|
5386
5400
|
height: o = 20,
|
|
5387
5401
|
color: e = "#001E52",
|
|
@@ -5407,7 +5421,7 @@ const _5 = ({
|
|
|
5407
5421
|
}
|
|
5408
5422
|
)
|
|
5409
5423
|
}
|
|
5410
|
-
),
|
|
5424
|
+
), D3 = ({
|
|
5411
5425
|
name: i,
|
|
5412
5426
|
width: o,
|
|
5413
5427
|
height: e,
|
|
@@ -5416,14 +5430,14 @@ const _5 = ({
|
|
|
5416
5430
|
disabled: a = !1,
|
|
5417
5431
|
onClick: p
|
|
5418
5432
|
}) => {
|
|
5419
|
-
const [r,
|
|
5433
|
+
const [r, m] = R(n), { theme: C } = r1(I1), h = a ? C && C === "dark" ? k.GREY_LIGHT_4 : k.GREY_DARK_1 : l, s = a ? void 0 : p;
|
|
5420
5434
|
return A(() => {
|
|
5421
5435
|
if (n) {
|
|
5422
|
-
s && !a &&
|
|
5436
|
+
s && !a && m(`${n} clickable`);
|
|
5423
5437
|
return;
|
|
5424
5438
|
}
|
|
5425
|
-
s && !a &&
|
|
5426
|
-
}, [s, n, a]), /* @__PURE__ */ t(
|
|
5439
|
+
s && !a && m("clickable");
|
|
5440
|
+
}, [s, n, a]), /* @__PURE__ */ t(U, { children: (() => {
|
|
5427
5441
|
switch (i) {
|
|
5428
5442
|
case "nextIcon":
|
|
5429
5443
|
return n3({ width: o, height: e, color: h, className: r, onClick: s });
|
|
@@ -5462,9 +5476,9 @@ const _5 = ({
|
|
|
5462
5476
|
onClick: s
|
|
5463
5477
|
});
|
|
5464
5478
|
case "skills":
|
|
5465
|
-
return
|
|
5479
|
+
return b5({ width: o, height: e, color: h, className: r, onClick: s });
|
|
5466
5480
|
case "skillsMatrices":
|
|
5467
|
-
return
|
|
5481
|
+
return D5({
|
|
5468
5482
|
width: o,
|
|
5469
5483
|
height: e,
|
|
5470
5484
|
color: h,
|
|
@@ -5568,9 +5582,9 @@ const _5 = ({
|
|
|
5568
5582
|
case "plusCircle":
|
|
5569
5583
|
return u3({ width: o, height: e, color: h, className: r, onClick: s });
|
|
5570
5584
|
case "warning":
|
|
5571
|
-
return L3({ width: o, height: e, color: h, className: r, onClick: s });
|
|
5572
|
-
case "back":
|
|
5573
5585
|
return m3({ width: o, height: e, color: h, className: r, onClick: s });
|
|
5586
|
+
case "back":
|
|
5587
|
+
return L3({ width: o, height: e, color: h, className: r, onClick: s });
|
|
5574
5588
|
case "bell":
|
|
5575
5589
|
return v3({ width: o, height: e, color: h, className: r, onClick: s });
|
|
5576
5590
|
case "contract":
|
|
@@ -5596,7 +5610,7 @@ const _5 = ({
|
|
|
5596
5610
|
case "projects":
|
|
5597
5611
|
return Z3({ width: o, height: e, color: h, className: r, onClick: s });
|
|
5598
5612
|
case "profile":
|
|
5599
|
-
return
|
|
5613
|
+
return b3({ width: o, height: e, color: h, className: r, onClick: s });
|
|
5600
5614
|
case "exit":
|
|
5601
5615
|
return A3({ width: o, height: e, color: h, className: r, onClick: s });
|
|
5602
5616
|
case "client":
|
|
@@ -5610,7 +5624,7 @@ const _5 = ({
|
|
|
5610
5624
|
case "docs":
|
|
5611
5625
|
return T3({ width: o, height: e, color: h, className: r, onClick: s });
|
|
5612
5626
|
default:
|
|
5613
|
-
return /* @__PURE__ */ t(
|
|
5627
|
+
return /* @__PURE__ */ t(U, { children: "No Icon provided" });
|
|
5614
5628
|
}
|
|
5615
5629
|
})() });
|
|
5616
5630
|
};
|
|
@@ -5620,7 +5634,7 @@ const K3 = n1({
|
|
|
5620
5634
|
theme: "light"
|
|
5621
5635
|
});
|
|
5622
5636
|
K3.Provider;
|
|
5623
|
-
const
|
|
5637
|
+
const V1 = ({
|
|
5624
5638
|
children: i,
|
|
5625
5639
|
width: o,
|
|
5626
5640
|
size: e = "small",
|
|
@@ -5636,7 +5650,7 @@ const I1 = ({
|
|
|
5636
5650
|
{
|
|
5637
5651
|
className: `snmt-tag ${e} ${a ? "disabled" : ""}`,
|
|
5638
5652
|
closeIcon: /* @__PURE__ */ t(
|
|
5639
|
-
|
|
5653
|
+
D3,
|
|
5640
5654
|
{
|
|
5641
5655
|
name: "errorSmall",
|
|
5642
5656
|
color: a ? l1.GREY_DARK_1 : l1.GREY_DARK_2,
|
|
@@ -5658,7 +5672,7 @@ const I1 = ({
|
|
|
5658
5672
|
) : i
|
|
5659
5673
|
}
|
|
5660
5674
|
);
|
|
5661
|
-
}, { Title: j3, Text: Y3 } =
|
|
5675
|
+
}, { Title: j3, Text: Y3 } = _1, O3 = {
|
|
5662
5676
|
h1: 1,
|
|
5663
5677
|
h2: 2,
|
|
5664
5678
|
h3: 3,
|
|
@@ -5674,24 +5688,38 @@ const I1 = ({
|
|
|
5674
5688
|
whiteSpace: p = "normal",
|
|
5675
5689
|
/** This prop allows you to enable tooltip if text size is too big */
|
|
5676
5690
|
trim: r = !1
|
|
5677
|
-
},
|
|
5678
|
-
const
|
|
5679
|
-
|
|
5680
|
-
|
|
5681
|
-
|
|
5682
|
-
|
|
5691
|
+
}, m) => {
|
|
5692
|
+
const C = Y(null);
|
|
5693
|
+
u1(m, () => C.current);
|
|
5694
|
+
const [h, s] = R(!1);
|
|
5695
|
+
A(() => {
|
|
5696
|
+
var V;
|
|
5697
|
+
if (!r) return;
|
|
5698
|
+
const L = () => {
|
|
5699
|
+
C.current && s(C.current.scrollWidth > C.current.clientWidth);
|
|
5700
|
+
};
|
|
5701
|
+
L();
|
|
5702
|
+
const Z = new ResizeObserver(L);
|
|
5703
|
+
return C.current && Z.observe(C.current), (V = C.current) != null && V.parentElement && Z.observe(C.current.parentElement), () => {
|
|
5704
|
+
Z.disconnect();
|
|
5705
|
+
};
|
|
5706
|
+
}, [r]);
|
|
5707
|
+
const N = o === "h1" || o === "h2" || o === "h3" || o === "h4";
|
|
5708
|
+
let f = `snmt-typography snmt-typography-${o}`;
|
|
5709
|
+
i && i !== "inherit" && (f += ` snmt-typography-align-${i}`), a && (f += " collapsed");
|
|
5710
|
+
const I = {
|
|
5711
|
+
className: f,
|
|
5683
5712
|
style: { color: e, whiteSpace: r ? "nowrap" : p, display: r ? "block" : "" },
|
|
5684
5713
|
onClick: n,
|
|
5685
|
-
ref:
|
|
5686
|
-
ellipsis: r ? {
|
|
5714
|
+
ref: C,
|
|
5715
|
+
ellipsis: r && h ? {
|
|
5687
5716
|
tooltip: {
|
|
5688
5717
|
title: l,
|
|
5689
|
-
arrow: !0,
|
|
5690
5718
|
overlayClassName: "snmt-tooltip"
|
|
5691
5719
|
}
|
|
5692
5720
|
} : void 0
|
|
5693
5721
|
};
|
|
5694
|
-
return
|
|
5722
|
+
return N ? /* @__PURE__ */ t(j3, { level: O3[o], ...I, children: l }) : /* @__PURE__ */ t(Y3, { ...I, children: l });
|
|
5695
5723
|
}
|
|
5696
5724
|
), S3 = ({
|
|
5697
5725
|
children: i,
|
|
@@ -5701,7 +5729,7 @@ const I1 = ({
|
|
|
5701
5729
|
placement: n = "topRight",
|
|
5702
5730
|
noPadding: a = !1
|
|
5703
5731
|
}) => {
|
|
5704
|
-
const [p, r] =
|
|
5732
|
+
const [p, r] = R(!1);
|
|
5705
5733
|
return /* @__PURE__ */ t(
|
|
5706
5734
|
T1,
|
|
5707
5735
|
{
|
|
@@ -5711,8 +5739,8 @@ const I1 = ({
|
|
|
5711
5739
|
trigger: "click",
|
|
5712
5740
|
overlayClassName: `snmt-popover ${a ? "" : "padding"}`,
|
|
5713
5741
|
open: e ?? p,
|
|
5714
|
-
onOpenChange: (
|
|
5715
|
-
r(
|
|
5742
|
+
onOpenChange: (m) => {
|
|
5743
|
+
r(m), l == null || l(m);
|
|
5716
5744
|
},
|
|
5717
5745
|
children: /* @__PURE__ */ t("div", { className: "wrapper", children: i })
|
|
5718
5746
|
}
|
|
@@ -5738,42 +5766,42 @@ const P3 = ({
|
|
|
5738
5766
|
options: a,
|
|
5739
5767
|
extraOptions: p
|
|
5740
5768
|
}) => {
|
|
5741
|
-
const { locale: r } = r1(
|
|
5769
|
+
const { locale: r } = r1(m1), { t: m } = l2("common", { lng: r }), [C, h] = R(!1);
|
|
5742
5770
|
if (A(() => {
|
|
5743
5771
|
i.length || h(!1);
|
|
5744
5772
|
}, [i]), !i.length)
|
|
5745
5773
|
return null;
|
|
5746
|
-
const s = (
|
|
5747
|
-
var
|
|
5748
|
-
return ((
|
|
5774
|
+
const s = (N) => {
|
|
5775
|
+
var f, I;
|
|
5776
|
+
return ((f = a == null ? void 0 : a.find((L) => L.value === N)) == null ? void 0 : f.label) || ((I = p == null ? void 0 : p.find((L) => L.value === N)) == null ? void 0 : I.label) || N;
|
|
5749
5777
|
};
|
|
5750
5778
|
return /* @__PURE__ */ c(
|
|
5751
5779
|
S3,
|
|
5752
5780
|
{
|
|
5753
5781
|
content: (
|
|
5754
5782
|
// 90: paddings + margins + gaps and so on
|
|
5755
|
-
/* @__PURE__ */ t("div", { style: { maxWidth: e - 90 }, className: "snmt-popover-from-select", children: /* @__PURE__ */ t(t1, { gap: 6, flexWrap: "wrap", children: i.map(({ value:
|
|
5756
|
-
|
|
5783
|
+
/* @__PURE__ */ t("div", { style: { maxWidth: e - 90 }, className: "snmt-popover-from-select", children: /* @__PURE__ */ t(t1, { gap: 6, flexWrap: "wrap", children: i.map(({ value: N }) => /* @__PURE__ */ t(
|
|
5784
|
+
V1,
|
|
5757
5785
|
{
|
|
5758
|
-
onClose: () => o(
|
|
5786
|
+
onClose: () => o(N),
|
|
5759
5787
|
closable: l,
|
|
5760
5788
|
disabled: n,
|
|
5761
|
-
children: s(
|
|
5789
|
+
children: s(N)
|
|
5762
5790
|
},
|
|
5763
|
-
|
|
5791
|
+
N
|
|
5764
5792
|
)) }) })
|
|
5765
5793
|
),
|
|
5766
5794
|
placement: "bottomRight",
|
|
5767
|
-
isOpen:
|
|
5795
|
+
isOpen: C,
|
|
5768
5796
|
setIsOpen: h,
|
|
5769
5797
|
children: [
|
|
5770
5798
|
i.length,
|
|
5771
5799
|
" ",
|
|
5772
|
-
|
|
5800
|
+
m("more")
|
|
5773
5801
|
]
|
|
5774
5802
|
}
|
|
5775
5803
|
);
|
|
5776
|
-
},
|
|
5804
|
+
}, f1 = ({ size: i = 30, color: o = "#004ed7" }) => {
|
|
5777
5805
|
const e = `no-repeat linear-gradient(${o}
|
|
5778
5806
|
calc(50% - 10px), #0000 0 calc(50% + 10px), ${o} 0)`, l = {
|
|
5779
5807
|
width: i,
|
|
@@ -5781,7 +5809,7 @@ const P3 = ({
|
|
|
5781
5809
|
backgroundSize: "20% calc(200% + 20px)"
|
|
5782
5810
|
};
|
|
5783
5811
|
return /* @__PURE__ */ t("span", { className: "snmt-loader", style: l });
|
|
5784
|
-
},
|
|
5812
|
+
}, M1 = g1(
|
|
5785
5813
|
({
|
|
5786
5814
|
value: i,
|
|
5787
5815
|
onChange: o,
|
|
@@ -5791,105 +5819,105 @@ const P3 = ({
|
|
|
5791
5819
|
options: a,
|
|
5792
5820
|
width: p,
|
|
5793
5821
|
disabled: r = !1,
|
|
5794
|
-
required:
|
|
5795
|
-
clearable:
|
|
5822
|
+
required: m = !1,
|
|
5823
|
+
clearable: C = !1,
|
|
5796
5824
|
scrollThresholdValue: h = 50,
|
|
5797
5825
|
onSearchChange: s,
|
|
5798
|
-
onDropdownVisibleChange:
|
|
5799
|
-
onScrollToEnd:
|
|
5800
|
-
onPopupScroll:
|
|
5801
|
-
id:
|
|
5802
|
-
extraOptions:
|
|
5803
|
-
dropdownRender:
|
|
5804
|
-
optionRender:
|
|
5805
|
-
isLoading:
|
|
5826
|
+
onDropdownVisibleChange: N,
|
|
5827
|
+
onScrollToEnd: f,
|
|
5828
|
+
onPopupScroll: I,
|
|
5829
|
+
id: V,
|
|
5830
|
+
extraOptions: L,
|
|
5831
|
+
dropdownRender: Z,
|
|
5832
|
+
optionRender: B,
|
|
5833
|
+
isLoading: y,
|
|
5806
5834
|
readOnly: u,
|
|
5807
|
-
error:
|
|
5808
|
-
},
|
|
5809
|
-
const [
|
|
5835
|
+
error: H
|
|
5836
|
+
}, _) => {
|
|
5837
|
+
const [x, K] = R(!1), [O, T] = R(!1), [F, $] = R(!0), [E, b] = R(i), Q = Y(null);
|
|
5810
5838
|
A(() => {
|
|
5811
|
-
|
|
5839
|
+
b(i);
|
|
5812
5840
|
}, [i]);
|
|
5813
|
-
const s1 = (
|
|
5814
|
-
|
|
5815
|
-
}, h1 = (
|
|
5816
|
-
var
|
|
5817
|
-
return !!((
|
|
5841
|
+
const s1 = (d) => {
|
|
5842
|
+
K(d), N && N(d);
|
|
5843
|
+
}, h1 = (d, w) => {
|
|
5844
|
+
var M;
|
|
5845
|
+
return !!((M = w == null ? void 0 : w.label) != null && M.toString().toLowerCase().includes(d.toLowerCase()));
|
|
5818
5846
|
}, X = () => {
|
|
5819
|
-
|
|
5820
|
-
},
|
|
5821
|
-
|
|
5822
|
-
},
|
|
5823
|
-
(
|
|
5824
|
-
if (
|
|
5825
|
-
const
|
|
5826
|
-
o == null || o(
|
|
5847
|
+
T(!0);
|
|
5848
|
+
}, z = () => {
|
|
5849
|
+
T(!1);
|
|
5850
|
+
}, j = W(
|
|
5851
|
+
(d) => {
|
|
5852
|
+
if (b(d), l) {
|
|
5853
|
+
const M = d;
|
|
5854
|
+
o == null || o(M);
|
|
5827
5855
|
return;
|
|
5828
5856
|
}
|
|
5829
|
-
const w =
|
|
5857
|
+
const w = d;
|
|
5830
5858
|
o == null || o(w);
|
|
5831
5859
|
},
|
|
5832
5860
|
[l, o]
|
|
5833
|
-
), c1 =
|
|
5861
|
+
), c1 = W(() => {
|
|
5834
5862
|
if (!(u || r)) {
|
|
5835
5863
|
if (l) {
|
|
5836
|
-
|
|
5864
|
+
j([]);
|
|
5837
5865
|
return;
|
|
5838
5866
|
}
|
|
5839
|
-
|
|
5867
|
+
j("");
|
|
5840
5868
|
}
|
|
5841
|
-
}, [r,
|
|
5842
|
-
(
|
|
5843
|
-
const w =
|
|
5844
|
-
|
|
5869
|
+
}, [r, j, l, u]), S = W(
|
|
5870
|
+
(d) => {
|
|
5871
|
+
const w = E.filter((M) => M !== d);
|
|
5872
|
+
j(w), b(w);
|
|
5845
5873
|
},
|
|
5846
|
-
[
|
|
5847
|
-
), e1 =
|
|
5848
|
-
(
|
|
5874
|
+
[j, E]
|
|
5875
|
+
), e1 = W(
|
|
5876
|
+
(d) => (E == null ? void 0 : E.indexOf(d)) === 0 ? (
|
|
5849
5877
|
// if the search input is empty
|
|
5850
5878
|
// then display the placeholder, else do not display it
|
|
5851
|
-
/* @__PURE__ */ t("span", { className: "custom-placeholder", children:
|
|
5852
|
-
) : /* @__PURE__ */ t(
|
|
5853
|
-
[
|
|
5854
|
-
), a1 = (
|
|
5855
|
-
|
|
5856
|
-
}, C1 = async (
|
|
5857
|
-
const { target: w } =
|
|
5858
|
-
w.scrollTop + w.offsetHeight >= w.scrollHeight - h && (
|
|
5859
|
-
},
|
|
5860
|
-
(
|
|
5861
|
-
var w,
|
|
5862
|
-
return ((w = a.find((o1) => o1.value ===
|
|
5863
|
-
(o1) => o1.value ===
|
|
5864
|
-
)) == null ? void 0 :
|
|
5879
|
+
/* @__PURE__ */ t("span", { className: "custom-placeholder", children: F ? e : "" })
|
|
5880
|
+
) : /* @__PURE__ */ t(U, {}),
|
|
5881
|
+
[F, E, e]
|
|
5882
|
+
), a1 = (d) => {
|
|
5883
|
+
d.preventDefault(), d.stopPropagation();
|
|
5884
|
+
}, C1 = async (d) => {
|
|
5885
|
+
const { target: w } = d;
|
|
5886
|
+
w.scrollTop + w.offsetHeight >= w.scrollHeight - h && (f == null || f(!0)), I && await I(d);
|
|
5887
|
+
}, J = W(
|
|
5888
|
+
(d) => {
|
|
5889
|
+
var w, M;
|
|
5890
|
+
return ((w = a.find((o1) => o1.value === d)) == null ? void 0 : w.label) || ((M = L == null ? void 0 : L.find(
|
|
5891
|
+
(o1) => o1.value === d
|
|
5892
|
+
)) == null ? void 0 : M.label) || d;
|
|
5865
5893
|
},
|
|
5866
|
-
[
|
|
5867
|
-
), d1 =
|
|
5868
|
-
(
|
|
5894
|
+
[L, a]
|
|
5895
|
+
), d1 = W(
|
|
5896
|
+
(d) => {
|
|
5869
5897
|
var w;
|
|
5870
5898
|
return /* @__PURE__ */ t(
|
|
5871
5899
|
P3,
|
|
5872
5900
|
{
|
|
5873
|
-
values:
|
|
5874
|
-
onTagClose:
|
|
5901
|
+
values: d,
|
|
5902
|
+
onTagClose: S,
|
|
5875
5903
|
maxWidth: ((w = Q.current) == null ? void 0 : w.clientWidth) || 0,
|
|
5876
5904
|
disabled: r,
|
|
5877
5905
|
closable: !u,
|
|
5878
5906
|
options: a,
|
|
5879
|
-
extraOptions:
|
|
5907
|
+
extraOptions: L
|
|
5880
5908
|
}
|
|
5881
5909
|
);
|
|
5882
5910
|
},
|
|
5883
|
-
[r,
|
|
5884
|
-
),
|
|
5885
|
-
({ label:
|
|
5886
|
-
[r,
|
|
5887
|
-
),
|
|
5911
|
+
[r, L, S, a, u]
|
|
5912
|
+
), v = W(
|
|
5913
|
+
({ label: d, value: w, mode: M }) => M === "filter" ? e1(w) : /* @__PURE__ */ t("div", { onMouseDown: a1, className: "tag-wrapper", children: /* @__PURE__ */ t(V1, { onClose: () => S(w), disabled: r, children: typeof d == "object" ? d : J(w) }) }),
|
|
5914
|
+
[r, J, S, e1]
|
|
5915
|
+
), G = Array.isArray(E) && E.length > 0 || !!E && typeof E == "string" && E.trim() !== "";
|
|
5888
5916
|
return /* @__PURE__ */ c("div", { className: "snmt-select-container", children: [
|
|
5889
5917
|
/* @__PURE__ */ c(
|
|
5890
5918
|
"div",
|
|
5891
5919
|
{
|
|
5892
|
-
className: `snmt-select-1-15-6 ${
|
|
5920
|
+
className: `snmt-select-1-15-6 ${O ? "snmt-select-focused" : ""}
|
|
5893
5921
|
${l ? "" : "snmt-select-single"} ${u ? "snmt-select-read-only" : ""}`,
|
|
5894
5922
|
ref: Q,
|
|
5895
5923
|
style: { width: p },
|
|
@@ -5899,33 +5927,33 @@ const P3 = ({
|
|
|
5899
5927
|
{
|
|
5900
5928
|
className: "snmt-select-blank",
|
|
5901
5929
|
popupClassName: u ? "dropdown-read-only" : "",
|
|
5902
|
-
id:
|
|
5903
|
-
ref:
|
|
5930
|
+
id: V,
|
|
5931
|
+
ref: _,
|
|
5904
5932
|
showSearch: !!n,
|
|
5905
5933
|
filterOption: n && h1,
|
|
5906
5934
|
onDropdownVisibleChange: s1,
|
|
5907
5935
|
disabled: r,
|
|
5908
|
-
value:
|
|
5909
|
-
labelRender: (
|
|
5910
|
-
const w =
|
|
5936
|
+
value: E || void 0,
|
|
5937
|
+
labelRender: (d) => {
|
|
5938
|
+
const w = J(d.value);
|
|
5911
5939
|
return r ? /* @__PURE__ */ t("span", { style: { color: D.GREY_DARK_1 }, children: w }) : w;
|
|
5912
5940
|
},
|
|
5913
5941
|
mode: l === "filter" ? "multiple" : l,
|
|
5914
|
-
onChange:
|
|
5942
|
+
onChange: j,
|
|
5915
5943
|
onFocus: X,
|
|
5916
|
-
onBlur:
|
|
5917
|
-
onSearch: (
|
|
5918
|
-
|
|
5944
|
+
onBlur: z,
|
|
5945
|
+
onSearch: (d) => {
|
|
5946
|
+
$(!d), s && s(d);
|
|
5919
5947
|
},
|
|
5920
|
-
onSelect: () =>
|
|
5921
|
-
onDeselect: () =>
|
|
5922
|
-
tagRender: (
|
|
5948
|
+
onSelect: () => $(!0),
|
|
5949
|
+
onDeselect: () => $(!0),
|
|
5950
|
+
tagRender: (d) => v({ ...d, mode: l }),
|
|
5923
5951
|
maxTagCount: "responsive",
|
|
5924
5952
|
maxTagPlaceholder: d1,
|
|
5925
5953
|
onPopupScroll: C1,
|
|
5926
|
-
prefix:
|
|
5927
|
-
suffixIcon: /* @__PURE__ */ t("div", { className: "wrapper-suffix-icon", children: l !== "filter" && /* @__PURE__ */ c(
|
|
5928
|
-
|
|
5954
|
+
prefix: y && /* @__PURE__ */ t(f1, { size: 15 }),
|
|
5955
|
+
suffixIcon: /* @__PURE__ */ t("div", { className: "wrapper-suffix-icon", children: l !== "filter" && /* @__PURE__ */ c(U, { children: [
|
|
5956
|
+
E && !!E.length && (l || C) && /* @__PURE__ */ t(
|
|
5929
5957
|
"div",
|
|
5930
5958
|
{
|
|
5931
5959
|
onClick: c1,
|
|
@@ -5946,27 +5974,27 @@ const P3 = ({
|
|
|
5946
5974
|
{
|
|
5947
5975
|
name: "selectArrowIcon",
|
|
5948
5976
|
color: r ? D.GREY_DARK_1 : D.GREY_DARK_5,
|
|
5949
|
-
className:
|
|
5950
|
-
onClick: () =>
|
|
5977
|
+
className: x ? "select-arrow-rotated" : "select-arrow",
|
|
5978
|
+
onClick: () => K(!x)
|
|
5951
5979
|
}
|
|
5952
5980
|
)
|
|
5953
5981
|
] }) }),
|
|
5954
5982
|
removeIcon: /* @__PURE__ */ t(i1, { name: "errorSmall", color: D.GREY_DARK_1 }),
|
|
5955
5983
|
options: a,
|
|
5956
|
-
optionRender: (
|
|
5984
|
+
optionRender: (d) => B ? B(d.data) : /* @__PURE__ */ c(t1, { justifyContent: "space-between", alignItems: "center", flex: "1", children: [
|
|
5957
5985
|
/* @__PURE__ */ c(t1, { alignItems: "center", gap: 12, children: [
|
|
5958
5986
|
l && /* @__PURE__ */ t(
|
|
5959
5987
|
r2,
|
|
5960
5988
|
{
|
|
5961
|
-
checked: !!(
|
|
5989
|
+
checked: !!(E != null && E.includes(d.value))
|
|
5962
5990
|
}
|
|
5963
5991
|
),
|
|
5964
5992
|
/* @__PURE__ */ c(t1, { alignItems: "center", gap: 8, children: [
|
|
5965
|
-
|
|
5966
|
-
/* @__PURE__ */ t("span", { children:
|
|
5993
|
+
d.data.image && /* @__PURE__ */ t(n2, { src: d.data.image, size: 20 }),
|
|
5994
|
+
/* @__PURE__ */ t("span", { children: d.label })
|
|
5967
5995
|
] })
|
|
5968
5996
|
] }),
|
|
5969
|
-
!l &&
|
|
5997
|
+
!l && E === d.value && /* @__PURE__ */ t(
|
|
5970
5998
|
i1,
|
|
5971
5999
|
{
|
|
5972
6000
|
name: "ok",
|
|
@@ -5976,32 +6004,32 @@ const P3 = ({
|
|
|
5976
6004
|
}
|
|
5977
6005
|
)
|
|
5978
6006
|
] }),
|
|
5979
|
-
dropdownRender: (
|
|
5980
|
-
/* @__PURE__ */ t("div", { className: "dropdown-menu", children:
|
|
5981
|
-
|
|
6007
|
+
dropdownRender: (d) => /* @__PURE__ */ c("div", { className: "dropdown-container", children: [
|
|
6008
|
+
/* @__PURE__ */ t("div", { className: "dropdown-menu", children: Z ? Z(d) : d }),
|
|
6009
|
+
y && /* @__PURE__ */ t("div", { className: "loading-overlay", children: /* @__PURE__ */ t(f1, { size: 28 }) })
|
|
5982
6010
|
] })
|
|
5983
6011
|
}
|
|
5984
6012
|
),
|
|
5985
|
-
e && /* @__PURE__ */ c(
|
|
6013
|
+
e && /* @__PURE__ */ c(U, { children: [
|
|
5986
6014
|
/* @__PURE__ */ t(
|
|
5987
6015
|
"label",
|
|
5988
6016
|
{
|
|
5989
|
-
className: `${
|
|
5990
|
-
children:
|
|
6017
|
+
className: `${O || G ? "label-floating" : ""} ${r ? "label-disabled" : ""} ${O ? "label-focused" : ""} ${y ? "label-loading" : ""} ${H ? "label-error" : ""}`,
|
|
6018
|
+
children: m ? `${e}*` : e
|
|
5991
6019
|
}
|
|
5992
6020
|
),
|
|
5993
6021
|
/* @__PURE__ */ t(
|
|
5994
6022
|
"fieldset",
|
|
5995
6023
|
{
|
|
5996
|
-
className: `${
|
|
5997
|
-
children: /* @__PURE__ */ t("legend", { children: /* @__PURE__ */ t("span", { children:
|
|
6024
|
+
className: `${O ? "fieldset-focused" : ""} ${r ? "fieldset-disabled" : ""} ${G ? "fieldset-filled" : ""} ${H ? "fieldset-error" : ""}`,
|
|
6025
|
+
children: /* @__PURE__ */ t("legend", { children: /* @__PURE__ */ t("span", { children: m ? `${e}*` : e }) })
|
|
5998
6026
|
}
|
|
5999
6027
|
)
|
|
6000
6028
|
] })
|
|
6001
6029
|
]
|
|
6002
6030
|
}
|
|
6003
6031
|
),
|
|
6004
|
-
|
|
6032
|
+
H && /* @__PURE__ */ c(t1, { justifyContent: "flex-start", gap: 6, children: [
|
|
6005
6033
|
/* @__PURE__ */ t(
|
|
6006
6034
|
i1,
|
|
6007
6035
|
{
|
|
@@ -6011,13 +6039,13 @@ const P3 = ({
|
|
|
6011
6039
|
width: 16
|
|
6012
6040
|
}
|
|
6013
6041
|
),
|
|
6014
|
-
typeof
|
|
6042
|
+
typeof H == "string" ? /* @__PURE__ */ t(F3, { color: D.NOTIFICATION_ERROR_DARK, variant: "body4", children: H }) : H
|
|
6015
6043
|
] })
|
|
6016
6044
|
] });
|
|
6017
6045
|
}
|
|
6018
6046
|
);
|
|
6019
6047
|
function $3(i, o = 500) {
|
|
6020
|
-
const e =
|
|
6048
|
+
const e = Y();
|
|
6021
6049
|
return A(() => () => {
|
|
6022
6050
|
e.current && clearTimeout(e.current);
|
|
6023
6051
|
}, []), (...n) => {
|
|
@@ -6027,13 +6055,13 @@ function $3(i, o = 500) {
|
|
|
6027
6055
|
clearTimeout(e.current), e.current = a;
|
|
6028
6056
|
};
|
|
6029
6057
|
}
|
|
6030
|
-
function
|
|
6031
|
-
const o =
|
|
6058
|
+
function R1(i) {
|
|
6059
|
+
const o = Y(i);
|
|
6032
6060
|
return A(() => {
|
|
6033
6061
|
o.current = i;
|
|
6034
6062
|
}, [i]), o.current;
|
|
6035
6063
|
}
|
|
6036
|
-
const k1 = 100,
|
|
6064
|
+
const k1 = 100, q = {
|
|
6037
6065
|
offset: 0
|
|
6038
6066
|
}, X3 = g1(
|
|
6039
6067
|
({
|
|
@@ -6045,106 +6073,106 @@ const k1 = 100, J = {
|
|
|
6045
6073
|
disabled: a,
|
|
6046
6074
|
scrollThresholdValue: p,
|
|
6047
6075
|
placeholder: r,
|
|
6048
|
-
mode:
|
|
6049
|
-
loadOnClosedState:
|
|
6076
|
+
mode: m,
|
|
6077
|
+
loadOnClosedState: C,
|
|
6050
6078
|
preloadOptions: h,
|
|
6051
6079
|
extraOptions: s,
|
|
6052
|
-
onDropdownVisibleChange:
|
|
6053
|
-
optionRender:
|
|
6054
|
-
dropdownRender:
|
|
6055
|
-
readOnly:
|
|
6056
|
-
clearable:
|
|
6057
|
-
required:
|
|
6058
|
-
error:
|
|
6059
|
-
},
|
|
6060
|
-
const [u,
|
|
6080
|
+
onDropdownVisibleChange: N,
|
|
6081
|
+
optionRender: f,
|
|
6082
|
+
dropdownRender: I,
|
|
6083
|
+
readOnly: V,
|
|
6084
|
+
clearable: L = !1,
|
|
6085
|
+
required: Z = !1,
|
|
6086
|
+
error: B
|
|
6087
|
+
}, y) => {
|
|
6088
|
+
const [u, H] = R(), [_, x] = R(q), [K, O] = R(!1), [T, F] = R(), [$, E] = R(!1), [b, Q] = R(
|
|
6061
6089
|
s ?? []
|
|
6062
|
-
), s1 =
|
|
6090
|
+
), s1 = R1(_.offset), h1 = R1(T), [X, z] = R(!1), j = Y(!1), c1 = W(
|
|
6063
6091
|
async ({
|
|
6064
|
-
limit:
|
|
6065
|
-
offset:
|
|
6066
|
-
search:
|
|
6092
|
+
limit: v = k1,
|
|
6093
|
+
offset: G,
|
|
6094
|
+
search: d
|
|
6067
6095
|
}) => {
|
|
6068
|
-
|
|
6096
|
+
O(!0);
|
|
6069
6097
|
try {
|
|
6070
6098
|
const w = await i({
|
|
6071
|
-
limit:
|
|
6072
|
-
offset:
|
|
6073
|
-
search:
|
|
6099
|
+
limit: v,
|
|
6100
|
+
offset: G,
|
|
6101
|
+
search: d
|
|
6074
6102
|
});
|
|
6075
|
-
|
|
6076
|
-
(
|
|
6077
|
-
),
|
|
6078
|
-
...
|
|
6103
|
+
H(
|
|
6104
|
+
(M) => G === 0 ? w.options : [...M ?? [], ...w.options]
|
|
6105
|
+
), x((M) => ({
|
|
6106
|
+
...M,
|
|
6079
6107
|
count: w.count
|
|
6080
6108
|
}));
|
|
6081
6109
|
} catch (w) {
|
|
6082
6110
|
return console.error("AsyncSelect. fetchOptions error", w), [];
|
|
6083
6111
|
} finally {
|
|
6084
|
-
|
|
6112
|
+
O(!1);
|
|
6085
6113
|
}
|
|
6086
6114
|
},
|
|
6087
6115
|
[i]
|
|
6088
|
-
),
|
|
6089
|
-
|
|
6090
|
-
}), e1 =
|
|
6091
|
-
(
|
|
6092
|
-
[
|
|
6093
|
-
), a1 =
|
|
6094
|
-
async (
|
|
6095
|
-
|
|
6096
|
-
...
|
|
6097
|
-
offset:
|
|
6116
|
+
), S = $3((v) => {
|
|
6117
|
+
F(v), v || x(q);
|
|
6118
|
+
}), e1 = W(
|
|
6119
|
+
(v) => S(v),
|
|
6120
|
+
[S]
|
|
6121
|
+
), a1 = W(
|
|
6122
|
+
async (v) => {
|
|
6123
|
+
K || v && _.count && _.count > ((u == null ? void 0 : u.length) ?? 0) && x((G) => ({
|
|
6124
|
+
...G,
|
|
6125
|
+
offset: G.offset + k1
|
|
6098
6126
|
}));
|
|
6099
6127
|
},
|
|
6100
|
-
[
|
|
6101
|
-
), C1 =
|
|
6102
|
-
(
|
|
6103
|
-
|
|
6128
|
+
[K, u == null ? void 0 : u.length, _.count]
|
|
6129
|
+
), C1 = W(
|
|
6130
|
+
(v) => {
|
|
6131
|
+
E(v), !v && T && (F(void 0), x(q), z(!0)), N == null || N(v);
|
|
6104
6132
|
},
|
|
6105
|
-
[
|
|
6133
|
+
[N, T]
|
|
6106
6134
|
);
|
|
6107
6135
|
A(() => {
|
|
6108
|
-
if (!
|
|
6109
|
-
(X ||
|
|
6110
|
-
}, [X,
|
|
6111
|
-
(
|
|
6136
|
+
if (!j.current || K) return;
|
|
6137
|
+
(X || $ && (s1 !== _.offset || h1 !== T || !u)) && (c1({ offset: _.offset, limit: k1, search: T }), X && z(!1));
|
|
6138
|
+
}, [X, $, _.offset, T, s1, h1, u, K]), A(() => {
|
|
6139
|
+
(C || h) && c1(q), j.current = !0;
|
|
6112
6140
|
}, []), A(() => {
|
|
6113
|
-
s && Q((
|
|
6114
|
-
const
|
|
6115
|
-
(
|
|
6141
|
+
s && Q((v) => {
|
|
6142
|
+
const G = s.filter(
|
|
6143
|
+
(d) => !v.some((w) => w.value === d.value)
|
|
6116
6144
|
);
|
|
6117
|
-
return [...
|
|
6145
|
+
return [...v, ...G];
|
|
6118
6146
|
});
|
|
6119
6147
|
}, [s]);
|
|
6120
|
-
const
|
|
6121
|
-
(
|
|
6122
|
-
e && e(
|
|
6123
|
-
let
|
|
6124
|
-
if (
|
|
6125
|
-
const
|
|
6126
|
-
(w) => !(
|
|
6148
|
+
const J = W(
|
|
6149
|
+
(v) => {
|
|
6150
|
+
e && e(v);
|
|
6151
|
+
let G = [];
|
|
6152
|
+
if (m ? G = Array.isArray(v) ? v : [] : G = v ? [v] : [], T) {
|
|
6153
|
+
const d = G.filter(
|
|
6154
|
+
(w) => !(b != null && b.some((M) => M.value === w))
|
|
6127
6155
|
);
|
|
6128
|
-
|
|
6156
|
+
d.length > 0 && Q((w = []) => [
|
|
6129
6157
|
...w,
|
|
6130
|
-
...
|
|
6131
|
-
const w1 = u == null ? void 0 : u.find((o1) => o1.value ===
|
|
6158
|
+
...d.map((M) => {
|
|
6159
|
+
const w1 = u == null ? void 0 : u.find((o1) => o1.value === M);
|
|
6132
6160
|
return {
|
|
6133
|
-
value:
|
|
6134
|
-
label: (w1 == null ? void 0 : w1.label) ??
|
|
6161
|
+
value: M,
|
|
6162
|
+
label: (w1 == null ? void 0 : w1.label) ?? M
|
|
6135
6163
|
};
|
|
6136
6164
|
})
|
|
6137
|
-
]),
|
|
6165
|
+
]), F(void 0), x(q), z(!0);
|
|
6138
6166
|
}
|
|
6139
6167
|
},
|
|
6140
|
-
[e,
|
|
6141
|
-
), d1 =
|
|
6168
|
+
[e, T, m, u, b]
|
|
6169
|
+
), d1 = Z1(
|
|
6142
6170
|
() => ({
|
|
6143
6171
|
id: n,
|
|
6144
6172
|
width: o,
|
|
6145
6173
|
options: u || [],
|
|
6146
|
-
onChange:
|
|
6147
|
-
ref:
|
|
6174
|
+
onChange: J,
|
|
6175
|
+
ref: y,
|
|
6148
6176
|
placeholder: r,
|
|
6149
6177
|
search: !0,
|
|
6150
6178
|
value: l,
|
|
@@ -6153,21 +6181,21 @@ const k1 = 100, J = {
|
|
|
6153
6181
|
scrollThresholdValue: p,
|
|
6154
6182
|
onScrollToEnd: a1,
|
|
6155
6183
|
disabled: a,
|
|
6156
|
-
extraOptions:
|
|
6157
|
-
isLoading:
|
|
6158
|
-
optionRender:
|
|
6159
|
-
dropdownRender:
|
|
6160
|
-
readOnly:
|
|
6161
|
-
clearable:
|
|
6162
|
-
required:
|
|
6163
|
-
error:
|
|
6184
|
+
extraOptions: b,
|
|
6185
|
+
isLoading: K,
|
|
6186
|
+
optionRender: f,
|
|
6187
|
+
dropdownRender: I,
|
|
6188
|
+
readOnly: V,
|
|
6189
|
+
clearable: L,
|
|
6190
|
+
required: Z,
|
|
6191
|
+
error: B
|
|
6164
6192
|
}),
|
|
6165
6193
|
[
|
|
6166
6194
|
n,
|
|
6167
6195
|
o,
|
|
6168
6196
|
u,
|
|
6169
|
-
|
|
6170
|
-
|
|
6197
|
+
J,
|
|
6198
|
+
y,
|
|
6171
6199
|
r,
|
|
6172
6200
|
l,
|
|
6173
6201
|
e1,
|
|
@@ -6175,21 +6203,21 @@ const k1 = 100, J = {
|
|
|
6175
6203
|
p,
|
|
6176
6204
|
a1,
|
|
6177
6205
|
a,
|
|
6178
|
-
T,
|
|
6179
6206
|
b,
|
|
6207
|
+
K,
|
|
6208
|
+
f,
|
|
6180
6209
|
I,
|
|
6181
|
-
|
|
6182
|
-
|
|
6183
|
-
|
|
6184
|
-
|
|
6185
|
-
V
|
|
6210
|
+
V,
|
|
6211
|
+
L,
|
|
6212
|
+
Z,
|
|
6213
|
+
B
|
|
6186
6214
|
]
|
|
6187
6215
|
);
|
|
6188
|
-
return
|
|
6216
|
+
return u1(y, () => ({
|
|
6189
6217
|
refetchOptions: async () => {
|
|
6190
|
-
|
|
6218
|
+
x(q), F(void 0), z(!0);
|
|
6191
6219
|
}
|
|
6192
|
-
})),
|
|
6220
|
+
})), m ? /* @__PURE__ */ t(M1, { ...d1, value: l, mode: m }) : /* @__PURE__ */ t("div", { className: "snmt-async-select", children: /* @__PURE__ */ t(M1, { ...d1, value: l }) });
|
|
6193
6221
|
}
|
|
6194
6222
|
);
|
|
6195
6223
|
export {
|
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+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}.ant-checkbox-checked .ant-checkbox-inner:after{transform:rotate(45deg) scale(1) translate(-40%,-60%)}.ant-checkbox-wrapper.delete .ant-checkbox-checked .ant-checkbox-inner:after{transform:none;content:"";position:absolute;left:50%;top:50%;width:9px;height:1px;transform:translate(-50%,-50%)}.ant-checkbox-inner{width:20px!important;height:20px!important}.snmt-checkbox-light.ant-checkbox-wrapper .ant-checkbox.ant-checkbox-disabled+span{color:var(--grey-light-4)}.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-dark-1)!important;border-color:var(--blue-dark-1)!important}.snmt-checkbox-light.ant-checkbox-wrapper .ant-checkbox.ant-checkbox-indeterminate .ant-checkbox-inner:after{background-color:var(--grey-light-0);border:1px 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:1px solid 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:1px solid 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-checked.ant-checkbox-indeterminate .ant-checkbox-inner{background-color:var(--blue-hover)!important;border:1px solid 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)}.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-light-5: #bebec2;--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;--blue-dark-3: #070739;--purple-light: #f2e5ff;--purple-dark: #6900d1;--notification-warning-light: #fff4e8;--notification-warning-dark: #d17100;--notification-success-light: #e0ffdb;--notification-success-dark: #0f6e00;--notification-error-light: #ffecec;--notification-error-dark: #d20000;--notification-error-dark-mode: #e50f00}html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.snmt-typography.ant-typography{color:var(--blue-dark-3);font-family:Montserrat,sans-serif;font-style:normal;font-feature-settings:"clig" off,"liga" off;line-height:normal;margin:0!important}.snmt-typography.snmt-typography-h1{font-size:29px;font-weight:700;line-height:110%}.snmt-typography.snmt-typography-h2{font-size:25px;font-weight:600;line-height:120%}.snmt-typography.snmt-typography-h3{font-size:21px;font-weight:600;line-height:116%}.snmt-typography.snmt-typography-h4{font-size:19px;font-weight:600;line-height:124%}.snmt-typography.snmt-typography-h5{font-size:16px;font-weight:600;line-height:124%}.snmt-typography.snmt-typography-body1{font-size:16px;font-weight:500;line-height:144%}.snmt-typography.snmt-typography-body2{font-size:14px;font-weight:500;line-height:144%}.snmt-typography.snmt-typography-body3{font-size:12px;font-weight:600;line-height:120%}.snmt-typography.snmt-typography-body4{font-size:12px;font-weight:500;line-height:120%}.snmt-typography.snmt-typography-caption{font-size:10px;font-weight:500;line-height:120%}.snmt-typography.snmt-typography-button{font-size:14px;font-weight:600;line-height:116%}.snmt-typography.snmt-typography-tag{font-size:9px;font-weight:500;line-height:116%}.snmt-typography.snmt-typography-link{font-size:16px;font-weight:500;line-height:120%;text-decoration:underline;cursor:pointer}.snmt-typography.snmt-typography-align-center{text-align:center}.snmt-typography.snmt-typography-align-justify{text-align:justify}.snmt-typography.snmt-typography-align-left{text-align:left}.snmt-typography.snmt-typography-align-right{text-align:right}.snmt-typography.collapsed{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.snmt-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-popover:has(.snmt-popover-from-select){z-index:1050!important}.ant-select-selection-overflow>:nth-last-child(2) .snmt-tag{font-family:Montserrat,sans-serif}.ant-select-selection-overflow>:nth-last-child(2):hover .snmt-tag{background:var(--blue-light-1)}.ant-select-selection-overflow>:nth-last-child(2) .snmt-tag:has(.ant-popover-open){color:var(--blue-primary);background:var(--blue-light-2)}.snmt-popover .ant-popover-inner{padding:0}.snmt-popover.padding .ant-popover-inner{padding:16px}.wrapper{cursor:pointer}.snmt-select-1-15-6{width:100%;position:relative;height:48px;font-family:Montserrat,sans-serif;font-weight:500}.snmt-select-1-15-6 .snmt-select-blank .ant-select-selector{border:none!important}.snmt-select-1-15-6 .ant-select{height:100%;pointer-events:none;width:100%;border-radius:8px}.snmt-select-1-15-6 .ant-select .wrapper-suffix-icon{pointer-events:none;display:flex;align-items:center;gap:10px}.snmt-select-1-15-6 .ant-select-focused .ant-select-selector{box-shadow:none!important}.snmt-select-1-15-6 .ant-select-selector{pointer-events:all;border:1px solid var(--grey-light-4)!important;border-radius:8px!important;height:100%!important;padding:8px 16px!important}.snmt-select-1-15-6 .ant-select-selector:hover{border-color:var(--blue-dark-1)!important}.snmt-select-1-15-6 .ant-select-selection-search{margin-inline-start:0px!important;font-size:16px;font-weight:500}.snmt-select-1-15-6 .ant-select-selection-search input{font-size:16px!important;font-weight:500!important;color:var(--grey-dark-5)!important}.snmt-select-1-15-6 .ant-select-arrow div{pointer-events:all;position:relative;z-index:10}.snmt-select-1-15-6 .ant-select-selection-overflow-item-rest .ant-tag-close-icon{display:none}.snmt-select-1-15-6 .ant-select-disabled .snmt-select-1-15-6 .ant-select-arrow div{pointer-events:none!important;cursor:not-allowed!important}.snmt-select-1-15-6.snmt-select-single .ant-select-selection-item{font-family:Montserrat,sans-serif;font-weight:500;color:var(--grey-dark-5);font-size:16px}.snmt-select-1-15-6.snmt-select-single .ant-select-selection-item img{display:none}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selector{padding:9px 48px 9px 16px!important}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-item{background-color:var(--grey-light-2)}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-item-content{font-family:Montserrat,sans-serif;color:var(--grey-dark-5);font-weight:500;font-size:12px;margin-inline-end:6px}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-item-content img{display:none}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow-item .tag-wrapper{margin:0 3px}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow-item-rest .ant-select-selection-item{margin-inline-start:3px;margin-inline-end:0;margin-block:0;padding-inline-start:0;padding-inline-end:0;height:22px;background:transparent}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow-item-rest .ant-select-selection-item-content{margin:0}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow-item:first-of-type .tag-wrapper{margin-left:0;margin-right:3px}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow .custom-placeholder{position:absolute;top:50%;transform:translateY(-50%);transition:all .3s;font-size:16px;font-weight:500;color:var(--grey-dark-2);font-family:Montserrat,sans-serif;text-align:left}.snmt-select-1-15-6 .ant-select-open .ant-select-selector{box-shadow:none!important;border-color:var(--blue-primary)!important}.snmt-select-1-15-6 .select-arrow{transition:transform .3s ease;position:relative;z-index:2}.snmt-select-1-15-6 .select-arrow-rotated{transition:transform .3s ease;transform:rotate(180deg)}.snmt-select-1-15-6>label{position:absolute;top:calc(50% - 10px);left:18px;width:calc(100% - 32px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;font-size:16px;font-style:normal;font-weight:500;line-height:normal;-webkit-user-select:none;user-select:none;pointer-events:none;color:var(--grey-dark-2);transition:top .2s cubic-bezier(0,0,.2,1) 0ms,font-size .2s cubic-bezier(0,0,.2,1) 0ms}.snmt-select-1-15-6>label.label-floating{top:-7px;font-size:12px}.snmt-select-1-15-6>label.label-disabled{color:var(--grey-dark-1)}.snmt-select-1-15-6>label.label-loading{padding-left:30px}.snmt-select-1-15-6>label.label-loading.label-floating{padding-left:0}.snmt-select-1-15-6 fieldset{position:absolute;min-width:0;margin:0;padding:0 11px;top:-6px;right:0;bottom:0;left:0;border:1px solid var(--grey-light-4);border-radius:8px;text-align:left;pointer-events:none}.snmt-select-1-15-6 fieldset>legend{max-width:0;height:14px;padding:0;font-size:12px}.snmt-select-1-15-6 fieldset>legend>span{opacity:0!important;padding:0 5px;pointer-events:none;-webkit-user-select:none;user-select:none}.snmt-select-1-15-6 fieldset.fieldset-focused>legend,.snmt-select-1-15-6 fieldset.fieldset-filled>legend,.snmt-select-1-15-6 fieldset.fieldset-disabled>legend{max-width:100%}.snmt-select-1-15-6 fieldset.fieldset-focused{border-color:var(--blue-primary);border-width:2px;color:var(--blue-primary)}.snmt-select-1-15-6 fieldset.fieldset-disabled{border:none;color:var(--grey-dark-1)}.snmt-select-1-15-6 fieldset.fieldset-disabled:not(.fieldset-filled){display:none}.snmt-select-1-15-6 fieldset.fieldset-filled{border-color:var(--grey-light-4);color:var(--grey-dark-2)}.snmt-select-1-15-6 fieldset.fieldset-filled.fieldset-disabled{color:var(--grey-dark-1)}.snmt-select-1-15-6 fieldset.fieldset-error,.snmt-select-1-15-6 fieldset.fieldset-focused.fieldset-error{border-color:var(--notification-error-dark)}.snmt-select-1-15-6:hover:not(.snmt-select-read-only) fieldset:not(.fieldset-disabled):not(.fieldset-error):not(.fieldset-focused){border-color:var(--blue-dark-1)}.snmt-select-1-15-6:hover:not(.snmt-select-read-only)>label.label-floating:not(.label-disabled):not(.label-focused):not(.label-error){color:var(--blue-dark-1)}.snmt-select-1-15-6.snmt-select-read-only .ant-select-selector{background-color:var(--grey-light-2);cursor:not-allowed;pointer-events:none!important}.snmt-select-1-15-6.snmt-select-read-only .ant-select-arrow{pointer-events:all!important;cursor:pointer}.snmt-select-1-15-6.snmt-select-read-only .ant-select{pointer-events:auto!important}.snmt-select-1-15-6.snmt-select-focused fieldset.fieldset-focused:not(.fieldset-disabled):not(.fieldset-error){border-color:var(--blue-primary);border-width:2px}.snmt-select-1-15-6.snmt-select-focused>label.label-floating:not(.label-disabled){color:var(--blue-primary)}.snmt-select-1-15-6>label.label-floating.label-error:not(.label-disabled){color:var(--notification-error-dark)}.ant-select-dropdown{padding:0}.ant-select-dropdown .ant-select-item{border-radius:0}.ant-select-dropdown .ant-select-item-option{padding:14px 16px}.ant-select-dropdown .ant-select-item-option-state{display:none}.ant-select-dropdown .ant-select-item-option-active{background-color:var(--blue-light-1)!important}.ant-select-dropdown .ant-select-item-option-disabled .ant-select-item-option-content span{color:var(--grey-light-4)!important}.ant-select-dropdown .ant-select-item-option-disabled .ant-select-item-option-content img{filter:opacity(.5)}.ant-select-dropdown .ant-select-item-option-content span{font-family:Montserrat,sans-serif;color:var(--grey-dark-5);font-weight:500}.ant-select-dropdown .ant-select-item-option-selected:not(.ant-select-item-option-disabled){background-color:transparent}.ant-select-dropdown .ant-select-item-option-selected:not(.ant-select-item-option-disabled) .ant-select-item-option-content span{font-weight:500!important}.ant-select-dropdown .ant-select-outlined.ant-select-disabled:not(.ant-select-customize-input) .ant-select-selector{background:var(--grey-light-2);border:none!important}.ant-select-dropdown .ant-select-outlined.ant-select-disabled:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-item{color:var(--grey-dark-1)!important}.ant-select-dropdown .rc-virtual-list-holder{overflow-y:auto!important}.ant-select-dropdown .rc-virtual-list-holder::-webkit-scrollbar{width:6px}.ant-select-dropdown .rc-virtual-list-holder::-webkit-scrollbar-thumb{background:var(--grey-light-4);border-radius:10px}.ant-select-dropdown .rc-virtual-list-scrollbar-vertical{visibility:hidden!important}.dropdown-read-only .rc-virtual-list{pointer-events:none}.dropdown-container{position:relative;display:block}.dropdown-container .dropdown-menu{position:relative;z-index:0}.dropdown-container .loading-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:10;background:var(--grey-light-1);opacity:.9;display:flex;align-items:center;justify-content:center;pointer-events:none}.snmt-select-container .snmt-flex{margin-top:6px}.snmt-loader{display:inline-block;aspect-ratio:1;animation:loader 1s infinite linear}@keyframes loader{33%{background-position:0% 50%,50% 100%,100% 100%}50%{background-position:0% 0%,50% 50%,100% 100%}66%{background-position:0% 0%,50% 0%,100% 50%}to{background-position:0% 0%,50% 0%,100% 0%}}
|
|
1
|
+
.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+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}.ant-checkbox-checked .ant-checkbox-inner:after{transform:rotate(45deg) scale(1) translate(-40%,-60%)}.ant-checkbox-wrapper.delete .ant-checkbox-checked .ant-checkbox-inner:after{transform:none;content:"";position:absolute;left:50%;top:50%;width:9px;height:1px;transform:translate(-50%,-50%)}.ant-checkbox-inner{width:20px!important;height:20px!important}.snmt-checkbox-light.ant-checkbox-wrapper .ant-checkbox.ant-checkbox-disabled+span{color:var(--grey-light-4)}.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-dark-1)!important;border-color:var(--blue-dark-1)!important}.snmt-checkbox-light.ant-checkbox-wrapper .ant-checkbox.ant-checkbox-indeterminate .ant-checkbox-inner:after{background-color:var(--grey-light-0);border:1px 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:1px solid 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:1px solid 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-checked.ant-checkbox-indeterminate .ant-checkbox-inner{background-color:var(--blue-hover)!important;border:1px solid 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)}.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-light-5: #bebec2;--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;--blue-dark-3: #070739;--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}.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-popover:has(.snmt-popover-from-select){z-index:1050!important}.ant-select-selection-overflow>:nth-last-child(2) .snmt-tag{font-family:Montserrat,sans-serif}.ant-select-selection-overflow>:nth-last-child(2):hover .snmt-tag{background:var(--blue-light-1)}.ant-select-selection-overflow>:nth-last-child(2) .snmt-tag:has(.ant-popover-open){color:var(--blue-primary);background:var(--blue-light-2)}.snmt-popover .ant-popover-inner{padding:0}.snmt-popover.padding .ant-popover-inner{padding:16px}.wrapper{cursor:pointer}.snmt-select-1-15-6{width:100%;position:relative;height:48px;font-family:Montserrat,sans-serif;font-weight:500}.snmt-select-1-15-6 .snmt-select-blank .ant-select-selector{border:none!important}.snmt-select-1-15-6 .ant-select{height:100%;pointer-events:none;width:100%;border-radius:8px}.snmt-select-1-15-6 .ant-select .wrapper-suffix-icon{pointer-events:none;display:flex;align-items:center;gap:10px}.snmt-select-1-15-6 .ant-select-focused .ant-select-selector{box-shadow:none!important}.snmt-select-1-15-6 .ant-select-selector{pointer-events:all;border:1px solid var(--grey-light-4)!important;border-radius:8px!important;height:100%!important;padding:8px 16px!important}.snmt-select-1-15-6 .ant-select-selector:hover{border-color:var(--blue-dark-1)!important}.snmt-select-1-15-6 .ant-select-selection-search{margin-inline-start:0px!important;font-size:16px;font-weight:500}.snmt-select-1-15-6 .ant-select-selection-search input{font-size:16px!important;font-weight:500!important;color:var(--grey-dark-5)!important}.snmt-select-1-15-6 .ant-select-arrow div{pointer-events:all;position:relative;z-index:10}.snmt-select-1-15-6 .ant-select-selection-overflow-item-rest .ant-tag-close-icon{display:none}.snmt-select-1-15-6 .ant-select-disabled .snmt-select-1-15-6 .ant-select-arrow div{pointer-events:none!important;cursor:not-allowed!important}.snmt-select-1-15-6.snmt-select-single .ant-select-selection-item{font-family:Montserrat,sans-serif;font-weight:500;color:var(--grey-dark-5);font-size:16px}.snmt-select-1-15-6.snmt-select-single .ant-select-selection-item img{display:none}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selector{padding:9px 48px 9px 16px!important}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-item{background-color:var(--grey-light-2)}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-item-content{font-family:Montserrat,sans-serif;color:var(--grey-dark-5);font-weight:500;font-size:12px;margin-inline-end:6px}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-item-content img{display:none}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow-item .tag-wrapper{margin:0 3px}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow-item-rest .ant-select-selection-item{margin-inline-start:3px;margin-inline-end:0;margin-block:0;padding-inline-start:0;padding-inline-end:0;height:22px;background:transparent}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow-item-rest .ant-select-selection-item-content{margin:0}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow-item:first-of-type .tag-wrapper{margin-left:0;margin-right:3px}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow .custom-placeholder{position:absolute;top:50%;transform:translateY(-50%);transition:all .3s;font-size:16px;font-weight:500;color:var(--grey-dark-2);font-family:Montserrat,sans-serif;text-align:left}.snmt-select-1-15-6 .ant-select-open .ant-select-selector{box-shadow:none!important;border-color:var(--blue-primary)!important}.snmt-select-1-15-6 .select-arrow{transition:transform .3s ease;position:relative;z-index:2}.snmt-select-1-15-6 .select-arrow-rotated{transition:transform .3s ease;transform:rotate(180deg)}.snmt-select-1-15-6>label{position:absolute;top:calc(50% - 10px);left:18px;width:calc(100% - 32px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;font-size:16px;font-style:normal;font-weight:500;line-height:normal;-webkit-user-select:none;user-select:none;pointer-events:none;color:var(--grey-dark-2);transition:top .2s cubic-bezier(0,0,.2,1) 0ms,font-size .2s cubic-bezier(0,0,.2,1) 0ms}.snmt-select-1-15-6>label.label-floating{top:-7px;font-size:12px}.snmt-select-1-15-6>label.label-disabled{color:var(--grey-dark-1)}.snmt-select-1-15-6>label.label-loading{padding-left:30px}.snmt-select-1-15-6>label.label-loading.label-floating{padding-left:0}.snmt-select-1-15-6 fieldset{position:absolute;min-width:0;margin:0;padding:0 11px;top:-6px;right:0;bottom:0;left:0;border:1px solid var(--grey-light-4);border-radius:8px;text-align:left;pointer-events:none}.snmt-select-1-15-6 fieldset>legend{max-width:0;height:14px;padding:0;font-size:12px}.snmt-select-1-15-6 fieldset>legend>span{opacity:0!important;padding:0 5px;pointer-events:none;-webkit-user-select:none;user-select:none}.snmt-select-1-15-6 fieldset.fieldset-focused>legend,.snmt-select-1-15-6 fieldset.fieldset-filled>legend,.snmt-select-1-15-6 fieldset.fieldset-disabled>legend{max-width:100%}.snmt-select-1-15-6 fieldset.fieldset-focused{border-color:var(--blue-primary);border-width:2px;color:var(--blue-primary)}.snmt-select-1-15-6 fieldset.fieldset-disabled{border:none;color:var(--grey-dark-1)}.snmt-select-1-15-6 fieldset.fieldset-disabled:not(.fieldset-filled){display:none}.snmt-select-1-15-6 fieldset.fieldset-filled{border-color:var(--grey-light-4);color:var(--grey-dark-2)}.snmt-select-1-15-6 fieldset.fieldset-filled.fieldset-disabled{color:var(--grey-dark-1)}.snmt-select-1-15-6 fieldset.fieldset-error,.snmt-select-1-15-6 fieldset.fieldset-focused.fieldset-error{border-color:var(--notification-error-dark)}.snmt-select-1-15-6:hover:not(.snmt-select-read-only) fieldset:not(.fieldset-disabled):not(.fieldset-error):not(.fieldset-focused){border-color:var(--blue-dark-1)}.snmt-select-1-15-6:hover:not(.snmt-select-read-only)>label.label-floating:not(.label-disabled):not(.label-focused):not(.label-error){color:var(--blue-dark-1)}.snmt-select-1-15-6.snmt-select-read-only .ant-select-selector{background-color:var(--grey-light-2);cursor:not-allowed;pointer-events:none!important}.snmt-select-1-15-6.snmt-select-read-only .ant-select-arrow{pointer-events:all!important;cursor:pointer}.snmt-select-1-15-6.snmt-select-read-only .ant-select{pointer-events:auto!important}.snmt-select-1-15-6.snmt-select-focused fieldset.fieldset-focused:not(.fieldset-disabled):not(.fieldset-error){border-color:var(--blue-primary);border-width:2px}.snmt-select-1-15-6.snmt-select-focused>label.label-floating:not(.label-disabled){color:var(--blue-primary)}.snmt-select-1-15-6>label.label-floating.label-error:not(.label-disabled){color:var(--notification-error-dark)}.ant-select-dropdown{padding:0}.ant-select-dropdown .ant-select-item{border-radius:0}.ant-select-dropdown .ant-select-item-option{padding:14px 16px}.ant-select-dropdown .ant-select-item-option-state{display:none}.ant-select-dropdown .ant-select-item-option-active{background-color:var(--blue-light-1)!important}.ant-select-dropdown .ant-select-item-option-disabled .ant-select-item-option-content span{color:var(--grey-light-4)!important}.ant-select-dropdown .ant-select-item-option-disabled .ant-select-item-option-content img{filter:opacity(.5)}.ant-select-dropdown .ant-select-item-option-content span{font-family:Montserrat,sans-serif;color:var(--grey-dark-5);font-weight:500}.ant-select-dropdown .ant-select-item-option-selected:not(.ant-select-item-option-disabled){background-color:transparent}.ant-select-dropdown .ant-select-item-option-selected:not(.ant-select-item-option-disabled) .ant-select-item-option-content span{font-weight:500!important}.ant-select-dropdown .ant-select-outlined.ant-select-disabled:not(.ant-select-customize-input) .ant-select-selector{background:var(--grey-light-2);border:none!important}.ant-select-dropdown .ant-select-outlined.ant-select-disabled:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-item{color:var(--grey-dark-1)!important}.ant-select-dropdown .rc-virtual-list-holder{overflow-y:auto!important}.ant-select-dropdown .rc-virtual-list-holder::-webkit-scrollbar{width:6px}.ant-select-dropdown .rc-virtual-list-holder::-webkit-scrollbar-thumb{background:var(--grey-light-4);border-radius:10px}.ant-select-dropdown .rc-virtual-list-scrollbar-vertical{visibility:hidden!important}.dropdown-read-only .rc-virtual-list{pointer-events:none}.dropdown-container{position:relative;display:block}.dropdown-container .dropdown-menu{position:relative;z-index:0}.dropdown-container .loading-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:10;background:var(--grey-light-1);opacity:.9;display:flex;align-items:center;justify-content:center;pointer-events:none}.snmt-select-container .snmt-flex{margin-top:6px}.snmt-loader{display:inline-block;aspect-ratio:1;animation:loader 1s infinite linear}@keyframes loader{33%{background-position:0% 50%,50% 100%,100% 100%}50%{background-position:0% 0%,50% 50%,100% 100%}66%{background-position:0% 0%,50% 0%,100% 50%}to{background-position:0% 0%,50% 0%,100% 0%}}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@snmt-react-ui/async-select",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.9.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/async-select.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"build": "tsc && vite build"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@snmt-react-ui/select": "^1.
|
|
21
|
+
"@snmt-react-ui/select": "^1.19.1"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"antd": "^5.18.3"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "b2140fff934bfa6a07b26714b36c79e1937e0ae9"
|
|
27
27
|
}
|