warqadui 0.0.36 → 0.0.37
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.js +10 -1
- package/dist/index.mjs +10 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1119,7 +1119,16 @@ var useModal = (initialState = false) => {
|
|
|
1119
1119
|
}, []);
|
|
1120
1120
|
const ModalComponent = () => {
|
|
1121
1121
|
if (!state?.type) return null;
|
|
1122
|
-
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1122
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1123
|
+
Modal,
|
|
1124
|
+
{
|
|
1125
|
+
isOpen: true,
|
|
1126
|
+
onClose: close,
|
|
1127
|
+
title: state?.title,
|
|
1128
|
+
width: state?.width || 600,
|
|
1129
|
+
children: state?.content
|
|
1130
|
+
}
|
|
1131
|
+
);
|
|
1123
1132
|
};
|
|
1124
1133
|
return {
|
|
1125
1134
|
isOpen,
|
package/dist/index.mjs
CHANGED
|
@@ -1039,7 +1039,16 @@ var useModal = (initialState = false) => {
|
|
|
1039
1039
|
}, []);
|
|
1040
1040
|
const ModalComponent = () => {
|
|
1041
1041
|
if (!state?.type) return null;
|
|
1042
|
-
return /* @__PURE__ */ jsx16(
|
|
1042
|
+
return /* @__PURE__ */ jsx16(
|
|
1043
|
+
Modal,
|
|
1044
|
+
{
|
|
1045
|
+
isOpen: true,
|
|
1046
|
+
onClose: close,
|
|
1047
|
+
title: state?.title,
|
|
1048
|
+
width: state?.width || 600,
|
|
1049
|
+
children: state?.content
|
|
1050
|
+
}
|
|
1051
|
+
);
|
|
1043
1052
|
};
|
|
1044
1053
|
return {
|
|
1045
1054
|
isOpen,
|