@moondreamsdev/dreamer-ui 1.7.14 → 1.7.15
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/{Toast-hLOCCnKb.js → Toast-CT6Ns-gP.js} +17 -12
- package/dist/Toast-CT6Ns-gP.js.map +1 -0
- package/dist/{Toast-D3CxHQiE.cjs → Toast-Cdo2nhcv.cjs} +2 -2
- package/dist/Toast-Cdo2nhcv.cjs.map +1 -0
- package/dist/components.cjs.js +2 -2
- package/dist/components.esm.js +62 -62
- package/dist/providers.cjs.js +1 -1
- package/dist/providers.cjs.js.map +1 -1
- package/dist/providers.esm.js +28 -28
- package/dist/providers.esm.js.map +1 -1
- package/package.json +1 -1
- package/dist/Toast-D3CxHQiE.cjs.map +0 -1
- package/dist/Toast-hLOCCnKb.js.map +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as u, Fragment as q, jsxs as b } from "react/jsx-runtime";
|
|
2
2
|
import g, { createContext as l, useId as F, useState as x, useEffect as p, useRef as H, useCallback as j, useMemo as z, useContext as A } from "react";
|
|
3
|
-
import { createPortal as
|
|
4
|
-
import { X as
|
|
5
|
-
import { j as
|
|
3
|
+
import { createPortal as V } from "react-dom";
|
|
4
|
+
import { X as Y, C as Z, E as K, I as P } from "./X-CIoyLewf.js";
|
|
5
|
+
import { j as Q } from "./join-BmgR_f4v.js";
|
|
6
6
|
function y(...n) {
|
|
7
7
|
return n.filter((i) => typeof i == "string" && i).join(" ").trim() || void 0;
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function X({ size: n = 15, color: i = "currentColor", className: o = "inline", ...e }) {
|
|
10
10
|
return /* @__PURE__ */ u(
|
|
11
11
|
"svg",
|
|
12
12
|
{
|
|
@@ -381,6 +381,11 @@ l(null);
|
|
|
381
381
|
l(void 0);
|
|
382
382
|
l(void 0);
|
|
383
383
|
l(void 0);
|
|
384
|
+
l(null);
|
|
385
|
+
l(null);
|
|
386
|
+
l(void 0);
|
|
387
|
+
l(void 0);
|
|
388
|
+
l(void 0);
|
|
384
389
|
function _() {
|
|
385
390
|
const [n, i] = x(0);
|
|
386
391
|
return p(() => {
|
|
@@ -549,7 +554,7 @@ function el({
|
|
|
549
554
|
const { label: S, ...$ } = D;
|
|
550
555
|
return /* @__PURE__ */ u(W, { ...$, "data-modal-action": "true", children: S }, O);
|
|
551
556
|
}) });
|
|
552
|
-
return /* @__PURE__ */ u(q, { children:
|
|
557
|
+
return /* @__PURE__ */ u(q, { children: V(
|
|
553
558
|
/* @__PURE__ */ u(
|
|
554
559
|
"div",
|
|
555
560
|
{
|
|
@@ -587,7 +592,7 @@ function el({
|
|
|
587
592
|
onClick: o,
|
|
588
593
|
"data-modal-close-button": "true",
|
|
589
594
|
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",
|
|
590
|
-
children: /* @__PURE__ */ u(
|
|
595
|
+
children: /* @__PURE__ */ u(X, { size: 18 })
|
|
591
596
|
}
|
|
592
597
|
),
|
|
593
598
|
I(),
|
|
@@ -666,15 +671,15 @@ const ul = l(null), cl = () => {
|
|
|
666
671
|
}, T = {
|
|
667
672
|
info: {
|
|
668
673
|
className: "bg-blue-50 border-blue-200 text-blue-900 dark:bg-blue-800 dark:border-blue-950 dark:text-blue-100",
|
|
669
|
-
icon: /* @__PURE__ */ u(
|
|
674
|
+
icon: /* @__PURE__ */ u(P, { size: 20 })
|
|
670
675
|
},
|
|
671
676
|
warning: {
|
|
672
677
|
className: "bg-yellow-50 border-yellow-200 text-yellow-900 dark:bg-yellow-800 dark:border-yellow-950 dark:text-yellow-100",
|
|
673
|
-
icon: /* @__PURE__ */ u(
|
|
678
|
+
icon: /* @__PURE__ */ u(K, { size: 20 })
|
|
674
679
|
},
|
|
675
680
|
error: {
|
|
676
681
|
className: "bg-red-50 border-red-200 text-red-900 dark:bg-red-800 dark:border-red-950 dark:text-red-100",
|
|
677
|
-
icon: /* @__PURE__ */ u(
|
|
682
|
+
icon: /* @__PURE__ */ u(Z, { size: 20 })
|
|
678
683
|
}
|
|
679
684
|
};
|
|
680
685
|
function ml({
|
|
@@ -719,7 +724,7 @@ function ml({
|
|
|
719
724
|
{
|
|
720
725
|
role: e === "error" ? "alert" : "status",
|
|
721
726
|
"aria-live": e === "error" ? void 0 : "polite",
|
|
722
|
-
className:
|
|
727
|
+
className: Q(
|
|
723
728
|
"relative flex items-start p-4 rounded-lg border shadow-lg transition-all duration-150 ease-in-out",
|
|
724
729
|
r && "pb-3",
|
|
725
730
|
f.className,
|
|
@@ -744,7 +749,7 @@ function ml({
|
|
|
744
749
|
{
|
|
745
750
|
onClick: m,
|
|
746
751
|
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",
|
|
747
|
-
children: /* @__PURE__ */ u(
|
|
752
|
+
children: /* @__PURE__ */ u(Y, { size: 16 })
|
|
748
753
|
}
|
|
749
754
|
)
|
|
750
755
|
]
|
|
@@ -760,4 +765,4 @@ export {
|
|
|
760
765
|
y as n,
|
|
761
766
|
cl as u
|
|
762
767
|
};
|
|
763
|
-
//# sourceMappingURL=Toast-
|
|
768
|
+
//# sourceMappingURL=Toast-CT6Ns-gP.js.map
|