@elastic/eui 82.2.1 → 83.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (373) hide show
  1. package/dist/eui_charts_theme.js +1 -1
  2. package/dist/eui_theme_dark.css +48 -182
  3. package/dist/eui_theme_dark.min.css +1 -1
  4. package/dist/eui_theme_light.css +48 -182
  5. package/dist/eui_theme_light.min.css +1 -1
  6. package/es/components/accordion/accordion.js +6 -7
  7. package/es/components/avatar/avatar.js +1 -1
  8. package/es/components/badge/badge.js +4 -5
  9. package/es/components/badge/beta_badge/beta_badge.js +1 -1
  10. package/es/components/basic_table/basic_table.js +1 -1
  11. package/es/components/basic_table/collapsed_item_actions.js +1 -1
  12. package/es/components/basic_table/in_memory_table.js +1 -1
  13. package/es/components/button/button.js +8 -5
  14. package/es/components/button/button_display/_button_display.js +1 -1
  15. package/es/components/button/button_display/_button_display_content.js +1 -1
  16. package/es/components/button/button_empty/button_empty.js +1 -1
  17. package/es/components/button/button_group/button_group.js +1 -1
  18. package/es/components/button/button_group/button_group_button.js +1 -1
  19. package/es/components/button/button_icon/button_icon.js +1 -1
  20. package/es/components/call_out/call_out.js +1 -1
  21. package/es/components/card/card.js +6 -6
  22. package/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
  23. package/es/components/comment_list/comment.js +2 -2
  24. package/es/components/comment_list/comment_event.js +1 -1
  25. package/es/components/comment_list/comment_list.js +2 -2
  26. package/es/components/comment_list/comment_timeline.js +1 -1
  27. package/es/components/datagrid/body/data_grid_body.js +13 -13
  28. package/es/components/datagrid/body/data_grid_body_custom.js +13 -13
  29. package/es/components/datagrid/body/data_grid_body_virtualized.js +13 -13
  30. package/es/components/datagrid/body/data_grid_cell.js +24 -24
  31. package/es/components/datagrid/body/header/data_grid_header_cell.js +12 -12
  32. package/es/components/datagrid/body/header/data_grid_header_row.js +13 -13
  33. package/es/components/datagrid/controls/column_sorting_draggable.js +1 -1
  34. package/es/components/datagrid/data_grid.js +13 -13
  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/empty_prompt/empty_prompt.js +1 -1
  39. package/es/components/expression/expression.js +10 -11
  40. package/es/components/facet/facet_button.js +1 -1
  41. package/es/components/flyout/flyout.js +2 -2
  42. package/es/components/form/field_number/field_number.js +1 -1
  43. package/es/components/form/field_text/field_text.js +2 -2
  44. package/es/components/form/form_control_layout/form_control_layout.js +2 -2
  45. package/es/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
  46. package/es/components/form/form_control_layout/form_control_layout_icons.js +2 -2
  47. package/es/components/header/header.js +8 -2
  48. package/es/components/header/header.styles.js +58 -0
  49. package/es/components/header/header_links/header_link.js +1 -1
  50. package/es/components/header/header_links/header_links.js +1 -1
  51. package/es/components/header/{header_logo.js → header_logo/header_logo.js} +9 -4
  52. package/es/components/header/header_logo/header_logo.styles.js +21 -0
  53. package/es/components/header/header_logo/index.js +9 -0
  54. package/es/components/icon/assets/sparkles.js +34 -0
  55. package/es/components/icon/icon.js +2 -1
  56. package/es/components/icon/icon_glyphs.a11y.js +1 -1
  57. package/es/components/icon/icon_map.js +1 -0
  58. package/es/components/image/image_fullscreen_wrapper.js +4 -4
  59. package/es/components/image/image_wrapper.js +4 -4
  60. package/es/components/inline_edit/inline_edit_form.js +7 -4
  61. package/es/components/inline_edit/inline_edit_form.styles.js +3 -1
  62. package/es/components/inline_edit/inline_edit_text.js +4 -1
  63. package/es/components/inline_edit/inline_edit_title.js +4 -1
  64. package/es/components/key_pad_menu/key_pad_menu.js +6 -4
  65. package/es/components/key_pad_menu/key_pad_menu_item.js +1 -1
  66. package/es/components/list_group/list_group.js +2 -2
  67. package/es/components/list_group/list_group_item.js +5 -6
  68. package/es/components/list_group/list_group_item_extra_action.js +1 -1
  69. package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
  70. package/es/components/loading/loading_logo.js +1 -1
  71. package/es/components/markdown_editor/markdown_editor.js +1 -1
  72. package/es/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
  73. package/es/components/markdown_editor/markdown_editor_footer.js +1 -1
  74. package/es/components/markdown_editor/markdown_editor_toolbar.js +1 -1
  75. package/es/components/notification/notification_event.js +2 -2
  76. package/es/components/notification/notification_event_meta.js +1 -1
  77. package/es/components/page/page_body/page_body.js +18 -9
  78. package/es/components/page/page_header/page_header_content.js +4 -3
  79. package/es/components/page/page_section/page_section.js +1 -1
  80. package/es/components/pagination/pagination.js +6 -9
  81. package/es/components/pagination/pagination.styles.js +4 -3
  82. package/es/components/pagination/pagination_button.js +4 -12
  83. package/es/components/pagination/pagination_button.styles.js +2 -19
  84. package/es/components/pagination/pagination_button_arrow.js +3 -3
  85. package/es/components/progress/progress.js +4 -4
  86. package/es/components/resizable_container/resizable_panel.js +5 -5
  87. package/es/components/selectable/selectable_list/selectable_list.js +1 -1
  88. package/es/components/selectable/selectable_list/selectable_list_item.js +1 -1
  89. package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
  90. package/es/components/suggest/suggest.js +1 -1
  91. package/es/components/suggest/suggest_item.js +1 -1
  92. package/es/components/table/table_header_button.js +1 -1
  93. package/es/components/timeline/timeline_item_icon.js +1 -1
  94. package/es/components/toast/global_toast_list.js +1 -1
  95. package/es/components/toast/toast.js +1 -1
  96. package/es/components/tool_tip/icon_tip.js +1 -1
  97. package/es/global_styling/functions/logicals.json +2 -2
  98. package/es/test/index.d.ts +1 -0
  99. package/es/test/required_props.js +16 -1
  100. package/eui.d.ts +61 -27
  101. package/i18ntokens.json +84 -84
  102. package/lib/components/accordion/accordion.js +6 -7
  103. package/lib/components/avatar/avatar.js +1 -1
  104. package/lib/components/badge/badge.js +4 -5
  105. package/lib/components/badge/beta_badge/beta_badge.js +1 -1
  106. package/lib/components/basic_table/basic_table.js +1 -1
  107. package/lib/components/basic_table/collapsed_item_actions.js +1 -1
  108. package/lib/components/basic_table/in_memory_table.js +1 -1
  109. package/lib/components/button/button.js +8 -5
  110. package/lib/components/button/button_display/_button_display.js +1 -1
  111. package/lib/components/button/button_display/_button_display_content.js +1 -1
  112. package/lib/components/button/button_empty/button_empty.js +1 -1
  113. package/lib/components/button/button_group/button_group.js +1 -1
  114. package/lib/components/button/button_group/button_group_button.js +1 -1
  115. package/lib/components/button/button_icon/button_icon.js +1 -1
  116. package/lib/components/call_out/call_out.js +1 -1
  117. package/lib/components/card/card.js +6 -6
  118. package/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
  119. package/lib/components/comment_list/comment.js +2 -2
  120. package/lib/components/comment_list/comment_event.js +1 -1
  121. package/lib/components/comment_list/comment_list.js +2 -2
  122. package/lib/components/comment_list/comment_timeline.js +1 -1
  123. package/lib/components/datagrid/body/data_grid_body.js +13 -13
  124. package/lib/components/datagrid/body/data_grid_body_custom.js +13 -13
  125. package/lib/components/datagrid/body/data_grid_body_virtualized.js +13 -13
  126. package/lib/components/datagrid/body/data_grid_cell.js +24 -24
  127. package/lib/components/datagrid/body/header/data_grid_header_cell.js +12 -12
  128. package/lib/components/datagrid/body/header/data_grid_header_row.js +13 -13
  129. package/lib/components/datagrid/controls/column_sorting_draggable.js +1 -1
  130. package/lib/components/datagrid/data_grid.js +13 -13
  131. package/lib/components/datagrid/utils/in_memory.js +12 -12
  132. package/lib/components/date_picker/date_picker.js +2 -2
  133. package/lib/components/date_picker/date_picker_range.js +1 -1
  134. package/lib/components/empty_prompt/empty_prompt.js +1 -1
  135. package/lib/components/expression/expression.js +10 -11
  136. package/lib/components/facet/facet_button.js +1 -1
  137. package/lib/components/flyout/flyout.js +2 -2
  138. package/lib/components/form/field_number/field_number.js +1 -1
  139. package/lib/components/form/field_text/field_text.js +2 -2
  140. package/lib/components/form/form_control_layout/form_control_layout.js +2 -2
  141. package/lib/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
  142. package/lib/components/form/form_control_layout/form_control_layout_icons.js +2 -2
  143. package/lib/components/header/header.js +8 -2
  144. package/lib/components/header/header.styles.js +66 -0
  145. package/lib/components/header/header_links/header_link.js +1 -1
  146. package/lib/components/header/header_links/header_links.js +1 -1
  147. package/lib/components/header/{header_logo.js → header_logo/header_logo.js} +9 -4
  148. package/lib/components/header/header_logo/header_logo.styles.js +28 -0
  149. package/lib/components/header/header_logo/index.js +12 -0
  150. package/lib/components/icon/assets/sparkles.js +42 -0
  151. package/lib/components/icon/icon.js +2 -1
  152. package/lib/components/icon/icon_glyphs.a11y.js +1 -1
  153. package/lib/components/icon/icon_map.js +1 -0
  154. package/lib/components/icon/svgs/sparkles.svg +3 -0
  155. package/lib/components/image/image_fullscreen_wrapper.js +4 -4
  156. package/lib/components/image/image_wrapper.js +4 -4
  157. package/lib/components/inline_edit/inline_edit_form.js +7 -4
  158. package/lib/components/inline_edit/inline_edit_form.styles.js +3 -1
  159. package/lib/components/inline_edit/inline_edit_text.js +4 -1
  160. package/lib/components/inline_edit/inline_edit_title.js +4 -1
  161. package/lib/components/key_pad_menu/key_pad_menu.js +6 -4
  162. package/lib/components/key_pad_menu/key_pad_menu_item.js +1 -1
  163. package/lib/components/list_group/list_group.js +2 -2
  164. package/lib/components/list_group/list_group_item.js +5 -6
  165. package/lib/components/list_group/list_group_item_extra_action.js +1 -1
  166. package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
  167. package/lib/components/loading/loading_logo.js +1 -1
  168. package/lib/components/markdown_editor/markdown_editor.js +1 -1
  169. package/lib/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
  170. package/lib/components/markdown_editor/markdown_editor_footer.js +1 -1
  171. package/lib/components/markdown_editor/markdown_editor_toolbar.js +1 -1
  172. package/lib/components/notification/notification_event.js +2 -2
  173. package/lib/components/notification/notification_event_meta.js +1 -1
  174. package/lib/components/page/page_body/page_body.js +18 -9
  175. package/lib/components/page/page_header/page_header_content.js +4 -3
  176. package/lib/components/page/page_section/page_section.js +1 -1
  177. package/lib/components/pagination/pagination.js +6 -9
  178. package/lib/components/pagination/pagination.styles.js +3 -2
  179. package/lib/components/pagination/pagination_button.js +3 -11
  180. package/lib/components/pagination/pagination_button.styles.js +4 -22
  181. package/lib/components/pagination/pagination_button_arrow.js +2 -2
  182. package/lib/components/progress/progress.js +4 -4
  183. package/lib/components/resizable_container/resizable_panel.js +5 -5
  184. package/lib/components/selectable/selectable_list/selectable_list.js +1 -1
  185. package/lib/components/selectable/selectable_list/selectable_list_item.js +1 -1
  186. package/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
  187. package/lib/components/suggest/suggest.js +1 -1
  188. package/lib/components/suggest/suggest_item.js +1 -1
  189. package/lib/components/table/table_header_button.js +1 -1
  190. package/lib/components/timeline/timeline_item_icon.js +1 -1
  191. package/lib/components/toast/global_toast_list.js +1 -1
  192. package/lib/components/toast/toast.js +1 -1
  193. package/lib/components/tool_tip/icon_tip.js +1 -1
  194. package/lib/global_styling/functions/logicals.json +2 -2
  195. package/lib/test/index.d.ts +1 -0
  196. package/lib/test/required_props.js +20 -8
  197. package/optimize/es/components/accordion/accordion.js +6 -7
  198. package/optimize/es/components/badge/badge.js +3 -4
  199. package/optimize/es/components/button/button.js +8 -5
  200. package/optimize/es/components/card/card.js +5 -5
  201. package/optimize/es/components/expression/expression.js +10 -11
  202. package/optimize/es/components/flyout/flyout.js +2 -2
  203. package/optimize/es/components/header/header.js +8 -2
  204. package/optimize/es/components/header/header.styles.js +58 -0
  205. package/optimize/es/components/header/{header_logo.js → header_logo/header_logo.js} +8 -3
  206. package/optimize/es/components/header/header_logo/header_logo.styles.js +21 -0
  207. package/optimize/es/components/header/header_logo/index.js +9 -0
  208. package/optimize/es/components/icon/assets/sparkles.js +33 -0
  209. package/optimize/es/components/icon/icon.js +1 -0
  210. package/optimize/es/components/icon/icon_glyphs.a11y.js +1 -1
  211. package/optimize/es/components/icon/icon_map.js +1 -0
  212. package/optimize/es/components/image/image_fullscreen_wrapper.js +4 -4
  213. package/optimize/es/components/image/image_wrapper.js +4 -4
  214. package/optimize/es/components/inline_edit/inline_edit_form.js +6 -4
  215. package/optimize/es/components/inline_edit/inline_edit_form.styles.js +3 -1
  216. package/optimize/es/components/inline_edit/inline_edit_text.js +3 -1
  217. package/optimize/es/components/inline_edit/inline_edit_title.js +3 -1
  218. package/optimize/es/components/key_pad_menu/key_pad_menu.js +6 -4
  219. package/optimize/es/components/list_group/list_group_item.js +3 -4
  220. package/optimize/es/components/page/page_body/page_body.js +18 -9
  221. package/optimize/es/components/page/page_header/page_header_content.js +3 -2
  222. package/optimize/es/components/page/page_section/page_section.js +1 -1
  223. package/optimize/es/components/pagination/pagination.js +6 -9
  224. package/optimize/es/components/pagination/pagination.styles.js +4 -3
  225. package/optimize/es/components/pagination/pagination_button.js +3 -4
  226. package/optimize/es/components/pagination/pagination_button.styles.js +2 -19
  227. package/optimize/es/components/pagination/pagination_button_arrow.js +3 -3
  228. package/optimize/es/components/progress/progress.js +4 -4
  229. package/optimize/es/components/resizable_container/resizable_panel.js +5 -5
  230. package/optimize/es/global_styling/functions/logicals.json +2 -2
  231. package/optimize/es/test/index.d.ts +1 -0
  232. package/optimize/es/test/required_props.js +16 -1
  233. package/optimize/lib/components/accordion/accordion.js +6 -7
  234. package/optimize/lib/components/badge/badge.js +3 -4
  235. package/optimize/lib/components/button/button.js +8 -5
  236. package/optimize/lib/components/card/card.js +5 -5
  237. package/optimize/lib/components/expression/expression.js +10 -11
  238. package/optimize/lib/components/flyout/flyout.js +2 -2
  239. package/optimize/lib/components/header/header.js +8 -2
  240. package/optimize/lib/components/header/header.styles.js +66 -0
  241. package/optimize/lib/components/header/{header_logo.js → header_logo/header_logo.js} +8 -3
  242. package/optimize/lib/components/header/header_logo/header_logo.styles.js +28 -0
  243. package/optimize/lib/components/header/header_logo/index.js +12 -0
  244. package/optimize/lib/components/icon/assets/sparkles.js +42 -0
  245. package/optimize/lib/components/icon/icon.js +1 -0
  246. package/optimize/lib/components/icon/icon_glyphs.a11y.js +1 -1
  247. package/optimize/lib/components/icon/icon_map.js +1 -0
  248. package/optimize/lib/components/icon/svgs/sparkles.svg +3 -0
  249. package/optimize/lib/components/image/image_fullscreen_wrapper.js +4 -4
  250. package/optimize/lib/components/image/image_wrapper.js +4 -4
  251. package/optimize/lib/components/inline_edit/inline_edit_form.js +6 -4
  252. package/optimize/lib/components/inline_edit/inline_edit_form.styles.js +3 -1
  253. package/optimize/lib/components/inline_edit/inline_edit_text.js +3 -1
  254. package/optimize/lib/components/inline_edit/inline_edit_title.js +3 -1
  255. package/optimize/lib/components/key_pad_menu/key_pad_menu.js +6 -4
  256. package/optimize/lib/components/list_group/list_group_item.js +3 -4
  257. package/optimize/lib/components/page/page_body/page_body.js +18 -9
  258. package/optimize/lib/components/page/page_header/page_header_content.js +3 -2
  259. package/optimize/lib/components/page/page_section/page_section.js +1 -1
  260. package/optimize/lib/components/pagination/pagination.js +6 -9
  261. package/optimize/lib/components/pagination/pagination.styles.js +3 -2
  262. package/optimize/lib/components/pagination/pagination_button.js +3 -4
  263. package/optimize/lib/components/pagination/pagination_button.styles.js +4 -22
  264. package/optimize/lib/components/pagination/pagination_button_arrow.js +2 -2
  265. package/optimize/lib/components/progress/progress.js +4 -4
  266. package/optimize/lib/components/resizable_container/resizable_panel.js +5 -5
  267. package/optimize/lib/global_styling/functions/logicals.json +2 -2
  268. package/optimize/lib/test/index.d.ts +1 -0
  269. package/optimize/lib/test/required_props.js +20 -8
  270. package/package.json +3 -5
  271. package/src/components/datagrid/_data_grid_data_row.scss +27 -0
  272. package/src/components/header/_index.scss +0 -6
  273. package/src/components/selectable/selectable_templates/_index.scss +0 -1
  274. package/src/global_styling/variables/_header.scss +2 -5
  275. package/src/themes/amsterdam/global_styling/variables/_index.scss +0 -1
  276. package/src/themes/amsterdam/overrides/_header.scss +0 -24
  277. package/test-env/components/accordion/accordion.js +6 -7
  278. package/test-env/components/avatar/avatar.js +1 -1
  279. package/test-env/components/badge/badge.js +4 -5
  280. package/test-env/components/badge/beta_badge/beta_badge.js +1 -1
  281. package/test-env/components/basic_table/basic_table.js +1 -1
  282. package/test-env/components/basic_table/collapsed_item_actions.js +1 -1
  283. package/test-env/components/basic_table/in_memory_table.js +1 -1
  284. package/test-env/components/button/button.js +8 -5
  285. package/test-env/components/button/button_display/_button_display.js +1 -1
  286. package/test-env/components/button/button_display/_button_display_content.js +1 -1
  287. package/test-env/components/button/button_empty/button_empty.js +1 -1
  288. package/test-env/components/button/button_group/button_group.js +1 -1
  289. package/test-env/components/button/button_group/button_group_button.js +1 -1
  290. package/test-env/components/button/button_icon/button_icon.js +1 -1
  291. package/test-env/components/call_out/call_out.js +1 -1
  292. package/test-env/components/card/card.js +6 -6
  293. package/test-env/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
  294. package/test-env/components/comment_list/comment.js +2 -2
  295. package/test-env/components/comment_list/comment_event.js +1 -1
  296. package/test-env/components/comment_list/comment_list.js +2 -2
  297. package/test-env/components/comment_list/comment_timeline.js +1 -1
  298. package/test-env/components/datagrid/body/data_grid_body.js +13 -13
  299. package/test-env/components/datagrid/body/data_grid_body_custom.js +13 -13
  300. package/test-env/components/datagrid/body/data_grid_body_virtualized.js +13 -13
  301. package/test-env/components/datagrid/body/data_grid_cell.js +24 -24
  302. package/test-env/components/datagrid/body/header/data_grid_header_cell.js +12 -12
  303. package/test-env/components/datagrid/body/header/data_grid_header_row.js +13 -13
  304. package/test-env/components/datagrid/controls/column_sorting_draggable.js +1 -1
  305. package/test-env/components/datagrid/data_grid.js +13 -13
  306. package/test-env/components/datagrid/utils/in_memory.js +12 -12
  307. package/test-env/components/date_picker/date_picker.js +2 -2
  308. package/test-env/components/date_picker/date_picker_range.js +1 -1
  309. package/test-env/components/empty_prompt/empty_prompt.js +1 -1
  310. package/test-env/components/expression/expression.js +10 -11
  311. package/test-env/components/facet/facet_button.js +1 -1
  312. package/test-env/components/form/field_number/field_number.js +1 -1
  313. package/test-env/components/form/field_text/field_text.js +2 -2
  314. package/test-env/components/form/form_control_layout/form_control_layout.js +2 -2
  315. package/test-env/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
  316. package/test-env/components/form/form_control_layout/form_control_layout_icons.js +2 -2
  317. package/test-env/components/header/header.js +8 -2
  318. package/test-env/components/header/header.styles.js +66 -0
  319. package/test-env/components/header/header_links/header_link.js +1 -1
  320. package/test-env/components/header/header_links/header_links.js +1 -1
  321. package/test-env/components/header/{header_logo.js → header_logo/header_logo.js} +9 -4
  322. package/test-env/components/header/header_logo/header_logo.styles.js +28 -0
  323. package/test-env/components/header/header_logo/index.js +12 -0
  324. package/test-env/components/icon/assets/sparkles.js +42 -0
  325. package/test-env/components/icon/icon_glyphs.a11y.js +1 -1
  326. package/test-env/components/icon/icon_map.js +1 -0
  327. package/test-env/components/image/image_fullscreen_wrapper.js +4 -4
  328. package/test-env/components/image/image_wrapper.js +4 -4
  329. package/test-env/components/inline_edit/inline_edit_form.js +7 -4
  330. package/test-env/components/inline_edit/inline_edit_form.styles.js +3 -1
  331. package/test-env/components/inline_edit/inline_edit_text.js +4 -1
  332. package/test-env/components/inline_edit/inline_edit_title.js +4 -1
  333. package/test-env/components/key_pad_menu/key_pad_menu.js +6 -4
  334. package/test-env/components/key_pad_menu/key_pad_menu_item.js +1 -1
  335. package/test-env/components/list_group/list_group.js +2 -2
  336. package/test-env/components/list_group/list_group_item.js +5 -6
  337. package/test-env/components/list_group/list_group_item_extra_action.js +1 -1
  338. package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
  339. package/test-env/components/loading/loading_logo.js +1 -1
  340. package/test-env/components/markdown_editor/markdown_editor.js +1 -1
  341. package/test-env/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
  342. package/test-env/components/markdown_editor/markdown_editor_footer.js +1 -1
  343. package/test-env/components/markdown_editor/markdown_editor_toolbar.js +1 -1
  344. package/test-env/components/notification/notification_event.js +2 -2
  345. package/test-env/components/notification/notification_event_meta.js +1 -1
  346. package/test-env/components/page/page_body/page_body.js +18 -9
  347. package/test-env/components/page/page_header/page_header_content.js +4 -3
  348. package/test-env/components/page/page_section/page_section.js +1 -1
  349. package/test-env/components/pagination/pagination.js +6 -9
  350. package/test-env/components/pagination/pagination.styles.js +3 -2
  351. package/test-env/components/pagination/pagination_button.js +3 -11
  352. package/test-env/components/pagination/pagination_button.styles.js +4 -22
  353. package/test-env/components/pagination/pagination_button_arrow.js +2 -2
  354. package/test-env/components/progress/progress.js +4 -4
  355. package/test-env/components/resizable_container/resizable_panel.js +5 -5
  356. package/test-env/components/selectable/selectable_list/selectable_list.js +1 -1
  357. package/test-env/components/selectable/selectable_list/selectable_list_item.js +1 -1
  358. package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
  359. package/test-env/components/suggest/suggest.js +1 -1
  360. package/test-env/components/suggest/suggest_item.js +1 -1
  361. package/test-env/components/table/table_header_button.js +1 -1
  362. package/test-env/components/timeline/timeline_item_icon.js +1 -1
  363. package/test-env/components/toast/global_toast_list.js +1 -1
  364. package/test-env/components/toast/toast.js +1 -1
  365. package/test-env/components/tool_tip/icon_tip.js +1 -1
  366. package/test-env/global_styling/functions/logicals.json +2 -2
  367. package/test-env/test/required_props.js +20 -8
  368. package/src/components/header/_header.scss +0 -29
  369. package/src/components/header/_header_logo.scss +0 -40
  370. package/src/components/header/_header_profile.scss +0 -3
  371. package/src/components/header/_mixins.scss +0 -36
  372. package/src/components/selectable/selectable_templates/_selectable_template_sitewide.scss +0 -31
  373. package/src/themes/amsterdam/global_styling/variables/_header.scss +0 -7
