@pactor-app/ui 1.43.0 → 1.46.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.
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { Accordion as Accordion$1 } from '@base-ui/react/accordion';
3
- import * as class_variance_authority_types from 'class-variance-authority/types';
4
3
  import { VariantProps } from 'class-variance-authority';
4
+ import * as class_variance_authority_types from 'class-variance-authority/types';
5
5
  import { AlertDialog as AlertDialog$1 } from '@base-ui/react/alert-dialog';
6
6
  import { Avatar as Avatar$1 } from '@base-ui/react/avatar';
7
7
  import { DayPicker } from 'react-day-picker';
@@ -22,6 +22,7 @@ export { C as Card, a as CardAction, b as CardContent, c as CardDescription, d a
22
22
  import { Tooltip as Tooltip$1 } from '@base-ui/react/tooltip';
23
23
  import { Field as Field$1 } from '@base-ui/react/field';
24
24
  import { OTPInput } from 'input-otp';
25
+ import { LucideIcon } from 'lucide-react';
25
26
  import { Progress as Progress$1 } from '@base-ui/react/progress';
26
27
  import { Radio } from '@base-ui/react/radio';
27
28
  import { RadioGroup as RadioGroup$1 } from '@base-ui/react/radio-group';
@@ -54,17 +55,6 @@ declare function AccordionItem({ className, ...props }: Accordion$1.Item.Props):
54
55
  declare function AccordionTrigger({ className, children, ...props }: Accordion$1.Trigger.Props): React.JSX.Element;
55
56
  declare function AccordionContent({ className, children, ...props }: Accordion$1.Panel.Props): React.JSX.Element;
56
57
 
57
- /**
58
- * shadcn/ui Alert(vendored 源码,按 DSL 契约扩展 success/warning/info 变体;
59
- * 语义色读取 --success/--warning/--info 令牌,见 src/styles.css)
60
- */
61
- declare const alertVariants: (props?: ({
62
- variant?: "default" | "destructive" | "success" | "warning" | "info" | null | undefined;
63
- } & class_variance_authority_types.ClassProp) | undefined) => string;
64
- declare function Alert({ className, variant, ...props }: React.ComponentProps<'div'> & VariantProps<typeof alertVariants>): React.JSX.Element;
65
- declare function AlertTitle({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
66
- declare function AlertDescription({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
67
-
68
58
  /**
69
59
  * shadcn/ui Button(vendored 源码,Tailwind v4 版,Base UI 原语)。
70
60
  * 官方源码:https://ui.shadcn.com/r/styles/base-nova/button.json
@@ -78,6 +68,34 @@ declare function Button({ className, variant, size, asChild, children, ...props
78
68
  asChild?: boolean;
79
69
  }): React.JSX.Element;
80
70
 
71
+ interface ActionButtonProps extends Omit<React.ComponentProps<'button'>, 'children'>, VariantProps<typeof buttonVariants> {
72
+ /** 图标节点(lucide 图标),恒显 */
73
+ icon: React.ReactNode;
74
+ /** 可选文字;缺省时渲染 icon-only 方形按钮(size 缺省回退 icon-sm) */
75
+ label?: React.ReactNode;
76
+ /** 可选 tooltip 文案,提供时悬浮/聚焦显示提示浮层 */
77
+ tooltip?: string;
78
+ }
79
+ /**
80
+ * ActionButton 紧凑工具栏按钮:扩展按钮组件,交互设计参考 arc-library
81
+ * (https://github.com/kuratlielia/arc-library),Tailwind 实现。
82
+ * `buttonVariants` 薄封装:icon + 可选 label,默认 size="sm"(无 label 时
83
+ * 回退 icon-sm 方形);`tooltip` 提供时包裹现有 Tooltip。
84
+ * icon-only 时须传 `aria-label`(缺失时 dev 告警,不抛错)。
85
+ */
86
+ declare function ActionButton({ className, variant, size, icon, label, tooltip, type, ...props }: ActionButtonProps): React.JSX.Element;
87
+
88
+ /**
89
+ * shadcn/ui Alert(vendored 源码,按 DSL 契约扩展 success/warning/info 变体;
90
+ * 语义色读取 --success/--warning/--info 令牌,见 src/styles.css)
91
+ */
92
+ declare const alertVariants: (props?: ({
93
+ variant?: "default" | "destructive" | "success" | "warning" | "info" | null | undefined;
94
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
95
+ declare function Alert({ className, variant, ...props }: React.ComponentProps<'div'> & VariantProps<typeof alertVariants>): React.JSX.Element;
96
+ declare function AlertTitle({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
97
+ declare function AlertDescription({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
98
+
81
99
  /**
82
100
  * shadcn/ui Attachment(vendored 源码,Tailwind v4 版,Base UI 原语)。
83
101
  * 官方源码:https://ui.shadcn.com/r/styles/new-york-v4/attachment.json
@@ -270,6 +288,42 @@ declare function CommandEmpty({ ...props }: React.ComponentProps<typeof Command$
270
288
  declare function CommandGroup({ className, ...props }: React.ComponentProps<typeof Command$1.Group>): React.JSX.Element;
271
289
  declare function CommandItem({ className, ...props }: React.ComponentProps<typeof Command$1.Item>): React.JSX.Element;
272
290
 
291
+ type ConfirmMorphState = 'idle' | 'confirming' | 'pending' | 'success' | 'error';
292
+ interface ConfirmMorphProps extends Omit<React.ComponentProps<'button'>, 'children' | 'onClick'>, VariantProps<typeof buttonVariants> {
293
+ /** idle 段文字 */
294
+ label: React.ReactNode;
295
+ /** confirming 段文字,缺省“确认” */
296
+ confirmLabel?: React.ReactNode;
297
+ /** pending 段可选文字(spinner 恒显) */
298
+ pendingLabel?: React.ReactNode;
299
+ /** success 段文字,缺省“已完成” */
300
+ successLabel?: React.ReactNode;
301
+ /** error 段撤销操作文字,缺省“撤销” */
302
+ undoLabel?: React.ReactNode;
303
+ /** confirming 段按钮变体,默认 destructive */
304
+ confirmVariant?: VariantProps<typeof buttonVariants>['variant'];
305
+ /** confirming 超时未确认自动回 idle 的时长(ms),默认 3000 */
306
+ confirmTimeout?: number;
307
+ /** success 段停留时长(ms),随后回 idle,默认 1500 */
308
+ resetDelay?: number;
309
+ /** 确认回调:返回 Promise 时自动 pending,resolve→success、reject→error */
310
+ onConfirm?: () => void | Promise<unknown>;
311
+ /** error 段撤销回调(点击 error 段按钮触发,随后回 idle) */
312
+ onUndo?: () => void;
313
+ /** 状态流转回调 */
314
+ onStateChange?: (state: ConfirmMorphState) => void;
315
+ }
316
+ /**
317
+ * ConfirmMorph 内联确认按钮:扩展按钮组件,交互设计参考 arc-library
318
+ * (https://github.com/kuratlielia/arc-library),Tailwind 实现。
319
+ * 按钮内状态机 idle → confirming → pending → success / error:
320
+ * confirming 段(默认 destructive)confirmTimeout 超时回 idle;
321
+ * onConfirm 返回 Promise 时自动 pending,resolve→success、reject→error;
322
+ * error 段点击即撤销(undo)回 idle 并触发 onUndo。各段内容在同一
323
+ * grid 单元内堆叠(最宽段定宽、非激活段 opacity-0),状态切换无布局跳动。
324
+ */
325
+ declare function ConfirmMorph({ className, variant, size, label, confirmLabel, pendingLabel, successLabel, undoLabel, confirmVariant, confirmTimeout, resetDelay, onConfirm, onUndo, onStateChange, disabled, type, ...props }: ConfirmMorphProps): React.JSX.Element;
326
+
273
327
  /**
274
328
  * shadcn/ui ContextMenu(vendored 源码,Base UI ContextMenu 原语,
275
329
  * 复用 Menu 的 Portal/Positioner/Popup/Item)。右键触发区域为
@@ -283,6 +337,29 @@ declare function ContextMenuItem({ className, variant, ...props }: ContextMenu$1
283
337
  }): React.JSX.Element;
284
338
  declare function ContextMenuSeparator({ className, ...props }: ContextMenu$1.Separator.Props): React.JSX.Element;
285
339
 
340
+ interface CopyButtonProps extends Omit<React.ComponentProps<'button'>, 'children' | 'value' | 'onCopy'>, VariantProps<typeof buttonVariants> {
341
+ /** 待写入剪贴板的文本 */
342
+ value: string;
343
+ /** 初始态可选文字(图标恒显) */
344
+ label?: React.ReactNode;
345
+ /** copied 态可选文字,缺省沿用 label */
346
+ copiedLabel?: React.ReactNode;
347
+ /** copied 态自动还原延迟(ms),默认 1500 */
348
+ resetDelay?: number;
349
+ /** 写入成功回调,携带 value */
350
+ onCopy?: (value: string) => void;
351
+ /** 剪贴板不可用 / 写入失败回调(不进入 copied 态) */
352
+ onError?: (error: unknown) => void;
353
+ }
354
+ /**
355
+ * CopyButton 复制确认按钮:扩展按钮组件,交互设计参考 arc-library
356
+ * (https://github.com/kuratlielia/arc-library),Tailwind 实现。
357
+ * 点击 → `navigator.clipboard.writeText(value)` → copied 态(IconMorph
358
+ * copy→check + 可选 copiedLabel)→ `resetDelay`(默认 1500ms)后自动还原;
359
+ * 剪贴板不可用或写入失败时触发 `onError`,不进入 copied 态。
360
+ */
361
+ declare function CopyButton({ className, variant, size, value, label, copiedLabel, resetDelay, onCopy, onError, onClick, disabled, type, ...props }: CopyButtonProps): React.JSX.Element;
362
+
286
363
  /**
287
364
  * shadcn/ui Drawer(vendored 源码,vaul 封装——shadcn 官方 Drawer 同源)。
288
365
  * 官方源码:https://ui.shadcn.com/r/styles/new-york-v4/drawer.json
@@ -320,6 +397,72 @@ declare function DropdownMenuSub({ ...props }: Menu.SubmenuRoot.Props): React.JS
320
397
  declare function DropdownMenuSubTrigger({ className, children, ...props }: Menu.SubmenuTrigger.Props): React.JSX.Element;
321
398
  declare function DropdownMenuSubContent({ className, sideOffset, ...props }: Menu.Popup.Props & Pick<Menu.Positioner.Props, 'sideOffset'>): React.JSX.Element;
322
399
 
400
+ interface ExpandingButtonGroupOption {
401
+ /** 语义化值,选中后经 onSelect 抛出 */
402
+ value: string;
403
+ /** 展开后显示的文字 */
404
+ label: React.ReactNode;
405
+ /** 恒显图标节点 */
406
+ icon: React.ReactNode;
407
+ /** 声明后点击进入原地确认态,再次点击才触发 onSelect */
408
+ confirm?: boolean;
409
+ /** 确认态显示的文字,缺省“确认” */
410
+ confirmLabel?: React.ReactNode;
411
+ /** 单项禁用 */
412
+ disabled?: boolean;
413
+ }
414
+ interface ExpandingButtonGroupProps {
415
+ /** 选项列表 */
416
+ options: ExpandingButtonGroupOption[];
417
+ /** 选中回调(confirm 选项需二次点击),携带 option.value */
418
+ onSelect?: (value: string) => void;
419
+ /** 通用:根节点 class(与内置样式合并) */
420
+ className?: string;
421
+ /** 通用:根节点内联样式 */
422
+ style?: React.CSSProperties;
423
+ }
424
+ /**
425
+ * ExpandingButtonGroup 展开式按钮组:扩展按钮组件,交互设计参考
426
+ * arc-library(https://github.com/kuratlielia/arc-library),Tailwind 实现。
427
+ * 紧凑图标按钮组:hover/聚焦的按钮经 grid-template-columns 0fr→1fr
428
+ * 过渡原地展开 label,其余按钮保持图标态让位;声明 `confirm` 的选项
429
+ * 首次点击进入原地确认态,再次点击才触发一次 onSelect(失焦/移出取消
430
+ * 确认态)。按钮为原生 button,键盘可达。
431
+ */
432
+ declare function ExpandingButtonGroup({ options, onSelect, className, style, }: ExpandingButtonGroupProps): React.JSX.Element;
433
+
434
+ interface FloatingButtonGroupOption {
435
+ /** 语义化值,点击后经 onSelect 抛出 */
436
+ value: string;
437
+ /** 可选文字 */
438
+ label?: React.ReactNode;
439
+ /** 可选图标节点 */
440
+ icon?: React.ReactNode;
441
+ /** 单项禁用 */
442
+ disabled?: boolean;
443
+ }
444
+ interface FloatingButtonGroupProps {
445
+ /** 选项列表 */
446
+ options: FloatingButtonGroupOption[];
447
+ /** 受控当前项:提供时共享高亮块恒定位于该项 */
448
+ value?: string;
449
+ /** 点击选项回调,携带 option.value */
450
+ onSelect?: (value: string) => void;
451
+ /** 通用:根节点 class(与内置样式合并) */
452
+ className?: string;
453
+ /** 通用:根节点内联样式 */
454
+ style?: React.CSSProperties;
455
+ }
456
+ /**
457
+ * FloatingButtonGroup 托盘式按钮组:扩展按钮组件,交互设计参考
458
+ * arc-library(https://github.com/kuratlielia/arc-library),Tailwind 实现。
459
+ * 托盘容器内渲染独立按钮,共享高亮块绝对定位,经 ref 测量目标按钮
460
+ * offsetLeft/offsetWidth,以 transform/width 过渡在 hover 与 focus-visible
461
+ * 的按钮间滑动;离开组后淡出(受控 value 提供时高亮恒定位于该项)。
462
+ * jsdom 等无布局环境下测量为 0 时跳过更新(防御,不抛错)。
463
+ */
464
+ declare function FloatingButtonGroup({ options, value, onSelect, className, style, }: FloatingButtonGroupProps): React.JSX.Element;
465
+
323
466
  /**
324
467
  * shadcn/ui HoverCard(vendored 源码,Base UI PreviewCard 原语——
325
468
  * Base UI 对 Radix HoverCard 的对应组件)。
@@ -462,6 +605,34 @@ declare function InputOTPSlot({ index, className, ...props }: React.ComponentPro
462
605
  }): React.JSX.Element;
463
606
  declare function InputOTPSeparator({ ...props }: React.ComponentProps<'div'>): React.JSX.Element;
464
607
 
608
+ /**
609
+ * 预设图标对白名单(lucide-react 静态导入,可 tree-shake)。
610
+ * a/b 为受控两态对应的图标组件;未知名对走占位渲染,不抛错。
611
+ */
612
+ declare const MORPH_PAIRS: Record<string, {
613
+ a: LucideIcon;
614
+ b: LucideIcon;
615
+ }>;
616
+ type IconMorphPreset = keyof typeof MORPH_PAIRS;
617
+ interface IconMorphProps {
618
+ /** 预设图标对名(menu-close / play-pause / copy-check / plus-minus) */
619
+ morph: IconMorphPreset | (string & {});
620
+ /** 受控状态:'a' 显示对中首图标,'b' 显示次图标 */
621
+ state: 'a' | 'b';
622
+ /** 通用:根节点 class(与内置样式合并) */
623
+ className?: string;
624
+ /** 通用:根节点内联样式 */
625
+ style?: React.CSSProperties;
626
+ }
627
+ /**
628
+ * IconMorph 图标形变:扩展按钮组件,交互设计参考 arc-library
629
+ * (https://github.com/kuratlielia/arc-library),Tailwind 实现。
630
+ * 双图层绝对定位堆叠,受控 `state` 切换时一层 rotate+scale+fade 出、
631
+ * 另一层入(transition-all,motion-reduce 降级为无过渡直切);
632
+ * 未知名对渲染占位图标(CircleQuestionMark,标 data-unknown)并 dev 告警。
633
+ */
634
+ declare function IconMorph({ morph, state, className, style }: IconMorphProps): React.JSX.Element;
635
+
465
636
  /**
466
637
  * shadcn/ui Item(vendored 源码,纯组合):
467
638
  * 列表项——media / title+description / actions 三段式排布。
@@ -624,6 +795,35 @@ declare function SliderThumb({ className, ...props }: Slider$1.Thumb.Props): Rea
624
795
  /** shadcn/ui Spinner(vendored 源码,纯 CSS 旋转,无原语依赖) */
625
796
  declare function Spinner({ className, ...props }: React.ComponentProps<'svg'>): React.JSX.Element;
626
797
 
798
+ interface SplitButtonOption {
799
+ /** 语义化值,选中后经 onSelect 抛出 */
800
+ value: string;
801
+ /** 选项文字 */
802
+ label: React.ReactNode;
803
+ /** 可选图标节点 */
804
+ icon?: React.ReactNode;
805
+ /** 单项禁用 */
806
+ disabled?: boolean;
807
+ }
808
+ interface SplitButtonProps extends Omit<React.ComponentProps<'button'>, 'children' | 'onSelect'>, VariantProps<typeof buttonVariants> {
809
+ /** 主操作按钮文字 */
810
+ children?: React.ReactNode;
811
+ /** 备选操作列表 */
812
+ options: SplitButtonOption[];
813
+ /** 选中备选操作回调,携带 option.value */
814
+ onSelect?: (value: string) => void;
815
+ /** 下拉触发按钮的无障碍名 */
816
+ triggerLabel?: string;
817
+ }
818
+ /**
819
+ * SplitButton 分体式按钮:扩展按钮组件,交互设计参考 arc-library
820
+ * (https://github.com/kuratlielia/arc-library),Tailwind 实现。
821
+ * ButtonGroup 相连表面 = 主操作 Button(原生 onClick)+ DropdownMenu
822
+ * (chevron 触发,备选操作经 options 声明、onSelect(value) 语义化抛出);
823
+ * variant/size/disabled 同时作用于两段。
824
+ */
825
+ declare function SplitButton({ className, style, variant, size, disabled, children, options, onSelect, triggerLabel, type, ...props }: SplitButtonProps): React.JSX.Element;
826
+
627
827
  /** shadcn/ui Switch(vendored 源码,Base UI 原语) */
628
828
  declare function Switch({ className, ...props }: Switch$1.Root.Props): React.JSX.Element;
629
829
 
@@ -645,14 +845,17 @@ declare function TableCaption({ className, ...props }: React.ComponentProps<'cap
645
845
  * 官方源码:https://ui.shadcn.com/r/styles/base-nova/tabs.json
646
846
  * Root/List/Tab/Panel 对应原 Radix Root/List/Trigger/Content;激活态属性
647
847
  * 由 `data-[state=active]` 换成官方 `data-active` 自定义变体。
648
- * List 支持 `variant`(default 胶囊 / line 下划线);激活态装饰按
649
- * `group-data-[variant=*]/tabs-list` 分别限定,两种变体互不污染。
848
+ * List 支持 `variant`(default 胶囊 / line 下划线)与 `size`(default h-9 /
849
+ * sm h-8 + 触发器 text-xs,仅压缩胶囊变体,line 行高不变);激活态装饰按
850
+ * `group-data-[variant=*]/tabs-list`、尺寸按 `group-data-[size=*]/tabs-list`
851
+ * 分别限定,互不污染。
650
852
  */
651
853
  declare function Tabs({ className, ...props }: Tabs$1.Root.Props): React.JSX.Element;
652
854
  declare const tabsListVariants: (props?: ({
653
855
  variant?: "line" | "default" | null | undefined;
856
+ size?: "default" | "sm" | null | undefined;
654
857
  } & class_variance_authority_types.ClassProp) | undefined) => string;
655
- declare function TabsList({ className, variant, ...props }: Tabs$1.List.Props & VariantProps<typeof tabsListVariants>): React.JSX.Element;
858
+ declare function TabsList({ className, variant, size, ...props }: Tabs$1.List.Props & VariantProps<typeof tabsListVariants>): React.JSX.Element;
656
859
  declare function TabsTrigger({ className, ...props }: Tabs$1.Tab.Props): React.JSX.Element;
657
860
  declare function TabsContent({ className, ...props }: Tabs$1.Panel.Props): React.JSX.Element;
658
861
 
@@ -662,4 +865,4 @@ declare function Textarea({ className, ...props }: React.ComponentProps<'textare
662
865
  declare function ToggleGroup({ className, variant, size, children, ...props }: ToggleGroup$1.Props & VariantProps<typeof toggleVariants>): React.JSX.Element;
663
866
  declare function ToggleGroupItem({ className, children, variant, size, ...props }: Toggle.Props & VariantProps<typeof toggleVariants>): React.JSX.Element;
664
867
 
665
- 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, Calendar, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, 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, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buttonVariants, navigationMenuTriggerStyle, toggleVariants, useCarousel, useSidebar };
868
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionButton, type ActionButtonProps, 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, Calendar, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxContent, ComboboxTrigger, Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, ConfirmMorph, type ConfirmMorphProps, type ConfirmMorphState, ContextMenu, ContextMenuContent, ContextMenuItem, ContextMenuSeparator, ContextMenuTrigger, CopyButton, type CopyButtonProps, 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, ExpandingButtonGroup, type ExpandingButtonGroupOption, type ExpandingButtonGroupProps, Field, FieldDescription, FieldError, FieldLabel, FloatingButtonGroup, type FloatingButtonGroupOption, type FloatingButtonGroupProps, HoverCard, HoverCardContent, HoverCardTrigger, IconMorph, type IconMorphPreset, type IconMorphProps, Input, InputGroup, InputGroupAddon, InputGroupInput, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemMedia, ItemTitle, Kbd, Label, MORPH_PAIRS, 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, SplitButton, type SplitButtonOption, type SplitButtonProps, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buttonVariants, navigationMenuTriggerStyle, toggleVariants, useCarousel, useSidebar };
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { Accordion as Accordion$1 } from '@base-ui/react/accordion';
3
- import * as class_variance_authority_types from 'class-variance-authority/types';
4
3
  import { VariantProps } from 'class-variance-authority';
4
+ import * as class_variance_authority_types from 'class-variance-authority/types';
5
5
  import { AlertDialog as AlertDialog$1 } from '@base-ui/react/alert-dialog';
6
6
  import { Avatar as Avatar$1 } from '@base-ui/react/avatar';
7
7
  import { DayPicker } from 'react-day-picker';
@@ -22,6 +22,7 @@ export { C as Card, a as CardAction, b as CardContent, c as CardDescription, d a
22
22
  import { Tooltip as Tooltip$1 } from '@base-ui/react/tooltip';
23
23
  import { Field as Field$1 } from '@base-ui/react/field';
24
24
  import { OTPInput } from 'input-otp';
25
+ import { LucideIcon } from 'lucide-react';
25
26
  import { Progress as Progress$1 } from '@base-ui/react/progress';
26
27
  import { Radio } from '@base-ui/react/radio';
27
28
  import { RadioGroup as RadioGroup$1 } from '@base-ui/react/radio-group';
@@ -54,17 +55,6 @@ declare function AccordionItem({ className, ...props }: Accordion$1.Item.Props):
54
55
  declare function AccordionTrigger({ className, children, ...props }: Accordion$1.Trigger.Props): React.JSX.Element;
55
56
  declare function AccordionContent({ className, children, ...props }: Accordion$1.Panel.Props): React.JSX.Element;
56
57
 
57
- /**
58
- * shadcn/ui Alert(vendored 源码,按 DSL 契约扩展 success/warning/info 变体;
59
- * 语义色读取 --success/--warning/--info 令牌,见 src/styles.css)
60
- */
61
- declare const alertVariants: (props?: ({
62
- variant?: "default" | "destructive" | "success" | "warning" | "info" | null | undefined;
63
- } & class_variance_authority_types.ClassProp) | undefined) => string;
64
- declare function Alert({ className, variant, ...props }: React.ComponentProps<'div'> & VariantProps<typeof alertVariants>): React.JSX.Element;
65
- declare function AlertTitle({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
66
- declare function AlertDescription({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
67
-
68
58
  /**
69
59
  * shadcn/ui Button(vendored 源码,Tailwind v4 版,Base UI 原语)。
70
60
  * 官方源码:https://ui.shadcn.com/r/styles/base-nova/button.json
@@ -78,6 +68,34 @@ declare function Button({ className, variant, size, asChild, children, ...props
78
68
  asChild?: boolean;
79
69
  }): React.JSX.Element;
80
70
 
71
+ interface ActionButtonProps extends Omit<React.ComponentProps<'button'>, 'children'>, VariantProps<typeof buttonVariants> {
72
+ /** 图标节点(lucide 图标),恒显 */
73
+ icon: React.ReactNode;
74
+ /** 可选文字;缺省时渲染 icon-only 方形按钮(size 缺省回退 icon-sm) */
75
+ label?: React.ReactNode;
76
+ /** 可选 tooltip 文案,提供时悬浮/聚焦显示提示浮层 */
77
+ tooltip?: string;
78
+ }
79
+ /**
80
+ * ActionButton 紧凑工具栏按钮:扩展按钮组件,交互设计参考 arc-library
81
+ * (https://github.com/kuratlielia/arc-library),Tailwind 实现。
82
+ * `buttonVariants` 薄封装:icon + 可选 label,默认 size="sm"(无 label 时
83
+ * 回退 icon-sm 方形);`tooltip` 提供时包裹现有 Tooltip。
84
+ * icon-only 时须传 `aria-label`(缺失时 dev 告警,不抛错)。
85
+ */
86
+ declare function ActionButton({ className, variant, size, icon, label, tooltip, type, ...props }: ActionButtonProps): React.JSX.Element;
87
+
88
+ /**
89
+ * shadcn/ui Alert(vendored 源码,按 DSL 契约扩展 success/warning/info 变体;
90
+ * 语义色读取 --success/--warning/--info 令牌,见 src/styles.css)
91
+ */
92
+ declare const alertVariants: (props?: ({
93
+ variant?: "default" | "destructive" | "success" | "warning" | "info" | null | undefined;
94
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
95
+ declare function Alert({ className, variant, ...props }: React.ComponentProps<'div'> & VariantProps<typeof alertVariants>): React.JSX.Element;
96
+ declare function AlertTitle({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
97
+ declare function AlertDescription({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
98
+
81
99
  /**
82
100
  * shadcn/ui Attachment(vendored 源码,Tailwind v4 版,Base UI 原语)。
83
101
  * 官方源码:https://ui.shadcn.com/r/styles/new-york-v4/attachment.json
@@ -270,6 +288,42 @@ declare function CommandEmpty({ ...props }: React.ComponentProps<typeof Command$
270
288
  declare function CommandGroup({ className, ...props }: React.ComponentProps<typeof Command$1.Group>): React.JSX.Element;
271
289
  declare function CommandItem({ className, ...props }: React.ComponentProps<typeof Command$1.Item>): React.JSX.Element;
272
290
 
291
+ type ConfirmMorphState = 'idle' | 'confirming' | 'pending' | 'success' | 'error';
292
+ interface ConfirmMorphProps extends Omit<React.ComponentProps<'button'>, 'children' | 'onClick'>, VariantProps<typeof buttonVariants> {
293
+ /** idle 段文字 */
294
+ label: React.ReactNode;
295
+ /** confirming 段文字,缺省“确认” */
296
+ confirmLabel?: React.ReactNode;
297
+ /** pending 段可选文字(spinner 恒显) */
298
+ pendingLabel?: React.ReactNode;
299
+ /** success 段文字,缺省“已完成” */
300
+ successLabel?: React.ReactNode;
301
+ /** error 段撤销操作文字,缺省“撤销” */
302
+ undoLabel?: React.ReactNode;
303
+ /** confirming 段按钮变体,默认 destructive */
304
+ confirmVariant?: VariantProps<typeof buttonVariants>['variant'];
305
+ /** confirming 超时未确认自动回 idle 的时长(ms),默认 3000 */
306
+ confirmTimeout?: number;
307
+ /** success 段停留时长(ms),随后回 idle,默认 1500 */
308
+ resetDelay?: number;
309
+ /** 确认回调:返回 Promise 时自动 pending,resolve→success、reject→error */
310
+ onConfirm?: () => void | Promise<unknown>;
311
+ /** error 段撤销回调(点击 error 段按钮触发,随后回 idle) */
312
+ onUndo?: () => void;
313
+ /** 状态流转回调 */
314
+ onStateChange?: (state: ConfirmMorphState) => void;
315
+ }
316
+ /**
317
+ * ConfirmMorph 内联确认按钮:扩展按钮组件,交互设计参考 arc-library
318
+ * (https://github.com/kuratlielia/arc-library),Tailwind 实现。
319
+ * 按钮内状态机 idle → confirming → pending → success / error:
320
+ * confirming 段(默认 destructive)confirmTimeout 超时回 idle;
321
+ * onConfirm 返回 Promise 时自动 pending,resolve→success、reject→error;
322
+ * error 段点击即撤销(undo)回 idle 并触发 onUndo。各段内容在同一
323
+ * grid 单元内堆叠(最宽段定宽、非激活段 opacity-0),状态切换无布局跳动。
324
+ */
325
+ declare function ConfirmMorph({ className, variant, size, label, confirmLabel, pendingLabel, successLabel, undoLabel, confirmVariant, confirmTimeout, resetDelay, onConfirm, onUndo, onStateChange, disabled, type, ...props }: ConfirmMorphProps): React.JSX.Element;
326
+
273
327
  /**
274
328
  * shadcn/ui ContextMenu(vendored 源码,Base UI ContextMenu 原语,
275
329
  * 复用 Menu 的 Portal/Positioner/Popup/Item)。右键触发区域为
@@ -283,6 +337,29 @@ declare function ContextMenuItem({ className, variant, ...props }: ContextMenu$1
283
337
  }): React.JSX.Element;
284
338
  declare function ContextMenuSeparator({ className, ...props }: ContextMenu$1.Separator.Props): React.JSX.Element;
285
339
 
340
+ interface CopyButtonProps extends Omit<React.ComponentProps<'button'>, 'children' | 'value' | 'onCopy'>, VariantProps<typeof buttonVariants> {
341
+ /** 待写入剪贴板的文本 */
342
+ value: string;
343
+ /** 初始态可选文字(图标恒显) */
344
+ label?: React.ReactNode;
345
+ /** copied 态可选文字,缺省沿用 label */
346
+ copiedLabel?: React.ReactNode;
347
+ /** copied 态自动还原延迟(ms),默认 1500 */
348
+ resetDelay?: number;
349
+ /** 写入成功回调,携带 value */
350
+ onCopy?: (value: string) => void;
351
+ /** 剪贴板不可用 / 写入失败回调(不进入 copied 态) */
352
+ onError?: (error: unknown) => void;
353
+ }
354
+ /**
355
+ * CopyButton 复制确认按钮:扩展按钮组件,交互设计参考 arc-library
356
+ * (https://github.com/kuratlielia/arc-library),Tailwind 实现。
357
+ * 点击 → `navigator.clipboard.writeText(value)` → copied 态(IconMorph
358
+ * copy→check + 可选 copiedLabel)→ `resetDelay`(默认 1500ms)后自动还原;
359
+ * 剪贴板不可用或写入失败时触发 `onError`,不进入 copied 态。
360
+ */
361
+ declare function CopyButton({ className, variant, size, value, label, copiedLabel, resetDelay, onCopy, onError, onClick, disabled, type, ...props }: CopyButtonProps): React.JSX.Element;
362
+
286
363
  /**
287
364
  * shadcn/ui Drawer(vendored 源码,vaul 封装——shadcn 官方 Drawer 同源)。
288
365
  * 官方源码:https://ui.shadcn.com/r/styles/new-york-v4/drawer.json
@@ -320,6 +397,72 @@ declare function DropdownMenuSub({ ...props }: Menu.SubmenuRoot.Props): React.JS
320
397
  declare function DropdownMenuSubTrigger({ className, children, ...props }: Menu.SubmenuTrigger.Props): React.JSX.Element;
321
398
  declare function DropdownMenuSubContent({ className, sideOffset, ...props }: Menu.Popup.Props & Pick<Menu.Positioner.Props, 'sideOffset'>): React.JSX.Element;
322
399
 
400
+ interface ExpandingButtonGroupOption {
401
+ /** 语义化值,选中后经 onSelect 抛出 */
402
+ value: string;
403
+ /** 展开后显示的文字 */
404
+ label: React.ReactNode;
405
+ /** 恒显图标节点 */
406
+ icon: React.ReactNode;
407
+ /** 声明后点击进入原地确认态,再次点击才触发 onSelect */
408
+ confirm?: boolean;
409
+ /** 确认态显示的文字,缺省“确认” */
410
+ confirmLabel?: React.ReactNode;
411
+ /** 单项禁用 */
412
+ disabled?: boolean;
413
+ }
414
+ interface ExpandingButtonGroupProps {
415
+ /** 选项列表 */
416
+ options: ExpandingButtonGroupOption[];
417
+ /** 选中回调(confirm 选项需二次点击),携带 option.value */
418
+ onSelect?: (value: string) => void;
419
+ /** 通用:根节点 class(与内置样式合并) */
420
+ className?: string;
421
+ /** 通用:根节点内联样式 */
422
+ style?: React.CSSProperties;
423
+ }
424
+ /**
425
+ * ExpandingButtonGroup 展开式按钮组:扩展按钮组件,交互设计参考
426
+ * arc-library(https://github.com/kuratlielia/arc-library),Tailwind 实现。
427
+ * 紧凑图标按钮组:hover/聚焦的按钮经 grid-template-columns 0fr→1fr
428
+ * 过渡原地展开 label,其余按钮保持图标态让位;声明 `confirm` 的选项
429
+ * 首次点击进入原地确认态,再次点击才触发一次 onSelect(失焦/移出取消
430
+ * 确认态)。按钮为原生 button,键盘可达。
431
+ */
432
+ declare function ExpandingButtonGroup({ options, onSelect, className, style, }: ExpandingButtonGroupProps): React.JSX.Element;
433
+
434
+ interface FloatingButtonGroupOption {
435
+ /** 语义化值,点击后经 onSelect 抛出 */
436
+ value: string;
437
+ /** 可选文字 */
438
+ label?: React.ReactNode;
439
+ /** 可选图标节点 */
440
+ icon?: React.ReactNode;
441
+ /** 单项禁用 */
442
+ disabled?: boolean;
443
+ }
444
+ interface FloatingButtonGroupProps {
445
+ /** 选项列表 */
446
+ options: FloatingButtonGroupOption[];
447
+ /** 受控当前项:提供时共享高亮块恒定位于该项 */
448
+ value?: string;
449
+ /** 点击选项回调,携带 option.value */
450
+ onSelect?: (value: string) => void;
451
+ /** 通用:根节点 class(与内置样式合并) */
452
+ className?: string;
453
+ /** 通用:根节点内联样式 */
454
+ style?: React.CSSProperties;
455
+ }
456
+ /**
457
+ * FloatingButtonGroup 托盘式按钮组:扩展按钮组件,交互设计参考
458
+ * arc-library(https://github.com/kuratlielia/arc-library),Tailwind 实现。
459
+ * 托盘容器内渲染独立按钮,共享高亮块绝对定位,经 ref 测量目标按钮
460
+ * offsetLeft/offsetWidth,以 transform/width 过渡在 hover 与 focus-visible
461
+ * 的按钮间滑动;离开组后淡出(受控 value 提供时高亮恒定位于该项)。
462
+ * jsdom 等无布局环境下测量为 0 时跳过更新(防御,不抛错)。
463
+ */
464
+ declare function FloatingButtonGroup({ options, value, onSelect, className, style, }: FloatingButtonGroupProps): React.JSX.Element;
465
+
323
466
  /**
324
467
  * shadcn/ui HoverCard(vendored 源码,Base UI PreviewCard 原语——
325
468
  * Base UI 对 Radix HoverCard 的对应组件)。
@@ -462,6 +605,34 @@ declare function InputOTPSlot({ index, className, ...props }: React.ComponentPro
462
605
  }): React.JSX.Element;
463
606
  declare function InputOTPSeparator({ ...props }: React.ComponentProps<'div'>): React.JSX.Element;
464
607
 
608
+ /**
609
+ * 预设图标对白名单(lucide-react 静态导入,可 tree-shake)。
610
+ * a/b 为受控两态对应的图标组件;未知名对走占位渲染,不抛错。
611
+ */
612
+ declare const MORPH_PAIRS: Record<string, {
613
+ a: LucideIcon;
614
+ b: LucideIcon;
615
+ }>;
616
+ type IconMorphPreset = keyof typeof MORPH_PAIRS;
617
+ interface IconMorphProps {
618
+ /** 预设图标对名(menu-close / play-pause / copy-check / plus-minus) */
619
+ morph: IconMorphPreset | (string & {});
620
+ /** 受控状态:'a' 显示对中首图标,'b' 显示次图标 */
621
+ state: 'a' | 'b';
622
+ /** 通用:根节点 class(与内置样式合并) */
623
+ className?: string;
624
+ /** 通用:根节点内联样式 */
625
+ style?: React.CSSProperties;
626
+ }
627
+ /**
628
+ * IconMorph 图标形变:扩展按钮组件,交互设计参考 arc-library
629
+ * (https://github.com/kuratlielia/arc-library),Tailwind 实现。
630
+ * 双图层绝对定位堆叠,受控 `state` 切换时一层 rotate+scale+fade 出、
631
+ * 另一层入(transition-all,motion-reduce 降级为无过渡直切);
632
+ * 未知名对渲染占位图标(CircleQuestionMark,标 data-unknown)并 dev 告警。
633
+ */
634
+ declare function IconMorph({ morph, state, className, style }: IconMorphProps): React.JSX.Element;
635
+
465
636
  /**
466
637
  * shadcn/ui Item(vendored 源码,纯组合):
467
638
  * 列表项——media / title+description / actions 三段式排布。
@@ -624,6 +795,35 @@ declare function SliderThumb({ className, ...props }: Slider$1.Thumb.Props): Rea
624
795
  /** shadcn/ui Spinner(vendored 源码,纯 CSS 旋转,无原语依赖) */
625
796
  declare function Spinner({ className, ...props }: React.ComponentProps<'svg'>): React.JSX.Element;
626
797
 
798
+ interface SplitButtonOption {
799
+ /** 语义化值,选中后经 onSelect 抛出 */
800
+ value: string;
801
+ /** 选项文字 */
802
+ label: React.ReactNode;
803
+ /** 可选图标节点 */
804
+ icon?: React.ReactNode;
805
+ /** 单项禁用 */
806
+ disabled?: boolean;
807
+ }
808
+ interface SplitButtonProps extends Omit<React.ComponentProps<'button'>, 'children' | 'onSelect'>, VariantProps<typeof buttonVariants> {
809
+ /** 主操作按钮文字 */
810
+ children?: React.ReactNode;
811
+ /** 备选操作列表 */
812
+ options: SplitButtonOption[];
813
+ /** 选中备选操作回调,携带 option.value */
814
+ onSelect?: (value: string) => void;
815
+ /** 下拉触发按钮的无障碍名 */
816
+ triggerLabel?: string;
817
+ }
818
+ /**
819
+ * SplitButton 分体式按钮:扩展按钮组件,交互设计参考 arc-library
820
+ * (https://github.com/kuratlielia/arc-library),Tailwind 实现。
821
+ * ButtonGroup 相连表面 = 主操作 Button(原生 onClick)+ DropdownMenu
822
+ * (chevron 触发,备选操作经 options 声明、onSelect(value) 语义化抛出);
823
+ * variant/size/disabled 同时作用于两段。
824
+ */
825
+ declare function SplitButton({ className, style, variant, size, disabled, children, options, onSelect, triggerLabel, type, ...props }: SplitButtonProps): React.JSX.Element;
826
+
627
827
  /** shadcn/ui Switch(vendored 源码,Base UI 原语) */
628
828
  declare function Switch({ className, ...props }: Switch$1.Root.Props): React.JSX.Element;
629
829
 
@@ -645,14 +845,17 @@ declare function TableCaption({ className, ...props }: React.ComponentProps<'cap
645
845
  * 官方源码:https://ui.shadcn.com/r/styles/base-nova/tabs.json
646
846
  * Root/List/Tab/Panel 对应原 Radix Root/List/Trigger/Content;激活态属性
647
847
  * 由 `data-[state=active]` 换成官方 `data-active` 自定义变体。
648
- * List 支持 `variant`(default 胶囊 / line 下划线);激活态装饰按
649
- * `group-data-[variant=*]/tabs-list` 分别限定,两种变体互不污染。
848
+ * List 支持 `variant`(default 胶囊 / line 下划线)与 `size`(default h-9 /
849
+ * sm h-8 + 触发器 text-xs,仅压缩胶囊变体,line 行高不变);激活态装饰按
850
+ * `group-data-[variant=*]/tabs-list`、尺寸按 `group-data-[size=*]/tabs-list`
851
+ * 分别限定,互不污染。
650
852
  */
651
853
  declare function Tabs({ className, ...props }: Tabs$1.Root.Props): React.JSX.Element;
652
854
  declare const tabsListVariants: (props?: ({
653
855
  variant?: "line" | "default" | null | undefined;
856
+ size?: "default" | "sm" | null | undefined;
654
857
  } & class_variance_authority_types.ClassProp) | undefined) => string;
655
- declare function TabsList({ className, variant, ...props }: Tabs$1.List.Props & VariantProps<typeof tabsListVariants>): React.JSX.Element;
858
+ declare function TabsList({ className, variant, size, ...props }: Tabs$1.List.Props & VariantProps<typeof tabsListVariants>): React.JSX.Element;
656
859
  declare function TabsTrigger({ className, ...props }: Tabs$1.Tab.Props): React.JSX.Element;
657
860
  declare function TabsContent({ className, ...props }: Tabs$1.Panel.Props): React.JSX.Element;
658
861
 
@@ -662,4 +865,4 @@ declare function Textarea({ className, ...props }: React.ComponentProps<'textare
662
865
  declare function ToggleGroup({ className, variant, size, children, ...props }: ToggleGroup$1.Props & VariantProps<typeof toggleVariants>): React.JSX.Element;
663
866
  declare function ToggleGroupItem({ className, children, variant, size, ...props }: Toggle.Props & VariantProps<typeof toggleVariants>): React.JSX.Element;
664
867
 
665
- 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, Calendar, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, 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, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buttonVariants, navigationMenuTriggerStyle, toggleVariants, useCarousel, useSidebar };
868
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionButton, type ActionButtonProps, 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, Calendar, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxContent, ComboboxTrigger, Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, ConfirmMorph, type ConfirmMorphProps, type ConfirmMorphState, ContextMenu, ContextMenuContent, ContextMenuItem, ContextMenuSeparator, ContextMenuTrigger, CopyButton, type CopyButtonProps, 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, ExpandingButtonGroup, type ExpandingButtonGroupOption, type ExpandingButtonGroupProps, Field, FieldDescription, FieldError, FieldLabel, FloatingButtonGroup, type FloatingButtonGroupOption, type FloatingButtonGroupProps, HoverCard, HoverCardContent, HoverCardTrigger, IconMorph, type IconMorphPreset, type IconMorphProps, Input, InputGroup, InputGroupAddon, InputGroupInput, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemMedia, ItemTitle, Kbd, Label, MORPH_PAIRS, 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, SplitButton, type SplitButtonOption, type SplitButtonProps, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buttonVariants, navigationMenuTriggerStyle, toggleVariants, useCarousel, useSidebar };