@elastic/eui 64.0.1 → 65.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (354) 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 +160 -1248
  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 +132 -1220
  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/super_date_picker/super_date_picker.js +17 -1
  47. package/es/components/date_picker/super_date_picker/super_update_button.js +11 -1
  48. package/es/components/expression/expression.styles.js +13 -31
  49. package/es/components/facet/facet_button.js +5 -4
  50. package/es/components/header/header_links/header_link.js +5 -3
  51. package/es/components/image/image_button.styles.js +1 -1
  52. package/es/components/image/image_wrapper.styles.js +3 -3
  53. package/es/components/link/link.styles.js +2 -2
  54. package/es/components/list_group/list_group.js +2 -1
  55. package/es/components/list_group/list_group_item.js +2 -1
  56. package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +3 -2
  57. package/es/components/loading/loading_chart.styles.js +16 -26
  58. package/es/components/loading/loading_content.styles.js +2 -2
  59. package/es/components/loading/loading_logo.styles.js +4 -4
  60. package/es/components/loading/loading_spinner.styles.js +6 -6
  61. package/es/components/markdown_editor/markdown_editor_toolbar.js +2 -0
  62. package/es/components/modal/confirm_modal.js +1 -1
  63. package/es/components/notification/notification_event.js +5 -3
  64. package/es/components/notification/notification_event_read_button.js +2 -1
  65. package/es/components/page/page_template.js +2 -2
  66. package/es/components/page_template/inner/page_inner.styles.js +2 -2
  67. package/es/components/page_template/outer/page_outer.styles.js +3 -1
  68. package/es/components/pagination/pagination_button.js +5 -3
  69. package/es/components/panel/panel.js +1 -1
  70. package/es/components/panel/{panel.style.js → panel.styles.js} +2 -2
  71. package/es/components/progress/progress.styles.js +2 -2
  72. package/es/components/title/title.styles.js +2 -2
  73. package/es/components/toast/toast.styles.js +4 -4
  74. package/es/components/tool_tip/icon_tip.js +11 -1
  75. package/es/components/tool_tip/tool_tip.js +18 -6
  76. package/es/global_styling/functions/logicals.js +2 -72
  77. package/es/global_styling/functions/typography.js +2 -1
  78. package/es/global_styling/mixins/_color.js +1 -1
  79. package/es/global_styling/mixins/_helpers.js +7 -1
  80. package/es/global_styling/reset/global_styles.js +2 -1
  81. package/es/themes/amsterdam/global_styling/mixins/button.js +165 -16
  82. package/eui.d.ts +1062 -936
  83. package/i18ntokens.json +15 -15
  84. package/lib/components/accessibility/screen_reader_only/screen_reader_only.styles.js +3 -1
  85. package/lib/components/accessibility/skip_link/skip_link.js +4 -54
  86. package/lib/components/accordion/accordion.js +3 -1
  87. package/lib/components/accordion/accordion.styles.js +17 -26
  88. package/lib/components/badge/beta_badge/beta_badge.js +16 -3
  89. package/lib/components/basic_table/basic_table.js +1 -1
  90. package/lib/components/basic_table/collapsed_item_actions.js +1 -1
  91. package/lib/components/basic_table/in_memory_table.js +1 -1
  92. package/lib/components/beacon/beacon.styles.js +1 -1
  93. package/lib/components/button/button.js +124 -229
  94. package/lib/components/button/button_display/_button_display.js +94 -33
  95. package/lib/components/button/button_display/_button_display.styles.js +7 -16
  96. package/lib/components/button/button_display/_button_display_content.js +7 -3
  97. package/lib/components/button/button_display/_button_display_content.styles.js +7 -17
  98. package/lib/components/button/button_empty/button_empty.js +64 -54
  99. package/lib/components/button/button_empty/index.js +0 -6
  100. package/lib/components/button/button_group/button_group.js +4 -12
  101. package/lib/components/button/button_group/button_group_button.js +15 -4
  102. package/lib/components/button/button_icon/button_icon.js +61 -43
  103. package/lib/components/call_out/call_out.styles.js +2 -1
  104. package/lib/components/card/card.js +174 -88
  105. package/lib/components/card/card.styles.js +146 -0
  106. package/lib/components/card/card_select/card_select.js +144 -0
  107. package/lib/components/card/card_select/card_select.styles.js +27 -0
  108. package/lib/components/card/card_select/index.js +19 -0
  109. package/lib/components/card/checkable_card/checkable_card.js +16 -9
  110. package/lib/components/card/checkable_card/checkable_card.styles.js +33 -0
  111. package/lib/components/comment_list/comment_event.styles.js +1 -1
  112. package/lib/components/datagrid/body/data_grid_body.js +7 -6
  113. package/lib/components/datagrid/body/data_grid_cell.js +13 -12
  114. package/lib/components/datagrid/body/header/data_grid_header_cell.js +7 -6
  115. package/lib/components/datagrid/body/header/data_grid_header_row.js +7 -6
  116. package/lib/components/datagrid/data_grid.js +7 -6
  117. package/lib/components/datagrid/utils/in_memory.js +7 -6
  118. package/lib/components/date_picker/auto_refresh/auto_refresh.js +3 -2
  119. package/lib/components/date_picker/super_date_picker/super_date_picker.js +17 -1
  120. package/lib/components/date_picker/super_date_picker/super_update_button.js +11 -1
  121. package/lib/components/expression/expression.styles.js +12 -30
  122. package/lib/components/facet/facet_button.js +4 -3
  123. package/lib/components/header/header_links/header_link.js +5 -3
  124. package/lib/components/image/image_button.styles.js +1 -1
  125. package/lib/components/image/image_wrapper.styles.js +2 -2
  126. package/lib/components/link/link.styles.js +1 -1
  127. package/lib/components/list_group/list_group.js +2 -1
  128. package/lib/components/list_group/list_group_item.js +2 -1
  129. package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +3 -2
  130. package/lib/components/loading/loading_chart.styles.js +16 -25
  131. package/lib/components/loading/loading_content.styles.js +1 -1
  132. package/lib/components/loading/loading_logo.styles.js +4 -4
  133. package/lib/components/loading/loading_spinner.styles.js +5 -5
  134. package/lib/components/markdown_editor/markdown_editor_toolbar.js +2 -0
  135. package/lib/components/modal/confirm_modal.js +1 -1
  136. package/lib/components/notification/notification_event.js +5 -3
  137. package/lib/components/notification/notification_event_read_button.js +2 -1
  138. package/lib/components/page/page_template.js +1 -1
  139. package/lib/components/page_template/inner/page_inner.styles.js +2 -2
  140. package/lib/components/page_template/outer/page_outer.styles.js +4 -1
  141. package/lib/components/panel/panel.js +1 -1
  142. package/{optimize/lib/components/panel/panel.style.js → lib/components/panel/panel.styles.js} +1 -1
  143. package/lib/components/progress/progress.styles.js +2 -2
  144. package/lib/components/title/title.styles.js +1 -1
  145. package/lib/components/toast/toast.styles.js +4 -4
  146. package/lib/components/tool_tip/icon_tip.js +11 -1
  147. package/lib/components/tool_tip/tool_tip.js +18 -6
  148. package/lib/global_styling/functions/logicals.js +3 -72
  149. package/lib/global_styling/functions/typography.js +3 -1
  150. package/lib/global_styling/mixins/_color.js +1 -1
  151. package/lib/global_styling/mixins/_helpers.js +9 -2
  152. package/lib/global_styling/reset/global_styles.js +3 -1
  153. package/lib/themes/amsterdam/global_styling/mixins/button.js +178 -24
  154. package/optimize/es/components/accessibility/screen_reader_only/screen_reader_only.styles.js +2 -1
  155. package/optimize/es/components/accordion/accordion.js +2 -1
  156. package/optimize/es/components/accordion/accordion.styles.js +17 -27
  157. package/optimize/es/components/badge/beta_badge/beta_badge.js +6 -3
  158. package/optimize/es/components/beacon/beacon.styles.js +2 -2
  159. package/optimize/es/components/button/button.js +88 -100
  160. package/optimize/es/components/button/button_display/_button_display.js +67 -32
  161. package/optimize/es/components/button/button_display/_button_display.styles.js +7 -16
  162. package/optimize/es/components/button/button_display/_button_display_content.js +5 -2
  163. package/optimize/es/components/button/button_display/_button_display_content.styles.js +7 -17
  164. package/optimize/es/components/button/button_empty/button_empty.js +55 -47
  165. package/optimize/es/components/button/button_empty/index.js +1 -1
  166. package/optimize/es/components/button/button_group/button_group.js +2 -10
  167. package/optimize/es/components/button/button_group/button_group_button.js +13 -3
  168. package/optimize/es/components/button/button_icon/button_icon.js +54 -41
  169. package/optimize/es/components/call_out/call_out.styles.js +2 -1
  170. package/optimize/es/components/card/card.js +97 -31
  171. package/optimize/es/components/card/card.styles.js +136 -0
  172. package/optimize/es/components/card/{card_select.js → card_select/card_select.js} +16 -14
  173. package/optimize/es/components/card/card_select/card_select.styles.js +25 -0
  174. package/optimize/es/components/card/card_select/index.js +8 -0
  175. package/optimize/es/components/card/checkable_card/checkable_card.js +14 -9
  176. package/optimize/es/components/card/checkable_card/checkable_card.styles.js +22 -0
  177. package/optimize/es/components/comment_list/comment_event.styles.js +1 -1
  178. package/optimize/es/components/expression/expression.styles.js +13 -31
  179. package/optimize/es/components/facet/facet_button.js +5 -3
  180. package/optimize/es/components/image/image_button.styles.js +1 -1
  181. package/optimize/es/components/image/image_wrapper.styles.js +3 -3
  182. package/optimize/es/components/link/link.styles.js +2 -2
  183. package/optimize/es/components/loading/loading_chart.styles.js +16 -26
  184. package/optimize/es/components/loading/loading_content.styles.js +2 -2
  185. package/optimize/es/components/loading/loading_logo.styles.js +4 -4
  186. package/optimize/es/components/loading/loading_spinner.styles.js +6 -6
  187. package/optimize/es/components/markdown_editor/markdown_editor_toolbar.js +2 -0
  188. package/optimize/es/components/page/page_template.js +2 -2
  189. package/optimize/es/components/page_template/inner/page_inner.styles.js +2 -2
  190. package/optimize/es/components/page_template/outer/page_outer.styles.js +3 -1
  191. package/optimize/es/components/panel/panel.js +1 -1
  192. package/optimize/es/components/panel/{panel.style.js → panel.styles.js} +2 -2
  193. package/optimize/es/components/progress/progress.styles.js +2 -2
  194. package/optimize/es/components/title/title.styles.js +2 -2
  195. package/optimize/es/components/toast/toast.styles.js +4 -4
  196. package/optimize/es/components/tool_tip/tool_tip.js +7 -5
  197. package/optimize/es/global_styling/functions/logicals.js +2 -72
  198. package/optimize/es/global_styling/functions/typography.js +2 -1
  199. package/optimize/es/global_styling/mixins/_color.js +1 -1
  200. package/optimize/es/global_styling/mixins/_helpers.js +7 -1
  201. package/optimize/es/global_styling/reset/global_styles.js +2 -1
  202. package/optimize/es/themes/amsterdam/global_styling/mixins/button.js +155 -16
  203. package/optimize/lib/components/accessibility/screen_reader_only/screen_reader_only.styles.js +3 -1
  204. package/optimize/lib/components/accordion/accordion.js +3 -1
  205. package/optimize/lib/components/accordion/accordion.styles.js +17 -26
  206. package/optimize/lib/components/badge/beta_badge/beta_badge.js +6 -3
  207. package/optimize/lib/components/beacon/beacon.styles.js +1 -1
  208. package/optimize/lib/components/button/button.js +92 -103
  209. package/optimize/lib/components/button/button_display/_button_display.js +71 -25
  210. package/optimize/lib/components/button/button_display/_button_display.styles.js +7 -16
  211. package/optimize/lib/components/button/button_display/_button_display_content.js +6 -2
  212. package/optimize/lib/components/button/button_display/_button_display_content.styles.js +7 -17
  213. package/optimize/lib/components/button/button_empty/button_empty.js +59 -50
  214. package/optimize/lib/components/button/button_empty/index.js +0 -6
  215. package/optimize/lib/components/button/button_group/button_group.js +2 -10
  216. package/optimize/lib/components/button/button_group/button_group_button.js +15 -3
  217. package/optimize/lib/components/button/button_icon/button_icon.js +54 -41
  218. package/optimize/lib/components/call_out/call_out.styles.js +2 -1
  219. package/optimize/lib/components/card/card.js +97 -30
  220. package/optimize/lib/components/card/card.styles.js +146 -0
  221. package/optimize/lib/components/card/{card_select.js → card_select/card_select.js} +16 -14
  222. package/optimize/lib/components/card/card_select/card_select.styles.js +27 -0
  223. package/optimize/lib/components/card/card_select/index.js +19 -0
  224. package/optimize/lib/components/card/checkable_card/checkable_card.js +16 -9
  225. package/optimize/lib/components/card/checkable_card/checkable_card.styles.js +33 -0
  226. package/optimize/lib/components/comment_list/comment_event.styles.js +1 -1
  227. package/optimize/lib/components/expression/expression.styles.js +12 -30
  228. package/optimize/lib/components/facet/facet_button.js +4 -2
  229. package/optimize/lib/components/image/image_button.styles.js +1 -1
  230. package/optimize/lib/components/image/image_wrapper.styles.js +2 -2
  231. package/optimize/lib/components/link/link.styles.js +1 -1
  232. package/optimize/lib/components/loading/loading_chart.styles.js +16 -25
  233. package/optimize/lib/components/loading/loading_content.styles.js +1 -1
  234. package/optimize/lib/components/loading/loading_logo.styles.js +4 -4
  235. package/optimize/lib/components/loading/loading_spinner.styles.js +5 -5
  236. package/optimize/lib/components/markdown_editor/markdown_editor_toolbar.js +2 -0
  237. package/optimize/lib/components/page/page_template.js +1 -1
  238. package/optimize/lib/components/page_template/inner/page_inner.styles.js +2 -2
  239. package/optimize/lib/components/page_template/outer/page_outer.styles.js +4 -1
  240. package/optimize/lib/components/panel/panel.js +1 -1
  241. package/{test-env/components/panel/panel.style.js → optimize/lib/components/panel/panel.styles.js} +1 -1
  242. package/optimize/lib/components/progress/progress.styles.js +2 -2
  243. package/optimize/lib/components/title/title.styles.js +1 -1
  244. package/optimize/lib/components/toast/toast.styles.js +4 -4
  245. package/optimize/lib/components/tool_tip/tool_tip.js +7 -5
  246. package/optimize/lib/global_styling/functions/logicals.js +10 -73
  247. package/optimize/lib/global_styling/functions/typography.js +3 -1
  248. package/optimize/lib/global_styling/mixins/_color.js +1 -1
  249. package/optimize/lib/global_styling/mixins/_helpers.js +9 -2
  250. package/optimize/lib/global_styling/reset/global_styles.js +3 -1
  251. package/optimize/lib/themes/amsterdam/global_styling/mixins/button.js +170 -17
  252. package/package.json +2 -2
  253. package/src/components/badge/beta_badge/_beta_badge.scss +5 -1
  254. package/src/components/button/_index.scss +0 -1
  255. package/src/components/button/button_empty/_button_empty.scss +4 -48
  256. package/src/components/button/button_group/_button_group.scss +0 -1
  257. package/src/components/button/button_group/_button_group_button.scss +55 -83
  258. package/src/components/button/button_icon/_button_icon.scss +3 -103
  259. package/src/components/control_bar/_control_bar.scss +2 -6
  260. package/src/components/flyout/_flyout.scss +4 -1
  261. package/src/components/index.scss +0 -1
  262. package/src/global_styling/mixins/_button.scss +55 -11
  263. package/src/global_styling/mixins/_index.scss +0 -1
  264. package/src/themes/amsterdam/global_styling/mixins/_index.scss +0 -2
  265. package/src/themes/amsterdam/overrides/_header.scss +0 -2
  266. package/src/themes/amsterdam/overrides/_index.scss +0 -4
  267. package/test-env/components/accessibility/screen_reader_only/screen_reader_only.styles.js +3 -1
  268. package/test-env/components/accessibility/skip_link/skip_link.js +4 -54
  269. package/test-env/components/accordion/accordion.js +3 -1
  270. package/test-env/components/accordion/accordion.styles.js +17 -26
  271. package/test-env/components/badge/beta_badge/beta_badge.js +16 -3
  272. package/test-env/components/basic_table/basic_table.js +1 -1
  273. package/test-env/components/basic_table/collapsed_item_actions.js +1 -1
  274. package/test-env/components/basic_table/in_memory_table.js +1 -1
  275. package/test-env/components/beacon/beacon.styles.js +1 -1
  276. package/test-env/components/button/button.js +111 -225
  277. package/test-env/components/button/button_display/_button_display.js +93 -32
  278. package/test-env/components/button/button_display/_button_display.styles.js +7 -16
  279. package/test-env/components/button/button_display/_button_display_content.js +7 -3
  280. package/test-env/components/button/button_display/_button_display_content.styles.js +7 -17
  281. package/test-env/components/button/button_empty/button_empty.js +64 -53
  282. package/test-env/components/button/button_empty/index.js +0 -6
  283. package/test-env/components/button/button_group/button_group.js +4 -12
  284. package/test-env/components/button/button_group/button_group_button.js +16 -4
  285. package/test-env/components/button/button_icon/button_icon.js +61 -42
  286. package/test-env/components/call_out/call_out.styles.js +2 -1
  287. package/test-env/components/card/card.js +172 -88
  288. package/test-env/components/card/card.styles.js +146 -0
  289. package/test-env/components/card/card_select/card_select.js +141 -0
  290. package/test-env/components/card/card_select/card_select.styles.js +27 -0
  291. package/test-env/components/card/card_select/index.js +19 -0
  292. package/test-env/components/card/checkable_card/checkable_card.js +16 -9
  293. package/test-env/components/card/checkable_card/checkable_card.styles.js +33 -0
  294. package/test-env/components/comment_list/comment_event.styles.js +1 -1
  295. package/test-env/components/datagrid/body/data_grid_body.js +7 -6
  296. package/test-env/components/datagrid/body/data_grid_cell.js +13 -12
  297. package/test-env/components/datagrid/body/header/data_grid_header_cell.js +7 -6
  298. package/test-env/components/datagrid/body/header/data_grid_header_row.js +7 -6
  299. package/test-env/components/datagrid/data_grid.js +7 -6
  300. package/test-env/components/datagrid/utils/in_memory.js +7 -6
  301. package/test-env/components/date_picker/auto_refresh/auto_refresh.js +3 -2
  302. package/test-env/components/date_picker/super_date_picker/super_date_picker.js +17 -1
  303. package/test-env/components/date_picker/super_date_picker/super_update_button.js +11 -1
  304. package/test-env/components/expression/expression.styles.js +12 -30
  305. package/test-env/components/facet/facet_button.js +4 -3
  306. package/test-env/components/header/header_links/header_link.js +5 -3
  307. package/test-env/components/image/image_button.styles.js +1 -1
  308. package/test-env/components/image/image_wrapper.styles.js +2 -2
  309. package/test-env/components/link/link.styles.js +1 -1
  310. package/test-env/components/list_group/list_group.js +2 -1
  311. package/test-env/components/list_group/list_group_item.js +2 -1
  312. package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +3 -2
  313. package/test-env/components/loading/loading_chart.styles.js +16 -25
  314. package/test-env/components/loading/loading_content.styles.js +1 -1
  315. package/test-env/components/loading/loading_logo.styles.js +4 -4
  316. package/test-env/components/loading/loading_spinner.styles.js +5 -5
  317. package/test-env/components/markdown_editor/markdown_editor_toolbar.js +2 -0
  318. package/test-env/components/modal/confirm_modal.js +1 -1
  319. package/test-env/components/notification/notification_event.js +5 -3
  320. package/test-env/components/notification/notification_event_read_button.js +2 -1
  321. package/test-env/components/page/page_template.js +1 -1
  322. package/test-env/components/page_template/inner/page_inner.styles.js +2 -2
  323. package/test-env/components/page_template/outer/page_outer.styles.js +4 -1
  324. package/test-env/components/panel/panel.js +1 -1
  325. package/{lib/components/panel/panel.style.js → test-env/components/panel/panel.styles.js} +1 -1
  326. package/test-env/components/progress/progress.styles.js +2 -2
  327. package/test-env/components/title/title.styles.js +1 -1
  328. package/test-env/components/toast/toast.styles.js +4 -4
  329. package/test-env/components/tool_tip/icon_tip.js +11 -1
  330. package/test-env/components/tool_tip/tool_tip.js +18 -6
  331. package/test-env/global_styling/functions/logicals.js +10 -73
  332. package/test-env/global_styling/functions/typography.js +3 -1
  333. package/test-env/global_styling/mixins/_color.js +1 -1
  334. package/test-env/global_styling/mixins/_helpers.js +9 -2
  335. package/test-env/global_styling/reset/global_styles.js +3 -1
  336. package/test-env/themes/amsterdam/global_styling/mixins/button.js +170 -17
  337. package/es/components/card/card_select.js +0 -176
  338. package/lib/components/card/card_select.js +0 -187
  339. package/src/components/button/_button.scss +0 -143
  340. package/src/components/button/button_icon/_variables.scss +0 -11
  341. package/src/components/card/_card.scss +0 -239
  342. package/src/components/card/_card_select.scss +0 -21
  343. package/src/components/card/_index.scss +0 -5
  344. package/src/components/card/_mixins.scss +0 -11
  345. package/src/components/card/_variables.scss +0 -25
  346. package/src/components/card/checkable_card/_checkable_card.scss +0 -29
  347. package/src/components/card/checkable_card/_index.scss +0 -1
  348. package/src/global_styling/mixins/_beta_badge.scss +0 -30
  349. package/src/themes/amsterdam/global_styling/mixins/_button.scss +0 -60
  350. package/src/themes/amsterdam/overrides/_button.scss +0 -119
  351. package/src/themes/amsterdam/overrides/_button_empty.scss +0 -20
  352. package/src/themes/amsterdam/overrides/_button_group.scss +0 -91
  353. package/src/themes/amsterdam/overrides/_card.scss +0 -6
  354. package/test-env/components/card/card_select.js +0 -184
