@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,8 +24,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
24
24
|
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; }
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
28
|
-
* Use EuiPageHeader instead
|
|
27
|
+
* @deprecated Use EuiPageHeader instead
|
|
29
28
|
*/
|
|
30
29
|
var EuiPageContentHeader_Deprecated = function EuiPageContentHeader_Deprecated(_ref) {
|
|
31
30
|
var children = _ref.children,
|
|
@@ -24,8 +24,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
24
24
|
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; }
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
28
|
-
* Use EuiPageHeader instead
|
|
27
|
+
* @deprecated Use EuiPageHeader instead
|
|
29
28
|
*/
|
|
30
29
|
var EuiPageContentHeaderSection_Deprecated = function EuiPageContentHeaderSection_Deprecated(_ref) {
|
|
31
30
|
var children = _ref.children,
|
|
@@ -19,7 +19,7 @@ var _global_styling = require("../../../global_styling");
|
|
|
19
19
|
|
|
20
20
|
var _react2 = require("@emotion/react");
|
|
21
21
|
|
|
22
|
-
var _excluded = ["children", "alignment", "restrictWidth", "bottomBorder", "paddingSize", "color", "grow", "contentProps"];
|
|
22
|
+
var _excluded = ["children", "alignment", "restrictWidth", "bottomBorder", "paddingSize", "color", "grow", "contentProps", "component"];
|
|
23
23
|
|
|
24
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
25
|
|
|
@@ -43,6 +43,8 @@ var EuiPageSection = function EuiPageSection(_ref) {
|
|
|
43
43
|
_ref$grow = _ref.grow,
|
|
44
44
|
grow = _ref$grow === void 0 ? false : _ref$grow,
|
|
45
45
|
contentProps = _ref.contentProps,
|
|
46
|
+
_ref$component = _ref.component,
|
|
47
|
+
Component = _ref$component === void 0 ? 'section' : _ref$component,
|
|
46
48
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
47
49
|
|
|
48
50
|
// Set max-width as a style prop
|
|
@@ -55,7 +57,7 @@ var EuiPageSection = function EuiPageSection(_ref) {
|
|
|
55
57
|
var cssStyles = [styles.euiPageSection, grow && styles.grow, inlinePadding[paddingSize], bottomBorder === 'extended' && styles.border, alignment && styles[alignment], colors[color]];
|
|
56
58
|
var contentStyles = (0, _page_section.euiPageSectionContentStyles)();
|
|
57
59
|
var cssContentStyles = [contentStyles.euiPageSection__content, blockPadding[paddingSize], bottomBorder === true && styles.border, alignment.toLowerCase().includes('center') && contentStyles.center, restrictWidth && contentStyles.restrictWidth];
|
|
58
|
-
return (0, _react2.jsx)(
|
|
60
|
+
return (0, _react2.jsx)(Component, _extends({
|
|
59
61
|
css: cssStyles
|
|
60
62
|
}, rest), (0, _react2.jsx)("div", _extends({
|
|
61
63
|
css: cssContentStyles
|
|
@@ -110,5 +112,15 @@ EuiPageSection.propTypes = {
|
|
|
110
112
|
/**
|
|
111
113
|
* Passed down to the div wrapper of the section contents
|
|
112
114
|
*/
|
|
113
|
-
contentProps: _propTypes.default.
|
|
115
|
+
contentProps: _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
|
+
}),
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Sets which HTML element to render.
|
|
124
|
+
*/
|
|
125
|
+
component: _propTypes.default.oneOfType([_propTypes.default.any.isRequired, _propTypes.default.elementType.isRequired])
|
|
114
126
|
};
|
|
@@ -35,8 +35,7 @@ var PADDING_SIZES = (0, _common.keysOf)(paddingSizeToClassNameMap);
|
|
|
35
35
|
exports.PADDING_SIZES = PADDING_SIZES;
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
39
|
-
* Use the new EuiPageSidebar instead
|
|
38
|
+
* @deprecated Use the new EuiPageSidebar in page/page_sidebar instead
|
|
40
39
|
*/
|
|
41
40
|
var EuiPageSideBar_Deprecated = function EuiPageSideBar_Deprecated(_ref) {
|
|
42
41
|
var children = _ref.children,
|
|
@@ -76,13 +76,17 @@ var EuiPageSidebar = function EuiPageSidebar(_ref) {
|
|
|
76
76
|
setInlineStyles = _useState2[1];
|
|
77
77
|
|
|
78
78
|
(0, _react.useEffect)(function () {
|
|
79
|
+
var updatedStyles = _objectSpread(_objectSpread({}, style), (0, _global_styling.logicalStyle)('min-width', isResponding ? '100%' : minWidth));
|
|
80
|
+
|
|
79
81
|
if (sticky) {
|
|
80
82
|
var _document$body$datase;
|
|
81
83
|
|
|
82
84
|
var euiHeaderFixedCounter = Number((_document$body$datase = document.body.dataset.fixedHeaders) !== null && _document$body$datase !== void 0 ? _document$body$datase : 0);
|
|
83
85
|
var offset = _typeof(sticky) === 'object' ? sticky === null || sticky === void 0 ? void 0 : sticky.offset : themeContext.euiTheme.base * 3 * euiHeaderFixedCounter;
|
|
84
|
-
|
|
86
|
+
updatedStyles = _objectSpread(_objectSpread(_objectSpread({}, updatedStyles), (0, _global_styling.logicalStyle)('top', offset)), (0, _global_styling.logicalStyle)('max-height', "calc(100vh - ".concat(offset, "px)")));
|
|
85
87
|
}
|
|
88
|
+
|
|
89
|
+
setInlineStyles(updatedStyles);
|
|
86
90
|
}, [style, sticky, themeContext.euiTheme.base, isResponding, minWidth]);
|
|
87
91
|
return (0, _react2.jsx)("div", _extends({
|
|
88
92
|
className: className,
|
|
@@ -53,7 +53,9 @@ exports.TEMPLATES = TEMPLATES;
|
|
|
53
53
|
/**
|
|
54
54
|
* This component has been deprecated in favor of the new
|
|
55
55
|
* namespaced version. You can still import this component
|
|
56
|
-
*
|
|
56
|
+
* until August 2023 by importing `as EuiPageTemplate`.
|
|
57
|
+
*
|
|
58
|
+
* @deprecated use EuiPageTemplate from page_template/page_template instead
|
|
57
59
|
*/
|
|
58
60
|
var EuiPageTemplate_Deprecated = function EuiPageTemplate_Deprecated(_ref) {
|
|
59
61
|
var _pageBodyProps2;
|
|
@@ -112,6 +112,16 @@ _EuiPageEmptyPrompt.propTypes = {
|
|
|
112
112
|
/**
|
|
113
113
|
* Passed down to the div wrapper of the section contents
|
|
114
114
|
*/
|
|
115
|
-
contentProps: _propTypes.default.
|
|
115
|
+
contentProps: _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
|
+
}),
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Sets which HTML element to render.
|
|
124
|
+
*/
|
|
125
|
+
component: _propTypes.default.oneOfType([_propTypes.default.any.isRequired, _propTypes.default.elementType.isRequired]),
|
|
116
126
|
panelled: _propTypes.default.bool
|
|
117
127
|
};
|
|
@@ -321,7 +321,17 @@ _EuiPageSection.propTypes = {
|
|
|
321
321
|
/**
|
|
322
322
|
* Passed down to the div wrapper of the section contents
|
|
323
323
|
*/
|
|
324
|
-
contentProps: _propTypes.default.
|
|
324
|
+
contentProps: _propTypes.default.shape({
|
|
325
|
+
className: _propTypes.default.string,
|
|
326
|
+
"aria-label": _propTypes.default.string,
|
|
327
|
+
"data-test-subj": _propTypes.default.string,
|
|
328
|
+
css: _propTypes.default.any
|
|
329
|
+
}),
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* Sets which HTML element to render.
|
|
333
|
+
*/
|
|
334
|
+
component: _propTypes.default.oneOfType([_propTypes.default.any.isRequired, _propTypes.default.elementType.isRequired])
|
|
325
335
|
};
|
|
326
336
|
|
|
327
337
|
var _EuiPageHeader = function _EuiPageHeader(props) {
|
|
@@ -370,7 +380,13 @@ _EuiPageEmptyPrompt.propTypes = {
|
|
|
370
380
|
paddingSize: _propTypes.default.any,
|
|
371
381
|
alignment: _propTypes.default.any,
|
|
372
382
|
grow: _propTypes.default.bool,
|
|
373
|
-
contentProps: _propTypes.default.
|
|
383
|
+
contentProps: _propTypes.default.shape({
|
|
384
|
+
className: _propTypes.default.string,
|
|
385
|
+
"aria-label": _propTypes.default.string,
|
|
386
|
+
"data-test-subj": _propTypes.default.string,
|
|
387
|
+
css: _propTypes.default.any
|
|
388
|
+
}),
|
|
389
|
+
component: _propTypes.default.oneOfType([_propTypes.default.any.isRequired, _propTypes.default.elementType.isRequired]),
|
|
374
390
|
panelled: _propTypes.default.bool
|
|
375
391
|
};
|
|
376
392
|
|
|
@@ -23,6 +23,10 @@ var _services = require("../../services");
|
|
|
23
23
|
|
|
24
24
|
var _accessibility = require("../accessibility");
|
|
25
25
|
|
|
26
|
+
var _pagination = require("./pagination.styles");
|
|
27
|
+
|
|
28
|
+
var _pagination_button2 = require("./pagination_button.styles");
|
|
29
|
+
|
|
26
30
|
var _react2 = require("@emotion/react");
|
|
27
31
|
|
|
28
32
|
var _excluded = ["className", "pageCount", "activePage", "onPageClick", "compressed", "aria-controls", "responsive"];
|
|
@@ -58,7 +62,13 @@ var EuiPagination = function EuiPagination(_ref) {
|
|
|
58
62
|
responsive = _ref$responsive === void 0 ? ['xs', 's'] : _ref$responsive,
|
|
59
63
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
60
64
|
|
|
61
|
-
var isResponsive = (0, _services.useIsWithinBreakpoints)(responsive, !!responsive);
|
|
65
|
+
var isResponsive = (0, _services.useIsWithinBreakpoints)(responsive, !!responsive);
|
|
66
|
+
var euiTheme = (0, _services.useEuiTheme)();
|
|
67
|
+
var paginationStyles = (0, _pagination.euiPaginationStyles)(euiTheme);
|
|
68
|
+
|
|
69
|
+
var _euiPaginationButtonS = (0, _pagination_button2.euiPaginationButtonStyles)(euiTheme),
|
|
70
|
+
isPlaceholder = _euiPaginationButtonS.isPlaceholder; // Force to `compressed` version if specified or within the responsive breakpoints
|
|
71
|
+
|
|
62
72
|
|
|
63
73
|
var compressed = _compressed || isResponsive;
|
|
64
74
|
|
|
@@ -122,6 +132,7 @@ var EuiPagination = function EuiPagination(_ref) {
|
|
|
122
132
|
if (compressed) {
|
|
123
133
|
centerPageCount = (0, _react2.jsx)(_text.EuiText, {
|
|
124
134
|
size: "s",
|
|
135
|
+
css: paginationStyles.euiPagination__compressedText,
|
|
125
136
|
className: "euiPagination__compressedText"
|
|
126
137
|
}, (0, _react2.jsx)(_i18n.EuiI18n, {
|
|
127
138
|
token: "euiPagination.pageOfTotalCompressed",
|
|
@@ -162,7 +173,8 @@ var EuiPagination = function EuiPagination(_ref) {
|
|
|
162
173
|
}, function (firstRangeAriaLabel) {
|
|
163
174
|
return (0, _react2.jsx)("li", {
|
|
164
175
|
"aria-label": firstRangeAriaLabel,
|
|
165
|
-
className: "
|
|
176
|
+
className: "euiPagination__item",
|
|
177
|
+
css: isPlaceholder
|
|
166
178
|
}, "\u2026");
|
|
167
179
|
}));
|
|
168
180
|
} else if (firstPageInRange === 2) {
|
|
@@ -193,7 +205,8 @@ var EuiPagination = function EuiPagination(_ref) {
|
|
|
193
205
|
}, function (lastRangeAriaLabel) {
|
|
194
206
|
return (0, _react2.jsx)("li", {
|
|
195
207
|
"aria-label": lastRangeAriaLabel,
|
|
196
|
-
className: "
|
|
208
|
+
className: "euiPagination__item",
|
|
209
|
+
css: isPlaceholder
|
|
197
210
|
}, "\u2026");
|
|
198
211
|
}));
|
|
199
212
|
}
|
|
@@ -213,6 +226,7 @@ var EuiPagination = function EuiPagination(_ref) {
|
|
|
213
226
|
});
|
|
214
227
|
|
|
215
228
|
centerPageCount = (0, _react2.jsx)("ul", _extends({}, accessibleName, {
|
|
229
|
+
css: paginationStyles.euiPagination__list,
|
|
216
230
|
className: "euiPagination__list"
|
|
217
231
|
}), firstPageButtons, selectablePages, lastPageButtons);
|
|
218
232
|
}
|
|
@@ -237,6 +251,7 @@ var EuiPagination = function EuiPagination(_ref) {
|
|
|
237
251
|
|
|
238
252
|
var accessiblePageCount = "".concat(accessiblePageString(), " ").concat(ofLabel, " ").concat(accessibleCollectionString);
|
|
239
253
|
return (0, _react2.jsx)("nav", _extends({
|
|
254
|
+
css: [paginationStyles.euiPagination, ";label:EuiPagination;"],
|
|
240
255
|
className: classes
|
|
241
256
|
}, rest), (0, _react2.jsx)(_accessibility.EuiScreenReaderOnly, null, (0, _react2.jsx)("span", {
|
|
242
257
|
"aria-atomic": "true",
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.euiPaginationStyles = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = require("@emotion/react");
|
|
9
|
+
|
|
10
|
+
var _global_styling = require("../../global_styling");
|
|
11
|
+
|
|
12
|
+
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)."; }
|
|
13
|
+
|
|
14
|
+
var _ref = process.env.NODE_ENV === "production" ? {
|
|
15
|
+
name: "1dbd2rc-euiPagination__list",
|
|
16
|
+
styles: "display:flex;align-items:baseline;label:euiPagination__list;"
|
|
17
|
+
} : {
|
|
18
|
+
name: "1dbd2rc-euiPagination__list",
|
|
19
|
+
styles: "display:flex;align-items:baseline;label:euiPagination__list;",
|
|
20
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
var euiPaginationStyles = function euiPaginationStyles(euiThemeContext) {
|
|
24
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
25
|
+
return {
|
|
26
|
+
// Base
|
|
27
|
+
euiPagination: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiScrollBarStyles)(euiThemeContext), ";display:flex;align-items:center;", (0, _global_styling.logicalCSSWithFallback)('overflow-y', 'hidden'), ";", (0, _global_styling.logicalCSSWithFallback)('overflow-x', 'auto'), ";;label:euiPagination;"),
|
|
28
|
+
// Elements
|
|
29
|
+
euiPagination__compressedText: /*#__PURE__*/(0, _react.css)("display:inline-flex;align-items:center;line-height:1!important;>span{", (0, _global_styling.logicalCSS)('margin-horizontal', euiTheme.size.s), ";font-weight:", euiTheme.font.weight.semiBold, ";&:first-of-type{color:", euiTheme.colors.primaryText, ";}};label:euiPagination__compressedText;"),
|
|
30
|
+
euiPagination__list: _ref
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
exports.euiPaginationStyles = euiPaginationStyles;
|
|
@@ -15,6 +15,10 @@ var _button = require("../button");
|
|
|
15
15
|
|
|
16
16
|
var _i18n = require("../i18n");
|
|
17
17
|
|
|
18
|
+
var _services = require("../../services");
|
|
19
|
+
|
|
20
|
+
var _pagination_button = require("./pagination_button.styles");
|
|
21
|
+
|
|
18
22
|
var _react2 = require("@emotion/react");
|
|
19
23
|
|
|
20
24
|
var _excluded = ["className", "isActive", "isPlaceholder", "pageIndex", "totalPages"];
|
|
@@ -41,12 +45,13 @@ var EuiPaginationButton = function EuiPaginationButton(_ref) {
|
|
|
41
45
|
totalPages = _ref.totalPages,
|
|
42
46
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
43
47
|
|
|
44
|
-
var
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
+
var euiTheme = (0, _services.useEuiTheme)();
|
|
49
|
+
var styles = (0, _pagination_button.euiPaginationButtonStyles)(euiTheme);
|
|
50
|
+
var paginationButtonCss = [styles.euiPaginationButton, isActive && styles.isActive, isPlaceholder && styles.isPlaceholder];
|
|
51
|
+
var classes = (0, _classnames.default)('euiPaginationButton', className);
|
|
48
52
|
|
|
49
53
|
var props = _objectSpread(_objectSpread(_objectSpread({
|
|
54
|
+
css: paginationButtonCss,
|
|
50
55
|
className: classes,
|
|
51
56
|
size: 's',
|
|
52
57
|
color: 'text',
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.euiPaginationButtonStyles = exports.euiPaginationButtonArrowStyles = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = require("@emotion/react");
|
|
9
|
+
|
|
10
|
+
var _global_styling = require("../../global_styling");
|
|
11
|
+
|
|
12
|
+
var _mixins = require("../../themes/amsterdam/global_styling/mixins");
|
|
13
|
+
|
|
14
|
+
/*
|
|
15
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
16
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
17
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
18
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
19
|
+
* Side Public License, v 1.
|
|
20
|
+
*/
|
|
21
|
+
var euiPaginationButtonStyles = function euiPaginationButtonStyles(euiThemeContext) {
|
|
22
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
23
|
+
var fontSizeS = (0, _global_styling.euiFontSize)(euiThemeContext, 's');
|
|
24
|
+
var halfSizeM = parseInt(euiTheme.size.m.replace('px', '')) / 2;
|
|
25
|
+
var disabled = (0, _mixins.euiButtonEmptyColor)(euiThemeContext, 'disabled'); // && to increase specificity. Can likely be removed once EuiButtonEmpty has been converted.
|
|
26
|
+
|
|
27
|
+
return {
|
|
28
|
+
// Base
|
|
29
|
+
euiPaginationButton: /*#__PURE__*/(0, _react.css)("&&{", fontSizeS, ";padding:0;", (0, _global_styling.logicalTextAlignCSS)('center'), " border-radius:", euiTheme.border.radius.medium, ";outline-offset:-", euiTheme.focus.width, ";};label:euiPaginationButton;"),
|
|
30
|
+
// States
|
|
31
|
+
isActive: /*#__PURE__*/(0, _react.css)("&&{font-weight:", euiTheme.font.weight.bold, ";color:", euiTheme.colors.primary, ";.euiButtonEmpty__content{cursor:default;}&&,&&:hover{text-decoration:underline;}};label:isActive;"),
|
|
32
|
+
isPlaceholder: /*#__PURE__*/(0, _react.css)("&&{align-items:baseline;color:", disabled.color, ";", fontSizeS, ";", (0, _global_styling.logicalCSS)('padding-top', "".concat(halfSizeM, "px")), ";", (0, _global_styling.logicalCSS)('padding-bottom', 0), ";", (0, _global_styling.logicalCSS)('padding-horizontal', euiTheme.size.s), ";", (0, _global_styling.logicalCSS)('height', euiTheme.size.l), ";};label:isPlaceholder;")
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
exports.euiPaginationButtonStyles = euiPaginationButtonStyles;
|
|
37
|
+
|
|
38
|
+
var euiPaginationButtonArrowStyles = function euiPaginationButtonArrowStyles(_ref) {
|
|
39
|
+
var euiTheme = _ref.euiTheme;
|
|
40
|
+
return {
|
|
41
|
+
euiPaginationArrowButton: /*#__PURE__*/(0, _react.css)("outline-offset:-", euiTheme.focus.width, ";;label:euiPaginationArrowButton;")
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
exports.euiPaginationButtonArrowStyles = euiPaginationButtonArrowStyles;
|
|
@@ -17,6 +17,10 @@ var _common = require("../common");
|
|
|
17
17
|
|
|
18
18
|
var _i18n = require("../i18n");
|
|
19
19
|
|
|
20
|
+
var _services = require("../../services");
|
|
21
|
+
|
|
22
|
+
var _pagination_button = require("./pagination_button.styles");
|
|
23
|
+
|
|
20
24
|
var _react2 = require("@emotion/react");
|
|
21
25
|
|
|
22
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -38,6 +42,8 @@ var EuiPaginationButtonArrow = function EuiPaginationButtonArrow(_ref) {
|
|
|
38
42
|
disabled = _ref.disabled,
|
|
39
43
|
ariaControls = _ref.ariaControls,
|
|
40
44
|
onClick = _ref.onClick;
|
|
45
|
+
var euiTheme = (0, _services.useEuiTheme)();
|
|
46
|
+
var styles = (0, _pagination_button.euiPaginationButtonArrowStyles)(euiTheme);
|
|
41
47
|
var labels = {
|
|
42
48
|
first: (0, _i18n.useEuiI18n)('euiPaginationButtonArrow.firstPage', 'First page'),
|
|
43
49
|
previous: (0, _i18n.useEuiI18n)('euiPaginationButtonArrow.previousPage', 'Previous page'),
|
|
@@ -52,6 +58,7 @@ var EuiPaginationButtonArrow = function EuiPaginationButtonArrow(_ref) {
|
|
|
52
58
|
}
|
|
53
59
|
|
|
54
60
|
return (0, _react2.jsx)(_button_icon.EuiButtonIcon, _extends({
|
|
61
|
+
css: styles.euiPaginationArrowButton,
|
|
55
62
|
className: (0, _classnames.default)('euiPaginationArrowButton', className),
|
|
56
63
|
color: "text",
|
|
57
64
|
"aria-label": labels[type],
|
|
@@ -163,5 +163,10 @@ EuiProgress.propTypes = {
|
|
|
163
163
|
/**
|
|
164
164
|
* Object of props passed to the <span/> wrapping the determinate progress's label
|
|
165
165
|
*/
|
|
166
|
-
labelProps: _propTypes.default.
|
|
166
|
+
labelProps: _propTypes.default.shape({
|
|
167
|
+
className: _propTypes.default.string,
|
|
168
|
+
"aria-label": _propTypes.default.string,
|
|
169
|
+
"data-test-subj": _propTypes.default.string,
|
|
170
|
+
css: _propTypes.default.any
|
|
171
|
+
})
|
|
167
172
|
};
|
|
@@ -7,8 +7,6 @@ exports.EuiCacheProvider = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
-
var _cache = _interopRequireDefault(require("@emotion/cache"));
|
|
11
|
-
|
|
12
10
|
var _react2 = require("@emotion/react");
|
|
13
11
|
|
|
14
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -20,18 +18,12 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
20
18
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
21
19
|
* Side Public License, v 1.
|
|
22
20
|
*/
|
|
23
|
-
var defaultCache = (0, _cache.default)({
|
|
24
|
-
key: 'css'
|
|
25
|
-
});
|
|
26
|
-
defaultCache.compat = true;
|
|
27
|
-
|
|
28
21
|
var EuiCacheProvider = function EuiCacheProvider(_ref) {
|
|
29
|
-
var
|
|
30
|
-
cache = _ref$cache === void 0 ? defaultCache : _ref$cache,
|
|
22
|
+
var cache = _ref.cache,
|
|
31
23
|
children = _ref.children;
|
|
32
|
-
return (0, _react2.jsx)(_react2.CacheProvider, {
|
|
24
|
+
return children && cache ? (0, _react2.jsx)(_react2.CacheProvider, {
|
|
33
25
|
value: cache
|
|
34
|
-
}, children);
|
|
26
|
+
}, children) : (0, _react2.jsx)(_react.default.Fragment, null, children);
|
|
35
27
|
};
|
|
36
28
|
|
|
37
29
|
exports.EuiCacheProvider = EuiCacheProvider;
|
|
@@ -7,6 +7,8 @@ exports.EuiProvider = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
+
var _cache = _interopRequireDefault(require("@emotion/cache"));
|
|
11
|
+
|
|
10
12
|
var _global_styles = require("../../global_styling/reset/global_styles");
|
|
11
13
|
|
|
12
14
|
var _utility = require("../../global_styling/utility/utility");
|
|
@@ -15,7 +17,7 @@ var _services = require("../../services");
|
|
|
15
17
|
|
|
16
18
|
var _themes = require("../../themes");
|
|
17
19
|
|
|
18
|
-
var
|
|
20
|
+
var _cache2 = require("./cache");
|
|
19
21
|
|
|
20
22
|
var _react2 = require("@emotion/react");
|
|
21
23
|
|
|
@@ -32,8 +34,16 @@ var isEmotionCacheObject = function isEmotionCacheObject(obj) {
|
|
|
32
34
|
return obj.hasOwnProperty('key');
|
|
33
35
|
};
|
|
34
36
|
|
|
37
|
+
var fallbackCache = (0, _cache.default)({
|
|
38
|
+
key: 'css'
|
|
39
|
+
});
|
|
40
|
+
fallbackCache.compat = true;
|
|
41
|
+
|
|
35
42
|
var EuiProvider = function EuiProvider(_ref) {
|
|
36
|
-
var
|
|
43
|
+
var _defaultCache;
|
|
44
|
+
|
|
45
|
+
var _ref$cache = _ref.cache,
|
|
46
|
+
cache = _ref$cache === void 0 ? fallbackCache : _ref$cache,
|
|
37
47
|
_ref$theme = _ref.theme,
|
|
38
48
|
theme = _ref$theme === void 0 ? _themes.EuiThemeAmsterdam : _ref$theme,
|
|
39
49
|
_ref$globalStyles = _ref.globalStyles,
|
|
@@ -49,24 +59,39 @@ var EuiProvider = function EuiProvider(_ref) {
|
|
|
49
59
|
|
|
50
60
|
if (cache) {
|
|
51
61
|
if (isEmotionCacheObject(cache)) {
|
|
62
|
+
cache.compat = true;
|
|
52
63
|
defaultCache = cache;
|
|
53
64
|
} else {
|
|
65
|
+
if (cache.default) {
|
|
66
|
+
cache.default.compat = true;
|
|
67
|
+
}
|
|
68
|
+
|
|
54
69
|
defaultCache = cache.default;
|
|
70
|
+
|
|
71
|
+
if (cache.global) {
|
|
72
|
+
cache.global.compat = true;
|
|
73
|
+
}
|
|
74
|
+
|
|
55
75
|
globalCache = cache.global;
|
|
76
|
+
|
|
77
|
+
if (cache.utility) {
|
|
78
|
+
cache.utility.compat = true;
|
|
79
|
+
}
|
|
80
|
+
|
|
56
81
|
utilityCache = cache.utility;
|
|
57
82
|
}
|
|
58
83
|
}
|
|
59
84
|
|
|
60
|
-
return (0, _react2.jsx)(
|
|
61
|
-
cache: defaultCache
|
|
85
|
+
return (0, _react2.jsx)(_cache2.EuiCacheProvider, {
|
|
86
|
+
cache: (_defaultCache = defaultCache) !== null && _defaultCache !== void 0 ? _defaultCache : fallbackCache
|
|
62
87
|
}, (0, _react2.jsx)(_services.EuiThemeProvider, {
|
|
63
88
|
theme: theme !== null && theme !== void 0 ? theme : undefined,
|
|
64
89
|
colorMode: colorMode,
|
|
65
90
|
modify: modify
|
|
66
|
-
}, theme && (0, _react2.jsx)(_react.default.Fragment, null, (0, _react2.jsx)(
|
|
91
|
+
}, theme && (0, _react2.jsx)(_react.default.Fragment, null, (0, _react2.jsx)(_cache2.EuiCacheProvider, {
|
|
67
92
|
cache: globalCache,
|
|
68
93
|
children: Globals && (0, _react2.jsx)(Globals, null)
|
|
69
|
-
}), (0, _react2.jsx)(
|
|
94
|
+
}), (0, _react2.jsx)(_cache2.EuiCacheProvider, {
|
|
70
95
|
cache: utilityCache,
|
|
71
96
|
children: Utilities && (0, _react2.jsx)(Utilities, null)
|
|
72
97
|
})), (0, _react2.jsx)(_services.CurrentEuiBreakpointProvider, null, children)));
|
|
@@ -355,7 +355,12 @@ EuiResizablePanel.propTypes = {
|
|
|
355
355
|
/**
|
|
356
356
|
* Props to add to the wrapping `.euiResizablePanel` div
|
|
357
357
|
*/
|
|
358
|
-
wrapperProps: _propTypes.default.
|
|
358
|
+
wrapperProps: _propTypes.default.shape({
|
|
359
|
+
className: _propTypes.default.string,
|
|
360
|
+
"aria-label": _propTypes.default.string,
|
|
361
|
+
"data-test-subj": _propTypes.default.string,
|
|
362
|
+
css: _propTypes.default.any
|
|
363
|
+
}),
|
|
359
364
|
|
|
360
365
|
/**
|
|
361
366
|
* Padding to add directly to the wrapping `.euiResizablePanel` div
|
|
@@ -272,6 +272,11 @@ EuiSideNav.propTypes = {
|
|
|
272
272
|
* Adds a couple extra #EuiSideNavHeading props and extends the props of EuiTitle that wraps the `heading`
|
|
273
273
|
*/
|
|
274
274
|
headingProps: _propTypes.default.shape({
|
|
275
|
+
className: _propTypes.default.string,
|
|
276
|
+
"aria-label": _propTypes.default.string,
|
|
277
|
+
"data-test-subj": _propTypes.default.string,
|
|
278
|
+
css: _propTypes.default.any,
|
|
279
|
+
|
|
275
280
|
/**
|
|
276
281
|
* The actual HTML heading element to wrap the `heading`.
|
|
277
282
|
* Default is `h2`
|
|
@@ -31,7 +31,7 @@ var _suggest_item = require("./suggest_item");
|
|
|
31
31
|
|
|
32
32
|
var _react2 = require("@emotion/react");
|
|
33
33
|
|
|
34
|
-
var _excluded = ["onItemClick", "onBlur", "onFocus", "onInput", "onSearch", "status", "append", "tooltipContent", "suggestions", "id", "aria-label", "aria-labelledby", "isVirtualized", "fullWidth", "maxHeight"];
|
|
34
|
+
var _excluded = ["onItemClick", "onBlur", "onFocus", "onInput", "onSearch", "status", "append", "tooltipContent", "suggestions", "id", "aria-label", "aria-labelledby", "isPreFiltered", "isVirtualized", "fullWidth", "maxHeight"];
|
|
35
35
|
|
|
36
36
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
37
37
|
|
|
@@ -93,6 +93,8 @@ var EuiSuggest = function EuiSuggest(_ref) {
|
|
|
93
93
|
id = _ref.id,
|
|
94
94
|
ariaLabel = _ref['aria-label'],
|
|
95
95
|
labelId = _ref['aria-labelledby'],
|
|
96
|
+
_ref$isPreFiltered = _ref.isPreFiltered,
|
|
97
|
+
isPreFiltered = _ref$isPreFiltered === void 0 ? false : _ref$isPreFiltered,
|
|
96
98
|
_ref$isVirtualized = _ref.isVirtualized,
|
|
97
99
|
isVirtualized = _ref$isVirtualized === void 0 ? false : _ref$isVirtualized,
|
|
98
100
|
_ref$fullWidth = _ref.fullWidth,
|
|
@@ -257,6 +259,7 @@ var EuiSuggest = function EuiSuggest(_ref) {
|
|
|
257
259
|
isVirtualized: isVirtualized
|
|
258
260
|
},
|
|
259
261
|
searchable: true,
|
|
262
|
+
isPreFiltered: isPreFiltered,
|
|
260
263
|
searchProps: _objectSpread({
|
|
261
264
|
id: id,
|
|
262
265
|
append: appendArray.length ? appendArray : undefined,
|
|
@@ -384,5 +387,11 @@ EuiSuggest.propTypes = {
|
|
|
384
387
|
* Default is `60vh`
|
|
385
388
|
*/
|
|
386
389
|
maxHeight: _propTypes.default.any,
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* Control whether or not options get filtered internally or if consumer will filter.
|
|
393
|
+
* Default `false`
|
|
394
|
+
*/
|
|
395
|
+
isPreFiltered: _propTypes.default.bool,
|
|
387
396
|
"aria-labelledby": _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.string.isRequired])
|
|
388
397
|
};
|
|
@@ -219,9 +219,8 @@ EuiTableRowCell.propTypes = {
|
|
|
219
219
|
showOnHover: _propTypes.default.bool,
|
|
220
220
|
|
|
221
221
|
/**
|
|
222
|
-
*
|
|
223
|
-
*
|
|
224
|
-
* `.eui-textBreakWord`.
|
|
222
|
+
* Creates a text wrapper around cell content that helps word break or truncate
|
|
223
|
+
* long text correctly.
|
|
225
224
|
*/
|
|
226
225
|
textOnly: _propTypes.default.bool,
|
|
227
226
|
|
|
@@ -242,9 +241,8 @@ EuiTableRowCell.propTypes = {
|
|
|
242
241
|
showOnHover: _propTypes.default.bool,
|
|
243
242
|
|
|
244
243
|
/**
|
|
245
|
-
*
|
|
246
|
-
*
|
|
247
|
-
* `.eui-textBreakWord`.
|
|
244
|
+
* Creates a text wrapper around cell content that helps word break or truncate
|
|
245
|
+
* long text correctly.
|
|
248
246
|
*/
|
|
249
247
|
textOnly: _propTypes.default.bool,
|
|
250
248
|
|
|
@@ -149,24 +149,6 @@ var EuiTabbedContent = /*#__PURE__*/function (_Component) {
|
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
_createClass(EuiTabbedContent, [{
|
|
152
|
-
key: "componentDidMount",
|
|
153
|
-
value: function componentDidMount() {
|
|
154
|
-
// IE11 doesn't support the `relatedTarget` event property for blur events
|
|
155
|
-
// but does add it for focusout. React doesn't support `onFocusOut` so here we are.
|
|
156
|
-
if (this.tabsRef.current) {
|
|
157
|
-
// Current short-term solution for event listener (see https://github.com/elastic/eui/pull/2717)
|
|
158
|
-
this.tabsRef.current.addEventListener('focusout', this.removeFocus);
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
}, {
|
|
162
|
-
key: "componentWillUnmount",
|
|
163
|
-
value: function componentWillUnmount() {
|
|
164
|
-
if (this.tabsRef.current) {
|
|
165
|
-
// Current short-term solution for event listener (see https://github.com/elastic/eui/pull/2717)
|
|
166
|
-
this.tabsRef.current.removeEventListener('focusout', this.removeFocus);
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
}, {
|
|
170
152
|
key: "render",
|
|
171
153
|
value: function render() {
|
|
172
154
|
var _this2 = this;
|
|
@@ -195,7 +177,8 @@ var EuiTabbedContent = /*#__PURE__*/function (_Component) {
|
|
|
195
177
|
ref: this.tabsRef,
|
|
196
178
|
expand: expand,
|
|
197
179
|
size: size,
|
|
198
|
-
onFocus: this.initializeFocus
|
|
180
|
+
onFocus: this.initializeFocus,
|
|
181
|
+
onBlur: this.removeFocus
|
|
199
182
|
}, tabs.map(function (tab) {
|
|
200
183
|
var id = tab.id,
|
|
201
184
|
name = tab.name,
|