@elastic/eui 62.0.3 → 62.2.1

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 (306) hide show
  1. package/dist/eui_theme_dark.css +1 -783
  2. package/dist/eui_theme_dark.json +0 -57
  3. package/dist/eui_theme_dark.json.d.ts +0 -57
  4. package/dist/eui_theme_dark.min.css +1 -1
  5. package/dist/eui_theme_light.css +1 -783
  6. package/dist/eui_theme_light.json +0 -57
  7. package/dist/eui_theme_light.json.d.ts +0 -57
  8. package/dist/eui_theme_light.min.css +1 -1
  9. package/es/components/breadcrumbs/breadcrumb.js +199 -0
  10. package/es/components/breadcrumbs/breadcrumb.styles.js +61 -0
  11. package/es/components/breadcrumbs/breadcrumbs.js +115 -187
  12. package/es/components/breadcrumbs/breadcrumbs.styles.js +30 -0
  13. package/es/components/code/code_block.js +119 -107
  14. package/es/components/collapsible_nav/collapsible_nav.js +2 -2
  15. package/es/components/control_bar/control_bar.js +13 -0
  16. package/es/components/datagrid/body/data_grid_body.js +12 -2
  17. package/es/components/datagrid/body/data_grid_cell.js +31 -3
  18. package/es/components/datagrid/body/header/data_grid_header_row.js +1 -1
  19. package/es/components/datagrid/controls/column_sorting_draggable.js +1 -1
  20. package/es/components/datagrid/data_grid.js +10 -2
  21. package/es/components/datagrid/utils/row_heights.js +33 -4
  22. package/es/components/date_picker/super_date_picker/super_date_picker.js +2 -2
  23. package/es/components/date_picker/super_date_picker/super_update_button.js +1 -1
  24. package/es/components/description_list/description_list.js +22 -26
  25. package/es/components/description_list/description_list.styles.js +25 -0
  26. package/es/components/description_list/description_list_context.js +14 -0
  27. package/es/components/description_list/description_list_description.js +43 -2
  28. package/es/components/description_list/description_list_description.styles.js +47 -0
  29. package/es/components/description_list/description_list_title.js +43 -2
  30. package/es/components/description_list/description_list_title.styles.js +37 -0
  31. package/es/components/description_list/description_list_types.js +10 -0
  32. package/es/components/header/header.js +1 -27
  33. package/es/components/header/header_breadcrumbs/header_breadcrumbs.js +22 -2
  34. package/es/components/header/header_breadcrumbs/header_breadcrumbs.styles.js +15 -0
  35. package/es/components/header/header_links/header_links.js +9 -9
  36. package/es/components/icon/assets/tokenStruct.js +1 -1
  37. package/es/components/page/page_header/page_header.js +1 -0
  38. package/es/components/page/page_header/page_header_content.js +2 -1
  39. package/es/components/page/page_template.js +1 -0
  40. package/es/components/pagination/pagination.js +1 -1
  41. package/es/components/panel/split_panel/split_panel.js +2 -2
  42. package/es/components/provider/provider.js +2 -2
  43. package/es/components/responsive/hide_for.js +6 -38
  44. package/es/components/responsive/show_for.js +6 -38
  45. package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +17 -36
  46. package/es/components/side_nav/side_nav.js +1 -1
  47. package/es/components/table/table_row_cell.js +1 -2
  48. package/es/components/toast/global_toast_list.js +208 -241
  49. package/es/components/toast/global_toast_list.styles.js +38 -0
  50. package/es/components/toast/global_toast_list_item.js +12 -7
  51. package/es/components/toast/toast.js +25 -25
  52. package/es/components/toast/toast.styles.js +55 -0
  53. package/es/components/token/index.js +2 -1
  54. package/es/components/token/token.js +48 -112
  55. package/es/components/token/token.styles.js +93 -0
  56. package/es/components/token/token_map.js +6 -9
  57. package/es/components/token/token_types.js +11 -0
  58. package/es/global_styling/reset/global_styles.js +1 -1
  59. package/es/services/{breakpoint.js → breakpoint/breakpoint.js} +4 -9
  60. package/es/services/{hooks/useIsWithinBreakpoints.js → breakpoint/current_breakpoint.js} +26 -28
  61. package/es/services/breakpoint/current_breakpoint_hook.js +20 -0
  62. package/es/services/breakpoint/index.js +11 -0
  63. package/es/services/breakpoint/useIsWithinBreakpoints.js +24 -0
  64. package/es/services/hooks/index.js +0 -1
  65. package/es/services/index.js +1 -1
  66. package/es/test/rtl/component_helpers.js +60 -1
  67. package/eui.d.ts +1704 -1475
  68. package/i18ntokens.json +36 -36
  69. package/lib/components/breadcrumbs/breadcrumb.js +225 -0
  70. package/lib/components/breadcrumbs/breadcrumb.styles.js +68 -0
  71. package/lib/components/breadcrumbs/breadcrumbs.js +125 -188
  72. package/lib/components/breadcrumbs/breadcrumbs.styles.js +33 -0
  73. package/lib/components/code/code_block.js +118 -106
  74. package/lib/components/collapsible_nav/collapsible_nav.js +2 -2
  75. package/lib/components/control_bar/control_bar.js +13 -0
  76. package/lib/components/datagrid/body/data_grid_body.js +12 -2
  77. package/lib/components/datagrid/body/data_grid_cell.js +31 -3
  78. package/lib/components/datagrid/body/header/data_grid_header_row.js +1 -1
  79. package/lib/components/datagrid/controls/column_sorting_draggable.js +1 -1
  80. package/lib/components/datagrid/data_grid.js +10 -2
  81. package/lib/components/datagrid/utils/row_heights.js +33 -4
  82. package/lib/components/date_picker/super_date_picker/super_date_picker.js +2 -2
  83. package/lib/components/date_picker/super_date_picker/super_update_button.js +1 -1
  84. package/lib/components/description_list/description_list.js +25 -31
  85. package/lib/components/description_list/description_list.styles.js +36 -0
  86. package/lib/components/description_list/description_list_context.js +24 -0
  87. package/lib/components/description_list/description_list_description.js +52 -2
  88. package/lib/components/description_list/description_list_description.styles.js +51 -0
  89. package/lib/components/description_list/description_list_title.js +52 -2
  90. package/lib/components/description_list/description_list_title.styles.js +50 -0
  91. package/lib/components/description_list/description_list_types.js +20 -0
  92. package/lib/components/header/header.js +1 -27
  93. package/lib/components/header/header_breadcrumbs/header_breadcrumbs.js +24 -2
  94. package/lib/components/header/header_breadcrumbs/header_breadcrumbs.styles.js +26 -0
  95. package/lib/components/header/header_links/header_links.js +8 -8
  96. package/lib/components/icon/assets/tokenStruct.js +1 -1
  97. package/lib/components/icon/svgs/tokens/tokenStruct.svg +1 -1
  98. package/lib/components/page/page_header/page_header.js +1 -0
  99. package/lib/components/page/page_header/page_header_content.js +3 -2
  100. package/lib/components/page/page_template.js +1 -0
  101. package/lib/components/pagination/pagination.js +1 -1
  102. package/lib/components/panel/split_panel/split_panel.js +3 -3
  103. package/lib/components/provider/provider.js +1 -1
  104. package/lib/components/responsive/hide_for.js +12 -44
  105. package/lib/components/responsive/show_for.js +12 -44
  106. package/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +15 -35
  107. package/lib/components/side_nav/side_nav.js +1 -1
  108. package/lib/components/table/table_row_cell.js +1 -3
  109. package/lib/components/toast/global_toast_list.js +209 -238
  110. package/lib/components/toast/global_toast_list.styles.js +45 -0
  111. package/lib/components/toast/global_toast_list_item.js +14 -7
  112. package/lib/components/toast/toast.js +27 -25
  113. package/lib/components/toast/toast.styles.js +66 -0
  114. package/lib/components/token/index.js +5 -3
  115. package/lib/components/token/token.js +50 -120
  116. package/lib/components/token/token.styles.js +101 -0
  117. package/lib/components/token/token_map.js +6 -9
  118. package/lib/components/token/token_types.js +22 -0
  119. package/lib/global_styling/reset/global_styles.js +1 -1
  120. package/{test-env/services → lib/services/breakpoint}/breakpoint.js +5 -9
  121. package/lib/services/breakpoint/current_breakpoint.js +69 -0
  122. package/lib/services/breakpoint/current_breakpoint_hook.js +31 -0
  123. package/lib/services/breakpoint/index.js +57 -0
  124. package/lib/services/breakpoint/useIsWithinBreakpoints.js +34 -0
  125. package/lib/services/hooks/index.js +0 -13
  126. package/lib/services/index.js +28 -0
  127. package/lib/test/rtl/component_helpers.js +69 -3
  128. package/optimize/es/components/breadcrumbs/breadcrumb.js +136 -0
  129. package/optimize/es/components/breadcrumbs/breadcrumb.styles.js +61 -0
  130. package/optimize/es/components/breadcrumbs/breadcrumbs.js +92 -165
  131. package/optimize/es/components/breadcrumbs/breadcrumbs.styles.js +30 -0
  132. package/optimize/es/components/code/code_block.js +106 -107
  133. package/optimize/es/components/datagrid/body/data_grid_body.js +2 -0
  134. package/optimize/es/components/datagrid/body/data_grid_cell.js +13 -1
  135. package/optimize/es/components/datagrid/utils/row_heights.js +33 -4
  136. package/optimize/es/components/description_list/description_list.js +20 -24
  137. package/optimize/es/components/description_list/description_list.styles.js +25 -0
  138. package/optimize/es/components/description_list/description_list_context.js +14 -0
  139. package/optimize/es/components/description_list/description_list_description.js +32 -2
  140. package/optimize/es/components/description_list/description_list_description.styles.js +47 -0
  141. package/optimize/es/components/description_list/description_list_title.js +32 -2
  142. package/optimize/es/components/description_list/description_list_title.styles.js +37 -0
  143. package/optimize/es/components/description_list/description_list_types.js +10 -0
  144. package/optimize/es/components/header/header_breadcrumbs/header_breadcrumbs.js +8 -1
  145. package/optimize/es/components/header/header_breadcrumbs/header_breadcrumbs.styles.js +15 -0
  146. package/optimize/es/components/header/header_links/header_links.js +8 -8
  147. package/optimize/es/components/icon/assets/tokenStruct.js +1 -1
  148. package/optimize/es/components/page/page_header/page_header_content.js +1 -1
  149. package/optimize/es/components/panel/split_panel/split_panel.js +1 -1
  150. package/optimize/es/components/provider/provider.js +2 -2
  151. package/optimize/es/components/responsive/hide_for.js +5 -27
  152. package/optimize/es/components/responsive/show_for.js +5 -27
  153. package/optimize/es/components/selectable/selectable_templates/selectable_template_sitewide.js +16 -35
  154. package/optimize/es/components/table/table_row_cell.js +1 -2
  155. package/optimize/es/components/toast/global_toast_list.js +199 -230
  156. package/optimize/es/components/toast/global_toast_list.styles.js +38 -0
  157. package/optimize/es/components/toast/global_toast_list_item.js +11 -6
  158. package/optimize/es/components/toast/toast.js +24 -24
  159. package/optimize/es/components/toast/toast.styles.js +55 -0
  160. package/optimize/es/components/token/index.js +2 -1
  161. package/optimize/es/components/token/token.js +46 -69
  162. package/optimize/es/components/token/token.styles.js +83 -0
  163. package/optimize/es/components/token/token_map.js +6 -9
  164. package/optimize/es/components/token/token_types.js +11 -0
  165. package/optimize/es/global_styling/reset/global_styles.js +1 -1
  166. package/optimize/es/services/{breakpoint.js → breakpoint/breakpoint.js} +4 -9
  167. package/optimize/es/services/breakpoint/current_breakpoint.js +44 -0
  168. package/optimize/es/services/breakpoint/current_breakpoint_hook.js +20 -0
  169. package/optimize/es/services/breakpoint/index.js +11 -0
  170. package/optimize/es/services/breakpoint/useIsWithinBreakpoints.js +24 -0
  171. package/optimize/es/services/hooks/index.js +0 -1
  172. package/optimize/es/services/index.js +1 -1
  173. package/optimize/es/test/rtl/component_helpers.js +60 -1
  174. package/optimize/lib/components/breadcrumbs/breadcrumb.js +162 -0
  175. package/optimize/lib/components/breadcrumbs/breadcrumb.styles.js +68 -0
  176. package/optimize/lib/components/breadcrumbs/breadcrumbs.js +99 -164
  177. package/optimize/lib/components/breadcrumbs/breadcrumbs.styles.js +33 -0
  178. package/optimize/lib/components/code/code_block.js +105 -106
  179. package/optimize/lib/components/datagrid/body/data_grid_body.js +2 -0
  180. package/optimize/lib/components/datagrid/body/data_grid_cell.js +13 -1
  181. package/optimize/lib/components/datagrid/utils/row_heights.js +33 -4
  182. package/optimize/lib/components/description_list/description_list.js +23 -28
  183. package/optimize/lib/components/description_list/description_list.styles.js +36 -0
  184. package/optimize/lib/components/description_list/description_list_context.js +24 -0
  185. package/optimize/lib/components/description_list/description_list_description.js +43 -2
  186. package/optimize/lib/components/description_list/description_list_description.styles.js +51 -0
  187. package/optimize/lib/components/description_list/description_list_title.js +43 -2
  188. package/optimize/lib/components/description_list/description_list_title.styles.js +50 -0
  189. package/optimize/lib/components/description_list/description_list_types.js +20 -0
  190. package/optimize/lib/components/header/header_breadcrumbs/header_breadcrumbs.js +10 -1
  191. package/optimize/lib/components/header/header_breadcrumbs/header_breadcrumbs.styles.js +26 -0
  192. package/optimize/lib/components/header/header_links/header_links.js +7 -7
  193. package/optimize/lib/components/icon/assets/tokenStruct.js +1 -1
  194. package/optimize/lib/components/icon/svgs/tokens/tokenStruct.svg +1 -1
  195. package/optimize/lib/components/page/page_header/page_header_content.js +2 -2
  196. package/optimize/lib/components/panel/split_panel/split_panel.js +2 -2
  197. package/optimize/lib/components/provider/provider.js +1 -1
  198. package/optimize/lib/components/responsive/hide_for.js +4 -33
  199. package/optimize/lib/components/responsive/show_for.js +4 -33
  200. package/optimize/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +14 -34
  201. package/optimize/lib/components/table/table_row_cell.js +1 -3
  202. package/optimize/lib/components/toast/global_toast_list.js +206 -220
  203. package/optimize/lib/components/toast/global_toast_list.styles.js +47 -0
  204. package/optimize/lib/components/toast/global_toast_list_item.js +14 -7
  205. package/optimize/lib/components/toast/toast.js +26 -24
  206. package/optimize/lib/components/toast/toast.styles.js +66 -0
  207. package/optimize/lib/components/token/index.js +5 -3
  208. package/optimize/lib/components/token/token.js +50 -76
  209. package/optimize/lib/components/token/token.styles.js +91 -0
  210. package/optimize/lib/components/token/token_map.js +6 -9
  211. package/optimize/lib/components/token/token_types.js +22 -0
  212. package/optimize/lib/global_styling/reset/global_styles.js +1 -1
  213. package/optimize/lib/services/{breakpoint.js → breakpoint/breakpoint.js} +5 -9
  214. package/optimize/lib/services/breakpoint/current_breakpoint.js +68 -0
  215. package/optimize/lib/services/breakpoint/current_breakpoint_hook.js +31 -0
  216. package/optimize/lib/services/breakpoint/index.js +57 -0
  217. package/optimize/lib/services/breakpoint/useIsWithinBreakpoints.js +34 -0
  218. package/optimize/lib/services/hooks/index.js +0 -13
  219. package/optimize/lib/services/index.js +28 -0
  220. package/optimize/lib/test/rtl/component_helpers.js +69 -3
  221. package/package.json +2 -2
  222. package/src/components/control_bar/_control_bar.scss +1 -1
  223. package/src/components/header/_index.scss +0 -1
  224. package/src/components/index.scss +0 -5
  225. package/src/themes/amsterdam/overrides/_breadcrumbs.scss +0 -12
  226. package/src/themes/amsterdam/overrides/_index.scss +0 -4
  227. package/test-env/components/breadcrumbs/breadcrumb.js +211 -0
  228. package/test-env/components/breadcrumbs/breadcrumb.styles.js +68 -0
  229. package/test-env/components/breadcrumbs/breadcrumbs.js +122 -174
  230. package/test-env/components/breadcrumbs/breadcrumbs.styles.js +33 -0
  231. package/test-env/components/collapsible_nav/collapsible_nav.js +2 -2
  232. package/test-env/components/control_bar/control_bar.js +13 -0
  233. package/test-env/components/datagrid/body/data_grid_body.js +12 -2
  234. package/test-env/components/datagrid/body/data_grid_cell.js +31 -3
  235. package/test-env/components/datagrid/body/header/data_grid_header_row.js +1 -1
  236. package/test-env/components/datagrid/controls/column_sorting_draggable.js +1 -1
  237. package/test-env/components/datagrid/data_grid.js +10 -2
  238. package/test-env/components/datagrid/utils/row_heights.js +33 -4
  239. package/test-env/components/date_picker/super_date_picker/super_date_picker.js +2 -2
  240. package/test-env/components/date_picker/super_date_picker/super_update_button.js +1 -1
  241. package/test-env/components/description_list/description_list.js +25 -30
  242. package/test-env/components/description_list/description_list.styles.js +36 -0
  243. package/test-env/components/description_list/description_list_context.js +24 -0
  244. package/test-env/components/description_list/description_list_description.js +43 -2
  245. package/test-env/components/description_list/description_list_description.styles.js +51 -0
  246. package/test-env/components/description_list/description_list_title.js +43 -2
  247. package/test-env/components/description_list/description_list_title.styles.js +50 -0
  248. package/test-env/components/description_list/description_list_types.js +20 -0
  249. package/test-env/components/header/header.js +1 -27
  250. package/test-env/components/header/header_breadcrumbs/header_breadcrumbs.js +24 -2
  251. package/test-env/components/header/header_breadcrumbs/header_breadcrumbs.styles.js +26 -0
  252. package/test-env/components/header/header_links/header_links.js +8 -8
  253. package/test-env/components/icon/assets/tokenStruct.js +1 -1
  254. package/test-env/components/observer/resize_observer/resize_observer.js +43 -126
  255. package/test-env/components/page/page_header/page_header.js +1 -0
  256. package/test-env/components/page/page_header/page_header_content.js +3 -2
  257. package/test-env/components/page/page_template.js +1 -0
  258. package/test-env/components/pagination/pagination.js +1 -1
  259. package/test-env/components/panel/split_panel/split_panel.js +3 -3
  260. package/test-env/components/provider/provider.js +1 -1
  261. package/test-env/components/responsive/hide_for.js +5 -34
  262. package/test-env/components/responsive/show_for.js +5 -34
  263. package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +15 -35
  264. package/test-env/components/side_nav/side_nav.js +1 -1
  265. package/test-env/components/table/table_row_cell.js +1 -3
  266. package/test-env/components/toast/global_toast_list.js +206 -220
  267. package/test-env/components/toast/global_toast_list.styles.js +47 -0
  268. package/test-env/components/toast/global_toast_list_item.js +14 -7
  269. package/test-env/components/toast/toast.js +27 -25
  270. package/test-env/components/toast/toast.styles.js +66 -0
  271. package/test-env/components/token/index.js +5 -3
  272. package/test-env/components/token/token.js +51 -120
  273. package/test-env/components/token/token.styles.js +91 -0
  274. package/test-env/components/token/token_map.js +6 -9
  275. package/test-env/components/token/token_types.js +22 -0
  276. package/test-env/global_styling/reset/global_styles.js +1 -1
  277. package/{lib/services → test-env/services/breakpoint}/breakpoint.js +5 -9
  278. package/test-env/services/breakpoint/current_breakpoint.js +68 -0
  279. package/test-env/services/breakpoint/current_breakpoint_hook.js +33 -0
  280. package/test-env/services/breakpoint/index.js +57 -0
  281. package/test-env/services/breakpoint/useIsWithinBreakpoints.js +34 -0
  282. package/test-env/services/hooks/index.js +0 -13
  283. package/test-env/services/index.js +28 -0
  284. package/test-env/test/rtl/component_helpers.js +69 -3
  285. package/lib/services/hooks/useIsWithinBreakpoints.js +0 -57
  286. package/optimize/es/services/hooks/useIsWithinBreakpoints.js +0 -46
  287. package/optimize/lib/services/hooks/useIsWithinBreakpoints.js +0 -57
  288. package/src/components/breadcrumbs/_breadcrumbs.scss +0 -79
  289. package/src/components/breadcrumbs/_index.scss +0 -2
  290. package/src/components/breadcrumbs/_variables.scss +0 -2
  291. package/src/components/description_list/_description_list.scss +0 -211
  292. package/src/components/description_list/_index.scss +0 -1
  293. package/src/components/header/header_breadcrumbs/_header_breadcrumbs.scss +0 -8
  294. package/src/components/header/header_breadcrumbs/_index.scss +0 -1
  295. package/src/components/portal/_index.scss +0 -1
  296. package/src/components/portal/_portal.scss +0 -6
  297. package/src/components/toast/_global_toast_list.scss +0 -90
  298. package/src/components/toast/_index.scss +0 -4
  299. package/src/components/toast/_toast.scss +0 -103
  300. package/src/components/token/_index.scss +0 -2
  301. package/src/components/token/_token.scss +0 -85
  302. package/src/components/token/_variables.scss +0 -13
  303. package/src/themes/amsterdam/overrides/_header_breadcrumbs.scss +0 -71
  304. package/src/themes/amsterdam/overrides/_toast.scss +0 -21
  305. package/src/themes/amsterdam/overrides/_token.scss +0 -4
  306. 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' {