@@ -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
- }
@@ -1,20 +0,0 @@
1
- .euiButtonEmpty {
2
- border-radius: $euiBorderRadius;
3
-
4
- &.euiButtonEmpty--small,
5
- &.euiButtonEmpty--xSmall {
6
- // Use a moderately smaller radius on small buttons
7
- // so that they don't appear completely rounded
8
- border-radius: $euiBorderRadius * .667;
9
- }
10
-
11
- &.euiButtonEmpty--xSmall {
12
- font-size: $euiFontSizeXS;
13
- }
14
- }
15
-
16
- @each $name, $color in $euiButtonTypes {
17
- .euiButtonEmpty--#{$name}:enabled:focus {
18
- @include euiFocusBackground($color);
19
- }
20
- }
@@ -1,91 +0,0 @@
1
- // This file has lots of modifiers and is somewhat nesty by nature
2
- // sass-lint:disable nesting-depth
3
-
4
- .euiButtonGroup__buttons {
5
- box-shadow: none !important; // sass-lint:disable-line no-important
6
- }
7
-
8
- .euiButtonGroup--medium,
9
- .euiButtonGroup--small {
10
- .euiButtonGroupButton {
11
- border: none !important; // sass-lint:disable-line no-important
12
- border-radius: 0 !important; // sass-lint:disable-line no-important
13
- font-weight: $euiButtonFontWeight;
14
-
15
- // Complicated set of focus states depending on whether it's a button and can receive :focus,
16
- // or an input and uses focus-within, and browser support for :focus-visible
17
- &:focus,
18
- &:focus-within {
19
- outline-style: solid;
20
- outline-color: lightOrDarkTheme($euiColorInk, $euiColorGhost);
21
- outline-offset: -2px;
22
-
23
- &:focus-visible {
24
- outline-style: auto; // For chrome only
25
- }
26
- }
27
-
28
- &:focus:not(:focus-visible) {
29
- outline: none;
30
- }
31
- }
32
-
33
- .euiButtonGroupButton-isDisabled:not(.euiButtonGroupButton--ghost):not(.euiButtonGroupButton-isSelected) {
34
- $backgroundColorSimulated: mix($euiPageBackgroundColor, $euiButtonColorDisabled, 70%);
35
- background-color: transparentize($euiButtonColorDisabled, .7);
36
- color: makeHighContrastColor($euiButtonColorDisabled, $backgroundColorSimulated, 2);
37
- }
38
-
39
- // Change the hollow (bordered) buttons to have a transparent background
40
- // and no border
41
- @each $name, $color in $euiButtonTypes {
42
- .euiButtonGroupButton--#{$name} {
43
- @include euiButtonDefaultStyle($color);
44
-
45
- @if ($name == 'ghost') {
46
- // Ghost is unique and ALWAYS sits against a dark background.
47
- $backgroundColorSimulated: mix($euiColorInk, $color, 70%);
48
- color: makeHighContrastColor($color, $backgroundColorSimulated);
49
- }
50
- }
51
- }
52
-
53
- .euiButtonGroupButton-isDisabled.euiButtonGroupButton--ghost:not(.euiButtonGroupButton-isSelected) {
54
- &,
55
- &:hover,
56
- &:focus {
57
- background-color: transparentize($euiButtonColorGhostDisabled, .7);
58
- }
59
- }
60
- }
61
-
62
- .euiButtonGroup--small .euiButtonGroup__buttons {
63
- // Use a moderately smaller radius on small buttons
64
- // so that they don't appear completely rounded
65
- border-radius: $euiBorderRadius * (2 / 3);
66
- }
67
-
68
- .euiButtonGroup--compressed .euiButtonGroupButton {
69
- // Add 1 to the border radius to account for the background-clip
70
- border-radius: $euiFormControlCompressedBorderRadius + 1;
71
-
72
- @each $name, $color in $euiButtonTypes {
73
- &--#{$name} {
74
- // Complicated set of focus states depending on whether it's a button and can receive :focus,
75
- // or an input and uses focus-within, and browser support for :focus-visible,
76
- // and override nature of default theme
77
- &:not([class*='isDisabled']):focus,
78
- &:not([class*='isDisabled']):focus-within {
79
- outline-color: $color;
80
-
81
- &:focus-visible {
82
- outline-style: auto; // For chrome only
83
- }
84
- }
85
-
86
- &:not([class*='isDisabled']):focus:not(:focus-visible) {
87
- outline: none;
88
- }
89
- }
90
- }
91
- }
@@ -1,6 +0,0 @@
1
- .euiCard {
2
- .euiCardSelect {
3
- border-top-left-radius: 0;
4
- border-top-right-radius: 0;
5
- }
6
- }
@@ -1,184 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.EuiCardSelect = void 0;
9
- exports.euiCardSelectableColor = euiCardSelectableColor;
10
-
11
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
12
-
13
- var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
14
-
15
- var _react = _interopRequireDefault(require("react"));
16
-
17
- var _propTypes = _interopRequireDefault(require("prop-types"));
18
-
19
- var _classnames = _interopRequireDefault(require("classnames"));
20
-
21
- var _button_empty = require("../button/button_empty");
22
-
23
- var _i18n = require("../i18n");
24
-
25
- var _react2 = require("@emotion/react");
26
-
27
- var _excluded = ["className", "isSelected", "isDisabled", "color", "children"];
28
-
29
- var EuiCardSelect = function EuiCardSelect(_ref) {
30
- var className = _ref.className,
31
- _ref$isSelected = _ref.isSelected,
32
- isSelected = _ref$isSelected === void 0 ? false : _ref$isSelected,
33
- isDisabled = _ref.isDisabled,
34
- color = _ref.color,
35
- children = _ref.children,
36
- rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
37
- var child = euiCardSelectableText(isSelected, isDisabled, children);
38
- var selectClasses = (0, _classnames.default)('euiCardSelect', "euiCardSelect--".concat(euiCardSelectableColor(color, isSelected)), className);
39
- return (0, _react2.jsx)(_button_empty.EuiButtonEmpty, (0, _extends2.default)({
40
- className: selectClasses,
41
- color: color || 'text',
42
- size: "xs",
43
- isDisabled: isDisabled,
44
- iconType: isSelected ? 'check' : undefined,
45
- role: "switch",
46
- "aria-checked": isSelected
47
- }, rest), child);
48
- };
49
-
50
- exports.EuiCardSelect = EuiCardSelect;
51
- EuiCardSelect.propTypes = {
52
- href: _propTypes.default.string,
53
- onClick: _propTypes.default.func,
54
-
55
- /**
56
- * Any of our named colors
57
- */
58
-
59
- /**
60
- * Any of our named colors
61
- */
62
- color: _propTypes.default.oneOf(["primary", "danger", "text", "ghost", "success", "warning"]),
63
- size: _propTypes.default.oneOf(["xs", "s", "m"]),
64
-
65
- /**
66
- * Ensure the text of the button sits flush to the left, right, or both sides of its container
67
- */
68
-
69
- /**
70
- * Ensure the text of the button sits flush to the left, right, or both sides of its container
71
- */
72
- flush: _propTypes.default.oneOf(["left", "right", "both"]),
73
-
74
- /**
75
- * `disabled` is also allowed
76
- */
77
-
78
- /**
79
- * `disabled` is also allowed
80
- */
81
- isDisabled: _propTypes.default.oneOfType([_propTypes.default.bool, _propTypes.default.bool]),
82
-
83
- /**
84
- * Force disables the button and changes the icon to a loading spinner
85
- */
86
-
87
- /**
88
- * Force disables the button and changes the icon to a loading spinner
89
- */
90
- isLoading: _propTypes.default.bool,
91
-
92
- /**
93
- * Is in the selected state
94
- */
95
-
96
- /**
97
- * Applies the boolean state as the `aria-pressed` property to create a toggle button.
98
- * *Only use when the readable text does not change between states.*
99
- */
100
-
101
- /**
102
- * Applies the boolean state as the `aria-pressed` property to create a toggle button.
103
- * *Only use when the readable text does not change between states.*
104
- */
105
- isSelected: _propTypes.default.oneOfType([_propTypes.default.bool, _propTypes.default.bool]),
106
- target: _propTypes.default.string,
107
- rel: _propTypes.default.string,
108
- type: _propTypes.default.oneOf(["button", "submit"]),
109
- buttonRef: _propTypes.default.any,
110
-
111
- /**
112
- * Object of props passed to the <span/> wrapping the button's content
113
- */
114
- contentProps: _propTypes.default.any,
115
-
116
- /**
117
- * Any `type` accepted by EuiIcon
118
- */
119
- 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]),
120
-
121
- /**
122
- * Can only be one side `left` or `right`
123
- */
124
- iconSide: _propTypes.default.oneOf(["left", "right"]),
125
-
126
- /**
127
- * Object of props passed to the <span/> wrapping the content's text (only if the children is a `string`)
128
- * It doesn't apply to the icon.
129
- */
130
- textProps: _propTypes.default.shape({
131
- className: _propTypes.default.string,
132
- "aria-label": _propTypes.default.string,
133
- "data-test-subj": _propTypes.default.string,
134
- css: _propTypes.default.any,
135
- ref: _propTypes.default.any,
136
- "data-text": _propTypes.default.string
137
- }),
138
- iconSize: _propTypes.default.oneOf(["s", "m"]),
139
- className: _propTypes.default.string,
140
- "aria-label": _propTypes.default.string,
141
- "data-test-subj": _propTypes.default.string,
142
- css: _propTypes.default.any
143
- };
144
-
145
- function euiCardSelectableText(isSelected, isDisabled, children) {
146
- if (children) {
147
- return children;
148
- }
149
-
150
- var text;
151
-
152
- if (isSelected) {
153
- text = (0, _react2.jsx)(_i18n.EuiI18n, {
154
- token: "euiCardSelect.selected",
155
- default: "Selected"
156
- });
157
- } else if (isDisabled) {
158
- text = (0, _react2.jsx)(_i18n.EuiI18n, {
159
- token: "euiCardSelect.unavailable",
160
- default: "Unavailable"
161
- });
162
- } else {
163
- text = (0, _react2.jsx)(_i18n.EuiI18n, {
164
- token: "euiCardSelect.select",
165
- default: "Select"
166
- });
167
- }
168
-
169
- return text;
170
- }
171
-
172
- function euiCardSelectableColor(color, isSelected) {
173
- var calculatedColor;
174
-
175
- if (color) {
176
- calculatedColor = color;
177
- } else if (isSelected) {
178
- calculatedColor = 'success';
179
- } else {
180
- calculatedColor = 'text';
181
- }
182
-
183
- return calculatedColor;
184
- }