mimir-ui-kit 1.43.11 → 1.43.12

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,41 +1,38 @@
1
- import { jsxs as l, Fragment as L, jsx as t } from "react/jsx-runtime";
1
+ import { jsxs as f, Fragment as I, jsx as t } from "react/jsx-runtime";
2
2
  import { c as n } from "../../index-DIxK0V-G.js";
3
- import { forwardRef as ne, useState as p, useRef as M, useEffect as R, useCallback as g } from "react";
4
- import { EDrawerPosition as H } from "./constants.js";
5
- import { useContainer as re } from "./hooks.js";
6
- import { ScrollWrapper as se } from "./ScrollWrapper/ScrollWrapper.js";
7
- import { useMediaQuery as ae } from "../../hooks/useMediaQuery/useMediaQuery.js";
8
- import { EMediaQuery as ie } from "../../hooks/useMediaQuery/constants.js";
9
- import { useLockBodyScroll as le } from "../../hooks/useLockBodyScroll/useLockBodyScroll.js";
10
- import { useResizeObserver as ce } from "../../hooks/useResizeObserver/useResizeObserver.js";
11
- import { Button as T } from "../Button/Button.js";
12
- import { EButtonVariantDefault as de, EButtonSize as c } from "../Button/constants.js";
13
- import { Loader as ue } from "../Loader/Loader.js";
14
- import { Portal as me } from "../Portal/Portal.js";
15
- import { EScrollBarVariant as fe, EScrollBarSize as _e } from "../ScrollBar/constants.js";
16
- import '../../assets/Drawer.css';const he = "_drawer_1btea_2", be = "_content_1btea_26", pe = "_header_1btea_45", ge = "_title_1btea_58", ye = "_space_1btea_74", ve = "_inner_1btea_82", Ce = "_button_1btea_87", we = "_footer_1btea_92", Ne = "_left_1btea_109", ke = "_right_1btea_113", Se = "_full_1btea_117", Be = "_bottom_1btea_127", Ee = "_opened_1btea_144", ze = "_overlay_1btea_208", Ie = "_unmount_1btea_224", e = {
17
- drawer: he,
18
- content: be,
19
- "is-loading": "_is-loading_1btea_41",
20
- header: pe,
21
- "sticky-header": "_sticky-header_1btea_52",
22
- title: ge,
23
- space: ye,
24
- inner: ve,
25
- button: Ce,
26
- footer: we,
27
- "has-scroll": "_has-scroll_1btea_102",
28
- "footer-button": "_footer-button_1btea_105",
29
- left: Ne,
30
- right: ke,
31
- full: Se,
32
- bottom: Be,
33
- "full-bottom-height": "_full-bottom-height_1btea_138",
34
- opened: Ee,
35
- "is-closing": "_is-closing_1btea_165",
36
- overlay: ze,
37
- unmount: Ie
38
- }, Oe = 300, Le = (d) => d ? {
3
+ import { forwardRef as q, useState as M, useRef as J, useCallback as h, useEffect as U } from "react";
4
+ import { EDrawerPosition as O } from "./constants.js";
5
+ import { useContainer as Z } from "./hooks.js";
6
+ import { useMediaQuery as $ } from "../../hooks/useMediaQuery/useMediaQuery.js";
7
+ import { EMediaQuery as ee } from "../../hooks/useMediaQuery/constants.js";
8
+ import { useLockBodyScroll as te } from "../../hooks/useLockBodyScroll/useLockBodyScroll.js";
9
+ import { useResizeObserver as oe } from "../../hooks/useResizeObserver/useResizeObserver.js";
10
+ import { Button as S } from "../Button/Button.js";
11
+ import { EButtonVariantDefault as ne, EButtonSize as r } from "../Button/constants.js";
12
+ import { Loader as se } from "../Loader/Loader.js";
13
+ import { Portal as re } from "../Portal/Portal.js";
14
+ import '../../assets/Drawer.css';const ae = "_drawer_13ua6_2", ie = "_content_13ua6_26", le = "_header_13ua6_44", ce = "_title_13ua6_58", ue = "_space_13ua6_72", de = "_inner_13ua6_83", me = "_button_13ua6_86", _e = "_footer_13ua6_91", fe = "_left_13ua6_104", he = "_right_13ua6_108", pe = "_full_13ua6_112", ye = "_bottom_13ua6_122", ge = "_opened_13ua6_139", Ce = "_overlay_13ua6_195", ve = "_unmount_13ua6_211", e = {
15
+ drawer: ae,
16
+ content: ie,
17
+ "is-loading": "_is-loading_13ua6_40",
18
+ header: le,
19
+ "sticky-header": "_sticky-header_13ua6_52",
20
+ title: ce,
21
+ space: ue,
22
+ inner: de,
23
+ button: me,
24
+ footer: _e,
25
+ "footer-button": "_footer-button_13ua6_100",
26
+ left: fe,
27
+ right: he,
28
+ full: pe,
29
+ bottom: ye,
30
+ "full-bottom-height": "_full-bottom-height_13ua6_133",
31
+ opened: ge,
32
+ "is-closing": "_is-closing_13ua6_158",
33
+ overlay: Ce,
34
+ unmount: ve
35
+ }, Ne = 300, be = (a) => a ? {
39
36
  drawer: {
40
37
  position: "absolute",
41
38
  zIndex: 100
@@ -44,151 +41,120 @@ import '../../assets/Drawer.css';const he = "_drawer_1btea_2", be = "_content_1b
44
41
  position: "absolute",
45
42
  zIndex: 90
46
43
  }
47
- } : {}, Ye = ne(
48
- (d, x) => {
44
+ } : {}, Ae = q(
45
+ (a, L) => {
49
46
  const {
50
- as: D = "div",
51
- isOpen: r,
52
- onClose: u,
53
- title: A,
54
- className: P,
55
- unmount: y = !0,
56
- isLoading: a = !1,
57
- stickyHeader: X,
58
- fullBottomHeight: j = !1,
59
- position: m = H.RIGHT,
60
- paddingRight: F = 8,
61
- footer: f,
62
- children: G,
63
- classNameTitle: Q,
64
- classNameHeader: V,
65
- classNameInner: W,
66
- classNameContent: K,
67
- classNameFooter: Y,
68
- closeOnClickOutside: v = !0,
69
- showCloseButton: C = !0,
70
- getContainer: _,
71
- ...q
72
- } = d, [w, N] = p(!1), [J, k] = p(!1), S = M(), h = ae(ie.XS1), { ref: U } = ce({
73
- enabled: m === H.BOTTOM
74
- }), B = re(_), s = M(null), [Z, $] = p(!1);
75
- R(() => {
76
- const i = () => {
77
- if (s.current) {
78
- const { scrollHeight: te, clientHeight: oe } = s.current;
79
- $(te > oe);
80
- }
81
- };
82
- i();
83
- const O = new ResizeObserver(i);
84
- return s.current && O.observe(s.current), () => {
85
- O.disconnect();
86
- };
87
- }, [r, a]), le({
88
- on: r && !w,
89
- paddingRight: F
47
+ as: R = "div",
48
+ isOpen: s,
49
+ onClose: i,
50
+ title: T,
51
+ className: x,
52
+ unmount: p = !0,
53
+ isLoading: l = !1,
54
+ stickyHeader: z,
55
+ fullBottomHeight: D = !1,
56
+ position: c = O.RIGHT,
57
+ paddingRight: A = 8,
58
+ footer: u,
59
+ children: H,
60
+ classNameTitle: P,
61
+ classNameHeader: X,
62
+ classNameInner: j,
63
+ classNameContent: F,
64
+ classNameFooter: Q,
65
+ closeOnClickOutside: y = !0,
66
+ showCloseButton: g = !0,
67
+ getContainer: d,
68
+ ...G
69
+ } = a, [C, v] = M(!1), [K, N] = M(!1), b = J(), m = $(ee.XS1), { ref: V } = oe({
70
+ enabled: c === O.BOTTOM
71
+ }), w = Z(d);
72
+ te({
73
+ on: s && !C,
74
+ paddingRight: A
90
75
  });
91
- const o = g(() => {
92
- u && (N(!0), S.current = setTimeout(() => {
93
- u(), N(!1);
94
- }, Oe));
95
- }, [u]), ee = g(() => {
96
- v && o();
97
- }, [v, o]), b = g(
98
- (i) => {
99
- i.key === "Escape" && o();
76
+ const o = h(() => {
77
+ i && (v(!0), b.current = setTimeout(() => {
78
+ i(), v(!1);
79
+ }, Ne));
80
+ }, [i]), W = h(() => {
81
+ y && o();
82
+ }, [y, o]), _ = h(
83
+ (Y) => {
84
+ Y.key === "Escape" && o();
100
85
  },
101
86
  [o]
102
87
  );
103
- R(() => (r && (k(!0), window.addEventListener("keydown", b)), () => {
104
- k(!1), clearTimeout(S.current), window.removeEventListener("keydown", b);
105
- }), [r, b]);
106
- const E = {
107
- [e.opened]: J,
108
- [e["is-closing"]]: w,
109
- [e["full-bottom-height"]]: j,
110
- [e["is-loading"]]: a
88
+ U(() => (s && (N(!0), window.addEventListener("keydown", _)), () => {
89
+ N(!1), clearTimeout(b.current), window.removeEventListener("keydown", _);
90
+ }), [s, _]);
91
+ const k = {
92
+ [e.opened]: K,
93
+ [e["is-closing"]]: C,
94
+ [e["full-bottom-height"]]: D,
95
+ [e["is-loading"]]: l
111
96
  };
112
- if (!r && y)
97
+ if (!s && p)
113
98
  return null;
114
- const z = Le(_ !== void 0 && _ !== !1), I = /* @__PURE__ */ l(L, { children: [
115
- /* @__PURE__ */ l(
116
- D,
99
+ const B = be(d !== void 0 && d !== !1), E = /* @__PURE__ */ f(I, { children: [
100
+ /* @__PURE__ */ t(
101
+ R,
117
102
  {
118
- ref: x,
119
- "aria-hidden": !r,
103
+ ref: L,
104
+ "aria-hidden": !s,
120
105
  role: "dialog",
121
- style: z.drawer,
122
- className: n(e.drawer, e[m], E, P),
123
- ...q,
124
- children: [
125
- /* @__PURE__ */ t(
126
- "section",
127
- {
128
- ref: U,
129
- className: n(
130
- e.content,
131
- K,
132
- e[m],
106
+ style: B.drawer,
107
+ className: n(e.drawer, e[c], k, x),
108
+ ...G,
109
+ children: /* @__PURE__ */ t(
110
+ "section",
111
+ {
112
+ ref: V,
113
+ className: n(
114
+ e.content,
115
+ F,
116
+ e[c],
117
+ {
118
+ [e["is-loading"]]: !!l
119
+ }
120
+ ),
121
+ children: l ? /* @__PURE__ */ t(se, {}) : /* @__PURE__ */ f(I, { children: [
122
+ /* @__PURE__ */ f(
123
+ "header",
133
124
  {
134
- [e["is-loading"]]: !!a
125
+ className: n(e.header, X, {
126
+ [e["sticky-header"]]: z
127
+ }),
128
+ children: [
129
+ /* @__PURE__ */ t("h2", { className: n(e.title, P), children: T }),
130
+ /* @__PURE__ */ t("div", { className: e.space, children: g && /* @__PURE__ */ t(
131
+ S,
132
+ {
133
+ variant: ne.SecondaryWhite,
134
+ isIconButton: !0,
135
+ size: m ? r.S : r.M,
136
+ iconName: "Close16px",
137
+ onClick: o,
138
+ className: e.button
139
+ }
140
+ ) })
141
+ ]
135
142
  }
136
143
  ),
137
- children: a ? /* @__PURE__ */ t(ue, {}) : /* @__PURE__ */ l(L, { children: [
138
- /* @__PURE__ */ l(
139
- "header",
140
- {
141
- className: n(e.header, V, {
142
- [e["sticky-header"]]: X
143
- }),
144
- children: [
145
- /* @__PURE__ */ t("h2", { className: n(e.title, Q), children: A }),
146
- /* @__PURE__ */ t("div", { className: e.space, children: C && /* @__PURE__ */ t(
147
- T,
148
- {
149
- variant: de.SecondaryWhite,
150
- isIconButton: !0,
151
- size: h ? c.S : c.M,
152
- iconName: "Close16px",
153
- onClick: o,
154
- className: e.button
155
- }
156
- ) })
157
- ]
158
- }
159
- ),
160
- /* @__PURE__ */ t(
161
- se,
162
- {
163
- ref: s,
164
- className: n(e.inner, W),
165
- variant: fe.LIGHT,
166
- size: _e.M,
167
- children: G
168
- }
169
- )
170
- ] })
171
- }
172
- ),
173
- /* @__PURE__ */ t(
174
- "footer",
175
- {
176
- className: n(e.footer, Y, {
177
- [e["has-scroll"]]: Z
178
- }),
179
- children: typeof f == "function" ? f({ handleClose: o }) : f || C && /* @__PURE__ */ t(
180
- T,
144
+ /* @__PURE__ */ t("div", { className: n(e.inner, j), children: H }),
145
+ /* @__PURE__ */ t("footer", { className: n(e.footer, Q), children: typeof u == "function" ? u({ handleClose: o }) : u || g && /* @__PURE__ */ t(
146
+ S,
181
147
  {
182
- size: h ? c.L : c.XXL,
183
- full: h,
148
+ size: m ? r.M : r.XXL,
149
+ full: m,
184
150
  onClick: o,
185
151
  className: e["footer-button"],
186
152
  children: "Закрыть"
187
153
  }
188
- )
189
- }
190
- )
191
- ]
154
+ ) })
155
+ ] })
156
+ }
157
+ )
192
158
  }
193
159
  ),
194
160
  /* @__PURE__ */ t(
@@ -197,20 +163,20 @@ import '../../assets/Drawer.css';const he = "_drawer_1btea_2", be = "_content_1b
197
163
  className: n(
198
164
  e.overlay,
199
165
  {
200
- [e.unmount]: !y
166
+ [e.unmount]: !p
201
167
  },
202
- E
168
+ k
203
169
  ),
204
- style: z.overlay,
170
+ style: B.overlay,
205
171
  "data-testid": "drawer-overlay",
206
- onClick: ee
172
+ onClick: W
207
173
  }
208
174
  )
209
175
  ] });
210
- return B === !1 ? I : /* @__PURE__ */ t(me, { element: B, children: I });
176
+ return w === !1 ? E : /* @__PURE__ */ t(re, { element: w, children: E });
211
177
  }
212
178
  );
213
179
  export {
214
- Oe as ANIMATION_DELAY,
215
- Ye as Drawer
180
+ Ne as ANIMATION_DELAY,
181
+ Ae as Drawer
216
182
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as re, jsxs as De, Fragment as nt } from "react/jsx-runtime";
2
2
  import { c as pe } from "../../index-DIxK0V-G.js";
3
3
  import E, { createContext as ue, useState as X, useContext as te, useRef as R, useEffect as ce, useMemo as Z, Fragment as fe, useReducer as rt, createRef as Fe, useId as be, memo as ot, useCallback as me } from "react";
4
- import { u as lt, c as G } from "../../hooks-Cd4Ez6_j.js";
4
+ import { u as lt, c as G } from "../../hooks-HgN6Yauq.js";
5
5
  import { Button as at } from "../Button/Button.js";
6
6
  import { o as S, u as He, M as ve, W as Y, y as ee, O as le, n as ie, m as ut, t as st, H as se, s as Ce, p as it, a as V, T as ct, $ as dt, b as pt, D as ke, I as ft, c as oe } from "../../keyboard-wis2TUql.js";
7
7
  import { w as vt } from "../../use-active-press-CnDeVvQq.js";
@@ -1,7 +1,7 @@
1
1
  import "../../index-DIxK0V-G.js";
2
2
  import "react";
3
3
  import "./constants.js";
4
- import { a as r, A, D as N, P as O, u as i } from "../../hooks-Cd4Ez6_j.js";
4
+ import { a as r, A, D as N, P as O, u as i } from "../../hooks-HgN6Yauq.js";
5
5
  export {
6
6
  r as ALIGNMENT_THRESHOLD,
7
7
  A as ANIMATION_DELAY,
@@ -1,66 +1,57 @@
1
- import { jsxs as r, jsx as o } from "react/jsx-runtime";
1
+ import { jsxs as c, jsx as o } from "react/jsx-runtime";
2
2
  import { c as n } from "../../index-DIxK0V-G.js";
3
- import { EGosZnakSize as f, EGosZnakType as u } from "./constants.js";
4
- import { splitAutoNumber as N } from "./utils.js";
5
- import '../../assets/GosZnak.css';const h = "_letters_6vy0s_23", k = "_digits_6vy0s_33", z = "_region_6vy0s_43", b = "_country_6vy0s_57", x = "_l_6vy0s_23", G = "_s_6vy0s_77", Z = "_normal_6vy0s_91", j = "_traffic_6vy0s_98", E = "_military_6vy0s_105", A = "_police_6vy0s_112", L = "_diplomatic_6vy0s_119", s = {
6
- "gos-znak": "_gos-znak_6vy0s_2",
7
- "number-container": "_number-container_6vy0s_13",
8
- letters: h,
9
- digits: k,
10
- region: z,
11
- "region-container": "_region-container_6vy0s_49",
3
+ import { EGosZnakSize as g, EGosZnakType as f } from "./constants.js";
4
+ import '../../assets/GosZnak.css';const y = "_number_dr109_13", N = "_region_dr109_32", b = "_country_dr109_46", h = "_l_dr109_53", k = "_s_dr109_62", z = "_normal_dr109_71", v = "_traffic_dr109_78", x = "_military_dr109_85", G = "_police_dr109_92", Z = "_diplomatic_dr109_99", r = {
5
+ "gos-znak": "_gos-znak_dr109_2",
6
+ number: y,
7
+ "number-container": "_number-container_dr109_22",
8
+ region: N,
9
+ "region-container": "_region-container_dr109_38",
12
10
  country: b,
13
- l: x,
14
- s: G,
15
- normal: Z,
16
- traffic: j,
17
- military: E,
18
- police: A,
19
- diplomatic: L
20
- }, B = ({
21
- number: t,
22
- region: c,
23
- country: e,
24
- size: a = f.L,
25
- type: _ = u.Normal,
26
- className: l,
27
- numberClassName: m,
28
- regionClassName: y,
29
- countryClassName: p,
30
- numberContainerClassName: v,
31
- regionContainerClassName: d
32
- }) => /* @__PURE__ */ r(
11
+ l: h,
12
+ s: k,
13
+ normal: z,
14
+ traffic: v,
15
+ military: x,
16
+ police: G,
17
+ diplomatic: Z
18
+ }, S = ({
19
+ number: i,
20
+ region: s,
21
+ country: a,
22
+ size: e = g.L,
23
+ type: _ = f.Normal,
24
+ className: t,
25
+ numberClassName: l,
26
+ regionClassName: m,
27
+ countryClassName: d,
28
+ numberContainerClassName: p,
29
+ regionContainerClassName: u
30
+ }) => /* @__PURE__ */ c(
33
31
  "div",
34
32
  {
35
- className: n(s["gos-znak"], s[a], s[_], l),
33
+ className: n(r["gos-znak"], r[e], r[_], t),
36
34
  children: [
37
35
  /* @__PURE__ */ o(
38
36
  "div",
39
37
  {
40
38
  className: n(
41
- s["number-container"],
42
- v
39
+ r["number-container"],
40
+ p
43
41
  ),
44
- children: N(t).map((i, g) => /* @__PURE__ */ o(
45
- "span",
46
- {
47
- className: n(s[i.type], m),
48
- children: i.value
49
- },
50
- g
51
- ))
42
+ children: /* @__PURE__ */ o("span", { className: n(r.number, l), children: i })
52
43
  }
53
44
  ),
54
- /* @__PURE__ */ r(
45
+ /* @__PURE__ */ c(
55
46
  "div",
56
47
  {
57
48
  className: n(
58
- s["region-container"],
59
- d
49
+ r["region-container"],
50
+ u
60
51
  ),
61
52
  children: [
62
- /* @__PURE__ */ o("span", { className: n(s.region, y), children: c }),
63
- /* @__PURE__ */ o("span", { className: n(s.country, p), children: e })
53
+ /* @__PURE__ */ o("span", { className: n(r.region, m), children: s }),
54
+ /* @__PURE__ */ o("span", { className: n(r.country, d), children: a })
64
55
  ]
65
56
  }
66
57
  )
@@ -68,5 +59,5 @@ import '../../assets/GosZnak.css';const h = "_letters_6vy0s_23", k = "_digits_6v
68
59
  }
69
60
  );
70
61
  export {
71
- B as GosZnak
62
+ S as GosZnak
72
63
  };
@@ -57,10 +57,6 @@ export type TAdditionalProps = {
57
57
  /**
58
58
  * Разрешить только числовой ввод
59
59
  */
60
- onClearButtonClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
61
- /**
62
- * Функция вызывающаяся при клике на clearButton
63
- */
64
60
  numbersOnly?: boolean;
65
61
  /**
66
62
  * Максимальная длина ввода
@@ -2,10 +2,10 @@ import "react/jsx-runtime";
2
2
  import "../../index-DIxK0V-G.js";
3
3
  import "react";
4
4
  import "./constants.js";
5
- import { I as f } from "../../Input-CGZoshMl.js";
5
+ import { I as f } from "../../Input-BU_6U1CW.js";
6
6
  import "../../hooks/useMergeRefs/useMergeRefs.js";
7
7
  import "../../icons/Icon.js";
8
- import "../MiniButton/MiniButton.js";
8
+ import "../Button/Button.js";
9
9
  export {
10
10
  f as Input
11
11
  };
@@ -1,4 +1,4 @@
1
- import { I as n } from "../../Input-CGZoshMl.js";
1
+ import { I as n } from "../../Input-BU_6U1CW.js";
2
2
  import { EInputSize as u, EInputStatus as I, EInputVariant as a } from "./constants.js";
3
3
  export {
4
4
  u as EInputSize,
@@ -1,19 +1,18 @@
1
1
  import { default as React } from 'react';
2
- import { TIcon } from '../../icons';
3
2
 
4
- export type TMiniButton = {
3
+ export type TClearButton = {
5
4
  /**
6
5
  * Класс, применяемый к корневому элементу кнопки.
7
6
  */
8
7
  className?: string;
9
8
  /**
10
- * Выключен ли miniButton или нет
9
+ * Выключен ли clearButton или нет
11
10
  */
12
11
  disabled?: boolean;
13
12
  /**
14
13
  * Вариант кнопки загрузки файла
15
14
  */
16
- variant?: 'gray' | 'white' | 'transparent';
15
+ variant?: 'gray' | 'white';
17
16
  /**
18
17
  * Размер кнопки загрузки файла
19
18
  */
@@ -21,25 +20,21 @@ export type TMiniButton = {
21
20
  /**
22
21
  * Класс для кнопки
23
22
  */
24
- miniButtonClassName?: string;
25
- /**
26
- * Название иконки
27
- */
28
- iconName: TIcon;
23
+ clearButtonClassName?: string;
29
24
  } & React.ButtonHTMLAttributes<HTMLButtonElement>;
30
- export declare const MiniButton: React.ForwardRefExoticComponent<{
25
+ export declare const ClearButton: React.ForwardRefExoticComponent<{
31
26
  /**
32
27
  * Класс, применяемый к корневому элементу кнопки.
33
28
  */
34
29
  className?: string;
35
30
  /**
36
- * Выключен ли miniButton или нет
31
+ * Выключен ли clearButton или нет
37
32
  */
38
33
  disabled?: boolean;
39
34
  /**
40
35
  * Вариант кнопки загрузки файла
41
36
  */
42
- variant?: "gray" | "white" | "transparent";
37
+ variant?: "gray" | "white";
43
38
  /**
44
39
  * Размер кнопки загрузки файла
45
40
  */
@@ -47,9 +42,5 @@ export declare const MiniButton: React.ForwardRefExoticComponent<{
47
42
  /**
48
43
  * Класс для кнопки
49
44
  */
50
- miniButtonClassName?: string;
51
- /**
52
- * Название иконки
53
- */
54
- iconName: TIcon;
45
+ clearButtonClassName?: string;
55
46
  } & React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,41 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { c as _ } from "../../index-DIxK0V-G.js";
3
+ import { forwardRef as p } from "react";
4
+ import { EClearButtonSize as a, EClearButtonVariant as f } from "./constants.js";
5
+ import { Icon as u } from "../../icons/Icon.js";
6
+ import '../../assets/ClearButton.css';const C = "_clear_n3to9_2", y = "_gray_n3to9_18", N = "_l_n3to9_32", o = {
7
+ clear: C,
8
+ gray: y,
9
+ l: N,
10
+ "m-s": "_m-s_n3to9_36"
11
+ }, d = p(
12
+ (s, e) => {
13
+ const {
14
+ disabled: l = !1,
15
+ size: t = a.MS,
16
+ variant: n = f.Gray,
17
+ className: c,
18
+ ...m
19
+ } = s, i = _(
20
+ o.clear,
21
+ t === a.L ? o.l : o["m-s"],
22
+ o[n],
23
+ c
24
+ );
25
+ return /* @__PURE__ */ r(
26
+ "button",
27
+ {
28
+ type: "button",
29
+ ref: e,
30
+ ...m,
31
+ disabled: l,
32
+ className: i,
33
+ children: /* @__PURE__ */ r(u, { iconName: t === "l" ? "Close16px" : "Close12px" })
34
+ }
35
+ );
36
+ }
37
+ );
38
+ d.displayName = "ClearButton";
39
+ export {
40
+ d as ClearButton
41
+ };
@@ -0,0 +1,8 @@
1
+ export declare enum EClearButtonVariant {
2
+ Gray = "gray",
3
+ White = "white"
4
+ }
5
+ export declare enum EClearButtonSize {
6
+ L = "l",
7
+ MS = "m-s"
8
+ }
@@ -0,0 +1,5 @@
1
+ var e = /* @__PURE__ */ ((r) => (r.Gray = "gray", r.White = "white", r))(e || {}), h = /* @__PURE__ */ ((r) => (r.L = "l", r.MS = "m-s", r))(h || {});
2
+ export {
3
+ h as EClearButtonSize,
4
+ e as EClearButtonVariant
5
+ };
@@ -0,0 +1,4 @@
1
+ export { ClearButton } from './ClearButton.tsx';
2
+ export type { TClearButton } from './ClearButton.tsx';
3
+ export { EClearButtonVariant } from './constants.ts';
4
+ export type { EClearButtonSize } from './constants.ts';
@@ -0,0 +1,6 @@
1
+ import { ClearButton as o } from "./ClearButton.js";
2
+ import { EClearButtonVariant as e } from "./constants.js";
3
+ export {
4
+ o as ClearButton,
5
+ e as EClearButtonVariant
6
+ };