@yuhuanowo/yunui 0.2.12 → 0.2.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -153,10 +153,11 @@ declare function Sheet({ open, onClose, children, title, mobileOnly }: SheetProp
153
153
 
154
154
  interface CheckboxProps {
155
155
  /** Whether the box is checked. `"indeterminate"` shows a dash — for a
156
- * select-all that's only partially selected. */
157
- checked: boolean | "indeterminate";
158
- /** Called with the next checked state when toggled (indeterminate → checked). */
159
- onCheckedChange: (checked: boolean) => void;
156
+ * select-all that's only partially selected. Defaults to `false`. */
157
+ checked?: boolean | "indeterminate";
158
+ /** Called with the next checked state when toggled (indeterminate → checked).
159
+ * Optional — omit for a read-only/display checkbox (it won't toggle). */
160
+ onCheckedChange?: (checked: boolean) => void;
160
161
  /** Disable interaction and dim the control. */
161
162
  disabled?: boolean;
162
163
  className?: string;
@@ -313,6 +314,9 @@ interface GridProps extends React$1.HTMLAttributes<HTMLElement> {
313
314
  align?: Align;
314
315
  /** Padding on all sides, on the spacing scale. */
315
316
  padding?: SpacingScale;
317
+ /** Stack into fewer columns on small screens (mobile-first ramp) instead of
318
+ * a literal `grid-cols-N` at every width. @defaultValue true */
319
+ responsive?: boolean;
316
320
  /** Element/tag to render as. @defaultValue "div" */
317
321
  as?: React$1.ElementType;
318
322
  }
@@ -558,6 +562,21 @@ interface StatusIndicatorProps extends React$1.HTMLAttributes<HTMLSpanElement> {
558
562
  }
559
563
  /** A small colored status dot with an optional label (e.g. provider online/offline). */
560
564
  declare function StatusIndicator({ status, pulse, className, children, ...props }: StatusIndicatorProps): React$1.JSX.Element;
565
+ type InlineStatusKind = "pending" | "processing" | "completed" | "failed";
566
+ interface InlineStatusProps {
567
+ /** Job phase — drives the icon, color and whether it spins. */
568
+ status: InlineStatusKind;
569
+ /** The label for this status (host-supplied; no bundled copy). */
570
+ label?: React$1.ReactNode;
571
+ /** When in-progress and > 0, the percent replaces the label. */
572
+ progress?: number;
573
+ /** Icon size in px. */
574
+ size?: number;
575
+ className?: string;
576
+ }
577
+ /** A compact inline async-job status: a (spinning) icon plus a label or percent.
578
+ * For a presence dot use `StatusIndicator`; for an approval pill, `StatusBadge`. */
579
+ declare function InlineStatus({ status, label, progress, size, className }: InlineStatusProps): React$1.JSX.Element;
561
580
  /** Inline `<code>` styling for code spans in prose or chat. Use `Kbd` for keys. */
562
581
  declare function InlineCode({ className, ...props }: React$1.HTMLAttributes<HTMLElement>): React$1.JSX.Element;
563
582
  interface Step {
@@ -1073,4 +1092,4 @@ declare function readTheme(el?: HTMLElement | null): YunUITheme;
1073
1092
  */
1074
1093
  declare function useYunUITheme(defaults?: YunUITheme): [YunUITheme, (patch: YunUITheme) => void];
1075
1094
 
1076
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AnimatedNumber, type AnimatedNumberProps, Avatar, AvatarFallback, AvatarGroup, AvatarImage, Badge, BentoCard, BentoGrid, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Card, Checkbox, type CheckboxProps, Collapsible, CollapsibleContent, type CollapsibleContentProps, type CollapsibleProps, CollapsibleTrigger, type CollapsibleTriggerProps, Column, Combobox, type ComboboxOption, ConfirmModal, type ConfirmModalVariant, CustomSelect, DeleteConfirmModal, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, Flex, type FlexProps, Grid, type GridCount, type GridProps, IconButton, InlineCode, Input, Kbd, Label, Marquee, Modal, MotionDiv, MotionSpan, type NavTab, NavTabs, NumberInput, PageLoader, Pagination, type PaginationProps, PasswordInput, Popover, PopoverClose, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, RegenerateConfirmModal, Row, SearchInput, type SegmentedOption, SegmentedSelect, Select, SelectContent, SelectGroup, SelectItem, type SelectOption, SelectTrigger, SelectValue, Separator, Sheet, ShinyButton, Skeleton, Slider, type SpacingScale, Spinner, Stack, StatusIndicator, Steps, Switch, type SwitchProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tag, TableBody as Tbody, TableCell as Td, Textarea, TableFooter as Tfoot, TableHead as Th, TableHeader as Thead, ThemeToggle, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TableRow as Tr, YUNUI_PALETTES, type YunUIAccentSource, type YunUIColorScheme, type YunUIPalette, type YunUISolid, type YunUISurface, type YunUITheme, applyTheme, cn, fadeIn, readTheme, staggerContainer, staggerItem, toast, useBodyScrollLock, useEscapeKey, useFocusTrap, useModalBehavior, useYunUITheme };
1095
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AnimatedNumber, type AnimatedNumberProps, Avatar, AvatarFallback, AvatarGroup, AvatarImage, Badge, BentoCard, BentoGrid, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Card, Checkbox, type CheckboxProps, Collapsible, CollapsibleContent, type CollapsibleContentProps, type CollapsibleProps, CollapsibleTrigger, type CollapsibleTriggerProps, Column, Combobox, type ComboboxOption, ConfirmModal, type ConfirmModalVariant, CustomSelect, DeleteConfirmModal, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, Flex, type FlexProps, Grid, type GridCount, type GridProps, IconButton, InlineCode, InlineStatus, type InlineStatusKind, Input, Kbd, Label, Marquee, Modal, MotionDiv, MotionSpan, type NavTab, NavTabs, NumberInput, PageLoader, Pagination, type PaginationProps, PasswordInput, Popover, PopoverClose, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, RegenerateConfirmModal, Row, SearchInput, type SegmentedOption, SegmentedSelect, Select, SelectContent, SelectGroup, SelectItem, type SelectOption, SelectTrigger, SelectValue, Separator, Sheet, ShinyButton, Skeleton, Slider, type SpacingScale, Spinner, Stack, StatusIndicator, Steps, Switch, type SwitchProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tag, TableBody as Tbody, TableCell as Td, Textarea, TableFooter as Tfoot, TableHead as Th, TableHeader as Thead, ThemeToggle, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TableRow as Tr, YUNUI_PALETTES, type YunUIAccentSource, type YunUIColorScheme, type YunUIPalette, type YunUISolid, type YunUISurface, type YunUITheme, applyTheme, cn, fadeIn, readTheme, staggerContainer, staggerItem, toast, useBodyScrollLock, useEscapeKey, useFocusTrap, useModalBehavior, useYunUITheme };
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AnimatedNumber, Avatar, AvatarFallback, AvatarGroup, AvatarImage, Badge, BentoCard, BentoGrid, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Card, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Column, Combobox, ConfirmModal, CustomSelect, DeleteConfirmModal, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, Flex, Grid, IconButton, InlineCode, Input, Kbd, Label, Marquee, Modal, MotionDiv, MotionSpan, NavTabs, NumberInput, PageLoader, Pagination, PasswordInput, Popover, PopoverClose, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, RegenerateConfirmModal, Row, SearchInput, SegmentedSelect, Select, SelectContent, SelectGroup, SelectItem, SelectTrigger, SelectValue, Separator, Sheet, ShinyButton, Skeleton, Slider, Spinner, Stack, StatusIndicator, Steps, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tag, TableBody as Tbody, TableCell as Td, Textarea, TableFooter as Tfoot, TableHead as Th, TableHeader as Thead, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TableRow as Tr, YUNUI_PALETTES, applyTheme, fadeIn, readTheme, staggerContainer, staggerItem, toast, useBodyScrollLock, useEscapeKey, useFocusTrap, useModalBehavior, useYunUITheme } from './chunk-65XAR7FY.js';
3
- export { ThemeToggle, cn } from './chunk-TFZKMJGF.js';
2
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AnimatedNumber, Avatar, AvatarFallback, AvatarGroup, AvatarImage, Badge, BentoCard, BentoGrid, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Card, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Column, Combobox, ConfirmModal, CustomSelect, DeleteConfirmModal, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, Flex, Grid, IconButton, InlineCode, InlineStatus, Input, Kbd, Label, Marquee, Modal, MotionDiv, MotionSpan, NavTabs, NumberInput, PageLoader, Pagination, PasswordInput, Popover, PopoverClose, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, RegenerateConfirmModal, Row, SearchInput, SegmentedSelect, Select, SelectContent, SelectGroup, SelectItem, SelectTrigger, SelectValue, Separator, Sheet, ShinyButton, Skeleton, Slider, Spinner, Stack, StatusIndicator, Steps, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tag, TableBody as Tbody, TableCell as Td, Textarea, TableFooter as Tfoot, TableHead as Th, TableHeader as Thead, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TableRow as Tr, YUNUI_PALETTES, applyTheme, fadeIn, readTheme, staggerContainer, staggerItem, toast, useBodyScrollLock, useEscapeKey, useFocusTrap, useModalBehavior, useYunUITheme } from './chunk-VXFEANVX.js';
3
+ export { ThemeToggle, cn } from './chunk-GHO4RCDR.js';
4
4
  import './chunk-U2LNRVMI.js';
