@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
@@ -21,35 +21,17 @@ var _colorCSS = function _colorCSS(color) {
21
21
  return "\n &:focus {\n background-color: ".concat((0, _color.transparentize)(color, 0.1), ";\n }\n ");
22
22
  };
23
23
 
24
- var _ref3 = process.env.NODE_ENV === "production" ? {
25
- name: "6151l-base",
26
- styles: "border-bottom-style:solid;label:base;"
27
- } : {
28
- name: "6151l-base",
29
- styles: "border-bottom-style:solid;label:base;",
30
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
31
- };
32
-
33
- var _ref4 = process.env.NODE_ENV === "production" ? {
34
- name: "1372s1f-truncate",
35
- styles: "max-width:100%;label:truncate;"
36
- } : {
37
- name: "1372s1f-truncate",
38
- styles: "max-width:100%;label:truncate;",
39
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
40
- };
41
-
42
24
  var euiExpressionStyles = function euiExpressionStyles(euiThemeContext) {
43
25
  var euiTheme = euiThemeContext.euiTheme;
44
26
  return {
45
- euiExpression: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiTextBreakWord)(), ";font-family:", euiTheme.font.familyCode, ";border-bottom:", euiTheme.border.width.thick, " solid transparent;", (0, _global_styling.euiFontSize)(euiThemeContext, 's'), ";display:inline-block;text-align:left;padding:calc(", euiTheme.size.s, " / 2) 0;color:", euiTheme.colors.text, ";&:focus{border-bottom-style:solid;}&+.euiExpression{", (0, _global_styling.logicalCSS)('margin-left', euiTheme.size.s), ";};label:euiExpression;"),
27
+ euiExpression: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiTextBreakWord)(), ";display:inline-block;font-family:", euiTheme.font.familyCode, ";", (0, _global_styling.logicalCSS)('border-bottom', "".concat(euiTheme.border.width.thick, " solid transparent")), " ", (0, _global_styling.euiFontSize)(euiThemeContext, 's'), ";", (0, _global_styling.logicalTextAlignCSS)('left'), " padding:", parseFloat(euiTheme.size.s) / 2, "px 0;color:", euiTheme.colors.text, ";&:focus{", (0, _global_styling.logicalCSS)('border-bottom-style', 'solid'), ";}&+.euiExpression{", (0, _global_styling.logicalCSS)('margin-left', euiTheme.size.s), ";};label:euiExpression;"),
46
28
  // Variants
47
- columns: /*#__PURE__*/(0, _react.css)("border-color:transparent;border-bottom-style:solid;", (0, _global_styling.logicalCSS)('margin-bottom', euiTheme.size.xs), " width:100%;display:flex;padding:", euiTheme.size.xs, ";border-radius:", euiTheme.size.xs, ";;label:columns;"),
48
- truncate: _ref4,
29
+ columns: /*#__PURE__*/(0, _react.css)("border-color:transparent;", (0, _global_styling.logicalCSS)('border-bottom-style', 'solid'), " ", (0, _global_styling.logicalCSS)('margin-bottom', euiTheme.size.xs), " ", (0, _global_styling.logicalCSS)('width', '100%'), " display:flex;padding:", euiTheme.size.xs, ";border-radius:", euiTheme.size.xs, ";;label:columns;"),
30
+ truncate: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('max-width', '100%'), ";;label:truncate;"),
49
31
  // States
50
- isClickable: /*#__PURE__*/(0, _react.css)("cursor:pointer;border-bottom:", euiTheme.border.editable, ";&[class*='-columns']{background-color:", euiTheme.colors.lightestShade, ";&:focus,&:hover:not(:disabled){[class*='euiExpression__description'],[class*='euiExpression__value']{text-decoration:underline;}}};label:isClickable;"),
32
+ isClickable: /*#__PURE__*/(0, _react.css)("cursor:pointer;", (0, _global_styling.logicalCSS)('border-bottom', euiTheme.border.editable), " &[class*='-columns']{background-color:", euiTheme.colors.lightestShade, ";&:focus,&:hover:not(:disabled){[class*='euiExpression__description'],[class*='euiExpression__value']{text-decoration:underline;}}};label:isClickable;"),
51
33
  isActive: {
52
- base: _ref3,
34
+ base: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('border-bottom-style', 'solid'), ";;label:base;"),
53
35
  subdued: /*#__PURE__*/(0, _react.css)("border-color:", euiTheme.colors.subduedText, ";;label:subdued;"),
54
36
  primary: /*#__PURE__*/(0, _react.css)("border-color:", euiTheme.colors.primary, ";;label:primary;"),
55
37
  success: /*#__PURE__*/(0, _react.css)("border-color:", euiTheme.colors.success, ";;label:success;"),
@@ -77,8 +59,8 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
77
59
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
78
60
  };
79
61
 
80
- var euiExpressionDescriptionStyles = function euiExpressionDescriptionStyles(_ref5) {
81
- var euiTheme = _ref5.euiTheme;
62
+ var euiExpressionDescriptionStyles = function euiExpressionDescriptionStyles(_ref3) {
63
+ var euiTheme = _ref3.euiTheme;
82
64
  return {
83
65
  euiExpression__description: /*#__PURE__*/(0, _react.css)(";label:euiExpression__description;"),
84
66
  truncate: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiTextTruncate)(), " display:inline-block;vertical-align:bottom;;label:truncate;"),
@@ -89,7 +71,7 @@ var euiExpressionDescriptionStyles = function euiExpressionDescriptionStyles(_re
89
71
  danger: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.dangerText, ";;label:danger;"),
90
72
  accent: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.accentText, ";;label:accent;"),
91
73
  isUppercase: _ref2,
92
- columns: /*#__PURE__*/(0, _react.css)("text-align:end;", (0, _global_styling.logicalCSS)('margin-right', euiTheme.size.s), ";flex-shrink:0;;label:columns;")
74
+ columns: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalTextAlignCSS)('right'), " ", (0, _global_styling.logicalCSS)('margin-right', euiTheme.size.s), ";flex-shrink:0;;label:columns;")
93
75
  };
94
76
  };
95
77
 
@@ -104,8 +86,8 @@ var _ref = process.env.NODE_ENV === "production" ? {
104
86
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
105
87
  };
106
88
 
