@sap-ux/ui-components
Version:
SAP UI Components Library
32 lines • 1.29 kB
TypeScript
import type { ReactElement } from 'react';
import type { ITextFieldProps } from '../UIInput/index.js';
import type { UITranslationProps, I18nBundle, TranslationTextPattern, TranslationEntry } from './UITranslationButton.types.js';
import { TranslationKeyGenerator } from './UITranslationButton.types.js';
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[];
/**
* Inverted style theme
*
* @default false
*/
invertedCalloutTheme?: boolean;
}
/**
* 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.js").TranslationInputStrings;
};
};
//# sourceMappingURL=UITranslationInput.d.ts.map