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.
Files changed (80) hide show
  1. package/dist/Input-IzZ6B9kw.js +232 -0
  2. package/dist/assets/Avatar.css +1 -1
  3. package/dist/assets/Chip.css +1 -1
  4. package/dist/assets/CopyText.css +1 -0
  5. package/dist/assets/Counter.css +1 -0
  6. package/dist/assets/DropdownSelect.css +1 -0
  7. package/dist/assets/Input.css +1 -1
  8. package/dist/assets/Pagination.css +1 -1
  9. package/dist/assets/SelectSearch.css +1 -1
  10. package/dist/assets/TabTrail.css +1 -1
  11. package/dist/assets/index.css +1 -1
  12. package/dist/assets/styles.css +1 -1
  13. package/dist/components/Avatar/Avatar.d.ts +1 -1
  14. package/dist/components/Avatar/Avatar.js +41 -37
  15. package/dist/components/Avatar/constants.d.ts +5 -0
  16. package/dist/components/Avatar/constants.js +3 -2
  17. package/dist/components/Avatar/index.d.ts +1 -0
  18. package/dist/components/Avatar/index.js +5 -4
  19. package/dist/components/Avatar/types.d.ts +3 -1
  20. package/dist/components/Chip/Chip.d.ts +5 -1
  21. package/dist/components/Chip/Chip.js +45 -36
  22. package/dist/components/Chip/constants.d.ts +5 -1
  23. package/dist/components/Chip/constants.js +3 -3
  24. package/dist/components/CopyText/CopyText.d.ts +3 -0
  25. package/dist/components/CopyText/CopyText.js +96 -0
  26. package/dist/components/CopyText/index.d.ts +2 -0
  27. package/dist/components/CopyText/index.js +4 -0
  28. package/dist/components/CopyText/types.d.ts +32 -0
  29. package/dist/components/DatePicker/DatePicker.d.ts +19 -0
  30. package/dist/components/DatePicker/DatePicker.js +149 -134
  31. package/dist/components/DatePicker/DatePickerModal.js +1 -1
  32. package/dist/components/DatePicker/MonthPickerModal.js +1 -1
  33. package/dist/components/DatePicker/YearPickerModal.js +1 -1
  34. package/dist/components/DatePicker/constants.d.ts +6 -0
  35. package/dist/components/DatePicker/constants.js +13 -12
  36. package/dist/components/DatePicker/index.d.ts +1 -0
  37. package/dist/components/DatePicker/index.js +3 -1
  38. package/dist/components/DropdownSelect/DropdownSelect.d.ts +3 -0
  39. package/dist/components/DropdownSelect/DropdownSelect.js +115 -0
  40. package/dist/components/DropdownSelect/constants.d.ts +5 -0
  41. package/dist/components/DropdownSelect/constants.js +4 -0
  42. package/dist/components/DropdownSelect/index.d.ts +3 -0
  43. package/dist/components/DropdownSelect/index.js +6 -0
  44. package/dist/components/DropdownSelect/types.d.ts +56 -0
  45. package/dist/components/Input/Input.d.ts +5 -0
  46. package/dist/components/Input/Input.js +1 -1
  47. package/dist/components/Input/constants.d.ts +6 -0
  48. package/dist/components/Input/constants.js +4 -3
  49. package/dist/components/Input/index.js +1 -1
  50. package/dist/components/InputPassword/InputPassword.js +1 -1
  51. package/dist/components/InputPhoneNumber/InputPhoneNumber.js +1 -1
  52. package/dist/components/MultiSelectSearch/MultiSelectSearch.js +1 -1
  53. package/dist/components/MultiSelectSearch/utils.js +1 -1
  54. package/dist/components/OtpInput/OtpInput.js +1 -1
  55. package/dist/components/Pagination/Counter/Counter.d.ts +9 -0
  56. package/dist/components/Pagination/Counter/Counter.js +28 -0
  57. package/dist/components/Pagination/Pagination.d.ts +17 -0
  58. package/dist/components/Pagination/Pagination.js +167 -126
  59. package/dist/components/Pagination/constants.d.ts +6 -0
  60. package/dist/components/Pagination/constants.js +5 -3
  61. package/dist/components/Pagination/index.d.ts +1 -0
  62. package/dist/components/Pagination/index.js +4 -2
  63. package/dist/components/SelectSearch/SelectSearch.d.ts +2 -1
  64. package/dist/components/SelectSearch/SelectSearch.js +193 -187
  65. package/dist/components/SelectSearch/constants.d.ts +6 -0
  66. package/dist/components/SelectSearch/constants.js +7 -5
  67. package/dist/components/SelectSearch/index.d.ts +1 -1
  68. package/dist/components/SelectSearch/index.js +5 -4
  69. package/dist/components/SelectSearch/types.d.ts +6 -1
  70. package/dist/components/SelectSearch/utils.js +1 -1
  71. package/dist/components/TabTrail/TabTrail.d.ts +16 -0
  72. package/dist/components/TabTrail/TabTrail.js +257 -220
  73. package/dist/components/TextArea/TextArea.js +1 -1
  74. package/dist/components/index.d.ts +8 -4
  75. package/dist/components/index.js +178 -166
  76. package/dist/index.js +203 -191
  77. package/dist/styles.module-B3lX7mJq.js +31 -0
  78. package/package.json +1 -1
  79. package/dist/Input-BU_6U1CW.js +0 -227
  80. package/dist/styles.module-Cuqm31CO.js +0 -28
