import type { IBoxProps } from '../../primitives'; import type { IFormControlContext } from '../../composites'; export type ICheckboxProps = IBoxProps & { id?: string; name?: string; value?: string | number; colorScheme?: string | 'default'; defaultIsChecked?: boolean; isChecked?: boolean; isIndeterminate?: boolean; // isFullWidth?: boolean; isDisabled?: boolean; isInvalid?: boolean; size?: 'sm' | 'md' | 'lg'; icon?: JSX.Element; onChange?: (value?: string | number, currentState?: boolean) => void; // onBlur?: (event: any) => void; // onFocus?: (event: any) => void; ariaLabel?: string; // ariaLabelledby?: string; // Custom Props style?: any; }; export type ICheckboxGroupProps = IBoxProps & { id?: string; value?: Array; defaultValue?: Array; colorScheme?: string; size?: 'sm' | 'md' | 'lg'; onChange?: (values?: Array) => void; // Custom props style?: any; }; export type ICheckboxContext = IFormControlContext & { value?: Array; colorScheme?: string; size?: 'sm' | 'md' | 'lg'; groupValueChangeHandler?: ( value: string | number, currentState: boolean ) => void; };