mimir-ui-kit 1.43.22 → 1.43.26

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.
@@ -1 +1 @@
1
- ._drawer_1cohb_2{--drawer-width: 808px;--drawer-z-index: 10000;position:fixed;z-index:10000;z-index:var(--drawer-z-index);display:flex;flex-direction:column;width:808px;width:var(--drawer-width);height:100%;overflow:auto;background-color:var(--black-5);transition:all .3s ease;pointer-events:none}._drawer_1cohb_2::-webkit-scrollbar{width:3px}._drawer_1cohb_2::-webkit-scrollbar-thumb{background-color:var(--black-80);border-radius:2px}._drawer_1cohb_2::-webkit-scrollbar-track{background-color:var(--white)}._drawer_1cohb_2 ._content_1cohb_26{position:relative;display:flex;flex:1;flex-direction:column;padding:var(--mimir-space-m) var(--mimir-space-xs) var(--mimir-space-3xs) var(--mimir-space-4xl);overflow:hidden;transition:all .3s ease}@media (max-width: 600px){._drawer_1cohb_2 ._content_1cohb_26{--drawer-width: 100%;padding:var(--mimir-space-m)}}._drawer_1cohb_2 ._header_1cohb_41{display:flex;gap:var(--mimir-space-xs);min-height:68px}._drawer_1cohb_2 ._header_1cohb_41:not(:last-child){margin-bottom:var(--mimir-space-2xl)}._drawer_1cohb_2 ._header_1cohb_41._sticky-header_1cohb_49{position:-webkit-sticky;position:sticky;top:0;left:0;background-color:var(--black-5)}._drawer_1cohb_2 ._header_1cohb_41 ._title_1cohb_55{flex:1;align-self:flex-end;font-weight:var(--mimir-font-weight-text-medium);font-size:var(--mimir-size-text-xl3);line-height:var(--mimir-space-2xxl);letter-spacing:.7px}@media (max-width: 600px){._drawer_1cohb_2 ._header_1cohb_41 ._title_1cohb_55{font-size:var(--mimir-size-text-xl2);line-height:var(--mimir-line-height-text-xs)}}._drawer_1cohb_2 ._header_1cohb_41 ._space_1cohb_69{flex:0 0 var(--button-height-m)}@media (max-width: 600px){._drawer_1cohb_2 ._header_1cohb_41{min-height:55px}._drawer_1cohb_2 ._header_1cohb_41:not(:last-child){margin-bottom:var(--mimir-space-m)}}._drawer_1cohb_2 ._inner_1cohb_80{flex:1;padding-right:var(--mimir-space-xxl);overflow-y:auto}._drawer_1cohb_2 ._inner_1cohb_80._is-loading_1cohb_85{display:flex;flex-direction:column;align-items:center;justify-content:center}@media (max-width: 600px){._drawer_1cohb_2 ._inner_1cohb_80{padding-right:0}}._drawer_1cohb_2 ._button_1cohb_96{position:absolute;top:var(--mimir-space-m);right:var(--mimir-space-m)}._drawer_1cohb_2 ._footer_1cohb_101{display:block;padding:var(--mimir-space-2xl) var(--mimir-space-xxl) var(--mimir-space-4xl) var(--mimir-space-xxl)}@media (max-width: 600px){._drawer_1cohb_2 ._footer_1cohb_101{padding:var(--mimir-space-m)}}._drawer_1cohb_2 ._footer_1cohb_101._has-scroll_1cohb_110{box-shadow:var(--mimir-modal-window-bottom-panel-shadow)}._drawer_1cohb_2 ._footer-button_1cohb_113{display:block;margin-left:auto}._drawer_1cohb_2._left_1cohb_117{top:0;left:-100%}._drawer_1cohb_2._right_1cohb_121{top:0;right:-100%}._drawer_1cohb_2._full_1cohb_125{top:0;right:0;bottom:0;left:0;width:100%;height:100%;max-height:100vh;border-radius:0;transform:scale(.95);opacity:0;transition:transform .3s ease-in-out,opacity .3s ease-in-out}._drawer_1cohb_2._bottom_1cohb_135{--drawer-width: calc(100% - var(--mimir-space-m));right:50%;bottom:-100%;left:50%;height:-webkit-max-content;height:-moz-max-content;height:max-content;max-height:calc(100% - var(--mimir-space-xs));border-top-left-radius:var(--mimir-control-radius);border-top-right-radius:var(--mimir-control-radius);transform:translate(-50%)}._drawer_1cohb_2._bottom_1cohb_135._full-bottom-height_1cohb_146{height:calc(100% - var(--mimir-space-xs))}._drawer_1cohb_2._bottom_1cohb_135._is-loading_1cohb_85{height:50vh}._drawer_1cohb_2._opened_1cohb_152{transition:all .3s ease;pointer-events:auto}._drawer_1cohb_2._opened_1cohb_152._left_1cohb_117{left:0%;transition:left .3s ease}._drawer_1cohb_2._opened_1cohb_152._right_1cohb_121{right:0%;transition:right .3s ease}._drawer_1cohb_2._opened_1cohb_152._bottom_1cohb_135{bottom:0%}._drawer_1cohb_2._opened_1cohb_152._full_1cohb_125{transform:scale(1);opacity:1}._drawer_1cohb_2._is-closing_1cohb_171._left_1cohb_117{left:-100%}._drawer_1cohb_2._is-closing_1cohb_171._right_1cohb_121{right:-100%}._drawer_1cohb_2._is-closing_1cohb_171._bottom_1cohb_135{bottom:-100%}._drawer_1cohb_2._is-closing_1cohb_171._full_1cohb_125{transform:scale(.95);opacity:0}@media (max-width: 1440px){._drawer_1cohb_2{--drawer-width: 608px}}@media (max-width: 1280px){._drawer_1cohb_2{--drawer-width: 648px}}@media (max-width: 768px){._drawer_1cohb_2{--drawer-width: 584px}}@media (max-width: 600px){._drawer_1cohb_2{--drawer-width: 100%}._drawer_1cohb_2._bottom_1cohb_135{--drawer-width: calc(100% - var(--mimir-space-m))}}._overlay_1cohb_208{--overlay-z-index: 9990;position:fixed;top:0;left:0;z-index:9990;z-index:var(--overlay-z-index);width:100%;height:100%;background-color:#0009;opacity:0;transition:all .3s ease}._overlay_1cohb_208._opened_1cohb_152{opacity:1;transition:all .3s ease}._overlay_1cohb_208._opened_1cohb_152._unmount_1cohb_224{z-index:var(--overlay-z-index);-webkit-appearance:none;-moz-appearance:none;appearance:none}._overlay_1cohb_208._is-closing_1cohb_171{opacity:0;transition:all .3s ease}._overlay_1cohb_208._unmount_1cohb_224{z-index:-1;-webkit-appearance:none;-moz-appearance:none;appearance:none}
1
+ ._drawerContainer_yzb8n_2{position:fixed;z-index:1000000}._drawer_yzb8n_2{--drawer-width: 808px;--drawer-z-index: 10000;position:fixed;z-index:10000;z-index:var(--drawer-z-index);display:flex;flex-direction:column;width:808px;width:var(--drawer-width);height:100%;overflow:auto;background-color:var(--black-5);transition:all .3s ease;pointer-events:none}._drawer_yzb8n_2::-webkit-scrollbar{width:3px}._drawer_yzb8n_2::-webkit-scrollbar-thumb{background-color:var(--black-80);border-radius:2px}._drawer_yzb8n_2::-webkit-scrollbar-track{background-color:var(--white)}._drawer_yzb8n_2 ._content_yzb8n_31{position:relative;display:flex;flex:1;flex-direction:column;padding:var(--mimir-space-m) var(--mimir-space-xs) var(--mimir-space-3xs) var(--mimir-space-4xl);overflow:hidden;transition:all .3s ease}@media (max-width: 600px){._drawer_yzb8n_2 ._content_yzb8n_31{--drawer-width: 100%;padding:var(--mimir-space-m)}}._drawer_yzb8n_2 ._header_yzb8n_46{display:flex;gap:var(--mimir-space-xs);min-height:68px}._drawer_yzb8n_2 ._header_yzb8n_46:not(:last-child){margin-bottom:var(--mimir-space-2xl)}._drawer_yzb8n_2 ._header_yzb8n_46._sticky-header_yzb8n_54{position:-webkit-sticky;position:sticky;top:0;left:0;background-color:var(--black-5)}._drawer_yzb8n_2 ._header_yzb8n_46 ._title_yzb8n_60{flex:1;align-self:flex-end;font-weight:var(--mimir-font-weight-text-medium);font-size:var(--mimir-size-text-xl3);line-height:var(--mimir-space-2xxl);letter-spacing:.7px}@media (max-width: 600px){._drawer_yzb8n_2 ._header_yzb8n_46 ._title_yzb8n_60{font-size:var(--mimir-size-text-xl2);line-height:var(--mimir-line-height-text-xs)}}._drawer_yzb8n_2 ._header_yzb8n_46 ._space_yzb8n_74{flex:0 0 var(--button-height-m)}@media (max-width: 600px){._drawer_yzb8n_2 ._header_yzb8n_46{min-height:55px}._drawer_yzb8n_2 ._header_yzb8n_46:not(:last-child){margin-bottom:var(--mimir-space-m)}}._drawer_yzb8n_2 ._inner_yzb8n_85{flex:1;padding-right:var(--mimir-space-xxl);overflow-y:auto}._drawer_yzb8n_2 ._inner_yzb8n_85._is-loading_yzb8n_90{display:flex;flex-direction:column;align-items:center;justify-content:center}@media (max-width: 600px){._drawer_yzb8n_2 ._inner_yzb8n_85{padding-right:0}}._drawer_yzb8n_2 ._button_yzb8n_101{position:absolute;top:var(--mimir-space-m);right:var(--mimir-space-m)}._drawer_yzb8n_2 ._footer_yzb8n_106{display:block;padding:var(--mimir-space-2xl) var(--mimir-space-xxl) var(--mimir-space-4xl) var(--mimir-space-xxl)}@media (max-width: 600px){._drawer_yzb8n_2 ._footer_yzb8n_106{padding:var(--mimir-space-m)}}._drawer_yzb8n_2 ._footer_yzb8n_106._has-scroll_yzb8n_115{box-shadow:var(--mimir-modal-window-bottom-panel-shadow)}._drawer_yzb8n_2 ._footer-button_yzb8n_118{display:block;margin-left:auto}._drawer_yzb8n_2._left_yzb8n_122{top:0;left:-100%}._drawer_yzb8n_2._right_yzb8n_126{top:0;right:-100%}._drawer_yzb8n_2._full_yzb8n_130{top:0;right:0;bottom:0;left:0;width:100%;height:100%;max-height:100vh;border-radius:0;transform:scale(.95);opacity:0;transition:transform .3s ease-in-out,opacity .3s ease-in-out}._drawer_yzb8n_2._bottom_yzb8n_140{--drawer-width: calc(100% - var(--mimir-space-m));right:50%;bottom:-100%;left:50%;height:-webkit-max-content;height:-moz-max-content;height:max-content;max-height:calc(100% - var(--mimir-space-xs));border-top-left-radius:var(--mimir-control-radius);border-top-right-radius:var(--mimir-control-radius);transform:translate(-50%)}._drawer_yzb8n_2._bottom_yzb8n_140._full-bottom-height_yzb8n_151{height:calc(100% - var(--mimir-space-xs))}._drawer_yzb8n_2._bottom_yzb8n_140._is-loading_yzb8n_90{height:50vh}._drawer_yzb8n_2._opened_yzb8n_157{transition:all .3s ease;pointer-events:auto}._drawer_yzb8n_2._opened_yzb8n_157._left_yzb8n_122{left:0%;transition:left .3s ease}._drawer_yzb8n_2._opened_yzb8n_157._right_yzb8n_126{right:0%;transition:right .3s ease}._drawer_yzb8n_2._opened_yzb8n_157._bottom_yzb8n_140{bottom:0%}._drawer_yzb8n_2._opened_yzb8n_157._full_yzb8n_130{transform:scale(1);opacity:1}._drawer_yzb8n_2._is-closing_yzb8n_176._left_yzb8n_122{left:-100%}._drawer_yzb8n_2._is-closing_yzb8n_176._right_yzb8n_126{right:-100%}._drawer_yzb8n_2._is-closing_yzb8n_176._bottom_yzb8n_140{bottom:-100%}._drawer_yzb8n_2._is-closing_yzb8n_176._full_yzb8n_130{transform:scale(.95);opacity:0}@media (max-width: 1440px){._drawer_yzb8n_2{--drawer-width: 608px}}@media (max-width: 1280px){._drawer_yzb8n_2{--drawer-width: 648px}}@media (max-width: 768px){._drawer_yzb8n_2{--drawer-width: 584px}}@media (max-width: 600px){._drawer_yzb8n_2{--drawer-width: 100%}._drawer_yzb8n_2._bottom_yzb8n_140{--drawer-width: calc(100% - var(--mimir-space-m))}}._overlay_yzb8n_213{--overlay-z-index: 9990;position:fixed;top:0;left:0;z-index:9990;z-index:var(--overlay-z-index);width:100%;height:100%;background-color:#0009;opacity:0;transition:all .3s ease}._overlay_yzb8n_213._opened_yzb8n_157{opacity:1;transition:all .3s ease}._overlay_yzb8n_213._opened_yzb8n_157._unmount_yzb8n_229{z-index:var(--overlay-z-index);-webkit-appearance:none;-moz-appearance:none;appearance:none}._overlay_yzb8n_213._is-closing_yzb8n_176{opacity:0;transition:all .3s ease}._overlay_yzb8n_213._unmount_yzb8n_229{z-index:-1;-webkit-appearance:none;-moz-appearance:none;appearance:none}
@@ -70,6 +70,10 @@ type TProps = {
70
70
  * Дополнительный класс для footer.
71
71
  */
72
72
  classNameFooter?: string;
73
+ /**
74
+ * Дополнительный класс для drawerContainer.
75
+ */
76
+ classNameDrawerContainer?: string;
73
77
  /**
74
78
  * Флаг, определяющий, закрывать ли Drawer при клике вне его области
75
79
  */
@@ -1,41 +1,42 @@
1
- import { jsxs as l, Fragment as te, jsx as o } from "react/jsx-runtime";
2
- import { c as n } from "../../index-DIxK0V-G.js";
3
- import { forwardRef as ne, useState as p, useRef as L, useEffect as M, useCallback as g } from "react";
1
+ import { jsxs as l, jsx as o } from "react/jsx-runtime";
2
+ import { c as t } from "../../index-DIxK0V-G.js";
3
+ import { forwardRef as ne, useState as b, useRef as L, useEffect as M, useCallback as p } from "react";
4
4
  import { EDrawerPosition as R } from "./constants.js";
5
5
  import { useContainer as re } from "./hooks.js";
6
6
  import { ScrollWrapper as se } from "./ScrollWrapper/index.js";
7
7
  import { useMediaQuery as ie } from "../../hooks/useMediaQuery/useMediaQuery.js";
8
- import { EMediaQuery as ce } from "../../hooks/useMediaQuery/constants.js";
8
+ import { EMediaQuery as ae } from "../../hooks/useMediaQuery/constants.js";
9
9
  import { useLockBodyScroll as le } from "../../hooks/useLockBodyScroll/useLockBodyScroll.js";
10
- import { useResizeObserver as ae } from "../../hooks/useResizeObserver/useResizeObserver.js";
10
+ import { useResizeObserver as ce } from "../../hooks/useResizeObserver/useResizeObserver.js";
11
11
  import { Button as H } from "../Button/Button.js";
12
- import { EButtonVariantDefault as de, EButtonSize as a } from "../Button/constants.js";
12
+ import { EButtonVariantDefault as de, EButtonSize as c } from "../Button/constants.js";
13
13
  import { Loader as ue } from "../Loader/Loader.js";
14
14
  import { Portal as me } from "../Portal/Portal.js";
15
- import { EScrollBarVariant as fe, EScrollBarSize as he } from "../ScrollBar/constants.js";
16
- import '../../assets/Drawer.css';const _e = "_drawer_1cohb_2", be = "_content_1cohb_26", pe = "_header_1cohb_41", ge = "_title_1cohb_55", ye = "_space_1cohb_69", ve = "_inner_1cohb_80", Ce = "_button_1cohb_96", we = "_footer_1cohb_101", Ne = "_left_1cohb_117", ke = "_right_1cohb_121", Se = "_full_1cohb_125", Be = "_bottom_1cohb_135", Ee = "_opened_1cohb_152", ze = "_overlay_1cohb_208", Ie = "_unmount_1cohb_224", e = {
17
- drawer: _e,
15
+ import { EScrollBarVariant as fe, EScrollBarSize as _e } from "../ScrollBar/constants.js";
16
+ import '../../assets/Drawer.css';const ye = "_drawerContainer_yzb8n_2", he = "_drawer_yzb8n_2", be = "_content_yzb8n_31", pe = "_header_yzb8n_46", ze = "_title_yzb8n_60", Ce = "_space_yzb8n_74", ge = "_inner_yzb8n_85", we = "_button_yzb8n_101", ve = "_footer_yzb8n_106", Ne = "_left_yzb8n_122", ke = "_right_yzb8n_126", Se = "_full_yzb8n_130", Be = "_bottom_yzb8n_140", Ee = "_opened_yzb8n_157", Ie = "_overlay_yzb8n_213", Oe = "_unmount_yzb8n_229", e = {
17
+ drawerContainer: ye,
18
+ drawer: he,
18
19
  content: be,
19
20
  header: pe,
20
- "sticky-header": "_sticky-header_1cohb_49",
21
- title: ge,
22
- space: ye,
23
- inner: ve,
24
- "is-loading": "_is-loading_1cohb_85",
25
- button: Ce,
26
- footer: we,
27
- "has-scroll": "_has-scroll_1cohb_110",
28
- "footer-button": "_footer-button_1cohb_113",
21
+ "sticky-header": "_sticky-header_yzb8n_54",
22
+ title: ze,
23
+ space: Ce,
24
+ inner: ge,
25
+ "is-loading": "_is-loading_yzb8n_90",
26
+ button: we,
27
+ footer: ve,
28
+ "has-scroll": "_has-scroll_yzb8n_115",
29
+ "footer-button": "_footer-button_yzb8n_118",
29
30
  left: Ne,
30
31
  right: ke,
31
32
  full: Se,
32
33
  bottom: Be,
33
- "full-bottom-height": "_full-bottom-height_1cohb_146",
34
+ "full-bottom-height": "_full-bottom-height_yzb8n_151",
34
35
  opened: Ee,
35
- "is-closing": "_is-closing_1cohb_171",
36
- overlay: ze,
37
- unmount: Ie
38
- }, Oe = 300, Le = (d) => d ? {
36
+ "is-closing": "_is-closing_yzb8n_176",
37
+ overlay: Ie,
38
+ unmount: Oe
39
+ }, Le = 300, Me = (d) => d ? {
39
40
  drawer: {
40
41
  position: "absolute",
41
42
  zIndex: 100
@@ -44,7 +45,7 @@ import '../../assets/Drawer.css';const _e = "_drawer_1cohb_2", be = "_content_1c
44
45
  position: "absolute",
45
46
  zIndex: 90
46
47
  }
47
- } : {}, Ye = ne(
48
+ } : {}, qe = ne(
48
49
  (d, T) => {
49
50
  const {
50
51
  as: x = "div",
@@ -52,35 +53,36 @@ import '../../assets/Drawer.css';const _e = "_drawer_1cohb_2", be = "_content_1c
52
53
  onClose: u,
53
54
  title: D,
54
55
  className: A,
55
- unmount: y = !0,
56
+ unmount: z = !0,
56
57
  isLoading: s = !1,
57
58
  stickyHeader: P,
58
59
  fullBottomHeight: X = !1,
59
60
  position: m = R.RIGHT,
60
61
  paddingRight: j = 8,
61
62
  footer: f,
62
- children: F,
63
- classNameTitle: G,
64
- classNameHeader: Q,
65
- classNameInner: V,
66
- classNameContent: W,
67
- classNameFooter: K,
68
- closeOnClickOutside: v = !0,
69
- showCloseButton: C = !0,
70
- getContainer: h,
71
- ...Y
72
- } = d, [w, N] = p(!1), [q, k] = p(!1), S = L(), _ = ie(ce.XS1), { ref: J } = ae({
63
+ children: G,
64
+ classNameTitle: Q,
65
+ classNameHeader: V,
66
+ classNameInner: W,
67
+ classNameDrawerContainer: F,
68
+ classNameContent: K,
69
+ classNameFooter: Y,
70
+ closeOnClickOutside: C = !0,
71
+ showCloseButton: g = !0,
72
+ getContainer: _,
73
+ ...q
74
+ } = d, [w, v] = b(!1), [J, N] = b(!1), k = L(), y = ie(ae.XS1), { ref: U } = ce({
73
75
  enabled: m === R.BOTTOM
74
- }), B = re(h), i = L(null), [U, Z] = p(!1);
76
+ }), S = re(_), i = L(null), [Z, $] = b(!1);
75
77
  M(() => {
76
- const c = () => {
78
+ const a = () => {
77
79
  if (i.current) {
78
- const { scrollHeight: ee, clientHeight: oe } = i.current;
79
- Z(ee > oe);
80
+ const { scrollHeight: oe, clientHeight: te } = i.current;
81
+ $(oe > te);
80
82
  }
81
83
  };
82
- c();
83
- const O = new ResizeObserver(c);
84
+ a();
85
+ const O = new ResizeObserver(a);
84
86
  return i.current && O.observe(i.current), () => {
85
87
  O.disconnect();
86
88
  };
@@ -88,135 +90,141 @@ import '../../assets/Drawer.css';const _e = "_drawer_1cohb_2", be = "_content_1c
88
90
  on: r && !w,
89
91
  paddingRight: j
90
92
  });
91
- const t = g(() => {
92
- u && (N(!0), S.current = setTimeout(() => {
93
- u(), N(!1);
94
- }, Oe));
95
- }, [u]), $ = g(() => {
96
- v && t();
97
- }, [v, t]), b = g(
98
- (c) => {
99
- c.key === "Escape" && t();
93
+ const n = p(() => {
94
+ u && (v(!0), k.current = setTimeout(() => {
95
+ u(), v(!1);
96
+ }, Le));
97
+ }, [u]), ee = p(() => {
98
+ C && n();
99
+ }, [C, n]), h = p(
100
+ (a) => {
101
+ a.key === "Escape" && n();
100
102
  },
101
- [t]
103
+ [n]
102
104
  );
103
- M(() => (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]: q,
105
+ M(() => (r && (N(!0), window.addEventListener("keydown", h)), () => {
106
+ N(!1), clearTimeout(k.current), window.removeEventListener("keydown", h);
107
+ }), [r, h]);
108
+ const B = {
109
+ [e.opened]: J,
108
110
  [e["is-closing"]]: w,
109
111
  [e["full-bottom-height"]]: X,
110
112
  [e["is-loading"]]: s
111
113
  };
112
- if (!r && y)
114
+ if (!r && z)
113
115
  return null;
114
- const z = Le(h !== void 0 && h !== !1), I = /* @__PURE__ */ l(te, { children: [
115
- /* @__PURE__ */ l(
116
- x,
117
- {
118
- ref: T,
119
- "aria-hidden": !r,
120
- role: "dialog",
121
- style: z.drawer,
122
- className: n(e.drawer, e[m], E, A),
123
- ...Y,
124
- children: [
125
- /* @__PURE__ */ l(
126
- "section",
127
- {
128
- ref: J,
129
- className: n(
130
- e.content,
131
- W,
132
- e[m],
116
+ const E = Me(_ !== void 0 && _ !== !1), I = /* @__PURE__ */ l(
117
+ "div",
118
+ {
119
+ className: t(e.drawerContainer, F),
120
+ children: [
121
+ /* @__PURE__ */ l(
122
+ x,
123
+ {
124
+ ref: T,
125
+ "aria-hidden": !r,
126
+ role: "dialog",
127
+ style: E.drawer,
128
+ className: t(e.drawer, e[m], B, A),
129
+ ...q,
130
+ children: [
131
+ /* @__PURE__ */ l(
132
+ "section",
133
133
  {
134
- [e["is-loading"]]: !!s
135
- }
136
- ),
137
- children: [
138
- /* @__PURE__ */ l(
139
- "header",
140
- {
141
- className: n(e.header, Q, {
142
- [e["sticky-header"]]: P
143
- }),
144
- children: [
145
- /* @__PURE__ */ o("h2", { className: n(e.title, G), children: D }),
146
- /* @__PURE__ */ o("div", { className: e.space, children: C && /* @__PURE__ */ o(
147
- H,
148
- {
149
- variant: de.SecondaryWhite,
150
- isIconButton: !0,
151
- size: _ ? a.S : a.M,
152
- iconName: "Close16px",
153
- onClick: t,
154
- className: e.button
155
- }
156
- ) })
157
- ]
158
- }
159
- ),
160
- /* @__PURE__ */ o(
161
- se,
162
- {
163
- ref: i,
164
- className: n(
165
- e.inner,
134
+ ref: U,
135
+ className: t(
136
+ e.content,
137
+ K,
138
+ e[m],
139
+ {
140
+ [e["is-loading"]]: !!s
141
+ }
142
+ ),
143
+ children: [
144
+ /* @__PURE__ */ l(
145
+ "header",
166
146
  {
167
- [e["is-loading"]]: !!s
168
- },
169
- V
147
+ className: t(e.header, V, {
148
+ [e["sticky-header"]]: P
149
+ }),
150
+ children: [
151
+ /* @__PURE__ */ o("h2", { className: t(e.title, Q), children: D }),
152
+ /* @__PURE__ */ o("div", { className: e.space, children: g && /* @__PURE__ */ o(
153
+ H,
154
+ {
155
+ variant: de.SecondaryWhite,
156
+ isIconButton: !0,
157
+ size: y ? c.S : c.M,
158
+ iconName: "Close16px",
159
+ onClick: n,
160
+ className: e.button
161
+ }
162
+ ) })
163
+ ]
164
+ }
170
165
  ),
171
- variant: fe.LIGHT,
172
- size: he.M,
173
- children: s ? /* @__PURE__ */ o(ue, {}) : F
174
- }
175
- )
176
- ]
177
- }
178
- ),
179
- /* @__PURE__ */ o(
180
- "footer",
181
- {
182
- className: n(e.footer, K, {
183
- [e["has-scroll"]]: U
184
- }),
185
- children: typeof f == "function" ? f({ handleClose: t }) : f || C && /* @__PURE__ */ o(
186
- H,
166
+ /* @__PURE__ */ o(
167
+ se,
168
+ {
169
+ ref: i,
170
+ className: t(
171
+ e.inner,
172
+ {
173
+ [e["is-loading"]]: !!s
174
+ },
175
+ W
176
+ ),
177
+ variant: fe.LIGHT,
178
+ size: _e.M,
179
+ children: s ? /* @__PURE__ */ o(ue, {}) : G
180
+ }
181
+ )
182
+ ]
183
+ }
184
+ ),
185
+ /* @__PURE__ */ o(
186
+ "footer",
187
187
  {
188
- size: _ ? a.L : a.XXL,
189
- full: _,
190
- onClick: t,
191
- className: e["footer-button"],
192
- children: "Закрыть"
188
+ className: t(e.footer, Y, {
189
+ [e["has-scroll"]]: Z
190
+ }),
191
+ children: typeof f == "function" ? f({ handleClose: n }) : f || g && /* @__PURE__ */ o(
192
+ H,
193
+ {
194
+ size: y ? c.L : c.XXL,
195
+ full: y,
196
+ onClick: n,
197
+ className: e["footer-button"],
198
+ children: "Закрыть"
199
+ }
200
+ )
193
201
  }
194
202
  )
195
- }
196
- )
197
- ]
198
- }
199
- ),
200
- /* @__PURE__ */ o(
201
- "div",
202
- {
203
- className: n(
204
- e.overlay,
205
- {
206
- [e.unmount]: !y
207
- },
208
- E
203
+ ]
204
+ }
209
205
  ),
210
- style: z.overlay,
211
- "data-testid": "drawer-overlay",
212
- onClick: $
213
- }
214
- )
215
- ] });
216
- return B === !1 ? I : /* @__PURE__ */ o(me, { element: B, children: I });
206
+ /* @__PURE__ */ o(
207
+ "div",
208
+ {
209
+ className: t(
210
+ e.overlay,
211
+ {
212
+ [e.unmount]: !z
213
+ },
214
+ B
215
+ ),
216
+ style: E.overlay,
217
+ "data-testid": "drawer-overlay",
218
+ onClick: ee
219
+ }
220
+ )
221
+ ]
222
+ }
223
+ );
224
+ return S === !1 ? I : /* @__PURE__ */ o(me, { element: S, children: I });
217
225
  }
218
226
  );
219
227
  export {
220
- Oe as ANIMATION_DELAY,
221
- Ye as Drawer
228
+ Le as ANIMATION_DELAY,
229
+ qe as Drawer
222
230
  };
@@ -1,8 +1,8 @@
1
1
  import { createPortal as t } from "react-dom";
2
- const a = ({
2
+ const c = ({
3
3
  element: o = document.body,
4
4
  children: r
5
- }) => t(r, o);
5
+ }) => (console.log("element", o), t(r, o));
6
6
  export {
7
- a as Portal
7
+ c as Portal
8
8
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mimir-ui-kit",
3
3
  "private": false,
4
- "version": "1.43.22",
4
+ "version": "1.43.26",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {