|
6 | 6 | * your election, the "Elastic License 2.0", the "GNU Affero General Public |
7 | 7 | * License v3.0 only", or the "Server Side Public License, v 1". |
8 | 8 | */ |
9 | | -export { layoutVar, layoutVarName } from './src/css_variables'; |
10 | | -export type { |
11 | | - LayoutVarName, |
12 | | - CSSVarName, |
13 | | - LayoutComponent, |
14 | | - LayoutProperty, |
15 | | - ApplicationComponent, |
16 | | - ApplicationVarName, |
17 | | -} from './src/css_variables'; |
18 | | -export { layoutLevels } from './src/levels'; |
19 | | - |
20 | | -/** |
21 | | - * The ID of the main scroll container in the application. |
22 | | - * `document.getElementById(APP_MAIN_SCROLL_CONTAINER_ID)` can be used to find the main scroll container. |
23 | | - */ |
24 | | -export const APP_MAIN_SCROLL_CONTAINER_ID = 'app-main-scroll'; |
25 | | - |
26 | | -/** |
27 | | - * The ID of the fixed viewport container in the application. |
28 | | - * This div is rendered by the `AppFixedViewport` component on the top of the application area and can be used to render fixed elements that should not scroll with the main content. |
29 | | - */ |
30 | | -export const APP_FIXED_VIEWPORT_ID = 'app-fixed-viewport'; |
31 | | - |
32 | | -/** |
33 | | - * Selector for an open EuiFlyout. All flyouts (core overlay service, system flyouts, |
34 | | - * and inline plugin flyouts) render through EuiFlyout which applies this class and role. |
35 | | - */ |
36 | | -export const FLYOUT_SELECTOR = '.euiFlyout[role="dialog"]'; |
37 | | - |
38 | | -/** |
39 | | - * The ID of the main content container in the application, regardless of the type of the layout used. |
40 | | - * `document.querySelector(MAIN_CONTENT_SELECTORS.join(','))` can be used to find the main content container. |
41 | | - * |
42 | | - * TODO: Potentially allow this to be customizable per-plugin |
43 | | - */ |
44 | | -export const MAIN_CONTENT_SELECTORS = [ |
45 | | - 'main', // Ideal target for all plugins using KibanaPageTemplate |
46 | | - '[role="main"]', // Fallback for plugins using deprecated EuiPageContent |
47 | | - '.kbnAppWrapper', // Last-ditch fallback for all plugins regardless of page template |
48 | | -]; |
49 | | - |
50 | | -/** |
51 | | - * The gap (in pixels) between the secondary side navigation panel and the main app content. |
52 | | - */ |
53 | | -export const SIDE_PANEL_CONTENT_GAP = 8; |
54 | | - |
55 | | -/** |
56 | | - * The selector for elements that should be included in the focus trap of a flyout. |
57 | | - * This will allow the flyout focus trap to include header and sidenav by default. |
58 | | - */ |
59 | | -export const euiIncludeSelectorInFocusTrap = { |
60 | | - prop: { |
61 | | - 'data-eui-includes-in-flyout-focus-trap': true, |
62 | | - }, |
63 | | - selector: `[data-eui-includes-in-flyout-focus-trap="true"]`, |
64 | | -}; |
| 9 | +export * from '@kbn/ui-chrome-layout-constants'; |
0 commit comments