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;AA+DH,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,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"}
@@ -1,4 +1,4 @@
1
- import { A as Re, P as f, a as $, d as Ue } from "./main-CPg7XQHH.js";
1
+ import { A as Re, P as f, a as $, d as Ue } from "./main-BFclgmpf.js";
2
2
  class j extends Error {
3
3
  }
4
4
  j.prototype.name = "InvalidTokenError";
@@ -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 = "wait-overlay", spin: t, skeleton: r, children: n }) {
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(s, { className: ae(Uf.overlay, e), ...c, extraProps: a ?? i.spinProps, children: n ?? /* @__PURE__ */ be("div", { className: Uf.dummy, children: " " }) });
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-CYZOcuqx.js"
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
@@ -1,4 +1,4 @@
1
- import { i as e, b as t, h as u, j as i, c as n, e as o, f as h, u as c, g } from "./main-CPg7XQHH.js";
1
+ import { i as e, b as t, h as u, j as i, c as n, e as o, f as h, u as c, g } from "./main-BFclgmpf.js";
2
2
  export {
3
3
  e as auth,
4
4
  t as components,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "oiu-core",
3
3
  "private": false,
4
- "version": "0.1.7",
4
+ "version": "0.1.8",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"