@elastic/eui 64.0.1 → 65.0.2

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 (374) hide show
  1. package/dist/eui_charts_theme.js +330 -330
  2. package/dist/eui_charts_theme.js.map +1 -1
  3. package/dist/eui_theme_dark.css +164 -1249
  4. package/dist/eui_theme_dark.json +0 -32
  5. package/dist/eui_theme_dark.json.d.ts +0 -32
  6. package/dist/eui_theme_dark.min.css +1 -1
  7. package/dist/eui_theme_light.css +136 -1221
  8. package/dist/eui_theme_light.json +0 -32
  9. package/dist/eui_theme_light.json.d.ts +0 -32
  10. package/dist/eui_theme_light.min.css +1 -1
  11. package/es/components/accessibility/screen_reader_only/screen_reader_only.styles.js +2 -1
  12. package/es/components/accessibility/skip_link/skip_link.js +4 -54
  13. package/es/components/accordion/accordion.js +2 -1
  14. package/es/components/accordion/accordion.styles.js +17 -27
  15. package/es/components/badge/beta_badge/beta_badge.js +16 -3
  16. package/es/components/basic_table/basic_table.js +1 -1
  17. package/es/components/basic_table/collapsed_item_actions.js +1 -1
  18. package/es/components/basic_table/in_memory_table.js +1 -1
  19. package/es/components/beacon/beacon.styles.js +2 -2
  20. package/es/components/button/button.js +112 -215
  21. package/es/components/button/button_display/_button_display.js +90 -40
  22. package/es/components/button/button_display/_button_display.styles.js +7 -16
  23. package/es/components/button/button_display/_button_display_content.js +6 -3
  24. package/es/components/button/button_display/_button_display_content.styles.js +7 -17
  25. package/es/components/button/button_empty/button_empty.js +63 -53
  26. package/es/components/button/button_empty/index.js +1 -1
  27. package/es/components/button/button_group/button_group.js +4 -12
  28. package/es/components/button/button_group/button_group_button.js +14 -4
  29. package/es/components/button/button_icon/button_icon.js +61 -42
  30. package/es/components/call_out/call_out.styles.js +2 -1
  31. package/es/components/card/card.js +173 -89
  32. package/es/components/card/card.styles.js +136 -0
  33. package/es/components/card/card_select/card_select.js +133 -0
  34. package/es/components/card/card_select/card_select.styles.js +25 -0
  35. package/es/components/card/card_select/index.js +8 -0
  36. package/es/components/card/checkable_card/checkable_card.js +14 -9
  37. package/es/components/card/checkable_card/checkable_card.styles.js +22 -0
  38. package/es/components/comment_list/comment_event.styles.js +1 -1
  39. package/es/components/datagrid/body/data_grid_body.js +7 -6
  40. package/es/components/datagrid/body/data_grid_cell.js +13 -12
  41. package/es/components/datagrid/body/header/data_grid_header_cell.js +7 -6
  42. package/es/components/datagrid/body/header/data_grid_header_row.js +7 -6
  43. package/es/components/datagrid/data_grid.js +7 -6
  44. package/es/components/datagrid/utils/in_memory.js +7 -6
  45. package/es/components/date_picker/auto_refresh/auto_refresh.js +3 -2
  46. package/es/components/date_picker/react-datepicker/original.package.json +124 -0
  47. package/es/components/date_picker/super_date_picker/super_date_picker.js +17 -1
  48. package/es/components/date_picker/super_date_picker/super_update_button.js +11 -1
  49. package/es/components/description_list/description_list_title.js +1 -1
  50. package/es/components/expression/expression.styles.js +13 -31
  51. package/es/components/facet/facet_button.js +5 -4
  52. package/es/components/header/header_links/header_link.js +5 -3
  53. package/es/components/icon/icon.js +2 -1
  54. package/es/components/image/image_button.styles.js +1 -1
  55. package/es/components/image/image_wrapper.styles.js +3 -3
  56. package/es/components/link/link.styles.js +2 -2
  57. package/es/components/list_group/list_group.js +2 -1
  58. package/es/components/list_group/list_group_item.js +2 -1
  59. package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +3 -2
  60. package/es/components/loading/loading_chart.styles.js +16 -26
  61. package/es/components/loading/loading_content.styles.js +2 -2
  62. package/es/components/loading/loading_logo.styles.js +4 -4
  63. package/es/components/loading/loading_spinner.styles.js +6 -6
  64. package/es/components/markdown_editor/markdown_editor_toolbar.js +2 -0
  65. package/es/components/modal/confirm_modal.js +1 -1
  66. package/es/components/notification/notification_event.js +5 -3
  67. package/es/components/notification/notification_event_read_button.js +2 -1
  68. package/es/components/page/page_template.js +2 -2
  69. package/es/components/page_template/inner/page_inner.styles.js +2 -2
  70. package/es/components/page_template/outer/page_outer.styles.js +3 -1
  71. package/es/components/pagination/pagination_button.js +5 -3
  72. package/es/components/panel/panel.js +1 -1
  73. package/es/components/panel/{panel.style.js → panel.styles.js} +2 -2
  74. package/es/components/progress/progress.styles.js +2 -2
  75. package/es/components/title/title.styles.js +2 -2
  76. package/es/components/toast/toast.styles.js +4 -4
  77. package/es/components/tool_tip/icon_tip.js +11 -1
  78. package/es/components/tool_tip/tool_tip.js +18 -6
  79. package/es/global_styling/functions/logicals.js +2 -72
  80. package/es/global_styling/functions/logicals.json +56 -0
  81. package/es/global_styling/functions/typography.js +2 -1
  82. package/es/global_styling/mixins/_color.js +1 -1
  83. package/es/global_styling/mixins/_helpers.js +7 -1
  84. package/es/global_styling/reset/global_styles.js +2 -1
  85. package/es/themes/amsterdam/global_styling/mixins/button.js +165 -16
  86. package/eui.d.ts +1062 -936
  87. package/i18ntokens.json +15 -15
  88. package/lib/components/accessibility/screen_reader_only/screen_reader_only.styles.js +3 -1
  89. package/lib/components/accessibility/skip_link/skip_link.js +4 -54
  90. package/lib/components/accordion/accordion.js +3 -1
  91. package/lib/components/accordion/accordion.styles.js +17 -26
  92. package/lib/components/badge/beta_badge/beta_badge.js +16 -3
  93. package/lib/components/basic_table/basic_table.js +1 -1
  94. package/lib/components/basic_table/collapsed_item_actions.js +1 -1
  95. package/lib/components/basic_table/in_memory_table.js +1 -1
  96. package/lib/components/beacon/beacon.styles.js +1 -1
  97. package/lib/components/button/button.js +124 -229
  98. package/lib/components/button/button_display/_button_display.js +94 -33
  99. package/lib/components/button/button_display/_button_display.styles.js +7 -16
  100. package/lib/components/button/button_display/_button_display_content.js +7 -3
  101. package/lib/components/button/button_display/_button_display_content.styles.js +7 -17
  102. package/lib/components/button/button_empty/button_empty.js +64 -54
  103. package/lib/components/button/button_empty/index.js +0 -6
  104. package/lib/components/button/button_group/button_group.js +4 -12
  105. package/lib/components/button/button_group/button_group_button.js +15 -4
  106. package/lib/components/button/button_icon/button_icon.js +61 -43
  107. package/lib/components/call_out/call_out.styles.js +2 -1
  108. package/lib/components/card/card.js +174 -88
  109. package/lib/components/card/card.styles.js +146 -0
  110. package/lib/components/card/card_select/card_select.js +144 -0
  111. package/lib/components/card/card_select/card_select.styles.js +27 -0
  112. package/lib/components/card/card_select/index.js +19 -0
  113. package/lib/components/card/checkable_card/checkable_card.js +16 -9
  114. package/lib/components/card/checkable_card/checkable_card.styles.js +33 -0
  115. package/lib/components/comment_list/comment_event.styles.js +1 -1
  116. package/lib/components/datagrid/body/data_grid_body.js +7 -6
  117. package/lib/components/datagrid/body/data_grid_cell.js +13 -12
  118. package/lib/components/datagrid/body/header/data_grid_header_cell.js +7 -6
  119. package/lib/components/datagrid/body/header/data_grid_header_row.js +7 -6
  120. package/lib/components/datagrid/data_grid.js +7 -6
  121. package/lib/components/datagrid/utils/in_memory.js +7 -6
  122. package/lib/components/date_picker/auto_refresh/auto_refresh.js +3 -2
  123. package/lib/components/date_picker/react-datepicker/original.package.json +124 -0
  124. package/lib/components/date_picker/super_date_picker/super_date_picker.js +17 -1
  125. package/lib/components/date_picker/super_date_picker/super_update_button.js +11 -1
  126. package/lib/components/description_list/description_list_title.js +1 -1
  127. package/lib/components/expression/expression.styles.js +12 -30
  128. package/lib/components/facet/facet_button.js +4 -3
  129. package/lib/components/header/header_links/header_link.js +5 -3
  130. package/lib/components/icon/icon.js +2 -1
  131. package/lib/components/image/image_button.styles.js +1 -1
  132. package/lib/components/image/image_wrapper.styles.js +2 -2
  133. package/lib/components/link/link.styles.js +1 -1
  134. package/lib/components/list_group/list_group.js +2 -1
  135. package/lib/components/list_group/list_group_item.js +2 -1
  136. package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +3 -2
  137. package/lib/components/loading/loading_chart.styles.js +16 -25
  138. package/lib/components/loading/loading_content.styles.js +1 -1
  139. package/lib/components/loading/loading_logo.styles.js +4 -4
  140. package/lib/components/loading/loading_spinner.styles.js +5 -5
  141. package/lib/components/markdown_editor/markdown_editor_toolbar.js +2 -0
  142. package/lib/components/modal/confirm_modal.js +1 -1
  143. package/lib/components/notification/notification_event.js +5 -3
  144. package/lib/components/notification/notification_event_read_button.js +2 -1
  145. package/lib/components/page/page_template.js +1 -1
  146. package/lib/components/page_template/inner/page_inner.styles.js +2 -2
  147. package/lib/components/page_template/outer/page_outer.styles.js +4 -1
  148. package/lib/components/panel/panel.js +1 -1
  149. package/{optimize/lib/components/panel/panel.style.js → lib/components/panel/panel.styles.js} +1 -1
  150. package/lib/components/progress/progress.styles.js +2 -2
  151. package/lib/components/title/title.styles.js +1 -1
  152. package/lib/components/toast/toast.styles.js +4 -4
  153. package/lib/components/tool_tip/icon_tip.js +11 -1
  154. package/lib/components/tool_tip/tool_tip.js +18 -6
  155. package/lib/global_styling/functions/logicals.js +3 -72
  156. package/lib/global_styling/functions/logicals.json +56 -0
  157. package/lib/global_styling/functions/typography.js +3 -1
  158. package/lib/global_styling/mixins/_color.js +1 -1
  159. package/lib/global_styling/mixins/_helpers.js +9 -2
  160. package/lib/global_styling/reset/global_styles.js +3 -1
  161. package/lib/themes/amsterdam/global_styling/mixins/button.js +178 -24
  162. package/optimize/es/components/accessibility/screen_reader_only/screen_reader_only.styles.js +2 -1
  163. package/optimize/es/components/accordion/accordion.js +2 -1
  164. package/optimize/es/components/accordion/accordion.styles.js +17 -27
  165. package/optimize/es/components/badge/beta_badge/beta_badge.js +6 -3
  166. package/optimize/es/components/beacon/beacon.styles.js +2 -2
  167. package/optimize/es/components/button/button.js +88 -100
  168. package/optimize/es/components/button/button_display/_button_display.js +67 -32
  169. package/optimize/es/components/button/button_display/_button_display.styles.js +7 -16
  170. package/optimize/es/components/button/button_display/_button_display_content.js +5 -2
  171. package/optimize/es/components/button/button_display/_button_display_content.styles.js +7 -17
  172. package/optimize/es/components/button/button_empty/button_empty.js +55 -47
  173. package/optimize/es/components/button/button_empty/index.js +1 -1
  174. package/optimize/es/components/button/button_group/button_group.js +2 -10
  175. package/optimize/es/components/button/button_group/button_group_button.js +13 -3
  176. package/optimize/es/components/button/button_icon/button_icon.js +54 -41
  177. package/optimize/es/components/call_out/call_out.styles.js +2 -1
  178. package/optimize/es/components/card/card.js +97 -31
  179. package/optimize/es/components/card/card.styles.js +136 -0
  180. package/optimize/es/components/card/{card_select.js → card_select/card_select.js} +16 -14
  181. package/optimize/es/components/card/card_select/card_select.styles.js +25 -0
  182. package/optimize/es/components/card/card_select/index.js +8 -0
  183. package/optimize/es/components/card/checkable_card/checkable_card.js +14 -9
  184. package/optimize/es/components/card/checkable_card/checkable_card.styles.js +22 -0
  185. package/optimize/es/components/comment_list/comment_event.styles.js +1 -1
  186. package/optimize/es/components/date_picker/react-datepicker/original.package.json +124 -0
  187. package/optimize/es/components/description_list/description_list_title.js +1 -1
  188. package/optimize/es/components/expression/expression.styles.js +13 -31
  189. package/optimize/es/components/facet/facet_button.js +5 -3
  190. package/optimize/es/components/icon/icon.js +2 -1
  191. package/optimize/es/components/image/image_button.styles.js +1 -1
  192. package/optimize/es/components/image/image_wrapper.styles.js +3 -3
  193. package/optimize/es/components/link/link.styles.js +2 -2
  194. package/optimize/es/components/loading/loading_chart.styles.js +16 -26
  195. package/optimize/es/components/loading/loading_content.styles.js +2 -2
  196. package/optimize/es/components/loading/loading_logo.styles.js +4 -4
  197. package/optimize/es/components/loading/loading_spinner.styles.js +6 -6
  198. package/optimize/es/components/markdown_editor/markdown_editor_toolbar.js +2 -0
  199. package/optimize/es/components/page/page_template.js +2 -2
  200. package/optimize/es/components/page_template/inner/page_inner.styles.js +2 -2
  201. package/optimize/es/components/page_template/outer/page_outer.styles.js +3 -1
  202. package/optimize/es/components/panel/panel.js +1 -1
  203. package/optimize/es/components/panel/{panel.style.js → panel.styles.js} +2 -2
  204. package/optimize/es/components/progress/progress.styles.js +2 -2
  205. package/optimize/es/components/title/title.styles.js +2 -2
  206. package/optimize/es/components/toast/toast.styles.js +4 -4
  207. package/optimize/es/components/tool_tip/tool_tip.js +7 -5
  208. package/optimize/es/global_styling/functions/logicals.js +2 -72
  209. package/optimize/es/global_styling/functions/logicals.json +56 -0
  210. package/optimize/es/global_styling/functions/typography.js +2 -1
  211. package/optimize/es/global_styling/mixins/_color.js +1 -1
  212. package/optimize/es/global_styling/mixins/_helpers.js +7 -1
  213. package/optimize/es/global_styling/reset/global_styles.js +2 -1
  214. package/optimize/es/themes/amsterdam/global_styling/mixins/button.js +155 -16
  215. package/optimize/lib/components/accessibility/screen_reader_only/screen_reader_only.styles.js +3 -1
  216. package/optimize/lib/components/accordion/accordion.js +3 -1
  217. package/optimize/lib/components/accordion/accordion.styles.js +17 -26
  218. package/optimize/lib/components/badge/beta_badge/beta_badge.js +6 -3
  219. package/optimize/lib/components/beacon/beacon.styles.js +1 -1
  220. package/optimize/lib/components/button/button.js +92 -103
  221. package/optimize/lib/components/button/button_display/_button_display.js +71 -25
  222. package/optimize/lib/components/button/button_display/_button_display.styles.js +7 -16
  223. package/optimize/lib/components/button/button_display/_button_display_content.js +6 -2
  224. package/optimize/lib/components/button/button_display/_button_display_content.styles.js +7 -17
  225. package/optimize/lib/components/button/button_empty/button_empty.js +59 -50
  226. package/optimize/lib/components/button/button_empty/index.js +0 -6
  227. package/optimize/lib/components/button/button_group/button_group.js +2 -10
  228. package/optimize/lib/components/button/button_group/button_group_button.js +15 -3
  229. package/optimize/lib/components/button/button_icon/button_icon.js +54 -41
  230. package/optimize/lib/components/call_out/call_out.styles.js +2 -1
  231. package/optimize/lib/components/card/card.js +97 -30
  232. package/optimize/lib/components/card/card.styles.js +146 -0
  233. package/optimize/lib/components/card/{card_select.js → card_select/card_select.js} +16 -14
  234. package/optimize/lib/components/card/card_select/card_select.styles.js +27 -0
  235. package/optimize/lib/components/card/card_select/index.js +19 -0
  236. package/optimize/lib/components/card/checkable_card/checkable_card.js +16 -9
  237. package/optimize/lib/components/card/checkable_card/checkable_card.styles.js +33 -0
  238. package/optimize/lib/components/comment_list/comment_event.styles.js +1 -1
  239. package/optimize/lib/components/date_picker/react-datepicker/original.package.json +124 -0
  240. package/optimize/lib/components/description_list/description_list_title.js +1 -1
  241. package/optimize/lib/components/expression/expression.styles.js +12 -30
  242. package/optimize/lib/components/facet/facet_button.js +4 -2
  243. package/optimize/lib/components/icon/icon.js +2 -1
  244. package/optimize/lib/components/image/image_button.styles.js +1 -1
  245. package/optimize/lib/components/image/image_wrapper.styles.js +2 -2
  246. package/optimize/lib/components/link/link.styles.js +1 -1
  247. package/optimize/lib/components/loading/loading_chart.styles.js +16 -25
  248. package/optimize/lib/components/loading/loading_content.styles.js +1 -1
  249. package/optimize/lib/components/loading/loading_logo.styles.js +4 -4
  250. package/optimize/lib/components/loading/loading_spinner.styles.js +5 -5
  251. package/optimize/lib/components/markdown_editor/markdown_editor_toolbar.js +2 -0
  252. package/optimize/lib/components/page/page_template.js +1 -1
  253. package/optimize/lib/components/page_template/inner/page_inner.styles.js +2 -2
  254. package/optimize/lib/components/page_template/outer/page_outer.styles.js +4 -1
  255. package/optimize/lib/components/panel/panel.js +1 -1
  256. package/{test-env/components/panel/panel.style.js → optimize/lib/components/panel/panel.styles.js} +1 -1
  257. package/optimize/lib/components/progress/progress.styles.js +2 -2
  258. package/optimize/lib/components/title/title.styles.js +1 -1
  259. package/optimize/lib/components/toast/toast.styles.js +4 -4
  260. package/optimize/lib/components/tool_tip/tool_tip.js +7 -5
  261. package/optimize/lib/global_styling/functions/logicals.js +10 -73
  262. package/optimize/lib/global_styling/functions/logicals.json +56 -0
  263. package/optimize/lib/global_styling/functions/typography.js +3 -1
  264. package/optimize/lib/global_styling/mixins/_color.js +1 -1
  265. package/optimize/lib/global_styling/mixins/_helpers.js +9 -2
  266. package/optimize/lib/global_styling/reset/global_styles.js +3 -1
  267. package/optimize/lib/themes/amsterdam/global_styling/mixins/button.js +170 -17
  268. package/package.json +2 -2
  269. package/src/components/badge/beta_badge/_beta_badge.scss +5 -1
  270. package/src/components/button/_index.scss +0 -1
  271. package/src/components/button/button_empty/_button_empty.scss +4 -48
  272. package/src/components/button/button_group/_button_group.scss +0 -1
  273. package/src/components/button/button_group/_button_group_button.scss +55 -83
  274. package/src/components/button/button_icon/_button_icon.scss +3 -103
  275. package/src/components/control_bar/_control_bar.scss +2 -6
  276. package/src/components/datagrid/_data_grid_data_row.scss +7 -0
  277. package/src/components/flyout/_flyout.scss +4 -1
  278. package/src/components/index.scss +0 -1
  279. package/src/global_styling/mixins/_button.scss +55 -11
  280. package/src/global_styling/mixins/_index.scss +0 -1
  281. package/src/themes/amsterdam/global_styling/mixins/_index.scss +0 -2
  282. package/src/themes/amsterdam/overrides/_header.scss +0 -2
  283. package/src/themes/amsterdam/overrides/_index.scss +0 -4
  284. package/test-env/components/accessibility/screen_reader_only/screen_reader_only.styles.js +3 -1
  285. package/test-env/components/accessibility/skip_link/skip_link.js +4 -54
  286. package/test-env/components/accordion/accordion.js +3 -1
  287. package/test-env/components/accordion/accordion.styles.js +17 -26
  288. package/test-env/components/badge/beta_badge/beta_badge.js +16 -3
  289. package/test-env/components/basic_table/basic_table.js +1 -1
  290. package/test-env/components/basic_table/collapsed_item_actions.js +1 -1
  291. package/test-env/components/basic_table/in_memory_table.js +1 -1
  292. package/test-env/components/beacon/beacon.styles.js +1 -1
  293. package/test-env/components/button/button.js +111 -225
  294. package/test-env/components/button/button_display/_button_display.js +93 -32
  295. package/test-env/components/button/button_display/_button_display.styles.js +7 -16
  296. package/test-env/components/button/button_display/_button_display_content.js +7 -3
  297. package/test-env/components/button/button_display/_button_display_content.styles.js +7 -17
  298. package/test-env/components/button/button_empty/button_empty.js +64 -53
  299. package/test-env/components/button/button_empty/index.js +0 -6
  300. package/test-env/components/button/button_group/button_group.js +4 -12
  301. package/test-env/components/button/button_group/button_group_button.js +16 -4
  302. package/test-env/components/button/button_icon/button_icon.js +61 -42
  303. package/test-env/components/call_out/call_out.styles.js +2 -1
  304. package/test-env/components/card/card.js +172 -88
  305. package/test-env/components/card/card.styles.js +146 -0
  306. package/test-env/components/card/card_select/card_select.js +141 -0
  307. package/test-env/components/card/card_select/card_select.styles.js +27 -0
  308. package/test-env/components/card/card_select/index.js +19 -0
  309. package/test-env/components/card/checkable_card/checkable_card.js +16 -9
  310. package/test-env/components/card/checkable_card/checkable_card.styles.js +33 -0
  311. package/test-env/components/comment_list/comment_event.styles.js +1 -1
  312. package/test-env/components/datagrid/body/data_grid_body.js +7 -6
  313. package/test-env/components/datagrid/body/data_grid_cell.js +13 -12
  314. package/test-env/components/datagrid/body/header/data_grid_header_cell.js +7 -6
  315. package/test-env/components/datagrid/body/header/data_grid_header_row.js +7 -6
  316. package/test-env/components/datagrid/data_grid.js +7 -6
  317. package/test-env/components/datagrid/utils/in_memory.js +7 -6
  318. package/test-env/components/date_picker/auto_refresh/auto_refresh.js +3 -2
  319. package/test-env/components/date_picker/react-datepicker/original.package.json +124 -0
  320. package/test-env/components/date_picker/super_date_picker/super_date_picker.js +17 -1
  321. package/test-env/components/date_picker/super_date_picker/super_update_button.js +11 -1
  322. package/test-env/components/description_list/description_list_title.js +1 -1
  323. package/test-env/components/expression/expression.styles.js +12 -30
  324. package/test-env/components/facet/facet_button.js +4 -3
  325. package/test-env/components/header/header_links/header_link.js +5 -3
  326. package/test-env/components/image/image_button.styles.js +1 -1
  327. package/test-env/components/image/image_wrapper.styles.js +2 -2
  328. package/test-env/components/link/link.styles.js +1 -1
  329. package/test-env/components/list_group/list_group.js +2 -1
  330. package/test-env/components/list_group/list_group_item.js +2 -1
  331. package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +3 -2
  332. package/test-env/components/loading/loading_chart.styles.js +16 -25
  333. package/test-env/components/loading/loading_content.styles.js +1 -1
  334. package/test-env/components/loading/loading_logo.styles.js +4 -4
  335. package/test-env/components/loading/loading_spinner.styles.js +5 -5
  336. package/test-env/components/markdown_editor/markdown_editor_toolbar.js +2 -0
  337. package/test-env/components/modal/confirm_modal.js +1 -1
  338. package/test-env/components/notification/notification_event.js +5 -3
  339. package/test-env/components/notification/notification_event_read_button.js +2 -1
  340. package/test-env/components/page/page_template.js +1 -1
  341. package/test-env/components/page_template/inner/page_inner.styles.js +2 -2
  342. package/test-env/components/page_template/outer/page_outer.styles.js +4 -1
  343. package/test-env/components/panel/panel.js +1 -1
  344. package/{lib/components/panel/panel.style.js → test-env/components/panel/panel.styles.js} +1 -1
  345. package/test-env/components/progress/progress.styles.js +2 -2
  346. package/test-env/components/title/title.styles.js +1 -1
  347. package/test-env/components/toast/toast.styles.js +4 -4
  348. package/test-env/components/tool_tip/icon_tip.js +11 -1
  349. package/test-env/components/tool_tip/tool_tip.js +18 -6
  350. package/test-env/global_styling/functions/logicals.js +10 -73
  351. package/test-env/global_styling/functions/logicals.json +56 -0
  352. package/test-env/global_styling/functions/typography.js +3 -1
  353. package/test-env/global_styling/mixins/_color.js +1 -1
  354. package/test-env/global_styling/mixins/_helpers.js +9 -2
  355. package/test-env/global_styling/reset/global_styles.js +3 -1
  356. package/test-env/themes/amsterdam/global_styling/mixins/button.js +170 -17
  357. package/es/components/card/card_select.js +0 -176
  358. package/lib/components/card/card_select.js +0 -187
  359. package/src/components/button/_button.scss +0 -143
  360. package/src/components/button/button_icon/_variables.scss +0 -11
  361. package/src/components/card/_card.scss +0 -239
  362. package/src/components/card/_card_select.scss +0 -21
  363. package/src/components/card/_index.scss +0 -5
  364. package/src/components/card/_mixins.scss +0 -11
  365. package/src/components/card/_variables.scss +0 -25
  366. package/src/components/card/checkable_card/_checkable_card.scss +0 -29
  367. package/src/components/card/checkable_card/_index.scss +0 -1
  368. package/src/global_styling/mixins/_beta_badge.scss +0 -30
  369. package/src/themes/amsterdam/global_styling/mixins/_button.scss +0 -60
  370. package/src/themes/amsterdam/overrides/_button.scss +0 -119
  371. package/src/themes/amsterdam/overrides/_button_empty.scss +0 -20
  372. package/src/themes/amsterdam/overrides/_button_group.scss +0 -91
  373. package/src/themes/amsterdam/overrides/_card.scss +0 -6
  374. package/test-env/components/card/card_select.js +0 -184
