@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
@@ -7,7 +7,11 @@ import _inherits from "@babel/runtime/helpers/inherits";
7
7
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
8
8
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
9
9
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
10
- var _excluded = ["type", "size", "color", "className", "tabIndex", "title", "onIconLoad"];
10
+ var _excluded = ["type", "size", "color", "className", "tabIndex", "title", "onIconLoad", "theme", "style"];
11
+
12
+ 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; }
13
+
14
+ 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; }
11
15
 
12
16
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
13
17
 
@@ -23,10 +27,13 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
23
27
  import React, { PureComponent } from 'react';
24
28
  import classNames from 'classnames';
25
29
  import { keysOf } from '../common';
30
+ import { typeToPathMap } from './icon_map';
26
31
  import { icon as empty } from './assets/empty';
27
32
  import { enqueueStateChange } from '../../services/react';
28
- import { htmlIdGenerator } from '../../services';
29
- import { colorToClassMap, isNamedColor } from './named_colors';
33
+ import { htmlIdGenerator, withEuiTheme } from '../../services';
34
+ export { COLORS } from './named_colors';
35
+ import { isNamedColor } from './named_colors';
36
+ import { euiIconStyles } from './icon.styles';
30
37
  import { jsx as ___EmotionJSX } from "@emotion/react";
31
38
 
