@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
package/eui.d.ts CHANGED
@@ -1,21 +1,37 @@
1
+ declare module '@elastic/eui/src/services/theme/clone_element' {
2
+ import React from 'react';
3
+ /**
4
+ * React.cloneElement does not work if the cloned element does not already have the
5
+ * `css` prop - as a result, we need to use `jsx()` to manually clone the element
6
+ * See https://github.com/emotion-js/emotion/issues/1404
7
+ *
8
+ * NOTE: We're still using/testing this utility internally, so this is not yet a public API
9
+ */
10
+ export const cloneElementWithCss: (element: any, props: any) => React.ReactElement;
11
+
12
+ }
13
+ declare module '@elastic/eui/src/components/accessibility/screen_reader_only/screen_reader_only.styles' {
14
+ export const euiScreenReaderOnly: () => string;
15
+ export const euiScreenReaderOnlyStyles: (showOnFocus?: boolean | undefined) => {
16
+ euiScreenReaderOnly: import("@emotion/utils").SerializedStyles;
17
+ };
18
+
19
+ }
1
20
  declare module '@elastic/eui/src/components/accessibility/screen_reader_only/screen_reader_only' {
2
21
  import { ReactElement, FunctionComponent } from 'react';
3
22
  export interface EuiScreenReaderOnlyProps {
4
23
  /**
5
24
  * ReactElement to render as this component's content
6
25
  */
7
- children: ReactElement<any>;
26
+ children: ReactElement;
8
27
  /**
9
28
  * For keyboard navigation, force content to display visually upon focus.
10
29
  */
11
30
  showOnFocus?: boolean;
31
+ className?: string;
12
32
  }
13
33
  export const EuiScreenReaderOnly: FunctionComponent<EuiScreenReaderOnlyProps>;
14
34
 
15
- }
16
- declare module '@elastic/eui/src/components/accessibility/screen_reader_only/screen_reader_only.styles' {
17
- export const euiScreenReaderOnly: () => string;
18
-
19
35
  }
20
36
  declare module '@elastic/eui/src/components/accessibility/screen_reader_only' {
21
37
  export type { EuiScreenReaderOnlyProps } from '@elastic/eui/src/components/accessibility/screen_reader_only/screen_reader_only';
@@ -44,6 +60,13 @@ declare module '@elastic/eui/src/components/accessibility/screen_reader_live/scr
44
60
  * `aria-live` attribute for both live regions
45
61
  */
46
62
  'aria-live'?: AriaAttributes['aria-live'];
63
+ /**
64
+ * On `children`/text change, the region will auto-focus itself, causing screen readers
65
+ * to automatically read out the text content. This prop should primarily be used for
66
+ * navigation or page changes, where programmatically resetting focus location back to
67
+ * a certain part of the page is desired.
68
+ */
69
+ focusRegionOnTextChange?: boolean;
47
70
  }
48
71
  export const EuiScreenReaderLive: FunctionComponent<EuiScreenReaderLiveProps>;
49
72
 
@@ -523,41 +546,8 @@ declare module '@elastic/eui/src/components/color_picker/color_stops/utils' {
523
546
  export const getPositionFromStop: (stop: ColorStop['stop'], ref: HTMLDivElement, min: number, max: number) => number;
524
547
 
525
548
  }
