@still-void/ui 3.1.0 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -320,7 +320,13 @@ declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttribu
320
320
  declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
321
321
  declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
322
322
 
323
- declare const Alert: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
323
+ type AlertVariant = 'info' | 'success' | 'warning' | 'danger';
324
+ interface AlertProps extends React.HTMLAttributes<HTMLDivElement> {
325
+ variant?: AlertVariant;
326
+ icon?: React.ReactNode | null;
327
+ action?: React.ReactNode;
328
+ }
329
+ declare const Alert: React.ForwardRefExoticComponent<AlertProps & React.RefAttributes<HTMLDivElement>>;
324
330
  declare const AlertTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
325
331
  declare const AlertDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
326
332
 
@@ -342,7 +348,7 @@ declare function Badge({ className, variant, ...props }: BadgeProps): React.JSX.
342
348
  * same whatever library draws it, which is what keeps a future swap of source
343
349
  * out of the public API.
344
350
  */
345
- type IconName = 'x' | 'check' | 'chevron-down' | 'chevron-up' | 'chevron-right' | 'chevron-left' | 'info' | 'alert-triangle' | 'alert-circle' | 'check-circle' | 'copy' | 'sun' | 'moon' | 'search' | 'menu';
351
+ type IconName = 'x' | 'check' | 'chevron-down' | 'chevron-up' | 'chevron-right' | 'chevron-left' | 'info' | 'alert-triangle' | 'alert-circle' | 'check-circle' | 'copy' | 'sun' | 'moon' | 'search' | 'menu' | 'camera' | 'blocked' | 'pending';
346
352
 
347
353
  interface IconProps extends Omit<React.SVGProps<SVGSVGElement>, 'ref'> {
348
354
  name: IconName;
@@ -384,6 +390,153 @@ interface CheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>
384
390
  }
385
391
  declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>;
386
392
 
