@elastic/eui 93.5.2 → 94.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 (464) hide show
  1. package/dist/eui_theme_dark.css +0 -765
  2. package/dist/eui_theme_dark.min.css +1 -1
  3. package/dist/eui_theme_light.css +0 -765
  4. package/dist/eui_theme_light.min.css +1 -1
  5. package/es/components/accessibility/screen_reader_only/screen_reader_only.js +9 -8
  6. package/es/components/accessibility/screen_reader_only/screen_reader_only.styles.js +3 -4
  7. package/es/components/accessibility/skip_link/skip_link.js +2 -3
  8. package/es/components/aspect_ratio/aspect_ratio.js +16 -14
  9. package/es/components/avatar/avatar.js +41 -42
  10. package/es/components/avatar/avatar.styles.js +1 -1
  11. package/es/components/badge/badge.js +4 -4
  12. package/es/components/badge/badge_group/badge_group.js +3 -4
  13. package/es/components/badge/beta_badge/beta_badge.js +2 -3
  14. package/es/components/badge/notification_badge/badge_notification.js +3 -4
  15. package/es/components/basic_table/basic_table.js +117 -131
  16. package/es/components/basic_table/basic_table.styles.js +3 -17
  17. package/es/components/basic_table/expanded_item_actions.js +1 -2
  18. package/es/components/basic_table/in_memory_table.js +57 -76
  19. package/es/components/bottom_bar/bottom_bar.js +8 -18
  20. package/es/components/bottom_bar/bottom_bar.styles.js +3 -2
  21. package/es/components/breadcrumbs/_breadcrumb_content.js +8 -11
  22. package/es/components/breadcrumbs/_breadcrumb_content.styles.js +17 -4
  23. package/es/components/breadcrumbs/breadcrumbs.js +4 -3
  24. package/es/components/button/button_display/_button_display_content.js +28 -30
  25. package/es/components/button/button_group/button_group_button.js +5 -6
  26. package/es/components/button/button_group/button_group_button.styles.js +21 -10
  27. package/es/components/call_out/call_out.js +45 -42
  28. package/es/components/call_out/call_out.styles.js +4 -4
  29. package/es/components/code/code_block_annotations.js +7 -6
  30. package/es/components/code/code_block_annotations.style.js +2 -1
  31. package/es/components/collapsible_nav/collapsible_nav.js +2 -3
  32. package/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +2 -3
  33. package/es/components/collapsible_nav_beta/collapsible_nav_beta.js +4 -4
  34. package/es/components/collapsible_nav_beta/collapsible_nav_body_footer.js +2 -3
  35. package/es/components/collapsible_nav_beta/collapsible_nav_button/collapsible_nav_button.js +2 -3
  36. package/es/components/collapsible_nav_beta/collapsible_nav_group/collapsible_nav_group.js +2 -3
  37. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +3 -4
  38. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +2 -3
  39. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.js +2 -3
  40. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_group.js +2 -3
  41. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +2 -3
  42. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link.js +2 -3
  43. package/es/components/color_picker/color_palette_picker/color_palette_picker.js +1 -0
  44. package/es/components/combo_box/combo_box.js +22 -16
  45. package/es/components/comment_list/comment_event.js +4 -5
  46. package/es/components/context_menu/context_menu.js +6 -7
  47. package/es/components/context_menu/context_menu_item.js +2 -3
  48. package/es/components/context_menu/context_menu_panel.js +5 -5
  49. package/es/components/description_list/description_list.js +14 -16
  50. package/es/components/description_list/description_list_description.js +2 -3
  51. package/es/components/description_list/description_list_title.js +2 -3
  52. package/es/components/empty_prompt/empty_prompt.js +2 -5
  53. package/es/components/flyout/_flyout_close_button.js +45 -0
  54. package/es/components/flyout/_flyout_close_button.styles.js +27 -0
  55. package/es/components/flyout/flyout.js +77 -64
  56. package/es/components/flyout/flyout.styles.js +3 -17
  57. package/es/components/flyout/flyout_body.js +5 -8
  58. package/es/components/flyout/flyout_body.styles.js +2 -1
  59. package/es/components/flyout/flyout_footer.js +3 -5
  60. package/es/components/flyout/flyout_header.js +2 -3
  61. package/es/components/flyout/flyout_resizable.js +2 -3
  62. package/es/components/form/super_select/super_select.js +33 -22
  63. package/es/components/form/super_select/super_select_control.js +39 -5
  64. package/es/components/header/header_breadcrumbs/header_breadcrumbs.js +4 -3
  65. package/es/components/horizontal_rule/horizontal_rule.js +3 -18
  66. package/es/components/loading/loading_chart.js +16 -21
  67. package/es/components/loading/loading_chart.styles.js +28 -10
  68. package/es/components/loading/loading_elastic.js +3 -5
  69. package/es/components/loading/loading_elastic.styles.js +2 -4
  70. package/es/components/loading/loading_logo.js +6 -9
  71. package/es/components/loading/loading_logo.styles.js +1 -6
  72. package/es/components/loading/loading_spinner.js +5 -5
  73. package/es/components/page/page_header/page_header_content.js +1 -1
  74. package/es/components/provider/component_defaults/component_defaults.js +7 -1
  75. package/es/components/resizable_container/resizable_collapse_button.js +1 -2
  76. package/es/components/table/_table_cell_content.js +72 -0
  77. package/es/components/table/_table_cell_content.styles.js +63 -0
  78. package/es/components/table/index.js +0 -1
  79. package/es/components/table/mobile/responsive_context.js +37 -0
  80. package/es/components/table/mobile/table_header_mobile.js +11 -4
  81. package/es/components/table/mobile/table_header_mobile.styles.js +15 -0
  82. package/es/components/table/mobile/table_sort_mobile.js +12 -3
  83. package/es/components/table/table.js +23 -13
  84. package/es/components/table/table.styles.js +102 -0
  85. package/es/components/table/table_cells_shared.styles.js +47 -0
  86. package/es/components/table/table_footer_cell.js +12 -12
  87. package/es/components/table/table_header_cell.js +36 -51
  88. package/es/components/table/table_header_cell_checkbox.js +6 -2
  89. package/es/components/table/table_row.js +18 -6
  90. package/es/components/table/table_row.styles.js +78 -0
  91. package/es/components/table/table_row_cell.js +65 -91
  92. package/es/components/table/table_row_cell.styles.js +89 -0
  93. package/es/components/table/table_row_cell_checkbox.js +7 -0
  94. package/es/components/tabs/tab.js +3 -4
  95. package/es/components/tabs/tabs.js +2 -3
  96. package/eui.d.ts +743 -574
  97. package/i18ntokens.json +122 -140
  98. package/lib/components/accessibility/screen_reader_only/screen_reader_only.js +8 -7
  99. package/lib/components/accessibility/screen_reader_only/screen_reader_only.styles.js +3 -4
  100. package/lib/components/accessibility/skip_link/skip_link.js +1 -2
  101. package/lib/components/aspect_ratio/aspect_ratio.js +18 -14
  102. package/lib/components/avatar/avatar.js +42 -41
  103. package/lib/components/avatar/avatar.styles.js +1 -1
  104. package/lib/components/badge/badge.js +3 -3
  105. package/lib/components/badge/badge_group/badge_group.js +2 -3
  106. package/lib/components/badge/beta_badge/beta_badge.js +1 -2
  107. package/lib/components/badge/notification_badge/badge_notification.js +2 -3
  108. package/lib/components/basic_table/basic_table.js +116 -130
  109. package/lib/components/basic_table/basic_table.styles.js +5 -20
  110. package/lib/components/basic_table/expanded_item_actions.js +1 -2
  111. package/lib/components/basic_table/in_memory_table.js +57 -76
  112. package/lib/components/bottom_bar/bottom_bar.js +10 -20
  113. package/lib/components/bottom_bar/bottom_bar.styles.js +3 -2
  114. package/lib/components/breadcrumbs/_breadcrumb_content.js +8 -11
  115. package/lib/components/breadcrumbs/_breadcrumb_content.styles.js +16 -3
  116. package/lib/components/breadcrumbs/breadcrumbs.js +4 -3
  117. package/lib/components/button/button_display/_button_display_content.js +30 -29
  118. package/lib/components/button/button_group/button_group_button.js +3 -4
  119. package/lib/components/button/button_group/button_group_button.styles.js +22 -12
  120. package/lib/components/call_out/call_out.js +43 -40
  121. package/lib/components/call_out/call_out.styles.js +6 -6
  122. package/lib/components/code/code_block_annotations.js +6 -5
  123. package/lib/components/code/code_block_annotations.style.js +2 -1
  124. package/lib/components/collapsible_nav/collapsible_nav.js +1 -2
  125. package/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -2
  126. package/lib/components/collapsible_nav_beta/collapsible_nav_beta.js +3 -3
  127. package/lib/components/collapsible_nav_beta/collapsible_nav_body_footer.js +1 -2
  128. package/lib/components/collapsible_nav_beta/collapsible_nav_button/collapsible_nav_button.js +1 -2
  129. package/lib/components/collapsible_nav_beta/collapsible_nav_group/collapsible_nav_group.js +1 -2
  130. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +2 -3
  131. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +1 -2
  132. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.js +1 -2
  133. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_group.js +1 -2
  134. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +1 -2
  135. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link.js +1 -2
  136. package/lib/components/color_picker/color_palette_picker/color_palette_picker.js +1 -0
  137. package/lib/components/combo_box/combo_box.js +22 -16
  138. package/lib/components/comment_list/comment_event.js +3 -4
  139. package/lib/components/context_menu/context_menu.js +5 -6
  140. package/lib/components/context_menu/context_menu_item.js +1 -2
  141. package/lib/components/context_menu/context_menu_panel.js +4 -4
  142. package/lib/components/description_list/description_list.js +13 -15
  143. package/lib/components/description_list/description_list_description.js +1 -2
  144. package/lib/components/description_list/description_list_title.js +1 -2
  145. package/lib/components/empty_prompt/empty_prompt.js +1 -4
  146. package/lib/components/flyout/_flyout_close_button.js +52 -0
  147. package/lib/components/flyout/_flyout_close_button.styles.js +34 -0
  148. package/lib/components/flyout/flyout.js +76 -63
  149. package/lib/components/flyout/flyout.styles.js +5 -19
  150. package/lib/components/flyout/flyout_body.js +4 -7
  151. package/lib/components/flyout/flyout_body.styles.js +2 -1
  152. package/lib/components/flyout/flyout_footer.js +2 -4
  153. package/lib/components/flyout/flyout_header.js +1 -2
  154. package/lib/components/flyout/flyout_resizable.js +1 -2
  155. package/lib/components/form/super_select/super_select.js +32 -21
  156. package/lib/components/form/super_select/super_select_control.js +38 -4
  157. package/lib/components/header/header_breadcrumbs/header_breadcrumbs.js +4 -3
  158. package/lib/components/horizontal_rule/horizontal_rule.js +2 -17
  159. package/lib/components/loading/loading_chart.js +14 -19
  160. package/lib/components/loading/loading_chart.styles.js +28 -10
  161. package/lib/components/loading/loading_elastic.js +2 -4
  162. package/lib/components/loading/loading_elastic.styles.js +2 -4
  163. package/lib/components/loading/loading_logo.js +5 -8
  164. package/lib/components/loading/loading_logo.styles.js +3 -9
  165. package/lib/components/loading/loading_spinner.js +5 -5
  166. package/lib/components/page/page_header/page_header_content.js +1 -1
  167. package/lib/components/provider/component_defaults/component_defaults.js +7 -1
  168. package/lib/components/resizable_container/resizable_collapse_button.js +1 -2
  169. package/lib/components/table/_table_cell_content.js +82 -0
  170. package/lib/components/table/_table_cell_content.styles.js +68 -0
  171. package/lib/components/table/index.js +0 -7
  172. package/lib/components/table/mobile/responsive_context.js +47 -0
  173. package/lib/components/table/mobile/table_header_mobile.js +11 -4
  174. package/lib/components/table/mobile/table_header_mobile.styles.js +22 -0
  175. package/lib/components/table/mobile/table_sort_mobile.js +12 -3
  176. package/lib/components/table/table.js +23 -13
  177. package/lib/components/table/table.styles.js +109 -0
  178. package/lib/components/table/table_cells_shared.styles.js +53 -0
  179. package/lib/components/table/table_footer_cell.js +11 -11
  180. package/lib/components/table/table_header_cell.js +36 -51
  181. package/lib/components/table/table_header_cell_checkbox.js +6 -2
  182. package/lib/components/table/table_row.js +17 -5
  183. package/lib/components/table/table_row.styles.js +84 -0
  184. package/lib/components/table/table_row_cell.js +64 -92
  185. package/lib/components/table/table_row_cell.styles.js +94 -0
  186. package/lib/components/table/table_row_cell_checkbox.js +7 -0
  187. package/lib/components/tabs/tab.js +2 -3
  188. package/lib/components/tabs/tabs.js +1 -2
  189. package/optimize/es/components/accessibility/screen_reader_only/screen_reader_only.js +8 -7
  190. package/optimize/es/components/accessibility/screen_reader_only/screen_reader_only.styles.js +3 -4
  191. package/optimize/es/components/accessibility/skip_link/skip_link.js +2 -3
  192. package/optimize/es/components/aspect_ratio/aspect_ratio.js +16 -14
  193. package/optimize/es/components/avatar/avatar.js +39 -40
  194. package/optimize/es/components/avatar/avatar.styles.js +1 -1
  195. package/optimize/es/components/badge/badge.js +4 -4
  196. package/optimize/es/components/badge/badge_group/badge_group.js +3 -4
  197. package/optimize/es/components/badge/beta_badge/beta_badge.js +2 -3
  198. package/optimize/es/components/badge/notification_badge/badge_notification.js +3 -4
  199. package/optimize/es/components/basic_table/basic_table.js +56 -59
  200. package/optimize/es/components/basic_table/basic_table.styles.js +3 -17
  201. package/optimize/es/components/basic_table/expanded_item_actions.js +1 -2
  202. package/optimize/es/components/basic_table/in_memory_table.js +1 -6
  203. package/optimize/es/components/bottom_bar/bottom_bar.js +6 -16
  204. package/optimize/es/components/bottom_bar/bottom_bar.styles.js +3 -2
  205. package/optimize/es/components/breadcrumbs/_breadcrumb_content.js +7 -10
  206. package/optimize/es/components/breadcrumbs/_breadcrumb_content.styles.js +17 -4
  207. package/optimize/es/components/button/button_display/_button_display_content.js +28 -30
  208. package/optimize/es/components/button/button_group/button_group_button.js +5 -6
  209. package/optimize/es/components/button/button_group/button_group_button.styles.js +13 -10
  210. package/optimize/es/components/call_out/call_out.js +45 -42
  211. package/optimize/es/components/call_out/call_out.styles.js +4 -4
  212. package/optimize/es/components/code/code_block_annotations.js +7 -6
  213. package/optimize/es/components/code/code_block_annotations.style.js +2 -1
  214. package/optimize/es/components/collapsible_nav/collapsible_nav.js +2 -3
  215. package/optimize/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +2 -3
  216. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_beta.js +4 -4
  217. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_body_footer.js +2 -3
  218. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_button/collapsible_nav_button.js +2 -3
  219. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_group/collapsible_nav_group.js +2 -3
  220. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +3 -4
  221. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +2 -3
  222. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.js +2 -3
  223. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_group.js +2 -3
  224. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +2 -3
  225. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link.js +2 -3
  226. package/optimize/es/components/combo_box/combo_box.js +22 -16
  227. package/optimize/es/components/comment_list/comment_event.js +4 -5
  228. package/optimize/es/components/context_menu/context_menu.js +6 -7
  229. package/optimize/es/components/context_menu/context_menu_item.js +2 -3
  230. package/optimize/es/components/context_menu/context_menu_panel.js +5 -5
  231. package/optimize/es/components/description_list/description_list.js +14 -16
  232. package/optimize/es/components/description_list/description_list_description.js +2 -3
  233. package/optimize/es/components/description_list/description_list_title.js +2 -3
  234. package/optimize/es/components/empty_prompt/empty_prompt.js +2 -5
  235. package/optimize/es/components/flyout/_flyout_close_button.js +44 -0
  236. package/optimize/es/components/flyout/_flyout_close_button.styles.js +27 -0
  237. package/optimize/es/components/flyout/flyout.js +57 -64
  238. package/optimize/es/components/flyout/flyout.styles.js +3 -17
  239. package/optimize/es/components/flyout/flyout_body.js +5 -8
  240. package/optimize/es/components/flyout/flyout_body.styles.js +2 -1
  241. package/optimize/es/components/flyout/flyout_footer.js +3 -5
  242. package/optimize/es/components/flyout/flyout_header.js +2 -3
  243. package/optimize/es/components/flyout/flyout_resizable.js +2 -3
  244. package/optimize/es/components/form/super_select/super_select.js +32 -22
  245. package/optimize/es/components/form/super_select/super_select_control.js +34 -5
  246. package/optimize/es/components/horizontal_rule/horizontal_rule.js +3 -15
  247. package/optimize/es/components/loading/loading_chart.js +16 -21
  248. package/optimize/es/components/loading/loading_chart.styles.js +28 -10
  249. package/optimize/es/components/loading/loading_elastic.js +3 -5
  250. package/optimize/es/components/loading/loading_elastic.styles.js +2 -4
  251. package/optimize/es/components/loading/loading_logo.js +6 -9
  252. package/optimize/es/components/loading/loading_logo.styles.js +1 -6
  253. package/optimize/es/components/loading/loading_spinner.js +5 -5
  254. package/optimize/es/components/resizable_container/resizable_collapse_button.js +1 -2
  255. package/optimize/es/components/table/_table_cell_content.js +56 -0
  256. package/optimize/es/components/table/_table_cell_content.styles.js +63 -0
  257. package/optimize/es/components/table/index.js +0 -1
  258. package/optimize/es/components/table/mobile/responsive_context.js +37 -0
  259. package/optimize/es/components/table/mobile/table_header_mobile.js +11 -4
  260. package/optimize/es/components/table/mobile/table_header_mobile.styles.js +15 -0
  261. package/optimize/es/components/table/mobile/table_sort_mobile.js +7 -1
  262. package/optimize/es/components/table/table.js +13 -12
  263. package/optimize/es/components/table/table.styles.js +102 -0
  264. package/optimize/es/components/table/table_cells_shared.styles.js +44 -0
  265. package/optimize/es/components/table/table_footer_cell.js +12 -12
  266. package/optimize/es/components/table/table_header_cell.js +35 -37
  267. package/optimize/es/components/table/table_header_cell_checkbox.js +6 -2
  268. package/optimize/es/components/table/table_row.js +10 -2
  269. package/optimize/es/components/table/table_row.styles.js +78 -0
  270. package/optimize/es/components/table/table_row_cell.js +49 -80
  271. package/optimize/es/components/table/table_row_cell.styles.js +89 -0
  272. package/optimize/es/components/table/table_row_cell_checkbox.js +7 -0
  273. package/optimize/es/components/tabs/tab.js +3 -4
  274. package/optimize/es/components/tabs/tabs.js +2 -3
  275. package/optimize/lib/components/accessibility/screen_reader_only/screen_reader_only.js +7 -6
  276. package/optimize/lib/components/accessibility/screen_reader_only/screen_reader_only.styles.js +3 -4
  277. package/optimize/lib/components/accessibility/skip_link/skip_link.js +1 -2
  278. package/optimize/lib/components/aspect_ratio/aspect_ratio.js +19 -14
  279. package/optimize/lib/components/avatar/avatar.js +41 -39
  280. package/optimize/lib/components/avatar/avatar.styles.js +1 -1
  281. package/optimize/lib/components/badge/badge.js +3 -3
  282. package/optimize/lib/components/badge/badge_group/badge_group.js +2 -3
  283. package/optimize/lib/components/badge/beta_badge/beta_badge.js +1 -2
  284. package/optimize/lib/components/badge/notification_badge/badge_notification.js +2 -3
  285. package/optimize/lib/components/basic_table/basic_table.js +55 -58
  286. package/optimize/lib/components/basic_table/basic_table.styles.js +5 -20
  287. package/optimize/lib/components/basic_table/expanded_item_actions.js +1 -2
  288. package/optimize/lib/components/basic_table/in_memory_table.js +1 -6
  289. package/optimize/lib/components/bottom_bar/bottom_bar.js +8 -18
  290. package/optimize/lib/components/bottom_bar/bottom_bar.styles.js +3 -2
  291. package/optimize/lib/components/breadcrumbs/_breadcrumb_content.js +7 -10
  292. package/optimize/lib/components/breadcrumbs/_breadcrumb_content.styles.js +16 -3
  293. package/optimize/lib/components/button/button_display/_button_display_content.js +30 -29
  294. package/optimize/lib/components/button/button_group/button_group_button.js +3 -4
  295. package/optimize/lib/components/button/button_group/button_group_button.styles.js +15 -12
  296. package/optimize/lib/components/call_out/call_out.js +43 -40
  297. package/optimize/lib/components/call_out/call_out.styles.js +6 -6
  298. package/optimize/lib/components/code/code_block_annotations.js +6 -5
  299. package/optimize/lib/components/code/code_block_annotations.style.js +2 -1
  300. package/optimize/lib/components/collapsible_nav/collapsible_nav.js +1 -2
  301. package/optimize/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -2
  302. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_beta.js +3 -3
  303. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_body_footer.js +1 -2
  304. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_button/collapsible_nav_button.js +1 -2
  305. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_group/collapsible_nav_group.js +1 -2
  306. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +2 -3
  307. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +1 -2
  308. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.js +1 -2
  309. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_group.js +1 -2
  310. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +1 -2
  311. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link.js +1 -2
  312. package/optimize/lib/components/combo_box/combo_box.js +22 -16
  313. package/optimize/lib/components/comment_list/comment_event.js +3 -4
  314. package/optimize/lib/components/context_menu/context_menu.js +5 -6
  315. package/optimize/lib/components/context_menu/context_menu_item.js +1 -2
  316. package/optimize/lib/components/context_menu/context_menu_panel.js +4 -4
  317. package/optimize/lib/components/description_list/description_list.js +13 -15
  318. package/optimize/lib/components/description_list/description_list_description.js +1 -2
  319. package/optimize/lib/components/description_list/description_list_title.js +1 -2
  320. package/optimize/lib/components/empty_prompt/empty_prompt.js +1 -4
  321. package/optimize/lib/components/flyout/_flyout_close_button.js +51 -0
  322. package/optimize/lib/components/flyout/_flyout_close_button.styles.js +34 -0
  323. package/optimize/lib/components/flyout/flyout.js +55 -62
  324. package/optimize/lib/components/flyout/flyout.styles.js +5 -19
  325. package/optimize/lib/components/flyout/flyout_body.js +4 -7
  326. package/optimize/lib/components/flyout/flyout_body.styles.js +2 -1
  327. package/optimize/lib/components/flyout/flyout_footer.js +2 -4
  328. package/optimize/lib/components/flyout/flyout_header.js +1 -2
  329. package/optimize/lib/components/flyout/flyout_resizable.js +1 -2
  330. package/optimize/lib/components/form/super_select/super_select.js +31 -21
  331. package/optimize/lib/components/form/super_select/super_select_control.js +33 -4
  332. package/optimize/lib/components/horizontal_rule/horizontal_rule.js +2 -14
  333. package/optimize/lib/components/loading/loading_chart.js +14 -19
  334. package/optimize/lib/components/loading/loading_chart.styles.js +28 -10
  335. package/optimize/lib/components/loading/loading_elastic.js +2 -4
  336. package/optimize/lib/components/loading/loading_elastic.styles.js +2 -4
  337. package/optimize/lib/components/loading/loading_logo.js +5 -8
  338. package/optimize/lib/components/loading/loading_logo.styles.js +3 -9
  339. package/optimize/lib/components/loading/loading_spinner.js +5 -5
  340. package/optimize/lib/components/resizable_container/resizable_collapse_button.js +1 -2
  341. package/optimize/lib/components/table/_table_cell_content.js +66 -0
  342. package/optimize/lib/components/table/_table_cell_content.styles.js +68 -0
  343. package/optimize/lib/components/table/index.js +0 -7
  344. package/optimize/lib/components/table/mobile/responsive_context.js +47 -0
  345. package/optimize/lib/components/table/mobile/table_header_mobile.js +11 -4
  346. package/optimize/lib/components/table/mobile/table_header_mobile.styles.js +22 -0
  347. package/optimize/lib/components/table/mobile/table_sort_mobile.js +7 -1
  348. package/optimize/lib/components/table/table.js +13 -12
  349. package/optimize/lib/components/table/table.styles.js +109 -0
  350. package/optimize/lib/components/table/table_cells_shared.styles.js +51 -0
  351. package/optimize/lib/components/table/table_footer_cell.js +11 -11
  352. package/optimize/lib/components/table/table_header_cell.js +35 -37
  353. package/optimize/lib/components/table/table_header_cell_checkbox.js +6 -2
  354. package/optimize/lib/components/table/table_row.js +9 -1
  355. package/optimize/lib/components/table/table_row.styles.js +85 -0
  356. package/optimize/lib/components/table/table_row_cell.js +48 -82
  357. package/optimize/lib/components/table/table_row_cell.styles.js +94 -0
  358. package/optimize/lib/components/table/table_row_cell_checkbox.js +7 -0
  359. package/optimize/lib/components/tabs/tab.js +2 -3
  360. package/optimize/lib/components/tabs/tabs.js +1 -2
  361. package/package.json +1 -1
  362. package/src/components/index.scss +0 -1
  363. package/test-env/components/accessibility/screen_reader_only/screen_reader_only.js +8 -7
  364. package/test-env/components/accessibility/screen_reader_only/screen_reader_only.styles.js +3 -4
  365. package/test-env/components/accessibility/skip_link/skip_link.js +1 -2
  366. package/test-env/components/aspect_ratio/aspect_ratio.js +19 -14
  367. package/test-env/components/avatar/avatar.js +41 -39
  368. package/test-env/components/avatar/avatar.styles.js +1 -1
  369. package/test-env/components/badge/badge.js +3 -3
  370. package/test-env/components/badge/badge_group/badge_group.js +2 -3
  371. package/test-env/components/badge/beta_badge/beta_badge.js +1 -2
  372. package/test-env/components/badge/notification_badge/badge_notification.js +2 -3
  373. package/test-env/components/basic_table/basic_table.js +112 -129
  374. package/test-env/components/basic_table/basic_table.styles.js +5 -20
  375. package/test-env/components/basic_table/expanded_item_actions.js +1 -2
  376. package/test-env/components/basic_table/in_memory_table.js +57 -76
  377. package/test-env/components/bottom_bar/bottom_bar.js +10 -20
  378. package/test-env/components/bottom_bar/bottom_bar.styles.js +3 -2
  379. package/test-env/components/breadcrumbs/_breadcrumb_content.js +8 -11
  380. package/test-env/components/breadcrumbs/_breadcrumb_content.styles.js +16 -3
  381. package/test-env/components/breadcrumbs/breadcrumbs.js +4 -3
  382. package/test-env/components/button/button_display/_button_display_content.js +30 -29
  383. package/test-env/components/button/button_group/button_group_button.js +3 -4
  384. package/test-env/components/button/button_group/button_group_button.styles.js +15 -12
  385. package/test-env/components/call_out/call_out.js +43 -40
  386. package/test-env/components/call_out/call_out.styles.js +6 -6
  387. package/test-env/components/code/code_block_annotations.js +6 -5
  388. package/test-env/components/code/code_block_annotations.style.js +2 -1
  389. package/test-env/components/collapsible_nav/collapsible_nav.js +1 -2
  390. package/test-env/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -2
  391. package/test-env/components/collapsible_nav_beta/collapsible_nav_beta.js +3 -3
  392. package/test-env/components/collapsible_nav_beta/collapsible_nav_body_footer.js +1 -2
  393. package/test-env/components/collapsible_nav_beta/collapsible_nav_button/collapsible_nav_button.js +1 -2
  394. package/test-env/components/collapsible_nav_beta/collapsible_nav_group/collapsible_nav_group.js +1 -2
  395. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +2 -3
  396. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +1 -2
  397. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.js +1 -2
  398. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_group.js +1 -2
  399. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +1 -2
  400. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link.js +1 -2
  401. package/test-env/components/color_picker/color_palette_picker/color_palette_picker.js +1 -0
  402. package/test-env/components/combo_box/combo_box.js +22 -16
  403. package/test-env/components/comment_list/comment_event.js +3 -4
  404. package/test-env/components/context_menu/context_menu.js +5 -6
  405. package/test-env/components/context_menu/context_menu_item.js +1 -2
  406. package/test-env/components/context_menu/context_menu_panel.js +4 -4
  407. package/test-env/components/description_list/description_list.js +13 -15
  408. package/test-env/components/description_list/description_list_description.js +1 -2
  409. package/test-env/components/description_list/description_list_title.js +1 -2
  410. package/test-env/components/empty_prompt/empty_prompt.js +1 -4
  411. package/test-env/components/flyout/_flyout_close_button.js +51 -0
  412. package/test-env/components/flyout/_flyout_close_button.styles.js +34 -0
  413. package/test-env/components/flyout/flyout.styles.js +5 -19
  414. package/test-env/components/flyout/flyout_body.js +4 -7
  415. package/test-env/components/flyout/flyout_body.styles.js +2 -1
  416. package/test-env/components/flyout/flyout_footer.js +2 -4
  417. package/test-env/components/flyout/flyout_header.js +1 -2
  418. package/test-env/components/flyout/flyout_resizable.js +1 -2
  419. package/test-env/components/form/super_select/super_select.js +32 -21
  420. package/test-env/components/form/super_select/super_select_control.js +33 -4
  421. package/test-env/components/header/header_breadcrumbs/header_breadcrumbs.js +4 -3
  422. package/test-env/components/horizontal_rule/horizontal_rule.js +2 -14
  423. package/test-env/components/loading/loading_chart.js +14 -19
  424. package/test-env/components/loading/loading_chart.styles.js +28 -10
  425. package/test-env/components/loading/loading_elastic.js +2 -4
  426. package/test-env/components/loading/loading_elastic.styles.js +2 -4
  427. package/test-env/components/loading/loading_logo.js +5 -8
  428. package/test-env/components/loading/loading_logo.styles.js +3 -9
  429. package/test-env/components/loading/loading_spinner.js +5 -5
  430. package/test-env/components/page/page_header/page_header_content.js +1 -1
  431. package/test-env/components/provider/component_defaults/component_defaults.js +7 -1
  432. package/test-env/components/resizable_container/resizable_collapse_button.js +1 -2
  433. package/test-env/components/table/_table_cell_content.js +76 -0
  434. package/test-env/components/table/_table_cell_content.styles.js +68 -0
  435. package/test-env/components/table/index.js +0 -7
  436. package/test-env/components/table/mobile/responsive_context.js +47 -0
  437. package/test-env/components/table/mobile/table_header_mobile.js +11 -4
  438. package/test-env/components/table/mobile/table_header_mobile.styles.js +22 -0
  439. package/test-env/components/table/mobile/table_sort_mobile.js +12 -3
  440. package/test-env/components/table/table.js +23 -13
  441. package/test-env/components/table/table.styles.js +109 -0
  442. package/test-env/components/table/table_cells_shared.styles.js +51 -0
  443. package/test-env/components/table/table_footer_cell.js +11 -11
  444. package/test-env/components/table/table_header_cell.js +36 -51
  445. package/test-env/components/table/table_header_cell_checkbox.js +6 -2
  446. package/test-env/components/table/table_row.js +17 -5
  447. package/test-env/components/table/table_row.styles.js +85 -0
  448. package/test-env/components/table/table_row_cell.js +59 -93
  449. package/test-env/components/table/table_row_cell.styles.js +94 -0
  450. package/test-env/components/table/table_row_cell_checkbox.js +7 -0
  451. package/test-env/components/tabs/tab.js +2 -3
  452. package/test-env/components/tabs/tabs.js +1 -2
  453. package/es/components/table/table_header_button.js +0 -52
  454. package/lib/components/table/table_header_button.js +0 -59
  455. package/optimize/es/components/table/table_header_button.js +0 -43
  456. package/optimize/lib/components/table/table_header_button.js +0 -50
  457. package/src/components/table/_index.scss +0 -7
  458. package/src/components/table/_mixins.scss +0 -20
  459. package/src/components/table/_responsive.scss +0 -211
  460. package/src/components/table/_table.scss +0 -241
  461. package/src/components/table/_variables.scss +0 -17
  462. package/src/components/table/mobile/_index.scss +0 -1
  463. package/src/components/table/mobile/_mobile.scss +0 -17
  464. package/test-env/components/table/table_header_button.js +0 -58
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["schema"],
2
2
  _excluded2 = ["onChange"],