107
- var euiExpressionValueStyles = function euiExpressionValueStyles(_ref6) {
108
- (0, _objectDestructuringEmpty2.default)(_ref6);
89
+ var euiExpressionValueStyles = function euiExpressionValueStyles(_ref4) {
90
+ (0, _objectDestructuringEmpty2.default)(_ref4);
109
91
  return {
110
92
  euiExpression__value: /*#__PURE__*/(0, _react.css)(";label:euiExpression__value;"),
111
93
  truncate: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiTextTruncate)(), " display:inline-block;vertical-align:bottom;;label:truncate;"),
@@ -115,8 +97,8 @@ var euiExpressionValueStyles = function euiExpressionValueStyles(_ref6) {
115
97
 
116
98
  exports.euiExpressionValueStyles = euiExpressionValueStyles;
117
99
 
118
- var euiExpressionIconStyles = function euiExpressionIconStyles(_ref7) {
119
- var euiTheme = _ref7.euiTheme;
100
+ var euiExpressionIconStyles = function euiExpressionIconStyles(_ref5) {
101
+ var euiTheme = _ref5.euiTheme;
120
102
  return {
121
103
  euiExpression__icon: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('margin-left', euiTheme.size.xs), ";;label:euiExpression__icon;"),
122
104
  columns: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('margin-top', euiTheme.size.xs), ";;label:columns;")
@@ -47,7 +47,10 @@ var EuiFacetButton = function EuiFacetButton(_ref) {
47
47
  buttonRef = _ref.buttonRef,
48
48
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
49
49
  // If in the loading state, force disabled to true
50
- isDisabled = isLoading ? true : isDisabled;
50
+ isDisabled = (0, _button_display.isButtonDisabled)({
51
+ isDisabled: isDisabled,
52
+ isLoading: isLoading
53
+ });
51
54
  var selection = isSelected ? 'isSelected' : 'unSelected';
52
55
  var classes = (0, _classnames.default)('euiFacetButton', className);
53
56
  var theme = (0, _services.useEuiTheme)();
@@ -92,7 +95,6 @@ var EuiFacetButton = function EuiFacetButton(_ref) {
92
95
  return (0, _react2.jsx)(_button_display.EuiButtonDisplay, (0, _extends2.default)({
93
96
  className: classes,
94
97
  css: cssStyles,
95
- element: "button",
96
98
  isDisabled: isDisabled,
97
99
  ref: buttonRef,
98
100
  title: rest['aria-label'] || innerText,
@@ -17,7 +17,7 @@ var euiImageButtonStyles = function euiImageButtonStyles(euiThemeContext) {
17
17
  var euiTheme = euiThemeContext.euiTheme;
18
18
  return {
19
19
  // Base
20
- euiImageButton: /*#__PURE__*/(0, _react.css)("position:relative;cursor:pointer;text-align:match-parent;line-height:0;&::before{opacity:0;content:'';pointer-events:none;position:absolute;top:0;bottom:0;left:0;right:0;", _global_styling.euiCanAnimate, "{transition:opacity ", euiTheme.animation.fast, " ", euiTheme.animation.resistance, ";}}&:hover,&:focus{&::before{opacity:1;}[class*='euiImageButton__icon']{opacity:1;}}&:focus{", (0, _global_styling.euiFocusRing)(euiThemeContext, 'outset'), ";};label:euiImageButton;"),
20
+ euiImageButton: /*#__PURE__*/(0, _react.css)("position:relative;cursor:pointer;text-align:match-parent;line-height:0;&::before{opacity:0;content:'';pointer-events:none;position:absolute;inset:0;", _global_styling.euiCanAnimate, "{transition:opacity ", euiTheme.animation.fast, " ", euiTheme.animation.resistance, ";}}&:hover,&:focus{&::before{opacity:1;}[class*='euiImageButton__icon']{opacity:1;}}&:focus{", (0, _global_styling.euiFocusRing)(euiThemeContext, 'outset'), ";};label:euiImageButton;"),
21
21
  fullWidth: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('width', '100%'), ";;label:fullWidth;"),
22
22
  shadowHover: /*#__PURE__*/(0, _react.css)("&::before{", (0, _mixins.euiShadow)(euiThemeContext, 's'), ";};label:shadowHover;"),
23
23
  hasShadowHover: /*#__PURE__*/(0, _react.css)("&::before{", (0, _mixins.euiShadow)(euiThemeContext, 'm'), ";};label:hasShadowHover;")
@@ -34,8 +34,8 @@ var euiImageWrapperStyles = function euiImageWrapperStyles(euiThemeContext) {
34
34
  // Floats
35
35
  // 1: Logical properties/values in `float` is currently not yet supported by all browsers w/o flags
36
36
  // @see https://caniuse.com/mdn-css_properties_float_flow_relative_values for when we can remove left/right fallbacks
37
- left: /*#__PURE__*/(0, _react.css)("@media only screen and (min-width: ", euiTheme.breakpoint.m, "px){float:left;float:", _global_styling.logicalSide.left, ";", (0, _global_styling.logicalCSS)('margin-left', '0'), ";", (0, _global_styling.logicalCSS)('margin-top', '0'), ";};label:left;"),
38
- right: /*#__PURE__*/(0, _react.css)("@media only screen and (min-width: ", euiTheme.breakpoint.m, "px){float:right;float:", _global_styling.logicalSide.right, ";", (0, _global_styling.logicalCSS)('margin-right', '0'), ";", (0, _global_styling.logicalCSS)('margin-top', '0'), ";};label:right;"),
37
+ left: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiBreakpoint)(euiThemeContext, ['m', 'xl']), "{float:left;float:", _global_styling.logicalSide.left, ";", (0, _global_styling.logicalCSS)('margin-left', '0'), ";", (0, _global_styling.logicalCSS)('margin-top', '0'), ";};label:left;"),
38
+ right: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiBreakpoint)(euiThemeContext, ['m', 'xl']), "{float:right;float:", _global_styling.logicalSide.right, ";", (0, _global_styling.logicalCSS)('margin-right', '0'), ";", (0, _global_styling.logicalCSS)('margin-top', '0'), ";};label:right;"),
39
39
  // Sizes
40
40
  fullWidth: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('width', '100%'), ";;label:fullWidth;")
41
41
  };
@@ -29,7 +29,7 @@ exports.euiLinkFocusCSS = euiLinkFocusCSS;
29
29
 
30
30
  var euiLinkCSS = function euiLinkCSS(euiThemeContext) {
31
31
  var euiTheme = euiThemeContext.euiTheme;
32
- return "\n font-weight: ".concat(euiTheme.font.weight.medium, ";\n text-align: left;\n\n &:hover {\n ").concat(euiLinkHoverCSS(), "\n }\n\n &:focus {\n ").concat((0, _global_styling.euiFocusRing)(euiThemeContext, 'outset'), "\n ").concat(euiLinkFocusCSS(euiTheme), "\n }\n ");
32
+ return "\n font-weight: ".concat(euiTheme.font.weight.medium, ";\n ").concat((0, _global_styling.logicalTextAlignCSS)('left'), "\n\n &:hover {\n ").concat(euiLinkHoverCSS(), "\n }\n\n &:focus {\n ").concat((0, _global_styling.euiFocusRing)(euiThemeContext, 'outset'), "\n ").concat(euiLinkFocusCSS(euiTheme), "\n }\n ");
33
33
  };
34
34
 
35
35
  exports.euiLinkCSS = euiLinkCSS;
@@ -19,7 +19,7 @@ var _templateObject;
19
19
 
20
20
  function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
21
21
 
22
- var _ref2 = process.env.NODE_ENV === "production" ? {
22
+ var _ref = process.env.NODE_ENV === "production" ? {
23
23
  name: "yovxj7-euiLoadingChart",
24
24
  styles: "overflow:hidden;display:inline-flex;label:euiLoadingChart;"
25
25
  } : {
@@ -28,43 +28,34 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
28
28
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
29
29
  };
30
30
 
31
- var euiLoadingChartStyles = function euiLoadingChartStyles(_ref3) {
32
- var euiTheme = _ref3.euiTheme;
31
+ var euiLoadingChartStyles = function euiLoadingChartStyles(_ref2) {
32
+ var euiTheme = _ref2.euiTheme;
33
33
  return {
34
- euiLoadingChart: _ref2,
35
- m: /*#__PURE__*/(0, _react.css)("height:", euiTheme.size.base, ";gap:", euiTheme.size.xxs, ";;label:m;"),
36
- l: /*#__PURE__*/(0, _react.css)("height:", euiTheme.size.l, ";gap:", euiTheme.size.xxs, ";;label:l;"),
37
- xl: /*#__PURE__*/(0, _react.css)("height:", euiTheme.size.xl, ";gap:", euiTheme.size.xs, ";;label:xl;")
34
+ euiLoadingChart: _ref,
35
+ m: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', euiTheme.size.base), " gap:", euiTheme.size.xxs, ";;label:m;"),
36
+ l: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', euiTheme.size.l), " gap:", euiTheme.size.xxs, ";;label:l;"),
37
+ xl: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', euiTheme.size.xl), " gap:", euiTheme.size.xs, ";;label:xl;")
38
38
  };
39
39
  };
40
40
 
41
41
  exports.euiLoadingChartStyles = euiLoadingChartStyles;
42
42
 
43
- var _ref = process.env.NODE_ENV === "production" ? {
44
- name: "decz5u-euiLoadingChart__bar",
45
- styles: "height:100%;display:inline-block;label:euiLoadingChart__bar;"
46
- } : {
47
- name: "decz5u-euiLoadingChart__bar",
48
- styles: "height:100%;display:inline-block;label:euiLoadingChart__bar;",
49
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
50
- };
51
-
52
- var euiLoadingChartBarStyles = function euiLoadingChartBarStyles(_ref4) {
53
- var euiTheme = _ref4.euiTheme;
43
+ var euiLoadingChartBarStyles = function euiLoadingChartBarStyles(_ref3) {
44
+ var euiTheme = _ref3.euiTheme;
54
45
  return {
55
- euiLoadingChart__bar: _ref,
56
- m: /*#__PURE__*/(0, _react.css)("width:", euiTheme.size.xxs, ";", (0, _global_styling.logicalCSS)('margin-bottom', euiTheme.size.s), ";;label:m;"),
57
- l: /*#__PURE__*/(0, _react.css)("width:", euiTheme.size.xs, ";", (0, _global_styling.logicalCSS)('margin-bottom', euiTheme.size.m), ";;label:l;"),
58
- xl: /*#__PURE__*/(0, _react.css)("width:", euiTheme.size.s, ";", (0, _global_styling.logicalCSS)('margin-bottom', euiTheme.size.base), ";;label:xl;")
46
+ euiLoadingChart__bar: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', '100%'), " display:inline-block;;label:euiLoadingChart__bar;"),
47
+ m: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('width', euiTheme.size.xxs), " ", (0, _global_styling.logicalCSS)('margin-bottom', euiTheme.size.s), ";;label:m;"),
48
+ l: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('width', euiTheme.size.xs), " ", (0, _global_styling.logicalCSS)('margin-bottom', euiTheme.size.m), ";;label:l;"),
49
+ xl: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('width', euiTheme.size.s), " ", (0, _global_styling.logicalCSS)('margin-bottom', euiTheme.size.base), ";;label:xl;")
59
50
  };
60
51
  };
61
52
 
62
53
  exports.euiLoadingChartBarStyles = euiLoadingChartBarStyles;
63
54
  var barAnimation = (0, _react.keyframes)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n 0% {\n transform: translateY(0);\n }\n\n 50% {\n transform: translateY(66%);\n }\n\n 100% {\n transform: translateY(0);\n }\n"])));
64
55
 
65
- var _barIndex = function _barIndex(index, mono, _ref5) {
66
- var euiTheme = _ref5.euiTheme,
67
- colorMode = _ref5.colorMode;
56
+ var _barIndex = function _barIndex(index, mono, _ref4) {
57
+ var euiTheme = _ref4.euiTheme,
58
+ colorMode = _ref4.colorMode;
68
59
  var backgroundColor = mono ? (0, _services.shadeOrTint)(euiTheme.colors.lightShade, index * 0.04, colorMode) : (0, _services.euiPaletteColorBlind)()[index];
69
60
  return /*#__PURE__*/(0, _react.css)("background-color:", backgroundColor, ";transform:translateY(", 22 * index, "%);", _global_styling.euiCanAnimate, "{animation:", barAnimation, " 1s ", ".".concat(index, "s"), " infinite;}");
70
61
  };
@@ -25,7 +25,7 @@ var euiLoadingContentStyles = function euiLoadingContentStyles(_ref) {
25
25
  var gradientStartStop = colorMode === _services.COLOR_MODES_STANDARD.dark ? (0, _services.shade)(euiTheme.colors.lightShade, 0.12) : (0, _services.tint)(euiTheme.colors.lightShade, 0.65);
26
26
  var gradientMiddle = colorMode === _services.COLOR_MODES_STANDARD.dark ? (0, _services.shade)(euiTheme.colors.lightShade, 0.24) : (0, _services.tint)(euiTheme.colors.lightShade, 0.8);
27
27
  return {
28
- euiLoadingContent__singleLine: /*#__PURE__*/(0, _react.css)("display:block;width:100%;height:", euiTheme.size.base, ";border-radius:", euiTheme.border.radius.medium, ";background:", gradientStartStop, ";overflow:hidden;&:not(:last-child){margin-block-end:", euiTheme.size.s, ";}&:last-child:not(:only-child){width:75%;}&::after{content:'';display:block;width:220%;height:100%;background:linear-gradient(\n 137deg,\n ", gradientStartStop, " 45%,\n ", gradientMiddle, " 50%,\n ", gradientStartStop, " 55%\n );", _global_styling.euiCanAnimate, "{animation:", loadingContentGradient, " 1.5s ", euiTheme.animation.resistance, " infinite;}};label:euiLoadingContent__singleLine;")
28
+ euiLoadingContent__singleLine: /*#__PURE__*/(0, _react.css)("display:block;", (0, _global_styling.logicalCSS)('width', '100%'), " ", (0, _global_styling.logicalCSS)('height', euiTheme.size.base), " border-radius:", euiTheme.border.radius.medium, ";background:", gradientStartStop, ";overflow:hidden;&:not(:last-child){", (0, _global_styling.logicalCSS)('margin-bottom', euiTheme.size.s), ";}&:last-child:not(:only-child){", (0, _global_styling.logicalCSS)('width', '75%'), ";}&::after{content:'';display:block;", (0, _global_styling.logicalCSS)('width', '220%'), " ", (0, _global_styling.logicalCSS)('height', '100%'), " background:linear-gradient(\n 137deg,\n ", gradientStartStop, " 45%,\n ", gradientMiddle, " 50%,\n ", gradientStartStop, " 55%\n );", _global_styling.euiCanAnimate, "{animation:", loadingContentGradient, " 1.5s ", euiTheme.animation.resistance, " infinite;}};label:euiLoadingContent__singleLine;")
29
29
  };
30
30
  };
31
31
 
@@ -27,15 +27,15 @@ var loadingPadding = {
27
27
  var euiLoadingLogoStyles = function euiLoadingLogoStyles(_ref) {
28
28
  var euiTheme = _ref.euiTheme;
29
29
  return {
30
- euiLoadingLogo: /*#__PURE__*/(0, _react.css)("position:relative;display:inline-block;", _global_styling.euiCanAnimate, "{&:before,&:after{position:absolute;content:'';width:90%;inset-inline-start:5%;border-radius:50%;opacity:0.2;z-index:1;}&:before{box-shadow:0 0 ", euiTheme.size.s, " ", euiTheme.colors.fullShade, ";animation:1s ", loadingPulsateAndFade, " ", euiTheme.animation.resistance, " infinite;}&:after{background-color:", euiTheme.colors.fullShade, ";animation:1s ", loadingPulsate, " ", euiTheme.animation.resistance, " infinite;}};label:euiLoadingLogo;"),
30
+ euiLoadingLogo: /*#__PURE__*/(0, _react.css)("position:relative;display:inline-block;", _global_styling.euiCanAnimate, "{&:before,&:after{position:absolute;content:'';inline-size:90%;inset-inline-start:5%;border-radius:50%;opacity:0.2;z-index:1;}&:before{box-shadow:0 0 ", euiTheme.size.s, " ", euiTheme.colors.fullShade, ";animation:1s ", loadingPulsateAndFade, " ", euiTheme.animation.resistance, " infinite;}&:after{background-color:", euiTheme.colors.fullShade, ";animation:1s ", loadingPulsate, " ", euiTheme.animation.resistance, " infinite;}};label:euiLoadingLogo;"),
31
31
 
32
32
  /**
33
33
  * 1. Requires pixel math for animation
34
34
  * 2. Add a half the amount of animation distance padding to the top to give it more room
35
35
  */
36
- m: /*#__PURE__*/(0, _react.css)(_global_styling.euiCanAnimate, "{padding-block-start:", euiTheme.size[loadingPadding.m], ";}&:before,&:after{height:", euiTheme.base * 0.25, "px;inset-block-end:-", euiTheme.size.xs, ";};label:m;"),
37
- l: /*#__PURE__*/(0, _react.css)(_global_styling.euiCanAnimate, "{padding-block-start:", euiTheme.size[loadingPadding.l], ";}&:before,&:after{height:", euiTheme.base * 0.375, "px;inset-block-end:-", euiTheme.size.s, ";};label:l;"),
38
- xl: /*#__PURE__*/(0, _react.css)(_global_styling.euiCanAnimate, "{padding-block-start:", euiTheme.size[loadingPadding.xl], ";}&:before,&:after{height:", euiTheme.base * 0.5, "px;inset-block-end:-", euiTheme.size.m, ";};label:xl;")
36
+ m: /*#__PURE__*/(0, _react.css)(_global_styling.euiCanAnimate, "{padding-block-start:", euiTheme.size[loadingPadding.m], ";}&:before,&:after{block-size:", euiTheme.base * 0.25, "px;inset-block-end:-", euiTheme.size.xs, ";};label:m;"),
37
+ l: /*#__PURE__*/(0, _react.css)(_global_styling.euiCanAnimate, "{padding-block-start:", euiTheme.size[loadingPadding.l], ";}&:before,&:after{block-size:", euiTheme.base * 0.375, "px;inset-block-end:-", euiTheme.size.s, ";};label:l;"),
38
+ xl: /*#__PURE__*/(0, _react.css)(_global_styling.euiCanAnimate, "{padding-block-start:", euiTheme.size[loadingPadding.xl], ";}&:before,&:after{block-size:", euiTheme.base * 0.5, "px;inset-block-end:-", euiTheme.size.m, ";};label:xl;")
39
39
  };
40
40
  };
41
41
 
@@ -34,11 +34,11 @@ var euiLoadingSpinnerStyles = function euiLoadingSpinnerStyles(_ref, color) {
34
34
  return {
35
35
  euiLoadingSpinner: /*#__PURE__*/(0, _react.css)("flex-shrink:0;display:inline-block;border-radius:50%;border:", euiTheme.border.thick, ";", spinnerColorsCSS((color === null || color === void 0 ? void 0 : color.border) || euiTheme.colors.lightShade, (color === null || color === void 0 ? void 0 : color.highlight) || euiTheme.colors.primary), ";", _global_styling.euiCanAnimate, "{animation:", _loadingSpinner, " 0.6s infinite linear;};label:euiLoadingSpinner;"),
36
36
  // Sizes
37
- s: /*#__PURE__*/(0, _react.css)("width:", euiTheme.size[spinnerSizes.s], ";height:", euiTheme.size[spinnerSizes.s], ";border-width:calc(", euiTheme.border.width.thin, " * 1.5);;label:s;"),
38
- m: /*#__PURE__*/(0, _react.css)("width:", euiTheme.size[spinnerSizes.m], ";height:", euiTheme.size[spinnerSizes.m], ";border-width:calc(", euiTheme.border.width.thin, " * 1.5);;label:m;"),
39
- l: /*#__PURE__*/(0, _react.css)("width:", euiTheme.size[spinnerSizes.l], ";height:", euiTheme.size[spinnerSizes.l], ";;label:l;"),
40
- xl: /*#__PURE__*/(0, _react.css)("width:", euiTheme.size[spinnerSizes.xl], ";height:", euiTheme.size[spinnerSizes.xl], ";;label:xl;"),
41
- xxl: /*#__PURE__*/(0, _react.css)("width:", euiTheme.size[spinnerSizes.xxl], ";height:", euiTheme.size[spinnerSizes.xxl], ";;label:xxl;")
37
+ s: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalSizeCSS)(euiTheme.size[spinnerSizes.s], euiTheme.size[spinnerSizes.s]), " border-width:calc(", euiTheme.border.width.thin, " * 1.5);;label:s;"),
38
+ m: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalSizeCSS)(euiTheme.size[spinnerSizes.m], euiTheme.size[spinnerSizes.m]), " border-width:calc(", euiTheme.border.width.thin, " * 1.5);;label:m;"),
39
+ l: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalSizeCSS)(euiTheme.size[spinnerSizes.l], euiTheme.size[spinnerSizes.l]), ";;label:l;"),
40
+ xl: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalSizeCSS)(euiTheme.size[spinnerSizes.xl], euiTheme.size[spinnerSizes.xl]), ";;label:xl;"),
41
+ xxl: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalSizeCSS)(euiTheme.size[spinnerSizes.xxl], euiTheme.size[spinnerSizes.xxl]), ";;label:xxl;")
42
42
  };
