@elastic/eui 66.0.0 → 67.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.
Files changed (196) hide show
  1. package/dist/eui_theme_dark.css +0 -247
  2. package/dist/eui_theme_dark.json +0 -6
  3. package/dist/eui_theme_dark.json.d.ts +0 -6
  4. package/dist/eui_theme_dark.min.css +1 -1
  5. package/dist/eui_theme_light.css +0 -247
  6. package/dist/eui_theme_light.json +0 -6
  7. package/dist/eui_theme_light.json.d.ts +0 -6
  8. package/dist/eui_theme_light.min.css +1 -1
  9. package/es/components/button/button_display/_button_display.js +10 -1
  10. package/es/components/button/button_empty/button_empty.js +10 -1
  11. package/es/components/collapsible_nav/collapsible_nav.js +0 -5
  12. package/es/components/date_picker/auto_refresh/auto_refresh.js +6 -1
  13. package/es/components/date_picker/super_date_picker/date_popover/date_popover_button.js +6 -2
  14. package/es/components/expression/expression.js +12 -2
  15. package/es/components/header/header_links/header_link.js +10 -1
  16. package/es/components/image/image.js +6 -1
  17. package/es/components/image/image_fullscreen_wrapper.js +2 -3
  18. package/es/components/notification/notification_event.js +24 -5
  19. package/es/components/overlay_mask/overlay_mask.js +27 -65
  20. package/es/components/overlay_mask/overlay_mask.styles.js +28 -0
  21. package/es/components/page/page_content/page_content.js +1 -2
  22. package/es/components/page/page_content/page_content_body.js +1 -2
  23. package/es/components/page/page_content/page_content_header.js +1 -2
  24. package/es/components/page/page_content/page_content_header_section.js +1 -2
  25. package/es/components/page/page_section/page_section.js +15 -3
  26. package/es/components/page/page_side_bar/page_side_bar.js +1 -2
  27. package/es/components/page/page_template.js +3 -1
  28. package/es/components/page_template/empty_prompt/page_empty_prompt.js +11 -1
  29. package/es/components/page_template/page_template.js +18 -2
  30. package/es/components/pagination/pagination.js +17 -4
  31. package/es/components/pagination/pagination.styles.js +31 -0
  32. package/es/components/pagination/pagination_button.js +17 -5
  33. package/es/components/pagination/pagination_button.styles.js +30 -0
  34. package/es/components/pagination/pagination_button_arrow.js +5 -0
  35. package/es/components/progress/progress.js +6 -1
  36. package/es/components/provider/cache/cache_provider.js +3 -9
  37. package/es/components/provider/provider.js +25 -2
  38. package/es/components/resizable_container/resizable_panel.js +6 -1
  39. package/es/components/side_nav/side_nav.js +5 -0
  40. package/es/components/suggest/suggest.js +10 -1
  41. package/es/components/tool_tip/tool_tip.js +42 -66
  42. package/es/components/tool_tip/tool_tip.styles.js +107 -0
  43. package/es/components/tool_tip/tool_tip_anchor.js +73 -0
  44. package/es/components/tool_tip/tool_tip_arrow.js +20 -0
  45. package/es/components/tool_tip/tool_tip_popover.js +48 -101
  46. package/es/global_styling/index.js +2 -1
  47. package/es/global_styling/utility/animations.js +13 -0
  48. package/eui.d.ts +128 -51
  49. package/i18ntokens.json +54 -54
  50. package/lib/components/button/button_display/_button_display.js +10 -1
  51. package/lib/components/button/button_empty/button_empty.js +10 -1
  52. package/lib/components/collapsible_nav/collapsible_nav.js +0 -5
  53. package/lib/components/date_picker/auto_refresh/auto_refresh.js +6 -1
  54. package/lib/components/date_picker/super_date_picker/date_popover/date_popover_button.js +6 -1
  55. package/lib/components/expression/expression.js +12 -2
  56. package/lib/components/header/header_links/header_link.js +10 -1
  57. package/lib/components/image/image.js +6 -1
  58. package/lib/components/image/image_fullscreen_wrapper.js +2 -3
  59. package/lib/components/notification/notification_event.js +27 -8
  60. package/lib/components/overlay_mask/overlay_mask.js +27 -65
  61. package/lib/components/overlay_mask/overlay_mask.styles.js +34 -0
  62. package/lib/components/page/page_content/page_content.js +1 -2
  63. package/lib/components/page/page_content/page_content_body.js +1 -2
  64. package/lib/components/page/page_content/page_content_header.js +1 -2
  65. package/lib/components/page/page_content/page_content_header_section.js +1 -2
  66. package/lib/components/page/page_section/page_section.js +15 -3
  67. package/lib/components/page/page_side_bar/page_side_bar.js +1 -2
  68. package/lib/components/page/page_template.js +3 -1
  69. package/lib/components/page_template/empty_prompt/page_empty_prompt.js +11 -1
  70. package/lib/components/page_template/page_template.js +18 -2
  71. package/lib/components/pagination/pagination.js +18 -3
  72. package/lib/components/pagination/pagination.styles.js +34 -0
  73. package/lib/components/pagination/pagination_button.js +9 -4
  74. package/lib/components/pagination/pagination_button.styles.js +45 -0
  75. package/lib/components/pagination/pagination_button_arrow.js +7 -0
  76. package/lib/components/progress/progress.js +6 -1
  77. package/lib/components/provider/cache/cache_provider.js +3 -11
  78. package/lib/components/provider/provider.js +31 -6
  79. package/lib/components/resizable_container/resizable_panel.js +6 -1
  80. package/lib/components/side_nav/side_nav.js +5 -0
  81. package/lib/components/suggest/suggest.js +10 -1
  82. package/lib/components/tool_tip/tool_tip.js +43 -64
  83. package/lib/components/tool_tip/tool_tip.styles.js +123 -0
  84. package/lib/components/tool_tip/tool_tip_anchor.js +87 -0
  85. package/lib/components/tool_tip/tool_tip_arrow.js +28 -0
  86. package/lib/components/tool_tip/tool_tip_popover.js +49 -98
  87. package/lib/global_styling/index.js +13 -0
  88. package/lib/global_styling/utility/animations.js +15 -0
  89. package/optimize/es/components/date_picker/super_date_picker/date_popover/date_popover_button.js +0 -1
  90. package/optimize/es/components/image/image_fullscreen_wrapper.js +2 -3
  91. package/optimize/es/components/notification/notification_event.js +10 -4
  92. package/optimize/es/components/overlay_mask/overlay_mask.js +27 -60
  93. package/optimize/es/components/overlay_mask/overlay_mask.styles.js +28 -0
  94. package/optimize/es/components/page/page_content/page_content.js +1 -2
  95. package/optimize/es/components/page/page_content/page_content_body.js +1 -2
  96. package/optimize/es/components/page/page_content/page_content_header.js +1 -2
  97. package/optimize/es/components/page/page_content/page_content_header_section.js +1 -2
  98. package/optimize/es/components/page/page_section/page_section.js +4 -2
  99. package/optimize/es/components/page/page_side_bar/page_side_bar.js +1 -2
  100. package/optimize/es/components/page/page_template.js +3 -1
  101. package/optimize/es/components/pagination/pagination.js +17 -4
  102. package/optimize/es/components/pagination/pagination.styles.js +31 -0
  103. package/optimize/es/components/pagination/pagination_button.js +7 -4
  104. package/optimize/es/components/pagination/pagination_button.styles.js +30 -0
  105. package/optimize/es/components/pagination/pagination_button_arrow.js +5 -0
  106. package/optimize/es/components/provider/cache/cache_provider.js +3 -9
  107. package/optimize/es/components/provider/provider.js +25 -2
  108. package/optimize/es/components/suggest/suggest.js +4 -1
  109. package/optimize/es/components/tool_tip/tool_tip.js +42 -66
  110. package/optimize/es/components/tool_tip/tool_tip.styles.js +107 -0
  111. package/optimize/es/components/tool_tip/tool_tip_anchor.js +60 -0
  112. package/optimize/es/components/tool_tip/tool_tip_arrow.js +20 -0
  113. package/optimize/es/components/tool_tip/tool_tip_popover.js +46 -87
  114. package/optimize/es/global_styling/index.js +2 -1
  115. package/optimize/es/global_styling/utility/animations.js +13 -0
  116. package/optimize/lib/components/image/image_fullscreen_wrapper.js +2 -3
  117. package/optimize/lib/components/notification/notification_event.js +11 -11
  118. package/optimize/lib/components/overlay_mask/overlay_mask.js +27 -59
  119. package/optimize/lib/components/overlay_mask/overlay_mask.styles.js +34 -0
  120. package/optimize/lib/components/page/page_content/page_content.js +1 -2
  121. package/optimize/lib/components/page/page_content/page_content_body.js +1 -2
  122. package/optimize/lib/components/page/page_content/page_content_header.js +1 -2
  123. package/optimize/lib/components/page/page_content/page_content_header_section.js +1 -2
  124. package/optimize/lib/components/page/page_section/page_section.js +4 -2
  125. package/optimize/lib/components/page/page_side_bar/page_side_bar.js +1 -2
  126. package/optimize/lib/components/page/page_template.js +3 -1
  127. package/optimize/lib/components/pagination/pagination.js +18 -3
  128. package/optimize/lib/components/pagination/pagination.styles.js +34 -0
  129. package/optimize/lib/components/pagination/pagination_button.js +9 -4
  130. package/optimize/lib/components/pagination/pagination_button.styles.js +45 -0
  131. package/optimize/lib/components/pagination/pagination_button_arrow.js +7 -0
  132. package/optimize/lib/components/provider/cache/cache_provider.js +3 -11
  133. package/optimize/lib/components/provider/provider.js +31 -6
  134. package/optimize/lib/components/suggest/suggest.js +4 -1
  135. package/optimize/lib/components/tool_tip/tool_tip.js +42 -64
  136. package/optimize/lib/components/tool_tip/tool_tip.styles.js +125 -0
  137. package/optimize/lib/components/tool_tip/tool_tip_anchor.js +75 -0
  138. package/optimize/lib/components/tool_tip/tool_tip_arrow.js +35 -0
  139. package/optimize/lib/components/tool_tip/tool_tip_popover.js +47 -88
  140. package/optimize/lib/global_styling/index.js +13 -0
  141. package/optimize/lib/global_styling/utility/animations.js +17 -0
  142. package/package.json +2 -2
  143. package/src/components/index.scss +0 -4
  144. package/src/global_styling/mixins/_tool_tip.scss +3 -6
  145. package/src/themes/amsterdam/overrides/_index.scss +0 -2
  146. package/test-env/components/button/button_display/_button_display.js +10 -1
  147. package/test-env/components/button/button_empty/button_empty.js +10 -1
  148. package/test-env/components/collapsible_nav/collapsible_nav.js +0 -5
  149. package/test-env/components/date_picker/auto_refresh/auto_refresh.js +6 -1
  150. package/test-env/components/date_picker/super_date_picker/date_popover/date_popover_button.js +6 -1
  151. package/test-env/components/expression/expression.js +12 -2
  152. package/test-env/components/header/header_links/header_link.js +10 -1
  153. package/test-env/components/image/image.js +6 -1
  154. package/test-env/components/image/image_fullscreen_wrapper.js +2 -3
  155. package/test-env/components/notification/notification_event.js +24 -15
  156. package/test-env/components/overlay_mask/overlay_mask.js +27 -64
  157. package/test-env/components/overlay_mask/overlay_mask.styles.js +34 -0
  158. package/test-env/components/page/page_content/page_content.js +1 -2
  159. package/test-env/components/page/page_content/page_content_body.js +1 -2
  160. package/test-env/components/page/page_content/page_content_header.js +1 -2
  161. package/test-env/components/page/page_content/page_content_header_section.js +1 -2
  162. package/test-env/components/page/page_section/page_section.js +15 -3
  163. package/test-env/components/page/page_side_bar/page_side_bar.js +1 -2
  164. package/test-env/components/page/page_template.js +3 -1
  165. package/test-env/components/page_template/empty_prompt/page_empty_prompt.js +11 -1
  166. package/test-env/components/page_template/page_template.js +18 -2
  167. package/test-env/components/pagination/pagination.js +18 -3
  168. package/test-env/components/pagination/pagination.styles.js +34 -0
  169. package/test-env/components/pagination/pagination_button.js +9 -4
  170. package/test-env/components/pagination/pagination_button.styles.js +45 -0
  171. package/test-env/components/pagination/pagination_button_arrow.js +7 -0
  172. package/test-env/components/progress/progress.js +6 -1
  173. package/test-env/components/provider/cache/cache_provider.js +3 -11
  174. package/test-env/components/provider/provider.js +31 -6
  175. package/test-env/components/resizable_container/resizable_panel.js +6 -1
  176. package/test-env/components/side_nav/side_nav.js +5 -0
  177. package/test-env/components/suggest/suggest.js +10 -1
  178. package/test-env/components/tool_tip/tool_tip.js +42 -64
  179. package/test-env/components/tool_tip/tool_tip.styles.js +125 -0
  180. package/test-env/components/tool_tip/tool_tip_anchor.js +84 -0
  181. package/test-env/components/tool_tip/tool_tip_arrow.js +35 -0
  182. package/test-env/components/tool_tip/tool_tip_popover.js +49 -89
  183. package/test-env/global_styling/index.js +13 -0
  184. package/test-env/global_styling/utility/animations.js +17 -0
  185. package/src/components/call_out/_index.scss +0 -3
  186. package/src/components/call_out/_mixins.scss +0 -23
  187. package/src/components/call_out/_variables.scss +0 -7
  188. package/src/components/overlay_mask/_index.scss +0 -1
  189. package/src/components/overlay_mask/_overlay_mask.scss +0 -33
  190. package/src/components/pagination/_index.scss +0 -2
  191. package/src/components/pagination/_pagination.scss +0 -30
  192. package/src/components/pagination/_pagination_button.scss +0 -37
  193. package/src/components/tool_tip/_index.scss +0 -1
  194. package/src/components/tool_tip/_tool_tip.scss +0 -121
  195. package/src/themes/amsterdam/overrides/_overlay_mask.scss +0 -3
  196. package/src/themes/amsterdam/overrides/_tooltip.scss +0 -7
