@moondreamsdev/dreamer-ui 1.7.12 → 1.7.13
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-Dj3X8g0Q.cjs → Toast-BJPMjPG-.cjs} +2 -2
- package/dist/Toast-BJPMjPG-.cjs.map +1 -0
- package/dist/{Toast-DUpf_XxS.js → Toast-DXhZLxdl.js} +16 -12
- package/dist/Toast-DXhZLxdl.js.map +1 -0
- package/dist/components.cjs.js +2 -2
- package/dist/components.cjs.js.map +1 -1
- package/dist/components.esm.js +702 -717
- package/dist/components.esm.js.map +1 -1
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.esm.js +8 -6
- package/dist/providers.cjs.js +1 -1
- package/dist/providers.cjs.js.map +1 -1
- package/dist/providers.esm.js +116 -68
- package/dist/providers.esm.js.map +1 -1
- package/dist/src/components/panel/Panel.d.ts +1 -4
- package/dist/src/hooks/index.d.ts +1 -0
- package/dist/src/hooks/useTheme.d.ts +9 -0
- package/dist/src/providers/ActionModalProvider.d.ts +11 -0
- package/dist/src/providers/DreamerUIProvider.d.ts +12 -0
- package/dist/src/providers/ThemeProvider.d.ts +15 -0
- package/dist/src/providers/ToastProvider.d.ts +6 -2
- package/dist/src/providers/index.d.ts +3 -1
- package/dist/useTheme-Bdg1t0Zr.cjs +2 -0
- package/dist/useTheme-Bdg1t0Zr.cjs.map +1 -0
- package/dist/useTheme-CYIEopvl.js +31 -0
- package/dist/useTheme-CYIEopvl.js.map +1 -0
- package/package.json +1 -1
- package/dist/Toast-DUpf_XxS.js.map +0 -1
- package/dist/Toast-Dj3X8g0Q.cjs.map +0 -1
- package/dist/src/components/panel/variants.d.ts +0 -12
- package/dist/useToast-CEKvEJVB.js +0 -22
- package/dist/useToast-CEKvEJVB.js.map +0 -1
- package/dist/useToast-CraVIawn.cjs +0 -2
- package/dist/useToast-CraVIawn.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
|
{
|
|
@@ -372,6 +372,10 @@ l(null);
|
|
|
372
372
|
l(null);
|
|
373
373
|
l(void 0);
|
|
374
374
|
l(void 0);
|
|
375
|
+
l(null);
|
|
376
|
+
l(null);
|
|
377
|
+
l(void 0);
|
|
378
|
+
l(void 0);
|
|
375
379
|
function _() {
|
|
376
380
|
const [n, i] = x(0);
|
|
377
381
|
return p(() => {
|
|
@@ -540,7 +544,7 @@ function el({
|
|
|
540
544
|
const { label: S, ...$ } = D;
|
|
541
545
|
return /* @__PURE__ */ u(W, { ...$, "data-modal-action": "true", children: S }, O);
|
|
542
546
|
}) });
|
|
543
|
-
return /* @__PURE__ */ u(q, { children:
|
|
547
|
+
return /* @__PURE__ */ u(q, { children: V(
|
|
544
548
|
/* @__PURE__ */ u(
|
|
545
549
|
"div",
|
|
546
550
|
{
|
|
@@ -578,7 +582,7 @@ function el({
|
|
|
578
582
|
onClick: o,
|
|
579
583
|
"data-modal-close-button": "true",
|
|
580
584
|
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",
|
|
581
|
-
children: /* @__PURE__ */ u(
|
|
585
|
+
children: /* @__PURE__ */ u(X, { size: 18 })
|
|
582
586
|
}
|
|
583
587
|
),
|
|
584
588
|
I(),
|
|
@@ -657,15 +661,15 @@ const ul = l(null), cl = () => {
|
|
|
657
661
|
}, T = {
|
|
658
662
|
info: {
|
|
659
663
|
className: "bg-blue-50 border-blue-200 text-blue-900 dark:bg-blue-800 dark:border-blue-950 dark:text-blue-100",
|
|
660
|
-
icon: /* @__PURE__ */ u(
|
|
664
|
+
icon: /* @__PURE__ */ u(P, { size: 20 })
|
|
661
665
|
},
|
|
662
666
|
warning: {
|
|
663
667
|
className: "bg-yellow-50 border-yellow-200 text-yellow-900 dark:bg-yellow-800 dark:border-yellow-950 dark:text-yellow-100",
|
|
664
|
-
icon: /* @__PURE__ */ u(
|
|
668
|
+
icon: /* @__PURE__ */ u(K, { size: 20 })
|
|
665
669
|
},
|
|
666
670
|
error: {
|
|
667
671
|
className: "bg-red-50 border-red-200 text-red-900 dark:bg-red-800 dark:border-red-950 dark:text-red-100",
|
|
668
|
-
icon: /* @__PURE__ */ u(
|
|
672
|
+
icon: /* @__PURE__ */ u(Z, { size: 20 })
|
|
669
673
|
}
|
|
670
674
|
};
|
|
671
675
|
function ml({
|
|
@@ -710,7 +714,7 @@ function ml({
|
|
|
710
714
|
{
|
|
711
715
|
role: e === "error" ? "alert" : "status",
|
|
712
716
|
"aria-live": e === "error" ? void 0 : "polite",
|
|
713
|
-
className:
|
|
717
|
+
className: Q(
|
|
714
718
|
"relative flex items-start p-4 rounded-lg border shadow-lg transition-all duration-150 ease-in-out",
|
|
715
719
|
r && "pb-3",
|
|
716
720
|
f.className,
|
|
@@ -735,7 +739,7 @@ function ml({
|
|
|
735
739
|
{
|
|
736
740
|
onClick: m,
|
|
737
741
|
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",
|
|
738
|
-
children: /* @__PURE__ */ u(
|
|
742
|
+
children: /* @__PURE__ */ u(Y, { size: 16 })
|
|
739
743
|
}
|
|
740
744
|
)
|
|
741
745
|
]
|
|
@@ -751,4 +755,4 @@ export {
|
|
|
751
755
|
y as n,
|
|
752
756
|
cl as u
|
|
753
757
|
};
|
|
754
|
-
//# sourceMappingURL=Toast-
|
|
758
|
+
//# sourceMappingURL=Toast-DXhZLxdl.js.map
|