@elastic/eui 120.0.0 → 121.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (345) hide show
  1. package/dist/eui-icons.json +29 -28
  2. package/dist/svgs/table_sparkles.svg +6 -0
  3. package/es/components/avatar/avatar.js +1 -1
  4. package/es/components/badge/badge.js +1 -1
  5. package/es/components/badge/beta_badge/beta_badge.js +1 -1
  6. package/es/components/basic_table/basic_table.js +4 -4
  7. package/es/components/basic_table/in_memory_table.js +4 -4
  8. package/es/components/button/button_display/_button_display_content.js +1 -1
  9. package/es/components/button/button_empty/button_empty.js +1 -1
  10. package/es/components/button/button_group/button_group.js +7 -4
  11. package/es/components/button/button_group/button_group.styles.js +22 -33
  12. package/es/components/button/button_group/button_group_button.js +9 -15
  13. package/es/components/button/button_group/button_group_button.styles.js +27 -66
  14. package/es/components/button/button_icon/button_icon.js +1 -1
  15. package/es/components/button/split_button/split_button.styles.js +6 -5
  16. package/es/components/button/use_button_common_props.js +1 -1
  17. package/es/components/call_out/call_out.js +2 -2
  18. package/es/components/card/card.js +1 -1
  19. package/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
  20. package/es/components/comment_list/comment.js +2 -2
  21. package/es/components/comment_list/comment_event.js +1 -1
  22. package/es/components/comment_list/comment_list.js +2 -2
  23. package/es/components/comment_list/comment_timeline.js +1 -1
  24. package/es/components/context_menu/context_menu_item.js +1 -1
  25. package/es/components/datagrid/body/cell/data_grid_cell.js +24 -24
  26. package/es/components/datagrid/body/data_grid_body.js +13 -13
  27. package/es/components/datagrid/body/data_grid_body_custom.js +13 -13
  28. package/es/components/datagrid/body/data_grid_body_virtualized.js +13 -13
  29. package/es/components/datagrid/body/header/data_grid_header_cell.js +12 -12
  30. package/es/components/datagrid/controls/column_sorting.js +13 -13
  31. package/es/components/datagrid/controls/column_sorting.styles.js +1 -1
  32. package/es/components/datagrid/controls/column_sorting_draggable.js +42 -23
  33. package/es/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
  34. package/es/components/datagrid/controls/display_selector.js +56 -44
  35. package/es/components/datagrid/utils/in_memory.js +12 -12
  36. package/es/components/date_picker/date_picker.js +2 -2
  37. package/es/components/date_picker/date_picker_range.js +1 -1
  38. package/es/components/date_picker/super_date_picker/time_window_buttons.js +38 -50
  39. package/es/components/empty_prompt/empty_prompt.js +1 -1
  40. package/es/components/filter_group/filter_button.js +24 -15
  41. package/es/components/filter_group/filter_button.styles.js +40 -15
  42. package/es/components/filter_group/filter_group.js +34 -5
  43. package/es/components/filter_group/filter_group.styles.js +9 -15
  44. package/es/components/filter_group/filter_group_context.js +13 -0
  45. package/es/components/flyout/flyout.component.js +5 -1
  46. package/es/components/flyout/flyout.styles.js +4 -3
  47. package/es/components/flyout/flyout_body.styles.js +1 -1
  48. package/es/components/flyout/flyout_footer.styles.js +1 -1
  49. package/es/components/flyout/flyout_header.styles.js +4 -4
  50. package/es/components/flyout/flyout_menu/action_button.js +11 -2
  51. package/es/components/flyout/flyout_menu/flyout_menu.js +52 -10
  52. package/es/components/form/field_number/field_number.js +2 -2
  53. package/es/components/form/field_text/field_text.js +2 -2
  54. package/es/components/form/form_control_button/form_control_button.js +1 -1
  55. package/es/components/form/form_control_layout/append_prepend/form_append_prepend.js +2 -2
  56. package/es/components/form/form_control_layout/form_control_layout.js +2 -2
  57. package/es/components/form/form_control_layout/form_control_layout.styles.js +1 -1
  58. package/es/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
  59. package/es/components/form/text_area/text_area.js +2 -2
  60. package/es/components/header/header.a11y.js +0 -1
  61. package/es/components/header/header.styles.js +1 -1
  62. package/es/components/header/header_links/header_link.js +1 -1
  63. package/es/components/header/header_links/header_links.js +1 -1
  64. package/es/components/header/header_logo/elastic_logo_full.js +75 -0
  65. package/es/components/header/header_logo/header_logo.js +23 -28
  66. package/es/components/header/header_logo/header_logo.styles.js +1 -3
  67. package/es/components/header/header_section/header_section_item_button.js +1 -1
  68. package/es/components/icon/assets/table_sparkles.js +43 -0
  69. package/es/components/icon/icon.js +1 -1
  70. package/es/components/icon/icon_map.js +5 -0
  71. package/es/components/icon/svgs/table_sparkles.svg +6 -0
  72. package/es/components/key_pad_menu/key_pad_menu_item.js +1 -1
  73. package/es/components/list_group/list_group.js +2 -2
  74. package/es/components/list_group/list_group_item.js +2 -2
  75. package/es/components/list_group/list_group_item_extra_action.js +1 -1
  76. package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
  77. package/es/components/loading/loading_logo.js +1 -1
  78. package/es/components/markdown_editor/markdown_editor.js +1 -1
  79. package/es/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
  80. package/es/components/markdown_editor/markdown_editor_footer.js +1 -1
  81. package/es/components/markdown_editor/markdown_editor_toolbar.js +1 -1
  82. package/es/components/page/page_header/page_header_content.js +1 -1
  83. package/es/components/pagination/pagination_button.js +1 -1
  84. package/es/components/popover/popover_footer.styles.js +2 -2
  85. package/es/components/popover/popover_title.styles.js +1 -1
  86. package/es/components/selectable/selectable_list/selectable_list.js +1 -1
  87. package/es/components/selectable/selectable_list/selectable_list_item.js +1 -1
  88. package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
  89. package/es/components/table/table_header_cell.js +1 -1
  90. package/es/components/timeline/timeline_item_icon.js +1 -1
  91. package/es/components/toast/global_toast_list.js +2 -2
  92. package/es/components/toast/toast.js +2 -2
  93. package/es/components/tool_tip/icon_tip.js +1 -1
  94. package/es/global_styling/mixins/_button.js +8 -0
  95. package/eui.d.ts +251 -192
  96. package/i18ntokens.json +594 -576
  97. package/lib/components/avatar/avatar.js +1 -1
  98. package/lib/components/badge/badge.js +1 -1
  99. package/lib/components/badge/beta_badge/beta_badge.js +1 -1
  100. package/lib/components/basic_table/basic_table.js +4 -4
  101. package/lib/components/basic_table/in_memory_table.js +4 -4
  102. package/lib/components/button/button_display/_button_display_content.js +1 -1
  103. package/lib/components/button/button_empty/button_empty.js +1 -1
  104. package/lib/components/button/button_group/button_group.js +7 -4
  105. package/lib/components/button/button_group/button_group.styles.js +22 -33
  106. package/lib/components/button/button_group/button_group_button.js +8 -14
  107. package/lib/components/button/button_group/button_group_button.styles.js +26 -65
  108. package/lib/components/button/button_icon/button_icon.js +1 -1
  109. package/lib/components/button/split_button/split_button.styles.js +6 -5
  110. package/lib/components/button/use_button_common_props.js +1 -1
  111. package/lib/components/call_out/call_out.js +2 -2
  112. package/lib/components/card/card.js +1 -1
  113. package/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
  114. package/lib/components/comment_list/comment.js +2 -2
  115. package/lib/components/comment_list/comment_event.js +1 -1
  116. package/lib/components/comment_list/comment_list.js +2 -2
  117. package/lib/components/comment_list/comment_timeline.js +1 -1
  118. package/lib/components/context_menu/context_menu_item.js +1 -1
  119. package/lib/components/datagrid/body/cell/data_grid_cell.js +24 -24
  120. package/lib/components/datagrid/body/data_grid_body.js +13 -13
  121. package/lib/components/datagrid/body/data_grid_body_custom.js +13 -13
  122. package/lib/components/datagrid/body/data_grid_body_virtualized.js +13 -13
  123. package/lib/components/datagrid/body/header/data_grid_header_cell.js +12 -12
  124. package/lib/components/datagrid/controls/column_sorting.js +13 -13
  125. package/lib/components/datagrid/controls/column_sorting.styles.js +1 -1
  126. package/lib/components/datagrid/controls/column_sorting_draggable.js +40 -21
  127. package/lib/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
  128. package/lib/components/datagrid/controls/display_selector.js +55 -43
  129. package/lib/components/datagrid/utils/in_memory.js +12 -12
  130. package/lib/components/date_picker/date_picker.js +2 -2
  131. package/lib/components/date_picker/date_picker_range.js +1 -1
  132. package/lib/components/date_picker/super_date_picker/time_window_buttons.js +37 -49
  133. package/lib/components/empty_prompt/empty_prompt.js +1 -1
  134. package/lib/components/filter_group/filter_button.js +25 -16
  135. package/lib/components/filter_group/filter_button.styles.js +39 -14
  136. package/lib/components/filter_group/filter_group.js +37 -5
  137. package/lib/components/filter_group/filter_group.styles.js +8 -14
  138. package/lib/components/filter_group/filter_group_context.js +19 -0
  139. package/lib/components/flyout/flyout.component.js +5 -1
  140. package/lib/components/flyout/flyout.styles.js +3 -2
  141. package/lib/components/flyout/flyout_body.styles.js +1 -1
  142. package/lib/components/flyout/flyout_footer.styles.js +1 -1
  143. package/lib/components/flyout/flyout_header.styles.js +4 -4
  144. package/lib/components/flyout/flyout_menu/action_button.js +11 -2
  145. package/lib/components/flyout/flyout_menu/flyout_menu.js +52 -10
  146. package/lib/components/form/field_number/field_number.js +2 -2
  147. package/lib/components/form/field_text/field_text.js +2 -2
  148. package/lib/components/form/form_control_button/form_control_button.js +1 -1
  149. package/lib/components/form/form_control_layout/append_prepend/form_append_prepend.js +2 -2
  150. package/lib/components/form/form_control_layout/form_control_layout.js +2 -2
  151. package/lib/components/form/form_control_layout/form_control_layout.styles.js +1 -1
  152. package/lib/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
  153. package/lib/components/form/text_area/text_area.js +2 -2
  154. package/lib/components/header/header.a11y.js +0 -1
  155. package/lib/components/header/header.styles.js +1 -1
  156. package/lib/components/header/header_links/header_link.js +1 -1
  157. package/lib/components/header/header_links/header_links.js +1 -1
  158. package/lib/components/header/header_logo/elastic_logo_full.js +84 -0
  159. package/lib/components/header/header_logo/header_logo.js +22 -27
  160. package/lib/components/header/header_logo/header_logo.styles.js +1 -3
  161. package/lib/components/header/header_section/header_section_item_button.js +1 -1
  162. package/lib/components/icon/assets/table_sparkles.js +50 -0
  163. package/lib/components/icon/icon.js +1 -1
  164. package/lib/components/icon/icon_map.js +7 -0
  165. package/lib/components/icon/svgs/table_sparkles.svg +6 -0
  166. package/lib/components/key_pad_menu/key_pad_menu_item.js +1 -1
  167. package/lib/components/list_group/list_group.js +2 -2
  168. package/lib/components/list_group/list_group_item.js +2 -2
  169. package/lib/components/list_group/list_group_item_extra_action.js +1 -1
  170. package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
  171. package/lib/components/loading/loading_logo.js +1 -1
  172. package/lib/components/markdown_editor/markdown_editor.js +1 -1
  173. package/lib/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
  174. package/lib/components/markdown_editor/markdown_editor_footer.js +1 -1
  175. package/lib/components/markdown_editor/markdown_editor_toolbar.js +1 -1
  176. package/lib/components/page/page_header/page_header_content.js +1 -1
  177. package/lib/components/pagination/pagination_button.js +1 -1
  178. package/lib/components/popover/popover_footer.styles.js +2 -2
  179. package/lib/components/popover/popover_title.styles.js +1 -1
  180. package/lib/components/selectable/selectable_list/selectable_list.js +1 -1
  181. package/lib/components/selectable/selectable_list/selectable_list_item.js +1 -1
  182. package/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
  183. package/lib/components/table/table_header_cell.js +1 -1
  184. package/lib/components/timeline/timeline_item_icon.js +1 -1
  185. package/lib/components/toast/global_toast_list.js +2 -2
  186. package/lib/components/toast/toast.js +2 -2
  187. package/lib/components/tool_tip/icon_tip.js +1 -1
  188. package/lib/global_styling/mixins/_button.js +8 -0
  189. package/optimize/es/components/button/button_group/button_group.js +4 -3
  190. package/optimize/es/components/button/button_group/button_group.styles.js +22 -33
  191. package/optimize/es/components/button/button_group/button_group_button.js +9 -15
  192. package/optimize/es/components/button/button_group/button_group_button.styles.js +27 -66
  193. package/optimize/es/components/button/split_button/split_button.styles.js +6 -5
  194. package/optimize/es/components/button/use_button_common_props.js +1 -1
  195. package/optimize/es/components/datagrid/controls/column_sorting.styles.js +1 -1
  196. package/optimize/es/components/datagrid/controls/column_sorting_draggable.js +41 -22
  197. package/optimize/es/components/datagrid/controls/display_selector.js +56 -44
  198. package/optimize/es/components/date_picker/super_date_picker/time_window_buttons.js +38 -50
  199. package/optimize/es/components/filter_group/filter_button.js +23 -15
  200. package/optimize/es/components/filter_group/filter_button.styles.js +40 -15
  201. package/optimize/es/components/filter_group/filter_group.js +21 -4
  202. package/optimize/es/components/filter_group/filter_group.styles.js +9 -15
  203. package/optimize/es/components/filter_group/filter_group_context.js +13 -0
  204. package/optimize/es/components/flyout/flyout.component.js +5 -1
  205. package/optimize/es/components/flyout/flyout.styles.js +4 -3
  206. package/optimize/es/components/flyout/flyout_body.styles.js +1 -1
  207. package/optimize/es/components/flyout/flyout_footer.styles.js +1 -1
  208. package/optimize/es/components/flyout/flyout_header.styles.js +4 -4
  209. package/optimize/es/components/flyout/flyout_menu/action_button.js +11 -2
  210. package/optimize/es/components/form/form_control_layout/form_control_layout.styles.js +1 -1
  211. package/optimize/es/components/header/header.a11y.js +0 -1
  212. package/optimize/es/components/header/header.styles.js +1 -1
  213. package/optimize/es/components/header/header_logo/elastic_logo_full.js +74 -0
  214. package/optimize/es/components/header/header_logo/header_logo.js +23 -12
  215. package/optimize/es/components/header/header_logo/header_logo.styles.js +1 -3
  216. package/optimize/es/components/icon/assets/table_sparkles.js +42 -0
  217. package/optimize/es/components/icon/icon_map.js +5 -0
  218. package/optimize/es/components/icon/svgs/table_sparkles.svg +6 -0
  219. package/optimize/es/components/popover/popover_footer.styles.js +2 -2
  220. package/optimize/es/components/popover/popover_title.styles.js +1 -1
  221. package/optimize/es/global_styling/mixins/_button.js +8 -0
  222. package/optimize/lib/components/button/button_group/button_group.js +4 -3
  223. package/optimize/lib/components/button/button_group/button_group.styles.js +22 -33
  224. package/optimize/lib/components/button/button_group/button_group_button.js +8 -14
  225. package/optimize/lib/components/button/button_group/button_group_button.styles.js +26 -65
  226. package/optimize/lib/components/button/split_button/split_button.styles.js +6 -5
  227. package/optimize/lib/components/button/use_button_common_props.js +1 -1
  228. package/optimize/lib/components/datagrid/controls/column_sorting.styles.js +1 -1
  229. package/optimize/lib/components/datagrid/controls/column_sorting_draggable.js +39 -20
  230. package/optimize/lib/components/datagrid/controls/display_selector.js +55 -43
  231. package/optimize/lib/components/date_picker/super_date_picker/time_window_buttons.js +37 -49
  232. package/optimize/lib/components/filter_group/filter_button.js +24 -16
  233. package/optimize/lib/components/filter_group/filter_button.styles.js +39 -14
  234. package/optimize/lib/components/filter_group/filter_group.js +24 -4
  235. package/optimize/lib/components/filter_group/filter_group.styles.js +8 -14
  236. package/optimize/lib/components/filter_group/filter_group_context.js +19 -0
  237. package/optimize/lib/components/flyout/flyout.component.js +5 -1
  238. package/optimize/lib/components/flyout/flyout.styles.js +3 -2
  239. package/optimize/lib/components/flyout/flyout_body.styles.js +1 -1
  240. package/optimize/lib/components/flyout/flyout_footer.styles.js +1 -1
  241. package/optimize/lib/components/flyout/flyout_header.styles.js +4 -4
  242. package/optimize/lib/components/flyout/flyout_menu/action_button.js +11 -2
  243. package/optimize/lib/components/form/form_control_layout/form_control_layout.styles.js +1 -1
  244. package/optimize/lib/components/header/header.a11y.js +0 -1
  245. package/optimize/lib/components/header/header.styles.js +1 -1
  246. package/optimize/lib/components/header/header_logo/elastic_logo_full.js +84 -0
  247. package/optimize/lib/components/header/header_logo/header_logo.js +22 -11
  248. package/optimize/lib/components/header/header_logo/header_logo.styles.js +1 -3
  249. package/optimize/lib/components/icon/assets/table_sparkles.js +50 -0
  250. package/optimize/lib/components/icon/icon_map.js +7 -0
  251. package/optimize/lib/components/icon/svgs/table_sparkles.svg +6 -0
  252. package/optimize/lib/components/popover/popover_footer.styles.js +2 -2
  253. package/optimize/lib/components/popover/popover_title.styles.js +1 -1
  254. package/optimize/lib/global_styling/mixins/_button.js +8 -0
  255. package/package.json +2 -1
  256. package/test-env/components/avatar/avatar.js +1 -1
  257. package/test-env/components/badge/badge.js +1 -1
  258. package/test-env/components/badge/beta_badge/beta_badge.js +1 -1
  259. package/test-env/components/basic_table/basic_table.js +4 -4
  260. package/test-env/components/basic_table/in_memory_table.js +4 -4
  261. package/test-env/components/button/button_display/_button_display_content.js +1 -1
  262. package/test-env/components/button/button_empty/button_empty.js +1 -1
  263. package/test-env/components/button/button_group/button_group.js +7 -4
  264. package/test-env/components/button/button_group/button_group.styles.js +22 -33
  265. package/test-env/components/button/button_group/button_group_button.js +8 -14
  266. package/test-env/components/button/button_group/button_group_button.styles.js +26 -65
  267. package/test-env/components/button/button_icon/button_icon.js +1 -1
  268. package/test-env/components/button/split_button/split_button.styles.js +6 -5
  269. package/test-env/components/button/use_button_common_props.js +1 -1
  270. package/test-env/components/call_out/call_out.js +2 -2
  271. package/test-env/components/card/card.js +1 -1
  272. package/test-env/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
  273. package/test-env/components/comment_list/comment.js +2 -2
  274. package/test-env/components/comment_list/comment_event.js +1 -1
  275. package/test-env/components/comment_list/comment_list.js +2 -2
  276. package/test-env/components/comment_list/comment_timeline.js +1 -1
  277. package/test-env/components/context_menu/context_menu_item.js +1 -1
  278. package/test-env/components/datagrid/body/cell/data_grid_cell.js +24 -24
  279. package/test-env/components/datagrid/body/data_grid_body.js +13 -13
  280. package/test-env/components/datagrid/body/data_grid_body_custom.js +13 -13
  281. package/test-env/components/datagrid/body/data_grid_body_virtualized.js +13 -13
  282. package/test-env/components/datagrid/body/header/data_grid_header_cell.js +12 -12
  283. package/test-env/components/datagrid/controls/column_sorting.js +13 -13
  284. package/test-env/components/datagrid/controls/column_sorting.styles.js +1 -1
  285. package/test-env/components/datagrid/controls/column_sorting_draggable.js +40 -21
  286. package/test-env/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
  287. package/test-env/components/datagrid/controls/display_selector.js +55 -43
  288. package/test-env/components/datagrid/utils/in_memory.js +12 -12
  289. package/test-env/components/date_picker/date_picker.js +2 -2
  290. package/test-env/components/date_picker/date_picker_range.js +1 -1
  291. package/test-env/components/date_picker/super_date_picker/time_window_buttons.js +37 -49
  292. package/test-env/components/empty_prompt/empty_prompt.js +1 -1
  293. package/test-env/components/filter_group/filter_button.js +25 -16
  294. package/test-env/components/filter_group/filter_button.styles.js +39 -14
  295. package/test-env/components/filter_group/filter_group.js +37 -5
  296. package/test-env/components/filter_group/filter_group.styles.js +8 -14
  297. package/test-env/components/filter_group/filter_group_context.js +19 -0
  298. package/test-env/components/flyout/flyout.component.js +5 -1
  299. package/test-env/components/flyout/flyout.styles.js +3 -2
  300. package/test-env/components/flyout/flyout_body.styles.js +1 -1
  301. package/test-env/components/flyout/flyout_footer.styles.js +1 -1
  302. package/test-env/components/flyout/flyout_header.styles.js +4 -4
  303. package/test-env/components/flyout/flyout_menu/action_button.js +11 -2
  304. package/test-env/components/flyout/flyout_menu/flyout_menu.js +52 -10
  305. package/test-env/components/form/field_number/field_number.js +2 -2
  306. package/test-env/components/form/field_text/field_text.js +2 -2
  307. package/test-env/components/form/form_control_button/form_control_button.js +1 -1
  308. package/test-env/components/form/form_control_layout/append_prepend/form_append_prepend.js +2 -2
  309. package/test-env/components/form/form_control_layout/form_control_layout.js +2 -2
  310. package/test-env/components/form/form_control_layout/form_control_layout.styles.js +1 -1
  311. package/test-env/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
  312. package/test-env/components/form/text_area/text_area.js +2 -2
  313. package/test-env/components/header/header.a11y.js +0 -1
  314. package/test-env/components/header/header.styles.js +1 -1
  315. package/test-env/components/header/header_links/header_link.js +1 -1
  316. package/test-env/components/header/header_links/header_links.js +1 -1
  317. package/test-env/components/header/header_logo/elastic_logo_full.js +84 -0
  318. package/test-env/components/header/header_logo/header_logo.js +22 -27
  319. package/test-env/components/header/header_logo/header_logo.styles.js +1 -3
  320. package/test-env/components/header/header_section/header_section_item_button.js +1 -1
  321. package/test-env/components/icon/assets/table_sparkles.js +50 -0
  322. package/test-env/components/icon/icon_map.js +7 -0
  323. package/test-env/components/key_pad_menu/key_pad_menu_item.js +1 -1
  324. package/test-env/components/list_group/list_group.js +2 -2
  325. package/test-env/components/list_group/list_group_item.js +2 -2
  326. package/test-env/components/list_group/list_group_item_extra_action.js +1 -1
  327. package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
  328. package/test-env/components/loading/loading_logo.js +1 -1
  329. package/test-env/components/markdown_editor/markdown_editor.js +1 -1
  330. package/test-env/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
  331. package/test-env/components/markdown_editor/markdown_editor_footer.js +1 -1
  332. package/test-env/components/markdown_editor/markdown_editor_toolbar.js +1 -1
  333. package/test-env/components/page/page_header/page_header_content.js +1 -1
  334. package/test-env/components/pagination/pagination_button.js +1 -1
  335. package/test-env/components/popover/popover_footer.styles.js +2 -2
  336. package/test-env/components/popover/popover_title.styles.js +1 -1
  337. package/test-env/components/selectable/selectable_list/selectable_list.js +1 -1
  338. package/test-env/components/selectable/selectable_list/selectable_list_item.js +1 -1
  339. package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
  340. package/test-env/components/table/table_header_cell.js +1 -1
  341. package/test-env/components/timeline/timeline_item_icon.js +1 -1
  342. package/test-env/components/toast/global_toast_list.js +2 -2
  343. package/test-env/components/toast/toast.js +2 -2
  344. package/test-env/components/tool_tip/icon_tip.js +1 -1
  345. package/test-env/global_styling/mixins/_button.js +8 -0
