Input: support RTL detection on all Inputs, remove from AutosuggestInput

This commit is contained in:
Alex Gleason
2023-10-11 13:33:45 -05:00
parent 39786aa5f2
commit 9036d8a9a0
4 changed files with 9 additions and 14 deletions

View File

@ -45,7 +45,7 @@ function isRtl(text: string, confidence = 0.3): boolean {
interface GetTextDirectionOpts {
/** The default direction to return if the text is empty. */
fallback?: 'ltr' | 'rtl';
fallback?: 'ltr' | 'rtl' | undefined;
/** The confidence threshold (0-1) to use when determining the direction. */
confidence?: number;
}