UNPKG

@helpwave/hightide

Version:

helpwave's component and theming library

20 lines (17 loc) 1.01 kB
import * as react_jsx_runtime from 'react/jsx-runtime'; import { PropsForTranslation } from '../../hooks/useTranslation.js'; import { SearchableSelectProps } from '../user-input/SearchableSelect.js'; import { PropertyBaseProps } from './PropertyBase.js'; import '../../hooks/useLanguage.js'; import 'react'; import '../user-input/Select.js'; import '../user-input/Label.js'; type SingleSelectPropertyTranslation = { select: string; }; type SingleSelectPropertyProps<T> = Omit<PropertyBaseProps & SearchableSelectProps<T>, 'icon' | 'input' | 'hasValue' | 'className' | 'disabled' | 'label' | 'labelClassName' | 'additionalItems'>; /** * An Input for SingleSelect properties */ declare const SingleSelectProperty: <T>({ overwriteTranslation, value, options, name, readOnly, softRequired, onRemove, ...multiSelectProps }: PropsForTranslation<SingleSelectPropertyTranslation, SingleSelectPropertyProps<T>>) => react_jsx_runtime.JSX.Element; export { SingleSelectProperty, type SingleSelectPropertyProps };