import { FieldBaseProps } from "../FieldBase/FieldBase.mjs"; import { WidthProp } from "@marigold/system"; import { ReactNode } from "react"; import RAC from "react-aria-components"; import { Orientation } from "@react-types/shared"; type RemovedProps = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly'; export interface CheckboxGroupProps extends Omit, Pick, 'label' | 'addon' | 'description' | 'errorMessage'> { /** * Children of the component. */ children?: ReactNode; /** * Visual variant of the component. Which values exist is defined by the theme * and listed in the "Appearance" section of the component's documentation. */ variant?: string; /** * Size of the component. Which values exist is defined by the theme and listed * in the "Appearance" section of the component's documentation. */ size?: string; /** * Sets the width of the field. You can see allowed tokens here: https://tailwindcss.com/docs/width * * Numeric/scale values are spacing-scale tokens, not pixels: `width={64}` * resolves to `calc(var(--spacing) * 64)` ~= 16rem (256px), not 64px. * @default full */ width?: WidthProp['width']; /** * Sets all checkboxes to disabled * * @default false */ disabled?: RAC.CheckboxGroupProps['isDisabled']; /** * Sets the checkbox as required. * * @default false */ required?: RAC.CheckboxGroupProps['isRequired']; /** * If `true`, the checkbox is considered invalid and if set the `errorMessage` is shown instead of the `description`. * * @default false */ error?: RAC.CheckboxGroupProps['isInvalid']; /** * Sets the checkbox on read only. * * @default false */ readOnly?: RAC.CheckboxGroupProps['isReadOnly']; /** * Wheather the component is displayed vertically or horizontally. * * @default vertical */ orientation?: Orientation; /** * The number of items to display before collapsing the rest. * Items beyond this number will be hidden until the user clicks * the "Show more" control. * * @default undefined */ collapseAt?: number; } declare const CheckboxGroup: ({ children, variant, size, required, disabled, readOnly, error, width, orientation, collapseAt, ...rest }: CheckboxGroupProps) => import("react").JSX.Element; export { CheckboxGroup };