@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
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.euiHeaderLogoStyles = void 0;
7
+ var _react = require("@emotion/react");
8
+ var _global_styling = require("../../../global_styling");
9
+ var _title = require("../../title/title.styles");
10
+ var _header = require("../header.styles");
11
+ /*
12
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
13
+ * or more contributor license agreements. Licensed under the Elastic License
14
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
15
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
16
+ * Side Public License, v 1.
17
+ */
18
+
19
+ var euiHeaderLogoStyles = function euiHeaderLogoStyles(euiThemeContext) {
20
+ var euiTheme = euiThemeContext.euiTheme;
21
+ var _euiHeaderVariables = (0, _header.euiHeaderVariables)(euiThemeContext),
22
+ childHeight = _euiHeaderVariables.childHeight;
23
+ return {
24
+ euiHeaderLogo: /*#__PURE__*/(0, _react.css)("position:relative;", (0, _global_styling.logicalCSS)('height', childHeight), " line-height:", childHeight, ";", (0, _global_styling.logicalCSS)('min-width', childHeight), " padding-inline:", euiTheme.size.s, ";display:inline-flex;align-items:center;white-space:nowrap;", (0, _global_styling.euiBreakpoint)(euiThemeContext, ['xs']), "{", (0, _global_styling.logicalCSS)('padding-left', euiTheme.size.xs), ";};label:euiHeaderLogo;"),
25
+ euiHeaderLogo__text: /*#__PURE__*/(0, _react.css)((0, _title.euiTitle)(euiThemeContext, 'xxs'), " ", (0, _global_styling.logicalCSS)('padding-left', euiTheme.size.base), " ", (0, _global_styling.euiBreakpoint)(euiThemeContext, ['xs']), "{", (0, _global_styling.logicalCSS)('padding-left', euiTheme.size.s), ";};label:euiHeaderLogo__text;")
26
+ };
27
+ };
28
+ exports.euiHeaderLogoStyles = euiHeaderLogoStyles;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "EuiHeaderLogo", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _header_logo.EuiHeaderLogo;
10
+ }
11
+ });
12
+ var _header_logo = require("./header_logo");
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ var _typeof = require("@babel/runtime/helpers/typeof");
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.icon = void 0;
9
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
10
+ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
11
+ var React = _interopRequireWildcard(require("react"));
12
+ var _react2 = require("@emotion/react");
13
+ var _excluded = ["title", "titleId"];
14
+ /*
15
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
16
+ * or more contributor license agreements. Licensed under the Elastic License
17
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
18
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
19
+ * Side Public License, v 1.
20
+ */
21
+ // THIS IS A GENERATED FILE. DO NOT MODIFY MANUALLY. @see scripts/compile-icons.js
22
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
23
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
24
+ var EuiIconSparkles = function EuiIconSparkles(_ref) {
25
+ var title = _ref.title,
26
+ titleId = _ref.titleId,
27
+ props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
28
+ return (0, _react2.jsx)("svg", (0, _extends2.default)({
29
+ xmlns: "http://www.w3.org/2000/svg",
30
+ width: 16,
31
+ height: 16,
32
+ viewBox: "0 0 16 16",
33
+ "aria-labelledby": titleId
34
+ }, props), title ? (0, _react2.jsx)("title", {
35
+ id: titleId
36
+ }, title) : null, (0, _react2.jsx)("path", {
37
+ fillRule: "evenodd",
38
+ d: "m5.016 4.383.035-.093a.492.492 0 0 1 .898 0l.035.093c.048.128.072.192.097.253a5.9 5.9 0 0 0 3.536 3.38l.093.035a.492.492 0 0 1 0 .898l-.093.035a5.9 5.9 0 0 0-3.536 3.38c-.025.06-.049.125-.097.253l-.035.093a.492.492 0 0 1-.898 0l-.035-.093c-.048-.128-.072-.192-.097-.253a5.9 5.9 0 0 0-3.536-3.38 2.175 2.175 0 0 1-.093-.035.492.492 0 0 1 0-.898l.093-.035c.128-.048.192-.072.253-.097a5.9 5.9 0 0 0 3.38-3.536Zm6.769-2.213a.968.968 0 0 1 .016-.041.219.219 0 0 1 .398 0 2.622 2.622 0 0 0 1.518 1.613l.113.043a.272.272 0 0 1 .04.016.219.219 0 0 1 0 .398.272.272 0 0 1-.04.016l-.113.043a2.622 2.622 0 0 0-1.502 1.572.968.968 0 0 1-.016.04.219.219 0 0 1-.398 0 2.622 2.622 0 0 0-1.518-1.613l-.113-.042a.272.272 0 0 1-.04-.016.219.219 0 0 1 0-.398.272.272 0 0 1 .04-.016l.113-.043a2.622 2.622 0 0 0 1.502-1.572Zm-.555 8.043.02-.052a.273.273 0 0 1 .5 0l.02.052.053.14a3.275 3.275 0 0 0 1.824 1.824l.14.054c.03.01.044.016.052.02a.273.273 0 0 1 0 .498 1.248 1.248 0 0 1-.052.02c-.07.027-.107.04-.14.054a3.279 3.279 0 0 0-1.824 1.824l-.054.14a.409.409 0 0 1-.02.052.273.273 0 0 1-.498 0 1.248 1.248 0 0 1-.02-.052c-.027-.07-.04-.107-.054-.14a3.279 3.279 0 0 0-1.824-1.824l-.14-.054a1.24 1.24 0 0 1-.052-.02.273.273 0 0 1 0-.498 1.24 1.24 0 0 1 .052-.02l.14-.054a3.279 3.279 0 0 0 1.824-1.824l.054-.14Z"
39
+ }));
40
+ };
41
+ var icon = EuiIconSparkles;
42
+ exports.icon = icon;
@@ -232,6 +232,7 @@ var EuiIconClass = /*#__PURE__*/function (_PureComponent) {
232
232
  src: icon,
233
233
  className: classes,
234
234
  css: cssStyles,
235
+ style: style,
235
236
  tabIndex: tabIndex
236
237
  }, rest));
