@elastic/eui 64.0.1 → 65.0.2

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 (374) 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 +164 -1249
  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 +136 -1221
  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 +1 -1
  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/button/button.js +112 -215
  21. package/es/components/button/button_display/_button_display.js +90 -40
  22. package/es/components/button/button_display/_button_display.styles.js +7 -16
  23. package/es/components/button/button_display/_button_display_content.js +6 -3
  24. package/es/components/button/button_display/_button_display_content.styles.js +7 -17
  25. package/es/components/button/button_empty/button_empty.js +63 -53
  26. package/es/components/button/button_empty/index.js +1 -1
  27. package/es/components/button/button_group/button_group.js +4 -12
  28. package/es/components/button/button_group/button_group_button.js +14 -4
  29. package/es/components/button/button_icon/button_icon.js +61 -42
  30. package/es/components/call_out/call_out.styles.js +2 -1
  31. package/es/components/card/card.js +173 -89
  32. package/es/components/card/card.styles.js +136 -0
  33. package/es/components/card/card_select/card_select.js +133 -0
  34. package/es/components/card/card_select/card_select.styles.js +25 -0
  35. package/es/components/card/card_select/index.js +8 -0
  36. package/es/components/card/checkable_card/checkable_card.js +14 -9
  37. package/es/components/card/checkable_card/checkable_card.styles.js +22 -0
  38. package/es/components/comment_list/comment_event.styles.js +1 -1
  39. package/es/components/datagrid/body/data_grid_body.js +7 -6
  40. package/es/components/datagrid/body/data_grid_cell.js +13 -12
  41. package/es/components/datagrid/body/header/data_grid_header_cell.js +7 -6
  42. package/es/components/datagrid/body/header/data_grid_header_row.js +7 -6
  43. package/es/components/datagrid/data_grid.js +7 -6
  44. package/es/components/datagrid/utils/in_memory.js +7 -6
  45. package/es/components/date_picker/auto_refresh/auto_refresh.js +3 -2
  46. package/es/components/date_picker/react-datepicker/original.package.json +124 -0
  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/icon/icon.js +2 -1
  54. package/es/components/image/image_button.styles.js +1 -1
  55. package/es/components/image/image_wrapper.styles.js +3 -3
  56. package/es/components/link/link.styles.js +2 -2
  57. package/es/components/list_group/list_group.js +2 -1
  58. package/es/components/list_group/list_group_item.js +2 -1
  59. package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +3 -2
  60. package/es/components/loading/loading_chart.styles.js +16 -26
  61. package/es/components/loading/loading_content.styles.js +2 -2
  62. package/es/components/loading/loading_logo.styles.js +4 -4
  63. package/es/components/loading/loading_spinner.styles.js +6 -6
  64. package/es/components/markdown_editor/markdown_editor_toolbar.js +2 -0
  65. package/es/components/modal/confirm_modal.js +1 -1
  66. package/es/components/notification/notification_event.js +5 -3
  67. package/es/components/notification/notification_event_read_button.js +2 -1
  68. package/es/components/page/page_template.js +2 -2
  69. package/es/components/page_template/inner/page_inner.styles.js +2 -2
  70. package/es/components/page_template/outer/page_outer.styles.js +3 -1
  71. package/es/components/pagination/pagination_button.js +5 -3
  72. package/es/components/panel/panel.js +1 -1
  73. package/es/components/panel/{panel.style.js → panel.styles.js} +2 -2
  74. package/es/components/progress/progress.styles.js +2 -2
  75. package/es/components/title/title.styles.js +2 -2
  76. package/es/components/toast/toast.styles.js +4 -4
  77. package/es/components/tool_tip/icon_tip.js +11 -1
  78. package/es/components/tool_tip/tool_tip.js +18 -6
  79. package/es/global_styling/functions/logicals.js +2 -72
  80. package/es/global_styling/functions/logicals.json +56 -0
  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 +7 -1
  84. package/es/global_styling/reset/global_styles.js +2 -1
  85. package/es/themes/amsterdam/global_styling/mixins/button.js +165 -16
  86. package/eui.d.ts +1062 -936
  87. package/i18ntokens.json +15 -15
  88. package/lib/components/accessibility/screen_reader_only/screen_reader_only.styles.js +3 -1
  89. package/lib/components/accessibility/skip_link/skip_link.js +4 -54
  90. package/lib/components/accordion/accordion.js +3 -1
  91. package/lib/components/accordion/accordion.styles.js +17 -26
  92. package/lib/components/badge/beta_badge/beta_badge.js +16 -3
  93. package/lib/components/basic_table/basic_table.js +1 -1
  94. package/lib/components/basic_table/collapsed_item_actions.js +1 -1
  95. package/lib/components/basic_table/in_memory_table.js +1 -1
  96. package/lib/components/beacon/beacon.styles.js +1 -1
  97. package/lib/components/button/button.js +124 -229
  98. package/lib/components/button/button_display/_button_display.js +94 -33
  99. package/lib/components/button/button_display/_button_display.styles.js +7 -16
  100. package/lib/components/button/button_display/_button_display_content.js +7 -3
  101. package/lib/components/button/button_display/_button_display_content.styles.js +7 -17
  102. package/lib/components/button/button_empty/button_empty.js +64 -54
  103. package/lib/components/button/button_empty/index.js +0 -6
  104. package/lib/components/button/button_group/button_group.js +4 -12
  105. package/lib/components/button/button_group/button_group_button.js +15 -4
  106. package/lib/components/button/button_icon/button_icon.js +61 -43
  107. package/lib/components/call_out/call_out.styles.js +2 -1
  108. package/lib/components/card/card.js +174 -88
  109. package/lib/components/card/card.styles.js +146 -0
  110. package/lib/components/card/card_select/card_select.js +144 -0
  111. package/lib/components/card/card_select/card_select.styles.js +27 -0
  112. package/lib/components/card/card_select/index.js +19 -0
  113. package/lib/components/card/checkable_card/checkable_card.js +16 -9
  114. package/lib/components/card/checkable_card/checkable_card.styles.js +33 -0
  115. package/lib/components/comment_list/comment_event.styles.js +1 -1
  116. package/lib/components/datagrid/body/data_grid_body.js +7 -6
  117. package/lib/components/datagrid/body/data_grid_cell.js +13 -12
  118. package/lib/components/datagrid/body/header/data_grid_header_cell.js +7 -6
  119. package/lib/components/datagrid/body/header/data_grid_header_row.js +7 -6
  120. package/lib/components/datagrid/data_grid.js +7 -6
  121. package/lib/components/datagrid/utils/in_memory.js +7 -6
  122. package/lib/components/date_picker/auto_refresh/auto_refresh.js +3 -2
  123. package/lib/components/date_picker/react-datepicker/original.package.json +124 -0
  124. package/lib/components/date_picker/super_date_picker/super_date_picker.js +17 -1
  125. package/lib/components/date_picker/super_date_picker/super_update_button.js +11 -1
  126. package/lib/components/description_list/description_list_title.js +1 -1
  127. package/lib/components/expression/expression.styles.js +12 -30
  128. package/lib/components/facet/facet_button.js +4 -3
  129. package/lib/components/header/header_links/header_link.js +5 -3
  130. package/lib/components/icon/icon.js +2 -1
  131. package/lib/components/image/image_button.styles.js +1 -1
  132. package/lib/components/image/image_wrapper.styles.js +2 -2
  133. package/lib/components/link/link.styles.js +1 -1
  134. package/lib/components/list_group/list_group.js +2 -1
  135. package/lib/components/list_group/list_group_item.js +2 -1
  136. package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +3 -2
  137. package/lib/components/loading/loading_chart.styles.js +16 -25
  138. package/lib/components/loading/loading_content.styles.js +1 -1
  139. package/lib/components/loading/loading_logo.styles.js +4 -4
  140. package/lib/components/loading/loading_spinner.styles.js +5 -5
  141. package/lib/components/markdown_editor/markdown_editor_toolbar.js +2 -0
  142. package/lib/components/modal/confirm_modal.js +1 -1
  143. package/lib/components/notification/notification_event.js +5 -3
  144. package/lib/components/notification/notification_event_read_button.js +2 -1
  145. package/lib/components/page/page_template.js +1 -1
  146. package/lib/components/page_template/inner/page_inner.styles.js +2 -2
  147. package/lib/components/page_template/outer/page_outer.styles.js +4 -1
  148. package/lib/components/panel/panel.js +1 -1
  149. package/{optimize/lib/components/panel/panel.style.js → lib/components/panel/panel.styles.js} +1 -1
  150. package/lib/components/progress/progress.styles.js +2 -2
  151. package/lib/components/title/title.styles.js +1 -1
  152. package/lib/components/toast/toast.styles.js +4 -4
  153. package/lib/components/tool_tip/icon_tip.js +11 -1
  154. package/lib/components/tool_tip/tool_tip.js +18 -6
  155. package/lib/global_styling/functions/logicals.js +3 -72
  156. package/lib/global_styling/functions/logicals.json +56 -0
  157. package/lib/global_styling/functions/typography.js +3 -1
  158. package/lib/global_styling/mixins/_color.js +1 -1
  159. package/lib/global_styling/mixins/_helpers.js +9 -2
  160. package/lib/global_styling/reset/global_styles.js +3 -1
  161. package/lib/themes/amsterdam/global_styling/mixins/button.js +178 -24
  162. package/optimize/es/components/accessibility/screen_reader_only/screen_reader_only.styles.js +2 -1
  163. package/optimize/es/components/accordion/accordion.js +2 -1
  164. package/optimize/es/components/accordion/accordion.styles.js +17 -27
  165. package/optimize/es/components/badge/beta_badge/beta_badge.js +6 -3
  166. package/optimize/es/components/beacon/beacon.styles.js +2 -2
  167. package/optimize/es/components/button/button.js +88 -100
  168. package/optimize/es/components/button/button_display/_button_display.js +67 -32
  169. package/optimize/es/components/button/button_display/_button_display.styles.js +7 -16
  170. package/optimize/es/components/button/button_display/_button_display_content.js +5 -2
  171. package/optimize/es/components/button/button_display/_button_display_content.styles.js +7 -17
  172. package/optimize/es/components/button/button_empty/button_empty.js +55 -47
  173. package/optimize/es/components/button/button_empty/index.js +1 -1
  174. package/optimize/es/components/button/button_group/button_group.js +2 -10
  175. package/optimize/es/components/button/button_group/button_group_button.js +13 -3
  176. package/optimize/es/components/button/button_icon/button_icon.js +54 -41
  177. package/optimize/es/components/call_out/call_out.styles.js +2 -1
  178. package/optimize/es/components/card/card.js +97 -31
  179. package/optimize/es/components/card/card.styles.js +136 -0
  180. package/optimize/es/components/card/{card_select.js → card_select/card_select.js} +16 -14
  181. package/optimize/es/components/card/card_select/card_select.styles.js +25 -0
  182. package/optimize/es/components/card/card_select/index.js +8 -0
  183. package/optimize/es/components/card/checkable_card/checkable_card.js +14 -9
  184. package/optimize/es/components/card/checkable_card/checkable_card.styles.js +22 -0
  185. package/optimize/es/components/comment_list/comment_event.styles.js +1 -1
  186. package/optimize/es/components/date_picker/react-datepicker/original.package.json +124 -0
  187. package/optimize/es/components/description_list/description_list_title.js +1 -1
  188. package/optimize/es/components/expression/expression.styles.js +13 -31
  189. package/optimize/es/components/facet/facet_button.js +5 -3
  190. package/optimize/es/components/icon/icon.js +2 -1
  191. package/optimize/es/components/image/image_button.styles.js +1 -1
  192. package/optimize/es/components/image/image_wrapper.styles.js +3 -3
  193. package/optimize/es/components/link/link.styles.js +2 -2
  194. package/optimize/es/components/loading/loading_chart.styles.js +16 -26
  195. package/optimize/es/components/loading/loading_content.styles.js +2 -2
  196. package/optimize/es/components/loading/loading_logo.styles.js +4 -4
  197. package/optimize/es/components/loading/loading_spinner.styles.js +6 -6
  198. package/optimize/es/components/markdown_editor/markdown_editor_toolbar.js +2 -0
  199. package/optimize/es/components/page/page_template.js +2 -2
  200. package/optimize/es/components/page_template/inner/page_inner.styles.js +2 -2
  201. package/optimize/es/components/page_template/outer/page_outer.styles.js +3 -1
  202. package/optimize/es/components/panel/panel.js +1 -1
  203. package/optimize/es/components/panel/{panel.style.js → panel.styles.js} +2 -2
  204. package/optimize/es/components/progress/progress.styles.js +2 -2
  205. package/optimize/es/components/title/title.styles.js +2 -2
  206. package/optimize/es/components/toast/toast.styles.js +4 -4
  207. package/optimize/es/components/tool_tip/tool_tip.js +7 -5
  208. package/optimize/es/global_styling/functions/logicals.js +2 -72
  209. package/optimize/es/global_styling/functions/logicals.json +56 -0
  210. package/optimize/es/global_styling/functions/typography.js +2 -1
  211. package/optimize/es/global_styling/mixins/_color.js +1 -1
  212. package/optimize/es/global_styling/mixins/_helpers.js +7 -1
  213. package/optimize/es/global_styling/reset/global_styles.js +2 -1
  214. package/optimize/es/themes/amsterdam/global_styling/mixins/button.js +155 -16
  215. package/optimize/lib/components/accessibility/screen_reader_only/screen_reader_only.styles.js +3 -1
  216. package/optimize/lib/components/accordion/accordion.js +3 -1
  217. package/optimize/lib/components/accordion/accordion.styles.js +17 -26
  218. package/optimize/lib/components/badge/beta_badge/beta_badge.js +6 -3
  219. package/optimize/lib/components/beacon/beacon.styles.js +1 -1
  220. package/optimize/lib/components/button/button.js +92 -103
  221. package/optimize/lib/components/button/button_display/_button_display.js +71 -25
  222. package/optimize/lib/components/button/button_display/_button_display.styles.js +7 -16
  223. package/optimize/lib/components/button/button_display/_button_display_content.js +6 -2
  224. package/optimize/lib/components/button/button_display/_button_display_content.styles.js +7 -17
  225. package/optimize/lib/components/button/button_empty/button_empty.js +59 -50
  226. package/optimize/lib/components/button/button_empty/index.js +0 -6
  227. package/optimize/lib/components/button/button_group/button_group.js +2 -10
  228. package/optimize/lib/components/button/button_group/button_group_button.js +15 -3
  229. package/optimize/lib/components/button/button_icon/button_icon.js +54 -41
  230. package/optimize/lib/components/call_out/call_out.styles.js +2 -1
  231. package/optimize/lib/components/card/card.js +97 -30
  232. package/optimize/lib/components/card/card.styles.js +146 -0
  233. package/optimize/lib/components/card/{card_select.js → card_select/card_select.js} +16 -14
  234. package/optimize/lib/components/card/card_select/card_select.styles.js +27 -0
  235. package/optimize/lib/components/card/card_select/index.js +19 -0
  236. package/optimize/lib/components/card/checkable_card/checkable_card.js +16 -9
  237. package/optimize/lib/components/card/checkable_card/checkable_card.styles.js +33 -0
  238. package/optimize/lib/components/comment_list/comment_event.styles.js +1 -1
  239. package/optimize/lib/components/date_picker/react-datepicker/original.package.json +124 -0
  240. package/optimize/lib/components/description_list/description_list_title.js +1 -1
  241. package/optimize/lib/components/expression/expression.styles.js +12 -30
  242. package/optimize/lib/components/facet/facet_button.js +4 -2
  243. package/optimize/lib/components/icon/icon.js +2 -1
  244. package/optimize/lib/components/image/image_button.styles.js +1 -1
  245. package/optimize/lib/components/image/image_wrapper.styles.js +2 -2
  246. package/optimize/lib/components/link/link.styles.js +1 -1
  247. package/optimize/lib/components/loading/loading_chart.styles.js +16 -25
  248. package/optimize/lib/components/loading/loading_content.styles.js +1 -1
  249. package/optimize/lib/components/loading/loading_logo.styles.js +4 -4
  250. package/optimize/lib/components/loading/loading_spinner.styles.js +5 -5
  251. package/optimize/lib/components/markdown_editor/markdown_editor_toolbar.js +2 -0
  252. package/optimize/lib/components/page/page_template.js +1 -1
  253. package/optimize/lib/components/page_template/inner/page_inner.styles.js +2 -2
  254. package/optimize/lib/components/page_template/outer/page_outer.styles.js +4 -1
  255. package/optimize/lib/components/panel/panel.js +1 -1
  256. package/{test-env/components/panel/panel.style.js → optimize/lib/components/panel/panel.styles.js} +1 -1
  257. package/optimize/lib/components/progress/progress.styles.js +2 -2
  258. package/optimize/lib/components/title/title.styles.js +1 -1
  259. package/optimize/lib/components/toast/toast.styles.js +4 -4
  260. package/optimize/lib/components/tool_tip/tool_tip.js +7 -5
  261. package/optimize/lib/global_styling/functions/logicals.js +10 -73
  262. package/optimize/lib/global_styling/functions/logicals.json +56 -0
  263. package/optimize/lib/global_styling/functions/typography.js +3 -1
  264. package/optimize/lib/global_styling/mixins/_color.js +1 -1
  265. package/optimize/lib/global_styling/mixins/_helpers.js +9 -2
  266. package/optimize/lib/global_styling/reset/global_styles.js +3 -1
  267. package/optimize/lib/themes/amsterdam/global_styling/mixins/button.js +170 -17
  268. package/package.json +2 -2
  269. package/src/components/badge/beta_badge/_beta_badge.scss +5 -1
  270. package/src/components/button/_index.scss +0 -1
  271. package/src/components/button/button_empty/_button_empty.scss +4 -48
  272. package/src/components/button/button_group/_button_group.scss +0 -1
  273. package/src/components/button/button_group/_button_group_button.scss +55 -83
  274. package/src/components/button/button_icon/_button_icon.scss +3 -103
  275. package/src/components/control_bar/_control_bar.scss +2 -6
  276. package/src/components/datagrid/_data_grid_data_row.scss +7 -0
  277. package/src/components/flyout/_flyout.scss +4 -1
  278. package/src/components/index.scss +0 -1
  279. package/src/global_styling/mixins/_button.scss +55 -11
  280. package/src/global_styling/mixins/_index.scss +0 -1
  281. package/src/themes/amsterdam/global_styling/mixins/_index.scss +0 -2
  282. package/src/themes/amsterdam/overrides/_header.scss +0 -2
  283. package/src/themes/amsterdam/overrides/_index.scss +0 -4
  284. package/test-env/components/accessibility/screen_reader_only/screen_reader_only.styles.js +3 -1
  285. package/test-env/components/accessibility/skip_link/skip_link.js +4 -54
  286. package/test-env/components/accordion/accordion.js +3 -1
  287. package/test-env/components/accordion/accordion.styles.js +17 -26
  288. package/test-env/components/badge/beta_badge/beta_badge.js +16 -3
  289. package/test-env/components/basic_table/basic_table.js +1 -1
  290. package/test-env/components/basic_table/collapsed_item_actions.js +1 -1
  291. package/test-env/components/basic_table/in_memory_table.js +1 -1
  292. package/test-env/components/beacon/beacon.styles.js +1 -1
  293. package/test-env/components/button/button.js +111 -225
  294. package/test-env/components/button/button_display/_button_display.js +93 -32
  295. package/test-env/components/button/button_display/_button_display.styles.js +7 -16
  296. package/test-env/components/button/button_display/_button_display_content.js +7 -3
  297. package/test-env/components/button/button_display/_button_display_content.styles.js +7 -17
  298. package/test-env/components/button/button_empty/button_empty.js +64 -53
  299. package/test-env/components/button/button_empty/index.js +0 -6
  300. package/test-env/components/button/button_group/button_group.js +4 -12
  301. package/test-env/components/button/button_group/button_group_button.js +16 -4
  302. package/test-env/components/button/button_icon/button_icon.js +61 -42
  303. package/test-env/components/call_out/call_out.styles.js +2 -1
  304. package/test-env/components/card/card.js +172 -88
  305. package/test-env/components/card/card.styles.js +146 -0
  306. package/test-env/components/card/card_select/card_select.js +141 -0
  307. package/test-env/components/card/card_select/card_select.styles.js +27 -0
  308. package/test-env/components/card/card_select/index.js +19 -0
  309. package/test-env/components/card/checkable_card/checkable_card.js +16 -9
  310. package/test-env/components/card/checkable_card/checkable_card.styles.js +33 -0
  311. package/test-env/components/comment_list/comment_event.styles.js +1 -1
  312. package/test-env/components/datagrid/body/data_grid_body.js +7 -6
  313. package/test-env/components/datagrid/body/data_grid_cell.js +13 -12
  314. package/test-env/components/datagrid/body/header/data_grid_header_cell.js +7 -6
  315. package/test-env/components/datagrid/body/header/data_grid_header_row.js +7 -6
  316. package/test-env/components/datagrid/data_grid.js +7 -6
  317. package/test-env/components/datagrid/utils/in_memory.js +7 -6
  318. package/test-env/components/date_picker/auto_refresh/auto_refresh.js +3 -2
  319. package/test-env/components/date_picker/react-datepicker/original.package.json +124 -0
  320. package/test-env/components/date_picker/super_date_picker/super_date_picker.js +17 -1
  321. package/test-env/components/date_picker/super_date_picker/super_update_button.js +11 -1
  322. package/test-env/components/description_list/description_list_title.js +1 -1
  323. package/test-env/components/expression/expression.styles.js +12 -30
  324. package/test-env/components/facet/facet_button.js +4 -3
  325. package/test-env/components/header/header_links/header_link.js +5 -3
  326. package/test-env/components/image/image_button.styles.js +1 -1
  327. package/test-env/components/image/image_wrapper.styles.js +2 -2
  328. package/test-env/components/link/link.styles.js +1 -1
  329. package/test-env/components/list_group/list_group.js +2 -1
  330. package/test-env/components/list_group/list_group_item.js +2 -1
  331. package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +3 -2
  332. package/test-env/components/loading/loading_chart.styles.js +16 -25
  333. package/test-env/components/loading/loading_content.styles.js +1 -1
  334. package/test-env/components/loading/loading_logo.styles.js +4 -4
  335. package/test-env/components/loading/loading_spinner.styles.js +5 -5
  336. package/test-env/components/markdown_editor/markdown_editor_toolbar.js +2 -0
  337. package/test-env/components/modal/confirm_modal.js +1 -1
  338. package/test-env/components/notification/notification_event.js +5 -3
  339. package/test-env/components/notification/notification_event_read_button.js +2 -1
  340. package/test-env/components/page/page_template.js +1 -1
  341. package/test-env/components/page_template/inner/page_inner.styles.js +2 -2
  342. package/test-env/components/page_template/outer/page_outer.styles.js +4 -1
  343. package/test-env/components/panel/panel.js +1 -1
  344. package/{lib/components/panel/panel.style.js → test-env/components/panel/panel.styles.js} +1 -1
  345. package/test-env/components/progress/progress.styles.js +2 -2
  346. package/test-env/components/title/title.styles.js +1 -1
  347. package/test-env/components/toast/toast.styles.js +4 -4
  348. package/test-env/components/tool_tip/icon_tip.js +11 -1
  349. package/test-env/components/tool_tip/tool_tip.js +18 -6
  350. package/test-env/global_styling/functions/logicals.js +10 -73
  351. package/test-env/global_styling/functions/logicals.json +56 -0
  352. package/test-env/global_styling/functions/typography.js +3 -1
  353. package/test-env/global_styling/mixins/_color.js +1 -1
  354. package/test-env/global_styling/mixins/_helpers.js +9 -2
  355. package/test-env/global_styling/reset/global_styles.js +3 -1
  356. package/test-env/themes/amsterdam/global_styling/mixins/button.js +170 -17
  357. package/es/components/card/card_select.js +0 -176
  358. package/lib/components/card/card_select.js +0 -187
  359. package/src/components/button/_button.scss +0 -143
  360. package/src/components/button/button_icon/_variables.scss +0 -11
  361. package/src/components/card/_card.scss +0 -239
  362. package/src/components/card/_card_select.scss +0 -21
  363. package/src/components/card/_index.scss +0 -5
  364. package/src/components/card/_mixins.scss +0 -11
  365. package/src/components/card/_variables.scss +0 -25
  366. package/src/components/card/checkable_card/_checkable_card.scss +0 -29
  367. package/src/components/card/checkable_card/_index.scss +0 -1
  368. package/src/global_styling/mixins/_beta_badge.scss +0 -30
  369. package/src/themes/amsterdam/global_styling/mixins/_button.scss +0 -60
  370. package/src/themes/amsterdam/overrides/_button.scss +0 -119
  371. package/src/themes/amsterdam/overrides/_button_empty.scss +0 -20
  372. package/src/themes/amsterdam/overrides/_button_group.scss +0 -91
  373. package/src/themes/amsterdam/overrides/_card.scss +0 -6
  374. package/test-env/components/card/card_select.js +0 -184
