@elastic/eui 69.0.0 → 70.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (306) hide show
  1. package/dist/eui_theme_dark.css +0 -554
  2. package/dist/eui_theme_dark.json +0 -27
  3. package/dist/eui_theme_dark.json.d.ts +0 -27
  4. package/dist/eui_theme_dark.min.css +1 -1
  5. package/dist/eui_theme_light.css +0 -554
  6. package/dist/eui_theme_light.json +0 -27
  7. package/dist/eui_theme_light.json.d.ts +0 -27
  8. package/dist/eui_theme_light.min.css +1 -1
  9. package/es/components/badge/beta_badge/beta_badge.js +6 -6
  10. package/es/components/basic_table/in_memory_table.js +16 -2
  11. package/es/components/button/button_display/_button_display.js +7 -6
  12. package/es/components/button/button_display/_button_display.styles.js +4 -4
  13. package/es/components/button/button_display/_button_display_content.js +6 -9
  14. package/es/components/button/button_display/_button_display_content.styles.js +3 -41
  15. package/es/components/code/code.js +7 -3
  16. package/es/components/code/code.styles.js +32 -0
  17. package/es/components/code/code_block.js +72 -315
  18. package/es/components/code/code_block.styles.js +153 -0
  19. package/es/components/code/code_block_controls.js +29 -0
  20. package/es/components/code/code_block_controls.styles.js +43 -0
  21. package/es/components/code/code_block_copy.js +65 -0
  22. package/es/components/code/code_block_full_screen.js +90 -0
  23. package/es/components/code/code_block_line.styles.js +49 -0
  24. package/es/components/code/code_block_overflow.js +78 -0
  25. package/es/components/code/code_block_virtualized.js +59 -0
  26. package/es/components/code/code_syntax.styles.js +43 -0
  27. package/es/components/code/utils.js +43 -37
  28. package/es/components/collapsible_nav/collapsible_nav.js +0 -5
  29. package/es/components/datagrid/controls/column_selector.js +1 -1
  30. package/es/components/datagrid/controls/column_sorting.js +1 -1
  31. package/es/components/header/header_links/header_links.js +6 -0
  32. package/es/components/loading/loading_spinner.js +14 -3
  33. package/es/components/loading/loading_spinner.styles.js +11 -7
  34. package/es/components/modal/modal.js +17 -2
  35. package/es/components/overlay_mask/overlay_mask.js +8 -14
  36. package/es/components/overlay_mask/overlay_mask.styles.js +4 -14
  37. package/es/components/overlay_mask/overlay_mask_body.styles.js +18 -0
  38. package/es/components/page_template/page_template.js +6 -9
  39. package/es/components/popover/popover.js +13 -3
  40. package/es/components/popover/popover_arrow/_popover_arrow.js +1 -0
  41. package/es/components/popover/popover_panel/_popover_panel.js +8 -2
  42. package/es/components/popover/popover_panel/_popover_panel.styles.js +15 -1
  43. package/es/components/provider/provider.js +1 -5
  44. package/es/components/resizable_container/helpers.js +2 -2
  45. package/es/components/resizable_container/resizable_container.js +6 -9
  46. package/es/components/resizable_container/resizable_container.styles.js +28 -0
  47. package/es/components/resizable_container/resizable_panel.js +25 -48
  48. package/es/components/resizable_container/resizable_panel.styles.js +69 -0
  49. package/es/components/search_bar/query/ast.js +14 -3
  50. package/es/components/search_bar/search_bar.js +39 -5
  51. package/es/components/search_bar/search_box.js +37 -4
  52. package/es/components/tabs/tab.js +33 -13
  53. package/es/components/tabs/tab.styles.js +50 -0
  54. package/es/components/tabs/tabbed_content/tabbed_content.js +16 -0
  55. package/es/components/tabs/tabs.js +20 -14
  56. package/es/components/tabs/tabs.styles.js +23 -0
  57. package/es/components/tool_tip/tool_tip.js +3 -2
  58. package/es/components/tool_tip/tool_tip.styles.js +17 -22
  59. package/es/components/tool_tip/tool_tip_arrow.js +17 -3
  60. package/es/components/tool_tip/tool_tip_popover.js +7 -7
  61. package/es/components/tour/tour.styles.js +4 -3
  62. package/es/components/tour/tour_step.js +13 -5
  63. package/es/global_styling/functions/logicals.js +5 -3
  64. package/es/global_styling/functions/math.js +37 -19
  65. package/es/global_styling/mixins/_padding.js +13 -9
  66. package/eui.d.ts +401 -84
  67. package/i18ntokens.json +26 -26
  68. package/lib/components/badge/beta_badge/beta_badge.js +6 -10
  69. package/lib/components/basic_table/in_memory_table.js +16 -2
  70. package/lib/components/button/button_display/_button_display.js +7 -6
  71. package/lib/components/button/button_display/_button_display.styles.js +4 -4
  72. package/lib/components/button/button_display/_button_display_content.js +6 -9
  73. package/lib/components/button/button_display/_button_display_content.styles.js +10 -40
  74. package/lib/components/code/code.js +9 -3
  75. package/lib/components/code/code.styles.js +35 -0
  76. package/lib/components/code/code_block.js +72 -320
  77. package/lib/components/code/code_block.styles.js +154 -0
  78. package/lib/components/code/code_block_controls.js +48 -0
  79. package/lib/components/code/code_block_controls.styles.js +39 -0
  80. package/lib/components/code/code_block_copy.js +78 -0
  81. package/lib/components/code/code_block_full_screen.js +108 -0
  82. package/lib/components/code/code_block_line.styles.js +45 -0
  83. package/lib/components/code/code_block_overflow.js +82 -0
  84. package/lib/components/code/code_block_virtualized.js +72 -0
  85. package/lib/components/code/code_syntax.styles.js +57 -0
  86. package/lib/components/code/utils.js +40 -39
  87. package/lib/components/collapsible_nav/collapsible_nav.js +0 -5
  88. package/lib/components/datagrid/controls/column_selector.js +1 -1
  89. package/lib/components/datagrid/controls/column_sorting.js +1 -1
  90. package/lib/components/header/header_links/header_links.js +6 -0
  91. package/lib/components/loading/loading_spinner.js +13 -2
  92. package/lib/components/loading/loading_spinner.styles.js +14 -6
  93. package/lib/components/modal/modal.js +23 -2
  94. package/lib/components/overlay_mask/overlay_mask.js +9 -14
  95. package/lib/components/overlay_mask/overlay_mask.styles.js +13 -17
  96. package/lib/components/overlay_mask/overlay_mask_body.styles.js +20 -0
  97. package/lib/components/page_template/page_template.js +6 -9
  98. package/lib/components/popover/popover.js +13 -3
  99. package/lib/components/popover/popover_arrow/_popover_arrow.js +1 -0
  100. package/lib/components/popover/popover_panel/_popover_panel.js +8 -2
  101. package/lib/components/popover/popover_panel/_popover_panel.styles.js +16 -1
  102. package/lib/components/provider/provider.js +7 -12
  103. package/lib/components/resizable_container/helpers.js +2 -2
  104. package/lib/components/resizable_container/resizable_container.js +7 -9
  105. package/lib/components/resizable_container/resizable_container.styles.js +31 -0
  106. package/lib/components/resizable_container/resizable_panel.js +28 -49
  107. package/lib/components/resizable_container/resizable_panel.styles.js +74 -0
  108. package/lib/components/search_bar/query/ast.js +14 -3
  109. package/lib/components/search_bar/search_bar.js +40 -5
  110. package/lib/components/search_bar/search_box.js +38 -4
  111. package/lib/components/tabs/tab.js +33 -12
  112. package/lib/components/tabs/tab.styles.js +56 -0
  113. package/lib/components/tabs/tabbed_content/tabbed_content.js +16 -0
  114. package/lib/components/tabs/tabs.js +24 -14
  115. package/lib/components/tabs/tabs.styles.js +34 -0
  116. package/lib/components/tool_tip/tool_tip.js +3 -2
  117. package/lib/components/tool_tip/tool_tip.styles.js +18 -26
  118. package/lib/components/tool_tip/tool_tip_arrow.js +19 -4
  119. package/lib/components/tool_tip/tool_tip_popover.js +6 -6
  120. package/lib/components/tour/tour.styles.js +3 -2
  121. package/lib/components/tour/tour_step.js +7 -5
  122. package/lib/global_styling/functions/logicals.js +5 -3
  123. package/lib/global_styling/functions/math.js +37 -19
  124. package/lib/global_styling/mixins/_padding.js +17 -10
  125. package/optimize/es/components/badge/beta_badge/beta_badge.js +6 -6
  126. package/optimize/es/components/basic_table/in_memory_table.js +1 -1
  127. package/optimize/es/components/button/button_display/_button_display.js +6 -5
  128. package/optimize/es/components/button/button_display/_button_display.styles.js +4 -4
  129. package/optimize/es/components/button/button_display/_button_display_content.js +6 -9
  130. package/optimize/es/components/button/button_display/_button_display_content.styles.js +3 -41
  131. package/optimize/es/components/code/code.js +7 -3
  132. package/optimize/es/components/code/code.styles.js +32 -0
  133. package/optimize/es/components/code/code_block.js +70 -299
  134. package/optimize/es/components/code/code_block.styles.js +153 -0
  135. package/optimize/es/components/code/code_block_controls.js +29 -0
  136. package/optimize/es/components/code/code_block_controls.styles.js +43 -0
  137. package/optimize/es/components/code/code_block_copy.js +55 -0
  138. package/optimize/es/components/code/code_block_full_screen.js +80 -0
  139. package/optimize/es/components/code/code_block_line.styles.js +49 -0
  140. package/optimize/es/components/code/code_block_overflow.js +67 -0
  141. package/optimize/es/components/code/code_block_virtualized.js +59 -0
  142. package/optimize/es/components/code/code_syntax.styles.js +43 -0
  143. package/optimize/es/components/code/utils.js +43 -37
  144. package/optimize/es/components/datagrid/controls/column_selector.js +1 -1
  145. package/optimize/es/components/datagrid/controls/column_sorting.js +1 -1
  146. package/optimize/es/components/loading/loading_spinner.js +13 -3
  147. package/optimize/es/components/loading/loading_spinner.styles.js +11 -7
  148. package/optimize/es/components/modal/modal.js +17 -2
  149. package/optimize/es/components/overlay_mask/overlay_mask.js +8 -9
  150. package/optimize/es/components/overlay_mask/overlay_mask.styles.js +4 -14
  151. package/optimize/es/components/overlay_mask/overlay_mask_body.styles.js +18 -0
  152. package/optimize/es/components/page_template/page_template.js +6 -9
  153. package/optimize/es/components/popover/popover.js +7 -3
  154. package/optimize/es/components/popover/popover_arrow/_popover_arrow.js +1 -0
  155. package/optimize/es/components/popover/popover_panel/_popover_panel.js +6 -1
  156. package/optimize/es/components/popover/popover_panel/_popover_panel.styles.js +15 -1
  157. package/optimize/es/components/provider/provider.js +1 -5
  158. package/optimize/es/components/resizable_container/helpers.js +2 -2
  159. package/optimize/es/components/resizable_container/resizable_container.js +6 -9
  160. package/optimize/es/components/resizable_container/resizable_container.styles.js +28 -0
  161. package/optimize/es/components/resizable_container/resizable_panel.js +25 -48
  162. package/optimize/es/components/resizable_container/resizable_panel.styles.js +69 -0
  163. package/optimize/es/components/search_bar/query/ast.js +14 -3
  164. package/optimize/es/components/search_bar/search_bar.js +31 -5
  165. package/optimize/es/components/search_bar/search_box.js +29 -3
  166. package/optimize/es/components/tabs/tab.js +21 -13
  167. package/optimize/es/components/tabs/tab.styles.js +50 -0
  168. package/optimize/es/components/tabs/tabs.js +20 -14
  169. package/optimize/es/components/tabs/tabs.styles.js +23 -0
  170. package/optimize/es/components/tool_tip/tool_tip.js +3 -2
  171. package/optimize/es/components/tool_tip/tool_tip.styles.js +17 -22
  172. package/optimize/es/components/tool_tip/tool_tip_arrow.js +9 -3
  173. package/optimize/es/components/tool_tip/tool_tip_popover.js +7 -7
  174. package/optimize/es/components/tour/tour.styles.js +4 -3
  175. package/optimize/es/components/tour/tour_step.js +7 -5
  176. package/optimize/es/global_styling/functions/logicals.js +5 -3
  177. package/optimize/es/global_styling/functions/math.js +35 -17
  178. package/optimize/es/global_styling/mixins/_padding.js +13 -9
  179. package/optimize/lib/components/badge/beta_badge/beta_badge.js +6 -13
  180. package/optimize/lib/components/basic_table/in_memory_table.js +1 -1
  181. package/optimize/lib/components/button/button_display/_button_display.js +7 -6
  182. package/optimize/lib/components/button/button_display/_button_display.styles.js +4 -4
  183. package/optimize/lib/components/button/button_display/_button_display_content.js +6 -9
  184. package/optimize/lib/components/button/button_display/_button_display_content.styles.js +10 -40
  185. package/optimize/lib/components/code/code.js +9 -3
  186. package/optimize/lib/components/code/code.styles.js +35 -0
  187. package/optimize/lib/components/code/code_block.js +71 -306
  188. package/optimize/lib/components/code/code_block.styles.js +156 -0
  189. package/optimize/lib/components/code/code_block_controls.js +48 -0
  190. package/optimize/lib/components/code/code_block_controls.styles.js +39 -0
  191. package/optimize/lib/components/code/code_block_copy.js +78 -0
  192. package/optimize/lib/components/code/code_block_full_screen.js +108 -0
  193. package/optimize/lib/components/code/code_block_line.styles.js +45 -0
  194. package/optimize/lib/components/code/code_block_overflow.js +82 -0
  195. package/optimize/lib/components/code/code_block_virtualized.js +81 -0
  196. package/optimize/lib/components/code/code_syntax.styles.js +57 -0
  197. package/optimize/lib/components/code/utils.js +40 -37
  198. package/optimize/lib/components/datagrid/controls/column_selector.js +1 -1
  199. package/optimize/lib/components/datagrid/controls/column_sorting.js +1 -1
  200. package/optimize/lib/components/loading/loading_spinner.js +14 -2
  201. package/optimize/lib/components/loading/loading_spinner.styles.js +14 -6
  202. package/optimize/lib/components/modal/modal.js +22 -2
  203. package/optimize/lib/components/overlay_mask/overlay_mask.js +9 -9
  204. package/optimize/lib/components/overlay_mask/overlay_mask.styles.js +13 -17
  205. package/optimize/lib/components/overlay_mask/overlay_mask_body.styles.js +20 -0
  206. package/optimize/lib/components/page_template/page_template.js +6 -9
  207. package/optimize/lib/components/popover/popover.js +7 -3
  208. package/optimize/lib/components/popover/popover_arrow/_popover_arrow.js +1 -0
  209. package/optimize/lib/components/popover/popover_panel/_popover_panel.js +6 -1
  210. package/optimize/lib/components/popover/popover_panel/_popover_panel.styles.js +16 -1
  211. package/optimize/lib/components/provider/provider.js +7 -12
  212. package/optimize/lib/components/resizable_container/helpers.js +2 -2
  213. package/optimize/lib/components/resizable_container/resizable_container.js +7 -9
  214. package/optimize/lib/components/resizable_container/resizable_container.styles.js +31 -0
  215. package/optimize/lib/components/resizable_container/resizable_panel.js +28 -49
  216. package/optimize/lib/components/resizable_container/resizable_panel.styles.js +76 -0
  217. package/optimize/lib/components/search_bar/query/ast.js +14 -3
  218. package/optimize/lib/components/search_bar/search_bar.js +31 -5
  219. package/optimize/lib/components/search_bar/search_box.js +30 -3
  220. package/optimize/lib/components/tabs/tab.js +21 -12
  221. package/optimize/lib/components/tabs/tab.styles.js +56 -0
  222. package/optimize/lib/components/tabs/tabs.js +24 -14
  223. package/optimize/lib/components/tabs/tabs.styles.js +34 -0
  224. package/optimize/lib/components/tool_tip/tool_tip.js +3 -2
  225. package/optimize/lib/components/tool_tip/tool_tip.styles.js +18 -26
  226. package/optimize/lib/components/tool_tip/tool_tip_arrow.js +10 -10
  227. package/optimize/lib/components/tool_tip/tool_tip_popover.js +6 -6
  228. package/optimize/lib/components/tour/tour.styles.js +3 -2
  229. package/optimize/lib/components/tour/tour_step.js +7 -5
  230. package/optimize/lib/global_styling/functions/logicals.js +4 -10
  231. package/optimize/lib/global_styling/functions/math.js +37 -19
  232. package/optimize/lib/global_styling/mixins/_padding.js +17 -10
  233. package/package.json +10 -9
  234. package/src/components/datagrid/controls/_data_grid_toolbar.scss +0 -8
  235. package/src/components/index.scss +0 -2
  236. package/src/components/resizable_container/_index.scss +0 -2
  237. package/src/global_styling/mixins/_header.scss +1 -1
  238. package/src/global_styling/variables/_index.scss +0 -1
  239. package/src/themes/amsterdam/overrides/_index.scss +0 -2
  240. package/test-env/components/badge/beta_badge/beta_badge.js +6 -13
  241. package/test-env/components/basic_table/in_memory_table.js +16 -2
  242. package/test-env/components/button/button_display/_button_display.js +7 -6
  243. package/test-env/components/button/button_display/_button_display.styles.js +4 -4
  244. package/test-env/components/button/button_display/_button_display_content.js +6 -9
  245. package/test-env/components/button/button_display/_button_display_content.styles.js +10 -40
  246. package/test-env/components/code/code.styles.js +35 -0
  247. package/test-env/components/code/code_block.styles.js +156 -0
  248. package/test-env/components/code/code_block_controls.js +48 -0
  249. package/test-env/components/code/code_block_controls.styles.js +39 -0
  250. package/test-env/components/code/code_block_copy.js +78 -0
  251. package/test-env/components/code/code_block_full_screen.js +108 -0
  252. package/test-env/components/code/code_block_line.styles.js +45 -0
  253. package/test-env/components/code/code_block_overflow.js +82 -0
  254. package/test-env/components/code/code_block_virtualized.js +81 -0
  255. package/test-env/components/code/code_syntax.styles.js +57 -0
  256. package/test-env/components/code/utils.js +40 -37
  257. package/test-env/components/collapsible_nav/collapsible_nav.js +0 -5
  258. package/test-env/components/datagrid/controls/column_selector.js +1 -1
  259. package/test-env/components/datagrid/controls/column_sorting.js +1 -1
  260. package/test-env/components/header/header_links/header_links.js +6 -0
  261. package/test-env/components/loading/loading_spinner.js +14 -2
  262. package/test-env/components/loading/loading_spinner.styles.js +14 -6
  263. package/test-env/components/modal/modal.js +22 -2
  264. package/test-env/components/overlay_mask/overlay_mask.js +9 -14
  265. package/test-env/components/overlay_mask/overlay_mask.styles.js +13 -17
  266. package/test-env/components/overlay_mask/overlay_mask_body.styles.js +20 -0
  267. package/test-env/components/page_template/page_template.js +6 -9
  268. package/test-env/components/popover/popover.js +13 -3
  269. package/test-env/components/popover/popover_arrow/_popover_arrow.js +1 -0
  270. package/test-env/components/popover/popover_panel/_popover_panel.js +8 -2
  271. package/test-env/components/popover/popover_panel/_popover_panel.styles.js +16 -1
  272. package/test-env/components/provider/provider.js +7 -12
  273. package/test-env/components/resizable_container/helpers.js +2 -2
  274. package/test-env/components/resizable_container/resizable_container.js +7 -9
  275. package/test-env/components/resizable_container/resizable_container.styles.js +31 -0
  276. package/test-env/components/resizable_container/resizable_panel.js +28 -49
  277. package/test-env/components/resizable_container/resizable_panel.styles.js +76 -0
  278. package/test-env/components/search_bar/query/ast.js +14 -3
  279. package/test-env/components/search_bar/search_bar.js +39 -5
  280. package/test-env/components/search_bar/search_box.js +38 -4
  281. package/test-env/components/tabs/tab.js +33 -12
  282. package/test-env/components/tabs/tab.styles.js +56 -0
  283. package/test-env/components/tabs/tabbed_content/tabbed_content.js +16 -0
  284. package/test-env/components/tabs/tabs.js +24 -14
  285. package/test-env/components/tabs/tabs.styles.js +34 -0
  286. package/test-env/components/tool_tip/tool_tip.js +3 -2
  287. package/test-env/components/tool_tip/tool_tip.styles.js +18 -26
  288. package/test-env/components/tool_tip/tool_tip_arrow.js +16 -11
  289. package/test-env/components/tool_tip/tool_tip_popover.js +6 -6
  290. package/test-env/components/tour/tour.styles.js +3 -2
  291. package/test-env/components/tour/tour_step.js +7 -5
  292. package/test-env/global_styling/functions/logicals.js +4 -10
  293. package/test-env/global_styling/functions/math.js +37 -19
  294. package/test-env/global_styling/mixins/_padding.js +17 -10
  295. package/src/components/code/_code.scss +0 -15
  296. package/src/components/code/_code_block.scss +0 -177
  297. package/src/components/code/_index.scss +0 -4
  298. package/src/components/code/_mixins.scss +0 -127
  299. package/src/components/code/_variables.scss +0 -5
  300. package/src/components/resizable_container/_resizable_container.scss +0 -8
  301. package/src/components/resizable_container/_resizable_panel.scss +0 -51
  302. package/src/components/tabs/_index.scss +0 -1
  303. package/src/components/tabs/_tabs.scss +0 -110
  304. package/src/global_styling/variables/_colors_code.scss +0 -23
  305. package/src/themes/amsterdam/overrides/_code.scss +0 -9
  306. package/src/themes/amsterdam/overrides/_tabs.scss +0 -80
