@elastic/eui 82.2.1 → 83.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_charts_theme.js +1 -1
- package/dist/eui_theme_dark.css +48 -182
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +48 -182
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/accordion/accordion.js +6 -7
- package/es/components/avatar/avatar.js +1 -1
- package/es/components/badge/badge.js +4 -5
- package/es/components/badge/beta_badge/beta_badge.js +1 -1
- 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/button/button.js +8 -5
- 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 +6 -6
- 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_body_custom.js +13 -13
- package/es/components/datagrid/body/data_grid_body_virtualized.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/empty_prompt/empty_prompt.js +1 -1
- package/es/components/expression/expression.js +10 -11
- package/es/components/facet/facet_button.js +1 -1
- package/es/components/flyout/flyout.js +2 -2
- 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.js +8 -2
- package/es/components/header/header.styles.js +58 -0
- 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 → header_logo/header_logo.js} +9 -4
- package/es/components/header/header_logo/header_logo.styles.js +21 -0
- package/es/components/header/header_logo/index.js +9 -0
- package/es/components/icon/assets/sparkles.js +34 -0
- package/es/components/icon/icon.js +2 -1
- package/es/components/icon/icon_glyphs.a11y.js +1 -1
- package/es/components/icon/icon_map.js +1 -0
- package/es/components/image/image_fullscreen_wrapper.js +4 -4
- package/es/components/image/image_wrapper.js +4 -4
- package/es/components/inline_edit/inline_edit_form.js +7 -4
- package/es/components/inline_edit/inline_edit_form.styles.js +3 -1
- package/es/components/inline_edit/inline_edit_text.js +4 -1
- package/es/components/inline_edit/inline_edit_title.js +4 -1
- package/es/components/key_pad_menu/key_pad_menu.js +6 -4
- 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 +5 -6
- 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/notification/notification_event.js +2 -2
- package/es/components/notification/notification_event_meta.js +1 -1
- package/es/components/page/page_body/page_body.js +18 -9
- package/es/components/page/page_header/page_header_content.js +4 -3
- package/es/components/page/page_section/page_section.js +1 -1
- package/es/components/pagination/pagination.js +6 -9
- package/es/components/pagination/pagination.styles.js +4 -3
- package/es/components/pagination/pagination_button.js +4 -12
- package/es/components/pagination/pagination_button.styles.js +2 -19
- package/es/components/pagination/pagination_button_arrow.js +3 -3
- package/es/components/progress/progress.js +4 -4
- package/es/components/resizable_container/resizable_panel.js +5 -5
- 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/timeline/timeline_item_icon.js +1 -1
- package/es/components/toast/global_toast_list.js +1 -1
- package/es/components/toast/toast.js +1 -1
- package/es/components/tool_tip/icon_tip.js +1 -1
- package/es/global_styling/functions/logicals.json +2 -2
- package/es/test/index.d.ts +1 -0
- package/es/test/required_props.js +16 -1
- package/eui.d.ts +61 -27
- package/i18ntokens.json +84 -84
- package/lib/components/accordion/accordion.js +6 -7
- package/lib/components/avatar/avatar.js +1 -1
- package/lib/components/badge/badge.js +4 -5
- package/lib/components/badge/beta_badge/beta_badge.js +1 -1
- 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/button/button.js +8 -5
- 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 +6 -6
- 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_body_custom.js +13 -13
- package/lib/components/datagrid/body/data_grid_body_virtualized.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/empty_prompt/empty_prompt.js +1 -1
- package/lib/components/expression/expression.js +10 -11
- package/lib/components/facet/facet_button.js +1 -1
- package/lib/components/flyout/flyout.js +2 -2
- 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.js +8 -2
- package/lib/components/header/header.styles.js +66 -0
- 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 → header_logo/header_logo.js} +9 -4
- package/lib/components/header/header_logo/header_logo.styles.js +28 -0
- package/lib/components/header/header_logo/index.js +12 -0
- package/lib/components/icon/assets/sparkles.js +42 -0
- package/lib/components/icon/icon.js +2 -1
- package/lib/components/icon/icon_glyphs.a11y.js +1 -1
- package/lib/components/icon/icon_map.js +1 -0
- package/lib/components/icon/svgs/sparkles.svg +3 -0
- package/lib/components/image/image_fullscreen_wrapper.js +4 -4
- package/lib/components/image/image_wrapper.js +4 -4
- package/lib/components/inline_edit/inline_edit_form.js +7 -4
- package/lib/components/inline_edit/inline_edit_form.styles.js +3 -1
- package/lib/components/inline_edit/inline_edit_text.js +4 -1
- package/lib/components/inline_edit/inline_edit_title.js +4 -1
- package/lib/components/key_pad_menu/key_pad_menu.js +6 -4
- 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 +5 -6
- 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/notification/notification_event.js +2 -2
- package/lib/components/notification/notification_event_meta.js +1 -1
- package/lib/components/page/page_body/page_body.js +18 -9
- package/lib/components/page/page_header/page_header_content.js +4 -3
- package/lib/components/page/page_section/page_section.js +1 -1
- package/lib/components/pagination/pagination.js +6 -9
- package/lib/components/pagination/pagination.styles.js +3 -2
- package/lib/components/pagination/pagination_button.js +3 -11
- package/lib/components/pagination/pagination_button.styles.js +4 -22
- package/lib/components/pagination/pagination_button_arrow.js +2 -2
- package/lib/components/progress/progress.js +4 -4
- package/lib/components/resizable_container/resizable_panel.js +5 -5
- 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/timeline/timeline_item_icon.js +1 -1
- package/lib/components/toast/global_toast_list.js +1 -1
- package/lib/components/toast/toast.js +1 -1
- package/lib/components/tool_tip/icon_tip.js +1 -1
- package/lib/global_styling/functions/logicals.json +2 -2
- package/lib/test/index.d.ts +1 -0
- package/lib/test/required_props.js +20 -8
- package/optimize/es/components/accordion/accordion.js +6 -7
- package/optimize/es/components/badge/badge.js +3 -4
- package/optimize/es/components/button/button.js +8 -5
- package/optimize/es/components/card/card.js +5 -5
- package/optimize/es/components/expression/expression.js +10 -11
- package/optimize/es/components/flyout/flyout.js +2 -2
- package/optimize/es/components/header/header.js +8 -2
- package/optimize/es/components/header/header.styles.js +58 -0
- package/optimize/es/components/header/{header_logo.js → header_logo/header_logo.js} +8 -3
- package/optimize/es/components/header/header_logo/header_logo.styles.js +21 -0
- package/optimize/es/components/header/header_logo/index.js +9 -0
- package/optimize/es/components/icon/assets/sparkles.js +33 -0
- package/optimize/es/components/icon/icon.js +1 -0
- package/optimize/es/components/icon/icon_glyphs.a11y.js +1 -1
- package/optimize/es/components/icon/icon_map.js +1 -0
- package/optimize/es/components/image/image_fullscreen_wrapper.js +4 -4
- package/optimize/es/components/image/image_wrapper.js +4 -4
- package/optimize/es/components/inline_edit/inline_edit_form.js +6 -4
- package/optimize/es/components/inline_edit/inline_edit_form.styles.js +3 -1
- package/optimize/es/components/inline_edit/inline_edit_text.js +3 -1
- package/optimize/es/components/inline_edit/inline_edit_title.js +3 -1
- package/optimize/es/components/key_pad_menu/key_pad_menu.js +6 -4
- package/optimize/es/components/list_group/list_group_item.js +3 -4
- package/optimize/es/components/page/page_body/page_body.js +18 -9
- package/optimize/es/components/page/page_header/page_header_content.js +3 -2
- package/optimize/es/components/page/page_section/page_section.js +1 -1
- package/optimize/es/components/pagination/pagination.js +6 -9
- package/optimize/es/components/pagination/pagination.styles.js +4 -3
- package/optimize/es/components/pagination/pagination_button.js +3 -4
- package/optimize/es/components/pagination/pagination_button.styles.js +2 -19
- package/optimize/es/components/pagination/pagination_button_arrow.js +3 -3
- package/optimize/es/components/progress/progress.js +4 -4
- package/optimize/es/components/resizable_container/resizable_panel.js +5 -5
- package/optimize/es/global_styling/functions/logicals.json +2 -2
- package/optimize/es/test/index.d.ts +1 -0
- package/optimize/es/test/required_props.js +16 -1
- package/optimize/lib/components/accordion/accordion.js +6 -7
- package/optimize/lib/components/badge/badge.js +3 -4
- package/optimize/lib/components/button/button.js +8 -5
- package/optimize/lib/components/card/card.js +5 -5
- package/optimize/lib/components/expression/expression.js +10 -11
- package/optimize/lib/components/flyout/flyout.js +2 -2
- package/optimize/lib/components/header/header.js +8 -2
- package/optimize/lib/components/header/header.styles.js +66 -0
- package/optimize/lib/components/header/{header_logo.js → header_logo/header_logo.js} +8 -3
- package/optimize/lib/components/header/header_logo/header_logo.styles.js +28 -0
- package/optimize/lib/components/header/header_logo/index.js +12 -0
- package/optimize/lib/components/icon/assets/sparkles.js +42 -0
- package/optimize/lib/components/icon/icon.js +1 -0
- package/optimize/lib/components/icon/icon_glyphs.a11y.js +1 -1
- package/optimize/lib/components/icon/icon_map.js +1 -0
- package/optimize/lib/components/icon/svgs/sparkles.svg +3 -0
- package/optimize/lib/components/image/image_fullscreen_wrapper.js +4 -4
- package/optimize/lib/components/image/image_wrapper.js +4 -4
- package/optimize/lib/components/inline_edit/inline_edit_form.js +6 -4
- package/optimize/lib/components/inline_edit/inline_edit_form.styles.js +3 -1
- package/optimize/lib/components/inline_edit/inline_edit_text.js +3 -1
- package/optimize/lib/components/inline_edit/inline_edit_title.js +3 -1
- package/optimize/lib/components/key_pad_menu/key_pad_menu.js +6 -4
- package/optimize/lib/components/list_group/list_group_item.js +3 -4
- package/optimize/lib/components/page/page_body/page_body.js +18 -9
- package/optimize/lib/components/page/page_header/page_header_content.js +3 -2
- package/optimize/lib/components/page/page_section/page_section.js +1 -1
- package/optimize/lib/components/pagination/pagination.js +6 -9
- package/optimize/lib/components/pagination/pagination.styles.js +3 -2
- package/optimize/lib/components/pagination/pagination_button.js +3 -4
- package/optimize/lib/components/pagination/pagination_button.styles.js +4 -22
- package/optimize/lib/components/pagination/pagination_button_arrow.js +2 -2
- package/optimize/lib/components/progress/progress.js +4 -4
- package/optimize/lib/components/resizable_container/resizable_panel.js +5 -5
- package/optimize/lib/global_styling/functions/logicals.json +2 -2
- package/optimize/lib/test/index.d.ts +1 -0
- package/optimize/lib/test/required_props.js +20 -8
- package/package.json +3 -5
- package/src/components/datagrid/_data_grid_data_row.scss +27 -0
- package/src/components/header/_index.scss +0 -6
- package/src/components/selectable/selectable_templates/_index.scss +0 -1
- package/src/global_styling/variables/_header.scss +2 -5
- package/src/themes/amsterdam/global_styling/variables/_index.scss +0 -1
- package/src/themes/amsterdam/overrides/_header.scss +0 -24
- package/test-env/components/accordion/accordion.js +6 -7
- package/test-env/components/avatar/avatar.js +1 -1
- package/test-env/components/badge/badge.js +4 -5
- package/test-env/components/badge/beta_badge/beta_badge.js +1 -1
- 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/button/button.js +8 -5
- 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 +6 -6
- 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_body_custom.js +13 -13
- package/test-env/components/datagrid/body/data_grid_body_virtualized.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/empty_prompt/empty_prompt.js +1 -1
- package/test-env/components/expression/expression.js +10 -11
- package/test-env/components/facet/facet_button.js +1 -1
- 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.js +8 -2
- package/test-env/components/header/header.styles.js +66 -0
- 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 → header_logo/header_logo.js} +9 -4
- package/test-env/components/header/header_logo/header_logo.styles.js +28 -0
- package/test-env/components/header/header_logo/index.js +12 -0
- package/test-env/components/icon/assets/sparkles.js +42 -0
- package/test-env/components/icon/icon_glyphs.a11y.js +1 -1
- package/test-env/components/icon/icon_map.js +1 -0
- package/test-env/components/image/image_fullscreen_wrapper.js +4 -4
- package/test-env/components/image/image_wrapper.js +4 -4
- package/test-env/components/inline_edit/inline_edit_form.js +7 -4
- package/test-env/components/inline_edit/inline_edit_form.styles.js +3 -1
- package/test-env/components/inline_edit/inline_edit_text.js +4 -1
- package/test-env/components/inline_edit/inline_edit_title.js +4 -1
- package/test-env/components/key_pad_menu/key_pad_menu.js +6 -4
- 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 +5 -6
- 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/notification/notification_event.js +2 -2
- package/test-env/components/notification/notification_event_meta.js +1 -1
- package/test-env/components/page/page_body/page_body.js +18 -9
- package/test-env/components/page/page_header/page_header_content.js +4 -3
- package/test-env/components/page/page_section/page_section.js +1 -1
- package/test-env/components/pagination/pagination.js +6 -9
- package/test-env/components/pagination/pagination.styles.js +3 -2
- package/test-env/components/pagination/pagination_button.js +3 -11
- package/test-env/components/pagination/pagination_button.styles.js +4 -22
- package/test-env/components/pagination/pagination_button_arrow.js +2 -2
- package/test-env/components/progress/progress.js +4 -4
- package/test-env/components/resizable_container/resizable_panel.js +5 -5
- 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/timeline/timeline_item_icon.js +1 -1
- package/test-env/components/toast/global_toast_list.js +1 -1
- package/test-env/components/toast/toast.js +1 -1
- package/test-env/components/tool_tip/icon_tip.js +1 -1
- package/test-env/global_styling/functions/logicals.json +2 -2
- package/test-env/test/required_props.js +20 -8
- package/src/components/header/_header.scss +0 -29
- package/src/components/header/_header_logo.scss +0 -40
- package/src/components/header/_header_profile.scss +0 -3
- package/src/components/header/_mixins.scss +0 -36
- package/src/components/selectable/selectable_templates/_selectable_template_sitewide.scss +0 -31
- package/src/themes/amsterdam/global_styling/variables/_header.scss +0 -7
|
@@ -21,7 +21,6 @@ import { EuiPaginationButtonArrow } from './pagination_button_arrow';
|
|
|
21
21
|
import { useIsWithinBreakpoints, useEuiTheme } from '../../services';
|
|
22
22
|
import { EuiScreenReaderOnly } from '../accessibility';
|
|
23
23
|
import { euiPaginationStyles } from './pagination.styles';
|
|
24
|
-
import { euiPaginationButtonStyles } from './pagination_button.styles';
|
|
25
24
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
26
25
|
var MAX_VISIBLE_PAGES = 5;
|
|
27
26
|
var NUMBER_SURROUNDING_PAGES = Math.floor(MAX_VISIBLE_PAGES * 0.5);
|
|
@@ -40,9 +39,7 @@ export var EuiPagination = function EuiPagination(_ref) {
|
|
|
40
39
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
41
40
|
var isResponsive = useIsWithinBreakpoints(responsive, !!responsive);
|
|
42
41
|
var euiTheme = useEuiTheme();
|
|
43
|
-
var
|
|
44
|
-
var _euiPaginationButtonS = euiPaginationButtonStyles(euiTheme),
|
|
45
|
-
isPlaceholder = _euiPaginationButtonS.isPlaceholder;
|
|
42
|
+
var styles = euiPaginationStyles(euiTheme);
|
|
46
43
|
|
|
47
44
|
// Force to `compressed` version if specified or within the responsive breakpoints
|
|
48
45
|
var compressed = _compressed || isResponsive;
|
|
@@ -100,7 +97,7 @@ export var EuiPagination = function EuiPagination(_ref) {
|
|
|
100
97
|
if (compressed) {
|
|
101
98
|
centerPageCount = ___EmotionJSX(EuiText, {
|
|
102
99
|
size: "s",
|
|
103
|
-
css:
|
|
100
|
+
css: styles.euiPagination__compressedText,
|
|
104
101
|
className: "euiPagination__compressedText"
|
|
105
102
|
}, ___EmotionJSX(EuiI18n, {
|
|
106
103
|
token: "euiPagination.pageOfTotalCompressed",
|
|
@@ -138,7 +135,7 @@ export var EuiPagination = function EuiPagination(_ref) {
|
|
|
138
135
|
return ___EmotionJSX("li", {
|
|
139
136
|
"aria-label": firstRangeAriaLabel,
|
|
140
137
|
className: "euiPagination__item",
|
|
141
|
-
css:
|
|
138
|
+
css: styles.euiPagination__ellipsis
|
|
142
139
|
}, "\u2026");
|
|
143
140
|
}));
|
|
144
141
|
} else if (firstPageInRange === 2) {
|
|
@@ -168,7 +165,7 @@ export var EuiPagination = function EuiPagination(_ref) {
|
|
|
168
165
|
return ___EmotionJSX("li", {
|
|
169
166
|
"aria-label": lastRangeAriaLabel,
|
|
170
167
|
className: "euiPagination__item",
|
|
171
|
-
css:
|
|
168
|
+
css: styles.euiPagination__ellipsis
|
|
172
169
|
}, "\u2026");
|
|
173
170
|
}));
|
|
174
171
|
}
|
|
@@ -185,7 +182,7 @@ export var EuiPagination = function EuiPagination(_ref) {
|
|
|
185
182
|
});
|
|
186
183
|
centerPageCount = ___EmotionJSX("ul", _extends({
|
|
187
184
|
className: "euiPagination__list",
|
|
188
|
-
css:
|
|
185
|
+
css: styles.euiPagination__list
|
|
189
186
|
}, accessibleName), firstPageButtons, selectablePages, lastPageButtons);
|
|
190
187
|
}
|
|
191
188
|
}
|
|
@@ -211,7 +208,7 @@ export var EuiPagination = function EuiPagination(_ref) {
|
|
|
211
208
|
// Create the whole string with total pageCount or `collection`
|
|
212
209
|
var accessiblePageCount = "".concat(accessiblePageString(), " ").concat(ofLabel, " ").concat(accessibleCollectionString);
|
|
213
210
|
return ___EmotionJSX("nav", _extends({
|
|
214
|
-
css:
|
|
211
|
+
css: styles.euiPagination,
|
|
215
212
|
className: classes
|
|
216
213
|
}, rest), ___EmotionJSX(EuiScreenReaderOnly, null, ___EmotionJSX("span", {
|
|
217
214
|
"aria-atomic": "true",
|
|
@@ -8,7 +8,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import { css } from '@emotion/react';
|
|
11
|
-
import { logicalCSS, logicalCSSWithFallback, euiScrollBarStyles } from '../../global_styling';
|
|
11
|
+
import { logicalCSS, logicalCSSWithFallback, euiScrollBarStyles, euiFontSize } from '../../global_styling';
|
|
12
12
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
13
13
|
name: "1dbd2rc-euiPagination__list",
|
|
14
14
|
styles: "display:flex;align-items:baseline;label:euiPagination__list;"
|
|
@@ -23,7 +23,8 @@ export var euiPaginationStyles = function euiPaginationStyles(euiThemeContext) {
|
|
|
23
23
|
// Base
|
|
24
24
|
euiPagination: /*#__PURE__*/css(euiScrollBarStyles(euiThemeContext), " display:flex;align-items:center;", logicalCSSWithFallback('overflow-y', 'hidden'), " ", logicalCSSWithFallback('overflow-x', 'auto'), ";;label:euiPagination;"),
|
|
25
25
|
// Elements
|
|
26
|
-
euiPagination__compressedText: /*#__PURE__*/css("display:inline-flex;align-items:center;line-height:1
|
|
27
|
-
euiPagination__list: _ref
|
|
26
|
+
euiPagination__compressedText: /*#__PURE__*/css("display:inline-flex;align-items:center;line-height:1;>span{", logicalCSS('margin-horizontal', euiTheme.size.s), " font-weight:", euiTheme.font.weight.semiBold, ";&:first-of-type{color:", euiTheme.colors.primaryText, ";}};label:euiPagination__compressedText;"),
|
|
27
|
+
euiPagination__list: _ref,
|
|
28
|
+
euiPagination__ellipsis: /*#__PURE__*/css("color:", euiTheme.colors.disabledText, ";font-size:", euiFontSize(euiThemeContext, 's').fontSize, ";", logicalCSS('padding-horizontal', euiTheme.size.s), " ", logicalCSS('height', euiTheme.size.l), ";;label:euiPagination__ellipsis;")
|
|
28
29
|
};
|
|
29
30
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
-
var _excluded = ["className", "isActive", "
|
|
4
|
+
var _excluded = ["className", "isActive", "pageIndex", "totalPages"];
|
|
5
5
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
6
6
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
7
7
|
/*
|
|
@@ -22,13 +22,12 @@ import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
|
22
22
|
export var EuiPaginationButton = function EuiPaginationButton(_ref) {
|
|
23
23
|
var className = _ref.className,
|
|
24
24
|
isActive = _ref.isActive,
|
|
25
|
-
isPlaceholder = _ref.isPlaceholder,
|
|
26
25
|
pageIndex = _ref.pageIndex,
|
|
27
26
|
totalPages = _ref.totalPages,
|
|
28
27
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
29
28
|
var euiTheme = useEuiTheme();
|
|
30
29
|
var styles = euiPaginationButtonStyles(euiTheme);
|
|
31
|
-
var paginationButtonCss = [styles.euiPaginationButton, isActive && styles.isActive
|
|
30
|
+
var paginationButtonCss = [styles.euiPaginationButton, isActive && styles.isActive];
|
|
32
31
|
var classes = classNames('euiPaginationButton', className);
|
|
33
32
|
var props = _objectSpread(_objectSpread(_objectSpread({
|
|
34
33
|
css: paginationButtonCss,
|
|
@@ -36,7 +35,7 @@ export var EuiPaginationButton = function EuiPaginationButton(_ref) {
|
|
|
36
35
|
size: 's',
|
|
37
36
|
color: 'text',
|
|
38
37
|
'data-test-subj': "pagination-button-".concat(pageIndex),
|
|
39
|
-
isDisabled:
|
|
38
|
+
isDisabled: isActive
|
|
40
39
|
}, isActive && {
|
|
41
40
|
'aria-current': true
|
|
42
41
|
}), rest['aria-controls'] && {
|
|
@@ -7,29 +7,12 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { css } from '@emotion/react';
|
|
10
|
-
import { logicalCSS, logicalTextAlignCSS, mathWithUnits, euiFontSize } from '../../global_styling';
|
|
11
|
-
import { euiButtonEmptyColor } from '../../themes/amsterdam/global_styling/mixins';
|
|
12
10
|
export var euiPaginationButtonStyles = function euiPaginationButtonStyles(euiThemeContext) {
|
|
13
11
|
var euiTheme = euiThemeContext.euiTheme;
|
|
14
|
-
var fontSizeS = euiFontSize(euiThemeContext, 's');
|
|
15
|
-
var halfSizeM = mathWithUnits(euiTheme.size.m, function (x) {
|
|
16
|
-
return x / 2;
|
|
17
|
-
});
|
|
18
|
-
var disabled = euiButtonEmptyColor(euiThemeContext, 'disabled');
|
|
19
|
-
|
|
20
|
-
// && to increase specificity. Can likely be removed once EuiButtonEmpty has been converted.
|
|
21
|
-
|
|
22
12
|
return {
|
|
23
13
|
// Base
|
|
24
|
-
euiPaginationButton: /*#__PURE__*/css("
|
|
14
|
+
euiPaginationButton: /*#__PURE__*/css("outline-offset:-", euiTheme.focus.width, ";;label:euiPaginationButton;"),
|
|
25
15
|
// States
|
|
26
|
-
isActive: /*#__PURE__*/css("
|
|
27
|
-
isPlaceholder: /*#__PURE__*/css("&&{align-items:baseline;color:", disabled.color, ";", fontSizeS, " ", logicalCSS('padding-top', halfSizeM), " ", logicalCSS('padding-bottom', 0), " ", logicalCSS('padding-horizontal', euiTheme.size.s), " ", logicalCSS('height', euiTheme.size.l), ";};label:isPlaceholder;")
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
export var euiPaginationButtonArrowStyles = function euiPaginationButtonArrowStyles(_ref) {
|
|
31
|
-
var euiTheme = _ref.euiTheme;
|
|
32
|
-
return {
|
|
33
|
-
euiPaginationArrowButton: /*#__PURE__*/css("outline-offset:-", euiTheme.focus.width, ";;label:euiPaginationArrowButton;")
|
|
16
|
+
isActive: /*#__PURE__*/css("font-weight:", euiTheme.font.weight.bold, ";color:", euiTheme.colors.primary, ";&,&:hover{cursor:default;text-decoration:underline;};label:isActive;")
|
|
34
17
|
};
|
|
35
18
|
};
|
|
@@ -13,7 +13,7 @@ import { EuiButtonIcon } from '../button/button_icon';
|
|
|
13
13
|
import { keysOf } from '../common';
|
|
14
14
|
import { useEuiI18n } from '../i18n';
|
|
15
15
|
import { useEuiTheme } from '../../services';
|
|
16
|
-
import {
|
|
16
|
+
import { euiPaginationButtonStyles } from './pagination_button.styles';
|
|
17
17
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
18
18
|
var typeToIconTypeMap = {
|
|
19
19
|
first: 'arrowStart',
|
|
@@ -29,7 +29,7 @@ export var EuiPaginationButtonArrow = function EuiPaginationButtonArrow(_ref) {
|
|
|
29
29
|
ariaControls = _ref.ariaControls,
|
|
30
30
|
onClick = _ref.onClick;
|
|
31
31
|
var euiTheme = useEuiTheme();
|
|
32
|
-
var styles =
|
|
32
|
+
var styles = euiPaginationButtonStyles(euiTheme);
|
|
33
33
|
var labels = {
|
|
34
34
|
first: useEuiI18n('euiPaginationButtonArrow.firstPage', 'First page'),
|
|
35
35
|
previous: useEuiI18n('euiPaginationButtonArrow.previousPage', 'Previous page'),
|
|
@@ -42,7 +42,7 @@ export var EuiPaginationButtonArrow = function EuiPaginationButtonArrow(_ref) {
|
|
|
42
42
|
buttonProps['aria-controls'] = ariaControls;
|
|
43
43
|
}
|
|
44
44
|
return ___EmotionJSX(EuiButtonIcon, _extends({
|
|
45
|
-
css: styles.
|
|
45
|
+
css: styles.euiPaginationButton,
|
|
46
46
|
className: classNames('euiPaginationArrowButton', className),
|
|
47
47
|
color: "text",
|
|
48
48
|
"aria-label": labels[type],
|
|
@@ -48,7 +48,7 @@ export var EuiProgress = function EuiProgress(_ref) {
|
|
|
48
48
|
var cssStyles = [styles.euiProgress, determinate && styles.native, !determinate && styles.indeterminate, styles[size], styles[position], isNamedColor ? styles[color] : styles.customColor];
|
|
49
49
|
var dataStyles = euiProgressDataStyles(euiTheme);
|
|
50
50
|
var dataCssStyles = [dataStyles.euiProgress__data, size === 'l' && dataStyles[size]];
|
|
51
|
-
var labelCssStyles = [euiProgressLabelStyles.euiProgress__label];
|
|
51
|
+
var labelCssStyles = [euiProgressLabelStyles.euiProgress__label, labelProps === null || labelProps === void 0 ? void 0 : labelProps.css];
|
|
52
52
|
var valueTextStyles = euiProgressValueTextStyles(euiTheme);
|
|
53
53
|
var valueTextCssStyles = [valueTextStyles.euiProgress__valueText, isNamedColor ? valueTextStyles[color] : styles.customColor];
|
|
54
54
|
var classes = classNames('euiProgress', className);
|
|
@@ -78,10 +78,10 @@ export var EuiProgress = function EuiProgress(_ref) {
|
|
|
78
78
|
}, label && ___EmotionJSX(EuiInnerText, null, function (ref, innerText) {
|
|
79
79
|
return ___EmotionJSX("span", _extends({
|
|
80
80
|
title: innerText,
|
|
81
|
-
ref: ref
|
|
82
|
-
css: labelCssStyles
|
|
81
|
+
ref: ref
|
|
83
82
|
}, labelProps, {
|
|
84
|
-
className: labelClasses
|
|
83
|
+
className: labelClasses,
|
|
84
|
+
css: labelCssStyles
|
|
85
85
|
}), label);
|
|
86
86
|
}), valueRender && ___EmotionJSX(EuiInnerText, null, function (ref, innerText) {
|
|
87
87
|
return ___EmotionJSX("span", {
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
4
|
import _typeof from "@babel/runtime/helpers/typeof";
|
|
5
|
-
var _excluded = ["children", "className", "id", "isHorizontal", "size", "initialSize", "minSize", "scrollable", "mode", "registration", "onToggleCollapsed", "onToggleCollapsedInternal", "wrapperProps", "hasShadow", "borderRadius", "color", "paddingSize", "wrapperPadding"];
|
|
5
|
+
var _excluded = ["children", "className", "css", "id", "isHorizontal", "size", "initialSize", "minSize", "scrollable", "mode", "registration", "onToggleCollapsed", "onToggleCollapsedInternal", "wrapperProps", "hasShadow", "borderRadius", "color", "paddingSize", "wrapperPadding"];
|
|
6
6
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
7
7
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
8
8
|
/*
|
|
@@ -46,6 +46,7 @@ var getPosition = function getPosition(ref) {
|
|
|
46
46
|
export var EuiResizablePanel = function EuiResizablePanel(_ref) {
|
|
47
47
|
var children = _ref.children,
|
|
48
48
|
className = _ref.className,
|
|
49
|
+
css = _ref.css,
|
|
49
50
|
id = _ref.id,
|
|
50
51
|
isHorizontal = _ref.isHorizontal,
|
|
51
52
|
size = _ref.size,
|
|
@@ -134,7 +135,7 @@ export var EuiResizablePanel = function EuiResizablePanel(_ref) {
|
|
|
134
135
|
var axis = isHorizontal ? 'horizontal' : 'vertical';
|
|
135
136
|
var euiTheme = useEuiTheme();
|
|
136
137
|
var styles = euiResizablePanelStyles(euiTheme);
|
|
137
|
-
var cssStyles = [styles.euiResizablePanel, isCollapsed && styles.collapsed, styles.paddingSizes[wrapperPadding]];
|
|
138
|
+
var cssStyles = [styles.euiResizablePanel, isCollapsed && styles.collapsed, styles.paddingSizes[wrapperPadding], wrapperProps === null || wrapperProps === void 0 ? void 0 : wrapperProps.css];
|
|
138
139
|
var contentStyles = euiResizablePanelContentStyles(euiTheme);
|
|
139
140
|
var contentCssStyles = [contentStyles.euiResizablePanel__content, scrollable && contentStyles.scrollable, isCollapsed && contentStyles.collapsedChildren, isCollapsed && !isCollapsible && contentStyles[axis].collapsed, isCollapsible && contentStyles[axis].hasCollapsibleButton];
|
|
140
141
|
var classes = classNames('euiResizablePanel', wrapperProps === null || wrapperProps === void 0 ? void 0 : wrapperProps.className);
|
|
@@ -208,9 +209,8 @@ export var EuiResizablePanel = function EuiResizablePanel(_ref) {
|
|
|
208
209
|
onClick: collapseLeft
|
|
209
210
|
});
|
|
210
211
|
}
|
|
211
|
-
return ___EmotionJSX("div", _extends({
|
|
212
|
-
css: cssStyles
|
|
213
|
-
}, wrapperProps, {
|
|
212
|
+
return ___EmotionJSX("div", _extends({}, wrapperProps, {
|
|
213
|
+
css: cssStyles,
|
|
214
214
|
id: panelId,
|
|
215
215
|
ref: divRef,
|
|
216
216
|
style: inlineStyles,
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"right": "inset-inline-end",
|
|
10
10
|
"bottom": "inset-block-end",
|
|
11
11
|
"left": "inset-inline-start",
|
|
12
|
-
"horizontal": "inset-
|
|
13
|
-
"vertical": "inset-
|
|
12
|
+
"horizontal": "inset-inline",
|
|
13
|
+
"vertical": "inset-block",
|
|
14
14
|
"margin-left": "margin-inline-start",
|
|
15
15
|
"margin-right": "margin-inline-end",
|
|
16
16
|
"margin-top": "margin-block-start",
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
1
2
|
/*
|
|
2
3
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
3
4
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -6,10 +7,24 @@
|
|
|
6
7
|
* Side Public License, v 1.
|
|
7
8
|
*/
|
|
8
9
|
|
|
10
|
+
import { css } from '@emotion/react';
|
|
11
|
+
|
|
12
|
+
// Using a variable name instead of inline causes Emotion to use `euiTestCss`
|
|
13
|
+
// instead of the component name, which is easier to find in snapshots
|
|
14
|
+
var euiTestCss = process.env.NODE_ENV === "production" ? {
|
|
15
|
+
name: "hzx95w-euiTestCss",
|
|
16
|
+
styles: "color:red;label:euiTestCss;"
|
|
17
|
+
} : {
|
|
18
|
+
name: "hzx95w-euiTestCss",
|
|
19
|
+
styles: "color:red;label:euiTestCss;",
|
|
20
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
21
|
+
};
|
|
22
|
+
|
|
9
23
|
// We expect all React components to be able to support these props,
|
|
10
24
|
// which will be rendered as HTML attributes.
|
|
11
25
|
export var requiredProps = {
|
|
12
26
|
'aria-label': 'aria-label',
|
|
13
27
|
className: 'testClass1 testClass2',
|
|
14
|
-
'data-test-subj': 'test subject string'
|
|
28
|
+
'data-test-subj': 'test subject string',
|
|
29
|
+
css: euiTestCss
|
|
15
30
|
};
|
|
@@ -162,13 +162,13 @@ var EuiAccordionClass = /*#__PURE__*/function (_Component) {
|
|
|
162
162
|
|
|
163
163
|
// Emotion styles
|
|
164
164
|
var buttonStyles = (0, _accordion.euiAccordionButtonStyles)(theme);
|
|
165
|
-
var cssButtonStyles = [buttonStyles.euiAccordion__button, isDisabled && buttonStyles.disabled];
|
|
165
|
+
var cssButtonStyles = [buttonStyles.euiAccordion__button, isDisabled && buttonStyles.disabled, buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.css];
|
|
166
166
|
var childrenStyles = (0, _accordion.euiAccordionChildrenStyles)(theme);
|
|
167
167
|
var cssChildrenStyles = [childrenStyles.euiAccordion__children, isLoading && childrenStyles.isLoading, paddingSize === 'none' ? undefined : childrenStyles[paddingSize]];
|
|
168
168
|
var childWrapperStyles = (0, _accordion.euiAccordionChildWrapperStyles)(theme);
|
|
169
169
|
var cssChildWrapperStyles = [childWrapperStyles.euiAccordion__childWrapper, isOpen && childWrapperStyles.isOpen];
|
|
170
170
|
var iconButtonStyles = (0, _accordion.euiAccordionIconButtonStyles)(theme);
|
|
171
|
-
var cssIconButtonStyles = [iconButtonStyles.euiAccordion__iconButton, isOpen && iconButtonStyles.isOpen, _arrowDisplay === 'right' && iconButtonStyles.arrowRight];
|
|
171
|
+
var cssIconButtonStyles = [iconButtonStyles.euiAccordion__iconButton, isOpen && iconButtonStyles.isOpen, _arrowDisplay === 'right' && iconButtonStyles.arrowRight, arrowProps === null || arrowProps === void 0 ? void 0 : arrowProps.css];
|
|
172
172
|
var optionalActionStyles = (0, _accordion.euiAccordionOptionalActionStyles)();
|
|
173
173
|
var cssOptionalActionStyles = [optionalActionStyles.euiAccordion__optionalAction];
|
|
174
174
|
var spinnerStyles = (0, _accordion.euiAccordionSpinnerStyles)(theme);
|
|
@@ -179,10 +179,10 @@ var EuiAccordionClass = /*#__PURE__*/function (_Component) {
|
|
|
179
179
|
var buttonId = (_buttonProps$id = buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.id) !== null && _buttonProps$id !== void 0 ? _buttonProps$id : this.generatedId;
|
|
180
180
|
if (_arrowDisplay !== 'none') {
|
|
181
181
|
iconButton = (0, _react2.jsx)(_button.EuiButtonIcon, (0, _extends2.default)({
|
|
182
|
-
color: "text"
|
|
183
|
-
css: cssIconButtonStyles
|
|
182
|
+
color: "text"
|
|
184
183
|
}, arrowProps, {
|
|
185
184
|
className: iconButtonClasses,
|
|
185
|
+
css: cssIconButtonStyles,
|
|
186
186
|
iconType: "arrowRight",
|
|
187
187
|
onClick: this.onToggle,
|
|
188
188
|
"aria-controls": id,
|
|
@@ -213,11 +213,10 @@ var EuiAccordionClass = /*#__PURE__*/function (_Component) {
|
|
|
213
213
|
} else {
|
|
214
214
|
childrenContent = children;
|
|
215
215
|
}
|
|
216
|
-
var button = (0, _react2.jsx)(ButtonElement, (0, _extends2.default)({
|
|
217
|
-
css: cssButtonStyles
|
|
218
|
-
}, buttonProps, {
|
|
216
|
+
var button = (0, _react2.jsx)(ButtonElement, (0, _extends2.default)({}, buttonProps, {
|
|
219
217
|
id: buttonId,
|
|
220
218
|
className: buttonClasses,
|
|
219
|
+
css: cssButtonStyles,
|
|
221
220
|
"aria-controls": id
|
|
222
221
|
// `aria-expanded` is only a valid attribute on interactive controls - axe-core throws a violation otherwise
|
|
223
222
|
,
|
|
@@ -87,7 +87,7 @@ var EuiBadge = function EuiBadge(_ref) {
|
|
|
87
87
|
var iconCssStyles = [styles.icon.euiBadge__icon, styles.icon[iconSide]];
|
|
88
88
|
var iconButtonCssStyles = [styles.iconButton.euiBadge__iconButton, styles.iconButton[iconSide]];
|
|
89
89
|
var classes = (0, _classnames.default)('euiBadge', className);
|
|
90
|
-
var closeClassNames = (0, _classnames.default)('euiBadge__icon', closeButtonProps
|
|
90
|
+
var closeClassNames = (0, _classnames.default)('euiBadge__icon', closeButtonProps === null || closeButtonProps === void 0 ? void 0 : closeButtonProps.className);
|
|
91
91
|
var Element = href && !isDisabled ? 'a' : 'button';
|
|
92
92
|
var relObj = {};
|
|
93
93
|
if (href && !isDisabled) {
|
|
@@ -120,10 +120,9 @@ var EuiBadge = function EuiBadge(_ref) {
|
|
|
120
120
|
type: iconType,
|
|
121
121
|
size: "s",
|
|
122
122
|
color: "inherit" // forces the icon to inherit its parent color
|
|
123
|
-
,
|
|
124
|
-
css: iconCssStyles
|
|
125
123
|
}, closeButtonProps, {
|
|
126
|
-
className: closeClassNames
|
|
124
|
+
className: closeClassNames,
|
|
125
|
+
css: [].concat(iconCssStyles, [closeButtonProps === null || closeButtonProps === void 0 ? void 0 : closeButtonProps.css])
|
|
127
126
|
})));
|
|
128
127
|
} else {
|
|
129
128
|
optionalIcon = (0, _react2.jsx)(_icon.EuiIcon, {
|
|
@@ -9,11 +9,12 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
9
9
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
10
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
11
11
|
var _react = _interopRequireDefault(require("react"));
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
12
13
|
var _button = require("../../themes/amsterdam/global_styling/mixins/button");
|
|
13
14
|
var _button_display = require("./button_display/_button_display");
|
|
14
15
|
var _services = require("../../services");
|
|
15
16
|
var _react2 = require("@emotion/react");
|
|
16
|
-
var _excluded = ["buttonRef", "color", "fill"];
|
|
17
|
+
var _excluded = ["className", "buttonRef", "color", "fill"];
|
|
17
18
|
/*
|
|
18
19
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
19
20
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -30,7 +31,8 @@ exports.SIZES = SIZES;
|
|
|
30
31
|
* and the logic for element-specific attributes
|
|
31
32
|
*/
|
|
32
33
|
var EuiButton = function EuiButton(props) {
|
|
33
|
-
var
|
|
34
|
+
var className = props.className,
|
|
35
|
+
buttonRef = props.buttonRef,
|
|
34
36
|
_props$color = props.color,
|
|
35
37
|
_color = _props$color === void 0 ? 'primary' : _props$color,
|
|
36
38
|
fill = props.fill,
|
|
@@ -45,6 +47,7 @@ var EuiButton = function EuiButton(props) {
|
|
|
45
47
|
display: fill ? 'fill' : 'base'
|
|
46
48
|
})[color === 'ghost' ? 'text' : color];
|
|
47
49
|
var buttonFocusStyle = (0, _button.useEuiButtonFocusCSS)();
|
|
50
|
+
var classes = (0, _classnames.default)('euiButton', className);
|
|
48
51
|
var cssStyles = [buttonColorStyles, buttonFocusStyle];
|
|
49
52
|
if (_color === 'ghost') {
|
|
50
53
|
// INCEPTION: If `ghost`, re-implement with a wrapping dark mode theme provider
|
|
@@ -58,9 +61,9 @@ var EuiButton = function EuiButton(props) {
|
|
|
58
61
|
})));
|
|
59
62
|
}
|
|
60
63
|
return (0, _react2.jsx)(_button_display.EuiButtonDisplay, (0, _extends2.default)({
|
|
61
|
-
className:
|
|
62
|
-
|
|
63
|
-
|
|
64
|
+
className: classes,
|
|
65
|
+
css: cssStyles,
|
|
66
|
+
ref: buttonRef
|
|
64
67
|
}, rest));
|
|
65
68
|
};
|
|
66
69
|
exports.EuiButton = EuiButton;
|
|
@@ -150,18 +150,18 @@ var EuiCard = function EuiCard(_ref) {
|
|
|
150
150
|
if (betaBadgeProps !== null && betaBadgeProps !== void 0 && betaBadgeProps.label) {
|
|
151
151
|
var betaStyles = (0, _card.euiCardBetaBadgeStyles)(euiThemeContext, paddingSize);
|
|
152
152
|
optionalBetaCSS = betaStyles.hasBetaBadge;
|
|
153
|
-
var anchorCSS = [betaStyles.euiCard__betaBadgeAnchor];
|
|
154
|
-
var badgeCSS = [betaStyles.euiCard__betaBadge];
|
|
155
153
|
var anchorProps = betaBadgeProps.anchorProps,
|
|
156
154
|
cleanedBetaBadgeProps = (0, _objectWithoutProperties2.default)(betaBadgeProps, _excluded2);
|
|
155
|
+
var anchorCSS = [betaStyles.euiCard__betaBadgeAnchor, anchorProps === null || anchorProps === void 0 ? void 0 : anchorProps.css];
|
|
156
|
+
var badgeCSS = [betaStyles.euiCard__betaBadge, betaBadgeProps === null || betaBadgeProps === void 0 ? void 0 : betaBadgeProps.css];
|
|
157
157
|
optionalBetaBadgeID = "".concat(ariaId, "BetaBadge");
|
|
158
158
|
optionalBetaBadge = (0, _react2.jsx)(_beta_badge.EuiBetaBadge, (0, _extends2.default)({
|
|
159
|
-
css: badgeCSS,
|
|
160
159
|
color: isDisabled && !betaBadgeProps.onClick && !betaBadgeProps.href ? 'subdued' : 'hollow'
|
|
161
160
|
}, cleanedBetaBadgeProps, {
|
|
162
|
-
|
|
161
|
+
css: badgeCSS,
|
|
162
|
+
anchorProps: _objectSpread(_objectSpread({}, anchorProps), {}, {
|
|
163
163
|
css: anchorCSS
|
|
164
|
-
}
|
|
164
|
+
}),
|
|
165
165
|
id: optionalBetaBadgeID
|
|
166
166
|
}));
|
|
167
167
|
|
|
@@ -60,10 +60,9 @@ var EuiExpression = function EuiExpression(_ref) {
|
|
|
60
60
|
var cssIconStyles = [iconStyles.euiExpression__icon, display === 'columns' && iconStyles.columns];
|
|
61
61
|
var classes = (0, _classnames.default)('euiExpression', className);
|
|
62
62
|
var Component = onClick ? 'button' : 'span';
|
|
63
|
-
var
|
|
64
|
-
var customWidth = display === 'columns' && descriptionWidth ? _objectSpread({
|
|
63
|
+
var customWidth = display === 'columns' && descriptionWidth ? {
|
|
65
64
|
flexBasis: descriptionWidth
|
|
66
|
-
}
|
|
65
|
+
} : undefined;
|
|
67
66
|
var invalidIcon = isInvalid ? (0, _react2.jsx)(_icon.EuiIcon, {
|
|
68
67
|
className: "euiExpression__icon",
|
|
69
68
|
type: "warning",
|
|
@@ -74,13 +73,13 @@ var EuiExpression = function EuiExpression(_ref) {
|
|
|
74
73
|
css: cssStyles,
|
|
75
74
|
className: classes,
|
|
76
75
|
onClick: onClick
|
|
77
|
-
}, rest), (0, _react2.jsx)("span", (0, _extends2.default)({
|
|
78
|
-
className:
|
|
79
|
-
css: cssDescriptionStyles,
|
|
80
|
-
style: customWidth
|
|
81
|
-
}
|
|
82
|
-
className:
|
|
83
|
-
css: cssValueStyles
|
|
84
|
-
}
|
|
76
|
+
}, rest), (0, _react2.jsx)("span", (0, _extends2.default)({}, descriptionProps, {
|
|
77
|
+
className: (0, _classnames.default)('euiExpression__description', descriptionProps === null || descriptionProps === void 0 ? void 0 : descriptionProps.className),
|
|
78
|
+
css: [].concat(cssDescriptionStyles, [descriptionProps === null || descriptionProps === void 0 ? void 0 : descriptionProps.css]),
|
|
79
|
+
style: _objectSpread(_objectSpread({}, customWidth), descriptionProps === null || descriptionProps === void 0 ? void 0 : descriptionProps.style)
|
|
80
|
+
}), description), ' ', value && (0, _react2.jsx)("span", (0, _extends2.default)({}, valueProps, {
|
|
81
|
+
className: (0, _classnames.default)('euiExpression__value', valueProps === null || valueProps === void 0 ? void 0 : valueProps.className),
|
|
82
|
+
css: [].concat(cssValueStyles, [valueProps === null || valueProps === void 0 ? void 0 : valueProps.css])
|
|
83
|
+
}), value), invalidIcon);
|
|
85
84
|
};
|
|
86
85
|
exports.EuiExpression = EuiExpression;
|
|
@@ -156,13 +156,12 @@ var EuiFlyout = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
156
156
|
if (onClose && !hideCloseButton) {
|
|
157
157
|
var closeButtonClasses = (0, _classnames.default)('euiFlyout__closeButton', closeButtonProps === null || closeButtonProps === void 0 ? void 0 : closeButtonProps.className);
|
|
158
158
|
var closeButtonStyles = (0, _flyout.euiFlyoutCloseButtonStyles)(euiTheme);
|
|
159
|
-
var closeButtonCssStyles = [closeButtonStyles.euiFlyout__closeButton, closeButtonStyles[closeButtonPosition], closeButtonPosition === 'outside' && closeButtonStyles.outsideSide[side]];
|
|
159
|
+
var closeButtonCssStyles = [closeButtonStyles.euiFlyout__closeButton, closeButtonStyles[closeButtonPosition], closeButtonPosition === 'outside' && closeButtonStyles.outsideSide[side], closeButtonProps === null || closeButtonProps === void 0 ? void 0 : closeButtonProps.css];
|
|
160
160
|
closeButton = (0, _react2.jsx)(_i18n.EuiI18n, {
|
|
161
161
|
token: "euiFlyout.closeAriaLabel",
|
|
162
162
|
default: "Close this dialog"
|
|
163
163
|
}, function (closeAriaLabel) {
|
|
164
164
|
return (0, _react2.jsx)(_button.EuiButtonIcon, (0, _extends2.default)({
|
|
165
|
-
css: closeButtonCssStyles,
|
|
166
165
|
display: closeButtonPosition === 'outside' ? 'fill' : 'empty',
|
|
167
166
|
iconType: "cross",
|
|
168
167
|
color: "text",
|
|
@@ -170,6 +169,7 @@ var EuiFlyout = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
170
169
|
"data-test-subj": "euiFlyoutCloseButton"
|
|
171
170
|
}, closeButtonProps, {
|
|
172
171
|
className: closeButtonClasses,
|
|
172
|
+
css: closeButtonCssStyles,
|
|
173
173
|
onClick: function onClick(e) {
|
|
174
174
|
var _closeButtonProps$onC;
|
|
175
175
|
onClose(e.nativeEvent);
|
|
@@ -10,8 +10,10 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
10
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
-
var
|
|
13
|
+
var _services = require("../../services");
|
|
14
14
|
var _header_breadcrumbs = require("./header_breadcrumbs");
|
|
15
|
+
var _header_section = require("./header_section");
|
|
16
|
+
var _header = require("./header.styles");
|
|
15
17
|
var _react2 = require("@emotion/react");
|
|
16
18
|
var _excluded = ["children", "className", "sections", "position", "theme"];
|
|
17
19
|
/*
|
|
@@ -42,7 +44,10 @@ var EuiHeader = function EuiHeader(_ref) {
|
|
|
42
44
|
_ref$theme = _ref.theme,
|
|
43
45
|
theme = _ref$theme === void 0 ? 'default' : _ref$theme,
|
|
44
46
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
45
|
-
var classes = (0, _classnames.default)('euiHeader',
|
|
47
|
+
var classes = (0, _classnames.default)('euiHeader', className);
|
|
48
|
+
var euiTheme = (0, _services.useEuiTheme)();
|
|
49
|
+
var styles = (0, _header.euiHeaderStyles)(euiTheme);
|
|
50
|
+
var cssStyles = [styles.euiHeader, styles[position], styles[theme]];
|
|
46
51
|
(0, _react.useEffect)(function () {
|
|
47
52
|
if (position === 'fixed') {
|
|
48
53
|
// Increment fixed header counter for each fixed header
|
|
@@ -88,6 +93,7 @@ var EuiHeader = function EuiHeader(_ref) {
|
|
|
88
93
|
contents = children;
|
|
89
94
|
}
|
|
90
95
|
return (0, _react2.jsx)("div", (0, _extends2.default)({
|
|
96
|
+
css: cssStyles,
|
|
91
97
|
className: classes,
|
|
92
98
|
"data-fixed-header": position === 'fixed' || undefined // Used by EuiFlyouts as a query selector
|
|
93
99
|
}, rest), contents);
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.euiHeaderVariables = exports.euiHeaderStyles = void 0;
|
|
7
|
+
var _react = require("@emotion/react");
|
|
8
|
+
var _mixins = require("../../themes/amsterdam/global_styling/mixins");
|
|
9
|
+
var _global_styling = require("../../global_styling");
|
|
10
|
+
var _services = require("../../services");
|
|
11
|
+
var _form = require("../form/form.styles");
|
|
12
|
+
/*
|
|
13
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
14
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
15
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
16
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
17
|
+
* Side Public License, v 1.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
var euiHeaderVariables = function euiHeaderVariables(euiThemeContext) {
|
|
21
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
22
|
+
return {
|
|
23
|
+
height: euiTheme.size.xxxl,
|
|
24
|
+
childHeight: euiTheme.size.xxl
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
exports.euiHeaderVariables = euiHeaderVariables;
|
|
28
|
+
var euiHeaderStyles = function euiHeaderStyles(euiThemeContext) {
|
|
29
|
+
var euiTheme = euiThemeContext.euiTheme,
|
|
30
|
+
colorMode = euiThemeContext.colorMode;
|
|
31
|
+
var _euiHeaderVariables = euiHeaderVariables(euiThemeContext),
|
|
32
|
+
height = _euiHeaderVariables.height;
|
|
33
|
+
|
|
34
|
+
// Curated border color to fade into the shadow without looking too much like a border
|
|
35
|
+
// It adds separation between the header and flyout
|
|
36
|
+
var borderColor = colorMode === 'DARK' ? (0, _services.shade)(euiTheme.colors.emptyShade, 0.35) : (0, _services.shade)(euiTheme.border.color, 0.03);
|
|
37
|
+
return {
|
|
38
|
+
euiHeader: /*#__PURE__*/(0, _react.css)("display:flex;justify-content:space-between;", (0, _global_styling.logicalCSS)('height', height), " ", (0, _global_styling.logicalCSS)('padding-horizontal', euiTheme.size.s), " ", (0, _mixins.euiShadowSmall)(euiThemeContext), ";;label:euiHeader;"),
|
|
39
|
+
// Position
|
|
40
|
+
static: /*#__PURE__*/(0, _react.css)("z-index:", Number(euiTheme.levels.header) - 1, ";position:relative;;label:static;"),
|
|
41
|
+
fixed: /*#__PURE__*/(0, _react.css)("z-index:", euiTheme.levels.header, ";position:fixed;", (0, _global_styling.logicalCSS)('top', 0), " ", (0, _global_styling.logicalCSS)('horizontal', 0), " &+[data-fixed-header]{", (0, _global_styling.logicalCSS)('top', height), ";};label:fixed;"),
|
|
42
|
+
// Theme
|
|
43
|
+
default: /*#__PURE__*/(0, _react.css)("background-color:", euiTheme.colors.emptyShade, ";", (0, _global_styling.logicalCSS)('border-bottom', "".concat(euiTheme.border.width.thin, " solid ").concat(borderColor)), ";;label:default;"),
|
|
44
|
+
dark: /*#__PURE__*/(0, _react.css)(euiHeaderDarkStyles(euiThemeContext, borderColor), ";label:dark;")
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* The `dark` header is (currently) a bit of a special case. We don't
|
|
50
|
+
* actually want to use <EuiThemeProvider colorMode="dark"> inside it
|
|
51
|
+
* because that will affect popovers and `SelectableSitewideTemplate`
|
|
52
|
+
* as well, which we do not necessarily want to do (?)
|
|
53
|
+
*
|
|
54
|
+
* It's also possible that the dark header will go away or become unused
|
|
55
|
+
* by Kibana in the near future, at which point we can remove this
|
|
56
|
+
*/
|
|
57
|
+
exports.euiHeaderStyles = euiHeaderStyles;
|
|
58
|
+
var euiHeaderDarkStyles = function euiHeaderDarkStyles(euiThemeContext, defaultBorderColor) {
|
|
59
|
+
var euiTheme = euiThemeContext.euiTheme,
|
|
60
|
+
colorMode = euiThemeContext.colorMode;
|
|
61
|
+
var _euiFormVariables = (0, _form.euiFormVariables)(euiThemeContext),
|
|
62
|
+
controlPlaceholderText = _euiFormVariables.controlPlaceholderText;
|
|
63
|
+
var backgroundColor = colorMode === 'DARK' ? (0, _services.shade)(euiTheme.colors.lightestShade, 0.5) : (0, _services.shade)(euiTheme.colors.darkestShade, 0.28);
|
|
64
|
+
var borderColor = colorMode === 'DARK' ? defaultBorderColor : backgroundColor;
|
|
65
|
+
return "\n background-color: ".concat(backgroundColor, ";\n ").concat((0, _global_styling.logicalCSS)('border-bottom-color', borderColor), "\n\n .euiHeaderLogo__text,\n .euiHeaderLink,\n .euiHeaderSectionItemButton {\n color: ").concat(euiTheme.colors.ghost, ";\n }\n\n .euiHeaderLink-isActive {\n color: ").concat((0, _services.makeHighContrastColor)(euiTheme.colors.primary)(backgroundColor), ";\n }\n\n .euiHeaderSectionItem {\n &::after {\n background-color: ").concat(colorMode === 'DARK' ? euiTheme.colors.lightestShade : euiTheme.colors.darkShade, ";\n }\n }\n\n .euiHeaderLogo,\n .euiHeaderLink,\n .euiHeaderSectionItemButton {\n &:focus {\n background-color: ").concat((0, _services.shade)(euiTheme.colors.primary, 0.5), ";\n }\n }\n\n .euiHeaderSectionItemButton__notification--badge {\n box-shadow: 0 0 0 ").concat(euiTheme.border.width.thin, " ").concat(backgroundColor, ";\n }\n\n .euiHeaderSectionItemButton__notification--dot {\n stroke: ").concat(backgroundColor, ";\n }\n\n .euiSelectableTemplateSitewide .euiFormControlLayout {\n background-color: transparent;\n\n &--group,\n input {\n box-shadow: inset 0 0 0 ").concat(euiTheme.border.width.thin, "\n ").concat((0, _services.transparentize)(euiTheme.colors.ghost, 0.3), ";\n }\n\n &:not(:focus-within) {\n /* Increase contrast of filled text to be more than placeholder text */\n color: ").concat(euiTheme.colors.ghost, ";\n\n input {\n /* Increase contrast of placeholder text */\n &::placeholder {\n color: ").concat((0, _services.makeHighContrastColor)(controlPlaceholderText, 8)(backgroundColor), ";\n }\n\n /* Inherit color from form control layout */\n color: inherit;\n background-color: transparent;\n }\n\n .euiFormControlLayout__append {\n background-color: transparent;\n color: inherit;\n }\n }\n }\n ");
|
|
66
|
+
};
|
|
@@ -9,9 +9,10 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
9
9
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var
|
|
12
|
+
var _services = require("../../../services");
|
|
13
|
+
var _href_validator = require("../../../services/security/href_validator");
|
|
14
|
+
var _icon = require("../../icon");
|
|
15
|
+
var _header_logo = require("./header_logo.styles");
|
|
15
16
|
var _react2 = require("@emotion/react");
|
|
16
17
|
var _excluded = ["iconType", "iconTitle", "href", "rel", "target", "children", "className"];
|
|
17
18
|
/*
|
|
@@ -33,6 +34,8 @@ var EuiHeaderLogo = function EuiHeaderLogo(_ref) {
|
|
|
33
34
|
className = _ref.className,
|
|
34
35
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
35
36
|
var classes = (0, _classnames.default)('euiHeaderLogo', className);
|
|
37
|
+
var euiTheme = (0, _services.useEuiTheme)();
|
|
38
|
+
var styles = (0, _header_logo.euiHeaderLogoStyles)(euiTheme);
|
|
36
39
|
var secureRel = (0, _services.getSecureRelForTarget)({
|
|
37
40
|
href: href,
|
|
38
41
|
rel: rel,
|
|
@@ -43,6 +46,7 @@ var EuiHeaderLogo = function EuiHeaderLogo(_ref) {
|
|
|
43
46
|
href: isHrefValid ? href : '',
|
|
44
47
|
rel: secureRel,
|
|
45
48
|
target: target,
|
|
49
|
+
css: styles.euiHeaderLogo,
|
|
46
50
|
className: classes
|
|
47
51
|
}, rest), (0, _react2.jsx)(_icon.EuiIcon, {
|
|
48
52
|
"aria-label": iconTitle,
|
|
@@ -50,6 +54,7 @@ var EuiHeaderLogo = function EuiHeaderLogo(_ref) {
|
|
|
50
54
|
size: "l",
|
|
51
55
|
type: iconType
|
|
52
56
|
}), children && (0, _react2.jsx)("span", {
|
|
57
|
+
css: styles.euiHeaderLogo__text,
|
|
53
58
|
className: "euiHeaderLogo__text"
|
|
54
59
|
}, children));
|
|
55
60
|
};
|