@snmt-react-ui/async-select 1.6.0 → 1.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/async-select.js +152 -136
- package/dist/index.css +1 -1
- package/package.json +3 -3
package/dist/async-select.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import "./index.css";
|
|
2
2
|
import { jsx as t, Fragment as I, jsxs as c } from "react/jsx-runtime";
|
|
3
|
-
import { createContext as
|
|
4
|
-
import { Select as N1, Flex as f1, Avatar as M1, Checkbox as x1, Typography as
|
|
5
|
-
const
|
|
3
|
+
import { createContext as q, forwardRef as J, useState as u, useRef as n1, useEffect as V, useCallback as x, useContext as t1, useImperativeHandle as v1 } from "react";
|
|
4
|
+
import { Select as N1, Flex as f1, Avatar as M1, Checkbox as x1, Typography as h1, Tag as c1, Popover as _1 } from "antd";
|
|
5
|
+
const z = ({
|
|
6
6
|
children: i,
|
|
7
7
|
direction: o = "row",
|
|
8
8
|
flexWrap: e = "nowrap",
|
|
9
9
|
alignItems: l = "normal",
|
|
10
10
|
justifyContent: r = "normal",
|
|
11
11
|
flex: w,
|
|
12
|
-
gap:
|
|
12
|
+
gap: k,
|
|
13
13
|
padding: s
|
|
14
14
|
}) => /* @__PURE__ */ t(
|
|
15
15
|
f1,
|
|
@@ -20,7 +20,7 @@ const $ = ({
|
|
|
20
20
|
align: l,
|
|
21
21
|
justify: r,
|
|
22
22
|
flex: w,
|
|
23
|
-
gap:
|
|
23
|
+
gap: k,
|
|
24
24
|
style: { padding: s },
|
|
25
25
|
children: i
|
|
26
26
|
}
|
|
@@ -39,11 +39,11 @@ const $ = ({
|
|
|
39
39
|
);
|
|
40
40
|
};
|
|
41
41
|
var W = /* @__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))(W || {});
|
|
42
|
-
const
|
|
42
|
+
const a1 = q({
|
|
43
43
|
locale: "en",
|
|
44
44
|
theme: "light"
|
|
45
45
|
});
|
|
46
|
-
|
|
46
|
+
a1.Provider;
|
|
47
47
|
const H1 = ({
|
|
48
48
|
checked: i = !0,
|
|
49
49
|
indeterminate: o = !1,
|
|
@@ -52,19 +52,19 @@ const H1 = ({
|
|
|
52
52
|
disabled: r = !1,
|
|
53
53
|
disableUncheck: w = !1
|
|
54
54
|
}) => {
|
|
55
|
-
const [
|
|
56
|
-
|
|
57
|
-
s(i),
|
|
55
|
+
const [k, s] = u(i), [p, g] = u(o);
|
|
56
|
+
V(() => {
|
|
57
|
+
s(i), g(o);
|
|
58
58
|
}, [i, o]);
|
|
59
|
-
const { theme: h } =
|
|
59
|
+
const { theme: h } = t1(a1);
|
|
60
60
|
return /* @__PURE__ */ t(
|
|
61
61
|
x1,
|
|
62
62
|
{
|
|
63
63
|
className: `snmt-checkbox snmt-checkbox-${h}`,
|
|
64
|
-
checked:
|
|
64
|
+
checked: k,
|
|
65
65
|
indeterminate: p,
|
|
66
66
|
onChange: (n) => {
|
|
67
|
-
w &&
|
|
67
|
+
w && k || (g(!1), s(n.target.checked), l && l(n));
|
|
68
68
|
},
|
|
69
69
|
disabled: r,
|
|
70
70
|
children: e
|
|
@@ -72,12 +72,12 @@ const H1 = ({
|
|
|
72
72
|
);
|
|
73
73
|
};
|
|
74
74
|
var C = /* @__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))(C || {});
|
|
75
|
-
const
|
|
75
|
+
const C1 = q({
|
|
76
76
|
locale: "en",
|
|
77
77
|
theme: "light"
|
|
78
78
|
});
|
|
79
|
-
|
|
80
|
-
const
|
|
79
|
+
C1.Provider;
|
|
80
|
+
const E1 = ({
|
|
81
81
|
width: i = 20,
|
|
82
82
|
height: o = 20,
|
|
83
83
|
color: e = "#001E52",
|
|
@@ -104,7 +104,7 @@ const V1 = ({
|
|
|
104
104
|
}
|
|
105
105
|
)
|
|
106
106
|
}
|
|
107
|
-
),
|
|
107
|
+
), V1 = ({
|
|
108
108
|
width: i = 20,
|
|
109
109
|
height: o = 20,
|
|
110
110
|
color: e = "#001E52",
|
|
@@ -2002,7 +2002,7 @@ const V1 = ({
|
|
|
2002
2002
|
)
|
|
2003
2003
|
]
|
|
2004
2004
|
}
|
|
2005
|
-
),
|
|
2005
|
+
), E2 = ({
|
|
2006
2006
|
className: i,
|
|
2007
2007
|
color: o = C.GREY_DARK_5,
|
|
2008
2008
|
height: e = 24,
|
|
@@ -2039,7 +2039,7 @@ const V1 = ({
|
|
|
2039
2039
|
)
|
|
2040
2040
|
]
|
|
2041
2041
|
}
|
|
2042
|
-
),
|
|
2042
|
+
), V2 = ({
|
|
2043
2043
|
className: i,
|
|
2044
2044
|
color: o = C.GREY_DARK_3,
|
|
2045
2045
|
height: e = 14,
|
|
@@ -3120,17 +3120,17 @@ const V1 = ({
|
|
|
3120
3120
|
}
|
|
3121
3121
|
)
|
|
3122
3122
|
}
|
|
3123
|
-
),
|
|
3123
|
+
), $ = ({
|
|
3124
3124
|
name: i,
|
|
3125
3125
|
width: o,
|
|
3126
3126
|
height: e,
|
|
3127
3127
|
color: l,
|
|
3128
3128
|
className: r,
|
|
3129
3129
|
disabled: w = !1,
|
|
3130
|
-
onClick:
|
|
3130
|
+
onClick: k
|
|
3131
3131
|
}) => {
|
|
3132
|
-
const [s, p] = u(r), { theme:
|
|
3133
|
-
return
|
|
3132
|
+
const [s, p] = u(r), { theme: g } = t1(C1), h = w ? g && g === "dark" ? C.GREY_LIGHT_4 : C.GREY_DARK_1 : l, n = w ? void 0 : k;
|
|
3133
|
+
return V(() => {
|
|
3134
3134
|
if (r) {
|
|
3135
3135
|
n && !w && p(`${r} clickable`);
|
|
3136
3136
|
return;
|
|
@@ -3143,9 +3143,9 @@ const V1 = ({
|
|
|
3143
3143
|
case "prevIcon":
|
|
3144
3144
|
return N2({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3145
3145
|
case "arrowUp":
|
|
3146
|
-
return V1({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3147
|
-
case "arrowDown":
|
|
3148
3146
|
return E1({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3147
|
+
case "arrowDown":
|
|
3148
|
+
return V1({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3149
3149
|
case "info":
|
|
3150
3150
|
return Z1({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3151
3151
|
case "arrowRight":
|
|
@@ -3315,13 +3315,13 @@ const V1 = ({
|
|
|
3315
3315
|
case "telegram":
|
|
3316
3316
|
return R2({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3317
3317
|
case "mail":
|
|
3318
|
-
return
|
|
3318
|
+
return E2({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3319
3319
|
case "github":
|
|
3320
3320
|
return _2({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3321
3321
|
case "linkedIn":
|
|
3322
3322
|
return H2({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3323
3323
|
case "emptyStateIcon":
|
|
3324
|
-
return
|
|
3324
|
+
return V2({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3325
3325
|
case "filtersIcon":
|
|
3326
3326
|
return Z2({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3327
3327
|
case "dotMenuIcon":
|
|
@@ -3382,12 +3382,12 @@ const V1 = ({
|
|
|
3382
3382
|
return /* @__PURE__ */ t(I, { children: "No Icon provided" });
|
|
3383
3383
|
}
|
|
3384
3384
|
})() });
|
|
3385
|
-
}, { Title: l5, Text: r5 } =
|
|
3385
|
+
}, { Title: l5, Text: r5 } = h1, s5 = {
|
|
3386
3386
|
h1: 1,
|
|
3387
3387
|
h2: 2,
|
|
3388
3388
|
h3: 3,
|
|
3389
3389
|
h4: 4
|
|
3390
|
-
}, n5 =
|
|
3390
|
+
}, n5 = J(
|
|
3391
3391
|
({
|
|
3392
3392
|
align: i = "inherit",
|
|
3393
3393
|
variant: o = "body1",
|
|
@@ -3395,15 +3395,15 @@ const V1 = ({
|
|
|
3395
3395
|
children: l,
|
|
3396
3396
|
onClick: r,
|
|
3397
3397
|
collapsed: w,
|
|
3398
|
-
whiteSpace:
|
|
3398
|
+
whiteSpace: k = "normal"
|
|
3399
3399
|
}, s) => {
|
|
3400
3400
|
const p = o === "h1" || o === "h2" || o === "h3" || o === "h4";
|
|
3401
|
-
let
|
|
3402
|
-
return i && i !== "inherit" && (
|
|
3401
|
+
let g = `snmt-typography snmt-typography-${o}`;
|
|
3402
|
+
return i && i !== "inherit" && (g += ` snmt-typography-align-${i}`), w && (g += " collapsed"), p ? /* @__PURE__ */ t(
|
|
3403
3403
|
l5,
|
|
3404
3404
|
{
|
|
3405
|
-
className:
|
|
3406
|
-
style: { color: e, whiteSpace:
|
|
3405
|
+
className: g,
|
|
3406
|
+
style: { color: e, whiteSpace: k },
|
|
3407
3407
|
onClick: r,
|
|
3408
3408
|
level: s5[o],
|
|
3409
3409
|
ref: s,
|
|
@@ -3412,8 +3412,8 @@ const V1 = ({
|
|
|
3412
3412
|
) : /* @__PURE__ */ t(
|
|
3413
3413
|
r5,
|
|
3414
3414
|
{
|
|
3415
|
-
className:
|
|
3416
|
-
style: { color: e, whiteSpace:
|
|
3415
|
+
className: g,
|
|
3416
|
+
style: { color: e, whiteSpace: k },
|
|
3417
3417
|
onClick: r,
|
|
3418
3418
|
ref: s,
|
|
3419
3419
|
children: l
|
|
@@ -3422,11 +3422,11 @@ const V1 = ({
|
|
|
3422
3422
|
}
|
|
3423
3423
|
);
|
|
3424
3424
|
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 || {});
|
|
3425
|
-
const
|
|
3425
|
+
const d1 = q({
|
|
3426
3426
|
locale: "en",
|
|
3427
3427
|
theme: "light"
|
|
3428
3428
|
});
|
|
3429
|
-
|
|
3429
|
+
d1.Provider;
|
|
3430
3430
|
const h5 = ({
|
|
3431
3431
|
width: i = 20,
|
|
3432
3432
|
height: o = 20,
|
|
@@ -4150,7 +4150,7 @@ const h5 = ({
|
|
|
4150
4150
|
)
|
|
4151
4151
|
]
|
|
4152
4152
|
}
|
|
4153
|
-
),
|
|
4153
|
+
), E5 = ({
|
|
4154
4154
|
width: i = 20,
|
|
4155
4155
|
height: o = 20,
|
|
4156
4156
|
color: e = "#001E52",
|
|
@@ -4183,7 +4183,7 @@ const h5 = ({
|
|
|
4183
4183
|
)
|
|
4184
4184
|
]
|
|
4185
4185
|
}
|
|
4186
|
-
),
|
|
4186
|
+
), V5 = ({
|
|
4187
4187
|
width: i = 20,
|
|
4188
4188
|
height: o = 20,
|
|
4189
4189
|
color: e = "#001E52",
|
|
@@ -6141,7 +6141,7 @@ const h5 = ({
|
|
|
6141
6141
|
)
|
|
6142
6142
|
]
|
|
6143
6143
|
}
|
|
6144
|
-
),
|
|
6144
|
+
), E3 = ({
|
|
6145
6145
|
className: i,
|
|
6146
6146
|
color: o = d.GREY_DARK_5,
|
|
6147
6147
|
height: e = 24,
|
|
@@ -6180,7 +6180,7 @@ const h5 = ({
|
|
|
6180
6180
|
)
|
|
6181
6181
|
]
|
|
6182
6182
|
}
|
|
6183
|
-
),
|
|
6183
|
+
), V3 = ({
|
|
6184
6184
|
className: i,
|
|
6185
6185
|
color: o = d.GREY_DARK_2,
|
|
6186
6186
|
height: e = 16,
|
|
@@ -6477,10 +6477,10 @@ const h5 = ({
|
|
|
6477
6477
|
color: l,
|
|
6478
6478
|
className: r,
|
|
6479
6479
|
disabled: w = !1,
|
|
6480
|
-
onClick:
|
|
6480
|
+
onClick: k
|
|
6481
6481
|
}) => {
|
|
6482
|
-
const [s, p] = u(r), { theme:
|
|
6483
|
-
return
|
|
6482
|
+
const [s, p] = u(r), { theme: g } = t1(d1), h = w ? g && g === "dark" ? d.GREY_LIGHT_4 : d.GREY_DARK_1 : l, n = w ? void 0 : k;
|
|
6483
|
+
return V(() => {
|
|
6484
6484
|
if (r) {
|
|
6485
6485
|
n && !w && p(`${r} clickable`);
|
|
6486
6486
|
return;
|
|
@@ -6551,9 +6551,9 @@ const h5 = ({
|
|
|
6551
6551
|
case "history":
|
|
6552
6552
|
return H5({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6553
6553
|
case "logOut":
|
|
6554
|
-
return V5({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6555
|
-
case "settings":
|
|
6556
6554
|
return E5({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6555
|
+
case "settings":
|
|
6556
|
+
return V5({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6557
6557
|
case "addSkill":
|
|
6558
6558
|
return Z5({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6559
6559
|
case "conversation":
|
|
@@ -6709,9 +6709,9 @@ const h5 = ({
|
|
|
6709
6709
|
case "fastArrowLeft":
|
|
6710
6710
|
return H3({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6711
6711
|
case "fastArrowRight":
|
|
6712
|
-
return V3({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6713
|
-
case "crossInCircle":
|
|
6714
6712
|
return E3({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6713
|
+
case "crossInCircle":
|
|
6714
|
+
return V3({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6715
6715
|
case "arrowUp2":
|
|
6716
6716
|
return W3({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6717
6717
|
case "arrowDown2":
|
|
@@ -6733,40 +6733,56 @@ const h5 = ({
|
|
|
6733
6733
|
}
|
|
6734
6734
|
})() });
|
|
6735
6735
|
};
|
|
6736
|
-
var
|
|
6737
|
-
const y3 =
|
|
6736
|
+
var S = /* @__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))(S || {});
|
|
6737
|
+
const y3 = q({
|
|
6738
6738
|
locale: "en",
|
|
6739
6739
|
theme: "light"
|
|
6740
6740
|
});
|
|
6741
6741
|
y3.Provider;
|
|
6742
|
-
const w1 = ({
|
|
6743
|
-
|
|
6742
|
+
const w1 = ({
|
|
6743
|
+
children: i,
|
|
6744
|
+
width: o,
|
|
6745
|
+
size: e = "small",
|
|
6746
|
+
onClose: l,
|
|
6747
|
+
closable: r = !0,
|
|
6748
|
+
disabled: w = !1
|
|
6749
|
+
}) => {
|
|
6750
|
+
const k = e === "small" ? 10 : 12.5, s = () => {
|
|
6751
|
+
w || l == null || l();
|
|
6752
|
+
};
|
|
6744
6753
|
return /* @__PURE__ */ t(
|
|
6745
|
-
|
|
6754
|
+
c1,
|
|
6746
6755
|
{
|
|
6747
|
-
className: `snmt-tag ${e}`,
|
|
6756
|
+
className: `snmt-tag ${e} ${w ? "disabled" : ""}`,
|
|
6748
6757
|
closeIcon: /* @__PURE__ */ t(
|
|
6749
6758
|
T3,
|
|
6750
6759
|
{
|
|
6751
6760
|
name: "errorSmall",
|
|
6752
|
-
color:
|
|
6753
|
-
width:
|
|
6754
|
-
height:
|
|
6755
|
-
onClick:
|
|
6761
|
+
color: w ? S.GREY_DARK_1 : S.GREY_DARK_2,
|
|
6762
|
+
width: k,
|
|
6763
|
+
height: k,
|
|
6764
|
+
onClick: s
|
|
6756
6765
|
}
|
|
6757
6766
|
),
|
|
6758
6767
|
bordered: !1,
|
|
6759
6768
|
style: { width: o ?? "fit-content" },
|
|
6760
6769
|
closable: r,
|
|
6761
|
-
children: typeof i == "string" ? /* @__PURE__ */ t(
|
|
6770
|
+
children: typeof i == "string" ? /* @__PURE__ */ t(
|
|
6771
|
+
n5,
|
|
6772
|
+
{
|
|
6773
|
+
variant: e === "small" ? "body4" : "body2",
|
|
6774
|
+
color: w ? S.GREY_DARK_2 : S.GREY_DARK_5,
|
|
6775
|
+
children: i
|
|
6776
|
+
}
|
|
6777
|
+
) : i
|
|
6762
6778
|
}
|
|
6763
6779
|
);
|
|
6764
|
-
}, { Title: Y3, Text: K3 } =
|
|
6780
|
+
}, { Title: Y3, Text: K3 } = h1, O3 = {
|
|
6765
6781
|
h1: 1,
|
|
6766
6782
|
h2: 2,
|
|
6767
6783
|
h3: 3,
|
|
6768
6784
|
h4: 4
|
|
6769
|
-
}, k1 =
|
|
6785
|
+
}, k1 = J(
|
|
6770
6786
|
({
|
|
6771
6787
|
align: i = "inherit",
|
|
6772
6788
|
variant: o = "body1",
|
|
@@ -6774,15 +6790,15 @@ const w1 = ({ children: i, width: o, size: e = "small", onClose: l, closable: r
|
|
|
6774
6790
|
children: l,
|
|
6775
6791
|
onClick: r,
|
|
6776
6792
|
collapsed: w,
|
|
6777
|
-
whiteSpace:
|
|
6793
|
+
whiteSpace: k = "normal"
|
|
6778
6794
|
}, s) => {
|
|
6779
6795
|
const p = o === "h1" || o === "h2" || o === "h3" || o === "h4";
|
|
6780
|
-
let
|
|
6781
|
-
return i && i !== "inherit" && (
|
|
6796
|
+
let g = `snmt-typography snmt-typography-${o}`;
|
|
6797
|
+
return i && i !== "inherit" && (g += ` snmt-typography-align-${i}`), w && (g += " collapsed"), p ? /* @__PURE__ */ t(
|
|
6782
6798
|
Y3,
|
|
6783
6799
|
{
|
|
6784
|
-
className:
|
|
6785
|
-
style: { color: e, whiteSpace:
|
|
6800
|
+
className: g,
|
|
6801
|
+
style: { color: e, whiteSpace: k },
|
|
6786
6802
|
onClick: r,
|
|
6787
6803
|
level: O3[o],
|
|
6788
6804
|
ref: s,
|
|
@@ -6791,8 +6807,8 @@ const w1 = ({ children: i, width: o, size: e = "small", onClose: l, closable: r
|
|
|
6791
6807
|
) : /* @__PURE__ */ t(
|
|
6792
6808
|
K3,
|
|
6793
6809
|
{
|
|
6794
|
-
className:
|
|
6795
|
-
style: { color: e, whiteSpace:
|
|
6810
|
+
className: g,
|
|
6811
|
+
style: { color: e, whiteSpace: k },
|
|
6796
6812
|
onClick: r,
|
|
6797
6813
|
ref: s,
|
|
6798
6814
|
children: l
|
|
@@ -6807,7 +6823,7 @@ const w1 = ({ children: i, width: o, size: e = "small", onClose: l, closable: r
|
|
|
6807
6823
|
placement: r = "topRight",
|
|
6808
6824
|
noPadding: w = !1
|
|
6809
6825
|
}) => {
|
|
6810
|
-
const [
|
|
6826
|
+
const [k, s] = u(!1);
|
|
6811
6827
|
return /* @__PURE__ */ t(
|
|
6812
6828
|
_1,
|
|
6813
6829
|
{
|
|
@@ -6816,7 +6832,7 @@ const w1 = ({ children: i, width: o, size: e = "small", onClose: l, closable: r
|
|
|
6816
6832
|
placement: r,
|
|
6817
6833
|
trigger: "click",
|
|
6818
6834
|
overlayClassName: `snmt-popover ${w ? "" : "padding"}`,
|
|
6819
|
-
open: e ??
|
|
6835
|
+
open: e ?? k,
|
|
6820
6836
|
onOpenChange: (p) => {
|
|
6821
6837
|
s(p), l == null || l(p);
|
|
6822
6838
|
},
|
|
@@ -6831,8 +6847,8 @@ const w1 = ({ children: i, width: o, size: e = "small", onClose: l, closable: r
|
|
|
6831
6847
|
options: r,
|
|
6832
6848
|
extraOptions: w
|
|
6833
6849
|
}) => {
|
|
6834
|
-
const [
|
|
6835
|
-
|
|
6850
|
+
const [k, s] = u(!1);
|
|
6851
|
+
V(() => {
|
|
6836
6852
|
i.length || s(!1);
|
|
6837
6853
|
}, [i]);
|
|
6838
6854
|
const p = (h) => {
|
|
@@ -6840,35 +6856,35 @@ const w1 = ({ children: i, width: o, size: e = "small", onClose: l, closable: r
|
|
|
6840
6856
|
};
|
|
6841
6857
|
if (!i.length)
|
|
6842
6858
|
return null;
|
|
6843
|
-
const
|
|
6844
|
-
var n,
|
|
6845
|
-
return ((n = r == null ? void 0 : r.find((_) => _.value === h)) == null ? void 0 : n.label) || ((
|
|
6859
|
+
const g = (h) => {
|
|
6860
|
+
var n, E;
|
|
6861
|
+
return ((n = r == null ? void 0 : r.find((_) => _.value === h)) == null ? void 0 : n.label) || ((E = w == null ? void 0 : w.find((_) => _.value === h)) == null ? void 0 : E.label) || h;
|
|
6846
6862
|
};
|
|
6847
6863
|
return /* @__PURE__ */ t("div", { onMouseDown: p, className: "wrapper", children: /* @__PURE__ */ t(
|
|
6848
6864
|
b3,
|
|
6849
6865
|
{
|
|
6850
6866
|
content: (
|
|
6851
6867
|
// 90: paddings + margins + gaps and so on
|
|
6852
|
-
/* @__PURE__ */ t("div", { style: { maxWidth: e - 90 }, children: /* @__PURE__ */ t(
|
|
6868
|
+
/* @__PURE__ */ t("div", { style: { maxWidth: e - 90 }, children: /* @__PURE__ */ t(z, { gap: 6, flexWrap: "wrap", children: i.map(({ value: h }) => /* @__PURE__ */ t(
|
|
6853
6869
|
w1,
|
|
6854
6870
|
{
|
|
6855
6871
|
onClose: () => o(h),
|
|
6856
6872
|
closable: !l,
|
|
6857
|
-
children:
|
|
6873
|
+
children: g(h)
|
|
6858
6874
|
},
|
|
6859
6875
|
h
|
|
6860
6876
|
)) }) })
|
|
6861
6877
|
),
|
|
6862
6878
|
placement: "bottomRight",
|
|
6863
|
-
isOpen:
|
|
6879
|
+
isOpen: k,
|
|
6864
6880
|
setIsOpen: s,
|
|
6865
|
-
children: /* @__PURE__ */ t(
|
|
6881
|
+
children: /* @__PURE__ */ t(c1, { className: `overflow-button ${k ? "open" : ""}`, bordered: !1, children: /* @__PURE__ */ c(k1, { variant: "body4", color: k ? W.BLUE_PRIMARY : void 0, children: [
|
|
6866
6882
|
i.length,
|
|
6867
6883
|
" more"
|
|
6868
6884
|
] }) })
|
|
6869
6885
|
}
|
|
6870
6886
|
) });
|
|
6871
|
-
},
|
|
6887
|
+
}, r1 = ({ size: i = 30, color: o = "#004ed7" }) => {
|
|
6872
6888
|
const e = `no-repeat linear-gradient(${o}
|
|
6873
6889
|
calc(50% - 10px), #0000 0 calc(50% + 10px), ${o} 0)`, l = {
|
|
6874
6890
|
width: i,
|
|
@@ -6876,7 +6892,7 @@ const w1 = ({ children: i, width: o, size: e = "small", onClose: l, closable: r
|
|
|
6876
6892
|
backgroundSize: "20% calc(200% + 20px)"
|
|
6877
6893
|
};
|
|
6878
6894
|
return /* @__PURE__ */ t("span", { className: "snmt-loader", style: l });
|
|
6879
|
-
},
|
|
6895
|
+
}, s1 = J(
|
|
6880
6896
|
({
|
|
6881
6897
|
value: i,
|
|
6882
6898
|
onChange: o,
|
|
@@ -6884,32 +6900,32 @@ const w1 = ({ children: i, width: o, size: e = "small", onClose: l, closable: r
|
|
|
6884
6900
|
mode: l,
|
|
6885
6901
|
search: r = !1,
|
|
6886
6902
|
options: w,
|
|
6887
|
-
width:
|
|
6903
|
+
width: k,
|
|
6888
6904
|
disabled: s = !1,
|
|
6889
6905
|
required: p = !1,
|
|
6890
|
-
clearable:
|
|
6906
|
+
clearable: g = !1,
|
|
6891
6907
|
scrollThresholdValue: h = 50,
|
|
6892
6908
|
onSearchChange: n,
|
|
6893
|
-
onDropdownVisibleChange:
|
|
6909
|
+
onDropdownVisibleChange: E,
|
|
6894
6910
|
onScrollToEnd: B,
|
|
6895
6911
|
onPopupScroll: _,
|
|
6896
|
-
id:
|
|
6912
|
+
id: Q,
|
|
6897
6913
|
extraOptions: R,
|
|
6898
6914
|
dropdownRender: A,
|
|
6899
6915
|
optionRender: G,
|
|
6900
6916
|
isLoading: D,
|
|
6901
6917
|
readOnly: f
|
|
6902
6918
|
}, j) => {
|
|
6903
|
-
const [T, y] = u(!1), [
|
|
6904
|
-
|
|
6919
|
+
const [T, y] = u(!1), [U, H] = u(!1), [Z, Y] = u(!0), [v, K] = u(i), O = n1(null);
|
|
6920
|
+
V(() => {
|
|
6905
6921
|
K(i);
|
|
6906
6922
|
}, [i]);
|
|
6907
6923
|
const m = (a) => {
|
|
6908
|
-
y(a),
|
|
6909
|
-
},
|
|
6924
|
+
y(a), E && E(a);
|
|
6925
|
+
}, X = (a, L) => {
|
|
6910
6926
|
var M;
|
|
6911
6927
|
return !!((M = L == null ? void 0 : L.label) != null && M.toString().toLowerCase().includes(a.toLowerCase()));
|
|
6912
|
-
},
|
|
6928
|
+
}, e1 = () => {
|
|
6913
6929
|
H(!0);
|
|
6914
6930
|
}, b = () => {
|
|
6915
6931
|
H(!1);
|
|
@@ -6932,13 +6948,13 @@ const w1 = ({ children: i, width: o, size: e = "small", onClose: l, closable: r
|
|
|
6932
6948
|
}
|
|
6933
6949
|
N("");
|
|
6934
6950
|
}
|
|
6935
|
-
}, [N, l, f]),
|
|
6951
|
+
}, [N, l, f]), P = x(
|
|
6936
6952
|
(a) => {
|
|
6937
6953
|
const L = v.filter((M) => M !== a);
|
|
6938
6954
|
N(L), K(L);
|
|
6939
6955
|
},
|
|
6940
6956
|
[N, v]
|
|
6941
|
-
),
|
|
6957
|
+
), l1 = x(
|
|
6942
6958
|
(a) => (v == null ? void 0 : v.indexOf(a)) === 0 ? (
|
|
6943
6959
|
// if the search input is empty
|
|
6944
6960
|
// then display the placeholder, else do not display it
|
|
@@ -6950,11 +6966,11 @@ const w1 = ({ children: i, width: o, size: e = "small", onClose: l, closable: r
|
|
|
6950
6966
|
}, L1 = async (a) => {
|
|
6951
6967
|
const { target: L } = a;
|
|
6952
6968
|
L.scrollTop + L.offsetHeight >= L.scrollHeight - h && (B == null || B(!0)), _ && await _(a);
|
|
6953
|
-
},
|
|
6969
|
+
}, o1 = x(
|
|
6954
6970
|
(a) => {
|
|
6955
6971
|
var L, M;
|
|
6956
|
-
return ((L = w.find((
|
|
6957
|
-
(
|
|
6972
|
+
return ((L = w.find((i1) => i1.value === a)) == null ? void 0 : L.label) || ((M = R == null ? void 0 : R.find(
|
|
6973
|
+
(i1) => i1.value === a
|
|
6958
6974
|
)) == null ? void 0 : M.label) || a;
|
|
6959
6975
|
},
|
|
6960
6976
|
[R, w]
|
|
@@ -6965,7 +6981,7 @@ const w1 = ({ children: i, width: o, size: e = "small", onClose: l, closable: r
|
|
|
6965
6981
|
F3,
|
|
6966
6982
|
{
|
|
6967
6983
|
values: a,
|
|
6968
|
-
onTagClose:
|
|
6984
|
+
onTagClose: P,
|
|
6969
6985
|
maxWidth: ((L = O.current) == null ? void 0 : L.clientWidth) || 0,
|
|
6970
6986
|
disabled: s || f,
|
|
6971
6987
|
options: w,
|
|
@@ -6973,36 +6989,36 @@ const w1 = ({ children: i, width: o, size: e = "small", onClose: l, closable: r
|
|
|
6973
6989
|
}
|
|
6974
6990
|
);
|
|
6975
6991
|
},
|
|
6976
|
-
[s, R,
|
|
6992
|
+
[s, R, P, w, f]
|
|
6977
6993
|
), u1 = x(
|
|
6978
|
-
({ label: a, value: L, mode: M }) => M === "filter" ?
|
|
6979
|
-
[s,
|
|
6994
|
+
({ label: a, value: L, mode: M }) => M === "filter" ? l1(L) : /* @__PURE__ */ t("div", { onMouseDown: p1, className: "tag-wrapper", children: /* @__PURE__ */ t(w1, { onClose: () => P(L), closable: !s, children: /* @__PURE__ */ t(k1, { variant: "body4", children: typeof a == "object" ? a : o1(L) }) }) }),
|
|
6995
|
+
[s, o1, P, l1]
|
|
6980
6996
|
);
|
|
6981
6997
|
return /* @__PURE__ */ c(
|
|
6982
6998
|
"div",
|
|
6983
6999
|
{
|
|
6984
|
-
className: `snmt-select ${
|
|
7000
|
+
className: `snmt-select ${U ? "snmt-select-focused" : ""}
|
|
6985
7001
|
${l ? "" : "snmt-select-single"} ${f ? "snmt-select-read-only" : ""}`,
|
|
6986
7002
|
ref: O,
|
|
6987
|
-
style: { width:
|
|
7003
|
+
style: { width: k },
|
|
6988
7004
|
children: [
|
|
6989
7005
|
/* @__PURE__ */ t(
|
|
6990
7006
|
N1,
|
|
6991
7007
|
{
|
|
6992
7008
|
className: "snmt-select-blank",
|
|
6993
7009
|
popupClassName: f ? "dropdown-read-only" : "",
|
|
6994
|
-
id:
|
|
7010
|
+
id: Q,
|
|
6995
7011
|
ref: j,
|
|
6996
7012
|
showSearch: !!r,
|
|
6997
|
-
filterOption: r &&
|
|
7013
|
+
filterOption: r && X,
|
|
6998
7014
|
onDropdownVisibleChange: m,
|
|
6999
7015
|
placeholder: e ? p ? `${e}*` : e : void 0,
|
|
7000
7016
|
disabled: s,
|
|
7001
7017
|
value: v || void 0,
|
|
7002
|
-
labelRender: (a) =>
|
|
7018
|
+
labelRender: (a) => o1(a.value),
|
|
7003
7019
|
mode: l === "filter" ? "multiple" : l,
|
|
7004
7020
|
onChange: N,
|
|
7005
|
-
onFocus:
|
|
7021
|
+
onFocus: e1,
|
|
7006
7022
|
onBlur: b,
|
|
7007
7023
|
onSearch: (a) => {
|
|
7008
7024
|
Y(!a), n && n(a);
|
|
@@ -7013,11 +7029,11 @@ const w1 = ({ children: i, width: o, size: e = "small", onClose: l, closable: r
|
|
|
7013
7029
|
maxTagCount: "responsive",
|
|
7014
7030
|
maxTagPlaceholder: m1,
|
|
7015
7031
|
onPopupScroll: L1,
|
|
7016
|
-
prefix: D && /* @__PURE__ */ t(
|
|
7032
|
+
prefix: D && /* @__PURE__ */ t(r1, { size: 15 }),
|
|
7017
7033
|
suffixIcon: /* @__PURE__ */ t("div", { className: "wrapper-suffix-icon", children: l !== "filter" && /* @__PURE__ */ c(I, { children: [
|
|
7018
|
-
v && !!v.length && (l ||
|
|
7034
|
+
v && !!v.length && (l || g) && /* @__PURE__ */ t("div", { onClick: g1, children: /* @__PURE__ */ t($, { name: "cancel" }) }),
|
|
7019
7035
|
/* @__PURE__ */ t(
|
|
7020
|
-
|
|
7036
|
+
$,
|
|
7021
7037
|
{
|
|
7022
7038
|
name: "selectArrowIcon",
|
|
7023
7039
|
color: s ? W.GREY_DARK_1 : W.GREY_DARK_5,
|
|
@@ -7026,23 +7042,23 @@ const w1 = ({ children: i, width: o, size: e = "small", onClose: l, closable: r
|
|
|
7026
7042
|
}
|
|
7027
7043
|
)
|
|
7028
7044
|
] }) }),
|
|
7029
|
-
removeIcon: /* @__PURE__ */ t(
|
|
7045
|
+
removeIcon: /* @__PURE__ */ t($, { name: "errorSmall", color: W.GREY_DARK_2 }),
|
|
7030
7046
|
options: w,
|
|
7031
|
-
optionRender: (a) => G ? G(a.data) : /* @__PURE__ */ c(
|
|
7032
|
-
/* @__PURE__ */ c(
|
|
7047
|
+
optionRender: (a) => G ? G(a.data) : /* @__PURE__ */ c(z, { justifyContent: "space-between", alignItems: "center", flex: "1", children: [
|
|
7048
|
+
/* @__PURE__ */ c(z, { alignItems: "center", gap: 12, children: [
|
|
7033
7049
|
l && /* @__PURE__ */ t(
|
|
7034
7050
|
H1,
|
|
7035
7051
|
{
|
|
7036
7052
|
checked: !!(v != null && v.includes(a.value))
|
|
7037
7053
|
}
|
|
7038
7054
|
),
|
|
7039
|
-
/* @__PURE__ */ c(
|
|
7055
|
+
/* @__PURE__ */ c(z, { alignItems: "center", gap: 8, children: [
|
|
7040
7056
|
a.data.image && /* @__PURE__ */ t(R1, { src: a.data.image, size: 20 }),
|
|
7041
7057
|
/* @__PURE__ */ t("span", { children: a.label })
|
|
7042
7058
|
] })
|
|
7043
7059
|
] }),
|
|
7044
7060
|
!l && v === a.value && /* @__PURE__ */ t(
|
|
7045
|
-
|
|
7061
|
+
$,
|
|
7046
7062
|
{
|
|
7047
7063
|
name: "ok",
|
|
7048
7064
|
color: W.BLUE_PRIMARY,
|
|
@@ -7059,7 +7075,7 @@ const w1 = ({ children: i, width: o, size: e = "small", onClose: l, closable: r
|
|
|
7059
7075
|
display: "grid",
|
|
7060
7076
|
justifyContent: "center"
|
|
7061
7077
|
},
|
|
7062
|
-
children: /* @__PURE__ */ t(
|
|
7078
|
+
children: /* @__PURE__ */ t(r1, { size: 28 })
|
|
7063
7079
|
}
|
|
7064
7080
|
) : (a) => A ? A(a) : a
|
|
7065
7081
|
}
|
|
@@ -7067,7 +7083,7 @@ const w1 = ({ children: i, width: o, size: e = "small", onClose: l, closable: r
|
|
|
7067
7083
|
/* @__PURE__ */ t(
|
|
7068
7084
|
"fieldset",
|
|
7069
7085
|
{
|
|
7070
|
-
className: `${
|
|
7086
|
+
className: `${U ? "fieldset-focused" : ""}
|
|
7071
7087
|
${s ? "fieldset-disabled" : ""}
|
|
7072
7088
|
${typeof i == "string" && i ? "fieldset-filled" : ""}
|
|
7073
7089
|
${typeof i == "object" && i != null && i.length ? "fieldset-filled" : ""}`,
|
|
@@ -7080,8 +7096,8 @@ const w1 = ({ children: i, width: o, size: e = "small", onClose: l, closable: r
|
|
|
7080
7096
|
}
|
|
7081
7097
|
);
|
|
7082
7098
|
function S3(i, o = 500) {
|
|
7083
|
-
const e =
|
|
7084
|
-
return
|
|
7099
|
+
const e = n1();
|
|
7100
|
+
return V(() => () => {
|
|
7085
7101
|
e.current && clearTimeout(e.current);
|
|
7086
7102
|
}, []), (...r) => {
|
|
7087
7103
|
const w = setTimeout(() => {
|
|
@@ -7093,7 +7109,7 @@ function S3(i, o = 500) {
|
|
|
7093
7109
|
const F = {
|
|
7094
7110
|
limit: 100,
|
|
7095
7111
|
offset: 0
|
|
7096
|
-
}, J3 =
|
|
7112
|
+
}, J3 = J(
|
|
7097
7113
|
({
|
|
7098
7114
|
loadOptions: i,
|
|
7099
7115
|
width: o,
|
|
@@ -7101,26 +7117,26 @@ const F = {
|
|
|
7101
7117
|
value: l,
|
|
7102
7118
|
id: r,
|
|
7103
7119
|
disabled: w,
|
|
7104
|
-
scrollThresholdValue:
|
|
7120
|
+
scrollThresholdValue: k,
|
|
7105
7121
|
placeholder: s,
|
|
7106
7122
|
mode: p,
|
|
7107
|
-
loadOnClosedState:
|
|
7123
|
+
loadOnClosedState: g,
|
|
7108
7124
|
extraOptions: h,
|
|
7109
7125
|
onDropdownVisibleChange: n,
|
|
7110
|
-
optionRender:
|
|
7126
|
+
optionRender: E,
|
|
7111
7127
|
dropdownRender: B,
|
|
7112
7128
|
readOnly: _,
|
|
7113
|
-
clearable:
|
|
7129
|
+
clearable: Q
|
|
7114
7130
|
}, R) => {
|
|
7115
|
-
const [A, G] = u([]), [D, f] = u(F), [j, T] = u(!1), [y,
|
|
7116
|
-
async (m = !1,
|
|
7131
|
+
const [A, G] = u([]), [D, f] = u(F), [j, T] = u(!1), [y, U] = u(null), H = x(
|
|
7132
|
+
async (m = !1, X) => {
|
|
7117
7133
|
if (!j) {
|
|
7118
7134
|
T(!0);
|
|
7119
7135
|
try {
|
|
7120
|
-
const
|
|
7136
|
+
const e1 = m ? { ...F, search: X } : D, b = await i(e1);
|
|
7121
7137
|
G(
|
|
7122
7138
|
(N) => m ? b.options : [...N, ...b.options]
|
|
7123
|
-
),
|
|
7139
|
+
), U(b.count), f((N) => ({
|
|
7124
7140
|
...N,
|
|
7125
7141
|
offset: N.offset + N.limit
|
|
7126
7142
|
}));
|
|
@@ -7139,13 +7155,13 @@ const F = {
|
|
|
7139
7155
|
m && y !== null && y > A.length && await H(!1);
|
|
7140
7156
|
}, K = x(
|
|
7141
7157
|
(m) => {
|
|
7142
|
-
m && !
|
|
7158
|
+
m && !g && (G([]), f(F), H(!0)), n == null || n(m);
|
|
7143
7159
|
},
|
|
7144
7160
|
// eslint-disable-next-line
|
|
7145
|
-
[
|
|
7161
|
+
[g]
|
|
7146
7162
|
);
|
|
7147
|
-
|
|
7148
|
-
|
|
7163
|
+
V(() => {
|
|
7164
|
+
g && H(!1);
|
|
7149
7165
|
}, []);
|
|
7150
7166
|
const O = {
|
|
7151
7167
|
id: r,
|
|
@@ -7158,22 +7174,22 @@ const F = {
|
|
|
7158
7174
|
value: l,
|
|
7159
7175
|
onSearchChange: Y,
|
|
7160
7176
|
onDropdownVisibleChange: K,
|
|
7161
|
-
scrollThresholdValue:
|
|
7177
|
+
scrollThresholdValue: k,
|
|
7162
7178
|
onScrollToEnd: v,
|
|
7163
|
-
loadOnClosedState:
|
|
7179
|
+
loadOnClosedState: g,
|
|
7164
7180
|
disabled: w,
|
|
7165
7181
|
extraOptions: h,
|
|
7166
7182
|
isLoading: j,
|
|
7167
|
-
optionRender:
|
|
7183
|
+
optionRender: E,
|
|
7168
7184
|
dropdownRender: B,
|
|
7169
7185
|
readOnly: _,
|
|
7170
|
-
clearable:
|
|
7186
|
+
clearable: Q
|
|
7171
7187
|
};
|
|
7172
7188
|
return v1(R, () => ({
|
|
7173
7189
|
refetchOptions: async () => {
|
|
7174
7190
|
f(F), await H(!0);
|
|
7175
7191
|
}
|
|
7176
|
-
})), p ? /* @__PURE__ */ t(
|
|
7192
|
+
})), p ? /* @__PURE__ */ t(s1, { ...O, onChange: e, value: l, mode: p }) : /* @__PURE__ */ t("div", { className: "snmt-async-select", children: /* @__PURE__ */ t(s1, { ...O, onChange: e, value: l }) });
|
|
7177
7193
|
}
|
|
7178
7194
|
);
|
|
7179
7195
|
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 .ant-tag-close-icon:hover>path{fill:var(--blue-primary);transition:fill .2s ease-in-out}.snmt-tag.medium{padding:4px 8px;height:28px}.snmt-tag.medium .ant-tag-close-icon{margin-inline-start:7.75px}.clickable{cursor:pointer}:root{--grey-light-0: #ffffff;--grey-light-1: #fbfbfb;--grey-light-2: #f4f4f5;--grey-light-3: #e6e6e9;--grey-light-4: #d0d0d7;--grey-dark-1: #babac4;--grey-dark-2: #8b8b9d;--grey-dark-3: #6f6f83;--grey-dark-4: #35353f;--grey-dark-5: #131314;--blue-primary: #004ed7;--blue-hover: #003899;--blue-light-1: #ebf2ff;--blue-light-2: #deeaff;--blue-light-3: #c3d9ff;--blue-light-4: #a5c6ff;--blue-dark-1: #498bff;--purple-light: #f2e5ff;--purple-dark: #6900d1;--notification-warning-light: #fff4e8;--notification-warning-dark: #d17100;--notification-success-light: #e0ffdb;--notification-success-dark: #0f6e00;--notification-error-light: #ffecec;--notification-error-dark: #d20000;--notification-error-dark-mode: #e50f00}.snmt-typography.ant-typography{color:var(--blue-dark-3);font-family:Montserrat,sans-serif;font-style:normal;font-feature-settings:"clig" off,"liga" off;line-height:normal;margin:0!important}.snmt-typography.snmt-typography-h1{font-size:29px;font-weight:700;line-height:110%}.snmt-typography.snmt-typography-h2{font-size:25px;font-weight:600;line-height:120%}.snmt-typography.snmt-typography-h3{font-size:21px;font-weight:600;line-height:116%}.snmt-typography.snmt-typography-h4{font-size:19px;font-weight:600;line-height:124%}.snmt-typography.snmt-typography-h5{font-size:16px;font-weight:600;line-height:124%}.snmt-typography.snmt-typography-body1{font-size:16px;font-weight:500;line-height:144%}.snmt-typography.snmt-typography-body2{font-size:14px;font-weight:500;line-height:144%}.snmt-typography.snmt-typography-body3{font-size:12px;font-weight:600;line-height:120%}.snmt-typography.snmt-typography-body4{font-size:12px;font-weight:500;line-height:120%}.snmt-typography.snmt-typography-caption{font-size:10px;font-weight:500;line-height:120%}.snmt-typography.snmt-typography-button{font-size:14px;font-weight:600;line-height:116%}.snmt-typography.snmt-typography-tag{font-size:9px;font-weight:500;line-height:116%}.snmt-typography.snmt-typography-link{font-size:16px;font-weight:500;line-height:120%;text-decoration:underline;cursor:pointer}.snmt-typography.snmt-typography-align-center{text-align:center}.snmt-typography.snmt-typography-align-justify{text-align:justify}.snmt-typography.snmt-typography-align-left{text-align:left}.snmt-typography.snmt-typography-align-right{text-align:right}.snmt-typography.collapsed{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.overflow-button{width:fit-content;display:flex;align-items:center;border:none;margin-inline-end:3px;padding:2px 6px;height:20px;cursor:pointer;background:var(--grey-light-2)}.overflow-button:hover{background:var(--blue-light-1)}.overflow-button.open{background:var(--blue-light-2)}.snmt-popover{z-index:1050!important}.snmt-popover .ant-popover-inner{padding:0}.snmt-popover.padding .ant-popover-inner{padding:16px}.wrapper{cursor:pointer}.snmt-select{width:100%;position:relative;height:48px}.snmt-select .snmt-select-blank .ant-select-selector{border:none!important}.snmt-select .ant-select{height:100%;pointer-events:none;width:100%;border-radius:8px}.snmt-select .ant-select .wrapper-suffix-icon{pointer-events:none;display:flex;align-items:center;gap:10px}.snmt-select .ant-select-focused .ant-select-selector{box-shadow:none!important}.snmt-select .ant-select-selector{pointer-events:all;border:1px solid var(--grey-light-4)!important;border-radius:8px!important;height:100%!important;padding:8px 16px!important}.snmt-select .ant-select-selector:hover{border-color:var(--blue-dark-1)!important}.snmt-select .ant-select-selection-placeholder{font-size:16px!important;font-weight:500;color:var(--grey-dark-2);font-family:Montserrat,sans-serif;text-align:left!important}.snmt-select .ant-select-selection-search{margin-inline-start:0px!important;font-size:16px;font-weight:500}.snmt-select .ant-select-selection-search input{font-size:16px!important;font-weight:500!important;color:var(--grey-dark-5)!important}.snmt-select .ant-select-arrow div{pointer-events:all;position:relative;z-index:10}.snmt-select .ant-select-selection-overflow-item-rest .ant-tag-close-icon{display:none}.snmt-select .ant-select-disabled .ant-select-arrow div{pointer-events:none!important;cursor:not-allowed!important}.snmt-select .ant-select-single .ant-select-selection-item{font-family:Montserrat,sans-serif;font-weight:500;color:var(--grey-dark-5);font-size:16px}.snmt-select .ant-select-single .ant-select-selection-item img{display:none}.snmt-select .ant-select-multiple .ant-select-selector{padding:9px 48px 9px 16px!important}.snmt-select .ant-select-multiple .ant-select-selection-placeholder{inset-inline-start:0px;inset-inline-end:16px}.snmt-select .ant-select-multiple .ant-select-selection-item{background-color:var(--grey-light-2)}.snmt-select .ant-select-multiple .ant-select-selection-item-content{font-family:Montserrat,sans-serif;color:var(--grey-dark-5);font-weight:500;font-size:12px;margin-inline-end:6px}.snmt-select .ant-select-multiple .ant-select-selection-item-content img{display:none}.snmt-select .ant-select-multiple .ant-select-selection-overflow-item .tag-wrapper{margin:0 3px}.snmt-select .ant-select-multiple .ant-select-selection-overflow-item-rest .ant-select-selection-item{margin-inline-start:3px;margin-inline-end:0;margin-block:0;padding-inline-start:0;padding-inline-end:0;height:22px;background:transparent}.snmt-select .ant-select-multiple .ant-select-selection-overflow-item-rest .ant-select-selection-item-content{margin:0}.snmt-select .ant-select-multiple .ant-select-selection-overflow-item:first-of-type .tag-wrapper{margin-left:0;margin-right:3px}.snmt-select .ant-select-multiple .ant-select-selection-overflow .custom-placeholder{position:absolute;top:50%;transform:translateY(-50%);transition:all .3s;font-size:16px;font-weight:500;color:var(--grey-dark-2);font-family:Montserrat,sans-serif;text-align:left}.snmt-select .ant-select-open .ant-select-selector{box-shadow:none!important;border-color:var(--blue-primary)!important}.snmt-select .select-arrow{transition:transform .3s ease;position:relative;z-index:2}.snmt-select .select-arrow-rotated{transition:transform .3s ease;transform:rotate(180deg)}.snmt-select fieldset{position:absolute;min-width:0;margin:0;padding:0 11px;top:-6px;right:0;bottom:0;left:0;border:1px solid;border-color:var(--grey-light-4);border-radius:8px;text-align:left;pointer-events:none}.snmt-select fieldset>legend{max-width:0;height:14px;padding:0;font-size:12px}.snmt-select fieldset>legend>span{padding:0 5px;opacity:0;pointer-events:none;-webkit-user-select:none;user-select:none}.snmt-select-focused{border-color:var(--blue-primary)!important;border-width:2px}.snmt-select-read-only .ant-select-selector{background-color:var(--grey-light-2);cursor:not-allowed;pointer-events:none!important}.snmt-select-read-only .ant-select-arrow{pointer-events:all!important;cursor:pointer}.snmt-select-read-only .ant-select{pointer-events:auto!important}.snmt-select-read-only .ant-select-selection-item,.snmt-select-read-only .ant-select-selection-placeholder{color:var(--grey-dark-1)!important}.snmt-select:not(.ant-select-disabled):not(.snmt-select-error):not(.snmt-select-focused):hover fieldset{border-color:var(--blue-dark-1)!important;color:var(--blue-dark-1)!important;box-shadow:none!important}.dropdown-read-only .rc-virtual-list{pointer-events:none}.ant-select-dropdown{padding:0}.ant-select-dropdown .ant-select-item{border-radius:0}.ant-select-dropdown .ant-select-item-option{padding:14px 16px}.ant-select-dropdown .ant-select-item-option-state{display:none}.ant-select-dropdown .ant-select-item-option-active{background-color:var(--blue-light-1)!important}.ant-select-dropdown .ant-select-item-option-disabled .ant-select-item-option-content span{color:var(--grey-light-4)!important}.ant-select-dropdown .ant-select-item-option-disabled .ant-select-item-option-content img{filter:opacity(.5)}.ant-select-dropdown .ant-select-item-option-content span{font-family:Montserrat,sans-serif;color:var(--grey-dark-5);font-weight:500}.ant-select-dropdown .ant-select-item-option-selected:not(.ant-select-item-option-disabled){background-color:transparent}.ant-select-dropdown .ant-select-item-option-selected:not(.ant-select-item-option-disabled) .ant-select-item-option-content span{font-weight:500!important}.ant-select-dropdown .rc-virtual-list-holder{overflow-y:auto!important}.ant-select-dropdown .rc-virtual-list-holder::-webkit-scrollbar{width:6px}.ant-select-dropdown .rc-virtual-list-holder::-webkit-scrollbar-thumb{background:var(--grey-light-4);border-radius:10px}.ant-select-outlined.ant-select-disabled:not(.ant-select-customize-input) .ant-select-selector{background:var(--grey-light-2);border:none!important}.ant-select-outlined.ant-select-disabled:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-item{color:var(--grey-dark-1)!important}.rc-virtual-list-scrollbar.rc-virtual-list-scrollbar-vertical{visibility:hidden!important}.snmt-select-single{height:48px}.snmt-select-single .ant-select-item-option-state{display:block}.fieldset-focused>legend,.fieldset-disabled>legend,.fieldset-filled>legend{max-width:100%!important}.fieldset-focused>legend>span,.fieldset-disabled>legend>span,.fieldset-filled>legend>span{opacity:1!important}.fieldset-focused{border-color:var(--blue-primary)!important;color:var(--blue-primary)!important;border-width:2px!important}.fieldset-disabled{border:none!important;color:var(--grey-dark-1)}.fieldset-filled{border-color:var(--grey-light-4);color:var(--grey-light-4)}.snmt-loader{display:inline-block;aspect-ratio:1;animation:loader 1s infinite linear}@keyframes loader{33%{background-position:0% 50%,50% 100%,100% 100%}50%{background-position:0% 0%,50% 50%,100% 100%}66%{background-position:0% 0%,50% 0%,100% 50%}to{background-position:0% 0%,50% 0%,100% 0%}}
|
|
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-dark-1: #babac4;--grey-dark-2: #8b8b9d;--grey-dark-3: #6f6f83;--grey-dark-4: #35353f;--grey-dark-5: #131314;--blue-primary: #004ed7;--blue-hover: #003899;--blue-light-1: #ebf2ff;--blue-light-2: #deeaff;--blue-light-3: #c3d9ff;--blue-light-4: #a5c6ff;--blue-dark-1: #498bff;--purple-light: #f2e5ff;--purple-dark: #6900d1;--notification-warning-light: #fff4e8;--notification-warning-dark: #d17100;--notification-success-light: #e0ffdb;--notification-success-dark: #0f6e00;--notification-error-light: #ffecec;--notification-error-dark: #d20000;--notification-error-dark-mode: #e50f00}.snmt-typography.ant-typography{color:var(--blue-dark-3);font-family:Montserrat,sans-serif;font-style:normal;font-feature-settings:"clig" off,"liga" off;line-height:normal;margin:0!important}.snmt-typography.snmt-typography-h1{font-size:29px;font-weight:700;line-height:110%}.snmt-typography.snmt-typography-h2{font-size:25px;font-weight:600;line-height:120%}.snmt-typography.snmt-typography-h3{font-size:21px;font-weight:600;line-height:116%}.snmt-typography.snmt-typography-h4{font-size:19px;font-weight:600;line-height:124%}.snmt-typography.snmt-typography-h5{font-size:16px;font-weight:600;line-height:124%}.snmt-typography.snmt-typography-body1{font-size:16px;font-weight:500;line-height:144%}.snmt-typography.snmt-typography-body2{font-size:14px;font-weight:500;line-height:144%}.snmt-typography.snmt-typography-body3{font-size:12px;font-weight:600;line-height:120%}.snmt-typography.snmt-typography-body4{font-size:12px;font-weight:500;line-height:120%}.snmt-typography.snmt-typography-caption{font-size:10px;font-weight:500;line-height:120%}.snmt-typography.snmt-typography-button{font-size:14px;font-weight:600;line-height:116%}.snmt-typography.snmt-typography-tag{font-size:9px;font-weight:500;line-height:116%}.snmt-typography.snmt-typography-link{font-size:16px;font-weight:500;line-height:120%;text-decoration:underline;cursor:pointer}.snmt-typography.snmt-typography-align-center{text-align:center}.snmt-typography.snmt-typography-align-justify{text-align:justify}.snmt-typography.snmt-typography-align-left{text-align:left}.snmt-typography.snmt-typography-align-right{text-align:right}.snmt-typography.collapsed{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.overflow-button{width:fit-content;display:flex;align-items:center;border:none;margin-inline-end:3px;padding:2px 6px;height:20px;cursor:pointer;background:var(--grey-light-2)}.overflow-button:hover{background:var(--blue-light-1)}.overflow-button.open{background:var(--blue-light-2)}.snmt-popover{z-index:1050!important}.snmt-popover .ant-popover-inner{padding:0}.snmt-popover.padding .ant-popover-inner{padding:16px}.wrapper{cursor:pointer}.snmt-select{width:100%;position:relative;height:48px;font-family:Montserrat,sans-serif;font-weight:500}.snmt-select .snmt-select-blank .ant-select-selector{border:none!important}.snmt-select .ant-select{height:100%;pointer-events:none;width:100%;border-radius:8px}.snmt-select .ant-select .wrapper-suffix-icon{pointer-events:none;display:flex;align-items:center;gap:10px}.snmt-select .ant-select-focused .ant-select-selector{box-shadow:none!important}.snmt-select .ant-select-selector{pointer-events:all;border:1px solid var(--grey-light-4)!important;border-radius:8px!important;height:100%!important;padding:8px 16px!important}.snmt-select .ant-select-selector:hover{border-color:var(--blue-dark-1)!important}.snmt-select .ant-select-selection-placeholder{font-size:16px!important;font-weight:500;color:var(--grey-dark-2);font-family:Montserrat,sans-serif;text-align:left!important}.snmt-select .ant-select-selection-search{margin-inline-start:0px!important;font-size:16px;font-weight:500}.snmt-select .ant-select-selection-search input{font-size:16px!important;font-weight:500!important;color:var(--grey-dark-5)!important}.snmt-select .ant-select-arrow div{pointer-events:all;position:relative;z-index:10}.snmt-select .ant-select-selection-overflow-item-rest .ant-tag-close-icon{display:none}.snmt-select .ant-select-disabled .ant-select-arrow div{pointer-events:none!important;cursor:not-allowed!important}.snmt-select .ant-select-single .ant-select-selection-item{font-family:Montserrat,sans-serif;font-weight:500;color:var(--grey-dark-5);font-size:16px}.snmt-select .ant-select-single .ant-select-selection-item img{display:none}.snmt-select .ant-select-multiple .ant-select-selector{padding:9px 48px 9px 16px!important}.snmt-select .ant-select-multiple .ant-select-selection-placeholder{inset-inline-start:0px;inset-inline-end:16px}.snmt-select .ant-select-multiple .ant-select-selection-item{background-color:var(--grey-light-2)}.snmt-select .ant-select-multiple .ant-select-selection-item-content{font-family:Montserrat,sans-serif;color:var(--grey-dark-5);font-weight:500;font-size:12px;margin-inline-end:6px}.snmt-select .ant-select-multiple .ant-select-selection-item-content img{display:none}.snmt-select .ant-select-multiple .ant-select-selection-overflow-item .tag-wrapper{margin:0 3px}.snmt-select .ant-select-multiple .ant-select-selection-overflow-item-rest .ant-select-selection-item{margin-inline-start:3px;margin-inline-end:0;margin-block:0;padding-inline-start:0;padding-inline-end:0;height:22px;background:transparent}.snmt-select .ant-select-multiple .ant-select-selection-overflow-item-rest .ant-select-selection-item-content{margin:0}.snmt-select .ant-select-multiple .ant-select-selection-overflow-item:first-of-type .tag-wrapper{margin-left:0;margin-right:3px}.snmt-select .ant-select-multiple .ant-select-selection-overflow .custom-placeholder{position:absolute;top:50%;transform:translateY(-50%);transition:all .3s;font-size:16px;font-weight:500;color:var(--grey-dark-2);font-family:Montserrat,sans-serif;text-align:left}.snmt-select .ant-select-open .ant-select-selector{box-shadow:none!important;border-color:var(--blue-primary)!important}.snmt-select .select-arrow{transition:transform .3s ease;position:relative;z-index:2}.snmt-select .select-arrow-rotated{transition:transform .3s ease;transform:rotate(180deg)}.snmt-select fieldset{position:absolute;min-width:0;margin:0;padding:0 11px;top:-6px;right:0;bottom:0;left:0;border:1px solid;border-color:var(--grey-light-4);border-radius:8px;text-align:left;pointer-events:none}.snmt-select fieldset>legend{max-width:0;height:14px;padding:0;font-size:12px}.snmt-select fieldset>legend>span{padding:0 5px;opacity:0;pointer-events:none;-webkit-user-select:none;user-select:none}.snmt-select-focused{border-color:var(--blue-primary)!important;border-width:2px}.snmt-select-read-only .ant-select-selector{background-color:var(--grey-light-2);cursor:not-allowed;pointer-events:none!important}.snmt-select-read-only .ant-select-arrow{pointer-events:all!important;cursor:pointer}.snmt-select-read-only .ant-select{pointer-events:auto!important}.snmt-select-read-only .ant-select-selection-item,.snmt-select-read-only .ant-select-selection-placeholder{color:var(--grey-dark-1)!important}.snmt-select:not(.ant-select-disabled):not(.snmt-select-error):not(.snmt-select-focused):hover fieldset:not(.fieldset-disabled){border-color:var(--blue-dark-1)!important;color:var(--blue-dark-1)!important;box-shadow:none!important}.dropdown-read-only .rc-virtual-list{pointer-events:none}.ant-select-dropdown{padding:0}.ant-select-dropdown .ant-select-item{border-radius:0}.ant-select-dropdown .ant-select-item-option{padding:14px 16px}.ant-select-dropdown .ant-select-item-option-state{display:none}.ant-select-dropdown .ant-select-item-option-active{background-color:var(--blue-light-1)!important}.ant-select-dropdown .ant-select-item-option-disabled .ant-select-item-option-content span{color:var(--grey-light-4)!important}.ant-select-dropdown .ant-select-item-option-disabled .ant-select-item-option-content img{filter:opacity(.5)}.ant-select-dropdown .ant-select-item-option-content span{font-family:Montserrat,sans-serif;color:var(--grey-dark-5);font-weight:500}.ant-select-dropdown .ant-select-item-option-selected:not(.ant-select-item-option-disabled){background-color:transparent}.ant-select-dropdown .ant-select-item-option-selected:not(.ant-select-item-option-disabled) .ant-select-item-option-content span{font-weight:500!important}.ant-select-dropdown .rc-virtual-list-holder{overflow-y:auto!important}.ant-select-dropdown .rc-virtual-list-holder::-webkit-scrollbar{width:6px}.ant-select-dropdown .rc-virtual-list-holder::-webkit-scrollbar-thumb{background:var(--grey-light-4);border-radius:10px}.ant-select-outlined.ant-select-disabled:not(.ant-select-customize-input) .ant-select-selector{background:var(--grey-light-2);border:none!important}.ant-select-outlined.ant-select-disabled:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-item{color:var(--grey-dark-1)!important}.rc-virtual-list-scrollbar.rc-virtual-list-scrollbar-vertical{visibility:hidden!important}.snmt-select-single{height:48px}.snmt-select-single .ant-select-item-option-state{display:block}.fieldset-focused>legend,.fieldset-disabled>legend,.fieldset-filled>legend{max-width:100%!important}.fieldset-focused>legend>span,.fieldset-disabled>legend>span,.fieldset-filled>legend>span{opacity:1!important}.fieldset-focused{border-color:var(--blue-primary)!important;color:var(--blue-primary)!important;border-width:2px!important}.fieldset-disabled{border:none!important;color:var(--grey-dark-1)}.fieldset-filled{border-color:var(--grey-light-4);color:var(--grey-dark-2)}.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.6.
|
|
4
|
+
"version": "1.6.2",
|
|
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.14.
|
|
21
|
+
"@snmt-react-ui/select": "^1.14.2"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"antd": "^5.18.3"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "2a9889476119b7aa34318a0bc7dd3c1881294e9b"
|
|
27
27
|
}
|