@elastic/eui 62.0.0 → 62.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 (355) hide show
  1. package/dist/eui_charts_theme.js +330 -330
  2. package/dist/eui_charts_theme.js.map +1 -1
  3. package/dist/eui_theme_dark.css +1 -783
  4. package/dist/eui_theme_dark.json +0 -57
  5. package/dist/eui_theme_dark.json.d.ts +0 -57
  6. package/dist/eui_theme_dark.min.css +1 -1
  7. package/dist/eui_theme_light.css +1 -783
  8. package/dist/eui_theme_light.json +0 -57
  9. package/dist/eui_theme_light.json.d.ts +0 -57
  10. package/dist/eui_theme_light.min.css +1 -1
  11. package/es/components/breadcrumbs/breadcrumb.js +199 -0
  12. package/es/components/breadcrumbs/breadcrumb.styles.js +61 -0
  13. package/es/components/breadcrumbs/breadcrumbs.js +115 -187
  14. package/es/components/breadcrumbs/breadcrumbs.styles.js +30 -0
  15. package/es/components/code/code_block.js +119 -107
  16. package/es/components/collapsible_nav/collapsible_nav.js +2 -2
  17. package/es/components/comment_list/comment_event.js +22 -28
  18. package/es/components/comment_list/comment_event.styles.js +15 -16
  19. package/es/components/control_bar/control_bar.js +13 -0
  20. package/es/components/datagrid/body/data_grid_body.js +1 -1
  21. package/es/components/datagrid/body/header/data_grid_header_row.js +1 -1
  22. package/es/components/datagrid/controls/column_sorting_draggable.js +1 -1
  23. package/es/components/datagrid/data_grid.js +1 -1
  24. package/es/components/date_picker/super_date_picker/super_date_picker.js +2 -2
  25. package/es/components/date_picker/super_date_picker/super_update_button.js +1 -1
  26. package/es/components/description_list/description_list.js +22 -26
  27. package/es/components/description_list/description_list.styles.js +25 -0
  28. package/es/components/description_list/description_list_context.js +14 -0
  29. package/es/components/description_list/description_list_description.js +43 -2
  30. package/es/components/description_list/description_list_description.styles.js +47 -0
  31. package/es/components/description_list/description_list_title.js +43 -2
  32. package/es/components/description_list/description_list_title.styles.js +37 -0
  33. package/es/components/description_list/description_list_types.js +10 -0
  34. package/es/components/filter_group/filter_button.js +3 -1
  35. package/es/components/header/header.js +1 -27
  36. package/es/components/header/header_breadcrumbs/header_breadcrumbs.js +22 -2
  37. package/es/components/header/header_breadcrumbs/header_breadcrumbs.styles.js +15 -0
  38. package/es/components/header/header_links/header_links.js +9 -9
  39. package/es/components/icon/assets/tokenStruct.js +1 -1
  40. package/es/components/image/image_caption.js +2 -2
  41. package/es/components/image/image_wrapper.styles.js +1 -1
  42. package/es/components/page/page_header/page_header.js +1 -0
  43. package/es/components/page/page_header/page_header_content.js +2 -1
  44. package/es/components/page/page_template.js +1 -0
  45. package/es/components/pagination/pagination.js +1 -1
  46. package/es/components/panel/split_panel/split_panel.js +2 -2
  47. package/es/components/popover/wrapping_popover.js +45 -88
  48. package/es/components/portal/portal.js +38 -79
  49. package/es/components/provider/provider.js +2 -2
  50. package/es/components/responsive/hide_for.js +6 -38
  51. package/es/components/responsive/show_for.js +6 -38
  52. package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +17 -36
  53. package/es/components/side_nav/side_nav.js +1 -1
  54. package/es/components/table/table_row_cell.js +1 -2
  55. package/es/components/toast/global_toast_list.js +208 -241
  56. package/es/components/toast/global_toast_list.styles.js +38 -0
  57. package/es/components/toast/global_toast_list_item.js +12 -7
  58. package/es/components/toast/toast.js +25 -25
  59. package/es/components/toast/toast.styles.js +55 -0
  60. package/es/components/token/index.js +2 -1
  61. package/es/components/token/token.js +48 -112
  62. package/es/components/token/token.styles.js +93 -0
  63. package/es/components/token/token_map.js +6 -9
  64. package/es/components/token/token_types.js +11 -0
  65. package/es/global_styling/reset/global_styles.js +1 -1
  66. package/es/services/{breakpoint.js → breakpoint/breakpoint.js} +4 -9
  67. package/es/services/breakpoint/currentEuiBreakpoint.js +64 -0
  68. package/es/services/breakpoint/index.js +10 -0
  69. package/es/services/breakpoint/useIsWithinBreakpoints.js +24 -0
  70. package/es/services/hooks/index.js +0 -1
  71. package/es/services/index.js +1 -1
  72. package/es/test/rtl/component_helpers.d.ts +7 -0
  73. package/es/test/rtl/component_helpers.js +72 -0
  74. package/es/test/rtl/custom_render.d.ts +74 -0
  75. package/es/test/rtl/custom_render.js +52 -0
  76. package/es/test/rtl/data_test_subj_queries.d.ts +5 -0
  77. package/es/{services/hooks/useIsWithinBreakpoints.js → test/rtl/data_test_subj_queries.js} +26 -36
  78. package/es/test/rtl/index.d.ts +3 -0
  79. package/es/test/rtl/index.js +10 -0
  80. package/eui.d.ts +1834 -1565
  81. package/i18ntokens.json +36 -36
  82. package/lib/components/breadcrumbs/breadcrumb.js +225 -0
  83. package/lib/components/breadcrumbs/breadcrumb.styles.js +68 -0
  84. package/lib/components/breadcrumbs/breadcrumbs.js +125 -188
  85. package/lib/components/breadcrumbs/breadcrumbs.styles.js +33 -0
  86. package/lib/components/code/code_block.js +118 -106
  87. package/lib/components/collapsible_nav/collapsible_nav.js +2 -2
  88. package/lib/components/comment_list/comment_event.js +29 -26
  89. package/lib/components/comment_list/comment_event.styles.js +15 -16
  90. package/lib/components/control_bar/control_bar.js +13 -0
  91. package/lib/components/datagrid/body/data_grid_body.js +1 -1
  92. package/lib/components/datagrid/body/header/data_grid_header_row.js +1 -1
  93. package/lib/components/datagrid/controls/column_sorting_draggable.js +1 -1
  94. package/lib/components/datagrid/data_grid.js +1 -1
  95. package/lib/components/date_picker/super_date_picker/super_date_picker.js +2 -2
  96. package/lib/components/date_picker/super_date_picker/super_update_button.js +1 -1
  97. package/lib/components/description_list/description_list.js +25 -31
  98. package/lib/components/description_list/description_list.styles.js +36 -0
  99. package/lib/components/description_list/description_list_context.js +24 -0
  100. package/lib/components/description_list/description_list_description.js +52 -2
  101. package/lib/components/description_list/description_list_description.styles.js +51 -0
  102. package/lib/components/description_list/description_list_title.js +52 -2
  103. package/lib/components/description_list/description_list_title.styles.js +50 -0
  104. package/lib/components/description_list/description_list_types.js +20 -0
  105. package/lib/components/filter_group/filter_button.js +3 -1
  106. package/lib/components/header/header.js +1 -27
  107. package/lib/components/header/header_breadcrumbs/header_breadcrumbs.js +24 -2
  108. package/lib/components/header/header_breadcrumbs/header_breadcrumbs.styles.js +26 -0
  109. package/lib/components/header/header_links/header_links.js +8 -8
  110. package/lib/components/icon/assets/tokenStruct.js +1 -1
  111. package/lib/components/icon/svgs/tokens/tokenStruct.svg +1 -1
  112. package/lib/components/image/image_caption.js +2 -2
  113. package/lib/components/image/image_wrapper.styles.js +1 -1
  114. package/lib/components/page/page_header/page_header.js +1 -0
  115. package/lib/components/page/page_header/page_header_content.js +3 -2
  116. package/lib/components/page/page_template.js +1 -0
  117. package/lib/components/pagination/pagination.js +1 -1
  118. package/lib/components/panel/split_panel/split_panel.js +3 -3
  119. package/lib/components/popover/wrapping_popover.js +44 -85
  120. package/lib/components/portal/portal.js +39 -82
  121. package/lib/components/provider/provider.js +1 -1
  122. package/lib/components/responsive/hide_for.js +12 -44
  123. package/lib/components/responsive/show_for.js +12 -44
  124. package/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +15 -35
  125. package/lib/components/side_nav/side_nav.js +1 -1
  126. package/lib/components/table/table_row_cell.js +1 -3
  127. package/lib/components/toast/global_toast_list.js +209 -238
  128. package/lib/components/toast/global_toast_list.styles.js +45 -0
  129. package/lib/components/toast/global_toast_list_item.js +14 -7
  130. package/lib/components/toast/toast.js +27 -25
  131. package/lib/components/toast/toast.styles.js +66 -0
  132. package/lib/components/token/index.js +5 -3
  133. package/lib/components/token/token.js +50 -120
  134. package/lib/components/token/token.styles.js +101 -0
  135. package/lib/components/token/token_map.js +6 -9
  136. package/lib/components/token/token_types.js +22 -0
  137. package/lib/global_styling/reset/global_styles.js +1 -1
  138. package/{test-env/services → lib/services/breakpoint}/breakpoint.js +5 -9
  139. package/lib/services/breakpoint/currentEuiBreakpoint.js +80 -0
  140. package/lib/services/breakpoint/index.js +44 -0
  141. package/lib/services/breakpoint/useIsWithinBreakpoints.js +34 -0
  142. package/lib/services/hooks/index.js +0 -13
  143. package/lib/services/index.js +28 -0
  144. package/lib/test/rtl/component_helpers.d.ts +7 -0
  145. package/lib/test/rtl/component_helpers.js +77 -0
  146. package/lib/test/rtl/custom_render.d.ts +74 -0
  147. package/lib/test/rtl/custom_render.js +60 -0
  148. package/lib/test/rtl/data_test_subj_queries.d.ts +5 -0
  149. package/lib/{services/hooks/useIsWithinBreakpoints.js → test/rtl/data_test_subj_queries.js} +33 -38
  150. package/lib/test/rtl/index.d.ts +3 -0
  151. package/lib/test/rtl/index.js +81 -0
  152. package/optimize/es/components/breadcrumbs/breadcrumb.js +136 -0
  153. package/optimize/es/components/breadcrumbs/breadcrumb.styles.js +61 -0
  154. package/optimize/es/components/breadcrumbs/breadcrumbs.js +92 -165
  155. package/optimize/es/components/breadcrumbs/breadcrumbs.styles.js +30 -0
  156. package/optimize/es/components/code/code_block.js +106 -107
  157. package/optimize/es/components/comment_list/comment_event.js +22 -28
  158. package/optimize/es/components/comment_list/comment_event.styles.js +15 -16
  159. package/optimize/es/components/description_list/description_list.js +20 -24
  160. package/optimize/es/components/description_list/description_list.styles.js +25 -0
  161. package/optimize/es/components/description_list/description_list_context.js +14 -0
  162. package/optimize/es/components/description_list/description_list_description.js +32 -2
  163. package/optimize/es/components/description_list/description_list_description.styles.js +47 -0
  164. package/optimize/es/components/description_list/description_list_title.js +32 -2
  165. package/optimize/es/components/description_list/description_list_title.styles.js +37 -0
  166. package/optimize/es/components/description_list/description_list_types.js +10 -0
  167. package/optimize/es/components/filter_group/filter_button.js +3 -1
  168. package/optimize/es/components/header/header_breadcrumbs/header_breadcrumbs.js +8 -1
  169. package/optimize/es/components/header/header_breadcrumbs/header_breadcrumbs.styles.js +15 -0
  170. package/optimize/es/components/header/header_links/header_links.js +8 -8
  171. package/optimize/es/components/icon/assets/tokenStruct.js +1 -1
  172. package/optimize/es/components/image/image_caption.js +2 -2
  173. package/optimize/es/components/image/image_wrapper.styles.js +1 -1
  174. package/optimize/es/components/page/page_header/page_header_content.js +1 -1
  175. package/optimize/es/components/panel/split_panel/split_panel.js +1 -1
  176. package/optimize/es/components/popover/wrapping_popover.js +38 -79
  177. package/optimize/es/components/portal/portal.js +34 -61
  178. package/optimize/es/components/provider/provider.js +2 -2
  179. package/optimize/es/components/responsive/hide_for.js +5 -27
  180. package/optimize/es/components/responsive/show_for.js +5 -27
  181. package/optimize/es/components/selectable/selectable_templates/selectable_template_sitewide.js +16 -35
  182. package/optimize/es/components/table/table_row_cell.js +1 -2
  183. package/optimize/es/components/toast/global_toast_list.js +199 -230
  184. package/optimize/es/components/toast/global_toast_list.styles.js +38 -0
  185. package/optimize/es/components/toast/global_toast_list_item.js +11 -6
  186. package/optimize/es/components/toast/toast.js +24 -24
  187. package/optimize/es/components/toast/toast.styles.js +55 -0
  188. package/optimize/es/components/token/index.js +2 -1
  189. package/optimize/es/components/token/token.js +46 -69
  190. package/optimize/es/components/token/token.styles.js +83 -0
  191. package/optimize/es/components/token/token_map.js +6 -9
  192. package/optimize/es/components/token/token_types.js +11 -0
  193. package/optimize/es/global_styling/reset/global_styles.js +1 -1
  194. package/optimize/es/services/{breakpoint.js → breakpoint/breakpoint.js} +4 -9
  195. package/optimize/es/services/breakpoint/currentEuiBreakpoint.js +53 -0
  196. package/optimize/es/services/breakpoint/index.js +10 -0
  197. package/optimize/es/services/breakpoint/useIsWithinBreakpoints.js +24 -0
  198. package/optimize/es/services/hooks/index.js +0 -1
  199. package/optimize/es/services/index.js +1 -1
  200. package/optimize/es/test/rtl/component_helpers.d.ts +7 -0
  201. package/optimize/es/test/rtl/component_helpers.js +71 -0
  202. package/optimize/es/test/rtl/custom_render.d.ts +74 -0
  203. package/optimize/es/test/rtl/custom_render.js +48 -0
  204. package/optimize/es/test/rtl/data_test_subj_queries.d.ts +5 -0
  205. package/optimize/es/test/rtl/data_test_subj_queries.js +36 -0
  206. package/optimize/es/test/rtl/index.d.ts +3 -0
  207. package/optimize/es/test/rtl/index.js +10 -0
  208. package/optimize/lib/components/breadcrumbs/breadcrumb.js +162 -0
  209. package/optimize/lib/components/breadcrumbs/breadcrumb.styles.js +68 -0
  210. package/optimize/lib/components/breadcrumbs/breadcrumbs.js +99 -164
  211. package/optimize/lib/components/breadcrumbs/breadcrumbs.styles.js +33 -0
  212. package/optimize/lib/components/code/code_block.js +105 -106
  213. package/optimize/lib/components/comment_list/comment_event.js +22 -26
  214. package/optimize/lib/components/comment_list/comment_event.styles.js +15 -16
  215. package/optimize/lib/components/description_list/description_list.js +23 -28
  216. package/optimize/lib/components/description_list/description_list.styles.js +36 -0
  217. package/optimize/lib/components/description_list/description_list_context.js +24 -0
  218. package/optimize/lib/components/description_list/description_list_description.js +43 -2
  219. package/optimize/lib/components/description_list/description_list_description.styles.js +51 -0
  220. package/optimize/lib/components/description_list/description_list_title.js +43 -2
  221. package/optimize/lib/components/description_list/description_list_title.styles.js +50 -0
  222. package/optimize/lib/components/description_list/description_list_types.js +20 -0
  223. package/optimize/lib/components/filter_group/filter_button.js +3 -1
  224. package/optimize/lib/components/header/header_breadcrumbs/header_breadcrumbs.js +10 -1
  225. package/optimize/lib/components/header/header_breadcrumbs/header_breadcrumbs.styles.js +26 -0
  226. package/optimize/lib/components/header/header_links/header_links.js +7 -7
  227. package/optimize/lib/components/icon/assets/tokenStruct.js +1 -1
  228. package/optimize/lib/components/icon/svgs/tokens/tokenStruct.svg +1 -1
  229. package/optimize/lib/components/image/image_caption.js +2 -2
  230. package/optimize/lib/components/image/image_wrapper.styles.js +1 -1
  231. package/optimize/lib/components/page/page_header/page_header_content.js +2 -2
  232. package/optimize/lib/components/panel/split_panel/split_panel.js +2 -2
  233. package/optimize/lib/components/popover/wrapping_popover.js +38 -78
  234. package/optimize/lib/components/portal/portal.js +45 -61
  235. package/optimize/lib/components/provider/provider.js +1 -1
  236. package/optimize/lib/components/responsive/hide_for.js +4 -33
  237. package/optimize/lib/components/responsive/show_for.js +4 -33
  238. package/optimize/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +14 -34
  239. package/optimize/lib/components/table/table_row_cell.js +1 -3
  240. package/optimize/lib/components/toast/global_toast_list.js +206 -220
  241. package/optimize/lib/components/toast/global_toast_list.styles.js +47 -0
  242. package/optimize/lib/components/toast/global_toast_list_item.js +14 -7
  243. package/optimize/lib/components/toast/toast.js +26 -24
  244. package/optimize/lib/components/toast/toast.styles.js +66 -0
  245. package/optimize/lib/components/token/index.js +5 -3
  246. package/optimize/lib/components/token/token.js +50 -76
  247. package/optimize/lib/components/token/token.styles.js +91 -0
  248. package/optimize/lib/components/token/token_map.js +6 -9
  249. package/optimize/lib/components/token/token_types.js +22 -0
  250. package/optimize/lib/global_styling/reset/global_styles.js +1 -1
  251. package/optimize/lib/services/{breakpoint.js → breakpoint/breakpoint.js} +5 -9
  252. package/optimize/lib/services/breakpoint/currentEuiBreakpoint.js +81 -0
  253. package/optimize/lib/services/breakpoint/index.js +44 -0
  254. package/optimize/lib/services/breakpoint/useIsWithinBreakpoints.js +34 -0
  255. package/optimize/lib/services/hooks/index.js +0 -13
  256. package/optimize/lib/services/index.js +28 -0
  257. package/optimize/lib/test/rtl/component_helpers.d.ts +7 -0
  258. package/optimize/lib/test/rtl/component_helpers.js +87 -0
  259. package/optimize/lib/test/rtl/custom_render.d.ts +74 -0
  260. package/optimize/lib/test/rtl/custom_render.js +59 -0
  261. package/optimize/lib/test/rtl/data_test_subj_queries.d.ts +5 -0
  262. package/optimize/lib/test/rtl/data_test_subj_queries.js +51 -0
  263. package/optimize/lib/test/rtl/index.d.ts +3 -0
  264. package/optimize/lib/test/rtl/index.js +81 -0
  265. package/package.json +8 -2
  266. package/src/components/control_bar/_control_bar.scss +1 -1
  267. package/src/components/header/_index.scss +0 -1
  268. package/src/components/index.scss +0 -5
  269. package/src/themes/amsterdam/overrides/_breadcrumbs.scss +0 -12
  270. package/src/themes/amsterdam/overrides/_index.scss +0 -4
  271. package/test-env/components/breadcrumbs/breadcrumb.js +211 -0
  272. package/test-env/components/breadcrumbs/breadcrumb.styles.js +68 -0
  273. package/test-env/components/breadcrumbs/breadcrumbs.js +122 -174
  274. package/test-env/components/breadcrumbs/breadcrumbs.styles.js +33 -0
  275. package/test-env/components/collapsible_nav/collapsible_nav.js +2 -2
  276. package/test-env/components/comment_list/comment_event.js +22 -26
  277. package/test-env/components/comment_list/comment_event.styles.js +15 -16
  278. package/test-env/components/control_bar/control_bar.js +13 -0
  279. package/test-env/components/datagrid/body/data_grid_body.js +1 -1
  280. package/test-env/components/datagrid/body/header/data_grid_header_row.js +1 -1
  281. package/test-env/components/datagrid/controls/column_sorting_draggable.js +1 -1
  282. package/test-env/components/datagrid/data_grid.js +1 -1
  283. package/test-env/components/date_picker/super_date_picker/super_date_picker.js +2 -2
  284. package/test-env/components/date_picker/super_date_picker/super_update_button.js +1 -1
  285. package/test-env/components/description_list/description_list.js +25 -30
  286. package/test-env/components/description_list/description_list.styles.js +36 -0
  287. package/test-env/components/description_list/description_list_context.js +24 -0
  288. package/test-env/components/description_list/description_list_description.js +43 -2
  289. package/test-env/components/description_list/description_list_description.styles.js +51 -0
  290. package/test-env/components/description_list/description_list_title.js +43 -2
  291. package/test-env/components/description_list/description_list_title.styles.js +50 -0
  292. package/test-env/components/description_list/description_list_types.js +20 -0
  293. package/test-env/components/filter_group/filter_button.js +3 -1
  294. package/test-env/components/header/header.js +1 -27
  295. package/test-env/components/header/header_breadcrumbs/header_breadcrumbs.js +24 -2
  296. package/test-env/components/header/header_breadcrumbs/header_breadcrumbs.styles.js +26 -0
  297. package/test-env/components/header/header_links/header_links.js +8 -8
  298. package/test-env/components/icon/assets/tokenStruct.js +1 -1
  299. package/test-env/components/image/image_caption.js +2 -2
  300. package/test-env/components/image/image_wrapper.styles.js +1 -1
  301. package/test-env/components/page/page_header/page_header.js +1 -0
  302. package/test-env/components/page/page_header/page_header_content.js +3 -2
  303. package/test-env/components/page/page_template.js +1 -0
  304. package/test-env/components/pagination/pagination.js +1 -1
  305. package/test-env/components/panel/split_panel/split_panel.js +3 -3
  306. package/test-env/components/popover/wrapping_popover.js +38 -78
  307. package/test-env/components/portal/portal.js +46 -75
  308. package/test-env/components/provider/provider.js +1 -1
  309. package/test-env/components/responsive/hide_for.js +5 -34
  310. package/test-env/components/responsive/show_for.js +5 -34
  311. package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +15 -35
  312. package/test-env/components/side_nav/side_nav.js +1 -1
  313. package/test-env/components/table/table_row_cell.js +1 -3
  314. package/test-env/components/toast/global_toast_list.js +206 -220
  315. package/test-env/components/toast/global_toast_list.styles.js +47 -0
  316. package/test-env/components/toast/global_toast_list_item.js +14 -7
  317. package/test-env/components/toast/toast.js +27 -25
  318. package/test-env/components/toast/toast.styles.js +66 -0
  319. package/test-env/components/token/index.js +5 -3
  320. package/test-env/components/token/token.js +51 -120
  321. package/test-env/components/token/token.styles.js +91 -0
  322. package/test-env/components/token/token_map.js +6 -9
  323. package/test-env/components/token/token_types.js +22 -0
  324. package/test-env/global_styling/reset/global_styles.js +1 -1
  325. package/{lib/services → test-env/services/breakpoint}/breakpoint.js +5 -9
  326. package/test-env/services/breakpoint/currentEuiBreakpoint.js +37 -0
  327. package/test-env/services/breakpoint/index.js +44 -0
  328. package/test-env/services/breakpoint/useIsWithinBreakpoints.js +34 -0
  329. package/test-env/services/hooks/index.js +0 -13
  330. package/test-env/services/index.js +28 -0
  331. package/test-env/test/rtl/component_helpers.js +87 -0
  332. package/test-env/test/rtl/custom_render.js +59 -0
  333. package/test-env/test/rtl/data_test_subj_queries.js +51 -0
  334. package/test-env/test/rtl/index.js +81 -0
  335. package/optimize/es/services/hooks/useIsWithinBreakpoints.js +0 -46
  336. package/optimize/lib/services/hooks/useIsWithinBreakpoints.js +0 -57
  337. package/src/components/breadcrumbs/_breadcrumbs.scss +0 -79
  338. package/src/components/breadcrumbs/_index.scss +0 -2
  339. package/src/components/breadcrumbs/_variables.scss +0 -2
  340. package/src/components/description_list/_description_list.scss +0 -211
  341. package/src/components/description_list/_index.scss +0 -1
  342. package/src/components/header/header_breadcrumbs/_header_breadcrumbs.scss +0 -8
  343. package/src/components/header/header_breadcrumbs/_index.scss +0 -1
  344. package/src/components/portal/_index.scss +0 -1
  345. package/src/components/portal/_portal.scss +0 -6
  346. package/src/components/toast/_global_toast_list.scss +0 -90
  347. package/src/components/toast/_index.scss +0 -4
  348. package/src/components/toast/_toast.scss +0 -103
  349. package/src/components/token/_index.scss +0 -2
  350. package/src/components/token/_token.scss +0 -85
  351. package/src/components/token/_variables.scss +0 -13
  352. package/src/themes/amsterdam/overrides/_header_breadcrumbs.scss +0 -71
  353. package/src/themes/amsterdam/overrides/_toast.scss +0 -21
  354. package/src/themes/amsterdam/overrides/_token.scss +0 -4
  355. package/test-env/services/hooks/useIsWithinBreakpoints.js +0 -57
package/eui.d.ts CHANGED
@@ -301,986 +301,184 @@ declare module '@elastic/eui/src/components/common' {
301
301
  export {};
302
302
 
303
303
  }
