@elastic/eui 59.1.0-rc1 → 59.1.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 (185) hide show
  1. package/dist/eui_charts_theme.js +330 -330
  2. package/dist/eui_charts_theme.js.map +1 -1
  3. package/es/components/accessibility/skip_link/skip_link.js +42 -7
  4. package/es/components/accessibility/skip_link/skip_link.styles.js +1 -1
  5. package/es/components/avatar/avatar.js +7 -9
  6. package/es/components/bottom_bar/bottom_bar.js +9 -8
  7. package/es/components/breadcrumbs/breadcrumbs.js +1 -2
  8. package/es/components/call_out/call_out.js +8 -9
  9. package/es/components/expression/expression.js +10 -11
  10. package/es/components/facet/facet_button.js +8 -9
  11. package/es/components/facet/facet_group.js +7 -8
  12. package/es/components/health/health.js +6 -7
  13. package/es/components/horizontal_rule/horizontal_rule.js +6 -7
  14. package/es/components/link/link.js +7 -8
  15. package/es/components/loading/loading_chart.js +6 -7
  16. package/es/components/loading/loading_content.js +6 -7
  17. package/es/components/loading/loading_logo.js +6 -7
  18. package/es/components/loading/loading_spinner.js +6 -7
  19. package/es/components/mark/mark.js +8 -9
  20. package/es/components/markdown_editor/markdown_format.js +6 -7
  21. package/es/components/panel/panel.js +7 -8
  22. package/es/components/provider/index.js +1 -1
  23. package/es/components/provider/provider.js +5 -39
  24. package/es/components/spacer/spacer.js +6 -7
  25. package/es/components/text/text.js +6 -7
  26. package/es/components/text/text_color.js +6 -7
  27. package/es/components/timeline/timeline_item.js +6 -7
  28. package/es/components/timeline/timeline_item_icon.js +6 -7
  29. package/es/components/title/title.js +6 -7
  30. package/es/services/theme/hooks.js +2 -2
  31. package/es/services/theme/provider.js +5 -1
  32. package/{optimize/es/components/provider/cache → es/themes/amsterdam}/index.js +2 -2
  33. package/es/themes/index.js +2 -1
  34. package/eui.d.ts +337 -827
  35. package/i18ntokens.json +12 -12
  36. package/lib/components/accessibility/skip_link/skip_link.js +45 -11
  37. package/lib/components/accessibility/skip_link/skip_link.styles.js +1 -1
  38. package/lib/components/avatar/avatar.js +8 -12
  39. package/lib/components/bottom_bar/bottom_bar.js +6 -9
  40. package/lib/components/breadcrumbs/breadcrumbs.js +1 -2
  41. package/lib/components/call_out/call_out.js +10 -14
  42. package/lib/components/expression/expression.js +12 -14
  43. package/lib/components/facet/facet_button.js +10 -12
  44. package/lib/components/facet/facet_group.js +9 -11
  45. package/lib/components/health/health.js +8 -10
  46. package/lib/components/horizontal_rule/horizontal_rule.js +8 -10
  47. package/lib/components/link/link.js +7 -13
  48. package/lib/components/loading/loading_chart.js +8 -10
  49. package/lib/components/loading/loading_content.js +8 -10
  50. package/lib/components/loading/loading_logo.js +8 -10
  51. package/lib/components/loading/loading_spinner.js +8 -10
  52. package/lib/components/mark/mark.js +10 -12
  53. package/lib/components/markdown_editor/markdown_format.js +8 -10
  54. package/lib/components/panel/panel.js +9 -11
  55. package/lib/components/provider/index.js +7 -12
  56. package/lib/components/provider/provider.js +5 -40
  57. package/lib/components/spacer/spacer.js +8 -10
  58. package/lib/components/text/text.js +8 -10
  59. package/lib/components/text/text_color.js +8 -10
  60. package/lib/components/timeline/timeline_item.js +8 -10
  61. package/lib/components/timeline/timeline_item_icon.js +8 -10
  62. package/lib/components/title/title.js +9 -11
  63. package/lib/services/theme/hooks.js +2 -2
  64. package/lib/services/theme/provider.js +6 -3
  65. package/{test-env/components/provider/system → lib/themes/amsterdam}/index.js +4 -4
  66. package/lib/themes/index.js +21 -1
  67. package/optimize/es/components/accessibility/skip_link/skip_link.js +27 -6
  68. package/optimize/es/components/accessibility/skip_link/skip_link.styles.js +1 -1
  69. package/optimize/es/components/avatar/avatar.js +5 -7
  70. package/optimize/es/components/bottom_bar/bottom_bar.js +9 -8
  71. package/optimize/es/components/breadcrumbs/breadcrumbs.js +1 -2
  72. package/optimize/es/components/call_out/call_out.js +7 -8
  73. package/optimize/es/components/expression/expression.js +9 -10
  74. package/optimize/es/components/facet/facet_button.js +7 -8
  75. package/optimize/es/components/facet/facet_group.js +6 -7
  76. package/optimize/es/components/health/health.js +5 -6
  77. package/optimize/es/components/horizontal_rule/horizontal_rule.js +5 -6
  78. package/optimize/es/components/link/link.js +6 -7
  79. package/optimize/es/components/loading/loading_chart.js +5 -6
  80. package/optimize/es/components/loading/loading_content.js +5 -6
  81. package/optimize/es/components/loading/loading_logo.js +5 -6
  82. package/optimize/es/components/loading/loading_spinner.js +5 -6
  83. package/optimize/es/components/mark/mark.js +7 -8
  84. package/optimize/es/components/markdown_editor/markdown_format.js +5 -6
  85. package/optimize/es/components/panel/panel.js +6 -7
  86. package/optimize/es/components/provider/index.js +1 -1
  87. package/optimize/es/components/provider/provider.js +5 -39
  88. package/optimize/es/components/spacer/spacer.js +5 -6
  89. package/optimize/es/components/text/text.js +5 -6
  90. package/optimize/es/components/text/text_color.js +5 -6
  91. package/optimize/es/components/timeline/timeline_item.js +5 -6
  92. package/optimize/es/components/timeline/timeline_item_icon.js +5 -6
  93. package/optimize/es/components/title/title.js +5 -6
  94. package/optimize/es/services/theme/hooks.js +2 -2
  95. package/optimize/es/services/theme/provider.js +5 -1
  96. package/optimize/es/{components/provider/system → themes/amsterdam}/index.js +2 -1
  97. package/optimize/es/themes/index.js +2 -1
  98. package/optimize/lib/components/accessibility/skip_link/skip_link.js +30 -8
  99. package/optimize/lib/components/accessibility/skip_link/skip_link.styles.js +1 -1
  100. package/optimize/lib/components/avatar/avatar.js +5 -9
  101. package/optimize/lib/components/bottom_bar/bottom_bar.js +6 -9
  102. package/optimize/lib/components/breadcrumbs/breadcrumbs.js +1 -2
  103. package/optimize/lib/components/call_out/call_out.js +9 -13
  104. package/optimize/lib/components/expression/expression.js +9 -11
  105. package/optimize/lib/components/facet/facet_button.js +7 -9
  106. package/optimize/lib/components/facet/facet_group.js +6 -8
  107. package/optimize/lib/components/health/health.js +5 -7
  108. package/optimize/lib/components/horizontal_rule/horizontal_rule.js +5 -7
  109. package/optimize/lib/components/link/link.js +6 -12
  110. package/optimize/lib/components/loading/loading_chart.js +5 -7
  111. package/optimize/lib/components/loading/loading_content.js +5 -7
  112. package/optimize/lib/components/loading/loading_logo.js +5 -7
  113. package/optimize/lib/components/loading/loading_spinner.js +5 -7
  114. package/optimize/lib/components/mark/mark.js +7 -9
  115. package/optimize/lib/components/markdown_editor/markdown_format.js +5 -7
  116. package/optimize/lib/components/panel/panel.js +6 -8
  117. package/optimize/lib/components/provider/index.js +7 -12
  118. package/optimize/lib/components/provider/provider.js +5 -40
  119. package/optimize/lib/components/spacer/spacer.js +5 -7
  120. package/optimize/lib/components/text/text.js +5 -7
  121. package/optimize/lib/components/text/text_color.js +5 -7
  122. package/optimize/lib/components/timeline/timeline_item.js +5 -7
  123. package/optimize/lib/components/timeline/timeline_item_icon.js +5 -7
  124. package/optimize/lib/components/title/title.js +6 -8
  125. package/optimize/lib/services/theme/hooks.js +2 -2
  126. package/optimize/lib/services/theme/provider.js +6 -3
  127. package/{lib/components/provider/system → optimize/lib/themes/amsterdam}/index.js +4 -4
  128. package/optimize/lib/themes/index.js +21 -1
  129. package/package.json +1 -1
  130. package/test-env/components/accessibility/skip_link/skip_link.js +46 -11
  131. package/test-env/components/accessibility/skip_link/skip_link.styles.js +1 -1
  132. package/test-env/components/avatar/avatar.js +8 -12
  133. package/test-env/components/bottom_bar/bottom_bar.js +6 -9
  134. package/test-env/components/breadcrumbs/breadcrumbs.js +1 -2
  135. package/test-env/components/call_out/call_out.js +10 -14
  136. package/test-env/components/expression/expression.js +12 -14
  137. package/test-env/components/facet/facet_button.js +10 -12
  138. package/test-env/components/facet/facet_group.js +9 -11
  139. package/test-env/components/health/health.js +8 -10
  140. package/test-env/components/horizontal_rule/horizontal_rule.js +8 -10
  141. package/test-env/components/link/link.js +7 -13
  142. package/test-env/components/loading/loading_chart.js +8 -10
  143. package/test-env/components/loading/loading_content.js +8 -10
  144. package/test-env/components/loading/loading_logo.js +8 -10
  145. package/test-env/components/loading/loading_spinner.js +8 -10
  146. package/test-env/components/mark/mark.js +10 -12
  147. package/test-env/components/markdown_editor/markdown_format.js +8 -10
  148. package/test-env/components/panel/panel.js +9 -11
  149. package/test-env/components/provider/index.js +7 -12
  150. package/test-env/components/provider/provider.js +5 -40
  151. package/test-env/components/spacer/spacer.js +8 -10
  152. package/test-env/components/text/text.js +8 -10
  153. package/test-env/components/text/text_color.js +8 -10
  154. package/test-env/components/timeline/timeline_item.js +8 -10
  155. package/test-env/components/timeline/timeline_item_icon.js +8 -10
  156. package/test-env/components/title/title.js +9 -11
  157. package/test-env/services/theme/hooks.js +2 -2
  158. package/test-env/services/theme/provider.js +6 -3
  159. package/{optimize/lib/components/provider/system → test-env/themes/amsterdam}/index.js +4 -4
  160. package/test-env/themes/index.js +21 -1
  161. package/es/components/provider/cache/cache_context.js +0 -12
  162. package/es/components/provider/cache/cache_provider.js +0 -17
  163. package/es/components/provider/cache/index.js +0 -9
  164. package/es/components/provider/system/index.js +0 -8
  165. package/es/components/provider/system/system.js +0 -33
  166. package/es/global_styling/utility/utility.js +0 -27
  167. package/lib/components/provider/cache/cache_context.js +0 -24
  168. package/lib/components/provider/cache/cache_provider.js +0 -29
  169. package/lib/components/provider/cache/index.js +0 -31
  170. package/lib/components/provider/system/system.js +0 -45
  171. package/lib/global_styling/utility/utility.js +0 -31
  172. package/optimize/es/components/provider/cache/cache_context.js +0 -12
  173. package/optimize/es/components/provider/cache/cache_provider.js +0 -17
  174. package/optimize/es/components/provider/system/system.js +0 -33
  175. package/optimize/es/global_styling/utility/utility.js +0 -27
  176. package/optimize/lib/components/provider/cache/cache_context.js +0 -24
  177. package/optimize/lib/components/provider/cache/cache_provider.js +0 -29
  178. package/optimize/lib/components/provider/cache/index.js +0 -31
  179. package/optimize/lib/components/provider/system/system.js +0 -54
  180. package/optimize/lib/global_styling/utility/utility.js +0 -31
  181. package/test-env/components/provider/cache/cache_context.js +0 -24
  182. package/test-env/components/provider/cache/cache_provider.js +0 -29
  183. package/test-env/components/provider/cache/index.js +0 -31
  184. package/test-env/components/provider/system/system.js +0 -54
  185. package/test-env/global_styling/utility/utility.js +0 -31
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports._EuiHealth = exports.TEXT_SIZES = exports.EuiHealth = void 0;
6
+ exports.TEXT_SIZES = exports.EuiHealth = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
@@ -11,7 +11,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
11
11
 
