import { SvelteComponentTyped } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; export type CarbonStructuredListWrapperContext = { selectedValue: import("svelte/store").Writable; /** * Select the value of an input that mounts `checked`. Markup is not a * user choice, so this fires no `change`. */ add: (value: Value) => void; update: (value: Value) => void; /** Count an input's value. Returns a function that releases it. */ register: (value: Value) => () => void; multiple: import("svelte/store").Readable; selection: import("svelte/store").Readable; icon: import("svelte/store").Readable; inputName: import("svelte/store").Writable; }; type $RestProps = SvelteHTMLElements["div"]; type $Props = { /** * Specify the selected structured list row value. * When `multiple` is `true`, this is an array of selected values. */ selected?: Value | Value[] | undefined; /** * Set to `true` to use the condensed variant * @default false */ condensed?: boolean; /** * Set to `true` to flush the list * @default false */ flush?: boolean; /** * Set to `true` to use the selection variant * @default false */ selection?: boolean; /** * Set to `true` to allow selecting multiple rows * @default false */ multiple?: boolean; /** * Specify the name of the radio group for selectable rows. * Only used when `selection` is `true` and `multiple` is `false`; * in `multiple` mode the checkboxes are not named. * When unset, the radios share a generated id so they form one group; * set a name explicitly for stable server-rendered markup. */ name?: string | undefined; /** * Specify the icon rendered in the selection column of selectable rows. * Only used when `selection` is `true`. * The icon is decorative; selection state is conveyed by each row's `aria-checked`. * @default CheckmarkFilled */ icon?: Icon; children?: (this: void) => void; [key: `data-${string}`]: unknown; }; export type StructuredListProps = Omit<$RestProps, keyof $Props> & $Props; export default class StructuredList extends SvelteComponentTyped< StructuredListProps, { change: CustomEvent; click: WindowEventMap["click"]; mouseenter: WindowEventMap["mouseenter"]; mouseleave: WindowEventMap["mouseleave"]; mouseover: WindowEventMap["mouseover"]; }, { default: Record } > {}