@@ -1451,6 +649,143 @@ declare module '@elastic/eui/src/services/theme/types' {
1451
649
  themeName: string;
1452
650
  };
1453
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
770
+ *
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
781
+ *
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`
786
+ */
787
+ export function isWithinBreakpoints(width: number, sizes: EuiBreakpointSize[], breakpoints?: EuiBreakpoints): boolean;
788
+
1454
789
  }
1455
790
  declare module '@elastic/eui/src/services/theme/utils' {
1456
791
  import { EuiThemeColorMode, EuiThemeColorModeStandard, EuiThemeSystem, EuiThemeShape, EuiThemeComputed } from '@elastic/eui/src/services/theme/types';
@@ -1510,180 +845,789 @@ declare module '@elastic/eui/src/services/theme/utils' {
1510
845
  getValue(base: EuiThemeSystem | EuiThemeShape, modifications: import ("@elastic/eui").RecursivePartial<EuiThemeShape> | undefined, working: EuiThemeComputed, colorMode: EuiThemeColorModeStandard): T;
1511
846
  }
1512
847
  /**
1513
- * Returns a Class (`Computed`) that stores the arbitrary computer method
1514
- * and references to its optional dependecies.
1515
- * @param {function} computer - Arbitrary method to be called at compute time.
1516
- * @param {string | array} dependencies - Values that will be provided to `computer` at compute time.
848
+ * Returns a Class (`Computed`) that stores the arbitrary computer method
849
+ * and references to its optional dependecies.
850
+ * @param {function} computer - Arbitrary method to be called at compute time.
851
+ * @param {string | array} dependencies - Values that will be provided to `computer` at compute time.
852
+ */
853
+ export function computed<T>(computer: (value: EuiThemeComputed) => T): T;
854
+ export function computed<T>(computer: (value: any[]) => T, dependencies: string[]): T;
855
+ export function computed<T>(computer: (value: any) => T, dependencies: string): T;
856
+ /**
857
+ * Takes an uncomputed theme, and computes and returns all values taking
858
+ * into consideration value overrides and configured color mode.
859
+ * Overrides take precedence, and only values in the current color mode
860
+ * are computed and returned.
861
+ * @param {Proxy} base - Object to transform into Proxy
862
+ * @param {Proxy | object} over - Unique identifier or name
863
+ * @param {string} colorMode - `light` or `dark`
864
+ */
865
+ export const getComputed: <T = EuiThemeShape>(base: EuiThemeSystem<T>, over: Partial<EuiThemeSystem<T>>, colorMode: EuiThemeColorModeStandard) => EuiThemeComputed<T>;
866
+ /**
867
+ * Builds a Proxy with a custom `handler` designed to self-reference values
868
+ * and prevent arbitrary value overrides.
869
+ * @param {object} model - Object to transform into Proxy
870
+ * @param {string} key - Unique identifier or name
871
+ */
872
+ export const buildTheme: <T extends {}>(model: T, key: string) => {
873
+ model: T;
874
+ root: T;
875
+ key: string;
876
+ };
877
+ /**
878
+ * Deeply merges two objects, using `source` values whenever possible.
879
+ * @param {object} _target - Object with fallback values
880
+ * @param {object} source - Object with desired values
881
+ */
882
+ export const mergeDeep: (_target: {
883
+ [key: string]: any;
884
+ }, source?: {
885
+ [key: string]: any;
886
+ }) => {
887
+ [key: string]: any;
888
+ };
889
+
890
+ }
891
+ declare module '@elastic/eui/src/services/color/is_color_dark' {
892
+ /**
893
+ * This function calculates if the specified color is "dark", which usually means
894
+ * you need light text if you use it as a background color to fulfill WCAG contrast
895
+ * requirement.
896
+ * The color must be specified via its red, green and blue value in the range of
897
+ * 0 to 255.
898
+ * The formula is based on this Stackoverflow answer: https://stackoverflow.com/a/3943023
899
+ * which itself is based upon the WCAG recommendation for color contrast.
900
+ *
901
+ * @param {number} red The red component in the range 0 to 255
902
+ * @param {number} green The green component in the range 0 to 255
903
+ * @param {number} blue The blue component in the range 0 to 255
904
+ * @returns {boolean} True if the color is dark, false otherwise.
905
+ */
906
+ export function isColorDark(red: number, green: number, blue: number): boolean;
907
+
908
+ }
909
+ declare module '@elastic/eui/src/services/color/is_valid_hex' {
910
+ export function isValidHex(hex: string): boolean;
911
+
912
+ }
913
+ declare module '@elastic/eui/src/services/color/color_types' {
914
+ export type rgbDef = [number, number, number];
915
+ export interface HSV {
916
+ h: number;
917
+ s: number;
918
+ v: number;
919
+ }
920
+ export interface RGB {
921
+ r: number;
922
+ g: number;
923
+ b: number;
924
+ }
925
+ export type HEX = string;
926
+
927
+ }
928
+ declare module '@elastic/eui/src/services/color/hex_to_rgb' {
929
+ import { rgbDef } from '@elastic/eui/src/services/color/color_types';
930
+ export function hexToRgb(hex: string): rgbDef;
931
+
932
+ }
933
+ declare module '@elastic/eui/src/services/color/rgb_to_hsv' {
934
+ import { HSV, RGB } from '@elastic/eui/src/services/color/color_types';
935
+ export function rgbToHsv({ r, g, b }: RGB): HSV;
936
+
937
+ }
938
+ declare module '@elastic/eui/src/services/color/hex_to_hsv' {
939
+ import { HEX, HSV } from '@elastic/eui/src/services/color/color_types';
940
+ export function hexToHsv(hex: HEX): HSV;
941
+
942
+ }
943
+ declare module '@elastic/eui/src/services/color/hsv_to_rgb' {
944
+ import { HSV, RGB } from '@elastic/eui/src/services/color/color_types';
945
+ export function hsvToRgb({ h, s, v }: HSV): RGB;
946
+
947
+ }
948
+ declare module '@elastic/eui/src/services/color/rgb_to_hex' {
949
+ export function rgbToHex(rgb: string): string;
950
+
951
+ }
952
+ declare module '@elastic/eui/src/services/color/hsv_to_hex' {
953
+ import { HEX, HSV } from '@elastic/eui/src/services/color/color_types';
954
+ export function hsvToHex({ h, s, v }: HSV): HEX;
955
+
956
+ }
957
+ declare module '@elastic/eui/src/services/color/luminance_and_contrast' {
958
+ import { rgbDef } from '@elastic/eui/src/services/color/color_types';
959
+ export function calculateLuminance(r: number, g: number, b: number): number;
960
+ export function calculateContrast(rgb1: rgbDef, rgb2: rgbDef): number;
961
+
962
+ }
963
+ declare module '@elastic/eui/src/services/color/color_palette' {
964
+ export const MID_COLOR_STOP = "#EBEFF5";
965
+ /**
966
+ * This function takes an array of colors and returns an array of interpolated
967
+ * colors based on the number of steps/len needed for use in UI elements such as charts.
968
+ * Derived from https://github.com/gka/palettes (Unlicensed)
1517
969
  */
1518
- export function computed<T>(computer: (value: EuiThemeComputed) => T): T;
1519
- export function computed<T>(computer: (value: any[]) => T, dependencies: string[]): T;
1520
- export function computed<T>(computer: (value: any) => T, dependencies: string): T;
970
+ export function colorPalette(
1521
971
  /**
1522
- * Takes an uncomputed theme, and computes and returns all values taking
1523
- * into consideration value overrides and configured color mode.
1524
- * Overrides take precedence, and only values in the current color mode
1525
- * are computed and returned.
1526
- * @param {Proxy} base - Object to transform into Proxy
1527
- * @param {Proxy | object} over - Unique identifier or name
1528
- * @param {string} colorMode - `light` or `dark`
972
+ * The main color code or array of codes
1529
973
  */
1530
- export const getComputed: <T = EuiThemeShape>(base: EuiThemeSystem<T>, over: Partial<EuiThemeSystem<T>>, colorMode: EuiThemeColorModeStandard) => EuiThemeComputed<T>;
974
+ colors: string[],
1531
975
  /**
1532
- * Builds a Proxy with a custom `handler` designed to self-reference values
1533
- * and prevent arbitrary value overrides.
1534
- * @param {object} model - Object to transform into Proxy
1535
- * @param {string} key - Unique identifier or name
976
+ * The number of colors in the resulting array (default 10)
1536
977
  */
1537
- export const buildTheme: <T extends {}>(model: T, key: string) => {
1538
- model: T;
1539
- root: T;
1540
- key: string;
1541
- };
978
+ len?: number,
1542
979
  /**
1543
- * Deeply merges two objects, using `source` values whenever possible.
1544
- * @param {object} _target - Object with fallback values
1545
- * @param {object} source - Object with desired values
980
+ * Forces color interpolation to be calculated separately for each half (default false)
1546
981
  */
1547
- export const mergeDeep: (_target: {
1548
- [key: string]: any;
1549
- }, source?: {
1550
- [key: string]: any;
1551
- }) => {
1552
- [key: string]: any;
982
+ diverging?: boolean,
983
+ /**
984
+ * Uses a more static interpolation for non-continuous spectrums
985
+ */
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;
1015
+ /**
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.
1018
+ */
1019
+ export const euiPaletteColorBlindBehindText: (paletteProps?: EuiPaletteColorBlindProps) => string[];
1020
+ export const euiPaletteForLightBackground: () => EuiPalette;
1021
+ export const euiPaletteForDarkBackground: () => EuiPalette;
1022
+ export const euiPaletteForStatus: (steps: number) => EuiPalette;
1023
+ export const euiPaletteForTemperature: (steps: number) => EuiPalette;
1024
+ export const euiPaletteComplimentary: (steps: number) => EuiPalette;
1025
+ export const euiPaletteNegative: (steps: number) => EuiPalette;
1026
+ export const euiPalettePositive: (steps: number) => EuiPalette;
1027
+ export const euiPaletteCool: (steps: number) => EuiPalette;
1028
+ export const euiPaletteWarm: (steps: number) => EuiPalette;
1029
+ export const euiPaletteGray: (steps: number) => EuiPalette;
1030
+
1031
+ }
1032
+ declare module '@elastic/eui/src/services/color/visualization_colors' {
1033
+ export const VISUALIZATION_COLORS: import ("@elastic/eui/src/services/color/eui_palettes").EuiPalette;
1034
+ export const DEFAULT_VISUALIZATION_COLOR: string;
1035
+
1036
+ }
1037
+ declare module '@elastic/eui/src/components/color_picker/utils' {
1038
+ import chroma, { ColorSpaces } from 'chroma-js';
1039
+ import { ColorStop } from '@elastic/eui/src/components/color_picker/color_stops';
1040
+ export const getEventPosition: (location: {
1041
+ x: number;
1042
+ y: number;
1043
+ }, container: HTMLElement) => {
1044
+ left: number;
1045
+ top: number;
1046
+ width: number;
1047
+ height: number;
1048
+ };
1049
+ export const HEX_FALLBACK = "";
1050
+ export const HSV_FALLBACK: ColorSpaces['hsv'];
1051
+ export const RGB_FALLBACK: ColorSpaces['rgba'];
1052
+ export const RGB_JOIN = ", ";
1053
+ export const parseColor: (input?: string | null | undefined) => string | number[] | null;
1054
+ export const chromaValid: (color: string | number[]) => boolean;
1055
+ export const getChromaColor: (input?: string | null | undefined, allowOpacity?: boolean) => chroma.Color | null;
1056
+ export const getLinearGradient: (palette: string[] | ColorStop[]) => string;
1057
+ export const getFixedLinearGradient: (palette: string[] | ColorStop[]) => {
1058
+ color: string;
1059
+ width: string;
1060
+ }[];
1061
+
1062
+ }
1063
+ declare module '@elastic/eui/src/components/form/range/utils' {
1064
+ export const EUI_THUMB_SIZE = 16;
1065
+ export const calculateThumbPosition: (value: number, min: number, max: number, width: number, thumbSize?: number) => number;
1066
+
1067
+ }
1068
+ declare module '@elastic/eui/src/components/color_picker/color_stops/utils' {
1069
+ import { ColorStop } from '@elastic/eui/src/components/color_picker/color_stops/color_stop_thumb';
1070
+ export const removeStop: (colorStops: ColorStop[], index: number) => ColorStop[];
1071
+ export const addDefinedStop: (colorStops: ColorStop[], stop: ColorStop['stop'], color?: ColorStop['color']) => ColorStop[];
1072
+ export const addStop: (colorStops: ColorStop[], color: string | undefined, max: number) => ColorStop[];
1073
+ export const isColorInvalid: (color: string, showAlpha?: boolean) => boolean;
1074
+ export const isStopInvalid: (stop: ColorStop['stop']) => boolean;
1075
+ export const isInvalid: (colorStops: ColorStop[], showAlpha?: boolean) => boolean;
1076
+ export const calculateScale: (trackWidth: number) => number;
1077
+ export const getStopFromMouseLocation: (location: {
1078
+ x: number;
1079
+ y: number;
1080
+ }, ref: HTMLDivElement, min: number, max: number) => number;
1081
+ export const getPositionFromStop: (stop: ColorStop['stop'], ref: HTMLDivElement, min: number, max: number) => number;
1082
+
1083
+ }
1084
+ declare module '@elastic/eui/src/components/icon/icon_map' {
1085
+ export const typeToPathMap: {
1086
+ accessibility: string;
1087
+ addDataApp: string;
1088
+ advancedSettingsApp: string;
1089
+ agentApp: string;
1090
+ aggregate: string;
1091
+ alert: string;
1092
+ analyzeEvent: string;
1093
+ annotation: string;
1094
+ apmApp: string;
1095
+ apmTrace: string;
1096
+ appSearchApp: string;
1097
+ apps: string;
1098
+ arrowDown: string;
1099
+ arrowLeft: string;
1100
+ arrowRight: string;
1101
+ arrowUp: string;
1102
+ arrowStart: string;
1103
+ arrowEnd: string;
1104
+ asterisk: string;
1105
+ auditbeatApp: string;
1106
+ beaker: string;
1107
+ bell: string;
1108
+ bellSlash: string;
1109
+ bolt: string;
1110
+ boxesHorizontal: string;
1111
+ boxesVertical: string;
1112
+ branch: string;
1113
+ branchUser: string;
1114
+ broom: string;
1115
+ brush: string;
1116
+ bug: string;
1117
+ bullseye: string;
1118
+ calendar: string;
1119
+ canvasApp: string;
1120
+ casesApp: string;
1121
+ check: string;
1122
+ checkInCircleFilled: string;
1123
+ cheer: string;
1124
+ classificationJob: string;
1125
+ clock: string;
1126
+ cloudDrizzle: string;
1127
+ cloudStormy: string;
1128
+ cloudSunny: string;
1129
+ cluster: string;
1130
+ codeApp: string;
1131
+ color: string;
1132
+ compute: string;
1133
+ console: string;
1134
+ consoleApp: string;
1135
+ container: string;
1136
+ continuityAbove: string;
1137
+ continuityAboveBelow: string;
1138
+ continuityBelow: string;
1139
+ continuityWithin: string;
1140
+ controlsHorizontal: string;
1141
+ controlsVertical: string;
1142
+ copy: string;
1143
+ copyClipboard: string;
1144
+ createAdvancedJob: string;
1145
+ createMultiMetricJob: string;
1146
+ createPopulationJob: string;
1147
+ createSingleMetricJob: string;
1148
+ cross: string;
1149
+ crossClusterReplicationApp: string;
1150
+ crossInACircleFilled: string;
1151
+ crosshairs: string;
1152
+ currency: string;
1153
+ cut: string;
1154
+ dashboardApp: string;
1155
+ dataVisualizer: string;
1156
+ database: string;
1157
+ desktop: string;
1158
+ devToolsApp: string;
1159
+ discoverApp: string;
1160
+ document: string;
1161
+ documentEdit: string;
1162
+ documentation: string;
1163
+ documents: string;
1164
+ dot: string;
1165
+ doubleArrowLeft: string;
1166
+ doubleArrowRight: string;
1167
+ download: string;
1168
+ editorAlignCenter: string;
1169
+ editorAlignLeft: string;
1170
+ editorAlignRight: string;
1171
+ editorBold: string;
1172
+ editorChecklist: string;
1173
+ editorCodeBlock: string;
1174
+ editorComment: string;
1175
+ editorDistributeHorizontal: string;
1176
+ editorDistributeVertical: string;
1177
+ editorHeading: string;
1178
+ editorItalic: string;
1179
+ editorItemAlignBottom: string;
1180
+ editorItemAlignCenter: string;
1181
+ editorItemAlignLeft: string;
1182
+ editorItemAlignMiddle: string;
1183
+ editorItemAlignRight: string;
1184
+ editorItemAlignTop: string;
1185
+ editorLink: string;
1186
+ editorOrderedList: string;
1187
+ editorPositionBottomLeft: string;
1188
+ editorPositionBottomRight: string;
1189
+ editorPositionTopLeft: string;
1190
+ editorPositionTopRight: string;
1191
+ editorRedo: string;
1192
+ editorStrike: string;
1193
+ editorTable: string;
1194
+ editorUnderline: string;
1195
+ editorUndo: string;
1196
+ editorUnorderedList: string;
1197
+ email: string;
1198
+ empty: string;
1199
+ emsApp: string;
1200
+ eql: string;
1201
+ eraser: string;
1202
+ exit: string;
1203
+ expand: string;
1204
+ expandMini: string;
1205
+ exportAction: string;
1206
+ eye: string;
1207
+ eyeClosed: string;
1208
+ faceHappy: string;
1209
+ faceNeutral: string;
1210
+ faceSad: string;
1211
+ filebeatApp: string;
1212
+ filter: string;
1213
+ flag: string;
1214
+ fleetApp: string;
1215
+ fold: string;
1216
+ folderCheck: string;
1217
+ folderClosed: string;
1218
+ folderExclamation: string;
1219
+ folderOpen: string;
1220
+ frameNext: string;
1221
+ framePrevious: string;
1222
+ fullScreen: string;
1223
+ fullScreenExit: string;
1224
+ function: string;
1225
+ gear: string;
1226
+ gisApp: string;
1227
+ glasses: string;
1228
+ globe: string;
1229
+ grab: string;
1230
+ grabHorizontal: string;
1231
+ graphApp: string;
1232
+ grid: string;
1233
+ grokApp: string;
1234
+ heart: string;
1235
+ heartbeatApp: string;
1236
+ heatmap: string;
1237
+ help: string;
1238
+ home: string;
1239
+ iInCircle: string;
1240
+ image: string;
1241
+ importAction: string;
1242
+ indexClose: string;
1243
+ indexEdit: string;
1244
+ indexFlush: string;
1245
+ indexManagementApp: string;
1246
+ indexMapping: string;
1247
+ indexOpen: string;
1248
+ indexPatternApp: string;
1249
+ indexRollupApp: string;
1250
+ indexRuntime: string;
1251
+ indexSettings: string;
1252
+ inputOutput: string;
1253
+ inspect: string;
1254
+ invert: string;
1255
+ ip: string;
1256
+ keyboard: string;
1257
+ kqlField: string;
1258
+ kqlFunction: string;
1259
+ kqlOperand: string;
1260
+ kqlSelector: string;
1261
+ kqlValue: string;
1262
+ kubernetesNode: string;
1263
+ kubernetesPod: string;
1264
+ layers: string;
1265
+ lensApp: string;
1266
+ lettering: string;
1267
+ lineDashed: string;
1268
+ lineDotted: string;
1269
+ lineSolid: string;
1270
+ link: string;
1271
+ list: string;
1272
+ listAdd: string;
1273
+ lock: string;
1274
+ lockOpen: string;
1275
+ logoAWS: string;
1276
+ logoAWSMono: string;
1277
+ logoAerospike: string;
1278
+ logoApache: string;
1279
+ logoAppSearch: string;
1280
+ logoAzure: string;
1281
+ logoAzureMono: string;
1282
+ logoBeats: string;
1283
+ logoBusinessAnalytics: string;
1284
+ logoCeph: string;
1285
+ logoCloud: string;
1286
+ logoCloudEnterprise: string;
1287
+ logoCode: string;
1288
+ logoCodesandbox: string;
1289
+ logoCouchbase: string;
1290
+ logoDocker: string;
1291
+ logoDropwizard: string;
1292
+ logoElastic: string;
1293
+ logoElasticStack: string;
1294
+ logoElasticsearch: string;
1295
+ logoEnterpriseSearch: string;
1296
+ logoEtcd: string;
1297
+ logoGCP: string;
1298
+ logoGCPMono: string;
1299
+ logoGithub: string;
1300
+ logoGmail: string;
1301
+ logoGolang: string;
1302
+ logoGoogleG: string;
1303
+ logoHAproxy: string;
1304
+ logoIBM: string;
1305
+ logoIBMMono: string;
1306
+ logoKafka: string;
1307
+ logoKibana: string;
1308
+ logoKubernetes: string;
1309
+ logoLogging: string;
1310
+ logoLogstash: string;
1311
+ logoMaps: string;
1312
+ logoMemcached: string;
1313
+ logoMetrics: string;
1314
+ logoMongodb: string;
1315
+ logoMySQL: string;
1316
+ logoNginx: string;
1317
+ logoObservability: string;
1318
+ logoOsquery: string;
1319
+ logoPhp: string;
1320
+ logoPostgres: string;
1321
+ logoPrometheus: string;
1322
+ logoRabbitmq: string;
1323
+ logoRedis: string;
1324
+ logoSecurity: string;
1325
+ logoSiteSearch: string;
1326
+ logoSketch: string;
1327
+ logoSlack: string;
1328
+ logoUptime: string;
1329
+ logoWebhook: string;
1330
+ logoWindows: string;
1331
+ logoWorkplaceSearch: string;
1332
+ logsApp: string;
1333
+ logstashFilter: string;
1334
+ logstashIf: string;
1335
+ logstashInput: string;
1336
+ logstashOutput: string;
1337
+ logstashQueue: string;
1338
+ machineLearningApp: string;
1339
+ magnet: string;
1340
+ magnifyWithExclamation: string;
1341
+ magnifyWithMinus: string;
1342
+ magnifyWithPlus: string;
1343
+ managementApp: string;
1344
+ mapMarker: string;
1345
+ memory: string;
1346
+ menu: string;
1347
+ menuDown: string;
1348
+ menuLeft: string;
1349
+ menuRight: string;
1350
+ menuUp: string;
1351
+ merge: string;
1352
+ metricbeatApp: string;
1353
+ metricsApp: string;
1354
+ minimize: string;
1355
+ minus: string;
1356
+ minusInCircle: string;
1357
+ minusInCircleFilled: string;
1358
+ mobile: string;
1359
+ monitoringApp: string;
1360
+ moon: string;
1361
+ namespace: string;
1362
+ nested: string;
1363
+ node: string;
1364
+ notebookApp: string;
1365
+ number: string;
1366
+ offline: string;
1367
+ online: string;
1368
+ outlierDetectionJob: string;
1369
+ package: string;
1370
+ packetbeatApp: string;
1371
+ pageSelect: string;
1372
+ pagesSelect: string;
1373
+ paperClip: string;
1374
+ partial: string;
1375
+ pause: string;
1376
+ payment: string;
1377
+ pencil: string;
1378
+ percent: string;
1379
+ pin: string;
1380
+ pinFilled: string;
1381
+ pipelineApp: string;
1382
+ play: string;
1383
+ playFilled: string;
1384
+ plus: string;
1385
+ plusInCircle: string;
1386
+ plusInCircleFilled: string;
1387
+ popout: string;
1388
+ push: string;
1389
+ questionInCircle: string;
1390
+ quote: string;
1391
+ recentlyViewedApp: string;
1392
+ refresh: string;
1393
+ regressionJob: string;
1394
+ reporter: string;
1395
+ reportingApp: string;
1396
+ returnKey: string;
1397
+ save: string;
1398
+ savedObjectsApp: string;
1399
+ scale: string;
1400
+ search: string;
1401
+ searchProfilerApp: string;
1402
+ securityAnalyticsApp: string;
1403
+ securityApp: string;
1404
+ securitySignal: string;
1405
+ securitySignalDetected: string;
1406
+ securitySignalResolved: string;
1407
+ sessionViewer: string;
1408
+ shard: string;
1409
+ share: string;
1410
+ snowflake: string;
1411
+ sortDown: string;
1412
+ sortLeft: string;
1413
+ sortRight: string;
1414
+ sortUp: string;
1415
+ sortable: string;
1416
+ spacesApp: string;
1417
+ sqlApp: string;
1418
+ starEmpty: string;
1419
+ starEmptySpace: string;
1420
+ starFilled: string;
1421
+ starFilledSpace: string;
1422
+ starMinusEmpty: string;
1423
+ starMinusFilled: string;
1424
+ starPlusEmpty: string;
1425
+ starPlusFilled: string;
1426
+ stats: string;
1427
+ stop: string;
1428
+ stopFilled: string;
1429
+ stopSlash: string;
1430
+ storage: string;
1431
+ string: string;
1432
+ submodule: string;
1433
+ sun: string;
1434
+ swatchInput: string;
1435
+ symlink: string;
1436
+ tableDensityCompact: string;
1437
+ tableDensityExpanded: string;
1438
+ tableDensityNormal: string;
1439
+ tableOfContents: string;
1440
+ tag: string;
1441
+ tear: string;
1442
+ temperature: string;
1443
+ timeline: string;
1444
+ timelionApp: string;
1445
+ timeRefresh: string;
1446
+ timeslider: string;
1447
+ training: string;
1448
+ trash: string;
1449
+ unfold: string;
1450
+ unlink: string;
1451
+ upgradeAssistantApp: string;
1452
+ uptimeApp: string;
1453
+ user: string;
1454
+ userAvatar: string;
1455
+ users: string;
1456
+ usersRolesApp: string;
1457
+ vector: string;
1458
+ videoPlayer: string;
1459
+ visArea: string;
1460
+ visAreaStacked: string;
1461
+ visBarHorizontal: string;
1462
+ visBarHorizontalStacked: string;
1463
+ visBarVertical: string;
1464
+ visBarVerticalStacked: string;
1465
+ visGauge: string;
1466
+ visGoal: string;
1467
+ visLine: string;
1468
+ visMapCoordinate: string;
1469
+ visMapRegion: string;
1470
+ visMetric: string;
1471
+ visPie: string;
1472
+ visTable: string;
1473
+ visTagCloud: string;
1474
+ visText: string;
1475
+ visTimelion: string;
1476
+ visVega: string;
1477
+ visVisualBuilder: string;
1478
+ visualizeApp: string;
1479
+ watchesApp: string;
1480
+ wordWrap: string;
1481
+ wordWrapDisabled: string;
1482
+ workplaceSearchApp: string;
1483
+ wrench: string;
1484
+ tokenAlias: string;
1485
+ tokenAnnotation: string;
1486
+ tokenArray: string;
1487
+ tokenBinary: string;
1488
+ tokenBoolean: string;
1489
+ tokenClass: string;
1490
+ tokenCompletionSuggester: string;
1491
+ tokenConstant: string;
1492
+ tokenDate: string;
1493
+ tokenDenseVector: string;
1494
+ tokenElement: string;
1495
+ tokenEnum: string;
1496
+ tokenEnumMember: string;
1497
+ tokenEvent: string;
1498
+ tokenException: string;
1499
+ tokenField: string;
1500
+ tokenFile: string;
1501
+ tokenFlattened: string;
1502
+ tokenFunction: string;
1503
+ tokenGeo: string;
1504
+ tokenHistogram: string;
1505
+ tokenInterface: string;
1506
+ tokenIP: string;
1507
+ tokenJoin: string;
1508
+ tokenKey: string;
1509
+ tokenKeyword: string;
1510
+ tokenMethod: string;
1511
+ tokenMetricCounter: string;
1512
+ tokenMetricGauge: string;
1513
+ tokenModule: string;
1514
+ tokenNamespace: string;
1515
+ tokenNested: string;
1516
+ tokenNull: string;
1517
+ tokenNumber: string;
1518
+ tokenObject: string;
1519
+ tokenOperator: string;
1520
+ tokenPackage: string;
1521
+ tokenParameter: string;
1522
+ tokenPercolator: string;
1523
+ tokenProperty: string;
1524
+ tokenRange: string;
1525
+ tokenRankFeature: string;
1526
+ tokenRankFeatures: string;
1527
+ tokenRepo: string;
1528
+ tokenSearchType: string;
1529
+ tokenShape: string;
1530
+ tokenString: string;
1531
+ tokenStruct: string;
1532
+ tokenSymbol: string;
1533
+ tokenTag: string;
1534
+ tokenText: string;
1535
+ tokenTokenCount: string;
1536
+ tokenVariable: string;
1553
1537
  };
1554
1538
 
1555
1539
  }
1556
- declare module '@elastic/eui/src/services/color/manipulation' {
1557
- import { EuiThemeColorModeStandard } from '@elastic/eui/src/services/theme';
1558
- /**
1559
- * Makes a color more transparent.
1560
- * @param color - Color to manipulate
1561
- * @param alpha - alpha channel value. From 0-1.
1562
- */
1563
- export const transparentize: (color: string, alpha: number) => string;
1564
- /**
1565
- * Mixes a provided color with white.
1566
- * @param color - Color to mix with white
1567
- * @param ratio - Mix weight. From 0-1. Larger value indicates more white.
1568
- */
1569
- export const tint: (color: string, ratio: number) => string;
1570
- /**
1571
- * Mixes a provided color with black.
1572
- * @param color - Color to mix with black
1573
- * @param ratio - Mix weight. From 0-1. Larger value indicates more black.
1574
- */
1575
- export const shade: (color: string, ratio: number) => string;
1576
- /**
1577
- * Returns the tinted color for light mode and shaded color for dark mode
1578
- * @param color - Color to mix with white
1579
- * @param ratio - Mix weight. From 0-1. Larger value indicates more white.
1580
- * @param colorMode - Light or dark only
1581
- */
1582
- export const tintOrShade: (color: string, ratio: number, colorMode: EuiThemeColorModeStandard) => string;
1583
- /**
1584
- * Returns the shaded color for light mode and tinted color for dark mode
1585
- * @param color - Color to mix with white
1586
- * @param ratio - Mix weight. From 0-1. Larger value indicates more white.
1587
- * @param colorMode - Light or dark only
1588
- */
1589
- export const shadeOrTint: (color: string, ratio: number, colorMode: EuiThemeColorModeStandard) => string;
1590
- /**
1591
- * Increases the saturation of a color by manipulating the hsl saturation.
1592
- * @param color - Color to manipulate
1593
- * @param amount - Amount to change in absolute terms. 0-1.
1594
- */
1595
- export const saturate: (color: string, amount: number) => string;
1596
- /**
1597
- * Decreases the saturation of a color by manipulating the hsl saturation.
1598
- * @param color - Color to manipulate
1599
- * @param amount - Amount to change in absolute terms. 0-1.
1600
- */
1601
- export const desaturate: (color: string, amount: number) => string;
1602
- /**
1603
- * Returns the lightness value of a color. 0-100
1604
- * @param color
1605
- */
1606
- export const lightness: (color: string) => number;
1540
+ declare module '@elastic/eui/src/components/icon/assets/empty' {
1541
+ import * as React from 'react';
1542
+ interface SVGRProps {
1543
+ title?: string;
1544
+ titleId?: string;
1545
+ }
1546
+ export const icon: ({ title, titleId, ...props }: React.SVGProps<SVGSVGElement> & SVGRProps) => JSX.Element;
1547
+ export {};
1607
1548
 
1608
1549
  }
1609
- declare module '@elastic/eui/src/services/color/contrast' {
1610
- /**
1611
- * Creates a new color that meets or exceeds WCAG level AA
1612
- * @param foreground - Color to manipulate
1613
- * @param ratio - Amount to change in absolute terms. 0-10.
1614
- * *
1615
- * @param themeOrBackground - Color to use as the contrast basis or just pass EuiTheme
1616
- */
1617
- export const makeHighContrastColor: (_foreground: string, ratio?: number) => (themeOrBackground: string | {
1618
- [key: string]: any;
1619
- colors: {
1620
- body: string;
1621
- };
1622
- }) => string;
1623
- /**
1624
- * Creates a new color with increased contrast
1625
- * Disabled content only needs a contrast of at least 2 because there is no interaction available
1626
- * @param foreground - Color to manipulate
1627
- * @param ratio - Amount to change in absolute terms. 0-10.
1628
- * *
1629
- * @param themeOrBackground - Color to use as the contrast basis
1630
- */
1631
- export const makeDisabledContrastColor: (color: string, ratio?: number) => (themeOrBackground: string | {
1632
- [key: string]: any;
1633
- colors: {
1634
- body: string;
1635
- };
1636
- }) => string;
1550
+ declare module '@elastic/eui/src/services/react' {
1551
+ export function enqueueStateChange(fn: Function): void;
1637
1552
 
1638
1553
  }
1639
- declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_colors' {
1640
- import { _EuiThemeColors, _EuiThemeBrandColors, _EuiThemeBrandTextColors, _EuiThemeShadeColors, _EuiThemeSpecialColors, _EuiThemeTextColors, _EuiThemeColorsMode } from '@elastic/eui/src/global_styling/variables/colors';
1641
- export const brand_colors: _EuiThemeBrandColors;
1642
- export const brand_text_colors: _EuiThemeBrandTextColors;
1643
- export const shade_colors: _EuiThemeShadeColors;
1644
- export const special_colors: _EuiThemeSpecialColors;
1645
- export const text_colors: _EuiThemeTextColors;
1646
- export const light_colors: _EuiThemeColorsMode;
1647
- export const dark_shades: _EuiThemeShadeColors;
1648
- export const dark_colors_ams: _EuiThemeColorsMode;
1649
- export const colors: _EuiThemeColors;
1554
+ declare module '@elastic/eui/src/components/icon/named_colors' {
1555
+ export const COLORS: readonly ["default", "primary", "success", "accent", "warning", "danger", "text", "subdued", "ghost", "inherit"];
1556
+ export type NamedColor = typeof COLORS[number];
1557
+ export function isNamedColor(name: string): boolean;
1650
1558
 
1651
1559
  }
1652
- declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_animation' {
1653
- import { _EuiThemeAnimationSpeeds, _EuiThemeAnimationEasings, _EuiThemeAnimation } from '@elastic/eui/src/global_styling/variables/animations';
1654
- export const animation_speed: _EuiThemeAnimationSpeeds;
1655
- export const animation_ease: _EuiThemeAnimationEasings;
1656
- export const animation: _EuiThemeAnimation;
1560
+ declare module '@elastic/eui/src/global_styling/mixins/_color' {
1561
+ import { UseEuiTheme } from '@elastic/eui/src/services';
1562
+ export const BACKGROUND_COLORS: readonly ["transparent", "plain", "subdued", "accent", "primary", "success", "warning", "danger"];
1563
+ export type _EuiBackgroundColor = typeof BACKGROUND_COLORS[number];
1564
+ export interface _EuiBackgroundColorOptions {
1565
+ /**
1566
+ * Use `opaque` for containers of unknown content.
1567
+ * Use `transparent` for interactive states like hover and focus.
1568
+ */
1569
+ method?: 'opaque' | 'transparent';
1570
+ }
1571
+ export const euiBackgroundColor: ({ euiTheme, colorMode }: UseEuiTheme, color: _EuiBackgroundColor, { method }?: _EuiBackgroundColorOptions) => string;
1572
+ export const useEuiBackgroundColor: (color: _EuiBackgroundColor, { method }?: _EuiBackgroundColorOptions) => string;
1573
+ export const useEuiBackgroundColorCSS: () => {
1574
+ transparent: import("@emotion/utils").SerializedStyles;
1575
+ plain: import("@emotion/utils").SerializedStyles;
1576
+ subdued: import("@emotion/utils").SerializedStyles;
1577
+ accent: import("@emotion/utils").SerializedStyles;
1578
+ primary: import("@emotion/utils").SerializedStyles;
1579
+ success: import("@emotion/utils").SerializedStyles;
1580
+ warning: import("@emotion/utils").SerializedStyles;
1581
+ danger: import("@emotion/utils").SerializedStyles;
1582
+ };
1657
1583
 
1658
1584
  }
1659
- declare module '@elastic/eui/src/global_styling/variables/shadow' {
1660
- export const EuiThemeShadowSizes: readonly ["xs", "s", "m", "l", "xl"];
1661
- export type _EuiThemeShadowSize = typeof EuiThemeShadowSizes[number];
1585
+ declare module '@elastic/eui/src/global_styling/mixins/_helpers' {
1586
+ import { CSSProperties } from 'react';
1587
+ import { UseEuiTheme } from '@elastic/eui/src/services/theme';
1662
1588
  /**
1663
- * Shadow t-shirt sizes descriptions
1589
+ * Set scroll bar appearance on Chrome (and firefox).
1590
+ * All parameters are optional and default to specific global settings.
1664
1591
  */
1665
- export const _EuiShadowSizesDescriptions: Record<_EuiThemeShadowSize, string>;
1666
- export interface _EuiThemeShadowCustomColor {
1667
- color?: string;
1668
- property?: 'box-shadow' | 'filter';
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
+ export const euiYScroll: (euiTheme: UseEuiTheme) => string;
1617
+ export const useEuiYScroll: () => string;
1618
+ export const euiYScrollWithShadows: (euiTheme: UseEuiTheme) => string;
1619
+ export const useEuiYScrollWithShadows: () => string;
1620
+ export const euiXScroll: (euiTheme: UseEuiTheme) => string;
1621
+ export const useEuiXScroll: () => string;
1622
+ export const euiXScrollWithShadows: (euiTheme: UseEuiTheme) => string;
1623
+ export const useEuiXScrollWithShadows: () => string;
1624
+ interface EuiScrollOverflowStyles {
1625
+ direction?: 'y' | 'x';
1626
+ mask?: boolean;
1669
1627
  }
1670
-
1671
- }
1672
- declare module '@elastic/eui/src/global_styling/variables' {
1673
- export * from '@elastic/eui/src/global_styling/variables/animations';
1674
- export * from '@elastic/eui/src/global_styling/variables/borders';
1675
- export * from '@elastic/eui/src/global_styling/variables/breakpoint';
1676
- export * from '@elastic/eui/src/global_styling/variables/colors';
1677
- export * from '@elastic/eui/src/global_styling/variables/levels';
1678
- export * from '@elastic/eui/src/global_styling/variables/size';
1679
- export * from '@elastic/eui/src/global_styling/variables/shadow';
1680
- export * from '@elastic/eui/src/global_styling/variables/states';
1681
- export * from '@elastic/eui/src/global_styling/variables/typography';
1682
-
1683
- }
1684
- declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_breakpoint' {
1685
- import { _EuiThemeBreakpoints } from '@elastic/eui/src/global_styling/variables';
1686
- export const breakpoint: _EuiThemeBreakpoints;
1628
+ export const euiOverflowScroll: (euiTheme: UseEuiTheme, { direction, mask }?: EuiScrollOverflowStyles) => string;
1629
+ export const useEuiOverflowScroll: (direction: EuiScrollOverflowStyles['direction'], mask?: EuiScrollOverflowStyles['mask']) => string;
1630
+ export {};
1687
1631
 
1688
1632
  }
1689
1633
  declare module '@elastic/eui/src/global_styling/functions/logicals' {
@@ -1760,7 +1704,7 @@ declare module '@elastic/eui/src/global_styling/functions/logicals' {
1760
1704
  'margin-horizontal': string;
1761
1705
  'margin-vertical': string;
1762
1706
  };
1763
- export const LOGICAL_PROPERTIES: ("left" | "right" | "top" | "width" | "height" | "inset" | "bottom" | "horizontal" | "vertical" | "border-horizontal" | "border-horizontal-color" | "border-horizontal-width" | "border-horizontal-style" | "border-vertical" | "border-vertical-color" | "border-vertical-width" | "border-vertical-style" | "border-bottom" | "border-bottom-color" | "border-bottom-style" | "border-bottom-width" | "border-top" | "border-top-color" | "border-top-style" | "border-top-width" | "border-right" | "border-right-color" | "border-right-style" | "border-right-width" | "border-left" | "border-left-color" | "border-left-style" | "border-left-width" | "border-top-left-radius" | "border-top-right-radius" | "border-bottom-left-radius" | "border-bottom-right-radius" | "overflow-x" | "overflow-y" | "max-height" | "max-width" | "min-height" | "min-width" | "padding-left" | "padding-right" | "padding-top" | "padding-bottom" | "padding-horizontal" | "padding-vertical" | "margin-left" | "margin-right" | "margin-top" | "margin-bottom" | "margin-horizontal" | "margin-vertical")[];
1707
+ export const LOGICAL_PROPERTIES: ("left" | "right" | "inset" | "top" | "width" | "height" | "bottom" | "horizontal" | "vertical" | "border-horizontal" | "border-horizontal-color" | "border-horizontal-width" | "border-horizontal-style" | "border-vertical" | "border-vertical-color" | "border-vertical-width" | "border-vertical-style" | "border-bottom" | "border-bottom-color" | "border-bottom-style" | "border-bottom-width" | "border-top" | "border-top-color" | "border-top-style" | "border-top-width" | "border-right" | "border-right-color" | "border-right-style" | "border-right-width" | "border-left" | "border-left-color" | "border-left-style" | "border-left-width" | "border-top-left-radius" | "border-top-right-radius" | "border-bottom-left-radius" | "border-bottom-right-radius" | "overflow-x" | "overflow-y" | "max-height" | "max-width" | "min-height" | "min-width" | "padding-left" | "padding-right" | "padding-top" | "padding-bottom" | "padding-horizontal" | "padding-vertical" | "margin-left" | "margin-right" | "margin-top" | "margin-bottom" | "margin-horizontal" | "margin-vertical")[];
1764
1708
  export type LogicalProperties = typeof LOGICAL_PROPERTIES[number];
1765
1709
  /**
1766
1710
  *
@@ -1893,7 +1837,7 @@ declare module '@elastic/eui/src/global_styling/functions/typography' {
1893
1837
  * this mixin will ensure that the sizing is dependent on the boldest
1894
1838
  * weight so it doesn't shift sibling content.
1895
1839
  */
1896
- export const euiTextShift: (fontWeight: "bold" | "light" | "medium" | "regular" | "semiBold" | undefined, attribute: string | undefined, euiTheme: UseEuiTheme['euiTheme']) => string;
1840
+ export const euiTextShift: (fontWeight: "bold" | "light" | "regular" | "medium" | "semiBold" | undefined, attribute: string | undefined, euiTheme: UseEuiTheme['euiTheme']) => string;
1897
1841
 
1898
1842
  }
1899
1843
  declare module '@elastic/eui/src/global_styling/functions' {
@@ -1901,126 +1845,6 @@ declare module '@elastic/eui/src/global_styling/functions' {
1901
1845
  export * from '@elastic/eui/src/global_styling/functions/size';
1902
1846
  export * from '@elastic/eui/src/global_styling/functions/typography';
1903
1847
 
1904
- }
1905
- declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_size' {
1906
- import { _EuiThemeBase, _EuiThemeSizes } from '@elastic/eui/src/global_styling/variables';
1907
- export const base: _EuiThemeBase;
1908
- export const size: _EuiThemeSizes;
1909
-
1910
- }
1911
- declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_borders' {
1912
- import { _EuiThemeBorder } from '@elastic/eui/src/global_styling/variables';
1913
- export const border: _EuiThemeBorder;
1914
-
1915
- }
1916
- declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_levels' {
1917
- import { _EuiThemeLevels } from '@elastic/eui/src/global_styling/variables';
1918
- export const levels: _EuiThemeLevels;
1919
-
1920
- }
1921
- declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_typography' {
1922
- import { _EuiThemeFont, _EuiThemeFontBase, _EuiThemeFontScales, _EuiThemeFontWeights } from '@elastic/eui/src/global_styling/variables/typography';
1923
- export const fontScale: _EuiThemeFontScales;
1924
- export const fontBase: _EuiThemeFontBase;
1925
- export const fontWeight: _EuiThemeFontWeights;
1926
- export const font: _EuiThemeFont;
1927
-
1928
- }
1929
- declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_states' {
1930
- import { _EuiThemeFocus } from '@elastic/eui/src/global_styling/variables/states';
1931
- export const focus: _EuiThemeFocus;
1932
-
1933
- }
1934
- declare module '@elastic/eui/src/themes/amsterdam/theme' {
1935
- import { EuiThemeShape } from '@elastic/eui/src/services/theme/types';
1936
- export const AMSTERDAM_NAME_KEY = "EUI_THEME_AMSTERDAM";
1937
- export const euiThemeAmsterdam: EuiThemeShape;
1938
- export const EuiThemeAmsterdam: {
1939
- model: EuiThemeShape;
1940
- root: EuiThemeShape;
1941
- key: string;
1942
- };
1943
-
1944
- }
1945
- declare module '@elastic/eui/src/services/theme/context' {
1946
-
1947
- import { EuiThemeColorModeStandard, EuiThemeSystem, EuiThemeComputed } from '@elastic/eui/src/services/theme/types';
1948
- export const EuiSystemContext: import("react").Context<EuiThemeSystem<{}>>;
1949
- export const EuiModificationsContext: import("react").Context<import ("@elastic/eui").RecursivePartial<import ("@elastic/eui/src/services/theme/types").EuiThemeShape>>;
1950
- export const EuiColorModeContext: import("react").Context<EuiThemeColorModeStandard>;
1951
- export const EuiThemeContext: import("react").Context<EuiThemeComputed<{}>>;
1952
-
1953
- }
1954
- declare module '@elastic/eui/src/services/theme/provider' {
1955
- import React, { PropsWithChildren } from 'react';
1956
- import { EuiThemeColorMode, EuiThemeSystem, EuiThemeModifications } from '@elastic/eui/src/services/theme/types';
1957
- export interface EuiThemeProviderProps<T> {
1958
- theme?: EuiThemeSystem<T>;
1959
- colorMode?: EuiThemeColorMode;
1960
- modify?: EuiThemeModifications<T>;
1961
- children: any;
1962
- }
1963
- export const EuiThemeProvider: <T extends {} = {}>({ theme: _system, colorMode: _colorMode, modify: _modifications, children, }: React.PropsWithChildren<EuiThemeProviderProps<T>>) => JSX.Element;
1964
-
1965
- }
1966
- declare module '@elastic/eui/src/services/theme' {
1967
- export { EuiSystemContext, EuiThemeContext, EuiModificationsContext, EuiColorModeContext, } from '@elastic/eui/src/services/theme/context';
1968
- export type { UseEuiTheme, WithEuiThemeProps } from '@elastic/eui/src/services/theme/hooks';
1969
- export { useEuiTheme, withEuiTheme } from '@elastic/eui/src/services/theme/hooks';
1970
- export type { EuiThemeProviderProps } from '@elastic/eui/src/services/theme/provider';
1971
- export { EuiThemeProvider } from '@elastic/eui/src/services/theme/provider';
1972
- export { buildTheme, computed, isInverseColorMode, getColorMode, getComputed, getOn, mergeDeep, setOn, Computed, } from '@elastic/eui/src/services/theme/utils';
1973
- export type { ComputedThemeShape, EuiThemeColorMode, EuiThemeColorModeStandard, EuiThemeComputed, EuiThemeModifications, EuiThemeShape, EuiThemeSystem, } from '@elastic/eui/src/services/theme/types';
1974
- export { COLOR_MODES_STANDARD } from '@elastic/eui/src/services/theme/types';
1975
-
1976
- }
1977
- declare module '@elastic/eui/src/global_styling/mixins/_helpers' {
1978
- import { CSSProperties } from 'react';
1979
- import { UseEuiTheme } from '@elastic/eui/src/services/theme';
1980
- /**
1981
- * Set scroll bar appearance on Chrome (and firefox).
1982
- * All parameters are optional and default to specific global settings.
1983
- */
1984
- export interface EuiScrollBarStyles {
1985
- thumbColor?: CSSProperties['backgroundColor'];
1986
- trackColor?: CSSProperties['backgroundColor'];
1987
- /**
1988
- * Defaults to `thin`. Use `auto` only for large page scrollbars
1989
- */
1990
- width?: CSSProperties['scrollbarWidth'];
1991
- /**
1992
- * Overall width (height for horizontal scrollbars)
1993
- */
1994
- size?: CSSProperties['width'];
1995
- /**
1996
- * Corner sizes are usually determined by `width` and
1997
- * are used as an inset border and therefore a smaller corner size means a larger thumb
1998
- */
1999
- corner?: CSSProperties['borderWidth'];
2000
- }
2001
- export const euiScrollBarStyles: ({ euiTheme: { colors, size } }: UseEuiTheme, { thumbColor: _thumbColor, trackColor, width, size: _size, corner: _corner, }?: EuiScrollBarStyles) => string;
2002
- export const useEuiScrollBar: (options?: EuiScrollBarStyles | undefined) => string;
2003
- /**
2004
- * 1. Focus rings shouldn't be visible on scrollable regions, but a11y requires them to be focusable.
2005
- * Browser's supporting `:focus-visible` will still show outline on keyboard focus only.
2006
- * Others like Safari, won't show anything at all.
2007
- */
2008
- export const euiYScroll: (euiTheme: UseEuiTheme) => string;
2009
- export const useEuiYScroll: () => string;
2010
- export const euiYScrollWithShadows: (euiTheme: UseEuiTheme) => string;
2011
- export const useEuiYScrollWithShadows: () => string;
2012
- export const euiXScroll: (euiTheme: UseEuiTheme) => string;
2013
- export const useEuiXScroll: () => string;
2014
- export const euiXScrollWithShadows: (euiTheme: UseEuiTheme) => string;
2015
- export const useEuiXScrollWithShadows: () => string;
2016
- interface EuiScrollOverflowStyles {
2017
- direction?: 'y' | 'x';
2018
- mask?: boolean;
2019
- }
2020
- export const euiOverflowScroll: (euiTheme: UseEuiTheme, { direction, mask }?: EuiScrollOverflowStyles) => string;
2021
- export const useEuiOverflowScroll: (direction: EuiScrollOverflowStyles['direction'], mask?: EuiScrollOverflowStyles['mask']) => string;
2022
- export {};
2023
-
2024
1848
  }
2025
1849
  declare module '@elastic/eui/src/global_styling/mixins/_padding' {
2026
1850
  import { UseEuiTheme } from '@elastic/eui/src/services/theme';
@@ -4124,116 +3948,49 @@ declare module '@elastic/eui/src/components/panel/panel' {
4124
3948
  import { CommonProps, ExclusiveUnion } from '@elastic/eui/src/components/common';
4125
3949
  export const SIZES: readonly ["none", "xs", "s", "m", "l", "xl"]; const _SIZES: ("s" | "none" | "xs" | "m" | "l" | "xl")[];
4126
3950
  export type PanelPaddingSize = typeof _SIZES[number];
4127
- export const BORDER_RADII: readonly ["none", "m"];
4128
- export type PanelBorderRadius = typeof BORDER_RADII[number];
4129
- export const COLORS: readonly ["transparent", "plain", "subdued", "accent", "primary", "success", "warning", "danger"];
4130
- export type PanelColor = _EuiBackgroundColor;
4131
- export interface _EuiPanelProps extends CommonProps {
4132
- /**
4133
- * Adds a medium shadow to the panel;
4134
- * Only works when `color="plain"`
4135
- */
4136
- hasShadow?: boolean;
4137
- /**
4138
- * Adds a slight 1px border on all edges.
4139
- * Only works when `color="plain | transparent"`
4140
- */
4141
- hasBorder?: boolean;
4142
- /**
4143
- * Padding for all four sides
4144
- */
4145
- paddingSize?: EuiPaddingSize;
4146
- /**
4147
- * Corner border radius
4148
- */
4149
- borderRadius?: PanelBorderRadius;
4150
- /**
4151
- * When true the panel will grow in height to match `EuiFlexItem`
4152
- */
4153
- grow?: boolean;
4154
- panelRef?: Ref<HTMLDivElement>;
4155
- /**
4156
- * Background color of the panel;
4157
- * Usually a lightened form of the brand colors
4158
- */
4159
- color?: PanelColor;
4160
- }
4161
- export interface _EuiPanelDivlike extends _EuiPanelProps, Omit<HTMLAttributes<HTMLDivElement>, 'color'> {
4162
- element?: 'div';
4163
- }
4164
- export interface _EuiPanelButtonlike extends _EuiPanelProps, Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'color'> {
4165
- element?: 'button';
4166
- }
4167
- export type EuiPanelProps = ExclusiveUnion<_EuiPanelButtonlike, _EuiPanelDivlike>;
4168
- export const EuiPanel: FunctionComponent<EuiPanelProps>;
4169
- export {};
4170
-
4171
- }
4172
- declare module '@elastic/eui/src/services/hooks/useUpdateEffect' {
4173
- export const useUpdateEffect: (effect: Function, deps: unknown[]) => void;
4174
-
4175
- }
4176
- declare module '@elastic/eui/src/services/hooks/useDependentState' {
4177
-
4178
- export function useDependentState<T>(valueFn: (previousState: undefined | T) => T, deps: unknown[]): readonly [T, import("react").Dispatch<import("react").SetStateAction<T>>];
4179
-
4180
- }
4181
- declare module '@elastic/eui/src/services/hooks/useCombinedRefs' {
4182
- import { MutableRefObject, Ref } from 'react';
4183
- export const useCombinedRefs: <T>(refs: (Ref<T> | MutableRefObject<T | undefined> | undefined)[]) => (node: T) => void;
4184
-
4185
- }
4186
- declare module '@elastic/eui/src/services/hooks/useForceRender' {
4187
- export const useForceRender: () => () => void;
4188
-
4189
- }
4190
- declare module '@elastic/eui/src/services/hooks/useIsWithinBreakpoints' {
4191
- import { EuiBreakpointSize } from '@elastic/eui/src/services/breakpoint';
4192
- /**
4193
- * Given the current window.innerWidth and an array of breakpoint keys,
4194
- * this hook stores state and returns true or false if the window.innerWidth
4195
- * falls within any of the named breakpoints.
4196
- *
4197
- * @param {EuiBreakpointSize[]} sizes An array of named breakpoints
4198
- * @param {boolean} isActive Manages whether the resize handler should be active
4199
- * @returns {boolean} Returns `true` if current breakpoint name is included in `sizes`
4200
- */
4201
- export function useIsWithinBreakpoints(sizes: EuiBreakpointSize[], isActive?: boolean): boolean;
4202
-
4203
- }
4204
- declare module '@elastic/eui/src/services/hooks/useLatest' {
4205
- import { MutableRefObject } from 'react';
4206
- /**
4207
- * Wraps the given `value` into a `MutableRefObject` and keeps the `current`
4208
- * value up-to-date on every render cycle.
4209
- */
4210
- export function useLatest<Value>(value: Value): MutableRefObject<Value | null>;
4211
-
4212
- }
4213
- declare module '@elastic/eui/src/services/throttle' {
4214
- export const throttle: (fn: (...args: any[]) => void, wait?: number) => (...args: any[]) => void;
4215
-
4216
- }
4217
- declare module '@elastic/eui/src/services/hooks/useMouseMove' {
4218
- import { MouseEvent, TouchEvent } from 'react';
4219
- export function isMouseEvent<T = HTMLDivElement>(event: MouseEvent<T> | TouchEvent<T>): event is MouseEvent<T>;
4220
- export function useMouseMove<T = HTMLDivElement>(handleChange: (location: {
4221
- x: number;
4222
- y: number;
4223
- }, isFirstInteraction?: boolean) => void, interactionConditional?: any): [
4224
- (e: MouseEvent<T>) => void,
4225
- (e: MouseEvent<T> | TouchEvent<T>, isFirstInteraction?: boolean) => void
4226
- ];
4227
-
4228
- }
4229
- declare module '@elastic/eui/src/services/hooks' {
4230
- export * from '@elastic/eui/src/services/hooks/useDependentState';
4231
- export * from '@elastic/eui/src/services/hooks/useCombinedRefs';
4232
- export * from '@elastic/eui/src/services/hooks/useForceRender';
4233
- export * from '@elastic/eui/src/services/hooks/useIsWithinBreakpoints';
4234
- export * from '@elastic/eui/src/services/hooks/useLatest';
4235
- export * from '@elastic/eui/src/services/hooks/useMouseMove';
4236
- export * from '@elastic/eui/src/services/hooks/useUpdateEffect';
3951
+ export const BORDER_RADII: readonly ["none", "m"];
3952
+ export type PanelBorderRadius = typeof BORDER_RADII[number];
3953
+ export const COLORS: readonly ["transparent", "plain", "subdued", "accent", "primary", "success", "warning", "danger"];
3954
+ export type PanelColor = _EuiBackgroundColor;
3955
+ export interface _EuiPanelProps extends CommonProps {
3956
+ /**
3957
+ * Adds a medium shadow to the panel;
3958
+ * Only works when `color="plain"`
3959
+ */
3960
+ hasShadow?: boolean;
3961
+ /**
3962
+ * Adds a slight 1px border on all edges.
3963
+ * Only works when `color="plain | transparent"`
3964
+ */
3965
+ hasBorder?: boolean;
3966
+ /**
3967
+ * Padding for all four sides
3968
+ */
3969
+ paddingSize?: EuiPaddingSize;
3970
+ /**
3971
+ * Corner border radius
3972
+ */
3973
+ borderRadius?: PanelBorderRadius;
3974
+ /**
3975
+ * When true the panel will grow in height to match `EuiFlexItem`
3976
+ */
3977
+ grow?: boolean;
3978
+ panelRef?: Ref<HTMLDivElement>;
3979
+ /**
3980
+ * Background color of the panel;
3981
+ * Usually a lightened form of the brand colors
3982
+ */
3983
+ color?: PanelColor;
3984
+ }
3985
+ export interface _EuiPanelDivlike extends _EuiPanelProps, Omit<HTMLAttributes<HTMLDivElement>, 'color'> {
3986
+ element?: 'div';
3987
+ }
3988
+ export interface _EuiPanelButtonlike extends _EuiPanelProps, Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'color'> {
3989
+ element?: 'button';
3990
+ }
3991
+ export type EuiPanelProps = ExclusiveUnion<_EuiPanelButtonlike, _EuiPanelDivlike>;
3992
+ export const EuiPanel: FunctionComponent<EuiPanelProps>;
3993
+ export {};
4237
3994
 
4238
3995
  }
4239
3996
  declare module '@elastic/eui/src/components/panel/split_panel/split_panel' {
@@ -6692,28 +6449,251 @@ declare module '@elastic/eui/src/components/color_picker/color_stops' {
6692
6449
  export type { ColorStop } from '@elastic/eui/src/components/color_picker/color_stops/color_stop_thumb';
6693
6450
 
6694
6451
  }
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[];
6452
+ declare module '@elastic/eui/src/services/color/stepped_gradient' {
6453
+ import { ColorStop } from '@elastic/eui/src/components/color_picker/color_stops';
6454
+ export const getSteppedGradient: (colors: ColorStop[], steps: number) => string[];
6455
+
6456
+ }
6457
+ declare module '@elastic/eui/src/services/color/manipulation' {
6458
+ import { EuiThemeColorModeStandard } from '@elastic/eui/src/services/theme';
6459
+ /**
6460
+ * Makes a color more transparent.
6461
+ * @param color - Color to manipulate
6462
+ * @param alpha - alpha channel value. From 0-1.
6463
+ */
6464
+ export const transparentize: (color: string, alpha: number) => string;
6465
+ /**
6466
+ * Mixes a provided color with white.
6467
+ * @param color - Color to mix with white
6468
+ * @param ratio - Mix weight. From 0-1. Larger value indicates more white.
6469
+ */
6470
+ export const tint: (color: string, ratio: number) => string;
6471
+ /**
6472
+ * Mixes a provided color with black.
6473
+ * @param color - Color to mix with black
6474
+ * @param ratio - Mix weight. From 0-1. Larger value indicates more black.
6475
+ */
6476
+ export const shade: (color: string, ratio: number) => string;
6477
+ /**
6478
+ * Returns the tinted color for light mode and shaded color for dark mode
6479
+ * @param color - Color to mix with white
6480
+ * @param ratio - Mix weight. From 0-1. Larger value indicates more white.
6481
+ * @param colorMode - Light or dark only
6482
+ */
6483
+ export const tintOrShade: (color: string, ratio: number, colorMode: EuiThemeColorModeStandard) => string;
6484
+ /**
6485
+ * Returns the shaded color for light mode and tinted color for dark mode
6486
+ * @param color - Color to mix with white
6487
+ * @param ratio - Mix weight. From 0-1. Larger value indicates more white.
6488
+ * @param colorMode - Light or dark only
6489
+ */
6490
+ export const shadeOrTint: (color: string, ratio: number, colorMode: EuiThemeColorModeStandard) => string;
6491
+ /**
6492
+ * Increases the saturation of a color by manipulating the hsl saturation.
6493
+ * @param color - Color to manipulate
6494
+ * @param amount - Amount to change in absolute terms. 0-1.
6495
+ */
6496
+ export const saturate: (color: string, amount: number) => string;
6497
+ /**
6498
+ * Decreases the saturation of a color by manipulating the hsl saturation.
6499
+ * @param color - Color to manipulate
6500
+ * @param amount - Amount to change in absolute terms. 0-1.
6501
+ */
6502
+ export const desaturate: (color: string, amount: number) => string;
6503
+ /**
6504
+ * Returns the lightness value of a color. 0-100
6505
+ * @param color
6506
+ */
6507
+ export const lightness: (color: string) => number;
6508
+
6509
+ }
6510
+ declare module '@elastic/eui/src/services/color/contrast' {
6511
+ /**
6512
+ * Creates a new color that meets or exceeds WCAG level AA
6513
+ * @param foreground - Color to manipulate
6514
+ * @param ratio - Amount to change in absolute terms. 0-10.
6515
+ * *
6516
+ * @param themeOrBackground - Color to use as the contrast basis or just pass EuiTheme
6517
+ */
6518
+ export const makeHighContrastColor: (_foreground: string, ratio?: number) => (themeOrBackground: string | {
6519
+ [key: string]: any;
6520
+ colors: {
6521
+ body: string;
6522
+ };
6523
+ }) => string;
6524
+ /**
6525
+ * Creates a new color with increased contrast
6526
+ * Disabled content only needs a contrast of at least 2 because there is no interaction available
6527
+ * @param foreground - Color to manipulate
6528
+ * @param ratio - Amount to change in absolute terms. 0-10.
6529
+ * *
6530
+ * @param themeOrBackground - Color to use as the contrast basis
6531
+ */
6532
+ export const makeDisabledContrastColor: (color: string, ratio?: number) => (themeOrBackground: string | {
6533
+ [key: string]: any;
6534
+ colors: {
6535
+ body: string;
6536
+ };
6537
+ }) => string;
6538
+
6539
+ }
6540
+ declare module '@elastic/eui/src/services/color' {
6541
+ export { isColorDark } from '@elastic/eui/src/services/color/is_color_dark';
6542
+ export { isValidHex } from '@elastic/eui/src/services/color/is_valid_hex';
6543
+ export { hexToHsv } from '@elastic/eui/src/services/color/hex_to_hsv';
6544
+ export { hexToRgb } from '@elastic/eui/src/services/color/hex_to_rgb';
6545
+ export { hsvToHex } from '@elastic/eui/src/services/color/hsv_to_hex';
6546
+ export { hsvToRgb } from '@elastic/eui/src/services/color/hsv_to_rgb';
6547
+ export { rgbToHex } from '@elastic/eui/src/services/color/rgb_to_hex';
6548
+ export { rgbToHsv } from '@elastic/eui/src/services/color/rgb_to_hsv';
6549
+ export { calculateContrast, calculateLuminance, } from '@elastic/eui/src/services/color/luminance_and_contrast';
6550
+ export { VISUALIZATION_COLORS, DEFAULT_VISUALIZATION_COLOR, } from '@elastic/eui/src/services/color/visualization_colors';
6551
+ export { colorPalette } from '@elastic/eui/src/services/color/color_palette';
6552
+ export { euiPaletteForLightBackground, euiPaletteForDarkBackground, euiPaletteColorBlind, euiPaletteColorBlindBehindText, euiPaletteForStatus, euiPaletteForTemperature, euiPaletteComplimentary, euiPaletteNegative, euiPalettePositive, euiPaletteCool, euiPaletteWarm, euiPaletteGray, } from '@elastic/eui/src/services/color/eui_palettes';
6553
+ export type { rgbDef, HSV, RGB } from '@elastic/eui/src/services/color/color_types';
6554
+ export { getSteppedGradient } from '@elastic/eui/src/services/color/stepped_gradient';
6555
+ export * from '@elastic/eui/src/services/color/manipulation';
6556
+ export * from '@elastic/eui/src/services/color/contrast';
6557
+
6558
+ }
6559
+ declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_colors' {
6560
+ import { _EuiThemeColors, _EuiThemeBrandColors, _EuiThemeBrandTextColors, _EuiThemeShadeColors, _EuiThemeSpecialColors, _EuiThemeTextColors, _EuiThemeColorsMode } from '@elastic/eui/src/global_styling/variables/colors';
6561
+ export const brand_colors: _EuiThemeBrandColors;
6562
+ export const brand_text_colors: _EuiThemeBrandTextColors;
6563
+ export const shade_colors: _EuiThemeShadeColors;
6564
+ export const special_colors: _EuiThemeSpecialColors;
6565
+ export const text_colors: _EuiThemeTextColors;
6566
+ export const light_colors: _EuiThemeColorsMode;
6567
+ export const dark_shades: _EuiThemeShadeColors;
6568
+ export const dark_colors_ams: _EuiThemeColorsMode;
6569
+ export const colors: _EuiThemeColors;
6570
+
6571
+ }
6572
+ declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_animation' {
6573
+ import { _EuiThemeAnimationSpeeds, _EuiThemeAnimationEasings, _EuiThemeAnimation } from '@elastic/eui/src/global_styling/variables/animations';
6574
+ export const animation_speed: _EuiThemeAnimationSpeeds;
6575
+ export const animation_ease: _EuiThemeAnimationEasings;
6576
+ export const animation: _EuiThemeAnimation;
6577
+
6578
+ }
6579
+ declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_size' {
6580
+ import { _EuiThemeBase, _EuiThemeSizes } from '@elastic/eui/src/global_styling/variables';
6581
+ export const base: _EuiThemeBase;
6582
+ export const size: _EuiThemeSizes;
6583
+
6584
+ }
6585
+ declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_borders' {
6586
+ import { _EuiThemeBorder } from '@elastic/eui/src/global_styling/variables';
6587
+ export const border: _EuiThemeBorder;
6588
+
6589
+ }
6590
+ declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_levels' {
6591
+ import { _EuiThemeLevels } from '@elastic/eui/src/global_styling/variables';
6592
+ export const levels: _EuiThemeLevels;
6593
+
6594
+ }
6595
+ declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_typography' {
6596
+ import { _EuiThemeFont, _EuiThemeFontBase, _EuiThemeFontScales, _EuiThemeFontWeights } from '@elastic/eui/src/global_styling/variables/typography';
6597
+ export const fontScale: _EuiThemeFontScales;
6598
+ export const fontBase: _EuiThemeFontBase;
6599
+ export const fontWeight: _EuiThemeFontWeights;
6600
+ export const font: _EuiThemeFont;
6601
+
6602
+ }
6603
+ declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_states' {
6604
+ import { _EuiThemeFocus } from '@elastic/eui/src/global_styling/variables/states';
6605
+ export const focus: _EuiThemeFocus;
6606
+
6607
+ }
6608
+ declare module '@elastic/eui/src/themes/amsterdam/theme' {
6609
+ import { EuiThemeShape } from '@elastic/eui/src/services/theme/types';
6610
+ export const AMSTERDAM_NAME_KEY = "EUI_THEME_AMSTERDAM";
6611
+ export const euiThemeAmsterdam: EuiThemeShape;
6612
+ export const EuiThemeAmsterdam: {
6613
+ model: EuiThemeShape;
6614
+ root: EuiThemeShape;
6615
+ key: string;
6616
+ };
6617
+
6618
+ }
6619
+ declare module '@elastic/eui/src/services/theme/context' {
6620
+
6621
+ import { EuiThemeColorModeStandard, EuiThemeSystem, EuiThemeComputed } from '@elastic/eui/src/services/theme/types';
6622
+ export const EuiSystemContext: import("react").Context<EuiThemeSystem<{}>>;
6623
+ export const EuiModificationsContext: import("react").Context<import ("@elastic/eui").RecursivePartial<import ("@elastic/eui/src/services/theme/types").EuiThemeShape>>;
6624
+ export const EuiColorModeContext: import("react").Context<EuiThemeColorModeStandard>;
6625
+ export const EuiThemeContext: import("react").Context<EuiThemeComputed<{}>>;
6626
+
6627
+ }
6628
+ declare module '@elastic/eui/src/services/theme/provider' {
6629
+ import React, { PropsWithChildren } from 'react';
6630
+ import { EuiThemeColorMode, EuiThemeSystem, EuiThemeModifications } from '@elastic/eui/src/services/theme/types';
6631
+ export interface EuiThemeProviderProps<T> {
6632
+ theme?: EuiThemeSystem<T>;
6633
+ colorMode?: EuiThemeColorMode;
6634
+ modify?: EuiThemeModifications<T>;
6635
+ children: any;
6636
+ }
6637
+ export const EuiThemeProvider: <T extends {} = {}>({ theme: _system, colorMode: _colorMode, modify: _modifications, children, }: React.PropsWithChildren<EuiThemeProviderProps<T>>) => JSX.Element;
6638
+
6639
+ }
6640
+ declare module '@elastic/eui/src/services/theme' {
6641
+ export { EuiSystemContext, EuiThemeContext, EuiModificationsContext, EuiColorModeContext, } from '@elastic/eui/src/services/theme/context';
6642
+ export type { UseEuiTheme, WithEuiThemeProps } from '@elastic/eui/src/services/theme/hooks';
6643
+ export { useEuiTheme, withEuiTheme } from '@elastic/eui/src/services/theme/hooks';
6644
+ export type { EuiThemeProviderProps } from '@elastic/eui/src/services/theme/provider';
6645
+ export { EuiThemeProvider } from '@elastic/eui/src/services/theme/provider';
6646
+ export { buildTheme, computed, isInverseColorMode, getColorMode, getComputed, getOn, mergeDeep, setOn, Computed, } from '@elastic/eui/src/services/theme/utils';
6647
+ export type { ComputedThemeShape, EuiThemeColorMode, EuiThemeColorModeStandard, EuiThemeComputed, EuiThemeModifications, EuiThemeShape, EuiThemeSystem, } from '@elastic/eui/src/services/theme/types';
6648
+ export { COLOR_MODES_STANDARD } from '@elastic/eui/src/services/theme/types';
6649
+
6650
+ }
6651
+ declare module '@elastic/eui/src/services/throttle' {
6652
+ export const throttle: (fn: (...args: any[]) => void, wait?: number) => (...args: any[]) => void;
6653
+
6654
+ }
6655
+ declare module '@elastic/eui/src/services/breakpoint/current_breakpoint' {
6656
+ import React, { FunctionComponent } from 'react';
6657
+ import { _EuiThemeBreakpoint } from '@elastic/eui/src/global_styling/variables/breakpoint'; type CurrentEuiBreakpoint = _EuiThemeBreakpoint | undefined;
6658
+ export const CurrentEuiBreakpointContext: React.Context<CurrentEuiBreakpoint>;
6659
+ /**
6660
+ * Top level provider (nested within EuiProvider) which provides a single
6661
+ * resize listener that returns the current breakpoint based on window width
6662
+ */
6663
+ export const CurrentEuiBreakpointProvider: FunctionComponent;
6664
+ export {};
6665
+
6666
+ }
6667
+ declare module '@elastic/eui/src/services/breakpoint/current_breakpoint_hook' {
6668
+ /**
6669
+ * Hook util / syntactical sugar for useContext()
6670
+ *
6671
+ * This hook is in its own separate file to make mocking it
6672
+ * as a testenv easy for Jest unit tests
6673
+ */
6674
+ export const useCurrentEuiBreakpoint: () => "s" | "xs" | "m" | "l" | "xl" | undefined;
6675
+
6676
+ }
6677
+ declare module '@elastic/eui/src/services/breakpoint/useIsWithinBreakpoints' {
6678
+ import { _EuiThemeBreakpoint } from '@elastic/eui/src/global_styling/variables/breakpoint';
6679
+ /**
6680
+ * Given the current window.innerWidth and an array of breakpoint keys,
6681
+ * this hook stores state and returns true or false if the window.innerWidth
6682
+ * falls within any of the named breakpoints.
6683
+ *
6684
+ * @param {_EuiThemeBreakpoint[]} sizes An array of named EUI breakpoints
6685
+ * @param {boolean} isResponsive Some components have the option to turn off responsive behavior.
6686
+ * Since hooks can't be called conditionally, it's easier to pass the condition into the hook
6687
+ * @returns {boolean} Returns `true` if current breakpoint name is included in `sizes`
6688
+ */
6689
+ export const useIsWithinBreakpoints: (sizes: _EuiThemeBreakpoint[], isResponsive?: boolean) => boolean;
6698
6690
 
6699
6691
  }
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';
6692
+ declare module '@elastic/eui/src/services/breakpoint' {
6693
+ export * from '@elastic/eui/src/services/breakpoint/breakpoint';
6694
+ export * from '@elastic/eui/src/services/breakpoint/current_breakpoint';
6695
+ export * from '@elastic/eui/src/services/breakpoint/current_breakpoint_hook';
6696
+ export * from '@elastic/eui/src/services/breakpoint/useIsWithinBreakpoints';
6717
6697
 
6718
6698
  }
6719
6699
  declare module '@elastic/eui/src/services/color_picker/color_picker' {
@@ -7094,6 +7074,54 @@ declare module '@elastic/eui/src/services/window_event/window_event' {
7094
7074
  declare module '@elastic/eui/src/services/window_event' {
7095
7075
  export { EuiWindowEvent } from '@elastic/eui/src/services/window_event/window_event';
7096
7076
 
7077
+ }
7078
+ declare module '@elastic/eui/src/services/hooks/useUpdateEffect' {
7079
+ export const useUpdateEffect: (effect: Function, deps: unknown[]) => void;
7080
+
7081
+ }
7082
+ declare module '@elastic/eui/src/services/hooks/useDependentState' {
7083
+
7084
+ export function useDependentState<T>(valueFn: (previousState: undefined | T) => T, deps: unknown[]): readonly [T, import("react").Dispatch<import("react").SetStateAction<T>>];
7085
+
7086
+ }
7087
+ declare module '@elastic/eui/src/services/hooks/useCombinedRefs' {
7088
+ import { MutableRefObject, Ref } from 'react';
7089
+ export const useCombinedRefs: <T>(refs: (Ref<T> | MutableRefObject<T | undefined> | undefined)[]) => (node: T) => void;
7090
+
7091
+ }
7092
+ declare module '@elastic/eui/src/services/hooks/useForceRender' {
7093
+ export const useForceRender: () => () => void;
7094
+
7095
+ }
7096
+ declare module '@elastic/eui/src/services/hooks/useLatest' {
7097
+ import { MutableRefObject } from 'react';
7098
+ /**
7099
+ * Wraps the given `value` into a `MutableRefObject` and keeps the `current`
7100
+ * value up-to-date on every render cycle.
7101
+ */
7102
+ export function useLatest<Value>(value: Value): MutableRefObject<Value | null>;
7103
+
7104
+ }
7105
+ declare module '@elastic/eui/src/services/hooks/useMouseMove' {
7106
+ import { MouseEvent, TouchEvent } from 'react';
7107
+ export function isMouseEvent<T = HTMLDivElement>(event: MouseEvent<T> | TouchEvent<T>): event is MouseEvent<T>;
7108
+ export function useMouseMove<T = HTMLDivElement>(handleChange: (location: {
7109
+ x: number;
7110
+ y: number;
7111
+ }, isFirstInteraction?: boolean) => void, interactionConditional?: any): [
7112
+ (e: MouseEvent<T>) => void,
7113
+ (e: MouseEvent<T> | TouchEvent<T>, isFirstInteraction?: boolean) => void
7114
+ ];
7115
+
7116
+ }
7117
+ declare module '@elastic/eui/src/services/hooks' {
7118
+ export * from '@elastic/eui/src/services/hooks/useDependentState';
7119
+ export * from '@elastic/eui/src/services/hooks/useCombinedRefs';
7120
+ export * from '@elastic/eui/src/services/hooks/useForceRender';
7121
+ export * from '@elastic/eui/src/services/hooks/useLatest';
7122
+ export * from '@elastic/eui/src/services/hooks/useMouseMove';
7123
+ export * from '@elastic/eui/src/services/hooks/useUpdateEffect';
7124
+
7097
7125
  }
7098
7126
  declare module '@elastic/eui/src/services' {
7099
7127
  import * as keys from '@elastic/eui/src/services/keys';
@@ -7102,7 +7130,7 @@ declare module '@elastic/eui/src/services' {
7102
7130
  export type { HorizontalAlignment } from '@elastic/eui/src/services/alignment';
7103
7131
  export { LEFT_ALIGNMENT, RIGHT_ALIGNMENT, CENTER_ALIGNMENT } from '@elastic/eui/src/services/alignment';
7104
7132
  export type { EuiBreakpointSize } from '@elastic/eui/src/services/breakpoint';
7105
- export { BREAKPOINTS, BREAKPOINT_KEYS, getBreakpoint, isWithinBreakpoints, isWithinMaxBreakpoint, isWithinMinBreakpoint, } from '@elastic/eui/src/services/breakpoint';
7133
+ export { BREAKPOINTS, BREAKPOINT_KEYS, getBreakpoint, isWithinBreakpoints, useIsWithinBreakpoints, isWithinMaxBreakpoint, isWithinMinBreakpoint, CurrentEuiBreakpointContext, CurrentEuiBreakpointProvider, useCurrentEuiBreakpoint, } from '@elastic/eui/src/services/breakpoint';
7106
7134
  export type { HSV } from '@elastic/eui/src/services/color';
7107
7135
  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
7136
  export type { EuiSetColorMethod } from '@elastic/eui/src/services/color_picker';
@@ -7549,13 +7577,12 @@ declare module '@elastic/eui/src/components/badge/beta_badge/beta_badge' {
7549
7577
  title?: string;
7550
7578
  }> & {
7551
7579
  label: ReactNode;
7552
- };
7553
- interface LabelAsString {
7580
+ }; type LabelAsString = {
7554
7581
  /**
7555
7582
  * One word label like "Beta" or "Lab"
7556
7583
  */
7557
7584
  label: string;
7558
- } type BadgeProps = {
7585
+ }; type BadgeProps = {
7559
7586
  /**
7560
7587
  * Supply an icon type if the badge should just be an icon
7561
7588
  */
@@ -7808,16 +7835,36 @@ declare module '@elastic/eui/src/components/link' {
7808
7835
  export { EuiLink } from '@elastic/eui/src/components/link/link';
7809
7836
 
7810
7837
  }
7811
- declare module '@elastic/eui/src/components/breadcrumbs/breadcrumbs' {
7812
- import { AriaAttributes, FunctionComponent, HTMLAttributes, MouseEventHandler, ReactNode } from 'react';
7838
+ declare module '@elastic/eui/src/components/breadcrumbs/breadcrumb.styles' {
7839
+ import { UseEuiTheme } from '@elastic/eui/src/services';
7840
+ export const euiBreadcrumbStyles: (euiThemeContext: UseEuiTheme) => {
7841
+ euiBreadcrumb: import("@emotion/utils").SerializedStyles;
7842
+ isTruncated: import("@emotion/utils").SerializedStyles;
7843
+ isCollapsed: import("@emotion/utils").SerializedStyles;
7844
+ page: import("@emotion/utils").SerializedStyles;
7845
+ application: import("@emotion/utils").SerializedStyles;
7846
+ };
7847
+ export const euiBreadcrumbContentStyles: (euiThemeContext: UseEuiTheme) => {
7848
+ euiBreadcrumb__content: import("@emotion/utils").SerializedStyles;
7849
+ isTruncated: import("@emotion/utils").SerializedStyles;
7850
+ isTruncatedLast: import("@emotion/utils").SerializedStyles;
7851
+ page: import("@emotion/utils").SerializedStyles;
7852
+ application: import("@emotion/utils").SerializedStyles;
7853
+ applicationStyles: {
7854
+ onlyChild: import("@emotion/utils").SerializedStyles;
7855
+ firstChild: import("@emotion/utils").SerializedStyles;
7856
+ lastChild: import("@emotion/utils").SerializedStyles;
7857
+ };
7858
+ };
7859
+
7860
+ }
7861
+ declare module '@elastic/eui/src/components/breadcrumbs/breadcrumb' {
7862
+ import { FunctionComponent, HTMLAttributes, AriaAttributes, MouseEventHandler, ReactNode } from 'react';
7813
7863
  import { CommonProps } from '@elastic/eui/src/components/common';
7814
7864
  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 & {
7865
+ export type EuiBreadcrumbProps = Omit<HTMLAttributes<HTMLElement>, 'color' | 'aria-current'> & CommonProps & {
7820
7866
  href?: string;
7867
+ rel?: string;
7821
7868
  onClick?: MouseEventHandler<HTMLAnchorElement>;
7822
7869
  /**
7823
7870
  * Visible label of the breadcrumb
@@ -7835,6 +7882,34 @@ declare module '@elastic/eui/src/components/breadcrumbs/breadcrumbs' {
7835
7882
  * Override the existing `aria-current` which defaults to `page` for the last breadcrumb
7836
7883
  */
7837
7884
  'aria-current'?: AriaAttributes['aria-current'];
7885
+ }; type _EuiBreadcrumbProps = {
7886
+ type: 'page' | 'application';
7887
+ isFirstBreadcrumb?: boolean;
7888
+ isLastBreadcrumb?: boolean;
7889
+ isOnlyBreadcrumb?: boolean;
7890
+ highlightLastBreadcrumb?: boolean;
7891
+ } & Pick<EuiBreadcrumbProps, 'truncate'>;
7892
+ export const EuiBreadcrumb: FunctionComponent<HTMLAttributes<HTMLLIElement> & _EuiBreadcrumbProps>;
7893
+ export const EuiBreadcrumbContent: FunctionComponent<EuiBreadcrumbProps & _EuiBreadcrumbProps>;
7894
+ export const EuiBreadcrumbCollapsed: FunctionComponent<_EuiBreadcrumbProps>;
7895
+ export {};
7896
+
7897
+ }
7898
+ declare module '@elastic/eui/src/components/breadcrumbs/breadcrumbs.styles' {
7899
+ import { UseEuiTheme } from '@elastic/eui/src/services';
7900
+ export const euiBreadcrumbsListStyles: (euiThemeContext: UseEuiTheme) => {
7901
+ euiBreadcrumbs__list: import("@emotion/utils").SerializedStyles;
7902
+ isTruncated: import("@emotion/utils").SerializedStyles;
7903
+ };
7904
+
7905
+ }
7906
+ declare module '@elastic/eui/src/components/breadcrumbs/breadcrumbs' {
7907
+ import { FunctionComponent } from 'react';
7908
+ import { CommonProps, ExclusiveUnion } from '@elastic/eui/src/components/common';
7909
+ import { EuiBreakpointSize } from '@elastic/eui/src/services';
7910
+ import { EuiBreadcrumbProps } from '@elastic/eui/src/components/breadcrumbs/breadcrumb';
7911
+ export type EuiBreadcrumbResponsiveMaxCount = {
7912
+ [key in EuiBreakpointSize]?: number;
7838
7913
  };
7839
7914
  export type EuiBreadcrumbsProps = CommonProps & {
7840
7915
  /**
@@ -7861,13 +7936,30 @@ declare module '@elastic/eui/src/components/breadcrumbs/breadcrumbs' {
7861
7936
  /**
7862
7937
  * The array of individual #EuiBreadcrumb items
7863
7938
  */
7864
- breadcrumbs: EuiBreadcrumb[];
7939
+ breadcrumbs: EuiBreadcrumbProps[];
7940
+ /**
7941
+ * Determines breadcrumbs appearance, with `page` being the default styling.
7942
+ * Application breadcrumbs should only be once per page, in (e.g.) EuiHeader
7943
+ */
7944
+ type?: 'page' | 'application';
7945
+ /**
7946
+ * Whether the last breadcrumb should visually (and accessibly, to screen readers)
7947
+ * be highlighted as the current page. Defaults to true.
7948
+ */
7949
+ lastBreadcrumbIsCurrentPage?: boolean;
7865
7950
  };
7866
7951
  export const EuiBreadcrumbs: FunctionComponent<EuiBreadcrumbsProps>;
7952
+ export const useResponsiveMax: (responsive: EuiBreadcrumbsProps['responsive'], max: EuiBreadcrumbsProps['max']) => number | null | undefined; type _EuiBreadcrumbCollapsedObj = {
7953
+ isCollapsedButton: true;
7954
+ overflowBreadcrumbs: EuiBreadcrumbProps[];
7955
+ }; type _EuiBreadcrumbsObjs = Array<ExclusiveUnion<EuiBreadcrumbProps, _EuiBreadcrumbCollapsedObj>>;
7956
+ export const limitBreadcrumbs: (breadcrumbs: EuiBreadcrumbsProps['breadcrumbs'], max: number) => _EuiBreadcrumbsObjs;
7957
+ export {};
7867
7958
 
7868
7959
  }
7869
7960
  declare module '@elastic/eui/src/components/breadcrumbs' {
7870
- export type { EuiBreadcrumb, EuiBreadcrumbsProps, EuiBreadcrumbResponsiveMaxCount, } from '@elastic/eui/src/components/breadcrumbs/breadcrumbs';
7961
+ export type { EuiBreadcrumbProps as EuiBreadcrumb } from '@elastic/eui/src/components/breadcrumbs/breadcrumb';
7962
+ export type { EuiBreadcrumbsProps, EuiBreadcrumbResponsiveMaxCount, } from '@elastic/eui/src/components/breadcrumbs/breadcrumbs';
7871
7963
  export { EuiBreadcrumbs } from '@elastic/eui/src/components/breadcrumbs/breadcrumbs';
7872
7964
 
7873
7965
  }
@@ -9789,14 +9881,17 @@ declare module '@elastic/eui/src/components/datagrid/utils/sorting' {
9789
9881
  }
9790
9882
  declare module '@elastic/eui/src/components/datagrid/utils/row_heights' {
9791
9883
  import { CSSProperties, MutableRefObject } from 'react';
9792
- import { EuiDataGridStyleCellPaddings, EuiDataGridStyle, EuiDataGridRowHeightOption, EuiDataGridRowHeightsOptions, EuiDataGridColumn, ImperativeGridApi } from '@elastic/eui/src/components/datagrid/data_grid_types';
9884
+ import { GridOnItemsRenderedProps } from 'react-window';
9885
+ import { EuiDataGridColumn, EuiDataGridRowHeightOption, EuiDataGridRowHeightsOptions, EuiDataGridScrollAnchorRow, EuiDataGridStyle, EuiDataGridStyleCellPaddings, ImperativeGridApi } from '@elastic/eui/src/components/datagrid/data_grid_types';
9793
9886
  export const cellPaddingsMap: Record<EuiDataGridStyleCellPaddings, number>;
9794
9887
  export const AUTO_HEIGHT = "auto";
9795
9888
  export const DEFAULT_ROW_HEIGHT = 34;
9796
9889
  export class RowHeightUtils {
9797
9890
  private gridRef;
9891
+ private outerGridElementRef;
9892
+ private gridItemsRenderedRef;
9798
9893
  private rerenderGridBodyRef;
9799
- constructor(gridRef: MutableRefObject<ImperativeGridApi | null>, rerenderGridBodyRef: MutableRefObject<(() => void) | null>);
9894
+ constructor(gridRef: MutableRefObject<ImperativeGridApi | null>, outerGridElementRef: MutableRefObject<HTMLDivElement | null>, gridItemsRenderedRef: MutableRefObject<GridOnItemsRenderedProps | null>, rerenderGridBodyRef: MutableRefObject<(() => void) | null>);
9800
9895
  getRowHeightOption(rowIndex: number, rowHeightsOptions?: EuiDataGridRowHeightsOptions): EuiDataGridRowHeightOption | undefined;
9801
9896
  isRowHeightOverride(rowIndex: number, rowHeightsOptions?: EuiDataGridRowHeightsOptions): boolean;
9802
9897
  getCalculatedHeight(heightOption: EuiDataGridRowHeightOption, defaultHeight: number, rowIndex?: number, isRowHeightOverride?: boolean): number;
@@ -9823,13 +9918,16 @@ declare module '@elastic/eui/src/components/datagrid/utils/row_heights' {
9823
9918
  pruneHiddenColumnHeights(visibleColumns: EuiDataGridColumn[]): void;
9824
9919
  resetRow(visibleRowIndex: number): void;
9825
9920
  resetGrid(): void;
9921
+ compensateForLayoutShift(rowIndex: number, verticalLayoutShift: number, anchorRow: EuiDataGridScrollAnchorRow): void;
9826
9922
  }
9827
9923
  /**
9828
9924
  * Hook for instantiating RowHeightUtils, setting internal class vars,
9829
9925
  * and setting up various row-height-related side effects
9830
9926
  */
9831
- export const useRowHeightUtils: ({ gridRef, gridStyles, columns, rowHeightsOptions, }: {
9927
+ export const useRowHeightUtils: ({ gridRef, outerGridElementRef, gridItemsRenderedRef, gridStyles, columns, rowHeightsOptions, }: {
9832
9928
  gridRef: MutableRefObject<ImperativeGridApi | null>;
9929
+ outerGridElementRef: MutableRefObject<HTMLDivElement | null>;
9930
+ gridItemsRenderedRef: MutableRefObject<GridOnItemsRenderedProps | null>;
9833
9931
  gridStyles: EuiDataGridStyle;
9834
9932
  columns: EuiDataGridColumn[];
9835
9933
  rowHeightsOptions?: EuiDataGridRowHeightsOptions | undefined;
@@ -9844,27 +9942,18 @@ declare module '@elastic/eui/src/components/datagrid/utils/row_heights' {
9844
9942
  };
9845
9943
 
9846
9944
  }
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';
9945
+ declare module '@elastic/eui/src/components/token/token_types' {
9946
+ import { HTMLAttributes } from 'react';
9862
9947
  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[];
9948
+ import { IconType } from '@elastic/eui/src/components/icon';
9949
+ export const SIZES: readonly ["xs", "s", "m", "l"];
9950
+ export type TokenSize = typeof SIZES[number];
9951
+ export const SHAPES: readonly ["circle", "square", "rectangle"];
9952
+ export type TokenShape = typeof SHAPES[number];
9953
+ export const FILLS: readonly ["light", "dark", "none"];
9954
+ export type TokenFill = typeof FILLS[number];
9955
+ export const COLORS: readonly ["euiColorVis0", "euiColorVis1", "euiColorVis2", "euiColorVis3", "euiColorVis4", "euiColorVis5", "euiColorVis6", "euiColorVis7", "euiColorVis8", "euiColorVis9", "gray"];
9956
+ export type TokenColor = typeof COLORS[number];
9868
9957
  export interface TokenProps {
9869
9958
  /**
9870
9959
  * An EUI icon type
@@ -9872,8 +9961,8 @@ declare module '@elastic/eui/src/components/token/token' {
9872
9961
  iconType: IconType;
9873
9962
  /**
9874
9963
  * 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`
