@moondreamsdev/dreamer-ui 1.7.10-test.134 → 1.7.10-test.135
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-BE87Jmh_.js → Toast-Byg2YZQh.js} +17 -13
- package/dist/Toast-Byg2YZQh.js.map +1 -0
- package/dist/Toast-DwQ0lyVl.cjs +2 -0
- package/dist/Toast-DwQ0lyVl.cjs.map +1 -0
- package/dist/components.cjs.js +2 -2
- package/dist/components.cjs.js.map +1 -1
- package/dist/components.esm.js +73 -64
- 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/Button.d.ts +1 -1
- package/package.json +1 -1
- package/dist/Toast-B-fvydpF.cjs +0 -2
- package/dist/Toast-B-fvydpF.cjs.map +0 -1
- package/dist/Toast-BE87Jmh_.js.map +0 -1
|
@@ -192,6 +192,10 @@ l(null);
|
|
|
192
192
|
l(null);
|
|
193
193
|
l(void 0);
|
|
194
194
|
l(void 0);
|
|
195
|
+
l(null);
|
|
196
|
+
l(null);
|
|
197
|
+
l(void 0);
|
|
198
|
+
l(void 0);
|
|
195
199
|
function G() {
|
|
196
200
|
const [e, r] = h(0);
|
|
197
201
|
return v(() => {
|
|
@@ -226,7 +230,7 @@ const J = {
|
|
|
226
230
|
lg: "px-6 py-3 text-lg",
|
|
227
231
|
icon: "p-1 w-fit aspect-square",
|
|
228
232
|
full: "p-2 w-full"
|
|
229
|
-
},
|
|
233
|
+
}, R = {
|
|
230
234
|
none: "rounded-none",
|
|
231
235
|
sm: "rounded-sm",
|
|
232
236
|
md: "rounded-md",
|
|
@@ -237,7 +241,7 @@ const J = {
|
|
|
237
241
|
size: "md",
|
|
238
242
|
rounded: "md"
|
|
239
243
|
};
|
|
240
|
-
function
|
|
244
|
+
function U({
|
|
241
245
|
variant: e = w.variant,
|
|
242
246
|
size: r,
|
|
243
247
|
rounded: u = w.rounded,
|
|
@@ -251,7 +255,7 @@ function W({
|
|
|
251
255
|
"appearance-none focus:outline-none focus:ring not-disabled:hover:cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed transition-all",
|
|
252
256
|
J[e],
|
|
253
257
|
Q[a],
|
|
254
|
-
|
|
258
|
+
R[u],
|
|
255
259
|
n && "relative pointer-events-none",
|
|
256
260
|
o
|
|
257
261
|
);
|
|
@@ -286,13 +290,13 @@ function W({
|
|
|
286
290
|
}
|
|
287
291
|
);
|
|
288
292
|
}
|
|
289
|
-
function
|
|
293
|
+
function W(e) {
|
|
290
294
|
const [r, u] = h(!1), [n, o] = h(!1);
|
|
291
295
|
return v(() => {
|
|
292
296
|
e ? (o(!0), setTimeout(() => u(!0), 10)) : (u(!1), setTimeout(() => o(!1), 150));
|
|
293
297
|
}, [e]), { show: r, shouldRender: n };
|
|
294
298
|
}
|
|
295
|
-
function
|
|
299
|
+
function Y(e, r) {
|
|
296
300
|
v(() => {
|
|
297
301
|
const u = (n) => {
|
|
298
302
|
n.key === "Escape" && e && r();
|
|
@@ -344,11 +348,11 @@ function el({
|
|
|
344
348
|
ariaLabelledBy: f,
|
|
345
349
|
ariaDescribedBy: p
|
|
346
350
|
}) {
|
|
347
|
-
const g = $(), k = e || `modal-${g}`, C = e ? `${e}-title` : `modal-title-${g}`, { show: j, shouldRender: x } =
|
|
348
|
-
if (ll(k, x),
|
|
349
|
-
const
|
|
350
|
-
const { label:
|
|
351
|
-
return /* @__PURE__ */ t(
|
|
351
|
+
const g = $(), k = e || `modal-${g}`, C = e ? `${e}-title` : `modal-title-${g}`, { show: j, shouldRender: x } = W(r);
|
|
352
|
+
if (ll(k, x), Y(x, u), !x) return null;
|
|
353
|
+
const I = () => n ? q.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) => {
|
|
354
|
+
const { label: D, ...O } = A;
|
|
355
|
+
return /* @__PURE__ */ t(U, { ...O, "data-modal-action": "true", children: D }, B);
|
|
352
356
|
}) });
|
|
353
357
|
return /* @__PURE__ */ t(S, { children: K(
|
|
354
358
|
/* @__PURE__ */ t(
|
|
@@ -391,9 +395,9 @@ function el({
|
|
|
391
395
|
children: /* @__PURE__ */ t(Z, { size: 18 })
|
|
392
396
|
}
|
|
393
397
|
),
|
|
394
|
-
|
|
398
|
+
I(),
|
|
395
399
|
o,
|
|
396
|
-
|
|
400
|
+
M()
|
|
397
401
|
]
|
|
398
402
|
}
|
|
399
403
|
)
|
|
@@ -561,4 +565,4 @@ export {
|
|
|
561
565
|
N as n,
|
|
562
566
|
sl as u
|
|
563
567
|
};
|
|
564
|
-
//# sourceMappingURL=Toast-
|
|
568
|
+
//# sourceMappingURL=Toast-Byg2YZQh.js.map
|