@constructive-io/ui 0.14.1 → 0.15.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/{ai-B08ufcbD.cjs → ai-DpeOFEwx.cjs} +9 -10
- package/dist/ai-DpeOFEwx.cjs.map +1 -0
- package/dist/{ai-4JrVVL3q.js → ai-b5y3Iqy4.js} +9 -10
- package/dist/ai-b5y3Iqy4.js.map +1 -0
- package/dist/components/ai/index.cjs +1 -1
- package/dist/components/ai/index.js +1 -1
- package/dist/components/autocomplete.cjs +1 -1
- package/dist/components/autocomplete.js +1 -1
- package/dist/components/badge.d.cts +2 -2
- package/dist/components/badge.d.ts +2 -2
- package/dist/components/button.cjs +2 -2
- package/dist/components/button.cjs.map +1 -1
- package/dist/components/button.d.cts +2 -2
- package/dist/components/button.d.ts +2 -2
- package/dist/components/button.js +2 -2
- package/dist/components/button.js.map +1 -1
- package/dist/components/card.d.cts +1 -1
- package/dist/components/card.d.ts +1 -1
- package/dist/components/combobox.cjs +1 -1
- package/dist/components/combobox.js +1 -1
- package/dist/components/command.cjs +1 -1
- package/dist/components/command.js +1 -1
- package/dist/components/dropdown-menu.cjs +8 -7
- package/dist/components/dropdown-menu.cjs.map +1 -1
- package/dist/components/dropdown-menu.js +8 -7
- package/dist/components/dropdown-menu.js.map +1 -1
- package/dist/components/input-group.cjs +2 -2
- package/dist/components/input-group.cjs.map +1 -1
- package/dist/components/input-group.js +2 -2
- package/dist/components/input-group.js.map +1 -1
- package/dist/components/input-otp.cjs +5 -2
- package/dist/components/input-otp.cjs.map +1 -1
- package/dist/components/input-otp.js +5 -2
- package/dist/components/input-otp.js.map +1 -1
- package/dist/components/item.d.cts +1 -1
- package/dist/components/item.d.ts +1 -1
- package/dist/components/multi-select.cjs +1 -1
- package/dist/components/multi-select.js +1 -1
- package/dist/components/select.cjs +5 -5
- package/dist/components/select.cjs.map +1 -1
- package/dist/components/select.js +5 -5
- package/dist/components/select.js.map +1 -1
- package/dist/components/sheet.cjs +1 -1
- package/dist/components/sheet.js +1 -1
- package/dist/components/sidebar.cjs +1 -1
- package/dist/components/sidebar.js +1 -1
- package/dist/components/stack/index.d.cts +1 -1
- package/dist/components/stack/index.d.ts +1 -1
- package/dist/components/toggle-group.cjs +6 -2
- package/dist/components/toggle-group.cjs.map +1 -1
- package/dist/components/toggle-group.js +6 -2
- package/dist/components/toggle-group.js.map +1 -1
- package/dist/components/workspace-kit/index.cjs +1 -1
- package/dist/components/workspace-kit/index.js +1 -1
- package/dist/{fluid-highlight-YWFRZXsw.cjs → fluid-highlight-B8olepSM.cjs} +7 -5
- package/dist/fluid-highlight-B8olepSM.cjs.map +1 -0
- package/dist/{fluid-highlight-CNELHV8o.js → fluid-highlight-BXVfWNk9.js} +7 -5
- package/dist/fluid-highlight-BXVfWNk9.js.map +1 -0
- package/dist/{index-B7cT7gZU.d.cts → index-BzLmDsId.d.cts} +3 -3
- package/dist/{index-B7cT7gZU.d.ts → index-BzLmDsId.d.ts} +3 -3
- package/dist/index.cjs +3 -3
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/{sheet-OxWlnT_G.cjs → sheet-CGFqOAoI.cjs} +2 -2
- package/dist/{sheet-OxWlnT_G.cjs.map → sheet-CGFqOAoI.cjs.map} +1 -1
- package/dist/{sheet-wPF_l9Cn.js → sheet-LOK_d8-K.js} +2 -2
- package/dist/{sheet-wPF_l9Cn.js.map → sheet-LOK_d8-K.js.map} +1 -1
- package/dist/{sidebar-DWl1Azyv.js → sidebar-BNZkdIvO.js} +2 -2
- package/dist/{sidebar-DWl1Azyv.js.map → sidebar-BNZkdIvO.js.map} +1 -1
- package/dist/{sidebar-BEEWmJwC.cjs → sidebar-Bt7qXsqo.cjs} +2 -2
- package/dist/{sidebar-BEEWmJwC.cjs.map → sidebar-Bt7qXsqo.cjs.map} +1 -1
- package/package.json +2 -2
- package/dist/ai-4JrVVL3q.js.map +0 -1
- package/dist/ai-B08ufcbD.cjs.map +0 -1
- package/dist/fluid-highlight-CNELHV8o.js.map +0 -1
- package/dist/fluid-highlight-YWFRZXsw.cjs.map +0 -1
|
@@ -5,7 +5,7 @@ import { Badge } from "./components/badge.js";
|
|
|
5
5
|
import { Kbd } from "./components/kbd.js";
|
|
6
6
|
import { Spinner } from "./components/spinner.js";
|
|
7
7
|
import { Alert, AlertDescription, AlertTitle } from "./components/alert.js";
|
|
8
|
-
import { n as unscaledRect } from "./fluid-highlight-
|
|
8
|
+
import { n as unscaledRect } from "./fluid-highlight-BXVfWNk9.js";
|
|
9
9
|
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./components/tooltip.js";
|
|
10
10
|
import { Popover, PopoverContent, PopoverTrigger, popoverSurfaceClass } from "./components/popover.js";
|
|
11
11
|
import { t as useMergedRefs } from "./compose-refs-Mbma1O3M.js";
|
|
@@ -394,13 +394,14 @@ function PromptInputActions({ className, ...props }) {
|
|
|
394
394
|
}
|
|
395
395
|
function PromptInputAction({ tooltip, children, className, side = "top", ...props }) {
|
|
396
396
|
const { disabled } = usePromptInput();
|
|
397
|
+
const trigger = React$1.isValidElement(children) ? children : void 0;
|
|
397
398
|
return /* @__PURE__ */ jsxs(Tooltip, {
|
|
398
399
|
...props,
|
|
399
400
|
children: [/* @__PURE__ */ jsx(TooltipTrigger, {
|
|
400
|
-
|
|
401
|
+
render: trigger,
|
|
401
402
|
onClick: (event) => event.stopPropagation(),
|
|
402
403
|
disabled,
|
|
403
|
-
children
|
|
404
|
+
children: trigger ? void 0 : children
|
|
404
405
|
}), /* @__PURE__ */ jsx(TooltipContent, {
|
|
405
406
|
side,
|
|
406
407
|
className,
|
|
@@ -632,11 +633,12 @@ function MessageActions({ className, ...props }) {
|
|
|
632
633
|
});
|
|
633
634
|
}
|
|
634
635
|
function MessageAction({ tooltip, children, className, side = "top", ...props }) {
|
|
636
|
+
const trigger = React$1.isValidElement(children) ? children : void 0;
|
|
635
637
|
return /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs(Tooltip, {
|
|
636
638
|
...props,
|
|
637
639
|
children: [/* @__PURE__ */ jsx(TooltipTrigger, {
|
|
638
|
-
|
|
639
|
-
children
|
|
640
|
+
render: trigger,
|
|
641
|
+
children: trigger ? void 0 : children
|
|
640
642
|
}), /* @__PURE__ */ jsx(TooltipContent, {
|
|
641
643
|
side,
|
|
642
644
|
className,
|
|
@@ -1893,10 +1895,7 @@ function Source({ href, title, description, favicon, domain, showTitle = false,
|
|
|
1893
1895
|
children: content
|
|
1894
1896
|
}) : content;
|
|
1895
1897
|
if (!description && title === label) return chip;
|
|
1896
|
-
return /* @__PURE__ */ jsxs(Tooltip, { children: [/* @__PURE__ */ jsx(TooltipTrigger, {
|
|
1897
|
-
asChild: true,
|
|
1898
|
-
children: chip
|
|
1899
|
-
}), /* @__PURE__ */ jsx(TooltipContent, {
|
|
1898
|
+
return /* @__PURE__ */ jsxs(Tooltip, { children: [/* @__PURE__ */ jsx(TooltipTrigger, { render: chip }), /* @__PURE__ */ jsx(TooltipContent, {
|
|
1900
1899
|
side: "top",
|
|
1901
1900
|
className: "max-w-xs",
|
|
1902
1901
|
children: /* @__PURE__ */ jsxs("div", {
|
|
@@ -4381,4 +4380,4 @@ function AgentDraftCard({ name, badge = "Draft", schedule, tools = [], steps = [
|
|
|
4381
4380
|
|
|
4382
4381
|
//#endregion
|
|
4383
4382
|
export { useChatContainer as $, PromptSuggestions as A, normalizeToolStatus as B, TaskRow as C, DiffTable as D, PlanTracker as E, Sources as F, ThinkingTrace as G, ChainOfThoughtStep as H, ApprovalCard as I, formatDuration as J, Reasoning as K, StatusIcon as L, InlineDiff as M, lineDiff as N, StreamingText as O, Source as P, ChatContainerContent as Q, Tool as R, TaskList as S, formatCompact as T, Step as U, ChainOfThought as V, Steps as W, ScrollButton as X, SystemMessage as Y, ChatContainer as Z, AiImage as _, AgentLoader as _t, PromptInputAttachments as a, MessageAvatar as at, ContextCard as b, UsageNotice as c, renderBasicMarkdown as ct, PromptInputTrayRow as d, PromptInput as dt, ResponseStream as et, ThinkingStatus as f, PromptInputAction as ft, iconEnterClass as g, usePromptInput as gt, MarkTile as h, PromptInputTextarea as ht, PromptInputAttachment as i, MessageActions as it, FeedbackBar as j, PromptSuggestion as k, usageTone as l, STREAM_THROTTLE_MS as lt, ToolTrace as m, PromptInputBody as mt, ConnectPrompt as n, Message as nt, CostBlocks as o, MessageContent as ot, formatElapsed as p, PromptInputActions as pt, ThinkingBar as q, AskCard as r, MessageAction as rt, ModelSelector as s, Markdown as st, AgentDraftCard as t, CodeBlock as tt, PromptInputTray as u, useThrottledText as ut, FileUpload as v, Loader as vt, ContextRing as w, ContextCards as x, RecommendationCard as y, TextShimmer as yt, ToolGroup as z };
|
|
4384
|
-
//# sourceMappingURL=ai-
|
|
4383
|
+
//# sourceMappingURL=ai-b5y3Iqy4.js.map
|