@alexgorbatchev/shadcn 0.0.175 → 0.0.176
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/{chunk-my884zez.js → chunk-078csjnf.js} +1 -1
- package/dist/{chunk-s731w97q.js → chunk-0vj8xax9.js} +1 -1
- package/dist/{chunk-r6c6a6vj.js → chunk-0ymgqgtm.js} +1 -1
- package/dist/{chunk-6cf0q7v2.js → chunk-277gskfc.js} +1 -1
- package/dist/{chunk-tjy21ppg.js → chunk-2pjgj1pn.js} +2 -2
- package/dist/{chunk-pbyj8rja.js → chunk-3vme6asz.js} +1 -1
- package/dist/{chunk-2hahvm8t.js → chunk-847akg71.js} +8 -8
- package/dist/{chunk-0evygc14.js → chunk-99086h5y.js} +1 -1
- package/dist/{chunk-dthve8hk.js → chunk-asp04tyc.js} +1 -1
- package/dist/{chunk-bvzjbk43.js → chunk-b28egcxt.js} +2 -2
- package/dist/{chunk-tqwb4mfs.js → chunk-bx9s8n7h.js} +1 -1
- package/dist/{chunk-9crjmpxq.js → chunk-c78ze1d9.js} +2 -2
- package/dist/{chunk-jjxrk4vk.js → chunk-cfqn6fxt.js} +2 -2
- package/dist/{chunk-vspw38yj.js → chunk-ensvs5mj.js} +2 -2
- package/dist/{chunk-nhn079xz.js → chunk-ew47kns7.js} +2 -2
- package/dist/{chunk-ggek1mdz.js → chunk-g0hkpc2x.js} +3 -3
- package/dist/{chunk-21pbbe1z.js → chunk-gaxdgfm9.js} +1 -1
- package/dist/{chunk-e4bd3aax.js → chunk-hqeb9ah0.js} +1 -1
- package/dist/{chunk-d3x4abk0.js → chunk-j5gaa3qq.js} +1 -1
- package/dist/{chunk-trahv0ax.js → chunk-jpywbx5p.js} +2 -2
- package/dist/{chunk-zvvs917e.js → chunk-jq5jdbfz.js} +1 -1
- package/dist/{chunk-26t5yajy.js → chunk-kcptvw8y.js} +17 -6
- package/dist/{chunk-a7ktat27.js → chunk-ks3c6erk.js} +1 -1
- package/dist/{chunk-55vpb7v2.js → chunk-nqvemk3q.js} +1 -1
- package/dist/{chunk-f5e7ez2z.js → chunk-q56p3jvx.js} +3 -3
- package/dist/{chunk-f7sjzbtx.js → chunk-qdptn0n5.js} +1 -1
- package/dist/{chunk-v0mygtss.js → chunk-scas6etd.js} +1 -1
- package/dist/{chunk-sv7343sv.js → chunk-stkypf55.js} +1 -1
- package/dist/{chunk-5xekygak.js → chunk-t58fms99.js} +1 -1
- package/dist/{chunk-1n63jgaq.js → chunk-vzckkf6b.js} +4 -4
- package/dist/{chunk-z4gg2ny5.js → chunk-x1tachv6.js} +1 -1
- package/dist/chunk-yz1ft8hs.js +24 -0
- package/dist/components/Bubble.d.ts +2 -1
- package/dist/components/Field.d.ts +5 -2
- package/dist/components/assistant-ui/elements/CommandPalette.js +3 -3
- package/dist/components/assistant-ui/elements/ComposerCommandItem.js +3 -3
- package/dist/components/assistant-ui/elements/ComposerMenuItem.js +2 -2
- package/dist/components/assistant-ui/elements/ComposerModelItem.js +3 -3
- package/dist/components/assistant-ui/elements/ComposerPersonItem.js +3 -3
- package/dist/components/assistant-ui/elements/EditMessage.js +2 -2
- package/dist/components/assistant-ui/elements/ElicitationForm.js +3 -3
- package/dist/components/assistant-ui/elements/FeedbackDialog.js +3 -3
- package/dist/components/assistant-ui/elements/MessageActions.js +2 -2
- package/dist/components/assistant-ui/elements/ModelPicker.js +2 -2
- package/dist/components/assistant-ui/elements/ModelSelector.js +8 -8
- package/dist/components/assistant-ui/elements/ModelSelectorContent.js +7 -7
- package/dist/components/assistant-ui/elements/ModelSelectorEmpty.js +2 -2
- package/dist/components/assistant-ui/elements/ModelSelectorFocusAnchor.js +2 -2
- package/dist/components/assistant-ui/elements/ModelSelectorGroup.js +2 -2
- package/dist/components/assistant-ui/elements/ModelSelectorItem.js +2 -2
- package/dist/components/assistant-ui/elements/ModelSelectorList.js +4 -4
- package/dist/components/assistant-ui/elements/ModelSelectorSearch.js +2 -2
- package/dist/components/assistant-ui/elements/ModelSelectorSeparator.js +2 -2
- package/dist/components/assistant-ui/elements/ReasoningEffort.js +2 -2
- package/dist/components/assistant-ui/elements/ScheduleCard.js +2 -2
- package/dist/components/assistant-ui/elements/SettingsPanel.js +3 -3
- package/dist/components/assistant-ui/index.js +28 -28
- package/dist/components/assistant-ui/native/ModelSelector.js +10 -10
- package/dist/components/assistant-ui/native/index.js +10 -10
- package/dist/components/assistant-ui/utils/diffViewer/constants.d.ts +2 -2
- package/dist/components/command/index.js +1 -1
- package/dist/components/event-calendar/index.js +1 -1
- package/dist/components/gantt/index.js +1 -1
- package/dist/components/image-viewer/index.js +3 -3
- package/dist/components/input-otp/index.js +1 -1
- package/dist/components/json-render/index.js +10 -10
- package/dist/components/tree/TreeItem.d.ts +1 -1
- package/dist/components/tree/index.js +15 -10
- package/dist/index.js +8 -8
- package/dist/prototype.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-g187prhe.js +0 -24
|
@@ -96,11 +96,11 @@ function FieldTitle2({ density, className, ...props }) {
|
|
|
96
96
|
...props
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
|
-
function FieldDescription2({ density, className, ...props }) {
|
|
99
|
+
function FieldDescription2({ density, wrap = "auto", className, ...props }) {
|
|
100
100
|
return /* @__PURE__ */ jsx("p", {
|
|
101
101
|
"data-density": density,
|
|
102
102
|
"data-slot": "field-description",
|
|
103
|
-
className: cn2("text-start text-sm leading-normal font-normal text-muted-foreground group-data-[orientation=horizontal]/field:text-balance @md/field-group:group-data-[orientation=responsive]/field:text-balance
|
|
103
|
+
className: cn2("text-start text-sm leading-normal font-normal text-muted-foreground [[data-variant=legend]+&]:-mt-1.5", wrap === "auto" && "group-data-[orientation=horizontal]/field:text-balance @md/field-group:group-data-[orientation=responsive]/field:text-balance", "last:mt-0 nth-last-2:-mt-1", "[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary", className),
|
|
104
104
|
...props
|
|
105
105
|
});
|
|
106
106
|
}
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
import { Toggle as TogglePrimitive } from "@base-ui/react/toggle";
|
|
10
10
|
import { cva } from "class-variance-authority";
|
|
11
11
|
import { jsx } from "react/jsx-runtime";
|
|
12
|
-
var toggleVariants2 = cva("group/toggle inline-flex items-center justify-center gap-control-gap rounded-sm border border-transparent text-sm font-medium whitespace-nowrap transition-colors outline-none hover:bg-muted hover:text-foreground focus-visible:
|
|
12
|
+
var toggleVariants2 = cva("group/toggle inline-flex items-center justify-center gap-control-gap rounded-sm border border-transparent text-sm font-medium whitespace-nowrap transition-colors outline-none hover:bg-muted hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive aria-pressed:border-primary aria-pressed:bg-primary/15 aria-pressed:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", {
|
|
13
13
|
variants: {
|
|
14
14
|
variant: {
|
|
15
15
|
default: "bg-transparent",
|
|
@@ -12,31 +12,31 @@ import {
|
|
|
12
12
|
} from "./chunk-gb16cwpw.js";
|
|
13
13
|
import {
|
|
14
14
|
ModelSelectorFocusAnchor2
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-0ymgqgtm.js";
|
|
16
16
|
import {
|
|
17
17
|
ModelSelectorSearch2
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-277gskfc.js";
|
|
19
19
|
import {
|
|
20
20
|
ModelSelectorEmpty2
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-qdptn0n5.js";
|
|
22
22
|
import {
|
|
23
23
|
ModelSelectorItem2
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-0vj8xax9.js";
|
|
25
25
|
import {
|
|
26
26
|
ModelSelectorList2
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-q56p3jvx.js";
|
|
28
28
|
import {
|
|
29
29
|
ModelSelectorEffort2
|
|
30
30
|
} from "./chunk-pzr1f2tz.js";
|
|
31
31
|
import {
|
|
32
32
|
ModelSelectorContent2
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-vzckkf6b.js";
|
|
34
34
|
import {
|
|
35
35
|
ModelSelectorGroup2
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-jq5jdbfz.js";
|
|
37
37
|
import {
|
|
38
38
|
ModelSelectorSeparator2
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-078csjnf.js";
|
|
40
40
|
|
|
41
41
|
// src/components/assistant-ui/native/ModelSelector.tsx
|
|
42
42
|
import { memo, useEffect } from "react";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
ToggleGroup2,
|
|
6
6
|
ToggleGroupItem2
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3vme6asz.js";
|
|
8
8
|
|
|
9
9
|
// src/components/assistant-ui/elements/MessageActions.tsx
|
|
10
10
|
import { CheckIcon, CopyIcon, EllipsisIcon, RefreshCwIcon, ThumbsDownIcon, ThumbsUpIcon } from "lucide-react";
|
|
@@ -13,7 +13,7 @@ var statusDotVariants2 = cva("inline-flex items-center gap-1 text-xs font-medium
|
|
|
13
13
|
},
|
|
14
14
|
placement: {
|
|
15
15
|
inline: "",
|
|
16
|
-
corner: "pointer-events-none absolute -top-0.5 -end-0.5"
|
|
16
|
+
corner: "pointer-events-none absolute -top-0.5 -end-0.5 rounded-full ring-2 ring-background"
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
defaultVariants: { tone: "primary", placement: "inline" }
|
|
@@ -28,7 +28,7 @@ function StatusDot2({ tone, placement, count, className, ...props }) {
|
|
|
28
28
|
children: [
|
|
29
29
|
/* @__PURE__ */ jsx("svg", {
|
|
30
30
|
viewBox: "0 0 8 8",
|
|
31
|
-
className: "size-
|
|
31
|
+
className: cn2("shrink-0", placement === "corner" ? "size-1.5" : "size-2"),
|
|
32
32
|
focusable: "false",
|
|
33
33
|
children: /* @__PURE__ */ jsx("circle", {
|
|
34
34
|
cx: "4",
|
|
@@ -35,7 +35,7 @@ function Tabs2({ analytics, density, className, orientation = "horizontal", ...p
|
|
|
35
35
|
var tabsListVariants2 = cva("group/tabs-list inline-flex w-fit items-center justify-center rounded-sm p-px text-muted-foreground group-data-[orientation=horizontal]/tabs:h-control group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col data-[variant=line]:rounded-none", {
|
|
36
36
|
variants: {
|
|
37
37
|
variant: {
|
|
38
|
-
default: "bg-muted",
|
|
38
|
+
default: "bg-muted ring-1 ring-input/70 dark:bg-secondary",
|
|
39
39
|
line: "gap-1 bg-transparent"
|
|
40
40
|
}
|
|
41
41
|
},
|
|
@@ -56,7 +56,7 @@ function TabsTrigger2({ density, className, ...props }) {
|
|
|
56
56
|
return /* @__PURE__ */ jsx(TabsPrimitive.Tab, {
|
|
57
57
|
"data-density": density,
|
|
58
58
|
"data-slot": "tabs-trigger",
|
|
59
|
-
className: (state) => cn2("relative inline-flex h-full flex-1 items-center justify-center gap-control-gap rounded-
|
|
59
|
+
className: (state) => cn2("relative inline-flex h-full flex-1 items-center justify-center gap-control-gap rounded-sm border border-transparent px-2 py-0.5 text-sm font-medium whitespace-nowrap text-muted-foreground transition-colors group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pe-1 has-data-[icon=inline-start]:ps-1 aria-disabled:pointer-events-none aria-disabled:opacity-50 group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", "group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent", "data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-muted", "after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-end-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100", typeof className === "function" ? className(state) : className),
|
|
60
60
|
...props
|
|
61
61
|
});
|
|
62
62
|
}
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
FieldGroup2,
|
|
14
14
|
Field2,
|
|
15
15
|
FieldLabel2
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-2pjgj1pn.js";
|
|
17
17
|
import {
|
|
18
18
|
RadioGroup2,
|
|
19
19
|
RadioGroupItem2
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
} from "./chunk-jc3cbwyg.js";
|
|
29
29
|
import {
|
|
30
30
|
Switch2
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-stkypf55.js";
|
|
32
32
|
import {
|
|
33
33
|
useReceiptFocus
|
|
34
34
|
} from "./chunk-vxvaaptq.js";
|
|
@@ -12,14 +12,14 @@ import {
|
|
|
12
12
|
import {
|
|
13
13
|
Field2,
|
|
14
14
|
FieldLabel2
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-2pjgj1pn.js";
|
|
16
16
|
import {
|
|
17
17
|
Textarea2
|
|
18
18
|
} from "./chunk-vfgp11y4.js";
|
|
19
19
|
import {
|
|
20
20
|
ToggleGroup2,
|
|
21
21
|
ToggleGroupItem2
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-3vme6asz.js";
|
|
23
23
|
|
|
24
24
|
// src/components/assistant-ui/elements/FeedbackDialog.tsx
|
|
25
25
|
import { useId } from "react";
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
CommandGroup2,
|
|
7
7
|
CommandItem2,
|
|
8
8
|
CommandShortcut2
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-g0hkpc2x.js";
|
|
10
10
|
import {
|
|
11
11
|
Kbd2
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-yz1ft8hs.js";
|
|
13
13
|
|
|
14
14
|
// src/components/assistant-ui/elements/CommandPalette.tsx
|
|
15
15
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -153,7 +153,7 @@ function CommandDialog2({
|
|
|
153
153
|
function CommandInput2({ className, ...props }) {
|
|
154
154
|
return /* @__PURE__ */ jsx("div", {
|
|
155
155
|
"data-slot": "command-input-wrapper",
|
|
156
|
-
className: "p-
|
|
156
|
+
className: "p-2 pb-1",
|
|
157
157
|
children: /* @__PURE__ */ jsxs(InputGroup2, {
|
|
158
158
|
children: [
|
|
159
159
|
/* @__PURE__ */ jsx(CommandPrimitive.Input, {
|
|
@@ -175,7 +175,7 @@ function CommandInput2({ className, ...props }) {
|
|
|
175
175
|
function CommandList2({ className, ...props }) {
|
|
176
176
|
return /* @__PURE__ */ jsx(CommandPrimitive.List, {
|
|
177
177
|
"data-slot": "command-list",
|
|
178
|
-
className: cn2("max-h-72 scroll-py-1 overflow-x-hidden overflow-y-auto outline-none", className),
|
|
178
|
+
className: cn2("max-h-72 scroll-py-1 overflow-x-hidden overflow-y-auto pt-1 outline-none", className),
|
|
179
179
|
...props
|
|
180
180
|
});
|
|
181
181
|
}
|
|
@@ -230,7 +230,7 @@ function CommandItem2({
|
|
|
230
230
|
ref: mergedRef,
|
|
231
231
|
"data-slot": "command-item",
|
|
232
232
|
"data-disabled-reason": disabledReason ? "" : undefined,
|
|
233
|
-
className: cn2("group/command-item relative flex min-h-control cursor-default items-center gap-control-gap px-control-x text-sm outline-none select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-[selected=true]:bg-muted data-[selected=true]:text-foreground data-disabled-reason:flex-wrap data-disabled-reason:py-1 data-disabled-reason:data-[disabled=true]:pointer-events-auto data-disabled-reason:data-[disabled=true]:opacity-100 data-disabled-reason:data-[disabled=true]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:size-4", touchTarget && "pointer-coarse:min-h-11", className),
|
|
233
|
+
className: cn2("group/command-item relative flex min-h-control cursor-default content-center items-center gap-x-control-gap gap-y-0.5 rounded-sm px-control-x text-sm outline-none select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-[selected=true]:bg-muted data-[selected=true]:text-foreground data-disabled-reason:flex-wrap data-disabled-reason:py-1 data-disabled-reason:data-[disabled=true]:pointer-events-auto data-disabled-reason:data-[disabled=true]:opacity-100 data-disabled-reason:data-[disabled=true]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:size-4", touchTarget && "pointer-coarse:min-h-11", className),
|
|
234
234
|
...props,
|
|
235
235
|
disabled: Boolean(disabledReason) || props.disabled,
|
|
236
236
|
"aria-describedby": [props["aria-describedby"], disabledReason ? reasonId : undefined].filter(Boolean).join(" ") || undefined,
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-en44w1pn.js";
|
|
4
4
|
import {
|
|
5
5
|
Switch2
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-stkypf55.js";
|
|
7
7
|
import {
|
|
8
8
|
Button2
|
|
9
9
|
} from "./chunk-n63meq6q.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "./chunk-vfgp11y4.js";
|
|
13
13
|
import {
|
|
14
14
|
Slider2
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-nqvemk3q.js";
|
|
16
16
|
import {
|
|
17
17
|
clamp
|
|
18
18
|
} from "./chunk-v8ks0cfq.js";
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
Field2,
|
|
72
72
|
FieldLabel2,
|
|
73
73
|
FieldDescription2
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-2pjgj1pn.js";
|
|
75
75
|
import {
|
|
76
76
|
Textarea2
|
|
77
77
|
} from "./chunk-vfgp11y4.js";
|
|
@@ -143,7 +143,7 @@ import {
|
|
|
143
143
|
} from "./chunk-t3p4dn1p.js";
|
|
144
144
|
import {
|
|
145
145
|
Kbd2
|
|
146
|
-
} from "./chunk-
|
|
146
|
+
} from "./chunk-yz1ft8hs.js";
|
|
147
147
|
import {
|
|
148
148
|
useLinkAnalyticsCallback,
|
|
149
149
|
AnalyticsLink
|
|
@@ -2641,8 +2641,12 @@ function BubbleGroup2({ density, className, ...props }) {
|
|
|
2641
2641
|
...props
|
|
2642
2642
|
});
|
|
2643
2643
|
}
|
|
2644
|
-
var bubbleVariants = cva5("group/bubble relative flex w-fit
|
|
2644
|
+
var bubbleVariants = cva5("group/bubble relative flex w-fit min-w-0 flex-col gap-1 group-data-[align=end]/message:self-end data-[align=end]:self-end data-[variant=ghost]:max-w-full", {
|
|
2645
2645
|
variants: {
|
|
2646
|
+
maxWidth: {
|
|
2647
|
+
default: "max-w-[80%]",
|
|
2648
|
+
full: "max-w-full"
|
|
2649
|
+
},
|
|
2646
2650
|
variant: {
|
|
2647
2651
|
default: "*:data-[slot=bubble-content]:bg-primary *:data-[slot=bubble-content]:text-primary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-primary/80",
|
|
2648
2652
|
secondary: "*:data-[slot=bubble-content]:bg-secondary *:data-[slot=bubble-content]:text-secondary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)]",
|
|
@@ -2653,15 +2657,22 @@ var bubbleVariants = cva5("group/bubble relative flex w-fit max-w-[80%] min-w-0
|
|
|
2653
2657
|
destructive: "*:data-[slot=bubble-content]:bg-destructive/10 *:data-[slot=bubble-content]:text-destructive [&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/20"
|
|
2654
2658
|
}
|
|
2655
2659
|
},
|
|
2656
|
-
defaultVariants: { variant: "default" }
|
|
2660
|
+
defaultVariants: { variant: "default", maxWidth: "default" }
|
|
2657
2661
|
});
|
|
2658
|
-
function Bubble2({
|
|
2662
|
+
function Bubble2({
|
|
2663
|
+
density,
|
|
2664
|
+
variant = "default",
|
|
2665
|
+
maxWidth = "default",
|
|
2666
|
+
align = "start",
|
|
2667
|
+
className,
|
|
2668
|
+
...props
|
|
2669
|
+
}) {
|
|
2659
2670
|
return /* @__PURE__ */ jsx27("div", {
|
|
2660
2671
|
"data-density": density,
|
|
2661
2672
|
"data-slot": "bubble",
|
|
2662
2673
|
"data-variant": variant,
|
|
2663
2674
|
"data-align": align,
|
|
2664
|
-
className: cn2(bubbleVariants({ variant }), className),
|
|
2675
|
+
className: cn2(bubbleVariants({ variant, maxWidth }), className),
|
|
2665
2676
|
...props
|
|
2666
2677
|
});
|
|
2667
2678
|
}
|
|
@@ -54,7 +54,7 @@ function Slider2({
|
|
|
54
54
|
index,
|
|
55
55
|
getAriaLabel,
|
|
56
56
|
getAriaValueText,
|
|
57
|
-
className: "relative block size-3 shrink-0 rounded-full border border-ring bg-background ring-ring transition-[color,box-shadow] select-none after:absolute after:-inset-2 hover:ring-3 focus-visible:ring-
|
|
57
|
+
className: "relative block size-3 shrink-0 rounded-full border border-ring bg-background ring-ring transition-[color,box-shadow] select-none after:absolute after:-inset-2 hover:ring-3 focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-offset-background focus-visible:outline-hidden active:ring-3 data-indeterminate:size-3.5 data-indeterminate:border-dashed data-indeterminate:border-foreground/75 data-indeterminate:bg-background data-disabled:pointer-events-none data-disabled:opacity-50"
|
|
58
58
|
}, index))
|
|
59
59
|
]
|
|
60
60
|
})
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CommandList2,
|
|
3
3
|
CommandGroup2
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-g0hkpc2x.js";
|
|
5
5
|
import {
|
|
6
6
|
useModelSelectorContext
|
|
7
7
|
} from "./chunk-ydfx8r6d.js";
|
|
8
8
|
import {
|
|
9
9
|
ModelSelectorEmpty2
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-qdptn0n5.js";
|
|
11
11
|
import {
|
|
12
12
|
ModelSelectorItem2
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-0vj8xax9.js";
|
|
14
14
|
|
|
15
15
|
// src/components/assistant-ui/elements/ModelSelectorList.tsx
|
|
16
16
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
@@ -22,7 +22,7 @@ function Switch2({
|
|
|
22
22
|
"data-slot": "switch",
|
|
23
23
|
"data-size": size,
|
|
24
24
|
"data-indeterminate": indeterminate ? "" : undefined,
|
|
25
|
-
className: (state) => cn2("peer group/switch relative inline-flex shrink-0 items-center rounded-sm border border-input transition-colors outline-none group-has-[:focus-visible]/field-label:border-transparent group-has-[:focus-visible]/field-label:ring-0 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:
|
|
25
|
+
className: (state) => cn2("peer group/switch relative inline-flex shrink-0 items-center rounded-sm border border-input transition-colors outline-none group-has-[:focus-visible]/field-label:border-transparent group-has-[:focus-visible]/field-label:ring-0 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive data-[size=default]:h-6 data-[size=default]:w-10 data-[size=sm]:h-4 data-[size=sm]:w-7 data-checked:border-primary data-checked:bg-primary data-unchecked:bg-muted data-indeterminate:border-dashed data-indeterminate:border-muted-foreground data-indeterminate:bg-secondary data-disabled:cursor-not-allowed data-disabled:opacity-50", typeof className === "function" ? className(state) : className),
|
|
26
26
|
...props,
|
|
27
27
|
onCheckedChange: trackedOnCheckedChange,
|
|
28
28
|
children: /* @__PURE__ */ jsx(SwitchPrimitive.Thumb, {
|
|
@@ -4,19 +4,19 @@ import {
|
|
|
4
4
|
} from "./chunk-bf8kbj33.js";
|
|
5
5
|
import {
|
|
6
6
|
Command2
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-g0hkpc2x.js";
|
|
8
8
|
import {
|
|
9
9
|
useModelSelectorContext
|
|
10
10
|
} from "./chunk-ydfx8r6d.js";
|
|
11
11
|
import {
|
|
12
12
|
ModelSelectorFocusAnchor2
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-0ymgqgtm.js";
|
|
14
14
|
import {
|
|
15
15
|
ModelSelectorSearch2
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-277gskfc.js";
|
|
17
17
|
import {
|
|
18
18
|
ModelSelectorList2
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-q56p3jvx.js";
|
|
20
20
|
import {
|
|
21
21
|
ModelSelectorEffort2
|
|
22
22
|
} from "./chunk-pzr1f2tz.js";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
cn2
|
|
3
|
+
} from "./chunk-en44w1pn.js";
|
|
4
|
+
|
|
5
|
+
// src/components/Kbd.tsx
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
function Kbd2({ density, className, ...props }) {
|
|
8
|
+
return /* @__PURE__ */ jsx("kbd", {
|
|
9
|
+
"data-density": density,
|
|
10
|
+
"data-slot": "kbd",
|
|
11
|
+
className: cn2("pointer-events-none inline-flex h-tag w-fit min-w-5 items-center justify-center gap-1 rounded-sm border border-border bg-muted px-1 font-sans text-xs font-medium text-muted-foreground select-none in-data-[selected=true]:border-input in-data-[selected=true]:bg-popover in-data-[selected=true]:text-foreground in-data-[size=xs]:h-auto in-data-[size=xs]:min-w-4 in-data-[size=xs]:px-1 in-data-[size=xs]:py-0.5 in-data-[size=xs]:text-[10px] in-data-[size=xs]:leading-none in-data-[slot=tooltip-content]:bg-muted in-data-[slot=tooltip-content]:text-foreground in-data-[variant=default]:border-primary-foreground/20 in-data-[variant=default]:bg-primary-foreground/15 in-data-[variant=default]:text-primary-foreground in-data-[variant=success]:border-success-foreground/20 in-data-[variant=success]:bg-success-foreground/15 in-data-[variant=success]:text-success-foreground in-data-[variant=warning]:border-warning-foreground/20 in-data-[variant=warning]:bg-warning-foreground/15 in-data-[variant=warning]:text-warning-foreground [&_svg:not([class*='size-'])]:size-3", className),
|
|
12
|
+
...props
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
function KbdGroup2({ density, className, ...props }) {
|
|
16
|
+
return /* @__PURE__ */ jsx("kbd", {
|
|
17
|
+
"data-density": density,
|
|
18
|
+
"data-slot": "kbd-group",
|
|
19
|
+
className: cn2("inline-flex items-center gap-1", className),
|
|
20
|
+
...props
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export { Kbd2, KbdGroup2 };
|
|
@@ -5,12 +5,13 @@ import { type VariantProps } from "class-variance-authority";
|
|
|
5
5
|
type BubbleGroupProps = ComponentProps<"div"> & IDensityProps;
|
|
6
6
|
declare function BubbleGroup({ density, className, ...props }: BubbleGroupProps): ReactElement;
|
|
7
7
|
declare const bubbleVariants: (props?: ({
|
|
8
|
+
maxWidth?: "default" | "full" | null | undefined;
|
|
8
9
|
variant?: "default" | "outline" | "secondary" | "ghost" | "destructive" | "muted" | "tinted" | null | undefined;
|
|
9
10
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
10
11
|
type BubbleProps = ComponentProps<"div"> & VariantProps<typeof bubbleVariants> & IDensityProps & {
|
|
11
12
|
align?: "start" | "end";
|
|
12
13
|
};
|
|
13
|
-
declare function Bubble({ density, variant, align, className, ...props }: BubbleProps): ReactElement;
|
|
14
|
+
declare function Bubble({ density, variant, maxWidth, align, className, ...props }: BubbleProps): ReactElement;
|
|
14
15
|
type BubbleContentState = {
|
|
15
16
|
slot: "bubble-content";
|
|
16
17
|
density?: Density;
|
|
@@ -32,8 +32,11 @@ type FieldLabelProps = ComponentProps<typeof Label> & IDensityProps & {
|
|
|
32
32
|
declare function FieldLabel({ density, className, selectable, onClick, ...props }: FieldLabelProps): ReactElement;
|
|
33
33
|
type FieldTitleProps = ComponentProps<"div"> & IDensityProps;
|
|
34
34
|
declare function FieldTitle({ density, className, ...props }: FieldTitleProps): ReactElement;
|
|
35
|
-
type FieldDescriptionProps = ComponentProps<"p"> & IDensityProps
|
|
36
|
-
|
|
35
|
+
type FieldDescriptionProps = ComponentProps<"p"> & IDensityProps & {
|
|
36
|
+
/** Line wrapping for horizontal/responsive fields: `"auto"` balances lines; `"normal"` uses full-width wrapping. */
|
|
37
|
+
wrap?: "auto" | "normal";
|
|
38
|
+
};
|
|
39
|
+
declare function FieldDescription({ density, wrap, className, ...props }: FieldDescriptionProps): ReactElement;
|
|
37
40
|
type FieldSeparatorProps = ComponentProps<"div"> & IDensityProps & {
|
|
38
41
|
/** Accent tone highlights section boundaries such as an unread divider using the primary color. */
|
|
39
42
|
tone?: "default" | "accent";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CommandPalette2
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import"../../../chunk-
|
|
5
|
-
import"../../../chunk-
|
|
3
|
+
} from "../../../chunk-ew47kns7.js";
|
|
4
|
+
import"../../../chunk-yz1ft8hs.js";
|
|
5
|
+
import"../../../chunk-g0hkpc2x.js";
|
|
6
6
|
import"../../../chunk-2d3npxat.js";
|
|
7
7
|
import"../../../chunk-a8e3x6q7.js";
|
|
8
8
|
import"../../../chunk-vfgp11y4.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ComposerCommandItem2
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import"../../../chunk-
|
|
5
|
-
import"../../../chunk-
|
|
3
|
+
} from "../../../chunk-gaxdgfm9.js";
|
|
4
|
+
import"../../../chunk-t58fms99.js";
|
|
5
|
+
import"../../../chunk-yz1ft8hs.js";
|
|
6
6
|
import"../../../chunk-n63meq6q.js";
|
|
7
7
|
import"../../../chunk-x90xmrba.js";
|
|
8
8
|
import"../../../chunk-jpvw9xqy.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ComposerMenuItem2
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import"../../../chunk-
|
|
3
|
+
} from "../../../chunk-t58fms99.js";
|
|
4
|
+
import"../../../chunk-yz1ft8hs.js";
|
|
5
5
|
import"../../../chunk-n63meq6q.js";
|
|
6
6
|
import"../../../chunk-x90xmrba.js";
|
|
7
7
|
import"../../../chunk-jpvw9xqy.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ComposerModelItem2
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import"../../../chunk-
|
|
5
|
-
import"../../../chunk-
|
|
3
|
+
} from "../../../chunk-scas6etd.js";
|
|
4
|
+
import"../../../chunk-t58fms99.js";
|
|
5
|
+
import"../../../chunk-yz1ft8hs.js";
|
|
6
6
|
import"../../../chunk-n63meq6q.js";
|
|
7
7
|
import"../../../chunk-x90xmrba.js";
|
|
8
8
|
import"../../../chunk-jpvw9xqy.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ComposerPersonItem2
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import"../../../chunk-
|
|
5
|
-
import"../../../chunk-
|
|
3
|
+
} from "../../../chunk-j5gaa3qq.js";
|
|
4
|
+
import"../../../chunk-t58fms99.js";
|
|
5
|
+
import"../../../chunk-yz1ft8hs.js";
|
|
6
6
|
import"../../../chunk-n63meq6q.js";
|
|
7
7
|
import"../../../chunk-x90xmrba.js";
|
|
8
8
|
import"../../../chunk-jpvw9xqy.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
EditMessage2
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-ks3c6erk.js";
|
|
4
4
|
import"../../../chunk-vxvaaptq.js";
|
|
5
|
-
import"../../../chunk-
|
|
5
|
+
import"../../../chunk-2pjgj1pn.js";
|
|
6
6
|
import"../../../chunk-jc3cbwyg.js";
|
|
7
7
|
import"../../../chunk-4m2x9jfb.js";
|
|
8
8
|
import"../../../chunk-vfgp11y4.js";
|