32
39
  var getIsAppIcon = function getIsAppIcon(iconType) {
@@ -38,466 +45,8 @@ var getIsAppIcon = function getIsAppIcon(iconType) {
38
45
  return iconType.endsWith('App') || iconType.endsWith('Job');
39
46
  };
40
47
 
41
- var typeToPathMap = {
42
- accessibility: 'accessibility',
43
- addDataApp: 'app_add_data',
44
- advancedSettingsApp: 'app_advanced_settings',
45
- agentApp: 'app_fleet',
46
- aggregate: 'aggregate',
47
- alert: 'alert',
48
- analyzeEvent: 'analyzeEvent',
49
- annotation: 'annotation',
50
- apmApp: 'app_apm',
51
- apmTrace: 'apm_trace',
52
- appSearchApp: 'app_app_search',
53
- apps: 'apps',
54
- arrowDown: 'arrow_down',
55
- arrowLeft: 'arrow_left',
56
- arrowRight: 'arrow_right',
57
- arrowUp: 'arrow_up',
58
- arrowStart: 'arrowStart',
59
- arrowEnd: 'arrowEnd',
60
- asterisk: 'asterisk',
61
- auditbeatApp: 'app_auditbeat',
62
- beaker: 'beaker',
63
- bell: 'bell',
64
- bellSlash: 'bellSlash',
65
- bolt: 'bolt',
66
- boxesHorizontal: 'boxes_horizontal',
67
- boxesVertical: 'boxes_vertical',
68
- branch: 'branch',
69
- branchUser: 'branchUser',
70
- broom: 'broom',
71
- brush: 'brush',
72
- bug: 'bug',
73
- bullseye: 'bullseye',
74
- calendar: 'calendar',
75
- canvasApp: 'app_canvas',
76
- casesApp: 'app_cases',
77
- check: 'check',
78
- checkInCircleFilled: 'checkInCircleFilled',
79
- cheer: 'cheer',
80
- classificationJob: 'ml_classification_job',
81
- clock: 'clock',
82
- cloudDrizzle: 'cloudDrizzle',
83
- cloudStormy: 'cloudStormy',
84
- cloudSunny: 'cloudSunny',
85
- codeApp: 'app_code',
86
- color: 'color',
87
- compute: 'compute',
88
- console: 'console',
89
- consoleApp: 'app_console',
90
- continuityAbove: 'continuityAbove',
91
- continuityAboveBelow: 'continuityAboveBelow',
92
- continuityBelow: 'continuityBelow',
93
- continuityWithin: 'continuityWithin',
94
- controlsHorizontal: 'controls_horizontal',
95
- controlsVertical: 'controls_vertical',
96
- copy: 'copy',
97
- copyClipboard: 'copy_clipboard',
98
- createAdvancedJob: 'ml_create_advanced_job',
99
- createMultiMetricJob: 'ml_create_multi_metric_job',
100
- createPopulationJob: 'ml_create_population_job',
101
- createSingleMetricJob: 'ml_create_single_metric_job',
102
- cross: 'cross',
103
- crossClusterReplicationApp: 'app_cross_cluster_replication',
104
- crossInACircleFilled: 'crossInACircleFilled',
105
- crosshairs: 'crosshairs',
106
- currency: 'currency',
107
- cut: 'cut',
108
- dashboardApp: 'app_dashboard',
109
- dataVisualizer: 'ml_data_visualizer',
110
- database: 'database',
111
- desktop: 'desktop',
112
- devToolsApp: 'app_devtools',
113
- discoverApp: 'app_discover',
114
- document: 'document',
115
- documentEdit: 'documentEdit',
116
- documentation: 'documentation',
117
- documents: 'documents',
118
- dot: 'dot',
119
- doubleArrowLeft: 'doubleArrowLeft',
120
- doubleArrowRight: 'doubleArrowRight',
121
- download: 'download',
122
- editorAlignCenter: 'editor_align_center',
123
- editorAlignLeft: 'editor_align_left',
124
- editorAlignRight: 'editor_align_right',
125
- editorBold: 'editor_bold',
126
- editorChecklist: 'editor_checklist',
127
- editorCodeBlock: 'editor_code_block',
128
- editorComment: 'editor_comment',
129
- editorDistributeHorizontal: 'editorDistributeHorizontal',
130
- editorDistributeVertical: 'editorDistributeVertical',
131
- editorHeading: 'editor_heading',
132
- editorItalic: 'editor_italic',
133
- editorItemAlignBottom: 'editorItemAlignBottom',
134
- editorItemAlignCenter: 'editorItemAlignCenter',
135
- editorItemAlignLeft: 'editorItemAlignLeft',
136
- editorItemAlignMiddle: 'editorItemAlignMiddle',
137
- editorItemAlignRight: 'editorItemAlignRight',
138
- editorItemAlignTop: 'editorItemAlignTop',
139
- editorLink: 'editor_link',
140
- editorOrderedList: 'editor_ordered_list',
141
- editorPositionBottomLeft: 'editorPositionBottomLeft',
142
- editorPositionBottomRight: 'editorPositionBottomRight',
143
- editorPositionTopLeft: 'editorPositionTopLeft',
144
- editorPositionTopRight: 'editorPositionTopRight',
145
- editorRedo: 'editor_redo',
146
- editorStrike: 'editor_strike',
147
- editorTable: 'editor_table',
148
- editorUnderline: 'editor_underline',
149
- editorUndo: 'editor_undo',
150
- editorUnorderedList: 'editor_unordered_list',
151
- email: 'email',
152
- empty: 'empty',
153
- emsApp: 'app_ems',
154
- eql: 'eql',
155
- eraser: 'eraser',
156
- exit: 'exit',
157
- expand: 'expand',
158
- expandMini: 'expandMini',
159
- exportAction: 'export',
160
- eye: 'eye',
161
- eyeClosed: 'eye_closed',
162
- faceHappy: 'face_happy',
163
- faceNeutral: 'face_neutral',
164
- faceSad: 'face_sad',
165
- filebeatApp: 'app_filebeat',
166
- filter: 'filter',
167
- flag: 'flag',
168
- fleetApp: 'app_agent',
169
- fold: 'fold',
170
- folderCheck: 'folder_check',
171
- folderClosed: 'folder_closed',
172
- folderExclamation: 'folder_exclamation',
173
- folderOpen: 'folder_open',
174
- frameNext: 'frameNext',
175
- framePrevious: 'framePrevious',
176
- fullScreen: 'full_screen',
177
- fullScreenExit: 'fullScreenExit',
178
- function: 'function',
179
- gear: 'gear',
180
- gisApp: 'app_gis',
181
- glasses: 'glasses',
182
- globe: 'globe',
183
- grab: 'grab',
184
- grabHorizontal: 'grab_horizontal',
185
- graphApp: 'app_graph',
186
- grid: 'grid',
187
- grokApp: 'app_grok',
188
- heart: 'heart',
189
- heartbeatApp: 'app_heartbeat',
190
- heatmap: 'heatmap',
191
- help: 'help',
192
- home: 'home',
193
- iInCircle: 'iInCircle',
194
- image: 'image',
195
- importAction: 'import',
196
- indexClose: 'index_close',
197
- indexEdit: 'index_edit',
198
- indexFlush: 'index_flush',
199
- indexManagementApp: 'app_index_management',
200
- indexMapping: 'index_mapping',
201
- indexOpen: 'index_open',
202
- indexPatternApp: 'app_index_pattern',
203
- indexRollupApp: 'app_index_rollup',
204
- indexRuntime: 'index_runtime',
205
- indexSettings: 'index_settings',
206
- inputOutput: 'inputOutput',
207
- inspect: 'inspect',
208
- invert: 'invert',
209
- ip: 'ip',
210
- keyboardShortcut: 'keyboard_shortcut',
211
- kqlField: 'kql_field',
212
- kqlFunction: 'kql_function',
213
- kqlOperand: 'kql_operand',
214
- kqlSelector: 'kql_selector',
215
- kqlValue: 'kql_value',
216
- layers: 'layers',
217
- lensApp: 'app_lens',
218
- lettering: 'lettering',
219
- lineDashed: 'lineDashed',
220
- lineDotted: 'lineDotted',
221
- lineSolid: 'lineSolid',
222
- link: 'link',
223
- list: 'list',
224
- listAdd: 'list_add',
225
- lock: 'lock',
226
- lockOpen: 'lockOpen',
227
- logoAWS: 'logo_aws',
228
- logoAWSMono: 'logo_aws_mono',
229
- logoAerospike: 'logo_aerospike',
230
- logoApache: 'logo_apache',
231
- logoAppSearch: 'logo_app_search',
232
- logoAzure: 'logo_azure',
233
- logoAzureMono: 'logo_azure_mono',
234
- logoBeats: 'logo_beats',
235
- logoBusinessAnalytics: 'logo_business_analytics',
236
- logoCeph: 'logo_ceph',
237
- logoCloud: 'logo_cloud',
238
- logoCloudEnterprise: 'logo_cloud_ece',
239
- logoCode: 'logo_code',
240
- logoCodesandbox: 'logo_codesandbox',
241
- logoCouchbase: 'logo_couchbase',
242
- logoDocker: 'logo_docker',
243
- logoDropwizard: 'logo_dropwizard',
244
- logoElastic: 'logo_elastic',
245
- logoElasticStack: 'logo_elastic_stack',
246
- logoElasticsearch: 'logo_elasticsearch',
247
- logoEnterpriseSearch: 'logo_enterprise_search',
248
- logoEtcd: 'logo_etcd',
249
- logoGCP: 'logo_gcp',
250
- logoGCPMono: 'logo_gcp_mono',
251
- logoGithub: 'logo_github',
252
- logoGmail: 'logo_gmail',
253
- logoGolang: 'logo_golang',
254
- logoGoogleG: 'logo_google_g',
255
- logoHAproxy: 'logo_haproxy',
256
- logoIBM: 'logo_ibm',
257
- logoIBMMono: 'logo_ibm_mono',
258
- logoKafka: 'logo_kafka',
259
- logoKibana: 'logo_kibana',
260
- logoKubernetes: 'logo_kubernetes',
261
- logoLogging: 'logo_logging',
262
- logoLogstash: 'logo_logstash',
263
- logoMaps: 'logo_maps',
264
- logoMemcached: 'logo_memcached',
265
- logoMetrics: 'logo_metrics',
266
- logoMongodb: 'logo_mongodb',
267
- logoMySQL: 'logo_mysql',
268
- logoNginx: 'logo_nginx',
269
- logoObservability: 'logo_observability',
270
- logoOsquery: 'logo_osquery',
271
- logoPhp: 'logo_php',
272
- logoPostgres: 'logo_postgres',
273
- logoPrometheus: 'logo_prometheus',
274
- logoRabbitmq: 'logo_rabbitmq',
275
- logoRedis: 'logo_redis',
276
- logoSecurity: 'logo_security',
277
- logoSiteSearch: 'logo_site_search',
278
- logoSketch: 'logo_sketch',
279
- logoSlack: 'logo_slack',
280
- logoUptime: 'logo_uptime',
281
- logoWebhook: 'logo_webhook',
282
- logoWindows: 'logo_windows',
283
- logoWorkplaceSearch: 'logo_workplace_search',
284
- logsApp: 'app_logs',
285
- logstashFilter: 'logstash_filter',
286
- logstashIf: 'logstash_if',
287
- logstashInput: 'logstash_input',
288
- logstashOutput: 'logstash_output',
289
- logstashQueue: 'logstash_queue',
290
- machineLearningApp: 'app_ml',
291
- magnet: 'magnet',
292
- magnifyWithExclamation: 'magnifyWithExclamation',
293
- magnifyWithMinus: 'magnifyWithMinus',
294
- magnifyWithPlus: 'magnifyWithPlus',
295
- managementApp: 'app_management',
296
- mapMarker: 'map_marker',
297
- memory: 'memory',
298
- menu: 'menu',
299
- menuDown: 'menuDown',
300
- menuLeft: 'menuLeft',
301
- menuRight: 'menuRight',
302
- menuUp: 'menuUp',
303
- merge: 'merge',
304
- metricbeatApp: 'app_metricbeat',
305
- metricsApp: 'app_metrics',
306
- minimize: 'minimize',
307
- minus: 'minus',
308
- minusInCircle: 'minus_in_circle',
309
- minusInCircleFilled: 'minus_in_circle_filled',
310
- mobile: 'mobile',
311
- monitoringApp: 'app_monitoring',
312
- moon: 'moon',
313
- nested: 'nested',
314
- node: 'node',
315
- notebookApp: 'app_notebook',
316
- number: 'number',
317
- offline: 'offline',
318
- online: 'online',
319
- outlierDetectionJob: 'ml_outlier_detection_job',
320
- package: 'package',
321
- packetbeatApp: 'app_packetbeat',
322
- pageSelect: 'pageSelect',
323
- pagesSelect: 'pagesSelect',
324
- paperClip: 'paper_clip',
325
- partial: 'partial',
326
- pause: 'pause',
327
- payment: 'payment',
328
- pencil: 'pencil',
329
- percent: 'percent',
330
- pin: 'pin',
331
- pinFilled: 'pin_filled',
332
- pipelineApp: 'app_pipeline',
333
- play: 'play',
334
- playFilled: 'playFilled',
335
- plus: 'plus',
336
- plusInCircle: 'plus_in_circle',
337
- plusInCircleFilled: 'plus_in_circle_filled',
338
- popout: 'popout',
339
- push: 'push',
340
- questionInCircle: 'question_in_circle',
341
- quote: 'quote',
342
- recentlyViewedApp: 'app_recently_viewed',
343
- refresh: 'refresh',
344
- regressionJob: 'ml_regression_job',
345
- reporter: 'reporter',
346
- reportingApp: 'app_reporting',
347
- returnKey: 'return_key',
348
- save: 'save',
349
- savedObjectsApp: 'app_saved_objects',
350
- scale: 'scale',
351
- search: 'search',
352
- searchProfilerApp: 'app_search_profiler',
353
- securityAnalyticsApp: 'app_security_analytics',
354
- securityApp: 'app_security',
355
- securitySignal: 'securitySignal',
356
- securitySignalDetected: 'securitySignalDetected',
357
- securitySignalResolved: 'securitySignalResolved',
358
- sessionViewer: 'sessionViewer',
359
- shard: 'shard',
360
- share: 'share',
361
- snowflake: 'snowflake',
362
- sortDown: 'sort_down',
363
- sortLeft: 'sortLeft',
364
- sortRight: 'sortRight',
365
- sortUp: 'sort_up',
366
- sortable: 'sortable',
367
- spacesApp: 'app_spaces',
368
- sqlApp: 'app_sql',
369
- starEmpty: 'star_empty',
370
- starEmptySpace: 'star_empty_space',
371
- starFilled: 'star_filled',
372
- starFilledSpace: 'star_filled_space',
373
- starMinusEmpty: 'star_minus_empty',
374
- starMinusFilled: 'star_minus_filled',
375
- starPlusEmpty: 'starPlusEmpty',
376
- starPlusFilled: 'starPlusFilled',
377
- stats: 'stats',
378
- stop: 'stop',
379
- stopFilled: 'stop_filled',
380
- stopSlash: 'stop_slash',
381
- storage: 'storage',
382
- string: 'string',
383
- submodule: 'submodule',
384
- sun: 'sun',
385
- swatchInput: 'swatch_input',
386
- // Undocumented on purpose. Has an extra stroke for EuiColorPicker
387
- symlink: 'symlink',
388
- tableDensityCompact: 'table_density_compact',
389
- tableDensityExpanded: 'table_density_expanded',
390
- tableDensityNormal: 'table_density_normal',
391
- tableOfContents: 'tableOfContents',
392
- tag: 'tag',
393
- tear: 'tear',
394
- temperature: 'temperature',
395
- timeline: 'timeline',
396
- timelionApp: 'app_timelion',
397
- timeRefresh: 'timeRefresh',
398
- timeslider: 'timeslider',
399
- training: 'training',
400
- trash: 'trash',
401
- unfold: 'unfold',
402
- unlink: 'unlink',
403
- upgradeAssistantApp: 'app_upgrade_assistant',
404
- uptimeApp: 'app_uptime',
405
- user: 'user',
406
- userAvatar: 'userAvatar',
407
- users: 'users',
408
- usersRolesApp: 'app_users_roles',
409
- vector: 'vector',
410
- videoPlayer: 'videoPlayer',
411
- visArea: 'vis_area',
412
- visAreaStacked: 'vis_area_stacked',
413
- visBarHorizontal: 'vis_bar_horizontal',
414
- visBarHorizontalStacked: 'vis_bar_horizontal_stacked',
415
- visBarVertical: 'vis_bar_vertical',
416
- visBarVerticalStacked: 'vis_bar_vertical_stacked',
417
- visGauge: 'vis_gauge',
418
- visGoal: 'vis_goal',
419
- visLine: 'vis_line',
420
- visMapCoordinate: 'vis_map_coordinate',
421
- visMapRegion: 'vis_map_region',
422
- visMetric: 'vis_metric',
423
- visPie: 'vis_pie',
424
- visTable: 'vis_table',
425
- visTagCloud: 'vis_tag_cloud',
426
- visText: 'vis_text',
427
- visTimelion: 'vis_timelion',
428
- visVega: 'vis_vega',
429
- visVisualBuilder: 'vis_visual_builder',
430
- visualizeApp: 'app_visualize',
431
- watchesApp: 'app_watches',
432
- wordWrap: 'wordWrap',
433
- wordWrapDisabled: 'wordWrapDisabled',
434
- workplaceSearchApp: 'app_workplace_search',
435
- wrench: 'wrench',
436
- // Token Icon Imports
437
- tokenClass: 'tokenClass',
438
- tokenProperty: 'tokenProperty',
439
- tokenEnum: 'tokenEnum',
440
- tokenVariable: 'tokenVariable',
441
- tokenMethod: 'tokenMethod',
442
- tokenAnnotation: 'tokenAnnotation',
443
- tokenException: 'tokenException',
444
- tokenInterface: 'tokenInterface',
445
- tokenParameter: 'tokenParameter',
446
- tokenField: 'tokenField',
447
- tokenElement: 'tokenElement',
448
- tokenFunction: 'tokenFunction',
449
- tokenBoolean: 'tokenBoolean',
450
- tokenString: 'tokenString',
451
- tokenArray: 'tokenArray',
452
- tokenNumber: 'tokenNumber',
453
- tokenConstant: 'tokenConstant',
454
- tokenObject: 'tokenObject',
455
- tokenEvent: 'tokenEvent',
456
- tokenKey: 'tokenKey',
457
- tokenNull: 'tokenNull',
458
- tokenStruct: 'tokenStruct',
459
- tokenPackage: 'tokenPackage',
460
- tokenOperator: 'tokenOperator',
461
- tokenEnumMember: 'tokenEnumMember',
462
- tokenRepo: 'tokenRepo',
463
- tokenSymbol: 'tokenSymbol',
464
- tokenFile: 'tokenFile',
465
- tokenModule: 'tokenModule',
466
- tokenNamespace: 'tokenNamespace',
467
- tokenDate: 'tokenDate',
468
- tokenIP: 'tokenIP',
469
- tokenNested: 'tokenNested',
470
- tokenAlias: 'tokenAlias',
471
- tokenShape: 'tokenShape',
472
- tokenGeo: 'tokenGeo',
473
- tokenRange: 'tokenRange',
474
- tokenBinary: 'tokenBinary',
475
- tokenJoin: 'tokenJoin',
476
- tokenPercolator: 'tokenPercolator',
477
- tokenFlattened: 'tokenFlattened',
478
- tokenRankFeature: 'tokenRankFeature',
479
- tokenRankFeatures: 'tokenRankFeatures',
480
- tokenKeyword: 'tokenKeyword',
481
- tokenTag: 'tokenTag',
482
- tokenCompletionSuggester: 'tokenCompletionSuggester',
483
- tokenDenseVector: 'tokenDenseVector',
484
- tokenText: 'tokenText',
485
- tokenTokenCount: 'tokenTokenCount',
486
- tokenSearchType: 'tokenSearchType',
487
- tokenHistogram: 'tokenHistogram'
488
- };
489
48
  export var TYPES = keysOf(typeToPathMap);
490
- export var COLORS = keysOf(colorToClassMap); // We accept arbitrary color strings, which are impossible to type.
491
-
492
- var sizeToClassNameMap = {
493
- original: null,
494
- s: 'euiIcon--small',
495
- m: 'euiIcon--medium',
496
- l: 'euiIcon--large',
497
- xl: 'euiIcon--xLarge',
498
- xxl: 'euiIcon--xxLarge'
499
- };
500
- export var SIZES = keysOf(sizeToClassNameMap);
49
+ export var SIZES = ['original', 's', 'm', 'l', 'xl', 'xxl'];
501
50
 
502
51
  function isEuiIconType(x) {
503
52
  return typeof x === 'string' && typeToPathMap.hasOwnProperty(x);
@@ -535,15 +84,15 @@ export var appendIconComponentCache = function appendIconComponentCache(iconType
535
84
  }
536
85
  }
537
86
  };
