@pactor-app/ui 1.2.0 → 1.3.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.
@@ -65,6 +65,46 @@ declare function Alert({ className, variant, ...props }: React.ComponentProps<'d
65
65
  declare function AlertTitle({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
66
66
  declare function AlertDescription({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
67
67
 
68
+ /**
69
+ * shadcn/ui Button(vendored 源码,Tailwind v4 版,Base UI 原语)。
70
+ * 官方源码:https://ui.shadcn.com/r/styles/base-nova/button.json
71
+ * `asChild` 语义经 Base UI 的 `render` 模式消化(合并 props 到唯一子元素)。
72
+ */
73
+ declare const buttonVariants: (props?: ({
74
+ variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
75
+ size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
76
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
77
+ declare function Button({ className, variant, size, asChild, children, ...props }: React.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
78
+ asChild?: boolean;
79
+ }): React.JSX.Element;
80
+
81
+ /**
82
+ * shadcn/ui Attachment(vendored 源码,Tailwind v4 版,Base UI 原语)。
83
+ * 官方源码:https://ui.shadcn.com/r/styles/new-york-v4/attachment.json
84
+ * 适配:Radix Slot → Base UI render 模式(AttachmentTrigger 的 asChild);
85
+ * 导入路径转为包内相对路径。
86
+ */
87
+ declare const attachmentVariants: (props?: ({
88
+ size?: "default" | "xs" | "sm" | null | undefined;
89
+ orientation?: "horizontal" | "vertical" | null | undefined;
90
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
91
+ declare function Attachment({ className, state, size, orientation, ...props }: React.ComponentProps<'div'> & VariantProps<typeof attachmentVariants> & {
92
+ state?: 'idle' | 'uploading' | 'processing' | 'error' | 'done';
93
+ }): React.JSX.Element;
94
+ declare const attachmentMediaVariants: (props?: ({
95
+ variant?: "image" | "icon" | null | undefined;
96
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
97
+ declare function AttachmentMedia({ className, variant, ...props }: React.ComponentProps<'div'> & VariantProps<typeof attachmentMediaVariants>): React.JSX.Element;
98
+ declare function AttachmentContent({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
99
+ declare function AttachmentTitle({ className, ...props }: React.ComponentProps<'span'>): React.JSX.Element;
100
+ declare function AttachmentDescription({ className, ...props }: React.ComponentProps<'span'>): React.JSX.Element;
101
+ declare function AttachmentActions({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
102
+ declare function AttachmentAction({ className, variant, size, ...props }: React.ComponentProps<typeof Button>): React.JSX.Element;
103
+ declare function AttachmentTrigger({ className, asChild, type, children, ...props }: React.ComponentProps<'button'> & {
104
+ asChild?: boolean;
105
+ }): React.JSX.Element;
106
+ declare function AttachmentGroup({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
107
+
68
108
  /**
69
109
  * shadcn/ui AlertDialog(vendored 源码,Base UI AlertDialog 原语)。
70
110
  * 官方源码:https://ui.shadcn.com/r/styles/base-nova/alert-dialog.json
@@ -118,25 +158,27 @@ declare function BreadcrumbPage({ className, ...props }: React.ComponentProps<'s
118
158
  declare function BreadcrumbSeparator({ children, className, ...props }: React.ComponentProps<'li'>): React.JSX.Element;
119
159
  declare function BreadcrumbEllipsis({ className, ...props }: React.ComponentProps<'span'>): React.JSX.Element;
120
160
 
121
- /**
122
- * shadcn/ui Button(vendored 源码,Tailwind v4 版,Base UI 原语)。
123
- * 官方源码:https://ui.shadcn.com/r/styles/base-nova/button.json
124
- * `asChild` 语义经 Base UI 的 `render` 模式消化(合并 props 到唯一子元素)。
125
- */
126
- declare const buttonVariants: (props?: ({
127
- variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
128
- size?: "default" | "sm" | "lg" | "icon" | null | undefined;
129
- } & class_variance_authority_types.ClassProp) | undefined) => string;
130
- declare function Button({ className, variant, size, asChild, children, ...props }: React.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
131
- asChild?: boolean;
132
- }): React.JSX.Element;
133
-
134
161
  /**
135
162
  * shadcn/ui ButtonGroup(vendored 源码,纯样式组合):
136
163
  * 相连按钮组——内部按钮去圆角,首尾保留外侧圆角,相邻边框重叠。
137
164
  */
138
165
  declare function ButtonGroup({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
139
166
 
167
+ declare function BubbleGroup({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
168
+ declare const bubbleVariants: (props?: ({
169
+ variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "muted" | "tinted" | null | undefined;
170
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
171
+ declare function Bubble({ variant, align, className, ...props }: React.ComponentProps<"div"> & VariantProps<typeof bubbleVariants> & {
172
+ align?: "start" | "end";
173
+ }): React.JSX.Element;
174
+ declare function BubbleContent({ asChild, className, children, ...props }: React.ComponentProps<"div"> & {
175
+ asChild?: boolean;
176
+ }): React.JSX.Element;
177
+ declare function BubbleReactions({ side, align, className, ...props }: React.ComponentProps<"div"> & {
178
+ align?: "start" | "end";
179
+ side?: "top" | "bottom";
180
+ }): React.JSX.Element;
181
+
140
182
  /**
141
183
  * shadcn/ui Calendar(vendored 源码封装,react-day-picker 原语):
142
184
  * 以 classNames 覆盖为 shadcn 语义令牌样式;`mode="single"` 受控选择
@@ -144,8 +186,8 @@ declare function ButtonGroup({ className, ...props }: React.ComponentProps<'div'
144
186
  */
145
187
  declare function Calendar({ className, classNames, showOutsideDays, ...props }: React.ComponentProps<typeof DayPicker>): React.JSX.Element;
146
188
 
147
- /** 默认图表配色:chart-1..5 语义令牌(按序循环取色) */
148
- declare const CHART_TOKEN_COLORS: readonly ["hsl(var(--chart-1))", "hsl(var(--chart-2))", "hsl(var(--chart-3))", "hsl(var(--chart-4))", "hsl(var(--chart-5))"];
189
+ /** 默认图表配色:chart-1..5 语义令牌(按序循环取色,值为 oklch,直接 var() 引用) */
190
+ declare const CHART_TOKEN_COLORS: readonly ["var(--chart-1)", "var(--chart-2)", "var(--chart-3)", "var(--chart-4)", "var(--chart-5)"];
149
191
  /** 取第 index 个系列的颜色:优先 colors 覆盖,缺省回退 chart-1..5 令牌 */
150
192
  declare function chartColor(index: number, colors?: string[]): string;
151
193
  /**
@@ -468,6 +510,15 @@ declare function Kbd({ className, ...props }: React.ComponentProps<'kbd'>): Reac
468
510
  */
469
511
  declare function Label({ className, ...props }: React.ComponentProps<'label'>): React.JSX.Element;
470
512
 
513
+ declare function MessageGroup({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
514
+ declare function Message({ className, align, ...props }: React.ComponentProps<"div"> & {
515
+ align?: "start" | "end";
516
+ }): React.JSX.Element;
517
+ declare function MessageAvatar({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
518
+ declare function MessageContent({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
519
+ declare function MessageHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
520
+ declare function MessageFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
521
+
471
522
  /** shadcn/ui Progress(vendored 源码,Base UI 原语) */
472
523
  declare function Progress({ className, ...props }: Progress$1.Root.Props): React.JSX.Element;
473
524
  declare function ProgressTrack({ className, ...props }: Progress$1.Track.Props): React.JSX.Element;
@@ -522,6 +573,69 @@ declare function Separator({ className, orientation, decorative: _decorative, ..
522
573
  decorative?: boolean;
523
574
  }): React.JSX.Element;
524
575
 
576
+ type SidebarContextProps = {
577
+ state: 'expanded' | 'collapsed';
578
+ open: boolean;
579
+ setOpen: (open: boolean) => void;
580
+ openMobile: boolean;
581
+ setOpenMobile: (open: boolean) => void;
582
+ isMobile: boolean;
583
+ toggleSidebar: () => void;
584
+ };
585
+ declare function useSidebar(): SidebarContextProps;
586
+ declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }: React.ComponentProps<'div'> & {
587
+ defaultOpen?: boolean;
588
+ open?: boolean;
589
+ onOpenChange?: (open: boolean) => void;
590
+ }): React.JSX.Element;
591
+ declare function SidebarRoot({ side, variant, collapsible, className, children, ...props }: React.ComponentProps<'div'> & {
592
+ side?: 'left' | 'right';
593
+ variant?: 'sidebar' | 'floating' | 'inset';
594
+ collapsible?: 'offcanvas' | 'icon' | 'none';
595
+ }): React.JSX.Element;
596
+ declare function SidebarTrigger({ className, onClick, ...props }: React.ComponentProps<typeof Button>): React.JSX.Element;
597
+ declare function SidebarRail({ className, ...props }: React.ComponentProps<'button'>): React.JSX.Element;
598
+ declare function SidebarInset({ className, ...props }: React.ComponentProps<'main'>): React.JSX.Element;
599
+ declare function SidebarInput({ className, ...props }: React.ComponentProps<typeof Input>): React.JSX.Element;
600
+ declare function SidebarHeader({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
601
+ declare function SidebarFooter({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
602
+ declare function SidebarSeparator({ className, ...props }: React.ComponentProps<typeof Separator>): React.JSX.Element;
603
+ declare function SidebarContent({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
604
+ declare function SidebarGroup({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
605
+ declare function SidebarGroupLabel({ className, asChild, children, ...props }: React.ComponentProps<'div'> & {
606
+ asChild?: boolean;
607
+ }): React.JSX.Element | null;
608
+ declare function SidebarGroupAction({ className, asChild, children, ...props }: React.ComponentProps<'button'> & {
609
+ asChild?: boolean;
610
+ }): React.JSX.Element | null;
611
+ declare function SidebarGroupContent({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
612
+ declare function SidebarMenu({ className, ...props }: React.ComponentProps<'ul'>): React.JSX.Element;
613
+ declare function SidebarMenuItem({ className, ...props }: React.ComponentProps<'li'>): React.JSX.Element;
614
+ declare const sidebarMenuButtonVariants: (props?: ({
615
+ variant?: "default" | "outline" | null | undefined;
616
+ size?: "default" | "sm" | "lg" | null | undefined;
617
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
618
+ declare function SidebarMenuButton({ asChild, isActive, variant, size, tooltip, className, children, ...props }: React.ComponentProps<'button'> & {
619
+ asChild?: boolean;
620
+ isActive?: boolean;
621
+ tooltip?: string | React.ComponentProps<typeof TooltipContent>;
622
+ } & VariantProps<typeof sidebarMenuButtonVariants>): React.JSX.Element | null;
623
+ declare function SidebarMenuAction({ className, asChild, showOnHover, children, ...props }: React.ComponentProps<'button'> & {
624
+ asChild?: boolean;
625
+ showOnHover?: boolean;
626
+ }): React.JSX.Element | null;
627
+ declare function SidebarMenuBadge({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
628
+ declare function SidebarMenuSkeleton({ className, showIcon, ...props }: React.ComponentProps<'div'> & {
629
+ showIcon?: boolean;
630
+ }): React.JSX.Element;
631
+ declare function SidebarMenuSub({ className, ...props }: React.ComponentProps<'ul'>): React.JSX.Element;
632
+ declare function SidebarMenuSubItem({ className, ...props }: React.ComponentProps<'li'>): React.JSX.Element;
633
+ declare function SidebarMenuSubButton({ asChild, size, isActive, className, children, ...props }: React.ComponentProps<'a'> & {
634
+ asChild?: boolean;
635
+ size?: 'sm' | 'md';
636
+ isActive?: boolean;
637
+ }): React.JSX.Element | null;
638
+
525
639
  /** shadcn/ui Skeleton(vendored 源码) */
526
640
  declare function Skeleton({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
527
641
 
@@ -565,4 +679,4 @@ declare function Textarea({ className, ...props }: React.ComponentProps<'textare
565
679
  declare function ToggleGroup({ className, variant, size, children, ...props }: ToggleGroup$1.Props & VariantProps<typeof toggleVariants>): React.JSX.Element;
566
680
  declare function ToggleGroupItem({ className, children, variant, size, ...props }: Toggle.Props & VariantProps<typeof toggleVariants>): React.JSX.Element;
567
681
 
568
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, CHART_TOKEN_COLORS, Calendar, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartContainer, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxContent, ComboboxTrigger, Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, ContextMenu, ContextMenuContent, ContextMenuItem, ContextMenuSeparator, ContextMenuTrigger, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyTitle, Field, FieldDescription, FieldError, FieldLabel, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputGroup, InputGroupAddon, InputGroupInput, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemMedia, ItemTitle, Kbd, Label, Menubar, MenubarContent, MenubarItem, MenubarMenu, MenubarSeparator, MenubarTrigger, NavigationMenu, NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Panel, PanelGroup, Popover, PopoverContent, PopoverTrigger, Progress, ProgressIndicator, ProgressTrack, RadioGroup, RadioGroupItem, ResizableHandle, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Skeleton, Slider, SliderControl, SliderIndicator, SliderThumb, SliderTrack, Spinner, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type ToastOptions, type ToastVariant, Toaster, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buttonVariants, chartColor, navigationMenuTriggerStyle, toast, toastManager, toggleVariants, useCarousel };
682
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, AttachmentTitle, AttachmentTrigger, Avatar, AvatarFallback, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Bubble, BubbleContent, BubbleGroup, BubbleReactions, Button, ButtonGroup, CHART_TOKEN_COLORS, Calendar, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartContainer, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxContent, ComboboxTrigger, Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, ContextMenu, ContextMenuContent, ContextMenuItem, ContextMenuSeparator, ContextMenuTrigger, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyTitle, Field, FieldDescription, FieldError, FieldLabel, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputGroup, InputGroupAddon, InputGroupInput, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemMedia, ItemTitle, Kbd, Label, Menubar, MenubarContent, MenubarItem, MenubarMenu, MenubarSeparator, MenubarTrigger, Message, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader, NavigationMenu, NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Panel, PanelGroup, Popover, PopoverContent, PopoverTrigger, Progress, ProgressIndicator, ProgressTrack, RadioGroup, RadioGroupItem, ResizableHandle, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SidebarContent as SidebarContentArea, SidebarFooter as SidebarFooterArea, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader as SidebarHeaderArea, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarRoot, SidebarSeparator, SidebarTrigger, Skeleton, Slider, SliderControl, SliderIndicator, SliderThumb, SliderTrack, Spinner, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type ToastOptions, type ToastVariant, Toaster, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buttonVariants, chartColor, navigationMenuTriggerStyle, toast, toastManager, toggleVariants, useCarousel, useSidebar };
@@ -65,6 +65,46 @@ declare function Alert({ className, variant, ...props }: React.ComponentProps<'d
65
65
  declare function AlertTitle({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
66
66
  declare function AlertDescription({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
67
67
 
68
+ /**
69
+ * shadcn/ui Button(vendored 源码,Tailwind v4 版,Base UI 原语)。
70
+ * 官方源码:https://ui.shadcn.com/r/styles/base-nova/button.json
71
+ * `asChild` 语义经 Base UI 的 `render` 模式消化(合并 props 到唯一子元素)。
72
+ */
73
+ declare const buttonVariants: (props?: ({
74
+ variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
75
+ size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
76
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
77
+ declare function Button({ className, variant, size, asChild, children, ...props }: React.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
78
+ asChild?: boolean;
79
+ }): React.JSX.Element;
80
+
81
+ /**
82
+ * shadcn/ui Attachment(vendored 源码,Tailwind v4 版,Base UI 原语)。
83
+ * 官方源码:https://ui.shadcn.com/r/styles/new-york-v4/attachment.json
84
+ * 适配:Radix Slot → Base UI render 模式(AttachmentTrigger 的 asChild);
85
+ * 导入路径转为包内相对路径。
86
+ */
87
+ declare const attachmentVariants: (props?: ({
88
+ size?: "default" | "xs" | "sm" | null | undefined;
89
+ orientation?: "horizontal" | "vertical" | null | undefined;
90
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
91
+ declare function Attachment({ className, state, size, orientation, ...props }: React.ComponentProps<'div'> & VariantProps<typeof attachmentVariants> & {
92
+ state?: 'idle' | 'uploading' | 'processing' | 'error' | 'done';
93
+ }): React.JSX.Element;
94
+ declare const attachmentMediaVariants: (props?: ({
95
+ variant?: "image" | "icon" | null | undefined;
96
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
97
+ declare function AttachmentMedia({ className, variant, ...props }: React.ComponentProps<'div'> & VariantProps<typeof attachmentMediaVariants>): React.JSX.Element;
98
+ declare function AttachmentContent({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
99
+ declare function AttachmentTitle({ className, ...props }: React.ComponentProps<'span'>): React.JSX.Element;
100
+ declare function AttachmentDescription({ className, ...props }: React.ComponentProps<'span'>): React.JSX.Element;
101
+ declare function AttachmentActions({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
102
+ declare function AttachmentAction({ className, variant, size, ...props }: React.ComponentProps<typeof Button>): React.JSX.Element;
103
+ declare function AttachmentTrigger({ className, asChild, type, children, ...props }: React.ComponentProps<'button'> & {
104
+ asChild?: boolean;
105
+ }): React.JSX.Element;
106
+ declare function AttachmentGroup({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
107
+
68
108
  /**
69
109
  * shadcn/ui AlertDialog(vendored 源码,Base UI AlertDialog 原语)。
70
110
  * 官方源码:https://ui.shadcn.com/r/styles/base-nova/alert-dialog.json
@@ -118,25 +158,27 @@ declare function BreadcrumbPage({ className, ...props }: React.ComponentProps<'s
118
158
  declare function BreadcrumbSeparator({ children, className, ...props }: React.ComponentProps<'li'>): React.JSX.Element;
119
159
  declare function BreadcrumbEllipsis({ className, ...props }: React.ComponentProps<'span'>): React.JSX.Element;
120
160
 
121
- /**
122
- * shadcn/ui Button(vendored 源码,Tailwind v4 版,Base UI 原语)。
123
- * 官方源码:https://ui.shadcn.com/r/styles/base-nova/button.json
124
- * `asChild` 语义经 Base UI 的 `render` 模式消化(合并 props 到唯一子元素)。
125
- */
126
- declare const buttonVariants: (props?: ({
127
- variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
128
- size?: "default" | "sm" | "lg" | "icon" | null | undefined;
129
- } & class_variance_authority_types.ClassProp) | undefined) => string;
130
- declare function Button({ className, variant, size, asChild, children, ...props }: React.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
131
- asChild?: boolean;
132
- }): React.JSX.Element;
133
-
134
161
  /**
135
162
  * shadcn/ui ButtonGroup(vendored 源码,纯样式组合):
136
163
  * 相连按钮组——内部按钮去圆角,首尾保留外侧圆角,相邻边框重叠。
137
164
  */
138
165
  declare function ButtonGroup({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
139
166
 
167
+ declare function BubbleGroup({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
168
+ declare const bubbleVariants: (props?: ({
169
+ variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "muted" | "tinted" | null | undefined;
170
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
171
+ declare function Bubble({ variant, align, className, ...props }: React.ComponentProps<"div"> & VariantProps<typeof bubbleVariants> & {
172
+ align?: "start" | "end";
173
+ }): React.JSX.Element;
174
+ declare function BubbleContent({ asChild, className, children, ...props }: React.ComponentProps<"div"> & {
175
+ asChild?: boolean;
176
+ }): React.JSX.Element;
177
+ declare function BubbleReactions({ side, align, className, ...props }: React.ComponentProps<"div"> & {
178
+ align?: "start" | "end";
179
+ side?: "top" | "bottom";
180
+ }): React.JSX.Element;
181
+
140
182
  /**
141
183
  * shadcn/ui Calendar(vendored 源码封装,react-day-picker 原语):
142
184
  * 以 classNames 覆盖为 shadcn 语义令牌样式;`mode="single"` 受控选择
@@ -144,8 +186,8 @@ declare function ButtonGroup({ className, ...props }: React.ComponentProps<'div'
144
186
  */
145
187
  declare function Calendar({ className, classNames, showOutsideDays, ...props }: React.ComponentProps<typeof DayPicker>): React.JSX.Element;
146
188
 
147
- /** 默认图表配色:chart-1..5 语义令牌(按序循环取色) */
148
- declare const CHART_TOKEN_COLORS: readonly ["hsl(var(--chart-1))", "hsl(var(--chart-2))", "hsl(var(--chart-3))", "hsl(var(--chart-4))", "hsl(var(--chart-5))"];
189
+ /** 默认图表配色:chart-1..5 语义令牌(按序循环取色,值为 oklch,直接 var() 引用) */
190
+ declare const CHART_TOKEN_COLORS: readonly ["var(--chart-1)", "var(--chart-2)", "var(--chart-3)", "var(--chart-4)", "var(--chart-5)"];
149
191
  /** 取第 index 个系列的颜色:优先 colors 覆盖,缺省回退 chart-1..5 令牌 */
150
192
  declare function chartColor(index: number, colors?: string[]): string;
151
193
  /**
@@ -468,6 +510,15 @@ declare function Kbd({ className, ...props }: React.ComponentProps<'kbd'>): Reac
468
510
  */
469
511
  declare function Label({ className, ...props }: React.ComponentProps<'label'>): React.JSX.Element;
470
512
 
513
+ declare function MessageGroup({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
514
+ declare function Message({ className, align, ...props }: React.ComponentProps<"div"> & {
515
+ align?: "start" | "end";
516
+ }): React.JSX.Element;
517
+ declare function MessageAvatar({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
518
+ declare function MessageContent({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
519
+ declare function MessageHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
520
+ declare function MessageFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
521
+
471
522
  /** shadcn/ui Progress(vendored 源码,Base UI 原语) */
472
523
  declare function Progress({ className, ...props }: Progress$1.Root.Props): React.JSX.Element;
473
524
  declare function ProgressTrack({ className, ...props }: Progress$1.Track.Props): React.JSX.Element;
@@ -522,6 +573,69 @@ declare function Separator({ className, orientation, decorative: _decorative, ..
522
573
  decorative?: boolean;
523
574
  }): React.JSX.Element;
524
575
 
576
+ type SidebarContextProps = {
577
+ state: 'expanded' | 'collapsed';
578
+ open: boolean;
579
+ setOpen: (open: boolean) => void;
580
+ openMobile: boolean;
581
+ setOpenMobile: (open: boolean) => void;
582
+ isMobile: boolean;
583
+ toggleSidebar: () => void;
584
+ };
585
+ declare function useSidebar(): SidebarContextProps;
586
+ declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }: React.ComponentProps<'div'> & {
587
+ defaultOpen?: boolean;
588
+ open?: boolean;
589
+ onOpenChange?: (open: boolean) => void;
590
+ }): React.JSX.Element;
591
+ declare function SidebarRoot({ side, variant, collapsible, className, children, ...props }: React.ComponentProps<'div'> & {
592
+ side?: 'left' | 'right';
593
+ variant?: 'sidebar' | 'floating' | 'inset';
594
+ collapsible?: 'offcanvas' | 'icon' | 'none';
595
+ }): React.JSX.Element;
596
+ declare function SidebarTrigger({ className, onClick, ...props }: React.ComponentProps<typeof Button>): React.JSX.Element;
597
+ declare function SidebarRail({ className, ...props }: React.ComponentProps<'button'>): React.JSX.Element;
598
+ declare function SidebarInset({ className, ...props }: React.ComponentProps<'main'>): React.JSX.Element;
599
+ declare function SidebarInput({ className, ...props }: React.ComponentProps<typeof Input>): React.JSX.Element;
600
+ declare function SidebarHeader({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
601
+ declare function SidebarFooter({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
602
+ declare function SidebarSeparator({ className, ...props }: React.ComponentProps<typeof Separator>): React.JSX.Element;
603
+ declare function SidebarContent({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
604
+ declare function SidebarGroup({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
605
+ declare function SidebarGroupLabel({ className, asChild, children, ...props }: React.ComponentProps<'div'> & {
606
+ asChild?: boolean;
607
+ }): React.JSX.Element | null;
608
+ declare function SidebarGroupAction({ className, asChild, children, ...props }: React.ComponentProps<'button'> & {
609
+ asChild?: boolean;
610
+ }): React.JSX.Element | null;
611
+ declare function SidebarGroupContent({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
612
+ declare function SidebarMenu({ className, ...props }: React.ComponentProps<'ul'>): React.JSX.Element;
613
+ declare function SidebarMenuItem({ className, ...props }: React.ComponentProps<'li'>): React.JSX.Element;
614
+ declare const sidebarMenuButtonVariants: (props?: ({
615
+ variant?: "default" | "outline" | null | undefined;
616
+ size?: "default" | "sm" | "lg" | null | undefined;
617
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
618
+ declare function SidebarMenuButton({ asChild, isActive, variant, size, tooltip, className, children, ...props }: React.ComponentProps<'button'> & {
619
+ asChild?: boolean;
620
+ isActive?: boolean;
621
+ tooltip?: string | React.ComponentProps<typeof TooltipContent>;
622
+ } & VariantProps<typeof sidebarMenuButtonVariants>): React.JSX.Element | null;
623
+ declare function SidebarMenuAction({ className, asChild, showOnHover, children, ...props }: React.ComponentProps<'button'> & {
624
+ asChild?: boolean;
625
+ showOnHover?: boolean;
626
+ }): React.JSX.Element | null;
627
+ declare function SidebarMenuBadge({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
628
+ declare function SidebarMenuSkeleton({ className, showIcon, ...props }: React.ComponentProps<'div'> & {
629
+ showIcon?: boolean;
630
+ }): React.JSX.Element;
631
+ declare function SidebarMenuSub({ className, ...props }: React.ComponentProps<'ul'>): React.JSX.Element;
632
+ declare function SidebarMenuSubItem({ className, ...props }: React.ComponentProps<'li'>): React.JSX.Element;
633
+ declare function SidebarMenuSubButton({ asChild, size, isActive, className, children, ...props }: React.ComponentProps<'a'> & {
634
+ asChild?: boolean;
635
+ size?: 'sm' | 'md';
636
+ isActive?: boolean;
637
+ }): React.JSX.Element | null;
638
+
525
639
  /** shadcn/ui Skeleton(vendored 源码) */
526
640
  declare function Skeleton({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
527
641
 
@@ -565,4 +679,4 @@ declare function Textarea({ className, ...props }: React.ComponentProps<'textare
565
679
  declare function ToggleGroup({ className, variant, size, children, ...props }: ToggleGroup$1.Props & VariantProps<typeof toggleVariants>): React.JSX.Element;
566
680
  declare function ToggleGroupItem({ className, children, variant, size, ...props }: Toggle.Props & VariantProps<typeof toggleVariants>): React.JSX.Element;
567
681
 
568
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, CHART_TOKEN_COLORS, Calendar, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartContainer, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxContent, ComboboxTrigger, Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, ContextMenu, ContextMenuContent, ContextMenuItem, ContextMenuSeparator, ContextMenuTrigger, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyTitle, Field, FieldDescription, FieldError, FieldLabel, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputGroup, InputGroupAddon, InputGroupInput, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemMedia, ItemTitle, Kbd, Label, Menubar, MenubarContent, MenubarItem, MenubarMenu, MenubarSeparator, MenubarTrigger, NavigationMenu, NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Panel, PanelGroup, Popover, PopoverContent, PopoverTrigger, Progress, ProgressIndicator, ProgressTrack, RadioGroup, RadioGroupItem, ResizableHandle, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Skeleton, Slider, SliderControl, SliderIndicator, SliderThumb, SliderTrack, Spinner, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type ToastOptions, type ToastVariant, Toaster, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buttonVariants, chartColor, navigationMenuTriggerStyle, toast, toastManager, toggleVariants, useCarousel };
682
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, AttachmentTitle, AttachmentTrigger, Avatar, AvatarFallback, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Bubble, BubbleContent, BubbleGroup, BubbleReactions, Button, ButtonGroup, CHART_TOKEN_COLORS, Calendar, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartContainer, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxContent, ComboboxTrigger, Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, ContextMenu, ContextMenuContent, ContextMenuItem, ContextMenuSeparator, ContextMenuTrigger, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyTitle, Field, FieldDescription, FieldError, FieldLabel, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputGroup, InputGroupAddon, InputGroupInput, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemMedia, ItemTitle, Kbd, Label, Menubar, MenubarContent, MenubarItem, MenubarMenu, MenubarSeparator, MenubarTrigger, Message, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader, NavigationMenu, NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Panel, PanelGroup, Popover, PopoverContent, PopoverTrigger, Progress, ProgressIndicator, ProgressTrack, RadioGroup, RadioGroupItem, ResizableHandle, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SidebarContent as SidebarContentArea, SidebarFooter as SidebarFooterArea, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader as SidebarHeaderArea, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarRoot, SidebarSeparator, SidebarTrigger, Skeleton, Slider, SliderControl, SliderIndicator, SliderThumb, SliderTrack, Spinner, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type ToastOptions, type ToastVariant, Toaster, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buttonVariants, chartColor, navigationMenuTriggerStyle, toast, toastManager, toggleVariants, useCarousel, useSidebar };