@cognite/aura 0.1.0 → 0.1.2

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.
Files changed (38) hide show
  1. package/dist/components/index.d.ts +7 -1
  2. package/dist/components/index.js +251 -0
  3. package/dist/components/ui/core/button/button.d.ts +1 -1
  4. package/dist/components/ui/core/card/card.d.ts +17 -0
  5. package/dist/components/ui/core/card/card.js +143 -0
  6. package/dist/components/ui/core/card/card.metadata.d.ts +8 -0
  7. package/dist/components/ui/core/card/card.metadata.js +9 -0
  8. package/dist/components/ui/core/code-block/code-block.d.ts +1 -1
  9. package/dist/components/ui/core/combobox/combobox.d.ts +15 -0
  10. package/dist/components/ui/{lab/topbar/topbar.metadata.d.ts → core/combobox/combobox.metadata.d.ts} +1 -1
  11. package/dist/components/ui/core/command/command.d.ts +2 -2
  12. package/dist/components/ui/core/dialog/dialog.js +56 -55
  13. package/dist/components/ui/core/dropdown-menu/dropdown-menu.js +40 -38
  14. package/dist/components/ui/core/helper-text/helper-text.js +1 -1
  15. package/dist/components/ui/core/hover-card/hover-card.js +48 -44
  16. package/dist/components/ui/core/inline-citation/inline-citation.d.ts +2 -2
  17. package/dist/components/ui/core/inline-citation/inline-citation.js +3 -3
  18. package/dist/components/ui/core/input-group/input-group.d.ts +1 -1
  19. package/dist/components/ui/core/message/message.d.ts +1 -1
  20. package/dist/components/ui/core/message/message.js +187 -120
  21. package/dist/components/ui/core/popover/popover.js +55 -0
  22. package/dist/components/ui/core/prompt-input/prompt-input.d.ts +1 -1
  23. package/dist/components/ui/core/prompt-input/prompt-input.js +18 -18
  24. package/dist/components/ui/core/reasoning/reasoning.js +4 -1
  25. package/dist/components/ui/core/select/select.js +37 -35
  26. package/dist/components/ui/core/sources/sources.js +68 -0
  27. package/dist/components/ui/core/tool/tool.js +1 -1
  28. package/dist/components/ui/core/tooltip/tooltip.js +42 -38
  29. package/dist/index.js +249 -227
  30. package/dist/lib/portal-container-context.d.ts +2 -0
  31. package/dist/lib/portal-container-context.js +12 -0
  32. package/dist/lib/utils.js +44 -30
  33. package/dist/styles.css +1 -0
  34. package/package.json +17 -6
  35. package/dist/components/ui/lab/breadcrumb/breadcrumb.d.ts +0 -134
  36. package/dist/components/ui/lab/breadcrumb/breadcrumb.metadata.d.ts +0 -2
  37. package/dist/components/ui/lab/topbar/topbar.d.ts +0 -10
  38. package/dist/lib/component-status-config.d.ts +0 -12
@@ -1,3 +1,5 @@
1
+ export { Card, CardHeader, CardIcon, CardHeaderRight, CardFooter, CardTitle, CardActions, CardDescription, CardContent, } from './ui/core/card/card';
2
+ export { CardMetadata } from './ui/core/card/card.metadata';
1
3
  export { Button, buttonVariants } from './ui/core/button/button';
2
4
  export { ButtonMetadata } from './ui/core/button/button.metadata';
3
5
  export { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants, } from './ui/core/button-group/button-group';
@@ -48,6 +50,10 @@ export { DialogMetadata } from './ui/core/dialog/dialog.metadata';
48
50
  export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, } from './ui/core/command/command';
49
51
  export { CommandMetadata } from './ui/core/command/command.metadata';
50
52
  export { InlineCitationMetadata } from './ui/core/inline-citation/inline-citation.metadata';
51
- export { InlineCitation, InlineCitationGroup, InlineCitationText, InlineCitationCard, InlineCitationCardTrigger, InlineCitationCardBody, InlineCitationSource, InlineCitationQuote, InlineCitationLink, } from './ui/core/inline-citation/inline-citation';
53
+ export { InlineCitation, InlineCitationGroup, InlineCitationText, InlineCitationCard, InlineCitationCardTrigger, InlineCitationCardBody, InlineCitationSource, InlineCitationQuote, InlineCitationLink, type InlineCitationLinkProps, } from './ui/core/inline-citation/inline-citation';
52
54
  export { Reasoning, ReasoningContent, ReasoningHeader, ReasoningItem, } from './ui/core/reasoning/reasoning';
