# Expandable List (`expandable-list`) - SignalOS widget

> Generic accordion/expandable list with a built-in default row design (severity accent, progress ring, secondary progress bar). Supply renderCollapsed/renderExpanded to replace the row design entirely. Supports loading, empty, and error states.

- **Version:** 0.4.0
- **Kind:** widget · **Category:** data-display
- **Install:** `npx shadcn@latest add @signalos/expandable-list`
- **Registry dependencies (pulled automatically):** @signalos/tokens, @signalos/utils, @signalos/skeleton, @signalos/badge, @signalos/progress, @signalos/circular-progress
- **npm dependencies:** lucide-react@^1.7.0, class-variance-authority@^0.7.1
- **Files installed:** `src/components/widgets/expandable-list/ExpandableList.tsx`, `src/components/widgets/expandable-list/components/ExpandableListDefaultRow.tsx`, `src/components/widgets/expandable-list/ExpandableList.types.ts`, `src/components/widgets/expandable-list/ExpandableList.utils.ts`, `src/components/widgets/expandable-list/ExpandableList.variant.tsx`

## Access

This is a private registry: pulling source requires a `SIGNALOS_REGISTRY_TOKEN`
(GitHub fine-grained PAT with read access to the signal-widgets repo) and an
`@signalos` entry in components.json `"registries"`. Previews and this document are public.

## Usage

```tsx
import { ExpandableList } from "@/components/widgets/expandable-list/ExpandableList"
```

## Example

```tsx
// Example: default row design, driven entirely by generic item data.
import { ExpandableList } from "@/components/widgets/expandable-list/ExpandableList"
import type { ExpandableListDefaultItem } from "@/components/widgets/expandable-list/ExpandableList.types"

const items: ExpandableListDefaultItem[] = [
  {
    id: "ITEM-1042",
    title:
      "Lane rate deviates from contracted baseline on the Midwest corridor",
    description:
      "Observed spot rates are tracking 8% above the contracted baseline for three consecutive weeks.",
    severity: "high",
    status: "Investigating",
    category: "Pricing",
    metrics: [
      { label: "signals", value: "6" },
      { label: "max deviation", value: "8.2%" },
    ],
    progressPercent: 74,
    progressLabel: "Confidence",
    secondaryProgressLabel: "TTL",
    secondaryProgressPercent: 40,
    relatedLabel: "2 related",
  },
  {
    id: "ITEM-2091",
    title: "SLA breach imminent on carrier onboarding queue",
    severity: "critical",
    banner: "SLA breach imminent",
    secondaryProgressLabel: "TTL",
    secondaryProgressPercent: 12,
    progressPercent: 62,
    progressLabel: "Confidence",
    metrics: [{ label: "signals", value: "3" }],
  },
]

export default function Example() {
  return (
    <ExpandableList
      items={items}
      onViewDetail={(item) => console.info("open detail view", item.id)}
      renderExpandedContent={(item) => (
        <p className="text-[12.5px] text-muted-foreground">
          Additional detail available for {item.title}.
        </p>
      )}
      defaultExpandedIds={["ITEM-1042"]}
    />
  )
}
```

## Props

### `ExpandableListVariant`

```ts
export type ExpandableListVariant = "default" | "compact" | "normal"
```

### `ExpandableListItemSeverity`

```ts
export type ExpandableListItemSeverity =
  "critical" | "high" | "medium" | "low" | "info"
```

### `ExpandableListItem`

| Prop | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `id` | `string` | yes | - |  |

### `ExpandableListMetric`

| Prop | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `label` | `string` | yes | - |  |
| `value` | `string` | yes | - |  |

### `ExpandableListDefaultItem`