237
238
  } else {
@@ -18,7 +18,7 @@ var _react2 = require("@emotion/react");
18
18
 
19
19
  describe('EuiIcons', function () {
20
20
  describe('Automated accessibility check for glyph icons', function () {
21
- var GlyphIcons = ['accessibility', 'aggregate', 'analyzeEvent', 'annotation', 'apmTrace', 'apps', 'arrowDown', 'arrowLeft', 'arrowRight', 'arrowUp', 'arrowStart', 'arrowEnd', 'article', 'asterisk', 'beaker', 'bell', 'bellSlash', 'beta', 'bolt', 'boxesHorizontal', 'boxesVertical', 'branch', 'branchUser', 'broom', 'brush', 'bug', 'bullseye', 'calendar', 'check', 'checkInCircleFilled', 'cheer', 'clock', 'cloudDrizzle', 'cloudStormy', 'cloudSunny', 'cluster', 'color', 'compute', 'console', 'container', 'continuityAbove', 'continuityAboveBelow', 'continuityBelow', 'continuityWithin', 'controlsHorizontal', 'controlsVertical', 'copy', 'copyClipboard', 'cross', 'crosshairs', 'currency', 'cut', 'database', 'desktop', 'discuss', 'document', 'documents', 'documentEdit', 'documentation', 'dot', 'dotInCircle', 'doubleArrowLeft', 'doubleArrowRight', 'download', 'email', 'empty', 'eql', 'eraser', 'exit', 'expand', 'expandMini', 'exportAction', 'eye', 'eyeClosed', 'faceHappy', 'faceNeutral', 'faceSad', 'filter', 'filterExclude', 'filterIgnore', 'filterInclude', 'filterInCircle', 'flag', 'fold', 'folderCheck', 'folderClosed', 'folderExclamation', 'folderOpen', 'frameNext', 'framePrevious', 'fullScreen', 'fullScreenExit', 'function', 'gear', 'glasses', 'globe', 'grab', 'grabHorizontal', 'grid', 'heart', 'heatmap', 'help', 'home', 'iInCircle', 'image', 'importAction', 'indexClose', 'indexEdit', 'indexFlush', 'indexMapping', 'indexOpen', 'indexRuntime', 'indexSettings', 'indexTemporary', 'infinity', 'inputOutput', 'inspect', 'invert', 'ip', 'keyboard', 'kqlField', 'kqlFunction', 'kqlOperand', 'kqlSelector', 'kqlValue', 'kubernetesNode', 'kubernetesPod', 'launch', 'layers', 'lettering', 'lineDashed', 'lineDotted', 'lineSolid', 'link', 'list', 'listAdd', 'lock', 'lockOpen', 'logstashFilter', 'logstashIf', 'logstashInput', 'logstashOutput', 'logstashQueue', 'magnifyWithExclamation', 'magnifyWithMinus', 'magnifyWithPlus', 'magnet', 'mapMarker', 'memory', 'merge', 'menu', 'menuDown', 'menuLeft', 'menuRight', 'menuUp', 'minimize', 'minus', 'minusInCircle', 'minusInCircleFilled', 'mobile', 'moon', 'namespace', 'nested', 'node', 'number', 'offline', 'online', 'package', 'pageSelect', 'pagesSelect', 'paperClip', 'partial', 'pause', 'payment', 'pencil', 'percent', 'pin', 'pinFilled', 'play', 'playFilled', 'plus', 'plusInCircle', 'plusInCircleFilled', 'popout', 'push', 'questionInCircle', 'quote', 'refresh', 'reporter', 'returnKey', 'save', 'scale', 'search', 'securitySignal', 'securitySignalDetected', 'securitySignalResolved', 'sessionViewer', 'shard', 'share', 'snowflake', 'sortable', 'sortAscending', 'sortDescending', 'sortDown', 'sortLeft', 'sortRight', 'sortUp', 'spaces', 'starEmpty', 'starEmptySpace', 'starFilled', 'starFilledSpace', 'starMinusEmpty', 'starMinusFilled', 'starPlusEmpty', 'starPlusFilled', 'stats', 'stop', 'stopFilled', 'stopSlash', 'storage', 'string', 'submodule', 'sun', 'symlink', 'tableOfContents', 'tableDensityExpanded', 'tableDensityCompact', 'tableDensityNormal', 'tag', 'tear', 'temperature', 'timeline', 'timelineWithArrow', 'timeRefresh', 'timeslider', 'training', 'trash', 'unfold', 'unlink', 'user', 'userAvatar', 'users', 'vector', 'videoPlayer', 'visArea', 'visAreaStacked', 'visBarHorizontal', 'visBarHorizontalStacked', 'visBarVertical', 'visBarVerticalStacked', 'visGauge', 'visGoal', 'visLine', 'visMapCoordinate', 'visMapRegion', 'visMetric', 'visPie', 'visTable', 'visTagCloud', 'visText', 'visTimelion', 'visVega', 'visVisualBuilder', 'warning', 'wordWrap', 'wordWrapDisabled', 'wrench'];
21
+ var GlyphIcons = ['accessibility', 'aggregate', 'analyzeEvent', 'annotation', 'apmTrace', 'apps', 'arrowDown', 'arrowLeft', 'arrowRight', 'arrowUp', 'arrowStart', 'arrowEnd', 'article', 'asterisk', 'beaker', 'bell', 'bellSlash', 'beta', 'bolt', 'boxesHorizontal', 'boxesVertical', 'branch', 'branchUser', 'broom', 'brush', 'bug', 'bullseye', 'calendar', 'check', 'checkInCircleFilled', 'cheer', 'clock', 'cloudDrizzle', 'cloudStormy', 'cloudSunny', 'cluster', 'color', 'compute', 'console', 'container', 'continuityAbove', 'continuityAboveBelow', 'continuityBelow', 'continuityWithin', 'controlsHorizontal', 'controlsVertical', 'copy', 'copyClipboard', 'cross', 'crosshairs', 'currency', 'cut', 'database', 'desktop', 'discuss', 'document', 'documents', 'documentEdit', 'documentation', 'dot', 'dotInCircle', 'doubleArrowLeft', 'doubleArrowRight', 'download', 'email', 'empty', 'eql', 'eraser', 'exit', 'expand', 'expandMini', 'exportAction', 'eye', 'eyeClosed', 'faceHappy', 'faceNeutral', 'faceSad', 'filter', 'filterExclude', 'filterIgnore', 'filterInclude', 'filterInCircle', 'flag', 'fold', 'folderCheck', 'folderClosed', 'folderExclamation', 'folderOpen', 'frameNext', 'framePrevious', 'fullScreen', 'fullScreenExit', 'function', 'gear', 'glasses', 'globe', 'grab', 'grabHorizontal', 'grid', 'heart', 'heatmap', 'help', 'home', 'iInCircle', 'image', 'importAction', 'indexClose', 'indexEdit', 'indexFlush', 'indexMapping', 'indexOpen', 'indexRuntime', 'indexSettings', 'indexTemporary', 'infinity', 'inputOutput', 'inspect', 'invert', 'ip', 'keyboard', 'kqlField', 'kqlFunction', 'kqlOperand', 'kqlSelector', 'kqlValue', 'kubernetesNode', 'kubernetesPod', 'launch', 'layers', 'lettering', 'lineDashed', 'lineDotted', 'lineSolid', 'link', 'list', 'listAdd', 'lock', 'lockOpen', 'logstashFilter', 'logstashIf', 'logstashInput', 'logstashOutput', 'logstashQueue', 'magnifyWithExclamation', 'magnifyWithMinus', 'magnifyWithPlus', 'magnet', 'mapMarker', 'memory', 'merge', 'menu', 'menuDown', 'menuLeft', 'menuRight', 'menuUp', 'minimize', 'minus', 'minusInCircle', 'minusInCircleFilled', 'mobile', 'moon', 'namespace', 'nested', 'node', 'number', 'offline', 'online', 'package', 'pageSelect', 'pagesSelect', 'paperClip', 'partial', 'pause', 'payment', 'pencil', 'percent', 'pin', 'pinFilled', 'play', 'playFilled', 'plus', 'plusInCircle', 'plusInCircleFilled', 'popout', 'push', 'questionInCircle', 'quote', 'refresh', 'reporter', 'returnKey', 'save', 'scale', 'search', 'securitySignal', 'securitySignalDetected', 'securitySignalResolved', 'sessionViewer', 'shard', 'share', 'snowflake', 'sortable', 'sortAscending', 'sortDescending', 'sortDown', 'sortLeft', 'sortRight', 'sortUp', 'spaces', 'sparkles', 'starEmpty', 'starEmptySpace', 'starFilled', 'starFilledSpace', 'starMinusEmpty', 'starMinusFilled', 'starPlusEmpty', 'starPlusFilled', 'stats', 'stop', 'stopFilled', 'stopSlash', 'storage', 'string', 'submodule', 'sun', 'symlink', 'tableOfContents', 'tableDensityExpanded', 'tableDensityCompact', 'tableDensityNormal', 'tag', 'tear', 'temperature', 'timeline', 'timelineWithArrow', 'timeRefresh', 'timeslider', 'training', 'trash', 'unfold', 'unlink', 'user', 'userAvatar', 'users', 'vector', 'videoPlayer', 'visArea', 'visAreaStacked', 'visBarHorizontal', 'visBarHorizontalStacked', 'visBarVertical', 'visBarVerticalStacked', 'visGauge', 'visGoal', 'visLine', 'visMapCoordinate', 'visMapRegion', 'visMetric', 'visPie', 'visTable', 'visTagCloud', 'visText', 'visTimelion', 'visVega', 'visVisualBuilder', 'warning', 'wordWrap', 'wordWrapDisabled', 'wrench'];
22
22
  var GlyphGrid = function GlyphGrid() {
23
23
  return (0, _react2.jsx)("div", null, GlyphIcons.map(function (glyph) {
24
24
  return (0, _react2.jsx)(_icon.EuiIcon, {
@@ -359,6 +359,7 @@ var typeToPathMap = {
359
359
  sortable: 'sortable',
360
360
  spaces: 'spaces',
361
361
  spacesApp: 'app_spaces',
362
+ sparkles: 'sparkles',
362
363
  sqlApp: 'app_sql',
363
364
  starEmpty: 'star_empty',
364
365
  starEmptySpace: 'star_empty_space',
@@ -0,0 +1,3 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" d="m5.016 4.383.035-.093a.492.492 0 0 1 .898 0l.035.093c.048.128.072.192.097.253a5.9 5.9 0 0 0 3.536 3.38l.093.035a.492.492 0 0 1 0 .898l-.093.035a5.9 5.9 0 0 0-3.536 3.38c-.025.06-.049.125-.097.253l-.035.093a.492.492 0 0 1-.898 0l-.035-.093c-.048-.128-.072-.192-.097-.253a5.9 5.9 0 0 0-3.536-3.38 2.175 2.175 0 0 1-.093-.035.492.492 0 0 1 0-.898l.093-.035c.128-.048.192-.072.253-.097a5.9 5.9 0 0 0 3.38-3.536Zm6.769-2.213a.968.968 0 0 1 .016-.041.219.219 0 0 1 .398 0 2.622 2.622 0 0 0 1.518 1.613l.113.043a.272.272 0 0 1 .04.016.219.219 0 0 1 0 .398.272.272 0 0 1-.04.016l-.113.043a2.622 2.622 0 0 0-1.502 1.572.968.968 0 0 1-.016.04.219.219 0 0 1-.398 0 2.622 2.622 0 0 0-1.518-1.613l-.113-.042a.272.272 0 0 1-.04-.016.219.219 0 0 1 0-.398.272.272 0 0 1 .04-.016l.113-.043a2.622 2.622 0 0 0 1.502-1.572Zm-.555 8.043.02-.052a.273.273 0 0 1 .5 0l.02.052.053.14a3.275 3.275 0 0 0 1.824 1.824l.14.054c.03.01.044.016.052.02a.273.273 0 0 1 0 .498 1.248 1.248 0 0 1-.052.02c-.07.027-.107.04-.14.054a3.279 3.279 0 0 0-1.824 1.824l-.054.14a.409.409 0 0 1-.02.052.273.273 0 0 1-.498 0 1.248 1.248 0 0 1-.02-.052c-.027-.07-.04-.107-.054-.14a3.279 3.279 0 0 0-1.824-1.824l-.14-.054a1.24 1.24 0 0 1-.052-.02.273.273 0 0 1 0-.498 1.24 1.24 0 0 1 .052-.02l.14-.054a3.279 3.279 0 0 0 1.824-1.824l.054-.14Z"/>
3
+ </svg>
@@ -39,7 +39,7 @@ var EuiImageFullScreenWrapper = function EuiImageFullScreenWrapper(_ref) {
39
39
  onFullScreen = _ref.onFullScreen;
40
40
  var euiTheme = (0, _services.useEuiTheme)();
41
41
  var styles = (0, _image_fullscreen_wrapper.euiImageFullscreenWrapperStyles)(euiTheme);
42
- var cssStyles = [styles.euiImageFullscreenWrapper];
42
+ var cssStyles = [styles.euiImageFullscreenWrapper, wrapperProps === null || wrapperProps === void 0 ? void 0 : wrapperProps.css];
43
43
  var classes = (0, _classnames.default)('euiImageFullScreenWrapper', wrapperProps && wrapperProps.className);
44
44
  var onKeyDown = function onKeyDown(event) {
45
45
  if (event.key === _services.keys.ESCAPE) {
@@ -65,10 +65,10 @@ var EuiImageFullScreenWrapper = function EuiImageFullScreenWrapper(_ref) {
65
65
  preventScrollOnFocus: true,
66
66
  onClickOutside: closeFullScreen
67
67
  }, (0, _react2.jsx)(_react.default.Fragment, null, (0, _react2.jsx)("figure", (0, _extends2.default)({
68
- "aria-label": optionalCaptionText,
69
- css: cssStyles
68
+ "aria-label": optionalCaptionText
70
69
  }, wrapperProps, {
71
- className: classes
70
+ className: classes,
71
+ css: cssStyles
72
72
  }), (0, _react2.jsx)(_image_button.EuiImageButton, {
73
73
  hasAlt: !!alt,
74
74
  hasShadow: hasShadow,
@@ -43,16 +43,16 @@ var EuiImageWrapper = function EuiImageWrapper(_ref) {
43
43
  var classes = (0, _classnames.default)('euiImageWrapper', wrapperProps && wrapperProps.className);
44
44
  var euiTheme = (0, _services.useEuiTheme)();
45
45
  var styles = (0, _image_wrapper.euiImageWrapperStyles)(euiTheme);
46
- var cssFigureStyles = [styles.euiImageWrapper, float && styles[float], margin && styles[margin], allowFullScreen && styles.allowFullScreen, isFullWidth && styles.fullWidth];
46
+ var cssFigureStyles = [styles.euiImageWrapper, float && styles[float], margin && styles[margin], allowFullScreen && styles.allowFullScreen, isFullWidth && styles.fullWidth, wrapperProps === null || wrapperProps === void 0 ? void 0 : wrapperProps.css];
47
47
  var _useInnerText = (0, _inner_text.useInnerText)(),
48
48
  _useInnerText2 = (0, _slicedToArray2.default)(_useInnerText, 2),
49
49
  optionalCaptionRef = _useInnerText2[0],
50
50
  optionalCaptionText = _useInnerText2[1];
51
51
  return (0, _react2.jsx)("figure", (0, _extends2.default)({
52
- "aria-label": optionalCaptionText,
53
- css: cssFigureStyles
52
+ "aria-label": optionalCaptionText
54
53
  }, wrapperProps, {
55
- className: classes
54
+ className: classes,
55
+ css: cssFigureStyles
56
56
  }), allowFullScreen ? (0, _react2.jsx)(_react.default.Fragment, null, (0, _react2.jsx)(_image_button.EuiImageButton, {
57
57
  hasAlt: !!alt,
58
58
  hasShadow: hasShadow,
@@ -54,6 +54,7 @@ var EuiInlineEditForm = function EuiInlineEditForm(_ref) {
54
54
  children = _ref.children,
55
55
  sizes = _ref.sizes,
56
56
  defaultValue = _ref.defaultValue,
57
+ placeholder = _ref.placeholder,
57
58
  inputAriaLabel = _ref.inputAriaLabel,
58
59
  startWithEditOpen = _ref.startWithEditOpen,
59
60
  readModeProps = _ref.readModeProps,
@@ -65,8 +66,6 @@ var EuiInlineEditForm = function EuiInlineEditForm(_ref) {
65
66
  isReadOnly = _ref.isReadOnly;
66
67
  var classes = (0, _classnames.default)('euiInlineEdit', className);
67
68
  var euiTheme = (0, _services.useEuiTheme)();
68
- var readModeStyles = (0, _inline_edit_form.euiInlineEditReadModeStyles)(euiTheme);
69
- var readModeCssStyles = [readModeStyles.euiInlineEditReadMode, isReadOnly && readModeStyles.isReadOnly];
70
69
  var _euiFormVariables = (0, _form2.euiFormVariables)(euiTheme),
71
70
  controlHeight = _euiFormVariables.controlHeight,
72
71
  controlCompressedHeight = _euiFormVariables.controlCompressedHeight;
@@ -95,6 +94,8 @@ var EuiInlineEditForm = function EuiInlineEditForm(_ref) {
95
94
  _useState6 = (0, _slicedToArray2.default)(_useState5, 2),
96
95
  readModeValue = _useState6[0],
97
96
  setReadModeValue = _useState6[1];
97
+ var readModeStyles = (0, _inline_edit_form.euiInlineEditReadModeStyles)(euiTheme);
98
+ var readModeCssStyles = [readModeStyles.euiInlineEditReadMode, isReadOnly && readModeStyles.isReadOnly, placeholder && !readModeValue && readModeStyles.hasPlaceholder];
98
99
  var activateEditMode = function activateEditMode() {
99
100
  setIsEditing(true);
100
101
  // Waits a tick for state to settle and the focus target to render
@@ -190,7 +191,8 @@ var EuiInlineEditForm = function EuiInlineEditForm(_ref) {
190
191
  compressed: sizes.compressed,
191
192
  isInvalid: isInvalid,
192
193
  isLoading: isLoading,
193
- "data-test-subj": "euiInlineEditModeInput"
194
+ "data-test-subj": "euiInlineEditModeInput",
195
+ placeholder: placeholder
194
196
  }, editModeProps === null || editModeProps === void 0 ? void 0 : editModeProps.inputProps, {
195
197
  inputRef: setEditModeRefs,
196
198
  onChange: function onChange(e) {
@@ -277,7 +279,7 @@ var EuiInlineEditForm = function EuiInlineEditForm(_ref) {
277
279
  activateEditMode();
278
280
  readModeProps === null || readModeProps === void 0 ? void 0 : (_readModeProps$onClic = readModeProps.onClick) === null || _readModeProps$onClic === void 0 ? void 0 : _readModeProps$onClic.call(readModeProps, e);
279
281
  }
280
- }), children(readModeValue)), (0, _react2.jsx)("span", {
282
+ }), children(readModeValue || placeholder)), (0, _react2.jsx)("span", {
281
283
  id: readModeDescribedById,
282
284
  hidden: true
283
285
  }, !isReadOnly && (0, _react2.jsx)(_i18n.EuiI18n, {
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.euiInlineEditReadModeStyles = void 0;
7
7
  var _react = require("@emotion/react");
8
+ var _services = require("../../services");
8
9
  /*
9
10
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
10
11
  * or more contributor license agreements. Licensed under the Elastic License
@@ -18,7 +19,8 @@ var euiInlineEditReadModeStyles = function euiInlineEditReadModeStyles(_ref) {
18
19
  return {
19
20
  euiInlineEditReadMode: /*#__PURE__*/(0, _react.css)(";label:euiInlineEditReadMode;"),
20
21
  // Override the cursor and allow users to highlight text when in the read only state
21
- isReadOnly: /*#__PURE__*/(0, _react.css)("&:disabled{cursor:text;color:", euiTheme.colors.text, ";user-select:text;};label:isReadOnly;")
22
+ isReadOnly: /*#__PURE__*/(0, _react.css)("&:disabled{cursor:text;color:", euiTheme.colors.text, ";user-select:text;};label:isReadOnly;"),
23
+ hasPlaceholder: /*#__PURE__*/(0, _react.css)(".euiText,.euiTitle{color:", (0, _services.tint)(euiTheme.colors.subduedText, 0.08), ";};label:hasPlaceholder;")
22
24
  };
23
25
  };
24
26
  exports.euiInlineEditReadModeStyles = euiInlineEditReadModeStyles;
@@ -16,7 +16,7 @@ var _inline_edit_form = require("./inline_edit_form");
16
16
  var _services = require("../../services");
17
17
  var _inline_edit_text = require("./inline_edit_text.styles");
18
18
  var _react2 = require("@emotion/react");
19
- var _excluded = ["children", "className", "size", "defaultValue", "inputAriaLabel", "startWithEditOpen", "readModeProps", "editModeProps", "isLoading", "isInvalid", "isReadOnly"];
19
+ var _excluded = ["children", "className", "size", "defaultValue", "placeholder", "inputAriaLabel", "startWithEditOpen", "readModeProps", "editModeProps", "isLoading", "isInvalid", "isReadOnly"];
20
20
  /*
21
21
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
22
22
  * or more contributor license agreements. Licensed under the Elastic License
@@ -34,6 +34,7 @@ var EuiInlineEditText = function EuiInlineEditText(_ref) {
34
34
  _ref$size = _ref.size,
35
35
  size = _ref$size === void 0 ? 'm' : _ref$size,
36
36
  defaultValue = _ref.defaultValue,
37
+ placeholder = _ref.placeholder,
37
38
  inputAriaLabel = _ref.inputAriaLabel,
38
39
  startWithEditOpen = _ref.startWithEditOpen,
39
40
  _readModeProps = _ref.readModeProps,
@@ -57,6 +58,7 @@ var EuiInlineEditText = function EuiInlineEditText(_ref) {
57
58
  var formProps = {
58
59
  sizes: sizes,
59
60
  defaultValue: defaultValue,
61
+ placeholder: placeholder,
60
62
  inputAriaLabel: inputAriaLabel,
61
63
  startWithEditOpen: startWithEditOpen,
62
64
  readModeProps: readModeProps,
@@ -16,7 +16,7 @@ var _inline_edit_form = require("./inline_edit_form");
16
16
  var _services = require("../../services");
17
17
  var _inline_edit_title = require("./inline_edit_title.styles");
18
18
  var _react2 = require("@emotion/react");
19
- var _excluded = ["children", "className", "size", "heading", "defaultValue", "inputAriaLabel", "startWithEditOpen", "readModeProps", "editModeProps", "isLoading", "isInvalid", "isReadOnly"];
19
+ var _excluded = ["children", "className", "size", "heading", "defaultValue", "placeholder", "inputAriaLabel", "startWithEditOpen", "readModeProps", "editModeProps", "isLoading", "isInvalid", "isReadOnly"];
20
20
  /*
21
21
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
22
22
  * or more contributor license agreements. Licensed under the Elastic License
@@ -37,6 +37,7 @@ var EuiInlineEditTitle = function EuiInlineEditTitle(_ref) {
37
37
  size = _ref$size === void 0 ? 'm' : _ref$size,
38
38
  heading = _ref.heading,
39
39
  defaultValue = _ref.defaultValue,
40
+ placeholder = _ref.placeholder,
40
41
  inputAriaLabel = _ref.inputAriaLabel,
41
42
  startWithEditOpen = _ref.startWithEditOpen,
42
43
  _readModeProps = _ref.readModeProps,
@@ -65,6 +66,7 @@ var EuiInlineEditTitle = function EuiInlineEditTitle(_ref) {
65
66
  var formProps = {
66
67
  sizes: sizes,
67
68
  defaultValue: defaultValue,
69
+ placeholder: placeholder,
68
70
  inputAriaLabel: inputAriaLabel,
69
71
  startWithEditOpen: startWithEditOpen,
70
72
  readModeProps: readModeProps,
@@ -23,23 +23,25 @@ var _excluded = ["children", "className", "checkable"];
23
23
  * Side Public License, v 1.
24
24
  */
25
25
  var EuiKeyPadMenu = function EuiKeyPadMenu(_ref) {
26
+ var _checkable$legendProp;
26
27
  var children = _ref.children,
27
28
  className = _ref.className,
28
29
  checkable = _ref.checkable,
29
30
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
31
+ var hasCheckableConfig = (0, _typeof2.default)(checkable) === 'object';
30
32
  var classes = (0, _classnames.default)('euiKeyPadMenu', className);
31
33
  var theme = (0, _services.useEuiTheme)();
32
34
  var styles = (0, _key_pad_menu.euiKeyPadMenuStyles)(theme);
33
35
  var cssStyles = [styles.euiKeyPadMenu];
34
- var legend = (0, _typeof2.default)(checkable) === 'object' && checkable.legend ? (0, _react2.jsx)(_form_label.EuiFormLabel, (0, _extends2.default)({
35
- css: styles.euiKeyPadMenu__legend
36
- }, checkable.legendProps, {
36
+ var legendCssStyles = [styles.euiKeyPadMenu__legend, hasCheckableConfig && (checkable === null || checkable === void 0 ? void 0 : (_checkable$legendProp = checkable.legendProps) === null || _checkable$legendProp === void 0 ? void 0 : _checkable$legendProp.css)];
37
+ var legend = hasCheckableConfig && checkable.legend ? (0, _react2.jsx)(_form_label.EuiFormLabel, (0, _extends2.default)({}, checkable.legendProps, {
38
+ css: legendCssStyles,
37
39
  type: "legend"
38
40
  }), checkable.legend) : undefined;
39
41
  return checkable ? (0, _react2.jsx)("fieldset", (0, _extends2.default)({
40
42
  css: cssStyles,
41
43
  className: classes,
42
- "aria-label": (0, _typeof2.default)(checkable) === 'object' ? checkable.ariaLegend : undefined
44
+ "aria-label": hasCheckableConfig ? checkable.ariaLegend : undefined
43
45
  }, rest), legend, children) : (0, _react2.jsx)("ul", (0, _extends2.default)({
44
46
  css: cssStyles,
45
47
  className: classes
@@ -66,16 +66,15 @@ var EuiListGroupItem = function EuiListGroupItem(_ref) {
66
66
  var isDisabled = _isDisabled || !isHrefValid;
67
67
  var euiTheme = (0, _services.useEuiTheme)();
68
68
  var iconStyles = (0, _list_group_item.euiListGroupItemIconStyles)(euiTheme);
69
- var cssIconStyles = [iconStyles.euiListGroupItem__icon];
69
+ var cssIconStyles = [iconStyles.euiListGroupItem__icon, iconProps === null || iconProps === void 0 ? void 0 : iconProps.css];
70
70
  var iconNode;
71
71
  if (iconType) {
72
72
  iconNode = (0, _react2.jsx)(_icon.EuiIcon, (0, _extends2.default)({
73
73
  color: "inherit" // forces the icon to inherit its parent color
74
- ,
75
- css: cssIconStyles
76
74
  }, iconProps, {
77
75
  type: iconType,
78
- className: (0, _classnames.default)('euiListGroupItem__icon', iconProps === null || iconProps === void 0 ? void 0 : iconProps.className)
76
+ className: (0, _classnames.default)('euiListGroupItem__icon', iconProps === null || iconProps === void 0 ? void 0 : iconProps.className),
77
+ css: cssIconStyles
79
78
  }));
80
79
  if (icon) {
81
80
  console.warn('Both `iconType` and `icon` were passed to EuiListGroupItem but only one can exist. The `iconType` was used.');
@@ -14,7 +14,7 @@ var _panel = require("../../panel");
14
14
  var _global_styling = require("../../../global_styling");
15
15
  var _page_body = require("./page_body.styles");
16
16
  var _react2 = require("@emotion/react");
17
- var _excluded = ["children", "restrictWidth", "className", "component", "panelled", "panelProps", "paddingSize", "borderRadius"];
17
+ var _excluded = ["children", "restrictWidth", "className", "css", "component", "panelled", "panelProps", "paddingSize", "borderRadius"];
18
18
  /*
19
19
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
20
20
  * or more contributor license agreements. Licensed under the Elastic License
@@ -27,6 +27,7 @@ var EuiPageBody = function EuiPageBody(_ref) {
27
27
  _ref$restrictWidth = _ref.restrictWidth,
28
28
  restrictWidth = _ref$restrictWidth === void 0 ? false : _ref$restrictWidth,
29
29
  className = _ref.className,
30
+ css = _ref.css,
30
31
  _ref$component = _ref.component,
31
32
  Component = _ref$component === void 0 ? 'div' : _ref$component,
32
33
  panelled = _ref.panelled,
@@ -38,20 +39,28 @@ var EuiPageBody = function EuiPageBody(_ref) {
38
39
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
39
40
  // Set max-width as a style prop
40
41
  var widthStyles = (0, _restrict_width.setStyleForRestrictedPageWidth)(restrictWidth, rest === null || rest === void 0 ? void 0 : rest.style);
42
+
43
+ // Shared
44
+ var classes = (0, _classnames.default)('euiPageBody', className);
41
45
  var styles = (0, _page_body.euiPageBodyStyles)();
46
+ var cssStyles = [styles.euiPageBody, restrictWidth && styles.restrictWidth];
47
+
48
+ // Panelled
49
+ var panelClasses = (0, _classnames.default)(classes, panelProps === null || panelProps === void 0 ? void 0 : panelProps.className);
50
+ var panelCssStyles = [].concat(cssStyles, [panelProps === null || panelProps === void 0 ? void 0 : panelProps.css, css]);
51
+
52
+ // Non-panelled
42
53
  var padding = (0, _global_styling.useEuiPaddingCSS)()[paddingSize];
43
- var classes = (0, _classnames.default)('euiPageBody', className);
44
- var panelCSS = [styles.euiPageBody, restrictWidth && styles.restrictWidth];
45
- var componentCSS = [].concat(panelCSS, [padding]);
54
+ var componentCssStyles = [].concat(cssStyles, [padding, css]);
46
55
  return panelled ? (0, _react2.jsx)(_panel.EuiPanel, (0, _extends2.default)({
47
- className: classes,
48
- css: panelCSS,
49
56
  borderRadius: borderRadius,
50
57
  paddingSize: paddingSize
51
- }, panelProps, rest), children) : (0, _react2.jsx)(Component, (0, _extends2.default)({
58
+ }, panelProps, rest, {
59
+ className: panelClasses,
60
+ css: panelCssStyles
61
+ }), children) : (0, _react2.jsx)(Component, (0, _extends2.default)({}, rest, {
52
62
  className: classes,
53
- css: componentCSS
54
- }, rest, {
63
+ css: componentCssStyles,
55
64
  style: widthStyles
56
65
  }), children);
57
66
  };
@@ -116,10 +116,11 @@ var EuiPageHeaderContent = function EuiPageHeaderContent(_ref) {
116
116
  })) : undefined;
117
117
  var pageTitleNode;
118
118
  if (pageTitle) {
119
+ var iconCssStyles = [contentStyles.euiPageHeaderContent__titleIcon, iconProps === null || iconProps === void 0 ? void 0 : iconProps.css];
119
120
  var icon = iconType ? (0, _react2.jsx)(_icon.EuiIcon, (0, _extends2.default)({
120
- size: "xl",
121
- css: contentStyles.euiPageHeaderContent__titleIcon
121
+ size: "xl"
122
122
  }, iconProps, {
123
+ css: iconCssStyles,
123
124
  type: iconType
124
125
  })) : undefined;
125
126
  pageTitleNode = (0, _react2.jsx)(_title.EuiTitle, (0, _extends2.default)({}, pageTitleProps, {
@@ -47,7 +47,7 @@ var EuiPageSection = function EuiPageSection(_ref) {
47
47
  var colors = (0, _global_styling.useEuiBackgroundColorCSS)();
48
48
  var cssStyles = [styles.euiPageSection, grow && styles.grow, inlinePadding[paddingSize], bottomBorder === 'extended' && styles.border, alignment && styles[alignment], colors[color]];
49
49
  var contentStyles = (0, _page_section.euiPageSectionContentStyles)();
50
- var cssContentStyles = [contentStyles.euiPageSection__content, blockPadding[paddingSize], bottomBorder === true && styles.border, alignment.toLowerCase().includes('center') && contentStyles.center, restrictWidth && contentStyles.restrictWidth, (contentProps === null || contentProps === void 0 ? void 0 : contentProps.css) && contentProps.css];
50
+ var cssContentStyles = [contentStyles.euiPageSection__content, blockPadding[paddingSize], bottomBorder === true && styles.border, alignment.toLowerCase().includes('center') && contentStyles.center, restrictWidth && contentStyles.restrictWidth, contentProps === null || contentProps === void 0 ? void 0 : contentProps.css];
51
51
  return (0, _react2.jsx)(Component, (0, _extends2.default)({
52
52
  css: cssStyles
53
53
  }, rest), (0, _react2.jsx)("div", (0, _extends2.default)({}, contentProps, {
@@ -17,7 +17,6 @@ var _pagination_button_arrow = require("./pagination_button_arrow");
17
17
  var _services = require("../../services");
18
18
  var _accessibility = require("../accessibility");
19
19
  var _pagination = require("./pagination.styles");
20
- var _pagination_button2 = require("./pagination_button.styles");
21
20
  var _react2 = require("@emotion/react");
22
21
  var _excluded = ["className", "pageCount", "activePage", "onPageClick", "compressed", "aria-controls", "responsive"];
23
22
  /*
@@ -46,9 +45,7 @@ var EuiPagination = function EuiPagination(_ref) {
46
45
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
47
46
  var isResponsive = (0, _services.useIsWithinBreakpoints)(responsive, !!responsive);
48
47
  var euiTheme = (0, _services.useEuiTheme)();
49
- var paginationStyles = (0, _pagination.euiPaginationStyles)(euiTheme);
50
- var _euiPaginationButtonS = (0, _pagination_button2.euiPaginationButtonStyles)(euiTheme),
51
- isPlaceholder = _euiPaginationButtonS.isPlaceholder;
48
+ var styles = (0, _pagination.euiPaginationStyles)(euiTheme);
52
49
 
53
50
  // Force to `compressed` version if specified or within the responsive breakpoints
54
51
  var compressed = _compressed || isResponsive;
@@ -106,7 +103,7 @@ var EuiPagination = function EuiPagination(_ref) {
106
103
  if (compressed) {
107
104
  centerPageCount = (0, _react2.jsx)(_text.EuiText, {
108
105
  size: "s",
109
- css: paginationStyles.euiPagination__compressedText,
106
+ css: styles.euiPagination__compressedText,
110
107
  className: "euiPagination__compressedText"
111
108
  }, (0, _react2.jsx)(_i18n.EuiI18n, {
112
109
  token: "euiPagination.pageOfTotalCompressed",
@@ -144,7 +141,7 @@ var EuiPagination = function EuiPagination(_ref) {
144
141
  return (0, _react2.jsx)("li", {
145
142
  "aria-label": firstRangeAriaLabel,
146
143
  className: "euiPagination__item",
147
- css: isPlaceholder
144
+ css: styles.euiPagination__ellipsis
148
145
  }, "\u2026");
149
146
  }));
150
147
  } else if (firstPageInRange === 2) {
@@ -174,7 +171,7 @@ var EuiPagination = function EuiPagination(_ref) {
174
171
  return (0, _react2.jsx)("li", {
175
172
  "aria-label": lastRangeAriaLabel,
176
173
  className: "euiPagination__item",
177
- css: isPlaceholder
174
+ css: styles.euiPagination__ellipsis
178
175
  }, "\u2026");
179
176
  }));
180
177
  }
@@ -191,7 +188,7 @@ var EuiPagination = function EuiPagination(_ref) {
191
188
  });
192
189
  centerPageCount = (0, _react2.jsx)("ul", (0, _extends2.default)({
193
190
  className: "euiPagination__list",
194
- css: paginationStyles.euiPagination__list
191
+ css: styles.euiPagination__list
195
192
  }, accessibleName), firstPageButtons, selectablePages, lastPageButtons);
196
193
  }
197
194
  }
@@ -217,7 +214,7 @@ var EuiPagination = function EuiPagination(_ref) {
217
214
  // Create the whole string with total pageCount or `collection`
218
215
  var accessiblePageCount = "".concat(accessiblePageString(), " ").concat(ofLabel, " ").concat(accessibleCollectionString);
219
216
  return (0, _react2.jsx)("nav", (0, _extends2.default)({
220
- css: [paginationStyles.euiPagination, ";label:EuiPagination;"],
217
+ css: styles.euiPagination,
221
218
  className: classes
222
219
  }, rest), (0, _react2.jsx)(_accessibility.EuiScreenReaderOnly, null, (0, _react2.jsx)("span", {
223
220
  "aria-atomic": "true",
@@ -27,8 +27,9 @@ var euiPaginationStyles = function euiPaginationStyles(euiThemeContext) {
27
27
  // Base
28
28
  euiPagination: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiScrollBarStyles)(euiThemeContext), " display:flex;align-items:center;", (0, _global_styling.logicalCSSWithFallback)('overflow-y', 'hidden'), " ", (0, _global_styling.logicalCSSWithFallback)('overflow-x', 'auto'), ";;label:euiPagination;"),
29
29
  // Elements
30
- euiPagination__compressedText: /*#__PURE__*/(0, _react.css)("display:inline-flex;align-items:center;line-height:1!important;>span{", (0, _global_styling.logicalCSS)('margin-horizontal', euiTheme.size.s), " font-weight:", euiTheme.font.weight.semiBold, ";&:first-of-type{color:", euiTheme.colors.primaryText, ";}};label:euiPagination__compressedText;"),
31
- euiPagination__list: _ref
30
+ euiPagination__compressedText: /*#__PURE__*/(0, _react.css)("display:inline-flex;align-items:center;line-height:1;>span{", (0, _global_styling.logicalCSS)('margin-horizontal', euiTheme.size.s), " font-weight:", euiTheme.font.weight.semiBold, ";&:first-of-type{color:", euiTheme.colors.primaryText, ";}};label:euiPagination__compressedText;"),
31
+ euiPagination__list: _ref,
32
+ euiPagination__ellipsis: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.disabledText, ";font-size:", (0, _global_styling.euiFontSize)(euiThemeContext, 's').fontSize, ";", (0, _global_styling.logicalCSS)('padding-horizontal', euiTheme.size.s), " ", (0, _global_styling.logicalCSS)('height', euiTheme.size.l), ";;label:euiPagination__ellipsis;")
32
33
  };
33
34
  };
34
35
  exports.euiPaginationStyles = euiPaginationStyles;
@@ -15,7 +15,7 @@ var _i18n = require("../i18n");
15
15
  var _services = require("../../services");
16
16
  var _pagination_button = require("./pagination_button.styles");
17
17
  var _react2 = require("@emotion/react");
18
- var _excluded = ["className", "isActive", "isPlaceholder", "pageIndex", "totalPages"];
18
+ var _excluded = ["className", "isActive", "pageIndex", "totalPages"];
19
19
  /*
20
20
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
21
21
  * or more contributor license agreements. Licensed under the Elastic License
@@ -28,13 +28,12 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
28
28
  var EuiPaginationButton = function EuiPaginationButton(_ref) {
29
29
  var className = _ref.className,
30
30
  isActive = _ref.isActive,
31
- isPlaceholder = _ref.isPlaceholder,
32
31
  pageIndex = _ref.pageIndex,
33
32
  totalPages = _ref.totalPages,
34
33
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
35
34
  var euiTheme = (0, _services.useEuiTheme)();
36
35
  var styles = (0, _pagination_button.euiPaginationButtonStyles)(euiTheme);
37
- var paginationButtonCss = [styles.euiPaginationButton, isActive && styles.isActive, isPlaceholder && styles.isPlaceholder];
36
+ var paginationButtonCss = [styles.euiPaginationButton, isActive && styles.isActive];
38
37
  var classes = (0, _classnames.default)('euiPaginationButton', className);
39
38
  var props = _objectSpread(_objectSpread(_objectSpread({
40
39
  css: paginationButtonCss,
@@ -42,7 +41,7 @@ var EuiPaginationButton = function EuiPaginationButton(_ref) {
42
41
  size: 's',
43
42
  color: 'text',
44
43
  'data-test-subj': "pagination-button-".concat(pageIndex),
45
- isDisabled: isPlaceholder || isActive
44
+ isDisabled: isActive
46
45
  }, isActive && {
47
46
  'aria-current': true
48
47
  }), rest['aria-controls'] && {
@@ -3,10 +3,8 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.euiPaginationButtonStyles = exports.euiPaginationButtonArrowStyles = void 0;
6
+ exports.euiPaginationButtonStyles = void 0;
7
7
  var _react = require("@emotion/react");
8
- var _global_styling = require("../../global_styling");
9
- var _mixins = require("../../themes/amsterdam/global_styling/mixins");
10
8
  /*
11
9
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
12
10
  * or more contributor license agreements. Licensed under the Elastic License
@@ -17,27 +15,11 @@ var _mixins = require("../../themes/amsterdam/global_styling/mixins");
17
15
 
18
16
  var euiPaginationButtonStyles = function euiPaginationButtonStyles(euiThemeContext) {
19
17
  var euiTheme = euiThemeContext.euiTheme;
20
- var fontSizeS = (0, _global_styling.euiFontSize)(euiThemeContext, 's');
21
- var halfSizeM = (0, _global_styling.mathWithUnits)(euiTheme.size.m, function (x) {
22
- return x / 2;
23
- });
24
- var disabled = (0, _mixins.euiButtonEmptyColor)(euiThemeContext, 'disabled');
25
-
26
- // && to increase specificity. Can likely be removed once EuiButtonEmpty has been converted.
27
-
28
18
  return {
29
19
  // Base
30
- euiPaginationButton: /*#__PURE__*/(0, _react.css)("&&{", fontSizeS, " padding:0;", (0, _global_styling.logicalTextAlignCSS)('center'), " border-radius:", euiTheme.border.radius.medium, ";outline-offset:-", euiTheme.focus.width, ";};label:euiPaginationButton;"),
20
+ euiPaginationButton: /*#__PURE__*/(0, _react.css)("outline-offset:-", euiTheme.focus.width, ";;label:euiPaginationButton;"),
31
21
  // States
32
- isActive: /*#__PURE__*/(0, _react.css)("&&{font-weight:", euiTheme.font.weight.bold, ";color:", euiTheme.colors.primary, ";.euiButtonEmpty__content{cursor:default;}&&,&&:hover{text-decoration:underline;}};label:isActive;"),
33
- isPlaceholder: /*#__PURE__*/(0, _react.css)("&&{align-items:baseline;color:", disabled.color, ";", fontSizeS, " ", (0, _global_styling.logicalCSS)('padding-top', halfSizeM), " ", (0, _global_styling.logicalCSS)('padding-bottom', 0), " ", (0, _global_styling.logicalCSS)('padding-horizontal', euiTheme.size.s), " ", (0, _global_styling.logicalCSS)('height', euiTheme.size.l), ";};label:isPlaceholder;")
34
- };
35
- };
36
- exports.euiPaginationButtonStyles = euiPaginationButtonStyles;
37
- var euiPaginationButtonArrowStyles = function euiPaginationButtonArrowStyles(_ref) {
38
- var euiTheme = _ref.euiTheme;
39
- return {
40
- euiPaginationArrowButton: /*#__PURE__*/(0, _react.css)("outline-offset:-", euiTheme.focus.width, ";;label:euiPaginationArrowButton;")
22
+ isActive: /*#__PURE__*/(0, _react.css)("font-weight:", euiTheme.font.weight.bold, ";color:", euiTheme.colors.primary, ";&,&:hover{cursor:default;text-decoration:underline;};label:isActive;")
41
23
  };
42
24
  };
43
- exports.euiPaginationButtonArrowStyles = euiPaginationButtonArrowStyles;
25
+ exports.euiPaginationButtonStyles = euiPaginationButtonStyles;
@@ -37,7 +37,7 @@ var EuiPaginationButtonArrow = function EuiPaginationButtonArrow(_ref) {
37
37
  ariaControls = _ref.ariaControls,
38
38
  onClick = _ref.onClick;
39
39
  var euiTheme = (0, _services.useEuiTheme)();
40
- var styles = (0, _pagination_button.euiPaginationButtonArrowStyles)(euiTheme);
40
+ var styles = (0, _pagination_button.euiPaginationButtonStyles)(euiTheme);
41
41
  var labels = {
42
42
  first: (0, _i18n.useEuiI18n)('euiPaginationButtonArrow.firstPage', 'First page'),
43
43
  previous: (0, _i18n.useEuiI18n)('euiPaginationButtonArrow.previousPage', 'Previous page'),
@@ -50,7 +50,7 @@ var EuiPaginationButtonArrow = function EuiPaginationButtonArrow(_ref) {
50
50
  buttonProps['aria-controls'] = ariaControls;
51
51
  }
52
52
  return (0, _react2.jsx)(_button_icon.EuiButtonIcon, (0, _extends2.default)({
53
- css: styles.euiPaginationArrowButton,
53
+ css: styles.euiPaginationButton,
54
54
  className: (0, _classnames.default)('euiPaginationArrowButton', className),
55
55
  color: "text",
56
56
  "aria-label": labels[type],