12
12
  var _classnames = _interopRequireDefault(require("classnames"));
13
13
 
14
- var _system = require("../provider/system");
14
+ var _services = require("../../services");
15
15
 
16
16
  var _health = require("./health.styles");
17
17
 
@@ -21,7 +21,7 @@ var _flex = require("../flex");
21
21
 
22
22
  var _react2 = require("@emotion/react");
23
23
 
24
- var _excluded = ["children", "className", "color", "euiTheme", "textSize"];
24
+ var _excluded = ["children", "className", "color", "textSize"];
25
25
 
26
26
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
27
27
 
@@ -34,15 +34,15 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
34
34
  var TEXT_SIZES = ['xs', 's', 'm', 'inherit'];
35
35
  exports.TEXT_SIZES = TEXT_SIZES;
36
36
 
37
- var _EuiHealth = function _EuiHealth(_ref) {
37
+ var EuiHealth = function EuiHealth(_ref) {
38
38
  var children = _ref.children,
39
39
  className = _ref.className,
40
40
  color = _ref.color,
41
- euiTheme = _ref.euiTheme,
42
41
  _ref$textSize = _ref.textSize,
43
42
  textSize = _ref$textSize === void 0 ? 's' : _ref$textSize,
44
43
  rest = _objectWithoutProperties(_ref, _excluded);
45
44
 
45
+ var euiTheme = (0, _services.useEuiTheme)();
46
46
  var styles = (0, _health.euiHealthStyles)(euiTheme);
47
47
  var cssStyles = [styles.euiHealth, styles[textSize]];
48
48
  var classes = (0, _classnames.default)('euiHealth', className);
@@ -63,8 +63,8 @@ var _EuiHealth = function _EuiHealth(_ref) {
63
63
  }, children)));
