@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
@@ -19,7 +19,9 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
19
19
  * Side Public License, v 1.
20
20
  */
21
21
 
22
- /// <reference types="../../../cypress/support"/>
22
+ /// <reference types="cypress" />
23
+ /// <reference types="cypress-real-events" />
24
+ /// <reference types="../../../cypress/support" />
23
25
 
24
26
  var DelayHide = function DelayHide() {
25
27
  var _useState = (0, _react.useState)(1000),
@@ -30,22 +32,20 @@ var DelayHide = function DelayHide() {
30
32
  _useState4 = (0, _slicedToArray2.default)(_useState3, 2),
31
33
  hide = _useState4[0],
32
34
  setHide = _useState4[1];
33
- var onChangeMinimumDuration = function onChangeMinimumDuration(event) {
34
- setDuration(parseInt(event.target.value, 10));
35
- };
36
- var onChangeHide = function onChangeHide(event) {
37
- setHide(event.target.checked);
38
- };
39
35
  return (0, _react2.jsx)(_react.default.Fragment, null, (0, _react2.jsx)(_flex.EuiFlexItem, null, (0, _react2.jsx)(_form.EuiFormRow, null, (0, _react2.jsx)(_form.EuiCheckbox, {
40
36
  id: "dummy-id",
41
37
  checked: hide,
42
- onChange: onChangeHide,
38
+ onChange: function onChange(event) {
39
+ return setHide(event.target.checked);
40
+ },
43
41
  label: "Hide child"
44
42
  })), (0, _react2.jsx)(_form.EuiFormRow, {
45
43
  label: "Minimum duration"
46
44
  }, (0, _react2.jsx)(_form.EuiFieldNumber, {
47
45
  value: minimumDuration,
48
- onChange: onChangeMinimumDuration
46
+ onChange: function onChange(event) {
47
+ return setDuration(parseInt(event.target.value, 10));
48
+ }
49
49
  })), (0, _react2.jsx)(_form.EuiFormRow, {
50
50
  label: "Child to render"
51
51
  }, (0, _react2.jsx)(_delay_hide.EuiDelayHide, {
@@ -19,7 +19,9 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
19
19
  * Side Public License, v 1.
20
20
  */
21
21
 
22
- /// <reference types="../../../cypress/support"/>
22
+ /// <reference types="cypress" />
23
+ /// <reference types="cypress-real-events" />
24
+ /// <reference types="../../../cypress/support" />
23
25
 
24
26
  var DelayRender = function DelayRender() {
25
27
  var _useState = (0, _react.useState)(1000),
@@ -30,24 +32,22 @@ var DelayRender = function DelayRender() {
30
32
  _useState4 = (0, _slicedToArray2.default)(_useState3, 2),
31
33
  render = _useState4[0],
32
34
  setRender = _useState4[1];
33
- var onChangeMinimumDelay = function onChangeMinimumDelay(event) {
34
- setDelay(parseInt(event.target.value, 10));
35
- };
36
- var onChangeHide = function onChangeHide(event) {
37
- setRender(event.target.checked);
38
- };
39
35
  var status = render ? 'showing' : 'hidden';
40
36
  var label = "Child (".concat(status, ")");
41
37
  return (0, _react2.jsx)(_react.default.Fragment, null, (0, _react2.jsx)(_flex.EuiFlexItem, null, (0, _react2.jsx)(_form.EuiFormRow, null, (0, _react2.jsx)(_form.EuiCheckbox, {
42
38
  id: "dummy-id",
43
39
  checked: render,
44
- onChange: onChangeHide,
40
+ onChange: function onChange(event) {
41
+ return setRender(event.target.checked);
42
+ },
45
43
  label: "Show child"
46
44
  })), (0, _react2.jsx)(_form.EuiFormRow, {
47
45
  label: "Minimum delay"
48
46
  }, (0, _react2.jsx)(_form.EuiFieldNumber, {
49
47
  value: minimumDelay,
50
- onChange: onChangeMinimumDelay
48
+ onChange: function onChange(event) {
49
+ return setDelay(parseInt(event.target.value, 10));
50
+ }
51
51
  })), (0, _react2.jsx)(_form.EuiFormRow, {
52
52
  label: label
53
53
  }, render ? (0, _react2.jsx)(_delay_render.EuiDelayRender, {
@@ -21,7 +21,9 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
21
21
  * Side Public License, v 1.
22
22
  */
23
23
 
24
- /// <reference types="../../../cypress/support"/>
24
+ /// <reference types="cypress" />
25
+ /// <reference types="cypress-real-events" />
26
+ /// <reference types="../../../cypress/support" />
25
27
 
26
28
  var makeId = (0, _services2.htmlIdGenerator)();
27
29
  var makeList = function makeList(number) {
@@ -42,7 +44,6 @@ var DragAndDrop = function DragAndDrop() {
42
44
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
43
45
  list = _useState2[0],
44
46
  setList = _useState2[1];
45
- console.log(list);
46
47
  var onDragEnd = function onDragEnd(_ref) {
47
48
  var source = _ref.source,
48
49
  destination = _ref.destination;
@@ -15,12 +15,15 @@ var _react2 = require("@emotion/react");
15
15
  * Side Public License, v 1.
16
16
  */
17
17
 
18
- /// <reference types="../../../cypress/support"/>
18
+ /// <reference types="cypress" />
19
+ /// <reference types="cypress-real-events" />
20
+ /// <reference types="../../../cypress/support" />
19
21
 
20
- var EmptyPrompt = function EmptyPrompt(_ref) {
21
- var addCaseSpy = _ref.addCaseSpy,
22
- addLinkSpy = _ref.addLinkSpy;
23
- return (0, _react2.jsx)(_empty_prompt.EuiEmptyPrompt, {
22
+ beforeEach(function () {
23
+ var addCaseSpy = cy.spy().as('addCaseSpy');
24
+ var addLinkSpy = cy.spy().as('addLinkSpy');
25
+ cy.viewport(1024, 768); // medium breakpoint
26
+ cy.realMount((0, _react2.jsx)(_empty_prompt.EuiEmptyPrompt, {
24
27
  iconType: "logoSecurity",
25
28
  title: (0, _react2.jsx)("h2", null, "Start adding cases"),
26
29
  body: (0, _react2.jsx)("p", null, "Add a new case or change your filter settings."),
@@ -35,15 +38,6 @@ var EmptyPrompt = function EmptyPrompt(_ref) {
35
38
  href: "#",
36
39
  onClick: addLinkSpy
37
40
  }, "Read the docs"))
38
- });
39
- };
40
- beforeEach(function () {
41
- var addCaseSpy = cy.spy().as('addCaseSpy');
42
- var addLinkSpy = cy.spy().as('addLinkSpy');
43
- cy.viewport(1024, 768); // medium breakpoint
44
- cy.realMount((0, _react2.jsx)(EmptyPrompt, {
45
- addCaseSpy: addCaseSpy,
46
- addLinkSpy: addLinkSpy
47
41
  }));
48
42
  });
49
43
  describe('EuiEmptyPrompt', function () {
@@ -14,7 +14,9 @@ var _react2 = require("@emotion/react");
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 handleFocus = function handleFocus() {
20
22
  var target = document.querySelector('pre.euiCodeBlock__pre');
@@ -4,11 +4,10 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  var _typeof = require("@babel/runtime/helpers/typeof");
5
5
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
6
6
  var _react = _interopRequireWildcard(require("react"));
7
- var _filter_button = require("./filter_button");
8
- var _filter_group = require("./filter_group");
9
7
  var _popover = require("../popover");
10
8
  var _selectable = require("../selectable");
11
9
  var _services = require("../../services");
10
+ var _index = require("./index");
12
11
  var _react2 = require("@emotion/react");
13
12
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
14
13
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -20,7 +19,9 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
20
19
  * Side Public License, v 1.
21
20
  */
22
21
 
23
- /// <reference types="../../../cypress/support"/>
22
+ /// <reference types="cypress" />
23
+ /// <reference types="cypress-real-events" />
24
+ /// <reference types="../../../cypress/support" />
24
25
 
25
26
  describe('EuiFilterGroup single filter example', function () {
26
27
  var SingleFilter = function SingleFilter() {
@@ -31,7 +32,7 @@ describe('EuiFilterGroup single filter example', function () {
31
32
  var toggleFilter = function toggleFilter() {
32
33
  setIsFilterOn(!isFilterOn);
33
34
  };
34
- return (0, _react2.jsx)(_filter_group.EuiFilterGroup, null, (0, _react2.jsx)(_filter_button.EuiFilterButton, {
35
+ return (0, _react2.jsx)(_index.EuiFilterGroup, null, (0, _react2.jsx)(_index.EuiFilterButton, {
35
36
  hasActiveFilters: isFilterOn,
36
37
  onClick: toggleFilter
37
38
  }, "Single filter"));
@@ -59,7 +60,7 @@ describe('EuiFilterGroup filter with long name example', function () {
59
60
  var toggleFilter = function toggleFilter() {
60
61
  setIsFilterOn(!isFilterOn);
61
62
  };
62
- return (0, _react2.jsx)(_filter_group.EuiFilterGroup, null, (0, _react2.jsx)(_filter_button.EuiFilterButton, {
63
+ return (0, _react2.jsx)(_index.EuiFilterGroup, null, (0, _react2.jsx)(_index.EuiFilterButton, {
63
64
  hasActiveFilters: isFilterOn,
64
65
  numFilters: 12,
65
66
  onClick: toggleFilter
@@ -97,11 +98,11 @@ describe('EuiFilterGroup two filter example', function () {
97
98
  setIsOffFilterOn(!isOffFilterOn);
98
99
  setIsOnFilterOn(isOnFilterOn && !isOffFilterOn ? false : isOnFilterOn);
99
100
  };
100
- return (0, _react2.jsx)(_filter_group.EuiFilterGroup, null, (0, _react2.jsx)(_filter_button.EuiFilterButton, {
101
+ return (0, _react2.jsx)(_index.EuiFilterGroup, null, (0, _react2.jsx)(_index.EuiFilterButton, {
101
102
  withNext: true,
102
103
  hasActiveFilters: isOnFilterOn,
103
104
  onClick: toggleOnFilter
104
- }, "Yes"), (0, _react2.jsx)(_filter_button.EuiFilterButton, {
105
+ }, "Yes"), (0, _react2.jsx)(_index.EuiFilterButton, {
105
106
  withNext: true,
106
107
  hasActiveFilters: isOffFilterOn,
107
108
  onClick: toggleOffFilter
@@ -173,7 +174,7 @@ describe('EuiFilterGroup multiselect example', function () {
173
174
  _useState16 = (0, _slicedToArray2.default)(_useState15, 2),
174
175
  items = _useState16[0],
175
176
  setItems = _useState16[1];
176
- var button = (0, _react2.jsx)(_filter_button.EuiFilterButton, {
177
+ var button = (0, _react2.jsx)(_index.EuiFilterButton, {
177
178
  iconType: "arrowDown",
178
179
  onClick: onButtonClick,
179
180
  isSelected: isPopoverOpen,
@@ -187,7 +188,7 @@ describe('EuiFilterGroup multiselect example', function () {
187
188
  return item.checked === 'on';
188
189
  }).length
189
190
  }, "Composers");
190
- return (0, _react2.jsx)(_filter_group.EuiFilterGroup, null, (0, _react2.jsx)(_popover.EuiPopover, {
191
+ return (0, _react2.jsx)(_index.EuiFilterGroup, null, (0, _react2.jsx)(_popover.EuiPopover, {
191
192
  id: filterGroupPopoverId,
192
193
  button: button,
193
194
  isOpen: isPopoverOpen,
@@ -24,7 +24,9 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
24
24
  * Side Public License, v 1.
25
25
  */
26
26
 
27
- /// <reference types="../../../cypress/support"/>
27
+ /// <reference types="cypress" />
28
+ /// <reference types="cypress-real-events" />
29
+ /// <reference types="../../../cypress/support" />
28
30
 
29
31
  var CheckboxGroup = function CheckboxGroup() {
30
32
  var checkboxGroupItemId__1 = (0, _services.useGeneratedHtmlId)({
@@ -199,8 +199,10 @@ var EuiFilePicker = /*#__PURE__*/function (_Component) {
199
199
  id: promptId
200
200
  }, (0, _react2.jsx)(_icon.EuiIcon, {
201
201
  className: "euiFilePicker__icon",
202
- color: disabled ? 'subdued' : 'primary',
203
- type: "importAction",
202
+ color: isInvalid ? 'danger' : disabled ? 'subdued' : 'primary' // eslint-disable-line no-nested-ternary
203
+ ,
204
+
205
+ type: isInvalid ? 'alert' : 'importAction',
204
206
  size: normalFormControl ? 'm' : 'l',
205
207
  "aria-hidden": "true"
206
208
  }), (0, _react2.jsx)("div", {
@@ -16,7 +16,9 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
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 RadioGroup = function RadioGroup() {
22
24
  var radioGroupItemId__1 = 'cy-radio-id-1';
@@ -41,14 +43,11 @@ var RadioGroup = function RadioGroup() {
41
43
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
42
44
  radioIdSelected = _useState2[0],
43
45
  setRadioIdSelected = _useState2[1];
44
- var _onChange = function onChange(optionId) {
45
- setRadioIdSelected(optionId);
46
- };
47
46
  return (0, _react2.jsx)(_radio_group.EuiRadioGroup, {
48
47
  options: radios,
49
48
  idSelected: radioIdSelected,
50
49
  onChange: function onChange(id) {
51
- return _onChange(id);
50
+ return setRadioIdSelected(id);
52
51
  },
53
52
  name: "radio group",
54
53
  legend: {
@@ -17,7 +17,9 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
17
17
  * Side Public License, v 1.
18
18
  */
19
19
 
20
- /// <reference types="../../../../cypress/support"/>
20
+ /// <reference types="cypress" />
21
+ /// <reference types="cypress-real-events" />
22
+ /// <reference types="../../../../cypress/support" />
21
23
 
22
24
  describe('Single EuiRange', function () {
23
25
  var SingleRange = function SingleRange() {
@@ -16,21 +16,20 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
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 Switch = function Switch() {
22
24
  var _useState = (0, _react.useState)(false),
23
25
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
24
26
  checked = _useState2[0],
25
27
  setChecked = _useState2[1];
26
- var _onChange = function onChange(e) {
27
- setChecked(e.target.checked);
28
- };
29
28
  return (0, _react2.jsx)(_switch.EuiSwitch, {
30
29
  label: "Malware protection",
31
30
  checked: checked,
32
31
  onChange: function onChange(e) {
33
- return _onChange(e);
32
+ return setChecked(e.target.checked);
34
33
  }
35
34
  });
36
35
  };
@@ -9,10 +9,11 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
9
9
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
10
10
  var _react = _interopRequireDefault(require("react"));
11
11
  var _classnames = _interopRequireDefault(require("classnames"));
12
+ var _form_control_layout = require("../form_control_layout");
12
13
  var _validatable_control = require("../validatable_control");
13
14
  var _eui_form_context = require("../eui_form_context");
14
15
  var _react2 = require("@emotion/react");
15
- var _excluded = ["children", "className", "compressed", "fullWidth", "id", "inputRef", "isInvalid", "name", "placeholder", "resize", "rows"];
16
+ var _excluded = ["children", "className", "compressed", "fullWidth", "id", "inputRef", "isLoading", "isInvalid", "name", "placeholder", "resize", "rows"];
16
17
  var resizeToClassNameMap = {
17
18
  vertical: 'euiTextArea--resizeVertical',
18
19
  horizontal: 'euiTextArea--resizeHorizontal',
@@ -31,6 +32,7 @@ var EuiTextArea = function EuiTextArea(props) {
31
32
  fullWidth = _props$fullWidth === void 0 ? defaultFullWidth : _props$fullWidth,
32
33
  id = props.id,
33
34
  inputRef = props.inputRef,
35
+ isLoading = props.isLoading,
34
36
  isInvalid = props.isInvalid,
35
37
  name = props.name,
36
38
  placeholder = props.placeholder,
@@ -50,7 +52,12 @@ var EuiTextArea = function EuiTextArea(props) {
50
52
  } else {
51
53
  definedRows = 6;
52
54
  }
53
- return (0, _react2.jsx)(_validatable_control.EuiValidatableControl, {
55
+ return (0, _react2.jsx)(_form_control_layout.EuiFormControlLayout, {
56
+ fullWidth: fullWidth,
57
+ isLoading: isLoading,
58
+ isInvalid: isInvalid,
59
+ className: "euiFormControlLayout--euiTextArea"
60
+ }, (0, _react2.jsx)(_validatable_control.EuiValidatableControl, {
54
61
  isInvalid: isInvalid
55
62
  }, (0, _react2.jsx)("textarea", (0, _extends2.default)({
56
63
  className: classes
@@ -60,6 +67,6 @@ var EuiTextArea = function EuiTextArea(props) {
60
67
  id: id,
61
68
  ref: inputRef,
62
69
  placeholder: placeholder
63
- }), children));
70
+ }), children)));
64
71
  };
65
72
  exports.EuiTextArea = EuiTextArea;
@@ -9,4 +9,10 @@ Object.defineProperty(exports, "EuiValidatableControl", {
9
9
  return _validatable_control.EuiValidatableControl;
10
10
  }
11
11
  });
12
+ Object.defineProperty(exports, "useEuiValidatableControl", {
13
+ enumerable: true,
14
+ get: function get() {
15
+ return _validatable_control.useEuiValidatableControl;
16
+ }
17
+ });
12
18
  var _validatable_control = require("./validatable_control");
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.EuiValidatableControl = void 0;
6
+ exports.useEuiValidatableControl = exports.EuiValidatableControl = void 0;
7
7
  var _react = require("react");
8
8
  /*
9
9
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
@@ -16,6 +16,12 @@ var _react = require("react");
16
16
  function isMutableRef(ref) {
17
17
  return ref != null && ref.hasOwnProperty('current');
18
18
  }
19
+
20
+ /**
21
+ * The `EuiValidatableControl` component should be used in scenarios where
22
+ * we can render the validated `<input>` as its direct child.
23
+ */
24
+
19
25
  var EuiValidatableControl = function EuiValidatableControl(_ref) {
20
26
  var isInvalid = _ref.isInvalid,
21
27
  children = _ref.children;
@@ -32,20 +38,54 @@ var EuiValidatableControl = function EuiValidatableControl(_ref) {
32
38
  childRef.current = element;
33
39
  }
34
40
  }, [childRef]);
35
- (0, _react.useEffect)(function () {
36
- if (control.current === null || typeof control.current.setCustomValidity !== 'function') {
37
- return; // jsdom doesn't polyfill this for the server-side
38
- }
39
-
40
- if (isInvalid) {
41
- control.current.setCustomValidity('Invalid');
42
- } else {
43
- control.current.setCustomValidity('');
44
- }
41
+ useSetControlValidity({
42
+ controlEl: control.current,
43
+ isInvalid: isInvalid
45
44
  });
46
45
  return /*#__PURE__*/(0, _react.cloneElement)(child, {
47
46
  ref: replacedRef,
48
47
  'aria-invalid': isInvalid
49
48
  });
50
49
  };
51
- exports.EuiValidatableControl = EuiValidatableControl;
50
+
51
+ /**
52
+ * The `UseEuiValidatableControl` hook should be used in scenarios where
53
+ * we *cannot* control where the validated `<input>` is rendered (e.g., ReactDatePicker)
54
+ * and instead need to access the input via a ref and pass the element in directly
55
+ */
56
+ exports.EuiValidatableControl = EuiValidatableControl;
57
+ var useEuiValidatableControl = function useEuiValidatableControl(_ref2) {
58
+ var isInvalid = _ref2.isInvalid,
59
+ controlEl = _ref2.controlEl;
60
+ useSetControlValidity({
61
+ controlEl: controlEl,
62
+ isInvalid: isInvalid
63
+ });
64
+ (0, _react.useEffect)(function () {
65
+ if (!controlEl) return;
66
+ if (typeof isInvalid === 'boolean') {
67
+ controlEl.setAttribute('aria-invalid', String(isInvalid));
68
+ } else {
69
+ controlEl.removeAttribute('aria-invalid');
70
+ }
71
+ }, [isInvalid, controlEl]);
72
+ };
73
+
74
+ /**
75
+ * Internal `setCustomValidity` helper
76
+ */
77
+ exports.useEuiValidatableControl = useEuiValidatableControl;
78
+ var useSetControlValidity = function useSetControlValidity(_ref3) {
79
+ var controlEl = _ref3.controlEl,
80
+ isInvalid = _ref3.isInvalid;
81
+ (0, _react.useEffect)(function () {
82
+ if (controlEl == null || typeof controlEl.setCustomValidity !== 'function') {
83
+ return;
84
+ }
85
+ if (isInvalid) {
86
+ controlEl.setCustomValidity('Invalid');
87
+ } else {
88
+ controlEl.setCustomValidity('');
89
+ }
90
+ }, [isInvalid, controlEl]);
91
+ };
@@ -29,7 +29,9 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
29
29
  * Side Public License, v 1.
30
30
  */
31
31
 
32
- /// <reference types="../../../cypress/support"/>
32
+ /// <reference types="cypress" />
33
+ /// <reference types="cypress-real-events" />
34
+ /// <reference types="../../../cypress/support" />
33
35
 
34
36
  var Header = function Header() {
35
37
  var renderLogo = function renderLogo() {
@@ -12,7 +12,9 @@ var _react2 = require("@emotion/react");
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
  describe('EuiIcons', function () {
18
20
  describe('Automated accessibility check for ML icons', function () {
@@ -12,7 +12,9 @@ var _react2 = require("@emotion/react");
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
  describe('EuiIcons', function () {
18
20
  describe('Automated accessibility check for app icons', function () {
@@ -12,7 +12,9 @@ var _react2 = require("@emotion/react");
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
  describe('EuiIcons', function () {
18
20
  describe('Automated accessibility check for editor icons', function () {
@@ -12,7 +12,9 @@ var _react2 = require("@emotion/react");
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
  describe('EuiIcons', function () {
18
20
  describe('Automated accessibility check for Elastic logos', function () {
@@ -12,7 +12,9 @@ var _react2 = require("@emotion/react");
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
  describe('EuiIcons', function () {
18
20
  describe('Automated accessibility check for glyph icons', function () {
@@ -12,7 +12,9 @@ var _react2 = require("@emotion/react");
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
  describe('EuiIcons', function () {
18
20
  describe('Automated accessibility check for token icons', function () {
@@ -12,7 +12,9 @@ var _react2 = require("@emotion/react");
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 Image = function Image() {
18
20
  return (0, _react2.jsx)(_image.EuiImage, {
@@ -476,6 +476,17 @@ Object.keys(_inner_text).forEach(function (key) {
476
476
  }
477
477
  });
478
478
  });
479
+ var _inline_edit = require("./inline_edit");
480
+ Object.keys(_inline_edit).forEach(function (key) {
481
+ if (key === "default" || key === "__esModule") return;
482
+ if (key in exports && exports[key] === _inline_edit[key]) return;
483
+ Object.defineProperty(exports, key, {
484
+ enumerable: true,
485
+ get: function get() {
486
+ return _inline_edit[key];
487
+ }
488
+ });
489
+ });
479
490
  var _i18n = require("./i18n");
480
491
  Object.keys(_i18n).forEach(function (key) {
481
492
  if (key === "default" || key === "__esModule") return;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "EuiInlineEditText", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _inline_edit_text.EuiInlineEditText;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "EuiInlineEditTitle", {
13
+ enumerable: true,
14
+ get: function get() {
15
+ return _inline_edit_title.EuiInlineEditTitle;
16
+ }
17
+ });
18
+ var _inline_edit_text = require("./inline_edit_text");
19
+ var _inline_edit_title = require("./inline_edit_title");
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.euiInlineEditStyles = void 0;
7
+ var _react = require("@emotion/react");
8
+ /*
9
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
10
+ * or more contributor license agreements. Licensed under the Elastic License
11
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
12
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
13
+ * Side Public License, v 1.
14
+ */
15
+
16
+ var euiInlineEditStyles = function euiInlineEditStyles(_ref) {
17
+ var euiTheme = _ref.euiTheme;
18
+ return {
19
+ euiInlineEdit: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.primaryText, ";;label:euiInlineEdit;")
20
+ };
21
+ };
22
+ exports.euiInlineEditStyles = euiInlineEditStyles;