this repo has no description
at main 53 lines 1.5 kB view raw
1// eslint-disable-next-line import/prefer-default-export 2export const TEXT_DIRECTION = { 3 LTR: 'ltr', 4 RTL: 'rtl', 5} as const; 6 7// https://www.fileformat.info/info/unicode/char/200e/index.htm 8// these are unicode characters in four hexadecimal digits 9export const LTR_MARK = '\u200e'; 10export const RTL_MARK = '\u200f'; 11 12export const PLAY_STATES = { 13 PLAY: 'play', 14 PAUSE: 'pause', 15 BUFFER: 'buffer', 16 PLAYING: 'playing', 17} as const; 18 19// eslint-disable-next-line import/prefer-default-export 20export const SEARCH_EVENTS = { 21 MAKE_SEARCH_QUERY_FROM_SUGGESTION: 'makeSearchQueryFromSuggestion', 22 MAKE_SEARCH_QUERY_FROM_INPUT: 'makeSearchQueryFromInput', 23 CLICKED_OUTSIDE_SUGGESTIONS: 'clickedOutsideSuggestions', 24 CLICKED_OUTSIDE: 'clickedOutside', 25 RESET_SEARCH_INPUT: 'resetSearchInput', 26 SUGGESTION_CLICKED: 'suggestionClicked', 27 SUGGESTION_FOCUSED: 'suggestionFocused', 28 SEARCH_INPUT_HAS_FOCUS: 'searchInputHasFocus', 29 MENU_ITEM_CLICK: 'menuItemClick', 30 SHOW_SEARCH_SUGGESTIONS: 'showSearchSuggestions', 31 CLEAR: 'clear', 32} as const; 33 34/** 35 * Locations where `SearchInput` component `clear` event can be called from. 36 * 37 * @remarks 38 * clear event can be triggered from two different locations 39 * rerturn object provides a way to distinguish between 40 * call points. 41 * 42 */ 43export enum ClearEventLocation { 44 Cancel = 'cancel', 45 Input = 'input', 46} 47 48export enum PopoverAnchorPositioning { 49 Top = 'top', 50 Bottom = 'bottom', 51 Left = 'left', 52 Right = 'right', 53}