@@ -1,6 +1,4 @@
1
- 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); }
2
-
3
- var _excluded = ["children", "title", "className", "positionToolTip", "popoverRef"];
1
+ var _excluded = ["children", "title", "className", "positionToolTip", "popoverRef", "calculatedPosition"];
4
2
 
5
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); }
6
4
 
@@ -8,28 +6,6 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
8
6
 
9
7
  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; }
10
8
 
11
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
12
-
13
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
14
-
15
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
16
-
17
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
18
-
19
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
20
-
21
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
22
-
23
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
24
-
25
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
26
-
27
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
28
-
29
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
30
-
31
- 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; }
32
-
33
9
  /*
34
10
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
35
11
  * or more contributor license agreements. Licensed under the Elastic License
@@ -37,89 +13,59 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
37
13
  * in compliance with, at your election, the Elastic License 2.0 or the Server
38
14
  * Side Public License, v 1.
39
15
  */
40
- import React, { Component } from 'react';
16
+ import React, { useEffect, useRef, useCallback } from 'react';
41
17
  import PropTypes from "prop-types";
42
18
  import classNames from 'classnames';
19
+ import { useEuiTheme } from '../../services';
20
+ import { euiToolTipStyles, euiToolTipPopoverStyles } from './tool_tip.styles';
43
21
  import { jsx as ___EmotionJSX } from "@emotion/react";
