@elastic/eui 59.0.1 → 59.1.0-rc1

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 (265) hide show
  1. package/dist/eui_charts_theme.js +330 -330
  2. package/dist/eui_charts_theme.js.map +1 -1
  3. package/dist/eui_theme_dark.css +2 -136
  4. package/dist/eui_theme_dark.json +0 -6
  5. package/dist/eui_theme_dark.json.d.ts +0 -6
  6. package/dist/eui_theme_dark.min.css +1 -1
  7. package/dist/eui_theme_light.css +2 -136
  8. package/dist/eui_theme_light.json +0 -6
  9. package/dist/eui_theme_light.json.d.ts +0 -6
  10. package/dist/eui_theme_light.min.css +1 -1
  11. package/es/components/accessibility/skip_link/skip_link.js +9 -7
  12. package/es/components/avatar/avatar.js +9 -7
  13. package/es/components/bottom_bar/bottom_bar.js +8 -9
  14. package/es/components/breadcrumbs/breadcrumbs.js +2 -1
  15. package/es/components/button/{button_content.js → _button_content_deprecated.js} +4 -3
  16. package/es/components/button/button.js +16 -10
  17. package/es/components/button/button_display/_button_display.js +141 -0
  18. package/es/components/button/button_display/_button_display.styles.js +53 -0
  19. package/es/components/button/button_display/_button_display_content.js +100 -0
  20. package/es/components/button/button_display/_button_display_content.styles.js +61 -0
  21. package/es/components/button/button_empty/button_empty.js +3 -2
  22. package/es/components/button/button_group/button_group.js +2 -1
  23. package/es/components/button/button_group/button_group_button.js +3 -2
  24. package/es/components/call_out/call_out.js +9 -8
  25. package/es/components/card/card.js +2 -1
  26. package/es/components/card/card_select.js +2 -1
  27. package/es/components/date_picker/auto_refresh/auto_refresh.js +2 -1
  28. package/es/components/expression/expression.js +11 -10
  29. package/es/components/facet/facet_button.js +36 -19
  30. package/es/components/facet/facet_button.styles.js +64 -0
  31. package/es/components/facet/facet_group.js +17 -27
  32. package/es/components/facet/facet_group.styles.js +79 -0
  33. package/es/components/header/header_links/header_link.js +2 -1
  34. package/es/components/health/health.js +7 -6
  35. package/es/components/horizontal_rule/horizontal_rule.js +7 -6
  36. package/es/components/link/link.js +8 -7
  37. package/es/components/loading/loading_chart.js +7 -6
  38. package/es/components/loading/loading_content.js +7 -6
  39. package/es/components/loading/loading_logo.js +7 -6
  40. package/es/components/loading/loading_spinner.js +20 -8
  41. package/es/components/loading/loading_spinner.styles.js +4 -4
  42. package/es/components/mark/mark.js +9 -8
  43. package/es/components/markdown_editor/markdown_format.js +7 -6
  44. package/es/components/notification/notification_event.js +2 -1
  45. package/es/components/pagination/pagination_button.js +2 -1
  46. package/es/components/panel/panel.js +8 -7
  47. package/es/components/provider/cache/cache_context.js +12 -0
  48. package/es/components/provider/cache/cache_provider.js +17 -0
  49. package/es/components/provider/cache/index.js +9 -0
  50. package/es/components/provider/index.js +1 -1
  51. package/es/components/provider/provider.js +39 -5
  52. package/es/components/provider/system/index.js +8 -0
  53. package/es/components/provider/system/system.js +33 -0
  54. package/es/components/spacer/spacer.js +7 -6
  55. package/es/components/text/text.js +7 -6
  56. package/es/components/text/text_color.js +7 -6
  57. package/es/components/timeline/timeline_item.js +7 -6
  58. package/es/components/timeline/timeline_item_icon.js +7 -6
  59. package/es/components/title/title.js +7 -6
  60. package/es/global_styling/utility/utility.js +27 -0
  61. package/es/services/theme/hooks.js +2 -2
  62. package/es/services/theme/provider.js +1 -5
  63. package/eui.d.ts +1030 -357
  64. package/i18ntokens.json +12 -12
  65. package/lib/components/accessibility/skip_link/skip_link.js +13 -10
  66. package/lib/components/avatar/avatar.js +12 -8
  67. package/lib/components/bottom_bar/bottom_bar.js +9 -6
  68. package/lib/components/breadcrumbs/breadcrumbs.js +2 -1
  69. package/lib/components/button/{button_content.js → _button_content_deprecated.js} +6 -5
  70. package/lib/components/button/button.js +19 -13
  71. package/lib/components/button/button_display/_button_display.js +146 -0
  72. package/lib/components/button/button_display/_button_display.styles.js +59 -0
  73. package/lib/components/button/button_display/_button_display_content.js +111 -0
  74. package/lib/components/button/button_display/_button_display_content.styles.js +64 -0
  75. package/lib/components/button/button_empty/button_empty.js +4 -3
  76. package/lib/components/button/button_group/button_group.js +2 -1
  77. package/lib/components/button/button_group/button_group_button.js +3 -2
  78. package/lib/components/call_out/call_out.js +14 -10
  79. package/lib/components/card/card.js +2 -1
  80. package/lib/components/card/card_select.js +2 -1
  81. package/lib/components/date_picker/auto_refresh/auto_refresh.js +2 -1
  82. package/lib/components/expression/expression.js +14 -12
  83. package/lib/components/facet/facet_button.js +43 -21
  84. package/lib/components/facet/facet_button.styles.js +79 -0
  85. package/lib/components/facet/facet_group.js +20 -29
  86. package/lib/components/facet/facet_group.styles.js +82 -0
  87. package/lib/components/header/header_links/header_link.js +2 -1
  88. package/lib/components/health/health.js +10 -8
  89. package/lib/components/horizontal_rule/horizontal_rule.js +10 -8
  90. package/lib/components/link/link.js +13 -7
  91. package/lib/components/loading/loading_chart.js +10 -8
  92. package/lib/components/loading/loading_content.js +10 -8
  93. package/lib/components/loading/loading_logo.js +10 -8
  94. package/lib/components/loading/loading_spinner.js +23 -10
  95. package/lib/components/loading/loading_spinner.styles.js +4 -4
  96. package/lib/components/mark/mark.js +12 -10
  97. package/lib/components/markdown_editor/markdown_format.js +10 -8
  98. package/lib/components/notification/notification_event.js +2 -1
  99. package/lib/components/panel/panel.js +11 -9
  100. package/lib/components/provider/cache/cache_context.js +24 -0
  101. package/lib/components/provider/cache/cache_provider.js +29 -0
  102. package/lib/components/provider/cache/index.js +31 -0
  103. package/lib/components/provider/index.js +12 -7
  104. package/lib/components/provider/provider.js +40 -5
  105. package/lib/components/provider/system/index.js +18 -0
  106. package/lib/components/provider/system/system.js +45 -0
  107. package/lib/components/spacer/spacer.js +10 -8
  108. package/lib/components/text/text.js +10 -8
  109. package/lib/components/text/text_color.js +10 -8
  110. package/lib/components/timeline/timeline_item.js +10 -8
  111. package/lib/components/timeline/timeline_item_icon.js +10 -8
  112. package/lib/components/title/title.js +11 -9
  113. package/lib/global_styling/utility/utility.js +31 -0
  114. package/lib/services/theme/hooks.js +2 -2
  115. package/lib/services/theme/provider.js +3 -6
  116. package/optimize/es/components/accessibility/skip_link/skip_link.js +6 -5
  117. package/optimize/es/components/avatar/avatar.js +7 -5
  118. package/optimize/es/components/bottom_bar/bottom_bar.js +8 -9
  119. package/optimize/es/components/breadcrumbs/breadcrumbs.js +2 -1
  120. package/optimize/es/components/button/{button_content.js → _button_content_deprecated.js} +1 -1
  121. package/optimize/es/components/button/button.js +13 -8
  122. package/optimize/es/components/button/button_display/_button_display.js +73 -0
  123. package/optimize/es/components/button/button_display/_button_display.styles.js +53 -0
  124. package/optimize/es/components/button/button_display/_button_display_content.js +67 -0
  125. package/optimize/es/components/button/button_display/_button_display_content.styles.js +61 -0
  126. package/optimize/es/components/button/button_empty/button_empty.js +1 -1
  127. package/optimize/es/components/button/button_group/button_group_button.js +1 -1
  128. package/optimize/es/components/call_out/call_out.js +8 -7
  129. package/optimize/es/components/expression/expression.js +10 -9
  130. package/optimize/es/components/facet/facet_button.js +35 -18
  131. package/optimize/es/components/facet/facet_button.styles.js +64 -0
  132. package/optimize/es/components/facet/facet_group.js +14 -24
  133. package/optimize/es/components/facet/facet_group.styles.js +79 -0
  134. package/optimize/es/components/health/health.js +6 -5
  135. package/optimize/es/components/horizontal_rule/horizontal_rule.js +6 -5
  136. package/optimize/es/components/link/link.js +7 -6
  137. package/optimize/es/components/loading/loading_chart.js +6 -5
  138. package/optimize/es/components/loading/loading_content.js +6 -5
  139. package/optimize/es/components/loading/loading_logo.js +6 -5
  140. package/optimize/es/components/loading/loading_spinner.js +8 -6
  141. package/optimize/es/components/loading/loading_spinner.styles.js +4 -4
  142. package/optimize/es/components/mark/mark.js +8 -7
  143. package/optimize/es/components/markdown_editor/markdown_format.js +6 -5
  144. package/optimize/es/components/panel/panel.js +7 -6
  145. package/optimize/es/components/provider/cache/cache_context.js +12 -0
  146. package/optimize/es/components/provider/cache/cache_provider.js +17 -0
  147. package/optimize/es/components/provider/cache/index.js +9 -0
  148. package/optimize/es/components/provider/index.js +1 -1
  149. package/optimize/es/components/provider/provider.js +39 -5
  150. package/optimize/es/components/provider/system/index.js +8 -0
  151. package/optimize/es/components/provider/system/system.js +33 -0
  152. package/optimize/es/components/spacer/spacer.js +6 -5
  153. package/optimize/es/components/text/text.js +6 -5
  154. package/optimize/es/components/text/text_color.js +6 -5
  155. package/optimize/es/components/timeline/timeline_item.js +6 -5
  156. package/optimize/es/components/timeline/timeline_item_icon.js +6 -5
  157. package/optimize/es/components/title/title.js +6 -5
  158. package/optimize/es/global_styling/utility/utility.js +27 -0
  159. package/optimize/es/services/theme/hooks.js +2 -2
  160. package/optimize/es/services/theme/provider.js +1 -5
  161. package/optimize/lib/components/accessibility/skip_link/skip_link.js +8 -6
  162. package/optimize/lib/components/avatar/avatar.js +9 -5
  163. package/optimize/lib/components/bottom_bar/bottom_bar.js +9 -6
  164. package/optimize/lib/components/breadcrumbs/breadcrumbs.js +2 -1
  165. package/optimize/lib/components/button/{button_content.js → _button_content_deprecated.js} +3 -3
  166. package/optimize/lib/components/button/button.js +16 -11
  167. package/optimize/lib/components/button/button_display/_button_display.js +79 -0
  168. package/optimize/lib/components/button/button_display/_button_display.styles.js +59 -0
  169. package/optimize/lib/components/button/button_display/_button_display_content.js +78 -0
  170. package/optimize/lib/components/button/button_display/_button_display_content.styles.js +64 -0
  171. package/optimize/lib/components/button/button_empty/button_empty.js +2 -2
  172. package/optimize/lib/components/button/button_group/button_group_button.js +1 -1
  173. package/optimize/lib/components/call_out/call_out.js +13 -9
  174. package/optimize/lib/components/expression/expression.js +11 -9
  175. package/optimize/lib/components/facet/facet_button.js +40 -18
  176. package/optimize/lib/components/facet/facet_button.styles.js +79 -0
  177. package/optimize/lib/components/facet/facet_group.js +15 -24
  178. package/optimize/lib/components/facet/facet_group.styles.js +82 -0
  179. package/optimize/lib/components/health/health.js +7 -5
  180. package/optimize/lib/components/horizontal_rule/horizontal_rule.js +7 -5
  181. package/optimize/lib/components/link/link.js +12 -6
  182. package/optimize/lib/components/loading/loading_chart.js +7 -5
  183. package/optimize/lib/components/loading/loading_content.js +7 -5
  184. package/optimize/lib/components/loading/loading_logo.js +7 -5
  185. package/optimize/lib/components/loading/loading_spinner.js +9 -6
  186. package/optimize/lib/components/loading/loading_spinner.styles.js +4 -4
  187. package/optimize/lib/components/mark/mark.js +9 -7
  188. package/optimize/lib/components/markdown_editor/markdown_format.js +7 -5
  189. package/optimize/lib/components/panel/panel.js +8 -6
  190. package/optimize/lib/components/provider/cache/cache_context.js +24 -0
  191. package/optimize/lib/components/provider/cache/cache_provider.js +29 -0
  192. package/optimize/lib/components/provider/cache/index.js +31 -0
  193. package/optimize/lib/components/provider/index.js +12 -7
  194. package/optimize/lib/components/provider/provider.js +40 -5
  195. package/optimize/lib/components/provider/system/index.js +18 -0
  196. package/optimize/lib/components/provider/system/system.js +54 -0
  197. package/optimize/lib/components/spacer/spacer.js +7 -5
  198. package/optimize/lib/components/text/text.js +7 -5
  199. package/optimize/lib/components/text/text_color.js +7 -5
  200. package/optimize/lib/components/timeline/timeline_item.js +7 -5
  201. package/optimize/lib/components/timeline/timeline_item_icon.js +7 -5
  202. package/optimize/lib/components/title/title.js +8 -6
  203. package/optimize/lib/global_styling/utility/utility.js +31 -0
  204. package/optimize/lib/services/theme/hooks.js +2 -2
  205. package/optimize/lib/services/theme/provider.js +3 -6
  206. package/package.json +1 -1
  207. package/src/components/index.scss +0 -1
  208. package/src/components/selectable/selectable_message/_selectable_message.scss +1 -0
  209. package/src/themes/amsterdam/overrides/_index.scss +0 -1
  210. package/test-env/components/accessibility/skip_link/skip_link.js +13 -10
  211. package/test-env/components/avatar/avatar.js +12 -8
  212. package/test-env/components/bottom_bar/bottom_bar.js +9 -6
  213. package/test-env/components/breadcrumbs/breadcrumbs.js +2 -1
  214. package/test-env/components/button/{button_content.js → _button_content_deprecated.js} +6 -5
  215. package/test-env/components/button/button.js +19 -13
  216. package/test-env/components/button/button_display/_button_display.js +143 -0
  217. package/test-env/components/button/button_display/_button_display.styles.js +59 -0
  218. package/test-env/components/button/button_display/_button_display_content.js +108 -0
  219. package/test-env/components/button/button_display/_button_display_content.styles.js +64 -0
  220. package/test-env/components/button/button_empty/button_empty.js +4 -3
  221. package/test-env/components/button/button_group/button_group.js +2 -1
  222. package/test-env/components/button/button_group/button_group_button.js +3 -2
  223. package/test-env/components/call_out/call_out.js +14 -10
  224. package/test-env/components/card/card.js +2 -1
  225. package/test-env/components/card/card_select.js +2 -1
  226. package/test-env/components/date_picker/auto_refresh/auto_refresh.js +2 -1
  227. package/test-env/components/expression/expression.js +14 -12
  228. package/test-env/components/facet/facet_button.js +43 -21
  229. package/test-env/components/facet/facet_button.styles.js +79 -0
  230. package/test-env/components/facet/facet_group.js +20 -29
  231. package/test-env/components/facet/facet_group.styles.js +82 -0
  232. package/test-env/components/header/header_links/header_link.js +2 -1
  233. package/test-env/components/health/health.js +10 -8
  234. package/test-env/components/horizontal_rule/horizontal_rule.js +10 -8
  235. package/test-env/components/link/link.js +13 -7
  236. package/test-env/components/loading/loading_chart.js +10 -8
  237. package/test-env/components/loading/loading_content.js +10 -8
  238. package/test-env/components/loading/loading_logo.js +10 -8
  239. package/test-env/components/loading/loading_spinner.js +23 -10
  240. package/test-env/components/loading/loading_spinner.styles.js +4 -4
  241. package/test-env/components/mark/mark.js +12 -10
  242. package/test-env/components/markdown_editor/markdown_format.js +10 -8
  243. package/test-env/components/notification/notification_event.js +2 -1
  244. package/test-env/components/panel/panel.js +11 -9
  245. package/test-env/components/provider/cache/cache_context.js +24 -0
  246. package/test-env/components/provider/cache/cache_provider.js +29 -0
  247. package/test-env/components/provider/cache/index.js +31 -0
  248. package/test-env/components/provider/index.js +12 -7
  249. package/test-env/components/provider/provider.js +40 -5
  250. package/test-env/components/provider/system/index.js +18 -0
  251. package/test-env/components/provider/system/system.js +54 -0
  252. package/test-env/components/spacer/spacer.js +10 -8
  253. package/test-env/components/text/text.js +10 -8
  254. package/test-env/components/text/text_color.js +10 -8
  255. package/test-env/components/timeline/timeline_item.js +10 -8
  256. package/test-env/components/timeline/timeline_item_icon.js +10 -8
  257. package/test-env/components/title/title.js +11 -9
  258. package/test-env/global_styling/utility/utility.js +31 -0
  259. package/test-env/services/theme/hooks.js +2 -2
  260. package/test-env/services/theme/provider.js +3 -6
  261. package/src/components/facet/_facet_button.scss +0 -69
  262. package/src/components/facet/_facet_group.scss +0 -24
  263. package/src/components/facet/_index.scss +0 -4
  264. package/src/components/facet/_variables.scss +0 -6
  265. package/src/themes/amsterdam/overrides/_facet.scss +0 -10
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.euiFacetGroupStyles = void 0;
7
+
8
+ var _react = require("@emotion/react");
9
+
10
+ var _services = require("../../services");
11
+
12
+ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
13
+
14
+ var _facetGroupGutterSize = function _facetGroupGutterSize(_ref4) {
15
+ var gutterSize = _ref4.gutterSize,
16
+ layout = _ref4.layout;
17
+
18
+ var _useEuiTheme = (0, _services.useEuiTheme)(),
19
+ euiTheme = _useEuiTheme.euiTheme;
20
+
21
+ var isHorizontalLayout = layout === 'horizontal';
22
+ var gutterHorizontal = "calc(".concat(euiTheme.size.m, " + ").concat(gutterSize, ")");
23
+ var gutterVertical = gutterSize;
24
+ return isHorizontalLayout ? "gap: ".concat(gutterVertical, " ").concat(gutterHorizontal, ";") : "gap: ".concat(gutterVertical, " 0;");
25
+ };
26
+
27
+ var _ref = process.env.NODE_ENV === "production" ? {
28
+ name: "omnk2l-vertical",
29
+ styles: "flex-direction:column;label:vertical;"
30
+ } : {
31
+ name: "omnk2l-vertical",
32
+ styles: "flex-direction:column;label:vertical;",
33
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
34
+ };
35
+
36
+ var _ref2 = process.env.NODE_ENV === "production" ? {
37
+ name: "envaaw-horizontal",
38
+ styles: "flex-direction:row;flex-wrap:wrap;label:horizontal;"
39
+ } : {
40
+ name: "envaaw-horizontal",
41
+ styles: "flex-direction:row;flex-wrap:wrap;label:horizontal;",
42
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
43
+ };
44
+
45
+ var _ref3 = process.env.NODE_ENV === "production" ? {
46
+ name: "1g68sie-euiFacetGroup",
47
+ styles: "display:flex;flex-grow:1;label:euiFacetGroup;"
48
+ } : {
49
+ name: "1g68sie-euiFacetGroup",
50
+ styles: "display:flex;flex-grow:1;label:euiFacetGroup;",
51
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
52
+ };
53
+
54
+ var euiFacetGroupStyles = function euiFacetGroupStyles(_ref5, layout) {
55
+ var euiTheme = _ref5.euiTheme;
56
+ return {
57
+ // Base
58
+ euiFacetGroup: _ref3,
59
+ // Gutter sizes
60
+ none: /*#__PURE__*/(0, _react.css)(_facetGroupGutterSize({
61
+ gutterSize: '0',
62
+ layout: layout
63
+ }), ";label:none;"),
64
+ s: /*#__PURE__*/(0, _react.css)(_facetGroupGutterSize({
65
+ gutterSize: euiTheme.size.xs,
66
+ layout: layout
67
+ }), ";label:s;"),
68
+ m: /*#__PURE__*/(0, _react.css)(_facetGroupGutterSize({
69
+ gutterSize: euiTheme.size.s,
70
+ layout: layout
71
+ }), ";label:m;"),
72
+ l: /*#__PURE__*/(0, _react.css)(_facetGroupGutterSize({
73
+ gutterSize: euiTheme.size.m,
74
+ layout: layout
75
+ }), ";label:l;"),
76
+ // layouts
77
+ horizontal: _ref2,
78
+ vertical: _ref
79
+ };
80
+ };
81
+
82
+ exports.euiFacetGroupStyles = euiFacetGroupStyles;
@@ -117,7 +117,8 @@ EuiHeaderLink.propTypes = {
117
117
  iconSide: _propTypes.default.oneOf(["left", "right"]),
118
118
 
119
119
  /**
120
- * Object of props passed to the <span/> wrapping the content's text/children only (not icon)
120
+ * Object of props passed to the <span/> wrapping the content's text (only if the children is a `string`)
121
+ * It doesn't apply to the icon.
121
122
  */
122
123
  textProps: _propTypes.default.shape({
123
124
  className: _propTypes.default.string,
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.TEXT_SIZES = exports.EuiHealth = void 0;
8
+ exports._EuiHealth = exports.TEXT_SIZES = exports.EuiHealth = void 0;
9
9
 
10
10
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
11
 
@@ -17,7 +17,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
17
17
 
18
18
  var _classnames = _interopRequireDefault(require("classnames"));
19
19
 
20
- var _services = require("../../services");
20
+ var _system = require("../provider/system");
21
21
 
22
22
  var _health = require("./health.styles");
23
23
 
@@ -27,18 +27,18 @@ var _flex = require("../flex");
27
27
 
28
28
  var _react2 = require("@emotion/react");
29
29
 
30
- var _excluded = ["children", "className", "color", "textSize"];
30
+ var _excluded = ["children", "className", "color", "euiTheme", "textSize"];
31
31
  var TEXT_SIZES = ['xs', 's', 'm', 'inherit'];
32
32
  exports.TEXT_SIZES = TEXT_SIZES;
33
33
 
34
- var EuiHealth = function EuiHealth(_ref) {
34
+ var _EuiHealth = function _EuiHealth(_ref) {
35
35
  var children = _ref.children,
36
36
  className = _ref.className,
37
37
  color = _ref.color,
38
+ euiTheme = _ref.euiTheme,
38
39
  _ref$textSize = _ref.textSize,
39
40
  textSize = _ref$textSize === void 0 ? 's' : _ref$textSize,
40
41
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
41
- var euiTheme = (0, _services.useEuiTheme)();
42
42
  var styles = (0, _health.euiHealthStyles)(euiTheme);
43
43
  var cssStyles = [styles.euiHealth, styles[textSize]];
44
44
  var classes = (0, _classnames.default)('euiHealth', className);
@@ -59,8 +59,8 @@ var EuiHealth = function EuiHealth(_ref) {
59
59
  }, children)));
60
60
  };
61
61
 
62
- exports.EuiHealth = EuiHealth;
63
- EuiHealth.propTypes = {
62
+ exports._EuiHealth = _EuiHealth;
63
+ _EuiHealth.propTypes = {
64
64
  className: _propTypes.default.string,
65
65
  "aria-label": _propTypes.default.string,
66
66
  "data-test-subj": _propTypes.default.string,
@@ -77,4 +77,6 @@ EuiHealth.propTypes = {
77
77
  * The `inherit` style will get its font size from the parent element
78
78
  */
79
79
  textSize: _propTypes.default.any
80
- };
80
+ };
81
+ var EuiHealth = (0, _system.withEuiSystem)(_EuiHealth);
82
+ exports.EuiHealth = EuiHealth;
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.SIZES = exports.MARGINS = exports.EuiHorizontalRule = void 0;
8
+ exports._EuiHorizontalRule = exports.SIZES = exports.MARGINS = exports.EuiHorizontalRule = void 0;
9
9
 
10
10
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
11
 
@@ -19,13 +19,13 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
19
19
 
20
20
  var _classnames = _interopRequireDefault(require("classnames"));
21
21
 
22
- var _services = require("../../services");
22
+ var _system = require("../provider/system");
23
23
 
24
24
  var _horizontal_rule = require("./horizontal_rule.styles");
25
25
 
26
26
  var _react2 = require("@emotion/react");
27
27
 
28
- var _excluded = ["className", "size", "margin"];
28
+ var _excluded = ["className", "euiTheme", "size", "margin"];
29
29
  var SIZES = ['full', 'half', 'quarter'];
30
30
  exports.SIZES = SIZES;
31
31
  var MARGINS = ['none', 'xs', 's', 'm', 'l', 'xl', 'xxl'];
@@ -40,16 +40,16 @@ var marginToClassNameMap = {
40
40
  xxl: 'marginXXLarge'
41
41
  };
42
42
 
43
- var EuiHorizontalRule = function EuiHorizontalRule(_ref) {
43
+ var _EuiHorizontalRule = function _EuiHorizontalRule(_ref) {
44
44
  var _classNames;
45
45
 
46
46
  var className = _ref.className,
47
+ euiTheme = _ref.euiTheme,
47
48
  _ref$size = _ref.size,
48
49
  size = _ref$size === void 0 ? 'full' : _ref$size,
49
50
  _ref$margin = _ref.margin,
50
51
  margin = _ref$margin === void 0 ? 'l' : _ref$margin,
51
52
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
52
- var euiTheme = (0, _services.useEuiTheme)();
53
53
  var styles = (0, _horizontal_rule.euiHorizontalRuleStyles)(euiTheme);
54
54
  var classes = (0, _classnames.default)('euiHorizontalRule', (_classNames = {}, (0, _defineProperty2.default)(_classNames, "euiHorizontalRule--".concat(size), size), (0, _defineProperty2.default)(_classNames, "euiHorizontalRule--".concat(marginToClassNameMap[margin]), margin && margin !== 'none'), _classNames), className);
55
55
  var cssStyles = [styles.euiHorizontalRule, styles[size], styles[margin]];
@@ -59,8 +59,8 @@ var EuiHorizontalRule = function EuiHorizontalRule(_ref) {
59
59
  }, rest));
60
60
  };
61
61
 
62
- exports.EuiHorizontalRule = EuiHorizontalRule;
63
- EuiHorizontalRule.propTypes = {
62
+ exports._EuiHorizontalRule = _EuiHorizontalRule;
63
+ _EuiHorizontalRule.propTypes = {
64
64
  /**
65
65
  * Defines the width of the HR.
66
66
  */
@@ -69,4 +69,6 @@ EuiHorizontalRule.propTypes = {
69
69
  className: _propTypes.default.string,
70
70
  "aria-label": _propTypes.default.string,
71
71
  "data-test-subj": _propTypes.default.string
72
- };
72
+ };
73
+ var EuiHorizontalRule = (0, _system.withEuiSystem)(_EuiHorizontalRule);
74
+ exports.EuiHorizontalRule = EuiHorizontalRule;
@@ -7,7 +7,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
7
7
  Object.defineProperty(exports, "__esModule", {
8
8
  value: true
9
9
  });
10
- exports.EuiLink = exports.COLORS = void 0;
10
+ exports._EuiLink = exports.EuiLink = exports.COLORS = void 0;
11
11
 
12
12
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
13
13
 
@@ -23,6 +23,8 @@ var _classnames = _interopRequireDefault(require("classnames"));
23
23
 
24
24
  var _services = require("../../services");
25
25
 
26
+ var _system = require("../provider/system");
27
+
26
28
  var _link = require("./link.styles");
27
29
 
28
30
  var _icon = require("../icon");
@@ -35,7 +37,7 @@ var _href_validator = require("../../services/security/href_validator");
35
37
 
36
38
  var _react2 = require("@emotion/react");
37
39
 
38
- var _excluded = ["children", "color", "className", "href", "external", "target", "rel", "type", "onClick", "disabled"];
40
+ var _excluded = ["children", "color", "className", "href", "external", "target", "rel", "type", "onClick", "disabled", "euiTheme"];
39
41
 
40
42
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
41
43
 
@@ -47,7 +49,8 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
47
49
 
48
50
  var COLORS = ['primary', 'subdued', 'success', 'accent', 'danger', 'warning', 'text', 'ghost'];
49
51
  exports.COLORS = COLORS;
50
- var EuiLink = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
52
+
53
+ var _EuiLink = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
51
54
  var children = _ref.children,
52
55
  _ref$color = _ref.color,
53
56
  color = _ref$color === void 0 ? 'primary' : _ref$color,
@@ -60,8 +63,8 @@ var EuiLink = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
60
63
  type = _ref$type === void 0 ? 'button' : _ref$type,
61
64
  onClick = _ref.onClick,
62
65
  _disabled = _ref.disabled,
66
+ euiTheme = _ref.euiTheme,
63
67
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
64
- var euiTheme = (0, _services.useEuiTheme)();
65
68
  var styles = (0, _link.euiLinkStyles)(euiTheme);
66
69
  var cssStyles = [styles.euiLink];
67
70
  var cssScreenReaderTextStyles = [styles.euiLink__screenReaderText];
@@ -115,8 +118,9 @@ var EuiLink = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
115
118
  ref: ref
116
119
  }, anchorProps), children, showExternalLinkIcon && externalLinkIcon, target === '_blank' && newTargetScreenreaderText);
