@elastic/eui 106.2.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 (321) 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 +14 -4
  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/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
  21. package/es/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +1 -1
  22. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +1 -1
  23. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +2 -2
  24. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +2 -2
  25. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +4 -4
  26. package/es/components/combo_box/combo_box.a11y.js +97 -81
  27. package/es/components/combo_box/combo_box.js +3 -2
  28. package/es/components/combo_box/combo_box_options_list/combo_box_options_list.js +50 -25
  29. package/es/components/combo_box/combo_box_options_list/combo_box_options_list.styles.js +6 -2
  30. package/es/components/comment_list/comment.js +2 -2
  31. package/es/components/comment_list/comment_event.js +1 -1
  32. package/es/components/comment_list/comment_list.js +2 -2
  33. package/es/components/comment_list/comment_timeline.js +1 -1
  34. package/es/components/context_menu/context_menu_item.js +1 -1
  35. package/es/components/datagrid/body/cell/data_grid_cell.js +12 -12
  36. package/es/components/datagrid/body/cell/focus_utils.js +10 -2
  37. package/es/components/datagrid/body/data_grid_body.js +7 -7
  38. package/es/components/datagrid/body/data_grid_body_custom.js +7 -7
  39. package/es/components/datagrid/body/data_grid_body_virtualized.js +7 -7
  40. package/es/components/datagrid/body/header/data_grid_header_cell.js +6 -6
  41. package/es/components/datagrid/controls/column_sorting.js +7 -7
  42. package/es/components/datagrid/controls/column_sorting_draggable.js +1 -1
  43. package/es/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
  44. package/es/components/datagrid/data_grid.styles.js +1 -1
  45. package/es/components/datagrid/utils/in_memory.js +6 -6
  46. package/es/components/date_picker/date_picker.js +2 -2
  47. package/es/components/date_picker/date_picker_range.js +1 -1
  48. package/es/components/empty_prompt/empty_prompt.js +1 -1
  49. package/es/components/facet/facet_button.js +1 -1
  50. package/es/components/filter_group/filter_select_item.js +16 -3
  51. package/es/components/form/field_number/field_number.js +3 -3
  52. package/es/components/form/field_password/field_password.styles.js +1 -0
  53. package/es/components/form/field_text/field_text.js +2 -2
  54. package/es/components/form/form.styles.js +2 -2
  55. package/es/components/form/form_control_layout/form_control_layout.js +2 -2
  56. package/es/components/form/form_control_layout/form_control_layout.styles.js +1 -1
  57. package/es/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
  58. package/es/components/form/form_control_layout/form_control_layout_icons.js +2 -2
  59. package/es/components/form/range/range.styles.js +2 -2
  60. package/es/components/form/text_area/text_area.js +2 -2
  61. package/es/components/header/header_links/header_link.js +1 -1
  62. package/es/components/header/header_links/header_links.js +1 -1
  63. package/es/components/header/header_logo/header_logo.js +1 -1
  64. package/es/components/header/header_section/header_section_item_button.js +1 -1
  65. package/es/components/icon/assets/thumbDown.js +37 -0
  66. package/es/components/icon/assets/thumbUp.js +37 -0
  67. package/es/components/icon/icon.js +1 -1
  68. package/es/components/icon/icon_map.js +2 -0
  69. package/es/components/key_pad_menu/key_pad_menu_item.js +1 -1
  70. package/es/components/list_group/list_group.js +2 -2
  71. package/es/components/list_group/list_group_item.js +2 -2
  72. package/es/components/list_group/list_group_item_extra_action.js +1 -1
  73. package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
  74. package/es/components/loading/loading_logo.js +1 -1
  75. package/es/components/markdown_editor/markdown_editor.js +1 -1
  76. package/es/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
  77. package/es/components/markdown_editor/markdown_editor_footer.js +1 -1
  78. package/es/components/markdown_editor/markdown_editor_toolbar.js +1 -1
  79. package/es/components/page/page_header/page_header_content.js +1 -1
  80. package/es/components/pagination/pagination_button.js +1 -1
  81. package/es/components/selectable/selectable_list/selectable_list.js +1 -1
  82. package/es/components/selectable/selectable_list/selectable_list_item.js +1 -1
  83. package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
  84. package/es/components/table/table_header_cell.js +1 -1
  85. package/es/components/timeline/timeline_item_icon.js +1 -1
  86. package/es/components/toast/global_toast_list.js +1 -1
  87. package/es/components/toast/toast.js +1 -1
  88. package/es/components/tool_tip/icon_tip.js +1 -1
  89. package/es/global_styling/mixins/_button.js +1 -1
  90. package/es/services/emotion/prefixer.js +116 -22
  91. package/eui.d.ts +175 -97
  92. package/i18ntokens.json +2012 -1994
  93. package/lib/components/accessibility/index.js +8 -1
  94. package/lib/components/accessibility/live_announcer/index.js +16 -0
  95. package/lib/components/accessibility/live_announcer/live_announcer.js +93 -0
  96. package/lib/components/accessibility/screen_reader_live/screen_reader_live.js +7 -0
  97. package/lib/components/avatar/avatar.js +1 -1
  98. package/lib/components/badge/badge.js +1 -1
  99. package/lib/components/badge/beta_badge/beta_badge.js +1 -1
  100. package/lib/components/basic_table/basic_table.js +4 -4
  101. package/lib/components/basic_table/in_memory_table.js +4 -4
  102. package/lib/components/button/button.js +1 -1
  103. package/lib/components/button/button_display/_button_display.js +1 -1
  104. package/lib/components/button/button_display/_button_display_content.js +1 -1
  105. package/lib/components/button/button_empty/button_empty.js +1 -1
  106. package/lib/components/button/button_group/button_group.js +1 -1
  107. package/lib/components/button/button_group/button_group_button.js +1 -1
  108. package/lib/components/button/button_icon/button_icon.js +1 -1
  109. package/lib/components/call_out/call_out.js +14 -4
  110. package/lib/components/card/card.js +2 -2
  111. package/lib/components/card/card_select/card_select.js +1 -1
  112. package/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
  113. package/lib/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +1 -1
  114. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +1 -1
  115. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +2 -2
  116. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +2 -2
  117. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +4 -4
  118. package/lib/components/combo_box/combo_box.a11y.js +97 -81
  119. package/lib/components/combo_box/combo_box.js +3 -2
  120. package/lib/components/combo_box/combo_box_options_list/combo_box_options_list.js +50 -25
  121. package/lib/components/combo_box/combo_box_options_list/combo_box_options_list.styles.js +5 -1
  122. package/lib/components/comment_list/comment.js +2 -2
  123. package/lib/components/comment_list/comment_event.js +1 -1
  124. package/lib/components/comment_list/comment_list.js +2 -2
  125. package/lib/components/comment_list/comment_timeline.js +1 -1
  126. package/lib/components/context_menu/context_menu_item.js +1 -1
  127. package/lib/components/datagrid/body/cell/data_grid_cell.js +12 -12
  128. package/lib/components/datagrid/body/cell/focus_utils.js +10 -2
  129. package/lib/components/datagrid/body/data_grid_body.js +7 -7
  130. package/lib/components/datagrid/body/data_grid_body_custom.js +7 -7
  131. package/lib/components/datagrid/body/data_grid_body_virtualized.js +7 -7
  132. package/lib/components/datagrid/body/header/data_grid_header_cell.js +6 -6
  133. package/lib/components/datagrid/controls/column_sorting.js +7 -7
  134. package/lib/components/datagrid/controls/column_sorting_draggable.js +1 -1
  135. package/lib/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
  136. package/lib/components/datagrid/data_grid.styles.js +1 -1
  137. package/lib/components/datagrid/utils/in_memory.js +6 -6
  138. package/lib/components/date_picker/date_picker.js +2 -2
  139. package/lib/components/date_picker/date_picker_range.js +1 -1
  140. package/lib/components/empty_prompt/empty_prompt.js +1 -1
  141. package/lib/components/facet/facet_button.js +1 -1
  142. package/lib/components/filter_group/filter_select_item.js +16 -3
  143. package/lib/components/form/field_number/field_number.js +3 -3
  144. package/lib/components/form/field_password/field_password.styles.js +1 -0
  145. package/lib/components/form/field_text/field_text.js +2 -2
  146. package/lib/components/form/form.styles.js +2 -2
  147. package/lib/components/form/form_control_layout/form_control_layout.js +2 -2
  148. package/lib/components/form/form_control_layout/form_control_layout.styles.js +1 -1
  149. package/lib/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
  150. package/lib/components/form/form_control_layout/form_control_layout_icons.js +2 -2
  151. package/lib/components/form/range/range.styles.js +2 -2
  152. package/lib/components/form/text_area/text_area.js +2 -2
  153. package/lib/components/header/header_links/header_link.js +1 -1
  154. package/lib/components/header/header_links/header_links.js +1 -1
  155. package/lib/components/header/header_logo/header_logo.js +1 -1
  156. package/lib/components/header/header_section/header_section_item_button.js +1 -1
  157. package/lib/components/icon/assets/thumbDown.js +44 -0
  158. package/lib/components/icon/assets/thumbUp.js +44 -0
  159. package/lib/components/icon/icon.js +1 -1
  160. package/lib/components/icon/icon_map.js +2 -0
  161. package/lib/components/icon/svgs/thumbDown.svg +4 -0
  162. package/lib/components/icon/svgs/thumbUp.svg +4 -0
  163. package/lib/components/key_pad_menu/key_pad_menu_item.js +1 -1
  164. package/lib/components/list_group/list_group.js +2 -2
  165. package/lib/components/list_group/list_group_item.js +2 -2
  166. package/lib/components/list_group/list_group_item_extra_action.js +1 -1
  167. package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
  168. package/lib/components/loading/loading_logo.js +1 -1
  169. package/lib/components/markdown_editor/markdown_editor.js +1 -1
  170. package/lib/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
  171. package/lib/components/markdown_editor/markdown_editor_footer.js +1 -1
  172. package/lib/components/markdown_editor/markdown_editor_toolbar.js +1 -1
  173. package/lib/components/page/page_header/page_header_content.js +1 -1
  174. package/lib/components/pagination/pagination_button.js +1 -1
  175. package/lib/components/selectable/selectable_list/selectable_list.js +1 -1
  176. package/lib/components/selectable/selectable_list/selectable_list_item.js +1 -1
  177. package/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
  178. package/lib/components/table/table_header_cell.js +1 -1
  179. package/lib/components/timeline/timeline_item_icon.js +1 -1
  180. package/lib/components/toast/global_toast_list.js +1 -1
  181. package/lib/components/toast/toast.js +1 -1
  182. package/lib/components/tool_tip/icon_tip.js +1 -1
  183. package/lib/global_styling/mixins/_button.js +1 -1
  184. package/lib/services/emotion/prefixer.js +116 -22
  185. package/optimize/es/components/accessibility/index.js +2 -1
  186. package/optimize/es/components/accessibility/live_announcer/index.js +9 -0
  187. package/optimize/es/components/accessibility/live_announcer/live_announcer.js +68 -0
  188. package/optimize/es/components/accessibility/screen_reader_live/screen_reader_live.js +1 -0
  189. package/optimize/es/components/call_out/call_out.js +5 -2
  190. package/optimize/es/components/combo_box/combo_box.a11y.js +97 -81
  191. package/optimize/es/components/combo_box/combo_box_options_list/combo_box_options_list.js +49 -24
  192. package/optimize/es/components/combo_box/combo_box_options_list/combo_box_options_list.styles.js +6 -2
  193. package/optimize/es/components/datagrid/body/cell/focus_utils.js +10 -2
  194. package/optimize/es/components/datagrid/data_grid.styles.js +1 -1
  195. package/optimize/es/components/filter_group/filter_select_item.js +15 -3
  196. package/optimize/es/components/form/field_number/field_number.js +1 -1
  197. package/optimize/es/components/form/field_password/field_password.styles.js +1 -0
  198. package/optimize/es/components/form/form.styles.js +2 -2
  199. package/optimize/es/components/form/form_control_layout/form_control_layout.styles.js +1 -1
  200. package/optimize/es/components/form/range/range.styles.js +2 -2
  201. package/optimize/es/components/icon/assets/thumbDown.js +36 -0
  202. package/optimize/es/components/icon/assets/thumbUp.js +36 -0
  203. package/optimize/es/components/icon/icon_map.js +2 -0
  204. package/optimize/es/global_styling/mixins/_button.js +1 -1
  205. package/optimize/es/services/emotion/prefixer.js +116 -22
  206. package/optimize/lib/components/accessibility/index.js +8 -1
  207. package/optimize/lib/components/accessibility/live_announcer/index.js +16 -0
  208. package/optimize/lib/components/accessibility/live_announcer/live_announcer.js +77 -0
  209. package/optimize/lib/components/accessibility/screen_reader_live/screen_reader_live.js +1 -0
  210. package/optimize/lib/components/call_out/call_out.js +5 -2
  211. package/optimize/lib/components/combo_box/combo_box.a11y.js +97 -81
  212. package/optimize/lib/components/combo_box/combo_box_options_list/combo_box_options_list.js +49 -24
  213. package/optimize/lib/components/combo_box/combo_box_options_list/combo_box_options_list.styles.js +5 -1
  214. package/optimize/lib/components/datagrid/body/cell/focus_utils.js +10 -2
  215. package/optimize/lib/components/datagrid/data_grid.styles.js +1 -1
  216. package/optimize/lib/components/filter_group/filter_select_item.js +15 -3
  217. package/optimize/lib/components/form/field_number/field_number.js +1 -1
  218. package/optimize/lib/components/form/field_password/field_password.styles.js +1 -0
  219. package/optimize/lib/components/form/form.styles.js +2 -2
  220. package/optimize/lib/components/form/form_control_layout/form_control_layout.styles.js +1 -1
  221. package/optimize/lib/components/form/range/range.styles.js +2 -2
  222. package/optimize/lib/components/icon/assets/thumbDown.js +44 -0
  223. package/optimize/lib/components/icon/assets/thumbUp.js +44 -0
  224. package/optimize/lib/components/icon/icon_map.js +2 -0
  225. package/optimize/lib/components/icon/svgs/thumbDown.svg +4 -0
  226. package/optimize/lib/components/icon/svgs/thumbUp.svg +4 -0
  227. package/optimize/lib/global_styling/mixins/_button.js +1 -1
  228. package/optimize/lib/services/emotion/prefixer.js +116 -22
  229. package/package.json +4 -4
  230. package/src/components/date_picker/react-datepicker/src/stylesheets/datepicker.scss +6 -7
  231. package/src/global_styling/mixins/_typography.scss +0 -1
  232. package/src/themes/amsterdam/global_styling/mixins/_typography.scss +0 -1
  233. package/test-env/components/accessibility/index.js +8 -1
  234. package/test-env/components/accessibility/live_announcer/index.js +16 -0
  235. package/test-env/components/accessibility/live_announcer/live_announcer.js +87 -0
  236. package/test-env/components/accessibility/screen_reader_live/screen_reader_live.js +7 -0
  237. package/test-env/components/avatar/avatar.js +1 -1
  238. package/test-env/components/badge/badge.js +1 -1
  239. package/test-env/components/badge/beta_badge/beta_badge.js +1 -1
  240. package/test-env/components/basic_table/basic_table.js +4 -4
  241. package/test-env/components/basic_table/in_memory_table.js +4 -4
  242. package/test-env/components/button/button.js +1 -1
  243. package/test-env/components/button/button_display/_button_display.js +1 -1
  244. package/test-env/components/button/button_display/_button_display_content.js +1 -1
  245. package/test-env/components/button/button_empty/button_empty.js +1 -1
  246. package/test-env/components/button/button_group/button_group.js +1 -1
  247. package/test-env/components/button/button_group/button_group_button.js +1 -1
  248. package/test-env/components/button/button_icon/button_icon.js +1 -1
  249. package/test-env/components/call_out/call_out.js +14 -4
  250. package/test-env/components/card/card.js +2 -2
  251. package/test-env/components/card/card_select/card_select.js +1 -1
  252. package/test-env/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
  253. package/test-env/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +1 -1
  254. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +1 -1
  255. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +2 -2
  256. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +2 -2
  257. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +4 -4
  258. package/test-env/components/combo_box/combo_box.a11y.js +97 -81
  259. package/test-env/components/combo_box/combo_box.js +3 -2
  260. package/test-env/components/combo_box/combo_box_options_list/combo_box_options_list.js +50 -25
  261. package/test-env/components/combo_box/combo_box_options_list/combo_box_options_list.styles.js +5 -1
  262. package/test-env/components/comment_list/comment.js +2 -2
  263. package/test-env/components/comment_list/comment_event.js +1 -1
  264. package/test-env/components/comment_list/comment_list.js +2 -2
  265. package/test-env/components/comment_list/comment_timeline.js +1 -1
  266. package/test-env/components/context_menu/context_menu_item.js +1 -1
  267. package/test-env/components/datagrid/body/cell/data_grid_cell.js +12 -12
  268. package/test-env/components/datagrid/body/cell/focus_utils.js +10 -2
  269. package/test-env/components/datagrid/body/data_grid_body.js +7 -7
  270. package/test-env/components/datagrid/body/data_grid_body_custom.js +7 -7
  271. package/test-env/components/datagrid/body/data_grid_body_virtualized.js +7 -7
  272. package/test-env/components/datagrid/body/header/data_grid_header_cell.js +6 -6
  273. package/test-env/components/datagrid/controls/column_sorting.js +7 -7
  274. package/test-env/components/datagrid/controls/column_sorting_draggable.js +1 -1
  275. package/test-env/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
  276. package/test-env/components/datagrid/data_grid.styles.js +1 -1
  277. package/test-env/components/datagrid/utils/in_memory.js +6 -6
  278. package/test-env/components/date_picker/date_picker.js +2 -2
  279. package/test-env/components/date_picker/date_picker_range.js +1 -1
  280. package/test-env/components/empty_prompt/empty_prompt.js +1 -1
  281. package/test-env/components/facet/facet_button.js +1 -1
  282. package/test-env/components/filter_group/filter_select_item.js +16 -3
  283. package/test-env/components/form/field_number/field_number.js +3 -3
  284. package/test-env/components/form/field_password/field_password.styles.js +1 -0
  285. package/test-env/components/form/field_text/field_text.js +2 -2
  286. package/test-env/components/form/form.styles.js +2 -2
  287. package/test-env/components/form/form_control_layout/form_control_layout.js +2 -2
  288. package/test-env/components/form/form_control_layout/form_control_layout.styles.js +1 -1
  289. package/test-env/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
  290. package/test-env/components/form/form_control_layout/form_control_layout_icons.js +2 -2
  291. package/test-env/components/form/range/range.styles.js +2 -2
  292. package/test-env/components/form/text_area/text_area.js +2 -2
  293. package/test-env/components/header/header_links/header_link.js +1 -1
  294. package/test-env/components/header/header_links/header_links.js +1 -1
  295. package/test-env/components/header/header_logo/header_logo.js +1 -1
  296. package/test-env/components/header/header_section/header_section_item_button.js +1 -1
  297. package/test-env/components/icon/assets/thumbDown.js +44 -0
  298. package/test-env/components/icon/assets/thumbUp.js +44 -0
  299. package/test-env/components/icon/icon_map.js +2 -0
  300. package/test-env/components/key_pad_menu/key_pad_menu_item.js +1 -1
  301. package/test-env/components/list_group/list_group.js +2 -2
  302. package/test-env/components/list_group/list_group_item.js +2 -2
  303. package/test-env/components/list_group/list_group_item_extra_action.js +1 -1
  304. package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
  305. package/test-env/components/loading/loading_logo.js +1 -1
  306. package/test-env/components/markdown_editor/markdown_editor.js +1 -1
  307. package/test-env/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
  308. package/test-env/components/markdown_editor/markdown_editor_footer.js +1 -1
  309. package/test-env/components/markdown_editor/markdown_editor_toolbar.js +1 -1
  310. package/test-env/components/page/page_header/page_header_content.js +1 -1
  311. package/test-env/components/pagination/pagination_button.js +1 -1
  312. package/test-env/components/selectable/selectable_list/selectable_list.js +1 -1
  313. package/test-env/components/selectable/selectable_list/selectable_list_item.js +1 -1
  314. package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
  315. package/test-env/components/table/table_header_cell.js +1 -1
  316. package/test-env/components/timeline/timeline_item_icon.js +1 -1
  317. package/test-env/components/toast/global_toast_list.js +1 -1
  318. package/test-env/components/toast/toast.js +1 -1
  319. package/test-env/components/tool_tip/icon_tip.js +1 -1
  320. package/test-env/global_styling/mixins/_button.js +1 -1
  321. package/test-env/services/emotion/prefixer.js +116 -22
