@moondreamsdev/dreamer-ui 1.7.16 → 1.7.17-test.0
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-hraOWsUl.cjs → Toast-Ck5u3kQt.cjs} +2 -2
- package/dist/Toast-Ck5u3kQt.cjs.map +1 -0
- package/dist/{Toast-aRIuMq3v.js → Toast-GnTYRmnY.js} +17 -12
- package/dist/Toast-GnTYRmnY.js.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 +5 -5
- package/dist/providers.esm.js.map +1 -1
- package/package.json +1 -1
- package/dist/Toast-aRIuMq3v.js.map +0 -1
- package/dist/Toast-hraOWsUl.cjs.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
|
{
|
|
@@ -391,6 +391,11 @@ l(null);
|
|
|
391
391
|
l(void 0);
|
|
392
392
|
l(void 0);
|
|
393
393
|
l(void 0);
|
|
394
|
+
l(null);
|
|
395
|
+
l(null);
|
|
396
|
+
l(void 0);
|
|
397
|
+
l(void 0);
|
|
398
|
+
l(void 0);
|
|
394
399
|
function _() {
|
|
395
400
|
const [n, i] = x(0);
|
|
396
401
|
return p(() => {
|
|
@@ -559,7 +564,7 @@ function el({
|
|
|
559
564
|
const { label: S, ...$ } = D;
|
|
560
565
|
return /* @__PURE__ */ u(W, { ...$, "data-modal-action": "true", children: S }, O);
|
|
561
566
|
}) });
|
|
562
|
-
return /* @__PURE__ */ u(q, { children:
|
|
567
|
+
return /* @__PURE__ */ u(q, { children: V(
|
|
563
568
|
/* @__PURE__ */ u(
|
|
564
569
|
"div",
|
|
565
570
|
{
|
|
@@ -597,7 +602,7 @@ function el({
|
|
|
597
602
|
onClick: o,
|
|
598
603
|
"data-modal-close-button": "true",
|
|
599
604
|
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",
|
|
600
|
-
children: /* @__PURE__ */ u(
|
|
605
|
+
children: /* @__PURE__ */ u(X, { size: 18 })
|
|
601
606
|
}
|
|
602
607
|
),
|
|
603
608
|
I(),
|
|
@@ -676,15 +681,15 @@ const ul = l(null), cl = () => {
|
|
|
676
681
|
}, T = {
|
|
677
682
|
info: {
|
|
678
683
|
className: "bg-blue-50 border-blue-200 text-blue-900 dark:bg-blue-800 dark:border-blue-950 dark:text-blue-100",
|
|
679
|
-
icon: /* @__PURE__ */ u(
|
|
684
|
+
icon: /* @__PURE__ */ u(P, { size: 20 })
|
|
680
685
|
},
|
|
681
686
|
warning: {
|
|
682
687
|
className: "bg-yellow-50 border-yellow-200 text-yellow-900 dark:bg-yellow-800 dark:border-yellow-950 dark:text-yellow-100",
|
|
683
|
-
icon: /* @__PURE__ */ u(
|
|
688
|
+
icon: /* @__PURE__ */ u(K, { size: 20 })
|
|
684
689
|
},
|
|
685
690
|
error: {
|
|
686
691
|
className: "bg-red-50 border-red-200 text-red-900 dark:bg-red-800 dark:border-red-950 dark:text-red-100",
|
|
687
|
-
icon: /* @__PURE__ */ u(
|
|
692
|
+
icon: /* @__PURE__ */ u(Z, { size: 20 })
|
|
688
693
|
}
|
|
689
694
|
};
|
|
690
695
|
function ml({
|
|
@@ -729,7 +734,7 @@ function ml({
|
|
|
729
734
|
{
|
|
730
735
|
role: e === "error" ? "alert" : "status",
|
|
731
736
|
"aria-live": e === "error" ? void 0 : "polite",
|
|
732
|
-
className:
|
|
737
|
+
className: Q(
|
|
733
738
|
"relative flex items-start p-4 rounded-lg border shadow-lg transition-all duration-150 ease-in-out",
|
|
734
739
|
r && "pb-3",
|
|
735
740
|
f.className,
|
|
@@ -754,7 +759,7 @@ function ml({
|
|
|
754
759
|
{
|
|
755
760
|
onClick: m,
|
|
756
761
|
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",
|
|
757
|
-
children: /* @__PURE__ */ u(
|
|
762
|
+
children: /* @__PURE__ */ u(Y, { size: 16 })
|
|
758
763
|
}
|
|
759
764
|
)
|
|
760
765
|
]
|
|
@@ -770,4 +775,4 @@ export {
|
|
|
770
775
|
y as n,
|
|
771
776
|
cl as u
|
|
772
777
|
};
|
|
773
|
-
//# sourceMappingURL=Toast-
|
|
778
|
+
//# sourceMappingURL=Toast-GnTYRmnY.js.map
|