@hirobius/design-system 0.15.0 → 0.17.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.
Files changed (96) hide show
  1. package/README.md +26 -70
  2. package/dist/chunks/LanguageContext-CH_bwzCq.js +83 -0
  3. package/dist/chunks/TokenDisplayContext-evZi_214.js +18 -0
  4. package/dist/chunks/activity-feed-C8_e-Btq.js +19955 -0
  5. package/dist/contexts.js +17 -16
  6. package/dist/hirobius-ui.js +3590 -21800
  7. package/dist/manifest.js +11 -11
  8. package/dist/patterns.js +423 -0
  9. package/dist/static.css +4 -4
  10. package/dist/styles.css +1 -1
  11. package/dist/tokens.css +1 -1
  12. package/dist/tokens.js +74 -35
  13. package/dist/types/src/app/components/activity-feed.d.ts +6 -4
  14. package/dist/types/src/app/components/app-shell.d.ts +6 -4
  15. package/dist/types/src/app/components/asset-img.d.ts +3 -1
  16. package/dist/types/src/app/components/avatar-group.d.ts +3 -3
  17. package/dist/types/src/app/components/avatar.d.ts +3 -3
  18. package/dist/types/src/app/components/badge.d.ts +3 -3
  19. package/dist/types/src/app/components/blockquote.d.ts +3 -3
  20. package/dist/types/src/app/components/breadcrumb.d.ts +3 -3
  21. package/dist/types/src/app/components/button-group.d.ts +3 -3
  22. package/dist/types/src/app/components/button.d.ts +6 -6
  23. package/dist/types/src/app/components/calendar.d.ts +3 -1
  24. package/dist/types/src/app/components/callout.d.ts +4 -4
  25. package/dist/types/src/app/components/card.d.ts +5 -5
  26. package/dist/types/src/app/components/carousel.d.ts +6 -4
  27. package/dist/types/src/app/components/checkbox.d.ts +3 -3
  28. package/dist/types/src/app/components/cinematic-link.d.ts +7 -1
  29. package/dist/types/src/app/components/circular-progress.d.ts +3 -3
  30. package/dist/types/src/app/components/code-block.d.ts +20 -18
  31. package/dist/types/src/app/components/command-palette.d.ts +9 -9
  32. package/dist/types/src/app/components/component-instance-matrix.d.ts +8 -2
  33. package/dist/types/src/app/components/disclosure.d.ts +3 -3
  34. package/dist/types/src/app/components/divider.d.ts +4 -4
  35. package/dist/types/src/app/components/doc-link-card.d.ts +6 -4
  36. package/dist/types/src/app/components/error-pattern.d.ts +3 -1
  37. package/dist/types/src/app/components/field.d.ts +4 -4
  38. package/dist/types/src/app/components/file-input.d.ts +7 -5
  39. package/dist/types/src/app/components/foundation-swatch.d.ts +6 -0
  40. package/dist/types/src/app/components/hds-tooltip.d.ts +11 -11
  41. package/dist/types/src/app/components/heading-stack.d.ts +6 -6
  42. package/dist/types/src/app/components/hover-card.d.ts +1 -1
  43. package/dist/types/src/app/components/image-lightbox.d.ts +2 -0
  44. package/dist/types/src/app/components/inline-code.d.ts +3 -3
  45. package/dist/types/src/app/components/input-group.d.ts +3 -3
  46. package/dist/types/src/app/components/input.d.ts +5 -5
  47. package/dist/types/src/app/components/kbd.d.ts +3 -3
  48. package/dist/types/src/app/components/metadata-list.d.ts +3 -3
  49. package/dist/types/src/app/components/nav-group.d.ts +3 -3
  50. package/dist/types/src/app/components/nav-item.d.ts +10 -8
  51. package/dist/types/src/app/components/overflow-list.d.ts +3 -1
  52. package/dist/types/src/app/components/page.d.ts +3 -1
  53. package/dist/types/src/app/components/progress.d.ts +3 -3
  54. package/dist/types/src/app/components/radio.d.ts +3 -3
  55. package/dist/types/src/app/components/reveal.d.ts +3 -1
  56. package/dist/types/src/app/components/segmented-control.d.ts +31 -31
  57. package/dist/types/src/app/components/select.d.ts +29 -0
  58. package/dist/types/src/app/components/selectable-card.d.ts +3 -3
  59. package/dist/types/src/app/components/side-nav.d.ts +6 -4
  60. package/dist/types/src/app/components/skeleton.d.ts +3 -3
  61. package/dist/types/src/app/components/sketch.d.ts +6 -0
  62. package/dist/types/src/app/components/slider.d.ts +3 -3
  63. package/dist/types/src/app/components/spinner.d.ts +3 -3
  64. package/dist/types/src/app/components/stacked-card-rail.d.ts +32 -0
  65. package/dist/types/src/app/components/stat.d.ts +3 -3
  66. package/dist/types/src/app/components/status-dot.d.ts +4 -4
  67. package/dist/types/src/app/components/status-list-item.d.ts +3 -3
  68. package/dist/types/src/app/components/stepper.d.ts +6 -4
  69. package/dist/types/src/app/components/surface.d.ts +4 -4
  70. package/dist/types/src/app/components/table.d.ts +22 -11
  71. package/dist/types/src/app/components/tag.d.ts +4 -4
  72. package/dist/types/src/app/components/text.d.ts +3 -3
  73. package/dist/types/src/app/components/textarea.d.ts +4 -4
  74. package/dist/types/src/app/components/time-input.d.ts +3 -3
  75. package/dist/types/src/app/components/toast.d.ts +3 -3
  76. package/dist/types/src/app/components/toggle-button.d.ts +4 -4
  77. package/dist/types/src/app/components/toggle.d.ts +3 -3
  78. package/dist/types/src/app/components/token.d.ts +23 -17
  79. package/dist/types/src/app/components/toolbar.d.ts +1 -1
  80. package/dist/types/src/app/components/tooltip.d.ts +2 -2
  81. package/dist/types/src/app/components/top-nav.d.ts +3 -1
  82. package/dist/types/src/app/components/tree-list.d.ts +3 -1
  83. package/dist/types/src/app/design-system/generated-token-refs.d.ts +39 -6
  84. package/dist/types/src/app/design-system/generated-token-values.d.ts +12 -16
  85. package/dist/types/src/app/design-system/tokens.d.ts +16 -5
  86. package/dist/types/src/app/layouts/DocLayout.d.ts +0 -2
  87. package/dist/types/src/app/layouts/HdsDocsShell.d.ts +72 -0
  88. package/dist/types/src/app/layouts/HdsSystemDocLayout.d.ts +8 -1
  89. package/dist/types/src/index.d.ts +216 -39
  90. package/dist/types/src/patterns.d.ts +37 -0
  91. package/dist/variables.css +100 -28
  92. package/hirobius.tokens.json +199 -88
  93. package/package.json +43 -28
  94. package/public/hds-manifest.json +1916 -601
  95. package/dist/chunks/TokenDisplayContext-B3gxyQN7.js +0 -96
  96. /package/dist/types/src/app/components/{lab/tokenUtils.d.ts → tokenUtils.d.ts} +0 -0