64
64
  };
65
65
 
66
- exports._EuiHealth = _EuiHealth;
67
- _EuiHealth.propTypes = {
66
+ exports.EuiHealth = EuiHealth;
67
+ EuiHealth.propTypes = {
68
68
  className: _propTypes.default.string,
69
69
  "aria-label": _propTypes.default.string,
70
70
  "data-test-subj": _propTypes.default.string,
@@ -81,6 +81,4 @@ _EuiHealth.propTypes = {
81
81
  * The `inherit` style will get its font size from the parent element
82
82
  */
83
83
  textSize: _propTypes.default.any
84
- };
85
- var EuiHealth = (0, _system.withEuiSystem)(_EuiHealth);
86
- exports.EuiHealth = EuiHealth;
84
+ };
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports._EuiHorizontalRule = exports.SIZES = exports.MARGINS = exports.EuiHorizontalRule = void 0;
6
+ exports.SIZES = exports.MARGINS = exports.EuiHorizontalRule = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
@@ -11,13 +11,13 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
11
11
 
12
12
  var _classnames = _interopRequireDefault(require("classnames"));
13
13
 
14
- var _system = require("../provider/system");
14
+ var _services = require("../../services");
15
15
 
16
16
  var _horizontal_rule = require("./horizontal_rule.styles");
17
17
 
18
18
  var _react2 = require("@emotion/react");
19
19
 
20
- var _excluded = ["className", "euiTheme", "size", "margin"];
20
+ var _excluded = ["className", "size", "margin"];
21
21
 
22
22
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
23
23
 
@@ -43,17 +43,17 @@ var marginToClassNameMap = {
43
43
  xxl: 'marginXXLarge'
44
44
  };
45
45
 
46
- var _EuiHorizontalRule = function _EuiHorizontalRule(_ref) {
46
+ var EuiHorizontalRule = function EuiHorizontalRule(_ref) {
47
47
  var _classNames;
48
48
 
49
49
  var className = _ref.className,
50
- euiTheme = _ref.euiTheme,
51
50
  _ref$size = _ref.size,
52
51
  size = _ref$size === void 0 ? 'full' : _ref$size,
53
52
  _ref$margin = _ref.margin,
54
53
  margin = _ref$margin === void 0 ? 'l' : _ref$margin,
55
54
  rest = _objectWithoutProperties(_ref, _excluded);
56
55
 
56
+ var euiTheme = (0, _services.useEuiTheme)();
57
57
  var styles = (0, _horizontal_rule.euiHorizontalRuleStyles)(euiTheme);
58
58
  var classes = (0, _classnames.default)('euiHorizontalRule', (_classNames = {}, _defineProperty(_classNames, "euiHorizontalRule--".concat(size), size), _defineProperty(_classNames, "euiHorizontalRule--".concat(marginToClassNameMap[margin]), margin && margin !== 'none'), _classNames), className);
59
59
  var cssStyles = [styles.euiHorizontalRule, styles[size], styles[margin]];
@@ -63,8 +63,8 @@ var _EuiHorizontalRule = function _EuiHorizontalRule(_ref) {
63
63
  }, rest));
64
64
  };
