mimir-ui-kit 1.14.2 → 1.14.3
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.
|
@@ -33,7 +33,9 @@ type TProps = {
|
|
|
33
33
|
/**
|
|
34
34
|
* Кастомный footer. По дефолту в нем расположена кнопка для закрытия.
|
|
35
35
|
*/
|
|
36
|
-
footer?: ReactNode
|
|
36
|
+
footer?: ReactNode | ((props: {
|
|
37
|
+
handleClose: VoidFunction;
|
|
38
|
+
}) => JSX.Element);
|
|
37
39
|
};
|
|
38
40
|
/**
|
|
39
41
|
* Компонент шторки, который может выезжать слева, справа или внизу.
|
|
@@ -124,7 +124,7 @@ const Drawer = ({
|
|
|
124
124
|
) })
|
|
125
125
|
] }),
|
|
126
126
|
/* @__PURE__ */ jsx("div", { ref: contentRef, className: cls.inner, children }),
|
|
127
|
-
/* @__PURE__ */ jsx("footer", { className: cls.footer, children: footer2 || /* @__PURE__ */ jsx(
|
|
127
|
+
/* @__PURE__ */ jsx("footer", { className: cls.footer, children: typeof footer2 === "function" ? footer2({ handleClose }) : footer2 || /* @__PURE__ */ jsx(
|
|
128
128
|
Button,
|
|
129
129
|
{
|
|
130
130
|
size: isMobile ? EButtonSize.M : EButtonSize.XXL,
|