@elastic/eui 65.0.1 → 67.0.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 +330 -330
- package/dist/eui_charts_theme.js.map +1 -1
- package/dist/eui_theme_dark.css +28 -444
- package/dist/eui_theme_dark.json +0 -6
- package/dist/eui_theme_dark.json.d.ts +0 -6
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +28 -444
- package/dist/eui_theme_light.json +0 -6
- package/dist/eui_theme_light.json.d.ts +0 -6
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/basic_table/basic_table.js +13 -2
- package/es/components/basic_table/in_memory_table.js +13 -2
- package/es/components/button/button_display/_button_display.js +10 -1
- package/es/components/button/button_empty/button_empty.js +10 -1
- package/es/components/card/card.styles.js +2 -2
- package/es/components/collapsible_nav/collapsible_nav.js +0 -5
- package/es/components/combo_box/combo_box.js +2 -15
- package/es/components/datagrid/body/data_grid_body.js +17 -6
- package/es/components/datagrid/body/data_grid_cell.js +29 -12
- package/es/components/datagrid/body/header/data_grid_header_cell.js +17 -6
- package/es/components/datagrid/body/header/data_grid_header_row.js +17 -6
- package/es/components/datagrid/data_grid.js +17 -6
- package/es/components/datagrid/utils/in_memory.js +17 -6
- package/es/components/date_picker/auto_refresh/auto_refresh.js +6 -1
- package/es/components/date_picker/react-datepicker/original.package.json +124 -0
- package/es/components/date_picker/super_date_picker/date_popover/date_popover_button.js +6 -2
- package/es/components/description_list/description_list.js +11 -3
- package/es/components/description_list/description_list_context.js +2 -1
- package/es/components/description_list/description_list_description.js +3 -1
- package/es/components/description_list/description_list_description.styles.js +5 -2
- package/es/components/description_list/description_list_title.js +3 -2
- package/es/components/description_list/description_list_title.styles.js +7 -3
- package/es/components/description_list/description_list_types.js +2 -1
- package/es/components/expression/expression.js +12 -2
- package/es/components/form/field_search/field_search.js +6 -16
- package/es/components/form/range/range_input.js +1 -1
- package/es/components/header/header_links/header_link.js +10 -1
- package/es/components/header/header_section/header_section_item.js +4 -3
- package/es/components/icon/icon.js +3 -10
- package/es/components/image/image.js +6 -1
- package/es/components/image/image_fullscreen_wrapper.js +2 -3
- package/es/components/list_group/list_group.js +7 -1
- package/es/components/list_group/list_group_item.js +10 -3
- package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +13 -1
- package/es/components/modal/modal.js +1 -3
- package/es/components/notification/notification_event.js +24 -5
- package/es/components/observer/mutation_observer/mutation_observer.js +1 -1
- package/es/components/overlay_mask/overlay_mask.js +27 -65
- package/es/components/overlay_mask/overlay_mask.styles.js +28 -0
- package/es/components/page/page_content/page_content.js +1 -2
- package/es/components/page/page_content/page_content_body.js +1 -2
- package/es/components/page/page_content/page_content_header.js +1 -2
- package/es/components/page/page_content/page_content_header_section.js +1 -2
- package/es/components/page/page_section/page_section.js +15 -3
- package/es/components/page/page_side_bar/page_side_bar.js +1 -2
- package/es/components/page/page_sidebar/page_sidebar.js +5 -1
- package/es/components/page/page_template.js +3 -1
- package/es/components/page_template/empty_prompt/page_empty_prompt.js +11 -1
- package/es/components/page_template/page_template.js +18 -2
- package/es/components/pagination/pagination.js +17 -4
- package/es/components/pagination/pagination.styles.js +31 -0
- package/es/components/pagination/pagination_button.js +17 -5
- package/es/components/pagination/pagination_button.styles.js +30 -0
- package/es/components/pagination/pagination_button_arrow.js +5 -0
- package/es/components/progress/progress.js +6 -1
- package/es/components/provider/cache/cache_provider.js +3 -9
- package/es/components/provider/provider.js +25 -2
- package/es/components/resizable_container/resizable_panel.js +6 -1
- package/es/components/side_nav/side_nav.js +5 -0
- package/es/components/suggest/suggest.js +10 -1
- package/es/components/table/table_row_cell.js +4 -6
- package/es/components/tabs/tabbed_content/tabbed_content.js +2 -19
- package/es/components/tool_tip/tool_tip.js +42 -66
- package/es/components/tool_tip/tool_tip.styles.js +107 -0
- package/es/components/tool_tip/tool_tip_anchor.js +73 -0
- package/es/components/tool_tip/tool_tip_arrow.js +20 -0
- package/es/components/tool_tip/tool_tip_popover.js +48 -101
- package/es/global_styling/functions/logicals.json +56 -0
- package/es/global_styling/index.js +2 -1
- package/es/global_styling/mixins/_typography.js +1 -1
- package/es/global_styling/utility/animations.js +13 -0
- package/es/services/theme/hooks.js +11 -16
- package/eui.d.ts +157 -61
- package/i18ntokens.json +72 -72
- package/lib/components/basic_table/basic_table.js +13 -2
- package/lib/components/basic_table/in_memory_table.js +13 -2
- package/lib/components/button/button_display/_button_display.js +10 -1
- package/lib/components/button/button_empty/button_empty.js +10 -1
- package/lib/components/card/card.styles.js +2 -2
- package/lib/components/collapsible_nav/collapsible_nav.js +0 -5
- package/lib/components/combo_box/combo_box.js +2 -15
- package/lib/components/datagrid/body/data_grid_body.js +17 -6
- package/lib/components/datagrid/body/data_grid_cell.js +29 -12
- package/lib/components/datagrid/body/header/data_grid_header_cell.js +17 -6
- package/lib/components/datagrid/body/header/data_grid_header_row.js +17 -6
- package/lib/components/datagrid/data_grid.js +17 -6
- package/lib/components/datagrid/utils/in_memory.js +17 -6
- package/lib/components/date_picker/auto_refresh/auto_refresh.js +6 -1
- package/lib/components/date_picker/react-datepicker/original.package.json +124 -0
- package/lib/components/date_picker/super_date_picker/date_popover/date_popover_button.js +6 -1
- package/lib/components/description_list/description_list.js +11 -3
- package/lib/components/description_list/description_list_context.js +2 -1
- package/lib/components/description_list/description_list_description.js +3 -1
- package/lib/components/description_list/description_list_description.styles.js +5 -2
- package/lib/components/description_list/description_list_title.js +3 -2
- package/lib/components/description_list/description_list_title.styles.js +7 -3
- package/lib/components/description_list/description_list_types.js +4 -2
- package/lib/components/expression/expression.js +12 -2
- package/lib/components/form/field_search/field_search.js +6 -16
- package/lib/components/form/range/range_input.js +1 -1
- package/lib/components/header/header_links/header_link.js +10 -1
- package/lib/components/header/header_section/header_section_item.js +4 -3
- package/lib/components/icon/icon.js +3 -10
- package/lib/components/image/image.js +6 -1
- package/lib/components/image/image_fullscreen_wrapper.js +2 -3
- package/lib/components/list_group/list_group.js +7 -1
- package/lib/components/list_group/list_group_item.js +10 -3
- package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +13 -1
- package/lib/components/modal/modal.js +1 -3
- package/lib/components/notification/notification_event.js +27 -8
- package/lib/components/observer/mutation_observer/mutation_observer.js +1 -1
- package/lib/components/overlay_mask/overlay_mask.js +27 -65
- package/lib/components/overlay_mask/overlay_mask.styles.js +34 -0
- package/lib/components/page/page_content/page_content.js +1 -2
- package/lib/components/page/page_content/page_content_body.js +1 -2
- package/lib/components/page/page_content/page_content_header.js +1 -2
- package/lib/components/page/page_content/page_content_header_section.js +1 -2
- package/lib/components/page/page_section/page_section.js +15 -3
- package/lib/components/page/page_side_bar/page_side_bar.js +1 -2
- package/lib/components/page/page_sidebar/page_sidebar.js +5 -1
- package/lib/components/page/page_template.js +3 -1
- package/lib/components/page_template/empty_prompt/page_empty_prompt.js +11 -1
- package/lib/components/page_template/page_template.js +18 -2
- package/lib/components/pagination/pagination.js +18 -3
- package/lib/components/pagination/pagination.styles.js +34 -0
- package/lib/components/pagination/pagination_button.js +9 -4
- package/lib/components/pagination/pagination_button.styles.js +45 -0
- package/lib/components/pagination/pagination_button_arrow.js +7 -0
- package/lib/components/progress/progress.js +6 -1
- package/lib/components/provider/cache/cache_provider.js +3 -11
- package/lib/components/provider/provider.js +31 -6
- package/lib/components/resizable_container/resizable_panel.js +6 -1
- package/lib/components/side_nav/side_nav.js +5 -0
- package/lib/components/suggest/suggest.js +10 -1
- package/lib/components/table/table_row_cell.js +4 -6
- package/lib/components/tabs/tabbed_content/tabbed_content.js +2 -19
- package/lib/components/tool_tip/tool_tip.js +43 -64
- package/lib/components/tool_tip/tool_tip.styles.js +123 -0
- package/lib/components/tool_tip/tool_tip_anchor.js +87 -0
- package/lib/components/tool_tip/tool_tip_arrow.js +28 -0
- package/lib/components/tool_tip/tool_tip_popover.js +49 -98
- package/lib/global_styling/functions/logicals.json +56 -0
- package/lib/global_styling/index.js +13 -0
- package/lib/global_styling/mixins/_typography.js +1 -1
- package/lib/global_styling/utility/animations.js +15 -0
- package/lib/services/theme/hooks.js +10 -15
- package/optimize/es/components/card/card.styles.js +2 -2
- package/optimize/es/components/combo_box/combo_box.js +2 -15
- package/optimize/es/components/date_picker/react-datepicker/original.package.json +124 -0
- package/optimize/es/components/date_picker/super_date_picker/date_popover/date_popover_button.js +0 -1
- package/optimize/es/components/description_list/description_list.js +5 -2
- package/optimize/es/components/description_list/description_list_context.js +2 -1
- package/optimize/es/components/description_list/description_list_description.js +3 -1
- package/optimize/es/components/description_list/description_list_description.styles.js +5 -2
- package/optimize/es/components/description_list/description_list_title.js +3 -2
- package/optimize/es/components/description_list/description_list_title.styles.js +7 -3
- package/optimize/es/components/description_list/description_list_types.js +2 -1
- package/optimize/es/components/form/field_search/field_search.js +6 -16
- package/optimize/es/components/form/range/range_input.js +1 -1
- package/optimize/es/components/header/header_section/header_section_item.js +4 -3
- package/optimize/es/components/icon/icon.js +3 -10
- package/optimize/es/components/image/image_fullscreen_wrapper.js +2 -3
- package/optimize/es/components/list_group/list_group_item.js +3 -2
- package/optimize/es/components/modal/modal.js +1 -3
- package/optimize/es/components/notification/notification_event.js +10 -4
- package/optimize/es/components/observer/mutation_observer/mutation_observer.js +1 -1
- package/optimize/es/components/overlay_mask/overlay_mask.js +27 -60
- package/optimize/es/components/overlay_mask/overlay_mask.styles.js +28 -0
- package/optimize/es/components/page/page_content/page_content.js +1 -2
- package/optimize/es/components/page/page_content/page_content_body.js +1 -2
- package/optimize/es/components/page/page_content/page_content_header.js +1 -2
- package/optimize/es/components/page/page_content/page_content_header_section.js +1 -2
- package/optimize/es/components/page/page_section/page_section.js +4 -2
- package/optimize/es/components/page/page_side_bar/page_side_bar.js +1 -2
- package/optimize/es/components/page/page_sidebar/page_sidebar.js +5 -1
- package/optimize/es/components/page/page_template.js +3 -1
- package/optimize/es/components/pagination/pagination.js +17 -4
- package/optimize/es/components/pagination/pagination.styles.js +31 -0
- package/optimize/es/components/pagination/pagination_button.js +7 -4
- package/optimize/es/components/pagination/pagination_button.styles.js +30 -0
- package/optimize/es/components/pagination/pagination_button_arrow.js +5 -0
- package/optimize/es/components/provider/cache/cache_provider.js +3 -9
- package/optimize/es/components/provider/provider.js +25 -2
- package/optimize/es/components/suggest/suggest.js +4 -1
- package/optimize/es/components/tabs/tabbed_content/tabbed_content.js +2 -19
- package/optimize/es/components/tool_tip/tool_tip.js +42 -66
- package/optimize/es/components/tool_tip/tool_tip.styles.js +107 -0
- package/optimize/es/components/tool_tip/tool_tip_anchor.js +60 -0
- package/optimize/es/components/tool_tip/tool_tip_arrow.js +20 -0
- package/optimize/es/components/tool_tip/tool_tip_popover.js +46 -87
- package/optimize/es/global_styling/functions/logicals.json +56 -0
- package/optimize/es/global_styling/index.js +2 -1
- package/optimize/es/global_styling/mixins/_typography.js +1 -1
- package/optimize/es/global_styling/utility/animations.js +13 -0
- package/optimize/es/services/theme/hooks.js +11 -16
- package/optimize/lib/components/card/card.styles.js +2 -2
- package/optimize/lib/components/combo_box/combo_box.js +2 -15
- package/optimize/lib/components/date_picker/react-datepicker/original.package.json +124 -0
- package/optimize/lib/components/description_list/description_list.js +5 -2
- package/optimize/lib/components/description_list/description_list_context.js +2 -1
- package/optimize/lib/components/description_list/description_list_description.js +3 -1
- package/optimize/lib/components/description_list/description_list_description.styles.js +5 -2
- package/optimize/lib/components/description_list/description_list_title.js +3 -2
- package/optimize/lib/components/description_list/description_list_title.styles.js +7 -3
- package/optimize/lib/components/description_list/description_list_types.js +4 -2
- package/optimize/lib/components/form/field_search/field_search.js +6 -16
- package/optimize/lib/components/form/range/range_input.js +1 -1
- package/optimize/lib/components/header/header_section/header_section_item.js +4 -3
- package/optimize/lib/components/icon/icon.js +3 -10
- package/optimize/lib/components/image/image_fullscreen_wrapper.js +2 -3
- package/optimize/lib/components/list_group/list_group_item.js +3 -2
- package/optimize/lib/components/modal/modal.js +1 -3
- package/optimize/lib/components/notification/notification_event.js +11 -11
- package/optimize/lib/components/observer/mutation_observer/mutation_observer.js +1 -1
- package/optimize/lib/components/overlay_mask/overlay_mask.js +27 -59
- package/optimize/lib/components/overlay_mask/overlay_mask.styles.js +34 -0
- package/optimize/lib/components/page/page_content/page_content.js +1 -2
- package/optimize/lib/components/page/page_content/page_content_body.js +1 -2
- package/optimize/lib/components/page/page_content/page_content_header.js +1 -2
- package/optimize/lib/components/page/page_content/page_content_header_section.js +1 -2
- package/optimize/lib/components/page/page_section/page_section.js +4 -2
- package/optimize/lib/components/page/page_side_bar/page_side_bar.js +1 -2
- package/optimize/lib/components/page/page_sidebar/page_sidebar.js +5 -1
- package/optimize/lib/components/page/page_template.js +3 -1
- package/optimize/lib/components/pagination/pagination.js +18 -3
- package/optimize/lib/components/pagination/pagination.styles.js +34 -0
- package/optimize/lib/components/pagination/pagination_button.js +9 -4
- package/optimize/lib/components/pagination/pagination_button.styles.js +45 -0
- package/optimize/lib/components/pagination/pagination_button_arrow.js +7 -0
- package/optimize/lib/components/provider/cache/cache_provider.js +3 -11
- package/optimize/lib/components/provider/provider.js +31 -6
- package/optimize/lib/components/suggest/suggest.js +4 -1
- package/optimize/lib/components/tabs/tabbed_content/tabbed_content.js +2 -19
- package/optimize/lib/components/tool_tip/tool_tip.js +42 -64
- package/optimize/lib/components/tool_tip/tool_tip.styles.js +125 -0
- package/optimize/lib/components/tool_tip/tool_tip_anchor.js +75 -0
- package/optimize/lib/components/tool_tip/tool_tip_arrow.js +35 -0
- package/optimize/lib/components/tool_tip/tool_tip_popover.js +47 -88
- package/optimize/lib/global_styling/functions/logicals.json +56 -0
- package/optimize/lib/global_styling/index.js +13 -0
- package/optimize/lib/global_styling/mixins/_typography.js +1 -1
- package/optimize/lib/global_styling/utility/animations.js +17 -0
- package/optimize/lib/services/theme/hooks.js +10 -15
- package/package.json +2 -2
- package/src/components/badge/_badge.scss +0 -5
- package/src/components/datagrid/_data_grid_data_row.scss +7 -0
- package/src/components/datagrid/body/header/_data_grid_header_row.scss +1 -1
- package/src/components/filter_group/_filter_group.scss +3 -1
- package/src/components/flex/_flex_group.scss +2 -11
- package/src/components/flex/_flex_item.scss +0 -6
- package/src/components/form/field_search/_field_search.scss +0 -5
- package/src/components/form/form_control_layout/_form_control_layout_delimited.scss +0 -3
- package/src/components/form/form_row/_form_row.scss +0 -1
- package/src/components/header/header_section/_header_section_item.scss +1 -1
- package/src/components/index.scss +0 -4
- package/src/components/list_group/_list_group_item.scss +3 -25
- package/src/components/modal/_modal.scss +5 -20
- package/src/components/page/page_content/_page_content.scss +0 -1
- package/src/components/table/_responsive.scss +0 -1
- package/src/components/table/_table.scss +0 -5
- package/src/global_styling/mixins/_form.scss +0 -4
- package/src/global_styling/mixins/_helpers.scss +0 -8
- package/src/global_styling/mixins/_tool_tip.scss +3 -6
- package/src/global_styling/mixins/_typography.scss +1 -5
- package/src/global_styling/utility/_index.scss +0 -1
- package/src/themes/amsterdam/overrides/_index.scss +0 -2
- package/test-env/components/basic_table/basic_table.js +13 -2
- package/test-env/components/basic_table/in_memory_table.js +13 -2
- package/test-env/components/button/button_display/_button_display.js +10 -1
- package/test-env/components/button/button_empty/button_empty.js +10 -1
- package/test-env/components/card/card.styles.js +2 -2
- package/test-env/components/collapsible_nav/collapsible_nav.js +0 -5
- package/test-env/components/combo_box/combo_box.js +2 -15
- package/test-env/components/datagrid/body/data_grid_body.js +17 -6
- package/test-env/components/datagrid/body/data_grid_cell.js +29 -12
- package/test-env/components/datagrid/body/header/data_grid_header_cell.js +17 -6
- package/test-env/components/datagrid/body/header/data_grid_header_row.js +17 -6
- package/test-env/components/datagrid/data_grid.js +17 -6
- package/test-env/components/datagrid/utils/in_memory.js +17 -6
- package/test-env/components/date_picker/auto_refresh/auto_refresh.js +6 -1
- package/test-env/components/date_picker/react-datepicker/original.package.json +124 -0
- package/test-env/components/date_picker/super_date_picker/date_popover/date_popover_button.js +6 -1
- package/test-env/components/description_list/description_list.js +11 -3
- package/test-env/components/description_list/description_list_context.js +2 -1
- package/test-env/components/description_list/description_list_description.js +3 -1
- package/test-env/components/description_list/description_list_description.styles.js +5 -2
- package/test-env/components/description_list/description_list_title.js +3 -2
- package/test-env/components/description_list/description_list_title.styles.js +7 -3
- package/test-env/components/description_list/description_list_types.js +4 -2
- package/test-env/components/expression/expression.js +12 -2
- package/test-env/components/form/field_search/field_search.js +6 -16
- package/test-env/components/form/range/range_input.js +1 -1
- package/test-env/components/header/header_links/header_link.js +10 -1
- package/test-env/components/header/header_section/header_section_item.js +4 -3
- package/test-env/components/image/image.js +6 -1
- package/test-env/components/image/image_fullscreen_wrapper.js +2 -3
- package/test-env/components/list_group/list_group.js +7 -1
- package/test-env/components/list_group/list_group_item.js +10 -3
- package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +13 -1
- package/test-env/components/modal/modal.js +1 -3
- package/test-env/components/notification/notification_event.js +24 -15
- package/test-env/components/observer/mutation_observer/mutation_observer.js +1 -1
- package/test-env/components/overlay_mask/overlay_mask.js +27 -64
- package/test-env/components/overlay_mask/overlay_mask.styles.js +34 -0
- package/test-env/components/page/page_content/page_content.js +1 -2
- package/test-env/components/page/page_content/page_content_body.js +1 -2
- package/test-env/components/page/page_content/page_content_header.js +1 -2
- package/test-env/components/page/page_content/page_content_header_section.js +1 -2
- package/test-env/components/page/page_section/page_section.js +15 -3
- package/test-env/components/page/page_side_bar/page_side_bar.js +1 -2
- package/test-env/components/page/page_sidebar/page_sidebar.js +5 -1
- package/test-env/components/page/page_template.js +3 -1
- package/test-env/components/page_template/empty_prompt/page_empty_prompt.js +11 -1
- package/test-env/components/page_template/page_template.js +18 -2
- package/test-env/components/pagination/pagination.js +18 -3
- package/test-env/components/pagination/pagination.styles.js +34 -0
- package/test-env/components/pagination/pagination_button.js +9 -4
- package/test-env/components/pagination/pagination_button.styles.js +45 -0
- package/test-env/components/pagination/pagination_button_arrow.js +7 -0
- package/test-env/components/progress/progress.js +6 -1
- package/test-env/components/provider/cache/cache_provider.js +3 -11
- package/test-env/components/provider/provider.js +31 -6
- package/test-env/components/resizable_container/resizable_panel.js +6 -1
- package/test-env/components/side_nav/side_nav.js +5 -0
- package/test-env/components/suggest/suggest.js +10 -1
- package/test-env/components/table/table_row_cell.js +4 -6
- package/test-env/components/tabs/tabbed_content/tabbed_content.js +2 -19
- package/test-env/components/tool_tip/tool_tip.js +42 -64
- package/test-env/components/tool_tip/tool_tip.styles.js +125 -0
- package/test-env/components/tool_tip/tool_tip_anchor.js +84 -0
- package/test-env/components/tool_tip/tool_tip_arrow.js +35 -0
- package/test-env/components/tool_tip/tool_tip_popover.js +49 -89
- package/test-env/global_styling/functions/logicals.json +56 -0
- package/test-env/global_styling/index.js +13 -0
- package/test-env/global_styling/mixins/_typography.js +1 -1
- package/test-env/global_styling/utility/animations.js +17 -0
- package/test-env/services/theme/hooks.js +10 -15
- package/src/components/call_out/_index.scss +0 -3
- package/src/components/call_out/_mixins.scss +0 -23
- package/src/components/call_out/_variables.scss +0 -7
- package/src/components/overlay_mask/_index.scss +0 -1
- package/src/components/overlay_mask/_overlay_mask.scss +0 -33
- package/src/components/pagination/_index.scss +0 -2
- package/src/components/pagination/_pagination.scss +0 -30
- package/src/components/pagination/_pagination_button.scss +0 -37
- package/src/components/tool_tip/_index.scss +0 -1
- package/src/components/tool_tip/_tool_tip.scss +0 -121
- package/src/global_styling/utility/_utility.scss +0 -15
- package/src/themes/amsterdam/overrides/_overlay_mask.scss +0 -3
- package/src/themes/amsterdam/overrides/_tooltip.scss +0 -7
|
@@ -24,7 +24,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
24
24
|
|
|
25
25
|
var euiDescriptionListDescriptionStyles = function euiDescriptionListDescriptionStyles(euiThemeContext) {
|
|
26
26
|
var euiTheme = euiThemeContext.euiTheme;
|
|
27
|
-
var columnDisplay = "\n ".concat((0, _global_styling.logicalCSS)('width', '50%'), "
|
|
27
|
+
var columnDisplay = "\n ".concat((0, _global_styling.logicalCSS)('width', '50%'), "\n ").concat((0, _global_styling.logicalCSS)('padding-left', euiTheme.size.s), "\n ");
|
|
28
28
|
return {
|
|
29
29
|
euiDescriptionList__description: /*#__PURE__*/(0, _react.css)(";label:euiDescriptionList__description;"),
|
|
30
30
|
// Types
|
|
@@ -44,7 +44,10 @@ var euiDescriptionListDescriptionStyles = function euiDescriptionListDescription
|
|
|
44
44
|
normal: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiFontSize)(euiThemeContext, 's'), ";;label:normal;")
|
|
45
45
|
},
|
|
46
46
|
// Column types should align description text to the left when EuiDecriptionList is centered
|
|
47
|
-
left: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalTextAlignCSS)('left'), ";;label:left;")
|
|
47
|
+
left: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalTextAlignCSS)('left'), ";;label:left;"),
|
|
48
|
+
// Gutter
|
|
49
|
+
s: /*#__PURE__*/(0, _react.css)("&:not(:first-of-type){", (0, _global_styling.logicalCSS)('margin-top', euiTheme.size.s), ";};label:s;"),
|
|
50
|
+
m: /*#__PURE__*/(0, _react.css)("&:not(:first-of-type){", (0, _global_styling.logicalCSS)('margin-top', euiTheme.size.base), ";};label:m;")
|
|
48
51
|
};
|
|
49
52
|
};
|
|
50
53
|
|
|
@@ -56,7 +56,8 @@ var EuiDescriptionListTitle = function EuiDescriptionListTitle(_ref) {
|
|
|
56
56
|
type = _useContext.type,
|
|
57
57
|
textStyle = _useContext.textStyle,
|
|
58
58
|
compressed = _useContext.compressed,
|
|
59
|
-
align = _useContext.align
|
|
59
|
+
align = _useContext.align,
|
|
60
|
+
gutterSize = _useContext.gutterSize;
|
|
60
61
|
|
|
61
62
|
var theme = (0, _services.useEuiTheme)();
|
|
62
63
|
var styles = (0, _description_list_title.euiDescriptionListTitleStyles)(theme);
|
|
@@ -76,7 +77,7 @@ var EuiDescriptionListTitle = function EuiDescriptionListTitle(_ref) {
|
|
|
76
77
|
break;
|
|
77
78
|
}
|
|
78
79
|
|
|
79
|
-
var cssStyles = [styles.euiDescriptionList__title, styles[type]].concat(_toConsumableArray(conditionalStyles));
|
|
80
|
+
var cssStyles = [styles.euiDescriptionList__title, styles[type], styles[gutterSize]].concat(_toConsumableArray(conditionalStyles));
|
|
80
81
|
var classes = (0, _classnames.default)('euiDescriptionList__title', className);
|
|
81
82
|
return (0, _react2.jsx)("dt", _extends({
|
|
82
83
|
className: classes,
|
|
@@ -23,9 +23,9 @@ var _title = require("../title/title.styles");
|
|
|
23
23
|
var euiDescriptionListTitleStyles = function euiDescriptionListTitleStyles(euiThemeContext) {
|
|
24
24
|
var euiTheme = euiThemeContext.euiTheme,
|
|
25
25
|
colorMode = euiThemeContext.colorMode;
|
|
26
|
-
var columnDisplay = "\n
|
|
26
|
+
var columnDisplay = "\n ".concat((0, _global_styling.logicalCSS)('width', '50%'), "\n ").concat((0, _global_styling.logicalCSS)('padding-right', euiTheme.size.s), "\n ");
|
|
27
27
|
return {
|
|
28
|
-
euiDescriptionList__title: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiTextBreakWord)(), "
|
|
28
|
+
euiDescriptionList__title: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiTextBreakWord)(), ";;label:euiDescriptionList__title;"),
|
|
29
29
|
// Types
|
|
30
30
|
row: /*#__PURE__*/(0, _react.css)(";label:row;"),
|
|
31
31
|
column: /*#__PURE__*/(0, _react.css)(columnDisplay, ";;label:column;"),
|
|
@@ -43,7 +43,11 @@ var euiDescriptionListTitleStyles = function euiDescriptionListTitleStyles(euiTh
|
|
|
43
43
|
compressed: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiFontSize)(euiThemeContext, 'xs'), ";", (0, _global_styling.logicalCSS)('padding-vertical', '0'), " ", (0, _global_styling.logicalCSS)('padding-horizontal', euiTheme.size.xs), ";;label:compressed;")
|
|
44
44
|
},
|
|
45
45
|
// Alignment
|
|
46
|
-
right: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalTextAlignCSS)('right'), ";;label:right;")
|
|
46
|
+
right: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalTextAlignCSS)('right'), ";;label:right;"),
|
|
47
|
+
// Gutter
|
|
48
|
+
// Add margin only to the non-first <dt>.
|
|
49
|
+
s: /*#__PURE__*/(0, _react.css)("&:not(:first-of-type){", (0, _global_styling.logicalCSS)('margin-top', euiTheme.size.s), ";};label:s;"),
|
|
50
|
+
m: /*#__PURE__*/(0, _react.css)("&:not(:first-of-type){", (0, _global_styling.logicalCSS)('margin-top', euiTheme.size.base), ";};label:m;")
|
|
47
51
|
};
|
|
48
52
|
};
|
|
49
53
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.TYPES = exports.TEXT_STYLES = exports.ALIGNMENTS = void 0;
|
|
6
|
+
exports.TYPES = exports.TEXT_STYLES = exports.GUTTER_SIZES = exports.ALIGNMENTS = void 0;
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
9
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
@@ -17,4 +17,6 @@ exports.TYPES = TYPES;
|
|
|
17
17
|
var ALIGNMENTS = ['center', 'left'];
|
|
18
18
|
exports.ALIGNMENTS = ALIGNMENTS;
|
|
19
19
|
var TEXT_STYLES = ['normal', 'reverse'];
|
|
20
|
-
exports.TEXT_STYLES = TEXT_STYLES;
|
|
20
|
+
exports.TEXT_STYLES = TEXT_STYLES;
|
|
21
|
+
var GUTTER_SIZES = ['s', 'm'];
|
|
22
|
+
exports.GUTTER_SIZES = GUTTER_SIZES;
|
|
@@ -112,7 +112,12 @@ EuiExpression.propTypes = {
|
|
|
112
112
|
* First part of the expression
|
|
113
113
|
*/
|
|
114
114
|
description: _propTypes.default.node.isRequired,
|
|
115
|
-
descriptionProps: _propTypes.default.
|
|
115
|
+
descriptionProps: _propTypes.default.shape({
|
|
116
|
+
className: _propTypes.default.string,
|
|
117
|
+
"aria-label": _propTypes.default.string,
|
|
118
|
+
"data-test-subj": _propTypes.default.string,
|
|
119
|
+
css: _propTypes.default.any
|
|
120
|
+
}),
|
|
116
121
|
|
|
117
122
|
/**
|
|
118
123
|
* Second part of the expression
|
|
@@ -122,7 +127,12 @@ EuiExpression.propTypes = {
|
|
|
122
127
|
* Second part of the expression
|
|
123
128
|
*/
|
|
124
129
|
value: _propTypes.default.node,
|
|
125
|
-
valueProps: _propTypes.default.
|
|
130
|
+
valueProps: _propTypes.default.shape({
|
|
131
|
+
className: _propTypes.default.string,
|
|
132
|
+
"aria-label": _propTypes.default.string,
|
|
133
|
+
"data-test-subj": _propTypes.default.string,
|
|
134
|
+
css: _propTypes.default.any
|
|
135
|
+
}),
|
|
126
136
|
|
|
127
137
|
/**
|
|
128
138
|
* Color of the `description`
|
|
@@ -102,26 +102,16 @@ var EuiFieldSearch = /*#__PURE__*/function (_Component) {
|
|
|
102
102
|
|
|
103
103
|
if (nativeInputValueSetter) {
|
|
104
104
|
nativeInputValueSetter.call(_this.inputElement, '');
|
|
105
|
-
} // dispatch input event
|
|
105
|
+
} // dispatch input event
|
|
106
106
|
|
|
107
107
|
|
|
108
|
-
var event
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
bubbles: true,
|
|
113
|
-
cancelable: false
|
|
114
|
-
});
|
|
115
|
-
} else {
|
|
116
|
-
// IE11
|
|
117
|
-
event = document.createEvent('Event');
|
|
118
|
-
event.initEvent('input', true, false);
|
|
119
|
-
}
|
|
108
|
+
var event = new Event('input', {
|
|
109
|
+
bubbles: true,
|
|
110
|
+
cancelable: false
|
|
111
|
+
});
|
|
120
112
|
|
|
121
113
|
if (_this.inputElement) {
|
|
122
|
-
|
|
123
|
-
_this.inputElement.dispatchEvent(event);
|
|
124
|
-
} // set focus on the search field
|
|
114
|
+
_this.inputElement.dispatchEvent(event); // set focus on the search field
|
|
125
115
|
|
|
126
116
|
|
|
127
117
|
_this.inputElement.focus();
|
|
@@ -40,7 +40,7 @@ var EuiRangeInput = function EuiRangeInput(_ref) {
|
|
|
40
40
|
autoSize = _ref$autoSize === void 0 ? true : _ref$autoSize,
|
|
41
41
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
42
42
|
|
|
43
|
-
// Chrome will properly size the input based on the max value, but FF
|
|
43
|
+
// Chrome will properly size the input based on the max value, but FF does not.
|
|
44
44
|
// Calculate the width of the input based on highest number of characters.
|
|
45
45
|
// Add 2 to accommodate for input stepper
|
|
46
46
|
var widthStyle = autoSize ? {
|
|
@@ -109,7 +109,16 @@ EuiHeaderLink.propTypes = {
|
|
|
109
109
|
/**
|
|
110
110
|
* Object of props passed to the <span/> wrapping the button's content
|
|
111
111
|
*/
|
|
112
|
-
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Object of props passed to the <span/> wrapping the button's content
|
|
115
|
+
*/
|
|
116
|
+
contentProps: _propTypes.default.shape({
|
|
117
|
+
className: _propTypes.default.string,
|
|
118
|
+
"aria-label": _propTypes.default.string,
|
|
119
|
+
"data-test-subj": _propTypes.default.string,
|
|
120
|
+
css: _propTypes.default.any
|
|
121
|
+
}),
|
|
113
122
|
|
|
114
123
|
/**
|
|
115
124
|
* Any `type` accepted by EuiIcon
|
|
@@ -36,10 +36,11 @@ var EuiHeaderSectionItem = function EuiHeaderSectionItem(_ref) {
|
|
|
36
36
|
className = _ref.className,
|
|
37
37
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
38
38
|
|
|
39
|
-
var classes = (0, _classnames.default)('euiHeaderSectionItem', borderToClassNameMap[border], className);
|
|
40
|
-
|
|
39
|
+
var classes = (0, _classnames.default)('euiHeaderSectionItem', borderToClassNameMap[border], className); // we check if there is any children and if not, we don't render anything
|
|
40
|
+
|
|
41
|
+
return children ? (0, _react2.jsx)("div", _extends({
|
|
41
42
|
className: classes
|
|
42
|
-
}, rest), children);
|
|
43
|
+
}, rest), children) : null;
|
|
43
44
|
};
|
|
44
45
|
|
|
45
46
|
exports.EuiHeaderSectionItem = EuiHeaderSectionItem;
|
|
@@ -144,7 +144,7 @@ var EuiIconClass = /*#__PURE__*/function (_PureComponent) {
|
|
|
144
144
|
|
|
145
145
|
_this = _super.call(this, props);
|
|
146
146
|
|
|
147
|
-
_defineProperty(_assertThisInitialized(_this), "isMounted",
|
|
147
|
+
_defineProperty(_assertThisInitialized(_this), "isMounted", false);
|
|
148
148
|
|
|
149
149
|
_defineProperty(_assertThisInitialized(_this), "loadIconComponent", function (iconType) {
|
|
150
150
|
if (iconComponentCache.hasOwnProperty(iconType)) {
|
|
@@ -204,6 +204,7 @@ var EuiIconClass = /*#__PURE__*/function (_PureComponent) {
|
|
|
204
204
|
_createClass(EuiIconClass, [{
|
|
205
205
|
key: "componentDidMount",
|
|
206
206
|
value: function componentDidMount() {
|
|
207
|
+
this.isMounted = true;
|
|
207
208
|
var type = this.props.type;
|
|
208
209
|
|
|
209
210
|
if (isEuiIconType(type) && this.state.icon == null) {
|
|
@@ -280,14 +281,7 @@ var EuiIconClass = /*#__PURE__*/function (_PureComponent) {
|
|
|
280
281
|
|
|
281
282
|
var styles = (0, _icon.euiIconStyles)(theme);
|
|
282
283
|
var cssStyles = [styles.euiIcon, styles[size], color && (0, _named_colors.isNamedColor)(color) && styles[color], isCustomColor && styles.customColor, isElasticLogoOutline && styles.logoElasticOutline, isAppIcon && !appIconHasColor && styles.app, isLoading && styles.isLoading, !isLoading && neededLoading && styles.isLoaded];
|
|
283
|
-
var icon = this.state.icon || _empty.icon;
|
|
284
|
-
// focusable="false".
|
|
285
|
-
// - If there's no tabindex specified, we'll default the icon to not be focusable,
|
|
286
|
-
// which is how SVGs behave in Chrome, Safari, and FF.
|
|
287
|
-
// - If tabindex is -1, then the consumer wants the icon to be focusable by JavaScript only.
|
|
288
|
-
// - If the tabindex is 0, the consumer wants the icon to be keyboard focusable.
|
|
289
|
-
|
|
290
|
-
var focusable = tabIndex == null || tabIndex === -1 ? 'false' : 'true';
|
|
284
|
+
var icon = this.state.icon || _empty.icon;
|
|
291
285
|
|
|
292
286
|
if (typeof icon === 'string') {
|
|
293
287
|
return (0, _react3.jsx)("img", _extends({
|
|
@@ -319,7 +313,6 @@ var EuiIconClass = /*#__PURE__*/function (_PureComponent) {
|
|
|
319
313
|
style: optionalCustomStyles,
|
|
320
314
|
css: cssStyles,
|
|
321
315
|
tabIndex: tabIndex,
|
|
322
|
-
focusable: focusable,
|
|
323
316
|
role: "img",
|
|
324
317
|
title: title,
|
|
325
318
|
"data-icon-type": iconTitle,
|
|
@@ -186,5 +186,10 @@ EuiImage.propTypes = {
|
|
|
186
186
|
/**
|
|
187
187
|
* Props to add to the wrapping figure element
|
|
188
188
|
*/
|
|
189
|
-
wrapperProps: _propTypes.default.
|
|
189
|
+
wrapperProps: _propTypes.default.shape({
|
|
190
|
+
className: _propTypes.default.string,
|
|
191
|
+
"aria-label": _propTypes.default.string,
|
|
192
|
+
"data-test-subj": _propTypes.default.string,
|
|
193
|
+
css: _propTypes.default.any
|
|
194
|
+
})
|
|
190
195
|
};
|
|
@@ -81,10 +81,9 @@ var EuiImageFullScreenWrapper = function EuiImageFullScreenWrapper(_ref) {
|
|
|
81
81
|
var iconStyles = (0, _image_button2.euiImageButtonIconStyles)(euiTheme);
|
|
82
82
|
var cssIconStyles = [iconStyles.euiImageButton__icon, iconStyles.closeFullScreen];
|
|
83
83
|
return (0, _react2.jsx)(_overlay_mask.EuiOverlayMask, {
|
|
84
|
-
"data-test-subj": "fullScreenOverlayMask"
|
|
85
|
-
onClick: closeFullScreen
|
|
84
|
+
"data-test-subj": "fullScreenOverlayMask"
|
|
86
85
|
}, (0, _react2.jsx)(_focus_trap.EuiFocusTrap, {
|
|
87
|
-
|
|
86
|
+
onClickOutside: closeFullScreen
|
|
88
87
|
}, (0, _react2.jsx)(_react.default.Fragment, null, (0, _react2.jsx)("figure", _extends({
|
|
89
88
|
"aria-label": optionalCaptionText
|
|
90
89
|
}, wrapperProps, {
|
|
@@ -273,7 +273,13 @@ EuiListGroup.propTypes = {
|
|
|
273
273
|
* Pass-through ref reference specifically for targeting
|
|
274
274
|
* instances where the item content is rendered as a `button`
|
|
275
275
|
*/
|
|
276
|
-
buttonRef: _propTypes.default.any
|
|
276
|
+
buttonRef: _propTypes.default.any,
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* Text to be displayed in the tooltip when `showToolTip` is true.
|
|
280
|
+
* By default the text will be same as the label text.
|
|
281
|
+
*/
|
|
282
|
+
toolTipText: _propTypes.default.string
|
|
277
283
|
}).isRequired),
|
|
278
284
|
|
|
279
285
|
/**
|
|
@@ -27,7 +27,7 @@ var _href_validator = require("../../services/security/href_validator");
|
|
|
27
27
|
|
|
28
28
|
var _react2 = require("@emotion/react");
|
|
29
29
|
|
|
30
|
-
var _excluded = ["label", "isActive", "isDisabled", "href", "target", "rel", "className", "iconType", "icon", "iconProps", "extraAction", "onClick", "size", "color", "showToolTip", "wrapText", "buttonRef"],
|
|
30
|
+
var _excluded = ["label", "isActive", "isDisabled", "href", "target", "rel", "className", "iconType", "icon", "iconProps", "extraAction", "onClick", "size", "color", "showToolTip", "wrapText", "buttonRef", "toolTipText"],
|
|
31
31
|
_excluded2 = ["iconType", "alwaysShow", "className", "isDisabled"];
|
|
32
32
|
|
|
33
33
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -95,6 +95,7 @@ var EuiListGroupItem = function EuiListGroupItem(_ref) {
|
|
|
95
95
|
showToolTip = _ref$showToolTip === void 0 ? false : _ref$showToolTip,
|
|
96
96
|
wrapText = _ref.wrapText,
|
|
97
97
|
buttonRef = _ref.buttonRef,
|
|
98
|
+
toolTipText = _ref.toolTipText,
|
|
98
99
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
99
100
|
|
|
100
101
|
var isHrefValid = !href || (0, _href_validator.validateHref)(href);
|
|
@@ -196,7 +197,7 @@ var EuiListGroupItem = function EuiListGroupItem(_ref) {
|
|
|
196
197
|
className: classes
|
|
197
198
|
}, (0, _react2.jsx)(_tool_tip.EuiToolTip, {
|
|
198
199
|
anchorClassName: "euiListGroupItem__tooltip",
|
|
199
|
-
content: label,
|
|
200
|
+
content: toolTipText !== null && toolTipText !== void 0 ? toolTipText : label,
|
|
200
201
|
position: "right",
|
|
201
202
|
delay: "long"
|
|
202
203
|
}, itemContent));
|
|
@@ -341,5 +342,11 @@ EuiListGroupItem.propTypes = {
|
|
|
341
342
|
* Pass-through ref reference specifically for targeting
|
|
342
343
|
* instances where the item content is rendered as a `button`
|
|
343
344
|
*/
|
|
344
|
-
buttonRef: _propTypes.default.any
|
|
345
|
+
buttonRef: _propTypes.default.any,
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* Text to be displayed in the tooltip when `showToolTip` is true.
|
|
349
|
+
* By default the text will be same as the label text.
|
|
350
|
+
*/
|
|
351
|
+
toolTipText: _propTypes.default.string
|
|
345
352
|
};
|
|
@@ -263,6 +263,12 @@ EuiPinnableListGroup.propTypes = {
|
|
|
263
263
|
*/
|
|
264
264
|
buttonRef: _propTypes.default.any,
|
|
265
265
|
|
|
266
|
+
/**
|
|
267
|
+
* Text to be displayed in the tooltip when `showToolTip` is true.
|
|
268
|
+
* By default the text will be same as the label text.
|
|
269
|
+
*/
|
|
270
|
+
toolTipText: _propTypes.default.string,
|
|
271
|
+
|
|
266
272
|
/**
|
|
267
273
|
* Saves the pinned status and changes the visibility of the pin icon
|
|
268
274
|
*/
|
|
@@ -373,7 +379,13 @@ EuiPinnableListGroup.propTypes = {
|
|
|
373
379
|
* Pass-through ref reference specifically for targeting
|
|
374
380
|
* instances where the item content is rendered as a `button`
|
|
375
381
|
*/
|
|
376
|
-
buttonRef: _propTypes.default.any
|
|
382
|
+
buttonRef: _propTypes.default.any,
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
* Text to be displayed in the tooltip when `showToolTip` is true.
|
|
386
|
+
* By default the text will be same as the label text.
|
|
387
|
+
*/
|
|
388
|
+
toolTipText: _propTypes.default.string
|
|
377
389
|
}).isRequired)]),
|
|
378
390
|
|
|
379
391
|
/**
|
|
@@ -29,6 +29,8 @@ var _notification_event_read_icon = require("./notification_event_read_icon");
|
|
|
29
29
|
|
|
30
30
|
var _react2 = require("@emotion/react");
|
|
31
31
|
|
|
32
|
+
var _excluded = ["id", "type", "severity", "badgeColor", "iconType", "iconAriaLabel", "time", "title", "isRead", "primaryAction", "primaryActionProps", "messages", "onRead", "onOpenContextMenu", "onClickTitle", "onClickPrimaryAction", "headingLevel", "className"];
|
|
33
|
+
|
|
32
34
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
33
35
|
|
|
34
36
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -37,6 +39,10 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
37
39
|
|
|
38
40
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
39
41
|
|
|
42
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
43
|
+
|
|
44
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
45
|
+
|
|
40
46
|
var EuiNotificationEvent = function EuiNotificationEvent(_ref) {
|
|
41
47
|
var id = _ref.id,
|
|
42
48
|
type = _ref.type,
|
|
@@ -55,9 +61,13 @@ var EuiNotificationEvent = function EuiNotificationEvent(_ref) {
|
|
|
55
61
|
onClickTitle = _ref.onClickTitle,
|
|
56
62
|
onClickPrimaryAction = _ref.onClickPrimaryAction,
|
|
57
63
|
_ref$headingLevel = _ref.headingLevel,
|
|
58
|
-
headingLevel = _ref$headingLevel === void 0 ? 'h2' : _ref$headingLevel
|
|
64
|
+
headingLevel = _ref$headingLevel === void 0 ? 'h2' : _ref$headingLevel,
|
|
65
|
+
className = _ref.className,
|
|
66
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
67
|
+
|
|
59
68
|
var classes = (0, _classnames.default)('euiNotificationEvent', {
|
|
60
|
-
'euiNotificationEvent--withReadState': typeof isRead === 'boolean'
|
|
69
|
+
'euiNotificationEvent--withReadState': typeof isRead === 'boolean',
|
|
70
|
+
className: className
|
|
61
71
|
});
|
|
62
72
|
var classesTitle = (0, _classnames.default)('euiNotificationEvent__title', {
|
|
63
73
|
'euiNotificationEvent__title--isRead': isRead
|
|
@@ -68,11 +78,11 @@ var EuiNotificationEvent = function EuiNotificationEvent(_ref) {
|
|
|
68
78
|
className: classesTitle,
|
|
69
79
|
'data-test-subj': "".concat(id, "-notificationEventTitle")
|
|
70
80
|
};
|
|
71
|
-
return (0, _react2.jsx)("article", {
|
|
81
|
+
return (0, _react2.jsx)("article", _extends({
|
|
72
82
|
"aria-labelledby": randomHeadingId,
|
|
73
83
|
className: classes,
|
|
74
84
|
key: id
|
|
75
|
-
}, typeof isRead === 'boolean' && (0, _react2.jsx)("div", {
|
|
85
|
+
}, rest), typeof isRead === 'boolean' && (0, _react2.jsx)("div", {
|
|
76
86
|
className: "euiNotificationEvent__readButton"
|
|
77
87
|
}, !!onRead ? (0, _react2.jsx)(_notification_event_read_button.EuiNotificationEventReadButton, {
|
|
78
88
|
isRead: isRead,
|
|
@@ -172,9 +182,9 @@ EuiNotificationEvent.propTypes = {
|
|
|
172
182
|
* Disables the button and changes the icon to a loading spinner
|
|
173
183
|
*/
|
|
174
184
|
isLoading: _propTypes.default.bool,
|
|
175
|
-
className: _propTypes.default.string,
|
|
176
|
-
"data-test-subj": _propTypes.default.string,
|
|
177
|
-
css: _propTypes.default.any,
|
|
185
|
+
className: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.string]),
|
|
186
|
+
"data-test-subj": _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.string]),
|
|
187
|
+
css: _propTypes.default.oneOfType([_propTypes.default.any, _propTypes.default.any]),
|
|
178
188
|
|
|
179
189
|
/**
|
|
180
190
|
* A unique identifier
|
|
@@ -265,7 +275,16 @@ EuiNotificationEvent.propTypes = {
|
|
|
265
275
|
/**
|
|
266
276
|
* Object of props passed to the <span/> wrapping the button's content
|
|
267
277
|
*/
|
|
268
|
-
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* Object of props passed to the <span/> wrapping the button's content
|
|
281
|
+
*/
|
|
282
|
+
contentProps: _propTypes.default.shape({
|
|
283
|
+
className: _propTypes.default.string,
|
|
284
|
+
"aria-label": _propTypes.default.string,
|
|
285
|
+
"data-test-subj": _propTypes.default.string,
|
|
286
|
+
css: _propTypes.default.any
|
|
287
|
+
}),
|
|
269
288
|
|
|
270
289
|
/**
|
|
271
290
|
* Any `type` accepted by EuiIcon
|
|
@@ -69,7 +69,7 @@ var EuiMutationObserver = /*#__PURE__*/function (_EuiObserver) {
|
|
|
69
69
|
exports.EuiMutationObserver = EuiMutationObserver;
|
|
70
70
|
|
|
71
71
|
var makeMutationObserver = function makeMutationObserver(node, _observerOptions, callback) {
|
|
72
|
-
//
|
|
72
|
+
// The MutationObserver polyfill used in Kibana (for Jest) implements
|
|
73
73
|
// an older spec in which specifying `attributeOldValue` or `attributeFilter`
|
|
74
74
|
// without specifying `attributes` results in a `SyntaxError`.
|
|
75
75
|
// The following logic patches the newer spec in which `attributes: true` can be
|
|
@@ -11,17 +11,19 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
13
|
|
|
14
|
-
var _reactDom = require("react-dom");
|
|
15
|
-
|
|
16
14
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
17
15
|
|
|
16
|
+
var _react2 = require("@emotion/react");
|
|
17
|
+
|
|
18
18
|
var _common = require("../common");
|
|
19
19
|
|
|
20
20
|
var _services = require("../../services");
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _portal = require("../portal");
|
|
23
|
+
|
|
24
|
+
var _overlay_mask = require("./overlay_mask.styles");
|
|
23
25
|
|
|
24
|
-
var _excluded = ["className", "children", "
|
|
26
|
+
var _excluded = ["className", "children", "headerZindexLocation", "maskRef", "css"];
|
|
25
27
|
|
|
26
28
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
27
29
|
|
|
@@ -48,80 +50,45 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
48
50
|
var EuiOverlayMask = function EuiOverlayMask(_ref) {
|
|
49
51
|
var className = _ref.className,
|
|
50
52
|
children = _ref.children,
|
|
51
|
-
onClick = _ref.onClick,
|
|
52
53
|
_ref$headerZindexLoca = _ref.headerZindexLocation,
|
|
53
54
|
headerZindexLocation = _ref$headerZindexLoca === void 0 ? 'above' : _ref$headerZindexLoca,
|
|
54
55
|
maskRef = _ref.maskRef,
|
|
55
56
|
css = _ref.css,
|
|
56
57
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
57
58
|
|
|
58
|
-
var
|
|
59
|
-
var combinedMaskRef = (0, _services.useCombinedRefs)([overlayMaskNode, maskRef]);
|
|
60
|
-
|
|
61
|
-
var _useState = (0, _react.useState)(false),
|
|
59
|
+
var _useState = (0, _react.useState)(null),
|
|
62
60
|
_useState2 = _slicedToArray(_useState, 2),
|
|
63
|
-
|
|
64
|
-
|
|
61
|
+
overlayMaskNode = _useState2[0],
|
|
62
|
+
setOverlayMaskNode = _useState2[1];
|
|
65
63
|
|
|
64
|
+
var combinedMaskRef = (0, _services.useCombinedRefs)([setOverlayMaskNode, maskRef]);
|
|
65
|
+
var euiTheme = (0, _services.useEuiTheme)();
|
|
66
|
+
var styles = (0, _overlay_mask.euiOverlayMaskStyles)(euiTheme);
|
|
67
|
+
var cssStyles = [styles.euiOverlayMask, styles["".concat(headerZindexLocation, "Header")]];
|
|
66
68
|
(0, _react.useEffect)(function () {
|
|
67
|
-
|
|
68
|
-
return function () {
|
|
69
|
-
document.body.classList.remove('euiBody-hasOverlayMask');
|
|
70
|
-
};
|
|
71
|
-
}, []);
|
|
72
|
-
(0, _react.useEffect)(function () {
|
|
73
|
-
if (typeof document !== 'undefined') {
|
|
74
|
-
combinedMaskRef(document.createElement('div'));
|
|
75
|
-
}
|
|
76
|
-
}, []); // eslint-disable-line react-hooks/exhaustive-deps
|
|
77
|
-
|
|
78
|
-
(0, _react.useEffect)(function () {
|
|
79
|
-
var portalTarget = overlayMaskNode.current;
|
|
80
|
-
|
|
81
|
-
if (portalTarget) {
|
|
82
|
-
document.body.appendChild(portalTarget);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
setIsPortalTargetReady(true);
|
|
86
|
-
return function () {
|
|
87
|
-
if (portalTarget) {
|
|
88
|
-
document.body.removeChild(portalTarget);
|
|
89
|
-
}
|
|
90
|
-
};
|
|
91
|
-
}, []);
|
|
92
|
-
(0, _react.useEffect)(function () {
|
|
93
|
-
if (!overlayMaskNode.current) return;
|
|
69
|
+
if (!overlayMaskNode) return;
|
|
94
70
|
(0, _common.keysOf)(rest).forEach(function (key) {
|
|
95
71
|
if (typeof rest[key] !== 'string') {
|
|
96
72
|
throw new Error("Unhandled property type. EuiOverlayMask property ".concat(key, " is not a string."));
|
|
97
73
|
}
|
|
98
74
|
|
|
99
|
-
if (overlayMaskNode
|
|
100
|
-
overlayMaskNode.
|
|
75
|
+
if (overlayMaskNode) {
|
|
76
|
+
overlayMaskNode.setAttribute(key, rest[key]);
|
|
101
77
|
}
|
|
102
78
|
});
|
|
103
|
-
}, []); // eslint-disable-line react-hooks/exhaustive-deps
|
|
79
|
+
}, [overlayMaskNode]); // eslint-disable-line react-hooks/exhaustive-deps
|
|
104
80
|
|
|
105
81
|
(0, _react.useEffect)(function () {
|
|
106
|
-
if (!overlayMaskNode
|
|
107
|
-
overlayMaskNode.
|
|
108
|
-
}, [
|
|
109
|
-
(0,
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
}
|
|
117
|
-
};
|
|
118
|
-
|
|
119
|
-
portalTarget.addEventListener('click', listener);
|
|
120
|
-
return function () {
|
|
121
|
-
portalTarget.removeEventListener('click', listener);
|
|
122
|
-
};
|
|
123
|
-
}, [onClick]);
|
|
124
|
-
return isPortalTargetReady ? (0, _react2.jsx)(_react.default.Fragment, null, /*#__PURE__*/(0, _reactDom.createPortal)(children, overlayMaskNode.current)) : null;
|
|
82
|
+
if (!overlayMaskNode) return;
|
|
83
|
+
overlayMaskNode.className = (0, _classnames.default)('euiOverlayMask', className);
|
|
84
|
+
}, [overlayMaskNode, className]);
|
|
85
|
+
return (0, _react2.jsx)(_portal.EuiPortal, {
|
|
86
|
+
portalRef: combinedMaskRef
|
|
87
|
+
}, (0, _react2.jsx)(_react2.Global, {
|
|
88
|
+
styles: _overlay_mask.euiOverlayMaskBodyStyles
|
|
89
|
+
}), (0, _react2.jsx)(_react2.Global, {
|
|
90
|
+
styles: cssStyles
|
|
91
|
+
}), children);
|
|
125
92
|
};
|
|
126
93
|
|
|
127
94
|
exports.EuiOverlayMask = EuiOverlayMask;
|
|
@@ -131,11 +98,6 @@ EuiOverlayMask.propTypes = {
|
|
|
131
98
|
"data-test-subj": _propTypes.default.string,
|
|
132
99
|
css: _propTypes.default.any,
|
|
133
100
|
|
|
134
|
-
/**
|
|
135
|
-
* Function that applies to clicking the mask itself and not the children
|
|
136
|
-
*/
|
|
137
|
-
onClick: _propTypes.default.func,
|
|
138
|
-
|
|
139
101
|
/**
|
|
140
102
|
* ReactNode to render as this component's content
|
|
141
103
|
*/
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.euiOverlayMaskStyles = exports.euiOverlayMaskBodyStyles = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = require("@emotion/react");
|
|
9
|
+
|
|
10
|
+
var _global_styling = require("../../global_styling");
|
|
11
|
+
|
|
12
|
+
var _services = require("../../services");
|
|
13
|
+
|
|
14
|
+
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)."; }
|
|
15
|
+
|
|
16
|
+
var euiOverlayMaskStyles = function euiOverlayMaskStyles(_ref) {
|
|
17
|
+
var euiTheme = _ref.euiTheme;
|
|
18
|
+
return {
|
|
19
|
+
euiOverlayMask: /*#__PURE__*/(0, _react.css)(".euiOverlayMask{position:fixed;", (0, _global_styling.logicalCSS)('top', 0), " ", (0, _global_styling.logicalCSS)('left', 0), " ", (0, _global_styling.logicalCSS)('right', 0), " ", (0, _global_styling.logicalCSS)('bottom', 0), " display:flex;align-items:center;justify-content:center;", (0, _global_styling.logicalCSS)('padding-bottom', '10vh'), ";animation:", _global_styling.euiAnimFadeIn, " ", euiTheme.animation.fast, " ease-in;background:", (0, _services.transparentize)(euiTheme.colors.ink, 0.5), ";};label:euiOverlayMask;"),
|
|
20
|
+
aboveHeader: /*#__PURE__*/(0, _react.css)(".euiOverlayMask{z-index:", euiTheme.levels.mask, ";};label:aboveHeader;"),
|
|
21
|
+
belowHeader: /*#__PURE__*/(0, _react.css)(".euiOverlayMask{z-index:", euiTheme.levels.maskBelowHeader, ";", (0, _global_styling.logicalCSS)('top', "".concat(euiTheme.base * 3, "px")), ";};label:belowHeader;")
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
exports.euiOverlayMaskStyles = euiOverlayMaskStyles;
|
|
26
|
+
var euiOverlayMaskBodyStyles = process.env.NODE_ENV === "production" ? {
|
|
27
|
+
name: "131160-euiOverlayMaskBodyStyles",
|
|
28
|
+
styles: "body{overflow:hidden;};label:euiOverlayMaskBodyStyles;"
|
|
29
|
+
} : {
|
|
30
|
+
name: "131160-euiOverlayMaskBodyStyles",
|
|
31
|
+
styles: "body{overflow:hidden;};label:euiOverlayMaskBodyStyles;",
|
|
32
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
33
|
+
};
|
|
34
|
+
exports.euiOverlayMaskBodyStyles = euiOverlayMaskBodyStyles;
|
|
@@ -33,8 +33,7 @@ var horizontalPositionToClassNameMap = {
|
|
|
33
33
|
};
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
37
|
-
* Use EuiPageSection instead
|
|
36
|
+
* @deprecated Use EuiPageSection instead
|
|
38
37
|
*/
|
|
39
38
|
var EuiPageContent_Deprecated = function EuiPageContent_Deprecated(_ref) {
|
|
40
39
|
var verticalPosition = _ref.verticalPosition,
|
|
@@ -39,8 +39,7 @@ var PADDING_SIZES = (0, _common.keysOf)(paddingSizeToClassNameMap);
|
|
|
39
39
|
exports.PADDING_SIZES = PADDING_SIZES;
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
43
|
-
* Use EuiPageSection instead
|
|
42
|
+
* @deprecated Use EuiPageSection instead
|
|
44
43
|
*/
|
|
45
44
|
var EuiPageContentBody_Deprecated = function EuiPageContentBody_Deprecated(_ref) {
|
|
46
45
|
var children = _ref.children,
|