117
120
  });
118
- exports.EuiLink = EuiLink;
119
- EuiLink.propTypes = {
121
+
122
+ exports._EuiLink = _EuiLink;
123
+ _EuiLink.propTypes = {
120
124
  className: _propTypes.default.string,
121
125
  "aria-label": _propTypes.default.string,
122
126
  "data-test-subj": _propTypes.default.string,
@@ -138,4 +142,6 @@ EuiLink.propTypes = {
138
142
  */
139
143
  external: _propTypes.default.bool
140
144
  };
141
- EuiLink.displayName = 'EuiLink';
145
+ _EuiLink.displayName = 'EuiLink';
146
+ var EuiLink = (0, _system.withEuiSystem)(_EuiLink);
147
+ exports.EuiLink = EuiLink;
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.SIZES = exports.EuiLoadingChart = void 0;
8
+ exports._EuiLoadingChart = exports.SIZES = exports.EuiLoadingChart = void 0;
9
9
 
10
10
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
11
 
@@ -17,7 +17,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
17
17
 
18
18
  var _classnames = _interopRequireDefault(require("classnames"));
19
19
 
20
- var _services = require("../../services");
20
+ var _system = require("../provider/system");
21
21
 
22
22
  var _loading_chart = require("./loading_chart.styles");
23
23
 
@@ -25,20 +25,20 @@ var _i18n = require("../i18n");
25
25
 
26
26
  var _react2 = require("@emotion/react");
27
27
 
28
- var _excluded = ["size", "mono", "className", "aria-label"];
28
+ var _excluded = ["size", "mono", "className", "aria-label", "euiTheme"];
29
29
  var SIZES = ['m', 'l', 'xl'];
30
30
  exports.SIZES = SIZES;
31
31
 
32
- var EuiLoadingChart = function EuiLoadingChart(_ref) {
32
+ var _EuiLoadingChart = function _EuiLoadingChart(_ref) {
33
33
  var _ref$size = _ref.size,
34
34
  size = _ref$size === void 0 ? 'm' : _ref$size,
35
35
  _ref$mono = _ref.mono,
36
36
  mono = _ref$mono === void 0 ? false : _ref$mono,
37
37
  className = _ref.className,
38
38
  ariaLabel = _ref['aria-label'],
39
+ euiTheme = _ref.euiTheme,
39
40
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
40
41
  var defaultAriaLabel = (0, _i18n.useEuiI18n)('euiLoadingChart.ariaLabel', 'Loading');
41
- var euiTheme = (0, _services.useEuiTheme)();
42
42
  var styles = (0, _loading_chart.euiLoadingChartStyles)(euiTheme);
43
43
  var barStyles = (0, _loading_chart.euiLoadingChartBarStyles)(euiTheme);
44
44
  var classes = (0, _classnames.default)('euiLoadingChart', {
@@ -67,11 +67,13 @@ var EuiLoadingChart = function EuiLoadingChart(_ref) {
67
67
  }, rest), bars);
68
68
  };
69
69
 
70
- exports.EuiLoadingChart = EuiLoadingChart;
71
- EuiLoadingChart.propTypes = {
70
+ exports._EuiLoadingChart = _EuiLoadingChart;
71
+ _EuiLoadingChart.propTypes = {
72
72
  className: _propTypes.default.string,
73
73
  "aria-label": _propTypes.default.string,
74
74
  "data-test-subj": _propTypes.default.string,
75
75
  size: _propTypes.default.any,
76
76
  mono: _propTypes.default.bool
77
- };
77
+ };
78
+ var EuiLoadingChart = (0, _system.withEuiSystem)(_EuiLoadingChart);
79
+ exports.EuiLoadingChart = EuiLoadingChart;
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.EuiLoadingContent = void 0;
8
+ exports._EuiLoadingContent = exports.EuiLoadingContent = void 0;
9
9
 
10
10
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
11
 
@@ -17,7 +17,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
17
17
 
18
18
  var _classnames = _interopRequireDefault(require("classnames"));
19
19
 
20
- var _services = require("../../services");
20
+ var _system = require("../provider/system");
21
21
 
22
22
  var _loading_strings = require("./_loading_strings");
23
23
 
@@ -25,15 +25,15 @@ var _loading_content = require("./loading_content.styles");
25
25
 
26
26
  var _react2 = require("@emotion/react");
27
27
 
28
- var _excluded = ["lines", "className", "aria-label"];
28
+ var _excluded = ["lines", "className", "aria-label", "euiTheme"];
29
29
 
30
- var EuiLoadingContent = function EuiLoadingContent(_ref) {
30
+ var _EuiLoadingContent = function _EuiLoadingContent(_ref) {
31
31
  var _ref$lines = _ref.lines,
32
32
  lines = _ref$lines === void 0 ? 3 : _ref$lines,
33
33
  className = _ref.className,
34
34
  ariaLabel = _ref['aria-label'],
35
+ euiTheme = _ref.euiTheme,
35
36
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
36
- var euiTheme = (0, _services.useEuiTheme)();
37
37
  var styles = (0, _loading_content.euiLoadingContentStyles)(euiTheme);
38
38
  var lineCssStyles = [styles.euiLoadingContent__singleLine];
39
39
  var defaultLabel = (0, _loading_strings.useLoadingAriaLabel)();
@@ -54,10 +54,12 @@ var EuiLoadingContent = function EuiLoadingContent(_ref) {
54
54
  }, rest), lineElements);
55
55
  };
56
56
 
57
- exports.EuiLoadingContent = EuiLoadingContent;
58
- EuiLoadingContent.propTypes = {
57
+ exports._EuiLoadingContent = _EuiLoadingContent;
58
+ _EuiLoadingContent.propTypes = {
59
59
  className: _propTypes.default.string,
60
60
  "aria-label": _propTypes.default.string,
61
61
  "data-test-subj": _propTypes.default.string,
62
62
  lines: _propTypes.default.oneOf([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])
63
- };
63
+ };
64
+ var EuiLoadingContent = (0, _system.withEuiSystem)(_EuiLoadingContent);
65
+ exports.EuiLoadingContent = EuiLoadingContent;
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.SIZES = exports.EuiLoadingLogo = void 0;
8
+ exports._EuiLoadingLogo = exports.SIZES = exports.EuiLoadingLogo = void 0;
9
9
 
10
10
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
11
 
@@ -19,7 +19,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
19
19
 
20
20
  var _icon = require("../icon");
21
21
 
22
- var _services = require("../../services");
22
+ var _system = require("../provider/system");
23
23
 
24
24
  var _loading_strings = require("./_loading_strings");
25
25
 
@@ -27,19 +27,19 @@ var _loading_logo = require("./loading_logo.styles");
27
27
 
28
28
  var _react2 = require("@emotion/react");
29
29
 
30
- var _excluded = ["size", "logo", "aria-label", "className"];
30
+ var _excluded = ["size", "logo", "aria-label", "className", "euiTheme"];
31
31
  var SIZES = ['m', 'l', 'xl'];
32
32
  exports.SIZES = SIZES;
33
33
 
34
- var EuiLoadingLogo = function EuiLoadingLogo(_ref) {
34
+ var _EuiLoadingLogo = function _EuiLoadingLogo(_ref) {
35
35
  var _ref$size = _ref.size,
36
36
  size = _ref$size === void 0 ? 'm' : _ref$size,
37
37
  _ref$logo = _ref.logo,
38
38
  logo = _ref$logo === void 0 ? 'logoKibana' : _ref$logo,
39
39
  ariaLabel = _ref['aria-label'],
40
40
  className = _ref.className,
41
+ euiTheme = _ref.euiTheme,
41
42
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
42
- var euiTheme = (0, _services.useEuiTheme)();
43
43
  var defaultLabel = (0, _loading_strings.useLoadingAriaLabel)();
44
44
  var styles = (0, _loading_logo.euiLoadingLogoStyles)(euiTheme);
45
45
  var cssStyles = [styles.euiLoadingLogo, styles[size]];
@@ -59,8 +59,8 @@ var EuiLoadingLogo = function EuiLoadingLogo(_ref) {
59
59
  })));
60
60
  };
