@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
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.SMALL_SIZE_FORM = exports.MEDIUM_SIZE_FORM = exports.EuiInlineEditForm = void 0;
|
|
9
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
var _form = require("../form");
|
|
14
|
+
var _button = require("../button");
|
|
15
|
+
var _flex = require("../flex");
|
|
16
|
+
var _i18n = require("../i18n");
|
|
17
|
+
var _accessibility = require("../../services/accessibility");
|
|
18
|
+
var _react2 = require("@emotion/react");
|
|
19
|
+
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); }
|
|
20
|
+
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; }
|
|
21
|
+
/*
|
|
22
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
23
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
24
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
25
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
26
|
+
* Side Public License, v 1.
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
var SMALL_SIZE_FORM = {
|
|
30
|
+
iconSize: 's',
|
|
31
|
+
compressed: true,
|
|
32
|
+
buttonSize: 's'
|
|
33
|
+
};
|
|
34
|
+
exports.SMALL_SIZE_FORM = SMALL_SIZE_FORM;
|
|
35
|
+
var MEDIUM_SIZE_FORM = {
|
|
36
|
+
iconSize: 'm',
|
|
37
|
+
compressed: false,
|
|
38
|
+
buttonSize: 'm'
|
|
39
|
+
};
|
|
40
|
+
exports.MEDIUM_SIZE_FORM = MEDIUM_SIZE_FORM;
|
|
41
|
+
var EuiInlineEditForm = function EuiInlineEditForm(_ref) {
|
|
42
|
+
var className = _ref.className,
|
|
43
|
+
children = _ref.children,
|
|
44
|
+
sizes = _ref.sizes,
|
|
45
|
+
defaultValue = _ref.defaultValue,
|
|
46
|
+
onConfirm = _ref.onConfirm,
|
|
47
|
+
inputAriaLabel = _ref.inputAriaLabel,
|
|
48
|
+
saveButtonAriaLabel = _ref.saveButtonAriaLabel,
|
|
49
|
+
cancelButtonAriaLabel = _ref.cancelButtonAriaLabel,
|
|
50
|
+
startWithEditOpen = _ref.startWithEditOpen,
|
|
51
|
+
readModeProps = _ref.readModeProps,
|
|
52
|
+
editModeProps = _ref.editModeProps;
|
|
53
|
+
var classes = (0, _classnames.default)('euiInlineEdit', className);
|
|
54
|
+
|
|
55
|
+
// Styles to come later! (Styling editMode text to match the size of its readMode counterpart)
|
|
56
|
+
/*const theme = useEuiTheme();
|
|
57
|
+
const styles = euiInlineEditStyles(theme);
|
|
58
|
+
const cssStyles = [styles.euiInlineEdit];*/
|
|
59
|
+
|
|
60
|
+
var defaultSaveButtonAriaLabel = (0, _i18n.useEuiI18n)('euiInlineEditForm.saveButtonAriaLabel', 'Save edit');
|
|
61
|
+
var defaultCancelButtonAriaLabel = (0, _i18n.useEuiI18n)('euiInlineEditForm.cancelButtonAriaLabel', 'Cancel edit');
|
|
62
|
+
var _useState = (0, _react.useState)(false || startWithEditOpen),
|
|
63
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
64
|
+
isEditing = _useState2[0],
|
|
65
|
+
setIsEditing = _useState2[1];
|
|
66
|
+
var inlineEditInputId = (0, _accessibility.useGeneratedHtmlId)({
|
|
67
|
+
prefix: '__inlineEditInput'
|
|
68
|
+
});
|
|
69
|
+
var _useState3 = (0, _react.useState)(defaultValue),
|
|
70
|
+
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
71
|
+
editModeValue = _useState4[0],
|
|
72
|
+
setEditModeValue = _useState4[1];
|
|
73
|
+
var _useState5 = (0, _react.useState)(defaultValue),
|
|
74
|
+
_useState6 = (0, _slicedToArray2.default)(_useState5, 2),
|
|
75
|
+
readModeValue = _useState6[0],
|
|
76
|
+
setReadModeValue = _useState6[1];
|
|
77
|
+
var cancelInlineEdit = function cancelInlineEdit() {
|
|
78
|
+
setEditModeValue(readModeValue);
|
|
79
|
+
setIsEditing(!isEditing);
|
|
80
|
+
};
|
|
81
|
+
var saveInlineEditValue = function saveInlineEditValue() {
|
|
82
|
+
if (editModeValue && onConfirm && !onConfirm()) {
|
|
83
|
+
// If there is text, an onConfirm method is present, and it has returned false, cancel the action
|
|
84
|
+
return;
|
|
85
|
+
} else if (editModeValue) {
|
|
86
|
+
setReadModeValue(editModeValue);
|
|
87
|
+
setIsEditing(!isEditing);
|
|
88
|
+
} else {
|
|
89
|
+
// If there's no text, cancel the action, reset the input text, and return to readMode
|
|
90
|
+
cancelInlineEdit();
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
var editModeForm = (0, _react2.jsx)(_form.EuiForm, {
|
|
94
|
+
fullWidth: true
|
|
95
|
+
}, (0, _react2.jsx)(_flex.EuiFlexGroup, {
|
|
96
|
+
gutterSize: "s"
|
|
97
|
+
}, (0, _react2.jsx)(_flex.EuiFlexItem, null, (0, _react2.jsx)(_form.EuiFieldText, (0, _extends2.default)({
|
|
98
|
+
id: inlineEditInputId,
|
|
99
|
+
value: editModeValue,
|
|
100
|
+
onChange: function onChange(e) {
|
|
101
|
+
setEditModeValue(e.target.value);
|
|
102
|
+
},
|
|
103
|
+
"aria-label": inputAriaLabel,
|
|
104
|
+
autoFocus: true,
|
|
105
|
+
compressed: sizes.compressed
|
|
106
|
+
}, editModeProps))), (0, _react2.jsx)(_flex.EuiFlexItem, {
|
|
107
|
+
grow: false,
|
|
108
|
+
className: classes
|
|
109
|
+
}, (0, _react2.jsx)(_form.EuiFormRow, null, (0, _react2.jsx)(_button.EuiButtonIcon, {
|
|
110
|
+
iconType: "check",
|
|
111
|
+
"aria-label": saveButtonAriaLabel || defaultSaveButtonAriaLabel,
|
|
112
|
+
onClick: saveInlineEditValue,
|
|
113
|
+
color: "success",
|
|
114
|
+
display: "base",
|
|
115
|
+
size: sizes.buttonSize,
|
|
116
|
+
iconSize: sizes.iconSize
|
|
117
|
+
}))), (0, _react2.jsx)(_flex.EuiFlexItem, {
|
|
118
|
+
grow: false
|
|
119
|
+
}, (0, _react2.jsx)(_form.EuiFormRow, null, (0, _react2.jsx)(_button.EuiButtonIcon, {
|
|
120
|
+
iconType: "cross",
|
|
121
|
+
"aria-label": cancelButtonAriaLabel || defaultCancelButtonAriaLabel,
|
|
122
|
+
onClick: cancelInlineEdit,
|
|
123
|
+
color: "danger",
|
|
124
|
+
display: "base",
|
|
125
|
+
size: sizes.buttonSize,
|
|
126
|
+
iconSize: sizes.iconSize
|
|
127
|
+
})))));
|
|
128
|
+
var readModeElement = (0, _react2.jsx)(_button.EuiButtonEmpty, (0, _extends2.default)({
|
|
129
|
+
color: "text",
|
|
130
|
+
iconType: "pencil",
|
|
131
|
+
iconSide: "right",
|
|
132
|
+
autoFocus: true,
|
|
133
|
+
flush: "both",
|
|
134
|
+
iconSize: sizes.iconSize,
|
|
135
|
+
size: sizes.buttonSize,
|
|
136
|
+
onClick: function onClick() {
|
|
137
|
+
setIsEditing(!isEditing);
|
|
138
|
+
}
|
|
139
|
+
}, readModeProps), children(readModeValue));
|
|
140
|
+
return (0, _react2.jsx)("div", {
|
|
141
|
+
className: classes
|
|
142
|
+
}, isEditing ? editModeForm : readModeElement);
|
|
143
|
+
};
|
|
144
|
+
exports.EuiInlineEditForm = EuiInlineEditForm;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.EuiInlineEditText = void 0;
|
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
12
|
+
var _text = require("../text");
|
|
13
|
+
var _inline_edit_form = require("./inline_edit_form");
|
|
14
|
+
var _react2 = require("@emotion/react");
|
|
15
|
+
var _excluded = ["children", "className", "size", "defaultValue", "onConfirm", "inputAriaLabel", "saveButtonAriaLabel", "cancelButtonAriaLabel", "startWithEditOpen", "readModeProps", "editModeProps"];
|
|
16
|
+
var EuiInlineEditText = function EuiInlineEditText(_ref) {
|
|
17
|
+
var children = _ref.children,
|
|
18
|
+
className = _ref.className,
|
|
19
|
+
_ref$size = _ref.size,
|
|
20
|
+
size = _ref$size === void 0 ? 'm' : _ref$size,
|
|
21
|
+
defaultValue = _ref.defaultValue,
|
|
22
|
+
onConfirm = _ref.onConfirm,
|
|
23
|
+
inputAriaLabel = _ref.inputAriaLabel,
|
|
24
|
+
saveButtonAriaLabel = _ref.saveButtonAriaLabel,
|
|
25
|
+
cancelButtonAriaLabel = _ref.cancelButtonAriaLabel,
|
|
26
|
+
startWithEditOpen = _ref.startWithEditOpen,
|
|
27
|
+
readModeProps = _ref.readModeProps,
|
|
28
|
+
editModeProps = _ref.editModeProps,
|
|
29
|
+
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
30
|
+
var classes = (0, _classnames.default)('euiInlineEditText', className);
|
|
31
|
+
var isSmallSize = ['xs', 's'].includes(size);
|
|
32
|
+
var sizes = isSmallSize ? _inline_edit_form.SMALL_SIZE_FORM : _inline_edit_form.MEDIUM_SIZE_FORM;
|
|
33
|
+
var formProps = {
|
|
34
|
+
sizes: sizes,
|
|
35
|
+
defaultValue: defaultValue,
|
|
36
|
+
onConfirm: onConfirm,
|
|
37
|
+
inputAriaLabel: inputAriaLabel,
|
|
38
|
+
saveButtonAriaLabel: saveButtonAriaLabel,
|
|
39
|
+
cancelButtonAriaLabel: cancelButtonAriaLabel,
|
|
40
|
+
startWithEditOpen: startWithEditOpen,
|
|
41
|
+
readModeProps: readModeProps,
|
|
42
|
+
editModeProps: editModeProps
|
|
43
|
+
};
|
|
44
|
+
return (0, _react2.jsx)(_inline_edit_form.EuiInlineEditForm, (0, _extends2.default)({
|
|
45
|
+
className: classes
|
|
46
|
+
}, rest, formProps), function (textReadModeValue) {
|
|
47
|
+
return (0, _react2.jsx)(_text.EuiText, {
|
|
48
|
+
size: size
|
|
49
|
+
}, textReadModeValue);
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
exports.EuiInlineEditText = EuiInlineEditText;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.HEADINGS = exports.EuiInlineEditTitle = void 0;
|
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
12
|
+
var _title = require("../title");
|
|
13
|
+
var _inline_edit_form = require("./inline_edit_form");
|
|
14
|
+
var _react2 = require("@emotion/react");
|
|
15
|
+
var _excluded = ["children", "className", "size", "heading", "defaultValue", "onConfirm", "inputAriaLabel", "saveButtonAriaLabel", "cancelButtonAriaLabel", "startWithEditOpen", "readModeProps", "editModeProps"];
|
|
16
|
+
var HEADINGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
|
|
17
|
+
exports.HEADINGS = HEADINGS;
|
|
18
|
+
var EuiInlineEditTitle = function EuiInlineEditTitle(_ref) {
|
|
19
|
+
var children = _ref.children,
|
|
20
|
+
className = _ref.className,
|
|
21
|
+
_ref$size = _ref.size,
|
|
22
|
+
size = _ref$size === void 0 ? 'm' : _ref$size,
|
|
23
|
+
heading = _ref.heading,
|
|
24
|
+
defaultValue = _ref.defaultValue,
|
|
25
|
+
onConfirm = _ref.onConfirm,
|
|
26
|
+
inputAriaLabel = _ref.inputAriaLabel,
|
|
27
|
+
saveButtonAriaLabel = _ref.saveButtonAriaLabel,
|
|
28
|
+
cancelButtonAriaLabel = _ref.cancelButtonAriaLabel,
|
|
29
|
+
_ref$startWithEditOpe = _ref.startWithEditOpen,
|
|
30
|
+
startWithEditOpen = _ref$startWithEditOpe === void 0 ? false : _ref$startWithEditOpe,
|
|
31
|
+
readModeProps = _ref.readModeProps,
|
|
32
|
+
editModeProps = _ref.editModeProps,
|
|
33
|
+
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
34
|
+
var classes = (0, _classnames.default)('euiInlineEditTitle', className);
|
|
35
|
+
var H = heading;
|
|
36
|
+
var isSmallSize = ['xxxs', 'xxs', 'xs', 's'].includes(size);
|
|
37
|
+
var sizes = isSmallSize ? _inline_edit_form.SMALL_SIZE_FORM : _inline_edit_form.MEDIUM_SIZE_FORM;
|
|
38
|
+
var formProps = {
|
|
39
|
+
sizes: sizes,
|
|
40
|
+
defaultValue: defaultValue,
|
|
41
|
+
onConfirm: onConfirm,
|
|
42
|
+
inputAriaLabel: inputAriaLabel,
|
|
43
|
+
saveButtonAriaLabel: saveButtonAriaLabel,
|
|
44
|
+
cancelButtonAriaLabel: cancelButtonAriaLabel,
|
|
45
|
+
startWithEditOpen: startWithEditOpen,
|
|
46
|
+
readModeProps: readModeProps,
|
|
47
|
+
editModeProps: editModeProps
|
|
48
|
+
};
|
|
49
|
+
return (0, _react2.jsx)(_inline_edit_form.EuiInlineEditForm, (0, _extends2.default)({
|
|
50
|
+
className: classes
|
|
51
|
+
}, rest, formProps), function (titleReadModeValue) {
|
|
52
|
+
return (0, _react2.jsx)(_title.EuiTitle, {
|
|
53
|
+
size: size
|
|
54
|
+
}, (0, _react2.jsx)(H, null, titleReadModeValue));
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
exports.EuiInlineEditTitle = EuiInlineEditTitle;
|
|
@@ -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="
|
|
22
|
+
/// <reference types="cypress" />
|
|
23
|
+
/// <reference types="cypress-real-events" />
|
|
24
|
+
/// <reference types="../../../cypress/support" />
|
|
23
25
|
|
|
24
26
|
var KeyPadMenu = function KeyPadMenu() {
|
|
25
27
|
var keypadButtonId__1 = (0, _services.useGeneratedHtmlId)({
|
|
@@ -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="
|
|
20
|
+
/// <reference types="cypress" />
|
|
21
|
+
/// <reference types="cypress-real-events" />
|
|
22
|
+
/// <reference types="../../../cypress/support" />
|
|
21
23
|
|
|
22
24
|
var Modal = function Modal() {
|
|
23
25
|
var _useState = (0, _react.useState)(false),
|
|
@@ -18,7 +18,9 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
18
18
|
* Side Public License, v 1.
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
|
-
/// <reference types="
|
|
21
|
+
/// <reference types="cypress" />
|
|
22
|
+
/// <reference types="cypress-real-events" />
|
|
23
|
+
/// <reference types="../../../cypress/support" />
|
|
22
24
|
|
|
23
25
|
var NotificationEvent = function NotificationEvent() {
|
|
24
26
|
var _useState = (0, _react.useState)(false),
|
|
@@ -13,7 +13,9 @@ var _react2 = require("@emotion/react");
|
|
|
13
13
|
* Side Public License, v 1.
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
|
-
/// <reference types="
|
|
16
|
+
/// <reference types="cypress" />
|
|
17
|
+
/// <reference types="cypress-real-events" />
|
|
18
|
+
/// <reference types="../../../../cypress/support" />
|
|
17
19
|
|
|
18
20
|
describe('EuiPageHeader', function () {
|
|
19
21
|
beforeEach(function () {
|
|
@@ -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="
|
|
19
|
+
/// <reference types="cypress" />
|
|
20
|
+
/// <reference types="cypress-real-events" />
|
|
21
|
+
/// <reference types="../../../cypress/support" />
|
|
20
22
|
|
|
21
23
|
var Pagination = function Pagination() {
|
|
22
24
|
var _useState = (0, _react.useState)(0),
|
|
@@ -18,7 +18,9 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
18
18
|
* Side Public License, v 1.
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
|
-
/// <reference types="
|
|
21
|
+
/// <reference types="cypress" />
|
|
22
|
+
/// <reference types="cypress-real-events" />
|
|
23
|
+
/// <reference types="../../../cypress/support" />
|
|
22
24
|
|
|
23
25
|
var Popover = function Popover() {
|
|
24
26
|
var _useState = (0, _react.useState)(false),
|
|
@@ -26,11 +26,11 @@ var EuiPopoverFooter = function EuiPopoverFooter(_ref) {
|
|
|
26
26
|
var _useContext = (0, _react.useContext)(_popover_panel.EuiPopoverPanelContext),
|
|
27
27
|
panelPadding = _useContext.paddingSize;
|
|
28
28
|
var euiTheme = (0, _services.useEuiTheme)();
|
|
29
|
-
var styles = (0, _popover_footer.euiPopoverFooterStyles)(euiTheme
|
|
29
|
+
var styles = (0, _popover_footer.euiPopoverFooterStyles)(euiTheme);
|
|
30
30
|
var paddingStyles = (0, _global_styling.useEuiPaddingCSS)();
|
|
31
|
-
var cssStyles = [styles.euiPopoverFooter,
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
var cssStyles = [styles.euiPopoverFooter, styles.panelPaddingSizes[panelPadding], paddingStyles[paddingSize || panelPadding] // If a paddingSize is not directly provided, inherit from the EuiPopoverPanel
|
|
32
|
+
];
|
|
33
|
+
|
|
34
34
|
var classes = (0, _classnames.default)('euiPopoverFooter', className);
|
|
35
35
|
return (0, _react2.jsx)("div", (0, _extends2.default)({
|
|
36
36
|
css: cssStyles,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.euiPopoverFooterStyles = void 0;
|
|
6
|
+
exports.panelPaddingOffset = exports.euiPopoverFooterStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _global_styling = require("../../global_styling");
|
|
9
9
|
/*
|
|
@@ -14,14 +14,26 @@ var _global_styling = require("../../global_styling");
|
|
|
14
14
|
* Side Public License, v 1.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
var euiPopoverFooterStyles = function euiPopoverFooterStyles(euiThemeContext
|
|
17
|
+
var euiPopoverFooterStyles = function euiPopoverFooterStyles(euiThemeContext) {
|
|
18
18
|
var euiTheme = euiThemeContext.euiTheme;
|
|
19
|
-
// If the popover's containing panel has padding applied,
|
|
20
|
-
// ensure the title expands to cover that padding and
|
|
21
|
-
var panelPaddingSize = (0, _global_styling.euiPaddingSize)(euiThemeContext, panelPadding);
|
|
22
19
|
return {
|
|
23
20
|
// Base
|
|
24
|
-
euiPopoverFooter: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiFontSize)(euiThemeContext, 's'), ";", (0, _global_styling.logicalCSS)('border-top', euiTheme.border.thin), "
|
|
21
|
+
euiPopoverFooter: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiFontSize)(euiThemeContext, 's'), ";", (0, _global_styling.logicalCSS)('border-top', euiTheme.border.thin), ";;label:euiPopoverFooter;"),
|
|
22
|
+
// If the popover's containing panel has padding applied,
|
|
23
|
+
// ensure the title expands to cover that padding via negative margins
|
|
24
|
+
panelPaddingSizes: {
|
|
25
|
+
none: /*#__PURE__*/(0, _react.css)(";label:none;"),
|
|
26
|
+
xs: /*#__PURE__*/(0, _react.css)(panelPaddingOffset(euiThemeContext, 'xs'), ";;label:xs;"),
|
|
27
|
+
s: /*#__PURE__*/(0, _react.css)(panelPaddingOffset(euiThemeContext, 's'), ";;label:s;"),
|
|
28
|
+
m: /*#__PURE__*/(0, _react.css)(panelPaddingOffset(euiThemeContext, 'm'), ";;label:m;"),
|
|
29
|
+
l: /*#__PURE__*/(0, _react.css)(panelPaddingOffset(euiThemeContext, 'l'), ";;label:l;"),
|
|
30
|
+
xl: /*#__PURE__*/(0, _react.css)(panelPaddingOffset(euiThemeContext, 'xl'), ";;label:xl;")
|
|
31
|
+
}
|
|
25
32
|
};
|
|
26
33
|
};
|
|
27
|
-
exports.euiPopoverFooterStyles = euiPopoverFooterStyles;
|
|
34
|
+
exports.euiPopoverFooterStyles = euiPopoverFooterStyles;
|
|
35
|
+
var panelPaddingOffset = function panelPaddingOffset(euiThemeContext, size) {
|
|
36
|
+
var panelPaddingSize = (0, _global_styling.euiPaddingSize)(euiThemeContext, size);
|
|
37
|
+
return (0, _global_styling.logicalShorthandCSS)('margin', "".concat(panelPaddingSize, " -").concat(panelPaddingSize, " -").concat(panelPaddingSize));
|
|
38
|
+
};
|
|
39
|
+
exports.panelPaddingOffset = panelPaddingOffset;
|
|
@@ -18,8 +18,9 @@ var _react2 = require("@emotion/react");
|
|
|
18
18
|
var _excluded = ["children", "className", "isOpen", "isAttached", "hasDragDrop", "position"];
|
|
19
19
|
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); }
|
|
20
20
|
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; }
|
|
21
|
+
var DEFAULT_PANEL_PADDING_SIZE = 'l';
|
|
21
22
|
var EuiPopoverPanelContext = /*#__PURE__*/(0, _react.createContext)({
|
|
22
|
-
paddingSize:
|
|
23
|
+
paddingSize: DEFAULT_PANEL_PADDING_SIZE
|
|
23
24
|
});
|
|
24
25
|
exports.EuiPopoverPanelContext = EuiPopoverPanelContext;
|
|
25
26
|
/**
|
|
@@ -34,8 +35,8 @@ var EuiPopoverPanel = function EuiPopoverPanel(_ref) {
|
|
|
34
35
|
hasDragDrop = _ref.hasDragDrop,
|
|
35
36
|
position = _ref.position,
|
|
36
37
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
37
|
-
var
|
|
38
|
-
|
|
38
|
+
var _rest$paddingSize = rest.paddingSize,
|
|
39
|
+
paddingSize = _rest$paddingSize === void 0 ? DEFAULT_PANEL_PADDING_SIZE : _rest$paddingSize;
|
|
39
40
|
var euiThemeContext = (0, _services.useEuiTheme)();
|
|
40
41
|
// Using BEM child class for BWC
|
|
41
42
|
var classes = (0, _classnames.default)('euiPopover__panel', className);
|
|
@@ -48,7 +49,9 @@ var EuiPopoverPanel = function EuiPopoverPanel(_ref) {
|
|
|
48
49
|
panelCSS = [].concat((0, _toConsumableArray2.default)(panelCSS), [styles.hasDragDrop.hasDragDrop, position && styles.hasDragDrop[position]]);
|
|
49
50
|
}
|
|
50
51
|
return (0, _react2.jsx)(EuiPopoverPanelContext.Provider, {
|
|
51
|
-
value:
|
|
52
|
+
value: {
|
|
53
|
+
paddingSize: paddingSize
|
|
54
|
+
}
|
|
52
55
|
}, (0, _react2.jsx)(_panel.EuiPanel, (0, _extends2.default)({
|
|
53
56
|
className: classes,
|
|
54
57
|
css: panelCSS,
|
|
@@ -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="
|
|
20
|
+
/// <reference types="cypress" />
|
|
21
|
+
/// <reference types="cypress-real-events" />
|
|
22
|
+
/// <reference types="../../../cypress/support" />
|
|
21
23
|
|
|
22
24
|
var Portal = function Portal() {
|
|
23
25
|
var _useState = (0, _react.useState)(false),
|
|
@@ -14,7 +14,9 @@ var _react2 = require("@emotion/react");
|
|
|
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 ProgressCommonProps = {
|
|
20
22
|
color: 'success',
|
|
@@ -14,7 +14,9 @@ var _react2 = require("@emotion/react");
|
|
|
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 text = (0, _react2.jsx)(_react.default.Fragment, null, (0, _react2.jsx)("p", null, _faker.faker.lorem.paragraphs()), (0, _react2.jsx)("p", null, _faker.faker.lorem.paragraphs()), (0, _react2.jsx)("p", null, _faker.faker.lorem.paragraphs()));
|
|
20
22
|
describe('Horizontal EuiResizableContainer', function () {
|
|
@@ -11,8 +11,8 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
var _basic_table = require("../basic_table");
|
|
12
12
|
var _flex = require("../flex");
|
|
13
13
|
var _health = require("../health");
|
|
14
|
-
var _search_bar = require("./search_bar");
|
|
15
14
|
var _spacer = require("../spacer");
|
|
15
|
+
var _search_bar = require("./search_bar");
|
|
16
16
|
var _react2 = require("@emotion/react");
|
|
17
17
|
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); }
|
|
18
18
|
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; }
|
|
@@ -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="
|
|
27
|
+
/// <reference types="cypress" />
|
|
28
|
+
/// <reference types="cypress-real-events" />
|
|
29
|
+
/// <reference types="../../../cypress/support" />
|
|
28
30
|
|
|
29
31
|
var tags = [{
|
|
30
32
|
name: 'marketing',
|
|
@@ -86,10 +88,6 @@ var SearchBar = function SearchBar() {
|
|
|
86
88
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
87
89
|
query = _useState2[0],
|
|
88
90
|
setQuery = _useState2[1];
|
|
89
|
-
var onChange = function onChange(_ref) {
|
|
90
|
-
var query = _ref.query;
|
|
91
|
-
return setQuery(query);
|
|
92
|
-
};
|
|
93
91
|
var renderSearch = function renderSearch() {
|
|
94
92
|
var filters = [{
|
|
95
93
|
type: 'field_value_toggle_group',
|
|
@@ -135,7 +133,10 @@ var SearchBar = function SearchBar() {
|
|
|
135
133
|
schema: schema
|
|
136
134
|
},
|
|
137
135
|
filters: filters,
|
|
138
|
-
onChange: onChange
|
|
136
|
+
onChange: function onChange(_ref) {
|
|
137
|
+
var query = _ref.query;
|
|
138
|
+
if (query) setQuery(query);
|
|
139
|
+
}
|
|
139
140
|
});
|
|
140
141
|
};
|
|
141
142
|
var renderTable = function renderTable() {
|
|
@@ -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="
|
|
22
|
+
/// <reference types="cypress" />
|
|
23
|
+
/// <reference types="cypress-real-events" />
|
|
24
|
+
/// <reference types="../../../cypress/support" />
|
|
23
25
|
|
|
24
26
|
var options = [{
|
|
25
27
|
label: 'Titan',
|
|
@@ -18,7 +18,9 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
18
18
|
* Side Public License, v 1.
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
|
-
/// <reference types="
|
|
21
|
+
/// <reference types="cypress" />
|
|
22
|
+
/// <reference types="cypress-real-events" />
|
|
23
|
+
/// <reference types="../../../cypress/support" />
|
|
22
24
|
|
|
23
25
|
describe('EuiSideNav', function () {
|
|
24
26
|
describe('Mobile EuiSideNav', function () {
|
|
@@ -12,7 +12,9 @@ var _react2 = require("@emotion/react");
|
|
|
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 TreeView = function TreeView() {
|
|
18
20
|
var items = [{
|
package/package.json
CHANGED
|
@@ -18,15 +18,13 @@
|
|
|
18
18
|
|
|
19
19
|
.euiComboBox__inputWrap {
|
|
20
20
|
@include euiFormControlStyle($includeStates: false, $includeSizes: true);
|
|
21
|
-
@include euiFormControlWithIcon($isIconOptional: true);
|
|
22
21
|
@include euiFormControlSize(auto, $includeAlternates: true);
|
|
22
|
+
|
|
23
23
|
padding: $euiSizeXS $euiSizeS;
|
|
24
|
+
padding-right: var(--eui-form-control-layout-icons-padding, $euiSizeS); /* 2 */
|
|
24
25
|
display: flex; /* 1 */
|
|
25
26
|
outline: none; // Fixes an intermittent focus ring in Firefox
|
|
26
27
|
|
|
27
|
-
// to override the padding added above
|
|
28
|
-
@include euiFormControlLayoutPadding(1); /* 2 */
|
|
29
|
-
|
|
30
28
|
.euiComboBoxPill {
|
|
31
29
|
$inputMinWidth: $euiSize;
|
|
32
30
|
|
|
@@ -47,22 +45,6 @@
|
|
|
47
45
|
cursor: text;
|
|
48
46
|
}
|
|
49
47
|
}
|
|
50
|
-
|
|
51
|
-
&.euiComboBox__inputWrap-isClearable {
|
|
52
|
-
@include euiFormControlLayoutPadding(2); /* 2 */
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
&.euiComboBox__inputWrap-isLoading {
|
|
56
|
-
@include euiFormControlLayoutPadding(2); /* 2 */
|
|
57
|
-
|
|
58
|
-
.euiComboBoxPlaceholder {
|
|
59
|
-
@include euiFormControlLayoutPadding(2); /* 2 */
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
&.euiComboBox__inputWrap-isLoading.euiComboBox__inputWrap-isClearable {
|
|
64
|
-
@include euiFormControlLayoutPadding(3); /* 2 */
|
|
65
|
-
}
|
|
66
48
|
}
|
|
67
49
|
|
|
68
50
|
/**
|
|
@@ -130,24 +112,6 @@
|
|
|
130
112
|
line-height: $euiFormControlCompressedHeight; /* 2 */
|
|
131
113
|
padding-top: 0;
|
|
132
114
|
padding-bottom: 0;
|
|
133
|
-
|
|
134
|
-
@include euiFormControlLayoutPadding(1, $compressed: true); /* 2 */
|
|
135
|
-
|
|
136
|
-
&.euiComboBox__inputWrap-isClearable {
|
|
137
|
-
@include euiFormControlLayoutPadding(2, $compressed: true); /* 2 */
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
&.euiComboBox__inputWrap-isLoading {
|
|
141
|
-
@include euiFormControlLayoutPadding(2, $compressed: true); /* 2 */
|
|
142
|
-
|
|
143
|
-
.euiComboBoxPlaceholder {
|
|
144
|
-
@include euiFormControlLayoutPadding(2, $compressed: true); /* 2 */
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
&.euiComboBox__inputWrap-isLoading.euiComboBox__inputWrap-isClearable {
|
|
149
|
-
@include euiFormControlLayoutPadding(3, $compressed: true); /* 2 */
|
|
150
|
-
}
|
|
151
115
|
}
|
|
152
116
|
}
|
|
153
117
|
|
|
@@ -60,6 +60,6 @@
|
|
|
60
60
|
align-items: center;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
.euiDatePickerRange--isInvalid .euiDatePickerRange__delimeter {
|
|
63
|
+
.euiDatePickerRange--isInvalid:not(.euiDatePickerRange--isDisabled):not(.euiDatePickerRange--readOnly) .euiDatePickerRange__delimeter {
|
|
64
64
|
@include euiFormControlInvalidStyle;
|
|
65
65
|
}
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
.euiFieldText {
|
|
2
2
|
@include euiFormControlStyle;
|
|
3
3
|
@include euiFormControlWithIcon($isIconOptional: true, $side: 'left');
|
|
4
|
-
|
|
5
|
-
/* Invalid state normally comes from :invalid, but several components
|
|
6
|
-
/* like EuiDatePicker need it toggled through an extra class.
|
|
7
|
-
*/
|
|
8
|
-
&.euiFieldText-isInvalid {
|
|
9
|
-
@include euiFormControlInvalidStyle;
|
|
10
|
-
}
|
|
11
4
|
}
|
|
12
5
|
|
|
13
6
|
.euiFieldText--withIcon.euiFieldText--compressed {
|