393
+ interface SeparatorProps extends React.HTMLAttributes<HTMLDivElement> {
394
+ orientation?: "horizontal" | "vertical";
395
+ /**
396
+ * `true` (default, matching shadcn/ui upstream): a purely visual divider,
397
+ * so it stays out of the accessibility tree — no `role`, no
398
+ * `aria-orientation`. Pass `false` for a divider that carries real
399
+ * meaning (e.g. between two distinct sign-in methods) to expose
400
+ * `role="separator"` and, when vertical, `aria-orientation="vertical"`.
401
+ */
402
+ decorative?: boolean;
403
+ }
404
+ declare const Separator: React.ForwardRefExoticComponent<SeparatorProps & React.RefAttributes<HTMLDivElement>>;
405
+
406
+ interface ProgressProps extends React.HTMLAttributes<HTMLDivElement> {
407
+ /** Current amount. Clamped to `[0, max]` — never renders past the track. */
408
+ value?: number;
409
+ /** Ceiling `value` is measured against. Library default is `100` — not a claim of native `<progress>` parity (that element defaults `max` to `1` and treats an omitted `value` as indeterminate; this component always renders a determinate `value`). */
410
+ max?: number;
411
+ }
412
+ declare const Progress: React.ForwardRefExoticComponent<ProgressProps & React.RefAttributes<HTMLDivElement>>;
413
+
414
+ interface PaginationProps extends React.ComponentPropsWithoutRef<"nav"> {
415
+ }
416
+ /**
417
+ * The root landmark. `aria-label="pagination"` is the one static string a
418
+ * consumer cannot override — spread order matters here the same way
419
+ * Dialog's `aria-modal` does — the label is what tells assistive tech
420
+ * which `<nav>` this is among possibly several on the page.
421
+ */
422
+ declare const Pagination: {
423
+ ({ className, ...props }: PaginationProps): React.JSX.Element;
424
+ displayName: string;
425
+ };
426
+ type PaginationContentProps = React.ComponentPropsWithoutRef<"ul">;
427
+ declare const PaginationContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
428
+ type PaginationItemProps = React.ComponentPropsWithoutRef<"li">;
429
+ declare const PaginationItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
430
+ interface PaginationLinkOwnProps {
431
+ isActive?: boolean;
432
+ }
433
+ type PaginationLinkProps = PaginationLinkOwnProps & Omit<React.ComponentPropsWithoutRef<"a">, "href"> & {
434
+ href?: string;
435
+ };
436
+ /**
437
+ * Renders an `<a>` when `href` is passed (real navigation: SEO, right-click
438
+ * "open in new tab"), a `<button type="button">` otherwise (client-side page
439
+ * state with no URL to point at) — never a third `as` prop to pick between
440
+ * them, because these are the only two real call sites (AD, design.md).
441
+ */
442
+ declare const PaginationLink: React.ForwardRefExoticComponent<PaginationLinkOwnProps & Omit<Omit<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref">, "href"> & {
443
+ href?: string;
444
+ } & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
445
+ interface PaginationPreviousProps extends Omit<PaginationLinkProps, "children"> {
446
+ /** Accessible + visible label. Defaults to English, like closeLabel on DialogContent — override for i18n. */
447
+ label?: string;
448
+ }
449
+ declare const PaginationPrevious: React.ForwardRefExoticComponent<PaginationPreviousProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
450
+ interface PaginationNextProps extends Omit<PaginationLinkProps, "children"> {
451
+ label?: string;
452
+ }
453
+ declare const PaginationNext: React.ForwardRefExoticComponent<PaginationNextProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
454
+ type PaginationEllipsisProps = React.ComponentPropsWithoutRef<"span">;
455
+ /** Not a link — there is nothing to focus or activate, only a visual "more pages" marker. */
456
+ declare const PaginationEllipsis: {
457
+ ({ className, ...props }: PaginationEllipsisProps): React.JSX.Element;
458
+ displayName: string;
459
+ };
460
+
461
+ /**
462
+ * SVG chart primitives — visual geometry only, reading the system's own
463
+ * tokens for grid/axis color and taking series color as a prop (the three
464
+ * series tokens, `var(--sv-accent-ink)` / `var(--sv-info-ink)` /
465
+ * `var(--sv-warning-ink)`, are the system's contract; which series maps to
466
+ * which token is the consumer's call, same as it is today).
467
+ *
468
+ * Deliberately NOT a charting engine: every geometry prop here (`points`,
469
+ * `positions`, `ticks`, `bars`) is already in pixel space. Mapping a domain
470
+ * value (a clinical score, a percentage) to that space is application logic,
471
+ * not a design-system concern — see design.md's Assumptions table.
472
+ */
473
+ interface ChartContainerProps {
474
+ width: number;
475
+ height: number;
476
+ /** The chart's accessible name. Omit only when an adjacent visible caption already names it. */
477
+ "aria-label"?: string;
478
+ className?: string;
479
+ children?: React.ReactNode;
480
+ }
481
+ declare const ChartContainer: React.ForwardRefExoticComponent<ChartContainerProps & React.RefAttributes<SVGSVGElement>>;
482
+ interface ChartGridProps {
483
+ orientation: "horizontal" | "vertical";
484
+ /** Position, along the axis perpendicular to the line's own direction, of each grid line. */
485
+ positions: number[];
486
+ /** Line length — the far edge each horizontal line reaches on x, or each vertical line reaches on y. */
487
+ width: number;
488
+ className?: string;
489
+ }
490
+ declare const ChartGrid: {
491
+ ({ orientation, positions, width, className }: ChartGridProps): React.JSX.Element;
492
+ displayName: string;
493
+ };
494
+ interface ChartTick {
495
+ position: number;
496
+ label: string;
497
+ }
498
+ interface ChartAxisProps {
499
+ orientation: "bottom" | "left";
500
+ ticks: ChartTick[];
501
+ /** Baseline length — how far along its own axis the line runs. */
502
+ length: number;
503
+ className?: string;
504
+ }
505
+ declare const ChartAxis: {
506
+ ({ orientation, ticks, length, className }: ChartAxisProps): React.JSX.Element;
507
+ displayName: string;
508
+ };
509
+ interface ChartPoint {
510
+ x: number;
511
+ y: number;
512
+ }
513
+ interface ChartLineProps {
514
+ points: ChartPoint[];
515
+ /** A `var(--sv-*-ink)` series token, or any valid CSS color. */
516
+ color: string;
517
+ className?: string;
518
+ }
519
+ declare const ChartLine: {
520
+ ({ points, color, className }: ChartLineProps): React.JSX.Element;
521
+ displayName: string;
522
+ };
523
+ interface ChartBarDatum {
524
+ x: number;
525
+ y: number;
526
+ width: number;
527
+ height: number;
528
+ }
529
+ interface ChartBarProps {
530
+ bars: ChartBarDatum[];
531
+ /** A `var(--sv-*-ink)` series token, or any valid CSS color. */
532
+ color: string;
533
+ className?: string;
534
+ }
535
+ declare const ChartBar: {
536
+ ({ bars, color, className }: ChartBarProps): React.JSX.Element;
537
+ displayName: string;
538
+ };
539
+
387
540
  interface RadioGroupItemProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "type"> {
388
541
  children?: React.ReactNode;
389
542
  }