304
- declare module '@elastic/eui/src/services/breakpoint' {
305
- export type EuiBreakpointSize = 'xs' | 's' | 'm' | 'l' | 'xl';
306
- export type EuiBreakpoints = {
307
- [key in EuiBreakpointSize]: number;
304
+ declare module '@elastic/eui/src/global_styling/variables/breakpoint' {
305
+ export const EuiThemeBreakpoints: readonly ["xs", "s", "m", "l", "xl"];
306
+ export type _EuiThemeBreakpoint = typeof EuiThemeBreakpoints[number];
307
+ export type _EuiThemeBreakpoints = {
308
+ [key in _EuiThemeBreakpoint]: number;
308
309
  };
309
- export const BREAKPOINTS: EuiBreakpoints;
310
- export const BREAKPOINT_KEYS: EuiBreakpointSize[];
311
- /**
312
- * Given the current `width` and an object of `EuiBreakpoints`,
313
- * this function returns the string that is the name of the breakpoint key
314
- * that is less than or equal to the width
315
- *
316
- * @param {number} width Can either be the full window width or any width
317
- * @param {EuiBreakpoints} breakpoints An object with keys for sizing and values for minimum width
318
- * @returns {string | undefined} Name of the breakpoint key or `undefined` if a key doesn't exist
319
- */
320
- export function getBreakpoint(width: number, breakpoints?: EuiBreakpoints): EuiBreakpointSize | undefined;
321
- /**
322
- * Given the current `width` and a max breakpoint key,
323
- * this function returns true or false if the `width` falls within the max
324
- * breakpoint or any breakpoints below
325
- *
326
- * @param {number} width Can either be the full window width or any width
327
- * @param {EuiBreakpointSize | number} max The named breakpoint or custom number to check against
328
- * @param {EuiBreakpoints} breakpoints An object with keys for sizing and values for minimum width
329
- * @returns {boolean} Will return `false` if it can't find a value for the `max` breakpoint
330
- */
331
- export function isWithinMaxBreakpoint(width: number, max: EuiBreakpointSize | number, breakpoints?: EuiBreakpoints): boolean;
332
- /**
333
- * Given the current `width` and a min breakpoint key,
334
- * this function returns true or false if the `width` falls within the min
335
- * breakpoint or any breakpoints above
336
- *
337
- * @param {number} width Can either be the full window width or any width
338
- * @param {EuiBreakpointSize | number} min The named breakpoint or custom number to check against
339
- * @param {EuiBreakpoints} breakpoints An object with keys for sizing and values for minimum width
340
- * @returns {boolean} Will return `false` if it can't find a value for the `min` breakpoint
341
- */
342
- export function isWithinMinBreakpoint(width: number, min: EuiBreakpointSize | number, breakpoints?: EuiBreakpoints): boolean;
343
- /**
344
- * Given the current `width` and an array of breakpoint keys,
345
- * this function returns true or false if the `width` falls within
346
- * any of the named breakpoints
347
- *
348
- * @param {number} width Can either be the full window width or any width
349
- * @param {EuiBreakpointSize[]} sizes An array of named breakpoints
350
- * @param {EuiBreakpoints} breakpoints An object with keys for sizing and values for minimum width
351
- * @returns {boolean} Returns `true` if current breakpoint name is included in `sizes`
352
- */
353
- export function isWithinBreakpoints(width: number, sizes: EuiBreakpointSize[], breakpoints?: EuiBreakpoints): boolean;
354
-
355
- }
356
- declare module '@elastic/eui/src/services/color/is_color_dark' {
357
- /**
358
- * This function calculates if the specified color is "dark", which usually means
359
- * you need light text if you use it as a background color to fulfill WCAG contrast
360
- * requirement.
361
- * The color must be specified via its red, green and blue value in the range of
362
- * 0 to 255.
363
- * The formula is based on this Stackoverflow answer: https://stackoverflow.com/a/3943023
364
- * which itself is based upon the WCAG recommendation for color contrast.
365
- *
366
- * @param {number} red The red component in the range 0 to 255
367
- * @param {number} green The green component in the range 0 to 255
368
- * @param {number} blue The blue component in the range 0 to 255
369
- * @returns {boolean} True if the color is dark, false otherwise.
370
- */
371
- export function isColorDark(red: number, green: number, blue: number): boolean;
372
-
373
- }
374
- declare module '@elastic/eui/src/services/color/is_valid_hex' {
375
- export function isValidHex(hex: string): boolean;
376
-
377
- }
378
- declare module '@elastic/eui/src/services/color/color_types' {
379
- export type rgbDef = [number, number, number];
380
- export interface HSV {
381
- h: number;
382
- s: number;
383
- v: number;
384
- }
385
- export interface RGB {
386
- r: number;
387
- g: number;
388
- b: number;
389
- }
390
- export type HEX = string;
391
-
392
- }
393
- declare module '@elastic/eui/src/services/color/hex_to_rgb' {
394
- import { rgbDef } from '@elastic/eui/src/services/color/color_types';
395
- export function hexToRgb(hex: string): rgbDef;
396
-
397
- }
398
- declare module '@elastic/eui/src/services/color/rgb_to_hsv' {
399
- import { HSV, RGB } from '@elastic/eui/src/services/color/color_types';
400
- export function rgbToHsv({ r, g, b }: RGB): HSV;
401
310
 
402
311
  }
403
- declare module '@elastic/eui/src/services/color/hex_to_hsv' {
404
- import { HEX, HSV } from '@elastic/eui/src/services/color/color_types';
405
- export function hexToHsv(hex: HEX): HSV;
406
-
407
- }
408
- declare module '@elastic/eui/src/services/color/hsv_to_rgb' {
409
- import { HSV, RGB } from '@elastic/eui/src/services/color/color_types';
410
- export function hsvToRgb({ h, s, v }: HSV): RGB;
411
-
412
- }
413
- declare module '@elastic/eui/src/services/color/rgb_to_hex' {
414
- export function rgbToHex(rgb: string): string;
415
-
416
- }
417
- declare module '@elastic/eui/src/services/color/hsv_to_hex' {
418
- import { HEX, HSV } from '@elastic/eui/src/services/color/color_types';
419
- export function hsvToHex({ h, s, v }: HSV): HEX;
420
-
421
- }
422
- declare module '@elastic/eui/src/services/color/luminance_and_contrast' {
423
- import { rgbDef } from '@elastic/eui/src/services/color/color_types';
424
- export function calculateLuminance(r: number, g: number, b: number): number;
425
- export function calculateContrast(rgb1: rgbDef, rgb2: rgbDef): number;
426
-
427
- }
428
- declare module '@elastic/eui/src/services/color/color_palette' {
429
- export const MID_COLOR_STOP = "#EBEFF5";
430
- /**
431
- * This function takes an array of colors and returns an array of interpolated
432
- * colors based on the number of steps/len needed for use in UI elements such as charts.
433
- * Derived from https://github.com/gka/palettes (Unlicensed)
434
- */
435
- export function colorPalette(
312
+ declare module '@elastic/eui/src/global_styling/variables/animations' {
313
+ import { CSSProperties } from 'react';
436
314
  /**
437
- * The main color code or array of codes
315
+ * A constant storing the `prefers-reduced-motion` media query
316
+ * so that when it is turned off, animations are not run.
438
317
  */
439
- colors: string[],
318
+ export const euiCanAnimate = "@media screen and (prefers-reduced-motion: no-preference)";
440
319
  /**
441
- * The number of colors in the resulting array (default 10)
320
+ * A constant storing the `prefers-reduced-motion` media query that will
321
+ * only apply the content if the setting is off (reduce).
442
322
  */
443
- len?: number,
323
+ export const euiCantAnimate = "@media screen and (prefers-reduced-motion: reduce)";
444
324
  /**
445
- * Forces color interpolation to be calculated separately for each half (default false)
325
+ * Speeds / Durations / Delays
446
326
  */
447
- diverging?: boolean,
327
+ export const EuiThemeAnimationSpeeds: readonly ["extraFast", "fast", "normal", "slow", "extraSlow"];
328
+ export type _EuiThemeAnimationSpeed = typeof EuiThemeAnimationSpeeds[number];
329
+ export type _EuiThemeAnimationSpeeds = Record<_EuiThemeAnimationSpeed, CSSProperties['animationDuration']>;
448
330
  /**
449
- * Uses a more static interpolation for non-continuous spectrums
331
+ * Easings / Timing functions
450
332
  */
451
- categorical?: boolean): string[];
333
+ export const EuiThemeAnimationEasings: readonly ["bounce", "resistance"];
334
+ export type _EuiThemeAnimationEasing = typeof EuiThemeAnimationEasings[number];
335
+ export type _EuiThemeAnimationEasings = Record<_EuiThemeAnimationEasing, CSSProperties['animationTimingFunction']>;
336
+ export type _EuiThemeAnimation = _EuiThemeAnimationEasings & _EuiThemeAnimationSpeeds;
452
337
 
453
338
  }
454
- declare module '@elastic/eui/src/services/color/eui_palettes' {
455
- export type EuiPalette = string[];
456
- export interface EuiPaletteColorBlindProps {
339
+ declare module '@elastic/eui/src/global_styling/variables/colors' {
340
+ import { ColorModeSwitch, StrictColorModeSwitch } from '@elastic/eui/src/services/theme/types';
341
+ /**
342
+ * Top 5 colors
343
+ */
344
+ export type _EuiThemeBrandColors = {
457
345
  /**
458
- * How many variations of the series is needed
346
+ * Main brand color and used for most **call to actions** like buttons and links.
459
347
  */
460
- rotations?: number;
348
+ primary: ColorModeSwitch;
461
349
  /**
462
- * Order similar colors as `group`s or just `append` each variation
350
+ * Pulls attention to key indicators like **notifications** or number of selections.
463
351
  */
464
- order?: 'append' | 'group';
352
+ accent: ColorModeSwitch;
465
353
  /**
466
- * Specifies if the direction of the color variations
354
+ * Used for **positive** messages/graphics and additive actions.
467
355
  */
468
- direction?: 'lighter' | 'darker' | 'both';
356
+ success: ColorModeSwitch;
469
357
  /**
470
- * Use the default sort order, or re-sort them based on the color wheel (natural)
358
+ * Used for **warnings** and actions that have a potential to be destructive.
471
359
  */
472
- sortBy?: 'default' | 'natural';
360
+ warning: ColorModeSwitch;
473
361
  /**
474
- * Shift the sorting order by a certain number when used in conjunction with `'natural'` `sortBy`.
475
- * Defaults to a number close to green.
362
+ * Used for **negative** messages/graphics like errors and destructive actions.
476
363
  */
477
- sortShift?: string;
478
- }
479
- export const euiPaletteColorBlind: ({ rotations, order, direction, sortBy, sortShift, }?: EuiPaletteColorBlindProps) => EuiPalette;
364
+ danger: ColorModeSwitch;
365
+ };
480
366
  /**
481
- * Color blind palette with text is meant for use when text is applied on top of the color.
482
- * It increases the brightness of the color to give the text more contrast.
367
+ * Every brand color must have a contrast computed text equivelant
483
368
  */
484
- export const euiPaletteColorBlindBehindText: (paletteProps?: EuiPaletteColorBlindProps) => string[];
485
- export const euiPaletteForLightBackground: () => EuiPalette;
486
- export const euiPaletteForDarkBackground: () => EuiPalette;
487
- export const euiPaletteForStatus: (steps: number) => EuiPalette;
488
- export const euiPaletteForTemperature: (steps: number) => EuiPalette;
489
- export const euiPaletteComplimentary: (steps: number) => EuiPalette;
490
- export const euiPaletteNegative: (steps: number) => EuiPalette;
491
- export const euiPalettePositive: (steps: number) => EuiPalette;
492
- export const euiPaletteCool: (steps: number) => EuiPalette;
493
- export const euiPaletteWarm: (steps: number) => EuiPalette;
494
- export const euiPaletteGray: (steps: number) => EuiPalette;
495
-
496
- }
497
- declare module '@elastic/eui/src/services/color/visualization_colors' {
498
- export const VISUALIZATION_COLORS: import ("@elastic/eui/src/services/color/eui_palettes").EuiPalette;
499
- export const DEFAULT_VISUALIZATION_COLOR: string;
500
-
501
- }
502
- declare module '@elastic/eui/src/components/color_picker/utils' {
503
- import chroma, { ColorSpaces } from 'chroma-js';
504
- import { ColorStop } from '@elastic/eui/src/components/color_picker/color_stops';
505
- export const getEventPosition: (location: {
506
- x: number;
507
- y: number;
508
- }, container: HTMLElement) => {
509
- left: number;
510
- top: number;
511
- width: number;
512
- height: number;
369
+ export type _EuiThemeBrandTextColors = {
370
+ /**
371
+ * Typically computed against `colors.primary`
372
+ */
373
+ primaryText: ColorModeSwitch;
374
+ /**
375
+ * Typically computed against `colors.accent`
376
+ */
377
+ accentText: ColorModeSwitch;
378
+ /**
379
+ * Typically computed against `colors.success`
380
+ */
381
+ successText: ColorModeSwitch;
382
+ /**
383
+ * Typically computed against `colors.warning`
384
+ */
385
+ warningText: ColorModeSwitch;
386
+ /**
387
+ * Typically computed against `colors.danger`
388
+ */
389
+ dangerText: ColorModeSwitch;
513
390
  };
514
- export const HEX_FALLBACK = "";
515
- export const HSV_FALLBACK: ColorSpaces['hsv'];
516
- export const RGB_FALLBACK: ColorSpaces['rgba'];
517
- export const RGB_JOIN = ", ";
518
- export const parseColor: (input?: string | null | undefined) => string | number[] | null;
519
- export const chromaValid: (color: string | number[]) => boolean;
520
- export const getChromaColor: (input?: string | null | undefined, allowOpacity?: boolean) => chroma.Color | null;
521
- export const getLinearGradient: (palette: string[] | ColorStop[]) => string;
522
- export const getFixedLinearGradient: (palette: string[] | ColorStop[]) => {
523
- color: string;
524
- width: string;
525
- }[];
526
-
527
- }
528
- declare module '@elastic/eui/src/components/form/range/utils' {
529
- export const EUI_THUMB_SIZE = 16;
530
- export const calculateThumbPosition: (value: number, min: number, max: number, width: number, thumbSize?: number) => number;
391
+ export type _EuiThemeShadeColors = {
392
+ /**
393
+ * Used as the background color of primary **page content and panels** including modals and flyouts.
394
+ */
395
+ emptyShade: ColorModeSwitch;
396
+ /**
397
+ * Used to lightly shade areas that contain **secondary content** or contain panel-like components.
398
+ */
399
+ lightestShade: ColorModeSwitch;
400
+ /**
401
+ * Used for most **borders** and dividers (horizontal rules).
402
+ */
403
+ lightShade: ColorModeSwitch;
404
+ /**
405
+ * The middle gray for all themes; this is the base for `colors.subdued`.
406
+ */
407
+ mediumShade: ColorModeSwitch;
408
+ /**
409
+ * Slightly subtle graphic color
410
+ */
411
+ darkShade: ColorModeSwitch;
412
+ /**
413
+ * Used as the **text** color and the background color for **inverted components** like tooltips and the control bar.
414
+ */
415
+ darkestShade: ColorModeSwitch;
416
+ /**
417
+ * The opposite of `emptyShade`
418
+ */
419
+ fullShade: ColorModeSwitch;
420
+ };
421
+ export type _EuiThemeTextColors = {
422
+ /**
423
+ * Computed against `colors.darkestShade`
424
+ */
425
+ text: ColorModeSwitch;
426
+ /**
427
+ * Computed against `colors.text`
428
+ */
429
+ title: ColorModeSwitch;
430
+ /**
431
+ * Computed against `colors.mediumShade`
432
+ */
433
+ subduedText: ColorModeSwitch;
434
+ /**
435
+ * Computed against `colors.primaryText`
436
+ */
437
+ link: ColorModeSwitch;
438
+ };
439
+ export type _EuiThemeSpecialColors = {
440
+ /**
441
+ * The background color for the **whole window (body)** and is a computed value of `colors.lightestShade`.
442
+ * Provides denominator (background) value for **contrast calculations**.
443
+ */
444
+ body: ColorModeSwitch;
445
+ /**
446
+ * Used to **highlight text** when matching against search strings
447
+ */
448
+ highlight: ColorModeSwitch;
449
+ /**
450
+ * Computed against `colors.darkestShade`
451
+ */
452
+ disabled: ColorModeSwitch;
453
+ /**
454
+ * Computed against `colors.disabled`
455
+ */
456
+ disabledText: ColorModeSwitch;
457
+ /**
458
+ * The base color for shadows that gets `transparentized`
459
+ * at a value based on the `colorMode` and then layered.
460
+ */
461
+ shadow: ColorModeSwitch;
462
+ };
463
+ export type _EuiThemeConstantColors = {
464
+ /**
465
+ * Purest **white**
466
+ */
467
+ ghost: string;
468
+ /**
469
+ * Purest **black**
470
+ */
471
+ ink: string;
472
+ };
473
+ export type _EuiThemeColorsMode = _EuiThemeBrandColors & _EuiThemeBrandTextColors & _EuiThemeShadeColors & _EuiThemeSpecialColors & _EuiThemeTextColors;
474
+ export type _EuiThemeColors = StrictColorModeSwitch<_EuiThemeColorsMode> & _EuiThemeConstantColors;
531
475
 
532
476
  }
533
- declare module '@elastic/eui/src/components/color_picker/color_stops/utils' {
534
- import { ColorStop } from '@elastic/eui/src/components/color_picker/color_stops/color_stop_thumb';
535
- export const removeStop: (colorStops: ColorStop[], index: number) => ColorStop[];
536
- export const addDefinedStop: (colorStops: ColorStop[], stop: ColorStop['stop'], color?: ColorStop['color']) => ColorStop[];
537
- export const addStop: (colorStops: ColorStop[], color: string | undefined, max: number) => ColorStop[];
538
- export const isColorInvalid: (color: string, showAlpha?: boolean) => boolean;
539
- export const isStopInvalid: (stop: ColorStop['stop']) => boolean;
540
- export const isInvalid: (colorStops: ColorStop[], showAlpha?: boolean) => boolean;
541
- export const calculateScale: (trackWidth: number) => number;
542
- export const getStopFromMouseLocation: (location: {
543
- x: number;
544
- y: number;
545
- }, ref: HTMLDivElement, min: number, max: number) => number;
546
- export const getPositionFromStop: (stop: ColorStop['stop'], ref: HTMLDivElement, min: number, max: number) => number;
547
-
548
- }
549
- declare module '@elastic/eui/src/components/icon/icon_map' {
550
- export const typeToPathMap: {
551
- accessibility: string;
552
- addDataApp: string;
553
- advancedSettingsApp: string;
554
- agentApp: string;
555
- aggregate: string;
556
- alert: string;
557
- analyzeEvent: string;
558
- annotation: string;
559
- apmApp: string;
560
- apmTrace: string;
561
- appSearchApp: string;
562
- apps: string;
563
- arrowDown: string;
564
- arrowLeft: string;
565
- arrowRight: string;
566
- arrowUp: string;
567
- arrowStart: string;
568
- arrowEnd: string;
569
- asterisk: string;
570
- auditbeatApp: string;
571
- beaker: string;
572
- bell: string;
573
- bellSlash: string;
574
- bolt: string;
575
- boxesHorizontal: string;
576
- boxesVertical: string;
577
- branch: string;
578
- branchUser: string;
579
- broom: string;
580
- brush: string;
581
- bug: string;
582
- bullseye: string;
583
- calendar: string;
584
- canvasApp: string;
585
- casesApp: string;
586
- check: string;
587
- checkInCircleFilled: string;
588
- cheer: string;
589
- classificationJob: string;
590
- clock: string;
591
- cloudDrizzle: string;
592
- cloudStormy: string;
593
- cloudSunny: string;
594
- cluster: string;
595
- codeApp: string;
596
- color: string;
597
- compute: string;
598
- console: string;
599
- consoleApp: string;
600
- container: string;
601
- continuityAbove: string;
602
- continuityAboveBelow: string;
603
- continuityBelow: string;
604
- continuityWithin: string;
605
- controlsHorizontal: string;
606
- controlsVertical: string;
607
- copy: string;
608
- copyClipboard: string;
609
- createAdvancedJob: string;
610
- createMultiMetricJob: string;
611
- createPopulationJob: string;
612
- createSingleMetricJob: string;
613
- cross: string;
614
- crossClusterReplicationApp: string;
615
- crossInACircleFilled: string;
616
- crosshairs: string;
617
- currency: string;
618
- cut: string;
619
- dashboardApp: string;
620
- dataVisualizer: string;
621
- database: string;
622
- desktop: string;
623
- devToolsApp: string;
624
- discoverApp: string;
625
- document: string;
626
- documentEdit: string;
627
- documentation: string;
628
- documents: string;
629
- dot: string;
630
- doubleArrowLeft: string;
631
- doubleArrowRight: string;
632
- download: string;
633
- editorAlignCenter: string;
634
- editorAlignLeft: string;
635
- editorAlignRight: string;
636
- editorBold: string;
637
- editorChecklist: string;
638
- editorCodeBlock: string;
639
- editorComment: string;
640
- editorDistributeHorizontal: string;
641
- editorDistributeVertical: string;
642
- editorHeading: string;
643
- editorItalic: string;
644
- editorItemAlignBottom: string;
645
- editorItemAlignCenter: string;
646
- editorItemAlignLeft: string;
647
- editorItemAlignMiddle: string;
648
- editorItemAlignRight: string;
649
- editorItemAlignTop: string;
650
- editorLink: string;
651
- editorOrderedList: string;
652
- editorPositionBottomLeft: string;
653
- editorPositionBottomRight: string;
654
- editorPositionTopLeft: string;
655
- editorPositionTopRight: string;
656
- editorRedo: string;
657
- editorStrike: string;
658
- editorTable: string;
659
- editorUnderline: string;
660
- editorUndo: string;
661
- editorUnorderedList: string;
662
- email: string;
663
- empty: string;
664
- emsApp: string;
665
- eql: string;
666
- eraser: string;
667
- exit: string;
668
- expand: string;
669
- expandMini: string;
670
- exportAction: string;
671
- eye: string;
672
- eyeClosed: string;
673
- faceHappy: string;
674
- faceNeutral: string;
675
- faceSad: string;
676
- filebeatApp: string;
677
- filter: string;
678
- flag: string;
679
- fleetApp: string;
680
- fold: string;
681
- folderCheck: string;
682
- folderClosed: string;
683
- folderExclamation: string;
684
- folderOpen: string;
685
- frameNext: string;
686
- framePrevious: string;
687
- fullScreen: string;
688
- fullScreenExit: string;
689
- function: string;
690
- gear: string;
691
- gisApp: string;
692
- glasses: string;
693
- globe: string;
694
- grab: string;
695
- grabHorizontal: string;
696
- graphApp: string;
697
- grid: string;
698
- grokApp: string;
699
- heart: string;
700
- heartbeatApp: string;
701
- heatmap: string;
702
- help: string;
703
- home: string;
704
- iInCircle: string;
705
- image: string;
706
- importAction: string;
707
- indexClose: string;
708
- indexEdit: string;
709
- indexFlush: string;
710
- indexManagementApp: string;
711
- indexMapping: string;
712
- indexOpen: string;
713
- indexPatternApp: string;
714
- indexRollupApp: string;
715
- indexRuntime: string;
716
- indexSettings: string;
717
- inputOutput: string;
718
- inspect: string;
719
- invert: string;
720
- ip: string;
721
- keyboard: string;
722
- kqlField: string;
723
- kqlFunction: string;
724
- kqlOperand: string;
725
- kqlSelector: string;
726
- kqlValue: string;
727
- kubernetesNode: string;
728
- kubernetesPod: string;
729
- layers: string;
730
- lensApp: string;
731
- lettering: string;
732
- lineDashed: string;
733
- lineDotted: string;
734
- lineSolid: string;
735
- link: string;
736
- list: string;
737
- listAdd: string;
738
- lock: string;
739
- lockOpen: string;
740
- logoAWS: string;
741
- logoAWSMono: string;
742
- logoAerospike: string;
743
- logoApache: string;
744
- logoAppSearch: string;
745
- logoAzure: string;
746
- logoAzureMono: string;
747
- logoBeats: string;
748
- logoBusinessAnalytics: string;
749
- logoCeph: string;
750
- logoCloud: string;
751
- logoCloudEnterprise: string;
752
- logoCode: string;
753
- logoCodesandbox: string;
754
- logoCouchbase: string;
755
- logoDocker: string;
756
- logoDropwizard: string;
757
- logoElastic: string;
758
- logoElasticStack: string;
759
- logoElasticsearch: string;
760
- logoEnterpriseSearch: string;
761
- logoEtcd: string;
762
- logoGCP: string;
763
- logoGCPMono: string;
764
- logoGithub: string;
765
- logoGmail: string;
766
- logoGolang: string;
767
- logoGoogleG: string;
768
- logoHAproxy: string;
769
- logoIBM: string;
770
- logoIBMMono: string;
771
- logoKafka: string;
772
- logoKibana: string;
773
- logoKubernetes: string;
774
- logoLogging: string;
775
- logoLogstash: string;
776
- logoMaps: string;
777
- logoMemcached: string;
778
- logoMetrics: string;
779
- logoMongodb: string;
780
- logoMySQL: string;
781
- logoNginx: string;
782
- logoObservability: string;
783
- logoOsquery: string;
784
- logoPhp: string;
785
- logoPostgres: string;
786
- logoPrometheus: string;
787
- logoRabbitmq: string;
788
- logoRedis: string;
789
- logoSecurity: string;
790
- logoSiteSearch: string;
791
- logoSketch: string;
792
- logoSlack: string;
793
- logoUptime: string;
794
- logoWebhook: string;
795
- logoWindows: string;
796
- logoWorkplaceSearch: string;
797
- logsApp: string;
798
- logstashFilter: string;
799
- logstashIf: string;
800
- logstashInput: string;
801
- logstashOutput: string;
802
- logstashQueue: string;
803
- machineLearningApp: string;
804
- magnet: string;
805
- magnifyWithExclamation: string;
806
- magnifyWithMinus: string;
807
- magnifyWithPlus: string;
808
- managementApp: string;
809
- mapMarker: string;
810
- memory: string;
811
- menu: string;
812
- menuDown: string;
813
- menuLeft: string;
814
- menuRight: string;
815
- menuUp: string;
816
- merge: string;
817
- metricbeatApp: string;
818
- metricsApp: string;
819
- minimize: string;
820
- minus: string;
821
- minusInCircle: string;
822
- minusInCircleFilled: string;
823
- mobile: string;
824
- monitoringApp: string;
825
- moon: string;
826
- namespace: string;
827
- nested: string;
828
- node: string;
829
- notebookApp: string;
830
- number: string;
831
- offline: string;
832
- online: string;
833
- outlierDetectionJob: string;
834
- package: string;
835
- packetbeatApp: string;
836
- pageSelect: string;
837
- pagesSelect: string;
838
- paperClip: string;
839
- partial: string;
840
- pause: string;
841
- payment: string;
842
- pencil: string;
843
- percent: string;
844
- pin: string;
845
- pinFilled: string;
846
- pipelineApp: string;
847
- play: string;
848
- playFilled: string;
849
- plus: string;
850
- plusInCircle: string;
851
- plusInCircleFilled: string;
852
- popout: string;
853
- push: string;
854
- questionInCircle: string;
855
- quote: string;
856
- recentlyViewedApp: string;
857
- refresh: string;
858
- regressionJob: string;
859
- reporter: string;
860
- reportingApp: string;
861
- returnKey: string;
862
- save: string;
863
- savedObjectsApp: string;
864
- scale: string;
865
- search: string;
866
- searchProfilerApp: string;
867
- securityAnalyticsApp: string;
868
- securityApp: string;
869
- securitySignal: string;
870
- securitySignalDetected: string;
871
- securitySignalResolved: string;
872
- sessionViewer: string;
873
- shard: string;
874
- share: string;
875
- snowflake: string;
876
- sortDown: string;
877
- sortLeft: string;
878
- sortRight: string;
879
- sortUp: string;
880
- sortable: string;
881
- spacesApp: string;
882
- sqlApp: string;
883
- starEmpty: string;
884
- starEmptySpace: string;
885
- starFilled: string;
886
- starFilledSpace: string;
887
- starMinusEmpty: string;
888
- starMinusFilled: string;
889
- starPlusEmpty: string;
890
- starPlusFilled: string;
891
- stats: string;
892
- stop: string;
893
- stopFilled: string;
894
- stopSlash: string;
895
- storage: string;
896
- string: string;
897
- submodule: string;
898
- sun: string;
899
- swatchInput: string;
900
- symlink: string;
901
- tableDensityCompact: string;
902
- tableDensityExpanded: string;
903
- tableDensityNormal: string;
904
- tableOfContents: string;
905
- tag: string;
906
- tear: string;
907
- temperature: string;
908
- timeline: string;
909
- timelionApp: string;
910
- timeRefresh: string;
911
- timeslider: string;
912
- training: string;
913
- trash: string;
914
- unfold: string;
915
- unlink: string;
916
- upgradeAssistantApp: string;
917
- uptimeApp: string;
918
- user: string;
919
- userAvatar: string;
920
- users: string;
921
- usersRolesApp: string;
922
- vector: string;
923
- videoPlayer: string;
924
- visArea: string;
925
- visAreaStacked: string;
926
- visBarHorizontal: string;
927
- visBarHorizontalStacked: string;
928
- visBarVertical: string;
929
- visBarVerticalStacked: string;
930
- visGauge: string;
931
- visGoal: string;
932
- visLine: string;
933
- visMapCoordinate: string;
934
- visMapRegion: string;
935
- visMetric: string;
936
- visPie: string;
937
- visTable: string;
938
- visTagCloud: string;
939
- visText: string;
940
- visTimelion: string;
941
- visVega: string;
942
- visVisualBuilder: string;
943
- visualizeApp: string;
944
- watchesApp: string;
945
- wordWrap: string;
946
- wordWrapDisabled: string;
947
- workplaceSearchApp: string;
948
- wrench: string;
949
- tokenAlias: string;
950
- tokenAnnotation: string;
951
- tokenArray: string;
952
- tokenBinary: string;
953
- tokenBoolean: string;
954
- tokenClass: string;
955
- tokenCompletionSuggester: string;
956
- tokenConstant: string;
957
- tokenDate: string;
958
- tokenDenseVector: string;
959
- tokenElement: string;
960
- tokenEnum: string;
961
- tokenEnumMember: string;
962
- tokenEvent: string;
963
- tokenException: string;
964
- tokenField: string;
965
- tokenFile: string;
966
- tokenFlattened: string;
967
- tokenFunction: string;
968
- tokenGeo: string;
969
- tokenHistogram: string;
970
- tokenInterface: string;
971
- tokenIP: string;
972
- tokenJoin: string;
973
- tokenKey: string;
974
- tokenKeyword: string;
975
- tokenMethod: string;
976
- tokenMetricCounter: string;
977
- tokenMetricGauge: string;
978
- tokenModule: string;
979
- tokenNamespace: string;
980
- tokenNested: string;
981
- tokenNull: string;
982
- tokenNumber: string;
983
- tokenObject: string;
984
- tokenOperator: string;
985
- tokenPackage: string;
986
- tokenParameter: string;
987
- tokenPercolator: string;
988
- tokenProperty: string;
989
- tokenRange: string;
990
- tokenRankFeature: string;
991
- tokenRankFeatures: string;
992
- tokenRepo: string;
993
- tokenSearchType: string;
994
- tokenShape: string;
995
- tokenString: string;
996
- tokenStruct: string;
997
- tokenSymbol: string;
998
- tokenTag: string;
999
- tokenText: string;
1000
- tokenTokenCount: string;
1001
- tokenVariable: string;
1002
- };
1003
-
1004
- }
1005
- declare module '@elastic/eui/src/components/icon/assets/empty' {
1006
- import * as React from 'react';
1007
- interface SVGRProps {
1008
- title?: string;
1009
- titleId?: string;
1010
- }
1011
- export const icon: ({ title, titleId, ...props }: React.SVGProps<SVGSVGElement> & SVGRProps) => JSX.Element;
1012
- export {};
1013
-
1014
- }
1015
- declare module '@elastic/eui/src/services/react' {
1016
- export function enqueueStateChange(fn: Function): void;
1017
-
1018
- }
1019
- declare module '@elastic/eui/src/components/icon/named_colors' {
1020
- export const COLORS: readonly ["default", "primary", "success", "accent", "warning", "danger", "text", "subdued", "ghost", "inherit"];
1021
- export type NamedColor = typeof COLORS[number];
1022
- export function isNamedColor(name: string): boolean;
1023
-
1024
- }
1025
- declare module '@elastic/eui/src/global_styling/mixins/_color' {
1026
- import { UseEuiTheme } from '@elastic/eui/src/services';
1027
- export const BACKGROUND_COLORS: readonly ["transparent", "plain", "subdued", "accent", "primary", "success", "warning", "danger"];
1028
- export type _EuiBackgroundColor = typeof BACKGROUND_COLORS[number];
1029
- export interface _EuiBackgroundColorOptions {
1030
- /**
1031
- * Use `opaque` for containers of unknown content.
1032
- * Use `transparent` for interactive states like hover and focus.
1033
- */
1034
- method?: 'opaque' | 'transparent';
1035
- }
1036
- export const euiBackgroundColor: ({ euiTheme, colorMode }: UseEuiTheme, color: _EuiBackgroundColor, { method }?: _EuiBackgroundColorOptions) => string;
1037
- export const useEuiBackgroundColor: (color: _EuiBackgroundColor, { method }?: _EuiBackgroundColorOptions) => string;
1038
- export const useEuiBackgroundColorCSS: () => {
1039
- transparent: import("@emotion/utils").SerializedStyles;
1040
- plain: import("@emotion/utils").SerializedStyles;
1041
- subdued: import("@emotion/utils").SerializedStyles;
1042
- accent: import("@emotion/utils").SerializedStyles;
1043
- primary: import("@emotion/utils").SerializedStyles;
1044
- success: import("@emotion/utils").SerializedStyles;
1045
- warning: import("@emotion/utils").SerializedStyles;
1046
- danger: import("@emotion/utils").SerializedStyles;
1047
- };
1048
-
1049
- }
1050
- declare module '@elastic/eui/src/global_styling/variables/animations' {
1051
- import { CSSProperties } from 'react';
1052
- /**
1053
- * A constant storing the `prefers-reduced-motion` media query
1054
- * so that when it is turned off, animations are not run.
1055
- */
1056
- export const euiCanAnimate = "@media screen and (prefers-reduced-motion: no-preference)";
1057
- /**
1058
- * A constant storing the `prefers-reduced-motion` media query that will
1059
- * only apply the content if the setting is off (reduce).
1060
- */
1061
- export const euiCantAnimate = "@media screen and (prefers-reduced-motion: reduce)";
1062
- /**
1063
- * Speeds / Durations / Delays
1064
- */
1065
- export const EuiThemeAnimationSpeeds: readonly ["extraFast", "fast", "normal", "slow", "extraSlow"];
1066
- export type _EuiThemeAnimationSpeed = typeof EuiThemeAnimationSpeeds[number];
1067
- export type _EuiThemeAnimationSpeeds = Record<_EuiThemeAnimationSpeed, CSSProperties['animationDuration']>;
1068
- /**
1069
- * Easings / Timing functions
1070
- */
1071
- export const EuiThemeAnimationEasings: readonly ["bounce", "resistance"];
1072
- export type _EuiThemeAnimationEasing = typeof EuiThemeAnimationEasings[number];
1073
- export type _EuiThemeAnimationEasings = Record<_EuiThemeAnimationEasing, CSSProperties['animationTimingFunction']>;
1074
- export type _EuiThemeAnimation = _EuiThemeAnimationEasings & _EuiThemeAnimationSpeeds;
1075
-
1076
- }
1077
- declare module '@elastic/eui/src/global_styling/variables/breakpoint' {
1078
- export const EuiThemeBreakpoints: readonly ["xs", "s", "m", "l", "xl"];
1079
- export type _EuiThemeBreakpoint = typeof EuiThemeBreakpoints[number];
1080
- export type _EuiThemeBreakpoints = {
1081
- [key in _EuiThemeBreakpoint]: number;
1082
- };
1083
-
1084
- }
1085
- declare module '@elastic/eui/src/global_styling/variables/borders' {
1086
- import { CSSProperties } from 'react';
1087
- import { ColorModeSwitch } from '@elastic/eui/src/services/theme/types';
1088
- export interface _EuiThemeBorderWidthValues {
1089
- /**
1090
- * Thinnest width for border
1091
- */
1092
- thin: CSSProperties['borderWidth'];
1093
- /**
1094
- * Thickest width for border
1095
- */
1096
- thick: CSSProperties['borderWidth'];
1097
- }
1098
- export interface _EuiThemeBorderRadiusValues {
1099
- /**
1100
- * Primary corner radius size
1101
- */
1102
- medium: CSSProperties['borderRadius'];
1103
- /**
1104
- * Small corner radius size
1105
- */
1106
- small: CSSProperties['borderRadius'];
1107
- }
1108
- export interface _EuiThemeBorderColorValues {
1109
- /**
1110
- * Color for all borders; Default is `colors.lightShade`
1111
- */
1112
- color: ColorModeSwitch;
1113
- }
1114
- export interface _EuiThemeBorderValues extends _EuiThemeBorderColorValues {
1115
- /**
1116
- * Varied thicknesses for borders
1117
- */
1118
- width: _EuiThemeBorderWidthValues;
1119
- /**
1120
- * Varied border radii
1121
- */
1122
- radius: _EuiThemeBorderRadiusValues;
1123
- }
1124
- export interface _EuiThemeBorderTypes {
1125
- /**
1126
- * Full `border` property string computed using `border.width.thin` and `border.color`
1127
- */
1128
- thin: CSSProperties['border'];
1129
- /**
1130
- * Full `border` property string computed using `border.width.thick` and `border.color`
1131
- */
1132
- thick: CSSProperties['border'];
1133
- /**
1134
- * Full editable style `border` property string computed using `border.width.thick` and `border.color`
1135
- */
1136
- editable: CSSProperties['border'];
1137
- }
1138
- export type _EuiThemeBorder = _EuiThemeBorderValues & _EuiThemeBorderTypes;
1139
-
1140
- }
1141
- declare module '@elastic/eui/src/global_styling/variables/colors' {
1142
- import { ColorModeSwitch, StrictColorModeSwitch } from '@elastic/eui/src/services/theme/types';
1143
- /**
1144
- * Top 5 colors
1145
- */
1146
- export type _EuiThemeBrandColors = {
1147
- /**
1148
- * Main brand color and used for most **call to actions** like buttons and links.
1149
- */
1150
- primary: ColorModeSwitch;
1151
- /**
1152
- * Pulls attention to key indicators like **notifications** or number of selections.
1153
- */
1154
- accent: ColorModeSwitch;
1155
- /**
1156
- * Used for **positive** messages/graphics and additive actions.
1157
- */
1158
- success: ColorModeSwitch;
1159
- /**
1160
- * Used for **warnings** and actions that have a potential to be destructive.
1161
- */
1162
- warning: ColorModeSwitch;
1163
- /**
1164
- * Used for **negative** messages/graphics like errors and destructive actions.
1165
- */
1166
- danger: ColorModeSwitch;
1167
- };
1168
- /**
1169
- * Every brand color must have a contrast computed text equivelant
1170
- */
1171
- export type _EuiThemeBrandTextColors = {
1172
- /**
1173
- * Typically computed against `colors.primary`
1174
- */
1175
- primaryText: ColorModeSwitch;
1176
- /**
1177
- * Typically computed against `colors.accent`
1178
- */
1179
- accentText: ColorModeSwitch;
1180
- /**
1181
- * Typically computed against `colors.success`
1182
- */
1183
- successText: ColorModeSwitch;
1184
- /**
1185
- * Typically computed against `colors.warning`
1186
- */
1187
- warningText: ColorModeSwitch;
1188
- /**
1189
- * Typically computed against `colors.danger`
1190
- */
1191
- dangerText: ColorModeSwitch;
1192
- };
1193
- export type _EuiThemeShadeColors = {
1194
- /**
1195
- * Used as the background color of primary **page content and panels** including modals and flyouts.
1196
- */
1197
- emptyShade: ColorModeSwitch;
1198
- /**
1199
- * Used to lightly shade areas that contain **secondary content** or contain panel-like components.
1200
- */
1201
- lightestShade: ColorModeSwitch;
1202
- /**
1203
- * Used for most **borders** and dividers (horizontal rules).
1204
- */
1205
- lightShade: ColorModeSwitch;
1206
- /**
1207
- * The middle gray for all themes; this is the base for `colors.subdued`.
1208
- */
1209
- mediumShade: ColorModeSwitch;
1210
- /**
1211
- * Slightly subtle graphic color
1212
- */
1213
- darkShade: ColorModeSwitch;
1214
- /**
1215
- * Used as the **text** color and the background color for **inverted components** like tooltips and the control bar.
1216
- */
1217
- darkestShade: ColorModeSwitch;
1218
- /**
1219
- * The opposite of `emptyShade`
1220
- */
1221
- fullShade: ColorModeSwitch;
1222
- };
1223
- export type _EuiThemeTextColors = {
1224
- /**
1225
- * Computed against `colors.darkestShade`
1226
- */
1227
- text: ColorModeSwitch;
1228
- /**
1229
- * Computed against `colors.text`
1230
- */
1231
- title: ColorModeSwitch;
1232
- /**
1233
- * Computed against `colors.mediumShade`
1234
- */
1235
- subduedText: ColorModeSwitch;
1236
- /**
1237
- * Computed against `colors.primaryText`
1238
- */
1239
- link: ColorModeSwitch;
1240
- };
1241
- export type _EuiThemeSpecialColors = {
1242
- /**
1243
- * The background color for the **whole window (body)** and is a computed value of `colors.lightestShade`.
1244
- * Provides denominator (background) value for **contrast calculations**.
1245
- */
1246
- body: ColorModeSwitch;
1247
- /**
1248
- * Used to **highlight text** when matching against search strings
1249
- */
1250
- highlight: ColorModeSwitch;
1251
- /**
1252
- * Computed against `colors.darkestShade`
1253
- */
1254
- disabled: ColorModeSwitch;
1255
- /**
1256
- * Computed against `colors.disabled`
1257
- */
1258
- disabledText: ColorModeSwitch;
1259
- /**
1260
- * The base color for shadows that gets `transparentized`
1261
- * at a value based on the `colorMode` and then layered.
1262
- */
1263
- shadow: ColorModeSwitch;
1264
- };
1265
- export type _EuiThemeConstantColors = {
1266
- /**
1267
- * Purest **white**
1268
- */
1269
- ghost: string;
1270
- /**
1271
- * Purest **black**
1272
- */
1273
- ink: string;
1274
- };
1275
- export type _EuiThemeColorsMode = _EuiThemeBrandColors & _EuiThemeBrandTextColors & _EuiThemeShadeColors & _EuiThemeSpecialColors & _EuiThemeTextColors;
1276
- export type _EuiThemeColors = StrictColorModeSwitch<_EuiThemeColorsMode> & _EuiThemeConstantColors;
1277
-
1278
- }
1279
- declare module '@elastic/eui/src/global_styling/variables/size' {
1280
- export type _EuiThemeBase = number;
1281
- export const EuiThemeSizes: readonly ["xxs", "xs", "s", "m", "base", "l", "xl", "xxl", "xxxl", "xxxxl"];
1282
- export type _EuiThemeSize = typeof EuiThemeSizes[number];
1283
- export type _EuiThemeSizes = Record<_EuiThemeSize, string>;
477
+ declare module '@elastic/eui/src/global_styling/variables/size' {
478
+ export type _EuiThemeBase = number;
479
+ export const EuiThemeSizes: readonly ["xxs", "xs", "s", "m", "base", "l", "xl", "xxl", "xxxl", "xxxxl"];
480
+ export type _EuiThemeSize = typeof EuiThemeSizes[number];
481
+ export type _EuiThemeSizes = Record<_EuiThemeSize, string>;
1284
482
 
1285
483
  }
1286
484
  declare module '@elastic/eui/src/global_styling/variables/typography' {
@@ -1379,77 +577,214 @@ declare module '@elastic/eui/src/global_styling/variables/states' {
1379
577
  }
1380
578
 
1381
579
  }
1382
- declare module '@elastic/eui/src/global_styling/variables/levels' {
1383
- import { CSSProperties } from 'react';
580
+ declare module '@elastic/eui/src/global_styling/variables/levels' {
581
+ import { CSSProperties } from 'react';
582
+ /**
583
+ * Z-Index
584
+ *
585
+ * Remember that z-index is relative to parent and based on the stacking context.
586
+ * z-indexes only compete against other z-indexes when they exist as children of
587
+ * that shared parent.
588
+ *
589
+ * That means a popover with a settings of 2, will still show above a modal
590
+ * with a setting of 100, if it is within that modal and not besides it.
591
+ *
592
+ * Generally that means it's a good idea to consider things added to this file
593
+ * as competitive only as siblings.
594
+ *
595
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Positioning/Understanding_z_index/The_stacking_context
596
+ */
597
+ export const EuiThemeLevels: readonly ["toast", "modal", "mask", "navigation", "menu", "header", "flyout", "maskBelowHeader", "content"];
598
+ export type _EuiThemeLevel = typeof EuiThemeLevels[number];
599
+ export type _EuiThemeLevels = Record<_EuiThemeLevel, NonNullable<CSSProperties['zIndex']>>;
600
+
601
+ }
602
+ declare module '@elastic/eui/src/services/theme/types' {
603
+ import { RecursivePartial, ValueOf } from '@elastic/eui/src/components/common';
604
+ import { _EuiThemeAnimation } from '@elastic/eui/src/global_styling/variables/animations';
605
+ import { _EuiThemeBreakpoints } from '@elastic/eui/src/global_styling/variables/breakpoint';
606
+ import { _EuiThemeBorder } from '@elastic/eui/src/global_styling/variables/borders';
607
+ import { _EuiThemeColors } from '@elastic/eui/src/global_styling/variables/colors';
608
+ import { _EuiThemeBase, _EuiThemeSizes } from '@elastic/eui/src/global_styling/variables/size';
609
+ import { _EuiThemeFont } from '@elastic/eui/src/global_styling/variables/typography';
610
+ import { _EuiThemeFocus } from '@elastic/eui/src/global_styling/variables/states';
611
+ import { _EuiThemeLevels } from '@elastic/eui/src/global_styling/variables/levels';
612
+ export const COLOR_MODES_STANDARD: {
613
+ readonly light: "LIGHT";
614
+ readonly dark: "DARK";
615
+ };
616
+ export const COLOR_MODES_INVERSE: "INVERSE";
617
+ export type EuiThemeColorModeInverse = typeof COLOR_MODES_INVERSE;
618
+ export type EuiThemeColorModeStandard = ValueOf<typeof COLOR_MODES_STANDARD>;
619
+ export type EuiThemeColorMode = 'light' | 'dark' | EuiThemeColorModeStandard | 'inverse' | EuiThemeColorModeInverse;
620
+ export type ColorModeSwitch<T = string> = {
621
+ [key in EuiThemeColorModeStandard]: T;
622
+ } | T;
623
+ export type StrictColorModeSwitch<T = string> = {
624
+ [key in EuiThemeColorModeStandard]: T;
625
+ };
626
+ export type EuiThemeShape = {
627
+ colors: _EuiThemeColors;
628
+ base: _EuiThemeBase;
629
+ size: _EuiThemeSizes;
630
+ font: _EuiThemeFont;
631
+ border: _EuiThemeBorder;
632
+ focus: _EuiThemeFocus;
633
+ animation: _EuiThemeAnimation;
634
+ breakpoint: _EuiThemeBreakpoints;
635
+ levels: _EuiThemeLevels;
636
+ };
637
+ export type EuiThemeSystem<T = {}> = {
638
+ root: EuiThemeShape & T;
639
+ model: EuiThemeShape & T;
640
+ key: string;
641
+ };
642
+ export type EuiThemeModifications<T = {}> = RecursivePartial<EuiThemeShape & T>;
643
+ export type ComputedThemeShape<T, P = string | number | bigint | boolean | null | undefined> = T extends P | ColorModeSwitch<infer X> ? T extends ColorModeSwitch<X> ? X extends P ? X : {
644
+ [K in keyof (X & Exclude<T, keyof X | keyof StrictColorModeSwitch>)]: ComputedThemeShape<(X & Exclude<T, keyof X | keyof StrictColorModeSwitch>)[K], P>;
645
+ } : T : {
646
+ [K in keyof T]: ComputedThemeShape<T[K], P>;
647
+ };
648
+ export type EuiThemeComputed<T = {}> = ComputedThemeShape<EuiThemeShape & T> & {
649
+ themeName: string;
650
+ };
651
+
652
+ }
653
+ declare module '@elastic/eui/src/global_styling/variables/borders' {
654
+ import { CSSProperties } from 'react';
655
+ import { ColorModeSwitch } from '@elastic/eui/src/services/theme/types';
656
+ export interface _EuiThemeBorderWidthValues {
657
+ /**
658
+ * Thinnest width for border
659
+ */
660
+ thin: CSSProperties['borderWidth'];
661
+ /**
662
+ * Thickest width for border
663
+ */
664
+ thick: CSSProperties['borderWidth'];
665
+ }
666
+ export interface _EuiThemeBorderRadiusValues {
667
+ /**
668
+ * Primary corner radius size
669
+ */
670
+ medium: CSSProperties['borderRadius'];
671
+ /**
672
+ * Small corner radius size
673
+ */
674
+ small: CSSProperties['borderRadius'];
675
+ }
676
+ export interface _EuiThemeBorderColorValues {
677
+ /**
678
+ * Color for all borders; Default is `colors.lightShade`
679
+ */
680
+ color: ColorModeSwitch;
681
+ }
682
+ export interface _EuiThemeBorderValues extends _EuiThemeBorderColorValues {
683
+ /**
684
+ * Varied thicknesses for borders
685
+ */
686
+ width: _EuiThemeBorderWidthValues;
687
+ /**
688
+ * Varied border radii
689
+ */
690
+ radius: _EuiThemeBorderRadiusValues;
691
+ }
692
+ export interface _EuiThemeBorderTypes {
693
+ /**
694
+ * Full `border` property string computed using `border.width.thin` and `border.color`
695
+ */
696
+ thin: CSSProperties['border'];
697
+ /**
698
+ * Full `border` property string computed using `border.width.thick` and `border.color`
699
+ */
700
+ thick: CSSProperties['border'];
701
+ /**
702
+ * Full editable style `border` property string computed using `border.width.thick` and `border.color`
703
+ */
704
+ editable: CSSProperties['border'];
705
+ }
706
+ export type _EuiThemeBorder = _EuiThemeBorderValues & _EuiThemeBorderTypes;
707
+
708
+ }
709
+ declare module '@elastic/eui/src/global_styling/variables/shadow' {
710
+ export const EuiThemeShadowSizes: readonly ["xs", "s", "m", "l", "xl"];
711
+ export type _EuiThemeShadowSize = typeof EuiThemeShadowSizes[number];
712
+ /**
713
+ * Shadow t-shirt sizes descriptions
714
+ */
715
+ export const _EuiShadowSizesDescriptions: Record<_EuiThemeShadowSize, string>;
716
+ export interface _EuiThemeShadowCustomColor {
717
+ color?: string;
718
+ property?: 'box-shadow' | 'filter';
719
+ }
720
+
721
+ }
722
+ declare module '@elastic/eui/src/global_styling/variables' {
723
+ export * from '@elastic/eui/src/global_styling/variables/animations';
724
+ export * from '@elastic/eui/src/global_styling/variables/borders';
725
+ export * from '@elastic/eui/src/global_styling/variables/breakpoint';
726
+ export * from '@elastic/eui/src/global_styling/variables/colors';
727
+ export * from '@elastic/eui/src/global_styling/variables/levels';
728
+ export * from '@elastic/eui/src/global_styling/variables/size';
729
+ export * from '@elastic/eui/src/global_styling/variables/shadow';
730
+ export * from '@elastic/eui/src/global_styling/variables/states';
731
+ export * from '@elastic/eui/src/global_styling/variables/typography';
732
+
733
+ }
734
+ declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_breakpoint' {
735
+ import { _EuiThemeBreakpoints } from '@elastic/eui/src/global_styling/variables';
736
+ export const breakpoint: _EuiThemeBreakpoints;
737
+
738
+ }
739
+ declare module '@elastic/eui/src/services/breakpoint/breakpoint' {
740
+ import { _EuiThemeBreakpoint, _EuiThemeBreakpoints } from '@elastic/eui/src/global_styling/variables/breakpoint';
741
+ export type EuiBreakpointSize = _EuiThemeBreakpoint;
742
+ export type EuiBreakpoints = _EuiThemeBreakpoints;
743
+ export const BREAKPOINTS: _EuiThemeBreakpoints;
744
+ export const BREAKPOINT_KEYS: ("s" | "xs" | "m" | "l" | "xl")[];
1384
745
  /**
1385
- * Z-Index
746
+ * Given the current `width` and an object of `EuiBreakpoints`,
747
+ * this function returns the string that is the name of the breakpoint key
748
+ * that is less than or equal to the width
1386
749
  *
1387
- * Remember that z-index is relative to parent and based on the stacking context.
1388
- * z-indexes only compete against other z-indexes when they exist as children of
1389
- * that shared parent.
750
+ * @param {number} width Can either be the full window width or any width
751
+ * @param {EuiBreakpoints} breakpoints An object with keys for sizing and values for minimum width
752
+ * @returns {string | undefined} Name of the breakpoint key or `undefined` if a key doesn't exist
753
+ */
754
+ export function getBreakpoint(width: number, breakpoints?: EuiBreakpoints): EuiBreakpointSize | undefined;
755
+ /**
756
+ * Given the current `width` and a max breakpoint key,
757
+ * this function returns true or false if the `width` falls within the max
758
+ * breakpoint or any breakpoints below
1390
759
  *
1391
- * That means a popover with a settings of 2, will still show above a modal
1392
- * with a setting of 100, if it is within that modal and not besides it.
760
+ * @param {number} width Can either be the full window width or any width
761
+ * @param {EuiBreakpointSize | number} max The named breakpoint or custom number to check against
762
+ * @param {EuiBreakpoints} breakpoints An object with keys for sizing and values for minimum width
763
+ * @returns {boolean} Will return `false` if it can't find a value for the `max` breakpoint
764
+ */
765
+ export function isWithinMaxBreakpoint(width: number, max: EuiBreakpointSize | number, breakpoints?: EuiBreakpoints): boolean;
766
+ /**
767
+ * Given the current `width` and a min breakpoint key,
768
+ * this function returns true or false if the `width` falls within the min
769
+ * breakpoint or any breakpoints above
1393
770
  *
1394
- * Generally that means it's a good idea to consider things added to this file
1395
- * as competitive only as siblings.
771
+ * @param {number} width Can either be the full window width or any width
772
+ * @param {EuiBreakpointSize | number} min The named breakpoint or custom number to check against
773
+ * @param {EuiBreakpoints} breakpoints An object with keys for sizing and values for minimum width
774
+ * @returns {boolean} Will return `false` if it can't find a value for the `min` breakpoint
775
+ */
776
+ export function isWithinMinBreakpoint(width: number, min: EuiBreakpointSize | number, breakpoints?: EuiBreakpoints): boolean;
777
+ /**
778
+ * Given the current `width` and an array of breakpoint keys,
779
+ * this function returns true or false if the `width` falls within
780
+ * any of the named breakpoints
1396
781
  *
1397
- * https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Positioning/Understanding_z_index/The_stacking_context
782
+ * @param {number} width Can either be the full window width or any width
783
+ * @param {EuiBreakpointSize[]} sizes An array of named breakpoints
784
+ * @param {EuiBreakpoints} breakpoints An object with keys for sizing and values for minimum width
785
+ * @returns {boolean} Returns `true` if current breakpoint name is included in `sizes`
1398
786
  */
1399
- export const EuiThemeLevels: readonly ["toast", "modal", "mask", "navigation", "menu", "header", "flyout", "maskBelowHeader", "content"];
1400
- export type _EuiThemeLevel = typeof EuiThemeLevels[number];
1401
- export type _EuiThemeLevels = Record<_EuiThemeLevel, NonNullable<CSSProperties['zIndex']>>;
1402
-
1403
- }
1404
- declare module '@elastic/eui/src/services/theme/types' {
1405
- import { RecursivePartial, ValueOf } from '@elastic/eui/src/components/common';
1406
- import { _EuiThemeAnimation } from '@elastic/eui/src/global_styling/variables/animations';
1407
- import { _EuiThemeBreakpoints } from '@elastic/eui/src/global_styling/variables/breakpoint';
1408
- import { _EuiThemeBorder } from '@elastic/eui/src/global_styling/variables/borders';
1409
- import { _EuiThemeColors } from '@elastic/eui/src/global_styling/variables/colors';
1410
- import { _EuiThemeBase, _EuiThemeSizes } from '@elastic/eui/src/global_styling/variables/size';
1411
- import { _EuiThemeFont } from '@elastic/eui/src/global_styling/variables/typography';
1412
- import { _EuiThemeFocus } from '@elastic/eui/src/global_styling/variables/states';
1413
- import { _EuiThemeLevels } from '@elastic/eui/src/global_styling/variables/levels';
1414
- export const COLOR_MODES_STANDARD: {
1415
- readonly light: "LIGHT";
1416
- readonly dark: "DARK";
1417
- };
1418
- export const COLOR_MODES_INVERSE: "INVERSE";
1419
- export type EuiThemeColorModeInverse = typeof COLOR_MODES_INVERSE;
1420
- export type EuiThemeColorModeStandard = ValueOf<typeof COLOR_MODES_STANDARD>;
1421
- export type EuiThemeColorMode = 'light' | 'dark' | EuiThemeColorModeStandard | 'inverse' | EuiThemeColorModeInverse;
1422
- export type ColorModeSwitch<T = string> = {
1423
- [key in EuiThemeColorModeStandard]: T;
1424
- } | T;
1425
- export type StrictColorModeSwitch<T = string> = {
1426
- [key in EuiThemeColorModeStandard]: T;
1427
- };
1428
- export type EuiThemeShape = {
1429
- colors: _EuiThemeColors;
1430
- base: _EuiThemeBase;
1431
- size: _EuiThemeSizes;
1432
- font: _EuiThemeFont;
1433
- border: _EuiThemeBorder;
1434
- focus: _EuiThemeFocus;
1435
- animation: _EuiThemeAnimation;
1436
- breakpoint: _EuiThemeBreakpoints;
1437
- levels: _EuiThemeLevels;
1438
- };
1439
- export type EuiThemeSystem<T = {}> = {
1440
- root: EuiThemeShape & T;
1441
- model: EuiThemeShape & T;
1442
- key: string;
1443
- };
1444
- export type EuiThemeModifications<T = {}> = RecursivePartial<EuiThemeShape & T>;
1445
- export type ComputedThemeShape<T, P = string | number | bigint | boolean | null | undefined> = T extends P | ColorModeSwitch<infer X> ? T extends ColorModeSwitch<X> ? X extends P ? X : {
1446
- [K in keyof (X & Exclude<T, keyof X | keyof StrictColorModeSwitch>)]: ComputedThemeShape<(X & Exclude<T, keyof X | keyof StrictColorModeSwitch>)[K], P>;
1447
- } : T : {
1448
- [K in keyof T]: ComputedThemeShape<T[K], P>;
1449
- };
1450
- export type EuiThemeComputed<T = {}> = ComputedThemeShape<EuiThemeShape & T> & {
1451
- themeName: string;
1452
- };
787
+ export function isWithinBreakpoints(width: number, sizes: EuiBreakpointSize[], breakpoints?: EuiBreakpoints): boolean;
1453
788
 
1454
789
  }
1455
790
  declare module '@elastic/eui/src/services/theme/utils' {
@@ -1489,201 +824,810 @@ declare module '@elastic/eui/src/services/theme/utils' {
1489
824
  [key: string]: any;
1490
825
  }, _path: string, value: any) => boolean;
1491
826
  /**
1492
- * Creates a class to store the `computer` method and its eventual parameters.
1493
- * Allows for on-demand computation with up-to-date parameters via `getValue` method.
1494
- * @constructor
1495
- * @param {function} computer - Function to be computed
1496
- * @param {string | array} dependencies - Dependencies passed to the `computer` as parameters
827
+ * Creates a class to store the `computer` method and its eventual parameters.
828
+ * Allows for on-demand computation with up-to-date parameters via `getValue` method.
829
+ * @constructor
830
+ * @param {function} computer - Function to be computed
831
+ * @param {string | array} dependencies - Dependencies passed to the `computer` as parameters
832
+ */
833
+ export class Computed<T> {
834
+ computer: (...values: any[]) => T;
835
+ dependencies: string | string[];
836
+ constructor(computer: (...values: any[]) => T, dependencies?: string | string[]);
837
+ /**
838
+ * Executes the `computer` method with the current state of the theme
839
+ * by taking into account previously computed values and modifications.
840
+ * @param {Proxy | object} base - Computed or uncomputed theme
841
+ * @param {Proxy | object} modifications - Theme value overrides
842
+ * @param {object} working - Partially computed theme
843
+ * @param {string} colorMode - `light` or `dark`
844
+ */
845
+ getValue(base: EuiThemeSystem | EuiThemeShape, modifications: import ("@elastic/eui").RecursivePartial<EuiThemeShape> | undefined, working: EuiThemeComputed, colorMode: EuiThemeColorModeStandard): T;
846
+ }
847
+ /**
848
+ * Returns a Class (`Computed`) that stores the arbitrary computer method
849
+ * and references to its optional dependecies.
850
+ * @param {function} computer - Arbitrary method to be called at compute time.
851
+ * @param {string | array} dependencies - Values that will be provided to `computer` at compute time.
852
+ */
853
+ export function computed<T>(computer: (value: EuiThemeComputed) => T): T;
854
+ export function computed<T>(computer: (value: any[]) => T, dependencies: string[]): T;
855
+ export function computed<T>(computer: (value: any) => T, dependencies: string): T;
856
+ /**
857
+ * Takes an uncomputed theme, and computes and returns all values taking
858
+ * into consideration value overrides and configured color mode.
859
+ * Overrides take precedence, and only values in the current color mode
860
+ * are computed and returned.
861
+ * @param {Proxy} base - Object to transform into Proxy
862
+ * @param {Proxy | object} over - Unique identifier or name
863
+ * @param {string} colorMode - `light` or `dark`
864
+ */
865
+ export const getComputed: <T = EuiThemeShape>(base: EuiThemeSystem<T>, over: Partial<EuiThemeSystem<T>>, colorMode: EuiThemeColorModeStandard) => EuiThemeComputed<T>;
866
+ /**
867
+ * Builds a Proxy with a custom `handler` designed to self-reference values
868
+ * and prevent arbitrary value overrides.
869
+ * @param {object} model - Object to transform into Proxy
870
+ * @param {string} key - Unique identifier or name
871
+ */
872
+ export const buildTheme: <T extends {}>(model: T, key: string) => {
873
+ model: T;
874
+ root: T;
875
+ key: string;
876
+ };
877
+ /**
878
+ * Deeply merges two objects, using `source` values whenever possible.
879
+ * @param {object} _target - Object with fallback values
880
+ * @param {object} source - Object with desired values
881
+ */
882
+ export const mergeDeep: (_target: {
883
+ [key: string]: any;
884
+ }, source?: {
885
+ [key: string]: any;
886
+ }) => {
887
+ [key: string]: any;
888
+ };
889
+
890
+ }
891
+ declare module '@elastic/eui/src/services/color/is_color_dark' {
892
+ /**
893
+ * This function calculates if the specified color is "dark", which usually means
894
+ * you need light text if you use it as a background color to fulfill WCAG contrast
895
+ * requirement.
896
+ * The color must be specified via its red, green and blue value in the range of
897
+ * 0 to 255.
898
+ * The formula is based on this Stackoverflow answer: https://stackoverflow.com/a/3943023
899
+ * which itself is based upon the WCAG recommendation for color contrast.
900
+ *
901
+ * @param {number} red The red component in the range 0 to 255
902
+ * @param {number} green The green component in the range 0 to 255
903
+ * @param {number} blue The blue component in the range 0 to 255
904
+ * @returns {boolean} True if the color is dark, false otherwise.
905
+ */
906
+ export function isColorDark(red: number, green: number, blue: number): boolean;
907
+
908
+ }
909
+ declare module '@elastic/eui/src/services/color/is_valid_hex' {
910
+ export function isValidHex(hex: string): boolean;
911
+
912
+ }
913
+ declare module '@elastic/eui/src/services/color/color_types' {
914
+ export type rgbDef = [number, number, number];
915
+ export interface HSV {
916
+ h: number;
917
+ s: number;
918
+ v: number;
919
+ }
920
+ export interface RGB {
921
+ r: number;
922
+ g: number;
923
+ b: number;
924
+ }
925
+ export type HEX = string;
926
+
927
+ }
928
+ declare module '@elastic/eui/src/services/color/hex_to_rgb' {
929
+ import { rgbDef } from '@elastic/eui/src/services/color/color_types';
930
+ export function hexToRgb(hex: string): rgbDef;
931
+
932
+ }
933
+ declare module '@elastic/eui/src/services/color/rgb_to_hsv' {
934
+ import { HSV, RGB } from '@elastic/eui/src/services/color/color_types';
935
+ export function rgbToHsv({ r, g, b }: RGB): HSV;
936
+
937
+ }
938
+ declare module '@elastic/eui/src/services/color/hex_to_hsv' {
939
+ import { HEX, HSV } from '@elastic/eui/src/services/color/color_types';
940
+ export function hexToHsv(hex: HEX): HSV;
941
+
942
+ }
943
+ declare module '@elastic/eui/src/services/color/hsv_to_rgb' {
944
+ import { HSV, RGB } from '@elastic/eui/src/services/color/color_types';
945
+ export function hsvToRgb({ h, s, v }: HSV): RGB;
946
+
947
+ }
948
+ declare module '@elastic/eui/src/services/color/rgb_to_hex' {
949
+ export function rgbToHex(rgb: string): string;
950
+
951
+ }
952
+ declare module '@elastic/eui/src/services/color/hsv_to_hex' {
953
+ import { HEX, HSV } from '@elastic/eui/src/services/color/color_types';
954
+ export function hsvToHex({ h, s, v }: HSV): HEX;
955
+
956
+ }
957
+ declare module '@elastic/eui/src/services/color/luminance_and_contrast' {
958
+ import { rgbDef } from '@elastic/eui/src/services/color/color_types';
959
+ export function calculateLuminance(r: number, g: number, b: number): number;
960
+ export function calculateContrast(rgb1: rgbDef, rgb2: rgbDef): number;
961
+
962
+ }
963
+ declare module '@elastic/eui/src/services/color/color_palette' {
964
+ export const MID_COLOR_STOP = "#EBEFF5";
965
+ /**
966
+ * This function takes an array of colors and returns an array of interpolated
967
+ * colors based on the number of steps/len needed for use in UI elements such as charts.
968
+ * Derived from https://github.com/gka/palettes (Unlicensed)
969
+ */
970
+ export function colorPalette(
971
+ /**
972
+ * The main color code or array of codes
1497
973
  */
1498
- export class Computed<T> {
1499
- computer: (...values: any[]) => T;
1500
- dependencies: string | string[];
1501
- constructor(computer: (...values: any[]) => T, dependencies?: string | string[]);
1502
- /**
1503
- * Executes the `computer` method with the current state of the theme
1504
- * by taking into account previously computed values and modifications.
1505
- * @param {Proxy | object} base - Computed or uncomputed theme
1506
- * @param {Proxy | object} modifications - Theme value overrides
1507
- * @param {object} working - Partially computed theme
1508
- * @param {string} colorMode - `light` or `dark`
1509
- */
1510
- getValue(base: EuiThemeSystem | EuiThemeShape, modifications: import ("@elastic/eui").RecursivePartial<EuiThemeShape> | undefined, working: EuiThemeComputed, colorMode: EuiThemeColorModeStandard): T;
1511
- }
974
+ colors: string[],
1512
975
  /**
1513
- * Returns a Class (`Computed`) that stores the arbitrary computer method
1514
- * and references to its optional dependecies.
1515
- * @param {function} computer - Arbitrary method to be called at compute time.
1516
- * @param {string | array} dependencies - Values that will be provided to `computer` at compute time.
976
+ * The number of colors in the resulting array (default 10)
1517
977
  */
1518
- export function computed<T>(computer: (value: EuiThemeComputed) => T): T;
1519
- export function computed<T>(computer: (value: any[]) => T, dependencies: string[]): T;
1520
- export function computed<T>(computer: (value: any) => T, dependencies: string): T;
978
+ len?: number,
1521
979
  /**
1522
- * Takes an uncomputed theme, and computes and returns all values taking
1523
- * into consideration value overrides and configured color mode.
1524
- * Overrides take precedence, and only values in the current color mode
1525
- * are computed and returned.
1526
- * @param {Proxy} base - Object to transform into Proxy
1527
- * @param {Proxy | object} over - Unique identifier or name
1528
- * @param {string} colorMode - `light` or `dark`
980
+ * Forces color interpolation to be calculated separately for each half (default false)
1529
981
  */
1530
- export const getComputed: <T = EuiThemeShape>(base: EuiThemeSystem<T>, over: Partial<EuiThemeSystem<T>>, colorMode: EuiThemeColorModeStandard) => EuiThemeComputed<T>;
982
+ diverging?: boolean,
1531
983
  /**
1532
- * Builds a Proxy with a custom `handler` designed to self-reference values
1533
- * and prevent arbitrary value overrides.
1534
- * @param {object} model - Object to transform into Proxy
1535
- * @param {string} key - Unique identifier or name
984
+ * Uses a more static interpolation for non-continuous spectrums
1536
985
  */
1537
- export const buildTheme: <T extends {}>(model: T, key: string) => {
1538
- model: T;
1539
- root: T;
1540
- key: string;
1541
- };
986
+ categorical?: boolean): string[];
987
+
988
+ }
989
+ declare module '@elastic/eui/src/services/color/eui_palettes' {
990
+ export type EuiPalette = string[];
991
+ export interface EuiPaletteColorBlindProps {
992
+ /**
993
+ * How many variations of the series is needed
994
+ */
995
+ rotations?: number;
996
+ /**
997
+ * Order similar colors as `group`s or just `append` each variation
998
+ */
999
+ order?: 'append' | 'group';
1000
+ /**
1001
+ * Specifies if the direction of the color variations
1002
+ */
1003
+ direction?: 'lighter' | 'darker' | 'both';
1004
+ /**
1005
+ * Use the default sort order, or re-sort them based on the color wheel (natural)
1006
+ */
1007
+ sortBy?: 'default' | 'natural';
1008
+ /**
1009
+ * Shift the sorting order by a certain number when used in conjunction with `'natural'` `sortBy`.
1010
+ * Defaults to a number close to green.
1011
+ */
1012
+ sortShift?: string;
1013
+ }
1014
+ export const euiPaletteColorBlind: ({ rotations, order, direction, sortBy, sortShift, }?: EuiPaletteColorBlindProps) => EuiPalette;
1542
1015
  /**
1543
- * Deeply merges two objects, using `source` values whenever possible.
1544
- * @param {object} _target - Object with fallback values
1545
- * @param {object} source - Object with desired values
1016
+ * Color blind palette with text is meant for use when text is applied on top of the color.
1017
+ * It increases the brightness of the color to give the text more contrast.
1546
1018
  */
1547
- export const mergeDeep: (_target: {
1548
- [key: string]: any;
1549
- }, source?: {
1550
- [key: string]: any;
1551
- }) => {
1552
- [key: string]: any;
1019
+ export const euiPaletteColorBlindBehindText: (paletteProps?: EuiPaletteColorBlindProps) => string[];
1020
+ export const euiPaletteForLightBackground: () => EuiPalette;
1021
+ export const euiPaletteForDarkBackground: () => EuiPalette;
1022
+ export const euiPaletteForStatus: (steps: number) => EuiPalette;
1023
+ export const euiPaletteForTemperature: (steps: number) => EuiPalette;
1024
+ export const euiPaletteComplimentary: (steps: number) => EuiPalette;
1025
+ export const euiPaletteNegative: (steps: number) => EuiPalette;
1026
+ export const euiPalettePositive: (steps: number) => EuiPalette;
1027
+ export const euiPaletteCool: (steps: number) => EuiPalette;
1028
+ export const euiPaletteWarm: (steps: number) => EuiPalette;
1029
+ export const euiPaletteGray: (steps: number) => EuiPalette;
1030
+
1031
+ }
1032
+ declare module '@elastic/eui/src/services/color/visualization_colors' {
1033
+ export const VISUALIZATION_COLORS: import ("@elastic/eui/src/services/color/eui_palettes").EuiPalette;
1034
+ export const DEFAULT_VISUALIZATION_COLOR: string;
1035
+
1036
+ }
1037
+ declare module '@elastic/eui/src/components/color_picker/utils' {
1038
+ import chroma, { ColorSpaces } from 'chroma-js';
1039
+ import { ColorStop } from '@elastic/eui/src/components/color_picker/color_stops';
1040
+ export const getEventPosition: (location: {
1041
+ x: number;
1042
+ y: number;
1043
+ }, container: HTMLElement) => {
1044
+ left: number;
1045
+ top: number;
1046
+ width: number;
1047
+ height: number;
1048
+ };
1049
+ export const HEX_FALLBACK = "";
1050
+ export const HSV_FALLBACK: ColorSpaces['hsv'];
1051
+ export const RGB_FALLBACK: ColorSpaces['rgba'];
1052
+ export const RGB_JOIN = ", ";
1053
+ export const parseColor: (input?: string | null | undefined) => string | number[] | null;
1054
+ export const chromaValid: (color: string | number[]) => boolean;
1055
+ export const getChromaColor: (input?: string | null | undefined, allowOpacity?: boolean) => chroma.Color | null;
1056
+ export const getLinearGradient: (palette: string[] | ColorStop[]) => string;
1057
+ export const getFixedLinearGradient: (palette: string[] | ColorStop[]) => {
1058
+ color: string;
1059
+ width: string;
1060
+ }[];
1061
+
1062
+ }
1063
+ declare module '@elastic/eui/src/components/form/range/utils' {
1064
+ export const EUI_THUMB_SIZE = 16;
1065
+ export const calculateThumbPosition: (value: number, min: number, max: number, width: number, thumbSize?: number) => number;
1066
+
1067
+ }
1068
+ declare module '@elastic/eui/src/components/color_picker/color_stops/utils' {
1069
+ import { ColorStop } from '@elastic/eui/src/components/color_picker/color_stops/color_stop_thumb';
1070
+ export const removeStop: (colorStops: ColorStop[], index: number) => ColorStop[];
1071
+ export const addDefinedStop: (colorStops: ColorStop[], stop: ColorStop['stop'], color?: ColorStop['color']) => ColorStop[];
1072
+ export const addStop: (colorStops: ColorStop[], color: string | undefined, max: number) => ColorStop[];
1073
+ export const isColorInvalid: (color: string, showAlpha?: boolean) => boolean;
1074
+ export const isStopInvalid: (stop: ColorStop['stop']) => boolean;
1075
+ export const isInvalid: (colorStops: ColorStop[], showAlpha?: boolean) => boolean;
1076
+ export const calculateScale: (trackWidth: number) => number;
1077
+ export const getStopFromMouseLocation: (location: {
1078
+ x: number;
1079
+ y: number;
1080
+ }, ref: HTMLDivElement, min: number, max: number) => number;
1081
+ export const getPositionFromStop: (stop: ColorStop['stop'], ref: HTMLDivElement, min: number, max: number) => number;
1082
+
1083
+ }
1084
+ declare module '@elastic/eui/src/components/icon/icon_map' {
1085
+ export const typeToPathMap: {
1086
+ accessibility: string;
1087
+ addDataApp: string;
1088
+ advancedSettingsApp: string;
1089
+ agentApp: string;
1090
+ aggregate: string;
1091
+ alert: string;
1092
+ analyzeEvent: string;
1093
+ annotation: string;
1094
+ apmApp: string;
1095
+ apmTrace: string;
1096
+ appSearchApp: string;
1097
+ apps: string;
1098
+ arrowDown: string;
1099
+ arrowLeft: string;
1100
+ arrowRight: string;
1101
+ arrowUp: string;
1102
+ arrowStart: string;
1103
+ arrowEnd: string;
1104
+ asterisk: string;
1105
+ auditbeatApp: string;
1106
+ beaker: string;
1107
+ bell: string;
1108
+ bellSlash: string;
1109
+ bolt: string;
1110
+ boxesHorizontal: string;
1111
+ boxesVertical: string;
1112
+ branch: string;
1113
+ branchUser: string;
1114
+ broom: string;
1115
+ brush: string;
1116
+ bug: string;
1117
+ bullseye: string;
1118
+ calendar: string;
1119
+ canvasApp: string;
1120
+ casesApp: string;
1121
+ check: string;
1122
+ checkInCircleFilled: string;
1123
+ cheer: string;
1124
+ classificationJob: string;
1125
+ clock: string;
1126
+ cloudDrizzle: string;
1127
+ cloudStormy: string;
1128
+ cloudSunny: string;
1129
+ cluster: string;
1130
+ codeApp: string;
1131
+ color: string;
1132
+ compute: string;
1133
+ console: string;
1134
+ consoleApp: string;
1135
+ container: string;
1136
+ continuityAbove: string;
1137
+ continuityAboveBelow: string;
1138
+ continuityBelow: string;
1139
+ continuityWithin: string;
1140
+ controlsHorizontal: string;
1141
+ controlsVertical: string;
1142
+ copy: string;
1143
+ copyClipboard: string;
1144
+ createAdvancedJob: string;
1145
+ createMultiMetricJob: string;
1146
+ createPopulationJob: string;
1147
+ createSingleMetricJob: string;
1148
+ cross: string;
1149
+ crossClusterReplicationApp: string;
1150
+ crossInACircleFilled: string;
1151
+ crosshairs: string;
1152
+ currency: string;
1153
+ cut: string;
1154
+ dashboardApp: string;
1155
+ dataVisualizer: string;
1156
+ database: string;
1157
+ desktop: string;
1158
+ devToolsApp: string;
1159
+ discoverApp: string;
1160
+ document: string;
1161
+ documentEdit: string;
1162
+ documentation: string;
1163
+ documents: string;
1164
+ dot: string;
1165
+ doubleArrowLeft: string;
1166
+ doubleArrowRight: string;
1167
+ download: string;
1168
+ editorAlignCenter: string;
1169
+ editorAlignLeft: string;
1170
+ editorAlignRight: string;
1171
+ editorBold: string;
1172
+ editorChecklist: string;
1173
+ editorCodeBlock: string;
1174
+ editorComment: string;
1175
+ editorDistributeHorizontal: string;
1176
+ editorDistributeVertical: string;
1177
+ editorHeading: string;
1178
+ editorItalic: string;
1179
+ editorItemAlignBottom: string;
1180
+ editorItemAlignCenter: string;
1181
+ editorItemAlignLeft: string;
1182
+ editorItemAlignMiddle: string;
1183
+ editorItemAlignRight: string;
1184
+ editorItemAlignTop: string;
1185
+ editorLink: string;
1186
+ editorOrderedList: string;
1187
+ editorPositionBottomLeft: string;
1188
+ editorPositionBottomRight: string;
1189
+ editorPositionTopLeft: string;
1190
+ editorPositionTopRight: string;
1191
+ editorRedo: string;
1192
+ editorStrike: string;
1193
+ editorTable: string;
1194
+ editorUnderline: string;
1195
+ editorUndo: string;
1196
+ editorUnorderedList: string;
1197
+ email: string;
1198
+ empty: string;
1199
+ emsApp: string;
1200
+ eql: string;
1201
+ eraser: string;
1202
+ exit: string;
1203
+ expand: string;
1204
+ expandMini: string;
1205
+ exportAction: string;
1206
+ eye: string;
1207
+ eyeClosed: string;
1208
+ faceHappy: string;
1209
+ faceNeutral: string;
1210
+ faceSad: string;
1211
+ filebeatApp: string;
1212
+ filter: string;
1213
+ flag: string;
1214
+ fleetApp: string;
1215
+ fold: string;
1216
+ folderCheck: string;
1217
+ folderClosed: string;
1218
+ folderExclamation: string;
1219
+ folderOpen: string;
1220
+ frameNext: string;
1221
+ framePrevious: string;
1222
+ fullScreen: string;
1223
+ fullScreenExit: string;
1224
+ function: string;
1225
+ gear: string;
1226
+ gisApp: string;
1227
+ glasses: string;
1228
+ globe: string;
1229
+ grab: string;
1230
+ grabHorizontal: string;
1231
+ graphApp: string;
1232
+ grid: string;
1233
+ grokApp: string;
1234
+ heart: string;
1235
+ heartbeatApp: string;
1236
+ heatmap: string;
1237
+ help: string;
1238
+ home: string;
1239
+ iInCircle: string;
1240
+ image: string;
1241
+ importAction: string;
1242
+ indexClose: string;
1243
+ indexEdit: string;
1244
+ indexFlush: string;
1245
+ indexManagementApp: string;
1246
+ indexMapping: string;
1247
+ indexOpen: string;
1248
+ indexPatternApp: string;
1249
+ indexRollupApp: string;
1250
+ indexRuntime: string;
1251
+ indexSettings: string;
1252
+ inputOutput: string;
1253
+ inspect: string;
1254
+ invert: string;
1255
+ ip: string;
1256
+ keyboard: string;
1257
+ kqlField: string;
1258
+ kqlFunction: string;
1259
+ kqlOperand: string;
1260
+ kqlSelector: string;
1261
+ kqlValue: string;
1262
+ kubernetesNode: string;
1263
+ kubernetesPod: string;
1264
+ layers: string;
1265
+ lensApp: string;
1266
+ lettering: string;
1267
+ lineDashed: string;
1268
+ lineDotted: string;
1269
+ lineSolid: string;
1270
+ link: string;
1271
+ list: string;
1272
+ listAdd: string;
1273
+ lock: string;
1274
+ lockOpen: string;
1275
+ logoAWS: string;
1276
+ logoAWSMono: string;
1277
+ logoAerospike: string;
1278
+ logoApache: string;
1279
+ logoAppSearch: string;
1280
+ logoAzure: string;
1281
+ logoAzureMono: string;
1282
+ logoBeats: string;
1283
+ logoBusinessAnalytics: string;
1284
+ logoCeph: string;
1285
+ logoCloud: string;
1286
+ logoCloudEnterprise: string;
1287
+ logoCode: string;
1288
+ logoCodesandbox: string;
1289
+ logoCouchbase: string;
1290
+ logoDocker: string;
1291
+ logoDropwizard: string;
1292
+ logoElastic: string;
1293
+ logoElasticStack: string;
1294
+ logoElasticsearch: string;
1295
+ logoEnterpriseSearch: string;
1296
+ logoEtcd: string;
1297
+ logoGCP: string;
1298
+ logoGCPMono: string;
1299
+ logoGithub: string;
1300
+ logoGmail: string;
1301
+ logoGolang: string;
1302
+ logoGoogleG: string;
1303
+ logoHAproxy: string;
1304
+ logoIBM: string;
1305
+ logoIBMMono: string;
1306
+ logoKafka: string;
1307
+ logoKibana: string;
1308
+ logoKubernetes: string;
1309
+ logoLogging: string;
1310
+ logoLogstash: string;
1311
+ logoMaps: string;
1312
+ logoMemcached: string;
1313
+ logoMetrics: string;
1314
+ logoMongodb: string;
1315
+ logoMySQL: string;
1316
+ logoNginx: string;
1317
+ logoObservability: string;
1318
+ logoOsquery: string;
1319
+ logoPhp: string;
1320
+ logoPostgres: string;
1321
+ logoPrometheus: string;
1322
+ logoRabbitmq: string;
1323
+ logoRedis: string;
1324
+ logoSecurity: string;
1325
+ logoSiteSearch: string;
1326
+ logoSketch: string;
1327
+ logoSlack: string;
1328
+ logoUptime: string;
1329
+ logoWebhook: string;
1330
+ logoWindows: string;
1331
+ logoWorkplaceSearch: string;
1332
+ logsApp: string;
1333
+ logstashFilter: string;
1334
+ logstashIf: string;
1335
+ logstashInput: string;
1336
+ logstashOutput: string;
1337
+ logstashQueue: string;
1338
+ machineLearningApp: string;
1339
+ magnet: string;
1340
+ magnifyWithExclamation: string;
1341
+ magnifyWithMinus: string;
1342
+ magnifyWithPlus: string;
1343
+ managementApp: string;
1344
+ mapMarker: string;
1345
+ memory: string;
1346
+ menu: string;
1347
+ menuDown: string;
1348
+ menuLeft: string;
1349
+ menuRight: string;
1350
+ menuUp: string;
1351
+ merge: string;
1352
+ metricbeatApp: string;
1353
+ metricsApp: string;
1354
+ minimize: string;
1355
+ minus: string;
1356
+ minusInCircle: string;
1357
+ minusInCircleFilled: string;
1358
+ mobile: string;
1359
+ monitoringApp: string;
1360
+ moon: string;
1361
+ namespace: string;
1362
+ nested: string;
1363
+ node: string;
1364
+ notebookApp: string;
1365
+ number: string;
1366
+ offline: string;
1367
+ online: string;
1368
+ outlierDetectionJob: string;
1369
+ package: string;
1370
+ packetbeatApp: string;
1371
+ pageSelect: string;
1372
+ pagesSelect: string;
1373
+ paperClip: string;
1374
+ partial: string;
1375
+ pause: string;
1376
+ payment: string;
1377
+ pencil: string;
1378
+ percent: string;
1379
+ pin: string;
1380
+ pinFilled: string;
1381
+ pipelineApp: string;
1382
+ play: string;
1383
+ playFilled: string;
1384
+ plus: string;
1385
+ plusInCircle: string;
1386
+ plusInCircleFilled: string;
1387
+ popout: string;
1388
+ push: string;
1389
+ questionInCircle: string;
1390
+ quote: string;
1391
+ recentlyViewedApp: string;
1392
+ refresh: string;
1393
+ regressionJob: string;
1394
+ reporter: string;
1395
+ reportingApp: string;
1396
+ returnKey: string;
1397
+ save: string;
1398
+ savedObjectsApp: string;
1399
+ scale: string;
1400
+ search: string;
1401
+ searchProfilerApp: string;
1402
+ securityAnalyticsApp: string;
1403
+ securityApp: string;
1404
+ securitySignal: string;
1405
+ securitySignalDetected: string;
1406
+ securitySignalResolved: string;
1407
+ sessionViewer: string;
1408
+ shard: string;
1409
+ share: string;
1410
+ snowflake: string;
1411
+ sortDown: string;
1412
+ sortLeft: string;
1413
+ sortRight: string;
1414
+ sortUp: string;
1415
+ sortable: string;
1416
+ spacesApp: string;
1417
+ sqlApp: string;
1418
+ starEmpty: string;
1419
+ starEmptySpace: string;
1420
+ starFilled: string;
1421
+ starFilledSpace: string;
1422
+ starMinusEmpty: string;
1423
+ starMinusFilled: string;
1424
+ starPlusEmpty: string;
1425
+ starPlusFilled: string;
1426
+ stats: string;
1427
+ stop: string;
1428
+ stopFilled: string;
1429
+ stopSlash: string;
1430
+ storage: string;
1431
+ string: string;
1432
+ submodule: string;
1433
+ sun: string;
1434
+ swatchInput: string;
1435
+ symlink: string;
1436
+ tableDensityCompact: string;
1437
+ tableDensityExpanded: string;
1438
+ tableDensityNormal: string;
1439
+ tableOfContents: string;
1440
+ tag: string;
1441
+ tear: string;
1442
+ temperature: string;
1443
+ timeline: string;
1444
+ timelionApp: string;
1445
+ timeRefresh: string;
1446
+ timeslider: string;
1447
+ training: string;
1448
+ trash: string;
1449
+ unfold: string;
1450
+ unlink: string;
1451
+ upgradeAssistantApp: string;
1452
+ uptimeApp: string;
1453
+ user: string;
1454
+ userAvatar: string;
1455
+ users: string;
1456
+ usersRolesApp: string;
1457
+ vector: string;
1458
+ videoPlayer: string;
1459
+ visArea: string;
1460
+ visAreaStacked: string;
1461
+ visBarHorizontal: string;
1462
+ visBarHorizontalStacked: string;
1463
+ visBarVertical: string;
1464
+ visBarVerticalStacked: string;
1465
+ visGauge: string;
1466
+ visGoal: string;
1467
+ visLine: string;
1468
+ visMapCoordinate: string;
1469
+ visMapRegion: string;
1470
+ visMetric: string;
1471
+ visPie: string;
1472
+ visTable: string;
1473
+ visTagCloud: string;
1474
+ visText: string;
1475
+ visTimelion: string;
1476
+ visVega: string;
1477
+ visVisualBuilder: string;
1478
+ visualizeApp: string;
1479
+ watchesApp: string;
1480
+ wordWrap: string;
1481
+ wordWrapDisabled: string;
1482
+ workplaceSearchApp: string;
1483
+ wrench: string;
1484
+ tokenAlias: string;
1485
+ tokenAnnotation: string;
1486
+ tokenArray: string;
1487
+ tokenBinary: string;
1488
+ tokenBoolean: string;
1489
+ tokenClass: string;
1490
+ tokenCompletionSuggester: string;
1491
+ tokenConstant: string;
1492
+ tokenDate: string;
1493
+ tokenDenseVector: string;
1494
+ tokenElement: string;
1495
+ tokenEnum: string;
1496
+ tokenEnumMember: string;
1497
+ tokenEvent: string;
1498
+ tokenException: string;
1499
+ tokenField: string;
1500
+ tokenFile: string;
1501
+ tokenFlattened: string;
1502
+ tokenFunction: string;
1503
+ tokenGeo: string;
1504
+ tokenHistogram: string;
1505
+ tokenInterface: string;
1506
+ tokenIP: string;
1507
+ tokenJoin: string;
1508
+ tokenKey: string;
1509
+ tokenKeyword: string;
1510
+ tokenMethod: string;
1511
+ tokenMetricCounter: string;
1512
+ tokenMetricGauge: string;
1513
+ tokenModule: string;
1514
+ tokenNamespace: string;
1515
+ tokenNested: string;
1516
+ tokenNull: string;
1517
+ tokenNumber: string;
1518
+ tokenObject: string;
1519
+ tokenOperator: string;
1520
+ tokenPackage: string;
1521
+ tokenParameter: string;
1522
+ tokenPercolator: string;
1523
+ tokenProperty: string;
1524
+ tokenRange: string;
1525
+ tokenRankFeature: string;
1526
+ tokenRankFeatures: string;
1527
+ tokenRepo: string;
1528
+ tokenSearchType: string;
1529
+ tokenShape: string;
1530
+ tokenString: string;
1531
+ tokenStruct: string;
1532
+ tokenSymbol: string;
1533
+ tokenTag: string;
1534
+ tokenText: string;
1535
+ tokenTokenCount: string;
1536
+ tokenVariable: string;
1553
1537
  };
1554
1538
 
1555
1539
  }
1556
- declare module '@elastic/eui/src/services/color/manipulation' {
1557
- import { EuiThemeColorModeStandard } from '@elastic/eui/src/services/theme';
1558
- /**
1559
- * Makes a color more transparent.
1560
- * @param color - Color to manipulate
1561
- * @param alpha - alpha channel value. From 0-1.
1562
- */
1563
- export const transparentize: (color: string, alpha: number) => string;
1564
- /**
1565
- * Mixes a provided color with white.
1566
- * @param color - Color to mix with white
1567
- * @param ratio - Mix weight. From 0-1. Larger value indicates more white.
1568
- */
1569
- export const tint: (color: string, ratio: number) => string;
1570
- /**
1571
- * Mixes a provided color with black.
1572
- * @param color - Color to mix with black
1573
- * @param ratio - Mix weight. From 0-1. Larger value indicates more black.
1574
- */
1575
- export const shade: (color: string, ratio: number) => string;
1576
- /**
1577
- * Returns the tinted color for light mode and shaded color for dark mode
1578
- * @param color - Color to mix with white
1579
- * @param ratio - Mix weight. From 0-1. Larger value indicates more white.
1580
- * @param colorMode - Light or dark only
1581
- */
1582
- export const tintOrShade: (color: string, ratio: number, colorMode: EuiThemeColorModeStandard) => string;
1583
- /**
1584
- * Returns the shaded color for light mode and tinted color for dark mode
1585
- * @param color - Color to mix with white
1586
- * @param ratio - Mix weight. From 0-1. Larger value indicates more white.
1587
- * @param colorMode - Light or dark only
1588
- */
1589
- export const shadeOrTint: (color: string, ratio: number, colorMode: EuiThemeColorModeStandard) => string;
1590
- /**
1591
- * Increases the saturation of a color by manipulating the hsl saturation.
1592
- * @param color - Color to manipulate
1593
- * @param amount - Amount to change in absolute terms. 0-1.
1594
- */
1595
- export const saturate: (color: string, amount: number) => string;
1596
- /**
1597
- * Decreases the saturation of a color by manipulating the hsl saturation.
1598
- * @param color - Color to manipulate
1599
- * @param amount - Amount to change in absolute terms. 0-1.
1600
- */
1601
- export const desaturate: (color: string, amount: number) => string;
1602
- /**
1603
- * Returns the lightness value of a color. 0-100
1604
- * @param color
1605
- */
1606
- export const lightness: (color: string) => number;
1540
+ declare module '@elastic/eui/src/components/icon/assets/empty' {
1541
+ import * as React from 'react';
1542
+ interface SVGRProps {
1543
+ title?: string;
1544
+ titleId?: string;
1545
+ }
1546
+ export const icon: ({ title, titleId, ...props }: React.SVGProps<SVGSVGElement> & SVGRProps) => JSX.Element;
1547
+ export {};
1607
1548
 
1608
1549
  }
1609
- declare module '@elastic/eui/src/services/color/contrast' {
1610
- /**
1611
- * Creates a new color that meets or exceeds WCAG level AA
1612
- * @param foreground - Color to manipulate
1613
- * @param ratio - Amount to change in absolute terms. 0-10.
1614
- * *
1615
- * @param themeOrBackground - Color to use as the contrast basis or just pass EuiTheme
1616
- */
1617
- export const makeHighContrastColor: (_foreground: string, ratio?: number) => (themeOrBackground: string | {
1618
- [key: string]: any;
1619
- colors: {
1620
- body: string;
1621
- };
1622
- }) => string;
1623
- /**
1624
- * Creates a new color with increased contrast
1625
- * Disabled content only needs a contrast of at least 2 because there is no interaction available
1626
- * @param foreground - Color to manipulate
1627
- * @param ratio - Amount to change in absolute terms. 0-10.
1628
- * *
1629
- * @param themeOrBackground - Color to use as the contrast basis
1630
- */
1631
- export const makeDisabledContrastColor: (color: string, ratio?: number) => (themeOrBackground: string | {
1632
- [key: string]: any;
1633
- colors: {
1634
- body: string;
1635
- };
1636
- }) => string;
1550
+ declare module '@elastic/eui/src/services/react' {
1551
+ export function enqueueStateChange(fn: Function): void;
1637
1552
 
1638
1553
  }
1639
- declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_colors' {
1640
- import { _EuiThemeColors, _EuiThemeBrandColors, _EuiThemeBrandTextColors, _EuiThemeShadeColors, _EuiThemeSpecialColors, _EuiThemeTextColors, _EuiThemeColorsMode } from '@elastic/eui/src/global_styling/variables/colors';
1641
- export const brand_colors: _EuiThemeBrandColors;
1642
- export const brand_text_colors: _EuiThemeBrandTextColors;
1643
- export const shade_colors: _EuiThemeShadeColors;
1644
- export const special_colors: _EuiThemeSpecialColors;
1645
- export const text_colors: _EuiThemeTextColors;
1646
- export const light_colors: _EuiThemeColorsMode;
1647
- export const dark_shades: _EuiThemeShadeColors;
1648
- export const dark_colors_ams: _EuiThemeColorsMode;
1649
- export const colors: _EuiThemeColors;
1554
+ declare module '@elastic/eui/src/components/icon/named_colors' {
1555
+ export const COLORS: readonly ["default", "primary", "success", "accent", "warning", "danger", "text", "subdued", "ghost", "inherit"];
1556
+ export type NamedColor = typeof COLORS[number];
1557
+ export function isNamedColor(name: string): boolean;
1650
1558
 
1651
1559
  }
1652
- declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_animation' {
1653
- import { _EuiThemeAnimationSpeeds, _EuiThemeAnimationEasings, _EuiThemeAnimation } from '@elastic/eui/src/global_styling/variables/animations';
1654
- export const animation_speed: _EuiThemeAnimationSpeeds;
1655
- export const animation_ease: _EuiThemeAnimationEasings;
1656
- export const animation: _EuiThemeAnimation;
1560
+ declare module '@elastic/eui/src/global_styling/mixins/_color' {
1561
+ import { UseEuiTheme } from '@elastic/eui/src/services';
1562
+ export const BACKGROUND_COLORS: readonly ["transparent", "plain", "subdued", "accent", "primary", "success", "warning", "danger"];
1563
+ export type _EuiBackgroundColor = typeof BACKGROUND_COLORS[number];
1564
+ export interface _EuiBackgroundColorOptions {
1565
+ /**
1566
+ * Use `opaque` for containers of unknown content.
1567
+ * Use `transparent` for interactive states like hover and focus.
1568
+ */
1569
+ method?: 'opaque' | 'transparent';
1570
+ }
1571
+ export const euiBackgroundColor: ({ euiTheme, colorMode }: UseEuiTheme, color: _EuiBackgroundColor, { method }?: _EuiBackgroundColorOptions) => string;
1572
+ export const useEuiBackgroundColor: (color: _EuiBackgroundColor, { method }?: _EuiBackgroundColorOptions) => string;
1573
+ export const useEuiBackgroundColorCSS: () => {
1574
+ transparent: import("@emotion/utils").SerializedStyles;
1575
+ plain: import("@emotion/utils").SerializedStyles;
1576
+ subdued: import("@emotion/utils").SerializedStyles;
1577
+ accent: import("@emotion/utils").SerializedStyles;
1578
+ primary: import("@emotion/utils").SerializedStyles;
1579
+ success: import("@emotion/utils").SerializedStyles;
1580
+ warning: import("@emotion/utils").SerializedStyles;
1581
+ danger: import("@emotion/utils").SerializedStyles;
1582
+ };
1657
1583
 
1658
1584
  }
1659
- declare module '@elastic/eui/src/global_styling/variables/shadow' {
1660
- export const EuiThemeShadowSizes: readonly ["xs", "s", "m", "l", "xl"];
1661
- export type _EuiThemeShadowSize = typeof EuiThemeShadowSizes[number];
1585
+ declare module '@elastic/eui/src/global_styling/mixins/_helpers' {
1586
+ import { CSSProperties } from 'react';
1587
+ import { UseEuiTheme } from '@elastic/eui/src/services/theme';
1588
+ /**
1589
+ * Set scroll bar appearance on Chrome (and firefox).
1590
+ * All parameters are optional and default to specific global settings.
1591
+ */
1592
+ export interface EuiScrollBarStyles {
1593
+ thumbColor?: CSSProperties['backgroundColor'];
1594
+ trackColor?: CSSProperties['backgroundColor'];
1595
+ /**
1596
+ * Defaults to `thin`. Use `auto` only for large page scrollbars
1597
+ */
1598
+ width?: CSSProperties['scrollbarWidth'];
1599
+ /**
1600
+ * Overall width (height for horizontal scrollbars)
1601
+ */
1602
+ size?: CSSProperties['width'];
1603
+ /**
1604
+ * Corner sizes are usually determined by `width` and
1605
+ * are used as an inset border and therefore a smaller corner size means a larger thumb
1606
+ */
1607
+ corner?: CSSProperties['borderWidth'];
1608
+ }
1609
+ export const euiScrollBarStyles: ({ euiTheme: { colors, size } }: UseEuiTheme, { thumbColor: _thumbColor, trackColor, width, size: _size, corner: _corner, }?: EuiScrollBarStyles) => string;
1610
+ export const useEuiScrollBar: (options?: EuiScrollBarStyles | undefined) => string;
1662
1611
  /**
1663
- * Shadow t-shirt sizes descriptions
1612
+ * 1. Focus rings shouldn't be visible on scrollable regions, but a11y requires them to be focusable.
1613
+ * Browser's supporting `:focus-visible` will still show outline on keyboard focus only.
1614
+ * Others like Safari, won't show anything at all.
1664
1615
  */
1665
- export const _EuiShadowSizesDescriptions: Record<_EuiThemeShadowSize, string>;
1666
- export interface _EuiThemeShadowCustomColor {
1667
- color?: string;
1668
- property?: 'box-shadow' | 'filter';
1616
+ export const euiYScroll: (euiTheme: UseEuiTheme) => string;
1617
+ export const useEuiYScroll: () => string;
1618
+ export const euiYScrollWithShadows: (euiTheme: UseEuiTheme) => string;
1619
+ export const useEuiYScrollWithShadows: () => string;
1620
+ export const euiXScroll: (euiTheme: UseEuiTheme) => string;
1621
+ export const useEuiXScroll: () => string;
1622
+ export const euiXScrollWithShadows: (euiTheme: UseEuiTheme) => string;
1623
+ export const useEuiXScrollWithShadows: () => string;
1624
+ interface EuiScrollOverflowStyles {
1625
+ direction?: 'y' | 'x';
1626
+ mask?: boolean;
1669
1627
  }
1670
-
1671
- }
1672
- declare module '@elastic/eui/src/global_styling/variables' {
1673
- export * from '@elastic/eui/src/global_styling/variables/animations';
1674
- export * from '@elastic/eui/src/global_styling/variables/borders';
1675
- export * from '@elastic/eui/src/global_styling/variables/breakpoint';
1676
- export * from '@elastic/eui/src/global_styling/variables/colors';
1677
- export * from '@elastic/eui/src/global_styling/variables/levels';
1678
- export * from '@elastic/eui/src/global_styling/variables/size';
1679
- export * from '@elastic/eui/src/global_styling/variables/shadow';
1680
- export * from '@elastic/eui/src/global_styling/variables/states';
1681
- export * from '@elastic/eui/src/global_styling/variables/typography';
1682
-
1683
- }
1684
- declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_breakpoint' {
1685
- import { _EuiThemeBreakpoints } from '@elastic/eui/src/global_styling/variables';
1686
- export const breakpoint: _EuiThemeBreakpoints;
1628
+ export const euiOverflowScroll: (euiTheme: UseEuiTheme, { direction, mask }?: EuiScrollOverflowStyles) => string;
1629
+ export const useEuiOverflowScroll: (direction: EuiScrollOverflowStyles['direction'], mask?: EuiScrollOverflowStyles['mask']) => string;
1630
+ export {};
1687
1631
 
1688
1632
  }
1689
1633
  declare module '@elastic/eui/src/global_styling/functions/logicals' {
@@ -1760,7 +1704,7 @@ declare module '@elastic/eui/src/global_styling/functions/logicals' {
1760
1704
  'margin-horizontal': string;
1761
1705
  'margin-vertical': string;
1762
1706
  };
1763
- 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")[];
1707
+ export const LOGICAL_PROPERTIES: ("left" | "right" | "inset" | "top" | "width" | "height" | "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")[];
1764
1708
  export type LogicalProperties = typeof LOGICAL_PROPERTIES[number];
1765
1709
  /**
1766
1710
  *
@@ -1893,7 +1837,7 @@ declare module '@elastic/eui/src/global_styling/functions/typography' {
1893
1837
  * this mixin will ensure that the sizing is dependent on the boldest
1894
1838
  * weight so it doesn't shift sibling content.
1895
1839
  */
1896
- export const euiTextShift: (fontWeight: "bold" | "light" | "medium" | "regular" | "semiBold" | undefined, attribute: string | undefined, euiTheme: UseEuiTheme['euiTheme']) => string;
1840
+ export const euiTextShift: (fontWeight: "bold" | "light" | "regular" | "medium" | "semiBold" | undefined, attribute: string | undefined, euiTheme: UseEuiTheme['euiTheme']) => string;
1897
1841
 
1898
1842
  }
1899
1843
  declare module '@elastic/eui/src/global_styling/functions' {
@@ -1901,126 +1845,6 @@ declare module '@elastic/eui/src/global_styling/functions' {
1901
1845
  export * from '@elastic/eui/src/global_styling/functions/size';
1902
1846
  export * from '@elastic/eui/src/global_styling/functions/typography';
1903
1847
 
1904
- }
1905
- declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_size' {
1906
- import { _EuiThemeBase, _EuiThemeSizes } from '@elastic/eui/src/global_styling/variables';
1907
- export const base: _EuiThemeBase;
1908
- export const size: _EuiThemeSizes;
1909
-
1910
- }
1911
- declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_borders' {
1912
- import { _EuiThemeBorder } from '@elastic/eui/src/global_styling/variables';
1913
- export const border: _EuiThemeBorder;
1914
-
1915
- }
1916
- declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_levels' {
1917
- import { _EuiThemeLevels } from '@elastic/eui/src/global_styling/variables';
1918
- export const levels: _EuiThemeLevels;
1919
-
1920
- }
1921
- declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_typography' {
1922
- import { _EuiThemeFont, _EuiThemeFontBase, _EuiThemeFontScales, _EuiThemeFontWeights } from '@elastic/eui/src/global_styling/variables/typography';
1923
- export const fontScale: _EuiThemeFontScales;
1924
- export const fontBase: _EuiThemeFontBase;
1925
- export const fontWeight: _EuiThemeFontWeights;
1926
- export const font: _EuiThemeFont;
1927
-
1928
- }
1929
- declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_states' {
1930
- import { _EuiThemeFocus } from '@elastic/eui/src/global_styling/variables/states';
1931
- export const focus: _EuiThemeFocus;
1932
-
1933
- }
1934
- declare module '@elastic/eui/src/themes/amsterdam/theme' {
1935
- import { EuiThemeShape } from '@elastic/eui/src/services/theme/types';
1936
- export const AMSTERDAM_NAME_KEY = "EUI_THEME_AMSTERDAM";
1937
- export const euiThemeAmsterdam: EuiThemeShape;
1938
- export const EuiThemeAmsterdam: {
1939
- model: EuiThemeShape;
1940
- root: EuiThemeShape;
1941
- key: string;
1942
- };
1943
-
1944
- }
1945
- declare module '@elastic/eui/src/services/theme/context' {
1946
-
1947
- import { EuiThemeColorModeStandard, EuiThemeSystem, EuiThemeComputed } from '@elastic/eui/src/services/theme/types';
1948
- export const EuiSystemContext: import("react").Context<EuiThemeSystem<{}>>;
1949
- export const EuiModificationsContext: import("react").Context<import ("@elastic/eui").RecursivePartial<import ("@elastic/eui/src/services/theme/types").EuiThemeShape>>;
1950
- export const EuiColorModeContext: import("react").Context<EuiThemeColorModeStandard>;
1951
- export const EuiThemeContext: import("react").Context<EuiThemeComputed<{}>>;
1952
-
1953
- }
1954
- declare module '@elastic/eui/src/services/theme/provider' {
1955
- import React, { PropsWithChildren } from 'react';
1956
- import { EuiThemeColorMode, EuiThemeSystem, EuiThemeModifications } from '@elastic/eui/src/services/theme/types';
1957
- export interface EuiThemeProviderProps<T> {
1958
- theme?: EuiThemeSystem<T>;
1959
- colorMode?: EuiThemeColorMode;
1960
- modify?: EuiThemeModifications<T>;
1961
- children: any;
1962
- }
1963
- export const EuiThemeProvider: <T extends {} = {}>({ theme: _system, colorMode: _colorMode, modify: _modifications, children, }: React.PropsWithChildren<EuiThemeProviderProps<T>>) => JSX.Element;
1964
-
1965
- }
1966
- declare module '@elastic/eui/src/services/theme' {
1967
- export { EuiSystemContext, EuiThemeContext, EuiModificationsContext, EuiColorModeContext, } from '@elastic/eui/src/services/theme/context';
1968
- export type { UseEuiTheme, WithEuiThemeProps } from '@elastic/eui/src/services/theme/hooks';
1969
- export { useEuiTheme, withEuiTheme } from '@elastic/eui/src/services/theme/hooks';
1970
- export type { EuiThemeProviderProps } from '@elastic/eui/src/services/theme/provider';
1971
- export { EuiThemeProvider } from '@elastic/eui/src/services/theme/provider';
1972
- export { buildTheme, computed, isInverseColorMode, getColorMode, getComputed, getOn, mergeDeep, setOn, Computed, } from '@elastic/eui/src/services/theme/utils';
1973
- export type { ComputedThemeShape, EuiThemeColorMode, EuiThemeColorModeStandard, EuiThemeComputed, EuiThemeModifications, EuiThemeShape, EuiThemeSystem, } from '@elastic/eui/src/services/theme/types';
1974
- export { COLOR_MODES_STANDARD } from '@elastic/eui/src/services/theme/types';
1975
-
1976
- }
1977
- declare module '@elastic/eui/src/global_styling/mixins/_helpers' {
1978
- import { CSSProperties } from 'react';
1979
- import { UseEuiTheme } from '@elastic/eui/src/services/theme';
1980
- /**
1981
- * Set scroll bar appearance on Chrome (and firefox).
1982
- * All parameters are optional and default to specific global settings.
1983
- */
1984
- export interface EuiScrollBarStyles {
1985
- thumbColor?: CSSProperties['backgroundColor'];
1986
- trackColor?: CSSProperties['backgroundColor'];
1987
- /**
1988
- * Defaults to `thin`. Use `auto` only for large page scrollbars
1989
- */
1990
- width?: CSSProperties['scrollbarWidth'];
1991
- /**
1992
- * Overall width (height for horizontal scrollbars)
1993
- */
1994
- size?: CSSProperties['width'];
1995
- /**
1996
- * Corner sizes are usually determined by `width` and
1997
- * are used as an inset border and therefore a smaller corner size means a larger thumb
1998
- */
1999
- corner?: CSSProperties['borderWidth'];
2000
- }
2001
- export const euiScrollBarStyles: ({ euiTheme: { colors, size } }: UseEuiTheme, { thumbColor: _thumbColor, trackColor, width, size: _size, corner: _corner, }?: EuiScrollBarStyles) => string;
2002
- export const useEuiScrollBar: (options?: EuiScrollBarStyles | undefined) => string;
2003
- /**
2004
- * 1. Focus rings shouldn't be visible on scrollable regions, but a11y requires them to be focusable.
2005
- * Browser's supporting `:focus-visible` will still show outline on keyboard focus only.
2006
- * Others like Safari, won't show anything at all.
2007
- */
2008
- export const euiYScroll: (euiTheme: UseEuiTheme) => string;
2009
- export const useEuiYScroll: () => string;
2010
- export const euiYScrollWithShadows: (euiTheme: UseEuiTheme) => string;
2011
- export const useEuiYScrollWithShadows: () => string;
2012
- export const euiXScroll: (euiTheme: UseEuiTheme) => string;
2013
- export const useEuiXScroll: () => string;
2014
- export const euiXScrollWithShadows: (euiTheme: UseEuiTheme) => string;
2015
- export const useEuiXScrollWithShadows: () => string;
2016
- interface EuiScrollOverflowStyles {
2017
- direction?: 'y' | 'x';
2018
- mask?: boolean;
2019
- }
2020
- export const euiOverflowScroll: (euiTheme: UseEuiTheme, { direction, mask }?: EuiScrollOverflowStyles) => string;
2021
- export const useEuiOverflowScroll: (direction: EuiScrollOverflowStyles['direction'], mask?: EuiScrollOverflowStyles['mask']) => string;
2022
- export {};
2023
-
2024
1848
  }
2025
1849
  declare module '@elastic/eui/src/global_styling/mixins/_padding' {
2026
1850
  import { UseEuiTheme } from '@elastic/eui/src/services/theme';
@@ -4134,106 +3958,39 @@ declare module '@elastic/eui/src/components/panel/panel' {
4134
3958
  * Only works when `color="plain"`
4135
3959
  */
4136
3960
  hasShadow?: boolean;
4137
- /**
4138
- * Adds a slight 1px border on all edges.
4139
- * Only works when `color="plain | transparent"`
4140
- */
4141
- hasBorder?: boolean;
4142
- /**
4143
- * Padding for all four sides
4144
- */
4145
- paddingSize?: EuiPaddingSize;
4146
- /**
4147
- * Corner border radius
4148
- */
4149
- borderRadius?: PanelBorderRadius;
4150
- /**
4151
- * When true the panel will grow in height to match `EuiFlexItem`
4152
- */
4153
- grow?: boolean;
4154
- panelRef?: Ref<HTMLDivElement>;
4155
- /**
4156
- * Background color of the panel;
4157
- * Usually a lightened form of the brand colors
4158
- */
4159
- color?: PanelColor;
4160
- }
4161
- export interface _EuiPanelDivlike extends _EuiPanelProps, Omit<HTMLAttributes<HTMLDivElement>, 'color'> {
4162
- element?: 'div';
4163
- }
4164
- export interface _EuiPanelButtonlike extends _EuiPanelProps, Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'color'> {
4165
- element?: 'button';
4166
- }
4167
- export type EuiPanelProps = ExclusiveUnion<_EuiPanelButtonlike, _EuiPanelDivlike>;
4168
- export const EuiPanel: FunctionComponent<EuiPanelProps>;
4169
- export {};
4170
-
4171
- }
4172
- declare module '@elastic/eui/src/services/hooks/useUpdateEffect' {
4173
- export const useUpdateEffect: (effect: Function, deps: unknown[]) => void;
4174
-
4175
- }
4176
- declare module '@elastic/eui/src/services/hooks/useDependentState' {
4177
-
4178
- export function useDependentState<T>(valueFn: (previousState: undefined | T) => T, deps: unknown[]): readonly [T, import("react").Dispatch<import("react").SetStateAction<T>>];
4179
-
4180
- }
4181
- declare module '@elastic/eui/src/services/hooks/useCombinedRefs' {
4182
- import { MutableRefObject, Ref } from 'react';
4183
- export const useCombinedRefs: <T>(refs: (Ref<T> | MutableRefObject<T | undefined> | undefined)[]) => (node: T) => void;
4184
-
4185
- }
4186
- declare module '@elastic/eui/src/services/hooks/useForceRender' {
4187
- export const useForceRender: () => () => void;
4188
-
4189
- }
4190
- declare module '@elastic/eui/src/services/hooks/useIsWithinBreakpoints' {
4191
- import { EuiBreakpointSize } from '@elastic/eui/src/services/breakpoint';
4192
- /**
4193
- * Given the current window.innerWidth and an array of breakpoint keys,
4194
- * this hook stores state and returns true or false if the window.innerWidth
4195
- * falls within any of the named breakpoints.
4196
- *
4197
- * @param {EuiBreakpointSize[]} sizes An array of named breakpoints
4198
- * @param {boolean} isActive Manages whether the resize handler should be active
4199
- * @returns {boolean} Returns `true` if current breakpoint name is included in `sizes`
4200
- */
4201
- export function useIsWithinBreakpoints(sizes: EuiBreakpointSize[], isActive?: boolean): boolean;
4202
-
4203
- }
4204
- declare module '@elastic/eui/src/services/hooks/useLatest' {
4205
- import { MutableRefObject } from 'react';
4206
- /**
4207
- * Wraps the given `value` into a `MutableRefObject` and keeps the `current`
4208
- * value up-to-date on every render cycle.
4209
- */
4210
- export function useLatest<Value>(value: Value): MutableRefObject<Value | null>;
4211
-
4212
- }
4213
- declare module '@elastic/eui/src/services/throttle' {
4214
- export const throttle: (fn: (...args: any[]) => void, wait?: number) => (...args: any[]) => void;
4215
-
4216
- }
4217
- declare module '@elastic/eui/src/services/hooks/useMouseMove' {
4218
- import { MouseEvent, TouchEvent } from 'react';
4219
- export function isMouseEvent<T = HTMLDivElement>(event: MouseEvent<T> | TouchEvent<T>): event is MouseEvent<T>;
4220
- export function useMouseMove<T = HTMLDivElement>(handleChange: (location: {
4221
- x: number;
4222
- y: number;
4223
- }, isFirstInteraction?: boolean) => void, interactionConditional?: any): [
4224
- (e: MouseEvent<T>) => void,
4225
- (e: MouseEvent<T> | TouchEvent<T>, isFirstInteraction?: boolean) => void
4226
- ];
4227
-
4228
- }
4229
- declare module '@elastic/eui/src/services/hooks' {
4230
- export * from '@elastic/eui/src/services/hooks/useDependentState';
4231
- export * from '@elastic/eui/src/services/hooks/useCombinedRefs';
4232
- export * from '@elastic/eui/src/services/hooks/useForceRender';
4233
- export * from '@elastic/eui/src/services/hooks/useIsWithinBreakpoints';
4234
- export * from '@elastic/eui/src/services/hooks/useLatest';
4235
- export * from '@elastic/eui/src/services/hooks/useMouseMove';
4236
- export * from '@elastic/eui/src/services/hooks/useUpdateEffect';
3961
+ /**
3962
+ * Adds a slight 1px border on all edges.
3963
+ * Only works when `color="plain | transparent"`
3964
+ */
3965
+ hasBorder?: boolean;
3966
+ /**
3967
+ * Padding for all four sides
3968
+ */
3969
+ paddingSize?: EuiPaddingSize;
3970
+ /**
3971
+ * Corner border radius
3972
+ */
3973
+ borderRadius?: PanelBorderRadius;
3974
+ /**
3975
+ * When true the panel will grow in height to match `EuiFlexItem`
3976
+ */
3977
+ grow?: boolean;
3978
+ panelRef?: Ref<HTMLDivElement>;
3979
+ /**
3980
+ * Background color of the panel;
3981
+ * Usually a lightened form of the brand colors
3982
+ */
3983
+ color?: PanelColor;
3984
+ }
3985
+ export interface _EuiPanelDivlike extends _EuiPanelProps, Omit<HTMLAttributes<HTMLDivElement>, 'color'> {
3986
+ element?: 'div';
3987
+ }
3988
+ export interface _EuiPanelButtonlike extends _EuiPanelProps, Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'color'> {
3989
+ element?: 'button';
3990
+ }
3991
+ export type EuiPanelProps = ExclusiveUnion<_EuiPanelButtonlike, _EuiPanelDivlike>;
3992
+ export const EuiPanel: FunctionComponent<EuiPanelProps>;
3993
+ export {};
4237
3994
 
4238
3995
  }
4239
3996
  declare module '@elastic/eui/src/components/panel/split_panel/split_panel' {
@@ -4611,7 +4368,7 @@ declare module '@elastic/eui/src/components/portal/portal' {
4611
4368
  * NOTE: We can't test this component because Enzyme doesn't support rendering
4612
4369
  * into portals.
4613
4370
  */
4614
- import { Component, ReactNode } from 'react';
4371
+ import { ReactNode } from 'react';
4615
4372
  interface InsertPositionsMap {
4616
4373
  after: InsertPosition;
4617
4374
  before: InsertPosition;
@@ -4629,14 +4386,7 @@ declare module '@elastic/eui/src/components/portal/portal' {
4629
4386
  };
4630
4387
  portalRef?: (ref: HTMLDivElement | null) => void;
4631
4388
  }
4632
- export class EuiPortal extends Component<EuiPortalProps> {
4633
- portalNode: HTMLDivElement;
4634
- constructor(props: EuiPortalProps);
4635
- componentDidMount(): void;
4636
- componentWillUnmount(): void;
4637
- updatePortalRef(ref: HTMLDivElement | null): void;
4638
- render(): import("react").ReactPortal;
4639
- }
4389
+ export const EuiPortal: React.FC<EuiPortalProps>;
4640
4390
  export {};
4641
4391
 
4642
4392
  }
@@ -5308,7 +5058,7 @@ declare module '@elastic/eui/src/components/popover/popover_footer' {
5308
5058
 
5309
5059
  }
5310
5060
  declare module '@elastic/eui/src/components/popover/wrapping_popover' {
5311
- import { Component } from 'react';
5061
+ import { FunctionComponent } from 'react';
5312
5062
  import { Props as EuiPopoverProps } from '@elastic/eui/src/components/popover/popover';
5313
5063
  export interface EuiWrappingPopoverProps extends EuiPopoverProps {
5314
5064
  button: HTMLElement;
@@ -5318,15 +5068,7 @@ declare module '@elastic/eui/src/components/popover/wrapping_popover' {
5318
5068
  * then the button element is moved into the popover dom.
5319
5069
  * On unmount, the button is moved back to its original location.
5320
5070
  */
5321
- export class EuiWrappingPopover extends Component<EuiWrappingPopoverProps> {
5322
- private portal;
5323
- private anchor;
5324
- componentDidMount(): void;
5325
- componentWillUnmount(): void;
5326
- setPortalRef: (node: HTMLElement | null) => void;
5327
- setAnchorRef: (node: HTMLElement | null) => void;
5328
- render(): JSX.Element;
5329
- }
5071
+ export const EuiWrappingPopover: FunctionComponent<EuiWrappingPopoverProps>;
5330
5072
 
5331
5073
  }
5332
5074
  declare module '@elastic/eui/src/components/popover' {
@@ -6697,23 +6439,239 @@ declare module '@elastic/eui/src/services/color/stepped_gradient' {
6697
6439
  export const getSteppedGradient: (colors: ColorStop[], steps: number) => string[];
6698
6440
 
6699
6441
  }
6700
- declare module '@elastic/eui/src/services/color' {
6701
- export { isColorDark } from '@elastic/eui/src/services/color/is_color_dark';
6702
- export { isValidHex } from '@elastic/eui/src/services/color/is_valid_hex';
6703
- export { hexToHsv } from '@elastic/eui/src/services/color/hex_to_hsv';
6704
- export { hexToRgb } from '@elastic/eui/src/services/color/hex_to_rgb';
6705
- export { hsvToHex } from '@elastic/eui/src/services/color/hsv_to_hex';
6706
- export { hsvToRgb } from '@elastic/eui/src/services/color/hsv_to_rgb';
6707
- export { rgbToHex } from '@elastic/eui/src/services/color/rgb_to_hex';
6708
- export { rgbToHsv } from '@elastic/eui/src/services/color/rgb_to_hsv';
6709
- export { calculateContrast, calculateLuminance, } from '@elastic/eui/src/services/color/luminance_and_contrast';
6710
- export { VISUALIZATION_COLORS, DEFAULT_VISUALIZATION_COLOR, } from '@elastic/eui/src/services/color/visualization_colors';
6711
- export { colorPalette } from '@elastic/eui/src/services/color/color_palette';
6712
- export { euiPaletteForLightBackground, euiPaletteForDarkBackground, euiPaletteColorBlind, euiPaletteColorBlindBehindText, euiPaletteForStatus, euiPaletteForTemperature, euiPaletteComplimentary, euiPaletteNegative, euiPalettePositive, euiPaletteCool, euiPaletteWarm, euiPaletteGray, } from '@elastic/eui/src/services/color/eui_palettes';
6713
- export type { rgbDef, HSV, RGB } from '@elastic/eui/src/services/color/color_types';
6714
- export { getSteppedGradient } from '@elastic/eui/src/services/color/stepped_gradient';
6715
- export * from '@elastic/eui/src/services/color/manipulation';
6716
- export * from '@elastic/eui/src/services/color/contrast';
6442
+ declare module '@elastic/eui/src/services/color/manipulation' {
6443
+ import { EuiThemeColorModeStandard } from '@elastic/eui/src/services/theme';
6444
+ /**
6445
+ * Makes a color more transparent.
6446
+ * @param color - Color to manipulate
6447
+ * @param alpha - alpha channel value. From 0-1.
6448
+ */
6449
+ export const transparentize: (color: string, alpha: number) => string;
6450
+ /**
6451
+ * Mixes a provided color with white.
6452
+ * @param color - Color to mix with white
6453
+ * @param ratio - Mix weight. From 0-1. Larger value indicates more white.
6454
+ */
6455
+ export const tint: (color: string, ratio: number) => string;
6456
+ /**
6457
+ * Mixes a provided color with black.
6458
+ * @param color - Color to mix with black
6459
+ * @param ratio - Mix weight. From 0-1. Larger value indicates more black.
6460
+ */
6461
+ export const shade: (color: string, ratio: number) => string;
6462
+ /**
6463
+ * Returns the tinted color for light mode and shaded color for dark mode
6464
+ * @param color - Color to mix with white
6465
+ * @param ratio - Mix weight. From 0-1. Larger value indicates more white.
6466
+ * @param colorMode - Light or dark only
6467
+ */
6468
+ export const tintOrShade: (color: string, ratio: number, colorMode: EuiThemeColorModeStandard) => string;
6469
+ /**
6470
+ * Returns the shaded color for light mode and tinted color for dark mode
6471
+ * @param color - Color to mix with white
6472
+ * @param ratio - Mix weight. From 0-1. Larger value indicates more white.
6473
+ * @param colorMode - Light or dark only
6474
+ */
6475
+ export const shadeOrTint: (color: string, ratio: number, colorMode: EuiThemeColorModeStandard) => string;
6476
+ /**
6477
+ * Increases the saturation of a color by manipulating the hsl saturation.
6478
+ * @param color - Color to manipulate
6479
+ * @param amount - Amount to change in absolute terms. 0-1.
6480
+ */
6481
+ export const saturate: (color: string, amount: number) => string;
6482
+ /**
6483
+ * Decreases the saturation of a color by manipulating the hsl saturation.
6484
+ * @param color - Color to manipulate
6485
+ * @param amount - Amount to change in absolute terms. 0-1.
6486
+ */
6487
+ export const desaturate: (color: string, amount: number) => string;
6488
+ /**
6489
+ * Returns the lightness value of a color. 0-100
6490
+ * @param color
6491
+ */
6492
+ export const lightness: (color: string) => number;
6493
+
6494
+ }
6495
+ declare module '@elastic/eui/src/services/color/contrast' {
6496
+ /**
6497
+ * Creates a new color that meets or exceeds WCAG level AA
6498
+ * @param foreground - Color to manipulate
6499
+ * @param ratio - Amount to change in absolute terms. 0-10.
6500
+ * *
6501
+ * @param themeOrBackground - Color to use as the contrast basis or just pass EuiTheme
6502
+ */
6503
+ export const makeHighContrastColor: (_foreground: string, ratio?: number) => (themeOrBackground: string | {
6504
+ [key: string]: any;
6505
+ colors: {
6506
+ body: string;
6507
+ };
6508
+ }) => string;
6509
+ /**
6510
+ * Creates a new color with increased contrast
6511
+ * Disabled content only needs a contrast of at least 2 because there is no interaction available
6512
+ * @param foreground - Color to manipulate
6513
+ * @param ratio - Amount to change in absolute terms. 0-10.
6514
+ * *
6515
+ * @param themeOrBackground - Color to use as the contrast basis
6516
+ */
6517
+ export const makeDisabledContrastColor: (color: string, ratio?: number) => (themeOrBackground: string | {
6518
+ [key: string]: any;
6519
+ colors: {
6520
+ body: string;
6521
+ };
6522
+ }) => string;
6523
+
6524
+ }
6525
+ declare module '@elastic/eui/src/services/color' {
6526
+ export { isColorDark } from '@elastic/eui/src/services/color/is_color_dark';
6527
+ export { isValidHex } from '@elastic/eui/src/services/color/is_valid_hex';
6528
+ export { hexToHsv } from '@elastic/eui/src/services/color/hex_to_hsv';
6529
+ export { hexToRgb } from '@elastic/eui/src/services/color/hex_to_rgb';
6530
+ export { hsvToHex } from '@elastic/eui/src/services/color/hsv_to_hex';
6531
+ export { hsvToRgb } from '@elastic/eui/src/services/color/hsv_to_rgb';
6532
+ export { rgbToHex } from '@elastic/eui/src/services/color/rgb_to_hex';
6533
+ export { rgbToHsv } from '@elastic/eui/src/services/color/rgb_to_hsv';
6534
+ export { calculateContrast, calculateLuminance, } from '@elastic/eui/src/services/color/luminance_and_contrast';
6535
+ export { VISUALIZATION_COLORS, DEFAULT_VISUALIZATION_COLOR, } from '@elastic/eui/src/services/color/visualization_colors';
6536
+ export { colorPalette } from '@elastic/eui/src/services/color/color_palette';
6537
+ export { euiPaletteForLightBackground, euiPaletteForDarkBackground, euiPaletteColorBlind, euiPaletteColorBlindBehindText, euiPaletteForStatus, euiPaletteForTemperature, euiPaletteComplimentary, euiPaletteNegative, euiPalettePositive, euiPaletteCool, euiPaletteWarm, euiPaletteGray, } from '@elastic/eui/src/services/color/eui_palettes';
6538
+ export type { rgbDef, HSV, RGB } from '@elastic/eui/src/services/color/color_types';
6539
+ export { getSteppedGradient } from '@elastic/eui/src/services/color/stepped_gradient';
6540
+ export * from '@elastic/eui/src/services/color/manipulation';
6541
+ export * from '@elastic/eui/src/services/color/contrast';
6542
+
6543
+ }
6544
+ declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_colors' {
6545
+ import { _EuiThemeColors, _EuiThemeBrandColors, _EuiThemeBrandTextColors, _EuiThemeShadeColors, _EuiThemeSpecialColors, _EuiThemeTextColors, _EuiThemeColorsMode } from '@elastic/eui/src/global_styling/variables/colors';
6546
+ export const brand_colors: _EuiThemeBrandColors;
6547
+ export const brand_text_colors: _EuiThemeBrandTextColors;
6548
+ export const shade_colors: _EuiThemeShadeColors;
6549
+ export const special_colors: _EuiThemeSpecialColors;
6550
+ export const text_colors: _EuiThemeTextColors;
6551
+ export const light_colors: _EuiThemeColorsMode;
6552
+ export const dark_shades: _EuiThemeShadeColors;
6553
+ export const dark_colors_ams: _EuiThemeColorsMode;
6554
+ export const colors: _EuiThemeColors;
6555
+
6556
+ }
6557
+ declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_animation' {
6558
+ import { _EuiThemeAnimationSpeeds, _EuiThemeAnimationEasings, _EuiThemeAnimation } from '@elastic/eui/src/global_styling/variables/animations';
6559
+ export const animation_speed: _EuiThemeAnimationSpeeds;
6560
+ export const animation_ease: _EuiThemeAnimationEasings;
6561
+ export const animation: _EuiThemeAnimation;
6562
+
6563
+ }
6564
+ declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_size' {
6565
+ import { _EuiThemeBase, _EuiThemeSizes } from '@elastic/eui/src/global_styling/variables';
6566
+ export const base: _EuiThemeBase;
6567
+ export const size: _EuiThemeSizes;
6568
+
6569
+ }
6570
+ declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_borders' {
6571
+ import { _EuiThemeBorder } from '@elastic/eui/src/global_styling/variables';
6572
+ export const border: _EuiThemeBorder;
6573
+
6574
+ }
6575
+ declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_levels' {
6576
+ import { _EuiThemeLevels } from '@elastic/eui/src/global_styling/variables';
6577
+ export const levels: _EuiThemeLevels;
6578
+
6579
+ }
6580
+ declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_typography' {
6581
+ import { _EuiThemeFont, _EuiThemeFontBase, _EuiThemeFontScales, _EuiThemeFontWeights } from '@elastic/eui/src/global_styling/variables/typography';
6582
+ export const fontScale: _EuiThemeFontScales;
6583
+ export const fontBase: _EuiThemeFontBase;
6584
+ export const fontWeight: _EuiThemeFontWeights;
6585
+ export const font: _EuiThemeFont;
6586
+
6587
+ }
6588
+ declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_states' {
6589
+ import { _EuiThemeFocus } from '@elastic/eui/src/global_styling/variables/states';
6590
+ export const focus: _EuiThemeFocus;
6591
+
6592
+ }
6593
+ declare module '@elastic/eui/src/themes/amsterdam/theme' {
6594
+ import { EuiThemeShape } from '@elastic/eui/src/services/theme/types';
6595
+ export const AMSTERDAM_NAME_KEY = "EUI_THEME_AMSTERDAM";
6596
+ export const euiThemeAmsterdam: EuiThemeShape;
6597
+ export const EuiThemeAmsterdam: {
6598
+ model: EuiThemeShape;
6599
+ root: EuiThemeShape;
6600
+ key: string;
6601
+ };
6602
+
6603
+ }
6604
+ declare module '@elastic/eui/src/services/theme/context' {
6605
+
6606
+ import { EuiThemeColorModeStandard, EuiThemeSystem, EuiThemeComputed } from '@elastic/eui/src/services/theme/types';
6607
+ export const EuiSystemContext: import("react").Context<EuiThemeSystem<{}>>;
6608
+ export const EuiModificationsContext: import("react").Context<import ("@elastic/eui").RecursivePartial<import ("@elastic/eui/src/services/theme/types").EuiThemeShape>>;
6609
+ export const EuiColorModeContext: import("react").Context<EuiThemeColorModeStandard>;
6610
+ export const EuiThemeContext: import("react").Context<EuiThemeComputed<{}>>;
6611
+
6612
+ }
6613
+ declare module '@elastic/eui/src/services/theme/provider' {
6614
+ import React, { PropsWithChildren } from 'react';
6615
+ import { EuiThemeColorMode, EuiThemeSystem, EuiThemeModifications } from '@elastic/eui/src/services/theme/types';
6616
+ export interface EuiThemeProviderProps<T> {
6617
+ theme?: EuiThemeSystem<T>;
6618
+ colorMode?: EuiThemeColorMode;
6619
+ modify?: EuiThemeModifications<T>;
6620
+ children: any;
6621
+ }
6622
+ export const EuiThemeProvider: <T extends {} = {}>({ theme: _system, colorMode: _colorMode, modify: _modifications, children, }: React.PropsWithChildren<EuiThemeProviderProps<T>>) => JSX.Element;
6623
+
6624
+ }
6625
+ declare module '@elastic/eui/src/services/theme' {
6626
+ export { EuiSystemContext, EuiThemeContext, EuiModificationsContext, EuiColorModeContext, } from '@elastic/eui/src/services/theme/context';
6627
+ export type { UseEuiTheme, WithEuiThemeProps } from '@elastic/eui/src/services/theme/hooks';
6628
+ export { useEuiTheme, withEuiTheme } from '@elastic/eui/src/services/theme/hooks';
6629
+ export type { EuiThemeProviderProps } from '@elastic/eui/src/services/theme/provider';
6630
+ export { EuiThemeProvider } from '@elastic/eui/src/services/theme/provider';
6631
+ export { buildTheme, computed, isInverseColorMode, getColorMode, getComputed, getOn, mergeDeep, setOn, Computed, } from '@elastic/eui/src/services/theme/utils';
6632
+ export type { ComputedThemeShape, EuiThemeColorMode, EuiThemeColorModeStandard, EuiThemeComputed, EuiThemeModifications, EuiThemeShape, EuiThemeSystem, } from '@elastic/eui/src/services/theme/types';
6633
+ export { COLOR_MODES_STANDARD } from '@elastic/eui/src/services/theme/types';
6634
+
6635
+ }
6636
+ declare module '@elastic/eui/src/services/throttle' {
6637
+ export const throttle: (fn: (...args: any[]) => void, wait?: number) => (...args: any[]) => void;
6638
+
6639
+ }
6640
+ declare module '@elastic/eui/src/services/breakpoint/currentEuiBreakpoint' {
6641
+ import React, { FunctionComponent } from 'react';
6642
+ import { _EuiThemeBreakpoint } from '@elastic/eui/src/global_styling/variables/breakpoint'; type CurrentEuiBreakpoint = _EuiThemeBreakpoint | undefined;
6643
+ export const CurrentEuiBreakpointContext: React.Context<CurrentEuiBreakpoint>;
6644
+ /**
6645
+ * Top level provider (nested within EuiProvider) which provides a single
6646
+ * resize listener that returns the current breakpoint based on window width
6647
+ */
6648
+ export const CurrentEuiBreakpointProvider: FunctionComponent;
6649
+ /**
6650
+ * Hook util / syntactical sugar
6651
+ */
6652
+ export const useCurrentEuiBreakpoint: () => CurrentEuiBreakpoint;
6653
+ export {};
6654
+
6655
+ }
6656
+ declare module '@elastic/eui/src/services/breakpoint/useIsWithinBreakpoints' {
6657
+ import { _EuiThemeBreakpoint } from '@elastic/eui/src/global_styling/variables/breakpoint';
6658
+ /**
6659
+ * Given the current window.innerWidth and an array of breakpoint keys,
6660
+ * this hook stores state and returns true or false if the window.innerWidth
6661
+ * falls within any of the named breakpoints.
6662
+ *
6663
+ * @param {_EuiThemeBreakpoint[]} sizes An array of named EUI breakpoints
6664
+ * @param {boolean} isResponsive Some components have the option to turn off responsive behavior.
6665
+ * Since hooks can't be called conditionally, it's easier to pass the condition into the hook
6666
+ * @returns {boolean} Returns `true` if current breakpoint name is included in `sizes`
6667
+ */
6668
+ export const useIsWithinBreakpoints: (sizes: _EuiThemeBreakpoint[], isResponsive?: boolean) => boolean;
6669
+
6670
+ }
6671
+ declare module '@elastic/eui/src/services/breakpoint' {
6672
+ export * from '@elastic/eui/src/services/breakpoint/breakpoint';
6673
+ export * from '@elastic/eui/src/services/breakpoint/currentEuiBreakpoint';
6674
+ export * from '@elastic/eui/src/services/breakpoint/useIsWithinBreakpoints';
6717
6675
 
6718
6676
  }
6719
6677
  declare module '@elastic/eui/src/services/color_picker/color_picker' {
@@ -7094,6 +7052,54 @@ declare module '@elastic/eui/src/services/window_event/window_event' {
7094
7052
  declare module '@elastic/eui/src/services/window_event' {
7095
7053
  export { EuiWindowEvent } from '@elastic/eui/src/services/window_event/window_event';
7096
7054
 
7055
+ }
7056
+ declare module '@elastic/eui/src/services/hooks/useUpdateEffect' {
7057
+ export const useUpdateEffect: (effect: Function, deps: unknown[]) => void;
7058
+
7059
+ }
7060
+ declare module '@elastic/eui/src/services/hooks/useDependentState' {
7061
+
7062
+ export function useDependentState<T>(valueFn: (previousState: undefined | T) => T, deps: unknown[]): readonly [T, import("react").Dispatch<import("react").SetStateAction<T>>];
7063
+
7064
+ }
7065
+ declare module '@elastic/eui/src/services/hooks/useCombinedRefs' {
7066
+ import { MutableRefObject, Ref } from 'react';
7067
+ export const useCombinedRefs: <T>(refs: (Ref<T> | MutableRefObject<T | undefined> | undefined)[]) => (node: T) => void;
7068
+
7069
+ }
7070
+ declare module '@elastic/eui/src/services/hooks/useForceRender' {
7071
+ export const useForceRender: () => () => void;
7072
+
7073
+ }
7074
+ declare module '@elastic/eui/src/services/hooks/useLatest' {
7075
+ import { MutableRefObject } from 'react';
7076
+ /**
7077
+ * Wraps the given `value` into a `MutableRefObject` and keeps the `current`
7078
+ * value up-to-date on every render cycle.
7079
+ */
7080
+ export function useLatest<Value>(value: Value): MutableRefObject<Value | null>;
7081
+
7082
+ }
7083
+ declare module '@elastic/eui/src/services/hooks/useMouseMove' {
7084
+ import { MouseEvent, TouchEvent } from 'react';
7085
+ export function isMouseEvent<T = HTMLDivElement>(event: MouseEvent<T> | TouchEvent<T>): event is MouseEvent<T>;
7086
+ export function useMouseMove<T = HTMLDivElement>(handleChange: (location: {
7087
+ x: number;
7088
+ y: number;
7089
+ }, isFirstInteraction?: boolean) => void, interactionConditional?: any): [
7090
+ (e: MouseEvent<T>) => void,
7091
+ (e: MouseEvent<T> | TouchEvent<T>, isFirstInteraction?: boolean) => void
7092
+ ];
7093
+
7094
+ }
7095
+ declare module '@elastic/eui/src/services/hooks' {
7096
+ export * from '@elastic/eui/src/services/hooks/useDependentState';
7097
+ export * from '@elastic/eui/src/services/hooks/useCombinedRefs';
7098
+ export * from '@elastic/eui/src/services/hooks/useForceRender';
7099
+ export * from '@elastic/eui/src/services/hooks/useLatest';
7100
+ export * from '@elastic/eui/src/services/hooks/useMouseMove';
7101
+ export * from '@elastic/eui/src/services/hooks/useUpdateEffect';
7102
+
7097
7103
  }
7098
7104
  declare module '@elastic/eui/src/services' {
7099
7105
  import * as keys from '@elastic/eui/src/services/keys';
@@ -7102,7 +7108,7 @@ declare module '@elastic/eui/src/services' {
7102
7108
  export type { HorizontalAlignment } from '@elastic/eui/src/services/alignment';
7103
7109
  export { LEFT_ALIGNMENT, RIGHT_ALIGNMENT, CENTER_ALIGNMENT } from '@elastic/eui/src/services/alignment';
7104
7110
  export type { EuiBreakpointSize } from '@elastic/eui/src/services/breakpoint';
7105
- export { BREAKPOINTS, BREAKPOINT_KEYS, getBreakpoint, isWithinBreakpoints, isWithinMaxBreakpoint, isWithinMinBreakpoint, } from '@elastic/eui/src/services/breakpoint';
7111
+ export { BREAKPOINTS, BREAKPOINT_KEYS, getBreakpoint, isWithinBreakpoints, useIsWithinBreakpoints, isWithinMaxBreakpoint, isWithinMinBreakpoint, CurrentEuiBreakpointContext, CurrentEuiBreakpointProvider, useCurrentEuiBreakpoint, } from '@elastic/eui/src/services/breakpoint';
7106
7112
  export type { HSV } from '@elastic/eui/src/services/color';
7107
7113
  export { isColorDark, isValidHex, calculateContrast, calculateLuminance, hexToHsv, hexToRgb, hsvToHex, hsvToRgb, rgbToHex, rgbToHsv, VISUALIZATION_COLORS, DEFAULT_VISUALIZATION_COLOR, colorPalette, euiPaletteForLightBackground, euiPaletteForDarkBackground, euiPaletteColorBlind, euiPaletteColorBlindBehindText, euiPaletteForStatus, euiPaletteForTemperature, euiPaletteComplimentary, euiPaletteNegative, euiPalettePositive, euiPaletteCool, euiPaletteWarm, euiPaletteGray, getSteppedGradient, transparentize, tint, shade, tintOrShade, shadeOrTint, saturate, desaturate, lightness, makeHighContrastColor, makeDisabledContrastColor, } from '@elastic/eui/src/services/color';
7108
7114
  export type { EuiSetColorMethod } from '@elastic/eui/src/services/color_picker';
@@ -7549,13 +7555,12 @@ declare module '@elastic/eui/src/components/badge/beta_badge/beta_badge' {
7549
7555
  title?: string;
7550
7556
  }> & {
7551
7557
  label: ReactNode;
7552
- };
7553
- interface LabelAsString {
7558
+ }; type LabelAsString = {
7554
7559
  /**
7555
7560
  * One word label like "Beta" or "Lab"
7556
7561
  */
7557
7562
  label: string;
7558
- } type BadgeProps = {
7563
+ }; type BadgeProps = {
7559
7564
  /**
7560
7565
  * Supply an icon type if the badge should just be an icon
7561
7566
  */
@@ -7808,16 +7813,36 @@ declare module '@elastic/eui/src/components/link' {
7808
7813
  export { EuiLink } from '@elastic/eui/src/components/link/link';
7809
7814
 
7810
7815
  }
7811
- declare module '@elastic/eui/src/components/breadcrumbs/breadcrumbs' {
7812
- import { AriaAttributes, FunctionComponent, HTMLAttributes, MouseEventHandler, ReactNode } from 'react';
7816
+ declare module '@elastic/eui/src/components/breadcrumbs/breadcrumb.styles' {
7817
+ import { UseEuiTheme } from '@elastic/eui/src/services';
7818
+ export const euiBreadcrumbStyles: (euiThemeContext: UseEuiTheme) => {
7819
+ euiBreadcrumb: import("@emotion/utils").SerializedStyles;
7820
+ isTruncated: import("@emotion/utils").SerializedStyles;
7821
+ isCollapsed: import("@emotion/utils").SerializedStyles;
7822
+ page: import("@emotion/utils").SerializedStyles;
7823
+ application: import("@emotion/utils").SerializedStyles;
7824
+ };
7825
+ export const euiBreadcrumbContentStyles: (euiThemeContext: UseEuiTheme) => {
7826
+ euiBreadcrumb__content: import("@emotion/utils").SerializedStyles;
7827
+ isTruncated: import("@emotion/utils").SerializedStyles;
7828
+ isTruncatedLast: import("@emotion/utils").SerializedStyles;
7829
+ page: import("@emotion/utils").SerializedStyles;
7830
+ application: import("@emotion/utils").SerializedStyles;
7831
+ applicationStyles: {
7832
+ onlyChild: import("@emotion/utils").SerializedStyles;
7833
+ firstChild: import("@emotion/utils").SerializedStyles;
7834
+ lastChild: import("@emotion/utils").SerializedStyles;
7835
+ };
7836
+ };
7837
+
7838
+ }
7839
+ declare module '@elastic/eui/src/components/breadcrumbs/breadcrumb' {
7840
+ import { FunctionComponent, HTMLAttributes, AriaAttributes, MouseEventHandler, ReactNode } from 'react';
7813
7841
  import { CommonProps } from '@elastic/eui/src/components/common';
7814
7842
  import { EuiLinkColor } from '@elastic/eui/src/components/link';
7815
- import { EuiBreakpointSize } from '@elastic/eui/src/services/breakpoint';
7816
- export type EuiBreadcrumbResponsiveMaxCount = {
7817
- [key in EuiBreakpointSize]?: number;
7818
- };
7819
- export type EuiBreadcrumb = HTMLAttributes<HTMLElement> & CommonProps & {
7843
+ export type EuiBreadcrumbProps = Omit<HTMLAttributes<HTMLElement>, 'color' | 'aria-current'> & CommonProps & {
7820
7844
  href?: string;
7845
+ rel?: string;
7821
7846
  onClick?: MouseEventHandler<HTMLAnchorElement>;
7822
7847
  /**
7823
7848
  * Visible label of the breadcrumb
@@ -7835,6 +7860,34 @@ declare module '@elastic/eui/src/components/breadcrumbs/breadcrumbs' {
7835
7860
  * Override the existing `aria-current` which defaults to `page` for the last breadcrumb
7836
7861
  */
7837
7862
  'aria-current'?: AriaAttributes['aria-current'];
7863
+ }; type _EuiBreadcrumbProps = {
7864
+ type: 'page' | 'application';
7865
+ isFirstBreadcrumb?: boolean;
7866
+ isLastBreadcrumb?: boolean;
7867
+ isOnlyBreadcrumb?: boolean;
7868
+ highlightLastBreadcrumb?: boolean;
7869
+ } & Pick<EuiBreadcrumbProps, 'truncate'>;
7870
+ export const EuiBreadcrumb: FunctionComponent<HTMLAttributes<HTMLLIElement> & _EuiBreadcrumbProps>;
7871
+ export const EuiBreadcrumbContent: FunctionComponent<EuiBreadcrumbProps & _EuiBreadcrumbProps>;
7872
+ export const EuiBreadcrumbCollapsed: FunctionComponent<_EuiBreadcrumbProps>;
7873
+ export {};
7874
+
7875
+ }
7876
+ declare module '@elastic/eui/src/components/breadcrumbs/breadcrumbs.styles' {
7877
+ import { UseEuiTheme } from '@elastic/eui/src/services';
7878
+ export const euiBreadcrumbsListStyles: (euiThemeContext: UseEuiTheme) => {
7879
+ euiBreadcrumbs__list: import("@emotion/utils").SerializedStyles;
7880
+ isTruncated: import("@emotion/utils").SerializedStyles;
7881
+ };
7882
+
7883
+ }
7884
+ declare module '@elastic/eui/src/components/breadcrumbs/breadcrumbs' {
7885
+ import { FunctionComponent } from 'react';
7886
+ import { CommonProps, ExclusiveUnion } from '@elastic/eui/src/components/common';
7887
+ import { EuiBreakpointSize } from '@elastic/eui/src/services';
7888
+ import { EuiBreadcrumbProps } from '@elastic/eui/src/components/breadcrumbs/breadcrumb';
7889
+ export type EuiBreadcrumbResponsiveMaxCount = {
7890
+ [key in EuiBreakpointSize]?: number;
7838
7891
  };
7839
7892
  export type EuiBreadcrumbsProps = CommonProps & {
7840
7893
  /**
@@ -7861,13 +7914,30 @@ declare module '@elastic/eui/src/components/breadcrumbs/breadcrumbs' {
7861
7914
  /**
7862
7915
  * The array of individual #EuiBreadcrumb items
7863
7916
  */
7864
- breadcrumbs: EuiBreadcrumb[];
7917
+ breadcrumbs: EuiBreadcrumbProps[];
7918
+ /**
7919
+ * Determines breadcrumbs appearance, with `page` being the default styling.
7920
+ * Application breadcrumbs should only be once per page, in (e.g.) EuiHeader
7921
+ */
7922
+ type?: 'page' | 'application';
7923
+ /**
7924
+ * Whether the last breadcrumb should visually (and accessibly, to screen readers)
7925
+ * be highlighted as the current page. Defaults to true.
7926
+ */
7927
+ lastBreadcrumbIsCurrentPage?: boolean;
7865
7928
  };
7866
7929
  export const EuiBreadcrumbs: FunctionComponent<EuiBreadcrumbsProps>;
7930
+ export const useResponsiveMax: (responsive: EuiBreadcrumbsProps['responsive'], max: EuiBreadcrumbsProps['max']) => number | null | undefined; type _EuiBreadcrumbCollapsedObj = {
7931
+ isCollapsedButton: true;
7932
+ overflowBreadcrumbs: EuiBreadcrumbProps[];
7933
+ }; type _EuiBreadcrumbsObjs = Array<ExclusiveUnion<EuiBreadcrumbProps, _EuiBreadcrumbCollapsedObj>>;
7934
+ export const limitBreadcrumbs: (breadcrumbs: EuiBreadcrumbsProps['breadcrumbs'], max: number) => _EuiBreadcrumbsObjs;
7935
+ export {};
7867
7936
 
7868
7937
  }
7869
7938
  declare module '@elastic/eui/src/components/breadcrumbs' {
7870
- export type { EuiBreadcrumb, EuiBreadcrumbsProps, EuiBreadcrumbResponsiveMaxCount, } from '@elastic/eui/src/components/breadcrumbs/breadcrumbs';
7939
+ export type { EuiBreadcrumbProps as EuiBreadcrumb } from '@elastic/eui/src/components/breadcrumbs/breadcrumb';
7940
+ export type { EuiBreadcrumbsProps, EuiBreadcrumbResponsiveMaxCount, } from '@elastic/eui/src/components/breadcrumbs/breadcrumbs';
7871
7941
  export { EuiBreadcrumbs } from '@elastic/eui/src/components/breadcrumbs/breadcrumbs';
7872
7942
 
7873
7943
  }
@@ -9285,16 +9355,14 @@ declare module '@elastic/eui/src/components/comment_list/comment_event.styles' {
9285
9355
  };
9286
9356
  export const euiCommentEventHeaderStyles: ({ euiTheme }: UseEuiTheme) => {
9287
9357
  euiCommentEvent__header: import("@emotion/utils").SerializedStyles;
9288
- euiCommentEvent__headerPanel: import("@emotion/utils").SerializedStyles;
9358
+ regular: import("@emotion/utils").SerializedStyles;
9359
+ hasEventColor: import("@emotion/utils").SerializedStyles;
9289
9360
  euiCommentEvent__headerMain: import("@emotion/utils").SerializedStyles;
9290
9361
  euiCommentEvent__headerData: import("@emotion/utils").SerializedStyles;
9291
9362
  euiCommentEvent__headerEventIcon: import("@emotion/utils").SerializedStyles;
9292
9363
  euiCommentEvent__headerUsername: import("@emotion/utils").SerializedStyles;
9293
9364
  euiCommentEvent__headerEvent: import("@emotion/utils").SerializedStyles;
9294
- euiCommentEvent__headerTimestamp: import("@emotion/utils").SerializedStyles;
9295
9365
  euiCommentEvent__headerActions: import("@emotion/utils").SerializedStyles;
9296
- regular: import("@emotion/utils").SerializedStyles;
9297
- hasEventColor: import("@emotion/utils").SerializedStyles;
9298
9366
  };
9299
9367
  export const euiCommentEventBodyStyles: ({ euiTheme }: UseEuiTheme) => {
9300
9368
  euiCommentEvent__body: import("@emotion/utils").SerializedStyles;
@@ -9846,27 +9914,18 @@ declare module '@elastic/eui/src/components/datagrid/utils/row_heights' {
9846
9914
  };
9847
9915
 
9848
9916
  }
9849
- declare module '@elastic/eui/src/components/token/token_map' {
9850
- import { TokenProps } from '@elastic/eui/src/components/token/token';
9851
- export type EuiTokenMapType = 'tokenAlias' | 'tokenAnnotation' | 'tokenArray' | 'tokenBinary' | 'tokenBoolean' | 'tokenClass' | 'tokenCompletionSuggester' | 'tokenConstant' | 'tokenDate' | 'tokenDenseVector' | 'tokenElement' | 'tokenEnum' | 'tokenEnumMember' | 'tokenEvent' | 'tokenException' | 'tokenField' | 'tokenFile' | 'tokenFlattened' | 'tokenFunction' | 'tokenGeo' | 'tokenHistogram' | 'tokenInterface' | 'tokenIP' | 'tokenJoin' | 'tokenKey' | 'tokenKeyword' | 'tokenMethod' | 'tokenMetricCounter' | 'tokenMetricGauge' | 'tokenModule' | 'tokenNamespace' | 'tokenNested' | 'tokenNull' | 'tokenNumber' | 'tokenObject' | 'tokenOperator' | 'tokenPackage' | 'tokenParameter' | 'tokenPercolator' | 'tokenProperty' | 'tokenRange' | 'tokenRankFeature' | 'tokenRankFeatures' | 'tokenRepo' | 'tokenSearchType' | 'tokenShape' | 'tokenString' | 'tokenStruct' | 'tokenSymbol' | 'tokenTag' | 'tokenText' | 'tokenTokenCount' | 'tokenVariable';
9852
- /**
9853
- * Most of the style combinations for tokens are semi-arbitrary. However, there was an effort
9854
- * to use the square shape for more common token types like string and number. Reserving the
9855
- * circle shape for more uncommon token types so they grab attention.
9856
- */
9857
- export const TOKEN_MAP: {
9858
- [mapType in EuiTokenMapType]: Omit<TokenProps, 'iconType'>;
9859
- };
9860
-
9861
- }
9862
- declare module '@elastic/eui/src/components/token/token' {
9863
- import { FunctionComponent, HTMLAttributes } from 'react';
9917
+ declare module '@elastic/eui/src/components/token/token_types' {
9918
+ import { HTMLAttributes } from 'react';
9864
9919
  import { CommonProps } from '@elastic/eui/src/components/common';
9865
- import { IconType } from '@elastic/eui/src/components/icon'; type TokenSize = 'xs' | 's' | 'm' | 'l'; type TokenShape = 'circle' | 'square' | 'rectangle'; type TokenFill = 'dark' | 'light' | 'none'; type TokenColor = 'euiColorVis0' | 'euiColorVis1' | 'euiColorVis2' | 'euiColorVis3' | 'euiColorVis4' | 'euiColorVis5' | 'euiColorVis6' | 'euiColorVis7' | 'euiColorVis8' | 'euiColorVis9' | 'gray';
9866
- export const SIZES: TokenSize[];
9867
- export const SHAPES: TokenShape[];
9868
- export const FILLS: TokenFill[];
9869
- export const COLORS: TokenColor[];
9920
+ import { IconType } from '@elastic/eui/src/components/icon';
9921
+ export const SIZES: readonly ["xs", "s", "m", "l"];
9922
+ export type TokenSize = typeof SIZES[number];
9923
+ export const SHAPES: readonly ["circle", "square", "rectangle"];
9924
+ export type TokenShape = typeof SHAPES[number];
9925
+ export const FILLS: readonly ["light", "dark", "none"];
9926
+ export type TokenFill = typeof FILLS[number];
9927
+ export const COLORS: readonly ["euiColorVis0", "euiColorVis1", "euiColorVis2", "euiColorVis3", "euiColorVis4", "euiColorVis5", "euiColorVis6", "euiColorVis7", "euiColorVis8", "euiColorVis9", "gray"];
9928
+ export type TokenColor = typeof COLORS[number];
9870
9929
  export interface TokenProps {
9871
9930
  /**
9872
9931
  * An EUI icon type
@@ -9874,8 +9933,8 @@ declare module '@elastic/eui/src/components/token/token' {
9874
9933
  iconType: IconType;
9875
9934
  /**
9876
9935
  * For best results use one of the vis color names (or 'gray').
9877
- * Or supply your own color (can be used with dark or no fill only).
9878
- * Default: `gray`
9936
+ * Or supply your own HEX color. The `fill='light'` (lightened background) will always be overridden by `fill='dark'` (solid background).
9937
+ * Default: `gray` for glyphs or one of the vis colors for prefab token types
9879
9938
  */
9880
9939
  color?: TokenColor | string;
9881
9940
  /**
@@ -9901,13 +9960,61 @@ declare module '@elastic/eui/src/components/token/token' {
9901
9960
  'aria-describedby'?: string;
9902
9961
  }
9903
9962
  export type EuiTokenProps = CommonProps & TokenProps & Omit<HTMLAttributes<HTMLSpanElement>, 'title'>;
9963
+
9964
+ }
9965
+ declare module '@elastic/eui/src/components/token/token_map' {
9966
+ import type { TokenProps } from '@elastic/eui/src/components/token/token_types';
9967
+ export type EuiTokenMapType = 'tokenAlias' | 'tokenAnnotation' | 'tokenArray' | 'tokenBinary' | 'tokenBoolean' | 'tokenClass' | 'tokenCompletionSuggester' | 'tokenConstant' | 'tokenDate' | 'tokenDenseVector' | 'tokenElement' | 'tokenEnum' | 'tokenEnumMember' | 'tokenEvent' | 'tokenException' | 'tokenField' | 'tokenFile' | 'tokenFlattened' | 'tokenFunction' | 'tokenGeo' | 'tokenHistogram' | 'tokenInterface' | 'tokenIP' | 'tokenJoin' | 'tokenKey' | 'tokenKeyword' | 'tokenMethod' | 'tokenMetricCounter' | 'tokenMetricGauge' | 'tokenModule' | 'tokenNamespace' | 'tokenNested' | 'tokenNull' | 'tokenNumber' | 'tokenObject' | 'tokenOperator' | 'tokenPackage' | 'tokenParameter' | 'tokenPercolator' | 'tokenProperty' | 'tokenRange' | 'tokenRankFeature' | 'tokenRankFeatures' | 'tokenRepo' | 'tokenSearchType' | 'tokenShape' | 'tokenString' | 'tokenStruct' | 'tokenSymbol' | 'tokenTag' | 'tokenText' | 'tokenTokenCount' | 'tokenVariable';
9968
+ /**
9969
+ * Most of the style combinations for tokens are semi-arbitrary. However, there was an effort
9970
+ * to use the square shape for more common token types like string and number. Reserving the
9971
+ * circle shape for more uncommon token types so they grab attention.
9972
+ */
9973
+ export const TOKEN_MAP: {
9974
+ [mapType in EuiTokenMapType]: Omit<TokenProps, 'iconType'>;
9975
+ };
9976
+
9977
+ }
9978
+ declare module '@elastic/eui/src/components/token/token.styles' {
9979
+ import { UseEuiTheme } from '@elastic/eui/src/services';
9980
+ import type { TokenFill } from '@elastic/eui/src/components/token/token_types';
9981
+ export const euiTokenStyles: ({ euiTheme, colorMode }: UseEuiTheme, fill: TokenFill) => {
9982
+ euiToken: import("@emotion/utils").SerializedStyles;
9983
+ circle: import("@emotion/utils").SerializedStyles;
9984
+ square: import("@emotion/utils").SerializedStyles;
9985
+ rectangle: import("@emotion/utils").SerializedStyles;
9986
+ xs: import("@emotion/utils").SerializedStyles;
9987
+ s: import("@emotion/utils").SerializedStyles;
9988
+ m: import("@emotion/utils").SerializedStyles;
9989
+ l: import("@emotion/utils").SerializedStyles;
9990
+ euiColorVis0: import("@emotion/utils").SerializedStyles;
9991
+ euiColorVis1: import("@emotion/utils").SerializedStyles;
9992
+ euiColorVis2: import("@emotion/utils").SerializedStyles;
9993
+ euiColorVis3: import("@emotion/utils").SerializedStyles;
9994
+ euiColorVis4: import("@emotion/utils").SerializedStyles;
9995
+ euiColorVis5: import("@emotion/utils").SerializedStyles;
9996
+ euiColorVis6: import("@emotion/utils").SerializedStyles;
9997
+ euiColorVis7: import("@emotion/utils").SerializedStyles;
9998
+ euiColorVis8: import("@emotion/utils").SerializedStyles;
9999
+ euiColorVis9: import("@emotion/utils").SerializedStyles;
10000
+ gray: import("@emotion/utils").SerializedStyles;
10001
+ customColor: import("@emotion/utils").SerializedStyles;
10002
+ light: import("@emotion/utils").SerializedStyles;
10003
+ dark: import("@emotion/utils").SerializedStyles;
10004
+ none: import("@emotion/utils").SerializedStyles;
10005
+ };
10006
+
10007
+ }
10008
+ declare module '@elastic/eui/src/components/token/token' {
10009
+ import { FunctionComponent } from 'react';
10010
+ import type { EuiTokenProps } from '@elastic/eui/src/components/token/token_types';
9904
10011
  export const EuiToken: FunctionComponent<EuiTokenProps>;
9905
- export {};
9906
10012
 
9907
10013
  }
9908
10014
  declare module '@elastic/eui/src/components/token' {
9909
- export type { EuiTokenProps } from '@elastic/eui/src/components/token/token';
9910
- export { EuiToken, SIZES as TOKEN_SIZES, SHAPES as TOKEN_SHAPES, COLORS as TOKEN_COLORS, } from '@elastic/eui/src/components/token/token';
10015
+ export type { EuiTokenProps } from '@elastic/eui/src/components/token/token_types';
10016
+ export { SIZES as TOKEN_SIZES, SHAPES as TOKEN_SHAPES, COLORS as TOKEN_COLORS, } from '@elastic/eui/src/components/token/token_types';
10017
+ export { EuiToken } from '@elastic/eui/src/components/token/token';
9911
10018
 
9912
10019
  }
9913
10020
  declare module '@elastic/eui/src/components/datagrid/data_grid_types' {
@@ -12403,7 +12510,7 @@ declare module '@elastic/eui/src/components/date_picker/date_picker_range' {
12403
12510
  }
12404
12511
  declare module '@elastic/eui/src/components/responsive/hide_for' {
12405
12512
  import { ReactNode, FunctionComponent } from 'react';
12406
- import { EuiBreakpointSize } from '@elastic/eui/src/services/breakpoint';
12513
+ import { EuiBreakpointSize } from '@elastic/eui/src/services';
12407
12514
  export type EuiHideForBreakpoints = EuiBreakpointSize;
12408
12515
  export interface EuiHideForProps {
12409
12516
  /**
@@ -12421,7 +12528,7 @@ declare module '@elastic/eui/src/components/responsive/hide_for' {
12421
12528
  }
12422
12529
  declare module '@elastic/eui/src/components/responsive/show_for' {
12423
12530
  import { ReactNode, FunctionComponent } from 'react';
12424
- import { EuiBreakpointSize } from '@elastic/eui/src/services/breakpoint';
12531
+ import { EuiBreakpointSize } from '@elastic/eui/src/services';
12425
12532
  export type EuiShowForBreakpoints = EuiBreakpointSize;
12426
12533
  export interface EuiShowForProps {
12427
12534
  /**
@@ -12786,24 +12893,9 @@ declare module '@elastic/eui/src/components/delay_render' {
12786
12893
  export { EuiDelayRender } from '@elastic/eui/src/components/delay_render/delay_render';
12787
12894
 
12788
12895
  }
12789
- declare module '@elastic/eui/src/components/description_list/description_list_title' {
12790
- import { HTMLAttributes, FunctionComponent } from 'react';
12791
- import { CommonProps } from '@elastic/eui/src/components/common';
12792
- export const EuiDescriptionListTitle: FunctionComponent<CommonProps & HTMLAttributes<HTMLElement>>;
12793
-
12794
- }
12795
- declare module '@elastic/eui/src/components/description_list/description_list_description' {
12796
- import { HTMLAttributes, FunctionComponent } from 'react';
12797
- import { CommonProps } from '@elastic/eui/src/components/common';
12798
- export const EuiDescriptionListDescription: FunctionComponent<CommonProps & HTMLAttributes<HTMLElement>>;
12799
-
12800
- }
12801
- declare module '@elastic/eui/src/components/description_list/description_list' {
12802
- import { HTMLAttributes, ReactNode, FunctionComponent } from 'react';
12896
+ declare module '@elastic/eui/src/components/description_list/description_list_types' {
12897
+ import { HTMLAttributes, ReactNode } from 'react';
12803
12898
  import { CommonProps } from '@elastic/eui/src/components/common';
12804
- export type EuiDescriptionListType = keyof typeof typesToClassNameMap;
12805
- export type EuiDescriptionListAlignment = keyof typeof alignmentsToClassNameMap;
12806
- export type EuiDescriptionListTextStyle = keyof typeof textStylesToClassNameMap;
12807
12899
  export interface EuiDescriptionListProps {
12808
12900
  listItems?: Array<{
12809
12901
  title: NonNullable<ReactNode>;
@@ -12821,7 +12913,7 @@ declare module '@elastic/eui/src/components/description_list/description_list' {
12821
12913
  * How should the content be styled, by default
12822
12914
  * this will emphasize the title
12823
12915
  */
12824
- textStyle?: EuiDescriptionListTextStyle;
12916
+ textStyle?: 'normal' | 'reverse';
12825
12917
  /**
12826
12918
  * How each item should be laid out
12827
12919
  */
@@ -12834,27 +12926,107 @@ declare module '@elastic/eui/src/components/description_list/description_list' {
12834
12926
  * Props object to be passed to `EuiDescriptionListDescription`
12835
12927
  */
12836
12928
  descriptionProps?: HTMLAttributes<HTMLElement> & CommonProps;
12837
- } const typesToClassNameMap: {
12838
- row: string;
12839
- inline: string;
12840
- column: string;
12841
- responsiveColumn: string;
12929
+ }
12930
+ export const TYPES: readonly ["row", "inline", "column", "responsiveColumn"];
12931
+ export type EuiDescriptionListType = typeof TYPES[number];
12932
+ export const ALIGNMENTS: readonly ["center", "left"];
12933
+ export type EuiDescriptionListAlignment = typeof ALIGNMENTS[number];
12934
+ export const TEXT_STYLES: readonly ["normal", "reverse"];
12935
+ export type EuiDescriptionListTextStyle = typeof TEXT_STYLES[number];
12936
+
12937
+ }
12938
+ declare module '@elastic/eui/src/components/description_list/description_list_title.styles' {
12939
+ import { UseEuiTheme } from '@elastic/eui/src/services';
12940
+ export const euiDescriptionListTitleStyles: (euiThemeContext: UseEuiTheme) => {
12941
+ euiDescriptionList__title: import("@emotion/utils").SerializedStyles;
12942
+ row: import("@emotion/utils").SerializedStyles;
12943
+ column: import("@emotion/utils").SerializedStyles;
12944
+ responsiveColumn: import("@emotion/utils").SerializedStyles;
12945
+ inline: import("@emotion/utils").SerializedStyles;
12946
+ fontStyles: {
12947
+ normal: import("@emotion/utils").SerializedStyles;
12948
+ reverse: import("@emotion/utils").SerializedStyles;
12949
+ compressed: import("@emotion/utils").SerializedStyles;
12950
+ };
12951
+ inlineStyles: {
12952
+ normal: import("@emotion/utils").SerializedStyles;
12953
+ compressed: import("@emotion/utils").SerializedStyles;
12954
+ };
12955
+ right: import("@emotion/utils").SerializedStyles;
12842
12956
  };
12843
- export const TYPES: ("row" | "inline" | "column" | "responsiveColumn")[]; const alignmentsToClassNameMap: {
12844
- center: string;
12845
- left: string;
12957
+
12958
+ }
12959
+ declare module '@elastic/eui/src/components/description_list/description_list_context' {
12960
+
12961
+ import { EuiDescriptionListProps } from '@elastic/eui/src/components/description_list/description_list_types'; type EuiDescriptionListContextValues = Required<Pick<EuiDescriptionListProps, 'type' | 'textStyle' | 'align'>> & {
12962
+ compressed?: EuiDescriptionListProps['compressed'];
12846
12963
  };
12847
- export const ALIGNMENTS: ("left" | "center")[]; const textStylesToClassNameMap: {
12848
- normal: string;
12849
- reverse: string;
12964
+ export const contextDefaults: EuiDescriptionListContextValues;
12965
+ export const EuiDescriptionListContext: import("react").Context<EuiDescriptionListContextValues>;
12966
+ export {};
12967
+
12968
+ }
12969
+ declare module '@elastic/eui/src/components/description_list/description_list_title' {
12970
+ import { HTMLAttributes, FunctionComponent } from 'react';
12971
+ import { CommonProps } from '@elastic/eui/src/components/common';
12972
+ interface EuiDescriptionListTitleProps extends CommonProps, HTMLAttributes<HTMLElement> {
12973
+ }
12974
+ export const EuiDescriptionListTitle: FunctionComponent<EuiDescriptionListTitleProps>;
12975
+ export {};
12976
+
12977
+ }
12978
+ declare module '@elastic/eui/src/components/description_list/description_list_description.styles' {
12979
+ import { UseEuiTheme } from '@elastic/eui/src/services';
12980
+ export const euiDescriptionListDescriptionStyles: (euiThemeContext: UseEuiTheme) => {
12981
+ euiDescriptionList__description: import("@emotion/utils").SerializedStyles;
12982
+ row: import("@emotion/utils").SerializedStyles;
12983
+ column: import("@emotion/utils").SerializedStyles;
12984
+ responsiveColumn: import("@emotion/utils").SerializedStyles;
12985
+ inline: import("@emotion/utils").SerializedStyles;
12986
+ fontStyles: {
12987
+ normal: import("@emotion/utils").SerializedStyles;
12988
+ reverse: import("@emotion/utils").SerializedStyles;
12989
+ compressed: import("@emotion/utils").SerializedStyles;
12990
+ };
12991
+ inlineStyles: {
12992
+ compressed: import("@emotion/utils").SerializedStyles;
12993
+ normal: import("@emotion/utils").SerializedStyles;
12994
+ };
12995
+ left: import("@emotion/utils").SerializedStyles;
12850
12996
  };
12851
- export const TEXT_STYLES: ("normal" | "reverse")[];
12852
- export const EuiDescriptionList: FunctionComponent<CommonProps & HTMLAttributes<HTMLDListElement> & EuiDescriptionListProps>;
12997
+
12998
+ }
12999
+ declare module '@elastic/eui/src/components/description_list/description_list_description' {
13000
+ import { HTMLAttributes, FunctionComponent } from 'react';
13001
+ import { CommonProps } from '@elastic/eui/src/components/common';
13002
+ interface EuiDescriptionListDescriptionProps extends CommonProps, HTMLAttributes<HTMLElement> {
13003
+ }
13004
+ export const EuiDescriptionListDescription: FunctionComponent<EuiDescriptionListDescriptionProps>;
12853
13005
  export {};
12854
13006
 
13007
+ }
13008
+ declare module '@elastic/eui/src/components/description_list/description_list.styles' {
13009
+ import { UseEuiTheme } from '@elastic/eui/src/services';
13010
+ export const euiDescriptionListStyles: (euiThemeContext: UseEuiTheme) => {
13011
+ euiDescriptionList: import("@emotion/utils").SerializedStyles;
13012
+ row: import("@emotion/utils").SerializedStyles;
13013
+ inline: import("@emotion/utils").SerializedStyles;
13014
+ column: import("@emotion/utils").SerializedStyles;
13015
+ responsiveColumn: import("@emotion/utils").SerializedStyles;
13016
+ center: import("@emotion/utils").SerializedStyles;
13017
+ left: import("@emotion/utils").SerializedStyles;
13018
+ };
13019
+
13020
+ }
13021
+ declare module '@elastic/eui/src/components/description_list/description_list' {
13022
+ import { HTMLAttributes, FunctionComponent } from 'react';
13023
+ import { CommonProps } from '@elastic/eui/src/components/common';
13024
+ import { EuiDescriptionListProps } from '@elastic/eui/src/components/description_list/description_list_types';
13025
+ export const EuiDescriptionList: FunctionComponent<CommonProps & HTMLAttributes<HTMLDListElement> & EuiDescriptionListProps>;
13026
+
12855
13027
  }
12856
13028
  declare module '@elastic/eui/src/components/description_list' {
12857
- export type { EuiDescriptionListProps } from '@elastic/eui/src/components/description_list/description_list';
13029
+ export type { EuiDescriptionListProps } from '@elastic/eui/src/components/description_list/description_list_types';
12858
13030
  export { EuiDescriptionList } from '@elastic/eui/src/components/description_list/description_list';
12859
13031
  export { EuiDescriptionListTitle } from '@elastic/eui/src/components/description_list/description_list_title';
12860
13032
  export { EuiDescriptionListDescription } from '@elastic/eui/src/components/description_list/description_list_description';
@@ -13333,6 +13505,13 @@ declare module '@elastic/eui/src/components/header/header_section' {
13333
13505
  export type { EuiHeaderSectionItemButtonProps } from '@elastic/eui/src/components/header/header_section/header_section_item_button';
13334
13506
  export { EuiHeaderSectionItemButton } from '@elastic/eui/src/components/header/header_section/header_section_item_button';
13335
13507
 
13508
+ }
13509
+ declare module '@elastic/eui/src/components/header/header_breadcrumbs/header_breadcrumbs.styles' {
13510
+ import { UseEuiTheme } from '@elastic/eui/src/services';
13511
+ export const euiHeaderBreadcrumbsStyles: ({ euiTheme }: UseEuiTheme) => {
13512
+ euiHeaderBreadcrumbs: import("@emotion/utils").SerializedStyles;
13513
+ };
13514
+
13336
13515
  }
13337
13516
  declare module '@elastic/eui/src/components/header/header_breadcrumbs/header_breadcrumbs' {
13338
13517
  import { FunctionComponent } from 'react';
@@ -16104,7 +16283,8 @@ declare module '@elastic/eui/src/components/selectable/selectable' {
16104
16283
  import { EuiSelectableOptionsListProps } from '@elastic/eui/src/components/selectable/selectable_list/selectable_list';
16105
16284
  import { EuiSelectableSearchProps } from '@elastic/eui/src/components/selectable/selectable_search/selectable_search';
16106
16285
  import { Align } from 'react-window';
16107
- export type EuiSelectableOnChangeEvent = KeyboardEvent | MouseEvent; type RequiredEuiSelectableOptionsListProps = Omit<EuiSelectableOptionsListProps, keyof typeof EuiSelectableList['defaultProps']>; type OptionalEuiSelectableOptionsListProps = Omit<EuiSelectableOptionsListProps, keyof RequiredEuiSelectableOptionsListProps>; type EuiSelectableOptionsListPropsWithDefaults = RequiredEuiSelectableOptionsListProps & Partial<OptionalEuiSelectableOptionsListProps>; type EuiSelectableSearchableProps<T> = ExclusiveUnion<{
16286
+ export type EuiSelectableOnChangeEvent = KeyboardEvent | MouseEvent; type RequiredEuiSelectableOptionsListProps = Omit<EuiSelectableOptionsListProps, keyof typeof EuiSelectableList['defaultProps']>; type OptionalEuiSelectableOptionsListProps = Omit<EuiSelectableOptionsListProps, keyof RequiredEuiSelectableOptionsListProps>; type EuiSelectableOptionsListPropsWithDefaults = RequiredEuiSelectableOptionsListProps & Partial<OptionalEuiSelectableOptionsListProps>;
16287
+ export type EuiSelectableSearchableProps<T> = ExclusiveUnion<{
16108
16288
  searchable: false;
16109
16289
  }, {
16110
16290
  /**
@@ -16333,7 +16513,7 @@ declare module '@elastic/eui/src/components/selectable/selectable_templates' {
16333
16513
 
16334
16514
  }
16335
16515
  declare module '@elastic/eui/src/components/selectable' {
16336
- export type { EuiSelectableProps, EuiSelectableSearchableSearchProps, } from '@elastic/eui/src/components/selectable/selectable';
16516
+ export type { EuiSelectableProps, EuiSelectableSearchableProps, EuiSelectableSearchableSearchProps, } from '@elastic/eui/src/components/selectable/selectable';
16337
16517
  export { EuiSelectable } from '@elastic/eui/src/components/selectable/selectable';
16338
16518
  export type { EuiSelectableListProps, EuiSelectableListItemProps, EuiSelectableOptionsListProps, } from '@elastic/eui/src/components/selectable/selectable_list';
16339
16519
  export { EuiSelectableList, EuiSelectableListItem } from '@elastic/eui/src/components/selectable/selectable_list';
@@ -18288,12 +18468,33 @@ declare module '@elastic/eui/src/components/text_diff' {
18288
18468
  export type { EuiTextDiffProps } from '@elastic/eui/src/components/text_diff/text_diff';
18289
18469
  export { useEuiTextDiff } from '@elastic/eui/src/components/text_diff/text_diff';
18290
18470
 
18471
+ }
18472
+ declare module '@elastic/eui/src/components/toast/toast.styles' {
18473
+ import { UseEuiTheme } from '@elastic/eui/src/services';
18474
+ export const euiToastStyles: (euiThemeContext: UseEuiTheme) => {
18475
+ euiToast: import("@emotion/utils").SerializedStyles;
18476
+ euiToast__closeButton: import("@emotion/utils").SerializedStyles;
18477
+ primary: import("@emotion/utils").SerializedStyles;
18478
+ success: import("@emotion/utils").SerializedStyles;
18479
+ warning: import("@emotion/utils").SerializedStyles;
18480
+ danger: import("@emotion/utils").SerializedStyles;
18481
+ };
18482
+ export const euiToastHeaderStyles: (euiThemeContext: UseEuiTheme) => {
18483
+ euiToastHeader: import("@emotion/utils").SerializedStyles;
18484
+ euiToastHeader__icon: import("@emotion/utils").SerializedStyles;
18485
+ euiToastHeader__title: import("@emotion/utils").SerializedStyles;
18486
+ withBody: import("@emotion/utils").SerializedStyles;
18487
+ };
18488
+ export const euiToastBodyStyles: () => {
18489
+ euiToastBody: import("@emotion/utils").SerializedStyles;
18490
+ };
18491
+
18291
18492
  }
18292
18493
  declare module '@elastic/eui/src/components/toast/toast' {
18293
18494
  import { FunctionComponent, HTMLAttributes, ReactNode } from 'react';
18294
18495
  import { CommonProps } from '@elastic/eui/src/components/common';
18295
- import { IconType } from '@elastic/eui/src/components/icon'; type ToastColor = 'primary' | 'success' | 'warning' | 'danger';
18296
- export const COLORS: ToastColor[];
18496
+ import { IconType } from '@elastic/eui/src/components/icon';
18497
+ export const COLORS: readonly ["primary", "success", "warning", "danger"]; type ToastColor = typeof COLORS[number];
18297
18498
  export interface EuiToastProps extends CommonProps, Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
18298
18499
  title?: ReactNode;
18299
18500
  color?: ToastColor;
@@ -18321,6 +18522,23 @@ declare module '@elastic/eui/src/services/time/timer' {
18321
18522
  declare module '@elastic/eui/src/services/time' {
18322
18523
  export { Timer } from '@elastic/eui/src/services/time/timer';
18323
18524
 
18525
+ }
18526
+ declare module '@elastic/eui/src/components/toast/global_toast_list.styles' {
18527
+ import { UseEuiTheme } from '@elastic/eui/src/services';
18528
+ export const euiGlobalToastListStyles: (euiThemeContext: UseEuiTheme) => {
18529
+ /**
18530
+ * 1. Allow list to expand as items are added, but cap it at the screen height.
18531
+ * 2. Allow some padding for shadow
18532
+ */
18533
+ euiGlobalToastList: import("@emotion/utils").SerializedStyles;
18534
+ right: import("@emotion/utils").SerializedStyles;
18535
+ left: import("@emotion/utils").SerializedStyles;
18536
+ };
18537
+ export const euiGlobalToastListItemStyles: ({ euiTheme }: UseEuiTheme) => {
18538
+ euiGlobalToastListItem: import("@emotion/utils").SerializedStyles;
18539
+ dismissed: import("@emotion/utils").SerializedStyles;
18540
+ };
18541
+
18324
18542
  }
18325
18543
  declare module '@elastic/eui/src/components/toast/global_toast_list_item' {
18326
18544
  import { FunctionComponent, ReactElement } from 'react';
@@ -18336,9 +18554,8 @@ declare module '@elastic/eui/src/components/toast/global_toast_list_item' {
18336
18554
 
18337
18555
  }
18338
18556
  declare module '@elastic/eui/src/components/toast/global_toast_list' {
18339
- import { Component, ReactChild } from 'react';
18557
+ import { FunctionComponent, ReactChild } from 'react';
18340
18558
  import { CommonProps } from '@elastic/eui/src/components/common';
18341
- import { Timer } from '@elastic/eui/src/services/time';
18342
18559
  import { EuiToastProps } from '@elastic/eui/src/components/toast/toast'; type ToastSide = 'right' | 'left';
18343
18560
  export const SIDES: ToastSide[];
18344
18561
  export const TOAST_FADE_OUT_MS = 250;
@@ -18348,47 +18565,15 @@ declare module '@elastic/eui/src/components/toast/global_toast_list' {
18348
18565
  toastLifeTimeMs?: number;
18349
18566
  }
18350
18567
  export interface EuiGlobalToastListProps extends CommonProps {
18351
- toasts: Toast[];
18352
- dismissToast: (this: EuiGlobalToastList, toast: Toast) => void;
18568
+ toasts?: Toast[];
18569
+ dismissToast: (toast: Toast) => void;
18353
18570
  toastLifeTimeMs: number;
18354
18571
  /**
18355
18572
  * Determines which side of the browser window the toasts should appear
18356
18573
  */
18357
18574
  side?: ToastSide;
18358
18575
  }
18359
- interface State {
18360
- toastIdToDismissedMap: {
18361
- [toastId: string]: boolean;
18362
- };
18363
- }
18364
- export class EuiGlobalToastList extends Component<EuiGlobalToastListProps, State> {
18365
- state: State;
18366
- dismissTimeoutIds: number[];
18367
- toastIdToTimerMap: {
18368
- [toastId: string]: Timer;
18369
- };
18370
- isScrollingToBottom: boolean;
18371
- isScrolledToBottom: boolean;
18372
- isUserInteracting: boolean;
18373
- isScrollingAnimationFrame: number;
18374
- startScrollingAnimationFrame: number;
18375
- listElement: Element | null;
18376
- static defaultProps: {
18377
- toasts: never[];
18378
- side: string;
18379
- };
18380
- startScrollingToBottom(): void;
18381
- onMouseEnter: () => void;
18382
- onMouseLeave: () => void;
18383
- onScroll: () => void;
18384
- scheduleAllToastsForDismissal: () => void;
18385
- scheduleToastForDismissal: (toast: Toast) => void;
18386
- dismissToast: (toast: Toast) => void;
18387
- componentDidMount(): void;
18388
- componentDidUpdate(prevProps: EuiGlobalToastListProps): void;
18389
- componentWillUnmount(): void;
18390
- render(): JSX.Element;
18391
- }
18576
+ export const EuiGlobalToastList: FunctionComponent<EuiGlobalToastListProps>;
18392
18577
  export {};
18393
18578
 
18394
18579
  }
@@ -23441,6 +23626,90 @@ declare module 'mdast-util-to-hast/lib/all' {
23441
23626
  const all: (h: H, node: Node) => Node[];
23442
23627
  export = all;
23443
23628
  }
23629
+ declare module '@elastic/eui/src/test/rtl/component_helpers' {
23630
+ /**
23631
+ * Ensure the EuiPopover being tested is open/closed before contiuning
23632
+ * Note: Because EuiPopover is portalled, we want to query `document`
23633
+ * instead of the `container` returned by RTL's render()
23634
+ */
23635
+ export const waitForEuiPopoverOpen: () => Promise<void>;
23636
+ export const waitForEuiPopoverClose: () => Promise<void>;
23637
+
23638
+ }
23639
+ declare module '@elastic/eui/src/test/rtl/data_test_subj_queries' {
23640
+ import { queryHelpers, Matcher, MatcherOptions } from '@testing-library/react'; const queryAllByTestSubject: (container: HTMLElement, id: Matcher, options?: MatcherOptions | undefined) => HTMLElement[]; const queryByTestSubject: queryHelpers.QueryBy<[Matcher]>, getAllByTestSubject: queryHelpers.GetAllBy<[Matcher]>, getByTestSubject: queryHelpers.GetBy<[Matcher]>, findAllByTestSubject: queryHelpers.FindAllBy<[Matcher]>, findByTestSubject: queryHelpers.FindBy<[Matcher]>;
23641
+ export { queryByTestSubject, queryAllByTestSubject, getByTestSubject, getAllByTestSubject, findAllByTestSubject, findByTestSubject, };
23642
+
23643
+ }
23644
+ declare module '@elastic/eui/src/test/rtl/custom_render' {
23645
+ import { ReactElement } from 'react';
23646
+ import { queries, RenderOptions, Screen } from '@testing-library/react';
23647
+ import * as dataTestSubjQueries from '@elastic/eui/src/test/rtl/data_test_subj_queries'; const customRender: (ui: ReactElement, { queries: renderQueries, ...options }?: RenderOptions) => import("@testing-library/react").RenderResult<{
23648
+ getByLabelText: typeof queries.getByLabelText;
23649
+ getAllByLabelText: typeof queries.getAllByLabelText;
23650
+ queryByLabelText: typeof queries.queryByLabelText;
23651
+ queryAllByLabelText: typeof queries.queryAllByLabelText;
23652
+ findByLabelText: typeof queries.findByLabelText;
23653
+ findAllByLabelText: typeof queries.findAllByLabelText;
23654
+ getByPlaceholderText: typeof queries.getByPlaceholderText;
23655
+ getAllByPlaceholderText: typeof queries.getAllByPlaceholderText;
23656
+ queryByPlaceholderText: typeof queries.queryByPlaceholderText;
23657
+ queryAllByPlaceholderText: typeof queries.queryAllByPlaceholderText;
23658
+ findByPlaceholderText: typeof queries.findByPlaceholderText;
23659
+ findAllByPlaceholderText: typeof queries.findAllByPlaceholderText;
23660
+ getByText: typeof queries.getByText;
23661
+ getAllByText: typeof queries.getAllByText;
23662
+ queryByText: typeof queries.queryByText;
23663
+ queryAllByText: typeof queries.queryAllByText;
23664
+ findByText: typeof queries.findByText;
23665
+ findAllByText: typeof queries.findAllByText;
23666
+ getByAltText: typeof queries.getByAltText;
23667
+ getAllByAltText: typeof queries.getAllByAltText;
23668
+ queryByAltText: typeof queries.queryByAltText;
23669
+ queryAllByAltText: typeof queries.queryAllByAltText;
23670
+ findByAltText: typeof queries.findByAltText;
23671
+ findAllByAltText: typeof queries.findAllByAltText;
23672
+ getByTitle: typeof queries.getByTitle;
23673
+ getAllByTitle: typeof queries.getAllByTitle;
23674
+ queryByTitle: typeof queries.queryByTitle;
23675
+ queryAllByTitle: typeof queries.queryAllByTitle;
23676
+ findByTitle: typeof queries.findByTitle;
23677
+ findAllByTitle: typeof queries.findAllByTitle;
23678
+ getByDisplayValue: typeof queries.getByDisplayValue;
23679
+ getAllByDisplayValue: typeof queries.getAllByDisplayValue;
23680
+ queryByDisplayValue: typeof queries.queryByDisplayValue;
23681
+ queryAllByDisplayValue: typeof queries.queryAllByDisplayValue;
23682
+ findByDisplayValue: typeof queries.findByDisplayValue;
23683
+ findAllByDisplayValue: typeof queries.findAllByDisplayValue;
23684
+ getByRole: typeof queries.getByRole;
23685
+ getAllByRole: typeof queries.getAllByRole;
23686
+ queryByRole: typeof queries.queryByRole;
23687
+ queryAllByRole: typeof queries.queryAllByRole;
23688
+ findByRole: typeof queries.findByRole;
23689
+ findAllByRole: typeof queries.findAllByRole;
23690
+ getByTestId: typeof queries.getByTestId;
23691
+ getAllByTestId: typeof queries.getAllByTestId;
23692
+ queryByTestId: typeof queries.queryByTestId;
23693
+ queryAllByTestId: typeof queries.queryAllByTestId;
23694
+ findByTestId: typeof queries.findByTestId;
23695
+ findAllByTestId: typeof queries.findAllByTestId;
23696
+ queryByTestSubject: import("@testing-library/react").QueryBy<[import("@testing-library/react").Matcher]>;
23697
+ queryAllByTestSubject: (container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
23698
+ getByTestSubject: import("@testing-library/react").GetBy<[import("@testing-library/react").Matcher]>;
23699
+ getAllByTestSubject: import("@testing-library/react").GetAllBy<[import("@testing-library/react").Matcher]>;
23700
+ findAllByTestSubject: import("@testing-library/react").FindAllBy<[import("@testing-library/react").Matcher]>;
23701
+ findByTestSubject: import("@testing-library/react").FindBy<[import("@testing-library/react").Matcher]>;
23702
+ }, HTMLElement, HTMLElement>;
23703
+ export { customRender as render }; const customScreen: Screen<typeof queries & typeof dataTestSubjQueries>;
23704
+ export { customScreen as screen };
23705
+
23706
+ }
23707
+ declare module '@elastic/eui/src/test/rtl' {
23708
+ export * from '@elastic/eui/src/test/rtl/component_helpers';
23709
+ export { queryByTestSubject, queryAllByTestSubject, getByTestSubject, getAllByTestSubject, findAllByTestSubject, findByTestSubject, } from '@elastic/eui/src/test/rtl/data_test_subj_queries';
23710
+ export { render, screen } from '@elastic/eui/src/test/rtl/custom_render';
23711
+
23712
+ }
23444
23713
  declare module '@elastic/eui/src/components/table/mobile' {
23445
23714
  export { EuiTableHeaderMobile } from '@elastic/eui/src/components/table/mobile/table_header_mobile';
23446
23715
  export type { EuiTableSortMobileProps } from '@elastic/eui/src/components/table/mobile/table_sort_mobile';
@@ -23503,7 +23772,7 @@ declare module '@elastic/eui' {
23503
23772
  "euiBottomBar.screenReaderHeading": any;
23504
23773
  "euiBottomBar.customScreenReaderAnnouncement": any;
23505
23774
  "euiBottomBar.screenReaderAnnouncement": any;
23506
- "euiBreadcrumbs.collapsedBadge.ariaLabel": any;
23775
+ "euiBreadcrumb.collapsedBadge.ariaLabel": any;
23507
23776
  "euiBreadcrumbs.nav.ariaLabel": any;
23508
23777
  "euiCardSelect.selected": any;
23509
23778
  "euiCardSelect.unavailable": any;