538
- export var EuiIcon = /*#__PURE__*/function (_PureComponent) {
539
- _inherits(EuiIcon, _PureComponent);
87
+ export var EuiIconClass = /*#__PURE__*/function (_PureComponent) {
88
+ _inherits(EuiIconClass, _PureComponent);
540
89
 
541
- var _super = _createSuper(EuiIcon);
90
+ var _super = _createSuper(EuiIconClass);
542
91
 
543
- function EuiIcon(props) {
92
+ function EuiIconClass(props) {
544
93
  var _this;
545
94
 
546
- _classCallCheck(this, EuiIcon);
95
+ _classCallCheck(this, EuiIconClass);
547
96
 
548
97
  _this = _super.call(this, props);
549
98
 
@@ -602,7 +151,7 @@ export var EuiIcon = /*#__PURE__*/function (_PureComponent) {
602
151
  return _this;
603
152
  }
604
153
 
605
- _createClass(EuiIcon, [{
154
+ _createClass(EuiIconClass, [{
606
155
  key: "componentDidMount",
607
156
  value: function componentDidMount() {
608
157
  var type = this.props.type;
@@ -658,35 +207,29 @@ export var EuiIcon = /*#__PURE__*/function (_PureComponent) {
658
207
  tabIndex = _this$props.tabIndex,
659
208
  title = _this$props.title,
660
209
  onIconLoad = _this$props.onIconLoad,
210
+ theme = _this$props.theme,
211
+ style = _this$props.style,
661
212
  rest = _objectWithoutProperties(_this$props, _excluded);
662
213
 
663
214
  var _this$state = this.state,
664
215
  isLoading = _this$state.isLoading,
665
- neededLoading = _this$state.neededLoading;
666
- var optionalColorClass = null;
667
- var optionalCustomStyles = null;
216
+ neededLoading = _this$state.neededLoading,
217
+ iconTitle = _this$state.iconTitle;
218
+ var isLoaded = !isLoading && neededLoading;
219
+ var isCustomColor = color && !isNamedColor(color);
220
+ var optionalCustomStyles = isCustomColor ? _objectSpread({
221
+ color: color
222
+ }, style) : style; // These icons are a little special and get some extra CSS flexibility
668
223
 
669
- if (color) {
670
- if (isNamedColor(color)) {
671
- optionalColorClass = colorToClassMap[color];
672
- } else {
673
- optionalCustomStyles = {
674
- color: color
675
- };
676
- optionalColorClass = 'euiIcon--customColor';
677
- }
678
- } // These icons are a little special and get some extra CSS flexibility
224
+ var isAppIcon = getIsAppIcon(type); // App color styles are only applied if no color is passed or if color="default" is passed
679
225
 
226
+ var appIconHasColor = color && color !== 'default'; // The Elastic logo should be an outline in text and ghost mode
680
227
 
681
- var isAppIcon = getIsAppIcon(type);
682
- var appIconHasColor = color && color !== 'default'; // parent is not one of
228
+ var isElasticLogoOutline = type === 'logoElastic' && (color === 'ghost' || color === 'text');
229
+ var classes = classNames('euiIcon', className); // Emotion styles
683
230
 
684
- var classes = classNames('euiIcon', sizeToClassNameMap[size], optionalColorClass, {
685
- // The app icon only gets the .euiIcon--app class if no color is passed or if color="default" is passed
686
- 'euiIcon--app': isAppIcon && !appIconHasColor,
687
- 'euiIcon-isLoading': isLoading,
688
- 'euiIcon-isLoaded': !isLoading && neededLoading
689
- }, className);
231
+ var styles = euiIconStyles(theme);
232
+ var cssStyles = [styles.euiIcon, styles[size], color && isNamedColor(color) && styles[color], isCustomColor && styles.customColor, isElasticLogoOutline && styles.logoElasticOutline, isAppIcon && !appIconHasColor && styles.app, isLoading && styles.isLoading, !isLoading && neededLoading && styles.isLoaded];
690
233
  var icon = this.state.icon || empty; // This is a fix for IE and Edge, which ignores tabindex="-1" on an SVG, but respects
691
234
  // focusable="false".
692
235
  // - If there's no tabindex specified, we'll default the icon to not be focusable,
@@ -701,6 +244,7 @@ export var EuiIcon = /*#__PURE__*/function (_PureComponent) {
701
244
  alt: title ? title : '',
702
245
  src: icon,
703
246
  className: classes,
247
+ css: cssStyles,
704
248
  tabIndex: tabIndex
705
249
  }, rest));
706
250
  } else {
@@ -723,15 +267,19 @@ export var EuiIcon = /*#__PURE__*/function (_PureComponent) {
723
267
  return ___EmotionJSX(Svg, _extends({
724
268
  className: classes,
725
269
  style: optionalCustomStyles,
270
+ css: cssStyles,
726
271
  tabIndex: tabIndex,
727
272
  focusable: focusable,
728
273
  role: "img",
729
274
  title: title,
730
- "data-icon-type": this.state.iconTitle
275
+ "data-icon-type": iconTitle,
276
+ "data-is-loaded": isLoaded || undefined,
277
+ "data-is-loading": isLoading || undefined
731
278
  }, titleId, rest, hideIconEmpty));
732
279
  }
733
280
  }
734
281
  }]);
735
282
 
736
- return EuiIcon;
737
- }(PureComponent);
283
+ return EuiIconClass;
284
+ }(PureComponent);
285
+ export var EuiIcon = withEuiTheme(EuiIconClass);
@@ -0,0 +1,75 @@
1
+ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
+
3
+ var _templateObject;
4
+
5
+ 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)."; }
6
+
7
+ /*
8
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
9
+ * or more contributor license agreements. Licensed under the Elastic License
10
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
11
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
12
+ * Side Public License, v 1.
13
+ */
14
+ import { css, keyframes } from '@emotion/react';
15
+ import { logicalCSS, euiCanAnimate } from '../../global_styling';
16
+
17
+ var iconSize = function iconSize(size) {
18
+ return "\n ".concat(logicalCSS('width', size), ";\n ").concat(logicalCSS('height', size), ";\n ");
19
+ };
20
+
21
+ export var iconLoadingOpacity = 0.05;
22
+ var iconLoading = keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 0% {\n opacity: ", ";\n }\n\n 100% {\n opacity: 1;\n }\n"])), iconLoadingOpacity);
23
+
24
+ var _ref = process.env.NODE_ENV === "production" ? {
25
+ name: "njd749-logoElasticOutline",
26
+ styles: "*[fill]{fill:none!important;}.outline{fill:currentColor!important;};label:logoElasticOutline;"
27
+ } : {
28
+ name: "njd749-logoElasticOutline",
29
+ styles: "*[fill]{fill:none!important;}.outline{fill:currentColor!important;};label:logoElasticOutline;",
30
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
31
+ };
32
+
33
+ var _ref2 = process.env.NODE_ENV === "production" ? {
34
+ name: "uacjc5-inherit",
35
+ styles: "color:inherit;label:inherit;"
36
+ } : {
37
+ name: "uacjc5-inherit",
38
+ styles: "color:inherit;label:inherit;",
39
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
40
+ };
41
+
42
+ export var euiIconStyles = function euiIconStyles(_ref3) {
43
+ var euiTheme = _ref3.euiTheme;
44
+ return {
45
+ // Base
46
+ euiIcon: /*#__PURE__*/css("flex-shrink:0;display:inline-block;vertical-align:middle;fill:currentColor;transform:translate(0, 0);.euiIcon__fillNegative{fill:", euiTheme.colors.darkestShade, ";};label:euiIcon;"),
47
+ // Colors
48
+ accent: /*#__PURE__*/css("color:", euiTheme.colors.accentText, ";;label:accent;"),
49
+ danger: /*#__PURE__*/css("color:", euiTheme.colors.dangerText, ";;label:danger;"),
50
+ ghost: /*#__PURE__*/css("color:", euiTheme.colors.ghost, ";*[fill],.euiIcon__fillNegative{fill:currentColor!important;};label:ghost;"),
51
+ primary: /*#__PURE__*/css("color:", euiTheme.colors.primaryText, ";;label:primary;"),
52
+ success: /*#__PURE__*/css("color:", euiTheme.colors.successText, ";;label:success;"),
53
+ subdued: /*#__PURE__*/css("color:", euiTheme.colors.subduedText, ";;label:subdued;"),
54
+ text: /*#__PURE__*/css("color:", euiTheme.colors.title, ";*[fill],.euiIcon__fillNegative{fill:currentColor!important;};label:text;"),
55
+ warning: /*#__PURE__*/css("color:", euiTheme.colors.warningText, ";;label:warning;"),
56
+ inherit: _ref2,
57
+ default: /*#__PURE__*/css(";label:default;"),
58
+ customColor: /*#__PURE__*/css(";label:customColor;"),
59
+ logoElasticOutline: _ref,
60
+ // Sizes
61
+ original: /*#__PURE__*/css(";label:original;"),
62
+ s: /*#__PURE__*/css(iconSize(euiTheme.size.m), ";label:s;"),
63
+ m: /*#__PURE__*/css(iconSize(euiTheme.size.base), ";label:m;"),
64
+ l: /*#__PURE__*/css(iconSize(euiTheme.size.l), ";label:l;"),
65
+ xl: /*#__PURE__*/css(iconSize(euiTheme.size.xl), ";label:xl;"),
66
+ xxl: /*#__PURE__*/css(iconSize(euiTheme.size.xxl), ";label:xxl;"),
67
+ // Variants
68
+ // App icons are two-toned. This provides the base color.
69
+ app: /*#__PURE__*/css("fill:", euiTheme.colors.text, ";.euiIcon__fillSecondary{fill:", euiTheme.colors.successText, ";};label:app;"),
70
+ logo: /*#__PURE__*/css(";label:logo;"),
71
+ // Loading states
72
+ isLoading: /*#__PURE__*/css("opacity:", iconLoadingOpacity, ";background-color:currentColor;border-radius:", euiTheme.border.radius.small, ";;label:isLoading;"),
73
+ isLoaded: /*#__PURE__*/css(euiCanAnimate, "{animation:", iconLoading, " ", euiTheme.animation.normal, " ease-in 0s 1 forwards;};label:isLoaded;")
74
+ };
75
+ };