@@ -21,7 +21,6 @@ import { EuiPaginationButtonArrow } from './pagination_button_arrow';
21
21
  import { useIsWithinBreakpoints, useEuiTheme } from '../../services';
22
22
  import { EuiScreenReaderOnly } from '../accessibility';
23
23
  import { euiPaginationStyles } from './pagination.styles';
24
- import { euiPaginationButtonStyles } from './pagination_button.styles';
25
24
  import { jsx as ___EmotionJSX } from "@emotion/react";
26
25
  var MAX_VISIBLE_PAGES = 5;
27
26
  var NUMBER_SURROUNDING_PAGES = Math.floor(MAX_VISIBLE_PAGES * 0.5);
@@ -40,9 +39,7 @@ export var EuiPagination = function EuiPagination(_ref) {
40
39
  rest = _objectWithoutProperties(_ref, _excluded);
41
40
  var isResponsive = useIsWithinBreakpoints(responsive, !!responsive);
42
41
  var euiTheme = useEuiTheme();
43
- var paginationStyles = euiPaginationStyles(euiTheme);
44
- var _euiPaginationButtonS = euiPaginationButtonStyles(euiTheme),
45
- isPlaceholder = _euiPaginationButtonS.isPlaceholder;
42
+ var styles = euiPaginationStyles(euiTheme);
46
43
 
47
44
  // Force to `compressed` version if specified or within the responsive breakpoints
48
45
  var compressed = _compressed || isResponsive;
@@ -100,7 +97,7 @@ export var EuiPagination = function EuiPagination(_ref) {
100
97
  if (compressed) {
101
98
  centerPageCount = ___EmotionJSX(EuiText, {
102
99
  size: "s",
103
- css: paginationStyles.euiPagination__compressedText,
100
+ css: styles.euiPagination__compressedText,
104
101
  className: "euiPagination__compressedText"
105
102
  }, ___EmotionJSX(EuiI18n, {
106
103
  token: "euiPagination.pageOfTotalCompressed",
@@ -138,7 +135,7 @@ export var EuiPagination = function EuiPagination(_ref) {
138
135
  return ___EmotionJSX("li", {
139
136
  "aria-label": firstRangeAriaLabel,
140
137
  className: "euiPagination__item",
141
- css: isPlaceholder
138
+ css: styles.euiPagination__ellipsis
142
139
  }, "\u2026");
143
140
  }));
144
141
  } else if (firstPageInRange === 2) {
@@ -168,7 +165,7 @@ export var EuiPagination = function EuiPagination(_ref) {
168
165
  return ___EmotionJSX("li", {
169
166
  "aria-label": lastRangeAriaLabel,
170
167
  className: "euiPagination__item",
171
- css: isPlaceholder
168
+ css: styles.euiPagination__ellipsis
172
169
  }, "\u2026");
173
170
  }));
174
171
  }
@@ -185,7 +182,7 @@ export var EuiPagination = function EuiPagination(_ref) {
185
182
  });
