@elastic/eui 64.0.0 → 65.0.1

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 (393) hide show
  1. package/dist/eui_charts_theme.js +330 -330
  2. package/dist/eui_charts_theme.js.map +1 -1
  3. package/dist/eui_theme_dark.css +217 -1614
  4. package/dist/eui_theme_dark.json +0 -32
  5. package/dist/eui_theme_dark.json.d.ts +0 -32
  6. package/dist/eui_theme_dark.min.css +1 -1
  7. package/dist/eui_theme_light.css +244 -1641
  8. package/dist/eui_theme_light.json +0 -32
  9. package/dist/eui_theme_light.json.d.ts +0 -32
  10. package/dist/eui_theme_light.min.css +1 -1
  11. package/es/components/accessibility/screen_reader_only/screen_reader_only.styles.js +2 -1
  12. package/es/components/accessibility/skip_link/skip_link.js +4 -54
  13. package/es/components/accordion/accordion.js +2 -1
  14. package/es/components/accordion/accordion.styles.js +17 -27
  15. package/es/components/badge/beta_badge/beta_badge.js +16 -3
  16. package/es/components/basic_table/basic_table.js +1 -1
  17. package/es/components/basic_table/collapsed_item_actions.js +2 -3
  18. package/es/components/basic_table/in_memory_table.js +1 -1
  19. package/es/components/beacon/beacon.styles.js +2 -2
  20. package/es/components/breadcrumbs/breadcrumb.styles.js +2 -2
  21. package/es/components/button/button.js +112 -215
  22. package/es/components/button/button_display/_button_display.js +90 -40
  23. package/es/components/button/button_display/_button_display.styles.js +7 -16
  24. package/es/components/button/button_display/_button_display_content.js +6 -3
  25. package/es/components/button/button_display/_button_display_content.styles.js +7 -17
  26. package/es/components/button/button_empty/button_empty.js +63 -53
  27. package/es/components/button/button_empty/index.js +1 -1
  28. package/es/components/button/button_group/button_group.js +4 -12
  29. package/es/components/button/button_group/button_group_button.js +14 -4
  30. package/es/components/button/button_icon/button_icon.js +61 -42
  31. package/es/components/call_out/call_out.styles.js +2 -1
  32. package/es/components/card/card.js +173 -89
  33. package/es/components/card/card.styles.js +136 -0
  34. package/es/components/card/card_select/card_select.js +133 -0
  35. package/es/components/card/card_select/card_select.styles.js +25 -0
  36. package/es/components/card/card_select/index.js +8 -0
  37. package/es/components/card/checkable_card/checkable_card.js +14 -9
  38. package/es/components/card/checkable_card/checkable_card.styles.js +22 -0
  39. package/es/components/comment_list/comment_event.styles.js +1 -1
  40. package/es/components/datagrid/body/data_grid_body.js +7 -6
  41. package/es/components/datagrid/body/data_grid_cell.js +13 -12
  42. package/es/components/datagrid/body/header/data_grid_header_cell.js +7 -6
  43. package/es/components/datagrid/body/header/data_grid_header_row.js +7 -6
  44. package/es/components/datagrid/data_grid.js +7 -6
  45. package/es/components/datagrid/utils/in_memory.js +7 -6
  46. package/es/components/date_picker/auto_refresh/auto_refresh.js +3 -2
  47. package/es/components/date_picker/super_date_picker/super_date_picker.js +17 -1
  48. package/es/components/date_picker/super_date_picker/super_update_button.js +11 -1
  49. package/es/components/description_list/description_list_title.js +1 -1
  50. package/es/components/expression/expression.styles.js +13 -31
  51. package/es/components/facet/facet_button.js +5 -4
  52. package/es/components/header/header_links/header_link.js +5 -3
  53. package/es/components/image/image_button.styles.js +1 -1
  54. package/es/components/image/image_wrapper.styles.js +3 -3
  55. package/es/components/link/link.styles.js +7 -6
  56. package/es/components/list_group/list_group.js +2 -1
  57. package/es/components/list_group/list_group_item.js +2 -1
  58. package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +3 -2
  59. package/es/components/loading/loading_chart.styles.js +16 -26
  60. package/es/components/loading/loading_content.styles.js +2 -2
  61. package/es/components/loading/loading_logo.styles.js +4 -4
  62. package/es/components/loading/loading_spinner.styles.js +6 -6
  63. package/es/components/markdown_editor/markdown_editor_toolbar.js +2 -0
  64. package/es/components/modal/confirm_modal.js +1 -1
  65. package/es/components/notification/notification_event.js +5 -3
  66. package/es/components/notification/notification_event_read_button.js +2 -1
  67. package/es/components/page/page_template.js +2 -2
  68. package/es/components/page_template/inner/page_inner.styles.js +2 -2
  69. package/es/components/page_template/outer/page_outer.styles.js +3 -1
  70. package/es/components/pagination/pagination_button.js +5 -3
  71. package/es/components/panel/panel.js +1 -1
  72. package/es/components/panel/{panel.style.js → panel.styles.js} +2 -2
  73. package/es/components/progress/progress.styles.js +2 -2
  74. package/es/components/text/text.styles.js +1 -1
  75. package/es/components/title/title.styles.js +2 -2
  76. package/es/components/toast/global_toast_list.styles.js +2 -2
  77. package/es/components/toast/toast.styles.js +4 -4
  78. package/es/components/tool_tip/icon_tip.js +11 -1
  79. package/es/components/tool_tip/tool_tip.js +18 -6
  80. package/es/global_styling/functions/logicals.js +16 -72
  81. package/es/global_styling/functions/typography.js +2 -1
  82. package/es/global_styling/mixins/_color.js +1 -1
  83. package/es/global_styling/mixins/_helpers.js +18 -5
  84. package/es/global_styling/mixins/_states.js +3 -4
  85. package/es/global_styling/mixins/_typography.js +3 -1
  86. package/es/global_styling/reset/global_styles.js +2 -1
  87. package/es/global_styling/utility/utility.js +10 -2
  88. package/es/themes/amsterdam/global_styling/mixins/button.js +165 -16
  89. package/eui.d.ts +1156 -1013
  90. package/i18ntokens.json +19 -19
  91. package/lib/components/accessibility/screen_reader_only/screen_reader_only.styles.js +3 -1
  92. package/lib/components/accessibility/skip_link/skip_link.js +4 -54
  93. package/lib/components/accordion/accordion.js +3 -1
  94. package/lib/components/accordion/accordion.styles.js +17 -26
  95. package/lib/components/badge/beta_badge/beta_badge.js +16 -3
  96. package/lib/components/basic_table/basic_table.js +1 -1
  97. package/lib/components/basic_table/collapsed_item_actions.js +2 -3
  98. package/lib/components/basic_table/in_memory_table.js +1 -1
  99. package/lib/components/beacon/beacon.styles.js +1 -1
  100. package/lib/components/breadcrumbs/breadcrumb.styles.js +2 -2
  101. package/lib/components/button/button.js +124 -229
  102. package/lib/components/button/button_display/_button_display.js +94 -33
  103. package/lib/components/button/button_display/_button_display.styles.js +7 -16
  104. package/lib/components/button/button_display/_button_display_content.js +7 -3
  105. package/lib/components/button/button_display/_button_display_content.styles.js +7 -17
  106. package/lib/components/button/button_empty/button_empty.js +64 -54
  107. package/lib/components/button/button_empty/index.js +0 -6
  108. package/lib/components/button/button_group/button_group.js +4 -12
  109. package/lib/components/button/button_group/button_group_button.js +15 -4
  110. package/lib/components/button/button_icon/button_icon.js +61 -43
  111. package/lib/components/call_out/call_out.styles.js +2 -1
  112. package/lib/components/card/card.js +174 -88
  113. package/lib/components/card/card.styles.js +146 -0
  114. package/lib/components/card/card_select/card_select.js +144 -0
  115. package/lib/components/card/card_select/card_select.styles.js +27 -0
  116. package/lib/components/card/card_select/index.js +19 -0
  117. package/lib/components/card/checkable_card/checkable_card.js +16 -9
  118. package/lib/components/card/checkable_card/checkable_card.styles.js +33 -0
  119. package/lib/components/comment_list/comment_event.styles.js +1 -1
  120. package/lib/components/datagrid/body/data_grid_body.js +7 -6
  121. package/lib/components/datagrid/body/data_grid_cell.js +13 -12
  122. package/lib/components/datagrid/body/header/data_grid_header_cell.js +7 -6
  123. package/lib/components/datagrid/body/header/data_grid_header_row.js +7 -6
  124. package/lib/components/datagrid/data_grid.js +7 -6
  125. package/lib/components/datagrid/utils/in_memory.js +7 -6
  126. package/lib/components/date_picker/auto_refresh/auto_refresh.js +3 -2
  127. package/lib/components/date_picker/super_date_picker/super_date_picker.js +17 -1
  128. package/lib/components/date_picker/super_date_picker/super_update_button.js +11 -1
  129. package/lib/components/description_list/description_list_title.js +1 -1
  130. package/lib/components/expression/expression.styles.js +12 -30
  131. package/lib/components/facet/facet_button.js +4 -3
  132. package/lib/components/header/header_links/header_link.js +5 -3
  133. package/lib/components/image/image_button.styles.js +1 -1
  134. package/lib/components/image/image_wrapper.styles.js +2 -2
  135. package/lib/components/link/link.styles.js +6 -5
  136. package/lib/components/list_group/list_group.js +2 -1
  137. package/lib/components/list_group/list_group_item.js +2 -1
  138. package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +3 -2
  139. package/lib/components/loading/loading_chart.styles.js +16 -25
  140. package/lib/components/loading/loading_content.styles.js +1 -1
  141. package/lib/components/loading/loading_logo.styles.js +4 -4
  142. package/lib/components/loading/loading_spinner.styles.js +5 -5
  143. package/lib/components/markdown_editor/markdown_editor_toolbar.js +2 -0
  144. package/lib/components/modal/confirm_modal.js +1 -1
  145. package/lib/components/notification/notification_event.js +5 -3
  146. package/lib/components/notification/notification_event_read_button.js +2 -1
  147. package/lib/components/page/page_template.js +1 -1
  148. package/lib/components/page_template/inner/page_inner.styles.js +2 -2
  149. package/lib/components/page_template/outer/page_outer.styles.js +4 -1
  150. package/lib/components/panel/panel.js +1 -1
  151. package/{optimize/lib/components/panel/panel.style.js → lib/components/panel/panel.styles.js} +1 -1
  152. package/lib/components/progress/progress.styles.js +2 -2
  153. package/lib/components/text/text.styles.js +1 -1
  154. package/lib/components/title/title.styles.js +1 -1
  155. package/lib/components/toast/global_toast_list.styles.js +1 -1
  156. package/lib/components/toast/toast.styles.js +4 -4
  157. package/lib/components/tool_tip/icon_tip.js +11 -1
  158. package/lib/components/tool_tip/tool_tip.js +18 -6
  159. package/lib/global_styling/functions/logicals.js +22 -74
  160. package/lib/global_styling/functions/typography.js +3 -1
  161. package/lib/global_styling/mixins/_color.js +1 -1
  162. package/lib/global_styling/mixins/_helpers.js +24 -6
  163. package/lib/global_styling/mixins/_states.js +3 -4
  164. package/lib/global_styling/mixins/_typography.js +4 -1
  165. package/lib/global_styling/reset/global_styles.js +3 -1
  166. package/lib/global_styling/utility/utility.js +16 -3
  167. package/lib/themes/amsterdam/global_styling/mixins/button.js +178 -24
  168. package/optimize/es/components/accessibility/screen_reader_only/screen_reader_only.styles.js +2 -1
  169. package/optimize/es/components/accordion/accordion.js +2 -1
  170. package/optimize/es/components/accordion/accordion.styles.js +17 -27
  171. package/optimize/es/components/badge/beta_badge/beta_badge.js +6 -3
  172. package/optimize/es/components/basic_table/collapsed_item_actions.js +1 -2
  173. package/optimize/es/components/beacon/beacon.styles.js +2 -2
  174. package/optimize/es/components/breadcrumbs/breadcrumb.styles.js +2 -2
  175. package/optimize/es/components/button/button.js +88 -100
  176. package/optimize/es/components/button/button_display/_button_display.js +67 -32
  177. package/optimize/es/components/button/button_display/_button_display.styles.js +7 -16
  178. package/optimize/es/components/button/button_display/_button_display_content.js +5 -2
  179. package/optimize/es/components/button/button_display/_button_display_content.styles.js +7 -17
  180. package/optimize/es/components/button/button_empty/button_empty.js +55 -47
  181. package/optimize/es/components/button/button_empty/index.js +1 -1
  182. package/optimize/es/components/button/button_group/button_group.js +2 -10
  183. package/optimize/es/components/button/button_group/button_group_button.js +13 -3
  184. package/optimize/es/components/button/button_icon/button_icon.js +54 -41
  185. package/optimize/es/components/call_out/call_out.styles.js +2 -1
  186. package/optimize/es/components/card/card.js +97 -31
  187. package/optimize/es/components/card/card.styles.js +136 -0
  188. package/optimize/es/components/card/{card_select.js → card_select/card_select.js} +16 -14
  189. package/optimize/es/components/card/card_select/card_select.styles.js +25 -0
  190. package/optimize/es/components/card/card_select/index.js +8 -0
  191. package/optimize/es/components/card/checkable_card/checkable_card.js +14 -9
  192. package/optimize/es/components/card/checkable_card/checkable_card.styles.js +22 -0
  193. package/optimize/es/components/comment_list/comment_event.styles.js +1 -1
  194. package/optimize/es/components/description_list/description_list_title.js +1 -1
  195. package/optimize/es/components/expression/expression.styles.js +13 -31
  196. package/optimize/es/components/facet/facet_button.js +5 -3
  197. package/optimize/es/components/image/image_button.styles.js +1 -1
  198. package/optimize/es/components/image/image_wrapper.styles.js +3 -3
  199. package/optimize/es/components/link/link.styles.js +7 -6
  200. package/optimize/es/components/loading/loading_chart.styles.js +16 -26
  201. package/optimize/es/components/loading/loading_content.styles.js +2 -2
  202. package/optimize/es/components/loading/loading_logo.styles.js +4 -4
  203. package/optimize/es/components/loading/loading_spinner.styles.js +6 -6
  204. package/optimize/es/components/markdown_editor/markdown_editor_toolbar.js +2 -0
  205. package/optimize/es/components/page/page_template.js +2 -2
  206. package/optimize/es/components/page_template/inner/page_inner.styles.js +2 -2
  207. package/optimize/es/components/page_template/outer/page_outer.styles.js +3 -1
  208. package/optimize/es/components/panel/panel.js +1 -1
  209. package/optimize/es/components/panel/{panel.style.js → panel.styles.js} +2 -2
  210. package/optimize/es/components/progress/progress.styles.js +2 -2
  211. package/optimize/es/components/text/text.styles.js +1 -1
  212. package/optimize/es/components/title/title.styles.js +2 -2
  213. package/optimize/es/components/toast/global_toast_list.styles.js +2 -2
  214. package/optimize/es/components/toast/toast.styles.js +4 -4
  215. package/optimize/es/components/tool_tip/tool_tip.js +7 -5
  216. package/optimize/es/global_styling/functions/logicals.js +16 -72
  217. package/optimize/es/global_styling/functions/typography.js +2 -1
  218. package/optimize/es/global_styling/mixins/_color.js +1 -1
  219. package/optimize/es/global_styling/mixins/_helpers.js +18 -5
  220. package/optimize/es/global_styling/mixins/_states.js +3 -4
  221. package/optimize/es/global_styling/mixins/_typography.js +3 -1
  222. package/optimize/es/global_styling/reset/global_styles.js +2 -1
  223. package/optimize/es/global_styling/utility/utility.js +10 -2
  224. package/optimize/es/themes/amsterdam/global_styling/mixins/button.js +155 -16
  225. package/optimize/lib/components/accessibility/screen_reader_only/screen_reader_only.styles.js +3 -1
  226. package/optimize/lib/components/accordion/accordion.js +3 -1
  227. package/optimize/lib/components/accordion/accordion.styles.js +17 -26
  228. package/optimize/lib/components/badge/beta_badge/beta_badge.js +6 -3
  229. package/optimize/lib/components/basic_table/collapsed_item_actions.js +1 -2
  230. package/optimize/lib/components/beacon/beacon.styles.js +1 -1
  231. package/optimize/lib/components/breadcrumbs/breadcrumb.styles.js +2 -2
  232. package/optimize/lib/components/button/button.js +92 -103
  233. package/optimize/lib/components/button/button_display/_button_display.js +71 -25
  234. package/optimize/lib/components/button/button_display/_button_display.styles.js +7 -16
  235. package/optimize/lib/components/button/button_display/_button_display_content.js +6 -2
  236. package/optimize/lib/components/button/button_display/_button_display_content.styles.js +7 -17
  237. package/optimize/lib/components/button/button_empty/button_empty.js +59 -50
  238. package/optimize/lib/components/button/button_empty/index.js +0 -6
  239. package/optimize/lib/components/button/button_group/button_group.js +2 -10
  240. package/optimize/lib/components/button/button_group/button_group_button.js +15 -3
  241. package/optimize/lib/components/button/button_icon/button_icon.js +54 -41
  242. package/optimize/lib/components/call_out/call_out.styles.js +2 -1
  243. package/optimize/lib/components/card/card.js +97 -30
  244. package/optimize/lib/components/card/card.styles.js +146 -0
  245. package/optimize/lib/components/card/{card_select.js → card_select/card_select.js} +16 -14
  246. package/optimize/lib/components/card/card_select/card_select.styles.js +27 -0
  247. package/optimize/lib/components/card/card_select/index.js +19 -0
  248. package/optimize/lib/components/card/checkable_card/checkable_card.js +16 -9
  249. package/optimize/lib/components/card/checkable_card/checkable_card.styles.js +33 -0
  250. package/optimize/lib/components/comment_list/comment_event.styles.js +1 -1
  251. package/optimize/lib/components/description_list/description_list_title.js +1 -1
  252. package/optimize/lib/components/expression/expression.styles.js +12 -30
  253. package/optimize/lib/components/facet/facet_button.js +4 -2
  254. package/optimize/lib/components/image/image_button.styles.js +1 -1
  255. package/optimize/lib/components/image/image_wrapper.styles.js +2 -2
  256. package/optimize/lib/components/link/link.styles.js +6 -5
  257. package/optimize/lib/components/loading/loading_chart.styles.js +16 -25
  258. package/optimize/lib/components/loading/loading_content.styles.js +1 -1
  259. package/optimize/lib/components/loading/loading_logo.styles.js +4 -4
  260. package/optimize/lib/components/loading/loading_spinner.styles.js +5 -5
  261. package/optimize/lib/components/markdown_editor/markdown_editor_toolbar.js +2 -0
  262. package/optimize/lib/components/page/page_template.js +1 -1
  263. package/optimize/lib/components/page_template/inner/page_inner.styles.js +2 -2
  264. package/optimize/lib/components/page_template/outer/page_outer.styles.js +4 -1
  265. package/optimize/lib/components/panel/panel.js +1 -1
  266. package/{test-env/components/panel/panel.style.js → optimize/lib/components/panel/panel.styles.js} +1 -1
  267. package/optimize/lib/components/progress/progress.styles.js +2 -2
  268. package/optimize/lib/components/text/text.styles.js +1 -1
  269. package/optimize/lib/components/title/title.styles.js +1 -1
  270. package/optimize/lib/components/toast/global_toast_list.styles.js +1 -1
  271. package/optimize/lib/components/toast/toast.styles.js +4 -4
  272. package/optimize/lib/components/tool_tip/tool_tip.js +7 -5
  273. package/optimize/lib/global_styling/functions/logicals.js +28 -74
  274. package/optimize/lib/global_styling/functions/typography.js +3 -1
  275. package/optimize/lib/global_styling/mixins/_color.js +1 -1
  276. package/optimize/lib/global_styling/mixins/_helpers.js +24 -6
  277. package/optimize/lib/global_styling/mixins/_states.js +3 -4
  278. package/optimize/lib/global_styling/mixins/_typography.js +4 -1
  279. package/optimize/lib/global_styling/reset/global_styles.js +3 -1
  280. package/optimize/lib/global_styling/utility/utility.js +16 -3
  281. package/optimize/lib/themes/amsterdam/global_styling/mixins/button.js +170 -17
  282. package/package.json +2 -2
  283. package/src/components/badge/beta_badge/_beta_badge.scss +5 -1
  284. package/src/components/button/_index.scss +0 -1
  285. package/src/components/button/button_empty/_button_empty.scss +4 -48
  286. package/src/components/button/button_group/_button_group.scss +0 -1
  287. package/src/components/button/button_group/_button_group_button.scss +55 -83
  288. package/src/components/button/button_icon/_button_icon.scss +3 -103
  289. package/src/components/control_bar/_control_bar.scss +2 -6
  290. package/src/components/flyout/_flyout.scss +4 -1
  291. package/src/components/index.scss +0 -1
  292. package/src/global_styling/mixins/_button.scss +55 -11
  293. package/src/global_styling/mixins/_helpers.scss +9 -0
  294. package/src/global_styling/mixins/_index.scss +0 -1
  295. package/src/global_styling/utility/_utility.scss +0 -127
  296. package/src/themes/amsterdam/global_styling/mixins/_index.scss +0 -2
  297. package/src/themes/amsterdam/overrides/_header.scss +0 -2
  298. package/src/themes/amsterdam/overrides/_index.scss +0 -4
  299. package/test-env/components/accessibility/screen_reader_only/screen_reader_only.styles.js +3 -1
  300. package/test-env/components/accessibility/skip_link/skip_link.js +4 -54
  301. package/test-env/components/accordion/accordion.js +3 -1
  302. package/test-env/components/accordion/accordion.styles.js +17 -26
  303. package/test-env/components/badge/beta_badge/beta_badge.js +16 -3
  304. package/test-env/components/basic_table/basic_table.js +1 -1
  305. package/test-env/components/basic_table/collapsed_item_actions.js +2 -3
  306. package/test-env/components/basic_table/in_memory_table.js +1 -1
  307. package/test-env/components/beacon/beacon.styles.js +1 -1
  308. package/test-env/components/breadcrumbs/breadcrumb.styles.js +2 -2
  309. package/test-env/components/button/button.js +111 -225
  310. package/test-env/components/button/button_display/_button_display.js +93 -32
  311. package/test-env/components/button/button_display/_button_display.styles.js +7 -16
  312. package/test-env/components/button/button_display/_button_display_content.js +7 -3
  313. package/test-env/components/button/button_display/_button_display_content.styles.js +7 -17
  314. package/test-env/components/button/button_empty/button_empty.js +64 -53
  315. package/test-env/components/button/button_empty/index.js +0 -6
  316. package/test-env/components/button/button_group/button_group.js +4 -12
  317. package/test-env/components/button/button_group/button_group_button.js +16 -4
  318. package/test-env/components/button/button_icon/button_icon.js +61 -42
  319. package/test-env/components/call_out/call_out.styles.js +2 -1
  320. package/test-env/components/card/card.js +172 -88
  321. package/test-env/components/card/card.styles.js +146 -0
  322. package/test-env/components/card/card_select/card_select.js +141 -0
  323. package/test-env/components/card/card_select/card_select.styles.js +27 -0
  324. package/test-env/components/card/card_select/index.js +19 -0
  325. package/test-env/components/card/checkable_card/checkable_card.js +16 -9
  326. package/test-env/components/card/checkable_card/checkable_card.styles.js +33 -0
  327. package/test-env/components/comment_list/comment_event.styles.js +1 -1
  328. package/test-env/components/datagrid/body/data_grid_body.js +7 -6
  329. package/test-env/components/datagrid/body/data_grid_cell.js +13 -12
  330. package/test-env/components/datagrid/body/header/data_grid_header_cell.js +7 -6
  331. package/test-env/components/datagrid/body/header/data_grid_header_row.js +7 -6
  332. package/test-env/components/datagrid/data_grid.js +7 -6
  333. package/test-env/components/datagrid/utils/in_memory.js +7 -6
  334. package/test-env/components/date_picker/auto_refresh/auto_refresh.js +3 -2
  335. package/test-env/components/date_picker/super_date_picker/super_date_picker.js +17 -1
  336. package/test-env/components/date_picker/super_date_picker/super_update_button.js +11 -1
  337. package/test-env/components/description_list/description_list_title.js +1 -1
  338. package/test-env/components/expression/expression.styles.js +12 -30
  339. package/test-env/components/facet/facet_button.js +4 -3
  340. package/test-env/components/header/header_links/header_link.js +5 -3
  341. package/test-env/components/image/image_button.styles.js +1 -1
  342. package/test-env/components/image/image_wrapper.styles.js +2 -2
  343. package/test-env/components/link/link.styles.js +6 -5
  344. package/test-env/components/list_group/list_group.js +2 -1
  345. package/test-env/components/list_group/list_group_item.js +2 -1
  346. package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +3 -2
  347. package/test-env/components/loading/loading_chart.styles.js +16 -25
  348. package/test-env/components/loading/loading_content.styles.js +1 -1
  349. package/test-env/components/loading/loading_logo.styles.js +4 -4
  350. package/test-env/components/loading/loading_spinner.styles.js +5 -5
  351. package/test-env/components/markdown_editor/markdown_editor_toolbar.js +2 -0
  352. package/test-env/components/modal/confirm_modal.js +1 -1
  353. package/test-env/components/notification/notification_event.js +5 -3
  354. package/test-env/components/notification/notification_event_read_button.js +2 -1
  355. package/test-env/components/page/page_template.js +1 -1
  356. package/test-env/components/page_template/inner/page_inner.styles.js +2 -2
  357. package/test-env/components/page_template/outer/page_outer.styles.js +4 -1
  358. package/test-env/components/panel/panel.js +1 -1
  359. package/{lib/components/panel/panel.style.js → test-env/components/panel/panel.styles.js} +1 -1
  360. package/test-env/components/progress/progress.styles.js +2 -2
  361. package/test-env/components/text/text.styles.js +1 -1
  362. package/test-env/components/title/title.styles.js +1 -1
  363. package/test-env/components/toast/global_toast_list.styles.js +1 -1
  364. package/test-env/components/toast/toast.styles.js +4 -4
  365. package/test-env/components/tool_tip/icon_tip.js +11 -1
  366. package/test-env/components/tool_tip/tool_tip.js +18 -6
  367. package/test-env/global_styling/functions/logicals.js +28 -74
  368. package/test-env/global_styling/functions/typography.js +3 -1
  369. package/test-env/global_styling/mixins/_color.js +1 -1
  370. package/test-env/global_styling/mixins/_helpers.js +24 -6
  371. package/test-env/global_styling/mixins/_states.js +3 -4
  372. package/test-env/global_styling/mixins/_typography.js +4 -1
  373. package/test-env/global_styling/reset/global_styles.js +3 -1
  374. package/test-env/global_styling/utility/utility.js +16 -3
  375. package/test-env/themes/amsterdam/global_styling/mixins/button.js +170 -17
  376. package/es/components/card/card_select.js +0 -176
  377. package/lib/components/card/card_select.js +0 -187
  378. package/src/components/button/_button.scss +0 -143
  379. package/src/components/button/button_icon/_variables.scss +0 -11
  380. package/src/components/card/_card.scss +0 -239
  381. package/src/components/card/_card_select.scss +0 -21
  382. package/src/components/card/_index.scss +0 -5
  383. package/src/components/card/_mixins.scss +0 -11
  384. package/src/components/card/_variables.scss +0 -25
  385. package/src/components/card/checkable_card/_checkable_card.scss +0 -29
  386. package/src/components/card/checkable_card/_index.scss +0 -1
  387. package/src/global_styling/mixins/_beta_badge.scss +0 -30
  388. package/src/themes/amsterdam/global_styling/mixins/_button.scss +0 -60
  389. package/src/themes/amsterdam/overrides/_button.scss +0 -119
  390. package/src/themes/amsterdam/overrides/_button_empty.scss +0 -20
  391. package/src/themes/amsterdam/overrides/_button_group.scss +0 -91
  392. package/src/themes/amsterdam/overrides/_card.scss +0 -6
  393. package/test-env/components/card/card_select.js +0 -184