43
43
  };
44
44
 
@@ -195,6 +195,7 @@ var EuiMarkdownEditorToolbar = /*#__PURE__*/(0, _react.forwardRef)(function (_re
195
195
  icon: button.iconType
196
196
  }));
197
197
  })) : null), isPreviewing ? (0, _react2.jsx)(_button.EuiButtonEmpty, {
198
+ "data-test-subj": "markdown_editor_edit_button",
198
199
  iconType: "editorCodeBlock",
199
200
  color: "text",
200
201
  size: "s",
@@ -204,6 +205,7 @@ var EuiMarkdownEditorToolbar = /*#__PURE__*/(0, _react.forwardRef)(function (_re
204
205
  token: "euiMarkdownEditorToolbar.editor",
205
206
  default: "Editor"
206
207
  })) : (0, _react2.jsx)(_button.EuiButtonEmpty, {
208
+ "data-test-subj": "markdown_editor_preview_button",
207
209
  iconType: "eye",
208
210
  color: "text",
209
211
  size: "s",
@@ -77,7 +77,7 @@ var EuiPageTemplate_Deprecated = function EuiPageTemplate_Deprecated(_ref) {
77
77
  minHeight = _ref$minHeight === void 0 ? 460 : _ref$minHeight,
78
78
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
79
79
  // BWC page header margin to match padding
80
- var headerMargin = /*#__PURE__*/(0, _react2.css)("margin-bottom: ".concat((0, _global_styling.useEuiPaddingSize)(paddingSize)), ";label:headerMargin;");
80
+ var headerMargin = /*#__PURE__*/(0, _react2.css)((0, _global_styling.logicalCSS)('margin-bottom', (0, _global_styling.useEuiPaddingSize)(paddingSize)), ";label:headerMargin;");
81
81
  /**
82
82
  * Full height ~madness~ logic
83
83
  */
@@ -26,8 +26,8 @@ var euiPageInnerStyles = function euiPageInnerStyles(euiThemeContext) {
26
26
  euiPageInner: /*#__PURE__*/(0, _react.css)("display:flex;flex-direction:column;align-items:stretch;flex:1 1 100%;", (0, _global_styling.logicalCSS)('max-width', '100%'), " ", (0, _global_styling.logicalCSS)('min-width', '0'), ";;label:euiPageInner;"),
27
27
  panelled: /*#__PURE__*/(0, _react.css)("background:", (0, _global_styling.euiBackgroundColor)(euiThemeContext, 'plain'), ";", (0, _mixins.euiShadow)(euiThemeContext, 'm'), ";;label:panelled;"),
28
28
  border: {
29
- top: /*#__PURE__*/(0, _react.css)("border-top:", euiThemeContext.euiTheme.border.width.thin, " solid ", borderColor, ";;label:top;"),
30
- left: /*#__PURE__*/(0, _react.css)("border-left:", euiThemeContext.euiTheme.border.width.thin, " solid ", borderColor, ";;label:left;")
29
+ top: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('border-top', "".concat(euiThemeContext.euiTheme.border.width.thin, " solid ").concat(borderColor)), ";;label:top;"),
30
+ left: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('border-left', "".concat(euiThemeContext.euiTheme.border.width.thin, " solid ").concat(borderColor)), ";;label:left;")
31
31
  }
32
32
  };
33
33
  };
@@ -7,6 +7,8 @@ exports.euiPageOuterStyles = void 0;
7
7
 
8
8
  var _react = require("@emotion/react");
9
9
 
10
+ var _global_styling = require("../../../global_styling");
11
+
10
12
  function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
11
13
 
12
14
  var _ref = process.env.NODE_ENV === "production" ? {
@@ -39,7 +41,8 @@ var _ref3 = process.env.NODE_ENV === "production" ? {
39
41
  var euiPageOuterStyles = function euiPageOuterStyles(_ref4) {
40
42
  var euiTheme = _ref4.euiTheme;
41
43
  return {
42
- euiPageOuter: /*#__PURE__*/(0, _react.css)("display:flex;background-color:", euiTheme.colors.body, ";flex-shrink:0;max-width:100%;;label:euiPageOuter;"),
44
+ euiPageOuter: /*#__PURE__*/(0, _react.css)("display:flex;background-color:", euiTheme.colors.body, ";flex-shrink:0;", (0, _global_styling.logicalCSS)('max-width', '100%' // Ensures Firefox doesn't expand width beyond bounds
45
+ ), ";;label:euiPageOuter;"),
43
46
  // Grow
44
47
  grow: _ref3,
45
48
  // Direction
@@ -23,7 +23,7 @@ var _global_styling = require("../../global_styling");
23
23
 
24
24
  var _common = require("../common");
25
25
 
26
- var _panel = require("./panel.style");
26
+ var _panel = require("./panel.styles");
27
27
 
28
28
  var _react2 = require("@emotion/react");
29
29
 
@@ -44,7 +44,7 @@ var euiPanelStyles = function euiPanelStyles(euiThemeContext) {
44
44
  m: /*#__PURE__*/(0, _react.css)("border-radius:", euiTheme.border.radius.medium, ";;label:m;")
45
45
  },
46
46
  // Setup interactive behavior
47
- isClickable: /*#__PURE__*/(0, _react.css)(_global_styling.euiCanAnimate, "{transition:box-shadow ", euiTheme.animation.fast, " ", euiTheme.animation.resistance, ",transform ", euiTheme.animation.fast, " ", euiTheme.animation.resistance, ";}&:enabled{display:block;width:100%;", (0, _global_styling.logicalTextAlignCSS)('left'), ";}&:hover,&:focus{", (0, _mixins.euiShadow)(euiThemeContext, 'l'), ";transform:translateY(-2px);cursor:pointer;};label:isClickable;")
47
+ isClickable: /*#__PURE__*/(0, _react.css)(_global_styling.euiCanAnimate, "{transition:box-shadow ", euiTheme.animation.fast, " ", euiTheme.animation.resistance, ",transform ", euiTheme.animation.fast, " ", euiTheme.animation.resistance, ";}&:enabled{display:block;", (0, _global_styling.logicalCSS)('width', '100%'), " ", (0, _global_styling.logicalTextAlignCSS)('left'), ";}&:hover,&:focus{", (0, _mixins.euiShadow)(euiThemeContext, 'l'), ";transform:translateY(-2px);cursor:pointer;};label:isClickable;")
48
48
  };
49
49
  };
50
50
 
@@ -48,7 +48,7 @@ var nativeVsIndeterminateColor = function nativeVsIndeterminateColor(color, isNa
48
48
 
49
49
 
50
50
  var nonStaticPositioning = function nonStaticPositioning(isNative) {
51
- return "\n top: 0;\n left: 0;\n right: 0;\n background-color: transparent;\n ".concat(isNative ? "\n &::-webkit-progress-bar {\n background-color: transparent;\n }" : '', "\n");
51
+ return "\n ".concat((0, _global_styling.logicalCSS)('top', 0), "\n ").concat((0, _global_styling.logicalCSS)('left', 0), "\n ").concat((0, _global_styling.logicalCSS)('right', 0), "\n background-color: transparent;\n ").concat(isNative ? "\n &::-webkit-progress-bar {\n background-color: transparent;\n }" : '', "\n");
52
52
  };
53
53
  /**
54
54
  * Animations
@@ -80,7 +80,7 @@ var euiProgressStyles = function euiProgressStyles(_ref3, isNative) {
80
80
  // An indeterminate bar has an unreliable end time. Because of a Firefox animation issue,
81
81
  // we apply this style to a <div> instead of a <progress> element.
82
82
  // See https://css-tricks.com/html5-progress-element/ for more info.
83
- indeterminate: /*#__PURE__*/(0, _react.css)("&:before{position:absolute;content:'';", (0, _global_styling.logicalCSS)('width', '100%'), " top:0;bottom:0;left:0;transform:scaleX(0) translateX(0%);animation:", euiIndeterminateAnimation, " 1s ", euiTheme.animation.resistance, " infinite;", _global_styling.euiCantAnimate, "{animation-duration:2s;animation-timing-function:linear;}};label:indeterminate;"),
83
+ indeterminate: /*#__PURE__*/(0, _react.css)("&:before{position:absolute;content:'';", (0, _global_styling.logicalCSS)('width', '100%'), " ", (0, _global_styling.logicalCSS)('top', 0), " ", (0, _global_styling.logicalCSS)('bottom', 0), " ", (0, _global_styling.logicalCSS)('left', 0), " transform:scaleX(0) translateX(0%);animation:", euiIndeterminateAnimation, " 1s ", euiTheme.animation.resistance, " infinite;", _global_styling.euiCantAnimate, "{animation-duration:2s;animation-timing-function:linear;}};label:indeterminate;"),
84
84
  // Sizes
85
85
  xs: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', euiTheme.size.xxs), ";;label:xs;"),
86
86
  s: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', euiTheme.size.xs), ";;label:s;"),
@@ -64,7 +64,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
64
64
 
65
65
  var euiTitleStyles = function euiTitleStyles(euiThemeContext) {
66
66
  return {
67
- euiTitle: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiTextBreakWord)(), " &+&{margin-top:", euiThemeContext.euiTheme.size.l, ";};label:euiTitle;"),
67
+ euiTitle: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiTextBreakWord)(), " &+&{", (0, _global_styling.logicalCSS)('margin-top', euiThemeContext.euiTheme.size.l), ";};label:euiTitle;"),
68
68
  uppercase: _ref,
69
69
  // Sizes
70
70
  xxxs: /*#__PURE__*/(0, _react.css)(euiTitle(euiThemeContext, 'xxxs'), ";;label:xxxs;"),
@@ -23,10 +23,10 @@ var euiToastStyles = function euiToastStyles(euiThemeContext) {
23
23
  // Elements
24
24
  euiToast__closeButton: /*#__PURE__*/(0, _react.css)("position:absolute;", (0, _global_styling.logicalCSS)('top', euiTheme.size.base), ";", (0, _global_styling.logicalCSS)('right', euiTheme.size.base), ";;label:euiToast__closeButton;"),
25
25
  // Variants
26
- primary: /*#__PURE__*/(0, _react.css)("border-top:2px solid ", euiTheme.colors.primary, ";;label:primary;"),
27
- success: /*#__PURE__*/(0, _react.css)("border-top:2px solid ", euiTheme.colors.success, ";;label:success;"),
28
- warning: /*#__PURE__*/(0, _react.css)("border-top:2px solid ", euiTheme.colors.warning, ";;label:warning;"),
29
- danger: /*#__PURE__*/(0, _react.css)("border-top:2px solid ", euiTheme.colors.danger, ";;label:danger;")
26
+ primary: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('border-top', "2px solid ".concat(euiTheme.colors.primary)), ";;label:primary;"),
27
+ success: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('border-top', "2px solid ".concat(euiTheme.colors.success)), ";;label:success;"),
28
+ warning: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('border-top', "2px solid ".concat(euiTheme.colors.warning)), ";;label:warning;"),
29
+ danger: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('border-top', "2px solid ".concat(euiTheme.colors.danger)), ";;label:danger;")
30
30
  };