@@ -4,5 +4,7 @@ export type ErrorPatternProps = {
4
4
  /** Supporting message explaining the recovery state to the user. */
5
5
  message?: string;
6
6
  };
7
- /** @public */
7
+ /**
8
+ * @public
9
+ */
8
10
  export declare function ErrorPattern({ displayText, message, }: ErrorPatternProps): import("react/jsx-runtime").JSX.Element;
@@ -5,10 +5,10 @@
5
5
  */
6
6
  import * as React from 'react';
7
7
  import { type VariantProps } from 'class-variance-authority';
8
- declare const fieldValueVariants: (props?: {
9
- tone?: "success" | "danger" | "warning" | "info" | "neutral";
10
- mono?: boolean;
11
- } & import("class-variance-authority/dist/types").ClassProp) => string;
8
+ declare const fieldValueVariants: (props?: ({
9
+ tone?: "success" | "danger" | "warning" | "info" | "neutral" | null | undefined;
10
+ mono?: boolean | null | undefined;
11
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
12
12
  type FieldValueVariantProps = VariantProps<typeof fieldValueVariants>;
13
13
  /** @public */
14
14
  export interface FieldProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'>, FieldValueVariantProps {
@@ -6,10 +6,10 @@
6
6
  * @public
7
7
  */
8
8
  import * as React from 'react';
9
- declare const fileInputVariants: (props?: {
10
- dragging?: boolean;
11
- disabled?: boolean;
12
- } & import("class-variance-authority/dist/types").ClassProp) => string;
9
+ declare const fileInputVariants: (props?: ({
10
+ dragging?: boolean | null | undefined;
11
+ disabled?: boolean | null | undefined;
12
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
13
13
  export interface FileInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type' | 'onChange'> {
14
14
  /** Called with the selected (or dropped) files. */
15
15
  onFiles?: (files: File[]) => void;
@@ -22,7 +22,9 @@ export interface FileInputProps extends Omit<React.InputHTMLAttributes<HTMLInput
22
22
  /** Disable interaction. */
23
23
  disabled?: boolean;
24
24
  }
25
- /** A dashed dropzone that opens the native file picker or accepts a drag-and-drop. */
25
+ /**
26
+ * A dashed dropzone that opens the native file picker or accepts a drag-and-drop.
27
+ */
26
28
  export declare const FileInput: React.ForwardRefExoticComponent<FileInputProps & React.RefAttributes<HTMLInputElement>>;
27
29
  /** @internal — CVA variant helper; compose via FileInput props instead. */
28
30
  export { fileInputVariants };
@@ -35,5 +35,11 @@ export type FoundationSwatchProps = {
35
35
  /** Explicit color value (hex or CSS var name) to pin the token chip's swatch square, overriding auto-resolution from tokenPath. */
36
36
  swatchVar?: string;
37
37
  };
38
+ /**
39
+ * FoundationSwatch - governed foundation specimen for color and semantic role previews.
40
+ *
41
+ * @deprecated FoundationSwatch is an HDS docs/lab internal (foundation specimen preview for the token/foundation doc pages), not a consumer-facing HDS surface. It will be retiered to `utility` (dropped from the published barrel) at the named major.
42
+ * @removeIn 1.0.0
43
+ */
38
44
  export declare function FoundationSwatch({ label, hidePreviewLabel, tokenPath, tokenDisplayPreset, previewPosition, background, value, details, foreground, specimen, note, bordered, swatchVar, }: FoundationSwatchProps): import("react/jsx-runtime").JSX.Element;
39
45
  export {};
@@ -1,21 +1,21 @@
1
1
  /**
2
- * HdsTooltip — accessible hover/focus tooltip on Radix (Overlays).
2
+ * Tooltip — accessible hover/focus tooltip on Radix (Overlays).
3
3
  * @category Overlays
4
4
  * @tier primitive
5
5
  * @doc-exempt: no Overlays doc page yet — add demo when the overlays page is created
6
6
  *
7
7
  * Radix Tooltip (@radix-ui/react-tooltip) themed with role tokens. Provides
8
8
  * Floating-UI collision-aware positioning, ARIA wiring, keyboard focus support,
9
- * open/close delay, and portal mounting out of the box. Unlike the legacy
10
- * `Tooltip` (an @internal image-expand pill bound to AssetImg), this is the
9
+ * open/close delay, and portal mounting out of the box. Unlike the
10
+ * internal `ExpandTooltip` (an @internal image-expand pill bound to AssetImg), this is the
11
11
  * general-purpose accessible tooltip for labelling controls.
12
12
  *
13
- * <HdsTooltip>
14
- * <HdsTooltip.Trigger asChild>
13
+ * <Tooltip>
14
+ * <Tooltip.Trigger asChild>
15
15
  * <IconButton icon={Link} aria-label="Copy link" />
16
- * </HdsTooltip.Trigger>
17
- * <HdsTooltip.Content>Copy link</HdsTooltip.Content>
18
- * </HdsTooltip>
16
+ * </Tooltip.Trigger>
17
+ * <Tooltip.Content>Copy link</Tooltip.Content>
18
+ * </Tooltip>
19
19
  *
20
20
  * Skin: inverse surface bubble (semantic.color.surface.inverse) + inverse
21
21
  * content text (semantic.color.content.inverse) — these are a designed pair, so
@@ -36,10 +36,10 @@ interface HdsTooltipComponent extends React.FC<React.ComponentProps<typeof Toolt
36
36
  Content: typeof HdsTooltipContent;
37
37
  }
38
38
  /**
39
- * Tooltip root. Bakes in the Radix Provider so a single `<HdsTooltip>` is
39
+ * Tooltip root. Bakes in the Radix Provider so a single `<Tooltip>` is
40
40
  * self-contained — no app-level provider required. Controlled via
41
41
  * `open`/`onOpenChange`, or uncontrolled with `defaultOpen`.
42
42
  * @public
43
43
  */
44
- declare const HdsTooltip: HdsTooltipComponent;
45
- export { HdsTooltip };
44
+ declare const Tooltip: HdsTooltipComponent;
45
+ export { Tooltip };
@@ -18,12 +18,12 @@
18
18
  */
19
19
  import { type ElementType } from 'react';
20
20
  import { type VariantProps } from 'class-variance-authority';
21
- declare const headingStackVariants: (props?: {
22
- gap?: "px4" | "px8";
23
- } & import("class-variance-authority/dist/types").ClassProp) => string;
24
- declare const headingStackLevelVariants: (props?: {
25
- level?: "heading1" | "heading2" | "heading3";
26
- } & import("class-variance-authority/dist/types").ClassProp) => string;
21
+ declare const headingStackVariants: (props?: ({
22
+ gap?: "px4" | "px8" | null | undefined;
23
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
24
+ declare const headingStackLevelVariants: (props?: ({
25
+ level?: "heading1" | "heading2" | "heading3" | null | undefined;
26
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
27
27
  type HeadingStackGapVariantProps = VariantProps<typeof headingStackVariants>;
28
28
  type HeadingStackLevelVariantProps = VariantProps<typeof headingStackLevelVariants>;
29
29
  type HdsHeadingLevel = NonNullable<HeadingStackLevelVariantProps['level']>;
@@ -7,7 +7,7 @@
7
7
  * Radix HoverCard (@radix-ui/react-hover-card) themed with the overlay role
8
8
  * tokens to match Menu/Popover. For sighted-pointer preview affordances (user
9
9
  * cards, link previews) — it is NOT a replacement for an accessible tooltip on
10
- * an interactive control; use HdsTooltip for labelling.
10
+ * an interactive control; use Tooltip for labelling.
11
11
  *
12
12
  * <HoverCard>
13
13
  * <HoverCard.Trigger asChild><InlineLink href="…">@ada</InlineLink></HoverCard.Trigger>
@@ -9,4 +9,6 @@ export interface LightboxProps {
9
9
  captionHref?: string;
10
10
  captionLabel?: string;
11
11
  }
12
+ /**
13
+ */
12
14
  export declare function Lightbox({ open, onClose, src, alt, naturalWidth, naturalHeight, caption, captionHref, captionLabel, }: LightboxProps): import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,8 @@
1
1
  import type { CSSProperties, ReactNode } from 'react';
2
2
  import { type VariantProps } from 'class-variance-authority';
3
- declare const inlineCodeVariants: (props?: {
4
- density?: "compact" | "comfortable";
5
- } & import("class-variance-authority/dist/types").ClassProp) => string;
3
+ declare const inlineCodeVariants: (props?: ({
4
+ density?: "compact" | "comfortable" | null | undefined;
5
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
6
6
  type InlineCodeVariantProps = VariantProps<typeof inlineCodeVariants>;
7
7
  export type InlineCodeProps = {
8
8
  children: ReactNode;
@@ -5,9 +5,9 @@
5
5
  */
6
6
  import * as React from 'react';
7
7
  import { type VariantProps } from 'class-variance-authority';
8
- declare const inputGroupVariants: (props?: {
9
- size?: "sm" | "md" | "lg";
10
- } & import("class-variance-authority/dist/types").ClassProp) => string;
8
+ declare const inputGroupVariants: (props?: ({
9
+ size?: "sm" | "md" | "lg" | null | undefined;
10
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
11
11
  type InputGroupVariantProps = VariantProps<typeof inputGroupVariants>;
12
12
  /** @public */
13
13
  export interface InputGroupProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'>, InputGroupVariantProps {
@@ -6,11 +6,11 @@
6
6
  */
7
7
  import * as React from 'react';
8
8
  import { type VariantProps } from 'class-variance-authority';
9
- declare const inputVariants: (props?: {
10
- size?: "sm" | "md" | "lg";
11
- textStyle?: "body" | "mono";
12
- invalid?: boolean;
13
- } & import("class-variance-authority/dist/types").ClassProp) => string;
9
+ declare const inputVariants: (props?: ({
10
+ size?: "sm" | "md" | "lg" | null | undefined;
11
+ textStyle?: "body" | "mono" | null | undefined;
12
+ invalid?: boolean | null | undefined;
13
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
14
14
  type InputFieldType = 'text' | 'email' | 'password' | 'search' | 'tel' | 'url' | 'number';
15
15
  /** @public */
16
16
  export type InputSize = NonNullable<VariantProps<typeof inputVariants>['size']>;
@@ -5,9 +5,9 @@
5
5
  */
6
6
  import * as React from 'react';
7
7
  import { type VariantProps } from 'class-variance-authority';
8
- declare const kbdVariants: (props?: {
9
- size?: "sm" | "md" | "lg";
10
- } & import("class-variance-authority/dist/types").ClassProp) => string;
8
+ declare const kbdVariants: (props?: ({
9
+ size?: "sm" | "md" | "lg" | null | undefined;
10
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
11
11
  type KbdVariantProps = VariantProps<typeof kbdVariants>;
12
12
  /** @public */
13
13
  export interface KbdProps extends React.HTMLAttributes<HTMLElement>, KbdVariantProps {
@@ -7,9 +7,9 @@
7
7
  */
8
8
  import * as React from 'react';
9
9
  import { type VariantProps } from 'class-variance-authority';
10
- declare const metadataListVariants: (props?: {
11
- orientation?: "horizontal" | "vertical";
12
- } & import("class-variance-authority/dist/types").ClassProp) => string;
10
+ declare const metadataListVariants: (props?: ({
11
+ orientation?: "horizontal" | "vertical" | null | undefined;
12
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
13
13
  type MetadataListVariantProps = VariantProps<typeof metadataListVariants>;
14
14
  /** A single term/description pair rendered by MetadataList. */
15
15
  export interface MetadataListItem {
@@ -7,9 +7,9 @@ type NavItem = {
7
7
  disabled?: boolean;
8
8
  };
9
9
  type NavGroupVariant = 'side' | 'toc';
10
- declare const navGroupLabelVariants: (props?: {
11
- variant?: "side" | "toc";
12
- } & import("class-variance-authority/dist/types").ClassProp) => string;
10
+ declare const navGroupLabelVariants: (props?: ({
11
+ variant?: "side" | "toc" | null | undefined;
12
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
13
13
  export type NavGroupProps = {
14
14
  label?: string;
15
15
  variant?: NavGroupVariant;
@@ -1,13 +1,13 @@
1
1
  import type { AnchorHTMLAttributes, MouseEvent } from 'react';
2
2
  import { type VariantProps } from 'class-variance-authority';
3
3
  import { type NavLevel } from '../lib/navLevels.js';
4
- declare const navItemVariants: (props?: {
5
- variant?: "side" | "toc";
6
- state?: "default" | "active" | "disabled" | "focus" | "hover";
7
- } & import("class-variance-authority/dist/types").ClassProp) => string;
8
- declare const navIndicatorVariants: (props?: {
9
- state?: "default" | "active" | "disabled" | "focus" | "hover";
10
- } & import("class-variance-authority/dist/types").ClassProp) => string;
4
+ declare const navItemVariants: (props?: ({
5
+ variant?: "side" | "toc" | null | undefined;
6
+ state?: "default" | "active" | "disabled" | "focus" | "hover" | null | undefined;
7
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
8
+ declare const navIndicatorVariants: (props?: ({
9
+ state?: "default" | "active" | "disabled" | "focus" | "hover" | null | undefined;
10
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
11
11
  type NavItemVariantProps = VariantProps<typeof navItemVariants>;
12
12
  type NavVariant = NonNullable<NavItemVariantProps['variant']>;
13
13
  type NavNativeProps = Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'children' | 'onClick'>;
@@ -25,7 +25,9 @@ export interface NavProps extends NavNativeProps {
25
25
  /** Navigation callback fired before the browser follows the link. */
26
26
  onNavigate?: (event: MouseEvent<HTMLAnchorElement>) => void;
27
27
  }
28
- /** @public */
28
+ /**
29
+ * @public
30
+ */
29
31
  export declare function NavItem({ variant, label, href, active, disabled, level, onNavigate, className, style, onFocus, onMouseEnter, onMouseLeave, onPointerDown, onPointerUp, onPointerCancel, onBlur, ...rest }: NavProps): import("react/jsx-runtime").JSX.Element;
30
32
  /** @internal — CVA variant helpers; compose via NavItem props instead. */
31
33
  export { navItemVariants, navIndicatorVariants };
@@ -15,5 +15,7 @@ export interface OverflowListProps extends React.HTMLAttributes<HTMLDivElement>
15
15
  /** Custom renderer for the overflow node. Defaults to a muted `+N` chip. */
16
16
  renderOverflow?: (count: number) => React.ReactNode;
17
17
  }
18
- /** Renders up to `max` children followed by a `+N` overflow chip (or custom node). */
18
+ /**
19
+ * Renders up to `max` children followed by a `+N` overflow chip (or custom node).
20
+ */
19
21
  export declare const OverflowList: React.ForwardRefExoticComponent<OverflowListProps & React.RefAttributes<HTMLDivElement>>;
@@ -38,6 +38,8 @@ export interface PageProps {
38
38
  style?: CSSProperties;
39
39
  className?: string;
40
40
  }
41
- /** @public */
41
+ /**
42
+ * @public
43
+ */
42
44
  export declare function Page({ children, maxWidth, paddingY, style, className, }: PageProps): import("react/jsx-runtime").JSX.Element;
43
45
  export {};
@@ -6,9 +6,9 @@
6
6
  */
7
7
  import * as React from 'react';
8
8
  import { type VariantProps } from 'class-variance-authority';
9
- declare const progressTrackVariants: (props?: {
10
- size?: "sm" | "md" | "lg";
11
- } & import("class-variance-authority/dist/types").ClassProp) => string;
9
+ declare const progressTrackVariants: (props?: ({
10
+ size?: "sm" | "md" | "lg" | null | undefined;
11
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
12
12
  type ProgressVariantProps = VariantProps<typeof progressTrackVariants>;
13
13
  /** @public */
14
14
  export interface ProgressProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'role'>, ProgressVariantProps {
@@ -1,11 +1,11 @@
1
1
  /**
2
- * HdsRadio — radio button with animated selection indicator.
2
+ * Radio — radio button with animated selection indicator.
3
3
  * @category Inputs
4
4
  * @tier primitive
5
5
  * @figma https://www.figma.com/design/c8MaVgwxOlxm4wr8wnH0Z4/HDS-Tokens-Components?node-id=36-17
6
6
  */
7
7
  import type { InputHTMLAttributes } from 'react';
8
- /** HdsRadio — radio button with animated selection indicator. */
8
+ /** Radio — radio button with animated selection indicator. */
9
9
  export type HdsRadioDemoState = 'rest' | 'hover' | 'focused' | 'pressed' | 'disabled';
10
10
  export interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'checked' | 'onChange'> {
11
11
  /** Radio label displayed next to the control. */
@@ -15,4 +15,4 @@ export interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>,
15
15
  /** Called when the radio changes. */
16
16
  onChange: (v: boolean) => void;
17
17
  }
18
- export declare const HdsRadio: import("react").ForwardRefExoticComponent<RadioProps & import("react").RefAttributes<HTMLInputElement>>;
18
+ export declare const Radio: import("react").ForwardRefExoticComponent<RadioProps & import("react").RefAttributes<HTMLInputElement>>;
@@ -26,5 +26,7 @@ export interface RevealProps {
26
26
  /** Element rendered as the wrapper. Defaults to 'div'. */
27
27
  as?: React.ElementType;
28
28
  }
29
- /** @public */
29
+ /**
30
+ * @public
31
+ */
30
32
  export declare const Reveal: React.ForwardRefExoticComponent<RevealProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,35 +1,35 @@
1
1
  import { type VariantProps } from 'class-variance-authority';
2
- declare const segmentedControlWrapperVariants: (props?: {
3
- fullWidth?: boolean;
4
- } & import("class-variance-authority/dist/types").ClassProp) => string;
5
- declare const segmentedControlRailVariants: (props?: {
6
- variant?: "primary" | "secondary";
7
- fullWidth?: boolean;
8
- } & import("class-variance-authority/dist/types").ClassProp) => string;
9
- declare const segmentedControlItemVariants: (props?: {
10
- size?: "sm" | "md";
11
- fullWidth?: boolean;
12
- variant?: "primary" | "secondary";
13
- active?: boolean;
14
- interaction?: "rest" | "hover" | "pressed";
15
- disabled?: boolean;
16
- } & import("class-variance-authority/dist/types").ClassProp) => string;
17
- declare const segmentedControlIndicatorVariants: (props?: {
18
- variant?: "primary" | "secondary";
19
- active?: boolean;
20
- interaction?: "rest" | "hover" | "pressed";
21
- disabled?: boolean;
22
- } & import("class-variance-authority/dist/types").ClassProp) => string;
23
- declare const segmentedControlDescriptionVariants: (props?: {
24
- variant?: "primary" | "secondary";
25
- active?: boolean;
26
- interaction?: "rest" | "hover" | "pressed";
27
- disabled?: boolean;
28
- } & import("class-variance-authority/dist/types").ClassProp) => string;
29
- declare const segmentedControlFocusRingVariants: (props?: {
30
- variant?: "primary" | "secondary";
31
- } & import("class-variance-authority/dist/types").ClassProp) => string;
32
- declare const segmentedControlLabelVariants: (props?: import("class-variance-authority/dist/types").ClassProp) => string;
2
+ declare const segmentedControlWrapperVariants: (props?: ({
3
+ fullWidth?: boolean | null | undefined;
4
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
5
+ declare const segmentedControlRailVariants: (props?: ({
6
+ variant?: "primary" | "secondary" | null | undefined;
7
+ fullWidth?: boolean | null | undefined;
8
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
9
+ declare const segmentedControlItemVariants: (props?: ({
10
+ size?: "sm" | "md" | null | undefined;
11
+ fullWidth?: boolean | null | undefined;
12
+ variant?: "primary" | "secondary" | null | undefined;
13
+ active?: boolean | null | undefined;
14
+ interaction?: "rest" | "hover" | "pressed" | null | undefined;
15
+ disabled?: boolean | null | undefined;
16
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
17
+ declare const segmentedControlIndicatorVariants: (props?: ({
18
+ variant?: "primary" | "secondary" | null | undefined;
19
+ active?: boolean | null | undefined;
20
+ interaction?: "rest" | "hover" | "pressed" | null | undefined;
21
+ disabled?: boolean | null | undefined;
22
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
23
+ declare const segmentedControlDescriptionVariants: (props?: ({
24
+ variant?: "primary" | "secondary" | null | undefined;
25
+ active?: boolean | null | undefined;
26
+ interaction?: "rest" | "hover" | "pressed" | null | undefined;
27
+ disabled?: boolean | null | undefined;
28
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
29
+ declare const segmentedControlFocusRingVariants: (props?: ({
30
+ variant?: "primary" | "secondary" | null | undefined;
31
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
32
+ declare const segmentedControlLabelVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
33
33
  type SegmentedItemVariantProps = VariantProps<typeof segmentedControlItemVariants>;
34
34
  interface HdsSegmentedOption {
35
35
  /** Value submitted when this option is selected. */
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Select — dropdown selector built on Radix Select.
3
+ * @category Inputs
4
+ * @tier primitive
5
+ * @figma https://www.figma.com/design/c8MaVgwxOlxm4wr8wnH0Z4/HDS-Tokens-Components?node-id=82-49
6
+ */
7
+ /**
8
+ * Select — dropdown selector built on Radix Select (ADR-001 Radix convention).
9
+ * Radix owns the listbox a11y contract: managed focus + active-descendant, typeahead,
10
+ * full keyboard (Home/End/PageUp-Down/wrap), Popper collision/flip positioning, and
11
+ * dismissal. The HDS surface is styled with the token-backed Tailwind idiom used by
12
+ * tabs.tsx / command-palette.tsx; `ref` targets the trigger button.
13
+ */
14
+ export interface SelectProps {
15
+ /** Select label rendered above the control. */
16
+ label: string;
17
+ /** Controls whether the label is rendered. */
18
+ showLabel?: boolean;
19
+ /** Select options displayed in the dropdown. */
20
+ options: {
21
+ value: string;
22
+ label: string;
23
+ }[];
24
+ /** Currently selected value. */
25
+ value: string;
26
+ /** Called when the user picks a different option. */
27
+ onChange: (v: string) => void;
28
+ }
29
+ export declare const Select: import("react").ForwardRefExoticComponent<SelectProps & import("react").RefAttributes<HTMLButtonElement>>;
@@ -10,9 +10,9 @@
10
10
  */
11
11
  import * as React from 'react';
12
12
  import { type VariantProps } from 'class-variance-authority';
13
- declare const selectableCardVariants: (props?: {
14
- selected?: boolean;
15
- } & import("class-variance-authority/dist/types").ClassProp) => string;
13
+ declare const selectableCardVariants: (props?: ({
14
+ selected?: boolean | null | undefined;
15
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
16
16
  type SelectableCardVariantProps = VariantProps<typeof selectableCardVariants>;
17
17
  /** @public */
18
18
  export interface SelectableCardProps extends Omit<React.HTMLAttributes<HTMLButtonElement>, 'onSelect'>, Omit<SelectableCardVariantProps, 'selected'> {
@@ -12,10 +12,12 @@ export interface SideNavProps {
12
12
  indent?: boolean | number;
13
13
  onNavigate?: (event: MouseEvent<HTMLAnchorElement>) => void;
14
14
  }
15
- declare const sideNavVariants: (props?: {
16
- level?: "root" | "nested";
17
- state?: "default" | "active" | "disabled" | "focus" | "hover";
18
- } & import("class-variance-authority/dist/types").ClassProp) => string;
15
+ declare const sideNavVariants: (props?: ({
16
+ level?: "root" | "nested" | null | undefined;
17
+ state?: "default" | "active" | "disabled" | "focus" | "hover" | null | undefined;
18
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
19
+ /**
20
+ */
19
21
  export declare function SideNav({ label, href, active, disabled, titleLabel, level, indent, onNavigate, }: SideNavProps): import("react/jsx-runtime").JSX.Element;
20
22
  /** @internal — CVA variant helper; compose via SideNav props instead. */
21
23
  export { sideNavVariants };
@@ -6,9 +6,9 @@
6
6
  */
7
7
  import * as React from 'react';
8
8
  import { type VariantProps } from 'class-variance-authority';
9
- declare const skeletonVariants: (props?: {
10
- variant?: "text" | "rectangular" | "circular";
11
- } & import("class-variance-authority/dist/types").ClassProp) => string;
9
+ declare const skeletonVariants: (props?: ({
10
+ variant?: "text" | "rectangular" | "circular" | null | undefined;
11
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
12
12
  type SkeletonVariantProps = VariantProps<typeof skeletonVariants>;
13
13
  /** @public */
14
14
  export interface SkeletonProps extends React.HTMLAttributes<HTMLDivElement>, SkeletonVariantProps {
@@ -10,4 +10,10 @@ export interface SketchProps {
10
10
  children: ReactNode;
11
11
  controls?: ReactNode;
12
12
  }
13
+ /**
14
+ * Sketch — shared shell for generative canvases and WebGL sketches.
15
+ *
16
+ * @deprecated Sketch is an HDS docs/lab internal (shell for generative canvas/WebGL specimen pages), not a consumer-facing HDS surface. It will be retiered to `utility` (dropped from the published barrel) at the named major.
17
+ * @removeIn 1.0.0
18
+ */
13
19
  export declare function Sketch({ title, children, controls }: SketchProps): import("react/jsx-runtime").JSX.Element;
@@ -1,10 +1,10 @@
1
1
  /**
2
- * HdsSlider — range slider with label and value display.
2
+ * Slider — range slider with label and value display.
3
3
  * @category Inputs
4
4
  * @tier primitive
5
5
  * @figma https://www.figma.com/design/c8MaVgwxOlxm4wr8wnH0Z4/HDS-Tokens-Components?node-id=82-265
6
6
  */
7
- /** HdsSlider — range slider with label and value display. */
7
+ /** Slider — range slider with label and value display. */
8
8
  export interface SliderProps {
9
9
  /** Slider label. */
10
10
  label: string;
@@ -19,4 +19,4 @@ export interface SliderProps {
19
19
  /** Called when the slider value changes. */
20
20
  onChange: (v: number) => void;
21
21
  }
22
- export declare const HdsSlider: import("react").ForwardRefExoticComponent<SliderProps & import("react").RefAttributes<HTMLInputElement>>;
22
+ export declare const Slider: import("react").ForwardRefExoticComponent<SliderProps & import("react").RefAttributes<HTMLInputElement>>;
@@ -6,9 +6,9 @@
6
6
  */
7
7
  import * as React from 'react';
8
8
  import { type VariantProps } from 'class-variance-authority';
9
- declare const spinnerVariants: (props?: {
10
- size?: "sm" | "md" | "lg";
11
- } & import("class-variance-authority/dist/types").ClassProp) => string;
9
+ declare const spinnerVariants: (props?: ({
10
+ size?: "sm" | "md" | "lg" | null | undefined;
11
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
12
12
  type SpinnerVariantProps = VariantProps<typeof spinnerVariants>;
13
13
  /** @public */
14
14
  export interface SpinnerProps extends React.HTMLAttributes<HTMLSpanElement>, SpinnerVariantProps {
@@ -0,0 +1,32 @@
1
+ /**
2
+ * StackedCardRail — horizontally-scrolling stacked card carousel.
3
+ *
4
+ * Scroll mechanism: vertical scroll on an absolutely-positioned inner container
5
+ * is mapped to horizontal scroll on a sticky inner strip via a single scroll
6
+ * event listener. Cards use CSS scroll-driven animation (animation-timeline:
7
+ * view(x …)) for the stack/unstack effect where the browser supports it;
8
+ * a plain horizontal rail is the graceful fallback.
9
+ *
10
+ * Browser compat note:
11
+ * - animation-timeline: view() — Chrome 115+, Firefox 110+ (behind flag until
12
+ * v114), Safari 18+ (TP only as of 2025). The @supports guard ensures the
13
+ * stacking animation is only applied when the feature is available; all other
14
+ * browsers get a clean scrollable row.
15
+ * - :has() selector (neighbour shift on hover) — Chrome 105+, FF 121+, Safari 15.4+.
16
+ * Gated with @supports selector(:has(+ *)).
17
+ *
18
+ * @category Display
19
+ * @tier pattern
20
+ */
21
+ export interface StackedCardRailCard {
22
+ id: string;
23
+ title: string;
24
+ category?: string;
25
+ coverImage?: string;
26
+ href?: string;
27
+ }
28
+ export interface StackedCardRailProps {
29
+ cards: StackedCardRailCard[];
30
+ }
31
+ export declare function StackedCardRail({ cards }: StackedCardRailProps): import("react/jsx-runtime").JSX.Element;
32
+ export default StackedCardRail;
@@ -5,9 +5,9 @@
5
5
  */
6
6
  import * as React from 'react';
7
7
  import { type VariantProps } from 'class-variance-authority';
8
- declare const statVariants: (props?: {
9
- tone?: "success" | "danger" | "warning" | "info" | "neutral";
10
- } & import("class-variance-authority/dist/types").ClassProp) => string;
8
+ declare const statVariants: (props?: ({
9
+ tone?: "success" | "danger" | "warning" | "info" | "neutral" | null | undefined;
10
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
11
11
  type StatVariantProps = VariantProps<typeof statVariants>;
12
12
  /** @public */
13
13
  export interface StatProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'>, StatVariantProps {
@@ -5,10 +5,10 @@
5
5
  */
6
6
  import * as React from 'react';
7
7
  import { type VariantProps } from 'class-variance-authority';
8
- declare const statusDotVariants: (props?: {
9
- tone?: "success" | "danger" | "warning" | "info" | "neutral" | "inProgress";
10
- size?: "sm" | "md" | "lg";
11
- } & import("class-variance-authority/dist/types").ClassProp) => string;
8
+ declare const statusDotVariants: (props?: ({
9
+ tone?: "success" | "danger" | "warning" | "info" | "neutral" | "inProgress" | null | undefined;
10
+ size?: "sm" | "md" | "lg" | null | undefined;
11
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
12
12
  type StatusDotVariantProps = VariantProps<typeof statusDotVariants>;
13
13
  /** @public */
14
14
  export interface StatusDotProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, 'children'>, StatusDotVariantProps {
@@ -5,9 +5,9 @@
5
5
  */
6
6
  import * as React from 'react';
7
7
  import { type VariantProps } from 'class-variance-authority';
8
- declare const statusListItemDotVariants: (props?: {
9
- tone?: "success" | "danger" | "warning" | "info" | "neutral";
10
- } & import("class-variance-authority/dist/types").ClassProp) => string;
8
+ declare const statusListItemDotVariants: (props?: ({
9
+ tone?: "success" | "danger" | "warning" | "info" | "neutral" | null | undefined;
10
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
11
11
  type StatusListItemVariantProps = VariantProps<typeof statusListItemDotVariants>;
12
12
  /** @public */
13
13
  export type StatusListItemTone = NonNullable<StatusListItemVariantProps['tone']>;