@elastic/eui 59.1.0 → 60.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 (248) hide show
  1. package/README.md +7 -0
  2. package/dist/eui_theme_dark.css +0 -493
  3. package/dist/eui_theme_dark.json +7 -44
  4. package/dist/eui_theme_dark.json.d.ts +7 -44
  5. package/dist/eui_theme_dark.min.css +1 -1
  6. package/dist/eui_theme_light.css +0 -493
  7. package/dist/eui_theme_light.json +7 -44
  8. package/dist/eui_theme_light.json.d.ts +7 -44
  9. package/dist/eui_theme_light.min.css +1 -1
  10. package/es/components/accessibility/screen_reader_live/screen_reader_live.js +30 -7
  11. package/es/components/accessibility/screen_reader_only/screen_reader_only.js +14 -19
  12. package/es/components/accessibility/screen_reader_only/screen_reader_only.styles.js +11 -1
  13. package/es/components/accessibility/skip_link/skip_link.js +20 -4
  14. package/es/components/avatar/avatar.js +2 -2
  15. package/es/components/badge/badge.js +1 -1
  16. package/es/components/button/button_icon/button_icon.js +1 -1
  17. package/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +2 -2
  18. package/es/components/combo_box/matching_options.js +3 -2
  19. package/es/components/datagrid/body/data_grid_body.js +6 -6
  20. package/es/components/datagrid/body/data_grid_cell.js +12 -12
  21. package/es/components/datagrid/body/header/data_grid_header_cell.js +6 -6
  22. package/es/components/datagrid/body/header/data_grid_header_row.js +6 -6
  23. package/es/components/datagrid/data_grid.js +6 -6
  24. package/es/components/datagrid/utils/in_memory.js +6 -6
  25. package/es/components/date_picker/date_picker.js +1 -1
  26. package/es/components/empty_prompt/empty_prompt.js +1 -1
  27. package/es/components/form/field_text/field_text.js +1 -1
  28. package/es/components/form/form_control_layout/form_control_layout.js +1 -1
  29. package/es/components/form/form_control_layout/form_control_layout_icons.js +1 -1
  30. package/es/components/health/health.js +1 -1
  31. package/es/components/icon/icon.js +43 -495
  32. package/es/components/icon/icon.styles.js +75 -0
  33. package/es/components/icon/icon_map.js +455 -0
  34. package/es/components/icon/named_colors.js +2 -13
  35. package/es/components/list_group/list_group.js +1 -1
  36. package/es/components/list_group/list_group_item.js +1 -1
  37. package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +2 -2
  38. package/es/components/notification/notification_event.js +2 -2
  39. package/es/components/notification/notification_event_meta.js +1 -1
  40. package/es/components/notification/notification_event_read_button.js +1 -1
  41. package/es/components/progress/progress.js +34 -87
  42. package/es/components/progress/progress.styles.js +155 -0
  43. package/es/components/provider/cache/cache_provider.js +17 -0
  44. package/es/components/provider/cache/index.js +8 -0
  45. package/es/components/provider/provider.js +35 -5
  46. package/es/components/selectable/selectable.js +39 -22
  47. package/es/components/selectable/selectable_list/selectable_list.js +1 -1
  48. package/es/components/selectable/selectable_list/selectable_list_item.js +1 -1
  49. package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +2 -2
  50. package/es/components/stat/stat.js +28 -35
  51. package/es/components/stat/stat.styles.js +38 -0
  52. package/es/components/timeline/timeline.js +15 -8
  53. package/es/components/timeline/timeline.styles.js +29 -0
  54. package/es/components/timeline/timeline_item.js +4 -16
  55. package/es/components/timeline/timeline_item.styles.js +18 -3
  56. package/es/components/timeline/timeline_item_icon.styles.js +14 -4
  57. package/es/components/tool_tip/icon_tip.js +1 -1
  58. package/es/global_styling/functions/logicals.js +2 -2
  59. package/es/global_styling/utility/utility.js +17 -0
  60. package/es/services/theme/hooks.js +4 -2
  61. package/es/services/theme/provider.js +1 -5
  62. package/es/test/emotion-prefix.js +29 -0
  63. package/es/test/index.d.ts +5 -0
  64. package/es/test/index.js +2 -1
  65. package/eui.d.ts +450 -454
  66. package/i18ntokens.json +18 -18
  67. package/lib/components/accessibility/screen_reader_live/screen_reader_live.js +29 -6
  68. package/lib/components/accessibility/screen_reader_only/screen_reader_only.js +22 -19
  69. package/lib/components/accessibility/screen_reader_only/screen_reader_only.styles.js +16 -2
  70. package/lib/components/accessibility/skip_link/skip_link.js +21 -4
  71. package/lib/components/avatar/avatar.js +2 -2
  72. package/lib/components/badge/badge.js +1 -1
  73. package/lib/components/button/button_icon/button_icon.js +1 -1
  74. package/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +2 -2
  75. package/lib/components/combo_box/matching_options.js +3 -2
  76. package/lib/components/datagrid/body/data_grid_body.js +6 -6
  77. package/lib/components/datagrid/body/data_grid_cell.js +12 -12
  78. package/lib/components/datagrid/body/header/data_grid_header_cell.js +6 -6
  79. package/lib/components/datagrid/body/header/data_grid_header_row.js +6 -6
  80. package/lib/components/datagrid/data_grid.js +6 -6
  81. package/lib/components/datagrid/utils/in_memory.js +6 -6
  82. package/lib/components/date_picker/date_picker.js +1 -1
  83. package/lib/components/empty_prompt/empty_prompt.js +1 -1
  84. package/lib/components/form/field_text/field_text.js +1 -1
  85. package/lib/components/form/form_control_layout/form_control_layout.js +1 -1
  86. package/lib/components/form/form_control_layout/form_control_layout_icons.js +1 -1
  87. package/lib/components/health/health.js +1 -1
  88. package/lib/components/icon/icon.js +54 -499
  89. package/lib/components/icon/icon.styles.js +79 -0
  90. package/lib/components/icon/icon_map.js +463 -0
  91. package/lib/components/icon/named_colors.js +4 -15
  92. package/lib/components/list_group/list_group.js +1 -1
  93. package/lib/components/list_group/list_group_item.js +1 -1
  94. package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +2 -2
  95. package/lib/components/notification/notification_event.js +2 -2
  96. package/lib/components/notification/notification_event_meta.js +1 -1
  97. package/lib/components/notification/notification_event_read_button.js +1 -1
  98. package/lib/components/progress/progress.js +36 -88
  99. package/lib/components/progress/progress.styles.js +166 -0
  100. package/lib/components/provider/cache/cache_provider.js +29 -0
  101. package/lib/components/provider/cache/index.js +18 -0
  102. package/lib/components/provider/provider.js +36 -5
  103. package/lib/components/selectable/selectable.js +39 -22
  104. package/lib/components/selectable/selectable_list/selectable_list.js +1 -1
  105. package/lib/components/selectable/selectable_list/selectable_list_item.js +1 -1
  106. package/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +3 -3
  107. package/lib/components/stat/stat.js +30 -40
  108. package/lib/components/stat/stat.styles.js +45 -0
  109. package/lib/components/timeline/timeline.js +20 -9
  110. package/lib/components/timeline/timeline.styles.js +39 -0
  111. package/lib/components/timeline/timeline_item.js +4 -17
  112. package/lib/components/timeline/timeline_item.styles.js +17 -10
  113. package/lib/components/timeline/timeline_item_icon.styles.js +15 -4
  114. package/lib/components/tool_tip/icon_tip.js +1 -1
  115. package/lib/global_styling/functions/logicals.js +2 -2
  116. package/lib/global_styling/utility/utility.js +31 -0
  117. package/lib/services/theme/hooks.js +4 -2
  118. package/lib/services/theme/provider.js +3 -6
  119. package/lib/test/emotion-prefix.js +38 -0
  120. package/lib/test/index.d.ts +5 -0
  121. package/lib/test/index.js +23 -1
  122. package/optimize/es/components/accessibility/screen_reader_live/screen_reader_live.js +21 -6
  123. package/optimize/es/components/accessibility/screen_reader_only/screen_reader_only.js +11 -17
  124. package/optimize/es/components/accessibility/screen_reader_only/screen_reader_only.styles.js +11 -1
  125. package/optimize/es/components/accessibility/skip_link/skip_link.js +20 -4
  126. package/optimize/es/components/combo_box/matching_options.js +3 -2
  127. package/optimize/es/components/icon/icon.js +40 -492
  128. package/optimize/es/components/icon/icon.styles.js +75 -0
  129. package/optimize/es/components/icon/icon_map.js +455 -0
  130. package/optimize/es/components/icon/named_colors.js +2 -13
  131. package/optimize/es/components/progress/progress.js +31 -84
  132. package/optimize/es/components/progress/progress.styles.js +155 -0
  133. package/optimize/es/components/provider/cache/cache_provider.js +17 -0
  134. package/optimize/es/components/provider/cache/index.js +8 -0
  135. package/optimize/es/components/provider/provider.js +35 -5
  136. package/optimize/es/components/selectable/selectable.js +33 -22
  137. package/optimize/es/components/stat/stat.js +25 -33
  138. package/optimize/es/components/stat/stat.styles.js +38 -0
  139. package/optimize/es/components/timeline/timeline.js +10 -1
  140. package/optimize/es/components/timeline/timeline.styles.js +29 -0
  141. package/optimize/es/components/timeline/timeline_item.js +4 -9
  142. package/optimize/es/components/timeline/timeline_item.styles.js +18 -3
  143. package/optimize/es/components/timeline/timeline_item_icon.styles.js +14 -4
  144. package/optimize/es/global_styling/functions/logicals.js +2 -2
  145. package/optimize/es/global_styling/utility/utility.js +17 -0
  146. package/optimize/es/services/theme/hooks.js +4 -2
  147. package/optimize/es/services/theme/provider.js +1 -5
  148. package/optimize/es/test/emotion-prefix.js +27 -0
  149. package/optimize/es/test/index.d.ts +5 -0
  150. package/optimize/es/test/index.js +2 -1
  151. package/optimize/lib/components/accessibility/screen_reader_live/screen_reader_live.js +20 -5
  152. package/optimize/lib/components/accessibility/screen_reader_only/screen_reader_only.js +18 -16
  153. package/optimize/lib/components/accessibility/screen_reader_only/screen_reader_only.styles.js +16 -2
  154. package/optimize/lib/components/accessibility/skip_link/skip_link.js +21 -4
  155. package/optimize/lib/components/combo_box/matching_options.js +3 -2
  156. package/optimize/lib/components/icon/icon.js +49 -494
  157. package/optimize/lib/components/icon/icon.styles.js +81 -0
  158. package/optimize/lib/components/icon/icon_map.js +463 -0
  159. package/optimize/lib/components/icon/named_colors.js +4 -15
  160. package/optimize/lib/components/progress/progress.js +33 -85
  161. package/optimize/lib/components/progress/progress.styles.js +168 -0
  162. package/optimize/lib/components/provider/cache/cache_provider.js +29 -0
  163. package/optimize/lib/components/provider/cache/index.js +18 -0
  164. package/optimize/lib/components/provider/provider.js +36 -5
  165. package/optimize/lib/components/selectable/selectable.js +33 -22
  166. package/optimize/lib/components/stat/stat.js +27 -37
  167. package/optimize/lib/components/stat/stat.styles.js +47 -0
  168. package/optimize/lib/components/timeline/timeline.js +14 -2
  169. package/optimize/lib/components/timeline/timeline.styles.js +39 -0
  170. package/optimize/lib/components/timeline/timeline_item.js +4 -10
  171. package/optimize/lib/components/timeline/timeline_item.styles.js +17 -10
  172. package/optimize/lib/components/timeline/timeline_item_icon.styles.js +15 -4
  173. package/optimize/lib/global_styling/functions/logicals.js +2 -2
  174. package/optimize/lib/global_styling/utility/utility.js +31 -0
  175. package/optimize/lib/services/theme/hooks.js +4 -2
  176. package/optimize/lib/services/theme/provider.js +3 -6
  177. package/optimize/lib/test/emotion-prefix.js +40 -0
  178. package/optimize/lib/test/index.d.ts +5 -0
  179. package/optimize/lib/test/index.js +23 -1
  180. package/package.json +2 -2
  181. package/src/components/form/form_control_layout/_form_control_layout.scss +2 -4
  182. package/src/components/index.scss +0 -4
  183. package/src/global_styling/variables/_form.scss +9 -0
  184. package/src/themes/amsterdam/overrides/_index.scss +0 -1
  185. package/test-env/components/accessibility/screen_reader_live/screen_reader_live.js +29 -6
  186. package/test-env/components/accessibility/screen_reader_only/screen_reader_only.js +21 -18
  187. package/test-env/components/accessibility/screen_reader_only/screen_reader_only.styles.js +16 -2
  188. package/test-env/components/accessibility/skip_link/skip_link.js +21 -4
  189. package/test-env/components/avatar/avatar.js +2 -2
  190. package/test-env/components/badge/badge.js +1 -1
  191. package/test-env/components/button/button_icon/button_icon.js +1 -1
  192. package/test-env/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +2 -2
  193. package/test-env/components/combo_box/matching_options.js +3 -2
  194. package/test-env/components/datagrid/body/data_grid_body.js +6 -6
  195. package/test-env/components/datagrid/body/data_grid_cell.js +12 -12
  196. package/test-env/components/datagrid/body/header/data_grid_header_cell.js +6 -6
  197. package/test-env/components/datagrid/body/header/data_grid_header_row.js +6 -6
  198. package/test-env/components/datagrid/data_grid.js +6 -6
  199. package/test-env/components/datagrid/utils/in_memory.js +6 -6
  200. package/test-env/components/date_picker/date_picker.js +1 -1
  201. package/test-env/components/empty_prompt/empty_prompt.js +1 -1
  202. package/test-env/components/form/field_text/field_text.js +1 -1
  203. package/test-env/components/form/form_control_layout/form_control_layout.js +1 -1
  204. package/test-env/components/form/form_control_layout/form_control_layout_icons.js +1 -1
  205. package/test-env/components/health/health.js +1 -1
  206. package/test-env/components/icon/icon.styles.js +81 -0
  207. package/test-env/components/icon/icon_map.js +463 -0
  208. package/test-env/components/icon/named_colors.js +4 -15
  209. package/test-env/components/list_group/list_group.js +1 -1
  210. package/test-env/components/list_group/list_group_item.js +1 -1
  211. package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +2 -2
  212. package/test-env/components/notification/notification_event.js +2 -2
  213. package/test-env/components/notification/notification_event_meta.js +1 -1
  214. package/test-env/components/notification/notification_event_read_button.js +1 -1
  215. package/test-env/components/progress/progress.js +36 -88
  216. package/test-env/components/progress/progress.styles.js +168 -0
  217. package/test-env/components/provider/cache/cache_provider.js +29 -0
  218. package/test-env/components/provider/cache/index.js +18 -0
  219. package/test-env/components/provider/provider.js +36 -5
  220. package/test-env/components/selectable/selectable.js +39 -22
  221. package/test-env/components/selectable/selectable_list/selectable_list.js +1 -1
  222. package/test-env/components/selectable/selectable_list/selectable_list_item.js +1 -1
  223. package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +3 -3
  224. package/test-env/components/stat/stat.js +29 -39
  225. package/test-env/components/stat/stat.styles.js +47 -0
  226. package/test-env/components/timeline/timeline.js +19 -9
  227. package/test-env/components/timeline/timeline.styles.js +39 -0
  228. package/test-env/components/timeline/timeline_item.js +4 -17
  229. package/test-env/components/timeline/timeline_item.styles.js +17 -10
  230. package/test-env/components/timeline/timeline_item_icon.styles.js +15 -4
  231. package/test-env/components/tool_tip/icon_tip.js +1 -1
  232. package/test-env/global_styling/functions/logicals.js +2 -2
  233. package/test-env/global_styling/utility/utility.js +31 -0
  234. package/test-env/services/theme/hooks.js +4 -2
  235. package/test-env/services/theme/provider.js +3 -6
  236. package/test-env/test/emotion-prefix.js +40 -0
  237. package/test-env/test/index.js +23 -1
  238. package/src/components/accessibility/_index.scss +0 -1
  239. package/src/components/accessibility/screen_reader_only/_screen_reader_only.scss +0 -5
  240. package/src/components/icon/_icon.scss +0 -87
  241. package/src/components/icon/_index.scss +0 -2
  242. package/src/components/icon/_variables.scss +0 -22
  243. package/src/components/progress/_index.scss +0 -2
  244. package/src/components/progress/_progress.scss +0 -166
  245. package/src/components/progress/_variables.scss +0 -21
  246. package/src/components/stat/_index.scss +0 -1
  247. package/src/components/stat/_stat.scss +0 -50
  248. package/src/themes/amsterdam/overrides/_progress.scss +0 -3
