@addsign/moje-agenda-shared-lib 1.0.33 → 1.0.34
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.
package/dist/assets/tailwind.css
CHANGED
|
@@ -747,6 +747,9 @@ video {
|
|
|
747
747
|
.mt-1 {
|
|
748
748
|
margin-top: 0.25rem;
|
|
749
749
|
}
|
|
750
|
+
.mt-16 {
|
|
751
|
+
margin-top: 4rem;
|
|
752
|
+
}
|
|
750
753
|
.mt-2 {
|
|
751
754
|
margin-top: 0.5rem;
|
|
752
755
|
}
|
|
@@ -798,9 +801,6 @@ video {
|
|
|
798
801
|
.h-24 {
|
|
799
802
|
height: 6rem;
|
|
800
803
|
}
|
|
801
|
-
.h-28 {
|
|
802
|
-
height: 7rem;
|
|
803
|
-
}
|
|
804
804
|
.h-36 {
|
|
805
805
|
height: 9rem;
|
|
806
806
|
}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export interface IModalDialogProps {
|
|
3
|
-
title: string;
|
|
4
3
|
cancelAction: () => void;
|
|
5
|
-
description?: string;
|
|
6
4
|
children?: React.ReactNode;
|
|
7
5
|
classNameWrapper?: string;
|
|
8
6
|
closeOnCLickAway?: boolean;
|
|
9
7
|
}
|
|
10
|
-
export declare function ModalDialog({
|
|
8
|
+
export declare function ModalDialog({ cancelAction, classNameWrapper, children, closeOnCLickAway, }: IModalDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
11
9
|
export default ModalDialog;
|
|
@@ -3,9 +3,7 @@ import { createRef, useEffect } from "react";
|
|
|
3
3
|
import { I as IoCloseOutline } from "../index-G6UUAXAq.js";
|
|
4
4
|
import { u as useClickAway } from "../useClickAway-CH9ykBsx.js";
|
|
5
5
|
function ModalDialog({
|
|
6
|
-
title,
|
|
7
6
|
cancelAction,
|
|
8
|
-
description,
|
|
9
7
|
classNameWrapper,
|
|
10
8
|
children,
|
|
11
9
|
closeOnCLickAway = true
|
|
@@ -28,34 +26,21 @@ function ModalDialog({
|
|
|
28
26
|
return /* @__PURE__ */ jsx(
|
|
29
27
|
"div",
|
|
30
28
|
{
|
|
31
|
-
className: "fixed inset-0 bg-black bg-opacity-25 flex items-
|
|
29
|
+
className: "fixed inset-0 bg-black bg-opacity-25 flex items-start justify-center p-4 ",
|
|
32
30
|
style: { zIndex: 50 },
|
|
33
31
|
children: /* @__PURE__ */ jsxs(
|
|
34
32
|
"div",
|
|
35
33
|
{
|
|
36
34
|
ref,
|
|
37
35
|
className: `min-w-96 min-h-64 max-h-[calc(100vh_-_20px)] bg-white rounded-lg shadow-lg flex flex-col justify-start items-center
|
|
38
|
-
relative
|
|
36
|
+
relative gap-5 p-5 mt-16 ` + classNameWrapper,
|
|
39
37
|
children: [
|
|
40
|
-
|
|
38
|
+
/* @__PURE__ */ jsx(
|
|
41
39
|
"div",
|
|
42
40
|
{
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
children:
|
|
46
|
-
/* @__PURE__ */ jsx("div", { className: "self-stretch h-40 flex-col justify-start items-start gap-4 flex", children: /* @__PURE__ */ jsxs("div", { className: "self-stretch h-16 flex-col justify-start items-start gap-1 flex", children: [
|
|
47
|
-
/* @__PURE__ */ jsx("div", { className: "self-stretch text-gray-900 text-lg font-semibold font-['Inter'] leading-7", children: title }),
|
|
48
|
-
description && /* @__PURE__ */ jsx("div", { className: "self-stretch text-slate-600 text-sm font-normal font-['Open Sans'] leading-tight", children: description })
|
|
49
|
-
] }) }),
|
|
50
|
-
/* @__PURE__ */ jsx(
|
|
51
|
-
"div",
|
|
52
|
-
{
|
|
53
|
-
className: "w-11 h-11 p-2 right-0 top-[16px] absolute rounded-full justify-center items-center inline-flex mr-4 hover:bg-gray-100",
|
|
54
|
-
onClick: cancelAction,
|
|
55
|
-
children: /* @__PURE__ */ jsx(IoCloseOutline, { className: "w-6 h-6 relative text-gray-400" })
|
|
56
|
-
}
|
|
57
|
-
)
|
|
58
|
-
]
|
|
41
|
+
className: "w-11 h-11 p-2 right-0 top-[16px] absolute rounded-full justify-center items-center inline-flex mr-4 hover:bg-gray-100",
|
|
42
|
+
onClick: cancelAction,
|
|
43
|
+
children: /* @__PURE__ */ jsx(IoCloseOutline, { className: "w-6 h-6 relative text-gray-400" })
|
|
59
44
|
}
|
|
60
45
|
),
|
|
61
46
|
children && /* @__PURE__ */ jsx("div", { className: " text-left w-full ", children })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModalDialog.js","sources":["../../lib/components/ModalDialog.tsx"],"sourcesContent":["import { createRef, useEffect } from \"react\";\nimport { IoCloseOutline } from \"react-icons/io5\";\nimport { useClickAway } from \"react-use\";\n\nexport interface IModalDialogProps {\n
|
|
1
|
+
{"version":3,"file":"ModalDialog.js","sources":["../../lib/components/ModalDialog.tsx"],"sourcesContent":["import { createRef, useEffect } from \"react\";\nimport { IoCloseOutline } from \"react-icons/io5\";\nimport { useClickAway } from \"react-use\";\n\nexport interface IModalDialogProps {\n cancelAction: () => void;\n children?: React.ReactNode;\n classNameWrapper?: string;\n closeOnCLickAway?: boolean;\n}\n\nexport function ModalDialog({\n cancelAction,\n classNameWrapper,\n children,\n closeOnCLickAway = true,\n}: IModalDialogProps) {\n const ref = createRef<HTMLDivElement>();\n\n useClickAway(ref, () => {\n closeOnCLickAway ? cancelAction() : null;\n });\n\n useEffect(() => {\n const handleKeyDown = (event: KeyboardEvent) => {\n if (event.key === \"Escape\") {\n cancelAction();\n }\n };\n window.addEventListener(\"keydown\", handleKeyDown);\n return () => {\n window.removeEventListener(\"keydown\", handleKeyDown);\n };\n }, [cancelAction]);\n\n return (\n <div\n className=\"fixed inset-0 bg-black bg-opacity-25 flex items-start justify-center p-4 \"\n style={{ zIndex: 50 }}\n >\n <div\n ref={ref}\n className={\n `min-w-96 min-h-64 max-h-[calc(100vh_-_20px)] bg-white rounded-lg shadow-lg flex flex-col justify-start items-center \n relative gap-5 p-5 mt-16 ` + classNameWrapper\n }\n >\n <div\n className=\"w-11 h-11 p-2 right-0 top-[16px] absolute rounded-full justify-center items-center inline-flex mr-4 hover:bg-gray-100\"\n onClick={cancelAction}\n >\n <IoCloseOutline className=\"w-6 h-6 relative text-gray-400\" />\n </div>\n\n {children && <div className=\" text-left w-full \">{children}</div>}\n </div>\n </div>\n );\n}\n\nexport default ModalDialog;\n"],"names":[],"mappings":";;;;AAWO,SAAS,YAAY;AAAA,EAC1B;AAAA,EACA;AAAA,EACA;AAAA,EACA,mBAAmB;AACrB,GAAsB;AACpB,QAAM,MAAM;AAEZ,eAAa,KAAK,MAAM;AACtB,uBAAmB,aAAiB,IAAA;AAAA,EAAA,CACrC;AAED,YAAU,MAAM;AACR,UAAA,gBAAgB,CAAC,UAAyB;AAC1C,UAAA,MAAM,QAAQ,UAAU;AACb;MACf;AAAA,IAAA;AAEK,WAAA,iBAAiB,WAAW,aAAa;AAChD,WAAO,MAAM;AACJ,aAAA,oBAAoB,WAAW,aAAa;AAAA,IAAA;AAAA,EACrD,GACC,CAAC,YAAY,CAAC;AAGf,SAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAU;AAAA,MACV,OAAO,EAAE,QAAQ,GAAG;AAAA,MAEpB,UAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC;AAAA,UACA,WACE;AAAA,yCAC+B;AAAA,UAGjC,UAAA;AAAA,YAAA;AAAA,cAAC;AAAA,cAAA;AAAA,gBACC,WAAU;AAAA,gBACV,SAAS;AAAA,gBAET,UAAA,oBAAC,gBAAe,EAAA,WAAU,iCAAiC,CAAA;AAAA,cAAA;AAAA,YAC7D;AAAA,YAEC,YAAY,oBAAC,OAAI,EAAA,WAAU,sBAAsB,UAAS;AAAA,UAAA;AAAA,QAAA;AAAA,MAC7D;AAAA,IAAA;AAAA,EAAA;AAGN;"}
|