186
183
  centerPageCount = ___EmotionJSX("ul", _extends({
187
184
  className: "euiPagination__list",
188
- css: paginationStyles.euiPagination__list
185
+ css: styles.euiPagination__list
189
186
  }, accessibleName), firstPageButtons, selectablePages, lastPageButtons);
190
187
  }
191
188
  }
@@ -211,7 +208,7 @@ export var EuiPagination = function EuiPagination(_ref) {
211
208
  // Create the whole string with total pageCount or `collection`
212
209
  var accessiblePageCount = "".concat(accessiblePageString(), " ").concat(ofLabel, " ").concat(accessibleCollectionString);
213
210
  return ___EmotionJSX("nav", _extends({
214
- css: [paginationStyles.euiPagination, ";label:EuiPagination;"],
211
+ css: styles.euiPagination,
215
212
  className: classes
216
213
  }, rest), ___EmotionJSX(EuiScreenReaderOnly, null, ___EmotionJSX("span", {
217
214
  "aria-atomic": "true",
@@ -8,7 +8,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
8
8
  */
9
9
 
10
10
  import { css } from '@emotion/react';
11
- import { logicalCSS, logicalCSSWithFallback, euiScrollBarStyles } from '../../global_styling';
11
+ import { logicalCSS, logicalCSSWithFallback, euiScrollBarStyles, euiFontSize } from '../../global_styling';
12
12
  var _ref = process.env.NODE_ENV === "production" ? {
13
13
  name: "1dbd2rc-euiPagination__list",
14
14
  styles: "display:flex;align-items:baseline;label:euiPagination__list;"
@@ -23,7 +23,8 @@ export var euiPaginationStyles = function euiPaginationStyles(euiThemeContext) {
23
23
  // Base
24
24
  euiPagination: /*#__PURE__*/css(euiScrollBarStyles(euiThemeContext), " display:flex;align-items:center;", logicalCSSWithFallback('overflow-y', 'hidden'), " ", logicalCSSWithFallback('overflow-x', 'auto'), ";;label:euiPagination;"),
25
25
  // Elements
26
- euiPagination__compressedText: /*#__PURE__*/css("display:inline-flex;align-items:center;line-height:1!important;>span{", logicalCSS('margin-horizontal', euiTheme.size.s), " font-weight:", euiTheme.font.weight.semiBold, ";&:first-of-type{color:", euiTheme.colors.primaryText, ";}};label:euiPagination__compressedText;"),
27
- euiPagination__list: _ref
26
+ euiPagination__compressedText: /*#__PURE__*/css("display:inline-flex;align-items:center;line-height:1;>span{", logicalCSS('margin-horizontal', euiTheme.size.s), " font-weight:", euiTheme.font.weight.semiBold, ";&:first-of-type{color:", euiTheme.colors.primaryText, ";}};label:euiPagination__compressedText;"),
27
+ euiPagination__list: _ref,
28
+ euiPagination__ellipsis: /*#__PURE__*/css("color:", euiTheme.colors.disabledText, ";font-size:", euiFontSize(euiThemeContext, 's').fontSize, ";", logicalCSS('padding-horizontal', euiTheme.size.s), " ", logicalCSS('height', euiTheme.size.l), ";;label:euiPagination__ellipsis;")
28
29
  };
29
30
  };
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
- var _excluded = ["className", "isActive", "isPlaceholder", "pageIndex", "totalPages"];
4
+ var _excluded = ["className", "isActive", "pageIndex", "totalPages"];
5
5
  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; }
6
6
  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; }
7
7
  /*
@@ -22,13 +22,12 @@ import { jsx as ___EmotionJSX } from "@emotion/react";
22
22
  export var EuiPaginationButton = function EuiPaginationButton(_ref) {
23
23
  var className = _ref.className,
24
24
  isActive = _ref.isActive,
25
- isPlaceholder = _ref.isPlaceholder,
26
25
  pageIndex = _ref.pageIndex,
27
26
  totalPages = _ref.totalPages,
28
27
  rest = _objectWithoutProperties(_ref, _excluded);
29
28
  var euiTheme = useEuiTheme();
30
29
  var styles = euiPaginationButtonStyles(euiTheme);
31
- var paginationButtonCss = [styles.euiPaginationButton, isActive && styles.isActive, isPlaceholder && styles.isPlaceholder];
30
+ var paginationButtonCss = [styles.euiPaginationButton, isActive && styles.isActive];
32
31
  var classes = classNames('euiPaginationButton', className);
33
32
  var props = _objectSpread(_objectSpread(_objectSpread({
34
33
  css: paginationButtonCss,
@@ -36,7 +35,7 @@ export var EuiPaginationButton = function EuiPaginationButton(_ref) {
36
35
  size: 's',
37
36
  color: 'text',
38
37
  'data-test-subj': "pagination-button-".concat(pageIndex),
39
- isDisabled: isPlaceholder || isActive
38
+ isDisabled: isActive
40
39
  }, isActive && {
41
40
  'aria-current': true
42
41
  }), rest['aria-controls'] && {
@@ -7,29 +7,12 @@
7
7
  */
8
8
 
9
9
  import { css } from '@emotion/react';
10
- import { logicalCSS, logicalTextAlignCSS, mathWithUnits, euiFontSize } from '../../global_styling';
11
- import { euiButtonEmptyColor } from '../../themes/amsterdam/global_styling/mixins';
12
10
  export var euiPaginationButtonStyles = function euiPaginationButtonStyles(euiThemeContext) {
13
11
  var euiTheme = euiThemeContext.euiTheme;
14
- var fontSizeS = euiFontSize(euiThemeContext, 's');
15
- var halfSizeM = mathWithUnits(euiTheme.size.m, function (x) {
16
- return x / 2;
17
- });
18
- var disabled = euiButtonEmptyColor(euiThemeContext, 'disabled');
19
-
20
- // && to increase specificity. Can likely be removed once EuiButtonEmpty has been converted.
21
-
22
12
  return {
23
13
  // Base
24
- euiPaginationButton: /*#__PURE__*/css("&&{", fontSizeS, " padding:0;", logicalTextAlignCSS('center'), " border-radius:", euiTheme.border.radius.medium, ";outline-offset:-", euiTheme.focus.width, ";};label:euiPaginationButton;"),
14
+ euiPaginationButton: /*#__PURE__*/css("outline-offset:-", euiTheme.focus.width, ";;label:euiPaginationButton;"),
25
15
  // States
26
- isActive: /*#__PURE__*/css("&&{font-weight:", euiTheme.font.weight.bold, ";color:", euiTheme.colors.primary, ";.euiButtonEmpty__content{cursor:default;}&&,&&:hover{text-decoration:underline;}};label:isActive;"),
27
- isPlaceholder: /*#__PURE__*/css("&&{align-items:baseline;color:", disabled.color, ";", fontSizeS, " ", logicalCSS('padding-top', halfSizeM), " ", logicalCSS('padding-bottom', 0), " ", logicalCSS('padding-horizontal', euiTheme.size.s), " ", logicalCSS('height', euiTheme.size.l), ";};label:isPlaceholder;")
28
- };
29
- };
30
- export var euiPaginationButtonArrowStyles = function euiPaginationButtonArrowStyles(_ref) {
31
- var euiTheme = _ref.euiTheme;
32
- return {
33
- euiPaginationArrowButton: /*#__PURE__*/css("outline-offset:-", euiTheme.focus.width, ";;label:euiPaginationArrowButton;")
16
+ isActive: /*#__PURE__*/css("font-weight:", euiTheme.font.weight.bold, ";color:", euiTheme.colors.primary, ";&,&:hover{cursor:default;text-decoration:underline;};label:isActive;")
34
17
  };
35
18
  };
@@ -13,7 +13,7 @@ import { EuiButtonIcon } from '../button/button_icon';
13
13
  import { keysOf } from '../common';
14
14
  import { useEuiI18n } from '../i18n';
15
15
  import { useEuiTheme } from '../../services';
16
- import { euiPaginationButtonArrowStyles } from './pagination_button.styles';
16
+ import { euiPaginationButtonStyles } from './pagination_button.styles';
17
17
  import { jsx as ___EmotionJSX } from "@emotion/react";
18
18
  var typeToIconTypeMap = {
19
19
  first: 'arrowStart',
@@ -29,7 +29,7 @@ export var EuiPaginationButtonArrow = function EuiPaginationButtonArrow(_ref) {
29
29
  ariaControls = _ref.ariaControls,
30
30
  onClick = _ref.onClick;
31
31
  var euiTheme = useEuiTheme();
32
- var styles = euiPaginationButtonArrowStyles(euiTheme);
32
+ var styles = euiPaginationButtonStyles(euiTheme);
33
33
  var labels = {
34
34
  first: useEuiI18n('euiPaginationButtonArrow.firstPage', 'First page'),
35
35
  previous: useEuiI18n('euiPaginationButtonArrow.previousPage', 'Previous page'),
@@ -42,7 +42,7 @@ export var EuiPaginationButtonArrow = function EuiPaginationButtonArrow(_ref) {
42
42
  buttonProps['aria-controls'] = ariaControls;
43
43
  }
44
44
  return ___EmotionJSX(EuiButtonIcon, _extends({
45
- css: styles.euiPaginationArrowButton,
45
+ css: styles.euiPaginationButton,
46
46
  className: classNames('euiPaginationArrowButton', className),
47
47
  color: "text",
48
48
  "aria-label": labels[type],
@@ -48,7 +48,7 @@ export var EuiProgress = function EuiProgress(_ref) {
48
48
  var cssStyles = [styles.euiProgress, determinate && styles.native, !determinate && styles.indeterminate, styles[size], styles[position], isNamedColor ? styles[color] : styles.customColor];
49
49
  var dataStyles = euiProgressDataStyles(euiTheme);
50
50
  var dataCssStyles = [dataStyles.euiProgress__data, size === 'l' && dataStyles[size]];
51
- var labelCssStyles = [euiProgressLabelStyles.euiProgress__label];
51
+ var labelCssStyles = [euiProgressLabelStyles.euiProgress__label, labelProps === null || labelProps === void 0 ? void 0 : labelProps.css];
52
52
  var valueTextStyles = euiProgressValueTextStyles(euiTheme);
53
53
  var valueTextCssStyles = [valueTextStyles.euiProgress__valueText, isNamedColor ? valueTextStyles[color] : styles.customColor];
54
54
  var classes = classNames('euiProgress', className);
@@ -78,10 +78,10 @@ export var EuiProgress = function EuiProgress(_ref) {
78
78
  }, label && ___EmotionJSX(EuiInnerText, null, function (ref, innerText) {
79
79
  return ___EmotionJSX("span", _extends({
80
80
  title: innerText,
81
- ref: ref,
82
- css: labelCssStyles
81
+ ref: ref
83
82
  }, labelProps, {
84
- className: labelClasses
83
+ className: labelClasses,
84
+ css: labelCssStyles
85
85
  }), label);
86
86
  }), valueRender && ___EmotionJSX(EuiInnerText, null, function (ref, innerText) {
87
87
  return ___EmotionJSX("span", {
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
4
  import _typeof from "@babel/runtime/helpers/typeof";
5
- var _excluded = ["children", "className", "id", "isHorizontal", "size", "initialSize", "minSize", "scrollable", "mode", "registration", "onToggleCollapsed", "onToggleCollapsedInternal", "wrapperProps", "hasShadow", "borderRadius", "color", "paddingSize", "wrapperPadding"];
5
+ var _excluded = ["children", "className", "css", "id", "isHorizontal", "size", "initialSize", "minSize", "scrollable", "mode", "registration", "onToggleCollapsed", "onToggleCollapsedInternal", "wrapperProps", "hasShadow", "borderRadius", "color", "paddingSize", "wrapperPadding"];
6
6
  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; }
7
7
  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; }
8
8
  /*
@@ -46,6 +46,7 @@ var getPosition = function getPosition(ref) {
46
46
  export var EuiResizablePanel = function EuiResizablePanel(_ref) {
47
47
  var children = _ref.children,
48
48
  className = _ref.className,
49
+ css = _ref.css,
49
50
  id = _ref.id,
50
51
  isHorizontal = _ref.isHorizontal,
51
52
  size = _ref.size,
@@ -134,7 +135,7 @@ export var EuiResizablePanel = function EuiResizablePanel(_ref) {
134
135
  var axis = isHorizontal ? 'horizontal' : 'vertical';
135
136
  var euiTheme = useEuiTheme();
136
137
  var styles = euiResizablePanelStyles(euiTheme);
137
- var cssStyles = [styles.euiResizablePanel, isCollapsed && styles.collapsed, styles.paddingSizes[wrapperPadding]];
138
+ var cssStyles = [styles.euiResizablePanel, isCollapsed && styles.collapsed, styles.paddingSizes[wrapperPadding], wrapperProps === null || wrapperProps === void 0 ? void 0 : wrapperProps.css];
138
139
  var contentStyles = euiResizablePanelContentStyles(euiTheme);
139
140
  var contentCssStyles = [contentStyles.euiResizablePanel__content, scrollable && contentStyles.scrollable, isCollapsed && contentStyles.collapsedChildren, isCollapsed && !isCollapsible && contentStyles[axis].collapsed, isCollapsible && contentStyles[axis].hasCollapsibleButton];
140
141
  var classes = classNames('euiResizablePanel', wrapperProps === null || wrapperProps === void 0 ? void 0 : wrapperProps.className);
@@ -208,9 +209,8 @@ export var EuiResizablePanel = function EuiResizablePanel(_ref) {
208
209
  onClick: collapseLeft
209
210
  });
210
211
  }
211
- return ___EmotionJSX("div", _extends({
212
- css: cssStyles
213
- }, wrapperProps, {
212
+ return ___EmotionJSX("div", _extends({}, wrapperProps, {
213
+ css: cssStyles,
214
214
  id: panelId,
215
215
  ref: divRef,
216
216
  style: inlineStyles,
@@ -9,8 +9,8 @@
9
9
  "right": "inset-inline-end",
10
10
  "bottom": "inset-block-end",
11
11
  "left": "inset-inline-start",
12
- "horizontal": "inset-block",
13
- "vertical": "inset-inline",
12
+ "horizontal": "inset-inline",
13
+ "vertical": "inset-block",
14
14
  "margin-left": "margin-inline-start",
15
15
  "margin-right": "margin-inline-end",
16
16
  "margin-top": "margin-block-start",
@@ -3,6 +3,7 @@ declare module '@elastic/eui/optimize/es/test/required_props' {
3
3
  'aria-label': string;
4
4
  className: string;
5
5
  'data-test-subj': string;
6
+ css: any;
6
7
  };
7
8
 
8
9
  }
@@ -1,3 +1,4 @@
1
+ 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)."; }
1
2
  /*
2
3
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3
4
  * or more contributor license agreements. Licensed under the Elastic License
@@ -6,10 +7,24 @@
6
7
  * Side Public License, v 1.
7
8
  */
8
9
 
10
+ import { css } from '@emotion/react';
11
+
12
+ // Using a variable name instead of inline causes Emotion to use `euiTestCss`
13
+ // instead of the component name, which is easier to find in snapshots
14
+ var euiTestCss = process.env.NODE_ENV === "production" ? {
15
+ name: "hzx95w-euiTestCss",
16
+ styles: "color:red;label:euiTestCss;"
17
+ } : {
18
+ name: "hzx95w-euiTestCss",
19
+ styles: "color:red;label:euiTestCss;",
20
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
21
+ };
22
+
9
23
  // We expect all React components to be able to support these props,
10
24
  // which will be rendered as HTML attributes.
11
25
  export var requiredProps = {
12
26
  'aria-label': 'aria-label',
13
27
  className: 'testClass1 testClass2',
14
- 'data-test-subj': 'test subject string'
28
+ 'data-test-subj': 'test subject string',
29
+ css: euiTestCss
15
30
  };
@@ -162,13 +162,13 @@ var EuiAccordionClass = /*#__PURE__*/function (_Component) {
162
162
 
163
163
  // Emotion styles
164
164
  var buttonStyles = (0, _accordion.euiAccordionButtonStyles)(theme);
165
- var cssButtonStyles = [buttonStyles.euiAccordion__button, isDisabled && buttonStyles.disabled];
165
+ var cssButtonStyles = [buttonStyles.euiAccordion__button, isDisabled && buttonStyles.disabled, buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.css];
166
166
  var childrenStyles = (0, _accordion.euiAccordionChildrenStyles)(theme);
167
167
  var cssChildrenStyles = [childrenStyles.euiAccordion__children, isLoading && childrenStyles.isLoading, paddingSize === 'none' ? undefined : childrenStyles[paddingSize]];
168
168
  var childWrapperStyles = (0, _accordion.euiAccordionChildWrapperStyles)(theme);
169
169
  var cssChildWrapperStyles = [childWrapperStyles.euiAccordion__childWrapper, isOpen && childWrapperStyles.isOpen];
170
170
  var iconButtonStyles = (0, _accordion.euiAccordionIconButtonStyles)(theme);
171
- var cssIconButtonStyles = [iconButtonStyles.euiAccordion__iconButton, isOpen && iconButtonStyles.isOpen, _arrowDisplay === 'right' && iconButtonStyles.arrowRight];
171
+ var cssIconButtonStyles = [iconButtonStyles.euiAccordion__iconButton, isOpen && iconButtonStyles.isOpen, _arrowDisplay === 'right' && iconButtonStyles.arrowRight, arrowProps === null || arrowProps === void 0 ? void 0 : arrowProps.css];
172
172
  var optionalActionStyles = (0, _accordion.euiAccordionOptionalActionStyles)();
173
173
  var cssOptionalActionStyles = [optionalActionStyles.euiAccordion__optionalAction];
174
174
  var spinnerStyles = (0, _accordion.euiAccordionSpinnerStyles)(theme);
@@ -179,10 +179,10 @@ var EuiAccordionClass = /*#__PURE__*/function (_Component) {
179
179
  var buttonId = (_buttonProps$id = buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.id) !== null && _buttonProps$id !== void 0 ? _buttonProps$id : this.generatedId;
180
180
  if (_arrowDisplay !== 'none') {
181
181
  iconButton = (0, _react2.jsx)(_button.EuiButtonIcon, (0, _extends2.default)({
182
- color: "text",
183
- css: cssIconButtonStyles
182
+ color: "text"
184
183
  }, arrowProps, {
185
184
  className: iconButtonClasses,
185
+ css: cssIconButtonStyles,
186
186
  iconType: "arrowRight",
187
187
  onClick: this.onToggle,
188
188
  "aria-controls": id,
@@ -213,11 +213,10 @@ var EuiAccordionClass = /*#__PURE__*/function (_Component) {
213
213
  } else {
214
214
  childrenContent = children;
215
215
  }
216
- var button = (0, _react2.jsx)(ButtonElement, (0, _extends2.default)({
217
- css: cssButtonStyles
218
- }, buttonProps, {
216
+ var button = (0, _react2.jsx)(ButtonElement, (0, _extends2.default)({}, buttonProps, {
219
217
  id: buttonId,
220
218
  className: buttonClasses,
219
+ css: cssButtonStyles,
221
220
  "aria-controls": id
222
221
  // `aria-expanded` is only a valid attribute on interactive controls - axe-core throws a violation otherwise
223
222
  ,
@@ -87,7 +87,7 @@ var EuiBadge = function EuiBadge(_ref) {
87
87
  var iconCssStyles = [styles.icon.euiBadge__icon, styles.icon[iconSide]];
88
88
  var iconButtonCssStyles = [styles.iconButton.euiBadge__iconButton, styles.iconButton[iconSide]];
89
89
  var classes = (0, _classnames.default)('euiBadge', className);
90
- var closeClassNames = (0, _classnames.default)('euiBadge__icon', closeButtonProps && closeButtonProps.className);
90
+ var closeClassNames = (0, _classnames.default)('euiBadge__icon', closeButtonProps === null || closeButtonProps === void 0 ? void 0 : closeButtonProps.className);
91
91
  var Element = href && !isDisabled ? 'a' : 'button';
92
92
  var relObj = {};
93
93
  if (href && !isDisabled) {
@@ -120,10 +120,9 @@ var EuiBadge = function EuiBadge(_ref) {
120
120
  type: iconType,
121
121
  size: "s",
122
122
  color: "inherit" // forces the icon to inherit its parent color
123
- ,
124
- css: iconCssStyles
125
123
  }, closeButtonProps, {
126
- className: closeClassNames
124
+ className: closeClassNames,
125
+ css: [].concat(iconCssStyles, [closeButtonProps === null || closeButtonProps === void 0 ? void 0 : closeButtonProps.css])
127
126
  })));
128
127
  } else {
129
128
  optionalIcon = (0, _react2.jsx)(_icon.EuiIcon, {
@@ -9,11 +9,12 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
9
9
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
10
10
  var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
11
11
  var _react = _interopRequireDefault(require("react"));
12
+ var _classnames = _interopRequireDefault(require("classnames"));
12
13
  var _button = require("../../themes/amsterdam/global_styling/mixins/button");
13
14
  var _button_display = require("./button_display/_button_display");
14
15
  var _services = require("../../services");
15
16
  var _react2 = require("@emotion/react");
16
- var _excluded = ["buttonRef", "color", "fill"];
17
+ var _excluded = ["className", "buttonRef", "color", "fill"];
17
18
  /*
18
19
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
19
20
  * or more contributor license agreements. Licensed under the Elastic License
@@ -30,7 +31,8 @@ exports.SIZES = SIZES;
30
31
  * and the logic for element-specific attributes
31
32
  */
32
33
  var EuiButton = function EuiButton(props) {
33
- var buttonRef = props.buttonRef,
34
+ var className = props.className,
35
+ buttonRef = props.buttonRef,
34
36
  _props$color = props.color,
35
37
  _color = _props$color === void 0 ? 'primary' : _props$color,
36
38
  fill = props.fill,
@@ -45,6 +47,7 @@ var EuiButton = function EuiButton(props) {
45
47
  display: fill ? 'fill' : 'base'
46
48
  })[color === 'ghost' ? 'text' : color];
47
49
  var buttonFocusStyle = (0, _button.useEuiButtonFocusCSS)();
50
+ var classes = (0, _classnames.default)('euiButton', className);
48
51
  var cssStyles = [buttonColorStyles, buttonFocusStyle];
49
52
  if (_color === 'ghost') {
50
53
  // INCEPTION: If `ghost`, re-implement with a wrapping dark mode theme provider
@@ -58,9 +61,9 @@ var EuiButton = function EuiButton(props) {
58
61
  })));
59
62
  }
60
63
  return (0, _react2.jsx)(_button_display.EuiButtonDisplay, (0, _extends2.default)({
61
- className: "euiButton",
62
- ref: buttonRef,
63
- css: cssStyles
64
+ className: classes,
65
+ css: cssStyles,
66
+ ref: buttonRef
64
67
  }, rest));
65
68
  };
66
69
  exports.EuiButton = EuiButton;
@@ -150,18 +150,18 @@ var EuiCard = function EuiCard(_ref) {
150
150
  if (betaBadgeProps !== null && betaBadgeProps !== void 0 && betaBadgeProps.label) {
151
151
  var betaStyles = (0, _card.euiCardBetaBadgeStyles)(euiThemeContext, paddingSize);
152
152
  optionalBetaCSS = betaStyles.hasBetaBadge;
153
- var anchorCSS = [betaStyles.euiCard__betaBadgeAnchor];
154
- var badgeCSS = [betaStyles.euiCard__betaBadge];
155
153
  var anchorProps = betaBadgeProps.anchorProps,
156
154
  cleanedBetaBadgeProps = (0, _objectWithoutProperties2.default)(betaBadgeProps, _excluded2);
155
+ var anchorCSS = [betaStyles.euiCard__betaBadgeAnchor, anchorProps === null || anchorProps === void 0 ? void 0 : anchorProps.css];
156
+ var badgeCSS = [betaStyles.euiCard__betaBadge, betaBadgeProps === null || betaBadgeProps === void 0 ? void 0 : betaBadgeProps.css];
157
157
  optionalBetaBadgeID = "".concat(ariaId, "BetaBadge");
158
158
  optionalBetaBadge = (0, _react2.jsx)(_beta_badge.EuiBetaBadge, (0, _extends2.default)({
159
- css: badgeCSS,
160
159
  color: isDisabled && !betaBadgeProps.onClick && !betaBadgeProps.href ? 'subdued' : 'hollow'
161
160
  }, cleanedBetaBadgeProps, {
162
- anchorProps: _objectSpread({
161
+ css: badgeCSS,
162
+ anchorProps: _objectSpread(_objectSpread({}, anchorProps), {}, {
163
163
  css: anchorCSS
164
- }, anchorProps),
164
+ }),
165
165
  id: optionalBetaBadgeID
166
166
  }));
167
167
 
@@ -60,10 +60,9 @@ var EuiExpression = function EuiExpression(_ref) {
60
60
  var cssIconStyles = [iconStyles.euiExpression__icon, display === 'columns' && iconStyles.columns];
61
61
  var classes = (0, _classnames.default)('euiExpression', className);
62
62
  var Component = onClick ? 'button' : 'span';
63
- var descriptionStyle = descriptionProps && descriptionProps.style;
64
- var customWidth = display === 'columns' && descriptionWidth ? _objectSpread({
63
+ var customWidth = display === 'columns' && descriptionWidth ? {
65
64
  flexBasis: descriptionWidth
66
- }, descriptionStyle) : undefined;
65
+ } : undefined;
67
66
  var invalidIcon = isInvalid ? (0, _react2.jsx)(_icon.EuiIcon, {
68
67
  className: "euiExpression__icon",
69
68
  type: "warning",
@@ -74,13 +73,13 @@ var EuiExpression = function EuiExpression(_ref) {
74
73
  css: cssStyles,
75
74
  className: classes,
76
75
  onClick: onClick
77
- }, rest), (0, _react2.jsx)("span", (0, _extends2.default)({
78
- className: "euiExpression__description",
79
- css: cssDescriptionStyles,
80
- style: customWidth
81
- }, descriptionProps), description), ' ', value && (0, _react2.jsx)("span", (0, _extends2.default)({
82
- className: "euiExpression__value",
83
- css: cssValueStyles
84
- }, valueProps), value), invalidIcon);
76
+ }, rest), (0, _react2.jsx)("span", (0, _extends2.default)({}, descriptionProps, {
77
+ className: (0, _classnames.default)('euiExpression__description', descriptionProps === null || descriptionProps === void 0 ? void 0 : descriptionProps.className),
78
+ css: [].concat(cssDescriptionStyles, [descriptionProps === null || descriptionProps === void 0 ? void 0 : descriptionProps.css]),
79
+ style: _objectSpread(_objectSpread({}, customWidth), descriptionProps === null || descriptionProps === void 0 ? void 0 : descriptionProps.style)
80
+ }), description), ' ', value && (0, _react2.jsx)("span", (0, _extends2.default)({}, valueProps, {
81
+ className: (0, _classnames.default)('euiExpression__value', valueProps === null || valueProps === void 0 ? void 0 : valueProps.className),
82
+ css: [].concat(cssValueStyles, [valueProps === null || valueProps === void 0 ? void 0 : valueProps.css])
83
+ }), value), invalidIcon);
85
84
  };
86
85
  exports.EuiExpression = EuiExpression;
@@ -156,13 +156,12 @@ var EuiFlyout = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
156
156
  if (onClose && !hideCloseButton) {
157
157
  var closeButtonClasses = (0, _classnames.default)('euiFlyout__closeButton', closeButtonProps === null || closeButtonProps === void 0 ? void 0 : closeButtonProps.className);
158
158
  var closeButtonStyles = (0, _flyout.euiFlyoutCloseButtonStyles)(euiTheme);
159
- var closeButtonCssStyles = [closeButtonStyles.euiFlyout__closeButton, closeButtonStyles[closeButtonPosition], closeButtonPosition === 'outside' && closeButtonStyles.outsideSide[side]];
159
+ var closeButtonCssStyles = [closeButtonStyles.euiFlyout__closeButton, closeButtonStyles[closeButtonPosition], closeButtonPosition === 'outside' && closeButtonStyles.outsideSide[side], closeButtonProps === null || closeButtonProps === void 0 ? void 0 : closeButtonProps.css];
160
160
  closeButton = (0, _react2.jsx)(_i18n.EuiI18n, {
161
161
  token: "euiFlyout.closeAriaLabel",
162
162
  default: "Close this dialog"
163
163
  }, function (closeAriaLabel) {
164
164
  return (0, _react2.jsx)(_button.EuiButtonIcon, (0, _extends2.default)({
165
- css: closeButtonCssStyles,
166
165
  display: closeButtonPosition === 'outside' ? 'fill' : 'empty',
167
166
  iconType: "cross",
168
167
  color: "text",
@@ -170,6 +169,7 @@ var EuiFlyout = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
170
169
  "data-test-subj": "euiFlyoutCloseButton"
171
170
  }, closeButtonProps, {
172
171
  className: closeButtonClasses,
172
+ css: closeButtonCssStyles,
173
173
  onClick: function onClick(e) {
174
174
  var _closeButtonProps$onC;
175
175
  onClose(e.nativeEvent);
@@ -10,8 +10,10 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
10
10
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
11
11
  var _react = _interopRequireWildcard(require("react"));
12
12
  var _classnames = _interopRequireDefault(require("classnames"));
13
- var _header_section = require("./header_section");
13
+ var _services = require("../../services");
14
14
  var _header_breadcrumbs = require("./header_breadcrumbs");
15
+ var _header_section = require("./header_section");
16
+ var _header = require("./header.styles");
15
17
  var _react2 = require("@emotion/react");
16
18
  var _excluded = ["children", "className", "sections", "position", "theme"];
17
19
  /*
@@ -42,7 +44,10 @@ var EuiHeader = function EuiHeader(_ref) {
42
44
  _ref$theme = _ref.theme,
43
45
  theme = _ref$theme === void 0 ? 'default' : _ref$theme,
44
46
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
45
- var classes = (0, _classnames.default)('euiHeader', "euiHeader--".concat(theme), "euiHeader--".concat(position), className);
47
+ var classes = (0, _classnames.default)('euiHeader', className);
48
+ var euiTheme = (0, _services.useEuiTheme)();
49
+ var styles = (0, _header.euiHeaderStyles)(euiTheme);
50
+ var cssStyles = [styles.euiHeader, styles[position], styles[theme]];
46
51
  (0, _react.useEffect)(function () {
47
52
  if (position === 'fixed') {
48
53
  // Increment fixed header counter for each fixed header
@@ -88,6 +93,7 @@ var EuiHeader = function EuiHeader(_ref) {
88
93
  contents = children;
89
94
  }
90
95
  return (0, _react2.jsx)("div", (0, _extends2.default)({
96
+ css: cssStyles,
91
97
  className: classes,
92
98
  "data-fixed-header": position === 'fixed' || undefined // Used by EuiFlyouts as a query selector
93
99
  }, rest), contents);
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.euiHeaderVariables = exports.euiHeaderStyles = void 0;
7
+ var _react = require("@emotion/react");
8
+ var _mixins = require("../../themes/amsterdam/global_styling/mixins");
9
+ var _global_styling = require("../../global_styling");
10
+ var _services = require("../../services");
11
+ var _form = require("../form/form.styles");
12
+ /*
13
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
14
+ * or more contributor license agreements. Licensed under the Elastic License
15
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
16
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
17
+ * Side Public License, v 1.
18
+ */
19
+
20
+ var euiHeaderVariables = function euiHeaderVariables(euiThemeContext) {
21
+ var euiTheme = euiThemeContext.euiTheme;
22
+ return {
23
+ height: euiTheme.size.xxxl,
24
+ childHeight: euiTheme.size.xxl
25
+ };
26
+ };
27
+ exports.euiHeaderVariables = euiHeaderVariables;
28
+ var euiHeaderStyles = function euiHeaderStyles(euiThemeContext) {
29
+ var euiTheme = euiThemeContext.euiTheme,
30
+ colorMode = euiThemeContext.colorMode;
31
+ var _euiHeaderVariables = euiHeaderVariables(euiThemeContext),
32
+ height = _euiHeaderVariables.height;
33
+
34
+ // Curated border color to fade into the shadow without looking too much like a border
35
+ // It adds separation between the header and flyout
36
+ var borderColor = colorMode === 'DARK' ? (0, _services.shade)(euiTheme.colors.emptyShade, 0.35) : (0, _services.shade)(euiTheme.border.color, 0.03);
37
+ return {
38
+ euiHeader: /*#__PURE__*/(0, _react.css)("display:flex;justify-content:space-between;", (0, _global_styling.logicalCSS)('height', height), " ", (0, _global_styling.logicalCSS)('padding-horizontal', euiTheme.size.s), " ", (0, _mixins.euiShadowSmall)(euiThemeContext), ";;label:euiHeader;"),
39
+ // Position
40
+ static: /*#__PURE__*/(0, _react.css)("z-index:", Number(euiTheme.levels.header) - 1, ";position:relative;;label:static;"),
41
+ fixed: /*#__PURE__*/(0, _react.css)("z-index:", euiTheme.levels.header, ";position:fixed;", (0, _global_styling.logicalCSS)('top', 0), " ", (0, _global_styling.logicalCSS)('horizontal', 0), " &+[data-fixed-header]{", (0, _global_styling.logicalCSS)('top', height), ";};label:fixed;"),
42
+ // Theme
43
+ default: /*#__PURE__*/(0, _react.css)("background-color:", euiTheme.colors.emptyShade, ";", (0, _global_styling.logicalCSS)('border-bottom', "".concat(euiTheme.border.width.thin, " solid ").concat(borderColor)), ";;label:default;"),
44
+ dark: /*#__PURE__*/(0, _react.css)(euiHeaderDarkStyles(euiThemeContext, borderColor), ";label:dark;")
45
+ };
46
+ };
47
+
48
+ /**
49
+ * The `dark` header is (currently) a bit of a special case. We don't
50
+ * actually want to use <EuiThemeProvider colorMode="dark"> inside it
51
+ * because that will affect popovers and `SelectableSitewideTemplate`
52
+ * as well, which we do not necessarily want to do (?)
53
+ *
54
+ * It's also possible that the dark header will go away or become unused
55
+ * by Kibana in the near future, at which point we can remove this
56
+ */
57
+ exports.euiHeaderStyles = euiHeaderStyles;
58
+ var euiHeaderDarkStyles = function euiHeaderDarkStyles(euiThemeContext, defaultBorderColor) {
59
+ var euiTheme = euiThemeContext.euiTheme,
60
+ colorMode = euiThemeContext.colorMode;
61
+ var _euiFormVariables = (0, _form.euiFormVariables)(euiThemeContext),
62
+ controlPlaceholderText = _euiFormVariables.controlPlaceholderText;
63
+ var backgroundColor = colorMode === 'DARK' ? (0, _services.shade)(euiTheme.colors.lightestShade, 0.5) : (0, _services.shade)(euiTheme.colors.darkestShade, 0.28);
64
+ var borderColor = colorMode === 'DARK' ? defaultBorderColor : backgroundColor;
65
+ return "\n background-color: ".concat(backgroundColor, ";\n ").concat((0, _global_styling.logicalCSS)('border-bottom-color', borderColor), "\n\n .euiHeaderLogo__text,\n .euiHeaderLink,\n .euiHeaderSectionItemButton {\n color: ").concat(euiTheme.colors.ghost, ";\n }\n\n .euiHeaderLink-isActive {\n color: ").concat((0, _services.makeHighContrastColor)(euiTheme.colors.primary)(backgroundColor), ";\n }\n\n .euiHeaderSectionItem {\n &::after {\n background-color: ").concat(colorMode === 'DARK' ? euiTheme.colors.lightestShade : euiTheme.colors.darkShade, ";\n }\n }\n\n .euiHeaderLogo,\n .euiHeaderLink,\n .euiHeaderSectionItemButton {\n &:focus {\n background-color: ").concat((0, _services.shade)(euiTheme.colors.primary, 0.5), ";\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\n .euiSelectableTemplateSitewide .euiFormControlLayout {\n background-color: transparent;\n\n &--group,\n input {\n box-shadow: inset 0 0 0 ").concat(euiTheme.border.width.thin, "\n ").concat((0, _services.transparentize)(euiTheme.colors.ghost, 0.3), ";\n }\n\n &:not(:focus-within) {\n /* Increase contrast of filled text to be more than placeholder text */\n color: ").concat(euiTheme.colors.ghost, ";\n\n input {\n /* Increase contrast of placeholder text */\n &::placeholder {\n color: ").concat((0, _services.makeHighContrastColor)(controlPlaceholderText, 8)(backgroundColor), ";\n }\n\n /* Inherit color from form control layout */\n color: inherit;\n background-color: transparent;\n }\n\n .euiFormControlLayout__append {\n background-color: transparent;\n color: inherit;\n }\n }\n }\n ");
66
+ };
@@ -9,9 +9,10 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
9
9
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
10
10
  var _react = _interopRequireDefault(require("react"));
11
11
  var _classnames = _interopRequireDefault(require("classnames"));
12
- var _icon = require("../icon");
13
- var _services = require("../../services");
14
- var _href_validator = require("../../services/security/href_validator");
12
+ var _services = require("../../../services");
13
+ var _href_validator = require("../../../services/security/href_validator");
14
+ var _icon = require("../../icon");
15
+ var _header_logo = require("./header_logo.styles");
15
16
  var _react2 = require("@emotion/react");
16
17
  var _excluded = ["iconType", "iconTitle", "href", "rel", "target", "children", "className"];
17
18
  /*
@@ -33,6 +34,8 @@ var EuiHeaderLogo = function EuiHeaderLogo(_ref) {
33
34
  className = _ref.className,
34
35
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
35
36
  var classes = (0, _classnames.default)('euiHeaderLogo', className);
37
+ var euiTheme = (0, _services.useEuiTheme)();
38
+ var styles = (0, _header_logo.euiHeaderLogoStyles)(euiTheme);
36
39
  var secureRel = (0, _services.getSecureRelForTarget)({
37
40
  href: href,
38
41
  rel: rel,
@@ -43,6 +46,7 @@ var EuiHeaderLogo = function EuiHeaderLogo(_ref) {
43
46
  href: isHrefValid ? href : '',
44
47
  rel: secureRel,
45
48
  target: target,
49
+ css: styles.euiHeaderLogo,
46
50
  className: classes
47
51
  }, rest), (0, _react2.jsx)(_icon.EuiIcon, {
48
52
  "aria-label": iconTitle,
@@ -50,6 +54,7 @@ var EuiHeaderLogo = function EuiHeaderLogo(_ref) {
50
54
  size: "l",
51
55
  type: iconType
52
56
  }), children && (0, _react2.jsx)("span", {
57
+ css: styles.euiHeaderLogo__text,
53
58
  className: "euiHeaderLogo__text"
54
59
  }, children));
55
60
  };