65
65
 
66
- exports._EuiHorizontalRule = _EuiHorizontalRule;
67
- _EuiHorizontalRule.propTypes = {
66
+ exports.EuiHorizontalRule = EuiHorizontalRule;
67
+ EuiHorizontalRule.propTypes = {
68
68
  /**
69
69
  * Defines the width of the HR.
70
70
  */
@@ -73,6 +73,4 @@ _EuiHorizontalRule.propTypes = {
73
73
  className: _propTypes.default.string,
74
74
  "aria-label": _propTypes.default.string,
75
75
  "data-test-subj": _propTypes.default.string
76
- };
77
- var EuiHorizontalRule = (0, _system.withEuiSystem)(_EuiHorizontalRule);
78
- exports.EuiHorizontalRule = EuiHorizontalRule;
76
+ };
@@ -5,7 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports._EuiLink = exports.EuiLink = exports.COLORS = void 0;
8
+ exports.EuiLink = exports.COLORS = void 0;
9
9
 
10
10
  var _react = _interopRequireWildcard(require("react"));
11
11
 
@@ -15,8 +15,6 @@ var _classnames = _interopRequireDefault(require("classnames"));
15
15
 
16
16
  var _services = require("../../services");
17
17
 
18
- var _system = require("../provider/system");
19
-
20
18
  var _link = require("./link.styles");
21
19
 
22
20
  var _icon = require("../icon");
@@ -29,7 +27,7 @@ var _href_validator = require("../../services/security/href_validator");
29
27
 
30
28
  var _react2 = require("@emotion/react");
31
29
 
32
- var _excluded = ["children", "color", "className", "href", "external", "target", "rel", "type", "onClick", "disabled", "euiTheme"];
30
+ var _excluded = ["children", "color", "className", "href", "external", "target", "rel", "type", "onClick", "disabled"];
33
31
 
34
32
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
35
33
 
@@ -51,8 +49,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
51
49
 
52
50
  var COLORS = ['primary', 'subdued', 'success', 'accent', 'danger', 'warning', 'text', 'ghost'];
53
51
  exports.COLORS = COLORS;
54
-
55
- var _EuiLink = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
52
+ var EuiLink = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
56
53
  var children = _ref.children,
57
54
  _ref$color = _ref.color,
58
55
  color = _ref$color === void 0 ? 'primary' : _ref$color,
@@ -65,9 +62,9 @@ var _EuiLink = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
65
62
  type = _ref$type === void 0 ? 'button' : _ref$type,
66
63
  onClick = _ref.onClick,
67
64
  _disabled = _ref.disabled,
68
- euiTheme = _ref.euiTheme,
69
65
  rest = _objectWithoutProperties(_ref, _excluded);
70
66
 
67
+ var euiTheme = (0, _services.useEuiTheme)();
71
68
  var styles = (0, _link.euiLinkStyles)(euiTheme);
72
69
  var cssStyles = [styles.euiLink];
73
70
  var cssScreenReaderTextStyles = [styles.euiLink__screenReaderText];
@@ -121,9 +118,8 @@ var _EuiLink = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
121
118
  ref: ref
122
119
  }, anchorProps), children, showExternalLinkIcon && externalLinkIcon, target === '_blank' && newTargetScreenreaderText);
