@cognite/aura 0.3.0 → 0.3.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.
- package/DESIGN.md +2243 -729
- package/README.md +133 -11
- package/dist/components/index.d.ts +3 -2
- package/dist/components/index.js +183 -176
- package/dist/components/ui/core/action-toolbar/action-toolbar.js +4 -4
- package/dist/components/ui/core/alert/alert.js +3 -3
- package/dist/components/ui/core/banner/banner.js +6 -6
- package/dist/components/ui/core/button/button.js +4 -4
- package/dist/components/ui/core/checkbox/checkbox.js +8 -8
- package/dist/components/ui/core/code-block/code-block.js +6 -6
- package/dist/components/ui/core/date-time-pickers/date-picker/date-picker.d.ts +15 -0
- package/dist/components/ui/core/date-time-pickers/date-picker/date-picker.js +73 -0
- package/dist/components/ui/core/date-time-pickers/date-picker/index.d.ts +3 -0
- package/dist/components/ui/core/date-time-pickers/date-picker/types.d.ts +17 -0
- package/dist/components/ui/core/date-time-pickers/date-picker/use-date-picker.d.ts +3 -0
- package/dist/components/ui/core/date-time-pickers/date-picker/use-date-picker.js +52 -0
- package/dist/components/ui/core/date-time-pickers/date-range-picker/date-range-picker.js +64 -75
- package/dist/components/ui/core/date-time-pickers/date-range-picker/types.d.ts +1 -2
- package/dist/components/ui/core/date-time-pickers/date-range-picker/use-date-range-picker.js +51 -64
- package/dist/components/ui/core/date-time-pickers/date-time-range-picker/date-time-range-picker.js +146 -161
- package/dist/components/ui/core/date-time-pickers/date-time-range-picker/types.d.ts +1 -2
- package/dist/components/ui/core/date-time-pickers/date-time-range-picker/use-date-time-range-picker.js +124 -137
- package/dist/components/ui/core/date-time-pickers/index.d.ts +4 -0
- package/dist/components/ui/core/date-time-pickers/index.js +10 -0
- package/dist/components/ui/core/date-time-pickers/shared/calendar/calendar.js +8 -8
- package/dist/components/ui/core/date-time-pickers/shared/date-time-input/date-time-input.d.ts +1 -1
- package/dist/components/ui/core/date-time-pickers/shared/date-time-input/date-time-input.js +1 -1
- package/dist/components/ui/core/date-time-pickers/shared/hooks/use-popover-state.d.ts +0 -2
- package/dist/components/ui/core/date-time-pickers/shared/hooks/use-popover-state.js +18 -34
- package/dist/components/ui/core/date-time-pickers/shared/hooks/use-single-date-state.d.ts +23 -0
- package/dist/components/ui/core/date-time-pickers/shared/hooks/use-single-date-state.js +32 -0
- package/dist/components/ui/core/date-time-pickers/shared/time-picker-panel/index.d.ts +2 -0
- package/dist/components/ui/core/date-time-pickers/shared/time-picker-panel/time-picker-panel.d.ts +19 -0
- package/dist/components/ui/core/date-time-pickers/shared/time-picker-panel/time-picker-panel.js +41 -0
- package/dist/components/ui/core/date-time-pickers/time-picker/index.d.ts +3 -0
- package/dist/components/ui/core/date-time-pickers/time-picker/time-picker.d.ts +16 -0
- package/dist/components/ui/core/date-time-pickers/time-picker/time-picker.js +100 -0
- package/dist/components/ui/core/date-time-pickers/time-picker/types.d.ts +23 -0
- package/dist/components/ui/core/date-time-pickers/time-picker/use-time-picker.d.ts +3 -0
- package/dist/components/ui/core/date-time-pickers/time-picker/use-time-picker.js +64 -0
- package/dist/components/ui/core/date-time-pickers/utils/calendar-utils.js +3 -3
- package/dist/components/ui/core/date-time-pickers/utils/time-utils.js +1 -1
- package/dist/components/ui/core/dropdown-menu/dropdown-menu.d.ts +17 -15
- package/dist/components/ui/core/dropdown-menu/dropdown-menu.js +83 -85
- package/dist/components/ui/core/hover-card/hover-card.js +3 -3
- package/dist/components/ui/core/input/input.js +1 -1
- package/dist/components/ui/core/message/message.js +387 -101
- package/dist/components/ui/core/pagination/pagination.js +9 -7
- package/dist/components/ui/core/prompt-input/prompt-input.js +16 -16
- package/dist/components/ui/core/radio-group/radio-group.js +7 -7
- package/dist/components/ui/core/reasoning/reasoning.js +1 -1
- package/dist/components/ui/core/segmented-control/segmented-control.js +3 -3
- package/dist/components/ui/core/select/select.d.ts +2 -1
- package/dist/components/ui/core/select/select.js +134 -110
- package/dist/components/ui/core/shimmer/shimmer.d.ts +3 -1
- package/dist/components/ui/core/shimmer/shimmer.js +89 -49
- package/dist/components/ui/core/tabs/tabs.js +3 -3
- package/dist/components/ui/core/textarea/textarea.js +1 -1
- package/dist/components/ui/core/toggle/toggle.d.ts +15 -0
- package/dist/components/ui/core/toggle/toggle.js +74 -0
- package/dist/components/ui/core/tool/tool.js +3 -3
- package/dist/index.d.ts +1 -1
- package/dist/lib/portal-container-context.js +3 -3
- package/dist/lib/use-controllable-state.js +17 -17
- package/dist/lib/utils.d.ts +1 -1
- package/dist/lib/utils.js +7 -7
- package/dist/styles.css +1 -1
- package/dist/styles.source.css +3 -0
- package/package.json +200 -18
- package/dist/index.js +0 -308
package/dist/components/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Accordion as r, AccordionContent as e, AccordionItem as n, AccordionTrigger as a } from "./ui/core/accordion/accordion.js";
|
|
2
|
-
import { ActionToolbar as i, ActionToolbarAction as m, ActionToolbarActionClear as l, ActionToolbarActions as u, ActionToolbarPrimaryAction as d, ActionToolbarSelection as
|
|
3
|
-
import { Card as g, CardActions as I, CardContent as P, CardDescription as
|
|
2
|
+
import { ActionToolbar as i, ActionToolbarAction as m, ActionToolbarActionClear as l, ActionToolbarActions as u, ActionToolbarPrimaryAction as d, ActionToolbarSelection as c, ActionToolbarSelectionSummary as C } from "./ui/core/action-toolbar/action-toolbar.js";
|
|
3
|
+
import { Card as g, CardActions as I, CardContent as P, CardDescription as x, CardFooter as T, CardFooterEnd as b, CardFooterStart as S, CardHeader as f, CardHeaderCenter as B, CardHeaderEnd as D, CardHeaderStart as A, CardTitle as M } from "./ui/core/card/card.js";
|
|
4
4
|
import { Button as G, buttonVariants as L } from "./ui/core/button/button.js";
|
|
5
|
-
import { ButtonGroup as
|
|
5
|
+
import { ButtonGroup as w, ButtonGroupSeparator as H, ButtonGroupText as R, buttonGroupVariants as h } from "./ui/core/button-group/button-group.js";
|
|
6
6
|
import { Avatar as E, AvatarFallback as V, AvatarIcon as F, AvatarImage as K } from "./ui/core/avatar/avatar.js";
|
|
7
7
|
import { Label as N } from "./ui/core/label/label.js";
|
|
8
8
|
import { CheckboxGroup as U, CheckboxItem as j, CheckboxItemControl as q, CheckboxItemDescription as z, CheckboxItemLabel as J } from "./ui/core/checkbox/checkbox.js";
|
|
@@ -12,17 +12,17 @@ import { Loader as $ } from "./ui/core/loader/loader.js";
|
|
|
12
12
|
import { Shimmer as to } from "./ui/core/shimmer/shimmer.js";
|
|
13
13
|
import { CodeBlock as eo, CodeBlockCollapseButton as no, CodeBlockCopyButton as ao, CodeBlockDownloadButton as po } from "./ui/core/code-block/code-block.js";
|
|
14
14
|
import { Separator as mo } from "./ui/core/separator/separator.js";
|
|
15
|
-
import { Tooltip as uo, TooltipContent as
|
|
16
|
-
import { Tool as Io, ToolContent as Po, ToolHeader as
|
|
17
|
-
import { DropdownMenu as fo, DropdownMenuCheckboxItem as Bo, DropdownMenuContent as
|
|
15
|
+
import { Tooltip as uo, TooltipContent as co, TooltipProvider as Co, TooltipTrigger as so } from "./ui/core/tooltip/tooltip.js";
|
|
16
|
+
import { Tool as Io, ToolContent as Po, ToolHeader as xo, ToolInput as To, ToolOutput as bo } from "./ui/core/tool/tool.js";
|
|
17
|
+
import { DropdownMenu as fo, DropdownMenuCheckboxItem as Bo, DropdownMenuContent as Do, DropdownMenuGroup as Ao, DropdownMenuHeader as Mo, DropdownMenuItem as vo, DropdownMenuLabel as Go, DropdownMenuPortal as Lo, DropdownMenuRadioGroup as ko, DropdownMenuRadioItem as wo, DropdownMenuSectionLabel as Ho, DropdownMenuSeparator as Ro, DropdownMenuShortcut as ho, DropdownMenuSub as yo, DropdownMenuSubContent as Eo, DropdownMenuSubTrigger as Vo, DropdownMenuTrigger as Fo } from "./ui/core/dropdown-menu/dropdown-menu.js";
|
|
18
18
|
import { RadioGroup as Oo, RadioGroupItem as No, RadioGroupItemControl as Qo, RadioGroupItemDescription as Uo, RadioGroupItemLabel as jo } from "./ui/core/radio-group/radio-group.js";
|
|
19
19
|
import { Badge as zo, badgeVariants as Jo } from "./ui/core/badge/badge.js";
|
|
20
20
|
import { Banner as Xo, BannerAction as Yo, BannerActions as Zo, BannerClose as _o, BannerIcon as $o, BannerStatus as ot, BannerTitle as tt } from "./ui/core/banner/banner.js";
|
|
21
21
|
import { Breadcrumb as et, BreadcrumbEllipsis as nt, BreadcrumbEllipsisButton as at, BreadcrumbItem as pt, BreadcrumbLink as it, BreadcrumbList as mt, BreadcrumbPage as lt, BreadcrumbPageButton as ut, BreadcrumbSeparator as dt } from "./ui/core/breadcrumb/breadcrumb.js";
|
|
22
|
-
import { Topbar as
|
|
23
|
-
import { Collapsible as Bt, CollapsibleContent as
|
|
22
|
+
import { Topbar as Ct, TopbarAction as st, TopbarBreadcrumbs as gt, TopbarCenter as It, TopbarIcon as Pt, TopbarLeft as xt, TopbarMetadata as Tt, TopbarRight as bt, TopbarThemeSwitcher as St } from "./ui/core/topbar/topbar.js";
|
|
23
|
+
import { Collapsible as Bt, CollapsibleContent as Dt, CollapsibleTrigger as At } from "./ui/core/collapsible/collapsible.js";
|
|
24
24
|
import { HoverCard as vt, HoverCardContent as Gt, HoverCardTrigger as Lt } from "./ui/core/hover-card/hover-card.js";
|
|
25
|
-
import { Select as
|
|
25
|
+
import { Select as wt, SelectContent as Ht, SelectGroup as Rt, SelectItem as ht, SelectLabel as yt, SelectScrollDownButton as Et, SelectScrollUpButton as Vt, SelectSeparator as Ft, SelectTrigger as Kt, SelectValue as Ot } from "./ui/core/select/select.js";
|
|
26
26
|
import { SegmentedControl as Qt, SegmentedControlButton as Ut, SegmentedControlContent as jt, SegmentedControlList as qt, segmentedControlButtonVariants as zt, segmentedControlListVariants as Jt } from "./ui/core/segmented-control/segmented-control.js";
|
|
27
27
|
import { Skeleton as Xt } from "./ui/core/skeleton/skeleton.js";
|
|
28
28
|
import { Toaster as Zt } from "./ui/core/sonner-toast/sonner-toast.js";
|
|
@@ -30,27 +30,30 @@ import { Input as $t } from "./ui/core/input/input.js";
|
|
|
30
30
|
import { Kbd as tr, KbdGroup as rr } from "./ui/core/kbd/kbd.js";
|
|
31
31
|
import { Progress as nr } from "./ui/core/progress/progress.js";
|
|
32
32
|
import { Textarea as pr } from "./ui/core/textarea/textarea.js";
|
|
33
|
-
import { Tabs as mr, TabsLabel as lr, TabsList as ur, TabsPanel as dr, TabsTrigger as
|
|
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 {
|
|
33
|
+
import { Tabs as mr, TabsLabel as lr, TabsList as ur, TabsPanel as dr, TabsTrigger as cr, tabsListVariants as Cr, tabsTriggerVariants as sr } from "./ui/core/tabs/tabs.js";
|
|
34
|
+
import { Toggle as Ir, toggleVariants as Pr } from "./ui/core/toggle/toggle.js";
|
|
35
|
+
import { InputGroup as Tr, InputGroupAddon as br, InputGroupButton as Sr, InputGroupInput as fr, InputGroupText as Br, InputGroupTextarea as Dr } from "./ui/core/input-group/input-group.js";
|
|
36
|
+
import { Alert as Mr, AlertActions as vr, AlertButton as Gr, AlertClose as Lr, AlertDescription as kr, AlertTitle as wr } from "./ui/core/alert/alert.js";
|
|
37
|
+
import { EmptyState as Rr, EmptyStateActions as hr, EmptyStateDescription as yr, EmptyStateIcon as Er, EmptyStateTitle as Vr } from "./ui/core/empty-state/empty-state.js";
|
|
38
|
+
import { Message as Kr, MessageAction as Or, MessageActions as Nr, MessageContent as Qr, MessageResponse as Ur } from "./ui/core/message/message.js";
|
|
39
|
+
import { PromptInput as qr, PromptInputActionMenu as zr, PromptInputActionMenuContent as Jr, PromptInputActionMenuItem as Wr, PromptInputActionMenuTrigger as Xr, PromptInputBody as Yr, PromptInputButton as Zr, PromptInputCommand as _r, PromptInputCommandEmpty as $r, PromptInputCommandGroup as oe, PromptInputCommandInput as te, PromptInputCommandItem as re, PromptInputCommandList as ee, PromptInputCommandSeparator as ne, PromptInputFooter as ae, PromptInputHeader as pe, PromptInputHoverCard as ie, PromptInputHoverCardContent as me, PromptInputHoverCardTrigger as le, PromptInputModelSelect as ue, PromptInputModelSelectContent as de, PromptInputModelSelectItem as ce, PromptInputModelSelectTrigger as Ce, PromptInputModelSelectValue as se, PromptInputProvider as ge, PromptInputSubmit as Ie, PromptInputTab as Pe, PromptInputTabBody as xe, PromptInputTabItem as Te, PromptInputTabLabel as be, PromptInputTabsList as Se, PromptInputTextarea as fe, PromptInputTools as Be, usePromptInputController as De } from "./ui/core/prompt-input/prompt-input.js";
|
|
40
|
+
import { Dialog as Me, DialogClose as ve, DialogContent as Ge, DialogDescription as Le, DialogFooter as ke, DialogHeader as we, DialogOverlay as He, DialogPortal as Re, DialogTitle as he, DialogTrigger as ye } from "./ui/core/dialog/dialog.js";
|
|
41
|
+
import { Command as Ve, CommandDialog as Fe, CommandEmpty as Ke, CommandGroup as Oe, CommandInput as Ne, CommandItem as Qe, CommandList as Ue, CommandSeparator as je, CommandShortcut as qe } from "./ui/core/command/command.js";
|
|
42
|
+
import { Count as Je, countVariants as We } from "./ui/core/count/count.js";
|
|
43
|
+
import { InlineCitation as Ye, InlineCitationCard as Ze, InlineCitationCardBody as _e, InlineCitationCardTrigger as $e, InlineCitationGroup as on, InlineCitationLink as tn, InlineCitationQuote as rn, InlineCitationSource as en, InlineCitationText as nn } from "./ui/core/inline-citation/inline-citation.js";
|
|
44
|
+
import { Reasoning as pn, ReasoningContent as mn, ReasoningHeader as ln, ReasoningItem as un } from "./ui/core/reasoning/reasoning.js";
|
|
45
|
+
import { ScrollArea as cn, ScrollBar as Cn } from "./ui/core/scroll-area/scroll-area.js";
|
|
46
|
+
import { Search as gn } from "./ui/core/search/search.js";
|
|
47
|
+
import { Popover as Pn, PopoverClose as xn, PopoverContent as Tn, PopoverDescription as bn, PopoverHeader as Sn, PopoverHeaderContent as fn, PopoverSlot as Bn, PopoverTitle as Dn, PopoverTrigger as An } from "./ui/core/popover/popover.js";
|
|
48
|
+
import { Pagination as vn, PaginationContent as Gn, PaginationEllipsis as Ln, PaginationFirst as kn, PaginationItem as wn, PaginationLast as Hn, PaginationLink as Rn, PaginationNext as hn, PaginationPrevious as yn, PaginationResultsPerPage as En, PaginationResultsPerPageLabel as Vn, PaginationSelectTrigger as Fn, PaginationStatus as Kn } from "./ui/core/pagination/pagination.js";
|
|
49
|
+
import { Source as Nn, Sources as Qn, SourcesTitle as Un } from "./ui/core/sources/sources.js";
|
|
50
|
+
import { PortalContainerContext as qn } from "../lib/portal-container-context.js";
|
|
51
|
+
import { DatePicker as Jn } from "./ui/core/date-time-pickers/date-picker/date-picker.js";
|
|
52
|
+
import { DateRangePicker as Xn } from "./ui/core/date-time-pickers/date-range-picker/date-range-picker.js";
|
|
53
|
+
import { DateTimeRangePicker as Zn } from "./ui/core/date-time-pickers/date-time-range-picker/date-time-range-picker.js";
|
|
54
|
+
import { PaginationTeleport as $n } from "./ui/core/pagination/pagination-teleport.js";
|
|
55
|
+
import { TimePicker as ta } from "./ui/core/date-time-pickers/time-picker/time-picker.js";
|
|
56
|
+
import { toast as ea } from "sonner";
|
|
54
57
|
export {
|
|
55
58
|
r as Accordion,
|
|
56
59
|
e as AccordionContent,
|
|
@@ -61,14 +64,14 @@ export {
|
|
|
61
64
|
l as ActionToolbarActionClear,
|
|
62
65
|
u as ActionToolbarActions,
|
|
63
66
|
d as ActionToolbarPrimaryAction,
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
67
|
+
c as ActionToolbarSelection,
|
|
68
|
+
C as ActionToolbarSelectionSummary,
|
|
69
|
+
Mr as Alert,
|
|
70
|
+
vr as AlertActions,
|
|
71
|
+
Gr as AlertButton,
|
|
72
|
+
Lr as AlertClose,
|
|
73
|
+
kr as AlertDescription,
|
|
74
|
+
wr as AlertTitle,
|
|
72
75
|
E as Avatar,
|
|
73
76
|
V as AvatarFallback,
|
|
74
77
|
F as AvatarIcon,
|
|
@@ -91,20 +94,20 @@ export {
|
|
|
91
94
|
ut as BreadcrumbPageButton,
|
|
92
95
|
dt as BreadcrumbSeparator,
|
|
93
96
|
G as Button,
|
|
94
|
-
|
|
97
|
+
w as ButtonGroup,
|
|
95
98
|
H as ButtonGroupSeparator,
|
|
96
99
|
R as ButtonGroupText,
|
|
97
100
|
g as Card,
|
|
98
101
|
I as CardActions,
|
|
99
102
|
P as CardContent,
|
|
100
|
-
|
|
101
|
-
|
|
103
|
+
x as CardDescription,
|
|
104
|
+
T as CardFooter,
|
|
102
105
|
b as CardFooterEnd,
|
|
103
106
|
S as CardFooterStart,
|
|
104
107
|
f as CardHeader,
|
|
105
108
|
B as CardHeaderCenter,
|
|
106
|
-
|
|
107
|
-
|
|
109
|
+
D as CardHeaderEnd,
|
|
110
|
+
A as CardHeaderStart,
|
|
108
111
|
M as CardTitle,
|
|
109
112
|
U as CheckboxGroup,
|
|
110
113
|
j as CheckboxItem,
|
|
@@ -117,40 +120,41 @@ export {
|
|
|
117
120
|
ao as CodeBlockCopyButton,
|
|
118
121
|
po as CodeBlockDownloadButton,
|
|
119
122
|
Bt as Collapsible,
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
123
|
+
Dt as CollapsibleContent,
|
|
124
|
+
At as CollapsibleTrigger,
|
|
125
|
+
Ve as Command,
|
|
126
|
+
Fe as CommandDialog,
|
|
127
|
+
Ke as CommandEmpty,
|
|
128
|
+
Oe as CommandGroup,
|
|
129
|
+
Ne as CommandInput,
|
|
130
|
+
Qe as CommandItem,
|
|
131
|
+
Ue as CommandList,
|
|
132
|
+
je as CommandSeparator,
|
|
133
|
+
qe as CommandShortcut,
|
|
134
|
+
Je as Count,
|
|
135
|
+
Jn as DatePicker,
|
|
136
|
+
Xn as DateRangePicker,
|
|
137
|
+
Zn as DateTimeRangePicker,
|
|
138
|
+
Me as Dialog,
|
|
139
|
+
ve as DialogClose,
|
|
140
|
+
Ge as DialogContent,
|
|
141
|
+
Le as DialogDescription,
|
|
142
|
+
ke as DialogFooter,
|
|
143
|
+
we as DialogHeader,
|
|
144
|
+
He as DialogOverlay,
|
|
145
|
+
Re as DialogPortal,
|
|
146
|
+
he as DialogTitle,
|
|
147
|
+
ye as DialogTrigger,
|
|
144
148
|
fo as DropdownMenu,
|
|
145
149
|
Bo as DropdownMenuCheckboxItem,
|
|
146
|
-
|
|
147
|
-
|
|
150
|
+
Do as DropdownMenuContent,
|
|
151
|
+
Ao as DropdownMenuGroup,
|
|
148
152
|
Mo as DropdownMenuHeader,
|
|
149
153
|
vo as DropdownMenuItem,
|
|
150
154
|
Go as DropdownMenuLabel,
|
|
151
155
|
Lo as DropdownMenuPortal,
|
|
152
|
-
|
|
153
|
-
|
|
156
|
+
ko as DropdownMenuRadioGroup,
|
|
157
|
+
wo as DropdownMenuRadioItem,
|
|
154
158
|
Ho as DropdownMenuSectionLabel,
|
|
155
159
|
Ro as DropdownMenuSeparator,
|
|
156
160
|
ho as DropdownMenuShortcut,
|
|
@@ -158,115 +162,115 @@ export {
|
|
|
158
162
|
Eo as DropdownMenuSubContent,
|
|
159
163
|
Vo as DropdownMenuSubTrigger,
|
|
160
164
|
Fo as DropdownMenuTrigger,
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
165
|
+
Rr as EmptyState,
|
|
166
|
+
hr as EmptyStateActions,
|
|
167
|
+
yr as EmptyStateDescription,
|
|
168
|
+
Er as EmptyStateIcon,
|
|
169
|
+
Vr as EmptyStateTitle,
|
|
166
170
|
Z as HelperText,
|
|
167
171
|
vt as HoverCard,
|
|
168
172
|
Gt as HoverCardContent,
|
|
169
173
|
Lt as HoverCardTrigger,
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
174
|
+
Ye as InlineCitation,
|
|
175
|
+
Ze as InlineCitationCard,
|
|
176
|
+
_e as InlineCitationCardBody,
|
|
177
|
+
$e as InlineCitationCardTrigger,
|
|
178
|
+
on as InlineCitationGroup,
|
|
179
|
+
tn as InlineCitationLink,
|
|
180
|
+
rn as InlineCitationQuote,
|
|
181
|
+
en as InlineCitationSource,
|
|
182
|
+
nn as InlineCitationText,
|
|
179
183
|
$t as Input,
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
184
|
+
Tr as InputGroup,
|
|
185
|
+
br as InputGroupAddon,
|
|
186
|
+
Sr as InputGroupButton,
|
|
187
|
+
fr as InputGroupInput,
|
|
188
|
+
Br as InputGroupText,
|
|
189
|
+
Dr as InputGroupTextarea,
|
|
186
190
|
tr as Kbd,
|
|
187
191
|
rr as KbdGroup,
|
|
188
192
|
N as Label,
|
|
189
193
|
$ as Loader,
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
194
|
+
Kr as Message,
|
|
195
|
+
Or as MessageAction,
|
|
196
|
+
Nr as MessageActions,
|
|
197
|
+
Qr as MessageContent,
|
|
198
|
+
Ur as MessageResponse,
|
|
199
|
+
vn as Pagination,
|
|
200
|
+
Gn as PaginationContent,
|
|
201
|
+
Ln as PaginationEllipsis,
|
|
202
|
+
kn as PaginationFirst,
|
|
203
|
+
wn as PaginationItem,
|
|
204
|
+
Hn as PaginationLast,
|
|
205
|
+
Rn as PaginationLink,
|
|
206
|
+
hn as PaginationNext,
|
|
207
|
+
yn as PaginationPrevious,
|
|
208
|
+
En as PaginationResultsPerPage,
|
|
209
|
+
Vn as PaginationResultsPerPageLabel,
|
|
210
|
+
Fn as PaginationSelectTrigger,
|
|
211
|
+
Kn as PaginationStatus,
|
|
212
|
+
$n as PaginationTeleport,
|
|
213
|
+
Pn as Popover,
|
|
214
|
+
xn as PopoverClose,
|
|
215
|
+
Tn as PopoverContent,
|
|
216
|
+
bn as PopoverDescription,
|
|
217
|
+
Sn as PopoverHeader,
|
|
218
|
+
fn as PopoverHeaderContent,
|
|
219
|
+
Bn as PopoverSlot,
|
|
220
|
+
Dn as PopoverTitle,
|
|
221
|
+
An as PopoverTrigger,
|
|
222
|
+
qn as PortalContainerContext,
|
|
219
223
|
nr as Progress,
|
|
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
|
-
|
|
251
|
-
|
|
252
|
-
|
|
224
|
+
qr as PromptInput,
|
|
225
|
+
zr as PromptInputActionMenu,
|
|
226
|
+
Jr as PromptInputActionMenuContent,
|
|
227
|
+
Wr as PromptInputActionMenuItem,
|
|
228
|
+
Xr as PromptInputActionMenuTrigger,
|
|
229
|
+
Yr as PromptInputBody,
|
|
230
|
+
Zr as PromptInputButton,
|
|
231
|
+
_r as PromptInputCommand,
|
|
232
|
+
$r as PromptInputCommandEmpty,
|
|
233
|
+
oe as PromptInputCommandGroup,
|
|
234
|
+
te as PromptInputCommandInput,
|
|
235
|
+
re as PromptInputCommandItem,
|
|
236
|
+
ee as PromptInputCommandList,
|
|
237
|
+
ne as PromptInputCommandSeparator,
|
|
238
|
+
ae as PromptInputFooter,
|
|
239
|
+
pe as PromptInputHeader,
|
|
240
|
+
ie as PromptInputHoverCard,
|
|
241
|
+
me as PromptInputHoverCardContent,
|
|
242
|
+
le as PromptInputHoverCardTrigger,
|
|
243
|
+
ue as PromptInputModelSelect,
|
|
244
|
+
de as PromptInputModelSelectContent,
|
|
245
|
+
ce as PromptInputModelSelectItem,
|
|
246
|
+
Ce as PromptInputModelSelectTrigger,
|
|
247
|
+
se as PromptInputModelSelectValue,
|
|
248
|
+
ge as PromptInputProvider,
|
|
249
|
+
Ie as PromptInputSubmit,
|
|
250
|
+
Pe as PromptInputTab,
|
|
251
|
+
xe as PromptInputTabBody,
|
|
252
|
+
Te as PromptInputTabItem,
|
|
253
|
+
be as PromptInputTabLabel,
|
|
254
|
+
Se as PromptInputTabsList,
|
|
255
|
+
fe as PromptInputTextarea,
|
|
256
|
+
Be as PromptInputTools,
|
|
253
257
|
Oo as RadioGroup,
|
|
254
258
|
No as RadioGroupItem,
|
|
255
259
|
Qo as RadioGroupItemControl,
|
|
256
260
|
Uo as RadioGroupItemDescription,
|
|
257
261
|
jo as RadioGroupItemLabel,
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
262
|
+
pn as Reasoning,
|
|
263
|
+
mn as ReasoningContent,
|
|
264
|
+
ln as ReasoningHeader,
|
|
265
|
+
un as ReasoningItem,
|
|
266
|
+
cn as ScrollArea,
|
|
267
|
+
Cn as ScrollBar,
|
|
268
|
+
gn as Search,
|
|
265
269
|
Qt as SegmentedControl,
|
|
266
270
|
Ut as SegmentedControlButton,
|
|
267
271
|
jt as SegmentedControlContent,
|
|
268
272
|
qt as SegmentedControlList,
|
|
269
|
-
|
|
273
|
+
wt as Select,
|
|
270
274
|
Ht as SelectContent,
|
|
271
275
|
Rt as SelectGroup,
|
|
272
276
|
ht as SelectItem,
|
|
@@ -279,42 +283,45 @@ export {
|
|
|
279
283
|
mo as Separator,
|
|
280
284
|
to as Shimmer,
|
|
281
285
|
Xt as Skeleton,
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
286
|
+
Nn as Source,
|
|
287
|
+
Qn as Sources,
|
|
288
|
+
Un as SourcesTitle,
|
|
285
289
|
mr as Tabs,
|
|
286
290
|
lr as TabsLabel,
|
|
287
291
|
ur as TabsList,
|
|
288
292
|
dr as TabsPanel,
|
|
289
|
-
|
|
293
|
+
cr as TabsTrigger,
|
|
290
294
|
pr as Textarea,
|
|
295
|
+
ta as TimePicker,
|
|
291
296
|
Zt as Toaster,
|
|
297
|
+
Ir as Toggle,
|
|
292
298
|
Io as Tool,
|
|
293
299
|
Po as ToolContent,
|
|
294
|
-
|
|
295
|
-
|
|
300
|
+
xo as ToolHeader,
|
|
301
|
+
To as ToolInput,
|
|
296
302
|
bo as ToolOutput,
|
|
297
303
|
uo as Tooltip,
|
|
298
|
-
|
|
299
|
-
|
|
304
|
+
co as TooltipContent,
|
|
305
|
+
Co as TooltipProvider,
|
|
300
306
|
so as TooltipTrigger,
|
|
301
|
-
|
|
307
|
+
Ct as Topbar,
|
|
302
308
|
st as TopbarAction,
|
|
303
309
|
gt as TopbarBreadcrumbs,
|
|
304
310
|
It as TopbarCenter,
|
|
305
311
|
Pt as TopbarIcon,
|
|
306
|
-
|
|
307
|
-
|
|
312
|
+
xt as TopbarLeft,
|
|
313
|
+
Tt as TopbarMetadata,
|
|
308
314
|
bt as TopbarRight,
|
|
309
315
|
St as TopbarThemeSwitcher,
|
|
310
316
|
Jo as badgeVariants,
|
|
311
317
|
h as buttonGroupVariants,
|
|
312
318
|
L as buttonVariants,
|
|
313
|
-
|
|
319
|
+
We as countVariants,
|
|
314
320
|
zt as segmentedControlButtonVariants,
|
|
315
321
|
Jt as segmentedControlListVariants,
|
|
316
|
-
|
|
322
|
+
Cr as tabsListVariants,
|
|
317
323
|
sr as tabsTriggerVariants,
|
|
318
|
-
|
|
319
|
-
|
|
324
|
+
ea as toast,
|
|
325
|
+
Pr as toggleVariants,
|
|
326
|
+
De as usePromptInputController
|
|
320
327
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as i, jsxs as m } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { createContext as b, forwardRef as e, useMemo as A, useContext as x } from "react";
|
|
3
3
|
import { IconX as T } from "@tabler/icons-react";
|
|
4
4
|
import { cva as y } from "class-variance-authority";
|
|
5
5
|
import { cn as s } from "../../../../lib/utils.js";
|
|
@@ -18,11 +18,11 @@ const v = y(
|
|
|
18
18
|
width: "full"
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
), p =
|
|
21
|
+
), p = b({
|
|
22
22
|
selectedCount: void 0
|
|
23
23
|
}), k = e(
|
|
24
24
|
({ className: t, width: a, role: n = "toolbar", selectedCount: o, ...r }, l) => {
|
|
25
|
-
const c = typeof o == "number" && o === 0, d =
|
|
25
|
+
const c = typeof o == "number" && o === 0, d = A(() => ({ selectedCount: o }), [o]);
|
|
26
26
|
return c ? null : /* @__PURE__ */ i(g, { delayDuration: 0, children: /* @__PURE__ */ i(p.Provider, { value: d, children: /* @__PURE__ */ i(
|
|
27
27
|
"div",
|
|
28
28
|
{
|
|
@@ -51,7 +51,7 @@ const C = e(
|
|
|
51
51
|
C.displayName = "ActionToolbarSelection";
|
|
52
52
|
const S = e(
|
|
53
53
|
({ className: t, count: a, label: n = "selected", children: o, ...r }, l) => {
|
|
54
|
-
const { selectedCount: c } =
|
|
54
|
+
const { selectedCount: c } = x(p), d = a ?? c;
|
|
55
55
|
return /* @__PURE__ */ i(
|
|
56
56
|
"div",
|
|
57
57
|
{
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as a, jsxs as N } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as l, useMemo as
|
|
2
|
+
import { createContext as k, forwardRef as l, useMemo as C, useContext as g } from "react";
|
|
3
3
|
import { IconX as S, IconInfoCircleFilled as I, IconAlertCircleFilled as V, IconAlertTriangleFilled as z } from "@tabler/icons-react";
|
|
4
4
|
import { cva as v } from "class-variance-authority";
|
|
5
5
|
import { useControllableState as _ } from "../../../../lib/use-controllable-state.js";
|
|
6
6
|
import { cn as s } from "../../../../lib/utils.js";
|
|
7
7
|
import { Button as b } from "../button/button.js";
|
|
8
|
-
const i =
|
|
8
|
+
const i = k({
|
|
9
9
|
show: !0,
|
|
10
10
|
setShow: () => {
|
|
11
11
|
},
|
|
@@ -65,7 +65,7 @@ const j = l(
|
|
|
65
65
|
defaultProp: n,
|
|
66
66
|
prop: o,
|
|
67
67
|
onChange: d
|
|
68
|
-
}), u = t === "secondary" ? "info" : t ?? "default", A =
|
|
68
|
+
}), u = t === "secondary" ? "info" : t ?? "default", A = C(() => ({ show: p, setShow: x, variant: u, alertStyle: e }), [p, x, u, e]);
|
|
69
69
|
if (!p)
|
|
70
70
|
return null;
|
|
71
71
|
const h = c !== void 0 ? c : T(u);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as l, useMemo as
|
|
2
|
+
import { createContext as k, forwardRef as l, useMemo as w, useContext as b, useState as B, useRef as N, useEffect as y, useCallback as C } from "react";
|
|
3
3
|
import { cva as V } from "class-variance-authority";
|
|
4
4
|
import { cn as u } from "../../../../lib/utils.js";
|
|
5
5
|
import { Badge as S } from "../badge/badge.js";
|
|
6
6
|
import { Button as A } from "../button/button.js";
|
|
7
7
|
const R = (e) => {
|
|
8
|
-
}, m =
|
|
8
|
+
}, m = k({
|
|
9
9
|
show: !0,
|
|
10
10
|
setShow: R,
|
|
11
11
|
variant: "default"
|
|
@@ -18,11 +18,11 @@ function j({
|
|
|
18
18
|
defaultVisible: t,
|
|
19
19
|
onClose: n
|
|
20
20
|
}) {
|
|
21
|
-
const [r, a] =
|
|
22
|
-
|
|
21
|
+
const [r, a] = B(t), i = e !== void 0, g = i ? e : r, d = N(n);
|
|
22
|
+
y(() => {
|
|
23
23
|
d.current = n;
|
|
24
24
|
}, [n]);
|
|
25
|
-
const x =
|
|
25
|
+
const x = C(
|
|
26
26
|
(o) => {
|
|
27
27
|
if (i) {
|
|
28
28
|
(p(o) ? o(e) : o) || d.current?.();
|
|
@@ -72,7 +72,7 @@ const I = V(
|
|
|
72
72
|
defaultVisible: n,
|
|
73
73
|
visible: t,
|
|
74
74
|
onClose: r
|
|
75
|
-
}), h =
|
|
75
|
+
}), h = w(
|
|
76
76
|
() => ({ show: c ?? !0, setShow: f, variant: o }),
|
|
77
77
|
[c, f, o]
|
|
78
78
|
);
|
|
@@ -2,9 +2,9 @@ import { jsx as s } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as g } from "react";
|
|
3
3
|
import { Button as b } from "@base-ui/react/button";
|
|
4
4
|
import { cva as c } from "class-variance-authority";
|
|
5
|
-
import {
|
|
5
|
+
import { focusRing as u, focusRingDestructive as f, cn as l } from "../../../../lib/utils.js";
|
|
6
6
|
const v = c(
|
|
7
|
-
`inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm leading-4.5 tracking-normal font-medium transition-all cursor-pointer disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 ${
|
|
7
|
+
`inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm leading-4.5 tracking-normal font-medium transition-all cursor-pointer disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 ${u} aria-invalid:focus-visible:shadow-focus-ring-destructive`,
|
|
8
8
|
{
|
|
9
9
|
variants: {
|
|
10
10
|
variant: {
|
|
@@ -15,7 +15,7 @@ const v = c(
|
|
|
15
15
|
outline: "border border-border-emphasized bg-background text-foreground hover:bg-accent-background disabled:border-transparent disabled:bg-disabled-background",
|
|
16
16
|
ghost: "hover:bg-accent-background",
|
|
17
17
|
ghostOnDark: "text-foreground-fixed-light hover:bg-secondary-background-fixed-dark disabled:opacity-100 disabled:text-disabled-foreground-fixed-dark",
|
|
18
|
-
destructive: `bg-destructive-background text-destructive-foreground-on-critical hover:bg-destructive-background-hover ${
|
|
18
|
+
destructive: `bg-destructive-background text-destructive-foreground-on-critical hover:bg-destructive-background-hover ${f}`
|
|
19
19
|
},
|
|
20
20
|
size: {
|
|
21
21
|
default: "h-9 px-3 has-[>svg]:px-3",
|
|
@@ -39,7 +39,7 @@ const v = c(
|
|
|
39
39
|
"data-slot": "button",
|
|
40
40
|
render: e,
|
|
41
41
|
nativeButton: t ?? (e ? !1 : void 0),
|
|
42
|
-
className:
|
|
42
|
+
className: l(v({ variant: d, size: a, className: r })),
|
|
43
43
|
...i,
|
|
44
44
|
children: o
|
|
45
45
|
}
|