| Prop | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `title` | `string` | yes | - |  |
| `description` | `string \| undefined` | no | - |  |
| `severity` | `ExpandableListItemSeverity \| undefined` | no | - |  |
| `status` | `string \| undefined` | no | - |  |
| `category` | `string \| undefined` | no | - |  |
| `metrics` | `readonly ExpandableListMetric[] \| undefined` | no | - |  |
| `createdAtLabel` | `string \| undefined` | no | - |  |
| `progressPercent` | `number \| undefined` | no | - |  |
| `progressLabel` | `string \| undefined` | no | - |  |
| `secondaryProgressLabel` | `string \| undefined` | no | - |  |
| `secondaryProgressPercent` | `number \| undefined` | no | - |  |
| `relatedLabel` | `string \| undefined` | no | - |  |
| `banner` | `string \| null \| undefined` | no | - |  |
| `footerNoteLabel` | `string \| undefined` | no | - |  |
| `footerNoteText` | `string \| undefined` | no | - |  |
| `events` | `DecisionLogEvent[] \| undefined` | no | - |  |
| `act_by_reason` | `string \| null \| undefined` | no | - |  |
| `act_by_deadline` | `string \| null \| undefined` | no | - |  |
| `id` | `string` | yes | - |  |

### `DecisionLogEventType`

```ts
export type DecisionLogEventType =
  | "hypothesis.created"
  | "hypothesis.routed"
  | "hypothesis.expired"
  | "signal.fired"
  | "decision.created"
  | "feedback.submitted"
  | string
```

### `DecisionLogEvent`

| Prop | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `event_type` | `string` | yes | - |  |
| `occurred_at` | `string` | yes | - |  |
| `actor_id` | `string \| null` | yes | - |  |
| `summary` | `string` | yes | - |  |
| `payload` | `Record<string, unknown>` | yes | - |  |

### `ExpandableListProps`

