import { CSSResultGroup } from "lit"; import { SigveloElement } from "@mcp-b/wc-support/base/sigvelo-element"; //#region src/components/sparkline/sparkline.d.ts /** * * * @summary Shows at-a-glance trends in a small, inline chart that fits within text or tables. * @tag sigvelo-sparkline * @documentation https://design-system.sigvelo.com/docs/components/sparkline * @status stable * @since 1.0 * * @cssproperty [--fill-color] - The start color of the gradient fill * @cssproperty [--gradient-stop-color] - The end color of the gradient fill * * @example Default * ```html * * ``` * * **Note:** In the same way that images require `alt` text, you should add a label to every sparkline. The label won't be displayed, but it will be announced by assistive devices. * * * * By default, sparklines are styled with a `1em` height to fit properly within headings and text. * * ```html *

* This week's website traffic * * has slightly increased. *

* ``` * * To set a specific size, adjust the `width`, `height`, or `aspect-ratio` CSS properties. * * ```html * * ``` * * * By default, sparklines render with a gradient fill. Set the `variant` attribute to `solid` or `line` to render a solid fill or a simple line instead. * * ```html * * * * * * ``` * * * Set the `curve` attribute to `linear`, `natural`, or `step` to change the style of the curve. * * ```html * * * * * * ``` * * * Set the `trend` attribute to `negative`, `neutral`, or `positive` to visually indicate a trend. * * ```html * * * * * * * * * ``` * * * Use the `--fill-color`, `--line-color`, and `--line-width` custom properties to change the sparkline's styles. * * ```html * * ``` * * Combine sparklines with cards and number tickers for an elegant way to display stats. * * ```html * *
* Revenue
* $ *
* * * * * ``` */ declare class SigveloSparkline extends SigveloElement { static styles: CSSResultGroup; points: number[]; /** * An accessible label for the sparkline. This will be read by screen readers for users who can't see the chart, so * make sure to describe it appropriately. */ label: string; /** * A space-separated list of positive values to show in the sparkline, e.g. "10 25 18 30". At least two values are * required to generate a chart. */ data: string; /** Determines the sparkline's variant. */ variant: "gradient" | "line" | "solid"; /** Draws the component with colors to visually indicate the specified trend. */ trend: "positive" | "negative" | "neutral"; /** The interpolation method used to connect data points on the line. */ curve: "linear" | "natural" | "step"; /** Returns an SVG path for a linear, point-to-point graph */ private getLinearPath; /** Returns an SVG path for a curved graph */ private getNaturalPath; /** Returns an SVG path for a stepped graph */ private getStepPath; /** Generates the appropriate SVG path based on the desired curve. */ private getPath; render(): import("lit-html").TemplateResult<1>; } declare global { interface HTMLElementTagNameMap { "sigvelo-sparkline": SigveloSparkline; } } //#endregion export { SigveloSparkline as t };