@constructive-io/ui 0.6.1 → 0.9.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/dist/ai-CiaH2sfF.js +2840 -0
- package/dist/ai-CiaH2sfF.js.map +1 -0
- package/dist/ai-lAkichk8.cjs +3182 -0
- package/dist/ai-lAkichk8.cjs.map +1 -0
- package/dist/alert-BXuP0ayz.d.cts +19 -0
- package/dist/alert-BXuP0ayz.d.ts +19 -0
- package/dist/components/ai/index.cjs +61 -0
- package/dist/components/ai/index.d.cts +2 -0
- package/dist/components/ai/index.d.ts +2 -0
- package/dist/components/ai/index.js +4 -0
- package/dist/components/alert.d.cts +2 -19
- package/dist/components/alert.d.ts +2 -19
- package/dist/components/app-bar.cjs +1 -1
- package/dist/components/app-bar.js +1 -1
- package/dist/components/app-shell.cjs +1 -1
- package/dist/components/app-shell.js +1 -1
- package/dist/components/badge.d.cts +2 -2
- package/dist/components/badge.d.ts +2 -2
- package/dist/components/command.cjs +1 -1
- package/dist/components/command.cjs.map +1 -1
- package/dist/components/command.js +1 -1
- package/dist/components/command.js.map +1 -1
- package/dist/components/field.d.cts +1 -1
- package/dist/components/field.d.ts +1 -1
- package/dist/components/sheet.d.cts +1 -1
- package/dist/components/sheet.d.ts +1 -1
- package/dist/components/sidebar.cjs +1 -1
- package/dist/components/sidebar.d.cts +1 -1
- package/dist/components/sidebar.d.ts +1 -1
- package/dist/components/sidebar.js +1 -1
- package/dist/index-B0wXxIAb.d.ts +737 -0
- package/dist/index-CyaFaZe2.d.cts +737 -0
- package/dist/index.cjs +59 -1
- package/dist/index.d.cts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +3 -2
- package/dist/{sidebar-CPy_fibW.cjs → sidebar-BavjjJp0.cjs} +29 -12
- package/dist/sidebar-BavjjJp0.cjs.map +1 -0
- package/dist/{sidebar-Cfax0g0_.js → sidebar-DeoL2ttp.js} +30 -12
- package/dist/sidebar-DeoL2ttp.js.map +1 -0
- package/package.json +13 -2
- package/src/styles/globals.css +92 -0
- package/dist/sidebar-CPy_fibW.cjs.map +0 -1
- package/dist/sidebar-Cfax0g0_.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -46,7 +46,7 @@ const require_components_multi_select = require('./components/multi-select.cjs')
|
|
|
46
46
|
const require_components_tags = require('./components/tags.cjs');
|
|
47
47
|
const require_record_picker = require('./record-picker-Bz4FApxD.cjs');
|
|
48
48
|
const require_components_stepper = require('./components/stepper.cjs');
|
|
49
|
-
const require_sidebar = require('./sidebar-
|
|
49
|
+
const require_sidebar = require('./sidebar-BavjjJp0.cjs');
|
|
50
50
|
const require_components_app_bar = require('./components/app-bar.cjs');
|
|
51
51
|
const require_components_app_shell = require('./components/app-shell.cjs');
|
|
52
52
|
const require_components_calendar_rac = require('./components/calendar-rac.cjs');
|
|
@@ -62,8 +62,11 @@ const require_components_responsive_diagram = require('./components/responsive-d
|
|
|
62
62
|
const require_components_unlink_button = require('./components/unlink-button.cjs');
|
|
63
63
|
const require_stack = require('./stack-DKdvlOM6.cjs');
|
|
64
64
|
const require_toast = require('./toast-D6MqijT2.cjs');
|
|
65
|
+
const require_ai = require('./ai-lAkichk8.cjs');
|
|
65
66
|
let _constructive_io_ui_portal = require("@constructive-io/ui/portal");
|
|
66
67
|
|
|
68
|
+
exports.AgentLoader = require_ai.AgentLoader;
|
|
69
|
+
exports.AiImage = require_ai.AiImage;
|
|
67
70
|
exports.Alert = require_components_alert.Alert;
|
|
68
71
|
exports.AlertDescription = require_components_alert.AlertDescription;
|
|
69
72
|
exports.AlertDialog = require_components_alert_dialog.AlertDialog;
|
|
@@ -79,6 +82,7 @@ exports.AlertDialogTrigger = require_components_alert_dialog.AlertDialogTrigger;
|
|
|
79
82
|
exports.AlertTitle = require_components_alert.AlertTitle;
|
|
80
83
|
exports.AppBar = require_components_app_bar.AppBar;
|
|
81
84
|
exports.AppShell = require_components_app_shell.AppShell;
|
|
85
|
+
exports.ApprovalCard = require_ai.ApprovalCard;
|
|
82
86
|
exports.Autocomplete = require_components_autocomplete.Autocomplete;
|
|
83
87
|
exports.AutocompleteEmpty = require_components_autocomplete.AutocompleteEmpty;
|
|
84
88
|
exports.AutocompleteInput = require_components_autocomplete.AutocompleteInput;
|
|
@@ -107,8 +111,13 @@ exports.CardHeader = require_components_card.CardHeader;
|
|
|
107
111
|
exports.CardStackProvider = require_stack.CardStackProvider;
|
|
108
112
|
exports.CardStackViewport = require_stack.CardStackViewport;
|
|
109
113
|
exports.CardTitle = require_components_card.CardTitle;
|
|
114
|
+
exports.ChainOfThought = require_ai.ChainOfThought;
|
|
115
|
+
exports.ChainOfThoughtStep = require_ai.ChainOfThoughtStep;
|
|
116
|
+
exports.ChatContainer = require_ai.ChatContainer;
|
|
117
|
+
exports.ChatContainerContent = require_ai.ChatContainerContent;
|
|
110
118
|
exports.Checkbox = require_components_checkbox.Checkbox;
|
|
111
119
|
exports.CheckboxGroup = require_components_checkbox_group.CheckboxGroup;
|
|
120
|
+
exports.CodeBlock = require_ai.CodeBlock;
|
|
112
121
|
exports.Collapsible = require_components_collapsible.Collapsible;
|
|
113
122
|
exports.CollapsibleContent = require_components_collapsible.CollapsibleContent;
|
|
114
123
|
exports.CollapsibleTrigger = require_components_collapsible.CollapsibleTrigger;
|
|
@@ -127,6 +136,9 @@ exports.CommandGroup = require_components_command.CommandGroup;
|
|
|
127
136
|
exports.CommandInput = require_components_command.CommandInput;
|
|
128
137
|
exports.CommandItem = require_components_command.CommandItem;
|
|
129
138
|
exports.CommandList = require_components_command.CommandList;
|
|
139
|
+
exports.ContextCard = require_ai.ContextCard;
|
|
140
|
+
exports.ContextCards = require_ai.ContextCards;
|
|
141
|
+
exports.ContextRing = require_ai.ContextRing;
|
|
130
142
|
exports.DEFAULT_ANIMATION_CONFIG = require_stack.DEFAULT_ANIMATION_CONFIG;
|
|
131
143
|
exports.DeferredCardContent = require_stack.DeferredCardContent;
|
|
132
144
|
exports.Dialog = require_components_dialog.Dialog;
|
|
@@ -139,6 +151,7 @@ exports.DialogHeader = require_components_dialog.DialogHeader;
|
|
|
139
151
|
exports.DialogPortal = require_components_dialog.DialogPortal;
|
|
140
152
|
exports.DialogTitle = require_components_dialog.DialogTitle;
|
|
141
153
|
exports.DialogTrigger = require_components_dialog.DialogTrigger;
|
|
154
|
+
exports.DiffTable = require_ai.DiffTable;
|
|
142
155
|
exports.Dock = require_components_dock.Dock;
|
|
143
156
|
exports.DockIcon = require_components_dock.DockIcon;
|
|
144
157
|
exports.Drawer = require_components_drawer.Drawer;
|
|
@@ -172,6 +185,7 @@ exports.EmptyDescription = require_components_empty.EmptyDescription;
|
|
|
172
185
|
exports.EmptyHeader = require_components_empty.EmptyHeader;
|
|
173
186
|
exports.EmptyMedia = require_components_empty.EmptyMedia;
|
|
174
187
|
exports.EmptyTitle = require_components_empty.EmptyTitle;
|
|
188
|
+
exports.FeedbackBar = require_ai.FeedbackBar;
|
|
175
189
|
exports.Field = require_components_field.Field;
|
|
176
190
|
exports.FieldContent = require_components_field.FieldContent;
|
|
177
191
|
exports.FieldDescription = require_components_field.FieldDescription;
|
|
@@ -183,6 +197,7 @@ exports.FieldRow = require_components_field.FieldRow;
|
|
|
183
197
|
exports.FieldSeparator = require_components_field.FieldSeparator;
|
|
184
198
|
exports.FieldSet = require_components_field.FieldSet;
|
|
185
199
|
exports.FieldTitle = require_components_field.FieldTitle;
|
|
200
|
+
exports.FileUpload = require_ai.FileUpload;
|
|
186
201
|
exports.FlickeringGrid = require_components_flickering_grid.FlickeringGrid;
|
|
187
202
|
exports.FlowZoomPanel = require_components_flow_zoom_panel.FlowZoomPanel;
|
|
188
203
|
exports.Form = require_components_form.Form;
|
|
@@ -193,6 +208,7 @@ exports.FormField = require_components_form.FormField;
|
|
|
193
208
|
exports.FormItem = require_components_form.FormItem;
|
|
194
209
|
exports.FormLabel = require_components_form.FormLabel;
|
|
195
210
|
exports.FormMessage = require_components_form.FormMessage;
|
|
211
|
+
exports.InlineDiff = require_ai.InlineDiff;
|
|
196
212
|
exports.Input = require_components_input.Input;
|
|
197
213
|
exports.InputGroup = require_components_input_group.InputGroup;
|
|
198
214
|
exports.InputGroupAddon = require_components_input_group.InputGroupAddon;
|
|
@@ -202,6 +218,13 @@ exports.InputGroupTextarea = require_components_input_group.InputGroupTextarea;
|
|
|
202
218
|
exports.JsonEditor = require_components_json_input.JsonEditor;
|
|
203
219
|
exports.JsonInput = require_components_json_input.JsonInput;
|
|
204
220
|
exports.Label = require_components_label.Label;
|
|
221
|
+
exports.Loader = require_ai.Loader;
|
|
222
|
+
exports.Markdown = require_ai.Markdown;
|
|
223
|
+
exports.Message = require_ai.Message;
|
|
224
|
+
exports.MessageAction = require_ai.MessageAction;
|
|
225
|
+
exports.MessageActions = require_ai.MessageActions;
|
|
226
|
+
exports.MessageAvatar = require_ai.MessageAvatar;
|
|
227
|
+
exports.MessageContent = require_ai.MessageContent;
|
|
205
228
|
Object.defineProperty(exports, 'ModalPortalScope', {
|
|
206
229
|
enumerable: true,
|
|
207
230
|
get: function () {
|
|
@@ -224,6 +247,7 @@ exports.PaginationItem = require_components_pagination.PaginationItem;
|
|
|
224
247
|
exports.PaginationLink = require_components_pagination.PaginationLink;
|
|
225
248
|
exports.PaginationNext = require_components_pagination.PaginationNext;
|
|
226
249
|
exports.PaginationPrevious = require_components_pagination.PaginationPrevious;
|
|
250
|
+
exports.PlanTracker = require_ai.PlanTracker;
|
|
227
251
|
exports.Popover = require_components_popover.Popover;
|
|
228
252
|
exports.PopoverAnchor = require_components_popover.PopoverAnchor;
|
|
229
253
|
exports.PopoverClose = require_components_popover.PopoverClose;
|
|
@@ -240,17 +264,29 @@ Object.defineProperty(exports, 'PortalRoot', {
|
|
|
240
264
|
exports.Progress = require_components_progress.Progress;
|
|
241
265
|
exports.ProgressiveBlur = require_components_progressive_blur.ProgressiveBlur;
|
|
242
266
|
exports.ProgressiveBlurScrollContainer = require_components_progressive_blur_scroll_container.ProgressiveBlurScrollContainer;
|
|
267
|
+
exports.PromptInput = require_ai.PromptInput;
|
|
268
|
+
exports.PromptInputAction = require_ai.PromptInputAction;
|
|
269
|
+
exports.PromptInputActions = require_ai.PromptInputActions;
|
|
270
|
+
exports.PromptInputBody = require_ai.PromptInputBody;
|
|
271
|
+
exports.PromptInputTextarea = require_ai.PromptInputTextarea;
|
|
272
|
+
exports.PromptSuggestion = require_ai.PromptSuggestion;
|
|
273
|
+
exports.PromptSuggestions = require_ai.PromptSuggestions;
|
|
243
274
|
exports.Radio = require_components_radio_group.Radio;
|
|
244
275
|
exports.RadioGroup = require_components_radio_group.RadioGroup;
|
|
245
276
|
exports.RadioGroupItem = require_components_radio_group.Radio;
|
|
246
277
|
exports.RangeCalendar = require_components_calendar_rac.RangeCalendar;
|
|
278
|
+
exports.Reasoning = require_ai.Reasoning;
|
|
279
|
+
exports.RecommendationCard = require_ai.RecommendationCard;
|
|
247
280
|
exports.RecordPicker = require_record_picker.RecordPicker;
|
|
248
281
|
exports.ResizableHandle = require_components_resizable.ResizableHandle;
|
|
249
282
|
exports.ResizablePanel = require_components_resizable.ResizablePanel;
|
|
250
283
|
exports.ResizablePanelGroup = require_components_resizable.ResizablePanelGroup;
|
|
284
|
+
exports.ResponseStream = require_ai.ResponseStream;
|
|
251
285
|
exports.ResponsiveDiagram = require_components_responsive_diagram.ResponsiveDiagram;
|
|
286
|
+
exports.STREAM_THROTTLE_MS = require_ai.STREAM_THROTTLE_MS;
|
|
252
287
|
exports.ScrollArea = require_components_scroll_area.ScrollArea;
|
|
253
288
|
exports.ScrollBar = require_components_scroll_area.ScrollBar;
|
|
289
|
+
exports.ScrollButton = require_ai.ScrollButton;
|
|
254
290
|
exports.Select = require_components_select.Select;
|
|
255
291
|
exports.SelectContent = require_components_select.SelectContent;
|
|
256
292
|
exports.SelectFieldItem = require_components_select.SelectFieldItem;
|
|
@@ -298,10 +334,14 @@ exports.SidebarTrigger = require_sidebar.SidebarTrigger;
|
|
|
298
334
|
exports.Skeleton = require_components_skeleton.Skeleton;
|
|
299
335
|
exports.Slot = require_slot.Slot;
|
|
300
336
|
exports.Slottable = require_slot.Slottable;
|
|
337
|
+
exports.Source = require_ai.Source;
|
|
338
|
+
exports.Sources = require_ai.Sources;
|
|
301
339
|
exports.StackBackdrop = require_stack.StackBackdrop;
|
|
302
340
|
exports.StackCard = require_stack.StackCard;
|
|
303
341
|
exports.StackHeader = require_stack.StackHeader;
|
|
304
342
|
exports.StackHeaderSlot = require_stack.StackHeaderSlot;
|
|
343
|
+
exports.StatusIcon = require_ai.StatusIcon;
|
|
344
|
+
exports.Step = require_ai.Step;
|
|
305
345
|
exports.Stepper = require_components_stepper.Stepper;
|
|
306
346
|
exports.StepperDescription = require_components_stepper.StepperDescription;
|
|
307
347
|
exports.StepperIndicator = require_components_stepper.StepperIndicator;
|
|
@@ -309,7 +349,10 @@ exports.StepperItem = require_components_stepper.StepperItem;
|
|
|
309
349
|
exports.StepperSeparator = require_components_stepper.StepperSeparator;
|
|
310
350
|
exports.StepperTitle = require_components_stepper.StepperTitle;
|
|
311
351
|
exports.StepperTrigger = require_components_stepper.StepperTrigger;
|
|
352
|
+
exports.Steps = require_ai.Steps;
|
|
353
|
+
exports.StreamingText = require_ai.StreamingText;
|
|
312
354
|
exports.Switch = require_components_switch.Switch;
|
|
355
|
+
exports.SystemMessage = require_ai.SystemMessage;
|
|
313
356
|
exports.Table = require_components_table.Table;
|
|
314
357
|
exports.TableBody = require_components_table.TableBody;
|
|
315
358
|
exports.TableCaption = require_components_table.TableCaption;
|
|
@@ -331,8 +374,15 @@ exports.TagsItem = require_components_tags.TagsItem;
|
|
|
331
374
|
exports.TagsList = require_components_tags.TagsList;
|
|
332
375
|
exports.TagsTrigger = require_components_tags.TagsTrigger;
|
|
333
376
|
exports.TagsValue = require_components_tags.TagsValue;
|
|
377
|
+
exports.TaskList = require_ai.TaskList;
|
|
378
|
+
exports.TaskRow = require_ai.TaskRow;
|
|
379
|
+
exports.TextShimmer = require_ai.TextShimmer;
|
|
334
380
|
exports.Textarea = require_components_textarea.Textarea;
|
|
381
|
+
exports.ThinkingBar = require_ai.ThinkingBar;
|
|
382
|
+
exports.ThinkingTrace = require_ai.ThinkingTrace;
|
|
335
383
|
exports.Toaster = require_components_sonner.Toaster;
|
|
384
|
+
exports.Tool = require_ai.Tool;
|
|
385
|
+
exports.ToolGroup = require_ai.ToolGroup;
|
|
336
386
|
exports.Tooltip = require_components_tooltip.Tooltip;
|
|
337
387
|
exports.TooltipContent = require_components_tooltip.TooltipContent;
|
|
338
388
|
exports.TooltipProvider = require_components_tooltip.TooltipProvider;
|
|
@@ -353,6 +403,8 @@ exports.createReducedMotionVariants = require_stack.createReducedMotionVariants;
|
|
|
353
403
|
exports.dockVariants = require_components_dock.dockVariants;
|
|
354
404
|
exports.durations = require_motion_config.durations;
|
|
355
405
|
exports.easings = require_motion_config.easings;
|
|
406
|
+
exports.formatCompact = require_ai.formatCompact;
|
|
407
|
+
exports.formatDuration = require_ai.formatDuration;
|
|
356
408
|
exports.getCardOffset = require_stack.getCardOffset;
|
|
357
409
|
exports.getCardZIndex = require_stack.getCardZIndex;
|
|
358
410
|
exports.getCascadeOffset = require_stack.getCascadeOffset;
|
|
@@ -360,13 +412,16 @@ exports.getResponsiveCardOffset = require_stack.getResponsiveCardOffset;
|
|
|
360
412
|
exports.getSideBySideOffset = require_stack.getSideBySideOffset;
|
|
361
413
|
exports.getVisibleCardIndices = require_stack.getVisibleCardIndices;
|
|
362
414
|
exports.isCardVisible = require_stack.isCardVisible;
|
|
415
|
+
exports.lineDiff = require_ai.lineDiff;
|
|
363
416
|
exports.mergeProps = require_slot.mergeProps;
|
|
417
|
+
exports.normalizeToolStatus = require_ai.normalizeToolStatus;
|
|
364
418
|
exports.normalizeWidth = require_stack.normalizeWidth;
|
|
365
419
|
exports.parseWidthToPixels = require_stack.parseWidthToPixels;
|
|
366
420
|
exports.peekDragSpring = require_stack.peekDragSpring;
|
|
367
421
|
exports.peekHoverSpring = require_stack.peekHoverSpring;
|
|
368
422
|
exports.peekSlideSpring = require_stack.peekSlideSpring;
|
|
369
423
|
exports.reducedMotionBackdropVariants = require_stack.reducedMotionBackdropVariants;
|
|
424
|
+
exports.renderBasicMarkdown = require_ai.renderBasicMarkdown;
|
|
370
425
|
exports.showErrorToast = require_toast.showErrorToast;
|
|
371
426
|
exports.showInfoToast = require_toast.showInfoToast;
|
|
372
427
|
exports.showSuccessToast = require_toast.showSuccessToast;
|
|
@@ -380,6 +435,7 @@ exports.useCardIndex = require_stack.useCardIndex;
|
|
|
380
435
|
exports.useCardInjectedProps = require_stack.useCardInjectedProps;
|
|
381
436
|
exports.useCardReady = require_stack.useCardReady;
|
|
382
437
|
exports.useCardStack = require_stack.useCardStack;
|
|
438
|
+
exports.useChatContainer = require_ai.useChatContainer;
|
|
383
439
|
exports.useControllableState = require_sheet.useControllableState;
|
|
384
440
|
Object.defineProperty(exports, 'useFloatingOverlayPortalProps', {
|
|
385
441
|
enumerable: true,
|
|
@@ -409,6 +465,7 @@ Object.defineProperty(exports, 'usePortalContext', {
|
|
|
409
465
|
return _constructive_io_ui_portal.usePortalContext;
|
|
410
466
|
}
|
|
411
467
|
});
|
|
468
|
+
exports.usePromptInput = require_ai.usePromptInput;
|
|
412
469
|
Object.defineProperty(exports, 'useRootPortalContainer', {
|
|
413
470
|
enumerable: true,
|
|
414
471
|
get: function () {
|
|
@@ -421,5 +478,6 @@ exports.useStackContext = require_stack.useStackContext;
|
|
|
421
478
|
exports.useStackGestures = require_stack.useStackGestures;
|
|
422
479
|
exports.useStackLayoutMode = require_stack.useStackLayoutMode;
|
|
423
480
|
exports.useStackResponsive = require_stack.useStackResponsive;
|
|
481
|
+
exports.useThrottledText = require_ai.useThrottledText;
|
|
424
482
|
exports.validateJson = require_components_json_input.validateJson;
|
|
425
483
|
exports.variants = require_motion_config.variants;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { $ as ToolGroup, $t as MessageContent, A as PlanTrackerProps, At as SystemMessageProps, B as InlineDiff, Bt as ResponseStreamProps, C as TaskRow, Ct as Reasoning, D as ContextRingProps, Dt as STREAM_THROTTLE_MS, E as ContextRing, Et as ThinkingBarProps, F as DiffTableRowBase, Ft as ChatContainerContentProps, G as Sources, Gt as renderBasicMarkdown, H as lineDiff, Ht as CodeBlockProps, I as StreamToken, It as ChatContainerProps, J as ApprovalCardProps, Jt as MessageActionProps, K as SourcesProps, Kt as Message, L as StreamingText, Lt as useChatContainer, M as DiffTableAddedRow, Mt as ScrollButtonProps, N as DiffTableColumn, Nt as ChatContainer, O as formatCompact, Ot as useThrottledText, P as DiffTableProps, Pt as ChatContainerContent, Q as Tool, Qt as MessageAvatarProps, R as StreamingTextProps, Rt as ResponseStream, S as TaskListProps, St as ThinkingTraceRow, T as TaskStatus, Tt as ThinkingBar, U as Source, Ut as Markdown, V as InlineDiffProps, Vt as CodeBlock, W as SourceProps, Wt as MarkdownProps, X as ApprovalQuestion, Xt as MessageActionsProps, Y as ApprovalOption, Yt as MessageActions, Z as StatusIcon, Zt as MessageAvatar, _ as ContextCardProps, _n as PixelVariant, _t as Steps, a as FileUploadProps, an as PromptInputActions, at as InlineDiffSource, b as TaskDetail, bn as TextShimmerProps, bt as ThinkingTraceMode, c as PromptSuggestions, cn as PromptInputBodyProps, ct as PlanStep, d as FeedbackBarProps, dn as PromptInputTextareaProps, dt as normalizeToolStatus, en as MessageContentProps, et as ToolGroupProps, f as FeedbackValue, fn as usePromptInput, ft as ChainOfThought, g as ContextCard, gn as Loader, gt as StepStatus, h as RecommendationOption, hn as AgentLoaderVariant, ht as StepProps, i as FileUpload, in as PromptInputActionProps, it as DiffFileChip, j as DiffTable, jt as ScrollButton, k as PlanTracker, kt as SystemMessage, l as PromptSuggestionsProps, ln as PromptInputProps, lt as PlanStepStatus, m as RecommendationCardProps, mn as AgentLoaderProps, mt as Step, n as AiImage, nn as PromptInput, nt as ToolVariant, o as PromptSuggestion, on as PromptInputActionsProps, ot as NormalizedToolStatus, p as RecommendationCard, pn as AgentLoader, pt as ChainOfThoughtStep, q as ApprovalCard, qt as MessageAction, r as AiImageProps, rn as PromptInputAction, rt as ContextUsage, s as PromptSuggestionProps, sn as PromptInputBody, st as Plan, t as formatDuration, tn as MessageProps, tt as ToolProps, u as FeedbackBar, un as PromptInputTextarea, ut as ToolStatus, v as ContextCards, vn as SimpleVariant, vt as StepsProps, w as TaskRowProps, wt as ReasoningProps, x as TaskList, xt as ThinkingTraceProps, y as ContextCardsProps, yn as TextShimmer, yt as ThinkingTrace, z as StreamingTextSource, zt as ResponseStreamMode } from "./index-CyaFaZe2.cjs";
|
|
2
|
+
import { i as TooltipTrigger, n as TooltipContent, r as TooltipProvider, t as Tooltip } from "./tooltip-CTRQoN1A.cjs";
|
|
3
|
+
import { a as alertVariants, i as AlertTitle, n as AlertDescription, t as Alert } from "./alert-BXuP0ayz.cjs";
|
|
1
4
|
import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger } from "./components/alert-dialog.cjs";
|
|
2
|
-
import { Alert, AlertDescription, AlertTitle, alertVariants } from "./components/alert.cjs";
|
|
3
5
|
import { AppBar, AppBarProps, AppBreadcrumbItem, AppLinkRenderProps, AppLinkRenderer, createAppLink } from "./components/app-bar.cjs";
|
|
4
6
|
import { n as ButtonProps, r as buttonVariants, t as Button } from "./button-D4vqTxhp.cjs";
|
|
5
7
|
import { n as InputProps, t as Input } from "./input-CBrCuMH8.cjs";
|
|
6
8
|
import { n as SeparatorProps, t as Separator } from "./separator-BQEsr0Rc.cjs";
|
|
7
|
-
import { i as TooltipTrigger, n as TooltipContent, r as TooltipProvider, t as Tooltip } from "./tooltip-CTRQoN1A.cjs";
|
|
8
9
|
import { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar } from "./components/sidebar.cjs";
|
|
9
10
|
import { AppAccount, AppAccountAction, AppAccountActionGroup, AppIcon, AppNavigationChild, AppNavigationGroup, AppNavigationItem, AppShell, AppShellBrand, AppShellProps } from "./components/app-shell.cjs";
|
|
10
11
|
import { Autocomplete, AutocompleteEmpty, AutocompleteInput, AutocompleteItem, AutocompletePopup, AutocompleteSeparator } from "./components/autocomplete.cjs";
|
|
@@ -282,5 +283,5 @@ declare const variants: {
|
|
|
282
283
|
};
|
|
283
284
|
};
|
|
284
285
|
//#endregion
|
|
285
|
-
export { Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, type AnimationConfig, type AppAccount, type AppAccountAction, type AppAccountActionGroup, AppBar, type AppBarProps, type AppBreadcrumbItem, type AppIcon, type AppLinkRenderProps, type AppLinkRenderer, type AppNavigationChild, type AppNavigationGroup, type AppNavigationItem, AppShell, type AppShellBrand, type AppShellProps, Autocomplete, AutocompleteEmpty, AutocompleteInput, AutocompleteItem, AutocompletePopup, AutocompleteSeparator, Avatar, AvatarFallback, AvatarImage, type BackdropConfig, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, Calendar, Card, CardAction, type CardComponent, CardContent, CardDescription, CardFooter, CardHeader, type CardId, type CardInjectedProps, type CardProps, type CardPushOptions, type CardRouteDefinition, type CardRouteMap, type CardSpec, type CardStackApi, CardStackProvider, type CardStackProviderProps, CardStackViewport, type CardStackViewportProps, CardTitle, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, Collapsible, CollapsiblePanel as CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxContent, type ComboboxContentProps, ComboboxEmpty, type ComboboxEmptyProps, ComboboxGroup, type ComboboxGroupProps, ComboboxInput, type ComboboxInputProps, ComboboxItem, type ComboboxItemProps, ComboboxList, type ComboboxListProps, type ComboboxProps, ComboboxSeparator, type ComboboxSeparatorProps, ComboboxTrigger, type ComboboxTriggerProps, Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, DEFAULT_ANIMATION_CONFIG, DeferredCardContent, type DeferredCardContentProps, Dialog, DialogBackdrop, DialogClose, DialogPopup as DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogTitle, DialogTrigger, type DismissOptions, Dock, DockIcon, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, type FieldProps, FieldRow, type FieldRowProps, FieldSeparator, FieldSet, FieldTitle, FlickeringGrid, type FloatingPortalStrategy, type FloatingZIndex, FlowZoomPanel, Form, FormControl, FormControl$1 as FormControlComponent, type FormControlLayout, FormDescription, FormField, FormItem, FormLabel, FormMessage, type Frame, type FrameDot, type Frames, type GestureConfig, Input, InputGroup, InputGroupAddon, InputGroupInput, InputGroupText, InputGroupTextarea, type InputProps, JsonEditor, JsonInput, Label, type LabelProps, type LayoutMode, type LegacyFieldProps, type MobileConfig, ModalPortalScope, MotionGrid, type MotionGridProps, MultiSelect, type MultiSelectGroup, type MultiSelectOption, type MultiSelectProps, type MultiSelectRef, type OverlayLayer, PORTAL_ROOT_ID, PageHeader, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type PeekGestureConfig, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverDescription, PopoverTitle, PopoverTrigger, PortalRoot, Progress, type ProgressProps, ProgressiveBlur, ProgressiveBlurScrollContainer, type PushOptions, Radio, Radio as RadioGroupItem, RadioGroup, type RadioGroupProps, type RadioProps, RangeCalendar, RecordPicker, ResizableHandle, ResizablePanel, ResizablePanelGroup, ResponsiveDiagram, type ResponsiveOffsetConfig, type ResponsiveOffsetResult, ScrollArea, ScrollBar, Select, SelectPopup as SelectContent, SelectPopup, SelectFieldItem, SelectGroup, SelectGroupLabel, SelectGroupLabel as SelectLabel, SelectItem, SelectRichItem, SelectSeparator, SelectTrigger, SelectValue, Separator, type SeparatorProps, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, type SkeletonProps, Slot, Slottable, type StackAction, StackBackdrop, type StackBackdropProps, StackCard, type StackCardProps, type StackContextValue, StackHeader, type StackHeaderProps, StackHeaderSlot, type StackHeaderSlotProps, type StackState, Stepper, StepperDescription, StepperIndicator, StepperItem, StepperSeparator, StepperTitle, StepperTrigger, type StructuralFieldProps, Switch, type SwitchProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tags, TagsContent, type TagsContentProps, TagsEmpty, type TagsEmptyProps, TagsGroup, type TagsGroupProps, TagsInput, type TagsInputProps, TagsItem, type TagsItemProps, TagsList, type TagsListProps, type TagsProps, TagsTrigger, type TagsTriggerProps, TagsValue, type TagsValueProps, Textarea, type TextareaProps, type ToastErrorProps, type ToastInfoProps, type ToastSuccessProps, type ToastWarningProps, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UnlinkButton, type UsePeekGesturesOptions, type UsePeekGesturesResult, type UseStackGesturesResult, type UseStackResponsiveResult, alertVariants, backdropVariants, badgeVariants, buttonVariants, calculateResponsiveOffset, cardVariants, cn, composeRefs, createAppLink, createCardVariants, createOffsetTransition, createReducedMotionVariants, dockVariants, durations, easings, getCardOffset, getCardZIndex, getCascadeOffset, getResponsiveCardOffset, getSideBySideOffset, getVisibleCardIndices, isCardVisible, mergeProps, normalizeWidth, parseWidthToPixels, peekDragSpring, peekHoverSpring, peekSlideSpring, reducedMotionBackdropVariants, showErrorToast, showInfoToast, showSuccessToast, showWarningToast, snapBackSpring, springs, swipeDismissTransition, toast, transitions, useCardIndex, useCardInjectedProps, useCardReady, useCardStack, useControllableState, useFloatingOverlayPortalProps, useFormField, useInModalOverlay, useIsMobile, useIsTopCard, usePeekGestures, usePortalContainer, usePortalContext, useRootPortalContainer, useSidebar, useStackCards, useStackContext, useStackGestures, useStackLayoutMode, useStackResponsive, validateJson, variants };
|
|
286
|
+
export { AgentLoader, type AgentLoaderProps, type AgentLoaderVariant, AiImage, type AiImageProps, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, type AnimationConfig, type AppAccount, type AppAccountAction, type AppAccountActionGroup, AppBar, type AppBarProps, type AppBreadcrumbItem, type AppIcon, type AppLinkRenderProps, type AppLinkRenderer, type AppNavigationChild, type AppNavigationGroup, type AppNavigationItem, AppShell, type AppShellBrand, type AppShellProps, ApprovalCard, type ApprovalCardProps, type ApprovalOption, type ApprovalQuestion, Autocomplete, AutocompleteEmpty, AutocompleteInput, AutocompleteItem, AutocompletePopup, AutocompleteSeparator, Avatar, AvatarFallback, AvatarImage, type BackdropConfig, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, Calendar, Card, CardAction, type CardComponent, CardContent, CardDescription, CardFooter, CardHeader, type CardId, type CardInjectedProps, type CardProps, type CardPushOptions, type CardRouteDefinition, type CardRouteMap, type CardSpec, type CardStackApi, CardStackProvider, type CardStackProviderProps, CardStackViewport, type CardStackViewportProps, CardTitle, ChainOfThought, ChainOfThoughtStep, ChatContainer, ChatContainerContent, type ChatContainerContentProps, type ChatContainerProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, CodeBlock, type CodeBlockProps, Collapsible, CollapsiblePanel as CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxContent, type ComboboxContentProps, ComboboxEmpty, type ComboboxEmptyProps, ComboboxGroup, type ComboboxGroupProps, ComboboxInput, type ComboboxInputProps, ComboboxItem, type ComboboxItemProps, ComboboxList, type ComboboxListProps, type ComboboxProps, ComboboxSeparator, type ComboboxSeparatorProps, ComboboxTrigger, type ComboboxTriggerProps, Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, ContextCard, type ContextCardProps, ContextCards, type ContextCardsProps, ContextRing, type ContextRingProps, type ContextUsage, DEFAULT_ANIMATION_CONFIG, DeferredCardContent, type DeferredCardContentProps, Dialog, DialogBackdrop, DialogClose, DialogPopup as DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogTitle, DialogTrigger, type DiffFileChip, DiffTable, type DiffTableAddedRow, type DiffTableColumn, type DiffTableProps, type DiffTableRowBase, type DismissOptions, Dock, DockIcon, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, FeedbackBar, type FeedbackBarProps, type FeedbackValue, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, type FieldProps, FieldRow, type FieldRowProps, FieldSeparator, FieldSet, FieldTitle, FileUpload, type FileUploadProps, FlickeringGrid, type FloatingPortalStrategy, type FloatingZIndex, FlowZoomPanel, Form, FormControl, FormControl$1 as FormControlComponent, type FormControlLayout, FormDescription, FormField, FormItem, FormLabel, FormMessage, type Frame, type FrameDot, type Frames, type GestureConfig, InlineDiff, type InlineDiffProps, type InlineDiffSource, Input, InputGroup, InputGroupAddon, InputGroupInput, InputGroupText, InputGroupTextarea, type InputProps, JsonEditor, JsonInput, Label, type LabelProps, type LayoutMode, type LegacyFieldProps, Loader, Markdown, type MarkdownProps, Message, MessageAction, type MessageActionProps, MessageActions, type MessageActionsProps, MessageAvatar, type MessageAvatarProps, MessageContent, type MessageContentProps, type MessageProps, type MobileConfig, ModalPortalScope, MotionGrid, type MotionGridProps, MultiSelect, type MultiSelectGroup, type MultiSelectOption, type MultiSelectProps, type MultiSelectRef, type NormalizedToolStatus, type OverlayLayer, PORTAL_ROOT_ID, PageHeader, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type PeekGestureConfig, type PixelVariant, type Plan, type PlanStep, type PlanStepStatus, PlanTracker, type PlanTrackerProps, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverDescription, PopoverTitle, PopoverTrigger, PortalRoot, Progress, type ProgressProps, ProgressiveBlur, ProgressiveBlurScrollContainer, PromptInput, PromptInputAction, type PromptInputActionProps, PromptInputActions, type PromptInputActionsProps, PromptInputBody, type PromptInputBodyProps, type PromptInputProps, PromptInputTextarea, type PromptInputTextareaProps, PromptSuggestion, type PromptSuggestionProps, PromptSuggestions, type PromptSuggestionsProps, type PushOptions, Radio, Radio as RadioGroupItem, RadioGroup, type RadioGroupProps, type RadioProps, RangeCalendar, Reasoning, type ReasoningProps, RecommendationCard, type RecommendationCardProps, type RecommendationOption, RecordPicker, ResizableHandle, ResizablePanel, ResizablePanelGroup, ResponseStream, type ResponseStreamMode, type ResponseStreamProps, ResponsiveDiagram, type ResponsiveOffsetConfig, type ResponsiveOffsetResult, STREAM_THROTTLE_MS, ScrollArea, ScrollBar, ScrollButton, type ScrollButtonProps, Select, SelectPopup as SelectContent, SelectPopup, SelectFieldItem, SelectGroup, SelectGroupLabel, SelectGroupLabel as SelectLabel, SelectItem, SelectRichItem, SelectSeparator, SelectTrigger, SelectValue, Separator, type SeparatorProps, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, type SimpleVariant, Skeleton, type SkeletonProps, Slot, Slottable, Source, type SourceProps, Sources, type SourcesProps, type StackAction, StackBackdrop, type StackBackdropProps, StackCard, type StackCardProps, type StackContextValue, StackHeader, type StackHeaderProps, StackHeaderSlot, type StackHeaderSlotProps, type StackState, StatusIcon, Step, type StepProps, type StepStatus, Stepper, StepperDescription, StepperIndicator, StepperItem, StepperSeparator, StepperTitle, StepperTrigger, Steps, type StepsProps, type StreamToken, StreamingText, type StreamingTextProps, type StreamingTextSource, type StructuralFieldProps, Switch, type SwitchProps, SystemMessage, type SystemMessageProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tags, TagsContent, type TagsContentProps, TagsEmpty, type TagsEmptyProps, TagsGroup, type TagsGroupProps, TagsInput, type TagsInputProps, TagsItem, type TagsItemProps, TagsList, type TagsListProps, type TagsProps, TagsTrigger, type TagsTriggerProps, TagsValue, type TagsValueProps, type TaskDetail, TaskList, type TaskListProps, TaskRow, type TaskRowProps, type TaskStatus, TextShimmer, type TextShimmerProps, Textarea, type TextareaProps, ThinkingBar, type ThinkingBarProps, ThinkingTrace, type ThinkingTraceMode, type ThinkingTraceProps, type ThinkingTraceRow, type ToastErrorProps, type ToastInfoProps, type ToastSuccessProps, type ToastWarningProps, Toaster, Tool, ToolGroup, type ToolGroupProps, type ToolProps, type ToolStatus, type ToolVariant, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UnlinkButton, type UsePeekGesturesOptions, type UsePeekGesturesResult, type UseStackGesturesResult, type UseStackResponsiveResult, alertVariants, backdropVariants, badgeVariants, buttonVariants, calculateResponsiveOffset, cardVariants, cn, composeRefs, createAppLink, createCardVariants, createOffsetTransition, createReducedMotionVariants, dockVariants, durations, easings, formatCompact, formatDuration, getCardOffset, getCardZIndex, getCascadeOffset, getResponsiveCardOffset, getSideBySideOffset, getVisibleCardIndices, isCardVisible, lineDiff, mergeProps, normalizeToolStatus, normalizeWidth, parseWidthToPixels, peekDragSpring, peekHoverSpring, peekSlideSpring, reducedMotionBackdropVariants, renderBasicMarkdown, showErrorToast, showInfoToast, showSuccessToast, showWarningToast, snapBackSpring, springs, swipeDismissTransition, toast, transitions, useCardIndex, useCardInjectedProps, useCardReady, useCardStack, useChatContainer, useControllableState, useFloatingOverlayPortalProps, useFormField, useInModalOverlay, useIsMobile, useIsTopCard, usePeekGestures, usePortalContainer, usePortalContext, usePromptInput, useRootPortalContainer, useSidebar, useStackCards, useStackContext, useStackGestures, useStackLayoutMode, useStackResponsive, useThrottledText, validateJson, variants };
|
|
286
287
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { $ as ToolGroup, $t as MessageContent, A as PlanTrackerProps, At as SystemMessageProps, B as InlineDiff, Bt as ResponseStreamProps, C as TaskRow, Ct as Reasoning, D as ContextRingProps, Dt as STREAM_THROTTLE_MS, E as ContextRing, Et as ThinkingBarProps, F as DiffTableRowBase, Ft as ChatContainerContentProps, G as Sources, Gt as renderBasicMarkdown, H as lineDiff, Ht as CodeBlockProps, I as StreamToken, It as ChatContainerProps, J as ApprovalCardProps, Jt as MessageActionProps, K as SourcesProps, Kt as Message, L as StreamingText, Lt as useChatContainer, M as DiffTableAddedRow, Mt as ScrollButtonProps, N as DiffTableColumn, Nt as ChatContainer, O as formatCompact, Ot as useThrottledText, P as DiffTableProps, Pt as ChatContainerContent, Q as Tool, Qt as MessageAvatarProps, R as StreamingTextProps, Rt as ResponseStream, S as TaskListProps, St as ThinkingTraceRow, T as TaskStatus, Tt as ThinkingBar, U as Source, Ut as Markdown, V as InlineDiffProps, Vt as CodeBlock, W as SourceProps, Wt as MarkdownProps, X as ApprovalQuestion, Xt as MessageActionsProps, Y as ApprovalOption, Yt as MessageActions, Z as StatusIcon, Zt as MessageAvatar, _ as ContextCardProps, _n as PixelVariant, _t as Steps, a as FileUploadProps, an as PromptInputActions, at as InlineDiffSource, b as TaskDetail, bn as TextShimmerProps, bt as ThinkingTraceMode, c as PromptSuggestions, cn as PromptInputBodyProps, ct as PlanStep, d as FeedbackBarProps, dn as PromptInputTextareaProps, dt as normalizeToolStatus, en as MessageContentProps, et as ToolGroupProps, f as FeedbackValue, fn as usePromptInput, ft as ChainOfThought, g as ContextCard, gn as Loader, gt as StepStatus, h as RecommendationOption, hn as AgentLoaderVariant, ht as StepProps, i as FileUpload, in as PromptInputActionProps, it as DiffFileChip, j as DiffTable, jt as ScrollButton, k as PlanTracker, kt as SystemMessage, l as PromptSuggestionsProps, ln as PromptInputProps, lt as PlanStepStatus, m as RecommendationCardProps, mn as AgentLoaderProps, mt as Step, n as AiImage, nn as PromptInput, nt as ToolVariant, o as PromptSuggestion, on as PromptInputActionsProps, ot as NormalizedToolStatus, p as RecommendationCard, pn as AgentLoader, pt as ChainOfThoughtStep, q as ApprovalCard, qt as MessageAction, r as AiImageProps, rn as PromptInputAction, rt as ContextUsage, s as PromptSuggestionProps, sn as PromptInputBody, st as Plan, t as formatDuration, tn as MessageProps, tt as ToolProps, u as FeedbackBar, un as PromptInputTextarea, ut as ToolStatus, v as ContextCards, vn as SimpleVariant, vt as StepsProps, w as TaskRowProps, wt as ReasoningProps, x as TaskList, xt as ThinkingTraceProps, y as ContextCardsProps, yn as TextShimmer, yt as ThinkingTrace, z as StreamingTextSource, zt as ResponseStreamMode } from "./index-B0wXxIAb.js";
|
|
2
|
+
import { i as TooltipTrigger, n as TooltipContent, r as TooltipProvider, t as Tooltip } from "./tooltip-CTRQoN1A.js";
|
|
3
|
+
import { a as alertVariants, i as AlertTitle, n as AlertDescription, t as Alert } from "./alert-BXuP0ayz.js";
|
|
1
4
|
import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger } from "./components/alert-dialog.js";
|
|
2
|
-
import { Alert, AlertDescription, AlertTitle, alertVariants } from "./components/alert.js";
|
|
3
5
|
import { AppBar, AppBarProps, AppBreadcrumbItem, AppLinkRenderProps, AppLinkRenderer, createAppLink } from "./components/app-bar.js";
|
|
4
6
|
import { n as ButtonProps, r as buttonVariants, t as Button } from "./button-D4vqTxhp.js";
|
|
5
7
|
import { n as InputProps, t as Input } from "./input-CBrCuMH8.js";
|
|
6
8
|
import { n as SeparatorProps, t as Separator } from "./separator-BQEsr0Rc.js";
|
|
7
|
-
import { i as TooltipTrigger, n as TooltipContent, r as TooltipProvider, t as Tooltip } from "./tooltip-CTRQoN1A.js";
|
|
8
9
|
import { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar } from "./components/sidebar.js";
|
|
9
10
|
import { AppAccount, AppAccountAction, AppAccountActionGroup, AppIcon, AppNavigationChild, AppNavigationGroup, AppNavigationItem, AppShell, AppShellBrand, AppShellProps } from "./components/app-shell.js";
|
|
10
11
|
import { Autocomplete, AutocompleteEmpty, AutocompleteInput, AutocompleteItem, AutocompletePopup, AutocompleteSeparator } from "./components/autocomplete.js";
|
|
@@ -282,5 +283,5 @@ declare const variants: {
|
|
|
282
283
|
};
|
|
283
284
|
};
|
|
284
285
|
//#endregion
|
|
285
|
-
export { Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, type AnimationConfig, type AppAccount, type AppAccountAction, type AppAccountActionGroup, AppBar, type AppBarProps, type AppBreadcrumbItem, type AppIcon, type AppLinkRenderProps, type AppLinkRenderer, type AppNavigationChild, type AppNavigationGroup, type AppNavigationItem, AppShell, type AppShellBrand, type AppShellProps, Autocomplete, AutocompleteEmpty, AutocompleteInput, AutocompleteItem, AutocompletePopup, AutocompleteSeparator, Avatar, AvatarFallback, AvatarImage, type BackdropConfig, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, Calendar, Card, CardAction, type CardComponent, CardContent, CardDescription, CardFooter, CardHeader, type CardId, type CardInjectedProps, type CardProps, type CardPushOptions, type CardRouteDefinition, type CardRouteMap, type CardSpec, type CardStackApi, CardStackProvider, type CardStackProviderProps, CardStackViewport, type CardStackViewportProps, CardTitle, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, Collapsible, CollapsiblePanel as CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxContent, type ComboboxContentProps, ComboboxEmpty, type ComboboxEmptyProps, ComboboxGroup, type ComboboxGroupProps, ComboboxInput, type ComboboxInputProps, ComboboxItem, type ComboboxItemProps, ComboboxList, type ComboboxListProps, type ComboboxProps, ComboboxSeparator, type ComboboxSeparatorProps, ComboboxTrigger, type ComboboxTriggerProps, Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, DEFAULT_ANIMATION_CONFIG, DeferredCardContent, type DeferredCardContentProps, Dialog, DialogBackdrop, DialogClose, DialogPopup as DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogTitle, DialogTrigger, type DismissOptions, Dock, DockIcon, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, type FieldProps, FieldRow, type FieldRowProps, FieldSeparator, FieldSet, FieldTitle, FlickeringGrid, type FloatingPortalStrategy, type FloatingZIndex, FlowZoomPanel, Form, FormControl, FormControl$1 as FormControlComponent, type FormControlLayout, FormDescription, FormField, FormItem, FormLabel, FormMessage, type Frame, type FrameDot, type Frames, type GestureConfig, Input, InputGroup, InputGroupAddon, InputGroupInput, InputGroupText, InputGroupTextarea, type InputProps, JsonEditor, JsonInput, Label, type LabelProps, type LayoutMode, type LegacyFieldProps, type MobileConfig, ModalPortalScope, MotionGrid, type MotionGridProps, MultiSelect, type MultiSelectGroup, type MultiSelectOption, type MultiSelectProps, type MultiSelectRef, type OverlayLayer, PORTAL_ROOT_ID, PageHeader, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type PeekGestureConfig, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverDescription, PopoverTitle, PopoverTrigger, PortalRoot, Progress, type ProgressProps, ProgressiveBlur, ProgressiveBlurScrollContainer, type PushOptions, Radio, Radio as RadioGroupItem, RadioGroup, type RadioGroupProps, type RadioProps, RangeCalendar, RecordPicker, ResizableHandle, ResizablePanel, ResizablePanelGroup, ResponsiveDiagram, type ResponsiveOffsetConfig, type ResponsiveOffsetResult, ScrollArea, ScrollBar, Select, SelectPopup as SelectContent, SelectPopup, SelectFieldItem, SelectGroup, SelectGroupLabel, SelectGroupLabel as SelectLabel, SelectItem, SelectRichItem, SelectSeparator, SelectTrigger, SelectValue, Separator, type SeparatorProps, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, type SkeletonProps, Slot, Slottable, type StackAction, StackBackdrop, type StackBackdropProps, StackCard, type StackCardProps, type StackContextValue, StackHeader, type StackHeaderProps, StackHeaderSlot, type StackHeaderSlotProps, type StackState, Stepper, StepperDescription, StepperIndicator, StepperItem, StepperSeparator, StepperTitle, StepperTrigger, type StructuralFieldProps, Switch, type SwitchProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tags, TagsContent, type TagsContentProps, TagsEmpty, type TagsEmptyProps, TagsGroup, type TagsGroupProps, TagsInput, type TagsInputProps, TagsItem, type TagsItemProps, TagsList, type TagsListProps, type TagsProps, TagsTrigger, type TagsTriggerProps, TagsValue, type TagsValueProps, Textarea, type TextareaProps, type ToastErrorProps, type ToastInfoProps, type ToastSuccessProps, type ToastWarningProps, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UnlinkButton, type UsePeekGesturesOptions, type UsePeekGesturesResult, type UseStackGesturesResult, type UseStackResponsiveResult, alertVariants, backdropVariants, badgeVariants, buttonVariants, calculateResponsiveOffset, cardVariants, cn, composeRefs, createAppLink, createCardVariants, createOffsetTransition, createReducedMotionVariants, dockVariants, durations, easings, getCardOffset, getCardZIndex, getCascadeOffset, getResponsiveCardOffset, getSideBySideOffset, getVisibleCardIndices, isCardVisible, mergeProps, normalizeWidth, parseWidthToPixels, peekDragSpring, peekHoverSpring, peekSlideSpring, reducedMotionBackdropVariants, showErrorToast, showInfoToast, showSuccessToast, showWarningToast, snapBackSpring, springs, swipeDismissTransition, toast, transitions, useCardIndex, useCardInjectedProps, useCardReady, useCardStack, useControllableState, useFloatingOverlayPortalProps, useFormField, useInModalOverlay, useIsMobile, useIsTopCard, usePeekGestures, usePortalContainer, usePortalContext, useRootPortalContainer, useSidebar, useStackCards, useStackContext, useStackGestures, useStackLayoutMode, useStackResponsive, validateJson, variants };
|
|
286
|
+
export { AgentLoader, type AgentLoaderProps, type AgentLoaderVariant, AiImage, type AiImageProps, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, type AnimationConfig, type AppAccount, type AppAccountAction, type AppAccountActionGroup, AppBar, type AppBarProps, type AppBreadcrumbItem, type AppIcon, type AppLinkRenderProps, type AppLinkRenderer, type AppNavigationChild, type AppNavigationGroup, type AppNavigationItem, AppShell, type AppShellBrand, type AppShellProps, ApprovalCard, type ApprovalCardProps, type ApprovalOption, type ApprovalQuestion, Autocomplete, AutocompleteEmpty, AutocompleteInput, AutocompleteItem, AutocompletePopup, AutocompleteSeparator, Avatar, AvatarFallback, AvatarImage, type BackdropConfig, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, Calendar, Card, CardAction, type CardComponent, CardContent, CardDescription, CardFooter, CardHeader, type CardId, type CardInjectedProps, type CardProps, type CardPushOptions, type CardRouteDefinition, type CardRouteMap, type CardSpec, type CardStackApi, CardStackProvider, type CardStackProviderProps, CardStackViewport, type CardStackViewportProps, CardTitle, ChainOfThought, ChainOfThoughtStep, ChatContainer, ChatContainerContent, type ChatContainerContentProps, type ChatContainerProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, CodeBlock, type CodeBlockProps, Collapsible, CollapsiblePanel as CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxContent, type ComboboxContentProps, ComboboxEmpty, type ComboboxEmptyProps, ComboboxGroup, type ComboboxGroupProps, ComboboxInput, type ComboboxInputProps, ComboboxItem, type ComboboxItemProps, ComboboxList, type ComboboxListProps, type ComboboxProps, ComboboxSeparator, type ComboboxSeparatorProps, ComboboxTrigger, type ComboboxTriggerProps, Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, ContextCard, type ContextCardProps, ContextCards, type ContextCardsProps, ContextRing, type ContextRingProps, type ContextUsage, DEFAULT_ANIMATION_CONFIG, DeferredCardContent, type DeferredCardContentProps, Dialog, DialogBackdrop, DialogClose, DialogPopup as DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogTitle, DialogTrigger, type DiffFileChip, DiffTable, type DiffTableAddedRow, type DiffTableColumn, type DiffTableProps, type DiffTableRowBase, type DismissOptions, Dock, DockIcon, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, FeedbackBar, type FeedbackBarProps, type FeedbackValue, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, type FieldProps, FieldRow, type FieldRowProps, FieldSeparator, FieldSet, FieldTitle, FileUpload, type FileUploadProps, FlickeringGrid, type FloatingPortalStrategy, type FloatingZIndex, FlowZoomPanel, Form, FormControl, FormControl$1 as FormControlComponent, type FormControlLayout, FormDescription, FormField, FormItem, FormLabel, FormMessage, type Frame, type FrameDot, type Frames, type GestureConfig, InlineDiff, type InlineDiffProps, type InlineDiffSource, Input, InputGroup, InputGroupAddon, InputGroupInput, InputGroupText, InputGroupTextarea, type InputProps, JsonEditor, JsonInput, Label, type LabelProps, type LayoutMode, type LegacyFieldProps, Loader, Markdown, type MarkdownProps, Message, MessageAction, type MessageActionProps, MessageActions, type MessageActionsProps, MessageAvatar, type MessageAvatarProps, MessageContent, type MessageContentProps, type MessageProps, type MobileConfig, ModalPortalScope, MotionGrid, type MotionGridProps, MultiSelect, type MultiSelectGroup, type MultiSelectOption, type MultiSelectProps, type MultiSelectRef, type NormalizedToolStatus, type OverlayLayer, PORTAL_ROOT_ID, PageHeader, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type PeekGestureConfig, type PixelVariant, type Plan, type PlanStep, type PlanStepStatus, PlanTracker, type PlanTrackerProps, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverDescription, PopoverTitle, PopoverTrigger, PortalRoot, Progress, type ProgressProps, ProgressiveBlur, ProgressiveBlurScrollContainer, PromptInput, PromptInputAction, type PromptInputActionProps, PromptInputActions, type PromptInputActionsProps, PromptInputBody, type PromptInputBodyProps, type PromptInputProps, PromptInputTextarea, type PromptInputTextareaProps, PromptSuggestion, type PromptSuggestionProps, PromptSuggestions, type PromptSuggestionsProps, type PushOptions, Radio, Radio as RadioGroupItem, RadioGroup, type RadioGroupProps, type RadioProps, RangeCalendar, Reasoning, type ReasoningProps, RecommendationCard, type RecommendationCardProps, type RecommendationOption, RecordPicker, ResizableHandle, ResizablePanel, ResizablePanelGroup, ResponseStream, type ResponseStreamMode, type ResponseStreamProps, ResponsiveDiagram, type ResponsiveOffsetConfig, type ResponsiveOffsetResult, STREAM_THROTTLE_MS, ScrollArea, ScrollBar, ScrollButton, type ScrollButtonProps, Select, SelectPopup as SelectContent, SelectPopup, SelectFieldItem, SelectGroup, SelectGroupLabel, SelectGroupLabel as SelectLabel, SelectItem, SelectRichItem, SelectSeparator, SelectTrigger, SelectValue, Separator, type SeparatorProps, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, type SimpleVariant, Skeleton, type SkeletonProps, Slot, Slottable, Source, type SourceProps, Sources, type SourcesProps, type StackAction, StackBackdrop, type StackBackdropProps, StackCard, type StackCardProps, type StackContextValue, StackHeader, type StackHeaderProps, StackHeaderSlot, type StackHeaderSlotProps, type StackState, StatusIcon, Step, type StepProps, type StepStatus, Stepper, StepperDescription, StepperIndicator, StepperItem, StepperSeparator, StepperTitle, StepperTrigger, Steps, type StepsProps, type StreamToken, StreamingText, type StreamingTextProps, type StreamingTextSource, type StructuralFieldProps, Switch, type SwitchProps, SystemMessage, type SystemMessageProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tags, TagsContent, type TagsContentProps, TagsEmpty, type TagsEmptyProps, TagsGroup, type TagsGroupProps, TagsInput, type TagsInputProps, TagsItem, type TagsItemProps, TagsList, type TagsListProps, type TagsProps, TagsTrigger, type TagsTriggerProps, TagsValue, type TagsValueProps, type TaskDetail, TaskList, type TaskListProps, TaskRow, type TaskRowProps, type TaskStatus, TextShimmer, type TextShimmerProps, Textarea, type TextareaProps, ThinkingBar, type ThinkingBarProps, ThinkingTrace, type ThinkingTraceMode, type ThinkingTraceProps, type ThinkingTraceRow, type ToastErrorProps, type ToastInfoProps, type ToastSuccessProps, type ToastWarningProps, Toaster, Tool, ToolGroup, type ToolGroupProps, type ToolProps, type ToolStatus, type ToolVariant, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UnlinkButton, type UsePeekGesturesOptions, type UsePeekGesturesResult, type UseStackGesturesResult, type UseStackResponsiveResult, alertVariants, backdropVariants, badgeVariants, buttonVariants, calculateResponsiveOffset, cardVariants, cn, composeRefs, createAppLink, createCardVariants, createOffsetTransition, createReducedMotionVariants, dockVariants, durations, easings, formatCompact, formatDuration, getCardOffset, getCardZIndex, getCascadeOffset, getResponsiveCardOffset, getSideBySideOffset, getVisibleCardIndices, isCardVisible, lineDiff, mergeProps, normalizeToolStatus, normalizeWidth, parseWidthToPixels, peekDragSpring, peekHoverSpring, peekSlideSpring, reducedMotionBackdropVariants, renderBasicMarkdown, showErrorToast, showInfoToast, showSuccessToast, showWarningToast, snapBackSpring, springs, swipeDismissTransition, toast, transitions, useCardIndex, useCardInjectedProps, useCardReady, useCardStack, useChatContainer, useControllableState, useFloatingOverlayPortalProps, useFormField, useInModalOverlay, useIsMobile, useIsTopCard, usePeekGestures, usePortalContainer, usePortalContext, usePromptInput, useRootPortalContainer, useSidebar, useStackCards, useStackContext, useStackGestures, useStackLayoutMode, useStackResponsive, useThrottledText, validateJson, variants };
|
|
286
287
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -45,7 +45,7 @@ import { MultiSelect } from "./components/multi-select.js";
|
|
|
45
45
|
import { Tags, TagsContent, TagsEmpty, TagsGroup, TagsInput, TagsItem, TagsList, TagsTrigger, TagsValue } from "./components/tags.js";
|
|
46
46
|
import { t as RecordPicker } from "./record-picker-BbxngCeV.js";
|
|
47
47
|
import { Stepper, StepperDescription, StepperIndicator, StepperItem, StepperSeparator, StepperTitle, StepperTrigger } from "./components/stepper.js";
|
|
48
|
-
import { C as SidebarTrigger, S as SidebarSeparator, _ as SidebarMenuSub, a as SidebarGroupAction, b as SidebarProvider, c as SidebarHeader, d as SidebarMenu, f as SidebarMenuAction, g as SidebarMenuSkeleton, h as SidebarMenuItem, i as SidebarGroup, l as SidebarInput, m as SidebarMenuButton, n as SidebarContent, o as SidebarGroupContent, p as SidebarMenuBadge, r as SidebarFooter, s as SidebarGroupLabel, t as Sidebar, u as SidebarInset, v as SidebarMenuSubButton, w as useSidebar, x as SidebarRail, y as SidebarMenuSubItem } from "./sidebar-
|
|
48
|
+
import { C as SidebarTrigger, S as SidebarSeparator, _ as SidebarMenuSub, a as SidebarGroupAction, b as SidebarProvider, c as SidebarHeader, d as SidebarMenu, f as SidebarMenuAction, g as SidebarMenuSkeleton, h as SidebarMenuItem, i as SidebarGroup, l as SidebarInput, m as SidebarMenuButton, n as SidebarContent, o as SidebarGroupContent, p as SidebarMenuBadge, r as SidebarFooter, s as SidebarGroupLabel, t as Sidebar, u as SidebarInset, v as SidebarMenuSubButton, w as useSidebar, x as SidebarRail, y as SidebarMenuSubItem } from "./sidebar-DeoL2ttp.js";
|
|
49
49
|
import { AppBar, createAppLink } from "./components/app-bar.js";
|
|
50
50
|
import { AppShell } from "./components/app-shell.js";
|
|
51
51
|
import { Calendar, RangeCalendar } from "./components/calendar-rac.js";
|
|
@@ -61,6 +61,7 @@ import { ResponsiveDiagram } from "./components/responsive-diagram.js";
|
|
|
61
61
|
import { UnlinkButton } from "./components/unlink-button.js";
|
|
62
62
|
import { A as snapBackSpring, B as useStackLayoutMode, C as createCardVariants, D as peekHoverSpring, E as peekDragSpring, F as useCardReady, I as useCardStack, L as useIsTopCard, M as CardStackProvider, N as useCardIndex, O as peekSlideSpring, P as useCardInjectedProps, R as useStackCards, S as backdropVariants, T as createReducedMotionVariants, _ as parseWidthToPixels, a as useStackGestures, b as StackBackdrop, c as calculateResponsiveOffset, d as getCascadeOffset, f as getResponsiveCardOffset, g as normalizeWidth, h as isCardVisible, i as useStackResponsive, j as swipeDismissTransition, k as reducedMotionBackdropVariants, l as getCardOffset, m as getVisibleCardIndices, n as CardStackViewport, o as StackCard, p as getSideBySideOffset, r as useIsMobile, s as usePeekGestures, t as DeferredCardContent, u as getCardZIndex, v as StackHeader, w as createOffsetTransition, x as DEFAULT_ANIMATION_CONFIG, y as StackHeaderSlot, z as useStackContext } from "./stack-jMdxDrex.js";
|
|
63
63
|
import { a as showErrorToast, i as showInfoToast, n as showWarningToast, r as showSuccessToast, t as toast } from "./toast-D_BOLzm3.js";
|
|
64
|
+
import { $ as PromptInputTextarea, A as Reasoning, B as Message, C as ToolGroup, D as Step, E as ChainOfThoughtStep, F as ChatContainer, G as Markdown, H as MessageActions, I as ChatContainerContent, J as useThrottledText, K as renderBasicMarkdown, L as useChatContainer, M as formatDuration, N as SystemMessage, O as Steps, P as ScrollButton, Q as PromptInputBody, R as ResponseStream, S as Tool, T as ChainOfThought, U as MessageAvatar, V as MessageAction, W as MessageContent, X as PromptInputAction, Y as PromptInput, Z as PromptInputActions, _ as lineDiff, a as ContextCards, b as ApprovalCard, c as ContextRing, d as DiffTable, et as usePromptInput, f as StreamingText, g as InlineDiff, h as FeedbackBar, i as ContextCard, j as ThinkingBar, k as ThinkingTrace, l as formatCompact, m as PromptSuggestions, n as FileUpload, nt as Loader, o as TaskList, p as PromptSuggestion, q as STREAM_THROTTLE_MS, r as RecommendationCard, rt as TextShimmer, s as TaskRow, t as AiImage, tt as AgentLoader, u as PlanTracker, v as Source, w as normalizeToolStatus, x as StatusIcon, y as Sources, z as CodeBlock } from "./ai-CiaH2sfF.js";
|
|
64
65
|
import { ModalPortalScope, PORTAL_ROOT_ID, PortalRoot, useFloatingOverlayPortalProps, useInModalOverlay, usePortalContainer, usePortalContext, useRootPortalContainer } from "@constructive-io/ui/portal";
|
|
65
66
|
|
|
66
|
-
export { Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AppBar, AppShell, Autocomplete, AutocompleteEmpty, AutocompleteInput, AutocompleteItem, AutocompletePopup, AutocompleteSeparator, Avatar, AvatarFallback, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardStackProvider, CardStackViewport, CardTitle, Checkbox, CheckboxGroup, Collapsible, CollapsiblePanel as CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxList, ComboboxSeparator, ComboboxTrigger, Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, DEFAULT_ANIMATION_CONFIG, DeferredCardContent, Dialog, DialogBackdrop, DialogClose, DialogPopup as DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogTitle, DialogTrigger, Dock, DockIcon, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldRow, FieldSeparator, FieldSet, FieldTitle, FlickeringGrid, FlowZoomPanel, Form, FormControl, FormControl$1 as FormControlComponent, FormDescription, FormField, FormItem, FormLabel, FormMessage, Input, InputGroup, InputGroupAddon, InputGroupInput, InputGroupText, InputGroupTextarea, JsonEditor, JsonInput, Label, ModalPortalScope, MotionGrid, MultiSelect, PORTAL_ROOT_ID, PageHeader, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverDescription, PopoverTitle, PopoverTrigger, PortalRoot, Progress, ProgressiveBlur, ProgressiveBlurScrollContainer, Radio, Radio as RadioGroupItem, RadioGroup, RangeCalendar, RecordPicker, ResizableHandle, ResizablePanel, ResizablePanelGroup, ResponsiveDiagram, ScrollArea, ScrollBar, Select, SelectPopup as SelectContent, SelectPopup, SelectFieldItem, SelectGroup, SelectGroupLabel, SelectGroupLabel as SelectLabel, SelectItem, SelectRichItem, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slot, Slottable, StackBackdrop, StackCard, StackHeader, StackHeaderSlot, Stepper, StepperDescription, StepperIndicator, StepperItem, StepperSeparator, StepperTitle, StepperTrigger, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tags, TagsContent, TagsEmpty, TagsGroup, TagsInput, TagsItem, TagsList, TagsTrigger, TagsValue, Textarea, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UnlinkButton, alertVariants, backdropVariants, badgeVariants, buttonVariants, calculateResponsiveOffset, cardVariants, cn, composeRefs, createAppLink, createCardVariants, createOffsetTransition, createReducedMotionVariants, dockVariants, durations, easings, getCardOffset, getCardZIndex, getCascadeOffset, getResponsiveCardOffset, getSideBySideOffset, getVisibleCardIndices, isCardVisible, mergeProps, normalizeWidth, parseWidthToPixels, peekDragSpring, peekHoverSpring, peekSlideSpring, reducedMotionBackdropVariants, showErrorToast, showInfoToast, showSuccessToast, showWarningToast, snapBackSpring, springs, swipeDismissTransition, toast, transitions, useCardIndex, useCardInjectedProps, useCardReady, useCardStack, useControllableState, useFloatingOverlayPortalProps, useFormField, useInModalOverlay, useIsMobile, useIsTopCard, usePeekGestures, usePortalContainer, usePortalContext, useRootPortalContainer, useSidebar, useStackCards, useStackContext, useStackGestures, useStackLayoutMode, useStackResponsive, validateJson, variants };
|
|
67
|
+
export { AgentLoader, AiImage, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AppBar, AppShell, ApprovalCard, Autocomplete, AutocompleteEmpty, AutocompleteInput, AutocompleteItem, AutocompletePopup, AutocompleteSeparator, Avatar, AvatarFallback, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardStackProvider, CardStackViewport, CardTitle, ChainOfThought, ChainOfThoughtStep, ChatContainer, ChatContainerContent, Checkbox, CheckboxGroup, CodeBlock, Collapsible, CollapsiblePanel as CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxList, ComboboxSeparator, ComboboxTrigger, Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, ContextCard, ContextCards, ContextRing, DEFAULT_ANIMATION_CONFIG, DeferredCardContent, Dialog, DialogBackdrop, DialogClose, DialogPopup as DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogTitle, DialogTrigger, DiffTable, Dock, DockIcon, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, FeedbackBar, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldRow, FieldSeparator, FieldSet, FieldTitle, FileUpload, FlickeringGrid, FlowZoomPanel, Form, FormControl, FormControl$1 as FormControlComponent, FormDescription, FormField, FormItem, FormLabel, FormMessage, InlineDiff, Input, InputGroup, InputGroupAddon, InputGroupInput, InputGroupText, InputGroupTextarea, JsonEditor, JsonInput, Label, Loader, Markdown, Message, MessageAction, MessageActions, MessageAvatar, MessageContent, ModalPortalScope, MotionGrid, MultiSelect, PORTAL_ROOT_ID, PageHeader, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PlanTracker, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverDescription, PopoverTitle, PopoverTrigger, PortalRoot, Progress, ProgressiveBlur, ProgressiveBlurScrollContainer, PromptInput, PromptInputAction, PromptInputActions, PromptInputBody, PromptInputTextarea, PromptSuggestion, PromptSuggestions, Radio, Radio as RadioGroupItem, RadioGroup, RangeCalendar, Reasoning, RecommendationCard, RecordPicker, ResizableHandle, ResizablePanel, ResizablePanelGroup, ResponseStream, ResponsiveDiagram, STREAM_THROTTLE_MS, ScrollArea, ScrollBar, ScrollButton, Select, SelectPopup as SelectContent, SelectPopup, SelectFieldItem, SelectGroup, SelectGroupLabel, SelectGroupLabel as SelectLabel, SelectItem, SelectRichItem, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slot, Slottable, Source, Sources, StackBackdrop, StackCard, StackHeader, StackHeaderSlot, StatusIcon, Step, Stepper, StepperDescription, StepperIndicator, StepperItem, StepperSeparator, StepperTitle, StepperTrigger, Steps, StreamingText, Switch, SystemMessage, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tags, TagsContent, TagsEmpty, TagsGroup, TagsInput, TagsItem, TagsList, TagsTrigger, TagsValue, TaskList, TaskRow, TextShimmer, Textarea, ThinkingBar, ThinkingTrace, Toaster, Tool, ToolGroup, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UnlinkButton, alertVariants, backdropVariants, badgeVariants, buttonVariants, calculateResponsiveOffset, cardVariants, cn, composeRefs, createAppLink, createCardVariants, createOffsetTransition, createReducedMotionVariants, dockVariants, durations, easings, formatCompact, formatDuration, getCardOffset, getCardZIndex, getCascadeOffset, getResponsiveCardOffset, getSideBySideOffset, getVisibleCardIndices, isCardVisible, lineDiff, mergeProps, normalizeToolStatus, normalizeWidth, parseWidthToPixels, peekDragSpring, peekHoverSpring, peekSlideSpring, reducedMotionBackdropVariants, renderBasicMarkdown, showErrorToast, showInfoToast, showSuccessToast, showWarningToast, snapBackSpring, springs, swipeDismissTransition, toast, transitions, useCardIndex, useCardInjectedProps, useCardReady, useCardStack, useChatContainer, useControllableState, useFloatingOverlayPortalProps, useFormField, useInModalOverlay, useIsMobile, useIsTopCard, usePeekGestures, usePortalContainer, usePortalContext, usePromptInput, useRootPortalContainer, useSidebar, useStackCards, useStackContext, useStackGestures, useStackLayoutMode, useStackResponsive, useThrottledText, validateJson, variants };
|
|
@@ -17,18 +17,35 @@ let _base_ui_react_use_render = require("@base-ui/react/use-render");
|
|
|
17
17
|
|
|
18
18
|
//#region src/lib/use-mobile.ts
|
|
19
19
|
const MOBILE_BREAKPOINT = 768;
|
|
20
|
+
var MobileBreakpointStore = class MobileBreakpointStore {
|
|
21
|
+
static instance;
|
|
22
|
+
listeners = /* @__PURE__ */ new Set();
|
|
23
|
+
mediaQuery;
|
|
24
|
+
isMobile = false;
|
|
25
|
+
constructor() {
|
|
26
|
+
if (typeof window === "undefined") return;
|
|
27
|
+
this.mediaQuery = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
|
28
|
+
this.isMobile = this.mediaQuery.matches;
|
|
29
|
+
this.mediaQuery.addEventListener("change", this.handleChange, { passive: true });
|
|
30
|
+
}
|
|
31
|
+
static getInstance() {
|
|
32
|
+
if (!MobileBreakpointStore.instance) MobileBreakpointStore.instance = new MobileBreakpointStore();
|
|
33
|
+
return MobileBreakpointStore.instance;
|
|
34
|
+
}
|
|
35
|
+
handleChange = (event) => {
|
|
36
|
+
this.isMobile = event.matches;
|
|
37
|
+
this.listeners.forEach((listener) => listener());
|
|
38
|
+
};
|
|
39
|
+
subscribe = (listener) => {
|
|
40
|
+
this.listeners.add(listener);
|
|
41
|
+
return () => this.listeners.delete(listener);
|
|
42
|
+
};
|
|
43
|
+
getSnapshot = () => this.isMobile;
|
|
44
|
+
getServerSnapshot = () => false;
|
|
45
|
+
};
|
|
20
46
|
function useIsMobile() {
|
|
21
|
-
const
|
|
22
|
-
react.
|
|
23
|
-
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
|
24
|
-
const onChange = () => {
|
|
25
|
-
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
26
|
-
};
|
|
27
|
-
mql.addEventListener("change", onChange);
|
|
28
|
-
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
29
|
-
return () => mql.removeEventListener("change", onChange);
|
|
30
|
-
}, []);
|
|
31
|
-
return isMobile;
|
|
47
|
+
const store = MobileBreakpointStore.getInstance();
|
|
48
|
+
return (0, react.useSyncExternalStore)(store.subscribe, store.getSnapshot, store.getServerSnapshot);
|
|
32
49
|
}
|
|
33
50
|
|
|
34
51
|
//#endregion
|
|
@@ -605,4 +622,4 @@ Object.defineProperty(exports, 'useSidebar', {
|
|
|
605
622
|
return useSidebar;
|
|
606
623
|
}
|
|
607
624
|
});
|
|
608
|
-
//# sourceMappingURL=sidebar-
|
|
625
|
+
//# sourceMappingURL=sidebar-BavjjJp0.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sidebar-BavjjJp0.cjs","names":["React","TooltipProvider","cn","Sheet","SheetContent","SheetHeader","SheetTitle","SheetDescription","Button","PanelLeftIcon","Input","Separator","TooltipTrigger","Tooltip","TooltipContent","Skeleton"],"sources":["../src/lib/use-mobile.ts","../src/components/sidebar.tsx"],"sourcesContent":["'use client';\n\nimport { useSyncExternalStore } from 'react';\n\nconst MOBILE_BREAKPOINT = 768;\n\nclass MobileBreakpointStore {\n\tprivate static instance: MobileBreakpointStore | undefined;\n\tprivate readonly listeners = new Set<() => void>();\n\tprivate readonly mediaQuery: MediaQueryList | undefined;\n\tprivate isMobile = false;\n\n\tprivate constructor() {\n\t\tif (typeof window === 'undefined') return;\n\n\t\tthis.mediaQuery = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);\n\t\tthis.isMobile = this.mediaQuery.matches;\n\t\tthis.mediaQuery.addEventListener('change', this.handleChange, { passive: true });\n\t}\n\n\tstatic getInstance(): MobileBreakpointStore {\n\t\tif (!MobileBreakpointStore.instance) {\n\t\t\tMobileBreakpointStore.instance = new MobileBreakpointStore();\n\t\t}\n\n\t\treturn MobileBreakpointStore.instance;\n\t}\n\n\tprivate handleChange = (event: MediaQueryListEvent) => {\n\t\tthis.isMobile = event.matches;\n\t\tthis.listeners.forEach((listener) => listener());\n\t};\n\n\tsubscribe = (listener: () => void): (() => void) => {\n\t\tthis.listeners.add(listener);\n\t\treturn () => this.listeners.delete(listener);\n\t};\n\n\tgetSnapshot = (): boolean => this.isMobile;\n\n\tgetServerSnapshot = (): boolean => false;\n}\n\nexport function useIsMobile(): boolean {\n\tconst store = MobileBreakpointStore.getInstance();\n\treturn useSyncExternalStore(store.subscribe, store.getSnapshot, store.getServerSnapshot);\n}\n","'use client';\n\nimport * as React from 'react';\nimport { mergeProps } from '@base-ui/react/merge-props';\nimport { useRender } from '@base-ui/react/use-render';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { PanelLeftIcon } from 'lucide-react';\n\nimport { useIsMobile } from '../lib/use-mobile';\nimport { cn } from '../lib/utils';\nimport { Button } from './button';\nimport { Input } from './input';\nimport { Separator } from './separator';\nimport { Sheet, SheetContent, SheetDescription, SheetHeader, SheetTitle } from './sheet';\nimport { Skeleton } from './skeleton';\nimport { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from './tooltip';\n\nconst SIDEBAR_COOKIE_NAME = 'sidebar_state';\nconst SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;\nconst SIDEBAR_WIDTH = '16rem';\nconst SIDEBAR_WIDTH_MOBILE = '18rem';\nconst SIDEBAR_WIDTH_ICON = '3rem';\nconst SIDEBAR_KEYBOARD_SHORTCUT = 'b';\n\ntype SidebarContextProps = {\n\tsidebarId: string;\n\tstate: 'expanded' | 'collapsed';\n\topen: boolean;\n\tsetOpen: (open: boolean | ((open: boolean) => boolean)) => void;\n\topenMobile: boolean;\n\tsetOpenMobile: React.Dispatch<React.SetStateAction<boolean>>;\n\tisMobile: boolean;\n\ttoggleSidebar: () => void;\n};\n\nconst SidebarContext = React.createContext<SidebarContextProps | null>(null);\n\nfunction useSidebar() {\n\tconst context = React.useContext(SidebarContext);\n\tif (!context) {\n\t\tthrow new Error('useSidebar must be used within a SidebarProvider.');\n\t}\n\n\treturn context;\n}\n\nfunction SidebarProvider({\n\tdefaultOpen = true,\n\topen: openProp,\n\tonOpenChange: setOpenProp,\n\tclassName,\n\tstyle,\n\tchildren,\n\t...props\n}: React.ComponentProps<'div'> & {\n\tdefaultOpen?: boolean;\n\topen?: boolean;\n\tonOpenChange?: (open: boolean) => void;\n}) {\n\tconst isMobile = useIsMobile();\n\tconst sidebarId = React.useId();\n\tconst [openMobile, setOpenMobile] = React.useState(false);\n\tconst [_open, _setOpen] = React.useState(defaultOpen);\n\tconst open = openProp ?? _open;\n\tconst setOpen = React.useCallback(\n\t\t(value: boolean | ((value: boolean) => boolean)) => {\n\t\t\tconst openState = typeof value === 'function' ? value(open) : value;\n\t\t\tif (setOpenProp) {\n\t\t\t\tsetOpenProp(openState);\n\t\t\t} else {\n\t\t\t\t_setOpen(openState);\n\t\t\t}\n\n\t\t\tdocument.cookie = `${SIDEBAR_COOKIE_NAME}=${openState}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`;\n\t\t},\n\t\t[open, setOpenProp],\n\t);\n\n\tconst toggleSidebar = React.useCallback(() => {\n\t\treturn isMobile ? setOpenMobile((currentOpen) => !currentOpen) : setOpen((currentOpen) => !currentOpen);\n\t}, [isMobile, setOpen]);\n\n\tReact.useEffect(() => {\n\t\tconst handleKeyDown = (event: KeyboardEvent) => {\n\t\t\tif (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {\n\t\t\t\tevent.preventDefault();\n\t\t\t\ttoggleSidebar();\n\t\t\t}\n\t\t};\n\n\t\twindow.addEventListener('keydown', handleKeyDown);\n\t\treturn () => window.removeEventListener('keydown', handleKeyDown);\n\t}, [toggleSidebar]);\n\n\tconst state = open ? 'expanded' : 'collapsed';\n\tconst contextValue = React.useMemo<SidebarContextProps>(\n\t\t() => ({\n\t\t\tsidebarId,\n\t\t\tstate,\n\t\t\topen,\n\t\t\tsetOpen,\n\t\t\tisMobile,\n\t\t\topenMobile,\n\t\t\tsetOpenMobile,\n\t\t\ttoggleSidebar,\n\t\t}),\n\t\t[sidebarId, state, open, setOpen, isMobile, openMobile, toggleSidebar],\n\t);\n\n\treturn (\n\t\t<SidebarContext.Provider value={contextValue}>\n\t\t\t<TooltipProvider delay={0}>\n\t\t\t\t<div\n\t\t\t\t\tdata-slot='sidebar-wrapper'\n\t\t\t\t\tstyle={\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t'--sidebar-width': SIDEBAR_WIDTH,\n\t\t\t\t\t\t\t'--sidebar-width-icon': SIDEBAR_WIDTH_ICON,\n\t\t\t\t\t\t\t...style,\n\t\t\t\t\t\t} as React.CSSProperties\n\t\t\t\t\t}\n\t\t\t\t\tclassName={cn('group/sidebar-wrapper flex min-h-dvh w-full has-data-[variant=inset]:bg-sidebar', className)}\n\t\t\t\t\t{...props}\n\t\t\t\t>\n\t\t\t\t\t{children}\n\t\t\t\t</div>\n\t\t\t</TooltipProvider>\n\t\t</SidebarContext.Provider>\n\t);\n}\n\nfunction Sidebar({\n\tside = 'left',\n\tvariant = 'sidebar',\n\tcollapsible = 'offcanvas',\n\tclassName,\n\tchildren,\n\tdir,\n\t...props\n}: React.ComponentProps<'div'> & {\n\tside?: 'left' | 'right';\n\tvariant?: 'sidebar' | 'floating' | 'inset';\n\tcollapsible?: 'offcanvas' | 'icon' | 'none';\n}) {\n\tconst { isMobile, sidebarId, state, openMobile, setOpenMobile } = useSidebar();\n\n\tif (collapsible === 'none') {\n\t\treturn (\n\t\t\t<div\n\t\t\t\tid={sidebarId}\n\t\t\t\tdata-slot='sidebar'\n\t\t\t\tclassName={cn('flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground', className)}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t);\n\t}\n\n\tif (isMobile) {\n\t\treturn (\n\t\t\t<Sheet open={openMobile} onOpenChange={setOpenMobile} {...props}>\n\t\t\t\t<SheetContent\n\t\t\t\t\tid={sidebarId}\n\t\t\t\t\tdir={dir}\n\t\t\t\t\tdata-sidebar='sidebar'\n\t\t\t\t\tdata-slot='sidebar'\n\t\t\t\t\tdata-mobile='true'\n\t\t\t\t\tclassName={`w-(--sidebar-width) bg-sidebar pt-[env(safe-area-inset-top)]\n\t\t\t\t\t\tpb-[env(safe-area-inset-bottom)] text-sidebar-foreground [&_[data-sidebar=header]]:pr-12\n\t\t\t\t\t\t[&>[data-slot=sheet-close]]:top-[calc(env(safe-area-inset-top)+0.5rem)]\n\t\t\t\t\t\t[&>[data-slot=sheet-close]]:right-2 [&>[data-slot=sheet-close]]:flex\n\t\t\t\t\t\t[&>[data-slot=sheet-close]]:size-10 [&>[data-slot=sheet-close]]:items-center\n\t\t\t\t\t\t[&>[data-slot=sheet-close]]:justify-center [&>[data-slot=sheet-close]]:rounded-lg\n\t\t\t\t\t\t[&>[data-slot=sheet-close]]:opacity-100 pointer-coarse:[&>[data-slot=sheet-close]]:size-11`}\n\t\t\t\t\tstyle={\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t'--sidebar-width': SIDEBAR_WIDTH_MOBILE,\n\t\t\t\t\t\t} as React.CSSProperties\n\t\t\t\t\t}\n\t\t\t\t\tside={side}\n\t\t\t\t>\n\t\t\t\t\t<SheetHeader className='sr-only'>\n\t\t\t\t\t\t<SheetTitle>Sidebar</SheetTitle>\n\t\t\t\t\t\t<SheetDescription>Displays the mobile sidebar.</SheetDescription>\n\t\t\t\t\t</SheetHeader>\n\t\t\t\t\t<div className='flex h-full w-full flex-col'>{children}</div>\n\t\t\t\t</SheetContent>\n\t\t\t</Sheet>\n\t\t);\n\t}\n\n\treturn (\n\t\t<div\n\t\t\tid={sidebarId}\n\t\t\tclassName='group peer hidden text-sidebar-foreground md:block'\n\t\t\tdata-state={state}\n\t\t\tdata-collapsible={state === 'collapsed' ? collapsible : ''}\n\t\t\tdata-variant={variant}\n\t\t\tdata-side={side}\n\t\t\tdata-slot='sidebar'\n\t\t>\n\t\t\t<div\n\t\t\t\tdata-slot='sidebar-gap'\n\t\t\t\tclassName={cn(\n\t\t\t\t\t'relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear motion-reduce:transition-none',\n\t\t\t\t\t'group-data-[collapsible=offcanvas]:w-0',\n\t\t\t\t\t'group-data-[side=right]:rotate-180',\n\t\t\t\t\tvariant === 'floating' || variant === 'inset'\n\t\t\t\t\t\t? 'group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]'\n\t\t\t\t\t\t: 'group-data-[collapsible=icon]:w-(--sidebar-width-icon)',\n\t\t\t\t)}\n\t\t\t/>\n\t\t\t<div\n\t\t\t\tdata-slot='sidebar-container'\n\t\t\t\tdata-side={side}\n\t\t\t\tclassName={cn(\n\t\t\t\t\t`fixed inset-y-0 z-10 hidden h-dvh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear\n\t\t\t\t\tdata-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]\n\t\t\t\t\tdata-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]\n\t\t\t\t\tmotion-reduce:transition-none md:flex`,\n\t\t\t\t\tvariant === 'floating' || variant === 'inset'\n\t\t\t\t\t\t? 'p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]'\n\t\t\t\t\t\t: `group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r\n\t\t\t\t\t\t\tgroup-data-[side=right]:border-l`,\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t<div\n\t\t\t\t\tdata-sidebar='sidebar'\n\t\t\t\t\tdata-slot='sidebar-inner'\n\t\t\t\t\tclassName='flex size-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg\n\t\t\t\t\t\tgroup-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1\n\t\t\t\t\t\tgroup-data-[variant=floating]:ring-sidebar-border'\n\t\t\t\t>\n\t\t\t\t\t{children}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t);\n}\n\nfunction SidebarTrigger({ className, onClick, ...props }: React.ComponentProps<typeof Button>) {\n\tconst { isMobile, open, openMobile, sidebarId, toggleSidebar } = useSidebar();\n\n\treturn (\n\t\t<Button\n\t\t\taria-controls={sidebarId}\n\t\t\taria-expanded={isMobile ? openMobile : open}\n\t\t\tdata-sidebar='trigger'\n\t\t\tdata-slot='sidebar-trigger'\n\t\t\tvariant='ghost'\n\t\t\tsize='icon-sm'\n\t\t\tclassName={cn(className)}\n\t\t\tonClick={(event) => {\n\t\t\t\tonClick?.(event);\n\t\t\t\ttoggleSidebar();\n\t\t\t}}\n\t\t\t{...props}\n\t\t>\n\t\t\t<PanelLeftIcon />\n\t\t\t<span className='sr-only'>Toggle Sidebar</span>\n\t\t</Button>\n\t);\n}\n\nfunction SidebarRail({ className, ...props }: React.ComponentProps<'button'>) {\n\tconst { toggleSidebar } = useSidebar();\n\n\treturn (\n\t\t<button\n\t\t\ttype='button'\n\t\t\tdata-sidebar='rail'\n\t\t\tdata-slot='sidebar-rail'\n\t\t\taria-label='Toggle Sidebar'\n\t\t\ttabIndex={-1}\n\t\t\tonClick={toggleSidebar}\n\t\t\ttitle='Toggle Sidebar'\n\t\t\tclassName={cn(\n\t\t\t\t`absolute inset-y-0 z-20 hidden w-4 transition-[transform,background-color] duration-200 ease-linear group-data-[side=left]:-right-4\n\t\t\t\tgroup-data-[side=right]:left-0 after:absolute after:inset-y-0 after:start-1/2 after:w-px\n\t\t\t\thover:after:bg-sidebar-border motion-reduce:transition-none sm:flex ltr:-translate-x-1/2 rtl:translate-x-1/2`,\n\t\t\t\t'in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize',\n\t\t\t\t`[[data-side=left][data-state=collapsed]_&]:cursor-e-resize\n\t\t\t\t[[data-side=right][data-state=collapsed]_&]:cursor-w-resize`,\n\t\t\t\t`group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:start-full\n\t\t\t\thover:group-data-[collapsible=offcanvas]:bg-sidebar`,\n\t\t\t\t'[[data-side=left][data-collapsible=offcanvas]_&]:-right-2',\n\t\t\t\t'[[data-side=right][data-collapsible=offcanvas]_&]:-left-2',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction SidebarInset({ className, ...props }: React.ComponentProps<'main'>) {\n\treturn (\n\t\t<main\n\t\t\tdata-slot='sidebar-inset'\n\t\t\tclassName={cn(\n\t\t\t\t`relative flex w-full flex-1 flex-col bg-background md:peer-data-[variant=inset]:m-2\n\t\t\t\tmd:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl\n\t\t\t\tmd:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2`,\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction SidebarInput({ className, ...props }: React.ComponentProps<typeof Input>) {\n\treturn (\n\t\t<Input\n\t\t\tdata-slot='sidebar-input'\n\t\t\tdata-sidebar='input'\n\t\t\tclassName={cn('h-8 w-full bg-background shadow-none', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction SidebarHeader({ className, ...props }: React.ComponentProps<'div'>) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot='sidebar-header'\n\t\t\tdata-sidebar='header'\n\t\t\tclassName={cn('flex flex-col gap-2 p-2', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction SidebarFooter({ className, ...props }: React.ComponentProps<'div'>) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot='sidebar-footer'\n\t\t\tdata-sidebar='footer'\n\t\t\tclassName={cn('flex flex-col gap-2 p-2', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction SidebarSeparator({ className, ...props }: React.ComponentProps<typeof Separator>) {\n\treturn (\n\t\t<Separator\n\t\t\tdata-slot='sidebar-separator'\n\t\t\tdata-sidebar='separator'\n\t\t\tclassName={cn('mx-2 w-auto bg-sidebar-border', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction SidebarContent({ className, ...props }: React.ComponentProps<'div'>) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot='sidebar-content'\n\t\t\tdata-sidebar='content'\n\t\t\tclassName={cn(\n\t\t\t\t'scrollbar-hide flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction SidebarGroup({ className, ...props }: React.ComponentProps<'div'>) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot='sidebar-group'\n\t\t\tdata-sidebar='group'\n\t\t\tclassName={cn('relative flex w-full min-w-0 flex-col p-2', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction SidebarGroupLabel({\n\tclassName,\n\trender,\n\t...props\n}: useRender.ComponentProps<'div'> & React.ComponentProps<'div'>) {\n\treturn useRender({\n\t\tdefaultTagName: 'div',\n\t\tprops: mergeProps<'div'>(\n\t\t\t{\n\t\t\t\tclassName: cn(\n\t\t\t\t\t`flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70\n\t\t\t\t\tring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear\n\t\t\t\t\tgroup-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2\n\t\t\t\t\tmotion-reduce:transition-none [&>svg]:size-4 [&>svg]:shrink-0`,\n\t\t\t\t\tclassName,\n\t\t\t\t),\n\t\t\t},\n\t\t\tprops,\n\t\t),\n\t\trender,\n\t\tstate: {\n\t\t\tslot: 'sidebar-group-label',\n\t\t\tsidebar: 'group-label',\n\t\t},\n\t});\n}\n\nfunction SidebarGroupAction({\n\tclassName,\n\trender,\n\t...props\n}: useRender.ComponentProps<'button'> & React.ComponentProps<'button'>) {\n\treturn useRender({\n\t\tdefaultTagName: 'button',\n\t\tprops: mergeProps<'button'>(\n\t\t\t{\n\t\t\t\tclassName: cn(\n\t\t\t\t\t`absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0\n\t\t\t\t\ttext-sidebar-foreground ring-sidebar-ring outline-hidden transition-transform\n\t\t\t\t\tgroup-data-[collapsible=icon]:hidden after:absolute after:-inset-2 hover:bg-sidebar-accent\n\t\t\t\t\thover:text-sidebar-accent-foreground focus-visible:ring-2 motion-reduce:transition-none md:after:hidden\n\t\t\t\t\t[&>svg]:size-4 [&>svg]:shrink-0`,\n\t\t\t\t\tclassName,\n\t\t\t\t),\n\t\t\t},\n\t\t\tprops,\n\t\t),\n\t\trender,\n\t\tstate: {\n\t\t\tslot: 'sidebar-group-action',\n\t\t\tsidebar: 'group-action',\n\t\t},\n\t});\n}\n\nfunction SidebarGroupContent({ className, ...props }: React.ComponentProps<'div'>) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot='sidebar-group-content'\n\t\t\tdata-sidebar='group-content'\n\t\t\tclassName={cn('w-full text-sm', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction SidebarMenu({ className, ...props }: React.ComponentProps<'ul'>) {\n\treturn (\n\t\t<ul\n\t\t\tdata-slot='sidebar-menu'\n\t\t\tdata-sidebar='menu'\n\t\t\tclassName={cn('flex w-full min-w-0 flex-col gap-0', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction SidebarMenuItem({ className, ...props }: React.ComponentProps<'li'>) {\n\treturn (\n\t\t<li\n\t\t\tdata-slot='sidebar-menu-item'\n\t\t\tdata-sidebar='menu-item'\n\t\t\tclassName={cn('group/menu-item relative', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nconst sidebarMenuButtonVariants = cva(\n\t`peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm\n\tring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8\n\tgroup-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent\n\thover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent\n\tactive:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50\n\taria-disabled:pointer-events-none aria-disabled:opacity-50 data-open:hover:bg-sidebar-accent\n\tdata-open:hover:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:font-medium\n\tdata-active:text-sidebar-accent-foreground pointer-coarse:min-h-11 motion-reduce:transition-none [&_svg]:size-4 [&_svg]:shrink-0\n\t[&>span:last-child]:truncate`,\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tdefault: 'hover:bg-sidebar-accent hover:text-sidebar-accent-foreground',\n\t\t\t\toutline:\n\t\t\t\t\t'bg-background shadow-[0_0_0_1px_var(--sidebar-border)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_var(--sidebar-accent)]',\n\t\t\t},\n\t\t\tsize: {\n\t\t\t\tdefault: 'h-8 text-sm',\n\t\t\t\tsm: 'h-7 text-xs',\n\t\t\t\tlg: 'h-12 text-sm group-data-[collapsible=icon]:p-0!',\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: {\n\t\t\tvariant: 'default',\n\t\t\tsize: 'default',\n\t\t},\n\t},\n);\n\nfunction SidebarMenuButton({\n\trender,\n\tisActive = false,\n\tvariant = 'default',\n\tsize = 'default',\n\ttooltip,\n\tclassName,\n\t...props\n}: useRender.ComponentProps<'button'> &\n\tReact.ComponentProps<'button'> & {\n\t\tisActive?: boolean;\n\t\ttooltip?: string | React.ComponentProps<typeof TooltipContent>;\n\t} & VariantProps<typeof sidebarMenuButtonVariants>) {\n\tconst { isMobile, state } = useSidebar();\n\tconst component = useRender({\n\t\tdefaultTagName: 'button',\n\t\tprops: mergeProps<'button'>(\n\t\t\t{\n\t\t\t\tclassName: cn(sidebarMenuButtonVariants({ variant, size }), className),\n\t\t\t},\n\t\t\tprops,\n\t\t),\n\t\trender: !tooltip ? render : <TooltipTrigger render={render} />,\n\t\tstate: {\n\t\t\tslot: 'sidebar-menu-button',\n\t\t\tsidebar: 'menu-button',\n\t\t\tsize,\n\t\t\tactive: isActive,\n\t\t},\n\t});\n\n\tif (!tooltip) {\n\t\treturn component;\n\t}\n\n\tconst tooltipProps = typeof tooltip === 'string' ? { children: tooltip } : tooltip;\n\n\treturn (\n\t\t<Tooltip>\n\t\t\t{component}\n\t\t\t<TooltipContent side='right' align='center' hidden={state !== 'collapsed' || isMobile} {...tooltipProps} />\n\t\t</Tooltip>\n\t);\n}\n\nfunction SidebarMenuAction({\n\tclassName,\n\trender,\n\tshowOnHover = false,\n\t...props\n}: useRender.ComponentProps<'button'> &\n\tReact.ComponentProps<'button'> & {\n\t\tshowOnHover?: boolean;\n\t}) {\n\treturn useRender({\n\t\tdefaultTagName: 'button',\n\t\tprops: mergeProps<'button'>(\n\t\t\t{\n\t\t\t\tclassName: cn(\n\t\t\t\t\t`absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0\n\t\t\t\t\ttext-sidebar-foreground ring-sidebar-ring outline-hidden transition-transform\n\t\t\t\t\tgroup-data-[collapsible=icon]:hidden peer-hover/menu-button:text-sidebar-accent-foreground\n\t\t\t\t\tpeer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5\n\t\t\t\t\tpeer-data-[size=sm]/menu-button:top-1 after:absolute after:-inset-2 hover:bg-sidebar-accent\n\t\t\t\t\thover:text-sidebar-accent-foreground focus-visible:ring-2 motion-reduce:transition-none md:after:hidden\n\t\t\t\t\t[&>svg]:size-4 [&>svg]:shrink-0`,\n\t\t\t\t\tshowOnHover &&\n\t\t\t\t\t\t`group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100\n\t\t\t\t\t\tpeer-data-active/menu-button:text-sidebar-accent-foreground aria-expanded:opacity-100 md:opacity-0`,\n\t\t\t\t\tclassName,\n\t\t\t\t),\n\t\t\t},\n\t\t\tprops,\n\t\t),\n\t\trender,\n\t\tstate: {\n\t\t\tslot: 'sidebar-menu-action',\n\t\t\tsidebar: 'menu-action',\n\t\t},\n\t});\n}\n\nfunction SidebarMenuBadge({ className, ...props }: React.ComponentProps<'div'>) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot='sidebar-menu-badge'\n\t\t\tdata-sidebar='menu-badge'\n\t\t\tclassName={cn(\n\t\t\t\t`pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1\n\t\t\t\ttext-xs font-medium text-sidebar-foreground tabular-nums select-none group-data-[collapsible=icon]:hidden\n\t\t\t\tpeer-hover/menu-button:text-sidebar-accent-foreground peer-data-[size=default]/menu-button:top-1.5\n\t\t\t\tpeer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1\n\t\t\t\tpeer-data-active/menu-button:text-sidebar-accent-foreground`,\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction SidebarMenuSkeleton({\n\tclassName,\n\tshowIcon = false,\n\t...props\n}: React.ComponentProps<'div'> & {\n\tshowIcon?: boolean;\n}) {\n\tconst id = React.useId();\n\tconst width = React.useMemo(() => {\n\t\tlet hash = 0;\n\t\tfor (const character of id) {\n\t\t\thash = (hash * 31 + character.charCodeAt(0)) >>> 0;\n\t\t}\n\t\treturn `${50 + (hash % 40)}%`;\n\t}, [id]);\n\n\treturn (\n\t\t<div\n\t\t\tdata-slot='sidebar-menu-skeleton'\n\t\t\tdata-sidebar='menu-skeleton'\n\t\t\tclassName={cn('flex h-8 items-center gap-2 rounded-md px-2', className)}\n\t\t\t{...props}\n\t\t>\n\t\t\t{showIcon && <Skeleton className='size-4 rounded-md' data-sidebar='menu-skeleton-icon' />}\n\t\t\t<Skeleton\n\t\t\t\tclassName='h-4 max-w-(--skeleton-width) flex-1'\n\t\t\t\tdata-sidebar='menu-skeleton-text'\n\t\t\t\tstyle={\n\t\t\t\t\t{\n\t\t\t\t\t\t'--skeleton-width': width,\n\t\t\t\t\t} as React.CSSProperties\n\t\t\t\t}\n\t\t\t/>\n\t\t</div>\n\t);\n}\n\nfunction SidebarMenuSub({ className, ...props }: React.ComponentProps<'ul'>) {\n\treturn (\n\t\t<ul\n\t\t\tdata-slot='sidebar-menu-sub'\n\t\t\tdata-sidebar='menu-sub'\n\t\t\tclassName={cn(\n\t\t\t\t`mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5\n\t\t\t\tgroup-data-[collapsible=icon]:hidden`,\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction SidebarMenuSubItem({ className, ...props }: React.ComponentProps<'li'>) {\n\treturn (\n\t\t<li\n\t\t\tdata-slot='sidebar-menu-sub-item'\n\t\t\tdata-sidebar='menu-sub-item'\n\t\t\tclassName={cn('group/menu-sub-item relative', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction SidebarMenuSubButton({\n\trender,\n\tsize = 'md',\n\tisActive = false,\n\tclassName,\n\t...props\n}: useRender.ComponentProps<'a'> &\n\tReact.ComponentProps<'a'> & {\n\t\tsize?: 'sm' | 'md';\n\t\tisActive?: boolean;\n\t}) {\n\treturn useRender({\n\t\tdefaultTagName: 'a',\n\t\tprops: mergeProps<'a'>(\n\t\t\t{\n\t\t\t\tclassName: cn(\n\t\t\t\t\t`flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2\n\t\t\t\t\ttext-sidebar-foreground ring-sidebar-ring outline-hidden group-data-[collapsible=icon]:hidden\n\t\t\t\t\thover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent\n\t\t\t\t\tactive:text-sidebar-accent-foreground aria-disabled:pointer-events-none aria-disabled:opacity-50\n\t\t\t\t\tdata-[size=md]:text-sm data-[size=sm]:text-xs data-active:bg-sidebar-accent\n\t\t\t\t\tdata-active:text-sidebar-accent-foreground pointer-coarse:min-h-11 [&>span:last-child]:truncate [&>svg]:size-4\n\t\t\t\t\t[&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground`,\n\t\t\t\t\tclassName,\n\t\t\t\t),\n\t\t\t},\n\t\t\tprops,\n\t\t),\n\t\trender,\n\t\tstate: {\n\t\t\tslot: 'sidebar-menu-sub-button',\n\t\t\tsidebar: 'menu-sub-button',\n\t\t\tsize,\n\t\t\tactive: isActive,\n\t\t},\n\t});\n}\n\nexport {\n\tSidebar,\n\tSidebarContent,\n\tSidebarFooter,\n\tSidebarGroup,\n\tSidebarGroupAction,\n\tSidebarGroupContent,\n\tSidebarGroupLabel,\n\tSidebarHeader,\n\tSidebarInput,\n\tSidebarInset,\n\tSidebarMenu,\n\tSidebarMenuAction,\n\tSidebarMenuBadge,\n\tSidebarMenuButton,\n\tSidebarMenuItem,\n\tSidebarMenuSkeleton,\n\tSidebarMenuSub,\n\tSidebarMenuSubButton,\n\tSidebarMenuSubItem,\n\tSidebarProvider,\n\tSidebarRail,\n\tSidebarSeparator,\n\tSidebarTrigger,\n\tuseSidebar,\n};\n"],"mappings":"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"}
|
|
@@ -7,6 +7,7 @@ import { Separator } from "./components/separator.js";
|
|
|
7
7
|
import { Input } from "./components/input.js";
|
|
8
8
|
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./components/tooltip.js";
|
|
9
9
|
import * as React$1 from "react";
|
|
10
|
+
import { useSyncExternalStore } from "react";
|
|
10
11
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
12
|
import { cva } from "class-variance-authority";
|
|
12
13
|
import { PanelLeftIcon } from "lucide-react";
|
|
@@ -15,18 +16,35 @@ import { useRender } from "@base-ui/react/use-render";
|
|
|
15
16
|
|
|
16
17
|
//#region src/lib/use-mobile.ts
|
|
17
18
|
const MOBILE_BREAKPOINT = 768;
|
|
19
|
+
var MobileBreakpointStore = class MobileBreakpointStore {
|
|
20
|
+
static instance;
|
|
21
|
+
listeners = /* @__PURE__ */ new Set();
|
|
22
|
+
mediaQuery;
|
|
23
|
+
isMobile = false;
|
|
24
|
+
constructor() {
|
|
25
|
+
if (typeof window === "undefined") return;
|
|
26
|
+
this.mediaQuery = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
|
27
|
+
this.isMobile = this.mediaQuery.matches;
|
|
28
|
+
this.mediaQuery.addEventListener("change", this.handleChange, { passive: true });
|
|
29
|
+
}
|
|
30
|
+
static getInstance() {
|
|
31
|
+
if (!MobileBreakpointStore.instance) MobileBreakpointStore.instance = new MobileBreakpointStore();
|
|
32
|
+
return MobileBreakpointStore.instance;
|
|
33
|
+
}
|
|
34
|
+
handleChange = (event) => {
|
|
35
|
+
this.isMobile = event.matches;
|
|
36
|
+
this.listeners.forEach((listener) => listener());
|
|
37
|
+
};
|
|
38
|
+
subscribe = (listener) => {
|
|
39
|
+
this.listeners.add(listener);
|
|
40
|
+
return () => this.listeners.delete(listener);
|
|
41
|
+
};
|
|
42
|
+
getSnapshot = () => this.isMobile;
|
|
43
|
+
getServerSnapshot = () => false;
|
|
44
|
+
};
|
|
18
45
|
function useIsMobile() {
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
|
22
|
-
const onChange = () => {
|
|
23
|
-
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
24
|
-
};
|
|
25
|
-
mql.addEventListener("change", onChange);
|
|
26
|
-
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
27
|
-
return () => mql.removeEventListener("change", onChange);
|
|
28
|
-
}, []);
|
|
29
|
-
return isMobile;
|
|
46
|
+
const store = MobileBreakpointStore.getInstance();
|
|
47
|
+
return useSyncExternalStore(store.subscribe, store.getSnapshot, store.getServerSnapshot);
|
|
30
48
|
}
|
|
31
49
|
|
|
32
50
|
//#endregion
|
|
@@ -460,4 +478,4 @@ function SidebarMenuSubButton({ render, size = "md", isActive = false, className
|
|
|
460
478
|
|
|
461
479
|
//#endregion
|
|
462
480
|
export { SidebarTrigger as C, SidebarSeparator as S, SidebarMenuSub as _, SidebarGroupAction as a, SidebarProvider as b, SidebarHeader as c, SidebarMenu as d, SidebarMenuAction as f, SidebarMenuSkeleton as g, SidebarMenuItem as h, SidebarGroup as i, SidebarInput as l, SidebarMenuButton as m, SidebarContent as n, SidebarGroupContent as o, SidebarMenuBadge as p, SidebarFooter as r, SidebarGroupLabel as s, Sidebar as t, SidebarInset as u, SidebarMenuSubButton as v, useSidebar as w, SidebarRail as x, SidebarMenuSubItem as y };
|
|
463
|
-
//# sourceMappingURL=sidebar-
|
|
481
|
+
//# sourceMappingURL=sidebar-DeoL2ttp.js.map
|