123
120
  });
124
-
125
- exports._EuiLink = _EuiLink;
126
- _EuiLink.propTypes = {
121
+ exports.EuiLink = EuiLink;
122
+ EuiLink.propTypes = {
127
123
  className: _propTypes.default.string,
128
124
  "aria-label": _propTypes.default.string,
129
125
  "data-test-subj": _propTypes.default.string,
@@ -145,6 +141,4 @@ _EuiLink.propTypes = {
145
141
  */
146
142
  external: _propTypes.default.bool
147
143
  };
148
- _EuiLink.displayName = 'EuiLink';
149
- var EuiLink = (0, _system.withEuiSystem)(_EuiLink);
150
- exports.EuiLink = EuiLink;
144
+ EuiLink.displayName = 'EuiLink';
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports._EuiLoadingChart = exports.SIZES = exports.EuiLoadingChart = void 0;
6
+ exports.SIZES = exports.EuiLoadingChart = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
@@ -11,7 +11,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
11
11
 
12
12
  var _classnames = _interopRequireDefault(require("classnames"));
13
13
 
14
- var _system = require("../provider/system");
14
+ var _services = require("../../services");
15
15
 
16
16
  var _loading_chart = require("./loading_chart.styles");
17
17
 
@@ -19,7 +19,7 @@ var _i18n = require("../i18n");
19
19
 
20
20
  var _react2 = require("@emotion/react");
21
21
 
22
- var _excluded = ["size", "mono", "className", "aria-label", "euiTheme"];
22
+ var _excluded = ["size", "mono", "className", "aria-label"];
23
23
 
24
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
25
25
 
@@ -32,17 +32,17 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
32
32
  var SIZES = ['m', 'l', 'xl'];
33
33
  exports.SIZES = SIZES;
34
34
 
35
- var _EuiLoadingChart = function _EuiLoadingChart(_ref) {
35
+ var EuiLoadingChart = function EuiLoadingChart(_ref) {
36
36
  var _ref$size = _ref.size,
37
37
  size = _ref$size === void 0 ? 'm' : _ref$size,
38
38
  _ref$mono = _ref.mono,
39
39
  mono = _ref$mono === void 0 ? false : _ref$mono,
40
40
  className = _ref.className,
41
41
  ariaLabel = _ref['aria-label'],
42
- euiTheme = _ref.euiTheme,
43
42
  rest = _objectWithoutProperties(_ref, _excluded);
44
43
 
45
44
  var defaultAriaLabel = (0, _i18n.useEuiI18n)('euiLoadingChart.ariaLabel', 'Loading');
45
+ var euiTheme = (0, _services.useEuiTheme)();
46
46
  var styles = (0, _loading_chart.euiLoadingChartStyles)(euiTheme);
47
47
  var barStyles = (0, _loading_chart.euiLoadingChartBarStyles)(euiTheme);
48
48
  var classes = (0, _classnames.default)('euiLoadingChart', {
@@ -71,13 +71,11 @@ var _EuiLoadingChart = function _EuiLoadingChart(_ref) {
71
71
  }, rest), bars);
72
72
  };
73
73
 
74
- exports._EuiLoadingChart = _EuiLoadingChart;
75
- _EuiLoadingChart.propTypes = {
74
+ exports.EuiLoadingChart = EuiLoadingChart;
75
+ EuiLoadingChart.propTypes = {
76
76
  className: _propTypes.default.string,
77
77
  "aria-label": _propTypes.default.string,
78
78
  "data-test-subj": _propTypes.default.string,
79
79
  size: _propTypes.default.any,
80
80
  mono: _propTypes.default.bool
81
- };
82
- var EuiLoadingChart = (0, _system.withEuiSystem)(_EuiLoadingChart);
83
- exports.EuiLoadingChart = EuiLoadingChart;
81
+ };
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports._EuiLoadingContent = exports.EuiLoadingContent = void 0;
6
+ exports.EuiLoadingContent = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
@@ -11,7 +11,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
11
11
 
12
12
  var _classnames = _interopRequireDefault(require("classnames"));
13
13
 
14
- var _system = require("../provider/system");
14
+ var _services = require("../../services");
15
15
 
16
16
  var _loading_strings = require("./_loading_strings");
17
17
 
@@ -19,7 +19,7 @@ var _loading_content = require("./loading_content.styles");
19
19
 
20
20
  var _react2 = require("@emotion/react");
21
21
 
22
- var _excluded = ["lines", "className", "aria-label", "euiTheme"];
22
+ var _excluded = ["lines", "className", "aria-label"];
23
23
 
24
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
25
25
 
@@ -29,14 +29,14 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
29
29
 
30
30
  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; }
31
31
 
32
- var _EuiLoadingContent = function _EuiLoadingContent(_ref) {
32
+ var EuiLoadingContent = function EuiLoadingContent(_ref) {
33
33
  var _ref$lines = _ref.lines,
34
34
  lines = _ref$lines === void 0 ? 3 : _ref$lines,
35
35
  className = _ref.className,
36
36
  ariaLabel = _ref['aria-label'],
37
- euiTheme = _ref.euiTheme,
38
37
  rest = _objectWithoutProperties(_ref, _excluded);
39
38
 
39
+ var euiTheme = (0, _services.useEuiTheme)();
40
40
  var styles = (0, _loading_content.euiLoadingContentStyles)(euiTheme);
41
41
  var lineCssStyles = [styles.euiLoadingContent__singleLine];
42
42
  var defaultLabel = (0, _loading_strings.useLoadingAriaLabel)();
@@ -57,12 +57,10 @@ var _EuiLoadingContent = function _EuiLoadingContent(_ref) {
57
57
  }, rest), lineElements);
58
58
  };
59
59
 
60
- exports._EuiLoadingContent = _EuiLoadingContent;
61
- _EuiLoadingContent.propTypes = {
60
+ exports.EuiLoadingContent = EuiLoadingContent;
61
+ EuiLoadingContent.propTypes = {
62
62
  className: _propTypes.default.string,
63
63
  "aria-label": _propTypes.default.string,
64
64
  "data-test-subj": _propTypes.default.string,
65
65
  lines: _propTypes.default.oneOf([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])
66
- };
67
- var EuiLoadingContent = (0, _system.withEuiSystem)(_EuiLoadingContent);
68
- exports.EuiLoadingContent = EuiLoadingContent;
66
+ };
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports._EuiLoadingLogo = exports.SIZES = exports.EuiLoadingLogo = void 0;
6
+ exports.SIZES = exports.EuiLoadingLogo = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
@@ -13,7 +13,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
13
13
 
14
14
  var _icon = require("../icon");
15
15
 
16
- var _system = require("../provider/system");
16
+ var _services = require("../../services");
17
17
 
18
18
  var _loading_strings = require("./_loading_strings");
19
19
 
@@ -21,7 +21,7 @@ var _loading_logo = require("./loading_logo.styles");
21
21
 
22
22
  var _react2 = require("@emotion/react");
23
23
 
24
- var _excluded = ["size", "logo", "aria-label", "className", "euiTheme"];
24
+ var _excluded = ["size", "logo", "aria-label", "className"];
25
25
 
26
26
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
27
27
 
@@ -34,16 +34,16 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
34
34
  var SIZES = ['m', 'l', 'xl'];
35
35
  exports.SIZES = SIZES;
36
36
 
37
- var _EuiLoadingLogo = function _EuiLoadingLogo(_ref) {
37
+ var EuiLoadingLogo = function EuiLoadingLogo(_ref) {
38
38
  var _ref$size = _ref.size,
39
39
  size = _ref$size === void 0 ? 'm' : _ref$size,
40
40
  _ref$logo = _ref.logo,
41
41
  logo = _ref$logo === void 0 ? 'logoKibana' : _ref$logo,
42
42
  ariaLabel = _ref['aria-label'],
43
43
  className = _ref.className,
44
- euiTheme = _ref.euiTheme,
45
44
  rest = _objectWithoutProperties(_ref, _excluded);
46
45
 
46
+ var euiTheme = (0, _services.useEuiTheme)();
47
47
  var defaultLabel = (0, _loading_strings.useLoadingAriaLabel)();
48
48
  var styles = (0, _loading_logo.euiLoadingLogoStyles)(euiTheme);
49
49
  var cssStyles = [styles.euiLoadingLogo, styles[size]];
@@ -63,8 +63,8 @@ var _EuiLoadingLogo = function _EuiLoadingLogo(_ref) {
63
63
  })));
