@elastic/eui 62.0.3 → 63.0.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 (500) 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 +4 -1053
  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 +4 -1053
  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/bottom_bar/bottom_bar.js +20 -3
  12. package/es/components/breadcrumbs/breadcrumb.js +199 -0
  13. package/es/components/breadcrumbs/breadcrumb.styles.js +61 -0
  14. package/es/components/breadcrumbs/breadcrumbs.js +115 -187
  15. package/es/components/breadcrumbs/breadcrumbs.styles.js +30 -0
  16. package/es/components/code/code_block.js +119 -107
  17. package/es/components/collapsible_nav/collapsible_nav.js +2 -2
  18. package/es/components/control_bar/control_bar.js +13 -0
  19. package/es/components/datagrid/body/data_grid_body.js +12 -2
  20. package/es/components/datagrid/body/data_grid_cell.js +31 -3
  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 +10 -2
  24. package/es/components/datagrid/utils/row_heights.js +33 -4
  25. package/es/components/date_picker/super_date_picker/super_date_picker.js +2 -2
  26. package/es/components/date_picker/super_date_picker/super_update_button.js +1 -1
  27. package/es/components/description_list/description_list.js +22 -26
  28. package/es/components/description_list/description_list.styles.js +25 -0
  29. package/es/components/description_list/description_list_context.js +14 -0
  30. package/es/components/description_list/description_list_description.js +43 -2
  31. package/es/components/description_list/description_list_description.styles.js +47 -0
  32. package/es/components/description_list/description_list_title.js +43 -2
  33. package/es/components/description_list/description_list_title.styles.js +37 -0
  34. package/es/components/description_list/description_list_types.js +10 -0
  35. package/es/components/header/header.js +3 -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 +11 -10
  39. package/es/components/icon/assets/tokenStruct.js +1 -1
  40. package/es/components/index.js +1 -0
  41. package/es/components/page/_bottom_border.js +1 -0
  42. package/es/components/page/_restrict_width.js +34 -7
  43. package/es/components/page/index.js +5 -3
  44. package/es/components/page/page.js +19 -30
  45. package/es/components/page/page.styles.js +43 -0
  46. package/es/components/page/page_body/page_body.js +18 -26
  47. package/es/components/page/page_body/page_body.styles.js +16 -0
  48. package/es/components/page/page_content/index.js +4 -4
  49. package/es/components/page/page_content/page_content.js +7 -2
  50. package/es/components/page/page_content/page_content_body.js +12 -7
  51. package/es/components/page/page_content/page_content_header.js +7 -2
  52. package/es/components/page/page_content/page_content_header_section.js +7 -2
  53. package/es/components/page/page_header/page_header.js +29 -171
  54. package/es/components/page/page_header/page_header.styles.js +16 -0
  55. package/es/components/page/page_header/page_header_content.js +85 -16
  56. package/es/components/page/page_header/page_header_content.styles.js +84 -0
  57. package/es/components/page/page_section/index.js +8 -0
  58. package/es/components/page/page_section/page_section.js +102 -0
  59. package/es/components/page/page_section/page_section.styles.js +43 -0
  60. package/es/components/page/page_side_bar/index.js +1 -1
  61. package/es/components/page/page_side_bar/page_side_bar.js +8 -3
  62. package/es/components/page/page_sidebar/index.js +8 -0
  63. package/es/components/page/page_sidebar/page_sidebar.js +110 -0
  64. package/es/components/page/page_sidebar/page_sidebar.styles.js +29 -0
  65. package/es/components/page/page_template.js +54 -153
  66. package/es/components/page_template/bottom_bar/page_bottom_bar.js +102 -0
  67. package/es/components/page_template/empty_prompt/page_empty_prompt.js +107 -0
  68. package/es/components/page_template/index.js +8 -0
  69. package/es/components/page_template/inner/index.js +8 -0
  70. package/es/components/page_template/inner/page_inner.js +51 -0
  71. package/es/components/page_template/inner/page_inner.styles.js +22 -0
  72. package/es/components/page_template/outer/index.js +8 -0
  73. package/es/components/page_template/outer/page_outer.js +59 -0
  74. package/es/components/page_template/outer/page_outer.styles.js +49 -0
  75. package/es/components/page_template/page_template.js +376 -0
  76. package/es/components/pagination/pagination.js +1 -1
  77. package/es/components/panel/split_panel/split_panel.js +2 -2
  78. package/es/components/provider/provider.js +2 -2
  79. package/es/components/responsive/hide_for.js +6 -38
  80. package/es/components/responsive/show_for.js +6 -38
  81. package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +17 -36
  82. package/es/components/side_nav/side_nav.js +1 -1
  83. package/es/components/table/table_row_cell.js +1 -2
  84. package/es/components/toast/global_toast_list.js +208 -241
  85. package/es/components/toast/global_toast_list.styles.js +38 -0
  86. package/es/components/toast/global_toast_list_item.js +12 -7
  87. package/es/components/toast/toast.js +25 -25
  88. package/es/components/toast/toast.styles.js +55 -0
  89. package/es/components/token/index.js +2 -1
  90. package/es/components/token/token.js +48 -112
  91. package/es/components/token/token.styles.js +93 -0
  92. package/es/components/token/token_map.js +6 -9
  93. package/es/components/token/token_types.js +11 -0
  94. package/es/global_styling/functions/logicals.js +1 -1
  95. package/es/global_styling/mixins/_helpers.js +27 -9
  96. package/es/global_styling/reset/global_styles.js +1 -1
  97. package/es/services/{breakpoint.js → breakpoint/breakpoint.js} +4 -9
  98. package/es/services/{hooks/useIsWithinBreakpoints.js → breakpoint/currentEuiBreakpoint.js} +36 -28
  99. package/es/services/breakpoint/index.js +10 -0
  100. package/es/services/breakpoint/useIsWithinBreakpoints.js +24 -0
  101. package/es/services/hooks/index.js +0 -1
  102. package/es/services/index.js +1 -1
  103. package/es/test/rtl/component_helpers.js +60 -1
  104. package/eui.d.ts +2100 -1504
  105. package/i18ntokens.json +36 -36
  106. package/lib/components/bottom_bar/bottom_bar.js +20 -3
  107. package/lib/components/breadcrumbs/breadcrumb.js +225 -0
  108. package/lib/components/breadcrumbs/breadcrumb.styles.js +68 -0
  109. package/lib/components/breadcrumbs/breadcrumbs.js +125 -188
  110. package/lib/components/breadcrumbs/breadcrumbs.styles.js +33 -0
  111. package/lib/components/code/code_block.js +118 -106
  112. package/lib/components/collapsible_nav/collapsible_nav.js +2 -2
  113. package/lib/components/control_bar/control_bar.js +13 -0
  114. package/lib/components/datagrid/body/data_grid_body.js +12 -2
  115. package/lib/components/datagrid/body/data_grid_cell.js +31 -3
  116. package/lib/components/datagrid/body/header/data_grid_header_row.js +1 -1
  117. package/lib/components/datagrid/controls/column_sorting_draggable.js +1 -1
  118. package/lib/components/datagrid/data_grid.js +10 -2
  119. package/lib/components/datagrid/utils/row_heights.js +33 -4
  120. package/lib/components/date_picker/super_date_picker/super_date_picker.js +2 -2
  121. package/lib/components/date_picker/super_date_picker/super_update_button.js +1 -1
  122. package/lib/components/description_list/description_list.js +25 -31
  123. package/lib/components/description_list/description_list.styles.js +36 -0
  124. package/lib/components/description_list/description_list_context.js +24 -0
  125. package/lib/components/description_list/description_list_description.js +52 -2
  126. package/lib/components/description_list/description_list_description.styles.js +51 -0
  127. package/lib/components/description_list/description_list_title.js +52 -2
  128. package/lib/components/description_list/description_list_title.styles.js +50 -0
  129. package/lib/components/description_list/description_list_types.js +20 -0
  130. package/lib/components/header/header.js +3 -27
  131. package/lib/components/header/header_breadcrumbs/header_breadcrumbs.js +24 -2
  132. package/lib/components/header/header_breadcrumbs/header_breadcrumbs.styles.js +26 -0
  133. package/lib/components/header/header_links/header_links.js +10 -9
  134. package/lib/components/icon/assets/tokenStruct.js +1 -1
  135. package/lib/components/icon/svgs/tokens/tokenStruct.svg +1 -1
  136. package/lib/components/index.js +13 -0
  137. package/lib/components/page/_bottom_border.js +5 -0
  138. package/lib/components/page/_restrict_width.js +38 -7
  139. package/lib/components/page/index.js +28 -12
  140. package/lib/components/page/page.js +22 -34
  141. package/lib/components/page/page.styles.js +46 -0
  142. package/lib/components/page/page_body/page_body.js +20 -29
  143. package/lib/components/page/page_body/page_body.styles.js +27 -0
  144. package/lib/components/page/page_content/index.js +8 -8
  145. package/lib/components/page/page_content/page_content.js +8 -4
  146. package/lib/components/page/page_content/page_content_body.js +13 -9
  147. package/lib/components/page/page_content/page_content_header.js +8 -4
  148. package/lib/components/page/page_content/page_content_header_section.js +8 -4
  149. package/lib/components/page/page_header/page_header.js +31 -174
  150. package/lib/components/page/page_header/page_header.styles.js +27 -0
  151. package/lib/components/page/page_header/page_header_content.js +111 -18
  152. package/lib/components/page/page_header/page_header_content.styles.js +87 -0
  153. package/lib/components/page/page_section/index.js +13 -0
  154. package/lib/components/page/page_section/page_section.js +113 -0
  155. package/lib/components/page/page_section/page_section.styles.js +51 -0
  156. package/lib/components/page/page_side_bar/index.js +2 -2
  157. package/lib/components/page/page_side_bar/page_side_bar.js +9 -5
  158. package/lib/components/page/page_sidebar/index.js +13 -0
  159. package/lib/components/page/page_sidebar/page_sidebar.js +124 -0
  160. package/lib/components/page/page_sidebar/page_sidebar.styles.js +32 -0
  161. package/lib/components/page/page_template.js +76 -176
  162. package/lib/components/page_template/bottom_bar/page_bottom_bar.js +114 -0
  163. package/lib/components/page_template/empty_prompt/page_empty_prompt.js +116 -0
  164. package/lib/components/page_template/index.js +13 -0
  165. package/lib/components/page_template/inner/index.js +13 -0
  166. package/lib/components/page_template/inner/page_inner.js +60 -0
  167. package/lib/components/page_template/inner/page_inner.styles.js +35 -0
  168. package/lib/components/page_template/outer/index.js +13 -0
  169. package/lib/components/page_template/outer/page_outer.js +68 -0
  170. package/lib/components/page_template/outer/page_outer.styles.js +51 -0
  171. package/lib/components/page_template/page_template.js +399 -0
  172. package/lib/components/pagination/pagination.js +1 -1
  173. package/lib/components/panel/split_panel/split_panel.js +3 -3
  174. package/lib/components/provider/provider.js +1 -1
  175. package/lib/components/responsive/hide_for.js +12 -44
  176. package/lib/components/responsive/show_for.js +12 -44
  177. package/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +15 -35
  178. package/lib/components/side_nav/side_nav.js +1 -1
  179. package/lib/components/table/table_row_cell.js +1 -3
  180. package/lib/components/toast/global_toast_list.js +209 -238
  181. package/lib/components/toast/global_toast_list.styles.js +45 -0
  182. package/lib/components/toast/global_toast_list_item.js +14 -7
  183. package/lib/components/toast/toast.js +27 -25
  184. package/lib/components/toast/toast.styles.js +66 -0
  185. package/lib/components/token/index.js +5 -3
  186. package/lib/components/token/token.js +50 -120
  187. package/lib/components/token/token.styles.js +101 -0
  188. package/lib/components/token/token_map.js +6 -9
  189. package/lib/components/token/token_types.js +22 -0
  190. package/lib/global_styling/functions/logicals.js +1 -1
  191. package/lib/global_styling/mixins/_helpers.js +27 -9
  192. package/lib/global_styling/reset/global_styles.js +1 -1
  193. package/{test-env/services → lib/services/breakpoint}/breakpoint.js +5 -9
  194. package/lib/services/breakpoint/currentEuiBreakpoint.js +80 -0
  195. package/lib/services/breakpoint/index.js +44 -0
  196. package/lib/services/breakpoint/useIsWithinBreakpoints.js +34 -0
  197. package/lib/services/hooks/index.js +0 -13
  198. package/lib/services/index.js +28 -0
  199. package/lib/test/rtl/component_helpers.js +69 -3
  200. package/optimize/es/components/bottom_bar/bottom_bar.js +1 -1
  201. package/optimize/es/components/breadcrumbs/breadcrumb.js +136 -0
  202. package/optimize/es/components/breadcrumbs/breadcrumb.styles.js +61 -0
  203. package/optimize/es/components/breadcrumbs/breadcrumbs.js +92 -165
  204. package/optimize/es/components/breadcrumbs/breadcrumbs.styles.js +30 -0
  205. package/optimize/es/components/code/code_block.js +106 -107
  206. package/optimize/es/components/datagrid/body/data_grid_body.js +2 -0
  207. package/optimize/es/components/datagrid/body/data_grid_cell.js +13 -1
  208. package/optimize/es/components/datagrid/utils/row_heights.js +33 -4
  209. package/optimize/es/components/description_list/description_list.js +20 -24
  210. package/optimize/es/components/description_list/description_list.styles.js +25 -0
  211. package/optimize/es/components/description_list/description_list_context.js +14 -0
  212. package/optimize/es/components/description_list/description_list_description.js +32 -2
  213. package/optimize/es/components/description_list/description_list_description.styles.js +47 -0
  214. package/optimize/es/components/description_list/description_list_title.js +32 -2
  215. package/optimize/es/components/description_list/description_list_title.styles.js +37 -0
  216. package/optimize/es/components/description_list/description_list_types.js +10 -0
  217. package/optimize/es/components/header/header.js +2 -0
  218. package/optimize/es/components/header/header_breadcrumbs/header_breadcrumbs.js +8 -1
  219. package/optimize/es/components/header/header_breadcrumbs/header_breadcrumbs.styles.js +15 -0
  220. package/optimize/es/components/header/header_links/header_links.js +10 -9
  221. package/optimize/es/components/icon/assets/tokenStruct.js +1 -1
  222. package/optimize/es/components/index.js +1 -0
  223. package/optimize/es/components/page/_bottom_border.js +1 -0
  224. package/optimize/es/components/page/_restrict_width.js +34 -7
  225. package/optimize/es/components/page/index.js +5 -3
  226. package/optimize/es/components/page/page.js +18 -28
  227. package/optimize/es/components/page/page.styles.js +43 -0
  228. package/optimize/es/components/page/page_body/page_body.js +18 -25
  229. package/optimize/es/components/page/page_body/page_body.styles.js +16 -0
  230. package/optimize/es/components/page/page_content/index.js +4 -4
  231. package/optimize/es/components/page/page_content/page_content.js +6 -1
  232. package/optimize/es/components/page/page_content/page_content_body.js +10 -5
  233. package/optimize/es/components/page/page_content/page_content_header.js +6 -1
  234. package/optimize/es/components/page/page_content/page_content_header_section.js +6 -1
  235. package/optimize/es/components/page/page_header/page_header.js +20 -32
  236. package/optimize/es/components/page/page_header/page_header.styles.js +16 -0
  237. package/optimize/es/components/page/page_header/page_header_content.js +62 -14
  238. package/optimize/es/components/page/page_header/page_header_content.styles.js +84 -0
  239. package/optimize/es/components/page/page_section/index.js +8 -0
  240. package/optimize/es/components/page/page_section/page_section.js +51 -0
  241. package/optimize/es/components/page/page_section/page_section.styles.js +43 -0
  242. package/optimize/es/components/page/page_side_bar/index.js +1 -1
  243. package/optimize/es/components/page/page_side_bar/page_side_bar.js +6 -1
  244. package/optimize/es/components/page/page_sidebar/index.js +8 -0
  245. package/optimize/es/components/page/page_sidebar/page_sidebar.js +60 -0
  246. package/optimize/es/components/page/page_sidebar/page_sidebar.styles.js +29 -0
  247. package/optimize/es/components/page/page_template.js +29 -9
  248. package/optimize/es/components/page_template/bottom_bar/page_bottom_bar.js +70 -0
  249. package/optimize/es/components/page_template/empty_prompt/page_empty_prompt.js +61 -0
  250. package/optimize/es/components/page_template/index.js +8 -0
  251. package/optimize/es/components/page_template/inner/index.js +8 -0
  252. package/optimize/es/components/page_template/inner/page_inner.js +47 -0
  253. package/optimize/es/components/page_template/inner/page_inner.styles.js +22 -0
  254. package/optimize/es/components/page_template/outer/index.js +8 -0
  255. package/optimize/es/components/page_template/outer/page_outer.js +33 -0
  256. package/optimize/es/components/page_template/outer/page_outer.styles.js +49 -0
  257. package/optimize/es/components/page_template/page_template.js +202 -0
  258. package/optimize/es/components/panel/split_panel/split_panel.js +1 -1
  259. package/optimize/es/components/provider/provider.js +2 -2
  260. package/optimize/es/components/responsive/hide_for.js +5 -27
  261. package/optimize/es/components/responsive/show_for.js +5 -27
  262. package/optimize/es/components/selectable/selectable_templates/selectable_template_sitewide.js +16 -35
  263. package/optimize/es/components/table/table_row_cell.js +1 -2
  264. package/optimize/es/components/toast/global_toast_list.js +199 -230
  265. package/optimize/es/components/toast/global_toast_list.styles.js +38 -0
  266. package/optimize/es/components/toast/global_toast_list_item.js +11 -6
  267. package/optimize/es/components/toast/toast.js +24 -24
  268. package/optimize/es/components/toast/toast.styles.js +55 -0
  269. package/optimize/es/components/token/index.js +2 -1
  270. package/optimize/es/components/token/token.js +46 -69
  271. package/optimize/es/components/token/token.styles.js +83 -0
  272. package/optimize/es/components/token/token_map.js +6 -9
  273. package/optimize/es/components/token/token_types.js +11 -0
  274. package/optimize/es/global_styling/functions/logicals.js +1 -1
  275. package/optimize/es/global_styling/mixins/_helpers.js +27 -9
  276. package/optimize/es/global_styling/reset/global_styles.js +1 -1
  277. package/optimize/es/services/{breakpoint.js → breakpoint/breakpoint.js} +4 -9
  278. package/optimize/es/services/breakpoint/currentEuiBreakpoint.js +53 -0
  279. package/optimize/es/services/breakpoint/index.js +10 -0
  280. package/optimize/es/services/breakpoint/useIsWithinBreakpoints.js +24 -0
  281. package/optimize/es/services/hooks/index.js +0 -1
  282. package/optimize/es/services/index.js +1 -1
  283. package/optimize/es/test/rtl/component_helpers.js +60 -1
  284. package/optimize/lib/components/bottom_bar/bottom_bar.js +1 -1
  285. package/optimize/lib/components/breadcrumbs/breadcrumb.js +162 -0
  286. package/optimize/lib/components/breadcrumbs/breadcrumb.styles.js +68 -0
  287. package/optimize/lib/components/breadcrumbs/breadcrumbs.js +99 -164
  288. package/optimize/lib/components/breadcrumbs/breadcrumbs.styles.js +33 -0
  289. package/optimize/lib/components/code/code_block.js +105 -106
  290. package/optimize/lib/components/datagrid/body/data_grid_body.js +2 -0
  291. package/optimize/lib/components/datagrid/body/data_grid_cell.js +13 -1
  292. package/optimize/lib/components/datagrid/utils/row_heights.js +33 -4
  293. package/optimize/lib/components/description_list/description_list.js +23 -28
  294. package/optimize/lib/components/description_list/description_list.styles.js +36 -0
  295. package/optimize/lib/components/description_list/description_list_context.js +24 -0
  296. package/optimize/lib/components/description_list/description_list_description.js +43 -2
  297. package/optimize/lib/components/description_list/description_list_description.styles.js +51 -0
  298. package/optimize/lib/components/description_list/description_list_title.js +43 -2
  299. package/optimize/lib/components/description_list/description_list_title.styles.js +50 -0
  300. package/optimize/lib/components/description_list/description_list_types.js +20 -0
  301. package/optimize/lib/components/header/header.js +2 -0
  302. package/optimize/lib/components/header/header_breadcrumbs/header_breadcrumbs.js +10 -1
  303. package/optimize/lib/components/header/header_breadcrumbs/header_breadcrumbs.styles.js +26 -0
  304. package/optimize/lib/components/header/header_links/header_links.js +9 -8
  305. package/optimize/lib/components/icon/assets/tokenStruct.js +1 -1
  306. package/optimize/lib/components/icon/svgs/tokens/tokenStruct.svg +1 -1
  307. package/optimize/lib/components/index.js +13 -0
  308. package/optimize/lib/components/page/_bottom_border.js +5 -0
  309. package/optimize/lib/components/page/_restrict_width.js +38 -7
  310. package/optimize/lib/components/page/index.js +28 -12
  311. package/optimize/lib/components/page/page.js +21 -33
  312. package/optimize/lib/components/page/page.styles.js +46 -0
  313. package/optimize/lib/components/page/page_body/page_body.js +20 -29
  314. package/optimize/lib/components/page/page_body/page_body.styles.js +27 -0
  315. package/optimize/lib/components/page/page_content/index.js +8 -8
  316. package/optimize/lib/components/page/page_content/page_content.js +7 -3
  317. package/optimize/lib/components/page/page_content/page_content_body.js +11 -7
  318. package/optimize/lib/components/page/page_content/page_content_header.js +7 -3
  319. package/optimize/lib/components/page/page_content/page_content_header_section.js +7 -3
  320. package/optimize/lib/components/page/page_header/page_header.js +22 -36
  321. package/optimize/lib/components/page/page_header/page_header.styles.js +27 -0
  322. package/optimize/lib/components/page/page_header/page_header_content.js +68 -15
  323. package/optimize/lib/components/page/page_header/page_header_content.styles.js +87 -0
  324. package/optimize/lib/components/page/page_section/index.js +13 -0
  325. package/optimize/lib/components/page/page_section/page_section.js +62 -0
  326. package/optimize/lib/components/page/page_section/page_section.styles.js +51 -0
  327. package/optimize/lib/components/page/page_side_bar/index.js +2 -2
  328. package/optimize/lib/components/page/page_side_bar/page_side_bar.js +7 -3
  329. package/optimize/lib/components/page/page_sidebar/index.js +13 -0
  330. package/optimize/lib/components/page/page_sidebar/page_sidebar.js +79 -0
  331. package/optimize/lib/components/page/page_sidebar/page_sidebar.styles.js +32 -0
  332. package/optimize/lib/components/page/page_template.js +51 -33
  333. package/optimize/lib/components/page_template/bottom_bar/page_bottom_bar.js +85 -0
  334. package/optimize/lib/components/page_template/empty_prompt/page_empty_prompt.js +71 -0
  335. package/optimize/lib/components/page_template/index.js +13 -0
  336. package/optimize/lib/components/page_template/inner/index.js +13 -0
  337. package/optimize/lib/components/page_template/inner/page_inner.js +57 -0
  338. package/optimize/lib/components/page_template/inner/page_inner.styles.js +35 -0
  339. package/optimize/lib/components/page_template/outer/index.js +13 -0
  340. package/optimize/lib/components/page_template/outer/page_outer.js +42 -0
  341. package/optimize/lib/components/page_template/outer/page_outer.styles.js +51 -0
  342. package/optimize/lib/components/page_template/page_template.js +228 -0
  343. package/optimize/lib/components/panel/split_panel/split_panel.js +2 -2
  344. package/optimize/lib/components/provider/provider.js +1 -1
  345. package/optimize/lib/components/responsive/hide_for.js +4 -33
  346. package/optimize/lib/components/responsive/show_for.js +4 -33
  347. package/optimize/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +14 -34
  348. package/optimize/lib/components/table/table_row_cell.js +1 -3
  349. package/optimize/lib/components/toast/global_toast_list.js +206 -220
  350. package/optimize/lib/components/toast/global_toast_list.styles.js +47 -0
  351. package/optimize/lib/components/toast/global_toast_list_item.js +14 -7
  352. package/optimize/lib/components/toast/toast.js +26 -24
  353. package/optimize/lib/components/toast/toast.styles.js +66 -0
  354. package/optimize/lib/components/token/index.js +5 -3
  355. package/optimize/lib/components/token/token.js +50 -76
  356. package/optimize/lib/components/token/token.styles.js +91 -0
  357. package/optimize/lib/components/token/token_map.js +6 -9
  358. package/optimize/lib/components/token/token_types.js +22 -0
  359. package/optimize/lib/global_styling/functions/logicals.js +1 -1
  360. package/optimize/lib/global_styling/mixins/_helpers.js +27 -9
  361. package/optimize/lib/global_styling/reset/global_styles.js +1 -1
  362. package/optimize/lib/services/{breakpoint.js → breakpoint/breakpoint.js} +5 -9
  363. package/optimize/lib/services/breakpoint/currentEuiBreakpoint.js +81 -0
  364. package/optimize/lib/services/breakpoint/index.js +44 -0
  365. package/optimize/lib/services/breakpoint/useIsWithinBreakpoints.js +34 -0
  366. package/optimize/lib/services/hooks/index.js +0 -13
  367. package/optimize/lib/services/index.js +28 -0
  368. package/optimize/lib/test/rtl/component_helpers.js +69 -3
  369. package/package.json +2 -2
  370. package/src/components/control_bar/_control_bar.scss +1 -1
  371. package/src/components/header/_index.scss +0 -1
  372. package/src/components/index.scss +0 -5
  373. package/src/components/page/_index.scss +0 -5
  374. package/src/components/page/page_content/_page_content_body.scss +10 -1
  375. package/src/components/tabs/_tabs.scss +2 -0
  376. package/src/themes/amsterdam/overrides/_breadcrumbs.scss +0 -12
  377. package/src/themes/amsterdam/overrides/_index.scss +0 -4
  378. package/test-env/components/bottom_bar/bottom_bar.js +20 -3
  379. package/test-env/components/breadcrumbs/breadcrumb.js +211 -0
  380. package/test-env/components/breadcrumbs/breadcrumb.styles.js +68 -0
  381. package/test-env/components/breadcrumbs/breadcrumbs.js +122 -174
  382. package/test-env/components/breadcrumbs/breadcrumbs.styles.js +33 -0
  383. package/test-env/components/collapsible_nav/collapsible_nav.js +2 -2
  384. package/test-env/components/control_bar/control_bar.js +13 -0
  385. package/test-env/components/datagrid/body/data_grid_body.js +12 -2
  386. package/test-env/components/datagrid/body/data_grid_cell.js +31 -3
  387. package/test-env/components/datagrid/body/header/data_grid_header_row.js +1 -1
  388. package/test-env/components/datagrid/controls/column_sorting_draggable.js +1 -1
  389. package/test-env/components/datagrid/data_grid.js +10 -2
  390. package/test-env/components/datagrid/utils/row_heights.js +33 -4
  391. package/test-env/components/date_picker/super_date_picker/super_date_picker.js +2 -2
  392. package/test-env/components/date_picker/super_date_picker/super_update_button.js +1 -1
  393. package/test-env/components/description_list/description_list.js +25 -30
  394. package/test-env/components/description_list/description_list.styles.js +36 -0
  395. package/test-env/components/description_list/description_list_context.js +24 -0
  396. package/test-env/components/description_list/description_list_description.js +43 -2
  397. package/test-env/components/description_list/description_list_description.styles.js +51 -0
  398. package/test-env/components/description_list/description_list_title.js +43 -2
  399. package/test-env/components/description_list/description_list_title.styles.js +50 -0
  400. package/test-env/components/description_list/description_list_types.js +20 -0
  401. package/test-env/components/header/header.js +3 -27
  402. package/test-env/components/header/header_breadcrumbs/header_breadcrumbs.js +24 -2
  403. package/test-env/components/header/header_breadcrumbs/header_breadcrumbs.styles.js +26 -0
  404. package/test-env/components/header/header_links/header_links.js +10 -9
  405. package/test-env/components/icon/assets/tokenStruct.js +1 -1
  406. package/test-env/components/index.js +13 -0
  407. package/test-env/components/observer/resize_observer/resize_observer.js +43 -126
  408. package/test-env/components/page/_bottom_border.js +5 -0
  409. package/test-env/components/page/_restrict_width.js +38 -7
  410. package/test-env/components/page/index.js +28 -12
  411. package/test-env/components/page/page.js +22 -34
  412. package/test-env/components/page/page.styles.js +46 -0
  413. package/test-env/components/page/page_body/page_body.js +20 -29
  414. package/test-env/components/page/page_body/page_body.styles.js +27 -0
  415. package/test-env/components/page/page_content/index.js +8 -8
  416. package/test-env/components/page/page_content/page_content.js +8 -4
  417. package/test-env/components/page/page_content/page_content_body.js +13 -9
  418. package/test-env/components/page/page_content/page_content_header.js +8 -4
  419. package/test-env/components/page/page_content/page_content_header_section.js +8 -4
  420. package/test-env/components/page/page_header/page_header.js +31 -174
  421. package/test-env/components/page/page_header/page_header.styles.js +27 -0
  422. package/test-env/components/page/page_header/page_header_content.js +112 -18
  423. package/test-env/components/page/page_header/page_header_content.styles.js +87 -0
  424. package/test-env/components/page/page_section/index.js +13 -0
  425. package/test-env/components/page/page_section/page_section.js +110 -0
  426. package/test-env/components/page/page_section/page_section.styles.js +51 -0
  427. package/test-env/components/page/page_side_bar/index.js +2 -2
  428. package/test-env/components/page/page_side_bar/page_side_bar.js +9 -5
  429. package/test-env/components/page/page_sidebar/index.js +13 -0
  430. package/test-env/components/page/page_sidebar/page_sidebar.js +113 -0
  431. package/test-env/components/page/page_sidebar/page_sidebar.styles.js +32 -0
  432. package/test-env/components/page/page_template.js +76 -177
  433. package/test-env/components/page_template/bottom_bar/page_bottom_bar.js +102 -0
  434. package/test-env/components/page_template/empty_prompt/page_empty_prompt.js +114 -0
  435. package/test-env/components/page_template/index.js +13 -0
  436. package/test-env/components/page_template/inner/index.js +13 -0
  437. package/test-env/components/page_template/inner/page_inner.js +57 -0
  438. package/test-env/components/page_template/inner/page_inner.styles.js +35 -0
  439. package/test-env/components/page_template/outer/index.js +13 -0
  440. package/test-env/components/page_template/outer/page_outer.js +65 -0
  441. package/test-env/components/page_template/outer/page_outer.styles.js +51 -0
  442. package/test-env/components/page_template/page_template.js +387 -0
  443. package/test-env/components/pagination/pagination.js +1 -1
  444. package/test-env/components/panel/split_panel/split_panel.js +3 -3
  445. package/test-env/components/provider/provider.js +1 -1
  446. package/test-env/components/responsive/hide_for.js +5 -34
  447. package/test-env/components/responsive/show_for.js +5 -34
  448. package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +15 -35
  449. package/test-env/components/side_nav/side_nav.js +1 -1
  450. package/test-env/components/table/table_row_cell.js +1 -3
  451. package/test-env/components/toast/global_toast_list.js +206 -220
  452. package/test-env/components/toast/global_toast_list.styles.js +47 -0
  453. package/test-env/components/toast/global_toast_list_item.js +14 -7
  454. package/test-env/components/toast/toast.js +27 -25
  455. package/test-env/components/toast/toast.styles.js +66 -0
  456. package/test-env/components/token/index.js +5 -3
  457. package/test-env/components/token/token.js +51 -120
  458. package/test-env/components/token/token.styles.js +91 -0
  459. package/test-env/components/token/token_map.js +6 -9
  460. package/test-env/components/token/token_types.js +22 -0
  461. package/test-env/global_styling/functions/logicals.js +1 -1
  462. package/test-env/global_styling/mixins/_helpers.js +27 -9
  463. package/test-env/global_styling/reset/global_styles.js +1 -1
  464. package/{lib/services → test-env/services/breakpoint}/breakpoint.js +5 -9
  465. package/test-env/services/breakpoint/currentEuiBreakpoint.js +37 -0
  466. package/test-env/services/breakpoint/index.js +44 -0
  467. package/test-env/services/breakpoint/useIsWithinBreakpoints.js +34 -0
  468. package/test-env/services/hooks/index.js +0 -13
  469. package/test-env/services/index.js +28 -0
  470. package/test-env/test/rtl/component_helpers.js +69 -3
  471. package/lib/services/hooks/useIsWithinBreakpoints.js +0 -57
  472. package/optimize/es/services/hooks/useIsWithinBreakpoints.js +0 -46
  473. package/optimize/lib/services/hooks/useIsWithinBreakpoints.js +0 -57
  474. package/src/components/breadcrumbs/_breadcrumbs.scss +0 -79
  475. package/src/components/breadcrumbs/_index.scss +0 -2
  476. package/src/components/breadcrumbs/_variables.scss +0 -2
  477. package/src/components/description_list/_description_list.scss +0 -211
  478. package/src/components/description_list/_index.scss +0 -1
  479. package/src/components/header/header_breadcrumbs/_header_breadcrumbs.scss +0 -8
  480. package/src/components/header/header_breadcrumbs/_index.scss +0 -1
  481. package/src/components/page/_mixins.scss +0 -12
  482. package/src/components/page/_page.scss +0 -41
  483. package/src/components/page/page_body/_index.scss +0 -1
  484. package/src/components/page/page_body/_page_body.scss +0 -45
  485. package/src/components/page/page_header/_index.scss +0 -3
  486. package/src/components/page/page_header/_page_header.scss +0 -78
  487. package/src/components/page/page_header/_page_header_content.scss +0 -15
  488. package/src/components/page/page_header/_page_header_section.scss +0 -26
  489. package/src/components/portal/_index.scss +0 -1
  490. package/src/components/portal/_portal.scss +0 -6
  491. package/src/components/toast/_global_toast_list.scss +0 -90
  492. package/src/components/toast/_index.scss +0 -4
  493. package/src/components/toast/_toast.scss +0 -103
  494. package/src/components/token/_index.scss +0 -2
  495. package/src/components/token/_token.scss +0 -85
  496. package/src/components/token/_variables.scss +0 -13
  497. package/src/themes/amsterdam/overrides/_header_breadcrumbs.scss +0 -71
  498. package/src/themes/amsterdam/overrides/_toast.scss +0 -21
  499. package/src/themes/amsterdam/overrides/_token.scss +0 -4
  500. 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' {
