@moondreamsdev/dreamer-ui 1.7.21-test.66 → 1.7.21-test.68

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,12 +1,12 @@
1
1
  import { jsx as o, Fragment as q, jsxs as b } from "react/jsx-runtime";
2
- import g, { createContext as l, useId as H, useState as x, useEffect as p, useRef as V, useCallback as j, useMemo as z, useContext as A } from "react";
3
- import { createPortal as F } from "react-dom";
4
- import { X as J, C as K, E as P, I as X } from "./X-CIoyLewf.js";
5
- import { j as Z } from "./join-BmgR_f4v.js";
2
+ import g, { createContext as l, useId as X, useState as x, useEffect as p, useRef as H, useCallback as j, useMemo as z, useContext as A } from "react";
3
+ import { createPortal as V } from "react-dom";
4
+ import { X as F, C as K, E as P, I as Z } from "./X-CIoyLewf.js";
5
+ import { j as _ } from "./join-BmgR_f4v.js";
6
6
  function y(...n) {
7
7
  return n.filter((e) => typeof e == "string" && e).join(" ").trim() || void 0;
8
8
  }
9
- function _({ size: n = 15, color: e = "currentColor", className: u = "inline", ...i }) {
9
+ function G({ size: n = 15, color: e = "currentColor", className: u = "inline", ...i }) {
10
10
  return /* @__PURE__ */ o(
11
11
  "svg",
12
12
  {
@@ -666,7 +666,22 @@ l(null);
666
666
  l(void 0);
667
667
  l(void 0);
668
668
  l(void 0);
669
- function G() {
669
+ l(null);
670
+ l(null);
671
+ l(void 0);
672
+ l(void 0);
673
+ l(void 0);
674
+ l(null);
675
+ l(null);
676
+ l(void 0);
677
+ l(void 0);
678
+ l(void 0);
679
+ l(null);
680
+ l(null);
681
+ l(void 0);
682
+ l(void 0);
683
+ l(void 0);
684
+ function J() {
670
685
  const [n, e] = x(0);
671
686
  return p(() => {
672
687
  const u = setInterval(() => {
@@ -763,7 +778,7 @@ function W({
763
778
  type: r.type ?? "button",
764
779
  className: a,
765
780
  children: [
766
- i && /* @__PURE__ */ o(G, {}),
781
+ i && /* @__PURE__ */ o(J, {}),
767
782
  s()
768
783
  ]
769
784
  }
@@ -786,7 +801,7 @@ function ll(n, e) {
786
801
  }, [n, e]);
787
802
  }
788
803
  function nl(n, e) {
789
- const u = V(null), i = j(() => {
804
+ const u = H(null), i = j(() => {
790
805
  const t = document.getElementById(n);
791
806
  if (!t) return;
792
807
  const d = t.querySelectorAll('[data-modal-action="true"]');
@@ -828,13 +843,13 @@ function il({
828
843
  ariaLabelledBy: m,
829
844
  ariaDescribedBy: w
830
845
  }) {
831
- const C = H(), E = n || `modal-${C}`, L = n ? `${n}-title` : `modal-title-${C}`, { show: M, shouldRender: N } = Y(e);
846
+ const C = X(), E = n || `modal-${C}`, L = n ? `${n}-title` : `modal-title-${C}`, { show: M, shouldRender: N } = Y(e);
832
847
  if (nl(E, N), ll(N, u), !N) return null;
833
848
  const B = () => i ? g.isValidElement(i) ? /* @__PURE__ */ o("div", { className: "mb-4", children: i }) : /* @__PURE__ */ o("h2", { className: "mb-4 text-xl font-semibold", id: L, children: i }) : null, I = () => c.length === 0 ? null : /* @__PURE__ */ o("div", { className: "mt-6 not-sm:grid gap-y-2 sm:flex sm:justify-start sm:flex-row-reverse sm:gap-x-3", children: c.map((D, O) => {
834
- const { label: S, ...$ } = D;
835
- return /* @__PURE__ */ o(W, { ...$, "data-modal-action": "true", children: S }, O);
849
+ const { label: $, ...S } = D;
850
+ return /* @__PURE__ */ o(W, { ...S, "data-modal-action": "true", children: $ }, O);
836
851
  }) });
837
- return /* @__PURE__ */ o(q, { children: F(
852
+ return /* @__PURE__ */ o(q, { children: V(
838
853
  /* @__PURE__ */ o(
839
854
  "div",
840
855
  {
@@ -872,7 +887,7 @@ function il({
872
887
  onClick: u,
873
888
  "data-modal-close-button": "true",
874
889
  className: "rounded-md p-0.5 top-2.5 right-2.5 absolute opacity-80 hover:opacity-100 transition-opacity focus:outline-none focus:ring-2 focus:ring-gray-500 leading-0",
875
- children: /* @__PURE__ */ o(_, { size: 18 })
890
+ children: /* @__PURE__ */ o(G, { size: 18 })
876
891
  }
877
892
  ),
878
893
  B(),
@@ -951,7 +966,7 @@ const ol = l(null), sl = () => {
951
966
  }, T = {
952
967
  info: {
953
968
  className: "bg-blue-50 border-blue-200 text-blue-900 dark:bg-blue-800 dark:border-blue-950 dark:text-blue-100",
954
- icon: /* @__PURE__ */ o(X, { size: 20 })
969
+ icon: /* @__PURE__ */ o(Z, { size: 20 })
955
970
  },
956
971
  warning: {
957
972
  className: "bg-yellow-50 border-yellow-200 text-yellow-900 dark:bg-yellow-800 dark:border-yellow-950 dark:text-yellow-100",
@@ -1004,7 +1019,7 @@ function fl({
1004
1019
  {
1005
1020
  role: i === "error" ? "alert" : "status",
1006
1021
  "aria-live": i === "error" ? void 0 : "polite",
1007
- className: Z(
1022
+ className: _(
1008
1023
  "relative flex items-start p-4 rounded-lg border shadow-lg transition-all ease-in-out",
1009
1024
  t && "pb-3",
1010
1025
  m.className,
@@ -1029,7 +1044,7 @@ function fl({
1029
1044
  {
1030
1045
  onClick: f,
1031
1046
  className: "flex-shrink-0 ml-3 p-1 rounded-md hover:bg-black/10 dark:hover:bg-white/10 focus:outline-none focus:ring-1 focus:ring-current leading-0",
1032
- children: /* @__PURE__ */ o(J, { size: 16 })
1047
+ children: /* @__PURE__ */ o(F, { size: 16 })
1033
1048
  }
1034
1049
  )
1035
1050
  ]
@@ -1045,4 +1060,4 @@ export {
1045
1060
  y as n,
1046
1061
  sl as u
1047
1062
  };
1048
- //# sourceMappingURL=Toast-DcHEsC-5.js.map
1063
+ //# sourceMappingURL=Toast-BZY4Wgtn.js.map