@elastic/eui 77.0.0 → 77.1.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 (312) hide show
  1. package/dist/eui_theme_dark.css +22 -51
  2. package/dist/eui_theme_dark.min.css +1 -1
  3. package/dist/eui_theme_light.css +22 -51
  4. package/dist/eui_theme_light.min.css +1 -1
  5. package/es/components/accordion/accordion.a11y.js +3 -1
  6. package/es/components/accordion/accordion.js +4 -2
  7. package/es/components/basic_table/table.a11y.js +3 -1
  8. package/es/components/breadcrumbs/breadcrumbs.a11y.js +3 -1
  9. package/es/components/card/card.a11y.js +3 -1
  10. package/es/components/color_picker/color_picker.a11y.js +3 -1
  11. package/es/components/combo_box/combo_box.a11y.js +3 -1
  12. package/es/components/combo_box/combo_box.js +2 -21
  13. package/es/components/combo_box/combo_box_input/combo_box_input.js +66 -36
  14. package/es/components/combo_box/combo_box_options_list/combo_box_options_list.js +1 -1
  15. package/es/components/context_menu/context_menu_panel.a11y.js +3 -1
  16. package/es/components/control_bar/control_bar.a11y.js +3 -1
  17. package/es/components/copy/copy.a11y.js +6 -5
  18. package/es/components/datagrid/data_grid.a11y.js +3 -1
  19. package/es/components/date_picker/date_picker.a11y.js +3 -1
  20. package/es/components/date_picker/date_picker.js +148 -155
  21. package/es/components/date_picker/date_picker_range.js +2 -2
  22. package/es/components/date_picker/super_date_picker/super_date_picker.a11y.js +3 -1
  23. package/es/components/delay_hide/delay_hide.a11y.js +9 -9
  24. package/es/components/delay_render/delay_render.a11y.js +9 -9
  25. package/es/components/drag_and_drop/drag_and_drop.a11y.js +3 -2
  26. package/es/components/empty_prompt/empty_prompt.a11y.js +8 -14
  27. package/es/components/error_boundary/error_boundary.a11y.js +3 -1
  28. package/es/components/expression/expression.a11y.js +3 -1
  29. package/es/components/filter_group/filter_group.a11y.js +4 -3
  30. package/es/components/flyout/flyout.a11y.js +3 -1
  31. package/es/components/focus_trap/focus_trap.a11y.js +3 -1
  32. package/es/components/form/checkbox/checkbox_group.a11y.js +3 -1
  33. package/es/components/form/file_picker/file_picker.js +4 -2
  34. package/es/components/form/radio/radio_group.a11y.js +4 -5
  35. package/es/components/form/range/range.a11y.js +3 -1
  36. package/es/components/form/switch/switch.a11y.js +4 -5
  37. package/es/components/form/text_area/text_area.js +11 -3
  38. package/es/components/form/validatable_control/index.js +1 -1
  39. package/es/components/form/validatable_control/validatable_control.js +49 -13
  40. package/es/components/header/header.a11y.js +3 -1
  41. package/es/components/icon/icon_ML.a11y.js +3 -1
  42. package/es/components/icon/icon_apps.a11y.js +3 -1
  43. package/es/components/icon/icon_editor.a11y.js +3 -1
  44. package/es/components/icon/icon_elastic.a11y.js +3 -1
  45. package/es/components/icon/icon_glyphs.a11y.js +3 -1
  46. package/es/components/icon/icon_tokens.a11y.js +3 -1
  47. package/es/components/image/image.a11y.js +3 -1
  48. package/es/components/index.js +1 -0
  49. package/es/components/inline_edit/index.js +10 -0
  50. package/es/components/inline_edit/inline_edit.styles.js +15 -0
  51. package/es/components/inline_edit/inline_edit_form.js +190 -0
  52. package/es/components/inline_edit/inline_edit_text.js +97 -0
  53. package/es/components/inline_edit/inline_edit_title.js +105 -0
  54. package/es/components/key_pad_menu/key_pad_menu.a11y.js +3 -1
  55. package/es/components/modal/modal.a11y.js +3 -1
  56. package/es/components/notification/notification_event.a11y.js +3 -1
  57. package/es/components/page/page_header/page_header.a11y.js +3 -1
  58. package/es/components/pagination/pagination.a11y.js +3 -1
  59. package/es/components/popover/popover.a11y.js +3 -1
  60. package/es/components/popover/popover_footer.js +4 -4
  61. package/es/components/popover/popover_footer.styles.js +16 -5
  62. package/es/components/popover/popover_panel/_popover_panel.js +8 -5
  63. package/es/components/portal/portal.a11y.js +3 -1
  64. package/es/components/progress/progress.a11y.js +3 -1
  65. package/es/components/resizable_container/resizable_container.a11y.js +3 -1
  66. package/es/components/search_bar/search_bar.a11y.js +8 -7
  67. package/es/components/selectable/selectable.a11y.js +3 -1
  68. package/es/components/side_nav/side_nav.a11y.js +3 -1
  69. package/es/components/tabs/tabs.a11y.js +3 -1
  70. package/es/components/tree_view/tree_view.a11y.js +3 -1
  71. package/eui.d.ts +161 -37
  72. package/i18ntokens.json +40 -4
  73. package/lib/components/accordion/accordion.a11y.js +3 -1
  74. package/lib/components/accordion/accordion.js +4 -2
  75. package/lib/components/basic_table/table.a11y.js +3 -1
  76. package/lib/components/breadcrumbs/breadcrumbs.a11y.js +3 -1
  77. package/lib/components/combo_box/combo_box.js +2 -21
  78. package/lib/components/combo_box/combo_box_input/combo_box_input.js +66 -36
  79. package/lib/components/combo_box/combo_box_options_list/combo_box_options_list.js +1 -1
  80. package/lib/components/context_menu/context_menu_panel.a11y.js +3 -1
  81. package/lib/components/copy/copy.a11y.js +3 -4
  82. package/lib/components/date_picker/date_picker.js +147 -153
  83. package/lib/components/date_picker/date_picker_range.js +2 -2
  84. package/lib/components/delay_hide/delay_hide.a11y.js +6 -8
  85. package/lib/components/delay_render/delay_render.a11y.js +6 -8
  86. package/lib/components/drag_and_drop/drag_and_drop.a11y.js +0 -1
  87. package/lib/components/empty_prompt/empty_prompt.a11y.js +8 -14
  88. package/lib/components/error_boundary/error_boundary.a11y.js +3 -1
  89. package/lib/components/filter_group/filter_group.a11y.js +7 -8
  90. package/lib/components/form/file_picker/file_picker.js +4 -2
  91. package/lib/components/form/radio/radio_group.a11y.js +1 -4
  92. package/lib/components/form/switch/switch.a11y.js +1 -4
  93. package/lib/components/form/text_area/text_area.js +11 -3
  94. package/lib/components/form/validatable_control/index.js +6 -0
  95. package/lib/components/form/validatable_control/validatable_control.js +51 -14
  96. package/lib/components/icon/icon_ML.a11y.js +3 -1
  97. package/lib/components/icon/icon_apps.a11y.js +3 -1
  98. package/lib/components/icon/icon_editor.a11y.js +3 -1
  99. package/lib/components/icon/icon_elastic.a11y.js +3 -1
  100. package/lib/components/icon/icon_glyphs.a11y.js +3 -1
  101. package/lib/components/icon/icon_tokens.a11y.js +3 -1
  102. package/lib/components/image/image.a11y.js +3 -1
  103. package/lib/components/index.js +11 -0
  104. package/lib/components/inline_edit/index.js +19 -0
  105. package/lib/components/inline_edit/inline_edit.styles.js +22 -0
  106. package/lib/components/inline_edit/inline_edit_form.js +193 -0
  107. package/lib/components/inline_edit/inline_edit_text.js +97 -0
  108. package/lib/components/inline_edit/inline_edit_title.js +106 -0
  109. package/lib/components/page/page_header/page_header.a11y.js +3 -1
  110. package/lib/components/popover/popover_footer.js +4 -4
  111. package/lib/components/popover/popover_footer.styles.js +19 -7
  112. package/lib/components/popover/popover_panel/_popover_panel.js +7 -4
  113. package/lib/components/resizable_container/resizable_container.a11y.js +3 -1
  114. package/lib/components/search_bar/search_bar.a11y.js +5 -6
  115. package/lib/components/tree_view/tree_view.a11y.js +3 -1
  116. package/optimize/es/components/accordion/accordion.a11y.js +3 -1
  117. package/optimize/es/components/accordion/accordion.js +4 -2
  118. package/optimize/es/components/basic_table/table.a11y.js +3 -1
  119. package/optimize/es/components/breadcrumbs/breadcrumbs.a11y.js +3 -1
  120. package/optimize/es/components/card/card.a11y.js +3 -1
  121. package/optimize/es/components/color_picker/color_picker.a11y.js +3 -1
  122. package/optimize/es/components/combo_box/combo_box.a11y.js +3 -1
  123. package/optimize/es/components/combo_box/combo_box.js +2 -21
  124. package/optimize/es/components/combo_box/combo_box_input/combo_box_input.js +63 -34
  125. package/optimize/es/components/combo_box/combo_box_options_list/combo_box_options_list.js +1 -1
  126. package/optimize/es/components/context_menu/context_menu_panel.a11y.js +3 -1
  127. package/optimize/es/components/control_bar/control_bar.a11y.js +3 -1
  128. package/optimize/es/components/copy/copy.a11y.js +6 -5
  129. package/optimize/es/components/datagrid/data_grid.a11y.js +3 -1
  130. package/optimize/es/components/date_picker/date_picker.a11y.js +3 -1
  131. package/optimize/es/components/date_picker/date_picker.js +142 -148
  132. package/optimize/es/components/date_picker/date_picker_range.js +1 -1
  133. package/optimize/es/components/date_picker/super_date_picker/super_date_picker.a11y.js +3 -1
  134. package/optimize/es/components/delay_hide/delay_hide.a11y.js +9 -9
  135. package/optimize/es/components/delay_render/delay_render.a11y.js +9 -9
  136. package/optimize/es/components/drag_and_drop/drag_and_drop.a11y.js +3 -2
  137. package/optimize/es/components/empty_prompt/empty_prompt.a11y.js +8 -14
  138. package/optimize/es/components/error_boundary/error_boundary.a11y.js +3 -1
  139. package/optimize/es/components/expression/expression.a11y.js +3 -1
  140. package/optimize/es/components/filter_group/filter_group.a11y.js +4 -3
  141. package/optimize/es/components/flyout/flyout.a11y.js +3 -1
  142. package/optimize/es/components/focus_trap/focus_trap.a11y.js +3 -1
  143. package/optimize/es/components/form/checkbox/checkbox_group.a11y.js +3 -1
  144. package/optimize/es/components/form/file_picker/file_picker.js +4 -2
  145. package/optimize/es/components/form/radio/radio_group.a11y.js +4 -5
  146. package/optimize/es/components/form/range/range.a11y.js +3 -1
  147. package/optimize/es/components/form/switch/switch.a11y.js +4 -5
  148. package/optimize/es/components/form/text_area/text_area.js +10 -3
  149. package/optimize/es/components/form/validatable_control/index.js +1 -1
  150. package/optimize/es/components/form/validatable_control/validatable_control.js +49 -9
  151. package/optimize/es/components/header/header.a11y.js +3 -1
  152. package/optimize/es/components/icon/icon_ML.a11y.js +3 -1
  153. package/optimize/es/components/icon/icon_apps.a11y.js +3 -1
  154. package/optimize/es/components/icon/icon_editor.a11y.js +3 -1
  155. package/optimize/es/components/icon/icon_elastic.a11y.js +3 -1
  156. package/optimize/es/components/icon/icon_glyphs.a11y.js +3 -1
  157. package/optimize/es/components/icon/icon_tokens.a11y.js +3 -1
  158. package/optimize/es/components/image/image.a11y.js +3 -1
  159. package/optimize/es/components/index.js +1 -0
  160. package/optimize/es/components/inline_edit/index.js +10 -0
  161. package/optimize/es/components/inline_edit/inline_edit.styles.js +15 -0
  162. package/optimize/es/components/inline_edit/inline_edit_form.js +133 -0
  163. package/optimize/es/components/inline_edit/inline_edit_text.js +52 -0
  164. package/optimize/es/components/inline_edit/inline_edit_title.js +56 -0
  165. package/optimize/es/components/key_pad_menu/key_pad_menu.a11y.js +3 -1
  166. package/optimize/es/components/modal/modal.a11y.js +3 -1
  167. package/optimize/es/components/notification/notification_event.a11y.js +3 -1
  168. package/optimize/es/components/page/page_header/page_header.a11y.js +3 -1
  169. package/optimize/es/components/pagination/pagination.a11y.js +3 -1
  170. package/optimize/es/components/popover/popover.a11y.js +3 -1
  171. package/optimize/es/components/popover/popover_footer.js +4 -4
  172. package/optimize/es/components/popover/popover_footer.styles.js +16 -5
  173. package/optimize/es/components/popover/popover_panel/_popover_panel.js +8 -5
  174. package/optimize/es/components/portal/portal.a11y.js +3 -1
  175. package/optimize/es/components/progress/progress.a11y.js +3 -1
  176. package/optimize/es/components/resizable_container/resizable_container.a11y.js +3 -1
  177. package/optimize/es/components/search_bar/search_bar.a11y.js +8 -7
  178. package/optimize/es/components/selectable/selectable.a11y.js +3 -1
  179. package/optimize/es/components/side_nav/side_nav.a11y.js +3 -1
  180. package/optimize/es/components/tabs/tabs.a11y.js +3 -1
  181. package/optimize/es/components/tree_view/tree_view.a11y.js +3 -1
  182. package/optimize/lib/components/accordion/accordion.a11y.js +3 -1
  183. package/optimize/lib/components/accordion/accordion.js +4 -2
  184. package/optimize/lib/components/basic_table/table.a11y.js +3 -1
  185. package/optimize/lib/components/breadcrumbs/breadcrumbs.a11y.js +3 -1
  186. package/optimize/lib/components/card/card.a11y.js +3 -1
  187. package/optimize/lib/components/color_picker/color_picker.a11y.js +3 -1
  188. package/optimize/lib/components/combo_box/combo_box.a11y.js +3 -1
  189. package/optimize/lib/components/combo_box/combo_box.js +2 -21
  190. package/optimize/lib/components/combo_box/combo_box_input/combo_box_input.js +63 -34
  191. package/optimize/lib/components/combo_box/combo_box_options_list/combo_box_options_list.js +1 -1
  192. package/optimize/lib/components/context_menu/context_menu_panel.a11y.js +3 -1
  193. package/optimize/lib/components/control_bar/control_bar.a11y.js +3 -1
  194. package/optimize/lib/components/copy/copy.a11y.js +6 -5
  195. package/optimize/lib/components/datagrid/data_grid.a11y.js +3 -1
  196. package/optimize/lib/components/date_picker/date_picker.a11y.js +3 -1
  197. package/optimize/lib/components/date_picker/date_picker.js +141 -147
  198. package/optimize/lib/components/date_picker/date_picker_range.js +1 -1
  199. package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.a11y.js +3 -1
  200. package/optimize/lib/components/delay_hide/delay_hide.a11y.js +9 -9
  201. package/optimize/lib/components/delay_render/delay_render.a11y.js +9 -9
  202. package/optimize/lib/components/drag_and_drop/drag_and_drop.a11y.js +3 -2
  203. package/optimize/lib/components/empty_prompt/empty_prompt.a11y.js +8 -14
  204. package/optimize/lib/components/error_boundary/error_boundary.a11y.js +3 -1
  205. package/optimize/lib/components/filter_group/filter_group.a11y.js +10 -9
  206. package/optimize/lib/components/focus_trap/focus_trap.a11y.js +3 -1
  207. package/optimize/lib/components/form/file_picker/file_picker.js +4 -2
  208. package/optimize/lib/components/form/radio/radio_group.a11y.js +4 -5
  209. package/optimize/lib/components/form/range/range.a11y.js +3 -1
  210. package/optimize/lib/components/form/switch/switch.a11y.js +4 -5
  211. package/optimize/lib/components/form/text_area/text_area.js +10 -3
  212. package/optimize/lib/components/form/validatable_control/index.js +6 -0
  213. package/optimize/lib/components/form/validatable_control/validatable_control.js +52 -12
  214. package/optimize/lib/components/header/header.a11y.js +3 -1
  215. package/optimize/lib/components/icon/icon_ML.a11y.js +3 -1
  216. package/optimize/lib/components/icon/icon_apps.a11y.js +3 -1
  217. package/optimize/lib/components/icon/icon_editor.a11y.js +3 -1
  218. package/optimize/lib/components/icon/icon_elastic.a11y.js +3 -1
  219. package/optimize/lib/components/icon/icon_glyphs.a11y.js +3 -1
  220. package/optimize/lib/components/icon/icon_tokens.a11y.js +3 -1
  221. package/optimize/lib/components/image/image.a11y.js +3 -1
  222. package/optimize/lib/components/index.js +11 -0
  223. package/optimize/lib/components/inline_edit/index.js +19 -0
  224. package/optimize/lib/components/inline_edit/inline_edit.styles.js +22 -0
  225. package/optimize/lib/components/inline_edit/inline_edit_form.js +144 -0
  226. package/optimize/lib/components/inline_edit/inline_edit_text.js +52 -0
  227. package/optimize/lib/components/inline_edit/inline_edit_title.js +57 -0
  228. package/optimize/lib/components/key_pad_menu/key_pad_menu.a11y.js +3 -1
  229. package/optimize/lib/components/modal/modal.a11y.js +3 -1
  230. package/optimize/lib/components/notification/notification_event.a11y.js +3 -1
  231. package/optimize/lib/components/page/page_header/page_header.a11y.js +3 -1
  232. package/optimize/lib/components/pagination/pagination.a11y.js +3 -1
  233. package/optimize/lib/components/popover/popover.a11y.js +3 -1
  234. package/optimize/lib/components/popover/popover_footer.js +4 -4
  235. package/optimize/lib/components/popover/popover_footer.styles.js +19 -7
  236. package/optimize/lib/components/popover/popover_panel/_popover_panel.js +7 -4
  237. package/optimize/lib/components/portal/portal.a11y.js +3 -1
  238. package/optimize/lib/components/progress/progress.a11y.js +3 -1
  239. package/optimize/lib/components/resizable_container/resizable_container.a11y.js +3 -1
  240. package/optimize/lib/components/search_bar/search_bar.a11y.js +8 -7
  241. package/optimize/lib/components/selectable/selectable.a11y.js +3 -1
  242. package/optimize/lib/components/side_nav/side_nav.a11y.js +3 -1
  243. package/optimize/lib/components/tree_view/tree_view.a11y.js +3 -1
  244. package/package.json +1 -1
  245. package/src/components/combo_box/_combo_box.scss +2 -38
  246. package/src/components/date_picker/_date_picker_range.scss +1 -1
  247. package/src/components/form/field_text/_field_text.scss +0 -7
  248. package/src/components/form/file_picker/_file_picker.scss +3 -2
  249. package/src/components/form/form_control_layout/_form_control_layout.scss +7 -2
  250. package/src/components/form/text_area/_text_area.scss +9 -0
  251. package/test-env/components/accordion/accordion.a11y.js +3 -1
  252. package/test-env/components/accordion/accordion.js +4 -2
  253. package/test-env/components/basic_table/table.a11y.js +3 -1
  254. package/test-env/components/breadcrumbs/breadcrumbs.a11y.js +3 -1
  255. package/test-env/components/card/card.a11y.js +3 -1
  256. package/test-env/components/color_picker/color_picker.a11y.js +3 -1
  257. package/test-env/components/combo_box/combo_box.a11y.js +3 -1
  258. package/test-env/components/combo_box/combo_box.js +2 -21
  259. package/test-env/components/combo_box/combo_box_input/combo_box_input.js +66 -36
  260. package/test-env/components/combo_box/combo_box_options_list/combo_box_options_list.js +1 -1
  261. package/test-env/components/context_menu/context_menu_panel.a11y.js +3 -1
  262. package/test-env/components/control_bar/control_bar.a11y.js +3 -1
  263. package/test-env/components/copy/copy.a11y.js +6 -5
  264. package/test-env/components/datagrid/data_grid.a11y.js +3 -1
  265. package/test-env/components/date_picker/date_picker.a11y.js +3 -1
  266. package/test-env/components/date_picker/date_picker.js +141 -147
  267. package/test-env/components/date_picker/date_picker_range.js +2 -2
  268. package/test-env/components/date_picker/super_date_picker/super_date_picker.a11y.js +3 -1
  269. package/test-env/components/delay_hide/delay_hide.a11y.js +9 -9
  270. package/test-env/components/delay_render/delay_render.a11y.js +9 -9
  271. package/test-env/components/drag_and_drop/drag_and_drop.a11y.js +3 -2
  272. package/test-env/components/empty_prompt/empty_prompt.a11y.js +8 -14
  273. package/test-env/components/error_boundary/error_boundary.a11y.js +3 -1
  274. package/test-env/components/filter_group/filter_group.a11y.js +10 -9
  275. package/test-env/components/focus_trap/focus_trap.a11y.js +3 -1
  276. package/test-env/components/form/file_picker/file_picker.js +4 -2
  277. package/test-env/components/form/radio/radio_group.a11y.js +4 -5
  278. package/test-env/components/form/range/range.a11y.js +3 -1
  279. package/test-env/components/form/switch/switch.a11y.js +4 -5
  280. package/test-env/components/form/text_area/text_area.js +11 -3
  281. package/test-env/components/form/validatable_control/index.js +6 -0
  282. package/test-env/components/form/validatable_control/validatable_control.js +51 -14
  283. package/test-env/components/header/header.a11y.js +3 -1
  284. package/test-env/components/icon/icon_ML.a11y.js +3 -1
  285. package/test-env/components/icon/icon_apps.a11y.js +3 -1
  286. package/test-env/components/icon/icon_editor.a11y.js +3 -1
  287. package/test-env/components/icon/icon_elastic.a11y.js +3 -1
  288. package/test-env/components/icon/icon_glyphs.a11y.js +3 -1
  289. package/test-env/components/icon/icon_tokens.a11y.js +3 -1
  290. package/test-env/components/image/image.a11y.js +3 -1
  291. package/test-env/components/index.js +11 -0
  292. package/test-env/components/inline_edit/index.js +19 -0
  293. package/test-env/components/inline_edit/inline_edit.styles.js +22 -0
  294. package/test-env/components/inline_edit/inline_edit_form.js +196 -0
  295. package/test-env/components/inline_edit/inline_edit_text.js +96 -0
  296. package/test-env/components/inline_edit/inline_edit_title.js +105 -0
  297. package/test-env/components/key_pad_menu/key_pad_menu.a11y.js +3 -1
  298. package/test-env/components/modal/modal.a11y.js +3 -1
  299. package/test-env/components/notification/notification_event.a11y.js +3 -1
  300. package/test-env/components/page/page_header/page_header.a11y.js +3 -1
  301. package/test-env/components/pagination/pagination.a11y.js +3 -1
  302. package/test-env/components/popover/popover.a11y.js +3 -1
  303. package/test-env/components/popover/popover_footer.js +4 -4
  304. package/test-env/components/popover/popover_footer.styles.js +19 -7
  305. package/test-env/components/popover/popover_panel/_popover_panel.js +7 -4
  306. package/test-env/components/portal/portal.a11y.js +3 -1
  307. package/test-env/components/progress/progress.a11y.js +3 -1
  308. package/test-env/components/resizable_container/resizable_container.a11y.js +3 -1
  309. package/test-env/components/search_bar/search_bar.a11y.js +8 -7
  310. package/test-env/components/selectable/selectable.a11y.js +3 -1
  311. package/test-env/components/side_nav/side_nav.a11y.js +3 -1
  312. package/test-env/components/tree_view/tree_view.a11y.js +3 -1
