UNPKG

@helpwave/hightide

Version:

helpwave's component and theming library

24 lines (21 loc) 1.23 kB
import * as react_jsx_runtime from 'react/jsx-runtime'; import { PropsForTranslation } from '../../localization/useTranslation.mjs'; import { PropertyBaseProps } from './PropertyBase.mjs'; import { SelectProps } from '../user-action/Select.mjs'; import { FormTranslationType } from '../../localization/defaults/form.mjs'; import '../../localization/util.mjs'; import 'react'; import '../user-action/Label.mjs'; import '../user-action/Menu.mjs'; import '../../util/PropsWithFunctionChildren.mjs'; import '../../hooks/usePopoverPosition.mjs'; import '../../hooks/useSearch.mjs'; type SingleSelectPropertyTranslation = FormTranslationType; type SingleSelectPropertyProps = Omit<PropertyBaseProps, 'icon' | 'input' | 'hasValue' | 'className'> & Omit<SelectProps<string>, 'className' | 'disabled' | 'label'> & { onAddNew?: (value: string) => void; }; /** * An Input for SingleSelect properties */ declare const SingleSelectProperty: ({ overwriteTranslation, value, options, name, readOnly, softRequired, onRemove, onAddNew, ...selectProps }: PropsForTranslation<SingleSelectPropertyTranslation, SingleSelectPropertyProps>) => react_jsx_runtime.JSX.Element; export { SingleSelectProperty, type SingleSelectPropertyProps };