@@ -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
  }
@@ -104,6 +104,13 @@
104
104
  max-width: 400px !important;
105
105
  max-height: 400px !important;
106
106
  z-index: $euiZDataGridCellPopover !important;
107
+ // Workaround for a Safari CSS bug when using both `overflow: auto` & `filter: drop-shadow`
108
+ // (see https://github.com/elastic/eui/issues/6151)
109
+ // Disables the default EuiPopover filter drop-shadow and uses box-shadow instead,
110
+ // since we don't use the popover arrow in any case for cell popovers
111
+ filter: none;
112
+ // sass-lint:disable-block mixins-before-declarations
113
+ @include euiBottomShadow; // TODO: Convert to euiShadowMedium() in Emotion
107
114
  }
108
115
 
109
116
  .euiDataGridRowCell__expandFlex {
@@ -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
@@ -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';
@@ -8,9 +8,7 @@
8
8
  @import 'states';
9
9
  @import '../../../../global_styling/mixins/icons';
10
10
 
11
- @import '../../../../global_styling/mixins/beta_badge';
12
11
  @import '../../../../global_styling/mixins/button';
13
- @import 'button';
14
12
  @import '../../../../global_styling/mixins/form';
15
13
  @import 'form';
16
14
  @import '../../../../global_styling/mixins/header';
@@ -1,5 +1,3 @@
1
- @import '../global_styling/mixins/button';
2
-
3
1
  .euiHeader {
4
2
  height: $euiHeaderHeight;
5
3
  padding-left: $euiSizeS;
@@ -1,7 +1,3 @@
1
- @import 'button';
2
- @import 'button_empty';
3
- @import 'button_group';
4
- @import 'card';
5
1
  @import 'code';
6
2
  @import 'color_stops';
7
3
  @import 'combo_box';
@@ -7,6 +7,8 @@ exports.euiScreenReaderOnlyStyles = exports.euiScreenReaderOnly = void 0;
7
7
 
8
8
  var _react = require("@emotion/react");
9
9
 
10
+ var _global_styling = require("../../../global_styling");
11
+
10
12
  /*
11
13
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
12
14
  * or more contributor license agreements. Licensed under the Elastic License
@@ -20,7 +22,7 @@ var _react = require("@emotion/react");
20
22
  * See https://github.com/elastic/eui/pull/5130 and https://github.com/elastic/eui/pull/5152 for more info
21
23
  */
22
24
  var euiScreenReaderOnly = function euiScreenReaderOnly() {
23
- return "\n // Take the element out of the layout\n position: absolute;\n // Keep it vertically inline\n top: auto;\n // Chrome requires a left value, and Selenium (used by Kibana's FTR) requires an off-screen position for its .getVisibleText() to not register SR-only text\n left: -10000px;\n // The element must have a size (for some screen readers)\n width: 1px;\n height: 1px;\n // But reduce the visible size to nothing\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n // And ensure no overflows occur\n overflow: hidden;\n // Chrome requires the negative margin to not cause overflows of parent containers\n margin: -1px;\n";
25
+ return "\n // Take the element out of the layout\n position: absolute;\n // Keep it vertically inline\n ".concat((0, _global_styling.logicalCSS)('top', 'auto'), "\n // Chrome requires a left value, and Selenium (used by Kibana's FTR) requires an off-screen position for its .getVisibleText() to not register SR-only text\n ").concat((0, _global_styling.logicalCSS)('left', '-10000px'), "\n // The element must have a size (for some screen readers)\n ").concat((0, _global_styling.logicalSizeCSS)('1px', '1px'), "\n // But reduce the visible size to nothing\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n // And ensure no overflows occur\n overflow: hidden;\n // Chrome requires the negative margin to not cause overflows of parent containers\n margin: -1px;\n");
24
26
  };
25
27
  /*
26
28
  * Styles
@@ -160,70 +160,20 @@ EuiSkipLink.propTypes = {
160
160
  fill: _propTypes.default.bool,
161
161
 
162
162
  /**
163
- * Any of our named colors.
163
+ * Any of the named color palette options.
164
+ * **`'ghost'` is set for deprecation. Use EuiThemeProvide.colorMode = 'dark' instead.**
164
165
  */
165
- color: _propTypes.default.oneOf(["primary", "accent", "success", "warning", "danger", "ghost", "text"]),
166
+ color: _propTypes.default.oneOfType([_propTypes.default.any.isRequired, _propTypes.default.oneOf(["ghost"])]),
166
167
 
167
168
  /**
168
169
  * Use size `s` in confined spaces
169
170
  */
170
- size: _propTypes.default.oneOf(["s", "m"]),
171
+ size: _propTypes.default.any,
171
172
 
172
173
  /**
173
174
  * `disabled` is also allowed
174
175
  */
175
176
  isDisabled: _propTypes.default.bool,
176
-
177
- /**
178
- * Applies the boolean state as the `aria-pressed` property to create a toggle button.
179
- * *Only use when the readable text does not change between states.*
180
- */
181
- isSelected: _propTypes.default.bool,
182
-
183
- /**
184
- * Extends the button to 100% width
185
- */
186
- fullWidth: _propTypes.default.bool,
187
-
188
- /**
189
- * Override the default minimum width
190
- */
191
- minWidth: _propTypes.default.any,
192
-
193
- /**
194
- * Force disables the button and changes the icon to a loading spinner
195
- */
196
- isLoading: _propTypes.default.bool,
197
-
198
- /**
199
- * Object of props passed to the <span/> wrapping the button's content
200
- */
201
- contentProps: _propTypes.default.any,
202
- style: _propTypes.default.any,
203
-
204
- /**
205
- * Any `type` accepted by EuiIcon
206
- */
207
- iconType: _propTypes.default.oneOfType([_propTypes.default.oneOf(["accessibility", "addDataApp", "advancedSettingsApp", "agentApp", "aggregate", "alert", "analyzeEvent", "annotation", "apmApp", "apmTrace", "appSearchApp", "apps", "arrowDown", "arrowLeft", "arrowRight", "arrowUp", "arrowStart", "arrowEnd", "asterisk", "auditbeatApp", "beaker", "bell", "bellSlash", "bolt", "boxesHorizontal", "boxesVertical", "branch", "branchUser", "broom", "brush", "bug", "bullseye", "calendar", "canvasApp", "casesApp", "check", "checkInCircleFilled", "cheer", "classificationJob", "clock", "cloudDrizzle", "cloudStormy", "cloudSunny", "cluster", "codeApp", "color", "compute", "console", "consoleApp", "container", "continuityAbove", "continuityAboveBelow", "continuityBelow", "continuityWithin", "controlsHorizontal", "controlsVertical", "copy", "copyClipboard", "createAdvancedJob", "createMultiMetricJob", "createPopulationJob", "createSingleMetricJob", "cross", "crossClusterReplicationApp", "crossInACircleFilled", "crosshairs", "currency", "cut", "dashboardApp", "dataVisualizer", "database", "desktop", "devToolsApp", "discoverApp", "document", "documentEdit", "documentation", "documents", "dot", "doubleArrowLeft", "doubleArrowRight", "download", "editorAlignCenter", "editorAlignLeft", "editorAlignRight", "editorBold", "editorChecklist", "editorCodeBlock", "editorComment", "editorDistributeHorizontal", "editorDistributeVertical", "editorHeading", "editorItalic", "editorItemAlignBottom", "editorItemAlignCenter", "editorItemAlignLeft", "editorItemAlignMiddle", "editorItemAlignRight", "editorItemAlignTop", "editorLink", "editorOrderedList", "editorPositionBottomLeft", "editorPositionBottomRight", "editorPositionTopLeft", "editorPositionTopRight", "editorRedo", "editorStrike", "editorTable", "editorUnderline", "editorUndo", "editorUnorderedList", "email", "empty", "emsApp", "eql", "eraser", "exit", "expand", "expandMini", "exportAction", "eye", "eyeClosed", "faceHappy", "faceNeutral", "faceSad", "filebeatApp", "filter", "flag", "fleetApp", "fold", "folderCheck", "folderClosed", "folderExclamation", "folderOpen", "frameNext", "framePrevious", "fullScreen", "fullScreenExit", "function", "gear", "gisApp", "glasses", "globe", "grab", "grabHorizontal", "graphApp", "grid", "grokApp", "heart", "heartbeatApp", "heatmap", "help", "home", "iInCircle", "image", "importAction", "indexClose", "indexEdit", "indexFlush", "indexManagementApp", "indexMapping", "indexOpen", "indexPatternApp", "indexRollupApp", "indexRuntime", "indexSettings", "inputOutput", "inspect", "invert", "ip", "keyboard", "kqlField", "kqlFunction", "kqlOperand", "kqlSelector", "kqlValue", "kubernetesNode", "kubernetesPod", "layers", "lensApp", "lettering", "lineDashed", "lineDotted", "lineSolid", "link", "list", "listAdd", "lock", "lockOpen", "logoAWS", "logoAWSMono", "logoAerospike", "logoApache", "logoAppSearch", "logoAzure", "logoAzureMono", "logoBeats", "logoBusinessAnalytics", "logoCeph", "logoCloud", "logoCloudEnterprise", "logoCode", "logoCodesandbox", "logoCouchbase", "logoDocker", "logoDropwizard", "logoElastic", "logoElasticStack", "logoElasticsearch", "logoEnterpriseSearch", "logoEtcd", "logoGCP", "logoGCPMono", "logoGithub", "logoGmail", "logoGolang", "logoGoogleG", "logoHAproxy", "logoIBM", "logoIBMMono", "logoKafka", "logoKibana", "logoKubernetes", "logoLogging", "logoLogstash", "logoMaps", "logoMemcached", "logoMetrics", "logoMongodb", "logoMySQL", "logoNginx", "logoObservability", "logoOsquery", "logoPhp", "logoPostgres", "logoPrometheus", "logoRabbitmq", "logoRedis", "logoSecurity", "logoSiteSearch", "logoSketch", "logoSlack", "logoUptime", "logoWebhook", "logoWindows", "logoWorkplaceSearch", "logsApp", "logstashFilter", "logstashIf", "logstashInput", "logstashOutput", "logstashQueue", "machineLearningApp", "magnet", "magnifyWithExclamation", "magnifyWithMinus", "magnifyWithPlus", "managementApp", "mapMarker", "memory", "menu", "menuDown", "menuLeft", "menuRight", "menuUp", "merge", "metricbeatApp", "metricsApp", "minimize", "minus", "minusInCircle", "minusInCircleFilled", "mobile", "monitoringApp", "moon", "namespace", "nested", "node", "notebookApp", "number", "offline", "online", "outlierDetectionJob", "package", "packetbeatApp", "pageSelect", "pagesSelect", "paperClip", "partial", "pause", "payment", "pencil", "percent", "pin", "pinFilled", "pipelineApp", "play", "playFilled", "plus", "plusInCircle", "plusInCircleFilled", "popout", "push", "questionInCircle", "quote", "recentlyViewedApp", "refresh", "regressionJob", "reporter", "reportingApp", "returnKey", "save", "savedObjectsApp", "scale", "search", "searchProfilerApp", "securityAnalyticsApp", "securityApp", "securitySignal", "securitySignalDetected", "securitySignalResolved", "sessionViewer", "shard", "share", "snowflake", "sortDown", "sortLeft", "sortRight", "sortUp", "sortable", "spacesApp", "sqlApp", "starEmpty", "starEmptySpace", "starFilled", "starFilledSpace", "starMinusEmpty", "starMinusFilled", "starPlusEmpty", "starPlusFilled", "stats", "stop", "stopFilled", "stopSlash", "storage", "string", "submodule", "sun", "swatchInput", "symlink", "tableDensityCompact", "tableDensityExpanded", "tableDensityNormal", "tableOfContents", "tag", "tear", "temperature", "timeline", "timelionApp", "timeRefresh", "timeslider", "training", "trash", "unfold", "unlink", "upgradeAssistantApp", "uptimeApp", "user", "userAvatar", "users", "usersRolesApp", "vector", "videoPlayer", "visArea", "visAreaStacked", "visBarHorizontal", "visBarHorizontalStacked", "visBarVertical", "visBarVerticalStacked", "visGauge", "visGoal", "visLine", "visMapCoordinate", "visMapRegion", "visMetric", "visPie", "visTable", "visTagCloud", "visText", "visTimelion", "visVega", "visVisualBuilder", "visualizeApp", "watchesApp", "wordWrap", "wordWrapDisabled", "workplaceSearchApp", "wrench", "tokenAlias", "tokenAnnotation", "tokenArray", "tokenBinary", "tokenBoolean", "tokenClass", "tokenCompletionSuggester", "tokenConstant", "tokenDate", "tokenDenseVector", "tokenElement", "tokenEnum", "tokenEnumMember", "tokenEvent", "tokenException", "tokenField", "tokenFile", "tokenFlattened", "tokenFunction", "tokenGeo", "tokenHistogram", "tokenInterface", "tokenIP", "tokenJoin", "tokenKey", "tokenKeyword", "tokenMethod", "tokenMetricCounter", "tokenMetricGauge", "tokenModule", "tokenNamespace", "tokenNested", "tokenNull", "tokenNumber", "tokenObject", "tokenOperator", "tokenPackage", "tokenParameter", "tokenPercolator", "tokenProperty", "tokenRange", "tokenRankFeature", "tokenRankFeatures", "tokenRepo", "tokenSearchType", "tokenShape", "tokenString", "tokenStruct", "tokenSymbol", "tokenTag", "tokenText", "tokenTokenCount", "tokenVariable"]).isRequired, _propTypes.default.string.isRequired, _propTypes.default.elementType.isRequired]),
208
-
209
- /**
210
- * Can only be one side `left` or `right`
211
- */
212
- iconSide: _propTypes.default.oneOf(["left", "right"]),
213
-
214
- /**
215
- * Object of props passed to the <span/> wrapping the content's text (only if the children is a `string`)
216
- * It doesn't apply to the icon.
217
- */
218
- textProps: _propTypes.default.shape({
219
- className: _propTypes.default.string,
220
- "aria-label": _propTypes.default.string,
221
- "data-test-subj": _propTypes.default.string,
222
- css: _propTypes.default.any,
223
- ref: _propTypes.default.any,
224
- "data-text": _propTypes.default.string
225
- }),
226
- iconSize: _propTypes.default.oneOf(["s", "m"]),
227
177
  className: _propTypes.default.string,
228
178
  "aria-label": _propTypes.default.string,
229
179
  "data-test-subj": _propTypes.default.string,