| Prop | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `items` | `readonly TItem[]` | yes | - |  |
| `renderCollapsed` | `((item: TItem, index: number, expanded: boolean) => ReactNode) \| undefined` | no | - | Renders the always-visible row shown before expansion (and while collapsed). Receives the current expanded state so the caller can adapt its own chrome (e.g. a chevron) without extra plumbing.  When omitted (together with `renderExpanded`), each item renders using the built-in default design, driven directly by `TItem`'s `ExpandableListDefaultItem` fields. Supply both to fully replace the row design with your own. |
| `renderExpanded` | `((item: TItem, index: number) => ReactNode) \| undefined` | no | - | Renders the panel revealed after expansion. Only mounted while the item is expanded. See `renderCollapsed` for the default-design fallback. |
| `renderExpandedContent` | `((item: TItem) => ReactNode) \| undefined` | no | - | Extra content appended to the expanded body, below the description. Only used by the built-in default row design. |
| `onViewDetail` | `((item: TItem) => void) \| undefined` | no | - | Shows a "View detail" action row and fires on click. Only used by the built-in default row design. |
| `variant` | `ExpandableListVariant \| undefined` | no | - |  |
| `allowMultiple` | `boolean \| undefined` | no | - | Allow more than one item to be expanded at a time.  Defaults to false (accordion behavior). |
| `disableCollapse` | `boolean \| undefined` | no | `false` | Renders every item permanently expanded and removes the collapse affordance (no toggle button, no chevron). Use for a list that should always show full detail with no accordion behavior. |
| `expandedIds` | `readonly string[] \| undefined` | no | - | Controlled expanded item ids. Provide together with `onExpandedChange` to fully control expansion state. |
| `defaultExpandedIds` | `readonly string[] \| undefined` | no | - | Initial expanded item ids for uncontrolled usage. |
| `onExpandedChange` | `((expandedIds: string[]) => void) \| undefined` | no | - |  |
| `disabledIds` | `readonly string[] \| undefined` | no | - |  |
| `loading` | `boolean \| undefined` | no | - |  |
| `error` | `boolean \| undefined` | no | - |  |
| `errorMessage` | `ReactNode` | no | - |  |
| `emptyTitle` | `ReactNode` | no | - |  |
| `emptyDescription` | `ReactNode` | no | - |  |
| `emptyIcon` | `ReactNode` | no | - |  |
| `skeletonCount` | `number \| undefined` | no | - |  |
| `data-testid` | `string \| undefined` | no | - |  |
| `className` | `string \| undefined` | no | - |  |
| `id` | `string \| undefined` | no | - |  |
| `defaultChecked` | `boolean \| undefined` | no | - |  |
| `defaultValue` | `string \| number \| readonly string[] \| undefined` | no | - |  |
| `suppressContentEditableWarning` | `boolean \| undefined` | no | - |  |
| `suppressHydrationWarning` | `boolean \| undefined` | no | - |  |
| `accessKey` | `string \| undefined` | no | - |  |
| `autoCapitalize` | `"off" \| "none" \| "on" \| "sentences" \| "words" \| "characters" \| (string & {}) \| undefined` | no | - |  |
| `autoFocus` | `boolean \| undefined` | no | - |  |
| `contentEditable` | `Booleanish \| "inherit" \| "plaintext-only" \| undefined` | no | - |  |
| `contextMenu` | `string \| undefined` | no | - |  |
| `dir` | `string \| undefined` | no | - |  |
| `draggable` | `Booleanish \| undefined` | no | - |  |
| `enterKeyHint` | `"enter" \| "done" \| "go" \| "next" \| "previous" \| "search" \| "send" \| undefined` | no | - |  |
| `hidden` | `boolean \| undefined` | no | - |  |
| `lang` | `string \| undefined` | no | - |  |
| `nonce` | `string \| undefined` | no | - |  |
| `slot` | `string \| undefined` | no | - |  |
| `spellCheck` | `Booleanish \| undefined` | no | - |  |
| `style` | `CSSProperties \| undefined` | no | - |  |
| `tabIndex` | `number \| undefined` | no | - |  |
| `title` | `string \| undefined` | no | - |  |
| `translate` | `"yes" \| "no" \| undefined` | no | - |  |
| `radioGroup` | `string \| undefined` | no | - |  |
| `role` | `AriaRole \| undefined` | no | - |  |
| `about` | `string \| undefined` | no | - |  |
| `content` | `string \| undefined` | no | - |  |
| `datatype` | `string \| undefined` | no | - |  |
| `inlist` | `any` | no | - |  |
| `prefix` | `string \| undefined` | no | - |  |
| `property` | `string \| undefined` | no | - |  |
| `rel` | `string \| undefined` | no | - |  |
| `resource` | `string \| undefined` | no | - |  |
| `rev` | `string \| undefined` | no | - |  |
| `typeof` | `string \| undefined` | no | - |  |
| `vocab` | `string \| undefined` | no | - |  |
| `autoCorrect` | `string \| undefined` | no | - |  |
| `autoSave` | `string \| undefined` | no | - |  |
| `color` | `string \| undefined` | no | - |  |
| `itemProp` | `string \| undefined` | no | - |  |
| `itemScope` | `boolean \| undefined` | no | - |  |
| `itemType` | `string \| undefined` | no | - |  |
| `itemID` | `string \| undefined` | no | - |  |
| `itemRef` | `string \| undefined` | no | - |  |
| `results` | `number \| undefined` | no | - |  |
| `security` | `string \| undefined` | no | - |  |
| `unselectable` | `"off" \| "on" \| undefined` | no | - |  |
| `popover` | `"" \| "auto" \| "manual" \| "hint" \| undefined` | no | - |  |
| `popoverTargetAction` | `"toggle" \| "show" \| "hide" \| undefined` | no | - |  |
| `popoverTarget` | `string \| undefined` | no | - |  |
| `inert` | `boolean \| undefined` | no | - |  |
| `inputMode` | `"text" \| "url" \| "none" \| "search" \| "tel" \| "email" \| "numeric" \| "decimal" \| undefined` | no | - | Hints at the type of data that might be entered by the user while editing the element or its contents |
| `is` | `string \| undefined` | no | - | Specify that a standard HTML element should behave like a defined custom built-in element |
| `exportparts` | `string \| undefined` | no | - |  |
| `part` | `string \| undefined` | no | - |  |
| `aria-activedescendant` | `string \| undefined` | no | - | Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application. |
| `aria-atomic` | `Booleanish \| undefined` | no | - | Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute. |
| `aria-autocomplete` | `"none" \| "list" \| "inline" \| "both" \| undefined` | no | - | Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be presented if they are made. |
| `aria-braillelabel` | `string \| undefined` | no | - | Defines a string value that labels the current element, which is intended to be converted into Braille. |
| `aria-brailleroledescription` | `string \| undefined` | no | - | Defines a human-readable, author-localized abbreviated description for the role of an element, which is intended to be converted into Braille. |
| `aria-busy` | `Booleanish \| undefined` | no | - |  |
| `aria-checked` | `boolean \| "true" \| "false" \| "mixed" \| undefined` | no | - | Indicates the current "checked" state of checkboxes, radio buttons, and other widgets. |
| `aria-colcount` | `number \| undefined` | no | - | Defines the total number of columns in a table, grid, or treegrid. |
| `aria-colindex` | `number \| undefined` | no | - | Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid. |
| `aria-colindextext` | `string \| undefined` | no | - | Defines a human readable text alternative of aria-colindex. |
| `aria-colspan` | `number \| undefined` | no | - | Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid. |
| `aria-controls` | `string \| undefined` | no | - | Identifies the element (or elements) whose contents or presence are controlled by the current element. |
| `aria-current` | `boolean \| "page" \| "step" \| "true" \| "false" \| "location" \| "date" \| "time" \| undefined` | no | - | Indicates the element that represents the current item within a container or set of related elements. |
| `aria-describedby` | `string \| undefined` | no | - | Identifies the element (or elements) that describes the object. |
| `aria-description` | `string \| undefined` | no | - | Defines a string value that describes or annotates the current element. |
| `aria-details` | `string \| undefined` | no | - | Identifies the element that provides a detailed, extended description for the object. |
| `aria-disabled` | `Booleanish \| undefined` | no | - | Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable. |
| `aria-dropeffect` | `"none" \| "link" \| "copy" \| "execute" \| "move" \| "popup" \| undefined` | no | - | Indicates what functions can be performed when a dragged object is released on the drop target. |
| `aria-errormessage` | `string \| undefined` | no | - | Identifies the element that provides an error message for the object. |
| `aria-expanded` | `Booleanish \| undefined` | no | - | Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed. |
| `aria-flowto` | `string \| undefined` | no | - | Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion, allows assistive technology to override the general default of reading in document source order. |
| `aria-grabbed` | `Booleanish \| undefined` | no | - | Indicates an element's "grabbed" state in a drag-and-drop operation. |
| `aria-haspopup` | `boolean \| "true" \| "false" \| "dialog" \| "grid" \| "listbox" \| "menu" \| "tree" \| undefined` | no | - | Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element. |
| `aria-hidden` | `Booleanish \| undefined` | no | - | Indicates whether the element is exposed to an accessibility API. |
| `aria-invalid` | `boolean \| "true" \| "false" \| "grammar" \| "spelling" \| undefined` | no | - | Indicates the entered value does not conform to the format expected by the application. |
| `aria-keyshortcuts` | `string \| undefined` | no | - | Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element. |
| `aria-label` | `string \| undefined` | no | - | Defines a string value that labels the current element. |
| `aria-labelledby` | `string \| undefined` | no | - | Identifies the element (or elements) that labels the current element. |
| `aria-level` | `number \| undefined` | no | - | Defines the hierarchical level of an element within a structure. |
| `aria-live` | `"off" \| "assertive" \| "polite" \| undefined` | no | - | Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region. |
| `aria-modal` | `Booleanish \| undefined` | no | - | Indicates whether an element is modal when displayed. |
| `aria-multiline` | `Booleanish \| undefined` | no | - | Indicates whether a text box accepts multiple lines of input or only a single line. |
| `aria-multiselectable` | `Booleanish \| undefined` | no | - | Indicates that the user may select more than one item from the current selectable descendants. |
| `aria-orientation` | `"horizontal" \| "vertical" \| undefined` | no | - | Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous. |
| `aria-owns` | `string \| undefined` | no | - | Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship between DOM elements where the DOM hierarchy cannot be used to represent the relationship. |
| `aria-placeholder` | `string \| undefined` | no | - | Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. A hint could be a sample value or a brief description of the expected format. |
| `aria-posinset` | `number \| undefined` | no | - | Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. |
| `aria-pressed` | `boolean \| "true" \| "false" \| "mixed" \| undefined` | no | - | Indicates the current "pressed" state of toggle buttons. |
| `aria-readonly` | `Booleanish \| undefined` | no | - | Indicates that the element is not editable, but is otherwise operable. |
| `aria-relevant` | `"text" \| "additions" \| "additions removals" \| "additions text" \| "all" \| "removals" \| "removals additions" \| "removals text" \| "text additions" \| "text removals" \| undefined` | no | - | Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified. |
| `aria-required` | `Booleanish \| undefined` | no | - | Indicates that user input is required on the element before a form may be submitted. |
| `aria-roledescription` | `string \| undefined` | no | - | Defines a human-readable, author-localized description for the role of an element. |
| `aria-rowcount` | `number \| undefined` | no | - | Defines the total number of rows in a table, grid, or treegrid. |
| `aria-rowindex` | `number \| undefined` | no | - | Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid. |
| `aria-rowindextext` | `string \| undefined` | no | - | Defines a human readable text alternative of aria-rowindex. |
| `aria-rowspan` | `number \| undefined` | no | - | Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid. |
| `aria-selected` | `Booleanish \| undefined` | no | - | Indicates the current "selected" state of various widgets. |
| `aria-setsize` | `number \| undefined` | no | - | Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. |
| `aria-sort` | `"none" \| "ascending" \| "descending" \| "other" \| undefined` | no | - | Indicates if items in a table or grid are sorted in ascending or descending order. |
| `aria-valuemax` | `number \| undefined` | no | - | Defines the maximum allowed value for a range widget. |
| `aria-valuemin` | `number \| undefined` | no | - | Defines the minimum allowed value for a range widget. |
| `aria-valuenow` | `number \| undefined` | no | - | Defines the current value for a range widget. |
| `aria-valuetext` | `string \| undefined` | no | - | Defines the human readable text alternative of aria-valuenow for a range widget. |
| `dangerouslySetInnerHTML` | `{ __html: string \| TrustedHTML; } \| undefined` | no | - |  |
| `onCopy` | `ClipboardEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onCopyCapture` | `ClipboardEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onCut` | `ClipboardEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onCutCapture` | `ClipboardEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onPaste` | `ClipboardEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onPasteCapture` | `ClipboardEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onCompositionEnd` | `CompositionEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onCompositionEndCapture` | `CompositionEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onCompositionStart` | `CompositionEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onCompositionStartCapture` | `CompositionEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onCompositionUpdate` | `CompositionEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onCompositionUpdateCapture` | `CompositionEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onFocus` | `FocusEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onFocusCapture` | `FocusEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onBlur` | `FocusEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onBlurCapture` | `FocusEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onChange` | `ChangeEventHandler<HTMLDivElement, Element> \| undefined` | no | - |  |
| `onChangeCapture` | `ChangeEventHandler<HTMLDivElement, Element> \| undefined` | no | - |  |
| `onBeforeInput` | `InputEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onBeforeInputCapture` | `InputEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onInput` | `InputEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onInputCapture` | `InputEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onReset` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onResetCapture` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onSubmit` | `SubmitEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onSubmitCapture` | `SubmitEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onInvalid` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onInvalidCapture` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onLoad` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onLoadCapture` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onError` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onErrorCapture` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onKeyDown` | `KeyboardEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onKeyDownCapture` | `KeyboardEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onKeyPress` | `KeyboardEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onKeyPressCapture` | `KeyboardEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onKeyUp` | `KeyboardEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onKeyUpCapture` | `KeyboardEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onAbort` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onAbortCapture` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onCanPlay` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onCanPlayCapture` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onCanPlayThrough` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onCanPlayThroughCapture` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onDurationChange` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onDurationChangeCapture` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onEmptied` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onEmptiedCapture` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onEncrypted` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onEncryptedCapture` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onEnded` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onEndedCapture` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onLoadedData` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onLoadedDataCapture` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onLoadedMetadata` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onLoadedMetadataCapture` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onLoadStart` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onLoadStartCapture` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onPause` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onPauseCapture` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onPlay` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onPlayCapture` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onPlaying` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onPlayingCapture` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onProgress` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onProgressCapture` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onRateChange` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onRateChangeCapture` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onSeeked` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onSeekedCapture` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onSeeking` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onSeekingCapture` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onStalled` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onStalledCapture` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onSuspend` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onSuspendCapture` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onTimeUpdate` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onTimeUpdateCapture` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onVolumeChange` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onVolumeChangeCapture` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onWaiting` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onWaitingCapture` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onAuxClick` | `MouseEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onAuxClickCapture` | `MouseEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onClick` | `MouseEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onClickCapture` | `MouseEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onContextMenu` | `MouseEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onContextMenuCapture` | `MouseEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onDoubleClick` | `MouseEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onDoubleClickCapture` | `MouseEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onDrag` | `DragEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onDragCapture` | `DragEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onDragEnd` | `DragEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onDragEndCapture` | `DragEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onDragEnter` | `DragEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onDragEnterCapture` | `DragEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onDragExit` | `DragEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onDragExitCapture` | `DragEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onDragLeave` | `DragEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onDragLeaveCapture` | `DragEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onDragOver` | `DragEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onDragOverCapture` | `DragEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onDragStart` | `DragEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onDragStartCapture` | `DragEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onDrop` | `DragEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onDropCapture` | `DragEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onMouseDown` | `MouseEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onMouseDownCapture` | `MouseEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onMouseEnter` | `MouseEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onMouseLeave` | `MouseEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onMouseMove` | `MouseEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onMouseMoveCapture` | `MouseEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onMouseOut` | `MouseEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onMouseOutCapture` | `MouseEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onMouseOver` | `MouseEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onMouseOverCapture` | `MouseEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onMouseUp` | `MouseEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onMouseUpCapture` | `MouseEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onSelectCapture` | `ReactEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onTouchCancel` | `TouchEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onTouchCancelCapture` | `TouchEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onTouchEnd` | `TouchEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onTouchEndCapture` | `TouchEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onTouchMove` | `TouchEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onTouchMoveCapture` | `TouchEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onTouchStart` | `TouchEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onTouchStartCapture` | `TouchEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onPointerDown` | `PointerEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onPointerDownCapture` | `PointerEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onPointerMove` | `PointerEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onPointerMoveCapture` | `PointerEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onPointerUp` | `PointerEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onPointerUpCapture` | `PointerEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onPointerCancel` | `PointerEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onPointerCancelCapture` | `PointerEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onPointerEnter` | `PointerEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onPointerLeave` | `PointerEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onPointerOver` | `PointerEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onPointerOverCapture` | `PointerEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onPointerOut` | `PointerEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onPointerOutCapture` | `PointerEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onGotPointerCapture` | `PointerEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onGotPointerCaptureCapture` | `PointerEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onLostPointerCapture` | `PointerEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onLostPointerCaptureCapture` | `PointerEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onScroll` | `UIEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onScrollCapture` | `UIEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onScrollEnd` | `UIEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onScrollEndCapture` | `UIEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onWheel` | `WheelEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onWheelCapture` | `WheelEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onAnimationStart` | `AnimationEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onAnimationStartCapture` | `AnimationEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onAnimationEnd` | `AnimationEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onAnimationEndCapture` | `AnimationEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onAnimationIteration` | `AnimationEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onAnimationIterationCapture` | `AnimationEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onToggle` | `ToggleEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onBeforeToggle` | `ToggleEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onTransitionCancel` | `TransitionEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onTransitionCancelCapture` | `TransitionEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onTransitionEnd` | `TransitionEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onTransitionEndCapture` | `TransitionEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onTransitionRun` | `TransitionEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onTransitionRunCapture` | `TransitionEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onTransitionStart` | `TransitionEventHandler<HTMLDivElement> \| undefined` | no | - |  |
| `onTransitionStartCapture` | `TransitionEventHandler<HTMLDivElement> \| undefined` | no | - |  |