64
64
  };
65
65
 
66
- exports._EuiLoadingLogo = _EuiLoadingLogo;
67
- _EuiLoadingLogo.propTypes = {
66
+ exports.EuiLoadingLogo = EuiLoadingLogo;
67
+ EuiLoadingLogo.propTypes = {
68
68
  className: _propTypes.default.string,
69
69
  "aria-label": _propTypes.default.string,
70
70
  "data-test-subj": _propTypes.default.string,
@@ -74,6 +74,4 @@ _EuiLoadingLogo.propTypes = {
74
74
  * While this component should be restricted to using logo icons, it works with any IconType
75
75
  */
76
76
  logo: _propTypes.default.oneOfType([_propTypes.default.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", "codeApp", "color", "compute", "console", "consoleApp", "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", "keyboardShortcut", "kqlField", "kqlFunction", "kqlOperand", "kqlSelector", "kqlValue", "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", "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", "tokenClass", "tokenProperty", "tokenEnum", "tokenVariable", "tokenMethod", "tokenAnnotation", "tokenException", "tokenInterface", "tokenParameter", "tokenField", "tokenElement", "tokenFunction", "tokenBoolean", "tokenString", "tokenArray", "tokenNumber", "tokenConstant", "tokenObject", "tokenEvent", "tokenKey", "tokenNull", "tokenStruct", "tokenPackage", "tokenOperator", "tokenEnumMember", "tokenRepo", "tokenSymbol", "tokenFile", "tokenModule", "tokenNamespace", "tokenDate", "tokenIP", "tokenNested", "tokenAlias", "tokenShape", "tokenGeo", "tokenRange", "tokenBinary", "tokenJoin", "tokenPercolator", "tokenFlattened", "tokenRankFeature", "tokenRankFeatures", "tokenKeyword", "tokenTag", "tokenCompletionSuggester", "tokenDenseVector", "tokenText", "tokenTokenCount", "tokenSearchType", "tokenHistogram"]).isRequired, _propTypes.default.string.isRequired, _propTypes.default.elementType.isRequired])
77
- };
78
- var EuiLoadingLogo = (0, _system.withEuiSystem)(_EuiLoadingLogo);
79
- exports.EuiLoadingLogo = EuiLoadingLogo;
77
+ };
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports._EuiLoadingSpinner = exports.SIZES = exports.EuiLoadingSpinner = void 0;
6
+ exports.SIZES = exports.EuiLoadingSpinner = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
@@ -11,7 +11,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
11
11
 
12
12
  var _classnames = _interopRequireDefault(require("classnames"));
13
13
 
14
- var _system = require("../provider/system");
14
+ var _services = require("../..//services");
15
15
 
16
16
  var _loading_strings = require("./_loading_strings");
17
17
 
@@ -19,7 +19,7 @@ var _loading_spinner = require("./loading_spinner.styles");
19
19
 
20
20
  var _react2 = require("@emotion/react");
21
21
 
22
- var _excluded = ["size", "className", "aria-label", "color", "euiTheme"];
22
+ var _excluded = ["size", "className", "aria-label", "color"];
23
23
 
24
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
25
25
 
@@ -32,15 +32,15 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
32
32
  var SIZES = ['s', 'm', 'l', 'xl', 'xxl'];
33
33
  exports.SIZES = SIZES;
34
34
 
35
- var _EuiLoadingSpinner = function _EuiLoadingSpinner(_ref) {
35
+ var EuiLoadingSpinner = function EuiLoadingSpinner(_ref) {
36
36
  var _ref$size = _ref.size,
37
37
  size = _ref$size === void 0 ? 'm' : _ref$size,
38
38
  className = _ref.className,
39
39
  ariaLabel = _ref['aria-label'],
40
40
  color = _ref.color,
41
- euiTheme = _ref.euiTheme,
42
41
  rest = _objectWithoutProperties(_ref, _excluded);
43
42
 
43
+ var euiTheme = (0, _services.useEuiTheme)();
44
44
  var styles = (0, _loading_spinner.euiLoadingSpinnerStyles)(euiTheme, color);
45
45
  var cssStyles = [styles.euiLoadingSpinner, styles[size]];
46
46
  var classes = (0, _classnames.default)('euiLoadingSpinner', className);
@@ -53,8 +53,8 @@ var _EuiLoadingSpinner = function _EuiLoadingSpinner(_ref) {
53
53
  }, rest));
54
54
  };
55
55
 
56
- exports._EuiLoadingSpinner = _EuiLoadingSpinner;
57
- _EuiLoadingSpinner.propTypes = {
56
+ exports.EuiLoadingSpinner = EuiLoadingSpinner;
57
+ EuiLoadingSpinner.propTypes = {
58
58
  className: _propTypes.default.string,
59
59
  "aria-label": _propTypes.default.string,
60
60
  "data-test-subj": _propTypes.default.string,
@@ -69,6 +69,4 @@ _EuiLoadingSpinner.propTypes = {
69
69
  border: _propTypes.default.any,
70
70
  highlight: _propTypes.default.any
71
71
  })
72
- };
73
- var EuiLoadingSpinner = (0, _system.withEuiSystem)(_EuiLoadingSpinner);
74
- exports.EuiLoadingSpinner = EuiLoadingSpinner;
72
+ };
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports._EuiMark = exports.EuiMark = void 0;
6
+ exports.EuiMark = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
@@ -13,13 +13,13 @@ var _classnames = _interopRequireDefault(require("classnames"));
13
13
 
14
14
  var _i18n = require("../i18n");
15
15
 
16
- var _system = require("../provider/system");
16
+ var _services = require("../../services");
17
17
 
18
18
  var _mark = require("./mark.styles");
19
19
 
20
20
  var _react2 = require("@emotion/react");
21
21
 
22
- var _excluded = ["children", "className", "euiTheme", "hasScreenReaderHelpText"];
22
+ var _excluded = ["children", "className", "hasScreenReaderHelpText"];
23
23
 
24
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
25
25
 
@@ -29,30 +29,30 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
29
29
 
30
30
  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; }