9964
+ * Or supply your own HEX color. The `fill='light'` (lightened background) will always be overridden by `fill='dark'` (solid background).
9965
+ * Default: `gray` for glyphs or one of the vis colors for prefab token types
9877
9966
  */
9878
9967
  color?: TokenColor | string;
9879
9968
  /**
@@ -9899,13 +9988,61 @@ declare module '@elastic/eui/src/components/token/token' {
9899
9988
  'aria-describedby'?: string;
9900
9989
  }
9901
9990
  export type EuiTokenProps = CommonProps & TokenProps & Omit<HTMLAttributes<HTMLSpanElement>, 'title'>;
9991
+
9992
+ }
9993
+ declare module '@elastic/eui/src/components/token/token_map' {
9994
+ import type { TokenProps } from '@elastic/eui/src/components/token/token_types';
9995
+ 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';
9996
+ /**
9997
+ * Most of the style combinations for tokens are semi-arbitrary. However, there was an effort
9998
+ * to use the square shape for more common token types like string and number. Reserving the
9999
+ * circle shape for more uncommon token types so they grab attention.
10000
+ */
10001
+ export const TOKEN_MAP: {
10002
+ [mapType in EuiTokenMapType]: Omit<TokenProps, 'iconType'>;
10003
+ };
10004
+
10005
+ }
10006
+ declare module '@elastic/eui/src/components/token/token.styles' {
10007
+ import { UseEuiTheme } from '@elastic/eui/src/services';
10008
+ import type { TokenFill } from '@elastic/eui/src/components/token/token_types';
10009
+ export const euiTokenStyles: ({ euiTheme, colorMode }: UseEuiTheme, fill: TokenFill) => {
10010
+ euiToken: import("@emotion/utils").SerializedStyles;
10011
+ circle: import("@emotion/utils").SerializedStyles;
10012
+ square: import("@emotion/utils").SerializedStyles;
10013
+ rectangle: import("@emotion/utils").SerializedStyles;
10014
+ xs: import("@emotion/utils").SerializedStyles;
10015
+ s: import("@emotion/utils").SerializedStyles;
10016
+ m: import("@emotion/utils").SerializedStyles;
10017
+ l: import("@emotion/utils").SerializedStyles;
10018
+ euiColorVis0: import("@emotion/utils").SerializedStyles;
10019
+ euiColorVis1: import("@emotion/utils").SerializedStyles;
10020
+ euiColorVis2: import("@emotion/utils").SerializedStyles;
10021
+ euiColorVis3: import("@emotion/utils").SerializedStyles;
10022
+ euiColorVis4: import("@emotion/utils").SerializedStyles;
10023
+ euiColorVis5: import("@emotion/utils").SerializedStyles;
10024
+ euiColorVis6: import("@emotion/utils").SerializedStyles;
10025
+ euiColorVis7: import("@emotion/utils").SerializedStyles;
10026
+ euiColorVis8: import("@emotion/utils").SerializedStyles;
10027
+ euiColorVis9: import("@emotion/utils").SerializedStyles;
10028
+ gray: import("@emotion/utils").SerializedStyles;
10029
+ customColor: import("@emotion/utils").SerializedStyles;
10030
+ light: import("@emotion/utils").SerializedStyles;
10031
+ dark: import("@emotion/utils").SerializedStyles;
10032
+ none: import("@emotion/utils").SerializedStyles;
10033
+ };
10034
+
10035
+ }
10036
+ declare module '@elastic/eui/src/components/token/token' {
10037
+ import { FunctionComponent } from 'react';
10038
+ import type { EuiTokenProps } from '@elastic/eui/src/components/token/token_types';
9902
10039
  export const EuiToken: FunctionComponent<EuiTokenProps>;
9903
- export {};
9904
10040
 
9905
10041
  }
