@moondreamsdev/dreamer-ui 1.7.19-test.32 → 1.7.19-test.33
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-D4qSDezX.js → Toast--_YZjwzL.js} +22 -17
- package/dist/Toast--_YZjwzL.js.map +1 -0
- package/dist/{Toast-DJOTAvA4.cjs → Toast-DPsxc6iK.cjs} +2 -2
- package/dist/Toast-DPsxc6iK.cjs.map +1 -0
- package/dist/components.cjs.js +2 -2
- package/dist/components.cjs.js.map +1 -1
- package/dist/components.esm.js +62 -62
- package/dist/components.esm.js.map +1 -1
- package/dist/providers.cjs.js +1 -1
- package/dist/providers.esm.js +1 -1
- package/package.json +1 -1
- package/dist/Toast-D4qSDezX.js.map +0 -1
- package/dist/Toast-DJOTAvA4.cjs.map +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as o, Fragment as q, jsxs as b } from "react/jsx-runtime";
|
|
2
|
-
import h, { createContext as l, useId as H, useState as x, useEffect as p, useRef as
|
|
3
|
-
import { createPortal as
|
|
4
|
-
import { X as
|
|
2
|
+
import h, { createContext as l, useId as H, useState as x, useEffect as p, useRef as F, useCallback as j, useMemo as z, useContext as A } from "react";
|
|
3
|
+
import { createPortal as P } from "react-dom";
|
|
4
|
+
import { X as V, C as Z, E as J, I as K } from "./X-CIoyLewf.js";
|
|
5
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: u = "inline", ...e }) {
|
|
10
10
|
return /* @__PURE__ */ o(
|
|
11
11
|
"svg",
|
|
12
12
|
{
|
|
@@ -531,7 +531,12 @@ l(null);
|
|
|
531
531
|
l(void 0);
|
|
532
532
|
l(void 0);
|
|
533
533
|
l(void 0);
|
|
534
|
-
|
|
534
|
+
l(null);
|
|
535
|
+
l(null);
|
|
536
|
+
l(void 0);
|
|
537
|
+
l(void 0);
|
|
538
|
+
l(void 0);
|
|
539
|
+
function Y() {
|
|
535
540
|
const [n, i] = x(0);
|
|
536
541
|
return p(() => {
|
|
537
542
|
const u = setInterval(() => {
|
|
@@ -549,7 +554,7 @@ function _() {
|
|
|
549
554
|
u
|
|
550
555
|
)) });
|
|
551
556
|
}
|
|
552
|
-
const
|
|
557
|
+
const _ = {
|
|
553
558
|
base: "focus:outline-current",
|
|
554
559
|
primary: "bg-primary text-primary-foreground hover:bg-primary/80 focus:outline-primary outline-offset-2 disabled:bg-muted disabled:text-muted-foreground",
|
|
555
560
|
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80 focus:outline-secondary outline-offset-2 disabled:bg-muted/80 disabled:text-muted-foreground/80",
|
|
@@ -557,7 +562,7 @@ const G = {
|
|
|
557
562
|
outline: "border border-primary text-primary hover:border-primary/80 hover:text-primary/80 focus:outline-primary outline-offset-2 disabled:border-muted-foreground disabled:text-muted-foreground",
|
|
558
563
|
link: "underline-offset-4 hover:underline disabled:underline disabled:text-muted-foreground focus:outline-current",
|
|
559
564
|
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/80 focus:outline-destructive outline-offset-2 disabled:bg-muted disabled:text-muted-foreground"
|
|
560
|
-
},
|
|
565
|
+
}, G = {
|
|
561
566
|
stripped: "",
|
|
562
567
|
fitted: "size-fit leading-0",
|
|
563
568
|
sm: "px-2 py-1 text-sm",
|
|
@@ -588,8 +593,8 @@ function W({
|
|
|
588
593
|
n === "link" && !i ? a = "fitted" : a = i || k.size;
|
|
589
594
|
const s = y(
|
|
590
595
|
"appearance-none not-disabled:hover:cursor-pointer outline outline-transparent disabled:opacity-50 disabled:cursor-not-allowed transition-all",
|
|
591
|
-
|
|
592
|
-
|
|
596
|
+
_[n],
|
|
597
|
+
G[a],
|
|
593
598
|
U[u],
|
|
594
599
|
e && "relative pointer-events-none",
|
|
595
600
|
t
|
|
@@ -628,7 +633,7 @@ function W({
|
|
|
628
633
|
type: r.type ?? "button",
|
|
629
634
|
className: s,
|
|
630
635
|
children: [
|
|
631
|
-
e && /* @__PURE__ */ o(
|
|
636
|
+
e && /* @__PURE__ */ o(Y, {}),
|
|
632
637
|
v()
|
|
633
638
|
]
|
|
634
639
|
}
|
|
@@ -651,7 +656,7 @@ function ll(n, i) {
|
|
|
651
656
|
}, [n, i]);
|
|
652
657
|
}
|
|
653
658
|
function nl(n, i) {
|
|
654
|
-
const u =
|
|
659
|
+
const u = F(null), e = j(() => {
|
|
655
660
|
const t = document.getElementById(n);
|
|
656
661
|
if (!t) return;
|
|
657
662
|
const d = t.querySelectorAll('[data-modal-action="true"]');
|
|
@@ -699,7 +704,7 @@ function el({
|
|
|
699
704
|
const { label: S, ...$ } = D;
|
|
700
705
|
return /* @__PURE__ */ o(W, { ...$, "data-modal-action": "true", children: S }, O);
|
|
701
706
|
}) });
|
|
702
|
-
return /* @__PURE__ */ o(q, { children:
|
|
707
|
+
return /* @__PURE__ */ o(q, { children: P(
|
|
703
708
|
/* @__PURE__ */ o(
|
|
704
709
|
"div",
|
|
705
710
|
{
|
|
@@ -737,7 +742,7 @@ function el({
|
|
|
737
742
|
onClick: u,
|
|
738
743
|
"data-modal-close-button": "true",
|
|
739
744
|
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",
|
|
740
|
-
children: /* @__PURE__ */ o(
|
|
745
|
+
children: /* @__PURE__ */ o(X, { size: 18 })
|
|
741
746
|
}
|
|
742
747
|
),
|
|
743
748
|
M(),
|
|
@@ -820,11 +825,11 @@ const ol = l(null), vl = () => {
|
|
|
820
825
|
},
|
|
821
826
|
warning: {
|
|
822
827
|
className: "bg-yellow-50 border-yellow-200 text-yellow-900 dark:bg-yellow-800 dark:border-yellow-950 dark:text-yellow-100",
|
|
823
|
-
icon: /* @__PURE__ */ o(
|
|
828
|
+
icon: /* @__PURE__ */ o(J, { size: 20 })
|
|
824
829
|
},
|
|
825
830
|
error: {
|
|
826
831
|
className: "bg-red-50 border-red-200 text-red-900 dark:bg-red-800 dark:border-red-950 dark:text-red-100",
|
|
827
|
-
icon: /* @__PURE__ */ o(
|
|
832
|
+
icon: /* @__PURE__ */ o(Z, { size: 20 })
|
|
828
833
|
}
|
|
829
834
|
};
|
|
830
835
|
function fl({
|
|
@@ -894,7 +899,7 @@ function fl({
|
|
|
894
899
|
{
|
|
895
900
|
onClick: f,
|
|
896
901
|
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",
|
|
897
|
-
children: /* @__PURE__ */ o(
|
|
902
|
+
children: /* @__PURE__ */ o(V, { size: 16 })
|
|
898
903
|
}
|
|
899
904
|
)
|
|
900
905
|
]
|
|
@@ -910,4 +915,4 @@ export {
|
|
|
910
915
|
y as n,
|
|
911
916
|
vl as u
|
|
912
917
|
};
|
|
913
|
-
//# sourceMappingURL=Toast
|
|
918
|
+
//# sourceMappingURL=Toast--_YZjwzL.js.map
|