5
5
  //# sourceMappingURL=index.js.map
6
6
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
1
  import * as React$1 from 'react';
2
- import React__default, { ElementType, ReactNode } from 'react';
2
+ import React__default, { ReactNode, ElementType } from 'react';
3
3
  export { F as Footer, a as FooterLink, b as FooterProps, c as FooterSection, d as FooterSocial } from './footer-BoFu7Wqq.js';
4
4
 
5
5
  declare function BackgroundEffects(): React$1.JSX.Element;
@@ -117,6 +117,27 @@ interface BlogPaginationProps {
117
117
  }
118
118
  declare function BlogPagination({ currentPage, totalPages, onPageChange, labels, }: BlogPaginationProps): React$1.JSX.Element | null;
119
119
 
120
+ interface SimplePaginationProps {
121
+ /** 1-indexed current page, shown in the centre indicator. */
122
+ currentPage: number;
123
+ /** Whether a previous page exists. Defaults to `currentPage > 1`. */
124
+ hasPrevious?: boolean;
125
+ /** Whether a next page exists — cursor-style, for lists with no known total. */
126
+ hasNext: boolean;
127
+ onPrevious: () => void;
128
+ onNext: () => void;
129
+ /** Localized labels. `page` renders the centre indicator (default `Page {n}`). */
130
+ labels?: {
131
+ previous?: string;
132
+ next?: string;
133
+ page?: (n: number) => ReactNode;
134
+ };
135
+ }
136
+ /** Prev / page-indicator / next pager for cursor- or has-more-style lists where
137
+ * the total page count isn't known (so numbered pages aren't possible). Matches
138
+ * `BlogPagination`'s ghost-button styling. */
139
+ declare function SimplePagination({ currentPage, hasPrevious, hasNext, onPrevious, onNext, labels, }: SimplePaginationProps): React$1.JSX.Element;
140
+
120
141
  interface CategoryFilterProps {
121
142
  categories: string[];
122
143
  selectedCategory?: string;
@@ -249,9 +270,12 @@ interface StatCardProps {
249
270
  inline?: boolean;
250
271
  /** Value-first layout: big number on top, label beneath (analytics / admin stats style). */
251
272
  valueFirst?: boolean;
273
+ /** Compact surface: the lighter `card p-4` tile instead of `stat-card p-5`
274
+ * (matches dense admin stat grids). */
275
+ compact?: boolean;
252
276
  className?: string;
253
277
  }
254
- declare function StatCard({ icon: Icon, label, value, subtext, trend, tone, delay, inline, valueFirst, className }: StatCardProps): React$1.JSX.Element;
278
+ declare function StatCard({ icon: Icon, label, value, subtext, trend, tone, delay, inline, valueFirst, compact, className }: StatCardProps): React$1.JSX.Element;
255
279
 
256
280
  interface FellowsBannerProps {
257
281
  title: string;
@@ -377,4 +401,197 @@ declare function DeprecatedBadge({ isDeprecated }: {
377
401
  isDeprecated: boolean;
378
402
  }): React$1.JSX.Element | null;
379
403
 
380
- export { AccountLockedCard, type AccountLockedCardProps, ActiveBadge, BackgroundEffects, BlogCard, BlogPagination, BlogPostHeader, CapabilityBadge, CategoryFilter, CodeBlock, CodeDemo, DeprecatedBadge, ErrorBoundary, type ErrorBoundaryLabels, FAQ, type FAQItem, type FAQProps, FellowBadge, FellowsBanner, type FellowsBannerProps, LLMCopyButton, MediaEmptyState, MediaErrorState, MediaLoadingState, MediaPageHeader, PageEmptyState, PageErrorState, PageHeader, PageLoadingState, Sidebar, type SidebarNavItem, type SidebarProps, type SidebarSection, SourceBadge, StatCard, StatusBadge, ViewOptions };
404
+ interface FeatureLockedStateProps {
405
+ /** Glyph inside the top medallion (defaults to a sparkles icon). */
406
+ icon?: ReactNode;
407
+ title: ReactNode;
408
+ description?: ReactNode;
409
+ /** Heading of the dashed note card; the card shows when this or `noteText` is set. */
410
+ noteTitle?: ReactNode;
411
+ /** Body of the dashed note card. */
412
+ noteText?: ReactNode;
413
+ className?: string;
414
+ }
415
+ declare function FeatureLockedState({ icon, title, description, noteTitle, noteText, className }: FeatureLockedStateProps): React$1.JSX.Element;
416
+
417
+ interface SessionItemProps {
418
+ /** Device glyph (host maps the device type to an icon). */
419
+ icon?: ReactNode;
420
+ /** Device name / label. */
421
+ name: ReactNode;
422
+ /** Secondary detail line, e.g. "Chrome on macOS". */
423
+ detail?: ReactNode;
424
+ /** IP address (rendered after a globe glyph). */
425
+ ip?: ReactNode;
426
+ /** Host-formatted relative time (rendered after a clock glyph). */
427
+ time?: ReactNode;
428
+ /** Marks the current session — shows a badge and hides the revoke button. */
429
+ current?: boolean;
430
+ currentLabel?: ReactNode;
431
+ /** Dims the row and shows an "inactive" badge. */
432
+ inactive?: boolean;
433
+ inactiveLabel?: ReactNode;
434
+ /** Revoke handler — when set (and not current), shows the revoke button. */
435
+ onRevoke?: () => void;
436
+ revoking?: boolean;
437
+ revokeLabel?: string;
438
+ className?: string;
439
+ }
440
+ declare function SessionItem({ icon, name, detail, ip, time, current, currentLabel, inactive, inactiveLabel, onRevoke, revoking, revokeLabel, className, }: SessionItemProps): React$1.JSX.Element;
441
+
442
+ interface MetricBarProps {
443
+ /** Leading icon; when omitted a small color dot (using `color`) is shown. */
444
+ icon?: ReactNode;
445
+ label: ReactNode;
446
+ /** Right-aligned value (e.g. "120 credits"). */
447
+ value?: ReactNode;
448
+ /** Bar fill, 0–100. */
449
+ percentage: number;
450
+ /** CSS color for the bar fill (and the dot when there's no icon). */
451
+ color?: string;
452
+ className?: string;
453
+ }
454
+ declare function MetricBar({ icon, label, value, percentage, color, className }: MetricBarProps): React$1.JSX.Element;
455
+
456
+ type BannerTone = "info" | "warning" | "critical" | "success" | "neutral";
457
+ interface BannerProps {
458
+ /** Tone — drives the gradient, border, text and icon color. */
459
+ tone?: BannerTone;
460
+ /** Leading icon; defaults to a tone-appropriate glyph (pass `null` to omit). */
461
+ icon?: ReactNode;
462
+ /** The banner headline. */
463
+ title: ReactNode;
464
+ /** Secondary text shown inline after the title (hidden on mobile). */
465
+ description?: ReactNode;
466
+ /** Small right-aligned meta (e.g. a relative timestamp). */
467
+ meta?: ReactNode;
468
+ /** Trailing actions — links or buttons. */
469
+ actions?: ReactNode;
470
+ /** Show a dismiss (✕) button. */
471
+ dismissible?: boolean;
472
+ onDismiss?: () => void;
473
+ dismissLabel?: string;
474
+ className?: string;
475
+ }
476
+ declare function Banner({ tone, icon, title, description, meta, actions, dismissible, onDismiss, dismissLabel, className, }: BannerProps): React$1.JSX.Element;
477
+
478
+ /** An icon trigger (the bell) carrying an unread-count badge. */
479
+ interface NotificationBellProps {
480
+ /** Unread count; the badge is hidden when 0 / undefined. */
481
+ count?: number;
482
+ /** Cap the displayed number — above it shows `{max}+`. */
483
+ max?: number;
484
+ /** Accessible label for the trigger. */
485
+ label?: string;
486
+ /** Override the bell glyph. */
487
+ icon?: ReactNode;
488
+ onClick?: () => void;
489
+ className?: string;
490
+ }
491
+ declare function NotificationBell({ count, max, label, icon, onClick, className }: NotificationBellProps): React$1.JSX.Element;
492
+ /** A single notification row: type glyph · title + body · time, optionally a
493
+ * link (adapter Link) and a hover dismiss button. */
494
+ interface NotificationItemProps {
495
+ /** Type glyph — the host renders it (e.g. an icon for the notification type). */
496
+ icon?: ReactNode;
497
+ /** Tint classes for the icon square (bg + text color). */
498
+ iconClassName?: string;
499
+ title: ReactNode;
500
+ body?: ReactNode;
501
+ /** Host-formatted relative time (e.g. "2h"). */
502
+ time?: ReactNode;
503
+ /** Unread rows read bolder; read rows are muted. */
504
+ unread?: boolean;
505
+ /** Optional target — when set the row is an adapter `<Link>`. */
506
+ href?: string;
507
+ /** Fires on row activation (also use to close the panel). */
508
+ onSelect?: () => void;
509
+ /** Show a hover dismiss (trash) button. */
510
+ dismissible?: boolean;
511
+ onDismiss?: () => void;
512
+ dismissLabel?: string;
513
+ className?: string;
514
+ }
515
+ declare function NotificationItem({ icon, iconClassName, title, body, time, unread, href, onSelect, dismissible, onDismiss, dismissLabel, className, }: NotificationItemProps): React$1.JSX.Element;
516
+ /** The dropdown panel chrome: header (title + unread count), a scrollable list
517
+ * with loading / empty states, and a footer slot (e.g. a "view all" link).
518
+ * Render `<NotificationItem>`s as children. */
519
+ interface NotificationPanelProps {
520
+ title: ReactNode;
521
+ /** Unread count shown in the header; hidden when 0. */
522
+ unreadCount?: number;
523
+ /** Word rendered after the count (e.g. "unread"). */
524
+ unreadLabel?: ReactNode;
525
+ loading?: boolean;
526
+ loadingLabel?: ReactNode;
527
+ /** When true (and not loading) the empty state replaces the children. */
528
+ empty?: boolean;
529
+ emptyLabel?: ReactNode;
530
+ /** Footer slot — typically a centered "view all" adapter Link. */
531
+ footer?: ReactNode;
532
+ /** The notification rows. */
533
+ children?: ReactNode;
534
+ className?: string;
535
+ }
536
+ declare function NotificationPanel({ title, unreadCount, unreadLabel, loading, loadingLabel, empty, emptyLabel, footer, children, className, }: NotificationPanelProps): React$1.JSX.Element;
537
+
538
+ interface SettingRowProps {
539
+ title: ReactNode;
540
+ description?: ReactNode;
541
+ /** The trailing control (e.g. a `<Switch>`). */
542
+ control?: ReactNode;
543
+ className?: string;
544
+ }
545
+ declare function SettingRow({ title, description, control, className }: SettingRowProps): React$1.JSX.Element;
546
+
547
+ interface LinkRowProps {
548
+ icon?: ReactNode;
549
+ title: ReactNode;
550
+ description?: ReactNode;
551
+ /** Destination. */
552
+ href: string;
553
+ /** Open in a new tab via a plain anchor (default false → adapter Link). */
554
+ external?: boolean;
555
+ className?: string;
556
+ }
557
+ declare function LinkRow({ icon, title, description, href, external, className }: LinkRowProps): React$1.JSX.Element;
558
+
559
+ interface ConnectedAccountRowProps {
560
+ /** Provider glyph, shown in a ring when there's no avatar image. */
561
+ icon?: ReactNode;
562
+ /** Small provider badge overlaid bottom-right. */
563
+ badge?: ReactNode;
564
+ /** Avatar image URL; falls back to `icon` in a ring. */
565
+ avatarUrl?: string;
566
+ name: ReactNode;
567
+ /** A faint "· extra" after the name. */
568
+ subname?: ReactNode;
569
+ /** Detail line — e.g. @username or an email. */
570
+ detail?: ReactNode;
571
+ /** Host-formatted connected time (rendered after a clock glyph). */
572
+ time?: ReactNode;
573
+ onUnlink?: () => void;
574
+ unlinking?: boolean;
575
+ unlinkLabel?: string;
576
+ className?: string;
577
+ }
578
+ declare function ConnectedAccountRow({ icon, badge, avatarUrl, name, subname, detail, time, onUnlink, unlinking, unlinkLabel, className, }: ConnectedAccountRowProps): React$1.JSX.Element;
579
+
580
+ interface AvatarUploaderProps {
581
+ /** Current avatar image URL; when absent, `fallback` is shown. */
582
+ src?: string;
583
+ /** Fallback content (e.g. the user's initials). */
584
+ fallback?: ReactNode;
585
+ /** Diameter in px. */
586
+ size?: number;
587
+ /** True while an upload is in flight — shows a spinner. */
588
+ uploading?: boolean;
589
+ /** Called with the picked file. */
590
+ onSelectFile?: (file: File) => void;
591
+ /** Accessible label for the control. */
592
+ label?: string;
593
+ className?: string;
594
+ }
595
+ declare function AvatarUploader({ src, fallback, size, uploading, onSelectFile, label, className, }: AvatarUploaderProps): React$1.JSX.Element;
596
+
597
+ export { AccountLockedCard, type AccountLockedCardProps, ActiveBadge, AvatarUploader, type AvatarUploaderProps, BackgroundEffects, Banner, type BannerProps, type BannerTone, BlogCard, BlogPagination, BlogPostHeader, CapabilityBadge, CategoryFilter, CodeBlock, CodeDemo, ConnectedAccountRow, type ConnectedAccountRowProps, DeprecatedBadge, ErrorBoundary, type ErrorBoundaryLabels, FAQ, type FAQItem, type FAQProps, FeatureLockedState, type FeatureLockedStateProps, FellowBadge, FellowsBanner, type FellowsBannerProps, LLMCopyButton, LinkRow, type LinkRowProps, MediaEmptyState, MediaErrorState, MediaLoadingState, MediaPageHeader, MetricBar, type MetricBarProps, NotificationBell, type NotificationBellProps, NotificationItem, type NotificationItemProps, NotificationPanel, type NotificationPanelProps, PageEmptyState, PageErrorState, PageHeader, PageLoadingState, SessionItem, type SessionItemProps, SettingRow, type SettingRowProps, Sidebar, type SidebarNavItem, type SidebarProps, type SidebarSection, SimplePagination, SourceBadge, StatCard, StatusBadge, ViewOptions };