526
- declare module '@elastic/eui/src/components/icon/assets/empty' {
527
- import * as React from 'react';
528
- interface SVGRProps {
529
- title?: string;
530
- titleId?: string;
531
- }
532
- export const icon: ({ title, titleId, ...props }: React.SVGProps<SVGSVGElement> & SVGRProps) => JSX.Element;
533
- export {};
534
-
535
- }
536
- declare module '@elastic/eui/src/services/react' {
537
- export function enqueueStateChange(fn: Function): void;
538
-
539
- }
540
- declare module '@elastic/eui/src/components/icon/named_colors' {
541
- export const colorToClassMap: {
542
- default: null;
543
- primary: string;
544
- success: string;
545
- accent: string;
546
- warning: string;
547
- danger: string;
548
- text: string;
549
- subdued: string;
550
- ghost: string;
551
- inherit: string;
552
- };
553
- export type NamedColor = keyof typeof colorToClassMap;
554
- export function isNamedColor(name: string): name is NamedColor;
555
-
556
- }
557
- declare module '@elastic/eui/src/components/icon/icon' {
558
- import React, { PureComponent, ComponentType, SVGAttributes } from 'react';
559
- import { CommonProps } from '@elastic/eui/src/components/common';
560
- import { NamedColor } from '@elastic/eui/src/components/icon/named_colors'; const typeToPathMap: {
549
+ declare module '@elastic/eui/src/components/icon/icon_map' {
550
+ export const typeToPathMap: {
561
551
  accessibility: string;
562
552
  addDataApp: string;
563
553
  advancedSettingsApp: string;
@@ -1003,201 +993,26 @@ declare module '@elastic/eui/src/components/icon/icon' {
1003
993
  tokenSearchType: string;
1004
994
  tokenHistogram: string;
1005
995
  };
1006
- export const TYPES: ("string" | "number" | "function" | "link" | "menu" | "alert" | "document" | "grid" | "list" | "search" | "filter" | "image" | "stop" | "temperature" | "color" | "scale" | "accessibility" | "aggregate" | "analyzeEvent" | "annotation" | "apps" | "arrowStart" | "arrowEnd" | "asterisk" | "beaker" | "bell" | "bellSlash" | "bolt" | "branch" | "branchUser" | "broom" | "brush" | "bug" | "bullseye" | "calendar" | "check" | "checkInCircleFilled" | "cheer" | "clock" | "cloudDrizzle" | "cloudStormy" | "cloudSunny" | "compute" | "console" | "continuityAbove" | "continuityAboveBelow" | "continuityBelow" | "continuityWithin" | "copy" | "cross" | "crossInACircleFilled" | "crosshairs" | "currency" | "cut" | "database" | "desktop" | "documentEdit" | "documentation" | "documents" | "dot" | "doubleArrowLeft" | "doubleArrowRight" | "download" | "editorDistributeHorizontal" | "editorDistributeVertical" | "editorItemAlignBottom" | "editorItemAlignCenter" | "editorItemAlignLeft" | "editorItemAlignMiddle" | "editorItemAlignRight" | "editorItemAlignTop" | "editorPositionBottomLeft" | "editorPositionBottomRight" | "editorPositionTopLeft" | "editorPositionTopRight" | "email" | "empty" | "eql" | "eraser" | "exit" | "expand" | "expandMini" | "eye" | "flag" | "fold" | "frameNext" | "framePrevious" | "fullScreenExit" | "gear" | "glasses" | "globe" | "grab" | "heart" | "heatmap" | "help" | "home" | "iInCircle" | "inputOutput" | "inspect" | "invert" | "ip" | "layers" | "lettering" | "lineDashed" | "lineDotted" | "lineSolid" | "lock" | "lockOpen" | "magnet" | "magnifyWithExclamation" | "magnifyWithMinus" | "magnifyWithPlus" | "memory" | "menuDown" | "menuLeft" | "menuRight" | "menuUp" | "merge" | "minimize" | "minus" | "mobile" | "moon" | "nested" | "node" | "offline" | "online" | "package" | "pageSelect" | "pagesSelect" | "partial" | "pause" | "payment" | "pencil" | "percent" | "pin" | "play" | "playFilled" | "plus" | "popout" | "push" | "quote" | "refresh" | "reporter" | "save" | "securitySignal" | "securitySignalDetected" | "securitySignalResolved" | "sessionViewer" | "shard" | "share" | "snowflake" | "sortLeft" | "sortRight" | "sortable" | "starPlusEmpty" | "starPlusFilled" | "stats" | "storage" | "submodule" | "sun" | "symlink" | "tableOfContents" | "tag" | "tear" | "timeline" | "timeRefresh" | "timeslider" | "training" | "trash" | "unfold" | "unlink" | "user" | "userAvatar" | "users" | "vector" | "videoPlayer" | "wordWrap" | "wordWrapDisabled" | "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" | "addDataApp" | "advancedSettingsApp" | "agentApp" | "apmApp" | "apmTrace" | "appSearchApp" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowUp" | "auditbeatApp" | "boxesHorizontal" | "boxesVertical" | "canvasApp" | "casesApp" | "classificationJob" | "codeApp" | "consoleApp" | "controlsHorizontal" | "controlsVertical" | "copyClipboard" | "createAdvancedJob" | "createMultiMetricJob" | "createPopulationJob" | "createSingleMetricJob" | "crossClusterReplicationApp" | "dashboardApp" | "dataVisualizer" | "devToolsApp" | "discoverApp" | "editorAlignCenter" | "editorAlignLeft" | "editorAlignRight" | "editorBold" | "editorChecklist" | "editorCodeBlock" | "editorComment" | "editorHeading" | "editorItalic" | "editorLink" | "editorOrderedList" | "editorRedo" | "editorStrike" | "editorTable" | "editorUnderline" | "editorUndo" | "editorUnorderedList" | "emsApp" | "exportAction" | "eyeClosed" | "faceHappy" | "faceNeutral" | "faceSad" | "filebeatApp" | "fleetApp" | "folderCheck" | "folderClosed" | "folderExclamation" | "folderOpen" | "fullScreen" | "gisApp" | "grabHorizontal" | "graphApp" | "grokApp" | "heartbeatApp" | "importAction" | "indexClose" | "indexEdit" | "indexFlush" | "indexManagementApp" | "indexMapping" | "indexOpen" | "indexPatternApp" | "indexRollupApp" | "indexRuntime" | "indexSettings" | "keyboardShortcut" | "kqlField" | "kqlFunction" | "kqlOperand" | "kqlSelector" | "kqlValue" | "lensApp" | "listAdd" | "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" | "managementApp" | "mapMarker" | "metricbeatApp" | "metricsApp" | "minusInCircle" | "minusInCircleFilled" | "monitoringApp" | "notebookApp" | "outlierDetectionJob" | "packetbeatApp" | "paperClip" | "pinFilled" | "pipelineApp" | "plusInCircle" | "plusInCircleFilled" | "questionInCircle" | "recentlyViewedApp" | "regressionJob" | "reportingApp" | "returnKey" | "savedObjectsApp" | "searchProfilerApp" | "securityAnalyticsApp" | "securityApp" | "sortDown" | "sortUp" | "spacesApp" | "sqlApp" | "starEmpty" | "starEmptySpace" | "starFilled" | "starFilledSpace" | "starMinusEmpty" | "starMinusFilled" | "stopFilled" | "stopSlash" | "swatchInput" | "tableDensityCompact" | "tableDensityExpanded" | "tableDensityNormal" | "timelionApp" | "upgradeAssistantApp" | "uptimeApp" | "usersRolesApp" | "visArea" | "visAreaStacked" | "visBarHorizontal" | "visBarHorizontalStacked" | "visBarVertical" | "visBarVerticalStacked" | "visGauge" | "visGoal" | "visLine" | "visMapCoordinate" | "visMapRegion" | "visMetric" | "visPie" | "visTable" | "visTagCloud" | "visText" | "visTimelion" | "visVega" | "visVisualBuilder" | "visualizeApp" | "watchesApp" | "workplaceSearchApp")[];
1007
- export type EuiIconType = keyof typeof typeToPathMap;
1008
- export type IconType = EuiIconType | string | ComponentType;
1009
- export const COLORS: NamedColor[];
1010
- export type IconColor = string | NamedColor; const sizeToClassNameMap: {
1011
- original: null;
1012
- s: string;
1013
- m: string;
1014
- l: string;
1015
- xl: string;
1016
- xxl: string;
1017
- };
1018
- export const SIZES: IconSize[];
1019
- export type IconSize = keyof typeof sizeToClassNameMap;
1020
- export type EuiIconProps = CommonProps & Omit<SVGAttributes<SVGElement>, 'type' | 'color' | 'size'> & {
1021
- /**
1022
- * `Enum` is any of the named icons listed in the docs, `string` is usually a URL to an SVG file, and `elementType` is any React SVG component
1023
- */
1024
- type: IconType;
1025
- /**
1026
- * One of EUI's color palette or a valid CSS color value https://developer.mozilla.org/en-US/docs/Web/CSS/color_value.
1027
- * Note that coloring only works if your SVG is removed of fill attributes.
1028
- */
1029
- color?: IconColor;
1030
- /**
1031
- * Note that every size other than `original` assumes the provided SVG sits on a square viewbox.
1032
- */
1033
- size?: IconSize;
1034
- /**
1035
- * Descriptive title for naming the icon based on its use
1036
- */
996
+
997
+ }
998
+ declare module '@elastic/eui/src/components/icon/assets/empty' {
999
+ import * as React from 'react';
1000
+ interface SVGRProps {
1037
1001
  title?: string;
1038
- /**
1039
- * A unique identifier for the title element
1040
- */
1041
1002
  titleId?: string;
1042
- /**
1043
- * Its value should be one or more element IDs
1044
- */
1045
- 'aria-labelledby'?: string;
1046
- /**
1047
- * Callback when the icon has been loaded & rendered
1048
- */
1049
- onIconLoad?: () => void;
1050
- };
1051
- interface State {
1052
- icon: undefined | ComponentType | string;
1053
- iconTitle: undefined | string;
1054
- isLoading: boolean;
1055
- neededLoading: boolean;
1056
- }
1057
- export const clearIconComponentCache: (iconType?: "string" | "number" | "function" | "link" | "menu" | "alert" | "document" | "grid" | "list" | "search" | "filter" | "image" | "stop" | "temperature" | "color" | "scale" | "accessibility" | "aggregate" | "analyzeEvent" | "annotation" | "apps" | "arrowStart" | "arrowEnd" | "asterisk" | "beaker" | "bell" | "bellSlash" | "bolt" | "branch" | "branchUser" | "broom" | "brush" | "bug" | "bullseye" | "calendar" | "check" | "checkInCircleFilled" | "cheer" | "clock" | "cloudDrizzle" | "cloudStormy" | "cloudSunny" | "compute" | "console" | "continuityAbove" | "continuityAboveBelow" | "continuityBelow" | "continuityWithin" | "copy" | "cross" | "crossInACircleFilled" | "crosshairs" | "currency" | "cut" | "database" | "desktop" | "documentEdit" | "documentation" | "documents" | "dot" | "doubleArrowLeft" | "doubleArrowRight" | "download" | "editorDistributeHorizontal" | "editorDistributeVertical" | "editorItemAlignBottom" | "editorItemAlignCenter" | "editorItemAlignLeft" | "editorItemAlignMiddle" | "editorItemAlignRight" | "editorItemAlignTop" | "editorPositionBottomLeft" | "editorPositionBottomRight" | "editorPositionTopLeft" | "editorPositionTopRight" | "email" | "empty" | "eql" | "eraser" | "exit" | "expand" | "expandMini" | "eye" | "flag" | "fold" | "frameNext" | "framePrevious" | "fullScreenExit" | "gear" | "glasses" | "globe" | "grab" | "heart" | "heatmap" | "help" | "home" | "iInCircle" | "inputOutput" | "inspect" | "invert" | "ip" | "layers" | "lettering" | "lineDashed" | "lineDotted" | "lineSolid" | "lock" | "lockOpen" | "magnet" | "magnifyWithExclamation" | "magnifyWithMinus" | "magnifyWithPlus" | "memory" | "menuDown" | "menuLeft" | "menuRight" | "menuUp" | "merge" | "minimize" | "minus" | "mobile" | "moon" | "nested" | "node" | "offline" | "online" | "package" | "pageSelect" | "pagesSelect" | "partial" | "pause" | "payment" | "pencil" | "percent" | "pin" | "play" | "playFilled" | "plus" | "popout" | "push" | "quote" | "refresh" | "reporter" | "save" | "securitySignal" | "securitySignalDetected" | "securitySignalResolved" | "sessionViewer" | "shard" | "share" | "snowflake" | "sortLeft" | "sortRight" | "sortable" | "starPlusEmpty" | "starPlusFilled" | "stats" | "storage" | "submodule" | "sun" | "symlink" | "tableOfContents" | "tag" | "tear" | "timeline" | "timeRefresh" | "timeslider" | "training" | "trash" | "unfold" | "unlink" | "user" | "userAvatar" | "users" | "vector" | "videoPlayer" | "wordWrap" | "wordWrapDisabled" | "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" | "addDataApp" | "advancedSettingsApp" | "agentApp" | "apmApp" | "apmTrace" | "appSearchApp" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowUp" | "auditbeatApp" | "boxesHorizontal" | "boxesVertical" | "canvasApp" | "casesApp" | "classificationJob" | "codeApp" | "consoleApp" | "controlsHorizontal" | "controlsVertical" | "copyClipboard" | "createAdvancedJob" | "createMultiMetricJob" | "createPopulationJob" | "createSingleMetricJob" | "crossClusterReplicationApp" | "dashboardApp" | "dataVisualizer" | "devToolsApp" | "discoverApp" | "editorAlignCenter" | "editorAlignLeft" | "editorAlignRight" | "editorBold" | "editorChecklist" | "editorCodeBlock" | "editorComment" | "editorHeading" | "editorItalic" | "editorLink" | "editorOrderedList" | "editorRedo" | "editorStrike" | "editorTable" | "editorUnderline" | "editorUndo" | "editorUnorderedList" | "emsApp" | "exportAction" | "eyeClosed" | "faceHappy" | "faceNeutral" | "faceSad" | "filebeatApp" | "fleetApp" | "folderCheck" | "folderClosed" | "folderExclamation" | "folderOpen" | "fullScreen" | "gisApp" | "grabHorizontal" | "graphApp" | "grokApp" | "heartbeatApp" | "importAction" | "indexClose" | "indexEdit" | "indexFlush" | "indexManagementApp" | "indexMapping" | "indexOpen" | "indexPatternApp" | "indexRollupApp" | "indexRuntime" | "indexSettings" | "keyboardShortcut" | "kqlField" | "kqlFunction" | "kqlOperand" | "kqlSelector" | "kqlValue" | "lensApp" | "listAdd" | "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" | "managementApp" | "mapMarker" | "metricbeatApp" | "metricsApp" | "minusInCircle" | "minusInCircleFilled" | "monitoringApp" | "notebookApp" | "outlierDetectionJob" | "packetbeatApp" | "paperClip" | "pinFilled" | "pipelineApp" | "plusInCircle" | "plusInCircleFilled" | "questionInCircle" | "recentlyViewedApp" | "regressionJob" | "reportingApp" | "returnKey" | "savedObjectsApp" | "searchProfilerApp" | "securityAnalyticsApp" | "securityApp" | "sortDown" | "sortUp" | "spacesApp" | "sqlApp" | "starEmpty" | "starEmptySpace" | "starFilled" | "starFilledSpace" | "starMinusEmpty" | "starMinusFilled" | "stopFilled" | "stopSlash" | "swatchInput" | "tableDensityCompact" | "tableDensityExpanded" | "tableDensityNormal" | "timelionApp" | "upgradeAssistantApp" | "uptimeApp" | "usersRolesApp" | "visArea" | "visAreaStacked" | "visBarHorizontal" | "visBarHorizontalStacked" | "visBarVertical" | "visBarVerticalStacked" | "visGauge" | "visGoal" | "visLine" | "visMapCoordinate" | "visMapRegion" | "visMetric" | "visPie" | "visTable" | "visTagCloud" | "visText" | "visTimelion" | "visVega" | "visVisualBuilder" | "visualizeApp" | "watchesApp" | "workplaceSearchApp" | undefined) => void;
1058
- export const appendIconComponentCache: (iconTypeToIconComponentMap: {
1059
- [iconType: string]: React.ComponentType<{}>;
1060
- }) => void;
1061
- export class EuiIcon extends PureComponent<EuiIconProps, State> {
1062
- isMounted: boolean;
1063
- constructor(props: EuiIconProps);
1064
- componentDidMount(): void;
1065
- componentDidUpdate(prevProps: EuiIconProps): void;
1066
- componentWillUnmount(): void;
1067
- loadIconComponent: (iconType: EuiIconType) => void;
1068
- onIconLoad: () => void;
1069
- render(): JSX.Element;
1070
1003
  }
1004
+ export const icon: ({ title, titleId, ...props }: React.SVGProps<SVGSVGElement> & SVGRProps) => JSX.Element;
1071
1005
  export {};
1072
1006
 
1073
1007
  }
1074
- declare module '@elastic/eui/src/components/icon' {
1075
- export type { EuiIconProps, IconColor, IconSize, IconType } from '@elastic/eui/src/components/icon/icon';
1076
- export { EuiIcon, TYPES as ICON_TYPES, SIZES as ICON_SIZES, COLORS as ICON_COLORS, } from '@elastic/eui/src/components/icon/icon';
1077
-
1078
- }
1079
- declare module '@elastic/eui/src/components/context/context' {
1080
- import React, { Context, FunctionComponent, ReactChild, ReactNode } from 'react';
1081
- export interface RenderableValues {
1082
- [key: string]: ReactChild | undefined;
1083
- }
1084
- export type Renderable<T> = ReactChild | ((values: T) => ReactChild);
1085
- export interface I18nShape {
1086
- mapping?: {
1087
- [key: string]: Renderable<object>;
1088
- };
1089
- mappingFunc?: (value: string) => string;
1090
- /**
1091
- * Some browsers' translation features don't work with a rendered `<Fragment>` component.
1092
- * The `render` function allows you to pass in another component instead, e.g. `<div>`
1093
- */
1094
- render?: (children: any) => FunctionComponent;
1095
- formatNumber?: (x: number) => string;
1096
- formatDateTime?: (x: Date) => string;
1097
- locale?: string;
1098
- } const I18nContext: Context<I18nShape>; const EuiI18nConsumer: React.Consumer<I18nShape>;
1099
- export interface EuiContextProps {
1100
- i18n: I18nShape;
1101
- /**
1102
- * ReactNode to render as this component's content
1103
- */
1104
- children: ReactNode;
1105
- } const EuiContext: FunctionComponent<EuiContextProps>;
1106
- export { EuiContext, EuiI18nConsumer, I18nContext };
1107
-
1108
- }
1109
- declare module '@elastic/eui/src/components/context' {
1110
- export type { EuiContextProps } from '@elastic/eui/src/components/context/context';
1111
- export { EuiContext, EuiI18nConsumer } from '@elastic/eui/src/components/context/context';
1112
-
1113
- }
1114
- declare module '@elastic/eui/src/services/predicate/common_predicates' {
1115
- import moment from 'moment';
1116
- export const always: (_value?: any) => boolean;
1117
- export const never: (_value?: any) => boolean;
1118
- export const isUndefined: (value: any) => value is undefined;
1119
- export const isNull: (value: any) => value is null;
1120
- export const isNil: (value: any) => value is null | undefined;
1121
- export const isMoment: (value: any) => boolean;
1122
- export const isDate: (value: any) => value is Date;
1123
- export const isDateLike: (value: any) => value is Date | moment.Moment;
1124
-
1125
- }
1126
- declare module '@elastic/eui/src/services/predicate/lodash_predicates' {
1127
- export const isFunction: (value: any) => value is (...args: any[]) => any;
1128
- export const isArray: (value: any) => value is any[];
1129
- export const isString: (value: any) => value is string;
1130
- export const isBoolean: (value: any) => value is boolean;
1131
- export const isNumber: (value: any) => value is number;
1132
- export const isNaN: (value: any) => boolean;
1133
- export const isObject: (value: any) => value is object;
1134
-
1135
- }
1136
- declare module '@elastic/eui/src/services/predicate' {
1137
- export * from '@elastic/eui/src/services/predicate/common_predicates';
1138
- export * from '@elastic/eui/src/services/predicate/lodash_predicates';
1139
-
1140
- }
1141
- declare module '@elastic/eui/src/components/i18n/i18n_util' {
1142
- import { ReactChild } from 'react';
1143
- import { RenderableValues } from '@elastic/eui/src/components/context/context';
1144
- /**
1145
- * Replaces placeholder values in `input` with their matching value in `values`
1146
- * e.g. input:'Hello, {name}' will replace `{name}` with `values[name]`
1147
- * @param {string} input
1148
- * @param {RenderableValues} values
1149
- * @param {Function} i18nMappingFunc
1150
- * @returns {string | React.ReactChild[]}
1151
- */
1152
- export function processStringToChildren(input: string, values: RenderableValues, i18nMappingFunc?: (token: string) => string): string | ReactChild[];
1153
-
1154
- }
1155
- declare module '@elastic/eui/src/components/i18n/i18n' {
1156
- import { ReactChild, ReactElement } from 'react';
1157
- import { ExclusiveUnion } from '@elastic/eui/src/components/common';
1158
- import { Renderable } from '@elastic/eui/src/components/context/context'; type ResolvedType<T> = T extends (...args: any[]) => any ? ReturnType<T> : T;
1159
- interface I18nTokenShape<T, DEFAULT extends Renderable<T>> {
1160
- token: string;
1161
- default: DEFAULT;
1162
- children?: (x: ResolvedType<DEFAULT>) => ReactChild;
1163
- values?: T;
1164
- }
1165
- interface I18nTokensShape<T extends any[]> {
1166
- tokens: string[];
1167
- defaults: T;
1168
- children: (x: Array<T[number]>) => ReactChild;
1169
- }
1170
- export type EuiI18nProps<T, DEFAULT extends Renderable<T>, DEFAULTS extends any[]> = ExclusiveUnion<I18nTokenShape<T, DEFAULT>, I18nTokensShape<DEFAULTS>>; const EuiI18n: <T extends {}, DEFAULT extends Renderable<T>, DEFAULTS extends any[]>(props: (import ("@elastic/eui/src/components/common").DisambiguateSet<I18nTokenShape<T, DEFAULT>, I18nTokensShape<DEFAULTS>> & I18nTokensShape<DEFAULTS>) | (import ("@elastic/eui/src/components/common").DisambiguateSet<I18nTokensShape<DEFAULTS>, I18nTokenShape<T, DEFAULT>> & I18nTokenShape<T, DEFAULT>)) => JSX.Element; type DefaultRenderType<T, K extends Renderable<T>> = K extends ReactChild ? K : K extends () => infer RetValue ? RetValue : never; type DefaultsRenderType<K extends Array<string | ReactElement>> = K extends Array<infer Item> ? Item : never; function useEuiI18n<T extends {}, DEFAULT extends Renderable<T>>(token: string, defaultValue: DEFAULT, values?: T): DefaultRenderType<T, DEFAULT>; function useEuiI18n<DEFAULTS extends Array<string | ReactElement>>(tokens: string[], defaultValues: DEFAULTS): Array<DefaultsRenderType<DEFAULTS>>;
1171
- export { EuiI18n, useEuiI18n };
1172
-
1173
- }
1174
- declare module '@elastic/eui/src/components/i18n/i18n_number' {
1175
- import { FunctionComponent, ReactChild, ReactElement } from 'react';
1176
- import { ExclusiveUnion } from '@elastic/eui/src/components/common';
1177
- interface EuiI18nNumberValueShape {
1178
- value: number;
1179
- children?: (x: ReactChild) => ReactElement<any>;
1180
- }
1181
- interface EuiI18nNumberValuesShape {
1182
- values: number[];
1183
- /**
1184
- * ReactNode to render as this component's content
1185
- */
1186
- children: (x: ReactChild[]) => ReactElement<any>;
1187
- }
1188
- export type EuiI18nNumberProps = ExclusiveUnion<EuiI18nNumberValueShape, EuiI18nNumberValuesShape>; const EuiI18nNumber: FunctionComponent<EuiI18nNumberProps>;
1189
- export { EuiI18nNumber };
1190
-
1191
- }
1192
- declare module '@elastic/eui/src/components/i18n' {
1193
- export type { EuiI18nProps } from '@elastic/eui/src/components/i18n/i18n';
1194
- export { EuiI18n, useEuiI18n } from '@elastic/eui/src/components/i18n/i18n';
1195
- export type { EuiI18nNumberProps } from '@elastic/eui/src/components/i18n/i18n_number';
1196
- export { EuiI18nNumber } from '@elastic/eui/src/components/i18n/i18n_number';
1008
+ declare module '@elastic/eui/src/services/react' {
1009
+ export function enqueueStateChange(fn: Function): void;
1197
1010
 
1198
1011
  }
1199
- declare module '@elastic/eui/src/components/loading/_loading_strings' {
1200
- export const useLoadingAriaLabel: () => string;
1012
+ declare module '@elastic/eui/src/components/icon/named_colors' {
1013
+ export const COLORS: readonly ["default", "primary", "success", "accent", "warning", "danger", "text", "subdued", "ghost", "inherit"];
1014
+ export type NamedColor = typeof COLORS[number];
1015
+ export function isNamedColor(name: string): boolean;
1201
1016
 
1202
1017
  }
1203
1018
  declare module '@elastic/eui/src/global_styling/mixins/_color' {
@@ -1878,7 +1693,7 @@ declare module '@elastic/eui/src/global_styling/functions/logicals' {
1878
1693
  horizontal: string;
1879
1694
  vertical: string;
1880
1695
  };
1881
- export const LOGICAL_SIDES: ("left" | "right" | "top" | "horizontal" | "vertical" | "bottom")[];
1696
+ export const LOGICAL_SIDES: ("left" | "right" | "top" | "bottom" | "horizontal" | "vertical")[];
1882
1697
  export type LogicalSides = typeof LOGICAL_SIDES[number];
1883
1698
  export const logicals: {
1884
1699
  'border-horizontal': string;
@@ -1937,7 +1752,7 @@ declare module '@elastic/eui/src/global_styling/functions/logicals' {
1937
1752
  'margin-horizontal': string;
1938
1753
  'margin-vertical': string;
1939
1754
  };
1940
- export const LOGICAL_PROPERTIES: ("left" | "right" | "top" | "width" | "height" | "horizontal" | "vertical" | "inset" | "bottom" | "border-horizontal" | "border-horizontal-color" | "border-horizontal-width" | "border-horizontal-style" | "border-vertical" | "border-vertical-color" | "border-vertical-width" | "border-vertical-style" | "border-bottom" | "border-bottom-color" | "border-bottom-style" | "border-bottom-width" | "border-top" | "border-top-color" | "border-top-style" | "border-top-width" | "border-right" | "border-right-color" | "border-right-style" | "border-right-width" | "border-left" | "border-left-color" | "border-left-style" | "border-left-width" | "border-top-left-radius" | "border-top-right-radius" | "border-bottom-left-radius" | "border-bottom-right-radius" | "overflow-x" | "overflow-y" | "max-height" | "max-width" | "min-height" | "min-width" | "padding-left" | "padding-right" | "padding-top" | "padding-bottom" | "padding-horizontal" | "padding-vertical" | "margin-left" | "margin-right" | "margin-top" | "margin-bottom" | "margin-horizontal" | "margin-vertical")[];
1755
+ export const LOGICAL_PROPERTIES: ("left" | "right" | "top" | "width" | "height" | "inset" | "bottom" | "horizontal" | "vertical" | "border-horizontal" | "border-horizontal-color" | "border-horizontal-width" | "border-horizontal-style" | "border-vertical" | "border-vertical-color" | "border-vertical-width" | "border-vertical-style" | "border-bottom" | "border-bottom-color" | "border-bottom-style" | "border-bottom-width" | "border-top" | "border-top-color" | "border-top-style" | "border-top-width" | "border-right" | "border-right-color" | "border-right-style" | "border-right-width" | "border-left" | "border-left-color" | "border-left-style" | "border-left-width" | "border-top-left-radius" | "border-top-right-radius" | "border-bottom-left-radius" | "border-bottom-right-radius" | "overflow-x" | "overflow-y" | "max-height" | "max-width" | "min-height" | "min-width" | "padding-left" | "padding-right" | "padding-top" | "padding-bottom" | "padding-horizontal" | "padding-vertical" | "margin-left" | "margin-right" | "margin-top" | "margin-bottom" | "margin-horizontal" | "margin-vertical")[];
1941
1756
  export type LogicalProperties = typeof LOGICAL_PROPERTIES[number];
1942
1757
  /**
1943
1758
  *
@@ -2114,16 +1929,14 @@ declare module '@elastic/eui/src/services/theme/context' {
2114
1929
  }
2115
1930
  declare module '@elastic/eui/src/services/theme/provider' {
2116
1931
  import React, { PropsWithChildren } from 'react';
2117
- import { EmotionCache } from '@emotion/react';
2118
1932
  import { EuiThemeColorMode, EuiThemeSystem, EuiThemeModifications } from '@elastic/eui/src/services/theme/types';
2119
1933
  export interface EuiThemeProviderProps<T> {
2120
1934
  theme?: EuiThemeSystem<T>;
2121
1935
  colorMode?: EuiThemeColorMode;
2122
1936
  modify?: EuiThemeModifications<T>;
2123
- cache?: EmotionCache;
2124
1937
  children: any;
2125
1938
  }
2126
- export const EuiThemeProvider: <T extends {} = {}>({ theme: _system, colorMode: _colorMode, modify: _modifications, cache, children, }: React.PropsWithChildren<EuiThemeProviderProps<T>>) => JSX.Element;
1939
+ export const EuiThemeProvider: <T extends {} = {}>({ theme: _system, colorMode: _colorMode, modify: _modifications, children, }: React.PropsWithChildren<EuiThemeProviderProps<T>>) => JSX.Element;
2127
1940
 
2128
1941
  }
2129
1942
  declare module '@elastic/eui/src/services/theme' {
@@ -2191,7 +2004,7 @@ declare module '@elastic/eui/src/global_styling/mixins/_padding' {
2191
2004
  export type EuiPaddingSize = typeof PADDING_SIZES[number];
2192
2005
  export const euiPaddingSize: ({ euiTheme }: UseEuiTheme, size: EuiPaddingSize) => string | null;
2193
2006
  export const useEuiPaddingSize: (size: EuiPaddingSize) => string | null;
2194
- export const useEuiPaddingCSS: (side?: "left" | "right" | "top" | "horizontal" | "vertical" | "bottom" | undefined) => {
2007
+ export const useEuiPaddingCSS: (side?: "left" | "right" | "top" | "bottom" | "horizontal" | "vertical" | undefined) => {
2195
2008
  none: null;
2196
2009
  xs: import("@emotion/utils").SerializedStyles;
2197
2010
  s: import("@emotion/utils").SerializedStyles;
@@ -2257,22 +2070,248 @@ declare module '@elastic/eui/src/global_styling/mixins' {
2257
2070
  export * from '@elastic/eui/src/global_styling/mixins/_typography';
2258
2071
 
2259
2072
  }
2260
- declare module '@elastic/eui/src/global_styling/reset/reset' {
2261
- export const resetStyles = "\n/* // Adapted from Eric Meyer's reset (http://meyerweb.com/eric/tools/css/reset/, v2.0 | 20110126). */\n\n\n*, *:before, *:after {\n box-sizing: border-box;\n}\n\nhtml, body, div, span, applet, object, iframe,\nh1, h2, h3, h4, h5, h6, p, blockquote, pre,\na, abbr, acronym, address, big, cite, code,\ndel, dfn, em, img, ins, kbd, q, s, samp,\nsmall, strike, strong, sub, sup, tt, var,\nb, u, i, center,\ndl, dt, dd, ol, ul, li,\nfieldset, form, label, legend,\ntable, caption, tbody, tfoot, thead, tr, th, td,\narticle, aside, canvas, details, embed,\nfigure, figcaption, footer, header, hgroup,\nmenu, nav, output, ruby, section, summary,\ntime, mark, audio, video {\n margin: 0;\n padding: 0;\n border: none;\n vertical-align: baseline;\n}\n\nh1, h2, h3, h4, h5, h6, p {\n font-family: inherit;\n font-weight: inherit;\n font-size: inherit;\n}\n\n/* HTML5 display-role reset for older browsers */\narticle, aside, details, figcaption, figure,\nfooter, header, hgroup, menu, nav, section {\n display: block;\n}\n\na[href],\nbutton,\n[role='button'] {\n cursor: pointer;\n}\n\nbutton {\n background: none;\n border: none;\n padding: 0;\n margin: 0;\n color: inherit;\n border-radius: 0;\n font-size: inherit;\n}\n\ninput {\n margin: 0;\n padding: 0;\n}\n\ninput:disabled {\n opacity: 1; /* required on iOS */\n}\n\nol,\nul {\n list-style: none;\n}\n\nblockquote,\nq {\n quotes: none;\n}\n\nblockquote:before,\nblockquote:after,\nq:before,\nq:after {\n content: '';\n}\n\ntable {\n border-collapse: collapse;\n border-spacing: 0;\n}\n\nhr {\n margin: 0;\n}\n\nfieldset {\n min-inline-size: auto;\n}\n\n/* Chrome has an issue around RTL languages in SVGs when letter-spacing is negative\n * https://bugs.chromium.org/p/chromium/issues/detail?id=966480\n */\nsvg text {\n letter-spacing: normal !important;\n}";
2073
+ declare module '@elastic/eui/src/global_styling/reset/reset' {
2074
+ export const resetStyles = "\n/* // Adapted from Eric Meyer's reset (http://meyerweb.com/eric/tools/css/reset/, v2.0 | 20110126). */\n\n\n*, *:before, *:after {\n box-sizing: border-box;\n}\n\nhtml, body, div, span, applet, object, iframe,\nh1, h2, h3, h4, h5, h6, p, blockquote, pre,\na, abbr, acronym, address, big, cite, code,\ndel, dfn, em, img, ins, kbd, q, s, samp,\nsmall, strike, strong, sub, sup, tt, var,\nb, u, i, center,\ndl, dt, dd, ol, ul, li,\nfieldset, form, label, legend,\ntable, caption, tbody, tfoot, thead, tr, th, td,\narticle, aside, canvas, details, embed,\nfigure, figcaption, footer, header, hgroup,\nmenu, nav, output, ruby, section, summary,\ntime, mark, audio, video {\n margin: 0;\n padding: 0;\n border: none;\n vertical-align: baseline;\n}\n\nh1, h2, h3, h4, h5, h6, p {\n font-family: inherit;\n font-weight: inherit;\n font-size: inherit;\n}\n\n/* HTML5 display-role reset for older browsers */\narticle, aside, details, figcaption, figure,\nfooter, header, hgroup, menu, nav, section {\n display: block;\n}\n\na[href],\nbutton,\n[role='button'] {\n cursor: pointer;\n}\n\nbutton {\n background: none;\n border: none;\n padding: 0;\n margin: 0;\n color: inherit;\n border-radius: 0;\n font-size: inherit;\n}\n\ninput {\n margin: 0;\n padding: 0;\n}\n\ninput:disabled {\n opacity: 1; /* required on iOS */\n}\n\nol,\nul {\n list-style: none;\n}\n\nblockquote,\nq {\n quotes: none;\n}\n\nblockquote:before,\nblockquote:after,\nq:before,\nq:after {\n content: '';\n}\n\ntable {\n border-collapse: collapse;\n border-spacing: 0;\n}\n\nhr {\n margin: 0;\n}\n\nfieldset {\n min-inline-size: auto;\n}\n\n/* Chrome has an issue around RTL languages in SVGs when letter-spacing is negative\n * https://bugs.chromium.org/p/chromium/issues/detail?id=966480\n */\nsvg text {\n letter-spacing: normal !important;\n}";
2075
+
2076
+ }
2077
+ declare module '@elastic/eui/src/global_styling/reset/global_styles' {
2078
+
2079
+ export interface EuiGlobalStylesProps {
2080
+ }
2081
+ export const EuiGlobalStyles: ({}: EuiGlobalStylesProps) => JSX.Element;
2082
+
2083
+ }
2084
+ declare module '@elastic/eui/src/global_styling' {
2085
+ export * from '@elastic/eui/src/global_styling/reset/global_styles';
2086
+ export * from '@elastic/eui/src/global_styling/functions';
2087
+ export * from '@elastic/eui/src/global_styling/variables';
2088
+ export * from '@elastic/eui/src/global_styling/mixins';
2089
+
2090
+ }
2091
+ declare module '@elastic/eui/src/components/icon/icon.styles' {
2092
+ import { UseEuiTheme } from '@elastic/eui/src/services';
2093
+ export const iconLoadingOpacity = 0.05;
2094
+ export const euiIconStyles: ({ euiTheme }: UseEuiTheme) => {
2095
+ euiIcon: import("@emotion/utils").SerializedStyles;
2096
+ accent: import("@emotion/utils").SerializedStyles;
2097
+ danger: import("@emotion/utils").SerializedStyles;
2098
+ ghost: import("@emotion/utils").SerializedStyles;
2099
+ primary: import("@emotion/utils").SerializedStyles;
2100
+ success: import("@emotion/utils").SerializedStyles;
2101
+ subdued: import("@emotion/utils").SerializedStyles;
2102
+ text: import("@emotion/utils").SerializedStyles;
2103
+ warning: import("@emotion/utils").SerializedStyles;
2104
+ inherit: import("@emotion/utils").SerializedStyles;
2105
+ default: import("@emotion/utils").SerializedStyles;
2106
+ customColor: import("@emotion/utils").SerializedStyles;
2107
+ logoElasticOutline: import("@emotion/utils").SerializedStyles;
2108
+ original: import("@emotion/utils").SerializedStyles;
2109
+ s: import("@emotion/utils").SerializedStyles;
2110
+ m: import("@emotion/utils").SerializedStyles;
2111
+ l: import("@emotion/utils").SerializedStyles;
2112
+ xl: import("@emotion/utils").SerializedStyles;
2113
+ xxl: import("@emotion/utils").SerializedStyles;
2114
+ app: import("@emotion/utils").SerializedStyles;
2115
+ logo: import("@emotion/utils").SerializedStyles;
2116
+ isLoading: import("@emotion/utils").SerializedStyles;
2117
+ isLoaded: import("@emotion/utils").SerializedStyles;
2118
+ };
2119
+
2120
+ }
2121
+ declare module '@elastic/eui/src/components/icon/icon' {
2122
+ import React, { PureComponent, ComponentType, SVGAttributes } from 'react';
2123
+ import { CommonProps } from '@elastic/eui/src/components/common';
2124
+ import { typeToPathMap } from '@elastic/eui/src/components/icon/icon_map';
2125
+ import { WithEuiThemeProps } from '@elastic/eui/src/services';
2126
+ export { COLORS } from '@elastic/eui/src/components/icon/named_colors';
2127
+ import { NamedColor } from '@elastic/eui/src/components/icon/named_colors';
2128
+ export const TYPES: ("string" | "number" | "function" | "link" | "menu" | "filter" | "image" | "stop" | "alert" | "document" | "grid" | "list" | "search" | "temperature" | "color" | "accessibility" | "aggregate" | "analyzeEvent" | "annotation" | "apps" | "arrowStart" | "arrowEnd" | "asterisk" | "beaker" | "bell" | "bellSlash" | "bolt" | "branch" | "branchUser" | "broom" | "brush" | "bug" | "bullseye" | "calendar" | "check" | "checkInCircleFilled" | "cheer" | "clock" | "cloudDrizzle" | "cloudStormy" | "cloudSunny" | "compute" | "console" | "continuityAbove" | "continuityAboveBelow" | "continuityBelow" | "continuityWithin" | "copy" | "cross" | "crossInACircleFilled" | "crosshairs" | "currency" | "cut" | "database" | "desktop" | "documentEdit" | "documentation" | "documents" | "dot" | "doubleArrowLeft" | "doubleArrowRight" | "download" | "editorDistributeHorizontal" | "editorDistributeVertical" | "editorItemAlignBottom" | "editorItemAlignCenter" | "editorItemAlignLeft" | "editorItemAlignMiddle" | "editorItemAlignRight" | "editorItemAlignTop" | "editorPositionBottomLeft" | "editorPositionBottomRight" | "editorPositionTopLeft" | "editorPositionTopRight" | "email" | "empty" | "eql" | "eraser" | "exit" | "expand" | "expandMini" | "eye" | "flag" | "fold" | "frameNext" | "framePrevious" | "fullScreenExit" | "gear" | "glasses" | "globe" | "grab" | "heart" | "heatmap" | "help" | "home" | "iInCircle" | "inputOutput" | "inspect" | "invert" | "ip" | "layers" | "lettering" | "lineDashed" | "lineDotted" | "lineSolid" | "lock" | "lockOpen" | "magnet" | "magnifyWithExclamation" | "magnifyWithMinus" | "magnifyWithPlus" | "memory" | "menuDown" | "menuLeft" | "menuRight" | "menuUp" | "merge" | "minimize" | "minus" | "mobile" | "moon" | "nested" | "node" | "offline" | "online" | "package" | "pageSelect" | "pagesSelect" | "partial" | "pause" | "payment" | "pencil" | "percent" | "pin" | "play" | "playFilled" | "plus" | "popout" | "push" | "quote" | "refresh" | "reporter" | "save" | "scale" | "securitySignal" | "securitySignalDetected" | "securitySignalResolved" | "sessionViewer" | "shard" | "share" | "snowflake" | "sortLeft" | "sortRight" | "sortable" | "starPlusEmpty" | "starPlusFilled" | "stats" | "storage" | "submodule" | "sun" | "symlink" | "tableOfContents" | "tag" | "tear" | "timeline" | "timeRefresh" | "timeslider" | "training" | "trash" | "unfold" | "unlink" | "user" | "userAvatar" | "users" | "vector" | "videoPlayer" | "wordWrap" | "wordWrapDisabled" | "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" | "addDataApp" | "advancedSettingsApp" | "agentApp" | "apmApp" | "apmTrace" | "appSearchApp" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowUp" | "auditbeatApp" | "boxesHorizontal" | "boxesVertical" | "canvasApp" | "casesApp" | "classificationJob" | "codeApp" | "consoleApp" | "controlsHorizontal" | "controlsVertical" | "copyClipboard" | "createAdvancedJob" | "createMultiMetricJob" | "createPopulationJob" | "createSingleMetricJob" | "crossClusterReplicationApp" | "dashboardApp" | "dataVisualizer" | "devToolsApp" | "discoverApp" | "editorAlignCenter" | "editorAlignLeft" | "editorAlignRight" | "editorBold" | "editorChecklist" | "editorCodeBlock" | "editorComment" | "editorHeading" | "editorItalic" | "editorLink" | "editorOrderedList" | "editorRedo" | "editorStrike" | "editorTable" | "editorUnderline" | "editorUndo" | "editorUnorderedList" | "emsApp" | "exportAction" | "eyeClosed" | "faceHappy" | "faceNeutral" | "faceSad" | "filebeatApp" | "fleetApp" | "folderCheck" | "folderClosed" | "folderExclamation" | "folderOpen" | "fullScreen" | "gisApp" | "grabHorizontal" | "graphApp" | "grokApp" | "heartbeatApp" | "importAction" | "indexClose" | "indexEdit" | "indexFlush" | "indexManagementApp" | "indexMapping" | "indexOpen" | "indexPatternApp" | "indexRollupApp" | "indexRuntime" | "indexSettings" | "keyboardShortcut" | "kqlField" | "kqlFunction" | "kqlOperand" | "kqlSelector" | "kqlValue" | "lensApp" | "listAdd" | "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" | "managementApp" | "mapMarker" | "metricbeatApp" | "metricsApp" | "minusInCircle" | "minusInCircleFilled" | "monitoringApp" | "notebookApp" | "outlierDetectionJob" | "packetbeatApp" | "paperClip" | "pinFilled" | "pipelineApp" | "plusInCircle" | "plusInCircleFilled" | "questionInCircle" | "recentlyViewedApp" | "regressionJob" | "reportingApp" | "returnKey" | "savedObjectsApp" | "searchProfilerApp" | "securityAnalyticsApp" | "securityApp" | "sortDown" | "sortUp" | "spacesApp" | "sqlApp" | "starEmpty" | "starEmptySpace" | "starFilled" | "starFilledSpace" | "starMinusEmpty" | "starMinusFilled" | "stopFilled" | "stopSlash" | "swatchInput" | "tableDensityCompact" | "tableDensityExpanded" | "tableDensityNormal" | "timelionApp" | "upgradeAssistantApp" | "uptimeApp" | "usersRolesApp" | "visArea" | "visAreaStacked" | "visBarHorizontal" | "visBarHorizontalStacked" | "visBarVertical" | "visBarVerticalStacked" | "visGauge" | "visGoal" | "visLine" | "visMapCoordinate" | "visMapRegion" | "visMetric" | "visPie" | "visTable" | "visTagCloud" | "visText" | "visTimelion" | "visVega" | "visVisualBuilder" | "visualizeApp" | "watchesApp" | "workplaceSearchApp")[];
2129
+ export type EuiIconType = keyof typeof typeToPathMap;
2130
+ export type IconType = EuiIconType | string | ComponentType;
2131
+ export type IconColor = string | NamedColor;
2132
+ export const SIZES: readonly ["original", "s", "m", "l", "xl", "xxl"];
2133
+ export type IconSize = typeof SIZES[number];
2134
+ export type EuiIconProps = CommonProps & Omit<SVGAttributes<SVGElement>, 'type' | 'color' | 'size'> & {
2135
+ /**
2136
+ * `Enum` is any of the named icons listed in the docs, `string` is usually a URL to an SVG file, and `elementType` is any React SVG component
2137
+ */
2138
+ type: IconType;
2139
+ /**
2140
+ * One of EUI's color palette or a valid CSS color value https://developer.mozilla.org/en-US/docs/Web/CSS/color_value.
2141
+ * Note that coloring only works if your SVG is removed of fill attributes.
2142
+ */
2143
+ color?: IconColor;
2144
+ /**
2145
+ * Note that every size other than `original` assumes the provided SVG sits on a square viewbox.
2146
+ */
2147
+ size?: IconSize;
2148
+ /**
2149
+ * Descriptive title for naming the icon based on its use
2150
+ */
2151
+ title?: string;
2152
+ /**
2153
+ * A unique identifier for the title element
2154
+ */
2155
+ titleId?: string;
2156
+ /**
2157
+ * Its value should be one or more element IDs
2158
+ */
2159
+ 'aria-labelledby'?: string;
2160
+ /**
2161
+ * Callback when the icon has been loaded & rendered
2162
+ */
2163
+ onIconLoad?: () => void;
2164
+ };
2165
+ interface State {
2166
+ icon: undefined | ComponentType | string;
2167
+ iconTitle: undefined | string;
2168
+ isLoading: boolean;
2169
+ neededLoading: boolean;
2170
+ }
2171
+ export const clearIconComponentCache: (iconType?: "string" | "number" | "function" | "link" | "menu" | "filter" | "image" | "stop" | "alert" | "document" | "grid" | "list" | "search" | "temperature" | "color" | "accessibility" | "aggregate" | "analyzeEvent" | "annotation" | "apps" | "arrowStart" | "arrowEnd" | "asterisk" | "beaker" | "bell" | "bellSlash" | "bolt" | "branch" | "branchUser" | "broom" | "brush" | "bug" | "bullseye" | "calendar" | "check" | "checkInCircleFilled" | "cheer" | "clock" | "cloudDrizzle" | "cloudStormy" | "cloudSunny" | "compute" | "console" | "continuityAbove" | "continuityAboveBelow" | "continuityBelow" | "continuityWithin" | "copy" | "cross" | "crossInACircleFilled" | "crosshairs" | "currency" | "cut" | "database" | "desktop" | "documentEdit" | "documentation" | "documents" | "dot" | "doubleArrowLeft" | "doubleArrowRight" | "download" | "editorDistributeHorizontal" | "editorDistributeVertical" | "editorItemAlignBottom" | "editorItemAlignCenter" | "editorItemAlignLeft" | "editorItemAlignMiddle" | "editorItemAlignRight" | "editorItemAlignTop" | "editorPositionBottomLeft" | "editorPositionBottomRight" | "editorPositionTopLeft" | "editorPositionTopRight" | "email" | "empty" | "eql" | "eraser" | "exit" | "expand" | "expandMini" | "eye" | "flag" | "fold" | "frameNext" | "framePrevious" | "fullScreenExit" | "gear" | "glasses" | "globe" | "grab" | "heart" | "heatmap" | "help" | "home" | "iInCircle" | "inputOutput" | "inspect" | "invert" | "ip" | "layers" | "lettering" | "lineDashed" | "lineDotted" | "lineSolid" | "lock" | "lockOpen" | "magnet" | "magnifyWithExclamation" | "magnifyWithMinus" | "magnifyWithPlus" | "memory" | "menuDown" | "menuLeft" | "menuRight" | "menuUp" | "merge" | "minimize" | "minus" | "mobile" | "moon" | "nested" | "node" | "offline" | "online" | "package" | "pageSelect" | "pagesSelect" | "partial" | "pause" | "payment" | "pencil" | "percent" | "pin" | "play" | "playFilled" | "plus" | "popout" | "push" | "quote" | "refresh" | "reporter" | "save" | "scale" | "securitySignal" | "securitySignalDetected" | "securitySignalResolved" | "sessionViewer" | "shard" | "share" | "snowflake" | "sortLeft" | "sortRight" | "sortable" | "starPlusEmpty" | "starPlusFilled" | "stats" | "storage" | "submodule" | "sun" | "symlink" | "tableOfContents" | "tag" | "tear" | "timeline" | "timeRefresh" | "timeslider" | "training" | "trash" | "unfold" | "unlink" | "user" | "userAvatar" | "users" | "vector" | "videoPlayer" | "wordWrap" | "wordWrapDisabled" | "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" | "addDataApp" | "advancedSettingsApp" | "agentApp" | "apmApp" | "apmTrace" | "appSearchApp" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowUp" | "auditbeatApp" | "boxesHorizontal" | "boxesVertical" | "canvasApp" | "casesApp" | "classificationJob" | "codeApp" | "consoleApp" | "controlsHorizontal" | "controlsVertical" | "copyClipboard" | "createAdvancedJob" | "createMultiMetricJob" | "createPopulationJob" | "createSingleMetricJob" | "crossClusterReplicationApp" | "dashboardApp" | "dataVisualizer" | "devToolsApp" | "discoverApp" | "editorAlignCenter" | "editorAlignLeft" | "editorAlignRight" | "editorBold" | "editorChecklist" | "editorCodeBlock" | "editorComment" | "editorHeading" | "editorItalic" | "editorLink" | "editorOrderedList" | "editorRedo" | "editorStrike" | "editorTable" | "editorUnderline" | "editorUndo" | "editorUnorderedList" | "emsApp" | "exportAction" | "eyeClosed" | "faceHappy" | "faceNeutral" | "faceSad" | "filebeatApp" | "fleetApp" | "folderCheck" | "folderClosed" | "folderExclamation" | "folderOpen" | "fullScreen" | "gisApp" | "grabHorizontal" | "graphApp" | "grokApp" | "heartbeatApp" | "importAction" | "indexClose" | "indexEdit" | "indexFlush" | "indexManagementApp" | "indexMapping" | "indexOpen" | "indexPatternApp" | "indexRollupApp" | "indexRuntime" | "indexSettings" | "keyboardShortcut" | "kqlField" | "kqlFunction" | "kqlOperand" | "kqlSelector" | "kqlValue" | "lensApp" | "listAdd" | "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" | "managementApp" | "mapMarker" | "metricbeatApp" | "metricsApp" | "minusInCircle" | "minusInCircleFilled" | "monitoringApp" | "notebookApp" | "outlierDetectionJob" | "packetbeatApp" | "paperClip" | "pinFilled" | "pipelineApp" | "plusInCircle" | "plusInCircleFilled" | "questionInCircle" | "recentlyViewedApp" | "regressionJob" | "reportingApp" | "returnKey" | "savedObjectsApp" | "searchProfilerApp" | "securityAnalyticsApp" | "securityApp" | "sortDown" | "sortUp" | "spacesApp" | "sqlApp" | "starEmpty" | "starEmptySpace" | "starFilled" | "starFilledSpace" | "starMinusEmpty" | "starMinusFilled" | "stopFilled" | "stopSlash" | "swatchInput" | "tableDensityCompact" | "tableDensityExpanded" | "tableDensityNormal" | "timelionApp" | "upgradeAssistantApp" | "uptimeApp" | "usersRolesApp" | "visArea" | "visAreaStacked" | "visBarHorizontal" | "visBarHorizontalStacked" | "visBarVertical" | "visBarVerticalStacked" | "visGauge" | "visGoal" | "visLine" | "visMapCoordinate" | "visMapRegion" | "visMetric" | "visPie" | "visTable" | "visTagCloud" | "visText" | "visTimelion" | "visVega" | "visVisualBuilder" | "visualizeApp" | "watchesApp" | "workplaceSearchApp" | undefined) => void;
2172
+ export const appendIconComponentCache: (iconTypeToIconComponentMap: {
2173
+ [iconType: string]: React.ComponentType<{}>;
2174
+ }) => void;
2175
+ export class EuiIconClass extends PureComponent<EuiIconProps & WithEuiThemeProps, State> {
2176
+ isMounted: boolean;
2177
+ constructor(props: EuiIconProps & WithEuiThemeProps);
2178
+ componentDidMount(): void;
2179
+ componentDidUpdate(prevProps: EuiIconProps): void;
2180
+ componentWillUnmount(): void;
2181
+ loadIconComponent: (iconType: EuiIconType) => void;
2182
+ onIconLoad: () => void;
2183
+ render(): JSX.Element;
2184
+ }
2185
+ export const EuiIcon: React.ForwardRefExoticComponent<Omit<EuiIconProps, "theme"> & React.RefAttributes<Omit<EuiIconProps, "theme">>>;
2186
+
2187
+ }
2188
+ declare module '@elastic/eui/src/components/icon' {
2189
+ export type { EuiIconProps, IconColor, IconSize, IconType } from '@elastic/eui/src/components/icon/icon';
2190
+ export { EuiIcon, TYPES as ICON_TYPES, SIZES as ICON_SIZES, COLORS as ICON_COLORS, } from '@elastic/eui/src/components/icon/icon';
2191
+
2192
+ }
2193
+ declare module '@elastic/eui/src/components/context/context' {
2194
+ import React, { Context, FunctionComponent, ReactChild, ReactNode } from 'react';
2195
+ export interface RenderableValues {
2196
+ [key: string]: ReactChild | undefined;
2197
+ }
2198
+ export type Renderable<T> = ReactChild | ((values: T) => ReactChild);
2199
+ export interface I18nShape {
2200
+ mapping?: {
2201
+ [key: string]: Renderable<object>;
2202
+ };
2203
+ mappingFunc?: (value: string) => string;
2204
+ /**
2205
+ * Some browsers' translation features don't work with a rendered `<Fragment>` component.
2206
+ * The `render` function allows you to pass in another component instead, e.g. `<div>`
2207
+ */
2208
+ render?: (children: any) => FunctionComponent;
2209
+ formatNumber?: (x: number) => string;
2210
+ formatDateTime?: (x: Date) => string;
2211
+ locale?: string;
2212
+ } const I18nContext: Context<I18nShape>; const EuiI18nConsumer: React.Consumer<I18nShape>;
2213
+ export interface EuiContextProps {
2214
+ i18n: I18nShape;
2215
+ /**
2216
+ * ReactNode to render as this component's content
2217
+ */
2218
+ children: ReactNode;
2219
+ } const EuiContext: FunctionComponent<EuiContextProps>;
2220
+ export { EuiContext, EuiI18nConsumer, I18nContext };
2221
+
2222
+ }
2223
+ declare module '@elastic/eui/src/components/context' {
2224
+ export type { EuiContextProps } from '@elastic/eui/src/components/context/context';
2225
+ export { EuiContext, EuiI18nConsumer } from '@elastic/eui/src/components/context/context';
2226
+
2227
+ }
2228
+ declare module '@elastic/eui/src/services/predicate/common_predicates' {
2229
+ import moment from 'moment';
2230
+ export const always: (_value?: any) => boolean;
2231
+ export const never: (_value?: any) => boolean;
2232
+ export const isUndefined: (value: any) => value is undefined;
2233
+ export const isNull: (value: any) => value is null;
2234
+ export const isNil: (value: any) => value is null | undefined;
2235
+ export const isMoment: (value: any) => boolean;
2236
+ export const isDate: (value: any) => value is Date;
2237
+ export const isDateLike: (value: any) => value is Date | moment.Moment;
2238
+
2239
+ }
2240
+ declare module '@elastic/eui/src/services/predicate/lodash_predicates' {
2241
+ export const isFunction: (value: any) => value is (...args: any[]) => any;
2242
+ export const isArray: (value: any) => value is any[];
2243
+ export const isString: (value: any) => value is string;
2244
+ export const isBoolean: (value: any) => value is boolean;
2245
+ export const isNumber: (value: any) => value is number;
2246
+ export const isNaN: (value: any) => boolean;
2247
+ export const isObject: (value: any) => value is object;
2248
+
2249
+ }
2250
+ declare module '@elastic/eui/src/services/predicate' {
2251
+ export * from '@elastic/eui/src/services/predicate/common_predicates';
2252
+ export * from '@elastic/eui/src/services/predicate/lodash_predicates';
2253
+
2254
+ }
2255
+ declare module '@elastic/eui/src/components/i18n/i18n_util' {
2256
+ import { ReactChild } from 'react';
2257
+ import { RenderableValues } from '@elastic/eui/src/components/context/context';
2258
+ /**
2259
+ * Replaces placeholder values in `input` with their matching value in `values`
2260
+ * e.g. input:'Hello, {name}' will replace `{name}` with `values[name]`
2261
+ * @param {string} input
2262
+ * @param {RenderableValues} values
2263
+ * @param {Function} i18nMappingFunc
2264
+ * @returns {string | React.ReactChild[]}
2265
+ */
2266
+ export function processStringToChildren(input: string, values: RenderableValues, i18nMappingFunc?: (token: string) => string): string | ReactChild[];
2267
+
2268
+ }
2269
+ declare module '@elastic/eui/src/components/i18n/i18n' {
2270
+ import { ReactChild, ReactElement } from 'react';
2271
+ import { ExclusiveUnion } from '@elastic/eui/src/components/common';
2272
+ import { Renderable } from '@elastic/eui/src/components/context/context'; type ResolvedType<T> = T extends (...args: any[]) => any ? ReturnType<T> : T;
2273
+ interface I18nTokenShape<T, DEFAULT extends Renderable<T>> {
2274
+ token: string;
2275
+ default: DEFAULT;
2276
+ children?: (x: ResolvedType<DEFAULT>) => ReactChild;
2277
+ values?: T;
2278
+ }
2279
+ interface I18nTokensShape<T extends any[]> {
2280
+ tokens: string[];
2281
+ defaults: T;
2282
+ children: (x: Array<T[number]>) => ReactChild;
2283
+ }
2284
+ export type EuiI18nProps<T, DEFAULT extends Renderable<T>, DEFAULTS extends any[]> = ExclusiveUnion<I18nTokenShape<T, DEFAULT>, I18nTokensShape<DEFAULTS>>; const EuiI18n: <T extends {}, DEFAULT extends Renderable<T>, DEFAULTS extends any[]>(props: (import ("@elastic/eui/src/components/common").DisambiguateSet<I18nTokenShape<T, DEFAULT>, I18nTokensShape<DEFAULTS>> & I18nTokensShape<DEFAULTS>) | (import ("@elastic/eui/src/components/common").DisambiguateSet<I18nTokensShape<DEFAULTS>, I18nTokenShape<T, DEFAULT>> & I18nTokenShape<T, DEFAULT>)) => JSX.Element; type DefaultRenderType<T, K extends Renderable<T>> = K extends ReactChild ? K : K extends () => infer RetValue ? RetValue : never; type DefaultsRenderType<K extends Array<string | ReactElement>> = K extends Array<infer Item> ? Item : never; function useEuiI18n<T extends {}, DEFAULT extends Renderable<T>>(token: string, defaultValue: DEFAULT, values?: T): DefaultRenderType<T, DEFAULT>; function useEuiI18n<DEFAULTS extends Array<string | ReactElement>>(tokens: string[], defaultValues: DEFAULTS): Array<DefaultsRenderType<DEFAULTS>>;
2285
+ export { EuiI18n, useEuiI18n };
2286
+
2287
+ }
2288
+ declare module '@elastic/eui/src/components/i18n/i18n_number' {
2289
+ import { FunctionComponent, ReactChild, ReactElement } from 'react';
2290
+ import { ExclusiveUnion } from '@elastic/eui/src/components/common';
2291
+ interface EuiI18nNumberValueShape {
2292
+ value: number;
2293
+ children?: (x: ReactChild) => ReactElement<any>;
2294
+ }
2295
+ interface EuiI18nNumberValuesShape {
2296
+ values: number[];
2297
+ /**
2298
+ * ReactNode to render as this component's content
2299
+ */
2300
+ children: (x: ReactChild[]) => ReactElement<any>;
2301
+ }
2302
+ export type EuiI18nNumberProps = ExclusiveUnion<EuiI18nNumberValueShape, EuiI18nNumberValuesShape>; const EuiI18nNumber: FunctionComponent<EuiI18nNumberProps>;
2303
+ export { EuiI18nNumber };
2262
2304
 
2263
2305
  }
2264
- declare module '@elastic/eui/src/global_styling/reset/global_styles' {
2265
-
2266
- export interface EuiGlobalStylesProps {
2267
- }
2268
- export const EuiGlobalStyles: ({}: EuiGlobalStylesProps) => JSX.Element;
2306
+ declare module '@elastic/eui/src/components/i18n' {
2307
+ export type { EuiI18nProps } from '@elastic/eui/src/components/i18n/i18n';
2308
+ export { EuiI18n, useEuiI18n } from '@elastic/eui/src/components/i18n/i18n';
2309
+ export type { EuiI18nNumberProps } from '@elastic/eui/src/components/i18n/i18n_number';
2310
+ export { EuiI18nNumber } from '@elastic/eui/src/components/i18n/i18n_number';
2269
2311
 
2270
2312
  }
2271
- declare module '@elastic/eui/src/global_styling' {
2272
- export * from '@elastic/eui/src/global_styling/reset/global_styles';
2273
- export * from '@elastic/eui/src/global_styling/functions';
2274
- export * from '@elastic/eui/src/global_styling/variables';
2275
- export * from '@elastic/eui/src/global_styling/mixins';
2313
+ declare module '@elastic/eui/src/components/loading/_loading_strings' {
2314
+ export const useLoadingAriaLabel: () => string;
2276
2315
 
2277
2316
  }
2278
2317
  declare module '@elastic/eui/src/components/loading/loading_elastic.styles' {
@@ -2635,7 +2674,7 @@ declare module '@elastic/eui/src/components/button/button_icon/button_icon' {
2635
2674
  empty: string;
2636
2675
  fill: string;
2637
2676
  };
2638
- export const DISPLAYS: ("base" | "fill" | "empty")[]; type EuiButtonIconDisplay = keyof typeof displayToClassNameMap;
2677
+ export const DISPLAYS: ("base" | "empty" | "fill")[]; type EuiButtonIconDisplay = keyof typeof displayToClassNameMap;
2639
2678
  export interface EuiButtonIconProps extends CommonProps {
2640
2679
  iconType: IconType;
2641
2680
  /**
@@ -2996,18 +3035,6 @@ declare module '@elastic/eui/src/components/form/checkbox' {
2996
3035
  export type { EuiCheckboxGroupProps, EuiCheckboxGroupOption, } from '@elastic/eui/src/components/form/checkbox/checkbox_group';
2997
3036
  export { EuiCheckboxGroup } from '@elastic/eui/src/components/form/checkbox/checkbox_group';
2998
3037
 
2999
- }
3000
- declare module '@elastic/eui/src/services/theme/clone_element' {
3001
- import React from 'react';
3002
- /**
3003
- * React.cloneElement does not work if the cloned element does not already have the
3004
- * `css` prop - as a result, we need to use `jsx()` to manually clone the element
3005
- * See https://github.com/emotion-js/emotion/issues/1404
3006
- *
3007
- * NOTE: We're still using/testing this utility internally, so this is not yet a public API
3008
- */
3009
- export const cloneElementWithCss: (element: any, props: any) => React.ReactElement;
3010
-
3011
3038
  }
3012
3039
  declare module '@elastic/eui/src/components/title/title.styles' {
3013
3040
  import { CSSProperties } from 'react';
@@ -3794,43 +3821,82 @@ declare module '@elastic/eui/src/components/form/field_text' {
3794
3821
  export type { EuiFieldTextProps } from '@elastic/eui/src/components/form/field_text/field_text';
3795
3822
  export { EuiFieldText } from '@elastic/eui/src/components/form/field_text/field_text';
3796
3823
 
3824
+ }
3825
+ declare module '@elastic/eui/src/components/progress/progress.styles' {
3826
+ import { UseEuiTheme } from '@elastic/eui/src/services';
3827
+ /**
3828
+ * Emotion styles
3829
+ */
3830
+ export const euiProgressStyles: ({ euiTheme }: UseEuiTheme, isNative: boolean) => {
3831
+ euiProgress: import("@emotion/utils").SerializedStyles;
3832
+ native: import("@emotion/utils").SerializedStyles;
3833
+ indeterminate: import("@emotion/utils").SerializedStyles;
3834
+ xs: import("@emotion/utils").SerializedStyles;
3835
+ s: import("@emotion/utils").SerializedStyles;
3836
+ m: import("@emotion/utils").SerializedStyles;
3837
+ l: import("@emotion/utils").SerializedStyles;
3838
+ fixed: import("@emotion/utils").SerializedStyles;
3839
+ absolute: import("@emotion/utils").SerializedStyles;
3840
+ static: import("@emotion/utils").SerializedStyles;
3841
+ primary: import("@emotion/utils").SerializedStyles;
3842
+ success: import("@emotion/utils").SerializedStyles;
3843
+ warning: import("@emotion/utils").SerializedStyles;
3844
+ danger: import("@emotion/utils").SerializedStyles;
3845
+ subdued: import("@emotion/utils").SerializedStyles;
3846
+ accent: import("@emotion/utils").SerializedStyles;
3847
+ vis0: import("@emotion/utils").SerializedStyles;
3848
+ vis1: import("@emotion/utils").SerializedStyles;
3849
+ vis2: import("@emotion/utils").SerializedStyles;
3850
+ vis3: import("@emotion/utils").SerializedStyles;
3851
+ vis4: import("@emotion/utils").SerializedStyles;
3852
+ vis5: import("@emotion/utils").SerializedStyles;
3853
+ vis6: import("@emotion/utils").SerializedStyles;
3854
+ vis7: import("@emotion/utils").SerializedStyles;
3855
+ vis8: import("@emotion/utils").SerializedStyles;
3856
+ vis9: import("@emotion/utils").SerializedStyles;
3857
+ customColor: import("@emotion/utils").SerializedStyles;
3858
+ };
3859
+ /**
3860
+ * Data styles
3861
+ */
3862
+ export const euiProgressDataStyles: (euiThemeContext: UseEuiTheme) => {
3863
+ euiProgress__data: import("@emotion/utils").SerializedStyles;
3864
+ l: import("@emotion/utils").SerializedStyles;
3865
+ };
3866
+ export const euiProgressLabelStyles: {
3867
+ euiProgress__label: import("@emotion/utils").SerializedStyles;
3868
+ };
3869
+ export const euiProgressValueTextStyles: ({ euiTheme }: UseEuiTheme) => {
3870
+ euiProgress__valueText: import("@emotion/utils").SerializedStyles;
3871
+ primary: import("@emotion/utils").SerializedStyles;
3872
+ success: import("@emotion/utils").SerializedStyles;
3873
+ warning: import("@emotion/utils").SerializedStyles;
3874
+ danger: import("@emotion/utils").SerializedStyles;
3875
+ subdued: import("@emotion/utils").SerializedStyles;
3876
+ accent: import("@emotion/utils").SerializedStyles;
3877
+ vis0: import("@emotion/utils").SerializedStyles;
3878
+ vis1: import("@emotion/utils").SerializedStyles;
3879
+ vis2: import("@emotion/utils").SerializedStyles;
3880
+ vis3: import("@emotion/utils").SerializedStyles;
3881
+ vis4: import("@emotion/utils").SerializedStyles;
3882
+ vis5: import("@emotion/utils").SerializedStyles;
3883
+ vis6: import("@emotion/utils").SerializedStyles;
3884
+ vis7: import("@emotion/utils").SerializedStyles;
3885
+ vis8: import("@emotion/utils").SerializedStyles;
3886
+ vis9: import("@emotion/utils").SerializedStyles;
3887
+ customColor: import("@emotion/utils").SerializedStyles;
3888
+ };
3889
+
3797
3890
  }
3798
3891
  declare module '@elastic/eui/src/components/progress/progress' {
3799
3892
  import { FunctionComponent, HTMLAttributes, ProgressHTMLAttributes, ReactNode, CSSProperties } from 'react';
3800
- import { CommonProps, ExclusiveUnion } from '@elastic/eui/src/components/common'; const sizeToClassNameMap: {
3801
- xs: string;
3802
- s: string;
3803
- m: string;
3804
- l: string;
3805
- };
3806
- export const SIZES: ("s" | "xs" | "m" | "l")[];
3807
- export type EuiProgressSize = keyof typeof sizeToClassNameMap;
3808
- export type ProgressColor = 'primary' | 'success' | 'warning' | 'danger' | 'subdued' | 'accent' | 'vis0' | 'vis1' | 'vis2' | 'vis3' | 'vis4' | 'vis5' | 'vis6' | 'vis7' | 'vis8' | 'vis9'; const colorToClassNameMap: {
3809
- primary: string;
3810
- success: string;
3811
- warning: string;
3812
- danger: string;
3813
- subdued: string;
3814
- accent: string;
3815
- vis0: string;
3816
- vis1: string;
3817
- vis2: string;
3818
- vis3: string;
3819
- vis4: string;
3820
- vis5: string;
3821
- vis6: string;
3822
- vis7: string;
3823
- vis8: string;
3824
- vis9: string;
3825
- };
3826
- export const COLORS: ("primary" | "success" | "accent" | "warning" | "danger" | "subdued" | "vis0" | "vis1" | "vis2" | "vis3" | "vis4" | "vis5" | "vis6" | "vis7" | "vis8" | "vis9")[];
3827
- export type EuiProgressColor = keyof typeof colorToClassNameMap; const positionsToClassNameMap: {
3828
- fixed: string;
3829
- absolute: string;
3830
- static: string;
3831
- };
3832
- export const POSITIONS: ("fixed" | "absolute" | "static")[];
3833
- export type EuiProgressPosition = keyof typeof positionsToClassNameMap;
3893
+ import { CommonProps, ExclusiveUnion } from '@elastic/eui/src/components/common';
3894
+ export const SIZES: readonly ["xs", "s", "m", "l"];
3895
+ export type EuiProgressSize = typeof SIZES[number];
3896
+ export const COLORS: readonly ["primary", "success", "warning", "danger", "subdued", "accent", "vis0", "vis1", "vis2", "vis3", "vis4", "vis5", "vis6", "vis7", "vis8", "vis9"];
3897
+ export type EuiProgressColor = typeof COLORS[number];
3898
+ export const POSITIONS: readonly ["fixed", "absolute", "static"];
3899
+ export type EuiProgressPosition = typeof POSITIONS[number];
3834
3900
  export type EuiProgressProps = CommonProps & {
3835
3901
  size?: EuiProgressSize;
3836
3902
  /**
@@ -5779,7 +5845,7 @@ declare module '@elastic/eui/src/components/tool_tip/icon_tip' {
5779
5845
  /**
5780
5846
  * Pass certain props down to `EuiIcon`
5781
5847
  */
5782
- iconProps?: Omit<PropsOf<EuiIcon>, 'type'> & {
5848
+ iconProps?: Omit<PropsOf<typeof EuiIcon>, 'type'> & {
5783
5849
  type?: never;
5784
5850
  };
5785
5851
  } type Props = Omit<EuiToolTipProps, 'children' | 'delay' | 'position'> & EuiIconTipProps & {
@@ -7102,135 +7168,7 @@ declare module '@elastic/eui/src/components/accordion/accordion' {
7102
7168
  generatedId: string;
7103
7169
  render(): JSX.Element;
7104
7170
  }
7105
- export const EuiAccordion: React.ForwardRefExoticComponent<Omit<WithEuiThemeProps<{}> & CommonProps & Omit<React.HTMLAttributes<HTMLElement>, "id"> & {
7106
- id: string;
7107
- /**
7108
- * Applied to the entire .euiAccordion wrapper.
7109
- * When using `fieldset`, it will enforce `buttonElement = legend` as well.
7110
- */
7111
- element?: "div" | "fieldset" | undefined;
7112
- /**
7113
- * Class that will apply to the trigger for the accordion.
7114
- */
7115
- buttonClassName?: string | undefined;
7116
- /**
7117
- * Apply more props to the triggering button
7118
- */
7119
- buttonProps?: (CommonProps & React.HTMLAttributes<HTMLElement>) | undefined;
7120
- /**
7121
- * Class that will apply to the trigger content for the accordion.
7122
- */
7123
- buttonContentClassName?: string | undefined;
7124
- /**
7125
- * The content of the clickable trigger
7126
- */
7127
- buttonContent?: ReactNode;
7128
- /**
7129
- * Applied to the main button receiving the `onToggle` event.
7130
- * Anything other than the default `button` does not support removing the arrow display (for accessibility of focus).
7131
- */
7132
- buttonElement?: "button" | "div" | "legend" | undefined;
7133
- /**
7134
- * Extra props to pass to the EuiButtonIcon containing the arrow.
7135
- */
7136
- arrowProps?: Partial<Omit<EuiButtonIconProps, "aria-labelledby" | "onClick" | "iconType">> | undefined;
7137
- /**
7138
- * Will appear right aligned against the button. Useful for separate actions like deletions.
7139
- */
7140
- extraAction?: ReactNode;
7141
- /**
7142
- * The accordion will start in the open state.
7143
- */
7144
- initialIsOpen?: boolean | undefined;
7145
- /**
7146
- * Optional callback method called on open and close with a single `isOpen` parameter
7147
- */
7148
- onToggle?: ((isOpen: boolean) => void) | undefined;
7149
- /**
7150
- * The padding around the exposed accordion content.
7151
- */
7152
- paddingSize?: "s" | "none" | "xs" | "m" | "l" | "xl" | undefined;
7153
- /**
7154
- * Placement of the arrow indicator, or 'none' to hide it.
7155
- */
7156
- arrowDisplay?: "none" | "left" | "right" | undefined;
7157
- /**
7158
- * Control the opening of accordion via prop
7159
- */
7160
- forceState?: "open" | "closed" | undefined;
7161
- /**
7162
- * Change `extraAction` and children into a loading spinner
7163
- */
7164
- isLoading?: boolean | undefined;
7165
- /**
7166
- * Choose whether the loading message replaces the content. Customize the message by passing a node
7167
- */
7168
- isLoadingMessage?: boolean | ReactNode;
7169
- }, "theme"> & React.RefAttributes<Omit<WithEuiThemeProps<{}> & CommonProps & Omit<React.HTMLAttributes<HTMLElement>, "id"> & {
7170
- id: string;
7171
- /**
7172
- * Applied to the entire .euiAccordion wrapper.
7173
- * When using `fieldset`, it will enforce `buttonElement = legend` as well.
7174
- */
7175
- element?: "div" | "fieldset" | undefined;
7176
- /**
7177
- * Class that will apply to the trigger for the accordion.
7178
- */
7179
- buttonClassName?: string | undefined;
7180
- /**
7181
- * Apply more props to the triggering button
7182
- */
7183
- buttonProps?: (CommonProps & React.HTMLAttributes<HTMLElement>) | undefined;
7184
- /**
7185
- * Class that will apply to the trigger content for the accordion.
7186
- */
7187
- buttonContentClassName?: string | undefined;
7188
- /**
7189
- * The content of the clickable trigger
7190
- */
7191
- buttonContent?: ReactNode;
7192
- /**
7193
- * Applied to the main button receiving the `onToggle` event.
7194
- * Anything other than the default `button` does not support removing the arrow display (for accessibility of focus).
7195
- */
7196
- buttonElement?: "button" | "div" | "legend" | undefined;
7197
- /**
7198
- * Extra props to pass to the EuiButtonIcon containing the arrow.
7199
- */
7200
- arrowProps?: Partial<Omit<EuiButtonIconProps, "aria-labelledby" | "onClick" | "iconType">> | undefined;
7201
- /**
7202
- * Will appear right aligned against the button. Useful for separate actions like deletions.
7203
- */
7204
- extraAction?: ReactNode;
7205
- /**
7206
- * The accordion will start in the open state.
7207
- */
7208
- initialIsOpen?: boolean | undefined;
7209
- /**
7210
- * Optional callback method called on open and close with a single `isOpen` parameter
7211
- */
7212
- onToggle?: ((isOpen: boolean) => void) | undefined;
7213
- /**
7214
- * The padding around the exposed accordion content.
7215
- */
7216
- paddingSize?: "s" | "none" | "xs" | "m" | "l" | "xl" | undefined;
7217
- /**
7218
- * Placement of the arrow indicator, or 'none' to hide it.
7219
- */
7220
- arrowDisplay?: "none" | "left" | "right" | undefined;
7221
- /**
7222
- * Control the opening of accordion via prop
7223
- */
7224
- forceState?: "open" | "closed" | undefined;
7225
- /**
7226
- * Change `extraAction` and children into a loading spinner
7227
- */
7228
- isLoading?: boolean | undefined;
7229
- /**
7230
- * Choose whether the loading message replaces the content. Customize the message by passing a node
7231
- */
7232
- isLoadingMessage?: boolean | ReactNode;
7233
- }, "theme">>>;
7171
+ export const EuiAccordion: React.ForwardRefExoticComponent<Omit<EuiAccordionProps, "theme"> & React.RefAttributes<Omit<EuiAccordionProps, "theme">>>;
7234
7172
  export {};
7235
7173
 
7236
7174
  }
@@ -7410,7 +7348,7 @@ declare module '@elastic/eui/src/components/badge/badge' {
7410
7348
  /**
7411
7349
  * Props passed to the close button.
7412
7350
  */
7413
- closeButtonProps?: Partial<PropsOf<EuiIcon>>;
7351
+ closeButtonProps?: Partial<PropsOf<typeof EuiIcon>>;
7414
7352
  } & CommonProps & ExclusiveUnion<WithIconOnClick, {}> & ExclusiveUnion<ExclusiveUnion<WithButtonProps, WithAnchorProps>, WithSpanProps>;
7415
7353
  export const COLORS: string[];
7416
7354
  export const ICON_SIDES: IconSide[];
@@ -12563,7 +12501,7 @@ declare module '@elastic/eui/src/components/description_list/description_list' {
12563
12501
  normal: string;
12564
12502
  reverse: string;
12565
12503
  };
12566
- export const TEXT_STYLES: ("reverse" | "normal")[];
12504
+ export const TEXT_STYLES: ("normal" | "reverse")[];
12567
12505
  export const EuiDescriptionList: FunctionComponent<CommonProps & HTMLAttributes<HTMLDListElement> & EuiDescriptionListProps>;
12568
12506
  export {};
12569
12507
 
@@ -14617,6 +14555,11 @@ declare module '@elastic/eui/src/components/page' {
14617
14555
  export type { EuiPageTemplateProps } from '@elastic/eui/src/components/page/page_template';
14618
14556
  export { EuiPageTemplate } from '@elastic/eui/src/components/page/page_template';
14619
14557
 
14558
+ }
14559
+ declare module '@elastic/eui/src/global_styling/utility/utility' {
14560
+
14561
+ export const EuiUtilityClasses: () => JSX.Element;
14562
+
14620
14563
  }
14621
14564
  declare module '@elastic/eui/src/themes/themes' {
14622
14565
  import { EuiThemeSystem } from '@elastic/eui/src/services';
@@ -14639,6 +14582,19 @@ declare module '@elastic/eui/src/themes' {
14639
14582
  export { AMSTERDAM_NAME_KEY, EuiThemeAmsterdam } from '@elastic/eui/src/themes/amsterdam/theme';
14640
14583
  export * from '@elastic/eui/src/themes/amsterdam';
14641
14584
 
14585
+ }
14586
+ declare module '@elastic/eui/src/components/provider/cache/cache_provider' {
14587
+ import { PropsWithChildren } from 'react';
14588
+ import { EmotionCache } from '@emotion/cache';
14589
+ export interface EuiCacheProviderProps {
14590
+ cache?: false | EmotionCache;
14591
+ }
14592
+ export const EuiCacheProvider: ({ cache, children, }: PropsWithChildren<EuiCacheProviderProps>) => JSX.Element;
14593
+
14594
+ }
14595
+ declare module '@elastic/eui/src/components/provider/cache' {
14596
+ export * from '@elastic/eui/src/components/provider/cache/cache_provider';
14597
+
14642
14598
  }
14643
14599
  declare module '@elastic/eui/src/components/provider/provider' {
14644
14600
  import React, { PropsWithChildren } from 'react';
@@ -14657,11 +14613,26 @@ declare module '@elastic/eui/src/components/provider/provider' {
14657
14613
  */
14658
14614
  globalStyles?: false | ((params: any) => JSX.Element | null);
14659
14615
  /**
14660
- * Provide a cache configuration from `@emotion/cache`
14616
+ * Provide utility classes.
14617
+ * Pass `false` to remove the default EUI utility classes.
14618
+ */
14619
+ utilityClasses?: false | ((params: any) => JSX.Element | null);
14620
+ /**
14621
+ * Provide a cache configuration(s) from `@emotion/cache`.
14622
+ *
14623
+ * - `default` will encompass all Emotion styles, including consumer defined appliction styles, not handled by nested cache instances.
14624
+ * - `global` will scope all EUI global and reset styles.
14625
+ * - `utility` will scope all EUI utility class styles.
14626
+ *
14627
+ * A cache instance provided as the sole value will function the same as the `default` cache.
14661
14628
  */
14662
- cache?: EmotionCache;
14629
+ cache?: EmotionCache | {
14630
+ default?: EmotionCache;
14631
+ global?: EmotionCache;
14632
+ utility?: EmotionCache;
14633
+ };
14663
14634
  }
14664
- export const EuiProvider: <T extends {} = {}>({ cache, theme, globalStyles: GlobalStyles, colorMode, modify, children, }: React.PropsWithChildren<EuiProviderProps<T>>) => JSX.Element;
14635
+ export const EuiProvider: <T extends {} = {}>({ cache, theme, globalStyles: Globals, utilityClasses: Utilities, colorMode, modify, children, }: React.PropsWithChildren<EuiProviderProps<T>>) => JSX.Element;
14665
14636
 
14666
14637
  }
14667
14638
  declare module '@elastic/eui/src/components/provider' {
@@ -15688,6 +15659,11 @@ declare module '@elastic/eui/src/components/selectable/selectable' {
15688
15659
  * Also passes back the React click/keyboard event as a second argument.
15689
15660
  */
15690
15661
  onChange?: (options: Array<EuiSelectableOption<T>>, event: EuiSelectableOnChangeEvent) => void;
15662
+ /**
15663
+ * Passes back the current active option whenever the user changes the currently
15664
+ * highlighted option via keyboard navigation or searching.
15665
+ */
15666
+ onActiveOptionChange?: (option: EuiSelectableOption | null) => void;
15691
15667
  /**
15692
15668
  * Sets the single selection policy of
15693
15669
  * `false`: allows multiple selection
@@ -15769,6 +15745,7 @@ declare module '@elastic/eui/src/components/selectable/selectable' {
15769
15745
  listId: string;
15770
15746
  constructor(props: EuiSelectableProps<T>);
15771
15747
  static getDerivedStateFromProps<T>(nextProps: EuiSelectableProps<T>, prevState: EuiSelectableState<T>): Partial<EuiSelectableState<T>>;
15748
+ componentDidUpdate<T>(prevProps: EuiSelectableProps<T>, prevState: EuiSelectableState<T>): void;
15772
15749
  hasActiveOption: () => boolean;
15773
15750
  onMouseDown: () => void;
15774
15751
  onFocus: () => void;
@@ -16314,25 +16291,33 @@ declare module '@elastic/eui/src/components/side_nav' {
16314
16291
  export { EuiSideNav } from '@elastic/eui/src/components/side_nav/side_nav';
16315
16292
  export * from '@elastic/eui/src/components/side_nav/side_nav_types';
16316
16293
 
16294
+ }
16295
+ declare module '@elastic/eui/src/components/stat/stat.styles' {
16296
+ import { UseEuiTheme } from '@elastic/eui/src/services';
16297
+ export const euiStatStyles: () => {
16298
+ euiStat: import("@emotion/utils").SerializedStyles;
16299
+ left: import("@emotion/utils").SerializedStyles;
16300
+ center: import("@emotion/utils").SerializedStyles;
16301
+ right: import("@emotion/utils").SerializedStyles;
16302
+ };
16303
+ export const euiStatTitleStyles: ({ euiTheme }: UseEuiTheme) => {
16304
+ euiStat__title: import("@emotion/utils").SerializedStyles;
16305
+ default: import("@emotion/utils").SerializedStyles;
16306
+ subdued: import("@emotion/utils").SerializedStyles;
16307
+ primary: import("@emotion/utils").SerializedStyles;
16308
+ success: import("@emotion/utils").SerializedStyles;
16309
+ danger: import("@emotion/utils").SerializedStyles;
16310
+ accent: import("@emotion/utils").SerializedStyles;
16311
+ isLoading: import("@emotion/utils").SerializedStyles;
16312
+ };
16313
+
16317
16314
  }
16318
16315
  declare module '@elastic/eui/src/components/stat/stat' {
16319
16316
  import { HTMLAttributes, FunctionComponent, ReactNode } from 'react';
16320
16317
  import { CommonProps } from '@elastic/eui/src/components/common';
16321
- import { EuiTitleSize } from '@elastic/eui/src/components/title/title'; const colorToClassNameMap: {
16322
- default: null;
16323
- subdued: string;
16324
- primary: string;
16325
- success: string;
16326
- danger: string;
16327
- accent: string;
16328
- };
16329
- export const COLORS: ("default" | "primary" | "success" | "accent" | "danger" | "subdued")[]; const textAlignToClassNameMap: {
16330
- left: string;
16331
- center: string;
16332
- right: string;
16333
- };
16334
- export const isColorClass: (input: string) => input is "default" | "primary" | "success" | "accent" | "danger" | "subdued";
16335
- export const ALIGNMENTS: ("left" | "right" | "center")[];
16318
+ import { EuiTitleSize } from '@elastic/eui/src/components/title/title';
16319
+ export const COLORS: readonly ["default", "subdued", "primary", "success", "danger", "accent"]; type TitleColor = typeof COLORS[number];
16320
+ export const ALIGNMENTS: readonly ["left", "center", "right"];
16336
16321
  export interface EuiStatProps {
16337
16322
  /**
16338
16323
  * Set the description (label) text
@@ -16346,7 +16331,7 @@ declare module '@elastic/eui/src/components/stat/stat' {
16346
16331
  * Flips the order of the description and title
16347
16332
  */
16348
16333
  reverse?: boolean;
16349
- textAlign?: keyof typeof textAlignToClassNameMap;
16334
+ textAlign?: typeof ALIGNMENTS[number];
16350
16335
  /**
16351
16336
  * The (value) text
16352
16337
  */
@@ -16354,7 +16339,7 @@ declare module '@elastic/eui/src/components/stat/stat' {
16354
16339
  /**
16355
16340
  * The color of the title text
16356
16341
  */
16357
- titleColor?: keyof typeof colorToClassNameMap | string;
16342
+ titleColor?: TitleColor | string;
16358
16343
  /**
16359
16344
  * Size of the title. See EuiTitle for options ('s', 'm', 'l'... etc)
16360
16345
  */
@@ -17875,43 +17860,54 @@ declare module '@elastic/eui/src/components/timeline/timeline_item_icon' {
17875
17860
 
17876
17861
  }
17877
17862
  declare module '@elastic/eui/src/components/timeline/timeline_item.styles' {
17878
- import { UseEuiTheme } from '@elastic/eui/src/services';
17879
- export const euiTimelineItemStyles: ({ euiTheme }: UseEuiTheme) => {
17863
+ export const euiTimelineItemStyles: () => {
17880
17864
  euiTimelineItem: import("@emotion/utils").SerializedStyles;
17865
+ top: import("@emotion/utils").SerializedStyles;
17866
+ center: import("@emotion/utils").SerializedStyles;
17881
17867
  };
17882
17868
 
17883
17869
  }
17884
17870
  declare module '@elastic/eui/src/components/timeline/timeline_item' {
17885
- import { FunctionComponent, HTMLAttributes, ElementType } from 'react';
17871
+ import { FunctionComponent, HTMLAttributes } from 'react';
17886
17872
  import { CommonProps } from '@elastic/eui/src/components/common';
17887
17873
  import { EuiTimelineItemEventProps } from '@elastic/eui/src/components/timeline/timeline_item_event';
17888
17874
  import { EuiTimelineItemIconProps } from '@elastic/eui/src/components/timeline/timeline_item_icon';
17889
17875
  export const VERTICAL_ALIGN: readonly ["top", "center"];
17890
17876
  export type EuiTimelineItemVerticalAlign = typeof VERTICAL_ALIGN[number];
17891
- export interface EuiTimelineItemProps extends Omit<HTMLAttributes<ElementType>, 'children'>, CommonProps, Omit<EuiTimelineItemIconProps, 'verticalAlign'>, Omit<EuiTimelineItemEventProps, 'verticalAlign'> {
17877
+ export interface EuiTimelineItemProps extends Omit<HTMLAttributes<HTMLElement>, 'children'>, CommonProps, Omit<EuiTimelineItemIconProps, 'verticalAlign'>, Omit<EuiTimelineItemEventProps, 'verticalAlign'> {
17892
17878
  /**
17893
17879
  * Vertical alignment of the event with the icon
17894
17880
  */
17895
17881
  verticalAlign?: EuiTimelineItemVerticalAlign;
17896
- /**
17897
- * Sets the HTML element for `EuiTimelineItem`.
17898
- * By default, the element renders as a `<li/>`.
17899
- * Only change the HTML element when it is not wrapped in a `EuiTimeline` that renders as a `<ol/>`.
17900
- */
17901
- component?: ElementType;
17902
17882
  }
17903
17883
  export const EuiTimelineItem: FunctionComponent<EuiTimelineItemProps>;
17904
17884
 
17885
+ }
17886
+ declare module '@elastic/eui/src/components/timeline/timeline.styles' {
17887
+ import { UseEuiTheme } from '@elastic/eui/src/services';
17888
+ export const euiTimelineStyles: ({ euiTheme }: UseEuiTheme) => {
17889
+ euiTimeline: import("@emotion/utils").SerializedStyles;
17890
+ m: import("@emotion/utils").SerializedStyles;
17891
+ l: import("@emotion/utils").SerializedStyles;
17892
+ xl: import("@emotion/utils").SerializedStyles;
17893
+ };
17894
+
17905
17895
  }
17906
17896
  declare module '@elastic/eui/src/components/timeline/timeline' {
17907
17897
  import { HTMLAttributes, FunctionComponent } from 'react';
17908
17898
  import { CommonProps } from '@elastic/eui/src/components/common';
17909
17899
  import { EuiTimelineItemProps } from '@elastic/eui/src/components/timeline/timeline_item';
17900
+ export const GUTTER_SIZES: readonly ["m", "l", "xl"];
17901
+ export type EuiTimelineGutterSize = typeof GUTTER_SIZES[number];
17910
17902
  export interface EuiTimelineProps extends HTMLAttributes<HTMLOListElement>, CommonProps {
17911
17903
  /**
17912
17904
  * List of timeline items to render. See #EuiTimelineItem
17913
17905
  */
17914
17906
  items?: EuiTimelineItemProps[];
17907
+ /**
17908
+ * Sets the size of the vertical space between each timeline item
17909
+ */
17910
+ gutterSize?: EuiTimelineGutterSize;
17915
17911
  }
17916
17912
  export const EuiTimeline: FunctionComponent<EuiTimelineProps>;
17917
17913