@moondreamsdev/dreamer-ui 1.7.10-test.116 → 1.7.10-test.117
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-BJyBPhIv.js → Toast-BPkhi3u0.js} +10 -8
- package/dist/Toast-BPkhi3u0.js.map +1 -0
- package/dist/Toast-DI6PlNN-.cjs +2 -0
- package/dist/Toast-DI6PlNN-.cjs.map +1 -0
- package/dist/components.cjs.js +2 -2
- package/dist/components.cjs.js.map +1 -1
- package/dist/components.esm.js +183 -183
- 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-B-prAbPy.cjs +0 -2
- package/dist/Toast-B-prAbPy.cjs.map +0 -1
- package/dist/Toast-BJyBPhIv.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as t, Fragment as
|
|
2
|
-
import
|
|
1
|
+
import { jsx as t, Fragment as q, jsxs as b } from "react/jsx-runtime";
|
|
2
|
+
import S, { createContext as l, useId as $, useState as v, useEffect as p, useRef as H, useCallback as z, useMemo as E, useContext as T } from "react";
|
|
3
3
|
import { createPortal as K } from "react-dom";
|
|
4
4
|
import { X as P, C as _, E as F, I as V } from "./X-CIoyLewf.js";
|
|
5
5
|
import { j as X } from "./join-BmgR_f4v.js";
|
|
@@ -160,6 +160,8 @@ l(null);
|
|
|
160
160
|
l(null);
|
|
161
161
|
l(null);
|
|
162
162
|
l(null);
|
|
163
|
+
l(null);
|
|
164
|
+
l(null);
|
|
163
165
|
function G() {
|
|
164
166
|
const [e, r] = v(0);
|
|
165
167
|
return p(() => {
|
|
@@ -314,11 +316,11 @@ function el({
|
|
|
314
316
|
}) {
|
|
315
317
|
const h = $(), k = e || `modal-${h}`, C = e ? `${e}-title` : `modal-title-${h}`, { show: j, shouldRender: x } = Y(r);
|
|
316
318
|
if (ll(k, x), R(x, u), !x) return null;
|
|
317
|
-
const
|
|
318
|
-
const { label: D, ...O } =
|
|
319
|
+
const I = () => n ? S.isValidElement(n) ? /* @__PURE__ */ t("div", { className: "mb-4", children: n }) : /* @__PURE__ */ t("h2", { className: "mb-4 text-xl font-semibold", id: C, children: n }) : null, M = () => c.length === 0 ? null : /* @__PURE__ */ t("div", { className: "mt-6 not-sm:grid gap-y-2 sm:flex sm:justify-start sm:flex-row-reverse sm:gap-x-3", children: c.map((A, B) => {
|
|
320
|
+
const { label: D, ...O } = A;
|
|
319
321
|
return /* @__PURE__ */ t(W, { ...O, "data-modal-action": "true", children: D }, B);
|
|
320
322
|
}) });
|
|
321
|
-
return /* @__PURE__ */ t(
|
|
323
|
+
return /* @__PURE__ */ t(q, { children: K(
|
|
322
324
|
/* @__PURE__ */ t(
|
|
323
325
|
"div",
|
|
324
326
|
{
|
|
@@ -359,9 +361,9 @@ function el({
|
|
|
359
361
|
children: /* @__PURE__ */ t(Z, { size: 18 })
|
|
360
362
|
}
|
|
361
363
|
),
|
|
362
|
-
|
|
364
|
+
I(),
|
|
363
365
|
o,
|
|
364
|
-
|
|
366
|
+
M()
|
|
365
367
|
]
|
|
366
368
|
}
|
|
367
369
|
)
|
|
@@ -529,4 +531,4 @@ export {
|
|
|
529
531
|
N as n,
|
|
530
532
|
dl as u
|
|
531
533
|
};
|
|
532
|
-
//# sourceMappingURL=Toast-
|
|
534
|
+
//# sourceMappingURL=Toast-BPkhi3u0.js.map
|