@@ -653,4 +806,4 @@ declare const tableClasses: {
653
806
  readonly caption: "sv-table__caption";
654
807
  };
655
808
 
656
- export { type AccentName, Alert, AlertDescription, AlertTitle, ArticleHeader, type ArticleHeaderProps, Badge, type BadgeProps, Button, type ButtonProps, Callout, type CalloutKind, type CalloutProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardSkeleton, CardTitle, type CategoryName, CategoryPill, type CategoryPillOptions, type CategoryPillProps, Checkbox, type CheckboxProps, CodeBlock, type CodeBlockProps, type ColorScheme, DEFAULT_ACCENT, DEFAULT_MODE, type Duration, type Easing, FeaturedPostCard, type FeaturedPostCardProps, type FieldMessageOptions, type FieldMessageVariant, type FieldOptions, type FieldVariant, FileInput, type FileInputProps, type FontFamily, type FontSize, type FontWeight, Footer, type FooterProps, Header, type HeaderOptions, type HeaderProps, Hero, type HeroProps, Icon, type IconName, type IconProps, Input, type InputProps, Layout, type LayoutOptions, type LayoutProps, Lead, type LeadProps, Logo, type LogoProps, NativeSelect, type NativeSelectProps, type NavItem, PostCard, type PostCardOptions, type PostCardProps, PostGrid, type PostGridProps, type PostSummary, Prose, type ProseProps, READING_PROGRESS_VAR, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps, type Radius, type SemanticName, Sidebar, type SidebarProps, SidebarSection, type SidebarSectionProps, Skeleton, type SkeletonOptions, type SkeletonProps, type SpacingStep, Table, TableBody, type TableBodyProps, TableCaption, type TableCaptionProps, TableCell, type TableCellProps, TableFooter, type TableFooterProps, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, Textarea, type TextareaProps, type ThemeMode, ThemeScript, type ThemeScriptProps, type TocItem, type TocLinkOptions, type ZIndexStep, accentNames, accents, accentsInk, articleHeader, articleHeaderClasses, callout, calloutClasses, calloutLabels, cardSkeleton, categoryPill, categoryPillClasses, codeBlock, codeBlockClasses, colors, cx, defaultCategoryColors, durations, easings, featuredPostCard, featuredPostCardClasses, field, fieldClasses, fieldMessage, fontFamilies, fontSizes, fontWeights, footer, footerClasses, header, headerClasses, hero, heroClasses, layout, letterSpacings, lineHeights, logo, logoClasses, postCard, postCardClasses, postGrid, prose, proseClasses, radii, readingProgress, readingProgressClasses, resolveAccentColor, resolveCategoryColor, semantic, semanticInk, sidebar, sidebarClasses, skeletonLine, spacing, table, tableClasses, tableOfContents, themeModes, tocLink, zIndex };
809
+ export { type AccentName, Alert, AlertDescription, AlertTitle, ArticleHeader, type ArticleHeaderProps, Badge, type BadgeProps, Button, type ButtonProps, Callout, type CalloutKind, type CalloutProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardSkeleton, CardTitle, type CategoryName, CategoryPill, type CategoryPillOptions, type CategoryPillProps, ChartAxis, type ChartAxisProps, ChartBar, type ChartBarDatum, type ChartBarProps, ChartContainer, type ChartContainerProps, ChartGrid, type ChartGridProps, ChartLine, type ChartLineProps, type ChartPoint, type ChartTick, Checkbox, type CheckboxProps, CodeBlock, type CodeBlockProps, type ColorScheme, DEFAULT_ACCENT, DEFAULT_MODE, type Duration, type Easing, FeaturedPostCard, type FeaturedPostCardProps, type FieldMessageOptions, type FieldMessageVariant, type FieldOptions, type FieldVariant, FileInput, type FileInputProps, type FontFamily, type FontSize, type FontWeight, Footer, type FooterProps, Header, type HeaderOptions, type HeaderProps, Hero, type HeroProps, Icon, type IconName, type IconProps, Input, type InputProps, Layout, type LayoutOptions, type LayoutProps, Lead, type LeadProps, Logo, type LogoProps, NativeSelect, type NativeSelectProps, type NavItem, Pagination, PaginationContent, type PaginationContentProps, PaginationEllipsis, type PaginationEllipsisProps, PaginationItem, type PaginationItemProps, PaginationLink, type PaginationLinkProps, PaginationNext, type PaginationNextProps, PaginationPrevious, type PaginationPreviousProps, type PaginationProps, PostCard, type PostCardOptions, type PostCardProps, PostGrid, type PostGridProps, type PostSummary, Progress, type ProgressProps, Prose, type ProseProps, READING_PROGRESS_VAR, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps, type Radius, type SemanticName, Separator, type SeparatorProps, Sidebar, type SidebarProps, SidebarSection, type SidebarSectionProps, Skeleton, type SkeletonOptions, type SkeletonProps, type SpacingStep, Table, TableBody, type TableBodyProps, TableCaption, type TableCaptionProps, TableCell, type TableCellProps, TableFooter, type TableFooterProps, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, Textarea, type TextareaProps, type ThemeMode, ThemeScript, type ThemeScriptProps, type TocItem, type TocLinkOptions, type ZIndexStep, accentNames, accents, accentsInk, articleHeader, articleHeaderClasses, callout, calloutClasses, calloutLabels, cardSkeleton, categoryPill, categoryPillClasses, codeBlock, codeBlockClasses, colors, cx, defaultCategoryColors, durations, easings, featuredPostCard, featuredPostCardClasses, field, fieldClasses, fieldMessage, fontFamilies, fontSizes, fontWeights, footer, footerClasses, header, headerClasses, hero, heroClasses, layout, letterSpacings, lineHeights, logo, logoClasses, postCard, postCardClasses, postGrid, prose, proseClasses, radii, readingProgress, readingProgressClasses, resolveAccentColor, resolveCategoryColor, semantic, semanticInk, sidebar, sidebarClasses, skeletonLine, spacing, table, tableClasses, tableOfContents, themeModes, tocLink, zIndex };
@@ -320,7 +320,13 @@ declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttribu
320
320
  declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