@@ -714,7 +714,11 @@ export var EuiFlyoutComponent = /*#__PURE__*/forwardRef(function (props, ref) {
714
714
  onMouseDown: onMouseDownResizableButton,
715
715
  onTouchStart: onMouseDownResizableButton,
716
716
  onKeyDown: onKeyDownResizableButton
717
- }), ___EmotionJSX(EuiFlyoutParentProvider, null, children))));
717
+ }), ___EmotionJSX("div", {
718
+ className: "euiFlyout__content",
719
+ css: styles.content,
720
+ "data-test-subj": "euiFlyoutContent"
721
+ }, ___EmotionJSX(EuiFlyoutParentProvider, null, children)))));
718
722
  }
719
723
  // React.forwardRef interferes with the inferred element type
720
724
  // Casting to ensure correct element prop type checking for `as`
@@ -15,7 +15,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
15
15
  import { css, keyframes } from '@emotion/react';
16
16
  import { euiShadowXLarge } from '@elastic/eui-theme-common';
17
17
  import { isEuiFlyoutSizeNamed } from './const';
18
- import { euiCanAnimate, euiMaxBreakpoint, euiMinBreakpoint, logicalCSS, logicalStyles, mathWithUnits } from '../../global_styling';
18
+ import { euiCanAnimate, euiMaxBreakpoint, euiMinBreakpoint, logicalCSS, logicalCSSWithFallback, logicalStyles, mathWithUnits } from '../../global_styling';
19
19
  import { euiFormMaxWidth } from '../form/form.styles';
