@elastic/eui 83.0.0 → 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 (349) 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_button.js +1 -1
  81. package/es/components/progress/progress.js +4 -4
  82. package/es/components/resizable_container/resizable_panel.js +5 -5
  83. package/es/components/selectable/selectable_list/selectable_list.js +1 -1
  84. package/es/components/selectable/selectable_list/selectable_list_item.js +1 -1
  85. package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
  86. package/es/components/suggest/suggest.js +1 -1
  87. package/es/components/suggest/suggest_item.js +1 -1
  88. package/es/components/table/table_header_button.js +1 -1
  89. package/es/components/timeline/timeline_item_icon.js +1 -1
  90. package/es/components/toast/global_toast_list.js +1 -1
  91. package/es/components/toast/toast.js +1 -1
  92. package/es/components/tool_tip/icon_tip.js +1 -1
  93. package/es/global_styling/functions/logicals.json +2 -2
  94. package/es/test/index.d.ts +1 -0
  95. package/es/test/required_props.js +16 -1
  96. package/eui.d.ts +60 -19
  97. package/i18ntokens.json +36 -36
  98. package/lib/components/accordion/accordion.js +6 -7
  99. package/lib/components/avatar/avatar.js +1 -1
  100. package/lib/components/badge/badge.js +4 -5
  101. package/lib/components/badge/beta_badge/beta_badge.js +1 -1
  102. package/lib/components/basic_table/basic_table.js +1 -1
  103. package/lib/components/basic_table/collapsed_item_actions.js +1 -1
  104. package/lib/components/basic_table/in_memory_table.js +1 -1
  105. package/lib/components/button/button.js +8 -5
  106. package/lib/components/button/button_display/_button_display.js +1 -1
  107. package/lib/components/button/button_display/_button_display_content.js +1 -1
  108. package/lib/components/button/button_empty/button_empty.js +1 -1
  109. package/lib/components/button/button_group/button_group.js +1 -1
  110. package/lib/components/button/button_group/button_group_button.js +1 -1
  111. package/lib/components/button/button_icon/button_icon.js +1 -1
  112. package/lib/components/call_out/call_out.js +1 -1
  113. package/lib/components/card/card.js +6 -6
  114. package/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
  115. package/lib/components/comment_list/comment.js +2 -2
  116. package/lib/components/comment_list/comment_event.js +1 -1
  117. package/lib/components/comment_list/comment_list.js +2 -2
  118. package/lib/components/comment_list/comment_timeline.js +1 -1
  119. package/lib/components/datagrid/body/data_grid_body.js +13 -13
  120. package/lib/components/datagrid/body/data_grid_body_custom.js +13 -13
  121. package/lib/components/datagrid/body/data_grid_body_virtualized.js +13 -13
  122. package/lib/components/datagrid/body/data_grid_cell.js +24 -24
  123. package/lib/components/datagrid/body/header/data_grid_header_cell.js +12 -12
  124. package/lib/components/datagrid/body/header/data_grid_header_row.js +13 -13
  125. package/lib/components/datagrid/controls/column_sorting_draggable.js +1 -1
  126. package/lib/components/datagrid/data_grid.js +13 -13
  127. package/lib/components/datagrid/utils/in_memory.js +12 -12
  128. package/lib/components/date_picker/date_picker.js +2 -2
  129. package/lib/components/date_picker/date_picker_range.js +1 -1
  130. package/lib/components/empty_prompt/empty_prompt.js +1 -1
  131. package/lib/components/expression/expression.js +10 -11
  132. package/lib/components/facet/facet_button.js +1 -1
  133. package/lib/components/flyout/flyout.js +2 -2
  134. package/lib/components/form/field_number/field_number.js +1 -1
  135. package/lib/components/form/field_text/field_text.js +2 -2
  136. package/lib/components/form/form_control_layout/form_control_layout.js +2 -2
  137. package/lib/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
  138. package/lib/components/form/form_control_layout/form_control_layout_icons.js +2 -2
  139. package/lib/components/header/header.js +8 -2
  140. package/lib/components/header/header.styles.js +66 -0
  141. package/lib/components/header/header_links/header_link.js +1 -1
  142. package/lib/components/header/header_links/header_links.js +1 -1
  143. package/lib/components/header/{header_logo.js → header_logo/header_logo.js} +9 -4
  144. package/lib/components/header/header_logo/header_logo.styles.js +28 -0
  145. package/lib/components/header/header_logo/index.js +12 -0
  146. package/lib/components/icon/assets/sparkles.js +42 -0
  147. package/lib/components/icon/icon.js +2 -1
  148. package/lib/components/icon/icon_glyphs.a11y.js +1 -1
  149. package/lib/components/icon/icon_map.js +1 -0
  150. package/lib/components/icon/svgs/sparkles.svg +3 -0
  151. package/lib/components/image/image_fullscreen_wrapper.js +4 -4
  152. package/lib/components/image/image_wrapper.js +4 -4
  153. package/lib/components/inline_edit/inline_edit_form.js +7 -4
  154. package/lib/components/inline_edit/inline_edit_form.styles.js +3 -1
  155. package/lib/components/inline_edit/inline_edit_text.js +4 -1
  156. package/lib/components/inline_edit/inline_edit_title.js +4 -1
  157. package/lib/components/key_pad_menu/key_pad_menu.js +6 -4
  158. package/lib/components/key_pad_menu/key_pad_menu_item.js +1 -1
  159. package/lib/components/list_group/list_group.js +2 -2
  160. package/lib/components/list_group/list_group_item.js +5 -6
  161. package/lib/components/list_group/list_group_item_extra_action.js +1 -1
  162. package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
  163. package/lib/components/loading/loading_logo.js +1 -1
  164. package/lib/components/markdown_editor/markdown_editor.js +1 -1
  165. package/lib/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
  166. package/lib/components/markdown_editor/markdown_editor_footer.js +1 -1
  167. package/lib/components/markdown_editor/markdown_editor_toolbar.js +1 -1
  168. package/lib/components/notification/notification_event.js +2 -2
  169. package/lib/components/notification/notification_event_meta.js +1 -1
  170. package/lib/components/page/page_body/page_body.js +18 -9
  171. package/lib/components/page/page_header/page_header_content.js +4 -3
  172. package/lib/components/page/page_section/page_section.js +1 -1
  173. package/lib/components/progress/progress.js +4 -4
  174. package/lib/components/resizable_container/resizable_panel.js +5 -5
  175. package/lib/components/selectable/selectable_list/selectable_list.js +1 -1
  176. package/lib/components/selectable/selectable_list/selectable_list_item.js +1 -1
  177. package/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
  178. package/lib/components/suggest/suggest.js +1 -1
  179. package/lib/components/suggest/suggest_item.js +1 -1
  180. package/lib/components/table/table_header_button.js +1 -1
  181. package/lib/components/timeline/timeline_item_icon.js +1 -1
  182. package/lib/components/toast/global_toast_list.js +1 -1
  183. package/lib/components/toast/toast.js +1 -1
  184. package/lib/components/tool_tip/icon_tip.js +1 -1
  185. package/lib/global_styling/functions/logicals.json +2 -2
  186. package/lib/test/index.d.ts +1 -0
  187. package/lib/test/required_props.js +20 -8
  188. package/optimize/es/components/accordion/accordion.js +6 -7
  189. package/optimize/es/components/badge/badge.js +3 -4
  190. package/optimize/es/components/button/button.js +8 -5
  191. package/optimize/es/components/card/card.js +5 -5
  192. package/optimize/es/components/expression/expression.js +10 -11
  193. package/optimize/es/components/flyout/flyout.js +2 -2
  194. package/optimize/es/components/header/header.js +8 -2
  195. package/optimize/es/components/header/header.styles.js +58 -0
  196. package/optimize/es/components/header/{header_logo.js → header_logo/header_logo.js} +8 -3
  197. package/optimize/es/components/header/header_logo/header_logo.styles.js +21 -0
  198. package/optimize/es/components/header/header_logo/index.js +9 -0
  199. package/optimize/es/components/icon/assets/sparkles.js +33 -0
  200. package/optimize/es/components/icon/icon.js +1 -0
  201. package/optimize/es/components/icon/icon_glyphs.a11y.js +1 -1
  202. package/optimize/es/components/icon/icon_map.js +1 -0
  203. package/optimize/es/components/image/image_fullscreen_wrapper.js +4 -4
  204. package/optimize/es/components/image/image_wrapper.js +4 -4
  205. package/optimize/es/components/inline_edit/inline_edit_form.js +6 -4
  206. package/optimize/es/components/inline_edit/inline_edit_form.styles.js +3 -1
  207. package/optimize/es/components/inline_edit/inline_edit_text.js +3 -1
  208. package/optimize/es/components/inline_edit/inline_edit_title.js +3 -1
  209. package/optimize/es/components/key_pad_menu/key_pad_menu.js +6 -4
  210. package/optimize/es/components/list_group/list_group_item.js +3 -4
  211. package/optimize/es/components/page/page_body/page_body.js +18 -9
  212. package/optimize/es/components/page/page_header/page_header_content.js +3 -2
  213. package/optimize/es/components/page/page_section/page_section.js +1 -1
  214. package/optimize/es/components/progress/progress.js +4 -4
  215. package/optimize/es/components/resizable_container/resizable_panel.js +5 -5
  216. package/optimize/es/global_styling/functions/logicals.json +2 -2
  217. package/optimize/es/test/index.d.ts +1 -0
  218. package/optimize/es/test/required_props.js +16 -1
  219. package/optimize/lib/components/accordion/accordion.js +6 -7
  220. package/optimize/lib/components/badge/badge.js +3 -4
  221. package/optimize/lib/components/button/button.js +8 -5
  222. package/optimize/lib/components/card/card.js +5 -5
  223. package/optimize/lib/components/expression/expression.js +10 -11
  224. package/optimize/lib/components/flyout/flyout.js +2 -2
  225. package/optimize/lib/components/header/header.js +8 -2
  226. package/optimize/lib/components/header/header.styles.js +66 -0
  227. package/optimize/lib/components/header/{header_logo.js → header_logo/header_logo.js} +8 -3
  228. package/optimize/lib/components/header/header_logo/header_logo.styles.js +28 -0
  229. package/optimize/lib/components/header/header_logo/index.js +12 -0
  230. package/optimize/lib/components/icon/assets/sparkles.js +42 -0
  231. package/optimize/lib/components/icon/icon.js +1 -0
  232. package/optimize/lib/components/icon/icon_glyphs.a11y.js +1 -1
  233. package/optimize/lib/components/icon/icon_map.js +1 -0
  234. package/optimize/lib/components/icon/svgs/sparkles.svg +3 -0
  235. package/optimize/lib/components/image/image_fullscreen_wrapper.js +4 -4
  236. package/optimize/lib/components/image/image_wrapper.js +4 -4
  237. package/optimize/lib/components/inline_edit/inline_edit_form.js +6 -4
  238. package/optimize/lib/components/inline_edit/inline_edit_form.styles.js +3 -1
  239. package/optimize/lib/components/inline_edit/inline_edit_text.js +3 -1
  240. package/optimize/lib/components/inline_edit/inline_edit_title.js +3 -1
  241. package/optimize/lib/components/key_pad_menu/key_pad_menu.js +6 -4
  242. package/optimize/lib/components/list_group/list_group_item.js +3 -4
  243. package/optimize/lib/components/page/page_body/page_body.js +18 -9
  244. package/optimize/lib/components/page/page_header/page_header_content.js +3 -2
  245. package/optimize/lib/components/page/page_section/page_section.js +1 -1
  246. package/optimize/lib/components/progress/progress.js +4 -4
  247. package/optimize/lib/components/resizable_container/resizable_panel.js +5 -5
  248. package/optimize/lib/global_styling/functions/logicals.json +2 -2
  249. package/optimize/lib/test/index.d.ts +1 -0
  250. package/optimize/lib/test/required_props.js +20 -8
  251. package/package.json +3 -5
  252. package/src/components/datagrid/_data_grid_data_row.scss +27 -0
  253. package/src/components/header/_index.scss +0 -6
  254. package/src/components/selectable/selectable_templates/_index.scss +0 -1
  255. package/src/global_styling/variables/_header.scss +2 -5
  256. package/src/themes/amsterdam/global_styling/variables/_index.scss +0 -1
  257. package/src/themes/amsterdam/overrides/_header.scss +0 -24
  258. package/test-env/components/accordion/accordion.js +6 -7
  259. package/test-env/components/avatar/avatar.js +1 -1
  260. package/test-env/components/badge/badge.js +4 -5
  261. package/test-env/components/badge/beta_badge/beta_badge.js +1 -1
  262. package/test-env/components/basic_table/basic_table.js +1 -1
  263. package/test-env/components/basic_table/collapsed_item_actions.js +1 -1
  264. package/test-env/components/basic_table/in_memory_table.js +1 -1
  265. package/test-env/components/button/button.js +8 -5
  266. package/test-env/components/button/button_display/_button_display.js +1 -1
  267. package/test-env/components/button/button_display/_button_display_content.js +1 -1
  268. package/test-env/components/button/button_empty/button_empty.js +1 -1
  269. package/test-env/components/button/button_group/button_group.js +1 -1
  270. package/test-env/components/button/button_group/button_group_button.js +1 -1
  271. package/test-env/components/button/button_icon/button_icon.js +1 -1
  272. package/test-env/components/call_out/call_out.js +1 -1
  273. package/test-env/components/card/card.js +6 -6
  274. package/test-env/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
  275. package/test-env/components/comment_list/comment.js +2 -2
  276. package/test-env/components/comment_list/comment_event.js +1 -1
  277. package/test-env/components/comment_list/comment_list.js +2 -2
  278. package/test-env/components/comment_list/comment_timeline.js +1 -1
  279. package/test-env/components/datagrid/body/data_grid_body.js +13 -13
  280. package/test-env/components/datagrid/body/data_grid_body_custom.js +13 -13
  281. package/test-env/components/datagrid/body/data_grid_body_virtualized.js +13 -13
  282. package/test-env/components/datagrid/body/data_grid_cell.js +24 -24
  283. package/test-env/components/datagrid/body/header/data_grid_header_cell.js +12 -12
  284. package/test-env/components/datagrid/body/header/data_grid_header_row.js +13 -13
  285. package/test-env/components/datagrid/controls/column_sorting_draggable.js +1 -1
  286. package/test-env/components/datagrid/data_grid.js +13 -13
  287. package/test-env/components/datagrid/utils/in_memory.js +12 -12
  288. package/test-env/components/date_picker/date_picker.js +2 -2
  289. package/test-env/components/date_picker/date_picker_range.js +1 -1
  290. package/test-env/components/empty_prompt/empty_prompt.js +1 -1
  291. package/test-env/components/expression/expression.js +10 -11
  292. package/test-env/components/facet/facet_button.js +1 -1
  293. package/test-env/components/form/field_number/field_number.js +1 -1
  294. package/test-env/components/form/field_text/field_text.js +2 -2
  295. package/test-env/components/form/form_control_layout/form_control_layout.js +2 -2
  296. package/test-env/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
  297. package/test-env/components/form/form_control_layout/form_control_layout_icons.js +2 -2
  298. package/test-env/components/header/header.js +8 -2
  299. package/test-env/components/header/header.styles.js +66 -0
  300. package/test-env/components/header/header_links/header_link.js +1 -1
  301. package/test-env/components/header/header_links/header_links.js +1 -1
  302. package/test-env/components/header/{header_logo.js → header_logo/header_logo.js} +9 -4
  303. package/test-env/components/header/header_logo/header_logo.styles.js +28 -0
  304. package/test-env/components/header/header_logo/index.js +12 -0
  305. package/test-env/components/icon/assets/sparkles.js +42 -0
  306. package/test-env/components/icon/icon_glyphs.a11y.js +1 -1
  307. package/test-env/components/icon/icon_map.js +1 -0
  308. package/test-env/components/image/image_fullscreen_wrapper.js +4 -4
  309. package/test-env/components/image/image_wrapper.js +4 -4
  310. package/test-env/components/inline_edit/inline_edit_form.js +7 -4
  311. package/test-env/components/inline_edit/inline_edit_form.styles.js +3 -1
  312. package/test-env/components/inline_edit/inline_edit_text.js +4 -1
  313. package/test-env/components/inline_edit/inline_edit_title.js +4 -1
  314. package/test-env/components/key_pad_menu/key_pad_menu.js +6 -4
  315. package/test-env/components/key_pad_menu/key_pad_menu_item.js +1 -1
  316. package/test-env/components/list_group/list_group.js +2 -2
  317. package/test-env/components/list_group/list_group_item.js +5 -6
  318. package/test-env/components/list_group/list_group_item_extra_action.js +1 -1
  319. package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
  320. package/test-env/components/loading/loading_logo.js +1 -1
  321. package/test-env/components/markdown_editor/markdown_editor.js +1 -1
  322. package/test-env/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
  323. package/test-env/components/markdown_editor/markdown_editor_footer.js +1 -1
  324. package/test-env/components/markdown_editor/markdown_editor_toolbar.js +1 -1
  325. package/test-env/components/notification/notification_event.js +2 -2
  326. package/test-env/components/notification/notification_event_meta.js +1 -1
  327. package/test-env/components/page/page_body/page_body.js +18 -9
  328. package/test-env/components/page/page_header/page_header_content.js +4 -3
  329. package/test-env/components/page/page_section/page_section.js +1 -1
  330. package/test-env/components/progress/progress.js +4 -4
  331. package/test-env/components/resizable_container/resizable_panel.js +5 -5
  332. package/test-env/components/selectable/selectable_list/selectable_list.js +1 -1
  333. package/test-env/components/selectable/selectable_list/selectable_list_item.js +1 -1
  334. package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
  335. package/test-env/components/suggest/suggest.js +1 -1
  336. package/test-env/components/suggest/suggest_item.js +1 -1
  337. package/test-env/components/table/table_header_button.js +1 -1
  338. package/test-env/components/timeline/timeline_item_icon.js +1 -1
  339. package/test-env/components/toast/global_toast_list.js +1 -1
  340. package/test-env/components/toast/toast.js +1 -1
  341. package/test-env/components/tool_tip/icon_tip.js +1 -1
  342. package/test-env/global_styling/functions/logicals.json +2 -2
  343. package/test-env/test/required_props.js +20 -8
  344. package/src/components/header/_header.scss +0 -29
  345. package/src/components/header/_header_logo.scss +0 -40
  346. package/src/components/header/_header_profile.scss +0 -3
  347. package/src/components/header/_mixins.scss +0 -36
  348. package/src/components/selectable/selectable_templates/_selectable_template_sitewide.scss +0 -31
  349. package/src/themes/amsterdam/global_styling/variables/_header.scss +0 -7
