reykit 1.0.173 → 1.0.175
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 +6 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -49035,17 +49035,20 @@ function O4(a) {
|
|
|
49035
49035
|
};
|
|
49036
49036
|
return /* @__PURE__ */ E.jsxs(i, { value: b, children: [
|
|
49037
49037
|
m,
|
|
49038
|
-
|
|
49038
|
+
/* @__PURE__ */ E.jsx("div", { className: oe(
|
|
49039
|
+
"fixed inset-0 z-50 flex justify-center items-center transition-opacity duration-300",
|
|
49040
|
+
g ? "opacity-100" : "opacity-0 pointer-events-none"
|
|
49041
|
+
), children: g && a })
|
|
49039
49042
|
] });
|
|
49040
49043
|
}, () => {
|
|
49041
49044
|
const m = ij(i);
|
|
49042
49045
|
if (!m) throw new Error("must be used within cover component");
|
|
49043
49046
|
return {
|
|
49044
49047
|
...m,
|
|
49045
|
-
withCover: async (
|
|
49048
|
+
withCover: async (y, ...b) => {
|
|
49046
49049
|
m.setIsCovering(!0);
|
|
49047
49050
|
try {
|
|
49048
|
-
return await
|
|
49051
|
+
return await y(...b);
|
|
49049
49052
|
} finally {
|
|
49050
49053
|
m.setIsCovering(!1);
|
|
49051
49054
|
}
|