@jirkasa/code-box
Version:
Showcase code samples on the web with a container that lets users select and display different samples.
39 lines (38 loc) • 2.2 kB
TypeScript
/** Global config of library. */
declare const GlobalConfig: {
/** Data attribute prefix used for all data attributes of library. */
DATA_ATTRIBUTE_PREFIX: string;
/** Margin for lazy initialization of code boxes. */
LAZY_INITIALIZATION_MARGIN: string;
/** Default line height value for code view. */
DEFAULT_LINE_HEIGHT: number;
/** Default line height unit for code view. */
DEFAULT_LINE_HEIGHT_UNIT: string;
/** Default height of element that is displayed when no code view is set as active in code box. */
DEFAULT_NO_CODE_VIEW_SELECTED_ELEMENT_HEIGHT: string;
/** Default text of element that is displayed when no code view is set as active in code box. */
DEFAULT_NO_CODE_VIEW_SELECTED_TEXT: string;
/** Default text for code view button in code box. */
DEFAULT_CODE_VIEW_BUTTON_TEXT: string;
/** Default text for file button in code box. */
DEFAULT_FILE_BUTTON_TEXT: string;
/** Default name of project (root) folder in project code box. */
DEFAULT_PROJECT_NAME: string;
/** Default folder structure section heading for project code box. */
DEFAULT_PROJECT_FOLDER_STRUCTURE_HEADING: string;
/** Default packages section heading for project code box. */
DEFAULT_PROJECT_PACKAGES_HEADING: string;
/** Default name under which is displayed default package in project code box. */
DEFAULT_DEFAULT_PACKAGE_NAME: string;
/** Default speed of folder open/close animation in project code box. */
DEFAULT_FOLDER_ANIMATION_SPEED: number;
/** Default CSS easing function for folder open/close animation in project code box. */
DEFAULT_FOLDER_ANIMATION_EASING_FUNCTION: string;
/** Determines whether folders should be created for packages by default in project code box. */
DEFAULT_CREATE_FOLDERS_FOR_PACKAGES: boolean;
/** Default value of panel open/close button aria-label attribute in project code box when panel is closed. */
DEFAULT_OPEN_PANEL_BUTTON_ARIA_LABEL: string;
/** Default value of panel open/close button aria-label attribute in project code box when panel is opened. */
DEFAULT_CLOSE_PANEL_BUTTON_ARIA_LABEL: string;
};
export default GlobalConfig;