@@ -5,7 +5,13 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.clearIconComponentCache = exports.appendIconComponentCache = exports.TYPES = exports.SIZES = exports.EuiIcon = exports.COLORS = void 0;
8
+ Object.defineProperty(exports, "COLORS", {
9
+ enumerable: true,
10
+ get: function get() {
11
+ return _named_colors.COLORS;
12
+ }
13
+ });
14
+ exports.clearIconComponentCache = exports.appendIconComponentCache = exports.TYPES = exports.SIZES = exports.EuiIconClass = exports.EuiIcon = void 0;
9
15
 
10
16
  var _react = _interopRequireWildcard(require("react"));
11
17
 
@@ -15,6 +21,8 @@ var _classnames = _interopRequireDefault(require("classnames"));
15
21
 
16
22
  var _common = require("../common");
17
23
 
24
+ var _icon_map = require("./icon_map");
25
+
18
26
  var _empty = require("./assets/empty");
19
27
 
20
28
  var _react2 = require("../../services/react");
@@ -23,14 +31,20 @@ var _services = require("../../services");
23
31
 
24
32
  var _named_colors = require("./named_colors");
25
33
 
34
+ var _icon = require("./icon.styles");
35
+
26
36
  var _react3 = require("@emotion/react");
27
37
 
28
- var _excluded = ["type", "size", "color", "className", "tabIndex", "title", "onIconLoad"];
38
+ var _excluded = ["type", "size", "color", "className", "tabIndex", "title", "onIconLoad", "theme", "style"];
29
39
 
