@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
|
@@ -53,10 +53,9 @@ export var EuiExpression = function EuiExpression(_ref) {
|
|
|
53
53
|
var cssIconStyles = [iconStyles.euiExpression__icon, display === 'columns' && iconStyles.columns];
|
|
54
54
|
var classes = classNames('euiExpression', className);
|
|
55
55
|
var Component = onClick ? 'button' : 'span';
|
|
56
|
-
var
|
|
57
|
-
var customWidth = display === 'columns' && descriptionWidth ? _objectSpread({
|
|
56
|
+
var customWidth = display === 'columns' && descriptionWidth ? {
|
|
58
57
|
flexBasis: descriptionWidth
|
|
59
|
-
}
|
|
58
|
+
} : undefined;
|
|
60
59
|
var invalidIcon = isInvalid ? ___EmotionJSX(EuiIcon, {
|
|
61
60
|
className: "euiExpression__icon",
|
|
62
61
|
type: "warning",
|
|
@@ -67,12 +66,12 @@ export var EuiExpression = function EuiExpression(_ref) {
|
|
|
67
66
|
css: cssStyles,
|
|
68
67
|
className: classes,
|
|
69
68
|
onClick: onClick
|
|
70
|
-
}, rest), ___EmotionJSX("span", _extends({
|
|
71
|
-
className:
|
|
72
|
-
css: cssDescriptionStyles,
|
|
73
|
-
style: customWidth
|
|
74
|
-
}
|
|
75
|
-
className:
|
|
76
|
-
css: cssValueStyles
|
|
77
|
-
}
|
|
69
|
+
}, rest), ___EmotionJSX("span", _extends({}, descriptionProps, {
|
|
70
|
+
className: classNames('euiExpression__description', descriptionProps === null || descriptionProps === void 0 ? void 0 : descriptionProps.className),
|
|
71
|
+
css: [].concat(cssDescriptionStyles, [descriptionProps === null || descriptionProps === void 0 ? void 0 : descriptionProps.css]),
|
|
72
|
+
style: _objectSpread(_objectSpread({}, customWidth), descriptionProps === null || descriptionProps === void 0 ? void 0 : descriptionProps.style)
|
|
73
|
+
}), description), ' ', value && ___EmotionJSX("span", _extends({}, valueProps, {
|
|
74
|
+
className: classNames('euiExpression__value', valueProps === null || valueProps === void 0 ? void 0 : valueProps.className),
|
|
75
|
+
css: [].concat(cssValueStyles, [valueProps === null || valueProps === void 0 ? void 0 : valueProps.css])
|
|
76
|
+
}), value), invalidIcon);
|
|
78
77
|
};
|
|
@@ -143,13 +143,12 @@ export var EuiFlyout = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
143
143
|
if (onClose && !hideCloseButton) {
|
|
144
144
|
var closeButtonClasses = classnames('euiFlyout__closeButton', closeButtonProps === null || closeButtonProps === void 0 ? void 0 : closeButtonProps.className);
|
|
145
145
|
var closeButtonStyles = euiFlyoutCloseButtonStyles(euiTheme);
|
|
146
|
-
var closeButtonCssStyles = [closeButtonStyles.euiFlyout__closeButton, closeButtonStyles[closeButtonPosition], closeButtonPosition === 'outside' && closeButtonStyles.outsideSide[side]];
|
|
146
|
+
var closeButtonCssStyles = [closeButtonStyles.euiFlyout__closeButton, closeButtonStyles[closeButtonPosition], closeButtonPosition === 'outside' && closeButtonStyles.outsideSide[side], closeButtonProps === null || closeButtonProps === void 0 ? void 0 : closeButtonProps.css];
|
|
147
147
|
closeButton = ___EmotionJSX(EuiI18n, {
|
|
148
148
|
token: "euiFlyout.closeAriaLabel",
|
|
149
149
|
default: "Close this dialog"
|
|
150
150
|
}, function (closeAriaLabel) {
|
|
151
151
|
return ___EmotionJSX(EuiButtonIcon, _extends({
|
|
152
|
-
css: closeButtonCssStyles,
|
|
153
152
|
display: closeButtonPosition === 'outside' ? 'fill' : 'empty',
|
|
154
153
|
iconType: "cross",
|
|
155
154
|
color: "text",
|
|
@@ -157,6 +156,7 @@ export var EuiFlyout = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
157
156
|
"data-test-subj": "euiFlyoutCloseButton"
|
|
158
157
|
}, closeButtonProps, {
|
|
159
158
|
className: closeButtonClasses,
|
|
159
|
+
css: closeButtonCssStyles,
|
|
160
160
|
onClick: function onClick(e) {
|
|
161
161
|
var _closeButtonProps$onC;
|
|
162
162
|
onClose(e.nativeEvent);
|
|
@@ -11,8 +11,10 @@ var _excluded = ["children", "className", "sections", "position", "theme"];
|
|
|
11
11
|
|
|
12
12
|
import React, { useEffect } from 'react';
|
|
13
13
|
import classNames from 'classnames';
|
|
14
|
-
import {
|
|
14
|
+
import { useEuiTheme } from '../../services';
|
|
15
15
|
import { EuiHeaderBreadcrumbs } from './header_breadcrumbs';
|
|
16
|
+
import { EuiHeaderSectionItem, EuiHeaderSection } from './header_section';
|
|
17
|
+
import { euiHeaderStyles } from './header.styles';
|
|
16
18
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
17
19
|
function createHeaderSection(sections, border) {
|
|
18
20
|
return sections.map(function (section, index) {
|
|
@@ -33,7 +35,10 @@ export var EuiHeader = function EuiHeader(_ref) {
|
|
|
33
35
|
_ref$theme = _ref.theme,
|
|
34
36
|
theme = _ref$theme === void 0 ? 'default' : _ref$theme,
|
|
35
37
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
36
|
-
var classes = classNames('euiHeader',
|
|
38
|
+
var classes = classNames('euiHeader', className);
|
|
39
|
+
var euiTheme = useEuiTheme();
|
|
40
|
+
var styles = euiHeaderStyles(euiTheme);
|
|
41
|
+
var cssStyles = [styles.euiHeader, styles[position], styles[theme]];
|
|
37
42
|
useEffect(function () {
|
|
38
43
|
if (position === 'fixed') {
|
|
39
44
|
// Increment fixed header counter for each fixed header
|
|
@@ -79,6 +84,7 @@ export var EuiHeader = function EuiHeader(_ref) {
|
|
|
79
84
|
contents = children;
|
|
80
85
|
}
|
|
81
86
|
return ___EmotionJSX("div", _extends({
|
|
87
|
+
css: cssStyles,
|
|
82
88
|
className: classes,
|
|
83
89
|
"data-fixed-header": position === 'fixed' || undefined // Used by EuiFlyouts as a query selector
|
|
84
90
|
}, rest), contents);
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
3
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
4
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
5
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
6
|
+
* Side Public License, v 1.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { css } from '@emotion/react';
|
|
10
|
+
import { euiShadowSmall } from '../../themes/amsterdam/global_styling/mixins';
|
|
11
|
+
import { logicalCSS } from '../../global_styling';
|
|
12
|
+
import { shade, transparentize, makeHighContrastColor } from '../../services';
|
|
13
|
+
export var euiHeaderVariables = function euiHeaderVariables(euiThemeContext) {
|
|
14
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
15
|
+
return {
|
|
16
|
+
height: euiTheme.size.xxxl,
|
|
17
|
+
childHeight: euiTheme.size.xxl
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export var euiHeaderStyles = function euiHeaderStyles(euiThemeContext) {
|
|
21
|
+
var euiTheme = euiThemeContext.euiTheme,
|
|
22
|
+
colorMode = euiThemeContext.colorMode;
|
|
23
|
+
var _euiHeaderVariables = euiHeaderVariables(euiThemeContext),
|
|
24
|
+
height = _euiHeaderVariables.height;
|
|
25
|
+
|
|
26
|
+
// Curated border color to fade into the shadow without looking too much like a border
|
|
27
|
+
// It adds separation between the header and flyout
|
|
28
|
+
var borderColor = colorMode === 'DARK' ? shade(euiTheme.colors.emptyShade, 0.35) : shade(euiTheme.border.color, 0.03);
|
|
29
|
+
return {
|
|
30
|
+
euiHeader: /*#__PURE__*/css("display:flex;justify-content:space-between;", logicalCSS('height', height), " ", logicalCSS('padding-horizontal', euiTheme.size.s), " ", euiShadowSmall(euiThemeContext), ";;label:euiHeader;"),
|
|
31
|
+
// Position
|
|
32
|
+
static: /*#__PURE__*/css("z-index:", Number(euiTheme.levels.header) - 1, ";position:relative;;label:static;"),
|
|
33
|
+
fixed: /*#__PURE__*/css("z-index:", euiTheme.levels.header, ";position:fixed;", logicalCSS('top', 0), " ", logicalCSS('horizontal', 0), " &+[data-fixed-header]{", logicalCSS('top', height), ";};label:fixed;"),
|
|
34
|
+
// Theme
|
|
35
|
+
default: /*#__PURE__*/css("background-color:", euiTheme.colors.emptyShade, ";", logicalCSS('border-bottom', "".concat(euiTheme.border.width.thin, " solid ").concat(borderColor)), ";;label:default;"),
|
|
36
|
+
dark: /*#__PURE__*/css(euiHeaderDarkStyles(euiThemeContext, borderColor), ";label:dark;")
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* The `dark` header is (currently) a bit of a special case. We don't
|
|
42
|
+
* actually want to use <EuiThemeProvider colorMode="dark"> inside it
|
|
43
|
+
* because that will affect popovers and `SelectableSitewideTemplate`
|
|
44
|
+
* as well, which we do not necessarily want to do (?)
|
|
45
|
+
*
|
|
46
|
+
* It's also possible that the dark header will go away or become unused
|
|
47
|
+
* by Kibana in the near future, at which point we can remove this
|
|
48
|
+
*/
|
|
49
|
+
import { euiFormVariables } from '../form/form.styles';
|
|
50
|
+
var euiHeaderDarkStyles = function euiHeaderDarkStyles(euiThemeContext, defaultBorderColor) {
|
|
51
|
+
var euiTheme = euiThemeContext.euiTheme,
|
|
52
|
+
colorMode = euiThemeContext.colorMode;
|
|
53
|
+
var _euiFormVariables = euiFormVariables(euiThemeContext),
|
|
54
|
+
controlPlaceholderText = _euiFormVariables.controlPlaceholderText;
|
|
55
|
+
var backgroundColor = colorMode === 'DARK' ? shade(euiTheme.colors.lightestShade, 0.5) : shade(euiTheme.colors.darkestShade, 0.28);
|
|
56
|
+
var borderColor = colorMode === 'DARK' ? defaultBorderColor : backgroundColor;
|
|
57
|
+
return "\n background-color: ".concat(backgroundColor, ";\n ").concat(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(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(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(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(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 ");
|
|
58
|
+
};
|
|
@@ -11,9 +11,10 @@ var _excluded = ["iconType", "iconTitle", "href", "rel", "target", "children", "
|
|
|
11
11
|
|
|
12
12
|
import React from 'react';
|
|
13
13
|
import classNames from 'classnames';
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
14
|
+
import { useEuiTheme, getSecureRelForTarget } from '../../../services';
|
|
15
|
+
import { validateHref } from '../../../services/security/href_validator';
|
|
16
|
+
import { EuiIcon } from '../../icon';
|
|
17
|
+
import { euiHeaderLogoStyles } from './header_logo.styles';
|
|
17
18
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
18
19
|
export var EuiHeaderLogo = function EuiHeaderLogo(_ref) {
|
|
19
20
|
var _ref$iconType = _ref.iconType,
|
|
@@ -27,6 +28,8 @@ export var EuiHeaderLogo = function EuiHeaderLogo(_ref) {
|
|
|
27
28
|
className = _ref.className,
|
|
28
29
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
29
30
|
var classes = classNames('euiHeaderLogo', className);
|
|
31
|
+
var euiTheme = useEuiTheme();
|
|
32
|
+
var styles = euiHeaderLogoStyles(euiTheme);
|
|
30
33
|
var secureRel = getSecureRelForTarget({
|
|
31
34
|
href: href,
|
|
32
35
|
rel: rel,
|
|
@@ -37,6 +40,7 @@ export var EuiHeaderLogo = function EuiHeaderLogo(_ref) {
|
|
|
37
40
|
href: isHrefValid ? href : '',
|
|
38
41
|
rel: secureRel,
|
|
39
42
|
target: target,
|
|
43
|
+
css: styles.euiHeaderLogo,
|
|
40
44
|
className: classes
|
|
41
45
|
}, rest), ___EmotionJSX(EuiIcon, {
|
|
42
46
|
"aria-label": iconTitle,
|
|
@@ -44,6 +48,7 @@ export var EuiHeaderLogo = function EuiHeaderLogo(_ref) {
|
|
|
44
48
|
size: "l",
|
|
45
49
|
type: iconType
|
|
46
50
|
}), children && ___EmotionJSX("span", {
|
|
51
|
+
css: styles.euiHeaderLogo__text,
|
|
47
52
|
className: "euiHeaderLogo__text"
|
|
48
53
|
}, children));
|
|
49
54
|
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
3
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
4
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
5
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
6
|
+
* Side Public License, v 1.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { css } from '@emotion/react';
|
|
10
|
+
import { logicalCSS, euiBreakpoint } from '../../../global_styling';
|
|
11
|
+
import { euiTitle } from '../../title/title.styles';
|
|
12
|
+
import { euiHeaderVariables } from '../header.styles';
|
|
13
|
+
export var euiHeaderLogoStyles = function euiHeaderLogoStyles(euiThemeContext) {
|
|
14
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
15
|
+
var _euiHeaderVariables = euiHeaderVariables(euiThemeContext),
|
|
16
|
+
childHeight = _euiHeaderVariables.childHeight;
|
|
17
|
+
return {
|
|
18
|
+
euiHeaderLogo: /*#__PURE__*/css("position:relative;", logicalCSS('height', childHeight), " line-height:", childHeight, ";", logicalCSS('min-width', childHeight), " padding-inline:", euiTheme.size.s, ";display:inline-flex;align-items:center;white-space:nowrap;", euiBreakpoint(euiThemeContext, ['xs']), "{", logicalCSS('padding-left', euiTheme.size.xs), ";};label:euiHeaderLogo;"),
|
|
19
|
+
euiHeaderLogo__text: /*#__PURE__*/css(euiTitle(euiThemeContext, 'xxs'), " ", logicalCSS('padding-left', euiTheme.size.base), " ", euiBreakpoint(euiThemeContext, ['xs']), "{", logicalCSS('padding-left', euiTheme.size.s), ";};label:euiHeaderLogo__text;")
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
3
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
4
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
5
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
6
|
+
* Side Public License, v 1.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
export { EuiHeaderLogo } from './header_logo';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["title", "titleId"];
|
|
4
|
+
/*
|
|
5
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
6
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
7
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
8
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
9
|
+
* Side Public License, v 1.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
// THIS IS A GENERATED FILE. DO NOT MODIFY MANUALLY. @see scripts/compile-icons.js
|
|
13
|
+
|
|
14
|
+
import * as React from 'react';
|
|
15
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
16
|
+
var EuiIconSparkles = function EuiIconSparkles(_ref) {
|
|
17
|
+
var title = _ref.title,
|
|
18
|
+
titleId = _ref.titleId,
|
|
19
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
20
|
+
return ___EmotionJSX("svg", _extends({
|
|
21
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
22
|
+
width: 16,
|
|
23
|
+
height: 16,
|
|
24
|
+
viewBox: "0 0 16 16",
|
|
25
|
+
"aria-labelledby": titleId
|
|
26
|
+
}, props), title ? ___EmotionJSX("title", {
|
|
27
|
+
id: titleId
|
|
28
|
+
}, title) : null, ___EmotionJSX("path", {
|
|
29
|
+
fillRule: "evenodd",
|
|
30
|
+
d: "m5.016 4.383.035-.093a.492.492 0 0 1 .898 0l.035.093c.048.128.072.192.097.253a5.9 5.9 0 0 0 3.536 3.38l.093.035a.492.492 0 0 1 0 .898l-.093.035a5.9 5.9 0 0 0-3.536 3.38c-.025.06-.049.125-.097.253l-.035.093a.492.492 0 0 1-.898 0l-.035-.093c-.048-.128-.072-.192-.097-.253a5.9 5.9 0 0 0-3.536-3.38 2.175 2.175 0 0 1-.093-.035.492.492 0 0 1 0-.898l.093-.035c.128-.048.192-.072.253-.097a5.9 5.9 0 0 0 3.38-3.536Zm6.769-2.213a.968.968 0 0 1 .016-.041.219.219 0 0 1 .398 0 2.622 2.622 0 0 0 1.518 1.613l.113.043a.272.272 0 0 1 .04.016.219.219 0 0 1 0 .398.272.272 0 0 1-.04.016l-.113.043a2.622 2.622 0 0 0-1.502 1.572.968.968 0 0 1-.016.04.219.219 0 0 1-.398 0 2.622 2.622 0 0 0-1.518-1.613l-.113-.042a.272.272 0 0 1-.04-.016.219.219 0 0 1 0-.398.272.272 0 0 1 .04-.016l.113-.043a2.622 2.622 0 0 0 1.502-1.572Zm-.555 8.043.02-.052a.273.273 0 0 1 .5 0l.02.052.053.14a3.275 3.275 0 0 0 1.824 1.824l.14.054c.03.01.044.016.052.02a.273.273 0 0 1 0 .498 1.248 1.248 0 0 1-.052.02c-.07.027-.107.04-.14.054a3.279 3.279 0 0 0-1.824 1.824l-.054.14a.409.409 0 0 1-.02.052.273.273 0 0 1-.498 0 1.248 1.248 0 0 1-.02-.052c-.027-.07-.04-.107-.054-.14a3.279 3.279 0 0 0-1.824-1.824l-.14-.054a1.24 1.24 0 0 1-.052-.02.273.273 0 0 1 0-.498 1.24 1.24 0 0 1 .052-.02l.14-.054a3.279 3.279 0 0 0 1.824-1.824l.054-.14Z"
|
|
31
|
+
}));
|
|
32
|
+
};
|
|
33
|
+
export var icon = EuiIconSparkles;
|
|
@@ -15,7 +15,7 @@ import { EuiIcon } from './icon';
|
|
|
15
15
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
16
16
|
describe('EuiIcons', function () {
|
|
17
17
|
describe('Automated accessibility check for glyph icons', function () {
|
|
18
|
-
var GlyphIcons = ['accessibility', 'aggregate', 'analyzeEvent', 'annotation', 'apmTrace', 'apps', 'arrowDown', 'arrowLeft', 'arrowRight', 'arrowUp', 'arrowStart', 'arrowEnd', 'article', 'asterisk', 'beaker', 'bell', 'bellSlash', 'beta', 'bolt', 'boxesHorizontal', 'boxesVertical', 'branch', 'branchUser', 'broom', 'brush', 'bug', 'bullseye', 'calendar', 'check', 'checkInCircleFilled', 'cheer', 'clock', 'cloudDrizzle', 'cloudStormy', 'cloudSunny', 'cluster', 'color', 'compute', 'console', 'container', 'continuityAbove', 'continuityAboveBelow', 'continuityBelow', 'continuityWithin', 'controlsHorizontal', 'controlsVertical', 'copy', 'copyClipboard', 'cross', 'crosshairs', 'currency', 'cut', 'database', 'desktop', 'discuss', 'document', 'documents', 'documentEdit', 'documentation', 'dot', 'dotInCircle', 'doubleArrowLeft', 'doubleArrowRight', 'download', 'email', 'empty', 'eql', 'eraser', 'exit', 'expand', 'expandMini', 'exportAction', 'eye', 'eyeClosed', 'faceHappy', 'faceNeutral', 'faceSad', 'filter', 'filterExclude', 'filterIgnore', 'filterInclude', 'filterInCircle', 'flag', 'fold', 'folderCheck', 'folderClosed', 'folderExclamation', 'folderOpen', 'frameNext', 'framePrevious', 'fullScreen', 'fullScreenExit', 'function', 'gear', 'glasses', 'globe', 'grab', 'grabHorizontal', 'grid', 'heart', 'heatmap', 'help', 'home', 'iInCircle', 'image', 'importAction', 'indexClose', 'indexEdit', 'indexFlush', 'indexMapping', 'indexOpen', 'indexRuntime', 'indexSettings', 'indexTemporary', 'infinity', 'inputOutput', 'inspect', 'invert', 'ip', 'keyboard', 'kqlField', 'kqlFunction', 'kqlOperand', 'kqlSelector', 'kqlValue', 'kubernetesNode', 'kubernetesPod', 'launch', 'layers', 'lettering', 'lineDashed', 'lineDotted', 'lineSolid', 'link', 'list', 'listAdd', 'lock', 'lockOpen', 'logstashFilter', 'logstashIf', 'logstashInput', 'logstashOutput', 'logstashQueue', 'magnifyWithExclamation', 'magnifyWithMinus', 'magnifyWithPlus', 'magnet', 'mapMarker', 'memory', 'merge', 'menu', 'menuDown', 'menuLeft', 'menuRight', 'menuUp', 'minimize', 'minus', 'minusInCircle', 'minusInCircleFilled', 'mobile', 'moon', 'namespace', 'nested', 'node', 'number', 'offline', 'online', 'package', 'pageSelect', 'pagesSelect', 'paperClip', 'partial', 'pause', 'payment', 'pencil', 'percent', 'pin', 'pinFilled', 'play', 'playFilled', 'plus', 'plusInCircle', 'plusInCircleFilled', 'popout', 'push', 'questionInCircle', 'quote', 'refresh', 'reporter', 'returnKey', 'save', 'scale', 'search', 'securitySignal', 'securitySignalDetected', 'securitySignalResolved', 'sessionViewer', 'shard', 'share', 'snowflake', 'sortable', 'sortAscending', 'sortDescending', 'sortDown', 'sortLeft', 'sortRight', 'sortUp', 'spaces', 'starEmpty', 'starEmptySpace', 'starFilled', 'starFilledSpace', 'starMinusEmpty', 'starMinusFilled', 'starPlusEmpty', 'starPlusFilled', 'stats', 'stop', 'stopFilled', 'stopSlash', 'storage', 'string', 'submodule', 'sun', 'symlink', 'tableOfContents', 'tableDensityExpanded', 'tableDensityCompact', 'tableDensityNormal', 'tag', 'tear', 'temperature', 'timeline', 'timelineWithArrow', 'timeRefresh', 'timeslider', 'training', 'trash', 'unfold', 'unlink', 'user', 'userAvatar', 'users', 'vector', 'videoPlayer', 'visArea', 'visAreaStacked', 'visBarHorizontal', 'visBarHorizontalStacked', 'visBarVertical', 'visBarVerticalStacked', 'visGauge', 'visGoal', 'visLine', 'visMapCoordinate', 'visMapRegion', 'visMetric', 'visPie', 'visTable', 'visTagCloud', 'visText', 'visTimelion', 'visVega', 'visVisualBuilder', 'warning', 'wordWrap', 'wordWrapDisabled', 'wrench'];
|
|
18
|
+
var GlyphIcons = ['accessibility', 'aggregate', 'analyzeEvent', 'annotation', 'apmTrace', 'apps', 'arrowDown', 'arrowLeft', 'arrowRight', 'arrowUp', 'arrowStart', 'arrowEnd', 'article', 'asterisk', 'beaker', 'bell', 'bellSlash', 'beta', 'bolt', 'boxesHorizontal', 'boxesVertical', 'branch', 'branchUser', 'broom', 'brush', 'bug', 'bullseye', 'calendar', 'check', 'checkInCircleFilled', 'cheer', 'clock', 'cloudDrizzle', 'cloudStormy', 'cloudSunny', 'cluster', 'color', 'compute', 'console', 'container', 'continuityAbove', 'continuityAboveBelow', 'continuityBelow', 'continuityWithin', 'controlsHorizontal', 'controlsVertical', 'copy', 'copyClipboard', 'cross', 'crosshairs', 'currency', 'cut', 'database', 'desktop', 'discuss', 'document', 'documents', 'documentEdit', 'documentation', 'dot', 'dotInCircle', 'doubleArrowLeft', 'doubleArrowRight', 'download', 'email', 'empty', 'eql', 'eraser', 'exit', 'expand', 'expandMini', 'exportAction', 'eye', 'eyeClosed', 'faceHappy', 'faceNeutral', 'faceSad', 'filter', 'filterExclude', 'filterIgnore', 'filterInclude', 'filterInCircle', 'flag', 'fold', 'folderCheck', 'folderClosed', 'folderExclamation', 'folderOpen', 'frameNext', 'framePrevious', 'fullScreen', 'fullScreenExit', 'function', 'gear', 'glasses', 'globe', 'grab', 'grabHorizontal', 'grid', 'heart', 'heatmap', 'help', 'home', 'iInCircle', 'image', 'importAction', 'indexClose', 'indexEdit', 'indexFlush', 'indexMapping', 'indexOpen', 'indexRuntime', 'indexSettings', 'indexTemporary', 'infinity', 'inputOutput', 'inspect', 'invert', 'ip', 'keyboard', 'kqlField', 'kqlFunction', 'kqlOperand', 'kqlSelector', 'kqlValue', 'kubernetesNode', 'kubernetesPod', 'launch', 'layers', 'lettering', 'lineDashed', 'lineDotted', 'lineSolid', 'link', 'list', 'listAdd', 'lock', 'lockOpen', 'logstashFilter', 'logstashIf', 'logstashInput', 'logstashOutput', 'logstashQueue', 'magnifyWithExclamation', 'magnifyWithMinus', 'magnifyWithPlus', 'magnet', 'mapMarker', 'memory', 'merge', 'menu', 'menuDown', 'menuLeft', 'menuRight', 'menuUp', 'minimize', 'minus', 'minusInCircle', 'minusInCircleFilled', 'mobile', 'moon', 'namespace', 'nested', 'node', 'number', 'offline', 'online', 'package', 'pageSelect', 'pagesSelect', 'paperClip', 'partial', 'pause', 'payment', 'pencil', 'percent', 'pin', 'pinFilled', 'play', 'playFilled', 'plus', 'plusInCircle', 'plusInCircleFilled', 'popout', 'push', 'questionInCircle', 'quote', 'refresh', 'reporter', 'returnKey', 'save', 'scale', 'search', 'securitySignal', 'securitySignalDetected', 'securitySignalResolved', 'sessionViewer', 'shard', 'share', 'snowflake', 'sortable', 'sortAscending', 'sortDescending', 'sortDown', 'sortLeft', 'sortRight', 'sortUp', 'spaces', 'sparkles', 'starEmpty', 'starEmptySpace', 'starFilled', 'starFilledSpace', 'starMinusEmpty', 'starMinusFilled', 'starPlusEmpty', 'starPlusFilled', 'stats', 'stop', 'stopFilled', 'stopSlash', 'storage', 'string', 'submodule', 'sun', 'symlink', 'tableOfContents', 'tableDensityExpanded', 'tableDensityCompact', 'tableDensityNormal', 'tag', 'tear', 'temperature', 'timeline', 'timelineWithArrow', 'timeRefresh', 'timeslider', 'training', 'trash', 'unfold', 'unlink', 'user', 'userAvatar', 'users', 'vector', 'videoPlayer', 'visArea', 'visAreaStacked', 'visBarHorizontal', 'visBarHorizontalStacked', 'visBarVertical', 'visBarVerticalStacked', 'visGauge', 'visGoal', 'visLine', 'visMapCoordinate', 'visMapRegion', 'visMetric', 'visPie', 'visTable', 'visTagCloud', 'visText', 'visTimelion', 'visVega', 'visVisualBuilder', 'warning', 'wordWrap', 'wordWrapDisabled', 'wrench'];
|
|
19
19
|
var GlyphGrid = function GlyphGrid() {
|
|
20
20
|
return ___EmotionJSX("div", null, GlyphIcons.map(function (glyph) {
|
|
21
21
|
return ___EmotionJSX(EuiIcon, {
|
|
@@ -32,7 +32,7 @@ export var EuiImageFullScreenWrapper = function EuiImageFullScreenWrapper(_ref)
|
|
|
32
32
|
onFullScreen = _ref.onFullScreen;
|
|
33
33
|
var euiTheme = useEuiTheme();
|
|
34
34
|
var styles = euiImageFullscreenWrapperStyles(euiTheme);
|
|
35
|
-
var cssStyles = [styles.euiImageFullscreenWrapper];
|
|
35
|
+
var cssStyles = [styles.euiImageFullscreenWrapper, wrapperProps === null || wrapperProps === void 0 ? void 0 : wrapperProps.css];
|
|
36
36
|
var classes = classNames('euiImageFullScreenWrapper', wrapperProps && wrapperProps.className);
|
|
37
37
|
var onKeyDown = function onKeyDown(event) {
|
|
38
38
|
if (event.key === keys.ESCAPE) {
|
|
@@ -58,10 +58,10 @@ export var EuiImageFullScreenWrapper = function EuiImageFullScreenWrapper(_ref)
|
|
|
58
58
|
preventScrollOnFocus: true,
|
|
59
59
|
onClickOutside: closeFullScreen
|
|
60
60
|
}, ___EmotionJSX(React.Fragment, null, ___EmotionJSX("figure", _extends({
|
|
61
|
-
"aria-label": optionalCaptionText
|
|
62
|
-
css: cssStyles
|
|
61
|
+
"aria-label": optionalCaptionText
|
|
63
62
|
}, wrapperProps, {
|
|
64
|
-
className: classes
|
|
63
|
+
className: classes,
|
|
64
|
+
css: cssStyles
|
|
65
65
|
}), ___EmotionJSX(EuiImageButton, {
|
|
66
66
|
hasAlt: !!alt,
|
|
67
67
|
hasShadow: hasShadow,
|
|
@@ -36,16 +36,16 @@ export var EuiImageWrapper = function EuiImageWrapper(_ref) {
|
|
|
36
36
|
var classes = classNames('euiImageWrapper', wrapperProps && wrapperProps.className);
|
|
37
37
|
var euiTheme = useEuiTheme();
|
|
38
38
|
var styles = euiImageWrapperStyles(euiTheme);
|
|
39
|
-
var cssFigureStyles = [styles.euiImageWrapper, float && styles[float], margin && styles[margin], allowFullScreen && styles.allowFullScreen, isFullWidth && styles.fullWidth];
|
|
39
|
+
var cssFigureStyles = [styles.euiImageWrapper, float && styles[float], margin && styles[margin], allowFullScreen && styles.allowFullScreen, isFullWidth && styles.fullWidth, wrapperProps === null || wrapperProps === void 0 ? void 0 : wrapperProps.css];
|
|
40
40
|
var _useInnerText = useInnerText(),
|
|
41
41
|
_useInnerText2 = _slicedToArray(_useInnerText, 2),
|
|
42
42
|
optionalCaptionRef = _useInnerText2[0],
|
|
43
43
|
optionalCaptionText = _useInnerText2[1];
|
|
44
44
|
return ___EmotionJSX("figure", _extends({
|
|
45
|
-
"aria-label": optionalCaptionText
|
|
46
|
-
css: cssFigureStyles
|
|
45
|
+
"aria-label": optionalCaptionText
|
|
47
46
|
}, wrapperProps, {
|
|
48
|
-
className: classes
|
|
47
|
+
className: classes,
|
|
48
|
+
css: cssFigureStyles
|
|
49
49
|
}), allowFullScreen ? ___EmotionJSX(React.Fragment, null, ___EmotionJSX(EuiImageButton, {
|
|
50
50
|
hasAlt: !!alt,
|
|
51
51
|
hasShadow: hasShadow,
|
|
@@ -42,6 +42,7 @@ export var EuiInlineEditForm = function EuiInlineEditForm(_ref) {
|
|
|
42
42
|
children = _ref.children,
|
|
43
43
|
sizes = _ref.sizes,
|
|
44
44
|
defaultValue = _ref.defaultValue,
|
|
45
|
+
placeholder = _ref.placeholder,
|
|
45
46
|
inputAriaLabel = _ref.inputAriaLabel,
|
|
46
47
|
startWithEditOpen = _ref.startWithEditOpen,
|
|
47
48
|
readModeProps = _ref.readModeProps,
|
|
@@ -53,8 +54,6 @@ export var EuiInlineEditForm = function EuiInlineEditForm(_ref) {
|
|
|
53
54
|
isReadOnly = _ref.isReadOnly;
|
|
54
55
|
var classes = classNames('euiInlineEdit', className);
|
|
55
56
|
var euiTheme = useEuiTheme();
|
|
56
|
-
var readModeStyles = euiInlineEditReadModeStyles(euiTheme);
|
|
57
|
-
var readModeCssStyles = [readModeStyles.euiInlineEditReadMode, isReadOnly && readModeStyles.isReadOnly];
|
|
58
57
|
var _euiFormVariables = euiFormVariables(euiTheme),
|
|
59
58
|
controlHeight = _euiFormVariables.controlHeight,
|
|
60
59
|
controlCompressedHeight = _euiFormVariables.controlCompressedHeight;
|
|
@@ -83,6 +82,8 @@ export var EuiInlineEditForm = function EuiInlineEditForm(_ref) {
|
|
|
83
82
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
84
83
|
readModeValue = _useState6[0],
|
|
85
84
|
setReadModeValue = _useState6[1];
|
|
85
|
+
var readModeStyles = euiInlineEditReadModeStyles(euiTheme);
|
|
86
|
+
var readModeCssStyles = [readModeStyles.euiInlineEditReadMode, isReadOnly && readModeStyles.isReadOnly, placeholder && !readModeValue && readModeStyles.hasPlaceholder];
|
|
86
87
|
var activateEditMode = function activateEditMode() {
|
|
87
88
|
setIsEditing(true);
|
|
88
89
|
// Waits a tick for state to settle and the focus target to render
|
|
@@ -178,7 +179,8 @@ export var EuiInlineEditForm = function EuiInlineEditForm(_ref) {
|
|
|
178
179
|
compressed: sizes.compressed,
|
|
179
180
|
isInvalid: isInvalid,
|
|
180
181
|
isLoading: isLoading,
|
|
181
|
-
"data-test-subj": "euiInlineEditModeInput"
|
|
182
|
+
"data-test-subj": "euiInlineEditModeInput",
|
|
183
|
+
placeholder: placeholder
|
|
182
184
|
}, editModeProps === null || editModeProps === void 0 ? void 0 : editModeProps.inputProps, {
|
|
183
185
|
inputRef: setEditModeRefs,
|
|
184
186
|
onChange: function onChange(e) {
|
|
@@ -265,7 +267,7 @@ export var EuiInlineEditForm = function EuiInlineEditForm(_ref) {
|
|
|
265
267
|
activateEditMode();
|
|
266
268
|
readModeProps === null || readModeProps === void 0 ? void 0 : (_readModeProps$onClic = readModeProps.onClick) === null || _readModeProps$onClic === void 0 ? void 0 : _readModeProps$onClic.call(readModeProps, e);
|
|
267
269
|
}
|
|
268
|
-
}), children(readModeValue)), ___EmotionJSX("span", {
|
|
270
|
+
}), children(readModeValue || placeholder)), ___EmotionJSX("span", {
|
|
269
271
|
id: readModeDescribedById,
|
|
270
272
|
hidden: true
|
|
271
273
|
}, !isReadOnly && ___EmotionJSX(EuiI18n, {
|
|
@@ -7,11 +7,13 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { css } from '@emotion/react';
|
|
10
|
+
import { tint } from '../../services';
|
|
10
11
|
export var euiInlineEditReadModeStyles = function euiInlineEditReadModeStyles(_ref) {
|
|
11
12
|
var euiTheme = _ref.euiTheme;
|
|
12
13
|
return {
|
|
13
14
|
euiInlineEditReadMode: /*#__PURE__*/css(";label:euiInlineEditReadMode;"),
|
|
14
15
|
// Override the cursor and allow users to highlight text when in the read only state
|
|
15
|
-
isReadOnly: /*#__PURE__*/css("&:disabled{cursor:text;color:", euiTheme.colors.text, ";user-select:text;};label:isReadOnly;")
|
|
16
|
+
isReadOnly: /*#__PURE__*/css("&:disabled{cursor:text;color:", euiTheme.colors.text, ";user-select:text;};label:isReadOnly;"),
|
|
17
|
+
hasPlaceholder: /*#__PURE__*/css(".euiText,.euiTitle{color:", tint(euiTheme.colors.subduedText, 0.08), ";};label:hasPlaceholder;")
|
|
16
18
|
};
|
|
17
19
|
};
|
|
@@ -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 = ["children", "className", "size", "defaultValue", "inputAriaLabel", "startWithEditOpen", "readModeProps", "editModeProps", "isLoading", "isInvalid", "isReadOnly"];
|
|
4
|
+
var _excluded = ["children", "className", "size", "defaultValue", "placeholder", "inputAriaLabel", "startWithEditOpen", "readModeProps", "editModeProps", "isLoading", "isInvalid", "isReadOnly"];
|
|
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
|
/*
|
|
@@ -25,6 +25,7 @@ export var EuiInlineEditText = function EuiInlineEditText(_ref) {
|
|
|
25
25
|
_ref$size = _ref.size,
|
|
26
26
|
size = _ref$size === void 0 ? 'm' : _ref$size,
|
|
27
27
|
defaultValue = _ref.defaultValue,
|
|
28
|
+
placeholder = _ref.placeholder,
|
|
28
29
|
inputAriaLabel = _ref.inputAriaLabel,
|
|
29
30
|
startWithEditOpen = _ref.startWithEditOpen,
|
|
30
31
|
_readModeProps = _ref.readModeProps,
|
|
@@ -48,6 +49,7 @@ export var EuiInlineEditText = function EuiInlineEditText(_ref) {
|
|
|
48
49
|
var formProps = {
|
|
49
50
|
sizes: sizes,
|
|
50
51
|
defaultValue: defaultValue,
|
|
52
|
+
placeholder: placeholder,
|
|
51
53
|
inputAriaLabel: inputAriaLabel,
|
|
52
54
|
startWithEditOpen: startWithEditOpen,
|
|
53
55
|
readModeProps: readModeProps,
|
|
@@ -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 = ["children", "className", "size", "heading", "defaultValue", "inputAriaLabel", "startWithEditOpen", "readModeProps", "editModeProps", "isLoading", "isInvalid", "isReadOnly"];
|
|
4
|
+
var _excluded = ["children", "className", "size", "heading", "defaultValue", "placeholder", "inputAriaLabel", "startWithEditOpen", "readModeProps", "editModeProps", "isLoading", "isInvalid", "isReadOnly"];
|
|
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
|
/*
|
|
@@ -27,6 +27,7 @@ export var EuiInlineEditTitle = function EuiInlineEditTitle(_ref) {
|
|
|
27
27
|
size = _ref$size === void 0 ? 'm' : _ref$size,
|
|
28
28
|
heading = _ref.heading,
|
|
29
29
|
defaultValue = _ref.defaultValue,
|
|
30
|
+
placeholder = _ref.placeholder,
|
|
30
31
|
inputAriaLabel = _ref.inputAriaLabel,
|
|
31
32
|
startWithEditOpen = _ref.startWithEditOpen,
|
|
32
33
|
_readModeProps = _ref.readModeProps,
|
|
@@ -55,6 +56,7 @@ export var EuiInlineEditTitle = function EuiInlineEditTitle(_ref) {
|
|
|
55
56
|
var formProps = {
|
|
56
57
|
sizes: sizes,
|
|
57
58
|
defaultValue: defaultValue,
|
|
59
|
+
placeholder: placeholder,
|
|
58
60
|
inputAriaLabel: inputAriaLabel,
|
|
59
61
|
startWithEditOpen: startWithEditOpen,
|
|
60
62
|
readModeProps: readModeProps,
|
|
@@ -17,23 +17,25 @@ import { useEuiTheme } from '../../services';
|
|
|
17
17
|
import { euiKeyPadMenuStyles } from './key_pad_menu.styles';
|
|
18
18
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
19
19
|
export var EuiKeyPadMenu = function EuiKeyPadMenu(_ref) {
|
|
20
|
+
var _checkable$legendProp;
|
|
20
21
|
var children = _ref.children,
|
|
21
22
|
className = _ref.className,
|
|
22
23
|
checkable = _ref.checkable,
|
|
23
24
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
25
|
+
var hasCheckableConfig = _typeof(checkable) === 'object';
|
|
24
26
|
var classes = classNames('euiKeyPadMenu', className);
|
|
25
27
|
var theme = useEuiTheme();
|
|
26
28
|
var styles = euiKeyPadMenuStyles(theme);
|
|
27
29
|
var cssStyles = [styles.euiKeyPadMenu];
|
|
28
|
-
var
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
var legendCssStyles = [styles.euiKeyPadMenu__legend, hasCheckableConfig && (checkable === null || checkable === void 0 ? void 0 : (_checkable$legendProp = checkable.legendProps) === null || _checkable$legendProp === void 0 ? void 0 : _checkable$legendProp.css)];
|
|
31
|
+
var legend = hasCheckableConfig && checkable.legend ? ___EmotionJSX(EuiFormLabel, _extends({}, checkable.legendProps, {
|
|
32
|
+
css: legendCssStyles,
|
|
31
33
|
type: "legend"
|
|
32
34
|
}), checkable.legend) : undefined;
|
|
33
35
|
return checkable ? ___EmotionJSX("fieldset", _extends({
|
|
34
36
|
css: cssStyles,
|
|
35
37
|
className: classes,
|
|
36
|
-
"aria-label":
|
|
38
|
+
"aria-label": hasCheckableConfig ? checkable.ariaLegend : undefined
|
|
37
39
|
}, rest), legend, children) : ___EmotionJSX("ul", _extends({
|
|
38
40
|
css: cssStyles,
|
|
39
41
|
className: classes
|
|
@@ -55,16 +55,15 @@ export var EuiListGroupItem = function EuiListGroupItem(_ref) {
|
|
|
55
55
|
var isDisabled = _isDisabled || !isHrefValid;
|
|
56
56
|
var euiTheme = useEuiTheme();
|
|
57
57
|
var iconStyles = euiListGroupItemIconStyles(euiTheme);
|
|
58
|
-
var cssIconStyles = [iconStyles.euiListGroupItem__icon];
|
|
58
|
+
var cssIconStyles = [iconStyles.euiListGroupItem__icon, iconProps === null || iconProps === void 0 ? void 0 : iconProps.css];
|
|
59
59
|
var iconNode;
|
|
60
60
|
if (iconType) {
|
|
61
61
|
iconNode = ___EmotionJSX(EuiIcon, _extends({
|
|
62
62
|
color: "inherit" // forces the icon to inherit its parent color
|
|
63
|
-
,
|
|
64
|
-
css: cssIconStyles
|
|
65
63
|
}, iconProps, {
|
|
66
64
|
type: iconType,
|
|
67
|
-
className: classNames('euiListGroupItem__icon', iconProps === null || iconProps === void 0 ? void 0 : iconProps.className)
|
|
65
|
+
className: classNames('euiListGroupItem__icon', iconProps === null || iconProps === void 0 ? void 0 : iconProps.className),
|
|
66
|
+
css: cssIconStyles
|
|
68
67
|
}));
|
|
69
68
|
if (icon) {
|
|
70
69
|
console.warn('Both `iconType` and `icon` were passed to EuiListGroupItem but only one can exist. The `iconType` was used.');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["children", "restrictWidth", "className", "component", "panelled", "panelProps", "paddingSize", "borderRadius"];
|
|
3
|
+
var _excluded = ["children", "restrictWidth", "className", "css", "component", "panelled", "panelProps", "paddingSize", "borderRadius"];
|
|
4
4
|
/*
|
|
5
5
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
6
6
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -21,6 +21,7 @@ export var EuiPageBody = function EuiPageBody(_ref) {
|
|
|
21
21
|
_ref$restrictWidth = _ref.restrictWidth,
|
|
22
22
|
restrictWidth = _ref$restrictWidth === void 0 ? false : _ref$restrictWidth,
|
|
23
23
|
className = _ref.className,
|
|
24
|
+
css = _ref.css,
|
|
24
25
|
_ref$component = _ref.component,
|
|
25
26
|
Component = _ref$component === void 0 ? 'div' : _ref$component,
|
|
26
27
|
panelled = _ref.panelled,
|
|
@@ -32,20 +33,28 @@ export var EuiPageBody = function EuiPageBody(_ref) {
|
|
|
32
33
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
33
34
|
// Set max-width as a style prop
|
|
34
35
|
var widthStyles = setStyleForRestrictedPageWidth(restrictWidth, rest === null || rest === void 0 ? void 0 : rest.style);
|
|
36
|
+
|
|
37
|
+
// Shared
|
|
38
|
+
var classes = classNames('euiPageBody', className);
|
|
35
39
|
var styles = euiPageBodyStyles();
|
|
40
|
+
var cssStyles = [styles.euiPageBody, restrictWidth && styles.restrictWidth];
|
|
41
|
+
|
|
42
|
+
// Panelled
|
|
43
|
+
var panelClasses = classNames(classes, panelProps === null || panelProps === void 0 ? void 0 : panelProps.className);
|
|
44
|
+
var panelCssStyles = [].concat(cssStyles, [panelProps === null || panelProps === void 0 ? void 0 : panelProps.css, css]);
|
|
45
|
+
|
|
46
|
+
// Non-panelled
|
|
36
47
|
var padding = useEuiPaddingCSS()[paddingSize];
|
|
37
|
-
var
|
|
38
|
-
var panelCSS = [styles.euiPageBody, restrictWidth && styles.restrictWidth];
|
|
39
|
-
var componentCSS = [].concat(panelCSS, [padding]);
|
|
48
|
+
var componentCssStyles = [].concat(cssStyles, [padding, css]);
|
|
40
49
|
return panelled ? ___EmotionJSX(EuiPanel, _extends({
|
|
41
|
-
className: classes,
|
|
42
|
-
css: panelCSS,
|
|
43
50
|
borderRadius: borderRadius,
|
|
44
51
|
paddingSize: paddingSize
|
|
45
|
-
}, panelProps, rest
|
|
52
|
+
}, panelProps, rest, {
|
|
53
|
+
className: panelClasses,
|
|
54
|
+
css: panelCssStyles
|
|
55
|
+
}), children) : ___EmotionJSX(Component, _extends({}, rest, {
|
|
46
56
|
className: classes,
|
|
47
|
-
css:
|
|
48
|
-
}, rest, {
|
|
57
|
+
css: componentCssStyles,
|
|
49
58
|
style: widthStyles
|
|
50
59
|
}), children);
|
|
51
60
|
};
|
|
@@ -110,10 +110,11 @@ export var EuiPageHeaderContent = function EuiPageHeaderContent(_ref) {
|
|
|
110
110
|
})) : undefined;
|
|
111
111
|
var pageTitleNode;
|
|
112
112
|
if (pageTitle) {
|
|
113
|
+
var iconCssStyles = [contentStyles.euiPageHeaderContent__titleIcon, iconProps === null || iconProps === void 0 ? void 0 : iconProps.css];
|
|
113
114
|
var icon = iconType ? ___EmotionJSX(EuiIcon, _extends({
|
|
114
|
-
size: "xl"
|
|
115
|
-
css: contentStyles.euiPageHeaderContent__titleIcon
|
|
115
|
+
size: "xl"
|
|
116
116
|
}, iconProps, {
|
|
117
|
+
css: iconCssStyles,
|
|
117
118
|
type: iconType
|
|
118
119
|
})) : undefined;
|
|
119
120
|
pageTitleNode = ___EmotionJSX(EuiTitle, _extends({}, pageTitleProps, {
|
|
@@ -41,7 +41,7 @@ export var EuiPageSection = function EuiPageSection(_ref) {
|
|
|
41
41
|
var colors = useEuiBackgroundColorCSS();
|
|
42
42
|
var cssStyles = [styles.euiPageSection, grow && styles.grow, inlinePadding[paddingSize], bottomBorder === 'extended' && styles.border, alignment && styles[alignment], colors[color]];
|
|
43
43
|
var contentStyles = euiPageSectionContentStyles();
|
|
44
|
-
var cssContentStyles = [contentStyles.euiPageSection__content, blockPadding[paddingSize], bottomBorder === true && styles.border, alignment.toLowerCase().includes('center') && contentStyles.center, restrictWidth && contentStyles.restrictWidth,
|
|
44
|
+
var cssContentStyles = [contentStyles.euiPageSection__content, blockPadding[paddingSize], bottomBorder === true && styles.border, alignment.toLowerCase().includes('center') && contentStyles.center, restrictWidth && contentStyles.restrictWidth, contentProps === null || contentProps === void 0 ? void 0 : contentProps.css];
|
|
45
45
|
return ___EmotionJSX(Component, _extends({
|
|
46
46
|
css: cssStyles
|
|
47
47
|
}, rest), ___EmotionJSX("div", _extends({}, contentProps, {
|