3
- _excluded3 = ["columns", "loading", "message", "error", "selection", "isSelectable", "hasActions", "compressed", "pagination", "sorting", "itemIdToExpandedRowMap", "itemId", "rowProps", "cellProps", "tableLayout", "items", "search", "searchFormat", "onTableChange", "executeQueryOptions", "allowNeutralSort", "childrenBetween"];
3
+ _excluded3 = ["columns", "loading", "message", "error", "selection", "compressed", "pagination", "sorting", "itemIdToExpandedRowMap", "itemId", "rowProps", "cellProps", "tableLayout", "items", "search", "searchFormat", "onTableChange", "executeQueryOptions", "allowNeutralSort", "childrenBetween"];
4
4
  function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
5
5
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
6
6
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
@@ -378,8 +378,6 @@ export var EuiInMemoryTable = /*#__PURE__*/function (_Component) {
378
378
  message = _this$props2.message,
379
379
  error = _this$props2.error,
380
380
  selection = _this$props2.selection,
381
- isSelectable = _this$props2.isSelectable,
382
- hasActions = _this$props2.hasActions,
383
381
  compressed = _this$props2.compressed,
384
382
  hasPagination = _this$props2.pagination,
385
383
  hasSorting = _this$props2.sorting,
@@ -436,8 +434,6 @@ export var EuiInMemoryTable = /*#__PURE__*/function (_Component) {
436
434
  pagination: pagination,
437
435
  sorting: sorting,
438
436
  selection: selection,
439
- isSelectable: isSelectable,
440
- hasActions: hasActions,
441
437
  onChange: this.onTableChange,
442
438
  error: error,
443
439
  loading: loading,
@@ -516,7 +512,6 @@ export var EuiInMemoryTable = /*#__PURE__*/function (_Component) {
516
512
  }(Component);
517
513
  _defineProperty(EuiInMemoryTable, "contextType", EuiComponentDefaultsContext);
518
514
  _defineProperty(EuiInMemoryTable, "defaultProps", {
519
- responsive: true,
520
515
  tableLayout: 'fixed',
521
516
  searchFormat: 'eql'
522
517
  });
@@ -587,16 +582,22 @@ EuiInMemoryTable.propTypes = {
587
582
  * Defines whether the user can sort on this column. If a function is provided, this function returns the value to sort against
588
583
  */
589
584
  sortable: PropTypes.oneOfType([PropTypes.bool.isRequired, PropTypes.func.isRequired]),
590
- isExpander: PropTypes.bool,
591
585
  /**
592
- * Creates a text wrapper around cell content that helps word break or truncate
593
- * long text correctly.
586
+ * Disables the user's ability to change the sort, but will still
587
+ * show the current sort direction in the column header
594
588
  */
595
- textOnly: PropTypes.bool,
589
+ readOnly: PropTypes.bool,
596
590
  /**
597
591
  * Defines the horizontal alignment of the column
592
+ * @default left
598
593
  */
599
594
  align: PropTypes.any,
595
+ /**
596
+ * Creates a text wrapper around cell content that helps word break or truncate
597
+ * long text correctly.
598
+ * @default true
599
+ */
600
+ textOnly: PropTypes.bool,
600
601
  /**
601
602
  * Indicates whether this column should truncate overflowing text content.
602
603
  * - Set to `true` to enable single-line truncation.
@@ -606,6 +607,10 @@ EuiInMemoryTable.propTypes = {
606
607
  truncateText: PropTypes.oneOfType([PropTypes.bool.isRequired, PropTypes.shape({
607
608
  lines: PropTypes.number.isRequired
608
609
  }).isRequired]),
610
+ /**
611
+ * Allows configuring custom render options or appearances for column cells
612
+ * when the table responsively collapses into a mobile-friendly view
613
+ */
609
614
  mobileOptions: PropTypes.shape({
610
615
  render: PropTypes.func
611
616
  }),
@@ -618,48 +623,31 @@ EuiInMemoryTable.propTypes = {
618
623
  */
619
624
  footer: PropTypes.oneOfType([PropTypes.string.isRequired, PropTypes.element.isRequired, PropTypes.func.isRequired]),
620
625
  /**
621
- * Disables the user's ability to change the sort but still shows the current direction
626
+ * If passing `itemIdToExpandedRowMap` to your table, set this flag to `true`
627
+ * for the custom column or cell used to toggle the expanded row.
622
628
  */
623
- readOnly: PropTypes.bool,
629
+ isExpander: PropTypes.bool,
624
630
  className: PropTypes.string,
625
631
  "aria-label": PropTypes.string,
626
632
  "data-test-subj": PropTypes.string,
627
633
  css: PropTypes.any
628
634
  }).isRequired, PropTypes.shape({
635
+ className: PropTypes.string,
636
+ "aria-label": PropTypes.string,
637
+ "data-test-subj": PropTypes.string,
638
+ css: PropTypes.any,
629
639
  /**
630
- * A function that computes the value for each item and renders it
631
- */
640
+ * A function that computes the value for each item and renders it
641
+ */
632
642
  render: PropTypes.func.isRequired,
633
643
  /**
634
- * The display name of the column
635
- */
644
+ * The display name of the column
645
+ */
636
646
  name: PropTypes.node,
637
647
  /**
638
- * A description of the column (will be presented as a title over the column header
639
- */
640
- description: PropTypes.string,
641
- /**
642
- * If provided, allows this column to be sorted on. Must return the value to sort against.
643
- */
644
- sortable: PropTypes.func,
645
- /**
646
- * A CSS width property. Hints for the required width of the column
647
- */
648
- width: PropTypes.string,
649
- /**
650
- * Indicates whether this column should truncate its content when it doesn't fit
651
- */
652
- truncateText: PropTypes.bool,
653
- isExpander: PropTypes.bool,
654
- align: PropTypes.any,
655
- /**
656
- * Disables the user's ability to change the sort but still shows the current direction
657
- */
658
- readOnly: PropTypes.bool,
659
- className: PropTypes.string,
660
- "aria-label": PropTypes.string,
661
- "data-test-subj": PropTypes.string,
662
- css: PropTypes.any
648
+ * If provided, allows this column to be sorted on. Must return the value to sort against.
649
+ */
650
+ sortable: PropTypes.func
663
651
  }).isRequired, PropTypes.shape({
664
652
  /**
665
653
  * An array of one of the objects: #DefaultItemAction or #CustomItemAction
@@ -710,8 +698,33 @@ EuiInMemoryTable.propTypes = {
710
698
  * A callback function that determines whether the action is enabled
711
699
  */
712
700
  enabled: PropTypes.func,
713
- isPrimary: PropTypes.bool,
714
701
  "data-test-subj": PropTypes.oneOfType([PropTypes.string.isRequired, PropTypes.func.isRequired]),
702
+ /**
703
+ * If more than 3 actions are passed, 2 primary actions will show (on hover)
704
+ * next to an expansion menu of all actions.
705
+ *
706
+ * On mobile, primary actions will be tucked away in the expansion menu for space.
707
+ */
708
+ /**
709
+ * If more than 3 actions are passed, 2 primary actions will show (on hover)
710
+ * next to an expansion menu of all actions.
711
+ *
712
+ * On mobile, primary actions will be tucked away in the expansion menu for space.
713
+ */
714
+ isPrimary: PropTypes.bool,
715
+ /**
716
+ * Allows only showing the action on mouse hover or keyboard focus.
717
+ * If more than 3 actions are passed, this will always be true for `isPrimary` actions.
718
+ *
719
+ * Has no effect on mobile, or if `hasActions` is not set.
720
+ */
721
+ /**
722
+ * Allows only showing the action on mouse hover or keyboard focus.
723
+ * If more than 3 actions are passed, this will always be true for `isPrimary` actions.
724
+ *
725
+ * Has no effect on mobile, or if `hasActions` is not set.
726
+ */
727
+ showOnHover: PropTypes.bool,
715
728
  /**
716
729
  * Associates an icon with the button
717
730
  */
@@ -728,21 +741,12 @@ EuiInMemoryTable.propTypes = {
728
741
  /**
729
742
  * A callback that defines whether the action is enabled
730
743
  */
731
- enabled: PropTypes.func,
732
- isPrimary: PropTypes.bool
744
+ enabled: PropTypes.func
733
745
  }).isRequired]).isRequired).isRequired,
