@hai3/uikit 0.1.0-alpha.1 → 0.1.0-alpha.11

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/index.mjs DELETED
@@ -1,1524 +0,0 @@
1
- import * as React16 from 'react';
2
- import React16__default from 'react';
3
- import * as AvatarPrimitive from '@radix-ui/react-avatar';
4
- import { clsx } from 'clsx';
5
- import { twMerge } from 'tailwind-merge';
6
- import { jsx, jsxs } from 'react/jsx-runtime';
7
- import { Slot } from '@radix-ui/react-slot';
8
- import { cva } from 'class-variance-authority';
9
- import { ButtonSize, ButtonVariant, IconButtonSize } from '@hai3/uikit-contracts';
10
- export { ButtonSize, ButtonVariant, IconButtonSize } from '@hai3/uikit-contracts';
11
- import * as SwitchPrimitives from '@radix-ui/react-switch';
12
- import { Loader2, ChevronDown, X, ChevronUp, Check, ChevronRight, Circle, User, Bot, Paperclip, Send, Plus, Search } from 'lucide-react';
13
- import { trim, toUpper } from 'lodash';
14
- import * as SliderPrimitive from '@radix-ui/react-slider';
15
- import * as ProgressPrimitive from '@radix-ui/react-progress';
16
- import * as TooltipPrimitive from '@radix-ui/react-tooltip';
17
- import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
18
- import * as SheetPrimitive from '@radix-ui/react-dialog';
19
- import * as SelectPrimitive from '@radix-ui/react-select';
20
- import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
21
-
22
- // src/base/avatar.tsx
23
- function cn(...inputs) {
24
- return twMerge(clsx(inputs));
25
- }
26
- var Avatar = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
27
- AvatarPrimitive.Root,
28
- {
29
- ref,
30
- className: cn(
31
- "relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",
32
- className
33
- ),
34
- ...props
35
- }
36
- ));
37
- Avatar.displayName = AvatarPrimitive.Root.displayName;
38
- var AvatarImage = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
39
- AvatarPrimitive.Image,
40
- {
41
- ref,
42
- className: cn("aspect-square h-full w-full", className),
43
- ...props
44
- }
45
- ));
46
- AvatarImage.displayName = AvatarPrimitive.Image.displayName;
47
- var AvatarFallback = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
48
- AvatarPrimitive.Fallback,
49
- {
50
- ref,
51
- className: cn(
52
- "flex h-full w-full items-center justify-center rounded-full bg-muted",
53
- className
54
- ),
55
- ...props
56
- }
57
- ));
58
- AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
59
- var buttonVariants = cva(
60
- "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
61
- {
62
- variants: {
63
- variant: {
64
- [ButtonVariant.Default]: "bg-primary text-primary-foreground shadow hover:bg-primary/90",
65
- [ButtonVariant.Destructive]: "bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",
66
- [ButtonVariant.Outline]: "border border-input bg-background shadow-sm hover:bg-accent data-[state=open]:bg-accent",
67
- [ButtonVariant.Secondary]: "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
68
- [ButtonVariant.Ghost]: "hover:bg-accent data-[state=open]:bg-accent",
69
- [ButtonVariant.Link]: "text-primary underline-offset-4 hover:underline"
70
- },
71
- size: {
72
- [ButtonSize.Default]: "h-9 px-4 py-2",
73
- [ButtonSize.Sm]: "h-8 rounded-md px-3 text-xs",
74
- [ButtonSize.Lg]: "h-10 rounded-md px-8",
75
- [ButtonSize.Icon]: "h-9 w-9"
76
- }
77
- },
78
- defaultVariants: {
79
- variant: ButtonVariant.Default,
80
- size: ButtonSize.Default
81
- }
82
- }
83
- );
84
- var Button = React16.forwardRef(
85
- ({ className, variant, size, asChild = false, ...props }, ref) => {
86
- const Comp = asChild ? Slot : "button";
87
- return /* @__PURE__ */ jsx(
88
- Comp,
89
- {
90
- className: cn(buttonVariants({ variant, size, className })),
91
- ref,
92
- ...props
93
- }
94
- );
95
- }
96
- );
97
- Button.displayName = "Button";
98
- var badgeVariants = cva(
99
- "inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",
100
- {
101
- variants: {
102
- variant: {
103
- default: "border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
104
- secondary: "border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",
105
- destructive: "border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
106
- outline: "text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"
107
- }
108
- },
109
- defaultVariants: {
110
- variant: "default"
111
- }
112
- }
113
- );
114
- function Badge({
115
- className,
116
- variant,
117
- asChild = false,
118
- ...props
119
- }) {
120
- const Comp = asChild ? Slot : "span";
121
- return /* @__PURE__ */ jsx(
122
- Comp,
123
- {
124
- className: cn(badgeVariants({ variant }), className),
125
- ...props
126
- }
127
- );
128
- }
129
- var Input = React16.forwardRef(
130
- ({ className, type, ...props }, ref) => {
131
- return /* @__PURE__ */ jsx(
132
- "input",
133
- {
134
- type,
135
- className: cn(
136
- "flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
137
- className
138
- ),
139
- ref,
140
- ...props
141
- }
142
- );
143
- }
144
- );
145
- Input.displayName = "Input";
146
- var Textarea = React16.forwardRef(
147
- ({ className, autoResize = false, minHeight = 50, maxHeight = 350, size = "default", onChange, ...props }, ref) => {
148
- const internalRef = React16.useRef(null);
149
- React16.useImperativeHandle(ref, () => internalRef.current);
150
- const sizeClasses = {
151
- sm: "min-h-11 h-11",
152
- // 44px / 2.75rem - exact height
153
- default: "min-h-[60px]",
154
- // 60px / 3.75rem
155
- lg: "min-h-20"
156
- // 80px / 5rem
157
- };
158
- const paddingClasses = {
159
- sm: "py-3",
160
- // 12px top + 12px bottom + 20px line-height = 44px
161
- default: "py-2",
162
- // 8px top + 8px bottom (default)
163
- lg: "py-2"
164
- // 8px top + 8px bottom (default)
165
- };
166
- const handleResize = React16.useCallback(() => {
167
- if (autoResize && size !== "sm" && internalRef.current) {
168
- const textarea = internalRef.current;
169
- textarea.style.height = "auto";
170
- const scrollHeight = textarea.scrollHeight;
171
- textarea.style.height = `${Math.min(Math.max(scrollHeight, minHeight), maxHeight)}px`;
172
- }
173
- }, [autoResize, size, minHeight, maxHeight]);
174
- React16.useEffect(() => {
175
- handleResize();
176
- }, [handleResize, props.value]);
177
- const handleChange = React16.useCallback(
178
- (e) => {
179
- handleResize();
180
- onChange?.(e);
181
- },
182
- [onChange, handleResize]
183
- );
184
- return /* @__PURE__ */ jsx(
185
- "textarea",
186
- {
187
- className: cn(
188
- "flex w-full rounded-md border border-input bg-transparent px-3 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
189
- sizeClasses[size],
190
- paddingClasses[size],
191
- className
192
- ),
193
- ref: internalRef,
194
- onChange: handleChange,
195
- ...props
196
- }
197
- );
198
- }
199
- );
200
- Textarea.displayName = "Textarea";
201
- var Switch = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
202
- SwitchPrimitives.Root,
203
- {
204
- className: cn(
205
- "peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",
206
- className
207
- ),
208
- ...props,
209
- ref,
210
- children: /* @__PURE__ */ jsx(
211
- SwitchPrimitives.Thumb,
212
- {
213
- className: cn(
214
- "pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform",
215
- "data-[state=checked]:ltr:translate-x-4 data-[state=checked]:rtl:-translate-x-4",
216
- "data-[state=unchecked]:translate-x-0"
217
- )
218
- }
219
- )
220
- }
221
- ));
222
- Switch.displayName = SwitchPrimitives.Root.displayName;
223
- function Skeleton({
224
- className,
225
- inheritColor = false,
226
- ...props
227
- }) {
228
- return /* @__PURE__ */ jsx(
229
- "div",
230
- {
231
- className: cn(
232
- "animate-pulse rounded-md",
233
- inheritColor ? "bg-current opacity-20" : "bg-muted",
234
- className
235
- ),
236
- ...props
237
- }
238
- );
239
- }
240
- var Spinner = React16.forwardRef(
241
- ({ className, icon: Icon2 = Loader2, size = "size-4", ...props }, ref) => {
242
- const textColorClasses = className?.match(/\btext-\S+/g)?.join(" ") || "";
243
- const wrapperClasses = trim(className?.replace(/\btext-\S+/g, "") || "");
244
- return /* @__PURE__ */ jsx(
245
- "div",
246
- {
247
- ref,
248
- className: cn("inline-flex items-center justify-center", wrapperClasses),
249
- ...props,
250
- children: /* @__PURE__ */ jsx(Icon2, { className: cn("animate-spin", size, textColorClasses) })
251
- }
252
- );
253
- }
254
- );
255
- Spinner.displayName = "Spinner";
256
- var Slider = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
257
- SliderPrimitive.Root,
258
- {
259
- ref,
260
- className: cn(
261
- "relative flex w-full touch-none select-none items-center",
262
- className
263
- ),
264
- ...props
265
- }
266
- ));
267
- Slider.displayName = SliderPrimitive.Root.displayName;
268
- var SliderTrack = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
269
- SliderPrimitive.Track,
270
- {
271
- ref,
272
- className: cn(
273
- "relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20",
274
- className
275
- ),
276
- ...props
277
- }
278
- ));
279
- SliderTrack.displayName = SliderPrimitive.Track.displayName;
280
- var SliderRange = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
281
- SliderPrimitive.Range,
282
- {
283
- ref,
284
- className: cn("absolute h-full bg-primary", className),
285
- ...props
286
- }
287
- ));
288
- SliderRange.displayName = SliderPrimitive.Range.displayName;
289
- var SliderThumb = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
290
- SliderPrimitive.Thumb,
291
- {
292
- ref,
293
- className: cn(
294
- "block h-4 w-4 rounded-full border border-primary/50 bg-background shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",
295
- className
296
- ),
297
- ...props
298
- }
299
- ));
300
- SliderThumb.displayName = SliderPrimitive.Thumb.displayName;
301
- var Progress = React16.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ jsx(
302
- ProgressPrimitive.Root,
303
- {
304
- ref,
305
- className: cn(
306
- "relative h-2 w-full overflow-hidden rounded-full bg-primary/20",
307
- className
308
- ),
309
- ...props,
310
- children: /* @__PURE__ */ jsx(
311
- ProgressPrimitive.Indicator,
312
- {
313
- className: "h-full w-full flex-1 bg-primary transition-all",
314
- style: { transform: `translateX(-${100 - (value || 0)}%)` }
315
- }
316
- )
317
- }
318
- ));
319
- Progress.displayName = ProgressPrimitive.Root.displayName;
320
- var TooltipProvider = ({
321
- delayDuration = 0,
322
- ...props
323
- }) => /* @__PURE__ */ jsx(
324
- TooltipPrimitive.Provider,
325
- {
326
- delayDuration,
327
- ...props
328
- }
329
- );
330
- TooltipProvider.displayName = TooltipPrimitive.Provider.displayName;
331
- var Tooltip = ({
332
- ...props
333
- }) => /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsx(TooltipPrimitive.Root, { ...props }) });
334
- Tooltip.displayName = TooltipPrimitive.Root.displayName;
335
- var TooltipTrigger = React16.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx(TooltipPrimitive.Trigger, { ref, ...props }));
336
- TooltipTrigger.displayName = TooltipPrimitive.Trigger.displayName;
337
- var TooltipContent = React16.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsx(
338
- TooltipPrimitive.Content,
339
- {
340
- ref,
341
- sideOffset,
342
- className: cn(
343
- "z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
344
- className
345
- ),
346
- ...props
347
- }
348
- ) }));
349
- TooltipContent.displayName = TooltipPrimitive.Content.displayName;
350
- var Card = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
351
- "div",
352
- {
353
- ref,
354
- className: cn(
355
- "rounded-xl border bg-card text-card-foreground shadow",
356
- className
357
- ),
358
- ...props
359
- }
360
- ));
361
- Card.displayName = "Card";
362
- var CardHeader = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
363
- "div",
364
- {
365
- ref,
366
- className: cn("flex flex-col space-y-1.5 p-6", className),
367
- ...props
368
- }
369
- ));
370
- CardHeader.displayName = "CardHeader";
371
- var CardTitle = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
372
- "div",
373
- {
374
- ref,
375
- className: cn("font-semibold leading-none tracking-tight", className),
376
- ...props
377
- }
378
- ));
379
- CardTitle.displayName = "CardTitle";
380
- var CardDescription = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
381
- "div",
382
- {
383
- ref,
384
- className: cn("text-sm text-muted-foreground", className),
385
- ...props
386
- }
387
- ));
388
- CardDescription.displayName = "CardDescription";
389
- var CardContent = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("p-6 pt-0", className), ...props }));
390
- CardContent.displayName = "CardContent";
391
- var CardFooter = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
392
- "div",
393
- {
394
- ref,
395
- className: cn("flex items-center p-6 pt-0", className),
396
- ...props
397
- }
398
- ));
399
- CardFooter.displayName = "CardFooter";
400
- var Header = React16__default.forwardRef(
401
- ({ children, className }, ref) => {
402
- return /* @__PURE__ */ jsx(
403
- "header",
404
- {
405
- ref,
406
- className: cn(
407
- "flex items-center justify-end px-6 py-4 bg-background border-b border-border h-16 w-full",
408
- className
409
- ),
410
- children: /* @__PURE__ */ jsx("div", { className: "flex items-center gap-4", children })
411
- }
412
- );
413
- }
414
- );
415
- Header.displayName = "Header";
416
- var NavigationMenu = React16.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
417
- NavigationMenuPrimitive.Root,
418
- {
419
- ref,
420
- className: cn(
421
- "relative z-10 flex max-w-max flex-1 items-center justify-center",
422
- className
423
- ),
424
- ...props,
425
- children: [
426
- children,
427
- /* @__PURE__ */ jsx(NavigationMenuViewport, {})
428
- ]
429
- }
430
- ));
431
- NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
432
- var NavigationMenuList = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
433
- NavigationMenuPrimitive.List,
434
- {
435
- ref,
436
- className: cn(
437
- "group flex flex-1 list-none items-center justify-center space-x-1",
438
- className
439
- ),
440
- ...props
441
- }
442
- ));
443
- NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
444
- var NavigationMenuItem = NavigationMenuPrimitive.Item;
445
- var navigationMenuTriggerStyle = cva(
446
- "group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent"
447
- );
448
- var NavigationMenuTrigger = React16.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
449
- NavigationMenuPrimitive.Trigger,
450
- {
451
- ref,
452
- className: cn(navigationMenuTriggerStyle(), "group", className),
453
- ...props,
454
- children: [
455
- children,
456
- " ",
457
- /* @__PURE__ */ jsx(
458
- ChevronDown,
459
- {
460
- className: "relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180",
461
- "aria-hidden": "true"
462
- }
463
- )
464
- ]
465
- }
466
- ));
467
- NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
468
- var NavigationMenuContent = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
469
- NavigationMenuPrimitive.Content,
470
- {
471
- ref,
472
- className: cn(
473
- "left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ",
474
- className
475
- ),
476
- ...props
477
- }
478
- ));
479
- NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
480
- var NavigationMenuLink = NavigationMenuPrimitive.Link;
481
- var NavigationMenuViewport = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { className: cn("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ jsx(
482
- NavigationMenuPrimitive.Viewport,
483
- {
484
- className: cn(
485
- "origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",
486
- className
487
- ),
488
- ref,
489
- ...props
490
- }
491
- ) }));
492
- NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
493
- var NavigationMenuIndicator = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
494
- NavigationMenuPrimitive.Indicator,
495
- {
496
- ref,
497
- className: cn(
498
- "top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",
499
- className
500
- ),
501
- ...props,
502
- children: /* @__PURE__ */ jsx("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
503
- }
504
- ));
505
- NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
506
- var Sheet = SheetPrimitive.Root;
507
- var SheetTrigger = SheetPrimitive.Trigger;
508
- var SheetClose = SheetPrimitive.Close;
509
- var SheetPortal = SheetPrimitive.Portal;
510
- var SheetOverlay = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
511
- SheetPrimitive.Overlay,
512
- {
513
- className: cn(
514
- "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
515
- className
516
- ),
517
- ...props,
518
- ref
519
- }
520
- ));
521
- SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;
522
- var sheetVariants = cva(
523
- "fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",
524
- {
525
- variants: {
526
- side: {
527
- top: "inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
528
- bottom: "inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
529
- left: "inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",
530
- right: "inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"
531
- }
532
- },
533
- defaultVariants: {
534
- side: "right"
535
- }
536
- }
537
- );
538
- var SheetContent = React16.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ jsxs(SheetPortal, { children: [
539
- /* @__PURE__ */ jsx(SheetOverlay, {}),
540
- /* @__PURE__ */ jsxs(
541
- SheetPrimitive.Content,
542
- {
543
- ref,
544
- className: cn(sheetVariants({ side }), className),
545
- ...props,
546
- children: [
547
- /* @__PURE__ */ jsxs(SheetPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
548
- /* @__PURE__ */ jsx(X, { className: "h-4 w-4" }),
549
- /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
550
- ] }),
551
- children
552
- ]
553
- }
554
- )
555
- ] }));
556
- SheetContent.displayName = SheetPrimitive.Content.displayName;
557
- var SheetHeader = ({
558
- className,
559
- ...props
560
- }) => /* @__PURE__ */ jsx(
561
- "div",
562
- {
563
- className: cn(
564
- "flex flex-col space-y-2 text-center sm:text-left",
565
- className
566
- ),
567
- ...props
568
- }
569
- );
570
- SheetHeader.displayName = "SheetHeader";
571
- var SheetFooter = ({
572
- className,
573
- ...props
574
- }) => /* @__PURE__ */ jsx(
575
- "div",
576
- {
577
- className: cn(
578
- "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
579
- className
580
- ),
581
- ...props
582
- }
583
- );
584
- SheetFooter.displayName = "SheetFooter";
585
- var SheetTitle = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
586
- SheetPrimitive.Title,
587
- {
588
- ref,
589
- className: cn("text-lg font-semibold text-foreground", className),
590
- ...props
591
- }
592
- ));
593
- SheetTitle.displayName = SheetPrimitive.Title.displayName;
594
- var SheetDescription = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
595
- SheetPrimitive.Description,
596
- {
597
- ref,
598
- className: cn("text-sm text-muted-foreground", className),
599
- ...props
600
- }
601
- ));
602
- SheetDescription.displayName = SheetPrimitive.Description.displayName;
603
- var Dialog = SheetPrimitive.Root;
604
- var DialogTrigger = SheetPrimitive.Trigger;
605
- var DialogPortal = SheetPrimitive.Portal;
606
- var DialogClose = SheetPrimitive.Close;
607
- var DialogOverlay = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
608
- SheetPrimitive.Overlay,
609
- {
610
- ref,
611
- className: cn(
612
- "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
613
- className
614
- ),
615
- ...props
616
- }
617
- ));
618
- DialogOverlay.displayName = SheetPrimitive.Overlay.displayName;
619
- var DialogContent = React16.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(DialogPortal, { children: [
620
- /* @__PURE__ */ jsx(DialogOverlay, {}),
621
- /* @__PURE__ */ jsxs(
622
- SheetPrimitive.Content,
623
- {
624
- ref,
625
- className: cn(
626
- "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
627
- className
628
- ),
629
- ...props,
630
- children: [
631
- children,
632
- /* @__PURE__ */ jsxs(SheetPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
633
- /* @__PURE__ */ jsx(X, { className: "h-4 w-4" }),
634
- /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
635
- ] })
636
- ]
637
- }
638
- )
639
- ] }));
640
- DialogContent.displayName = SheetPrimitive.Content.displayName;
641
- var DialogHeader = ({
642
- className,
643
- ...props
644
- }) => /* @__PURE__ */ jsx(
645
- "div",
646
- {
647
- className: cn(
648
- "flex flex-col space-y-1.5 text-center sm:text-left",
649
- className
650
- ),
651
- ...props
652
- }
653
- );
654
- DialogHeader.displayName = "DialogHeader";
655
- var DialogFooter = ({
656
- className,
657
- ...props
658
- }) => /* @__PURE__ */ jsx(
659
- "div",
660
- {
661
- className: cn(
662
- "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
663
- className
664
- ),
665
- ...props
666
- }
667
- );
668
- DialogFooter.displayName = "DialogFooter";
669
- var DialogTitle = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
670
- SheetPrimitive.Title,
671
- {
672
- ref,
673
- className: cn(
674
- "text-lg font-semibold leading-none tracking-tight",
675
- className
676
- ),
677
- ...props
678
- }
679
- ));
680
- DialogTitle.displayName = SheetPrimitive.Title.displayName;
681
- var DialogDescription = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
682
- SheetPrimitive.Description,
683
- {
684
- ref,
685
- className: cn("text-sm text-muted-foreground", className),
686
- ...props
687
- }
688
- ));
689
- DialogDescription.displayName = SheetPrimitive.Description.displayName;
690
- var Select = SelectPrimitive.Root;
691
- var SelectGroup = SelectPrimitive.Group;
692
- var SelectValue = SelectPrimitive.Value;
693
- var SelectTrigger = React16.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
694
- SelectPrimitive.Trigger,
695
- {
696
- ref,
697
- className: cn(
698
- // HAI3 customization: bg-background and hover states for consistency with Button Outline
699
- "flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-background px-3 py-2 text-sm shadow-sm ring-offset-background hover:bg-accent hover:text-bg-accent-foreground data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
700
- className
701
- ),
702
- ...props,
703
- children: [
704
- children,
705
- /* @__PURE__ */ jsx(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4 opacity-50" }) })
706
- ]
707
- }
708
- ));
709
- SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
710
- var SelectScrollUpButton = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
711
- SelectPrimitive.ScrollUpButton,
712
- {
713
- ref,
714
- className: cn(
715
- "flex cursor-default items-center justify-center py-1",
716
- className
717
- ),
718
- ...props,
719
- children: /* @__PURE__ */ jsx(ChevronUp, { className: "h-4 w-4" })
720
- }
721
- ));
722
- SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
723
- var SelectScrollDownButton = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
724
- SelectPrimitive.ScrollDownButton,
725
- {
726
- ref,
727
- className: cn(
728
- "flex cursor-default items-center justify-center py-1",
729
- className
730
- ),
731
- ...props,
732
- children: /* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4" })
733
- }
734
- ));
735
- SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
736
- var SelectContent = React16.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs(
737
- SelectPrimitive.Content,
738
- {
739
- ref,
740
- className: cn(
741
- "relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-select-content-transform-origin]",
742
- position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
743
- className
744
- ),
745
- position,
746
- ...props,
747
- children: [
748
- /* @__PURE__ */ jsx(SelectScrollUpButton, {}),
749
- /* @__PURE__ */ jsx(
750
- SelectPrimitive.Viewport,
751
- {
752
- className: cn(
753
- "p-1",
754
- position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
755
- ),
756
- children
757
- }
758
- ),
759
- /* @__PURE__ */ jsx(SelectScrollDownButton, {})
760
- ]
761
- }
762
- ) }));
763
- SelectContent.displayName = SelectPrimitive.Content.displayName;
764
- var SelectLabel = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
765
- SelectPrimitive.Label,
766
- {
767
- ref,
768
- className: cn("px-2 py-1.5 text-sm font-semibold", className),
769
- ...props
770
- }
771
- ));
772
- SelectLabel.displayName = SelectPrimitive.Label.displayName;
773
- var SelectItem = React16.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
774
- SelectPrimitive.Item,
775
- {
776
- ref,
777
- className: cn(
778
- "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-bg-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
779
- className
780
- ),
781
- ...props,
782
- children: [
783
- /* @__PURE__ */ jsx("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Check, { className: "h-4 w-4" }) }) }),
784
- /* @__PURE__ */ jsx(SelectPrimitive.ItemText, { children })
785
- ]
786
- }
787
- ));
788
- SelectItem.displayName = SelectPrimitive.Item.displayName;
789
- var SelectSeparator = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
790
- SelectPrimitive.Separator,
791
- {
792
- ref,
793
- className: cn("-mx-1 my-1 h-px bg-muted", className),
794
- ...props
795
- }
796
- ));
797
- SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
798
- var DropdownMenu = ({ dir, ...props }) => /* @__PURE__ */ jsx(
799
- DropdownMenuPrimitive.Root,
800
- {
801
- ...props,
802
- dir
803
- }
804
- );
805
- DropdownMenu.displayName = "DropdownMenu";
806
- var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
807
- var DropdownMenuGroup = DropdownMenuPrimitive.Group;
808
- var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
809
- var DropdownMenuSub = DropdownMenuPrimitive.Sub;
810
- var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
811
- var DropdownMenuSubTrigger = React16.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs(
812
- DropdownMenuPrimitive.SubTrigger,
813
- {
814
- ref,
815
- className: cn(
816
- "flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
817
- inset && "pl-8",
818
- className
819
- ),
820
- ...props,
821
- children: [
822
- children,
823
- /* @__PURE__ */ jsx(ChevronRight, { className: "ms-auto rtl:rotate-180" })
824
- ]
825
- }
826
- ));
827
- DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
828
- var DropdownMenuSubContent = React16.forwardRef(({ className, container, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { container: container ?? void 0, children: /* @__PURE__ */ jsx(
829
- DropdownMenuPrimitive.SubContent,
830
- {
831
- ref,
832
- className: cn(
833
- "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",
834
- className
835
- ),
836
- ...props
837
- }
838
- ) }));
839
- DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
840
- var DropdownMenuContent = React16.forwardRef(({ className, sideOffset = 4, container, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { container: container ?? void 0, children: /* @__PURE__ */ jsx(
841
- DropdownMenuPrimitive.Content,
842
- {
843
- ref,
844
- sideOffset,
845
- className: cn(
846
- "z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
847
- "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",
848
- className
849
- ),
850
- ...props
851
- }
852
- ) }));
853
- DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
854
- var DropdownMenuItem = React16.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
855
- DropdownMenuPrimitive.Item,
856
- {
857
- ref,
858
- className: cn(
859
- "relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",
860
- inset && "pl-8",
861
- className
862
- ),
863
- ...props
864
- }
865
- ));
866
- DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
867
- var DropdownMenuCheckboxItem = React16.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs(
868
- DropdownMenuPrimitive.CheckboxItem,
869
- {
870
- ref,
871
- className: cn(
872
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
873
- className
874
- ),
875
- checked,
876
- ...props,
877
- children: [
878
- /* @__PURE__ */ jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Check, { className: "h-4 w-4" }) }) }),
879
- children
880
- ]
881
- }
882
- ));
883
- DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
884
- var DropdownMenuRadioItem = React16.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
885
- DropdownMenuPrimitive.RadioItem,
886
- {
887
- ref,
888
- className: cn(
889
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
890
- className
891
- ),
892
- ...props,
893
- children: [
894
- /* @__PURE__ */ jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Circle, { className: "h-2 w-2 fill-current" }) }) }),
895
- children
896
- ]
897
- }
898
- ));
899
- DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
900
- var DropdownMenuLabel = React16.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
901
- DropdownMenuPrimitive.Label,
902
- {
903
- ref,
904
- className: cn(
905
- "px-2 py-1.5 text-sm font-semibold",
906
- inset && "pl-8",
907
- className
908
- ),
909
- ...props
910
- }
911
- ));
912
- DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
913
- var DropdownMenuSeparator = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
914
- DropdownMenuPrimitive.Separator,
915
- {
916
- ref,
917
- className: cn("-mx-1 my-1 h-px bg-muted", className),
918
- ...props
919
- }
920
- ));
921
- DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
922
- var DropdownMenuShortcut = ({
923
- className,
924
- ...props
925
- }) => {
926
- return /* @__PURE__ */ jsx(
927
- "span",
928
- {
929
- className: cn("ml-auto text-xs tracking-widest opacity-60", className),
930
- ...props
931
- }
932
- );
933
- };
934
- DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
935
- var IconButton = React16__default.forwardRef(
936
- ({ variant = ButtonVariant.Ghost, size = IconButtonSize.Default, className, ...props }, ref) => {
937
- const sizeStyles = {
938
- [IconButtonSize.Small]: "h-8 w-8",
939
- [IconButtonSize.Default]: "h-9 w-9",
940
- [IconButtonSize.Large]: "h-11 w-11"
941
- };
942
- return /* @__PURE__ */ jsx(
943
- Button,
944
- {
945
- ref,
946
- variant,
947
- size: ButtonSize.Icon,
948
- className: cn(sizeStyles[size], className),
949
- ...props
950
- }
951
- );
952
- }
953
- );
954
- IconButton.displayName = "IconButton";
955
- var DropdownButton = React16__default.forwardRef(({ children, variant = ButtonVariant.Outline, className, ...props }, ref) => {
956
- return /* @__PURE__ */ jsxs(
957
- Button,
958
- {
959
- ref,
960
- variant,
961
- className: cn("min-w-40 justify-between rtl:flex-row-reverse", className),
962
- ...props,
963
- children: [
964
- /* @__PURE__ */ jsx("span", { children }),
965
- /* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4" })
966
- ]
967
- }
968
- );
969
- });
970
- DropdownButton.displayName = "DropdownButton";
971
- var Sidebar = React16.forwardRef(({ collapsed = false, className, children, ...props }, ref) => {
972
- return /* @__PURE__ */ jsx(
973
- "aside",
974
- {
975
- ref,
976
- "data-state": collapsed ? "collapsed" : "expanded",
977
- "data-collapsible": collapsed ? "icon" : "",
978
- className: cn(
979
- "group flex flex-col border-r border-mainMenu-border transition-[width] duration-200 ease-linear",
980
- "bg-mainMenu text-mainMenu-foreground",
981
- collapsed ? "w-14" : "w-64",
982
- className
983
- ),
984
- ...props,
985
- children
986
- }
987
- );
988
- });
989
- Sidebar.displayName = "Sidebar";
990
- var SidebarContent = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
991
- "div",
992
- {
993
- ref,
994
- "data-sidebar": "content",
995
- className: cn(
996
- // HAI3 customization: gap and padding use rem-based spacing for theme scaling
997
- "flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden p-2",
998
- className
999
- ),
1000
- ...props
1001
- }
1002
- ));
1003
- SidebarContent.displayName = "SidebarContent";
1004
- var SidebarMenu = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1005
- "ul",
1006
- {
1007
- ref,
1008
- "data-sidebar": "menu",
1009
- className: cn("flex w-full min-w-0 flex-col gap-1", className),
1010
- ...props
1011
- }
1012
- ));
1013
- SidebarMenu.displayName = "SidebarMenu";
1014
- var SidebarMenuItem = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1015
- "li",
1016
- {
1017
- ref,
1018
- "data-sidebar": "menu-item",
1019
- className: cn("group/menu-item relative", className),
1020
- ...props
1021
- }
1022
- ));
1023
- SidebarMenuItem.displayName = "SidebarMenuItem";
1024
- var sidebarMenuButtonVariants = cva(
1025
- // HAI3 customization: All sizing uses rem-based Tailwind classes for theme responsiveness
1026
- "peer/menu-button flex w-full items-center gap-2 rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>span:last-child]:overflow-hidden [&>svg]:size-5 [&>svg]:shrink-0 text-mainMenu-foreground hover:bg-mainMenu-hover data-[active=true]:bg-mainMenu-selected data-[active=true]:text-white data-[active=true]:font-medium",
1027
- {
1028
- variants: {
1029
- variant: {
1030
- default: "",
1031
- outline: "bg-background shadow-[0_0_0_1px_hsl(var(--border))] hover:bg-mainMenu-hover"
1032
- },
1033
- size: {
1034
- // HAI3 customization: All heights use rem-based Tailwind classes (h-10=2.5rem, h-7=1.75rem, h-12=3rem)
1035
- default: "h-10 text-sm",
1036
- sm: "h-7 text-xs",
1037
- lg: "h-12 text-sm group-data-[collapsible=icon]:!p-0"
1038
- }
1039
- },
1040
- defaultVariants: {
1041
- variant: "default",
1042
- size: "default"
1043
- }
1044
- }
1045
- );
1046
- var SidebarMenuButton = React16.forwardRef(
1047
- ({
1048
- asChild = false,
1049
- isActive = false,
1050
- variant = "default",
1051
- size = "default",
1052
- tooltip,
1053
- className,
1054
- ...props
1055
- }, ref) => {
1056
- const Comp = asChild ? Slot : "button";
1057
- return /* @__PURE__ */ jsx(
1058
- Comp,
1059
- {
1060
- ref,
1061
- "data-sidebar": "menu-button",
1062
- "data-size": size,
1063
- "data-active": isActive,
1064
- title: tooltip,
1065
- className: cn(sidebarMenuButtonVariants({ variant, size }), className),
1066
- ...props
1067
- }
1068
- );
1069
- }
1070
- );
1071
- SidebarMenuButton.displayName = "SidebarMenuButton";
1072
- var SidebarMenuIcon = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1073
- "span",
1074
- {
1075
- ref,
1076
- className: cn("size-5 min-w-[1.5rem] flex-shrink-0 [&>svg]:w-full [&>svg]:h-full", className),
1077
- ...props
1078
- }
1079
- ));
1080
- SidebarMenuIcon.displayName = "SidebarMenuIcon";
1081
- var SidebarMenuLabel = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1082
- "span",
1083
- {
1084
- ref,
1085
- className: cn(className),
1086
- ...props
1087
- }
1088
- ));
1089
- SidebarMenuLabel.displayName = "SidebarMenuLabel";
1090
- var SidebarHeader = React16.forwardRef(
1091
- ({ logo, logoText, collapsed = false, onClick, className, ...props }, ref) => {
1092
- return /* @__PURE__ */ jsxs(
1093
- "div",
1094
- {
1095
- ref,
1096
- className: cn(
1097
- "flex flex-col h-16",
1098
- className
1099
- ),
1100
- ...props,
1101
- children: [
1102
- /* @__PURE__ */ jsx("div", { className: "flex items-center flex-1 px-2", children: /* @__PURE__ */ jsxs(SidebarMenuButton, { onClick, tooltip: collapsed ? "Expand menu" : "Collapse menu", children: [
1103
- logo && /* @__PURE__ */ jsx(SidebarMenuIcon, { children: logo }),
1104
- logoText && /* @__PURE__ */ jsx(SidebarMenuLabel, { className: "[&>svg]:h-5 [&>svg]:w-auto", children: logoText })
1105
- ] }) }),
1106
- /* @__PURE__ */ jsx("div", { className: "border-b border-mainMenu-border mx-4" })
1107
- ]
1108
- }
1109
- );
1110
- }
1111
- );
1112
- SidebarHeader.displayName = "SidebarHeader";
1113
- var UserInfo = React16__default.forwardRef(
1114
- ({ displayName, email, avatarUrl, className, loading }, ref) => {
1115
- const getInitials = () => {
1116
- if (!displayName) return toUpper(email?.[0] || "") || "?";
1117
- const parts = trim(displayName).split(/\s+/);
1118
- if (parts.length >= 2) {
1119
- return toUpper(`${parts[0][0]}${parts[parts.length - 1][0]}`);
1120
- }
1121
- return toUpper(displayName.slice(0, 2));
1122
- };
1123
- const initials = getInitials();
1124
- const displayText = displayName || email || "User";
1125
- if (loading) {
1126
- return /* @__PURE__ */ jsxs("div", { ref, className: cn("flex items-center gap-2 text-sm", className), children: [
1127
- /* @__PURE__ */ jsx(Skeleton, { className: "h-8 w-8 rounded-full" }),
1128
- /* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-24" })
1129
- ] });
1130
- }
1131
- return /* @__PURE__ */ jsxs(
1132
- "div",
1133
- {
1134
- ref,
1135
- className: cn(
1136
- "flex items-center gap-2 text-sm text-muted-foreground",
1137
- className
1138
- ),
1139
- children: [
1140
- /* @__PURE__ */ jsxs(Avatar, { className: "h-8 w-8", children: [
1141
- avatarUrl && /* @__PURE__ */ jsx(AvatarImage, { src: avatarUrl, alt: displayText }),
1142
- /* @__PURE__ */ jsx(AvatarFallback, { children: initials })
1143
- ] }),
1144
- /* @__PURE__ */ jsx("span", { children: displayText })
1145
- ]
1146
- }
1147
- );
1148
- }
1149
- );
1150
- UserInfo.displayName = "UserInfo";
1151
- var MessageType = /* @__PURE__ */ ((MessageType2) => {
1152
- MessageType2["User"] = "user";
1153
- MessageType2["Assistant"] = "assistant";
1154
- return MessageType2;
1155
- })(MessageType || {});
1156
- var MessageBubble = ({
1157
- type,
1158
- content,
1159
- className = "",
1160
- onCopy,
1161
- onEdit,
1162
- onDelete
1163
- }) => {
1164
- const isUser = type === "user" /* User */;
1165
- return /* @__PURE__ */ jsxs("div", { className: `flex gap-4 group ${className}`, children: [
1166
- /* @__PURE__ */ jsx(Avatar, { className: "h-8 w-8 flex-shrink-0", children: /* @__PURE__ */ jsx(
1167
- AvatarFallback,
1168
- {
1169
- className: isUser ? "bg-blue-500 text-white" : "bg-green-500 text-white",
1170
- children: isUser ? /* @__PURE__ */ jsx(User, { size: 16 }) : /* @__PURE__ */ jsx(Bot, { size: 16 })
1171
- }
1172
- ) }),
1173
- /* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0", children: [
1174
- /* @__PURE__ */ jsx("div", { className: "prose prose-sm max-w-none", children: /* @__PURE__ */ jsx("div", { className: "leading-relaxed whitespace-pre-wrap", children: content }) }),
1175
- (onCopy || onEdit || onDelete) && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1 mt-2 opacity-0 group-hover:opacity-100 transition-opacity", children: [
1176
- onCopy && /* @__PURE__ */ jsx(
1177
- "button",
1178
- {
1179
- onClick: onCopy,
1180
- className: "p-1.5 hover:bg-muted rounded-lg transition-colors text-muted-foreground hover:text-foreground",
1181
- title: "Copy message",
1182
- children: /* @__PURE__ */ jsxs(
1183
- "svg",
1184
- {
1185
- width: "14",
1186
- height: "14",
1187
- viewBox: "0 0 24 24",
1188
- fill: "none",
1189
- stroke: "currentColor",
1190
- strokeWidth: "2",
1191
- strokeLinecap: "round",
1192
- strokeLinejoin: "round",
1193
- children: [
1194
- /* @__PURE__ */ jsx("rect", { x: "9", y: "9", width: "13", height: "13", rx: "2", ry: "2" }),
1195
- /* @__PURE__ */ jsx("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" })
1196
- ]
1197
- }
1198
- )
1199
- }
1200
- ),
1201
- onEdit && /* @__PURE__ */ jsx(
1202
- "button",
1203
- {
1204
- onClick: onEdit,
1205
- className: "p-1.5 hover:bg-muted rounded-lg transition-colors text-muted-foreground hover:text-foreground",
1206
- title: "Edit message",
1207
- children: /* @__PURE__ */ jsxs(
1208
- "svg",
1209
- {
1210
- width: "14",
1211
- height: "14",
1212
- viewBox: "0 0 24 24",
1213
- fill: "none",
1214
- stroke: "currentColor",
1215
- strokeWidth: "2",
1216
- strokeLinecap: "round",
1217
- strokeLinejoin: "round",
1218
- children: [
1219
- /* @__PURE__ */ jsx("path", { d: "M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" }),
1220
- /* @__PURE__ */ jsx("path", { d: "M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z" })
1221
- ]
1222
- }
1223
- )
1224
- }
1225
- ),
1226
- onDelete && /* @__PURE__ */ jsx(
1227
- "button",
1228
- {
1229
- onClick: onDelete,
1230
- className: "p-1.5 hover:bg-destructive/10 rounded-lg transition-colors text-muted-foreground hover:text-destructive",
1231
- title: "Delete message",
1232
- children: /* @__PURE__ */ jsxs(
1233
- "svg",
1234
- {
1235
- width: "14",
1236
- height: "14",
1237
- viewBox: "0 0 24 24",
1238
- fill: "none",
1239
- stroke: "currentColor",
1240
- strokeWidth: "2",
1241
- strokeLinecap: "round",
1242
- strokeLinejoin: "round",
1243
- children: [
1244
- /* @__PURE__ */ jsx("polyline", { points: "3 6 5 6 21 6" }),
1245
- /* @__PURE__ */ jsx("path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" })
1246
- ]
1247
- }
1248
- )
1249
- }
1250
- )
1251
- ] })
1252
- ] })
1253
- ] });
1254
- };
1255
- var ChatInput = ({
1256
- value,
1257
- onChange,
1258
- onSend,
1259
- onAttachFile,
1260
- placeholder = "Type a message...",
1261
- disabled = false,
1262
- maxRows = 14,
1263
- className = ""
1264
- }) => {
1265
- const handleKeyDown = (e) => {
1266
- if (e.key === "Enter" && !e.shiftKey) {
1267
- e.preventDefault();
1268
- if (!disabled && trim(value)) {
1269
- onSend();
1270
- }
1271
- }
1272
- };
1273
- const rows = Math.min(
1274
- Math.max(value.split("\n").length, 1),
1275
- maxRows
1276
- );
1277
- return /* @__PURE__ */ jsxs("div", { className: `flex items-end gap-2 ${className}`, children: [
1278
- onAttachFile && /* @__PURE__ */ jsx(
1279
- Button,
1280
- {
1281
- variant: ButtonVariant.Ghost,
1282
- size: ButtonSize.Icon,
1283
- onClick: onAttachFile,
1284
- disabled,
1285
- className: "flex-shrink-0",
1286
- "aria-label": "Attach file",
1287
- children: /* @__PURE__ */ jsx(Paperclip, { size: 20 })
1288
- }
1289
- ),
1290
- /* @__PURE__ */ jsx(
1291
- "textarea",
1292
- {
1293
- value,
1294
- onChange: (e) => onChange(e.target.value),
1295
- onKeyDown: handleKeyDown,
1296
- placeholder,
1297
- disabled,
1298
- rows,
1299
- className: "flex-1 resize-none rounded-lg border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50"
1300
- }
1301
- ),
1302
- /* @__PURE__ */ jsx(
1303
- Button,
1304
- {
1305
- onClick: onSend,
1306
- disabled: disabled || !trim(value),
1307
- className: "flex-shrink-0",
1308
- "aria-label": "Send message",
1309
- children: /* @__PURE__ */ jsx(Send, { size: 20 })
1310
- }
1311
- )
1312
- ] });
1313
- };
1314
- var ThreadList = ({
1315
- threads,
1316
- selectedThreadId,
1317
- onThreadSelect,
1318
- onNewThread,
1319
- onDeleteThread,
1320
- searchQuery = "",
1321
- onSearchChange,
1322
- loading = false,
1323
- className = ""
1324
- }) => {
1325
- if (loading) {
1326
- return /* @__PURE__ */ jsxs("div", { className: `flex flex-col h-full ${className}`, children: [
1327
- /* @__PURE__ */ jsxs("div", { className: "p-4 border-b", children: [
1328
- /* @__PURE__ */ jsx(Skeleton, { className: "h-8 w-full mb-3" }),
1329
- /* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-full" })
1330
- ] }),
1331
- /* @__PURE__ */ jsx("div", { className: "flex-1 overflow-y-auto p-2", children: [1, 2, 3, 4, 5].map((i) => /* @__PURE__ */ jsx(Skeleton, { className: "h-16 w-full mb-2" }, i)) })
1332
- ] });
1333
- }
1334
- return /* @__PURE__ */ jsxs("div", { className: `flex flex-col h-full ${className}`, children: [
1335
- /* @__PURE__ */ jsxs("div", { className: "p-4 border-b", children: [
1336
- /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between mb-3", children: [
1337
- /* @__PURE__ */ jsx("h2", { className: "text-lg font-semibold", children: "Recent Chats" }),
1338
- /* @__PURE__ */ jsx(
1339
- Button,
1340
- {
1341
- variant: ButtonVariant.Ghost,
1342
- size: ButtonSize.Icon,
1343
- onClick: onNewThread,
1344
- "aria-label": "New chat",
1345
- children: /* @__PURE__ */ jsx(Plus, { size: 16 })
1346
- }
1347
- )
1348
- ] }),
1349
- onSearchChange && /* @__PURE__ */ jsxs("div", { className: "relative", children: [
1350
- /* @__PURE__ */ jsx(
1351
- Search,
1352
- {
1353
- size: 16,
1354
- className: "absolute left-3 top-1/2 transform -translate-y-1/2 text-muted-foreground"
1355
- }
1356
- ),
1357
- /* @__PURE__ */ jsx(
1358
- "input",
1359
- {
1360
- type: "text",
1361
- placeholder: "Search chats...",
1362
- value: searchQuery,
1363
- onChange: (e) => onSearchChange(e.target.value),
1364
- className: "w-full pl-9 pr-3 py-2 border border-input rounded-lg text-sm bg-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
1365
- }
1366
- )
1367
- ] })
1368
- ] }),
1369
- /* @__PURE__ */ jsx("div", { className: "flex-1 overflow-y-auto", children: threads.length === 0 ? /* @__PURE__ */ jsx("div", { className: "p-4 text-center text-muted-foreground text-sm", children: "No chats yet. Start a new conversation!" }) : threads.map((thread) => /* @__PURE__ */ jsx(
1370
- "div",
1371
- {
1372
- onClick: () => onThreadSelect(thread.id),
1373
- className: `p-3 border-b cursor-pointer transition-colors hover:bg-muted/50 ${selectedThreadId === thread.id ? "bg-muted" : ""}`,
1374
- children: /* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-2", children: [
1375
- /* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0", children: [
1376
- /* @__PURE__ */ jsxs("h3", { className: "font-medium text-sm truncate mb-1", children: [
1377
- thread.title,
1378
- thread.isTemporary && /* @__PURE__ */ jsx("span", { className: "ml-2 text-xs text-muted-foreground", children: "(Temporary)" })
1379
- ] }),
1380
- /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground truncate", children: thread.preview })
1381
- ] }),
1382
- onDeleteThread && /* @__PURE__ */ jsx(
1383
- "button",
1384
- {
1385
- onClick: (e) => {
1386
- e.stopPropagation();
1387
- onDeleteThread(thread.id);
1388
- },
1389
- className: "p-1 opacity-0 group-hover:opacity-100 hover:bg-destructive/10 rounded transition-opacity text-muted-foreground hover:text-destructive",
1390
- "aria-label": "Delete thread",
1391
- children: /* @__PURE__ */ jsxs(
1392
- "svg",
1393
- {
1394
- width: "14",
1395
- height: "14",
1396
- viewBox: "0 0 24 24",
1397
- fill: "none",
1398
- stroke: "currentColor",
1399
- strokeWidth: "2",
1400
- strokeLinecap: "round",
1401
- strokeLinejoin: "round",
1402
- children: [
1403
- /* @__PURE__ */ jsx("polyline", { points: "3 6 5 6 21 6" }),
1404
- /* @__PURE__ */ jsx("path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" })
1405
- ]
1406
- }
1407
- )
1408
- }
1409
- )
1410
- ] })
1411
- },
1412
- thread.id
1413
- )) })
1414
- ] });
1415
- };
1416
- var MENU_ICON_ID = "menu";
1417
- var MenuIcon = ({ className = "" }) => {
1418
- return /* @__PURE__ */ jsxs(
1419
- "svg",
1420
- {
1421
- className,
1422
- width: "20",
1423
- height: "20",
1424
- viewBox: "0 0 24 24",
1425
- fill: "none",
1426
- stroke: "currentColor",
1427
- strokeWidth: "2",
1428
- strokeLinecap: "round",
1429
- strokeLinejoin: "round",
1430
- children: [
1431
- /* @__PURE__ */ jsx("line", { x1: "3", y1: "12", x2: "21", y2: "12" }),
1432
- /* @__PURE__ */ jsx("line", { x1: "3", y1: "6", x2: "21", y2: "6" }),
1433
- /* @__PURE__ */ jsx("line", { x1: "3", y1: "18", x2: "21", y2: "18" })
1434
- ]
1435
- }
1436
- );
1437
- };
1438
- var CLOSE_ICON_ID = "close";
1439
- var CloseIcon = ({ className = "" }) => {
1440
- return /* @__PURE__ */ jsxs(
1441
- "svg",
1442
- {
1443
- className,
1444
- width: "20",
1445
- height: "20",
1446
- viewBox: "0 0 24 24",
1447
- fill: "none",
1448
- stroke: "currentColor",
1449
- strokeWidth: "2",
1450
- strokeLinecap: "round",
1451
- strokeLinejoin: "round",
1452
- children: [
1453
- /* @__PURE__ */ jsx("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
1454
- /* @__PURE__ */ jsx("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
1455
- ]
1456
- }
1457
- );
1458
- };
1459
-
1460
- // src/styles/applyTheme.ts
1461
- var hslToVar = (color) => {
1462
- if (color === "transparent") {
1463
- return "transparent";
1464
- }
1465
- if (color.startsWith("hsl(")) {
1466
- return color.replace("hsl(", "").replace(")", "");
1467
- }
1468
- return color;
1469
- };
1470
- var applyTheme = (theme, themeName) => {
1471
- const root = document.documentElement;
1472
- if (themeName) {
1473
- root.setAttribute("data-theme", themeName);
1474
- }
1475
- root.style.setProperty("--background", hslToVar(theme.colors.background));
1476
- root.style.setProperty("--foreground", hslToVar(theme.colors.foreground));
1477
- root.style.setProperty("--card", hslToVar(theme.colors.background));
1478
- root.style.setProperty("--card-foreground", hslToVar(theme.colors.foreground));
1479
- root.style.setProperty("--popover", hslToVar(theme.colors.background));
1480
- root.style.setProperty("--popover-foreground", hslToVar(theme.colors.foreground));
1481
- root.style.setProperty("--primary", hslToVar(theme.colors.primary));
1482
- root.style.setProperty("--primary-foreground", hslToVar(theme.colors.background));
1483
- root.style.setProperty("--secondary", hslToVar(theme.colors.secondary));
1484
- root.style.setProperty("--secondary-foreground", hslToVar(theme.colors.foreground));
1485
- root.style.setProperty("--muted", hslToVar(theme.colors.muted));
1486
- root.style.setProperty("--muted-foreground", hslToVar(theme.colors.foreground));
1487
- root.style.setProperty("--accent", hslToVar(theme.colors.accent));
1488
- root.style.setProperty("--accent-foreground", hslToVar(theme.colors.background));
1489
- root.style.setProperty("--destructive", hslToVar(theme.colors.error));
1490
- root.style.setProperty("--destructive-foreground", hslToVar(theme.colors.foreground));
1491
- root.style.setProperty("--border", hslToVar(theme.colors.border));
1492
- root.style.setProperty("--input", hslToVar(theme.colors.border));
1493
- root.style.setProperty("--ring", hslToVar(theme.colors.primary));
1494
- root.style.setProperty("--error", hslToVar(theme.colors.error));
1495
- root.style.setProperty("--warning", hslToVar(theme.colors.warning));
1496
- root.style.setProperty("--success", hslToVar(theme.colors.success));
1497
- root.style.setProperty("--info", hslToVar(theme.colors.info));
1498
- root.style.setProperty("--left-menu", hslToVar(theme.colors.mainMenu.DEFAULT));
1499
- root.style.setProperty("--left-menu-foreground", hslToVar(theme.colors.mainMenu.foreground));
1500
- root.style.setProperty("--left-menu-hover", hslToVar(theme.colors.mainMenu.hover));
1501
- root.style.setProperty("--left-menu-selected", hslToVar(theme.colors.mainMenu.selected));
1502
- root.style.setProperty("--left-menu-border", hslToVar(theme.colors.mainMenu.border));
1503
- Object.entries(theme.spacing).forEach(([key, value]) => {
1504
- root.style.setProperty(`--spacing-${key}`, value);
1505
- });
1506
- Object.entries(theme.borderRadius).forEach(([key, value]) => {
1507
- root.style.setProperty(`--radius-${key}`, value);
1508
- });
1509
- Object.entries(theme.shadows).forEach(([key, value]) => {
1510
- root.style.setProperty(`--shadow-${key}`, value);
1511
- });
1512
- Object.entries(theme.transitions).forEach(([key, value]) => {
1513
- root.style.setProperty(`--transition-${key}`, value);
1514
- });
1515
- if (themeName?.endsWith("-large")) {
1516
- root.style.fontSize = "125%";
1517
- } else {
1518
- root.style.fontSize = "";
1519
- }
1520
- };
1521
-
1522
- export { Avatar, AvatarFallback, AvatarImage, Badge, Button, CLOSE_ICON_ID, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChatInput, CloseIcon, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownButton, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Header, IconButton, Input, MENU_ICON_ID, MenuIcon, MessageBubble, MessageType, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Progress, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarHeader, SidebarMenu, SidebarMenuButton, SidebarMenuIcon, SidebarMenuItem, SidebarMenuLabel, Skeleton, Slider, SliderRange, SliderThumb, SliderTrack, Spinner, Switch, Textarea, ThreadList, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UserInfo, applyTheme, badgeVariants };
1523
- //# sourceMappingURL=index.mjs.map
1524
- //# sourceMappingURL=index.mjs.map