@pactor-app/ui 0.1.0 → 1.1.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.
@@ -2,11 +2,39 @@ import * as React from 'react';
2
2
  import { Accordion as Accordion$1 } from '@base-ui/react/accordion';
3
3
  import * as class_variance_authority_types from 'class-variance-authority/types';
4
4
  import { VariantProps } from 'class-variance-authority';
5
- import { Dialog as Dialog$1 } from '@base-ui/react/dialog';
5
+ import { AlertDialog as AlertDialog$1 } from '@base-ui/react/alert-dialog';
6
+ import { Avatar as Avatar$1 } from '@base-ui/react/avatar';
7
+ import { DayPicker } from 'react-day-picker';
8
+ import useEmblaCarousel, { UseEmblaCarouselType } from 'embla-carousel-react';
9
+ import { Checkbox as Checkbox$1 } from '@base-ui/react/checkbox';
10
+ import { Collapsible as Collapsible$1 } from '@base-ui/react/collapsible';
6
11
  import { Popover as Popover$1 } from '@base-ui/react/popover';
12
+ import { Command as Command$1 } from 'cmdk';
13
+ import { ContextMenu as ContextMenu$1 } from '@base-ui/react/context-menu';
14
+ import { Drawer as Drawer$1 } from 'vaul';
15
+ import { Menu } from '@base-ui/react/menu';
16
+ import { PreviewCard } from '@base-ui/react/preview-card';
17
+ import { Menubar as Menubar$1 } from '@base-ui/react/menubar';
18
+ import { NavigationMenu as NavigationMenu$1 } from '@base-ui/react/navigation-menu';
19
+ import { Dialog as Dialog$1 } from '@base-ui/react/dialog';
20
+ import * as _base_ui_react from '@base-ui/react';
21
+ import { Tooltip as Tooltip$1 } from '@base-ui/react/tooltip';
22
+ import { Field as Field$1 } from '@base-ui/react/field';
23
+ import { OTPInput } from 'input-otp';
24
+ import { Progress as Progress$1 } from '@base-ui/react/progress';
25
+ import { Radio } from '@base-ui/react/radio';
26
+ import { RadioGroup as RadioGroup$1 } from '@base-ui/react/radio-group';
27
+ import { Panel as Panel$1, Group, Separator as Separator$1 } from 'react-resizable-panels';
28
+ import { ScrollArea as ScrollArea$1 } from '@base-ui/react/scroll-area';
7
29
  import { Select as Select$1 } from '@base-ui/react/select';
8
- import { Separator as Separator$1 } from '@base-ui/react/separator';
30
+ import { Separator as Separator$2 } from '@base-ui/react/separator';
31
+ import { Slider as Slider$1 } from '@base-ui/react/slider';
32
+ import { Switch as Switch$1 } from '@base-ui/react/switch';
9
33
  import { Tabs as Tabs$1 } from '@base-ui/react/tabs';
34
+ import { t as toggleVariants } from '../typography-DsGdDBc2.cjs';
35
+ export { T as Toggle, a as Typography, b as typographyVariants } from '../typography-DsGdDBc2.cjs';
36
+ import { Toggle } from '@base-ui/react/toggle';
37
+ import { ToggleGroup as ToggleGroup$1 } from '@base-ui/react/toggle-group';
10
38
 
