UNPKG

879 BPlain TextView Raw
1/*
2 * Copyright 2015 Palantir Technologies, Inc. All rights reserved.
3 * Licensed under the BSD-3 License as modified (the “License”); you may obtain a copy
4 * of the license at https://github.com/palantir/blueprint/blob/master/LICENSE
5 * and https://github.com/palantir/blueprint/blob/master/PATENTS
6 */
7
8export * from "./common"
9export * from "./components";
10export { IconClasses } from "./generated/iconClasses";
11export { IconContents } from "./generated/iconStrings";
12
13import { InteractionModeEngine } from "./common/interactionMode";
14
15export const FOCUS_DISABLED_CLASS = "pt-focus-disabled";
16
17const focusEngine = new InteractionModeEngine(document.documentElement, FOCUS_DISABLED_CLASS);
18
19export const FocusStyleManager = {
20 alwaysShowFocus: () => focusEngine.stop(),
21 isActive: () => focusEngine.isActive(),
22 onlyShowFocusOnTabs: () => focusEngine.start(),
23};