53
55
  export { ReasoningMetadata } from './ui/core/reasoning/reasoning.metadata';
56
+ export { Popover, PopoverContent, PopoverTrigger, } from './ui/core/popover/popover';
57
+ export { Sources, SourcesTitle, Source } from './ui/core/sources/sources';
58
+ export { PortalContainerContext } from '../lib/portal-container-context';
59
+ export type { ComponentMeta, ComponentStatusType } from '../lib/types';
@@ -0,0 +1,251 @@
1
+ import { Card as e, CardActions as r, CardContent as a, CardDescription as n, CardFooter as p, CardHeader as m, CardHeaderRight as u, CardIcon as d, CardTitle as l } from "./ui/core/card/card.js";
2
+ import { CardMetadata as C } from "./ui/core/card/card.metadata.js";
3
+ import { Button as x, buttonVariants as M } from "./ui/core/button/button.js";
4
+ import { ButtonMetadata as g } from "./ui/core/button/button.metadata.js";
5
+ import { ButtonGroup as P, ButtonGroupSeparator as T, ButtonGroupText as s, buttonGroupVariants as S } from "./ui/core/button-group/button-group.js";
6
+ import { ButtonGroupMetadata as b } from "./ui/core/button-group/button-group.metadata.js";
7
+ import { Avatar as A, AvatarFallback as w, AvatarIcon as v, AvatarImage as G } from "./ui/core/avatar/avatar.js";
8
+ import { AvatarMetadata as L } from "./ui/core/avatar/avatar.metadata.js";
9
+ import { Label as R } from "./ui/core/label/label.js";
10
+ import { LabelMetadata as h } from "./ui/core/label/label.metadata.js";
11
+ import { HelperText as F } from "./ui/core/helper-text/helper-text.js";
12
+ import { HelperTextMetadata as O } from "./ui/core/helper-text/helper-text.metadata.js";
13
+ import { Loader as U } from "./ui/core/loader/loader.js";
14
+ import { LoaderMetadata as q } from "./ui/core/loader/loader.metadata.js";
15
+ import { Shimmer as J } from "./ui/core/shimmer/shimmer.js";
16
+ import { ShimmerMetadata as N } from "./ui/core/shimmer/shimmer.metadata.js";
17
+ import { CodeBlock as X, CodeBlockCollapseButton as Y, CodeBlockCopyButton as Z } from "./ui/core/code-block/code-block.js";
18
+ import { CodeBlockMetadata as $ } from "./ui/core/code-block/code-block.metadata.js";
19
+ import { Separator as to } from "./ui/core/separator/separator.js";
20
+ import { SeparatorMetadata as ro } from "./ui/core/separator/separator.metadata.js";
21
+ import { Tooltip as no, TooltipContent as po, TooltipProvider as mo, TooltipTrigger as uo } from "./ui/core/tooltip/tooltip.js";
22
+ import { TooltipMetadata as io } from "./ui/core/tooltip/tooltip.metadata.js";
23
+ import { Tool as Io, ToolContent as xo, ToolHeader as Mo, ToolInput as fo, ToolOutput as go } from "./ui/core/tool/tool.js";
24
+ import { ToolMetadata as Po } from "./ui/core/tool/tool.metadata.js";
25
+ import { DropdownMenu as so, DropdownMenuCheckboxItem as So, DropdownMenuContent as Do, DropdownMenuGroup as bo, DropdownMenuHeader as Bo, DropdownMenuItem as Ao, DropdownMenuLabel as wo, DropdownMenuPortal as vo, DropdownMenuRadioGroup as Go, DropdownMenuRadioItem as Ho, DropdownMenuSectionLabel as Lo, DropdownMenuSeparator as ko, DropdownMenuShortcut as Ro, DropdownMenuSub as yo, DropdownMenuSubContent as ho, DropdownMenuSubTrigger as Vo, DropdownMenuTrigger as Fo } from "./ui/core/dropdown-menu/dropdown-menu.js";
26
+ import { DropdownMenuMetadata as Oo } from "./ui/core/dropdown-menu/dropdown-menu.metadata.js";
27
+ import { Badge as Uo, badgeVariants as jo } from "./ui/core/badge/badge.js";
28
+ import { BadgeMetadata as zo } from "./ui/core/badge/badge.metadata.js";
29
+ import { Collapsible as Ko, CollapsibleContent as No, CollapsibleTrigger as Wo } from "./ui/core/collapsible/collapsible.js";
30
+ import { CollapsibleMetadata as Yo } from "./ui/core/collapsible/collapsible.metadata.js";
31
+ import { HoverCard as _o, HoverCardContent as $o, HoverCardTrigger as ot } from "./ui/core/hover-card/hover-card.js";
32
+ import { HoverCardMetadata as et } from "./ui/core/hover-card/hover-card.metadata.js";
33
+ import { Select as at, SelectContent as nt, SelectGroup as pt, SelectItem as mt, SelectLabel as ut, SelectScrollDownButton as dt, SelectScrollUpButton as lt, SelectSeparator as it, SelectTrigger as Ct, SelectValue as It } from "./ui/core/select/select.js";
34
+ import { SelectMetadata as Mt } from "./ui/core/select/select.metadata.js";
35
+ import { Skeleton as gt } from "./ui/core/skeleton/skeleton.js";
36
+ import { SkeletonMetadata as Pt } from "./ui/core/skeleton/skeleton.metadata.js";
37
+ import { Input as st } from "./ui/core/input/input.js";
38
+ import { InputMetadata as Dt } from "./ui/core/input/input.metadata.js";
39
+ import { Textarea as Bt } from "./ui/core/textarea/textarea.js";
40
+ import { TextareaMetadata as wt } from "./ui/core/textarea/textarea.metadata.js";
41
+ import { InputGroup as Gt, InputGroupAddon as Ht, InputGroupButton as Lt, InputGroupInput as kt, InputGroupText as Rt, InputGroupTextarea as yt } from "./ui/core/input-group/input-group.js";
42
+ import { InputGroupMetadata as Vt } from "./ui/core/input-group/input-group.metadata.js";
43
+ import { Alert as Et, AlertActions as Ot, AlertButton as Qt, AlertClose as Ut, AlertDescription as jt, AlertTitle as qt } from "./ui/core/alert/alert.js";
44
+ import { AlertMetadata as Jt } from "./ui/core/alert/alert.metadata.js";
45
+ import { Message as Nt, MessageAction as Wt, MessageActions as Xt, MessageContent as Yt, MessageResponse as Zt } from "./ui/core/message/message.js";
46
+ import { PromptInputMetadata as $t } from "./ui/core/prompt-input/prompt-input.metadata.js";
47
+ import { PromptInput as te, PromptInputActionMenu as ee, PromptInputActionMenuContent as re, PromptInputActionMenuItem as ae, PromptInputActionMenuTrigger as ne, PromptInputBody as pe, PromptInputButton as me, PromptInputCommand as ue, PromptInputCommandEmpty as de, PromptInputCommandGroup as le, PromptInputCommandInput as ie, PromptInputCommandItem as Ce, PromptInputCommandList as Ie, PromptInputCommandSeparator as xe, PromptInputFooter as Me, PromptInputHeader as fe, PromptInputHoverCard as ge, PromptInputHoverCardContent as ce, PromptInputHoverCardTrigger as Pe, PromptInputModelSelect as Te, PromptInputModelSelectContent as se, PromptInputModelSelectItem as Se, PromptInputModelSelectTrigger as De, PromptInputModelSelectValue as be, PromptInputProvider as Be, PromptInputSubmit as Ae, PromptInputTab as we, PromptInputTabBody as ve, PromptInputTabItem as Ge, PromptInputTabLabel as He, PromptInputTabsList as Le, PromptInputTextarea as ke, PromptInputTools as Re, usePromptInputController as ye } from "./ui/core/prompt-input/prompt-input.js";
48
+ import { Dialog as Ve, DialogClose as Fe, DialogContent as Ee, DialogDescription as Oe, DialogFooter as Qe, DialogHeader as Ue, DialogOverlay as je, DialogPortal as qe, DialogTitle as ze, DialogTrigger as Je } from "./ui/core/dialog/dialog.js";
49
+ import { DialogMetadata as Ne } from "./ui/core/dialog/dialog.metadata.js";
50
+ import { Command as Xe, CommandDialog as Ye, CommandEmpty as Ze, CommandGroup as _e, CommandInput as $e, CommandItem as or, CommandList as tr, CommandSeparator as er, CommandShortcut as rr } from "./ui/core/command/command.js";
51
+ import { CommandMetadata as nr } from "./ui/core/command/command.metadata.js";
52
+ import { InlineCitationMetadata as mr } from "./ui/core/inline-citation/inline-citation.metadata.js";
53
+ import { InlineCitation as dr, InlineCitationCard as lr, InlineCitationCardBody as ir, InlineCitationCardTrigger as Cr, InlineCitationGroup as Ir, InlineCitationLink as xr, InlineCitationQuote as Mr, InlineCitationSource as fr, InlineCitationText as gr } from "./ui/core/inline-citation/inline-citation.js";
54
+ import { Reasoning as Pr, ReasoningContent as Tr, ReasoningHeader as sr, ReasoningItem as Sr } from "./ui/core/reasoning/reasoning.js";
55
+ import { ReasoningMetadata as br } from "./ui/core/reasoning/reasoning.metadata.js";
56
+ import { Popover as Ar, PopoverContent as wr, PopoverTrigger as vr } from "./ui/core/popover/popover.js";
57
+ import { Source as Hr, Sources as Lr, SourcesTitle as kr } from "./ui/core/sources/sources.js";
58
+ import { PortalContainerContext as yr } from "../lib/portal-container-context.js";
59
+ export {
60
+ Et as Alert,
61
+ Ot as AlertActions,
62
+ Qt as AlertButton,
63
+ Ut as AlertClose,
64
+ jt as AlertDescription,
65
+ Jt as AlertMetadata,
66
+ qt as AlertTitle,
67
+ A as Avatar,
68
+ w as AvatarFallback,
69
+ v as AvatarIcon,
70
+ G as AvatarImage,
71
+ L as AvatarMetadata,
72
+ Uo as Badge,
73
+ zo as BadgeMetadata,
74
+ x as Button,
75
+ P as ButtonGroup,
76
+ b as ButtonGroupMetadata,
77
+ T as ButtonGroupSeparator,
78
+ s as ButtonGroupText,
79
+ g as ButtonMetadata,
80
+ e as Card,
81
+ r as CardActions,
82
+ a as CardContent,
83
+ n as CardDescription,
84
+ p as CardFooter,
85
+ m as CardHeader,
86
+ u as CardHeaderRight,
87
+ d as CardIcon,
88
+ C as CardMetadata,
89
+ l as CardTitle,
90
+ X as CodeBlock,
91
+ Y as CodeBlockCollapseButton,
92
+ Z as CodeBlockCopyButton,
93
+ $ as CodeBlockMetadata,
94
+ Ko as Collapsible,
95
+ No as CollapsibleContent,
96
+ Yo as CollapsibleMetadata,
97
+ Wo as CollapsibleTrigger,
98
+ Xe as Command,
99
+ Ye as CommandDialog,
100
+ Ze as CommandEmpty,
101
+ _e as CommandGroup,
102
+ $e as CommandInput,
103
+ or as CommandItem,
104
+ tr as CommandList,
105
+ nr as CommandMetadata,
106
+ er as CommandSeparator,
107
+ rr as CommandShortcut,
108
+ Ve as Dialog,
109
+ Fe as DialogClose,
110
+ Ee as DialogContent,
111
+ Oe as DialogDescription,
112
+ Qe as DialogFooter,
113
+ Ue as DialogHeader,
114
+ Ne as DialogMetadata,
115
+ je as DialogOverlay,
116
+ qe as DialogPortal,
117
+ ze as DialogTitle,
118
+ Je as DialogTrigger,
119
+ so as DropdownMenu,
120
+ So as DropdownMenuCheckboxItem,
121
+ Do as DropdownMenuContent,
122
+ bo as DropdownMenuGroup,
123
+ Bo as DropdownMenuHeader,
124
+ Ao as DropdownMenuItem,
125
+ wo as DropdownMenuLabel,
126
+ Oo as DropdownMenuMetadata,
127
+ vo as DropdownMenuPortal,
128
+ Go as DropdownMenuRadioGroup,
129
+ Ho as DropdownMenuRadioItem,
130
+ Lo as DropdownMenuSectionLabel,
131
+ ko as DropdownMenuSeparator,
132
+ Ro as DropdownMenuShortcut,
133
+ yo as DropdownMenuSub,
134
+ ho as DropdownMenuSubContent,
135
+ Vo as DropdownMenuSubTrigger,
136
+ Fo as DropdownMenuTrigger,
137
+ F as HelperText,
138
+ O as HelperTextMetadata,
139
+ _o as HoverCard,
140
+ $o as HoverCardContent,
141
+ et as HoverCardMetadata,
142
+ ot as HoverCardTrigger,
143
+ dr as InlineCitation,
144
+ lr as InlineCitationCard,
145
+ ir as InlineCitationCardBody,
146
+ Cr as InlineCitationCardTrigger,
147
+ Ir as InlineCitationGroup,
148
+ xr as InlineCitationLink,
149
+ mr as InlineCitationMetadata,
150
+ Mr as InlineCitationQuote,
151
+ fr as InlineCitationSource,
152
+ gr as InlineCitationText,
153
+ st as Input,
154
+ Gt as InputGroup,
155
+ Ht as InputGroupAddon,
156
+ Lt as InputGroupButton,
157
+ kt as InputGroupInput,
158
+ Vt as InputGroupMetadata,
159
+ Rt as InputGroupText,
160
+ yt as InputGroupTextarea,
161
+ Dt as InputMetadata,
162
+ R as Label,
163
+ h as LabelMetadata,
164
+ U as Loader,
165
+ q as LoaderMetadata,
166
+ Nt as Message,
167
+ Wt as MessageAction,
168
+ Xt as MessageActions,
169
+ Yt as MessageContent,
170
+ Zt as MessageResponse,
171
+ Ar as Popover,
172
+ wr as PopoverContent,
173
+ vr as PopoverTrigger,
174
+ yr as PortalContainerContext,
175
+ te as PromptInput,
176
+ ee as PromptInputActionMenu,
177
+ re as PromptInputActionMenuContent,
178
+ ae as PromptInputActionMenuItem,
179
+ ne as PromptInputActionMenuTrigger,
180
+ pe as PromptInputBody,
181
+ me as PromptInputButton,
182
+ ue as PromptInputCommand,
183
+ de as PromptInputCommandEmpty,
184
+ le as PromptInputCommandGroup,
185
+ ie as PromptInputCommandInput,
186
+ Ce as PromptInputCommandItem,
187
+ Ie as PromptInputCommandList,
188
+ xe as PromptInputCommandSeparator,
189
+ Me as PromptInputFooter,
190
+ fe as PromptInputHeader,
191
+ ge as PromptInputHoverCard,
192
+ ce as PromptInputHoverCardContent,
193
+ Pe as PromptInputHoverCardTrigger,
194
+ $t as PromptInputMetadata,
195
+ Te as PromptInputModelSelect,
196
+ se as PromptInputModelSelectContent,
197
+ Se as PromptInputModelSelectItem,
198
+ De as PromptInputModelSelectTrigger,
199
+ be as PromptInputModelSelectValue,
200
+ Be as PromptInputProvider,
201
+ Ae as PromptInputSubmit,
202
+ we as PromptInputTab,
203
+ ve as PromptInputTabBody,
204
+ Ge as PromptInputTabItem,
205
+ He as PromptInputTabLabel,
206
+ Le as PromptInputTabsList,
207
+ ke as PromptInputTextarea,
208
+ Re as PromptInputTools,
209
+ Pr as Reasoning,
210
+ Tr as ReasoningContent,
211
+ sr as ReasoningHeader,
212
+ Sr as ReasoningItem,
213
+ br as ReasoningMetadata,
214
+ at as Select,
215
+ nt as SelectContent,
216
+ pt as SelectGroup,
217
+ mt as SelectItem,
218
+ ut as SelectLabel,
219
+ Mt as SelectMetadata,
220
+ dt as SelectScrollDownButton,
221
+ lt as SelectScrollUpButton,
222
+ it as SelectSeparator,
223
+ Ct as SelectTrigger,
224
+ It as SelectValue,
225
+ to as Separator,
226
+ ro as SeparatorMetadata,
227
+ J as Shimmer,
228
+ N as ShimmerMetadata,
229
+ gt as Skeleton,
230
+ Pt as SkeletonMetadata,
231
+ Hr as Source,
232
+ Lr as Sources,
233
+ kr as SourcesTitle,
234
+ Bt as Textarea,
235
+ wt as TextareaMetadata,
236
+ Io as Tool,
237
+ xo as ToolContent,
238
+ Mo as ToolHeader,
239
+ fo as ToolInput,
240
+ Po as ToolMetadata,
241
+ go as ToolOutput,
242
+ no as Tooltip,
243
+ po as TooltipContent,
244
+ io as TooltipMetadata,
245
+ mo as TooltipProvider,
246
+ uo as TooltipTrigger,
247
+ jo as badgeVariants,
248
+ S as buttonGroupVariants,
249
+ M as buttonVariants,
250
+ ye as usePromptInputController
251
+ };
@@ -1,7 +1,7 @@
1
1
  import { Button as ButtonPrimitive } from '@base-ui/react/button';