package/eui.d.ts CHANGED
@@ -1711,8 +1711,9 @@ declare module '@elastic/eui/src/components/loading/loading_content' {
1711
1711
  }
1712
1712
  declare module '@elastic/eui/src/components/loading/loading_spinner.styles' {
1713
1713
  import { UseEuiTheme } from '@elastic/eui/src/services';
1714
- import { EuiLoadingSpinnerProps } from '@elastic/eui/src/components/loading/loading_spinner';
1715
- export const euiLoadingSpinnerStyles: ({ euiTheme }: UseEuiTheme, color?: EuiLoadingSpinnerProps['color']) => {
1714
+ import { EuiLoadingSpinnerColor } from '@elastic/eui/src/components/loading/loading_spinner';
1715
+ export const euiSpinnerBorderColorsCSS: ({ euiTheme }: UseEuiTheme, colors?: EuiLoadingSpinnerColor) => string;
1716
+ export const euiLoadingSpinnerStyles: (euiThemeContext: UseEuiTheme) => {
1716
1717
  euiLoadingSpinner: import("@emotion/utils").SerializedStyles;
1717
1718
  s: import("@emotion/utils").SerializedStyles;
1718
1719
  m: import("@emotion/utils").SerializedStyles;
@@ -1910,12 +1911,6 @@ declare module '@elastic/eui/src/components/button/button_display/_button_displa
1910
1911
  import { UseEuiTheme } from '@elastic/eui/src/services';
1911
1912
  export const euiButtonDisplayContentStyles: ({ euiTheme }: UseEuiTheme) => {
1912
1913
  euiButtonDisplayContent: import("@emotion/utils").SerializedStyles;
1913
- left: import("@emotion/utils").SerializedStyles;
1914
- right: import("@emotion/utils").SerializedStyles;
1915
- euiButtonDisplayContent__spinner: import("@emotion/utils").SerializedStyles;
1916
- euiButtonDisplayContent__icon: import("@emotion/utils").SerializedStyles;
1917
- s: import("@emotion/utils").SerializedStyles;
1918
- m: import("@emotion/utils").SerializedStyles;
1919
1914
  };
1920
1915
 
1921
1916
  }
@@ -4504,6 +4499,13 @@ declare module '@elastic/eui/src/components/popover/popover_panel/_popover_panel
4504
4499
  left: import("@emotion/utils").SerializedStyles;
4505
4500
  right: import("@emotion/utils").SerializedStyles;
4506
4501
  };
4502
+ hasDragDrop: {
4503
+ hasDragDrop: import("@emotion/utils").SerializedStyles;
4504
+ top: import("@emotion/utils").SerializedStyles;
4505
+ bottom: import("@emotion/utils").SerializedStyles;
4506
+ left: import("@emotion/utils").SerializedStyles;
4507
+ right: import("@emotion/utils").SerializedStyles;
4508
+ };
4507
4509
  };
