@elastic/eui 106.1.0 → 106.3.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 (368) hide show
  1. package/es/components/accessibility/index.js +2 -1
  2. package/es/components/accessibility/live_announcer/index.js +9 -0
  3. package/es/components/accessibility/live_announcer/live_announcer.js +84 -0
  4. package/es/components/accessibility/screen_reader_live/screen_reader_live.js +7 -0
  5. package/es/components/avatar/avatar.js +1 -1
  6. package/es/components/badge/badge.js +1 -1
  7. package/es/components/badge/beta_badge/beta_badge.js +1 -1
  8. package/es/components/basic_table/basic_table.js +4 -4
  9. package/es/components/basic_table/in_memory_table.js +4 -4
  10. package/es/components/button/button.js +1 -1
  11. package/es/components/button/button_display/_button_display.js +1 -1
  12. package/es/components/button/button_display/_button_display_content.js +1 -1
  13. package/es/components/button/button_empty/button_empty.js +1 -1
  14. package/es/components/button/button_group/button_group.js +1 -1
  15. package/es/components/button/button_group/button_group_button.js +1 -1
  16. package/es/components/button/button_icon/button_icon.js +1 -1
  17. package/es/components/call_out/call_out.js +16 -5
  18. package/es/components/card/card.js +2 -2
  19. package/es/components/card/card_select/card_select.js +1 -1
  20. package/es/components/card/checkable_card/checkable_card.js +30 -5
  21. package/es/components/code/code_block.js +5 -2
  22. package/es/components/code/code_block_virtualized.js +5 -3
  23. package/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
  24. package/es/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +1 -1
  25. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +1 -1
  26. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +2 -2
  27. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +2 -2
  28. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +4 -4
  29. package/es/components/combo_box/combo_box.a11y.js +97 -81
  30. package/es/components/combo_box/combo_box.js +3 -2
  31. package/es/components/combo_box/combo_box_options_list/combo_box_options_list.js +50 -25
  32. package/es/components/combo_box/combo_box_options_list/combo_box_options_list.styles.js +6 -2
  33. package/es/components/comment_list/comment.js +2 -2
  34. package/es/components/comment_list/comment_event.js +1 -1
  35. package/es/components/comment_list/comment_list.js +2 -2
  36. package/es/components/comment_list/comment_timeline.js +1 -1
  37. package/es/components/context_menu/context_menu_item.js +1 -1
  38. package/es/components/datagrid/body/cell/data_grid_cell.js +12 -12
  39. package/es/components/datagrid/body/cell/focus_utils.js +10 -2
  40. package/es/components/datagrid/body/data_grid_body.js +7 -7
  41. package/es/components/datagrid/body/data_grid_body_custom.js +7 -7
  42. package/es/components/datagrid/body/data_grid_body_virtualized.js +7 -7
  43. package/es/components/datagrid/body/header/data_grid_header_cell.js +6 -6
  44. package/es/components/datagrid/controls/column_sorting.js +7 -7
  45. package/es/components/datagrid/controls/column_sorting_draggable.js +1 -1
  46. package/es/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
  47. package/es/components/datagrid/data_grid.styles.js +1 -1
  48. package/es/components/datagrid/utils/in_memory.js +6 -6
  49. package/es/components/date_picker/date_picker.js +2 -2
  50. package/es/components/date_picker/date_picker_range.js +1 -1
  51. package/es/components/empty_prompt/empty_prompt.js +1 -1
  52. package/es/components/facet/facet_button.js +1 -1
  53. package/es/components/filter_group/filter_select_item.js +16 -3
  54. package/es/components/form/field_number/field_number.js +3 -3
  55. package/es/components/form/field_password/field_password.styles.js +1 -0
  56. package/es/components/form/field_text/field_text.js +2 -2
  57. package/es/components/form/form.styles.js +2 -2
  58. package/es/components/form/form_control_layout/form_control_layout.js +2 -2
  59. package/es/components/form/form_control_layout/form_control_layout.styles.js +1 -1
  60. package/es/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
  61. package/es/components/form/form_control_layout/form_control_layout_icons.js +2 -2
  62. package/es/components/form/range/range.styles.js +2 -2
  63. package/es/components/form/text_area/text_area.js +2 -2
  64. package/es/components/header/header_links/header_link.js +1 -1
  65. package/es/components/header/header_links/header_links.js +1 -1
  66. package/es/components/header/header_logo/header_logo.js +1 -1
  67. package/es/components/header/header_section/header_section_item_button.js +1 -1
  68. package/es/components/icon/assets/thumbDown.js +37 -0
  69. package/es/components/icon/assets/thumbUp.js +37 -0
  70. package/es/components/icon/icon.js +1 -1
  71. package/es/components/icon/icon_map.js +2 -0
  72. package/es/components/key_pad_menu/key_pad_menu_item.js +1 -1
  73. package/es/components/list_group/list_group.js +2 -2
  74. package/es/components/list_group/list_group_item.js +2 -2
  75. package/es/components/list_group/list_group_item_extra_action.js +1 -1
  76. package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
  77. package/es/components/loading/loading_logo.js +1 -1
  78. package/es/components/markdown_editor/index.js +1 -0
  79. package/es/components/markdown_editor/markdown_editor.js +16 -5
  80. package/es/components/markdown_editor/markdown_editor_drop_zone.js +6 -4
  81. package/es/components/markdown_editor/markdown_editor_footer.js +13 -121
  82. package/es/components/markdown_editor/markdown_editor_footer.styles.js +0 -2
  83. package/es/components/markdown_editor/markdown_editor_help_button.js +144 -0
  84. package/es/components/markdown_editor/markdown_editor_help_button.styles.js +16 -0
  85. package/es/components/markdown_editor/markdown_editor_toolbar.js +29 -24
  86. package/es/components/page/page_header/page_header_content.js +1 -1
  87. package/es/components/pagination/pagination_button.js +1 -1
  88. package/es/components/popover/popover.js +2 -1
  89. package/es/components/selectable/selectable_list/selectable_list.js +1 -1
  90. package/es/components/selectable/selectable_list/selectable_list_item.js +1 -1
  91. package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
  92. package/es/components/table/table_header_cell.js +1 -1
  93. package/es/components/timeline/timeline_item_icon.js +1 -1
  94. package/es/components/toast/global_toast_list.js +1 -1
  95. package/es/components/toast/toast.js +1 -1
  96. package/es/components/tool_tip/icon_tip.js +1 -1
  97. package/es/global_styling/mixins/_button.js +1 -1
  98. package/es/services/emotion/prefixer.js +116 -22
  99. package/eui.d.ts +249 -139
  100. package/i18ntokens.json +2192 -2174
  101. package/lib/components/accessibility/index.js +8 -1
  102. package/lib/components/accessibility/live_announcer/index.js +16 -0
  103. package/lib/components/accessibility/live_announcer/live_announcer.js +93 -0
  104. package/lib/components/accessibility/screen_reader_live/screen_reader_live.js +7 -0
  105. package/lib/components/avatar/avatar.js +1 -1
  106. package/lib/components/badge/badge.js +1 -1
  107. package/lib/components/badge/beta_badge/beta_badge.js +1 -1
  108. package/lib/components/basic_table/basic_table.js +4 -4
  109. package/lib/components/basic_table/in_memory_table.js +4 -4
  110. package/lib/components/button/button.js +1 -1
  111. package/lib/components/button/button_display/_button_display.js +1 -1
  112. package/lib/components/button/button_display/_button_display_content.js +1 -1
  113. package/lib/components/button/button_empty/button_empty.js +1 -1
  114. package/lib/components/button/button_group/button_group.js +1 -1
  115. package/lib/components/button/button_group/button_group_button.js +1 -1
  116. package/lib/components/button/button_icon/button_icon.js +1 -1
  117. package/lib/components/call_out/call_out.js +17 -6
  118. package/lib/components/card/card.js +2 -2
  119. package/lib/components/card/card_select/card_select.js +1 -1
  120. package/lib/components/card/checkable_card/checkable_card.js +29 -4
  121. package/lib/components/code/code_block.js +5 -2
  122. package/lib/components/code/code_block_virtualized.js +5 -3
  123. package/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
  124. package/lib/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +1 -1
  125. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +1 -1
  126. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +2 -2
  127. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +2 -2
  128. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +4 -4
  129. package/lib/components/combo_box/combo_box.a11y.js +97 -81
  130. package/lib/components/combo_box/combo_box.js +3 -2
  131. package/lib/components/combo_box/combo_box_options_list/combo_box_options_list.js +50 -25
  132. package/lib/components/combo_box/combo_box_options_list/combo_box_options_list.styles.js +5 -1
  133. package/lib/components/comment_list/comment.js +2 -2
  134. package/lib/components/comment_list/comment_event.js +1 -1
  135. package/lib/components/comment_list/comment_list.js +2 -2
  136. package/lib/components/comment_list/comment_timeline.js +1 -1
  137. package/lib/components/context_menu/context_menu_item.js +1 -1
  138. package/lib/components/datagrid/body/cell/data_grid_cell.js +12 -12
  139. package/lib/components/datagrid/body/cell/focus_utils.js +10 -2
  140. package/lib/components/datagrid/body/data_grid_body.js +7 -7
  141. package/lib/components/datagrid/body/data_grid_body_custom.js +7 -7
  142. package/lib/components/datagrid/body/data_grid_body_virtualized.js +7 -7
  143. package/lib/components/datagrid/body/header/data_grid_header_cell.js +6 -6
  144. package/lib/components/datagrid/controls/column_sorting.js +7 -7
  145. package/lib/components/datagrid/controls/column_sorting_draggable.js +1 -1
  146. package/lib/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
  147. package/lib/components/datagrid/data_grid.styles.js +1 -1
  148. package/lib/components/datagrid/utils/in_memory.js +6 -6
  149. package/lib/components/date_picker/date_picker.js +2 -2
  150. package/lib/components/date_picker/date_picker_range.js +1 -1
  151. package/lib/components/empty_prompt/empty_prompt.js +1 -1
  152. package/lib/components/facet/facet_button.js +1 -1
  153. package/lib/components/filter_group/filter_select_item.js +16 -3
  154. package/lib/components/form/field_number/field_number.js +3 -3
  155. package/lib/components/form/field_password/field_password.styles.js +1 -0
  156. package/lib/components/form/field_text/field_text.js +2 -2
  157. package/lib/components/form/form.styles.js +2 -2
  158. package/lib/components/form/form_control_layout/form_control_layout.js +2 -2
  159. package/lib/components/form/form_control_layout/form_control_layout.styles.js +1 -1
  160. package/lib/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
  161. package/lib/components/form/form_control_layout/form_control_layout_icons.js +2 -2
  162. package/lib/components/form/range/range.styles.js +2 -2
  163. package/lib/components/form/text_area/text_area.js +2 -2
  164. package/lib/components/header/header_links/header_link.js +1 -1
  165. package/lib/components/header/header_links/header_links.js +1 -1
  166. package/lib/components/header/header_logo/header_logo.js +1 -1
  167. package/lib/components/header/header_section/header_section_item_button.js +1 -1
  168. package/lib/components/icon/assets/thumbDown.js +44 -0
  169. package/lib/components/icon/assets/thumbUp.js +44 -0
  170. package/lib/components/icon/icon.js +1 -1
  171. package/lib/components/icon/icon_map.js +2 -0
  172. package/lib/components/icon/svgs/thumbDown.svg +4 -0
  173. package/lib/components/icon/svgs/thumbUp.svg +4 -0
  174. package/lib/components/key_pad_menu/key_pad_menu_item.js +1 -1
  175. package/lib/components/list_group/list_group.js +2 -2
  176. package/lib/components/list_group/list_group_item.js +2 -2
  177. package/lib/components/list_group/list_group_item_extra_action.js +1 -1
  178. package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
  179. package/lib/components/loading/loading_logo.js +1 -1
  180. package/lib/components/markdown_editor/index.js +7 -0
  181. package/lib/components/markdown_editor/markdown_editor.js +16 -5
  182. package/lib/components/markdown_editor/markdown_editor_drop_zone.js +6 -4
  183. package/lib/components/markdown_editor/markdown_editor_footer.js +11 -118
  184. package/lib/components/markdown_editor/markdown_editor_footer.styles.js +0 -2
  185. package/lib/components/markdown_editor/markdown_editor_help_button.js +151 -0
  186. package/lib/components/markdown_editor/markdown_editor_help_button.styles.js +22 -0
  187. package/lib/components/markdown_editor/markdown_editor_toolbar.js +29 -24
  188. package/lib/components/page/page_header/page_header_content.js +1 -1
  189. package/lib/components/pagination/pagination_button.js +1 -1
  190. package/lib/components/popover/popover.js +2 -1
  191. package/lib/components/selectable/selectable_list/selectable_list.js +1 -1
  192. package/lib/components/selectable/selectable_list/selectable_list_item.js +1 -1
  193. package/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
  194. package/lib/components/table/table_header_cell.js +1 -1
  195. package/lib/components/timeline/timeline_item_icon.js +1 -1
  196. package/lib/components/toast/global_toast_list.js +1 -1
  197. package/lib/components/toast/toast.js +1 -1
  198. package/lib/components/tool_tip/icon_tip.js +1 -1
  199. package/lib/global_styling/mixins/_button.js +1 -1
  200. package/lib/services/emotion/prefixer.js +116 -22
  201. package/optimize/es/components/accessibility/index.js +2 -1
  202. package/optimize/es/components/accessibility/live_announcer/index.js +9 -0
  203. package/optimize/es/components/accessibility/live_announcer/live_announcer.js +68 -0
  204. package/optimize/es/components/accessibility/screen_reader_live/screen_reader_live.js +1 -0
  205. package/optimize/es/components/call_out/call_out.js +6 -2
  206. package/optimize/es/components/card/checkable_card/checkable_card.js +25 -5
  207. package/optimize/es/components/code/code_block.js +5 -2
  208. package/optimize/es/components/code/code_block_virtualized.js +5 -3
  209. package/optimize/es/components/combo_box/combo_box.a11y.js +97 -81
  210. package/optimize/es/components/combo_box/combo_box_options_list/combo_box_options_list.js +49 -24
  211. package/optimize/es/components/combo_box/combo_box_options_list/combo_box_options_list.styles.js +6 -2
  212. package/optimize/es/components/datagrid/body/cell/focus_utils.js +10 -2
  213. package/optimize/es/components/datagrid/data_grid.styles.js +1 -1
  214. package/optimize/es/components/filter_group/filter_select_item.js +15 -3
  215. package/optimize/es/components/form/field_number/field_number.js +1 -1
  216. package/optimize/es/components/form/field_password/field_password.styles.js +1 -0
  217. package/optimize/es/components/form/form.styles.js +2 -2
  218. package/optimize/es/components/form/form_control_layout/form_control_layout.styles.js +1 -1
  219. package/optimize/es/components/form/range/range.styles.js +2 -2
  220. package/optimize/es/components/icon/assets/thumbDown.js +36 -0
  221. package/optimize/es/components/icon/assets/thumbUp.js +36 -0
  222. package/optimize/es/components/icon/icon_map.js +2 -0
  223. package/optimize/es/components/markdown_editor/index.js +1 -0
  224. package/optimize/es/components/markdown_editor/markdown_editor.js +7 -3
  225. package/optimize/es/components/markdown_editor/markdown_editor_drop_zone.js +3 -2
  226. package/optimize/es/components/markdown_editor/markdown_editor_footer.js +12 -120
  227. package/optimize/es/components/markdown_editor/markdown_editor_footer.styles.js +0 -2
  228. package/optimize/es/components/markdown_editor/markdown_editor_help_button.js +139 -0
  229. package/optimize/es/components/markdown_editor/markdown_editor_help_button.styles.js +16 -0
  230. package/optimize/es/components/markdown_editor/markdown_editor_toolbar.js +20 -16
  231. package/optimize/es/components/popover/popover.js +2 -1
  232. package/optimize/es/global_styling/mixins/_button.js +1 -1
  233. package/optimize/es/services/emotion/prefixer.js +116 -22
  234. package/optimize/lib/components/accessibility/index.js +8 -1
  235. package/optimize/lib/components/accessibility/live_announcer/index.js +16 -0
  236. package/optimize/lib/components/accessibility/live_announcer/live_announcer.js +77 -0
  237. package/optimize/lib/components/accessibility/screen_reader_live/screen_reader_live.js +1 -0
  238. package/optimize/lib/components/call_out/call_out.js +7 -3
  239. package/optimize/lib/components/card/checkable_card/checkable_card.js +24 -4
  240. package/optimize/lib/components/code/code_block.js +5 -2
  241. package/optimize/lib/components/code/code_block_virtualized.js +5 -3
  242. package/optimize/lib/components/combo_box/combo_box.a11y.js +97 -81
  243. package/optimize/lib/components/combo_box/combo_box_options_list/combo_box_options_list.js +49 -24
  244. package/optimize/lib/components/combo_box/combo_box_options_list/combo_box_options_list.styles.js +5 -1
  245. package/optimize/lib/components/datagrid/body/cell/focus_utils.js +10 -2
  246. package/optimize/lib/components/datagrid/data_grid.styles.js +1 -1
  247. package/optimize/lib/components/filter_group/filter_select_item.js +15 -3
  248. package/optimize/lib/components/form/field_number/field_number.js +1 -1
  249. package/optimize/lib/components/form/field_password/field_password.styles.js +1 -0
  250. package/optimize/lib/components/form/form.styles.js +2 -2
  251. package/optimize/lib/components/form/form_control_layout/form_control_layout.styles.js +1 -1
  252. package/optimize/lib/components/form/range/range.styles.js +2 -2
  253. package/optimize/lib/components/icon/assets/thumbDown.js +44 -0
  254. package/optimize/lib/components/icon/assets/thumbUp.js +44 -0
  255. package/optimize/lib/components/icon/icon_map.js +2 -0
  256. package/optimize/lib/components/icon/svgs/thumbDown.svg +4 -0
  257. package/optimize/lib/components/icon/svgs/thumbUp.svg +4 -0
  258. package/optimize/lib/components/markdown_editor/index.js +7 -0
  259. package/optimize/lib/components/markdown_editor/markdown_editor.js +7 -3
  260. package/optimize/lib/components/markdown_editor/markdown_editor_drop_zone.js +3 -2
  261. package/optimize/lib/components/markdown_editor/markdown_editor_footer.js +9 -118
  262. package/optimize/lib/components/markdown_editor/markdown_editor_footer.styles.js +0 -2
  263. package/optimize/lib/components/markdown_editor/markdown_editor_help_button.js +150 -0
  264. package/optimize/lib/components/markdown_editor/markdown_editor_help_button.styles.js +22 -0
  265. package/optimize/lib/components/markdown_editor/markdown_editor_toolbar.js +20 -16
  266. package/optimize/lib/components/popover/popover.js +2 -1
  267. package/optimize/lib/global_styling/mixins/_button.js +1 -1
  268. package/optimize/lib/services/emotion/prefixer.js +116 -22
  269. package/package.json +4 -4
  270. package/src/components/date_picker/react-datepicker/src/stylesheets/datepicker.scss +6 -7
  271. package/src/global_styling/mixins/_typography.scss +0 -1
  272. package/src/themes/amsterdam/global_styling/mixins/_typography.scss +0 -1
  273. package/test-env/components/accessibility/index.js +8 -1
  274. package/test-env/components/accessibility/live_announcer/index.js +16 -0
  275. package/test-env/components/accessibility/live_announcer/live_announcer.js +87 -0
  276. package/test-env/components/accessibility/screen_reader_live/screen_reader_live.js +7 -0
  277. package/test-env/components/avatar/avatar.js +1 -1
  278. package/test-env/components/badge/badge.js +1 -1
  279. package/test-env/components/badge/beta_badge/beta_badge.js +1 -1
  280. package/test-env/components/basic_table/basic_table.js +4 -4
  281. package/test-env/components/basic_table/in_memory_table.js +4 -4
  282. package/test-env/components/button/button.js +1 -1
  283. package/test-env/components/button/button_display/_button_display.js +1 -1
  284. package/test-env/components/button/button_display/_button_display_content.js +1 -1
  285. package/test-env/components/button/button_empty/button_empty.js +1 -1
  286. package/test-env/components/button/button_group/button_group.js +1 -1
  287. package/test-env/components/button/button_group/button_group_button.js +1 -1
  288. package/test-env/components/button/button_icon/button_icon.js +1 -1
  289. package/test-env/components/call_out/call_out.js +17 -6
  290. package/test-env/components/card/card.js +2 -2
  291. package/test-env/components/card/card_select/card_select.js +1 -1
  292. package/test-env/components/card/checkable_card/checkable_card.js +24 -4
  293. package/test-env/components/code/code_block_virtualized.js +5 -3
  294. package/test-env/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
  295. package/test-env/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +1 -1
  296. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +1 -1
  297. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +2 -2
  298. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +2 -2
  299. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +4 -4
  300. package/test-env/components/combo_box/combo_box.a11y.js +97 -81
  301. package/test-env/components/combo_box/combo_box.js +3 -2
  302. package/test-env/components/combo_box/combo_box_options_list/combo_box_options_list.js +50 -25
  303. package/test-env/components/combo_box/combo_box_options_list/combo_box_options_list.styles.js +5 -1
  304. package/test-env/components/comment_list/comment.js +2 -2
  305. package/test-env/components/comment_list/comment_event.js +1 -1
  306. package/test-env/components/comment_list/comment_list.js +2 -2
  307. package/test-env/components/comment_list/comment_timeline.js +1 -1
  308. package/test-env/components/context_menu/context_menu_item.js +1 -1
  309. package/test-env/components/datagrid/body/cell/data_grid_cell.js +12 -12
  310. package/test-env/components/datagrid/body/cell/focus_utils.js +10 -2
  311. package/test-env/components/datagrid/body/data_grid_body.js +7 -7
  312. package/test-env/components/datagrid/body/data_grid_body_custom.js +7 -7
  313. package/test-env/components/datagrid/body/data_grid_body_virtualized.js +7 -7
  314. package/test-env/components/datagrid/body/header/data_grid_header_cell.js +6 -6
  315. package/test-env/components/datagrid/controls/column_sorting.js +7 -7
  316. package/test-env/components/datagrid/controls/column_sorting_draggable.js +1 -1
  317. package/test-env/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
  318. package/test-env/components/datagrid/data_grid.styles.js +1 -1
  319. package/test-env/components/datagrid/utils/in_memory.js +6 -6
  320. package/test-env/components/date_picker/date_picker.js +2 -2
  321. package/test-env/components/date_picker/date_picker_range.js +1 -1
  322. package/test-env/components/empty_prompt/empty_prompt.js +1 -1
  323. package/test-env/components/facet/facet_button.js +1 -1
  324. package/test-env/components/filter_group/filter_select_item.js +16 -3
  325. package/test-env/components/form/field_number/field_number.js +3 -3
  326. package/test-env/components/form/field_password/field_password.styles.js +1 -0
  327. package/test-env/components/form/field_text/field_text.js +2 -2
  328. package/test-env/components/form/form.styles.js +2 -2
  329. package/test-env/components/form/form_control_layout/form_control_layout.js +2 -2
  330. package/test-env/components/form/form_control_layout/form_control_layout.styles.js +1 -1
  331. package/test-env/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
  332. package/test-env/components/form/form_control_layout/form_control_layout_icons.js +2 -2
  333. package/test-env/components/form/range/range.styles.js +2 -2
  334. package/test-env/components/form/text_area/text_area.js +2 -2
  335. package/test-env/components/header/header_links/header_link.js +1 -1
  336. package/test-env/components/header/header_links/header_links.js +1 -1
  337. package/test-env/components/header/header_logo/header_logo.js +1 -1
  338. package/test-env/components/header/header_section/header_section_item_button.js +1 -1
  339. package/test-env/components/icon/assets/thumbDown.js +44 -0
  340. package/test-env/components/icon/assets/thumbUp.js +44 -0
  341. package/test-env/components/icon/icon_map.js +2 -0
  342. package/test-env/components/key_pad_menu/key_pad_menu_item.js +1 -1
  343. package/test-env/components/list_group/list_group.js +2 -2
  344. package/test-env/components/list_group/list_group_item.js +2 -2
  345. package/test-env/components/list_group/list_group_item_extra_action.js +1 -1
  346. package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
  347. package/test-env/components/loading/loading_logo.js +1 -1
  348. package/test-env/components/markdown_editor/index.js +7 -0
  349. package/test-env/components/markdown_editor/markdown_editor.js +16 -5
  350. package/test-env/components/markdown_editor/markdown_editor_drop_zone.js +6 -4
  351. package/test-env/components/markdown_editor/markdown_editor_footer.js +10 -119
  352. package/test-env/components/markdown_editor/markdown_editor_footer.styles.js +0 -2
  353. package/test-env/components/markdown_editor/markdown_editor_help_button.js +150 -0
  354. package/test-env/components/markdown_editor/markdown_editor_help_button.styles.js +22 -0
  355. package/test-env/components/markdown_editor/markdown_editor_toolbar.js +29 -24
  356. package/test-env/components/page/page_header/page_header_content.js +1 -1
  357. package/test-env/components/pagination/pagination_button.js +1 -1
  358. package/test-env/components/popover/popover.js +2 -1
  359. package/test-env/components/selectable/selectable_list/selectable_list.js +1 -1
  360. package/test-env/components/selectable/selectable_list/selectable_list_item.js +1 -1
  361. package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
  362. package/test-env/components/table/table_header_cell.js +1 -1
  363. package/test-env/components/timeline/timeline_item_icon.js +1 -1
  364. package/test-env/components/toast/global_toast_list.js +1 -1
  365. package/test-env/components/toast/toast.js +1 -1
  366. package/test-env/components/tool_tip/icon_tip.js +1 -1
  367. package/test-env/global_styling/mixins/_button.js +1 -1
  368. package/test-env/services/emotion/prefixer.js +116 -22
