@elastic/eui 62.2.0 → 63.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eui_theme_dark.css +3 -270
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +3 -270
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/bottom_bar/bottom_bar.js +20 -3
- package/es/components/header/header.js +2 -0
- package/es/components/header/header_links/header_links.js +2 -1
- package/es/components/index.js +1 -0
- package/es/components/page/_bottom_border.js +1 -0
- package/es/components/page/_restrict_width.js +34 -7
- package/es/components/page/index.js +5 -3
- package/es/components/page/page.js +19 -30
- package/es/components/page/page.styles.js +43 -0
- package/es/components/page/page_body/page_body.js +18 -26
- package/es/components/page/page_body/page_body.styles.js +16 -0
- package/es/components/page/page_content/index.js +4 -4
- package/es/components/page/page_content/page_content.js +7 -2
- package/es/components/page/page_content/page_content_body.js +12 -7
- package/es/components/page/page_content/page_content_header.js +7 -2
- package/es/components/page/page_content/page_content_header_section.js +7 -2
- package/es/components/page/page_header/page_header.js +29 -172
- package/es/components/page/page_header/page_header.styles.js +16 -0
- package/es/components/page/page_header/page_header_content.js +84 -16
- package/es/components/page/page_header/page_header_content.styles.js +84 -0
- package/es/components/page/page_section/index.js +8 -0
- package/es/components/page/page_section/page_section.js +102 -0
- package/es/components/page/page_section/page_section.styles.js +43 -0
- package/es/components/page/page_side_bar/index.js +1 -1
- package/es/components/page/page_side_bar/page_side_bar.js +8 -3
- package/es/components/page/page_sidebar/index.js +8 -0
- package/es/components/page/page_sidebar/page_sidebar.js +110 -0
- package/es/components/page/page_sidebar/page_sidebar.styles.js +29 -0
- package/es/components/page/page_template.js +54 -154
- package/es/components/page_template/bottom_bar/page_bottom_bar.js +102 -0
- package/es/components/page_template/empty_prompt/page_empty_prompt.js +107 -0
- package/es/components/page_template/index.js +8 -0
- package/es/components/page_template/inner/index.js +8 -0
- package/es/components/page_template/inner/page_inner.js +51 -0
- package/es/components/page_template/inner/page_inner.styles.js +22 -0
- package/es/components/page_template/outer/index.js +8 -0
- package/es/components/page_template/outer/page_outer.js +59 -0
- package/es/components/page_template/outer/page_outer.styles.js +49 -0
- package/es/components/page_template/page_template.js +376 -0
- package/es/global_styling/functions/logicals.js +1 -1
- package/es/global_styling/mixins/_helpers.js +27 -9
- package/eui.d.ts +423 -49
- package/lib/components/bottom_bar/bottom_bar.js +20 -3
- package/lib/components/header/header.js +2 -0
- package/lib/components/header/header_links/header_links.js +2 -1
- package/lib/components/index.js +13 -0
- package/lib/components/page/_bottom_border.js +5 -0
- package/lib/components/page/_restrict_width.js +38 -7
- package/lib/components/page/index.js +28 -12
- package/lib/components/page/page.js +22 -34
- package/lib/components/page/page.styles.js +46 -0
- package/lib/components/page/page_body/page_body.js +20 -29
- package/lib/components/page/page_body/page_body.styles.js +27 -0
- package/lib/components/page/page_content/index.js +8 -8
- package/lib/components/page/page_content/page_content.js +8 -4
- package/lib/components/page/page_content/page_content_body.js +13 -9
- package/lib/components/page/page_content/page_content_header.js +8 -4
- package/lib/components/page/page_content/page_content_header_section.js +8 -4
- package/lib/components/page/page_header/page_header.js +31 -175
- package/lib/components/page/page_header/page_header.styles.js +27 -0
- package/lib/components/page/page_header/page_header_content.js +108 -16
- package/lib/components/page/page_header/page_header_content.styles.js +87 -0
- package/lib/components/page/page_section/index.js +13 -0
- package/lib/components/page/page_section/page_section.js +113 -0
- package/lib/components/page/page_section/page_section.styles.js +51 -0
- package/lib/components/page/page_side_bar/index.js +2 -2
- package/lib/components/page/page_side_bar/page_side_bar.js +9 -5
- package/lib/components/page/page_sidebar/index.js +13 -0
- package/lib/components/page/page_sidebar/page_sidebar.js +124 -0
- package/lib/components/page/page_sidebar/page_sidebar.styles.js +32 -0
- package/lib/components/page/page_template.js +76 -177
- package/lib/components/page_template/bottom_bar/page_bottom_bar.js +114 -0
- package/lib/components/page_template/empty_prompt/page_empty_prompt.js +116 -0
- package/lib/components/page_template/index.js +13 -0
- package/lib/components/page_template/inner/index.js +13 -0
- package/lib/components/page_template/inner/page_inner.js +60 -0
- package/lib/components/page_template/inner/page_inner.styles.js +35 -0
- package/lib/components/page_template/outer/index.js +13 -0
- package/lib/components/page_template/outer/page_outer.js +68 -0
- package/lib/components/page_template/outer/page_outer.styles.js +51 -0
- package/lib/components/page_template/page_template.js +399 -0
- package/lib/global_styling/functions/logicals.js +1 -1
- package/lib/global_styling/mixins/_helpers.js +27 -9
- package/optimize/es/components/bottom_bar/bottom_bar.js +1 -1
- package/optimize/es/components/header/header.js +2 -0
- package/optimize/es/components/header/header_links/header_links.js +2 -1
- package/optimize/es/components/index.js +1 -0
- package/optimize/es/components/page/_bottom_border.js +1 -0
- package/optimize/es/components/page/_restrict_width.js +34 -7
- package/optimize/es/components/page/index.js +5 -3
- package/optimize/es/components/page/page.js +18 -28
- package/optimize/es/components/page/page.styles.js +43 -0
- package/optimize/es/components/page/page_body/page_body.js +18 -25
- package/optimize/es/components/page/page_body/page_body.styles.js +16 -0
- package/optimize/es/components/page/page_content/index.js +4 -4
- package/optimize/es/components/page/page_content/page_content.js +6 -1
- package/optimize/es/components/page/page_content/page_content_body.js +10 -5
- package/optimize/es/components/page/page_content/page_content_header.js +6 -1
- package/optimize/es/components/page/page_content/page_content_header_section.js +6 -1
- package/optimize/es/components/page/page_header/page_header.js +20 -32
- package/optimize/es/components/page/page_header/page_header.styles.js +16 -0
- package/optimize/es/components/page/page_header/page_header_content.js +62 -14
- package/optimize/es/components/page/page_header/page_header_content.styles.js +84 -0
- package/optimize/es/components/page/page_section/index.js +8 -0
- package/optimize/es/components/page/page_section/page_section.js +51 -0
- package/optimize/es/components/page/page_section/page_section.styles.js +43 -0
- package/optimize/es/components/page/page_side_bar/index.js +1 -1
- package/optimize/es/components/page/page_side_bar/page_side_bar.js +6 -1
- package/optimize/es/components/page/page_sidebar/index.js +8 -0
- package/optimize/es/components/page/page_sidebar/page_sidebar.js +60 -0
- package/optimize/es/components/page/page_sidebar/page_sidebar.styles.js +29 -0
- package/optimize/es/components/page/page_template.js +29 -9
- package/optimize/es/components/page_template/bottom_bar/page_bottom_bar.js +70 -0
- package/optimize/es/components/page_template/empty_prompt/page_empty_prompt.js +61 -0
- package/optimize/es/components/page_template/index.js +8 -0
- package/optimize/es/components/page_template/inner/index.js +8 -0
- package/optimize/es/components/page_template/inner/page_inner.js +47 -0
- package/optimize/es/components/page_template/inner/page_inner.styles.js +22 -0
- package/optimize/es/components/page_template/outer/index.js +8 -0
- package/optimize/es/components/page_template/outer/page_outer.js +33 -0
- package/optimize/es/components/page_template/outer/page_outer.styles.js +49 -0
- package/optimize/es/components/page_template/page_template.js +202 -0
- package/optimize/es/global_styling/functions/logicals.js +1 -1
- package/optimize/es/global_styling/mixins/_helpers.js +27 -9
- package/optimize/lib/components/bottom_bar/bottom_bar.js +1 -1
- package/optimize/lib/components/header/header.js +2 -0
- package/optimize/lib/components/header/header_links/header_links.js +2 -1
- package/optimize/lib/components/index.js +13 -0
- package/optimize/lib/components/page/_bottom_border.js +5 -0
- package/optimize/lib/components/page/_restrict_width.js +38 -7
- package/optimize/lib/components/page/index.js +28 -12
- package/optimize/lib/components/page/page.js +21 -33
- package/optimize/lib/components/page/page.styles.js +46 -0
- package/optimize/lib/components/page/page_body/page_body.js +20 -29
- package/optimize/lib/components/page/page_body/page_body.styles.js +27 -0
- package/optimize/lib/components/page/page_content/index.js +8 -8
- package/optimize/lib/components/page/page_content/page_content.js +7 -3
- package/optimize/lib/components/page/page_content/page_content_body.js +11 -7
- package/optimize/lib/components/page/page_content/page_content_header.js +7 -3
- package/optimize/lib/components/page/page_content/page_content_header_section.js +7 -3
- package/optimize/lib/components/page/page_header/page_header.js +22 -36
- package/optimize/lib/components/page/page_header/page_header.styles.js +27 -0
- package/optimize/lib/components/page/page_header/page_header_content.js +66 -13
- package/optimize/lib/components/page/page_header/page_header_content.styles.js +87 -0
- package/optimize/lib/components/page/page_section/index.js +13 -0
- package/optimize/lib/components/page/page_section/page_section.js +62 -0
- package/optimize/lib/components/page/page_section/page_section.styles.js +51 -0
- package/optimize/lib/components/page/page_side_bar/index.js +2 -2
- package/optimize/lib/components/page/page_side_bar/page_side_bar.js +7 -3
- package/optimize/lib/components/page/page_sidebar/index.js +13 -0
- package/optimize/lib/components/page/page_sidebar/page_sidebar.js +79 -0
- package/optimize/lib/components/page/page_sidebar/page_sidebar.styles.js +32 -0
- package/optimize/lib/components/page/page_template.js +51 -33
- package/optimize/lib/components/page_template/bottom_bar/page_bottom_bar.js +85 -0
- package/optimize/lib/components/page_template/empty_prompt/page_empty_prompt.js +71 -0
- package/optimize/lib/components/page_template/index.js +13 -0
- package/optimize/lib/components/page_template/inner/index.js +13 -0
- package/optimize/lib/components/page_template/inner/page_inner.js +57 -0
- package/optimize/lib/components/page_template/inner/page_inner.styles.js +35 -0
- package/optimize/lib/components/page_template/outer/index.js +13 -0
- package/optimize/lib/components/page_template/outer/page_outer.js +42 -0
- package/optimize/lib/components/page_template/outer/page_outer.styles.js +51 -0
- package/optimize/lib/components/page_template/page_template.js +228 -0
- package/optimize/lib/global_styling/functions/logicals.js +1 -1
- package/optimize/lib/global_styling/mixins/_helpers.js +27 -9
- package/package.json +1 -1
- package/src/components/page/_index.scss +0 -5
- package/src/components/page/page_content/_page_content_body.scss +10 -1
- package/src/components/tabs/_tabs.scss +2 -0
- package/test-env/components/bottom_bar/bottom_bar.js +20 -3
- package/test-env/components/header/header.js +2 -0
- package/test-env/components/header/header_links/header_links.js +2 -1
- package/test-env/components/index.js +13 -0
- package/test-env/components/page/_bottom_border.js +5 -0
- package/test-env/components/page/_restrict_width.js +38 -7
- package/test-env/components/page/index.js +28 -12
- package/test-env/components/page/page.js +22 -34
- package/test-env/components/page/page.styles.js +46 -0
- package/test-env/components/page/page_body/page_body.js +20 -29
- package/test-env/components/page/page_body/page_body.styles.js +27 -0
- package/test-env/components/page/page_content/index.js +8 -8
- package/test-env/components/page/page_content/page_content.js +8 -4
- package/test-env/components/page/page_content/page_content_body.js +13 -9
- package/test-env/components/page/page_content/page_content_header.js +8 -4
- package/test-env/components/page/page_content/page_content_header_section.js +8 -4
- package/test-env/components/page/page_header/page_header.js +31 -175
- package/test-env/components/page/page_header/page_header.styles.js +27 -0
- package/test-env/components/page/page_header/page_header_content.js +109 -16
- package/test-env/components/page/page_header/page_header_content.styles.js +87 -0
- package/test-env/components/page/page_section/index.js +13 -0
- package/test-env/components/page/page_section/page_section.js +110 -0
- package/test-env/components/page/page_section/page_section.styles.js +51 -0
- package/test-env/components/page/page_side_bar/index.js +2 -2
- package/test-env/components/page/page_side_bar/page_side_bar.js +9 -5
- package/test-env/components/page/page_sidebar/index.js +13 -0
- package/test-env/components/page/page_sidebar/page_sidebar.js +113 -0
- package/test-env/components/page/page_sidebar/page_sidebar.styles.js +32 -0
- package/test-env/components/page/page_template.js +76 -178
- package/test-env/components/page_template/bottom_bar/page_bottom_bar.js +102 -0
- package/test-env/components/page_template/empty_prompt/page_empty_prompt.js +114 -0
- package/test-env/components/page_template/index.js +13 -0
- package/test-env/components/page_template/inner/index.js +13 -0
- package/test-env/components/page_template/inner/page_inner.js +57 -0
- package/test-env/components/page_template/inner/page_inner.styles.js +35 -0
- package/test-env/components/page_template/outer/index.js +13 -0
- package/test-env/components/page_template/outer/page_outer.js +65 -0
- package/test-env/components/page_template/outer/page_outer.styles.js +51 -0
- package/test-env/components/page_template/page_template.js +387 -0
- package/test-env/global_styling/functions/logicals.js +1 -1
- package/test-env/global_styling/mixins/_helpers.js +27 -9
- package/src/components/page/_mixins.scss +0 -12
- package/src/components/page/_page.scss +0 -41
- package/src/components/page/page_body/_index.scss +0 -1
- package/src/components/page/page_body/_page_body.scss +0 -45
- package/src/components/page/page_header/_index.scss +0 -3
- package/src/components/page/page_header/_page_header.scss +0 -78
- package/src/components/page/page_header/_page_header_content.scss +0 -15
- package/src/components/page/page_header/_page_header_section.scss +0 -26
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
5
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
6
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
7
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
8
|
+
* Side Public License, v 1.
|
|
9
|
+
*/
|
|
10
|
+
import { css } from '@emotion/react';
|
|
11
|
+
import { logicalCSS } from '../../../global_styling';
|
|
12
|
+
export var ALIGNMENTS = ['top', 'center', 'horizontalCenter'];
|
|
13
|
+
|
|
14
|
+
var _ref = process.env.NODE_ENV === "production" ? {
|
|
15
|
+
name: "122lw0e-grow",
|
|
16
|
+
styles: "flex-grow:1;label:grow;"
|
|
17
|
+
} : {
|
|
18
|
+
name: "122lw0e-grow",
|
|
19
|
+
styles: "flex-grow:1;label:grow;",
|
|
20
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export var euiPageSectionStyles = function euiPageSectionStyles(_ref2) {
|
|
24
|
+
var euiTheme = _ref2.euiTheme;
|
|
25
|
+
return {
|
|
26
|
+
euiPageSection: /*#__PURE__*/css(logicalCSS('width', '100%'), ";", logicalCSS('min-width', '0'), ";display:flex;flex-direction:column;;label:euiPageSection;"),
|
|
27
|
+
grow: _ref,
|
|
28
|
+
border: /*#__PURE__*/css(logicalCSS('border-bottom', euiTheme.border.thin), ";;label:border;"),
|
|
29
|
+
// Alignments
|
|
30
|
+
top: /*#__PURE__*/css(";label:top;"),
|
|
31
|
+
center: /*#__PURE__*/css(logicalCSS('width', 'auto'), ";align-items:center;justify-content:center;;label:center;"),
|
|
32
|
+
horizontalCenter: /*#__PURE__*/css(logicalCSS('width', 'auto'), ";align-items:center;;label:horizontalCenter;")
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
export var euiPageSectionContentStyles = function euiPageSectionContentStyles() {
|
|
36
|
+
return {
|
|
37
|
+
euiPageSection__content: /*#__PURE__*/css(logicalCSS('width', '100%'), ";;label:euiPageSection__content;"),
|
|
38
|
+
// Alignments
|
|
39
|
+
center: /*#__PURE__*/css(logicalCSS('width', 'auto'), ";", logicalCSS('margin-horizontal', 'auto'), ";;label:center;"),
|
|
40
|
+
// Max widths
|
|
41
|
+
restrictWidth: /*#__PURE__*/css(logicalCSS('margin-horizontal', 'auto'), ";;label:restrictWidth;")
|
|
42
|
+
};
|
|
43
|
+
};
|
|
@@ -25,7 +25,12 @@ var paddingSizeToClassNameMap = {
|
|
|
25
25
|
l: 'euiPageSideBar--paddingLarge'
|
|
26
26
|
};
|
|
27
27
|
export var PADDING_SIZES = keysOf(paddingSizeToClassNameMap);
|
|
28
|
-
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* **DEPRECATED**
|
|
31
|
+
* Use the new EuiPageSidebar instead
|
|
32
|
+
*/
|
|
33
|
+
export var EuiPageSideBar_Deprecated = function EuiPageSideBar_Deprecated(_ref) {
|
|
29
34
|
var children = _ref.children,
|
|
30
35
|
className = _ref.className,
|
|
31
36
|
sticky = _ref.sticky,
|
|
@@ -40,9 +45,9 @@ export var EuiPageSideBar = function EuiPageSideBar(_ref) {
|
|
|
40
45
|
className: classes
|
|
41
46
|
}, rest), children);
|
|
42
47
|
};
|
|
43
|
-
|
|
48
|
+
EuiPageSideBar_Deprecated.propTypes = {
|
|
44
49
|
/**
|
|
45
|
-
* Adds `position: sticky`
|
|
50
|
+
* Adds `position: sticky`
|
|
46
51
|
*/
|
|
47
52
|
sticky: PropTypes.bool,
|
|
48
53
|
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
3
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
4
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
5
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
6
|
+
* Side Public License, v 1.
|
|
7
|
+
*/
|
|
8
|
+
export { EuiPageSidebar } from './page_sidebar';
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
var _excluded = ["children", "className", "sticky", "paddingSize", "minWidth", "responsive", "style"];
|
|
2
|
+
|
|
3
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
+
|
|
5
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
6
|
+
|
|
7
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
8
|
+
|
|
9
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
10
|
+
|
|
11
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
12
|
+
|
|
13
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
14
|
+
|
|
15
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
16
|
+
|
|
17
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
18
|
+
|
|
19
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
20
|
+
|
|
21
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
22
|
+
|
|
23
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
24
|
+
|
|
25
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
26
|
+
|
|
27
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
28
|
+
|
|
29
|
+
/*
|
|
30
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
31
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
32
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
33
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
34
|
+
* Side Public License, v 1.
|
|
35
|
+
*/
|
|
36
|
+
import React, { useEffect, useState } from 'react';
|
|
37
|
+
import PropTypes from "prop-types";
|
|
38
|
+
import { logicalStyle, useEuiPaddingCSS } from '../../../global_styling';
|
|
39
|
+
import { useEuiTheme, useIsWithinBreakpoints } from '../../../services';
|
|
40
|
+
import { euiPageSidebarStyles } from './page_sidebar.styles';
|
|
41
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
42
|
+
export var EuiPageSidebar = function EuiPageSidebar(_ref) {
|
|
43
|
+
var children = _ref.children,
|
|
44
|
+
className = _ref.className,
|
|
45
|
+
_ref$sticky = _ref.sticky,
|
|
46
|
+
sticky = _ref$sticky === void 0 ? false : _ref$sticky,
|
|
47
|
+
_ref$paddingSize = _ref.paddingSize,
|
|
48
|
+
paddingSize = _ref$paddingSize === void 0 ? 'none' : _ref$paddingSize,
|
|
49
|
+
_ref$minWidth = _ref.minWidth,
|
|
50
|
+
minWidth = _ref$minWidth === void 0 ? 248 : _ref$minWidth,
|
|
51
|
+
_ref$responsive = _ref.responsive,
|
|
52
|
+
responsive = _ref$responsive === void 0 ? ['xs', 's'] : _ref$responsive,
|
|
53
|
+
style = _ref.style,
|
|
54
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
55
|
+
|
|
56
|
+
var themeContext = useEuiTheme();
|
|
57
|
+
var styles = euiPageSidebarStyles(themeContext);
|
|
58
|
+
var isResponding = useIsWithinBreakpoints(responsive);
|
|
59
|
+
var cssStyles = [styles.euiPageSidebar, !isResponding && sticky && styles.sticky, useEuiPaddingCSS()[paddingSize]]; // Inline styles for setting up width and sticky offsets
|
|
60
|
+
|
|
61
|
+
var _useState = useState(_objectSpread(_objectSpread({}, style), logicalStyle('min-width', isResponding ? '100%' : minWidth))),
|
|
62
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
63
|
+
inlineStyles = _useState2[0],
|
|
64
|
+
setInlineStyles = _useState2[1];
|
|
65
|
+
|
|
66
|
+
useEffect(function () {
|
|
67
|
+
if (sticky) {
|
|
68
|
+
var euiHeaderFixedCounter = Number(document.body.dataset.fixedHeaders);
|
|
69
|
+
var offset = _typeof(sticky) === 'object' ? sticky === null || sticky === void 0 ? void 0 : sticky.offset : themeContext.euiTheme.base * 3 * euiHeaderFixedCounter;
|
|
70
|
+
setInlineStyles(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, style), logicalStyle('min-width', isResponding ? '100%' : minWidth)), logicalStyle('top', offset)), logicalStyle('max-height', "calc(100vh - ".concat(offset, "px)"))));
|
|
71
|
+
}
|
|
72
|
+
}, [style, sticky, themeContext.euiTheme.base, isResponding, minWidth]);
|
|
73
|
+
return ___EmotionJSX("div", _extends({
|
|
74
|
+
className: className,
|
|
75
|
+
css: cssStyles,
|
|
76
|
+
style: inlineStyles
|
|
77
|
+
}, rest), children);
|
|
78
|
+
};
|
|
79
|
+
EuiPageSidebar.propTypes = {
|
|
80
|
+
/**
|
|
81
|
+
* Adjust the padding.
|
|
82
|
+
* When using this setting it's best to be consistent throughout all similar usages.
|
|
83
|
+
*/
|
|
84
|
+
paddingSize: PropTypes.any,
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Adds `position: sticky` and affords for any fixed position headers.
|
|
88
|
+
*/
|
|
89
|
+
sticky: PropTypes.oneOfType([PropTypes.bool.isRequired, PropTypes.shape({
|
|
90
|
+
/**
|
|
91
|
+
* To account for any fixed elements like headers,
|
|
92
|
+
* pass in the value of the total height of those fixed elements.
|
|
93
|
+
*/
|
|
94
|
+
offset: PropTypes.number
|
|
95
|
+
}).isRequired]),
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* A minimum width is necessary to maintain size.
|
|
99
|
+
* Be sure to take `paddingSize` into account.
|
|
100
|
+
*/
|
|
101
|
+
minWidth: PropTypes.any,
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Sets the `minWidth` to 100% when within these breakpoints.
|
|
105
|
+
*/
|
|
106
|
+
responsive: PropTypes.arrayOf(PropTypes.any.isRequired),
|
|
107
|
+
className: PropTypes.string,
|
|
108
|
+
"aria-label": PropTypes.string,
|
|
109
|
+
"data-test-subj": PropTypes.string
|
|
110
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
5
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
6
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
7
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
8
|
+
* Side Public License, v 1.
|
|
9
|
+
*/
|
|
10
|
+
import { css } from '@emotion/react';
|
|
11
|
+
import { euiYScroll } from '../../../global_styling';
|
|
12
|
+
|
|
13
|
+
var _ref = process.env.NODE_ENV === "production" ? {
|
|
14
|
+
name: "wtyx0k-euiPageSidebar",
|
|
15
|
+
styles: "flex:0 1 0%;label:euiPageSidebar;"
|
|
16
|
+
} : {
|
|
17
|
+
name: "wtyx0k-euiPageSidebar",
|
|
18
|
+
styles: "flex:0 1 0%;label:euiPageSidebar;",
|
|
19
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export var euiPageSidebarStyles = function euiPageSidebarStyles(euiThemeContext) {
|
|
23
|
+
return {
|
|
24
|
+
euiPageSidebar: _ref,
|
|
25
|
+
sticky: /*#__PURE__*/css(euiYScroll(euiThemeContext, {
|
|
26
|
+
height: 'auto'
|
|
27
|
+
}), ";flex-grow:1;position:sticky;;label:sticky;")
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -22,17 +22,25 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
22
22
|
import React from 'react';
|
|
23
23
|
import PropTypes from "prop-types";
|
|
24
24
|
import classNames from 'classnames';
|
|
25
|
+
import { css } from '@emotion/react';
|
|
25
26
|
import { EuiPage } from './page';
|
|
26
|
-
import { EuiPageSideBar } from './page_side_bar';
|
|
27
|
+
import { EuiPageSideBar_Deprecated as EuiPageSideBar } from './page_side_bar';
|
|
27
28
|
import { EuiPageBody } from './page_body';
|
|
28
29
|
import { EuiPageHeader } from './page_header';
|
|
29
|
-
import { EuiPageContent, EuiPageContentBody } from './page_content';
|
|
30
|
+
import { EuiPageContent_Deprecated as EuiPageContent, EuiPageContentBody_Deprecated as EuiPageContentBody } from './page_content';
|
|
30
31
|
import { EuiBottomBar } from '../bottom_bar';
|
|
31
32
|
import { useIsWithinBreakpoints } from '../../services';
|
|
32
33
|
import { EuiFlexGroup, EuiFlexItem } from '../flex';
|
|
34
|
+
import { useEuiPaddingSize } from '../../global_styling';
|
|
33
35
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
34
36
|
export var TEMPLATES = ['default', 'centeredBody', 'centeredContent', 'empty'];
|
|
35
|
-
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* This component has been deprecated in favor of the new
|
|
40
|
+
* namespaced version. You can still import this component
|
|
41
|
+
* for a period of time by importing `as EuiPageTemplate`.
|
|
42
|
+
*/
|
|
43
|
+
export var EuiPageTemplate_Deprecated = function EuiPageTemplate_Deprecated(_ref) {
|
|
36
44
|
var _pageBodyProps2;
|
|
37
45
|
|
|
38
46
|
var _ref$template = _ref.template,
|
|
@@ -58,9 +66,12 @@ export var EuiPageTemplate = function EuiPageTemplate(_ref) {
|
|
|
58
66
|
minHeight = _ref$minHeight === void 0 ? 460 : _ref$minHeight,
|
|
59
67
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
60
68
|
|
|
69
|
+
// BWC page header margin to match padding
|
|
70
|
+
var headerMargin = /*#__PURE__*/css("margin-bottom: ".concat(useEuiPaddingSize(paddingSize)), ";label:headerMargin;");
|
|
61
71
|
/**
|
|
62
72
|
* Full height ~madness~ logic
|
|
63
73
|
*/
|
|
74
|
+
|
|
64
75
|
var canFullHeight = useIsWithinBreakpoints(['m', 'l', 'xl']) && (template === 'default' || template === 'empty');
|
|
65
76
|
var fullHeightClass = {
|
|
66
77
|
'eui-fullHeight': fullHeight && canFullHeight
|
|
@@ -124,7 +135,8 @@ export var EuiPageTemplate = function EuiPageTemplate(_ref) {
|
|
|
124
135
|
}, pageSideBarProps), pageSideBar), ___EmotionJSX(EuiPageBody, _extends({
|
|
125
136
|
paddingSize: paddingSize
|
|
126
137
|
}, pageBodyProps), pageHeader && ___EmotionJSX(EuiPageHeader, _extends({
|
|
127
|
-
restrictWidth: restrictWidth
|
|
138
|
+
restrictWidth: restrictWidth,
|
|
139
|
+
css: headerMargin
|
|
128
140
|
}, pageHeader)), ___EmotionJSX(EuiPageContent, _extends({
|
|
129
141
|
verticalPosition: "center",
|
|
130
142
|
horizontalPosition: "center",
|
|
@@ -142,6 +154,7 @@ export var EuiPageTemplate = function EuiPageTemplate(_ref) {
|
|
|
142
154
|
}, pageBodyProps), pageHeader && ___EmotionJSX(EuiPageHeader, _extends({
|
|
143
155
|
paddingSize: "none",
|
|
144
156
|
restrictWidth: false,
|
|
157
|
+
css: headerMargin,
|
|
145
158
|
bottomBorder: true
|
|
146
159
|
}, pageHeader)), ___EmotionJSX(EuiPageBody, null, ___EmotionJSX(EuiPageContent, _extends({
|
|
147
160
|
verticalPosition: "center",
|
|
@@ -171,7 +184,8 @@ export var EuiPageTemplate = function EuiPageTemplate(_ref) {
|
|
|
171
184
|
panelled: true,
|
|
172
185
|
paddingSize: paddingSize
|
|
173
186
|
}, pageBodyProps), pageHeader && ___EmotionJSX(EuiPageHeader, _extends({
|
|
174
|
-
restrictWidth: restrictWidth
|
|
187
|
+
restrictWidth: restrictWidth,
|
|
188
|
+
css: headerMargin
|
|
175
189
|
}, pageHeader)), ___EmotionJSX(EuiPageContent, _extends({
|
|
176
190
|
verticalPosition: "center",
|
|
177
191
|
horizontalPosition: "center",
|
|
@@ -188,7 +202,8 @@ export var EuiPageTemplate = function EuiPageTemplate(_ref) {
|
|
|
188
202
|
style: pageStyle
|
|
189
203
|
}), ___EmotionJSX(EuiPageBody, pageBodyProps, pageHeader && ___EmotionJSX(EuiPageHeader, _extends({
|
|
190
204
|
paddingSize: paddingSize,
|
|
191
|
-
restrictWidth: restrictWidth
|
|
205
|
+
restrictWidth: restrictWidth,
|
|
206
|
+
bottomBorder: "extended"
|
|
192
207
|
}, pageHeader)), ___EmotionJSX(EuiPageContent, {
|
|
193
208
|
role: null,
|
|
194
209
|
borderRadius: "none",
|
|
@@ -225,7 +240,9 @@ export var EuiPageTemplate = function EuiPageTemplate(_ref) {
|
|
|
225
240
|
}, pageSideBarProps), pageSideBar), ___EmotionJSX(EuiPageBody, _extends({
|
|
226
241
|
paddingSize: paddingSize
|
|
227
242
|
}, pageBodyProps), pageHeader && ___EmotionJSX(EuiPageHeader, _extends({
|
|
228
|
-
restrictWidth: restrictWidth
|
|
243
|
+
restrictWidth: restrictWidth,
|
|
244
|
+
bottomBorder: true,
|
|
245
|
+
css: headerMargin
|
|
229
246
|
}, pageHeader)), ___EmotionJSX(EuiPageContent, _extends({
|
|
230
247
|
hasBorder: false,
|
|
231
248
|
hasShadow: false,
|
|
@@ -245,6 +262,7 @@ export var EuiPageTemplate = function EuiPageTemplate(_ref) {
|
|
|
245
262
|
}, pageBodyProps), pageHeader && ___EmotionJSX(EuiPageHeader, _extends({
|
|
246
263
|
paddingSize: "none",
|
|
247
264
|
restrictWidth: false,
|
|
265
|
+
css: headerMargin,
|
|
248
266
|
bottomBorder: true
|
|
249
267
|
}, pageHeader)), ___EmotionJSX(EuiPageContent, _extends({
|
|
250
268
|
hasBorder: false,
|
|
@@ -289,7 +307,8 @@ export var EuiPageTemplate = function EuiPageTemplate(_ref) {
|
|
|
289
307
|
className: (_pageBodyProps2 = pageBodyProps) === null || _pageBodyProps2 === void 0 ? void 0 : _pageBodyProps2.className
|
|
290
308
|
}, pageHeader && ___EmotionJSX(EuiPageHeader, _extends({
|
|
291
309
|
bottomBorder: true,
|
|
292
|
-
restrictWidth: restrictWidth
|
|
310
|
+
restrictWidth: restrictWidth,
|
|
311
|
+
css: headerMargin
|
|
293
312
|
}, pageHeader)), ___EmotionJSX(EuiPageContent, _extends({
|
|
294
313
|
hasShadow: false,
|
|
295
314
|
hasBorder: false,
|
|
@@ -306,7 +325,8 @@ export var EuiPageTemplate = function EuiPageTemplate(_ref) {
|
|
|
306
325
|
style: pageStyle
|
|
307
326
|
}), ___EmotionJSX(EuiPageBody, pageBodyProps, pageHeader && ___EmotionJSX(EuiPageHeader, _extends({
|
|
308
327
|
restrictWidth: restrictWidth,
|
|
309
|
-
paddingSize: paddingSize
|
|
328
|
+
paddingSize: paddingSize,
|
|
329
|
+
bottomBorder: "extended"
|
|
310
330
|
}, pageHeader)), ___EmotionJSX(EuiPageContent, _extends({
|
|
311
331
|
hasBorder: pageHeader === undefined ? false : undefined,
|
|
312
332
|
hasShadow: false,
|
|
@@ -319,7 +339,7 @@ export var EuiPageTemplate = function EuiPageTemplate(_ref) {
|
|
|
319
339
|
}, pageContentBodyProps), children)), bottomBarNode));
|
|
320
340
|
}
|
|
321
341
|
};
|
|
322
|
-
|
|
342
|
+
EuiPageTemplate_Deprecated.propTypes = {
|
|
323
343
|
/**
|
|
324
344
|
* Choose between 3 types of templates.
|
|
325
345
|
* `default`: Typical layout with nothing centered
|
|
@@ -333,7 +353,7 @@ EuiPageTemplate.propTypes = {
|
|
|
333
353
|
* Padding size will not get applied to the over-arching #EuiPage,
|
|
334
354
|
* but will propogate through all the components to keep them in sync
|
|
335
355
|
*/
|
|
336
|
-
paddingSize: PropTypes.
|
|
356
|
+
paddingSize: PropTypes.oneOf(["none", "s", "m", "l"]),
|
|
337
357
|
|
|
338
358
|
/**
|
|
339
359
|
* Optionally include #EuiPageSideBar content.
|
|
@@ -346,7 +366,7 @@ EuiPageTemplate.propTypes = {
|
|
|
346
366
|
*/
|
|
347
367
|
pageSideBarProps: PropTypes.shape({
|
|
348
368
|
/**
|
|
349
|
-
* Adds `position: sticky`
|
|
369
|
+
* Adds `position: sticky`
|
|
350
370
|
*/
|
|
351
371
|
sticky: PropTypes.bool,
|
|
352
372
|
|
|
@@ -364,157 +384,27 @@ EuiPageTemplate.propTypes = {
|
|
|
364
384
|
*/
|
|
365
385
|
pageHeader: PropTypes.shape({
|
|
366
386
|
/**
|
|
367
|
-
* Adjust the padding.
|
|
368
|
-
* When using this setting it's best to be consistent throughout all similar usages
|
|
387
|
+
* Adjust the overall padding.
|
|
369
388
|
*/
|
|
370
389
|
paddingSize: PropTypes.any,
|
|
371
|
-
|
|
372
|
-
/**
|
|
373
|
-
* Adds a bottom border to separate it from the content after
|
|
374
|
-
*/
|
|
375
|
-
bottomBorder: PropTypes.bool,
|
|
376
390
|
className: PropTypes.string,
|
|
377
391
|
"aria-label": PropTypes.string,
|
|
378
392
|
"data-test-subj": PropTypes.string,
|
|
379
393
|
|
|
380
|
-
/**
|
|
381
|
-
* Set to false if you don't want the children to stack at small screen sizes.
|
|
382
|
-
* Set to `reverse` to display the right side content first for the sake of hierarchy (like global time)
|
|
383
|
-
*/
|
|
384
|
-
responsive: PropTypes.oneOfType([PropTypes.bool.isRequired, PropTypes.oneOf(["reverse"])]),
|
|
385
|
-
|
|
386
|
-
/**
|
|
387
|
-
* Vertical alignment of the left and right side content;
|
|
388
|
-
* Default is `middle` for custom content, but `top` for when `pageTitle` or `tabs` are included
|
|
389
|
-
*/
|
|
390
|
-
alignItems: PropTypes.any,
|
|
391
|
-
|
|
392
|
-
/**
|
|
393
|
-
* Pass custom an array of content to this side usually up to 3 buttons.
|
|
394
|
-
* The first button should be primary, usually with `fill` and will be visually displayed as the last item,
|
|
395
|
-
* but first in the tab order
|
|
396
|
-
*/
|
|
397
|
-
rightSideItems: PropTypes.arrayOf(PropTypes.node.isRequired),
|
|
398
|
-
|
|
399
|
-
/**
|
|
400
|
-
* Additional EuiFlexGroup props to pass to the container of the `rightSideItems`
|
|
401
|
-
*/
|
|
402
|
-
rightSideGroupProps: PropTypes.any,
|
|
403
|
-
|
|
404
|
-
/**
|
|
405
|
-
* Custom children will be rendered before the `tabs` unless no `pageTitle` is present, then it will be the last item
|
|
406
|
-
*/
|
|
407
|
-
children: PropTypes.node,
|
|
408
|
-
|
|
409
|
-
/**
|
|
410
|
-
* Position is dependent on existing with a `pageTitle` or `tabs`
|
|
411
|
-
* Automatically get wrapped in a single paragraph tag inside an EuiText block
|
|
412
|
-
*/
|
|
413
|
-
description: PropTypes.oneOfType([PropTypes.string.isRequired, PropTypes.node.isRequired]),
|
|
414
|
-
|
|
415
|
-
/**
|
|
416
|
-
* Wrapped in an `H1` so choose appropriately.
|
|
417
|
-
* A simple string is best
|
|
418
|
-
*/
|
|
419
|
-
pageTitle: PropTypes.node,
|
|
420
|
-
|
|
421
|
-
/**
|
|
422
|
-
* Additional props to pass to the EuiTitle
|
|
423
|
-
*/
|
|
424
|
-
pageTitleProps: PropTypes.shape({
|
|
425
|
-
className: PropTypes.string,
|
|
426
|
-
"aria-label": PropTypes.string,
|
|
427
|
-
"data-test-subj": PropTypes.string,
|
|
428
|
-
textTransform: PropTypes.any,
|
|
429
|
-
id: PropTypes.string
|
|
430
|
-
}),
|
|
431
|
-
|
|
432
|
-
/**
|
|
433
|
-
* Optional icon to place to the left of the title
|
|
434
|
-
*/
|
|
435
|
-
iconType: PropTypes.oneOfType([PropTypes.oneOf(["accessibility", "addDataApp", "advancedSettingsApp", "agentApp", "aggregate", "alert", "analyzeEvent", "annotation", "apmApp", "apmTrace", "appSearchApp", "apps", "arrowDown", "arrowLeft", "arrowRight", "arrowUp", "arrowStart", "arrowEnd", "asterisk", "auditbeatApp", "beaker", "bell", "bellSlash", "bolt", "boxesHorizontal", "boxesVertical", "branch", "branchUser", "broom", "brush", "bug", "bullseye", "calendar", "canvasApp", "casesApp", "check", "checkInCircleFilled", "cheer", "classificationJob", "clock", "cloudDrizzle", "cloudStormy", "cloudSunny", "cluster", "codeApp", "color", "compute", "console", "consoleApp", "container", "continuityAbove", "continuityAboveBelow", "continuityBelow", "continuityWithin", "controlsHorizontal", "controlsVertical", "copy", "copyClipboard", "createAdvancedJob", "createMultiMetricJob", "createPopulationJob", "createSingleMetricJob", "cross", "crossClusterReplicationApp", "crossInACircleFilled", "crosshairs", "currency", "cut", "dashboardApp", "dataVisualizer", "database", "desktop", "devToolsApp", "discoverApp", "document", "documentEdit", "documentation", "documents", "dot", "doubleArrowLeft", "doubleArrowRight", "download", "editorAlignCenter", "editorAlignLeft", "editorAlignRight", "editorBold", "editorChecklist", "editorCodeBlock", "editorComment", "editorDistributeHorizontal", "editorDistributeVertical", "editorHeading", "editorItalic", "editorItemAlignBottom", "editorItemAlignCenter", "editorItemAlignLeft", "editorItemAlignMiddle", "editorItemAlignRight", "editorItemAlignTop", "editorLink", "editorOrderedList", "editorPositionBottomLeft", "editorPositionBottomRight", "editorPositionTopLeft", "editorPositionTopRight", "editorRedo", "editorStrike", "editorTable", "editorUnderline", "editorUndo", "editorUnorderedList", "email", "empty", "emsApp", "eql", "eraser", "exit", "expand", "expandMini", "exportAction", "eye", "eyeClosed", "faceHappy", "faceNeutral", "faceSad", "filebeatApp", "filter", "flag", "fleetApp", "fold", "folderCheck", "folderClosed", "folderExclamation", "folderOpen", "frameNext", "framePrevious", "fullScreen", "fullScreenExit", "function", "gear", "gisApp", "glasses", "globe", "grab", "grabHorizontal", "graphApp", "grid", "grokApp", "heart", "heartbeatApp", "heatmap", "help", "home", "iInCircle", "image", "importAction", "indexClose", "indexEdit", "indexFlush", "indexManagementApp", "indexMapping", "indexOpen", "indexPatternApp", "indexRollupApp", "indexRuntime", "indexSettings", "inputOutput", "inspect", "invert", "ip", "keyboard", "kqlField", "kqlFunction", "kqlOperand", "kqlSelector", "kqlValue", "kubernetesNode", "kubernetesPod", "layers", "lensApp", "lettering", "lineDashed", "lineDotted", "lineSolid", "link", "list", "listAdd", "lock", "lockOpen", "logoAWS", "logoAWSMono", "logoAerospike", "logoApache", "logoAppSearch", "logoAzure", "logoAzureMono", "logoBeats", "logoBusinessAnalytics", "logoCeph", "logoCloud", "logoCloudEnterprise", "logoCode", "logoCodesandbox", "logoCouchbase", "logoDocker", "logoDropwizard", "logoElastic", "logoElasticStack", "logoElasticsearch", "logoEnterpriseSearch", "logoEtcd", "logoGCP", "logoGCPMono", "logoGithub", "logoGmail", "logoGolang", "logoGoogleG", "logoHAproxy", "logoIBM", "logoIBMMono", "logoKafka", "logoKibana", "logoKubernetes", "logoLogging", "logoLogstash", "logoMaps", "logoMemcached", "logoMetrics", "logoMongodb", "logoMySQL", "logoNginx", "logoObservability", "logoOsquery", "logoPhp", "logoPostgres", "logoPrometheus", "logoRabbitmq", "logoRedis", "logoSecurity", "logoSiteSearch", "logoSketch", "logoSlack", "logoUptime", "logoWebhook", "logoWindows", "logoWorkplaceSearch", "logsApp", "logstashFilter", "logstashIf", "logstashInput", "logstashOutput", "logstashQueue", "machineLearningApp", "magnet", "magnifyWithExclamation", "magnifyWithMinus", "magnifyWithPlus", "managementApp", "mapMarker", "memory", "menu", "menuDown", "menuLeft", "menuRight", "menuUp", "merge", "metricbeatApp", "metricsApp", "minimize", "minus", "minusInCircle", "minusInCircleFilled", "mobile", "monitoringApp", "moon", "namespace", "nested", "node", "notebookApp", "number", "offline", "online", "outlierDetectionJob", "package", "packetbeatApp", "pageSelect", "pagesSelect", "paperClip", "partial", "pause", "payment", "pencil", "percent", "pin", "pinFilled", "pipelineApp", "play", "playFilled", "plus", "plusInCircle", "plusInCircleFilled", "popout", "push", "questionInCircle", "quote", "recentlyViewedApp", "refresh", "regressionJob", "reporter", "reportingApp", "returnKey", "save", "savedObjectsApp", "scale", "search", "searchProfilerApp", "securityAnalyticsApp", "securityApp", "securitySignal", "securitySignalDetected", "securitySignalResolved", "sessionViewer", "shard", "share", "snowflake", "sortDown", "sortLeft", "sortRight", "sortUp", "sortable", "spacesApp", "sqlApp", "starEmpty", "starEmptySpace", "starFilled", "starFilledSpace", "starMinusEmpty", "starMinusFilled", "starPlusEmpty", "starPlusFilled", "stats", "stop", "stopFilled", "stopSlash", "storage", "string", "submodule", "sun", "swatchInput", "symlink", "tableDensityCompact", "tableDensityExpanded", "tableDensityNormal", "tableOfContents", "tag", "tear", "temperature", "timeline", "timelionApp", "timeRefresh", "timeslider", "training", "trash", "unfold", "unlink", "upgradeAssistantApp", "uptimeApp", "user", "userAvatar", "users", "usersRolesApp", "vector", "videoPlayer", "visArea", "visAreaStacked", "visBarHorizontal", "visBarHorizontalStacked", "visBarVertical", "visBarVerticalStacked", "visGauge", "visGoal", "visLine", "visMapCoordinate", "visMapRegion", "visMetric", "visPie", "visTable", "visTagCloud", "visText", "visTimelion", "visVega", "visVisualBuilder", "visualizeApp", "watchesApp", "wordWrap", "wordWrapDisabled", "workplaceSearchApp", "wrench", "tokenAlias", "tokenAnnotation", "tokenArray", "tokenBinary", "tokenBoolean", "tokenClass", "tokenCompletionSuggester", "tokenConstant", "tokenDate", "tokenDenseVector", "tokenElement", "tokenEnum", "tokenEnumMember", "tokenEvent", "tokenException", "tokenField", "tokenFile", "tokenFlattened", "tokenFunction", "tokenGeo", "tokenHistogram", "tokenInterface", "tokenIP", "tokenJoin", "tokenKey", "tokenKeyword", "tokenMethod", "tokenMetricCounter", "tokenMetricGauge", "tokenModule", "tokenNamespace", "tokenNested", "tokenNull", "tokenNumber", "tokenObject", "tokenOperator", "tokenPackage", "tokenParameter", "tokenPercolator", "tokenProperty", "tokenRange", "tokenRankFeature", "tokenRankFeatures", "tokenRepo", "tokenSearchType", "tokenShape", "tokenString", "tokenStruct", "tokenSymbol", "tokenTag", "tokenText", "tokenTokenCount", "tokenVariable"]).isRequired, PropTypes.string.isRequired, PropTypes.elementType.isRequired]),
|
|
436
|
-
|
|
437
|
-
/**
|
|
438
|
-
* Additional EuiIcon props to apply to the optional icon
|
|
439
|
-
*/
|
|
440
|
-
iconProps: PropTypes.any,
|
|
441
|
-
|
|
442
|
-
/**
|
|
443
|
-
* Optional array breadcrumbs that render before the `pageTitle`
|
|
444
|
-
*/
|
|
445
|
-
breadcrumbs: PropTypes.arrayOf(PropTypes.shape({
|
|
446
|
-
className: PropTypes.string,
|
|
447
|
-
"aria-label": PropTypes.string,
|
|
448
|
-
"data-test-subj": PropTypes.string,
|
|
449
|
-
href: PropTypes.string,
|
|
450
|
-
rel: PropTypes.string,
|
|
451
|
-
onClick: PropTypes.func,
|
|
452
|
-
|
|
453
|
-
/**
|
|
454
|
-
* Visible label of the breadcrumb
|
|
455
|
-
*/
|
|
456
|
-
text: PropTypes.node.isRequired,
|
|
457
|
-
|
|
458
|
-
/**
|
|
459
|
-
* Force a max-width on the breadcrumb text
|
|
460
|
-
*/
|
|
461
|
-
truncate: PropTypes.bool,
|
|
462
|
-
|
|
463
|
-
/**
|
|
464
|
-
* Accepts any EuiLink `color` when rendered as one (has `href` or `onClick`)
|
|
465
|
-
*/
|
|
466
|
-
color: PropTypes.any,
|
|
467
|
-
|
|
468
|
-
/**
|
|
469
|
-
* Override the existing `aria-current` which defaults to `page` for the last breadcrumb
|
|
470
|
-
*/
|
|
471
|
-
"aria-current": PropTypes.any
|
|
472
|
-
}).isRequired),
|
|
473
|
-
|
|
474
|
-
/**
|
|
475
|
-
* Adjust the props of [EuiBreadcrumbs](#/navigation/breadcrumbs)
|
|
476
|
-
*/
|
|
477
|
-
breadcrumbProps: PropTypes.any,
|
|
478
|
-
|
|
479
|
-
/**
|
|
480
|
-
* In-app navigation presented as large borderless tabs.
|
|
481
|
-
* Accepts an array of `EuiTab` objects;
|
|
482
|
-
*/
|
|
483
|
-
tabs: PropTypes.arrayOf(PropTypes.shape({
|
|
484
|
-
/**
|
|
485
|
-
* Visible text of the tab
|
|
486
|
-
*/
|
|
487
|
-
label: PropTypes.node.isRequired
|
|
488
|
-
}).isRequired),
|
|
489
|
-
|
|
490
|
-
/**
|
|
491
|
-
* Any extras to apply to the outer tabs container.
|
|
492
|
-
* Extends `EuiTabs`
|
|
493
|
-
*/
|
|
494
|
-
tabsProps: PropTypes.shape({
|
|
495
|
-
className: PropTypes.string,
|
|
496
|
-
"aria-label": PropTypes.string,
|
|
497
|
-
"data-test-subj": PropTypes.string,
|
|
498
|
-
|
|
499
|
-
/**
|
|
500
|
-
* ReactNode to render as this component's content
|
|
501
|
-
*/
|
|
502
|
-
children: PropTypes.node,
|
|
503
|
-
|
|
504
|
-
/**
|
|
505
|
-
* Adds a bottom border to separate it from the content after
|
|
506
|
-
*/
|
|
507
|
-
bottomBorder: PropTypes.bool
|
|
508
|
-
}),
|
|
509
|
-
|
|
510
394
|
/**
|
|
511
395
|
* Sets the max-width of the page,
|
|
512
|
-
* set to `true` to use the default size of `
|
|
396
|
+
* set to `true` to use the default size of `1200px`,
|
|
513
397
|
* set to `false` to not restrict the width,
|
|
514
398
|
* set to a number for a custom width in px,
|
|
515
399
|
* set to a string for a custom width in custom measurement.
|
|
516
400
|
*/
|
|
517
|
-
restrictWidth: PropTypes.oneOfType([PropTypes.bool.isRequired, PropTypes.number.isRequired, PropTypes.string.isRequired])
|
|
401
|
+
restrictWidth: PropTypes.oneOfType([PropTypes.bool.isRequired, PropTypes.number.isRequired, PropTypes.string.isRequired]),
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* Adds a bottom border to separate it from the content after;
|
|
405
|
+
* Passing `extended` will ensure the border touches the sides of the parent container.
|
|
406
|
+
*/
|
|
407
|
+
bottomBorder: PropTypes.oneOfType([PropTypes.bool.isRequired, PropTypes.oneOf(["extended"])])
|
|
518
408
|
}),
|
|
519
409
|
|
|
520
410
|
/**
|
|
@@ -527,7 +417,7 @@ EuiPageTemplate.propTypes = {
|
|
|
527
417
|
|
|
528
418
|
/**
|
|
529
419
|
* Sets the max-width of the page,
|
|
530
|
-
* set to `true` to use the default size of `
|
|
420
|
+
* set to `true` to use the default size of `1200px`,
|
|
531
421
|
* set to `false` to not restrict the width,
|
|
532
422
|
* set to a number for a custom width in px,
|
|
533
423
|
* set to a string for a custom width in custom measurement.
|
|
@@ -649,7 +539,7 @@ EuiPageTemplate.propTypes = {
|
|
|
649
539
|
|
|
650
540
|
/**
|
|
651
541
|
* Sets the max-width of the page,
|
|
652
|
-
* set to `true` to use the default size of `
|
|
542
|
+
* set to `true` to use the default size of `1200px`,
|
|
653
543
|
* set to `false` to not restrict the width,
|
|
654
544
|
* set to a number for a custom width in px,
|
|
655
545
|
* set to a string for a custom width in custom measurement.
|
|
@@ -680,7 +570,17 @@ EuiPageTemplate.propTypes = {
|
|
|
680
570
|
* Whether to wrap in an EuiPortal which appends the component to the body element.
|
|
681
571
|
* Only works if `position` is `fixed`.
|
|
682
572
|
*/
|
|
683
|
-
usePortal: PropTypes.bool,
|
|
573
|
+
usePortal: PropTypes.oneOfType([PropTypes.bool.isRequired, PropTypes.shape({
|
|
574
|
+
/**
|
|
575
|
+
* ReactNode to render as this component's content
|
|
576
|
+
*/
|
|
577
|
+
children: PropTypes.node.isRequired,
|
|
578
|
+
insert: PropTypes.shape({
|
|
579
|
+
sibling: PropTypes.any.isRequired,
|
|
580
|
+
position: PropTypes.oneOf(["before", "after"]).isRequired
|
|
581
|
+
}),
|
|
582
|
+
portalRef: PropTypes.func
|
|
583
|
+
}).isRequired]),
|
|
684
584
|
|
|
685
585
|
/**
|
|
686
586
|
* Whether the component should apply padding on the document body element to afford for its own displacement height.
|