mimir-ui-kit 1.36.8 → 1.36.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. package/dist/{Input-WnjLXNpw.js → Input-CbgqYgLo.js} +65 -63
  2. package/dist/{combobox-CDU06zJj.js → combobox-BpYucpxz.js} +1121 -1080
  3. package/dist/components/Accordion/Accordion.js +15 -15
  4. package/dist/components/CheckboxMimir/CheckboxMimir.js +4 -4
  5. package/dist/components/DatePicker/DatePicker.js +1 -1
  6. package/dist/components/Drawer/Drawer.d.ts +9 -1
  7. package/dist/components/Drawer/Drawer.js +76 -72
  8. package/dist/components/Input/Input.d.ts +4 -0
  9. package/dist/components/Input/Input.js +1 -1
  10. package/dist/components/Input/index.js +1 -1
  11. package/dist/components/InputPassword/InputPassword.js +1 -1
  12. package/dist/components/InputPhoneNumber/InputPhoneNumber.js +1 -1
  13. package/dist/components/MultiSelectSearch/MultiSelectSearch.d.ts +1 -0
  14. package/dist/components/MultiSelectSearch/MultiSelectSearch.js +108 -105
  15. package/dist/components/MultiSelectSearch/types.d.ts +2 -0
  16. package/dist/components/MultiSelectSearch/utils.js +1 -1
  17. package/dist/components/OtpInput/OtpInput.js +1 -1
  18. package/dist/components/RadioGroup/RadioGroup.js +3 -3
  19. package/dist/components/SelectSearch/SelectSearch.d.ts +1 -0
  20. package/dist/components/SelectSearch/SelectSearch.js +96 -92
  21. package/dist/components/SelectSearch/types.d.ts +2 -0
  22. package/dist/components/SelectSearch/utils.js +1 -1
  23. package/dist/components/Switcher/Switcher.js +4 -4
  24. package/dist/components/TabTrail/TabTrail.js +4 -4
  25. package/dist/components/TextArea/TextArea.js +1 -1
  26. package/dist/components/index.js +1 -1
  27. package/dist/{field-FJ34aSs4.js → field-C1kt7aNM.js} +2 -2
  28. package/dist/{focus-management-XwV-9qkO.js → focus-management-DOYCPyGg.js} +1 -1
  29. package/dist/{hidden-DbgtYPOH.js → hidden-PvGXrYUY.js} +1 -1
  30. package/dist/index.js +1 -1
  31. package/dist/{keyboard-B0lm_zyn.js → keyboard-mgWkd2Vh.js} +114 -111
  32. package/dist/{label-y3ANLTNC.js → label-D4GFpe5F.js} +2 -2
  33. package/dist/open-closed-D2VjDhAN.js +86 -0
  34. package/dist/{use-active-press-86hajhdd.js → use-active-press-CqLGIFz7.js} +1 -1
  35. package/package.json +1 -1
  36. package/dist/open-closed-CdldUPoq.js +0 -86
@@ -1,16 +1,16 @@
1
1
  import { jsxs as x, Fragment as X, jsx as v } from "react/jsx-runtime";
2
2
  import { c as D } from "../../index-DIxK0V-G.js";
3
- import S, { createContext as F, useRef as oe, Fragment as ne, useReducer as de, useMemo as R, useId as re, useEffect as le, useState as se, useContext as L, forwardRef as pe } from "react";
3
+ import S, { createContext as F, useRef as oe, Fragment as ne, useReducer as de, useMemo as R, useId as re, useEffect as le, useState as se, useContext as H, forwardRef as pe } from "react";
4
4
  import { AccordionItem as me } from "./AccordionItem/AccordionItem.js";
5
5
  import { EAccordionButtonType as w, EAccordionSize as O, EAccordionLinkIconSize as G, EAccordionButtonStyle as fe, EAccordionIconType as J, EAccordionButtonIconSize as Y } from "./constants.js";
6
6
  import { useMediaQuery as _e } from "../../hooks/useMediaQuery/useMediaQuery.js";
7
7
  import { EMediaQuery as Ee } from "../../hooks/useMediaQuery/constants.js";
8
8
  import { Icon as ke } from "../../icons/Icon.js";
9
9
  import { Link as Se } from "../AnchorLink/Link.js";