package/eui.d.ts CHANGED
@@ -2582,7 +2582,8 @@ declare module '@elastic/eui/src/components/button/button_empty/button_empty' {
2582
2582
  * Object of props passed to the <span/> wrapping the button's content
2583
2583
  */
2584
2584
  contentProps?: CommonProps & EuiButtonContentType;
2585
- } type EuiButtonEmptyPropsForAnchor = PropsForAnchor<CommonEuiButtonEmptyProps>; type EuiButtonEmptyPropsForButton = PropsForButton<CommonEuiButtonEmptyProps>;
2585
+ } type EuiButtonEmptyPropsForAnchor = PropsForAnchor<CommonEuiButtonEmptyProps>;
2586
+ export type EuiButtonEmptyPropsForButton = PropsForButton<CommonEuiButtonEmptyProps>;
2586
2587
  export type EuiButtonEmptyProps = ExclusiveUnion<EuiButtonEmptyPropsForAnchor, EuiButtonEmptyPropsForButton>;
2587
2588
  export const EuiButtonEmpty: FunctionComponent<EuiButtonEmptyProps>;
2588
2589
  export {};
@@ -3393,19 +3394,30 @@ declare module '@elastic/eui/src/components/form/validatable_control/validatable
3393
3394
  export interface ReactElementWithRef extends ReactElement {
3394
3395
  ref?: Ref<HTMLConstraintValidityElement>;
3395
3396
  }
