@llmnative/react 1.44.0 → 1.45.0

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/index.mjs CHANGED
@@ -11140,6 +11140,7 @@ var vd = (e) => {
11140
11140
  }
11141
11141
  return [...t].map(([e, t]) => ({
11142
11142
  group: e,
11143
+ badge: t.find((e) => e.groupBadge)?.groupBadge,
11143
11144
  options: t
11144
11145
  }));
11145
11146
  }, yd = (e) => e === 0 ? "0" : String(Number(e < .01 ? e.toPrecision(2) : e.toFixed(e < 1 ? 3 : 2))), bd = (e) => !!(e.pricing && e.pricing.input === 0 && e.pricing.output === 0), xd = "h-7 w-7 cursor-pointer rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground", Sd = "sticky -top-1 z-10 -mx-1 border-b border-border/60 bg-popover px-3 py-1.5 text-xs font-medium uppercase tracking-wide text-muted-foreground", Cd = "gap-3", wd = "gap-3 bg-success/10 hover:bg-success/20 focus:bg-success/20", Td = "ml-auto shrink-0 whitespace-nowrap text-xs tabular-nums text-muted-foreground", Ed = "ml-auto shrink-0 whitespace-nowrap text-xs italic text-warning", Dd = "h-7 max-w-[140px] rounded-md px-2 text-xs gap-1 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground truncate", Od = "w-full resize-none border-0 bg-transparent px-4 py-3 text-sm shadow-none outline-none focus-visible:ring-0 placeholder:text-muted-foreground";
@@ -11200,7 +11201,7 @@ function Ad({ name: e, value: t, onChange: n, placeholder: r, running: i = !1, o
11200
11201
  }
11201
11202
  t.replace(t.triggerRange.start, t.triggerRange.end, `${t.trigger}${n.name} `);
11202
11203
  }
11203
- }, [ge]), ye = kd(p), be = () => {
11204
+ }, [ge]), ye = d.find((e) => e.value === p)?.label ?? kd(p), be = () => {
11204
11205
  o || i || (s({
11205
11206
  text: t,
11206
11207
  files: L.map((e) => e.file),
@@ -11315,7 +11316,7 @@ function Ad({ name: e, value: t, onChange: n, placeholder: r, running: i = !1, o
11315
11316
  placement: "top",
11316
11317
  position: "start",
11317
11318
  triggerClassName: Dd
11318
- }, vd(d).map(({ group: e, options: t }) => /* @__PURE__ */ f.createElement(f.Fragment, { key: e ?? "" }, e !== void 0 && /* @__PURE__ */ f.createElement(pa, { className: Sd }, e), t.map((e) => /* @__PURE__ */ f.createElement(fa, {
11319
+ }, vd(d).map(({ group: e, badge: t, options: n }) => /* @__PURE__ */ f.createElement(f.Fragment, { key: e ?? "" }, e !== void 0 && /* @__PURE__ */ f.createElement(pa, { className: Sd }, t ? /* @__PURE__ */ f.createElement("span", { className: "flex items-center justify-between gap-2" }, /* @__PURE__ */ f.createElement("span", { className: "min-w-0 truncate" }, e), /* @__PURE__ */ f.createElement(pr, { variant: t.variant ?? "light" }, t.label)) : e), n.map((e) => /* @__PURE__ */ f.createElement(fa, {
11319
11320
  key: e.value,
11320
11321
  onClick: () => m?.(e.value),
11321
11322
  className: bd(e) ? wd : e.pricing === void 0 ? void 0 : Cd