11
39
  /**
12
40
  * shadcn/ui Accordion(vendored 源码,Base UI 原语)。
@@ -37,25 +65,323 @@ declare function Alert({ className, variant, ...props }: React.ComponentProps<'d
37
65
  declare function AlertTitle({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
38
66
  declare function AlertDescription({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
39
67
 
68
+ /**
69
+ * shadcn/ui AlertDialog(vendored 源码,Base UI AlertDialog 原语)。
70
+ * 官方源码:https://ui.shadcn.com/r/styles/base-nova/alert-dialog.json
71
+ * 复用 Dialog 的 Backdrop/Popup/Title/Description/Close,视觉与 Dialog 一致。
72
+ */
73
+ declare function AlertDialog({ ...props }: AlertDialog$1.Root.Props): React.JSX.Element;
74
+ declare function AlertDialogTrigger({ ...props }: AlertDialog$1.Trigger.Props): React.JSX.Element;
75
+ declare function AlertDialogPortal({ ...props }: AlertDialog$1.Portal.Props): React.JSX.Element;
76
+ declare function AlertDialogOverlay({ className, ...props }: AlertDialog$1.Backdrop.Props): React.JSX.Element;
77
+ declare function AlertDialogContent({ className, ...props }: AlertDialog$1.Popup.Props): React.JSX.Element;
78
+ declare function AlertDialogHeader({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
79
+ declare function AlertDialogFooter({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
80
+ declare function AlertDialogTitle({ className, ...props }: AlertDialog$1.Title.Props): React.JSX.Element;
81
+ declare function AlertDialogDescription({ className, ...props }: AlertDialog$1.Description.Props): React.JSX.Element;
82
+ declare function AlertDialogAction({ className, variant, ...props }: AlertDialog$1.Close.Props & {
83
+ variant?: 'default' | 'destructive' | 'outline';
84
+ }): React.JSX.Element;
85
+ declare function AlertDialogCancel({ className, variant, ...props }: AlertDialog$1.Close.Props & {
86
+ variant?: 'default' | 'destructive' | 'outline';
87
+ }): React.JSX.Element;
88
+
89
+ /**
90
+ * shadcn/ui AspectRatio(vendored 源码,纯 CSS `aspect-ratio` 实现,
91
+ * 无原语依赖;Base UI 无对应原语)。
92
+ */
93
+ declare function AspectRatio({ ratio, className, style, ...props }: React.ComponentProps<'div'> & {
94
+ ratio?: number | string;
95
+ }): React.JSX.Element;
96
+
97
+ /** shadcn/ui Avatar(vendored 源码,Base UI 原语) */
98
+ declare function Avatar({ className, ...props }: Avatar$1.Root.Props): React.JSX.Element;
99
+ declare function AvatarImage({ className, ...props }: Avatar$1.Image.Props): React.JSX.Element;
100
+ declare function AvatarFallback({ className, ...props }: Avatar$1.Fallback.Props): React.JSX.Element;
101
+
40
102
  /** shadcn/ui Badge(vendored 源码) */
41
103
  declare const badgeVariants: (props?: ({
42
- variant?: "default" | "destructive" | "secondary" | "outline" | null | undefined;
104
+ variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
43
105
  } & class_variance_authority_types.ClassProp) | undefined) => string;
44
106
  declare function Badge({ className, variant, ...props }: React.ComponentProps<'span'> & VariantProps<typeof badgeVariants>): React.JSX.Element;
45
107
 
108
+ /**
109
+ * shadcn/ui Breadcrumb(vendored 源码,纯语义元素,无原语依赖)。
110
+ * 官方源码:https://ui.shadcn.com/r/styles/base-nova/breadcrumb.json
111
+ * 末项以 BreadcrumbPage(aria-current="page")渲染为纯文本。
112
+ */
113
+ declare function Breadcrumb({ ...props }: React.ComponentProps<'nav'>): React.JSX.Element;
114
+ declare function BreadcrumbList({ className, ...props }: React.ComponentProps<'ol'>): React.JSX.Element;
115
+ declare function BreadcrumbItem({ className, ...props }: React.ComponentProps<'li'>): React.JSX.Element;
116
+ declare function BreadcrumbLink({ className, ...props }: React.ComponentProps<'a'>): React.JSX.Element;
117
+ declare function BreadcrumbPage({ className, ...props }: React.ComponentProps<'span'>): React.JSX.Element;
118
+ declare function BreadcrumbSeparator({ children, className, ...props }: React.ComponentProps<'li'>): React.JSX.Element;
119
+ declare function BreadcrumbEllipsis({ className, ...props }: React.ComponentProps<'span'>): React.JSX.Element;
120
+
46
121
  /**
47
122
  * shadcn/ui Button(vendored 源码,Tailwind v4 版,Base UI 原语)。
48
123
  * 官方源码:https://ui.shadcn.com/r/styles/base-nova/button.json
49
124
  * `asChild` 语义经 Base UI 的 `render` 模式消化(合并 props 到唯一子元素)。
50
125
  */
51
126
  declare const buttonVariants: (props?: ({
52
- variant?: "default" | "destructive" | "link" | "outline" | "secondary" | "ghost" | null | undefined;
127
+ variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
53
128
  size?: "default" | "sm" | "lg" | "icon" | null | undefined;
54
129
  } & class_variance_authority_types.ClassProp) | undefined) => string;
55
130
  declare function Button({ className, variant, size, asChild, children, ...props }: React.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
56
131
  asChild?: boolean;
57
132
  }): React.JSX.Element;
58
133
 
134
+ /**
135
+ * shadcn/ui ButtonGroup(vendored 源码,纯样式组合):
136
+ * 相连按钮组——内部按钮去圆角,首尾保留外侧圆角,相邻边框重叠。
137
+ */
138
+ declare function ButtonGroup({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
139
+
140
+ /**
141
+ * shadcn/ui Calendar(vendored 源码封装,react-day-picker 原语):
142
+ * 以 classNames 覆盖为 shadcn 语义令牌样式;`mode="single"` 受控选择
143
+ * 由 DSL 适配层接入。
144
+ */
145
+ declare function Calendar({ className, classNames, showOutsideDays, ...props }: React.ComponentProps<typeof DayPicker>): React.JSX.Element;
146
+
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))"];
149
+ /** 取第 index 个系列的颜色:优先 colors 覆盖,缺省回退 chart-1..5 令牌 */
150
+ declare function chartColor(index: number, colors?: string[]): string;
151
+ /**
152
+ * shadcn chart 模式容器(vendored 薄封装):固定高度 + 横向自适应
153
+ * (内部为 recharts ResponsiveContainer),子节点为单个图表元素。
154
+ */
155
+ declare function ChartContainer({ className, children, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
156
+
157
+ /**
158
+ * shadcn/ui Carousel(vendored 源码,embla-carousel-react 原语):
159
+ * Carousel 提供 embla 上下文;Content/Item 构成轨道与滑页;
160
+ * Previous/Next 为滚动按钮。
161
+ */
162
+ type CarouselApi = UseEmblaCarouselType[1];
163
+ type UseCarouselParameters = Parameters<typeof useEmblaCarousel>;
164
+ type CarouselOptions = UseCarouselParameters[0];
165
+ type CarouselPlugin = UseCarouselParameters[1];
166
+ interface CarouselProps {
167
+ opts?: CarouselOptions;
168
+ plugins?: CarouselPlugin;
169
+ orientation?: 'horizontal' | 'vertical';
170
+ setApi?: (api: CarouselApi) => void;
171
+ }
172
+ interface CarouselContextProps extends CarouselProps {
173
+ carouselRef: ReturnType<typeof useEmblaCarousel>[0];
174
+ api: ReturnType<typeof useEmblaCarousel>[1];
175
+ scrollPrev: () => void;
176
+ scrollNext: () => void;
177
+ canScrollPrev: boolean;
178
+ canScrollNext: boolean;
179
+ }
180
+ declare function useCarousel(): CarouselContextProps;
181
+ declare function Carousel({ orientation, opts, setApi, plugins, className, children, ...props }: React.ComponentProps<'div'> & CarouselProps): React.JSX.Element;
182
+ declare function CarouselContent({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
183
+ declare function CarouselItem({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
184
+ declare function CarouselPrevious({ className, variant, size, ...props }: React.ComponentProps<typeof Button>): React.JSX.Element;
185
+ declare function CarouselNext({ className, variant, size, ...props }: React.ComponentProps<typeof Button>): React.JSX.Element;
186
+
187
+ /** shadcn/ui Checkbox(vendored 源码,Base UI 原语) */
188
+ declare function Checkbox({ className, ...props }: Checkbox$1.Root.Props): React.JSX.Element;
189
+
190
+ /**
191
+ * shadcn/ui Collapsible(vendored 源码,Base UI Collapsible 原语)。
192
+ * 官方源码:https://ui.shadcn.com/r/styles/base-nova/collapsible.json
193
+ */
194
+ declare function Collapsible({ ...props }: Collapsible$1.Root.Props): React.JSX.Element;
195
+ declare function CollapsibleTrigger({ className, children, ...props }: Collapsible$1.Trigger.Props): React.JSX.Element;
196
+ declare function CollapsibleContent({ className, ...props }: Collapsible$1.Panel.Props): React.JSX.Element;
197
+
198
+ /**
199
+ * shadcn/ui Popover(vendored 源码,Base UI 原语)。
200
+ * 官方源码:https://ui.shadcn.com/r/styles/base-nova/popover.json
201
+ * side/sideOffset/align/anchor 落到 Base UI 的 Positioner(anchor 支持
202
+ * 虚拟元素,供宿主以 getBoundingClientRect 锚定外部触发源);动画类用官方
203
+ * `data-open`/`data-closed` 自定义变体。
204
+ */
205
+ declare function Popover({ ...props }: Popover$1.Root.Props): React.JSX.Element;
206
+ declare function PopoverTrigger({ ...props }: Popover$1.Trigger.Props): React.JSX.Element;
207
+ declare function PopoverContent({ className, align, side, sideOffset, anchor, ...props }: Popover$1.Popup.Props & Pick<Popover$1.Positioner.Props, 'align' | 'side' | 'sideOffset' | 'anchor'>): React.JSX.Element;
208
+
209
+ /**
210
+ * shadcn 风格 Combobox(vendored 组合原语):
211
+ * Popover(受控 open)+ 按钮触发器 + 浮层内容(宿主内置 Command 列表)。
212
+ * 搜索过滤与选项渲染由组合方(DSL 适配层)经 Command 完成。
213
+ */
214
+ declare function Combobox({ open, onOpenChange, children, }: {
215
+ open?: boolean;
216
+ onOpenChange?: (open: boolean) => void;
217
+ children?: React.ReactNode;
218
+ }): React.JSX.Element;
219
+ declare function ComboboxTrigger({ className, children, ...props }: React.ComponentProps<'button'>): React.JSX.Element;
220
+ declare function ComboboxContent({ className, children, ...props }: React.ComponentProps<typeof PopoverContent>): React.JSX.Element;
221
+
222
+ /** shadcn/ui Command(vendored 源码,cmdk 原语):可搜索的命令面板 */
223
+ declare function Command({ className, ...props }: React.ComponentProps<typeof Command$1>): React.JSX.Element;
224
+ declare function CommandInput({ className, ...props }: React.ComponentProps<typeof Command$1.Input>): React.JSX.Element;
225
+ declare function CommandList({ className, ...props }: React.ComponentProps<typeof Command$1.List>): React.JSX.Element;
226
+ declare function CommandEmpty({ ...props }: React.ComponentProps<typeof Command$1.Empty>): React.JSX.Element;
227
+ declare function CommandGroup({ className, ...props }: React.ComponentProps<typeof Command$1.Group>): React.JSX.Element;
228
+ declare function CommandItem({ className, ...props }: React.ComponentProps<typeof Command$1.Item>): React.JSX.Element;
229
+
230
+ /**
231
+ * shadcn/ui ContextMenu(vendored 源码,Base UI ContextMenu 原语,
232
+ * 复用 Menu 的 Portal/Positioner/Popup/Item)。右键触发区域为
233
+ * ContextMenuTrigger;动画类用官方 `data-open`/`data-closed` 自定义变体。
234
+ */
235
+ declare function ContextMenu({ ...props }: ContextMenu$1.Root.Props): React.JSX.Element;
236
+ declare function ContextMenuTrigger({ ...props }: ContextMenu$1.Trigger.Props): React.JSX.Element;
237
+ declare function ContextMenuContent({ className, ...props }: ContextMenu$1.Popup.Props): React.JSX.Element;
238
+ declare function ContextMenuItem({ className, variant, ...props }: ContextMenu$1.Item.Props & {
239
+ variant?: 'default' | 'destructive';
240
+ }): React.JSX.Element;
241
+ declare function ContextMenuSeparator({ className, ...props }: ContextMenu$1.Separator.Props): React.JSX.Element;
242
+
243
+ /**
244
+ * shadcn/ui Drawer(vendored 源码,vaul 封装——shadcn 官方 Drawer 同源)。
245
+ * 官方源码:https://ui.shadcn.com/r/styles/new-york-v4/drawer.json
246
+ * placement 语义映射 vaul `direction`(left/right/top/bottom),
247
+ * 滑入动画由 vaul 内联 transform + data-[vaul-drawer-direction=*] 定位类完成。
248
+ */
249
+ declare function Drawer({ ...props }: React.ComponentProps<typeof Drawer$1.Root>): React.JSX.Element;
250
+ declare function DrawerTrigger({ ...props }: React.ComponentProps<typeof Drawer$1.Trigger>): React.JSX.Element;
251
+ declare function DrawerPortal({ ...props }: React.ComponentProps<typeof Drawer$1.Portal>): React.JSX.Element;
252
+ declare function DrawerClose({ ...props }: React.ComponentProps<typeof Drawer$1.Close>): React.JSX.Element;
253
+ declare function DrawerOverlay({ className, ...props }: React.ComponentProps<typeof Drawer$1.Overlay>): React.JSX.Element;
254
+ declare function DrawerContent({ className, children, ...props }: React.ComponentProps<typeof Drawer$1.Content>): React.JSX.Element;
255
+ declare function DrawerHeader({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
256
+ declare function DrawerFooter({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
257
+ declare function DrawerTitle({ className, ...props }: React.ComponentProps<typeof Drawer$1.Title>): React.JSX.Element;
258
+ declare function DrawerDescription({ className, ...props }: React.ComponentProps<typeof Drawer$1.Description>): React.JSX.Element;
259
+
260
+ /**
261
+ * shadcn/ui DropdownMenu(vendored 源码,Base UI Menu 原语)。
262
+ * 官方源码:https://ui.shadcn.com/r/styles/base-nova/dropdown-menu.json
263
+ * Radix Root/Portal/Content/Item → Base UI Root/Portal+Positioner+Popup/Item;
264
+ * 动画类用官方 `data-open`/`data-closed` 自定义变体。
265
+ */
266
+ declare function DropdownMenu({ ...props }: Menu.Root.Props): React.JSX.Element;
267
+ declare function DropdownMenuTrigger({ ...props }: Menu.Trigger.Props): React.JSX.Element;
268
+ declare function DropdownMenuContent({ className, align, side, sideOffset, ...props }: Menu.Popup.Props & Pick<Menu.Positioner.Props, 'align' | 'side' | 'sideOffset'>): React.JSX.Element;
269
+ declare function DropdownMenuItem({ className, variant, ...props }: Menu.Item.Props & {
270
+ variant?: 'default' | 'destructive';
271
+ }): React.JSX.Element;
272
+ declare function DropdownMenuSeparator({ className, ...props }: Menu.Separator.Props): React.JSX.Element;
273
+ declare function DropdownMenuSub({ ...props }: Menu.SubmenuRoot.Props): React.JSX.Element;
274
+ declare function DropdownMenuSubTrigger({ className, children, ...props }: Menu.SubmenuTrigger.Props): React.JSX.Element;
275
+ declare function DropdownMenuSubContent({ className, sideOffset, ...props }: Menu.Popup.Props & Pick<Menu.Positioner.Props, 'sideOffset'>): React.JSX.Element;
276
+
277
+ /**
278
+ * shadcn/ui HoverCard(vendored 源码,Base UI PreviewCard 原语——
279
+ * Base UI 对 Radix HoverCard 的对应组件)。
280
+ * 官方源码:https://ui.shadcn.com/r/styles/base-nova/hover-card.json
281
+ */
282
+ declare function HoverCard({ ...props }: PreviewCard.Root.Props): React.JSX.Element;
283
+ declare function HoverCardTrigger({ ...props }: PreviewCard.Trigger.Props): React.JSX.Element;
284
+ declare function HoverCardContent({ className, align, side, sideOffset, ...props }: PreviewCard.Popup.Props & Pick<PreviewCard.Positioner.Props, 'align' | 'side' | 'sideOffset'>): React.JSX.Element;
285
+
286
+ /**
287
+ * shadcn/ui Menubar(vendored 源码,Base UI Menubar + Menu 原语)。
288
+ * 官方源码:https://ui.shadcn.com/r/styles/base-nova/menubar.json
289
+ * Menubar 为水平容器,每个 MenubarMenu 是一个 Menu.Root。
290
+ */
291
+ declare function Menubar({ className, ...props }: Menubar$1.Props): React.JSX.Element;
292
+ declare function MenubarMenu({ ...props }: Menu.Root.Props): React.JSX.Element;
293
+ declare function MenubarTrigger({ className, ...props }: Menu.Trigger.Props): React.JSX.Element;
294
+ declare function MenubarContent({ className, align, side, sideOffset, ...props }: Menu.Popup.Props & Pick<Menu.Positioner.Props, 'align' | 'side' | 'sideOffset'>): React.JSX.Element;
295
+ declare function MenubarItem({ className, variant, ...props }: Menu.Item.Props & {
296
+ variant?: 'default' | 'destructive';
297
+ }): React.JSX.Element;
298
+ declare function MenubarSeparator({ className, ...props }: Menu.Separator.Props): React.JSX.Element;
299
+
300
+ /**
301
+ * shadcn/ui NavigationMenu(vendored 源码,Base UI NavigationMenu 原语)。
302
+ * 官方源码:https://ui.shadcn.com/r/styles/base-nova/navigation-menu.json
303
+ * Root 渲染 <nav>,含子菜单的 Item 经 Trigger 展开 Content(Viewport 呈现)。
304
+ */
305
+ declare function NavigationMenu({ className, children, ...props }: NavigationMenu$1.Root.Props): React.JSX.Element;
306
+ declare function NavigationMenuList({ className, ...props }: NavigationMenu$1.List.Props): React.JSX.Element;
307
+ declare function NavigationMenuItem({ className, ...props }: NavigationMenu$1.Item.Props): React.JSX.Element;
308
+ declare const navigationMenuTriggerStyle: (props?: class_variance_authority_types.ClassProp | undefined) => string;
309
+ declare function NavigationMenuTrigger({ className, children, ...props }: NavigationMenu$1.Trigger.Props): React.JSX.Element;
310
+ declare function NavigationMenuContent({ className, ...props }: NavigationMenu$1.Content.Props): React.JSX.Element;
311
+ declare function NavigationMenuViewport({ className }: {
312
+ className?: string;
313
+ }): React.JSX.Element;
314
+ declare function NavigationMenuLink({ className, ...props }: NavigationMenu$1.Link.Props): React.JSX.Element;
315
+
316
+ /**
317
+ * shadcn/ui Pagination(vendored 源码,纯语义元素 + buttonVariants,无原语依赖)。
318
+ * 官方源码:https://ui.shadcn.com/r/styles/base-nova/pagination.json
319
+ */
320
+ declare function Pagination({ className, ...props }: React.ComponentProps<'nav'>): React.JSX.Element;
321
+ declare function PaginationContent({ className, ...props }: React.ComponentProps<'ul'>): React.JSX.Element;
322
+ declare function PaginationItem({ ...props }: React.ComponentProps<'li'>): React.JSX.Element;
323
+ type PaginationLinkProps = {
324
+ isActive?: boolean;
325
+ } & Pick<React.ComponentProps<'button'>, 'disabled'> & React.ComponentProps<'a'>;
326
+ declare function PaginationLink({ className, isActive, disabled, ...props }: PaginationLinkProps): React.JSX.Element;
327
+ declare function PaginationPrevious({ className, ...props }: React.ComponentProps<typeof PaginationLink>): React.JSX.Element;
328
+ declare function PaginationNext({ className, ...props }: React.ComponentProps<typeof PaginationLink>): React.JSX.Element;
329
+ declare function PaginationEllipsis({ className, ...props }: React.ComponentProps<'span'>): React.JSX.Element;
330
+
331
+ /**
332
+ * shadcn/ui Sheet(vendored 源码,Base UI Dialog 原语 + side 变体)。
333
+ * 官方源码:https://ui.shadcn.com/r/styles/base-nova/sheet.json
334
+ * shadcn Sheet 与 Dialog 同源(Radix Dialog),此处同样基于 vendored
335
+ * Dialog 原语,以 cva side 变体给出四边滑入定位,与 OverlayHost 的
336
+ * modal 视觉一致(design D4)。
337
+ */
338
+ declare function Sheet({ ...props }: Dialog$1.Root.Props): React.JSX.Element;
339
+ declare function SheetTrigger({ ...props }: Dialog$1.Trigger.Props): React.JSX.Element;
340
+ declare function SheetClose({ ...props }: Dialog$1.Close.Props): React.JSX.Element;
341
+ declare function SheetPortal({ ...props }: Dialog$1.Portal.Props): React.JSX.Element;
342
+ declare function SheetOverlay({ className, ...props }: Dialog$1.Backdrop.Props): React.JSX.Element;
343
+ declare const sheetVariants: (props?: ({
344
+ side?: "left" | "right" | "bottom" | "top" | null | undefined;
345
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
346
+ declare function SheetContent({ className, children, side, ...props }: Dialog$1.Popup.Props & VariantProps<typeof sheetVariants>): React.JSX.Element;
347
+ declare function SheetHeader({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
348
+ declare function SheetFooter({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
349
+ declare function SheetTitle({ className, ...props }: Dialog$1.Title.Props): React.JSX.Element;
350
+ declare function SheetDescription({ className, ...props }: Dialog$1.Description.Props): React.JSX.Element;
351
+
352
+ /**
353
+ * shadcn/ui Sonner 等价物(vendored 封装,Base UI Toast 原语):
354
+ * 模块级共享 ToastManager + Toaster 挂载点 + 命令式 `toast()` API。
355
+ * variant(success/error/info)落在 ToastObject.type 上,经语义令牌
356
+ * 色条区分(与 InteractionProvider 的 message 四态视觉同源)。
357
+ */
358
+ type ToastVariant = 'success' | 'error' | 'info';
359
+ interface ToastOptions {
360
+ /** 辅助说明文案(Sonner 风格 description) */
361
+ description?: unknown;
362
+ /** 语义类型,缺省 info */
363
+ variant?: ToastVariant;
364
+ }
365
+ /** 模块级共享 ToastManager:Toaster 挂载点与命令式 API 共用同一实例 */
366
+ declare const toastManager: _base_ui_react.ToastManager<any>;
367
+ /** 命令式 toast 调用(DSL 动作层入口的最终落点) */
368
+ declare function toast(message: unknown, options?: ToastOptions): string;
369
+ /** Sonner 挂载点:渲染共享 manager 的 Toast Provider + Viewport */
370
+ declare function Toaster({ className }: {
371
+ className?: string;
372
+ }): React.JSX.Element;
373
+
374
+ /**
375
+ * shadcn/ui Tooltip(vendored 源码,Base UI Tooltip 原语)。
376
+ * 官方源码:https://ui.shadcn.com/r/styles/base-nova/tooltip.json
377
+ * Radix Provider/Root/Trigger/Content → Base UI Provider/Root/Trigger/
378
+ * Portal+Positioner+Popup;动画类用官方 `data-open`/`data-closed` 变体。
379
+ */
380
+ declare function TooltipProvider({ delay, ...props }: Tooltip$1.Provider.Props): React.JSX.Element;
381
+ declare function Tooltip({ ...props }: Tooltip$1.Root.Props): React.JSX.Element;
382
+ declare function TooltipTrigger({ ...props }: Tooltip$1.Trigger.Props): React.JSX.Element;
383
+ declare function TooltipContent({ className, side, sideOffset, align, children, ...props }: Tooltip$1.Popup.Props & Pick<Tooltip$1.Positioner.Props, 'align' | 'side' | 'sideOffset'>): React.JSX.Element;
384
+
59
385
  /** shadcn/ui Card(vendored 源码) */
60
386
  declare function Card({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
61
387
  declare function CardHeader({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
@@ -84,9 +410,57 @@ declare function DialogFooter({ className, ...props }: React.ComponentProps<'div
84
410
  declare function DialogTitle({ className, ...props }: Dialog$1.Title.Props): React.JSX.Element;
85
411
  declare function DialogDescription({ className, ...props }: Dialog$1.Description.Props): React.JSX.Element;
86
412
 
413
+ /** shadcn/ui Empty(vendored 源码,纯组合组件,无原语依赖) */
414
+ declare function Empty({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
415
+ declare function EmptyHeader({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
416
+ declare function EmptyTitle({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
417
+ declare function EmptyDescription({ className, ...props }: React.ComponentProps<'p'>): React.JSX.Element;
418
+ declare function EmptyContent({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
419
+
420
+ /** shadcn 风格 Field(Base UI Field 封装):表单项容器原语 */
421
+ declare function Field({ className, ...props }: Field$1.Root.Props): React.JSX.Element;
422
+ declare function FieldLabel({ className, ...props }: Field$1.Label.Props): React.JSX.Element;
423
+ declare function FieldDescription({ className, ...props }: Field$1.Description.Props): React.JSX.Element;
424
+ declare function FieldError({ className, ...props }: Field$1.Error.Props): React.JSX.Element;
425
+
87
426
  /** shadcn/ui Input(vendored 源码,Tailwind v4 版) */
88
427
  declare function Input({ className, type, ...props }: React.ComponentProps<'input'>): React.JSX.Element;
89
428
 
429
+ /**
430
+ * shadcn/ui InputGroup(vendored 源码封装,纯组合):
431
+ * 输入框与前后缀 addon(文本/按钮)组合为一体。InputGroupAddon 的
432
+ * `align` 控制前后缀位置;内部 Input 去边框与焦点环。
433
+ */
434
+ declare function InputGroup({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
435
+ declare function InputGroupAddon({ className, align, ...props }: React.ComponentProps<'div'> & {
436
+ align?: 'inline-start' | 'inline-end';
437
+ }): React.JSX.Element;
438
+ declare function InputGroupInput({ className, ...props }: React.ComponentProps<'input'>): React.JSX.Element;
439
+
440
+ /** shadcn/ui InputOTP(vendored 源码,input-otp 原语):分段一次性密码输入 */
441
+ declare function InputOTP({ className, containerClassName, ...props }: React.ComponentProps<typeof OTPInput> & {
442
+ containerClassName?: string;
443
+ }): React.JSX.Element;
444
+ declare function InputOTPGroup({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
445
+ declare function InputOTPSlot({ index, className, ...props }: React.ComponentProps<'div'> & {
446
+ index: number;
447
+ }): React.JSX.Element;
448
+ declare function InputOTPSeparator({ ...props }: React.ComponentProps<'div'>): React.JSX.Element;
449
+
450
+ /**
451
+ * shadcn/ui Item(vendored 源码,纯组合):
452
+ * 列表项——media / title+description / actions 三段式排布。
453
+ */
454
+ declare function Item({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
455
+ declare function ItemMedia({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
456
+ declare function ItemContent({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
457
+ declare function ItemTitle({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
458
+ declare function ItemDescription({ className, ...props }: React.ComponentProps<'p'>): React.JSX.Element;
459
+ declare function ItemActions({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
460
+
461
+ /** shadcn/ui Kbd(vendored 源码,纯样式组件,无原语依赖) */
462
+ declare function Kbd({ className, ...props }: React.ComponentProps<'kbd'>): React.JSX.Element;
463
+
90
464
  /**
91
465
  * shadcn/ui Label(vendored 源码)。
92
466
  * Base UI 无独立 Label 原语(官方 base 版直接渲染原生 `<label>`),
@@ -94,16 +468,28 @@ declare function Input({ className, type, ...props }: React.ComponentProps<'inpu
94
468
  */
95
469
  declare function Label({ className, ...props }: React.ComponentProps<'label'>): React.JSX.Element;
96
470
 
471
+ /** shadcn/ui Progress(vendored 源码,Base UI 原语) */
472
+ declare function Progress({ className, ...props }: Progress$1.Root.Props): React.JSX.Element;
473
+ declare function ProgressTrack({ className, ...props }: Progress$1.Track.Props): React.JSX.Element;
474
+ declare function ProgressIndicator({ className, ...props }: Progress$1.Indicator.Props): React.JSX.Element;
475
+
476
+ /** shadcn/ui RadioGroup(vendored 源码,Base UI 原语) */
477
+ declare function RadioGroup<Value>({ className, ...props }: RadioGroup$1.Props<Value>): React.JSX.Element;
478
+ declare function RadioGroupItem<Value>({ className, ...props }: Radio.Root.Props<Value>): React.JSX.Element;
479
+
97
480
  /**
98
- * shadcn/ui Popover(vendored 源码,Base UI 原语)。
99
- * 官方源码:https://ui.shadcn.com/r/styles/base-nova/popover.json
100
- * side/sideOffset/align/anchor 落到 Base UI 的 Positioner(anchor 支持
101
- * 虚拟元素,供宿主以 getBoundingClientRect 锚定外部触发源);动画类用官方
102
- * `data-open`/`data-closed` 自定义变体。
481
+ * shadcn/ui Resizable(vendored 源码封装,react-resizable-panels 原语):
482
+ * PanelGroup(direction→orientation)+ Panel + ResizableHandle(带拖拽手柄)。
103
483
  */
104
- declare function Popover({ ...props }: Popover$1.Root.Props): React.JSX.Element;
105
- declare function PopoverTrigger({ ...props }: Popover$1.Trigger.Props): React.JSX.Element;
106
- declare function PopoverContent({ className, align, side, sideOffset, anchor, ...props }: Popover$1.Popup.Props & Pick<Popover$1.Positioner.Props, 'align' | 'side' | 'sideOffset' | 'anchor'>): React.JSX.Element;
484
+ declare function PanelGroup({ className, ...props }: React.ComponentProps<typeof Group>): React.JSX.Element;
485
+ declare function Panel({ ...props }: React.ComponentProps<typeof Panel$1>): React.JSX.Element;
486
+ declare function ResizableHandle({ withHandle, className, ...props }: React.ComponentProps<typeof Separator$1> & {
487
+ withHandle?: boolean;
488
+ }): React.JSX.Element;
489
+
490
+ /** shadcn/ui ScrollArea(vendored 源码,Base UI 原语):自定义滚动条容器 */
491
+ declare function ScrollArea({ className, children, ...props }: ScrollArea$1.Root.Props): React.JSX.Element;
492
+ declare function ScrollBar({ className, orientation, ...props }: ScrollArea$1.Scrollbar.Props): React.JSX.Element;
107
493
 
108
494
  /**
109
495
  * shadcn/ui Select(vendored 源码,Base UI 原语)。
@@ -131,7 +517,7 @@ declare function SelectScrollDownButton({ className, ...props }: Select$1.Scroll
131
517
  * Base UI Separator 无 `decorative` prop(始终为可访问的 separator 角色),
132
518
  * 该 prop 仅为保持导出表面而保留、不再透传。
133
519
  */
134
- declare function Separator({ className, orientation, decorative: _decorative, ...props }: Omit<Separator$1.Props, 'orientation'> & {
520
+ declare function Separator({ className, orientation, decorative: _decorative, ...props }: Omit<Separator$2.Props, 'orientation'> & {
135
521
  orientation?: 'horizontal' | 'vertical';
136
522
  decorative?: boolean;
137
523
  }): React.JSX.Element;
@@ -139,6 +525,19 @@ declare function Separator({ className, orientation, decorative: _decorative, ..
139
525
  /** shadcn/ui Skeleton(vendored 源码) */
140
526
  declare function Skeleton({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
141
527
 
528
+ /** shadcn/ui Slider(vendored 源码,Base UI 原语;单值滑杆形态) */
529
+ declare function Slider({ className, ...props }: Slider$1.Root.Props<number>): React.JSX.Element;
530
+ declare function SliderControl({ className, ...props }: Slider$1.Control.Props): React.JSX.Element;
531
+ declare function SliderTrack({ className, ...props }: Slider$1.Track.Props): React.JSX.Element;
532
+ declare function SliderIndicator({ className, ...props }: Slider$1.Indicator.Props): React.JSX.Element;
533
+ declare function SliderThumb({ className, ...props }: Slider$1.Thumb.Props): React.JSX.Element;
534
+
535
+ /** shadcn/ui Spinner(vendored 源码,纯 CSS 旋转,无原语依赖) */
536
+ declare function Spinner({ className, ...props }: React.ComponentProps<'svg'>): React.JSX.Element;
537
+
538
+ /** shadcn/ui Switch(vendored 源码,Base UI 原语) */
539
+ declare function Switch({ className, ...props }: Switch$1.Root.Props): React.JSX.Element;
540
+
142
541
  /** shadcn/ui Table(vendored 源码) */
143
542
  declare function Table({ className, ...props }: React.ComponentProps<'table'>): React.JSX.Element;
144
543
  declare function TableHeader({ className, ...props }: React.ComponentProps<'thead'>): React.JSX.Element;
@@ -163,4 +562,7 @@ declare function TabsContent({ className, ...props }: Tabs$1.Panel.Props): React
163
562
  /** shadcn/ui Textarea(vendored 源码,Tailwind v4 版) */
164
563
  declare function Textarea({ className, ...props }: React.ComponentProps<'textarea'>): React.JSX.Element;
165
564
 
166
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertTitle, Badge, Button, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Input, Label, Popover, PopoverContent, PopoverTrigger, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Skeleton, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, badgeVariants, buttonVariants };
565
+ declare function ToggleGroup({ className, variant, size, children, ...props }: ToggleGroup$1.Props & VariantProps<typeof toggleVariants>): React.JSX.Element;
566
+ declare function ToggleGroupItem({ className, children, variant, size, ...props }: Toggle.Props & VariantProps<typeof toggleVariants>): React.JSX.Element;
567
+
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 };