31
31
  };
32
32
 
@@ -45,7 +45,7 @@ var _resize_observer = require("../observer/resize_observer");
45
45
 
46
46
  var _react3 = require("@emotion/react");
47
47
 
48
- var _excluded = ["children", "className", "anchorClassName", "content", "title", "delay", "display"];
48
+ var _excluded = ["children", "className", "anchorClassName", "anchorProps", "content", "title", "delay", "display"];
49
49
 
50
50
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
51
51
 
@@ -268,6 +268,7 @@ var EuiToolTip = /*#__PURE__*/function (_Component) {
268
268
  children = _this$props.children,
269
269
  className = _this$props.className,
270
270
  anchorClassName = _this$props.anchorClassName,
271
+ anchorProps = _this$props.anchorProps,
271
272
  content = _this$props.content,
272
273
  title = _this$props.title,
273
274
  delay = _this$props.delay,
@@ -279,7 +280,7 @@ var EuiToolTip = /*#__PURE__*/function (_Component) {
279
280
  toolTipStyles = _this$state.toolTipStyles,
280
281
  visible = _this$state.visible;
281
282
  var classes = (0, _classnames.default)('euiToolTip', positionsToClassNameMap[this.state.calculatedPosition], className);
282
- var anchorClasses = (0, _classnames.default)('euiToolTipAnchor', display ? displayToClassNameMap[display] : null, anchorClassName);
283
+ var anchorClasses = (0, _classnames.default)('euiToolTipAnchor', display ? displayToClassNameMap[display] : null, anchorClassName, anchorProps === null || anchorProps === void 0 ? void 0 : anchorProps.className);
283
284
  var tooltip;
284
285
 
285
286
  if (visible && (content || title)) {
@@ -304,14 +305,15 @@ var EuiToolTip = /*#__PURE__*/function (_Component) {
304
305
  }
305
306
 
306
307
  var anchor = // eslint-disable-next-line jsx-a11y/mouse-events-have-key-events
307
- (0, _react3.jsx)("span", {
308
+ (0, _react3.jsx)("span", (0, _extends2.default)({
308
309
  ref: function ref(anchor) {
309
310
  return _this2.anchor = anchor;
310
- },
311
+ }
312
+ }, anchorProps, {
311
313
  className: anchorClasses,
312
314
  onMouseOver: this.showToolTip,
313
315
  onMouseOut: this.onMouseOut
314
- }, /*#__PURE__*/(0, _react.cloneElement)(children, _objectSpread({
316
+ }), /*#__PURE__*/(0, _react.cloneElement)(children, _objectSpread({
315
317
  onFocus: function onFocus(e) {
316
318
  _this2.onFocus();
317
319
 
@@ -11,9 +11,15 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
11
11
 
12
12
  var _common = require("../../components/common");
13
13
 
14
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
15
-
16
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
14
+ var _logicals = _interopRequireDefault(require("./logicals.json"));
15
+
16
+ /*
17
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
18
+ * or more contributor license agreements. Licensed under the Elastic License
19
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
20
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
21
+ * Side Public License, v 1.
22
+ */
17
23
 
18
24
  /**
19
25
  * EUI utilizes logical CSS properties to enable directional writing-modes.
@@ -32,76 +38,7 @@ var logicalSide = {
32
38
  exports.logicalSide = logicalSide;
33
39
  var LOGICAL_SIDES = (0, _common.keysOf)(logicalSide);
34
40
  exports.LOGICAL_SIDES = LOGICAL_SIDES;
35
- var logicalMargins = {
36
- 'margin-left': 'margin-inline-start',
37
- 'margin-right': 'margin-inline-end',
38
- 'margin-top': 'margin-block-start',
39
- 'margin-bottom': 'margin-block-end',
40
- 'margin-horizontal': 'margin-inline',
41
- 'margin-vertical': 'margin-block'
42
- };
43
- var logicalPaddings = {
44
- 'padding-left': 'padding-inline-start',
45
- 'padding-right': 'padding-inline-end',
46
- 'padding-top': 'padding-block-start',
47
- 'padding-bottom': 'padding-block-end',
48
- 'padding-horizontal': 'padding-inline',
49
- 'padding-vertical': 'padding-block'
50
- };
51
- var logicalPosition = {
52
- top: 'inset-block-start',
53
- right: 'inset-inline-end',
54
- bottom: 'inset-block-end',
55
- left: 'inset-inline-start',
56
- horizontal: 'inset-block',
57
- vertical: 'inset-inline',
58
- inset: 'inset'
59
- };
60
- var logicalSize = {
61
- height: 'block-size',
62
- width: 'inline-size',
63
- 'max-height': 'max-block-size',
64
- 'max-width': 'max-inline-size',
65
- 'min-height': 'min-block-size',
66
- 'min-width': 'min-inline-size'
67
- };
68
- var logicalOverflow = {
69
- 'overflow-x': 'overflow-inline',
70
- 'overflow-y': 'overflow-block'
71
- };
72
- var logicalBorders = {
73
- 'border-horizontal': 'border-inline',
74
- 'border-horizontal-color': 'border-inline-color',
75
- 'border-horizontal-width': 'border-inline-width',
76
- 'border-horizontal-style': 'border-inline-style',
77
- 'border-vertical': 'border-block',
78
- 'border-vertical-color': 'border-block-color',
79
- 'border-vertical-width': 'border-block-width',
80
- 'border-vertical-style': 'border-block-style',
81
- 'border-bottom': 'border-block-end',
82
- 'border-bottom-color': 'border-block-end-color',
83
- 'border-bottom-style': 'border-block-end-style',
84
- 'border-bottom-width': 'border-block-end-width',
85
- 'border-top': 'border-block-start',
86
- 'border-top-color': 'border-block-start-color',
87
- 'border-top-style': 'border-block-start-style',
88
- 'border-top-width': 'border-block-start-width',
89
- 'border-right': 'border-inline-end',
90
- 'border-right-color': 'border-inline-end-color',
91
- 'border-right-style': 'border-inline-end-style',
92
- 'border-right-width': 'border-inline-end-width',
93
- 'border-left': 'border-inline-start',
94
- 'border-left-color': 'border-inline-start-color',
95
- 'border-left-style': 'border-inline-start-style',
96
- 'border-left-width': 'border-inline-start-width',
97
- 'border-top-left-radius': 'border-start-start-radius',
98
- 'border-top-right-radius': 'border-start-end-radius',
99
- 'border-bottom-left-radius': 'border-end-start-radius',
100
- 'border-bottom-right-radius': 'border-end-end-radius'
101
- };
102
-
103
- var logicals = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, logicalMargins), logicalPaddings), logicalPosition), logicalSize), logicalOverflow), logicalBorders);
104
-
41
+ var logicals = _logicals.default;
105
42
  exports.logicals = logicals;
106
43
  var LOGICAL_PROPERTIES = (0, _common.keysOf)(logicals);
107
44
  exports.LOGICAL_PROPERTIES = LOGICAL_PROPERTIES;
@@ -7,6 +7,8 @@ exports.euiFontSizeFromScale = euiFontSizeFromScale;
7
7
  exports.euiLineHeightFromBaseline = euiLineHeightFromBaseline;
8
8
  exports.euiTextShift = void 0;
9
9
 
10
+ var _logicals = require("./logicals");
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
@@ -93,7 +95,7 @@ var euiTextShift = function euiTextShift() {
93
95
  var fontWeight = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'bold';
94
96
  var attribute = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'data-text';
95
97
  var euiTheme = arguments.length > 2 ? arguments[2] : undefined;
96
- return "\n &::after {\n display: block;\n content: attr(".concat(attribute, ");\n font-weight: ").concat(euiTheme.font.weight[fontWeight], ";\n height: 0;\n overflow: hidden;\n visibility: hidden;\n }");
98
+ return "\n &::after {\n display: block;\n content: attr(".concat(attribute, ");\n font-weight: ").concat(euiTheme.font.weight[fontWeight], ";\n ").concat((0, _logicals.logicalCSS)('height', 0), "\n overflow: hidden;\n visibility: hidden;\n }");
97
99
  };
98
100
 
99
101
  exports.euiTextShift = euiTextShift;
@@ -32,7 +32,7 @@ var euiBackgroundColor = function euiBackgroundColor(_ref, color) {
32
32
  if (color === 'plain') {
33
33
  return (0, _services.transparentize)(euiTheme.colors.ghost, 0.2);
34
34
  } else if (color === 'subdued') {
35
- return (0, _services.transparentize)(euiTheme.colors.lightShade, 0.2);
35
+ return colorMode === 'DARK' ? (0, _services.transparentize)(euiTheme.colors.lightShade, 0.4) : (0, _services.transparentize)(euiTheme.colors.lightShade, 0.2);
36
36
  } else {
37
37
  return (0, _services.transparentize)(euiTheme.colors[color], 0.1);
38
38
  }
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.useEuiYScrollWithShadows = exports.useEuiYScroll = exports.useEuiXScrollWithShadows = exports.useEuiXScroll = exports.useEuiScrollBar = exports.useEuiOverflowScroll = exports.euiYScrollWithShadows = exports.euiYScroll = exports.euiXScrollWithShadows = exports.euiXScroll = exports.euiScrollBarStyles = exports.euiOverflowScroll = exports.euiFullHeight = void 0;
6
+ exports.useEuiYScrollWithShadows = exports.useEuiYScroll = exports.useEuiXScrollWithShadows = exports.useEuiXScroll = exports.useEuiScrollBar = exports.useEuiOverflowScroll = exports.euiYScrollWithShadows = exports.euiYScroll = exports.euiXScrollWithShadows = exports.euiXScroll = exports.euiSupportsHas = exports.euiScrollBarStyles = exports.euiOverflowScroll = exports.euiFullHeight = void 0;
7
7
 
8
8
  var _theme = require("../../services/theme");
9
9
 
@@ -207,5 +207,12 @@ exports.useEuiOverflowScroll = useEuiOverflowScroll;
207
207
  var euiFullHeight = function euiFullHeight() {
208
208
  return "\n ".concat((0, _functions.logicalCSS)('height', '100%'), "\n flex: 1 1 auto;\n overflow: hidden;\n");
209
209
  };
210
+ /**
211
+ * A constant storing the support for the `:has()` selector through a
212
+ * media query that will only apply the content it is supported.
213
+ */
214
+
210
215
 
211
- exports.euiFullHeight = euiFullHeight;
216
+ exports.euiFullHeight = euiFullHeight;
217
+ var euiSupportsHas = '@supports(selector(:has(p)))';
218
+ exports.euiSupportsHas = euiSupportsHas;