mimir-ui-kit 1.43.11 → 1.43.13

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 (158) hide show
  1. package/dist/Input-BU_6U1CW.js +227 -0
  2. package/dist/assets/Accordion.css +1 -1
  3. package/dist/assets/AccordionItem.css +1 -1
  4. package/dist/assets/Avatar.css +1 -1
  5. package/dist/assets/Button.css +1 -1
  6. package/dist/assets/CheckboxMimir.css +1 -1
  7. package/dist/assets/Chip.css +1 -1
  8. package/dist/assets/ClearButton.css +1 -0
  9. package/dist/assets/Drawer.css +1 -1
  10. package/dist/assets/GosZnak.css +1 -1
  11. package/dist/assets/Input.css +1 -1
  12. package/dist/assets/InputPassword.css +1 -1
  13. package/dist/assets/InputRangeSlider.css +1 -1
  14. package/dist/assets/Link.css +1 -1
  15. package/dist/assets/ListFiles.css +1 -1
  16. package/dist/assets/ListPhotos.css +1 -1
  17. package/dist/assets/MessageShortReply.css +1 -1
  18. package/dist/assets/MultiSelectSearch.css +1 -1
  19. package/dist/assets/NotificationBadge.css +1 -1
  20. package/dist/assets/OtpInput.css +1 -1
  21. package/dist/assets/Pagination.css +1 -1
  22. package/dist/assets/SelectSearch.css +1 -1
  23. package/dist/assets/hooks.css +1 -1
  24. package/dist/assets/index.css +1 -1
  25. package/dist/assets/styles.css +1 -1
  26. package/dist/components/Accordion/Accordion.d.ts +3 -10
  27. package/dist/components/Accordion/Accordion.js +212 -286
  28. package/dist/components/Accordion/AccordionItem/AccordionItem.js +3 -3
  29. package/dist/components/Accordion/constants.d.ts +4 -0
  30. package/dist/components/Accordion/constants.js +5 -4
  31. package/dist/components/AnchorLink/Link.js +20 -21
  32. package/dist/components/Avatar/Avatar.js +26 -26
  33. package/dist/components/Button/Button.js +87 -110
  34. package/dist/components/Button/constants.d.ts +2 -8
  35. package/dist/components/Button/constants.js +5 -6
  36. package/dist/components/CheckboxMimir/CheckboxMimir.d.ts +0 -2
  37. package/dist/components/CheckboxMimir/CheckboxMimir.js +35 -37
  38. package/dist/components/Chip/Chip.js +17 -17
  39. package/dist/components/DatePicker/DatePicker.d.ts +0 -8
  40. package/dist/components/DatePicker/DatePicker.js +169 -182
  41. package/dist/components/DatePicker/DatePickerModal.js +98 -134
  42. package/dist/components/DatePicker/MonthPickerModal.js +95 -115
  43. package/dist/components/DatePicker/YearPickerModal.js +89 -109
  44. package/dist/components/DatePicker/constants.d.ts +1 -1
  45. package/dist/components/DatePicker/constants.js +7 -6
  46. package/dist/components/DatePicker/hooks.d.ts +1 -2
  47. package/dist/components/DatePicker/hooks.js +13 -13
  48. package/dist/components/Drawer/Drawer.js +138 -172
  49. package/dist/components/Dropdown/Dropdown.js +1 -1
  50. package/dist/components/Dropdown/hooks.js +1 -1
  51. package/dist/components/GosZnak/GosZnak.js +38 -47
  52. package/dist/components/Input/Input.d.ts +0 -4
  53. package/dist/components/Input/Input.js +2 -2
  54. package/dist/components/Input/index.js +1 -1
  55. package/dist/components/{MiniButton/MiniButton.d.ts → InputClearButton/ClearButton.d.ts} +8 -17
  56. package/dist/components/InputClearButton/ClearButton.js +41 -0
  57. package/dist/components/InputClearButton/constants.d.ts +8 -0
  58. package/dist/components/InputClearButton/constants.js +5 -0
  59. package/dist/components/InputClearButton/index.d.ts +4 -0
  60. package/dist/components/InputClearButton/index.js +6 -0
  61. package/dist/components/InputPassword/InputPassword.js +42 -38
  62. package/dist/components/InputPhoneNumber/InputPhoneNumber.js +1 -1
  63. package/dist/components/InputRangeSlider/InputRangeSlider.js +139 -159
  64. package/dist/components/InputRangeSlider/constants.d.ts +0 -5
  65. package/dist/components/InputRangeSlider/constants.js +6 -11
  66. package/dist/components/ListFiles/ListFiles.js +39 -41
  67. package/dist/components/ListPhotos/ListPhotos.js +18 -17
  68. package/dist/components/MessageShortReply/MessageShortReply.js +34 -34
  69. package/dist/components/MultiSelectSearch/MultiSelectSearch.js +152 -153
  70. package/dist/components/MultiSelectSearch/constants.d.ts +0 -1
  71. package/dist/components/MultiSelectSearch/constants.js +7 -7
  72. package/dist/components/MultiSelectSearch/utils.d.ts +1 -1
  73. package/dist/components/MultiSelectSearch/utils.js +16 -18
  74. package/dist/components/NotificationBadge/NotificationBadge.js +33 -49
  75. package/dist/components/NotificationBadge/constants.d.ts +2 -9
  76. package/dist/components/NotificationBadge/constants.js +2 -3
  77. package/dist/components/NotificationBadge/types.d.ts +1 -11
  78. package/dist/components/OtpInput/OtpInput.js +40 -44
  79. package/dist/components/OtpInput/constants.d.ts +0 -4
  80. package/dist/components/OtpInput/constants.js +4 -6
  81. package/dist/components/OtpInput/index.d.ts +0 -1
  82. package/dist/components/OtpInput/index.js +0 -2
  83. package/dist/components/Pagination/Pagination.js +23 -23
  84. package/dist/components/SelectSearch/SelectSearch.js +241 -241
  85. package/dist/components/SelectSearch/utils.d.ts +1 -1
  86. package/dist/components/SelectSearch/utils.js +1 -1
  87. package/dist/components/Slider/Slider.d.ts +5 -1
  88. package/dist/components/Slider/Slider.js +36 -34
  89. package/dist/components/TextArea/TextArea.js +1 -1
  90. package/dist/components/index.d.ts +1 -3
  91. package/dist/components/index.js +51 -55
  92. package/dist/hooks-HgN6Yauq.js +117 -0
  93. package/dist/icons/Icon.js +1 -1
  94. package/dist/icons/components/64px/AdvancePaymentDiscount64px.js +59 -0
  95. package/dist/icons/components/64px/AtsVendors64px.js +37 -0
  96. package/dist/icons/components/64px/ButtonOn64px.js +31 -0
  97. package/dist/icons/components/64px/BuyoutAuto64px.js +45 -0
  98. package/dist/icons/components/64px/CarAssistance64px.js +44 -0
  99. package/dist/icons/components/64px/CarDelivery64px.js +37 -0
  100. package/dist/icons/components/64px/CarSearchReturn64px.js +45 -0
  101. package/dist/icons/components/64px/CarService64px.js +37 -0
  102. package/dist/icons/components/64px/Case64px.js +33 -0
  103. package/dist/icons/components/64px/CoatOfArms64px.js +149 -0
  104. package/dist/icons/components/64px/CoffeeCup64px.js +44 -0
  105. package/dist/icons/components/64px/Cup64px.js +38 -0
  106. package/dist/icons/components/64px/ExpertAdvice64px.js +40 -0
  107. package/dist/icons/components/64px/Fines64px.js +88 -0
  108. package/dist/icons/components/64px/Fuel64px.js +38 -0
  109. package/dist/icons/components/64px/GazprombankIcon24px.js +21 -0
  110. package/dist/icons/components/64px/Kasko64px.js +44 -0
  111. package/dist/icons/components/64px/LegalSupport64px.js +58 -0
  112. package/dist/icons/components/64px/Microphone64px.js +37 -0
  113. package/dist/icons/components/64px/Money64px.js +60 -0
  114. package/dist/icons/components/64px/PaymentSchedule64px.js +39 -0
  115. package/dist/icons/components/64px/PersonalManager64px.js +100 -0
  116. package/dist/icons/components/64px/PreApproval64px.js +44 -0
  117. package/dist/icons/components/64px/Questions64px.js +37 -0
  118. package/dist/icons/components/64px/SupportGeography64px.js +51 -0
  119. package/dist/icons/components/64px/Timer64px.js +45 -0
  120. package/dist/icons/components/64px/Twogis64px.js +51 -0
  121. package/dist/icons/components/64px/Vehicles64px.js +45 -0
  122. package/dist/icons/components/64px/Workplace64px.js +38 -0
  123. package/dist/icons/components/index.js +591 -564
  124. package/dist/{index-DrVFMaBi.js → index-C2dQUuc9.js} +1346 -1184
  125. package/dist/index.js +69 -73
  126. package/dist/styles.module-Cuqm31CO.js +28 -0
  127. package/package.json +1 -1
  128. package/dist/Input-CGZoshMl.js +0 -224
  129. package/dist/assets/CarBodyButton.css +0 -1
  130. package/dist/assets/MiniButton.css +0 -1
  131. package/dist/assets/RoundButton.css +0 -1
  132. package/dist/assets/ScrollWrapper.css +0 -1
  133. package/dist/components/CarBodyButton/CarBodyButton.d.ts +0 -26
  134. package/dist/components/CarBodyButton/CarBodyButton.js +0 -40
  135. package/dist/components/CarBodyButton/index.d.ts +0 -1
  136. package/dist/components/CarBodyButton/index.js +0 -4
  137. package/dist/components/Drawer/ScrollWrapper/ScrollWrapper.d.ts +0 -11
  138. package/dist/components/Drawer/ScrollWrapper/ScrollWrapper.js +0 -27
  139. package/dist/components/GosZnak/utils.d.ts +0 -6
  140. package/dist/components/GosZnak/utils.js +0 -15
  141. package/dist/components/MiniButton/MiniButton.js +0 -44
  142. package/dist/components/MiniButton/constants.d.ts +0 -9
  143. package/dist/components/MiniButton/constants.js +0 -5
  144. package/dist/components/MiniButton/index.d.ts +0 -4
  145. package/dist/components/MiniButton/index.js +0 -6
  146. package/dist/components/NotificationBadge/utils.d.ts +0 -8
  147. package/dist/components/NotificationBadge/utils.js +0 -4
  148. package/dist/components/RoundButton/RoundButton.d.ts +0 -82
  149. package/dist/components/RoundButton/RoundButton.js +0 -69
  150. package/dist/components/RoundButton/constants.d.ts +0 -11
  151. package/dist/components/RoundButton/constants.js +0 -5
  152. package/dist/components/RoundButton/index.d.ts +0 -2
  153. package/dist/components/RoundButton/index.js +0 -7
  154. package/dist/components/RoundButton/types.d.ts +0 -20
  155. package/dist/hooks-Cd4Ez6_j.js +0 -117
  156. package/dist/icons/components/16px/DropdownArrowDown16px.js +0 -23
  157. package/dist/icons/components/24px/EyeClosed24px.js +0 -65
  158. package/dist/styles.module-BfkM1-KJ.js +0 -32
