@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
@@ -1,143 +0,0 @@
1
- // This file has lots of modifiers and is somewhat nesty by nature
2
- // sass-lint:disable nesting-depth
3
-
4
- // Our base button
5
- .euiButton {
6
- @include euiButton;
7
- @include euiSlightShadow;
8
-
9
- border-radius: $euiBorderRadius;
10
- min-width: $euiButtonMinWidth;
11
-
12
- .euiButton__content {
13
- padding: 0 ($euiSize - $euiSizeXS);
14
- }
15
-
16
- .euiButton__text {
17
- text-overflow: ellipsis;
18
- overflow: hidden;
19
- }
20
-
21
- &.euiButton--small {
22
- height: $euiButtonHeightSmall;
23
- line-height: $euiButtonHeightSmall; // prevents descenders from getting cut off
24
- }
25
-
26
- &:hover,
27
- &:active {
28
- @include euiSlightShadowHover;
29
- }
30
-
31
- &:not([class*='isDisabled']) {
32
- &:hover,
33
- &:focus,
34
- &:focus-within {
35
- background-color: transparentize($euiColorPrimary, .9);
36
- }
37
- }
38
-
39
- &.euiButton-isDisabled {
40
- @include euiButtonContentDisabled;
41
- color: $euiButtonColorDisabledText;
42
- border-color: $euiButtonColorDisabled;
43
-
44
- &.euiButton--fill {
45
- // Only increase the contrast of background color to text to 2.0 for disabled
46
- color: makeHighContrastColor($euiButtonColorDisabled, $euiButtonColorDisabled, 2);
47
- background-color: $euiButtonColorDisabled;
48
- border-color: $euiButtonColorDisabled;
49
-
50
- &:hover,
51
- &:focus,
52
- &:focus-within {
53
- background-color: $euiButtonColorDisabled;
54
- border-color: $euiButtonColorDisabled;
55
- }
56
- }
57
-
58
- &:hover,
59
- &:focus,
60
- &:focus-within {
61
- @include euiSlightShadow;
62
- text-decoration: none;
63
- }
64
- }
65
- }
66
-
67
- // Create button modifiers based upon the map.
68
- @each $name, $color in $euiButtonTypes {
69
- .euiButton--#{$name} {
70
- @if ($name == 'ghost') {
71
- // Ghost is unique and ALWAYS sits against a dark background.
72
- color: $color;
73
- } @else if ($name == 'text') {
74
- // The default color is lighter than the normal text color, make the it the text color
75
- color: $euiTextColor;
76
- } @else {
77
- // Other colors need to check their contrast against the page background color.
78
- color: makeHighContrastColor($color, $euiPageBackgroundColor);
79
- }
80
-
81
- border-color: $color;
82
-
83
- &.euiButton--fill {
84
- background-color: $color;
85
- border-color: $color;
86
-
87
- // The function makes that hexes safe for theming
88
- $fillTextColor: chooseLightOrDarkText($color, $euiColorGhost, $euiColorInk);
89
-
90
- color: $fillTextColor;
91
-
92
- &:not([class*='isDisabled']) {
93
- &:hover,
94
- &:focus,
95
- &:focus-within {
96
- background-color: darken($color, 5%);
97
- border-color: darken($color, 5%);
98
- }
99
- }
100
- }
101
-
102
- &:not([class*='isDisabled']) {
103
- $shadowColor: $euiShadowColor;
104
- @if ($name == 'ghost') {
105
- $shadowColor: $euiColorInk;
106
- } @else if (lightness($euiTextColor) < 50) {
107
- // Only if this is the light theme do we use the button variant color to colorize the shadow
108
- $shadowColor: desaturate($color, 60%);
109
- }
110
-
111
- @include euiSlightShadow($shadowColor);
112
-
113
- &:hover,
114
- &:focus,
115
- &:focus-within {
116
- @include euiSlightShadowHover($shadowColor);
117
- background-color: transparentize($color, .9);
118
- }
119
- }
120
- }
121
- }
122
-
123
- // Fix ghost/disabled look specifically
124
- .euiButton.euiButton-isDisabled.euiButton--ghost {
125
- &,
126
- &:hover,
127
- &:focus,
128
- &:focus-within {
129
- @include euiSlightShadow($euiColorInk);
130
- color: $euiButtonColorGhostDisabled;
131
- border-color: $euiButtonColorGhostDisabled;
132
- }
133
-
134
- &.euiButton--fill {
135
- background-color: $euiButtonColorGhostDisabled;
136
- color: makeHighContrastColor($euiButtonColorGhostDisabled, $euiButtonColorGhostDisabled, 2);
137
- }
138
- }
139
-
140
- .euiButton--fullWidth {
141
- display: block;
142
- width: 100%;
143
- }
@@ -1,11 +0,0 @@
1
- // Modifier naming and colors.
2
- $euiButtonIconTypes: (
3
- accent: $euiColorAccentText,
4
- danger: $euiColorDangerText,
5
- ghost: $euiColorGhost,
6
- primary: $euiColorPrimaryText,
7
- subdued: $euiTextSubduedColor,
8
- success: $euiColorSuccessText,
9
- text: $euiColorDarkShade,
10
- warning: $euiColorWarningText,
11
- );
@@ -1,239 +0,0 @@
1
- /**
2
- * 1. Footer is always at the bottom.
3
- * 2. Fix for IE where the image correctly resizes in width but doesn't collapse its height
4
- (https://github.com/philipwalton/flexbugs/issues/75#issuecomment-134702421)
5
- * 3. Horizontal layouts should always top left align no matter the textAlign prop
6
- */
7
-
8
- // EuiCard inherits most from EuiPanel, these styles are for content or other states
9
-
10
- .euiCard {
11
- display: flex;
12
- flex-direction: column;
13
- min-height: 1px; /* 2 */
14
-
15
- &.euiCard-isDisabled {
16
- // sass-lint:disable-block no-important
17
- cursor: not-allowed !important; // duplicate property due to Chrome bug
18
- transform: none !important;
19
- box-shadow: none !important;
20
- text-decoration: none !important;
21
- background-color: transparentize($euiButtonColorDisabled, .9) !important;
22
- color: $euiColorDisabledText;
23
-
24
- .euiCard__top {
25
- filter: grayscale(100%);
26
- }
27
-
28
- .euiCard__titleAnchor,
29
- .euiCard__titleButton {
30
- color: $euiColorDisabledText;
31
- cursor: inherit;
32
- }
33
-
34
- .euiCard__betaBadge:not(.euiBetaBadge-isClickable):not(.euiBetaBadge--hollow) {
35
- box-shadow: inset 0 0 0 1px $euiBorderColor;
36
- background: transparent;
37
- color: inherit;
38
- }
39
-
40
- .euiCard__betaBadge:not(.euiBetaBadge-isClickable).euiBetaBadge--hollow {
41
- background-color: $euiColorEmptyShade;
42
- }
43
- }
44
-
45
- &.euiCard--isClickable {
46
- display: flex; // Override panel
47
- width: 100%;
48
-
49
- &:not(.euiCard-isDisabled) {
50
- // Progressive Enhancement Only
51
- // The title will still underline to simulate focus in IE
52
- &:focus-within {
53
- @include euiSlightShadowHover;
54
- @include euiFocusRing('large');
55
- }
56
-
57
- &:focus,
58
- &:hover {
59
- .euiCard__title,
60
- .euiCard__titleAnchor,
61
- .euiCard__titleButton {
62
- text-decoration: underline;
63
- }
64
- }
65
- }
66
- }
67
-
68
- .euiCard__top,
69
- .euiCard__content,
70
- .euiCard__footer {
71
- width: 100%; // Fixes IE and ensures they always stretch no matter the flex layout
72
- }
73
-
74
- &.euiCard--leftAligned {
75
- text-align: left;
76
- align-items: flex-start;
77
-
78
- .euiCard__titleButton {
79
- text-align: left;
80
- }
81
- }
82
-
83
- &.euiCard--centerAligned {
84
- text-align: center;
85
- align-items: center;
86
- }
87
-
88
- &.euiCard--rightAligned {
89
- text-align: right;
90
- align-items: flex-end;
91
-
92
- .euiCard__titleButton {
93
- text-align: right;
94
- }
95
- }
96
-
97
- &.euiCard-isSelected {
98
- transition: all $euiAnimSpeedFast $euiAnimSlightResistance;
99
- }
100
- }
101
-
102
- // This creates a bunch of sub selectors for the beta badge
103
- @include euiHasBetaBadge($selector: '.euiCard', $spacing: $euiCardSpacing);
104
-
105
- .euiCard__betaBadge.euiBetaBadge--hollow {
106
- background-color: $euiColorEmptyShade;
107
- }
108
-
109
- .euiCard--isSelectable {
110
- position: relative;
111
- }
112
-
113
-
114
- @each $modifier, $paddingAmount in $euiPanelPaddingModifiers {
115
- .euiCard[class*='#{$modifier}'] {
116
- padding: $paddingAmount;
117
-
118
- &.euiCard--isSelectable {
119
- padding-bottom: $paddingAmount + $euiCardBottomNodeHeight;
120
- }
121
-
122
- .euiCard__top {
123
-
124
- .euiCard__image {
125
- width: calc(100% + (#{$paddingAmount} * 2));
126
- left: $paddingAmount * -1;
127
- top: $paddingAmount * -1;
128
- margin-bottom: $paddingAmount * -1; // ensure the parent is only as tall as the image
129
-
130
- // IF both exist, position the icon centered on top of image
131
- + .euiCard__icon {
132
- transform: translate(-50%, -75%); // Fallback for IE as it doesn't accept calcs in translates
133
- transform: translate(-50%, calc(-50% + #{$paddingAmount * -1})); // sass-lint:disable-line no-duplicate-properties
134
- }
135
- }
136
- }
137
-
138
- }
139
- }
140
-
141
- .euiCard__top {
142
- flex-grow: 0; /* 1 */
143
- position: relative;
144
- min-height: 1px; /* 2 */
145
- font-size: 0;
146
-
147
- .euiCard__image {
148
- position: relative;
149
-
150
- // match border radius, minus 1px because it's inside a border
151
- border-top-left-radius: $euiBorderRadius - 1px;
152
- border-top-right-radius: $euiBorderRadius - 1px;
153
- overflow: hidden;
154
-
155
- img {
156
- width: 100%;
157
- }
158
-
159
- // IF both exist, position the icon centered on top of image
160
- + .euiCard__icon {
161
- position: absolute;
162
- top: 50%;
163
- left: 50%;
164
- }
165
- }
166
-
167
- .euiCard__icon {
168
- margin-top: $euiCardSpacing / 2;
169
- }
170
- }
171
-
172
- .euiCard__footer:not(:empty) {
173
- flex-grow: 0; /* 1 */
174
- margin-top: $euiCardSpacing;
175
- }
176
-
177
- // Without a border, the image should stand on it's own so it needs to have all corners rounded
178
- .euiCard[class*='transparent'] .euiCard__image {
179
- border-radius: $euiBorderRadius;
180
- }
181
-
182
- @each $name, $color in $euiCardSelectButtonBorders {
183
- .euiCard--isSelectable--#{$name}.euiCard-isSelected:not(.euiCard-isDisabled) {
184
- // Override .euiPanel.has--Border
185
- border-color: $color !important; // sass-lint:disable-line no-important
186
- }
187
- }
188
-
189
- // If an icon or image exists, add some space
190
- .euiCard__top + .euiCard__content {
191
- margin-top: $euiCardSpacing;
192
- }
193
-
194
- .euiCard__content {
195
- flex-grow: 1; /* 1 */
196
-
197
- .euiCard__description,
198
- .euiCard__children {
199
- margin-top: $euiCardSpacing / 2;
200
- }
201
-
202
- .euiCard__titleAnchor,
203
- .euiCard__titleButton {
204
- font: inherit;
205
- color: inherit;
206
- letter-spacing: inherit;
207
-
208
- &:focus {
209
- text-decoration: underline;
210
- }
211
- }
212
-
213
- }
214
-
215
- .euiCard.euiCard--horizontal {
216
- .euiCard__content,
217
- .euiCard__titleButton {
218
- text-align: left; /* 3 */
219
- }
220
-
221
- // Only change the flex direction if the card has an icon
222
- // otherwise the button tag won't properly align contents to top
223
- &.euiCard--hasIcon {
224
- flex-direction: row;
225
- // sass-lint:disable-block no-important
226
- align-items: flex-start !important; /* 3 */
227
-
228
- .euiCard__top,
229
- .euiCard__content {
230
- width: auto; // Makes sure the top shrinks and the content grows
231
- margin-top: 0;
232
- }
233
-
234
- .euiCard__top .euiCard__icon {
235
- margin-top: 0;
236
- margin-right: $euiSize;
237
- }
238
- }
239
- }
@@ -1,21 +0,0 @@
1
- .euiCardSelect {
2
- // Option select button that expands to sides and bottom
3
- @include euiCardBottomNodePosition;
4
- font-weight: $euiFontWeightBold;
5
-
6
- // Create button modifiers based upon the map.
7
- @each $name, $color in $euiCardSelectButtonBackgrounds {
8
- &--#{$name}:enabled {
9
- // Override EuiButtonEmpty's focus background
10
- background-color: $color !important; // sass-lint:disable-line no-important
11
- // Custom success text color since it doesn't exist on EuiButtonEmpty
12
- @if ($name == 'success') {
13
- color: makeHighContrastColor($euiColorSuccess, $color);
14
- }
15
- }
16
- }
17
-
18
- &:disabled {
19
- background-color: $euiPageBackgroundColor;
20
- }
21
- }
@@ -1,5 +0,0 @@
1
- @import 'variables';
2
- @import 'mixins';
3
- @import 'card';
4
- @import 'card_select';
5
- @import 'checkable_card/index';
@@ -1,11 +0,0 @@
1
- @mixin euiCardBottomNodePosition {
2
- position: absolute;
3
- bottom: 0;
4
- left: 0;
5
- height: $euiCardBottomNodeHeight !important; // sass-lint:disable-line no-important -- To override .euiButtonEmpty--xSmall
6
- width: 100%;
7
- overflow: hidden;
8
- // Subtract 1px from border radius since it sits inside a border-radius
9
- border-bottom-left-radius: $euiBorderRadius - 1px;
10
- border-bottom-right-radius: $euiBorderRadius - 1px;
11
- }
@@ -1,25 +0,0 @@
1
- $euiCardSpacing: map-get($euiPanelPaddingModifiers, 'paddingMedium');
2
- $euiCardBottomNodeHeight: $euiSizeXXL;
3
-
4
- $euiCardSelectButtonBorders: (
5
- text: $euiColorSuccess, // Default for selected
6
- primary: $euiColorPrimary,
7
- success: $euiColorSuccess,
8
- danger: $euiColorDanger,
9
- ghost: $euiColorDarkShade,
10
- );
11
-
12
- $euiCardSelectButtonBackgrounds: (
13
- text: $euiColorLightestShade, // Default for unselected
14
- primary: tintOrShade($euiColorPrimary, 90%, 70%),
15
- success: tintOrShade($euiColorSuccess, 90%, 70%),
16
- danger: tintOrShade($euiColorDanger, 90%, 70%),
17
- ghost: $euiColorDarkShade,
18
- );
19
-
20
- $euiCardPaddingModifiers: (
21
- 'paddingNone': 0,
22
- 'paddingSmall': $euiSizeS,
23
- 'paddingMedium': $euiSize,
24
- 'paddingLarge': $euiSizeL
25
- ) !default;
@@ -1,29 +0,0 @@
1
- $euiCheckableCardPadding: map-get($euiPanelPaddingModifiers, 'paddingMedium');
2
-
3
- .euiCheckableCard {
4
- transition: border-color $euiAnimSpeedNormal ease-in;
5
-
6
- &:not(.euiCheckableCard-isDisabled) {
7
- &.euiCheckableCard-isChecked {
8
- border-color: $euiColorPrimary;
9
- }
10
- }
11
- }
12
-
13
- .euiCheckableCard__label {
14
- cursor: pointer;
15
- // Expand the label to cover the whole panel for easier click target
16
- display: block;
17
- width: calc(100% + #{$euiCheckableCardPadding * 2});
18
- padding: $euiCheckableCardPadding;
19
- margin: -$euiCheckableCardPadding;
20
- }
21
-
22
- .euiCheckableCard__label-isDisabled {
23
- color: $euiFormControlDisabledColor;
24
- cursor: not-allowed;
25
- }
26
-
27
- .euiCheckableCard__children {
28
- margin-top: $euiSize;
29
- }
@@ -1 +0,0 @@
1
- @import 'checkable_card';
@@ -1,30 +0,0 @@
1
-
2
- // 1. Extend beta badges to at least 30% of the container's width
3
- // 2. Fix for IE to ensure badges are visible outside of a <button> tag
4
-
5
- @mixin euiHasBetaBadge($selector, $spacing: $euiSize) {
6
- #{$selector}--hasBetaBadge {
7
- position: relative;
8
- overflow: visible; // 2
9
-
10
- #{$selector}__betaBadgeWrapper {
11
- position: absolute;
12
- top: ($euiSizeL / -2);
13
- left: 50%;
14
- transform: translateX(-50%);
15
- z-index: 3; // get above abs positioned image
16
- min-width: 30%; // 1
17
- max-width: calc(100% - #{($spacing * 2)});
18
-
19
- .euiToolTipAnchor,
20
- #{$selector}__betaBadge {
21
- width: 100%; // 1
22
- }
23
-
24
- #{$selector}__betaBadge {
25
- overflow: hidden;
26
- text-overflow: ellipsis;
27
- }
28
- }
29
- }
30
- }
@@ -1,60 +0,0 @@
1
- @mixin euiButton {
2
- @include euiButtonBase;
3
- @include euiFont;
4
- @include euiFontSize;
5
- @include euiButtonFocus;
6
-
7
- font-weight: $euiButtonFontWeight;
8
- text-decoration: none;
9
- transition: background-color $euiAnimSpeedNormal ease-in-out, border-color $euiAnimSpeedNormal ease-in-out;
10
- outline-offset: -1px;
11
-
12
- &:hover:not([class*='isDisabled']),
13
- &:focus {
14
- text-decoration: underline;
15
- }
16
- }
17
-
18
- /*
19
- * Creates the Amsterdam style of button with a transparent background
20
- */
21
- @mixin euiButtonDefaultStyle($color: 'primary', $includeStates: true, $transparency: $euiButtonDefaultTransparency) {
22
- $backgroundColor: $color;
23
-
24
- @if (map-has-key($euiButtonTypes, $color)) {
25
- $backgroundColor: map-get($euiButtonTypes, $color);
26
- }
27
-
28
- $percentConversion: $transparency * 100%;
29
- // This variable simulates the possibly darkest background the button could be on
30
- // Simulates the 20% opaque color on top of the page background color
31
- $backgroundColorSimulated: mix($euiPageBackgroundColor, $backgroundColor, $percentConversion);
32
- // Then we can calculate the darkest text color needed
33
- color: makeHighContrastColor($backgroundColor, $backgroundColorSimulated);
34
- // But still use transparency
35
- background-color: transparentize($backgroundColor, $transparency);
36
-
37
- @if ($includeStates) {
38
- &:not([class*='isDisabled']) {
39
- &:hover,
40
- &:focus {
41
- // Duplicated from inert state simply to override default theme
42
- background-color: transparentize($backgroundColor, $transparency);
43
- }
44
- }
45
- }
46
- }
47
-
48
- /*
49
- * Creates the Amsterdam style of fill button
50
- */
51
- @mixin euiButtonFillStyle($color: 'primary') {
52
- $backgroundColor: $color;
53
-
54
- @if (map-has-key($euiButtonTypes, $color)) {
55
- $backgroundColor: map-get($euiButtonTypes, $color);
56
- }
57
-
58
- background-color: $backgroundColor;
59
- color: chooseLightOrDarkText($backgroundColor);
60
- }
@@ -1,119 +0,0 @@
1
- // This file has lots of modifiers and is somewhat nesty by nature
2
- //sass-lint:disable nesting-depth
3
-
4
- .euiButton,
5
- .euiButtonIcon {
6
- // sass-lint:disable no-important
7
- // remove for all states
8
- box-shadow: none !important;
9
- }
10
-
11
- .euiButton.euiButton-isDisabled:not(.euiButton--ghost),
12
- .euiButtonIcon.euiButtonIcon-isDisabled:not(.euiButtonIcon--ghost) {
13
- &,
14
- &:hover {
15
- $backgroundColorSimulated: mix($euiPageBackgroundColor, $euiButtonColorDisabled, 90%);
16
- background-color: transparentize($euiButtonColorDisabled, .9);
17
- color: makeDisabledContrastColor($euiButtonColorDisabled, $backgroundColorSimulated);
18
- }
19
- }
20
-
21
- .euiButtonIcon--empty.euiButtonIcon-isDisabled:not(.euiButtonIcon--ghost) {
22
- &,
23
- &:hover {
24
- background-color: transparent;
25
- color: makeDisabledContrastColor($euiButtonColorDisabled, $euiPageBackgroundColor);
26
- }
27
- }
28
-
29
- .euiButton--small,
30
- .euiButtonIcon--small,
31
- .euiButtonIcon--xSmall {
32
- // Use a moderately smaller radius on small buttons
33
- // so that they don't appear completely rounded
34
- border-radius: $euiBorderRadius * (2 / 3);
35
- }
36
-
37
- // Change the hollow (bordered) buttons to have a transparent background
38
- // and no border
39
- @each $name, $color in $euiButtonTypes {
40
- .euiButton--#{$name} {
41
- @include euiButtonDefaultStyle($color);
42
-
43
- @if ($name == 'ghost') {
44
- // Ghost is unique and ALWAYS sits against a dark background.
45
- $backgroundColorSimulated: mix($euiColorInk, $color, 70%);
46
- color: makeHighContrastColor($color, $backgroundColorSimulated);
47
- } @else if ($name == 'text') {
48
- // The default color is lighter than the normal text color, make it the text color
49
- color: $euiTextColor;
50
- } @else {
51
- &.euiButton--fill:focus {
52
- outline-color: lightOrDarkTheme($euiColorInk, $euiColorGhost);
53
- }
54
- }
55
-
56
- &.euiButton--fill:not([class*='isDisabled']) {
57
- color: chooseLightOrDarkText($color, $euiColorGhost, $euiColorInk);
58
-
59
- &,
60
- &:hover,
61
- &:focus {
62
- background-color: $color;
63
- }
64
- }
65
- }
66
- }
67
-
68
- // Fix ghost/disabled look specifically
69
- .euiButton.euiButton-isDisabled.euiButton--ghost,
70
- // adding fill type to override default theme
71
- .euiButton.euiButton-isDisabled.euiButton--ghost.euiButton--fill {
72
- &,
73
- &:focus {
74
- color: $euiButtonColorGhostDisabled;
75
- background-color: transparentize($euiButtonColorGhostDisabled, .9);
76
- }
77
- }
78
-
79
-
80
- // Duplicating the above for EuiButtonIcon
81
- @each $name, $color in $euiButtonTypes {
82
- .euiButtonIcon--#{$name}:not(.euiButtonIcon--empty) {
83
- @include euiButtonDefaultStyle($color);
84
-
85
- @if ($name == 'ghost') {
86
- // Ghost is unique and ALWAYS sits against a dark background.
87
- $backgroundColorSimulated: mix($euiColorInk, $color, 70%);
88
- color: makeHighContrastColor($color, $backgroundColorSimulated);
89
- } @else if ($name == 'text') {
90
- // The default color is lighter than the normal text color, make it the text color
91
- color: $euiTextColor;
92
- } @else {
93
- &.euiButtonIcon--fill:focus {
94
- outline-color: lightOrDarkTheme($euiColorInk, $euiColorGhost);
95
- }
96
- }
97
-
98
- &.euiButtonIcon--fill:not([class*='isDisabled']) {
99
- color: chooseLightOrDarkText($color, $euiColorGhost, $euiColorInk);
100
-
101
- &,
102
- &:hover,
103
- &:focus {
104
- background-color: $color;
105
- }
106
- }
107
- }
108
- }
109
-
110
- // Fix ghost/disabled look specifically
111
- .euiButtonIcon:not(.euiButtonIcon--empty).euiButtonIcon-isDisabled.euiButtonIcon--ghost,
112
- // adding fill type to override default theme
113
- .euiButtonIcon.euiButtonIcon-isDisabled.euiButtonIcon--ghost.euiButtonIcon--fill {
114
- &,
115
- &:focus {
116
- color: $euiButtonColorGhostDisabled;
117
- background-color: transparentize($euiButtonColorGhostDisabled, .9);
118
- }
119
- }