@helpwave/hightide
Version:
helpwave's component and theming library
20 lines (17 loc) • 1.02 kB
text/typescript
import * as react_jsx_runtime from 'react/jsx-runtime';
import { PropsForTranslation } from '../../hooks/useTranslation.mjs';
import { SearchableSelectProps } from '../user-input/SearchableSelect.mjs';
import { PropertyBaseProps } from './PropertyBase.mjs';
import '../../hooks/useLanguage.mjs';
import 'react';
import '../user-input/Select.mjs';
import '../user-input/Label.mjs';
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 };