@@ -5,10 +5,8 @@
5
5
  */
6
6
  .euiButtonEmpty {
7
7
  @include euiButton;
8
+ border-radius: $euiBorderRadius;
8
9
 
9
- border-color: transparent;
10
- background-color: transparent;
11
- box-shadow: none;
12
10
  // sass-lint:disable-block no-important
13
11
  transform: none !important; /* 1 */
14
12
  animation: none !important; /* 1 */
@@ -26,22 +24,18 @@
26
24
 
27
25
  &.euiButtonEmpty--small {
28
26
  height: $euiButtonHeightSmall;
27
+ border-radius: $euiBorderRadius * .667;
29
28
  }
30
29
 
31
30
  &.euiButtonEmpty--xSmall {
32
31
  height: $euiButtonHeightXSmall;
33
- font-size: $euiFontSizeS;
32
+ border-radius: $euiBorderRadius * .667;
33
+ font-size: $euiFontSizeXS;
34
34
  }
35
35
 
36
36
  &:disabled {
37
37
  @include euiButtonContentDisabled;
38
38
 
39
- color: $euiButtonColorDisabledText;
40
-
41
- &:focus {
42
- background-color: transparent;
43
- }
44
-
45
39
  &:hover,
46
40
  &:focus {
47
41
  text-decoration: none;
@@ -66,41 +60,3 @@
66
60
  .euiButtonEmpty--flushRight {
67
61
  margin-left: $euiSizeS;
68
62
  }
69
-
70
- // Modifier naming and colors.
71
- $euiButtonEmptyTypes: (
72
- primary: $euiColorPrimaryText,
73
- danger: $euiColorDangerText,
74
- disabled: $euiButtonColorDisabledText,
75
- ghost: $euiColorGhost,
76
- text: $euiTextColor,
77
- success: $euiColorSuccessText,
78
- warning: $euiColorWarningText,
79
- );
80
-
81
- // Create button modifiers based upon the map.
82
- @each $name, $color in $euiButtonEmptyTypes {
83
- .euiButtonEmpty--#{$name} {
84
- @if ($name == 'ghost') {
85
- // Ghost is unique and ALWAYS sits against a dark background.
86
- color: $color;
87
- } @else if ($name == 'text') {
88
- // The default color is lighter than the normal text color, make the it the text color
89
- color: $euiTextColor;
90
- } @else {
91
- // Other colors need to check their contrast against the page background color.
92
- color: makeHighContrastColor($color, $euiColorEmptyShade);
93
- }
94
-
95
- &:focus {
96
- background-color: transparentize($color, .9);
97
- }
98
-
99
- &:hover {
100
- @if ($name == 'disabled') {
101
- cursor: not-allowed;
102
- }
103
- }
104
- }
105
- }
106
-
@@ -17,7 +17,6 @@
17
17
  }
18
18
 
19
19
  .euiButtonGroup__buttons {
20
- @include euiSlightShadow;
21
20
  border-radius: $euiBorderRadius + 1px; // Simply for the box-shadow
22
21
  max-width: 100%;
23
22
  display: flex;
@@ -1,3 +1,6 @@
1
+ // This file has lots of modifiers and is somewhat nesty by nature
2
+ // sass-lint:disable nesting-depth
3
+
1
4
  .euiButtonGroupButton {
2
5
  @include euiButtonBase;
3
6
  @include euiFont;
@@ -5,7 +8,6 @@
5
8
 
6
9
  // sass-lint:disable-block indentation
7
10
  transition: background-color $euiAnimSpeedNormal ease-in-out,
8
- border-color $euiAnimSpeedNormal ease-in-out,
9
11
  color $euiAnimSpeedNormal ease-in-out;
10
12
 
11
13
  // Allow button to shrink and truncate
@@ -21,81 +23,26 @@
21
23
  padding: 0 $euiSizeS;
22
24
  }
23
25
 
24
- .euiButton__text {
25
- text-overflow: ellipsis;
26
- overflow: hidden;
27
- }
28
-
29
26
  &.euiButtonGroupButton--small {
30
27
  height: $euiButtonHeightSmall;
31
28
  line-height: $euiButtonHeightSmall; // prevents descenders from getting cut off
32
29
  }
33
30
 
34
- &:not([class*='isDisabled']) {
31
+ &:not(:disabled) {
35
32
  &:hover,
36
33
  &:focus,
37
34
  &:focus-within {
38
- background-color: transparentize($euiColorPrimary, .9);
39
35
  text-decoration: underline;
40
36
  }
41
37
  }
42
38
 
43
- &.euiButtonGroupButton-isDisabled {
39
+ &:disabled {
44
40
  @include euiButtonContentDisabled;
45
- color: $euiButtonColorDisabledText;
46
41
 
47
42
  &.euiButtonGroupButton-isSelected {
48
- color: makeHighContrastColor($euiButtonColorDisabled, $euiButtonColorDisabled, 2);
43
+ color: makeDisabledContrastColor($euiButtonColorDisabled, $euiButtonColorDisabled);
49
44
  background-color: $euiButtonColorDisabled;
50
45
  border-color: $euiButtonColorDisabled;
51
-
52
- &:hover,
53
- &:focus,
54
- &:focus-within {
55
- background-color: $euiButtonColorDisabled;
56
- border-color: $euiButtonColorDisabled;
57
- }
58
- }
59
- }
60
-
61
- @each $name, $color in $euiButtonTypes {
62
- &.euiButtonGroupButton--#{$name}:not([class*='isDisabled']) {
63
- @if ($name == 'ghost') {
64
- // Ghost is unique and ALWAYS sits against a dark background.
65
- // Compressed styles don't support ghost color, it defaults to the text color
66
- color: $color;
67
- } @else if ($name == 'text') {
68
- // The default color is lighter than the normal text color, make the it the text color
69
- color: $euiTextColor;
70
- } @else {
71
- // Other colors need to check their contrast against the page background color.
72
- color: makeHighContrastColor($color, $euiPageBackgroundColor);
73
- }
74
-
75
- &.euiButtonGroupButton-isSelected {
76
- background-color: $color;
77
- border-color: $color;
78
-
79
- // The function makes that hexes safe for theming
80
- $fillTextColor: chooseLightOrDarkText($color, $euiColorGhost, $euiColorInk);
81
-
82
- color: $fillTextColor;
83
-
84
- &:hover,
85
- &:focus,
86
- &:focus-within {
87
- $darkHighlightBg: darken($color, 5%);
88
-
89
- background-color: $darkHighlightBg;
90
- border-color: $darkHighlightBg;
91
- }
92
- }
93
-
94
- &:hover,
95
- &:focus,
96
- &:focus-within {
97
- background-color: transparentize($color, .9);
98
- }
99
46
  }
100
47
  }
101
48
  }
@@ -111,37 +58,34 @@
111
58
  .euiButtonGroup--medium,
112
59
  .euiButtonGroup--small {
113
60
  .euiButtonGroupButton {
114
- border: $euiBorderThin;
61
+ border-radius: 0 !important; // sass-lint:disable-line no-important
62
+ font-weight: $euiButtonFontWeight;
115
63
 
116
- &:not(:first-child) {
117
- margin-left: -1px;
118
- }
64
+ &:focus,
65
+ &:focus-within {
66
+ outline-style: solid;
67
+ outline-color: lightOrDarkTheme($euiColorInk, $euiColorGhost);
68
+ outline-offset: -2px;
119
69
 
120
- &:first-child {
121
- border-radius: $euiBorderRadius 0 0 $euiBorderRadius;
70
+ &:focus-visible {
71
+ outline-style: auto; // For chrome only
72
+ }
122
73
  }
123
74
 
124
- &:last-child {
125
- border-radius: 0 $euiBorderRadius $euiBorderRadius 0;
75
+ &:focus:not(:focus-visible) {
76
+ outline: none;
126
77
  }
127
- }
128
78
 
129
- // Fix ghost/disabled look specifically
130
- .euiButtonGroupButton.euiButtonGroupButton-isDisabled.euiButtonGroupButton--ghost {
131
- &,
132
- &:hover,
133
- &:focus,
134
- &:focus-within {
135
- color: $euiButtonColorGhostDisabled;
79
+ &:not(:first-child):not(.euiButtonGroupButton-isSelected):not(:disabled) {
80
+ box-shadow: -1px 0 0 0 transparentize($euiShadowColor, .95);
136
81
  }
137
82
 
138
- .euiButtonGroup--isDisabled & {
139
- border-color: $euiButtonColorGhostDisabled;
83
+ &:first-child {
84
+ border-radius: $euiBorderRadius 0 0 $euiBorderRadius;
140
85
  }
141
86
 
142
- &.euiButtonGroupButton-isSelected {
143
- background-color: $euiButtonColorGhostDisabled;
144
- color: makeHighContrastColor($euiButtonColorGhostDisabled, $euiButtonColorGhostDisabled, 2);
87
+ &:last-child {
88
+ border-radius: 0 $euiBorderRadius $euiBorderRadius 0;
145
89
  }
146
90
  }
147
91
 
@@ -149,11 +93,18 @@
149
93
  z-index: 0;
150
94
  }
151
95
 
96
+ // Faux border for separation of selected buttons
152
97
  .euiButtonGroupButton-isSelected + .euiButtonGroupButton-isSelected {
153
98
  box-shadow: -1px 0 0 transparentize($euiColorEmptyShade, .9);
154
99
  }
155
100
  }
156
101
 
102
+ .euiButtonGroup--small .euiButtonGroup__buttons {
103
+ // Use a moderately smaller radius on small buttons
104
+ // so that they don't appear completely rounded
105
+ border-radius: $euiBorderRadius * (2 / 3);
106
+ }
107
+
157
108
  /**
158
109
  * Compressed (form style)
159
110
  */
@@ -163,7 +114,8 @@
163
114
  height: $euiFormControlCompressedHeight - 2px;
164
115
  line-height: $euiFormControlCompressedHeight - 2px; // prevents descenders from getting cut off
165
116
  font-size: $euiFontSizeS;
166
- border-radius: $euiBorderRadius;
117
+ // Add 1 to the border radius to account for the background-clip
118
+ border-radius: $euiFormControlCompressedBorderRadius + 1;
167
119
  // Offset the background color from the border by 2px
168
120
  // by clipping background to before the padding starts
169
121
  padding: 2px;
@@ -178,10 +130,30 @@
178
130
  font-weight: $euiFontWeightSemiBold;
179
131
  }
180
132
 
181
- &:not([class*='isDisabled']) {
133
+ &:not(:disabled) {
182
134
  &:focus,
183
135
  &:focus-within {
184
- outline: 2px solid $euiFocusRingColor;
136
+ outline: $euiFocusRingSize solid currentColor;
137
+ }
138
+ }
139
+
140
+ @each $name, $color in $euiButtonTypes {
141
+ &[class*='-fill-#{$name}'] {
142
+ // Complicated set of focus states depending on whether it's a button and can receive :focus,
143
+ // or an input and uses focus-within, and browser support for :focus-visible,
144
+ // and override nature of default theme
145
+ &:not(:disabled):focus,
146
+ &:not(:disabled):focus-within {
147
+ outline-color: $color;
148
+
149
+ &:focus-visible {
150
+ outline-style: auto; // For chrome only
151
+ }
152
+ }
153
+
154
+ &:not(:disabled):focus:not(:focus-visible) {
155
+ outline: none;
156
+ }
185
157
  }
186
158
  }
187
159
  }
@@ -3,7 +3,6 @@
3
3
 
4
4
  .euiButtonIcon {
5
5
  @include euiButton;
6
- @include euiSlightShadow;
7
6
 
8
7
  border-radius: $euiBorderRadius;
9
8
  width: $euiButtonHeight;
@@ -19,118 +18,19 @@
19
18
  pointer-events: none;
20
19
  }
21
20
 
22
- &.euiButtonIcon--empty {
23
- box-shadow: none !important; // sass-lint:disable-line no-important
24
- border: none;
25
- }
26
-
27
- &.euiButtonIcon-isDisabled {
21
+ &:disabled {
28
22
  @include euiButtonContentDisabled;
29
- color: $euiButtonColorDisabledText;
30
- border-color: $euiButtonColorDisabled;
31
-
32
- &.euiButtonIcon--fill {
33
- // Only increase the contrast of background color to text to 2.0 for disabled
34
- color: makeHighContrastColor($euiButtonColorDisabled, $euiButtonColorDisabled, 2);
35
- background-color: $euiButtonColorDisabled;
36
- border-color: $euiButtonColorDisabled;
37
-
38
- &:hover,
39
- &:focus,
40
- &:focus-within {
41
- background-color: $euiButtonColorDisabled;
42
- border-color: $euiButtonColorDisabled;
43
- }
44
- }
45
-
46
- &:hover,
47
- &:focus,
48
- &:focus-within {
49
- @include euiSlightShadow;
50
- text-decoration: none;
51
- }
52
23
  }
53
24
  }
54
25
 
55
26
  .euiButtonIcon--xSmall {
56
27
  height: $euiButtonHeightXSmall;
57
28
  width: $euiButtonHeightXSmall;
29
+ border-radius: $euiBorderRadius * (2 / 3);
58
30
  }
59
31
 
60
32
  .euiButtonIcon--small {
61
33
  height: $euiButtonHeightSmall;
62
34
  width: $euiButtonHeightSmall;
63
- }
64
-
65
- // Create button modifiers based upon the map.
66
- @each $name, $color in $euiButtonTypes {
67
- .euiButtonIcon--#{$name} {
68
- @if ($name == 'ghost') {
69
- // Ghost is unique and ALWAYS sits against a dark background.
70
- color: $color;
71
- } @else if ($name == 'text') {
72
- // The default color is lighter than the normal text color, make the it the text color
73
- color: $euiTextColor;
74
- } @else {
75
- // Other colors need to check their contrast against the page background color.
76
- color: makeHighContrastColor($color, $euiPageBackgroundColor);
77
- }
78
-
79
- border-color: $color;
80
-
81
- &.euiButtonIcon--fill {
82
- background-color: $color;
83
- border-color: $color;
84
-
85
- // The function makes that hexes safe for theming
86
- $fillTextColor: chooseLightOrDarkText($color, $euiColorGhost, $euiColorInk);
87
-
88
- color: $fillTextColor;
89
-
90
- &:not([class*='isDisabled']) {
91
- &:hover,
92
- &:focus,
93
- &:focus-within {
94
- background-color: darken($color, 5%);
95
- border-color: darken($color, 5%);
96
- }
97
- }
98
- }
99
-
100
- &:not([class*='isDisabled']) {
101
- $shadowColor: $euiShadowColor;
102
- @if ($name == 'ghost') {
103
- $shadowColor: $euiColorInk;
104
- } @else if (lightness($euiTextColor) < 50) {
105
- // Only if this is the light theme do we use the button variant color to colorize the shadow
106
- $shadowColor: desaturate($color, 60%);
107
- }
108
-
109
- @include euiSlightShadow($shadowColor);
110
-
111
- &:hover,
112
- &:focus,
113
- &:focus-within {
114
- @include euiSlightShadowHover($shadowColor);
115
- background-color: transparentize($color, .9);
116
- }
117
- }
118
- }
119
- }
120
-
121
- // Fix ghost/disabled look specifically
122
- .euiButtonIcon.euiButtonIcon-isDisabled.euiButtonIcon--ghost {
123
- &,
124
- &:hover,
125
- &:focus,
126
- &:focus-within {
127
- @include euiSlightShadow;
128
- color: $euiButtonColorGhostDisabled;
129
- border-color: $euiButtonColorGhostDisabled;
130
- }
131
-
132
- &.euiButton--fill {
133
- background-color: $euiButtonColorGhostDisabled;
134
- color: makeHighContrastColor($euiButtonColorGhostDisabled, $euiButtonColorGhostDisabled, 2);
135
- }
35
+ border-radius: $euiBorderRadius * (2 / 3);
136
36
  }
@@ -173,16 +173,12 @@
173
173
  color: $euiColorGhost;
174
174
  }
175
175
 
176
- .euiControlBar__button.euiButton--#{$colorName}:enabled {
177
- box-shadow: none;
178
- }
179
-
180
- .euiControlBar__button.euiButton--#{$colorName}:enabled:not(.euiButton--fill) {
176
+ .euiControlBar__button.euiButton[class*='#{$colorName}']:enabled:not(.euiButton--fill) {
181
177
  color: makeHighContrastColor($colorValue, $euiControlBarBackground);
182
178
  border-color: makeHighContrastColor($colorValue, $euiControlBarBackground);
183
179
  }
184
180
 
185
- .euiButtonIcon--#{$colorName} {
181
+ .euiButtonIcon[class*='#{$colorName}'] {
186
182
  color: makeHighContrastColor($colorValue, $euiControlBarBackground);
187
183
  }
188
184
  }
@@ -9,12 +9,15 @@
9
9
  }