@@ -21,7 +21,8 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
21
21
  /// <reference types="../../../cypress/support" />
22
22
 
23
23
  var ComboBox = function ComboBox(_ref) {
24
- var initialOptions = _ref.initialOptions;
24
+ var initialOptions = _ref.initialOptions,
25
+ rowHeight = _ref.rowHeight;
25
26
  var _useState = (0, _react.useState)(initialOptions !== null && initialOptions !== void 0 ? initialOptions : [{
26
27
  label: 'Titan',
27
28
  'data-test-subj': 'titanOption'
@@ -66,93 +67,108 @@ var ComboBox = function ComboBox(_ref) {
66
67
  selectedOptions: selectedOptions,
67
68
  onChange: onChange,
68
69
  isClearable: true,
69
- isCaseSensitive: true
70
+ isCaseSensitive: true,
71
+ rowHeight: rowHeight
70
72
  });
71
73
  };
72
- beforeEach(function () {
73
- cy.realMount((0, _react2.jsx)(ComboBox, null));
74
+ afterEach(function () {
74
75
  cy.get('input[data-test-subj="comboBoxSearchInput"]').should('exist');
75
76
  });
76
77
  describe('EuiComboBox', function () {
77
- describe('Automated accessibility check', function () {
78
- it('has zero violations on render', function () {
79
- cy.checkAxe();
80
- });
81
- it('has zero violations when the combobox is expanded', function () {
82
- cy.get('input[data-test-subj="comboBoxSearchInput"]').realClick();
83
- cy.get('button[data-test-subj="titanOption"]').should('exist');
84
- cy.checkAxe();
85
- });
86
- it('has zero violations after keyboard interaction', function () {
87
- cy.realPress('Tab');
88
- cy.get('input[data-test-subj="comboBoxSearchInput"]').should('have.focus');
89
- cy.get('button[data-test-subj="titanOption"]').should('exist');
90
- cy.repeatRealPress('ArrowDown');
91
- cy.realPress('Enter');
92
- cy.repeatRealPress('ArrowDown');
93
- cy.realPress('Enter');
94
- cy.repeatRealPress('ArrowDown');
95
- cy.realPress('Enter');
96
- cy.get('div[data-test-subj="comboBoxInput"]').find('span.euiBadge').should('have.length', 3);
97
- cy.checkAxe();
78
+ [undefined, 'auto'].forEach(function (rowHeight) {
79
+ describe("Automated accessibility check with rowHeight ".concat(rowHeight !== null && rowHeight !== void 0 ? rowHeight : 'default'), function () {
80
+ it('has zero violations on render', function () {
81
+ cy.realMount((0, _react2.jsx)(ComboBox, {
82
+ rowHeight: rowHeight
83
+ }));
84
+ cy.checkAxe();
85
+ });
86
+ it('has zero violations when the combobox is expanded', function () {
87
+ cy.realMount((0, _react2.jsx)(ComboBox, {
88
+ rowHeight: rowHeight
89
+ }));
90
+ cy.get('input[data-test-subj="comboBoxSearchInput"]').realClick();
91
+ cy.get('button[data-test-subj="titanOption"]').should('exist');
92
+ cy.checkAxe();
93
+ });
94
+ it('has zero violations after keyboard interaction', function () {
95
+ cy.realMount((0, _react2.jsx)(ComboBox, {
96
+ rowHeight: rowHeight
97
+ }));
98
+ cy.realPress('Tab');
99
+ cy.get('input[data-test-subj="comboBoxSearchInput"]').should('have.focus');
100
+ cy.get('button[data-test-subj="titanOption"]').should('exist');
101
+ cy.repeatRealPress('ArrowDown');
102
+ cy.realPress('Enter');
103
+ cy.repeatRealPress('ArrowDown');
104
+ cy.realPress('Enter');
105
+ cy.repeatRealPress('ArrowDown');
106
+ cy.realPress('Enter');
107
+ cy.get('div[data-test-subj="comboBoxInput"]').find('span.euiBadge').should('have.length', 3);
108
+ cy.checkAxe();
98
109
 
99
- // Close the listbox and interact with the Clear button
100
- cy.realPress('Escape');
101
- cy.realPress('Tab');
102
- cy.get('button[data-test-subj="comboBoxClearButton"]').should('have.focus');
103
- cy.realPress('Space');
104
- cy.get('div[data-test-subj="comboBoxInput"]').find('span.euiBadge').should('have.length', 0);
105
- cy.checkAxe();
106
- });
107
- });
108
- describe('Manual Accessibility check', function () {
109
- it('sets the correct aria-activedescendant id', function () {
110
- cy.realPress('Tab');
111
- cy.get('input[data-test-subj="comboBoxSearchInput"]').should('have.focus');
112
- cy.get('button[data-test-subj="titanOption"]').should('exist');
113
- cy.realPress('ArrowDown');
114
- cy.realPress('ArrowDown');
115
- cy.realPress('ArrowDown');
116
- cy.get('input[data-test-subj="comboBoxSearchInput"]').invoke('attr', 'aria-activedescendant').should('include', 'option-2');
117
- cy.realPress('Enter');
118
- cy.realPress('ArrowDown');
119
- cy.get('input[data-test-subj="comboBoxSearchInput"]').invoke('attr', 'aria-activedescendant').should('include', 'option-3');
110
+ // Close the listbox and interact with the Clear button
111
+ cy.realPress('Escape');
112
+ cy.realPress('Tab');
113
+ cy.get('button[data-test-subj="comboBoxClearButton"]').should('have.focus');
114
+ cy.realPress('Space');
115
+ cy.get('div[data-test-subj="comboBoxInput"]').find('span.euiBadge').should('have.length', 0);
116
+ cy.checkAxe();
117
+ });
120
118
  });
121
- it('sets the correct aria-activedescendant id with custom option ids', function () {
122
- cy.realMount((0, _react2.jsx)(ComboBox, {
123
- initialOptions: [{
124
- id: 'titan',
125
- label: 'Titan',
126
- 'data-test-subj': 'titanOption'
127
- }, {
128
- id: 'enceladus',
129
- label: 'Enceladus',
130
- 'data-test-subj': 'enceladusOption'
131
- }, {
132
- id: 'mimas',
133
- label: 'Mimas',
134
- 'data-test-subj': 'mimasOption'
135
- }, {
136
- id: 'dione',
137
- label: 'Dione',
138
- 'data-test-subj': 'dioneOption'
139
- }, {
140
- id: 'iapetus',
141
- label: 'Iapetus',
142
- 'data-test-subj': 'iapetusOption'
143
- }]
144
- }));
145
- cy.get('input[data-test-subj="comboBoxSearchInput"]').should('exist');
146
- cy.realPress('Tab');
147
- cy.get('input[data-test-subj="comboBoxSearchInput"]').should('have.focus');
148
- cy.get('button[data-test-subj="titanOption"]').should('exist');
149
- cy.realPress('ArrowDown');
150
- cy.realPress('ArrowDown');
151
- cy.realPress('ArrowDown');
152
- cy.get('input[data-test-subj="comboBoxSearchInput"]').should('have.attr', 'aria-activedescendant', 'mimas');
153
- cy.realPress('Enter');
154
- cy.realPress('ArrowDown');
155
- cy.get('input[data-test-subj="comboBoxSearchInput"]').should('have.attr', 'aria-activedescendant', 'iapetus');
119
+ describe("Manual Accessibility check with rowHeight ".concat(rowHeight !== null && rowHeight !== void 0 ? rowHeight : 'default'), function () {
120
+ it('sets the correct aria-activedescendant id', function () {
121
+ cy.realMount((0, _react2.jsx)(ComboBox, {
122
+ rowHeight: rowHeight
123
+ }));
124
+ cy.realPress('Tab');
125
+ cy.get('input[data-test-subj="comboBoxSearchInput"]').should('have.focus');
126
+ cy.get('button[data-test-subj="titanOption"]').should('exist');
127
+ cy.realPress('ArrowDown');
128
+ cy.realPress('ArrowDown');
129
+ cy.realPress('ArrowDown');
130
+ cy.get('input[data-test-subj="comboBoxSearchInput"]').invoke('attr', 'aria-activedescendant').should('include', 'option-2');
131
+ cy.realPress('Enter');
132
+ cy.realPress('ArrowDown');
133
+ cy.get('input[data-test-subj="comboBoxSearchInput"]').invoke('attr', 'aria-activedescendant').should('include', 'option-3');
134
+ });
135
+ it('sets the correct aria-activedescendant id with custom option ids', function () {
136
+ cy.realMount((0, _react2.jsx)(ComboBox, {
137
+ rowHeight: rowHeight,
138
+ initialOptions: [{
139
+ id: 'titan',
140
+ label: 'Titan',
141
+ 'data-test-subj': 'titanOption'
142
+ }, {
143
+ id: 'enceladus',
144
+ label: 'Enceladus',
145
+ 'data-test-subj': 'enceladusOption'
146
+ }, {
147
+ id: 'mimas',
148
+ label: 'Mimas',
149
+ 'data-test-subj': 'mimasOption'
150
+ }, {
151
+ id: 'dione',
152
+ label: 'Dione',
153
+ 'data-test-subj': 'dioneOption'
154
+ }, {
155
+ id: 'iapetus',
156
+ label: 'Iapetus',
157
+ 'data-test-subj': 'iapetusOption'
158
+ }]
159
+ }));
160
+ cy.get('input[data-test-subj="comboBoxSearchInput"]').should('exist');
161
+ cy.realPress('Tab');
162
+ cy.get('input[data-test-subj="comboBoxSearchInput"]').should('have.focus');
163
+ cy.get('button[data-test-subj="titanOption"]').should('exist');
164
+ cy.realPress('ArrowDown');
165
+ cy.realPress('ArrowDown');
166
+ cy.realPress('ArrowDown');
167
+ cy.get('input[data-test-subj="comboBoxSearchInput"]').should('have.attr', 'aria-activedescendant', 'mimas');
168
+ cy.realPress('Enter');
169
+ cy.realPress('ArrowDown');
170
+ cy.get('input[data-test-subj="comboBoxSearchInput"]').should('have.attr', 'aria-activedescendant', 'iapetus');
171
+ });
156
172
  });
157
173
  });
158
174
  });
@@ -68,12 +68,7 @@ var EuiComboBoxOptionsList = exports.EuiComboBoxOptionsList = /*#__PURE__*/funct
68
68
  (0, _defineProperty2.default)(_this, "ListInnerElement", function (_ref) {
69
69
  var children = _ref.children,
70
70
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
71
- return (0, _react2.jsx)("div", (0, _extends2.default)({}, rest, {
72
- "aria-label": _this.props.listboxAriaLabel,
73
- id: _this.props.rootId('listbox'),
74
- role: "listbox",
75
- tabIndex: "0"
76
- }), children);
71
+ return (0, _react2.jsx)("div", (0, _extends2.default)({}, rest, _this.getListInnerElementProps()), children);
77
72
  });
78
73
  (0, _defineProperty2.default)(_this, "ListRow", function (_ref2) {
79
74
  var _option$key;
@@ -98,7 +93,8 @@ var EuiComboBoxOptionsList = exports.EuiComboBoxOptionsList = /*#__PURE__*/funct
98
93
  searchValue = _this$props.searchValue,
99
94
  rootId = _this$props.rootId,
100
95
  matchingOptions = _this$props.matchingOptions,
101
- setListOptionRefs = _this$props.setListOptionRefs;
96
+ setListOptionRefs = _this$props.setListOptionRefs,
97
+ rowHeight = _this$props.rowHeight;
102
98
  var optionIndex = matchingOptions.indexOf(option);
103
99
  var hasTruncationProps = _this.props.truncationProps || _truncationProps;
104
100
  var truncationProps = hasTruncationProps ? // Individual truncation settings should override component prop
@@ -126,6 +122,7 @@ var EuiComboBoxOptionsList = exports.EuiComboBoxOptionsList = /*#__PURE__*/funct
126
122
  isFocused: optionIsFocused,
127
123
  checked: checked,
128
124
  showIcons: singleSelection ? true : false,
125
+ truncateContent: rowHeight !== 'auto',
129
126
  id: rootId("_option-".concat(index)),
130
127
  title: label,
131
128
  "aria-setsize": matchingOptions.length,
@@ -140,8 +137,16 @@ var EuiComboBoxOptionsList = exports.EuiComboBoxOptionsList = /*#__PURE__*/funct
140
137
  classNamePrefix: "euiComboBoxOption",
141
138
  marginSize: "s"
142
139
  }, (0, _react2.jsx)("span", {
143
- className: "euiComboBoxOption__content"
144
- }, renderOption ? renderOption(option, searchValue, 'euiComboBoxOption__renderOption') : _this.renderTruncatedOption(label, truncationProps))), optionIsFocused && !optionIsDisabled ? hitEnterBadge : null));
140
+ className: (0, _classnames.default)('euiComboBoxOption__content', rowHeight !== 'auto' && 'eui-textTruncate')
141
+ }, renderOption ? renderOption(option, searchValue, 'euiComboBoxOption__renderOption') : rowHeight === 'auto' ? _this.renderVariableHeightOption(label) : _this.renderTruncatedOption(label, truncationProps))), optionIsFocused && !optionIsDisabled ? hitEnterBadge : null));
142
+ });
143
+ (0, _defineProperty2.default)(_this, "getListInnerElementProps", function () {
144
+ return {
145
+ 'aria-label': _this.props.listboxAriaLabel,
146
+ id: _this.props.rootId('listbox'),
147
+ role: 'listbox',
148
+ tabIndex: 0
149
+ };
145
150
  });
146
151
  (0, _defineProperty2.default)(_this, "optionWidth", void 0);
147
152
  (0, _defineProperty2.default)(_this, "setOptionWidth", function (width) {
@@ -174,22 +179,32 @@ var EuiComboBoxOptionsList = exports.EuiComboBoxOptionsList = /*#__PURE__*/funct
174
179
  truncationPosition: searchPositionCenter,
175
180
  text: text
176
181
  }), function (text) {
177
- return (0, _react2.jsx)(_react.default.Fragment, null, text.length >= searchValue.length ? (0, _react2.jsx)(_highlight.EuiHighlight, {
178
- search: searchValue,
179
- strict: _this.props.isCaseSensitive
180
- }, text) :
181
- // If the available truncated text is shorter than the full search string,
182
- // just highlight the entire truncated text
183
- (0, _react2.jsx)(_mark.EuiMark, null, text));
182
+ return _this.renderHighlightedOptionText(text, searchValue);
184
183
  });