@@ -1388,68 +586,205 @@ declare module '@elastic/eui/src/global_styling/variables/levels' {
1388
586
  * z-indexes only compete against other z-indexes when they exist as children of
1389
587
  * that shared parent.
1390
588
  *
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.
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")[];
745
+ /**
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
749
+ *
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
759
+ *
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' {
@@ -1553,137 +888,749 @@ declare module '@elastic/eui/src/services/theme/utils' {
1553
888
  };
1554
889
 
1555
890
  }
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;
891
+ declare module '@elastic/eui/src/services/color/is_color_dark' {
1564
892
  /**
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.
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.
1568
905
  */
1569
- export const tint: (color: string, ratio: number) => string;
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";
1570
965
  /**
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.
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)
1574
969
  */
1575
- export const shade: (color: string, ratio: number) => string;
970
+ export function colorPalette(
1576
971
  /**
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
972
+ * The main color code or array of codes
1581
973
  */
1582
- export const tintOrShade: (color: string, ratio: number, colorMode: EuiThemeColorModeStandard) => string;
974
+ colors: string[],
1583
975
  /**
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
976
+ * The number of colors in the resulting array (default 10)
1588
977
  */
1589
- export const shadeOrTint: (color: string, ratio: number, colorMode: EuiThemeColorModeStandard) => string;
978
+ len?: number,
1590
979
  /**
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.
980
+ * Forces color interpolation to be calculated separately for each half (default false)
1594
981
  */
1595
- export const saturate: (color: string, amount: number) => string;
982
+ diverging?: boolean,
1596
983
  /**
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.
984
+ * Uses a more static interpolation for non-continuous spectrums
1600
985
  */
1601
- export const desaturate: (color: string, amount: number) => string;
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;
1602
1015
  /**
1603
- * Returns the lightness value of a color. 0-100
1604
- * @param color
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.
1605
1018
  */
1606
- export const lightness: (color: string) => number;
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;
1607
1035
 
1608
1036
  }
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;
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;
1537
+ };
1637
1538
 
1638
1539
  }
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;
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 {};
1650
1548
 
1651
1549
  }
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;
1550
+ declare module '@elastic/eui/src/services/react' {
1551
+ export function enqueueStateChange(fn: Function): void;
1657
1552
 
1658
1553
  }
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];
1662
- /**
1663
- * Shadow t-shirt sizes descriptions
1664
- */
1665
- export const _EuiShadowSizesDescriptions: Record<_EuiThemeShadowSize, string>;
1666
- export interface _EuiThemeShadowCustomColor {
1667
- color?: string;
1668
- property?: 'box-shadow' | 'filter';
1669
- }
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;
1670
1558
 