2
2
  import { VariantProps } from 'class-variance-authority';
3
3
  declare const buttonVariants: (props?: ({
4
- variant?: "default" | "destructive" | "secondary" | "outline" | "ghost" | "link" | null | undefined;
4
+ variant?: "link" | "default" | "destructive" | "secondary" | "outline" | "ghost" | null | undefined;
5
5
  size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
6
6
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
7
  type ButtonProps = ButtonPrimitive.Props & VariantProps<typeof buttonVariants>;
@@ -0,0 +1,17 @@
1
+ import { ReactNode } from 'react';
2
+ type HeadingElement = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
3
+ declare const Card: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
4
+ declare const CardHeader: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
5
+ declare const CardIcon: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
6
+ declare const CardTitle: import('react').ForwardRefExoticComponent<Omit<import('react').ClassAttributes<HTMLHeadingElement> & import('react').HTMLAttributes<HTMLHeadingElement> & {
7
+ as?: HeadingElement;
8
+ }, "ref"> & import('react').RefAttributes<HTMLHeadingElement>>;
9
+ declare const CardDescription: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & import('react').RefAttributes<HTMLParagraphElement>>;
10
+ declare const CardHeaderRight: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
11
+ declare const CardActions: import('react').ForwardRefExoticComponent<Omit<import("@base-ui/react").MenuRoot.Props<unknown>, "children"> & {
12
+ children?: ReactNode;
13
+ align?: "start" | "center" | "end";
14
+ } & import('react').RefAttributes<HTMLElement>>;
15
+ declare const CardContent: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
16
+ declare const CardFooter: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
17
+ export { Card, CardHeader, CardIcon, CardHeaderRight, CardFooter, CardTitle, CardActions, CardDescription, CardContent, };
@@ -0,0 +1,143 @@
1
+ import { jsx as e, jsxs as c } from "react/jsx-runtime";
2
+ import { forwardRef as d } from "react";
3
+ import { IconDotsVertical as n } from "@tabler/icons-react";
4
+ import { cn as o } from "../../../../lib/utils.js";
5
+ import { Button as i } from "../button/button.js";
6
+ import { DropdownMenu as l, DropdownMenuTrigger as m, DropdownMenuContent as p } from "../dropdown-menu/dropdown-menu.js";
7
+ const u = d(
8
+ ({ className: a, ...r }, t) => /* @__PURE__ */ e(
9
+ "div",
10
+ {
11
+ ref: t,
12
+ "data-slot": "card",
13
+ className: o(
14
+ "bg-card text-card-foreground flex flex-col rounded-lg hover:bg-accent",
15
+ a
16
+ ),
17
+ ...r
18
+ }
19
+ )
20
+ );
21
+ u.displayName = "Card";
22
+ const h = d(
23
+ ({ className: a, ...r }, t) => /* @__PURE__ */ e(
24
+ "div",
25
+ {
26
+ ref: t,
27
+ "data-slot": "card-header",
28
+ className: o(
29
+ "@container/card-header group/card-header grid auto-rows-min items-start gap-1.5 px-4 pt-4 [.border-b]:pb-6",
30
+ "grid-cols-[1fr]",
31
+ "has-data-[slot=card-icon]:grid-cols-[auto_1fr]",
32
+ "has-data-[slot=card-header-right]:grid-cols-[1fr_auto]",
33
+ "has-data-[slot=card-icon]:has-data-[slot=card-header-right]:grid-cols-[auto_1fr_auto]",
34
+ a
35
+ ),
36
+ ...r
37
+ }
38
+ )
39
+ );
40
+ h.displayName = "CardHeader";
41
+ const f = d(
42
+ ({ className: a, children: r, ...t }, s) => /* @__PURE__ */ e(
43
+ "div",
44
+ {
45
+ ref: s,
46
+ "data-slot": "card-icon",
47
+ className: o("col-start-1 row-start-1 h-full", a),
48
+ ...t,
49
+ children: /* @__PURE__ */ e("div", { className: "flex items-center h-full", children: r })
50
+ }
51
+ )
52
+ );
53
+ f.displayName = "CardIcon";
54
+ const g = d(({ className: a, as: r = "h3", ...t }, s) => /* @__PURE__ */ e(
55
+ r,
56
+ {
57
+ ref: s,
58
+ "data-slot": "card-title",
59
+ className: o(
60
+ "tracking-tightest text-foreground font-medium text-lg row-start-1",
61
+ "group-has-data-[slot=card-icon]/card-header:col-start-2",
62
+ a
63
+ ),
64
+ ...t
65
+ }
66
+ ));
67
+ g.displayName = "CardTitle";
68
+ const C = d(
69
+ ({ className: a, ...r }, t) => /* @__PURE__ */ e(
70
+ "p",
71
+ {
72
+ ref: t,
73
+ "data-slot": "card-description",
74
+ className: o(
75
+ "text-muted-foreground text-sm row-start-2",
76
+ "group-has-data-[slot=card-icon]/card-header:col-start-2",
77
+ a
78
+ ),
79
+ ...r
80
+ }
81
+ )
82
+ );
83
+ C.displayName = "CardDescription";
84
+ const N = d(
85
+ ({ className: a, ...r }, t) => /* @__PURE__ */ e(
86
+ "div",
87
+ {
88
+ ref: t,
89
+ "data-slot": "card-header-right",
90
+ className: o(
91
+ "row-span-2 row-start-1 self-start justify-self-end",
92
+ a
93
+ ),
94
+ ...r
95
+ }
96
+ )
97
+ );
98
+ N.displayName = "CardHeaderRight";
99
+ const x = d(({ children: a, align: r = "end", ...t }, s) => /* @__PURE__ */ c(l, { ...t, children: [
100
+ /* @__PURE__ */ e(
101
+ m,
102
+ {
103
+ render: /* @__PURE__ */ e(i, { variant: "ghost", size: "icon-sm", ref: s, children: /* @__PURE__ */ e(n, {}) })
104
+ }
105
+ ),
106
+ /* @__PURE__ */ e(p, { align: r, children: a })
107
+ ] }));
108
+ x.displayName = "CardActions";
109
+ const w = d(
110
+ ({ className: a, ...r }, t) => /* @__PURE__ */ e(
111
+ "div",
112
+ {
113
+ ref: t,
114
+ "data-slot": "card-content",
115
+ className: o("p-4", a),
116
+ ...r
117
+ }
118
+ )
119
+ );
120
+ w.displayName = "CardContent";
121
+ const y = d(
122
+ ({ className: a, ...r }, t) => /* @__PURE__ */ e(
123
+ "div",
124
+ {
125
+ ref: t,
126
+ "data-slot": "card-footer",
127
+ className: o("flex px-4 pb-4", a),
128
+ ...r
129
+ }
130
+ )
131
+ );
132
+ y.displayName = "CardFooter";
133
+ export {
134
+ u as Card,
135
+ x as CardActions,
136
+ w as CardContent,
137
+ C as CardDescription,
138
+ y as CardFooter,
139
+ h as CardHeader,
140
+ N as CardHeaderRight,
141
+ f as CardIcon,
142
+ g as CardTitle
143
+ };
@@ -0,0 +1,8 @@
1
+ import { ComponentMeta } from '../../../../lib/types';
2
+ /**
3
+ * Card Component Metadata
4
+ *
5
+ * This metadata is used by the documentation system to generate
6
+ * component documentation pages and provide context for LLMs.
7
+ */
8
+ export declare const CardMetadata: ComponentMeta;
@@ -0,0 +1,9 @@
1
+ const e = {
2
+ name: "Card",
3
+ status: "in-progress-code-review",
4
+ description: "A flexible card layout with header, content, action, and footer slots.",
5
+ llmUsage: "Use `<Card>` with `<CardHeader>`, `<CardTitle>`, `<CardDescription>`, `<CardContent>`, and `<CardFooter>` for structured content containers."
6
+ };
7
+ export {
8
+ e as CardMetadata
9
+ };
@@ -15,7 +15,7 @@ type CodeBlockCopyButtonProps = ComponentProps<typeof Button> & {
15
15
  };
16
16
  declare const CodeBlockCopyButton: import('react').ForwardRefExoticComponent<Omit<CodeBlockCopyButtonProps, "ref"> & import('react').RefAttributes<HTMLElement>>;
17
17
  declare const CodeBlockCollapseButton: import('react').ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').ButtonProps & import('class-variance-authority').VariantProps<(props?: ({
18
- variant?: "default" | "destructive" | "secondary" | "outline" | "ghost" | "link" | null | undefined;
18
+ variant?: "link" | "default" | "destructive" | "secondary" | "outline" | "ghost" | null | undefined;
19
19
  size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
20
20
  } & import('class-variance-authority/types').ClassProp) | undefined) => string>, "ref"> & import('react').RefAttributes<HTMLElement>, "ref"> & import('react').RefAttributes<HTMLElement>>;