185
184
  });
185
+ (0, _defineProperty2.default)(_this, "renderVariableHeightOption", function (text) {
186
+ var searchValue = _this.props.searchValue.trim();
187
+ if (!searchValue) {
188
+ return text;
189
+ }
190
+ return _this.renderHighlightedOptionText(text, searchValue);
191
+ });
192
+ (0, _defineProperty2.default)(_this, "renderHighlightedOptionText", function (text, searchValue) {
193
+ return (0, _react2.jsx)(_react.default.Fragment, null, text.length >= searchValue.length ? (0, _react2.jsx)(_highlight.EuiHighlight, {
194
+ search: searchValue,
195
+ strict: _this.props.isCaseSensitive
196
+ }, text) :
197
+ // If the available truncated text is shorter than the full search string,
198
+ // just highlight the entire truncated text
199
+ (0, _react2.jsx)(_mark.EuiMark, null, text));
200
+ });
186
201
  return _this;
187
202
  }
188
203
  (0, _inherits2.default)(EuiComboBoxOptionsList, _Component);
189
204
  return (0, _createClass2.default)(EuiComboBoxOptionsList, [{
190
205
  key: "componentDidUpdate",
191
206
  value: function componentDidUpdate(prevProps) {
192
- if (this.listRef && typeof this.props.activeOptionIndex !== 'undefined' && this.props.activeOptionIndex !== prevProps.activeOptionIndex) {
207
+ if (this.listRef && typeof this.props.activeOptionIndex !== 'undefined' && this.props.activeOptionIndex !== prevProps.activeOptionIndex && this.props.rowHeight !== 'auto') {
193
208
  this.listRef.scrollToItem(this.props.activeOptionIndex, 'auto');
194
209
  }
195
210
  }
@@ -316,15 +331,17 @@ var EuiComboBoxOptionsList = exports.EuiComboBoxOptionsList = /*#__PURE__*/funct
316
331
  default: "You've selected all available options"
317
332
  }));
318
333
  }
