@snmt-react-ui/async-select 1.8.13 → 1.8.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/async-select.js +65 -65
- package/dist/index.css +1 -1
- package/package.json +3 -3
package/dist/async-select.js
CHANGED
@@ -10,11 +10,11 @@ function O1() {
|
|
10
10
|
U(o[0]) && (o[0] = `react-i18next:: ${o[0]}`), console.warn(...o);
|
11
11
|
}
|
12
12
|
}
|
13
|
-
const
|
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
|
-
U(o[0]) &&
|
17
|
+
U(o[0]) && L1[o[0]] || (U(o[0]) && (L1[o[0]] = /* @__PURE__ */ new Date()), O1(...o));
|
18
18
|
}
|
19
19
|
const _1 = (i, o) => () => {
|
20
20
|
if (i.isInitialized)
|
@@ -27,7 +27,7 @@ const _1 = (i, o) => () => {
|
|
27
27
|
};
|
28
28
|
i.on("initialized", e);
|
29
29
|
}
|
30
|
-
},
|
30
|
+
}, m1 = (i, o, e) => {
|
31
31
|
i.loadNamespaces(o, _1(i, e));
|
32
32
|
}, v1 = (i, o, e, l) => {
|
33
33
|
U(e) && (e = [e]), e.forEach((r) => {
|
@@ -37,8 +37,8 @@ const _1 = (i, o) => () => {
|
|
37
37
|
let e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
38
38
|
const l = o.languages[0], r = o.options ? o.options.fallbackLng : !1, a = o.languages[o.languages.length - 1];
|
39
39
|
if (l.toLowerCase() === "cimode") return !0;
|
40
|
-
const w = (n,
|
41
|
-
const d = o.services.backendConnector.state[`${n}|${
|
40
|
+
const w = (n, L) => {
|
41
|
+
const d = o.services.backendConnector.state[`${n}|${L}`];
|
42
42
|
return d === -1 || d === 2;
|
43
43
|
};
|
44
44
|
return e.bindI18n && e.bindI18n.indexOf("languageChanging") > -1 && o.services.backendConnector.backend && o.isLanguageChangingTo && !w(o.isLanguageChangingTo, i) ? !1 : !!(o.hasResourceBundle(l, i) || !o.services.backendConnector.backend || o.options.resources && !o.options.partialBundledLanguages || w(l, i) && (!r || w(a, i)));
|
@@ -120,11 +120,11 @@ const i2 = (i, o) => {
|
|
120
120
|
...o
|
121
121
|
}, {
|
122
122
|
useSuspense: n,
|
123
|
-
keyPrefix:
|
123
|
+
keyPrefix: L
|
124
124
|
} = w;
|
125
125
|
let d = i;
|
126
126
|
d = U(d) ? [d] : d || ["translation"], a.reportNamespaces.addUsedNamespaces && a.reportNamespaces.addUsedNamespaces(d);
|
127
|
-
const h = (a.isInitialized || a.initializedStoreOnce) && d.every((k) => F1(k, a, w)), s = t2(a, o.lng || null, w.nsMode === "fallback" ? d : d[0],
|
127
|
+
const h = (a.isInitialized || a.initializedStoreOnce) && d.every((k) => F1(k, a, w)), s = t2(a, o.lng || null, w.nsMode === "fallback" ? d : d[0], L), M = () => s, I = () => x1(a, o.lng || null, w.nsMode === "fallback" ? d : d[0], L), [W, B] = H(M);
|
128
128
|
let R = d.join();
|
129
129
|
o.lng && (R = `${o.lng}${R}`);
|
130
130
|
const K = i2(R), V = q(!0);
|
@@ -135,7 +135,7 @@ const i2 = (i, o) => {
|
|
135
135
|
} = w;
|
136
136
|
V.current = !0, !h && !n && (o.lng ? v1(a, o.lng, d, () => {
|
137
137
|
V.current && B(I);
|
138
|
-
}) :
|
138
|
+
}) : m1(a, d, () => {
|
139
139
|
V.current && B(I);
|
140
140
|
})), h && K && K !== R && V.current && B(I);
|
141
141
|
const N = () => {
|
@@ -146,11 +146,11 @@ const i2 = (i, o) => {
|
|
146
146
|
};
|
147
147
|
}, [a, R]), Z(() => {
|
148
148
|
V.current && h && B(M);
|
149
|
-
}, [a,
|
149
|
+
}, [a, L, h]);
|
150
150
|
const G = [W, a, h];
|
151
151
|
if (G.t = W, G.i18n = a, G.ready = h, h || !h && !n) return G;
|
152
152
|
throw new Promise((k) => {
|
153
|
-
o.lng ? v1(a, o.lng, d, () => k()) :
|
153
|
+
o.lng ? v1(a, o.lng, d, () => k()) : m1(a, d, () => k());
|
154
154
|
});
|
155
155
|
}, t1 = ({
|
156
156
|
children: i,
|
@@ -188,7 +188,7 @@ const i2 = (i, o) => {
|
|
188
188
|
}
|
189
189
|
);
|
190
190
|
};
|
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.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 || {});
|
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
192
|
const u1 = r1({
|
193
193
|
locale: "en",
|
194
194
|
theme: "light"
|
@@ -202,7 +202,7 @@ const n2 = ({
|
|
202
202
|
disabled: r = !1,
|
203
203
|
disableUncheck: a = !1
|
204
204
|
}) => {
|
205
|
-
const [w, n] = H(i), [
|
205
|
+
const [w, n] = H(i), [L, d] = H(o);
|
206
206
|
Z(() => {
|
207
207
|
n(i), d(o);
|
208
208
|
}, [i, o]);
|
@@ -212,7 +212,7 @@ const n2 = ({
|
|
212
212
|
{
|
213
213
|
className: `snmt-checkbox snmt-checkbox-${h}`,
|
214
214
|
checked: w,
|
215
|
-
indeterminate:
|
215
|
+
indeterminate: L,
|
216
216
|
onChange: (s) => {
|
217
217
|
a && w || (d(!1), n(s.target.checked), l && l(s));
|
218
218
|
},
|
@@ -221,7 +221,7 @@ const n2 = ({
|
|
221
221
|
}
|
222
222
|
);
|
223
223
|
};
|
224
|
-
var p = /* @__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.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))(p || {});
|
224
|
+
var p = /* @__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))(p || {});
|
225
225
|
const H1 = r1({
|
226
226
|
locale: "en",
|
227
227
|
theme: "light"
|
@@ -611,7 +611,7 @@ const s2 = ({
|
|
611
611
|
)
|
612
612
|
]
|
613
613
|
}
|
614
|
-
),
|
614
|
+
), L2 = ({
|
615
615
|
width: i = 20,
|
616
616
|
height: o = 20,
|
617
617
|
color: e = "#001E52",
|
@@ -658,7 +658,7 @@ const s2 = ({
|
|
658
658
|
)
|
659
659
|
]
|
660
660
|
}
|
661
|
-
),
|
661
|
+
), m2 = ({
|
662
662
|
width: i = 20,
|
663
663
|
height: o = 20,
|
664
664
|
color: e = "#001E52",
|
@@ -2589,7 +2589,7 @@ const s2 = ({
|
|
2589
2589
|
}
|
2590
2590
|
)
|
2591
2591
|
}
|
2592
|
-
),
|
2592
|
+
), L5 = ({
|
2593
2593
|
width: i = 24,
|
2594
2594
|
height: o = 24,
|
2595
2595
|
color: e = p.GREY_DARK_2,
|
@@ -2616,7 +2616,7 @@ const s2 = ({
|
|
2616
2616
|
}
|
2617
2617
|
)
|
2618
2618
|
}
|
2619
|
-
),
|
2619
|
+
), m5 = ({
|
2620
2620
|
width: i = 20,
|
2621
2621
|
height: o = 20,
|
2622
2622
|
color: e = "#001E52",
|
@@ -2651,13 +2651,13 @@ const s2 = ({
|
|
2651
2651
|
disabled: a = !1,
|
2652
2652
|
onClick: w
|
2653
2653
|
}) => {
|
2654
|
-
const [n,
|
2654
|
+
const [n, L] = H(r), { theme: d } = n1(H1), h = a ? d && d === "dark" ? p.GREY_LIGHT_4 : p.GREY_DARK_1 : l, s = a ? void 0 : w;
|
2655
2655
|
return Z(() => {
|
2656
2656
|
if (r) {
|
2657
|
-
s && !a &&
|
2657
|
+
s && !a && L(`${r} clickable`);
|
2658
2658
|
return;
|
2659
2659
|
}
|
2660
|
-
s && !a &&
|
2660
|
+
s && !a && L("clickable");
|
2661
2661
|
}, [s, r, a]), /* @__PURE__ */ t(S, { children: (() => {
|
2662
2662
|
switch (i) {
|
2663
2663
|
case "nextIcon":
|
@@ -2687,9 +2687,9 @@ const s2 = ({
|
|
2687
2687
|
case "attention":
|
2688
2688
|
return u2({ width: o, height: e, color: h, className: n, onClick: s });
|
2689
2689
|
case "users":
|
2690
|
-
return
|
2690
|
+
return L2({ width: o, height: e, color: h, className: n, onClick: s });
|
2691
2691
|
case "mySkillsMatrix":
|
2692
|
-
return
|
2692
|
+
return m2({
|
2693
2693
|
width: o,
|
2694
2694
|
height: e,
|
2695
2695
|
color: h,
|
@@ -2829,7 +2829,7 @@ const s2 = ({
|
|
2829
2829
|
case "projects":
|
2830
2830
|
return d5({ width: o, height: e, color: h, className: n, onClick: s });
|
2831
2831
|
case "profile":
|
2832
|
-
return
|
2832
|
+
return m5({ width: o, height: e, color: h, className: n, onClick: s });
|
2833
2833
|
case "exit":
|
2834
2834
|
return w5({ width: o, height: e, color: h, className: n, onClick: s });
|
2835
2835
|
case "client":
|
@@ -2841,7 +2841,7 @@ const s2 = ({
|
|
2841
2841
|
case "community":
|
2842
2842
|
return u5({ width: o, height: e, color: h, className: n, onClick: s });
|
2843
2843
|
case "docs":
|
2844
|
-
return
|
2844
|
+
return L5({ width: o, height: e, color: h, className: n, onClick: s });
|
2845
2845
|
default:
|
2846
2846
|
return /* @__PURE__ */ t(S, { children: "No Icon provided" });
|
2847
2847
|
}
|
@@ -2861,9 +2861,9 @@ const s2 = ({
|
|
2861
2861
|
collapsed: a,
|
2862
2862
|
whiteSpace: w = "normal"
|
2863
2863
|
}, n) => {
|
2864
|
-
const
|
2864
|
+
const L = o === "h1" || o === "h2" || o === "h3" || o === "h4";
|
2865
2865
|
let d = `snmt-typography snmt-typography-${o}`;
|
2866
|
-
return i && i !== "inherit" && (d += ` snmt-typography-align-${i}`), a && (d += " collapsed"),
|
2866
|
+
return i && i !== "inherit" && (d += ` snmt-typography-align-${i}`), a && (d += " collapsed"), L ? /* @__PURE__ */ t(
|
2867
2867
|
v5,
|
2868
2868
|
{
|
2869
2869
|
className: d,
|
@@ -2885,7 +2885,7 @@ const s2 = ({
|
|
2885
2885
|
);
|
2886
2886
|
}
|
2887
2887
|
);
|
2888
|
-
var u = /* @__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.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))(u || {});
|
2888
|
+
var u = /* @__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))(u || {});
|
2889
2889
|
const E1 = r1({
|
2890
2890
|
locale: "en",
|
2891
2891
|
theme: "light"
|
@@ -4591,7 +4591,7 @@ const R5 = ({
|
|
4591
4591
|
}
|
4592
4592
|
)
|
4593
4593
|
}
|
4594
|
-
),
|
4594
|
+
), L3 = ({
|
4595
4595
|
className: i,
|
4596
4596
|
color: o = u.GREY_DARK_5,
|
4597
4597
|
height: e = 24,
|
@@ -4630,7 +4630,7 @@ const R5 = ({
|
|
4630
4630
|
)
|
4631
4631
|
]
|
4632
4632
|
}
|
4633
|
-
),
|
4633
|
+
), m3 = ({
|
4634
4634
|
className: i,
|
4635
4635
|
color: o = u.GREY_DARK_5,
|
4636
4636
|
height: e = 24,
|
@@ -5315,13 +5315,13 @@ const R5 = ({
|
|
5315
5315
|
disabled: a = !1,
|
5316
5316
|
onClick: w
|
5317
5317
|
}) => {
|
5318
|
-
const [n,
|
5318
|
+
const [n, L] = H(r), { theme: d } = n1(E1), h = a ? d && d === "dark" ? u.GREY_LIGHT_4 : u.GREY_DARK_1 : l, s = a ? void 0 : w;
|
5319
5319
|
return Z(() => {
|
5320
5320
|
if (r) {
|
5321
|
-
s && !a &&
|
5321
|
+
s && !a && L(`${r} clickable`);
|
5322
5322
|
return;
|
5323
5323
|
}
|
5324
|
-
s && !a &&
|
5324
|
+
s && !a && L("clickable");
|
5325
5325
|
}, [s, r, a]), /* @__PURE__ */ t(S, { children: (() => {
|
5326
5326
|
switch (i) {
|
5327
5327
|
case "nextIcon":
|
@@ -5469,11 +5469,11 @@ const R5 = ({
|
|
5469
5469
|
case "back":
|
5470
5470
|
return u3({ width: o, height: e, color: h, className: n, onClick: s });
|
5471
5471
|
case "bell":
|
5472
|
-
return
|
5472
|
+
return L3({ width: o, height: e, color: h, className: n, onClick: s });
|
5473
5473
|
case "contract":
|
5474
5474
|
return v3({ width: o, height: e, color: h, className: n, onClick: s });
|
5475
5475
|
case "trash2":
|
5476
|
-
return
|
5476
|
+
return m3({ width: o, height: e, color: h, className: n, onClick: s });
|
5477
5477
|
case "resourceManager":
|
5478
5478
|
return N3({ width: o, height: e, color: h, className: n, onClick: s });
|
5479
5479
|
case "settings2":
|
@@ -5511,7 +5511,7 @@ const R5 = ({
|
|
5511
5511
|
}
|
5512
5512
|
})() });
|
5513
5513
|
};
|
5514
|
-
var l1 = /* @__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.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))(l1 || {});
|
5514
|
+
var l1 = /* @__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))(l1 || {});
|
5515
5515
|
const D3 = r1({
|
5516
5516
|
locale: "en",
|
5517
5517
|
theme: "light"
|
@@ -5570,9 +5570,9 @@ const I1 = ({
|
|
5570
5570
|
collapsed: a,
|
5571
5571
|
whiteSpace: w = "normal"
|
5572
5572
|
}, n) => {
|
5573
|
-
const
|
5573
|
+
const L = o === "h1" || o === "h2" || o === "h3" || o === "h4";
|
5574
5574
|
let d = `snmt-typography snmt-typography-${o}`;
|
5575
|
-
return i && i !== "inherit" && (d += ` snmt-typography-align-${i}`), a && (d += " collapsed"),
|
5575
|
+
return i && i !== "inherit" && (d += ` snmt-typography-align-${i}`), a && (d += " collapsed"), L ? /* @__PURE__ */ t(
|
5576
5576
|
b3,
|
5577
5577
|
{
|
5578
5578
|
className: d,
|
@@ -5611,8 +5611,8 @@ const I1 = ({
|
|
5611
5611
|
trigger: "click",
|
5612
5612
|
overlayClassName: `snmt-popover ${a ? "" : "padding"}`,
|
5613
5613
|
open: e ?? w,
|
5614
|
-
onOpenChange: (
|
5615
|
-
n(
|
5614
|
+
onOpenChange: (L) => {
|
5615
|
+
n(L), l == null || l(L);
|
5616
5616
|
},
|
5617
5617
|
children: /* @__PURE__ */ t("div", { className: "wrapper", children: i })
|
5618
5618
|
}
|
@@ -5638,7 +5638,7 @@ const S3 = ({
|
|
5638
5638
|
options: a,
|
5639
5639
|
extraOptions: w
|
5640
5640
|
}) => {
|
5641
|
-
const { locale: n } = n1(u1), { t:
|
5641
|
+
const { locale: n } = n1(u1), { t: L } = l2("common", { lng: n }), [d, h] = H(!1);
|
5642
5642
|
if (Z(() => {
|
5643
5643
|
i.length || h(!1);
|
5644
5644
|
}, [i]), !i.length)
|
@@ -5669,7 +5669,7 @@ const S3 = ({
|
|
5669
5669
|
children: [
|
5670
5670
|
i.length,
|
5671
5671
|
" ",
|
5672
|
-
|
5672
|
+
L("more")
|
5673
5673
|
]
|
5674
5674
|
}
|
5675
5675
|
);
|
@@ -5691,7 +5691,7 @@ const S3 = ({
|
|
5691
5691
|
options: a,
|
5692
5692
|
width: w,
|
5693
5693
|
disabled: n = !1,
|
5694
|
-
required:
|
5694
|
+
required: L = !1,
|
5695
5695
|
clearable: d = !1,
|
5696
5696
|
scrollThresholdValue: h = 50,
|
5697
5697
|
onSearchChange: s,
|
@@ -5781,7 +5781,7 @@ const S3 = ({
|
|
5781
5781
|
);
|
5782
5782
|
},
|
5783
5783
|
[n, R, F, a, k]
|
5784
|
-
),
|
5784
|
+
), m = A(
|
5785
5785
|
({ label: C, value: g, mode: v }) => v === "filter" ? e1(g) : /* @__PURE__ */ t("div", { onMouseDown: a1, className: "tag-wrapper", children: /* @__PURE__ */ t(I1, { onClose: () => F(g), disabled: n, children: typeof C == "object" ? C : z(g) }) }),
|
5786
5786
|
[n, z, F, e1]
|
5787
5787
|
), E = Array.isArray(x) && x.length > 0 || !!x && typeof x == "string" && x.trim() !== "";
|
@@ -5819,7 +5819,7 @@ const S3 = ({
|
|
5819
5819
|
},
|
5820
5820
|
onSelect: () => P(!0),
|
5821
5821
|
onDeselect: () => P(!0),
|
5822
|
-
tagRender: (C) =>
|
5822
|
+
tagRender: (C) => m({ ...C, mode: l }),
|
5823
5823
|
maxTagCount: "responsive",
|
5824
5824
|
maxTagPlaceholder: d1,
|
5825
5825
|
onPopupScroll: C1,
|
@@ -5887,14 +5887,14 @@ const S3 = ({
|
|
5887
5887
|
"label",
|
5888
5888
|
{
|
5889
5889
|
className: `${O || E ? "label-floating" : ""} ${n ? "label-disabled" : ""} ${O ? "label-focused" : ""} ${G ? "label-loading" : ""} ${_ ? "label-error" : ""}`,
|
5890
|
-
children:
|
5890
|
+
children: L ? `${e}*` : e
|
5891
5891
|
}
|
5892
5892
|
),
|
5893
5893
|
/* @__PURE__ */ t(
|
5894
5894
|
"fieldset",
|
5895
5895
|
{
|
5896
5896
|
className: `${O ? "fieldset-focused" : ""} ${n ? "fieldset-disabled" : ""} ${E ? "fieldset-filled" : ""} ${_ ? "fieldset-error" : ""}`,
|
5897
|
-
children: /* @__PURE__ */ t("legend", { children: /* @__PURE__ */ t("span", { children:
|
5897
|
+
children: /* @__PURE__ */ t("legend", { children: /* @__PURE__ */ t("span", { children: L ? `${e}*` : e }) })
|
5898
5898
|
}
|
5899
5899
|
)
|
5900
5900
|
] })
|
@@ -5937,7 +5937,7 @@ const k1 = 100, J = {
|
|
5937
5937
|
disabled: a,
|
5938
5938
|
scrollThresholdValue: w,
|
5939
5939
|
placeholder: n,
|
5940
|
-
mode:
|
5940
|
+
mode: L,
|
5941
5941
|
loadOnClosedState: d,
|
5942
5942
|
preloadOptions: h,
|
5943
5943
|
extraOptions: s,
|
@@ -5953,14 +5953,14 @@ const k1 = 100, J = {
|
|
5953
5953
|
s ?? []
|
5954
5954
|
), s1 = M1(N.offset), h1 = M1(y), [X, $] = H(!1), j = q(!1), c1 = A(
|
5955
5955
|
async ({
|
5956
|
-
limit:
|
5956
|
+
limit: m = k1,
|
5957
5957
|
offset: E,
|
5958
5958
|
search: C
|
5959
5959
|
}) => {
|
5960
5960
|
O(!0);
|
5961
5961
|
try {
|
5962
5962
|
const g = await i({
|
5963
|
-
limit:
|
5963
|
+
limit: m,
|
5964
5964
|
offset: E,
|
5965
5965
|
search: C
|
5966
5966
|
});
|
@@ -5977,22 +5977,22 @@ const k1 = 100, J = {
|
|
5977
5977
|
}
|
5978
5978
|
},
|
5979
5979
|
[i]
|
5980
|
-
), F = U3((
|
5981
|
-
Y(
|
5980
|
+
), F = U3((m) => {
|
5981
|
+
Y(m), m || f(J);
|
5982
5982
|
}), e1 = A(
|
5983
|
-
(
|
5983
|
+
(m) => F(m),
|
5984
5984
|
[F]
|
5985
5985
|
), a1 = A(
|
5986
|
-
async (
|
5987
|
-
b ||
|
5986
|
+
async (m) => {
|
5987
|
+
b || m && N.count && N.count > ((k == null ? void 0 : k.length) ?? 0) && f((E) => ({
|
5988
5988
|
...E,
|
5989
5989
|
offset: E.offset + k1
|
5990
5990
|
}));
|
5991
5991
|
},
|
5992
5992
|
[b, k == null ? void 0 : k.length, N.count]
|
5993
5993
|
), C1 = A(
|
5994
|
-
(
|
5995
|
-
x(
|
5994
|
+
(m) => {
|
5995
|
+
x(m), !m && y && (Y(void 0), f(J), $(!0)), M == null || M(m);
|
5996
5996
|
},
|
5997
5997
|
[M, y]
|
5998
5998
|
);
|
@@ -6002,18 +6002,18 @@ const k1 = 100, J = {
|
|
6002
6002
|
}, [X, P, N.offset, y, s1, h1, k, b]), Z(() => {
|
6003
6003
|
(d || h) && c1(J), j.current = !0;
|
6004
6004
|
}, []), Z(() => {
|
6005
|
-
s && Q((
|
6005
|
+
s && Q((m) => {
|
6006
6006
|
const E = s.filter(
|
6007
|
-
(C) => !
|
6007
|
+
(C) => !m.some((g) => g.value === C.value)
|
6008
6008
|
);
|
6009
|
-
return [...
|
6009
|
+
return [...m, ...E];
|
6010
6010
|
});
|
6011
6011
|
}, [s]);
|
6012
6012
|
const z = A(
|
6013
|
-
(
|
6014
|
-
e && e(
|
6013
|
+
(m) => {
|
6014
|
+
e && e(m);
|
6015
6015
|
let E = [];
|
6016
|
-
if (
|
6016
|
+
if (L ? E = Array.isArray(m) ? m : [] : E = m ? [m] : [], y) {
|
6017
6017
|
const C = E.filter(
|
6018
6018
|
(g) => !(T != null && T.some((v) => v.value === g))
|
6019
6019
|
);
|
@@ -6029,7 +6029,7 @@ const k1 = 100, J = {
|
|
6029
6029
|
]), Y(void 0), f(J), $(!0);
|
6030
6030
|
}
|
6031
6031
|
},
|
6032
|
-
[e, y,
|
6032
|
+
[e, y, L, k, T]
|
6033
6033
|
), d1 = V1(
|
6034
6034
|
() => ({
|
6035
6035
|
id: r,
|
@@ -6081,7 +6081,7 @@ const k1 = 100, J = {
|
|
6081
6081
|
refetchOptions: async () => {
|
6082
6082
|
f(J), Y(void 0), $(!0);
|
6083
6083
|
}
|
6084
|
-
})),
|
6084
|
+
})), L ? /* @__PURE__ */ t(f1, { ...d1, value: l, mode: L }) : /* @__PURE__ */ t("div", { className: "snmt-async-select", children: /* @__PURE__ */ t(f1, { ...d1, value: l }) });
|
6085
6085
|
}
|
6086
6086
|
);
|
6087
6087
|
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-indeterminate .ant-checkbox-inner:after{height:2px;background-color:var(--grey-light-0)}.snmt-checkbox .ant-checkbox+span{padding-inline-start:12px;padding-inline-end:unset;font-family:Montserrat,sans-serif;font-size:14px;font-weight:500;line-height:20px;letter-spacing:0;text-align:left}:not(.ant-checkbox-indeterminate).ant-checkbox-checked .ant-checkbox-inner:after{transform:rotate(45deg) scale(1) translate(-40%,-60%)}.ant-checkbox-inner{width:20px!important;height:20px!important}.ant-checkbox-checked .ant-checkbox-inner,.snmt-checkbox-light.ant-checkbox-checked .ant-checkbox-inner:hover{background-color:var(--blue-primary);border-color:var(--blue-primary)}.snmt-checkbox-light:not(.ant-checkbox-checked):hover .ant-checkbox-inner{border:1px solid var(--grey-dark-1)}.snmt-checkbox-light+span{color:var(--grey-light-0)}.snmt-checkbox-dark .ant-checkbox:not(.ant-checkbox-checked) .ant-checkbox-inner{background-color:var(--grey-dark-4);border:1px solid var(--grey-dark-4)}.snmt-checkbox-dark .ant-checkbox:not(.ant-checkbox-checked):hover .ant-checkbox-inner{background-color:var(--grey-dark-3);border:1px solid var(--grey-dark-3)}.snmt-checkbox-dark .ant-checkbox+span{color:var(--grey-light-0)}.snmt-tag{display:flex;align-items:center;justify-content:center;border-radius:4px;border:none;margin-inline-end:0;padding:2px 6px;height:20px;background:var(--grey-light-2)}.snmt-tag .ant-tag-close-icon{display:flex;align-items:center;margin-inline-start:6px}.snmt-tag:not(.disabled) .ant-tag-close-icon:hover>path{fill:var(--blue-primary);transition:fill .2s ease-in-out}.snmt-tag.medium{padding:4px 8px;height:28px}.snmt-tag.medium .ant-tag-close-icon{margin-inline-start:7.75px}.snmt-tag.disabled{background:var(--grey-light-3)}.clickable{cursor:pointer}:root{--grey-light-0: #ffffff;--grey-light-1: #fbfbfb;--grey-light-2: #f4f4f5;--grey-light-3: #e6e6e9;--grey-light-4: #d0d0d7;--grey-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;--purple-light: #f2e5ff;--purple-dark: #6900d1;--notification-warning-light: #fff4e8;--notification-warning-dark: #d17100;--notification-success-light: #e0ffdb;--notification-success-dark: #0f6e00;--notification-error-light: #ffecec;--notification-error-dark: #d20000;--notification-error-dark-mode: #e50f00}html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.snmt-typography.ant-typography{color:var(--blue-dark-3);font-family:Montserrat,sans-serif;font-style:normal;font-feature-settings:"clig" off,"liga" off;line-height:normal;margin:0!important}.snmt-typography.snmt-typography-h1{font-size:29px;font-weight:700;line-height:110%}.snmt-typography.snmt-typography-h2{font-size:25px;font-weight:600;line-height:120%}.snmt-typography.snmt-typography-h3{font-size:21px;font-weight:600;line-height:116%}.snmt-typography.snmt-typography-h4{font-size:19px;font-weight:600;line-height:124%}.snmt-typography.snmt-typography-h5{font-size:16px;font-weight:600;line-height:124%}.snmt-typography.snmt-typography-body1{font-size:16px;font-weight:500;line-height:144%}.snmt-typography.snmt-typography-body2{font-size:14px;font-weight:500;line-height:144%}.snmt-typography.snmt-typography-body3{font-size:12px;font-weight:600;line-height:120%}.snmt-typography.snmt-typography-body4{font-size:12px;font-weight:500;line-height:120%}.snmt-typography.snmt-typography-caption{font-size:10px;font-weight:500;line-height:120%}.snmt-typography.snmt-typography-button{font-size:14px;font-weight:600;line-height:116%}.snmt-typography.snmt-typography-tag{font-size:9px;font-weight:500;line-height:116%}.snmt-typography.snmt-typography-link{font-size:16px;font-weight:500;line-height:120%;text-decoration:underline;cursor:pointer}.snmt-typography.snmt-typography-align-center{text-align:center}.snmt-typography.snmt-typography-align-justify{text-align:justify}.snmt-typography.snmt-typography-align-left{text-align:left}.snmt-typography.snmt-typography-align-right{text-align:right}.snmt-typography.collapsed{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.snmt-popover:has(.snmt-popover-from-select){z-index:1050!important}.ant-select-selection-overflow>:nth-last-child(2) .snmt-tag{font-family:Montserrat,sans-serif}.ant-select-selection-overflow>:nth-last-child(2):hover .snmt-tag{background:var(--blue-light-1)}.ant-select-selection-overflow>:nth-last-child(2) .snmt-tag:has(.ant-popover-open){color:var(--blue-primary);background:var(--blue-light-2)}.snmt-popover .ant-popover-inner{padding:0}.snmt-popover.padding .ant-popover-inner{padding:16px}.wrapper{cursor:pointer}.snmt-select-1-15-6{width:100%;position:relative;height:48px;font-family:Montserrat,sans-serif;font-weight:500}.snmt-select-1-15-6 .snmt-select-blank .ant-select-selector{border:none!important}.snmt-select-1-15-6 .ant-select{height:100%;pointer-events:none;width:100%;border-radius:8px}.snmt-select-1-15-6 .ant-select .wrapper-suffix-icon{pointer-events:none;display:flex;align-items:center;gap:10px}.snmt-select-1-15-6 .ant-select-focused .ant-select-selector{box-shadow:none!important}.snmt-select-1-15-6 .ant-select-selector{pointer-events:all;border:1px solid var(--grey-light-4)!important;border-radius:8px!important;height:100%!important;padding:8px 16px!important}.snmt-select-1-15-6 .ant-select-selector:hover{border-color:var(--blue-dark-1)!important}.snmt-select-1-15-6 .ant-select-selection-search{margin-inline-start:0px!important;font-size:16px;font-weight:500}.snmt-select-1-15-6 .ant-select-selection-search input{font-size:16px!important;font-weight:500!important;color:var(--grey-dark-5)!important}.snmt-select-1-15-6 .ant-select-arrow div{pointer-events:all;position:relative;z-index:10}.snmt-select-1-15-6 .ant-select-selection-overflow-item-rest .ant-tag-close-icon{display:none}.snmt-select-1-15-6 .ant-select-disabled .snmt-select-1-15-6 .ant-select-arrow div{pointer-events:none!important;cursor:not-allowed!important}.snmt-select-1-15-6.snmt-select-single .ant-select-selection-item{font-family:Montserrat,sans-serif;font-weight:500;color:var(--grey-dark-5);font-size:16px}.snmt-select-1-15-6.snmt-select-single .ant-select-selection-item img{display:none}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selector{padding:9px 48px 9px 16px!important}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-item{background-color:var(--grey-light-2)}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-item-content{font-family:Montserrat,sans-serif;color:var(--grey-dark-5);font-weight:500;font-size:12px;margin-inline-end:6px}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-item-content img{display:none}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow-item .tag-wrapper{margin:0 3px}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow-item-rest .ant-select-selection-item{margin-inline-start:3px;margin-inline-end:0;margin-block:0;padding-inline-start:0;padding-inline-end:0;height:22px;background:transparent}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow-item-rest .ant-select-selection-item-content{margin:0}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow-item:first-of-type .tag-wrapper{margin-left:0;margin-right:3px}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow .custom-placeholder{position:absolute;top:50%;transform:translateY(-50%);transition:all .3s;font-size:16px;font-weight:500;color:var(--grey-dark-2);font-family:Montserrat,sans-serif;text-align:left}.snmt-select-1-15-6 .ant-select-open .ant-select-selector{box-shadow:none!important;border-color:var(--blue-primary)!important}.snmt-select-1-15-6 .select-arrow{transition:transform .3s ease;position:relative;z-index:2}.snmt-select-1-15-6 .select-arrow-rotated{transition:transform .3s ease;transform:rotate(180deg)}.snmt-select-1-15-6>label{position:absolute;top:calc(50% - 10px);left:18px;width:calc(100% - 32px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;font-size:16px;font-style:normal;font-weight:500;line-height:normal;-webkit-user-select:none;user-select:none;pointer-events:none;color:var(--grey-dark-2);transition:top .2s cubic-bezier(0,0,.2,1) 0ms,font-size .2s cubic-bezier(0,0,.2,1) 0ms}.snmt-select-1-15-6>label.label-floating{top:-7px;font-size:12px}.snmt-select-1-15-6>label.label-disabled{color:var(--grey-dark-1)}.snmt-select-1-15-6>label.label-loading{padding-left:30px}.snmt-select-1-15-6>label.label-loading.label-floating{padding-left:0}.snmt-select-1-15-6 fieldset{position:absolute;min-width:0;margin:0;padding:0 11px;top:-6px;right:0;bottom:0;left:0;border:1px solid var(--grey-light-4);border-radius:8px;text-align:left;pointer-events:none}.snmt-select-1-15-6 fieldset>legend{max-width:0;height:14px;padding:0;font-size:12px}.snmt-select-1-15-6 fieldset>legend>span{opacity:0!important;padding:0 5px;pointer-events:none;-webkit-user-select:none;user-select:none}.snmt-select-1-15-6 fieldset.fieldset-focused>legend,.snmt-select-1-15-6 fieldset.fieldset-filled>legend,.snmt-select-1-15-6 fieldset.fieldset-disabled>legend{max-width:100%}.snmt-select-1-15-6 fieldset.fieldset-focused{border-color:var(--blue-primary);border-width:2px;color:var(--blue-primary)}.snmt-select-1-15-6 fieldset.fieldset-disabled{border:none;color:var(--grey-dark-1)}.snmt-select-1-15-6 fieldset.fieldset-disabled:not(.fieldset-filled){display:none}.snmt-select-1-15-6 fieldset.fieldset-filled{border-color:var(--grey-light-4);color:var(--grey-dark-2)}.snmt-select-1-15-6 fieldset.fieldset-filled.fieldset-disabled{color:var(--grey-dark-1)}.snmt-select-1-15-6 fieldset.fieldset-error,.snmt-select-1-15-6 fieldset.fieldset-focused.fieldset-error{border-color:var(--notification-error-dark)}.snmt-select-1-15-6:hover:not(.snmt-select-read-only) fieldset:not(.fieldset-disabled):not(.fieldset-error):not(.fieldset-focused){border-color:var(--blue-dark-1)}.snmt-select-1-15-6:hover:not(.snmt-select-read-only)>label.label-floating:not(.label-disabled):not(.label-focused):not(.label-error){color:var(--blue-dark-1)}.snmt-select-1-15-6.snmt-select-read-only .ant-select-selector{background-color:var(--grey-light-2);cursor:not-allowed;pointer-events:none!important}.snmt-select-1-15-6.snmt-select-read-only .ant-select-arrow{pointer-events:all!important;cursor:pointer}.snmt-select-1-15-6.snmt-select-read-only .ant-select{pointer-events:auto!important}.snmt-select-1-15-6.snmt-select-focused fieldset.fieldset-focused:not(.fieldset-disabled):not(.fieldset-error){border-color:var(--blue-primary);border-width:2px}.snmt-select-1-15-6.snmt-select-focused>label.label-floating:not(.label-disabled){color:var(--blue-primary)}.snmt-select-1-15-6>label.label-floating.label-error:not(.label-disabled){color:var(--notification-error-dark)}.ant-select-dropdown{padding:0}.ant-select-dropdown .ant-select-item{border-radius:0}.ant-select-dropdown .ant-select-item-option{padding:14px 16px}.ant-select-dropdown .ant-select-item-option-state{display:none}.ant-select-dropdown .ant-select-item-option-active{background-color:var(--blue-light-1)!important}.ant-select-dropdown .ant-select-item-option-disabled .ant-select-item-option-content span{color:var(--grey-light-4)!important}.ant-select-dropdown .ant-select-item-option-disabled .ant-select-item-option-content img{filter:opacity(.5)}.ant-select-dropdown .ant-select-item-option-content span{font-family:Montserrat,sans-serif;color:var(--grey-dark-5);font-weight:500}.ant-select-dropdown .ant-select-item-option-selected:not(.ant-select-item-option-disabled){background-color:transparent}.ant-select-dropdown .ant-select-item-option-selected:not(.ant-select-item-option-disabled) .ant-select-item-option-content span{font-weight:500!important}.ant-select-dropdown .ant-select-outlined.ant-select-disabled:not(.ant-select-customize-input) .ant-select-selector{background:var(--grey-light-2);border:none!important}.ant-select-dropdown .ant-select-outlined.ant-select-disabled:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-item{color:var(--grey-dark-1)!important}.ant-select-dropdown .rc-virtual-list-holder{overflow-y:auto!important}.ant-select-dropdown .rc-virtual-list-holder::-webkit-scrollbar{width:6px}.ant-select-dropdown .rc-virtual-list-holder::-webkit-scrollbar-thumb{background:var(--grey-light-4);border-radius:10px}.ant-select-dropdown .rc-virtual-list-scrollbar-vertical{visibility:hidden!important}.dropdown-read-only .rc-virtual-list{pointer-events:none}.dropdown-container{position:relative;display:block}.dropdown-container .dropdown-menu{position:relative;z-index:0}.dropdown-container .loading-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:10;background:var(--grey-light-1);opacity:.9;display:flex;align-items:center;justify-content:center;pointer-events:none}.snmt-select-container .snmt-flex{margin-top:6px}.snmt-loader{display:inline-block;aspect-ratio:1;animation:loader 1s infinite linear}@keyframes loader{33%{background-position:0% 50%,50% 100%,100% 100%}50%{background-position:0% 0%,50% 50%,100% 100%}66%{background-position:0% 0%,50% 0%,100% 50%}to{background-position:0% 0%,50% 0%,100% 0%}}
|
1
|
+
@import"https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap";.snmt-flex.inherit{flex-wrap:inherit}.snmt-avatar.ant-avatar{border:0;background-color:var(--grey-dark-5);color:var(--grey-light-0);font-family:Montserrat,sans-serif}.snmt-avatar.image.ant-avatar{background-color:transparent}.snmt-checkbox .ant-checkbox-indeterminate .ant-checkbox-inner:after{height:2px;background-color:var(--grey-light-0)}.snmt-checkbox .ant-checkbox+span{padding-inline-start:12px;padding-inline-end:unset;font-family:Montserrat,sans-serif;font-size:14px;font-weight:500;line-height:20px;letter-spacing:0;text-align:left}:not(.ant-checkbox-indeterminate).ant-checkbox-checked .ant-checkbox-inner:after{transform:rotate(45deg) scale(1) translate(-40%,-60%)}.ant-checkbox-inner{width:20px!important;height:20px!important}.ant-checkbox-checked .ant-checkbox-inner,.snmt-checkbox-light.ant-checkbox-checked .ant-checkbox-inner:hover{background-color:var(--blue-primary);border-color:var(--blue-primary)}.snmt-checkbox-light:not(.ant-checkbox-checked):hover .ant-checkbox-inner{border:1px solid var(--grey-dark-1)}.snmt-checkbox-light+span{color:var(--grey-light-0)}.snmt-checkbox-dark .ant-checkbox:not(.ant-checkbox-checked) .ant-checkbox-inner{background-color:var(--grey-dark-4);border:1px solid var(--grey-dark-4)}.snmt-checkbox-dark .ant-checkbox:not(.ant-checkbox-checked):hover .ant-checkbox-inner{background-color:var(--grey-dark-3);border:1px solid var(--grey-dark-3)}.snmt-checkbox-dark .ant-checkbox+span{color:var(--grey-light-0)}.snmt-tag{display:flex;align-items:center;justify-content:center;border-radius:4px;border:none;margin-inline-end:0;padding:2px 6px;height:20px;background:var(--grey-light-2)}.snmt-tag .ant-tag-close-icon{display:flex;align-items:center;margin-inline-start:6px}.snmt-tag:not(.disabled) .ant-tag-close-icon:hover>path{fill:var(--blue-primary);transition:fill .2s ease-in-out}.snmt-tag.medium{padding:4px 8px;height:28px}.snmt-tag.medium .ant-tag-close-icon{margin-inline-start:7.75px}.snmt-tag.disabled{background:var(--grey-light-3)}.clickable{cursor:pointer}:root{--grey-light-0: #ffffff;--grey-light-1: #fbfbfb;--grey-light-2: #f4f4f5;--grey-light-3: #e6e6e9;--grey-light-4: #d0d0d7;--grey-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-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.8.
|
4
|
+
"version": "1.8.15",
|
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.17.
|
21
|
+
"@snmt-react-ui/select": "^1.17.14"
|
22
22
|
},
|
23
23
|
"peerDependencies": {
|
24
24
|
"antd": "^5.18.3"
|
25
25
|
},
|
26
|
-
"gitHead": "
|
26
|
+
"gitHead": "f56c21e9df8f306585fce91eb2b6bbd82fb6398a"
|
27
27
|
}
|