1671
1559
  }
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';
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
+ };
1682
1583
 
1683
1584
  }
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;
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;
1611
+ /**
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.
1615
+ */
1616
+ interface _EuiYScroll {
1617
+ height?: CSSProperties['height'];
1618
+ }
1619
+ export const euiYScroll: (euiTheme: UseEuiTheme, { height }?: _EuiYScroll) => string;
1620
+ export const useEuiYScroll: ({ height }?: _EuiYScroll) => string;
1621
+ export const euiYScrollWithShadows: (euiTheme: UseEuiTheme, { height }?: _EuiYScroll) => string;
1622
+ export const useEuiYScrollWithShadows: ({ height }?: _EuiYScroll) => string;
1623
+ export const euiXScroll: (euiTheme: UseEuiTheme) => string;
1624
+ export const useEuiXScroll: () => string;
1625
+ export const euiXScrollWithShadows: (euiTheme: UseEuiTheme) => string;
1626
+ export const useEuiXScrollWithShadows: () => string;
1627
+ interface EuiScrollOverflowStyles {
1628
+ direction?: 'y' | 'x';
1629
+ mask?: boolean;
1630
+ }
1631
+ export const euiOverflowScroll: (euiTheme: UseEuiTheme, { direction, mask }?: EuiScrollOverflowStyles) => string;
1632
+ export const useEuiOverflowScroll: (direction: EuiScrollOverflowStyles['direction'], mask?: EuiScrollOverflowStyles['mask']) => string;
1633
+ export {};
1687
1634
 
1688
1635
  }
1689
1636
  declare module '@elastic/eui/src/global_styling/functions/logicals' {
@@ -1760,7 +1707,7 @@ declare module '@elastic/eui/src/global_styling/functions/logicals' {
1760
1707
  'margin-horizontal': string;
1761
1708
  'margin-vertical': string;
1762
1709
  };
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")[];
1710
+ 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
1711
  export type LogicalProperties = typeof LOGICAL_PROPERTIES[number];
1765
1712
  /**
1766
1713
  *
@@ -1776,7 +1723,7 @@ declare module '@elastic/eui/src/global_styling/functions/logicals' {
1776
1723
  * @returns `object` Returns the logical CSS property version for the given `property: value` pair
1777
1724
  */
1778
1725
  export const logicalStyle: (property: LogicalProperties, value?: any) => {
1779
- [x: string]: string;
1726
+ [x: string]: any;
1780
1727
  };
1781
1728
  /**
1782
1729
  *
@@ -1886,140 +1833,20 @@ declare module '@elastic/eui/src/global_styling/functions/typography' {
1886
1833
  * @returns string - Calculated line-height value aligned to baseline
1887
1834
  */
1888
1835
  export function euiLineHeightFromBaseline(scale: _EuiThemeFontScale, { base, font }: UseEuiTheme['euiTheme'], { measurement, customScale }?: _FontScaleOptions): string;
1889
- /**
1890
- * Text weight shifting
1891
- *
1892
- * When changing the font-weight based on the state of the component,
1893
- * this mixin will ensure that the sizing is dependent on the boldest
1894
- * weight so it doesn't shift sibling content.
1895
- */
1896
- export const euiTextShift: (fontWeight: "bold" | "light" | "medium" | "regular" | "semiBold" | undefined, attribute: string | undefined, euiTheme: UseEuiTheme['euiTheme']) => string;
1897
-
1898
- }
1899
- declare module '@elastic/eui/src/global_styling/functions' {
1900
- export * from '@elastic/eui/src/global_styling/functions/logicals';
1901
- export * from '@elastic/eui/src/global_styling/functions/size';
1902
- export * from '@elastic/eui/src/global_styling/functions/typography';
1903
-
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.
1836
+ /**
1837
+ * Text weight shifting
1838
+ *
1839
+ * When changing the font-weight based on the state of the component,
1840
+ * this mixin will ensure that the sizing is dependent on the boldest
1841
+ * weight so it doesn't shift sibling content.
2007
1842
  */
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 {};
1843
+ export const euiTextShift: (fontWeight: "bold" | "light" | "regular" | "medium" | "semiBold" | undefined, attribute: string | undefined, euiTheme: UseEuiTheme['euiTheme']) => string;
1844
+
1845
+ }
1846
+ declare module '@elastic/eui/src/global_styling/functions' {
1847
+ export * from '@elastic/eui/src/global_styling/functions/logicals';
1848
+ export * from '@elastic/eui/src/global_styling/functions/size';
1849
+ export * from '@elastic/eui/src/global_styling/functions/typography';
2023
1850
 
2024
1851
  }
2025
1852
  declare module '@elastic/eui/src/global_styling/mixins/_padding' {
@@ -4168,73 +3995,6 @@ declare module '@elastic/eui/src/components/panel/panel' {
4168
3995
  export const EuiPanel: FunctionComponent<EuiPanelProps>;
4169
3996
  export {};
4170
3997
 
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';
4237
-
4238
3998
  }
4239
3999
  declare module '@elastic/eui/src/components/panel/split_panel/split_panel' {
4240
4000
  import React, { FunctionComponent, ReactNode, HTMLAttributes } from 'react';
@@ -6684,36 +6444,252 @@ declare module '@elastic/eui/src/components/color_picker/color_stops/color_stops
6684
6444
  */
6685
6445
  valueInputProps?: Partial<Omit<EuiFieldNumberProps, 'inputRef' | 'compressed' | 'readOnly' | 'min' | 'max' | 'value' | 'isInvalid' | 'onChange'>>;
6686
6446
  }
6687
- export const EuiColorStops: FunctionComponent<EuiColorStopsProps>;
6447
+ export const EuiColorStops: FunctionComponent<EuiColorStopsProps>;
6448
+
6449
+ }
6450
+ declare module '@elastic/eui/src/components/color_picker/color_stops' {
6451
+ export { EuiColorStops } from '@elastic/eui/src/components/color_picker/color_stops/color_stops';
6452
+ export type { ColorStop } from '@elastic/eui/src/components/color_picker/color_stops/color_stop_thumb';
6453
+
6454
+ }
6455
+ declare module '@elastic/eui/src/services/color/stepped_gradient' {
6456
+ import { ColorStop } from '@elastic/eui/src/components/color_picker/color_stops';
6457
+ export const getSteppedGradient: (colors: ColorStop[], steps: number) => string[];
6458
+
6459
+ }
6460
+ declare module '@elastic/eui/src/services/color/manipulation' {
6461
+ import { EuiThemeColorModeStandard } from '@elastic/eui/src/services/theme';
6462
+ /**
6463
+ * Makes a color more transparent.
6464
+ * @param color - Color to manipulate
6465
+ * @param alpha - alpha channel value. From 0-1.
6466
+ */
6467
+ export const transparentize: (color: string, alpha: number) => string;
6468
+ /**
6469
+ * Mixes a provided color with white.
6470
+ * @param color - Color to mix with white
6471
+ * @param ratio - Mix weight. From 0-1. Larger value indicates more white.
6472
+ */
6473
+ export const tint: (color: string, ratio: number) => string;
6474
+ /**
6475
+ * Mixes a provided color with black.
6476
+ * @param color - Color to mix with black
6477
+ * @param ratio - Mix weight. From 0-1. Larger value indicates more black.
6478
+ */
6479
+ export const shade: (color: string, ratio: number) => string;
6480
+ /**
6481
+ * Returns the tinted color for light mode and shaded color for dark mode
6482
+ * @param color - Color to mix with white
6483
+ * @param ratio - Mix weight. From 0-1. Larger value indicates more white.
6484
+ * @param colorMode - Light or dark only
6485
+ */
6486
+ export const tintOrShade: (color: string, ratio: number, colorMode: EuiThemeColorModeStandard) => string;
6487
+ /**
6488
+ * Returns the shaded color for light mode and tinted color for dark mode
6489
+ * @param color - Color to mix with white
6490
+ * @param ratio - Mix weight. From 0-1. Larger value indicates more white.
6491
+ * @param colorMode - Light or dark only
6492
+ */
6493
+ export const shadeOrTint: (color: string, ratio: number, colorMode: EuiThemeColorModeStandard) => string;
6494
+ /**
6495
+ * Increases the saturation of a color by manipulating the hsl saturation.
6496
+ * @param color - Color to manipulate
6497
+ * @param amount - Amount to change in absolute terms. 0-1.
6498
+ */
6499
+ export const saturate: (color: string, amount: number) => string;
6500
+ /**
6501
+ * Decreases the saturation of a color by manipulating the hsl saturation.
6502
+ * @param color - Color to manipulate
6503
+ * @param amount - Amount to change in absolute terms. 0-1.
6504
+ */
6505
+ export const desaturate: (color: string, amount: number) => string;
6506
+ /**
6507
+ * Returns the lightness value of a color. 0-100
6508
+ * @param color
6509
+ */
6510
+ export const lightness: (color: string) => number;
6511
+
6512
+ }
6513
+ declare module '@elastic/eui/src/services/color/contrast' {
6514
+ /**
6515
+ * Creates a new color that meets or exceeds WCAG level AA
6516
+ * @param foreground - Color to manipulate
6517
+ * @param ratio - Amount to change in absolute terms. 0-10.
6518
+ * *
6519
+ * @param themeOrBackground - Color to use as the contrast basis or just pass EuiTheme
6520
+ */
6521
+ export const makeHighContrastColor: (_foreground: string, ratio?: number) => (themeOrBackground: string | {
6522
+ [key: string]: any;
6523
+ colors: {
6524
+ body: string;
6525
+ };
6526
+ }) => string;
6527
+ /**
6528
+ * Creates a new color with increased contrast
6529
+ * Disabled content only needs a contrast of at least 2 because there is no interaction available
6530
+ * @param foreground - Color to manipulate
6531
+ * @param ratio - Amount to change in absolute terms. 0-10.
6532
+ * *
6533
+ * @param themeOrBackground - Color to use as the contrast basis
6534
+ */
6535
+ export const makeDisabledContrastColor: (color: string, ratio?: number) => (themeOrBackground: string | {
6536
+ [key: string]: any;
6537
+ colors: {
6538
+ body: string;
6539
+ };
6540
+ }) => string;
6541
+
6542
+ }
6543
+ declare module '@elastic/eui/src/services/color' {
6544
+ export { isColorDark } from '@elastic/eui/src/services/color/is_color_dark';
6545
+ export { isValidHex } from '@elastic/eui/src/services/color/is_valid_hex';
6546
+ export { hexToHsv } from '@elastic/eui/src/services/color/hex_to_hsv';
6547
+ export { hexToRgb } from '@elastic/eui/src/services/color/hex_to_rgb';
6548
+ export { hsvToHex } from '@elastic/eui/src/services/color/hsv_to_hex';
6549
+ export { hsvToRgb } from '@elastic/eui/src/services/color/hsv_to_rgb';
6550
+ export { rgbToHex } from '@elastic/eui/src/services/color/rgb_to_hex';
6551
+ export { rgbToHsv } from '@elastic/eui/src/services/color/rgb_to_hsv';
6552
+ export { calculateContrast, calculateLuminance, } from '@elastic/eui/src/services/color/luminance_and_contrast';
6553
+ export { VISUALIZATION_COLORS, DEFAULT_VISUALIZATION_COLOR, } from '@elastic/eui/src/services/color/visualization_colors';
6554
+ export { colorPalette } from '@elastic/eui/src/services/color/color_palette';
6555
+ export { euiPaletteForLightBackground, euiPaletteForDarkBackground, euiPaletteColorBlind, euiPaletteColorBlindBehindText, euiPaletteForStatus, euiPaletteForTemperature, euiPaletteComplimentary, euiPaletteNegative, euiPalettePositive, euiPaletteCool, euiPaletteWarm, euiPaletteGray, } from '@elastic/eui/src/services/color/eui_palettes';
6556
+ export type { rgbDef, HSV, RGB } from '@elastic/eui/src/services/color/color_types';
6557
+ export { getSteppedGradient } from '@elastic/eui/src/services/color/stepped_gradient';
6558
+ export * from '@elastic/eui/src/services/color/manipulation';
6559
+ export * from '@elastic/eui/src/services/color/contrast';
6560
+
6561
+ }
6562
+ declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_colors' {
6563
+ import { _EuiThemeColors, _EuiThemeBrandColors, _EuiThemeBrandTextColors, _EuiThemeShadeColors, _EuiThemeSpecialColors, _EuiThemeTextColors, _EuiThemeColorsMode } from '@elastic/eui/src/global_styling/variables/colors';
6564
+ export const brand_colors: _EuiThemeBrandColors;
6565
+ export const brand_text_colors: _EuiThemeBrandTextColors;
6566
+ export const shade_colors: _EuiThemeShadeColors;
6567
+ export const special_colors: _EuiThemeSpecialColors;
6568
+ export const text_colors: _EuiThemeTextColors;
6569
+ export const light_colors: _EuiThemeColorsMode;
6570
+ export const dark_shades: _EuiThemeShadeColors;
6571
+ export const dark_colors_ams: _EuiThemeColorsMode;
6572
+ export const colors: _EuiThemeColors;
6573
+
6574
+ }
6575
+ declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_animation' {
6576
+ import { _EuiThemeAnimationSpeeds, _EuiThemeAnimationEasings, _EuiThemeAnimation } from '@elastic/eui/src/global_styling/variables/animations';
6577
+ export const animation_speed: _EuiThemeAnimationSpeeds;
6578
+ export const animation_ease: _EuiThemeAnimationEasings;
6579
+ export const animation: _EuiThemeAnimation;
6580
+
6581
+ }
6582
+ declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_size' {
6583
+ import { _EuiThemeBase, _EuiThemeSizes } from '@elastic/eui/src/global_styling/variables';
6584
+ export const base: _EuiThemeBase;
6585
+ export const size: _EuiThemeSizes;
6586
+
6587
+ }
6588
+ declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_borders' {
6589
+ import { _EuiThemeBorder } from '@elastic/eui/src/global_styling/variables';
6590
+ export const border: _EuiThemeBorder;
6591
+
6592
+ }
6593
+ declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_levels' {
6594
+ import { _EuiThemeLevels } from '@elastic/eui/src/global_styling/variables';
6595
+ export const levels: _EuiThemeLevels;
6596
+
6597
+ }
6598
+ declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_typography' {
6599
+ import { _EuiThemeFont, _EuiThemeFontBase, _EuiThemeFontScales, _EuiThemeFontWeights } from '@elastic/eui/src/global_styling/variables/typography';
6600
+ export const fontScale: _EuiThemeFontScales;
6601
+ export const fontBase: _EuiThemeFontBase;
6602
+ export const fontWeight: _EuiThemeFontWeights;
6603
+ export const font: _EuiThemeFont;
6604
+
6605
+ }
6606
+ declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_states' {
6607
+ import { _EuiThemeFocus } from '@elastic/eui/src/global_styling/variables/states';
6608
+ export const focus: _EuiThemeFocus;
6609
+
6610
+ }
6611
+ declare module '@elastic/eui/src/themes/amsterdam/theme' {
6612
+ import { EuiThemeShape } from '@elastic/eui/src/services/theme/types';
6613
+ export const AMSTERDAM_NAME_KEY = "EUI_THEME_AMSTERDAM";
6614
+ export const euiThemeAmsterdam: EuiThemeShape;
6615
+ export const EuiThemeAmsterdam: {
6616
+ model: EuiThemeShape;
6617
+ root: EuiThemeShape;
6618
+ key: string;
6619
+ };
6620
+
6621
+ }
6622
+ declare module '@elastic/eui/src/services/theme/context' {
6623
+
6624
+ import { EuiThemeColorModeStandard, EuiThemeSystem, EuiThemeComputed } from '@elastic/eui/src/services/theme/types';
6625
+ export const EuiSystemContext: import("react").Context<EuiThemeSystem<{}>>;
6626
+ export const EuiModificationsContext: import("react").Context<import ("@elastic/eui").RecursivePartial<import ("@elastic/eui/src/services/theme/types").EuiThemeShape>>;
6627
+ export const EuiColorModeContext: import("react").Context<EuiThemeColorModeStandard>;
6628
+ export const EuiThemeContext: import("react").Context<EuiThemeComputed<{}>>;
6629
+
6630
+ }
6631
+ declare module '@elastic/eui/src/services/theme/provider' {
6632
+ import React, { PropsWithChildren } from 'react';
6633
+ import { EuiThemeColorMode, EuiThemeSystem, EuiThemeModifications } from '@elastic/eui/src/services/theme/types';
6634
+ export interface EuiThemeProviderProps<T> {
6635
+ theme?: EuiThemeSystem<T>;
6636
+ colorMode?: EuiThemeColorMode;
6637
+ modify?: EuiThemeModifications<T>;
6638
+ children: any;
6639
+ }
6640
+ export const EuiThemeProvider: <T extends {} = {}>({ theme: _system, colorMode: _colorMode, modify: _modifications, children, }: React.PropsWithChildren<EuiThemeProviderProps<T>>) => JSX.Element;
6688
6641
 
6689
6642
  }
