@hjmds/react 1.48.0 → 1.49.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/dist/advanced-display.d.ts +3 -1
- package/dist/advanced-display.d.ts.map +1 -1
- package/dist/advanced-display.js +23 -15
- package/dist/advanced-display.js.map +1 -1
- package/dist/display.d.ts +4 -0
- package/dist/display.d.ts.map +1 -1
- package/dist/display.js +3 -3
- package/dist/display.js.map +1 -1
- package/dist/drawing-editor.d.ts +7 -0
- package/dist/drawing-editor.d.ts.map +1 -0
- package/dist/drawing-editor.js +123 -0
- package/dist/drawing-editor.js.map +1 -0
- package/dist/evidence.d.ts +1 -1
- package/dist/evidence.js +1 -1
- package/dist/evidence.js.map +1 -1
- package/dist/image-choice.js +2 -1
- package/dist/image-choice.js.map +1 -1
- package/dist/overlays.d.ts.map +1 -1
- package/dist/overlays.js +81 -2
- package/dist/overlays.js.map +1 -1
- package/dist/public-exports.generated.d.ts +1 -0
- package/dist/public-exports.generated.d.ts.map +1 -1
- package/dist/public-exports.generated.js +3 -0
- package/dist/public-exports.generated.js.map +1 -1
- package/dist/styles.css +23 -1
- package/dist/styles.layered.css +23 -1
- package/package.json +8 -3
|
@@ -244,12 +244,14 @@ export type TableProps<Row> = Omit<TableHTMLAttributes<HTMLTableElement>, "child
|
|
|
244
244
|
export declare const Table: <Row>(props: TableProps<Row> & RefAttributes<HTMLTableElement>) => ReactElement;
|
|
245
245
|
export type TimelineProps<Id extends string = string> = Omit<HTMLAttributes<HTMLOListElement>, "children"> & Readonly<{
|
|
246
246
|
items: readonly TimelineItemDescriptor<Id>[];
|
|
247
|
+
/** Default journal uses unfilled reading rows; selection adds record disclosure. "record" retains the earlier card surface. */
|
|
248
|
+
variant?: "record" | "journal";
|
|
247
249
|
composeAccessibleName: ComposeTimelineAccessibleName;
|
|
248
250
|
renderMetadata?: (item: TimelineItemDescriptor<Id>) => ReactNode;
|
|
249
251
|
/** Per-record commands of a passive Timeline. Not allowed together with selection. */
|
|
250
252
|
renderActions?: (item: TimelineItemDescriptor<Id>) => ReactNode;
|
|
251
253
|
/**
|
|
252
|
-
* Makes
|
|
254
|
+
* Makes records selectable (journal disclosure buttons; record variant listbox). `null` = nothing chosen. Supply
|
|
253
255
|
* together with `onSelectedIdChange`; the list then needs `aria-label` or `aria-labelledby`.
|
|
254
256
|
*/
|
|
255
257
|
selectedId?: Id | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"advanced-display.d.ts","sourceRoot":"","sources":["../src/advanced-display.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAyB,KAAK,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAG5G,OAAO,EAGL,KAAK,yBAAyB,EAC9B,KAAK,sBAAsB,EAC5B,MAAM,qDAAqD,CAAC;AAC7D,OAAO,
|
|
1
|
+
{"version":3,"file":"advanced-display.d.ts","sourceRoot":"","sources":["../src/advanced-display.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAyB,KAAK,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAG5G,OAAO,EAGL,KAAK,yBAAyB,EAC9B,KAAK,sBAAsB,EAC5B,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAKL,KAAK,6BAA6B,EAClC,KAAK,sBAAsB,EAC5B,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAGL,KAAK,2BAA2B,EAChC,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC9B,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAKL,aAAa,EACb,UAAU,EAEV,KAAK,gBAAgB,EAErB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,wBAAwB,EAC7B,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC3B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAaL,KAAK,cAAc,EACnB,KAAK,iBAAiB,EAEtB,KAAK,YAAY,EACjB,KAA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EAAE,CAAC,GAAG,aAAa,CAAC,gBAAgB,CAAC,KACvD,YAAY,CAAC"}
|
package/dist/advanced-display.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { createElement as _createElement } from "react";
|
|
3
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
4
4
|
import { IdentityAction } from "./internal/identity-action.js";
|
|
5
5
|
import { resolveAvatarInitials } from "@hjmds/design-contracts/avatar-fallback";
|
|
6
6
|
import { TableSortButton } from "./table-sort-button.js";
|
|
7
7
|
import { getNextDataTableSortState } from "@hjmds/design-contracts/components/data-table";
|
|
8
8
|
import { resolveDescriptionListColumnCount, resolveDescriptionListDescriptor, } from "@hjmds/design-contracts/components/description-list";
|
|
9
|
-
import { getTimelineSelectionTarget, resolveTimelineDescriptor, validateTimelineSelection, } from "@hjmds/design-contracts/components/timeline";
|
|
9
|
+
import { getTimelineSelectionTarget, resolveTimelineDescriptor, timelineDefaults, validateTimelineSelection, } from "@hjmds/design-contracts/components/timeline";
|
|
10
10
|
import { resolveStatisticDescriptor, validateStatisticGroup, } from "@hjmds/design-contracts/components/statistic";
|
|
11
11
|
import { accordionRecipe, avatarRecipe, resolveAvatarSize, validateAvatarPresentation, dividerRecipe, listRecipe, validateDividerLineStyle, statisticRecipe, } from "@hjmds/design-contracts/recipes";
|
|
12
12
|
import { Children, createElement, forwardRef, Fragment, isValidElement, useId, useLayoutEffect, useMemo, useRef, useState, } from "react";
|
|
@@ -270,9 +270,14 @@ function TableInner({ columns, rows, getRowKey, caption, emptyState, onSortChang
|
|
|
270
270
|
} })) : column.header }, column.id))) }) }), _jsx("tbody", { children: rows.length === 0 ? (_jsx("tr", { children: _jsx("td", { className: "hjm-table__empty", colSpan: columns.length, children: emptyState }) })) : (rows.map((row, rowIndex) => (_jsx("tr", { className: "hjm-table__row", children: columns.map((column) => (_jsx("td", { className: "hjm-table__cell", "data-align": column.align ?? "start", children: column.cell(row, rowIndex) }, column.id))) }, rowKeys[rowIndex])))) })] }) }));
|
|
271
271
|
}
|
|
272
272
|
export const Table = forwardRef(TableInner);
|
|
273
|
-
function TimelineInner({ items, composeAccessibleName, renderMetadata, renderActions, selectedId, onSelectedIdChange, className, layoutStyle, onKeyDown, ...props }, ref) {
|
|
274
|
-
validateTimelineSelection(selectedId, onSelectedIdChange, { hasActions: renderActions !== undefined });
|
|
273
|
+
function TimelineInner({ items, variant = timelineDefaults.variant, composeAccessibleName, renderMetadata, renderActions, selectedId, onSelectedIdChange, className, layoutStyle, onKeyDown, ...props }, ref) {
|
|
274
|
+
validateTimelineSelection(selectedId, onSelectedIdChange, { hasActions: renderActions !== undefined, variant });
|
|
275
275
|
const selectable = onSelectedIdChange !== undefined;
|
|
276
|
+
const journal = variant === "journal";
|
|
277
|
+
// Anchor collapsed state to its selected record. External map/day selection opens the new record immediately.
|
|
278
|
+
const [disclosure, setDisclosure] = useState({ id: selectedId, collapsed: false });
|
|
279
|
+
if (disclosure.id !== selectedId)
|
|
280
|
+
setDisclosure({ id: selectedId, collapsed: false });
|
|
276
281
|
if (selectable && !props["aria-label"] && !props["aria-labelledby"]) {
|
|
277
282
|
throw new TypeError("A selectable Timeline needs aria-label or aria-labelledby (listbox name)");
|
|
278
283
|
}
|
|
@@ -280,7 +285,9 @@ function TimelineInner({ items, composeAccessibleName, renderMetadata, renderAct
|
|
|
280
285
|
const idPrefix = useId();
|
|
281
286
|
// Roving tab stop: the selected record, or the first one before anything is chosen.
|
|
282
287
|
const tabStopId = selectable ? (selectedId ?? resolved[0]?.id) : undefined;
|
|
283
|
-
const select = (list, id) => {
|
|
288
|
+
const select = (list, id, toggle = false) => {
|
|
289
|
+
if (journal)
|
|
290
|
+
setDisclosure({ id, collapsed: toggle && id === selectedId && !disclosure.collapsed });
|
|
284
291
|
if (id !== selectedId)
|
|
285
292
|
onSelectedIdChange?.(id);
|
|
286
293
|
list.querySelector(`[data-timeline-id="${CSS.escape(id)}"]`)?.focus();
|
|
@@ -292,9 +299,9 @@ function TimelineInner({ items, composeAccessibleName, renderMetadata, renderAct
|
|
|
292
299
|
const focusedId = event.target.closest("[data-timeline-id]")?.dataset.timelineId;
|
|
293
300
|
if (focusedId === undefined)
|
|
294
301
|
return;
|
|
295
|
-
if (event.key === "Enter" || event.key === " ") {
|
|
302
|
+
if (!journal && (event.key === "Enter" || event.key === " ")) {
|
|
296
303
|
event.preventDefault();
|
|
297
|
-
select(event.currentTarget, focusedId);
|
|
304
|
+
select(event.currentTarget, focusedId, true);
|
|
298
305
|
return;
|
|
299
306
|
}
|
|
300
307
|
const target = getTimelineSelectionTarget(items, focusedId, event.key);
|
|
@@ -303,20 +310,21 @@ function TimelineInner({ items, composeAccessibleName, renderMetadata, renderAct
|
|
|
303
310
|
event.preventDefault();
|
|
304
311
|
select(event.currentTarget, target);
|
|
305
312
|
};
|
|
306
|
-
return (_jsx("ol", { ...props, style: { ...props.style, ...layoutStyle }, ref: ref, className: classNames("hjm-timeline", className), role: selectable ? "listbox" : props.role, "aria-orientation": selectable ? "vertical" : undefined, "data-selectable": selectable || undefined, onKeyDown: handleKeyDown, children: resolved.map((item, index) => {
|
|
313
|
+
return (_jsx("ol", { ...props, style: { ...props.style, ...layoutStyle }, ref: ref, className: classNames("hjm-timeline", className), role: selectable && !journal ? "listbox" : props.role, "aria-orientation": selectable && !journal ? "vertical" : undefined, "data-selectable": selectable || undefined, "data-variant": variant, onKeyDown: handleKeyDown, children: resolved.map((item, index) => {
|
|
307
314
|
const actions = renderActions?.(item);
|
|
308
315
|
const detailIds = selectable
|
|
309
316
|
? [item.description ? `${idPrefix}-${index}-description` : null, item.timestamp ? `${idPrefix}-${index}-timestamp` : null].filter(Boolean).join(" ")
|
|
310
317
|
: "";
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
"
|
|
318
|
+
const expanded = !selectable || (item.selected && (disclosure.id !== selectedId || !disclosure.collapsed));
|
|
319
|
+
const body = _jsxs(_Fragment, { children: [_jsxs("span", { className: "hjm-timeline__rail", "aria-hidden": "true", children: [_jsx("span", { className: "hjm-timeline__dot" }), index < resolved.length - 1 ? _jsx("span", { className: "hjm-timeline__connector" }) : null] }), _jsxs("span", { className: "hjm-timeline__content", children: [_jsxs("span", { className: "hjm-timeline__heading", children: [_jsx("strong", { className: "hjm-timeline__label", children: item.label }), !journal ? renderMetadata?.(item) : selectable ? _jsx("span", { className: "hjm-timeline__chevron", "aria-hidden": "true", children: "\u2304" }) : null] }), journal && item.timestamp ? _jsx("time", { className: "hjm-timeline__timestamp", dateTime: item.dateTime, children: item.timestamp }) : null, _jsxs("span", { className: "hjm-timeline__details", id: `${idPrefix}-${index}-details`, hidden: journal && !expanded, children: [journal ? renderMetadata?.(item) : null, item.description ? _jsx("span", { className: "hjm-timeline__description", id: selectable && !journal ? `${idPrefix}-${index}-description` : undefined, children: item.description }) : null, !journal && item.timestamp ? _jsx("time", { className: "hjm-timeline__timestamp", dateTime: item.dateTime, id: selectable ? `${idPrefix}-${index}-timestamp` : undefined, children: item.timestamp }) : null] })] }), actions ? _jsx("div", { className: "hjm-timeline__actions", children: actions }) : null] });
|
|
320
|
+
if (journal && selectable)
|
|
321
|
+
return _jsx("li", { children: _jsx("button", { type: "button", className: "hjm-timeline__item", "data-tone": item.tone, "data-state": item.selected ? "selected" : undefined, "data-timeline-id": item.id, "aria-label": [item.accessibleName, item.timestamp].filter(Boolean).join(", "), "aria-expanded": expanded, "aria-controls": `${idPrefix}-${index}-details`, "aria-describedby": expanded ? `${idPrefix}-${index}-details` : undefined, onClick: event => select(event.currentTarget.closest("ol"), item.id, true), children: body }) }, item.id);
|
|
322
|
+
return _jsx("li", { "aria-label": item.accessibleName, className: "hjm-timeline__item", "data-tone": item.tone, "data-emphasized": item.emphasized || undefined, ...(selectable ? {
|
|
323
|
+
role: "option", "aria-selected": item.selected, "aria-describedby": detailIds || undefined,
|
|
324
|
+
"data-timeline-id": item.id, "data-state": item.selected ? "selected" : undefined,
|
|
317
325
|
tabIndex: item.id === tabStopId ? 0 : -1,
|
|
318
326
|
onClick: (event) => select(event.currentTarget.parentElement, item.id),
|
|
319
|
-
} : {}), children:
|
|
327
|
+
} : {}), children: body }, item.id);
|
|
320
328
|
}) }));
|
|
321
329
|
}
|
|
322
330
|
export const Timeline = forwardRef(TimelineInner);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"advanced-display.js","sourceRoot":"","sources":["../src/advanced-display.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;AACb,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE/D,OAAO,EAAE,qBAAqB,EAA8B,MAAM,yCAAyC,CAAC;AAC5G,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,yBAAyB,EAAE,MAAM,+CAA+C,CAAC;AAC1F,OAAO,EACL,iCAAiC,EACjC,gCAAgC,GAGjC,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EACL,0BAA0B,EAC1B,yBAAyB,EACzB,yBAAyB,GAG1B,MAAM,6CAA6C,CAAC;AACrD,OAAO,EACL,0BAA0B,EAC1B,sBAAsB,GAIvB,MAAM,8CAA8C,CAAC;AACtD,OAAO,EACL,eAAe,EACf,YAAY,EACZ,iBAAiB,EACjB,0BAA0B,EAC1B,aAAa,EACb,UAAU,EACV,wBAAwB,EAExB,eAAe,GAQhB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,QAAQ,EACR,aAAa,EACb,UAAU,EACV,QAAQ,EACR,cAAc,EACd,KAAK,EACL,eAAe,EACf,OAAO,EACP,MAAM,EACN,QAAQ,GAUT,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAC7F,OAAO,EAA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,iBAAa,MAAM,aACrD,eAAM,SAAS,EAAC,mBAAmB,GAAG,EACrC,KAAK,GAAG,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAC7B,eAAM,SAAS,EAAC,yBAAyB,GAAG,CAC7C,CAAC,CAAC,CAAC,IAAI,IACH,EACP,gBAAM,SAAS,EAAC,uBAAuB,aACrC,gBAAM,SAAS,EAAC,uBAAuB,aACrC,iBAAQ,SAAS,EAAC,qBAAqB,YAAE,IAAI,CAAC,KAAK,GAAU,EAC5D,cAAc,EAAE,CAAC,IAAI,CAAC,IAClB,EACN,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAClB,eAAM,SAAS,EAAC,2BAA2B,EAAC,EAAE,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,QAAQ,IAAI,KAAK,cAAc,CAAC,CAAC,CAAC,SAAS,YAAG,IAAI,CAAC,WAAW,GAAQ,CACvI,CAAC,CAAC,CAAC,IAAI,EACP,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,eAAM,SAAS,EAAC,yBAAyB,EAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,EAAE,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,QAAQ,IAAI,KAAK,YAAY,CAAC,CAAC,CAAC,SAAS,YAAG,IAAI,CAAC,SAAS,GAAQ,CAAC,CAAC,CAAC,IAAI,IAC7K,EACN,OAAO,CAAC,CAAC,CAAC,cAAK,SAAS,EAAC,uBAAuB,YAAE,OAAO,GAAO,CAAC,CAAC,CAAC,IAAI,KA3BnE,IAAI,CAAC,EAAE,CA4BT,CACN,CAAC;QAAC,CAAC,CAAC,GACF,CACN,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,QAAQ,GAAG,UAAU,CAAC,aAAa,CAE/B,CAAC","sourcesContent":["\"use client\";\nimport { IdentityAction } from \"./internal/identity-action.js\";\n\nimport { resolveAvatarInitials, type AvatarFallbackContext } from \"@hjmds/design-contracts/avatar-fallback\";\nimport { TableSortButton } from \"./table-sort-button.js\";\nimport { getNextDataTableSortState } from \"@hjmds/design-contracts/components/data-table\";\nimport {\n resolveDescriptionListColumnCount,\n resolveDescriptionListDescriptor,\n type DescriptionItemDescriptor,\n type DescriptionListColumns,\n} from \"@hjmds/design-contracts/components/description-list\";\nimport {\n getTimelineSelectionTarget,\n resolveTimelineDescriptor,\n validateTimelineSelection,\n type ComposeTimelineAccessibleName,\n type TimelineItemDescriptor,\n} from \"@hjmds/design-contracts/components/timeline\";\nimport {\n resolveStatisticDescriptor,\n validateStatisticGroup,\n type ResolvedStatisticDescriptor,\n type StatisticDescriptor,\n type StatisticGroupDescriptor,\n} from \"@hjmds/design-contracts/components/statistic\";\nimport {\n accordionRecipe,\n avatarRecipe,\n resolveAvatarSize,\n validateAvatarPresentation,\n dividerRecipe,\n listRecipe,\n validateDividerLineStyle,\n type DividerLineStyle,\n statisticRecipe,\n type AccordionDensity,\n type AvatarFrame,\n type AvatarShape,\n type AvatarSize,\n type CornerAccessoryPlacement,\n type StatisticDensity,\n type StatisticPresentation,\n} from \"@hjmds/design-contracts/recipes\";\nimport {\n Children,\n createElement,\n forwardRef,\n Fragment,\n isValidElement,\n useId,\n useLayoutEffect,\n useMemo,\n useRef,\n useState,\n type CSSProperties,\n type ForwardedRef,\n type HTMLAttributes,\n type ImgHTMLAttributes,\n type KeyboardEvent,\n type ReactElement,\n type ReactNode,\n type RefAttributes,\n type TableHTMLAttributes,\n} from \"react\";\nimport type { HjmCompositionStyleProp } from \"./composition-style.js\";\nimport { assignRef, classNames, useControllableState, useElementWidth } from \"./internal.js\";\nimport { useOptionalHjmTheme } from \"./provider.js\";\n\nexport type AccordionItem = Readonly<{\n id: string;\n title: ReactNode;\n panel: ReactNode;\n disabled?: boolean;\n /** Include domain values when a decorative indicator carries more than expansion. */\n accessibilityLabel?: string;\n}>;\n\nexport type AccordionProps = Omit<HTMLAttributes<HTMLDivElement>, \"onChange\"> &\n Readonly<{\n items: readonly AccordionItem[];\n value?: readonly string[];\n defaultValue?: readonly string[];\n onValueChange?: (value: readonly string[]) => void;\n allowsMultipleExpanded?: boolean;\n density?: AccordionDensity;\n headingLevel?: 2 | 3 | 4 | 5 | 6;\n /** Decorative replacement; interaction and expanded state remain owned by Accordion. */\n renderIndicator?: (props: Readonly<{ value: string; expanded: boolean; disabled: boolean }>) => ReactNode;\n /** Canonical layout-only placement on the root element. Controlled visual keys are excluded. */\n layoutStyle?: HjmCompositionStyleProp;\n }>;\n\nfunction validateAccordionItems(items: readonly AccordionItem[]): void {\n if (items.length === 0) throw new TypeError(\"Accordion requires at least one item\");\n const ids = new Set<string>();\n for (const item of items) {\n if (item.id.trim().length === 0) throw new TypeError(\"Accordion item id must not be empty\");\n if (ids.has(item.id)) throw new TypeError(`Duplicate Accordion item id: ${item.id}`);\n ids.add(item.id);\n }\n}\n\nfunction accordionFocusTarget(\n items: readonly AccordionItem[],\n currentIndex: number,\n key: string,\n): number | undefined {\n if (key === \"Home\") return items.findIndex((item) => !item.disabled);\n if (key === \"End\") {\n for (let index = items.length - 1; index >= 0; index -= 1) {\n if (!items[index]?.disabled) return index;\n }\n return -1;\n }\n const direction = key === \"ArrowDown\" ? 1 : key === \"ArrowUp\" ? -1 : 0;\n if (direction === 0) return undefined;\n for (let offset = 1; offset <= items.length; offset += 1) {\n const index = (currentIndex + direction * offset + items.length) % items.length;\n if (!items[index]?.disabled) return index;\n }\n return currentIndex;\n}\n\nexport const Accordion = forwardRef<HTMLDivElement, AccordionProps>(\n function Accordion(\n {\n items,\n value: valueProp,\n defaultValue = [],\n onValueChange,\n allowsMultipleExpanded = accordionRecipe.defaults.allowsMultipleExpanded,\n density = accordionRecipe.defaults.density,\n headingLevel = 3,\n renderIndicator,\n className,\n layoutStyle,\n ...props\n },\n ref,\n ) {\n validateAccordionItems(items);\n const [storedValue, setValue] = useControllableState<readonly string[]>({\n ...(valueProp === undefined ? {} : { value: valueProp }),\n defaultValue,\n ...(onValueChange === undefined ? {} : { onChange: onValueChange }),\n });\n const validIds = new Set(items.map((item) => item.id));\n const committed = useRef(false);\n const value = valueProp === undefined && committed.current ? storedValue.filter(id => validIds.has(id)) : storedValue;\n useLayoutEffect(() => {\n committed.current = true;\n // Removed uncontrolled disclosures retire their expansion; reinsertion starts closed.\n if (value.length !== storedValue.length) setValue(value);\n }, [value, storedValue, setValue]);\n const valueIds = new Set<string>();\n for (const id of value) {\n if (!validIds.has(id)) throw new RangeError(`Unknown Accordion value: ${id}`);\n if (valueIds.has(id)) throw new TypeError(`Duplicate Accordion value: ${id}`);\n valueIds.add(id);\n }\n if (!allowsMultipleExpanded && value.length > 1) {\n throw new RangeError(\"Accordion only allows one expanded item\");\n }\n const baseId = useId().replaceAll(\":\", \"\");\n const triggerRefs = useRef(new Map<string, HTMLButtonElement>());\n const host = useRef<HTMLDivElement | null>(null);\n const focused = useRef<{ id: string; index: number; node: HTMLElement } | null>(null);\n useLayoutEffect(() => {\n const previous = focused.current;\n if (!previous) return;\n const index = items.findIndex(item => item.id === previous.id);\n const removed = index < 0;\n const disabledTrigger = index >= 0 && items[index]!.disabled && triggerRefs.current.get(previous.id) === previous.node;\n if (!(removed || disabledTrigger) || (document.activeElement !== previous.node && document.activeElement !== document.body)) return;\n // Restore only the removed/disabled target, never steal a user's external focus.\n const origin = removed ? Math.min(previous.index, items.length - 1) : index + 1;\n const target = Array.from({ length: items.length }, (_, offset) => items[(origin + offset) % items.length]!).find(item => !item.disabled);\n focused.current = null;\n (target ? triggerRefs.current.get(target.id) : host.current)?.focus();\n }, [items]);\n const toggle = (id: string) => {\n const expanded = value.includes(id);\n setValue(\n expanded\n ? value.filter((candidate) => candidate !== id)\n : allowsMultipleExpanded\n ? [...value, id]\n : [id],\n );\n };\n\n return (\n <div\n {...props}\n style={{ ...props.style, ...layoutStyle }}\n ref={node => { host.current = node; assignRef(ref, node); }}\n tabIndex={-1}\n className={classNames(\"hjm-accordion\", className)}\n data-density={density}\n data-multiple={allowsMultipleExpanded || undefined}\n >\n {items.map((item, index) => {\n const expanded = value.includes(item.id);\n const triggerId = `${baseId}-accordion-trigger-${index}`;\n const panelId = `${baseId}-accordion-panel-${index}`;\n const trigger = (\n <button\n ref={(node) => {\n if (node) triggerRefs.current.set(item.id, node);\n else triggerRefs.current.delete(item.id);\n }}\n id={triggerId}\n type=\"button\"\n className=\"hjm-accordion__trigger\"\n aria-expanded={expanded}\n aria-label={item.accessibilityLabel}\n aria-controls={panelId}\n disabled={item.disabled}\n onClick={() => toggle(item.id)}\n onKeyDown={(event: KeyboardEvent<HTMLButtonElement>) => {\n const target = accordionFocusTarget(items, index, event.key);\n if (target === undefined || target < 0) return;\n event.preventDefault();\n triggerRefs.current.get(items[target]!.id)?.focus();\n }}\n >\n <span className=\"hjm-accordion__title\">{item.title}</span>\n <span className=\"hjm-accordion__indicator\" aria-hidden=\"true\">\n {renderIndicator ? renderIndicator({ value: item.id, expanded, disabled: item.disabled === true }) : expanded ? \"−\" : \"+\"}\n </span>\n </button>\n );\n return (\n <div\n key={item.id}\n onFocusCapture={event => { if (event.target instanceof HTMLElement) focused.current = { id: item.id, index, node: event.target }; }}\n className=\"hjm-accordion__item\"\n data-state={item.disabled ? \"disabled\" : expanded ? \"expanded\" : \"collapsed\"}\n >\n {createElement(`h${headingLevel}`, { className: \"hjm-accordion__header\" }, trigger)}\n <div\n id={panelId}\n role=\"region\"\n className=\"hjm-accordion__panel\"\n aria-labelledby={triggerId}\n hidden={!expanded}\n >\n {item.panel}\n </div>\n </div>\n );\n })}\n </div>\n );\n },\n);\n\n\n/** Props handed to a product image host (`next/image`, a cache-aware loader) that replaces Avatar's `<img>`. */\nexport type AvatarImageRenderProps = Readonly<{\n src: string;\n /** `\"\"` for a decorative avatar or `alt=\"\"`; otherwise the avatar's accessible name. */\n alt: string;\n /** Diameter in px from the size step. */\n size: number;\n /** Avatar's image class (fill + cover); keep it so the frame's clipping and fit still apply. */\n className: string;\n /** Report a failure for this `src` generation; callbacks from a replaced `src` are ignored. */\n onError: () => void;\n}>;\n\n/**\n * Accessibility identity. A meaningful avatar is named by `name` (or `alt`); a decorative one — next to a visible\n * author name, or ornament without a person — is hidden from assistive tech and may omit `name` (2026-10-23:\n * Burntok's decorative avatars had no name to pass).\n */\ntype AvatarIdentity =\n | Readonly<{ decorative?: false; name: string; alt?: string }>\n | Readonly<{ decorative: true; name?: string; alt?: never }>;\n\nexport type AvatarProps = Omit<HTMLAttributes<HTMLSpanElement>, \"children\"> &\n AvatarIdentity &\n Readonly<{\n /** Profile navigation; products provide the member route and localized name. */\n action?: Readonly<{ label: string; onPress(): void; disabled?: boolean }>;\n src?: string;\n fallback?: ReactNode;\n renderFallback?: (context: AvatarFallbackContext) => ReactNode;\n /** Product image host in place of the built-in `<img>`. Exclusive with `imageProps`. */\n renderImage?: (props: AvatarImageRenderProps) => ReactNode;\n size?: AvatarSize;\n shape?: AvatarShape;\n /** Border/background treatment from avatarRecipe.frames; `none` when product artwork fills the frame. */\n frame?: AvatarFrame;\n /** A small mark (team badge, status dot) on a corner of the avatar's box. It is not clipped by the frame. */\n accessory?: ReactNode;\n accessoryPlacement?: CornerAccessoryPlacement;\n imageProps?: Omit<ImgHTMLAttributes<HTMLImageElement>, \"alt\" | \"src\">;\n /** Canonical layout-only placement on the root element. Controlled visual keys are excluded. */\n layoutStyle?: HjmCompositionStyleProp;\n }>;\n\nexport const Avatar = forwardRef<HTMLSpanElement, AvatarProps>(function Avatar(\n {\n name,\n action,\n src,\n alt: altProp,\n decorative = false,\n fallback,\n renderFallback,\n renderImage,\n size = avatarRecipe.defaults.size,\n shape = avatarRecipe.defaults.shape,\n frame = avatarRecipe.defaults.frame,\n accessory,\n accessoryPlacement = avatarRecipe.defaults.accessoryPlacement,\n imageProps,\n className,\n layoutStyle,\n ...props\n },\n ref,\n) {\n if (!decorative && (name === undefined || name.trim().length === 0)) throw new TypeError(\"Avatar name must not be empty\");\n if (renderImage && imageProps) throw new TypeError(\"Avatar renderImage and imageProps are exclusive; pass image attributes to the host\");\n validateAvatarPresentation({ shape, frame, accessoryPlacement });\n const diameter = resolveAvatarSize(size);\n const alt = decorative ? \"\" : altProp ?? name ?? \"\";\n const generation = useMemo(() => ({}), [src]);\n const active = useRef<object | null>(generation);\n useLayoutEffect(() => { active.current = generation; return () => { active.current = null; }; }, [generation]);\n const [failed, setFailed] = useState<object | null>(null);\n const imageAvailable = Boolean(src) && failed !== generation;\n const { onError, className: imageClassName, ...restImageProps } = imageProps ?? {};\n const fail = () => { if (active.current === generation) setFailed(generation); };\n const initials = name !== undefined && name.trim().length > 0 ? resolveAvatarInitials(name) : null;\n const avatarNode = (\n <span\n {...props}\n aria-hidden={decorative || props[\"aria-hidden\"]}\n style={{ ...props.style, ...(action ? {} : layoutStyle), \"--hjm-avatar-size\": `${diameter}px`,\n // Absolute children are placed from the padding edge; subtract the frame border so the offset is from the box.\n \"--hjm-avatar-accessory-inset\": `${0 - avatarRecipe.accessory.offset - avatarRecipe.frames[frame].borderWidth}px` } as CSSProperties}\n ref={ref}\n className={classNames(\"hjm-avatar\", className)}\n data-size={size}\n data-shape={shape}\n data-frame={frame}\n data-state={imageAvailable ? \"image\" : \"fallback\"}\n >\n {src && imageAvailable ? (\n renderImage ? (\n <Fragment key={src}>{renderImage({ src, alt, size: diameter, className: \"hjm-avatar__image\", onError: fail })}</Fragment>\n ) : (\n <img\n {...restImageProps}\n key={src}\n src={src}\n alt={alt}\n className={classNames(\"hjm-avatar__image\", imageClassName)}\n onError={(event) => {\n if (active.current !== generation) return;\n setFailed(generation);\n onError?.(event);\n }}\n />\n )\n ) : (\n <span\n className=\"hjm-avatar__fallback\"\n role={alt.length > 0 ? \"img\" : undefined}\n aria-label={alt.length > 0 ? alt : undefined}\n aria-hidden={alt.length === 0 || undefined}\n >\n {renderFallback?.({ size: diameter, decorative: true }) ?? fallback ?? initials}\n </span>\n )}\n {accessory ? <span className=\"hjm-avatar__accessory\" data-placement={accessoryPlacement}>{accessory}</span> : null}\n </span>\n );\n return action ? <IdentityAction action={action} {...(layoutStyle?{layoutStyle}:{})}>{avatarNode}</IdentityAction> : avatarNode;\n});\n\nexport type AvatarGroupProps = Omit<HTMLAttributes<HTMLSpanElement>, \"children\"> &\n Readonly<{\n /** Required: a pile of faces is meaningless to a screen reader otherwise. */\n label: string;\n children: ReactNode;\n size?: AvatarSize;\n /** Product-composed overflow copy such as \"+3\"; the count is the product's. */\n overflow?: ReactNode;\n /** Canonical layout-only placement on the root element. Controlled visual keys are excluded. */\n layoutStyle?: HjmCompositionStyleProp;\n }>;\n\n/**\n * Overlapping avatars. The overlap comes from the recipe ratio rather than a\n * pixel value so it holds across all four sizes, and the group carries one\n * accessible name instead of letting a reader walk five unlabelled images.\n */\nexport const AvatarGroup = forwardRef<HTMLSpanElement, AvatarGroupProps>(function AvatarGroup(\n { label, children, size = avatarRecipe.defaults.size, overflow, className, layoutStyle, style, ...props },\n ref,\n) {\n if (label.trim().length === 0) throw new TypeError(\"AvatarGroup label must not be empty\");\n const offset = Math.round(avatarRecipe.sizes[size] * avatarRecipe.overlapRatio);\n return (\n <span\n {...props}\n ref={ref}\n role=\"group\"\n aria-label={label}\n className={classNames(\"hjm-avatar-group\", className)}\n data-size={size}\n // The caller `style` used to be replaced by the overlap variable; merge it\n // and keep the recipe overlap last so it stays size-derived.\n style={{ ...style, ...layoutStyle, \"--hjm-avatar-overlap\": `${offset}px` } as CSSProperties}\n >\n {children}\n {overflow ? <span className=\"hjm-avatar-group__overflow\" aria-hidden=\"true\">{overflow}</span> : null}\n </span>\n );\n});\n\nexport type DividerOrientation = \"horizontal\" | \"vertical\";\nexport type DividerInset = keyof typeof dividerRecipe.insets;\n\nexport type DividerProps = HTMLAttributes<HTMLElement> &\n Readonly<{\n orientation?: DividerOrientation;\n inset?: DividerInset;\n /** `dashed`: a break inside one surface rather than a new section; dash/gap from dividerRecipe.lineStyles. */\n lineStyle?: DividerLineStyle;\n decorative?: boolean;\n /** Canonical layout-only placement on the root element. Controlled visual keys are excluded. */\n layoutStyle?: HjmCompositionStyleProp;\n }>;\n\nexport const Divider = forwardRef<HTMLElement, DividerProps>(function Divider(\n {\n orientation = dividerRecipe.defaults.orientation,\n inset = dividerRecipe.defaults.inset,\n lineStyle = dividerRecipe.defaults.lineStyle,\n decorative = false,\n className,\n layoutStyle,\n ...props\n },\n ref,\n) {\n validateDividerLineStyle(lineStyle);\n return createElement(orientation === \"horizontal\" ? \"hr\" : \"div\", {\n ...props,\n style: { ...props.style, ...layoutStyle },\n ref,\n className: classNames(\"hjm-divider\", className),\n \"data-orientation\": orientation,\n \"data-inset\": inset,\n \"data-line-style\": lineStyle,\n role: decorative ? \"presentation\" : \"separator\",\n \"aria-hidden\": decorative || undefined,\n \"aria-orientation\": decorative ? undefined : orientation,\n });\n});\n\nexport type ListSeparatorProps = Readonly<{\n separator?: keyof typeof listRecipe.separators;\n leading?: boolean;\n layoutStyle?: HjmCompositionStyleProp;\n}>;\n\n/** Decorative separator for a product-owned virtual collection. List owns separators for finite rows. */\nexport function ListSeparator({ separator = \"content\", leading = false, layoutStyle }: ListSeparatorProps) {\n if (!listRecipe.separators[separator]) return null;\n return <div aria-hidden=\"true\" role=\"presentation\" className=\"hjm-list-separator\" style={{\n marginInlineStart: `var(--hjm-list-separator-${separator}-${leading ? \"leading-start\" : \"start\"})`,\n marginInlineEnd: `var(--hjm-list-separator-${separator}-end)`,\n ...layoutStyle,\n }} />;\n}\n\nexport type ListAppearance = \"grouped\" | \"plain\";\n\nexport type ListProps = Omit<HTMLAttributes<HTMLDivElement>, \"children\"> &\n Readonly<{\n label: string;\n children: ReactNode;\n separator?: keyof typeof listRecipe.separators;\n appearance?: ListAppearance;\n /** Canonical layout-only placement on the root element. Controlled visual keys are excluded. */\n layoutStyle?: HjmCompositionStyleProp;\n }>;\n\n/** Semantic list container that owns separators around composed rows. */\nexport const List = forwardRef<HTMLDivElement, ListProps>(function List(\n {\n label,\n children,\n separator = listRecipe.defaults.separator,\n appearance = \"plain\",\n className,\n layoutStyle,\n ...props\n },\n ref,\n) {\n if (!label.trim()) throw new TypeError(\"List label must not be empty\");\n const items = Children.toArray(children);\n return (\n <div\n {...props}\n style={{ ...props.style, ...layoutStyle }}\n ref={ref}\n aria-label={label}\n className={classNames(\"hjm-list\", className)}\n data-appearance={appearance}\n data-separator={separator}\n role=\"list\"\n >\n {items.map((item, index) => (\n <div\n className=\"hjm-list__item\"\n key={isValidElement(item) && item.key !== null ? item.key : `hjm-list-${index}`}\n role=\"listitem\"\n >\n {item}\n </div>\n ))}\n </div>\n );\n});\n\nexport type StatisticTrendMarkRenderProps = Readonly<{\n name: \"trendUp\" | \"trendDown\" | \"trendFlat\";\n color: \"currentColor\";\n size: number;\n}>;\n\nexport type ComposeStatisticAccessibilityLabel<Id extends string = string> = (\n input: Readonly<{\n contextLabel?: string;\n descriptor: ResolvedStatisticDescriptor<Id>;\n valueText: string;\n }>,\n) => string;\n\nexport type StatisticProps<Id extends string = string> = Omit<\n HTMLAttributes<HTMLElement>,\n \"children\"\n> & Readonly<{\n descriptor: StatisticDescriptor<Id>;\n density?: StatisticDensity;\n presentation?: StatisticPresentation;\n contextLabel?: string;\n accessibilityLabel?: string;\n composeAccessibilityLabel?: ComposeStatisticAccessibilityLabel<Id>;\n leading?: ReactNode;\n /** Product-owned series/category color; value text and decorative leading share it. */\n valueColor?: string;\n renderTrendMark?: (props: StatisticTrendMarkRenderProps) => ReactNode;\n /** Optional visual adapter; the descriptor remains the accessible value source. */\n renderValue?: (value: string) => ReactNode;\n /** Canonical layout-only placement on the root element. Controlled visual keys are excluded. */\n layoutStyle?: HjmCompositionStyleProp;\n}>;\n\nexport function Statistic<Id extends string = string>(props: StatisticProps<Id>) {\n return <StatisticView {...props} />;\n}\n\nfunction StatisticView<Id extends string = string>({\n descriptor,\n density = \"comfortable\",\n presentation = \"plain\",\n contextLabel,\n accessibilityLabel,\n composeAccessibilityLabel,\n leading,\n valueColor,\n bar = false,\n renderTrendMark,\n renderValue,\n className,\n layoutStyle,\n ...props\n}: StatisticProps<Id> & { bar?: boolean }) {\n const resolved = resolveStatisticDescriptor(descriptor);\n const valueText = `${resolved.prefix ?? \"\"}${resolved.value}${resolved.suffix ?? \"\"}`;\n const announcement = accessibilityLabel ?? composeAccessibilityLabel?.({\n ...(contextLabel === undefined ? {} : { contextLabel }),\n descriptor: resolved,\n valueText,\n }) ?? [contextLabel, resolved.label, valueText, resolved.trend?.label, resolved.hint]\n .filter(Boolean)\n .join(\", \");\n if (!announcement.trim()) throw new TypeError(\"Statistic accessibility label must not be empty\");\n const trendName = resolved.trend\n ? statisticRecipe.trend.marks[resolved.trend.direction]\n : undefined;\n return (\n <article\n {...props}\n style={{ ...props.style, ...layoutStyle, ...(valueColor ? { \"--hjm-statistic-value-color\": valueColor } : {}) } as CSSProperties}\n aria-label={announcement}\n className={classNames(\"hjm-statistic\", className)}\n data-arrangement={bar ? \"bar\" : undefined}\n data-density={density}\n data-presentation={presentation}\n >\n <span aria-hidden=\"true\" className=\"hjm-statistic__label\">{resolved.label}</span>\n <span aria-hidden=\"true\" className=\"hjm-statistic__value-row\" data-leading={leading === undefined ? undefined : \"\"}>\n {leading === undefined ? null : <span className=\"hjm-statistic__leading\">{leading}</span>}\n {resolved.prefix ? <span className=\"hjm-statistic__affix\">{resolved.prefix}</span> : null}\n <strong className=\"hjm-statistic__value\">{renderValue?.(resolved.value) ?? resolved.value}</strong>\n {resolved.suffix ? <span className=\"hjm-statistic__affix\">{resolved.suffix}</span> : null}\n </span>\n {resolved.trend ? (\n <span aria-hidden=\"true\" className=\"hjm-statistic__trend\" data-tone={resolved.trend.tone}>\n <span className=\"hjm-statistic__trend-mark\">\n {renderTrendMark?.({ name: trendName!, color: \"currentColor\", size: 16 }) ?? (\n resolved.trend.direction === \"up\" ? \"↑\" : resolved.trend.direction === \"down\" ? \"↓\" : \"—\"\n )}\n </span>\n {resolved.trend.label}\n </span>\n ) : null}\n {resolved.hint ? <span aria-hidden=\"true\" className=\"hjm-statistic__hint\">{resolved.hint}</span> : null}\n </article>\n );\n}\n\nexport type StatisticGroupProps<Id extends string = string> = Omit<\n HTMLAttributes<HTMLDivElement>,\n \"children\"\n> & Readonly<{\n label: string;\n descriptor: StatisticGroupDescriptor<Id>;\n density?: StatisticDensity;\n presentation?: StatisticPresentation;\n composeAccessibilityLabel?: ComposeStatisticAccessibilityLabel<Id>;\n /** A bar is a single equal-width row for a few short counts; grid retains responsive columns. */\n arrangement?: \"grid\" | \"bar\";\n renderLeading?: (item: StatisticDescriptor<Id>, context: { color: string; size: number }) => ReactNode;\n getValueColor?: (item: StatisticDescriptor<Id>) => string | undefined;\n renderTrendMark?: (props: StatisticTrendMarkRenderProps) => ReactNode;\n /** Canonical layout-only placement on the root element. Controlled visual keys are excluded. */\n layoutStyle?: HjmCompositionStyleProp;\n}>;\n\nexport function StatisticGroup<Id extends string = string>({\n label,\n descriptor,\n density,\n presentation,\n composeAccessibilityLabel,\n arrangement = \"grid\",\n renderLeading,\n getValueColor,\n renderTrendMark,\n className,\n style,\n layoutStyle,\n ...props\n}: StatisticGroupProps<Id>) {\n validateStatisticGroup(descriptor);\n if (!label.trim()) throw new TypeError(\"StatisticGroup label must not be empty\");\n return (\n <div\n {...props}\n aria-label={label}\n className={classNames(\"hjm-statistic-group\", className)}\n role=\"list\"\n data-arrangement={arrangement}\n style={{ ...style, ...layoutStyle, \"--hjm-statistic-columns\": arrangement === \"bar\" ? descriptor.items.length : descriptor.columns ?? statisticRecipe.defaults.columns } as CSSProperties}\n >\n {descriptor.items.map((item) => {\n const valueColor = getValueColor?.(item);\n return (\n <div key={item.id} role=\"listitem\">\n <StatisticView\n bar={arrangement === \"bar\"}\n {...(valueColor ? { valueColor } : {})}\n {...(renderLeading ? { leading: renderLeading(item, { color: valueColor ?? \"currentColor\", size: statisticRecipe.group.bar.iconSize }) } : {})}\n contextLabel={label}\n descriptor={item}\n {...(composeAccessibilityLabel === undefined ? {} : { composeAccessibilityLabel })}\n {...(density === undefined ? {} : { density })}\n {...(presentation === undefined ? {} : { presentation })}\n {...(renderTrendMark === undefined ? {} : { renderTrendMark })}\n />\n </div>\n ); })}\n </div>\n );\n}\n\nexport type DescriptionListProps<Id extends string = string> = Omit<\n HTMLAttributes<HTMLDListElement>,\n \"children\"\n> &\n Readonly<{\n items: readonly DescriptionItemDescriptor<Id>[];\n columns?: DescriptionListColumns;\n layout?: \"stacked\" | \"inline\";\n /** Canonical layout-only placement. Controlled visual keys are excluded. */\n layoutStyle?: HjmCompositionStyleProp;\n }>;\n\nfunction DescriptionListInner<Id extends string>(\n { items, columns, layout, className, layoutStyle, style, ...props }: DescriptionListProps<Id>,\n forwardedRef: ForwardedRef<HTMLDListElement>,\n) {\n const descriptor = resolveDescriptionListDescriptor({\n items,\n ...(columns === undefined ? {} : { columns }),\n ...(layout === undefined ? {} : { layout }),\n });\n const [width, ref] = useElementWidth(forwardedRef);\n const theme = useOptionalHjmTheme();\n const resolvedColumns = resolveDescriptionListColumnCount(\n width ?? 0,\n descriptor.columns,\n theme?.environment.textScale ?? 1,\n );\n const responsiveStyle = {\n ...style,\n ...layoutStyle,\n \"--hjm-description-columns\": resolvedColumns,\n } as CSSProperties;\n return (\n <dl\n {...props}\n ref={ref}\n className={classNames(\"hjm-description-list\", className)}\n data-layout={descriptor.layout}\n data-columns={resolvedColumns}\n data-state={resolvedColumns < descriptor.columns ? \"collapsed\" : \"ready\"}\n style={responsiveStyle}\n >\n {descriptor.items.map((item) => (\n <div key={item.id} className=\"hjm-description-list__item\">\n <dt className=\"hjm-description-list__label\">{item.label}</dt>\n <dd className=\"hjm-description-list__value\">{item.value}</dd>\n </div>\n ))}\n </dl>\n );\n}\n\nexport const DescriptionList = forwardRef(DescriptionListInner) as <Id extends string = string>(\n props: DescriptionListProps<Id> & RefAttributes<HTMLDListElement>,\n) => ReactElement;\n\nexport type TableSortDirection = \"ascending\" | \"descending\";\n\nexport type TableColumn<Row> = Readonly<{\n id: string;\n header: ReactNode;\n cell: (row: Row, rowIndex: number) => ReactNode;\n align?: \"start\" | \"center\" | \"end\";\n sortable?: boolean;\n sortDirection?: TableSortDirection;\n}>;\n\nexport type TableProps<Row> = Omit<TableHTMLAttributes<HTMLTableElement>, \"children\"> &\n Readonly<{\n columns: readonly TableColumn<Row>[];\n rows: readonly Row[];\n getRowKey: (row: Row, rowIndex: number) => string;\n caption?: ReactNode;\n /** Localized content rendered when rows is empty. */\n emptyState: ReactNode;\n onSortChange?: (columnId: string, direction: TableSortDirection) => void;\n wrapperClassName?: string;\n /** Canonical layout-only placement on the root element. Controlled visual keys are excluded. */\n layoutStyle?: HjmCompositionStyleProp;\n }>;\n\n// Table's callback cannot express null; share the sort policy with a two-state cycle.\nfunction TableInner<Row>(\n {\n columns,\n rows,\n getRowKey,\n caption,\n emptyState,\n onSortChange,\n wrapperClassName,\n className,\n layoutStyle,\n ...props\n }: TableProps<Row>,\n ref: ForwardedRef<HTMLTableElement>,\n) {\n if (columns.length === 0) throw new TypeError(\"Table requires at least one column\");\n const ids = new Set<string>();\n for (const column of columns) {\n if (column.id.trim().length === 0) throw new TypeError(\"Table column id must not be empty\");\n if (ids.has(column.id)) throw new TypeError(`Duplicate Table column id: ${column.id}`);\n ids.add(column.id);\n if (column.sortDirection && !column.sortable) {\n throw new TypeError(`Table column ${column.id} has sortDirection but is not sortable`);\n }\n }\n const rowKeys = rows.map((row, rowIndex) => getRowKey(row, rowIndex));\n const seenRowKeys = new Set<string>();\n for (const rowKey of rowKeys) {\n if (rowKey.trim().length === 0) throw new TypeError(\"Table row key must not be empty\");\n if (seenRowKeys.has(rowKey)) throw new TypeError(`Duplicate Table row key: ${rowKey}`);\n seenRowKeys.add(rowKey);\n }\n return (\n // Placement belongs to the scroll wrapper (the visual root); `style` keeps\n // going to the <table>, where it always went.\n <div className={classNames(\"hjm-table-scroll\", wrapperClassName)} style={layoutStyle} tabIndex={0}>\n <table {...props} ref={ref} className={classNames(\"hjm-table\", className)}>\n {caption ? <caption className=\"hjm-table__caption\">{caption}</caption> : null}\n <thead>\n <tr>\n {columns.map((column) => (\n <th\n key={column.id}\n scope=\"col\"\n className=\"hjm-table__header\"\n data-align={column.align ?? \"start\"}\n aria-sort={column.sortDirection ?? (column.sortable ? \"none\" : undefined)}\n >\n {column.sortable ? (\n <TableSortButton\n header={column.header}\n {...(column.sortDirection === undefined ? {} : { direction: column.sortDirection })}\n glyphs={{ ascending: \" ↑\", descending: \" ↓\", none: \" ↕\" }}\n className=\"hjm-table__sort\"\n onSort={() => {\n const next = getNextDataTableSortState(\n column.sortDirection ? { columnId: column.id, direction: column.sortDirection } : null,\n column.id, \"two-state\",\n );\n onSortChange?.(column.id, next!.direction);\n }} />\n ) : column.header}\n </th>\n ))}\n </tr>\n </thead>\n <tbody>\n {rows.length === 0 ? (\n <tr>\n <td className=\"hjm-table__empty\" colSpan={columns.length}>{emptyState}</td>\n </tr>\n ) : (\n rows.map((row, rowIndex) => (\n <tr key={rowKeys[rowIndex]} className=\"hjm-table__row\">\n {columns.map((column) => (\n <td\n key={column.id}\n className=\"hjm-table__cell\"\n data-align={column.align ?? \"start\"}\n >\n {column.cell(row, rowIndex)}\n </td>\n ))}\n </tr>\n ))\n )}\n </tbody>\n </table>\n </div>\n );\n}\n\nexport const Table = forwardRef(TableInner) as <Row>(\n props: TableProps<Row> & RefAttributes<HTMLTableElement>,\n) => ReactElement;\n\nexport type TimelineProps<Id extends string = string> = Omit<\n HTMLAttributes<HTMLOListElement>,\n \"children\"\n> &\n Readonly<{\n items: readonly TimelineItemDescriptor<Id>[];\n composeAccessibleName: ComposeTimelineAccessibleName;\n renderMetadata?: (item: TimelineItemDescriptor<Id>) => ReactNode;\n /** Per-record commands of a passive Timeline. Not allowed together with selection. */\n renderActions?: (item: TimelineItemDescriptor<Id>) => ReactNode;\n /**\n * Makes the record list a single-select listbox (controlled). `null` = selectable with nothing chosen. Supply\n * together with `onSelectedIdChange`; the list then needs `aria-label` or `aria-labelledby`.\n */\n selectedId?: Id | null;\n /** Called with the record chosen by click, Enter/Space or ArrowUp/ArrowDown/Home/End (selection follows focus). */\n onSelectedIdChange?: (id: Id) => void;\n /** Canonical layout-only placement on the root element. Controlled visual keys are excluded. */\n layoutStyle?: HjmCompositionStyleProp;\n }>;\n\nfunction TimelineInner<Id extends string = string>(\n {\n items,\n composeAccessibleName,\n renderMetadata,\n renderActions,\n selectedId,\n onSelectedIdChange,\n className,\n layoutStyle,\n onKeyDown,\n ...props\n }: TimelineProps<Id>,\n ref: ForwardedRef<HTMLOListElement>,\n) {\n validateTimelineSelection(selectedId, onSelectedIdChange, { hasActions: renderActions !== undefined });\n const selectable = onSelectedIdChange !== undefined;\n if (selectable && !props[\"aria-label\"] && !props[\"aria-labelledby\"]) {\n throw new TypeError(\"A selectable Timeline needs aria-label or aria-labelledby (listbox name)\");\n }\n const resolved = resolveTimelineDescriptor(\n selectable ? { items, selectedId: selectedId ?? null } : { items },\n { composeAccessibleName },\n );\n const idPrefix = useId();\n // Roving tab stop: the selected record, or the first one before anything is chosen.\n const tabStopId = selectable ? (selectedId ?? resolved[0]?.id) : undefined;\n const select = (list: HTMLOListElement, id: Id) => {\n if (id !== selectedId) onSelectedIdChange?.(id);\n list.querySelector<HTMLElement>(`[data-timeline-id=\"${CSS.escape(id)}\"]`)?.focus();\n };\n const handleKeyDown = (event: KeyboardEvent<HTMLOListElement>) => {\n onKeyDown?.(event);\n if (!selectable || event.defaultPrevented) return;\n const focusedId = (event.target as HTMLElement).closest<HTMLElement>(\"[data-timeline-id]\")?.dataset.timelineId as Id | undefined;\n if (focusedId === undefined) return;\n if (event.key === \"Enter\" || event.key === \" \") {\n event.preventDefault();\n select(event.currentTarget, focusedId);\n return;\n }\n const target = getTimelineSelectionTarget(items, focusedId, event.key);\n if (target === undefined) return;\n event.preventDefault();\n select(event.currentTarget, target);\n };\n return (\n <ol\n {...props}\n style={{ ...props.style, ...layoutStyle }}\n ref={ref}\n className={classNames(\"hjm-timeline\", className)}\n role={selectable ? \"listbox\" : props.role}\n aria-orientation={selectable ? \"vertical\" : undefined}\n data-selectable={selectable || undefined}\n onKeyDown={handleKeyDown}\n >\n {resolved.map((item, index) => {\n const actions = renderActions?.(item);\n const detailIds = selectable\n ? [item.description ? `${idPrefix}-${index}-description` : null, item.timestamp ? `${idPrefix}-${index}-timestamp` : null].filter(Boolean).join(\" \")\n : \"\";\n return (\n <li\n aria-label={item.accessibleName}\n className=\"hjm-timeline__item\"\n data-tone={item.tone}\n data-emphasized={item.emphasized || undefined}\n key={item.id}\n {...(selectable ? {\n role: \"option\",\n \"aria-selected\": item.selected,\n \"aria-describedby\": detailIds || undefined,\n \"data-timeline-id\": item.id,\n \"data-state\": item.selected ? \"selected\" : undefined,\n tabIndex: item.id === tabStopId ? 0 : -1,\n onClick: (event: { currentTarget: HTMLLIElement }) => select(event.currentTarget.parentElement as HTMLOListElement, item.id),\n } : {})}\n >\n <span className=\"hjm-timeline__rail\" aria-hidden=\"true\">\n <span className=\"hjm-timeline__dot\" />\n {index < resolved.length - 1 ? (\n <span className=\"hjm-timeline__connector\" />\n ) : null}\n </span>\n <span className=\"hjm-timeline__content\">\n <span className=\"hjm-timeline__heading\">\n <strong className=\"hjm-timeline__label\">{item.label}</strong>\n {renderMetadata?.(item)}\n </span>\n {item.description ? (\n <span className=\"hjm-timeline__description\" id={selectable ? `${idPrefix}-${index}-description` : undefined}>{item.description}</span>\n ) : null}\n {item.timestamp ? <time className=\"hjm-timeline__timestamp\" dateTime={item.dateTime} id={selectable ? `${idPrefix}-${index}-timestamp` : undefined}>{item.timestamp}</time> : null}\n </span>\n {actions ? <div className=\"hjm-timeline__actions\">{actions}</div> : null}\n </li>\n ); })}\n </ol>\n );\n}\n\nexport const Timeline = forwardRef(TimelineInner) as <Id extends string = string>(\n props: TimelineProps<Id> & RefAttributes<HTMLOListElement>,\n) => ReactElement;\n"]}
|
|
1
|
+
{"version":3,"file":"advanced-display.js","sourceRoot":"","sources":["../src/advanced-display.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;AACb,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA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AE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,aAAa,CAAC,aAAiC,EAAE,IAAI,CAAC,EAAE,CAAC;iBAC7H,CAAC,CAAC,CAAC,EAAE,CAAC,YAAG,IAAI,IANsC,IAAI,CAAC,EAAE,CAMvC,CAAA;QACxB,CAAC,CAAC,GACC,CACN,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,QAAQ,GAAG,UAAU,CAAC,aAAa,CAE/B,CAAC","sourcesContent":["\"use client\";\nimport { IdentityAction } from \"./internal/identity-action.js\";\n\nimport { resolveAvatarInitials, type AvatarFallbackContext } from \"@hjmds/design-contracts/avatar-fallback\";\nimport { TableSortButton } from \"./table-sort-button.js\";\nimport { getNextDataTableSortState } from \"@hjmds/design-contracts/components/data-table\";\nimport {\n resolveDescriptionListColumnCount,\n resolveDescriptionListDescriptor,\n type DescriptionItemDescriptor,\n type DescriptionListColumns,\n} from \"@hjmds/design-contracts/components/description-list\";\nimport {\n getTimelineSelectionTarget,\n resolveTimelineDescriptor,\n timelineDefaults,\n validateTimelineSelection,\n type ComposeTimelineAccessibleName,\n type TimelineItemDescriptor,\n} from \"@hjmds/design-contracts/components/timeline\";\nimport {\n resolveStatisticDescriptor,\n validateStatisticGroup,\n type ResolvedStatisticDescriptor,\n type StatisticDescriptor,\n type StatisticGroupDescriptor,\n} from \"@hjmds/design-contracts/components/statistic\";\nimport {\n accordionRecipe,\n avatarRecipe,\n resolveAvatarSize,\n validateAvatarPresentation,\n dividerRecipe,\n listRecipe,\n validateDividerLineStyle,\n type DividerLineStyle,\n statisticRecipe,\n type AccordionDensity,\n type AvatarFrame,\n type AvatarShape,\n type AvatarSize,\n type CornerAccessoryPlacement,\n type StatisticDensity,\n type StatisticPresentation,\n} from \"@hjmds/design-contracts/recipes\";\nimport {\n Children,\n createElement,\n forwardRef,\n Fragment,\n isValidElement,\n useId,\n useLayoutEffect,\n useMemo,\n useRef,\n useState,\n type CSSProperties,\n type ForwardedRef,\n type HTMLAttributes,\n type ImgHTMLAttributes,\n type KeyboardEvent,\n type ReactElement,\n type ReactNode,\n type RefAttributes,\n type TableHTMLAttributes,\n} from \"react\";\nimport type { HjmCompositionStyleProp } from \"./composition-style.js\";\nimport { assignRef, classNames, useControllableState, useElementWidth } from \"./internal.js\";\nimport { useOptionalHjmTheme } from \"./provider.js\";\n\nexport type AccordionItem = Readonly<{\n id: string;\n title: ReactNode;\n panel: ReactNode;\n disabled?: boolean;\n /** Include domain values when a decorative indicator carries more than expansion. */\n accessibilityLabel?: string;\n}>;\n\nexport type AccordionProps = Omit<HTMLAttributes<HTMLDivElement>, \"onChange\"> &\n Readonly<{\n items: readonly AccordionItem[];\n value?: readonly string[];\n defaultValue?: readonly string[];\n onValueChange?: (value: readonly string[]) => void;\n allowsMultipleExpanded?: boolean;\n density?: AccordionDensity;\n headingLevel?: 2 | 3 | 4 | 5 | 6;\n /** Decorative replacement; interaction and expanded state remain owned by Accordion. */\n renderIndicator?: (props: Readonly<{ value: string; expanded: boolean; disabled: boolean }>) => ReactNode;\n /** Canonical layout-only placement on the root element. Controlled visual keys are excluded. */\n layoutStyle?: HjmCompositionStyleProp;\n }>;\n\nfunction validateAccordionItems(items: readonly AccordionItem[]): void {\n if (items.length === 0) throw new TypeError(\"Accordion requires at least one item\");\n const ids = new Set<string>();\n for (const item of items) {\n if (item.id.trim().length === 0) throw new TypeError(\"Accordion item id must not be empty\");\n if (ids.has(item.id)) throw new TypeError(`Duplicate Accordion item id: ${item.id}`);\n ids.add(item.id);\n }\n}\n\nfunction accordionFocusTarget(\n items: readonly AccordionItem[],\n currentIndex: number,\n key: string,\n): number | undefined {\n if (key === \"Home\") return items.findIndex((item) => !item.disabled);\n if (key === \"End\") {\n for (let index = items.length - 1; index >= 0; index -= 1) {\n if (!items[index]?.disabled) return index;\n }\n return -1;\n }\n const direction = key === \"ArrowDown\" ? 1 : key === \"ArrowUp\" ? -1 : 0;\n if (direction === 0) return undefined;\n for (let offset = 1; offset <= items.length; offset += 1) {\n const index = (currentIndex + direction * offset + items.length) % items.length;\n if (!items[index]?.disabled) return index;\n }\n return currentIndex;\n}\n\nexport const Accordion = forwardRef<HTMLDivElement, AccordionProps>(\n function Accordion(\n {\n items,\n value: valueProp,\n defaultValue = [],\n onValueChange,\n allowsMultipleExpanded = accordionRecipe.defaults.allowsMultipleExpanded,\n density = accordionRecipe.defaults.density,\n headingLevel = 3,\n renderIndicator,\n className,\n layoutStyle,\n ...props\n },\n ref,\n ) {\n validateAccordionItems(items);\n const [storedValue, setValue] = useControllableState<readonly string[]>({\n ...(valueProp === undefined ? {} : { value: valueProp }),\n defaultValue,\n ...(onValueChange === undefined ? {} : { onChange: onValueChange }),\n });\n const validIds = new Set(items.map((item) => item.id));\n const committed = useRef(false);\n const value = valueProp === undefined && committed.current ? storedValue.filter(id => validIds.has(id)) : storedValue;\n useLayoutEffect(() => {\n committed.current = true;\n // Removed uncontrolled disclosures retire their expansion; reinsertion starts closed.\n if (value.length !== storedValue.length) setValue(value);\n }, [value, storedValue, setValue]);\n const valueIds = new Set<string>();\n for (const id of value) {\n if (!validIds.has(id)) throw new RangeError(`Unknown Accordion value: ${id}`);\n if (valueIds.has(id)) throw new TypeError(`Duplicate Accordion value: ${id}`);\n valueIds.add(id);\n }\n if (!allowsMultipleExpanded && value.length > 1) {\n throw new RangeError(\"Accordion only allows one expanded item\");\n }\n const baseId = useId().replaceAll(\":\", \"\");\n const triggerRefs = useRef(new Map<string, HTMLButtonElement>());\n const host = useRef<HTMLDivElement | null>(null);\n const focused = useRef<{ id: string; index: number; node: HTMLElement } | null>(null);\n useLayoutEffect(() => {\n const previous = focused.current;\n if (!previous) return;\n const index = items.findIndex(item => item.id === previous.id);\n const removed = index < 0;\n const disabledTrigger = index >= 0 && items[index]!.disabled && triggerRefs.current.get(previous.id) === previous.node;\n if (!(removed || disabledTrigger) || (document.activeElement !== previous.node && document.activeElement !== document.body)) return;\n // Restore only the removed/disabled target, never steal a user's external focus.\n const origin = removed ? Math.min(previous.index, items.length - 1) : index + 1;\n const target = Array.from({ length: items.length }, (_, offset) => items[(origin + offset) % items.length]!).find(item => !item.disabled);\n focused.current = null;\n (target ? triggerRefs.current.get(target.id) : host.current)?.focus();\n }, [items]);\n const toggle = (id: string) => {\n const expanded = value.includes(id);\n setValue(\n expanded\n ? value.filter((candidate) => candidate !== id)\n : allowsMultipleExpanded\n ? [...value, id]\n : [id],\n );\n };\n\n return (\n <div\n {...props}\n style={{ ...props.style, ...layoutStyle }}\n ref={node => { host.current = node; assignRef(ref, node); }}\n tabIndex={-1}\n className={classNames(\"hjm-accordion\", className)}\n data-density={density}\n data-multiple={allowsMultipleExpanded || undefined}\n >\n {items.map((item, index) => {\n const expanded = value.includes(item.id);\n const triggerId = `${baseId}-accordion-trigger-${index}`;\n const panelId = `${baseId}-accordion-panel-${index}`;\n const trigger = (\n <button\n ref={(node) => {\n if (node) triggerRefs.current.set(item.id, node);\n else triggerRefs.current.delete(item.id);\n }}\n id={triggerId}\n type=\"button\"\n className=\"hjm-accordion__trigger\"\n aria-expanded={expanded}\n aria-label={item.accessibilityLabel}\n aria-controls={panelId}\n disabled={item.disabled}\n onClick={() => toggle(item.id)}\n onKeyDown={(event: KeyboardEvent<HTMLButtonElement>) => {\n const target = accordionFocusTarget(items, index, event.key);\n if (target === undefined || target < 0) return;\n event.preventDefault();\n triggerRefs.current.get(items[target]!.id)?.focus();\n }}\n >\n <span className=\"hjm-accordion__title\">{item.title}</span>\n <span className=\"hjm-accordion__indicator\" aria-hidden=\"true\">\n {renderIndicator ? renderIndicator({ value: item.id, expanded, disabled: item.disabled === true }) : expanded ? \"−\" : \"+\"}\n </span>\n </button>\n );\n return (\n <div\n key={item.id}\n onFocusCapture={event => { if (event.target instanceof HTMLElement) focused.current = { id: item.id, index, node: event.target }; }}\n className=\"hjm-accordion__item\"\n data-state={item.disabled ? \"disabled\" : expanded ? \"expanded\" : \"collapsed\"}\n >\n {createElement(`h${headingLevel}`, { className: \"hjm-accordion__header\" }, trigger)}\n <div\n id={panelId}\n role=\"region\"\n className=\"hjm-accordion__panel\"\n aria-labelledby={triggerId}\n hidden={!expanded}\n >\n {item.panel}\n </div>\n </div>\n );\n })}\n </div>\n );\n },\n);\n\n\n/** Props handed to a product image host (`next/image`, a cache-aware loader) that replaces Avatar's `<img>`. */\nexport type AvatarImageRenderProps = Readonly<{\n src: string;\n /** `\"\"` for a decorative avatar or `alt=\"\"`; otherwise the avatar's accessible name. */\n alt: string;\n /** Diameter in px from the size step. */\n size: number;\n /** Avatar's image class (fill + cover); keep it so the frame's clipping and fit still apply. */\n className: string;\n /** Report a failure for this `src` generation; callbacks from a replaced `src` are ignored. */\n onError: () => void;\n}>;\n\n/**\n * Accessibility identity. A meaningful avatar is named by `name` (or `alt`); a decorative one — next to a visible\n * author name, or ornament without a person — is hidden from assistive tech and may omit `name` (2026-10-23:\n * Burntok's decorative avatars had no name to pass).\n */\ntype AvatarIdentity =\n | Readonly<{ decorative?: false; name: string; alt?: string }>\n | Readonly<{ decorative: true; name?: string; alt?: never }>;\n\nexport type AvatarProps = Omit<HTMLAttributes<HTMLSpanElement>, \"children\"> &\n AvatarIdentity &\n Readonly<{\n /** Profile navigation; products provide the member route and localized name. */\n action?: Readonly<{ label: string; onPress(): void; disabled?: boolean }>;\n src?: string;\n fallback?: ReactNode;\n renderFallback?: (context: AvatarFallbackContext) => ReactNode;\n /** Product image host in place of the built-in `<img>`. Exclusive with `imageProps`. */\n renderImage?: (props: AvatarImageRenderProps) => ReactNode;\n size?: AvatarSize;\n shape?: AvatarShape;\n /** Border/background treatment from avatarRecipe.frames; `none` when product artwork fills the frame. */\n frame?: AvatarFrame;\n /** A small mark (team badge, status dot) on a corner of the avatar's box. It is not clipped by the frame. */\n accessory?: ReactNode;\n accessoryPlacement?: CornerAccessoryPlacement;\n imageProps?: Omit<ImgHTMLAttributes<HTMLImageElement>, \"alt\" | \"src\">;\n /** Canonical layout-only placement on the root element. Controlled visual keys are excluded. */\n layoutStyle?: HjmCompositionStyleProp;\n }>;\n\nexport const Avatar = forwardRef<HTMLSpanElement, AvatarProps>(function Avatar(\n {\n name,\n action,\n src,\n alt: altProp,\n decorative = false,\n fallback,\n renderFallback,\n renderImage,\n size = avatarRecipe.defaults.size,\n shape = avatarRecipe.defaults.shape,\n frame = avatarRecipe.defaults.frame,\n accessory,\n accessoryPlacement = avatarRecipe.defaults.accessoryPlacement,\n imageProps,\n className,\n layoutStyle,\n ...props\n },\n ref,\n) {\n if (!decorative && (name === undefined || name.trim().length === 0)) throw new TypeError(\"Avatar name must not be empty\");\n if (renderImage && imageProps) throw new TypeError(\"Avatar renderImage and imageProps are exclusive; pass image attributes to the host\");\n validateAvatarPresentation({ shape, frame, accessoryPlacement });\n const diameter = resolveAvatarSize(size);\n const alt = decorative ? \"\" : altProp ?? name ?? \"\";\n const generation = useMemo(() => ({}), [src]);\n const active = useRef<object | null>(generation);\n useLayoutEffect(() => { active.current = generation; return () => { active.current = null; }; }, [generation]);\n const [failed, setFailed] = useState<object | null>(null);\n const imageAvailable = Boolean(src) && failed !== generation;\n const { onError, className: imageClassName, ...restImageProps } = imageProps ?? {};\n const fail = () => { if (active.current === generation) setFailed(generation); };\n const initials = name !== undefined && name.trim().length > 0 ? resolveAvatarInitials(name) : null;\n const avatarNode = (\n <span\n {...props}\n aria-hidden={decorative || props[\"aria-hidden\"]}\n style={{ ...props.style, ...(action ? {} : layoutStyle), \"--hjm-avatar-size\": `${diameter}px`,\n // Absolute children are placed from the padding edge; subtract the frame border so the offset is from the box.\n \"--hjm-avatar-accessory-inset\": `${0 - avatarRecipe.accessory.offset - avatarRecipe.frames[frame].borderWidth}px` } as CSSProperties}\n ref={ref}\n className={classNames(\"hjm-avatar\", className)}\n data-size={size}\n data-shape={shape}\n data-frame={frame}\n data-state={imageAvailable ? \"image\" : \"fallback\"}\n >\n {src && imageAvailable ? (\n renderImage ? (\n <Fragment key={src}>{renderImage({ src, alt, size: diameter, className: \"hjm-avatar__image\", onError: fail })}</Fragment>\n ) : (\n <img\n {...restImageProps}\n key={src}\n src={src}\n alt={alt}\n className={classNames(\"hjm-avatar__image\", imageClassName)}\n onError={(event) => {\n if (active.current !== generation) return;\n setFailed(generation);\n onError?.(event);\n }}\n />\n )\n ) : (\n <span\n className=\"hjm-avatar__fallback\"\n role={alt.length > 0 ? \"img\" : undefined}\n aria-label={alt.length > 0 ? alt : undefined}\n aria-hidden={alt.length === 0 || undefined}\n >\n {renderFallback?.({ size: diameter, decorative: true }) ?? fallback ?? initials}\n </span>\n )}\n {accessory ? <span className=\"hjm-avatar__accessory\" data-placement={accessoryPlacement}>{accessory}</span> : null}\n </span>\n );\n return action ? <IdentityAction action={action} {...(layoutStyle?{layoutStyle}:{})}>{avatarNode}</IdentityAction> : avatarNode;\n});\n\nexport type AvatarGroupProps = Omit<HTMLAttributes<HTMLSpanElement>, \"children\"> &\n Readonly<{\n /** Required: a pile of faces is meaningless to a screen reader otherwise. */\n label: string;\n children: ReactNode;\n size?: AvatarSize;\n /** Product-composed overflow copy such as \"+3\"; the count is the product's. */\n overflow?: ReactNode;\n /** Canonical layout-only placement on the root element. Controlled visual keys are excluded. */\n layoutStyle?: HjmCompositionStyleProp;\n }>;\n\n/**\n * Overlapping avatars. The overlap comes from the recipe ratio rather than a\n * pixel value so it holds across all four sizes, and the group carries one\n * accessible name instead of letting a reader walk five unlabelled images.\n */\nexport const AvatarGroup = forwardRef<HTMLSpanElement, AvatarGroupProps>(function AvatarGroup(\n { label, children, size = avatarRecipe.defaults.size, overflow, className, layoutStyle, style, ...props },\n ref,\n) {\n if (label.trim().length === 0) throw new TypeError(\"AvatarGroup label must not be empty\");\n const offset = Math.round(avatarRecipe.sizes[size] * avatarRecipe.overlapRatio);\n return (\n <span\n {...props}\n ref={ref}\n role=\"group\"\n aria-label={label}\n className={classNames(\"hjm-avatar-group\", className)}\n data-size={size}\n // The caller `style` used to be replaced by the overlap variable; merge it\n // and keep the recipe overlap last so it stays size-derived.\n style={{ ...style, ...layoutStyle, \"--hjm-avatar-overlap\": `${offset}px` } as CSSProperties}\n >\n {children}\n {overflow ? <span className=\"hjm-avatar-group__overflow\" aria-hidden=\"true\">{overflow}</span> : null}\n </span>\n );\n});\n\nexport type DividerOrientation = \"horizontal\" | \"vertical\";\nexport type DividerInset = keyof typeof dividerRecipe.insets;\n\nexport type DividerProps = HTMLAttributes<HTMLElement> &\n Readonly<{\n orientation?: DividerOrientation;\n inset?: DividerInset;\n /** `dashed`: a break inside one surface rather than a new section; dash/gap from dividerRecipe.lineStyles. */\n lineStyle?: DividerLineStyle;\n decorative?: boolean;\n /** Canonical layout-only placement on the root element. Controlled visual keys are excluded. */\n layoutStyle?: HjmCompositionStyleProp;\n }>;\n\nexport const Divider = forwardRef<HTMLElement, DividerProps>(function Divider(\n {\n orientation = dividerRecipe.defaults.orientation,\n inset = dividerRecipe.defaults.inset,\n lineStyle = dividerRecipe.defaults.lineStyle,\n decorative = false,\n className,\n layoutStyle,\n ...props\n },\n ref,\n) {\n validateDividerLineStyle(lineStyle);\n return createElement(orientation === \"horizontal\" ? \"hr\" : \"div\", {\n ...props,\n style: { ...props.style, ...layoutStyle },\n ref,\n className: classNames(\"hjm-divider\", className),\n \"data-orientation\": orientation,\n \"data-inset\": inset,\n \"data-line-style\": lineStyle,\n role: decorative ? \"presentation\" : \"separator\",\n \"aria-hidden\": decorative || undefined,\n \"aria-orientation\": decorative ? undefined : orientation,\n });\n});\n\nexport type ListSeparatorProps = Readonly<{\n separator?: keyof typeof listRecipe.separators;\n leading?: boolean;\n layoutStyle?: HjmCompositionStyleProp;\n}>;\n\n/** Decorative separator for a product-owned virtual collection. List owns separators for finite rows. */\nexport function ListSeparator({ separator = \"content\", leading = false, layoutStyle }: ListSeparatorProps) {\n if (!listRecipe.separators[separator]) return null;\n return <div aria-hidden=\"true\" role=\"presentation\" className=\"hjm-list-separator\" style={{\n marginInlineStart: `var(--hjm-list-separator-${separator}-${leading ? \"leading-start\" : \"start\"})`,\n marginInlineEnd: `var(--hjm-list-separator-${separator}-end)`,\n ...layoutStyle,\n }} />;\n}\n\nexport type ListAppearance = \"grouped\" | \"plain\";\n\nexport type ListProps = Omit<HTMLAttributes<HTMLDivElement>, \"children\"> &\n Readonly<{\n label: string;\n children: ReactNode;\n separator?: keyof typeof listRecipe.separators;\n appearance?: ListAppearance;\n /** Canonical layout-only placement on the root element. Controlled visual keys are excluded. */\n layoutStyle?: HjmCompositionStyleProp;\n }>;\n\n/** Semantic list container that owns separators around composed rows. */\nexport const List = forwardRef<HTMLDivElement, ListProps>(function List(\n {\n label,\n children,\n separator = listRecipe.defaults.separator,\n appearance = \"plain\",\n className,\n layoutStyle,\n ...props\n },\n ref,\n) {\n if (!label.trim()) throw new TypeError(\"List label must not be empty\");\n const items = Children.toArray(children);\n return (\n <div\n {...props}\n style={{ ...props.style, ...layoutStyle }}\n ref={ref}\n aria-label={label}\n className={classNames(\"hjm-list\", className)}\n data-appearance={appearance}\n data-separator={separator}\n role=\"list\"\n >\n {items.map((item, index) => (\n <div\n className=\"hjm-list__item\"\n key={isValidElement(item) && item.key !== null ? item.key : `hjm-list-${index}`}\n role=\"listitem\"\n >\n {item}\n </div>\n ))}\n </div>\n );\n});\n\nexport type StatisticTrendMarkRenderProps = Readonly<{\n name: \"trendUp\" | \"trendDown\" | \"trendFlat\";\n color: \"currentColor\";\n size: number;\n}>;\n\nexport type ComposeStatisticAccessibilityLabel<Id extends string = string> = (\n input: Readonly<{\n contextLabel?: string;\n descriptor: ResolvedStatisticDescriptor<Id>;\n valueText: string;\n }>,\n) => string;\n\nexport type StatisticProps<Id extends string = string> = Omit<\n HTMLAttributes<HTMLElement>,\n \"children\"\n> & Readonly<{\n descriptor: StatisticDescriptor<Id>;\n density?: StatisticDensity;\n presentation?: StatisticPresentation;\n contextLabel?: string;\n accessibilityLabel?: string;\n composeAccessibilityLabel?: ComposeStatisticAccessibilityLabel<Id>;\n leading?: ReactNode;\n /** Product-owned series/category color; value text and decorative leading share it. */\n valueColor?: string;\n renderTrendMark?: (props: StatisticTrendMarkRenderProps) => ReactNode;\n /** Optional visual adapter; the descriptor remains the accessible value source. */\n renderValue?: (value: string) => ReactNode;\n /** Canonical layout-only placement on the root element. Controlled visual keys are excluded. */\n layoutStyle?: HjmCompositionStyleProp;\n}>;\n\nexport function Statistic<Id extends string = string>(props: StatisticProps<Id>) {\n return <StatisticView {...props} />;\n}\n\nfunction StatisticView<Id extends string = string>({\n descriptor,\n density = \"comfortable\",\n presentation = \"plain\",\n contextLabel,\n accessibilityLabel,\n composeAccessibilityLabel,\n leading,\n valueColor,\n bar = false,\n renderTrendMark,\n renderValue,\n className,\n layoutStyle,\n ...props\n}: StatisticProps<Id> & { bar?: boolean }) {\n const resolved = resolveStatisticDescriptor(descriptor);\n const valueText = `${resolved.prefix ?? \"\"}${resolved.value}${resolved.suffix ?? \"\"}`;\n const announcement = accessibilityLabel ?? composeAccessibilityLabel?.({\n ...(contextLabel === undefined ? {} : { contextLabel }),\n descriptor: resolved,\n valueText,\n }) ?? [contextLabel, resolved.label, valueText, resolved.trend?.label, resolved.hint]\n .filter(Boolean)\n .join(\", \");\n if (!announcement.trim()) throw new TypeError(\"Statistic accessibility label must not be empty\");\n const trendName = resolved.trend\n ? statisticRecipe.trend.marks[resolved.trend.direction]\n : undefined;\n return (\n <article\n {...props}\n style={{ ...props.style, ...layoutStyle, ...(valueColor ? { \"--hjm-statistic-value-color\": valueColor } : {}) } as CSSProperties}\n aria-label={announcement}\n className={classNames(\"hjm-statistic\", className)}\n data-arrangement={bar ? \"bar\" : undefined}\n data-density={density}\n data-presentation={presentation}\n >\n <span aria-hidden=\"true\" className=\"hjm-statistic__label\">{resolved.label}</span>\n <span aria-hidden=\"true\" className=\"hjm-statistic__value-row\" data-leading={leading === undefined ? undefined : \"\"}>\n {leading === undefined ? null : <span className=\"hjm-statistic__leading\">{leading}</span>}\n {resolved.prefix ? <span className=\"hjm-statistic__affix\">{resolved.prefix}</span> : null}\n <strong className=\"hjm-statistic__value\">{renderValue?.(resolved.value) ?? resolved.value}</strong>\n {resolved.suffix ? <span className=\"hjm-statistic__affix\">{resolved.suffix}</span> : null}\n </span>\n {resolved.trend ? (\n <span aria-hidden=\"true\" className=\"hjm-statistic__trend\" data-tone={resolved.trend.tone}>\n <span className=\"hjm-statistic__trend-mark\">\n {renderTrendMark?.({ name: trendName!, color: \"currentColor\", size: 16 }) ?? (\n resolved.trend.direction === \"up\" ? \"↑\" : resolved.trend.direction === \"down\" ? \"↓\" : \"—\"\n )}\n </span>\n {resolved.trend.label}\n </span>\n ) : null}\n {resolved.hint ? <span aria-hidden=\"true\" className=\"hjm-statistic__hint\">{resolved.hint}</span> : null}\n </article>\n );\n}\n\nexport type StatisticGroupProps<Id extends string = string> = Omit<\n HTMLAttributes<HTMLDivElement>,\n \"children\"\n> & Readonly<{\n label: string;\n descriptor: StatisticGroupDescriptor<Id>;\n density?: StatisticDensity;\n presentation?: StatisticPresentation;\n composeAccessibilityLabel?: ComposeStatisticAccessibilityLabel<Id>;\n /** A bar is a single equal-width row for a few short counts; grid retains responsive columns. */\n arrangement?: \"grid\" | \"bar\";\n renderLeading?: (item: StatisticDescriptor<Id>, context: { color: string; size: number }) => ReactNode;\n getValueColor?: (item: StatisticDescriptor<Id>) => string | undefined;\n renderTrendMark?: (props: StatisticTrendMarkRenderProps) => ReactNode;\n /** Canonical layout-only placement on the root element. Controlled visual keys are excluded. */\n layoutStyle?: HjmCompositionStyleProp;\n}>;\n\nexport function StatisticGroup<Id extends string = string>({\n label,\n descriptor,\n density,\n presentation,\n composeAccessibilityLabel,\n arrangement = \"grid\",\n renderLeading,\n getValueColor,\n renderTrendMark,\n className,\n style,\n layoutStyle,\n ...props\n}: StatisticGroupProps<Id>) {\n validateStatisticGroup(descriptor);\n if (!label.trim()) throw new TypeError(\"StatisticGroup label must not be empty\");\n return (\n <div\n {...props}\n aria-label={label}\n className={classNames(\"hjm-statistic-group\", className)}\n role=\"list\"\n data-arrangement={arrangement}\n style={{ ...style, ...layoutStyle, \"--hjm-statistic-columns\": arrangement === \"bar\" ? descriptor.items.length : descriptor.columns ?? statisticRecipe.defaults.columns } as CSSProperties}\n >\n {descriptor.items.map((item) => {\n const valueColor = getValueColor?.(item);\n return (\n <div key={item.id} role=\"listitem\">\n <StatisticView\n bar={arrangement === \"bar\"}\n {...(valueColor ? { valueColor } : {})}\n {...(renderLeading ? { leading: renderLeading(item, { color: valueColor ?? \"currentColor\", size: statisticRecipe.group.bar.iconSize }) } : {})}\n contextLabel={label}\n descriptor={item}\n {...(composeAccessibilityLabel === undefined ? {} : { composeAccessibilityLabel })}\n {...(density === undefined ? {} : { density })}\n {...(presentation === undefined ? {} : { presentation })}\n {...(renderTrendMark === undefined ? {} : { renderTrendMark })}\n />\n </div>\n ); })}\n </div>\n );\n}\n\nexport type DescriptionListProps<Id extends string = string> = Omit<\n HTMLAttributes<HTMLDListElement>,\n \"children\"\n> &\n Readonly<{\n items: readonly DescriptionItemDescriptor<Id>[];\n columns?: DescriptionListColumns;\n layout?: \"stacked\" | \"inline\";\n /** Canonical layout-only placement. Controlled visual keys are excluded. */\n layoutStyle?: HjmCompositionStyleProp;\n }>;\n\nfunction DescriptionListInner<Id extends string>(\n { items, columns, layout, className, layoutStyle, style, ...props }: DescriptionListProps<Id>,\n forwardedRef: ForwardedRef<HTMLDListElement>,\n) {\n const descriptor = resolveDescriptionListDescriptor({\n items,\n ...(columns === undefined ? {} : { columns }),\n ...(layout === undefined ? {} : { layout }),\n });\n const [width, ref] = useElementWidth(forwardedRef);\n const theme = useOptionalHjmTheme();\n const resolvedColumns = resolveDescriptionListColumnCount(\n width ?? 0,\n descriptor.columns,\n theme?.environment.textScale ?? 1,\n );\n const responsiveStyle = {\n ...style,\n ...layoutStyle,\n \"--hjm-description-columns\": resolvedColumns,\n } as CSSProperties;\n return (\n <dl\n {...props}\n ref={ref}\n className={classNames(\"hjm-description-list\", className)}\n data-layout={descriptor.layout}\n data-columns={resolvedColumns}\n data-state={resolvedColumns < descriptor.columns ? \"collapsed\" : \"ready\"}\n style={responsiveStyle}\n >\n {descriptor.items.map((item) => (\n <div key={item.id} className=\"hjm-description-list__item\">\n <dt className=\"hjm-description-list__label\">{item.label}</dt>\n <dd className=\"hjm-description-list__value\">{item.value}</dd>\n </div>\n ))}\n </dl>\n );\n}\n\nexport const DescriptionList = forwardRef(DescriptionListInner) as <Id extends string = string>(\n props: DescriptionListProps<Id> & RefAttributes<HTMLDListElement>,\n) => ReactElement;\n\nexport type TableSortDirection = \"ascending\" | \"descending\";\n\nexport type TableColumn<Row> = Readonly<{\n id: string;\n header: ReactNode;\n cell: (row: Row, rowIndex: number) => ReactNode;\n align?: \"start\" | \"center\" | \"end\";\n sortable?: boolean;\n sortDirection?: TableSortDirection;\n}>;\n\nexport type TableProps<Row> = Omit<TableHTMLAttributes<HTMLTableElement>, \"children\"> &\n Readonly<{\n columns: readonly TableColumn<Row>[];\n rows: readonly Row[];\n getRowKey: (row: Row, rowIndex: number) => string;\n caption?: ReactNode;\n /** Localized content rendered when rows is empty. */\n emptyState: ReactNode;\n onSortChange?: (columnId: string, direction: TableSortDirection) => void;\n wrapperClassName?: string;\n /** Canonical layout-only placement on the root element. Controlled visual keys are excluded. */\n layoutStyle?: HjmCompositionStyleProp;\n }>;\n\n// Table's callback cannot express null; share the sort policy with a two-state cycle.\nfunction TableInner<Row>(\n {\n columns,\n rows,\n getRowKey,\n caption,\n emptyState,\n onSortChange,\n wrapperClassName,\n className,\n layoutStyle,\n ...props\n }: TableProps<Row>,\n ref: ForwardedRef<HTMLTableElement>,\n) {\n if (columns.length === 0) throw new TypeError(\"Table requires at least one column\");\n const ids = new Set<string>();\n for (const column of columns) {\n if (column.id.trim().length === 0) throw new TypeError(\"Table column id must not be empty\");\n if (ids.has(column.id)) throw new TypeError(`Duplicate Table column id: ${column.id}`);\n ids.add(column.id);\n if (column.sortDirection && !column.sortable) {\n throw new TypeError(`Table column ${column.id} has sortDirection but is not sortable`);\n }\n }\n const rowKeys = rows.map((row, rowIndex) => getRowKey(row, rowIndex));\n const seenRowKeys = new Set<string>();\n for (const rowKey of rowKeys) {\n if (rowKey.trim().length === 0) throw new TypeError(\"Table row key must not be empty\");\n if (seenRowKeys.has(rowKey)) throw new TypeError(`Duplicate Table row key: ${rowKey}`);\n seenRowKeys.add(rowKey);\n }\n return (\n // Placement belongs to the scroll wrapper (the visual root); `style` keeps\n // going to the <table>, where it always went.\n <div className={classNames(\"hjm-table-scroll\", wrapperClassName)} style={layoutStyle} tabIndex={0}>\n <table {...props} ref={ref} className={classNames(\"hjm-table\", className)}>\n {caption ? <caption className=\"hjm-table__caption\">{caption}</caption> : null}\n <thead>\n <tr>\n {columns.map((column) => (\n <th\n key={column.id}\n scope=\"col\"\n className=\"hjm-table__header\"\n data-align={column.align ?? \"start\"}\n aria-sort={column.sortDirection ?? (column.sortable ? \"none\" : undefined)}\n >\n {column.sortable ? (\n <TableSortButton\n header={column.header}\n {...(column.sortDirection === undefined ? {} : { direction: column.sortDirection })}\n glyphs={{ ascending: \" ↑\", descending: \" ↓\", none: \" ↕\" }}\n className=\"hjm-table__sort\"\n onSort={() => {\n const next = getNextDataTableSortState(\n column.sortDirection ? { columnId: column.id, direction: column.sortDirection } : null,\n column.id, \"two-state\",\n );\n onSortChange?.(column.id, next!.direction);\n }} />\n ) : column.header}\n </th>\n ))}\n </tr>\n </thead>\n <tbody>\n {rows.length === 0 ? (\n <tr>\n <td className=\"hjm-table__empty\" colSpan={columns.length}>{emptyState}</td>\n </tr>\n ) : (\n rows.map((row, rowIndex) => (\n <tr key={rowKeys[rowIndex]} className=\"hjm-table__row\">\n {columns.map((column) => (\n <td\n key={column.id}\n className=\"hjm-table__cell\"\n data-align={column.align ?? \"start\"}\n >\n {column.cell(row, rowIndex)}\n </td>\n ))}\n </tr>\n ))\n )}\n </tbody>\n </table>\n </div>\n );\n}\n\nexport const Table = forwardRef(TableInner) as <Row>(\n props: TableProps<Row> & RefAttributes<HTMLTableElement>,\n) => ReactElement;\n\nexport type TimelineProps<Id extends string = string> = Omit<\n HTMLAttributes<HTMLOListElement>,\n \"children\"\n> &\n Readonly<{\n items: readonly TimelineItemDescriptor<Id>[];\n /** Default journal uses unfilled reading rows; selection adds record disclosure. \"record\" retains the earlier card surface. */\n variant?: \"record\" | \"journal\";\n composeAccessibleName: ComposeTimelineAccessibleName;\n renderMetadata?: (item: TimelineItemDescriptor<Id>) => ReactNode;\n /** Per-record commands of a passive Timeline. Not allowed together with selection. */\n renderActions?: (item: TimelineItemDescriptor<Id>) => ReactNode;\n /**\n * Makes records selectable (journal disclosure buttons; record variant listbox). `null` = nothing chosen. Supply\n * together with `onSelectedIdChange`; the list then needs `aria-label` or `aria-labelledby`.\n */\n selectedId?: Id | null;\n /** Called with the record chosen by click, Enter/Space or ArrowUp/ArrowDown/Home/End (selection follows focus). */\n onSelectedIdChange?: (id: Id) => void;\n /** Canonical layout-only placement on the root element. Controlled visual keys are excluded. */\n layoutStyle?: HjmCompositionStyleProp;\n }>;\n\nfunction TimelineInner<Id extends string = string>(\n {\n items,\n variant = timelineDefaults.variant,\n composeAccessibleName,\n renderMetadata,\n renderActions,\n selectedId,\n onSelectedIdChange,\n className,\n layoutStyle,\n onKeyDown,\n ...props\n }: TimelineProps<Id>,\n ref: ForwardedRef<HTMLOListElement>,\n) {\n validateTimelineSelection(selectedId, onSelectedIdChange, { hasActions: renderActions !== undefined, variant });\n const selectable = onSelectedIdChange !== undefined;\n const journal = variant === \"journal\";\n // Anchor collapsed state to its selected record. External map/day selection opens the new record immediately.\n const [disclosure, setDisclosure] = useState({ id: selectedId, collapsed: false });\n if (disclosure.id !== selectedId) setDisclosure({ id: selectedId, collapsed: false });\n if (selectable && !props[\"aria-label\"] && !props[\"aria-labelledby\"]) {\n throw new TypeError(\"A selectable Timeline needs aria-label or aria-labelledby (listbox name)\");\n }\n const resolved = resolveTimelineDescriptor(\n selectable ? { items, selectedId: selectedId ?? null } : { items },\n { composeAccessibleName },\n );\n const idPrefix = useId();\n // Roving tab stop: the selected record, or the first one before anything is chosen.\n const tabStopId = selectable ? (selectedId ?? resolved[0]?.id) : undefined;\n const select = (list: HTMLOListElement, id: Id, toggle = false) => {\n if (journal) setDisclosure({ id, collapsed: toggle && id === selectedId && !disclosure.collapsed });\n if (id !== selectedId) onSelectedIdChange?.(id);\n list.querySelector<HTMLElement>(`[data-timeline-id=\"${CSS.escape(id)}\"]`)?.focus();\n };\n const handleKeyDown = (event: KeyboardEvent<HTMLOListElement>) => {\n onKeyDown?.(event);\n if (!selectable || event.defaultPrevented) return;\n const focusedId = (event.target as HTMLElement).closest<HTMLElement>(\"[data-timeline-id]\")?.dataset.timelineId as Id | undefined;\n if (focusedId === undefined) return;\n if (!journal && (event.key === \"Enter\" || event.key === \" \")) {\n event.preventDefault();\n select(event.currentTarget, focusedId, true);\n return;\n }\n const target = getTimelineSelectionTarget(items, focusedId, event.key);\n if (target === undefined) return;\n event.preventDefault();\n select(event.currentTarget, target);\n };\n return (\n <ol\n {...props}\n style={{ ...props.style, ...layoutStyle }}\n ref={ref}\n className={classNames(\"hjm-timeline\", className)}\n role={selectable && !journal ? \"listbox\" : props.role}\n aria-orientation={selectable && !journal ? \"vertical\" : undefined}\n data-selectable={selectable || undefined}\n data-variant={variant}\n onKeyDown={handleKeyDown}\n >\n {resolved.map((item, index) => {\n const actions = renderActions?.(item);\n const detailIds = selectable\n ? [item.description ? `${idPrefix}-${index}-description` : null, item.timestamp ? `${idPrefix}-${index}-timestamp` : null].filter(Boolean).join(\" \")\n : \"\";\n const expanded = !selectable || (item.selected && (disclosure.id !== selectedId || !disclosure.collapsed));\n const body = <>\n <span className=\"hjm-timeline__rail\" aria-hidden=\"true\">\n <span className=\"hjm-timeline__dot\" />\n {index < resolved.length - 1 ? <span className=\"hjm-timeline__connector\" /> : null}\n </span>\n <span className=\"hjm-timeline__content\">\n <span className=\"hjm-timeline__heading\">\n <strong className=\"hjm-timeline__label\">{item.label}</strong>\n {!journal ? renderMetadata?.(item) : selectable ? <span className=\"hjm-timeline__chevron\" aria-hidden=\"true\">⌄</span> : null}\n </span>\n {journal && item.timestamp ? <time className=\"hjm-timeline__timestamp\" dateTime={item.dateTime}>{item.timestamp}</time> : null}\n <span className=\"hjm-timeline__details\" id={`${idPrefix}-${index}-details`} hidden={journal && !expanded}>\n {journal ? renderMetadata?.(item) : null}\n {item.description ? <span className=\"hjm-timeline__description\" id={selectable && !journal ? `${idPrefix}-${index}-description` : undefined}>{item.description}</span> : null}\n {!journal && item.timestamp ? <time className=\"hjm-timeline__timestamp\" dateTime={item.dateTime} id={selectable ? `${idPrefix}-${index}-timestamp` : undefined}>{item.timestamp}</time> : null}\n </span>\n </span>\n {actions ? <div className=\"hjm-timeline__actions\">{actions}</div> : null}\n </>;\n if (journal && selectable) return <li key={item.id}>\n <button type=\"button\" className=\"hjm-timeline__item\" data-tone={item.tone} data-state={item.selected ? \"selected\" : undefined}\n data-timeline-id={item.id} aria-label={[item.accessibleName, item.timestamp].filter(Boolean).join(\", \")}\n aria-expanded={expanded} aria-controls={`${idPrefix}-${index}-details`} aria-describedby={expanded ? `${idPrefix}-${index}-details` : undefined}\n onClick={event => select(event.currentTarget.closest(\"ol\")!, item.id, true)}>{body}</button>\n </li>;\n return <li aria-label={item.accessibleName} className=\"hjm-timeline__item\" data-tone={item.tone}\n data-emphasized={item.emphasized || undefined} key={item.id}\n {...(selectable ? {\n role: \"option\", \"aria-selected\": item.selected, \"aria-describedby\": detailIds || undefined,\n \"data-timeline-id\": item.id, \"data-state\": item.selected ? \"selected\" : undefined,\n tabIndex: item.id === tabStopId ? 0 : -1,\n onClick: (event: { currentTarget: HTMLLIElement }) => select(event.currentTarget.parentElement as HTMLOListElement, item.id),\n } : {})}>{body}</li>\n })}\n </ol>\n );\n}\n\nexport const Timeline = forwardRef(TimelineInner) as <Id extends string = string>(\n props: TimelineProps<Id> & RefAttributes<HTMLOListElement>,\n) => ReactElement;\n"]}
|
package/dist/display.d.ts
CHANGED
|
@@ -65,6 +65,8 @@ export type CardProps = Omit<HTMLAttributes<HTMLElement>, "title"> & Readonly<{
|
|
|
65
65
|
/** Non-interactive cover classification at the shared top/end inset. Requires backgroundMedia. */
|
|
66
66
|
mediaBadges?: ReactNode;
|
|
67
67
|
badges?: ReactNode;
|
|
68
|
+
/** Corner labels float above content without changing card height; keep their copy short. */
|
|
69
|
+
badgesPlacement?: "body" | "corner";
|
|
68
70
|
/** Centre short metadata beneath artwork without product-owned badge layout. */
|
|
69
71
|
badgesAlign?: "start" | "center";
|
|
70
72
|
/** Activate only the passive cover; other card content/actions keep independent targets. */
|
|
@@ -116,6 +118,8 @@ export declare const Card: import("react").ForwardRefExoticComponent<Omit<HTMLAt
|
|
|
116
118
|
/** Non-interactive cover classification at the shared top/end inset. Requires backgroundMedia. */
|
|
117
119
|
mediaBadges?: ReactNode;
|
|
118
120
|
badges?: ReactNode;
|
|
121
|
+
/** Corner labels float above content without changing card height; keep their copy short. */
|
|
122
|
+
badgesPlacement?: "body" | "corner";
|
|
119
123
|
/** Centre short metadata beneath artwork without product-owned badge layout. */
|
|
120
124
|
badgesAlign?: "start" | "center";
|
|
121
125
|
/** Activate only the passive cover; other card content/actions keep independent targets. */
|
package/dist/display.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"display.d.ts","sourceRoot":"","sources":["../src/display.tsx"],"names":[],"mappings":"AAGA,OAAO,EAEL,aAAa,EACb,KAAK,qBAAqB,EAC1B,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,YAAY,IAAI,oBAAoB,EAGzC,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC9B,MAAM,iCAAiC,CAAC;AAGzC,OAAO,EAEL,KAAK,OAAO,EACb,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAEL,KAAK,gBAAgB,EACtB,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,WAAW,EAC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B,CAAC,WAAW,CAAC;IACtC,4EAA4E;kBAChE,uBAAuB;gDAoIvC,CAAC"}
|
package/dist/display.js
CHANGED
|
@@ -41,7 +41,7 @@ export const Tag = forwardRef(function Tag({ children, tone, className, layoutSt
|
|
|
41
41
|
});
|
|
42
42
|
return (_jsx("span", { ...props, style: { ...style, ...layoutStyle }, ref: ref, className: classNames("hjm-tag", className), "data-tone": descriptor.tone, children: _jsx("span", { className: "hjm-tag__label", children: descriptor.label }) }));
|
|
43
43
|
});
|
|
44
|
-
export const Card = forwardRef(function Card({ title, description, leading, leadingAction, media, backgroundMedia, backgroundInteraction, mediaBadges, badges, badgesAlign = cardRecipe.defaults.badgesAlign, mediaAction, actions, headerActions, headingLevel = cardRecipe.defaults.headingLevel,
|
|
44
|
+
export const Card = forwardRef(function Card({ title, description, leading, leadingAction, media, backgroundMedia, backgroundInteraction, mediaBadges, badges, badgesAlign = cardRecipe.defaults.badgesAlign, badgesPlacement = cardRecipe.defaults.badgesPlacement, mediaAction, actions, headerActions, headingLevel = cardRecipe.defaults.headingLevel,
|
|
45
45
|
// An omitted selection is an ordinary action, not an unpressed toggle.
|
|
46
46
|
selected, onActivate, href, renderLink, disabled = false, tone = cardRecipe.defaults.tone, bordered = cardRecipe.defaults.bordered, padding = cardRecipe.defaults.padding, radius, className, children, ...props }, ref) {
|
|
47
47
|
if (href !== undefined && (!href.trim() || onActivate))
|
|
@@ -74,8 +74,8 @@ selected, onActivate, href, renderLink, disabled = false, tone = cardRecipe.defa
|
|
|
74
74
|
type: "button", disabled, "aria-pressed": selected,
|
|
75
75
|
"data-interactive": true, onClick: activate,
|
|
76
76
|
} : {}), ...(overlay ? { "data-activation": "overlay" } : {}), tone: selected ? cardRecipe.selectedTone : tone, bordered: bordered, ...(radius === undefined ? {} : { radius }), className: classNames("hjm-card", className), "data-background-media": backgroundMedia ? true : undefined, "data-state": (onActivate || href !== undefined || mediaAction) && disabled ? "disabled" : selected ? "selected" : "idle", style: { "--hjm-card-background-scrim": cardRecipe.backgroundMedia.scrim, "--hjm-card-background-foreground": cardRecipe.backgroundMedia.foreground, "--hjm-card-disabled-opacity": cardRecipe.interaction.disabledOpacity,
|
|
77
|
-
"--hjm-card-pressed-opacity": cardRecipe.interaction.pressedOpacity, ...props.style }, children: [backgroundMedia ? _jsxs("div", { className: "hjm-card__background", "aria-hidden": "true", children: [backgroundMedia, _jsx("span", { className: "hjm-card__scrim" })] }) : null, backgroundInteraction === undefined ? null : _jsx("div", { className: "hjm-card__background-interaction", "data-slot": "background-interaction", children: backgroundInteraction }), mediaBadges === undefined ? null : _jsx("div", { className: "hjm-card__media-badges", "data-slot": "media-badges", children: mediaBadges }), media ? _jsx("div", { className: "hjm-card__media", "data-slot": "media", children: mediaAction ? _jsxs("button", { type: "button", className: "hjm-card__media-action", "aria-label": mediaAction.label, disabled: disabled, onClick: () => { if (!disabled)
|
|
78
|
-
mediaAction.onActivate(); }, children: [media, mediaAction.icon ? _jsx("span", { className: "hjm-card__media-icon", "aria-hidden": "true", style: { insetInlineEnd: cardRecipe.mediaAction.inset, insetBlockEnd: cardRecipe.mediaAction.inset, width: cardRecipe.mediaAction.diameter, height: cardRecipe.mediaAction.diameter }, children: mediaAction.icon({ color: "currentColor", size: cardRecipe.mediaAction.iconSize }) }) : null] }) : media }) : null, _jsxs("div", { className: "hjm-card__body", "data-slot": "body", style: { padding: surfaceGeometry.paddings[padding] }, children: [badges === undefined ? null : _jsx("div", { className: "hjm-card__badges", "data-slot": "badges", "data-align": badgesAlign, children: badges }), hasHeader ? (_jsxs("div", { className: "hjm-card__header", "data-slot": "header", children: [leading === undefined ? null : (_jsx("span", { className: "hjm-card__leading", "data-slot": "leading", "data-interactive": leadingAction ? "" : undefined, children: leadingAction ? _jsx(IdentityAction, { action: leadingAction, children: leading }) : leading })), _jsxs("div", { className: "hjm-card__copy", children: [title === undefined
|
|
77
|
+
"--hjm-card-pressed-opacity": cardRecipe.interaction.pressedOpacity, ...props.style }, children: [badges !== undefined && badgesPlacement === "corner" ? _jsx("div", { className: "hjm-card__corner-badges", "data-slot": "corner-badges", style: { top: cardRecipe.cornerBadge.inset, right: cardRecipe.cornerBadge.inset, transform: `rotate(${cardRecipe.cornerBadge.rotation}deg)` }, children: badges }) : null, backgroundMedia ? _jsxs("div", { className: "hjm-card__background", "aria-hidden": "true", children: [backgroundMedia, _jsx("span", { className: "hjm-card__scrim" })] }) : null, backgroundInteraction === undefined ? null : _jsx("div", { className: "hjm-card__background-interaction", "data-slot": "background-interaction", children: backgroundInteraction }), mediaBadges === undefined ? null : _jsx("div", { className: "hjm-card__media-badges", "data-slot": "media-badges", children: mediaBadges }), media ? _jsx("div", { className: "hjm-card__media", "data-slot": "media", children: mediaAction ? _jsxs("button", { type: "button", className: "hjm-card__media-action", "aria-label": mediaAction.label, disabled: disabled, onClick: () => { if (!disabled)
|
|
78
|
+
mediaAction.onActivate(); }, children: [media, mediaAction.icon ? _jsx("span", { className: "hjm-card__media-icon", "aria-hidden": "true", style: { insetInlineEnd: cardRecipe.mediaAction.inset, insetBlockEnd: cardRecipe.mediaAction.inset, width: cardRecipe.mediaAction.diameter, height: cardRecipe.mediaAction.diameter }, children: mediaAction.icon({ color: "currentColor", size: cardRecipe.mediaAction.iconSize }) }) : null] }) : media }) : null, _jsxs("div", { className: "hjm-card__body", "data-slot": "body", style: { padding: surfaceGeometry.paddings[padding] }, children: [badges === undefined || badgesPlacement !== "body" ? null : _jsx("div", { className: "hjm-card__badges", "data-slot": "badges", "data-align": badgesAlign, children: badges }), hasHeader ? (_jsxs("div", { className: "hjm-card__header", "data-slot": "header", children: [leading === undefined ? null : (_jsx("span", { className: "hjm-card__leading", "data-slot": "leading", "data-interactive": leadingAction ? "" : undefined, children: leadingAction ? _jsx(IdentityAction, { action: leadingAction, children: leading }) : leading })), _jsxs("div", { className: "hjm-card__copy", children: [title === undefined
|
|
79
79
|
? null
|
|
80
80
|
: createElement(`h${headingLevel}`, { className: "hjm-card__title", "data-slot": "title" }, title), description === undefined ? null : (_jsx(Text, { as: "p", tone: "muted", className: "hjm-card__description", "data-slot": "description", children: description }))] }), headerActions === undefined ? null : _jsx("div", { className: "hjm-card__header-actions", "data-slot": "header-actions", children: headerActions })] })) : null, children === undefined ? null : (_jsx("div", { className: "hjm-card__content", "data-slot": "content", children: children }))] }), destination, overlay && href === undefined ? (_jsx("button", { type: "button", className: "hjm-card__activator", "data-slot": "activator", "aria-label": activationLabel, "aria-pressed": selected, disabled: disabled, onClick: activate })) : null, actions ? _jsx("div", { className: "hjm-card__actions", "data-slot": "actions", children: actions }) : null] }));
|
|
81
81
|
});
|