319
- var numVisibleOptions = matchingOptions.length < 7 ? matchingOptions.length : 7;
320
- var height = numVisibleOptions * (rowHeight + 1); // Add one for the border
321
-
322
- // bounded by max-height of .euiComboBoxOptionsList
323
- var boundedHeight = height > _combo_box_options_list.LIST_MAX_HEIGHT ? _combo_box_options_list.LIST_MAX_HEIGHT : height;
334
+ var boundedHeight = _combo_box_options_list.LIST_MAX_HEIGHT;
335
+ if (rowHeight !== 'auto') {
336
+ var numVisibleOptions = matchingOptions.length < 7 ? matchingOptions.length : 7;
337
+ var height = numVisibleOptions * (rowHeight + 1); // Add one for the border
338
+ // bounded by max-height of .euiComboBoxOptionsList
339
+ boundedHeight = height > _combo_box_options_list.LIST_MAX_HEIGHT ? _combo_box_options_list.LIST_MAX_HEIGHT : height;
340
+ }
324
341
  return (0, _react2.jsx)(_services.RenderWithEuiStylesMemoizer, null, function (stylesMemoizer) {
325
342
  var styles = stylesMemoizer(_combo_box_options_list.euiComboBoxOptionListStyles);
326
343
  return (0, _react2.jsx)("div", (0, _extends2.default)({
327
- css: styles.euiComboBoxOptionList,
344
+ css: [styles.euiComboBoxOptionList, rowHeight === 'auto' && styles.hasRowHeightAuto, ";label:render;"],
328
345
  className: "euiComboBoxOptionsList",
329
346
  "data-test-subj": (0, _classnames.default)('comboBoxOptionsList', dataTestSubj),
330
347
  ref: listRef
@@ -332,7 +349,15 @@ var EuiComboBoxOptionsList = exports.EuiComboBoxOptionsList = /*#__PURE__*/funct
332
349
  size: "xs",
333
350
  css: styles.euiComboBoxOptionsList__empty,
334
351
  className: "euiComboBoxOptionsList__empty"
335
- }, emptyStateContent) : (0, _react2.jsx)(_reactWindow.FixedSizeList, {
352
+ }, emptyStateContent) : rowHeight === 'auto' ? (0, _react2.jsx)("div", _this2.getListInnerElementProps(), matchingOptions.map(function (_, index) {
353
+ return (0, _react2.jsx)(_this2.ListRow, {
354
+ data: matchingOptions,
355
+ index: index,
356
+ key: index // same as FixedSizeList's default
357
+ ,
358
+ style: {}
359
+ });
360
+ })) : (0, _react2.jsx)(_reactWindow.FixedSizeList, {
336
361
  css: styles.euiComboBoxOptionList__virtualization,
337
362
  className: "euiComboBoxOptionsList__virtualization",
338
363
  height: boundedHeight,
@@ -19,9 +19,13 @@ var LIST_MAX_HEIGHT = exports.LIST_MAX_HEIGHT = 200;
19
19
  var euiComboBoxOptionListStyles = exports.euiComboBoxOptionListStyles = function euiComboBoxOptionListStyles(euiThemeContext) {
20
20
  var euiTheme = euiThemeContext.euiTheme;
21
21
  return {
22
- euiComboBoxOptionList: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('max-height', "".concat(LIST_MAX_HEIGHT, "px")), " overflow:hidden;.euiTextTruncate{pointer-events:none;}.euiComboBoxOption__contentWrapper{display:flex;align-items:center;}.euiComboBoxOption__content{flex:1;text-align:start;", (0, _global_styling.euiTextTruncate)(), ";}.euiComboBoxOption__emptyStateText{flex:1;text-align:start;", (0, _global_styling.logicalCSS)('margin-bottom', 0), ";}.euiComboBoxOption__enterBadge{", (0, _global_styling.logicalCSS)('margin-left', euiTheme.size.xs), ";}.euiComboBoxTitle{display:flex;", (0, _global_styling.logicalCSS)('padding-horizontal', euiTheme.size.s), (0, _global_styling.logicalCSS)('padding-top', (0, _global_styling.mathWithUnits)(euiTheme.size.s, function (x) {
22
+ euiComboBoxOptionList: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('max-height', "".concat(LIST_MAX_HEIGHT, "px")), " overflow:hidden;.euiTextTruncate{pointer-events:none;}.euiComboBoxOption__contentWrapper{display:flex;align-items:center;}.euiComboBoxOption__content{flex:1;text-align:start;}.euiComboBoxOption__emptyStateText{flex:1;text-align:start;", (0, _global_styling.logicalCSS)('margin-bottom', 0), ";}.euiComboBoxOption__enterBadge{", (0, _global_styling.logicalCSS)('margin-left', euiTheme.size.xs), ";}.euiComboBoxTitle{display:flex;", (0, _global_styling.logicalCSS)('padding-horizontal', euiTheme.size.s), (0, _global_styling.logicalCSS)('padding-top', (0, _global_styling.mathWithUnits)(euiTheme.size.s, function (x) {
23
23
  return x + 1;
24
24
  })), " ", (0, _global_styling.logicalCSS)('padding-bottom', euiTheme.size.xs), " ", (0, _title.euiTitle)(euiThemeContext, 'xxxs'), ";};label:euiComboBoxOptionList;"),
25
+ /* eslint-disable local/css-logical-properties */
26
+ hasRowHeightAuto: /*#__PURE__*/(0, _react.css)("overflow-y:auto;.euiComboBoxOption__contentWrapper{align-items:flex-start;}", (0, _global_styling.euiScrollBarStyles)(euiThemeContext), ";;label:hasRowHeightAuto;"),
27
+ /* eslint-enable local/css-logical-properties */
28
+
25
29
  euiComboBoxOptionList__virtualization: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiScrollBarStyles)(euiThemeContext), ";;label:euiComboBoxOptionList__virtualization;"),
26
30
  euiComboBoxOptionsList__empty: /*#__PURE__*/(0, _react.css)("padding:", euiTheme.size.s, ";text-align:center;", (0, _global_styling.euiTextBreakWord)(), ";;label:euiComboBoxOptionsList__empty;")
27
31
  };
@@ -15,6 +15,7 @@ var _services = require("../../../../services");
15
15
  var _utils = require("../../../../utils");
16
16
  var _focus_trap = require("../../../focus_trap");
17
17
  var _i18n = require("../../../i18n");
18
+ var _accessibility = require("../../../accessibility");
18
19
  var _react2 = require("@emotion/react");
19
20
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
20
21
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
@@ -186,6 +187,13 @@ var FocusTrappedChildren = exports.FocusTrappedChildren = function FocusTrappedC
186
187
  , {
187
188
  token: "euiDataGridCell.focusTrapEnterPrompt",
188
189
  default: "Press the Enter key to interact with this cell's contents."
190
+ })), (0, _react2.jsx)(_accessibility.EuiLiveAnnouncer, {
191
+ clearAfterMs: 1000
192
+ }, isCellEntered && (0, _react2.jsx)(_i18n.EuiI18n
193
+ // eslint-disable-next-line local/i18n
194
+ , {
195
+ token: "euiDataGridCell.focusTrapEnteredExitPrompt",
196
+ default: "Press the Escape key to exit the cell."
189
197
  })));
190
198
  };
191
199
 
@@ -197,14 +205,14 @@ var disableInteractives = function disableInteractives(cell) {
197
205
  var interactives = (0, _tabbable.tabbable)(cell);
198
206
  interactives.forEach(function (element) {
199
207
  element.setAttribute('data-euigrid-tab-managed', 'true');
200
- element.setAttribute('tabIndex', '-1');
208
+ element.setAttribute('tabindex', '-1');
201
209
  });
202
210
  return interactives;
203
211
  };
204
212
  var enableAndFocusInteractives = function enableAndFocusInteractives(cell) {
205
213
  var interactives = cell.querySelectorAll('[data-euigrid-tab-managed]');
206
214
  interactives.forEach(function (element, i) {
207
- element.setAttribute('tabIndex', '0');
215
+ element.setAttribute('tabindex', '0');
208
216
  // focus the first element only if we're on the cell and not inside of it
209
217
  if (i === 0 && !cell.contains(document.activeElement)) {
210
218
  element.focus();
@@ -58,7 +58,7 @@ var euiDataGridStyles = exports.euiDataGridStyles = function euiDataGridStyles(e
58
58
  };
59
59
  var border = "".concat(euiTheme.border.width.thin, " solid ").concat(borderColors.default);
60
60
  return {
61
- euiDataGrid: /*#__PURE__*/(0, _react.css)("display:flex;flex-direction:column;align-items:stretch;", (0, _global_styling.logicalCSS)('height', '100%'), " overflow:hidden;*:where(& .euiDataGridRow){background-color:", euiTheme.components.dataGridRowBackground, ";}*:where(&.euiDataGrid--rowHoverHighlight .euiDataGridRow:hover){background-color:", euiTheme.components.dataGridRowBackgroundHover, ";}*:where(& .euiDataGridRow--selected){background-color:", euiTheme.components.dataGridRowBackgroundSelect, ";}*:where(& .euiDataGridRow--marked){background-color:", euiTheme.components.dataGridRowBackgroundMarked, ";&:hover{background-color:", euiTheme.components.dataGridRowBackgroundMarkedHover, ";}.euiDataGridRowCell.euiDataGridRowCell{", outlineSelectors.marked, "{", (0, _data_grid_cell.euiDataGridCellOutlineStyles)(euiThemeContext).markedStyles, ";}}}*:where(\n &.euiDataGrid--rowHoverHighlight .euiDataGridRow--selected:hover\n ){background-color:", euiTheme.components.dataGridRowBackgroundSelectHover, ";}*:where(&.euiDataGrid--stripes .euiDataGridRow){background-color:", euiTheme.components.dataGridRowStripesBackground, ";}*:where(&.euiDataGrid--stripes .euiDataGridRow--striped){background-color:", euiTheme.components.dataGridRowStripesBackgroundStriped, ";}*:where(\n &.euiDataGrid--stripes.euiDataGrid--rowHoverHighlight\n .euiDataGridRow:hover\n ){background-color:", euiTheme.components.dataGridRowStripesBackgroundHover, ";}*:where(\n &.euiDataGrid--stripes.euiDataGrid--rowHoverHighlight\n .euiDataGridRow--striped:hover\n ){background-color:", euiTheme.components.dataGridRowStripesBackgroundStripedHover, ";}*:where(&.euiDataGrid--stripes .euiDataGridRow--selected){background-color:", euiTheme.components.dataGridRowStripesBackgroundSelect, ";}*:where(\n &.euiDataGrid--stripes.euiDataGrid--rowHoverHighlight\n .euiDataGridRow--selected:hover\n ){background-color:", euiTheme.components.dataGridRowStripesBackgroundSelectHover, ";}*:where(&.euiDataGrid--rowHoverHighlight .euiDataGridRow)::before{content:'';position:absolute;z-index:-1;pointer-events:none;inset:0;background-color:", euiTheme.components.dataGridRowBackground, ";};label:euiDataGrid;"),
61
+ euiDataGrid: /*#__PURE__*/(0, _react.css)("display:flex;flex-direction:column;align-items:stretch;", (0, _global_styling.logicalCSS)('height', '100%'), " overflow:hidden;*:where(& .euiDataGridRow){background-color:", euiTheme.components.dataGridRowBackground, ";}*:where(&.euiDataGrid--rowHoverHighlight .euiDataGridRow:hover){background-color:", euiTheme.components.dataGridRowBackgroundHover, ";}*:where(&:not(.euiDataGrid--stripes) .euiDataGridRow--selected){background-color:", euiTheme.components.dataGridRowBackgroundSelect, ";}*:where(& .euiDataGridRow--marked){background-color:", euiTheme.components.dataGridRowBackgroundMarked, ";.euiDataGridRowCell.euiDataGridRowCell{", outlineSelectors.marked, "{", (0, _data_grid_cell.euiDataGridCellOutlineStyles)(euiThemeContext).markedStyles, ";}}}*:where(&:not(.euiDataGrid--stripes) .euiDataGridRow--marked){&:hover{background-color:", euiTheme.components.dataGridRowBackgroundMarkedHover, ";}}*:where(\n &.euiDataGrid--rowHoverHighlight .euiDataGridRow--selected:hover\n ){background-color:", euiTheme.components.dataGridRowBackgroundSelectHover, ";}*:where(&.euiDataGrid--stripes .euiDataGridRow){background-color:", euiTheme.components.dataGridRowStripesBackground, ";}*:where(&.euiDataGrid--stripes .euiDataGridRow--striped){background-color:", euiTheme.components.dataGridRowStripesBackgroundStriped, ";}*:where(\n &.euiDataGrid--stripes.euiDataGrid--rowHoverHighlight\n .euiDataGridRow:hover\n ){background-color:", euiTheme.components.dataGridRowStripesBackgroundHover, ";}*:where(\n &.euiDataGrid--stripes.euiDataGrid--rowHoverHighlight\n .euiDataGridRow--striped:hover\n ){background-color:", euiTheme.components.dataGridRowStripesBackgroundStripedHover, ";}*:where(&.euiDataGrid--stripes .euiDataGridRow--selected){background-color:", euiTheme.components.dataGridRowStripesBackgroundSelect, ";}*:where(&.euiDataGrid--stripes .euiDataGridRow--marked){background-color:", euiTheme.components.dataGridRowBackgroundMarked, ";}*:where(\n &.euiDataGrid--stripes.euiDataGrid--rowHoverHighlight\n .euiDataGridRow--selected:hover\n ){background-color:", euiTheme.components.dataGridRowStripesBackgroundSelectHover, ";}*:where(&.euiDataGrid--rowHoverHighlight .euiDataGridRow)::before{content:'';position:absolute;z-index:-1;pointer-events:none;inset:0;background-color:", euiTheme.components.dataGridRowBackground, ";};label:euiDataGrid;"),
62
62
  cellPadding: {
63
63
  cellPadding: function cellPadding(size) {
64
64
  return /*#__PURE__*/(0, _react.css)(".euiDataGridHeaderCell,.euiDataGridRowCell__content{padding:", _cellPadding[size], ";}.euiDataGridRowCell__content--lineCountHeight,.euiDataGridRowCell__content--autoBelowLineCountHeight{", (0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
@@ -22,7 +22,7 @@ var _tool_tip = require("../tool_tip");
22
22
  var _icon = require("../icon");
23
23
  var _filter_select_item = require("./filter_select_item.styles");
24
24
  var _react2 = require("@emotion/react");
25
- var _excluded = ["theme", "children", "className", "disabled", "checked", "isFocused", "showIcons", "toolTipContent", "toolTipProps", "style", "forwardRef"];
25
+ var _excluded = ["theme", "children", "className", "disabled", "checked", "isFocused", "showIcons", "toolTipContent", "toolTipProps", "style", "truncateContent", "forwardRef"];
26
26
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
27
27
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
28
28
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -95,6 +95,16 @@ var EuiFilterSelectItemClass = exports.EuiFilterSelectItemClass = /*#__PURE__*/f
95
95
  }
96
96
  (0, _inherits2.default)(EuiFilterSelectItemClass, _Component);
97
97
  return (0, _createClass2.default)(EuiFilterSelectItemClass, [{
98
+ key: "componentDidUpdate",
99
+ value: function componentDidUpdate(prevProps) {
100
+ if (this.props.isFocused && !prevProps.isFocused) {
101
+ var _this$buttonRef, _this$buttonRef$scrol;
102
+ (_this$buttonRef = this.buttonRef) === null || _this$buttonRef === void 0 || (_this$buttonRef$scrol = _this$buttonRef.scrollIntoView) === null || _this$buttonRef$scrol === void 0 || _this$buttonRef$scrol.call(_this$buttonRef, {
103
+ block: 'nearest'
104
+ });
105
+ }
106
+ }
107
+ }, {
98
108
  key: "render",
99
109
  value: function render() {
100
110
  var _this$props2 = this.props,
@@ -108,6 +118,7 @@ var EuiFilterSelectItemClass = exports.EuiFilterSelectItemClass = /*#__PURE__*/f
108
118
  toolTipContent = _this$props2.toolTipContent,
109
119
  toolTipProps = _this$props2.toolTipProps,
110
120
  style = _this$props2.style,
121
+ truncateContent = _this$props2.truncateContent,
111
122
  forwardRef = _this$props2.forwardRef,
112
123
  rest = (0, _objectWithoutProperties2.default)(_this$props2, _excluded);
113
124
  var styles = (0, _filter_select_item.euiFilterSelectItemStyles)(theme);
@@ -156,7 +167,7 @@ var EuiFilterSelectItemClass = exports.EuiFilterSelectItemClass = /*#__PURE__*/f
156
167
  component: "span",
157
168
  responsive: false
158
169
  }, iconNode, (0, _react2.jsx)(_flex.EuiFlexItem, {
159
- className: "euiFilterSelectItem__content eui-textTruncate",
170
+ className: (0, _classnames.default)('euiFilterSelectItem__content', this.props.truncateContent && 'eui-textTruncate'),
160
171
  component: "span"
161
172
  }, children)));
162
173
  return hasToolTip ? (0, _react2.jsx)(_tool_tip.EuiToolTip, (0, _extends2.default)({
@@ -174,6 +185,7 @@ var EuiFilterSelectItemClass = exports.EuiFilterSelectItemClass = /*#__PURE__*/f
174
185
  * @deprecated - Use EuiSelectable instead
175
186
  */
176
187
  (0, _defineProperty2.default)(EuiFilterSelectItemClass, "defaultProps", {
177
- showIcons: true
188
+ showIcons: true,
189
+ truncateContent: true
178
190
  });
179
191
  var EuiFilterSelectItem = exports.EuiFilterSelectItem = (0, _services.withEuiTheme)(EuiFilterSelectItemClass);
@@ -76,7 +76,7 @@ var EuiFieldNumber = exports.EuiFieldNumber = function EuiFieldNumber(props) {
76
76
  if (_inputRef.current) {
77
77
  checkNativeValidity(_inputRef.current);
78
78
  }
79
- }, [value, min, max, step, checkNativeValidity]);
79
+ }, [isInvalid, value, min, max, step, checkNativeValidity]);
80
80
  var classes = (0, _classnames.default)('euiFieldNumber', className, {
81
81
  'euiFieldNumber-isLoading': isLoading
82
82
  });
@@ -26,6 +26,7 @@ var euiFieldPasswordStyles = exports.euiFieldPasswordStyles = function euiFieldP
26
26
  return {
27
27
  euiFieldPassword: /*#__PURE__*/(0, _react.css)(formStyles.shared, " &:invalid{", formStyles.invalid, ";}&:focus{", formStyles.focus, ";}&:disabled{", formStyles.disabled, ";}&[readOnly]{", formStyles.readOnly, ";}&:autofill{", formStyles.autoFill, ";};label:euiFieldPassword;"),
28
28
  // Only remove Edge's internal reveal button if we're providing a custom one
29
+ // This pseudo-element is still supported in Chromium-based Edge.
29
30
  withToggle: _ref,
30
31
  // Skip the css() on the default height to avoid generating a className
31
32
  uncompressed: formStyles.uncompressed,
@@ -176,7 +176,7 @@ var euiFormControlInvalidStyles = exports.euiFormControlInvalidStyles = function
176
176
  var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'formVariant');
177
177
  var form = euiFormVariables(euiThemeContext);
178
178
  var invalidColor = euiTheme.colors.danger;
179
- return isRefreshVariant ? "\n --euiFormControlStateColor: ".concat(form.borderInvalid, ";\n --euiFormControlStateHoverColor: ").concat(form.borderInvalidHovered, ";\n --euiFormControlStateWidth: ").concat(highContrastMode === 'preferred' ? euiTheme.border.width.thick : euiTheme.border.width.thin, ";\n \n ").concat(euiFormControlHighlightBorderStyles, "\n ").concat(euiFormControlShowBackgroundLine(euiThemeContext, invalidColor), "\n ") : "\n --euiFormControlStateColor: ".concat(invalidColor, ";\n ").concat(euiFormControlShowBackgroundLine(euiThemeContext, invalidColor), "\n ");
179
+ return isRefreshVariant ? "\n --euiFormControlStateColor: ".concat(form.borderInvalid, ";\n --euiFormControlStateHoverColor: ").concat(form.borderInvalidHovered, ";\n --euiFormControlStateWidth: ").concat(highContrastMode === 'preferred' ? euiTheme.border.width.thick : euiTheme.border.width.thin, ";\n\n ").concat(euiFormControlHighlightBorderStyles, "\n ").concat(euiFormControlShowBackgroundLine(euiThemeContext, invalidColor), "\n ") : "\n --euiFormControlStateColor: ".concat(invalidColor, ";\n ").concat(euiFormControlShowBackgroundLine(euiThemeContext, invalidColor), "\n ");
180
180
  };
181
181
  var euiFormControlDisabledStyles = exports.euiFormControlDisabledStyles = function euiFormControlDisabledStyles(euiThemeContext) {
182
182
  var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'formVariant');
@@ -245,7 +245,7 @@ var euiFormControlShowBackgroundLine = exports.euiFormControlShowBackgroundLine
245
245
  }), ");\n background-position: ").concat(euiTheme.border.width.thin, ";\n background-image: url(\"").concat(refreshInlineSVG, "\");\n ") : "\n background-size: 100% ".concat(stateUnderlineHeight, ";\n background-image: url(\"").concat(inlineSVG, "\");\n ");
246
246
  };
247
247
  var euiPlaceholderPerBrowser = function euiPlaceholderPerBrowser(content) {
248
- return "\n &::-webkit-input-placeholder { ".concat(content, " }\n &::-moz-placeholder { ").concat(content, " }\n &:-ms-input-placeholder { ").concat(content, " }\n &:-moz-placeholder { ").concat(content, " }\n &::placeholder { ").concat(content, " }\n");
248
+ return "\n &::-webkit-input-placeholder { ".concat(content, " }\n &::-moz-placeholder { ").concat(content, " }\n &:-moz-placeholder { ").concat(content, " }\n &::placeholder { ").concat(content, " }\n");
249
249
  };
250
250
 
251
251
  /**
@@ -77,7 +77,7 @@ var euiFormControlLayoutSideNodeStyles = exports.euiFormControlLayoutSideNodeSty
77
77
  var appendStyles = "\n position: relative;\n ".concat((0, _global_styling.logicalCSS)('margin-left', "-".concat(euiTheme.border.width.thin)), "\n\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n pointer-events: none;\n border-inline-start: \n ").concat(euiTheme.border.width.thin, " solid ").concat(form.borderColor, ";\n }\n ");
78
78
  var prependStyles = "\n position: relative;\n ".concat((0, _global_styling.logicalCSS)('margin-right', "-".concat(euiTheme.border.width.thin)), "\n\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n z-index: 1;\n pointer-events: none;\n border-inline-end: \n ").concat(euiTheme.border.width.thin, " solid ").concat(form.borderColor, ";\n }\n ");
79
79
  return {
80
- euiFormControlLayout__side: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', '100%'), " ", (0, _global_styling.euiTextTruncate)('50%'), " flex-shrink:0;display:flex;align-items:center;gap:", euiTheme.size.xs, ";background-color:", form.appendPrependBackground, ";", buttons, "{transform:none!important;line-height:1;&:focus-visible{outline-offset:-", euiTheme.focus.width, ";}}", text, "{cursor:default;overflow:hidden;text-overflow:ellipsis;}&:not(:has(> ", buttons, ":first-child, > *:first-child > ", buttons, ")){", (0, _global_styling.logicalCSS)('padding-left', euiTheme.size.s), ";}&:not(:has(> ", buttons, ":last-child, > *:last-child > ", buttons, ")){", (0, _global_styling.logicalCSS)('padding-right', euiTheme.size.s), ";};label:euiFormControlLayout__side;"),
80
+ euiFormControlLayout__side: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', '100%'), " ", (0, _global_styling.euiTextTruncate)('50%'), " flex-shrink:0;display:flex;align-items:center;gap:", euiTheme.size.xs, ";background-color:", form.appendPrependBackground, ";", buttons, "{transform:none!important;&:focus-visible{outline-offset:-", euiTheme.focus.width, ";}}", text, "{cursor:default;overflow:hidden;text-overflow:ellipsis;}&:not(:has(> ", buttons, ":first-child, > *:first-child > ", buttons, ")){", (0, _global_styling.logicalCSS)('padding-left', euiTheme.size.s), ";}&:not(:has(> ", buttons, ":last-child, > *:last-child > ", buttons, ")){", (0, _global_styling.logicalCSS)('padding-right', euiTheme.size.s), ";};label:euiFormControlLayout__side;"),
81
81
  append: /*#__PURE__*/(0, _react.css)((0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
82
82
  none: "\n ".concat(isRefreshVariant && appendStyles, "\n "),
83
83
  preferred: (0, _global_styling.logicalCSS)('border-left', euiTheme.border.thin)
@@ -64,7 +64,7 @@ var euiRangeVariables = exports.euiRangeVariables = function euiRangeVariables(e
64
64
  };
65
65
  };
66
66
  var euiRangeTrackPerBrowser = exports.euiRangeTrackPerBrowser = function euiRangeTrackPerBrowser(content) {
67
- return "\n &::-webkit-slider-runnable-track { ".concat(content, "; }\n &::-moz-range-track { ").concat(content, "; }\n &::-ms-fill-lower {").concat(content, "; }\n &::-ms-fill-upper { ").concat(content, "; }\n ");
67
+ return "\n &::-webkit-slider-runnable-track { ".concat(content, "; }\n &::-moz-range-track { ").concat(content, "; }\n ");
68
68
  };
69
69
  var euiRangeThumbBorder = exports.euiRangeThumbBorder = function euiRangeThumbBorder(euiThemeContext) {
70
70
  var range = euiRangeVariables(euiThemeContext);
@@ -98,7 +98,7 @@ var euiRangeThumbStyle = exports.euiRangeThumbStyle = function euiRangeThumbStyl
98
98
  });
99
99
  };
100
100
  var euiRangeThumbPerBrowser = exports.euiRangeThumbPerBrowser = function euiRangeThumbPerBrowser(content) {
101
- return "\n &::-webkit-slider-thumb { ".concat(content, "; }\n &::-moz-range-thumb { ").concat(content, "; }\n &::-ms-thumb {").concat(content, "; }\n ");
101
+ return "\n &::-webkit-slider-thumb { ".concat(content, "; }\n &::-moz-range-thumb { ").concat(content, "; }\n ");
102
102
  };
103
103
  var euiRangeThumbFocus = exports.euiRangeThumbFocus = function euiRangeThumbFocus(euiThemeContext) {
104
104
  var range = euiRangeVariables(euiThemeContext);
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ var _typeof = require("@babel/runtime/helpers/typeof");
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.icon = void 0;
9
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
10
+ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
11
+ var React = _interopRequireWildcard(require("react"));
12
+ var _react2 = require("@emotion/react");
13
+ var _excluded = ["title", "titleId"];
14
+ /*
15
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
16
+ * or more contributor license agreements. Licensed under the Elastic License
17
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
18
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
19
+ * Side Public License, v 1.
20
+ */
21
+ // THIS IS A GENERATED FILE. DO NOT MODIFY MANUALLY. @see scripts/compile-icons.js
22
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
23
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
24
+ var EuiIconThumbDown = function EuiIconThumbDown(_ref) {
25
+ var title = _ref.title,
26
+ titleId = _ref.titleId,
27
+ props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
28
+ return (0, _react2.jsx)("svg", (0, _extends2.default)({
29
+ xmlns: "http://www.w3.org/2000/svg",
30
+ width: 16,
31
+ height: 16,
32
+ viewBox: "0 0 16 16",
33
+ "aria-labelledby": titleId
34
+ }, props), title ? (0, _react2.jsx)("title", {
35
+ id: titleId
36
+ }, title) : null, (0, _react2.jsx)("path", {
37
+ d: "M12 7h1v2h-1V7Z"
38
+ }), (0, _react2.jsx)("path", {
39
+ fillRule: "evenodd",
40
+ d: "M7.8 14.22a1.135 1.135 0 0 1-1.89.437 3.221 3.221 0 0 1-.655-3.519l.484-1.132H3.001a2 2 0 0 1-1.977-2.308L1.74 3.12a2.5 2.5 0 0 1 2.47-2.114h2.988c.995 0 1.972.23 2.859.666a.999.999 0 0 1 .941-.666h3a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1h-3a1 1 0 0 1-.943-.67A5.012 5.012 0 0 0 8.268 12.8L7.8 14.22Zm6.198-12.214h-3v8h3v-8ZM6.626 13.958c.07.073.193.044.225-.051l.467-1.42a6.012 6.012 0 0 1 2.68-3.309V2.78a5.472 5.472 0 0 0-2.8-.774H4.21a1.5 1.5 0 0 0-1.483 1.269l-.714 4.577A1 1 0 0 0 3 9.006h3.497a.5.5 0 0 1 .46.697l-.784 1.829a2.222 2.222 0 0 0 .452 2.426Z",
41
+ clipRule: "evenodd"
42
+ }));
43
+ };
44
+ var icon = exports.icon = EuiIconThumbDown;