6690
- declare module '@elastic/eui/src/components/color_picker/color_stops' {
6691
- export { EuiColorStops } from '@elastic/eui/src/components/color_picker/color_stops/color_stops';
6692
- export type { ColorStop } from '@elastic/eui/src/components/color_picker/color_stops/color_stop_thumb';
6643
+ declare module '@elastic/eui/src/services/theme' {
6644
+ export { EuiSystemContext, EuiThemeContext, EuiModificationsContext, EuiColorModeContext, } from '@elastic/eui/src/services/theme/context';
6645
+ export type { UseEuiTheme, WithEuiThemeProps } from '@elastic/eui/src/services/theme/hooks';
6646
+ export { useEuiTheme, withEuiTheme } from '@elastic/eui/src/services/theme/hooks';
6647
+ export type { EuiThemeProviderProps } from '@elastic/eui/src/services/theme/provider';
6648
+ export { EuiThemeProvider } from '@elastic/eui/src/services/theme/provider';
6649
+ export { buildTheme, computed, isInverseColorMode, getColorMode, getComputed, getOn, mergeDeep, setOn, Computed, } from '@elastic/eui/src/services/theme/utils';
6650
+ export type { ComputedThemeShape, EuiThemeColorMode, EuiThemeColorModeStandard, EuiThemeComputed, EuiThemeModifications, EuiThemeShape, EuiThemeSystem, } from '@elastic/eui/src/services/theme/types';
6651
+ export { COLOR_MODES_STANDARD } from '@elastic/eui/src/services/theme/types';
6693
6652
 
6694
6653
  }
6695
- declare module '@elastic/eui/src/services/color/stepped_gradient' {
6696
- import { ColorStop } from '@elastic/eui/src/components/color_picker/color_stops';
6697
- export const getSteppedGradient: (colors: ColorStop[], steps: number) => string[];
6654
+ declare module '@elastic/eui/src/services/throttle' {
6655
+ export const throttle: (fn: (...args: any[]) => void, wait?: number) => (...args: any[]) => void;
6698
6656
 
6699
6657
  }
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';
6658
+ declare module '@elastic/eui/src/services/breakpoint/currentEuiBreakpoint' {
6659
+ import React, { FunctionComponent } from 'react';
6660
+ import { _EuiThemeBreakpoint } from '@elastic/eui/src/global_styling/variables/breakpoint'; type CurrentEuiBreakpoint = _EuiThemeBreakpoint | undefined;
6661
+ export const CurrentEuiBreakpointContext: React.Context<CurrentEuiBreakpoint>;
6662
+ /**
6663
+ * Top level provider (nested within EuiProvider) which provides a single
6664
+ * resize listener that returns the current breakpoint based on window width
6665
+ */
6666
+ export const CurrentEuiBreakpointProvider: FunctionComponent;
6667
+ /**
6668
+ * Hook util / syntactical sugar
6669
+ */
6670
+ export const useCurrentEuiBreakpoint: () => CurrentEuiBreakpoint;
6671
+ export {};
6672
+
6673
+ }
6674
+ declare module '@elastic/eui/src/services/breakpoint/useIsWithinBreakpoints' {
6675
+ import { _EuiThemeBreakpoint } from '@elastic/eui/src/global_styling/variables/breakpoint';
6676
+ /**
6677
+ * Given the current window.innerWidth and an array of breakpoint keys,
6678
+ * this hook stores state and returns true or false if the window.innerWidth
6679
+ * falls within any of the named breakpoints.
6680
+ *
6681
+ * @param {_EuiThemeBreakpoint[]} sizes An array of named EUI breakpoints
6682
+ * @param {boolean} isResponsive Some components have the option to turn off responsive behavior.
6683
+ * Since hooks can't be called conditionally, it's easier to pass the condition into the hook
6684
+ * @returns {boolean} Returns `true` if current breakpoint name is included in `sizes`
6685
+ */
6686
+ export const useIsWithinBreakpoints: (sizes: _EuiThemeBreakpoint[], isResponsive?: boolean) => boolean;
6687
+
6688
+ }
6689
+ declare module '@elastic/eui/src/services/breakpoint' {
6690
+ export * from '@elastic/eui/src/services/breakpoint/breakpoint';
6691
+ export * from '@elastic/eui/src/services/breakpoint/currentEuiBreakpoint';
6692
+ export * from '@elastic/eui/src/services/breakpoint/useIsWithinBreakpoints';
6717
6693
 
6718
6694
  }
6719
6695
  declare module '@elastic/eui/src/services/color_picker/color_picker' {
@@ -7094,6 +7070,54 @@ declare module '@elastic/eui/src/services/window_event/window_event' {
7094
7070
  declare module '@elastic/eui/src/services/window_event' {
7095
7071
  export { EuiWindowEvent } from '@elastic/eui/src/services/window_event/window_event';
7096
7072
 
7073
+ }
7074
+ declare module '@elastic/eui/src/services/hooks/useUpdateEffect' {
7075
+ export const useUpdateEffect: (effect: Function, deps: unknown[]) => void;
7076
+
7077
+ }
7078
+ declare module '@elastic/eui/src/services/hooks/useDependentState' {
7079
+
7080
+ export function useDependentState<T>(valueFn: (previousState: undefined | T) => T, deps: unknown[]): readonly [T, import("react").Dispatch<import("react").SetStateAction<T>>];
7081
+
7082
+ }
7083
+ declare module '@elastic/eui/src/services/hooks/useCombinedRefs' {
7084
+ import { MutableRefObject, Ref } from 'react';
7085
+ export const useCombinedRefs: <T>(refs: (Ref<T> | MutableRefObject<T | undefined> | undefined)[]) => (node: T) => void;
7086
+
7087
+ }
7088
+ declare module '@elastic/eui/src/services/hooks/useForceRender' {
7089
+ export const useForceRender: () => () => void;
7090
+
7091
+ }
7092
+ declare module '@elastic/eui/src/services/hooks/useLatest' {
7093
+ import { MutableRefObject } from 'react';
7094
+ /**
7095
+ * Wraps the given `value` into a `MutableRefObject` and keeps the `current`
7096
+ * value up-to-date on every render cycle.
7097
+ */
7098
+ export function useLatest<Value>(value: Value): MutableRefObject<Value | null>;
7099
+
7100
+ }
7101
+ declare module '@elastic/eui/src/services/hooks/useMouseMove' {
7102
+ import { MouseEvent, TouchEvent } from 'react';
7103
+ export function isMouseEvent<T = HTMLDivElement>(event: MouseEvent<T> | TouchEvent<T>): event is MouseEvent<T>;
7104
+ export function useMouseMove<T = HTMLDivElement>(handleChange: (location: {
7105
+ x: number;
7106
+ y: number;
7107
+ }, isFirstInteraction?: boolean) => void, interactionConditional?: any): [
7108
+ (e: MouseEvent<T>) => void,
7109
+ (e: MouseEvent<T> | TouchEvent<T>, isFirstInteraction?: boolean) => void
7110
+ ];
7111
+
7112
+ }
7113
+ declare module '@elastic/eui/src/services/hooks' {
7114
+ export * from '@elastic/eui/src/services/hooks/useDependentState';
7115
+ export * from '@elastic/eui/src/services/hooks/useCombinedRefs';
7116
+ export * from '@elastic/eui/src/services/hooks/useForceRender';
7117
+ export * from '@elastic/eui/src/services/hooks/useLatest';
7118
+ export * from '@elastic/eui/src/services/hooks/useMouseMove';
7119
+ export * from '@elastic/eui/src/services/hooks/useUpdateEffect';
7120
+
7097
7121
  }
7098
7122
  declare module '@elastic/eui/src/services' {
7099
7123
  import * as keys from '@elastic/eui/src/services/keys';
@@ -7102,7 +7126,7 @@ declare module '@elastic/eui/src/services' {
7102
7126
  export type { HorizontalAlignment } from '@elastic/eui/src/services/alignment';
7103
7127
  export { LEFT_ALIGNMENT, RIGHT_ALIGNMENT, CENTER_ALIGNMENT } from '@elastic/eui/src/services/alignment';
7104
7128
  export type { EuiBreakpointSize } from '@elastic/eui/src/services/breakpoint';
7105
- export { BREAKPOINTS, BREAKPOINT_KEYS, getBreakpoint, isWithinBreakpoints, isWithinMaxBreakpoint, isWithinMinBreakpoint, } from '@elastic/eui/src/services/breakpoint';
7129
+ export { BREAKPOINTS, BREAKPOINT_KEYS, getBreakpoint, isWithinBreakpoints, useIsWithinBreakpoints, isWithinMaxBreakpoint, isWithinMinBreakpoint, CurrentEuiBreakpointContext, CurrentEuiBreakpointProvider, useCurrentEuiBreakpoint, } from '@elastic/eui/src/services/breakpoint';
7106
7130
  export type { HSV } from '@elastic/eui/src/services/color';
7107
7131
  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
7132
  export type { EuiSetColorMethod } from '@elastic/eui/src/services/color_picker';
@@ -7549,13 +7573,12 @@ declare module '@elastic/eui/src/components/badge/beta_badge/beta_badge' {
7549
7573
  title?: string;
7550
7574
  }> & {
7551
7575
  label: ReactNode;
7552
- };
7553
- interface LabelAsString {
7576
+ }; type LabelAsString = {
7554
7577
  /**
7555
7578
  * One word label like "Beta" or "Lab"
7556
7579
  */
7557
7580
  label: string;
7558
- } type BadgeProps = {
7581
+ }; type BadgeProps = {
7559
7582
  /**
7560
7583
  * Supply an icon type if the badge should just be an icon
7561
7584
  */
@@ -7700,7 +7723,8 @@ declare module '@elastic/eui/src/components/bottom_bar/bottom_bar.styles' {
7700
7723
  }
7701
7724
  declare module '@elastic/eui/src/components/bottom_bar/bottom_bar' {
7702
7725
  import React, { CSSProperties, HTMLAttributes } from 'react';
7703
- import { CommonProps, ExclusiveUnion } from '@elastic/eui/src/components/common'; type BottomBarPaddingSize = 'none' | 's' | 'm' | 'l';
7726
+ import { CommonProps, ExclusiveUnion } from '@elastic/eui/src/components/common';
7727
+ import { EuiPortalProps } from '@elastic/eui/src/components/portal'; type BottomBarPaddingSize = 'none' | 's' | 'm' | 'l';
7704
7728
  export const paddingSizeToClassNameMap: {
7705
7729
  [value in BottomBarPaddingSize]: string | null;
7706
7730
  };
@@ -7711,7 +7735,7 @@ declare module '@elastic/eui/src/components/bottom_bar/bottom_bar' {
7711
7735
  * Whether to wrap in an EuiPortal which appends the component to the body element.
7712
7736
  * Only works if `position` is `fixed`.
7713
7737
  */
7714
- usePortal?: boolean;
7738
+ usePortal?: boolean | EuiPortalProps;
7715
7739
  /**
7716
7740
  * Whether the component should apply padding on the document body element to afford for its own displacement height.
7717
7741
  * Only works if `usePortal` is true and `position` is `fixed`.
@@ -7808,16 +7832,36 @@ declare module '@elastic/eui/src/components/link' {
7808
7832
  export { EuiLink } from '@elastic/eui/src/components/link/link';
7809
7833
 
7810
7834
  }
7811
- declare module '@elastic/eui/src/components/breadcrumbs/breadcrumbs' {
7812
- import { AriaAttributes, FunctionComponent, HTMLAttributes, MouseEventHandler, ReactNode } from 'react';
7835
+ declare module '@elastic/eui/src/components/breadcrumbs/breadcrumb.styles' {
7836
+ import { UseEuiTheme } from '@elastic/eui/src/services';
7837
+ export const euiBreadcrumbStyles: (euiThemeContext: UseEuiTheme) => {
7838
+ euiBreadcrumb: import("@emotion/utils").SerializedStyles;
7839
+ isTruncated: import("@emotion/utils").SerializedStyles;
7840
+ isCollapsed: import("@emotion/utils").SerializedStyles;
7841
+ page: import("@emotion/utils").SerializedStyles;
7842
+ application: import("@emotion/utils").SerializedStyles;
7843
+ };
7844
+ export const euiBreadcrumbContentStyles: (euiThemeContext: UseEuiTheme) => {
7845
+ euiBreadcrumb__content: import("@emotion/utils").SerializedStyles;
7846
+ isTruncated: import("@emotion/utils").SerializedStyles;
7847
+ isTruncatedLast: import("@emotion/utils").SerializedStyles;
7848
+ page: import("@emotion/utils").SerializedStyles;
7849
+ application: import("@emotion/utils").SerializedStyles;
7850
+ applicationStyles: {
7851
+ onlyChild: import("@emotion/utils").SerializedStyles;
7852
+ firstChild: import("@emotion/utils").SerializedStyles;
7853
+ lastChild: import("@emotion/utils").SerializedStyles;
7854
+ };
7855
+ };
7856
+
7857
+ }
7858
+ declare module '@elastic/eui/src/components/breadcrumbs/breadcrumb' {
7859
+ import { FunctionComponent, HTMLAttributes, AriaAttributes, MouseEventHandler, ReactNode } from 'react';
7813
7860
  import { CommonProps } from '@elastic/eui/src/components/common';
7814
7861
  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 & {
7862
+ export type EuiBreadcrumbProps = Omit<HTMLAttributes<HTMLElement>, 'color' | 'aria-current'> & CommonProps & {
7820
7863
  href?: string;
7864
+ rel?: string;
7821
7865
  onClick?: MouseEventHandler<HTMLAnchorElement>;
7822
7866
  /**
7823
7867
  * Visible label of the breadcrumb
@@ -7835,6 +7879,34 @@ declare module '@elastic/eui/src/components/breadcrumbs/breadcrumbs' {
7835
7879
  * Override the existing `aria-current` which defaults to `page` for the last breadcrumb
7836
7880
  */
7837
7881
  'aria-current'?: AriaAttributes['aria-current'];
7882
+ }; type _EuiBreadcrumbProps = {
7883
+ type: 'page' | 'application';
7884
+ isFirstBreadcrumb?: boolean;
7885
+ isLastBreadcrumb?: boolean;
7886
+ isOnlyBreadcrumb?: boolean;
7887
+ highlightLastBreadcrumb?: boolean;
7888
+ } & Pick<EuiBreadcrumbProps, 'truncate'>;
7889
+ export const EuiBreadcrumb: FunctionComponent<HTMLAttributes<HTMLLIElement> & _EuiBreadcrumbProps>;
7890
+ export const EuiBreadcrumbContent: FunctionComponent<EuiBreadcrumbProps & _EuiBreadcrumbProps>;
7891
+ export const EuiBreadcrumbCollapsed: FunctionComponent<_EuiBreadcrumbProps>;
7892
+ export {};
7893
+
7894
+ }
7895
+ declare module '@elastic/eui/src/components/breadcrumbs/breadcrumbs.styles' {
7896
+ import { UseEuiTheme } from '@elastic/eui/src/services';
7897
+ export const euiBreadcrumbsListStyles: (euiThemeContext: UseEuiTheme) => {
7898
+ euiBreadcrumbs__list: import("@emotion/utils").SerializedStyles;
7899
+ isTruncated: import("@emotion/utils").SerializedStyles;
7900
+ };
7901
+
7902
+ }
7903
+ declare module '@elastic/eui/src/components/breadcrumbs/breadcrumbs' {
7904
+ import { FunctionComponent } from 'react';
7905
+ import { CommonProps, ExclusiveUnion } from '@elastic/eui/src/components/common';
7906
+ import { EuiBreakpointSize } from '@elastic/eui/src/services';
7907
+ import { EuiBreadcrumbProps } from '@elastic/eui/src/components/breadcrumbs/breadcrumb';
7908
+ export type EuiBreadcrumbResponsiveMaxCount = {
7909
+ [key in EuiBreakpointSize]?: number;
7838
7910
  };
7839
7911
  export type EuiBreadcrumbsProps = CommonProps & {
7840
7912
  /**
@@ -7861,13 +7933,30 @@ declare module '@elastic/eui/src/components/breadcrumbs/breadcrumbs' {
7861
7933
  /**
7862
7934
  * The array of individual #EuiBreadcrumb items
7863
7935
  */
7864
- breadcrumbs: EuiBreadcrumb[];
7936
+ breadcrumbs: EuiBreadcrumbProps[];
7937
+ /**
7938
+ * Determines breadcrumbs appearance, with `page` being the default styling.
7939
+ * Application breadcrumbs should only be once per page, in (e.g.) EuiHeader
7940
+ */
7941
+ type?: 'page' | 'application';
7942
+ /**
7943
+ * Whether the last breadcrumb should visually (and accessibly, to screen readers)
7944
+ * be highlighted as the current page. Defaults to true.
7945
+ */
7946
+ lastBreadcrumbIsCurrentPage?: boolean;
7865
7947
  };
7866
7948
  export const EuiBreadcrumbs: FunctionComponent<EuiBreadcrumbsProps>;
7949
+ export const useResponsiveMax: (responsive: EuiBreadcrumbsProps['responsive'], max: EuiBreadcrumbsProps['max']) => number | null | undefined; type _EuiBreadcrumbCollapsedObj = {
7950
+ isCollapsedButton: true;
7951
+ overflowBreadcrumbs: EuiBreadcrumbProps[];
7952
+ }; type _EuiBreadcrumbsObjs = Array<ExclusiveUnion<EuiBreadcrumbProps, _EuiBreadcrumbCollapsedObj>>;
7953
+ export const limitBreadcrumbs: (breadcrumbs: EuiBreadcrumbsProps['breadcrumbs'], max: number) => _EuiBreadcrumbsObjs;
7954
+ export {};
7867
7955
 
7868
7956
  }
7869
7957
  declare module '@elastic/eui/src/components/breadcrumbs' {
7870
- export type { EuiBreadcrumb, EuiBreadcrumbsProps, EuiBreadcrumbResponsiveMaxCount, } from '@elastic/eui/src/components/breadcrumbs/breadcrumbs';
7958
+ export type { EuiBreadcrumbProps as EuiBreadcrumb } from '@elastic/eui/src/components/breadcrumbs/breadcrumb';
7959
+ export type { EuiBreadcrumbsProps, EuiBreadcrumbResponsiveMaxCount, } from '@elastic/eui/src/components/breadcrumbs/breadcrumbs';
7871
7960
  export { EuiBreadcrumbs } from '@elastic/eui/src/components/breadcrumbs/breadcrumbs';
7872
7961
 
7873
7962
  }
@@ -9789,14 +9878,17 @@ declare module '@elastic/eui/src/components/datagrid/utils/sorting' {
9789
9878
  }
9790
9879
  declare module '@elastic/eui/src/components/datagrid/utils/row_heights' {
9791
9880
  import { CSSProperties, MutableRefObject } from 'react';
9792
- import { EuiDataGridStyleCellPaddings, EuiDataGridStyle, EuiDataGridRowHeightOption, EuiDataGridRowHeightsOptions, EuiDataGridColumn, ImperativeGridApi } from '@elastic/eui/src/components/datagrid/data_grid_types';
9881
+ import { GridOnItemsRenderedProps } from 'react-window';
9882
+ import { EuiDataGridColumn, EuiDataGridRowHeightOption, EuiDataGridRowHeightsOptions, EuiDataGridScrollAnchorRow, EuiDataGridStyle, EuiDataGridStyleCellPaddings, ImperativeGridApi } from '@elastic/eui/src/components/datagrid/data_grid_types';
9793
9883
  export const cellPaddingsMap: Record<EuiDataGridStyleCellPaddings, number>;
9794
9884
  export const AUTO_HEIGHT = "auto";
9795
9885
  export const DEFAULT_ROW_HEIGHT = 34;
9796
9886
  export class RowHeightUtils {
9797
9887
  private gridRef;
9888
+ private outerGridElementRef;
9889
+ private gridItemsRenderedRef;
9798
9890
  private rerenderGridBodyRef;
9799
- constructor(gridRef: MutableRefObject<ImperativeGridApi | null>, rerenderGridBodyRef: MutableRefObject<(() => void) | null>);
9891
+ constructor(gridRef: MutableRefObject<ImperativeGridApi | null>, outerGridElementRef: MutableRefObject<HTMLDivElement | null>, gridItemsRenderedRef: MutableRefObject<GridOnItemsRenderedProps | null>, rerenderGridBodyRef: MutableRefObject<(() => void) | null>);
9800
9892
  getRowHeightOption(rowIndex: number, rowHeightsOptions?: EuiDataGridRowHeightsOptions): EuiDataGridRowHeightOption | undefined;
9801
9893
  isRowHeightOverride(rowIndex: number, rowHeightsOptions?: EuiDataGridRowHeightsOptions): boolean;
9802
9894
  getCalculatedHeight(heightOption: EuiDataGridRowHeightOption, defaultHeight: number, rowIndex?: number, isRowHeightOverride?: boolean): number;
@@ -9823,13 +9915,16 @@ declare module '@elastic/eui/src/components/datagrid/utils/row_heights' {
9823
9915
  pruneHiddenColumnHeights(visibleColumns: EuiDataGridColumn[]): void;
9824
9916
  resetRow(visibleRowIndex: number): void;
9825
9917
  resetGrid(): void;
9918
+ compensateForLayoutShift(rowIndex: number, verticalLayoutShift: number, anchorRow: EuiDataGridScrollAnchorRow): void;
9826
9919
  }
9827
9920
  /**
9828
9921
  * Hook for instantiating RowHeightUtils, setting internal class vars,
9829
9922
  * and setting up various row-height-related side effects
9830
9923
  */
9831
- export const useRowHeightUtils: ({ gridRef, gridStyles, columns, rowHeightsOptions, }: {
9924
+ export const useRowHeightUtils: ({ gridRef, outerGridElementRef, gridItemsRenderedRef, gridStyles, columns, rowHeightsOptions, }: {
9832
9925
  gridRef: MutableRefObject<ImperativeGridApi | null>;
9926
+ outerGridElementRef: MutableRefObject<HTMLDivElement | null>;
9927
+ gridItemsRenderedRef: MutableRefObject<GridOnItemsRenderedProps | null>;
9833
9928
  gridStyles: EuiDataGridStyle;
9834
9929
  columns: EuiDataGridColumn[];
9835
9930
  rowHeightsOptions?: EuiDataGridRowHeightsOptions | undefined;
@@ -9844,27 +9939,18 @@ declare module '@elastic/eui/src/components/datagrid/utils/row_heights' {
9844
9939
  };
9845
9940
 
9846
9941
  }
9847
- declare module '@elastic/eui/src/components/token/token_map' {
9848
- import { TokenProps } from '@elastic/eui/src/components/token/token';
9849
- 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';
9850
- /**
9851
- * Most of the style combinations for tokens are semi-arbitrary. However, there was an effort
9852
- * to use the square shape for more common token types like string and number. Reserving the
9853
- * circle shape for more uncommon token types so they grab attention.
9854
- */
9855
- export const TOKEN_MAP: {
9856
- [mapType in EuiTokenMapType]: Omit<TokenProps, 'iconType'>;
9857
- };
9858
-
9859
- }
9860
- declare module '@elastic/eui/src/components/token/token' {
9861
- import { FunctionComponent, HTMLAttributes } from 'react';
9942
+ declare module '@elastic/eui/src/components/token/token_types' {
9943
+ import { HTMLAttributes } from 'react';
9862
9944
  import { CommonProps } from '@elastic/eui/src/components/common';
9863
- 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';
9864
- export const SIZES: TokenSize[];
9865
- export const SHAPES: TokenShape[];
9866
- export const FILLS: TokenFill[];
9867
- export const COLORS: TokenColor[];
9945
+ import { IconType } from '@elastic/eui/src/components/icon';
9946
+ export const SIZES: readonly ["xs", "s", "m", "l"];
9947
+ export type TokenSize = typeof SIZES[number];
9948
+ export const SHAPES: readonly ["circle", "square", "rectangle"];
9949
+ export type TokenShape = typeof SHAPES[number];
9950
+ export const FILLS: readonly ["light", "dark", "none"];
9951
+ export type TokenFill = typeof FILLS[number];
9952
+ export const COLORS: readonly ["euiColorVis0", "euiColorVis1", "euiColorVis2", "euiColorVis3", "euiColorVis4", "euiColorVis5", "euiColorVis6", "euiColorVis7", "euiColorVis8", "euiColorVis9", "gray"];
9953
+ export type TokenColor = typeof COLORS[number];
9868
9954
  export interface TokenProps {
9869
9955
  /**
9870
9956
  * An EUI icon type
@@ -9872,8 +9958,8 @@ declare module '@elastic/eui/src/components/token/token' {
9872
9958
  iconType: IconType;
9873
9959
  /**
9874
9960
  * For best results use one of the vis color names (or 'gray').
9875
- * Or supply your own color (can be used with dark or no fill only).
9876
- * Default: `gray`
9961
+ * Or supply your own HEX color. The `fill='light'` (lightened background) will always be overridden by `fill='dark'` (solid background).
9962
+ * Default: `gray` for glyphs or one of the vis colors for prefab token types
9877
9963
  */
9878
9964
  color?: TokenColor | string;
9879
9965
  /**
@@ -9899,13 +9985,61 @@ declare module '@elastic/eui/src/components/token/token' {
9899
9985
  'aria-describedby'?: string;
9900
9986
  }
9901
9987
  export type EuiTokenProps = CommonProps & TokenProps & Omit<HTMLAttributes<HTMLSpanElement>, 'title'>;
9988
+
9989
+ }
9990
+ declare module '@elastic/eui/src/components/token/token_map' {
9991
+ import type { TokenProps } from '@elastic/eui/src/components/token/token_types';
9992
+ 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';
9993
+ /**
9994
+ * Most of the style combinations for tokens are semi-arbitrary. However, there was an effort
9995
+ * to use the square shape for more common token types like string and number. Reserving the
9996
+ * circle shape for more uncommon token types so they grab attention.
9997
+ */
9998
+ export const TOKEN_MAP: {
9999
+ [mapType in EuiTokenMapType]: Omit<TokenProps, 'iconType'>;
10000
+ };
10001
+
10002
+ }
10003
+ declare module '@elastic/eui/src/components/token/token.styles' {
10004
+ import { UseEuiTheme } from '@elastic/eui/src/services';
10005
+ import type { TokenFill } from '@elastic/eui/src/components/token/token_types';
10006
+ export const euiTokenStyles: ({ euiTheme, colorMode }: UseEuiTheme, fill: TokenFill) => {
10007
+ euiToken: import("@emotion/utils").SerializedStyles;
10008
+ circle: import("@emotion/utils").SerializedStyles;
10009
+ square: import("@emotion/utils").SerializedStyles;
10010
+ rectangle: import("@emotion/utils").SerializedStyles;
10011
+ xs: import("@emotion/utils").SerializedStyles;
10012
+ s: import("@emotion/utils").SerializedStyles;
10013
+ m: import("@emotion/utils").SerializedStyles;
10014
+ l: import("@emotion/utils").SerializedStyles;
10015
+ euiColorVis0: import("@emotion/utils").SerializedStyles;
10016
+ euiColorVis1: import("@emotion/utils").SerializedStyles;
10017
+ euiColorVis2: import("@emotion/utils").SerializedStyles;
10018
+ euiColorVis3: import("@emotion/utils").SerializedStyles;
10019
+ euiColorVis4: import("@emotion/utils").SerializedStyles;
10020
+ euiColorVis5: import("@emotion/utils").SerializedStyles;
10021
+ euiColorVis6: import("@emotion/utils").SerializedStyles;
10022
+ euiColorVis7: import("@emotion/utils").SerializedStyles;
10023
+ euiColorVis8: import("@emotion/utils").SerializedStyles;
10024
+ euiColorVis9: import("@emotion/utils").SerializedStyles;
10025
+ gray: import("@emotion/utils").SerializedStyles;
10026
+ customColor: import("@emotion/utils").SerializedStyles;
10027
+ light: import("@emotion/utils").SerializedStyles;
10028
+ dark: import("@emotion/utils").SerializedStyles;
10029
+ none: import("@emotion/utils").SerializedStyles;
10030
+ };
10031
+
10032
+ }
10033
+ declare module '@elastic/eui/src/components/token/token' {
10034
+ import { FunctionComponent } from 'react';
10035
+ import type { EuiTokenProps } from '@elastic/eui/src/components/token/token_types';
9902
10036
  export const EuiToken: FunctionComponent<EuiTokenProps>;
9903
- export {};
9904
10037
 
9905
10038
  }
9906
10039
  declare module '@elastic/eui/src/components/token' {
9907
- export type { EuiTokenProps } from '@elastic/eui/src/components/token/token';
9908
- export { EuiToken, SIZES as TOKEN_SIZES, SHAPES as TOKEN_SHAPES, COLORS as TOKEN_COLORS, } from '@elastic/eui/src/components/token/token';
10040
+ export type { EuiTokenProps } from '@elastic/eui/src/components/token/token_types';
10041
+ export { SIZES as TOKEN_SIZES, SHAPES as TOKEN_SHAPES, COLORS as TOKEN_COLORS, } from '@elastic/eui/src/components/token/token_types';
10042
+ export { EuiToken } from '@elastic/eui/src/components/token/token';
9909
10043
 
9910
10044
  }
9911
10045
  declare module '@elastic/eui/src/components/datagrid/data_grid_types' {
@@ -10687,6 +10821,7 @@ declare module '@elastic/eui/src/components/datagrid/data_grid_types' {
10687
10821
  width: number;
10688
10822
  }
10689
10823
  export type EuiDataGridOnColumnResizeHandler = (data: EuiDataGridOnColumnResizeData) => void;
10824
+ export type EuiDataGridScrollAnchorRow = 'start' | 'center' | undefined;
10690
10825
  export type EuiDataGridRowHeightOption = number | 'auto' | ExclusiveUnion<{
10691
10826
  lineCount: number;
10692
10827
  }, {
@@ -10713,6 +10848,13 @@ declare module '@elastic/eui/src/components/datagrid/data_grid_types' {
10713
10848
  * Can be used for, e.g. storing user `rowHeightsOptions` in a local storage object.
10714
10849
  */
10715
10850
  onChange?: (rowHeightsOptions: EuiDataGridRowHeightsOptions) => void;
10851
+ /**
10852
+ * Optional indicator of the row that should be used as an anchor for vertical layout shift compensation.
10853
+ * When set to 'start' or 'center', the topmost or middle visible row will try
10854
+ * to compensate for changes in their top offsets by adjusting the grid's scroll
10855
+ * position.
10856
+ */
10857
+ scrollAnchorRow?: EuiDataGridScrollAnchorRow;
10716
10858
  }
10717
10859
  export interface EuiDataGridRowManager {
10718
10860
  getRow(args: {
@@ -12401,7 +12543,7 @@ declare module '@elastic/eui/src/components/date_picker/date_picker_range' {
12401
12543
  }
12402
12544
  declare module '@elastic/eui/src/components/responsive/hide_for' {
12403
12545
  import { ReactNode, FunctionComponent } from 'react';
12404
- import { EuiBreakpointSize } from '@elastic/eui/src/services/breakpoint';
12546
+ import { EuiBreakpointSize } from '@elastic/eui/src/services';
12405
12547
  export type EuiHideForBreakpoints = EuiBreakpointSize;
12406
12548
  export interface EuiHideForProps {
12407
12549
  /**
@@ -12419,7 +12561,7 @@ declare module '@elastic/eui/src/components/responsive/hide_for' {
12419
12561
  }
12420
12562
  declare module '@elastic/eui/src/components/responsive/show_for' {
12421
12563
  import { ReactNode, FunctionComponent } from 'react';
12422
- import { EuiBreakpointSize } from '@elastic/eui/src/services/breakpoint';
12564
+ import { EuiBreakpointSize } from '@elastic/eui/src/services';
12423
12565
  export type EuiShowForBreakpoints = EuiBreakpointSize;
12424
12566
  export interface EuiShowForProps {
12425
12567
  /**
@@ -12784,24 +12926,9 @@ declare module '@elastic/eui/src/components/delay_render' {
12784
12926
  export { EuiDelayRender } from '@elastic/eui/src/components/delay_render/delay_render';
12785
12927
 
12786
12928
  }
12787
- declare module '@elastic/eui/src/components/description_list/description_list_title' {
12788
- import { HTMLAttributes, FunctionComponent } from 'react';
12789
- import { CommonProps } from '@elastic/eui/src/components/common';
12790
- export const EuiDescriptionListTitle: FunctionComponent<CommonProps & HTMLAttributes<HTMLElement>>;
12791
-
12792
- }
12793
- declare module '@elastic/eui/src/components/description_list/description_list_description' {
12794
- import { HTMLAttributes, FunctionComponent } from 'react';
12795
- import { CommonProps } from '@elastic/eui/src/components/common';
12796
- export const EuiDescriptionListDescription: FunctionComponent<CommonProps & HTMLAttributes<HTMLElement>>;
12797
-
12798
- }
12799
- declare module '@elastic/eui/src/components/description_list/description_list' {
12800
- import { HTMLAttributes, ReactNode, FunctionComponent } from 'react';
12929
+ declare module '@elastic/eui/src/components/description_list/description_list_types' {
12930
+ import { HTMLAttributes, ReactNode } from 'react';
12801
12931
  import { CommonProps } from '@elastic/eui/src/components/common';
12802
- export type EuiDescriptionListType = keyof typeof typesToClassNameMap;
12803
- export type EuiDescriptionListAlignment = keyof typeof alignmentsToClassNameMap;
12804
- export type EuiDescriptionListTextStyle = keyof typeof textStylesToClassNameMap;
12805
12932
  export interface EuiDescriptionListProps {
12806
12933
  listItems?: Array<{
12807
12934
  title: NonNullable<ReactNode>;
@@ -12819,7 +12946,7 @@ declare module '@elastic/eui/src/components/description_list/description_list' {
12819
12946
  * How should the content be styled, by default
12820
12947
  * this will emphasize the title
12821
12948
  */
12822
- textStyle?: EuiDescriptionListTextStyle;
12949
+ textStyle?: 'normal' | 'reverse';
12823
12950
  /**
12824
12951
  * How each item should be laid out
12825
12952
  */
@@ -12832,27 +12959,107 @@ declare module '@elastic/eui/src/components/description_list/description_list' {
12832
12959
  * Props object to be passed to `EuiDescriptionListDescription`
12833
12960
  */
12834
12961
  descriptionProps?: HTMLAttributes<HTMLElement> & CommonProps;
12835
- } const typesToClassNameMap: {
12836
- row: string;
12837
- inline: string;
12838
- column: string;
12839
- responsiveColumn: string;
12962
+ }
12963
+ export const TYPES: readonly ["row", "inline", "column", "responsiveColumn"];
12964
+ export type EuiDescriptionListType = typeof TYPES[number];
12965
+ export const ALIGNMENTS: readonly ["center", "left"];
12966
+ export type EuiDescriptionListAlignment = typeof ALIGNMENTS[number];
12967
+ export const TEXT_STYLES: readonly ["normal", "reverse"];
12968
+ export type EuiDescriptionListTextStyle = typeof TEXT_STYLES[number];
12969
+
12970
+ }
12971
+ declare module '@elastic/eui/src/components/description_list/description_list_title.styles' {
12972
+ import { UseEuiTheme } from '@elastic/eui/src/services';
12973
+ export const euiDescriptionListTitleStyles: (euiThemeContext: UseEuiTheme) => {
12974
+ euiDescriptionList__title: import("@emotion/utils").SerializedStyles;
12975
+ row: import("@emotion/utils").SerializedStyles;
12976
+ column: import("@emotion/utils").SerializedStyles;
12977
+ responsiveColumn: import("@emotion/utils").SerializedStyles;
12978
+ inline: import("@emotion/utils").SerializedStyles;
12979
+ fontStyles: {
12980
+ normal: import("@emotion/utils").SerializedStyles;
12981
+ reverse: import("@emotion/utils").SerializedStyles;
12982
+ compressed: import("@emotion/utils").SerializedStyles;
12983
+ };
12984
+ inlineStyles: {
12985
+ normal: import("@emotion/utils").SerializedStyles;
12986
+ compressed: import("@emotion/utils").SerializedStyles;
12987
+ };
12988
+ right: import("@emotion/utils").SerializedStyles;
12840
12989
  };
12841
- export const TYPES: ("row" | "inline" | "column" | "responsiveColumn")[]; const alignmentsToClassNameMap: {
12842
- center: string;
12843
- left: string;
12990
+
12991
+ }
12992
+ declare module '@elastic/eui/src/components/description_list/description_list_context' {
12993
+
12994
+ import { EuiDescriptionListProps } from '@elastic/eui/src/components/description_list/description_list_types'; type EuiDescriptionListContextValues = Required<Pick<EuiDescriptionListProps, 'type' | 'textStyle' | 'align'>> & {
12995
+ compressed?: EuiDescriptionListProps['compressed'];
12996
+ };
12997
+ export const contextDefaults: EuiDescriptionListContextValues;
12998
+ export const EuiDescriptionListContext: import("react").Context<EuiDescriptionListContextValues>;
12999
+ export {};
13000
+
13001
+ }
13002
+ declare module '@elastic/eui/src/components/description_list/description_list_title' {
13003
+ import { HTMLAttributes, FunctionComponent } from 'react';
13004
+ import { CommonProps } from '@elastic/eui/src/components/common';
13005
+ interface EuiDescriptionListTitleProps extends CommonProps, HTMLAttributes<HTMLElement> {
13006
+ }
13007
+ export const EuiDescriptionListTitle: FunctionComponent<EuiDescriptionListTitleProps>;
13008
+ export {};
13009
+
13010
+ }
13011
+ declare module '@elastic/eui/src/components/description_list/description_list_description.styles' {
13012
+ import { UseEuiTheme } from '@elastic/eui/src/services';
13013
+ export const euiDescriptionListDescriptionStyles: (euiThemeContext: UseEuiTheme) => {
13014
+ euiDescriptionList__description: import("@emotion/utils").SerializedStyles;
13015
+ row: import("@emotion/utils").SerializedStyles;
13016
+ column: import("@emotion/utils").SerializedStyles;
13017
+ responsiveColumn: import("@emotion/utils").SerializedStyles;
13018
+ inline: import("@emotion/utils").SerializedStyles;
13019
+ fontStyles: {
13020
+ normal: import("@emotion/utils").SerializedStyles;
13021
+ reverse: import("@emotion/utils").SerializedStyles;
13022
+ compressed: import("@emotion/utils").SerializedStyles;
13023
+ };
13024
+ inlineStyles: {
13025
+ compressed: import("@emotion/utils").SerializedStyles;
13026
+ normal: import("@emotion/utils").SerializedStyles;
13027
+ };
13028
+ left: import("@emotion/utils").SerializedStyles;
12844
13029
  };
12845
- export const ALIGNMENTS: ("left" | "center")[]; const textStylesToClassNameMap: {
12846
- normal: string;
12847
- reverse: string;
13030
+
13031
+ }
13032
+ declare module '@elastic/eui/src/components/description_list/description_list_description' {
13033
+ import { HTMLAttributes, FunctionComponent } from 'react';
13034
+ import { CommonProps } from '@elastic/eui/src/components/common';
13035
+ interface EuiDescriptionListDescriptionProps extends CommonProps, HTMLAttributes<HTMLElement> {
13036
+ }
13037
+ export const EuiDescriptionListDescription: FunctionComponent<EuiDescriptionListDescriptionProps>;
13038
+ export {};
13039
+
13040
+ }
13041
+ declare module '@elastic/eui/src/components/description_list/description_list.styles' {
13042
+ import { UseEuiTheme } from '@elastic/eui/src/services';
13043
+ export const euiDescriptionListStyles: (euiThemeContext: UseEuiTheme) => {
13044
+ euiDescriptionList: import("@emotion/utils").SerializedStyles;
13045
+ row: import("@emotion/utils").SerializedStyles;
13046
+ inline: import("@emotion/utils").SerializedStyles;
13047
+ column: import("@emotion/utils").SerializedStyles;
13048
+ responsiveColumn: import("@emotion/utils").SerializedStyles;
13049
+ center: import("@emotion/utils").SerializedStyles;
13050
+ left: import("@emotion/utils").SerializedStyles;
12848
13051
  };
12849
- export const TEXT_STYLES: ("normal" | "reverse")[];
13052
+
13053
+ }
13054
+ declare module '@elastic/eui/src/components/description_list/description_list' {
13055
+ import { HTMLAttributes, FunctionComponent } from 'react';
13056
+ import { CommonProps } from '@elastic/eui/src/components/common';
13057
+ import { EuiDescriptionListProps } from '@elastic/eui/src/components/description_list/description_list_types';
12850
13058
  export const EuiDescriptionList: FunctionComponent<CommonProps & HTMLAttributes<HTMLDListElement> & EuiDescriptionListProps>;
12851
- export {};
12852
13059
 
12853
13060
  }
12854
13061
  declare module '@elastic/eui/src/components/description_list' {
12855
- export type { EuiDescriptionListProps } from '@elastic/eui/src/components/description_list/description_list';
13062
+ export type { EuiDescriptionListProps } from '@elastic/eui/src/components/description_list/description_list_types';
12856
13063
  export { EuiDescriptionList } from '@elastic/eui/src/components/description_list/description_list';
12857
13064
  export { EuiDescriptionListTitle } from '@elastic/eui/src/components/description_list/description_list_title';
12858
13065
  export { EuiDescriptionListDescription } from '@elastic/eui/src/components/description_list/description_list_description';
@@ -13331,6 +13538,13 @@ declare module '@elastic/eui/src/components/header/header_section' {
13331
13538
  export type { EuiHeaderSectionItemButtonProps } from '@elastic/eui/src/components/header/header_section/header_section_item_button';
13332
13539
  export { EuiHeaderSectionItemButton } from '@elastic/eui/src/components/header/header_section/header_section_item_button';
13333
13540
 
13541
+ }
13542
+ declare module '@elastic/eui/src/components/header/header_breadcrumbs/header_breadcrumbs.styles' {
13543
+ import { UseEuiTheme } from '@elastic/eui/src/services';
13544
+ export const euiHeaderBreadcrumbsStyles: ({ euiTheme }: UseEuiTheme) => {
13545
+ euiHeaderBreadcrumbs: import("@emotion/utils").SerializedStyles;
13546
+ };
13547
+
13334
13548
  }
13335
13549
  declare module '@elastic/eui/src/components/header/header_breadcrumbs/header_breadcrumbs' {
13336
13550
  import { FunctionComponent } from 'react';
@@ -14637,25 +14851,51 @@ declare module '@elastic/eui/src/components/page/_restrict_width' {
14637
14851
  * This is file contains the type specific to that prop and a helper
14638
14852
  * function for creating the corresponding classNames and style tags
14639
14853
  * based on the consumer's configuration
14640
- *
14641
- * @param {restrictWidth} boolean | number | string The prop value
14642
- * @param {style} CSSProperties An object of style attributes if provided
14643
- * @returns {{widthClassName: string, newStyle: CSSProperties}} Returns an object with keys for the class name to append to the component's class and the updated style props
14644
14854
  */
14645
14855
  import { CSSProperties } from 'react';
14856
+ export const PAGE_MAX_WIDTH: CSSProperties['maxWidth'];
14646
14857
  export type _EuiPageRestrictWidth = {
14647
14858
  /**
14648
14859
  * Sets the max-width of the page,
14649
- * set to `true` to use the default size of `1000px (1200 for Amsterdam)`,
14860
+ * set to `true` to use the default size of `1200px`,
14650
14861
  * set to `false` to not restrict the width,
14651
14862
  * set to a number for a custom width in px,
14652
14863
  * set to a string for a custom width in custom measurement.
14653
14864
  */
14654
14865
  restrictWidth?: boolean | number | string;
14655
14866
  };
14867
+ /**
14868
+ * **DEPRECATED**
14869
+ * This function calculates the correct class name and combined styles
14870
+ * based on the `restrictWidth` value passed in
14871
+ *
14872
+ * @param restrictWidth `boolean | number | string` The prop value
14873
+ * @param style `CSSProperties` An object of style attributes if provided
14874
+ * @returns An object with keys for the `widthClassName` to append to the component's class and the updated `newStyle` props
14875
+ */
14656
14876
  export function setPropsForRestrictedPageWidth(restrictWidth: _EuiPageRestrictWidth['restrictWidth'], style?: CSSProperties): {
14657
14877
  widthClassName?: string;
14658
- newStyle?: CSSProperties;
14878
+ newStyle: CSSProperties;
14879
+ };
14880
+ /**
14881
+ * This function calculates the correct just the combined styles
14882
+ * based on the `restrictWidth` value passed in
14883
+ *
14884
+ * @param restrictWidth `boolean | number | string` The prop value
14885
+ * @param style `CSSProperties` An object of style attributes if provided
14886
+ * @returns An object of the updated `style` props
14887
+ */
14888
+ export function setStyleForRestrictedPageWidth(restrictWidth: _EuiPageRestrictWidth['restrictWidth'], style?: CSSProperties): CSSProperties;
14889
+
14890
+ }
14891
+ declare module '@elastic/eui/src/components/page/page.styles' {
14892
+ import { UseEuiTheme } from '@elastic/eui/src/services';
14893
+ export const euiPageStyles: (euiThemeContext: UseEuiTheme) => {
14894
+ euiPage: import("@emotion/utils").SerializedStyles;
14895
+ grow: import("@emotion/utils").SerializedStyles;
14896
+ column: import("@emotion/utils").SerializedStyles;
14897
+ row: import("@emotion/utils").SerializedStyles;
14898
+ restrictWidth: import("@emotion/utils").SerializedStyles;
14659
14899
  };
14660
14900
 
14661
14901
  }
@@ -14663,14 +14903,13 @@ declare module '@elastic/eui/src/components/page/page' {
14663
14903
  import { FunctionComponent, HTMLAttributes } from 'react';
14664
14904
  import { CommonProps } from '@elastic/eui/src/components/common';
14665
14905
  import { _EuiPageRestrictWidth } from '@elastic/eui/src/components/page/_restrict_width';
14666
- export const SIZES: ("s" | "none" | "m" | "l")[];
14667
- export const DIRECTIONS: ("row" | "column")[];
14906
+ import { EuiPaddingSize } from '@elastic/eui/src/global_styling';
14668
14907
  export interface EuiPageProps extends CommonProps, HTMLAttributes<HTMLDivElement>, _EuiPageRestrictWidth {
14669
14908
  /**
14670
14909
  * Adjust the padding.
14671
14910
  * When using this setting it's best to be consistent throughout all similar usages
14672
14911
  */
14673
- paddingSize?: typeof SIZES[number];
14912
+ paddingSize?: EuiPaddingSize;
14674
14913
  /**
14675
14914
  * Adds `flex-grow: 1` to the whole page for stretching to fit vertically.
14676
14915
  * Must be wrapped inside a flexbox, preferrably with `min-height: 100vh`
@@ -14684,13 +14923,20 @@ declare module '@elastic/eui/src/components/page/page' {
14684
14923
  }
14685
14924
  export const EuiPage: FunctionComponent<EuiPageProps>;
14686
14925
 
14926
+ }
14927
+ declare module '@elastic/eui/src/components/page/page_body/page_body.styles' {
14928
+ export const euiPageBodyStyles: () => {
14929
+ euiPageBody: import("@emotion/utils").SerializedStyles;
14930
+ restrictWidth: import("@emotion/utils").SerializedStyles;
14931
+ };
14932
+
14687
14933
  }
14688
14934
  declare module '@elastic/eui/src/components/page/page_body/page_body' {
14689
14935
  import React, { PropsWithChildren, ComponentType, ComponentProps } from 'react';
14690
14936
  import { CommonProps } from '@elastic/eui/src/components/common';
14691
14937
  import { _EuiPageRestrictWidth } from '@elastic/eui/src/components/page/_restrict_width';
14692
14938
  import { EuiPanelProps } from '@elastic/eui/src/components/panel';
14693
- export const PADDING_SIZES: ("s" | "none" | "m" | "l")[]; type ComponentTypes = keyof JSX.IntrinsicElements | ComponentType<any>;
14939
+ import { EuiPaddingSize } from '@elastic/eui/src/global_styling'; type ComponentTypes = keyof JSX.IntrinsicElements | ComponentType<any>;
14694
14940
  export type EuiPageBodyProps<T extends ComponentTypes = 'main'> = CommonProps & ComponentProps<T> & _EuiPageRestrictWidth & {
14695
14941
  /**
14696
14942
  * Sets the HTML element for `EuiPageBody`.
@@ -14707,9 +14953,9 @@ declare module '@elastic/eui/src/components/page/page_body/page_body' {
14707
14953
  /**
14708
14954
  * Adjusts the padding
14709
14955
  */
14710
- paddingSize?: typeof PADDING_SIZES[number];
14956
+ paddingSize?: EuiPaddingSize;
14711
14957
  };
14712
- export const EuiPageBody: <T extends ComponentTypes>({ children, restrictWidth, style, className, component: Component, panelled, panelProps, paddingSize, borderRadius, ...rest }: React.PropsWithChildren<EuiPageBodyProps<T>>) => JSX.Element;
14958
+ export const EuiPageBody: <T extends ComponentTypes>({ children, restrictWidth, className, component: Component, panelled, panelProps, paddingSize, borderRadius, ...rest }: React.PropsWithChildren<EuiPageBodyProps<T>>) => JSX.Element;
14713
14959
  export {};
14714
14960
 
14715
14961
  }
@@ -14734,7 +14980,11 @@ declare module '@elastic/eui/src/components/page/page_content/page_content' {
14734
14980
  */
14735
14981
  role?: HTMLAttributes['role'] | null;
14736
14982
  };
14737
- export const EuiPageContent: FunctionComponent<EuiPageContentProps>;
14983
+ /**
14984
+ * **DEPRECATED**
14985
+ * Use EuiPageSection instead
14986
+ */
14987
+ export const EuiPageContent_Deprecated: FunctionComponent<EuiPageContentProps>;
14738
14988
 
14739
14989
  }
14740
14990
  declare module '@elastic/eui/src/components/page/page_content/page_content_body' {
@@ -14749,7 +14999,11 @@ declare module '@elastic/eui/src/components/page/page_content/page_content_body'
14749
14999
  */
14750
15000
  paddingSize?: typeof PADDING_SIZES[number];
14751
15001
  }
14752
- export const EuiPageContentBody: FunctionComponent<EuiPageContentBodyProps>;
15002
+ /**
15003
+ * **DEPRECATED**
15004
+ * Use EuiPageSection instead
15005
+ */
15006
+ export const EuiPageContentBody_Deprecated: FunctionComponent<EuiPageContentBodyProps>;
14753
15007
 
14754
15008
  }
14755
15009
  declare module '@elastic/eui/src/components/page/page_content/page_content_header' {
@@ -14762,7 +15016,11 @@ declare module '@elastic/eui/src/components/page/page_content/page_content_heade
14762
15016
  */
14763
15017
  responsive?: boolean;
14764
15018
  }
14765
- export const EuiPageContentHeader: FunctionComponent<EuiPageContentHeaderProps>;
15019
+ /**
15020
+ * **DEPRECATED**
15021
+ * Use EuiPageHeader instead
15022
+ */
15023
+ export const EuiPageContentHeader_Deprecated: FunctionComponent<EuiPageContentHeaderProps>;
14766
15024
 
14767
15025
  }
14768
15026
  declare module '@elastic/eui/src/components/page/page_content/page_content_header_section' {
@@ -14770,18 +15028,45 @@ declare module '@elastic/eui/src/components/page/page_content/page_content_heade
14770
15028
  import { CommonProps } from '@elastic/eui/src/components/common';
14771
15029
  export interface EuiPageContentHeaderSectionProps extends CommonProps, HTMLAttributes<HTMLDivElement> {
14772
15030
  }
14773
- export const EuiPageContentHeaderSection: FunctionComponent<EuiPageContentHeaderSectionProps>;
15031
+ /**
15032
+ * **DEPRECATED**
15033
+ * Use EuiPageHeader instead
15034
+ */
15035
+ export const EuiPageContentHeaderSection_Deprecated: FunctionComponent<EuiPageContentHeaderSectionProps>;
14774
15036
 
14775
15037
  }
14776
15038
  declare module '@elastic/eui/src/components/page/page_content' {
14777
15039
  export type { EuiPageContentProps } from '@elastic/eui/src/components/page/page_content/page_content';
14778
- export { EuiPageContent } from '@elastic/eui/src/components/page/page_content/page_content';
15040
+ export { EuiPageContent_Deprecated } from '@elastic/eui/src/components/page/page_content/page_content';
14779
15041
  export type { EuiPageContentBodyProps } from '@elastic/eui/src/components/page/page_content/page_content_body';
14780
- export { EuiPageContentBody } from '@elastic/eui/src/components/page/page_content/page_content_body';
15042
+ export { EuiPageContentBody_Deprecated } from '@elastic/eui/src/components/page/page_content/page_content_body';
14781
15043
  export type { EuiPageContentHeaderProps } from '@elastic/eui/src/components/page/page_content/page_content_header';
14782
- export { EuiPageContentHeader } from '@elastic/eui/src/components/page/page_content/page_content_header';
15044
+ export { EuiPageContentHeader_Deprecated } from '@elastic/eui/src/components/page/page_content/page_content_header';
14783
15045
  export type { EuiPageContentHeaderSectionProps } from '@elastic/eui/src/components/page/page_content/page_content_header_section';
14784
- export { EuiPageContentHeaderSection } from '@elastic/eui/src/components/page/page_content/page_content_header_section';
15046
+ export { EuiPageContentHeaderSection_Deprecated } from '@elastic/eui/src/components/page/page_content/page_content_header_section';
15047
+
15048
+ }
15049
+ declare module '@elastic/eui/src/components/page/page_header/page_header.styles' {
15050
+ import { UseEuiTheme } from '@elastic/eui/src/services';
15051
+ export const euiPageHeaderStyles: ({ euiTheme }: UseEuiTheme) => {
15052
+ euiPageHeader: import("@emotion/utils").SerializedStyles;
15053
+ border: import("@emotion/utils").SerializedStyles;
15054
+ };
15055
+
15056
+ }
15057
+ declare module '@elastic/eui/src/components/page/page_header/page_header_content.styles' {
15058
+ import { UseEuiTheme } from '@elastic/eui/src/services';
15059
+ export const euiPageHeaderContentStyles: ({ euiTheme }: UseEuiTheme) => {
15060
+ euiPageHeaderContent: import("@emotion/utils").SerializedStyles;
15061
+ top: import("@emotion/utils").SerializedStyles;
15062
+ bottom: import("@emotion/utils").SerializedStyles;
15063
+ center: import("@emotion/utils").SerializedStyles;
15064
+ stretch: import("@emotion/utils").SerializedStyles;
15065
+ flex: import("@emotion/utils").SerializedStyles;
15066
+ responsive: import("@emotion/utils").SerializedStyles;
15067
+ responsiveReverse: import("@emotion/utils").SerializedStyles;
15068
+ euiPageHeaderContent__titleIcon: import("@emotion/utils").SerializedStyles;
15069
+ };
14785
15070
 
14786
15071
  }
14787
15072
  declare module '@elastic/eui/src/components/page/page_header/page_header_content' {
@@ -14793,6 +15078,8 @@ declare module '@elastic/eui/src/components/page/page_header/page_header_content
14793
15078
  import { EuiFlexGroupProps } from '@elastic/eui/src/components/flex';
14794
15079
  import { EuiTitleProps } from '@elastic/eui/src/components/title';
14795
15080
  import { EuiBreadcrumbsProps } from '@elastic/eui/src/components/breadcrumbs';
15081
+ import { PADDING_SIZES } from '@elastic/eui/src/global_styling';
15082
+ import { _EuiPageRestrictWidth } from '@elastic/eui/src/components/page/_restrict_width';
14796
15083
  export const ALIGN_ITEMS: readonly ["top", "bottom", "center", "stretch"]; type Tab = EuiTabProps & {
14797
15084
  /**
14798
15085
  * Visible text of the tab
@@ -14850,7 +15137,16 @@ declare module '@elastic/eui/src/components/page/page_header/page_header_content
14850
15137
  */
14851
15138
  description?: string | ReactNode;
14852
15139
  }
14853
- export interface _EuiPageHeaderContentProps extends EuiPageHeaderContentLeft {
15140
+ export interface _EuiPageHeaderContentProps extends EuiPageHeaderContentLeft, _EuiPageRestrictWidth {
15141
+ /**
15142
+ * The only option is on/off
15143
+ */
15144
+ bottomBorder?: boolean;
15145
+ /**
15146
+ * Adjust the padding.
15147
+ * When using this setting it's best to be consistent throughout all similar usages
15148
+ */
15149
+ paddingSize?: typeof PADDING_SIZES[number];
14854
15150
  /**
14855
15151
  * Set to false if you don't want the children to stack at small screen sizes.
14856
15152
  * Set to `reverse` to display the right side content first for the sake of hierarchy (like global time)
@@ -14858,7 +15154,7 @@ declare module '@elastic/eui/src/components/page/page_header/page_header_content
14858
15154
  responsive?: boolean | 'reverse';
14859
15155
  /**
14860
15156
  * Vertical alignment of the left and right side content;
14861
- * Default is `middle` for custom content, but `top` for when `pageTitle` or `tabs` are included
15157
+ * Default is `center` for custom content, but `top` for when `pageTitle` or `tabs` are included
14862
15158
  */
14863
15159
  alignItems?: typeof ALIGN_ITEMS[number];
14864
15160
  /**
@@ -14881,23 +15177,29 @@ declare module '@elastic/eui/src/components/page/page_header/page_header_content
14881
15177
  export const EuiPageHeaderContent: FunctionComponent<EuiPageHeaderContentProps>;
14882
15178
  export {};
14883
15179
 
15180
+ }
15181
+ declare module '@elastic/eui/src/components/page/_bottom_border' {
15182
+ export type _EuiPageBottomBorder = {
15183
+ /**
15184
+ * Adds a bottom border to separate it from the content after;
15185
+ * Passing `extended` will ensure the border touches the sides of the parent container.
15186
+ */
15187
+ bottomBorder?: boolean | 'extended';
15188
+ };
15189
+
14884
15190
  }
14885
15191
  declare module '@elastic/eui/src/components/page/page_header/page_header' {
14886
15192
  import { FunctionComponent, HTMLAttributes } from 'react';
14887
15193
  import { CommonProps } from '@elastic/eui/src/components/common';
15194
+ import { EuiPaddingSize } from '@elastic/eui/src/global_styling';
14888
15195
  import { _EuiPageHeaderContentProps } from '@elastic/eui/src/components/page/page_header/page_header_content';
14889
15196
  import { _EuiPageRestrictWidth } from '@elastic/eui/src/components/page/_restrict_width';
14890
- export const PADDING_SIZES: ("s" | "none" | "m" | "l")[];
14891
- export interface EuiPageHeaderProps extends CommonProps, HTMLAttributes<HTMLElement>, _EuiPageHeaderContentProps, _EuiPageRestrictWidth {
14892
- /**
14893
- * Adjust the padding.
14894
- * When using this setting it's best to be consistent throughout all similar usages
14895
- */
14896
- paddingSize?: typeof PADDING_SIZES[number];
15197
+ import { _EuiPageBottomBorder } from '@elastic/eui/src/components/page/_bottom_border';
15198
+ export interface EuiPageHeaderProps extends CommonProps, HTMLAttributes<HTMLElement>, Omit<_EuiPageHeaderContentProps, 'bottomBorder'>, _EuiPageRestrictWidth, _EuiPageBottomBorder {
14897
15199
  /**
14898
- * Adds a bottom border to separate it from the content after
15200
+ * Adjust the overall padding.
14899
15201
  */
14900
- bottomBorder?: boolean;
15202
+ paddingSize?: EuiPaddingSize;
14901
15203
  }
14902
15204
  export const EuiPageHeader: FunctionComponent<EuiPageHeaderProps>;
14903
15205
 
@@ -14918,6 +15220,62 @@ declare module '@elastic/eui/src/components/page/page_header' {
14918
15220
  export type { EuiPageHeaderSectionProps } from '@elastic/eui/src/components/page/page_header/page_header_section';
14919
15221
  export { EuiPageHeaderSection } from '@elastic/eui/src/components/page/page_header/page_header_section';
14920
15222
 
15223
+ }
15224
+ declare module '@elastic/eui/src/components/page/page_section/page_section.styles' {
15225
+ import { UseEuiTheme } from '@elastic/eui/src/services';
15226
+ export const ALIGNMENTS: readonly ["top", "center", "horizontalCenter"];
15227
+ export const euiPageSectionStyles: ({ euiTheme }: UseEuiTheme) => {
15228
+ euiPageSection: import("@emotion/utils").SerializedStyles;
15229
+ grow: import("@emotion/utils").SerializedStyles;
15230
+ border: import("@emotion/utils").SerializedStyles;
15231
+ top: import("@emotion/utils").SerializedStyles;
15232
+ center: import("@emotion/utils").SerializedStyles;
15233
+ horizontalCenter: import("@emotion/utils").SerializedStyles;
15234
+ };
15235
+ export const euiPageSectionContentStyles: () => {
15236
+ euiPageSection__content: import("@emotion/utils").SerializedStyles;
15237
+ center: import("@emotion/utils").SerializedStyles;
15238
+ restrictWidth: import("@emotion/utils").SerializedStyles;
15239
+ };
15240
+
15241
+ }
15242
+ declare module '@elastic/eui/src/components/page/page_section/page_section' {
15243
+ import { FunctionComponent, HTMLAttributes } from 'react';
15244
+ import { CommonProps } from '@elastic/eui/src/components/common';
15245
+ import { _EuiPageRestrictWidth } from '@elastic/eui/src/components/page/_restrict_width';
15246
+ import { _EuiPageBottomBorder } from '@elastic/eui/src/components/page/_bottom_border';
15247
+ import { ALIGNMENTS } from '@elastic/eui/src/components/page/page_section/page_section.styles';
15248
+ import { EuiPaddingSize, _EuiBackgroundColor } from '@elastic/eui/src/global_styling';
15249
+ export type EuiPageSectionProps = CommonProps & _EuiPageRestrictWidth & _EuiPageBottomBorder & {
15250
+ /**
15251
+ * Background color of the section;
15252
+ * Usually a lightened form of the brand colors
15253
+ */
15254
+ color?: _EuiBackgroundColor;
15255
+ /**
15256
+ * Padding for all four sides
15257
+ */
15258
+ paddingSize?: EuiPaddingSize;
15259
+ /**
15260
+ * Horizontal and/or vertical alignment of the section contents
15261
+ */
15262
+ alignment?: typeof ALIGNMENTS[number];
15263
+ /**
15264
+ * When true the panel will grow in height to fill container if parent is a flex group
15265
+ */
15266
+ grow?: boolean;
15267
+ /**
15268
+ * Passed down to the div wrapper of the section contents
15269
+ */
15270
+ contentProps?: HTMLAttributes<HTMLDivElement>;
15271
+ } & Omit<HTMLAttributes<HTMLDivElement>, 'color'>;
15272
+ export const EuiPageSection: FunctionComponent<EuiPageSectionProps>;
15273
+
15274
+ }
15275
+ declare module '@elastic/eui/src/components/page/page_section' {
15276
+ export type { EuiPageSectionProps } from '@elastic/eui/src/components/page/page_section/page_section';
15277
+ export { EuiPageSection } from '@elastic/eui/src/components/page/page_section/page_section';
15278
+
14921
15279
  }
14922
15280
  declare module '@elastic/eui/src/components/page/page_side_bar/page_side_bar' {
14923
15281
  import { FunctionComponent, HTMLAttributes } from 'react';
@@ -14925,7 +15283,7 @@ declare module '@elastic/eui/src/components/page/page_side_bar/page_side_bar' {
14925
15283
  export const PADDING_SIZES: ("s" | "none" | "m" | "l")[];
14926
15284
  export interface EuiPageSideBarProps extends CommonProps, HTMLAttributes<HTMLDivElement> {
14927
15285
  /**
14928
- * Adds `position: sticky` and affords for any fixed position headers
15286
+ * Adds `position: sticky`
14929
15287
  */
14930
15288
  sticky?: boolean;
14931
15289
  /**
@@ -14933,24 +15291,74 @@ declare module '@elastic/eui/src/components/page/page_side_bar/page_side_bar' {
14933
15291
  */
14934
15292
  paddingSize?: typeof PADDING_SIZES[number];
14935
15293
  }
14936
- export const EuiPageSideBar: FunctionComponent<EuiPageSideBarProps>;
15294
+ /**
15295
+ * **DEPRECATED**
15296
+ * Use the new EuiPageSidebar instead
15297
+ */
15298
+ export const EuiPageSideBar_Deprecated: FunctionComponent<EuiPageSideBarProps>;
14937
15299
 
14938
15300
  }
14939
15301
  declare module '@elastic/eui/src/components/page/page_side_bar' {
14940
15302
  export type { EuiPageSideBarProps } from '@elastic/eui/src/components/page/page_side_bar/page_side_bar';
14941
- export { EuiPageSideBar } from '@elastic/eui/src/components/page/page_side_bar/page_side_bar';
15303
+ export { EuiPageSideBar_Deprecated } from '@elastic/eui/src/components/page/page_side_bar/page_side_bar';
15304
+
15305
+ }
15306
+ declare module '@elastic/eui/src/components/page/page_sidebar/page_sidebar.styles' {
15307
+ import { UseEuiTheme } from '@elastic/eui/src/services';
15308
+ export const euiPageSidebarStyles: (euiThemeContext: UseEuiTheme) => {
15309
+ euiPageSidebar: import("@emotion/utils").SerializedStyles;
15310
+ sticky: import("@emotion/utils").SerializedStyles;
15311
+ };
15312
+
15313
+ }
15314
+ declare module '@elastic/eui/src/components/page/page_sidebar/page_sidebar' {
15315
+ import { CSSProperties, FunctionComponent, HTMLAttributes } from 'react';
15316
+ import { CommonProps } from '@elastic/eui/src/components/common';
15317
+ import { EuiPaddingSize, _EuiThemeBreakpoint } from '@elastic/eui/src/global_styling';
15318
+ export interface EuiPageSidebarProps extends CommonProps, HTMLAttributes<HTMLDivElement> {
15319
+ /**
15320
+ * Adjust the padding.
15321
+ * When using this setting it's best to be consistent throughout all similar usages.
15322
+ */
15323
+ paddingSize?: EuiPaddingSize;
15324
+ /**
15325
+ * Adds `position: sticky` and affords for any fixed position headers.
15326
+ */
15327
+ sticky?: boolean | {
15328
+ /**
15329
+ * To account for any fixed elements like headers,
15330
+ * pass in the value of the total height of those fixed elements.
15331
+ */
15332
+ offset?: number;
15333
+ };
15334
+ /**
15335
+ * A minimum width is necessary to maintain size.
15336
+ * Be sure to take `paddingSize` into account.
15337
+ */
15338
+ minWidth?: CSSProperties['width'];
15339
+ /**
15340
+ * Sets the `minWidth` to 100% when within these breakpoints.
15341
+ */
15342
+ responsive?: _EuiThemeBreakpoint[];
15343
+ }
15344
+ export const EuiPageSidebar: FunctionComponent<EuiPageSidebarProps>;
15345
+
15346
+ }
15347
+ declare module '@elastic/eui/src/components/page/page_sidebar' {
15348
+ export type { EuiPageSidebarProps } from '@elastic/eui/src/components/page/page_sidebar/page_sidebar';
15349
+ export { EuiPageSidebar } from '@elastic/eui/src/components/page/page_sidebar/page_sidebar';
14942
15350
 
14943
15351
  }
14944
15352
  declare module '@elastic/eui/src/components/page/page_template' {
14945
15353
  import { CSSProperties, FunctionComponent, ReactNode } from 'react';
14946
- import { EuiPageProps, SIZES } from '@elastic/eui/src/components/page/page';
15354
+ import { EuiPageProps } from '@elastic/eui/src/components/page/page';
14947
15355
  import { EuiPageSideBarProps } from '@elastic/eui/src/components/page/page_side_bar';
14948
15356
  import { EuiPageBodyProps } from '@elastic/eui/src/components/page/page_body';
14949
15357
  import { EuiPageHeaderProps } from '@elastic/eui/src/components/page/page_header';
14950
15358
  import { EuiPageContentProps, EuiPageContentBodyProps } from '@elastic/eui/src/components/page/page_content';
14951
15359
  import { EuiBottomBarProps } from '@elastic/eui/src/components/bottom_bar';
14952
15360
  export const TEMPLATES: readonly ["default", "centeredBody", "centeredContent", "empty"];
14953
- export type EuiPageTemplateProps = Omit<EuiPageProps, 'paddingSize'> & {
15361
+ export type EuiPageTemplateProps_Deprecated = Omit<EuiPageProps, 'paddingSize'> & {
14954
15362
  /**
14955
15363
  * Choose between 3 types of templates.
14956
15364
  * `default`: Typical layout with nothing centered
@@ -14963,7 +15371,7 @@ declare module '@elastic/eui/src/components/page/page_template' {
14963
15371
  * Padding size will not get applied to the over-arching #EuiPage,
14964
15372
  * but will propogate through all the components to keep them in sync
14965
15373
  */
14966
- paddingSize?: typeof SIZES[number];
15374
+ paddingSize?: 'none' | 's' | 'm' | 'l';
14967
15375
  /**
14968
15376
  * Optionally include #EuiPageSideBar content.
14969
15377
  * The inclusion of this will affect the whole layout
@@ -15010,7 +15418,12 @@ declare module '@elastic/eui/src/components/page/page_template' {
15010
15418
  */
15011
15419
  minHeight?: CSSProperties['minHeight'];
15012
15420
  };
15013
- export const EuiPageTemplate: FunctionComponent<EuiPageTemplateProps>;
15421
+ /**
15422
+ * This component has been deprecated in favor of the new
15423
+ * namespaced version. You can still import this component
15424
+ * for a period of time by importing `as EuiPageTemplate`.
15425
+ */
15426
+ export const EuiPageTemplate_Deprecated: FunctionComponent<EuiPageTemplateProps_Deprecated>;
15014
15427
 
15015
15428
  }
15016
15429
  declare module '@elastic/eui/src/components/page' {
@@ -15019,13 +15432,183 @@ declare module '@elastic/eui/src/components/page' {
15019
15432
  export type { EuiPageBodyProps } from '@elastic/eui/src/components/page/page_body';
15020
15433
  export { EuiPageBody } from '@elastic/eui/src/components/page/page_body';
15021
15434
  export type { EuiPageContentProps, EuiPageContentBodyProps, EuiPageContentHeaderProps, EuiPageContentHeaderSectionProps, } from '@elastic/eui/src/components/page/page_content';
15022
- export { EuiPageContent, EuiPageContentBody, EuiPageContentHeader, EuiPageContentHeaderSection, } from '@elastic/eui/src/components/page/page_content';
15435
+ export { EuiPageContent_Deprecated, EuiPageContentBody_Deprecated, EuiPageContentHeader_Deprecated, EuiPageContentHeaderSection_Deprecated, } from '@elastic/eui/src/components/page/page_content';
15023
15436
  export type { EuiPageHeaderContentProps, EuiPageHeaderProps, EuiPageHeaderSectionProps, } from '@elastic/eui/src/components/page/page_header';
15024
15437
  export { EuiPageHeader, EuiPageHeaderContent, EuiPageHeaderSection, } from '@elastic/eui/src/components/page/page_header';
15438
+ export type { EuiPageSectionProps } from '@elastic/eui/src/components/page/page_section';
15439
+ export { EuiPageSection } from '@elastic/eui/src/components/page/page_section';
15025
15440
  export type { EuiPageSideBarProps } from '@elastic/eui/src/components/page/page_side_bar';
15026
- export { EuiPageSideBar } from '@elastic/eui/src/components/page/page_side_bar';
15027
- export type { EuiPageTemplateProps } from '@elastic/eui/src/components/page/page_template';
15028
- export { EuiPageTemplate } from '@elastic/eui/src/components/page/page_template';
15441
+ export { EuiPageSideBar_Deprecated } from '@elastic/eui/src/components/page/page_side_bar';
15442
+ export type { EuiPageSidebarProps } from '@elastic/eui/src/components/page/page_sidebar';
15443
+ export { EuiPageSidebar } from '@elastic/eui/src/components/page/page_sidebar';
15444
+ export type { EuiPageTemplateProps_Deprecated } from '@elastic/eui/src/components/page/page_template';
15445
+ export { EuiPageTemplate_Deprecated } from '@elastic/eui/src/components/page/page_template';
15446
+
15447
+ }
15448
+ declare module '@elastic/eui/src/components/page_template/outer/page_outer.styles' {
15449
+ import { UseEuiTheme } from '@elastic/eui/src/services';
15450
+ export const euiPageOuterStyles: ({ euiTheme }: UseEuiTheme) => {
15451
+ euiPageOuter: import("@emotion/utils").SerializedStyles;
15452
+ grow: import("@emotion/utils").SerializedStyles;
15453
+ column: import("@emotion/utils").SerializedStyles;
15454
+ row: import("@emotion/utils").SerializedStyles;
15455
+ };
15456
+
15457
+ }
15458
+ declare module '@elastic/eui/src/components/page_template/outer/page_outer' {
15459
+ import { FunctionComponent, HTMLAttributes } from 'react';
15460
+ import { CommonProps } from '@elastic/eui/src/components/common';
15461
+ import { _EuiThemeBreakpoint } from '@elastic/eui/src/global_styling';
15462
+ export interface _EuiPageOuterProps extends CommonProps, HTMLAttributes<HTMLDivElement> {
15463
+ /**
15464
+ * Adds `flex-grow: 1` to the whole page for stretching to fit vertically.
15465
+ * Must be wrapped inside a flexbox, preferrably with `min-height: 100vh`
15466
+ */
15467
+ grow?: boolean;
15468
+ /**
15469
+ * Changes the `flex-direction` property.
15470
+ * Flip to `column` when not including a sidebar.
15471
+ */
15472
+ direction?: 'row' | 'column';
15473
+ /**
15474
+ * When direction is `row`, it will flip to `column` when within these breakpoints
15475
+ */
15476
+ responsive?: _EuiThemeBreakpoint[];
15477
+ }
15478
+ export const _EuiPageOuter: FunctionComponent<_EuiPageOuterProps>;
15479
+
15480
+ }
15481
+ declare module '@elastic/eui/src/components/page_template/outer' {
15482
+ export type { _EuiPageOuterProps } from '@elastic/eui/src/components/page_template/outer/page_outer';
15483
+ export { _EuiPageOuter } from '@elastic/eui/src/components/page_template/outer/page_outer';
15484
+
15485
+ }
15486
+ declare module '@elastic/eui/src/components/page_template/inner/page_inner.styles' {
15487
+ import { UseEuiTheme } from '@elastic/eui/src/services';
15488
+ export const euiPageInnerStyles: (euiThemeContext: UseEuiTheme) => {
15489
+ euiPageInner: import("@emotion/utils").SerializedStyles;
15490
+ panelled: import("@emotion/utils").SerializedStyles;
15491
+ border: {
15492
+ top: import("@emotion/utils").SerializedStyles;
15493
+ left: import("@emotion/utils").SerializedStyles;
15494
+ };
15495
+ };
15496
+
15497
+ }
15498
+ declare module '@elastic/eui/src/components/page_template/inner/page_inner' {
15499
+ import React, { PropsWithChildren, ComponentType, ComponentProps } from 'react';
15500
+ import { CommonProps } from '@elastic/eui/src/components/common';
15501
+ import { EuiPaddingSize, _EuiThemeBreakpoint } from '@elastic/eui/src/global_styling'; type ComponentTypes = keyof JSX.IntrinsicElements | ComponentType;
15502
+ export type _EuiPageInnerProps<T extends ComponentTypes = 'main'> = CommonProps & ComponentProps<T> & {
15503
+ /**
15504
+ * Sets which HTML element to render.
15505
+ */
15506
+ component?: T;
15507
+ /**
15508
+ * Adds a white background and shadow to define the area.
15509
+ */
15510
+ panelled?: boolean;
15511
+ /**
15512
+ * Adds a single side border, based on the `responsive` state.
15513
+ * Typically added when a side bar exists.
15514
+ */
15515
+ border?: boolean;
15516
+ /**
15517
+ * Adjust the overall padding.
15518
+ */
15519
+ paddingSize?: EuiPaddingSize;
15520
+ /**
15521
+ * Decides at which point the component will be 100vw.
15522
+ */
15523
+ responsive?: _EuiThemeBreakpoint[];
15524
+ };
15525
+ export const _EuiPageInner: <T extends ComponentTypes>({ children, component: Component, panelled, border, paddingSize, responsive, ...rest }: React.PropsWithChildren<_EuiPageInnerProps<T>>) => JSX.Element;
15526
+ export {};
15527
+
15528
+ }
15529
+ declare module '@elastic/eui/src/components/page_template/inner' {
15530
+ export type { _EuiPageInnerProps } from '@elastic/eui/src/components/page_template/inner/page_inner';
15531
+ export { _EuiPageInner } from '@elastic/eui/src/components/page_template/inner/page_inner';
15532
+
15533
+ }
15534
+ declare module '@elastic/eui/src/components/page_template/bottom_bar/page_bottom_bar' {
15535
+ import { FunctionComponent } from 'react';
15536
+ import { EuiBottomBarProps } from '@elastic/eui/src/components/bottom_bar';
15537
+ import { EuiPageSectionProps } from '@elastic/eui/src/components/page/page_section';
15538
+ import { _EuiPageRestrictWidth } from '@elastic/eui/src/components/page/_restrict_width';
15539
+ export interface _EuiPageBottomBarProps extends Pick<EuiPageSectionProps, 'paddingSize'>, _EuiPageRestrictWidth, Omit<EuiBottomBarProps, 'paddingSize'> {
15540
+ /**
15541
+ * The reference id of the element to insert into
15542
+ */
15543
+ parent?: string;
15544
+ }
15545
+ export const _EuiPageBottomBar: FunctionComponent<_EuiPageBottomBarProps>;
15546
+
15547
+ }
15548
+ declare module '@elastic/eui/src/components/page_template/empty_prompt/page_empty_prompt' {
15549
+ import { FunctionComponent } from 'react';
15550
+ import { EuiEmptyPromptProps } from '@elastic/eui/src/components/empty_prompt';
15551
+ import { EuiPageSectionProps } from '@elastic/eui/src/components/page/page_section';
15552
+ export type _EuiPageEmptyPromptProps = Omit<EuiPageSectionProps, 'title' | 'bottomBorder'> & Omit<EuiEmptyPromptProps, 'paddingSize'> & {
15553
+ panelled?: boolean;
15554
+ };
15555
+ export const _EuiPageEmptyPrompt: FunctionComponent<_EuiPageEmptyPromptProps>;
15556
+
15557
+ }
15558
+ declare module '@elastic/eui/src/components/page_template/page_template' {
15559
+ import React, { CSSProperties, FunctionComponent, HTMLAttributes } from 'react';
15560
+ import { _EuiPageOuterProps } from '@elastic/eui/src/components/page_template/outer';
15561
+ import { _EuiPageInnerProps } from '@elastic/eui/src/components/page_template/inner';
15562
+ import { _EuiPageBottomBarProps } from '@elastic/eui/src/components/page_template/bottom_bar/page_bottom_bar';
15563
+ import { _EuiPageEmptyPromptProps } from '@elastic/eui/src/components/page_template/empty_prompt/page_empty_prompt';
15564
+ import { EuiPageHeaderProps, EuiPageSectionProps } from '@elastic/eui/src/components/page';
15565
+ import { _EuiPageRestrictWidth } from '@elastic/eui/src/components/page/_restrict_width';
15566
+ import { _EuiPageBottomBorder } from '@elastic/eui/src/components/page/_bottom_border';
15567
+ import { CommonProps } from '@elastic/eui/src/components/common';
15568
+ export const TemplateContext: React.Context<{
15569
+ section: {};
15570
+ header: {};
15571
+ emptyPrompt: {};
15572
+ bottomBar: {};
15573
+ }>;
15574
+ export type EuiPageTemplateProps = _EuiPageOuterProps & Omit<_EuiPageInnerProps, 'border'> & _EuiPageRestrictWidth & _EuiPageBottomBorder & {
15575
+ /**
15576
+ * Applies a top or left border to the inner contents
15577
+ * to add separation between content and sidebar when a sidebar exists.
15578
+ */
15579
+ contentBorder?: _EuiPageInnerProps['border'];
15580
+ /**
15581
+ * Minimum height in which to enforce scrolling
15582
+ */
15583
+ minHeight?: CSSProperties['minHeight'];
15584
+ /**
15585
+ * To account for any fixed elements like headers,
15586
+ * pass in the value of the total height of those fixed elements.
15587
+ * Otherwise they will be calculated based on the data attributes on the body element.
15588
+ */
15589
+ offset?: number;
15590
+ /**
15591
+ * Passes through some common HTML attributes to the `main` content wrapper
15592
+ */
15593
+ mainProps?: CommonProps & HTMLAttributes<HTMLElement>;
15594
+ };
15595
+ /**
15596
+ * Consumed via `EuiPageTemplate`,
15597
+ * it controls and propogates most of the shared props per direct child
15598
+ */
15599
+ export const _EuiPageTemplate: FunctionComponent<EuiPageTemplateProps>;
15600
+ export const EuiPageTemplate: React.FunctionComponent<EuiPageTemplateProps> & {
15601
+ Sidebar: React.FunctionComponent<import ("@elastic/eui/src/components/page").EuiPageSidebarProps>;
15602
+ Header: React.FunctionComponent<EuiPageHeaderProps>;
15603
+ Section: React.FunctionComponent<EuiPageSectionProps>;
15604
+ BottomBar: React.FunctionComponent<_EuiPageBottomBarProps>;
15605
+ EmptyPrompt: React.FunctionComponent<_EuiPageEmptyPromptProps>;
15606
+ };
15607
+
15608
+ }
15609
+ declare module '@elastic/eui/src/components/page_template' {
15610
+ export type { EuiPageTemplateProps } from '@elastic/eui/src/components/page_template/page_template';
15611
+ export { EuiPageTemplate } from '@elastic/eui/src/components/page_template/page_template';
15029
15612
 
15030
15613
  }
15031
15614
  declare module '@elastic/eui/src/global_styling/utility/utility' {
@@ -16102,7 +16685,8 @@ declare module '@elastic/eui/src/components/selectable/selectable' {
16102
16685
  import { EuiSelectableOptionsListProps } from '@elastic/eui/src/components/selectable/selectable_list/selectable_list';
16103
16686
  import { EuiSelectableSearchProps } from '@elastic/eui/src/components/selectable/selectable_search/selectable_search';
16104
16687
  import { Align } from 'react-window';
16105
- 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<{
16688
+ export type EuiSelectableOnChangeEvent = KeyboardEvent | MouseEvent; type RequiredEuiSelectableOptionsListProps = Omit<EuiSelectableOptionsListProps, keyof typeof EuiSelectableList['defaultProps']>; type OptionalEuiSelectableOptionsListProps = Omit<EuiSelectableOptionsListProps, keyof RequiredEuiSelectableOptionsListProps>; type EuiSelectableOptionsListPropsWithDefaults = RequiredEuiSelectableOptionsListProps & Partial<OptionalEuiSelectableOptionsListProps>;
16689
+ export type EuiSelectableSearchableProps<T> = ExclusiveUnion<{
16106
16690
  searchable: false;
16107
16691
  }, {
16108
16692
  /**
@@ -16331,7 +16915,7 @@ declare module '@elastic/eui/src/components/selectable/selectable_templates' {
16331
16915
 
16332
16916
  }
16333
16917
  declare module '@elastic/eui/src/components/selectable' {
16334
- export type { EuiSelectableProps, EuiSelectableSearchableSearchProps, } from '@elastic/eui/src/components/selectable/selectable';
16918
+ export type { EuiSelectableProps, EuiSelectableSearchableProps, EuiSelectableSearchableSearchProps, } from '@elastic/eui/src/components/selectable/selectable';
16335
16919
  export { EuiSelectable } from '@elastic/eui/src/components/selectable/selectable';
16336
16920
  export type { EuiSelectableListProps, EuiSelectableListItemProps, EuiSelectableOptionsListProps, } from '@elastic/eui/src/components/selectable/selectable_list';
16337
16921
  export { EuiSelectableList, EuiSelectableListItem } from '@elastic/eui/src/components/selectable/selectable_list';
@@ -18286,12 +18870,33 @@ declare module '@elastic/eui/src/components/text_diff' {
18286
18870
  export type { EuiTextDiffProps } from '@elastic/eui/src/components/text_diff/text_diff';
18287
18871
  export { useEuiTextDiff } from '@elastic/eui/src/components/text_diff/text_diff';
18288
18872
 
18873
+ }
18874
+ declare module '@elastic/eui/src/components/toast/toast.styles' {
18875
+ import { UseEuiTheme } from '@elastic/eui/src/services';
18876
+ export const euiToastStyles: (euiThemeContext: UseEuiTheme) => {
18877
+ euiToast: import("@emotion/utils").SerializedStyles;
18878
+ euiToast__closeButton: import("@emotion/utils").SerializedStyles;
18879
+ primary: import("@emotion/utils").SerializedStyles;
18880
+ success: import("@emotion/utils").SerializedStyles;
18881
+ warning: import("@emotion/utils").SerializedStyles;
18882
+ danger: import("@emotion/utils").SerializedStyles;
18883
+ };
18884
+ export const euiToastHeaderStyles: (euiThemeContext: UseEuiTheme) => {
18885
+ euiToastHeader: import("@emotion/utils").SerializedStyles;
18886
+ euiToastHeader__icon: import("@emotion/utils").SerializedStyles;
18887
+ euiToastHeader__title: import("@emotion/utils").SerializedStyles;
18888
+ withBody: import("@emotion/utils").SerializedStyles;
18889
+ };
18890
+ export const euiToastBodyStyles: () => {
18891
+ euiToastBody: import("@emotion/utils").SerializedStyles;
18892
+ };
18893
+
18289
18894
  }
18290
18895
  declare module '@elastic/eui/src/components/toast/toast' {
18291
18896
  import { FunctionComponent, HTMLAttributes, ReactNode } from 'react';
18292
18897
  import { CommonProps } from '@elastic/eui/src/components/common';
18293
- import { IconType } from '@elastic/eui/src/components/icon'; type ToastColor = 'primary' | 'success' | 'warning' | 'danger';
18294
- export const COLORS: ToastColor[];
18898
+ import { IconType } from '@elastic/eui/src/components/icon';
18899
+ export const COLORS: readonly ["primary", "success", "warning", "danger"]; type ToastColor = typeof COLORS[number];
18295
18900
  export interface EuiToastProps extends CommonProps, Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
18296
18901
  title?: ReactNode;
18297
18902
  color?: ToastColor;
@@ -18319,6 +18924,23 @@ declare module '@elastic/eui/src/services/time/timer' {
18319
18924
  declare module '@elastic/eui/src/services/time' {
18320
18925
  export { Timer } from '@elastic/eui/src/services/time/timer';
18321
18926
 
18927
+ }
18928
+ declare module '@elastic/eui/src/components/toast/global_toast_list.styles' {
18929
+ import { UseEuiTheme } from '@elastic/eui/src/services';
18930
+ export const euiGlobalToastListStyles: (euiThemeContext: UseEuiTheme) => {
18931
+ /**
18932
+ * 1. Allow list to expand as items are added, but cap it at the screen height.
18933
+ * 2. Allow some padding for shadow
18934
+ */
18935
+ euiGlobalToastList: import("@emotion/utils").SerializedStyles;
18936
+ right: import("@emotion/utils").SerializedStyles;
18937
+ left: import("@emotion/utils").SerializedStyles;
18938
+ };
18939
+ export const euiGlobalToastListItemStyles: ({ euiTheme }: UseEuiTheme) => {
18940
+ euiGlobalToastListItem: import("@emotion/utils").SerializedStyles;
18941
+ dismissed: import("@emotion/utils").SerializedStyles;
18942
+ };
18943
+
18322
18944
  }
18323
18945
  declare module '@elastic/eui/src/components/toast/global_toast_list_item' {
18324
18946
  import { FunctionComponent, ReactElement } from 'react';
@@ -18334,9 +18956,8 @@ declare module '@elastic/eui/src/components/toast/global_toast_list_item' {
18334
18956
 
18335
18957
  }
18336
18958
  declare module '@elastic/eui/src/components/toast/global_toast_list' {
18337
- import { Component, ReactChild } from 'react';
18959
+ import { FunctionComponent, ReactChild } from 'react';
18338
18960
  import { CommonProps } from '@elastic/eui/src/components/common';
18339
- import { Timer } from '@elastic/eui/src/services/time';
18340
18961
  import { EuiToastProps } from '@elastic/eui/src/components/toast/toast'; type ToastSide = 'right' | 'left';
18341
18962
  export const SIDES: ToastSide[];
18342
18963
  export const TOAST_FADE_OUT_MS = 250;
@@ -18346,47 +18967,15 @@ declare module '@elastic/eui/src/components/toast/global_toast_list' {
18346
18967
  toastLifeTimeMs?: number;
18347
18968
  }
18348
18969
  export interface EuiGlobalToastListProps extends CommonProps {
18349
- toasts: Toast[];
18350
- dismissToast: (this: EuiGlobalToastList, toast: Toast) => void;
18970
+ toasts?: Toast[];
18971
+ dismissToast: (toast: Toast) => void;
18351
18972
  toastLifeTimeMs: number;
18352
18973
  /**
18353
18974
  * Determines which side of the browser window the toasts should appear
18354
18975
  */
18355
18976
  side?: ToastSide;
18356
18977
  }
18357
- interface State {
18358
- toastIdToDismissedMap: {
18359
- [toastId: string]: boolean;
18360
- };
18361
- }
18362
- export class EuiGlobalToastList extends Component<EuiGlobalToastListProps, State> {
18363
- state: State;
18364
- dismissTimeoutIds: number[];
18365
- toastIdToTimerMap: {
18366
- [toastId: string]: Timer;
18367
- };
18368
- isScrollingToBottom: boolean;
18369
- isScrolledToBottom: boolean;
18370
- isUserInteracting: boolean;
18371
- isScrollingAnimationFrame: number;
18372
- startScrollingAnimationFrame: number;
18373
- listElement: Element | null;
18374
- static defaultProps: {
18375
- toasts: never[];
18376
- side: string;
18377
- };
18378
- startScrollingToBottom(): void;
18379
- onMouseEnter: () => void;
18380
- onMouseLeave: () => void;
18381
- onScroll: () => void;
18382
- scheduleAllToastsForDismissal: () => void;
18383
- scheduleToastForDismissal: (toast: Toast) => void;
18384
- dismissToast: (toast: Toast) => void;
18385
- componentDidMount(): void;
18386
- componentDidUpdate(prevProps: EuiGlobalToastListProps): void;
18387
- componentWillUnmount(): void;
18388
- render(): JSX.Element;
18389
- }
18978
+ export const EuiGlobalToastList: FunctionComponent<EuiGlobalToastListProps>;
18390
18979
  export {};
18391
18980
 
18392
18981
  }
@@ -18807,6 +19396,7 @@ declare module '@elastic/eui/src/components' {
18807
19396
  export * from '@elastic/eui/src/components/outside_click_detector';
18808
19397
  export * from '@elastic/eui/src/components/overlay_mask';
18809
19398
  export * from '@elastic/eui/src/components/page';
19399
+ export * from '@elastic/eui/src/components/page_template';
18810
19400
  export * from '@elastic/eui/src/components/pagination';
18811
19401
  export * from '@elastic/eui/src/components/panel';
18812
19402
  export * from '@elastic/eui/src/components/popover';
@@ -23440,13 +24030,19 @@ declare module 'mdast-util-to-hast/lib/all' {
23440
24030
  export = all;
23441
24031
  }
23442
24032
  declare module '@elastic/eui/src/test/rtl/component_helpers' {
24033
+ import '@testing-library/jest-dom';
23443
24034
  /**
23444
- * Ensure the EuiPopover being tested is open/closed before contiuning
24035
+ * Ensure the EuiPopover being tested is open/closed before continuing
23445
24036
  * Note: Because EuiPopover is portalled, we want to query `document`
23446
24037
  * instead of the `container` returned by RTL's render()
23447
24038
  */
23448
24039
  export const waitForEuiPopoverOpen: () => Promise<void>;
23449
24040
  export const waitForEuiPopoverClose: () => Promise<void>;
24041
+ /**
24042
+ * Ensure the EuiToolTip being tested is open and visible before continuing
24043
+ */
24044
+ export const waitForEuiToolTipVisible: () => Promise<void>;
24045
+ export const waitForEuiToolTipHidden: () => Promise<void>;
23450
24046
 
23451
24047
  }
23452
24048
  declare module '@elastic/eui/src/test/rtl/data_test_subj_queries' {
@@ -23585,7 +24181,7 @@ declare module '@elastic/eui' {
23585
24181
  "euiBottomBar.screenReaderHeading": any;
23586
24182
  "euiBottomBar.customScreenReaderAnnouncement": any;
23587
24183
  "euiBottomBar.screenReaderAnnouncement": any;
23588
- "euiBreadcrumbs.collapsedBadge.ariaLabel": any;
24184
+ "euiBreadcrumb.collapsedBadge.ariaLabel": any;
23589
24185
  "euiBreadcrumbs.nav.ariaLabel": any;
23590
24186
  "euiCardSelect.selected": any;
23591
24187
  "euiCardSelect.unavailable": any;