@@ -15,7 +15,8 @@ import React, { useState } from 'react';
15
15
  import { EuiComboBox } from './index';
16
16
  import { jsx as ___EmotionJSX } from "@emotion/react";
17
17
  var ComboBox = function ComboBox(_ref) {
18
- var initialOptions = _ref.initialOptions;
18
+ var initialOptions = _ref.initialOptions,
19
+ rowHeight = _ref.rowHeight;
19
20
  var _useState = useState(initialOptions !== null && initialOptions !== void 0 ? initialOptions : [{
20
21
  label: 'Titan',
21
22
  'data-test-subj': 'titanOption'
@@ -60,93 +61,108 @@ var ComboBox = function ComboBox(_ref) {
60
61
  selectedOptions: selectedOptions,
61
62
  onChange: onChange,
62
63
  isClearable: true,
63
- isCaseSensitive: true
64
+ isCaseSensitive: true,
65
+ rowHeight: rowHeight
64
66
  });
65
67
  };
66
- beforeEach(function () {
67
- cy.realMount(___EmotionJSX(ComboBox, null));
68
+ afterEach(function () {
68
69
  cy.get('input[data-test-subj="comboBoxSearchInput"]').should('exist');
69
70
  });
70
71
  describe('EuiComboBox', function () {
71
- describe('Automated accessibility check', function () {
72
- it('has zero violations on render', function () {
73
- cy.checkAxe();
74
- });
75
- it('has zero violations when the combobox is expanded', function () {
76
- cy.get('input[data-test-subj="comboBoxSearchInput"]').realClick();
77
- cy.get('button[data-test-subj="titanOption"]').should('exist');
78
- cy.checkAxe();
79
- });
80
- it('has zero violations after keyboard interaction', function () {
81
- cy.realPress('Tab');
82
- cy.get('input[data-test-subj="comboBoxSearchInput"]').should('have.focus');
83
- cy.get('button[data-test-subj="titanOption"]').should('exist');
84
- cy.repeatRealPress('ArrowDown');
85
- cy.realPress('Enter');
86
- cy.repeatRealPress('ArrowDown');
87
- cy.realPress('Enter');
88
- cy.repeatRealPress('ArrowDown');
89
- cy.realPress('Enter');
90
- cy.get('div[data-test-subj="comboBoxInput"]').find('span.euiBadge').should('have.length', 3);
91
- cy.checkAxe();
72
+ [undefined, 'auto'].forEach(function (rowHeight) {
73
+ describe("Automated accessibility check with rowHeight ".concat(rowHeight !== null && rowHeight !== void 0 ? rowHeight : 'default'), function () {
74
+ it('has zero violations on render', function () {
75
+ cy.realMount(___EmotionJSX(ComboBox, {
76
+ rowHeight: rowHeight
77
+ }));
78
+ cy.checkAxe();
79
+ });
80
+ it('has zero violations when the combobox is expanded', function () {
81
+ cy.realMount(___EmotionJSX(ComboBox, {
82
+ rowHeight: rowHeight
83
+ }));
84
+ cy.get('input[data-test-subj="comboBoxSearchInput"]').realClick();
85
+ cy.get('button[data-test-subj="titanOption"]').should('exist');
86
+ cy.checkAxe();
87
+ });
88
+ it('has zero violations after keyboard interaction', function () {
89
+ cy.realMount(___EmotionJSX(ComboBox, {
90
+ rowHeight: rowHeight
91
+ }));
92
+ cy.realPress('Tab');
93
+ cy.get('input[data-test-subj="comboBoxSearchInput"]').should('have.focus');
94
+ cy.get('button[data-test-subj="titanOption"]').should('exist');
95
+ cy.repeatRealPress('ArrowDown');
96
+ cy.realPress('Enter');
97
+ cy.repeatRealPress('ArrowDown');
98
+ cy.realPress('Enter');
99
+ cy.repeatRealPress('ArrowDown');
100
+ cy.realPress('Enter');
101
+ cy.get('div[data-test-subj="comboBoxInput"]').find('span.euiBadge').should('have.length', 3);
102
+ cy.checkAxe();
92
103
 
93
- // Close the listbox and interact with the Clear button
94
- cy.realPress('Escape');
95
- cy.realPress('Tab');
96
- cy.get('button[data-test-subj="comboBoxClearButton"]').should('have.focus');
97
- cy.realPress('Space');
98
- cy.get('div[data-test-subj="comboBoxInput"]').find('span.euiBadge').should('have.length', 0);
99
- cy.checkAxe();
100
- });
101
- });
102
- describe('Manual Accessibility check', function () {
103
- it('sets the correct aria-activedescendant id', function () {
104
- cy.realPress('Tab');
105
- cy.get('input[data-test-subj="comboBoxSearchInput"]').should('have.focus');
106
- cy.get('button[data-test-subj="titanOption"]').should('exist');
107
- cy.realPress('ArrowDown');
108
- cy.realPress('ArrowDown');
109
- cy.realPress('ArrowDown');
110
- cy.get('input[data-test-subj="comboBoxSearchInput"]').invoke('attr', 'aria-activedescendant').should('include', 'option-2');
111
- cy.realPress('Enter');
112
- cy.realPress('ArrowDown');
113
- cy.get('input[data-test-subj="comboBoxSearchInput"]').invoke('attr', 'aria-activedescendant').should('include', 'option-3');
104
+ // Close the listbox and interact with the Clear button
105
+ cy.realPress('Escape');
106
+ cy.realPress('Tab');
107
+ cy.get('button[data-test-subj="comboBoxClearButton"]').should('have.focus');
108
+ cy.realPress('Space');
109
+ cy.get('div[data-test-subj="comboBoxInput"]').find('span.euiBadge').should('have.length', 0);
110
+ cy.checkAxe();
111
+ });
114
112
  });
115
- it('sets the correct aria-activedescendant id with custom option ids', function () {
116
- cy.realMount(___EmotionJSX(ComboBox, {
117
- initialOptions: [{
118
- id: 'titan',
119
- label: 'Titan',
120
- 'data-test-subj': 'titanOption'
121
- }, {
122
- id: 'enceladus',
123
- label: 'Enceladus',
124
- 'data-test-subj': 'enceladusOption'
125
- }, {
126
- id: 'mimas',
127
- label: 'Mimas',
128
- 'data-test-subj': 'mimasOption'
129
- }, {
130
- id: 'dione',
131
- label: 'Dione',
132
- 'data-test-subj': 'dioneOption'
133
- }, {
134
- id: 'iapetus',
135
- label: 'Iapetus',
136
- 'data-test-subj': 'iapetusOption'
137
- }]
138
- }));
139
- cy.get('input[data-test-subj="comboBoxSearchInput"]').should('exist');
140
- cy.realPress('Tab');
141
- cy.get('input[data-test-subj="comboBoxSearchInput"]').should('have.focus');
142
- cy.get('button[data-test-subj="titanOption"]').should('exist');
143
- cy.realPress('ArrowDown');
144
- cy.realPress('ArrowDown');
145
- cy.realPress('ArrowDown');
146
- cy.get('input[data-test-subj="comboBoxSearchInput"]').should('have.attr', 'aria-activedescendant', 'mimas');
147
- cy.realPress('Enter');
148
- cy.realPress('ArrowDown');
149
- cy.get('input[data-test-subj="comboBoxSearchInput"]').should('have.attr', 'aria-activedescendant', 'iapetus');
113
+ describe("Manual Accessibility check with rowHeight ".concat(rowHeight !== null && rowHeight !== void 0 ? rowHeight : 'default'), function () {
114
+ it('sets the correct aria-activedescendant id', function () {
115
+ cy.realMount(___EmotionJSX(ComboBox, {
116
+ rowHeight: rowHeight
117
+ }));
118
+ cy.realPress('Tab');
119
+ cy.get('input[data-test-subj="comboBoxSearchInput"]').should('have.focus');
120
+ cy.get('button[data-test-subj="titanOption"]').should('exist');
121
+ cy.realPress('ArrowDown');
122
+ cy.realPress('ArrowDown');
123
+ cy.realPress('ArrowDown');
124
+ cy.get('input[data-test-subj="comboBoxSearchInput"]').invoke('attr', 'aria-activedescendant').should('include', 'option-2');
125
+ cy.realPress('Enter');
126
+ cy.realPress('ArrowDown');
127
+ cy.get('input[data-test-subj="comboBoxSearchInput"]').invoke('attr', 'aria-activedescendant').should('include', 'option-3');
128
+ });
129
+ it('sets the correct aria-activedescendant id with custom option ids', function () {
130
+ cy.realMount(___EmotionJSX(ComboBox, {
131
+ rowHeight: rowHeight,
132
+ initialOptions: [{
133
+ id: 'titan',
134
+ label: 'Titan',
135
+ 'data-test-subj': 'titanOption'
136
+ }, {
137
+ id: 'enceladus',
138
+ label: 'Enceladus',
139
+ 'data-test-subj': 'enceladusOption'
140
+ }, {
141
+ id: 'mimas',
142
+ label: 'Mimas',
143
+ 'data-test-subj': 'mimasOption'
144
+ }, {
145
+ id: 'dione',
146
+ label: 'Dione',
147
+ 'data-test-subj': 'dioneOption'
148
+ }, {
149
+ id: 'iapetus',
150
+ label: 'Iapetus',
151
+ 'data-test-subj': 'iapetusOption'
152
+ }]
153
+ }));
154
+ cy.get('input[data-test-subj="comboBoxSearchInput"]').should('exist');
155
+ cy.realPress('Tab');
156
+ cy.get('input[data-test-subj="comboBoxSearchInput"]').should('have.focus');
157
+ cy.get('button[data-test-subj="titanOption"]').should('exist');
158
+ cy.realPress('ArrowDown');
159
+ cy.realPress('ArrowDown');
160
+ cy.realPress('ArrowDown');
161
+ cy.get('input[data-test-subj="comboBoxSearchInput"]').should('have.attr', 'aria-activedescendant', 'mimas');
162
+ cy.realPress('Enter');
163
+ cy.realPress('ArrowDown');
164
+ cy.get('input[data-test-subj="comboBoxSearchInput"]').should('have.attr', 'aria-activedescendant', 'iapetus');
165
+ });
150
166
  });
151
167
  });
152
168
  });
@@ -60,12 +60,7 @@ export var EuiComboBoxOptionsList = /*#__PURE__*/function (_Component) {
60
60
  _defineProperty(_this, "ListInnerElement", function (_ref) {
61
61
  var children = _ref.children,
62
62
  rest = _objectWithoutProperties(_ref, _excluded);
63
- return ___EmotionJSX("div", _extends({}, rest, {
64
- "aria-label": _this.props.listboxAriaLabel,
65
- id: _this.props.rootId('listbox'),
66
- role: "listbox",
67
- tabIndex: "0"
68
- }), children);
63
+ return ___EmotionJSX("div", _extends({}, rest, _this.getListInnerElementProps()), children);
69
64
  });
70
65
  _defineProperty(_this, "ListRow", function (_ref2) {
71
66
  var _option$key;
@@ -90,7 +85,8 @@ export var EuiComboBoxOptionsList = /*#__PURE__*/function (_Component) {
90
85
  searchValue = _this$props.searchValue,
91
86
  rootId = _this$props.rootId,
92
87
  matchingOptions = _this$props.matchingOptions,
93
- setListOptionRefs = _this$props.setListOptionRefs;
88
+ setListOptionRefs = _this$props.setListOptionRefs,
89
+ rowHeight = _this$props.rowHeight;
94
90
  var optionIndex = matchingOptions.indexOf(option);
95
91
  var hasTruncationProps = _this.props.truncationProps || _truncationProps;
96
92
  var truncationProps = hasTruncationProps ? // Individual truncation settings should override component prop
@@ -118,6 +114,7 @@ export var EuiComboBoxOptionsList = /*#__PURE__*/function (_Component) {
118
114
  isFocused: optionIsFocused,
119
115
  checked: checked,
120
116
  showIcons: singleSelection ? true : false,
117
+ truncateContent: rowHeight !== 'auto',
121
118
  id: rootId("_option-".concat(index)),
122
119
  title: label,
123
120
  "aria-setsize": matchingOptions.length,
@@ -132,8 +129,16 @@ export var EuiComboBoxOptionsList = /*#__PURE__*/function (_Component) {
132
129
  classNamePrefix: "euiComboBoxOption",
133
130
  marginSize: "s"
134
131
  }, ___EmotionJSX("span", {
135
- className: "euiComboBoxOption__content"
136
- }, renderOption ? renderOption(option, searchValue, 'euiComboBoxOption__renderOption') : _this.renderTruncatedOption(label, truncationProps))), optionIsFocused && !optionIsDisabled ? hitEnterBadge : null));
132
+ className: classNames('euiComboBoxOption__content', rowHeight !== 'auto' && 'eui-textTruncate')
133
+ }, renderOption ? renderOption(option, searchValue, 'euiComboBoxOption__renderOption') : rowHeight === 'auto' ? _this.renderVariableHeightOption(label) : _this.renderTruncatedOption(label, truncationProps))), optionIsFocused && !optionIsDisabled ? hitEnterBadge : null));
134
+ });
135
+ _defineProperty(_this, "getListInnerElementProps", function () {
136
+ return {
137
+ 'aria-label': _this.props.listboxAriaLabel,
138
+ id: _this.props.rootId('listbox'),
139
+ role: 'listbox',
140
+ tabIndex: 0
141
+ };
137
142
  });
138
143
  _defineProperty(_this, "optionWidth", void 0);
139
144
  _defineProperty(_this, "setOptionWidth", function (width) {
@@ -166,22 +171,32 @@ export var EuiComboBoxOptionsList = /*#__PURE__*/function (_Component) {
166
171
  truncationPosition: searchPositionCenter,
167
172
  text: text
168
173
  }), function (text) {
169
- return ___EmotionJSX(React.Fragment, null, text.length >= searchValue.length ? ___EmotionJSX(EuiHighlight, {
170
- search: searchValue,
171
- strict: _this.props.isCaseSensitive
172
- }, text) :
173
- // If the available truncated text is shorter than the full search string,
174
- // just highlight the entire truncated text
175
- ___EmotionJSX(EuiMark, null, text));
174
+ return _this.renderHighlightedOptionText(text, searchValue);
176
175
  });
177
176
  });
177
+ _defineProperty(_this, "renderVariableHeightOption", function (text) {
178
+ var searchValue = _this.props.searchValue.trim();
179
+ if (!searchValue) {
180
+ return text;
181
+ }
182
+ return _this.renderHighlightedOptionText(text, searchValue);
183
+ });
184
+ _defineProperty(_this, "renderHighlightedOptionText", function (text, searchValue) {
185
+ return ___EmotionJSX(React.Fragment, null, text.length >= searchValue.length ? ___EmotionJSX(EuiHighlight, {
186
+ search: searchValue,
187
+ strict: _this.props.isCaseSensitive
188
+ }, text) :
189
+ // If the available truncated text is shorter than the full search string,
190
+ // just highlight the entire truncated text
191
+ ___EmotionJSX(EuiMark, null, text));
192
+ });
178
193
  return _this;
179
194
  }
180
195
  _inherits(EuiComboBoxOptionsList, _Component);
181
196
  return _createClass(EuiComboBoxOptionsList, [{
182
197
  key: "componentDidUpdate",
183
198
  value: function componentDidUpdate(prevProps) {
184
- if (this.listRef && typeof this.props.activeOptionIndex !== 'undefined' && this.props.activeOptionIndex !== prevProps.activeOptionIndex) {
199
+ if (this.listRef && typeof this.props.activeOptionIndex !== 'undefined' && this.props.activeOptionIndex !== prevProps.activeOptionIndex && this.props.rowHeight !== 'auto') {
185
200
  this.listRef.scrollToItem(this.props.activeOptionIndex, 'auto');
186
201
  }
187
202
  }
@@ -308,15 +323,17 @@ export var EuiComboBoxOptionsList = /*#__PURE__*/function (_Component) {
308
323
  default: "You've selected all available options"
309
324
  }));
310
325
  }
311
- var numVisibleOptions = matchingOptions.length < 7 ? matchingOptions.length : 7;
312
- var height = numVisibleOptions * (rowHeight + 1); // Add one for the border
313
-
314
- // bounded by max-height of .euiComboBoxOptionsList
315
- var boundedHeight = height > LIST_MAX_HEIGHT ? LIST_MAX_HEIGHT : height;
326
+ var boundedHeight = LIST_MAX_HEIGHT;
327
+ if (rowHeight !== 'auto') {
328
+ var numVisibleOptions = matchingOptions.length < 7 ? matchingOptions.length : 7;
329
+ var height = numVisibleOptions * (rowHeight + 1); // Add one for the border
330
+ // bounded by max-height of .euiComboBoxOptionsList
331
+ boundedHeight = height > LIST_MAX_HEIGHT ? LIST_MAX_HEIGHT : height;
332
+ }
316
333
  return ___EmotionJSX(RenderWithEuiStylesMemoizer, null, function (stylesMemoizer) {
317
334
  var styles = stylesMemoizer(euiComboBoxOptionListStyles);
318
335
  return ___EmotionJSX("div", _extends({
319
- css: styles.euiComboBoxOptionList,
336
+ css: [styles.euiComboBoxOptionList, rowHeight === 'auto' && styles.hasRowHeightAuto, ";label:render;"],
320
337
  className: "euiComboBoxOptionsList",
321
338
  "data-test-subj": classNames('comboBoxOptionsList', dataTestSubj),
322
339
  ref: listRef
@@ -324,7 +341,15 @@ export var EuiComboBoxOptionsList = /*#__PURE__*/function (_Component) {
324
341
  size: "xs",
325
342
  css: styles.euiComboBoxOptionsList__empty,
326
343
  className: "euiComboBoxOptionsList__empty"
327
- }, emptyStateContent) : ___EmotionJSX(FixedSizeList, {
344
+ }, emptyStateContent) : rowHeight === 'auto' ? ___EmotionJSX("div", _this2.getListInnerElementProps(), matchingOptions.map(function (_, index) {
345
+ return ___EmotionJSX(_this2.ListRow, {
346
+ data: matchingOptions,
347
+ index: index,
348
+ key: index // same as FixedSizeList's default
349
+ ,
350
+ style: {}
351
+ });
352
+ })) : ___EmotionJSX(FixedSizeList, {
328
353
  css: styles.euiComboBoxOptionList__virtualization,
329
354
  className: "euiComboBoxOptionsList__virtualization",
330
355
  height: boundedHeight,
@@ -7,15 +7,19 @@
7
7
  */
8
8
 
9
9
  import { css } from '@emotion/react';
10
- import { logicalCSS, mathWithUnits, euiScrollBarStyles, euiTextBreakWord, euiTextTruncate } from '../../../global_styling';
10
+ import { logicalCSS, mathWithUnits, euiScrollBarStyles, euiTextBreakWord } from '../../../global_styling';
11
11
  import { euiTitle } from '../../title/title.styles';
12
12
  export var LIST_MAX_HEIGHT = 200;
13
13
  export var euiComboBoxOptionListStyles = function euiComboBoxOptionListStyles(euiThemeContext) {
14
14
  var euiTheme = euiThemeContext.euiTheme;
15
15
  return {
16
- euiComboBoxOptionList: /*#__PURE__*/css(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;", euiTextTruncate(), ";}.euiComboBoxOption__emptyStateText{flex:1;text-align:start;", logicalCSS('margin-bottom', 0), ";}.euiComboBoxOption__enterBadge{", logicalCSS('margin-left', euiTheme.size.xs), ";}.euiComboBoxTitle{display:flex;", logicalCSS('padding-horizontal', euiTheme.size.s), logicalCSS('padding-top', mathWithUnits(euiTheme.size.s, function (x) {
16
+ euiComboBoxOptionList: /*#__PURE__*/css(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;", logicalCSS('margin-bottom', 0), ";}.euiComboBoxOption__enterBadge{", logicalCSS('margin-left', euiTheme.size.xs), ";}.euiComboBoxTitle{display:flex;", logicalCSS('padding-horizontal', euiTheme.size.s), logicalCSS('padding-top', mathWithUnits(euiTheme.size.s, function (x) {
17
17
  return x + 1;
18
18
  })), " ", logicalCSS('padding-bottom', euiTheme.size.xs), " ", euiTitle(euiThemeContext, 'xxxs'), ";};label:euiComboBoxOptionList;"),
19
+ /* eslint-disable local/css-logical-properties */
20
+ hasRowHeightAuto: /*#__PURE__*/css("overflow-y:auto;.euiComboBoxOption__contentWrapper{align-items:flex-start;}", euiScrollBarStyles(euiThemeContext), ";;label:hasRowHeightAuto;"),
21
+ /* eslint-enable local/css-logical-properties */
22
+
19
23
  euiComboBoxOptionList__virtualization: /*#__PURE__*/css(euiScrollBarStyles(euiThemeContext), ";;label:euiComboBoxOptionList__virtualization;"),
20
24
  euiComboBoxOptionsList__empty: /*#__PURE__*/css("padding:", euiTheme.size.s, ";text-align:center;", euiTextBreakWord(), ";;label:euiComboBoxOptionsList__empty;")
21
25
  };
@@ -15,6 +15,7 @@ import { keys, useGeneratedHtmlId } from '../../../../services';
15
15
  import { isDOMNode } from '../../../../utils';
16
16
  import { EuiFocusTrap } from '../../../focus_trap';
17
17
  import { EuiI18n } from '../../../i18n';
18
+ import { EuiLiveAnnouncer } from '../../../accessibility';
18
19
 
19
20
  /**
20
21
  * This internal utility component is used by all cells, both header and body/footer cells.
@@ -177,6 +178,13 @@ export var FocusTrappedChildren = function FocusTrappedChildren(_ref2) {
177
178
  , {
178
179
  token: "euiDataGridCell.focusTrapEnterPrompt",
179
180
  default: "Press the Enter key to interact with this cell's contents."
181
+ })), ___EmotionJSX(EuiLiveAnnouncer, {
182
+ clearAfterMs: 1000
183
+ }, isCellEntered && ___EmotionJSX(EuiI18n
184
+ // eslint-disable-next-line local/i18n
185
+ , {
186
+ token: "euiDataGridCell.focusTrapEnteredExitPrompt",
187
+ default: "Press the Escape key to exit the cell."
180
188
  })));
181
189
  };
182
190
 
@@ -188,14 +196,14 @@ var disableInteractives = function disableInteractives(cell) {
188
196
  var interactives = tabbable(cell);
189
197
  interactives.forEach(function (element) {
190
198
  element.setAttribute('data-euigrid-tab-managed', 'true');
191
- element.setAttribute('tabIndex', '-1');
199
+ element.setAttribute('tabindex', '-1');
192
200
  });
193
201
  return interactives;
194
202
  };
195
203
  var enableAndFocusInteractives = function enableAndFocusInteractives(cell) {
196
204
  var interactives = cell.querySelectorAll('[data-euigrid-tab-managed]');
197
205
  interactives.forEach(function (element, i) {
198
- element.setAttribute('tabIndex', '0');
206
+ element.setAttribute('tabindex', '0');
199
207
  // focus the first element only if we're on the cell and not inside of it
200
208
  if (i === 0 && !cell.contains(document.activeElement)) {
201
209
  element.focus();
@@ -52,7 +52,7 @@ export var euiDataGridStyles = function euiDataGridStyles(euiThemeContext) {
52
52
  };
53
53
  var border = "".concat(euiTheme.border.width.thin, " solid ").concat(borderColors.default);
54
54
  return {
55
- euiDataGrid: /*#__PURE__*/css("display:flex;flex-direction:column;align-items:stretch;", 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, "{", 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;"),
55
+ euiDataGrid: /*#__PURE__*/css("display:flex;flex-direction:column;align-items:stretch;", 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, "{", 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;"),
56
56
  cellPadding: {
57
57
  cellPadding: function cellPadding(size) {
58
58
  return /*#__PURE__*/css(".euiDataGridHeaderCell,.euiDataGridRowCell__content{padding:", _cellPadding[size], ";}.euiDataGridRowCell__content--lineCountHeight,.euiDataGridRowCell__content--autoBelowLineCountHeight{", highContrastModeStyles(euiThemeContext, {
@@ -6,7 +6,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
6
6
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
7
7
  import _inherits from "@babel/runtime/helpers/inherits";
8
8
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
9
- var _excluded = ["theme", "children", "className", "disabled", "checked", "isFocused", "showIcons", "toolTipContent", "toolTipProps", "style", "forwardRef"];
9
+ var _excluded = ["theme", "children", "className", "disabled", "checked", "isFocused", "showIcons", "toolTipContent", "toolTipProps", "style", "truncateContent", "forwardRef"];
10
10
  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; }
11
11
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
12
12
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
@@ -87,6 +87,16 @@ export var EuiFilterSelectItemClass = /*#__PURE__*/function (_Component) {
87
87
  }
88
88
  _inherits(EuiFilterSelectItemClass, _Component);
89
89
  return _createClass(EuiFilterSelectItemClass, [{
90
+ key: "componentDidUpdate",
91
+ value: function componentDidUpdate(prevProps) {
92
+ if (this.props.isFocused && !prevProps.isFocused) {
93
+ var _this$buttonRef, _this$buttonRef$scrol;
94
+ (_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, {
95
+ block: 'nearest'
96
+ });
97
+ }
98
+ }
99
+ }, {
90
100
  key: "render",
91
101
  value: function render() {
92
102
  var _this$props2 = this.props,
@@ -100,6 +110,7 @@ export var EuiFilterSelectItemClass = /*#__PURE__*/function (_Component) {
100
110
  toolTipContent = _this$props2.toolTipContent,
101
111
  toolTipProps = _this$props2.toolTipProps,
102
112
  style = _this$props2.style,
113
+ truncateContent = _this$props2.truncateContent,
103
114
  forwardRef = _this$props2.forwardRef,
104
115
  rest = _objectWithoutProperties(_this$props2, _excluded);
105
116
  var styles = euiFilterSelectItemStyles(theme);
@@ -148,7 +159,7 @@ export var EuiFilterSelectItemClass = /*#__PURE__*/function (_Component) {
148
159
  component: "span",
149
160
  responsive: false
150
161
  }, iconNode, ___EmotionJSX(EuiFlexItem, {
151
- className: "euiFilterSelectItem__content eui-textTruncate",
162
+ className: classNames('euiFilterSelectItem__content', this.props.truncateContent && 'eui-textTruncate'),
152
163
  component: "span"
153
164
  }, children)));
154
165
  return hasToolTip ? ___EmotionJSX(EuiToolTip, _extends({
@@ -167,6 +178,7 @@ export var EuiFilterSelectItemClass = /*#__PURE__*/function (_Component) {
167
178
  * @deprecated - Use EuiSelectable instead
168
179
  */
169
180
  _defineProperty(EuiFilterSelectItemClass, "defaultProps", {
170
- showIcons: true
181
+ showIcons: true,
182
+ truncateContent: true
171
183
  });
172
184
  export var EuiFilterSelectItem = withEuiTheme(EuiFilterSelectItemClass);
@@ -67,7 +67,7 @@ export var EuiFieldNumber = function EuiFieldNumber(props) {
67
67
  if (_inputRef.current) {
68
68
  checkNativeValidity(_inputRef.current);
69
69
  }
70
- }, [value, min, max, step, checkNativeValidity]);
70
+ }, [isInvalid, value, min, max, step, checkNativeValidity]);
71
71
  var classes = classNames('euiFieldNumber', className, {
72
72
  'euiFieldNumber-isLoading': isLoading
73
73
  });
@@ -22,6 +22,7 @@ export var euiFieldPasswordStyles = function euiFieldPasswordStyles(euiThemeCont
22
22
  return {
23
23
  euiFieldPassword: /*#__PURE__*/css(formStyles.shared, " &:invalid{", formStyles.invalid, ";}&:focus{", formStyles.focus, ";}&:disabled{", formStyles.disabled, ";}&[readOnly]{", formStyles.readOnly, ";}&:autofill{", formStyles.autoFill, ";};label:euiFieldPassword;"),
24
24
  // Only remove Edge's internal reveal button if we're providing a custom one
25
+ // This pseudo-element is still supported in Chromium-based Edge.
25
26
  withToggle: _ref,
26
27
  // Skip the css() on the default height to avoid generating a className
27
28
  uncompressed: formStyles.uncompressed,
@@ -172,7 +172,7 @@ export var euiFormControlInvalidStyles = function euiFormControlInvalidStyles(eu
172
172
  var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'formVariant');
173
173
  var form = euiFormVariables(euiThemeContext);
174
174
  var invalidColor = euiTheme.colors.danger;
175
- 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 ");
175
+ 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 ");
176
176
  };
177
177
  export var euiFormControlDisabledStyles = function euiFormControlDisabledStyles(euiThemeContext) {
178
178
  var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'formVariant');
@@ -241,7 +241,7 @@ export var euiFormControlShowBackgroundLine = function euiFormControlShowBackgro
241
241
  }), ");\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 ");
242
242
  };
243
243
  var euiPlaceholderPerBrowser = function euiPlaceholderPerBrowser(content) {
244
- 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");
244
+ return "\n &::-webkit-input-placeholder { ".concat(content, " }\n &::-moz-placeholder { ").concat(content, " }\n &:-moz-placeholder { ").concat(content, " }\n &::placeholder { ").concat(content, " }\n");
245
245
  };
246
246
 
247
247
  /**
@@ -73,7 +73,7 @@ export var euiFormControlLayoutSideNodeStyles = function euiFormControlLayoutSid
73
73
  var appendStyles = "\n position: relative;\n ".concat(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 ");
74
74
  var prependStyles = "\n position: relative;\n ".concat(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 ");
75
75
  return {
76
- euiFormControlLayout__side: /*#__PURE__*/css(logicalCSS('height', '100%'), " ", 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, ")){", logicalCSS('padding-left', euiTheme.size.s), ";}&:not(:has(> ", buttons, ":last-child, > *:last-child > ", buttons, ")){", logicalCSS('padding-right', euiTheme.size.s), ";};label:euiFormControlLayout__side;"),
76
+ euiFormControlLayout__side: /*#__PURE__*/css(logicalCSS('height', '100%'), " ", 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, ")){", logicalCSS('padding-left', euiTheme.size.s), ";}&:not(:has(> ", buttons, ":last-child, > *:last-child > ", buttons, ")){", logicalCSS('padding-right', euiTheme.size.s), ";};label:euiFormControlLayout__side;"),
77
77
  append: /*#__PURE__*/css(highContrastModeStyles(euiThemeContext, {
78
78
  none: "\n ".concat(isRefreshVariant && appendStyles, "\n "),
79
79
  preferred: logicalCSS('border-left', euiTheme.border.thin)
@@ -58,7 +58,7 @@ export var euiRangeVariables = function euiRangeVariables(euiThemeContext) {
58
58
  };
59
59
  };
60
60
  export var euiRangeTrackPerBrowser = function euiRangeTrackPerBrowser(content) {
61
- 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 ");
61
+ return "\n &::-webkit-slider-runnable-track { ".concat(content, "; }\n &::-moz-range-track { ").concat(content, "; }\n ");
62
62
  };
63
63
  export var euiRangeThumbBorder = function euiRangeThumbBorder(euiThemeContext) {
64
64
  var range = euiRangeVariables(euiThemeContext);
@@ -92,7 +92,7 @@ export var euiRangeThumbStyle = function euiRangeThumbStyle(euiThemeContext) {
92
92
  });
93
93
  };
94
94
  export var euiRangeThumbPerBrowser = function euiRangeThumbPerBrowser(content) {
95
- return "\n &::-webkit-slider-thumb { ".concat(content, "; }\n &::-moz-range-thumb { ").concat(content, "; }\n &::-ms-thumb {").concat(content, "; }\n ");
95
+ return "\n &::-webkit-slider-thumb { ".concat(content, "; }\n &::-moz-range-thumb { ").concat(content, "; }\n ");
96
96
  };
97
97
  export var euiRangeThumbFocus = function euiRangeThumbFocus(euiThemeContext) {
98
98
  var range = euiRangeVariables(euiThemeContext);
@@ -0,0 +1,36 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ var _excluded = ["title", "titleId"];
4
+ /*
5
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
6
+ * or more contributor license agreements. Licensed under the Elastic License
7
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
8
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
9
+ * Side Public License, v 1.
10
+ */
11
+
12
+ // THIS IS A GENERATED FILE. DO NOT MODIFY MANUALLY. @see scripts/compile-icons.js
13
+
14
+ import * as React from 'react';
15
+ import { jsx as ___EmotionJSX } from "@emotion/react";
16
+ var EuiIconThumbDown = function EuiIconThumbDown(_ref) {
17
+ var title = _ref.title,
18
+ titleId = _ref.titleId,
19
+ props = _objectWithoutProperties(_ref, _excluded);
20
+ return ___EmotionJSX("svg", _extends({
21
+ xmlns: "http://www.w3.org/2000/svg",
22
+ width: 16,
23
+ height: 16,
24
+ viewBox: "0 0 16 16",
25
+ "aria-labelledby": titleId
26
+ }, props), title ? ___EmotionJSX("title", {
27
+ id: titleId
28
+ }, title) : null, ___EmotionJSX("path", {
29
+ d: "M12 7h1v2h-1V7Z"
30
+ }), ___EmotionJSX("path", {
31
+ fillRule: "evenodd",
32
+ 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",
33
+ clipRule: "evenodd"
34
+ }));
35
+ };
36
+ export var icon = EuiIconThumbDown;
@@ -0,0 +1,36 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ var _excluded = ["title", "titleId"];
4
+ /*
5
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
6
+ * or more contributor license agreements. Licensed under the Elastic License
7
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
8
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
9
+ * Side Public License, v 1.
10
+ */
11
+
12
+ // THIS IS A GENERATED FILE. DO NOT MODIFY MANUALLY. @see scripts/compile-icons.js
13
+
14
+ import * as React from 'react';
15
+ import { jsx as ___EmotionJSX } from "@emotion/react";
16
+ var EuiIconThumbUp = function EuiIconThumbUp(_ref) {
17
+ var title = _ref.title,
18
+ titleId = _ref.titleId,
19
+ props = _objectWithoutProperties(_ref, _excluded);
20
+ return ___EmotionJSX("svg", _extends({
21
+ xmlns: "http://www.w3.org/2000/svg",
22
+ width: 16,
23
+ height: 16,
24
+ viewBox: "0 0 16 16",
25
+ "aria-labelledby": titleId
26
+ }, props), title ? ___EmotionJSX("title", {
27
+ id: titleId
28
+ }, title) : null, ___EmotionJSX("path", {
29
+ d: "M4 13H3v-2h1v2Z"
30
+ }), ___EmotionJSX("path", {
31
+ fillRule: "evenodd",
32
+ d: "M8.197 1.787a1.135 1.135 0 0 1 1.89-.438 3.222 3.222 0 0 1 .656 3.519L10.26 6h2.738a2 2 0 0 1 1.977 2.308l-.716 4.578A2.5 2.5 0 0 1 11.788 15H8.803a6.457 6.457 0 0 1-2.86-.67A.999.999 0 0 1 5 15H2a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h3a1 1 0 0 1 .943.67A5.012 5.012 0 0 0 7.73 3.206l.467-1.42ZM2 14h3V6H2v8ZM9.372 2.048a.135.135 0 0 0-.225.051L8.68 3.52A6.012 6.012 0 0 1 6 6.827v6.392c.846.507 1.813.78 2.803.78h2.985a1.5 1.5 0 0 0 1.482-1.269l.715-4.577A1 1 0 0 0 12.997 7H9.5a.5.5 0 0 1-.46-.697l.784-1.829a2.222 2.222 0 0 0-.452-2.426Z",
33
+ clipRule: "evenodd"
34
+ }));
35
+ };
36
+ export var icon = EuiIconThumbUp;