@levo-so/studio 0.3.13 → 0.3.15

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.
@@ -444,35 +444,36 @@ var K = ({ chips: e, onSelect: t, size: n = "comfortable", className: r, chipCla
444
444
  })]
445
445
  })]
446
446
  });
447
- }, Xe = () => null, Ze = "max-w-none text-sm text-zinc-900 leading-relaxed [&>*:first-child]:mt-0 [&>*:last-child]:mb-0 [&_a:hover]:text-sky-700 [&_a]:break-words [&_a]:font-medium [&_a]:text-sky-600 [&_a]:underline [&_a]:underline-offset-2 [&_li]:text-sm [&_ol]:my-2 [&_ol]:list-decimal [&_ol]:pl-5 [&_p]:my-2 [&_p]:text-sm [&_strong]:font-semibold [&_ul]:my-2 [&_ul]:list-disc [&_ul]:pl-5", Qe = "group pr-4 pb-6", $e = "mt-2 flex items-center gap-2 opacity-0 transition-opacity group-focus-within:opacity-100 group-hover:opacity-100", et = "text-xs text-zinc-500/60", tt = "rounded p-1.5 text-zinc-500 transition-colors hover:text-zinc-900", nt = ({ tools: t = Xe, Parts: n, thinkingIndicator: i = /* @__PURE__ */ k(Ye, {}), rootClassName: a = Qe, contentClassName: o = Ze, metaClassName: s = $e, wrapContent: c, metaSlot: l, copyIdleClassName: u, copyCopiedClassName: d, reloadClassName: f = tt, timeClassName: p = et, timeFormatOptions: m, readOnly: h = !1, belowContent: g, footerSlot: _ }) => {
448
- let y = G((e) => e.message), b = e(y), x = n ?? H.Content, S = y.status?.type === "running", C = /* @__PURE__ */ k("div", {
447
+ }, Xe = () => null, Ze = "max-w-none text-sm text-zinc-900 leading-relaxed [&>*:first-child]:mt-0 [&>*:last-child]:mb-0 [&_a:hover]:text-sky-700 [&_a]:break-words [&_a]:font-medium [&_a]:text-sky-600 [&_a]:underline [&_a]:underline-offset-2 [&_li]:text-sm [&_ol]:my-2 [&_ol]:list-decimal [&_ol]:pl-5 [&_p]:my-2 [&_p]:text-sm [&_strong]:font-semibold [&_ul]:my-2 [&_ul]:list-disc [&_ul]:pl-5", Qe = "group pr-4 pb-6", $e = "mt-2 flex items-center gap-2 opacity-0 transition-opacity group-focus-within:opacity-100 group-hover:opacity-100", et = "text-xs text-zinc-500/60", tt = "rounded p-1.5 text-zinc-500 transition-colors hover:text-zinc-900", nt = ({ tools: t = Xe, Parts: n, thinkingIndicator: i = /* @__PURE__ */ k(Ye, {}), rootClassName: a = Qe, contentClassName: o = Ze, metaClassName: s = $e, wrapContent: c, metaSlot: l, copyIdleClassName: u, copyCopiedClassName: d, reloadClassName: f = tt, reloadDisabledReason: p, timeClassName: m = et, timeFormatOptions: h, readOnly: g = !1, belowContent: _, footerSlot: y }) => {
448
+ let b = G((e) => e.message), x = e(b), S = n ?? H.Content, C = b.status?.type === "running", w = /* @__PURE__ */ k("div", {
449
449
  className: o,
450
- children: /* @__PURE__ */ k(x, { components: {
450
+ children: /* @__PURE__ */ k(S, { components: {
451
451
  Text: Ke,
452
452
  tools: { Fallback: t }
453
453
  } })
454
454
  });
455
455
  return /* @__PURE__ */ k(H.Root, {
456
456
  className: a,
457
+ "data-assistant-message": "true",
457
458
  children: /* @__PURE__ */ A("div", {
458
459
  className: "flex min-w-0 flex-col",
459
460
  children: [
460
- c ? c(C) : C,
461
- S && /* @__PURE__ */ k("div", {
461
+ c ? c(w) : w,
462
+ C && /* @__PURE__ */ k("div", {
462
463
  className: "mt-1",
463
464
  children: i
464
465
  }),
465
- !S && g && /* @__PURE__ */ k("div", {
466
+ !C && _ && /* @__PURE__ */ k("div", {
466
467
  className: "mt-2",
467
- children: g
468
+ children: _
468
469
  }),
469
- !S && /* @__PURE__ */ A("div", {
470
+ !C && /* @__PURE__ */ A("div", {
470
471
  className: s,
471
472
  children: [
472
473
  /* @__PURE__ */ k("span", {
473
- className: p,
474
- title: r(b) || void 0,
475
- children: v(b, m)
474
+ className: m,
475
+ title: r(x) || void 0,
476
+ children: v(x, h)
476
477
  }),
477
478
  l,
478
479
  /* @__PURE__ */ A(B.Root, {
@@ -480,19 +481,21 @@ var K = ({ chips: e, onSelect: t, size: n = "comfortable", className: r, chipCla
480
481
  children: [/* @__PURE__ */ k(Fe, {
481
482
  idleClassName: u,
482
483
  copiedClassName: d
483
- }), !h && /* @__PURE__ */ k(B.Reload, {
484
+ }), !g && /* @__PURE__ */ k(B.Reload, {
485
+ disabled: p ? !0 : void 0,
486
+ title: p,
484
487
  className: `${f} disabled:cursor-not-allowed disabled:opacity-40`,
485
488
  children: /* @__PURE__ */ k(L, { className: "h-3 w-3" })
486
489
  })]
487
490
  })
488
491
  ]
489
492
  }),
490
- !S && _
493
+ !C && y
491
494
  ]
492
495
  })
493
496
  });
494
- }, rt = "group flex flex-col items-end pb-4 pl-12", it = "rounded-2xl border border-zinc-200 bg-zinc-100 px-3.5 py-2.5 text-sm text-zinc-900 leading-relaxed", at = "mt-1 flex items-center gap-2 opacity-0 transition-opacity group-focus-within:opacity-100 group-hover:opacity-100", ot = "text-xs text-zinc-500/60", st = "rounded px-2 py-1 font-medium text-xs text-zinc-500 transition-colors hover:text-zinc-900", ct = ({ attachmentsSlot: t, rootClassName: n = rt, bubbleClassName: i = it, contentSlot: a, metaClassName: o = at, timeClassName: s = ot, editClassName: c = st, copyIdleClassName: l, copyCopiedClassName: u, timeFormatOptions: d, readOnly: f = !1 }) => {
495
- let p = G((e) => e.message), m = G((e) => e.thread.isRunning), h = e(p);
497
+ }, rt = "group flex flex-col items-end pb-4 pl-12", it = "rounded-2xl border border-zinc-200 bg-zinc-100 px-3.5 py-2.5 text-sm text-zinc-900 leading-relaxed", at = "mt-1 flex items-center gap-2 opacity-0 transition-opacity group-focus-within:opacity-100 group-hover:opacity-100", ot = "text-xs text-zinc-500/60", st = "rounded px-2 py-1 font-medium text-xs text-zinc-500 transition-colors hover:text-zinc-900", ct = ({ attachmentsSlot: t, rootClassName: n = rt, bubbleClassName: i = it, contentSlot: a, metaClassName: o = at, timeClassName: s = ot, editClassName: c = st, copyIdleClassName: l, copyCopiedClassName: u, timeFormatOptions: d, readOnly: f = !1, editDisabledReason: p }) => {
498
+ let m = G((e) => e.message), h = G((e) => e.thread.isRunning), g = e(m);
496
499
  return /* @__PURE__ */ A(H.Root, {
497
500
  className: n,
498
501
  "data-user-message": "true",
@@ -506,15 +509,16 @@ var K = ({ chips: e, onSelect: t, size: n = "comfortable", className: r, chipCla
506
509
  className: o,
507
510
  children: [/* @__PURE__ */ k("span", {
508
511
  className: s,
509
- title: r(h) || void 0,
510
- children: v(h, d)
512
+ title: r(g) || void 0,
513
+ children: v(g, d)
511
514
  }), /* @__PURE__ */ A(B.Root, {
512
515
  className: "flex items-center gap-0.5",
513
516
  children: [/* @__PURE__ */ k(Fe, {
514
517
  idleClassName: l,
515
518
  copiedClassName: u
516
519
  }), !f && /* @__PURE__ */ k(B.Edit, {
517
- disabled: m,
520
+ disabled: h || !!p,
521
+ title: p,
518
522
  className: `${c} disabled:cursor-not-allowed disabled:opacity-40`,
519
523
  children: "Edit"
520
524
  })]
@@ -31,7 +31,7 @@ var l = () => {
31
31
  }, [])
32
32
  };
33
33
  }, u = ({ isOpen: t, onClose: n, stripePromise: l, clientSecret: u, onComplete: d }) => !t || !l || !u ? null : /* @__PURE__ */ r(o.Root, { children: /* @__PURE__ */ r("div", {
34
- className: "fixed inset-0 z-100 flex items-start justify-center overflow-y-auto bg-black/50 p-4 pt-8 md:p-6 md:pt-10",
34
+ className: "fixed inset-0 z-[2147483001] flex items-start justify-center overflow-y-auto bg-black/50 p-4 pt-8 md:p-6 md:pt-10",
35
35
  children: /* @__PURE__ */ i("div", {
36
36
  className: e("relative flex w-full flex-col overflow-hidden rounded-2xl bg-white shadow-2xl", "max-w-[98vw] md:max-w-[1000px] lg:max-w-[1100px]", "min-h-[500px]", "my-auto", "fade-in-0 zoom-in-95 animate-in duration-200"),
37
37
  children: [/* @__PURE__ */ r("button", {
@@ -2,7 +2,7 @@
2
2
  import { t as e } from "./Button-D6OAkNtW.js";
3
3
  import { n as t } from "./AuthProvider-B5NfFwbG.js";
4
4
  import { t as n } from "./cn-B6c1DjO_.js";
5
- import { n as r, t as i } from "./StripePaymentModal-CiKqmQwK.js";
5
+ import { n as r, t as i } from "./StripePaymentModal-C3bQ0jQi.js";
6
6
  import { BillingStep as a } from "./BillingStep-Cskl5Sbc.js";
7
7
  import { errorHandler as o, useLevo as s } from "@levo-so/react";
8
8
  import { useEffect as c, useRef as l, useState as u } from "react";
package/index.d.ts CHANGED
@@ -1051,6 +1051,7 @@ declare interface IBaseInputProps {
1051
1051
  error?: any;
1052
1052
  touched?: any;
1053
1053
  helperText?: string;
1054
+ "aria-label"?: string;
1054
1055
  labelStyles?: string;
1055
1056
  containerStyles?: string;
1056
1057
  helperTextStyles?: string;