321
321
  declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
322
322
 
323
- declare const Alert: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
323
+ type AlertVariant = 'info' | 'success' | 'warning' | 'danger';
324
+ interface AlertProps extends React.HTMLAttributes<HTMLDivElement> {
325
+ variant?: AlertVariant;
326
+ icon?: React.ReactNode | null;
327
+ action?: React.ReactNode;
328
+ }
329
+ declare const Alert: React.ForwardRefExoticComponent<AlertProps & React.RefAttributes<HTMLDivElement>>;
324
330
  declare const AlertTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
325
331
  declare const AlertDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
326
332
 
@@ -342,7 +348,7 @@ declare function Badge({ className, variant, ...props }: BadgeProps): React.JSX.
342
348
  * same whatever library draws it, which is what keeps a future swap of source
343
349
  * out of the public API.
344
350
  */
345
- type IconName = 'x' | 'check' | 'chevron-down' | 'chevron-up' | 'chevron-right' | 'chevron-left' | 'info' | 'alert-triangle' | 'alert-circle' | 'check-circle' | 'copy' | 'sun' | 'moon' | 'search' | 'menu';
351
+ type IconName = 'x' | 'check' | 'chevron-down' | 'chevron-up' | 'chevron-right' | 'chevron-left' | 'info' | 'alert-triangle' | 'alert-circle' | 'check-circle' | 'copy' | 'sun' | 'moon' | 'search' | 'menu' | 'camera' | 'blocked' | 'pending';
346
352
 
347
353
  interface IconProps extends Omit<React.SVGProps<SVGSVGElement>, 'ref'> {
348
354
  name: IconName;
@@ -384,6 +390,153 @@ interface CheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>
384
390
  }
385
391
  declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>;
386
392
 
