@still-void/ui 3.1.0 → 3.2.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.
- package/CHANGELOG.md +16 -0
- package/dist/react/client/index.cjs +26 -20
- package/dist/react/client/index.cjs.map +1 -1
- package/dist/react/client/index.d.cts +7 -0
- package/dist/react/client/index.d.ts +7 -0
- package/dist/react/client/index.js +29 -20
- package/dist/react/client/index.js.map +1 -1
- package/dist/react/index.cjs +287 -29
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +149 -2
- package/dist/react/index.d.ts +149 -2
- package/dist/react/index.js +277 -30
- package/dist/react/index.js.map +1 -1
- package/dist/style.css +146 -1
- package/package.json +1 -1
package/dist/react/index.d.cts
CHANGED
|
@@ -342,7 +342,7 @@ declare function Badge({ className, variant, ...props }: BadgeProps): React.JSX.
|
|
|
342
342
|
* same whatever library draws it, which is what keeps a future swap of source
|
|
343
343
|
* out of the public API.
|
|
344
344
|
*/
|
|
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';
|
|
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' | 'camera' | 'blocked' | 'pending';
|
|
346
346
|
|
|
347
347
|
interface IconProps extends Omit<React.SVGProps<SVGSVGElement>, 'ref'> {
|
|
348
348
|
name: IconName;
|
|
@@ -384,6 +384,153 @@ interface CheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>
|
|
|
384
384
|
}
|
|
385
385
|
declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>;
|
|
386
386
|
|
|
387
|
+
interface SeparatorProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
388
|
+
orientation?: "horizontal" | "vertical";
|
|
389
|
+
/**
|
|
390
|
+
* `true` (default, matching shadcn/ui upstream): a purely visual divider,
|
|
391
|
+
* so it stays out of the accessibility tree — no `role`, no
|
|
392
|
+
* `aria-orientation`. Pass `false` for a divider that carries real
|
|
393
|
+
* meaning (e.g. between two distinct sign-in methods) to expose
|
|
394
|
+
* `role="separator"` and, when vertical, `aria-orientation="vertical"`.
|
|
395
|
+
*/
|
|
396
|
+
decorative?: boolean;
|
|
397
|
+
}
|
|
398
|
+
declare const Separator: React.ForwardRefExoticComponent<SeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
399
|
+
|
|
400
|
+
interface ProgressProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
401
|
+
/** Current amount. Clamped to `[0, max]` — never renders past the track. */
|
|
402
|
+
value?: number;
|
|
403
|
+
/** 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`). */
|
|
404
|
+
max?: number;
|
|
405
|
+
}
|
|
406
|
+
declare const Progress: React.ForwardRefExoticComponent<ProgressProps & React.RefAttributes<HTMLDivElement>>;
|
|
407
|
+
|
|
408
|
+
interface PaginationProps extends React.ComponentPropsWithoutRef<"nav"> {
|
|
409
|
+
}
|
|
410
|
+
/**
|
|
411
|
+
* The root landmark. `aria-label="pagination"` is the one static string a
|
|
412
|
+
* consumer cannot override — spread order matters here the same way
|
|
413
|
+
* Dialog's `aria-modal` does — the label is what tells assistive tech
|
|
414
|
+
* which `<nav>` this is among possibly several on the page.
|
|
415
|
+
*/
|
|
416
|
+
declare const Pagination: {
|
|
417
|
+
({ className, ...props }: PaginationProps): React.JSX.Element;
|
|
418
|
+
displayName: string;
|
|
419
|
+
};
|
|
420
|
+
type PaginationContentProps = React.ComponentPropsWithoutRef<"ul">;
|
|
421
|
+
declare const PaginationContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
|
422
|
+
type PaginationItemProps = React.ComponentPropsWithoutRef<"li">;
|
|
423
|
+
declare const PaginationItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
|
|
424
|
+
interface PaginationLinkOwnProps {
|
|
425
|
+
isActive?: boolean;
|
|
426
|
+
}
|
|
427
|
+
type PaginationLinkProps = PaginationLinkOwnProps & Omit<React.ComponentPropsWithoutRef<"a">, "href"> & {
|
|
428
|
+
href?: string;
|
|
429
|
+
};
|
|
430
|
+
/**
|
|
431
|
+
* Renders an `<a>` when `href` is passed (real navigation: SEO, right-click
|
|
432
|
+
* "open in new tab"), a `<button type="button">` otherwise (client-side page
|
|
433
|
+
* state with no URL to point at) — never a third `as` prop to pick between
|
|
434
|
+
* them, because these are the only two real call sites (AD, design.md).
|
|
435
|
+
*/
|
|
436
|
+
declare const PaginationLink: React.ForwardRefExoticComponent<PaginationLinkOwnProps & Omit<Omit<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref">, "href"> & {
|
|
437
|
+
href?: string;
|
|
438
|
+
} & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
439
|
+
interface PaginationPreviousProps extends Omit<PaginationLinkProps, "children"> {
|
|
440
|
+
/** Accessible + visible label. Defaults to English, like closeLabel on DialogContent — override for i18n. */
|
|
441
|
+
label?: string;
|
|
442
|
+
}
|
|
443
|
+
declare const PaginationPrevious: React.ForwardRefExoticComponent<PaginationPreviousProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
444
|
+
interface PaginationNextProps extends Omit<PaginationLinkProps, "children"> {
|
|
445
|
+
label?: string;
|
|
446
|
+
}
|
|
447
|
+
declare const PaginationNext: React.ForwardRefExoticComponent<PaginationNextProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
448
|
+
type PaginationEllipsisProps = React.ComponentPropsWithoutRef<"span">;
|
|
449
|
+
/** Not a link — there is nothing to focus or activate, only a visual "more pages" marker. */
|
|
450
|
+
declare const PaginationEllipsis: {
|
|
451
|
+
({ className, ...props }: PaginationEllipsisProps): React.JSX.Element;
|
|
452
|
+
displayName: string;
|
|
453
|
+
};
|
|
454
|
+
|
|
455
|
+
/**
|
|
456
|
+
* SVG chart primitives — visual geometry only, reading the system's own
|
|
457
|
+
* tokens for grid/axis color and taking series color as a prop (the three
|
|
458
|
+
* series tokens, `var(--sv-accent-ink)` / `var(--sv-info-ink)` /
|
|
459
|
+
* `var(--sv-warning-ink)`, are the system's contract; which series maps to
|
|
460
|
+
* which token is the consumer's call, same as it is today).
|
|
461
|
+
*
|
|
462
|
+
* Deliberately NOT a charting engine: every geometry prop here (`points`,
|
|
463
|
+
* `positions`, `ticks`, `bars`) is already in pixel space. Mapping a domain
|
|
464
|
+
* value (a clinical score, a percentage) to that space is application logic,
|
|
465
|
+
* not a design-system concern — see design.md's Assumptions table.
|
|
466
|
+
*/
|
|
467
|
+
interface ChartContainerProps {
|
|
468
|
+
width: number;
|
|
469
|
+
height: number;
|
|
470
|
+
/** The chart's accessible name. Omit only when an adjacent visible caption already names it. */
|
|
471
|
+
"aria-label"?: string;
|
|
472
|
+
className?: string;
|
|
473
|
+
children?: React.ReactNode;
|
|
474
|
+
}
|
|
475
|
+
declare const ChartContainer: React.ForwardRefExoticComponent<ChartContainerProps & React.RefAttributes<SVGSVGElement>>;
|
|
476
|
+
interface ChartGridProps {
|
|
477
|
+
orientation: "horizontal" | "vertical";
|
|
478
|
+
/** Position, along the axis perpendicular to the line's own direction, of each grid line. */
|
|
479
|
+
positions: number[];
|
|
480
|
+
/** Line length — the far edge each horizontal line reaches on x, or each vertical line reaches on y. */
|
|
481
|
+
width: number;
|
|
482
|
+
className?: string;
|
|
483
|
+
}
|
|
484
|
+
declare const ChartGrid: {
|
|
485
|
+
({ orientation, positions, width, className }: ChartGridProps): React.JSX.Element;
|
|
486
|
+
displayName: string;
|
|
487
|
+
};
|
|
488
|
+
interface ChartTick {
|
|
489
|
+
position: number;
|
|
490
|
+
label: string;
|
|
491
|
+
}
|
|
492
|
+
interface ChartAxisProps {
|
|
493
|
+
orientation: "bottom" | "left";
|
|
494
|
+
ticks: ChartTick[];
|
|
495
|
+
/** Baseline length — how far along its own axis the line runs. */
|
|
496
|
+
length: number;
|
|
497
|
+
className?: string;
|
|
498
|
+
}
|
|
499
|
+
declare const ChartAxis: {
|
|
500
|
+
({ orientation, ticks, length, className }: ChartAxisProps): React.JSX.Element;
|
|
501
|
+
displayName: string;
|
|
502
|
+
};
|
|
503
|
+
interface ChartPoint {
|
|
504
|
+
x: number;
|
|
505
|
+
y: number;
|
|
506
|
+
}
|
|
507
|
+
interface ChartLineProps {
|
|
508
|
+
points: ChartPoint[];
|
|
509
|
+
/** A `var(--sv-*-ink)` series token, or any valid CSS color. */
|
|
510
|
+
color: string;
|
|
511
|
+
className?: string;
|
|
512
|
+
}
|
|
513
|
+
declare const ChartLine: {
|
|
514
|
+
({ points, color, className }: ChartLineProps): React.JSX.Element;
|
|
515
|
+
displayName: string;
|
|
516
|
+
};
|
|
517
|
+
interface ChartBarDatum {
|
|
518
|
+
x: number;
|
|
519
|
+
y: number;
|
|
520
|
+
width: number;
|
|
521
|
+
height: number;
|
|
522
|
+
}
|
|
523
|
+
interface ChartBarProps {
|
|
524
|
+
bars: ChartBarDatum[];
|
|
525
|
+
/** A `var(--sv-*-ink)` series token, or any valid CSS color. */
|
|
526
|
+
color: string;
|
|
527
|
+
className?: string;
|
|
528
|
+
}
|
|
529
|
+
declare const ChartBar: {
|
|
530
|
+
({ bars, color, className }: ChartBarProps): React.JSX.Element;
|
|
531
|
+
displayName: string;
|
|
532
|
+
};
|
|
533
|
+
|
|
387
534
|
interface RadioGroupItemProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "type"> {
|
|
388
535
|
children?: React.ReactNode;
|
|
389
536
|
}
|
|
@@ -653,4 +800,4 @@ declare const tableClasses: {
|
|
|
653
800
|
readonly caption: "sv-table__caption";
|
|
654
801
|
};
|
|
655
802
|
|
|
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 };
|
|
803
|
+
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 };
|
package/dist/react/index.d.ts
CHANGED
|
@@ -342,7 +342,7 @@ declare function Badge({ className, variant, ...props }: BadgeProps): React.JSX.
|
|
|
342
342
|
* same whatever library draws it, which is what keeps a future swap of source
|
|
343
343
|
* out of the public API.
|
|
344
344
|
*/
|
|
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';
|
|
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' | 'camera' | 'blocked' | 'pending';
|
|
346
346
|
|
|
347
347
|
interface IconProps extends Omit<React.SVGProps<SVGSVGElement>, 'ref'> {
|
|
348
348
|
name: IconName;
|
|
@@ -384,6 +384,153 @@ interface CheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>
|
|
|
384
384
|
}
|
|
385
385
|
declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>;
|
|
386
386
|
|
|
387
|
+
interface SeparatorProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
388
|
+
orientation?: "horizontal" | "vertical";
|
|
389
|
+
/**
|
|
390
|
+
* `true` (default, matching shadcn/ui upstream): a purely visual divider,
|
|
391
|
+
* so it stays out of the accessibility tree — no `role`, no
|
|
392
|
+
* `aria-orientation`. Pass `false` for a divider that carries real
|
|
393
|
+
* meaning (e.g. between two distinct sign-in methods) to expose
|
|
394
|
+
* `role="separator"` and, when vertical, `aria-orientation="vertical"`.
|
|
395
|
+
*/
|
|
396
|
+
decorative?: boolean;
|
|
397
|
+
}
|
|
398
|
+
declare const Separator: React.ForwardRefExoticComponent<SeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
399
|
+
|
|
400
|
+
interface ProgressProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
401
|
+
/** Current amount. Clamped to `[0, max]` — never renders past the track. */
|
|
402
|
+
value?: number;
|
|
403
|
+
/** 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`). */
|
|
404
|
+
max?: number;
|
|
405
|
+
}
|
|
406
|
+
declare const Progress: React.ForwardRefExoticComponent<ProgressProps & React.RefAttributes<HTMLDivElement>>;
|
|
407
|
+
|
|
408
|
+
interface PaginationProps extends React.ComponentPropsWithoutRef<"nav"> {
|
|
409
|
+
}
|
|
410
|
+
/**
|
|
411
|
+
* The root landmark. `aria-label="pagination"` is the one static string a
|
|
412
|
+
* consumer cannot override — spread order matters here the same way
|
|
413
|
+
* Dialog's `aria-modal` does — the label is what tells assistive tech
|
|
414
|
+
* which `<nav>` this is among possibly several on the page.
|
|
415
|
+
*/
|
|
416
|
+
declare const Pagination: {
|
|
417
|
+
({ className, ...props }: PaginationProps): React.JSX.Element;
|
|
418
|
+
displayName: string;
|
|
419
|
+
};
|
|
420
|
+
type PaginationContentProps = React.ComponentPropsWithoutRef<"ul">;
|
|
421
|
+
declare const PaginationContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
|
422
|
+
type PaginationItemProps = React.ComponentPropsWithoutRef<"li">;
|
|
423
|
+
declare const PaginationItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
|
|
424
|
+
interface PaginationLinkOwnProps {
|
|
425
|
+
isActive?: boolean;
|
|
426
|
+
}
|
|
427
|
+
type PaginationLinkProps = PaginationLinkOwnProps & Omit<React.ComponentPropsWithoutRef<"a">, "href"> & {
|
|
428
|
+
href?: string;
|
|
429
|
+
};
|
|
430
|
+
/**
|
|
431
|
+
* Renders an `<a>` when `href` is passed (real navigation: SEO, right-click
|
|
432
|
+
* "open in new tab"), a `<button type="button">` otherwise (client-side page
|
|
433
|
+
* state with no URL to point at) — never a third `as` prop to pick between
|
|
434
|
+
* them, because these are the only two real call sites (AD, design.md).
|
|
435
|
+
*/
|
|
436
|
+
declare const PaginationLink: React.ForwardRefExoticComponent<PaginationLinkOwnProps & Omit<Omit<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref">, "href"> & {
|
|
437
|
+
href?: string;
|
|
438
|
+
} & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
439
|
+
interface PaginationPreviousProps extends Omit<PaginationLinkProps, "children"> {
|
|
440
|
+
/** Accessible + visible label. Defaults to English, like closeLabel on DialogContent — override for i18n. */
|
|
441
|
+
label?: string;
|
|
442
|
+
}
|
|
443
|
+
declare const PaginationPrevious: React.ForwardRefExoticComponent<PaginationPreviousProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
444
|
+
interface PaginationNextProps extends Omit<PaginationLinkProps, "children"> {
|
|
445
|
+
label?: string;
|
|
446
|
+
}
|
|
447
|
+
declare const PaginationNext: React.ForwardRefExoticComponent<PaginationNextProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
448
|
+
type PaginationEllipsisProps = React.ComponentPropsWithoutRef<"span">;
|
|
449
|
+
/** Not a link — there is nothing to focus or activate, only a visual "more pages" marker. */
|
|
450
|
+
declare const PaginationEllipsis: {
|
|
451
|
+
({ className, ...props }: PaginationEllipsisProps): React.JSX.Element;
|
|
452
|
+
displayName: string;
|
|
453
|
+
};
|
|
454
|
+
|
|
455
|
+
/**
|
|
456
|
+
* SVG chart primitives — visual geometry only, reading the system's own
|
|
457
|
+
* tokens for grid/axis color and taking series color as a prop (the three
|
|
458
|
+
* series tokens, `var(--sv-accent-ink)` / `var(--sv-info-ink)` /
|
|
459
|
+
* `var(--sv-warning-ink)`, are the system's contract; which series maps to
|
|
460
|
+
* which token is the consumer's call, same as it is today).
|
|
461
|
+
*
|
|
462
|
+
* Deliberately NOT a charting engine: every geometry prop here (`points`,
|
|
463
|
+
* `positions`, `ticks`, `bars`) is already in pixel space. Mapping a domain
|
|
464
|
+
* value (a clinical score, a percentage) to that space is application logic,
|
|
465
|
+
* not a design-system concern — see design.md's Assumptions table.
|
|
466
|
+
*/
|
|
467
|
+
interface ChartContainerProps {
|
|
468
|
+
width: number;
|
|
469
|
+
height: number;
|
|
470
|
+
/** The chart's accessible name. Omit only when an adjacent visible caption already names it. */
|
|
471
|
+
"aria-label"?: string;
|
|
472
|
+
className?: string;
|
|
473
|
+
children?: React.ReactNode;
|
|
474
|
+
}
|
|
475
|
+
declare const ChartContainer: React.ForwardRefExoticComponent<ChartContainerProps & React.RefAttributes<SVGSVGElement>>;
|
|
476
|
+
interface ChartGridProps {
|
|
477
|
+
orientation: "horizontal" | "vertical";
|
|
478
|
+
/** Position, along the axis perpendicular to the line's own direction, of each grid line. */
|
|
479
|
+
positions: number[];
|
|
480
|
+
/** Line length — the far edge each horizontal line reaches on x, or each vertical line reaches on y. */
|
|
481
|
+
width: number;
|
|
482
|
+
className?: string;
|
|
483
|
+
}
|
|
484
|
+
declare const ChartGrid: {
|
|
485
|
+
({ orientation, positions, width, className }: ChartGridProps): React.JSX.Element;
|
|
486
|
+
displayName: string;
|
|
487
|
+
};
|
|
488
|
+
interface ChartTick {
|
|
489
|
+
position: number;
|
|
490
|
+
label: string;
|
|
491
|
+
}
|
|
492
|
+
interface ChartAxisProps {
|
|
493
|
+
orientation: "bottom" | "left";
|
|
494
|
+
ticks: ChartTick[];
|
|
495
|
+
/** Baseline length — how far along its own axis the line runs. */
|
|
496
|
+
length: number;
|
|
497
|
+
className?: string;
|
|
498
|
+
}
|
|
499
|
+
declare const ChartAxis: {
|
|
500
|
+
({ orientation, ticks, length, className }: ChartAxisProps): React.JSX.Element;
|
|
501
|
+
displayName: string;
|
|
502
|
+
};
|
|
503
|
+
interface ChartPoint {
|
|
504
|
+
x: number;
|
|
505
|
+
y: number;
|
|
506
|
+
}
|
|
507
|
+
interface ChartLineProps {
|
|
508
|
+
points: ChartPoint[];
|
|
509
|
+
/** A `var(--sv-*-ink)` series token, or any valid CSS color. */
|
|
510
|
+
color: string;
|
|
511
|
+
className?: string;
|
|
512
|
+
}
|
|
513
|
+
declare const ChartLine: {
|
|
514
|
+
({ points, color, className }: ChartLineProps): React.JSX.Element;
|
|
515
|
+
displayName: string;
|
|
516
|
+
};
|
|
517
|
+
interface ChartBarDatum {
|
|
518
|
+
x: number;
|
|
519
|
+
y: number;
|
|
520
|
+
width: number;
|
|
521
|
+
height: number;
|
|
522
|
+
}
|
|
523
|
+
interface ChartBarProps {
|
|
524
|
+
bars: ChartBarDatum[];
|
|
525
|
+
/** A `var(--sv-*-ink)` series token, or any valid CSS color. */
|
|
526
|
+
color: string;
|
|
527
|
+
className?: string;
|
|
528
|
+
}
|
|
529
|
+
declare const ChartBar: {
|
|
530
|
+
({ bars, color, className }: ChartBarProps): React.JSX.Element;
|
|
531
|
+
displayName: string;
|
|
532
|
+
};
|
|
533
|
+
|
|
387
534
|
interface RadioGroupItemProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "type"> {
|
|
388
535
|
children?: React.ReactNode;
|
|
389
536
|
}
|
|
@@ -653,4 +800,4 @@ declare const tableClasses: {
|
|
|
653
800
|
readonly caption: "sv-table__caption";
|
|
654
801
|
};
|
|
655
802
|
|
|
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 };
|
|
803
|
+
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 };
|