@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
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>;
|
|
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
|
-
|
|
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
|
|
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 {
|
|
10405
|
+
import { Component, ChangeEventHandler, FocusEventHandler, KeyboardEventHandler, RefCallback } from 'react';
|
|
10385
10406
|
import AutosizeInput from 'react-input-autosize';
|
|
10386
|
-
import {
|
|
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
|
|
10429
|
+
onRemoveOption: OptionHandler<T>;
|
|
10409
10430
|
placeholder?: string;
|
|
10410
10431
|
rootId: ReturnType<typeof htmlIdGenerator>;
|
|
10411
10432
|
searchValue: string;
|
|
10412
|
-
selectedOptions
|
|
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 {
|
|
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
|
|
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
|
|
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":
|
|
890
|
+
"line": 977,
|
|
891
891
|
"column": 10,
|
|
892
|
-
"index":
|
|
892
|
+
"index": 27944
|
|
893
893
|
},
|
|
894
894
|
"end": {
|
|
895
|
-
"line":
|
|
895
|
+
"line": 980,
|
|
896
896
|
"column": 11,
|
|
897
|
-
"index":
|
|
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="
|
|
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
|
-
|
|
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="
|
|
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="
|
|
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
|