## Changelog

## 0.4.0

- Add `disableCollapse` prop to prevent collapsing an already-expanded row; include it in the `useCallback` dependency array for the expand toggle handler.
- Expand `ExpandableList.types.ts`: add `DecisionLogEvent`, `DecisionLogEventType` types and optional `events`, `act_by_reason`, `act_by_deadline`, `banner` (now `string | null`) fields.

## 0.3.9

- Fix cross-item imports to use canonical @/components paths; add missing signalos.category to manifests.

# expandable-list

## 0.3.8

- Split the built-in row design into
  `components/ExpandableListDefaultRow.tsx`. ExpandableList.tsx had crossed the
  500-code-line ceiling that `max-lines` now enforces as an error. Pure move —
  no behaviour change, and the 16 existing tests cover it unchanged. Consumers
  pulling this widget now receive one extra file (declared in `registry-item.json`).

## 0.3.7

- Merge of `fix/cli-security-hardening` into main. Adds the `disableCollapse`
  prop (row always renders expanded, no toggle affordance) and derives each
  row's `-header`/`-panel` test ids from its own per-item `data-testid` instead
  of a single list-level id, so multiple rows are individually addressable.
  Additive: callers that pass neither keep the previous behaviour.

## 0.3.6
## 0.3.5
## 0.3.4

