@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.
@@ -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
- }, U = {
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 W({
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
- U[u],
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 Y(e) {
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 R(e, r) {
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 } = Y(r);
348
- if (ll(k, x), R(x, u), !x) return null;
349
- const M = () => 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, A = () => 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((I, B) => {
350
- const { label: O, ...D } = I;
351
- return /* @__PURE__ */ t(W, { ...D, "data-modal-action": "true", children: O }, B);
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
- M(),
398
+ I(),
395
399
  o,
396
- A()
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-BE87Jmh_.js.map
568
+ //# sourceMappingURL=Toast-Byg2YZQh.js.map