@actioneer/ads 0.1.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/LICENSE +21 -0
- package/bin/ads-init.mjs +314 -0
- package/components/accordion.d.ts +13 -0
- package/components/accordion.js +91 -0
- package/components/agents-ui/agent-audio-visualizer-aura.d.ts +11 -0
- package/components/agents-ui/agent-audio-visualizer-aura.js +277 -0
- package/components/agents-ui/agent-audio-visualizer-wave.d.ts +12 -0
- package/components/agents-ui/agent-audio-visualizer-wave.js +203 -0
- package/components/agents-ui/react-shader-toy.d.ts +87 -0
- package/components/agents-ui/react-shader-toy.js +531 -0
- package/components/ai-elements/chain-of-thought.d.ts +30 -0
- package/components/ai-elements/chain-of-thought.js +182 -0
- package/components/ai-elements/index.d.ts +11 -0
- package/components/ai-elements/inline-citation.d.ts +44 -0
- package/components/ai-elements/inline-citation.js +314 -0
- package/components/ai-elements/message.d.ts +96 -0
- package/components/ai-elements/message.js +308 -0
- package/components/ai-elements/queue.d.ts +60 -0
- package/components/ai-elements/queue.js +193 -0
- package/components/ai-elements/reasoning.d.ts +26 -0
- package/components/ai-elements/reasoning.js +131 -0
- package/components/ai-elements/shimmer.d.ts +25 -0
- package/components/ai-elements/shimmer.js +44 -0
- package/components/ai-elements/speech-input.d.ts +16 -0
- package/components/ai-elements/speech-input.js +151 -0
- package/components/ai-elements/task-progress.d.ts +41 -0
- package/components/ai-elements/task-progress.js +211 -0
- package/components/ai-elements/task.d.ts +35 -0
- package/components/ai-elements/task.js +73 -0
- package/components/ai-elements/tool.d.ts +53 -0
- package/components/ai-elements/tool.js +116 -0
- package/components/ai-elements/voice.d.ts +74 -0
- package/components/ai-elements/voice.js +875 -0
- package/components/alert.d.ts +21 -0
- package/components/alert.js +76 -0
- package/components/answer.d.ts +984 -0
- package/components/answer.js +543 -0
- package/components/assistant-ui/action-bar.d.ts +3 -0
- package/components/assistant-ui/action-bar.js +57 -0
- package/components/assistant-ui/answer-tool-ui.d.ts +5 -0
- package/components/assistant-ui/answer-tool-ui.js +42 -0
- package/components/assistant-ui/attachment.d.ts +50 -0
- package/components/assistant-ui/attachment.js +353 -0
- package/components/assistant-ui/badge.d.ts +11 -0
- package/components/assistant-ui/badge.js +54 -0
- package/components/assistant-ui/branch-picker.d.ts +3 -0
- package/components/assistant-ui/branch-picker.js +36 -0
- package/components/assistant-ui/chain-of-thought.d.ts +46 -0
- package/components/assistant-ui/composer-add-context.d.ts +50 -0
- package/components/assistant-ui/composer-add-context.js +209 -0
- package/components/assistant-ui/composer-deep-research.d.ts +16 -0
- package/components/assistant-ui/composer-deep-research.js +38 -0
- package/components/assistant-ui/composer-harness.d.ts +18 -0
- package/components/assistant-ui/composer-harness.js +186 -0
- package/components/assistant-ui/composer-trigger-popover.d.ts +47 -0
- package/components/assistant-ui/composer-trigger-popover.js +147 -0
- package/components/assistant-ui/composer.d.ts +8 -0
- package/components/assistant-ui/composer.js +276 -0
- package/components/assistant-ui/directive-text.d.ts +16 -0
- package/components/assistant-ui/directive-text.js +40 -0
- package/components/assistant-ui/error.d.ts +6 -0
- package/components/assistant-ui/error.js +39 -0
- package/components/assistant-ui/file.d.ts +37 -0
- package/components/assistant-ui/file.js +159 -0
- package/components/assistant-ui/follow-up-suggestions.d.ts +7 -0
- package/components/assistant-ui/follow-up-suggestions.js +44 -0
- package/components/assistant-ui/image.d.ts +46 -0
- package/components/assistant-ui/image.js +351 -0
- package/components/assistant-ui/index.d.ts +28 -0
- package/components/assistant-ui/markdown-text.d.ts +1 -0
- package/components/assistant-ui/markdown-text.js +242 -0
- package/components/assistant-ui/message-timing.d.ts +25 -0
- package/components/assistant-ui/message-timing.js +56 -0
- package/components/assistant-ui/message.d.ts +4 -0
- package/components/assistant-ui/message.js +159 -0
- package/components/assistant-ui/primitives.d.ts +2 -0
- package/components/assistant-ui/quote.d.ts +37 -0
- package/components/assistant-ui/quote.js +150 -0
- package/components/assistant-ui/reasoning.d.ts +44 -0
- package/components/assistant-ui/reasoning.js +261 -0
- package/components/assistant-ui/selection-toolbar.d.ts +29 -0
- package/components/assistant-ui/selection-toolbar.js +91 -0
- package/components/assistant-ui/smart-message-text.d.ts +15 -0
- package/components/assistant-ui/smart-message-text.js +29 -0
- package/components/assistant-ui/sources.d.ts +17 -0
- package/components/assistant-ui/sources.js +121 -0
- package/components/assistant-ui/suggestions.d.ts +7 -0
- package/components/assistant-ui/suggestions.js +19 -0
- package/components/assistant-ui/thread-context.d.ts +37 -0
- package/components/assistant-ui/thread-context.js +8 -0
- package/components/assistant-ui/thread.d.ts +5 -0
- package/components/assistant-ui/thread.js +77 -0
- package/components/assistant-ui/tool-fallback.d.ts +36 -0
- package/components/assistant-ui/tool-fallback.js +428 -0
- package/components/assistant-ui/tool-group.d.ts +33 -0
- package/components/assistant-ui/tool-group.js +173 -0
- package/components/assistant-ui/tooltip-icon-button.d.ts +7 -0
- package/components/assistant-ui/tooltip-icon-button.js +31 -0
- package/components/assistant-ui/voice.d.ts +18 -0
- package/components/autocomplete.d.ts +18 -0
- package/components/autocomplete.js +162 -0
- package/components/avatar.d.ts +26 -0
- package/components/avatar.js +92 -0
- package/components/badge.d.ts +10 -0
- package/components/badge.js +83 -0
- package/components/brand-loader.d.ts +16 -0
- package/components/brand-loader.js +64 -0
- package/components/breadcrumbs.d.ts +8 -0
- package/components/breadcrumbs.js +58 -0
- package/components/button.d.ts +13 -0
- package/components/button.js +100 -0
- package/components/card.d.ts +19 -0
- package/components/card.js +82 -0
- package/components/carousel.d.ts +31 -0
- package/components/carousel.js +351 -0
- package/components/chart.d.ts +165 -0
- package/components/chart.js +841 -0
- package/components/checkbox.d.ts +13 -0
- package/components/checkbox.js +84 -0
- package/components/chip.d.ts +13 -0
- package/components/chip.js +112 -0
- package/components/collapsible.d.ts +5 -0
- package/components/collapsible.js +31 -0
- package/components/connector-card.d.ts +62 -0
- package/components/connector-card.js +154 -0
- package/components/divider.d.ts +23 -0
- package/components/divider.js +69 -0
- package/components/drawer.d.ts +45 -0
- package/components/drawer.js +234 -0
- package/components/dropdown.d.ts +33 -0
- package/components/dropdown.js +198 -0
- package/components/empty-state.d.ts +8 -0
- package/components/empty-state.js +30 -0
- package/components/field.d.ts +20 -0
- package/components/field.js +74 -0
- package/components/index.d.ts +56 -0
- package/components/index.js +444 -0
- package/components/input-field.d.ts +22 -0
- package/components/input-field.js +91 -0
- package/components/input.d.ts +8 -0
- package/components/input.js +61 -0
- package/components/kbd.d.ts +6 -0
- package/components/kbd.js +26 -0
- package/components/link.d.ts +14 -0
- package/components/link.js +72 -0
- package/components/modal.d.ts +18 -0
- package/components/modal.js +156 -0
- package/components/navbar.d.ts +15 -0
- package/components/navbar.js +68 -0
- package/components/number-field.d.ts +11 -0
- package/components/number-field.js +89 -0
- package/components/pagination.d.ts +28 -0
- package/components/pagination.js +179 -0
- package/components/panel.d.ts +14 -0
- package/components/panel.js +71 -0
- package/components/pixel-blast-svg.d.ts +22 -0
- package/components/pixel-blast-svg.js +154 -0
- package/components/popover.d.ts +20 -0
- package/components/popover.js +101 -0
- package/components/progress-circle.d.ts +11 -0
- package/components/progress-circle.js +75 -0
- package/components/progress.d.ts +22 -0
- package/components/progress.js +66 -0
- package/components/radio.d.ts +16 -0
- package/components/radio.js +101 -0
- package/components/segmented.d.ts +16 -0
- package/components/segmented.js +103 -0
- package/components/select.d.ts +28 -0
- package/components/select.js +180 -0
- package/components/selection-action-bar.d.ts +11 -0
- package/components/selection-action-bar.js +59 -0
- package/components/sidebar.d.ts +118 -0
- package/components/sidebar.js +375 -0
- package/components/skeleton.d.ts +6 -0
- package/components/skeleton.js +26 -0
- package/components/slider.d.ts +11 -0
- package/components/slider.js +62 -0
- package/components/spinner.d.ts +11 -0
- package/components/spinner.js +62 -0
- package/components/switch.d.ts +7 -0
- package/components/switch.js +61 -0
- package/components/table.d.ts +59 -0
- package/components/table.js +254 -0
- package/components/tabs.d.ts +29 -0
- package/components/tabs.js +371 -0
- package/components/textarea.d.ts +5 -0
- package/components/textarea.js +24 -0
- package/components/timeline.d.ts +7 -0
- package/components/timeline.js +47 -0
- package/components/toast.d.ts +74 -0
- package/components/toast.js +211 -0
- package/components/tooltip.d.ts +11 -0
- package/components/tooltip.js +143 -0
- package/components/tree.d.ts +42 -0
- package/components/tree.js +86 -0
- package/components/typography.d.ts +33 -0
- package/components/typography.js +65 -0
- package/components/ui/avatar.d.ts +11 -0
- package/components/ui/avatar.js +56 -0
- package/components/ui/button.d.ts +10 -0
- package/components/ui/button.js +57 -0
- package/components/ui/collapsible.d.ts +5 -0
- package/components/ui/collapsible.js +35 -0
- package/components/ui/dialog.d.ts +17 -0
- package/components/ui/dialog.js +93 -0
- package/components/ui/tabs.d.ts +22 -0
- package/components/ui/tooltip.d.ts +7 -0
- package/components/ui/tooltip.js +56 -0
- package/fonts/aribau-grotesk-400.otf +0 -0
- package/fonts/aribau-grotesk-700.otf +0 -0
- package/fonts.css +21 -0
- package/hooks/agents-ui/use-agent-audio-visualizer-aura.d.ts +8 -0
- package/hooks/agents-ui/use-agent-audio-visualizer-aura.js +62 -0
- package/hooks/agents-ui/use-agent-audio-visualizer-wave.d.ts +7 -0
- package/hooks/agents-ui/use-agent-audio-visualizer-wave.js +60 -0
- package/hooks/agents-ui/voice-visualizer-types.d.ts +9 -0
- package/lib/cn.d.ts +3 -0
- package/lib/cn.js +9 -0
- package/lib/icons.d.ts +378 -0
- package/lib/icons.js +119 -0
- package/lib/interactive.d.ts +24 -0
- package/lib/interactive.js +36 -0
- package/lib/motion.d.ts +58 -0
- package/lib/motion.js +70 -0
- package/lib/router.d.ts +3 -0
- package/lib/utils.d.ts +6 -0
- package/llms.txt +537 -0
- package/manifest.json +5085 -0
- package/package.json +60 -0
- package/styles.css +653 -0
- package/theme.css +273 -0
|
@@ -0,0 +1,444 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as r } from "../lib/cn.js";
|
|
3
|
+
import { interactive as a } from "../lib/interactive.js";
|
|
4
|
+
import { TooltipProvider as i } from "./ui/tooltip.js";
|
|
5
|
+
import { Button as m, buttonVariants as l } from "./button.js";
|
|
6
|
+
import { Spinner as c } from "./spinner.js";
|
|
7
|
+
import { Field as u, FieldDescription as d, FieldError as x, Label as T, inputBaseClass as f } from "./field.js";
|
|
8
|
+
import { Code as S, Heading as h, Text as A } from "./typography.js";
|
|
9
|
+
import { Link as b } from "./link.js";
|
|
10
|
+
import { Divider as P } from "./divider.js";
|
|
11
|
+
import { Kbd as B } from "./kbd.js";
|
|
12
|
+
import { Input as F } from "./input.js";
|
|
13
|
+
import { InputField as D } from "./input-field.js";
|
|
14
|
+
import { Textarea as E } from "./textarea.js";
|
|
15
|
+
import { Checkbox as N, CheckboxGroup as O } from "./checkbox.js";
|
|
16
|
+
import { Radio as H, RadioGroup as L } from "./radio.js";
|
|
17
|
+
import { Switch as _ } from "./switch.js";
|
|
18
|
+
import { NumberField as U } from "./number-field.js";
|
|
19
|
+
import { Select as W } from "./select.js";
|
|
20
|
+
import { Autocomplete as X } from "./autocomplete.js";
|
|
21
|
+
import { Slider as Z } from "./slider.js";
|
|
22
|
+
import { SegmentedControl as q } from "./segmented.js";
|
|
23
|
+
import { Modal as $, ModalBody as ee, ModalDescription as oe, ModalFooter as re, ModalHeader as te, ModalTitle as ae } from "./modal.js";
|
|
24
|
+
import { Drawer as ie, DrawerBody as se, DrawerFooter as me, DrawerHeader as le, DrawerTitle as pe, InlineDrawer as ce, ModalDrawer as Ce } from "./drawer.js";
|
|
25
|
+
import { Popover as de, PopoverContent as xe, PopoverTrigger as Te } from "./popover.js";
|
|
26
|
+
import { Tooltip as ge } from "./tooltip.js";
|
|
27
|
+
import { Dropdown as he, DropdownContent as Ae, DropdownItem as Ie, DropdownLabel as be, DropdownSeparator as we, DropdownTrigger as Pe } from "./dropdown.js";
|
|
28
|
+
import { ToastProvider as Be, useToast as ve } from "./toast.js";
|
|
29
|
+
import { ANSWER_TOOL_DESCRIPTION as Re, ANSWER_TOOL_NAME as De, AnswerFollowUpSchema as ke, AnswerRenderer as Ee, AnswerSignalSchema as Qe, AnswerSourceSchema as Ne, AnswerSpecSchema as Oe, AnswerToneSchema as Ve, BreakdownAnswer as He, BreakdownAnswerSchema as Le, ComparisonAnswer as ye, ComparisonAnswerSchema as _e, ExplanationAnswer as Ge, ExplanationAnswerSchema as Ue, StatusAnswer as ze, StatusAnswerSchema as We, TrendAnswer as Ke, TrendAnswerSchema as Xe, answerTool as Ye } from "./answer.js";
|
|
30
|
+
import { Card as je, CardBody as qe, CardDescription as Je, CardFooter as $e, CardHeader as eo, CardTitle as oo } from "./card.js";
|
|
31
|
+
import { Carousel as to, CarouselContent as ao, CarouselIndicators as no, CarouselItem as io, CarouselNext as so, CarouselPrevious as mo, carouselVariants as lo } from "./carousel.js";
|
|
32
|
+
import { AreaChart as co, BarChart as Co, ComboChart as uo, ComposedChart as xo, FunnelChart as To, LineChart as fo, PieChart as go, RadarChart as So, RadialBarChart as ho, ScatterChart as Ao, TreemapChart as Io } from "./chart.js";
|
|
33
|
+
import { ConnectionStatus as wo, ConnectorCard as Po } from "./connector-card.js";
|
|
34
|
+
import { Table as Bo, TableBody as vo, TableCell as Fo, TableColumn as Ro, TableHeader as Do, TableRow as ko } from "./table.js";
|
|
35
|
+
import { Tab as Qo, TabList as No, TabPanel as Oo, TabSeparator as Vo, Tabs as Ho } from "./tabs.js";
|
|
36
|
+
import { Tree as yo, TreeItem as _o } from "./tree.js";
|
|
37
|
+
import { Accordion as Uo, AccordionItem as zo } from "./accordion.js";
|
|
38
|
+
import { Avatar as Ko, AvatarGroup as Xo } from "./avatar.js";
|
|
39
|
+
import { Badge as Zo } from "./badge.js";
|
|
40
|
+
import { Chip as qo } from "./chip.js";
|
|
41
|
+
import { Timeline as $o, TimelineItem as er } from "./timeline.js";
|
|
42
|
+
import { Alert as rr, AlertDescription as tr, AlertTitle as ar } from "./alert.js";
|
|
43
|
+
import { BrandLoader as ir, BrandMark as sr } from "./brand-loader.js";
|
|
44
|
+
import { PixelBlastSVG as lr } from "./pixel-blast-svg.js";
|
|
45
|
+
import { Progress as cr } from "./progress.js";
|
|
46
|
+
import { ProgressCircle as ur } from "./progress-circle.js";
|
|
47
|
+
import { Skeleton as xr } from "./skeleton.js";
|
|
48
|
+
import { EmptyState as fr } from "./empty-state.js";
|
|
49
|
+
import { Navbar as Sr, NavbarBrand as hr, NavbarContent as Ar, NavbarItem as Ir } from "./navbar.js";
|
|
50
|
+
import { BreadcrumbItem as wr, Breadcrumbs as Pr } from "./breadcrumbs.js";
|
|
51
|
+
import { Pagination as Br } from "./pagination.js";
|
|
52
|
+
import { Sidebar as Fr, SidebarAccount as Rr, SidebarAction as Dr, SidebarBrand as kr, SidebarFooter as Er, SidebarHeader as Qr, SidebarHistory as Nr, SidebarHistoryItem as Or, SidebarItem as Vr, SidebarNav as Hr, SidebarSection as Lr, SidebarTrigger as yr, useSidebar as _r } from "./sidebar.js";
|
|
53
|
+
import { Panel as Ur, PanelBody as zr, PanelFooter as Wr, PanelHeader as Kr, PanelTitle as Xr, PanelToolbar as Yr } from "./panel.js";
|
|
54
|
+
import { Collapsible as jr, CollapsibleContent as qr, CollapsibleTrigger as Jr } from "./collapsible.js";
|
|
55
|
+
import { SelectionActionBar as et, SelectionActionBarAction as ot } from "./selection-action-bar.js";
|
|
56
|
+
import { ChainOfThought as tt, ChainOfThoughtContent as at, ChainOfThoughtHeader as nt, ChainOfThoughtImage as it, ChainOfThoughtSearchResult as st, ChainOfThoughtSearchResults as mt, ChainOfThoughtStep as lt } from "./ai-elements/chain-of-thought.js";
|
|
57
|
+
import { InlineCitation as ct, InlineCitationCard as Ct, InlineCitationCardBody as ut, InlineCitationCardTrigger as dt, InlineCitationCarousel as xt, InlineCitationCarouselContent as Tt, InlineCitationCarouselHeader as ft, InlineCitationCarouselIndex as gt, InlineCitationCarouselItem as St, InlineCitationCarouselNext as ht, InlineCitationCarouselPrev as At, InlineCitationQuote as It, InlineCitationSource as bt, InlineCitationText as wt } from "./ai-elements/inline-citation.js";
|
|
58
|
+
import { Message as Mt, MessageAction as Bt, MessageActions as vt, MessageAttachment as Ft, MessageAttachments as Rt, MessageAvatar as Dt, MessageBranch as kt, MessageBranchContent as Et, MessageBranchNext as Qt, MessageBranchPage as Nt, MessageBranchPrevious as Ot, MessageBranchSelector as Vt, MessageContent as Ht, MessageResponse as Lt, MessageToolbar as yt } from "./ai-elements/message.js";
|
|
59
|
+
import { Queue as Gt, QueueItem as Ut, QueueItemAction as zt, QueueItemActions as Wt, QueueItemAttachment as Kt, QueueItemContent as Xt, QueueItemDescription as Yt, QueueItemFile as Zt, QueueItemImage as jt, QueueItemIndicator as qt, QueueList as Jt, QueueSection as $t, QueueSectionContent as ea, QueueSectionLabel as oa, QueueSectionTrigger as ra } from "./ai-elements/queue.js";
|
|
60
|
+
import { Reasoning as aa, ReasoningContent as na, ReasoningTrigger as ia, useReasoning as sa } from "./ai-elements/reasoning.js";
|
|
61
|
+
import { Shimmer as la } from "./ai-elements/shimmer.js";
|
|
62
|
+
import { SpeechInput as ca } from "./ai-elements/speech-input.js";
|
|
63
|
+
import { Task as ua, TaskContent as da, TaskItem as xa, TaskItemFile as Ta, TaskTrigger as fa } from "./ai-elements/task.js";
|
|
64
|
+
import { TaskProgress as Sa, TaskProgressDock as ha } from "./ai-elements/task-progress.js";
|
|
65
|
+
import { Tool as Ia, ToolContent as ba, ToolHeader as wa, ToolInput as Pa, ToolOutput as Ma } from "./ai-elements/tool.js";
|
|
66
|
+
import { VOICE_PALETTES as va, VOICE_STATES as Fa, VOICE_VARIANTS as Ra, Voice as Da, VoiceConnectButton as ka, VoiceControl as Ea, VoiceDisconnectButton as Qa, VoiceMuteButton as Na, VoiceStatusDot as Oa } from "./ai-elements/voice.js";
|
|
67
|
+
import { AssistantRuntimeProvider as Ha, AttachmentPrimitive as La, ComposerPrimitive as ya, CompositeAttachmentAdapter as _a, MessagePrimitive as Ga, SelectionToolbarPrimitive as Ua, SimpleImageAttachmentAdapter as za, ThreadPrimitive as Wa, makeAssistantToolUI as Ka, useAssistantRuntime as Xa, useAuiState as Ya, useLocalRuntime as Za } from "@assistant-ui/react";
|
|
68
|
+
import { Thread as qa } from "./assistant-ui/thread.js";
|
|
69
|
+
import { EMPTY_COMPONENTS as $a, ThreadComponentsContext as en, isNewChatView as on } from "./assistant-ui/thread-context.js";
|
|
70
|
+
import { RenderAnswerToolUI as tn } from "./assistant-ui/answer-tool-ui.js";
|
|
71
|
+
import { Composer as nn, ComposerPlaceholdersProvider as sn, EditComposer as mn } from "./assistant-ui/composer.js";
|
|
72
|
+
import { AssistantMessage as pn, ThreadMessage as cn, UserMessage as Cn } from "./assistant-ui/message.js";
|
|
73
|
+
import { AssistantActionBar as dn, UserActionBar as xn } from "./assistant-ui/action-bar.js";
|
|
74
|
+
import { BranchPicker as fn } from "./assistant-ui/branch-picker.js";
|
|
75
|
+
import { ACTIONEER_FILE_ACCEPT as Sn, ActioneerFileAttachmentAdapter as hn, ComposerAddAttachment as An, ComposerAddDocument as In, ComposerAddImage as bn, ComposerAttachments as wn, UserMessageAttachments as Pn } from "./assistant-ui/attachment.js";
|
|
76
|
+
import { CONTEXT_MIME as Bn, ComposerAddContext as vn, ComposerContextProvider as Fn, ContextAttachmentAdapter as Rn } from "./assistant-ui/composer-add-context.js";
|
|
77
|
+
import { ComposerDeepResearch as kn, DeepResearchProvider as En } from "./assistant-ui/composer-deep-research.js";
|
|
78
|
+
import { ComposerHarness as Nn, HARNESS_MIME as On, HarnessAttachmentAdapter as Vn } from "./assistant-ui/composer-harness.js";
|
|
79
|
+
import { ComposerTriggerPopover as Ln } from "./assistant-ui/composer-trigger-popover.js";
|
|
80
|
+
import { DirectiveText as _n, createDirectiveText as Gn } from "./assistant-ui/directive-text.js";
|
|
81
|
+
import { ErrorRoot as zn, ErrorText as Wn, MessageError as Kn } from "./assistant-ui/error.js";
|
|
82
|
+
import { File as Yn, FileDownload as Zn, FileIconDisplay as jn, FileName as qn, FileRoot as Jn, FileSize as $n, fileVariants as ei, formatFileSize as oi, getBase64Size as ri, getMimeTypeIcon as ti } from "./assistant-ui/file.js";
|
|
83
|
+
import { Image as ni, ImageActions as ii, ImageContentFilterError as si, ImageFilename as mi, ImageGenerating as li, ImagePreview as pi, ImageRoot as ci, ImageZoom as Ci, imageVariants as ui } from "./assistant-ui/image.js";
|
|
84
|
+
import { MarkdownText as xi } from "./assistant-ui/markdown-text.js";
|
|
85
|
+
import { MessageTiming as fi } from "./assistant-ui/message-timing.js";
|
|
86
|
+
import { ComposerQuotePreview as Si, ComposerQuotePreviewDismiss as hi, ComposerQuotePreviewIcon as Ai, ComposerQuotePreviewRoot as Ii, ComposerQuotePreviewText as bi, QuoteBlock as wi, QuoteBlockIcon as Pi, QuoteBlockRoot as Mi, QuoteBlockText as Bi } from "./assistant-ui/quote.js";
|
|
87
|
+
import { OpenUiLibraryProvider as Fi, SmartMessageText as Ri } from "./assistant-ui/smart-message-text.js";
|
|
88
|
+
import { Source as ki, SourceIcon as Ei, SourceTitle as Qi, Sources as Ni } from "./assistant-ui/sources.js";
|
|
89
|
+
import { ToolFallback as Vi, ToolFallbackApproval as Hi, ToolFallbackArgs as Li, ToolFallbackContent as yi, ToolFallbackError as _i, ToolFallbackResult as Gi, ToolFallbackRoot as Ui, ToolFallbackTrigger as zi } from "./assistant-ui/tool-fallback.js";
|
|
90
|
+
import { ToolGroup as Ki, ToolGroupContent as Xi, ToolGroupRoot as Yi, ToolGroupTrigger as Zi, toolGroupVariants as ji } from "./assistant-ui/tool-group.js";
|
|
91
|
+
import { FollowUpSuggestion as Ji, ThreadFollowupSuggestions as $i } from "./assistant-ui/follow-up-suggestions.js";
|
|
92
|
+
import { SelectionToolbar as os, SelectionToolbarCopy as rs, SelectionToolbarQuote as ts, SelectionToolbarRoot as as } from "./assistant-ui/selection-toolbar.js";
|
|
93
|
+
import { ThreadSuggestionItem as is, ThreadSuggestions as ss } from "./assistant-ui/suggestions.js";
|
|
94
|
+
import { TooltipIconButton as ls } from "./assistant-ui/tooltip-icon-button.js";
|
|
95
|
+
import { badgeVariants as cs } from "./assistant-ui/badge.js";
|
|
96
|
+
export {
|
|
97
|
+
Sn as ACTIONEER_FILE_ACCEPT,
|
|
98
|
+
Re as ANSWER_TOOL_DESCRIPTION,
|
|
99
|
+
De as ANSWER_TOOL_NAME,
|
|
100
|
+
Uo as Accordion,
|
|
101
|
+
zo as AccordionItem,
|
|
102
|
+
hn as ActioneerFileAttachmentAdapter,
|
|
103
|
+
rr as Alert,
|
|
104
|
+
tr as AlertDescription,
|
|
105
|
+
ar as AlertTitle,
|
|
106
|
+
ke as AnswerFollowUpSchema,
|
|
107
|
+
Ee as AnswerRenderer,
|
|
108
|
+
Qe as AnswerSignalSchema,
|
|
109
|
+
Ne as AnswerSourceSchema,
|
|
110
|
+
Oe as AnswerSpecSchema,
|
|
111
|
+
Ve as AnswerToneSchema,
|
|
112
|
+
co as AreaChart,
|
|
113
|
+
dn as AssistantActionBar,
|
|
114
|
+
pn as AssistantMessage,
|
|
115
|
+
Ha as AssistantRuntimeProvider,
|
|
116
|
+
La as AttachmentPrimitive,
|
|
117
|
+
X as Autocomplete,
|
|
118
|
+
Ko as Avatar,
|
|
119
|
+
Xo as AvatarGroup,
|
|
120
|
+
Zo as Badge,
|
|
121
|
+
Co as BarChart,
|
|
122
|
+
fn as BranchPicker,
|
|
123
|
+
ir as BrandLoader,
|
|
124
|
+
sr as BrandMark,
|
|
125
|
+
wr as BreadcrumbItem,
|
|
126
|
+
Pr as Breadcrumbs,
|
|
127
|
+
He as BreakdownAnswer,
|
|
128
|
+
Le as BreakdownAnswerSchema,
|
|
129
|
+
m as Button,
|
|
130
|
+
Bn as CONTEXT_MIME,
|
|
131
|
+
je as Card,
|
|
132
|
+
qe as CardBody,
|
|
133
|
+
Je as CardDescription,
|
|
134
|
+
$e as CardFooter,
|
|
135
|
+
eo as CardHeader,
|
|
136
|
+
oo as CardTitle,
|
|
137
|
+
to as Carousel,
|
|
138
|
+
ao as CarouselContent,
|
|
139
|
+
no as CarouselIndicators,
|
|
140
|
+
io as CarouselItem,
|
|
141
|
+
so as CarouselNext,
|
|
142
|
+
mo as CarouselPrevious,
|
|
143
|
+
tt as ChainOfThought,
|
|
144
|
+
at as ChainOfThoughtContent,
|
|
145
|
+
nt as ChainOfThoughtHeader,
|
|
146
|
+
it as ChainOfThoughtImage,
|
|
147
|
+
st as ChainOfThoughtSearchResult,
|
|
148
|
+
mt as ChainOfThoughtSearchResults,
|
|
149
|
+
lt as ChainOfThoughtStep,
|
|
150
|
+
N as Checkbox,
|
|
151
|
+
O as CheckboxGroup,
|
|
152
|
+
qo as Chip,
|
|
153
|
+
S as Code,
|
|
154
|
+
jr as Collapsible,
|
|
155
|
+
qr as CollapsibleContent,
|
|
156
|
+
Jr as CollapsibleTrigger,
|
|
157
|
+
uo as ComboChart,
|
|
158
|
+
ye as ComparisonAnswer,
|
|
159
|
+
_e as ComparisonAnswerSchema,
|
|
160
|
+
xo as ComposedChart,
|
|
161
|
+
nn as Composer,
|
|
162
|
+
An as ComposerAddAttachment,
|
|
163
|
+
vn as ComposerAddContext,
|
|
164
|
+
In as ComposerAddDocument,
|
|
165
|
+
bn as ComposerAddImage,
|
|
166
|
+
wn as ComposerAttachments,
|
|
167
|
+
Fn as ComposerContextProvider,
|
|
168
|
+
kn as ComposerDeepResearch,
|
|
169
|
+
Nn as ComposerHarness,
|
|
170
|
+
sn as ComposerPlaceholdersProvider,
|
|
171
|
+
ya as ComposerPrimitive,
|
|
172
|
+
Si as ComposerQuotePreview,
|
|
173
|
+
hi as ComposerQuotePreviewDismiss,
|
|
174
|
+
Ai as ComposerQuotePreviewIcon,
|
|
175
|
+
Ii as ComposerQuotePreviewRoot,
|
|
176
|
+
bi as ComposerQuotePreviewText,
|
|
177
|
+
Ln as ComposerTriggerPopover,
|
|
178
|
+
_a as CompositeAttachmentAdapter,
|
|
179
|
+
wo as ConnectionStatus,
|
|
180
|
+
Po as ConnectorCard,
|
|
181
|
+
Rn as ContextAttachmentAdapter,
|
|
182
|
+
En as DeepResearchProvider,
|
|
183
|
+
_n as DirectiveText,
|
|
184
|
+
P as Divider,
|
|
185
|
+
ie as Drawer,
|
|
186
|
+
se as DrawerBody,
|
|
187
|
+
me as DrawerFooter,
|
|
188
|
+
le as DrawerHeader,
|
|
189
|
+
pe as DrawerTitle,
|
|
190
|
+
he as Dropdown,
|
|
191
|
+
Ae as DropdownContent,
|
|
192
|
+
Ie as DropdownItem,
|
|
193
|
+
be as DropdownLabel,
|
|
194
|
+
we as DropdownSeparator,
|
|
195
|
+
Pe as DropdownTrigger,
|
|
196
|
+
$a as EMPTY_COMPONENTS,
|
|
197
|
+
mn as EditComposer,
|
|
198
|
+
fr as EmptyState,
|
|
199
|
+
zn as ErrorRoot,
|
|
200
|
+
Wn as ErrorText,
|
|
201
|
+
Ge as ExplanationAnswer,
|
|
202
|
+
Ue as ExplanationAnswerSchema,
|
|
203
|
+
u as Field,
|
|
204
|
+
d as FieldDescription,
|
|
205
|
+
x as FieldError,
|
|
206
|
+
Yn as File,
|
|
207
|
+
Zn as FileDownload,
|
|
208
|
+
jn as FileIconDisplay,
|
|
209
|
+
qn as FileName,
|
|
210
|
+
Jn as FileRoot,
|
|
211
|
+
$n as FileSize,
|
|
212
|
+
Ji as FollowUpSuggestion,
|
|
213
|
+
To as FunnelChart,
|
|
214
|
+
On as HARNESS_MIME,
|
|
215
|
+
Vn as HarnessAttachmentAdapter,
|
|
216
|
+
h as Heading,
|
|
217
|
+
ni as Image,
|
|
218
|
+
ii as ImageActions,
|
|
219
|
+
si as ImageContentFilterError,
|
|
220
|
+
mi as ImageFilename,
|
|
221
|
+
li as ImageGenerating,
|
|
222
|
+
pi as ImagePreview,
|
|
223
|
+
ci as ImageRoot,
|
|
224
|
+
Ci as ImageZoom,
|
|
225
|
+
ct as InlineCitation,
|
|
226
|
+
Ct as InlineCitationCard,
|
|
227
|
+
ut as InlineCitationCardBody,
|
|
228
|
+
dt as InlineCitationCardTrigger,
|
|
229
|
+
xt as InlineCitationCarousel,
|
|
230
|
+
Tt as InlineCitationCarouselContent,
|
|
231
|
+
ft as InlineCitationCarouselHeader,
|
|
232
|
+
gt as InlineCitationCarouselIndex,
|
|
233
|
+
St as InlineCitationCarouselItem,
|
|
234
|
+
ht as InlineCitationCarouselNext,
|
|
235
|
+
At as InlineCitationCarouselPrev,
|
|
236
|
+
It as InlineCitationQuote,
|
|
237
|
+
bt as InlineCitationSource,
|
|
238
|
+
wt as InlineCitationText,
|
|
239
|
+
ce as InlineDrawer,
|
|
240
|
+
F as Input,
|
|
241
|
+
D as InputField,
|
|
242
|
+
B as Kbd,
|
|
243
|
+
T as Label,
|
|
244
|
+
fo as LineChart,
|
|
245
|
+
b as Link,
|
|
246
|
+
xi as MarkdownText,
|
|
247
|
+
Mt as Message,
|
|
248
|
+
Bt as MessageAction,
|
|
249
|
+
vt as MessageActions,
|
|
250
|
+
Ft as MessageAttachment,
|
|
251
|
+
Rt as MessageAttachments,
|
|
252
|
+
Dt as MessageAvatar,
|
|
253
|
+
kt as MessageBranch,
|
|
254
|
+
Et as MessageBranchContent,
|
|
255
|
+
Qt as MessageBranchNext,
|
|
256
|
+
Nt as MessageBranchPage,
|
|
257
|
+
Ot as MessageBranchPrevious,
|
|
258
|
+
Vt as MessageBranchSelector,
|
|
259
|
+
Ht as MessageContent,
|
|
260
|
+
Kn as MessageError,
|
|
261
|
+
Ga as MessagePrimitive,
|
|
262
|
+
Lt as MessageResponse,
|
|
263
|
+
fi as MessageTiming,
|
|
264
|
+
yt as MessageToolbar,
|
|
265
|
+
$ as Modal,
|
|
266
|
+
ee as ModalBody,
|
|
267
|
+
oe as ModalDescription,
|
|
268
|
+
Ce as ModalDrawer,
|
|
269
|
+
re as ModalFooter,
|
|
270
|
+
te as ModalHeader,
|
|
271
|
+
ae as ModalTitle,
|
|
272
|
+
Sr as Navbar,
|
|
273
|
+
hr as NavbarBrand,
|
|
274
|
+
Ar as NavbarContent,
|
|
275
|
+
Ir as NavbarItem,
|
|
276
|
+
U as NumberField,
|
|
277
|
+
Fi as OpenUiLibraryProvider,
|
|
278
|
+
Br as Pagination,
|
|
279
|
+
Ur as Panel,
|
|
280
|
+
zr as PanelBody,
|
|
281
|
+
Wr as PanelFooter,
|
|
282
|
+
Kr as PanelHeader,
|
|
283
|
+
Xr as PanelTitle,
|
|
284
|
+
Yr as PanelToolbar,
|
|
285
|
+
go as PieChart,
|
|
286
|
+
lr as PixelBlastSVG,
|
|
287
|
+
de as Popover,
|
|
288
|
+
xe as PopoverContent,
|
|
289
|
+
Te as PopoverTrigger,
|
|
290
|
+
cr as Progress,
|
|
291
|
+
ur as ProgressCircle,
|
|
292
|
+
Gt as Queue,
|
|
293
|
+
Ut as QueueItem,
|
|
294
|
+
zt as QueueItemAction,
|
|
295
|
+
Wt as QueueItemActions,
|
|
296
|
+
Kt as QueueItemAttachment,
|
|
297
|
+
Xt as QueueItemContent,
|
|
298
|
+
Yt as QueueItemDescription,
|
|
299
|
+
Zt as QueueItemFile,
|
|
300
|
+
jt as QueueItemImage,
|
|
301
|
+
qt as QueueItemIndicator,
|
|
302
|
+
Jt as QueueList,
|
|
303
|
+
$t as QueueSection,
|
|
304
|
+
ea as QueueSectionContent,
|
|
305
|
+
oa as QueueSectionLabel,
|
|
306
|
+
ra as QueueSectionTrigger,
|
|
307
|
+
wi as QuoteBlock,
|
|
308
|
+
Pi as QuoteBlockIcon,
|
|
309
|
+
Mi as QuoteBlockRoot,
|
|
310
|
+
Bi as QuoteBlockText,
|
|
311
|
+
So as RadarChart,
|
|
312
|
+
ho as RadialBarChart,
|
|
313
|
+
H as Radio,
|
|
314
|
+
L as RadioGroup,
|
|
315
|
+
aa as Reasoning,
|
|
316
|
+
na as ReasoningContent,
|
|
317
|
+
ia as ReasoningTrigger,
|
|
318
|
+
tn as RenderAnswerToolUI,
|
|
319
|
+
Ao as ScatterChart,
|
|
320
|
+
q as SegmentedControl,
|
|
321
|
+
W as Select,
|
|
322
|
+
et as SelectionActionBar,
|
|
323
|
+
ot as SelectionActionBarAction,
|
|
324
|
+
os as SelectionToolbar,
|
|
325
|
+
rs as SelectionToolbarCopy,
|
|
326
|
+
Ua as SelectionToolbarPrimitive,
|
|
327
|
+
ts as SelectionToolbarQuote,
|
|
328
|
+
as as SelectionToolbarRoot,
|
|
329
|
+
la as Shimmer,
|
|
330
|
+
Fr as Sidebar,
|
|
331
|
+
Rr as SidebarAccount,
|
|
332
|
+
Dr as SidebarAction,
|
|
333
|
+
kr as SidebarBrand,
|
|
334
|
+
Er as SidebarFooter,
|
|
335
|
+
Qr as SidebarHeader,
|
|
336
|
+
Nr as SidebarHistory,
|
|
337
|
+
Or as SidebarHistoryItem,
|
|
338
|
+
Vr as SidebarItem,
|
|
339
|
+
Hr as SidebarNav,
|
|
340
|
+
Lr as SidebarSection,
|
|
341
|
+
yr as SidebarTrigger,
|
|
342
|
+
za as SimpleImageAttachmentAdapter,
|
|
343
|
+
xr as Skeleton,
|
|
344
|
+
Z as Slider,
|
|
345
|
+
Ri as SmartMessageText,
|
|
346
|
+
ki as Source,
|
|
347
|
+
Ei as SourceIcon,
|
|
348
|
+
Qi as SourceTitle,
|
|
349
|
+
Ni as Sources,
|
|
350
|
+
ca as SpeechInput,
|
|
351
|
+
c as Spinner,
|
|
352
|
+
ze as StatusAnswer,
|
|
353
|
+
We as StatusAnswerSchema,
|
|
354
|
+
_ as Switch,
|
|
355
|
+
Qo as Tab,
|
|
356
|
+
No as TabList,
|
|
357
|
+
Oo as TabPanel,
|
|
358
|
+
Vo as TabSeparator,
|
|
359
|
+
Bo as Table,
|
|
360
|
+
vo as TableBody,
|
|
361
|
+
Fo as TableCell,
|
|
362
|
+
Ro as TableColumn,
|
|
363
|
+
Do as TableHeader,
|
|
364
|
+
ko as TableRow,
|
|
365
|
+
Ho as Tabs,
|
|
366
|
+
ua as Task,
|
|
367
|
+
da as TaskContent,
|
|
368
|
+
xa as TaskItem,
|
|
369
|
+
Ta as TaskItemFile,
|
|
370
|
+
Sa as TaskProgress,
|
|
371
|
+
ha as TaskProgressDock,
|
|
372
|
+
fa as TaskTrigger,
|
|
373
|
+
A as Text,
|
|
374
|
+
E as Textarea,
|
|
375
|
+
qa as Thread,
|
|
376
|
+
en as ThreadComponentsContext,
|
|
377
|
+
$i as ThreadFollowupSuggestions,
|
|
378
|
+
cn as ThreadMessage,
|
|
379
|
+
Wa as ThreadPrimitive,
|
|
380
|
+
is as ThreadSuggestionItem,
|
|
381
|
+
ss as ThreadSuggestions,
|
|
382
|
+
$o as Timeline,
|
|
383
|
+
er as TimelineItem,
|
|
384
|
+
Be as ToastProvider,
|
|
385
|
+
Ia as Tool,
|
|
386
|
+
ba as ToolContent,
|
|
387
|
+
Vi as ToolFallback,
|
|
388
|
+
Hi as ToolFallbackApproval,
|
|
389
|
+
Li as ToolFallbackArgs,
|
|
390
|
+
yi as ToolFallbackContent,
|
|
391
|
+
_i as ToolFallbackError,
|
|
392
|
+
Gi as ToolFallbackResult,
|
|
393
|
+
Ui as ToolFallbackRoot,
|
|
394
|
+
zi as ToolFallbackTrigger,
|
|
395
|
+
Ki as ToolGroup,
|
|
396
|
+
Xi as ToolGroupContent,
|
|
397
|
+
Yi as ToolGroupRoot,
|
|
398
|
+
Zi as ToolGroupTrigger,
|
|
399
|
+
wa as ToolHeader,
|
|
400
|
+
Pa as ToolInput,
|
|
401
|
+
Ma as ToolOutput,
|
|
402
|
+
ge as Tooltip,
|
|
403
|
+
ls as TooltipIconButton,
|
|
404
|
+
i as TooltipProvider,
|
|
405
|
+
yo as Tree,
|
|
406
|
+
_o as TreeItem,
|
|
407
|
+
Io as TreemapChart,
|
|
408
|
+
Ke as TrendAnswer,
|
|
409
|
+
Xe as TrendAnswerSchema,
|
|
410
|
+
xn as UserActionBar,
|
|
411
|
+
Cn as UserMessage,
|
|
412
|
+
Pn as UserMessageAttachments,
|
|
413
|
+
va as VOICE_PALETTES,
|
|
414
|
+
Fa as VOICE_STATES,
|
|
415
|
+
Ra as VOICE_VARIANTS,
|
|
416
|
+
Da as Voice,
|
|
417
|
+
ka as VoiceConnectButton,
|
|
418
|
+
Ea as VoiceControl,
|
|
419
|
+
Qa as VoiceDisconnectButton,
|
|
420
|
+
Na as VoiceMuteButton,
|
|
421
|
+
Oa as VoiceStatusDot,
|
|
422
|
+
Ye as answerTool,
|
|
423
|
+
l as buttonVariants,
|
|
424
|
+
lo as carouselVariants,
|
|
425
|
+
r as cn,
|
|
426
|
+
Gn as createDirectiveText,
|
|
427
|
+
ei as fileVariants,
|
|
428
|
+
oi as formatFileSize,
|
|
429
|
+
ri as getBase64Size,
|
|
430
|
+
ti as getMimeTypeIcon,
|
|
431
|
+
ui as imageVariants,
|
|
432
|
+
f as inputBaseClass,
|
|
433
|
+
a as interactive,
|
|
434
|
+
on as isNewChatView,
|
|
435
|
+
Ka as makeAssistantToolUI,
|
|
436
|
+
cs as sourceVariants,
|
|
437
|
+
ji as toolGroupVariants,
|
|
438
|
+
Xa as useAssistantRuntime,
|
|
439
|
+
Ya as useAuiState,
|
|
440
|
+
Za as useLocalRuntime,
|
|
441
|
+
sa as useReasoning,
|
|
442
|
+
_r as useSidebar,
|
|
443
|
+
ve as useToast
|
|
444
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { FieldProps } from './field';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
type InputElement = HTMLInputElement | HTMLTextAreaElement;
|
|
4
|
+
type FieldOnlyProps = Pick<FieldProps, "label" | "description" | "error" | "required" | "className">;
|
|
5
|
+
type SharedNativeProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "className" | "type">;
|
|
6
|
+
export interface InputFieldProps extends SharedNativeProps, FieldOnlyProps {
|
|
7
|
+
/** Control size — sm / md / lg (defaults to md). */
|
|
8
|
+
size?: "sm" | "md" | "lg";
|
|
9
|
+
startContent?: React.ReactNode;
|
|
10
|
+
endContent?: React.ReactNode;
|
|
11
|
+
isInvalid?: boolean;
|
|
12
|
+
/** className applied to the control itself (not the field wrapper). */
|
|
13
|
+
inputClassName?: string;
|
|
14
|
+
/** Native input type when single-line; ignored when `multiline`. */
|
|
15
|
+
type?: React.HTMLInputTypeAttribute;
|
|
16
|
+
/** Render a multi-line textarea instead of a single-line input. */
|
|
17
|
+
multiline?: boolean;
|
|
18
|
+
/** Only used when `multiline` — passes through to `<textarea rows>`. */
|
|
19
|
+
rows?: number;
|
|
20
|
+
}
|
|
21
|
+
export declare const InputField: React.ForwardRefExoticComponent<InputFieldProps & React.RefAttributes<InputElement>>;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as e, jsxs as j } from "react/jsx-runtime";
|
|
3
|
+
import * as a from "react";
|
|
4
|
+
import { cn as k } from "../lib/cn.js";
|
|
5
|
+
import { EyeOff as B, Eye as S } from "../lib/icons.js";
|
|
6
|
+
import { inputBaseClass as _, Field as C } from "./field.js";
|
|
7
|
+
const H = {
|
|
8
|
+
sm: "h-8 text-xs",
|
|
9
|
+
md: "h-10 text-xs",
|
|
10
|
+
lg: "h-11 text-base"
|
|
11
|
+
}, O = a.forwardRef(
|
|
12
|
+
({
|
|
13
|
+
// Field props
|
|
14
|
+
label: l,
|
|
15
|
+
description: d,
|
|
16
|
+
error: s,
|
|
17
|
+
required: c,
|
|
18
|
+
className: w,
|
|
19
|
+
// Input props
|
|
20
|
+
id: y,
|
|
21
|
+
inputClassName: b,
|
|
22
|
+
size: N = "md",
|
|
23
|
+
startContent: o,
|
|
24
|
+
endContent: z,
|
|
25
|
+
isInvalid: u,
|
|
26
|
+
type: f,
|
|
27
|
+
multiline: i = !1,
|
|
28
|
+
rows: E,
|
|
29
|
+
...p
|
|
30
|
+
}, m) => {
|
|
31
|
+
const F = a.useId(), r = y ?? F, [n, I] = a.useState(!1), x = !i && f === "password", t = z ?? (x ? /* @__PURE__ */ e(
|
|
32
|
+
"button",
|
|
33
|
+
{
|
|
34
|
+
type: "button",
|
|
35
|
+
"aria-label": n ? "Hide password" : "Show password",
|
|
36
|
+
onClick: () => I((R) => !R),
|
|
37
|
+
className: "-mr-1 flex items-center rounded-xs p-1 outline-none transition-colors hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring",
|
|
38
|
+
children: n ? /* @__PURE__ */ e(B, {}) : /* @__PURE__ */ e(S, {})
|
|
39
|
+
}
|
|
40
|
+
) : void 0), g = k(
|
|
41
|
+
_,
|
|
42
|
+
i ? "min-h-20 resize-y py-2 text-xs" : H[N],
|
|
43
|
+
o && "pl-9",
|
|
44
|
+
t && "pr-9",
|
|
45
|
+
b
|
|
46
|
+
), h = i ? /* @__PURE__ */ e(
|
|
47
|
+
"textarea",
|
|
48
|
+
{
|
|
49
|
+
ref: m,
|
|
50
|
+
id: r,
|
|
51
|
+
rows: E ?? 3,
|
|
52
|
+
"aria-invalid": u || !!s || void 0,
|
|
53
|
+
className: g,
|
|
54
|
+
...p
|
|
55
|
+
}
|
|
56
|
+
) : /* @__PURE__ */ e(
|
|
57
|
+
"input",
|
|
58
|
+
{
|
|
59
|
+
ref: m,
|
|
60
|
+
id: r,
|
|
61
|
+
type: x && n ? "text" : f,
|
|
62
|
+
"aria-invalid": u || !!s || void 0,
|
|
63
|
+
className: g,
|
|
64
|
+
...p
|
|
65
|
+
}
|
|
66
|
+
), v = o || t ? (
|
|
67
|
+
// group/field: adornment icons follow the field's interactive states.
|
|
68
|
+
/* @__PURE__ */ j("div", { className: "group/field relative w-full", children: [
|
|
69
|
+
o && /* @__PURE__ */ e("span", { className: "pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3 text-muted-foreground transition-colors duration-(--duration-fast) group-focus-within/field:text-foreground group-hover/field:text-foreground [&_svg]:size-4", children: o }),
|
|
70
|
+
h,
|
|
71
|
+
t && /* @__PURE__ */ e("span", { className: "absolute inset-y-0 right-0 flex items-center pr-3 text-muted-foreground transition-colors duration-(--duration-fast) group-focus-within/field:text-foreground group-hover/field:text-foreground [&_svg]:size-4", children: t })
|
|
72
|
+
] })
|
|
73
|
+
) : h;
|
|
74
|
+
return !l && !d && !s && !c ? v : /* @__PURE__ */ e(
|
|
75
|
+
C,
|
|
76
|
+
{
|
|
77
|
+
label: l,
|
|
78
|
+
description: d,
|
|
79
|
+
error: s,
|
|
80
|
+
required: c,
|
|
81
|
+
htmlFor: r,
|
|
82
|
+
className: w,
|
|
83
|
+
children: v
|
|
84
|
+
}
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
);
|
|
88
|
+
O.displayName = "InputField";
|
|
89
|
+
export {
|
|
90
|
+
O as InputField
|
|
91
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> {
|
|
3
|
+
size?: "sm" | "md" | "lg";
|
|
4
|
+
startContent?: React.ReactNode;
|
|
5
|
+
endContent?: React.ReactNode;
|
|
6
|
+
isInvalid?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as e, jsxs as g } from "react/jsx-runtime";
|
|
3
|
+
import * as l from "react";
|
|
4
|
+
import { cn as v } from "../lib/cn.js";
|
|
5
|
+
import { EyeOff as h, Eye as w } from "../lib/icons.js";
|
|
6
|
+
import { inputBaseClass as b } from "./field.js";
|
|
7
|
+
const y = {
|
|
8
|
+
sm: "h-8 text-xs",
|
|
9
|
+
md: "h-10 text-xs",
|
|
10
|
+
lg: "h-11 text-base"
|
|
11
|
+
}, N = l.forwardRef(
|
|
12
|
+
({
|
|
13
|
+
className: a,
|
|
14
|
+
size: d = "md",
|
|
15
|
+
startContent: o,
|
|
16
|
+
endContent: u,
|
|
17
|
+
isInvalid: f,
|
|
18
|
+
type: t,
|
|
19
|
+
...c
|
|
20
|
+
}, p) => {
|
|
21
|
+
const [r, m] = l.useState(!1), i = t === "password", s = u ?? (i ? /* @__PURE__ */ e(
|
|
22
|
+
"button",
|
|
23
|
+
{
|
|
24
|
+
type: "button",
|
|
25
|
+
"aria-label": r ? "Hide password" : "Show password",
|
|
26
|
+
onClick: () => m((x) => !x),
|
|
27
|
+
className: "-mr-1 flex items-center rounded-xs p-1 outline-none transition-colors hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring",
|
|
28
|
+
children: r ? /* @__PURE__ */ e(h, {}) : /* @__PURE__ */ e(w, {})
|
|
29
|
+
}
|
|
30
|
+
) : void 0), n = /* @__PURE__ */ e(
|
|
31
|
+
"input",
|
|
32
|
+
{
|
|
33
|
+
ref: p,
|
|
34
|
+
type: i && r ? "text" : t,
|
|
35
|
+
"aria-invalid": f || void 0,
|
|
36
|
+
className: v(
|
|
37
|
+
b,
|
|
38
|
+
y[d],
|
|
39
|
+
o && "pl-9",
|
|
40
|
+
s && "pr-9",
|
|
41
|
+
a
|
|
42
|
+
),
|
|
43
|
+
...c
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
return !o && !s ? n : (
|
|
47
|
+
// group/field: adornment icons follow the field's interactive states —
|
|
48
|
+
// muted at rest, full black while hovered/focused (same signal as the
|
|
49
|
+
// border snapping to brand).
|
|
50
|
+
/* @__PURE__ */ g("div", { className: "group/field relative w-full", children: [
|
|
51
|
+
o && /* @__PURE__ */ e("span", { className: "pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3 text-muted-foreground transition-colors duration-(--duration-fast) group-focus-within/field:text-foreground group-hover/field:text-foreground [&_svg]:size-4", children: o }),
|
|
52
|
+
n,
|
|
53
|
+
s && /* @__PURE__ */ e("span", { className: "absolute inset-y-0 right-0 flex items-center pr-3 text-muted-foreground transition-colors duration-(--duration-fast) group-focus-within/field:text-foreground group-hover/field:text-foreground [&_svg]:size-4", children: s })
|
|
54
|
+
] })
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
);
|
|
58
|
+
N.displayName = "Input";
|
|
59
|
+
export {
|
|
60
|
+
N as Input
|
|
61
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface KbdProps extends React.HTMLAttributes<HTMLElement> {
|
|
3
|
+
/** Render one styled key per string. Falls back to `children` when omitted. */
|
|
4
|
+
keys?: string[];
|
|
5
|
+
}
|
|
6
|
+
export declare const Kbd: React.ForwardRefExoticComponent<KbdProps & React.RefAttributes<HTMLElement>>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
3
|
+
import * as a from "react";
|
|
4
|
+
import { cn as s } from "../lib/cn.js";
|
|
5
|
+
const c = a.forwardRef(
|
|
6
|
+
({ className: i, keys: e, children: o, ...t }, n) => {
|
|
7
|
+
const m = s(
|
|
8
|
+
"inline-flex items-center justify-center rounded-md border border-border bg-muted",
|
|
9
|
+
"px-1.5 min-w-5 h-5 text-xs font-medium text-muted-foreground",
|
|
10
|
+
i
|
|
11
|
+
);
|
|
12
|
+
return e && e.length > 0 ? /* @__PURE__ */ r(
|
|
13
|
+
"span",
|
|
14
|
+
{
|
|
15
|
+
ref: n,
|
|
16
|
+
className: "inline-flex items-center gap-1",
|
|
17
|
+
...t,
|
|
18
|
+
children: e.map((d) => /* @__PURE__ */ r("kbd", { className: m, children: d }, d))
|
|
19
|
+
}
|
|
20
|
+
) : /* @__PURE__ */ r("kbd", { ref: n, className: m, ...t, children: o });
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
c.displayName = "Kbd";
|
|
24
|
+
export {
|
|
25
|
+
c as Kbd
|
|
26
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const colorClasses: {
|
|
3
|
+
readonly default: "text-foreground";
|
|
4
|
+
readonly muted: "text-muted-foreground";
|
|
5
|
+
readonly primary: "text-brand";
|
|
6
|
+
};
|
|
7
|
+
export interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
8
|
+
color?: keyof typeof colorClasses;
|
|
9
|
+
/** Opens in a new tab with safe rel; a ↗ arrow fades in on hover to signal
|
|
10
|
+
* the link leaves the app. */
|
|
11
|
+
isExternal?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const Link: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
14
|
+
export {};
|