@@ -1,188 +1,192 @@
1
- import { jsx as s, jsxs as c, Fragment as A } from "react/jsx-runtime";
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 i } from "../../index-DIxK0V-G.js";
4
- import { forwardRef as Be, useRef as ue, useState as x, useMemo as F, useCallback as me, useEffect as H } from "react";
5
- import { ESelectSearchSize as l, ELoadingIndicatorPlacement as I } from "./constants.js";
6
- import { prepareGroupedItems as Pe, shouldShowMenuOnTop as Ge, mapSizeToInputSize as pe, getDropdownArrowIcon as qe } from "./utils.js";
7
- import { Icon as $ } from "../../icons/Icon.js";
8
- import { Button as je } from "../Button/Button.js";
9
- import { I as he } from "../../Input-BU_6U1CW.js";
10
- import { EInputVariant as Fe } from "../Input/constants.js";
11
- import { Loader as _e } from "../Loader/Loader.js";
12
- import { H as He, U as fe, G as ve, W as ge, K as $e } from "../../combobox-fIVOzEhl.js";
13
- import '../../assets/SelectSearch.css';const Ke = "_disabled_1rthm_6", Ue = "_container_1rthm_13", We = "_full_1rthm_26", Qe = "_button_1rthm_38", Re = "_options_1rthm_52", Ye = "_top_1rthm_63", Je = "_bottom_1rthm_69", Xe = "_s_1rthm_2", Ze = "_m_1rthm_110", et = "_l_1rthm_123", tt = "_loader_1rthm_161", nt = "_option_1rthm_52", ot = "_clear_1rthm_200", t = {
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-open_1rthm_22",
18
- full: We,
19
- "selected-icon": "_selected-icon_1rthm_30",
20
- "selector-icon-open": "_selector-icon-open_1rthm_34",
21
- button: Qe,
22
- "selector-icon": "_selector-icon_1rthm_34",
23
- options: Re,
24
- top: Ye,
25
- bottom: Je,
26
- "no-options": "_no-options_1rthm_75",
27
- s: Xe,
28
- m: Ze,
29
- l: et,
30
- "select-search-input": "_select-search-input_1rthm_136",
31
- "select-search-input-disabled": "_select-search-input-disabled_1rthm_139",
32
- "group-header": "_group-header_1rthm_146",
33
- "sticky-active": "_sticky-active_1rthm_157",
34
- loader: tt,
35
- "input-container": "_input-container_1rthm_166",
36
- option: nt,
37
- "option-active": "_option-active_1rthm_180",
38
- "option-inner": "_option-inner_1rthm_183",
39
- "right-slot": "_right-slot_1rthm_190",
40
- "required-mark": "_required-mark_1rthm_195",
41
- clear: ot,
42
- "icon-button": "_icon-button_1rthm_209"
43
- }, st = Be(
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: K,
49
+ placeholder: $,
47
50
  size: o = l.L,
48
51
  value: d,
49
52
  onChange: a,
50
- full: Ne,
51
- showArrow: Se = !0,
52
- items: g = [],
53
- classNameOption: U,
54
- classNameOptionInner: W,
55
- displayValue: w = "name",
56
- filterOnSearch: Q = !0,
57
- onSearch: k,
58
- variant: R = Fe.DefaultGray,
59
- menuPlacement: C = "bottom",
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: B = !1,
65
+ withClearButton: A = !1,
63
66
  disableInput: _ = !1,
64
67
  autocomplete: J = "on",
65
- immediate: xe = !1,
68
+ immediate: Se = !1,
66
69
  noOptionsText: Ie = "Нет данных",
67
70
  noMatchText: we = "Ничего не найдено",
68
- loadOnOpen: P,
71
+ loadOnOpen: B,
69
72
  loading: X,
70
- loadingIndicatorPlacement: L = I.Dropdown,
73
+ loadingIndicatorPlacement: C = S.Dropdown,
71
74
  groupBy: h,
72
75
  getGroupTitle: Z = (e) => e,
73
76
  optionLayout: ke = "name-bottom",
74
- autoPlacement: z = !1
75
- } = be, G = (e) => {
77
+ autoPlacement: L = !1,
78
+ borderRadius: ee = Pe.All
79
+ } = be, P = (e) => {
76
80
  if (!e) return "";
77
- const n = e[w];
81
+ const n = e[I];
78
82
  return typeof n == "string" ? n : String(n || "");
79
83
  }, Ce = (e) => {
80
- const n = e[w];
84
+ const n = e[I];
81
85
  return typeof n == "string" ? n : String(n || "");
82
- }, q = G(d), O = ue(null), ee = ue(null), [f, b] = x(q), [m, y] = x(d), [Le, te] = x(!1), [j, ze] = x(null), [E, ne] = x(C), oe = X !== void 0 ? X : Le, N = F(() => {
83
- if (!Q)
84
- return g;
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 ? g.filter((n) => Ce(n).toLowerCase().includes(e)) : g;
87
- }, [f, g, Q, w]), S = F(() => h ? Pe(
88
- N,
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
- ) : N, [N, h, Z]), D = F(() => {
95
+ ) : y, [y, h, Z]), E = F(() => {
92
96
  const e = [];
93
- return S.forEach((n, r) => {
94
- n.isGroupHeader && e.push(r);
97
+ return q.forEach((n, i) => {
98
+ n.isGroupHeader && e.push(i);
95
99
  }), e;
96
- }, [S]), v = Ae({
97
- count: S.length,
98
- getScrollElement: () => O.current,
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 = me(() => {
102
- if (!z) {
103
- ne(C);
105
+ }), p = pe(() => {
106
+ if (!L) {
107
+ oe(k);
104
108
  return;
105
109
  }
106
- const e = Ge(ee, o);
107
- ne(e ? "top" : C);
108
- }, [z, C, o]);
110
+ const e = je(te, o);
111
+ oe(e ? "top" : k);
112
+ }, [L, k, o]);
109
113
  H(() => {
110
- if (z)
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
- }, [z, p]), H(() => {
115
- const e = O.current;
118
+ }, [L, p]), H(() => {
119
+ const e = z.current;
116
120
  if (!e || !h) return;
117
121
  const n = () => {
118
- var ce, le;
119
- const r = e.scrollTop;
120
- let V = null;
121
- for (let M = 0; M < D.length; M++) {
122
- const de = D[M];
123
- if ((((ce = v.getVirtualItems().find((T) => T.index === de)) == null ? void 0 : ce.start) || 0) <= r) {
124
- V = de;
125
- const T = D[M + 1];
126
- if (T !== void 0 && (((le = v.getVirtualItems().find((Te) => Te.index === T)) == null ? void 0 : le.start) || 0) <= r)
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(V);
135
+ ze(D);
132
136
  };
133
137
  return e.addEventListener("scroll", n), () => e.removeEventListener("scroll", n);
134
- }, [v, D, h, O.current]);
135
- const se = async () => {
136
- if (P)
138
+ }, [x, E, h, z.current]);
139
+ const ie = async () => {
140
+ if (B)
137
141
  try {
138
- te(!0), await P();
142
+ ne(!0), await B();
139
143
  } finally {
140
- te(!1);
144
+ ne(!1);
141
145
  }
142
146
  }, Oe = (e) => {
143
147
  if (e) {
144
- const n = G(e);
145
- b(n), y(e), a == null || a(e);
148
+ const n = P(e);
149
+ g(n), b(e), a == null || a(e);
146
150
  } else
147
- b(""), y(null), a == null || a({ id: "", name: "" });
148
- }, re = me(
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
- b(n), k == null || k(n), m && n !== G(m) && y(null), !n && d && (a == null || a({ id: "", name: "" }));
156
+ g(n), w == null || w(n), m && n !== P(m) && b(null), !n && d && (a == null || a({ id: "", name: "" }));
153
157
  },
154
- [_, a, k, d, m, w]
158
+ [_, a, w, d, m, I]
155
159
  ), Ee = () => {
156
- b(""), y(null), a == null || a({ id: "", name: "" });
157
- }, ie = async (e) => {
158
- _ && e.target.blur(), p(), P && await se();
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
- b(e ? "" : q), y(e ? null : d);
163
- }, [d, q]);
164
- const De = () => oe && (L === I.Dropdown || L === I.Both) ? /* @__PURE__ */ c("div", { className: t.loader, children: [
165
- /* @__PURE__ */ s(_e, { size: "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 (Se)
172
+ if (Ne)
169
173
  return {
170
174
  addonType: "react-node",
171
- addonContent: /* @__PURE__ */ c(A, { children: [
172
- oe && (L === I.Input || L === I.Both) && /* @__PURE__ */ s(_e, { size: "s" }),
175
+ addonContent: /* @__PURE__ */ c(T, { children: [
176
+ se && (C === S.Input || C === S.Both) && /* @__PURE__ */ s(fe, { size: "s" }),
173
177
  /* @__PURE__ */ s(
174
- fe,
178
+ xe,
175
179
  {
176
- className: i(t.button, {
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: i(t["selector-icon"], {
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
- }, ae = (e) => {
195
- const n = e.name, r = e.bottom && /* @__PURE__ */ s("div", { children: e.bottom });
196
- return ke === "bottom-name" ? /* @__PURE__ */ c(A, { children: [
197
- r,
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(A, { children: [
203
+ ] }) : /* @__PURE__ */ c(T, { children: [
200
204
  n,
201
- r
205
+ i
202
206
  ] });
203
- }, Me = (e) => g.length ? N.length ? h ? /* @__PURE__ */ c(
207
+ }, Me = (e) => v.length ? y.length ? h ? /* @__PURE__ */ c(
204
208
  "div",
205
209
  {
206
- ref: O,
210
+ ref: z,
207
211
  "data-testid": "select-search-options",
208
- className: i(
212
+ className: r(
209
213
  t.options,
210
214
  t[o],
211
- t[E]
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: S[j].name
231
+ children: q[j].name
228
232
  }
229
233
  ),
230
234
  /* @__PURE__ */ s(
231
235
  "div",
232
236
  {
233
237
  style: {
234
- height: `${v.getTotalSize()}px`,
238
+ height: `${x.getTotalSize()}px`,
235
239
  width: "100%"
236
240
  },
237
- children: v.getVirtualItems().map((n) => {
238
- const r = S[n.index];
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: v.measureElement,
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: r.isGroupHeader ? /* @__PURE__ */ s(
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: r.name
262
+ children: i.name
259
263
  }
260
264
  ) : /* @__PURE__ */ c(
261
265
  ge,
262
266
  {
263
- value: r,
264
- className: ({ focus: V }) => i(
267
+ value: i,
268
+ className: ({ focus: D }) => r(
265
269
  t.option,
266
- U,
270
+ K,
267
271
  o && t[o],
268
272
  {
269
- [t["option-active"]]: V
273
+ [t["option-active"]]: D
270
274
  }
271
275
  ),
272
- "data-testid": `select-search-option-${r.id}`,
276
+ "data-testid": `select-search-option-${i.id}`,
273
277
  children: [
274
278
  /* @__PURE__ */ s(
275
279
  "div",
276
280
  {
277
- className: i(
281
+ className: r(
278
282
  t["option-inner"],
279
- W
283
+ U
280
284
  ),
281
- children: ae(r)
285
+ children: ce(i)
282
286
  }
283
287
  ),
284
- m && m.id === r.id && /* @__PURE__ */ s(
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
- r.id
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
- $e,
308
+ Ke,
305
309
  {
306
- className: i(
310
+ className: r(
307
311
  t.options,
308
312
  t[o],
309
- t[E]
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: r }) => i(
322
+ className: ({ focus: i }) => r(
319
323
  t.option,
320
- U,
324
+ K,
321
325
  {
322
- [t["option-active"]]: r
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: i(
334
+ className: r(
331
335
  t["option-inner"],
332
- W
336
+ U
333
337
  ),
334
- children: ae(n)
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: i(
356
+ className: r(
353
357
  t.options,
354
358
  t[o],
355
359
  t["no-options"],
356
- t[E]
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: i(
368
+ className: r(
365
369
  t.options,
366
370
  t[o],
367
371
  t["no-options"],
368
- t[E]
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
- He,
379
+ $e,
376
380
  {
377
381
  as: "div",
378
382
  value: m,
379
- className: i(t["select-search"], {
380
- [t.full]: Ne,
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: N },
387
- immediate: xe,
388
- children: ({ open: e }) => /* @__PURE__ */ c(A, { children: [
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: ee,
393
- className: i(t.container, t[o], {
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
- fe,
403
+ xe,
400
404
  {
401
405
  disabled: u,
402
406
  style: { width: "100%" },
403
- onClick: se,
407
+ onClick: ie,
404
408
  children: /* @__PURE__ */ s(
405
409
  ve,
406
410
  {
407
- as: he,
408
- label: K,
409
- size: pe(o),
410
- className: i(t["select-search-input"], {
411
- [t["select-search-input-disabled"]]: _ && B
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: R,
420
+ variant: Q,
417
421
  rightSlotClassName: t["right-slot"],
418
422
  requiredMarkClassName: t["required-mark"],
419
423
  "data-testid": "select-search-input",
420
- onFocus: ie,
424
+ onFocus: ae,
421
425
  rightAddon: {
422
426
  addonType: "icon",
423
- addonContent: qe(e, o)
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
- B && f && /* @__PURE__ */ s(
432
- je,
436
+ A && f && /* @__PURE__ */ s(
437
+ He,
433
438
  {
434
439
  tabIndex: -1,
435
- className: i(t.clear, {
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: he,
456
- label: K,
457
- size: pe(o),
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: R,
464
- withClearButton: B && !!f,
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: ie,
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
- st.displayName = "SelectSearch";
488
+ rt.displayName = "SelectSearch";
483
489
  export {
484
- st as SelectSearch
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
+ }