44
- export var EuiToolTipPopover = /*#__PURE__*/function (_Component) {
45
- _inherits(EuiToolTipPopover, _Component);
46
-
47
- var _super = _createSuper(EuiToolTipPopover);
48
-
49
- function EuiToolTipPopover() {
50
- var _this;
51
-
52
- _classCallCheck(this, EuiToolTipPopover);
53
-
54
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
55
- args[_key] = arguments[_key];
56
- }
57
-
58
- _this = _super.call.apply(_super, [this].concat(args));
59
-
60
- _defineProperty(_assertThisInitialized(_this), "popover", void 0);
61
-
62
- _defineProperty(_assertThisInitialized(_this), "updateDimensions", function () {
63
- requestAnimationFrame(function () {
64
- // Because of this delay, sometimes `positionToolTip` becomes unavailable.
65
- if (_this.popover) {
66
- _this.props.positionToolTip();
67
- }
68
- });
69
- });
70
-
71
- _defineProperty(_assertThisInitialized(_this), "setPopoverRef", function (ref) {
72
- _this.popover = ref;
73
-
74
- if (_this.props.popoverRef) {
75
- _this.props.popoverRef(ref);
22
+ export var EuiToolTipPopover = function EuiToolTipPopover(_ref) {
23
+ var children = _ref.children,
24
+ title = _ref.title,
25
+ className = _ref.className,
26
+ positionToolTip = _ref.positionToolTip,
27
+ popoverRef = _ref.popoverRef,
28
+ calculatedPosition = _ref.calculatedPosition,
29
+ rest = _objectWithoutProperties(_ref, _excluded);
30
+
31
+ var popover = useRef();
32
+ var euiTheme = useEuiTheme();
33
+ var toolTipCss = euiToolTipStyles(euiTheme);
34
+ var popoverStyles = euiToolTipPopoverStyles(euiTheme);
35
+ var titleCss = [popoverStyles.euiToolTip__title];
36
+ var updateDimensions = useCallback(function () {
37
+ requestAnimationFrame(function () {
38
+ // Because of this delay, sometimes `positionToolTip` becomes unavailable.
39
+ if (popover.current) {
40
+ positionToolTip();
76
41
  }
77
42
  });
43
+ }, [positionToolTip]);
78
44
 
79
- return _this;
80
- }
81
-
82
- _createClass(EuiToolTipPopover, [{
83
- key: "componentDidMount",
84
- value: function componentDidMount() {
85
- document.body.classList.add('euiBody-hasPortalContent');
86
- window.addEventListener('resize', this.updateDimensions);
45
+ var setPopoverRef = function setPopoverRef(ref) {
46
+ if (popoverRef) {
47
+ popoverRef(ref);
87
48
  }
88
- }, {
89
- key: "componentWillUnmount",
90
- value: function componentWillUnmount() {
91
- document.body.classList.remove('euiBody-hasPortalContent');
92
- window.removeEventListener('resize', this.updateDimensions);
93
- }
94
- }, {
95
- key: "render",
96
- value: function render() {
97
- var _this$props = this.props,
98
- children = _this$props.children,
99
- title = _this$props.title,
100
- className = _this$props.className,
101
- positionToolTip = _this$props.positionToolTip,
102
- popoverRef = _this$props.popoverRef,
103
- rest = _objectWithoutProperties(_this$props, _excluded);
104
-
105
- var classes = classNames('euiToolTipPopover', className);
106
- var optionalTitle;
107
-
108
- if (title) {
109
- optionalTitle = ___EmotionJSX("div", {
110
- className: "euiToolTip__title"
111
- }, title);
112
- }
113
-
114
- return ___EmotionJSX("div", _extends({
115
- className: classes,
116
- ref: this.setPopoverRef
117
- }, rest), optionalTitle, children);
118
- }
119
- }]);
49
+ };
120
50
 
121
- return EuiToolTipPopover;
122
- }(Component);
51
+ useEffect(function () {
52
+ document.body.classList.add('euiBody-hasPortalContent');
53
+ window.addEventListener('resize', updateDimensions);
54
+ return function () {
55
+ document.body.classList.remove('euiBody-hasPortalContent');
56
+ window.removeEventListener('resize', updateDimensions);
57
+ };
58
+ }, [updateDimensions]);
59
+ var classes = classNames('euiToolTipPopover', className);
60
+ return ___EmotionJSX("div", _extends({
61
+ css: [toolTipCss.euiToolTip, calculatedPosition && toolTipCss[calculatedPosition], ";label:EuiToolTipPopover;"],
62
+ className: classes,
63
+ ref: setPopoverRef
64
+ }, rest), title && ___EmotionJSX("div", {
65
+ css: titleCss,
66
+ className: "euiToolTip__title"
67
+ }, title), children);
68
+ };
123
69
  EuiToolTipPopover.propTypes = {
124
70
  className: PropTypes.string,
125
71
  "aria-label": PropTypes.string,
@@ -128,5 +74,6 @@ EuiToolTipPopover.propTypes = {
128
74
  positionToolTip: PropTypes.func.isRequired,
129
75
  children: PropTypes.node,
130
76
  title: PropTypes.node,
131
- popoverRef: PropTypes.func
77
+ popoverRef: PropTypes.func,
78
+ calculatedPosition: PropTypes.oneOf(["top", "right", "bottom", "left"])
132
79
  };
@@ -8,4 +8,5 @@
8
8
  export * from './reset/global_styles';
9
9
  export * from './functions';
10
10
  export * from './variables';
11
- export * from './mixins';
11
+ export * from './mixins';
12
+ export * from './utility/animations';
@@ -0,0 +1,13 @@
1
+ var _templateObject;
2
+
3
+ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
4
+
5
+ /*
6
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
7
+ * or more contributor license agreements. Licensed under the Elastic License
8
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
9
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
10
+ * Side Public License, v 1.
11
+ */
12
+ import { keyframes } from '@emotion/react';
13
+ export var euiAnimFadeIn = keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n"])));
package/eui.d.ts CHANGED
@@ -2050,7 +2050,7 @@ declare module '@elastic/eui/src/components/button/button_display/_button_displa
2050
2050
  /**
2051
2051
  * Object of props passed to the <span/> wrapping the button's content
2052
2052
  */
2053
- contentProps?: EuiButtonDisplayContentType;
2053
+ contentProps?: CommonProps & EuiButtonDisplayContentType;
2054
2054
  style?: CSSProperties;
2055
2055
  }
2056
2056
  export type EuiButtonDisplayPropsForAnchor = PropsForAnchor<EuiButtonDisplayCommonProps, {
@@ -2216,7 +2216,7 @@ declare module '@elastic/eui/src/components/button/button_empty/button_empty' {
2216
2216
  /**
2217
2217
  * Object of props passed to the <span/> wrapping the button's content
2218
2218
  */
2219
- contentProps?: EuiButtonContentType;
2219
+ contentProps?: CommonProps & EuiButtonContentType;
2220
2220
  } type EuiButtonEmptyPropsForAnchor = PropsForAnchor<CommonEuiButtonEmptyProps>; type EuiButtonEmptyPropsForButton = PropsForButton<CommonEuiButtonEmptyProps>;
2221
2221
  export type EuiButtonEmptyProps = ExclusiveUnion<EuiButtonEmptyPropsForAnchor, EuiButtonEmptyPropsForButton>;
2222
2222
  export const EuiButtonEmpty: FunctionComponent<EuiButtonEmptyProps>;
@@ -3474,7 +3474,7 @@ declare module '@elastic/eui/src/components/progress/progress' {
3474
3474
  /**
3475
3475
  * Object of props passed to the <span/> wrapping the determinate progress's label
3476
3476
  */
3477
- labelProps?: HTMLAttributes<HTMLSpanElement>;
3477
+ labelProps?: CommonProps & HTMLAttributes<HTMLSpanElement>;
3478
3478
  };
3479
3479
  export const EuiProgress: FunctionComponent<ExclusiveUnion<Determinate, Indeterminate>>;
3480
3480
  export {};
@@ -5239,30 +5239,69 @@ declare module '@elastic/eui/src/components/form/super_select/super_select_contr
5239
5239
  }
5240
5240
  export const EuiSuperSelectControl: <T extends string>(props: EuiSuperSelectControlProps<T>) => ReturnType<FunctionComponent<EuiSuperSelectControlProps<T>>>;
5241
5241
 
5242
+ }
5243
+ declare module '@elastic/eui/src/themes/amsterdam' {
5244
+ export * from '@elastic/eui/src/themes/amsterdam/global_styling/mixins/shadow';
5245
+
5246
+ }
5247
+ declare module '@elastic/eui/src/components/tool_tip/tool_tip.styles' {
5248
+ import { UseEuiTheme } from '@elastic/eui/src/services';
5249
+ export const euiToolTipBackgroundColor: (euiTheme: UseEuiTheme['euiTheme'], colorMode: UseEuiTheme['colorMode']) => string;
5250
+ export const euiToolTipBorderColor: (euiTheme: UseEuiTheme['euiTheme'], colorMode: UseEuiTheme['colorMode']) => string;
5251
+ export const euiToolTipStyles: (euiThemeContext: UseEuiTheme) => {
5252
+ euiToolTip: import("@emotion/utils").SerializedStyles;
5253
+ s: import("@emotion/utils").SerializedStyles;
5254
+ top: import("@emotion/utils").SerializedStyles;
5255
+ bottom: import("@emotion/utils").SerializedStyles;
5256
+ left: import("@emotion/utils").SerializedStyles;
5257
+ right: import("@emotion/utils").SerializedStyles;
5258
+ euiToolTip__arrow: import("@emotion/utils").SerializedStyles;
5259
+ };
5260
+ export const euiToolTipPopoverStyles: ({ euiTheme, colorMode, }: UseEuiTheme) => {
5261
+ euiToolTip__title: import("@emotion/utils").SerializedStyles;
5262
+ };
5263
+ export const euiToolTipAnchorStyles: () => {
5264
+ euiToolTipAnchor: import("@emotion/utils").SerializedStyles;
5265
+ block: import("@emotion/utils").SerializedStyles;
5266
+ inlineBlock: import("@emotion/utils").SerializedStyles;
5267
+ };
5268
+
5242
5269
  }
5243
5270
  declare module '@elastic/eui/src/components/tool_tip/tool_tip_popover' {
5244
- import { HTMLAttributes, Component, ReactNode } from 'react';
5245
- import { CommonProps } from '@elastic/eui/src/components/common'; type Props = CommonProps & Omit<HTMLAttributes<HTMLDivElement>, 'title'> & {
5271
+ import { HTMLAttributes, FunctionComponent, ReactNode } from 'react';
5272
+ import { CommonProps } from '@elastic/eui/src/components/common';
5273
+ export type ToolTipPositions = 'top' | 'right' | 'bottom' | 'left'; type Props = CommonProps & Omit<HTMLAttributes<HTMLDivElement>, 'title'> & {
5246
5274
  positionToolTip: () => void;
5247
5275
  children?: ReactNode;
5248
5276
  title?: ReactNode;
5249
5277
  popoverRef?: (ref: HTMLDivElement) => void;
5278
+ calculatedPosition?: ToolTipPositions;
5250
5279
  };
5251
- export class EuiToolTipPopover extends Component<Props> {
5252
- private popover;
5253
- updateDimensions: () => void;
5254
- setPopoverRef: (ref: HTMLDivElement) => void;
5255
- componentDidMount(): void;
5256
- componentWillUnmount(): void;
5257
- render(): JSX.Element;
5258
- }
5280
+ export const EuiToolTipPopover: FunctionComponent<Props>;
5259
5281
  export {};
5260
5282
 
5283
+ }
5284
+ declare module '@elastic/eui/src/components/tool_tip/tool_tip_anchor' {
5285
+ import React, { HTMLAttributes, ReactElement } from 'react';
5286
+ export interface EuiToolTipAnchorProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'onBlur' | 'onFocus' | 'children'> {
5287
+ onBlur: () => void;
5288
+ onFocus: () => void;
5289
+ children: ReactElement;
5290
+ isVisible: boolean;
5291
+ display: 'block' | 'inlineBlock';
5292
+ }
5293
+ export const EuiToolTipAnchor: React.ForwardRefExoticComponent<EuiToolTipAnchorProps & React.RefAttributes<HTMLSpanElement>>;
5294
+
5295
+ }
5296
+ declare module '@elastic/eui/src/components/tool_tip/tool_tip_arrow' {
5297
+ import { HTMLAttributes, FunctionComponent } from 'react';
5298
+ export const EuiToolTipArrow: FunctionComponent<HTMLAttributes<HTMLDivElement>>;
5299
+
5261
5300
  }
5262
5301
  declare module '@elastic/eui/src/components/tool_tip/tool_tip' {
5263
5302
  import { Component, ReactElement, ReactNode, MouseEvent as ReactMouseEvent, HTMLAttributes } from 'react';
5264
5303
  import { CommonProps } from '@elastic/eui/src/components/common';
5265
- export type ToolTipPositions = 'top' | 'right' | 'bottom' | 'left';
5304
+ import { ToolTipPositions } from '@elastic/eui/src/components/tool_tip/tool_tip_popover';
5266
5305
  export const POSITIONS: ToolTipPositions[];
5267
5306
  export type ToolTipDelay = 'regular' | 'long';
5268
5307
  interface ToolTipStyles {
@@ -5345,7 +5384,8 @@ declare module '@elastic/eui/src/components/tool_tip/tool_tip' {
5345
5384
  componentWillUnmount(): void;
5346
5385
  componentDidUpdate(prevProps: EuiToolTipProps, prevState: State): void;
5347
5386
  testAnchor: () => void;
5348
- setPopoverRef: (ref: HTMLElement) => void;
5387
+ setAnchorRef: (ref: HTMLElement) => HTMLElement;
5388
+ setPopoverRef: (ref: HTMLElement) => HTMLElement;
5349
5389
  showToolTip: () => void;
5350
5390
  positionToolTip: () => void;
5351
5391
  hideToolTip: () => void;
@@ -5398,7 +5438,8 @@ declare module '@elastic/eui/src/components/tool_tip/icon_tip' {
5398
5438
 
5399
5439
  }
5400
5440
  declare module '@elastic/eui/src/components/tool_tip' {
5401
- export type { ToolTipPositions, EuiToolTipProps } from '@elastic/eui/src/components/tool_tip/tool_tip';
5441
+ export type { ToolTipPositions } from '@elastic/eui/src/components/tool_tip/tool_tip_popover';
5442
+ export type { EuiToolTipProps } from '@elastic/eui/src/components/tool_tip/tool_tip';
5402
5443
  export { EuiToolTip } from '@elastic/eui/src/components/tool_tip/tool_tip';
5403
5444
  export type { EuiIconTipProps } from '@elastic/eui/src/components/tool_tip/icon_tip';
5404
5445
  export { EuiIconTip } from '@elastic/eui/src/components/tool_tip/icon_tip';
@@ -7242,12 +7283,17 @@ declare module '@elastic/eui/src/global_styling/reset/global_styles' {
7242
7283
  }
7243
7284
  export const EuiGlobalStyles: ({}: EuiGlobalStylesProps) => JSX.Element;
7244
7285
 
7286
+ }
7287
+ declare module '@elastic/eui/src/global_styling/utility/animations' {
7288
+ export const euiAnimFadeIn: import("@emotion/serialize").Keyframes;
7289
+
7245
7290
  }
7246
7291
  declare module '@elastic/eui/src/global_styling' {
7247
7292
  export * from '@elastic/eui/src/global_styling/reset/global_styles';
7248
7293
  export * from '@elastic/eui/src/global_styling/functions';
7249
7294
  export * from '@elastic/eui/src/global_styling/variables';
7250
7295
  export * from '@elastic/eui/src/global_styling/mixins';
7296
+ export * from '@elastic/eui/src/global_styling/utility/animations';
7251
7297
 
7252
7298
  }
7253
7299
  declare module '@elastic/eui/src/components/accessibility/screen_reader_only/screen_reader_only.styles' {
@@ -8443,6 +8489,16 @@ declare module '@elastic/eui/src/components/copy' {
8443
8489
  export type { EuiCopyProps } from '@elastic/eui/src/components/copy/copy';
8444
8490
  export { EuiCopy } from '@elastic/eui/src/components/copy/copy';
8445
8491
 
8492
+ }
8493
+ declare module '@elastic/eui/src/components/overlay_mask/overlay_mask.styles' {
8494
+ import { UseEuiTheme } from '@elastic/eui/src/services';
8495
+ export const euiOverlayMaskStyles: ({ euiTheme }: UseEuiTheme) => {
8496
+ euiOverlayMask: import("@emotion/utils").SerializedStyles;
8497
+ aboveHeader: import("@emotion/utils").SerializedStyles;
8498
+ belowHeader: import("@emotion/utils").SerializedStyles;
8499
+ };
8500
+ export const euiOverlayMaskBodyStyles: import("@emotion/utils").SerializedStyles;
8501
+
8446
8502
  }
8447
8503
  declare module '@elastic/eui/src/components/overlay_mask/overlay_mask' {
8448
8504
  /**
@@ -8452,10 +8508,6 @@ declare module '@elastic/eui/src/components/overlay_mask/overlay_mask' {
8452
8508
  import { FunctionComponent, HTMLAttributes, MutableRefObject, ReactNode, Ref } from 'react';
8453
8509
  import { CommonProps } from '@elastic/eui/src/components/common';
8454
8510
  export interface EuiOverlayMaskInterface {
8455
- /**
8456
- * Function that applies to clicking the mask itself and not the children
8457
- */
8458
- onClick?: () => void;
8459
8511
  /**
8460
8512
  * ReactNode to render as this component's content
8461
8513
  */
@@ -11732,6 +11784,18 @@ declare module '@elastic/eui/src/components/datagrid/utils/row_count' {
11732
11784
  rowCount: EuiDataGridProps['rowCount'];
11733
11785
  }) => EuiDataGridVisibleRows;
11734
11786
 
11787
+ }
11788
+ declare module '@elastic/eui/src/components/pagination/pagination_button.styles' {
11789
+ import { UseEuiTheme } from '@elastic/eui/src/services';
11790
+ export const euiPaginationButtonStyles: (euiThemeContext: UseEuiTheme) => {
11791
+ euiPaginationButton: import("@emotion/utils").SerializedStyles;
11792
+ isActive: import("@emotion/utils").SerializedStyles;
11793
+ isPlaceholder: import("@emotion/utils").SerializedStyles;
11794
+ };
11795
+ export const euiPaginationButtonArrowStyles: ({ euiTheme }: UseEuiTheme) => {
11796
+ euiPaginationArrowButton: import("@emotion/utils").SerializedStyles;
11797
+ };
11798
+
11735
11799
  }
11736
11800
  declare module '@elastic/eui/src/components/pagination/pagination_button' {
11737
11801
  import { FunctionComponent } from 'react';
@@ -11762,6 +11826,15 @@ declare module '@elastic/eui/src/components/pagination/pagination_button_arrow'
11762
11826
  };
11763
11827
  export const EuiPaginationButtonArrow: FunctionComponent<Props>;
11764
11828
 
11829
+ }
11830
+ declare module '@elastic/eui/src/components/pagination/pagination.styles' {
11831
+ import { UseEuiTheme } from '@elastic/eui/src/services';
11832
+ export const euiPaginationStyles: (euiThemeContext: UseEuiTheme) => {
11833
+ euiPagination: import("@emotion/utils").SerializedStyles;
11834
+ euiPagination__compressedText: import("@emotion/utils").SerializedStyles;
11835
+ euiPagination__list: import("@emotion/utils").SerializedStyles;
11836
+ };
11837
+
11765
11838
  }
11766
11839
  declare module '@elastic/eui/src/components/pagination/pagination' {
11767
11840
  import { FunctionComponent, HTMLAttributes, MouseEvent } from 'react';
@@ -12551,12 +12624,13 @@ declare module '@elastic/eui/src/components/date_picker/super_date_picker/pretty
12551
12624
  declare module '@elastic/eui/src/components/date_picker/super_date_picker/date_popover/date_popover_button' {
12552
12625
  import { FunctionComponent, ButtonHTMLAttributes, MouseEventHandler } from 'react';
12553
12626
  import { LocaleSpecifier } from 'moment';
12627
+ import { CommonProps } from '@elastic/eui/src/components/common';
12554
12628
  import { EuiPopoverProps } from '@elastic/eui/src/components/popover';
12555
12629
  import { TimeOptions } from '@elastic/eui/src/components/date_picker/super_date_picker/time_options';
12556
12630
  import { EuiDatePopoverContentProps } from '@elastic/eui/src/components/date_picker/super_date_picker/date_popover/date_popover_content';
12557
12631
  export interface EuiDatePopoverButtonProps {
12558
12632
  className?: string;
12559
- buttonProps?: ButtonHTMLAttributes<HTMLButtonElement>;
12633
+ buttonProps?: CommonProps & ButtonHTMLAttributes<HTMLButtonElement>;
12560
12634
  dateFormat: string;
12561
12635
  isDisabled?: boolean;
12562
12636
  isInvalid?: boolean;
@@ -12855,10 +12929,10 @@ declare module '@elastic/eui/src/components/responsive' {
12855
12929
 
12856
12930
  }
12857
12931
  declare module '@elastic/eui/src/components/date_picker/super_date_picker/super_update_button' {
12858
- import { Component, MouseEventHandler, Ref } from 'react';
12932
+ import { Component, MouseEventHandler, ElementRef } from 'react';
12859
12933
  import { EuiButtonProps } from '@elastic/eui/src/components/button';
12860
12934
  import { EuiToolTip, EuiToolTipProps } from '@elastic/eui/src/components/tool_tip';
12861
- import { EuiBreakpointSize } from '@elastic/eui/src/services/breakpoint'; type EuiSuperUpdateButtonInternalProps = {
12935
+ import { EuiBreakpointSize } from '@elastic/eui/src/services/breakpoint'; type ToolTipRef = ElementRef<typeof EuiToolTip> | null; type EuiSuperUpdateButtonInternalProps = {
12862
12936
  isDisabled?: boolean;
12863
12937
  isLoading?: boolean;
12864
12938
  needsUpdate?: boolean;
@@ -12894,11 +12968,11 @@ declare module '@elastic/eui/src/components/date_picker/super_date_picker/super_
12894
12968
  };
12895
12969
  _isMounted: boolean;
12896
12970
  tooltipTimeout: number | undefined;
12897
- tooltip: EuiToolTip | null;
12971
+ tooltip: ToolTipRef;
12898
12972
  componentWillUnmount(): void;
12899
12973
  componentDidMount(): void;
12900
12974
  componentDidUpdate(): void;
12901
- setTootipRef: Ref<EuiToolTip>;
12975
+ setTootipRef: (node: ToolTipRef) => void;
12902
12976
  showTooltip: () => void;
12903
12977
  hideTooltip: () => void;
12904
12978
  render(): JSX.Element;
@@ -13492,12 +13566,12 @@ declare module '@elastic/eui/src/components/expression/expression' {
13492
13566
  * First part of the expression
13493
13567
  */
13494
13568
  description: ReactNode;
13495
- descriptionProps?: HTMLAttributes<HTMLSpanElement>;
13569
+ descriptionProps?: CommonProps & HTMLAttributes<HTMLSpanElement>;
13496
13570
  /**
13497
13571
  * Second part of the expression
13498
13572
  */
13499
13573
  value?: ReactNode;
13500
- valueProps?: HTMLAttributes<HTMLSpanElement>;
13574
+ valueProps?: CommonProps & HTMLAttributes<HTMLSpanElement>;
13501
13575
  /**
13502
13576
  * Color of the `description`
13503
13577
  */
@@ -13968,7 +14042,7 @@ declare module '@elastic/eui/src/components/image/image_types' {
13968
14042
  /**
13969
14043
  * Props to add to the wrapping figure element
13970
14044
  */
13971
- wrapperProps?: HTMLAttributes<HTMLDivElement>;
14045
+ wrapperProps?: CommonProps & HTMLAttributes<HTMLDivElement>;
13972
14046
  };
13973
14047
  export type EuiImageWrapperProps = Pick<EuiImageProps, 'alt' | 'caption' | 'float' | 'margin' | 'hasShadow' | 'wrapperProps' | 'fullScreenIconColor' | 'allowFullScreen'> & {
13974
14048
  isFullWidth: boolean;
@@ -14945,14 +15019,15 @@ declare module '@elastic/eui/src/components/notification/notification_event_read
14945
15019
 
14946
15020
  }
14947
15021
  declare module '@elastic/eui/src/components/notification/notification_event' {
14948
- import { FunctionComponent, ReactElement } from 'react';
15022
+ import { FunctionComponent, ReactElement, HTMLAttributes } from 'react';
15023
+ import { CommonProps } from '@elastic/eui/src/components/common';
14949
15024
  import { EuiNotificationEventMetaProps } from '@elastic/eui/src/components/notification/notification_event_meta';
14950
15025
  import { EuiNotificationEventMessagesProps } from '@elastic/eui/src/components/notification/notification_event_messages';
14951
15026
  import { EuiNotificationEventReadButtonProps } from '@elastic/eui/src/components/notification/notification_event_read_button';
14952
15027
  import { EuiButtonEmptyProps } from '@elastic/eui/src/components/button';
14953
15028
  import { EuiContextMenuItem, EuiContextMenuItemProps } from '@elastic/eui/src/components/context_menu';
14954
15029
  export type EuiNotificationHeadingLevel = 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
14955
- export type EuiNotificationEventProps = Omit<EuiNotificationEventMetaProps, 'onOpenContextMenu' | 'onRead' | 'eventName' | 'id'> & Omit<EuiNotificationEventReadButtonProps, 'onClick' | 'color' | 'eventName' | 'isRead' | 'id'> & {
15030
+ export type EuiNotificationEventProps = Omit<EuiNotificationEventMetaProps, 'onOpenContextMenu' | 'onRead' | 'eventName' | 'id'> & Omit<EuiNotificationEventReadButtonProps, 'onClick' | 'color' | 'eventName' | 'isRead' | 'id'> & CommonProps & Omit<HTMLAttributes<HTMLDivElement>, 'title'> & {
14956
15031
  /**
14957
15032
  * A unique identifier
14958
15033
  */
@@ -15141,8 +15216,7 @@ declare module '@elastic/eui/src/components/page/page_content/page_content' {
15141
15216
  role?: HTMLAttributes['role'] | null;
15142
15217
  };
15143
15218
  /**
15144
- * **DEPRECATED**
15145
- * Use EuiPageSection instead
15219
+ * @deprecated Use EuiPageSection instead
15146
15220
  */
15147
15221
  export const EuiPageContent_Deprecated: FunctionComponent<EuiPageContentProps>;
15148
15222
 
@@ -15160,8 +15234,7 @@ declare module '@elastic/eui/src/components/page/page_content/page_content_body'
15160
15234
  paddingSize?: typeof PADDING_SIZES[number];
15161
15235
  }
15162
15236
  /**
15163
- * **DEPRECATED**
15164
- * Use EuiPageSection instead
15237
+ * @deprecated Use EuiPageSection instead
15165
15238
  */
15166
15239
  export const EuiPageContentBody_Deprecated: FunctionComponent<EuiPageContentBodyProps>;
15167
15240
 
@@ -15177,8 +15250,7 @@ declare module '@elastic/eui/src/components/page/page_content/page_content_heade
15177
15250
  responsive?: boolean;
15178
15251
  }
15179
15252
  /**
15180
- * **DEPRECATED**
15181
- * Use EuiPageHeader instead
15253
+ * @deprecated Use EuiPageHeader instead
15182
15254
  */
15183
15255
  export const EuiPageContentHeader_Deprecated: FunctionComponent<EuiPageContentHeaderProps>;
15184
15256
 
@@ -15189,8 +15261,7 @@ declare module '@elastic/eui/src/components/page/page_content/page_content_heade
15189
15261
  export interface EuiPageContentHeaderSectionProps extends CommonProps, HTMLAttributes<HTMLDivElement> {
15190
15262
  }
15191
15263
  /**
15192
- * **DEPRECATED**
15193
- * Use EuiPageHeader instead
15264
+ * @deprecated Use EuiPageHeader instead
15194
15265
  */
15195
15266
  export const EuiPageContentHeaderSection_Deprecated: FunctionComponent<EuiPageContentHeaderSectionProps>;
15196
15267
 
@@ -15400,7 +15471,7 @@ declare module '@elastic/eui/src/components/page/page_section/page_section.style
15400
15471
 
15401
15472
  }
15402
15473
  declare module '@elastic/eui/src/components/page/page_section/page_section' {
15403
- import { FunctionComponent, HTMLAttributes } from 'react';
15474
+ import { FunctionComponent, ComponentType, HTMLAttributes } from 'react';
15404
15475
  import { CommonProps } from '@elastic/eui/src/components/common';
15405
15476
  import { _EuiPageRestrictWidth } from '@elastic/eui/src/components/page/_restrict_width';
15406
15477
  import { _EuiPageBottomBorder } from '@elastic/eui/src/components/page/_bottom_border';
@@ -15427,8 +15498,12 @@ declare module '@elastic/eui/src/components/page/page_section/page_section' {
15427
15498
  /**
15428
15499
  * Passed down to the div wrapper of the section contents
15429
15500
  */
15430
- contentProps?: HTMLAttributes<HTMLDivElement>;
15431
- } & Omit<HTMLAttributes<HTMLDivElement>, 'color'>;
15501
+ contentProps?: CommonProps & HTMLAttributes<HTMLDivElement>;
15502
+ /**
15503
+ * Sets which HTML element to render.
15504
+ */
15505
+ component?: keyof JSX.IntrinsicElements | ComponentType;
15506
+ } & Omit<HTMLAttributes<Element>, 'color'>;
15432
15507
  export const EuiPageSection: FunctionComponent<EuiPageSectionProps>;
15433
15508
 
15434
15509
  }
@@ -15452,8 +15527,7 @@ declare module '@elastic/eui/src/components/page/page_side_bar/page_side_bar' {
15452
15527
  paddingSize?: typeof PADDING_SIZES[number];
15453
15528
  }
15454
15529
  /**
15455
- * **DEPRECATED**
15456
- * Use the new EuiPageSidebar instead
15530
+ * @deprecated Use the new EuiPageSidebar in page/page_sidebar instead
15457
15531
  */
15458
15532
  export const EuiPageSideBar_Deprecated: FunctionComponent<EuiPageSideBarProps>;
15459
15533
 
@@ -15581,7 +15655,9 @@ declare module '@elastic/eui/src/components/page/page_template' {
15581
15655
  /**
15582
15656
  * This component has been deprecated in favor of the new
15583
15657
  * namespaced version. You can still import this component
15584
- * for a period of time by importing `as EuiPageTemplate`.
15658
+ * until August 2023 by importing `as EuiPageTemplate`.
15659
+ *
15660
+ * @deprecated use EuiPageTemplate from page_template/page_template instead
15585
15661
  */
15586
15662
  export const EuiPageTemplate_Deprecated: FunctionComponent<EuiPageTemplateProps_Deprecated>;
15587
15663
 
@@ -15788,10 +15864,6 @@ declare module '@elastic/eui/src/themes/themes' {
15788
15864
  export const EUI_THEMES: EUI_THEME[];
15789
15865
  export const isDefaultTheme: (name: string) => boolean;
15790
15866
 
15791
- }
15792
- declare module '@elastic/eui/src/themes/amsterdam' {
15793
- export * from '@elastic/eui/src/themes/amsterdam/global_styling/mixins/shadow';
15794
-
15795
15867
  }
15796
15868
  declare module '@elastic/eui/src/themes' {
15797
15869
  export type { EUI_THEME } from '@elastic/eui/src/themes/themes';
@@ -15804,7 +15876,7 @@ declare module '@elastic/eui/src/components/provider/cache/cache_provider' {
15804
15876
  import { PropsWithChildren } from 'react';
15805
15877
  import { EmotionCache } from '@emotion/cache';
15806
15878
  export interface EuiCacheProviderProps {
15807
- cache?: EmotionCache;
15879
+ cache?: false | EmotionCache;
15808
15880
  }
15809
15881
  export const EuiCacheProvider: ({ cache, children, }: PropsWithChildren<EuiCacheProviderProps>) => JSX.Element;
15810
15882
 
@@ -17460,7 +17532,7 @@ declare module '@elastic/eui/src/components/side_nav/side_nav' {
17460
17532
  /**
17461
17533
  * Adds a couple extra #EuiSideNavHeading props and extends the props of EuiTitle that wraps the `heading`
17462
17534
  */
17463
- headingProps?: EuiSideNavHeadingProps;
17535
+ headingProps?: CommonProps & EuiSideNavHeadingProps;
17464
17536
  /**
17465
17537
  * When called, toggles visibility of the navigation menu at mobile responsive widths. The callback should set the `isOpenOnMobile` prop to actually toggle navigation visibility.
17466
17538
  */
@@ -17849,6 +17921,11 @@ declare module '@elastic/eui/src/components/suggest/suggest' {
17849
17921
  * Default is `60vh`
17850
17922
  */
17851
17923
  maxHeight?: CSSProperties['maxHeight'];
17924
+ /**
17925
+ * Control whether or not options get filtered internally or if consumer will filter.
17926
+ * Default `false`
17927
+ */
17928
+ isPreFiltered?: boolean;
17852
17929
  };
17853
17930
  export type EuiSuggestProps = _EuiSuggestProps & ExclusiveUnion<{
17854
17931
  'aria-label': string;
@@ -19455,7 +19532,7 @@ declare module '@elastic/eui/src/components/resizable_container/resizable_panel'
19455
19532
  /**
19456
19533
  * Props to add to the wrapping `.euiResizablePanel` div
19457
19534
  */
19458
- wrapperProps?: HTMLAttributes<HTMLDivElement>;
19535
+ wrapperProps?: CommonProps & HTMLAttributes<HTMLDivElement>;
19459
19536
  /**
19460
19537
  * Padding to add directly to the wrapping `.euiResizablePanel` div
19461
19538
  * Gives space around the actual panel.