3397
+ /**
3398
+ * The `EuiValidatableControl` component should be used in scenarios where
3399
+ * we can render the validated `<input>` as its direct child.
3400
+ */
3396
3401
  export interface EuiValidatableControlProps {
3397
3402
  isInvalid?: boolean;
3398
- /**
3399
- * ReactNode to render as this component's content
3400
- */
3401
3403
  children: ReactElementWithRef;
3402
3404
  }
3403
3405
  export const EuiValidatableControl: FunctionComponent<CommonProps & EuiValidatableControlProps>;
3406
+ /**
3407
+ * The `UseEuiValidatableControl` hook should be used in scenarios where
3408
+ * we *cannot* control where the validated `<input>` is rendered (e.g., ReactDatePicker)
3409
+ * and instead need to access the input via a ref and pass the element in directly
3410
+ */
3411
+ export interface UseEuiValidatableControlProps {
3412
+ isInvalid?: boolean;
3413
+ controlEl: HTMLInputElement | HTMLConstraintValidityElement | null;
3414
+ }
3415
+ export const useEuiValidatableControl: ({ isInvalid, controlEl, }: UseEuiValidatableControlProps) => void;
3404
3416
 
3405
3417
  }
3406
3418
  declare module '@elastic/eui/src/components/form/validatable_control' {
3407
- export type { EuiValidatableControlProps } from '@elastic/eui/src/components/form/validatable_control/validatable_control';
3408
- export { EuiValidatableControl } from '@elastic/eui/src/components/form/validatable_control/validatable_control';
3419
+ export type { EuiValidatableControlProps, UseEuiValidatableControlProps, } from '@elastic/eui/src/components/form/validatable_control/validatable_control';
3420
+ export { EuiValidatableControl, useEuiValidatableControl, } from '@elastic/eui/src/components/form/validatable_control/validatable_control';
3409
3421
 
3410
3422
  }