10
10
 
11
11
  .euiFlyout__closeButton {
12
- background-color: transparentize($euiColorEmptyShade, .1);
13
12
  position: absolute;
14
13
  right: $euiSizeS;
15
14
  top: $euiSizeS;
16
15
  z-index: 3;
17
16
 
17
+ &:not(.euiFlyout__closeButton--outside) {
18
+ background-color: transparentize($euiColorEmptyShade, .1);
19
+ }
20
+
18
21
  &--outside {
19
22
  // match dropshadow
20
23
  @include euiBottomShadowLarge;
@@ -5,7 +5,6 @@
5
5
  @import 'basic_table/index';
6
6
  @import 'button/index';
7
7
  @import 'call_out/index';
8
- @import 'card/index';
9
8
  @import 'code/index';
10
9
  @import 'collapsible_nav/index';
11
10
  @import 'color_picker/index';
@@ -15,9 +15,9 @@
15
15
  // Adds the focus (and hover) animation for translating up 1px
16
16
  @mixin euiButtonFocus {
17
17
  @include euiCanAnimate {
18
- transition: transform $euiAnimSpeedNormal ease-in-out, background $euiAnimSpeedNormal ease-in-out;
18
+ transition: transform $euiAnimSpeedNormal ease-in-out, background-color $euiAnimSpeedNormal ease-in-out;
19
19
 
20
- &:hover:not([class*='isDisabled']) {
20
+ &:hover:not(:disabled) {
21
21
  transform: translateY(-1px);
22
22
  }
23
23
 
@@ -25,7 +25,7 @@
25
25
  animation: euiButtonActive $euiAnimSpeedNormal $euiAnimSlightBounce;
26
26
  }
27
27
 
28
- &:active:not([class*='isDisabled']) {
28
+ &:active:not(:disabled) {
29
29
  transform: translateY(1px);
30
30
  }
31
31
  }
@@ -37,15 +37,13 @@
37
37
  @include euiButtonBase;
38
38
  @include euiFont;
39
39
  @include euiFontSize;
40
+ @include euiButtonFocus;
40
41
 
42
+ font-weight: $euiButtonFontWeight;
41
43
  text-decoration: none;
42
- border: solid 1px transparent;
43
-
44
- // sass-lint:disable mixins-before-declarations
45
- // focus states should come after all default styles
46
- @include euiButtonFocus;
44
+ outline-offset: -1px;
47
45
 
48
- &:hover:not([class*='isDisabled']),
46
+ &:hover:not(:disabled),
49
47
  &:focus {
50
48
  text-decoration: underline;
51
49
  }
@@ -92,8 +90,10 @@
92
90
  pointer-events: auto;
93
91
  cursor: not-allowed;
94
92
 
95
- .euiButtonContent__icon {
96
- fill: currentColor;
93
+ &:hover,
94
+ &:focus,
95
+ &:focus-within {
96
+ text-decoration: none;
97
97
  }
98
98
 
99
99
  .euiButtonContent__spinner {
@@ -101,5 +101,49 @@
101
101
  }
102
102
  }
103
103
 
104
+ /*
105
+ * Creates the Amsterdam style of button with a transparent background
106
+ */
107
+ @mixin euiButtonDefaultStyle($color: 'primary', $includeStates: true, $transparency: $euiButtonDefaultTransparency) {
108
+ $backgroundColor: $color;
109
+
110
+ @if (map-has-key($euiButtonTypes, $color)) {
111
+ $backgroundColor: map-get($euiButtonTypes, $color);
112
+ }
113
+
114
+ $percentConversion: $transparency * 100%;
115
+ // This variable simulates the possibly darkest background the button could be on
116
+ // Simulates the 20% opaque color on top of the page background color
117
+ $backgroundColorSimulated: mix($euiPageBackgroundColor, $backgroundColor, $percentConversion);
118
+ // Then we can calculate the darkest text color needed
119
+ color: makeHighContrastColor($backgroundColor, $backgroundColorSimulated);
120
+ // But still use transparency
121
+ background-color: transparentize($backgroundColor, $transparency);
122
+
123
+ @if ($includeStates) {
124
+ &:not([class*='isDisabled']) {
125
+ &:hover,
126
+ &:focus {
127
+ // Duplicated from inert state simply to override default theme
128
+ background-color: transparentize($backgroundColor, $transparency);
129
+ }
130
+ }
131
+ }
132
+ }
133
+
134
+ /*
135
+ * Creates the Amsterdam style of fill button
136
+ */
137
+ @mixin euiButtonFillStyle($color: 'primary') {
138
+ $backgroundColor: $color;
139
+
140
+ @if (map-has-key($euiButtonTypes, $color)) {
141
+ $backgroundColor: map-get($euiButtonTypes, $color);
142
+ }
143
+
144
+ background-color: $backgroundColor;
145
+ color: chooseLightOrDarkText($backgroundColor);
146
+ }
147
+
104
148
  // Keyframe animation declarations can be found in
105
149
  // utility/animations.scss
@@ -82,6 +82,15 @@
82
82
  @include euiOverflowShadow('x');
83
83
  }
84
84
 
85
+ /**
86
+ * For quickly applying a full-height element whether using flex or not
87
+ */
88
+ @mixin euiFullHeight {
89
+ height: 100%;
90
+ flex: 1 1 auto;
91
+ overflow: hidden;
92
+ }
93
+
85
94
  // Hiding elements offscreen to only be read by screen reader
86
95
  // See https://github.com/elastic/eui/pull/5130 and https://github.com/elastic/eui/pull/5152 for more info
87
96
  @mixin euiScreenReaderOnly {
@@ -6,7 +6,6 @@
6
6
  @import 'states';
7
7
  @import 'icons';
8
8
 
9
- @import 'beta_badge';
10
9
  @import 'button';
11
10
  @import 'form';
12
11
  @import 'header';