61
61
 
62
- exports.EuiLoadingLogo = EuiLoadingLogo;
63
- EuiLoadingLogo.propTypes = {
62
+ exports._EuiLoadingLogo = _EuiLoadingLogo;
63
+ _EuiLoadingLogo.propTypes = {
64
64
  className: _propTypes.default.string,
65
65
  "aria-label": _propTypes.default.string,
66
66
  "data-test-subj": _propTypes.default.string,
@@ -70,4 +70,6 @@ EuiLoadingLogo.propTypes = {
70
70
  * While this component should be restricted to using logo icons, it works with any IconType
71
71
  */
72
72
  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])
73
- };
73
+ };
74
+ var EuiLoadingLogo = (0, _system.withEuiSystem)(_EuiLoadingLogo);
75
+ exports.EuiLoadingLogo = EuiLoadingLogo;
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.SIZES = exports.EuiLoadingSpinner = void 0;
8
+ exports._EuiLoadingSpinner = exports.SIZES = exports.EuiLoadingSpinner = void 0;
9
9
 
10
10
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
11
 
@@ -17,7 +17,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
17
17
 
18
18
  var _classnames = _interopRequireDefault(require("classnames"));
19
19
 
20
- var _services = require("../..//services");
20
+ var _system = require("../provider/system");
21
21
 
