nexo/apps/mattermost/app/keyboard/constants.ts

24 lines
840 B
TypeScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
/**
* Keyboard and emoji picker height constants
*/
// Emoji search bar dimensions
export const SEARCH_BAR_HEIGHT = 56; // paddingTop: 12 + paddingBottom: 12 + search bar ~32px
export const SEARCH_CONTAINER_PADDING = 8; // paddingVertical: 4 * 2
// Emoji search visibility offsets (to ensure search values are visible above keyboard)
export const SEARCH_VISIBILITY_OFFSET = 40;
// Minimal emoji list height (single-line horizontal emoji list for hardware keyboard)
export const MINIMAL_EMOJI_LIST_HEIGHT = 50;
// Animation durations
export const KEYBOARD_TRANSITION_DURATION = 250;
/**
* Default height for the input accessory view when keyboard height is unknown
*/
export const DEFAULT_INPUT_ACCESSORY_HEIGHT = 336;