import type { FormulaSeries } from '../formula' /** * A single min/max pair rendered by the Spread widget. Mirrors * {@link FormulaDataItem} — same optional `series`, `prefix`, `suffix`, * `color`, and `note` slots — but the value is a range (`min` … `max`) * rather than a single `value`. */ export interface SpreadDataItem { min: number max: number prefix?: string suffix?: string /** Override the values' text colour (e.g. `'success.main'`). */ color?: string /** Optional series indicator — coloured avatar with first letter of `name`. */ series?: FormulaSeries /** Optional caption rendered below the values. */ note?: string } /** * Spread widget data — an array of `{min, max, …}` pairs rendered * top-to-bottom, one row per entry. Visual structure matches the Formula * widget so the two can sit side-by-side without style drift. */ export type SpreadWidgetData = readonly SpreadDataItem[]