22
22
  var _loading_strings = require("./_loading_strings");
23
23
 
@@ -25,18 +25,19 @@ var _loading_spinner = require("./loading_spinner.styles");
25
25
 
26
26
  var _react2 = require("@emotion/react");
27
27
 
28
- var _excluded = ["size", "className", "aria-label"];
28
+ var _excluded = ["size", "className", "aria-label", "color", "euiTheme"];
29
29
  var SIZES = ['s', 'm', 'l', 'xl', 'xxl'];
30
30
  exports.SIZES = SIZES;
31
31
 
32
- var EuiLoadingSpinner = function EuiLoadingSpinner(_ref) {
32
+ var _EuiLoadingSpinner = function _EuiLoadingSpinner(_ref) {
33
33
  var _ref$size = _ref.size,
34
34
  size = _ref$size === void 0 ? 'm' : _ref$size,
35
35
  className = _ref.className,
36
36
  ariaLabel = _ref['aria-label'],
37
+ color = _ref.color,
38
+ euiTheme = _ref.euiTheme,
37
39
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
38
- var euiTheme = (0, _services.useEuiTheme)();
39
- var styles = (0, _loading_spinner.euiLoadingSpinnerStyles)(euiTheme);
40
+ var styles = (0, _loading_spinner.euiLoadingSpinnerStyles)(euiTheme, color);
40
41
  var cssStyles = [styles.euiLoadingSpinner, styles[size]];
41
42
  var classes = (0, _classnames.default)('euiLoadingSpinner', className);
42
43
  var defaultLabel = (0, _loading_strings.useLoadingAriaLabel)();
@@ -48,10 +49,22 @@ var EuiLoadingSpinner = function EuiLoadingSpinner(_ref) {
48
49
  }, rest));
