kelt-ui-kit-react 1.6.8 → 1.6.9
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.
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FormInterface, FormValuesInterface } from '../../form/form.interface';
|
|
2
|
+
import { IconSizeEnum } from '../../icon/iconSize.enum';
|
|
3
|
+
|
|
4
|
+
export type ButtonActionsProps<T extends {
|
|
5
|
+
[key: string]: string | number | boolean | Date | string[];
|
|
6
|
+
}> = {
|
|
7
|
+
className?: string;
|
|
8
|
+
onClick?: (e: React.MouseEvent) => void;
|
|
9
|
+
title: string;
|
|
10
|
+
classIcon?: string;
|
|
11
|
+
sizeIcon?: IconSizeEnum;
|
|
12
|
+
dataForm: FormInterface[];
|
|
13
|
+
onChange?: (values: FormValuesInterface<T>) => void;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
id?: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const ButtonFilters: <T extends {
|
|
18
|
+
[key: string]: string | number | boolean | string[] | Date;
|
|
19
|
+
}>({ className, onClick, title, classIcon, sizeIcon, disabled, id, dataForm, onChange, }: ButtonActionsProps<T>) => import("react/jsx-runtime").JSX.Element;
|
package/dist/index.js
CHANGED
|
@@ -4860,26 +4860,33 @@ const zl = Ue(
|
|
|
4860
4860
|
titleButton: a,
|
|
4861
4861
|
title: i,
|
|
4862
4862
|
styleContainer: s = {},
|
|
4863
|
-
classNameContainer: l = ""
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
-
|
|
4881
|
-
|
|
4882
|
-
|
|
4863
|
+
classNameContainer: l = "",
|
|
4864
|
+
closeOnOverlayClick: c = !0
|
|
4865
|
+
}) => {
|
|
4866
|
+
if (!e) return null;
|
|
4867
|
+
const d = () => {
|
|
4868
|
+
c && t();
|
|
4869
|
+
};
|
|
4870
|
+
return Aa(
|
|
4871
|
+
/* @__PURE__ */ o.jsx("div", { className: "modal-overlay", onMouseDown: d, children: /* @__PURE__ */ o.jsxs(
|
|
4872
|
+
"div",
|
|
4873
|
+
{
|
|
4874
|
+
className: `modal-container ${l}`,
|
|
4875
|
+
style: s,
|
|
4876
|
+
onMouseDown: (f) => f.stopPropagation(),
|
|
4877
|
+
children: [
|
|
4878
|
+
/* @__PURE__ */ o.jsxs("div", { className: "modal-header", children: [
|
|
4879
|
+
i && /* @__PURE__ */ o.jsx("h2", { className: "modal-title", children: i }),
|
|
4880
|
+
/* @__PURE__ */ o.jsx("div", { className: "modal-close-button", onClick: t, children: /* @__PURE__ */ o.jsx(Y, { classIcon: "bi-x-lg" }) })
|
|
4881
|
+
] }),
|
|
4882
|
+
/* @__PURE__ */ o.jsx("div", { className: "modal-content", children: r }),
|
|
4883
|
+
n && /* @__PURE__ */ o.jsx("div", { className: "d-flex justify-content-end", children: /* @__PURE__ */ o.jsx(xt, { onClick: n, title: a ?? "" }) })
|
|
4884
|
+
]
|
|
4885
|
+
}
|
|
4886
|
+
) }),
|
|
4887
|
+
document.body
|
|
4888
|
+
);
|
|
4889
|
+
}, Kl = Ue(
|
|
4883
4890
|
({
|
|
4884
4891
|
arrayBuffer: e,
|
|
4885
4892
|
displayToolBar: t = !1,
|
package/dist/modal/Modal.d.ts
CHANGED