@@ -0,0 +1,33 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ var _excluded = ["title", "titleId"];
4
+ /*
5
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
6
+ * or more contributor license agreements. Licensed under the Elastic License
7
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
8
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
9
+ * Side Public License, v 1.
10
+ */
11
+
12
+ // THIS IS A GENERATED FILE. DO NOT MODIFY MANUALLY. @see scripts/compile-icons.js
13
+
14
+ import * as React from 'react';
15
+ import { jsx as ___EmotionJSX } from "@emotion/react";
16
+ var EuiIconSparkles = function EuiIconSparkles(_ref) {
17
+ var title = _ref.title,
18
+ titleId = _ref.titleId,
19
+ props = _objectWithoutProperties(_ref, _excluded);
20
+ return ___EmotionJSX("svg", _extends({
21
+ xmlns: "http://www.w3.org/2000/svg",
22
+ width: 16,
23
+ height: 16,
24
+ viewBox: "0 0 16 16",
25
+ "aria-labelledby": titleId
26
+ }, props), title ? ___EmotionJSX("title", {
27
+ id: titleId
28
+ }, title) : null, ___EmotionJSX("path", {
29
+ fillRule: "evenodd",
30
+ 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"
31
+ }));
32
+ };
33
+ export var icon = EuiIconSparkles;
@@ -210,6 +210,7 @@ export var EuiIconClass = /*#__PURE__*/function (_PureComponent) {
210
210
  src: icon,
211
211
  className: classes,
212
212
  css: cssStyles,
213
+ style: style,
213
214
  tabIndex: tabIndex
214
215
  }, rest));
