import { SvelteComponentTyped } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; type $RestProps = SvelteHTMLElements["div"]; type $Props = { /** * Specify the kind of the icon indicator. */ kind: "failed" | "caution-major" | "caution-minor" | "undefined" | "succeeded" | "normal" | "in-progress" | "incomplete" | "not-started" | "pending" | "unknown" | "informative"; /** * Specify the label displayed next to the icon. */ label: string; /** * Specify the size of the icon indicator. * @default 16 */ size?: 16 | 20; /** * Set to `true` to show only the icon, keeping the label for screen * readers, such as when nearby text already says the status. * @default false */ hideLabel?: boolean; labelChildren?: (this: void) => void; [key: `data-${string}`]: unknown; }; export type IconIndicatorProps = Omit<$RestProps, keyof $Props> & $Props; export default class IconIndicator extends SvelteComponentTyped< IconIndicatorProps, Record, { labelChildren: Record } > {}