49
50
  };
50
51
 
51
- exports.EuiLoadingSpinner = EuiLoadingSpinner;
52
- EuiLoadingSpinner.propTypes = {
52
+ exports._EuiLoadingSpinner = _EuiLoadingSpinner;
53
+ _EuiLoadingSpinner.propTypes = {
53
54
  className: _propTypes.default.string,
54
55
  "aria-label": _propTypes.default.string,
55
56
  "data-test-subj": _propTypes.default.string,
56
- size: _propTypes.default.any
57
- };
57
+ size: _propTypes.default.any,
58
+
59
+ /**
60
+ * Sets the color of the border and highlight.
61
+ * Each key accepts any valid CSS color value as a `string`
62
+ * See #EuiLoadingSpinnerColor
63
+ */
64
+ color: _propTypes.default.shape({
65
+ border: _propTypes.default.any,
66
+ highlight: _propTypes.default.any
67
+ })
68
+ };
69
+ var EuiLoadingSpinner = (0, _system.withEuiSystem)(_EuiLoadingSpinner);
70
+ exports.EuiLoadingSpinner = EuiLoadingSpinner;
@@ -25,14 +25,14 @@ var spinnerSizes = {
25
25
  xxl: 'xxl'
26
26
  };
27
27
 
28
- var spinnerColors = function spinnerColors(main, highlight) {
29
- return "".concat(highlight, " ").concat(main, " ").concat(main, " ").concat(main);
28
+ var spinnerColorsCSS = function spinnerColorsCSS(border, highlight) {
29
+ return "\n border-color: ".concat(highlight, " ").concat(border, " ").concat(border, " ").concat(border, ";\n ");
30
30
  };
31
31
 
32
- var euiLoadingSpinnerStyles = function euiLoadingSpinnerStyles(_ref) {
32
+ var euiLoadingSpinnerStyles = function euiLoadingSpinnerStyles(_ref, color) {
33
33
  var euiTheme = _ref.euiTheme;
34
34
  return {
35
- euiLoadingSpinner: /*#__PURE__*/(0, _react.css)("flex-shrink:0;display:inline-block;border-radius:50%;border:", euiTheme.border.thick, ";border-color:", spinnerColors(euiTheme.border.color, euiTheme.colors.primary), ";", _global_styling.euiCanAnimate, "{animation:", _loadingSpinner, " 0.6s infinite linear;};label:euiLoadingSpinner;"),
35
+ euiLoadingSpinner: /*#__PURE__*/(0, _react.css)("flex-shrink:0;display:inline-block;border-radius:50%;border:", euiTheme.border.thick, ";", spinnerColorsCSS((color === null || color === void 0 ? void 0 : color.border) || euiTheme.colors.lightShade, (color === null || color === void 0 ? void 0 : color.highlight) || euiTheme.colors.primary), ";", _global_styling.euiCanAnimate, "{animation:", _loadingSpinner, " 0.6s infinite linear;};label:euiLoadingSpinner;"),
36
36
  // Sizes
37
37
  s: /*#__PURE__*/(0, _react.css)("width:", euiTheme.size[spinnerSizes.s], ";height:", euiTheme.size[spinnerSizes.s], ";border-width:calc(", euiTheme.border.width.thin, " * 1.5);;label:s;"),
38
38
  m: /*#__PURE__*/(0, _react.css)("width:", euiTheme.size[spinnerSizes.m], ";height:", euiTheme.size[spinnerSizes.m], ";border-width:calc(", euiTheme.border.width.thin, " * 1.5);;label:m;"),
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.EuiMark = void 0;
8
+ exports._EuiMark = exports.EuiMark = void 0;
9
9
 
10
10
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
11
 
@@ -19,37 +19,37 @@ var _classnames = _interopRequireDefault(require("classnames"));
19
19
 
20
20
  var _i18n = require("../i18n");
21
21
 
22
- var _services = require("../../services");
22
+ var _system = require("../provider/system");
23
23
 
24
24
  var _mark = require("./mark.styles");
25
25
 
26
26
  var _react2 = require("@emotion/react");
27
27
 
28
- var _excluded = ["children", "className", "hasScreenReaderHelpText"];
28
+ var _excluded = ["children", "className", "euiTheme", "hasScreenReaderHelpText"];
29
29
 
30
- var EuiMark = function EuiMark(_ref) {
30
+ var _EuiMark = function _EuiMark(_ref) {
31
31
  var children = _ref.children,
32
32
  className = _ref.className,
33
+ euiTheme = _ref.euiTheme,
33
34
  _ref$hasScreenReaderH = _ref.hasScreenReaderHelpText,
34
35
  hasScreenReaderHelpText = _ref$hasScreenReaderH === void 0 ? true : _ref$hasScreenReaderH,
35
36
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
36
- var useTheme = (0, _services.useEuiTheme)();
37
37
  var highlightStart = (0, _i18n.useEuiI18n)('euiMark.highlightStart', 'highlight start');
38
38
  var highlightEnd = (0, _i18n.useEuiI18n)('euiMark.highlightEnd', 'highlight end');
39
- var styles = (0, _mark.euiMarkStyles)(useTheme, {
39
+ var styles = (0, _mark.euiMarkStyles)(euiTheme, {
40
40
  hasScreenReaderHelpText: hasScreenReaderHelpText,
41
41
  highlightStart: highlightStart,
42
42
  highlightEnd: highlightEnd
43
43
  });
44
44
  var classes = (0, _classnames.default)('euiMark', className);
45
45
  return (0, _react2.jsx)("mark", (0, _extends2.default)({
46
- css: [styles, ";label:EuiMark;"],
46
+ css: [styles],
47
47
  className: classes
48
48
  }, rest), children);
49
49
  };
50
50
 
51
- exports.EuiMark = EuiMark;
52
- EuiMark.propTypes = {
51
+ exports._EuiMark = _EuiMark;
52
+ _EuiMark.propTypes = {
53
53
  className: _propTypes.default.string,
54
54
  "aria-label": _propTypes.default.string,
55
55
  "data-test-subj": _propTypes.default.string,
@@ -64,4 +64,6 @@ EuiMark.propTypes = {
64
64
  * ReactNode to render as this component's content
65
65
  */
66
66
  children: _propTypes.default.node.isRequired
67
- };
67
+ };
68
+ var EuiMark = (0, _system.withEuiSystem)(_EuiMark);
69
+ exports.EuiMark = EuiMark;