Files
bitbaum-fleet da998b84d0 @bitbaum/chartkit 0.1.0: its own repo
Moved from bitbaum/substrata packages/chartkit at 2085534968dbf062d5c9440dec755a49947a01fd; the history before this commit is there. Created by bitbaum/fleet scripts/packages/create-package-repos.mjs from registers/package-repos.json.
2026-10-23 10:00:24 +00:00

34 lines
1.3 KiB
TypeScript

import type { ReactNode } from "react";
/**
* The frame every chart shares: a `<figure class="ck-chart">`, the drawing,
* the caption, and a visually hidden `<table>` of the same values. Nothing a
* chart says is reachable only by pointing at it. The drawing's decorative
* parts (the SVG, the ticks, the bars) carry `aria-hidden` themselves; the
* anchors in it do not, because a keyboard reaches them and a reader must be
* told what they are.
*/
export declare function ChartFigure({ kind, caption, table, children, style, }: {
kind: string;
caption: string;
table: {
head: string[];
rows: (string | number)[][];
};
children: ReactNode;
style?: Record<string, string | number>;
}): import("react").JSX.Element;
/** The values behind a chart, as a table a screen reader walks and a test reads. */
export declare function DataTable({ caption, head, rows, }: {
caption: string;
head: string[];
rows: (string | number)[][];
}): import("react").JSX.Element;
/** A label that is an anchor when it has somewhere to go, else a span. */
export declare function MaybeLink({ href, className, title, children, style, }: {
href?: string;
className: string;
title?: string;
children: ReactNode;
style?: Record<string, string | number>;
}): import("react").JSX.Element;
//# sourceMappingURL=Figure.d.ts.map