package/eui.d.ts CHANGED
@@ -9,72 +9,6 @@ declare module '@elastic/eui/src/services/theme/clone_element' {
9
9
  */
10
10
  export const cloneElementWithCss: (element: any, props: any) => React.ReactElement;
11
11
 
12
- }
13
- declare module '@elastic/eui/src/components/accessibility/screen_reader_only/screen_reader_only.styles' {
14
- export const euiScreenReaderOnly: () => string;
15
- export const euiScreenReaderOnlyStyles: (showOnFocus?: boolean | undefined) => {
16
- euiScreenReaderOnly: import("@emotion/utils").SerializedStyles;
17
- };
18
-
19
- }
20
- declare module '@elastic/eui/src/components/accessibility/screen_reader_only/screen_reader_only' {
21
- import { ReactElement, FunctionComponent } from 'react';
22
- export interface EuiScreenReaderOnlyProps {
23
- /**
24
- * ReactElement to render as this component's content
25
- */
26
- children: ReactElement;
27
- /**
28
- * For keyboard navigation, force content to display visually upon focus.
29
- */
30
- showOnFocus?: boolean;
31
- className?: string;
32
- }
33
- export const EuiScreenReaderOnly: FunctionComponent<EuiScreenReaderOnlyProps>;
34
-
35
- }
36
- declare module '@elastic/eui/src/components/accessibility/screen_reader_only' {
37
- export type { EuiScreenReaderOnlyProps } from '@elastic/eui/src/components/accessibility/screen_reader_only/screen_reader_only';
38
- export { EuiScreenReaderOnly } from '@elastic/eui/src/components/accessibility/screen_reader_only/screen_reader_only';
39
- export { euiScreenReaderOnly } from '@elastic/eui/src/components/accessibility/screen_reader_only/screen_reader_only.styles';
40
-
41
- }
42
- declare module '@elastic/eui/src/components/accessibility/screen_reader_live/screen_reader_live' {
43
- import { AriaAttributes, HTMLAttributes, FunctionComponent, ReactNode } from 'react';
44
- export interface EuiScreenReaderLiveProps {
45
- /**
46
- * Whether to make screen readers aware of the content
47
- */
48
- isActive?: boolean;
49
- /**
50
- * Content for screen readers to announce
51
- */
52
- children?: ReactNode;
53
- /**
54
- * `role` attribute for both live regions.
55
- *
56
- * https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Live_Regions#roles_with_implicit_live_region_attributes
57
- */
58
- role?: HTMLAttributes<HTMLDivElement>['role'];
59
- /**
60
- * `aria-live` attribute for both live regions
61
- */
62
- 'aria-live'?: AriaAttributes['aria-live'];
63
- /**
64
- * On `children`/text change, the region will auto-focus itself, causing screen readers
65
- * to automatically read out the text content. This prop should primarily be used for
66
- * navigation or page changes, where programmatically resetting focus location back to
67
- * a certain part of the page is desired.
68
- */
69
- focusRegionOnTextChange?: boolean;
70
- }
71
- export const EuiScreenReaderLive: FunctionComponent<EuiScreenReaderLiveProps>;
72
-
73
- }
74
- declare module '@elastic/eui/src/components/accessibility/screen_reader_live' {
75
- export { EuiScreenReaderLive } from '@elastic/eui/src/components/accessibility/screen_reader_live/screen_reader_live';
76
- export type { EuiScreenReaderLiveProps } from '@elastic/eui/src/components/accessibility/screen_reader_live/screen_reader_live';
77
-
78
12
  }
