@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
|
@@ -15,17 +15,19 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
15
15
|
|
|
16
16
|
var _react = _interopRequireWildcard(require("react"));
|
|
17
17
|
|
|
18
|
-
var _reactDom = require("react-dom");
|
|
19
|
-
|
|
20
18
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
21
19
|
|
|
20
|
+
var _react2 = require("@emotion/react");
|
|
21
|
+
|
|
22
22
|
var _common = require("../common");
|
|
23
23
|
|
|
24
24
|
var _services = require("../../services");
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _portal = require("../portal");
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _overlay_mask = require("./overlay_mask.styles");
|
|
29
|
+
|
|
30
|
+
var _excluded = ["className", "children", "headerZindexLocation", "maskRef", "css"];
|
|
29
31
|
|
|
30
32
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
31
33
|
|
|
@@ -34,79 +36,45 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
34
36
|
var EuiOverlayMask = function EuiOverlayMask(_ref) {
|
|
35
37
|
var className = _ref.className,
|
|
36
38
|
children = _ref.children,
|
|
37
|
-
onClick = _ref.onClick,
|
|
38
39
|
_ref$headerZindexLoca = _ref.headerZindexLocation,
|
|
39
40
|
headerZindexLocation = _ref$headerZindexLoca === void 0 ? 'above' : _ref$headerZindexLoca,
|
|
40
41
|
maskRef = _ref.maskRef,
|
|
41
42
|
css = _ref.css,
|
|
42
43
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
43
|
-
var overlayMaskNode = (0, _react.useRef)();
|
|
44
|
-
var combinedMaskRef = (0, _services.useCombinedRefs)([overlayMaskNode, maskRef]);
|
|
45
44
|
|
|
46
|
-
var _useState = (0, _react.useState)(
|
|
45
|
+
var _useState = (0, _react.useState)(null),
|
|
47
46
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
(0, _react.useEffect)(function () {
|
|
52
|
-
document.body.classList.add('euiBody-hasOverlayMask');
|
|
53
|
-
return function () {
|
|
54
|
-
document.body.classList.remove('euiBody-hasOverlayMask');
|
|
55
|
-
};
|
|
56
|
-
}, []);
|
|
57
|
-
(0, _react.useEffect)(function () {
|
|
58
|
-
if (typeof document !== 'undefined') {
|
|
59
|
-
combinedMaskRef(document.createElement('div'));
|
|
60
|
-
}
|
|
61
|
-
}, []); // eslint-disable-line react-hooks/exhaustive-deps
|
|
47
|
+
overlayMaskNode = _useState2[0],
|
|
48
|
+
setOverlayMaskNode = _useState2[1];
|
|
62
49
|
|
|
50
|
+
var combinedMaskRef = (0, _services.useCombinedRefs)([setOverlayMaskNode, maskRef]);
|
|
51
|
+
var euiTheme = (0, _services.useEuiTheme)();
|
|
52
|
+
var styles = (0, _overlay_mask.euiOverlayMaskStyles)(euiTheme);
|
|
53
|
+
var cssStyles = [styles.euiOverlayMask, styles["".concat(headerZindexLocation, "Header")]];
|
|
63
54
|
(0, _react.useEffect)(function () {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
if (portalTarget) {
|
|
67
|
-
document.body.appendChild(portalTarget);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
setIsPortalTargetReady(true);
|
|
71
|
-
return function () {
|
|
72
|
-
if (portalTarget) {
|
|
73
|
-
document.body.removeChild(portalTarget);
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
}, []);
|
|
77
|
-
(0, _react.useEffect)(function () {
|
|
78
|
-
if (!overlayMaskNode.current) return;
|
|
55
|
+
if (!overlayMaskNode) return;
|
|
79
56
|
(0, _common.keysOf)(rest).forEach(function (key) {
|
|
80
57
|
if (typeof rest[key] !== 'string') {
|
|
81
58
|
throw new Error("Unhandled property type. EuiOverlayMask property ".concat(key, " is not a string."));
|
|
82
59
|
}
|
|
83
60
|
|
|
84
|
-
if (overlayMaskNode
|
|
85
|
-
overlayMaskNode.
|
|
61
|
+
if (overlayMaskNode) {
|
|
62
|
+
overlayMaskNode.setAttribute(key, rest[key]);
|
|
86
63
|
}
|
|
87
64
|
});
|
|
88
|
-
}, []); // eslint-disable-line react-hooks/exhaustive-deps
|
|
65
|
+
}, [overlayMaskNode]); // eslint-disable-line react-hooks/exhaustive-deps
|
|
89
66
|
|
|
90
67
|
(0, _react.useEffect)(function () {
|
|
91
|
-
if (!overlayMaskNode
|
|
92
|
-
overlayMaskNode.
|
|
93
|
-
}, [
|
|
94
|
-
(0,
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
portalTarget.addEventListener('click', listener);
|
|
105
|
-
return function () {
|
|
106
|
-
portalTarget.removeEventListener('click', listener);
|
|
107
|
-
};
|
|
108
|
-
}, [onClick]);
|
|
109
|
-
return isPortalTargetReady ? (0, _react2.jsx)(_react.default.Fragment, null, /*#__PURE__*/(0, _reactDom.createPortal)(children, overlayMaskNode.current)) : null;
|
|
68
|
+
if (!overlayMaskNode) return;
|
|
69
|
+
overlayMaskNode.className = (0, _classnames.default)('euiOverlayMask', className);
|
|
70
|
+
}, [overlayMaskNode, className]);
|
|
71
|
+
return (0, _react2.jsx)(_portal.EuiPortal, {
|
|
72
|
+
portalRef: combinedMaskRef
|
|
73
|
+
}, (0, _react2.jsx)(_react2.Global, {
|
|
74
|
+
styles: _overlay_mask.euiOverlayMaskBodyStyles
|
|
75
|
+
}), (0, _react2.jsx)(_react2.Global, {
|
|
76
|
+
styles: cssStyles
|
|
77
|
+
}), children);
|
|
110
78
|
};
|
|
111
79
|
|
|
112
80
|
exports.EuiOverlayMask = EuiOverlayMask;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.euiOverlayMaskStyles = exports.euiOverlayMaskBodyStyles = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = require("@emotion/react");
|
|
9
|
+
|
|
10
|
+
var _global_styling = require("../../global_styling");
|
|
11
|
+
|
|
12
|
+
var _services = require("../../services");
|
|
13
|
+
|
|
14
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
15
|
+
|
|
16
|
+
var euiOverlayMaskStyles = function euiOverlayMaskStyles(_ref) {
|
|
17
|
+
var euiTheme = _ref.euiTheme;
|
|
18
|
+
return {
|
|
19
|
+
euiOverlayMask: /*#__PURE__*/(0, _react.css)(".euiOverlayMask{position:fixed;", (0, _global_styling.logicalCSS)('top', 0), " ", (0, _global_styling.logicalCSS)('left', 0), " ", (0, _global_styling.logicalCSS)('right', 0), " ", (0, _global_styling.logicalCSS)('bottom', 0), " display:flex;align-items:center;justify-content:center;", (0, _global_styling.logicalCSS)('padding-bottom', '10vh'), ";animation:", _global_styling.euiAnimFadeIn, " ", euiTheme.animation.fast, " ease-in;background:", (0, _services.transparentize)(euiTheme.colors.ink, 0.5), ";};label:euiOverlayMask;"),
|
|
20
|
+
aboveHeader: /*#__PURE__*/(0, _react.css)(".euiOverlayMask{z-index:", euiTheme.levels.mask, ";};label:aboveHeader;"),
|
|
21
|
+
belowHeader: /*#__PURE__*/(0, _react.css)(".euiOverlayMask{z-index:", euiTheme.levels.maskBelowHeader, ";", (0, _global_styling.logicalCSS)('top', "".concat(euiTheme.base * 3, "px")), ";};label:belowHeader;")
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
exports.euiOverlayMaskStyles = euiOverlayMaskStyles;
|
|
26
|
+
var euiOverlayMaskBodyStyles = process.env.NODE_ENV === "production" ? {
|
|
27
|
+
name: "131160-euiOverlayMaskBodyStyles",
|
|
28
|
+
styles: "body{overflow:hidden;};label:euiOverlayMaskBodyStyles;"
|
|
29
|
+
} : {
|
|
30
|
+
name: "131160-euiOverlayMaskBodyStyles",
|
|
31
|
+
styles: "body{overflow:hidden;};label:euiOverlayMaskBodyStyles;",
|
|
32
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
33
|
+
};
|
|
34
|
+
exports.euiOverlayMaskBodyStyles = euiOverlayMaskBodyStyles;
|
|
@@ -28,8 +28,7 @@ var horizontalPositionToClassNameMap = {
|
|
|
28
28
|
};
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
32
|
-
* Use EuiPageSection instead
|
|
31
|
+
* @deprecated Use EuiPageSection instead
|
|
33
32
|
*/
|
|
34
33
|
var EuiPageContent_Deprecated = function EuiPageContent_Deprecated(_ref) {
|
|
35
34
|
var verticalPosition = _ref.verticalPosition,
|
|
@@ -34,8 +34,7 @@ var PADDING_SIZES = (0, _common.keysOf)(paddingSizeToClassNameMap);
|
|
|
34
34
|
exports.PADDING_SIZES = PADDING_SIZES;
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
38
|
-
* Use EuiPageSection instead
|
|
37
|
+
* @deprecated Use EuiPageSection instead
|
|
39
38
|
*/
|
|
40
39
|
var EuiPageContentBody_Deprecated = function EuiPageContentBody_Deprecated(_ref) {
|
|
41
40
|
var children = _ref.children,
|
|
@@ -20,8 +20,7 @@ var _react2 = require("@emotion/react");
|
|
|
20
20
|
var _excluded = ["children", "className", "responsive"];
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
24
|
-
* Use EuiPageHeader instead
|
|
23
|
+
* @deprecated Use EuiPageHeader instead
|
|
25
24
|
*/
|
|
26
25
|
var EuiPageContentHeader_Deprecated = function EuiPageContentHeader_Deprecated(_ref) {
|
|
27
26
|
var children = _ref.children,
|
|
@@ -20,8 +20,7 @@ var _react2 = require("@emotion/react");
|
|
|
20
20
|
var _excluded = ["children", "className"];
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
24
|
-
* Use EuiPageHeader instead
|
|
23
|
+
* @deprecated Use EuiPageHeader instead
|
|
25
24
|
*/
|
|
26
25
|
var EuiPageContentHeaderSection_Deprecated = function EuiPageContentHeaderSection_Deprecated(_ref) {
|
|
27
26
|
var children = _ref.children,
|
|
@@ -23,7 +23,7 @@ var _global_styling = require("../../../global_styling");
|
|
|
23
23
|
|
|
24
24
|
var _react2 = require("@emotion/react");
|
|
25
25
|
|
|
26
|
-
var _excluded = ["children", "alignment", "restrictWidth", "bottomBorder", "paddingSize", "color", "grow", "contentProps"];
|
|
26
|
+
var _excluded = ["children", "alignment", "restrictWidth", "bottomBorder", "paddingSize", "color", "grow", "contentProps", "component"];
|
|
27
27
|
|
|
28
28
|
var EuiPageSection = function EuiPageSection(_ref) {
|
|
29
29
|
var children = _ref.children,
|
|
@@ -39,6 +39,8 @@ var EuiPageSection = function EuiPageSection(_ref) {
|
|
|
39
39
|
_ref$grow = _ref.grow,
|
|
40
40
|
grow = _ref$grow === void 0 ? false : _ref$grow,
|
|
41
41
|
contentProps = _ref.contentProps,
|
|
42
|
+
_ref$component = _ref.component,
|
|
43
|
+
Component = _ref$component === void 0 ? 'section' : _ref$component,
|
|
42
44
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
43
45
|
// Set max-width as a style prop
|
|
44
46
|
var widthStyles = (0, _restrict_width.setStyleForRestrictedPageWidth)(restrictWidth, contentProps === null || contentProps === void 0 ? void 0 : contentProps.style);
|
|
@@ -50,7 +52,7 @@ var EuiPageSection = function EuiPageSection(_ref) {
|
|
|
50
52
|
var cssStyles = [styles.euiPageSection, grow && styles.grow, inlinePadding[paddingSize], bottomBorder === 'extended' && styles.border, alignment && styles[alignment], colors[color]];
|
|
51
53
|
var contentStyles = (0, _page_section.euiPageSectionContentStyles)();
|
|
52
54
|
var cssContentStyles = [contentStyles.euiPageSection__content, blockPadding[paddingSize], bottomBorder === true && styles.border, alignment.toLowerCase().includes('center') && contentStyles.center, restrictWidth && contentStyles.restrictWidth];
|
|
53
|
-
return (0, _react2.jsx)(
|
|
55
|
+
return (0, _react2.jsx)(Component, (0, _extends2.default)({
|
|
54
56
|
css: cssStyles
|
|
55
57
|
}, rest), (0, _react2.jsx)("div", (0, _extends2.default)({
|
|
56
58
|
css: cssContentStyles
|
|
@@ -30,8 +30,7 @@ var PADDING_SIZES = (0, _common.keysOf)(paddingSizeToClassNameMap);
|
|
|
30
30
|
exports.PADDING_SIZES = PADDING_SIZES;
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
34
|
-
* Use the new EuiPageSidebar instead
|
|
33
|
+
* @deprecated Use the new EuiPageSidebar in page/page_sidebar instead
|
|
35
34
|
*/
|
|
36
35
|
var EuiPageSideBar_Deprecated = function EuiPageSideBar_Deprecated(_ref) {
|
|
37
36
|
var children = _ref.children,
|
|
@@ -63,13 +63,17 @@ var EuiPageSidebar = function EuiPageSidebar(_ref) {
|
|
|
63
63
|
setInlineStyles = _useState2[1];
|
|
64
64
|
|
|
65
65
|
(0, _react.useEffect)(function () {
|
|
66
|
+
var updatedStyles = _objectSpread(_objectSpread({}, style), (0, _global_styling.logicalStyle)('min-width', isResponding ? '100%' : minWidth));
|
|
67
|
+
|
|
66
68
|
if (sticky) {
|
|
67
69
|
var _document$body$datase;
|
|
68
70
|
|
|
69
71
|
var euiHeaderFixedCounter = Number((_document$body$datase = document.body.dataset.fixedHeaders) !== null && _document$body$datase !== void 0 ? _document$body$datase : 0);
|
|
70
72
|
var offset = (0, _typeof2.default)(sticky) === 'object' ? sticky === null || sticky === void 0 ? void 0 : sticky.offset : themeContext.euiTheme.base * 3 * euiHeaderFixedCounter;
|
|
71
|
-
|
|
73
|
+
updatedStyles = _objectSpread(_objectSpread(_objectSpread({}, updatedStyles), (0, _global_styling.logicalStyle)('top', offset)), (0, _global_styling.logicalStyle)('max-height', "calc(100vh - ".concat(offset, "px)")));
|
|
72
74
|
}
|
|
75
|
+
|
|
76
|
+
setInlineStyles(updatedStyles);
|
|
73
77
|
}, [style, sticky, themeContext.euiTheme.base, isResponding, minWidth]);
|
|
74
78
|
return (0, _react2.jsx)("div", (0, _extends2.default)({
|
|
75
79
|
className: className,
|
|
@@ -49,7 +49,9 @@ exports.TEMPLATES = TEMPLATES;
|
|
|
49
49
|
/**
|
|
50
50
|
* This component has been deprecated in favor of the new
|
|
51
51
|
* namespaced version. You can still import this component
|
|
52
|
-
*
|
|
52
|
+
* until August 2023 by importing `as EuiPageTemplate`.
|
|
53
|
+
*
|
|
54
|
+
* @deprecated use EuiPageTemplate from page_template/page_template instead
|
|
53
55
|
*/
|
|
54
56
|
var EuiPageTemplate_Deprecated = function EuiPageTemplate_Deprecated(_ref) {
|
|
55
57
|
var _pageBodyProps2;
|
|
@@ -29,6 +29,10 @@ var _services = require("../../services");
|
|
|
29
29
|
|
|
30
30
|
var _accessibility = require("../accessibility");
|
|
31
31
|
|
|
32
|
+
var _pagination = require("./pagination.styles");
|
|
33
|
+
|
|
34
|
+
var _pagination_button2 = require("./pagination_button.styles");
|
|
35
|
+
|
|
32
36
|
var _react2 = require("@emotion/react");
|
|
33
37
|
|
|
34
38
|
var _excluded = ["className", "pageCount", "activePage", "onPageClick", "compressed", "aria-controls", "responsive"];
|
|
@@ -53,7 +57,13 @@ var EuiPagination = function EuiPagination(_ref) {
|
|
|
53
57
|
_ref$responsive = _ref.responsive,
|
|
54
58
|
responsive = _ref$responsive === void 0 ? ['xs', 's'] : _ref$responsive,
|
|
55
59
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
56
|
-
var isResponsive = (0, _services.useIsWithinBreakpoints)(responsive, !!responsive);
|
|
60
|
+
var isResponsive = (0, _services.useIsWithinBreakpoints)(responsive, !!responsive);
|
|
61
|
+
var euiTheme = (0, _services.useEuiTheme)();
|
|
62
|
+
var paginationStyles = (0, _pagination.euiPaginationStyles)(euiTheme);
|
|
63
|
+
|
|
64
|
+
var _euiPaginationButtonS = (0, _pagination_button2.euiPaginationButtonStyles)(euiTheme),
|
|
65
|
+
isPlaceholder = _euiPaginationButtonS.isPlaceholder; // Force to `compressed` version if specified or within the responsive breakpoints
|
|
66
|
+
|
|
57
67
|
|
|
58
68
|
var compressed = _compressed || isResponsive;
|
|
59
69
|
|
|
@@ -117,6 +127,7 @@ var EuiPagination = function EuiPagination(_ref) {
|
|
|
117
127
|
if (compressed) {
|
|
118
128
|
centerPageCount = (0, _react2.jsx)(_text.EuiText, {
|
|
119
129
|
size: "s",
|
|
130
|
+
css: paginationStyles.euiPagination__compressedText,
|
|
120
131
|
className: "euiPagination__compressedText"
|
|
121
132
|
}, (0, _react2.jsx)(_i18n.EuiI18n, {
|
|
122
133
|
token: "euiPagination.pageOfTotalCompressed",
|
|
@@ -157,7 +168,8 @@ var EuiPagination = function EuiPagination(_ref) {
|
|
|
157
168
|
}, function (firstRangeAriaLabel) {
|
|
158
169
|
return (0, _react2.jsx)("li", {
|
|
159
170
|
"aria-label": firstRangeAriaLabel,
|
|
160
|
-
className: "
|
|
171
|
+
className: "euiPagination__item",
|
|
172
|
+
css: isPlaceholder
|
|
161
173
|
}, "\u2026");
|
|
162
174
|
}));
|
|
163
175
|
} else if (firstPageInRange === 2) {
|
|
@@ -188,7 +200,8 @@ var EuiPagination = function EuiPagination(_ref) {
|
|
|
188
200
|
}, function (lastRangeAriaLabel) {
|
|
189
201
|
return (0, _react2.jsx)("li", {
|
|
190
202
|
"aria-label": lastRangeAriaLabel,
|
|
191
|
-
className: "
|
|
203
|
+
className: "euiPagination__item",
|
|
204
|
+
css: isPlaceholder
|
|
192
205
|
}, "\u2026");
|
|
193
206
|
}));
|
|
194
207
|
}
|
|
@@ -208,6 +221,7 @@ var EuiPagination = function EuiPagination(_ref) {
|
|
|
208
221
|
});
|
|
209
222
|
|
|
210
223
|
centerPageCount = (0, _react2.jsx)("ul", (0, _extends2.default)({}, accessibleName, {
|
|
224
|
+
css: paginationStyles.euiPagination__list,
|
|
211
225
|
className: "euiPagination__list"
|
|
212
226
|
}), firstPageButtons, selectablePages, lastPageButtons);
|
|
213
227
|
}
|
|
@@ -232,6 +246,7 @@ var EuiPagination = function EuiPagination(_ref) {
|
|
|
232
246
|
|
|
233
247
|
var accessiblePageCount = "".concat(accessiblePageString(), " ").concat(ofLabel, " ").concat(accessibleCollectionString);
|
|
234
248
|
return (0, _react2.jsx)("nav", (0, _extends2.default)({
|
|
249
|
+
css: [paginationStyles.euiPagination, ";label:EuiPagination;"],
|
|
235
250
|
className: classes
|
|
236
251
|
}, rest), (0, _react2.jsx)(_accessibility.EuiScreenReaderOnly, null, (0, _react2.jsx)("span", {
|
|
237
252
|
"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;
|
|
@@ -21,6 +21,10 @@ var _button = require("../button");
|
|
|
21
21
|
|
|
22
22
|
var _i18n = require("../i18n");
|
|
23
23
|
|
|
24
|
+
var _services = require("../../services");
|
|
25
|
+
|
|
26
|
+
var _pagination_button = require("./pagination_button.styles");
|
|
27
|
+
|
|
24
28
|
var _react2 = require("@emotion/react");
|
|
25
29
|
|
|
26
30
|
var _excluded = ["className", "isActive", "isPlaceholder", "pageIndex", "totalPages"];
|
|
@@ -36,12 +40,13 @@ var EuiPaginationButton = function EuiPaginationButton(_ref) {
|
|
|
36
40
|
pageIndex = _ref.pageIndex,
|
|
37
41
|
totalPages = _ref.totalPages,
|
|
38
42
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
39
|
-
var
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
+
var euiTheme = (0, _services.useEuiTheme)();
|
|
44
|
+
var styles = (0, _pagination_button.euiPaginationButtonStyles)(euiTheme);
|
|
45
|
+
var paginationButtonCss = [styles.euiPaginationButton, isActive && styles.isActive, isPlaceholder && styles.isPlaceholder];
|
|
46
|
+
var classes = (0, _classnames.default)('euiPaginationButton', className);
|
|
43
47
|
|
|
44
48
|
var props = _objectSpread(_objectSpread(_objectSpread({
|
|
49
|
+
css: paginationButtonCss,
|
|
45
50
|
className: classes,
|
|
46
51
|
size: 's',
|
|
47
52
|
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;
|
|
@@ -19,6 +19,10 @@ var _common = require("../common");
|
|
|
19
19
|
|
|
20
20
|
var _i18n = require("../i18n");
|
|
21
21
|
|
|
22
|
+
var _services = require("../../services");
|
|
23
|
+
|
|
24
|
+
var _pagination_button = require("./pagination_button.styles");
|
|
25
|
+
|
|
22
26
|
var _react2 = require("@emotion/react");
|
|
23
27
|
|
|
24
28
|
/*
|
|
@@ -43,6 +47,8 @@ var EuiPaginationButtonArrow = function EuiPaginationButtonArrow(_ref) {
|
|
|
43
47
|
disabled = _ref.disabled,
|
|
44
48
|
ariaControls = _ref.ariaControls,
|
|
45
49
|
onClick = _ref.onClick;
|
|
50
|
+
var euiTheme = (0, _services.useEuiTheme)();
|
|
51
|
+
var styles = (0, _pagination_button.euiPaginationButtonArrowStyles)(euiTheme);
|
|
46
52
|
var labels = {
|
|
47
53
|
first: (0, _i18n.useEuiI18n)('euiPaginationButtonArrow.firstPage', 'First page'),
|
|
48
54
|
previous: (0, _i18n.useEuiI18n)('euiPaginationButtonArrow.previousPage', 'Previous page'),
|
|
@@ -57,6 +63,7 @@ var EuiPaginationButtonArrow = function EuiPaginationButtonArrow(_ref) {
|
|
|
57
63
|
}
|
|
58
64
|
|
|
59
65
|
return (0, _react2.jsx)(_button_icon.EuiButtonIcon, (0, _extends2.default)({
|
|
66
|
+
css: styles.euiPaginationArrowButton,
|
|
60
67
|
className: (0, _classnames.default)('euiPaginationArrowButton', className),
|
|
61
68
|
color: "text",
|
|
62
69
|
"aria-label": labels[type],
|
|
@@ -9,8 +9,6 @@ exports.EuiCacheProvider = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
|
|
12
|
-
var _cache = _interopRequireDefault(require("@emotion/cache"));
|
|
13
|
-
|
|
14
12
|
var _react2 = require("@emotion/react");
|
|
15
13
|
|
|
16
14
|
/*
|
|
@@ -20,18 +18,12 @@ var _react2 = require("@emotion/react");
|
|
|
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;
|
|
@@ -9,6 +9,8 @@ exports.EuiProvider = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
|
|
12
|
+
var _cache = _interopRequireDefault(require("@emotion/cache"));
|
|
13
|
+
|
|
12
14
|
var _global_styles = require("../../global_styling/reset/global_styles");
|
|
13
15
|
|
|
14
16
|
var _utility = require("../../global_styling/utility/utility");
|
|
@@ -17,7 +19,7 @@ var _services = require("../../services");
|
|
|
17
19
|
|
|
18
20
|
var _themes = require("../../themes");
|
|
19
21
|
|
|
20
|
-
var
|
|
22
|
+
var _cache2 = require("./cache");
|
|
21
23
|
|
|
22
24
|
var _react2 = require("@emotion/react");
|
|
23
25
|
|
|
@@ -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)));
|
|
@@ -37,7 +37,7 @@ var _suggest_item = require("./suggest_item");
|
|
|
37
37
|
|
|
38
38
|
var _react2 = require("@emotion/react");
|
|
39
39
|
|
|
40
|
-
var _excluded = ["onItemClick", "onBlur", "onFocus", "onInput", "onSearch", "status", "append", "tooltipContent", "suggestions", "id", "aria-label", "aria-labelledby", "isVirtualized", "fullWidth", "maxHeight"];
|
|
40
|
+
var _excluded = ["onItemClick", "onBlur", "onFocus", "onInput", "onSearch", "status", "append", "tooltipContent", "suggestions", "id", "aria-label", "aria-labelledby", "isPreFiltered", "isVirtualized", "fullWidth", "maxHeight"];
|
|
41
41
|
|
|
42
42
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
43
43
|
|
|
@@ -79,6 +79,8 @@ var EuiSuggest = function EuiSuggest(_ref) {
|
|
|
79
79
|
id = _ref.id,
|
|
80
80
|
ariaLabel = _ref['aria-label'],
|
|
81
81
|
labelId = _ref['aria-labelledby'],
|
|
82
|
+
_ref$isPreFiltered = _ref.isPreFiltered,
|
|
83
|
+
isPreFiltered = _ref$isPreFiltered === void 0 ? false : _ref$isPreFiltered,
|
|
82
84
|
_ref$isVirtualized = _ref.isVirtualized,
|
|
83
85
|
isVirtualized = _ref$isVirtualized === void 0 ? false : _ref$isVirtualized,
|
|
84
86
|
_ref$fullWidth = _ref.fullWidth,
|
|
@@ -243,6 +245,7 @@ var EuiSuggest = function EuiSuggest(_ref) {
|
|
|
243
245
|
isVirtualized: isVirtualized
|
|
244
246
|
},
|
|
245
247
|
searchable: true,
|
|
248
|
+
isPreFiltered: isPreFiltered,
|
|
246
249
|
searchProps: _objectSpread({
|
|
247
250
|
id: id,
|
|
248
251
|
append: appendArray.length ? appendArray : undefined,
|