## 0.3.3

- Add a `normal` size variant and a `disableCollapse` prop that renders every item
  permanently expanded with no toggle affordance. Genericize the item types so the
  widget no longer needs domain-specific event types. Additive; existing callers
  keep the previous default/compact behavior.

## 0.3.2

- Use semantic status tokens (text-text-error, bg-bg-warning, border-border-*, bg-status-*) instead of raw palette scales so client theme overrides restyle status colors.


## 0.3.8

- Replace raw scale tokens with semantic tokens.


## 0.3.6
- lint issue fix 
## 0.3.5

- Types update for `events` 
## 0.3.3

- Added disabled state for collapse. 

## 0.3.2

- Content sync fix to bring source in line with published registry payload.

## 0.3.1

- Content sync fix to bring source in line with published registry payload.


## 0.3.0

- Restructured to the standard widget file contract: folded the previously
  separate `ExpandableList.skeleton.tsx`, `ExpandableList.defaultRow.tsx`,
  and `ExpandableList.defaultRow.utils.ts` files into `ExpandableList.tsx`
  and `ExpandableList.utils.ts`.
- Replaced the domain-specific `HypothesisExpandableItem` default-row shape
  (`signalCount`, `maxDeviation`, `cagg`, `domain`, `ttlLabel`, `relatedCount`,
  `needsAttention`, `deadlineNoteText`, …) with a fully generic
  `ExpandableListDefaultItem` (`metrics`, `progressPercent`,
  `secondaryProgressPercent`, `category`, `relatedLabel`, `banner`,
  `footerNoteText`, …) so the built-in default row carries no business
  vocabulary. Existing per-field labels/values map onto `metrics` entries.
- Added `@signalos/circular-progress` to `registryDependencies` (previously
  imported from a relative, undeclared path).

## 0.2.0

- Merged `@signalos/hypothesis-card` into this widget as the built-in default
  row design: when `renderCollapsed`/`renderExpanded` are omitted, each item
  renders as a triage card (severity accent, confidence ring, TTL progress,
  optional "needs attention" banner) driven by the new `HypothesisExpandableItem`
  item shape. Added `renderExpandedContent` and `onViewDetail` props, used only
  by the default row design.
- Supplying `renderCollapsed`/`renderExpanded` still fully replaces the row
  design, as before.
- `@signalos/hypothesis-card` is removed; consumers pull `@signalos/expandable-list`
  with no render props for the same triage-card look.

## 0.1.0

- Initial release as a standalone registry item (previously bundled with
  `HypothesisCard`, now split out to `@signalos/hypothesis-card`).
- Renamed `renderHeader`/`renderContent` to `renderCollapsed`/`renderExpanded`
  to make the before/after-expansion contract explicit.
- Supports loading, empty, and error states; controlled and uncontrolled
  expansion; single or multi-expand via `allowMultiple`.
