@cognite/aura 0.1.5 → 0.1.7
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/DESIGN.md +1269 -0
- package/README.md +24 -0
- package/dist/colors.css +824 -0
- package/dist/components/index.d.ts +11 -2
- package/dist/components/index.js +284 -249
- package/dist/components/ui/core/accordion/accordion.d.ts +24 -0
- package/dist/components/ui/core/accordion/accordion.js +113 -0
- package/dist/components/ui/core/accordion/accordion.metadata.d.ts +2 -0
- package/dist/components/ui/core/accordion/accordion.metadata.js +9 -0
- package/dist/components/ui/core/alert/alert.d.ts +2 -1
- package/dist/components/ui/core/alert/alert.js +120 -96
- package/dist/components/ui/core/alert/alert.metadata.js +1 -1
- package/dist/components/ui/core/avatar/avatar.js +29 -32
- package/dist/components/ui/core/badge/badge.d.ts +1 -1
- package/dist/components/ui/core/badge/badge.js +44 -52
- package/dist/components/ui/core/banner/banner.d.ts +40 -0
- package/dist/components/ui/core/banner/banner.js +218 -0
- package/dist/components/ui/core/banner/banner.metadata.d.ts +2 -0
- package/dist/components/ui/core/banner/banner.metadata.js +9 -0
- package/dist/components/ui/core/button/button.d.ts +2 -2
- package/dist/components/ui/core/button/button.js +19 -20
- package/dist/components/ui/core/button-group/button-group.js +10 -10
- package/dist/components/ui/core/card/card.js +1 -1
- package/dist/components/ui/core/code-block/code-block.d.ts +14 -3
- package/dist/components/ui/core/code-block/code-block.js +218 -97
- package/dist/components/ui/core/code-block/code-block.metadata.js +1 -1
- package/dist/components/ui/core/collapsible/collapsible.js +30 -24
- package/dist/components/ui/core/command/command.d.ts +2 -2
- package/dist/components/ui/core/command/command.js +30 -30
- package/dist/components/ui/core/dialog/dialog.js +8 -8
- package/dist/components/ui/core/dropdown-menu/dropdown-menu.d.ts +1 -1
- package/dist/components/ui/core/dropdown-menu/dropdown-menu.js +65 -62
- package/dist/components/ui/core/helper-text/helper-text.js +8 -8
- package/dist/components/ui/core/hover-card/hover-card.js +5 -5
- package/dist/components/ui/core/inline-citation/inline-citation.js +19 -16
- package/dist/components/ui/core/input/input.d.ts +1 -5
- package/dist/components/ui/core/input/input.js +24 -30
- package/dist/components/ui/core/input-group/input-group.d.ts +2 -2
- package/dist/components/ui/core/input-group/input-group.js +104 -74
- package/dist/components/ui/core/label/label.d.ts +3 -1
- package/dist/components/ui/core/label/label.js +39 -16
- package/dist/components/ui/core/label/label.metadata.js +2 -2
- package/dist/components/ui/core/message/message-response-default-streamdown-controls.d.ts +11 -0
- package/dist/components/ui/core/message/message-response-default-streamdown-controls.js +13 -0
- package/dist/components/ui/core/message/message.d.ts +1 -1
- package/dist/components/ui/core/message/message.js +62 -44
- package/dist/components/ui/core/popover/popover.d.ts +10 -1
- package/dist/components/ui/core/popover/popover.js +137 -34
- package/dist/components/ui/core/popover/popover.metadata.js +9 -0
- package/dist/components/ui/core/progress/progress.d.ts +10 -0
- package/dist/components/ui/core/progress/progress.js +61 -0
- package/dist/components/ui/core/progress/progress.metadata.d.ts +2 -0
- package/dist/components/ui/core/progress/progress.metadata.js +9 -0
- package/dist/components/ui/core/prompt-input/prompt-input.d.ts +2 -2
- package/dist/components/ui/core/prompt-input/prompt-input.js +100 -100
- package/dist/components/ui/core/scroll-area/scroll-area.d.ts +3 -0
- package/dist/components/ui/core/scroll-area/scroll-area.js +71 -0
- package/dist/components/ui/core/scroll-area/scroll-area.metadata.d.ts +2 -0
- package/dist/components/ui/core/scroll-area/scroll-area.metadata.js +9 -0
- package/dist/components/ui/core/select/select.d.ts +3 -3
- package/dist/components/ui/core/select/select.js +69 -73
- package/dist/components/ui/core/skeleton/skeleton.js +6 -6
- package/dist/components/ui/core/sources/sources.js +8 -1
- package/dist/components/ui/core/textarea/textarea.d.ts +1 -8
- package/dist/components/ui/core/textarea/textarea.js +21 -45
- package/dist/components/ui/core/tool/tool.js +58 -50
- package/dist/components/ui/core/tooltip/tooltip.js +10 -10
- package/dist/index.d.ts +1 -1
- package/dist/index.js +281 -249
- package/dist/lib/utils.d.ts +6 -6
- package/dist/lib/utils.js +26 -26
- package/dist/styles.css +1 -1
- package/dist/styles.source.css +3 -812
- package/package.json +28 -9
package/dist/index.js
CHANGED
|
@@ -1,251 +1,283 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
1
|
+
import { Accordion as r, AccordionContent as a, AccordionItem as n, AccordionTrigger as p } from "./components/ui/core/accordion/accordion.js";
|
|
2
|
+
import { AccordionMetadata as d } from "./components/ui/core/accordion/accordion.metadata.js";
|
|
3
|
+
import { Card as u, CardActions as i, CardContent as C, CardDescription as x, CardFooter as I, CardHeader as f, CardHeaderRight as M, CardIcon as c, CardTitle as g } from "./components/ui/core/card/card.js";
|
|
4
|
+
import { CardMetadata as s } from "./components/ui/core/card/card.metadata.js";
|
|
5
|
+
import { Button as T, buttonVariants as D } from "./components/ui/core/button/button.js";
|
|
6
|
+
import { ButtonMetadata as A } from "./components/ui/core/button/button.metadata.js";
|
|
7
|
+
import { ButtonGroup as b, ButtonGroupSeparator as w, ButtonGroupText as G, buttonGroupVariants as H } from "./components/ui/core/button-group/button-group.js";
|
|
8
|
+
import { ButtonGroupMetadata as k } from "./components/ui/core/button-group/button-group.metadata.js";
|
|
9
|
+
import { Avatar as y, AvatarFallback as h, AvatarIcon as V, AvatarImage as F } from "./components/ui/core/avatar/avatar.js";
|
|
10
|
+
import { AvatarMetadata as O } from "./components/ui/core/avatar/avatar.metadata.js";
|
|
11
|
+
import { Label as U } from "./components/ui/core/label/label.js";
|
|
12
|
+
import { LabelMetadata as q } from "./components/ui/core/label/label.metadata.js";
|
|
13
|
+
import { HelperText as J } from "./components/ui/core/helper-text/helper-text.js";
|
|
14
|
+
import { HelperTextMetadata as N } from "./components/ui/core/helper-text/helper-text.metadata.js";
|
|
15
|
+
import { Loader as X } from "./components/ui/core/loader/loader.js";
|
|
16
|
+
import { LoaderMetadata as Z } from "./components/ui/core/loader/loader.metadata.js";
|
|
17
|
+
import { Shimmer as $ } from "./components/ui/core/shimmer/shimmer.js";
|
|
18
|
+
import { ShimmerMetadata as to } from "./components/ui/core/shimmer/shimmer.metadata.js";
|
|
19
|
+
import { CodeBlock as ro, CodeBlockCollapseButton as ao, CodeBlockCopyButton as no, CodeBlockDownloadButton as po } from "./components/ui/core/code-block/code-block.js";
|
|
20
|
+
import { CodeBlockMetadata as lo } from "./components/ui/core/code-block/code-block.metadata.js";
|
|
21
|
+
import { Separator as io } from "./components/ui/core/separator/separator.js";
|
|
22
|
+
import { SeparatorMetadata as xo } from "./components/ui/core/separator/separator.metadata.js";
|
|
23
|
+
import { Tooltip as fo, TooltipContent as Mo, TooltipProvider as co, TooltipTrigger as go } from "./components/ui/core/tooltip/tooltip.js";
|
|
24
|
+
import { TooltipMetadata as so } from "./components/ui/core/tooltip/tooltip.metadata.js";
|
|
25
|
+
import { Tool as To, ToolContent as Do, ToolHeader as Bo, ToolInput as Ao, ToolOutput as vo } from "./components/ui/core/tool/tool.js";
|
|
26
|
+
import { ToolMetadata as wo } from "./components/ui/core/tool/tool.metadata.js";
|
|
27
|
+
import { DropdownMenu as Ho, DropdownMenuCheckboxItem as Lo, DropdownMenuContent as ko, DropdownMenuGroup as Ro, DropdownMenuHeader as yo, DropdownMenuItem as ho, DropdownMenuLabel as Vo, DropdownMenuPortal as Fo, DropdownMenuRadioGroup as Eo, DropdownMenuRadioItem as Oo, DropdownMenuSectionLabel as Qo, DropdownMenuSeparator as Uo, DropdownMenuShortcut as jo, DropdownMenuSub as qo, DropdownMenuSubContent as zo, DropdownMenuSubTrigger as Jo, DropdownMenuTrigger as Ko } from "./components/ui/core/dropdown-menu/dropdown-menu.js";
|
|
28
|
+
import { DropdownMenuMetadata as Wo } from "./components/ui/core/dropdown-menu/dropdown-menu.metadata.js";
|
|
29
|
+
import { Badge as Yo, badgeVariants as Zo } from "./components/ui/core/badge/badge.js";
|
|
30
|
+
import { BadgeMetadata as $o } from "./components/ui/core/badge/badge.metadata.js";
|
|
31
|
+
import { Banner as tt, BannerAction as et, BannerActions as rt, BannerClose as at, BannerIcon as nt, BannerStatus as pt, BannerTitle as mt } from "./components/ui/core/banner/banner.js";
|
|
32
|
+
import { BannerMetadata as lt } from "./components/ui/core/banner/banner.metadata.js";
|
|
33
|
+
import { Collapsible as it, CollapsibleContent as Ct, CollapsibleTrigger as xt } from "./components/ui/core/collapsible/collapsible.js";
|
|
34
|
+
import { CollapsibleMetadata as ft } from "./components/ui/core/collapsible/collapsible.metadata.js";
|
|
35
|
+
import { HoverCard as ct, HoverCardContent as gt, HoverCardTrigger as Pt } from "./components/ui/core/hover-card/hover-card.js";
|
|
36
|
+
import { HoverCardMetadata as St } from "./components/ui/core/hover-card/hover-card.metadata.js";
|
|
37
|
+
import { Select as Dt, SelectContent as Bt, SelectGroup as At, SelectItem as vt, SelectLabel as bt, SelectScrollDownButton as wt, SelectScrollUpButton as Gt, SelectSeparator as Ht, SelectTrigger as Lt, SelectValue as kt } from "./components/ui/core/select/select.js";
|
|
38
|
+
import { SelectMetadata as yt } from "./components/ui/core/select/select.metadata.js";
|
|
39
|
+
import { Skeleton as Vt } from "./components/ui/core/skeleton/skeleton.js";
|
|
40
|
+
import { SkeletonMetadata as Et } from "./components/ui/core/skeleton/skeleton.metadata.js";
|
|
41
|
+
import { Input as Qt } from "./components/ui/core/input/input.js";
|
|
42
|
+
import { InputMetadata as jt } from "./components/ui/core/input/input.metadata.js";
|
|
43
|
+
import "./components/ui/core/progress/progress.js";
|
|
44
|
+
import { Textarea as zt } from "./components/ui/core/textarea/textarea.js";
|
|
45
|
+
import { TextareaMetadata as Kt } from "./components/ui/core/textarea/textarea.metadata.js";
|
|
46
|
+
import { InputGroup as Wt, InputGroupAddon as Xt, InputGroupButton as Yt, InputGroupInput as Zt, InputGroupText as _t, InputGroupTextarea as $t } from "./components/ui/core/input-group/input-group.js";
|
|
47
|
+
import { InputGroupMetadata as te } from "./components/ui/core/input-group/input-group.metadata.js";
|
|
48
|
+
import { Alert as re, AlertActions as ae, AlertButton as ne, AlertClose as pe, AlertDescription as me, AlertTitle as de } from "./components/ui/core/alert/alert.js";
|
|
49
|
+
import { AlertMetadata as ue } from "./components/ui/core/alert/alert.metadata.js";
|
|
50
|
+
import { Message as Ce, MessageAction as xe, MessageActions as Ie, MessageContent as fe, MessageResponse as Me } from "./components/ui/core/message/message.js";
|
|
51
|
+
import { PromptInputMetadata as ge } from "./components/ui/core/prompt-input/prompt-input.metadata.js";
|
|
52
|
+
import { PromptInput as se, PromptInputActionMenu as Se, PromptInputActionMenuContent as Te, PromptInputActionMenuItem as De, PromptInputActionMenuTrigger as Be, PromptInputBody as Ae, PromptInputButton as ve, PromptInputCommand as be, PromptInputCommandEmpty as we, PromptInputCommandGroup as Ge, PromptInputCommandInput as He, PromptInputCommandItem as Le, PromptInputCommandList as ke, PromptInputCommandSeparator as Re, PromptInputFooter as ye, PromptInputHeader as he, PromptInputHoverCard as Ve, PromptInputHoverCardContent as Fe, PromptInputHoverCardTrigger as Ee, PromptInputModelSelect as Oe, PromptInputModelSelectContent as Qe, PromptInputModelSelectItem as Ue, PromptInputModelSelectTrigger as je, PromptInputModelSelectValue as qe, PromptInputProvider as ze, PromptInputSubmit as Je, PromptInputTab as Ke, PromptInputTabBody as Ne, PromptInputTabItem as We, PromptInputTabLabel as Xe, PromptInputTabsList as Ye, PromptInputTextarea as Ze, PromptInputTools as _e, usePromptInputController as $e } from "./components/ui/core/prompt-input/prompt-input.js";
|
|
53
|
+
import { Dialog as tr, DialogClose as er, DialogContent as rr, DialogDescription as ar, DialogFooter as nr, DialogHeader as pr, DialogOverlay as mr, DialogPortal as dr, DialogTitle as lr, DialogTrigger as ur } from "./components/ui/core/dialog/dialog.js";
|
|
54
|
+
import { DialogMetadata as Cr } from "./components/ui/core/dialog/dialog.metadata.js";
|
|
55
|
+
import { Command as Ir, CommandDialog as fr, CommandEmpty as Mr, CommandGroup as cr, CommandInput as gr, CommandItem as Pr, CommandList as sr, CommandSeparator as Sr, CommandShortcut as Tr } from "./components/ui/core/command/command.js";
|
|
56
|
+
import { CommandMetadata as Br } from "./components/ui/core/command/command.metadata.js";
|
|
57
|
+
import { InlineCitationMetadata as vr } from "./components/ui/core/inline-citation/inline-citation.metadata.js";
|
|
58
|
+
import { InlineCitation as wr, InlineCitationCard as Gr, InlineCitationCardBody as Hr, InlineCitationCardTrigger as Lr, InlineCitationGroup as kr, InlineCitationLink as Rr, InlineCitationQuote as yr, InlineCitationSource as hr, InlineCitationText as Vr } from "./components/ui/core/inline-citation/inline-citation.js";
|
|
59
|
+
import { Reasoning as Er, ReasoningContent as Or, ReasoningHeader as Qr, ReasoningItem as Ur } from "./components/ui/core/reasoning/reasoning.js";
|
|
60
|
+
import { ReasoningMetadata as qr } from "./components/ui/core/reasoning/reasoning.metadata.js";
|
|
61
|
+
import { ScrollArea as Jr, ScrollBar as Kr } from "./components/ui/core/scroll-area/scroll-area.js";
|
|
62
|
+
import { ScrollAreaMetadata as Wr } from "./components/ui/core/scroll-area/scroll-area.metadata.js";
|
|
63
|
+
import { Popover as Yr, PopoverClose as Zr, PopoverContent as _r, PopoverDescription as $r, PopoverHeader as oa, PopoverHeaderContent as ta, PopoverSlot as ea, PopoverTitle as ra, PopoverTrigger as aa } from "./components/ui/core/popover/popover.js";
|
|
64
|
+
import { PopoverMetadata as pa } from "./components/ui/core/popover/popover.metadata.js";
|
|
65
|
+
import { Source as da, Sources as la, SourcesTitle as ua } from "./components/ui/core/sources/sources.js";
|
|
66
|
+
import { PortalContainerContext as Ca } from "./lib/portal-container-context.js";
|
|
59
67
|
export {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
se as
|
|
197
|
-
Se as
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
Be as
|
|
201
|
-
Ae as
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
68
|
+
r as Accordion,
|
|
69
|
+
a as AccordionContent,
|
|
70
|
+
n as AccordionItem,
|
|
71
|
+
d as AccordionMetadata,
|
|
72
|
+
p as AccordionTrigger,
|
|
73
|
+
re as Alert,
|
|
74
|
+
ae as AlertActions,
|
|
75
|
+
ne as AlertButton,
|
|
76
|
+
pe as AlertClose,
|
|
77
|
+
me as AlertDescription,
|
|
78
|
+
ue as AlertMetadata,
|
|
79
|
+
de as AlertTitle,
|
|
80
|
+
y as Avatar,
|
|
81
|
+
h as AvatarFallback,
|
|
82
|
+
V as AvatarIcon,
|
|
83
|
+
F as AvatarImage,
|
|
84
|
+
O as AvatarMetadata,
|
|
85
|
+
Yo as Badge,
|
|
86
|
+
$o as BadgeMetadata,
|
|
87
|
+
tt as Banner,
|
|
88
|
+
et as BannerAction,
|
|
89
|
+
rt as BannerActions,
|
|
90
|
+
at as BannerClose,
|
|
91
|
+
nt as BannerIcon,
|
|
92
|
+
lt as BannerMetadata,
|
|
93
|
+
pt as BannerStatus,
|
|
94
|
+
mt as BannerTitle,
|
|
95
|
+
T as Button,
|
|
96
|
+
b as ButtonGroup,
|
|
97
|
+
k as ButtonGroupMetadata,
|
|
98
|
+
w as ButtonGroupSeparator,
|
|
99
|
+
G as ButtonGroupText,
|
|
100
|
+
A as ButtonMetadata,
|
|
101
|
+
u as Card,
|
|
102
|
+
i as CardActions,
|
|
103
|
+
C as CardContent,
|
|
104
|
+
x as CardDescription,
|
|
105
|
+
I as CardFooter,
|
|
106
|
+
f as CardHeader,
|
|
107
|
+
M as CardHeaderRight,
|
|
108
|
+
c as CardIcon,
|
|
109
|
+
s as CardMetadata,
|
|
110
|
+
g as CardTitle,
|
|
111
|
+
ro as CodeBlock,
|
|
112
|
+
ao as CodeBlockCollapseButton,
|
|
113
|
+
no as CodeBlockCopyButton,
|
|
114
|
+
po as CodeBlockDownloadButton,
|
|
115
|
+
lo as CodeBlockMetadata,
|
|
116
|
+
it as Collapsible,
|
|
117
|
+
Ct as CollapsibleContent,
|
|
118
|
+
ft as CollapsibleMetadata,
|
|
119
|
+
xt as CollapsibleTrigger,
|
|
120
|
+
Ir as Command,
|
|
121
|
+
fr as CommandDialog,
|
|
122
|
+
Mr as CommandEmpty,
|
|
123
|
+
cr as CommandGroup,
|
|
124
|
+
gr as CommandInput,
|
|
125
|
+
Pr as CommandItem,
|
|
126
|
+
sr as CommandList,
|
|
127
|
+
Br as CommandMetadata,
|
|
128
|
+
Sr as CommandSeparator,
|
|
129
|
+
Tr as CommandShortcut,
|
|
130
|
+
tr as Dialog,
|
|
131
|
+
er as DialogClose,
|
|
132
|
+
rr as DialogContent,
|
|
133
|
+
ar as DialogDescription,
|
|
134
|
+
nr as DialogFooter,
|
|
135
|
+
pr as DialogHeader,
|
|
136
|
+
Cr as DialogMetadata,
|
|
137
|
+
mr as DialogOverlay,
|
|
138
|
+
dr as DialogPortal,
|
|
139
|
+
lr as DialogTitle,
|
|
140
|
+
ur as DialogTrigger,
|
|
141
|
+
Ho as DropdownMenu,
|
|
142
|
+
Lo as DropdownMenuCheckboxItem,
|
|
143
|
+
ko as DropdownMenuContent,
|
|
144
|
+
Ro as DropdownMenuGroup,
|
|
145
|
+
yo as DropdownMenuHeader,
|
|
146
|
+
ho as DropdownMenuItem,
|
|
147
|
+
Vo as DropdownMenuLabel,
|
|
148
|
+
Wo as DropdownMenuMetadata,
|
|
149
|
+
Fo as DropdownMenuPortal,
|
|
150
|
+
Eo as DropdownMenuRadioGroup,
|
|
151
|
+
Oo as DropdownMenuRadioItem,
|
|
152
|
+
Qo as DropdownMenuSectionLabel,
|
|
153
|
+
Uo as DropdownMenuSeparator,
|
|
154
|
+
jo as DropdownMenuShortcut,
|
|
155
|
+
qo as DropdownMenuSub,
|
|
156
|
+
zo as DropdownMenuSubContent,
|
|
157
|
+
Jo as DropdownMenuSubTrigger,
|
|
158
|
+
Ko as DropdownMenuTrigger,
|
|
159
|
+
J as HelperText,
|
|
160
|
+
N as HelperTextMetadata,
|
|
161
|
+
ct as HoverCard,
|
|
162
|
+
gt as HoverCardContent,
|
|
163
|
+
St as HoverCardMetadata,
|
|
164
|
+
Pt as HoverCardTrigger,
|
|
165
|
+
wr as InlineCitation,
|
|
166
|
+
Gr as InlineCitationCard,
|
|
167
|
+
Hr as InlineCitationCardBody,
|
|
168
|
+
Lr as InlineCitationCardTrigger,
|
|
169
|
+
kr as InlineCitationGroup,
|
|
170
|
+
Rr as InlineCitationLink,
|
|
171
|
+
vr as InlineCitationMetadata,
|
|
172
|
+
yr as InlineCitationQuote,
|
|
173
|
+
hr as InlineCitationSource,
|
|
174
|
+
Vr as InlineCitationText,
|
|
175
|
+
Qt as Input,
|
|
176
|
+
Wt as InputGroup,
|
|
177
|
+
Xt as InputGroupAddon,
|
|
178
|
+
Yt as InputGroupButton,
|
|
179
|
+
Zt as InputGroupInput,
|
|
180
|
+
te as InputGroupMetadata,
|
|
181
|
+
_t as InputGroupText,
|
|
182
|
+
$t as InputGroupTextarea,
|
|
183
|
+
jt as InputMetadata,
|
|
184
|
+
U as Label,
|
|
185
|
+
q as LabelMetadata,
|
|
186
|
+
X as Loader,
|
|
187
|
+
Z as LoaderMetadata,
|
|
188
|
+
Ce as Message,
|
|
189
|
+
xe as MessageAction,
|
|
190
|
+
Ie as MessageActions,
|
|
191
|
+
fe as MessageContent,
|
|
192
|
+
Me as MessageResponse,
|
|
193
|
+
Yr as Popover,
|
|
194
|
+
Zr as PopoverClose,
|
|
195
|
+
_r as PopoverContent,
|
|
196
|
+
$r as PopoverDescription,
|
|
197
|
+
oa as PopoverHeader,
|
|
198
|
+
ta as PopoverHeaderContent,
|
|
199
|
+
pa as PopoverMetadata,
|
|
200
|
+
ea as PopoverSlot,
|
|
201
|
+
ra as PopoverTitle,
|
|
202
|
+
aa as PopoverTrigger,
|
|
203
|
+
Ca as PortalContainerContext,
|
|
204
|
+
se as PromptInput,
|
|
205
|
+
Se as PromptInputActionMenu,
|
|
206
|
+
Te as PromptInputActionMenuContent,
|
|
207
|
+
De as PromptInputActionMenuItem,
|
|
208
|
+
Be as PromptInputActionMenuTrigger,
|
|
209
|
+
Ae as PromptInputBody,
|
|
210
|
+
ve as PromptInputButton,
|
|
211
|
+
be as PromptInputCommand,
|
|
212
|
+
we as PromptInputCommandEmpty,
|
|
213
|
+
Ge as PromptInputCommandGroup,
|
|
214
|
+
He as PromptInputCommandInput,
|
|
215
|
+
Le as PromptInputCommandItem,
|
|
216
|
+
ke as PromptInputCommandList,
|
|
217
|
+
Re as PromptInputCommandSeparator,
|
|
218
|
+
ye as PromptInputFooter,
|
|
219
|
+
he as PromptInputHeader,
|
|
220
|
+
Ve as PromptInputHoverCard,
|
|
221
|
+
Fe as PromptInputHoverCardContent,
|
|
222
|
+
Ee as PromptInputHoverCardTrigger,
|
|
223
|
+
ge as PromptInputMetadata,
|
|
224
|
+
Oe as PromptInputModelSelect,
|
|
225
|
+
Qe as PromptInputModelSelectContent,
|
|
226
|
+
Ue as PromptInputModelSelectItem,
|
|
227
|
+
je as PromptInputModelSelectTrigger,
|
|
228
|
+
qe as PromptInputModelSelectValue,
|
|
229
|
+
ze as PromptInputProvider,
|
|
230
|
+
Je as PromptInputSubmit,
|
|
231
|
+
Ke as PromptInputTab,
|
|
232
|
+
Ne as PromptInputTabBody,
|
|
233
|
+
We as PromptInputTabItem,
|
|
234
|
+
Xe as PromptInputTabLabel,
|
|
235
|
+
Ye as PromptInputTabsList,
|
|
236
|
+
Ze as PromptInputTextarea,
|
|
237
|
+
_e as PromptInputTools,
|
|
238
|
+
Er as Reasoning,
|
|
239
|
+
Or as ReasoningContent,
|
|
240
|
+
Qr as ReasoningHeader,
|
|
241
|
+
Ur as ReasoningItem,
|
|
242
|
+
qr as ReasoningMetadata,
|
|
243
|
+
Jr as ScrollArea,
|
|
244
|
+
Wr as ScrollAreaMetadata,
|
|
245
|
+
Kr as ScrollBar,
|
|
246
|
+
Dt as Select,
|
|
247
|
+
Bt as SelectContent,
|
|
248
|
+
At as SelectGroup,
|
|
249
|
+
vt as SelectItem,
|
|
250
|
+
bt as SelectLabel,
|
|
251
|
+
yt as SelectMetadata,
|
|
252
|
+
wt as SelectScrollDownButton,
|
|
253
|
+
Gt as SelectScrollUpButton,
|
|
254
|
+
Ht as SelectSeparator,
|
|
255
|
+
Lt as SelectTrigger,
|
|
256
|
+
kt as SelectValue,
|
|
257
|
+
io as Separator,
|
|
258
|
+
xo as SeparatorMetadata,
|
|
259
|
+
$ as Shimmer,
|
|
260
|
+
to as ShimmerMetadata,
|
|
261
|
+
Vt as Skeleton,
|
|
262
|
+
Et as SkeletonMetadata,
|
|
263
|
+
da as Source,
|
|
264
|
+
la as Sources,
|
|
265
|
+
ua as SourcesTitle,
|
|
266
|
+
zt as Textarea,
|
|
267
|
+
Kt as TextareaMetadata,
|
|
268
|
+
To as Tool,
|
|
269
|
+
Do as ToolContent,
|
|
270
|
+
Bo as ToolHeader,
|
|
271
|
+
Ao as ToolInput,
|
|
272
|
+
wo as ToolMetadata,
|
|
273
|
+
vo as ToolOutput,
|
|
274
|
+
fo as Tooltip,
|
|
275
|
+
Mo as TooltipContent,
|
|
276
|
+
so as TooltipMetadata,
|
|
277
|
+
co as TooltipProvider,
|
|
278
|
+
go as TooltipTrigger,
|
|
279
|
+
Zo as badgeVariants,
|
|
280
|
+
H as buttonGroupVariants,
|
|
281
|
+
D as buttonVariants,
|
|
282
|
+
$e as usePromptInputController
|
|
251
283
|
};
|
package/dist/lib/utils.d.ts
CHANGED
|
@@ -19,13 +19,13 @@ export declare const focusRingDestructive: "focus-visible:shadow-focus-ring-dest
|
|
|
19
19
|
* Reusable form element state Tailwind classes.
|
|
20
20
|
* Import these to maintain consistent styling across all form components.
|
|
21
21
|
*/
|
|
22
|
-
export declare const formElementBase: "
|
|
23
|
-
export declare const hoverState: "hover:bg-accent hover:
|
|
24
|
-
export declare const filledState: "
|
|
22
|
+
export declare const formElementBase: "border border-transparent rounded-lg bg-muted-background py-2 pl-2 pr-1 text-sm leading-5 tracking-tight text-muted-foreground placeholder:text-muted-foreground";
|
|
23
|
+
export declare const hoverState: "hover:bg-accent-background hover:border hover:border-border-emphasized";
|
|
24
|
+
export declare const filledState: "[&:not(:placeholder-shown):not(:focus)]:bg-muted-background [&:not(:placeholder-shown)]:text-foreground";
|
|
25
25
|
export declare const focusState: "focus-visible:shadow-focus-ring focus-visible:bg-background focus-visible:border-transparent focus-visible:text-foreground outline-none";
|
|
26
|
-
export declare const invalidState: "aria-invalid:border-destructive-foreground aria-invalid:focus-visible:shadow-focus-ring-
|
|
27
|
-
export declare const disabledState: "disabled:bg-disabled disabled:border-transparent disabled:text-disabled-foreground disabled:pointer-events-none disabled:cursor-not-allowed";
|
|
28
|
-
export declare const readOnlyState: "read-only:border-transparent read-only:text-foreground read-only:cursor-default read-only:hover:border-transparent read-only:focus-visible:shadow-none read-only:focus-visible:border-transparent";
|
|
26
|
+
export declare const invalidState: "aria-invalid:border-destructive-foreground aria-invalid:shadow-focus-ring-destructive aria-invalid:border-transparent aria-invalid:text-foreground aria-invalid:focus-visible:shadow-focus-ring aria-invalid:focus-visible:bg-background aria-invalid:focus-visible:border-transparent aria-invalid:focus-visible:text-foreground outline-none";
|
|
27
|
+
export declare const disabledState: "disabled:bg-disabled-background disabled:border-transparent disabled:text-disabled-foreground disabled:placeholder:text-disabled-foreground disabled:pointer-events-none disabled:cursor-not-allowed";
|
|
28
|
+
export declare const readOnlyState: "read-only:border-transparent read-only:text-muted-foreground read-only:cursor-default read-only:hover:border-transparent read-only:focus-visible:shadow-none read-only:focus-visible:border-transparent read-only:focus-visible:bg-muted-background [&:read-only:not(:placeholder-shown)]:text-muted-foreground";
|
|
29
29
|
export declare function slugToPascalCase(slug: string): string;
|
|
30
30
|
/**
|
|
31
31
|
* Safely extracts hostname from a URL string.
|