393
+ interface SeparatorProps extends React.HTMLAttributes<HTMLDivElement> {
394
+ orientation?: "horizontal" | "vertical";
395
+ /**
396
+ * `true` (default, matching shadcn/ui upstream): a purely visual divider,
397
+ * so it stays out of the accessibility tree — no `role`, no
398
+ * `aria-orientation`. Pass `false` for a divider that carries real
399
+ * meaning (e.g. between two distinct sign-in methods) to expose
400
+ * `role="separator"` and, when vertical, `aria-orientation="vertical"`.
401
+ */
402
+ decorative?: boolean;
403
+ }
404
+ declare const Separator: React.ForwardRefExoticComponent<SeparatorProps & React.RefAttributes<HTMLDivElement>>;
405
+
406
+ interface ProgressProps extends React.HTMLAttributes<HTMLDivElement> {
407
+ /** Current amount. Clamped to `[0, max]` — never renders past the track. */
408
+ value?: number;
409
+ /** Ceiling `value` is measured against. Library default is `100` — not a claim of native `<progress>` parity (that element defaults `max` to `1` and treats an omitted `value` as indeterminate; this component always renders a determinate `value`). */
410
+ max?: number;
411
+ }
412
+ declare const Progress: React.ForwardRefExoticComponent<ProgressProps & React.RefAttributes<HTMLDivElement>>;
413
+
414
+ interface PaginationProps extends React.ComponentPropsWithoutRef<"nav"> {
415
+ }
416
+ /**
417
+ * The root landmark. `aria-label="pagination"` is the one static string a
418
+ * consumer cannot override — spread order matters here the same way
419
+ * Dialog's `aria-modal` does — the label is what tells assistive tech
420
+ * which `<nav>` this is among possibly several on the page.
421
+ */
422
+ declare const Pagination: {
423
+ ({ className, ...props }: PaginationProps): React.JSX.Element;
424
+ displayName: string;
425
+ };
426
+ type PaginationContentProps = React.ComponentPropsWithoutRef<"ul">;
427
+ declare const PaginationContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
428
+ type PaginationItemProps = React.ComponentPropsWithoutRef<"li">;
429
+ declare const PaginationItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
430
+ interface PaginationLinkOwnProps {
431
+ isActive?: boolean;
432
+ }
433
+ type PaginationLinkProps = PaginationLinkOwnProps & Omit<React.ComponentPropsWithoutRef<"a">, "href"> & {
434
+ href?: string;
435
+ };
436
+ /**
437
+ * Renders an `<a>` when `href` is passed (real navigation: SEO, right-click
438
+ * "open in new tab"), a `<button type="button">` otherwise (client-side page
439
+ * state with no URL to point at) — never a third `as` prop to pick between
440
+ * them, because these are the only two real call sites (AD, design.md).
441
+ */
442
+ declare const PaginationLink: React.ForwardRefExoticComponent<PaginationLinkOwnProps & Omit<Omit<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref">, "href"> & {
443
+ href?: string;
444
+ } & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
445
+ interface PaginationPreviousProps extends Omit<PaginationLinkProps, "children"> {
446
+ /** Accessible + visible label. Defaults to English, like closeLabel on DialogContent — override for i18n. */
447
+ label?: string;
448
+ }
449
+ declare const PaginationPrevious: React.ForwardRefExoticComponent<PaginationPreviousProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
450
+ interface PaginationNextProps extends Omit<PaginationLinkProps, "children"> {
451
+ label?: string;
452
+ }
453
+ declare const PaginationNext: React.ForwardRefExoticComponent<PaginationNextProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
454
+ type PaginationEllipsisProps = React.ComponentPropsWithoutRef<"span">;
455
+ /** Not a link — there is nothing to focus or activate, only a visual "more pages" marker. */
456
+ declare const PaginationEllipsis: {
457
+ ({ className, ...props }: PaginationEllipsisProps): React.JSX.Element;
458
+ displayName: string;
459
+ };
460
+
461
+ /**
462
+ * SVG chart primitives — visual geometry only, reading the system's own
463
+ * tokens for grid/axis color and taking series color as a prop (the three
464
+ * series tokens, `var(--sv-accent-ink)` / `var(--sv-info-ink)` /
465
+ * `var(--sv-warning-ink)`, are the system's contract; which series maps to
466
+ * which token is the consumer's call, same as it is today).
467
+ *
468
+ * Deliberately NOT a charting engine: every geometry prop here (`points`,
469
+ * `positions`, `ticks`, `bars`) is already in pixel space. Mapping a domain
470
+ * value (a clinical score, a percentage) to that space is application logic,
471
+ * not a design-system concern — see design.md's Assumptions table.
472
+ */
473
+ interface ChartContainerProps {
474
+ width: number;
475
+ height: number;
476
+ /** The chart's accessible name. Omit only when an adjacent visible caption already names it. */
477
+ "aria-label"?: string;
478
+ className?: string;
479
+ children?: React.ReactNode;
480
+ }
481
+ declare const ChartContainer: React.ForwardRefExoticComponent<ChartContainerProps & React.RefAttributes<SVGSVGElement>>;
482
+ interface ChartGridProps {
483
+ orientation: "horizontal" | "vertical";
484
+ /** Position, along the axis perpendicular to the line's own direction, of each grid line. */
485
+ positions: number[];
486
+ /** Line length — the far edge each horizontal line reaches on x, or each vertical line reaches on y. */
487
+ width: number;
488
+ className?: string;
489
+ }
490
+ declare const ChartGrid: {
491
+ ({ orientation, positions, width, className }: ChartGridProps): React.JSX.Element;
492
+ displayName: string;
493
+ };
494
+ interface ChartTick {
495
+ position: number;
496
+ label: string;
497
+ }
498
+ interface ChartAxisProps {
499
+ orientation: "bottom" | "left";
500
+ ticks: ChartTick[];
501
+ /** Baseline length — how far along its own axis the line runs. */
502
+ length: number;
503
+ className?: string;
504
+ }
505
+ declare const ChartAxis: {
506
+ ({ orientation, ticks, length, className }: ChartAxisProps): React.JSX.Element;
507
+ displayName: string;
508
+ };
509
+ interface ChartPoint {
510
+ x: number;
511
+ y: number;
512
+ }
513
+ interface ChartLineProps {
514
+ points: ChartPoint[];
515
+ /** A `var(--sv-*-ink)` series token, or any valid CSS color. */
516
+ color: string;
517
+ className?: string;
518
+ }
519
+ declare const ChartLine: {
520
+ ({ points, color, className }: ChartLineProps): React.JSX.Element;
521
+ displayName: string;
522
+ };
523
+ interface ChartBarDatum {
524
+ x: number;
525
+ y: number;
526
+ width: number;
527
+ height: number;
528
+ }
529
+ interface ChartBarProps {
530
+ bars: ChartBarDatum[];
531
+ /** A `var(--sv-*-ink)` series token, or any valid CSS color. */
532
+ color: string;
533
+ className?: string;
534
+ }
535
+ declare const ChartBar: {
536
+ ({ bars, color, className }: ChartBarProps): React.JSX.Element;
537
+ displayName: string;
538
+ };
539
+
387
540
  interface RadioGroupItemProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "type"> {
388
541
  children?: React.ReactNode;
389
542
  }