10
- import { M as Z, W as K, y as U, T as Ie, o as $, a as q, H as j, I as ae, $ as be, b as ve, D as ee, u as he, c as N } from "../../keyboard-B0lm_zyn.js";
11
- import { w as ye } from "../../use-active-press-86hajhdd.js";
10
+ import { M as Z, W as K, y as U, T as Ie, o as $, a as q, H as j, I as ae, $ as be, b as ve, D as ee, u as he, c as N } from "../../keyboard-mgWkd2Vh.js";
11
+ import { w as ye } from "../../use-active-press-CqLGIFz7.js";
12
12
  import { e as De } from "../../use-resolve-button-type-DhFdPxnv.js";
13
- import { c as $e, i as M, u as Pe, R as ge, H as Te, s as we } from "../../open-closed-CdldUPoq.js";
13
+ import { c as $e, i as M, u as Pe, x as ge, R as Te, s as we } from "../../open-closed-D2VjDhAN.js";
14
14
  import { r as Ne } from "../../bugs-diTMAGNw.js";
15
15
  import '../../assets/Accordion.css';let Ce = F(() => {
16
16
  });
@@ -33,7 +33,7 @@ let Re = { 0: (e) => ({ ...e, disclosureState: q(e.disclosureState, { 0: 1, 1: 0
33
33
  } }, W = F(null);
34
34
  W.displayName = "DisclosureContext";
35
35
  function Q(e) {
36
- let t = L(W);
36
+ let t = H(W);
37
37
  if (t === null) {
38
38
  let a = new Error(`<${e} /> is missing a parent <Disclosure /> component.`);
39
39
  throw Error.captureStackTrace && Error.captureStackTrace(a, Q), a;
@@ -43,7 +43,7 @@ function Q(e) {
43
43
  let V = F(null);
44
44
  V.displayName = "DisclosureAPIContext";
45
45
  function ce(e) {
46
- let t = L(V);
46
+ let t = H(V);
47
47
  if (t === null) {
48
48
  let a = new Error(`<${e} /> is missing a parent <Disclosure /> component.`);
49
49
  throw Error.captureStackTrace && Error.captureStackTrace(a, ce), a;
@@ -53,13 +53,13 @@ function ce(e) {
53
53
  let z = F(null);
54
54
  z.displayName = "DisclosurePanelContext";
55
55
  function Me() {
56
- return L(z);
56
+ return H(z);
57
57
  }
58
58
  function Fe(e, t) {
59
59
  return q(t.type, Re, e, t);
60
60
  }
61
- let He = ne;
62
- function Le(e, t) {
61
+ let Le = ne;
62
+ function He(e, t) {
63
63
  let { defaultOpen: a = !1, ...d } = e, n = oe(null), p = U(t, Ie((c) => {
64
64
  n.current = c;
65
65
  }, e.as === void 0 || e.as === ne)), m = de(Fe, { disclosureState: a ? 0 : 1, buttonElement: null, panelElement: null, buttonId: null, panelId: null }), [{ disclosureState: o, buttonId: r }, k] = m, l = $((c) => {
@@ -69,7 +69,7 @@ function Le(e, t) {
69
69
  let u = c ? c instanceof HTMLElement ? c : c.current instanceof HTMLElement ? c.current : E.getElementById(r) : E.getElementById(r);
70
70
  u == null || u.focus();
71
71
  }), I = R(() => ({ close: l }), [l]), f = R(() => ({ open: o === 0, close: l }), [o, l]), _ = { ref: p };
72
- return S.createElement(W.Provider, { value: m }, S.createElement(V.Provider, { value: I }, S.createElement(Be, { value: l }, S.createElement($e, { value: q(o, { 0: M.Open, 1: M.Closed }) }, j({ ourProps: _, theirProps: d, slot: f, defaultTag: He, name: "Disclosure" })))));
72
+ return S.createElement(W.Provider, { value: m }, S.createElement(V.Provider, { value: I }, S.createElement(Be, { value: l }, S.createElement($e, { value: q(o, { 0: M.Open, 1: M.Closed }) }, j({ ourProps: _, theirProps: d, slot: f, defaultTag: Le, name: "Disclosure" })))));
73
73
  }
74
74
  let Ke = "button";
75
75
  function Ue(e, t) {
@@ -106,8 +106,8 @@ function Ue(e, t) {
106
106
  }), u = $((s) => {
107
107
  var T;
108
108
  Ne(s.currentTarget) || n || (l ? (r({ type: 0 }), (T = o.buttonElement) == null || T.focus()) : r({ type: 0 }));
109
- }), { isFocusVisible: h, focusProps: y } = be({ autoFocus: p }), { isHovered: b, hoverProps: P } = ve({ isDisabled: n }), { pressed: C, pressProps: B } = ye({ disabled: n }), H = R(() => ({ open: o.disclosureState === 0, hover: b, active: C, disabled: n, focus: h, autofocus: p }), [o, b, C, h, n, p]), A = De(e, o.buttonElement), g = l ? ee({ ref: f, type: A, disabled: n || void 0, autoFocus: p, onKeyDown: c, onClick: u }, y, P, B) : ee({ ref: f, id: d, type: A, "aria-expanded": o.disclosureState === 0, "aria-controls": o.panelElement ? o.panelId : void 0, disabled: n || void 0, autoFocus: p, onKeyDown: c, onKeyUp: E, onClick: u }, y, P, B);
110
- return j({ mergeRefs: _, ourProps: g, theirProps: m, slot: H, defaultTag: Ke, name: "Disclosure.Button" });
109
+ }), { isFocusVisible: h, focusProps: y } = be({ autoFocus: p }), { isHovered: b, hoverProps: P } = ve({ isDisabled: n }), { pressed: C, pressProps: B } = ye({ disabled: n }), L = R(() => ({ open: o.disclosureState === 0, hover: b, active: C, disabled: n, focus: h, autofocus: p }), [o, b, C, h, n, p]), A = De(e, o.buttonElement), g = l ? ee({ ref: f, type: A, disabled: n || void 0, autoFocus: p, onKeyDown: c, onClick: u }, y, P, B) : ee({ ref: f, id: d, type: A, "aria-expanded": o.disclosureState === 0, "aria-controls": o.panelElement ? o.panelId : void 0, disabled: n || void 0, autoFocus: p, onKeyDown: c, onKeyUp: E, onClick: u }, y, P, B);
110
+ return j({ mergeRefs: _, ourProps: g, theirProps: m, slot: L, defaultTag: Ke, name: "Disclosure.Button" });
111
111
  }
112
112
  let qe = "div", je = Z.RenderStrategy | Z.Static;
113
113
  function We(e, t) {
@@ -120,7 +120,7 @@ function We(e, t) {
120
120
  let _ = Pe(), [c, E] = ge(n, l, _ !== null ? (_ & M.Open) === M.Open : m.disclosureState === 0), u = R(() => ({ open: m.disclosureState === 0, close: r }), [m.disclosureState, r]), h = { ref: f, id: d, ...Te(E) };
121
121
  return S.createElement(we, null, S.createElement(z.Provider, { value: m.panelId }, j({ mergeRefs: k, ourProps: h, theirProps: p, slot: u, defaultTag: qe, features: je, visible: c, name: "Disclosure.Panel" })));
122
122
  }
123
- let Qe = K(Le), ie = K(Ue), ue = K(We), Ve = Object.assign(Qe, { Button: ie, Panel: ue });
123
+ let Qe = K(He), ie = K(Ue), ue = K(We), Ve = Object.assign(Qe, { Button: ie, Panel: ue });
124
124
  const ze = "_accordion_1k9to_2", Xe = "_header_1k9to_13", Ge = "_disabled_1k9to_25", Je = "_title_1k9to_29", Ye = "_icon_1k9to_36", Ze = "_circle_1k9to_46", et = "_square_1k9to_53", tt = "_panel_1k9to_73", ot = "_open_1k9to_80", nt = "_m_1k9to_106", rt = "_s_1k9to_53", i = {
125
125
  accordion: ze,
126
126
  "is-link": "_is-link_1k9to_9",
@@ -160,7 +160,7 @@ const ze = "_accordion_1k9to_2", Xe = "_header_1k9to_13", Ge = "_disabled_1k9to_
160
160
  [i["is-link"]]: b
161
161
  }, C = () => {
162
162
  t || h((g) => !g);
163
- }, B = n === O.S ? G.S : G.M, H = {
163
+ }, B = n === O.S ? G.S : G.M, L = {
164
164
  variant: "anchor",
165
165
  size: y ? "s" : "l",
166
166
  rightIcon: {
@@ -234,7 +234,7 @@ const ze = "_accordion_1k9to_2", Xe = "_header_1k9to_13", Ge = "_disabled_1k9to_
234
234
  [i.header]: !b,
235
235
  [i.disabled]: t
236
236
  }),
237
- ...b ? H : {},
237
+ ...b ? L : {},
238
238
  children: A(u)
239
239
  }
240
240
  ),
@@ -1,10 +1,10 @@
1
1
  import { jsxs as O, jsx as x } from "react/jsx-runtime";
2
- import { W as V, p as W, o as m, $ as X, b as q, D as z, H as J, c as y } from "../../keyboard-B0lm_zyn.js";
2
+ import { W as V, p as W, o as m, $ as X, b as q, D as z, H as J, c as y } from "../../keyboard-mgWkd2Vh.js";
3
3
  import $, { useId as Q, useState as F, useMemo as Y, useCallback as Z, forwardRef as ee, useEffect as ae } from "react";
4
- import { w as re } from "../../use-active-press-86hajhdd.js";
5
- import { u as oe, a as te, b as ce, T as se, I as ne, G as ie, j as de, p as le, K as be } from "../../label-y3ANLTNC.js";
4
+ import { w as re } from "../../use-active-press-CqLGIFz7.js";
5
+ import { u as oe, a as te, b as ce, T as se, I as ne, G as ie, j as de, p as le, K as be } from "../../label-D4GFpe5F.js";
6
6
  import { r as ue } from "../../bugs-diTMAGNw.js";
7
- import { H as fe } from "../../field-FJ34aSs4.js";
7
+ import { H as fe } from "../../field-C1kt7aNM.js";
8
8
  import { c as me } from "../../index-DIxK0V-G.js";
9
9
  import { Icon as pe } from "../../icons/Icon.js";
10
10
  import '../../assets/CheckboxMimir.css';let he = "span";
@@ -9,7 +9,7 @@ import { formatDatePart as Y } from "./utils.js";
9
9
  import { YearPickerModal as et } from "./YearPickerModal.js";
10
10
  import { useClickOutside as it } from "../../hooks/useClickOutside/useClickOutside.js";
11
11
  import { formating as d } from "../../utils/index.js";
12
- import { I as at } from "../../Input-WnjLXNpw.js";
12
+ import { I as at } from "../../Input-CbgqYgLo.js";
13
13
  import { EInputStatus as rt } from "../Input/constants.js";
14
14
  const mt = {
15
15
  days: tt,
@@ -57,9 +57,17 @@ type TProps = {
57
57
  * Дополнительный класс для footer.
58
58
  */
59
59
  classNameFooter?: string;
60
+ /**
61
+ * Флаг, определяющий, закрывать ли Drawer при клике вне его области
62
+ */
63
+ closeOnClickOutside?: boolean;
64
+ /**
65
+ * Флаг, определяющий, показывать ли кнопку закрытия в заголовке
66
+ */
67
+ showCloseButton?: boolean;
60
68
  };
61
69
  /**
62
70
  * Компонент шторки, который может выезжать слева, справа или внизу.
63
71
  */
64
- export declare const Drawer: ({ isOpen, onClose, title, className, unmount, isLoading, stickyHeader, fullBottomHeight, position, paddingRight, footer, children, classNameInner, classNameFooter }: PropsWithChildren<TProps>) => import("react/jsx-runtime").JSX.Element | null;
72
+ export declare const Drawer: ({ isOpen, onClose, title, className, unmount, isLoading, stickyHeader, fullBottomHeight, position, paddingRight, footer, children, classNameInner, classNameFooter, closeOnClickOutside, showCloseButton }: PropsWithChildren<TProps>) => import("react/jsx-runtime").JSX.Element | null;
65
73
  export {};
@@ -1,93 +1,97 @@
1
- import { jsxs as m, jsx as t, Fragment as A } from "react/jsx-runtime";
1
+ import { jsxs as m, jsx as t, Fragment as P } from "react/jsx-runtime";
2
2
  import { c as s } from "../../index-DIxK0V-G.js";
3
- import { useState as u, useRef as X, useCallback as g, useEffect as j } from "react";
4
- import { EDrawerPosition as v } from "./constants.js";
5
- import { useMediaQuery as P } from "../../hooks/useMediaQuery/useMediaQuery.js";
6
- import { EMediaQuery as Q } from "../../hooks/useMediaQuery/constants.js";
7
- import { useLockBodyScroll as F } from "../../hooks/useLockBodyScroll/useLockBodyScroll.js";
8
- import { useResizeObserver as G } from "../../hooks/useResizeObserver/useResizeObserver.js";
3
+ import { useState as u, useRef as Q, useCallback as f, useEffect as F } from "react";
4
+ import { EDrawerPosition as k } from "./constants.js";
5
+ import { useMediaQuery as G } from "../../hooks/useMediaQuery/useMediaQuery.js";
6
+ import { EMediaQuery as H } from "../../hooks/useMediaQuery/constants.js";
7
+ import { useLockBodyScroll as K } from "../../hooks/useLockBodyScroll/useLockBodyScroll.js";
8
+ import { useResizeObserver as V } from "../../hooks/useResizeObserver/useResizeObserver.js";
9
9
  import { Button as w } from "../Button/Button.js";
10
- import { EButtonVariantDefault as H, EButtonSize as n } from "../Button/constants.js";
11
- import { Loader as K } from "../Loader/Loader.js";
12
- import { Portal as O } from "../Portal/Portal.js";
13
- import '../../assets/Drawer.css';const V = "_drawer_1xs4d_3", W = "_content_1xs4d_27", Y = "_header_1xs4d_45", q = "_title_1xs4d_59", J = "_space_1xs4d_73", U = "_inner_1xs4d_84", Z = "_button_1xs4d_87", $ = "_footer_1xs4d_92", ee = "_left_1xs4d_105", te = "_right_1xs4d_109", oe = "_full_1xs4d_113", se = "_bottom_1xs4d_123", re = "_opened_1xs4d_140", ne = "_overlay_1xs4d_196", le = "_unmount_1xs4d_212", e = {
14
- drawer: V,
15
- content: W,
10
+ import { EButtonVariantDefault as W, EButtonSize as n } from "../Button/constants.js";
11
+ import { Loader as Y } from "../Loader/Loader.js";
12
+ import { Portal as q } from "../Portal/Portal.js";
13
+ import '../../assets/Drawer.css';const J = "_drawer_1xs4d_3", O = "_content_1xs4d_27", U = "_header_1xs4d_45", Z = "_title_1xs4d_59", $ = "_space_1xs4d_73", ee = "_inner_1xs4d_84", te = "_button_1xs4d_87", oe = "_footer_1xs4d_92", se = "_left_1xs4d_105", re = "_right_1xs4d_109", ne = "_full_1xs4d_113", le = "_bottom_1xs4d_123", ae = "_opened_1xs4d_140", ie = "_overlay_1xs4d_196", ce = "_unmount_1xs4d_212", e = {
14
+ drawer: J,
15
+ content: O,
16
16
  "is-loading": "_is-loading_1xs4d_41",
17
- header: Y,
17
+ header: U,
18
18
  "sticky-header": "_sticky-header_1xs4d_53",
19
- title: q,
20
- space: J,
21
- inner: U,
22
- button: Z,
23
- footer: $,
19
+ title: Z,
20
+ space: $,
21
+ inner: ee,
22
+ button: te,
23
+ footer: oe,
24
24
  "footer-button": "_footer-button_1xs4d_101",
25
- left: ee,
26
- right: te,
27
- full: oe,
28
- bottom: se,
25
+ left: se,
26
+ right: re,
27
+ full: ne,
28
+ bottom: le,
29
29
  "full-bottom-height": "_full-bottom-height_1xs4d_134",
30
- opened: re,
30
+ opened: ae,
31
31
  "is-closing": "_is-closing_1xs4d_159",
32
- overlay: ne,
33
- unmount: le
34
- }, ie = 300, ge = ({
32
+ overlay: ie,
33
+ unmount: ce
34
+ }, de = 300, ke = ({
35
35
  isOpen: r,
36
36
  onClose: l,
37
- title: N,
38
- className: k,
39
- unmount: f = !0,
40
- isLoading: i = !1,
37
+ title: E,
38
+ className: M,
39
+ unmount: h = !0,
40
+ isLoading: a = !1,
41
41
  stickyHeader: B,
42
- fullBottomHeight: E = !1,
43
- position: a = v.RIGHT,
44
- paddingRight: M = 8,
42
+ fullBottomHeight: S = !1,
43
+ position: i = k.RIGHT,
44
+ paddingRight: I = 8,
45
45
  footer: c,
46
- children: S,
47
- classNameInner: I,
48
- classNameFooter: C
46
+ children: L,
47
+ classNameInner: T,
48
+ classNameFooter: C,
49
+ closeOnClickOutside: x = !0,
50
+ showCloseButton: y = !0
49
51
  }) => {
50
- const [L, h] = u(!1), [T, x] = u(!1), [D, p] = u(!1), y = X(), d = P(Q.XS1), { ref: z } = G({
51
- enabled: a === v.BOTTOM
52
+ const [D, p] = u(!1), [z, b] = u(!1), [R, g] = u(!1), v = Q(), d = G(H.XS1), { ref: A } = V({
53
+ enabled: i === k.BOTTOM
52
54
  });
53
- F({
54
- on: D,
55
- paddingRight: M
55
+ K({
56
+ on: R,
57
+ paddingRight: I
56
58
  });
57
- const o = g(() => {
58
- l && (h(!0), p(!1), y.current = setTimeout(() => {
59
- l(), h(!1);
60
- }, ie));
61
- }, [l]), _ = g(
62
- (R) => {
63
- R.key === "Escape" && o();
59
+ const o = f(() => {
60
+ l && (p(!0), g(!1), v.current = setTimeout(() => {
61
+ l(), p(!1);
62
+ }, de));
63
+ }, [l]), X = f(() => {
64
+ x && o();
65
+ }, [x, o]), _ = f(
66
+ (j) => {
67
+ j.key === "Escape" && o();
64
68
  },
65
69
  [o]
66
70
  );
67
- j(() => (r && (p(!0), x(!0), window.addEventListener("keydown", _)), () => {
68
- x(!1), clearTimeout(y.current), window.removeEventListener("keydown", _);
71
+ F(() => (r && (g(!0), b(!0), window.addEventListener("keydown", _)), () => {
72
+ b(!1), clearTimeout(v.current), window.removeEventListener("keydown", _);
69
73
  }), [r, _]);
70
- const b = {
71
- [e.opened]: T,
72
- [e["is-closing"]]: L,
73
- [e["full-bottom-height"]]: E,
74
- [e["is-loading"]]: i
74
+ const N = {
75
+ [e.opened]: z,
76
+ [e["is-closing"]]: D,
77
+ [e["full-bottom-height"]]: S,
78
+ [e["is-loading"]]: a
75
79
  };
76
- return !r && f ? null : /* @__PURE__ */ m(O, { children: [
80
+ return !r && h ? null : /* @__PURE__ */ m(q, { children: [
77
81
  /* @__PURE__ */ t(
78
82
  "div",
79
83
  {
80
84
  "aria-hidden": !r,
81
85
  role: "dialog",
82
- className: s(e.drawer, e[a], b, k),
86
+ className: s(e.drawer, e[i], N, M),
83
87
  children: /* @__PURE__ */ t(
84
88
  "section",
85
89
  {
86
- ref: z,
87
- className: s(e.content, e[a], {
88
- [e["is-loading"]]: !!i
90
+ ref: A,
91
+ className: s(e.content, e[i], {
92
+ [e["is-loading"]]: !!a
89
93
  }),
90
- children: i ? /* @__PURE__ */ t(K, {}) : /* @__PURE__ */ m(A, { children: [
94
+ children: a ? /* @__PURE__ */ t(Y, {}) : /* @__PURE__ */ m(P, { children: [
91
95
  /* @__PURE__ */ m(
92
96
  "header",
93
97
  {
@@ -95,11 +99,11 @@ import '../../assets/Drawer.css';const V = "_drawer_1xs4d_3", W = "_content_1xs4
95
99
  [e["sticky-header"]]: B
96
100
  }),
97
101
  children: [
98
- /* @__PURE__ */ t("h2", { className: e.title, children: N }),
99
- /* @__PURE__ */ t("div", { className: e.space, children: /* @__PURE__ */ t(
102
+ /* @__PURE__ */ t("h2", { className: e.title, children: E }),
103
+ /* @__PURE__ */ t("div", { className: e.space, children: y && /* @__PURE__ */ t(
100
104
  w,
101
105
  {
102
- variant: H.SecondaryWhite,
106
+ variant: W.SecondaryWhite,
103
107
  isIconButton: !0,
104
108
  size: d ? n.S : n.M,
105
109
  iconName: "Close16px",
@@ -110,8 +114,8 @@ import '../../assets/Drawer.css';const V = "_drawer_1xs4d_3", W = "_content_1xs4
110
114
  ]
111
115
  }
112
116
  ),
113
- /* @__PURE__ */ t("div", { className: s(e.inner, I), children: S }),
114
- /* @__PURE__ */ t("footer", { className: s(e.footer, C), children: typeof c == "function" ? c({ handleClose: o }) : c || /* @__PURE__ */ t(
117
+ /* @__PURE__ */ t("div", { className: s(e.inner, T), children: L }),
118
+ /* @__PURE__ */ t("footer", { className: s(e.footer, C), children: typeof c == "function" ? c({ handleClose: o }) : c || y && /* @__PURE__ */ t(
115
119
  w,
116
120
  {
117
121
  size: d ? n.M : n.XXL,
@@ -132,17 +136,17 @@ import '../../assets/Drawer.css';const V = "_drawer_1xs4d_3", W = "_content_1xs4
132
136
  className: s(
133
137
  e.overlay,
134
138
  {
135
- [e.unmount]: !f
139
+ [e.unmount]: !h
136
140
  },
137
- b
141
+ N
138
142
  ),
139
143
  "data-testid": "drawer-overlay",
140
- onClick: o
144
+ onClick: X
141
145
  }
142
146
  )
143
147
  ] });
144
148
  };
145
149
  export {
146
- ie as ANIMATION_DELAY,
147
- ge as Drawer
150
+ de as ANIMATION_DELAY,
151
+ ke as Drawer
148
152
  };
@@ -62,6 +62,10 @@ export type TAdditionalProps = {
62
62
  * Максимальная длина ввода
63
63
  */
64
64
  maxLength?: number;
65
+ /**
66
+ * Управляет поведением автозаполнения браузера
67
+ */
68
+ autocomplete?: 'on' | 'off';
65
69
  };
66
70
  export type TProps = TInputProps & TAdditionalProps;
67
71
  export declare const Input: import('react').MemoExoticComponent<import('react').ForwardRefExoticComponent<TInputProps & TAdditionalProps & import('react').RefAttributes<HTMLInputElement>>>;
@@ -2,7 +2,7 @@ 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-WnjLXNpw.js";
5
+ import { I as f } from "../../Input-CbgqYgLo.js";
6
6
  import "../../hooks/useMergeRefs/useMergeRefs.js";
7
7
  import "../../icons/Icon.js";
8
8
  import "../Button/Button.js";
@@ -1,4 +1,4 @@
1
- import { I as n } from "../../Input-WnjLXNpw.js";
1
+ import { I as n } from "../../Input-CbgqYgLo.js";
2
2
  import { EInputSize as u, EInputStatus as I, EInputVariant as a } from "./constants.js";
3
3
  export {
4
4
  u as EInputSize,
@@ -3,7 +3,7 @@ import { c } from "../../index-DIxK0V-G.js";
3
3
  import { memo as w, forwardRef as u, useState as m } from "react";
4
4
  import { Icon as d } from "../../icons/Icon.js";
5
5
  import { Button as _ } from "../Button/Button.js";
6
- import { I as l } from "../../Input-WnjLXNpw.js";
6
+ import { I as l } from "../../Input-CbgqYgLo.js";
7
7
  import '../../assets/InputPassword.css';const b = "_input_7b9x2_2", x = "_wrapper_7b9x2_6", h = "_button_7b9x2_17", f = "_icon_7b9x2_33", N = "_show_7b9x2_38", t = {
8
8
  input: b,
9
9
  wrapper: x,
@@ -1,7 +1,7 @@
1
1
  import { jsx as d } from "react/jsx-runtime";
2
2
  import { memo as I, forwardRef as i, useState as c, useCallback as f, useImperativeHandle as P } from "react";
3
3
  import { getMaskedInputPhoneValue as m, getUnmaskedInputValue as o } from "./utils.js";
4
- import { I as b } from "../../Input-WnjLXNpw.js";
4
+ import { I as b } from "../../Input-CbgqYgLo.js";
5
5
  const h = I(
6
6
  i(
7
7
  ({ value: s = "", onChange: e, ...p }, a) => {
@@ -19,4 +19,5 @@ export declare const MultiSelectSearch: import('react').ForwardRefExoticComponen
19
19
  withChip?: boolean;
20
20
  chipVariant?: import('../Chip').EChipVariant | `${import('../Chip').EChipVariant}`;
21
21
  disableInput?: boolean;
22
+ autocomplete?: "on" | "off";
22
23
  } & import('react').RefAttributes<HTMLElement>>;