@@ -1,175 +1,175 @@
1
- import { jsx as i, jsxs as c, Fragment as z } from "react/jsx-runtime";
2
- import { u as Oe } from "../../index-D5H8gPPn.js";
3
- import { c as a } from "../../index-DIxK0V-G.js";
4
- import { forwardRef as Le, useRef as De, useState as E, useMemo as q, useEffect as se, useCallback as Ve } from "react";
1
+ import { jsx as r, jsxs as c, Fragment as V } from "react/jsx-runtime";
2
+ import { u as zt } from "../../index-D5H8gPPn.js";
3
+ import { c as i } from "../../index-DIxK0V-G.js";
4
+ import { forwardRef as Lt, useRef as Dt, useState as E, useMemo as q, useEffect as st, useCallback as Vt } from "react";
5
5
  import { ESelectSearchSize as l, ELoadingIndicatorPlacement as x } from "./constants.js";
6
- import { prepareGroupedItems as ze, getDropdownArrowIcon as Ee } from "./utils.js";
6
+ import { prepareGroupedItems as Et, mapSizeToInputSize as it, getDropdownArrowIcon as Tt } from "./utils.js";
7
7
  import { Icon as P } from "../../icons/Icon.js";
8
- import { Button as Be } from "../Button/Button.js";
9
- import { I as ae } from "../../Input-CGZoshMl.js";
10
- import { EInputVariant as Te } from "../Input/constants.js";
11
- import { Loader as re } from "../Loader/Loader.js";
12
- import { H as Ae, U as ce, G as le, W as de, K as Ge } from "../../combobox-fIVOzEhl.js";
13
- import '../../assets/SelectSearch.css';const Me = "_disabled_coh7i_6", qe = "_container_coh7i_13", Pe = "_full_coh7i_26", je = "_button_coh7i_38", Fe = "_options_coh7i_52", He = "_top_coh7i_63", $e = "_bottom_coh7i_67", Ke = "_s_coh7i_2", Ue = "_m_coh7i_109", We = "_l_coh7i_123", Qe = "_loader_coh7i_162", Ye = "_option_coh7i_52", Je = "_clear_coh7i_202", e = {
14
- "select-search": "_select-search_coh7i_2",
15
- disabled: Me,
16
- container: qe,
17
- "container-open": "_container-open_coh7i_22",
18
- full: Pe,
19
- "selected-icon": "_selected-icon_coh7i_30",
20
- "selector-icon-open": "_selector-icon-open_coh7i_34",
21
- button: je,
22
- "selector-icon": "_selector-icon_coh7i_34",
23
- options: Fe,
24
- top: He,
25
- bottom: $e,
26
- "no-options": "_no-options_coh7i_71",
27
- s: Ke,
28
- m: Ue,
29
- l: We,
30
- "select-search-input": "_select-search-input_coh7i_137",
31
- "select-search-input-disabled": "_select-search-input-disabled_coh7i_140",
32
- "group-header": "_group-header_coh7i_147",
33
- "sticky-active": "_sticky-active_coh7i_158",
34
- loader: Qe,
35
- "input-container": "_input-container_coh7i_167",
36
- option: Ye,
37
- "option-active": "_option-active_coh7i_182",
38
- "option-inner": "_option-inner_coh7i_185",
39
- "right-slot": "_right-slot_coh7i_192",
40
- "required-mark": "_required-mark_coh7i_197",
41
- clear: Je,
42
- "icon-button": "_icon-button_coh7i_211"
43
- }, Re = Le(
44
- (ue, pe) => {
8
+ import { Button as Bt } from "../Button/Button.js";
9
+ import { I as at } from "../../Input-BU_6U1CW.js";
10
+ import { EInputVariant as At } from "../Input/constants.js";
11
+ import { Loader as ct } from "../Loader/Loader.js";
12
+ import { H as Gt, U as lt, G as dt, W as ut, K as Mt } from "../../combobox-fIVOzEhl.js";
13
+ import '../../assets/SelectSearch.css';const qt = "_disabled_1rthm_6", Pt = "_container_1rthm_13", jt = "_full_1rthm_26", Ft = "_button_1rthm_38", Ht = "_options_1rthm_52", $t = "_top_1rthm_63", Kt = "_bottom_1rthm_69", Ut = "_s_1rthm_2", Wt = "_m_1rthm_110", Qt = "_l_1rthm_123", Yt = "_loader_1rthm_161", Jt = "_option_1rthm_52", Rt = "_clear_1rthm_200", t = {
14
+ "select-search": "_select-search_1rthm_2",
15
+ disabled: qt,
16
+ container: Pt,
17
+ "container-open": "_container-open_1rthm_22",
18
+ full: jt,
19
+ "selected-icon": "_selected-icon_1rthm_30",
20
+ "selector-icon-open": "_selector-icon-open_1rthm_34",
21
+ button: Ft,
22
+ "selector-icon": "_selector-icon_1rthm_34",
23
+ options: Ht,
24
+ top: $t,
25
+ bottom: Kt,
26
+ "no-options": "_no-options_1rthm_75",
27
+ s: Ut,
28
+ m: Wt,
29
+ l: Qt,
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: Yt,
35
+ "input-container": "_input-container_1rthm_166",
36
+ option: Jt,
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: Rt,
42
+ "icon-button": "_icon-button_1rthm_209"
43
+ }, Xt = Lt(
44
+ (mt, pt) => {
45
45
  const {
46
46
  placeholder: j,
47
- size: n = l.L,
47
+ size: o = l.L,
48
48
  value: d,
49
- onChange: r,
50
- full: he,
51
- showArrow: me = !0,
49
+ onChange: a,
50
+ full: ht,
51
+ showArrow: _t = !0,
52
52
  items: g = [],
53
53
  classNameOption: F,
54
54
  classNameOptionInner: H,
55
- displayValue: I = "name",
55
+ displayValue: S = "name",
56
56
  filterOnSearch: $ = !0,
57
- onSearch: S,
58
- variant: K = Te.DefaultGray,
57
+ onSearch: I,
58
+ variant: K = At.DefaultGray,
59
59
  menuPlacement: k = "bottom",
60
60
  disabled: u = !1,
61
61
  searchProps: U,
62
- withClearButton: B = !1,
63
- disableInput: m = !1,
62
+ withClearButton: T = !1,
63
+ disableInput: h = !1,
64
64
  autocomplete: W = "on",
65
- immediate: _e = !1,
66
- noOptionsText: fe = "Нет данных",
67
- noMatchText: ge = "Ничего не найдено",
68
- loadOnOpen: T,
65
+ immediate: ft = !1,
66
+ noOptionsText: gt = "Нет данных",
67
+ noMatchText: vt = "Ничего не найдено",
68
+ loadOnOpen: B,
69
69
  loading: Q,
70
70
  loadingIndicatorPlacement: w = x.Dropdown,
71
- groupBy: h,
72
- getGroupTitle: Y = (t) => t,
73
- optionLayout: ve = "name-bottom"
74
- } = ue, A = (t) => {
75
- if (!t) return "";
76
- const o = t[I];
77
- return typeof o == "string" ? o : String(o || "");
78
- }, be = (t) => {
79
- const o = t[I];
80
- return typeof o == "string" ? o : String(o || "");
81
- }, G = A(d), C = De(null), [_, v] = E(G), [p, b] = E(d), [ye, J] = E(!1), [M, Ne] = E(null), R = Q !== void 0 ? Q : ye, y = q(() => {
71
+ groupBy: p,
72
+ getGroupTitle: Y = (e) => e,
73
+ optionLayout: bt = "name-bottom"
74
+ } = mt, A = (e) => {
75
+ if (!e) return "";
76
+ const n = e[S];
77
+ return typeof n == "string" ? n : String(n || "");
78
+ }, yt = (e) => {
79
+ const n = e[S];
80
+ return typeof n == "string" ? n : String(n || "");
81
+ }, G = A(d), C = Dt(null), [_, v] = E(G), [m, b] = E(d), [Nt, J] = E(!1), [M, xt] = E(null), R = Q !== void 0 ? Q : Nt, y = q(() => {
82
82
  if (!$)
83
83
  return g;
84
- const t = String(_ || "").trim().toLowerCase();
85
- return t ? g.filter((o) => be(o).toLowerCase().includes(t)) : g;
86
- }, [_, g, $, I]), N = q(() => h ? ze(
84
+ const e = String(_ || "").trim().toLowerCase();
85
+ return e ? g.filter((n) => yt(n).toLowerCase().includes(e)) : g;
86
+ }, [_, g, $, S]), N = q(() => p ? Et(
87
87
  y,
88
- h,
89
- Y || ((t) => t)
90
- ) : y, [y, h, Y]), O = q(() => {
91
- const t = [];
92
- return N.forEach((o, s) => {
93
- o.isGroupHeader && t.push(s);
94
- }), t;
95
- }, [N]), f = Oe({
88
+ p,
89
+ Y || ((e) => e)
90
+ ) : y, [y, p, Y]), O = q(() => {
91
+ const e = [];
92
+ return N.forEach((n, s) => {
93
+ n.isGroupHeader && e.push(s);
94
+ }), e;
95
+ }, [N]), f = zt({
96
96
  count: N.length,
97
97
  getScrollElement: () => C.current,
98
- estimateSize: () => n === l.L ? 65 : 49,
98
+ estimateSize: () => o === l.L ? 65 : 49,
99
99
  overscan: 10
100
100
  });
101
- se(() => {
102
- const t = C.current;
103
- if (!t || !h) return;
104
- const o = () => {
105
- var oe, ne;
106
- const s = t.scrollTop;
107
- let L = null;
108
- for (let D = 0; D < O.length; D++) {
109
- const ie = O[D];
110
- if ((((oe = f.getVirtualItems().find((V) => V.index === ie)) == null ? void 0 : oe.start) || 0) <= s) {
111
- L = ie;
112
- const V = O[D + 1];
113
- if (V !== void 0 && (((ne = f.getVirtualItems().find((Ce) => Ce.index === V)) == null ? void 0 : ne.start) || 0) <= s)
101
+ st(() => {
102
+ const e = C.current;
103
+ if (!e || !p) return;
104
+ const n = () => {
105
+ var nt, ot;
106
+ const s = e.scrollTop;
107
+ let z = null;
108
+ for (let L = 0; L < O.length; L++) {
109
+ const rt = O[L];
110
+ if ((((nt = f.getVirtualItems().find((D) => D.index === rt)) == null ? void 0 : nt.start) || 0) <= s) {
111
+ z = rt;
112
+ const D = O[L + 1];
113
+ if (D !== void 0 && (((ot = f.getVirtualItems().find((Ot) => Ot.index === D)) == null ? void 0 : ot.start) || 0) <= s)
114
114
  continue;
115
115
  } else
116
116
  break;
117
117
  }
118
- Ne(L);
118
+ xt(z);
119
119
  };
120
- return t.addEventListener("scroll", o), () => t.removeEventListener("scroll", o);
121
- }, [f, O, h, C.current]);
120
+ return e.addEventListener("scroll", n), () => e.removeEventListener("scroll", n);
121
+ }, [f, O, p, C.current]);
122
122
  const X = async () => {
123
- if (T)
123
+ if (B)
124
124
  try {
125
- J(!0), await T();
125
+ J(!0), await B();
126
126
  } finally {
127
127
  J(!1);
128
128
  }
129
- }, xe = (t) => {
130
- if (t) {
131
- const o = A(t);
132
- v(o), b(t), r == null || r(t);
129
+ }, St = (e) => {
130
+ if (e) {
131
+ const n = A(e);
132
+ v(n), b(e), a == null || a(e);
133
133
  } else
134
- v(""), b(null), r == null || r({ id: "", name: "" });
135
- }, Z = Ve(
136
- (t) => {
137
- if (m) return;
138
- const o = t.target.value;
139
- v(o), S == null || S(o), p && o !== A(p) && b(null), !o && d && (r == null || r({ id: "", name: "" }));
134
+ v(""), b(null), a == null || a({ id: "", name: "" });
135
+ }, Z = Vt(
136
+ (e) => {
137
+ if (h) return;
138
+ const n = e.target.value;
139
+ v(n), I == null || I(n), m && n !== A(m) && b(null), !n && d && (a == null || a({ id: "", name: "" }));
140
140
  },
141
- [m, r, S, d, p, I]
142
- ), Ie = () => {
143
- v(""), b(null), r == null || r({ id: "", name: "" });
144
- }, ee = async (t) => {
145
- m && t.target.blur(), T && await X();
141
+ [h, a, I, d, m, S]
142
+ ), It = () => {
143
+ v(""), b(null), a == null || a({ id: "", name: "" });
144
+ }, tt = async (e) => {
145
+ h && e.target.blur(), B && await X();
146
146
  };
147
- se(() => {
148
- const t = !d || typeof d == "object" && !Object.keys(d).length;
149
- v(t ? "" : G), b(t ? null : d);
147
+ st(() => {
148
+ const e = !d || typeof d == "object" && !Object.keys(d).length;
149
+ v(e ? "" : G), b(e ? null : d);
150
150
  }, [d, G]);
151
- const Se = () => R && (w === x.Dropdown || w === x.Both) ? /* @__PURE__ */ c("div", { className: e.loader, children: [
152
- /* @__PURE__ */ i(re, { size: "s" }),
151
+ const kt = () => R && (w === x.Dropdown || w === x.Both) ? /* @__PURE__ */ c("div", { className: t.loader, children: [
152
+ /* @__PURE__ */ r(ct, { size: "s" }),
153
153
  "Загрузка..."
154
- ] }) : fe, ke = (t) => {
155
- if (me)
154
+ ] }) : gt, wt = (e) => {
155
+ if (_t)
156
156
  return {
157
157
  addonType: "react-node",
158
- addonContent: /* @__PURE__ */ c(z, { children: [
159
- R && (w === x.Input || w === x.Both) && /* @__PURE__ */ i(re, { size: "s" }),
160
- /* @__PURE__ */ i(
161
- ce,
158
+ addonContent: /* @__PURE__ */ c(V, { children: [
159
+ R && (w === x.Input || w === x.Both) && /* @__PURE__ */ r(ct, { size: "s" }),
160
+ /* @__PURE__ */ r(
161
+ lt,
162
162
  {
163
- className: a(e.button, {
164
- [e.disabled]: u
163
+ className: i(t.button, {
164
+ [t.disabled]: u
165
165
  }),
166
166
  disabled: u,
167
- children: /* @__PURE__ */ i(
167
+ children: /* @__PURE__ */ r(
168
168
  P,
169
169
  {
170
- iconName: n == l.M || n == l.S ? "DropdownArrowBottom16px" : "DropdownArrowDown24px",
171
- className: a(e["selector-icon"], {
172
- [e["selector-icon-open"]]: t
170
+ iconName: o == l.M || o == l.S ? "DropdownArrowBottom16px" : "DropdownArrowDown24px",
171
+ className: i(t["selector-icon"], {
172
+ [t["selector-icon-open"]]: e
173
173
  })
174
174
  }
175
175
  )
@@ -177,30 +177,30 @@ import '../../assets/SelectSearch.css';const Me = "_disabled_coh7i_6", qe = "_co
177
177
  )
178
178
  ] })
179
179
  };
180
- }, te = (t) => {
181
- const o = t.name, s = t.bottom && /* @__PURE__ */ i("div", { children: t.bottom });
182
- return ve === "bottom-name" ? /* @__PURE__ */ c(z, { children: [
180
+ }, et = (e) => {
181
+ const n = e.name, s = e.bottom && /* @__PURE__ */ r("div", { children: e.bottom });
182
+ return bt === "bottom-name" ? /* @__PURE__ */ c(V, { children: [
183
183
  s,
184
- o
185
- ] }) : /* @__PURE__ */ c(z, { children: [
186
- o,
184
+ n
185
+ ] }) : /* @__PURE__ */ c(V, { children: [
186
+ n,
187
187
  s
188
188
  ] });
189
- }, we = (t) => g.length ? y.length ? h ? /* @__PURE__ */ c(
189
+ }, Ct = (e) => g.length ? y.length ? p ? /* @__PURE__ */ c(
190
190
  "div",
191
191
  {
192
192
  ref: C,
193
193
  "data-testid": "select-search-options",
194
- className: a(e.options, e[n], e[k]),
194
+ className: i(t.options, t[o], t[k]),
195
195
  style: {
196
- height: n === l.M || n === l.S ? "240px" : "320px",
196
+ height: o === l.M || o === l.S ? "240px" : "320px",
197
197
  overflow: "auto"
198
198
  },
199
199
  children: [
200
- M !== null && /* @__PURE__ */ i(
200
+ M !== null && /* @__PURE__ */ r(
201
201
  "div",
202
202
  {
203
- className: e["group-header"],
203
+ className: t["group-header"],
204
204
  style: {
205
205
  position: "sticky",
206
206
  top: 0,
@@ -209,65 +209,65 @@ import '../../assets/SelectSearch.css';const Me = "_disabled_coh7i_6", qe = "_co
209
209
  children: N[M].name
210
210
  }
211
211
  ),
212
- /* @__PURE__ */ i(
212
+ /* @__PURE__ */ r(
213
213
  "div",
214
214
  {
215
215
  style: {
216
216
  height: `${f.getTotalSize()}px`,
217
217
  width: "100%"
218
218
  },
219
- children: f.getVirtualItems().map((o) => {
220
- const s = N[o.index];
221
- return /* @__PURE__ */ i(
219
+ children: f.getVirtualItems().map((n) => {
220
+ const s = N[n.index];
221
+ return /* @__PURE__ */ r(
222
222
  "div",
223
223
  {
224
- "data-index": o.index,
224
+ "data-index": n.index,
225
225
  ref: f.measureElement,
226
226
  style: {
227
227
  position: "absolute",
228
228
  top: 0,
229
229
  left: 0,
230
230
  width: "100%",
231
- transform: `translateY(${o.start}px)`
231
+ transform: `translateY(${n.start}px)`
232
232
  },
233
- children: s.isGroupHeader ? /* @__PURE__ */ i(
233
+ children: s.isGroupHeader ? /* @__PURE__ */ r(
234
234
  "div",
235
235
  {
236
- className: e["group-header"],
236
+ className: t["group-header"],
237
237
  style: {
238
- visibility: M === o.index ? "hidden" : "visible"
238
+ visibility: M === n.index ? "hidden" : "visible"
239
239
  },
240
240
  children: s.name
241
241
  }
242
242
  ) : /* @__PURE__ */ c(
243
- de,
243
+ ut,
244
244
  {
245
245
  value: s,
246
- className: ({ focus: L }) => a(
247
- e.option,
246
+ className: ({ focus: z }) => i(
247
+ t.option,
248
248
  F,
249
- n && e[n],
249
+ o && t[o],
250
250
  {
251
- [e["option-active"]]: L
251
+ [t["option-active"]]: z
252
252
  }
253
253
  ),
254
254
  "data-testid": `select-search-option-${s.id}`,
255
255
  children: [
256
- /* @__PURE__ */ i(
256
+ /* @__PURE__ */ r(
257
257
  "div",
258
258
  {
259
- className: a(
260
- e["option-inner"],
259
+ className: i(
260
+ t["option-inner"],
261
261
  H
262
262
  ),
263
- children: te(s)
263
+ children: et(s)
264
264
  }
265
265
  ),
266
- p && p.id === s.id && /* @__PURE__ */ i(
266
+ m && m.id === s.id && /* @__PURE__ */ r(
267
267
  P,
268
268
  {
269
- iconName: n === l.M || n === l.S ? "Done16px" : "Done24px",
270
- className: e["selected-icon"]
269
+ iconName: o === l.M || o === l.S ? "Done16px" : "Done24px",
270
+ className: t["selected-icon"]
271
271
  }
272
272
  )
273
273
  ]
@@ -275,129 +275,129 @@ import '../../assets/SelectSearch.css';const Me = "_disabled_coh7i_6", qe = "_co
275
275
  s.id
276
276
  )
277
277
  },
278
- o.key
278
+ n.key
279
279
  );
280
280
  })
281
281
  }
282
282
  )
283
283
  ]
284
284
  }
285
- ) : /* @__PURE__ */ i(
286
- Ge,
285
+ ) : /* @__PURE__ */ r(
286
+ Mt,
287
287
  {
288
- className: a(e.options, e[n], e[k]),
288
+ className: i(t.options, t[o], t[k]),
289
289
  "data-testid": "select-search-options",
290
290
  style: { width: "100%" },
291
291
  static: !0,
292
- children: ({ option: o }) => /* @__PURE__ */ c(
293
- de,
292
+ children: ({ option: n }) => /* @__PURE__ */ c(
293
+ ut,
294
294
  {
295
- value: o,
296
- className: ({ focus: s }) => a(
297
- e.option,
295
+ value: n,
296
+ className: ({ focus: s }) => i(
297
+ t.option,
298
298
  F,
299
299
  {
300
- [e["option-active"]]: s
300
+ [t["option-active"]]: s
301
301
  },
302
- n && e[n]
302
+ o && t[o]
303
303
  ),
304
304
  children: [
305
- /* @__PURE__ */ i(
305
+ /* @__PURE__ */ r(
306
306
  "div",
307
307
  {
308
- className: a(
309
- e["option-inner"],
308
+ className: i(
309
+ t["option-inner"],
310
310
  H
311
311
  ),
312
- children: te(o)
312
+ children: et(n)
313
313
  }
314
314
  ),
315
- p && p.id === o.id && /* @__PURE__ */ i(
315
+ m && m.id === n.id && /* @__PURE__ */ r(
316
316
  P,
317
317
  {
318
- iconName: n === l.M || n === l.S ? "Done16px" : "Done24px",
319
- className: e["selected-icon"]
318
+ iconName: o === l.M || o === l.S ? "Done16px" : "Done24px",
319
+ className: t["selected-icon"]
320
320
  }
321
321
  )
322
322
  ]
323
323
  },
324
- o.id
324
+ n.id
325
325
  )
326
326
  }
327
- ) : /* @__PURE__ */ i(
327
+ ) : /* @__PURE__ */ r(
328
328
  "div",
329
329
  {
330
- className: a(
331
- e.options,
332
- e[n],
333
- e["no-options"],
334
- e[k]
330
+ className: i(
331
+ t.options,
332
+ t[o],
333
+ t["no-options"],
334
+ t[k]
335
335
  ),
336
- "data-headlessui-state": t ? "open" : "closed",
337
- children: ge
336
+ "data-headlessui-state": e ? "open" : "closed",
337
+ children: vt
338
338
  }
339
- ) : /* @__PURE__ */ i(
339
+ ) : /* @__PURE__ */ r(
340
340
  "div",
341
341
  {
342
- className: a(
343
- e.options,
344
- e[n],
345
- e["no-options"],
346
- e[k]
342
+ className: i(
343
+ t.options,
344
+ t[o],
345
+ t["no-options"],
346
+ t[k]
347
347
  ),
348
- "data-headlessui-state": t ? "open" : "closed",
349
- children: Se()
348
+ "data-headlessui-state": e ? "open" : "closed",
349
+ children: kt()
350
350
  }
351
351
  );
352
- return /* @__PURE__ */ i(
353
- Ae,
352
+ return /* @__PURE__ */ r(
353
+ Gt,
354
354
  {
355
355
  as: "div",
356
- value: p,
357
- className: a(e["select-search"], {
358
- [e.full]: he,
359
- [e.disabled]: u
356
+ value: m,
357
+ className: i(t["select-search"], {
358
+ [t.full]: ht,
359
+ [t.disabled]: u
360
360
  }),
361
- onChange: xe,
362
- ref: pe,
361
+ onChange: St,
362
+ ref: pt,
363
363
  disabled: u,
364
- virtual: h ? void 0 : { options: y },
365
- immediate: _e,
366
- children: ({ open: t }) => /* @__PURE__ */ c(z, { children: [
364
+ virtual: p ? void 0 : { options: y },
365
+ immediate: ft,
366
+ children: ({ open: e }) => /* @__PURE__ */ c(V, { children: [
367
367
  /* @__PURE__ */ c(
368
368
  "div",
369
369
  {
370
- className: a(e.container, e[n], {
371
- [e["container-open"]]: t
370
+ className: i(t.container, t[o], {
371
+ [t["container-open"]]: e
372
372
  }),
373
373
  children: [
374
- m && /* @__PURE__ */ c("div", { className: e["input-container"], children: [
375
- /* @__PURE__ */ i(
376
- ce,
374
+ h && /* @__PURE__ */ c("div", { className: t["input-container"], children: [
375
+ /* @__PURE__ */ r(
376
+ lt,
377
377
  {
378
378
  disabled: u,
379
379
  style: { width: "100%" },
380
380
  onClick: X,
381
- children: /* @__PURE__ */ i(
382
- le,
381
+ children: /* @__PURE__ */ r(
382
+ dt,
383
383
  {
384
- as: ae,
384
+ as: at,
385
385
  label: j,
386
- size: n,
387
- className: a(e["select-search-input"], {
388
- [e["select-search-input-disabled"]]: m && B
386
+ size: it(o),
387
+ className: i(t["select-search-input"], {
388
+ [t["select-search-input-disabled"]]: h && T
389
389
  }),
390
390
  onChange: Z,
391
391
  value: _,
392
392
  disabled: u,
393
393
  variant: K,
394
- rightSlotClassName: e["right-slot"],
395
- requiredMarkClassName: e["required-mark"],
394
+ rightSlotClassName: t["right-slot"],
395
+ requiredMarkClassName: t["required-mark"],
396
396
  "data-testid": "select-search-input",
397
- onFocus: ee,
397
+ onFocus: tt,
398
398
  rightAddon: {
399
399
  addonType: "icon",
400
- addonContent: Ee(t, n)
400
+ addonContent: Tt(e, o)
401
401
  },
402
402
  autocomplete: W,
403
403
  ...U
@@ -405,44 +405,44 @@ import '../../assets/SelectSearch.css';const Me = "_disabled_coh7i_6", qe = "_co
405
405
  )
406
406
  }
407
407
  ),
408
- B && _ && /* @__PURE__ */ i(
409
- Be,
408
+ T && _ && /* @__PURE__ */ r(
409
+ Bt,
410
410
  {
411
411
  tabIndex: -1,
412
- className: a(e.clear, {
413
- [e.disabled]: u
412
+ className: i(t.clear, {
413
+ [t.disabled]: u
414
414
  }),
415
- iconButtonClassName: e["icon-button"],
415
+ iconButtonClassName: t["icon-button"],
416
416
  isIconButton: !0,
417
417
  iconName: "Close16px",
418
418
  size: "m-s",
419
419
  clear: !0,
420
420
  disabled: u,
421
421
  variant: "secondary-gray",
422
- onClick: (o) => {
423
- o.stopPropagation(), Ie();
422
+ onClick: (n) => {
423
+ n.stopPropagation(), It();
424
424
  },
425
425
  "data-testid": "clear-button"
426
426
  }
427
427
  )
428
428
  ] }),
429
- !m && /* @__PURE__ */ i(
430
- le,
429
+ !h && /* @__PURE__ */ r(
430
+ dt,
431
431
  {
432
- as: ae,
432
+ as: at,
433
433
  label: j,
434
- size: n,
435
- className: e["select-search-input"],
436
- rightSlotClassName: e["right-slot"],
437
- requiredMarkClassName: e["required-mark"],
434
+ size: it(o),
435
+ className: t["select-search-input"],
436
+ rightSlotClassName: t["right-slot"],
437
+ requiredMarkClassName: t["required-mark"],
438
438
  value: _,
439
439
  disabled: u,
440
440
  variant: K,
441
- withClearButton: B && !!_,
441
+ withClearButton: T && !!_,
442
442
  onChange: Z,
443
- rightAddon: ke(t),
443
+ rightAddon: wt(e),
444
444
  "data-testid": "select-search-input",
445
- onFocus: ee,
445
+ onFocus: tt,
446
446
  autocomplete: W,
447
447
  ...U
448
448
  }
@@ -450,13 +450,13 @@ import '../../assets/SelectSearch.css';const Me = "_disabled_coh7i_6", qe = "_co
450
450
  ]
451
451
  }
452
452
  ),
453
- t && we(t)
453
+ e && Ct(e)
454
454
  ] })
455
455
  }
456
456
  );
457
457
  }
458
458
  );
459
- Re.displayName = "SelectSearch";
459
+ Xt.displayName = "SelectSearch";
460
460
  export {
461
- Re as SelectSearch
461
+ Xt as SelectSearch
462
462
  };