@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
|
@@ -331,7 +331,12 @@ EuiResizablePanel.propTypes = {
|
|
|
331
331
|
/**
|
|
332
332
|
* Props to add to the wrapping `.euiResizablePanel` div
|
|
333
333
|
*/
|
|
334
|
-
wrapperProps: PropTypes.
|
|
334
|
+
wrapperProps: PropTypes.shape({
|
|
335
|
+
className: PropTypes.string,
|
|
336
|
+
"aria-label": PropTypes.string,
|
|
337
|
+
"data-test-subj": PropTypes.string,
|
|
338
|
+
css: PropTypes.any
|
|
339
|
+
}),
|
|
335
340
|
|
|
336
341
|
/**
|
|
337
342
|
* Padding to add directly to the wrapping `.euiResizablePanel` div
|
|
@@ -255,6 +255,11 @@ EuiSideNav.propTypes = {
|
|
|
255
255
|
* Adds a couple extra #EuiSideNavHeading props and extends the props of EuiTitle that wraps the `heading`
|
|
256
256
|
*/
|
|
257
257
|
headingProps: PropTypes.shape({
|
|
258
|
+
className: PropTypes.string,
|
|
259
|
+
"aria-label": PropTypes.string,
|
|
260
|
+
"data-test-subj": PropTypes.string,
|
|
261
|
+
css: PropTypes.any,
|
|
262
|
+
|
|
258
263
|
/**
|
|
259
264
|
* The actual HTML heading element to wrap the `heading`.
|
|
260
265
|
* Default is `h2`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["onItemClick", "onBlur", "onFocus", "onInput", "onSearch", "status", "append", "tooltipContent", "suggestions", "id", "aria-label", "aria-labelledby", "isVirtualized", "fullWidth", "maxHeight"];
|
|
1
|
+
var _excluded = ["onItemClick", "onBlur", "onFocus", "onInput", "onSearch", "status", "append", "tooltipContent", "suggestions", "id", "aria-label", "aria-labelledby", "isPreFiltered", "isVirtualized", "fullWidth", "maxHeight"];
|
|
2
2
|
|
|
3
3
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
4
4
|
|
|
@@ -72,6 +72,8 @@ export var EuiSuggest = function EuiSuggest(_ref) {
|
|
|
72
72
|
id = _ref.id,
|
|
73
73
|
ariaLabel = _ref['aria-label'],
|
|
74
74
|
labelId = _ref['aria-labelledby'],
|
|
75
|
+
_ref$isPreFiltered = _ref.isPreFiltered,
|
|
76
|
+
isPreFiltered = _ref$isPreFiltered === void 0 ? false : _ref$isPreFiltered,
|
|
75
77
|
_ref$isVirtualized = _ref.isVirtualized,
|
|
76
78
|
isVirtualized = _ref$isVirtualized === void 0 ? false : _ref$isVirtualized,
|
|
77
79
|
_ref$fullWidth = _ref.fullWidth,
|
|
@@ -238,6 +240,7 @@ export var EuiSuggest = function EuiSuggest(_ref) {
|
|
|
238
240
|
isVirtualized: isVirtualized
|
|
239
241
|
},
|
|
240
242
|
searchable: true,
|
|
243
|
+
isPreFiltered: isPreFiltered,
|
|
241
244
|
searchProps: _objectSpread({
|
|
242
245
|
id: id,
|
|
243
246
|
append: appendArray.length ? appendArray : undefined,
|
|
@@ -363,5 +366,11 @@ EuiSuggest.propTypes = {
|
|
|
363
366
|
* Default is `60vh`
|
|
364
367
|
*/
|
|
365
368
|
maxHeight: PropTypes.any,
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* Control whether or not options get filtered internally or if consumer will filter.
|
|
372
|
+
* Default `false`
|
|
373
|
+
*/
|
|
374
|
+
isPreFiltered: PropTypes.bool,
|
|
366
375
|
"aria-labelledby": PropTypes.oneOfType([PropTypes.string, PropTypes.string.isRequired])
|
|
367
376
|
};
|
|
@@ -203,9 +203,8 @@ EuiTableRowCell.propTypes = {
|
|
|
203
203
|
showOnHover: PropTypes.bool,
|
|
204
204
|
|
|
205
205
|
/**
|
|
206
|
-
*
|
|
207
|
-
*
|
|
208
|
-
* `.eui-textBreakWord`.
|
|
206
|
+
* Creates a text wrapper around cell content that helps word break or truncate
|
|
207
|
+
* long text correctly.
|
|
209
208
|
*/
|
|
210
209
|
textOnly: PropTypes.bool,
|
|
211
210
|
|
|
@@ -226,9 +225,8 @@ EuiTableRowCell.propTypes = {
|
|
|
226
225
|
showOnHover: PropTypes.bool,
|
|
227
226
|
|
|
228
227
|
/**
|
|
229
|
-
*
|
|
230
|
-
*
|
|
231
|
-
* `.eui-textBreakWord`.
|
|
228
|
+
* Creates a text wrapper around cell content that helps word break or truncate
|
|
229
|
+
* long text correctly.
|
|
232
230
|
*/
|
|
233
231
|
textOnly: PropTypes.bool,
|
|
234
232
|
|
|
@@ -136,24 +136,6 @@ export var EuiTabbedContent = /*#__PURE__*/function (_Component) {
|
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
_createClass(EuiTabbedContent, [{
|
|
139
|
-
key: "componentDidMount",
|
|
140
|
-
value: function componentDidMount() {
|
|
141
|
-
// IE11 doesn't support the `relatedTarget` event property for blur events
|
|
142
|
-
// but does add it for focusout. React doesn't support `onFocusOut` so here we are.
|
|
143
|
-
if (this.tabsRef.current) {
|
|
144
|
-
// Current short-term solution for event listener (see https://github.com/elastic/eui/pull/2717)
|
|
145
|
-
this.tabsRef.current.addEventListener('focusout', this.removeFocus);
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
}, {
|
|
149
|
-
key: "componentWillUnmount",
|
|
150
|
-
value: function componentWillUnmount() {
|
|
151
|
-
if (this.tabsRef.current) {
|
|
152
|
-
// Current short-term solution for event listener (see https://github.com/elastic/eui/pull/2717)
|
|
153
|
-
this.tabsRef.current.removeEventListener('focusout', this.removeFocus);
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
}, {
|
|
157
139
|
key: "render",
|
|
158
140
|
value: function render() {
|
|
159
141
|
var _this2 = this;
|
|
@@ -182,7 +164,8 @@ export var EuiTabbedContent = /*#__PURE__*/function (_Component) {
|
|
|
182
164
|
ref: this.tabsRef,
|
|
183
165
|
expand: expand,
|
|
184
166
|
size: size,
|
|
185
|
-
onFocus: this.initializeFocus
|
|
167
|
+
onFocus: this.initializeFocus,
|
|
168
|
+
onBlur: this.removeFocus
|
|
186
169
|
}, tabs.map(function (tab) {
|
|
187
170
|
var id = tab.id,
|
|
188
171
|
name = tab.name,
|
|
@@ -2,10 +2,6 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2
2
|
|
|
3
3
|
var _excluded = ["children", "className", "anchorClassName", "anchorProps", "content", "title", "delay", "display"];
|
|
4
4
|
|
|
5
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
6
|
-
|
|
7
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
8
|
-
|
|
9
5
|
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); }
|
|
10
6
|
|
|
11
7
|
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; }
|
|
@@ -41,11 +37,13 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
41
37
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
42
38
|
* Side Public License, v 1.
|
|
43
39
|
*/
|
|
44
|
-
import React, { Component
|
|
40
|
+
import React, { Component } from 'react';
|
|
45
41
|
import PropTypes from "prop-types";
|
|
46
42
|
import classNames from 'classnames';
|
|
47
43
|
import { keysOf } from '../common';
|
|
48
44
|
import { EuiPortal } from '../portal';
|
|
45
|
+
import { EuiToolTipAnchor } from './tool_tip_anchor';
|
|
46
|
+
import { EuiToolTipArrow } from './tool_tip_arrow';
|
|
49
47
|
import { EuiToolTipPopover } from './tool_tip_popover';
|
|
50
48
|
import { enqueueStateChange } from '../../services/react';
|
|
51
49
|
import { findPopoverPosition, htmlIdGenerator } from '../../services';
|
|
@@ -132,16 +130,12 @@ export var EuiToolTip = /*#__PURE__*/function (_Component) {
|
|
|
132
130
|
}
|
|
133
131
|
});
|
|
134
132
|
|
|
133
|
+
_defineProperty(_assertThisInitialized(_this), "setAnchorRef", function (ref) {
|
|
134
|
+
return _this.anchor = ref;
|
|
135
|
+
});
|
|
136
|
+
|
|
135
137
|
_defineProperty(_assertThisInitialized(_this), "setPopoverRef", function (ref) {
|
|
136
|
-
_this.popover = ref;
|
|
137
|
-
// any previous knowledge about its size
|
|
138
|
-
|
|
139
|
-
if (ref == null) {
|
|
140
|
-
_this.setState({
|
|
141
|
-
toolTipStyles: DEFAULT_TOOLTIP_STYLES,
|
|
142
|
-
arrowStyles: undefined
|
|
143
|
-
});
|
|
144
|
-
}
|
|
138
|
+
return _this.popover = ref;
|
|
145
139
|
});
|
|
146
140
|
|
|
147
141
|
_defineProperty(_assertThisInitialized(_this), "showToolTip", function () {
|
|
@@ -207,7 +201,9 @@ export var EuiToolTip = /*#__PURE__*/function (_Component) {
|
|
|
207
201
|
enqueueStateChange(function () {
|
|
208
202
|
if (_this._isMounted) {
|
|
209
203
|
_this.setState({
|
|
210
|
-
visible: false
|
|
204
|
+
visible: false,
|
|
205
|
+
toolTipStyles: DEFAULT_TOOLTIP_STYLES,
|
|
206
|
+
arrowStyles: undefined
|
|
211
207
|
});
|
|
212
208
|
}
|
|
213
209
|
});
|
|
@@ -267,8 +263,6 @@ export var EuiToolTip = /*#__PURE__*/function (_Component) {
|
|
|
267
263
|
}, {
|
|
268
264
|
key: "render",
|
|
269
265
|
value: function render() {
|
|
270
|
-
var _this2 = this;
|
|
271
|
-
|
|
272
266
|
var _this$props = this.props,
|
|
273
267
|
children = _this$props.children,
|
|
274
268
|
className = _this$props.className,
|
|
@@ -284,57 +278,39 @@ export var EuiToolTip = /*#__PURE__*/function (_Component) {
|
|
|
284
278
|
arrowStyles = _this$state.arrowStyles,
|
|
285
279
|
id = _this$state.id,
|
|
286
280
|
toolTipStyles = _this$state.toolTipStyles,
|
|
287
|
-
visible = _this$state.visible
|
|
281
|
+
visible = _this$state.visible,
|
|
282
|
+
calculatedPosition = _this$state.calculatedPosition;
|
|
288
283
|
var classes = classNames('euiToolTip', positionsToClassNameMap[this.state.calculatedPosition], className);
|
|
289
|
-
var anchorClasses = classNames(
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
className: classes,
|
|
295
|
-
style: toolTipStyles,
|
|
296
|
-
positionToolTip: this.positionToolTip,
|
|
297
|
-
popoverRef: this.setPopoverRef,
|
|
298
|
-
title: title,
|
|
299
|
-
id: id,
|
|
300
|
-
role: "tooltip"
|
|
301
|
-
}, rest), ___EmotionJSX("div", {
|
|
302
|
-
style: arrowStyles,
|
|
303
|
-
className: "euiToolTip__arrow"
|
|
304
|
-
}), ___EmotionJSX(EuiResizeObserver, {
|
|
305
|
-
onResize: this.positionToolTip
|
|
306
|
-
}, function (resizeRef) {
|
|
307
|
-
return ___EmotionJSX("div", {
|
|
308
|
-
ref: resizeRef
|
|
309
|
-
}, content);
|
|
310
|
-
})));
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
var anchor = // eslint-disable-next-line jsx-a11y/mouse-events-have-key-events
|
|
314
|
-
___EmotionJSX("span", _extends({
|
|
315
|
-
ref: function ref(anchor) {
|
|
316
|
-
return _this2.anchor = anchor;
|
|
317
|
-
}
|
|
318
|
-
}, anchorProps, {
|
|
319
|
-
className: anchorClasses,
|
|
284
|
+
var anchorClasses = classNames(anchorClassName, anchorProps === null || anchorProps === void 0 ? void 0 : anchorProps.className);
|
|
285
|
+
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(EuiToolTipAnchor, _extends({}, anchorProps, {
|
|
286
|
+
ref: this.setAnchorRef,
|
|
287
|
+
onBlur: this.onBlur,
|
|
288
|
+
onFocus: this.onFocus,
|
|
320
289
|
onMouseOver: this.showToolTip,
|
|
321
|
-
onMouseOut: this.onMouseOut
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
})
|
|
336
|
-
|
|
337
|
-
|
|
290
|
+
onMouseOut: this.onMouseOut,
|
|
291
|
+
id: this.state.id,
|
|
292
|
+
className: anchorClasses,
|
|
293
|
+
display: display,
|
|
294
|
+
isVisible: visible
|
|
295
|
+
}), children), visible && (content || title) && ___EmotionJSX(EuiPortal, null, ___EmotionJSX(EuiToolTipPopover, _extends({
|
|
296
|
+
className: classes,
|
|
297
|
+
style: toolTipStyles,
|
|
298
|
+
positionToolTip: this.positionToolTip,
|
|
299
|
+
popoverRef: this.setPopoverRef,
|
|
300
|
+
title: title,
|
|
301
|
+
id: id,
|
|
302
|
+
role: "tooltip",
|
|
303
|
+
calculatedPosition: calculatedPosition
|
|
304
|
+
}, rest), ___EmotionJSX(EuiToolTipArrow, {
|
|
305
|
+
style: arrowStyles,
|
|
306
|
+
className: "euiToolTip__arrow"
|
|
307
|
+
}), ___EmotionJSX(EuiResizeObserver, {
|
|
308
|
+
onResize: this.positionToolTip
|
|
309
|
+
}, function (resizeRef) {
|
|
310
|
+
return ___EmotionJSX("div", {
|
|
311
|
+
ref: resizeRef
|
|
312
|
+
}, content);
|
|
313
|
+
}))));
|
|
338
314
|
}
|
|
339
315
|
}]);
|
|
340
316
|
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
var _templateObject, _templateObject2;
|
|
2
|
+
|
|
3
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
4
|
+
|
|
5
|
+
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)."; }
|
|
6
|
+
|
|
7
|
+
/*
|
|
8
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
9
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
10
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
11
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
12
|
+
* Side Public License, v 1.
|
|
13
|
+
*/
|
|
14
|
+
import { css, keyframes } from '@emotion/react';
|
|
15
|
+
import { logicalCSS, logicalSizeCSS, euiFontSize } from '../../global_styling';
|
|
16
|
+
import { COLOR_MODES_STANDARD, tint, shade } from '../../services';
|
|
17
|
+
import { euiShadow } from '../../themes/amsterdam';
|
|
18
|
+
export var euiToolTipBackgroundColor = function euiToolTipBackgroundColor(euiTheme, colorMode) {
|
|
19
|
+
return colorMode === COLOR_MODES_STANDARD.dark ? shade(euiTheme.colors.emptyShade, 1) : tint(euiTheme.colors.fullShade, 0.25);
|
|
20
|
+
};
|
|
21
|
+
export var euiToolTipBorderColor = function euiToolTipBorderColor(euiTheme, colorMode) {
|
|
22
|
+
return colorMode === COLOR_MODES_STANDARD.dark ? shade(euiTheme.colors.fullShade, 0.8) : tint(euiTheme.colors.fullShade, 0.35);
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
var euiToolTipAnimationVertical = function euiToolTipAnimationVertical(size) {
|
|
26
|
+
return keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 0% {\n opacity: 0;\n transform: translateY(", ");\n }\n\n 100% {\n opacity: 1;\n transform: translateY(0);\n }\n"])), size);
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
var euiToolTipAnimationHorizontal = function euiToolTipAnimationHorizontal(size) {
|
|
30
|
+
return keyframes(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n 0% {\n opacity: 0;\n transform: translateX(", ");\n }\n\n 100% {\n opacity: 1;\n transform: translateX(0);\n }\n"])), size);
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export var euiToolTipStyles = function euiToolTipStyles(euiThemeContext) {
|
|
34
|
+
var euiTheme = euiThemeContext.euiTheme,
|
|
35
|
+
colorMode = euiThemeContext.colorMode;
|
|
36
|
+
var animationTiming = "".concat(euiTheme.animation.slow, " ease-out 0s forwards");
|
|
37
|
+
/*
|
|
38
|
+
* 1. Shift arrow 1px more than half its size to account for border radius
|
|
39
|
+
*/
|
|
40
|
+
|
|
41
|
+
var arrowSize = euiTheme.size.m;
|
|
42
|
+
var arrowSizeInt = parseInt(arrowSize, 10);
|
|
43
|
+
var arrowPlusSize = "".concat((arrowSizeInt / 2 + 1) * -1, "px");
|
|
44
|
+
/* 1 */
|
|
45
|
+
|
|
46
|
+
var arrowMinusSize = "".concat((arrowSizeInt / 2 - 1) * -1, "px");
|
|
47
|
+
/* 1 */
|
|
48
|
+
|
|
49
|
+
return {
|
|
50
|
+
// Base
|
|
51
|
+
euiToolTip: /*#__PURE__*/css(euiShadow(euiThemeContext), ";border-radius:", euiTheme.border.radius.medium, ";background-color:", euiToolTipBackgroundColor(euiTheme, colorMode), ";color:", euiTheme.colors.ghost, ";z-index:", euiTheme.levels.toast, ";", logicalCSS('max-width', '256px'), " overflow-wrap:break-word;padding:", euiTheme.size.s, ";", euiFontSize(euiThemeContext, 's'), ";position:absolute;[class*='euiHorizontalRule']{background-color:", euiToolTipBorderColor(euiTheme, colorMode), ";};label:euiToolTip;"),
|
|
52
|
+
// Sizes
|
|
53
|
+
s: /*#__PURE__*/css(euiFontSize(euiThemeContext, 'xs'), ";;label:s;"),
|
|
54
|
+
// Positions
|
|
55
|
+
top: /*#__PURE__*/css("animation:", euiToolTipAnimationVertical("-".concat(euiTheme.size.base)), " ", animationTiming, ";;label:top;"),
|
|
56
|
+
bottom: /*#__PURE__*/css("animation:", euiToolTipAnimationVertical(euiTheme.size.base), " ", animationTiming, ";[class*='euiToolTip__arrow']{transform:translateY(", arrowMinusSize, ") rotateZ(45deg);};label:bottom;"),
|
|
57
|
+
left: /*#__PURE__*/css("animation:", euiToolTipAnimationHorizontal("-".concat(euiTheme.size.base)), " ", animationTiming, ";[class*='euiToolTip__arrow']{transform:translateX(", arrowPlusSize, ") rotateZ(45deg);};label:left;"),
|
|
58
|
+
right: /*#__PURE__*/css("animation:", euiToolTipAnimationHorizontal(euiTheme.size.base), " ", animationTiming, ";[class*='euiToolTip__arrow']{transform:translateX(", arrowMinusSize, ") rotateZ(45deg);};label:right;"),
|
|
59
|
+
// Elements
|
|
60
|
+
euiToolTip__arrow: /*#__PURE__*/css("content:'';position:absolute;transform-origin:center;border-radius:2px;background-color:", euiToolTipBackgroundColor(euiTheme, colorMode), ";", logicalSizeCSS(arrowSize, arrowSize), ";transform:translateY(", arrowPlusSize, ") rotateZ(45deg);;label:euiToolTip__arrow;")
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
export var euiToolTipPopoverStyles = function euiToolTipPopoverStyles(_ref4) {
|
|
64
|
+
var euiTheme = _ref4.euiTheme,
|
|
65
|
+
colorMode = _ref4.colorMode;
|
|
66
|
+
return {
|
|
67
|
+
// Elements
|
|
68
|
+
euiToolTip__title: /*#__PURE__*/css("font-weight:", euiTheme.font.weight.bold, ";", logicalCSS('border-bottom', "solid ".concat(euiTheme.border.width.thin, " ").concat(euiToolTipBorderColor(euiTheme, colorMode))), ";", logicalCSS('padding-bottom', euiTheme.size.xs), ";", logicalCSS('margin-bottom', euiTheme.size.xs), ";;label:euiToolTip__title;")
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
var _ref = process.env.NODE_ENV === "production" ? {
|
|
73
|
+
name: "fzilnk-inlineBlock",
|
|
74
|
+
styles: "display:inline-block;label:inlineBlock;"
|
|
75
|
+
} : {
|
|
76
|
+
name: "fzilnk-inlineBlock",
|
|
77
|
+
styles: "display:inline-block;label:inlineBlock;",
|
|
78
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
var _ref2 = process.env.NODE_ENV === "production" ? {
|
|
82
|
+
name: "14aceuy-block",
|
|
83
|
+
styles: "display:block;label:block;"
|
|
84
|
+
} : {
|
|
85
|
+
name: "14aceuy-block",
|
|
86
|
+
styles: "display:block;label:block;",
|
|
87
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
var _ref3 = process.env.NODE_ENV === "production" ? {
|
|
91
|
+
name: "1s3i3p5-euiToolTipAnchor",
|
|
92
|
+
styles: "*[disabled]{pointer-events:none;};label:euiToolTipAnchor;"
|
|
93
|
+
} : {
|
|
94
|
+
name: "1s3i3p5-euiToolTipAnchor",
|
|
95
|
+
styles: "*[disabled]{pointer-events:none;};label:euiToolTipAnchor;",
|
|
96
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
export var euiToolTipAnchorStyles = function euiToolTipAnchorStyles() {
|
|
100
|
+
return {
|
|
101
|
+
// Elements
|
|
102
|
+
euiToolTipAnchor: _ref3,
|
|
103
|
+
// Variants
|
|
104
|
+
block: _ref2,
|
|
105
|
+
inlineBlock: _ref
|
|
106
|
+
};
|
|
107
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
var _excluded = ["onBlur", "onFocus", "onMouseOver", "onMouseOut", "id", "className", "children", "display", "isVisible"];
|
|
2
|
+
|
|
3
|
+
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); }
|
|
4
|
+
|
|
5
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
6
|
+
|
|
7
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
8
|
+
|
|
9
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
10
|
+
|
|
11
|
+
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; }
|
|
12
|
+
|
|
13
|
+
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; }
|
|
14
|
+
|
|
15
|
+
/*
|
|
16
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
17
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
18
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
19
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
20
|
+
* Side Public License, v 1.
|
|
21
|
+
*/
|
|
22
|
+
import React, { cloneElement, forwardRef } from 'react';
|
|
23
|
+
import PropTypes from "prop-types";
|
|
24
|
+
import classNames from 'classnames';
|
|
25
|
+
import { euiToolTipAnchorStyles } from './tool_tip.styles';
|
|
26
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
27
|
+
export var EuiToolTipAnchor = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
28
|
+
var _onBlur = _ref.onBlur,
|
|
29
|
+
_onFocus = _ref.onFocus,
|
|
30
|
+
onMouseOver = _ref.onMouseOver,
|
|
31
|
+
onMouseOut = _ref.onMouseOut,
|
|
32
|
+
id = _ref.id,
|
|
33
|
+
className = _ref.className,
|
|
34
|
+
children = _ref.children,
|
|
35
|
+
display = _ref.display,
|
|
36
|
+
isVisible = _ref.isVisible,
|
|
37
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
38
|
+
|
|
39
|
+
var anchorCss = euiToolTipAnchorStyles();
|
|
40
|
+
var cssStyles = [anchorCss.euiToolTipAnchor, anchorCss[display]];
|
|
41
|
+
var classes = classNames('euiToolTipAnchor', className);
|
|
42
|
+
return (// eslint-disable-next-line jsx-a11y/mouse-events-have-key-events
|
|
43
|
+
___EmotionJSX("span", _extends({
|
|
44
|
+
ref: ref
|
|
45
|
+
}, rest, {
|
|
46
|
+
css: cssStyles,
|
|
47
|
+
className: classes,
|
|
48
|
+
onMouseOver: onMouseOver,
|
|
49
|
+
onMouseOut: onMouseOut
|
|
50
|
+
}), /*#__PURE__*/cloneElement(children, _objectSpread({
|
|
51
|
+
onFocus: function onFocus(e) {
|
|
52
|
+
_onFocus();
|
|
53
|
+
|
|
54
|
+
children.props.onFocus && children.props.onFocus(e);
|
|
55
|
+
},
|
|
56
|
+
onBlur: function onBlur(e) {
|
|
57
|
+
_onBlur();
|
|
58
|
+
|
|
59
|
+
children.props.onBlur && children.props.onBlur(e);
|
|
60
|
+
}
|
|
61
|
+
}, isVisible && {
|
|
62
|
+
'aria-describedby': id
|
|
63
|
+
})))
|
|
64
|
+
);
|
|
65
|
+
});
|
|
66
|
+
EuiToolTipAnchor.propTypes = {
|
|
67
|
+
onBlur: PropTypes.func.isRequired,
|
|
68
|
+
onFocus: PropTypes.func.isRequired,
|
|
69
|
+
children: PropTypes.element.isRequired,
|
|
70
|
+
isVisible: PropTypes.bool.isRequired,
|
|
71
|
+
display: PropTypes.oneOf(["block", "inlineBlock"]).isRequired
|
|
72
|
+
};
|
|
73
|
+
EuiToolTipAnchor.displayName = 'EuiToolTipAnchor';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
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); }
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
5
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
6
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
7
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
8
|
+
* Side Public License, v 1.
|
|
9
|
+
*/
|
|
10
|
+
import React from 'react';
|
|
11
|
+
import { useEuiTheme } from '../../services';
|
|
12
|
+
import { euiToolTipStyles } from './tool_tip.styles';
|
|
13
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
14
|
+
export var EuiToolTipArrow = function EuiToolTipArrow(props) {
|
|
15
|
+
var euiTheme = useEuiTheme();
|
|
16
|
+
var toolTipCss = euiToolTipStyles(euiTheme);
|
|
17
|
+
return ___EmotionJSX("div", _extends({
|
|
18
|
+
css: [toolTipCss.euiToolTip__arrow, ";label:EuiToolTipArrow;"]
|
|
19
|
+
}, props));
|
|
20
|
+
};
|