4508
4510
 
4509
4511
  }
@@ -4520,6 +4522,7 @@ declare module '@elastic/eui/src/components/popover/popover_panel/_popover_panel
4520
4522
  isOpen?: boolean;
4521
4523
  isAttached?: boolean;
4522
4524
  position?: EuiPopoverArrowPositions | null;
4525
+ hasDragDrop?: boolean;
4523
4526
  };
4524
4527
  /**
4525
4528
  * *INTERNAL ONLY*
@@ -4640,6 +4643,11 @@ declare module '@elastic/eui/src/components/popover/popover' {
4640
4643
  * an `EuiPopover` in a scrollable container, `repositionOnScroll` should be `true`
4641
4644
  */
4642
4645
  repositionOnScroll?: boolean;
4646
+ /**
4647
+ * Must be set to true if using `EuiDragDropContext` within a popover,
4648
+ * otherwise your nested drag & drop will have incorrect positioning
4649
+ */
4650
+ hasDragDrop?: boolean;
4643
4651
  /**
4644
4652
  * By default, popover content inherits the z-index of the anchor
4645
4653
  * component; pass `zIndex` to override
@@ -4768,8 +4776,8 @@ declare module '@elastic/eui/src/components/observer/resize_observer' {
4768
4776
  declare module '@elastic/eui/src/components/form/form.styles' {
4769
4777
  import { UseEuiTheme } from '@elastic/eui/src/services';
4770
4778
  export const euiFormVariables: (euiThemeContext: UseEuiTheme) => {
4771
- controlLayoutGroupInputHeight: string | undefined;
4772
- controlLayoutGroupInputCompressedHeight: string | undefined;
4779
+ controlLayoutGroupInputHeight: string;
4780
+ controlLayoutGroupInputCompressedHeight: string;
4773
4781
  controlLayoutGroupInputCompressedBorderRadius: import("csstype").Property.BorderRadius<string | number> | undefined;
4774
4782
  controlIconSize: {
4775
4783
  s: string;
@@ -4790,7 +4798,7 @@ declare module '@elastic/eui/src/components/form/form.styles' {
4790
4798
  controlPlaceholderText: string;
4791
4799
  inputGroupLabelBackground: string;
4792
4800
  inputGroupBorder: string;
4793
- maxWidth: string | undefined;
4801
+ maxWidth: string;
4794
4802
  controlHeight: string;
4795
4803
  controlCompressedHeight: string;
4796
4804
  controlPadding: string;
@@ -5485,8 +5493,12 @@ declare module '@elastic/eui/src/components/tool_tip/tool_tip.styles' {
5485
5493
  left: import("@emotion/utils").SerializedStyles;
5486
5494
  right: import("@emotion/utils").SerializedStyles;
5487
5495
  euiToolTip__arrow: import("@emotion/utils").SerializedStyles;
5488
- };
5489
- export const euiToolTipPopoverStyles: ({ euiTheme, colorMode, }: UseEuiTheme) => {
5496
+ arrowPositions: {
5497
+ top: import("@emotion/utils").SerializedStyles;
5498
+ bottom: import("@emotion/utils").SerializedStyles;
5499
+ left: import("@emotion/utils").SerializedStyles;
5500
+ right: import("@emotion/utils").SerializedStyles;
5501
+ };
5490
5502
  euiToolTip__title: import("@emotion/utils").SerializedStyles;
5491
5503
  };
5492
5504
  export const euiToolTipAnchorStyles: () => {
@@ -5524,7 +5536,10 @@ declare module '@elastic/eui/src/components/tool_tip/tool_tip_anchor' {
5524
5536
  }
5525
5537
  declare module '@elastic/eui/src/components/tool_tip/tool_tip_arrow' {
5526
5538
  import { HTMLAttributes, FunctionComponent } from 'react';
5527
- export const EuiToolTipArrow: FunctionComponent<HTMLAttributes<HTMLDivElement>>;
5539
+ import { ToolTipPositions } from '@elastic/eui/src/components/tool_tip/tool_tip_popover';
5540
+ export const EuiToolTipArrow: FunctionComponent<{
5541
+ position: ToolTipPositions;
5542
+ } & HTMLAttributes<HTMLDivElement>>;
5528
5543
 
5529
5544
  }
5530
5545
  declare module '@elastic/eui/src/components/tool_tip/tool_tip' {
@@ -6652,15 +6667,9 @@ declare module '@elastic/eui/src/global_styling/functions/logicals' {
6652
6667
 
6653
6668
  }
6654
6669
  declare module '@elastic/eui/src/global_styling/functions/math' {
6655
- /**
6656
- * Utility for performing math callbacks on a string with CSS units
6657
- * and returning a string with its unit preserved.
6658
- *
6659
- * Example usage:
6660
- * mathWithUnits('4px', (x) => x / 2) = '2px';
6661
- * mathWithUnits(euiTheme.size.xs, (x) => x + 2) = '6px';
6662
- */
6663
- export const mathWithUnits: (value: string | number | undefined, callback: (x: number) => number, unit?: string) => string | undefined;
6670
+ type ValueTypes = string | number | undefined;
6671
+ export const mathWithUnits: (values: ValueTypes | ValueTypes[], callback: (...args: number[]) => number, unit?: string) => string;
6672
+ export {};
6664
6673
 