3411
3423
  declare module '@elastic/eui/src/components/form/form_control_layout/_num_icons' {
@@ -4683,10 +4695,9 @@ declare module '@elastic/eui/src/components/popover/popover_panel/_popover_panel
4683
4695
  import { EuiPaddingSize } from '@elastic/eui/src/global_styling';
4684
4696
  import { _EuiPanelDivlike } from '@elastic/eui/src/components/panel/panel';
4685
4697
  import { EuiPopoverArrowPositions } from '@elastic/eui/src/components/popover/popover_arrow';
4686
- interface ContextShape {
4698
+ export const EuiPopoverPanelContext: React.Context<{
4687
4699
  paddingSize: EuiPaddingSize;
4688
- }
4689
- export const EuiPopoverPanelContext: React.Context<ContextShape>;
4700
+ }>;
4690
4701
  export type EuiPopoverPanelProps = _EuiPanelDivlike; type EuiPopoverPanelInternalProps = {
4691
4702
  isOpen?: boolean;
4692
4703
  isAttached?: boolean;
@@ -5034,9 +5045,18 @@ declare module '@elastic/eui/src/components/popover/popover_title' {
5034
5045
  declare module '@elastic/eui/src/components/popover/popover_footer.styles' {
5035
5046
  import { EuiPaddingSize } from '@elastic/eui/src/global_styling';
5036
5047
  import { UseEuiTheme } from '@elastic/eui/src/services';
5037
- export const euiPopoverFooterStyles: (euiThemeContext: UseEuiTheme, panelPadding: EuiPaddingSize) => {
5048
+ export const euiPopoverFooterStyles: (euiThemeContext: UseEuiTheme) => {
5038
5049
  euiPopoverFooter: import("@emotion/utils").SerializedStyles;
5050
+ panelPaddingSizes: {
5051
+ none: import("@emotion/utils").SerializedStyles;
5052
+ xs: import("@emotion/utils").SerializedStyles;
5053
+ s: import("@emotion/utils").SerializedStyles;
5054
+ m: import("@emotion/utils").SerializedStyles;
5055
+ l: import("@emotion/utils").SerializedStyles;
5056
+ xl: import("@emotion/utils").SerializedStyles;
5057
+ };
5039
5058
  };
5059
+ export const panelPaddingOffset: (euiThemeContext: UseEuiTheme, size: EuiPaddingSize) => string;
5040
5060
 
5041
5061
  }
5042
5062
  declare module '@elastic/eui/src/components/popover/popover_footer' {
@@ -6395,6 +6415,7 @@ declare module '@elastic/eui/src/components/form/text_area/text_area' {
6395
6415
  import { TextareaHTMLAttributes, Ref, FunctionComponent } from 'react';
6396
6416
  import { CommonProps } from '@elastic/eui/src/components/common';
6397
6417
  export type EuiTextAreaProps = TextareaHTMLAttributes<HTMLTextAreaElement> & CommonProps & {
6418
+ isLoading?: boolean;
6398
6419
  isInvalid?: boolean;
6399
6420
  /**
6400
6421
  * Expand to fill 100% of the parent.
@@ -10381,12 +10402,12 @@ declare module '@elastic/eui/src/components/combo_box/combo_box_input/combo_box_
10381
10402
 
10382
10403
  }
10383
10404
  declare module '@elastic/eui/src/components/combo_box/combo_box_input/combo_box_input' {
10384
- import { ChangeEventHandler, Component, FocusEventHandler, RefCallback } from 'react';
10405
+ import { Component, ChangeEventHandler, FocusEventHandler, KeyboardEventHandler, RefCallback } from 'react';
10385
10406
  import AutosizeInput from 'react-input-autosize';
10386
- import { EuiFormControlLayoutProps } from '@elastic/eui/src/components/form/form_control_layout';
10407
+ import { CommonProps } from '@elastic/eui/src/components/common';
10387
10408
  import { htmlIdGenerator } from '@elastic/eui/src/services';
10409
+ import { EuiFormControlLayoutProps } from '@elastic/eui/src/components/form/form_control_layout';
10388
10410
  import { EuiComboBoxOptionOption, EuiComboBoxSingleSelectionShape, OptionHandler, UpdatePositionHandler } from '@elastic/eui/src/components/combo_box/types';
10389
- import { CommonProps } from '@elastic/eui/src/components/common';
10390
10411
  export interface EuiComboBoxInputProps<T> extends CommonProps {
10391
10412
  autoSizeInputRef?: RefCallback<AutosizeInput & HTMLInputElement>;
10392
10413
  compressed: boolean;
@@ -10405,11 +10426,11 @@ declare module '@elastic/eui/src/components/combo_box/combo_box_input/combo_box_
10405
10426
  onCloseListClick: () => void;
10406
10427
  onFocus: FocusEventHandler<HTMLInputElement>;
10407
10428
  onOpenListClick: () => void;
10408
- onRemoveOption?: OptionHandler<T>;
10429
+ onRemoveOption: OptionHandler<T>;
10409
10430
  placeholder?: string;
10410
10431
  rootId: ReturnType<typeof htmlIdGenerator>;
10411
10432
  searchValue: string;
10412
- selectedOptions?: Array<EuiComboBoxOptionOption<T>>;
10433
+ selectedOptions: Array<EuiComboBoxOptionOption<T>>;
10413
10434
  singleSelection?: boolean | EuiComboBoxSingleSelectionShape;
10414
10435
  toggleButtonRef?: RefCallback<HTMLButtonElement | HTMLSpanElement>;
10415
10436
  updatePosition: UpdatePositionHandler;
@@ -10417,6 +10438,7 @@ declare module '@elastic/eui/src/components/combo_box/combo_box_input/combo_box_
10417
10438
  prepend?: EuiFormControlLayoutProps['prepend'];
10418
10439
  append?: EuiFormControlLayoutProps['append'];
10419
10440
  isLoading?: boolean;
10441
+ isInvalid?: boolean;
10420
10442
  autoFocus?: boolean;
10421
10443
  'aria-label'?: string;
10422
10444
  'aria-labelledby'?: string;
@@ -10429,6 +10451,7 @@ declare module '@elastic/eui/src/components/combo_box/combo_box_input/combo_box_
10429
10451
  updatePosition: () => void;
10430
10452
  onFocus: FocusEventHandler<HTMLInputElement>;
10431
10453
  onBlur: FocusEventHandler<HTMLInputElement>;
10454
+ onKeyDown: KeyboardEventHandler<HTMLInputElement>;
10432
10455
  componentDidUpdate(prevProps: EuiComboBoxInputProps<T>): void;
10433
10456
  inputOnChange: ChangeEventHandler<HTMLInputElement>;
10434
10457
  inputRefCallback: (ref: HTMLInputElement & AutosizeInput) => void;
@@ -10657,7 +10680,6 @@ declare module '@elastic/eui/src/components/combo_box/combo_box' {
10657
10680
  hasActiveOption: () => boolean;
10658
10681
  clearActiveOption: () => void;
10659
10682
  clearSearchValue: () => void;
10660
- removeLastOption: () => void;
10661
10683
  addCustomOption: (isContainerBlur: boolean, searchValue: string) => void;
10662
10684
  doesSearchMatchOnlyOption: () => boolean;
10663
10685
  areAllOptionsSelected: () => boolean;
@@ -13727,10 +13749,10 @@ declare module '@elastic/eui/src/components/date_picker/react-datepicker' {
13727
13749
 
13728
13750
  }
13729
13751
  declare module '@elastic/eui/src/components/date_picker/date_picker' {
13730
- import { Component, MouseEventHandler, Ref } from 'react';
13752
+ import { FunctionComponent, Component, MouseEventHandler, Ref } from 'react';
13731
13753
  import { Moment } from 'moment';
13732
13754
  import { EuiFormControlLayoutIconsProps } from '@elastic/eui/src/components/form/form_control_layout/form_control_layout_icons';
13733
- import { ApplyClassComponentDefaults, CommonProps } from '@elastic/eui/src/components/common';
13755
+ import { CommonProps } from '@elastic/eui/src/components/common';
13734
13756
  import { PopoverAnchorPosition } from '@elastic/eui/src/components/popover';
13735
13757
  import { ReactDatePickerProps } from '@elastic/eui/src/components/date_picker/react-datepicker';
13736
13758
  export const euiDatePickerDefaultDateFormat = "MM/DD/YYYY";
@@ -13747,7 +13769,7 @@ declare module '@elastic/eui/src/components/date_picker/date_picker' {
13747
13769
  /**
13748
13770
  * ref for the ReactDatePicker instance
13749
13771
  */
13750
- inputRef: Ref<Component<ReactDatePickerProps, any, any>>;
13772
+ inputRef?: Ref<Component<ReactDatePickerProps, any, any>>;
13751
13773
  /**
13752
13774
  * Provides styling to the input when invalid
13753
13775
  */
@@ -13786,24 +13808,9 @@ declare module '@elastic/eui/src/components/date_picker/date_picker' {
13786
13808
  * **Use [EuiPopover](/#/layout/popover) values**: 'upCenter', 'upLeft', 'upRight', downCenter', 'downLeft', 'downRight', 'leftCenter', 'leftUp', 'leftDown', 'rightCenter', 'rightUp', 'rightDown'.
13787
13809
  */
13788
13810
  popoverPlacement?: PopoverAnchorPosition;
13789
- } type _EuiDatePickerProps = CommonProps & EuiExtendedDatePickerProps;
13790
- export type EuiDatePickerProps = ApplyClassComponentDefaults<typeof EuiDatePicker>;
13791
- export class EuiDatePicker extends Component<_EuiDatePickerProps> {
13792
- static defaultProps: {
13793
- adjustDateOnChange: boolean;
13794
- dateFormat: string;
13795
- fullWidth: boolean;
13796
- inputRef: () => void;
13797
- isLoading: boolean;
13798
- shadow: boolean;
13799
- shouldCloseOnSelect: boolean;
13800
- showIcon: boolean;
13801
- showTimeSelect: boolean;
13802
- timeFormat: string;
13803
- popoverPlacement: string;
13804
- };
13805
- render(): JSX.Element;
13806
13811
  }
13812
+ export type EuiDatePickerProps = CommonProps & EuiExtendedDatePickerProps;
13813
+ export const EuiDatePicker: FunctionComponent<EuiDatePickerProps>;
13807
13814
  export {};
13808
13815
 
13809
13816
  }
@@ -14441,7 +14448,7 @@ declare module '@elastic/eui/src/components/date_picker/date_picker_range' {
14441
14448
  */
14442
14449
  isCustom?: boolean;
14443
14450
  /**
14444
- * Will turn the range delimeter into an alert icon and pass through to each control
14451
+ * Will color the range delimiter the `danger` color and pass through to each control
14445
14452
  */
14446
14453
  isInvalid?: boolean;
14447
14454
  /**
@@ -15614,6 +15621,113 @@ declare module '@elastic/eui/src/components/image' {
15614
15621
  export type { EuiImageProps } from '@elastic/eui/src/components/image/image_types';
15615
15622
  export { EuiImage } from '@elastic/eui/src/components/image/image';
15616
15623
 
15624
+ }
15625
+ declare module '@elastic/eui/src/components/inline_edit/inline_edit_form' {
15626
+ import { ReactNode, FunctionComponent } from 'react';
15627
+ import { CommonProps } from '@elastic/eui/src/components/common';
15628
+ import { EuiFieldTextProps } from '@elastic/eui/src/components/form';
15629
+ import { EuiButtonEmptyProps } from '@elastic/eui/src/components/button';
15630
+ import { EuiButtonEmptyPropsForButton } from '@elastic/eui/src/components/button/button_empty/button_empty';
15631
+ export type EuiInlineEditCommonProps = CommonProps & {
15632
+ defaultValue: string;
15633
+ /**
15634
+ * Allow users to pass in a function that is called when the confirm button is clicked
15635
+ * The function should return a boolean flag that will determine if the value will be saved.
15636
+ * When the flag is true, the value will be saved. When the flag is false, the user will be
15637
+ * returned to editMode.
15638
+ */
15639
+ onConfirm?: () => boolean;
15640
+ /**
15641
+ * Form label that appears above the form control
15642
+ * This is required for accessibility because there is no visual label on the input
15643
+ */
15644
+ inputAriaLabel: string;
15645
+ /**
15646
+ * Aria-label for save button in editMode
15647
+ */
15648
+ saveButtonAriaLabel?: string;
15649
+ /**
15650
+ * Aria-label for cancel button in editMode
15651
+ */
15652
+ cancelButtonAriaLabel?: string;
15653
+ /**
15654
+ * Start in editMode
15655
+ */
15656
+ startWithEditOpen?: boolean;
15657
+ /**
15658
+ * Props that will be applied directly to the EuiEmptyButton displayed in readMode
15659
+ */
15660
+ readModeProps?: Omit<EuiButtonEmptyPropsForButton, 'onClick'>;
15661
+ /**
15662
+ * Props that will be applied directly to the EuiFieldText displayed in editMode
15663
+ */
15664
+ editModeProps?: EuiFieldTextProps;
15665
+ };
15666
+ export type EuiInlineEditFormProps = EuiInlineEditCommonProps & {
15667
+ /**
15668
+ * Form sizes
15669
+ */
15670
+ sizes: {
15671
+ compressed: boolean;
15672
+ buttonSize: EuiButtonEmptyProps['size'];
15673
+ iconSize: EuiButtonEmptyProps['iconSize'];
15674
+ };
15675
+ /**
15676
+ * Render prop that returns the read mode value as an arg
15677
+ */
15678
+ children: (readModeValue: ReactNode) => ReactNode;
15679
+ };
15680
+ export const SMALL_SIZE_FORM: {
15681
+ readonly iconSize: "s";
15682
+ readonly compressed: true;
15683
+ readonly buttonSize: "s";
15684
+ };
15685
+ export const MEDIUM_SIZE_FORM: {
15686
+ readonly iconSize: "m";
15687
+ readonly compressed: false;
15688
+ readonly buttonSize: "m";
15689
+ };
15690
+ export const EuiInlineEditForm: FunctionComponent<EuiInlineEditFormProps>;
15691
+
15692
+ }
15693
+ declare module '@elastic/eui/src/components/inline_edit/inline_edit_text' {
15694
+ import { FunctionComponent } from 'react';
15695
+ import { EuiTextProps } from '@elastic/eui/src/components/text';
15696
+ import { EuiInlineEditCommonProps } from '@elastic/eui/src/components/inline_edit/inline_edit_form';
15697
+ export type EuiInlineEditTextSizes = Exclude<EuiTextProps['size'], 'relative'>;
15698
+ export type EuiInlineEditTextProps = EuiInlineEditCommonProps & {
15699
+ /**
15700
+ * Text size level
15701
+ */
15702
+ size?: EuiInlineEditTextSizes;
15703
+ };
15704
+ export const EuiInlineEditText: FunctionComponent<EuiInlineEditTextProps>;
15705
+
15706
+ }
15707
+ declare module '@elastic/eui/src/components/inline_edit/inline_edit_title' {
15708
+ import { FunctionComponent } from 'react';
15709
+ import { EuiTitleSize } from '@elastic/eui/src/components/title';
15710
+ import { EuiInlineEditCommonProps } from '@elastic/eui/src/components/inline_edit/inline_edit_form';
15711
+ export const HEADINGS: readonly ["h1", "h2", "h3", "h4", "h5", "h6"]; type Heading = typeof HEADINGS[number];
15712
+ export type EuiInlineEditTitleProps = EuiInlineEditCommonProps & {
15713
+ /**
15714
+ * Title size level
15715
+ */
15716
+ size?: EuiTitleSize;
15717
+ /**
15718
+ * Level of heading to be used for the title
15719
+ */
15720
+ heading: Heading;
15721
+ };
15722
+ export const EuiInlineEditTitle: FunctionComponent<EuiInlineEditTitleProps>;
15723
+ export {};
15724
+
15725
+ }
15726
+ declare module '@elastic/eui/src/components/inline_edit' {
15727
+ export { EuiInlineEditText } from '@elastic/eui/src/components/inline_edit/inline_edit_text';
15728
+ export { EuiInlineEditTitle } from '@elastic/eui/src/components/inline_edit/inline_edit_title';
15729
+ export type { EuiInlineEditTextSizes } from '@elastic/eui/src/components/inline_edit/inline_edit_text';
15730
+
15617
15731
  }
15618
15732
  declare module '@elastic/eui/src/components/key_pad_menu/key_pad_menu.styles' {
15619
15733
  import { UseEuiTheme } from '@elastic/eui/src/services';
@@ -21373,6 +21487,7 @@ declare module '@elastic/eui/src/components' {
21373
21487
  export * from '@elastic/eui/src/components/icon';
21374
21488
  export * from '@elastic/eui/src/components/image';
21375
21489
  export * from '@elastic/eui/src/components/inner_text';
21490
+ export * from '@elastic/eui/src/components/inline_edit';
21376
21491
  export * from '@elastic/eui/src/components/i18n';
21377
21492
  export * from '@elastic/eui/src/components/loading';
21378
21493
  export * from '@elastic/eui/src/components/key_pad_menu';
@@ -26116,6 +26231,13 @@ declare module '@elastic/eui/src/components/icon/assets/wrench' {
26116
26231
  export const icon: ({ title, titleId, ...props }: React.SVGProps<SVGSVGElement> & SVGRProps) => JSX.Element;
26117
26232
  export {};
26118
26233
 
26234
+ }
26235
+ declare module '@elastic/eui/src/components/inline_edit/inline_edit.styles' {
26236
+ import { UseEuiTheme } from '@elastic/eui/src/services';
26237
+ export const euiInlineEditStyles: ({ euiTheme }: UseEuiTheme) => {
26238
+ euiInlineEdit: import("@emotion/utils").SerializedStyles;
26239
+ };
26240
+
26119
26241
  }
26120
26242
  /*
26121
26243
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
@@ -26460,6 +26582,8 @@ declare module '@elastic/eui' {
26460
26582
  "euiHeaderLinks.appNavigation": any;
26461
26583
  "euiImageButton.openFullScreen": any;
26462
26584
  "euiImageButton.closeFullScreen": any;
26585
+ "euiInlineEditForm.saveButtonAriaLabel": any;
26586
+ "euiInlineEditForm.cancelButtonAriaLabel": any;
26463
26587
  "euiLink.newTarget.screenReaderOnlyText": any;
26464
26588
  "euiLink.external.ariaLabel": any;
26465
26589
  "euiPinnableListGroup.pinExtraActionLabel": any;
package/i18ntokens.json CHANGED
@@ -887,14 +887,14 @@
887
887
  "highlighting": "string",
888
888
  "loc": {
889
889
  "start": {
890
- "line": 1001,
890
+ "line": 977,
891
891
  "column": 10,
892
- "index": 28502
892
+ "index": 27944
893
893
  },
894
894
  "end": {
895
- "line": 1004,
895
+ "line": 980,
896
896
  "column": 11,
897
- "index": 28627
897
+ "index": 28069
898
898
  }
899
899
  },
900
900
  "filepath": "src/components/combo_box/combo_box.tsx"
@@ -4967,6 +4967,42 @@
4967
4967
  },
4968
4968
  "filepath": "src/components/image/image_button.tsx"
4969
4969
  },
4970
+ {
4971
+ "token": "euiInlineEditForm.saveButtonAriaLabel",
4972
+ "defString": "Save edit",
4973
+ "highlighting": "string",
4974
+ "loc": {
4975
+ "start": {
4976
+ "line": 105,
4977
+ "column": 37,
4978
+ "index": 3359
4979
+ },
4980
+ "end": {
4981
+ "line": 108,
4982
+ "column": 3,
4983
+ "index": 3435
4984
+ }
4985
+ },
4986
+ "filepath": "src/components/inline_edit/inline_edit_form.tsx"
4987
+ },
4988
+ {
4989
+ "token": "euiInlineEditForm.cancelButtonAriaLabel",
4990
+ "defString": "Cancel edit",
4991
+ "highlighting": "string",
4992
+ "loc": {
4993
+ "start": {
4994
+ "line": 109,
4995
+ "column": 39,
4996
+ "index": 3476
4997
+ },
4998
+ "end": {
4999
+ "line": 112,
5000
+ "column": 3,
5001
+ "index": 3556
5002
+ }
5003
+ },
5004
+ "filepath": "src/components/inline_edit/inline_edit_form.tsx"
5005
+ },
4970
5006
  {
4971
5007
  "token": "euiLink.newTarget.screenReaderOnlyText",
4972
5008
  "defString": "(opens in a new tab or window)",
@@ -14,7 +14,9 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
14
14
  * Side Public License, v 1.
15
15
  */
16
16
 
17
- /// <reference types="../../../cypress/support"/>
17
+ /// <reference types="cypress" />
18
+ /// <reference types="cypress-real-events" />
19
+ /// <reference types="../../../cypress/support" />
18
20
 
19
21
  var baseProps = {
20
22
  buttonContent: 'Click me to toggle',
@@ -218,8 +218,10 @@ var EuiAccordionClass = /*#__PURE__*/function (_Component) {
218
218
  }, buttonProps, {
219
219
  id: buttonId,
220
220
  className: buttonClasses,
221
- "aria-controls": id,
222
- "aria-expanded": isOpen,
221
+ "aria-controls": id
222
+ // `aria-expanded` is only a valid attribute on interactive controls - axe-core throws a violation otherwise
223
+ ,
224
+ "aria-expanded": ButtonElement === 'button' ? isOpen : undefined,
223
225
  onClick: isDisabled ? undefined : this.onToggle,
224
226
  type: ButtonElement === 'button' ? 'button' : undefined,
225
227
  disabled: ButtonElement === 'button' ? isDisabled : undefined
@@ -16,7 +16,9 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
16
16
  * Side Public License, v 1.
17
17
  */
18
18
 
19
- /// <reference types="../../../cypress/support"/>
19
+ /// <reference types="cypress" />
20
+ /// <reference types="cypress-real-events" />
21
+ /// <reference types="../../../cypress/support" />
20
22
 
21
23
  var users = [];
22
24
  for (var i = 0; i < 20; i++) {
@@ -12,7 +12,9 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
12
12
  * Side Public License, v 1.
13
13
  */
14
14
 
15
- /// <reference types="../../../cypress/support"/>
15
+ /// <reference types="cypress" />
16
+ /// <reference types="cypress-real-events" />
17
+ /// <reference types="../../../cypress/support" />
16
18
 
17
19
  var breadcrumbs = [{
18
20
  text: 'Animals',
@@ -222,22 +222,6 @@ var EuiComboBox = /*#__PURE__*/function (_Component) {
222
222
  _defineProperty(_assertThisInitialized(_this), "clearSearchValue", function () {
223
223
  _this.onSearchChange('');
224
224
  });
225
- _defineProperty(_assertThisInitialized(_this), "removeLastOption", function () {
226
- if (!_this.props.selectedOptions.length) {
227
- return;
228
- }
229
-
230
- // Backspace will be used to delete the input, not a pill.
231
- if (_this.state.searchValue.length) {
232
- return;
233
- }
234
-
235
- // Delete last pill.
236
- _this.onRemoveOption(_this.props.selectedOptions[_this.props.selectedOptions.length - 1]);
237
- if (Boolean(_this.props.singleSelection) && !_this.state.isListOpen) {
238
- _this.openList();
239
- }
240
- });
241
225
  _defineProperty(_assertThisInitialized(_this), "addCustomOption", function (isContainerBlur, searchValue) {
242
226
  var _this$props = _this.props,
243
227
  isCaseSensitive = _this$props.isCaseSensitive,
@@ -387,10 +371,6 @@ var EuiComboBox = /*#__PURE__*/function (_Component) {
387
371
  _this.openList();
388
372
  }
389
373
  break;
390
- case _services.keys.BACKSPACE:
391
- event.stopPropagation();
392
- _this.removeLastOption();
393
- break;
394
374
  case _services.keys.ESCAPE:
395
375
  if (_this.state.isListOpen) {
396
376
  event.preventDefault();
@@ -667,7 +647,7 @@ var EuiComboBox = /*#__PURE__*/function (_Component) {
667
647
  // Visually indicate the combobox is in an invalid state if it has lost focus but there is text entered in the input.
668
648
  // When custom options are disabled and the user leaves the combo box after entering text that does not match any
669
649
  // options, this tells the user that they've entered invalid input.
670
- var markAsInvalid = isInvalid || (hasFocus === false || isListOpen === false) && searchValue;
650
+ var markAsInvalid = !!(isInvalid || (hasFocus === false || isListOpen === false) && searchValue);
671
651
  var classes = (0, _classnames.default)('euiComboBox', className, {
672
652
  'euiComboBox--compressed': compressed,
673
653
  'euiComboBox--fullWidth': fullWidth,
@@ -764,6 +744,7 @@ var EuiComboBox = /*#__PURE__*/function (_Component) {
764
744
  append: singleSelection ? append : undefined,
765
745
  prepend: singleSelection ? prepend : undefined,
766
746
  isLoading: isLoading,
747
+ isInvalid: markAsInvalid,
767
748
  autoFocus: autoFocus,
768
749
  "aria-label": ariaLabel,
769
750
  "aria-labelledby": ariaLabelledby