import { SvelteComponentTyped } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; export type CarbonCheckboxGroupContext = { selectedValues: import("svelte/store").Writable>; groupName: import("svelte/store").Readable; groupForm: import("svelte/store").Readable; groupRequired: import("svelte/store").Readable; readonly: import("svelte/store").Readable; disabled: import("svelte/store").Readable; invalid: import("svelte/store").Readable; warn: import("svelte/store").Readable; update: (value: Value, checked: boolean, fromReset?: boolean) => void; }; type $RestProps = SvelteHTMLElements["div"]; type $Props = { /** * Set the selected checkbox values. * @default [] */ selected?: ReadonlyArray; /** * Set to `true` to disable all checkboxes * @default false */ disabled?: boolean; /** * Set to `true` to require at least one selection. */ required?: boolean | undefined; /** * Specify a name attribute for the checkbox inputs. */ name?: string | undefined; /** * Specify the id of a form element outside the component to associate * the fieldset and checkbox inputs with. Overrides each checkbox's own `form`. */ form?: string | undefined; /** * Specify the legend text. * Alternatively, use the named slot "legendChildren". * @example * ```svelte * * Custom Legend * * * * ``` * @default "" */ legendText?: string; /** * Set to `true` to visually hide the legend * @default false */ hideLegend?: boolean; /** * Specify the orientation of the checkboxes. * `"horizontal"` lays them out in a wrapping row, each sized to its label. * @default "vertical" */ orientation?: "vertical" | "horizontal"; /** * Specify the helper text * @default "" */ helperText?: string; /** * Set to `true` to indicate an invalid state * @default false */ invalid?: boolean; /** * Specify the invalid state text * @default "" */ invalidText?: string; /** * Set to `true` to indicate a warning state * @default false */ warn?: boolean; /** * Specify the warning state text * @default "" */ warnText?: string; /** * Set to `true` to use the read-only variant * @default false */ readonly?: boolean; /** * Specify the assistive text announced to screen readers when read-only. * Exposed because VoiceOver does not announce `aria-readonly`. * @default "Read-only" */ readonlyText?: string; /** * Set an id for the container div element. */ id?: string | undefined; decorator?: (this: void) => void; legendChildren?: (this: void) => void; children?: (this: void) => void; [key: `data-${string}`]: unknown; }; export type CheckboxGroupProps = Omit<$RestProps, keyof $Props> & $Props; export default class CheckboxGroup extends SvelteComponentTyped< CheckboxGroupProps, { change: CustomEvent>; click: WindowEventMap["click"]; mouseenter: WindowEventMap["mouseenter"]; mouseleave: WindowEventMap["mouseleave"]; mouseover: WindowEventMap["mouseover"]; }, { default: Record; decorator: Record; legendChildren: Record; } > {}