@@ -653,4 +806,4 @@ declare const tableClasses: {
653
806
  readonly caption: "sv-table__caption";
654
807
  };
655
808
 
656
- export { type AccentName, Alert, AlertDescription, AlertTitle, ArticleHeader, type ArticleHeaderProps, Badge, type BadgeProps, Button, type ButtonProps, Callout, type CalloutKind, type CalloutProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardSkeleton, CardTitle, type CategoryName, CategoryPill, type CategoryPillOptions, type CategoryPillProps, Checkbox, type CheckboxProps, CodeBlock, type CodeBlockProps, type ColorScheme, DEFAULT_ACCENT, DEFAULT_MODE, type Duration, type Easing, FeaturedPostCard, type FeaturedPostCardProps, type FieldMessageOptions, type FieldMessageVariant, type FieldOptions, type FieldVariant, FileInput, type FileInputProps, type FontFamily, type FontSize, type FontWeight, Footer, type FooterProps, Header, type HeaderOptions, type HeaderProps, Hero, type HeroProps, Icon, type IconName, type IconProps, Input, type InputProps, Layout, type LayoutOptions, type LayoutProps, Lead, type LeadProps, Logo, type LogoProps, NativeSelect, type NativeSelectProps, type NavItem, PostCard, type PostCardOptions, type PostCardProps, PostGrid, type PostGridProps, type PostSummary, Prose, type ProseProps, READING_PROGRESS_VAR, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps, type Radius, type SemanticName, Sidebar, type SidebarProps, SidebarSection, type SidebarSectionProps, Skeleton, type SkeletonOptions, type SkeletonProps, type SpacingStep, Table, TableBody, type TableBodyProps, TableCaption, type TableCaptionProps, TableCell, type TableCellProps, TableFooter, type TableFooterProps, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, Textarea, type TextareaProps, type ThemeMode, ThemeScript, type ThemeScriptProps, type TocItem, type TocLinkOptions, type ZIndexStep, accentNames, accents, accentsInk, articleHeader, articleHeaderClasses, callout, calloutClasses, calloutLabels, cardSkeleton, categoryPill, categoryPillClasses, codeBlock, codeBlockClasses, colors, cx, defaultCategoryColors, durations, easings, featuredPostCard, featuredPostCardClasses, field, fieldClasses, fieldMessage, fontFamilies, fontSizes, fontWeights, footer, footerClasses, header, headerClasses, hero, heroClasses, layout, letterSpacings, lineHeights, logo, logoClasses, postCard, postCardClasses, postGrid, prose, proseClasses, radii, readingProgress, readingProgressClasses, resolveAccentColor, resolveCategoryColor, semantic, semanticInk, sidebar, sidebarClasses, skeletonLine, spacing, table, tableClasses, tableOfContents, themeModes, tocLink, zIndex };
809
+ export { type AccentName, Alert, AlertDescription, AlertTitle, ArticleHeader, type ArticleHeaderProps, Badge, type BadgeProps, Button, type ButtonProps, Callout, type CalloutKind, type CalloutProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardSkeleton, CardTitle, type CategoryName, CategoryPill, type CategoryPillOptions, type CategoryPillProps, ChartAxis, type ChartAxisProps, ChartBar, type ChartBarDatum, type ChartBarProps, ChartContainer, type ChartContainerProps, ChartGrid, type ChartGridProps, ChartLine, type ChartLineProps, type ChartPoint, type ChartTick, Checkbox, type CheckboxProps, CodeBlock, type CodeBlockProps, type ColorScheme, DEFAULT_ACCENT, DEFAULT_MODE, type Duration, type Easing, FeaturedPostCard, type FeaturedPostCardProps, type FieldMessageOptions, type FieldMessageVariant, type FieldOptions, type FieldVariant, FileInput, type FileInputProps, type FontFamily, type FontSize, type FontWeight, Footer, type FooterProps, Header, type HeaderOptions, type HeaderProps, Hero, type HeroProps, Icon, type IconName, type IconProps, Input, type InputProps, Layout, type LayoutOptions, type LayoutProps, Lead, type LeadProps, Logo, type LogoProps, NativeSelect, type NativeSelectProps, type NavItem, Pagination, PaginationContent, type PaginationContentProps, PaginationEllipsis, type PaginationEllipsisProps, PaginationItem, type PaginationItemProps, PaginationLink, type PaginationLinkProps, PaginationNext, type PaginationNextProps, PaginationPrevious, type PaginationPreviousProps, type PaginationProps, PostCard, type PostCardOptions, type PostCardProps, PostGrid, type PostGridProps, type PostSummary, Progress, type ProgressProps, Prose, type ProseProps, READING_PROGRESS_VAR, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps, type Radius, type SemanticName, Separator, type SeparatorProps, Sidebar, type SidebarProps, SidebarSection, type SidebarSectionProps, Skeleton, type SkeletonOptions, type SkeletonProps, type SpacingStep, Table, TableBody, type TableBodyProps, TableCaption, type TableCaptionProps, TableCell, type TableCellProps, TableFooter, type TableFooterProps, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, Textarea, type TextareaProps, type ThemeMode, ThemeScript, type ThemeScriptProps, type TocItem, type TocLinkOptions, type ZIndexStep, accentNames, accents, accentsInk, articleHeader, articleHeaderClasses, callout, calloutClasses, calloutLabels, cardSkeleton, categoryPill, categoryPillClasses, codeBlock, codeBlockClasses, colors, cx, defaultCategoryColors, durations, easings, featuredPostCard, featuredPostCardClasses, field, fieldClasses, fieldMessage, fontFamilies, fontSizes, fontWeights, footer, footerClasses, header, headerClasses, hero, heroClasses, layout, letterSpacings, lineHeights, logo, logoClasses, postCard, postCardClasses, postGrid, prose, proseClasses, radii, readingProgress, readingProgressClasses, resolveAccentColor, resolveCategoryColor, semantic, semanticInk, sidebar, sidebarClasses, skeletonLine, spacing, table, tableClasses, tableOfContents, themeModes, tocLink, zIndex };