/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ /** * One data row as a narrow card — the gutter identity as its head, the kind * plot as its body (split out of `narrow/index.tsx`, #815). * * @packageDocumentation */ import { type ComponentProps } from "react"; import { EastChakraComponent } from "@elaraai/east-ui-components"; import { type PlanDerived, type PlanRowValue } from "../model.js"; import type { PlanDraftMark } from "../use-plan-editing.js"; type Styles = Record>; type UIValue = ComponentProps["value"]; export interface NarrowRowCardProps { row: PlanRowValue; /** The card body's height — the row's kind height (Measures force a * chart's expanded branch). */ h: number; /** A chart row draws at expanded density. */ chartExpanded: boolean; selected: boolean; /** Whether a second tap drills the row (it declares `expand` and the root * can render it). */ canDrill: boolean; /** The drilled row's developer render and gutter body — on the drilled * card only. */ drill: { body: UIValue; gutter: UIValue | null; } | undefined; /** Whether the row nests children: a table parent's positions drawing their subtotals take no typed number. */ hasChildren: boolean; styles: Styles; derived: PlanDerived; storageKey: string; /** Enrols the card in the list's viewport observer (a paged canvas, #812). */ watch: ((el: HTMLElement | null) => (() => void) | undefined) | undefined; /** The row's draft mark (#880) — the canvas row's, where the draft was made. */ draft: PlanDraftMark | undefined; /** Its cells are unread (#1398, #1438): the body washes under what it holds, as the canvas's row's plot does. */ unread: boolean; } /** One data row as a card: head = the gutter identity, body = the plot. */ export declare const NarrowRowCard: import("react").MemoExoticComponent<({ row, h, chartExpanded, selected, canDrill, drill, hasChildren, styles, derived, storageKey, watch, draft, unread, }: NarrowRowCardProps) => import("react/jsx-runtime").JSX.Element>; export {}; //# sourceMappingURL=cards.d.ts.map