20
20
  export var FLYOUT_BREAKPOINT = 'm';
21
21
  export var euiFlyoutSlideInRight = keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n from {\n opacity: 0;\n transform: translateX(100%);\n }\n to {\n opacity: 1;\n transform: translateX(0%);\n }\n"])));
@@ -47,7 +47,8 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
47
47
  export var euiFlyoutStyles = function euiFlyoutStyles(euiThemeContext) {
48
48
  var euiTheme = euiThemeContext.euiTheme;
49
49
  return _objectSpread(_objectSpread({
50
- euiFlyout: /*#__PURE__*/css("position:fixed;", logicalCSS('bottom', 0), " ", logicalCSS('top', 'var(--euiFixedHeadersOffset, 0)'), " ", logicalCSS('height', 'inherit'), " background:", euiTheme.colors.backgroundBasePlain, ";display:flex;flex-direction:column;align-items:stretch;&:focus{outline:none;}&.euiFlyout--hasChildBackground{background:", euiTheme.colors.backgroundBaseSubdued, ";}", maxedFlyoutWidth(euiThemeContext), ";;label:euiFlyout;")
50
+ euiFlyout: /*#__PURE__*/css("position:fixed;", logicalCSS('bottom', 0), " ", logicalCSS('top', 'var(--euiFixedHeadersOffset, 0)'), " ", logicalCSS('height', 'inherit'), " background:", euiTheme.colors.backgroundBasePlain, ";display:flex;flex-direction:column;align-items:stretch;&:focus{outline:none;}&.euiFlyout--hasChildBackground{background:", euiTheme.colors.backgroundBaseSubdued, ";}", maxedFlyoutWidth(euiThemeContext), ";;label:euiFlyout;"),
51
+ content: /*#__PURE__*/css("display:flex;flex:1 1 auto;flex-direction:column;align-items:stretch;min-block-size:0;&:has(.euiFlyoutBody){", logicalCSSWithFallback('overflow-y', 'auto'), ";};label:content;")
51
52
  }, composeFlyoutSizing(euiThemeContext)), {}, {
52
53
  noMaxWidth: /*#__PURE__*/css(logicalCSS('max-width', 'none'), ";;label:noMaxWidth;"),
53
54
  // Side
@@ -160,7 +161,7 @@ var composeFlyoutPadding = function composeFlyoutPadding(euiThemeContext, paddin
160
161
  return x / 1.5;
161
162
  }), " ").concat(euiTheme.size.l, ";")
162
163
  };
163
- return "\n .euiFlyoutHeader {\n ".concat(logicalCSS('padding-horizontal', paddingModifierMap[paddingSize]), "\n ").concat(logicalCSS('padding-top', paddingModifierMap[paddingSize]), "\n }\n\n [class*='euiFlyoutHeader-hasBorder'] {\n ").concat(logicalCSS('padding-bottom', paddingModifierMap[paddingSize]), "\n }\n\n .euiFlyoutBody__overflowContent {\n padding: ").concat(paddingModifierMap[paddingSize], ";\n }\n\n .euiFlyoutFooter {\n padding: ").concat(footerPaddingSizes[paddingSize], ";\n }\n ");
164
+ return "\n --euiFlyoutBodyPadding: ".concat(paddingModifierMap[paddingSize], ";\n\n .euiFlyoutHeader {\n ").concat(logicalCSS('padding-horizontal', paddingModifierMap[paddingSize]), "\n ").concat(logicalCSS('padding-top', paddingModifierMap[paddingSize]), "\n }\n\n [class*='euiFlyoutHeader-hasBorder'] {\n ").concat(logicalCSS('padding-bottom', paddingModifierMap[paddingSize]), "\n }\n\n .euiFlyoutBody__overflowContent {\n padding: ").concat(paddingModifierMap[paddingSize], ";\n }\n\n .euiFlyoutFooter {\n padding: ").concat(footerPaddingSizes[paddingSize], ";\n }\n ");
164
165
  };
165
166
 
