@elastic/eui 70.2.4 → 70.4.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 +0 -198
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +0 -198
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/accessibility/skip_link/skip_link.js +6 -5
- package/es/components/avatar/avatar.js +1 -1
- package/es/components/badge/badge.js +1 -1
- package/es/components/badge/beta_badge/beta_badge.js +12 -4
- package/es/components/badge/beta_badge/beta_badge.styles.js +25 -4
- package/es/components/basic_table/basic_table.js +1 -1
- package/es/components/basic_table/collapsed_item_actions.js +1 -1
- package/es/components/basic_table/in_memory_table.js +1 -1
- package/es/components/beacon/beacon.js +14 -4
- package/es/components/beacon/beacon.styles.js +14 -4
- package/es/components/button/_button_content_deprecated.js +1 -1
- package/es/components/button/button_display/_button_display.js +1 -1
- package/es/components/button/button_display/_button_display_content.js +1 -1
- package/es/components/button/button_empty/button_empty.js +1 -1
- package/es/components/button/button_group/button_group.js +1 -1
- package/es/components/button/button_group/button_group_button.js +1 -1
- package/es/components/button/button_icon/button_icon.js +1 -1
- package/es/components/call_out/call_out.js +1 -1
- package/es/components/card/card.js +7 -2
- package/es/components/card/card.styles.js +4 -4
- package/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
- package/es/components/comment_list/comment.js +2 -2
- package/es/components/comment_list/comment_event.js +1 -1
- package/es/components/comment_list/comment_list.js +2 -2
- package/es/components/comment_list/comment_timeline.js +1 -1
- package/es/components/datagrid/body/data_grid_body.js +13 -13
- package/es/components/datagrid/body/data_grid_cell.js +24 -24
- package/es/components/datagrid/body/header/data_grid_header_cell.js +12 -12
- package/es/components/datagrid/body/header/data_grid_header_row.js +13 -13
- package/es/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/es/components/datagrid/data_grid.js +13 -13
- package/es/components/datagrid/utils/in_memory.js +12 -12
- package/es/components/date_picker/date_picker.js +2 -2
- package/es/components/date_picker/date_picker_range.js +1 -1
- package/es/components/date_picker/super_date_picker/super_date_picker.a11y.js +109 -0
- package/es/components/description_list/description_list.styles.js +2 -2
- package/es/components/description_list/description_list_description.js +6 -2
- package/es/components/description_list/description_list_description.styles.js +2 -2
- package/es/components/description_list/description_list_title.styles.js +2 -2
- package/es/components/empty_prompt/empty_prompt.js +1 -1
- package/es/components/facet/facet_button.js +1 -1
- package/es/components/flex/flex_grid.styles.js +2 -2
- package/es/components/flex/flex_group.styles.js +2 -2
- package/es/components/flyout/flyout.a11y.js +92 -0
- package/es/components/flyout/flyout.styles.js +7 -7
- package/es/components/form/field_number/field_number.js +1 -1
- package/es/components/form/field_text/field_text.js +2 -2
- package/es/components/form/form_control_layout/form_control_layout.js +2 -2
- package/es/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
- package/es/components/form/form_control_layout/form_control_layout_icons.js +2 -2
- package/es/components/header/header_links/header_link.js +1 -1
- package/es/components/header/header_links/header_links.js +1 -1
- package/es/components/header/header_logo.js +1 -1
- package/es/components/icon/assets/filterInCircle.js +39 -0
- package/es/components/icon/icon.js +1 -1
- package/es/components/icon/icon_map.js +1 -0
- package/es/components/image/image_fullscreen_wrapper.styles.js +3 -11
- package/es/components/image/image_wrapper.styles.js +3 -3
- package/es/components/key_pad_menu/key_pad_menu_item.js +1 -1
- package/es/components/list_group/list_group.js +2 -2
- package/es/components/list_group/list_group_item.js +2 -2
- package/es/components/list_group/list_group_item_extra_action.js +1 -1
- package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
- package/es/components/loading/loading_logo.js +1 -1
- package/es/components/markdown_editor/markdown_editor.js +1 -1
- package/es/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
- package/es/components/markdown_editor/markdown_editor_footer.js +1 -1
- package/es/components/markdown_editor/markdown_editor_toolbar.js +1 -1
- package/es/components/modal/confirm_modal.js +11 -0
- package/es/components/modal/modal.a11y.js +70 -0
- package/es/components/modal/modal.js +17 -27
- package/es/components/modal/modal.styles.js +23 -0
- package/es/components/modal/modal_body.js +8 -0
- package/es/components/modal/modal_body.styles.js +16 -0
- package/es/components/modal/modal_footer.js +6 -0
- package/es/components/modal/modal_footer.styles.js +15 -0
- package/es/components/modal/modal_header.js +6 -0
- package/es/components/modal/modal_header.styles.js +14 -0
- package/es/components/modal/modal_header_title.js +3 -1
- package/es/components/notification/notification_event.js +2 -2
- package/es/components/notification/notification_event_meta.js +1 -1
- package/es/components/page/page.styles.js +2 -2
- package/es/components/page/page_header/page_header_content.js +1 -1
- package/es/components/page_template/outer/page_outer.js +1 -1
- package/es/components/page_template/page_template.js +28 -6
- package/es/components/pagination/pagination_button.js +1 -1
- package/es/components/popover/popover.a11y.js +83 -0
- package/es/components/search_bar/query/ast_to_es_query_dsl.js +8 -2
- package/es/components/search_bar/query/default_syntax.js +2 -1
- package/es/components/selectable/selectable_list/selectable_list.js +1 -1
- package/es/components/selectable/selectable_list/selectable_list_item.js +1 -1
- package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
- package/es/components/suggest/suggest.js +1 -1
- package/es/components/suggest/suggest_item.js +1 -1
- package/es/components/table/table_header_button.js +1 -1
- package/es/components/tabs/tabs.a11y.js +97 -0
- package/es/components/timeline/timeline_item_icon.js +1 -1
- package/es/components/toast/global_toast_list.js +1 -1
- package/es/components/toast/global_toast_list.styles.js +5 -5
- package/es/components/toast/toast.js +1 -1
- package/es/components/tool_tip/icon_tip.js +1 -1
- package/es/components/tour/tour_step.js +20 -6
- package/es/components/tree_view/tree_view.a11y.js +74 -0
- package/es/global_styling/mixins/_responsive.js +46 -1
- package/es/global_styling/utility/animations.js +5 -2
- package/eui.d.ts +108 -14
- package/i18ntokens.json +8 -8
- package/lib/components/accessibility/skip_link/skip_link.js +6 -5
- package/lib/components/avatar/avatar.js +1 -1
- package/lib/components/badge/badge.js +1 -1
- package/lib/components/badge/beta_badge/beta_badge.js +14 -5
- package/lib/components/badge/beta_badge/beta_badge.styles.js +25 -4
- package/lib/components/basic_table/basic_table.js +1 -1
- package/lib/components/basic_table/collapsed_item_actions.js +1 -1
- package/lib/components/basic_table/in_memory_table.js +1 -1
- package/lib/components/beacon/beacon.js +18 -5
- package/lib/components/beacon/beacon.styles.js +13 -5
- package/lib/components/button/_button_content_deprecated.js +1 -1
- package/lib/components/button/button_display/_button_display.js +1 -1
- package/lib/components/button/button_display/_button_display_content.js +1 -1
- package/lib/components/button/button_empty/button_empty.js +1 -1
- package/lib/components/button/button_group/button_group.js +1 -1
- package/lib/components/button/button_group/button_group_button.js +1 -1
- package/lib/components/button/button_icon/button_icon.js +1 -1
- package/lib/components/call_out/call_out.js +1 -1
- package/lib/components/card/card.js +7 -2
- package/lib/components/card/card.styles.js +4 -4
- package/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
- package/lib/components/comment_list/comment.js +2 -2
- package/lib/components/comment_list/comment_event.js +1 -1
- package/lib/components/comment_list/comment_list.js +2 -2
- package/lib/components/comment_list/comment_timeline.js +1 -1
- package/lib/components/datagrid/body/data_grid_body.js +13 -13
- package/lib/components/datagrid/body/data_grid_cell.js +24 -24
- package/lib/components/datagrid/body/header/data_grid_header_cell.js +12 -12
- package/lib/components/datagrid/body/header/data_grid_header_row.js +13 -13
- package/lib/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/lib/components/datagrid/data_grid.js +13 -13
- package/lib/components/datagrid/utils/in_memory.js +12 -12
- package/lib/components/date_picker/date_picker.js +2 -2
- package/lib/components/date_picker/date_picker_range.js +1 -1
- package/lib/components/date_picker/super_date_picker/super_date_picker.a11y.js +111 -0
- package/lib/components/description_list/description_list.styles.js +1 -1
- package/lib/components/description_list/description_list_description.js +5 -1
- package/lib/components/description_list/description_list_description.styles.js +1 -1
- package/lib/components/description_list/description_list_title.styles.js +1 -1
- package/lib/components/empty_prompt/empty_prompt.js +1 -1
- package/lib/components/facet/facet_button.js +1 -1
- package/lib/components/flex/flex_grid.styles.js +1 -1
- package/lib/components/flex/flex_group.styles.js +1 -1
- package/lib/components/flyout/flyout.a11y.js +94 -0
- package/lib/components/flyout/flyout.styles.js +6 -6
- package/lib/components/form/field_number/field_number.js +1 -1
- package/lib/components/form/field_text/field_text.js +2 -2
- package/lib/components/form/form_control_layout/form_control_layout.js +2 -2
- package/lib/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
- package/lib/components/form/form_control_layout/form_control_layout_icons.js +2 -2
- package/lib/components/header/header_links/header_link.js +1 -1
- package/lib/components/header/header_links/header_links.js +1 -1
- package/lib/components/header/header_logo.js +1 -1
- package/lib/components/icon/assets/filterInCircle.js +46 -0
- package/lib/components/icon/icon.js +1 -1
- package/lib/components/icon/icon_map.js +1 -0
- package/lib/components/icon/svgs/filterInCircle.svg +3 -0
- package/lib/components/image/image_fullscreen_wrapper.styles.js +9 -10
- package/lib/components/image/image_wrapper.styles.js +2 -2
- package/lib/components/key_pad_menu/key_pad_menu_item.js +1 -1
- package/lib/components/list_group/list_group.js +2 -2
- package/lib/components/list_group/list_group_item.js +2 -2
- package/lib/components/list_group/list_group_item_extra_action.js +1 -1
- package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
- package/lib/components/loading/loading_logo.js +1 -1
- package/lib/components/markdown_editor/markdown_editor.js +1 -1
- package/lib/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
- package/lib/components/markdown_editor/markdown_editor_footer.js +1 -1
- package/lib/components/markdown_editor/markdown_editor_toolbar.js +1 -1
- package/lib/components/modal/confirm_modal.js +13 -0
- package/lib/components/modal/modal.a11y.js +73 -0
- package/lib/components/modal/modal.js +17 -32
- package/lib/components/modal/modal.styles.js +36 -0
- package/lib/components/modal/modal_body.js +10 -0
- package/lib/components/modal/modal_body.styles.js +27 -0
- package/lib/components/modal/modal_footer.js +8 -0
- package/lib/components/modal/modal_footer.styles.js +26 -0
- package/lib/components/modal/modal_header.js +8 -0
- package/lib/components/modal/modal_header.styles.js +24 -0
- package/lib/components/modal/modal_header_title.js +4 -1
- package/lib/components/notification/notification_event.js +2 -2
- package/lib/components/notification/notification_event_meta.js +1 -1
- package/lib/components/page/page.styles.js +1 -1
- package/lib/components/page/page_header/page_header_content.js +1 -1
- package/lib/components/page_template/outer/page_outer.js +1 -1
- package/lib/components/page_template/page_template.js +32 -10
- package/lib/components/popover/popover.a11y.js +86 -0
- package/lib/components/search_bar/query/ast_to_es_query_dsl.js +8 -2
- package/lib/components/search_bar/query/default_syntax.js +2 -1
- package/lib/components/selectable/selectable_list/selectable_list.js +1 -1
- package/lib/components/selectable/selectable_list/selectable_list_item.js +1 -1
- package/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
- package/lib/components/suggest/suggest.js +1 -1
- package/lib/components/suggest/suggest_item.js +1 -1
- package/lib/components/table/table_header_button.js +1 -1
- package/lib/components/tabs/tabs.a11y.js +98 -0
- package/lib/components/timeline/timeline_item_icon.js +1 -1
- package/lib/components/toast/global_toast_list.js +1 -1
- package/lib/components/toast/global_toast_list.styles.js +4 -4
- package/lib/components/toast/toast.js +1 -1
- package/lib/components/tool_tip/icon_tip.js +1 -1
- package/lib/components/tour/tour_step.js +20 -6
- package/lib/components/tree_view/tree_view.a11y.js +80 -0
- package/lib/global_styling/mixins/_responsive.js +60 -3
- package/lib/global_styling/utility/animations.js +9 -3
- package/optimize/es/components/accessibility/skip_link/skip_link.js +6 -5
- package/optimize/es/components/badge/beta_badge/beta_badge.js +5 -2
- package/optimize/es/components/badge/beta_badge/beta_badge.styles.js +25 -4
- package/optimize/es/components/beacon/beacon.js +8 -3
- package/optimize/es/components/beacon/beacon.styles.js +14 -4
- package/optimize/es/components/card/card.styles.js +4 -4
- package/optimize/es/components/date_picker/super_date_picker/super_date_picker.a11y.js +98 -0
- package/optimize/es/components/description_list/description_list.styles.js +2 -2
- package/optimize/es/components/description_list/description_list_description.js +6 -2
- package/optimize/es/components/description_list/description_list_description.styles.js +2 -2
- package/optimize/es/components/description_list/description_list_title.styles.js +2 -2
- package/optimize/es/components/flex/flex_grid.styles.js +2 -2
- package/optimize/es/components/flex/flex_group.styles.js +2 -2
- package/optimize/es/components/flyout/flyout.a11y.js +77 -0
- package/optimize/es/components/flyout/flyout.styles.js +7 -7
- package/optimize/es/components/icon/assets/filterInCircle.js +35 -0
- package/optimize/es/components/icon/icon_map.js +1 -0
- package/optimize/es/components/image/image_fullscreen_wrapper.styles.js +3 -11
- package/optimize/es/components/image/image_wrapper.styles.js +3 -3
- package/optimize/es/components/modal/confirm_modal.js +6 -0
- package/optimize/es/components/modal/modal.a11y.js +60 -0
- package/optimize/es/components/modal/modal.js +17 -27
- package/optimize/es/components/modal/modal.styles.js +23 -0
- package/optimize/es/components/modal/modal_body.js +8 -0
- package/optimize/es/components/modal/modal_body.styles.js +16 -0
- package/optimize/es/components/modal/modal_footer.js +6 -0
- package/optimize/es/components/modal/modal_footer.styles.js +15 -0
- package/optimize/es/components/modal/modal_header.js +6 -0
- package/optimize/es/components/modal/modal_header.styles.js +14 -0
- package/optimize/es/components/modal/modal_header_title.js +3 -1
- package/optimize/es/components/page/page.styles.js +2 -2
- package/optimize/es/components/page_template/page_template.js +5 -3
- package/optimize/es/components/popover/popover.a11y.js +73 -0
- package/optimize/es/components/search_bar/query/ast_to_es_query_dsl.js +8 -2
- package/optimize/es/components/search_bar/query/default_syntax.js +2 -1
- package/optimize/es/components/tabs/tabs.a11y.js +97 -0
- package/optimize/es/components/toast/global_toast_list.styles.js +5 -5
- package/optimize/es/components/tour/tour_step.js +17 -4
- package/optimize/es/components/tree_view/tree_view.a11y.js +74 -0
- package/optimize/es/global_styling/mixins/_responsive.js +46 -1
- package/optimize/es/global_styling/utility/animations.js +5 -2
- package/optimize/lib/components/accessibility/skip_link/skip_link.js +6 -5
- package/optimize/lib/components/badge/beta_badge/beta_badge.js +7 -3
- package/optimize/lib/components/badge/beta_badge/beta_badge.styles.js +25 -4
- package/optimize/lib/components/beacon/beacon.js +12 -4
- package/optimize/lib/components/beacon/beacon.styles.js +13 -5
- package/optimize/lib/components/card/card.styles.js +4 -4
- package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.a11y.js +111 -0
- package/optimize/lib/components/description_list/description_list.styles.js +1 -1
- package/optimize/lib/components/description_list/description_list_description.js +5 -1
- package/optimize/lib/components/description_list/description_list_description.styles.js +1 -1
- package/optimize/lib/components/description_list/description_list_title.styles.js +1 -1
- package/optimize/lib/components/flex/flex_grid.styles.js +1 -1
- package/optimize/lib/components/flex/flex_group.styles.js +1 -1
- package/optimize/lib/components/flyout/flyout.a11y.js +84 -0
- package/optimize/lib/components/flyout/flyout.styles.js +6 -6
- package/optimize/lib/components/icon/assets/filterInCircle.js +45 -0
- package/optimize/lib/components/icon/icon_map.js +1 -0
- package/optimize/lib/components/icon/svgs/filterInCircle.svg +3 -0
- package/optimize/lib/components/image/image_fullscreen_wrapper.styles.js +9 -12
- package/optimize/lib/components/image/image_wrapper.styles.js +2 -2
- package/optimize/lib/components/modal/confirm_modal.js +8 -0
- package/optimize/lib/components/modal/modal.a11y.js +73 -0
- package/optimize/lib/components/modal/modal.js +17 -31
- package/optimize/lib/components/modal/modal.styles.js +36 -0
- package/optimize/lib/components/modal/modal_body.js +10 -0
- package/optimize/lib/components/modal/modal_body.styles.js +27 -0
- package/optimize/lib/components/modal/modal_footer.js +8 -0
- package/optimize/lib/components/modal/modal_footer.styles.js +26 -0
- package/optimize/lib/components/modal/modal_header.js +8 -0
- package/optimize/lib/components/modal/modal_header.styles.js +24 -0
- package/optimize/lib/components/modal/modal_header_title.js +4 -1
- package/optimize/lib/components/page/page.styles.js +1 -1
- package/optimize/lib/components/page_template/page_template.js +5 -3
- package/optimize/lib/components/popover/popover.a11y.js +86 -0
- package/optimize/lib/components/search_bar/query/ast_to_es_query_dsl.js +8 -2
- package/optimize/lib/components/search_bar/query/default_syntax.js +2 -1
- package/optimize/lib/components/tabs/tabs.a11y.js +98 -0
- package/optimize/lib/components/toast/global_toast_list.styles.js +4 -4
- package/optimize/lib/components/tour/tour_step.js +17 -4
- package/optimize/lib/components/tree_view/tree_view.a11y.js +80 -0
- package/optimize/lib/global_styling/mixins/_responsive.js +60 -3
- package/optimize/lib/global_styling/utility/animations.js +9 -3
- package/package.json +5 -4
- package/src/components/index.scss +0 -1
- package/src/themes/amsterdam/overrides/_index.scss +0 -1
- package/test-env/components/accessibility/skip_link/skip_link.js +6 -5
- package/test-env/components/avatar/avatar.js +1 -1
- package/test-env/components/badge/badge.js +1 -1
- package/test-env/components/badge/beta_badge/beta_badge.js +14 -5
- package/test-env/components/badge/beta_badge/beta_badge.styles.js +25 -4
- package/test-env/components/basic_table/basic_table.js +1 -1
- package/test-env/components/basic_table/collapsed_item_actions.js +1 -1
- package/test-env/components/basic_table/in_memory_table.js +1 -1
- package/test-env/components/beacon/beacon.js +18 -5
- package/test-env/components/beacon/beacon.styles.js +13 -5
- package/test-env/components/button/_button_content_deprecated.js +1 -1
- package/test-env/components/button/button_display/_button_display.js +1 -1
- package/test-env/components/button/button_display/_button_display_content.js +1 -1
- package/test-env/components/button/button_empty/button_empty.js +1 -1
- package/test-env/components/button/button_group/button_group.js +1 -1
- package/test-env/components/button/button_group/button_group_button.js +1 -1
- package/test-env/components/button/button_icon/button_icon.js +1 -1
- package/test-env/components/call_out/call_out.js +1 -1
- package/test-env/components/card/card.js +7 -2
- package/test-env/components/card/card.styles.js +4 -4
- package/test-env/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
- package/test-env/components/comment_list/comment.js +2 -2
- package/test-env/components/comment_list/comment_event.js +1 -1
- package/test-env/components/comment_list/comment_list.js +2 -2
- package/test-env/components/comment_list/comment_timeline.js +1 -1
- package/test-env/components/datagrid/body/data_grid_body.js +13 -13
- package/test-env/components/datagrid/body/data_grid_cell.js +24 -24
- package/test-env/components/datagrid/body/header/data_grid_header_cell.js +12 -12
- package/test-env/components/datagrid/body/header/data_grid_header_row.js +13 -13
- package/test-env/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/test-env/components/datagrid/data_grid.js +13 -13
- package/test-env/components/datagrid/utils/in_memory.js +12 -12
- package/test-env/components/date_picker/date_picker.js +2 -2
- package/test-env/components/date_picker/date_picker_range.js +1 -1
- package/test-env/components/date_picker/super_date_picker/super_date_picker.a11y.js +111 -0
- package/test-env/components/description_list/description_list.styles.js +1 -1
- package/test-env/components/description_list/description_list_description.js +5 -1
- package/test-env/components/description_list/description_list_description.styles.js +1 -1
- package/test-env/components/description_list/description_list_title.styles.js +1 -1
- package/test-env/components/empty_prompt/empty_prompt.js +1 -1
- package/test-env/components/facet/facet_button.js +1 -1
- package/test-env/components/flex/flex_grid.styles.js +1 -1
- package/test-env/components/flex/flex_group.styles.js +1 -1
- package/test-env/components/flyout/flyout.a11y.js +84 -0
- package/test-env/components/flyout/flyout.styles.js +6 -6
- package/test-env/components/form/field_number/field_number.js +1 -1
- package/test-env/components/form/field_text/field_text.js +2 -2
- package/test-env/components/form/form_control_layout/form_control_layout.js +2 -2
- package/test-env/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
- package/test-env/components/form/form_control_layout/form_control_layout_icons.js +2 -2
- package/test-env/components/header/header_links/header_link.js +1 -1
- package/test-env/components/header/header_links/header_links.js +1 -1
- package/test-env/components/header/header_logo.js +1 -1
- package/test-env/components/icon/assets/filterInCircle.js +45 -0
- package/test-env/components/icon/icon_map.js +1 -0
- package/test-env/components/image/image_fullscreen_wrapper.styles.js +9 -12
- package/test-env/components/image/image_wrapper.styles.js +2 -2
- package/test-env/components/key_pad_menu/key_pad_menu_item.js +1 -1
- package/test-env/components/list_group/list_group.js +2 -2
- package/test-env/components/list_group/list_group_item.js +2 -2
- package/test-env/components/list_group/list_group_item_extra_action.js +1 -1
- package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
- package/test-env/components/loading/loading_logo.js +1 -1
- package/test-env/components/markdown_editor/markdown_editor.js +1 -1
- package/test-env/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
- package/test-env/components/markdown_editor/markdown_editor_footer.js +1 -1
- package/test-env/components/markdown_editor/markdown_editor_toolbar.js +1 -1
- package/test-env/components/modal/confirm_modal.js +13 -0
- package/test-env/components/modal/modal.a11y.js +73 -0
- package/test-env/components/modal/modal.js +17 -31
- package/test-env/components/modal/modal.styles.js +36 -0
- package/test-env/components/modal/modal_body.js +10 -0
- package/test-env/components/modal/modal_body.styles.js +27 -0
- package/test-env/components/modal/modal_footer.js +8 -0
- package/test-env/components/modal/modal_footer.styles.js +26 -0
- package/test-env/components/modal/modal_header.js +8 -0
- package/test-env/components/modal/modal_header.styles.js +24 -0
- package/test-env/components/modal/modal_header_title.js +4 -1
- package/test-env/components/notification/notification_event.js +2 -2
- package/test-env/components/notification/notification_event_meta.js +1 -1
- package/test-env/components/page/page.styles.js +1 -1
- package/test-env/components/page/page_header/page_header_content.js +1 -1
- package/test-env/components/page_template/outer/page_outer.js +1 -1
- package/test-env/components/page_template/page_template.js +32 -10
- package/test-env/components/popover/popover.a11y.js +86 -0
- package/test-env/components/search_bar/query/ast_to_es_query_dsl.js +8 -2
- package/test-env/components/search_bar/query/default_syntax.js +2 -1
- package/test-env/components/selectable/selectable_list/selectable_list.js +1 -1
- package/test-env/components/selectable/selectable_list/selectable_list_item.js +1 -1
- package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
- package/test-env/components/suggest/suggest.js +1 -1
- package/test-env/components/suggest/suggest_item.js +1 -1
- package/test-env/components/table/table_header_button.js +1 -1
- package/test-env/components/tabs/tabs.a11y.js +98 -0
- package/test-env/components/timeline/timeline_item_icon.js +1 -1
- package/test-env/components/toast/global_toast_list.js +1 -1
- package/test-env/components/toast/global_toast_list.styles.js +4 -4
- package/test-env/components/toast/toast.js +1 -1
- package/test-env/components/tool_tip/icon_tip.js +1 -1
- package/test-env/components/tour/tour_step.js +20 -6
- package/test-env/components/tree_view/tree_view.a11y.js +80 -0
- package/test-env/global_styling/mixins/_responsive.js +60 -3
- package/test-env/global_styling/utility/animations.js +9 -3
- package/src/components/modal/_index.scss +0 -1
- package/src/components/modal/_modal.scss +0 -156
- package/src/themes/amsterdam/overrides/_modal.scss +0 -3
|
@@ -8,7 +8,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
8
8
|
* Side Public License, v 1.
|
|
9
9
|
*/
|
|
10
10
|
import { css } from '@emotion/react';
|
|
11
|
-
import { euiFontSize,
|
|
11
|
+
import { euiFontSize, euiMaxBreakpoint, euiMinBreakpoint, logicalTextAlignCSS, logicalCSS } from '../../global_styling';
|
|
12
12
|
import { euiTitle } from '../title/title.styles';
|
|
13
13
|
|
|
14
14
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
@@ -28,7 +28,7 @@ export var euiDescriptionListDescriptionStyles = function euiDescriptionListDesc
|
|
|
28
28
|
// Types
|
|
29
29
|
row: /*#__PURE__*/css(";label:row;"),
|
|
30
30
|
column: /*#__PURE__*/css(columnDisplay, ";;label:column;"),
|
|
31
|
-
responsiveColumn: /*#__PURE__*/css(
|
|
31
|
+
responsiveColumn: /*#__PURE__*/css(euiMaxBreakpoint(euiThemeContext, 'm'), "{", logicalCSS('width', '100%'), " padding:0;}", euiMinBreakpoint(euiThemeContext, 'm'), "{", columnDisplay, ";};label:responsiveColumn;"),
|
|
32
32
|
inline: _ref,
|
|
33
33
|
// This nested block handles just the font styling based on compressed and reverse
|
|
34
34
|
fontStyles: {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Side Public License, v 1.
|
|
7
7
|
*/
|
|
8
8
|
import { css } from '@emotion/react';
|
|
9
|
-
import { euiFontSize, euiTextBreakWord, logicalTextAlignCSS,
|
|
9
|
+
import { euiFontSize, euiTextBreakWord, logicalTextAlignCSS, euiMaxBreakpoint, euiMinBreakpoint, logicalCSS } from '../../global_styling';
|
|
10
10
|
import { tint } from '../../services';
|
|
11
11
|
import { euiTitle } from '../title/title.styles';
|
|
12
12
|
export var euiDescriptionListTitleStyles = function euiDescriptionListTitleStyles(euiThemeContext) {
|
|
@@ -18,7 +18,7 @@ export var euiDescriptionListTitleStyles = function euiDescriptionListTitleStyle
|
|
|
18
18
|
// Types
|
|
19
19
|
row: /*#__PURE__*/css(";label:row;"),
|
|
20
20
|
column: /*#__PURE__*/css(columnDisplay, ";;label:column;"),
|
|
21
|
-
responsiveColumn: /*#__PURE__*/css(
|
|
21
|
+
responsiveColumn: /*#__PURE__*/css(euiMaxBreakpoint(euiThemeContext, 'm'), "{", logicalCSS('width', '100%'), " padding:0;}", euiMinBreakpoint(euiThemeContext, 'm'), "{", columnDisplay, ";};label:responsiveColumn;"),
|
|
22
22
|
inline: /*#__PURE__*/css("display:inline;border-radius:", euiTheme.border.radius.small, ";font-weight:", euiTheme.font.weight.medium, ";background-color:", colorMode === 'DARK' ? tint(euiTheme.colors.lightestShade, 0.5) : euiTheme.colors.lightestShade, ";", logicalCSS('margin-vertical', '0'), " ", logicalCSS('margin-horizontal', euiTheme.size.xs), "&:first-of-type{", logicalCSS('margin-left', '0'), ";};label:inline;"),
|
|
23
23
|
// This nested block handles just the font styling based on compressed and reverse
|
|
24
24
|
fontStyles: {
|
|
@@ -8,7 +8,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
8
8
|
* Side Public License, v 1.
|
|
9
9
|
*/
|
|
10
10
|
import { css } from '@emotion/react';
|
|
11
|
-
import {
|
|
11
|
+
import { euiMaxBreakpoint } from '../../global_styling';
|
|
12
12
|
|
|
13
13
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
14
14
|
name: "nq5j9u-baseline",
|
|
@@ -108,7 +108,7 @@ export var euiFlexGridStyles = function euiFlexGridStyles(euiThemeContext) {
|
|
|
108
108
|
var euiTheme = euiThemeContext.euiTheme;
|
|
109
109
|
return {
|
|
110
110
|
euiFlexGrid: _ref10,
|
|
111
|
-
responsive: /*#__PURE__*/css(
|
|
111
|
+
responsive: /*#__PURE__*/css(euiMaxBreakpoint(euiThemeContext, 'm'), "{grid-template-columns:repeat(1, 1fr);grid-auto-flow:row;};label:responsive;"),
|
|
112
112
|
direction: {
|
|
113
113
|
row: /*#__PURE__*/css(";label:row;"),
|
|
114
114
|
column: /*#__PURE__*/css("grid-auto-flow:column;grid-template-rows:repeat(", gridTemplateRows, ", 1fr);;label:column;")
|
|
@@ -8,7 +8,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
8
8
|
* Side Public License, v 1.
|
|
9
9
|
*/
|
|
10
10
|
import { css } from '@emotion/react';
|
|
11
|
-
import {
|
|
11
|
+
import { euiMaxBreakpoint, logicalCSS } from '../../global_styling';
|
|
12
12
|
|
|
13
13
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
14
14
|
name: "n4hdkg-columnReverse",
|
|
@@ -167,7 +167,7 @@ export var euiFlexGroupStyles = function euiFlexGroupStyles(euiThemeContext) {
|
|
|
167
167
|
var euiTheme = euiThemeContext.euiTheme;
|
|
168
168
|
return {
|
|
169
169
|
euiFlexGroup: _ref17,
|
|
170
|
-
responsive: /*#__PURE__*/css(
|
|
170
|
+
responsive: /*#__PURE__*/css(euiMaxBreakpoint(euiThemeContext, 'm'), "{flex-wrap:wrap;&>.euiFlexItem{", logicalCSS('width', '100%'), " flex-basis:100%;}};label:responsive;"),
|
|
171
171
|
wrap: _ref16,
|
|
172
172
|
gutterSizes: {
|
|
173
173
|
none: /*#__PURE__*/css(";label:none;"),
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
+
var _excluded = ["children"];
|
|
5
|
+
|
|
6
|
+
/*
|
|
7
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
8
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
9
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
10
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
11
|
+
* Side Public License, v 1.
|
|
12
|
+
*/
|
|
13
|
+
/// <reference types="../../../cypress/support"/>
|
|
14
|
+
import React, { useState } from 'react';
|
|
15
|
+
import { EuiFlyout } from './flyout';
|
|
16
|
+
import { EuiButtonEmpty } from '../button';
|
|
17
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
18
|
+
|
|
19
|
+
var childrenDefault = ___EmotionJSX(React.Fragment, null, ___EmotionJSX("button", {
|
|
20
|
+
"data-test-subj": "itemA"
|
|
21
|
+
}, "Item A"), ___EmotionJSX("button", {
|
|
22
|
+
"data-test-subj": "itemB"
|
|
23
|
+
}, "Item B"), ___EmotionJSX("button", {
|
|
24
|
+
"data-test-subj": "itemC"
|
|
25
|
+
}, "Item C"), ___EmotionJSX("input", {
|
|
26
|
+
"data-test-subj": "itemD"
|
|
27
|
+
}));
|
|
28
|
+
|
|
29
|
+
var Flyout = function Flyout(_ref) {
|
|
30
|
+
var _ref$children = _ref.children,
|
|
31
|
+
children = _ref$children === void 0 ? childrenDefault : _ref$children,
|
|
32
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
33
|
+
|
|
34
|
+
var _useState = useState(false),
|
|
35
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
36
|
+
isOpen = _useState2[0],
|
|
37
|
+
setIsOpen = _useState2[1];
|
|
38
|
+
|
|
39
|
+
var onButtonClick = function onButtonClick() {
|
|
40
|
+
return setIsOpen(!isOpen);
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
var button = ___EmotionJSX(EuiButtonEmpty, {
|
|
44
|
+
onClick: onButtonClick
|
|
45
|
+
}, "Toggle flyout");
|
|
46
|
+
|
|
47
|
+
return ___EmotionJSX("div", null, button, isOpen ? ___EmotionJSX(EuiFlyout, _extends({
|
|
48
|
+
"data-test-subj": "flyoutSpec",
|
|
49
|
+
onClose: function onClose() {
|
|
50
|
+
return setIsOpen(false);
|
|
51
|
+
}
|
|
52
|
+
}, rest), children) : null);
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
beforeEach(function () {
|
|
56
|
+
cy.mount(___EmotionJSX(Flyout, null));
|
|
57
|
+
cy.get('div.euiFlyout').should('not.exist');
|
|
58
|
+
});
|
|
59
|
+
describe('EuiFlyout', function () {
|
|
60
|
+
describe('Automated accessibility check', function () {
|
|
61
|
+
it('has zero violations on render', function () {
|
|
62
|
+
cy.checkAxe();
|
|
63
|
+
});
|
|
64
|
+
it('has zero violations when flyout is opened', function () {
|
|
65
|
+
cy.get('button.euiButtonEmpty').click();
|
|
66
|
+
cy.get('div.euiFlyout').should('exist');
|
|
67
|
+
cy.checkAxe();
|
|
68
|
+
});
|
|
69
|
+
it('has zero violations when flyout is closed', function () {
|
|
70
|
+
cy.get('button.euiButtonEmpty').click();
|
|
71
|
+
cy.get('div.euiFlyout').should('exist');
|
|
72
|
+
cy.get('button.euiFlyout__closeButton').click();
|
|
73
|
+
cy.get('div.euiFlyout').should('not.exist');
|
|
74
|
+
cy.checkAxe();
|
|
75
|
+
});
|
|
76
|
+
});
|
|
77
|
+
});
|
|
@@ -10,12 +10,12 @@ var _templateObject, _templateObject2;
|
|
|
10
10
|
* Side Public License, v 1.
|
|
11
11
|
*/
|
|
12
12
|
import { css, keyframes } from '@emotion/react';
|
|
13
|
-
import { euiCanAnimate,
|
|
13
|
+
import { euiCanAnimate, euiMaxBreakpoint, euiMinBreakpoint, logicalCSS, mathWithUnits } from '../../global_styling';
|
|
14
14
|
import { euiShadowXLarge } from '../../themes/amsterdam/global_styling/mixins';
|
|
15
15
|
import { transparentize } from '../../services/color';
|
|
16
16
|
import { euiFormVariables } from '../form/form.styles';
|
|
17
17
|
export var euiFlyoutSlideInRight = keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 0% {\n opacity: 0;\n transform: translateX(100%);\n }\n 75% {\n opacity: 1;\n transform: translateX(0%);\n }\n"])));
|
|
18
|
-
export var euiFlyoutSlideInLeft = keyframes(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n 0% {\n opacity: 0;\n transform: translateX(-100%);\n }\n 75% {\n opacity: 1;\n transform: translateX(0%);\n}\n"])));
|
|
18
|
+
export var euiFlyoutSlideInLeft = keyframes(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n 0% {\n opacity: 0;\n transform: translateX(-100%);\n }\n 75% {\n opacity: 1;\n transform: translateX(0%);\n }\n"])));
|
|
19
19
|
export var euiFlyoutCloseButtonStyles = function euiFlyoutCloseButtonStyles(euiThemeContext) {
|
|
20
20
|
var euiTheme = euiThemeContext.euiTheme;
|
|
21
21
|
return {
|
|
@@ -25,15 +25,15 @@ export var euiFlyoutCloseButtonStyles = function euiFlyoutCloseButtonStyles(euiT
|
|
|
25
25
|
outsideSide: {
|
|
26
26
|
// `transforms` pull in close buttons a little
|
|
27
27
|
// `!important` is necessary here to override the hover/focus transitions of buttons
|
|
28
|
-
right: /*#__PURE__*/css(logicalCSS('left', 0), " ",
|
|
29
|
-
left: /*#__PURE__*/css(logicalCSS('right', 0), " ",
|
|
28
|
+
right: /*#__PURE__*/css(logicalCSS('left', 0), " ", euiMaxBreakpoint(euiThemeContext, 'm'), "{transform:translateX(calc(-100% - ", euiTheme.size.xs, "))!important;}", euiMinBreakpoint(euiThemeContext, 'm'), "{transform:translateX(calc(-100% - ", euiTheme.size.l, "))!important;};label:right;"),
|
|
29
|
+
left: /*#__PURE__*/css(logicalCSS('right', 0), " ", euiMaxBreakpoint(euiThemeContext, 'm'), "{transform:translateX(calc(100% + ", euiTheme.size.xs, "))!important;}", euiMinBreakpoint(euiThemeContext, 'm'), "{transform:translateX(calc(100% + ", euiTheme.size.l, "))!important;};label:left;")
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
33
|
export var euiFlyoutStyles = function euiFlyoutStyles(euiThemeContext) {
|
|
34
34
|
var euiTheme = euiThemeContext.euiTheme;
|
|
35
35
|
return {
|
|
36
|
-
euiFlyout: /*#__PURE__*/css("position:fixed;", logicalCSS('top', 0), " ", logicalCSS('bottom', 0), " ", logicalCSS('height', '100%'), " z-index:", euiTheme.levels.flyout, ";background:", euiTheme.colors.emptyShade, ";display:flex;flex-direction:column;align-items:stretch;&:focus{outline:none;}",
|
|
36
|
+
euiFlyout: /*#__PURE__*/css("position:fixed;", logicalCSS('top', 0), " ", logicalCSS('bottom', 0), " ", logicalCSS('height', '100%'), " z-index:", euiTheme.levels.flyout, ";background:", euiTheme.colors.emptyShade, ";display:flex;flex-direction:column;align-items:stretch;&:focus{outline:none;}", euiMaxBreakpoint(euiThemeContext, 'm'), "{", logicalCSS('max-width', '90vw !important'), ";};label:euiFlyout;"),
|
|
37
37
|
// Flyout sizes
|
|
38
38
|
s: /*#__PURE__*/css(composeFlyoutSizing(euiThemeContext, 's'), ";;label:s;"),
|
|
39
39
|
m: /*#__PURE__*/css(composeFlyoutSizing(euiThemeContext, 'm'), ";;label:m;"),
|
|
@@ -42,7 +42,7 @@ export var euiFlyoutStyles = function euiFlyoutStyles(euiThemeContext) {
|
|
|
42
42
|
// Side
|
|
43
43
|
right: /*#__PURE__*/css("clip-path:polygon(-50% 0, 100% 0, 100% 100%, -50% 100%);", logicalCSS('right', 0), " ", euiCanAnimate, "{animation:", euiFlyoutSlideInRight, " ", euiTheme.animation.normal, " ", euiTheme.animation.resistance, ";};label:right;"),
|
|
44
44
|
// Left-side flyouts should only be used for navigation
|
|
45
|
-
left: /*#__PURE__*/css(logicalCSS('left', 0), " clip-path:polygon(0 0, 150% 0, 150% 100%, 0 100%);", euiCanAnimate, "{animation:", euiFlyoutSlideInLeft, ";};label:left;"),
|
|
45
|
+
left: /*#__PURE__*/css(logicalCSS('left', 0), " clip-path:polygon(0 0, 150% 0, 150% 100%, 0 100%);", euiCanAnimate, "{animation:", euiFlyoutSlideInLeft, " ", euiTheme.animation.normal, " ", euiTheme.animation.resistance, ";};label:left;"),
|
|
46
46
|
// Type
|
|
47
47
|
overlay: /*#__PURE__*/css(euiShadowXLarge(euiThemeContext), ";;label:overlay;"),
|
|
48
48
|
push: /*#__PURE__*/css("clip-path:none;animation-duration:0s!important;z-index:", Number(euiTheme.levels.flyout) - 1, ";;label:push;"),
|
|
@@ -86,7 +86,7 @@ var composeFlyoutSizing = function composeFlyoutSizing(euiThemeContext, size) {
|
|
|
86
86
|
max: "".concat(euiTheme.breakpoint.l, "px")
|
|
87
87
|
}
|
|
88
88
|
};
|
|
89
|
-
return "\n ".concat(logicalCSS('max-width', flyoutSizes[size].max), "\n\n ").concat(
|
|
89
|
+
return "\n ".concat(logicalCSS('max-width', flyoutSizes[size].max), "\n\n ").concat(euiMaxBreakpoint(euiThemeContext, 'm'), " {\n ").concat(logicalCSS('min-width', 0), "\n ").concat(logicalCSS('width', flyoutSizes[size].min), "\n }\n ").concat(euiMinBreakpoint(euiThemeContext, 'm'), " {\n ").concat(logicalCSS('min-width', flyoutSizes[size].min), "\n ").concat(logicalCSS('width', flyoutSizes[size].width), "\n }\n ");
|
|
90
90
|
};
|
|
91
91
|
|
|
92
92
|
var composeFlyoutPadding = function composeFlyoutPadding(euiThemeContext, paddingSize) {
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["title", "titleId"];
|
|
4
|
+
|
|
5
|
+
/*
|
|
6
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
7
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
8
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
9
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
10
|
+
* Side Public License, v 1.
|
|
11
|
+
*/
|
|
12
|
+
// THIS IS A GENERATED FILE. DO NOT MODIFY MANUALLY. @see scripts/compile-icons.js
|
|
13
|
+
import * as React from 'react';
|
|
14
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
15
|
+
|
|
16
|
+
var EuiIconFilterInCircle = function EuiIconFilterInCircle(_ref) {
|
|
17
|
+
var title = _ref.title,
|
|
18
|
+
titleId = _ref.titleId,
|
|
19
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
20
|
+
|
|
21
|
+
return ___EmotionJSX("svg", _extends({
|
|
22
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
23
|
+
width: 16,
|
|
24
|
+
height: 16,
|
|
25
|
+
viewBox: "0 0 16 16",
|
|
26
|
+
"aria-labelledby": titleId
|
|
27
|
+
}, props), title ? ___EmotionJSX("title", {
|
|
28
|
+
id: titleId
|
|
29
|
+
}, title) : null, ___EmotionJSX("path", {
|
|
30
|
+
fillRule: "evenodd",
|
|
31
|
+
d: "M7.999 15.999a8 8 0 110-16 8 8 0 010 16zM8 15A7 7 0 108 1a7 7 0 000 14zM3.5 5h9a.5.5 0 110 1h-9a.5.5 0 010-1zm2 3h5a.5.5 0 110 1h-5a.5.5 0 010-1zm2 3h1a.5.5 0 110 1h-1a.5.5 0 110-1z"
|
|
32
|
+
}));
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export var icon = EuiIconFilterInCircle;
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
|
|
3
|
-
var _templateObject;
|
|
4
|
-
|
|
5
1
|
/*
|
|
6
2
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
7
3
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -9,18 +5,14 @@ var _templateObject;
|
|
|
9
5
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
10
6
|
* Side Public License, v 1.
|
|
11
7
|
*/
|
|
12
|
-
import { css
|
|
13
|
-
import { logicalCSS, logicalTextAlignCSS, euiCanAnimate } from '../../global_styling';
|
|
8
|
+
import { css } from '@emotion/react';
|
|
9
|
+
import { logicalCSS, logicalTextAlignCSS, euiCanAnimate, euiAnimSlideInUp } from '../../global_styling';
|
|
14
10
|
export var euiImageFullscreenWrapperStyles = function euiImageFullscreenWrapperStyles(euiThemeContext) {
|
|
15
11
|
var euiTheme = euiThemeContext.euiTheme;
|
|
16
12
|
return {
|
|
17
13
|
// Base
|
|
18
|
-
euiImageFullscreenWrapper: /*#__PURE__*/css(logicalCSS('max-height', '80vh'), ";", logicalCSS('max-width', '80vw'), ";", logicalTextAlignCSS('center'), ";line-height:0;", euiCanAnimate, "{animation:",
|
|
14
|
+
euiImageFullscreenWrapper: /*#__PURE__*/css(logicalCSS('max-height', '80vh'), ";", logicalCSS('max-width', '80vw'), ";", logicalTextAlignCSS('center'), ";line-height:0;", euiCanAnimate, "{animation:", euiAnimSlideInUp(euiTheme.size.xxxxl), " ", euiTheme.animation.extraSlow, " ", euiTheme.animation.bounce, ";}&:hover [class*='euiImageCaption']{text-decoration:underline;};label:euiImageFullscreenWrapper;"),
|
|
19
15
|
// Sizes
|
|
20
16
|
fullWidth: /*#__PURE__*/css(logicalCSS('width', '100%'), ";;label:fullWidth;")
|
|
21
17
|
};
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
var euiImageFullScreen = function euiImageFullScreen(size) {
|
|
25
|
-
return keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 0% {\n opacity: 0;\n transform: translateY(", ");\n }\n\n 100% {\n opacity: 1;\n transform: translateY(0);\n }\n"])), size);
|
|
26
18
|
};
|
|
@@ -8,7 +8,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
8
8
|
* Side Public License, v 1.
|
|
9
9
|
*/
|
|
10
10
|
import { css } from '@emotion/react';
|
|
11
|
-
import {
|
|
11
|
+
import { euiMinBreakpoint, logicalCSS, logicalTextAlignCSS, logicalSide } from '../../global_styling';
|
|
12
12
|
|
|
13
13
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
14
14
|
name: "gacnmc-allowFullScreen",
|
|
@@ -33,8 +33,8 @@ export var euiImageWrapperStyles = function euiImageWrapperStyles(euiThemeContex
|
|
|
33
33
|
// Floats
|
|
34
34
|
// 1: Logical properties/values in `float` is currently not yet supported by all browsers w/o flags
|
|
35
35
|
// @see https://caniuse.com/mdn-css_properties_float_flow_relative_values for when we can remove left/right fallbacks
|
|
36
|
-
left: /*#__PURE__*/css(
|
|
37
|
-
right: /*#__PURE__*/css(
|
|
36
|
+
left: /*#__PURE__*/css(euiMinBreakpoint(euiThemeContext, 'm'), "{float:left;float:", logicalSide.left, ";", logicalCSS('margin-left', '0'), ";", logicalCSS('margin-top', '0'), ";};label:left;"),
|
|
37
|
+
right: /*#__PURE__*/css(euiMinBreakpoint(euiThemeContext, 'm'), "{float:right;float:", logicalSide.right, ";", logicalCSS('margin-right', '0'), ";", logicalCSS('margin-top', '0'), ";};label:right;"),
|
|
38
38
|
// Sizes
|
|
39
39
|
fullWidth: /*#__PURE__*/css(logicalCSS('width', '100%'), ";;label:fullWidth;")
|
|
40
40
|
};
|
|
@@ -17,6 +17,8 @@ import { EuiModalFooter } from './modal_footer';
|
|
|
17
17
|
import { EuiModalHeader } from './modal_header';
|
|
18
18
|
import { EuiModalHeaderTitle } from './modal_header_title';
|
|
19
19
|
import { EuiModalBody } from './modal_body';
|
|
20
|
+
import { useEuiTheme } from '../../services';
|
|
21
|
+
import { euiModalStyles } from './modal.styles';
|
|
20
22
|
import { EuiButton, EuiButtonEmpty } from '../button';
|
|
21
23
|
import { EuiText } from '../text';
|
|
22
24
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
@@ -70,6 +72,9 @@ export var EuiConfirmModal = function EuiConfirmModal(_ref) {
|
|
|
70
72
|
};
|
|
71
73
|
|
|
72
74
|
var classes = classnames('euiModal--confirmation', className);
|
|
75
|
+
var euiTheme = useEuiTheme();
|
|
76
|
+
var styles = euiModalStyles(euiTheme);
|
|
77
|
+
var cssStyles = [styles.confirmation];
|
|
73
78
|
var modalTitle;
|
|
74
79
|
|
|
75
80
|
if (title) {
|
|
@@ -88,6 +93,7 @@ export var EuiConfirmModal = function EuiConfirmModal(_ref) {
|
|
|
88
93
|
|
|
89
94
|
return ___EmotionJSX(EuiModal, _extends({
|
|
90
95
|
className: classes,
|
|
96
|
+
css: cssStyles,
|
|
91
97
|
onClose: onCancel
|
|
92
98
|
}, rest), modalTitle, message && ___EmotionJSX(EuiModalBody, null, ___EmotionJSX(EuiText, {
|
|
93
99
|
"data-test-subj": "confirmModalBodyText"
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
5
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
6
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
7
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
8
|
+
* Side Public License, v 1.
|
|
9
|
+
*/
|
|
10
|
+
/// <reference types="../../../cypress/support"/>
|
|
11
|
+
import React, { useState } from 'react';
|
|
12
|
+
import { EuiModal, EuiModalHeader, EuiModalHeaderTitle, EuiModalBody, EuiModalFooter } from './index';
|
|
13
|
+
import { EuiButton } from '../button';
|
|
14
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
15
|
+
|
|
16
|
+
var Modal = function Modal() {
|
|
17
|
+
var _useState = useState(false),
|
|
18
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
19
|
+
isModalVisible = _useState2[0],
|
|
20
|
+
setIsModalVisible = _useState2[1];
|
|
21
|
+
|
|
22
|
+
var closeModal = function closeModal() {
|
|
23
|
+
return setIsModalVisible(false);
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
var showModal = function showModal() {
|
|
27
|
+
return setIsModalVisible(true);
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
var modalProps = {
|
|
31
|
+
title: 'Do this thing',
|
|
32
|
+
onClose: closeModal,
|
|
33
|
+
children: React
|
|
34
|
+
};
|
|
35
|
+
return ___EmotionJSX("div", null, ___EmotionJSX(EuiButton, {
|
|
36
|
+
onClick: showModal
|
|
37
|
+
}, "Show confirm modal"), isModalVisible && ___EmotionJSX(EuiModal, modalProps, ___EmotionJSX(EuiModalHeader, null, ___EmotionJSX(EuiModalHeaderTitle, null, ___EmotionJSX("h1", null, "Title of modal"))), ___EmotionJSX(EuiModalBody, null, ___EmotionJSX("p", null, "This is a simple modal body")), ___EmotionJSX(EuiModalFooter, null, ___EmotionJSX(EuiButton, {
|
|
38
|
+
onClick: closeModal,
|
|
39
|
+
fill: true
|
|
40
|
+
}, "Close"))));
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
beforeEach(function () {
|
|
44
|
+
cy.mount(___EmotionJSX(Modal, null));
|
|
45
|
+
cy.get('div.euiModal').should('not.exist');
|
|
46
|
+
cy.get('button.euiButton').click();
|
|
47
|
+
cy.get('div.euiModal').should('exist');
|
|
48
|
+
});
|
|
49
|
+
describe('EuiModal', function () {
|
|
50
|
+
describe('Automated accessibility check', function () {
|
|
51
|
+
it('has zero violations when modal is open', function () {
|
|
52
|
+
cy.checkAxe();
|
|
53
|
+
});
|
|
54
|
+
it('has zero violations when modal is closed', function () {
|
|
55
|
+
cy.get('div.euiModalFooter button.euiButton').click();
|
|
56
|
+
cy.get('div.euiModal').should('not.exist');
|
|
57
|
+
cy.checkAxe();
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
});
|
|
@@ -14,13 +14,14 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
14
14
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
15
15
|
* Side Public License, v 1.
|
|
16
16
|
*/
|
|
17
|
-
import React
|
|
17
|
+
import React from 'react';
|
|
18
18
|
import classnames from 'classnames';
|
|
19
|
-
import { keys } from '../../services';
|
|
19
|
+
import { keys, useEuiTheme } from '../../services';
|
|
20
20
|
import { EuiButtonIcon } from '../button';
|
|
21
21
|
import { EuiFocusTrap } from '../focus_trap';
|
|
22
22
|
import { EuiOverlayMask } from '../overlay_mask';
|
|
23
23
|
import { EuiI18n } from '../i18n';
|
|
24
|
+
import { euiModalStyles } from './modal.styles';
|
|
24
25
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
25
26
|
export var EuiModal = function EuiModal(_ref) {
|
|
26
27
|
var className = _ref.className,
|
|
@@ -32,19 +33,6 @@ export var EuiModal = function EuiModal(_ref) {
|
|
|
32
33
|
style = _ref.style,
|
|
33
34
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
34
35
|
|
|
35
|
-
// TODO: Remove this onFocus scroll workaround after react-focus-on supports focusOptions
|
|
36
|
-
// @see https://github.com/elastic/eui/issues/6304
|
|
37
|
-
var bodyScrollTop = useRef(typeof window === 'undefined' ? undefined : window.scrollY // Account for SSR
|
|
38
|
-
);
|
|
39
|
-
var onFocus = useCallback(function () {
|
|
40
|
-
if (bodyScrollTop.current != null) {
|
|
41
|
-
window.scrollTo({
|
|
42
|
-
top: bodyScrollTop.current
|
|
43
|
-
});
|
|
44
|
-
bodyScrollTop.current = undefined; // Unset after first auto focus
|
|
45
|
-
}
|
|
46
|
-
}, []);
|
|
47
|
-
|
|
48
36
|
var onKeyDown = function onKeyDown(event) {
|
|
49
37
|
if (event.key === keys.ESCAPE) {
|
|
50
38
|
event.preventDefault();
|
|
@@ -53,28 +41,29 @@ export var EuiModal = function EuiModal(_ref) {
|
|
|
53
41
|
}
|
|
54
42
|
};
|
|
55
43
|
|
|
56
|
-
var newStyle;
|
|
57
|
-
var widthClassName;
|
|
44
|
+
var newStyle = style;
|
|
58
45
|
|
|
59
|
-
if (maxWidth
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
var value = typeof maxWidth === 'number' ? "".concat(maxWidth, "px") : maxWidth;
|
|
63
|
-
newStyle = _objectSpread(_objectSpread({}, style), {}, {
|
|
64
|
-
maxWidth: value
|
|
46
|
+
if (typeof maxWidth !== 'boolean') {
|
|
47
|
+
newStyle = _objectSpread(_objectSpread({}, newStyle), {}, {
|
|
48
|
+
maxInlineSize: maxWidth
|
|
65
49
|
});
|
|
66
50
|
}
|
|
67
51
|
|
|
68
|
-
var classes = classnames('euiModal',
|
|
52
|
+
var classes = classnames('euiModal', className);
|
|
53
|
+
var euiTheme = useEuiTheme();
|
|
54
|
+
var styles = euiModalStyles(euiTheme);
|
|
55
|
+
var cssStyles = [styles.euiModal, maxWidth === true && styles.defaultMaxWidth];
|
|
56
|
+
var cssCloseIconStyles = [styles.euiModal__closeIcon];
|
|
69
57
|
return ___EmotionJSX(EuiOverlayMask, null, ___EmotionJSX(EuiFocusTrap, {
|
|
70
58
|
initialFocus: initialFocus,
|
|
71
|
-
scrollLock: true
|
|
59
|
+
scrollLock: true,
|
|
60
|
+
preventScrollOnFocus: true
|
|
72
61
|
}, ___EmotionJSX("div", _extends({
|
|
62
|
+
css: cssStyles,
|
|
73
63
|
className: classes,
|
|
74
64
|
onKeyDown: onKeyDown,
|
|
75
65
|
tabIndex: 0,
|
|
76
|
-
|
|
77
|
-
style: newStyle || style
|
|
66
|
+
style: newStyle
|
|
78
67
|
}, rest), ___EmotionJSX(EuiI18n, {
|
|
79
68
|
token: "euiModal.closeModal",
|
|
80
69
|
default: "Closes this modal window"
|
|
@@ -82,6 +71,7 @@ export var EuiModal = function EuiModal(_ref) {
|
|
|
82
71
|
return ___EmotionJSX(EuiButtonIcon, {
|
|
83
72
|
iconType: "cross",
|
|
84
73
|
onClick: onClose,
|
|
74
|
+
css: cssCloseIconStyles,
|
|
85
75
|
className: "euiModal__closeIcon",
|
|
86
76
|
color: "text",
|
|
87
77
|
"aria-label": closeModal
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
3
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
4
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
5
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
6
|
+
* Side Public License, v 1.
|
|
7
|
+
*/
|
|
8
|
+
import { css } from '@emotion/react';
|
|
9
|
+
import { euiShadowXLarge } from '../../themes/amsterdam/global_styling/mixins';
|
|
10
|
+
import { euiCanAnimate, euiMaxBreakpoint, euiAnimSlideInUp } from '../../global_styling';
|
|
11
|
+
import { euiFormVariables } from '../form/form.styles';
|
|
12
|
+
export var euiModalStyles = function euiModalStyles(euiThemeContext) {
|
|
13
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
14
|
+
return {
|
|
15
|
+
euiModal: /*#__PURE__*/css(euiShadowXLarge(euiThemeContext), " display:flex;flex-direction:column;max-block-size:75vh;position:relative;background-color:", euiTheme.colors.emptyShade, ";border-radius:", euiTheme.border.radius.medium, ";z-index:", euiTheme.levels.modal, ";min-inline-size:", euiFormVariables(euiThemeContext).maxWidth, ";max-inline-size:calc(100vw - ", euiTheme.size.base, ");", euiCanAnimate, "{animation:", euiAnimSlideInUp(euiTheme.size.xxl), " ", euiTheme.animation.slow, " ", euiTheme.animation.bounce, ";}", euiMaxBreakpoint(euiThemeContext, 'm'), "{position:fixed;inset:0;border-radius:0;inline-size:100vw!important;min-inline-size:0!important;max-inline-size:none!important;max-block-size:100vh!important;}&:focus{outline:none;};label:euiModal;"),
|
|
16
|
+
// Variants
|
|
17
|
+
defaultMaxWidth: /*#__PURE__*/css("max-inline-size:min(\n ", euiTheme.breakpoint.m, "px,\n calc(100vw - ", euiTheme.size.base, ")\n );;label:defaultMaxWidth;"),
|
|
18
|
+
confirmation: /*#__PURE__*/css("min-inline-size:", euiFormVariables(euiThemeContext).maxWidth, ";", euiMaxBreakpoint(euiThemeContext, 'm'), "{", euiShadowXLarge(euiThemeContext, {
|
|
19
|
+
reverse: true
|
|
20
|
+
}), " inset-block-start:auto;};label:confirmation;"),
|
|
21
|
+
euiModal__closeIcon: /*#__PURE__*/css("position:absolute;inset-inline-end:", euiTheme.size.xs, ";inset-block-start:", euiTheme.size.xs, ";z-index:3;;label:euiModal__closeIcon;")
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -11,6 +11,8 @@ var _excluded = ["className", "children"];
|
|
|
11
11
|
*/
|
|
12
12
|
import React from 'react';
|
|
13
13
|
import classnames from 'classnames';
|
|
14
|
+
import { useEuiTheme } from '../../services';
|
|
15
|
+
import { euiModalBodyStyles } from './modal_body.styles';
|
|
14
16
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
15
17
|
export var EuiModalBody = function EuiModalBody(_ref) {
|
|
16
18
|
var className = _ref.className,
|
|
@@ -18,9 +20,15 @@ export var EuiModalBody = function EuiModalBody(_ref) {
|
|
|
18
20
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
19
21
|
|
|
20
22
|
var classes = classnames('euiModalBody', className);
|
|
23
|
+
var euiTheme = useEuiTheme();
|
|
24
|
+
var styles = euiModalBodyStyles(euiTheme);
|
|
25
|
+
var cssStyles = [styles.euiModalBody];
|
|
26
|
+
var cssOverflowStyles = [styles.euiModalBody__overflow];
|
|
21
27
|
return ___EmotionJSX("div", _extends({
|
|
28
|
+
css: cssStyles,
|
|
22
29
|
className: classes
|
|
23
30
|
}, rest), ___EmotionJSX("div", {
|
|
31
|
+
css: cssOverflowStyles,
|
|
24
32
|
className: "euiModalBody__overflow"
|
|
25
33
|
}, children));
|
|
26
34
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
3
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
4
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
5
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
6
|
+
* Side Public License, v 1.
|
|
7
|
+
*/
|
|
8
|
+
import { css } from '@emotion/react';
|
|
9
|
+
import { euiYScrollWithShadows, euiMaxBreakpoint } from '../../global_styling';
|
|
10
|
+
export var euiModalBodyStyles = function euiModalBodyStyles(euiThemeContext) {
|
|
11
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
12
|
+
return {
|
|
13
|
+
euiModalBody: /*#__PURE__*/css("flex-grow:1;overflow:hidden;display:flex;flex-direction:column;&:last-of-type .euiModalBody__overflow{padding-block-end:", euiTheme.size.l, ";};label:euiModalBody;"),
|
|
14
|
+
euiModalBody__overflow: /*#__PURE__*/css(euiYScrollWithShadows(euiThemeContext), ";padding-inline:", euiTheme.size.l, ";padding-block:", euiTheme.size.s, ";", euiMaxBreakpoint(euiThemeContext, 'm'), "{padding-block-end:", euiTheme.size.l, ";};label:euiModalBody__overflow;")
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -11,6 +11,8 @@ var _excluded = ["className", "children"];
|
|
|
11
11
|
*/
|
|
12
12
|
import React from 'react';
|
|
13
13
|
import classnames from 'classnames';
|
|
14
|
+
import { useEuiTheme } from '../../services';
|
|
15
|
+
import { euiModalFooterStyles } from './modal_footer.styles';
|
|
14
16
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
15
17
|
export var EuiModalFooter = function EuiModalFooter(_ref) {
|
|
16
18
|
var className = _ref.className,
|
|
@@ -18,7 +20,11 @@ export var EuiModalFooter = function EuiModalFooter(_ref) {
|
|
|
18
20
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
19
21
|
|
|
20
22
|
var classes = classnames('euiModalFooter', className);
|
|
23
|
+
var euiTheme = useEuiTheme();
|
|
24
|
+
var styles = euiModalFooterStyles(euiTheme);
|
|
25
|
+
var cssStyles = [styles.euiModalFooter];
|
|
21
26
|
return ___EmotionJSX("div", _extends({
|
|
27
|
+
css: cssStyles,
|
|
22
28
|
className: classes
|
|
23
29
|
}, rest), children);
|
|
24
30
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
3
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
4
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
5
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
6
|
+
* Side Public License, v 1.
|
|
7
|
+
*/
|
|
8
|
+
import { css } from '@emotion/react';
|
|
9
|
+
import { euiMaxBreakpoint } from '../../global_styling';
|
|
10
|
+
export var euiModalFooterStyles = function euiModalFooterStyles(euiThemeContext) {
|
|
11
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
12
|
+
return {
|
|
13
|
+
euiModalFooter: /*#__PURE__*/css("display:flex;justify-content:flex-end;padding-block:", euiTheme.size.base, " ", euiTheme.size.l, ";padding-inline:", euiTheme.size.l, ";flex-grow:0;flex-shrink:0;gap:", euiTheme.size.base, ";", euiMaxBreakpoint(euiThemeContext, 'm'), "{background:", euiTheme.colors.lightestShade, ";padding-block:", euiTheme.size.m, ";padding-inline:", euiTheme.size.l, ";justify-content:stretch;gap:", euiTheme.size.s, ";>*{flex:1;}};label:euiModalFooter;")
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -11,6 +11,8 @@ var _excluded = ["className", "children"];
|
|
|
11
11
|
*/
|
|
12
12
|
import React from 'react';
|
|
13
13
|
import classnames from 'classnames';
|
|
14
|
+
import { useEuiTheme } from '../../services';
|
|
15
|
+
import { euiModalHeaderStyles } from './modal_header.styles';
|
|
14
16
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
15
17
|
export var EuiModalHeader = function EuiModalHeader(_ref) {
|
|
16
18
|
var className = _ref.className,
|
|
@@ -18,7 +20,11 @@ export var EuiModalHeader = function EuiModalHeader(_ref) {
|
|
|
18
20
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
19
21
|
|
|
20
22
|
var classes = classnames('euiModalHeader', className);
|
|
23
|
+
var euiTheme = useEuiTheme();
|
|
24
|
+
var styles = euiModalHeaderStyles(euiTheme);
|
|
25
|
+
var cssStyles = [styles.euiModalHeader];
|
|
21
26
|
return ___EmotionJSX("div", _extends({
|
|
27
|
+
css: cssStyles,
|
|
22
28
|
className: classes
|
|
23
29
|
}, rest), children);
|
|
24
30
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
3
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
4
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
5
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
6
|
+
* Side Public License, v 1.
|
|
7
|
+
*/
|
|
8
|
+
import { css } from '@emotion/react';
|
|
9
|
+
export var euiModalHeaderStyles = function euiModalHeaderStyles(euiThemeContext) {
|
|
10
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
11
|
+
return {
|
|
12
|
+
euiModalHeader: /*#__PURE__*/css("display:flex;justify-content:space-between;align-items:center;padding-inline:", euiTheme.size.l, " ", euiTheme.size.xxl, ";padding-block:", euiTheme.size.l, " ", euiTheme.size.base, ";flex-grow:0;flex-shrink:0;&+.euiModalFooter{padding-block-start:", euiTheme.size.s, ";};label:euiModalHeader;")
|
|
13
|
+
};
|
|
14
|
+
};
|