UNPKG

@helpwave/hightide

Version:

helpwave's component and theming library

24 lines (21 loc) 1.22 kB
import * as react_jsx_runtime from 'react/jsx-runtime'; import { PropsForTranslation } from '../../localization/useTranslation.js'; import { PropertyBaseProps } from './PropertyBase.js'; import { SelectProps } from '../user-action/Select.js'; import { FormTranslationType } from '../../localization/defaults/form.js'; import '../../localization/util.js'; import 'react'; import '../user-action/Label.js'; import '../user-action/Menu.js'; import '../../util/PropsWithFunctionChildren.js'; import '../../hooks/usePopoverPosition.js'; import '../../hooks/useSearch.js'; 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 };