31
31
 
32
- var _EuiMark = function _EuiMark(_ref) {
32
+ var EuiMark = function EuiMark(_ref) {
33
33
  var children = _ref.children,
34
34
  className = _ref.className,
35
- euiTheme = _ref.euiTheme,
36
35
  _ref$hasScreenReaderH = _ref.hasScreenReaderHelpText,
37
36
  hasScreenReaderHelpText = _ref$hasScreenReaderH === void 0 ? true : _ref$hasScreenReaderH,
38
37
  rest = _objectWithoutProperties(_ref, _excluded);
39
38
 
39
+ var useTheme = (0, _services.useEuiTheme)();
40
40
  var highlightStart = (0, _i18n.useEuiI18n)('euiMark.highlightStart', 'highlight start');
41
41
  var highlightEnd = (0, _i18n.useEuiI18n)('euiMark.highlightEnd', 'highlight end');
42
- var styles = (0, _mark.euiMarkStyles)(euiTheme, {
42
+ var styles = (0, _mark.euiMarkStyles)(useTheme, {
43
43
  hasScreenReaderHelpText: hasScreenReaderHelpText,
44
44
  highlightStart: highlightStart,
45
45
  highlightEnd: highlightEnd
46
46
  });
47
47
  var classes = (0, _classnames.default)('euiMark', className);
48
48
  return (0, _react2.jsx)("mark", _extends({
49
- css: [styles],
49
+ css: [styles, ";label:EuiMark;"],
50
50
  className: classes
51
51
  }, rest), children);
52
52
  };
53
53
 
54
- exports._EuiMark = _EuiMark;
55
- _EuiMark.propTypes = {
54
+ exports.EuiMark = EuiMark;
55
+ EuiMark.propTypes = {
56
56
  className: _propTypes.default.string,
57
57
  "aria-label": _propTypes.default.string,
58
58
  "data-test-subj": _propTypes.default.string,
@@ -67,6 +67,4 @@ _EuiMark.propTypes = {
67
67
  * ReactNode to render as this component's content
68
68
  */
69
69
  children: _propTypes.default.node.isRequired
70
- };
71
- var EuiMark = (0, _system.withEuiSystem)(_EuiMark);
72
- exports.EuiMark = EuiMark;
70
+ };
@@ -5,7 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports._EuiMarkdownFormat = exports.EuiMarkdownFormat = void 0;
8
+ exports.EuiMarkdownFormat = void 0;
9
9
 
10
10
  var _react = _interopRequireWildcard(require("react"));
11
11
 
@@ -17,7 +17,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
17
17
 
18
18
  var _text = require("../text/text");
19
19
 
20
- var _system = require("../provider/system");
20
+ var _services = require("../../services");
21
21
 
22
22
  var _markdown_format = require("./markdown_format.styles");
23
23
 
@@ -25,7 +25,7 @@ var _markdown_default_plugins = require("./plugins/markdown_default_plugins");
25
25
 
26
26
  var _react2 = require("@emotion/react");
27
27
 
28
- var _excluded = ["children", "className", "parsingPluginList", "processingPluginList", "textSize", "euiTheme"];
28
+ var _excluded = ["children", "className", "parsingPluginList", "processingPluginList", "textSize"];
29
29
 
30
30
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
31
31
 
@@ -39,7 +39,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
39
39
 
40
40
  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; }
41
41
 
42
- var _EuiMarkdownFormat = function _EuiMarkdownFormat(_ref) {
42
+ var EuiMarkdownFormat = function EuiMarkdownFormat(_ref) {
43
43
  var children = _ref.children,
44
44
  className = _ref.className,
45
45
  _ref$parsingPluginLis = _ref.parsingPluginList,
@@ -48,7 +48,6 @@ var _EuiMarkdownFormat = function _EuiMarkdownFormat(_ref) {
48
48
  processingPluginList = _ref$processingPlugin === void 0 ? _markdown_default_plugins.defaultProcessingPlugins : _ref$processingPlugin,
49
49
  _ref$textSize = _ref.textSize,
50
50
  textSize = _ref$textSize === void 0 ? 'm' : _ref$textSize,
51
- euiTheme = _ref.euiTheme,
52
51
  rest = _objectWithoutProperties(_ref, _excluded);
53
52
 
54
53
  var processor = (0, _react.useMemo)(function () {
@@ -66,6 +65,7 @@ var _EuiMarkdownFormat = function _EuiMarkdownFormat(_ref) {
66
65
  return children;
67
66
  }
68
67
  }, [children, processor]);
68
+ var euiTheme = (0, _services.useEuiTheme)();
69
69
  var styles = (0, _markdown_format.euiMarkdownFormatStyles)(euiTheme);
70
70
  var cssStyles = [styles.euiMarkdownFormat, styles[textSize]];
71
71
  var classes = (0, _classnames.default)('euiMarkdownFormat', className);
@@ -76,8 +76,8 @@ var _EuiMarkdownFormat = function _EuiMarkdownFormat(_ref) {
76
76
  }, rest), result);
77
77
  };
78
78
 
79
- exports._EuiMarkdownFormat = _EuiMarkdownFormat;
80
- _EuiMarkdownFormat.propTypes = {
79
+ exports.EuiMarkdownFormat = EuiMarkdownFormat;
80
+ EuiMarkdownFormat.propTypes = {
81
81
  className: _propTypes.default.string,
82
82
  "aria-label": _propTypes.default.string,
83
83
  "data-test-subj": _propTypes.default.string,
@@ -93,6 +93,4 @@ _EuiMarkdownFormat.propTypes = {
93
93
  * Determines the text size. Choose `relative` to control the `font-size` based on the value of a parent container.
94
94
  */
95
95
  textSize: _propTypes.default.any
96
- };
97
- var EuiMarkdownFormat = (0, _system.withEuiSystem)(_EuiMarkdownFormat);
98
- exports.EuiMarkdownFormat = EuiMarkdownFormat;
96
+ };