30
40
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
31
41
 
32
42
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
33
43
 
44
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
45
+
46
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
47
+
34
48
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
35
49
 
36
50
  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; }
@@ -70,472 +84,13 @@ var getIsAppIcon = function getIsAppIcon(iconType) {
70
84
  return iconType.endsWith('App') || iconType.endsWith('Job');
71
85
  };
72
86
 
73
- var typeToPathMap = {
74
- accessibility: 'accessibility',
75
- addDataApp: 'app_add_data',
76
- advancedSettingsApp: 'app_advanced_settings',
77
- agentApp: 'app_fleet',
78
- aggregate: 'aggregate',
79
- alert: 'alert',
80
- analyzeEvent: 'analyzeEvent',
81
- annotation: 'annotation',
82
- apmApp: 'app_apm',
83
- apmTrace: 'apm_trace',
84
- appSearchApp: 'app_app_search',
85
- apps: 'apps',
86
- arrowDown: 'arrow_down',
87
- arrowLeft: 'arrow_left',
88
- arrowRight: 'arrow_right',
89
- arrowUp: 'arrow_up',
90
- arrowStart: 'arrowStart',
91
- arrowEnd: 'arrowEnd',
92
- asterisk: 'asterisk',
93
- auditbeatApp: 'app_auditbeat',
94
- beaker: 'beaker',
95
- bell: 'bell',
96
- bellSlash: 'bellSlash',
97
- bolt: 'bolt',
98
- boxesHorizontal: 'boxes_horizontal',
99
- boxesVertical: 'boxes_vertical',
100
- branch: 'branch',
101
- branchUser: 'branchUser',
102
- broom: 'broom',
103
- brush: 'brush',
104
- bug: 'bug',
105
- bullseye: 'bullseye',
106
- calendar: 'calendar',
107
- canvasApp: 'app_canvas',
108
- casesApp: 'app_cases',
109
- check: 'check',
110
- checkInCircleFilled: 'checkInCircleFilled',
111
- cheer: 'cheer',
112
- classificationJob: 'ml_classification_job',
113
- clock: 'clock',
114
- cloudDrizzle: 'cloudDrizzle',
115
- cloudStormy: 'cloudStormy',
116
- cloudSunny: 'cloudSunny',
117
- codeApp: 'app_code',
118
- color: 'color',
119
- compute: 'compute',
120
- console: 'console',
121
- consoleApp: 'app_console',
122
- continuityAbove: 'continuityAbove',
123
- continuityAboveBelow: 'continuityAboveBelow',
124
- continuityBelow: 'continuityBelow',
125
- continuityWithin: 'continuityWithin',
126
- controlsHorizontal: 'controls_horizontal',
127
- controlsVertical: 'controls_vertical',
128
- copy: 'copy',
129
- copyClipboard: 'copy_clipboard',
130
- createAdvancedJob: 'ml_create_advanced_job',
131
- createMultiMetricJob: 'ml_create_multi_metric_job',
132
- createPopulationJob: 'ml_create_population_job',
133
- createSingleMetricJob: 'ml_create_single_metric_job',
134
- cross: 'cross',
135
- crossClusterReplicationApp: 'app_cross_cluster_replication',
136
- crossInACircleFilled: 'crossInACircleFilled',
137
- crosshairs: 'crosshairs',
138
- currency: 'currency',
139
- cut: 'cut',
140
- dashboardApp: 'app_dashboard',
141
- dataVisualizer: 'ml_data_visualizer',
142
- database: 'database',
143
- desktop: 'desktop',
144
- devToolsApp: 'app_devtools',
145
- discoverApp: 'app_discover',
146
- document: 'document',
147
- documentEdit: 'documentEdit',
148
- documentation: 'documentation',
149
- documents: 'documents',
150
- dot: 'dot',
151
- doubleArrowLeft: 'doubleArrowLeft',
152
- doubleArrowRight: 'doubleArrowRight',
153
- download: 'download',
154
- editorAlignCenter: 'editor_align_center',
155
- editorAlignLeft: 'editor_align_left',
156
- editorAlignRight: 'editor_align_right',
157
- editorBold: 'editor_bold',
158
- editorChecklist: 'editor_checklist',
159
- editorCodeBlock: 'editor_code_block',
160
- editorComment: 'editor_comment',
161
- editorDistributeHorizontal: 'editorDistributeHorizontal',
162
- editorDistributeVertical: 'editorDistributeVertical',
163
- editorHeading: 'editor_heading',
164
- editorItalic: 'editor_italic',
165
- editorItemAlignBottom: 'editorItemAlignBottom',
166
- editorItemAlignCenter: 'editorItemAlignCenter',
167
- editorItemAlignLeft: 'editorItemAlignLeft',
168
- editorItemAlignMiddle: 'editorItemAlignMiddle',
169
- editorItemAlignRight: 'editorItemAlignRight',
170
- editorItemAlignTop: 'editorItemAlignTop',
171
- editorLink: 'editor_link',
172
- editorOrderedList: 'editor_ordered_list',
173
- editorPositionBottomLeft: 'editorPositionBottomLeft',
174
- editorPositionBottomRight: 'editorPositionBottomRight',
175
- editorPositionTopLeft: 'editorPositionTopLeft',
176
- editorPositionTopRight: 'editorPositionTopRight',
177
- editorRedo: 'editor_redo',
178
- editorStrike: 'editor_strike',
179
- editorTable: 'editor_table',
180
- editorUnderline: 'editor_underline',
181
- editorUndo: 'editor_undo',
182
- editorUnorderedList: 'editor_unordered_list',
183
- email: 'email',
184
- empty: 'empty',
185
- emsApp: 'app_ems',
186
- eql: 'eql',
187
- eraser: 'eraser',
188
- exit: 'exit',
189
- expand: 'expand',
190
- expandMini: 'expandMini',
191
- exportAction: 'export',
192
- eye: 'eye',
193
- eyeClosed: 'eye_closed',
194
- faceHappy: 'face_happy',
195
- faceNeutral: 'face_neutral',
196
- faceSad: 'face_sad',
197
- filebeatApp: 'app_filebeat',
198
- filter: 'filter',
199
- flag: 'flag',
200
- fleetApp: 'app_agent',
201
- fold: 'fold',
202
- folderCheck: 'folder_check',
203
- folderClosed: 'folder_closed',
204
- folderExclamation: 'folder_exclamation',
205
- folderOpen: 'folder_open',
206
- frameNext: 'frameNext',
207
- framePrevious: 'framePrevious',
208
- fullScreen: 'full_screen',
209
- fullScreenExit: 'fullScreenExit',
210
- function: 'function',
211
- gear: 'gear',
212
- gisApp: 'app_gis',
213
- glasses: 'glasses',
214
- globe: 'globe',
215
- grab: 'grab',
216
- grabHorizontal: 'grab_horizontal',
217
- graphApp: 'app_graph',
218
- grid: 'grid',
219
- grokApp: 'app_grok',
220
- heart: 'heart',
221
- heartbeatApp: 'app_heartbeat',
222
- heatmap: 'heatmap',
223
- help: 'help',
224
- home: 'home',
225
- iInCircle: 'iInCircle',
226
- image: 'image',
227
- importAction: 'import',
228
- indexClose: 'index_close',
229
- indexEdit: 'index_edit',
230
- indexFlush: 'index_flush',
231
- indexManagementApp: 'app_index_management',
232
- indexMapping: 'index_mapping',
233
- indexOpen: 'index_open',
234
- indexPatternApp: 'app_index_pattern',
235
- indexRollupApp: 'app_index_rollup',
236
- indexRuntime: 'index_runtime',
237
- indexSettings: 'index_settings',
238
- inputOutput: 'inputOutput',
239
- inspect: 'inspect',
240
- invert: 'invert',
241
- ip: 'ip',
242
- keyboardShortcut: 'keyboard_shortcut',
243
- kqlField: 'kql_field',
244
- kqlFunction: 'kql_function',
245
- kqlOperand: 'kql_operand',
246
- kqlSelector: 'kql_selector',
247
- kqlValue: 'kql_value',
248
- layers: 'layers',
249
- lensApp: 'app_lens',
250
- lettering: 'lettering',
251
- lineDashed: 'lineDashed',
252
- lineDotted: 'lineDotted',
253
- lineSolid: 'lineSolid',
254
- link: 'link',
255
- list: 'list',
256
- listAdd: 'list_add',
257
- lock: 'lock',
258
- lockOpen: 'lockOpen',
259
- logoAWS: 'logo_aws',
260
- logoAWSMono: 'logo_aws_mono',
261
- logoAerospike: 'logo_aerospike',
262
- logoApache: 'logo_apache',
263
- logoAppSearch: 'logo_app_search',
264
- logoAzure: 'logo_azure',
265
- logoAzureMono: 'logo_azure_mono',
266
- logoBeats: 'logo_beats',
267
- logoBusinessAnalytics: 'logo_business_analytics',
268
- logoCeph: 'logo_ceph',
269
- logoCloud: 'logo_cloud',
270
- logoCloudEnterprise: 'logo_cloud_ece',
271
- logoCode: 'logo_code',
272
- logoCodesandbox: 'logo_codesandbox',
273
- logoCouchbase: 'logo_couchbase',
274
- logoDocker: 'logo_docker',
275
- logoDropwizard: 'logo_dropwizard',
276
- logoElastic: 'logo_elastic',
277
- logoElasticStack: 'logo_elastic_stack',
278
- logoElasticsearch: 'logo_elasticsearch',
279
- logoEnterpriseSearch: 'logo_enterprise_search',
280
- logoEtcd: 'logo_etcd',
281
- logoGCP: 'logo_gcp',
282
- logoGCPMono: 'logo_gcp_mono',
283
- logoGithub: 'logo_github',
284
- logoGmail: 'logo_gmail',
285
- logoGolang: 'logo_golang',
286
- logoGoogleG: 'logo_google_g',
287
- logoHAproxy: 'logo_haproxy',
288
- logoIBM: 'logo_ibm',
289
- logoIBMMono: 'logo_ibm_mono',
290
- logoKafka: 'logo_kafka',
291
- logoKibana: 'logo_kibana',
292
- logoKubernetes: 'logo_kubernetes',
293
- logoLogging: 'logo_logging',
294
- logoLogstash: 'logo_logstash',
295
- logoMaps: 'logo_maps',
296
- logoMemcached: 'logo_memcached',
297
- logoMetrics: 'logo_metrics',
298
- logoMongodb: 'logo_mongodb',
299
- logoMySQL: 'logo_mysql',
300
- logoNginx: 'logo_nginx',
301
- logoObservability: 'logo_observability',
302
- logoOsquery: 'logo_osquery',
303
- logoPhp: 'logo_php',
304
- logoPostgres: 'logo_postgres',
305
- logoPrometheus: 'logo_prometheus',
306
- logoRabbitmq: 'logo_rabbitmq',
307
- logoRedis: 'logo_redis',
308
- logoSecurity: 'logo_security',
309
- logoSiteSearch: 'logo_site_search',
310
- logoSketch: 'logo_sketch',
311
- logoSlack: 'logo_slack',
312
- logoUptime: 'logo_uptime',
313
- logoWebhook: 'logo_webhook',
314
- logoWindows: 'logo_windows',
315
- logoWorkplaceSearch: 'logo_workplace_search',
316
- logsApp: 'app_logs',
317
- logstashFilter: 'logstash_filter',
318
- logstashIf: 'logstash_if',
319
- logstashInput: 'logstash_input',
320
- logstashOutput: 'logstash_output',
321
- logstashQueue: 'logstash_queue',
322
- machineLearningApp: 'app_ml',
323
- magnet: 'magnet',
324
- magnifyWithExclamation: 'magnifyWithExclamation',
325
- magnifyWithMinus: 'magnifyWithMinus',
326
- magnifyWithPlus: 'magnifyWithPlus',
327
- managementApp: 'app_management',
328
- mapMarker: 'map_marker',
329
- memory: 'memory',
330
- menu: 'menu',
331
- menuDown: 'menuDown',
332
- menuLeft: 'menuLeft',
333
- menuRight: 'menuRight',
334
- menuUp: 'menuUp',
335
- merge: 'merge',
336
- metricbeatApp: 'app_metricbeat',
337
- metricsApp: 'app_metrics',
338
- minimize: 'minimize',
339
- minus: 'minus',
340
- minusInCircle: 'minus_in_circle',
341
- minusInCircleFilled: 'minus_in_circle_filled',
342
- mobile: 'mobile',
343
- monitoringApp: 'app_monitoring',
344
- moon: 'moon',
345
- nested: 'nested',
346
- node: 'node',
347
- notebookApp: 'app_notebook',
348
- number: 'number',
349
- offline: 'offline',
350
- online: 'online',
351
- outlierDetectionJob: 'ml_outlier_detection_job',
352
- package: 'package',
353
- packetbeatApp: 'app_packetbeat',
354
- pageSelect: 'pageSelect',
355
- pagesSelect: 'pagesSelect',
356
- paperClip: 'paper_clip',
357
- partial: 'partial',
358
- pause: 'pause',
359
- payment: 'payment',
360
- pencil: 'pencil',
361
- percent: 'percent',
362
- pin: 'pin',
363
- pinFilled: 'pin_filled',
364
- pipelineApp: 'app_pipeline',
365
- play: 'play',
366
- playFilled: 'playFilled',
367
- plus: 'plus',
368
- plusInCircle: 'plus_in_circle',
369
- plusInCircleFilled: 'plus_in_circle_filled',
370
- popout: 'popout',
371
- push: 'push',
372
- questionInCircle: 'question_in_circle',
373
- quote: 'quote',
374
- recentlyViewedApp: 'app_recently_viewed',
375
- refresh: 'refresh',
376
- regressionJob: 'ml_regression_job',
377
- reporter: 'reporter',
378
- reportingApp: 'app_reporting',
379
- returnKey: 'return_key',
380
- save: 'save',
381
- savedObjectsApp: 'app_saved_objects',
382
- scale: 'scale',
383
- search: 'search',
384
- searchProfilerApp: 'app_search_profiler',
385
- securityAnalyticsApp: 'app_security_analytics',
386
- securityApp: 'app_security',
387
- securitySignal: 'securitySignal',
388
- securitySignalDetected: 'securitySignalDetected',
389
- securitySignalResolved: 'securitySignalResolved',
390
- sessionViewer: 'sessionViewer',
391
- shard: 'shard',
392
- share: 'share',
393
- snowflake: 'snowflake',
394
- sortDown: 'sort_down',
395
- sortLeft: 'sortLeft',
396
- sortRight: 'sortRight',
397
- sortUp: 'sort_up',
398
- sortable: 'sortable',
399
- spacesApp: 'app_spaces',
400
- sqlApp: 'app_sql',
401
- starEmpty: 'star_empty',
402
- starEmptySpace: 'star_empty_space',
403
- starFilled: 'star_filled',
404
- starFilledSpace: 'star_filled_space',
405
- starMinusEmpty: 'star_minus_empty',
406
- starMinusFilled: 'star_minus_filled',
407
- starPlusEmpty: 'starPlusEmpty',
408
- starPlusFilled: 'starPlusFilled',
409
- stats: 'stats',
410
- stop: 'stop',
411
- stopFilled: 'stop_filled',
412
- stopSlash: 'stop_slash',
413
- storage: 'storage',
414
- string: 'string',
415
- submodule: 'submodule',
416
- sun: 'sun',
417
- swatchInput: 'swatch_input',
418
- // Undocumented on purpose. Has an extra stroke for EuiColorPicker
419
- symlink: 'symlink',
420
- tableDensityCompact: 'table_density_compact',
421
- tableDensityExpanded: 'table_density_expanded',
422
- tableDensityNormal: 'table_density_normal',
423
- tableOfContents: 'tableOfContents',
424
- tag: 'tag',
425
- tear: 'tear',
426
- temperature: 'temperature',
427
- timeline: 'timeline',
428
- timelionApp: 'app_timelion',
429
- timeRefresh: 'timeRefresh',
430
- timeslider: 'timeslider',
431
- training: 'training',
432
- trash: 'trash',
433
- unfold: 'unfold',
434
- unlink: 'unlink',
435
- upgradeAssistantApp: 'app_upgrade_assistant',
436
- uptimeApp: 'app_uptime',
437
- user: 'user',
438
- userAvatar: 'userAvatar',
439
- users: 'users',
440
- usersRolesApp: 'app_users_roles',
441
- vector: 'vector',
442
- videoPlayer: 'videoPlayer',
443
- visArea: 'vis_area',
444
- visAreaStacked: 'vis_area_stacked',
445
- visBarHorizontal: 'vis_bar_horizontal',
446
- visBarHorizontalStacked: 'vis_bar_horizontal_stacked',
447
- visBarVertical: 'vis_bar_vertical',
448
- visBarVerticalStacked: 'vis_bar_vertical_stacked',
449
- visGauge: 'vis_gauge',
450
- visGoal: 'vis_goal',
451
- visLine: 'vis_line',
452
- visMapCoordinate: 'vis_map_coordinate',
453
- visMapRegion: 'vis_map_region',
454
- visMetric: 'vis_metric',
455
- visPie: 'vis_pie',
456
- visTable: 'vis_table',
457
- visTagCloud: 'vis_tag_cloud',
458
- visText: 'vis_text',
459
- visTimelion: 'vis_timelion',
460
- visVega: 'vis_vega',
461
- visVisualBuilder: 'vis_visual_builder',
462
- visualizeApp: 'app_visualize',
463
- watchesApp: 'app_watches',
464
- wordWrap: 'wordWrap',
465
- wordWrapDisabled: 'wordWrapDisabled',
466
- workplaceSearchApp: 'app_workplace_search',
467
- wrench: 'wrench',
468
- // Token Icon Imports
469
- tokenClass: 'tokenClass',
470
- tokenProperty: 'tokenProperty',
471
- tokenEnum: 'tokenEnum',
472
- tokenVariable: 'tokenVariable',
473
- tokenMethod: 'tokenMethod',
474
- tokenAnnotation: 'tokenAnnotation',
475
- tokenException: 'tokenException',
476
- tokenInterface: 'tokenInterface',
477
- tokenParameter: 'tokenParameter',
478
- tokenField: 'tokenField',
479
- tokenElement: 'tokenElement',
480
- tokenFunction: 'tokenFunction',
481
- tokenBoolean: 'tokenBoolean',
482
- tokenString: 'tokenString',
483
- tokenArray: 'tokenArray',
484
- tokenNumber: 'tokenNumber',
485
- tokenConstant: 'tokenConstant',
486
- tokenObject: 'tokenObject',
487
- tokenEvent: 'tokenEvent',
488
- tokenKey: 'tokenKey',
489
- tokenNull: 'tokenNull',
490
- tokenStruct: 'tokenStruct',
491
- tokenPackage: 'tokenPackage',
492
- tokenOperator: 'tokenOperator',
493
- tokenEnumMember: 'tokenEnumMember',
494
- tokenRepo: 'tokenRepo',
495
- tokenSymbol: 'tokenSymbol',
496
- tokenFile: 'tokenFile',
497
- tokenModule: 'tokenModule',
498
- tokenNamespace: 'tokenNamespace',
499
- tokenDate: 'tokenDate',
500
- tokenIP: 'tokenIP',
501
- tokenNested: 'tokenNested',
502
- tokenAlias: 'tokenAlias',
503
- tokenShape: 'tokenShape',
504
- tokenGeo: 'tokenGeo',
505
- tokenRange: 'tokenRange',
506
- tokenBinary: 'tokenBinary',
507
- tokenJoin: 'tokenJoin',
508
- tokenPercolator: 'tokenPercolator',
509
- tokenFlattened: 'tokenFlattened',
510
- tokenRankFeature: 'tokenRankFeature',
511
- tokenRankFeatures: 'tokenRankFeatures',
512
- tokenKeyword: 'tokenKeyword',
513
- tokenTag: 'tokenTag',
514
- tokenCompletionSuggester: 'tokenCompletionSuggester',
515
- tokenDenseVector: 'tokenDenseVector',
516
- tokenText: 'tokenText',
517
- tokenTokenCount: 'tokenTokenCount',
518
- tokenSearchType: 'tokenSearchType',
519
- tokenHistogram: 'tokenHistogram'
520
- };
521
- var TYPES = (0, _common.keysOf)(typeToPathMap);
87
+ var TYPES = (0, _common.keysOf)(_icon_map.typeToPathMap);
522
88
  exports.TYPES = TYPES;
