@elastic/eui 63.0.3 → 63.0.6
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_charts_theme.js +330 -330
- package/dist/eui_charts_theme.js.map +1 -1
- package/es/components/description_list/description_list_title.js +1 -1
- package/es/components/header/header.js +2 -2
- package/es/components/page/page_content/page_content.js +1 -2
- package/es/components/page/page_content/page_content_body.js +1 -2
- package/es/components/page/page_content/page_content_header.js +1 -2
- package/es/components/page/page_content/page_content_header_section.js +1 -2
- package/es/components/page/page_section/page_section.js +10 -3
- package/es/components/page/page_side_bar/page_side_bar.js +1 -2
- package/es/components/page/page_sidebar/page_sidebar.js +8 -2
- package/es/components/page/page_template.js +3 -1
- package/es/components/page_template/empty_prompt/page_empty_prompt.js +5 -0
- package/es/components/page_template/page_template.js +10 -2
- package/eui.d.ts +14 -13
- package/lib/components/description_list/description_list_title.js +1 -1
- package/lib/components/header/header.js +2 -2
- package/lib/components/page/page_content/page_content.js +1 -2
- package/lib/components/page/page_content/page_content_body.js +1 -2
- package/lib/components/page/page_content/page_content_header.js +1 -2
- package/lib/components/page/page_content/page_content_header_section.js +1 -2
- package/lib/components/page/page_section/page_section.js +10 -3
- package/lib/components/page/page_side_bar/page_side_bar.js +1 -2
- package/lib/components/page/page_sidebar/page_sidebar.js +8 -2
- package/lib/components/page/page_template.js +3 -1
- package/lib/components/page_template/empty_prompt/page_empty_prompt.js +5 -0
- package/lib/components/page_template/page_template.js +10 -2
- package/optimize/es/components/description_list/description_list_title.js +1 -1
- package/optimize/es/components/header/header.js +2 -2
- package/optimize/es/components/page/page_content/page_content.js +1 -2
- package/optimize/es/components/page/page_content/page_content_body.js +1 -2
- package/optimize/es/components/page/page_content/page_content_header.js +1 -2
- package/optimize/es/components/page/page_content/page_content_header_section.js +1 -2
- package/optimize/es/components/page/page_section/page_section.js +4 -2
- package/optimize/es/components/page/page_side_bar/page_side_bar.js +1 -2
- package/optimize/es/components/page/page_sidebar/page_sidebar.js +8 -2
- package/optimize/es/components/page/page_template.js +3 -1
- package/optimize/es/components/page_template/page_template.js +3 -1
- package/optimize/lib/components/description_list/description_list_title.js +1 -1
- package/optimize/lib/components/header/header.js +2 -2
- package/optimize/lib/components/page/page_content/page_content.js +1 -2
- package/optimize/lib/components/page/page_content/page_content_body.js +1 -2
- package/optimize/lib/components/page/page_content/page_content_header.js +1 -2
- package/optimize/lib/components/page/page_content/page_content_header_section.js +1 -2
- package/optimize/lib/components/page/page_section/page_section.js +4 -2
- package/optimize/lib/components/page/page_side_bar/page_side_bar.js +1 -2
- package/optimize/lib/components/page/page_sidebar/page_sidebar.js +8 -2
- package/optimize/lib/components/page/page_template.js +3 -1
- package/optimize/lib/components/page_template/page_template.js +3 -1
- package/package.json +1 -1
- package/test-env/components/description_list/description_list_title.js +1 -1
- package/test-env/components/header/header.js +2 -2
- package/test-env/components/page/page_content/page_content.js +1 -2
- package/test-env/components/page/page_content/page_content_body.js +1 -2
- package/test-env/components/page/page_content/page_content_header.js +1 -2
- package/test-env/components/page/page_content/page_content_header_section.js +1 -2
- package/test-env/components/page/page_section/page_section.js +10 -3
- package/test-env/components/page/page_side_bar/page_side_bar.js +1 -2
- package/test-env/components/page/page_sidebar/page_sidebar.js +8 -2
- package/test-env/components/page/page_template.js +3 -1
- package/test-env/components/page_template/empty_prompt/page_empty_prompt.js +5 -0
- package/test-env/components/page_template/page_template.js +10 -2
|
@@ -46,7 +46,7 @@ var EuiDescriptionListTitle = function EuiDescriptionListTitle(_ref) {
|
|
|
46
46
|
|
|
47
47
|
var theme = (0, _services.useEuiTheme)();
|
|
48
48
|
var styles = (0, _description_list_title.euiDescriptionListTitleStyles)(theme);
|
|
49
|
-
var conditionalStyles = compressed && textStyle
|
|
49
|
+
var conditionalStyles = compressed && textStyle !== 'reverse' ? [styles.fontStyles.compressed] : [styles.fontStyles[textStyle]];
|
|
50
50
|
|
|
51
51
|
switch (type) {
|
|
52
52
|
case 'inline':
|
|
@@ -56,13 +56,13 @@ var EuiHeader = function EuiHeader(_ref) {
|
|
|
56
56
|
// Increment fixed header counter for each fixed header
|
|
57
57
|
euiHeaderFixedCounter++;
|
|
58
58
|
document.body.classList.add('euiBody--headerIsFixed');
|
|
59
|
-
document.body.
|
|
59
|
+
document.body.dataset.fixedHeaders = String(euiHeaderFixedCounter);
|
|
60
60
|
return function () {
|
|
61
61
|
// Both decrement the fixed counter AND then check if there are none
|
|
62
62
|
if (--euiHeaderFixedCounter === 0) {
|
|
63
63
|
// If there are none, THEN remove class
|
|
64
64
|
document.body.classList.remove('euiBody--headerIsFixed');
|
|
65
|
-
document.body.
|
|
65
|
+
delete document.body.dataset.fixedHeaders;
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
68
|
}
|
|
@@ -28,8 +28,7 @@ var horizontalPositionToClassNameMap = {
|
|
|
28
28
|
};
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
32
|
-
* Use EuiPageSection instead
|
|
31
|
+
* @deprecated Use EuiPageSection instead
|
|
33
32
|
*/
|
|
34
33
|
var EuiPageContent_Deprecated = function EuiPageContent_Deprecated(_ref) {
|
|
35
34
|
var verticalPosition = _ref.verticalPosition,
|
|
@@ -34,8 +34,7 @@ var PADDING_SIZES = (0, _common.keysOf)(paddingSizeToClassNameMap);
|
|
|
34
34
|
exports.PADDING_SIZES = PADDING_SIZES;
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
38
|
-
* Use EuiPageSection instead
|
|
37
|
+
* @deprecated Use EuiPageSection instead
|
|
39
38
|
*/
|
|
40
39
|
var EuiPageContentBody_Deprecated = function EuiPageContentBody_Deprecated(_ref) {
|
|
41
40
|
var children = _ref.children,
|
|
@@ -20,8 +20,7 @@ var _react2 = require("@emotion/react");
|
|
|
20
20
|
var _excluded = ["children", "className", "responsive"];
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
24
|
-
* Use EuiPageHeader instead
|
|
23
|
+
* @deprecated Use EuiPageHeader instead
|
|
25
24
|
*/
|
|
26
25
|
var EuiPageContentHeader_Deprecated = function EuiPageContentHeader_Deprecated(_ref) {
|
|
27
26
|
var children = _ref.children,
|
|
@@ -20,8 +20,7 @@ var _react2 = require("@emotion/react");
|
|
|
20
20
|
var _excluded = ["children", "className"];
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
24
|
-
* Use EuiPageHeader instead
|
|
23
|
+
* @deprecated Use EuiPageHeader instead
|
|
25
24
|
*/
|
|
26
25
|
var EuiPageContentHeaderSection_Deprecated = function EuiPageContentHeaderSection_Deprecated(_ref) {
|
|
27
26
|
var children = _ref.children,
|
|
@@ -23,7 +23,7 @@ var _global_styling = require("../../../global_styling");
|
|
|
23
23
|
|
|
24
24
|
var _react2 = require("@emotion/react");
|
|
25
25
|
|
|
26
|
-
var _excluded = ["children", "alignment", "restrictWidth", "bottomBorder", "paddingSize", "color", "grow", "contentProps"];
|
|
26
|
+
var _excluded = ["children", "alignment", "restrictWidth", "bottomBorder", "paddingSize", "color", "grow", "contentProps", "component"];
|
|
27
27
|
|
|
28
28
|
var EuiPageSection = function EuiPageSection(_ref) {
|
|
29
29
|
var children = _ref.children,
|
|
@@ -39,6 +39,8 @@ var EuiPageSection = function EuiPageSection(_ref) {
|
|
|
39
39
|
_ref$grow = _ref.grow,
|
|
40
40
|
grow = _ref$grow === void 0 ? false : _ref$grow,
|
|
41
41
|
contentProps = _ref.contentProps,
|
|
42
|
+
_ref$component = _ref.component,
|
|
43
|
+
Component = _ref$component === void 0 ? 'section' : _ref$component,
|
|
42
44
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
43
45
|
// Set max-width as a style prop
|
|
44
46
|
var widthStyles = (0, _restrict_width.setStyleForRestrictedPageWidth)(restrictWidth, contentProps === null || contentProps === void 0 ? void 0 : contentProps.style);
|
|
@@ -50,7 +52,7 @@ var EuiPageSection = function EuiPageSection(_ref) {
|
|
|
50
52
|
var cssStyles = [styles.euiPageSection, grow && styles.grow, inlinePadding[paddingSize], bottomBorder === 'extended' && styles.border, alignment && styles[alignment], colors[color]];
|
|
51
53
|
var contentStyles = (0, _page_section.euiPageSectionContentStyles)();
|
|
52
54
|
var cssContentStyles = [contentStyles.euiPageSection__content, blockPadding[paddingSize], bottomBorder === true && styles.border, alignment.toLowerCase().includes('center') && contentStyles.center, restrictWidth && contentStyles.restrictWidth];
|
|
53
|
-
return (0, _react2.jsx)(
|
|
55
|
+
return (0, _react2.jsx)(Component, (0, _extends2.default)({
|
|
54
56
|
css: cssStyles
|
|
55
57
|
}, rest), (0, _react2.jsx)("div", (0, _extends2.default)({
|
|
56
58
|
css: cssContentStyles
|
|
@@ -30,8 +30,7 @@ var PADDING_SIZES = (0, _common.keysOf)(paddingSizeToClassNameMap);
|
|
|
30
30
|
exports.PADDING_SIZES = PADDING_SIZES;
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
34
|
-
* Use the new EuiPageSidebar instead
|
|
33
|
+
* @deprecated Use the new EuiPageSidebar in page/page_sidebar instead
|
|
35
34
|
*/
|
|
36
35
|
var EuiPageSideBar_Deprecated = function EuiPageSideBar_Deprecated(_ref) {
|
|
37
36
|
var children = _ref.children,
|
|
@@ -63,11 +63,17 @@ var EuiPageSidebar = function EuiPageSidebar(_ref) {
|
|
|
63
63
|
setInlineStyles = _useState2[1];
|
|
64
64
|
|
|
65
65
|
(0, _react.useEffect)(function () {
|
|
66
|
+
var updatedStyles = _objectSpread(_objectSpread({}, style), (0, _global_styling.logicalStyle)('min-width', isResponding ? '100%' : minWidth));
|
|
67
|
+
|
|
66
68
|
if (sticky) {
|
|
67
|
-
var
|
|
69
|
+
var _document$body$datase;
|
|
70
|
+
|
|
71
|
+
var euiHeaderFixedCounter = Number((_document$body$datase = document.body.dataset.fixedHeaders) !== null && _document$body$datase !== void 0 ? _document$body$datase : 0);
|
|
68
72
|
var offset = (0, _typeof2.default)(sticky) === 'object' ? sticky === null || sticky === void 0 ? void 0 : sticky.offset : themeContext.euiTheme.base * 3 * euiHeaderFixedCounter;
|
|
69
|
-
|
|
73
|
+
updatedStyles = _objectSpread(_objectSpread(_objectSpread({}, updatedStyles), (0, _global_styling.logicalStyle)('top', offset)), (0, _global_styling.logicalStyle)('max-height', "calc(100vh - ".concat(offset, "px)")));
|
|
70
74
|
}
|
|
75
|
+
|
|
76
|
+
setInlineStyles(updatedStyles);
|
|
71
77
|
}, [style, sticky, themeContext.euiTheme.base, isResponding, minWidth]);
|
|
72
78
|
return (0, _react2.jsx)("div", (0, _extends2.default)({
|
|
73
79
|
className: className,
|
|
@@ -49,7 +49,9 @@ exports.TEMPLATES = TEMPLATES;
|
|
|
49
49
|
/**
|
|
50
50
|
* This component has been deprecated in favor of the new
|
|
51
51
|
* namespaced version. You can still import this component
|
|
52
|
-
*
|
|
52
|
+
* until August 2023 by importing `as EuiPageTemplate`.
|
|
53
|
+
*
|
|
54
|
+
* @deprecated use EuiPageTemplate from page_template/page_template instead
|
|
53
55
|
*/
|
|
54
56
|
var EuiPageTemplate_Deprecated = function EuiPageTemplate_Deprecated(_ref) {
|
|
55
57
|
var _pageBodyProps2;
|
|
@@ -95,7 +95,9 @@ var _EuiPageTemplate = function _EuiPageTemplate(_ref) {
|
|
|
95
95
|
});
|
|
96
96
|
(0, _react.useEffect)(function () {
|
|
97
97
|
if (_offset === undefined) {
|
|
98
|
-
var
|
|
98
|
+
var _document$body$datase;
|
|
99
|
+
|
|
100
|
+
var euiHeaderFixedCounter = Number((_document$body$datase = document.body.dataset.fixedHeaders) !== null && _document$body$datase !== void 0 ? _document$body$datase : 0);
|
|
99
101
|
setOffset(euiTheme.base * 3 * euiHeaderFixedCounter);
|
|
100
102
|
}
|
|
101
103
|
}, [_offset, euiTheme.base]); // Sections include page header
|
package/package.json
CHANGED
|
@@ -48,7 +48,7 @@ var EuiDescriptionListTitle = function EuiDescriptionListTitle(_ref) {
|
|
|
48
48
|
|
|
49
49
|
var theme = (0, _services.useEuiTheme)();
|
|
50
50
|
var styles = (0, _description_list_title.euiDescriptionListTitleStyles)(theme);
|
|
51
|
-
var conditionalStyles = compressed && textStyle
|
|
51
|
+
var conditionalStyles = compressed && textStyle !== 'reverse' ? [styles.fontStyles.compressed] : [styles.fontStyles[textStyle]];
|
|
52
52
|
|
|
53
53
|
switch (type) {
|
|
54
54
|
case 'inline':
|
|
@@ -58,13 +58,13 @@ var EuiHeader = function EuiHeader(_ref) {
|
|
|
58
58
|
// Increment fixed header counter for each fixed header
|
|
59
59
|
euiHeaderFixedCounter++;
|
|
60
60
|
document.body.classList.add('euiBody--headerIsFixed');
|
|
61
|
-
document.body.
|
|
61
|
+
document.body.dataset.fixedHeaders = String(euiHeaderFixedCounter);
|
|
62
62
|
return function () {
|
|
63
63
|
// Both decrement the fixed counter AND then check if there are none
|
|
64
64
|
if (--euiHeaderFixedCounter === 0) {
|
|
65
65
|
// If there are none, THEN remove class
|
|
66
66
|
document.body.classList.remove('euiBody--headerIsFixed');
|
|
67
|
-
document.body.
|
|
67
|
+
delete document.body.dataset.fixedHeaders;
|
|
68
68
|
}
|
|
69
69
|
};
|
|
70
70
|
}
|
|
@@ -30,8 +30,7 @@ var horizontalPositionToClassNameMap = {
|
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
34
|
-
* Use EuiPageSection instead
|
|
33
|
+
* @deprecated Use EuiPageSection instead
|
|
35
34
|
*/
|
|
36
35
|
var EuiPageContent_Deprecated = function EuiPageContent_Deprecated(_ref) {
|
|
37
36
|
var verticalPosition = _ref.verticalPosition,
|
|
@@ -36,8 +36,7 @@ var PADDING_SIZES = (0, _common.keysOf)(paddingSizeToClassNameMap);
|
|
|
36
36
|
exports.PADDING_SIZES = PADDING_SIZES;
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
40
|
-
* Use EuiPageSection instead
|
|
39
|
+
* @deprecated Use EuiPageSection instead
|
|
41
40
|
*/
|
|
42
41
|
var EuiPageContentBody_Deprecated = function EuiPageContentBody_Deprecated(_ref) {
|
|
43
42
|
var children = _ref.children,
|
|
@@ -22,8 +22,7 @@ var _react2 = require("@emotion/react");
|
|
|
22
22
|
var _excluded = ["children", "className", "responsive"];
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
26
|
-
* Use EuiPageHeader instead
|
|
25
|
+
* @deprecated Use EuiPageHeader instead
|
|
27
26
|
*/
|
|
28
27
|
var EuiPageContentHeader_Deprecated = function EuiPageContentHeader_Deprecated(_ref) {
|
|
29
28
|
var children = _ref.children,
|
|
@@ -22,8 +22,7 @@ var _react2 = require("@emotion/react");
|
|
|
22
22
|
var _excluded = ["children", "className"];
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
26
|
-
* Use EuiPageHeader instead
|
|
25
|
+
* @deprecated Use EuiPageHeader instead
|
|
27
26
|
*/
|
|
28
27
|
var EuiPageContentHeaderSection_Deprecated = function EuiPageContentHeaderSection_Deprecated(_ref) {
|
|
29
28
|
var children = _ref.children,
|
|
@@ -25,7 +25,7 @@ var _global_styling = require("../../../global_styling");
|
|
|
25
25
|
|
|
26
26
|
var _react2 = require("@emotion/react");
|
|
27
27
|
|
|
28
|
-
var _excluded = ["children", "alignment", "restrictWidth", "bottomBorder", "paddingSize", "color", "grow", "contentProps"];
|
|
28
|
+
var _excluded = ["children", "alignment", "restrictWidth", "bottomBorder", "paddingSize", "color", "grow", "contentProps", "component"];
|
|
29
29
|
|
|
30
30
|
var EuiPageSection = function EuiPageSection(_ref) {
|
|
31
31
|
var children = _ref.children,
|
|
@@ -41,6 +41,8 @@ var EuiPageSection = function EuiPageSection(_ref) {
|
|
|
41
41
|
_ref$grow = _ref.grow,
|
|
42
42
|
grow = _ref$grow === void 0 ? false : _ref$grow,
|
|
43
43
|
contentProps = _ref.contentProps,
|
|
44
|
+
_ref$component = _ref.component,
|
|
45
|
+
Component = _ref$component === void 0 ? 'section' : _ref$component,
|
|
44
46
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
45
47
|
// Set max-width as a style prop
|
|
46
48
|
var widthStyles = (0, _restrict_width.setStyleForRestrictedPageWidth)(restrictWidth, contentProps === null || contentProps === void 0 ? void 0 : contentProps.style);
|
|
@@ -52,7 +54,7 @@ var EuiPageSection = function EuiPageSection(_ref) {
|
|
|
52
54
|
var cssStyles = [styles.euiPageSection, grow && styles.grow, inlinePadding[paddingSize], bottomBorder === 'extended' && styles.border, alignment && styles[alignment], colors[color]];
|
|
53
55
|
var contentStyles = (0, _page_section.euiPageSectionContentStyles)();
|
|
54
56
|
var cssContentStyles = [contentStyles.euiPageSection__content, blockPadding[paddingSize], bottomBorder === true && styles.border, alignment.toLowerCase().includes('center') && contentStyles.center, restrictWidth && contentStyles.restrictWidth];
|
|
55
|
-
return (0, _react2.jsx)(
|
|
57
|
+
return (0, _react2.jsx)(Component, (0, _extends2.default)({
|
|
56
58
|
css: cssStyles
|
|
57
59
|
}, rest), (0, _react2.jsx)("div", (0, _extends2.default)({
|
|
58
60
|
css: cssContentStyles
|
|
@@ -106,5 +108,10 @@ EuiPageSection.propTypes = {
|
|
|
106
108
|
/**
|
|
107
109
|
* Passed down to the div wrapper of the section contents
|
|
108
110
|
*/
|
|
109
|
-
contentProps: _propTypes.default.any
|
|
111
|
+
contentProps: _propTypes.default.any,
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Sets which HTML element to render.
|
|
115
|
+
*/
|
|
116
|
+
component: _propTypes.default.oneOfType([_propTypes.default.any.isRequired, _propTypes.default.elementType.isRequired])
|
|
110
117
|
};
|
|
@@ -32,8 +32,7 @@ var PADDING_SIZES = (0, _common.keysOf)(paddingSizeToClassNameMap);
|
|
|
32
32
|
exports.PADDING_SIZES = PADDING_SIZES;
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
36
|
-
* Use the new EuiPageSidebar instead
|
|
35
|
+
* @deprecated Use the new EuiPageSidebar in page/page_sidebar instead
|
|
37
36
|
*/
|
|
38
37
|
var EuiPageSideBar_Deprecated = function EuiPageSideBar_Deprecated(_ref) {
|
|
39
38
|
var children = _ref.children,
|
|
@@ -65,11 +65,17 @@ var EuiPageSidebar = function EuiPageSidebar(_ref) {
|
|
|
65
65
|
setInlineStyles = _useState2[1];
|
|
66
66
|
|
|
67
67
|
(0, _react.useEffect)(function () {
|
|
68
|
+
var updatedStyles = _objectSpread(_objectSpread({}, style), (0, _global_styling.logicalStyle)('min-width', isResponding ? '100%' : minWidth));
|
|
69
|
+
|
|
68
70
|
if (sticky) {
|
|
69
|
-
var
|
|
71
|
+
var _document$body$datase;
|
|
72
|
+
|
|
73
|
+
var euiHeaderFixedCounter = Number((_document$body$datase = document.body.dataset.fixedHeaders) !== null && _document$body$datase !== void 0 ? _document$body$datase : 0);
|
|
70
74
|
var offset = (0, _typeof2.default)(sticky) === 'object' ? sticky === null || sticky === void 0 ? void 0 : sticky.offset : themeContext.euiTheme.base * 3 * euiHeaderFixedCounter;
|
|
71
|
-
|
|
75
|
+
updatedStyles = _objectSpread(_objectSpread(_objectSpread({}, updatedStyles), (0, _global_styling.logicalStyle)('top', offset)), (0, _global_styling.logicalStyle)('max-height', "calc(100vh - ".concat(offset, "px)")));
|
|
72
76
|
}
|
|
77
|
+
|
|
78
|
+
setInlineStyles(updatedStyles);
|
|
73
79
|
}, [style, sticky, themeContext.euiTheme.base, isResponding, minWidth]);
|
|
74
80
|
return (0, _react2.jsx)("div", (0, _extends2.default)({
|
|
75
81
|
className: className,
|
|
@@ -51,7 +51,9 @@ exports.TEMPLATES = TEMPLATES;
|
|
|
51
51
|
/**
|
|
52
52
|
* This component has been deprecated in favor of the new
|
|
53
53
|
* namespaced version. You can still import this component
|
|
54
|
-
*
|
|
54
|
+
* until August 2023 by importing `as EuiPageTemplate`.
|
|
55
|
+
*
|
|
56
|
+
* @deprecated use EuiPageTemplate from page_template/page_template instead
|
|
55
57
|
*/
|
|
56
58
|
var EuiPageTemplate_Deprecated = function EuiPageTemplate_Deprecated(_ref) {
|
|
57
59
|
var _pageBodyProps2;
|
|
@@ -110,5 +110,10 @@ _EuiPageEmptyPrompt.propTypes = {
|
|
|
110
110
|
* Passed down to the div wrapper of the section contents
|
|
111
111
|
*/
|
|
112
112
|
contentProps: _propTypes.default.any,
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Sets which HTML element to render.
|
|
116
|
+
*/
|
|
117
|
+
component: _propTypes.default.oneOfType([_propTypes.default.any.isRequired, _propTypes.default.elementType.isRequired]),
|
|
113
118
|
panelled: _propTypes.default.bool
|
|
114
119
|
};
|
|
@@ -97,7 +97,9 @@ var _EuiPageTemplate = function _EuiPageTemplate(_ref) {
|
|
|
97
97
|
});
|
|
98
98
|
(0, _react.useEffect)(function () {
|
|
99
99
|
if (_offset === undefined) {
|
|
100
|
-
var
|
|
100
|
+
var _document$body$datase;
|
|
101
|
+
|
|
102
|
+
var euiHeaderFixedCounter = Number((_document$body$datase = document.body.dataset.fixedHeaders) !== null && _document$body$datase !== void 0 ? _document$body$datase : 0);
|
|
101
103
|
setOffset(euiTheme.base * 3 * euiHeaderFixedCounter);
|
|
102
104
|
}
|
|
103
105
|
}, [_offset, euiTheme.base]); // Sections include page header
|
|
@@ -304,7 +306,12 @@ _EuiPageSection.propTypes = {
|
|
|
304
306
|
/**
|
|
305
307
|
* Passed down to the div wrapper of the section contents
|
|
306
308
|
*/
|
|
307
|
-
contentProps: _propTypes.default.any
|
|
309
|
+
contentProps: _propTypes.default.any,
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* Sets which HTML element to render.
|
|
313
|
+
*/
|
|
314
|
+
component: _propTypes.default.oneOfType([_propTypes.default.any.isRequired, _propTypes.default.elementType.isRequired])
|
|
308
315
|
};
|
|
309
316
|
|
|
310
317
|
var _EuiPageHeader = function _EuiPageHeader(props) {
|
|
@@ -352,6 +359,7 @@ _EuiPageEmptyPrompt.propTypes = {
|
|
|
352
359
|
alignment: _propTypes.default.any,
|
|
353
360
|
grow: _propTypes.default.bool,
|
|
354
361
|
contentProps: _propTypes.default.any,
|
|
362
|
+
component: _propTypes.default.oneOfType([_propTypes.default.any.isRequired, _propTypes.default.elementType.isRequired]),
|
|
355
363
|
panelled: _propTypes.default.bool
|
|
356
364
|
};
|
|
357
365
|
|