import { CSSResultGroup, PropertyValues } from "lit"; import { SigveloElement } from "@mcp-b/wc-support/base/sigvelo-element"; //#region src/components/progress/progress.d.ts /** * * * @summary Visually represents the progress of a request or task. * @tag sigvelo-progress * @documentation https://design-system.sigvelo.com/docs/components/progress * @status stable * @since 1.0 * * @slot - Text to render inside the progress bar. * * @cssproperty [--track-color=var(--sigvelo-color-neutral-bg-subtle)] - The color of the progress bar's track. * @cssproperty [--track-size=1.5em | 1em] - The height or thickness of the track, depending on the type of progress bar. * @cssproperty [--indicator-color=var(--sigvelo-color-primary-bg)] - The color of the progress bar's value indicator. * @cssproperty [--diameter=10em] - For progress rings, the diameter of the ring. * * @csspart track - The progress bar's track, a `
` for progress bars and a `` for progress rings. * @csspart indicator - The progress bar's current value indicator, a `
` for progress bars and an SVG `` * for progress rings. * @csspart content - The container that holds any content that's been slotted in. * * @example Default * ```html * * 50% * * ``` * * @example Adding a label * Labels aren't displayed in the progress bar, but they're required for assistive devices such as screen readers. You can add a label using the `label` attribute. * * ```html * * ``` * * @example Showing content * Slot in some text to show content in the progress bar's indicator. * * ```html * 75% * ``` * * @example Progress rings * Set the `variant` attribute to `ring` to show progress in the shape of a ring. * * ```html * * 50% * * ``` * * @example Progress pie charts * Set the `variant` attribute to `pie` to show progress in the shape of a filled pie chart. * * ```html * * ``` * * @example Indeterminate progress * When the completion status can't be determined, the progress bar is considered indeterminate. Add the `indeterminate` attribute for tasks whose progress can't be reported. * * ```html * * *
* *
* * *
* ``` * * @example Changing the size * Use `--track-size` property to change the track size for bars and rings. For rings and pie charts, use the `--diameter` custom property to change the size. * * ```html * * * *
* * * Loading * * *
* *
* * 75% * * * * *
* ``` * * @example Changing the colors * Use the `--track-color` custom property to change the progress bar's track color. Use the `--indicator-color` custom property to change the color of the progress indicator. * * ```html * * Almost there! * * *
* *
* * 75% * * * * *
* ``` */ declare class SigveloProgress extends SigveloElement { static styles: CSSResultGroup; /** A custom label for assistive devices. */ label: string; /** The type of progress bar to render. */ variant: "bar" | "ring" | "pie"; /** The progress bar's minimum value. */ min: number; /** The progress bar's maximum value. */ max: number; /** The progress bar's current value. */ value: number; /** The progress bar's current value as a percentage. This is a readonly property. */ get percentage(): number; /** * When the completion status can't be determined, the progress bar is considered indeterminate and the value is * ignored. Useful for tasks whose progress can't be reported. */ indeterminate: boolean; firstUpdated(): void; updated(changedProperties: PropertyValues): void; render(): import("lit-html").TemplateResult<1>; } declare global { interface HTMLElementTagNameMap { "sigvelo-progress": SigveloProgress; } } //#endregion export { SigveloProgress as t };