9906
10042
  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';
10043
+ export type { EuiTokenProps } from '@elastic/eui/src/components/token/token_types';
10044
+ export { SIZES as TOKEN_SIZES, SHAPES as TOKEN_SHAPES, COLORS as TOKEN_COLORS, } from '@elastic/eui/src/components/token/token_types';
10045
+ export { EuiToken } from '@elastic/eui/src/components/token/token';
9909
10046
 
9910
10047
  }
9911
10048
  declare module '@elastic/eui/src/components/datagrid/data_grid_types' {
@@ -10687,6 +10824,7 @@ declare module '@elastic/eui/src/components/datagrid/data_grid_types' {
10687
10824
  width: number;
10688
10825
  }
10689
10826
  export type EuiDataGridOnColumnResizeHandler = (data: EuiDataGridOnColumnResizeData) => void;
10827
+ export type EuiDataGridScrollAnchorRow = 'start' | 'center' | undefined;
10690
10828
  export type EuiDataGridRowHeightOption = number | 'auto' | ExclusiveUnion<{
10691
10829
  lineCount: number;
10692
10830
  }, {
@@ -10713,6 +10851,13 @@ declare module '@elastic/eui/src/components/datagrid/data_grid_types' {
10713
10851
  * Can be used for, e.g. storing user `rowHeightsOptions` in a local storage object.
10714
10852
  */
10715
10853
  onChange?: (rowHeightsOptions: EuiDataGridRowHeightsOptions) => void;
10854
+ /**
10855
+ * Optional indicator of the row that should be used as an anchor for vertical layout shift compensation.
10856
+ * When set to 'start' or 'center', the topmost or middle visible row will try
10857
+ * to compensate for changes in their top offsets by adjusting the grid's scroll
10858
+ * position.
10859
+ */
10860
+ scrollAnchorRow?: EuiDataGridScrollAnchorRow;
10716
10861
  }
10717
10862
  export interface EuiDataGridRowManager {
10718
10863
  getRow(args: {
@@ -12401,7 +12546,7 @@ declare module '@elastic/eui/src/components/date_picker/date_picker_range' {
12401
12546
  }
12402
12547
  declare module '@elastic/eui/src/components/responsive/hide_for' {
12403
12548
  import { ReactNode, FunctionComponent } from 'react';
12404
- import { EuiBreakpointSize } from '@elastic/eui/src/services/breakpoint';
12549
+ import { EuiBreakpointSize } from '@elastic/eui/src/services';
12405
12550
  export type EuiHideForBreakpoints = EuiBreakpointSize;
12406
12551
  export interface EuiHideForProps {
12407
12552
  /**
@@ -12419,7 +12564,7 @@ declare module '@elastic/eui/src/components/responsive/hide_for' {
12419
12564
  }
12420
12565
  declare module '@elastic/eui/src/components/responsive/show_for' {
12421
12566
  import { ReactNode, FunctionComponent } from 'react';
12422
- import { EuiBreakpointSize } from '@elastic/eui/src/services/breakpoint';
12567
+ import { EuiBreakpointSize } from '@elastic/eui/src/services';
12423
12568
  export type EuiShowForBreakpoints = EuiBreakpointSize;
12424
12569
  export interface EuiShowForProps {
12425
12570
  /**
@@ -12784,24 +12929,9 @@ declare module '@elastic/eui/src/components/delay_render' {
12784
12929
  export { EuiDelayRender } from '@elastic/eui/src/components/delay_render/delay_render';
12785
12930
 
12786
12931
  }
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';
12932
+ declare module '@elastic/eui/src/components/description_list/description_list_types' {
12933
+ import { HTMLAttributes, ReactNode } from 'react';
12801
12934
  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
12935
  export interface EuiDescriptionListProps {
12806
12936
  listItems?: Array<{
12807
12937
  title: NonNullable<ReactNode>;
@@ -12819,7 +12949,7 @@ declare module '@elastic/eui/src/components/description_list/description_list' {
12819
12949
  * How should the content be styled, by default
12820
12950
  * this will emphasize the title
12821
12951
  */
12822
- textStyle?: EuiDescriptionListTextStyle;
12952
+ textStyle?: 'normal' | 'reverse';
12823
12953
  /**
12824
12954
  * How each item should be laid out
12825
12955
  */
@@ -12832,27 +12962,107 @@ declare module '@elastic/eui/src/components/description_list/description_list' {
12832
12962
  * Props object to be passed to `EuiDescriptionListDescription`
12833
12963
  */
12834
12964
  descriptionProps?: HTMLAttributes<HTMLElement> & CommonProps;
12835
- } const typesToClassNameMap: {
12836
- row: string;
12837
- inline: string;
12838
- column: string;
12839
- responsiveColumn: string;
12965
+ }
12966
+ export const TYPES: readonly ["row", "inline", "column", "responsiveColumn"];
12967
+ export type EuiDescriptionListType = typeof TYPES[number];
12968
+ export const ALIGNMENTS: readonly ["center", "left"];
12969
+ export type EuiDescriptionListAlignment = typeof ALIGNMENTS[number];
12970
+ export const TEXT_STYLES: readonly ["normal", "reverse"];
12971
+ export type EuiDescriptionListTextStyle = typeof TEXT_STYLES[number];
12972
+
12973
+ }
12974
+ declare module '@elastic/eui/src/components/description_list/description_list_title.styles' {
12975
+ import { UseEuiTheme } from '@elastic/eui/src/services';
12976
+ export const euiDescriptionListTitleStyles: (euiThemeContext: UseEuiTheme) => {
12977
+ euiDescriptionList__title: import("@emotion/utils").SerializedStyles;
12978
+ row: import("@emotion/utils").SerializedStyles;
12979
+ column: import("@emotion/utils").SerializedStyles;
12980
+ responsiveColumn: import("@emotion/utils").SerializedStyles;
12981
+ inline: import("@emotion/utils").SerializedStyles;
12982
+ fontStyles: {
12983
+ normal: import("@emotion/utils").SerializedStyles;
12984
+ reverse: import("@emotion/utils").SerializedStyles;
12985
+ compressed: import("@emotion/utils").SerializedStyles;
12986
+ };
12987
+ inlineStyles: {
12988
+ normal: import("@emotion/utils").SerializedStyles;
12989
+ compressed: import("@emotion/utils").SerializedStyles;
12990
+ };
12991
+ right: import("@emotion/utils").SerializedStyles;
12840
12992
  };
12841
- export const TYPES: ("row" | "inline" | "column" | "responsiveColumn")[]; const alignmentsToClassNameMap: {
12842
- center: string;
12843
- left: string;
12993
+
12994
+ }
12995
+ declare module '@elastic/eui/src/components/description_list/description_list_context' {
12996
+
12997
+ import { EuiDescriptionListProps } from '@elastic/eui/src/components/description_list/description_list_types'; type EuiDescriptionListContextValues = Required<Pick<EuiDescriptionListProps, 'type' | 'textStyle' | 'align'>> & {
12998
+ compressed?: EuiDescriptionListProps['compressed'];
12999
+ };
13000
+ export const contextDefaults: EuiDescriptionListContextValues;
13001
+ export const EuiDescriptionListContext: import("react").Context<EuiDescriptionListContextValues>;
13002
+ export {};
13003
+
13004
+ }
13005
+ declare module '@elastic/eui/src/components/description_list/description_list_title' {
13006
+ import { HTMLAttributes, FunctionComponent } from 'react';
13007
+ import { CommonProps } from '@elastic/eui/src/components/common';
13008
+ interface EuiDescriptionListTitleProps extends CommonProps, HTMLAttributes<HTMLElement> {
13009
+ }
13010
+ export const EuiDescriptionListTitle: FunctionComponent<EuiDescriptionListTitleProps>;
13011
+ export {};
13012
+
13013
+ }
13014
+ declare module '@elastic/eui/src/components/description_list/description_list_description.styles' {
13015
+ import { UseEuiTheme } from '@elastic/eui/src/services';
13016
+ export const euiDescriptionListDescriptionStyles: (euiThemeContext: UseEuiTheme) => {
13017
+ euiDescriptionList__description: import("@emotion/utils").SerializedStyles;
13018
+ row: import("@emotion/utils").SerializedStyles;
13019
+ column: import("@emotion/utils").SerializedStyles;
13020
+ responsiveColumn: import("@emotion/utils").SerializedStyles;
13021
+ inline: import("@emotion/utils").SerializedStyles;
13022
+ fontStyles: {
13023
+ normal: import("@emotion/utils").SerializedStyles;
13024
+ reverse: import("@emotion/utils").SerializedStyles;
13025
+ compressed: import("@emotion/utils").SerializedStyles;
13026
+ };
13027
+ inlineStyles: {
13028
+ compressed: import("@emotion/utils").SerializedStyles;
13029
+ normal: import("@emotion/utils").SerializedStyles;
13030
+ };
13031
+ left: import("@emotion/utils").SerializedStyles;
12844
13032
  };
12845
- export const ALIGNMENTS: ("left" | "center")[]; const textStylesToClassNameMap: {
12846
- normal: string;
12847
- reverse: string;
13033
+
13034
+ }
13035
+ declare module '@elastic/eui/src/components/description_list/description_list_description' {
13036
+ import { HTMLAttributes, FunctionComponent } from 'react';
13037
+ import { CommonProps } from '@elastic/eui/src/components/common';
13038
+ interface EuiDescriptionListDescriptionProps extends CommonProps, HTMLAttributes<HTMLElement> {
13039
+ }
13040
+ export const EuiDescriptionListDescription: FunctionComponent<EuiDescriptionListDescriptionProps>;
13041
+ export {};
13042
+
13043
+ }
13044
+ declare module '@elastic/eui/src/components/description_list/description_list.styles' {
13045
+ import { UseEuiTheme } from '@elastic/eui/src/services';
13046
+ export const euiDescriptionListStyles: (euiThemeContext: UseEuiTheme) => {
13047
+ euiDescriptionList: import("@emotion/utils").SerializedStyles;
13048
+ row: import("@emotion/utils").SerializedStyles;
13049
+ inline: import("@emotion/utils").SerializedStyles;
13050
+ column: import("@emotion/utils").SerializedStyles;
13051
+ responsiveColumn: import("@emotion/utils").SerializedStyles;
13052
+ center: import("@emotion/utils").SerializedStyles;
13053
+ left: import("@emotion/utils").SerializedStyles;
12848
13054
  };
12849
- export const TEXT_STYLES: ("normal" | "reverse")[];
13055
+
13056
+ }
13057
+ declare module '@elastic/eui/src/components/description_list/description_list' {
13058
+ import { HTMLAttributes, FunctionComponent } from 'react';
13059
+ import { CommonProps } from '@elastic/eui/src/components/common';
13060
+ import { EuiDescriptionListProps } from '@elastic/eui/src/components/description_list/description_list_types';
12850
13061
  export const EuiDescriptionList: FunctionComponent<CommonProps & HTMLAttributes<HTMLDListElement> & EuiDescriptionListProps>;
12851
- export {};
12852
13062
 
12853
13063
  }
12854
13064
  declare module '@elastic/eui/src/components/description_list' {
12855
- export type { EuiDescriptionListProps } from '@elastic/eui/src/components/description_list/description_list';
13065
+ export type { EuiDescriptionListProps } from '@elastic/eui/src/components/description_list/description_list_types';
12856
13066
  export { EuiDescriptionList } from '@elastic/eui/src/components/description_list/description_list';
12857
13067
  export { EuiDescriptionListTitle } from '@elastic/eui/src/components/description_list/description_list_title';
12858
13068
  export { EuiDescriptionListDescription } from '@elastic/eui/src/components/description_list/description_list_description';
@@ -13331,6 +13541,13 @@ declare module '@elastic/eui/src/components/header/header_section' {
13331
13541
  export type { EuiHeaderSectionItemButtonProps } from '@elastic/eui/src/components/header/header_section/header_section_item_button';
13332
13542
  export { EuiHeaderSectionItemButton } from '@elastic/eui/src/components/header/header_section/header_section_item_button';
13333
13543
 
13544
+ }
13545
+ declare module '@elastic/eui/src/components/header/header_breadcrumbs/header_breadcrumbs.styles' {
13546
+ import { UseEuiTheme } from '@elastic/eui/src/services';
13547
+ export const euiHeaderBreadcrumbsStyles: ({ euiTheme }: UseEuiTheme) => {
13548
+ euiHeaderBreadcrumbs: import("@emotion/utils").SerializedStyles;
13549
+ };
13550
+
13334
13551
  }
13335
13552
  declare module '@elastic/eui/src/components/header/header_breadcrumbs/header_breadcrumbs' {
13336
13553
  import { FunctionComponent } from 'react';
@@ -16102,7 +16319,8 @@ declare module '@elastic/eui/src/components/selectable/selectable' {
16102
16319
  import { EuiSelectableOptionsListProps } from '@elastic/eui/src/components/selectable/selectable_list/selectable_list';
16103
16320
  import { EuiSelectableSearchProps } from '@elastic/eui/src/components/selectable/selectable_search/selectable_search';
16104
16321
  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<{
16322
+ export type EuiSelectableOnChangeEvent = KeyboardEvent | MouseEvent; type RequiredEuiSelectableOptionsListProps = Omit<EuiSelectableOptionsListProps, keyof typeof EuiSelectableList['defaultProps']>; type OptionalEuiSelectableOptionsListProps = Omit<EuiSelectableOptionsListProps, keyof RequiredEuiSelectableOptionsListProps>; type EuiSelectableOptionsListPropsWithDefaults = RequiredEuiSelectableOptionsListProps & Partial<OptionalEuiSelectableOptionsListProps>;
16323
+ export type EuiSelectableSearchableProps<T> = ExclusiveUnion<{
16106
16324
  searchable: false;
16107
16325
  }, {
16108
16326
  /**
@@ -16331,7 +16549,7 @@ declare module '@elastic/eui/src/components/selectable/selectable_templates' {
16331
16549
 
16332
16550
  }
16333
16551
  declare module '@elastic/eui/src/components/selectable' {
16334
- export type { EuiSelectableProps, EuiSelectableSearchableSearchProps, } from '@elastic/eui/src/components/selectable/selectable';
16552
+ export type { EuiSelectableProps, EuiSelectableSearchableProps, EuiSelectableSearchableSearchProps, } from '@elastic/eui/src/components/selectable/selectable';
16335
16553
  export { EuiSelectable } from '@elastic/eui/src/components/selectable/selectable';
16336
16554
  export type { EuiSelectableListProps, EuiSelectableListItemProps, EuiSelectableOptionsListProps, } from '@elastic/eui/src/components/selectable/selectable_list';
16337
16555
  export { EuiSelectableList, EuiSelectableListItem } from '@elastic/eui/src/components/selectable/selectable_list';
@@ -18286,12 +18504,33 @@ declare module '@elastic/eui/src/components/text_diff' {
18286
18504
  export type { EuiTextDiffProps } from '@elastic/eui/src/components/text_diff/text_diff';
18287
18505
  export { useEuiTextDiff } from '@elastic/eui/src/components/text_diff/text_diff';
18288
18506
 
18507
+ }
18508
+ declare module '@elastic/eui/src/components/toast/toast.styles' {
18509
+ import { UseEuiTheme } from '@elastic/eui/src/services';
18510
+ export const euiToastStyles: (euiThemeContext: UseEuiTheme) => {
18511
+ euiToast: import("@emotion/utils").SerializedStyles;
18512
+ euiToast__closeButton: import("@emotion/utils").SerializedStyles;
18513
+ primary: import("@emotion/utils").SerializedStyles;
18514
+ success: import("@emotion/utils").SerializedStyles;
18515
+ warning: import("@emotion/utils").SerializedStyles;
18516
+ danger: import("@emotion/utils").SerializedStyles;
18517
+ };
18518
+ export const euiToastHeaderStyles: (euiThemeContext: UseEuiTheme) => {
18519
+ euiToastHeader: import("@emotion/utils").SerializedStyles;
18520
+ euiToastHeader__icon: import("@emotion/utils").SerializedStyles;
18521
+ euiToastHeader__title: import("@emotion/utils").SerializedStyles;
18522
+ withBody: import("@emotion/utils").SerializedStyles;
18523
+ };
18524
+ export const euiToastBodyStyles: () => {
18525
+ euiToastBody: import("@emotion/utils").SerializedStyles;
18526
+ };
18527
+
18289
18528
  }
18290
18529
  declare module '@elastic/eui/src/components/toast/toast' {
18291
18530
  import { FunctionComponent, HTMLAttributes, ReactNode } from 'react';
18292
18531
  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[];
18532
+ import { IconType } from '@elastic/eui/src/components/icon';
18533
+ export const COLORS: readonly ["primary", "success", "warning", "danger"]; type ToastColor = typeof COLORS[number];
18295
18534
  export interface EuiToastProps extends CommonProps, Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
18296
18535
  title?: ReactNode;
18297
18536
  color?: ToastColor;
@@ -18319,6 +18558,23 @@ declare module '@elastic/eui/src/services/time/timer' {
18319
18558
  declare module '@elastic/eui/src/services/time' {
18320
18559
  export { Timer } from '@elastic/eui/src/services/time/timer';
18321
18560
 
18561
+ }
18562
+ declare module '@elastic/eui/src/components/toast/global_toast_list.styles' {
18563
+ import { UseEuiTheme } from '@elastic/eui/src/services';
18564
+ export const euiGlobalToastListStyles: (euiThemeContext: UseEuiTheme) => {
18565
+ /**
18566
+ * 1. Allow list to expand as items are added, but cap it at the screen height.
18567
+ * 2. Allow some padding for shadow
18568
+ */
18569
+ euiGlobalToastList: import("@emotion/utils").SerializedStyles;
18570
+ right: import("@emotion/utils").SerializedStyles;
18571
+ left: import("@emotion/utils").SerializedStyles;
18572
+ };
18573
+ export const euiGlobalToastListItemStyles: ({ euiTheme }: UseEuiTheme) => {
18574
+ euiGlobalToastListItem: import("@emotion/utils").SerializedStyles;
18575
+ dismissed: import("@emotion/utils").SerializedStyles;
18576
+ };
18577
+
18322
18578
  }
18323
18579
  declare module '@elastic/eui/src/components/toast/global_toast_list_item' {
18324
18580
  import { FunctionComponent, ReactElement } from 'react';
@@ -18334,9 +18590,8 @@ declare module '@elastic/eui/src/components/toast/global_toast_list_item' {
18334
18590
 
18335
18591
  }
18336
18592
  declare module '@elastic/eui/src/components/toast/global_toast_list' {
18337
- import { Component, ReactChild } from 'react';
18593
+ import { FunctionComponent, ReactChild } from 'react';
18338
18594
  import { CommonProps } from '@elastic/eui/src/components/common';
18339
- import { Timer } from '@elastic/eui/src/services/time';
18340
18595
  import { EuiToastProps } from '@elastic/eui/src/components/toast/toast'; type ToastSide = 'right' | 'left';
18341
18596
  export const SIDES: ToastSide[];
18342
18597
  export const TOAST_FADE_OUT_MS = 250;
@@ -18346,47 +18601,15 @@ declare module '@elastic/eui/src/components/toast/global_toast_list' {
18346
18601
  toastLifeTimeMs?: number;
18347
18602
  }
18348
18603
  export interface EuiGlobalToastListProps extends CommonProps {
18349
- toasts: Toast[];
18350
- dismissToast: (this: EuiGlobalToastList, toast: Toast) => void;
18604
+ toasts?: Toast[];
18605
+ dismissToast: (toast: Toast) => void;
18351
18606
  toastLifeTimeMs: number;
18352
18607
  /**
18353
18608
  * Determines which side of the browser window the toasts should appear
18354
18609
  */
18355
18610
  side?: ToastSide;
18356
18611
  }
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
- }
18612
+ export const EuiGlobalToastList: FunctionComponent<EuiGlobalToastListProps>;
18390
18613
  export {};
18391
18614
 
18392
18615
  }
@@ -23440,13 +23663,19 @@ declare module 'mdast-util-to-hast/lib/all' {
23440
23663
  export = all;
23441
23664
  }
23442
23665
  declare module '@elastic/eui/src/test/rtl/component_helpers' {
23666
+ import '@testing-library/jest-dom';
23443
23667
  /**
23444
- * Ensure the EuiPopover being tested is open/closed before contiuning
23668
+ * Ensure the EuiPopover being tested is open/closed before continuing
23445
23669
  * Note: Because EuiPopover is portalled, we want to query `document`
23446
23670
  * instead of the `container` returned by RTL's render()
23447
23671
  */
23448
23672
  export const waitForEuiPopoverOpen: () => Promise<void>;
23449
23673
  export const waitForEuiPopoverClose: () => Promise<void>;
23674
+ /**
23675
+ * Ensure the EuiToolTip being tested is open and visible before continuing
23676
+ */
23677
+ export const waitForEuiToolTipVisible: () => Promise<void>;
23678
+ export const waitForEuiToolTipHidden: () => Promise<void>;
23450
23679
 
23451
23680
  }
23452
23681
  declare module '@elastic/eui/src/test/rtl/data_test_subj_queries' {
@@ -23585,7 +23814,7 @@ declare module '@elastic/eui' {
23585
23814
  "euiBottomBar.screenReaderHeading": any;
23586
23815
  "euiBottomBar.customScreenReaderAnnouncement": any;
23587
23816
  "euiBottomBar.screenReaderAnnouncement": any;
23588
- "euiBreadcrumbs.collapsedBadge.ariaLabel": any;
23817
+ "euiBreadcrumb.collapsedBadge.ariaLabel": any;
23589
23818
  "euiBreadcrumbs.nav.ariaLabel": any;
23590
23819
  "euiCardSelect.selected": any;
23591
23820
  "euiCardSelect.unavailable": any;