166
167
  /**
@@ -11,7 +11,7 @@ import { logicalCSS, logicalCSSWithFallback, euiYScrollWithShadows } from '../..
11
11
  export var euiFlyoutBodyStyles = function euiFlyoutBodyStyles(euiThemeContext) {
12
12
  var euiTheme = euiThemeContext.euiTheme;
13
13
  return {
14
- euiFlyoutBody: /*#__PURE__*/css(logicalCSSWithFallback('overflow-y', 'hidden'), " ", logicalCSS('height', '100%'), ";;label:euiFlyoutBody;"),
14
+ euiFlyoutBody: /*#__PURE__*/css(logicalCSSWithFallback('overflow-y', 'hidden'), " ", logicalCSS('height', '100%'), logicalCSS('min-height', "calc(".concat(euiTheme.size.xxl, " + var(--euiFlyoutBodyPadding, 0px) + var(--euiFlyoutBodyPadding, 0px) + ").concat(euiTheme.size.s, ")")), ";;label:euiFlyoutBody;"),
15
15
  overflow: {
16
16
  euiFlyoutBody__overflow: /*#__PURE__*/css(";label:euiFlyoutBody__overflow;"),
17
17
  noBanner: /*#__PURE__*/css(euiYScrollWithShadows(euiThemeContext), ";;label:noBanner;"),
@@ -12,7 +12,7 @@ import { highContrastModeStyles } from '../../global_styling/functions/high_cont
12
12
  export var euiFlyoutFooterStyles = function euiFlyoutFooterStyles(euiThemeContext) {
13
13
  var euiTheme = euiThemeContext.euiTheme;
14
14
  return {
15
- euiFlyoutFooter: /*#__PURE__*/css("background-color:", euiTheme.components.flyoutFooterBackground, ";flex-grow:0;", highContrastModeStyles(euiThemeContext, {
15
+ euiFlyoutFooter: /*#__PURE__*/css("background-color:", euiTheme.components.flyoutFooterBackground, ";flex-grow:0;flex-shrink:0;", highContrastModeStyles(euiThemeContext, {
16
16
  preferred: logicalCSS('border-top', euiTheme.border.thin)
17
17
  }), ";;label:euiFlyoutFooter;")
18
18
  };
@@ -10,11 +10,11 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
10
10
  import { css } from '@emotion/react';
11
11
  import { logicalCSS } from '../../global_styling';
12
12
  var _ref = process.env.NODE_ENV === "production" ? {
13
- name: "1hivny1-euiFlyoutHeader",
14
- styles: "flex-grow:0;label:euiFlyoutHeader;"
13
+ name: "1w8kdp8-euiFlyoutHeader",
14
+ styles: "flex-grow:0;flex-shrink:0;label:euiFlyoutHeader;"
15
15
  } : {
16
- name: "1hivny1-euiFlyoutHeader",
17
- styles: "flex-grow:0;label:euiFlyoutHeader;",
16
+ name: "1w8kdp8-euiFlyoutHeader",
17
+ styles: "flex-grow:0;flex-shrink:0;label:euiFlyoutHeader;",
18
18
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
19
19
  };
20
20
  export var euiFlyoutHeaderStyles = function euiFlyoutHeaderStyles(euiThemeContext) {
@@ -17,13 +17,22 @@ export var MenuActionButton = function MenuActionButton(_ref) {
17
17
  onClick = action.onClick,
18
18
  ariaLabel = action['aria-label'],
19
19
  toolTipContent = action.toolTipContent,
20
- toolTipProps = action.toolTipProps;
20
+ toolTipProps = action.toolTipProps,
21
+ isDisabled = action.isDisabled,
22
+ isLoading = action.isLoading,
23
+ href = action.href,
24
+ target = action.target;
21
25
  var sharedProps = {
22
26
  'aria-label': ariaLabel,
23
27
  iconType: iconType,
24
28
  onClick: onClick,
25
29
  color: 'text',
26
- size: 'xs'
30
+ size: 'xs',
31
+ isDisabled: isDisabled,
32
+ // Keeps the button focusable so tooltip-on-disabled works for keyboard users
33
+ isLoading: isLoading,
34
+ href: href,
35
+ target: target
27
36
  };
28
37
  return toolTipContent ? ___EmotionJSX(EuiToolTip, _extends({
29
38
  content: toolTipContent,
@@ -77,7 +77,7 @@ export var euiFormControlLayoutSideNodeStyles = function euiFormControlLayoutSid
77
77
  return "\n position: relative;\n ".concat("margin-inline-".concat(side), ": -", euiTheme.border.width.thin, ";\n\n &::before {\n content: '';\n position: absolute;\n inset-inline-").concat(side, ": 0;\n z-index: ").concat(side === 'end' ? 1 : 0, ";\n block-size: ").concat(compressed ? euiTheme.size.base : euiTheme.size.l, ";\n inline-size: ").concat(euiTheme.border.width.thin, ";\n pointer-events: none;\n border-inline-").concat(side, ": \n ").concat(euiTheme.border.width.thin, " solid ").concat(form.borderColor, ";\n }\n ");
78
78
  };
79
79
  return {
80
- euiFormControlLayout__side: /*#__PURE__*/css(logicalCSS('height', '100%'), " ", euiTextTruncate('50%'), " flex-shrink:0;display:flex;align-items:center;gap:", euiTheme.size.s, ";padding:", euiTheme.size.xs, ";", buttons, "{block-size:100%;border-radius:", form.controlLayoutInnerBorderRadius, ";transform:none!important;&:focus-visible{z-index:1;outline-offset:", euiTheme.focus.width, ";}}", text, "{cursor:default;overflow:hidden;text-overflow:ellipsis;}&:where(:has(", buttons, ":focus-visible):has(> *:only-child)){*:not(", appendPrepend, "){outline:none;}&::after{", euiFormControlFocusStyles(euiThemeContext), " content:'';position:absolute;inset:0;border-radius:", form.controlLayoutBorderRadius, ";pointer-events:none;}}:where(:not(:has(:disabled))) label{color:", form.labelColor, ";};label:euiFormControlLayout__side;"),
80
+ euiFormControlLayout__side: /*#__PURE__*/css(logicalCSS('height', '100%'), " ", euiTextTruncate('50%'), " flex-shrink:0;display:flex;align-items:center;gap:", euiTheme.size.s, ";padding:", euiTheme.size.xs, ";", buttons, "{block-size:100%;border-radius:", form.controlLayoutInnerBorderRadius, ";transform:none!important;&:focus-visible{z-index:1;outline-offset:", euiTheme.focus.width, ";}}", text, "{cursor:default;overflow:hidden;text-overflow:ellipsis;}&:where(:has(", buttons, ":focus-visible):has(> *:only-child)){*:not(", appendPrepend, "){outline:none;}&::after{", euiFormControlFocusStyles(euiThemeContext), " content:'';position:absolute;inset:0;border-radius:", form.controlLayoutBorderRadius, ";pointer-events:none;}}:where(:not(:has(:disabled))) label{color:", form.labelColor, ";}.euiFilterButton__wrapper{padding:0;};label:euiFormControlLayout__side;"),
81
81
  uncompressed: {
82
82
  uncompressed: "\n &:not(:has(> ".concat(buttons, ":first-child, > *:first-child ").concat(buttons, ")) {\n ").concat(logicalCSS('padding-left', euiTheme.size.s), "\n }\n\n &:not(:has(> ").concat(buttons, ":last-child, > *:last-child ").concat(buttons, ")) {\n ").concat(logicalCSS('padding-right', euiTheme.size.s), "\n }\n\n ").concat(text, " {\n line-height: ").concat(uncompressedHeight, ";\n\n &:first-child {\n ").concat(logicalCSS('padding-left', euiTheme.size.xs), "\n }\n\n &:last-child {\n ").concat(logicalCSS('padding-right', euiTheme.size.xs), "\n }\n }\n\n ").concat(buttons, " {\n ").concat(logicalCSS('height', uncompressedHeight), "\n ").concat(_buttonPadding('s'), "\n }\n\n .euiButtonIcon {\n flex-shrink: 0;\n ").concat(logicalCSS('width', uncompressedHeight), "\n }\n "),
83
83
  append: "\n ".concat(dividerStyles('start'), "\n "),
@@ -30,7 +30,6 @@ import { jsx as ___EmotionJSX } from "@emotion/react";
30
30
  var Header = function Header() {
31
31
  var renderLogo = function renderLogo() {
32
32
  return ___EmotionJSX(EuiHeaderLogo, {
33
- iconType: "logoElastic",
34
33
  href: "#",
35
34
  onClick: function onClick(e) {
36
35
  return e.preventDefault();
@@ -49,5 +49,5 @@ export var euiHeaderStyles = function euiHeaderStyles(euiThemeContext) {
49
49
  var euiHeaderDarkStyles = function euiHeaderDarkStyles(euiThemeContext) {
50
50
  var euiTheme = euiThemeContext.euiTheme;
51
51
  var backgroundColor = euiTheme.components.headerDarkBackground;
52
- return "\n background-color: ".concat(backgroundColor, ";\n\n .euiHeaderLogo__text,\n .euiHeaderLink,\n .euiHeaderSectionItemButton {\n color: ").concat(euiTheme.colors.textGhost, ";\n }\n\n .euiHeaderLink-isActive {\n color: ").concat(makeHighContrastColor(euiTheme.colors.primary)(backgroundColor), ";\n }\n\n .euiHeaderLogo,\n .euiHeaderLink,\n .euiHeaderSectionItemButton {\n &:focus {\n background-color: ").concat(euiTheme.components.headerDarkSectionItemBackgroundFocus, ";\n }\n }\n\n .euiHeaderSectionItemButton__notification--badge {\n box-shadow: 0 0 0 ").concat(euiTheme.border.width.thin, " ").concat(backgroundColor, ";\n }\n\n .euiHeaderSectionItemButton__notification--dot {\n stroke: ").concat(backgroundColor, ";\n }\n ");
52
+ return "\n background-color: ".concat(backgroundColor, ";\n\n .euiHeaderLogo,\n .euiHeaderLogo__text,\n .euiHeaderLogo__image,\n .euiHeaderLink,\n .euiHeaderSectionItemButton {\n color: ").concat(euiTheme.colors.textGhost, ";\n }\n\n .euiHeaderLink-isActive {\n color: ").concat(makeHighContrastColor(euiTheme.colors.primary)(backgroundColor), ";\n }\n\n .euiHeaderLogo,\n .euiHeaderLink,\n .euiHeaderSectionItemButton {\n &:focus {\n background-color: ").concat(euiTheme.components.headerDarkSectionItemBackgroundFocus, ";\n }\n }\n\n .euiHeaderSectionItemButton__notification--badge {\n box-shadow: 0 0 0 ").concat(euiTheme.border.width.thin, " ").concat(backgroundColor, ";\n }\n\n .euiHeaderSectionItemButton__notification--dot {\n stroke: ").concat(backgroundColor, ";\n }\n ");
53
53
  };
@@ -0,0 +1,74 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ var _excluded = ["title", "titleId"];
4
+ /*
5
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
6
+ * or more contributor license agreements. Licensed under the Elastic License
7
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
8
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
9
+ * Side Public License, v 1.
10
+ */
11
+
12
+ import * as React from 'react';
13
+ import { useGeneratedHtmlId } from '../../../services';
14
+ import { jsx as ___EmotionJSX } from "@emotion/react";
15
+ var SvgElasticLogoFull = function SvgElasticLogoFull(_ref) {
16
+ var title = _ref.title,
17
+ titleId = _ref.titleId,
18
+ props = _objectWithoutProperties(_ref, _excluded);
19
+ var generatedTitleId = useGeneratedHtmlId();
20
+ var resolvedTitleId = title ? titleId !== null && titleId !== void 0 ? titleId : generatedTitleId : undefined;
21
+ return ___EmotionJSX("svg", _extends({
22
+ width: 105,
23
+ height: 36,
24
+ viewBox: "0 0 105 36",
25
+ fill: "none",
26
+ xmlns: "http://www.w3.org/2000/svg",
27
+ "aria-labelledby": resolvedTitleId
28
+ }, props), title ? ___EmotionJSX("title", {
29
+ id: resolvedTitleId
30
+ }, title) : null, ___EmotionJSX("g", null, ___EmotionJSX("path", {
31
+ fillRule: "evenodd",
32
+ clipRule: "evenodd",
33
+ d: "M34.7176 14.7701C35.5559 15.9712 36.0037 17.4015 36 18.8662C35.9928 20.3369 35.5367 21.7703 34.6928 22.9747C33.8506 24.177 32.6601 25.0922 31.2818 25.5971C31.6833 26.7001 31.717 27.9035 31.378 29.0273C31.039 30.151 30.3453 31.1349 29.4008 31.8319C28.4569 32.5256 27.3126 32.8927 26.1412 32.8777C24.9699 32.8627 23.8354 32.4663 22.9096 31.7486C21.6609 33.4995 19.8881 34.8083 17.847 35.4859C15.808 36.1625 13.6063 36.1715 11.5617 35.5117C9.51524 34.8502 7.7321 33.5552 6.46993 31.8139C5.20483 30.0694 4.52469 27.9691 4.52705 25.8142C4.52676 25.1632 4.58702 24.5135 4.70705 23.8736C3.3246 23.3782 2.13002 22.4658 1.28817 21.2625C0.444555 20.0565 -0.00538147 18.619 4.85762e-05 17.1472C0.0076733 15.6765 0.464145 14.2431 1.30842 13.0387C2.15178 11.8365 3.34344 10.9216 4.7228 10.4175C4.31561 9.31391 4.27729 8.10804 4.61361 6.98084C4.94992 5.85364 5.64272 4.86591 6.58805 4.16587C7.53252 3.46884 8.67878 3.09933 9.85252 3.11355C11.0263 3.12776 12.1632 3.52492 13.0905 4.24462C14.4424 2.35697 16.3996 0.9889 18.6368 0.367868C20.8722 -0.251484 23.2525 -0.0850957 25.3801 0.839243C27.5102 1.76545 29.2596 3.39218 30.3379 5.44949C31.4184 7.50975 31.7648 9.87663 31.3201 12.1601C32.6948 12.6587 33.8815 13.5704 34.7176 14.7701ZM14.1525 15.5104L22.0298 19.1227L29.9791 12.1331C30.0942 11.5564 30.1515 10.9696 30.15 10.3815C30.1509 8.478 29.5439 6.62398 28.4176 5.08949C27.2939 3.55777 25.7089 2.42655 23.8951 1.86187C22.083 1.29869 20.1379 1.33261 18.3466 1.95862C16.5527 2.58577 15.0071 3.77139 13.9365 5.34149L12.6158 12.2242L14.1537 15.5092L14.1525 15.5104ZM5.99967 23.8815C5.7507 25.1067 5.76091 26.3705 6.02964 27.5915C6.29838 28.8125 6.81969 29.9638 7.56005 30.9712C8.68986 32.5078 10.283 33.6411 12.105 34.2045C13.9249 34.7665 15.8773 34.7283 17.6738 34.0954C19.473 33.4612 21.0211 32.2663 22.0905 30.6866L23.4023 23.8219L21.6529 20.4637L13.7442 16.8514L5.99855 23.8804L5.99967 23.8815ZM11.349 11.4795L5.94905 10.2004L5.9513 10.1981C5.63886 9.33069 5.61367 8.38578 5.87946 7.50294C6.14524 6.6201 6.6879 5.84614 7.4273 5.29537C8.16675 4.74736 9.06386 4.45369 9.98423 4.45835C10.9046 4.46302 11.7987 4.76577 12.5325 5.32124L11.349 11.4795ZM5.48105 11.4907C4.3125 11.8778 3.29261 12.6175 2.56167 13.608C1.8289 14.6002 1.42031 15.7944 1.39172 17.0275C1.36312 18.2606 1.71593 19.4724 2.40192 20.4975C3.08705 21.5212 4.07142 22.3087 5.22005 22.7475L12.7947 15.8839L11.4053 12.9026L5.48105 11.4907ZM26.0528 31.5697C25.1218 31.5681 24.2176 31.2575 23.4822 30.6866L24.6488 24.5509L30.0488 25.8165C30.2847 26.4626 30.3617 27.156 30.2734 27.8382C30.1851 28.5203 29.934 29.1712 29.5414 29.736C29.1509 30.3003 28.6296 30.7617 28.0222 31.081C27.4147 31.4003 26.7391 31.568 26.0528 31.5697ZM24.579 23.1334L30.519 24.5261C31.7055 24.1247 32.7369 23.3624 33.4688 22.3459C34.2024 21.3277 34.6007 20.1065 34.6084 18.8516C34.6081 17.6423 34.241 16.4616 33.5554 15.4654C32.871 14.4704 31.8998 13.7076 30.771 13.2784L23.004 20.1071L24.579 23.1334Z",
34
+ fill: "white"
35
+ }), ___EmotionJSX("path", {
36
+ d: "M14.1525 15.5104L22.0298 19.1227L29.979 12.1331C30.0942 11.5564 30.1514 10.9696 30.15 10.3815C30.1508 8.47801 29.5438 6.62398 28.4175 5.0895C27.2939 3.55778 25.7088 2.42656 23.895 1.86187C22.0829 1.2987 20.1378 1.33262 18.3465 1.95862C16.5526 2.58578 15.007 3.7714 13.9365 5.3415L12.6158 12.2242L14.1536 15.5092L14.1525 15.5104Z",
37
+ fill: "#FEC514"
38
+ }), ___EmotionJSX("path", {
39
+ d: "M5.99962 23.8815C5.75065 25.1067 5.76086 26.3705 6.02959 27.5915C6.29833 28.8125 6.81964 29.9638 7.56 30.9713C8.68981 32.5078 10.2829 33.6411 12.105 34.2045C13.9249 34.7665 15.8773 34.7283 17.6737 34.0954C19.4729 33.4612 21.0211 32.2663 22.0905 30.6866L23.4023 23.8219L21.6529 20.4638L13.7441 16.8514L5.9985 23.8804L5.99962 23.8815Z",
40
+ fill: "#02BCB7"
41
+ }), ___EmotionJSX("path", {
42
+ d: "M5.949 10.2004L11.349 11.4795L12.5325 5.32125C11.7986 4.76577 10.9046 4.46302 9.98418 4.45836C9.06381 4.4537 8.1667 4.74736 7.42725 5.29537C6.68785 5.84614 6.14519 6.6201 5.87941 7.50294C5.61362 8.38578 5.63881 9.3307 5.95125 10.1981",
43
+ fill: "#F04E98"
44
+ }), ___EmotionJSX("path", {
45
+ d: "M5.481 11.4907C4.31245 11.8778 3.29256 12.6175 2.56163 13.608C1.82885 14.6002 1.42026 15.7944 1.39167 17.0275C1.36308 18.2606 1.71588 19.4724 2.40188 20.4975C3.087 21.5212 4.07138 22.3087 5.22 22.7475L12.7946 15.8839L11.4052 12.9026L5.481 11.4907Z",
46
+ fill: "#45A8FF"
47
+ }), ___EmotionJSX("path", {
48
+ d: "M23.4821 30.6866C24.2176 31.2575 25.1217 31.5681 26.0528 31.5697C26.739 31.568 27.4147 31.4003 28.0221 31.081C28.6296 30.7617 29.1508 30.3003 29.5414 29.736C29.934 29.1712 30.185 28.5203 30.2733 27.8382C30.3617 27.156 30.2846 26.4626 30.0487 25.8165L24.6488 24.5509L23.4821 30.6866Z",
49
+ fill: "#9ADC30"
50
+ }), ___EmotionJSX("path", {
51
+ d: "M24.579 23.1334L30.519 24.5261C31.7055 24.1247 32.7368 23.3624 33.4687 22.3459C34.2023 21.3278 34.6006 20.1065 34.6084 18.8516C34.6081 17.6423 34.2409 16.4616 33.5554 15.4654C32.871 14.4704 31.8998 13.7076 30.771 13.2784L23.004 20.1071L24.579 23.1334Z",
52
+ fill: "#0B64DD"
53
+ })), ___EmotionJSX("g", {
54
+ fill: "currentColor",
55
+ style: {
56
+ color: 'inherit'
57
+ }
58
+ }, ___EmotionJSX("path", {
59
+ d: "M50.0109 25.2763L50.7287 25.2L50.7746 26.6662C48.8807 26.9258 47.2618 27.0633 45.9178 27.0633C44.1309 27.0633 42.8633 26.544 42.1149 25.5054C41.3665 24.4669 41 22.848 41 20.664C41 16.296 42.7411 14.112 46.208 14.112C47.888 14.112 49.1404 14.5854 49.9651 15.5171C50.7898 16.4487 51.2022 17.9302 51.2022 19.9309L51.0953 21.3513H42.8785C42.8785 22.7258 43.1229 23.7491 43.6269 24.4058C44.1309 25.0625 44.9862 25.3985 46.2233 25.3985C47.4756 25.4291 48.728 25.3833 50.0109 25.2763ZM49.3389 19.8851C49.3389 18.3578 49.0946 17.2734 48.6058 16.6473C48.1171 16.0211 47.3229 15.7003 46.2233 15.7003C45.1236 15.7003 44.2836 16.0363 43.7338 16.6931C43.184 17.3498 42.8938 18.4189 42.8785 19.8851H49.3389Z"
60
+ }), ___EmotionJSX("path", {
61
+ d: "M53.7987 26.8342V8.96508H55.662V26.8342H53.7987Z"
62
+ }), ___EmotionJSX("path", {
63
+ d: "M67.4373 18.144V24.2684C67.4373 24.8945 68.9798 25.0167 68.9798 25.0167L68.8882 26.6662C67.5747 26.6662 66.4904 26.7731 65.8336 26.1469C64.3369 26.8036 62.8555 27.0785 61.3587 27.0785C60.2133 27.0785 59.3427 26.7578 58.7471 26.1011C58.1514 25.4596 57.846 24.528 57.846 23.3062C57.846 22.0996 58.1514 21.1985 58.7624 20.6334C59.3733 20.0684 60.3354 19.7018 61.6489 19.5796L65.5587 19.2131V18.144C65.5587 17.304 65.3755 16.6931 65.0089 16.3265C64.6424 15.96 64.1384 15.7767 63.5122 15.7767H58.6096V14.1273H63.39C64.7951 14.1273 65.8184 14.448 66.4598 15.1047C67.1165 15.7462 67.4373 16.7694 67.4373 18.144ZM59.7704 23.2145C59.7704 24.7418 60.3965 25.5054 61.6642 25.5054C62.7944 25.5054 63.9093 25.3222 64.9936 24.9403L65.5587 24.7418V20.6334L61.878 20.9847C61.1296 21.0458 60.5951 21.2596 60.2591 21.6262C59.9231 21.9927 59.7704 22.5273 59.7704 23.2145Z"
64
+ }), ___EmotionJSX("path", {
65
+ d: "M74.7224 15.792C72.9202 15.792 72.0038 16.4182 72.0038 17.6858C72.0038 18.2662 72.2176 18.6786 72.63 18.9229C73.0424 19.1673 73.9893 19.4116 75.4707 19.6713C76.9522 19.9309 77.9907 20.2822 78.6017 20.7556C79.2126 21.2138 79.518 22.0844 79.518 23.3673C79.518 24.6502 79.1057 25.5818 78.2809 26.1775C77.4562 26.7731 76.2649 27.0786 74.6765 27.0786C73.6533 27.0786 70.2169 26.6967 70.2169 26.6967L70.3238 25.0778C72.294 25.2611 73.7296 25.4138 74.6918 25.4138C75.654 25.4138 76.3871 25.2611 76.8911 24.9556C77.3951 24.6502 77.6547 24.1309 77.6547 23.4131C77.6547 22.6953 77.4409 22.2066 77.0133 21.9469C76.5856 21.6873 75.6387 21.4429 74.1725 21.2138C72.7064 20.9847 71.6678 20.6487 71.0569 20.1906C70.446 19.7476 70.1405 18.9076 70.1405 17.7011C70.1405 16.4946 70.5682 15.5935 71.4234 15.0131C72.2787 14.4327 73.3478 14.1426 74.6155 14.1426C75.6235 14.1426 79.1362 14.4022 79.1362 14.4022V16.0364C77.2882 15.9295 75.7762 15.792 74.7224 15.792Z"
66
+ }), ___EmotionJSX("path", {
67
+ d: "M88.5283 16.0058H84.5726V21.9622C84.5726 23.3825 84.6795 24.3294 84.8781 24.7723C85.0919 25.2153 85.5806 25.4444 86.3595 25.4444L88.5741 25.2916L88.6963 26.8342C87.5814 27.0174 86.7414 27.1091 86.161 27.1091C84.8628 27.1091 83.977 26.7883 83.473 26.1622C82.969 25.536 82.7246 24.3294 82.7246 22.5578V16.0058H80.953V14.3869H82.7246V10.5687H84.5726V14.3716H88.5283V16.0058Z"
68
+ }), ___EmotionJSX("path", {
69
+ d: "M91.1249 11.5615V9.40801H92.9882V11.5767L91.1249 11.5615ZM91.1249 26.8342V14.3869H92.9882V26.8342H91.1249Z"
70
+ }), ___EmotionJSX("path", {
71
+ d: "M101.083 14.1273C101.632 14.1273 102.564 14.2342 103.878 14.4327L104.473 14.5091L104.397 16.0211C103.068 15.8684 102.091 15.792 101.464 15.792C100.059 15.792 99.0971 16.128 98.5931 16.8C98.0891 17.472 97.8295 18.7243 97.8295 20.5418C97.8295 22.3593 98.0586 23.6269 98.532 24.3447C99.0055 25.0625 99.983 25.4138 101.48 25.4138L104.412 25.1847L104.488 26.7273C102.946 26.9564 101.785 27.0785 101.022 27.0785C99.0819 27.0785 97.7379 26.5745 97.0048 25.5818C96.2717 24.5891 95.8899 22.9091 95.8899 20.5418C95.8899 18.1745 96.287 16.5098 97.0811 15.5629C97.8906 14.616 99.2193 14.1273 101.083 14.1273Z"
72
+ })));
73
+ };
74
+ export default SvgElasticLogoFull;
@@ -1,6 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
- var _excluded = ["iconType", "iconTitle", "href", "rel", "target", "children", "className"];
3
+ var _excluded = ["iconTitle", "href", "rel", "target", "className", "logoType"],
4
+ _excluded2 = ["iconType"];
4
5
  /*
5
6
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
6
7
  * or more contributor license agreements. Licensed under the Elastic License
@@ -11,24 +12,30 @@ var _excluded = ["iconType", "iconTitle", "href", "rel", "target", "children", "
11
12
 
12
13
  import React from 'react';
13
14
  import classNames from 'classnames';
14
- import { useEuiMemoizedStyles, getSecureRelForTarget } from '../../../services';
15
+ import { useEuiMemoizedStyles, getSecureRelForTarget, useEuiTheme } from '../../../services';
15
16
  import { validateHref } from '../../../services/security/href_validator';
16
17
  import { useEuiButtonColorCSS } from '../../../global_styling';
17
18
  import { EuiIcon } from '../../icon';
18
19
  import { euiHeaderLogoStyles } from './header_logo.styles';
20
+ import SvgElasticLogoFull from './elastic_logo_full';
19
21
  import { jsx as ___EmotionJSX } from "@emotion/react";
20
22
  export var EuiHeaderLogo = function EuiHeaderLogo(_ref) {
21
- var _ref$iconType = _ref.iconType,
22
- iconType = _ref$iconType === void 0 ? 'logoElastic' : _ref$iconType,
23
- _ref$iconTitle = _ref.iconTitle,
23
+ var _ref$iconTitle = _ref.iconTitle,
24
24
  iconTitle = _ref$iconTitle === void 0 ? 'Elastic' : _ref$iconTitle,
25
25
  href = _ref.href,
26
26
  rel = _ref.rel,
27
27
  target = _ref.target,
28
- children = _ref.children,
29
28
  className = _ref.className,
29
+ _ref$logoType = _ref.logoType,
30
+ logoType = _ref$logoType === void 0 ? 'glyph' : _ref$logoType,
30
31
  rest = _objectWithoutProperties(_ref, _excluded);
32
+ // Keep this to prevent legacy runtime `iconType` props from being forwarded to the anchor.
33
+ var _ref2 = rest,
34
+ _ignoredIconType = _ref2.iconType,
35
+ anchorProps = _objectWithoutProperties(_ref2, _excluded2);
31
36
  var classes = classNames('euiHeaderLogo', className);
37
+ var _useEuiTheme = useEuiTheme(),
38
+ euiTheme = _useEuiTheme.euiTheme;
32
39
  var styles = useEuiMemoizedStyles(euiHeaderLogoStyles);
33
40
  var buttonColorStyles = useEuiButtonColorCSS({
34
41
  display: 'empty'
@@ -46,13 +53,17 @@ export var EuiHeaderLogo = function EuiHeaderLogo(_ref) {
46
53
  target: target,
47
54
  css: cssStyles,
48
55
  className: classes
49
- }, rest), ___EmotionJSX(EuiIcon, {
56
+ }, anchorProps), logoType === 'glyph' && ___EmotionJSX(EuiIcon, {
50
57
  "aria-label": iconTitle,
51
58
  className: "euiHeaderLogo__icon",
52
59
  size: "l",
53
- type: iconType
54
- }), children && ___EmotionJSX("span", {
55
- css: styles.euiHeaderLogo__text,
56
- className: "euiHeaderLogo__text"
57
- }, children));
60
+ type: "logoElastic"
61
+ }), logoType === 'horizontal' && ___EmotionJSX(SvgElasticLogoFull, {
62
+ title: iconTitle,
63
+ style: {
64
+ maxHeight: euiTheme.size.l,
65
+ width: 'auto'
66
+ },
67
+ className: "euiHeaderLogo__image"
68
+ }));
58
69
  };
@@ -8,14 +8,12 @@
8
8
 
9
9
  import { css } from '@emotion/react';
10
10
  import { logicalCSS, euiBreakpoint } from '../../../global_styling';
11
- import { euiTitle } from '../../title/title.styles';
12
11
  import { euiHeaderVariables } from '../header.styles';
13
12
  export var euiHeaderLogoStyles = function euiHeaderLogoStyles(euiThemeContext) {
14
13
  var euiTheme = euiThemeContext.euiTheme;
15
14
  var _euiHeaderVariables = euiHeaderVariables(euiThemeContext),
16
15
  childHeight = _euiHeaderVariables.childHeight;
17
16
  return {
18
- euiHeaderLogo: /*#__PURE__*/css("position:relative;", logicalCSS('height', childHeight), " line-height:", childHeight, ";", logicalCSS('min-width', childHeight), " padding-inline:", euiTheme.size.s, ";display:inline-flex;border-radius:", euiTheme.border.radius.small, ";align-items:center;white-space:nowrap;", euiBreakpoint(euiThemeContext, ['xs']), "{", logicalCSS('padding-left', euiTheme.size.xs), ";};label:euiHeaderLogo;"),
19
- euiHeaderLogo__text: /*#__PURE__*/css(euiTitle(euiThemeContext, 'xxs'), " ", logicalCSS('padding-left', euiTheme.size.base), " ", euiBreakpoint(euiThemeContext, ['xs']), "{", logicalCSS('padding-left', euiTheme.size.s), ";};label:euiHeaderLogo__text;")
17
+ euiHeaderLogo: /*#__PURE__*/css("position:relative;", logicalCSS('height', childHeight), " line-height:", childHeight, ";", logicalCSS('min-width', childHeight), " padding-inline:", euiTheme.size.s, ";display:inline-flex;border-radius:", euiTheme.border.radius.small, ";align-items:center;white-space:nowrap;", euiBreakpoint(euiThemeContext, ['xs']), "{", logicalCSS('padding-left', euiTheme.size.xs), ";};label:euiHeaderLogo;")
20
18
  };
21
19
  };
@@ -0,0 +1,42 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ var _excluded = ["title", "titleId"];
4
+ /*
5
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
6
+ * or more contributor license agreements. Licensed under the Elastic License
7
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
8
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
9
+ * Side Public License, v 1.
10
+ */
11
+
12
+ // THIS IS A GENERATED FILE. DO NOT MODIFY MANUALLY. @see scripts/compile-icons.js
13
+
14
+ import * as React from 'react';
15
+ import { jsx as ___EmotionJSX } from "@emotion/react";
16
+ var EuiIconTableSparkles = function EuiIconTableSparkles(_ref) {
17
+ var title = _ref.title,
18
+ titleId = _ref.titleId,
19
+ props = _objectWithoutProperties(_ref, _excluded);
20
+ return ___EmotionJSX("svg", _extends({
21
+ xmlns: "http://www.w3.org/2000/svg",
22
+ width: 16,
23
+ height: 16,
24
+ viewBox: "0 0 16 16",
25
+ "aria-labelledby": titleId
26
+ }, props), title ? ___EmotionJSX("title", {
27
+ id: titleId
28
+ }, title) : null, ___EmotionJSX("path", {
29
+ d: "M14.5 13a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 0 1H15v.5a.5.5 0 0 1-1 0V15h-.5a.5.5 0 0 1 0-1h.5v-.5a.5.5 0 0 1 .5-.5"
30
+ }), ___EmotionJSX("path", {
31
+ fillRule: "evenodd",
32
+ d: "M14 1a1 1 0 0 1 1 1v4.086a1.5 1.5 0 0 0-1 0V5H2v9h7.912q.057.159.077.331l.012.219q0 .023.004.047l.01.1q.004.053.015.104.022.102.057.199H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zM2 4h12V2H2z",
33
+ clipRule: "evenodd"
34
+ }), ___EmotionJSX("path", {
35
+ fillRule: "evenodd",
36
+ d: "M11.5 8a.5.5 0 0 1 .5.5 2.5 2.5 0 0 0 2 2.45v-.007q.174.037.356.05.071.006.144.007a.5.5 0 0 1 0 1q-.072 0-.144.007-.182.011-.356.048v-.005c-.98.199-1.751.97-1.95 1.95h.006a2.5 2.5 0 0 0-.056.5l-.01.1a.5.5 0 0 1-.98 0l-.01-.1-.013-.256a2.5 2.5 0 0 0-.221-.797l-.03-.065a3 3 0 0 0-.09-.161l-.015-.026-.08-.12-.049-.07-.085-.107-.042-.05-.1-.105-.052-.053-.096-.085q-.036-.032-.072-.061a2.6 2.6 0 0 0-.57-.34q-.048-.021-.098-.04-.05-.02-.1-.035l-.117-.037-.117-.029-.091-.02a3 3 0 0 0-.205-.03l-.019-.002A3 3 0 0 0 8.5 12a.5.5 0 0 1 0-1A2.5 2.5 0 0 0 11 8.5a.5.5 0 0 1 .5-.5m0 2.302c-.295.49-.707.903-1.198 1.198.49.295.903.707 1.198 1.197.295-.49.707-.902 1.197-1.197a3.5 3.5 0 0 1-1.197-1.198",
37
+ clipRule: "evenodd"
38
+ }), ___EmotionJSX("path", {
39
+ d: "M5 13H3v-1h2zm0-3H3V9h2zm3 0H6V9h2zm6.5-3a.5.5 0 0 1 .5.5V8h.5a.5.5 0 0 1 0 1H15v.5a.5.5 0 0 1-1 0V9h-.5a.5.5 0 0 1 0-1h.5v-.5a.5.5 0 0 1 .5-.5M5 7H3V6h2zm3 0H6V6h2zm5 0H9V6h4z"
40
+ }));
41
+ };
42
+ export var icon = EuiIconTableSparkles;
@@ -1068,6 +1068,11 @@ export var typeToPathMap = {
1068
1068
  }, {
1069
1069
  synonyms: ['table', 'cross', 'index', 'close', 'elasticsearch', 'dataset', 'remove']
1070
1070
  }),
1071
+ tableSparkles: withMetadata(function () {
1072
+ return import('./assets/table_sparkles');
1073
+ }, {
1074
+ synonyms: ['context', 'table', 'index', 'indices', 'ai', 'curated content', 'elasticsearch', 'dataset']
1075
+ }),
1071
1076
  indexEdit: function indexEdit() {
1072
1077
  return import('./assets/index_edit');
1073
1078
  },
@@ -0,0 +1,6 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
2
+ <path d="M14.5 13a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 0 1H15v.5a.5.5 0 0 1-1 0V15h-.5a.5.5 0 0 1 0-1h.5v-.5a.5.5 0 0 1 .5-.5"/>
3
+ <path fill-rule="evenodd" d="M14 1a1 1 0 0 1 1 1v4.086a1.5 1.5 0 0 0-1 0V5H2v9h7.912q.057.159.077.331l.012.219q0 .023.004.047l.01.1q.004.053.015.104.022.102.057.199H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zM2 4h12V2H2z" clip-rule="evenodd"/>
4
+ <path fill-rule="evenodd" d="M11.5 8a.5.5 0 0 1 .5.5 2.5 2.5 0 0 0 2 2.45v-.007q.174.037.356.05.071.006.144.007a.5.5 0 0 1 0 1q-.072 0-.144.007-.182.011-.356.048v-.005c-.98.199-1.751.97-1.95 1.95h.006a2.5 2.5 0 0 0-.056.5l-.01.1a.5.5 0 0 1-.98 0l-.01-.1-.013-.256a2.5 2.5 0 0 0-.221-.797l-.03-.065a3 3 0 0 0-.09-.161l-.015-.026-.08-.12-.049-.07-.085-.107-.042-.05-.1-.105-.052-.053-.096-.085q-.036-.032-.072-.061a2.6 2.6 0 0 0-.57-.34q-.048-.021-.098-.04-.05-.02-.1-.035l-.117-.037-.117-.029-.091-.02a3 3 0 0 0-.205-.03l-.019-.002A3 3 0 0 0 8.5 12a.5.5 0 0 1 0-1A2.5 2.5 0 0 0 11 8.5a.5.5 0 0 1 .5-.5m0 2.302c-.295.49-.707.903-1.198 1.198.49.295.903.707 1.198 1.197.295-.49.707-.902 1.197-1.197a3.5 3.5 0 0 1-1.197-1.198" clip-rule="evenodd"/>
5
+ <path d="M5 13H3v-1h2zm0-3H3V9h2zm3 0H6V9h2zm6.5-3a.5.5 0 0 1 .5.5V8h.5a.5.5 0 0 1 0 1H15v.5a.5.5 0 0 1-1 0V9h-.5a.5.5 0 0 1 0-1h.5v-.5a.5.5 0 0 1 .5-.5M5 7H3V6h2zm3 0H6V6h2zm5 0H9V6h4z"/>
6
+ </svg>
@@ -13,9 +13,9 @@ export var euiPopoverFooterStyles = function euiPopoverFooterStyles(euiThemeCont
13
13
  highContrastMode = euiThemeContext.highContrastMode;
14
14
  return {
15
15
  // Base
16
- euiPopoverFooter: /*#__PURE__*/css(euiFontSize(euiThemeContext, 's'), " ", logicalCSS('border-top', "".concat(euiTheme.border.width.thin, " solid ").concat(highContrastMode ? euiTheme.border.color : euiTheme.components.popoverFooterBorderColor)), ";;label:euiPopoverFooter;"),
16
+ euiPopoverFooter: /*#__PURE__*/css(euiFontSize(euiThemeContext, 's'), " ", logicalCSS('border-top', "".concat(euiTheme.border.width.thin, " solid ").concat(highContrastMode ? euiTheme.border.color : euiTheme.components.popoverFooterBorderColor)), logicalCSS('border-bottom-left-radius', euiTheme.border.radius.medium), " ", logicalCSS('border-bottom-right-radius', euiTheme.border.radius.medium), ";;label:euiPopoverFooter;"),
17
17
  // If the popover's containing panel has padding applied,
18
- // ensure the title expands to cover that padding via negative margins
18
+ // ensure the footer expands to cover that padding via negative margins
19
19
  panelPaddingSizes: {
20
20
  none: /*#__PURE__*/css(";label:none;"),
21
21
  xs: /*#__PURE__*/css(panelPaddingOffset(euiThemeContext, 'xs'), ";;label:xs;"),
@@ -13,7 +13,7 @@ export var euiPopoverTitleStyles = function euiPopoverTitleStyles(euiThemeContex
13
13
  var euiTheme = euiThemeContext.euiTheme;
14
14
  return {
15
15
  // Base
16
- euiPopoverTitle: /*#__PURE__*/css(euiTitle(euiThemeContext, 'xxs'), " ", logicalCSS('border-bottom', euiTheme.border.thin), ";;label:euiPopoverTitle;"),
16
+ euiPopoverTitle: /*#__PURE__*/css(euiTitle(euiThemeContext, 'xxs'), " ", logicalCSS('border-bottom', euiTheme.border.thin), logicalCSS('border-top-left-radius', euiTheme.border.radius.medium), " ", logicalCSS('border-top-right-radius', euiTheme.border.radius.medium), ";;label:euiPopoverTitle;"),
17
17
  // If the popover's containing panel has padding applied,
18
18
  // ensure the title expands to cover that padding via negative margins
19
19
  panelPaddingSizes: {
@@ -201,10 +201,16 @@ export var euiButtonSizeMap = function euiButtonSizeMap(euiThemeContext) {
201
201
 
202
202
  // TODO: replace with token once available
203
203
  var radiusInset = '2px';
204
+ var getInsetHeight = function getInsetHeight(height, padding) {
205
+ return mathWithUnits([height, padding], function (x, y) {
206
+ return x - y * 2;
207
+ });
208
+ };
204
209
  return {
205
210
  xs: {
206
211
  minWidth: euiTheme.base * 6,
207
212
  height: euiTheme.size.l,
213
+ getInsetHeight: getInsetHeight,
208
214
  padding: mathWithUnits(euiTheme.size.m, function (x) {
209
215
  return x / 2;
210
216
  }),
@@ -215,6 +221,7 @@ export var euiButtonSizeMap = function euiButtonSizeMap(euiThemeContext) {
215
221
  s: {
216
222
  minWidth: euiTheme.base * 6,
217
223
  height: euiTheme.size.xl,
224
+ getInsetHeight: getInsetHeight,
218
225
  padding: euiTheme.size.s,
219
226
  radius: euiTheme.border.radius.small,
220
227
  radiusInset: radiusInset,
@@ -223,6 +230,7 @@ export var euiButtonSizeMap = function euiButtonSizeMap(euiThemeContext) {
223
230
  m: {
224
231
  minWidth: euiTheme.base * 7,
225
232
  height: euiTheme.size.xxl,
233
+ getInsetHeight: getInsetHeight,
226
234
  padding: euiTheme.size.m,
227
235
  radius: euiTheme.border.radius.small,
228
236
  radiusInset: radiusInset,
@@ -73,9 +73,10 @@ var EuiButtonGroupOptions = function EuiButtonGroupOptions(_ref) {
73
73
  _ref$type = _ref.type,
74
74
  type = _ref$type === void 0 ? 'single' : _ref$type,
75
75
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
76
+ var size = buttonSize === 'compressed' ? 's' : buttonSize;
76
77
  var wrapperCssStyles = [_button_group.euiButtonGroupStyles.euiButtonGroup, isFullWidth && _button_group.euiButtonGroupStyles.fullWidth];
77
78
  var styles = (0, _services.useEuiMemoizedStyles)(_button_group.euiButtonGroupButtonsStyles);
78
- var cssStyles = [styles.euiButtonGroup__buttons, isFullWidth && styles.fullWidth, styles.size[buttonSize]];
79
+ var cssStyles = [styles.euiButtonGroup__buttons, isFullWidth && styles.fullWidth, styles.size[size]];
79
80
  var classes = (0, _classnames.default)('euiButtonGroup', {
80
81
  'euiButtonGroup-isDisabled': isDisabled
81
82
  }, className);
@@ -169,10 +170,10 @@ var EuiButtonGroupChildren = exports.EuiButtonGroupChildren = function EuiButton
169
170
  display: 'base',
170
171
  fill: false
171
172
  }), isSelection && {
172
- getSelectionProps: function getSelectionProps(id) {
173
+ getSelectionProps: function getSelectionProps(id, _isDisabled) {
173
174
  var selected = isSelected(id);
174
175
  var isInverse = display === 'inverse';
175
- var hasFill = selected && display === 'highlighted';
176
+ var hasFill = selected && display === 'highlighted' || !!(selected && _isDisabled);
176
177
  return {
177
178
  isSelected: selected,
178
179
  fill: isInverse ? false : hasFill,
@@ -7,7 +7,6 @@ exports.euiButtonGroupStyles = exports.euiButtonGroupButtonsStyles = void 0;
7
7
  var _react = require("@emotion/react");
8
8
  var _global_styling = require("../../../global_styling");
9
9
  var _high_contrast = require("../../../global_styling/functions/high_contrast");
10
- var _form = require("../../form/form.styles");
11
10
  function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /*
12
11
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
13
12
  * or more contributor license agreements. Licensed under the Elastic License
@@ -35,14 +34,9 @@ var euiButtonGroupButtonsStyles = exports.euiButtonGroupButtonsStyles = function
35
34
  var euiTheme = euiThemeContext.euiTheme;
36
35
  var buttonSizeMap = (0, _global_styling.euiButtonSizeMap)(euiThemeContext);
37
36
  var containerPadding = euiTheme.size.xs;
38
- var splitPadding = (0, _global_styling.mathWithUnits)(containerPadding, function (x) {
37
+ var splitPadding = (0, _global_styling.mathWithUnits)([containerPadding], function (x) {
39
38
  return x / 2;
40
39
  });
41
- var insetSize = function insetSize(height) {
42
- return (0, _global_styling.mathWithUnits)([height, containerPadding], function (x, y) {
43
- return x - y * 2;
44
- });
45
- };
46
40
  var buttonGroupVariables = {
47
41
  gap: {
48
42
  regular: euiTheme.size.xs,
@@ -50,25 +44,21 @@ var euiButtonGroupButtonsStyles = exports.euiButtonGroupButtonsStyles = function
50
44
  return x + y;
51
45
  })
52
46
  },
53
- // TODO: use from buttonSizeMap once added via EuiSplitButton:
54
- // https://github.com/elastic/eui/pull/9865
55
47
  radius: {
56
48
  outer: euiTheme.border.radius.medium,
57
- inner: '2px' // should eventually be a token, but currently small and medium have the same value
49
+ inner: buttonSizeMap.s.radiusInset
58
50
  },
59
51
  size: {
60
- s: insetSize(buttonSizeMap.s.height),
61
- m: insetSize(buttonSizeMap.m.height)
62
- }
52
+ s: buttonSizeMap.s.getInsetHeight(buttonSizeMap.s.height, containerPadding),
53
+ m: buttonSizeMap.m.getInsetHeight(buttonSizeMap.m.height, containerPadding)
54
+ },
55
+ backgroundColor: euiTheme.colors.backgroundBasePlain
63
56
  };
64
57
  var dividerOffset = (0, _global_styling.mathWithUnits)([buttonGroupVariables.gap.dividers, euiTheme.border.width.thin], function (x, y) {
65
58
  return (x + y) / 2;
66
59
  });
67
- var _euiFormVariables = (0, _form.euiFormVariables)(euiThemeContext),
68
- controlCompressedHeight = _euiFormVariables.controlCompressedHeight,
69
- controlCompressedBorderRadius = _euiFormVariables.controlCompressedBorderRadius,
70
- backgroundColor = _euiFormVariables.backgroundColor,
71
- borderColor = _euiFormVariables.borderColor;
60
+ var containerBorderStyles = "\n &::after {\n content: '';\n position: absolute;\n inset: 0;\n /* keep the border under any related content */\n z-index: -1;\n border: ".concat(euiTheme.border.width.thin, " solid\n ").concat(euiTheme.colors.borderBasePlain, ";\n border-radius: inherit;\n pointer-events: none;\n }\n ");
61
+ var containerCommonStyles = "\n position: relative;\n display: inline-flex;\n align-items: center;\n gap: ".concat(buttonGroupVariables.gap.regular, ";\n max-inline-size: 100%;\n padding: ").concat(splitPadding, ";\n overflow: hidden;\n ");
72
62
  var dividerStyles = "\n gap: ".concat(buttonGroupVariables.gap.dividers, ";\n\n .euiButtonGroup__item {\n position: relative;\n\n /* block border */\n &::before {\n content: '';\n position: absolute;\n inset-block-start: -").concat(dividerOffset, ";\n inset-inline-start: -").concat((0, _global_styling.mathWithUnits)(containerPadding, function (x) {
73
63
  return x / 2;
74
64
  }), ";\n inline-size: calc(\n 100% + ").concat((0, _global_styling.mathWithUnits)(containerPadding, function (x) {
@@ -79,25 +69,24 @@ var euiButtonGroupButtonsStyles = exports.euiButtonGroupButtonsStyles = function
79
69
  var segmentedChildrenStyles = "\n /* Buttons are used inset and shouldn't have their own borders */\n .euiButton,\n .euiButtonIcon {\n border: none;\n pointer-events: auto; /* Ensure buttons are still clickable in jsdom */\n\n &::before {\n border-radius: inherit;\n }\n\n &:focus-visible {\n outline-offset: 0;\n }\n }\n\n /* Adjust children for inset behavior */\n ".concat(buttonItemSelector, ",\n .euiButtonIcon {\n display: inline-flex;\n align-items: center;\n block-size: var(--euiButtonGroupButtonInsetSize);\n border-radius: ").concat(buttonGroupVariables.radius.inner, ";\n }\n\n .euiButtonIcon {\n inline-size: var(--euiButtonGroupButtonInsetSize);\n }\n\n /* Only non-icon buttons auto-grow/shrink */\n .euiButton,\n ").concat(buttonOnlyItemSelector, " {\n flex: 1;\n min-inline-size: auto;\n }\n ");
80
70
  return {
81
71
  // Base
82
- euiButtonGroup__container: /*#__PURE__*/(0, _react.css)("&:where(", segmentedStyledSelector, " &){position:relative;display:inline-flex;align-items:center;max-inline-size:100%;padding:", splitPadding, ";border-radius:", buttonGroupVariables.radius.outer, ";background-color:", euiTheme.colors.backgroundBasePlain, ";&:where([data-size='s'] &){--euiButtonGroupButtonInsetSize:", buttonGroupVariables.size.s, ";min-block-size:", buttonSizeMap.s.height, ";}&:where([data-size='m'] &){--euiButtonGroupButtonInsetSize:", buttonGroupVariables.size.m, ";min-block-size:", buttonSizeMap.m.height, ";}&::after{content:'';position:absolute;inset:0;border:", euiTheme.border.width.thin, " solid ", euiTheme.colors.borderBasePlain, ";border-radius:inherit;pointer-events:none;}}&:where([data-variant='selection'][data-display='inverse'] &){background-color:", euiTheme.colors.backgroundBaseSubdued, ";};label:euiButtonGroup__container;"),
83
- euiButtonGroup__buttons: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('max-width', '100%'), " display:flex;align-items:center;&:where([data-variant='default'] &){flex-wrap:wrap;}&:where(", segmentedStyledSelector, " &){position:relative;display:inline-flex;align-items:center;flex-wrap:wrap;gap:", buttonGroupVariables.gap.regular, ";max-inline-size:100%;padding:", splitPadding, ";overflow:hidden;", segmentedChildrenStyles, " *:where(.euiButton, .euiButtonIcon):is(", _global_styling.euiDisabledSelector, "){background-color:transparent;}&:where([data-dividers='true'] &){", dividerStyles, ";}&:where([data-layout='vertical'] &){flex-direction:column;.euiButtonGroup__item{justify-content:center;}}}&:where([data-variant='segmented'] &){*:where(.euiButton, .euiButtonIcon):is(", _global_styling.euiDisabledSelector, "){background-color:transparent;}}&:where([data-variant='selection'] &){*:where(.euiButton, .euiButtonIcon){&:is(", _global_styling.euiDisabledSelector, "){", (0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
72
+ euiButtonGroup__container: /*#__PURE__*/(0, _react.css)("&:where(", segmentedStyledSelector, " &){position:relative;display:inline-flex;align-items:center;max-inline-size:100%;z-index:", euiTheme.levels.content, ";padding:", splitPadding, ";border-radius:", buttonGroupVariables.radius.outer, ";background-color:", euiTheme.colors.backgroundBasePlain, ";", containerBorderStyles, ";&:where([data-size='s'] &){--euiButtonGroupButtonInsetSize:", buttonGroupVariables.size.s, ";min-block-size:", buttonSizeMap.s.height, ";}&:where([data-size='m'] &){--euiButtonGroupButtonInsetSize:", buttonGroupVariables.size.m, ";min-block-size:", buttonSizeMap.m.height, ";}}&:where([data-variant='selection'][data-display='inverse'] &){background-color:", euiTheme.colors.backgroundBaseSubdued, ";};label:euiButtonGroup__container;"),
73
+ euiButtonGroup__buttons: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('max-width', '100%'), " display:flex;align-items:center;z-index:", euiTheme.levels.content, ";&:where(.euiButtonGroup:not([data-variant]) &){", containerCommonStyles, " padding:", containerPadding, ";border-radius:", buttonGroupVariables.radius.outer, ";background-color:", euiTheme.colors.backgroundBasePlain, ";", containerBorderStyles, ";}&:where([data-variant='default'] &){flex-wrap:wrap;}&:where(", segmentedStyledSelector, " &){flex-wrap:wrap;", containerCommonStyles, " ", segmentedChildrenStyles, " *:where(.euiButton, .euiButtonIcon){&:where(:is(", _global_styling.euiDisabledSelector, "):not([aria-pressed='true'])){background-color:transparent;}}&:where([data-dividers='true'] &){", dividerStyles, ";}&:where([data-layout='vertical'] &){flex-direction:column;.euiButtonGroup__item{justify-content:center;}}}&:where([data-variant='segmented'] &){*:where(.euiButton, .euiButtonIcon):is(", _global_styling.euiDisabledSelector, "){background-color:transparent;}}&:where([data-variant='selection'] &){*:where(.euiButton, .euiButtonIcon){&:is(", _global_styling.euiDisabledSelector, "){", (0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
84
74
  forced: "\n opacity: 0.5;\n "
85
75
  }), ";}&:is([aria-pressed='true']){", (0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
86
76
  forced: "\n --highContrastHoverIndicatorColor: ".concat(euiTheme.colors.textInverse, ";\n ").concat((0, _high_contrast.preventForcedColors)(euiThemeContext), "\n background-color: ").concat(euiTheme.colors.fullShade, ";\n color: ").concat(euiTheme.colors.emptyShade, ";\n ")
87
- }), ";}&:is([aria-pressed='false']){background-color:transparent;}}}&:where([data-variant='selection'][data-display='regular'] &){*:where(.euiButton, .euiButtonIcon):is([aria-pressed='true']){background-color:", euiTheme.colors.backgroundLightText, ";", (0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
88
- none: "\n background-color: ".concat(euiTheme.colors.backgroundLightText, ";\n "),
89
- preferred: "\n border: ".concat(euiTheme.border.thin, ";\n "),
90
- forced: "\n background-color: ".concat(euiTheme.colors.fullShade, ";\n border: none;\n ")
91
- }), ";}}&:where([data-variant='selection'][data-display='inverse'] &){*:where(.euiButton, .euiButtonIcon):is([aria-pressed='true']){", (0, _global_styling.euiShadowXSmall)(euiThemeContext), " ", (0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
77
+ }), ";}&:is([aria-pressed='false']){background-color:transparent;}}}&:where([data-variant='selection'][data-display='regular'] &){*:where(.euiButton, .euiButtonIcon):is([aria-pressed='true']){&:not(:is(", _global_styling.euiDisabledSelector, ")){background-color:", euiTheme.colors.backgroundLightText, ";", (0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
78
+ none: "\n background-color: ".concat(euiTheme.colors.backgroundLightText, ";\n "),
79
+ preferred: "\n border: ".concat(euiTheme.border.thin, ";\n "),
80
+ forced: "\n background-color: ".concat(euiTheme.colors.fullShade, ";\n border: none;\n ")
81
+ }), ";}}}&:where([data-variant='selection'][data-display='inverse'] &){*:where(.euiButton, .euiButtonIcon):is([aria-pressed='true']){", (0, _global_styling.euiShadowXSmall)(euiThemeContext), " ", (0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
92
82
  forced: "\n border: none;\n "
93
- }), ";}};label:euiButtonGroup__buttons;"),
83
+ }), ";}*:where(.euiButton, .euiButtonIcon):is(", _global_styling.euiDisabledSelector, "){background-color:transparent;}};label:euiButtonGroup__buttons;"),
94
84
  noWrap: /*#__PURE__*/(0, _react.css)("&:where(", segmentedStyledSelector, " &){flex-wrap:nowrap;", buttonOnlyItemSelector, "{flex:0 1 auto;min-inline-size:0;.euiButton .eui-textTruncate{min-inline-size:0;}}&", hasButtonIconOnlySelector, "{overflow-inline:auto;}};label:noWrap;"),
95
85
  fullWidth: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('width', '100%'), " .euiButtonGroupButton,.euiButtonGroup__tooltipWrapper{flex:1;", (0, _global_styling.logicalCSS)('width', '100%'), ";}&:where([data-variant='default'] &){.euiButton{flex-grow:1;inline-size:auto;}.euiButtonEmpty{flex-shrink:0;}}&:where(", segmentedStyledSelector, " &){&", hasButtonIconOnlySelector, "{inline-size:auto;}&", hasButtonOnlySelector, "{.euiButtonGroup__buttons{inline-size:100%;}", buttonOnlyItemSelector, "{flex-grow:1;}}};label:fullWidth;"),
96
- // Sizes
86
+ // Options API sizes
97
87
  size: {
98
- m: /*#__PURE__*/(0, _react.css)("border-radius:", euiTheme.border.radius.medium, ";", _highContrastStyles(euiThemeContext), ";;label:m;"),
99
- s: /*#__PURE__*/(0, _react.css)("border-radius:", euiTheme.border.radius.small, ";", _highContrastStyles(euiThemeContext), ";;label:s;"),
100
- compressed: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', controlCompressedHeight), " background-color:", backgroundColor, ";border:", euiTheme.border.width.thin, " solid ", borderColor, ";border-radius:", controlCompressedBorderRadius, ";", _highContrastStyles(euiThemeContext, true), ";;label:compressed;")
88
+ m: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', buttonSizeMap.m.height), " --euiButtonGroupButtonInsetSize:", buttonGroupVariables.size.m, ";background-color:", buttonGroupVariables.backgroundColor, ";border-radius:", buttonGroupVariables.radius.outer, ";", _highContrastStyles(euiThemeContext), ";;label:m;"),
89
+ s: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', buttonSizeMap.s.height), " --euiButtonGroupButtonInsetSize:", buttonGroupVariables.size.s, ";background-color:", buttonGroupVariables.backgroundColor, ";border-radius:", buttonGroupVariables.radius.outer, ";", _highContrastStyles(euiThemeContext), ";;label:s;")
101
90
  },
102
91
  gutterSize: {
103
92
  xs: /*#__PURE__*/(0, _react.css)("gap:", euiTheme.size.xs, ";;label:xs;"),
@@ -108,10 +97,10 @@ var euiButtonGroupButtonsStyles = exports.euiButtonGroupButtonsStyles = function
108
97
  }
109
98
  };
110
99
  };
111
- var _highContrastStyles = function _highContrastStyles(euiThemeContext, compressed) {
100
+ var _highContrastStyles = function _highContrastStyles(euiThemeContext) {
112
101
  var euiTheme = euiThemeContext.euiTheme;
113
102
  return (0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
114
- preferred: compressed ? "\n .euiButtonGroupButton {\n border: none;\n }\n " : '',
115
- forced: "\n .euiButtonGroupButton-isSelected {\n ".concat((0, _high_contrast.preventForcedColors)(euiThemeContext), "\n color: ").concat(euiTheme.colors.emptyShade, ";\n background-color: ").concat(euiTheme.colors.fullShade, ";\n\n &:is(:hover, :focus):not(").concat(_global_styling.euiDisabledSelector, ") {\n &::before {\n border-color: ").concat(euiTheme.colors.textInverse, ";\n }\n }\n }\n\n .euiButtonGroupButton:is(").concat(_global_styling.euiDisabledSelector, ") {\n opacity: 0.5;\n }\n ")
103
+ preferred: "\n .euiButtonGroupButton {\n border: none;\n }\n ",
104
+ forced: "\n .euiButtonGroupButton-isSelected {\n ".concat((0, _high_contrast.preventForcedColors)(euiThemeContext), "\n color: ").concat(euiTheme.colors.emptyShade, ";\n background-color: ").concat(euiTheme.colors.fullShade, ";\n\n &:is(:hover, :focus):not(:is(").concat(_global_styling.euiDisabledSelector, ")) {\n &::before {\n border-color: ").concat(euiTheme.colors.textInverse, ";\n }\n }\n }\n\n .euiButtonGroupButton:is(").concat(_global_styling.euiDisabledSelector, ") {\n opacity: 0.5;\n }\n ")
116
105
  });
117
106
  };