@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.
- package/dist/eui_theme_dark.css +22 -51
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +22 -51
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/accordion/accordion.a11y.js +3 -1
- package/es/components/accordion/accordion.js +4 -2
- package/es/components/basic_table/table.a11y.js +3 -1
- package/es/components/breadcrumbs/breadcrumbs.a11y.js +3 -1
- package/es/components/card/card.a11y.js +3 -1
- package/es/components/color_picker/color_picker.a11y.js +3 -1
- package/es/components/combo_box/combo_box.a11y.js +3 -1
- package/es/components/combo_box/combo_box.js +2 -21
- package/es/components/combo_box/combo_box_input/combo_box_input.js +66 -36
- package/es/components/combo_box/combo_box_options_list/combo_box_options_list.js +1 -1
- package/es/components/context_menu/context_menu_panel.a11y.js +3 -1
- package/es/components/control_bar/control_bar.a11y.js +3 -1
- package/es/components/copy/copy.a11y.js +6 -5
- package/es/components/datagrid/data_grid.a11y.js +3 -1
- package/es/components/date_picker/date_picker.a11y.js +3 -1
- package/es/components/date_picker/date_picker.js +148 -155
- package/es/components/date_picker/date_picker_range.js +2 -2
- package/es/components/date_picker/super_date_picker/super_date_picker.a11y.js +3 -1
- package/es/components/delay_hide/delay_hide.a11y.js +9 -9
- package/es/components/delay_render/delay_render.a11y.js +9 -9
- package/es/components/drag_and_drop/drag_and_drop.a11y.js +3 -2
- package/es/components/empty_prompt/empty_prompt.a11y.js +8 -14
- package/es/components/error_boundary/error_boundary.a11y.js +3 -1
- package/es/components/expression/expression.a11y.js +3 -1
- package/es/components/filter_group/filter_group.a11y.js +4 -3
- package/es/components/flyout/flyout.a11y.js +3 -1
- package/es/components/focus_trap/focus_trap.a11y.js +3 -1
- package/es/components/form/checkbox/checkbox_group.a11y.js +3 -1
- package/es/components/form/file_picker/file_picker.js +4 -2
- package/es/components/form/radio/radio_group.a11y.js +4 -5
- package/es/components/form/range/range.a11y.js +3 -1
- package/es/components/form/switch/switch.a11y.js +4 -5
- package/es/components/form/text_area/text_area.js +11 -3
- package/es/components/form/validatable_control/index.js +1 -1
- package/es/components/form/validatable_control/validatable_control.js +49 -13
- package/es/components/header/header.a11y.js +3 -1
- package/es/components/icon/icon_ML.a11y.js +3 -1
- package/es/components/icon/icon_apps.a11y.js +3 -1
- package/es/components/icon/icon_editor.a11y.js +3 -1
- package/es/components/icon/icon_elastic.a11y.js +3 -1
- package/es/components/icon/icon_glyphs.a11y.js +3 -1
- package/es/components/icon/icon_tokens.a11y.js +3 -1
- package/es/components/image/image.a11y.js +3 -1
- package/es/components/index.js +1 -0
- package/es/components/inline_edit/index.js +10 -0
- package/es/components/inline_edit/inline_edit.styles.js +15 -0
- package/es/components/inline_edit/inline_edit_form.js +190 -0
- package/es/components/inline_edit/inline_edit_text.js +97 -0
- package/es/components/inline_edit/inline_edit_title.js +105 -0
- package/es/components/key_pad_menu/key_pad_menu.a11y.js +3 -1
- package/es/components/modal/modal.a11y.js +3 -1
- package/es/components/notification/notification_event.a11y.js +3 -1
- package/es/components/page/page_header/page_header.a11y.js +3 -1
- package/es/components/pagination/pagination.a11y.js +3 -1
- package/es/components/popover/popover.a11y.js +3 -1
- package/es/components/popover/popover_footer.js +4 -4
- package/es/components/popover/popover_footer.styles.js +16 -5
- package/es/components/popover/popover_panel/_popover_panel.js +8 -5
- package/es/components/portal/portal.a11y.js +3 -1
- package/es/components/progress/progress.a11y.js +3 -1
- package/es/components/resizable_container/resizable_container.a11y.js +3 -1
- package/es/components/search_bar/search_bar.a11y.js +8 -7
- package/es/components/selectable/selectable.a11y.js +3 -1
- package/es/components/side_nav/side_nav.a11y.js +3 -1
- package/es/components/tabs/tabs.a11y.js +3 -1
- package/es/components/tree_view/tree_view.a11y.js +3 -1
- package/eui.d.ts +161 -37
- package/i18ntokens.json +40 -4
- package/lib/components/accordion/accordion.a11y.js +3 -1
- package/lib/components/accordion/accordion.js +4 -2
- package/lib/components/basic_table/table.a11y.js +3 -1
- package/lib/components/breadcrumbs/breadcrumbs.a11y.js +3 -1
- package/lib/components/combo_box/combo_box.js +2 -21
- package/lib/components/combo_box/combo_box_input/combo_box_input.js +66 -36
- package/lib/components/combo_box/combo_box_options_list/combo_box_options_list.js +1 -1
- package/lib/components/context_menu/context_menu_panel.a11y.js +3 -1
- package/lib/components/copy/copy.a11y.js +3 -4
- package/lib/components/date_picker/date_picker.js +147 -153
- package/lib/components/date_picker/date_picker_range.js +2 -2
- package/lib/components/delay_hide/delay_hide.a11y.js +6 -8
- package/lib/components/delay_render/delay_render.a11y.js +6 -8
- package/lib/components/drag_and_drop/drag_and_drop.a11y.js +0 -1
- package/lib/components/empty_prompt/empty_prompt.a11y.js +8 -14
- package/lib/components/error_boundary/error_boundary.a11y.js +3 -1
- package/lib/components/filter_group/filter_group.a11y.js +7 -8
- package/lib/components/form/file_picker/file_picker.js +4 -2
- package/lib/components/form/radio/radio_group.a11y.js +1 -4
- package/lib/components/form/switch/switch.a11y.js +1 -4
- package/lib/components/form/text_area/text_area.js +11 -3
- package/lib/components/form/validatable_control/index.js +6 -0
- package/lib/components/form/validatable_control/validatable_control.js +51 -14
- package/lib/components/icon/icon_ML.a11y.js +3 -1
- package/lib/components/icon/icon_apps.a11y.js +3 -1
- package/lib/components/icon/icon_editor.a11y.js +3 -1
- package/lib/components/icon/icon_elastic.a11y.js +3 -1
- package/lib/components/icon/icon_glyphs.a11y.js +3 -1
- package/lib/components/icon/icon_tokens.a11y.js +3 -1
- package/lib/components/image/image.a11y.js +3 -1
- package/lib/components/index.js +11 -0
- package/lib/components/inline_edit/index.js +19 -0
- package/lib/components/inline_edit/inline_edit.styles.js +22 -0
- package/lib/components/inline_edit/inline_edit_form.js +193 -0
- package/lib/components/inline_edit/inline_edit_text.js +97 -0
- package/lib/components/inline_edit/inline_edit_title.js +106 -0
- package/lib/components/page/page_header/page_header.a11y.js +3 -1
- package/lib/components/popover/popover_footer.js +4 -4
- package/lib/components/popover/popover_footer.styles.js +19 -7
- package/lib/components/popover/popover_panel/_popover_panel.js +7 -4
- package/lib/components/resizable_container/resizable_container.a11y.js +3 -1
- package/lib/components/search_bar/search_bar.a11y.js +5 -6
- package/lib/components/tree_view/tree_view.a11y.js +3 -1
- package/optimize/es/components/accordion/accordion.a11y.js +3 -1
- package/optimize/es/components/accordion/accordion.js +4 -2
- package/optimize/es/components/basic_table/table.a11y.js +3 -1
- package/optimize/es/components/breadcrumbs/breadcrumbs.a11y.js +3 -1
- package/optimize/es/components/card/card.a11y.js +3 -1
- package/optimize/es/components/color_picker/color_picker.a11y.js +3 -1
- package/optimize/es/components/combo_box/combo_box.a11y.js +3 -1
- package/optimize/es/components/combo_box/combo_box.js +2 -21
- package/optimize/es/components/combo_box/combo_box_input/combo_box_input.js +63 -34
- package/optimize/es/components/combo_box/combo_box_options_list/combo_box_options_list.js +1 -1
- package/optimize/es/components/context_menu/context_menu_panel.a11y.js +3 -1
- package/optimize/es/components/control_bar/control_bar.a11y.js +3 -1
- package/optimize/es/components/copy/copy.a11y.js +6 -5
- package/optimize/es/components/datagrid/data_grid.a11y.js +3 -1
- package/optimize/es/components/date_picker/date_picker.a11y.js +3 -1
- package/optimize/es/components/date_picker/date_picker.js +142 -148
- package/optimize/es/components/date_picker/date_picker_range.js +1 -1
- package/optimize/es/components/date_picker/super_date_picker/super_date_picker.a11y.js +3 -1
- package/optimize/es/components/delay_hide/delay_hide.a11y.js +9 -9
- package/optimize/es/components/delay_render/delay_render.a11y.js +9 -9
- package/optimize/es/components/drag_and_drop/drag_and_drop.a11y.js +3 -2
- package/optimize/es/components/empty_prompt/empty_prompt.a11y.js +8 -14
- package/optimize/es/components/error_boundary/error_boundary.a11y.js +3 -1
- package/optimize/es/components/expression/expression.a11y.js +3 -1
- package/optimize/es/components/filter_group/filter_group.a11y.js +4 -3
- package/optimize/es/components/flyout/flyout.a11y.js +3 -1
- package/optimize/es/components/focus_trap/focus_trap.a11y.js +3 -1
- package/optimize/es/components/form/checkbox/checkbox_group.a11y.js +3 -1
- package/optimize/es/components/form/file_picker/file_picker.js +4 -2
- package/optimize/es/components/form/radio/radio_group.a11y.js +4 -5
- package/optimize/es/components/form/range/range.a11y.js +3 -1
- package/optimize/es/components/form/switch/switch.a11y.js +4 -5
- package/optimize/es/components/form/text_area/text_area.js +10 -3
- package/optimize/es/components/form/validatable_control/index.js +1 -1
- package/optimize/es/components/form/validatable_control/validatable_control.js +49 -9
- package/optimize/es/components/header/header.a11y.js +3 -1
- package/optimize/es/components/icon/icon_ML.a11y.js +3 -1
- package/optimize/es/components/icon/icon_apps.a11y.js +3 -1
- package/optimize/es/components/icon/icon_editor.a11y.js +3 -1
- package/optimize/es/components/icon/icon_elastic.a11y.js +3 -1
- package/optimize/es/components/icon/icon_glyphs.a11y.js +3 -1
- package/optimize/es/components/icon/icon_tokens.a11y.js +3 -1
- package/optimize/es/components/image/image.a11y.js +3 -1
- package/optimize/es/components/index.js +1 -0
- package/optimize/es/components/inline_edit/index.js +10 -0
- package/optimize/es/components/inline_edit/inline_edit.styles.js +15 -0
- package/optimize/es/components/inline_edit/inline_edit_form.js +133 -0
- package/optimize/es/components/inline_edit/inline_edit_text.js +52 -0
- package/optimize/es/components/inline_edit/inline_edit_title.js +56 -0
- package/optimize/es/components/key_pad_menu/key_pad_menu.a11y.js +3 -1
- package/optimize/es/components/modal/modal.a11y.js +3 -1
- package/optimize/es/components/notification/notification_event.a11y.js +3 -1
- package/optimize/es/components/page/page_header/page_header.a11y.js +3 -1
- package/optimize/es/components/pagination/pagination.a11y.js +3 -1
- package/optimize/es/components/popover/popover.a11y.js +3 -1
- package/optimize/es/components/popover/popover_footer.js +4 -4
- package/optimize/es/components/popover/popover_footer.styles.js +16 -5
- package/optimize/es/components/popover/popover_panel/_popover_panel.js +8 -5
- package/optimize/es/components/portal/portal.a11y.js +3 -1
- package/optimize/es/components/progress/progress.a11y.js +3 -1
- package/optimize/es/components/resizable_container/resizable_container.a11y.js +3 -1
- package/optimize/es/components/search_bar/search_bar.a11y.js +8 -7
- package/optimize/es/components/selectable/selectable.a11y.js +3 -1
- package/optimize/es/components/side_nav/side_nav.a11y.js +3 -1
- package/optimize/es/components/tabs/tabs.a11y.js +3 -1
- package/optimize/es/components/tree_view/tree_view.a11y.js +3 -1
- package/optimize/lib/components/accordion/accordion.a11y.js +3 -1
- package/optimize/lib/components/accordion/accordion.js +4 -2
- package/optimize/lib/components/basic_table/table.a11y.js +3 -1
- package/optimize/lib/components/breadcrumbs/breadcrumbs.a11y.js +3 -1
- package/optimize/lib/components/card/card.a11y.js +3 -1
- package/optimize/lib/components/color_picker/color_picker.a11y.js +3 -1
- package/optimize/lib/components/combo_box/combo_box.a11y.js +3 -1
- package/optimize/lib/components/combo_box/combo_box.js +2 -21
- package/optimize/lib/components/combo_box/combo_box_input/combo_box_input.js +63 -34
- package/optimize/lib/components/combo_box/combo_box_options_list/combo_box_options_list.js +1 -1
- package/optimize/lib/components/context_menu/context_menu_panel.a11y.js +3 -1
- package/optimize/lib/components/control_bar/control_bar.a11y.js +3 -1
- package/optimize/lib/components/copy/copy.a11y.js +6 -5
- package/optimize/lib/components/datagrid/data_grid.a11y.js +3 -1
- package/optimize/lib/components/date_picker/date_picker.a11y.js +3 -1
- package/optimize/lib/components/date_picker/date_picker.js +141 -147
- package/optimize/lib/components/date_picker/date_picker_range.js +1 -1
- package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.a11y.js +3 -1
- package/optimize/lib/components/delay_hide/delay_hide.a11y.js +9 -9
- package/optimize/lib/components/delay_render/delay_render.a11y.js +9 -9
- package/optimize/lib/components/drag_and_drop/drag_and_drop.a11y.js +3 -2
- package/optimize/lib/components/empty_prompt/empty_prompt.a11y.js +8 -14
- package/optimize/lib/components/error_boundary/error_boundary.a11y.js +3 -1
- package/optimize/lib/components/filter_group/filter_group.a11y.js +10 -9
- package/optimize/lib/components/focus_trap/focus_trap.a11y.js +3 -1
- package/optimize/lib/components/form/file_picker/file_picker.js +4 -2
- package/optimize/lib/components/form/radio/radio_group.a11y.js +4 -5
- package/optimize/lib/components/form/range/range.a11y.js +3 -1
- package/optimize/lib/components/form/switch/switch.a11y.js +4 -5
- package/optimize/lib/components/form/text_area/text_area.js +10 -3
- package/optimize/lib/components/form/validatable_control/index.js +6 -0
- package/optimize/lib/components/form/validatable_control/validatable_control.js +52 -12
- package/optimize/lib/components/header/header.a11y.js +3 -1
- package/optimize/lib/components/icon/icon_ML.a11y.js +3 -1
- package/optimize/lib/components/icon/icon_apps.a11y.js +3 -1
- package/optimize/lib/components/icon/icon_editor.a11y.js +3 -1
- package/optimize/lib/components/icon/icon_elastic.a11y.js +3 -1
- package/optimize/lib/components/icon/icon_glyphs.a11y.js +3 -1
- package/optimize/lib/components/icon/icon_tokens.a11y.js +3 -1
- package/optimize/lib/components/image/image.a11y.js +3 -1
- package/optimize/lib/components/index.js +11 -0
- package/optimize/lib/components/inline_edit/index.js +19 -0
- package/optimize/lib/components/inline_edit/inline_edit.styles.js +22 -0
- package/optimize/lib/components/inline_edit/inline_edit_form.js +144 -0
- package/optimize/lib/components/inline_edit/inline_edit_text.js +52 -0
- package/optimize/lib/components/inline_edit/inline_edit_title.js +57 -0
- package/optimize/lib/components/key_pad_menu/key_pad_menu.a11y.js +3 -1
- package/optimize/lib/components/modal/modal.a11y.js +3 -1
- package/optimize/lib/components/notification/notification_event.a11y.js +3 -1
- package/optimize/lib/components/page/page_header/page_header.a11y.js +3 -1
- package/optimize/lib/components/pagination/pagination.a11y.js +3 -1
- package/optimize/lib/components/popover/popover.a11y.js +3 -1
- package/optimize/lib/components/popover/popover_footer.js +4 -4
- package/optimize/lib/components/popover/popover_footer.styles.js +19 -7
- package/optimize/lib/components/popover/popover_panel/_popover_panel.js +7 -4
- package/optimize/lib/components/portal/portal.a11y.js +3 -1
- package/optimize/lib/components/progress/progress.a11y.js +3 -1
- package/optimize/lib/components/resizable_container/resizable_container.a11y.js +3 -1
- package/optimize/lib/components/search_bar/search_bar.a11y.js +8 -7
- package/optimize/lib/components/selectable/selectable.a11y.js +3 -1
- package/optimize/lib/components/side_nav/side_nav.a11y.js +3 -1
- package/optimize/lib/components/tree_view/tree_view.a11y.js +3 -1
- package/package.json +1 -1
- package/src/components/combo_box/_combo_box.scss +2 -38
- package/src/components/date_picker/_date_picker_range.scss +1 -1
- package/src/components/form/field_text/_field_text.scss +0 -7
- package/src/components/form/file_picker/_file_picker.scss +3 -2
- package/src/components/form/form_control_layout/_form_control_layout.scss +7 -2
- package/src/components/form/text_area/_text_area.scss +9 -0
- package/test-env/components/accordion/accordion.a11y.js +3 -1
- package/test-env/components/accordion/accordion.js +4 -2
- package/test-env/components/basic_table/table.a11y.js +3 -1
- package/test-env/components/breadcrumbs/breadcrumbs.a11y.js +3 -1
- package/test-env/components/card/card.a11y.js +3 -1
- package/test-env/components/color_picker/color_picker.a11y.js +3 -1
- package/test-env/components/combo_box/combo_box.a11y.js +3 -1
- package/test-env/components/combo_box/combo_box.js +2 -21
- package/test-env/components/combo_box/combo_box_input/combo_box_input.js +66 -36
- package/test-env/components/combo_box/combo_box_options_list/combo_box_options_list.js +1 -1
- package/test-env/components/context_menu/context_menu_panel.a11y.js +3 -1
- package/test-env/components/control_bar/control_bar.a11y.js +3 -1
- package/test-env/components/copy/copy.a11y.js +6 -5
- package/test-env/components/datagrid/data_grid.a11y.js +3 -1
- package/test-env/components/date_picker/date_picker.a11y.js +3 -1
- package/test-env/components/date_picker/date_picker.js +141 -147
- package/test-env/components/date_picker/date_picker_range.js +2 -2
- package/test-env/components/date_picker/super_date_picker/super_date_picker.a11y.js +3 -1
- package/test-env/components/delay_hide/delay_hide.a11y.js +9 -9
- package/test-env/components/delay_render/delay_render.a11y.js +9 -9
- package/test-env/components/drag_and_drop/drag_and_drop.a11y.js +3 -2
- package/test-env/components/empty_prompt/empty_prompt.a11y.js +8 -14
- package/test-env/components/error_boundary/error_boundary.a11y.js +3 -1
- package/test-env/components/filter_group/filter_group.a11y.js +10 -9
- package/test-env/components/focus_trap/focus_trap.a11y.js +3 -1
- package/test-env/components/form/file_picker/file_picker.js +4 -2
- package/test-env/components/form/radio/radio_group.a11y.js +4 -5
- package/test-env/components/form/range/range.a11y.js +3 -1
- package/test-env/components/form/switch/switch.a11y.js +4 -5
- package/test-env/components/form/text_area/text_area.js +11 -3
- package/test-env/components/form/validatable_control/index.js +6 -0
- package/test-env/components/form/validatable_control/validatable_control.js +51 -14
- package/test-env/components/header/header.a11y.js +3 -1
- package/test-env/components/icon/icon_ML.a11y.js +3 -1
- package/test-env/components/icon/icon_apps.a11y.js +3 -1
- package/test-env/components/icon/icon_editor.a11y.js +3 -1
- package/test-env/components/icon/icon_elastic.a11y.js +3 -1
- package/test-env/components/icon/icon_glyphs.a11y.js +3 -1
- package/test-env/components/icon/icon_tokens.a11y.js +3 -1
- package/test-env/components/image/image.a11y.js +3 -1
- package/test-env/components/index.js +11 -0
- package/test-env/components/inline_edit/index.js +19 -0
- package/test-env/components/inline_edit/inline_edit.styles.js +22 -0
- package/test-env/components/inline_edit/inline_edit_form.js +196 -0
- package/test-env/components/inline_edit/inline_edit_text.js +96 -0
- package/test-env/components/inline_edit/inline_edit_title.js +105 -0
- package/test-env/components/key_pad_menu/key_pad_menu.a11y.js +3 -1
- package/test-env/components/modal/modal.a11y.js +3 -1
- package/test-env/components/notification/notification_event.a11y.js +3 -1
- package/test-env/components/page/page_header/page_header.a11y.js +3 -1
- package/test-env/components/pagination/pagination.a11y.js +3 -1
- package/test-env/components/popover/popover.a11y.js +3 -1
- package/test-env/components/popover/popover_footer.js +4 -4
- package/test-env/components/popover/popover_footer.styles.js +19 -7
- package/test-env/components/popover/popover_panel/_popover_panel.js +7 -4
- package/test-env/components/portal/portal.a11y.js +3 -1
- package/test-env/components/progress/progress.a11y.js +3 -1
- package/test-env/components/resizable_container/resizable_container.a11y.js +3 -1
- package/test-env/components/search_bar/search_bar.a11y.js +8 -7
- package/test-env/components/selectable/selectable.a11y.js +3 -1
- package/test-env/components/side_nav/side_nav.a11y.js +3 -1
- package/test-env/components/tree_view/tree_view.a11y.js +3 -1
|
@@ -7,7 +7,9 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
7
7
|
* Side Public License, v 1.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
/// <reference types="
|
|
10
|
+
/// <reference types="cypress" />
|
|
11
|
+
/// <reference types="cypress-real-events" />
|
|
12
|
+
/// <reference types="../../../cypress/support" />
|
|
11
13
|
|
|
12
14
|
import React, { useState } from 'react';
|
|
13
15
|
import { EuiDelayHide } from './delay_hide';
|
|
@@ -24,22 +26,20 @@ var DelayHide = function DelayHide() {
|
|
|
24
26
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
25
27
|
hide = _useState4[0],
|
|
26
28
|
setHide = _useState4[1];
|
|
27
|
-
var onChangeMinimumDuration = function onChangeMinimumDuration(event) {
|
|
28
|
-
setDuration(parseInt(event.target.value, 10));
|
|
29
|
-
};
|
|
30
|
-
var onChangeHide = function onChangeHide(event) {
|
|
31
|
-
setHide(event.target.checked);
|
|
32
|
-
};
|
|
33
29
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(EuiFlexItem, null, ___EmotionJSX(EuiFormRow, null, ___EmotionJSX(EuiCheckbox, {
|
|
34
30
|
id: "dummy-id",
|
|
35
31
|
checked: hide,
|
|
36
|
-
onChange:
|
|
32
|
+
onChange: function onChange(event) {
|
|
33
|
+
return setHide(event.target.checked);
|
|
34
|
+
},
|
|
37
35
|
label: "Hide child"
|
|
38
36
|
})), ___EmotionJSX(EuiFormRow, {
|
|
39
37
|
label: "Minimum duration"
|
|
40
38
|
}, ___EmotionJSX(EuiFieldNumber, {
|
|
41
39
|
value: minimumDuration,
|
|
42
|
-
onChange:
|
|
40
|
+
onChange: function onChange(event) {
|
|
41
|
+
return setDuration(parseInt(event.target.value, 10));
|
|
42
|
+
}
|
|
43
43
|
})), ___EmotionJSX(EuiFormRow, {
|
|
44
44
|
label: "Child to render"
|
|
45
45
|
}, ___EmotionJSX(EuiDelayHide, {
|
|
@@ -7,7 +7,9 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
7
7
|
* Side Public License, v 1.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
/// <reference types="
|
|
10
|
+
/// <reference types="cypress" />
|
|
11
|
+
/// <reference types="cypress-real-events" />
|
|
12
|
+
/// <reference types="../../../cypress/support" />
|
|
11
13
|
|
|
12
14
|
import React, { useState } from 'react';
|
|
13
15
|
import { EuiDelayRender } from './delay_render';
|
|
@@ -24,24 +26,22 @@ var DelayRender = function DelayRender() {
|
|
|
24
26
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
25
27
|
render = _useState4[0],
|
|
26
28
|
setRender = _useState4[1];
|
|
27
|
-
var onChangeMinimumDelay = function onChangeMinimumDelay(event) {
|
|
28
|
-
setDelay(parseInt(event.target.value, 10));
|
|
29
|
-
};
|
|
30
|
-
var onChangeHide = function onChangeHide(event) {
|
|
31
|
-
setRender(event.target.checked);
|
|
32
|
-
};
|
|
33
29
|
var status = render ? 'showing' : 'hidden';
|
|
34
30
|
var label = "Child (".concat(status, ")");
|
|
35
31
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(EuiFlexItem, null, ___EmotionJSX(EuiFormRow, null, ___EmotionJSX(EuiCheckbox, {
|
|
36
32
|
id: "dummy-id",
|
|
37
33
|
checked: render,
|
|
38
|
-
onChange:
|
|
34
|
+
onChange: function onChange(event) {
|
|
35
|
+
return setRender(event.target.checked);
|
|
36
|
+
},
|
|
39
37
|
label: "Show child"
|
|
40
38
|
})), ___EmotionJSX(EuiFormRow, {
|
|
41
39
|
label: "Minimum delay"
|
|
42
40
|
}, ___EmotionJSX(EuiFieldNumber, {
|
|
43
41
|
value: minimumDelay,
|
|
44
|
-
onChange:
|
|
42
|
+
onChange: function onChange(event) {
|
|
43
|
+
return setDelay(parseInt(event.target.value, 10));
|
|
44
|
+
}
|
|
45
45
|
})), ___EmotionJSX(EuiFormRow, {
|
|
46
46
|
label: label
|
|
47
47
|
}, render ? ___EmotionJSX(EuiDelayRender, {
|
|
@@ -7,7 +7,9 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
7
7
|
* Side Public License, v 1.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
/// <reference types="
|
|
10
|
+
/// <reference types="cypress" />
|
|
11
|
+
/// <reference types="cypress-real-events" />
|
|
12
|
+
/// <reference types="../../../cypress/support" />
|
|
11
13
|
|
|
12
14
|
import React, { useState } from 'react';
|
|
13
15
|
import { EuiDragDropContext } from './drag_drop_context';
|
|
@@ -36,7 +38,6 @@ var DragAndDrop = function DragAndDrop() {
|
|
|
36
38
|
_useState2 = _slicedToArray(_useState, 2),
|
|
37
39
|
list = _useState2[0],
|
|
38
40
|
setList = _useState2[1];
|
|
39
|
-
console.log(list);
|
|
40
41
|
var onDragEnd = function onDragEnd(_ref) {
|
|
41
42
|
var source = _ref.source,
|
|
42
43
|
destination = _ref.destination;
|
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
* Side Public License, v 1.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
/// <reference types="
|
|
9
|
+
/// <reference types="cypress" />
|
|
10
|
+
/// <reference types="cypress-real-events" />
|
|
11
|
+
/// <reference types="../../../cypress/support" />
|
|
10
12
|
|
|
11
13
|
import React from 'react';
|
|
12
14
|
import { EuiButton } from '../button';
|
|
@@ -14,10 +16,11 @@ import { EuiEmptyPrompt } from './empty_prompt';
|
|
|
14
16
|
import { EuiLink } from '../link';
|
|
15
17
|
import { EuiTitle } from '../title';
|
|
16
18
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
17
|
-
|
|
18
|
-
var addCaseSpy =
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
beforeEach(function () {
|
|
20
|
+
var addCaseSpy = cy.spy().as('addCaseSpy');
|
|
21
|
+
var addLinkSpy = cy.spy().as('addLinkSpy');
|
|
22
|
+
cy.viewport(1024, 768); // medium breakpoint
|
|
23
|
+
cy.realMount(___EmotionJSX(EuiEmptyPrompt, {
|
|
21
24
|
iconType: "logoSecurity",
|
|
22
25
|
title: ___EmotionJSX("h2", null, "Start adding cases"),
|
|
23
26
|
body: ___EmotionJSX("p", null, "Add a new case or change your filter settings."),
|
|
@@ -32,15 +35,6 @@ var EmptyPrompt = function EmptyPrompt(_ref) {
|
|
|
32
35
|
href: "#",
|
|
33
36
|
onClick: addLinkSpy
|
|
34
37
|
}, "Read the docs"))
|
|
35
|
-
});
|
|
36
|
-
};
|
|
37
|
-
beforeEach(function () {
|
|
38
|
-
var addCaseSpy = cy.spy().as('addCaseSpy');
|
|
39
|
-
var addLinkSpy = cy.spy().as('addLinkSpy');
|
|
40
|
-
cy.viewport(1024, 768); // medium breakpoint
|
|
41
|
-
cy.realMount(___EmotionJSX(EmptyPrompt, {
|
|
42
|
-
addCaseSpy: addCaseSpy,
|
|
43
|
-
addLinkSpy: addLinkSpy
|
|
44
38
|
}));
|
|
45
39
|
});
|
|
46
40
|
describe('EuiEmptyPrompt', function () {
|
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
* Side Public License, v 1.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
/// <reference types="
|
|
9
|
+
/// <reference types="cypress" />
|
|
10
|
+
/// <reference types="cypress-real-events" />
|
|
11
|
+
/// <reference types="../../../cypress/support" />
|
|
10
12
|
|
|
11
13
|
import React from 'react';
|
|
12
14
|
import { EuiButton } from '../button';
|
|
@@ -10,7 +10,9 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
10
10
|
* Side Public License, v 1.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
/// <reference types="
|
|
13
|
+
/// <reference types="cypress" />
|
|
14
|
+
/// <reference types="cypress-real-events" />
|
|
15
|
+
/// <reference types="../../../cypress/support" />
|
|
14
16
|
|
|
15
17
|
import React, { useState } from 'react';
|
|
16
18
|
import { EuiExpression } from './expression';
|
|
@@ -7,14 +7,15 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
7
7
|
* Side Public License, v 1.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
/// <reference types="
|
|
10
|
+
/// <reference types="cypress" />
|
|
11
|
+
/// <reference types="cypress-real-events" />
|
|
12
|
+
/// <reference types="../../../cypress/support" />
|
|
11
13
|
|
|
12
14
|
import React, { useState } from 'react';
|
|
13
|
-
import { EuiFilterButton } from './filter_button';
|
|
14
|
-
import { EuiFilterGroup } from './filter_group';
|
|
15
15
|
import { EuiPopover, EuiPopoverTitle } from '../popover';
|
|
16
16
|
import { EuiSelectable } from '../selectable';
|
|
17
17
|
import { useGeneratedHtmlId } from '../../services';
|
|
18
|
+
import { EuiFilterGroup, EuiFilterButton } from './index';
|
|
18
19
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
19
20
|
describe('EuiFilterGroup single filter example', function () {
|
|
20
21
|
var SingleFilter = function SingleFilter() {
|
|
@@ -10,7 +10,9 @@ var _excluded = ["children"];
|
|
|
10
10
|
* Side Public License, v 1.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
/// <reference types="
|
|
13
|
+
/// <reference types="cypress" />
|
|
14
|
+
/// <reference types="cypress-real-events" />
|
|
15
|
+
/// <reference types="../../../cypress/support" />
|
|
14
16
|
|
|
15
17
|
import React, { useState } from 'react';
|
|
16
18
|
import { EuiFlyout } from './flyout';
|
|
@@ -8,7 +8,9 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
8
8
|
* Side Public License, v 1.
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
/// <reference types="
|
|
11
|
+
/// <reference types="cypress" />
|
|
12
|
+
/// <reference types="cypress-real-events" />
|
|
13
|
+
/// <reference types="../../../cypress/support" />
|
|
12
14
|
|
|
13
15
|
import React, { useState } from 'react';
|
|
14
16
|
import { EuiBadge } from '../badge';
|
|
@@ -10,7 +10,9 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
10
10
|
* Side Public License, v 1.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
/// <reference types="
|
|
13
|
+
/// <reference types="cypress" />
|
|
14
|
+
/// <reference types="cypress-real-events" />
|
|
15
|
+
/// <reference types="../../../../cypress/support" />
|
|
14
16
|
|
|
15
17
|
import React, { useState } from 'react';
|
|
16
18
|
import { EuiCheckboxGroup } from './checkbox_group';
|
|
@@ -196,8 +196,10 @@ export var EuiFilePicker = /*#__PURE__*/function (_Component) {
|
|
|
196
196
|
id: promptId
|
|
197
197
|
}, ___EmotionJSX(EuiIcon, {
|
|
198
198
|
className: "euiFilePicker__icon",
|
|
199
|
-
color: disabled ? 'subdued' : 'primary'
|
|
200
|
-
|
|
199
|
+
color: isInvalid ? 'danger' : disabled ? 'subdued' : 'primary' // eslint-disable-line no-nested-ternary
|
|
200
|
+
,
|
|
201
|
+
|
|
202
|
+
type: isInvalid ? 'alert' : 'importAction',
|
|
201
203
|
size: normalFormControl ? 'm' : 'l',
|
|
202
204
|
"aria-hidden": "true"
|
|
203
205
|
}), ___EmotionJSX("div", {
|
|
@@ -7,7 +7,9 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
7
7
|
* Side Public License, v 1.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
/// <reference types="
|
|
10
|
+
/// <reference types="cypress" />
|
|
11
|
+
/// <reference types="cypress-real-events" />
|
|
12
|
+
/// <reference types="../../../../cypress/support" />
|
|
11
13
|
|
|
12
14
|
import React, { useState } from 'react';
|
|
13
15
|
import { EuiRadioGroup } from './radio_group';
|
|
@@ -35,14 +37,11 @@ var RadioGroup = function RadioGroup() {
|
|
|
35
37
|
_useState2 = _slicedToArray(_useState, 2),
|
|
36
38
|
radioIdSelected = _useState2[0],
|
|
37
39
|
setRadioIdSelected = _useState2[1];
|
|
38
|
-
var _onChange = function onChange(optionId) {
|
|
39
|
-
setRadioIdSelected(optionId);
|
|
40
|
-
};
|
|
41
40
|
return ___EmotionJSX(EuiRadioGroup, {
|
|
42
41
|
options: radios,
|
|
43
42
|
idSelected: radioIdSelected,
|
|
44
43
|
onChange: function onChange(id) {
|
|
45
|
-
return
|
|
44
|
+
return setRadioIdSelected(id);
|
|
46
45
|
},
|
|
47
46
|
name: "radio group",
|
|
48
47
|
legend: {
|
|
@@ -7,7 +7,9 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
7
7
|
* Side Public License, v 1.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
/// <reference types="
|
|
10
|
+
/// <reference types="cypress" />
|
|
11
|
+
/// <reference types="cypress-real-events" />
|
|
12
|
+
/// <reference types="../../../../cypress/support" />
|
|
11
13
|
|
|
12
14
|
import React, { useState } from 'react';
|
|
13
15
|
import { EuiDualRange } from './dual_range';
|
|
@@ -7,7 +7,9 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
7
7
|
* Side Public License, v 1.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
/// <reference types="
|
|
10
|
+
/// <reference types="cypress" />
|
|
11
|
+
/// <reference types="cypress-real-events" />
|
|
12
|
+
/// <reference types="../../../../cypress/support" />
|
|
11
13
|
|
|
12
14
|
import React, { useState } from 'react';
|
|
13
15
|
import { EuiSwitch } from './switch';
|
|
@@ -17,14 +19,11 @@ var Switch = function Switch() {
|
|
|
17
19
|
_useState2 = _slicedToArray(_useState, 2),
|
|
18
20
|
checked = _useState2[0],
|
|
19
21
|
setChecked = _useState2[1];
|
|
20
|
-
var _onChange = function onChange(e) {
|
|
21
|
-
setChecked(e.target.checked);
|
|
22
|
-
};
|
|
23
22
|
return ___EmotionJSX(EuiSwitch, {
|
|
24
23
|
label: "Malware protection",
|
|
25
24
|
checked: checked,
|
|
26
25
|
onChange: function onChange(e) {
|
|
27
|
-
return
|
|
26
|
+
return setChecked(e.target.checked);
|
|
28
27
|
}
|
|
29
28
|
});
|
|
30
29
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["children", "className", "compressed", "fullWidth", "id", "inputRef", "isInvalid", "name", "placeholder", "resize", "rows"];
|
|
3
|
+
var _excluded = ["children", "className", "compressed", "fullWidth", "id", "inputRef", "isLoading", "isInvalid", "name", "placeholder", "resize", "rows"];
|
|
4
4
|
/*
|
|
5
5
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
6
6
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -11,6 +11,7 @@ var _excluded = ["children", "className", "compressed", "fullWidth", "id", "inpu
|
|
|
11
11
|
|
|
12
12
|
import React from 'react';
|
|
13
13
|
import classNames from 'classnames';
|
|
14
|
+
import { EuiFormControlLayout } from '../form_control_layout';
|
|
14
15
|
import { EuiValidatableControl } from '../validatable_control';
|
|
15
16
|
import { useFormContext } from '../eui_form_context';
|
|
16
17
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
@@ -31,6 +32,7 @@ export 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 @@ export var EuiTextArea = function EuiTextArea(props) {
|
|
|
50
52
|
} else {
|
|
51
53
|
definedRows = 6;
|
|
52
54
|
}
|
|
53
|
-
return ___EmotionJSX(
|
|
55
|
+
return ___EmotionJSX(EuiFormControlLayout, {
|
|
56
|
+
fullWidth: fullWidth,
|
|
57
|
+
isLoading: isLoading,
|
|
58
|
+
isInvalid: isInvalid,
|
|
59
|
+
className: "euiFormControlLayout--euiTextArea"
|
|
60
|
+
}, ___EmotionJSX(EuiValidatableControl, {
|
|
54
61
|
isInvalid: isInvalid
|
|
55
62
|
}, ___EmotionJSX("textarea", _extends({
|
|
56
63
|
className: classes
|
|
@@ -60,5 +67,5 @@ export var EuiTextArea = function EuiTextArea(props) {
|
|
|
60
67
|
id: id,
|
|
61
68
|
ref: inputRef,
|
|
62
69
|
placeholder: placeholder
|
|
63
|
-
}), children));
|
|
70
|
+
}), children)));
|
|
64
71
|
};
|
|
@@ -10,6 +10,12 @@ import { Children, cloneElement, useRef, useEffect, useCallback } from 'react';
|
|
|
10
10
|
function isMutableRef(ref) {
|
|
11
11
|
return ref != null && ref.hasOwnProperty('current');
|
|
12
12
|
}
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* The `EuiValidatableControl` component should be used in scenarios where
|
|
16
|
+
* we can render the validated `<input>` as its direct child.
|
|
17
|
+
*/
|
|
18
|
+
|
|
13
19
|
export var EuiValidatableControl = function EuiValidatableControl(_ref) {
|
|
14
20
|
var isInvalid = _ref.isInvalid,
|
|
15
21
|
children = _ref.children;
|
|
@@ -26,19 +32,53 @@ export var EuiValidatableControl = function EuiValidatableControl(_ref) {
|
|
|
26
32
|
childRef.current = element;
|
|
27
33
|
}
|
|
28
34
|
}, [childRef]);
|
|
35
|
+
useSetControlValidity({
|
|
36
|
+
controlEl: control.current,
|
|
37
|
+
isInvalid: isInvalid
|
|
38
|
+
});
|
|
39
|
+
return /*#__PURE__*/cloneElement(child, {
|
|
40
|
+
ref: replacedRef,
|
|
41
|
+
'aria-invalid': isInvalid
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* The `UseEuiValidatableControl` hook should be used in scenarios where
|
|
47
|
+
* we *cannot* control where the validated `<input>` is rendered (e.g., ReactDatePicker)
|
|
48
|
+
* and instead need to access the input via a ref and pass the element in directly
|
|
49
|
+
*/
|
|
50
|
+
|
|
51
|
+
export var useEuiValidatableControl = function useEuiValidatableControl(_ref2) {
|
|
52
|
+
var isInvalid = _ref2.isInvalid,
|
|
53
|
+
controlEl = _ref2.controlEl;
|
|
54
|
+
useSetControlValidity({
|
|
55
|
+
controlEl: controlEl,
|
|
56
|
+
isInvalid: isInvalid
|
|
57
|
+
});
|
|
29
58
|
useEffect(function () {
|
|
30
|
-
if (
|
|
31
|
-
|
|
59
|
+
if (!controlEl) return;
|
|
60
|
+
if (typeof isInvalid === 'boolean') {
|
|
61
|
+
controlEl.setAttribute('aria-invalid', String(isInvalid));
|
|
62
|
+
} else {
|
|
63
|
+
controlEl.removeAttribute('aria-invalid');
|
|
32
64
|
}
|
|
65
|
+
}, [isInvalid, controlEl]);
|
|
66
|
+
};
|
|
33
67
|
|
|
68
|
+
/**
|
|
69
|
+
* Internal `setCustomValidity` helper
|
|
70
|
+
*/
|
|
71
|
+
var useSetControlValidity = function useSetControlValidity(_ref3) {
|
|
72
|
+
var controlEl = _ref3.controlEl,
|
|
73
|
+
isInvalid = _ref3.isInvalid;
|
|
74
|
+
useEffect(function () {
|
|
75
|
+
if (controlEl == null || typeof controlEl.setCustomValidity !== 'function') {
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
34
78
|
if (isInvalid) {
|
|
35
|
-
|
|
79
|
+
controlEl.setCustomValidity('Invalid');
|
|
36
80
|
} else {
|
|
37
|
-
|
|
81
|
+
controlEl.setCustomValidity('');
|
|
38
82
|
}
|
|
39
|
-
});
|
|
40
|
-
return /*#__PURE__*/cloneElement(child, {
|
|
41
|
-
ref: replacedRef,
|
|
42
|
-
'aria-invalid': isInvalid
|
|
43
|
-
});
|
|
83
|
+
}, [isInvalid, controlEl]);
|
|
44
84
|
};
|
|
@@ -7,7 +7,9 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
7
7
|
* Side Public License, v 1.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
/// <reference types="
|
|
10
|
+
/// <reference types="cypress" />
|
|
11
|
+
/// <reference types="cypress-real-events" />
|
|
12
|
+
/// <reference types="../../../cypress/support" />
|
|
11
13
|
|
|
12
14
|
import React, { useState } from 'react';
|
|
13
15
|
import { EuiAvatar } from '../avatar';
|
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
* Side Public License, v 1.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
/// <reference types="
|
|
9
|
+
/// <reference types="cypress" />
|
|
10
|
+
/// <reference types="cypress-real-events" />
|
|
11
|
+
/// <reference types="../../../cypress/support" />
|
|
10
12
|
|
|
11
13
|
import React from 'react';
|
|
12
14
|
import { EuiIcon } from './icon';
|
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
* Side Public License, v 1.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
/// <reference types="
|
|
9
|
+
/// <reference types="cypress" />
|
|
10
|
+
/// <reference types="cypress-real-events" />
|
|
11
|
+
/// <reference types="../../../cypress/support" />
|
|
10
12
|
|
|
11
13
|
import React from 'react';
|
|
12
14
|
import { EuiIcon } from './icon';
|
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
* Side Public License, v 1.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
/// <reference types="
|
|
9
|
+
/// <reference types="cypress" />
|
|
10
|
+
/// <reference types="cypress-real-events" />
|
|
11
|
+
/// <reference types="../../../cypress/support" />
|
|
10
12
|
|
|
11
13
|
import React from 'react';
|
|
12
14
|
import { EuiIcon } from './icon';
|
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
* Side Public License, v 1.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
/// <reference types="
|
|
9
|
+
/// <reference types="cypress" />
|
|
10
|
+
/// <reference types="cypress-real-events" />
|
|
11
|
+
/// <reference types="../../../cypress/support" />
|
|
10
12
|
|
|
11
13
|
import React from 'react';
|
|
12
14
|
import { EuiIcon } from './icon';
|
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
* Side Public License, v 1.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
/// <reference types="
|
|
9
|
+
/// <reference types="cypress" />
|
|
10
|
+
/// <reference types="cypress-real-events" />
|
|
11
|
+
/// <reference types="../../../cypress/support" />
|
|
10
12
|
|
|
11
13
|
import React from 'react';
|
|
12
14
|
import { EuiIcon } from './icon';
|
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
* Side Public License, v 1.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
/// <reference types="
|
|
9
|
+
/// <reference types="cypress" />
|
|
10
|
+
/// <reference types="cypress-real-events" />
|
|
11
|
+
/// <reference types="../../../cypress/support" />
|
|
10
12
|
|
|
11
13
|
import React from 'react';
|
|
12
14
|
import { EuiIcon } from './icon';
|
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
* Side Public License, v 1.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
/// <reference types="
|
|
9
|
+
/// <reference types="cypress" />
|
|
10
|
+
/// <reference types="cypress-real-events" />
|
|
11
|
+
/// <reference types="../../../cypress/support" />
|
|
10
12
|
|
|
11
13
|
import React from 'react';
|
|
12
14
|
import { EuiImage } from './image';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
3
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
4
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
5
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
6
|
+
* Side Public License, v 1.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
export { EuiInlineEditText } from './inline_edit_text';
|
|
10
|
+
export { EuiInlineEditTitle } from './inline_edit_title';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
3
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
4
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
5
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
6
|
+
* Side Public License, v 1.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { css } from '@emotion/react';
|
|
10
|
+
export var euiInlineEditStyles = function euiInlineEditStyles(_ref) {
|
|
11
|
+
var euiTheme = _ref.euiTheme;
|
|
12
|
+
return {
|
|
13
|
+
euiInlineEdit: /*#__PURE__*/css("color:", euiTheme.colors.primaryText, ";;label:euiInlineEdit;")
|
|
14
|
+
};
|
|
15
|
+
};
|