catchup-library-web 2.5.2 → 2.5.4
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/index.d.mts +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +1 -8
- package/dist/index.mjs +1 -8
- package/package.json +1 -1
- package/src/components/modals/BaseModal.tsx +25 -34
- package/src/properties/ModalProperties.ts +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -109,11 +109,10 @@ interface IModalProps {
|
|
|
109
109
|
size: string;
|
|
110
110
|
onAfterOpen: () => void;
|
|
111
111
|
onRequestClose: () => void;
|
|
112
|
-
customSize?: string;
|
|
113
112
|
children: any;
|
|
114
113
|
}
|
|
115
114
|
|
|
116
|
-
declare const BaseModal: ({ title, isOpen, size, onAfterOpen, onRequestClose,
|
|
115
|
+
declare const BaseModal: ({ title, isOpen, size, onAfterOpen, onRequestClose, children, }: IModalProps) => react_jsx_runtime.JSX.Element;
|
|
117
116
|
|
|
118
117
|
interface IBasePDFProps {
|
|
119
118
|
file: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -109,11 +109,10 @@ interface IModalProps {
|
|
|
109
109
|
size: string;
|
|
110
110
|
onAfterOpen: () => void;
|
|
111
111
|
onRequestClose: () => void;
|
|
112
|
-
customSize?: string;
|
|
113
112
|
children: any;
|
|
114
113
|
}
|
|
115
114
|
|
|
116
|
-
declare const BaseModal: ({ title, isOpen, size, onAfterOpen, onRequestClose,
|
|
115
|
+
declare const BaseModal: ({ title, isOpen, size, onAfterOpen, onRequestClose, children, }: IModalProps) => react_jsx_runtime.JSX.Element;
|
|
117
116
|
|
|
118
117
|
interface IBasePDFProps {
|
|
119
118
|
file: string;
|
package/dist/index.js
CHANGED
|
@@ -1238,7 +1238,6 @@ var BaseModal = ({
|
|
|
1238
1238
|
size,
|
|
1239
1239
|
onAfterOpen,
|
|
1240
1240
|
onRequestClose,
|
|
1241
|
-
customSize,
|
|
1242
1241
|
children
|
|
1243
1242
|
}) => {
|
|
1244
1243
|
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
@@ -1269,13 +1268,7 @@ var BaseModal = ({
|
|
|
1269
1268
|
}
|
|
1270
1269
|
},
|
|
1271
1270
|
contentLabel: "",
|
|
1272
|
-
children:
|
|
1273
|
-
"div",
|
|
1274
|
-
{
|
|
1275
|
-
className: `${customSize} font-quicksand max-h-[calc(98vh-48px)] overflow-auto`,
|
|
1276
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(FullCard_default, { children })
|
|
1277
|
-
}
|
|
1278
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1271
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1279
1272
|
"div",
|
|
1280
1273
|
{
|
|
1281
1274
|
className: `font-quicksand ${size === "small" ? "w-[600px]" : size === "medium" ? "w-[900px]" : "w-[600px] lg:w-[900px] xl:w-[1200px] 2xl:w-[1500px]"}`,
|
package/dist/index.mjs
CHANGED
|
@@ -1005,7 +1005,6 @@ var BaseModal = ({
|
|
|
1005
1005
|
size,
|
|
1006
1006
|
onAfterOpen,
|
|
1007
1007
|
onRequestClose,
|
|
1008
|
-
customSize,
|
|
1009
1008
|
children
|
|
1010
1009
|
}) => {
|
|
1011
1010
|
return /* @__PURE__ */ jsx17(
|
|
@@ -1036,13 +1035,7 @@ var BaseModal = ({
|
|
|
1036
1035
|
}
|
|
1037
1036
|
},
|
|
1038
1037
|
contentLabel: "",
|
|
1039
|
-
children:
|
|
1040
|
-
"div",
|
|
1041
|
-
{
|
|
1042
|
-
className: `${customSize} font-quicksand max-h-[calc(98vh-48px)] overflow-auto`,
|
|
1043
|
-
children: /* @__PURE__ */ jsx17(FullCard_default, { children })
|
|
1044
|
-
}
|
|
1045
|
-
) : /* @__PURE__ */ jsx17(
|
|
1038
|
+
children: /* @__PURE__ */ jsx17(
|
|
1046
1039
|
"div",
|
|
1047
1040
|
{
|
|
1048
1041
|
className: `font-quicksand ${size === "small" ? "w-[600px]" : size === "medium" ? "w-[900px]" : "w-[600px] lg:w-[900px] xl:w-[1200px] 2xl:w-[1500px]"}`,
|
package/package.json
CHANGED
|
@@ -11,7 +11,6 @@ const BaseModal = ({
|
|
|
11
11
|
size,
|
|
12
12
|
onAfterOpen,
|
|
13
13
|
onRequestClose,
|
|
14
|
-
customSize,
|
|
15
14
|
children,
|
|
16
15
|
}: IModalProps) => {
|
|
17
16
|
return (
|
|
@@ -42,39 +41,31 @@ const BaseModal = ({
|
|
|
42
41
|
}}
|
|
43
42
|
contentLabel=""
|
|
44
43
|
>
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
</div>
|
|
71
|
-
<DividerLine />
|
|
72
|
-
<div className="max-h-[calc(98vh-120px)] overflow-auto">
|
|
73
|
-
{children}
|
|
74
|
-
</div>
|
|
75
|
-
</FullCard>
|
|
76
|
-
</div>
|
|
77
|
-
)}
|
|
44
|
+
<div
|
|
45
|
+
className={`font-quicksand ${
|
|
46
|
+
size === "small"
|
|
47
|
+
? "w-[600px]"
|
|
48
|
+
: size === "medium"
|
|
49
|
+
? "w-[900px]"
|
|
50
|
+
: "w-[600px] lg:w-[900px] xl:w-[1200px] 2xl:w-[1500px]"
|
|
51
|
+
}`}
|
|
52
|
+
>
|
|
53
|
+
<FullCard>
|
|
54
|
+
<div className="flex flex-row justify-between">
|
|
55
|
+
<BaseTitle title={title} />
|
|
56
|
+
<BaseImage
|
|
57
|
+
src="/icons/cross-red.webp"
|
|
58
|
+
alt="cross-red"
|
|
59
|
+
size="medium"
|
|
60
|
+
onClick={onRequestClose}
|
|
61
|
+
/>
|
|
62
|
+
</div>
|
|
63
|
+
<DividerLine />
|
|
64
|
+
<div className="max-h-[calc(98vh-120px)] overflow-auto">
|
|
65
|
+
{children}
|
|
66
|
+
</div>
|
|
67
|
+
</FullCard>
|
|
68
|
+
</div>
|
|
78
69
|
</Modal>
|
|
79
70
|
);
|
|
80
71
|
};
|