6665
6674
  }
6666
6675
  declare module '@elastic/eui/src/global_styling/functions/size' {
@@ -7448,6 +7457,14 @@ declare module '@elastic/eui/src/global_styling/mixins/_padding' {
7448
7457
  export const PADDING_SIZES: readonly ["none", "xs", "s", "m", "l", "xl"];
7449
7458
  export type EuiPaddingSize = typeof PADDING_SIZES[number];
7450
7459
  export const euiPaddingSize: ({ euiTheme }: UseEuiTheme, size: EuiPaddingSize) => string | null;
7460
+ export const euiPaddingSizeCSS: (euiThemeContext: UseEuiTheme, side?: "left" | "right" | "top" | "bottom" | "horizontal" | "vertical" | undefined) => {
7461
+ none: null;
7462
+ xs: import("@emotion/utils").SerializedStyles;
7463
+ s: import("@emotion/utils").SerializedStyles;
7464
+ m: import("@emotion/utils").SerializedStyles;
7465
+ l: import("@emotion/utils").SerializedStyles;
7466
+ xl: import("@emotion/utils").SerializedStyles;
7467
+ };
7451
7468
  export const useEuiPaddingSize: (size: EuiPaddingSize) => string | null;
7452
7469
  export const useEuiPaddingCSS: (side?: "left" | "right" | "top" | "bottom" | "horizontal" | "vertical" | undefined) => {
7453
7470
  none: null;
@@ -8730,11 +8747,27 @@ declare module '@elastic/eui/src/components/card' {
8730
8747
  export type { EuiCheckableCardProps } from '@elastic/eui/src/components/card/checkable_card';
8731
8748
  export { EuiCheckableCard } from '@elastic/eui/src/components/card/checkable_card';
8732
8749
 
8750
+ }
8751
+ declare module '@elastic/eui/src/components/code/code_block_line.styles' {
8752
+ import { UseEuiTheme } from '@elastic/eui/src/services';
8753
+ export const euiCodeBlockLineStyles: (euiThemeContext: UseEuiTheme) => {
8754
+ euiCodeBlock__line: string;
8755
+ hasLineNumbers: string;
8756
+ lineText: {
8757
+ euiCodeBlock__lineText: string;
8758
+ isHighlighted: string;
8759
+ };
8760
+ lineNumber: {
8761
+ euiCodeBlock__lineNumber: string;
8762
+ };
8763
+ };
8764
+
8733
8765
  }
8734
8766
  declare module '@elastic/eui/src/components/code/utils' {
8735
8767
  import { ReactElement, ReactNode, HTMLAttributes } from 'react';
8736
8768
  import { AST, RefractorNode } from 'refractor';
8737
8769
  import { CommonProps } from '@elastic/eui/src/components/common';
8770
+ import { UseEuiTheme } from '@elastic/eui/src/services';
8738
8771
  /**
8739
8772
  * Utils shared between EuiCode and EuiCodeBlock
8740
8773
  */
@@ -8758,9 +8791,47 @@ declare module '@elastic/eui/src/components/code/utils' {
8758
8791
  highlight?: string;
8759
8792
  }
8760
8793
  export const parseLineRanges: (ranges: string) => number[];
8761
- export const highlightByLine: (children: string, language: string, data: LineNumbersConfig) => RefractorNode[];
8794
+ export const highlightByLine: (children: string, language: string, data: LineNumbersConfig, euiTheme: UseEuiTheme) => RefractorNode[];
8762
8795
  export {};
8763
8796
 
8797
+ }
8798
+ declare module '@elastic/eui/src/components/code/code_syntax.styles' {
8799
+ import { UseEuiTheme } from '@elastic/eui/src/services';
8800
+ export const euiCodeSyntaxColors: (euiThemeContext: UseEuiTheme) => {
8801
+ backgroundColor: string;
8802
+ color: string;
8803
+ inlineCodeColor: string;
8804
+ selectedBackgroundColor: string;
8805
+ commentColor: string;
8806
+ selectorTagColor: string;
8807
+ stringColor: string;
8808
+ tagColor: string;
8809
+ nameColor: string;
8810
+ numberColor: string;
8811
+ keywordColor: string;
8812
+ functionTitleColor: string;
8813
+ typeColor: string;
8814
+ attributeColor: string;
8815
+ symbolColor: string;
8816
+ paramsColor: string;
8817
+ metaColor: string;
8818
+ titleColor: string;
8819
+ sectionColor: string;
8820
+ additionColor: string;
8821
+ deletionColor: string;
8822
+ selectorClassColor: string;
8823
+ selectorIdColor: string;
8824
+ };
8825
+ export const euiCodeSyntaxTokens: (euiThemeContext: UseEuiTheme) => string;
8826
+
8827
+ }
8828
+ declare module '@elastic/eui/src/components/code/code.styles' {
8829
+ import { UseEuiTheme } from '@elastic/eui/src/services';
8830
+ export const euiCodeStyles: (euiThemeContext: UseEuiTheme) => {
8831
+ euiCode: import("@emotion/utils").SerializedStyles;
8832
+ transparentBackground: import("@emotion/utils").SerializedStyles;
8833
+ };
8834
+
8764
8835
  }
8765
8836
  declare module '@elastic/eui/src/components/code/code' {
8766
8837
  import { FunctionComponent } from 'react';
@@ -8768,6 +8839,24 @@ declare module '@elastic/eui/src/components/code/code' {
8768
8839
  export type EuiCodeProps = EuiCodeSharedProps;
8769
8840
  export const EuiCode: FunctionComponent<EuiCodeProps>;
8770
8841
 
8842
+ }
8843
+ declare module '@elastic/eui/src/components/code/code_block_overflow' {
8844
+ import { CSSProperties } from 'react';
8845
+ /**
8846
+ * Overflow logic - returns overflow-related state/logic/utils
8847
+ *
8848
+ * Detects whether the code block overflows and returns a tabIndex of 0 if so,
8849
+ * which allows keyboard users to use the up/down arrow keys to scroll through
8850
+ * the container.
8851
+ */
8852
+ export const useOverflow: ({ overflowHeight, }: {
8853
+ overflowHeight?: string | number | undefined;
8854
+ }) => {
8855
+ setWrapperRef: import("react").Dispatch<import("react").SetStateAction<Element | null>>;
8856
+ tabIndex: 0 | -1;
8857
+ overflowHeightStyles: CSSProperties;
8858
+ };
8859
+
8771
8860
  }
8772
8861
  declare module '@elastic/eui/src/components/copy/copy' {
8773
8862
  import { Component, ReactElement, ReactNode } from 'react';
@@ -8812,14 +8901,32 @@ declare module '@elastic/eui/src/components/copy' {
8812
8901
  export type { EuiCopyProps } from '@elastic/eui/src/components/copy/copy';
8813
8902
  export { EuiCopy } from '@elastic/eui/src/components/copy/copy';
8814
8903
 
8904
+ }
8905
+ declare module '@elastic/eui/src/components/code/code_block_copy' {
8906
+ import { ReactNode } from 'react';
8907
+ /**
8908
+ * Hook that returns copy-related state/logic/utils
8909
+ */
8910
+ export const useCopy: ({ isCopyable, isVirtualized, children, }: {
8911
+ isCopyable: boolean;
8912
+ isVirtualized: boolean;
8913
+ children: ReactNode;
8914
+ }) => {
8915
+ innerTextRef: (node: HTMLElement | Element | null | undefined) => void;
8916
+ copyButton: JSX.Element | null;
8917
+ };
8918
+
8815
8919
  }
8816
8920
  declare module '@elastic/eui/src/components/overlay_mask/overlay_mask.styles' {
8817
8921
  import { UseEuiTheme } from '@elastic/eui/src/services';
8818
8922
  export const euiOverlayMaskStyles: ({ euiTheme }: UseEuiTheme) => {
8819
- euiOverlayMask: import("@emotion/utils").SerializedStyles;
8820
- aboveHeader: import("@emotion/utils").SerializedStyles;
8821
- belowHeader: import("@emotion/utils").SerializedStyles;
8923
+ euiOverlayMask: string;
8924
+ aboveHeader: string;
8925
+ belowHeader: string;
8822
8926
  };
8927
+
8928
+ }
8929
+ declare module '@elastic/eui/src/components/overlay_mask/overlay_mask_body.styles' {
8823
8930
  export const euiOverlayMaskBodyStyles: import("@emotion/utils").SerializedStyles;
8824
8931
 
8825
8932
  }
@@ -8844,7 +8951,7 @@ declare module '@elastic/eui/src/components/overlay_mask/overlay_mask' {
8844
8951
  */
8845
8952
  maskRef?: Ref<HTMLDivElement> | MutableRefObject<HTMLDivElement>;
8846
8953
  }
8847
- export type EuiOverlayMaskProps = CommonProps & Omit<Partial<Record<keyof HTMLAttributes<HTMLDivElement>, string>>, keyof EuiOverlayMaskInterface> & EuiOverlayMaskInterface;
8954
+ export type EuiOverlayMaskProps = Omit<CommonProps, 'css'> & Omit<Partial<Record<keyof HTMLAttributes<HTMLDivElement>, string>>, keyof EuiOverlayMaskInterface> & EuiOverlayMaskInterface;
8848
8955
  export const EuiOverlayMask: FunctionComponent<EuiOverlayMaskProps>;
8849
8956
 
8850
8957
  }
@@ -8852,13 +8959,129 @@ declare module '@elastic/eui/src/components/overlay_mask' {
8852
8959
  export type { EuiOverlayMaskProps } from '@elastic/eui/src/components/overlay_mask/overlay_mask';
8853
8960
  export { EuiOverlayMask } from '@elastic/eui/src/components/overlay_mask/overlay_mask';
8854
8961
 
8962
+ }
8963
+ declare module '@elastic/eui/src/components/code/code_block.styles' {
8964
+ import { UseEuiTheme } from '@elastic/eui/src/services';
8965
+ export const euiCodeBlockStyles: (euiThemeContext: UseEuiTheme) => {
8966
+ euiCodeBlock: import("@emotion/utils").SerializedStyles;
8967
+ s: import("@emotion/utils").SerializedStyles;
8968
+ m: import("@emotion/utils").SerializedStyles;
8969
+ l: import("@emotion/utils").SerializedStyles;
8970
+ transparentBackground: import("@emotion/utils").SerializedStyles;
8971
+ isFullScreen: import("@emotion/utils").SerializedStyles;
8972
+ hasControls: {
8973
+ none: import("@emotion/utils").SerializedStyles;
8974
+ s: import("@emotion/utils").SerializedStyles;
8975
+ m: import("@emotion/utils").SerializedStyles;
8976
+ l: import("@emotion/utils").SerializedStyles;
8977
+ xl: import("@emotion/utils").SerializedStyles;
8978
+ };
8979
+ hasBothControls: {
8980
+ none: import("@emotion/utils").SerializedStyles;
8981
+ s: import("@emotion/utils").SerializedStyles;
8982
+ m: import("@emotion/utils").SerializedStyles;
8983
+ l: import("@emotion/utils").SerializedStyles;
8984
+ xl: import("@emotion/utils").SerializedStyles;
8985
+ };
8986
+ };
8987
+ export const euiCodeBlockPreStyles: (euiThemeContext: UseEuiTheme) => {
8988
+ euiCodeBlock__pre: import("@emotion/utils").SerializedStyles;
8989
+ padding: {
8990
+ none: import("@emotion/utils").SerializedStyles;
8991
+ s: import("@emotion/utils").SerializedStyles;
8992
+ m: import("@emotion/utils").SerializedStyles;
8993
+ l: import("@emotion/utils").SerializedStyles;
8994
+ xl: import("@emotion/utils").SerializedStyles;
8995
+ };
8996
+ whiteSpace: {
8997
+ pre: {
8998
+ pre: import("@emotion/utils").SerializedStyles;
8999
+ controlsOffset: {
9000
+ none: import("@emotion/utils").SerializedStyles;
9001
+ s: import("@emotion/utils").SerializedStyles;
9002
+ m: import("@emotion/utils").SerializedStyles;
9003
+ l: import("@emotion/utils").SerializedStyles;
9004
+ xl: import("@emotion/utils").SerializedStyles;
9005
+ };
9006
+ };
9007
+ preWrap: {
9008
+ preWrap: import("@emotion/utils").SerializedStyles;
9009
+ controlsOffset: {
9010
+ none: import("@emotion/utils").SerializedStyles;
9011
+ s: import("@emotion/utils").SerializedStyles;
9012
+ m: import("@emotion/utils").SerializedStyles;
9013
+ l: import("@emotion/utils").SerializedStyles;
9014
+ xl: import("@emotion/utils").SerializedStyles;
9015
+ };
9016
+ };
9017
+ };
9018
+ };
9019
+ export const euiCodeBlockCodeStyles: (euiThemeContext: UseEuiTheme) => {
9020
+ euiCodeBlock__code: import("@emotion/utils").SerializedStyles;
9021
+ isVirtualized: import("@emotion/utils").SerializedStyles;
9022
+ };
9023
+
9024
+ }
9025
+ declare module '@elastic/eui/src/components/code/code_block_full_screen' {
9026
+ import { FunctionComponent, KeyboardEvent } from 'react';
9027
+ /**
9028
+ * Hook that returns fullscreen-related state/logic/utils
9029
+ */
9030
+ export const useFullScreen: ({ overflowHeight, }: {
9031
+ overflowHeight?: string | number | undefined;
9032
+ }) => {
9033
+ fullScreenButton: JSX.Element | null;
9034
+ isFullScreen: boolean;
9035
+ onKeyDown: (event: KeyboardEvent<HTMLElement>) => void;
9036
+ };
9037
+ /**
9038
+ * Portalled full screen wrapper
9039
+ */
9040
+ export const EuiCodeBlockFullScreenWrapper: FunctionComponent;
9041
+
9042
+ }
9043
+ declare module '@elastic/eui/src/components/code/code_block_controls.styles' {
9044
+ import { UseEuiTheme } from '@elastic/eui/src/services';
9045
+ export const euiCodeBlockControlsStyles: (euiThemeContext: UseEuiTheme) => {
9046
+ euiCodeBlock__controls: import("@emotion/utils").SerializedStyles;
9047
+ offset: {
9048
+ none: import("@emotion/utils").SerializedStyles;
9049
+ s: import("@emotion/utils").SerializedStyles;
9050
+ m: import("@emotion/utils").SerializedStyles;
9051
+ l: import("@emotion/utils").SerializedStyles;
9052
+ };
9053
+ };
9054
+
9055
+ }
9056
+ declare module '@elastic/eui/src/components/code/code_block_controls' {
9057
+ import { FC, ReactNode } from 'react';
9058
+ import type { EuiCodeBlockPaddingSize } from '@elastic/eui/src/components/code/code_block';
9059
+ export const EuiCodeBlockControls: FC<{
9060
+ controls: ReactNode[];
9061
+ paddingSize: EuiCodeBlockPaddingSize;
9062
+ }>;
9063
+
9064
+ }
9065
+ declare module '@elastic/eui/src/components/code/code_block_virtualized' {
9066
+ import { HTMLAttributes } from 'react';
9067
+ import { RefractorNode } from 'refractor';
9068
+ export const EuiCodeBlockVirtualized: ({ data, rowHeight, overflowHeight, preProps, codeProps, }: {
9069
+ data: RefractorNode[];
9070
+ rowHeight: number;
9071
+ overflowHeight?: string | number | undefined;
9072
+ preProps: HTMLAttributes<HTMLPreElement>;
9073
+ codeProps: HTMLAttributes<HTMLElement>;
9074
+ }) => JSX.Element;
9075
+
8855
9076
  }
8856
9077
  declare module '@elastic/eui/src/components/code/code_block' {
8857
9078
  import { FunctionComponent } from 'react';
8858
9079
  import { ExclusiveUnion } from '@elastic/eui/src/components/common';
8859
- import { EuiCodeSharedProps } from '@elastic/eui/src/components/code/utils'; type PaddingSize = 'none' | 's' | 'm' | 'l'; type FontSize = 's' | 'm' | 'l';
8860
- export const FONT_SIZES: ("s" | "m" | "l")[];
8861
- export const PADDING_SIZES: PaddingSize[]; type VirtualizedOptionProps = ExclusiveUnion<{
9080
+ import { EuiCodeSharedProps } from '@elastic/eui/src/components/code/utils';
9081
+ export const FONT_SIZES: readonly ["s", "m", "l"];
9082
+ export type EuiCodeBlockFontSize = typeof FONT_SIZES[number];
9083
+ export const PADDING_SIZES: readonly ["none", "s", "m", "l"];
9084
+ export type EuiCodeBlockPaddingSize = typeof PADDING_SIZES[number]; type VirtualizedOptionProps = ExclusiveUnion<{
8862
9085
  isVirtualized: true;
8863
9086
  overflowHeight: number | string;
8864
9087
  whiteSpace?: 'pre';
@@ -8872,8 +9095,8 @@ declare module '@elastic/eui/src/components/code/code_block' {
8872
9095
  highlight?: string;
8873
9096
  }
8874
9097
  export type EuiCodeBlockProps = EuiCodeSharedProps & {
8875
- paddingSize?: PaddingSize;
8876
- fontSize?: FontSize;
9098
+ paddingSize?: EuiCodeBlockPaddingSize;
9099
+ fontSize?: EuiCodeBlockFontSize;
8877
9100
  /**
8878
9101
  * Specify how `white-space` inside the element is handled.
8879
9102
  * `pre` respects line breaks/white space but doesn't force them to wrap the line
@@ -12778,43 +13001,46 @@ declare module '@elastic/eui/src/components/date_picker/date_picker' {
12778
13001
  export {};
12779
13002
 
12780
13003
  }
12781
- declare module '@elastic/eui/src/components/tabs/tab' {
12782
- import { MouseEventHandler, AnchorHTMLAttributes, ButtonHTMLAttributes, FunctionComponent, ReactNode } from 'react';
12783
- import { CommonProps, ExclusiveUnion } from '@elastic/eui/src/components/common';
12784
- export interface EuiTabProps extends CommonProps {
12785
- isSelected?: boolean;
12786
- disabled?: boolean;
12787
- /**
12788
- * Places content before the tab content/children.
12789
- * Will be excluded from interactive effects.
12790
- */
12791
- prepend?: ReactNode;
12792
- /**
12793
- * Places content after the tab content/children.
12794
- * Will be excluded from interactive effects.
12795
- */
12796
- append?: ReactNode;
12797
- } type EuiTabPropsForAnchor = EuiTabProps & Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'onClick' | 'href'> & {
12798
- href?: string;
12799
- onClick?: MouseEventHandler<HTMLAnchorElement>;
12800
- }; type EuiTabPropsForButton = EuiTabProps & Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onClick'> & {
12801
- onClick?: MouseEventHandler<HTMLButtonElement>;
13004
+ declare module '@elastic/eui/src/components/tabs/tab.styles' {
13005
+ import { UseEuiTheme } from '@elastic/eui/src/services';
13006
+ export const euiTabStyles: ({ euiTheme }: UseEuiTheme) => {
13007
+ euiTab: import("@emotion/utils").SerializedStyles;
13008
+ s: import("@emotion/utils").SerializedStyles;
13009
+ m: import("@emotion/utils").SerializedStyles;
13010
+ l: import("@emotion/utils").SerializedStyles;
13011
+ xl: import("@emotion/utils").SerializedStyles;
13012
+ expanded: import("@emotion/utils").SerializedStyles;
13013
+ selected: import("@emotion/utils").SerializedStyles;
13014
+ disabled: import("@emotion/utils").SerializedStyles;
13015
+ };
13016
+ export const euiTabContentStyles: (euiThemeContext: UseEuiTheme) => {
13017
+ euiTab__content: import("@emotion/utils").SerializedStyles;
13018
+ s: import("@emotion/utils").SerializedStyles;
13019
+ m: import("@emotion/utils").SerializedStyles;
13020
+ l: import("@emotion/utils").SerializedStyles;
13021
+ xl: import("@emotion/utils").SerializedStyles;
13022
+ selected: import("@emotion/utils").SerializedStyles;
13023
+ disabled: import("@emotion/utils").SerializedStyles;
13024
+ };
13025
+
13026
+ }
13027
+ declare module '@elastic/eui/src/components/tabs/tabs.styles' {
13028
+ import { UseEuiTheme } from '@elastic/eui/src/services';
13029
+ export const euiTabsStyles: (euiThemeContext: UseEuiTheme) => {
13030
+ euiTabs: import("@emotion/utils").SerializedStyles;
13031
+ bottomBorder: import("@emotion/utils").SerializedStyles;
13032
+ s: import("@emotion/utils").SerializedStyles;
13033
+ m: import("@emotion/utils").SerializedStyles;
13034
+ l: import("@emotion/utils").SerializedStyles;
13035
+ xl: import("@emotion/utils").SerializedStyles;
12802
13036
  };
12803
- export type Props = ExclusiveUnion<EuiTabPropsForAnchor, EuiTabPropsForButton>;
12804
- export const EuiTab: FunctionComponent<Props>;
12805
- export {};
12806
13037
 
12807
13038
  }
12808
13039
  declare module '@elastic/eui/src/components/tabs/tabs' {
12809
13040
  import React, { HTMLAttributes, ReactNode } from 'react';
12810
- import { CommonProps } from '@elastic/eui/src/components/common'; const sizeToClassNameMap: {
12811
- s: string;
12812
- m: null;
12813
- l: string;
12814
- xl: string;
12815
- };
12816
- export const SIZES: ("s" | "m" | "l" | "xl")[];
12817
- export type EuiTabsSizes = keyof typeof sizeToClassNameMap;
13041
+ import { CommonProps } from '@elastic/eui/src/components/common';
13042
+ export const SIZES: readonly ["s", "m", "l", "xl"];
13043
+ export type EuiTabSizes = typeof SIZES[number];
12818
13044
  export type EuiTabsProps = CommonProps & HTMLAttributes<HTMLDivElement> & {
12819
13045
  /**
12820
13046
  * ReactNode to render as this component's content
@@ -12833,7 +13059,7 @@ declare module '@elastic/eui/src/components/tabs/tabs' {
12833
13059
  * Sizes affect both font size and overall size.
12834
13060
  * Only use the `xl` size when displayed as page titles.
12835
13061
  */
12836
- size?: EuiTabsSizes;
13062
+ size?: EuiTabSizes;
12837
13063
  };
12838
13064
  export type EuiTabRef = HTMLDivElement;
12839
13065
  export const EuiTabs: React.ForwardRefExoticComponent<CommonProps & React.HTMLAttributes<HTMLDivElement> & {
@@ -12858,12 +13084,48 @@ declare module '@elastic/eui/src/components/tabs/tabs' {
12858
13084
  } & {
12859
13085
  children?: React.ReactNode;
12860
13086
  } & React.RefAttributes<HTMLDivElement>>;
13087
+
13088
+ }
13089
+ declare module '@elastic/eui/src/components/tabs/tab' {
13090
+ import { MouseEventHandler, AnchorHTMLAttributes, ButtonHTMLAttributes, FunctionComponent, ReactNode } from 'react';
13091
+ import { CommonProps, ExclusiveUnion } from '@elastic/eui/src/components/common';
13092
+ import { EuiTabsProps, EuiTabSizes } from '@elastic/eui/src/components/tabs/tabs';
13093
+ export interface EuiTabProps extends CommonProps {
13094
+ isSelected?: boolean;
13095
+ disabled?: boolean;
13096
+ /**
13097
+ * Places content before the tab content/children.
13098
+ * Will be excluded from interactive effects.
13099
+ */
13100
+ prepend?: ReactNode;
13101
+ /**
13102
+ * Places content after the tab content/children.
13103
+ * Will be excluded from interactive effects.
13104
+ */
13105
+ append?: ReactNode;
13106
+ /**
13107
+ * Evenly stretches each tab to fill the
13108
+ * horizontal space
13109
+ */
13110
+ expand?: EuiTabsProps['expand'];
13111
+ /**
13112
+ * Sizes affect both font size and overall size.
13113
+ * Only use the `xl` size when displayed as page titles.
13114
+ */
13115
+ size?: EuiTabSizes;
13116
+ } type EuiTabPropsForAnchor = EuiTabProps & Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'onClick' | 'href'> & {
13117
+ href?: string;
13118
+ onClick?: MouseEventHandler<HTMLAnchorElement>;
13119
+ }; type EuiTabPropsForButton = EuiTabProps & Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onClick'> & {
13120
+ onClick?: MouseEventHandler<HTMLButtonElement>;
13121
+ };
13122
+ export type Props = ExclusiveUnion<EuiTabPropsForAnchor, EuiTabPropsForButton>;
13123
+ export const EuiTab: FunctionComponent<Props>;
12861
13124
  export {};
12862
13125
 
12863
13126
  }
12864
13127
  declare module '@elastic/eui/src/components/tabs/tabbed_content/tabbed_content' {
12865
13128
  import { Component, HTMLAttributes, ReactNode, FocusEvent } from 'react';
12866
- import { EuiTabsSizes } from '@elastic/eui/src/components/tabs/tabs';
12867
13129
  import { EuiTabProps } from '@elastic/eui/src/components/tabs/tab';
12868
13130
  import { CommonProps } from '@elastic/eui/src/components/common';
12869
13131
  /**
@@ -12900,7 +13162,7 @@ declare module '@elastic/eui/src/components/tabs/tabbed_content/tabbed_content'
12900
13162
  * Use this prop if you want to control selection state within the owner component
12901
13163
  */
12902
13164
  selectedTab?: EuiTabbedContentTab;
12903
- size?: EuiTabsSizes;
13165
+ size?: 's' | 'm' | 'l' | 'xl';
12904
13166
  /**
12905
13167
  * Each tab needs id and content properties, so we can associate it with its panel for accessibility.
12906
13168
  * The name property (a node) is also required to display to the user.
@@ -16390,7 +16652,7 @@ declare module '@elastic/eui/src/themes' {
16390
16652
  }
16391
16653
  declare module '@elastic/eui/src/components/provider/cache/cache_provider' {
16392
16654
  import { PropsWithChildren } from 'react';
16393
- import { EmotionCache } from '@emotion/cache';
16655
+ import { EmotionCache } from '@emotion/css';
16394
16656
  export interface EuiCacheProviderProps {
16395
16657
  cache?: false | EmotionCache;
16396
16658
  }
@@ -16403,7 +16665,7 @@ declare module '@elastic/eui/src/components/provider/cache' {
16403
16665
  }
16404
16666
  declare module '@elastic/eui/src/components/provider/provider' {
16405
16667
  import React, { PropsWithChildren } from 'react';
16406
- import { EmotionCache } from '@emotion/react';
16668
+ import { EmotionCache } from '@emotion/css';
16407
16669
  import { EuiGlobalStylesProps } from '@elastic/eui/src/global_styling/reset/global_styles';
16408
16670
  import { EuiThemeProviderProps, EuiThemeSystem } from '@elastic/eui/src/services';
16409
16671
  export interface EuiProviderProps<T> extends Omit<EuiThemeProviderProps<T>, 'children' | 'theme'>, EuiGlobalStylesProps {
@@ -16536,6 +16798,7 @@ declare module '@elastic/eui/src/components/tree_view' {
16536
16798
  declare module '@elastic/eui/src/components/search_bar/search_box' {
16537
16799
  import { Component } from 'react';
16538
16800
  import { EuiFieldSearchProps } from '@elastic/eui/src/components/form';
16801
+ import { EuiSearchBarProps } from '@elastic/eui/src/components/search_bar/search_bar';
16539
16802
  export interface SchemaType {
16540
16803
  strict?: boolean;
16541
16804
  fields?: any;
@@ -16544,6 +16807,11 @@ declare module '@elastic/eui/src/components/search_bar/search_box' {
16544
16807
  export interface EuiSearchBoxProps extends EuiFieldSearchProps {
16545
16808
  query: string;
16546
16809
  onSearch: (queryText: string) => void;
16810
+ hint?: {
16811
+ id: string;
16812
+ isVisible: boolean;
16813
+ setIsVisible: (isVisible: boolean) => void;
16814
+ } & EuiSearchBarProps['hint'];
16547
16815
  } type DefaultProps = Pick<EuiSearchBoxProps, 'placeholder' | 'incremental'>;
16548
16816
  export class EuiSearchBox extends Component<EuiSearchBoxProps> {
16549
16817
  static defaultProps: DefaultProps;
@@ -16690,7 +16958,7 @@ declare module '@elastic/eui/src/components/search_bar/query/ast' {
16690
16958
  getFieldClauses(field?: string): FieldClause[];
16691
16959
  getFieldClause(field: string, predicate: (c: FieldClause) => boolean): FieldClause | undefined;
16692
16960
  hasOrFieldClause(field: string, value?: Value): boolean;
16693
- getOrFieldClause(field: string, value?: Value): FieldClause | undefined;
16961
+ getOrFieldClause(field: string, value?: Value, must?: boolean, operator?: OperatorType): FieldClause | undefined;
16694
16962
  addOrFieldValue(field: string, value: Value, must?: boolean, operator?: OperatorType): _AST;
16695
16963
  removeOrFieldValue(field: string, value: Value): _AST;
16696
16964
  removeOrFieldClauses(field: string): _AST;
@@ -17870,12 +18138,13 @@ declare module '@elastic/eui/src/components/search_bar/search_filters' {
17870
18138
 
17871
18139
  }
17872
18140
  declare module '@elastic/eui/src/components/search_bar/search_bar' {
17873
- import { Component, ReactElement } from 'react';
18141
+ import React, { Component, ReactElement } from 'react';
17874
18142
  import { SchemaType } from '@elastic/eui/src/components/search_bar/search_box';
17875
18143
  import { SearchFilterConfig } from '@elastic/eui/src/components/search_bar/search_filters';
17876
18144
  import { Query } from '@elastic/eui/src/components/search_bar/query';
17877
18145
  import { CommonProps } from '@elastic/eui/src/components/common';
17878
18146
  import { EuiFieldSearchProps } from '@elastic/eui/src/components/form/field_search';
18147
+ import { EuiInputPopoverProps } from '@elastic/eui/src/components/popover';
17879
18148
  export { Query, AST as Ast } from '@elastic/eui/src/components/search_bar/query';
17880
18149
  export type QueryType = Query | string; type Tools = ReactElement | ReactElement[];
17881
18150
  interface ArgsWithQuery {
@@ -17888,7 +18157,7 @@ declare module '@elastic/eui/src/components/search_bar/search_bar' {
17888
18157
  queryText: string;
17889
18158
  error: Error;
17890
18159
  }
17891
- export type EuiSearchBarOnChangeArgs = ArgsWithQuery | ArgsWithError;
18160
+ export type EuiSearchBarOnChangeArgs = ArgsWithQuery | ArgsWithError; type HintPopOverProps = Partial<Pick<EuiInputPopoverProps, 'isOpen' | 'closePopover' | 'fullWidth' | 'disableFocusTrap' | 'panelClassName' | 'panelPaddingSize' | 'panelStyle' | 'panelProps' | 'popoverScreenReaderText' | 'repositionOnScroll' | 'zIndex' | 'data-test-subj'>>;
17892
18161
  export interface EuiSearchBarProps extends CommonProps {
17893
18162
  onChange?: (args: EuiSearchBarOnChangeArgs) => void | boolean;
17894
18163
  /**
@@ -17921,19 +18190,28 @@ declare module '@elastic/eui/src/components/search_bar/search_bar' {
17921
18190
  * Date formatter to use when parsing date values
17922
18191
  */
17923
18192
  dateFormat?: object;
18193
+ /**
18194
+ * Hint to render below the search bar
18195
+ */
18196
+ hint?: {
18197
+ content: React.ReactNode;
18198
+ popoverProps?: HintPopOverProps;
18199
+ };
17924
18200
  }
17925
18201
  interface State {
17926
18202
  query: Query;
17927
18203
  queryText: string;
17928
18204
  error: null | Error;
17929
- } type StateWithOptionalQuery = Omit<State, 'query'> & {
18205
+ isHintVisible: boolean;
18206
+ } type NotifyControllingParent = Pick<State, 'queryText' | 'error'> & {
17930
18207
  query: Query | null;
17931
18208
  };
17932
18209
  export class EuiSearchBar extends Component<EuiSearchBarProps, State> {
17933
18210
  static Query: typeof Query;
18211
+ hintId: string;
17934
18212
  constructor(props: EuiSearchBarProps);
17935
18213
  static getDerivedStateFromProps(nextProps: EuiSearchBarProps, prevState: State): State | null;
17936
- notifyControllingParent(newState: StateWithOptionalQuery): void;
18214
+ notifyControllingParent(newState: NotifyControllingParent): void;
17937
18215
  onSearch: (queryText: string) => void;
17938
18216
  onFiltersChange: (query: Query) => void;
17939
18217
  renderTools(tools?: Tools): JSX.Element | JSX.Element[] | undefined;
@@ -18832,6 +19110,7 @@ declare module '@elastic/eui/src/components/tour/tour.styles' {
18832
19110
  };
18833
19111
  export const euiTourBeaconStyles: ({ euiTheme }: UseEuiTheme) => {
18834
19112
  euiTourBeacon: import("@emotion/utils").SerializedStyles;
19113
+ isOpen: import("@emotion/utils").SerializedStyles;
18835
19114
  right: import("@emotion/utils").SerializedStyles;
18836
19115
  left: import("@emotion/utils").SerializedStyles;
18837
19116
  top: import("@emotion/utils").SerializedStyles;
@@ -19570,6 +19849,11 @@ declare module '@elastic/eui/src/components/basic_table/in_memory_table' {
19570
19849
  defaultFields?: string[];
19571
19850
  isClauseMatcher?: (...args: any) => boolean;
19572
19851
  explain?: boolean;
19852
+ /**
19853
+ * When the search bar Query is controlled and passed to the `search` prop it is by default executed against the items passed to the table to filter them out.
19854
+ * If the filtering is already done before passing the `items` to the table we can disable the execution by setting `enabled` to `false`.
19855
+ */
19856
+ enabled?: boolean;
19573
19857
  };
19574
19858
  /**
19575
19859
  * Insert content between the search bar and table components.
@@ -20008,6 +20292,35 @@ declare module '@elastic/eui/src/components/resizable_container/resizable_collap
20008
20292
  };
20009
20293
  export const EuiResizableCollapseButton: FunctionComponent<EuiResizableCollapseButtonProps>;
20010
20294
 
20295
+ }
20296
+ declare module '@elastic/eui/src/components/resizable_container/resizable_panel.styles' {
20297
+ import { UseEuiTheme } from '@elastic/eui/src/services';
20298
+ export const euiResizablePanelStyles: (euiThemeContext: UseEuiTheme) => {
20299
+ euiResizablePanel: import("@emotion/utils").SerializedStyles;
20300
+ collapsed: import("@emotion/utils").SerializedStyles;
20301
+ paddingSizes: {
20302
+ none: null;
20303
+ xs: import("@emotion/utils").SerializedStyles;
20304
+ s: import("@emotion/utils").SerializedStyles;
20305
+ m: import("@emotion/utils").SerializedStyles;
20306
+ l: import("@emotion/utils").SerializedStyles;
20307
+ xl: import("@emotion/utils").SerializedStyles;
20308
+ };
20309
+ };
20310
+ export const euiResizablePanelContentStyles: (euiThemeContext: UseEuiTheme) => {
20311
+ euiResizablePanel__content: import("@emotion/utils").SerializedStyles;
20312
+ scrollable: import("@emotion/utils").SerializedStyles;
20313
+ collapsedChildren: import("@emotion/utils").SerializedStyles;
20314
+ horizontal: {
20315
+ collapsed: import("@emotion/utils").SerializedStyles;
20316
+ hasCollapsibleButton: import("@emotion/utils").SerializedStyles;
20317
+ };
20318
+ vertical: {
20319
+ collapsed: import("@emotion/utils").SerializedStyles;
20320
+ hasCollapsibleButton: import("@emotion/utils").SerializedStyles;
20321
+ };
20322
+ };
20323
+
20011
20324
  }
20012
20325
  declare module '@elastic/eui/src/components/resizable_container/resizable_panel' {
20013
20326
  import { CSSProperties, ReactNode, FunctionComponent, HTMLAttributes } from 'react';
@@ -20111,21 +20424,26 @@ declare module '@elastic/eui/src/components/resizable_container/helpers' {
20111
20424
  export const useContainerCallbacks: ({ initialState, containerRef, onPanelWidthChange, }: Params) => [EuiResizableContainerActions, EuiResizableContainerState];
20112
20425
  export {};
20113
20426
 
20427
+ }
20428
+ declare module '@elastic/eui/src/components/resizable_container/resizable_container.styles' {
20429
+ export const euiResizableContainerStyles: () => {
20430
+ euiResizableContainer: import("@emotion/utils").SerializedStyles;
20431
+ horizontal: import("@emotion/utils").SerializedStyles;
20432
+ vertical: import("@emotion/utils").SerializedStyles;
20433
+ };
20434
+
20114
20435
  }
20115
20436
  declare module '@elastic/eui/src/components/resizable_container/resizable_container' {
20116
20437
  import { ReactNode, CSSProperties, FunctionComponent, HTMLAttributes, ComponentType } from 'react';
20117
20438
  import { CommonProps } from '@elastic/eui/src/components/common';
20118
20439
  import { EuiResizableButtonProps } from '@elastic/eui/src/components/resizable_container/resizable_button';
20119
20440
  import { EuiResizablePanelProps, ToggleCollapseCallback } from '@elastic/eui/src/components/resizable_container/resizable_panel';
20120
- import { EuiResizableContainerActions, ResizeTrigger } from '@elastic/eui/src/components/resizable_container/types'; const containerDirections: {
20121
- vertical: string;
20122
- horizontal: string;
20123
- };
20441
+ import { EuiResizableContainerActions, ResizeTrigger } from '@elastic/eui/src/components/resizable_container/types';
20124
20442
  export interface EuiResizableContainerProps extends HTMLAttributes<HTMLDivElement>, CommonProps {
20125
20443
  /**
20126
20444
  * Specify the container direction
20127
20445
  */
20128
- direction?: keyof typeof containerDirections;
20446
+ direction?: 'vertical' | 'horizontal';
20129
20447
  /**
20130
20448
  * Pure function which accepts Panel and Resizer components in arguments
20131
20449
  * and returns a component tree
@@ -20150,7 +20468,6 @@ declare module '@elastic/eui/src/components/resizable_container/resizable_contai
20150
20468
  style?: CSSProperties;
20151
20469
  }
20152
20470
  export const EuiResizableContainer: FunctionComponent<EuiResizableContainerProps>;
20153
- export {};
20154
20471
 
20155
20472
  }
20156
20473
  declare module '@elastic/eui/src/components/resizable_container' {
@@ -24965,9 +25282,9 @@ declare module '@elastic/eui' {
24965
25282
  "euiCardSelect.selected": any;
24966
25283
  "euiCardSelect.unavailable": any;
24967
25284
  "euiCardSelect.select": any;
24968
- "euiCodeBlock.copyButton": any;
24969
- "euiCodeBlock.fullscreenCollapse": any;
24970
- "euiCodeBlock.fullscreenExpand": any;
25285
+ "euiCodeBlockCopy.copy": any;
25286
+ "euiCodeBlockFullScreen.fullscreenCollapse": any;
25287
+ "euiCodeBlockFullScreen.fullscreenExpand": any;
24971
25288
  "euiColorPickerSwatch.ariaLabel": any;
24972
25289
  "euiColorPicker.popoverLabel": any;
24973
25290
  "euiColorPicker.colorLabel": any;