@addsign/moje-agenda-shared-lib 1.0.36 → 1.0.38

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.
@@ -747,9 +747,6 @@ video {
747
747
  .mt-1 {
748
748
  margin-top: 0.25rem;
749
749
  }
750
- .mt-16 {
751
- margin-top: 4rem;
752
- }
753
750
  .mt-2 {
754
751
  margin-top: 0.5rem;
755
752
  }
@@ -762,6 +759,9 @@ video {
762
759
  .mt-\[4px\] {
763
760
  margin-top: 4px;
764
761
  }
762
+ .mt-\[5vh\] {
763
+ margin-top: 5vh;
764
+ }
765
765
  .mt-auto {
766
766
  margin-top: auto;
767
767
  }
@@ -843,6 +843,9 @@ video {
843
843
  .h-\[440px\] {
844
844
  height: 440px;
845
845
  }
846
+ .h-\[500px\] {
847
+ height: 500px;
848
+ }
846
849
  .h-\[52px\] {
847
850
  height: 52px;
848
851
  }
@@ -1350,10 +1353,6 @@ video {
1350
1353
  .\!bg-danger {
1351
1354
  background-color: var(--color-danger) !important;
1352
1355
  }
1353
- .\!bg-gray-100 {
1354
- --tw-bg-opacity: 1 !important;
1355
- background-color: rgb(243 244 246 / var(--tw-bg-opacity)) !important;
1356
- }
1357
1356
  .\!bg-primary {
1358
1357
  background-color: var(--color-primary) !important;
1359
1358
  }
@@ -2104,6 +2103,9 @@ video {
2104
2103
  --tw-placeholder-opacity: 1;
2105
2104
  color: rgb(156 163 175 / var(--tw-placeholder-opacity));
2106
2105
  }
2106
+ .\!opacity-50 {
2107
+ opacity: 0.5 !important;
2108
+ }
2107
2109
  .opacity-0 {
2108
2110
  opacity: 0;
2109
2111
  }
@@ -33,7 +33,7 @@ function ModalDialog({
33
33
  {
34
34
  ref,
35
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
36
- relative gap-5 p-5 mt-16 ` + classNameWrapper,
36
+ relative gap-5 p-5 mt-[5vh] ` + classNameWrapper,
37
37
  children: [
38
38
  /* @__PURE__ */ jsx(
39
39
  "div",
@@ -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 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;"}
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-[5vh] ` + 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,4CACkC;AAAA,UAGpC,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;"}
@@ -22211,7 +22211,7 @@ function DataTableServer({
22211
22211
  )
22212
22212
  ] }) }),
22213
22213
  data && (data == null ? void 0 : data.content) && (data == null ? void 0 : data.content.length) > 0 && /* @__PURE__ */ jsxs("tbody", { className: "relative", children: [
22214
- isLoading && /* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsx("td", { children: /* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-gray-300 opacity-50 z-50", children: /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center h-full", children: /* @__PURE__ */ jsx(Spinner, {}) }) }) }) }),
22214
+ isLoading && /* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsx("td", { children: /* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-gray-300 opacity-50 z-50", children: /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center h-[500px]", children: /* @__PURE__ */ jsx(Spinner, {}) }) }) }) }),
22215
22215
  data.content.map((item, rowIndex) => /* @__PURE__ */ jsxs(
22216
22216
  "tr",
22217
22217
  {
@@ -22286,7 +22286,7 @@ function DataTableServer({
22286
22286
  "td-nodata"
22287
22287
  ) }, "tr-nodata")
22288
22288
  ] }),
22289
- isLoading && (!data || ((_b = data == null ? void 0 : data.content) == null ? void 0 : _b.length) === 0) && /* @__PURE__ */ jsx("tbody", { className: "relative", children: /* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsx("td", { colSpan: 100, children: /* @__PURE__ */ jsx("div", { className: "w-full flex items-center justify-center h-full py-2", children: /* @__PURE__ */ jsx(Spinner, {}) }) }) }) }),
22289
+ isLoading && (!data || ((_b = data == null ? void 0 : data.content) == null ? void 0 : _b.length) === 0) && /* @__PURE__ */ jsx("tbody", { className: "relative", children: /* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsx("td", { colSpan: 100, children: /* @__PURE__ */ jsx("div", { className: "w-full flex items-center justify-center h-[500px] py-2", children: /* @__PURE__ */ jsx(Spinner, {}) }) }) }) }),
22290
22290
  !isLoading && (!data || ((_c = data == null ? void 0 : data.content) == null ? void 0 : _c.length) === 0) && /* @__PURE__ */ jsx("tbody", { className: "relative h-[440px]", children: /* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsx("td", { colSpan: 100, children: /* @__PURE__ */ jsx("div", { className: "w-full flex items-center justify-center h-full py-2 text-gray-600 font-medium text-xs ", children: "Žádná data" }) }) }) })
22291
22291
  ] }, tableKey) }),
22292
22292
  /* @__PURE__ */ jsxs("div", { className: "w-full p-5 flex gap-5 justify-between", children: [