/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ /** * Heat rows (`Plan Spec.md` §4·K4) — the Matrix cell recipes quantised onto * the shared scale: heat cells on the design system's heat ramp, five steps * (`heat.1` … `heat.5`; #949 — the cell's value prints in the ink its step * pairs with, at least 4.5:1 in both themes), 45° no-data hatch, ≥ warn * threshold ring, * booked-vs-free weight bars (planned ⇒ pale), and weighted segment * compositions. The renderer names each cell's STEP and each segment's FILL * as data attributes; every colour lives on the `plan` recipe slots. * * Group summary strips (§5) are exactly the `heat` arm rendered by * {@link HeatCells} — GroupRow delegates here. * * A data row's cell names itself — `data-cell`, its own declared instant — * so the canvas's one overlay layer opens the root's popover and hover card * for it (#816, #743 item 5). A group strip's cells are the band's toggle * instead, and name nothing. * * Every cell says the value its colour or width encodes (#819): a data row's * cell is a button named by its bucket and value, a strip's cell carries the * same words as visually hidden text. */ import { type ValueTypeOf } from "@elaraai/east"; import { Plan } from "@elaraai/e3-ui/internal"; import type { PlanRowId } from "../model.js"; type Styles = Record>; type HeatCellsValue = ValueTypeOf; /** The heat-ramp level a depth in `[0, 1]` falls on — five, 0 to 4 (the * ramp's steps 1 to 5). */ export declare function heatLevel(depth: number): number; export type HeatCellsProps = { /** R2 context strip (#591) — render this row's marks at strip size. */ ctx?: boolean | undefined; rowKey: string; cells: HeatCellsValue; styles: Styles; } & ({ /** A data row's cells are elements: a click selects the row and names * it by its id (#822). */ rowId: PlanRowId; onCellClick?: undefined; } | { /** What a strip's cell click DOES instead. A collapsed group's summary * strip passes its toggle — selecting the GROUP key is a click that * visibly does nothing, and it swallows the band's own toggle (#615). */ onCellClick: () => void; rowId?: undefined; }); /** * The heat-arm plot content — one cell / bar / composition per bucket, * positioned by `bucketOf` with the §8 3px insets. */ export declare function HeatCells({ rowKey, rowId, cells, styles, ctx, onCellClick }: HeatCellsProps): import("react/jsx-runtime").JSX.Element; export {}; //# sourceMappingURL=HeatRow.d.ts.map