@moondreamsdev/dreamer-ui 1.7.18 → 1.7.19-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-B8zitjr9.cjs → Toast-CP6YnGep.cjs} +2 -2
- package/dist/Toast-CP6YnGep.cjs.map +1 -0
- package/dist/{Toast-D2GJgSZ2.js → Toast-DQFXejhh.js} +17 -12
- package/dist/Toast-DQFXejhh.js.map +1 -0
- package/dist/components.cjs.js +2 -2
- package/dist/components.cjs.js.map +1 -1
- package/dist/components.esm.js +66 -66
- package/dist/components.esm.js.map +1 -1
- package/dist/providers.cjs.js +1 -1
- package/dist/providers.esm.js +1 -1
- package/dist/src/components/button/variants.d.ts +2 -2
- package/package.json +1 -1
- package/dist/Toast-B8zitjr9.cjs.map +0 -1
- package/dist/Toast-D2GJgSZ2.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
|
{
|
|
@@ -401,6 +401,11 @@ l(null);
|
|
|
401
401
|
l(void 0);
|
|
402
402
|
l(void 0);
|
|
403
403
|
l(void 0);
|
|
404
|
+
l(null);
|
|
405
|
+
l(null);
|
|
406
|
+
l(void 0);
|
|
407
|
+
l(void 0);
|
|
408
|
+
l(void 0);
|
|
404
409
|
function _() {
|
|
405
410
|
const [n, i] = x(0);
|
|
406
411
|
return p(() => {
|
|
@@ -569,7 +574,7 @@ function el({
|
|
|
569
574
|
const { label: S, ...$ } = D;
|
|
570
575
|
return /* @__PURE__ */ u(W, { ...$, "data-modal-action": "true", children: S }, O);
|
|
571
576
|
}) });
|
|
572
|
-
return /* @__PURE__ */ u(q, { children:
|
|
577
|
+
return /* @__PURE__ */ u(q, { children: V(
|
|
573
578
|
/* @__PURE__ */ u(
|
|
574
579
|
"div",
|
|
575
580
|
{
|
|
@@ -607,7 +612,7 @@ function el({
|
|
|
607
612
|
onClick: o,
|
|
608
613
|
"data-modal-close-button": "true",
|
|
609
614
|
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",
|
|
610
|
-
children: /* @__PURE__ */ u(
|
|
615
|
+
children: /* @__PURE__ */ u(X, { size: 18 })
|
|
611
616
|
}
|
|
612
617
|
),
|
|
613
618
|
I(),
|
|
@@ -686,15 +691,15 @@ const ul = l(null), cl = () => {
|
|
|
686
691
|
}, T = {
|
|
687
692
|
info: {
|
|
688
693
|
className: "bg-blue-50 border-blue-200 text-blue-900 dark:bg-blue-800 dark:border-blue-950 dark:text-blue-100",
|
|
689
|
-
icon: /* @__PURE__ */ u(
|
|
694
|
+
icon: /* @__PURE__ */ u(P, { size: 20 })
|
|
690
695
|
},
|
|
691
696
|
warning: {
|
|
692
697
|
className: "bg-yellow-50 border-yellow-200 text-yellow-900 dark:bg-yellow-800 dark:border-yellow-950 dark:text-yellow-100",
|
|
693
|
-
icon: /* @__PURE__ */ u(
|
|
698
|
+
icon: /* @__PURE__ */ u(K, { size: 20 })
|
|
694
699
|
},
|
|
695
700
|
error: {
|
|
696
701
|
className: "bg-red-50 border-red-200 text-red-900 dark:bg-red-800 dark:border-red-950 dark:text-red-100",
|
|
697
|
-
icon: /* @__PURE__ */ u(
|
|
702
|
+
icon: /* @__PURE__ */ u(Z, { size: 20 })
|
|
698
703
|
}
|
|
699
704
|
};
|
|
700
705
|
function ml({
|
|
@@ -739,7 +744,7 @@ function ml({
|
|
|
739
744
|
{
|
|
740
745
|
role: e === "error" ? "alert" : "status",
|
|
741
746
|
"aria-live": e === "error" ? void 0 : "polite",
|
|
742
|
-
className:
|
|
747
|
+
className: Q(
|
|
743
748
|
"relative flex items-start p-4 rounded-lg border shadow-lg transition-all duration-150 ease-in-out",
|
|
744
749
|
r && "pb-3",
|
|
745
750
|
f.className,
|
|
@@ -764,7 +769,7 @@ function ml({
|
|
|
764
769
|
{
|
|
765
770
|
onClick: m,
|
|
766
771
|
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",
|
|
767
|
-
children: /* @__PURE__ */ u(
|
|
772
|
+
children: /* @__PURE__ */ u(Y, { size: 16 })
|
|
768
773
|
}
|
|
769
774
|
)
|
|
770
775
|
]
|
|
@@ -780,4 +785,4 @@ export {
|
|
|
780
785
|
y as n,
|
|
781
786
|
cl as u
|
|
782
787
|
};
|
|
783
|
-
//# sourceMappingURL=Toast-
|
|
788
|
+
//# sourceMappingURL=Toast-DQFXejhh.js.map
|