523
- var COLORS = (0, _common.keysOf)(_named_colors.colorToClassMap); // We accept arbitrary color strings, which are impossible to type.
524
-
525
- exports.COLORS = COLORS;
526
- var sizeToClassNameMap = {
527
- original: null,
528
- s: 'euiIcon--small',
529
- m: 'euiIcon--medium',
530
- l: 'euiIcon--large',
531
- xl: 'euiIcon--xLarge',
532
- xxl: 'euiIcon--xxLarge'
533
- };
534
- var SIZES = (0, _common.keysOf)(sizeToClassNameMap);
89
+ var SIZES = ['original', 's', 'm', 'l', 'xl', 'xxl'];
535
90
  exports.SIZES = SIZES;
536
91
 
537
92
  function isEuiIconType(x) {
538
- return typeof x === 'string' && typeToPathMap.hasOwnProperty(x);
93
+ return typeof x === 'string' && _icon_map.typeToPathMap.hasOwnProperty(x);
539
94
  }
540
95
 
541
96
  function getInitialIcon(icon) {
@@ -577,15 +132,15 @@ var appendIconComponentCache = function appendIconComponentCache(iconTypeToIconC
577
132
 
578
133
  exports.appendIconComponentCache = appendIconComponentCache;
579
134
 
580
- var EuiIcon = /*#__PURE__*/function (_PureComponent) {
581
- _inherits(EuiIcon, _PureComponent);
135
+ var EuiIconClass = /*#__PURE__*/function (_PureComponent) {
136
+ _inherits(EuiIconClass, _PureComponent);
582
137
 
583
- var _super = _createSuper(EuiIcon);
138
+ var _super = _createSuper(EuiIconClass);
584
139
 
585
- function EuiIcon(props) {
140
+ function EuiIconClass(props) {
586
141
  var _this;
587
142
 
588
- _classCallCheck(this, EuiIcon);
143
+ _classCallCheck(this, EuiIconClass);
589
144
 
590
145
  _this = _super.call(this, props);
591
146
 
@@ -610,7 +165,7 @@ var EuiIcon = /*#__PURE__*/function (_PureComponent) {
610
165
  // It's important that we don't use a template string here, it
611
166
  // stops webpack from building a dynamic require context.
612
167
  // eslint-disable-next-line prefer-template
613
- './assets/' + typeToPathMap[iconType])).then(function (s) {
168
+ './assets/' + _icon_map.typeToPathMap[iconType])).then(function (s) {
614
169
  return _interopRequireWildcard(require(s));
615
170
  }).then(function (_ref) {
616
171
  var icon = _ref.icon;
@@ -646,7 +201,7 @@ var EuiIcon = /*#__PURE__*/function (_PureComponent) {
646
201
  return _this;
647
202
  }
648
203
 
649
- _createClass(EuiIcon, [{
204
+ _createClass(EuiIconClass, [{
650
205
  key: "componentDidMount",
651
206
  value: function componentDidMount() {
652
207
  var type = this.props.type;
@@ -702,35 +257,29 @@ var EuiIcon = /*#__PURE__*/function (_PureComponent) {
702
257
  tabIndex = _this$props.tabIndex,
703
258
  title = _this$props.title,
704
259
  onIconLoad = _this$props.onIconLoad,
260
+ theme = _this$props.theme,
261
+ style = _this$props.style,
705
262
  rest = _objectWithoutProperties(_this$props, _excluded);
706
263
 
707
264
  var _this$state = this.state,
708
265
  isLoading = _this$state.isLoading,
709
- neededLoading = _this$state.neededLoading;
710
- var optionalColorClass = null;
711
- var optionalCustomStyles = null;
266
+ neededLoading = _this$state.neededLoading,
267
+ iconTitle = _this$state.iconTitle;
268
+ var isLoaded = !isLoading && neededLoading;
269
+ var isCustomColor = color && !(0, _named_colors.isNamedColor)(color);
270
+ var optionalCustomStyles = isCustomColor ? _objectSpread({
271
+ color: color
272
+ }, style) : style; // These icons are a little special and get some extra CSS flexibility
712
273
 
713
- if (color) {
714
- if ((0, _named_colors.isNamedColor)(color)) {
715
- optionalColorClass = _named_colors.colorToClassMap[color];
716
- } else {
717
- optionalCustomStyles = {
718
- color: color
719
- };
720
- optionalColorClass = 'euiIcon--customColor';
721
- }
722
- } // These icons are a little special and get some extra CSS flexibility
274
+ var isAppIcon = getIsAppIcon(type); // App color styles are only applied if no color is passed or if color="default" is passed
723
275
 
276
+ var appIconHasColor = color && color !== 'default'; // The Elastic logo should be an outline in text and ghost mode
724
277
 
725
- var isAppIcon = getIsAppIcon(type);
726
- var appIconHasColor = color && color !== 'default'; // parent is not one of
278
+ var isElasticLogoOutline = type === 'logoElastic' && (color === 'ghost' || color === 'text');
279
+ var classes = (0, _classnames.default)('euiIcon', className); // Emotion styles
727
280
 
728
- var classes = (0, _classnames.default)('euiIcon', sizeToClassNameMap[size], optionalColorClass, {
729
- // The app icon only gets the .euiIcon--app class if no color is passed or if color="default" is passed
730
- 'euiIcon--app': isAppIcon && !appIconHasColor,
731
- 'euiIcon-isLoading': isLoading,
732
- 'euiIcon-isLoaded': !isLoading && neededLoading
733
- }, className);
281
+ var styles = (0, _icon.euiIconStyles)(theme);
282
+ var cssStyles = [styles.euiIcon, styles[size], color && (0, _named_colors.isNamedColor)(color) && styles[color], isCustomColor && styles.customColor, isElasticLogoOutline && styles.logoElasticOutline, isAppIcon && !appIconHasColor && styles.app, isLoading && styles.isLoading, !isLoading && neededLoading && styles.isLoaded];
734
283
  var icon = this.state.icon || _empty.icon; // This is a fix for IE and Edge, which ignores tabindex="-1" on an SVG, but respects
735
284
  // focusable="false".
736
285
  // - If there's no tabindex specified, we'll default the icon to not be focusable,
@@ -745,6 +294,7 @@ var EuiIcon = /*#__PURE__*/function (_PureComponent) {
745
294
  alt: title ? title : '',
746
295
  src: icon,
747
296
  className: classes,
297
+ css: cssStyles,
748
298
  tabIndex: tabIndex
749
299
  }, rest));
750
300
  } else {
@@ -767,21 +317,24 @@ var EuiIcon = /*#__PURE__*/function (_PureComponent) {
767
317
  return (0, _react3.jsx)(Svg, _extends({
768
318
  className: classes,
769
319
  style: optionalCustomStyles,
320
+ css: cssStyles,
770
321
  tabIndex: tabIndex,
771
322
  focusable: focusable,
772
323
  role: "img",
773
324
  title: title,
774
- "data-icon-type": this.state.iconTitle
325
+ "data-icon-type": iconTitle,
326
+ "data-is-loaded": isLoaded || undefined,
327
+ "data-is-loading": isLoading || undefined
775
328
  }, titleId, rest, hideIconEmpty));
776
329
  }
777
330
  }
778
331
  }]);
779
332
 
780
- return EuiIcon;
333
+ return EuiIconClass;
781
334
  }(_react.PureComponent);
782
335
 
783
- exports.EuiIcon = EuiIcon;
784
- EuiIcon.propTypes = {
336
+ exports.EuiIconClass = EuiIconClass;
337
+ EuiIconClass.propTypes = {
785
338
  className: _propTypes.default.string,
786
339
  "aria-label": _propTypes.default.string,
787
340
  "data-test-subj": _propTypes.default.string,
@@ -795,12 +348,12 @@ EuiIcon.propTypes = {
795
348
  * One of EUI's color palette or a valid CSS color value https://developer.mozilla.org/en-US/docs/Web/CSS/color_value.
796
349
  * Note that coloring only works if your SVG is removed of fill attributes.
797
350
  */
798
- color: _propTypes.default.oneOfType([_propTypes.default.string.isRequired, _propTypes.default.oneOf(["default", "primary", "success", "accent", "warning", "danger", "text", "subdued", "ghost", "inherit"]).isRequired]),
351
+ color: _propTypes.default.oneOfType([_propTypes.default.string.isRequired, _propTypes.default.any.isRequired]),
799
352
 
800
353
  /**
801
354
  * Note that every size other than `original` assumes the provided SVG sits on a square viewbox.
802
355
  */
803
- size: _propTypes.default.oneOf(["original", "s", "m", "l", "xl", "xxl"]),
356
+ size: _propTypes.default.any,
804
357
 
805
358
  /**
806
359
  * Descriptive title for naming the icon based on its use
@@ -821,4 +374,6 @@ EuiIcon.propTypes = {
821
374
  * Callback when the icon has been loaded & rendered
822
375
  */
823
376
  onIconLoad: _propTypes.default.func
824
- };
377
+ };
378
+ var EuiIcon = (0, _services.withEuiTheme)(EuiIconClass);
379
+ exports.EuiIcon = EuiIcon;