UNPKG

@sap-ux/ui-components

Version:
26 lines 1.16 kB
import type { ReactElement } from 'react'; import type { ITextFieldProps } from '../UIInput'; import type { UITranslationProps, I18nBundle, TranslationTextPattern, TranslationEntry } from './UITranslationButton.types'; import { TranslationKeyGenerator } from './UITranslationButton.types'; export interface UITranslationInputProps<T extends TranslationEntry> extends ITextFieldProps, UITranslationProps<T> { id: string; entries: I18nBundle<T>; namingConvention?: TranslationKeyGenerator; i18nPrefix: string; allowedI18nPrefixes?: string[]; defaultPattern: TranslationTextPattern; allowedPatterns: TranslationTextPattern[]; } /** * Component to render translation input with button to provide helper callout with i18n generation option. * * @param props Component properties. * @returns Component to render translation input. */ export declare const UITranslationInput: { <T extends TranslationEntry = TranslationEntry>(props: UITranslationInputProps<T>): ReactElement; defaultProps: { strings: import("./UITranslationButton.types").TranslationInputStrings; }; }; //# sourceMappingURL=UITranslationInput.d.ts.map