215
216
  } else {
@@ -15,7 +15,7 @@ import { EuiIcon } from './icon';
15
15
  import { jsx as ___EmotionJSX } from "@emotion/react";
16
16
  describe('EuiIcons', function () {
17
17
  describe('Automated accessibility check for glyph icons', function () {
18
- 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'];
18
+ 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'];
19
19
  var GlyphGrid = function GlyphGrid() {
20
20
  return ___EmotionJSX("div", null, GlyphIcons.map(function (glyph) {
21
21
  return ___EmotionJSX(EuiIcon, {
@@ -353,6 +353,7 @@ export var typeToPathMap = {
353
353
  sortable: 'sortable',
354
354
  spaces: 'spaces',
355
355
  spacesApp: 'app_spaces',
356
+ sparkles: 'sparkles',
356
357
  sqlApp: 'app_sql',
357
358
  starEmpty: 'star_empty',
358
359
  starEmptySpace: 'star_empty_space',
@@ -32,7 +32,7 @@ export var EuiImageFullScreenWrapper = function EuiImageFullScreenWrapper(_ref)
32
32
  onFullScreen = _ref.onFullScreen;
33
33
  var euiTheme = useEuiTheme();
34
34
  var styles = euiImageFullscreenWrapperStyles(euiTheme);
35
- var cssStyles = [styles.euiImageFullscreenWrapper];
35
+ var cssStyles = [styles.euiImageFullscreenWrapper, wrapperProps === null || wrapperProps === void 0 ? void 0 : wrapperProps.css];
36
36
  var classes = classNames('euiImageFullScreenWrapper', wrapperProps && wrapperProps.className);
37
37
  var onKeyDown = function onKeyDown(event) {
38
38
  if (event.key === keys.ESCAPE) {
@@ -58,10 +58,10 @@ export var EuiImageFullScreenWrapper = function EuiImageFullScreenWrapper(_ref)
58
58
  preventScrollOnFocus: true,
59
59
  onClickOutside: closeFullScreen
60
60
  }, ___EmotionJSX(React.Fragment, null, ___EmotionJSX("figure", _extends({
61
- "aria-label": optionalCaptionText,
62
- css: cssStyles
61
+ "aria-label": optionalCaptionText
63
62
  }, wrapperProps, {
64
- className: classes
63
+ className: classes,
64
+ css: cssStyles
65
65
  }), ___EmotionJSX(EuiImageButton, {
66
66
  hasAlt: !!alt,
67
67
  hasShadow: hasShadow,
@@ -36,16 +36,16 @@ export var EuiImageWrapper = function EuiImageWrapper(_ref) {
36
36
  var classes = classNames('euiImageWrapper', wrapperProps && wrapperProps.className);
37
37
  var euiTheme = useEuiTheme();
38
38
  var styles = euiImageWrapperStyles(euiTheme);
39
- var cssFigureStyles = [styles.euiImageWrapper, float && styles[float], margin && styles[margin], allowFullScreen && styles.allowFullScreen, isFullWidth && styles.fullWidth];
39
+ 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];
40
40
  var _useInnerText = useInnerText(),
41
41
  _useInnerText2 = _slicedToArray(_useInnerText, 2),
42
42
  optionalCaptionRef = _useInnerText2[0],
43
43
  optionalCaptionText = _useInnerText2[1];
44
44
  return ___EmotionJSX("figure", _extends({
45
- "aria-label": optionalCaptionText,
46
- css: cssFigureStyles
45
+ "aria-label": optionalCaptionText
47
46
  }, wrapperProps, {
48
- className: classes
47
+ className: classes,
48
+ css: cssFigureStyles
49
49
  }), allowFullScreen ? ___EmotionJSX(React.Fragment, null, ___EmotionJSX(EuiImageButton, {
50
50
  hasAlt: !!alt,
51
51
  hasShadow: hasShadow,
@@ -42,6 +42,7 @@ export var EuiInlineEditForm = function EuiInlineEditForm(_ref) {
42
42
  children = _ref.children,
43
43
  sizes = _ref.sizes,
44
44
  defaultValue = _ref.defaultValue,
45
+ placeholder = _ref.placeholder,
45
46
  inputAriaLabel = _ref.inputAriaLabel,
46
47
  startWithEditOpen = _ref.startWithEditOpen,
47
48
  readModeProps = _ref.readModeProps,
@@ -53,8 +54,6 @@ export var EuiInlineEditForm = function EuiInlineEditForm(_ref) {
53
54
  isReadOnly = _ref.isReadOnly;
54
55
  var classes = classNames('euiInlineEdit', className);
55
56
  var euiTheme = useEuiTheme();
56
- var readModeStyles = euiInlineEditReadModeStyles(euiTheme);
57
- var readModeCssStyles = [readModeStyles.euiInlineEditReadMode, isReadOnly && readModeStyles.isReadOnly];
58
57
  var _euiFormVariables = euiFormVariables(euiTheme),
59
58
  controlHeight = _euiFormVariables.controlHeight,
60
59
  controlCompressedHeight = _euiFormVariables.controlCompressedHeight;
@@ -83,6 +82,8 @@ export var EuiInlineEditForm = function EuiInlineEditForm(_ref) {
83
82
  _useState6 = _slicedToArray(_useState5, 2),
84
83
  readModeValue = _useState6[0],
85
84
  setReadModeValue = _useState6[1];
85
+ var readModeStyles = euiInlineEditReadModeStyles(euiTheme);
86
+ var readModeCssStyles = [readModeStyles.euiInlineEditReadMode, isReadOnly && readModeStyles.isReadOnly, placeholder && !readModeValue && readModeStyles.hasPlaceholder];
86
87
  var activateEditMode = function activateEditMode() {
87
88
  setIsEditing(true);
88
89
  // Waits a tick for state to settle and the focus target to render
@@ -178,7 +179,8 @@ export var EuiInlineEditForm = function EuiInlineEditForm(_ref) {
178
179
  compressed: sizes.compressed,
179
180
  isInvalid: isInvalid,
180
181
  isLoading: isLoading,
181
- "data-test-subj": "euiInlineEditModeInput"
182
+ "data-test-subj": "euiInlineEditModeInput",
183
+ placeholder: placeholder
182
184
  }, editModeProps === null || editModeProps === void 0 ? void 0 : editModeProps.inputProps, {
183
185
  inputRef: setEditModeRefs,
184
186
  onChange: function onChange(e) {
@@ -265,7 +267,7 @@ export var EuiInlineEditForm = function EuiInlineEditForm(_ref) {
265
267
  activateEditMode();
266
268
  readModeProps === null || readModeProps === void 0 ? void 0 : (_readModeProps$onClic = readModeProps.onClick) === null || _readModeProps$onClic === void 0 ? void 0 : _readModeProps$onClic.call(readModeProps, e);
267
269
  }
268
- }), children(readModeValue)), ___EmotionJSX("span", {
270
+ }), children(readModeValue || placeholder)), ___EmotionJSX("span", {
269
271
  id: readModeDescribedById,
270
272
  hidden: true
271
273
  }, !isReadOnly && ___EmotionJSX(EuiI18n, {
@@ -7,11 +7,13 @@
7
7
  */
8
8
 
9
9
  import { css } from '@emotion/react';
10
+ import { tint } from '../../services';
10
11
  export var euiInlineEditReadModeStyles = function euiInlineEditReadModeStyles(_ref) {
11
12
  var euiTheme = _ref.euiTheme;
12
13
  return {
13
14
  euiInlineEditReadMode: /*#__PURE__*/css(";label:euiInlineEditReadMode;"),
14
15
  // Override the cursor and allow users to highlight text when in the read only state
15
- isReadOnly: /*#__PURE__*/css("&:disabled{cursor:text;color:", euiTheme.colors.text, ";user-select:text;};label:isReadOnly;")
16
+ isReadOnly: /*#__PURE__*/css("&:disabled{cursor:text;color:", euiTheme.colors.text, ";user-select:text;};label:isReadOnly;"),
17
+ hasPlaceholder: /*#__PURE__*/css(".euiText,.euiTitle{color:", tint(euiTheme.colors.subduedText, 0.08), ";};label:hasPlaceholder;")
16
18
  };
17
19
  };
@@ -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 = ["children", "className", "size", "defaultValue", "inputAriaLabel", "startWithEditOpen", "readModeProps", "editModeProps", "isLoading", "isInvalid", "isReadOnly"];
4
+ var _excluded = ["children", "className", "size", "defaultValue", "placeholder", "inputAriaLabel", "startWithEditOpen", "readModeProps", "editModeProps", "isLoading", "isInvalid", "isReadOnly"];
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
  /*
@@ -25,6 +25,7 @@ export var EuiInlineEditText = function EuiInlineEditText(_ref) {
25
25
  _ref$size = _ref.size,
26
26
  size = _ref$size === void 0 ? 'm' : _ref$size,
27
27
  defaultValue = _ref.defaultValue,
28
+ placeholder = _ref.placeholder,
28
29
  inputAriaLabel = _ref.inputAriaLabel,
29
30
  startWithEditOpen = _ref.startWithEditOpen,
30
31
  _readModeProps = _ref.readModeProps,
@@ -48,6 +49,7 @@ export var EuiInlineEditText = function EuiInlineEditText(_ref) {
48
49
  var formProps = {
49
50
  sizes: sizes,
50
51
  defaultValue: defaultValue,
52
+ placeholder: placeholder,
51
53
  inputAriaLabel: inputAriaLabel,
52
54
  startWithEditOpen: startWithEditOpen,
53
55
  readModeProps: readModeProps,
@@ -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 = ["children", "className", "size", "heading", "defaultValue", "inputAriaLabel", "startWithEditOpen", "readModeProps", "editModeProps", "isLoading", "isInvalid", "isReadOnly"];
4
+ var _excluded = ["children", "className", "size", "heading", "defaultValue", "placeholder", "inputAriaLabel", "startWithEditOpen", "readModeProps", "editModeProps", "isLoading", "isInvalid", "isReadOnly"];
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
  /*
@@ -27,6 +27,7 @@ export var EuiInlineEditTitle = function EuiInlineEditTitle(_ref) {
27
27
  size = _ref$size === void 0 ? 'm' : _ref$size,
28
28
  heading = _ref.heading,
29
29
  defaultValue = _ref.defaultValue,
30
+ placeholder = _ref.placeholder,
30
31
  inputAriaLabel = _ref.inputAriaLabel,
31
32
  startWithEditOpen = _ref.startWithEditOpen,
32
33
  _readModeProps = _ref.readModeProps,
@@ -55,6 +56,7 @@ export var EuiInlineEditTitle = function EuiInlineEditTitle(_ref) {
55
56
  var formProps = {
56
57
  sizes: sizes,
57
58
  defaultValue: defaultValue,
59
+ placeholder: placeholder,
58
60
  inputAriaLabel: inputAriaLabel,
59
61
  startWithEditOpen: startWithEditOpen,
60
62
  readModeProps: readModeProps,
@@ -17,23 +17,25 @@ import { useEuiTheme } from '../../services';
17
17
  import { euiKeyPadMenuStyles } from './key_pad_menu.styles';
18
18
  import { jsx as ___EmotionJSX } from "@emotion/react";
19
19
  export var EuiKeyPadMenu = function EuiKeyPadMenu(_ref) {
20
+ var _checkable$legendProp;
20
21
  var children = _ref.children,
21
22
  className = _ref.className,
22
23
  checkable = _ref.checkable,
23
24
  rest = _objectWithoutProperties(_ref, _excluded);
25
+ var hasCheckableConfig = _typeof(checkable) === 'object';
24
26
  var classes = classNames('euiKeyPadMenu', className);
25
27
  var theme = useEuiTheme();
26
28
  var styles = euiKeyPadMenuStyles(theme);
27
29
  var cssStyles = [styles.euiKeyPadMenu];
28
- var legend = _typeof(checkable) === 'object' && checkable.legend ? ___EmotionJSX(EuiFormLabel, _extends({
29
- css: styles.euiKeyPadMenu__legend
30
- }, checkable.legendProps, {
30
+ 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)];
31
+ var legend = hasCheckableConfig && checkable.legend ? ___EmotionJSX(EuiFormLabel, _extends({}, checkable.legendProps, {
32
+ css: legendCssStyles,
31
33
  type: "legend"
32
34
  }), checkable.legend) : undefined;
33
35
  return checkable ? ___EmotionJSX("fieldset", _extends({
34
36
  css: cssStyles,
35
37
  className: classes,
36
- "aria-label": _typeof(checkable) === 'object' ? checkable.ariaLegend : undefined
38
+ "aria-label": hasCheckableConfig ? checkable.ariaLegend : undefined
37
39
  }, rest), legend, children) : ___EmotionJSX("ul", _extends({
38
40
  css: cssStyles,
39
41
  className: classes
@@ -55,16 +55,15 @@ export var EuiListGroupItem = function EuiListGroupItem(_ref) {
55
55
  var isDisabled = _isDisabled || !isHrefValid;
56
56
  var euiTheme = useEuiTheme();
57
57
  var iconStyles = euiListGroupItemIconStyles(euiTheme);
58
- var cssIconStyles = [iconStyles.euiListGroupItem__icon];
58
+ var cssIconStyles = [iconStyles.euiListGroupItem__icon, iconProps === null || iconProps === void 0 ? void 0 : iconProps.css];
59
59
  var iconNode;
60
60
  if (iconType) {
61
61
  iconNode = ___EmotionJSX(EuiIcon, _extends({
62
62
  color: "inherit" // forces the icon to inherit its parent color
63
- ,
64
- css: cssIconStyles
65
63
  }, iconProps, {
66
64
  type: iconType,
67
- className: classNames('euiListGroupItem__icon', iconProps === null || iconProps === void 0 ? void 0 : iconProps.className)
65
+ className: classNames('euiListGroupItem__icon', iconProps === null || iconProps === void 0 ? void 0 : iconProps.className),
66
+ css: cssIconStyles
68
67
  }));
69
68
  if (icon) {
70
69
  console.warn('Both `iconType` and `icon` were passed to EuiListGroupItem but only one can exist. The `iconType` was used.');
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
- var _excluded = ["children", "restrictWidth", "className", "component", "panelled", "panelProps", "paddingSize", "borderRadius"];
3
+ var _excluded = ["children", "restrictWidth", "className", "css", "component", "panelled", "panelProps", "paddingSize", "borderRadius"];
4
4
  /*
5
5
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
6
6
  * or more contributor license agreements. Licensed under the Elastic License
@@ -21,6 +21,7 @@ export var EuiPageBody = function EuiPageBody(_ref) {
21
21
  _ref$restrictWidth = _ref.restrictWidth,
22
22
  restrictWidth = _ref$restrictWidth === void 0 ? false : _ref$restrictWidth,
23
23
  className = _ref.className,
24
+ css = _ref.css,
24
25
  _ref$component = _ref.component,
25
26
  Component = _ref$component === void 0 ? 'div' : _ref$component,
26
27
  panelled = _ref.panelled,
@@ -32,20 +33,28 @@ export var EuiPageBody = function EuiPageBody(_ref) {
32
33
  rest = _objectWithoutProperties(_ref, _excluded);
33
34
  // Set max-width as a style prop
34
35
  var widthStyles = setStyleForRestrictedPageWidth(restrictWidth, rest === null || rest === void 0 ? void 0 : rest.style);
36
+
37
+ // Shared
38
+ var classes = classNames('euiPageBody', className);
35
39
  var styles = euiPageBodyStyles();
40
+ var cssStyles = [styles.euiPageBody, restrictWidth && styles.restrictWidth];
41
+
42
+ // Panelled
43
+ var panelClasses = classNames(classes, panelProps === null || panelProps === void 0 ? void 0 : panelProps.className);
44
+ var panelCssStyles = [].concat(cssStyles, [panelProps === null || panelProps === void 0 ? void 0 : panelProps.css, css]);
45
+
46
+ // Non-panelled
36
47
  var padding = useEuiPaddingCSS()[paddingSize];
37
- var classes = classNames('euiPageBody', className);
38
- var panelCSS = [styles.euiPageBody, restrictWidth && styles.restrictWidth];
39
- var componentCSS = [].concat(panelCSS, [padding]);
48
+ var componentCssStyles = [].concat(cssStyles, [padding, css]);
40
49
  return panelled ? ___EmotionJSX(EuiPanel, _extends({
41
- className: classes,
42
- css: panelCSS,
43
50
  borderRadius: borderRadius,
44
51
  paddingSize: paddingSize
45
- }, panelProps, rest), children) : ___EmotionJSX(Component, _extends({
52
+ }, panelProps, rest, {
53
+ className: panelClasses,
54
+ css: panelCssStyles
55
+ }), children) : ___EmotionJSX(Component, _extends({}, rest, {
46
56
  className: classes,
47
- css: componentCSS
48
- }, rest, {
57
+ css: componentCssStyles,
49
58
  style: widthStyles
50
59
  }), children);
51
60
  };
@@ -110,10 +110,11 @@ export var EuiPageHeaderContent = function EuiPageHeaderContent(_ref) {
110
110
  })) : undefined;
111
111
  var pageTitleNode;
112
112
  if (pageTitle) {
113
+ var iconCssStyles = [contentStyles.euiPageHeaderContent__titleIcon, iconProps === null || iconProps === void 0 ? void 0 : iconProps.css];
113
114
  var icon = iconType ? ___EmotionJSX(EuiIcon, _extends({
114
- size: "xl",
115
- css: contentStyles.euiPageHeaderContent__titleIcon
115
+ size: "xl"
116
116
  }, iconProps, {
117
+ css: iconCssStyles,
117
118
  type: iconType
118
119
  })) : undefined;
119
120
  pageTitleNode = ___EmotionJSX(EuiTitle, _extends({}, pageTitleProps, {
@@ -41,7 +41,7 @@ export var EuiPageSection = function EuiPageSection(_ref) {
41
41
  var colors = useEuiBackgroundColorCSS();
42
42
  var cssStyles = [styles.euiPageSection, grow && styles.grow, inlinePadding[paddingSize], bottomBorder === 'extended' && styles.border, alignment && styles[alignment], colors[color]];
43
43
  var contentStyles = euiPageSectionContentStyles();
44
- 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];
44
+ 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];
45
45
  return ___EmotionJSX(Component, _extends({
46
46
  css: cssStyles
47
47
  }, rest), ___EmotionJSX("div", _extends({}, contentProps, {
@@ -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;