UNPKG

@accelint/design-toolkit

Version:

An open-source component library to serve as part of the entire ecosystem of UX for Accelint.

30 lines (27 loc) 1.22 kB
import { RefAttributes } from 'react'; import { ComboBoxProps, VirtualizerProps, ListLayoutOptions, LabelProps, InputProps, FieldErrorProps, PopoverProps } from 'react-aria-components'; import { ButtonProps } from '../button/types.js'; import { OptionsDataItem, OptionsProps } from '../options/types.js'; import 'tailwind-variants'; import '../../lib/types.js'; import '../button/styles.js'; import 'tailwind-merge'; import '../icon/types.js'; type ComboBoxFieldProps<T extends OptionsDataItem> = Omit<ComboBoxProps<T>, 'children' | 'className'> & Pick<VirtualizerProps<ListLayoutOptions>, 'layoutOptions'> & Pick<OptionsProps<T>, 'children'> & RefAttributes<HTMLDivElement> & { classNames?: { field?: ComboBoxProps<T>['className']; label?: LabelProps['className']; control?: string; input?: InputProps['className']; trigger?: ButtonProps['className']; description?: string; error?: FieldErrorProps['className']; popover?: PopoverProps['className']; }; label?: string; inputProps?: Omit<InputProps, 'className'>; description?: string; errorMessage?: string; size?: 'small' | 'medium'; }; export type { ComboBoxFieldProps };