import { SvelteComponentTyped } from "svelte"; export type CarbonTagSetContext = undefined; export type TagSetOverflowProps = { /** * @default "tooltip" */ mode?: "tooltip" | "popover"; /** * How the hidden tags are listed: their labels as text, or as tags. * @default "default" */ type?: "default" | "tag"; /** * The popover lists at most this many hidden tags, then "View all". * @default 10 */ viewAllThreshold?: number; /** * Text of the popover's "View all" button. * @default "View all" */ viewAllText?: string; /** * Set to `true` when the parent passes custom `tooltip` slot content. * @default false */ customContent?: boolean; /** * Whether the popover is open, with `mode="popover"`. * @default false */ open?: boolean; /** * Obtain a reference to the popover content, with `mode="popover"`. * @default null */ contentRef?: null | HTMLDivElement; /** * Obtain a reference to the indicator's HTML element, so the parent can * measure its natural width for the fit calculation. * @default null */ triggerRef?: null | HTMLSpanElement; /** * Obtain a reference to the indicator's focusable button, for the * parent's roving keyboard navigation. * @default null */ buttonRef?: null | HTMLButtonElement; /** * Roving `tabindex` from the parent. `undefined` keeps the native order. */ tabindex?: "0" | "-1" | undefined; id?: string | undefined; /** * @default 0 */ count?: number; /** * @default [] */ tags?: import("./TagSet.svelte").TagSetItem[]; /** * @default "center" */ overflowAlign?: "start" | "center" | "end"; /** * @default "bottom" */ overflowDirection?: "top" | "bottom"; /** * @default (count) => `+${count} more tags` */ overflowLabel?: (count: number) => string; size?: "xs" | "sm" | "default" | "lg" | "md" | undefined; /** Override the tooltip or popover content. */ tooltip?: (this: void, ...args: [{ tags: import("./TagSet.svelte").TagSetItem[]; count: number }]) => void; }; export default class TagSetOverflow extends SvelteComponentTyped< TagSetOverflowProps, { /** A dismissible tag in the popover was closed. */ close: CustomEvent; /** The popover held focus and has no tag left to take it. */ empty: CustomEvent; /** The indicator was clicked. */ trigger: CustomEvent; /** The popover's "View all" button was clicked. */ viewall: CustomEvent; }, { /** Override the tooltip or popover content. */ tooltip: { tags: import("./TagSet.svelte").TagSetItem[]; count: number }; } > {}