oiu-core 0.1.7 → 0.1.8
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/Wait/index.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAqB,MAAM,SAAS,CAAC;AAOlE;;;;GAIG;AACH,eAAO,MAAM,IAAI,wCAAkB,UAAU,YAAY,cAAc,oFAOpE,SAAS,CAAC,UAAU,EAAE,cAAc,CAAC,wUAoBtC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/Wait/index.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAqB,MAAM,SAAS,CAAC;AAOlE;;;;GAIG;AACH,eAAO,MAAM,IAAI,wCAAkB,UAAU,YAAY,cAAc,oFAOpE,SAAS,CAAC,UAAU,EAAE,cAAc,CAAC,wUAoBtC,CAAC;AAmEH,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -6345,7 +6345,7 @@ const Mw = "_overlay_1ol4o_1", Fw = "_dummy_1ol4o_7", Uf = {
|
|
|
6345
6345
|
return s ? t ? /* @__PURE__ */ be(Dw, { spin: n, skeleton: o, className: r, children: e || !s ? i : void 0 }) : /* @__PURE__ */ be(Qm, { spin: n, skeleton: o, className: r, children: e || !s ? i : void 0 }) : i;
|
|
6346
6346
|
});
|
|
6347
6347
|
rr.displayName = "Wait";
|
|
6348
|
-
function Dw({ className: e
|
|
6348
|
+
function Dw({ className: e, spin: t, skeleton: r, children: n }) {
|
|
6349
6349
|
const o = Gn();
|
|
6350
6350
|
if (t && t.spinning) {
|
|
6351
6351
|
if (t.tip && typeof t.tip != "string") throw new Error("Only string is allowed when using translation");
|
|
@@ -6359,7 +6359,15 @@ function Qm({ className: e, skeleton: t, spin: r, children: n }) {
|
|
|
6359
6359
|
const i = rr;
|
|
6360
6360
|
if (i.spin) {
|
|
6361
6361
|
const s = i.spin, { extraProps: a, ...c } = r ?? {};
|
|
6362
|
-
return /* @__PURE__ */ be(
|
|
6362
|
+
return /* @__PURE__ */ be(
|
|
6363
|
+
s,
|
|
6364
|
+
{
|
|
6365
|
+
className: ae(Uf.overlay, "wait-overlay", e),
|
|
6366
|
+
...c,
|
|
6367
|
+
extraProps: a ?? i.spinProps,
|
|
6368
|
+
children: n ?? /* @__PURE__ */ be("div", { className: Uf.dummy, children: " " })
|
|
6369
|
+
}
|
|
6370
|
+
);
|
|
6363
6371
|
}
|
|
6364
6372
|
if (i.skeleton) {
|
|
6365
6373
|
const s = i.skeleton, { extraProps: a, ...c } = t ?? {};
|
|
@@ -19318,7 +19326,7 @@ function UR({ className: e, children: t, getPermissionFor: r, defaultAbility: n
|
|
|
19318
19326
|
var zv = /* @__PURE__ */ ((e) => (e[e.Always = 1] = "Always", e[e.Never = 2] = "Never", e[e.RedirectIfFails = 3] = "RedirectIfFails", e))(zv || {});
|
|
19319
19327
|
const WR = () => import(
|
|
19320
19328
|
/* @vite-ignore */
|
|
19321
|
-
"./index-
|
|
19329
|
+
"./index-Bn33oQ7B.js"
|
|
19322
19330
|
);
|
|
19323
19331
|
async function GR(e, t, r) {
|
|
19324
19332
|
return (await WR()).default(e, t, r);
|
package/dist/main.js
CHANGED