734
746
  /**
735
747
  * The display name of the column
736
748
  */
737
- name: PropTypes.node,
738
- /**
739
- * A description of the column (will be presented as a title over the column header
740
- */
741
- description: PropTypes.string,
742
- /**
743
- * A CSS width property. Hints for the required width of the column
744
- */
745
- width: PropTypes.string
749
+ name: PropTypes.node
746
750
  }).isRequired]).isRequired),
747
751
  /**
748
752
  * Error message to display
@@ -765,9 +769,6 @@ EuiInMemoryTable.propTypes = {
765
769
  * Indicates which column should be used as the identifying cell in each row. Should match a "field" prop in FieldDataColumn
766
770
  */
767
771
  rowHeader: PropTypes.string,
768
- hasActions: PropTypes.bool,
769
- isExpandable: PropTypes.bool,
770
- isSelectable: PropTypes.bool,
771
772
  /**
772
773
  * Provides an infinite loading indicator
773
774
  */
@@ -775,13 +776,6 @@ EuiInMemoryTable.propTypes = {
775
776
  * Provides an infinite loading indicator
776
777
  */
777
778
  loading: PropTypes.bool,
778
- /**
779
- * If true, will convert table to cards in mobile view
780
- */
781
- /**
782
- * If true, will convert table to cards in mobile view
783
- */
784
- responsive: PropTypes.bool,
785
779
  /**
786
780
  * Applied to `EuiTableRow`
787
781
  */
@@ -831,19 +825,6 @@ EuiInMemoryTable.propTypes = {
831
825
  * Sets the table-layout CSS property. Note that auto tableLayout prevents truncateText from working properly.
832
826
  */
833
827
  tableLayout: PropTypes.oneOf(["fixed", "auto"]),
834
- /**
835
- * Applied to table cells. Any cell using a render function will set this to be false.
836
- *
837
- * Creates a text wrapper around cell content that helps word break or truncate
838
- * long text correctly.
839
- */
840
- /**
841
- * Applied to table cells. Any cell using a render function will set this to be false.
842
- *
843
- * Creates a text wrapper around cell content that helps word break or truncate
844
- * long text correctly.
845
- */
846
- textOnly: PropTypes.bool,
847
828
  message: PropTypes.node,
848
829
  /**
849
830
  * Configures #Search.
@@ -25,21 +25,14 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
25
25
  import classNames from 'classnames';
26
26
  import PropTypes from "prop-types";
27
27
  import React, { forwardRef, useEffect, useState } from 'react';
28
- import { useCombinedRefs, useEuiTheme } from '../../services';
28
+ import { useCombinedRefs, useEuiMemoizedStyles, EuiThemeProvider } from '../../services';
29
29
  import { EuiScreenReaderOnly } from '../accessibility';
30
30
  import { EuiI18n } from '../i18n';
31
31
  import { useResizeObserver } from '../observer/resize_observer';
32
32
  import { EuiPortal } from '../portal';
33
33
  import { euiBottomBarStyles } from './bottom_bar.styles';
34
- import { EuiThemeProvider } from '../../services/theme/provider';
35
34
  import { jsx as ___EmotionJSX } from "@emotion/react";
36
- // Exported for testing
37
- export var paddingSizeToClassNameMap = {
38
- none: null,
39
- s: 'euiBottomBar--paddingSmall',
40
- m: 'euiBottomBar--paddingMedium',
41
- l: 'euiBottomBar--paddingLarge'
42
- };
35
+ export var PADDING_SIZES = ['none', 's', 'm', 'l'];
43
36
  export var POSITIONS = ['static', 'fixed', 'sticky'];
44
37
  var _EuiBottomBar = /*#__PURE__*/forwardRef(function (_ref, ref) {
45
38
  var _ref$position = _ref.position,
@@ -63,8 +56,7 @@ var _EuiBottomBar = /*#__PURE__*/forwardRef(function (_ref, ref) {
63
56
  top = _ref.top,
64
57
  style = _ref.style,
65
58
  rest = _objectWithoutProperties(_ref, _excluded);
66
- var euiTheme = useEuiTheme();
67
- var styles = euiBottomBarStyles(euiTheme);
59
+ var styles = useEuiMemoizedStyles(euiBottomBarStyles);
68
60
 
69
61
  // Force some props if `fixed` position, but not if the user has supplied these
70
62
  affordForDisplacement = position !== 'fixed' ? false : affordForDisplacement;
@@ -92,10 +84,8 @@ var _EuiBottomBar = /*#__PURE__*/forwardRef(function (_ref, ref) {
92
84
  }
93
85
  };
94
86
  }, [affordForDisplacement, usePortal, dimensions, bodyClassName]);
95
- var classes = classNames('euiBottomBar', "euiBottomBar--".concat(position), paddingSizeToClassNameMap[paddingSize], className);
96
- var cssStyles = [styles.euiBottomBar, styles[position], styles[paddingSize], {
97
- position: position
98
- }];
87
+ var classes = classNames('euiBottomBar', "euiBottomBar--".concat(position), className);
88
+ var cssStyles = [styles.euiBottomBar, styles[position], styles[paddingSize]];
99
89
  var newStyle = _objectSpread({
100
90
  left: left,
101
91
  right: right,
@@ -171,7 +161,7 @@ _EuiBottomBar.propTypes = {
171
161
  /**
172
162
  * Padding applied to the bar. Default is 'm'.
173
163
  */
174
- paddingSize: PropTypes.oneOf(["none", "s", "m", "l"]),
164
+ paddingSize: PropTypes.any,
175
165
  /**
176
166
  * Optional class applied to the body element on mount.
177
167
  */
@@ -208,7 +198,7 @@ _EuiBottomBar.propTypes = {
208
198
  export var EuiBottomBar = /*#__PURE__*/forwardRef(function (props, ref) {
209
199
  var BottomBar = _EuiBottomBar;
210
200
  return ___EmotionJSX(EuiThemeProvider, {
211
- colorMode: 'dark',
201
+ colorMode: "dark",
212
202
  wrapperProps: {
213
203
  cloneElement: true
214
204
  }
@@ -245,7 +235,7 @@ EuiBottomBar.propTypes = {
245
235
  /**
246
236
  * Padding applied to the bar. Default is 'm'.
247
237
  */
248
- paddingSize: PropTypes.oneOf(["none", "s", "m", "l"]),
238
+ paddingSize: PropTypes.any,
249
239
  /**
250
240
  * Optional class applied to the body element on mount.
251
241
  */
@@ -20,8 +20,9 @@ export var euiBottomBarStyles = function euiBottomBarStyles(euiThemeContext) {
20
20
  // `color` is inherited from the wrapping `EuiThemeProvider colorMode="dark"`
21
21
  euiBottomBar: /*#__PURE__*/css(euiShadowFlat(euiThemeContext), " background:", shade(euiTheme.colors.lightestShade, 0.5), ";", euiCanAnimate, "{animation:", euiBottomBarAppear, " ", euiTheme.animation.slow, " ", euiTheme.animation.resistance, ";};label:euiBottomBar;"),
22
22
  static: /*#__PURE__*/css(";label:static;"),
23
- fixed: /*#__PURE__*/css("z-index:", Number(euiTheme.levels.header) - 2, ";;label:fixed;"),
24
- sticky: /*#__PURE__*/css("z-index:", Number(euiTheme.levels.header) - 2, ";;label:sticky;"),
23
+ // Default
24
+ fixed: /*#__PURE__*/css("position:fixed;z-index:", Number(euiTheme.levels.header) - 2, ";;label:fixed;"),
25
+ sticky: /*#__PURE__*/css("position:sticky;z-index:", Number(euiTheme.levels.header) - 2, ";;label:sticky;"),
25
26
  // Padding
26
27
  s: /*#__PURE__*/css("padding:", euiTheme.size.s, ";;label:s;"),
27
28
  m: /*#__PURE__*/css("padding:", euiTheme.size.base, ";;label:m;"),
@@ -27,7 +27,6 @@ import PropTypes from "prop-types";
27
27
  import classNames from 'classnames';
28
28
  import { useEuiMemoizedStyles } from '../../services';
29
29
  import { EuiInnerText } from '../inner_text';
30
- import { EuiTextColor } from '../text';
31
30
  import { EuiLink } from '../link';
32
31
  import { EuiPopover } from '../popover';
33
32
  import { EuiIcon } from '../icon';
@@ -51,10 +50,11 @@ export var EuiBreadcrumbContent = function EuiBreadcrumbContent(_ref) {
51
50
  highlightLastBreadcrumb = _ref.highlightLastBreadcrumb,
52
51
  truncateLastBreadcrumb = _ref.truncateLastBreadcrumb,
53
52
  rest = _objectWithoutProperties(_ref, _excluded);
53
+ var isApplication = type === 'application';
54
54
  var classes = classNames('euiBreadcrumb__content', className);
55
55
  var styles = useEuiMemoizedStyles(euiBreadcrumbContentStyles);
56
56
  var cssStyles = [styles.euiBreadcrumb__content, styles[type]];
57
- if (type === 'application') {
57
+ if (isApplication) {
58
58
  if (isOnlyBreadcrumb) {
59
59
  cssStyles.push(styles.applicationStyles.onlyChild);
60
60
  } else if (isFirstBreadcrumb) {
@@ -66,9 +66,9 @@ export var EuiBreadcrumbContent = function EuiBreadcrumbContent(_ref) {
66
66
  var truncationStyles = [truncate && !truncateLastBreadcrumb && styles.isTruncated, truncateLastBreadcrumb && styles.isTruncatedLast];
67
67
  var isBreadcrumbWithPopover = !!popoverContent;
68
68
  var isInteractiveBreadcrumb = href || onClick;
69
- var linkColor = color || (highlightLastBreadcrumb ? 'text' : 'subdued');
70
- var plainTextColor = highlightLastBreadcrumb ? 'default' : 'subdued'; // Does not inherit `color` prop
69
+ var linkColor = color || 'subdued';
71
70
  var ariaCurrent = highlightLastBreadcrumb ? 'page' : undefined;
71
+ var interactionStyles = (isInteractiveBreadcrumb || isBreadcrumbWithPopover) && !isApplication && styles.isInteractive;
72
72
  return ___EmotionJSX(EuiInnerText, null, function (ref, innerText) {
73
73
  var title = innerText === '' ? undefined : innerText;
74
74
  var baseProps = {
@@ -76,13 +76,13 @@ export var EuiBreadcrumbContent = function EuiBreadcrumbContent(_ref) {
76
76
  title: title,
77
77
  'aria-current': ariaCurrent,
78
78
  className: classes,
79
- css: [].concat(cssStyles, truncationStyles)
79
+ css: [].concat(cssStyles, truncationStyles, [interactionStyles])
80
80
  };
81
81
  if (isBreadcrumbWithPopover) {
82
82
  var _ = baseProps.css,
83
83
  popoverButtonProps = _objectWithoutProperties(baseProps, _excluded2);
84
84
  return ___EmotionJSX(EuiBreadcrumbPopover, _extends({}, popoverButtonProps, {
85
- breadcrumbCss: cssStyles,
85
+ breadcrumbCss: [].concat(cssStyles, [interactionStyles]),
86
86
  truncationCss: truncationStyles,
87
87
  isLastBreadcrumb: isLastBreadcrumb,
88
88
  type: type,
@@ -98,10 +98,7 @@ export var EuiBreadcrumbContent = function EuiBreadcrumbContent(_ref) {
98
98
  rel: rel
99
99
  }, rest), text);
100
100
  } else {
101
- return ___EmotionJSX(EuiTextColor, {
102
- color: plainTextColor,
103
- cloneElement: true
104
- }, ___EmotionJSX("span", _extends({}, baseProps, rest), text));
101
+ return ___EmotionJSX("span", _extends({}, baseProps, rest), text);
105
102
  }
106
103
  });
107
104
  };
@@ -122,7 +119,7 @@ EuiBreadcrumbContent.propTypes = {
122
119
  */
123
120
  truncate: PropTypes.bool,
124
121
  /**
125
- * Accepts any EuiLink `color` when rendered as one (has `href`, `onClick`, or `popoverContent`)
122
+ * @deprecated - if a custom color is wanted, use the `css` prop to pass custom css
126
123
  */
127
124
  color: PropTypes.any,
128
125
  /**
@@ -7,24 +7,37 @@
7
7
  */
8
8
 
9
9
  import { css } from '@emotion/react';
10
- import { transparentize } from '../../services/color';
10
+ import { tintOrShade } from '../../services/color';
11
11
  import { euiFontSize, euiTextTruncate, euiFocusRing, logicalCSS, logicalBorderRadiusCSS, mathWithUnits } from '../../global_styling';
12
+ import { euiButtonColor } from '../../themes/amsterdam/global_styling/mixins/button';
12
13
 
13
14
  /**
14
15
  * Styles cast to inner <a>, <button>, <span> elements
15
16
  */
16
17
  export var euiBreadcrumbContentStyles = function euiBreadcrumbContentStyles(euiThemeContext) {
17
- var euiTheme = euiThemeContext.euiTheme;
18
+ var euiTheme = euiThemeContext.euiTheme,
19
+ colorMode = euiThemeContext.colorMode;
20
+
21
+ // Reuse button colors for `type="application`" clickable breadcrumbs
22
+ var applicationButtonColors = euiButtonColor(euiThemeContext, 'primary');
23
+
24
+ // Create custom darker gray colors for non-clickable application breadcrumbs
25
+ // The numbers/ratios are fairly specific here to pass WCAG AA contrast minimums
26
+ var applicationTextColors = {
27
+ backgroundColor: tintOrShade(euiTheme.colors.darkestShade, colorMode === 'DARK' ? 0.7 : 0.85, colorMode),
28
+ color: tintOrShade(euiTheme.colors.darkestShade, 0.2, colorMode)
29
+ };
18
30
  return {
19
- euiBreadcrumb__content: /*#__PURE__*/css("font-weight:", euiTheme.font.weight.medium, ";text-align:center;vertical-align:baseline;;label:euiBreadcrumb__content;"),
31
+ euiBreadcrumb__content: /*#__PURE__*/css("font-weight:", euiTheme.font.weight.regular, ";text-align:center;vertical-align:baseline;&:not(.euiLink){color:", euiTheme.colors.subduedText, ";};label:euiBreadcrumb__content;"),
20
32
  // Truncation styles
21
33
  isTruncated: /*#__PURE__*/css(euiTextTruncate(mathWithUnits(euiTheme.size.base, function (x) {
22
34
  return x * 10;
23
35
  })), ";;label:isTruncated;"),
24
36
  isTruncatedLast: /*#__PURE__*/css(euiTextTruncate('none'), ";;label:isTruncatedLast;"),
37
+ isInteractive: /*#__PURE__*/css("&:not(:disabled){text-decoration:underline;&[class*='euiLink-subdued']{&:hover,&:focus{color:", euiTheme.colors.text, ";}}};label:isInteractive;"),
25
38
  // Types
26
39
  page: /*#__PURE__*/css("&:is(a):focus{", euiFocusRing(euiThemeContext, 'inset'), ";}&:is(button):focus{", euiFocusRing(euiThemeContext, 'center'), ";};label:page;"),
27
- application: /*#__PURE__*/css(euiFontSize(euiThemeContext, 'xs'), " background-color:", transparentize(euiTheme.colors.darkestShade, 0.2), ";clip-path:polygon(\n 0 0,\n calc(100% - ", euiTheme.size.s, ") 0,\n 100% 50%,\n calc(100% - ", euiTheme.size.s, ") 100%,\n 0 100%,\n ", euiTheme.size.s, " 50%\n );color:", euiTheme.colors.darkestShade, ";line-height:", euiTheme.size.base, ";", logicalCSS('padding-vertical', euiTheme.size.xs), " ", logicalCSS('padding-horizontal', euiTheme.size.base), " &:is(a),&:is(button){background-color:", transparentize(euiTheme.colors.primary, 0.2), ";color:", euiTheme.colors.link, ";:focus{", euiFocusRing(euiThemeContext, 'inset'), " :focus-visible{border-radius:", euiTheme.border.radius.medium, ";clip-path:none;}}};label:application;"),
40
+ application: /*#__PURE__*/css(euiFontSize(euiThemeContext, 'xs'), " font-weight:", euiTheme.font.weight.medium, ";background-color:", applicationTextColors.backgroundColor, ";clip-path:polygon(\n 0 0,\n calc(100% - ", euiTheme.size.s, ") 0,\n 100% 50%,\n calc(100% - ", euiTheme.size.s, ") 100%,\n 0 100%,\n ", euiTheme.size.s, " 50%\n );color:", applicationTextColors.color, ";line-height:", euiTheme.size.base, ";", logicalCSS('padding-vertical', euiTheme.size.xs), " ", logicalCSS('padding-horizontal', euiTheme.size.base), " &:is(a),&:is(button){background-color:", applicationButtonColors.backgroundColor, ";color:", applicationButtonColors.color, ";:focus{", euiFocusRing(euiThemeContext, 'inset'), " :focus-visible{border-radius:", euiTheme.border.radius.medium, ";clip-path:none;}}};label:application;"),
28
41
  applicationStyles: {
29
42
  onlyChild: /*#__PURE__*/css("border-radius:", euiTheme.border.radius.medium, ";clip-path:none;", logicalCSS('padding-horizontal', euiTheme.size.m), ";;label:onlyChild;"),
30
43
  firstChild: /*#__PURE__*/css(logicalBorderRadiusCSS("".concat(euiTheme.border.radius.medium, " 0 0 ").concat(euiTheme.border.radius.medium), true), " clip-path:polygon(\n 0 0,\n calc(100% - ", euiTheme.size.s, ") 0,\n 100% 50%,\n calc(100% - ", euiTheme.size.s, ") 100%,\n 0 100%\n );", logicalCSS('padding-left', euiTheme.size.m), ";;label:firstChild;"),
@@ -132,7 +132,7 @@ EuiBreadcrumbs.propTypes = {
132
132
  */
133
133
  truncate: PropTypes.bool,
134
134
  /**
135
- * Accepts any EuiLink `color` when rendered as one (has `href`, `onClick`, or `popoverContent`)
135
+ * @deprecated - if a custom color is wanted, use the `css` prop to pass custom css
136
136
  */
137
137
  color: PropTypes.any,
138
138
  /**
@@ -310,8 +310,9 @@ EuiBreadcrumbs.propTypes = {
310
310
  */
311
311
  type: PropTypes.oneOf(["page", "application"]),
312
312
  /**
313
- * Whether the last breadcrumb should visually (and accessibly, to screen readers)
314
- * be highlighted as the current page. Defaults to true.
313
+ * Whether the last breadcrumb should be semantically highlighted as the
314
+ * current page. (improves accessibility for screen readers users)
315
+ * Defaults to true.
315
316
  */
316
317
  lastBreadcrumbIsCurrentPage: PropTypes.bool
317
318
  };
@@ -10,13 +10,13 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
10
10
  * Side Public License, v 1.
11
11
  */
12
12
 
13
- import React from 'react';
13
+ import React, { useMemo } from 'react';
14
14
  import PropTypes from "prop-types";
15
- import { useEuiTheme } from '../../../services';
15
+ import classNames from 'classnames';
16
+ import { useEuiMemoizedStyles } from '../../../services';
16
17
  import { EuiLoadingSpinner } from '../../loading';
17
18
  import { EuiIcon } from '../../icon';
18
19
  import { euiButtonDisplayContentStyles } from './_button_display_content.styles';
19
- import classNames from 'classnames';
20
20
  import { jsx as ___EmotionJSX } from "@emotion/react";
21
21
  export var ICON_SIZES = ['s', 'm'];
22
22
  export var ICON_SIDES = ['left', 'right'];
@@ -39,39 +39,37 @@ export var EuiButtonDisplayContent = function EuiButtonDisplayContent(_ref) {
39
39
  _ref$iconSide = _ref.iconSide,
40
40
  iconSide = _ref$iconSide === void 0 ? 'left' : _ref$iconSide,
41
41
  contentProps = _objectWithoutProperties(_ref, _excluded);
42
- var theme = useEuiTheme();
43
- var styles = euiButtonDisplayContentStyles(theme);
44
- var cssStyles = [styles.euiButtonDisplayContent];
42
+ var styles = useEuiMemoizedStyles(euiButtonDisplayContentStyles);
45
43
 
46
44
  // Add an icon to the button if one exists.
47
- var icon;
48
-
49
- // When the button is disabled the text gets gray
50
- // and in some buttons the background gets a light gray
51
- // for better contrast we want to change the border of the spinner
52
- // to have the same color of the text. This way we ensure the borders
53
- // are always visible. The default spinner color could be very light.
54
- var loadingSpinnerColor = isDisabled ? {
55
- border: 'currentcolor'
56
- } : undefined;
57
- if (isLoading) {
58
- icon = ___EmotionJSX(EuiLoadingSpinner, {
59
- size: iconSize,
60
- color: loadingSpinnerColor
61
- });
62
- } else if (iconType) {
63
- icon = ___EmotionJSX(EuiIcon, {
64
- type: iconType,
65
- size: iconSize,
66
- color: "inherit" // forces the icon to inherit its parent color
67
- });
68
- }
69
-
45
+ var icon = useMemo(function () {
46
+ if (isLoading) {
47
+ // When the button is disabled the text gets gray
48
+ // and in some buttons the background gets a light gray
49
+ // for better contrast we want to change the border of the spinner
50
+ // to have the same color of the text. This way we ensure the borders
51
+ // are always visible. The default spinner color could be very light.
52
+ var loadingSpinnerColor = isDisabled ? {
53
+ border: 'currentcolor'
54
+ } : undefined;
55
+ return ___EmotionJSX(EuiLoadingSpinner, {
56
+ size: iconSize,
57
+ color: loadingSpinnerColor
58
+ });
59
+ }
60
+ if (iconType) {
61
+ return ___EmotionJSX(EuiIcon, {
62
+ type: iconType,
63
+ size: iconSize,
64
+ color: "inherit" // forces the icon to inherit its parent color
65
+ });
66
+ }
67
+ }, [iconType, iconSize, isLoading, isDisabled]);
70
68
  var isText = typeof children === 'string';
71
69
  var doNotRenderTextWrapper = textProps === false;
72
70
  var renderTextWrapper = (isText || textProps) && !doNotRenderTextWrapper;
73
71
  return ___EmotionJSX("span", _extends({
74
- css: cssStyles
72
+ css: styles.euiButtonDisplayContent
75
73
  }, contentProps), iconSide === 'left' && icon, renderTextWrapper ? ___EmotionJSX("span", _extends({}, textProps, {
76
74
  className: classNames('eui-textTruncate', textProps === null || textProps === void 0 ? void 0 : textProps.className)
77
75
  }), children) : children, iconSide === 'right' && icon);
@@ -25,11 +25,11 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
25
25
  import classNames from 'classnames';
26
26
  import PropTypes from "prop-types";
27
27
  import React from 'react';
28
- import { useEuiTheme } from '../../../services';
28
+ import { useEuiMemoizedStyles } from '../../../services';
29
29
  import { useEuiButtonColorCSS } from '../../../themes/amsterdam/global_styling/mixins/button';
30
30
  import { useInnerText } from '../../inner_text';
31
31
  import { EuiButtonDisplay } from '../button_display/_button_display';
32
- import { euiButtonGroupButtonStyles, _compressedButtonFocusColor, _uncompressedButtonFocus } from './button_group_button.styles';
32
+ import { euiButtonGroupButtonStyles, _compressedButtonFocusColors } from './button_group_button.styles';
33
33
  import { EuiToolTip } from '../../../components/tool_tip';
34
34
  import { jsx as ___EmotionJSX } from "@emotion/react";
35
35
  export var EuiButtonGroupButton = function EuiButtonGroupButton(_ref) {
@@ -51,13 +51,12 @@ export var EuiButtonGroupButton = function EuiButtonGroupButton(_ref) {
51
51
  var color = isDisabled ? 'disabled' : _color;
52
52
  var display = isSelected ? 'fill' : isCompressed ? 'empty' : 'base';
53
53
  var hasToolTip = !!toolTipContent;
54
- var euiTheme = useEuiTheme();
54
+ var styles = useEuiMemoizedStyles(euiButtonGroupButtonStyles);
55
+ var focusColorStyles = useEuiMemoizedStyles(_compressedButtonFocusColors);
55
56
  var buttonColorStyles = useEuiButtonColorCSS({
56
57
  display: display
57
58
  })[color];
58
- var focusColorStyles = isCompressed ? _compressedButtonFocusColor(euiTheme, color) : _uncompressedButtonFocus(euiTheme);
59
- var styles = euiButtonGroupButtonStyles(euiTheme);
60
- var cssStyles = [styles.euiButtonGroupButton, isIconOnly && styles.iconOnly, !isCompressed && (hasToolTip ? styles.uncompressed.hasToolTip : styles.uncompressed[size]), isCompressed ? styles.compressed : styles.uncompressed.uncompressed, isDisabled && isSelected ? styles.disabledAndSelected : buttonColorStyles, !isDisabled && focusColorStyles];
59
+ var cssStyles = [styles.euiButtonGroupButton, isIconOnly && styles.iconOnly, !isCompressed && (hasToolTip ? styles.uncompressed.hasToolTip : styles.uncompressed[size]), isCompressed ? styles.compressed : styles.uncompressed.uncompressed, isDisabled && isSelected ? styles.disabledAndSelected : buttonColorStyles, !isDisabled && isCompressed && focusColorStyles[color]];
61
60
  var tooltipWrapperStyles = [styles.tooltipWrapper, !isCompressed && styles.uncompressed[size]];
62
61
  var contentStyles = [styles.content.euiButtonGroupButton__content, isCompressed && styles.content.compressed];
63
62
  var textStyles = [isIconOnly ? styles.text.euiButtonGroupButton__iconOnly : styles.text.euiButtonGroupButton__text];
@@ -1,3 +1,15 @@
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
7
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
8
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
10
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
11
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
12
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
1
13
  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)."; }
2
14
  /*
3
15
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
@@ -10,7 +22,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
10
22
  import { css } from '@emotion/react';
11
23
  import { makeDisabledContrastColor, transparentize } from '../../../services';
12
24
  import { mathWithUnits, logicalCSS, logicalShorthandCSS, euiTextShift, euiOutline, euiCanAnimate } from '../../../global_styling';
13
- import { euiButtonFillColor } from '../../../themes/amsterdam/global_styling/mixins/button';
25
+ import { euiButtonFillColor, BUTTON_COLORS } from '../../../themes/amsterdam/global_styling/mixins/button';
14
26
  import { euiScreenReaderOnly } from '../../accessibility';
15
27
  import { euiFormVariables } from '../../form/form.styles';
16
28
  var _ref = process.env.NODE_ENV === "production" ? {
@@ -46,7 +58,7 @@ export var euiButtonGroupButtonStyles = function euiButtonGroupButtonStyles(euiT
46
58
  iconOnly: /*#__PURE__*/css("padding-inline:", euiTheme.size.s, ";;label:iconOnly;"),
47
59
  // Sizes
48
60
  uncompressed: {
49
- uncompressed: /*#__PURE__*/css("&:is(.euiButtonGroupButton-isSelected){font-weight:", euiTheme.font.weight.bold, ";};label:uncompressed;"),
61
+ uncompressed: /*#__PURE__*/css("&:is(.euiButtonGroupButton-isSelected){font-weight:", euiTheme.font.weight.bold, ";}&:focus-visible{", euiOutline(euiThemeContext, 'inset', euiTheme.colors.fullShade), ";};label:uncompressed;"),
50
62
  get borders() {
51
63
  var selectors = '.euiButtonGroupButton-isSelected, .euiButtonGroup__tooltipWrapper-isSelected';
52
64
  var selectedColor = transparentize(euiTheme.colors.emptyShade, 0.2);
@@ -86,12 +98,11 @@ export var euiButtonGroupButtonStyles = function euiButtonGroupButtonStyles(euiT
86
98
  }
87
99
  };
88
100
  };
89
- export var _compressedButtonFocusColor = function _compressedButtonFocusColor(euiThemeContext, color) {
90
- var _euiButtonFillColor = euiButtonFillColor(euiThemeContext, color),
91
- backgroundColor = _euiButtonFillColor.backgroundColor;
92
- return /*#__PURE__*/css("&:focus-visible{", euiOutline(euiThemeContext, 'center', backgroundColor), " &:is(.euiButtonGroupButton-isSelected){outline-offset:0;}}");
93
- };
94
- export var _uncompressedButtonFocus = function _uncompressedButtonFocus(euiThemeContext) {
95
- var euiTheme = euiThemeContext.euiTheme;
96
- return /*#__PURE__*/css("&:focus-visible{", euiOutline(euiThemeContext, 'inset', euiTheme.colors.fullShade), ";}");
101
+ export var _compressedButtonFocusColors = function _compressedButtonFocusColors(euiThemeContext) {
102
+ var colors = [].concat(_toConsumableArray(BUTTON_COLORS), ['disabled']);
103
+ return colors.reduce(function (acc, color) {
104
+ var _euiButtonFillColor = euiButtonFillColor(euiThemeContext, color),
105
+ backgroundColor = _euiButtonFillColor.backgroundColor;
106
+ return _objectSpread(_objectSpread({}, acc), {}, _defineProperty({}, color, /*#__PURE__*/css("&:focus-visible{", euiOutline(euiThemeContext, 'center', backgroundColor), " &:is(.euiButtonGroupButton-isSelected){outline-offset:0;}}")));
107
+ }, {});
97
108
  };