mimir-ui-kit 1.43.28 → 1.44.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Input-IzZ6B9kw.js +232 -0
- package/dist/assets/Avatar.css +1 -1
- package/dist/assets/Chip.css +1 -1
- package/dist/assets/CopyText.css +1 -0
- package/dist/assets/Counter.css +1 -0
- package/dist/assets/DropdownSelect.css +1 -0
- package/dist/assets/Input.css +1 -1
- package/dist/assets/Pagination.css +1 -1
- package/dist/assets/SelectSearch.css +1 -1
- package/dist/assets/TabTrail.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/styles.css +1 -1
- package/dist/components/Avatar/Avatar.d.ts +1 -1
- package/dist/components/Avatar/Avatar.js +41 -37
- package/dist/components/Avatar/constants.d.ts +5 -0
- package/dist/components/Avatar/constants.js +3 -2
- package/dist/components/Avatar/index.d.ts +1 -0
- package/dist/components/Avatar/index.js +5 -4
- package/dist/components/Avatar/types.d.ts +3 -1
- package/dist/components/Chip/Chip.d.ts +5 -1
- package/dist/components/Chip/Chip.js +45 -36
- package/dist/components/Chip/constants.d.ts +5 -1
- package/dist/components/Chip/constants.js +3 -3
- package/dist/components/CopyText/CopyText.d.ts +3 -0
- package/dist/components/CopyText/CopyText.js +96 -0
- package/dist/components/CopyText/index.d.ts +2 -0
- package/dist/components/CopyText/index.js +4 -0
- package/dist/components/CopyText/types.d.ts +32 -0
- package/dist/components/DatePicker/DatePicker.d.ts +19 -0
- package/dist/components/DatePicker/DatePicker.js +149 -134
- package/dist/components/DatePicker/DatePickerModal.js +1 -1
- package/dist/components/DatePicker/MonthPickerModal.js +1 -1
- package/dist/components/DatePicker/YearPickerModal.js +1 -1
- package/dist/components/DatePicker/constants.d.ts +6 -0
- package/dist/components/DatePicker/constants.js +13 -12
- package/dist/components/DatePicker/index.d.ts +1 -0
- package/dist/components/DatePicker/index.js +3 -1
- package/dist/components/DropdownSelect/DropdownSelect.d.ts +3 -0
- package/dist/components/DropdownSelect/DropdownSelect.js +115 -0
- package/dist/components/DropdownSelect/constants.d.ts +5 -0
- package/dist/components/DropdownSelect/constants.js +4 -0
- package/dist/components/DropdownSelect/index.d.ts +3 -0
- package/dist/components/DropdownSelect/index.js +6 -0
- package/dist/components/DropdownSelect/types.d.ts +56 -0
- package/dist/components/Input/Input.d.ts +5 -0
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Input/constants.d.ts +6 -0
- package/dist/components/Input/constants.js +4 -3
- package/dist/components/Input/index.js +1 -1
- package/dist/components/InputPassword/InputPassword.js +1 -1
- package/dist/components/InputPhoneNumber/InputPhoneNumber.js +1 -1
- package/dist/components/MultiSelectSearch/MultiSelectSearch.js +1 -1
- package/dist/components/MultiSelectSearch/utils.js +1 -1
- package/dist/components/OtpInput/OtpInput.js +1 -1
- package/dist/components/Pagination/Counter/Counter.d.ts +9 -0
- package/dist/components/Pagination/Counter/Counter.js +28 -0
- package/dist/components/Pagination/Pagination.d.ts +17 -0
- package/dist/components/Pagination/Pagination.js +167 -126
- package/dist/components/Pagination/constants.d.ts +6 -0
- package/dist/components/Pagination/constants.js +5 -3
- package/dist/components/Pagination/index.d.ts +1 -0
- package/dist/components/Pagination/index.js +4 -2
- package/dist/components/SelectSearch/SelectSearch.d.ts +2 -1
- package/dist/components/SelectSearch/SelectSearch.js +193 -187
- package/dist/components/SelectSearch/constants.d.ts +6 -0
- package/dist/components/SelectSearch/constants.js +7 -5
- package/dist/components/SelectSearch/index.d.ts +1 -1
- package/dist/components/SelectSearch/index.js +5 -4
- package/dist/components/SelectSearch/types.d.ts +6 -1
- package/dist/components/SelectSearch/utils.js +1 -1
- package/dist/components/TabTrail/TabTrail.d.ts +16 -0
- package/dist/components/TabTrail/TabTrail.js +257 -220
- package/dist/components/TextArea/TextArea.js +1 -1
- package/dist/components/index.d.ts +8 -4
- package/dist/components/index.js +178 -166
- package/dist/index.js +203 -191
- package/dist/styles.module-B3lX7mJq.js +31 -0
- package/package.json +1 -1
- package/dist/Input-BU_6U1CW.js +0 -227
- package/dist/styles.module-Cuqm31CO.js +0 -28
@@ -1,188 +1,192 @@
|
|
1
|
-
import { jsx as s, jsxs as c, Fragment as
|
1
|
+
import { jsx as s, jsxs as c, Fragment as T } from "react/jsx-runtime";
|
2
2
|
import { u as Ae } from "../../index-D5H8gPPn.js";
|
3
|
-
import { c as
|
4
|
-
import { forwardRef as Be, useRef as
|
5
|
-
import { ESelectSearchSize as l, ELoadingIndicatorPlacement as
|
6
|
-
import { prepareGroupedItems as
|
7
|
-
import { Icon as
|
8
|
-
import { Button as
|
9
|
-
import { I as
|
10
|
-
import { EInputVariant as
|
11
|
-
import { Loader as
|
12
|
-
import { H as
|
13
|
-
import '../../assets/SelectSearch.css';const
|
14
|
-
"select-search": "_select-search_1rthm_2",
|
15
|
-
disabled: Ke,
|
3
|
+
import { c as r } from "../../index-DIxK0V-G.js";
|
4
|
+
import { forwardRef as Be, useRef as me, useState as N, useMemo as F, useCallback as pe, useEffect as H } from "react";
|
5
|
+
import { ESelectSearchSize as l, ELoadingIndicatorPlacement as S, ESelectSearchBorderRadius as Pe } from "./constants.js";
|
6
|
+
import { prepareGroupedItems as Ge, shouldShowMenuOnTop as je, mapSizeToInputSize as he, getDropdownArrowIcon as Fe } from "./utils.js";
|
7
|
+
import { Icon as R } from "../../icons/Icon.js";
|
8
|
+
import { Button as He } from "../Button/Button.js";
|
9
|
+
import { I as _e } from "../../Input-IzZ6B9kw.js";
|
10
|
+
import { EInputVariant as Re } from "../Input/constants.js";
|
11
|
+
import { Loader as fe } from "../Loader/Loader.js";
|
12
|
+
import { H as $e, U as xe, G as ve, W as ge, K as Ke } from "../../combobox-fIVOzEhl.js";
|
13
|
+
import '../../assets/SelectSearch.css';const Ue = "_container_1x6qm_2", We = "_options_1x6qm_15", Qe = "_top_1x6qm_26", Ye = "_bottom_1x6qm_32", Je = "_disabled_1x6qm_63", Xe = "_full_1x6qm_100", Ze = "_button_1x6qm_112", et = "_s_1x6qm_59", tt = "_m_1x6qm_140", nt = "_l_1x6qm_153", ot = "_loader_1x6qm_191", st = "_option_1x6qm_15", it = "_clear_1x6qm_230", t = {
|
16
14
|
container: Ue,
|
17
|
-
"container-open": "_container-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
"
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
"
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
"
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
"input
|
36
|
-
|
37
|
-
"
|
38
|
-
"
|
39
|
-
|
40
|
-
"
|
41
|
-
|
42
|
-
"
|
43
|
-
|
15
|
+
"container-open": "_container-open_1x6qm_11",
|
16
|
+
options: We,
|
17
|
+
top: Qe,
|
18
|
+
bottom: Ye,
|
19
|
+
"no-options": "_no-options_1x6qm_38",
|
20
|
+
"select-search": "_select-search_1x6qm_59",
|
21
|
+
disabled: Je,
|
22
|
+
"border-radius-left": "_border-radius-left_1x6qm_69",
|
23
|
+
"border-radius-right": "_border-radius-right_1x6qm_81",
|
24
|
+
"border-radius-none": "_border-radius-none_1x6qm_93",
|
25
|
+
full: Xe,
|
26
|
+
"selected-icon": "_selected-icon_1x6qm_104",
|
27
|
+
"selector-icon-open": "_selector-icon-open_1x6qm_108",
|
28
|
+
button: Ze,
|
29
|
+
"selector-icon": "_selector-icon_1x6qm_108",
|
30
|
+
s: et,
|
31
|
+
m: tt,
|
32
|
+
l: nt,
|
33
|
+
"select-search-input": "_select-search-input_1x6qm_166",
|
34
|
+
"select-search-input-disabled": "_select-search-input-disabled_1x6qm_169",
|
35
|
+
"group-header": "_group-header_1x6qm_176",
|
36
|
+
"sticky-active": "_sticky-active_1x6qm_187",
|
37
|
+
loader: ot,
|
38
|
+
"input-container": "_input-container_1x6qm_196",
|
39
|
+
option: st,
|
40
|
+
"option-active": "_option-active_1x6qm_210",
|
41
|
+
"option-inner": "_option-inner_1x6qm_213",
|
42
|
+
"right-slot": "_right-slot_1x6qm_220",
|
43
|
+
"required-mark": "_required-mark_1x6qm_225",
|
44
|
+
clear: it,
|
45
|
+
"icon-button": "_icon-button_1x6qm_239"
|
46
|
+
}, rt = Be(
|
44
47
|
(be, ye) => {
|
45
48
|
const {
|
46
|
-
placeholder:
|
49
|
+
placeholder: $,
|
47
50
|
size: o = l.L,
|
48
51
|
value: d,
|
49
52
|
onChange: a,
|
50
|
-
full:
|
51
|
-
showArrow:
|
52
|
-
items:
|
53
|
-
classNameOption:
|
54
|
-
classNameOptionInner:
|
55
|
-
displayValue:
|
56
|
-
filterOnSearch:
|
57
|
-
onSearch:
|
58
|
-
variant:
|
59
|
-
menuPlacement:
|
53
|
+
full: qe,
|
54
|
+
showArrow: Ne = !0,
|
55
|
+
items: v = [],
|
56
|
+
classNameOption: K,
|
57
|
+
classNameOptionInner: U,
|
58
|
+
displayValue: I = "name",
|
59
|
+
filterOnSearch: W = !0,
|
60
|
+
onSearch: w,
|
61
|
+
variant: Q = Re.DefaultGray,
|
62
|
+
menuPlacement: k = "bottom",
|
60
63
|
disabled: u = !1,
|
61
64
|
searchProps: Y,
|
62
|
-
withClearButton:
|
65
|
+
withClearButton: A = !1,
|
63
66
|
disableInput: _ = !1,
|
64
67
|
autocomplete: J = "on",
|
65
|
-
immediate:
|
68
|
+
immediate: Se = !1,
|
66
69
|
noOptionsText: Ie = "Нет данных",
|
67
70
|
noMatchText: we = "Ничего не найдено",
|
68
|
-
loadOnOpen:
|
71
|
+
loadOnOpen: B,
|
69
72
|
loading: X,
|
70
|
-
loadingIndicatorPlacement:
|
73
|
+
loadingIndicatorPlacement: C = S.Dropdown,
|
71
74
|
groupBy: h,
|
72
75
|
getGroupTitle: Z = (e) => e,
|
73
76
|
optionLayout: ke = "name-bottom",
|
74
|
-
autoPlacement:
|
75
|
-
|
77
|
+
autoPlacement: L = !1,
|
78
|
+
borderRadius: ee = Pe.All
|
79
|
+
} = be, P = (e) => {
|
76
80
|
if (!e) return "";
|
77
|
-
const n = e[
|
81
|
+
const n = e[I];
|
78
82
|
return typeof n == "string" ? n : String(n || "");
|
79
83
|
}, Ce = (e) => {
|
80
|
-
const n = e[
|
84
|
+
const n = e[I];
|
81
85
|
return typeof n == "string" ? n : String(n || "");
|
82
|
-
},
|
83
|
-
if (!
|
84
|
-
return
|
86
|
+
}, G = P(d), z = me(null), te = me(null), [f, g] = N(G), [m, b] = N(d), [Le, ne] = N(!1), [j, ze] = N(null), [O, oe] = N(k), se = X !== void 0 ? X : Le, y = F(() => {
|
87
|
+
if (!W)
|
88
|
+
return v;
|
85
89
|
const e = String(f || "").trim().toLowerCase();
|
86
|
-
return e ?
|
87
|
-
}, [f,
|
88
|
-
|
90
|
+
return e ? v.filter((n) => Ce(n).toLowerCase().includes(e)) : v;
|
91
|
+
}, [f, v, W, I]), q = F(() => h ? Ge(
|
92
|
+
y,
|
89
93
|
h,
|
90
94
|
Z || ((e) => e)
|
91
|
-
) :
|
95
|
+
) : y, [y, h, Z]), E = F(() => {
|
92
96
|
const e = [];
|
93
|
-
return
|
94
|
-
n.isGroupHeader && e.push(
|
97
|
+
return q.forEach((n, i) => {
|
98
|
+
n.isGroupHeader && e.push(i);
|
95
99
|
}), e;
|
96
|
-
}, [
|
97
|
-
count:
|
98
|
-
getScrollElement: () =>
|
100
|
+
}, [q]), x = Ae({
|
101
|
+
count: q.length,
|
102
|
+
getScrollElement: () => z.current,
|
99
103
|
estimateSize: () => o === l.L ? 65 : 49,
|
100
104
|
overscan: 10
|
101
|
-
}), p =
|
102
|
-
if (!
|
103
|
-
|
105
|
+
}), p = pe(() => {
|
106
|
+
if (!L) {
|
107
|
+
oe(k);
|
104
108
|
return;
|
105
109
|
}
|
106
|
-
const e =
|
107
|
-
|
108
|
-
}, [
|
110
|
+
const e = je(te, o);
|
111
|
+
oe(e ? "top" : k);
|
112
|
+
}, [L, k, o]);
|
109
113
|
H(() => {
|
110
|
-
if (
|
114
|
+
if (L)
|
111
115
|
return p(), window.addEventListener("scroll", p), window.addEventListener("resize", p), () => {
|
112
116
|
window.removeEventListener("scroll", p), window.removeEventListener("resize", p);
|
113
117
|
};
|
114
|
-
}, [
|
115
|
-
const e =
|
118
|
+
}, [L, p]), H(() => {
|
119
|
+
const e = z.current;
|
116
120
|
if (!e || !h) return;
|
117
121
|
const n = () => {
|
118
|
-
var
|
119
|
-
const
|
120
|
-
let
|
121
|
-
for (let
|
122
|
-
const
|
123
|
-
if ((((
|
124
|
-
|
125
|
-
const
|
126
|
-
if (
|
122
|
+
var le, de;
|
123
|
+
const i = e.scrollTop;
|
124
|
+
let D = null;
|
125
|
+
for (let V = 0; V < E.length; V++) {
|
126
|
+
const ue = E[V];
|
127
|
+
if ((((le = x.getVirtualItems().find((M) => M.index === ue)) == null ? void 0 : le.start) || 0) <= i) {
|
128
|
+
D = ue;
|
129
|
+
const M = E[V + 1];
|
130
|
+
if (M !== void 0 && (((de = x.getVirtualItems().find((Te) => Te.index === M)) == null ? void 0 : de.start) || 0) <= i)
|
127
131
|
continue;
|
128
132
|
} else
|
129
133
|
break;
|
130
134
|
}
|
131
|
-
ze(
|
135
|
+
ze(D);
|
132
136
|
};
|
133
137
|
return e.addEventListener("scroll", n), () => e.removeEventListener("scroll", n);
|
134
|
-
}, [
|
135
|
-
const
|
136
|
-
if (
|
138
|
+
}, [x, E, h, z.current]);
|
139
|
+
const ie = async () => {
|
140
|
+
if (B)
|
137
141
|
try {
|
138
|
-
|
142
|
+
ne(!0), await B();
|
139
143
|
} finally {
|
140
|
-
|
144
|
+
ne(!1);
|
141
145
|
}
|
142
146
|
}, Oe = (e) => {
|
143
147
|
if (e) {
|
144
|
-
const n =
|
145
|
-
|
148
|
+
const n = P(e);
|
149
|
+
g(n), b(e), a == null || a(e);
|
146
150
|
} else
|
147
|
-
|
148
|
-
}, re =
|
151
|
+
g(""), b(null), a == null || a({ id: "", name: "" });
|
152
|
+
}, re = pe(
|
149
153
|
(e) => {
|
150
154
|
if (_) return;
|
151
155
|
const n = e.target.value;
|
152
|
-
|
156
|
+
g(n), w == null || w(n), m && n !== P(m) && b(null), !n && d && (a == null || a({ id: "", name: "" }));
|
153
157
|
},
|
154
|
-
[_, a,
|
158
|
+
[_, a, w, d, m, I]
|
155
159
|
), Ee = () => {
|
156
|
-
|
157
|
-
},
|
158
|
-
_ && e.target.blur(), p(),
|
160
|
+
g(""), b(null), a == null || a({ id: "", name: "" });
|
161
|
+
}, ae = async (e) => {
|
162
|
+
_ && e.target.blur(), p(), B && await ie();
|
159
163
|
};
|
160
164
|
H(() => {
|
161
165
|
const e = !d || typeof d == "object" && !Object.keys(d).length;
|
162
|
-
|
163
|
-
}, [d,
|
164
|
-
const De = () =>
|
165
|
-
/* @__PURE__ */ s(
|
166
|
+
g(e ? "" : G), b(e ? null : d);
|
167
|
+
}, [d, G]);
|
168
|
+
const De = () => se && (C === S.Dropdown || C === S.Both) ? /* @__PURE__ */ c("div", { className: t.loader, children: [
|
169
|
+
/* @__PURE__ */ s(fe, { size: "s" }),
|
166
170
|
"Загрузка..."
|
167
171
|
] }) : Ie, Ve = (e) => {
|
168
|
-
if (
|
172
|
+
if (Ne)
|
169
173
|
return {
|
170
174
|
addonType: "react-node",
|
171
|
-
addonContent: /* @__PURE__ */ c(
|
172
|
-
|
175
|
+
addonContent: /* @__PURE__ */ c(T, { children: [
|
176
|
+
se && (C === S.Input || C === S.Both) && /* @__PURE__ */ s(fe, { size: "s" }),
|
173
177
|
/* @__PURE__ */ s(
|
174
|
-
|
178
|
+
xe,
|
175
179
|
{
|
176
|
-
className:
|
180
|
+
className: r(t.button, {
|
177
181
|
[t.disabled]: u
|
178
182
|
}),
|
179
183
|
disabled: u,
|
180
184
|
onClick: p,
|
181
185
|
children: /* @__PURE__ */ s(
|
182
|
-
|
186
|
+
R,
|
183
187
|
{
|
184
188
|
iconName: o == l.M || o == l.S ? "DropdownArrowBottom16px" : "DropdownArrowDown24px",
|
185
|
-
className:
|
189
|
+
className: r(t["selector-icon"], {
|
186
190
|
[t["selector-icon-open"]]: e
|
187
191
|
})
|
188
192
|
}
|
@@ -191,24 +195,24 @@ import '../../assets/SelectSearch.css';const Ke = "_disabled_1rthm_6", Ue = "_co
|
|
191
195
|
)
|
192
196
|
] })
|
193
197
|
};
|
194
|
-
},
|
195
|
-
const n = e.name,
|
196
|
-
return ke === "bottom-name" ? /* @__PURE__ */ c(
|
197
|
-
|
198
|
+
}, ce = (e) => {
|
199
|
+
const n = e.name, i = e.bottom && /* @__PURE__ */ s("div", { children: e.bottom });
|
200
|
+
return ke === "bottom-name" ? /* @__PURE__ */ c(T, { children: [
|
201
|
+
i,
|
198
202
|
n
|
199
|
-
] }) : /* @__PURE__ */ c(
|
203
|
+
] }) : /* @__PURE__ */ c(T, { children: [
|
200
204
|
n,
|
201
|
-
|
205
|
+
i
|
202
206
|
] });
|
203
|
-
}, Me = (e) =>
|
207
|
+
}, Me = (e) => v.length ? y.length ? h ? /* @__PURE__ */ c(
|
204
208
|
"div",
|
205
209
|
{
|
206
|
-
ref:
|
210
|
+
ref: z,
|
207
211
|
"data-testid": "select-search-options",
|
208
|
-
className:
|
212
|
+
className: r(
|
209
213
|
t.options,
|
210
214
|
t[o],
|
211
|
-
t[
|
215
|
+
t[O]
|
212
216
|
),
|
213
217
|
style: {
|
214
218
|
height: o === l.M || o === l.S ? "240px" : "320px",
|
@@ -224,23 +228,23 @@ import '../../assets/SelectSearch.css';const Ke = "_disabled_1rthm_6", Ue = "_co
|
|
224
228
|
top: 0,
|
225
229
|
zIndex: 3
|
226
230
|
},
|
227
|
-
children:
|
231
|
+
children: q[j].name
|
228
232
|
}
|
229
233
|
),
|
230
234
|
/* @__PURE__ */ s(
|
231
235
|
"div",
|
232
236
|
{
|
233
237
|
style: {
|
234
|
-
height: `${
|
238
|
+
height: `${x.getTotalSize()}px`,
|
235
239
|
width: "100%"
|
236
240
|
},
|
237
|
-
children:
|
238
|
-
const
|
241
|
+
children: x.getVirtualItems().map((n) => {
|
242
|
+
const i = q[n.index];
|
239
243
|
return /* @__PURE__ */ s(
|
240
244
|
"div",
|
241
245
|
{
|
242
246
|
"data-index": n.index,
|
243
|
-
ref:
|
247
|
+
ref: x.measureElement,
|
244
248
|
style: {
|
245
249
|
position: "absolute",
|
246
250
|
top: 0,
|
@@ -248,41 +252,41 @@ import '../../assets/SelectSearch.css';const Ke = "_disabled_1rthm_6", Ue = "_co
|
|
248
252
|
width: "100%",
|
249
253
|
transform: `translateY(${n.start}px)`
|
250
254
|
},
|
251
|
-
children:
|
255
|
+
children: i.isGroupHeader ? /* @__PURE__ */ s(
|
252
256
|
"div",
|
253
257
|
{
|
254
258
|
className: t["group-header"],
|
255
259
|
style: {
|
256
260
|
visibility: j === n.index ? "hidden" : "visible"
|
257
261
|
},
|
258
|
-
children:
|
262
|
+
children: i.name
|
259
263
|
}
|
260
264
|
) : /* @__PURE__ */ c(
|
261
265
|
ge,
|
262
266
|
{
|
263
|
-
value:
|
264
|
-
className: ({ focus:
|
267
|
+
value: i,
|
268
|
+
className: ({ focus: D }) => r(
|
265
269
|
t.option,
|
266
|
-
|
270
|
+
K,
|
267
271
|
o && t[o],
|
268
272
|
{
|
269
|
-
[t["option-active"]]:
|
273
|
+
[t["option-active"]]: D
|
270
274
|
}
|
271
275
|
),
|
272
|
-
"data-testid": `select-search-option-${
|
276
|
+
"data-testid": `select-search-option-${i.id}`,
|
273
277
|
children: [
|
274
278
|
/* @__PURE__ */ s(
|
275
279
|
"div",
|
276
280
|
{
|
277
|
-
className:
|
281
|
+
className: r(
|
278
282
|
t["option-inner"],
|
279
|
-
|
283
|
+
U
|
280
284
|
),
|
281
|
-
children:
|
285
|
+
children: ce(i)
|
282
286
|
}
|
283
287
|
),
|
284
|
-
m && m.id ===
|
285
|
-
|
288
|
+
m && m.id === i.id && /* @__PURE__ */ s(
|
289
|
+
R,
|
286
290
|
{
|
287
291
|
iconName: o === l.M || o === l.S ? "Done16px" : "Done24px",
|
288
292
|
className: t["selected-icon"]
|
@@ -290,7 +294,7 @@ import '../../assets/SelectSearch.css';const Ke = "_disabled_1rthm_6", Ue = "_co
|
|
290
294
|
)
|
291
295
|
]
|
292
296
|
},
|
293
|
-
|
297
|
+
i.id
|
294
298
|
)
|
295
299
|
},
|
296
300
|
n.key
|
@@ -301,12 +305,12 @@ import '../../assets/SelectSearch.css';const Ke = "_disabled_1rthm_6", Ue = "_co
|
|
301
305
|
]
|
302
306
|
}
|
303
307
|
) : /* @__PURE__ */ s(
|
304
|
-
|
308
|
+
Ke,
|
305
309
|
{
|
306
|
-
className:
|
310
|
+
className: r(
|
307
311
|
t.options,
|
308
312
|
t[o],
|
309
|
-
t[
|
313
|
+
t[O]
|
310
314
|
),
|
311
315
|
"data-testid": "select-search-options",
|
312
316
|
style: { width: "100%" },
|
@@ -315,11 +319,11 @@ import '../../assets/SelectSearch.css';const Ke = "_disabled_1rthm_6", Ue = "_co
|
|
315
319
|
ge,
|
316
320
|
{
|
317
321
|
value: n,
|
318
|
-
className: ({ focus:
|
322
|
+
className: ({ focus: i }) => r(
|
319
323
|
t.option,
|
320
|
-
|
324
|
+
K,
|
321
325
|
{
|
322
|
-
[t["option-active"]]:
|
326
|
+
[t["option-active"]]: i
|
323
327
|
},
|
324
328
|
o && t[o]
|
325
329
|
),
|
@@ -327,15 +331,15 @@ import '../../assets/SelectSearch.css';const Ke = "_disabled_1rthm_6", Ue = "_co
|
|
327
331
|
/* @__PURE__ */ s(
|
328
332
|
"div",
|
329
333
|
{
|
330
|
-
className:
|
334
|
+
className: r(
|
331
335
|
t["option-inner"],
|
332
|
-
|
336
|
+
U
|
333
337
|
),
|
334
|
-
children:
|
338
|
+
children: ce(n)
|
335
339
|
}
|
336
340
|
),
|
337
341
|
m && m.id === n.id && /* @__PURE__ */ s(
|
338
|
-
|
342
|
+
R,
|
339
343
|
{
|
340
344
|
iconName: o === l.M || o === l.S ? "Done16px" : "Done24px",
|
341
345
|
className: t["selected-icon"]
|
@@ -349,11 +353,11 @@ import '../../assets/SelectSearch.css';const Ke = "_disabled_1rthm_6", Ue = "_co
|
|
349
353
|
) : /* @__PURE__ */ s(
|
350
354
|
"div",
|
351
355
|
{
|
352
|
-
className:
|
356
|
+
className: r(
|
353
357
|
t.options,
|
354
358
|
t[o],
|
355
359
|
t["no-options"],
|
356
|
-
t[
|
360
|
+
t[O]
|
357
361
|
),
|
358
362
|
"data-headlessui-state": e ? "open" : "closed",
|
359
363
|
children: we
|
@@ -361,78 +365,79 @@ import '../../assets/SelectSearch.css';const Ke = "_disabled_1rthm_6", Ue = "_co
|
|
361
365
|
) : /* @__PURE__ */ s(
|
362
366
|
"div",
|
363
367
|
{
|
364
|
-
className:
|
368
|
+
className: r(
|
365
369
|
t.options,
|
366
370
|
t[o],
|
367
371
|
t["no-options"],
|
368
|
-
t[
|
372
|
+
t[O]
|
369
373
|
),
|
370
374
|
"data-headlessui-state": e ? "open" : "closed",
|
371
375
|
children: De()
|
372
376
|
}
|
373
377
|
);
|
374
378
|
return /* @__PURE__ */ s(
|
375
|
-
|
379
|
+
$e,
|
376
380
|
{
|
377
381
|
as: "div",
|
378
382
|
value: m,
|
379
|
-
className:
|
380
|
-
[t.full]:
|
383
|
+
className: r(t["select-search"], {
|
384
|
+
[t.full]: qe,
|
381
385
|
[t.disabled]: u
|
382
386
|
}),
|
383
387
|
onChange: Oe,
|
384
388
|
ref: ye,
|
385
389
|
disabled: u,
|
386
|
-
virtual: h ? void 0 : { options:
|
387
|
-
immediate:
|
388
|
-
children: ({ open: e }) => /* @__PURE__ */ c(
|
390
|
+
virtual: h ? void 0 : { options: y },
|
391
|
+
immediate: Se,
|
392
|
+
children: ({ open: e }) => /* @__PURE__ */ c(T, { children: [
|
389
393
|
/* @__PURE__ */ c(
|
390
394
|
"div",
|
391
395
|
{
|
392
|
-
ref:
|
393
|
-
className:
|
396
|
+
ref: te,
|
397
|
+
className: r(t.container, t[o], {
|
394
398
|
[t["container-open"]]: e
|
395
399
|
}),
|
396
400
|
children: [
|
397
401
|
_ && /* @__PURE__ */ c("div", { className: t["input-container"], children: [
|
398
402
|
/* @__PURE__ */ s(
|
399
|
-
|
403
|
+
xe,
|
400
404
|
{
|
401
405
|
disabled: u,
|
402
406
|
style: { width: "100%" },
|
403
|
-
onClick:
|
407
|
+
onClick: ie,
|
404
408
|
children: /* @__PURE__ */ s(
|
405
409
|
ve,
|
406
410
|
{
|
407
|
-
as:
|
408
|
-
label:
|
409
|
-
size:
|
410
|
-
className:
|
411
|
-
[t["select-search-input-disabled"]]: _ &&
|
411
|
+
as: _e,
|
412
|
+
label: $,
|
413
|
+
size: he(o),
|
414
|
+
className: r(t["select-search-input"], {
|
415
|
+
[t["select-search-input-disabled"]]: _ && A
|
412
416
|
}),
|
413
417
|
onChange: re,
|
414
418
|
value: f,
|
415
419
|
disabled: u,
|
416
|
-
variant:
|
420
|
+
variant: Q,
|
417
421
|
rightSlotClassName: t["right-slot"],
|
418
422
|
requiredMarkClassName: t["required-mark"],
|
419
423
|
"data-testid": "select-search-input",
|
420
|
-
onFocus:
|
424
|
+
onFocus: ae,
|
421
425
|
rightAddon: {
|
422
426
|
addonType: "icon",
|
423
|
-
addonContent:
|
427
|
+
addonContent: Fe(e, o)
|
424
428
|
},
|
425
429
|
autocomplete: J,
|
430
|
+
borderRadius: ee,
|
426
431
|
...Y
|
427
432
|
}
|
428
433
|
)
|
429
434
|
}
|
430
435
|
),
|
431
|
-
|
432
|
-
|
436
|
+
A && f && /* @__PURE__ */ s(
|
437
|
+
He,
|
433
438
|
{
|
434
439
|
tabIndex: -1,
|
435
|
-
className:
|
440
|
+
className: r(t.clear, {
|
436
441
|
[t.disabled]: u
|
437
442
|
}),
|
438
443
|
iconButtonClassName: t["icon-button"],
|
@@ -452,21 +457,22 @@ import '../../assets/SelectSearch.css';const Ke = "_disabled_1rthm_6", Ue = "_co
|
|
452
457
|
!_ && /* @__PURE__ */ s(
|
453
458
|
ve,
|
454
459
|
{
|
455
|
-
as:
|
456
|
-
label:
|
457
|
-
size:
|
460
|
+
as: _e,
|
461
|
+
label: $,
|
462
|
+
size: he(o),
|
458
463
|
className: t["select-search-input"],
|
459
464
|
rightSlotClassName: t["right-slot"],
|
460
465
|
requiredMarkClassName: t["required-mark"],
|
461
466
|
value: f,
|
462
467
|
disabled: u,
|
463
|
-
variant:
|
464
|
-
withClearButton:
|
468
|
+
variant: Q,
|
469
|
+
withClearButton: A && !!f,
|
465
470
|
onChange: re,
|
466
471
|
rightAddon: Ve(e),
|
467
472
|
"data-testid": "select-search-input",
|
468
|
-
onFocus:
|
473
|
+
onFocus: ae,
|
469
474
|
autocomplete: J,
|
475
|
+
borderRadius: ee,
|
470
476
|
...Y
|
471
477
|
}
|
472
478
|
)
|
@@ -479,7 +485,7 @@ import '../../assets/SelectSearch.css';const Ke = "_disabled_1rthm_6", Ue = "_co
|
|
479
485
|
);
|
480
486
|
}
|
481
487
|
);
|
482
|
-
|
488
|
+
rt.displayName = "SelectSearch";
|
483
489
|
export {
|
484
|
-
|
490
|
+
rt as SelectSearch
|
485
491
|
};
|
@@ -11,3 +11,9 @@ export declare enum ELoadingIndicatorPlacement {
|
|
11
11
|
}
|
12
12
|
export declare const MOBILE_MENU_HEIGHT = 240;
|
13
13
|
export declare const DESKTOP_MENU_HEIGHT = 320;
|
14
|
+
export declare enum ESelectSearchBorderRadius {
|
15
|
+
All = "all",
|
16
|
+
Left = "left",
|
17
|
+
Right = "right",
|
18
|
+
None = "none"
|
19
|
+
}
|