79
13
  declare module '@elastic/eui/src/services/keys' {
80
14
  export const ENTER = "Enter";
@@ -1476,507 +1410,54 @@ declare module '@elastic/eui/src/components/icon/named_colors' {
1476
1410
  export function isNamedColor(name: string): boolean;
1477
1411
 
1478
1412
  }
1479
- declare module '@elastic/eui/src/global_styling/mixins/_color' {
1413
+ declare module '@elastic/eui/src/components/icon/icon.styles' {
1480
1414
  import { UseEuiTheme } from '@elastic/eui/src/services';
1481
- export const BACKGROUND_COLORS: readonly ["transparent", "plain", "subdued", "accent", "primary", "success", "warning", "danger"];
1482
- export type _EuiBackgroundColor = typeof BACKGROUND_COLORS[number];
1483
- export interface _EuiBackgroundColorOptions {
1484
- /**
1485
- * Use `opaque` for containers of unknown content.
1486
- * Use `transparent` for interactive states like hover and focus.
1487
- */
1488
- method?: 'opaque' | 'transparent';
1489
- }
1490
- export const euiBackgroundColor: ({ euiTheme, colorMode }: UseEuiTheme, color: _EuiBackgroundColor, { method }?: _EuiBackgroundColorOptions) => string;
1491
- export const useEuiBackgroundColor: (color: _EuiBackgroundColor, { method }?: _EuiBackgroundColorOptions) => string;
1492
- export const useEuiBackgroundColorCSS: () => {
1493
- transparent: import("@emotion/utils").SerializedStyles;
1494
- plain: import("@emotion/utils").SerializedStyles;
1495
- subdued: import("@emotion/utils").SerializedStyles;
1415
+ export const iconLoadingOpacity = 0.05;
1416
+ export const euiIconStyles: ({ euiTheme }: UseEuiTheme) => {
1417
+ euiIcon: import("@emotion/utils").SerializedStyles;
1496
1418
  accent: import("@emotion/utils").SerializedStyles;
1419
+ danger: import("@emotion/utils").SerializedStyles;
1420
+ ghost: import("@emotion/utils").SerializedStyles;
1497
1421
  primary: import("@emotion/utils").SerializedStyles;
1498
1422
  success: import("@emotion/utils").SerializedStyles;
1423
+ subdued: import("@emotion/utils").SerializedStyles;
1424
+ text: import("@emotion/utils").SerializedStyles;
1499
1425
  warning: import("@emotion/utils").SerializedStyles;
1500
- danger: import("@emotion/utils").SerializedStyles;
1501
- };
1502
-
1503
- }
1504
- declare module '@elastic/eui/src/global_styling/functions/logicals' {
1505
- /**
1506
- * EUI utilizes logical CSS properties to enable directional writing-modes.
1507
- * To encourage use of logical properties, we provide a few helper utilities to
1508
- * convert certain directional properties to logical properties.
1509
- * https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties
1510
- */
1511
- export const logicalSide: {
1512
- left: string;
1513
- right: string;
1514
- top: string;
1515
- bottom: string;
1516
- horizontal: string;
1517
- vertical: string;
1518
- };
1519
- export const LOGICAL_SIDES: ("left" | "right" | "top" | "bottom" | "horizontal" | "vertical")[];
1520
- export type LogicalSides = typeof LOGICAL_SIDES[number];
1521
- export const logicals: {
1522
- 'border-horizontal': string;
1523
- 'border-horizontal-color': string;
1524
- 'border-horizontal-width': string;
1525
- 'border-horizontal-style': string;
1526
- 'border-vertical': string;
1527
- 'border-vertical-color': string;
1528
- 'border-vertical-width': string;
1529
- 'border-vertical-style': string;
1530
- 'border-bottom': string;
1531
- 'border-bottom-color': string;
1532
- 'border-bottom-style': string;
1533
- 'border-bottom-width': string;
1534
- 'border-top': string;
1535
- 'border-top-color': string;
1536
- 'border-top-style': string;
1537
- 'border-top-width': string;
1538
- 'border-right': string;
1539
- 'border-right-color': string;
1540
- 'border-right-style': string;
1541
- 'border-right-width': string;
1542
- 'border-left': string;
1543
- 'border-left-color': string;
1544
- 'border-left-style': string;
1545
- 'border-left-width': string;
1546
- 'border-top-left-radius': string;
1547
- 'border-top-right-radius': string;
1548
- 'border-bottom-left-radius': string;
1549
- 'border-bottom-right-radius': string;
1550
- 'overflow-x': string;
1551
- 'overflow-y': string;
1552
- height: string;
1553
- width: string;
1554
- 'max-height': string;
1555
- 'max-width': string;
1556
- 'min-height': string;
1557
- 'min-width': string;
1558
- top: string;
1559
- right: string;
1560
- bottom: string;
1561
- left: string;
1562
- horizontal: string;
1563
- vertical: string;
1564
- inset: string;
1565
- 'padding-left': string;
1566
- 'padding-right': string;
1567
- 'padding-top': string;
1568
- 'padding-bottom': string;
1569
- 'padding-horizontal': string;
1570
- 'padding-vertical': string;
1571
- 'margin-left': string;
1572
- 'margin-right': string;
1573
- 'margin-top': string;
1574
- 'margin-bottom': string;
1575
- 'margin-horizontal': string;
1576
- 'margin-vertical': string;
1577
- };
1578
- 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")[];
1579
- export type LogicalProperties = typeof LOGICAL_PROPERTIES[number];
1580
- /**
1581
- *
1582
- * @param property A string that is a valid CSS logical property
1583
- * @param value String to output as the property value
1584
- * @returns `string` Returns the logical CSS property version for the given `property: value` pair
1585
- */
1586
- export const logicalCSS: (property: LogicalProperties, value?: any) => string;
1587
- /**
1588
- * Some logical properties are not yet fully supported by all browsers.
1589
- * For those cases, we should use the old property as a fallback for
1590
- * browsers missing support, while allowing supporting browsers to use
1591
- * the logical properties.
1592
- *
1593
- * Examples:
1594
- * https://caniuse.com/?search=overflow-block
1595
- * https://caniuse.com/mdn-css_properties_float_flow_relative_values
1596
- */
1597
- export const logicalCSSWithFallback: (property: LogicalProperties, value?: any) => string;
1598
- /**
1599
- *
1600
- * @param property A string that is a valid CSS logical property
1601
- * @param value String to output as the property value
1602
- * @returns `object` Returns the logical CSS property version for the given `property: value` pair
1603
- */
1604
- export const logicalStyle: (property: LogicalProperties, value?: any) => {
1605
- [x: string]: any;
1606
- };
1607
- /**
1608
- *
1609
- * @param width A string value for the LTR width
1610
- * @param height A string value for the LTR height
1611
- * @returns `string` Returns the logical CSS properties for height and width
1612
- */
1613
- export const logicalSizeCSS: (width: any, height: any) => string;
1614
- /**
1615
- *
1616
- * @param width A string value for the LTR width
1617
- * @param height A string value for the LTR height
1618
- * @returns `object` Returns the logical CSS properties for height and width
1619
- */
1620
- export const logicalSizeStyle: (width: any, height: any) => {
1621
- [x: string]: any;
1622
- };
1623
- export const logicalText: {
1624
- 'text-align': {
1625
- left: string;
1626
- center: string;
1627
- right: string;
1628
- };
1629
- };
1630
- export const LOGICAL_TEXT_ALIGNMENT: ("left" | "right" | "center")[];
1631
- export type LogicalText = typeof LOGICAL_TEXT_ALIGNMENT[number];
1632
- /**
1633
- *
1634
- * @param property A string that is a valid CSS logical property
1635
- * @param value String to output as the property value
1636
- * @returns `string` Returns the logical CSS property version for the given `property: value` pair
1637
- */
1638
- export const logicalTextAlignCSS: (value: LogicalText) => string;
1639
- /**
1640
- *
1641
- * @param property A string that is a valid CSS logical property
1642
- * @param value String to output as the property value
1643
- * @returns `object` Returns the logical CSS property version for the given `property: value` pair
1644
- */
1645
- export const logicalTextAlignStyle: (value: LogicalText) => {
1646
- textAlign: string;
1426
+ inherit: import("@emotion/utils").SerializedStyles;
1427
+ default: import("@emotion/utils").SerializedStyles;
1428
+ customColor: import("@emotion/utils").SerializedStyles;
1429
+ logoElasticOutline: import("@emotion/utils").SerializedStyles;
1430
+ original: import("@emotion/utils").SerializedStyles;
1431
+ s: import("@emotion/utils").SerializedStyles;
1432
+ m: import("@emotion/utils").SerializedStyles;
1433
+ l: import("@emotion/utils").SerializedStyles;
1434
+ xl: import("@emotion/utils").SerializedStyles;
1435
+ xxl: import("@emotion/utils").SerializedStyles;
1436
+ app: import("@emotion/utils").SerializedStyles;
1437
+ logo: import("@emotion/utils").SerializedStyles;
1438
+ isLoading: import("@emotion/utils").SerializedStyles;
1439
+ isLoaded: import("@emotion/utils").SerializedStyles;
1647
1440
  };
1648
1441
 
1649
1442
  }
1650
- declare module '@elastic/eui/src/global_styling/functions/size' {
1651
- /**
1652
- * Calculates the `px` value based on a scale multiplier
1653
- * @param scale - The font scale multiplier
1654
- * *
1655
- * @param themeOrBase - Theme base value
1656
- * *
1657
- * @returns string - Rem unit aligned to baseline
1658
- */
1659
- export const sizeToPixel: (scale?: number) => (themeOrBase: number | {
1660
- [key: string]: any;
1661
- base: number;
1662
- }) => string;
1663
-
1664
- }
1665
- declare module '@elastic/eui/src/services/theme/hooks' {
1666
- import React from 'react';
1667
- import { EuiThemeColorModeStandard, EuiThemeModifications, EuiThemeComputed } from '@elastic/eui/src/services/theme/types';
1668
- export interface UseEuiTheme<T extends {} = {}> {
1669
- euiTheme: EuiThemeComputed<T>;
1670
- colorMode: EuiThemeColorModeStandard;
1671
- modifications: EuiThemeModifications<T>;
1672
- }
1673
- export const useEuiTheme: <T extends {} = {}>() => UseEuiTheme<T>;
1674
- export interface WithEuiThemeProps<P = {}> {
1675
- theme: UseEuiTheme<P>;
1676
- }
1677
- export const withEuiTheme: <T extends {} = {}, U extends {} = {}>(Component: React.ComponentType<T & WithEuiThemeProps<U>>) => React.ForwardRefExoticComponent<React.PropsWithoutRef<Omit<T, "theme">> & React.RefAttributes<Omit<T, "theme">>>;
1678
-
1679
- }
1680
- declare module '@elastic/eui/src/global_styling/functions/typography' {
1681
- import { _EuiThemeFontScale, _EuiThemeFontSizeMeasurement } from '@elastic/eui/src/global_styling/variables/typography';
1682
- import { UseEuiTheme } from '@elastic/eui/src/services/theme/hooks';
1683
- export interface _FontScaleOptions {
1443
+ declare module '@elastic/eui/src/components/icon/icon' {
1444
+ import React, { PureComponent, ComponentType, SVGAttributes } from 'react';
1445
+ import { CommonProps } from '@elastic/eui/src/components/common';
1446
+ import { typeToPathMap } from '@elastic/eui/src/components/icon/icon_map';
1447
+ import { WithEuiThemeProps } from '@elastic/eui/src/services';
1448
+ export { COLORS } from '@elastic/eui/src/components/icon/named_colors';
1449
+ import { NamedColor } from '@elastic/eui/src/components/icon/named_colors';
1450
+ export const TYPES: ("string" | "number" | "function" | "link" | "menu" | "filter" | "image" | "stop" | "search" | "temperature" | "color" | "accessibility" | "aggregate" | "alert" | "analyzeEvent" | "annotation" | "apps" | "arrowStart" | "arrowEnd" | "asterisk" | "beaker" | "bell" | "bellSlash" | "bolt" | "branch" | "branchUser" | "broom" | "brush" | "bug" | "bullseye" | "calendar" | "check" | "checkInCircleFilled" | "cheer" | "clock" | "cloudDrizzle" | "cloudStormy" | "cloudSunny" | "cluster" | "compute" | "console" | "container" | "continuityAbove" | "continuityAboveBelow" | "continuityBelow" | "continuityWithin" | "copy" | "cross" | "crossInACircleFilled" | "crosshairs" | "currency" | "cut" | "database" | "desktop" | "document" | "documentEdit" | "documentation" | "documents" | "dot" | "doubleArrowLeft" | "doubleArrowRight" | "download" | "editorDistributeHorizontal" | "editorDistributeVertical" | "editorItemAlignBottom" | "editorItemAlignCenter" | "editorItemAlignLeft" | "editorItemAlignMiddle" | "editorItemAlignRight" | "editorItemAlignTop" | "editorPositionBottomLeft" | "editorPositionBottomRight" | "editorPositionTopLeft" | "editorPositionTopRight" | "email" | "empty" | "eql" | "eraser" | "exit" | "expand" | "expandMini" | "eye" | "flag" | "fold" | "frameNext" | "framePrevious" | "fullScreenExit" | "gear" | "glasses" | "globe" | "grab" | "grid" | "heart" | "heatmap" | "help" | "home" | "iInCircle" | "inputOutput" | "inspect" | "invert" | "ip" | "keyboard" | "kubernetesNode" | "kubernetesPod" | "layers" | "lettering" | "lineDashed" | "lineDotted" | "lineSolid" | "list" | "lock" | "lockOpen" | "magnet" | "magnifyWithExclamation" | "magnifyWithMinus" | "magnifyWithPlus" | "memory" | "menuDown" | "menuLeft" | "menuRight" | "menuUp" | "merge" | "minimize" | "minus" | "mobile" | "moon" | "namespace" | "nested" | "node" | "offline" | "online" | "package" | "pageSelect" | "pagesSelect" | "partial" | "pause" | "payment" | "pencil" | "percent" | "pin" | "play" | "playFilled" | "plus" | "popout" | "push" | "quote" | "refresh" | "reporter" | "save" | "scale" | "securitySignal" | "securitySignalDetected" | "securitySignalResolved" | "sessionViewer" | "shard" | "share" | "snowflake" | "sortLeft" | "sortRight" | "sortable" | "starPlusEmpty" | "starPlusFilled" | "stats" | "storage" | "submodule" | "sun" | "symlink" | "tableOfContents" | "tag" | "tear" | "timeline" | "timeRefresh" | "timeslider" | "training" | "trash" | "unfold" | "unlink" | "user" | "userAvatar" | "users" | "vector" | "videoPlayer" | "wordWrap" | "wordWrapDisabled" | "wrench" | "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" | "addDataApp" | "advancedSettingsApp" | "agentApp" | "apmApp" | "apmTrace" | "appSearchApp" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowUp" | "auditbeatApp" | "boxesHorizontal" | "boxesVertical" | "canvasApp" | "casesApp" | "classificationJob" | "codeApp" | "consoleApp" | "controlsHorizontal" | "controlsVertical" | "copyClipboard" | "createAdvancedJob" | "createMultiMetricJob" | "createPopulationJob" | "createSingleMetricJob" | "crossClusterReplicationApp" | "dashboardApp" | "dataVisualizer" | "devToolsApp" | "discoverApp" | "editorAlignCenter" | "editorAlignLeft" | "editorAlignRight" | "editorBold" | "editorChecklist" | "editorCodeBlock" | "editorComment" | "editorHeading" | "editorItalic" | "editorLink" | "editorOrderedList" | "editorRedo" | "editorStrike" | "editorTable" | "editorUnderline" | "editorUndo" | "editorUnorderedList" | "emsApp" | "exportAction" | "eyeClosed" | "faceHappy" | "faceNeutral" | "faceSad" | "filebeatApp" | "fleetApp" | "folderCheck" | "folderClosed" | "folderExclamation" | "folderOpen" | "fullScreen" | "gisApp" | "grabHorizontal" | "graphApp" | "grokApp" | "heartbeatApp" | "importAction" | "indexClose" | "indexEdit" | "indexFlush" | "indexManagementApp" | "indexMapping" | "indexOpen" | "indexPatternApp" | "indexRollupApp" | "indexRuntime" | "indexSettings" | "kqlField" | "kqlFunction" | "kqlOperand" | "kqlSelector" | "kqlValue" | "lensApp" | "listAdd" | "logoAWS" | "logoAWSMono" | "logoAerospike" | "logoApache" | "logoAppSearch" | "logoAzure" | "logoAzureMono" | "logoBeats" | "logoBusinessAnalytics" | "logoCeph" | "logoCloud" | "logoCloudEnterprise" | "logoCode" | "logoCodesandbox" | "logoCouchbase" | "logoDocker" | "logoDropwizard" | "logoElastic" | "logoElasticStack" | "logoElasticsearch" | "logoEnterpriseSearch" | "logoEtcd" | "logoGCP" | "logoGCPMono" | "logoGithub" | "logoGmail" | "logoGolang" | "logoGoogleG" | "logoHAproxy" | "logoIBM" | "logoIBMMono" | "logoKafka" | "logoKibana" | "logoKubernetes" | "logoLogging" | "logoLogstash" | "logoMaps" | "logoMemcached" | "logoMetrics" | "logoMongodb" | "logoMySQL" | "logoNginx" | "logoObservability" | "logoOsquery" | "logoPhp" | "logoPostgres" | "logoPrometheus" | "logoRabbitmq" | "logoRedis" | "logoSecurity" | "logoSiteSearch" | "logoSketch" | "logoSlack" | "logoUptime" | "logoWebhook" | "logoWindows" | "logoWorkplaceSearch" | "logsApp" | "logstashFilter" | "logstashIf" | "logstashInput" | "logstashOutput" | "logstashQueue" | "machineLearningApp" | "managementApp" | "mapMarker" | "metricbeatApp" | "metricsApp" | "minusInCircle" | "minusInCircleFilled" | "monitoringApp" | "notebookApp" | "outlierDetectionJob" | "packetbeatApp" | "paperClip" | "pinFilled" | "pipelineApp" | "plusInCircle" | "plusInCircleFilled" | "questionInCircle" | "recentlyViewedApp" | "regressionJob" | "reportingApp" | "returnKey" | "savedObjectsApp" | "searchProfilerApp" | "securityAnalyticsApp" | "securityApp" | "sortDown" | "sortUp" | "spacesApp" | "sqlApp" | "starEmpty" | "starEmptySpace" | "starFilled" | "starFilledSpace" | "starMinusEmpty" | "starMinusFilled" | "stopFilled" | "stopSlash" | "swatchInput" | "tableDensityCompact" | "tableDensityExpanded" | "tableDensityNormal" | "timelionApp" | "upgradeAssistantApp" | "uptimeApp" | "usersRolesApp" | "visArea" | "visAreaStacked" | "visBarHorizontal" | "visBarHorizontalStacked" | "visBarVertical" | "visBarVerticalStacked" | "visGauge" | "visGoal" | "visLine" | "visMapCoordinate" | "visMapRegion" | "visMetric" | "visPie" | "visTable" | "visTagCloud" | "visText" | "visTimelion" | "visVega" | "visVisualBuilder" | "visualizeApp" | "watchesApp" | "workplaceSearchApp")[];
1451
+ export type EuiIconType = keyof typeof typeToPathMap;
1452
+ export type IconType = EuiIconType | string | ComponentType;
1453
+ export type IconColor = string | NamedColor;
1454
+ export const SIZES: readonly ["original", "s", "m", "l", "xl", "xxl"];
1455
+ export type IconSize = typeof SIZES[number];
1456
+ export type EuiIconProps = CommonProps & Omit<SVGAttributes<SVGElement>, 'type' | 'color' | 'size'> & {
1684
1457
  /**
1685
- * The returned string measurement
1458
+ * `Enum` is any of the named icons listed in the docs, `string` is usually a URL to an SVG file, and `elementType` is any React SVG component
1686
1459
  */
1687
- measurement?: _EuiThemeFontSizeMeasurement;
1688
- /**
1689
- * An additional custom scale multiplier to use against the current scale
1690
- * This parameter can be used (e.g. by EuiText sizes) to get sizes of text smaller than the default
1691
- */
1692
- customScale?: _EuiThemeFontScale;
1693
- }
1694
- /**
1695
- * Calculates the font-size value based on the provided scale key
1696
- * @param scale - The font scale key
1697
- * @param theme - Requires the `base` and `font` keys
1698
- * @param options - Optional parameters - see _FontScaleOptions
1699
- *
1700
- * @returns string - Calculated font-size value
1701
- */
1702
- export function euiFontSizeFromScale(scale: _EuiThemeFontScale, { base, font }: UseEuiTheme['euiTheme'], { measurement, customScale }?: _FontScaleOptions): string;
1703
- /**
1704
- * Calculates the line-height to the closest multiple of the baseline
1705
- * EX: A proper line-height for text is 1.5 times the font-size.
1706
- * If our base font size (euiFontSize) is 16, and our baseline is 4. To ensure the
1707
- * text stays on the baseline, we pass a multiplier to calculate a line-height.
1708
- * @param scale - The font scale key
1709
- * @param theme - Requires the `base` and `font` keys
1710
- * @param options - Optional parameters - see _FontScaleOptions
1711
- *
1712
- * @returns string - Calculated line-height value aligned to baseline
1713
- */
1714
- export function euiLineHeightFromBaseline(scale: _EuiThemeFontScale, { base, font }: UseEuiTheme['euiTheme'], { measurement, customScale }?: _FontScaleOptions): string;
1715
- /**
1716
- * Text weight shifting
1717
- *
1718
- * When changing the font-weight based on the state of the component,
1719
- * this mixin will ensure that the sizing is dependent on the boldest
1720
- * weight so it doesn't shift sibling content.
1721
- */
1722
- export const euiTextShift: (fontWeight: "bold" | "medium" | "light" | "regular" | "semiBold" | undefined, attribute: string | undefined, euiTheme: UseEuiTheme['euiTheme']) => string;
1723
-
1724
- }
1725
- declare module '@elastic/eui/src/global_styling/functions' {
1726
- export * from '@elastic/eui/src/global_styling/functions/logicals';
1727
- export * from '@elastic/eui/src/global_styling/functions/size';
1728
- export * from '@elastic/eui/src/global_styling/functions/typography';
1729
-
1730
- }
1731
- declare module '@elastic/eui/src/global_styling/mixins/_helpers' {
1732
- import { CSSProperties } from 'react';
1733
- import { UseEuiTheme } from '@elastic/eui/src/services/theme';
1734
- /**
1735
- * Set scroll bar appearance on Chrome (and firefox).
1736
- * All parameters are optional and default to specific global settings.
1737
- */
1738
- export interface EuiScrollBarStyles {
1739
- thumbColor?: CSSProperties['backgroundColor'];
1740
- trackColor?: CSSProperties['backgroundColor'];
1741
- /**
1742
- * Defaults to `thin`. Use `auto` only for large page scrollbars
1743
- */
1744
- width?: CSSProperties['scrollbarWidth'];
1745
- /**
1746
- * Overall width (height for horizontal scrollbars)
1747
- */
1748
- size?: CSSProperties['width'];
1749
- /**
1750
- * Corner sizes are usually determined by `width` and
1751
- * are used as an inset border and therefore a smaller corner size means a larger thumb
1752
- */
1753
- corner?: CSSProperties['borderWidth'];
1754
- }
1755
- export const euiScrollBarStyles: ({ euiTheme: { colors, size } }: UseEuiTheme, { thumbColor: _thumbColor, trackColor, width, size: _size, corner: _corner, }?: EuiScrollBarStyles) => string;
1756
- export const useEuiScrollBar: (options?: EuiScrollBarStyles | undefined) => string;
1757
- /**
1758
- * 1. Focus rings shouldn't be visible on scrollable regions, but a11y requires them to be focusable.
1759
- * Browser's supporting `:focus-visible` will still show outline on keyboard focus only.
1760
- * Others like Safari, won't show anything at all.
1761
- */
1762
- interface _EuiYScroll {
1763
- height?: CSSProperties['height'];
1764
- }
1765
- export const euiYScroll: (euiTheme: UseEuiTheme, { height }?: _EuiYScroll) => string;
1766
- export const useEuiYScroll: ({ height }?: _EuiYScroll) => string;
1767
- export const euiYScrollWithShadows: (euiTheme: UseEuiTheme, { height }?: _EuiYScroll) => string;
1768
- export const useEuiYScrollWithShadows: ({ height }?: _EuiYScroll) => string;
1769
- export const euiXScroll: (euiTheme: UseEuiTheme) => string;
1770
- export const useEuiXScroll: () => string;
1771
- export const euiXScrollWithShadows: (euiTheme: UseEuiTheme) => string;
1772
- export const useEuiXScrollWithShadows: () => string;
1773
- interface EuiScrollOverflowStyles {
1774
- direction?: 'y' | 'x';
1775
- mask?: boolean;
1776
- }
1777
- export const euiOverflowScroll: (euiTheme: UseEuiTheme, { direction, mask }?: EuiScrollOverflowStyles) => string;
1778
- export const useEuiOverflowScroll: (direction: EuiScrollOverflowStyles['direction'], mask?: EuiScrollOverflowStyles['mask']) => string;
1779
- /**
1780
- * For quickly applying a full-height element whether using flex or not
1781
- */
1782
- export const euiFullHeight: () => string;
1783
- export {};
1784
-
1785
- }
1786
- declare module '@elastic/eui/src/global_styling/mixins/_padding' {
1787
- import { UseEuiTheme } from '@elastic/eui/src/services/theme';
1788
- export const PADDING_SIZES: readonly ["none", "xs", "s", "m", "l", "xl"];
1789
- export type EuiPaddingSize = typeof PADDING_SIZES[number];
1790
- export const euiPaddingSize: ({ euiTheme }: UseEuiTheme, size: EuiPaddingSize) => string | null;
1791
- export const useEuiPaddingSize: (size: EuiPaddingSize) => string | null;
1792
- export const useEuiPaddingCSS: (side?: "left" | "right" | "top" | "bottom" | "horizontal" | "vertical" | undefined) => {
1793
- none: null;
1794
- xs: import("@emotion/utils").SerializedStyles;
1795
- s: import("@emotion/utils").SerializedStyles;
1796
- m: import("@emotion/utils").SerializedStyles;
1797
- l: import("@emotion/utils").SerializedStyles;
1798
- xl: import("@emotion/utils").SerializedStyles;
1799
- };
1800
-
1801
- }
1802
- declare module '@elastic/eui/src/global_styling/mixins/_states' {
1803
- import { CSSProperties } from 'react';
1804
- import { UseEuiTheme } from '@elastic/eui/src/services';
1805
- export type _EuiFocusRingOffset = 'inset' | 'outset' | 'center' | CSSProperties['outlineOffset'];
1806
- /**
1807
- * It is best practice to utilize the browser's default `outline` property for handling focus rings.
1808
- * However, some components need to be forced to have the same behavior, or adjust the display.
1809
- * This function re-applies the same default outline with a couple parameters
1810
- * @param euiTheme UseEuiTheme.euiTheme
1811
- * @param offset Accepts a specific measurement or 'inset', 'outset' or 'center' to adjust outline position
1812
- * @param color Accepts any CSS color, **Note: only works in -webkit-**
1813
- */
1814
- export const euiFocusRing: ({ euiTheme }: UseEuiTheme, offset?: _EuiFocusRingOffset, options?: {
1815
- color?: CSSProperties['outlineColor'];
1816
- } | undefined) => string;
1817
- export const useEuiFocusRing: (offset?: _EuiFocusRingOffset, color?: CSSProperties['outlineColor']) => string;
1818
-
1819
- }
1820
- declare module '@elastic/eui/src/global_styling/mixins/_typography' {
1821
- import { CSSProperties } from 'react';
1822
- import { _FontScaleOptions } from '@elastic/eui/src/global_styling/functions/typography';
1823
- import { UseEuiTheme } from '@elastic/eui/src/services/theme/hooks';
1824
- import { _EuiThemeFontScale } from '@elastic/eui/src/global_styling/variables/typography';
1825
- export type EuiThemeFontSize = {
1826
- fontSize: CSSProperties['fontSize'];
1827
- lineHeight: CSSProperties['lineHeight'];
1828
- };
1829
- /**
1830
- * Returns font-size and line-height
1831
- */
1832
- export const euiFontSize: ({ euiTheme }: UseEuiTheme, scale: _EuiThemeFontScale, options?: _FontScaleOptions | undefined) => EuiThemeFontSize;
1833
- export const useEuiFontSize: (scale: _EuiThemeFontScale, options?: _FontScaleOptions | undefined) => EuiThemeFontSize;
1834
- /**
1835
- * Force text to wrap on natural word breaks (e.g. spaces & hyphens)
1836
- * https://css-tricks.com/snippets/css/prevent-long-urls-from-breaking-out-of-container/
1837
- */
1838
- export const euiTextBreakWord: () => string;
1839
- /**
1840
- * Prevent text from wrapping onto multiple lines, and truncate with an ellipsis.
1841
- */
1842
- export const euiTextTruncate: (maxWidth?: CSSProperties['maxWidth']) => string;
1843
- /**
1844
- * Fixed-width numbers for tabular data
1845
- */
1846
- export const euiNumberFormat: ({ euiTheme }: UseEuiTheme) => string;
1847
- export const useEuiNumberFormat: () => string;
1848
-
1849
- }
1850
- declare module '@elastic/eui/src/services/breakpoint/_sorting' {
1851
- import { _EuiThemeBreakpoints } from '@elastic/eui/src/global_styling/variables/breakpoint';
1852
- export const sortMapByLargeToSmallValues: (breakpointsMap: _EuiThemeBreakpoints) => {
1853
- [k: string]: number;
1854
- };
1855
- export const sortMapBySmallToLargeValues: (breakpointsMap: _EuiThemeBreakpoints) => {
1856
- [k: string]: number;
1857
- };
1858
-
1859
- }
1860
- declare module '@elastic/eui/src/global_styling/variables/shadow' {
1861
- export const EuiThemeShadowSizes: readonly ["xs", "s", "m", "l", "xl"];
1862
- export type _EuiThemeShadowSize = typeof EuiThemeShadowSizes[number];
1863
- /**
1864
- * Shadow t-shirt sizes descriptions
1865
- */
1866
- export const _EuiShadowSizesDescriptions: Record<_EuiThemeShadowSize, string>;
1867
- export interface _EuiThemeShadowCustomColor {
1868
- color?: string;
1869
- property?: 'box-shadow' | 'filter';
1870
- }
1871
-
1872
- }
1873
- declare module '@elastic/eui/src/global_styling/variables' {
1874
- export * from '@elastic/eui/src/global_styling/variables/animations';
1875
- export * from '@elastic/eui/src/global_styling/variables/borders';
1876
- export * from '@elastic/eui/src/global_styling/variables/breakpoint';
1877
- export * from '@elastic/eui/src/global_styling/variables/colors';
1878
- export * from '@elastic/eui/src/global_styling/variables/levels';
1879
- export * from '@elastic/eui/src/global_styling/variables/size';
1880
- export * from '@elastic/eui/src/global_styling/variables/shadow';
1881
- export * from '@elastic/eui/src/global_styling/variables/states';
1882
- export * from '@elastic/eui/src/global_styling/variables/typography';
1883
-
1884
- }
1885
- declare module '@elastic/eui/src/global_styling/mixins/_responsive' {
1886
- import { UseEuiTheme } from '@elastic/eui/src/services/theme/hooks';
1887
- import { _EuiThemeBreakpoint } from '@elastic/eui/src/global_styling/variables';
1888
- /**
1889
- * Generates a CSS media query rule string based on the input breakpoint ranges.
1890
- * Examples with default theme breakpoints:
1891
- *
1892
- * euiBreakpoint(['s']) becomes `@media only screen and (min-width: 575px) and (max-width: 767px)`
1893
- * euiBreakpoint(['s', 'l']) becomes `@media only screen and (min-width: 575px) and (max-width: 1199px)`
1894
- *
1895
- * Use the smallest and largest sizes to generate media queries with only min/max-width.
1896
- * Examples with default theme breakpoints:
1897
- *
1898
- * euiBreakpoint(['xs', 'm']) becomes `@media only screen and (max-width: 991px)`
1899
- * euiBreakpoint(['l', 'xl']) becomes `@media only screen and (min-width: 992px)`
1900
- */
1901
- export const euiBreakpoint: ({ euiTheme }: UseEuiTheme, sizes: [_EuiThemeBreakpoint, ..._EuiThemeBreakpoint[]]) => string;
1902
- export const useEuiBreakpoint: (sizes: [_EuiThemeBreakpoint, ..._EuiThemeBreakpoint[]]) => string;
1903
-
1904
- }
1905
- declare module '@elastic/eui/src/global_styling/mixins' {
1906
- export * from '@elastic/eui/src/global_styling/mixins/_color';
1907
- export * from '@elastic/eui/src/global_styling/mixins/_helpers';
1908
- export * from '@elastic/eui/src/global_styling/mixins/_padding';
1909
- export * from '@elastic/eui/src/global_styling/mixins/_states';
1910
- export * from '@elastic/eui/src/global_styling/mixins/_typography';
1911
- export * from '@elastic/eui/src/global_styling/mixins/_responsive';
1912
-
1913
- }
1914
- declare module '@elastic/eui/src/global_styling/reset/reset' {
1915
- export const resetStyles = "\n/* // Adapted from Eric Meyer's reset (http://meyerweb.com/eric/tools/css/reset/, v2.0 | 20110126). */\n\n\n*, *:before, *:after {\n box-sizing: border-box;\n}\n\nhtml, body, div, span, applet, object, iframe,\nh1, h2, h3, h4, h5, h6, p, blockquote, pre,\na, abbr, acronym, address, big, cite, code,\ndel, dfn, em, img, ins, kbd, q, s, samp,\nsmall, strike, strong, sub, sup, tt, var,\nb, u, i, center,\ndl, dt, dd, ol, ul, li,\nfieldset, form, label, legend,\ntable, caption, tbody, tfoot, thead, tr, th, td,\narticle, aside, canvas, details, embed,\nfigure, figcaption, footer, header, hgroup,\nmenu, nav, output, ruby, section, summary,\ntime, mark, audio, video {\n margin: 0;\n padding: 0;\n border: none;\n vertical-align: baseline;\n}\n\nh1, h2, h3, h4, h5, h6, p {\n font-family: inherit;\n font-weight: inherit;\n font-size: inherit;\n}\n\n/* HTML5 display-role reset for older browsers */\narticle, aside, details, figcaption, figure,\nfooter, header, hgroup, menu, nav, section {\n display: block;\n}\n\na[href],\nbutton,\n[role='button'] {\n cursor: pointer;\n}\n\nbutton {\n background: none;\n border: none;\n padding: 0;\n margin: 0;\n color: inherit;\n border-radius: 0;\n font-size: inherit;\n}\n\ninput {\n margin: 0;\n padding: 0;\n}\n\ninput:disabled {\n opacity: 1; /* required on iOS */\n}\n\nol,\nul {\n list-style: none;\n}\n\nblockquote,\nq {\n quotes: none;\n}\n\nblockquote:before,\nblockquote:after,\nq:before,\nq:after {\n content: '';\n}\n\ntable {\n border-collapse: collapse;\n border-spacing: 0;\n}\n\nhr {\n margin: 0;\n}\n\nfieldset {\n min-inline-size: auto;\n}\n\n/* Chrome has an issue around RTL languages in SVGs when letter-spacing is negative\n * https://bugs.chromium.org/p/chromium/issues/detail?id=966480\n */\nsvg text {\n letter-spacing: normal !important;\n}";
1916
-
1917
- }
1918
- declare module '@elastic/eui/src/global_styling/reset/global_styles' {
1919
-
1920
- export interface EuiGlobalStylesProps {
1921
- }
1922
- export const EuiGlobalStyles: ({}: EuiGlobalStylesProps) => JSX.Element;
1923
-
1924
- }
1925
- declare module '@elastic/eui/src/global_styling' {
1926
- export * from '@elastic/eui/src/global_styling/reset/global_styles';
1927
- export * from '@elastic/eui/src/global_styling/functions';
1928
- export * from '@elastic/eui/src/global_styling/variables';
1929
- export * from '@elastic/eui/src/global_styling/mixins';
1930
-
1931
- }
1932
- declare module '@elastic/eui/src/components/icon/icon.styles' {
1933
- import { UseEuiTheme } from '@elastic/eui/src/services';
1934
- export const iconLoadingOpacity = 0.05;
1935
- export const euiIconStyles: ({ euiTheme }: UseEuiTheme) => {
1936
- euiIcon: import("@emotion/utils").SerializedStyles;
1937
- accent: import("@emotion/utils").SerializedStyles;
1938
- danger: import("@emotion/utils").SerializedStyles;
1939
- ghost: import("@emotion/utils").SerializedStyles;
1940
- primary: import("@emotion/utils").SerializedStyles;
1941
- success: import("@emotion/utils").SerializedStyles;
1942
- subdued: import("@emotion/utils").SerializedStyles;
1943
- text: import("@emotion/utils").SerializedStyles;
1944
- warning: import("@emotion/utils").SerializedStyles;
1945
- inherit: import("@emotion/utils").SerializedStyles;
1946
- default: import("@emotion/utils").SerializedStyles;
1947
- customColor: import("@emotion/utils").SerializedStyles;
1948
- logoElasticOutline: import("@emotion/utils").SerializedStyles;
1949
- original: import("@emotion/utils").SerializedStyles;
1950
- s: import("@emotion/utils").SerializedStyles;
1951
- m: import("@emotion/utils").SerializedStyles;
1952
- l: import("@emotion/utils").SerializedStyles;
1953
- xl: import("@emotion/utils").SerializedStyles;
1954
- xxl: import("@emotion/utils").SerializedStyles;
1955
- app: import("@emotion/utils").SerializedStyles;
1956
- logo: import("@emotion/utils").SerializedStyles;
1957
- isLoading: import("@emotion/utils").SerializedStyles;
1958
- isLoaded: import("@emotion/utils").SerializedStyles;
1959
- };
1960
-
1961
- }
1962
- declare module '@elastic/eui/src/components/icon/icon' {
1963
- import React, { PureComponent, ComponentType, SVGAttributes } from 'react';
1964
- import { CommonProps } from '@elastic/eui/src/components/common';
1965
- import { typeToPathMap } from '@elastic/eui/src/components/icon/icon_map';
1966
- import { WithEuiThemeProps } from '@elastic/eui/src/services';
1967
- export { COLORS } from '@elastic/eui/src/components/icon/named_colors';
1968
- import { NamedColor } from '@elastic/eui/src/components/icon/named_colors';
1969
- export const TYPES: ("string" | "number" | "function" | "link" | "menu" | "filter" | "image" | "stop" | "alert" | "document" | "grid" | "list" | "search" | "temperature" | "color" | "accessibility" | "aggregate" | "analyzeEvent" | "annotation" | "apps" | "arrowStart" | "arrowEnd" | "asterisk" | "beaker" | "bell" | "bellSlash" | "bolt" | "branch" | "branchUser" | "broom" | "brush" | "bug" | "bullseye" | "calendar" | "check" | "checkInCircleFilled" | "cheer" | "clock" | "cloudDrizzle" | "cloudStormy" | "cloudSunny" | "cluster" | "compute" | "console" | "container" | "continuityAbove" | "continuityAboveBelow" | "continuityBelow" | "continuityWithin" | "copy" | "cross" | "crossInACircleFilled" | "crosshairs" | "currency" | "cut" | "database" | "desktop" | "documentEdit" | "documentation" | "documents" | "dot" | "doubleArrowLeft" | "doubleArrowRight" | "download" | "editorDistributeHorizontal" | "editorDistributeVertical" | "editorItemAlignBottom" | "editorItemAlignCenter" | "editorItemAlignLeft" | "editorItemAlignMiddle" | "editorItemAlignRight" | "editorItemAlignTop" | "editorPositionBottomLeft" | "editorPositionBottomRight" | "editorPositionTopLeft" | "editorPositionTopRight" | "email" | "empty" | "eql" | "eraser" | "exit" | "expand" | "expandMini" | "eye" | "flag" | "fold" | "frameNext" | "framePrevious" | "fullScreenExit" | "gear" | "glasses" | "globe" | "grab" | "heart" | "heatmap" | "help" | "home" | "iInCircle" | "inputOutput" | "inspect" | "invert" | "ip" | "keyboard" | "kubernetesNode" | "kubernetesPod" | "layers" | "lettering" | "lineDashed" | "lineDotted" | "lineSolid" | "lock" | "lockOpen" | "magnet" | "magnifyWithExclamation" | "magnifyWithMinus" | "magnifyWithPlus" | "memory" | "menuDown" | "menuLeft" | "menuRight" | "menuUp" | "merge" | "minimize" | "minus" | "mobile" | "moon" | "namespace" | "nested" | "node" | "offline" | "online" | "package" | "pageSelect" | "pagesSelect" | "partial" | "pause" | "payment" | "pencil" | "percent" | "pin" | "play" | "playFilled" | "plus" | "popout" | "push" | "quote" | "refresh" | "reporter" | "save" | "scale" | "securitySignal" | "securitySignalDetected" | "securitySignalResolved" | "sessionViewer" | "shard" | "share" | "snowflake" | "sortLeft" | "sortRight" | "sortable" | "starPlusEmpty" | "starPlusFilled" | "stats" | "storage" | "submodule" | "sun" | "symlink" | "tableOfContents" | "tag" | "tear" | "timeline" | "timeRefresh" | "timeslider" | "training" | "trash" | "unfold" | "unlink" | "user" | "userAvatar" | "users" | "vector" | "videoPlayer" | "wordWrap" | "wordWrapDisabled" | "wrench" | "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" | "addDataApp" | "advancedSettingsApp" | "agentApp" | "apmApp" | "apmTrace" | "appSearchApp" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowUp" | "auditbeatApp" | "boxesHorizontal" | "boxesVertical" | "canvasApp" | "casesApp" | "classificationJob" | "codeApp" | "consoleApp" | "controlsHorizontal" | "controlsVertical" | "copyClipboard" | "createAdvancedJob" | "createMultiMetricJob" | "createPopulationJob" | "createSingleMetricJob" | "crossClusterReplicationApp" | "dashboardApp" | "dataVisualizer" | "devToolsApp" | "discoverApp" | "editorAlignCenter" | "editorAlignLeft" | "editorAlignRight" | "editorBold" | "editorChecklist" | "editorCodeBlock" | "editorComment" | "editorHeading" | "editorItalic" | "editorLink" | "editorOrderedList" | "editorRedo" | "editorStrike" | "editorTable" | "editorUnderline" | "editorUndo" | "editorUnorderedList" | "emsApp" | "exportAction" | "eyeClosed" | "faceHappy" | "faceNeutral" | "faceSad" | "filebeatApp" | "fleetApp" | "folderCheck" | "folderClosed" | "folderExclamation" | "folderOpen" | "fullScreen" | "gisApp" | "grabHorizontal" | "graphApp" | "grokApp" | "heartbeatApp" | "importAction" | "indexClose" | "indexEdit" | "indexFlush" | "indexManagementApp" | "indexMapping" | "indexOpen" | "indexPatternApp" | "indexRollupApp" | "indexRuntime" | "indexSettings" | "kqlField" | "kqlFunction" | "kqlOperand" | "kqlSelector" | "kqlValue" | "lensApp" | "listAdd" | "logoAWS" | "logoAWSMono" | "logoAerospike" | "logoApache" | "logoAppSearch" | "logoAzure" | "logoAzureMono" | "logoBeats" | "logoBusinessAnalytics" | "logoCeph" | "logoCloud" | "logoCloudEnterprise" | "logoCode" | "logoCodesandbox" | "logoCouchbase" | "logoDocker" | "logoDropwizard" | "logoElastic" | "logoElasticStack" | "logoElasticsearch" | "logoEnterpriseSearch" | "logoEtcd" | "logoGCP" | "logoGCPMono" | "logoGithub" | "logoGmail" | "logoGolang" | "logoGoogleG" | "logoHAproxy" | "logoIBM" | "logoIBMMono" | "logoKafka" | "logoKibana" | "logoKubernetes" | "logoLogging" | "logoLogstash" | "logoMaps" | "logoMemcached" | "logoMetrics" | "logoMongodb" | "logoMySQL" | "logoNginx" | "logoObservability" | "logoOsquery" | "logoPhp" | "logoPostgres" | "logoPrometheus" | "logoRabbitmq" | "logoRedis" | "logoSecurity" | "logoSiteSearch" | "logoSketch" | "logoSlack" | "logoUptime" | "logoWebhook" | "logoWindows" | "logoWorkplaceSearch" | "logsApp" | "logstashFilter" | "logstashIf" | "logstashInput" | "logstashOutput" | "logstashQueue" | "machineLearningApp" | "managementApp" | "mapMarker" | "metricbeatApp" | "metricsApp" | "minusInCircle" | "minusInCircleFilled" | "monitoringApp" | "notebookApp" | "outlierDetectionJob" | "packetbeatApp" | "paperClip" | "pinFilled" | "pipelineApp" | "plusInCircle" | "plusInCircleFilled" | "questionInCircle" | "recentlyViewedApp" | "regressionJob" | "reportingApp" | "returnKey" | "savedObjectsApp" | "searchProfilerApp" | "securityAnalyticsApp" | "securityApp" | "sortDown" | "sortUp" | "spacesApp" | "sqlApp" | "starEmpty" | "starEmptySpace" | "starFilled" | "starFilledSpace" | "starMinusEmpty" | "starMinusFilled" | "stopFilled" | "stopSlash" | "swatchInput" | "tableDensityCompact" | "tableDensityExpanded" | "tableDensityNormal" | "timelionApp" | "upgradeAssistantApp" | "uptimeApp" | "usersRolesApp" | "visArea" | "visAreaStacked" | "visBarHorizontal" | "visBarHorizontalStacked" | "visBarVertical" | "visBarVerticalStacked" | "visGauge" | "visGoal" | "visLine" | "visMapCoordinate" | "visMapRegion" | "visMetric" | "visPie" | "visTable" | "visTagCloud" | "visText" | "visTimelion" | "visVega" | "visVisualBuilder" | "visualizeApp" | "watchesApp" | "workplaceSearchApp")[];
1970
- export type EuiIconType = keyof typeof typeToPathMap;
1971
- export type IconType = EuiIconType | string | ComponentType;
1972
- export type IconColor = string | NamedColor;
1973
- export const SIZES: readonly ["original", "s", "m", "l", "xl", "xxl"];
1974
- export type IconSize = typeof SIZES[number];
1975
- export type EuiIconProps = CommonProps & Omit<SVGAttributes<SVGElement>, 'type' | 'color' | 'size'> & {
1976
- /**
1977
- * `Enum` is any of the named icons listed in the docs, `string` is usually a URL to an SVG file, and `elementType` is any React SVG component
1978
- */
1979
- type: IconType;
1460
+ type: IconType;
1980
1461
  /**
1981
1462
  * One of EUI's color palette or a valid CSS color value https://developer.mozilla.org/en-US/docs/Web/CSS/color_value.
1982
1463
  * Note that coloring only works if your SVG is removed of fill attributes.
@@ -2009,7 +1490,7 @@ declare module '@elastic/eui/src/components/icon/icon' {
2009
1490
  isLoading: boolean;
2010
1491
  neededLoading: boolean;
2011
1492
  }
2012
- export const clearIconComponentCache: (iconType?: "string" | "number" | "function" | "link" | "menu" | "filter" | "image" | "stop" | "alert" | "document" | "grid" | "list" | "search" | "temperature" | "color" | "accessibility" | "aggregate" | "analyzeEvent" | "annotation" | "apps" | "arrowStart" | "arrowEnd" | "asterisk" | "beaker" | "bell" | "bellSlash" | "bolt" | "branch" | "branchUser" | "broom" | "brush" | "bug" | "bullseye" | "calendar" | "check" | "checkInCircleFilled" | "cheer" | "clock" | "cloudDrizzle" | "cloudStormy" | "cloudSunny" | "cluster" | "compute" | "console" | "container" | "continuityAbove" | "continuityAboveBelow" | "continuityBelow" | "continuityWithin" | "copy" | "cross" | "crossInACircleFilled" | "crosshairs" | "currency" | "cut" | "database" | "desktop" | "documentEdit" | "documentation" | "documents" | "dot" | "doubleArrowLeft" | "doubleArrowRight" | "download" | "editorDistributeHorizontal" | "editorDistributeVertical" | "editorItemAlignBottom" | "editorItemAlignCenter" | "editorItemAlignLeft" | "editorItemAlignMiddle" | "editorItemAlignRight" | "editorItemAlignTop" | "editorPositionBottomLeft" | "editorPositionBottomRight" | "editorPositionTopLeft" | "editorPositionTopRight" | "email" | "empty" | "eql" | "eraser" | "exit" | "expand" | "expandMini" | "eye" | "flag" | "fold" | "frameNext" | "framePrevious" | "fullScreenExit" | "gear" | "glasses" | "globe" | "grab" | "heart" | "heatmap" | "help" | "home" | "iInCircle" | "inputOutput" | "inspect" | "invert" | "ip" | "keyboard" | "kubernetesNode" | "kubernetesPod" | "layers" | "lettering" | "lineDashed" | "lineDotted" | "lineSolid" | "lock" | "lockOpen" | "magnet" | "magnifyWithExclamation" | "magnifyWithMinus" | "magnifyWithPlus" | "memory" | "menuDown" | "menuLeft" | "menuRight" | "menuUp" | "merge" | "minimize" | "minus" | "mobile" | "moon" | "namespace" | "nested" | "node" | "offline" | "online" | "package" | "pageSelect" | "pagesSelect" | "partial" | "pause" | "payment" | "pencil" | "percent" | "pin" | "play" | "playFilled" | "plus" | "popout" | "push" | "quote" | "refresh" | "reporter" | "save" | "scale" | "securitySignal" | "securitySignalDetected" | "securitySignalResolved" | "sessionViewer" | "shard" | "share" | "snowflake" | "sortLeft" | "sortRight" | "sortable" | "starPlusEmpty" | "starPlusFilled" | "stats" | "storage" | "submodule" | "sun" | "symlink" | "tableOfContents" | "tag" | "tear" | "timeline" | "timeRefresh" | "timeslider" | "training" | "trash" | "unfold" | "unlink" | "user" | "userAvatar" | "users" | "vector" | "videoPlayer" | "wordWrap" | "wordWrapDisabled" | "wrench" | "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" | "addDataApp" | "advancedSettingsApp" | "agentApp" | "apmApp" | "apmTrace" | "appSearchApp" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowUp" | "auditbeatApp" | "boxesHorizontal" | "boxesVertical" | "canvasApp" | "casesApp" | "classificationJob" | "codeApp" | "consoleApp" | "controlsHorizontal" | "controlsVertical" | "copyClipboard" | "createAdvancedJob" | "createMultiMetricJob" | "createPopulationJob" | "createSingleMetricJob" | "crossClusterReplicationApp" | "dashboardApp" | "dataVisualizer" | "devToolsApp" | "discoverApp" | "editorAlignCenter" | "editorAlignLeft" | "editorAlignRight" | "editorBold" | "editorChecklist" | "editorCodeBlock" | "editorComment" | "editorHeading" | "editorItalic" | "editorLink" | "editorOrderedList" | "editorRedo" | "editorStrike" | "editorTable" | "editorUnderline" | "editorUndo" | "editorUnorderedList" | "emsApp" | "exportAction" | "eyeClosed" | "faceHappy" | "faceNeutral" | "faceSad" | "filebeatApp" | "fleetApp" | "folderCheck" | "folderClosed" | "folderExclamation" | "folderOpen" | "fullScreen" | "gisApp" | "grabHorizontal" | "graphApp" | "grokApp" | "heartbeatApp" | "importAction" | "indexClose" | "indexEdit" | "indexFlush" | "indexManagementApp" | "indexMapping" | "indexOpen" | "indexPatternApp" | "indexRollupApp" | "indexRuntime" | "indexSettings" | "kqlField" | "kqlFunction" | "kqlOperand" | "kqlSelector" | "kqlValue" | "lensApp" | "listAdd" | "logoAWS" | "logoAWSMono" | "logoAerospike" | "logoApache" | "logoAppSearch" | "logoAzure" | "logoAzureMono" | "logoBeats" | "logoBusinessAnalytics" | "logoCeph" | "logoCloud" | "logoCloudEnterprise" | "logoCode" | "logoCodesandbox" | "logoCouchbase" | "logoDocker" | "logoDropwizard" | "logoElastic" | "logoElasticStack" | "logoElasticsearch" | "logoEnterpriseSearch" | "logoEtcd" | "logoGCP" | "logoGCPMono" | "logoGithub" | "logoGmail" | "logoGolang" | "logoGoogleG" | "logoHAproxy" | "logoIBM" | "logoIBMMono" | "logoKafka" | "logoKibana" | "logoKubernetes" | "logoLogging" | "logoLogstash" | "logoMaps" | "logoMemcached" | "logoMetrics" | "logoMongodb" | "logoMySQL" | "logoNginx" | "logoObservability" | "logoOsquery" | "logoPhp" | "logoPostgres" | "logoPrometheus" | "logoRabbitmq" | "logoRedis" | "logoSecurity" | "logoSiteSearch" | "logoSketch" | "logoSlack" | "logoUptime" | "logoWebhook" | "logoWindows" | "logoWorkplaceSearch" | "logsApp" | "logstashFilter" | "logstashIf" | "logstashInput" | "logstashOutput" | "logstashQueue" | "machineLearningApp" | "managementApp" | "mapMarker" | "metricbeatApp" | "metricsApp" | "minusInCircle" | "minusInCircleFilled" | "monitoringApp" | "notebookApp" | "outlierDetectionJob" | "packetbeatApp" | "paperClip" | "pinFilled" | "pipelineApp" | "plusInCircle" | "plusInCircleFilled" | "questionInCircle" | "recentlyViewedApp" | "regressionJob" | "reportingApp" | "returnKey" | "savedObjectsApp" | "searchProfilerApp" | "securityAnalyticsApp" | "securityApp" | "sortDown" | "sortUp" | "spacesApp" | "sqlApp" | "starEmpty" | "starEmptySpace" | "starFilled" | "starFilledSpace" | "starMinusEmpty" | "starMinusFilled" | "stopFilled" | "stopSlash" | "swatchInput" | "tableDensityCompact" | "tableDensityExpanded" | "tableDensityNormal" | "timelionApp" | "upgradeAssistantApp" | "uptimeApp" | "usersRolesApp" | "visArea" | "visAreaStacked" | "visBarHorizontal" | "visBarHorizontalStacked" | "visBarVertical" | "visBarVerticalStacked" | "visGauge" | "visGoal" | "visLine" | "visMapCoordinate" | "visMapRegion" | "visMetric" | "visPie" | "visTable" | "visTagCloud" | "visText" | "visTimelion" | "visVega" | "visVisualBuilder" | "visualizeApp" | "watchesApp" | "workplaceSearchApp" | undefined) => void;
1493
+ export const clearIconComponentCache: (iconType?: "string" | "number" | "function" | "link" | "menu" | "filter" | "image" | "stop" | "search" | "temperature" | "color" | "accessibility" | "aggregate" | "alert" | "analyzeEvent" | "annotation" | "apps" | "arrowStart" | "arrowEnd" | "asterisk" | "beaker" | "bell" | "bellSlash" | "bolt" | "branch" | "branchUser" | "broom" | "brush" | "bug" | "bullseye" | "calendar" | "check" | "checkInCircleFilled" | "cheer" | "clock" | "cloudDrizzle" | "cloudStormy" | "cloudSunny" | "cluster" | "compute" | "console" | "container" | "continuityAbove" | "continuityAboveBelow" | "continuityBelow" | "continuityWithin" | "copy" | "cross" | "crossInACircleFilled" | "crosshairs" | "currency" | "cut" | "database" | "desktop" | "document" | "documentEdit" | "documentation" | "documents" | "dot" | "doubleArrowLeft" | "doubleArrowRight" | "download" | "editorDistributeHorizontal" | "editorDistributeVertical" | "editorItemAlignBottom" | "editorItemAlignCenter" | "editorItemAlignLeft" | "editorItemAlignMiddle" | "editorItemAlignRight" | "editorItemAlignTop" | "editorPositionBottomLeft" | "editorPositionBottomRight" | "editorPositionTopLeft" | "editorPositionTopRight" | "email" | "empty" | "eql" | "eraser" | "exit" | "expand" | "expandMini" | "eye" | "flag" | "fold" | "frameNext" | "framePrevious" | "fullScreenExit" | "gear" | "glasses" | "globe" | "grab" | "grid" | "heart" | "heatmap" | "help" | "home" | "iInCircle" | "inputOutput" | "inspect" | "invert" | "ip" | "keyboard" | "kubernetesNode" | "kubernetesPod" | "layers" | "lettering" | "lineDashed" | "lineDotted" | "lineSolid" | "list" | "lock" | "lockOpen" | "magnet" | "magnifyWithExclamation" | "magnifyWithMinus" | "magnifyWithPlus" | "memory" | "menuDown" | "menuLeft" | "menuRight" | "menuUp" | "merge" | "minimize" | "minus" | "mobile" | "moon" | "namespace" | "nested" | "node" | "offline" | "online" | "package" | "pageSelect" | "pagesSelect" | "partial" | "pause" | "payment" | "pencil" | "percent" | "pin" | "play" | "playFilled" | "plus" | "popout" | "push" | "quote" | "refresh" | "reporter" | "save" | "scale" | "securitySignal" | "securitySignalDetected" | "securitySignalResolved" | "sessionViewer" | "shard" | "share" | "snowflake" | "sortLeft" | "sortRight" | "sortable" | "starPlusEmpty" | "starPlusFilled" | "stats" | "storage" | "submodule" | "sun" | "symlink" | "tableOfContents" | "tag" | "tear" | "timeline" | "timeRefresh" | "timeslider" | "training" | "trash" | "unfold" | "unlink" | "user" | "userAvatar" | "users" | "vector" | "videoPlayer" | "wordWrap" | "wordWrapDisabled" | "wrench" | "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" | "addDataApp" | "advancedSettingsApp" | "agentApp" | "apmApp" | "apmTrace" | "appSearchApp" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowUp" | "auditbeatApp" | "boxesHorizontal" | "boxesVertical" | "canvasApp" | "casesApp" | "classificationJob" | "codeApp" | "consoleApp" | "controlsHorizontal" | "controlsVertical" | "copyClipboard" | "createAdvancedJob" | "createMultiMetricJob" | "createPopulationJob" | "createSingleMetricJob" | "crossClusterReplicationApp" | "dashboardApp" | "dataVisualizer" | "devToolsApp" | "discoverApp" | "editorAlignCenter" | "editorAlignLeft" | "editorAlignRight" | "editorBold" | "editorChecklist" | "editorCodeBlock" | "editorComment" | "editorHeading" | "editorItalic" | "editorLink" | "editorOrderedList" | "editorRedo" | "editorStrike" | "editorTable" | "editorUnderline" | "editorUndo" | "editorUnorderedList" | "emsApp" | "exportAction" | "eyeClosed" | "faceHappy" | "faceNeutral" | "faceSad" | "filebeatApp" | "fleetApp" | "folderCheck" | "folderClosed" | "folderExclamation" | "folderOpen" | "fullScreen" | "gisApp" | "grabHorizontal" | "graphApp" | "grokApp" | "heartbeatApp" | "importAction" | "indexClose" | "indexEdit" | "indexFlush" | "indexManagementApp" | "indexMapping" | "indexOpen" | "indexPatternApp" | "indexRollupApp" | "indexRuntime" | "indexSettings" | "kqlField" | "kqlFunction" | "kqlOperand" | "kqlSelector" | "kqlValue" | "lensApp" | "listAdd" | "logoAWS" | "logoAWSMono" | "logoAerospike" | "logoApache" | "logoAppSearch" | "logoAzure" | "logoAzureMono" | "logoBeats" | "logoBusinessAnalytics" | "logoCeph" | "logoCloud" | "logoCloudEnterprise" | "logoCode" | "logoCodesandbox" | "logoCouchbase" | "logoDocker" | "logoDropwizard" | "logoElastic" | "logoElasticStack" | "logoElasticsearch" | "logoEnterpriseSearch" | "logoEtcd" | "logoGCP" | "logoGCPMono" | "logoGithub" | "logoGmail" | "logoGolang" | "logoGoogleG" | "logoHAproxy" | "logoIBM" | "logoIBMMono" | "logoKafka" | "logoKibana" | "logoKubernetes" | "logoLogging" | "logoLogstash" | "logoMaps" | "logoMemcached" | "logoMetrics" | "logoMongodb" | "logoMySQL" | "logoNginx" | "logoObservability" | "logoOsquery" | "logoPhp" | "logoPostgres" | "logoPrometheus" | "logoRabbitmq" | "logoRedis" | "logoSecurity" | "logoSiteSearch" | "logoSketch" | "logoSlack" | "logoUptime" | "logoWebhook" | "logoWindows" | "logoWorkplaceSearch" | "logsApp" | "logstashFilter" | "logstashIf" | "logstashInput" | "logstashOutput" | "logstashQueue" | "machineLearningApp" | "managementApp" | "mapMarker" | "metricbeatApp" | "metricsApp" | "minusInCircle" | "minusInCircleFilled" | "monitoringApp" | "notebookApp" | "outlierDetectionJob" | "packetbeatApp" | "paperClip" | "pinFilled" | "pipelineApp" | "plusInCircle" | "plusInCircleFilled" | "questionInCircle" | "recentlyViewedApp" | "regressionJob" | "reportingApp" | "returnKey" | "savedObjectsApp" | "searchProfilerApp" | "securityAnalyticsApp" | "securityApp" | "sortDown" | "sortUp" | "spacesApp" | "sqlApp" | "starEmpty" | "starEmptySpace" | "starFilled" | "starFilledSpace" | "starMinusEmpty" | "starMinusFilled" | "stopFilled" | "stopSlash" | "swatchInput" | "tableDensityCompact" | "tableDensityExpanded" | "tableDensityNormal" | "timelionApp" | "upgradeAssistantApp" | "uptimeApp" | "usersRolesApp" | "visArea" | "visAreaStacked" | "visBarHorizontal" | "visBarHorizontalStacked" | "visBarVertical" | "visBarVerticalStacked" | "visGauge" | "visGoal" | "visLine" | "visMapCoordinate" | "visMapRegion" | "visMetric" | "visPie" | "visTable" | "visTagCloud" | "visText" | "visTimelion" | "visVega" | "visVisualBuilder" | "visualizeApp" | "watchesApp" | "workplaceSearchApp" | undefined) => void;
2013
1494
  export const appendIconComponentCache: (iconTypeToIconComponentMap: {
2014
1495
  [iconType: string]: React.ComponentType<{}>;
2015
1496
  }) => void;
@@ -2298,20 +1779,145 @@ declare module '@elastic/eui/src/components/loading' {
2298
1779
  export { EuiLoadingLogo } from '@elastic/eui/src/components/loading/loading_logo';
2299
1780
 
2300
1781
  }
2301
- declare module '@elastic/eui/src/components/button/_button_content_deprecated' {
1782
+ declare module '@elastic/eui/src/components/button/_button_content_deprecated' {
1783
+ import { HTMLAttributes, FunctionComponent, Ref } from 'react';
1784
+ import { CommonProps } from '@elastic/eui/src/components/common';
1785
+ import { IconType } from '@elastic/eui/src/components/icon';
1786
+ export type ButtonContentIconSide = 'left' | 'right';
1787
+ export const ICON_SIDES: ButtonContentIconSide[];
1788
+ export type EuiButtonContentType = HTMLAttributes<HTMLSpanElement>;
1789
+ /**
1790
+ * *INTERNAL ONLY / DEPRECATED*
1791
+ * This component is simply a helper component for reuse within other button components
1792
+ * This component has been deprecated in favor of the new EuiButtonDisplayContent
1793
+ * that can be found in `src/components/button/button_display/_button_display_content.tsx`.
1794
+ */
1795
+ export interface EuiButtonContentProps extends CommonProps {
1796
+ /**
1797
+ * Any `type` accepted by EuiIcon
1798
+ */
1799
+ iconType?: IconType;
1800
+ /**
1801
+ * Can only be one side `left` or `right`
1802
+ */
1803
+ iconSide?: ButtonContentIconSide;
1804
+ isLoading?: boolean;
1805
+ /**
1806
+ * Object of props passed to the <span/> wrapping the content's text (only if the children is a `string`)
1807
+ * It doesn't apply to the icon.
1808
+ */
1809
+ textProps?: HTMLAttributes<HTMLSpanElement> & CommonProps & {
1810
+ ref?: Ref<HTMLSpanElement>;
1811
+ 'data-text'?: string;
1812
+ };
1813
+ iconSize?: 's' | 'm';
1814
+ }
1815
+ export const EuiButtonContentDeprecated: FunctionComponent<EuiButtonContentType & EuiButtonContentProps>;
1816
+
1817
+ }
1818
+ declare module '@elastic/eui/src/themes/amsterdam/global_styling/mixins/button' {
1819
+ import { UseEuiTheme } from '@elastic/eui/src/services';
1820
+ export const BUTTON_COLORS: readonly ["text", "accent", "primary", "success", "warning", "danger"];
1821
+ export type _EuiButtonColor = typeof BUTTON_COLORS[number];
1822
+ export type _EuiButtonDisplay = 'base' | 'fill' | 'empty';
1823
+ export interface _EuiButtonOptions {
1824
+ display?: _EuiButtonDisplay;
1825
+ }
1826
+ /**
1827
+ * Creates the `base` version of button styles with proper text contrast.
1828
+ * @param euiThemeContext
1829
+ * @param color One of the named button colors or 'disabled'
1830
+ * @returns Style object `{ backgroundColor, color }`
1831
+ */
1832
+ export const euiButtonColor: (euiThemeContext: UseEuiTheme, color: _EuiButtonColor | 'disabled') => {
1833
+ color: string;
1834
+ backgroundColor: string;
1835
+ };
1836
+ /**
1837
+ * Creates the `fill` version of buttons styles with proper text contrast.
1838
+ * @param euiThemeContext
1839
+ * @param color One of the named button colors or 'disabled'
1840
+ * @returns Style object `{ backgroundColor, color }`
1841
+ */
1842
+ export const euiButtonFillColor: (euiThemeContext: UseEuiTheme, color: _EuiButtonColor | 'disabled') => {
1843
+ color: string;
1844
+ backgroundColor: string;
1845
+ };
1846
+ /**
1847
+ * Creates the `empty` version of button styles using the text-variant and adding interactive styles.
1848
+ * @param euiThemeContext
1849
+ * @param color One of the named button colors or 'disabled'
1850
+ * @returns Style object `{ backgroundColor, color }` where `background` is typically used for interactive states
1851
+ */
1852
+ export const euiButtonEmptyColor: (euiThemeContext: UseEuiTheme, color: _EuiButtonColor | 'disabled') => {
1853
+ color: string;
1854
+ backgroundColor: string;
1855
+ };
1856
+ /**
1857
+ * Given the button display type, returns the Emotion based color keys.
1858
+ * @param options Button display type
1859
+ * @returns An object of `_EuiButtonColor` keys including `disabled`
1860
+ */
1861
+ export const useEuiButtonColorCSS: (options?: _EuiButtonOptions) => {
1862
+ text: import("@emotion/utils").SerializedStyles;
1863
+ accent: import("@emotion/utils").SerializedStyles;
1864
+ primary: import("@emotion/utils").SerializedStyles;
1865
+ success: import("@emotion/utils").SerializedStyles;
1866
+ warning: import("@emotion/utils").SerializedStyles;
1867
+ danger: import("@emotion/utils").SerializedStyles;
1868
+ disabled: import("@emotion/utils").SerializedStyles;
1869
+ };
1870
+ /**
1871
+ * Based on the button size, creates the style properties.
1872
+ * @returns An object of button size keys with Emption styles for `border-radius`
1873
+ */
1874
+ export const useEuiButtonRadiusCSS: () => {
1875
+ xs: import("@emotion/utils").SerializedStyles;
1876
+ s: import("@emotion/utils").SerializedStyles;
1877
+ m: import("@emotion/utils").SerializedStyles;
1878
+ };
1879
+ /**
1880
+ * Creates the translate animation when button is in focus.
1881
+ * @returns string
1882
+ */
1883
+ export const useEuiButtonFocusCSS: () => string;
1884
+
1885
+ }
1886
+ declare module '@elastic/eui/src/components/button/button_display/_button_display.styles' {
1887
+ import { UseEuiTheme } from '@elastic/eui/src/services';
1888
+ export const euiButtonBaseCSS: () => string;
1889
+ export const euiButtonDisplayStyles: (euiThemeContext: UseEuiTheme, minWidth: string) => {
1890
+ euiButtonDisplay: import("@emotion/utils").SerializedStyles;
1891
+ isDisabled: import("@emotion/utils").SerializedStyles;
1892
+ fullWidth: import("@emotion/utils").SerializedStyles;
1893
+ xs: import("@emotion/utils").SerializedStyles;
1894
+ s: import("@emotion/utils").SerializedStyles;
1895
+ m: import("@emotion/utils").SerializedStyles;
1896
+ };
1897
+
1898
+ }
1899
+ declare module '@elastic/eui/src/components/button/button_display/_button_display_content.styles' {
1900
+ import { UseEuiTheme } from '@elastic/eui/src/services';
1901
+ export const euiButtonDisplayContentStyles: ({ euiTheme }: UseEuiTheme) => {
1902
+ euiButtonDisplayContent: import("@emotion/utils").SerializedStyles;
1903
+ left: import("@emotion/utils").SerializedStyles;
1904
+ right: import("@emotion/utils").SerializedStyles;
1905
+ euiButtonDisplayContent__spinner: import("@emotion/utils").SerializedStyles;
1906
+ euiButtonDisplayContent__icon: import("@emotion/utils").SerializedStyles;
1907
+ };
1908
+
1909
+ }
1910
+ declare module '@elastic/eui/src/components/button/button_display/_button_display_content' {
2302
1911
  import { HTMLAttributes, FunctionComponent, Ref } from 'react';
2303
1912
  import { CommonProps } from '@elastic/eui/src/components/common';
2304
1913
  import { IconType } from '@elastic/eui/src/components/icon';
2305
- export type ButtonContentIconSide = 'left' | 'right';
2306
- export const ICON_SIDES: ButtonContentIconSide[];
2307
- export type EuiButtonContentType = HTMLAttributes<HTMLSpanElement>;
1914
+ export type ButtonContentIconSide = 'left' | 'right' | undefined;
1915
+ export type EuiButtonDisplayContentType = HTMLAttributes<HTMLSpanElement>;
2308
1916
  /**
2309
- * *INTERNAL ONLY / DEPRECATED*
2310
- * This component is simply a helper component for reuse within other button components
2311
- * This component has been deprecated in favor of the new EuiButtonDisplayContent
2312
- * that can be found in `src/components/button/button_display/_button_display_content.tsx`.
1917
+ * *INTERNAL ONLY*
1918
+ * This component is simply a helper component for reuse within other button components.
2313
1919
  */
2314
- export interface EuiButtonContentProps extends CommonProps {
1920
+ export interface EuiButtonDisplayContentProps extends CommonProps {
2315
1921
  /**
2316
1922
  * Any `type` accepted by EuiIcon
2317
1923
  */
@@ -2322,58 +1928,108 @@ declare module '@elastic/eui/src/components/button/_button_content_deprecated' {
2322
1928
  iconSide?: ButtonContentIconSide;
2323
1929
  isLoading?: boolean;
2324
1930
  /**
2325
- * Object of props passed to the <span/> wrapping the content's text (only if the children is a `string`)
2326
- * It doesn't apply to the icon.
1931
+ * Object of props passed to the <span/> wrapping the content's text/children only (not icon)
2327
1932
  */
2328
1933
  textProps?: HTMLAttributes<HTMLSpanElement> & CommonProps & {
2329
1934
  ref?: Ref<HTMLSpanElement>;
2330
1935
  'data-text'?: string;
2331
1936
  };
2332
1937
  iconSize?: 's' | 'm';
1938
+ isDisabled?: boolean;
2333
1939
  }
2334
- export const EuiButtonContentDeprecated: FunctionComponent<EuiButtonContentType & EuiButtonContentProps>;
1940
+ export const EuiButtonDisplayContent: FunctionComponent<EuiButtonDisplayContentType & EuiButtonDisplayContentProps>;
2335
1941
 
2336
1942
  }
2337
1943
  declare module '@elastic/eui/src/services/security/href_validator' {
2338
1944
  export function validateHref(href: string): boolean;
2339
1945
 
2340
1946
  }
2341
- declare module '@elastic/eui/src/components/button/button' {
2342
- import React, { FunctionComponent, Ref, CSSProperties, HTMLAttributes, ReactNode } from 'react';
1947
+ declare module '@elastic/eui/src/themes/amsterdam/global_styling/functions/shadows' {
1948
+ import { EuiThemeColorModeStandard } from '@elastic/eui/src/services/theme/types';
1949
+ export const getShadowColor: (color: string, opacity: number, colorMode: EuiThemeColorModeStandard) => string;
1950
+
1951
+ }
1952
+ declare module '@elastic/eui/src/themes/amsterdam/global_styling/functions' {
1953
+ export * from '@elastic/eui/src/themes/amsterdam/global_styling/functions/shadows';
1954
+
1955
+ }
1956
+ declare module '@elastic/eui/src/global_styling/variables/shadow' {
1957
+ export const EuiThemeShadowSizes: readonly ["xs", "s", "m", "l", "xl"];
1958
+ export type _EuiThemeShadowSize = typeof EuiThemeShadowSizes[number];
1959
+ /**
1960
+ * Shadow t-shirt sizes descriptions
1961
+ */
1962
+ export const _EuiShadowSizesDescriptions: Record<_EuiThemeShadowSize, string>;
1963
+ export interface _EuiThemeShadowCustomColor {
1964
+ color?: string;
1965
+ property?: 'box-shadow' | 'filter';
1966
+ }
1967
+
1968
+ }
1969
+ declare module '@elastic/eui/src/themes/amsterdam/global_styling/mixins/shadow' {
1970
+ import { UseEuiTheme } from '@elastic/eui/src/services/theme';
1971
+ import { _EuiThemeShadowSize, _EuiThemeShadowCustomColor } from '@elastic/eui/src/global_styling/variables/shadow';
1972
+ export interface EuiShadowCustomColor {
1973
+ color?: string;
1974
+ }
1975
+ /**
1976
+ * euiSlightShadow
1977
+ */
1978
+ export const euiShadowXSmall: ({ euiTheme, colorMode }: UseEuiTheme, { color: _color }?: _EuiThemeShadowCustomColor) => string;
1979
+ /**
1980
+ * bottomShadowSmall
1981
+ */
1982
+ export const euiShadowSmall: ({ euiTheme, colorMode }: UseEuiTheme, { color: _color }?: _EuiThemeShadowCustomColor) => string;
1983
+ /**
1984
+ * bottomShadowMedium
1985
+ */
1986
+ export const euiShadowMedium: ({ euiTheme, colorMode }: UseEuiTheme, { color: _color, property }?: _EuiThemeShadowCustomColor) => string;
1987
+ /**
1988
+ * bottomShadow
1989
+ */
1990
+ export const euiShadowLarge: ({ euiTheme, colorMode }: UseEuiTheme, { color: _color }?: _EuiThemeShadowCustomColor) => string;
1991
+ /**
1992
+ * bottomShadowLarge
1993
+ */
1994
+ export interface EuiShadowXLarge extends _EuiThemeShadowCustomColor {
1995
+ reverse?: boolean;
1996
+ }
1997
+ export const euiShadowXLarge: ({ euiTheme, colorMode }: UseEuiTheme, { color: _color, reverse }?: EuiShadowXLarge) => string;
1998
+ /**
1999
+ * slightShadowHover
2000
+ * TODO: I think this is only used by panels/cards in the Amsterdam theme, move there
2001
+ */
2002
+ export const euiSlightShadowHover: ({ euiTheme, colorMode }: UseEuiTheme, { color: _color }?: _EuiThemeShadowCustomColor) => string;
2003
+ export const useEuiSlightShadowHover: (color?: _EuiThemeShadowCustomColor['color']) => string;
2004
+ /**
2005
+ * bottomShadowFlat
2006
+ *
2007
+ * Similar to shadow medium but without the bottom depth.
2008
+ * Useful for popovers that drop UP rather than DOWN.
2009
+ */
2010
+ export const euiShadowFlat: ({ euiTheme, colorMode }: UseEuiTheme, { color: _color }?: _EuiThemeShadowCustomColor) => string;
2011
+ export const useEuiShadowFlat: (color?: _EuiThemeShadowCustomColor['color']) => string;
2012
+ export const euiShadow: (euiThemeContext: UseEuiTheme, size?: _EuiThemeShadowSize, { color }?: _EuiThemeShadowCustomColor) => string;
2013
+ export const useEuiShadow: (size?: _EuiThemeShadowSize, color?: _EuiThemeShadowCustomColor['color']) => string;
2014
+
2015
+ }
2016
+ declare module '@elastic/eui/src/themes/amsterdam/global_styling/mixins' {
2017
+ export * from '@elastic/eui/src/themes/amsterdam/global_styling/mixins/button';
2018
+ export * from '@elastic/eui/src/themes/amsterdam/global_styling/mixins/shadow';
2019
+
2020
+ }
2021
+ declare module '@elastic/eui/src/components/button/button_display/_button_display' {
2022
+ import React, { CSSProperties, ReactNode, Ref } from 'react';
2343
2023
  import { CommonProps, ExclusiveUnion, PropsForAnchor, PropsForButton } from '@elastic/eui/src/components/common';
2344
- import { EuiButtonContentProps, EuiButtonContentType } from '@elastic/eui/src/components/button/_button_content_deprecated';
2345
- export type ButtonColor = 'primary' | 'accent' | 'success' | 'warning' | 'danger' | 'ghost' | 'text';
2346
- export type ButtonSize = 's' | 'm';
2347
- export const colorToClassNameMap: {
2348
- [color in ButtonColor]: string;
2349
- };
2350
- export const COLORS: ButtonColor[];
2351
- export const sizeToClassNameMap: {
2352
- [size in ButtonSize]: string | null;
2353
- };
2354
- export const SIZES: ButtonSize[];
2024
+ import { EuiButtonDisplayContentProps, EuiButtonDisplayContentType } from '@elastic/eui/src/components/button/button_display/_button_display_content'; const SIZES: readonly ["xs", "s", "m"];
2025
+ export type EuiButtonDisplaySizes = typeof SIZES[number];
2355
2026
  /**
2356
- * Extends EuiButtonContentProps which provides
2027
+ * Extends EuiButtonDisplayContentProps which provides
2357
2028
  * `iconType`, `iconSide`, and `textProps`
2358
2029
  */
2359
- export interface EuiButtonProps extends EuiButtonContentProps, CommonProps {
2030
+ export interface EuiButtonDisplayCommonProps extends EuiButtonDisplayContentProps, CommonProps {
2360
2031
  children?: ReactNode;
2361
- /**
2362
- * Make button a solid color for prominence
2363
- */
2364
- fill?: boolean;
2365
- /**
2366
- * Any of our named colors.
2367
- */
2368
- color?: ButtonColor;
2369
- /**
2370
- * Use size `s` in confined spaces
2371
- */
2372
- size?: ButtonSize;
2373
- /**
2374
- * `disabled` is also allowed
2375
- */
2376
- isDisabled?: boolean;
2032
+ size?: EuiButtonDisplaySizes;
2377
2033
  /**
2378
2034
  * Applies the boolean state as the `aria-pressed` property to create a toggle button.
2379
2035
  * *Only use when the readable text does not change between states.*
@@ -2394,9 +2050,69 @@ declare module '@elastic/eui/src/components/button/button' {
2394
2050
  /**
2395
2051
  * Object of props passed to the <span/> wrapping the button's content
2396
2052
  */
2397
- contentProps?: EuiButtonContentType;
2053
+ contentProps?: EuiButtonDisplayContentType;
2398
2054
  style?: CSSProperties;
2399
2055
  }
2056
+ export type EuiButtonDisplayPropsForAnchor = PropsForAnchor<EuiButtonDisplayCommonProps, {
2057
+ buttonRef?: Ref<HTMLAnchorElement>;
2058
+ }>;
2059
+ export type EuiButtonDisplayPropsForButton = PropsForButton<EuiButtonDisplayCommonProps, {
2060
+ buttonRef?: Ref<HTMLButtonElement>;
2061
+ }>;
2062
+ export type EuiButtonDisplayProps = ExclusiveUnion<EuiButtonDisplayPropsForAnchor, EuiButtonDisplayPropsForButton>;
2063
+ export function isButtonDisabled({ href, isDisabled, isLoading, }: {
2064
+ href?: string;
2065
+ isDisabled?: boolean;
2066
+ isLoading?: boolean;
2067
+ }): boolean;
2068
+ /**
2069
+ * EuiButtonDisplay is an internal-only component used for displaying
2070
+ * any element as a button.
2071
+ */
2072
+ export const EuiButtonDisplay: React.ForwardRefExoticComponent<((import ("@elastic/eui/src/components/common").DisambiguateSet<EuiButtonDisplayPropsForAnchor, EuiButtonDisplayPropsForButton> & EuiButtonDisplayCommonProps & {
2073
+ onClick?: React.MouseEventHandler<HTMLButtonElement> | undefined;
2074
+ } & React.ButtonHTMLAttributes<HTMLButtonElement> & {
2075
+ buttonRef?: React.Ref<HTMLButtonElement> | undefined;
2076
+ }) | (import ("@elastic/eui/src/components/common").DisambiguateSet<EuiButtonDisplayPropsForButton, EuiButtonDisplayPropsForAnchor> & EuiButtonDisplayCommonProps & {
2077
+ href?: string | undefined;
2078
+ onClick?: React.MouseEventHandler<HTMLAnchorElement> | undefined;
2079
+ } & React.AnchorHTMLAttributes<HTMLAnchorElement> & {
2080
+ buttonRef?: React.Ref<HTMLAnchorElement> | undefined;
2081
+ })) & React.RefAttributes<HTMLElement>>;
2082
+ export {};
2083
+
2084
+ }
2085
+ declare module '@elastic/eui/src/components/button/button' {
2086
+ import React, { FunctionComponent, Ref, HTMLAttributes, ReactNode } from 'react';
2087
+ import { CommonProps, ExclusiveUnion, PropsForAnchor, PropsForButton } from '@elastic/eui/src/components/common';
2088
+ import { _EuiButtonColor } from '@elastic/eui/src/themes/amsterdam/global_styling/mixins/button';
2089
+ import { EuiButtonDisplayCommonProps } from '@elastic/eui/src/components/button/button_display/_button_display';
2090
+ export const COLORS: readonly ["text", "accent", "primary", "success", "warning", "danger", "ghost"];
2091
+ export type EuiButtonColor = _EuiButtonColor | 'ghost';
2092
+ export const SIZES: readonly ["s", "m"];
2093
+ export type EuiButtonSize = typeof SIZES[number];
2094
+ interface BaseProps {
2095
+ children?: ReactNode;
2096
+ /**
2097
+ * Make button a solid color for prominence
2098
+ */
2099
+ fill?: boolean;
2100
+ /**
2101
+ * Any of the named color palette options.
2102
+ * **`'ghost'` is set for deprecation. Use EuiThemeProvide.colorMode = 'dark' instead.**
2103
+ */
2104
+ color?: EuiButtonColor;
2105
+ /**
2106
+ * Use size `s` in confined spaces
2107
+ */
2108
+ size?: EuiButtonSize;
2109
+ /**
2110
+ * `disabled` is also allowed
2111
+ */
2112
+ isDisabled?: boolean;
2113
+ }
2114
+ export interface EuiButtonProps extends BaseProps, Omit<EuiButtonDisplayCommonProps, 'size'>, CommonProps {
2115
+ }
2400
2116
  export type EuiButtonPropsForAnchor = PropsForAnchor<EuiButtonProps, {
2401
2117
  buttonRef?: Ref<HTMLAnchorElement>;
2402
2118
  }>;
@@ -2419,6 +2135,12 @@ declare module '@elastic/eui/src/components/button/button' {
2419
2135
  */
2420
2136
  baseClassName: string;
2421
2137
  };
2138
+ export const sizeToClassNameMap: {
2139
+ [size in EuiButtonSize]: string | null;
2140
+ };
2141
+ export const colorToClassNameMap: {
2142
+ [color in EuiButtonColor]: string | null;
2143
+ };
2422
2144
  /**
2423
2145
  * *DEPRECATED*
2424
2146
  * EuiButtonDisplay is an internal-only component used for displaying
@@ -2439,14 +2161,14 @@ declare module '@elastic/eui/src/components/button/button' {
2439
2161
  */
2440
2162
  baseClassName: string;
2441
2163
  } & React.RefAttributes<HTMLElement>>;
2164
+ export {};
2442
2165
 
2443
2166
  }
2444
2167
  declare module '@elastic/eui/src/components/button/button_empty/button_empty' {
2445
2168
  import { FunctionComponent, Ref } from 'react';
2446
2169
  import { CommonProps, ExclusiveUnion, PropsForAnchor, PropsForButton } from '@elastic/eui/src/components/common';
2447
2170
  import { EuiButtonContentProps, EuiButtonContentType } from '@elastic/eui/src/components/button/_button_content_deprecated';
2448
- export type EuiButtonEmptyColor = 'primary' | 'danger' | 'text' | 'ghost' | 'success' | 'warning';
2449
- export const COLORS: EuiButtonEmptyColor[]; const sizeToClassNameMap: {
2171
+ import { _EuiButtonColor } from '@elastic/eui/src/themes/amsterdam/global_styling/mixins/button'; const sizeToClassNameMap: {
2450
2172
  xs: string;
2451
2173
  s: string;
2452
2174
  m: null;
@@ -2464,9 +2186,10 @@ declare module '@elastic/eui/src/components/button/button_empty/button_empty' {
2464
2186
  */
2465
2187
  export interface CommonEuiButtonEmptyProps extends EuiButtonContentProps, CommonProps {
2466
2188
  /**
2467
- * Any of our named colors
2189
+ * Any of the named color palette options.
2190
+ * **`'ghost'` is set for deprecation. Use EuiThemeProvide.colorMode = 'dark' instead.**
2468
2191
  */
2469
- color?: EuiButtonEmptyColor;
2192
+ color?: _EuiButtonColor | 'ghost';
2470
2193
  size?: EuiButtonEmptySizes;
2471
2194
  /**
2472
2195
  * Ensure the text of the button sits flush to the left, right, or both sides of its container
@@ -2501,16 +2224,15 @@ declare module '@elastic/eui/src/components/button/button_empty/button_empty' {
2501
2224
 
2502
2225
  }
2503
2226
  declare module '@elastic/eui/src/components/button/button_empty' {
2504
- export type { EuiButtonEmptyColor, EuiButtonEmptyProps, EuiButtonEmptySizes, } from '@elastic/eui/src/components/button/button_empty/button_empty';
2505
- export { COLORS, EuiButtonEmpty } from '@elastic/eui/src/components/button/button_empty/button_empty';
2227
+ export type { EuiButtonEmptyProps, EuiButtonEmptySizes } from '@elastic/eui/src/components/button/button_empty/button_empty';
2228
+ export { EuiButtonEmpty } from '@elastic/eui/src/components/button/button_empty/button_empty';
2506
2229
 
2507
2230
  }
2508
2231
  declare module '@elastic/eui/src/components/button/button_icon/button_icon' {
2509
2232
  import { FunctionComponent, Ref } from 'react';
2510
2233
  import { CommonProps, ExclusiveUnion, PropsForAnchor, PropsForButton } from '@elastic/eui/src/components/common';
2511
2234
  import { IconType, IconSize } from '@elastic/eui/src/components/icon';
2512
- import { ButtonColor } from '@elastic/eui/src/components/button/button';
2513
- export type EuiButtonIconColor = ButtonColor; const displayToClassNameMap: {
2235
+ import { _EuiButtonColor } from '@elastic/eui/src/themes/amsterdam/global_styling/mixins/button'; const displayToClassNameMap: {
2514
2236
  base: null;
2515
2237
  empty: string;
2516
2238
  fill: string;
@@ -2520,8 +2242,9 @@ declare module '@elastic/eui/src/components/button/button_icon/button_icon' {
2520
2242
  iconType: IconType;
2521
2243
  /**
2522
2244
  * Any of the named color palette options.
2245
+ * **`'ghost'` is set for deprecation. Use EuiThemeProvide.colorMode = 'dark' instead.**
2523
2246
  */
2524
- color?: EuiButtonIconColor;
2247
+ color?: _EuiButtonColor | 'ghost';
2525
2248
  'aria-label'?: string;
2526
2249
  'aria-labelledby'?: string;
2527
2250
  isDisabled?: boolean;
@@ -2561,8 +2284,7 @@ declare module '@elastic/eui/src/components/button/button_icon/button_icon' {
2561
2284
  type?: 'submit' | 'reset' | 'button';
2562
2285
  } & PropsForButton<EuiButtonIconProps, {
2563
2286
  buttonRef?: Ref<HTMLButtonElement>;
2564
- }>; type Props = ExclusiveUnion<EuiButtonIconPropsForAnchor, EuiButtonIconPropsForButton>;
2565
- export const COLORS: ButtonColor[]; const sizeToClassNameMap: {
2287
+ }>; type Props = ExclusiveUnion<EuiButtonIconPropsForAnchor, EuiButtonIconPropsForButton>; const sizeToClassNameMap: {
2566
2288
  xs: string;
2567
2289
  s: string;
2568
2290
  m: string;
@@ -2574,7 +2296,7 @@ declare module '@elastic/eui/src/components/button/button_icon/button_icon' {
2574
2296
 
2575
2297
  }
2576
2298
  declare module '@elastic/eui/src/components/button/button_icon' {
2577
- export type { EuiButtonIconColor, EuiButtonIconProps, EuiButtonIconPropsForButton, EuiButtonIconPropsForAnchor, } from '@elastic/eui/src/components/button/button_icon/button_icon';
2299
+ export type { EuiButtonIconProps, EuiButtonIconPropsForButton, EuiButtonIconPropsForAnchor, } from '@elastic/eui/src/components/button/button_icon/button_icon';
2578
2300
  export { EuiButtonIcon } from '@elastic/eui/src/components/button/button_icon/button_icon';
2579
2301
 
2580
2302
  }
@@ -2645,9 +2367,9 @@ declare module '@elastic/eui/src/components/button/button_group/button_group_but
2645
2367
  }
2646
2368
  declare module '@elastic/eui/src/components/button/button_group/button_group' {
2647
2369
  import { FunctionComponent, HTMLAttributes, ReactNode } from 'react';
2648
- import { ButtonColor } from '@elastic/eui/src/components/button/button';
2649
2370
  import { EuiButtonContentProps } from '@elastic/eui/src/components/button/_button_content_deprecated';
2650
2371
  import { CommonProps } from '@elastic/eui/src/components/common';
2372
+ import { _EuiButtonColor } from '@elastic/eui/src/themes/amsterdam/global_styling/mixins';
2651
2373
  export interface EuiButtonGroupOptionProps extends EuiButtonContentProps, CommonProps {
2652
2374
  /**
2653
2375
  * Each option must have a unique `id` for maintaining selection
@@ -2688,9 +2410,9 @@ declare module '@elastic/eui/src/components/button/button_group/button_group' {
2688
2410
  */
2689
2411
  legend: string;
2690
2412
  /**
2691
- * Compressed styles don't support `ghost` color (Color will be changed to "text")
2413
+ * Any of the named color palette options.
2692
2414
  */
2693
- color?: ButtonColor;
2415
+ color?: _EuiButtonColor;
2694
2416
  /**
2695
2417
  * Actual type is `'single' | 'multi'`.
2696
2418
  * Determines how the selection of the group should be handled.
@@ -2748,11 +2470,11 @@ declare module '@elastic/eui/src/components/button/button_group' {
2748
2470
 
2749
2471
  }
2750
2472
  declare module '@elastic/eui/src/components/button' {
2751
- export type { ButtonColor, ButtonSize, EuiButtonProps } from '@elastic/eui/src/components/button/button';
2473
+ export type { EuiButtonColor, EuiButtonSize, EuiButtonProps } from '@elastic/eui/src/components/button/button';
2752
2474
  export { COLORS, EuiButton } from '@elastic/eui/src/components/button/button';
2753
- export type { EuiButtonEmptyColor, EuiButtonEmptyProps, EuiButtonEmptySizes, } from '@elastic/eui/src/components/button/button_empty';
2475
+ export type { EuiButtonEmptyProps, EuiButtonEmptySizes } from '@elastic/eui/src/components/button/button_empty';
2754
2476
  export { EuiButtonEmpty } from '@elastic/eui/src/components/button/button_empty';
2755
- export type { EuiButtonIconColor, EuiButtonIconProps, EuiButtonIconPropsForButton, } from '@elastic/eui/src/components/button/button_icon';
2477
+ export type { EuiButtonIconProps, EuiButtonIconPropsForButton, } from '@elastic/eui/src/components/button/button_icon';
2756
2478
  export { EuiButtonIcon } from '@elastic/eui/src/components/button/button_icon';
2757
2479
  export type { EuiButtonGroupOptionProps, EuiButtonGroupProps, } from '@elastic/eui/src/components/button/button_group';
2758
2480
  export { EuiButtonGroup } from '@elastic/eui/src/components/button/button_group';
@@ -3095,7 +2817,7 @@ declare module '@elastic/eui/src/components/flex/flex_group' {
3095
2817
  l: string;
3096
2818
  xl: string;
3097
2819
  };
3098
- export const GUTTER_SIZES: ("s" | "none" | "xs" | "m" | "l" | "xl")[];
2820
+ export const GUTTER_SIZES: ("s" | "xs" | "m" | "l" | "xl" | "none")[];
3099
2821
  export type EuiFlexGroupGutterSize = keyof typeof gutterSizeToClassNameMap; const alignItemsToClassNameMap: {
3100
2822
  stretch: null;
3101
2823
  flexStart: string;
@@ -3784,124 +3506,47 @@ declare module '@elastic/eui/src/components/form/file_picker/file_picker' {
3784
3506
  */
3785
3507
  onChange?: (files: FileList | null) => void;
3786
3508
  /**
3787
- * Reduces the size to a typical (compressed) input
3788
- */
3789
- compressed?: boolean;
3790
- /**
3791
- * Size or type of display;
3792
- * `default` for normal height, similar to other controls;
3793
- * `large` for taller size
3794
- */
3795
- display?: EuiFilePickerDisplay;
3796
- fullWidth?: boolean;
3797
- isInvalid?: boolean;
3798
- isLoading?: boolean;
3799
- disabled?: boolean;
3800
- }
3801
- export class EuiFilePicker extends Component<EuiFilePickerProps> {
3802
- static defaultProps: {
3803
- initialPromptText: JSX.Element;
3804
- compressed: boolean;
3805
- display: string;
3806
- };
3807
- state: {
3808
- promptText: null;
3809
- isHoveringDrop: boolean;
3810
- };
3811
- fileInput: HTMLInputElement | null;
3812
- generatedId: string;
3813
- handleChange: () => void;
3814
- removeFiles: (e?: React.MouseEvent<HTMLButtonElement, MouseEvent> | undefined) => void;
3815
- showDrop: () => void;
3816
- hideDrop: () => void;
3817
- render(): JSX.Element;
3818
- }
3819
- export {};
3820
-
3821
- }
3822
- declare module '@elastic/eui/src/components/form/file_picker' {
3823
- export type { EuiFilePickerProps } from '@elastic/eui/src/components/form/file_picker/file_picker';
3824
- export { EuiFilePicker } from '@elastic/eui/src/components/form/file_picker/file_picker';
3825
-
3826
- }
3827
- declare module '@elastic/eui/src/themes/amsterdam/global_styling/mixins/button' {
3828
- import { UseEuiTheme } from '@elastic/eui/src/services';
3829
- export const BUTTON_COLORS: readonly ["text", "accent", "primary", "success", "warning", "danger", "disabled"];
3830
- export type _EuiButtonColor = typeof BUTTON_COLORS[number];
3831
- export const euiButtonColor: (color: _EuiButtonColor, { euiTheme, colorMode }: UseEuiTheme) => string;
3832
- export const useEuiButtonColorCSS: () => {
3833
- text: import("@emotion/utils").SerializedStyles;
3834
- accent: import("@emotion/utils").SerializedStyles;
3835
- primary: import("@emotion/utils").SerializedStyles;
3836
- success: import("@emotion/utils").SerializedStyles;
3837
- warning: import("@emotion/utils").SerializedStyles;
3838
- danger: import("@emotion/utils").SerializedStyles;
3839
- disabled: import("@emotion/utils").SerializedStyles;
3840
- };
3841
-
3842
- }
3843
- declare module '@elastic/eui/src/themes/amsterdam/global_styling/functions/shadows' {
3844
- import { EuiThemeColorModeStandard } from '@elastic/eui/src/services/theme/types';
3845
- export const getShadowColor: (color: string, opacity: number, colorMode: EuiThemeColorModeStandard) => string;
3846
-
3847
- }
3848
- declare module '@elastic/eui/src/themes/amsterdam/global_styling/functions' {
3849
- export * from '@elastic/eui/src/themes/amsterdam/global_styling/functions/shadows';
3850
-
3851
- }
3852
- declare module '@elastic/eui/src/themes/amsterdam/global_styling/mixins/shadow' {
3853
- import { UseEuiTheme } from '@elastic/eui/src/services/theme';
3854
- import { _EuiThemeShadowSize, _EuiThemeShadowCustomColor } from '@elastic/eui/src/global_styling/variables/shadow';
3855
- export interface EuiShadowCustomColor {
3856
- color?: string;
3857
- }
3858
- /**
3859
- * euiSlightShadow
3860
- */
3861
- export const euiShadowXSmall: ({ euiTheme, colorMode }: UseEuiTheme, { color: _color }?: _EuiThemeShadowCustomColor) => string;
3862
- /**
3863
- * bottomShadowSmall
3864
- */
3865
- export const euiShadowSmall: ({ euiTheme, colorMode }: UseEuiTheme, { color: _color }?: _EuiThemeShadowCustomColor) => string;
3866
- /**
3867
- * bottomShadowMedium
3868
- */
3869
- export const euiShadowMedium: ({ euiTheme, colorMode }: UseEuiTheme, { color: _color, property }?: _EuiThemeShadowCustomColor) => string;
3870
- /**
3871
- * bottomShadow
3872
- */
3873
- export const euiShadowLarge: ({ euiTheme, colorMode }: UseEuiTheme, { color: _color }?: _EuiThemeShadowCustomColor) => string;
3874
- /**
3875
- * bottomShadowLarge
3876
- */
3877
- export interface EuiShadowXLarge extends _EuiThemeShadowCustomColor {
3878
- reverse?: boolean;
3509
+ * Reduces the size to a typical (compressed) input
3510
+ */
3511
+ compressed?: boolean;
3512
+ /**
3513
+ * Size or type of display;
3514
+ * `default` for normal height, similar to other controls;
3515
+ * `large` for taller size
3516
+ */
3517
+ display?: EuiFilePickerDisplay;
3518
+ fullWidth?: boolean;
3519
+ isInvalid?: boolean;
3520
+ isLoading?: boolean;
3521
+ disabled?: boolean;
3879
3522
  }
3880
- export const euiShadowXLarge: ({ euiTheme, colorMode }: UseEuiTheme, { color: _color, reverse }?: EuiShadowXLarge) => string;
3881
- /**
3882
- * slightShadowHover
3883
- * TODO: I think this is only used by panels/cards in the Amsterdam theme, move there
3884
- */
3885
- export const euiSlightShadowHover: ({ euiTheme, colorMode }: UseEuiTheme, { color: _color }?: _EuiThemeShadowCustomColor) => string;
3886
- export const useEuiSlightShadowHover: (color?: _EuiThemeShadowCustomColor['color']) => string;
3887
- /**
3888
- * bottomShadowFlat
3889
- *
3890
- * Similar to shadow medium but without the bottom depth.
3891
- * Useful for popovers that drop UP rather than DOWN.
3892
- */
3893
- export const euiShadowFlat: ({ euiTheme, colorMode }: UseEuiTheme, { color: _color }?: _EuiThemeShadowCustomColor) => string;
3894
- export const useEuiShadowFlat: (color?: _EuiThemeShadowCustomColor['color']) => string;
3895
- export const euiShadow: (euiThemeContext: UseEuiTheme, size?: _EuiThemeShadowSize, { color }?: _EuiThemeShadowCustomColor) => string;
3896
- export const useEuiShadow: (size?: _EuiThemeShadowSize, color?: _EuiThemeShadowCustomColor['color']) => string;
3523
+ export class EuiFilePicker extends Component<EuiFilePickerProps> {
3524
+ static defaultProps: {
3525
+ initialPromptText: JSX.Element;
3526
+ compressed: boolean;
3527
+ display: string;
3528
+ };
3529
+ state: {
3530
+ promptText: null;
3531
+ isHoveringDrop: boolean;
3532
+ };
3533
+ fileInput: HTMLInputElement | null;
3534
+ generatedId: string;
3535
+ handleChange: () => void;
3536
+ removeFiles: (e?: React.MouseEvent<HTMLButtonElement, MouseEvent> | undefined) => void;
3537
+ showDrop: () => void;
3538
+ hideDrop: () => void;
3539
+ render(): JSX.Element;
3540
+ }
3541
+ export {};
3897
3542
 
3898
3543
  }
3899
- declare module '@elastic/eui/src/themes/amsterdam/global_styling/mixins' {
3900
- export * from '@elastic/eui/src/themes/amsterdam/global_styling/mixins/button';
3901
- export * from '@elastic/eui/src/themes/amsterdam/global_styling/mixins/shadow';
3544
+ declare module '@elastic/eui/src/components/form/file_picker' {
3545
+ export type { EuiFilePickerProps } from '@elastic/eui/src/components/form/file_picker/file_picker';
3546
+ export { EuiFilePicker } from '@elastic/eui/src/components/form/file_picker/file_picker';
3902
3547
 
3903
3548
  }
3904
- declare module '@elastic/eui/src/components/panel/panel.style' {
3549
+ declare module '@elastic/eui/src/components/panel/panel.styles' {
3905
3550
  import { UseEuiTheme } from '@elastic/eui/src/services';
3906
3551
  export const euiPanelStyles: (euiThemeContext: UseEuiTheme) => {
3907
3552
  euiPanel: import("@emotion/utils").SerializedStyles;
@@ -3920,7 +3565,7 @@ declare module '@elastic/eui/src/components/panel/panel' {
3920
3565
  import { ButtonHTMLAttributes, FunctionComponent, HTMLAttributes, Ref } from 'react';
3921
3566
  import { _EuiBackgroundColor, EuiPaddingSize } from '@elastic/eui/src/global_styling';
3922
3567
  import { CommonProps, ExclusiveUnion } from '@elastic/eui/src/components/common';
3923
- export const SIZES: readonly ["none", "xs", "s", "m", "l", "xl"]; const _SIZES: ("s" | "none" | "xs" | "m" | "l" | "xl")[];
3568
+ export const SIZES: readonly ["none", "xs", "s", "m", "l", "xl"]; const _SIZES: ("s" | "xs" | "m" | "l" | "xl" | "none")[];
3924
3569
  export type PanelPaddingSize = typeof _SIZES[number];
3925
3570
  export const BORDER_RADII: readonly ["none", "m"];
3926
3571
  export type PanelBorderRadius = typeof BORDER_RADII[number];
@@ -4120,7 +3765,7 @@ declare module '@elastic/eui/src/components/form/form_row/form_row' {
4120
3765
  centerCompressed: string;
4121
3766
  columnCompressedSwitch: string;
4122
3767
  };
4123
- export const DISPLAYS: ("row" | "center" | "rowCompressed" | "columnCompressed" | "centerCompressed" | "columnCompressedSwitch")[];
3768
+ export const DISPLAYS: ("center" | "row" | "rowCompressed" | "columnCompressed" | "centerCompressed" | "columnCompressedSwitch")[];
4124
3769
  export type EuiFormRowDisplayKeys = keyof typeof displayToClassNameMap;
4125
3770
  interface EuiFormRowState {
4126
3771
  isFocused: boolean;
@@ -5615,7 +5260,8 @@ declare module '@elastic/eui/src/components/tool_tip/tool_tip_popover' {
5615
5260
 
5616
5261
  }
5617
5262
  declare module '@elastic/eui/src/components/tool_tip/tool_tip' {
5618
- import { Component, ReactElement, ReactNode, MouseEvent as ReactMouseEvent } from 'react';
5263
+ import { Component, ReactElement, ReactNode, MouseEvent as ReactMouseEvent, HTMLAttributes } from 'react';
5264
+ import { CommonProps } from '@elastic/eui/src/components/common';
5619
5265
  export type ToolTipPositions = 'top' | 'right' | 'bottom' | 'left';
5620
5266
  export const POSITIONS: ToolTipPositions[];
5621
5267
  export type ToolTipDelay = 'regular' | 'long';
@@ -5631,9 +5277,13 @@ declare module '@elastic/eui/src/components/tool_tip/tool_tip' {
5631
5277
  };
5632
5278
  export interface EuiToolTipProps {
5633
5279
  /**
5634
- * Passes onto the the trigger.
5280
+ * Passes onto the span wrapping the trigger.
5635
5281
  */
5636
5282
  anchorClassName?: string;
5283
+ /**
5284
+ * Passes onto the span wrapping the trigger.
5285
+ */
5286
+ anchorProps?: CommonProps & HTMLAttributes<HTMLSpanElement>;
5637
5287
  /**
5638
5288
  * The in-view trigger for your tooltip.
5639
5289
  */
@@ -6554,11 +6204,249 @@ declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_anim
6554
6204
  export const animation_ease: _EuiThemeAnimationEasings;
6555
6205
  export const animation: _EuiThemeAnimation;
6556
6206
 
6207
+ }
6208
+ declare module '@elastic/eui/src/global_styling/variables' {
6209
+ export * from '@elastic/eui/src/global_styling/variables/animations';
6210
+ export * from '@elastic/eui/src/global_styling/variables/borders';
6211
+ export * from '@elastic/eui/src/global_styling/variables/breakpoint';
6212
+ export * from '@elastic/eui/src/global_styling/variables/colors';
6213
+ export * from '@elastic/eui/src/global_styling/variables/levels';
6214
+ export * from '@elastic/eui/src/global_styling/variables/size';
6215
+ export * from '@elastic/eui/src/global_styling/variables/shadow';
6216
+ export * from '@elastic/eui/src/global_styling/variables/states';
6217
+ export * from '@elastic/eui/src/global_styling/variables/typography';
6218
+
6557
6219
  }
6558
6220
  declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_breakpoint' {
6559
6221
  import { _EuiThemeBreakpoints } from '@elastic/eui/src/global_styling/variables';
6560
6222
  export const breakpoint: _EuiThemeBreakpoints;
6561
6223
 
6224
+ }
6225
+ declare module '@elastic/eui/src/global_styling/functions/logicals' {
6226
+ /**
6227
+ * EUI utilizes logical CSS properties to enable directional writing-modes.
6228
+ * To encourage use of logical properties, we provide a few helper utilities to
6229
+ * convert certain directional properties to logical properties.
6230
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties
6231
+ */
6232
+ export const logicalSide: {
6233
+ left: string;
6234
+ right: string;
6235
+ top: string;
6236
+ bottom: string;
6237
+ horizontal: string;
6238
+ vertical: string;
6239
+ };
6240
+ export const LOGICAL_SIDES: ("left" | "right" | "top" | "bottom" | "horizontal" | "vertical")[];
6241
+ export type LogicalSides = typeof LOGICAL_SIDES[number];
6242
+ export const logicals: {
6243
+ height: string;
6244
+ width: string;
6245
+ "max-height": string;
6246
+ "max-width": string;
6247
+ "min-height": string;
6248
+ "min-width": string;
6249
+ top: string;
6250
+ right: string;
6251
+ bottom: string;
6252
+ left: string;
6253
+ horizontal: string;
6254
+ vertical: string;
6255
+ "margin-left": string;
6256
+ "margin-right": string;
6257
+ "margin-top": string;
6258
+ "margin-bottom": string;
6259
+ "margin-horizontal": string;
6260
+ "margin-vertical": string;
6261
+ "padding-left": string;
6262
+ "padding-right": string;
6263
+ "padding-top": string;
6264
+ "padding-bottom": string;
6265
+ "padding-horizontal": string;
6266
+ "padding-vertical": string;
6267
+ "overflow-x": string;
6268
+ "overflow-y": string;
6269
+ "border-horizontal": string;
6270
+ "border-horizontal-color": string;
6271
+ "border-horizontal-width": string;
6272
+ "border-horizontal-style": string;
6273
+ "border-vertical": string;
6274
+ "border-vertical-color": string;
6275
+ "border-vertical-width": string;
6276
+ "border-vertical-style": string;
6277
+ "border-bottom": string;
6278
+ "border-bottom-color": string;
6279
+ "border-bottom-style": string;
6280
+ "border-bottom-width": string;
6281
+ "border-top": string;
6282
+ "border-top-color": string;
6283
+ "border-top-style": string;
6284
+ "border-top-width": string;
6285
+ "border-right": string;
6286
+ "border-right-color": string;
6287
+ "border-right-style": string;
6288
+ "border-right-width": string;
6289
+ "border-left": string;
6290
+ "border-left-color": string;
6291
+ "border-left-style": string;
6292
+ "border-left-width": string;
6293
+ "border-top-left-radius": string;
6294
+ "border-top-right-radius": string;
6295
+ "border-bottom-left-radius": string;
6296
+ "border-bottom-right-radius": string;
6297
+ };
6298
+ export const LOGICAL_PROPERTIES: ("left" | "right" | "top" | "width" | "height" | "max-height" | "max-width" | "min-height" | "min-width" | "bottom" | "horizontal" | "vertical" | "margin-left" | "margin-right" | "margin-top" | "margin-bottom" | "margin-horizontal" | "margin-vertical" | "padding-left" | "padding-right" | "padding-top" | "padding-bottom" | "padding-horizontal" | "padding-vertical" | "overflow-x" | "overflow-y" | "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")[];
6299
+ export type LogicalProperties = typeof LOGICAL_PROPERTIES[number];
6300
+ /**
6301
+ *
6302
+ * @param property A string that is a valid CSS logical property
6303
+ * @param value String to output as the property value
6304
+ * @returns `string` Returns the logical CSS property version for the given `property: value` pair
6305
+ */
6306
+ export const logicalCSS: (property: LogicalProperties, value?: any) => string;
6307
+ /**
6308
+ * Some logical properties are not yet fully supported by all browsers.
6309
+ * For those cases, we should use the old property as a fallback for
6310
+ * browsers missing support, while allowing supporting browsers to use
6311
+ * the logical properties.
6312
+ *
6313
+ * Examples:
6314
+ * https://caniuse.com/?search=overflow-block
6315
+ * https://caniuse.com/mdn-css_properties_float_flow_relative_values
6316
+ */
6317
+ export const logicalCSSWithFallback: (property: LogicalProperties, value?: any) => string;
6318
+ /**
6319
+ *
6320
+ * @param property A string that is a valid CSS logical property
6321
+ * @param value String to output as the property value
6322
+ * @returns `object` Returns the logical CSS property version for the given `property: value` pair
6323
+ */
6324
+ export const logicalStyle: (property: LogicalProperties, value?: any) => {
6325
+ [x: string]: any;
6326
+ };
6327
+ /**
6328
+ *
6329
+ * @param width A string value for the LTR width
6330
+ * @param height A string value for the LTR height
6331
+ * @returns `string` Returns the logical CSS properties for height and width
6332
+ */
6333
+ export const logicalSizeCSS: (width: any, height: any) => string;
6334
+ /**
6335
+ *
6336
+ * @param width A string value for the LTR width
6337
+ * @param height A string value for the LTR height
6338
+ * @returns `object` Returns the logical CSS properties for height and width
6339
+ */
6340
+ export const logicalSizeStyle: (width: any, height: any) => {
6341
+ [x: string]: any;
6342
+ };
6343
+ export const logicalText: {
6344
+ 'text-align': {
6345
+ left: string;
6346
+ center: string;
6347
+ right: string;
6348
+ };
6349
+ };
6350
+ export const LOGICAL_TEXT_ALIGNMENT: ("left" | "right" | "center")[];
6351
+ export type LogicalText = typeof LOGICAL_TEXT_ALIGNMENT[number];
6352
+ /**
6353
+ *
6354
+ * @param property A string that is a valid CSS logical property
6355
+ * @param value String to output as the property value
6356
+ * @returns `string` Returns the logical CSS property version for the given `property: value` pair
6357
+ */
6358
+ export const logicalTextAlignCSS: (value: LogicalText) => string;
6359
+ /**
6360
+ *
6361
+ * @param property A string that is a valid CSS logical property
6362
+ * @param value String to output as the property value
6363
+ * @returns `object` Returns the logical CSS property version for the given `property: value` pair
6364
+ */
6365
+ export const logicalTextAlignStyle: (value: LogicalText) => {
6366
+ textAlign: string;
6367
+ };
6368
+
6369
+ }
6370
+ declare module '@elastic/eui/src/global_styling/functions/size' {
6371
+ /**
6372
+ * Calculates the `px` value based on a scale multiplier
6373
+ * @param scale - The font scale multiplier
6374
+ * *
6375
+ * @param themeOrBase - Theme base value
6376
+ * *
6377
+ * @returns string - Rem unit aligned to baseline
6378
+ */
6379
+ export const sizeToPixel: (scale?: number) => (themeOrBase: number | {
6380
+ [key: string]: any;
6381
+ base: number;
6382
+ }) => string;
6383
+
6384
+ }
6385
+ declare module '@elastic/eui/src/services/theme/hooks' {
6386
+ import React from 'react';
6387
+ import { EuiThemeColorModeStandard, EuiThemeModifications, EuiThemeComputed } from '@elastic/eui/src/services/theme/types';
6388
+ export interface UseEuiTheme<T extends {} = {}> {
6389
+ euiTheme: EuiThemeComputed<T>;
6390
+ colorMode: EuiThemeColorModeStandard;
6391
+ modifications: EuiThemeModifications<T>;
6392
+ }
6393
+ export const useEuiTheme: <T extends {} = {}>() => UseEuiTheme<T>;
6394
+ export interface WithEuiThemeProps<P = {}> {
6395
+ theme: UseEuiTheme<P>;
6396
+ }
6397
+ export const withEuiTheme: <T extends {} = {}, U extends {} = {}>(Component: React.ComponentType<T & WithEuiThemeProps<U>>) => React.ForwardRefExoticComponent<React.PropsWithoutRef<Omit<T, "theme">> & React.RefAttributes<Omit<T, "theme">>>;
6398
+
6399
+ }
6400
+ declare module '@elastic/eui/src/global_styling/functions/typography' {
6401
+ import { _EuiThemeFontScale, _EuiThemeFontSizeMeasurement } from '@elastic/eui/src/global_styling/variables/typography';
6402
+ import { UseEuiTheme } from '@elastic/eui/src/services/theme/hooks';
6403
+ export interface _FontScaleOptions {
6404
+ /**
6405
+ * The returned string measurement
6406
+ */
6407
+ measurement?: _EuiThemeFontSizeMeasurement;
6408
+ /**
6409
+ * An additional custom scale multiplier to use against the current scale
6410
+ * This parameter can be used (e.g. by EuiText sizes) to get sizes of text smaller than the default
6411
+ */
6412
+ customScale?: _EuiThemeFontScale;
6413
+ }
6414
+ /**
6415
+ * Calculates the font-size value based on the provided scale key
6416
+ * @param scale - The font scale key
6417
+ * @param theme - Requires the `base` and `font` keys
6418
+ * @param options - Optional parameters - see _FontScaleOptions
6419
+ *
6420
+ * @returns string - Calculated font-size value
6421
+ */
6422
+ export function euiFontSizeFromScale(scale: _EuiThemeFontScale, { base, font }: UseEuiTheme['euiTheme'], { measurement, customScale }?: _FontScaleOptions): string;
6423
+ /**
6424
+ * Calculates the line-height to the closest multiple of the baseline
6425
+ * EX: A proper line-height for text is 1.5 times the font-size.
6426
+ * If our base font size (euiFontSize) is 16, and our baseline is 4. To ensure the
6427
+ * text stays on the baseline, we pass a multiplier to calculate a line-height.
6428
+ * @param scale - The font scale key
6429
+ * @param theme - Requires the `base` and `font` keys
6430
+ * @param options - Optional parameters - see _FontScaleOptions
6431
+ *
6432
+ * @returns string - Calculated line-height value aligned to baseline
6433
+ */
6434
+ export function euiLineHeightFromBaseline(scale: _EuiThemeFontScale, { base, font }: UseEuiTheme['euiTheme'], { measurement, customScale }?: _FontScaleOptions): string;
6435
+ /**
6436
+ * Text weight shifting
6437
+ *
6438
+ * When changing the font-weight based on the state of the component,
6439
+ * this mixin will ensure that the sizing is dependent on the boldest
6440
+ * weight so it doesn't shift sibling content.
6441
+ */
6442
+ export const euiTextShift: (fontWeight: "bold" | "medium" | "light" | "regular" | "semiBold" | undefined, attribute: string | undefined, euiTheme: UseEuiTheme['euiTheme']) => string;
6443
+
6444
+ }
6445
+ declare module '@elastic/eui/src/global_styling/functions' {
6446
+ export * from '@elastic/eui/src/global_styling/functions/logicals';
6447
+ export * from '@elastic/eui/src/global_styling/functions/size';
6448
+ export * from '@elastic/eui/src/global_styling/functions/typography';
6449
+
6562
6450
  }
6563
6451
  declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_size' {
6564
6452
  import { _EuiThemeBase, _EuiThemeSizes } from '@elastic/eui/src/global_styling/variables';
@@ -6635,6 +6523,16 @@ declare module '@elastic/eui/src/services/theme' {
6635
6523
  declare module '@elastic/eui/src/services/throttle' {
6636
6524
  export const throttle: (fn: (...args: any[]) => void, wait?: number) => (...args: any[]) => void;
6637
6525
 
6526
+ }
6527
+ declare module '@elastic/eui/src/services/breakpoint/_sorting' {
6528
+ import { _EuiThemeBreakpoints } from '@elastic/eui/src/global_styling/variables/breakpoint';
6529
+ export const sortMapByLargeToSmallValues: (breakpointsMap: _EuiThemeBreakpoints) => {
6530
+ [k: string]: number;
6531
+ };
6532
+ export const sortMapBySmallToLargeValues: (breakpointsMap: _EuiThemeBreakpoints) => {
6533
+ [k: string]: number;
6534
+ };
6535
+
6638
6536
  }
6639
6537
  declare module '@elastic/eui/src/services/breakpoint/current_breakpoint' {
6640
6538
  import React, { FunctionComponent } from 'react';
@@ -7104,56 +7002,318 @@ declare module '@elastic/eui/src/services/hooks/useLatest' {
7104
7002
  export function useLatest<Value>(value: Value): MutableRefObject<Value | null>;
7105
7003
 
7106
7004
  }
7107
- declare module '@elastic/eui/src/services/hooks/useMouseMove' {
7108
- import { MouseEvent, TouchEvent } from 'react';
7109
- export function isMouseEvent<T = HTMLDivElement>(event: MouseEvent<T> | TouchEvent<T>): event is MouseEvent<T>;
7110
- export function useMouseMove<T = HTMLDivElement>(handleChange: (location: {
7111
- x: number;
7112
- y: number;
7113
- }, isFirstInteraction?: boolean) => void, interactionConditional?: any): [
7114
- (e: MouseEvent<T>) => void,
7115
- (e: MouseEvent<T> | TouchEvent<T>, isFirstInteraction?: boolean) => void
7116
- ];
7005
+ declare module '@elastic/eui/src/services/hooks/useMouseMove' {
7006
+ import { MouseEvent, TouchEvent } from 'react';
7007
+ export function isMouseEvent<T = HTMLDivElement>(event: MouseEvent<T> | TouchEvent<T>): event is MouseEvent<T>;
7008
+ export function useMouseMove<T = HTMLDivElement>(handleChange: (location: {
7009
+ x: number;
7010
+ y: number;
7011
+ }, isFirstInteraction?: boolean) => void, interactionConditional?: any): [
7012
+ (e: MouseEvent<T>) => void,
7013
+ (e: MouseEvent<T> | TouchEvent<T>, isFirstInteraction?: boolean) => void
7014
+ ];
7015
+
7016
+ }
7017
+ declare module '@elastic/eui/src/services/hooks' {
7018
+ export * from '@elastic/eui/src/services/hooks/useDependentState';
7019
+ export * from '@elastic/eui/src/services/hooks/useCombinedRefs';
7020
+ export * from '@elastic/eui/src/services/hooks/useForceRender';
7021
+ export * from '@elastic/eui/src/services/hooks/useLatest';
7022
+ export * from '@elastic/eui/src/services/hooks/useMouseMove';
7023
+ export * from '@elastic/eui/src/services/hooks/useUpdateEffect';
7024
+
7025
+ }
7026
+ declare module '@elastic/eui/src/services' {
7027
+ import * as keys from '@elastic/eui/src/services/keys';
7028
+ export { keys };
7029
+ export { accessibleClickKeys, cascadingMenuKeys, comboBoxKeys, htmlIdGenerator, useGeneratedHtmlId, } from '@elastic/eui/src/services/accessibility';
7030
+ export type { HorizontalAlignment } from '@elastic/eui/src/services/alignment';
7031
+ export { LEFT_ALIGNMENT, RIGHT_ALIGNMENT, CENTER_ALIGNMENT } from '@elastic/eui/src/services/alignment';
7032
+ export type { EuiBreakpointSize } from '@elastic/eui/src/services/breakpoint';
7033
+ export { useIsWithinBreakpoints, useIsWithinMaxBreakpoint, useIsWithinMinBreakpoint, CurrentEuiBreakpointContext, CurrentEuiBreakpointProvider, useCurrentEuiBreakpoint, } from '@elastic/eui/src/services/breakpoint';
7034
+ export type { HSV } from '@elastic/eui/src/services/color';
7035
+ 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';
7036
+ export type { EuiSetColorMethod } from '@elastic/eui/src/services/color_picker';
7037
+ export { useColorPickerState, useColorStopsState } from '@elastic/eui/src/services/color_picker';
7038
+ export * from '@elastic/eui/src/services/console';
7039
+ export { copyToClipboard } from '@elastic/eui/src/services/copy_to_clipboard';
7040
+ export * from '@elastic/eui/src/services/findElement';
7041
+ export { formatAuto, formatBoolean, formatDate, formatNumber, formatText, dateFormatAliases, } from '@elastic/eui/src/services/format';
7042
+ export { isEvenlyDivisibleBy, isWithinRange } from '@elastic/eui/src/services/number';
7043
+ export { Pager } from '@elastic/eui/src/services/paging';
7044
+ export { Random } from '@elastic/eui/src/services/random';
7045
+ export { getSecureRelForTarget } from '@elastic/eui/src/services/security';
7046
+ export { toSentenceCase, toInitials, slugify } from '@elastic/eui/src/services/string';
7047
+ export type { PropertySort, Direction } from '@elastic/eui/src/services/sort';
7048
+ export { PropertySortType, SortDirectionType, SortDirection, SortableProperties, Comparators, } from '@elastic/eui/src/services/sort';
7049
+ export { calculatePopoverPosition, findPopoverPosition } from '@elastic/eui/src/services/popover';
7050
+ export { getDurationAndPerformOnFrame, getTransitionTimings, getWaitDuration, performOnFrame, } from '@elastic/eui/src/services/transition';
7051
+ export { EuiWindowEvent } from '@elastic/eui/src/services/window_event';
7052
+ export * from '@elastic/eui/src/services/hooks';
7053
+ export { throttle } from '@elastic/eui/src/services/throttle';
7054
+ export * from '@elastic/eui/src/services/theme';
7055
+
7056
+ }
7057
+ declare module '@elastic/eui/src/global_styling/mixins/_color' {
7058
+ import { UseEuiTheme } from '@elastic/eui/src/services';
7059
+ export const BACKGROUND_COLORS: readonly ["transparent", "plain", "subdued", "accent", "primary", "success", "warning", "danger"];
7060
+ export type _EuiBackgroundColor = typeof BACKGROUND_COLORS[number];
7061
+ export interface _EuiBackgroundColorOptions {
7062
+ /**
7063
+ * Use `opaque` for containers of unknown content.
7064
+ * Use `transparent` for interactive states like hover and focus.
7065
+ */
7066
+ method?: 'opaque' | 'transparent';
7067
+ }
7068
+ export const euiBackgroundColor: ({ euiTheme, colorMode }: UseEuiTheme, color: _EuiBackgroundColor, { method }?: _EuiBackgroundColorOptions) => string;
7069
+ export const useEuiBackgroundColor: (color: _EuiBackgroundColor, { method }?: _EuiBackgroundColorOptions) => string;
7070
+ export const useEuiBackgroundColorCSS: () => {
7071
+ transparent: import("@emotion/utils").SerializedStyles;
7072
+ plain: import("@emotion/utils").SerializedStyles;
7073
+ subdued: import("@emotion/utils").SerializedStyles;
7074
+ accent: import("@emotion/utils").SerializedStyles;
7075
+ primary: import("@emotion/utils").SerializedStyles;
7076
+ success: import("@emotion/utils").SerializedStyles;
7077
+ warning: import("@emotion/utils").SerializedStyles;
7078
+ danger: import("@emotion/utils").SerializedStyles;
7079
+ };
7080
+
7081
+ }
7082
+ declare module '@elastic/eui/src/global_styling/mixins/_helpers' {
7083
+ import { CSSProperties } from 'react';
7084
+ import { UseEuiTheme } from '@elastic/eui/src/services/theme';
7085
+ /**
7086
+ * Set scroll bar appearance on Chrome (and firefox).
7087
+ * All parameters are optional and default to specific global settings.
7088
+ */
7089
+ export interface EuiScrollBarStyles {
7090
+ thumbColor?: CSSProperties['backgroundColor'];
7091
+ trackColor?: CSSProperties['backgroundColor'];
7092
+ /**
7093
+ * Defaults to `thin`. Use `auto` only for large page scrollbars
7094
+ */
7095
+ width?: CSSProperties['scrollbarWidth'];
7096
+ /**
7097
+ * Overall width (height for horizontal scrollbars)
7098
+ */
7099
+ size?: CSSProperties['width'];
7100
+ /**
7101
+ * Corner sizes are usually determined by `width` and
7102
+ * are used as an inset border and therefore a smaller corner size means a larger thumb
7103
+ */
7104
+ corner?: CSSProperties['borderWidth'];
7105
+ }
7106
+ export const euiScrollBarStyles: ({ euiTheme: { colors, size } }: UseEuiTheme, { thumbColor: _thumbColor, trackColor, width, size: _size, corner: _corner, }?: EuiScrollBarStyles) => string;
7107
+ export const useEuiScrollBar: (options?: EuiScrollBarStyles | undefined) => string;
7108
+ /**
7109
+ * 1. Focus rings shouldn't be visible on scrollable regions, but a11y requires them to be focusable.
7110
+ * Browser's supporting `:focus-visible` will still show outline on keyboard focus only.
7111
+ * Others like Safari, won't show anything at all.
7112
+ */
7113
+ interface _EuiYScroll {
7114
+ height?: CSSProperties['height'];
7115
+ }
7116
+ export const euiYScroll: (euiTheme: UseEuiTheme, { height }?: _EuiYScroll) => string;
7117
+ export const useEuiYScroll: ({ height }?: _EuiYScroll) => string;
7118
+ export const euiYScrollWithShadows: (euiTheme: UseEuiTheme, { height }?: _EuiYScroll) => string;
7119
+ export const useEuiYScrollWithShadows: ({ height }?: _EuiYScroll) => string;
7120
+ export const euiXScroll: (euiTheme: UseEuiTheme) => string;
7121
+ export const useEuiXScroll: () => string;
7122
+ export const euiXScrollWithShadows: (euiTheme: UseEuiTheme) => string;
7123
+ export const useEuiXScrollWithShadows: () => string;
7124
+ interface EuiScrollOverflowStyles {
7125
+ direction?: 'y' | 'x';
7126
+ mask?: boolean;
7127
+ }
7128
+ export const euiOverflowScroll: (euiTheme: UseEuiTheme, { direction, mask }?: EuiScrollOverflowStyles) => string;
7129
+ export const useEuiOverflowScroll: (direction: EuiScrollOverflowStyles['direction'], mask?: EuiScrollOverflowStyles['mask']) => string;
7130
+ /**
7131
+ * For quickly applying a full-height element whether using flex or not
7132
+ */
7133
+ export const euiFullHeight: () => string;
7134
+ /**
7135
+ * A constant storing the support for the `:has()` selector through a
7136
+ * media query that will only apply the content it is supported.
7137
+ */
7138
+ export const euiSupportsHas = "@supports(selector(:has(p)))";
7139
+ export {};
7140
+
7141
+ }
7142
+ declare module '@elastic/eui/src/global_styling/mixins/_padding' {
7143
+ import { UseEuiTheme } from '@elastic/eui/src/services/theme';
7144
+ export const PADDING_SIZES: readonly ["none", "xs", "s", "m", "l", "xl"];
7145
+ export type EuiPaddingSize = typeof PADDING_SIZES[number];
7146
+ export const euiPaddingSize: ({ euiTheme }: UseEuiTheme, size: EuiPaddingSize) => string | null;
7147
+ export const useEuiPaddingSize: (size: EuiPaddingSize) => string | null;
7148
+ export const useEuiPaddingCSS: (side?: "left" | "right" | "top" | "bottom" | "horizontal" | "vertical" | undefined) => {
7149
+ none: null;
7150
+ xs: import("@emotion/utils").SerializedStyles;
7151
+ s: import("@emotion/utils").SerializedStyles;
7152
+ m: import("@emotion/utils").SerializedStyles;
7153
+ l: import("@emotion/utils").SerializedStyles;
7154
+ xl: import("@emotion/utils").SerializedStyles;
7155
+ };
7156
+
7157
+ }
7158
+ declare module '@elastic/eui/src/global_styling/mixins/_states' {
7159
+ import { CSSProperties } from 'react';
7160
+ import { UseEuiTheme } from '@elastic/eui/src/services';
7161
+ export type _EuiFocusRingOffset = 'inset' | 'outset' | 'center' | CSSProperties['outlineOffset'];
7162
+ /**
7163
+ * It is best practice to utilize the browser's default `outline` property for handling focus rings.
7164
+ * However, some components need to be forced to have the same behavior, or adjust the display.
7165
+ * This function re-applies the same default outline with a couple parameters
7166
+ * @param euiTheme UseEuiTheme.euiTheme
7167
+ * @param offset Accepts a specific measurement or 'inset', 'outset' or 'center' to adjust outline position
7168
+ * @param color Accepts any CSS color, **Note: only works in -webkit-**
7169
+ */
7170
+ export const euiFocusRing: ({ euiTheme }: UseEuiTheme, offset?: _EuiFocusRingOffset, options?: {
7171
+ color?: CSSProperties['outlineColor'];
7172
+ } | undefined) => string;
7173
+ export const useEuiFocusRing: (offset?: _EuiFocusRingOffset, color?: CSSProperties['outlineColor']) => string;
7174
+
7175
+ }
7176
+ declare module '@elastic/eui/src/global_styling/mixins/_typography' {
7177
+ import { CSSProperties } from 'react';
7178
+ import { _FontScaleOptions } from '@elastic/eui/src/global_styling/functions/typography';
7179
+ import { UseEuiTheme } from '@elastic/eui/src/services/theme/hooks';
7180
+ import { _EuiThemeFontScale } from '@elastic/eui/src/global_styling/variables/typography';
7181
+ export type EuiThemeFontSize = {
7182
+ fontSize: CSSProperties['fontSize'];
7183
+ lineHeight: CSSProperties['lineHeight'];
7184
+ };
7185
+ /**
7186
+ * Returns font-size and line-height
7187
+ */
7188
+ export const euiFontSize: ({ euiTheme }: UseEuiTheme, scale: _EuiThemeFontScale, options?: _FontScaleOptions | undefined) => EuiThemeFontSize;
7189
+ export const useEuiFontSize: (scale: _EuiThemeFontScale, options?: _FontScaleOptions | undefined) => EuiThemeFontSize;
7190
+ /**
7191
+ * Force text to wrap on natural word breaks (e.g. spaces & hyphens)
7192
+ * https://css-tricks.com/snippets/css/prevent-long-urls-from-breaking-out-of-container/
7193
+ */
7194
+ export const euiTextBreakWord: () => string;
7195
+ /**
7196
+ * Prevent text from wrapping onto multiple lines, and truncate with an ellipsis.
7197
+ */
7198
+ export const euiTextTruncate: (maxWidth?: CSSProperties['maxWidth']) => string;
7199
+ /**
7200
+ * Fixed-width numbers for tabular data
7201
+ */
7202
+ export const euiNumberFormat: ({ euiTheme }: UseEuiTheme) => string;
7203
+ export const useEuiNumberFormat: () => string;
7204
+
7205
+ }
7206
+ declare module '@elastic/eui/src/global_styling/mixins/_responsive' {
7207
+ import { UseEuiTheme } from '@elastic/eui/src/services/theme/hooks';
7208
+ import { _EuiThemeBreakpoint } from '@elastic/eui/src/global_styling/variables';
7209
+ /**
7210
+ * Generates a CSS media query rule string based on the input breakpoint ranges.
7211
+ * Examples with default theme breakpoints:
7212
+ *
7213
+ * euiBreakpoint(['s']) becomes `@media only screen and (min-width: 575px) and (max-width: 767px)`
7214
+ * euiBreakpoint(['s', 'l']) becomes `@media only screen and (min-width: 575px) and (max-width: 1199px)`
7215
+ *
7216
+ * Use the smallest and largest sizes to generate media queries with only min/max-width.
7217
+ * Examples with default theme breakpoints:
7218
+ *
7219
+ * euiBreakpoint(['xs', 'm']) becomes `@media only screen and (max-width: 991px)`
7220
+ * euiBreakpoint(['l', 'xl']) becomes `@media only screen and (min-width: 992px)`
7221
+ */
7222
+ export const euiBreakpoint: ({ euiTheme }: UseEuiTheme, sizes: [_EuiThemeBreakpoint, ..._EuiThemeBreakpoint[]]) => string;
7223
+ export const useEuiBreakpoint: (sizes: [_EuiThemeBreakpoint, ..._EuiThemeBreakpoint[]]) => string;
7224
+
7225
+ }
7226
+ declare module '@elastic/eui/src/global_styling/mixins' {
7227
+ export * from '@elastic/eui/src/global_styling/mixins/_color';
7228
+ export * from '@elastic/eui/src/global_styling/mixins/_helpers';
7229
+ export * from '@elastic/eui/src/global_styling/mixins/_padding';
7230
+ export * from '@elastic/eui/src/global_styling/mixins/_states';
7231
+ export * from '@elastic/eui/src/global_styling/mixins/_typography';
7232
+ export * from '@elastic/eui/src/global_styling/mixins/_responsive';
7233
+
7234
+ }
7235
+ declare module '@elastic/eui/src/global_styling/reset/reset' {
7236
+ export const resetStyles = "\n/* // Adapted from Eric Meyer's reset (http://meyerweb.com/eric/tools/css/reset/, v2.0 | 20110126). */\n\n\n*, *:before, *:after {\n box-sizing: border-box;\n}\n\nhtml, body, div, span, applet, object, iframe,\nh1, h2, h3, h4, h5, h6, p, blockquote, pre,\na, abbr, acronym, address, big, cite, code,\ndel, dfn, em, img, ins, kbd, q, s, samp,\nsmall, strike, strong, sub, sup, tt, var,\nb, u, i, center,\ndl, dt, dd, ol, ul, li,\nfieldset, form, label, legend,\ntable, caption, tbody, tfoot, thead, tr, th, td,\narticle, aside, canvas, details, embed,\nfigure, figcaption, footer, header, hgroup,\nmenu, nav, output, ruby, section, summary,\ntime, mark, audio, video {\n margin: 0;\n padding: 0;\n border: none;\n vertical-align: baseline;\n}\n\nh1, h2, h3, h4, h5, h6, p {\n font-family: inherit;\n font-weight: inherit;\n font-size: inherit;\n}\n\n/* HTML5 display-role reset for older browsers */\narticle, aside, details, figcaption, figure,\nfooter, header, hgroup, menu, nav, section {\n display: block;\n}\n\na[href],\nbutton,\n[role='button'] {\n cursor: pointer;\n}\n\nbutton {\n background: none;\n border: none;\n padding: 0;\n margin: 0;\n color: inherit;\n border-radius: 0;\n font-size: inherit;\n}\n\ninput {\n margin: 0;\n padding: 0;\n}\n\ninput:disabled {\n opacity: 1; /* required on iOS */\n}\n\nol,\nul {\n list-style: none;\n}\n\nblockquote,\nq {\n quotes: none;\n}\n\nblockquote:before,\nblockquote:after,\nq:before,\nq:after {\n content: '';\n}\n\ntable {\n border-collapse: collapse;\n border-spacing: 0;\n}\n\nhr {\n margin: 0;\n}\n\nfieldset {\n min-inline-size: auto;\n}\n\n/* Chrome has an issue around RTL languages in SVGs when letter-spacing is negative\n * https://bugs.chromium.org/p/chromium/issues/detail?id=966480\n */\nsvg text {\n letter-spacing: normal !important;\n}";
7237
+
7238
+ }
7239
+ declare module '@elastic/eui/src/global_styling/reset/global_styles' {
7240
+
7241
+ export interface EuiGlobalStylesProps {
7242
+ }
7243
+ export const EuiGlobalStyles: ({}: EuiGlobalStylesProps) => JSX.Element;
7244
+
7245
+ }
7246
+ declare module '@elastic/eui/src/global_styling' {
7247
+ export * from '@elastic/eui/src/global_styling/reset/global_styles';
7248
+ export * from '@elastic/eui/src/global_styling/functions';
7249
+ export * from '@elastic/eui/src/global_styling/variables';
7250
+ export * from '@elastic/eui/src/global_styling/mixins';
7251
+
7252
+ }
7253
+ declare module '@elastic/eui/src/components/accessibility/screen_reader_only/screen_reader_only.styles' {
7254
+ export const euiScreenReaderOnly: () => string;
7255
+ export const euiScreenReaderOnlyStyles: (showOnFocus?: boolean | undefined) => {
7256
+ euiScreenReaderOnly: import("@emotion/utils").SerializedStyles;
7257
+ };
7258
+
7259
+ }
7260
+ declare module '@elastic/eui/src/components/accessibility/screen_reader_only/screen_reader_only' {
7261
+ import { ReactElement, FunctionComponent } from 'react';
7262
+ export interface EuiScreenReaderOnlyProps {
7263
+ /**
7264
+ * ReactElement to render as this component's content
7265
+ */
7266
+ children: ReactElement;
7267
+ /**
7268
+ * For keyboard navigation, force content to display visually upon focus.
7269
+ */
7270
+ showOnFocus?: boolean;
7271
+ className?: string;
7272
+ }
7273
+ export const EuiScreenReaderOnly: FunctionComponent<EuiScreenReaderOnlyProps>;
7274
+
7275
+ }
7276
+ declare module '@elastic/eui/src/components/accessibility/screen_reader_only' {
7277
+ export type { EuiScreenReaderOnlyProps } from '@elastic/eui/src/components/accessibility/screen_reader_only/screen_reader_only';
7278
+ export { EuiScreenReaderOnly } from '@elastic/eui/src/components/accessibility/screen_reader_only/screen_reader_only';
7279
+ export { euiScreenReaderOnly } from '@elastic/eui/src/components/accessibility/screen_reader_only/screen_reader_only.styles';
7117
7280
 
7118
7281
  }
7119
- declare module '@elastic/eui/src/services/hooks' {
7120
- export * from '@elastic/eui/src/services/hooks/useDependentState';
7121
- export * from '@elastic/eui/src/services/hooks/useCombinedRefs';
7122
- export * from '@elastic/eui/src/services/hooks/useForceRender';
7123
- export * from '@elastic/eui/src/services/hooks/useLatest';
7124
- export * from '@elastic/eui/src/services/hooks/useMouseMove';
7125
- export * from '@elastic/eui/src/services/hooks/useUpdateEffect';
7282
+ declare module '@elastic/eui/src/components/accessibility/screen_reader_live/screen_reader_live' {
7283
+ import { AriaAttributes, HTMLAttributes, FunctionComponent, ReactNode } from 'react';
7284
+ export interface EuiScreenReaderLiveProps {
7285
+ /**
7286
+ * Whether to make screen readers aware of the content
7287
+ */
7288
+ isActive?: boolean;
7289
+ /**
7290
+ * Content for screen readers to announce
7291
+ */
7292
+ children?: ReactNode;
7293
+ /**
7294
+ * `role` attribute for both live regions.
7295
+ *
7296
+ * https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Live_Regions#roles_with_implicit_live_region_attributes
7297
+ */
7298
+ role?: HTMLAttributes<HTMLDivElement>['role'];
7299
+ /**
7300
+ * `aria-live` attribute for both live regions
7301
+ */
7302
+ 'aria-live'?: AriaAttributes['aria-live'];
7303
+ /**
7304
+ * On `children`/text change, the region will auto-focus itself, causing screen readers
7305
+ * to automatically read out the text content. This prop should primarily be used for
7306
+ * navigation or page changes, where programmatically resetting focus location back to
7307
+ * a certain part of the page is desired.
7308
+ */
7309
+ focusRegionOnTextChange?: boolean;
7310
+ }
7311
+ export const EuiScreenReaderLive: FunctionComponent<EuiScreenReaderLiveProps>;
7126
7312
 
7127
7313
  }
7128
- declare module '@elastic/eui/src/services' {
7129
- import * as keys from '@elastic/eui/src/services/keys';
7130
- export { keys };
7131
- export { accessibleClickKeys, cascadingMenuKeys, comboBoxKeys, htmlIdGenerator, useGeneratedHtmlId, } from '@elastic/eui/src/services/accessibility';
7132
- export type { HorizontalAlignment } from '@elastic/eui/src/services/alignment';
7133
- export { LEFT_ALIGNMENT, RIGHT_ALIGNMENT, CENTER_ALIGNMENT } from '@elastic/eui/src/services/alignment';
7134
- export type { EuiBreakpointSize } from '@elastic/eui/src/services/breakpoint';
7135
- export { useIsWithinBreakpoints, useIsWithinMaxBreakpoint, useIsWithinMinBreakpoint, CurrentEuiBreakpointContext, CurrentEuiBreakpointProvider, useCurrentEuiBreakpoint, } from '@elastic/eui/src/services/breakpoint';
7136
- export type { HSV } from '@elastic/eui/src/services/color';
7137
- 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';
7138
- export type { EuiSetColorMethod } from '@elastic/eui/src/services/color_picker';
7139
- export { useColorPickerState, useColorStopsState } from '@elastic/eui/src/services/color_picker';
7140
- export * from '@elastic/eui/src/services/console';
7141
- export { copyToClipboard } from '@elastic/eui/src/services/copy_to_clipboard';
7142
- export * from '@elastic/eui/src/services/findElement';
7143
- export { formatAuto, formatBoolean, formatDate, formatNumber, formatText, dateFormatAliases, } from '@elastic/eui/src/services/format';
7144
- export { isEvenlyDivisibleBy, isWithinRange } from '@elastic/eui/src/services/number';
7145
- export { Pager } from '@elastic/eui/src/services/paging';
7146
- export { Random } from '@elastic/eui/src/services/random';
7147
- export { getSecureRelForTarget } from '@elastic/eui/src/services/security';
7148
- export { toSentenceCase, toInitials, slugify } from '@elastic/eui/src/services/string';
7149
- export type { PropertySort, Direction } from '@elastic/eui/src/services/sort';
7150
- export { PropertySortType, SortDirectionType, SortDirection, SortableProperties, Comparators, } from '@elastic/eui/src/services/sort';
7151
- export { calculatePopoverPosition, findPopoverPosition } from '@elastic/eui/src/services/popover';
7152
- export { getDurationAndPerformOnFrame, getTransitionTimings, getWaitDuration, performOnFrame, } from '@elastic/eui/src/services/transition';
7153
- export { EuiWindowEvent } from '@elastic/eui/src/services/window_event';
7154
- export * from '@elastic/eui/src/services/hooks';
7155
- export { throttle } from '@elastic/eui/src/services/throttle';
7156
- export * from '@elastic/eui/src/services/theme';
7314
+ declare module '@elastic/eui/src/components/accessibility/screen_reader_live' {
7315
+ export { EuiScreenReaderLive } from '@elastic/eui/src/components/accessibility/screen_reader_live/screen_reader_live';
7316
+ export type { EuiScreenReaderLiveProps } from '@elastic/eui/src/components/accessibility/screen_reader_live/screen_reader_live';
7157
7317
 
7158
7318
  }
7159
7319
  declare module '@elastic/eui/src/components/accessibility/skip_link/skip_link.styles' {
@@ -7262,7 +7422,7 @@ declare module '@elastic/eui/src/components/accordion/accordion' {
7262
7422
  l: string;
7263
7423
  xl: string;
7264
7424
  };
7265
- export const PADDING_SIZES: ("s" | "none" | "xs" | "m" | "l" | "xl")[];
7425
+ export const PADDING_SIZES: ("s" | "xs" | "m" | "l" | "xl" | "none")[];
7266
7426
  export type EuiAccordionSize = keyof typeof paddingSizeToClassNameMap;
7267
7427
  export type EuiAccordionProps = CommonProps & Omit<HTMLAttributes<HTMLElement>, 'id'> & {
7268
7428
  id: string;
@@ -7552,7 +7712,7 @@ declare module '@elastic/eui/src/components/badge/badge' {
7552
7712
  declare module '@elastic/eui/src/components/badge/beta_badge/beta_badge' {
7553
7713
  import { AriaAttributes, FunctionComponent, HTMLAttributes, MouseEventHandler, ReactNode } from 'react';
7554
7714
  import { CommonProps, ExclusiveUnion } from '@elastic/eui/src/components/common';
7555
- import { ToolTipPositions } from '@elastic/eui/src/components/tool_tip';
7715
+ import { EuiToolTipProps, ToolTipPositions } from '@elastic/eui/src/components/tool_tip';
7556
7716
  import { IconType } from '@elastic/eui/src/components/icon'; const colorToClassMap: {
7557
7717
  accent: string;
7558
7718
  subdued: string;
@@ -7607,6 +7767,10 @@ declare module '@elastic/eui/src/components/badge/beta_badge/beta_badge' {
7607
7767
  * Custom position of the tooltip
7608
7768
  */
7609
7769
  tooltipPosition?: ToolTipPositions;
7770
+ /**
7771
+ * Passes onto the span wrapping the badge
7772
+ */
7773
+ anchorProps?: EuiToolTipProps['anchorProps'];
7610
7774
  /**
7611
7775
  * Optional title will be supplied as tooltip title or title attribute
7612
7776
  * otherwise the label will be used
@@ -7665,7 +7829,7 @@ declare module '@elastic/eui/src/components/badge/badge_group/badge_group' {
7665
7829
  xs: string;
7666
7830
  s: string;
7667
7831
  };
7668
- export const GUTTER_SIZES: ("s" | "none" | "xs")[]; type BadgeGroupGutterSize = keyof typeof gutterSizeToClassNameMap;
7832
+ export const GUTTER_SIZES: ("s" | "xs" | "none")[]; type BadgeGroupGutterSize = keyof typeof gutterSizeToClassNameMap;
7669
7833
  export interface EuiBadgeGroupProps {
7670
7834
  /**
7671
7835
  * Space between badges
@@ -7972,18 +8136,90 @@ declare module '@elastic/eui/src/components/breadcrumbs' {
7972
8136
  export { EuiBreadcrumbs } from '@elastic/eui/src/components/breadcrumbs/breadcrumbs';
7973
8137
 
7974
8138
  }
7975
- declare module '@elastic/eui/src/components/card/card_select' {
7976
- import { FunctionComponent } from 'react';
7977
- import { EuiButtonEmptyColor, EuiButtonEmptyProps } from '@elastic/eui/src/components/button/button_empty';
7978
- export type EuiCardSelectProps = EuiButtonEmptyProps & {
7979
- /**
7980
- * Is in the selected state
7981
- */
7982
- isSelected?: boolean;
7983
- isDisabled?: boolean;
8139
+ declare module '@elastic/eui/src/components/card/card_select/card_select.styles' {
8140
+ export const euiCardSelectStyles: () => {
8141
+ euiCardSelect: import("@emotion/utils").SerializedStyles;
7984
8142
  };
8143
+
8144
+ }
8145
+ declare module '@elastic/eui/src/components/card/card_select/card_select' {
8146
+ import { FunctionComponent } from 'react';
8147
+ import { Props } from '@elastic/eui/src/components/button/button';
8148
+ export type EuiCardSelectProps = Props;
7985
8149
  export const EuiCardSelect: FunctionComponent<EuiCardSelectProps>;
7986
- export function euiCardSelectableColor(color: EuiButtonEmptyColor | undefined, isSelected: boolean | undefined): string;
8150
+ export function euiCardSelectableColor(color: Props['color'], isSelected: boolean | undefined): Props['color'];
8151
+
8152
+ }
8153
+ declare module '@elastic/eui/src/components/card/card_select' {
8154
+ export type { EuiCardSelectProps } from '@elastic/eui/src/components/card/card_select/card_select';
8155
+ export { EuiCardSelect, euiCardSelectableColor } from '@elastic/eui/src/components/card/card_select/card_select';
8156
+
8157
+ }
8158
+ declare module '@elastic/eui/src/components/card/card.styles' {
8159
+ import { EuiCardProps } from '@elastic/eui/src/components';
8160
+ import { UseEuiTheme } from '@elastic/eui/src/services';
8161
+ /**
8162
+ * 1. Footer is always at the bottom.
8163
+ * 3. Horizontal layouts should always top left align no matter the textAlign prop
8164
+ * 4. Ensures the contents always stretch no matter the flex layout
8165
+ */
8166
+ export const euiCardStyles: (euiThemeContext: UseEuiTheme, paddingSize: EuiCardProps['paddingSize'], color: EuiCardProps['display']) => {
8167
+ card: {
8168
+ euiCard: import("@emotion/utils").SerializedStyles;
8169
+ aligned: {
8170
+ center: import("@emotion/utils").SerializedStyles;
8171
+ left: import("@emotion/utils").SerializedStyles;
8172
+ right: import("@emotion/utils").SerializedStyles;
8173
+ };
8174
+ layout: {
8175
+ vertical: import("@emotion/utils").SerializedStyles;
8176
+ horizontal: import("@emotion/utils").SerializedStyles;
8177
+ };
8178
+ disabled: import("@emotion/utils").SerializedStyles;
8179
+ };
8180
+ content: {
8181
+ euiCard__content: import("@emotion/utils").SerializedStyles;
8182
+ layout: {
8183
+ vertical: import("@emotion/utils").SerializedStyles;
8184
+ horizontal: import("@emotion/utils").SerializedStyles;
8185
+ };
8186
+ };
8187
+ euiCard__children: import("@emotion/utils").SerializedStyles;
8188
+ euiCard__description: import("@emotion/utils").SerializedStyles;
8189
+ euiCard__footer: import("@emotion/utils").SerializedStyles;
8190
+ top: {
8191
+ euiCard__top: import("@emotion/utils").SerializedStyles;
8192
+ layout: {
8193
+ vertical: import("@emotion/utils").SerializedStyles;
8194
+ horizontal: import("@emotion/utils").SerializedStyles;
8195
+ };
8196
+ disabled: import("@emotion/utils").SerializedStyles;
8197
+ };
8198
+ euiCard__image: import("@emotion/utils").SerializedStyles;
8199
+ icon: {
8200
+ euiCard__icon: import("@emotion/utils").SerializedStyles;
8201
+ withImage: import("@emotion/utils").SerializedStyles;
8202
+ layout: {
8203
+ vertical: import("@emotion/utils").SerializedStyles;
8204
+ horizontal: import("@emotion/utils").SerializedStyles;
8205
+ };
8206
+ };
8207
+ };
8208
+ export const euiCardTextStyles: (euiThemeContext: UseEuiTheme) => {
8209
+ euiCard__text: import("@emotion/utils").SerializedStyles;
8210
+ interactive: import("@emotion/utils").SerializedStyles;
8211
+ aligned: {
8212
+ center: import("@emotion/utils").SerializedStyles;
8213
+ left: import("@emotion/utils").SerializedStyles;
8214
+ right: import("@emotion/utils").SerializedStyles;
8215
+ };
8216
+ disabled: import("@emotion/utils").SerializedStyles;
8217
+ };
8218
+ export const euiCardBetaBadgeStyles: (euiThemeContext: UseEuiTheme, paddingSize: EuiCardProps['paddingSize']) => {
8219
+ hasBetaBadge: import("@emotion/utils").SerializedStyles;
8220
+ euiCard__betaBadgeAnchor: import("@emotion/utils").SerializedStyles;
8221
+ euiCard__betaBadge: import("@emotion/utils").SerializedStyles;
8222
+ };
7987
8223
 
7988
8224
  }
7989
8225
  declare module '@elastic/eui/src/components/card/card' {
@@ -8023,7 +8259,7 @@ declare module '@elastic/eui/src/components/card/card' {
8023
8259
  /**
8024
8260
  * Determines the title's heading element
8025
8261
  */
8026
- titleElement?: 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'span';
8262
+ titleElement?: 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'span' | 'p';
8027
8263
  /**
8028
8264
  * Determines the title's size, matching that of EuiTitle.
8029
8265
  * Though, card titles can't be too large or small relative to the description text.
@@ -8053,7 +8289,7 @@ declare module '@elastic/eui/src/components/card/card' {
8053
8289
  * Adds a badge to top of the card to label it as "Beta" or other non-GA state.
8054
8290
  * Accepts all the props of [EuiBetaBadge](#/display/badge#beta-badge-type), where `label` is required.
8055
8291
  */
8056
- betaBadgeProps?: Partial<EuiBetaBadgeProps>;
8292
+ betaBadgeProps?: EuiBetaBadgeProps;
8057
8293
  /**
8058
8294
  * Matches to the color property of EuiPanel. If defined, removes any border & shadow.
8059
8295
  * Leave as `undefined` to display as a default panel.
@@ -8072,15 +8308,23 @@ declare module '@elastic/eui/src/components/card/card' {
8072
8308
  * Use a border style of card instead of shadow
8073
8309
  */
8074
8310
  hasBorder?: EuiPanelProps['hasBorder'];
8075
- } & ({
8076
- description?: NonNullable<ReactNode>;
8077
- children: ReactNode;
8078
- } | {
8079
- description: NonNullable<ReactNode>;
8080
- });
8311
+ };
8081
8312
  export const EuiCard: FunctionComponent<EuiCardProps>;
8082
8313
  export {};
8083
8314
 
8315
+ }
8316
+ declare module '@elastic/eui/src/components/card/checkable_card/checkable_card.styles' {
8317
+ import { UseEuiTheme } from '@elastic/eui/src/services';
8318
+ export const euiCheckableCardStyles: (euiThemeContext: UseEuiTheme) => {
8319
+ euiCheckableCard: import("@emotion/utils").SerializedStyles;
8320
+ isChecked: import("@emotion/utils").SerializedStyles;
8321
+ label: {
8322
+ euiCheckableCard__label: import("@emotion/utils").SerializedStyles;
8323
+ isDisabled: import("@emotion/utils").SerializedStyles;
8324
+ };
8325
+ euiCheckableCard__children: import("@emotion/utils").SerializedStyles;
8326
+ };
8327
+
8084
8328
  }
8085
8329
  declare module '@elastic/eui/src/components/card/checkable_card/checkable_card' {
8086
8330
  import { FunctionComponent, ReactNode } from 'react';
@@ -8384,7 +8628,7 @@ declare module '@elastic/eui/src/components/flyout/flyout' {
8384
8628
  export const SIDES: ("left" | "right")[]; type _EuiFlyoutSide = typeof SIDES[number];
8385
8629
  export const SIZES: ("s" | "m" | "l")[];
8386
8630
  export type EuiFlyoutSize = typeof SIZES[number];
8387
- export const PADDING_SIZES: ("s" | "none" | "m" | "l")[]; type _EuiFlyoutPaddingSize = typeof PADDING_SIZES[number];
8631
+ export const PADDING_SIZES: ("s" | "m" | "l" | "none")[]; type _EuiFlyoutPaddingSize = typeof PADDING_SIZES[number];
8388
8632
  interface _EuiFlyoutProps {
8389
8633
  onClose: (event: MouseEvent | TouchEvent | KeyboardEvent) => void;
8390
8634
  /**
@@ -13092,7 +13336,7 @@ declare module '@elastic/eui/src/components/empty_prompt/empty_prompt' {
13092
13336
  import { EuiTitleSize } from '@elastic/eui/src/components/title';
13093
13337
  import { IconColor, IconType } from '@elastic/eui/src/components/icon';
13094
13338
  import { _EuiPanelDivlike } from '@elastic/eui/src/components/panel/panel';
13095
- export const PADDING_SIZES: ("s" | "none" | "m" | "l")[];
13339
+ export const PADDING_SIZES: ("s" | "m" | "l" | "none")[];
13096
13340
  export type PaddingSize = typeof PADDING_SIZES[number];
13097
13341
  export type EuiEmptyPromptProps = CommonProps & Omit<_EuiPanelDivlike, 'borderRadius' | 'grow' | 'panelRef' | 'paddingSize' | 'title'> & {
13098
13342
  iconType?: IconType;
@@ -13310,128 +13554,11 @@ declare module '@elastic/eui/src/components/facet/facet_button.styles' {
13310
13554
  isDisabled: import("@emotion/utils").SerializedStyles;
13311
13555
  };
13312
13556
 
13313
- }
13314
- declare module '@elastic/eui/src/components/button/button_display/_button_display.styles' {
13315
- import { UseEuiTheme } from '@elastic/eui/src/services';
13316
- export const euiButtonBaseCSS: () => string;
13317
- export const euiButtonDisplayStyles: (euiThemeContext: UseEuiTheme, minWidth: string) => {
13318
- euiButtonDisplay: import("@emotion/utils").SerializedStyles;
13319
- isDisabled: import("@emotion/utils").SerializedStyles;
13320
- fullWidth: import("@emotion/utils").SerializedStyles;
13321
- xs: import("@emotion/utils").SerializedStyles;
13322
- s: import("@emotion/utils").SerializedStyles;
13323
- m: import("@emotion/utils").SerializedStyles;
13324
- };
13325
-
13326
- }
13327
- declare module '@elastic/eui/src/components/button/button_display/_button_display_content.styles' {
13328
- import { UseEuiTheme } from '@elastic/eui/src/services';
13329
- export const euiButtonDisplayContentStyles: ({ euiTheme }: UseEuiTheme) => {
13330
- euiButtonDisplayContent: import("@emotion/utils").SerializedStyles;
13331
- left: import("@emotion/utils").SerializedStyles;
13332
- right: import("@emotion/utils").SerializedStyles;
13333
- euiButtonDisplayContent__spinner: import("@emotion/utils").SerializedStyles;
13334
- euiButtonDisplayContent__icon: import("@emotion/utils").SerializedStyles;
13335
- isDisabled: import("@emotion/utils").SerializedStyles;
13336
- };
13337
-
13338
- }
13339
- declare module '@elastic/eui/src/components/button/button_display/_button_display_content' {
13340
- import { HTMLAttributes, FunctionComponent, Ref } from 'react';
13341
- import { CommonProps } from '@elastic/eui/src/components/common';
13342
- import { IconType } from '@elastic/eui/src/components/icon';
13343
- export type ButtonContentIconSide = 'left' | 'right' | undefined;
13344
- export type EuiButtonDisplayContentType = HTMLAttributes<HTMLSpanElement>;
13345
- /**
13346
- * *INTERNAL ONLY*
13347
- * This component is simply a helper component for reuse within other button components.
13348
- */
13349
- export interface EuiButtonDisplayContentProps extends CommonProps {
13350
- /**
13351
- * Any `type` accepted by EuiIcon
13352
- */
13353
- iconType?: IconType;
13354
- /**
13355
- * Can only be one side `left` or `right`
13356
- */
13357
- iconSide?: ButtonContentIconSide;
13358
- isLoading?: boolean;
13359
- /**
13360
- * Object of props passed to the <span/> wrapping the content's text/children only (not icon)
13361
- */
13362
- textProps?: HTMLAttributes<HTMLSpanElement> & CommonProps & {
13363
- ref?: Ref<HTMLSpanElement>;
13364
- 'data-text'?: string;
13365
- };
13366
- iconSize?: 's' | 'm';
13367
- isDisabled: boolean;
13368
- }
13369
- export const EuiButtonDisplayContent: FunctionComponent<EuiButtonDisplayContentType & EuiButtonDisplayContentProps>;
13370
-
13371
- }
13372
- declare module '@elastic/eui/src/components/button/button_display/_button_display' {
13373
- import React, { CSSProperties, HTMLAttributes, ReactNode, Ref } from 'react';
13374
- import { CommonProps, ExclusiveUnion, PropsForAnchor, PropsForButton } from '@elastic/eui/src/components/common';
13375
- import { EuiButtonDisplayContentProps, EuiButtonDisplayContentType } from '@elastic/eui/src/components/button/button_display/_button_display_content';
13376
- /**
13377
- * Extends EuiButtonDisplayContentProps which provides
13378
- * `iconType`, `iconSide`, and `textProps`
13379
- */
13380
- export interface EuiButtonDisplayCommonProps extends EuiButtonDisplayContentProps, CommonProps {
13381
- children?: ReactNode;
13382
- size?: 'xs' | 's' | 'm';
13383
- /**
13384
- * Applies the boolean state as the `aria-pressed` property to create a toggle button.
13385
- * *Only use when the readable text does not change between states.*
13386
- */
13387
- isSelected?: boolean;
13388
- /**
13389
- * Extends the button to 100% width
13390
- */
13391
- fullWidth?: boolean;
13392
- /**
13393
- * Override the default minimum width
13394
- */
13395
- minWidth?: CSSProperties['minWidth'];
13396
- /**
13397
- * Force disables the button and changes the icon to a loading spinner
13398
- */
13399
- isLoading?: boolean;
13400
- /**
13401
- * Object of props passed to the <span/> wrapping the button's content
13402
- */
13403
- contentProps?: EuiButtonDisplayContentType;
13404
- style?: CSSProperties;
13405
- }
13406
- export type EuiButtonDisplayPropsForAnchor = PropsForAnchor<EuiButtonDisplayCommonProps, {
13407
- buttonRef?: Ref<HTMLAnchorElement>;
13408
- }>;
13409
- export type EuiButtonDisplayPropsForButton = PropsForButton<EuiButtonDisplayCommonProps, {
13410
- buttonRef?: Ref<HTMLButtonElement>;
13411
- }>;
13412
- export type Props = ExclusiveUnion<EuiButtonDisplayPropsForAnchor, EuiButtonDisplayPropsForButton>;
13413
- export type EuiButtonDisplayProps = EuiButtonDisplayCommonProps & HTMLAttributes<HTMLElement> & {
13414
- /**
13415
- * Provide a valid element to render the element as
13416
- */
13417
- element?: 'a' | 'button' | 'span' | 'label';
13418
- };
13419
- /**
13420
- * EuiButtonDisplay is an internal-only component used for displaying
13421
- * any element as a button.
13422
- */
13423
- export const EuiButtonDisplay: React.ForwardRefExoticComponent<EuiButtonDisplayCommonProps & React.HTMLAttributes<HTMLElement> & {
13424
- /**
13425
- * Provide a valid element to render the element as
13426
- */
13427
- element?: "a" | "button" | "label" | "span" | undefined;
13428
- } & React.RefAttributes<HTMLElement>>;
13429
-
13430
13557
  }
13431
13558
  declare module '@elastic/eui/src/components/facet/facet_button' {
13432
- import { FunctionComponent, HTMLAttributes, MouseEventHandler, ReactNode, RefCallback } from 'react';
13559
+ import { FunctionComponent, HTMLAttributes, ReactNode, RefCallback } from 'react';
13433
13560
  import { CommonProps } from '@elastic/eui/src/components/common';
13434
- export interface EuiFacetButtonProps extends CommonProps, Omit<HTMLAttributes<HTMLButtonElement>, 'onClick'> {
13561
+ export interface EuiFacetButtonProps extends CommonProps, HTMLAttributes<HTMLButtonElement> {
13435
13562
  buttonRef?: RefCallback<HTMLButtonElement>;
13436
13563
  /**
13437
13564
  * ReactNode to render as this component's content
@@ -13450,7 +13577,6 @@ declare module '@elastic/eui/src/components/facet/facet_button' {
13450
13577
  * Changes visual of button to indicate it's currently selected
13451
13578
  */
13452
13579
  isSelected?: boolean;
13453
- onClick?: MouseEventHandler<HTMLButtonElement>;
13454
13580
  /**
13455
13581
  * Adds a notification indicator for displaying the quantity provided
13456
13582
  */
@@ -14533,7 +14659,7 @@ declare module '@elastic/eui/src/components/modal/modal_body' {
14533
14659
  declare module '@elastic/eui/src/components/modal/confirm_modal' {
14534
14660
  import React, { FunctionComponent, ReactNode } from 'react';
14535
14661
  import { EuiModalProps } from '@elastic/eui/src/components/modal/modal';
14536
- import { ButtonColor } from '@elastic/eui/src/components/button';
14662
+ import { EuiButtonColor } from '@elastic/eui/src/components/button';
14537
14663
  export interface EuiConfirmModalProps extends Omit<EuiModalProps, 'children' | 'initialFocus' | 'onClose' | 'title'> {
14538
14664
  /**
14539
14665
  * ReactNode to render as this component's content
@@ -14547,7 +14673,7 @@ declare module '@elastic/eui/src/components/modal/confirm_modal' {
14547
14673
  confirmButtonDisabled?: boolean;
14548
14674
  className?: string;
14549
14675
  defaultFocusedButton?: typeof CONFIRM_BUTTON | typeof CANCEL_BUTTON;
14550
- buttonColor?: ButtonColor;
14676
+ buttonColor?: EuiButtonColor;
14551
14677
  /**
14552
14678
  * Sets the max-width of the modal.
14553
14679
  * Set to `true` to use the default (`euiBreakpoints 'm'`),
@@ -15012,7 +15138,7 @@ declare module '@elastic/eui/src/components/page/page_content/page_content_body'
15012
15138
  import { FunctionComponent, HTMLAttributes } from 'react';
15013
15139
  import { CommonProps } from '@elastic/eui/src/components/common';
15014
15140
  import { _EuiPageRestrictWidth } from '@elastic/eui/src/components/page/_restrict_width';
15015
- export const PADDING_SIZES: ("s" | "none" | "m" | "l")[];
15141
+ export const PADDING_SIZES: ("s" | "m" | "l" | "none")[];
15016
15142
  export interface EuiPageContentBodyProps extends CommonProps, HTMLAttributes<HTMLDivElement>, _EuiPageRestrictWidth {
15017
15143
  /**
15018
15144
  * Adjust the padding.
@@ -15301,7 +15427,7 @@ declare module '@elastic/eui/src/components/page/page_section' {
15301
15427
  declare module '@elastic/eui/src/components/page/page_side_bar/page_side_bar' {
15302
15428
  import { FunctionComponent, HTMLAttributes } from 'react';
15303
15429
  import { CommonProps } from '@elastic/eui/src/components/common';
15304
- export const PADDING_SIZES: ("s" | "none" | "m" | "l")[];
15430
+ export const PADDING_SIZES: ("s" | "m" | "l" | "none")[];
15305
15431
  export interface EuiPageSideBarProps extends CommonProps, HTMLAttributes<HTMLDivElement> {
15306
15432
  /**
15307
15433
  * Adds `position: sticky`
@@ -18234,9 +18360,9 @@ declare module '@elastic/eui/src/components/tour' {
18234
18360
  declare module '@elastic/eui/src/components/basic_table/action_types' {
18235
18361
  import { ReactElement, ReactNode } from 'react';
18236
18362
  import { EuiIconType } from '@elastic/eui/src/components/icon/icon';
18237
- import { EuiButtonIconColor } from '@elastic/eui/src/components/button/button_icon/button_icon';
18238
- import { EuiButtonEmptyColor } from '@elastic/eui/src/components/button/button_empty';
18239
- import { ExclusiveUnion } from '@elastic/eui/src/components/common'; type IconFunction<T> = (item: T) => EuiIconType; type ButtonColor = EuiButtonIconColor | EuiButtonEmptyColor; type EuiButtonIconColorFunction<T> = (item: T) => ButtonColor;
18363
+ import { EuiButtonIconProps } from '@elastic/eui/src/components/button/button_icon/button_icon';
18364
+ import { EuiButtonEmptyProps } from '@elastic/eui/src/components/button/button_empty';
18365
+ import { ExclusiveUnion } from '@elastic/eui/src/components/common'; type IconFunction<T> = (item: T) => EuiIconType; type ButtonColor = EuiButtonIconProps['color'] | EuiButtonEmptyProps['color']; type EuiButtonIconColorFunction<T> = (item: T) => ButtonColor;
18240
18366
  export interface DefaultItemActionBase<T> {
18241
18367
  /**
18242
18368
  * The display name of the action (will be the button caption)
@@ -18268,7 +18394,7 @@ declare module '@elastic/eui/src/components/basic_table/action_types' {
18268
18394
  * The type of action
18269
18395
  */
18270
18396
  type?: 'button';
18271
- color?: EuiButtonEmptyColor | EuiButtonIconColorFunction<T>;
18397
+ color?: EuiButtonEmptyProps['color'] | EuiButtonIconColorFunction<T>;
18272
18398
  }
18273
18399
  export interface DefaultItemIconButtonAction<T> extends DefaultItemActionBase<T> {
18274
18400
  type: 'icon';
@@ -18279,7 +18405,7 @@ declare module '@elastic/eui/src/components/basic_table/action_types' {
18279
18405
  /**
18280
18406
  * Defines the color of the button
18281
18407
  */
18282
- color?: EuiButtonIconColor | EuiButtonIconColorFunction<T>;
18408
+ color?: EuiButtonIconProps['color'] | EuiButtonIconColorFunction<T>;
18283
18409
  }
18284
18410
  export type DefaultItemAction<T> = ExclusiveUnion<DefaultItemEmptyButtonAction<T>, DefaultItemIconButtonAction<T>>;
18285
18411
  export interface CustomItemAction<T> {