@abdellatifui/react 3.2.32 → 3.2.34

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/nextgen.js CHANGED
@@ -15311,12 +15311,12 @@ const Nx = he((e) => {
15311
15311
  const { queue: t } = Ue(Ui), [r, o] = I({ id: null, variant: null }), s = re({});
15312
15312
  return K(() => {
15313
15313
  t.length > 0 ? (s.current.open(), o(t.at(0))) : s.current.close();
15314
- }, [t]), /* @__PURE__ */ c.jsx(Fr, { variant: "dimmed", ref: s, className: "z-[900]", children: /* @__PURE__ */ c.jsx(
15314
+ }, [t]), /* @__PURE__ */ c.jsx(Fr, { variant: "dimmed", ref: s, className: "z-501!", children: /* @__PURE__ */ c.jsx(
15315
15315
  Px,
15316
15316
  {
15317
15317
  className: "absolute top-0 left-0",
15318
15318
  handle: ".drag-handler-box",
15319
- children: /* @__PURE__ */ c.jsx("div", { className: "absolute w-full h-full top-0 left-0 z-[302]", children: r.variant == "primary" ? /* @__PURE__ */ c.jsx(Nx, { ...r, type: r.type }) : null })
15319
+ children: /* @__PURE__ */ c.jsx("div", { className: "absolute w-full h-full top-0 left-0 z-501!", children: r.variant == "primary" ? /* @__PURE__ */ c.jsx(Nx, { ...r, type: r.type }) : null })
15320
15320
  }
15321
15321
  ) });
15322
15322
  });
@@ -15723,7 +15723,7 @@ const gi = Ce("rounded relative", {
15723
15723
  /* @__PURE__ */ c.jsxs("div", { className: V(gi({ header: r }), "flex items-center w-full "), children: [
15724
15724
  /* @__PURE__ */ c.jsx(Hx, { ...e }),
15725
15725
  /* @__PURE__ */ c.jsx("span", { className: "font-geist text-[13px]", children: e.header }),
15726
- /* @__PURE__ */ c.jsx("div", { onClick: s, className: "z-[3000] absolute right-2 select-none text-blue-500 font-Roboto text-[10px] top-[5px] hover:underline hover:font-bold", children: "DISMISS" })
15726
+ /* @__PURE__ */ c.jsx("div", { onClick: s, className: "absolute right-2 select-none text-blue-500 font-Roboto text-[10px] top-[5px] hover:underline hover:font-bold", children: "DISMISS" })
15727
15727
  ] }),
15728
15728
  /* @__PURE__ */ c.jsx("div", { className: V(gi({ text: r }), "text-[12px] select-none ml-2 h-fit mt-1"), children: e.body }),
15729
15729
  /* @__PURE__ */ c.jsx("div", { className: "flex my-1 space-x-1", children: t.map((i, a) => /* @__PURE__ */ c.jsx("div", { children: i(n, o) }, a)) })
@@ -15755,7 +15755,8 @@ const gi = Ce("rounded relative", {
15755
15755
  ...i,
15756
15756
  ref: o,
15757
15757
  "data-toastid": n?.toastId || "",
15758
- children: /* @__PURE__ */ c.jsx("div", { className: V(gi({ mode: t }), "shadow border border-accent hover:outline outline-gray-200 outline-offset-2"), children: /* @__PURE__ */ c.jsxs("div", { className: "relative w-[350px] flex p-1", children: [
15758
+ className: "z-[501",
15759
+ children: /* @__PURE__ */ c.jsx("div", { className: V(gi({ mode: t }), "shadow border border-accent hover:outline outline-gray-200 outline-offset-2 z-[501]"), children: /* @__PURE__ */ c.jsxs("div", { className: "relative w-[350px] flex p-1", children: [
15759
15760
  /* @__PURE__ */ c.jsx($x, { ...e }),
15760
15761
  /* @__PURE__ */ c.jsx(Ux, { ...e, item: n })
15761
15762
  ] }) })
@@ -20428,12 +20429,14 @@ const Us = Ce(
20428
20429
  h.state && M(h.state, h.message);
20429
20430
  }, [h]);
20430
20431
  function M(ee, W) {
20431
- if (!["invalid", "valid"].includes(ee))
20432
+ if (!["invalid", "valid", "info"].includes(ee))
20432
20433
  throw new Error("Invalid status, must be invalid or valid.");
20433
20434
  if (ee === "invalid")
20434
20435
  E(/* @__PURE__ */ c.jsx("p", { className: "font-aptos text-destructive", children: W })), A && clearTimeout(A);
20435
- else if (ee === "valid") {
20436
- E(/* @__PURE__ */ c.jsx("p", { className: "font-aptos text-green-600", children: W })), A && clearTimeout(A);
20436
+ else if (ee === "valid" || ee === "info") {
20437
+ E(
20438
+ ee == "valid" ? /* @__PURE__ */ c.jsx("p", { className: "font-aptos text-green-600", children: W }) : /* @__PURE__ */ c.jsx("p", { className: "font-aptos text-blue-600", children: W })
20439
+ ), A && clearTimeout(A);
20437
20440
  const H = setTimeout(() => {
20438
20441
  E(r);
20439
20442
  }, 15e3);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@abdellatifui/react",
3
3
  "private": false,
4
- "version": "3.2.32",
4
+ "version": "3.2.34",
5
5
  "type": "module",
6
6
  "types": "dist/nextgen.d.ts",
7
7
  "files": [