21
21
  export { CodeBlock, CodeBlockCollapseButton, CodeBlockCopyButton };
@@ -0,0 +1,15 @@
1
+ import { ComponentProps } from 'react';
2
+ import { Button } from '../button/button';
3
+ type ComboboxProps = Omit<ComponentProps<typeof Button>, 'value' | 'onChange'> & {
4
+ options: Array<{
5
+ value: string;
6
+ label: string;
7
+ }>;
8
+ value?: string;
9
+ onValueChange?: (value: string) => void;
10
+ placeholder?: string;
11
+ searchPlaceholder?: string;
12
+ emptyText?: string;
13
+ };
14
+ declare const Combobox: import('react').ForwardRefExoticComponent<Omit<ComboboxProps, "ref"> & import('react').RefAttributes<HTMLElement>>;
15
+ export { Combobox };
@@ -1,2 +1,2 @@
1
1
  import { ComponentMeta } from '../../../../lib/types';
2
- export declare const TopbarMetadata: ComponentMeta;
2
+ export declare const ComboboxMetadata: ComponentMeta;
@@ -31,7 +31,7 @@ declare const CommandInput: import('react').ForwardRefExoticComponent<Omit<Omit<
31
31
  ref?: React.Ref<HTMLInputElement>;
32
32
  } & {
33
33
  asChild?: boolean;
34
- }, "key" | keyof import('react').InputHTMLAttributes<HTMLInputElement> | "asChild">, "type" | "value" | "onChange"> & {
34
+ }, "key" | keyof import('react').InputHTMLAttributes<HTMLInputElement> | "asChild">, "onChange" | "type" | "value"> & {
35
35
  value?: string;
36
36
  onValueChange?: (search: string) => void;
37
37
  } & import('react').RefAttributes<HTMLInputElement>, "ref"> & import('react').RefAttributes<HTMLInputElement>>;
@@ -75,7 +75,7 @@ declare const CommandItem: import('react').ForwardRefExoticComponent<Omit<{
75
75
  ref?: React.Ref<HTMLDivElement>;
76
76
  } & {
77
77
  asChild?: boolean;
78
- }, "key" | keyof import('react').HTMLAttributes<HTMLDivElement> | "asChild">, "disabled" | "value" | "onSelect"> & {
78
+ }, "key" | keyof import('react').HTMLAttributes<HTMLDivElement> | "asChild">, "onSelect" | "disabled" | "value"> & {
79
79
  disabled?: boolean;
80
80
  onSelect?: (value: string) => void;
81
81
  value?: string;