@elastic/eui 111.0.0 → 111.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/avatar/avatar.js +1 -1
- package/es/components/badge/badge.js +1 -1
- package/es/components/badge/beta_badge/beta_badge.js +1 -1
- package/es/components/basic_table/basic_table.js +36 -55
- package/es/components/basic_table/in_memory_table.js +6 -6
- package/es/components/beacon/beacon.styles.js +1 -1
- package/es/components/button/button_display/_button_display_content.js +1 -1
- package/es/components/button/button_empty/button_empty.js +1 -1
- package/es/components/button/button_group/button_group.js +1 -1
- package/es/components/button/button_group/button_group_button.js +1 -1
- package/es/components/button/button_icon/button_icon.js +1 -1
- package/es/components/button/index.js +2 -1
- package/es/components/button/split_button/index.js +10 -0
- package/es/components/button/split_button/split_button.js +120 -0
- package/es/components/button/split_button/split_button.styles.js +51 -0
- package/es/components/button/split_button/split_button_actions.js +115 -0
- package/es/components/button/split_button/split_button_context.js +14 -0
- package/es/components/call_out/call_out.js +1 -1
- package/es/components/card/card.js +1 -1
- package/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
- package/es/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +1 -1
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +1 -1
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +2 -2
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +2 -2
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +4 -4
- package/es/components/comment_list/comment.js +2 -2
- package/es/components/comment_list/comment_event.js +1 -1
- package/es/components/comment_list/comment_list.js +2 -2
- package/es/components/comment_list/comment_timeline.js +1 -1
- package/es/components/context_menu/context_menu_item.js +1 -1
- package/es/components/datagrid/body/cell/data_grid_cell.js +12 -12
- package/es/components/datagrid/body/data_grid_body.js +7 -7
- package/es/components/datagrid/body/data_grid_body_custom.js +7 -7
- package/es/components/datagrid/body/data_grid_body_virtualized.js +7 -7
- package/es/components/datagrid/body/header/data_grid_header_cell.js +6 -6
- package/es/components/datagrid/controls/column_sorting.js +7 -7
- package/es/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/es/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
- package/es/components/datagrid/controls/fullscreen_selector.styles.js +1 -1
- package/es/components/datagrid/utils/in_memory.js +6 -6
- package/es/components/date_picker/date_picker.js +2 -2
- package/es/components/date_picker/date_picker_range.js +1 -1
- package/es/components/empty_prompt/empty_prompt.js +2 -2
- package/es/components/flex/flex_group.js +1 -1
- package/es/components/flyout/flyout.styles.js +1 -0
- package/es/components/form/field_number/field_number.js +2 -2
- package/es/components/form/field_text/field_text.js +2 -2
- package/es/components/form/form_control_button/form_control_button.js +1 -1
- package/es/components/form/form_control_layout/form_control_layout.js +2 -2
- package/es/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
- package/es/components/form/form_control_layout/form_control_layout_icons.js +2 -2
- package/es/components/form/text_area/text_area.js +2 -2
- package/es/components/header/header_links/header_link.js +1 -1
- package/es/components/header/header_links/header_links.js +1 -1
- package/es/components/header/header_logo/header_logo.js +1 -1
- package/es/components/header/header_section/header_section_item_button.js +1 -1
- package/es/components/horizontal_rule/horizontal_rule.js +1 -1
- package/es/components/icon/assets/agentBuilderRobot.js +37 -0
- package/es/components/icon/assets/cross_project_search.js +35 -0
- package/es/components/icon/assets/dashed_circle.js +35 -0
- package/es/components/icon/assets/product_robot.js +37 -0
- package/es/components/icon/icon.js +1 -1
- package/es/components/icon/icon_map.js +3 -0
- package/es/components/key_pad_menu/key_pad_menu_item.js +1 -1
- package/es/components/link/external_link_icon.js +6 -3
- package/es/components/list_group/list_group.js +2 -2
- package/es/components/list_group/list_group_item.js +2 -2
- package/es/components/list_group/list_group_item_extra_action.js +1 -1
- package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
- package/es/components/loading/loading_logo.js +1 -1
- package/es/components/markdown_editor/markdown_editor.js +1 -1
- package/es/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
- package/es/components/markdown_editor/markdown_editor_footer.js +1 -1
- package/es/components/markdown_editor/markdown_editor_toolbar.js +1 -1
- package/es/components/page/page_header/page_header_content.js +2 -2
- package/es/components/pagination/pagination_button.js +1 -1
- package/es/components/search_bar/search_bar.js +1 -1
- package/es/components/selectable/selectable_list/selectable_list.js +1 -1
- package/es/components/selectable/selectable_list/selectable_list_item.js +1 -1
- package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
- package/es/components/spacer/spacer.js +1 -1
- package/es/components/table/table_header_cell.js +1 -1
- package/es/components/timeline/timeline_item_icon.js +1 -1
- package/es/components/toast/global_toast_list.js +1 -1
- package/es/components/toast/toast.js +1 -1
- package/es/components/tool_tip/icon_tip.js +1 -1
- package/es/components/tour/tour_step_indicator.js +8 -3
- package/es/global_styling/mixins/_button.js +28 -9
- package/es/global_styling/mixins/_container_query.js +106 -0
- package/es/global_styling/mixins/index.js +1 -0
- package/es/services/container_query/container_query_hook.js +64 -0
- package/es/services/container_query/index.js +9 -0
- package/es/services/container_query/match_container.js +242 -0
- package/eui.d.ts +414 -61
- package/i18ntokens.json +1053 -1053
- package/lib/components/avatar/avatar.js +1 -1
- package/lib/components/badge/badge.js +1 -1
- package/lib/components/badge/beta_badge/beta_badge.js +1 -1
- package/lib/components/basic_table/basic_table.js +36 -55
- package/lib/components/basic_table/in_memory_table.js +6 -6
- package/lib/components/beacon/beacon.styles.js +1 -1
- package/lib/components/button/button_display/_button_display_content.js +1 -1
- package/lib/components/button/button_empty/button_empty.js +1 -1
- package/lib/components/button/button_group/button_group.js +1 -1
- package/lib/components/button/button_group/button_group_button.js +1 -1
- package/lib/components/button/button_icon/button_icon.js +1 -1
- package/lib/components/button/index.js +8 -1
- package/lib/components/button/split_button/index.js +25 -0
- package/lib/components/button/split_button/split_button.js +129 -0
- package/lib/components/button/split_button/split_button.styles.js +55 -0
- package/lib/components/button/split_button/split_button_actions.js +123 -0
- package/lib/components/button/split_button/split_button_context.js +20 -0
- package/lib/components/call_out/call_out.js +1 -1
- package/lib/components/card/card.js +1 -1
- package/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
- package/lib/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +1 -1
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +1 -1
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +2 -2
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +2 -2
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +4 -4
- package/lib/components/comment_list/comment.js +2 -2
- package/lib/components/comment_list/comment_event.js +1 -1
- package/lib/components/comment_list/comment_list.js +2 -2
- package/lib/components/comment_list/comment_timeline.js +1 -1
- package/lib/components/context_menu/context_menu_item.js +1 -1
- package/lib/components/datagrid/body/cell/data_grid_cell.js +12 -12
- package/lib/components/datagrid/body/data_grid_body.js +7 -7
- package/lib/components/datagrid/body/data_grid_body_custom.js +7 -7
- package/lib/components/datagrid/body/data_grid_body_virtualized.js +7 -7
- package/lib/components/datagrid/body/header/data_grid_header_cell.js +6 -6
- package/lib/components/datagrid/controls/column_sorting.js +7 -7
- package/lib/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/lib/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
- package/lib/components/datagrid/controls/fullscreen_selector.styles.js +1 -1
- package/lib/components/datagrid/utils/in_memory.js +6 -6
- package/lib/components/date_picker/date_picker.js +2 -2
- package/lib/components/date_picker/date_picker_range.js +1 -1
- package/lib/components/empty_prompt/empty_prompt.js +2 -2
- package/lib/components/flex/flex_group.js +1 -1
- package/lib/components/flyout/flyout.styles.js +2 -1
- package/lib/components/form/field_number/field_number.js +2 -2
- package/lib/components/form/field_text/field_text.js +2 -2
- package/lib/components/form/form_control_button/form_control_button.js +1 -1
- package/lib/components/form/form_control_layout/form_control_layout.js +2 -2
- package/lib/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
- package/lib/components/form/form_control_layout/form_control_layout_icons.js +2 -2
- package/lib/components/form/text_area/text_area.js +2 -2
- package/lib/components/header/header_links/header_link.js +1 -1
- package/lib/components/header/header_links/header_links.js +1 -1
- package/lib/components/header/header_logo/header_logo.js +1 -1
- package/lib/components/header/header_section/header_section_item_button.js +1 -1
- package/lib/components/horizontal_rule/horizontal_rule.js +1 -1
- package/lib/components/icon/assets/agentBuilderRobot.js +44 -0
- package/lib/components/icon/assets/cross_project_search.js +42 -0
- package/lib/components/icon/assets/dashed_circle.js +42 -0
- package/lib/components/icon/assets/product_robot.js +44 -0
- package/lib/components/icon/icon.js +1 -1
- package/lib/components/icon/icon_map.js +3 -0
- package/lib/components/icon/svgs/cross_project_search.svg +3 -0
- package/lib/components/icon/svgs/dashed_circle.svg +5 -0
- package/lib/components/icon/svgs/product_robot.svg +4 -0
- package/lib/components/key_pad_menu/key_pad_menu_item.js +1 -1
- package/lib/components/link/external_link_icon.js +6 -3
- package/lib/components/list_group/list_group.js +2 -2
- package/lib/components/list_group/list_group_item.js +2 -2
- package/lib/components/list_group/list_group_item_extra_action.js +1 -1
- package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
- package/lib/components/loading/loading_logo.js +1 -1
- package/lib/components/markdown_editor/markdown_editor.js +1 -1
- package/lib/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
- package/lib/components/markdown_editor/markdown_editor_footer.js +1 -1
- package/lib/components/markdown_editor/markdown_editor_toolbar.js +1 -1
- package/lib/components/page/page_header/page_header_content.js +2 -2
- package/lib/components/pagination/pagination_button.js +1 -1
- package/lib/components/search_bar/search_bar.js +1 -1
- package/lib/components/selectable/selectable_list/selectable_list.js +1 -1
- package/lib/components/selectable/selectable_list/selectable_list_item.js +1 -1
- package/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
- package/lib/components/spacer/spacer.js +1 -1
- package/lib/components/table/table_header_cell.js +1 -1
- package/lib/components/timeline/timeline_item_icon.js +1 -1
- package/lib/components/toast/global_toast_list.js +1 -1
- package/lib/components/toast/toast.js +1 -1
- package/lib/components/tool_tip/icon_tip.js +1 -1
- package/lib/components/tour/tour_step_indicator.js +8 -3
- package/lib/global_styling/mixins/_button.js +29 -10
- package/lib/global_styling/mixins/_container_query.js +112 -0
- package/lib/global_styling/mixins/index.js +11 -0
- package/lib/services/container_query/container_query_hook.js +67 -0
- package/lib/services/container_query/index.js +16 -0
- package/lib/services/container_query/match_container.js +243 -0
- package/optimize/es/components/basic_table/basic_table.js +30 -49
- package/optimize/es/components/beacon/beacon.styles.js +1 -1
- package/optimize/es/components/button/index.js +2 -1
- package/optimize/es/components/button/split_button/index.js +10 -0
- package/optimize/es/components/button/split_button/split_button.js +98 -0
- package/optimize/es/components/button/split_button/split_button.styles.js +51 -0
- package/optimize/es/components/button/split_button/split_button_actions.js +89 -0
- package/optimize/es/components/button/split_button/split_button_context.js +14 -0
- package/optimize/es/components/datagrid/controls/fullscreen_selector.styles.js +1 -1
- package/optimize/es/components/empty_prompt/empty_prompt.js +1 -1
- package/optimize/es/components/flex/flex_group.js +1 -1
- package/optimize/es/components/flyout/flyout.styles.js +1 -0
- package/optimize/es/components/horizontal_rule/horizontal_rule.js +1 -1
- package/optimize/es/components/icon/assets/agentBuilderRobot.js +36 -0
- package/optimize/es/components/icon/assets/cross_project_search.js +34 -0
- package/optimize/es/components/icon/assets/dashed_circle.js +34 -0
- package/optimize/es/components/icon/assets/product_robot.js +36 -0
- package/optimize/es/components/icon/icon_map.js +3 -0
- package/optimize/es/components/link/external_link_icon.js +6 -3
- package/optimize/es/components/page/page_header/page_header_content.js +1 -1
- package/optimize/es/components/search_bar/search_bar.js +1 -1
- package/optimize/es/components/spacer/spacer.js +1 -1
- package/optimize/es/components/tour/tour_step_indicator.js +8 -3
- package/optimize/es/global_styling/mixins/_button.js +28 -9
- package/optimize/es/global_styling/mixins/_container_query.js +106 -0
- package/optimize/es/global_styling/mixins/index.js +1 -0
- package/optimize/es/services/container_query/container_query_hook.js +59 -0
- package/optimize/es/services/container_query/index.js +9 -0
- package/optimize/es/services/container_query/match_container.js +229 -0
- package/optimize/lib/components/basic_table/basic_table.js +30 -49
- package/optimize/lib/components/beacon/beacon.styles.js +1 -1
- package/optimize/lib/components/button/index.js +8 -1
- package/optimize/lib/components/button/split_button/index.js +25 -0
- package/optimize/lib/components/button/split_button/split_button.js +107 -0
- package/optimize/lib/components/button/split_button/split_button.styles.js +55 -0
- package/optimize/lib/components/button/split_button/split_button_actions.js +98 -0
- package/optimize/lib/components/button/split_button/split_button_context.js +20 -0
- package/optimize/lib/components/datagrid/controls/fullscreen_selector.styles.js +1 -1
- package/optimize/lib/components/empty_prompt/empty_prompt.js +1 -1
- package/optimize/lib/components/flex/flex_group.js +1 -1
- package/optimize/lib/components/flyout/flyout.styles.js +2 -1
- package/optimize/lib/components/horizontal_rule/horizontal_rule.js +1 -1
- package/optimize/lib/components/icon/assets/agentBuilderRobot.js +44 -0
- package/optimize/lib/components/icon/assets/cross_project_search.js +42 -0
- package/optimize/lib/components/icon/assets/dashed_circle.js +42 -0
- package/optimize/lib/components/icon/assets/product_robot.js +44 -0
- package/optimize/lib/components/icon/icon_map.js +3 -0
- package/optimize/lib/components/icon/svgs/cross_project_search.svg +3 -0
- package/optimize/lib/components/icon/svgs/dashed_circle.svg +5 -0
- package/optimize/lib/components/icon/svgs/product_robot.svg +4 -0
- package/optimize/lib/components/link/external_link_icon.js +6 -3
- package/optimize/lib/components/page/page_header/page_header_content.js +1 -1
- package/optimize/lib/components/search_bar/search_bar.js +1 -1
- package/optimize/lib/components/spacer/spacer.js +1 -1
- package/optimize/lib/components/tour/tour_step_indicator.js +8 -3
- package/optimize/lib/global_styling/mixins/_button.js +29 -10
- package/optimize/lib/global_styling/mixins/_container_query.js +112 -0
- package/optimize/lib/global_styling/mixins/index.js +11 -0
- package/optimize/lib/services/container_query/container_query_hook.js +65 -0
- package/optimize/lib/services/container_query/index.js +16 -0
- package/optimize/lib/services/container_query/match_container.js +231 -0
- package/package.json +4 -4
- package/test-env/components/avatar/avatar.js +1 -1
- package/test-env/components/badge/badge.js +1 -1
- package/test-env/components/badge/beta_badge/beta_badge.js +1 -1
- package/test-env/components/basic_table/basic_table.js +36 -55
- package/test-env/components/basic_table/in_memory_table.js +6 -6
- package/test-env/components/beacon/beacon.styles.js +1 -1
- package/test-env/components/button/button_display/_button_display_content.js +1 -1
- package/test-env/components/button/button_empty/button_empty.js +1 -1
- package/test-env/components/button/button_group/button_group.js +1 -1
- package/test-env/components/button/button_group/button_group_button.js +1 -1
- package/test-env/components/button/button_icon/button_icon.js +1 -1
- package/test-env/components/button/index.js +8 -1
- package/test-env/components/button/split_button/index.js +25 -0
- package/test-env/components/button/split_button/split_button.js +123 -0
- package/test-env/components/button/split_button/split_button.styles.js +55 -0
- package/test-env/components/button/split_button/split_button_actions.js +120 -0
- package/test-env/components/button/split_button/split_button_context.js +20 -0
- package/test-env/components/call_out/call_out.js +1 -1
- package/test-env/components/card/card.js +1 -1
- package/test-env/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
- package/test-env/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +1 -1
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +1 -1
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +2 -2
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +2 -2
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +4 -4
- package/test-env/components/comment_list/comment.js +2 -2
- package/test-env/components/comment_list/comment_event.js +1 -1
- package/test-env/components/comment_list/comment_list.js +2 -2
- package/test-env/components/comment_list/comment_timeline.js +1 -1
- package/test-env/components/context_menu/context_menu_item.js +1 -1
- package/test-env/components/datagrid/body/cell/data_grid_cell.js +12 -12
- package/test-env/components/datagrid/body/data_grid_body.js +7 -7
- package/test-env/components/datagrid/body/data_grid_body_custom.js +7 -7
- package/test-env/components/datagrid/body/data_grid_body_virtualized.js +7 -7
- package/test-env/components/datagrid/body/header/data_grid_header_cell.js +6 -6
- package/test-env/components/datagrid/controls/column_sorting.js +7 -7
- package/test-env/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/test-env/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
- package/test-env/components/datagrid/controls/fullscreen_selector.styles.js +1 -1
- package/test-env/components/datagrid/utils/in_memory.js +6 -6
- package/test-env/components/date_picker/date_picker.js +2 -2
- package/test-env/components/date_picker/date_picker_range.js +1 -1
- package/test-env/components/empty_prompt/empty_prompt.js +2 -2
- package/test-env/components/flex/flex_group.js +1 -1
- package/test-env/components/flyout/flyout.styles.js +2 -1
- package/test-env/components/form/field_number/field_number.js +2 -2
- package/test-env/components/form/field_text/field_text.js +2 -2
- package/test-env/components/form/form_control_button/form_control_button.js +1 -1
- package/test-env/components/form/form_control_layout/form_control_layout.js +2 -2
- package/test-env/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
- package/test-env/components/form/form_control_layout/form_control_layout_icons.js +2 -2
- package/test-env/components/form/text_area/text_area.js +2 -2
- package/test-env/components/header/header_links/header_link.js +1 -1
- package/test-env/components/header/header_links/header_links.js +1 -1
- package/test-env/components/header/header_logo/header_logo.js +1 -1
- package/test-env/components/header/header_section/header_section_item_button.js +1 -1
- package/test-env/components/horizontal_rule/horizontal_rule.js +1 -1
- package/test-env/components/icon/assets/agentBuilderRobot.js +44 -0
- package/test-env/components/icon/assets/cross_project_search.js +42 -0
- package/test-env/components/icon/assets/dashed_circle.js +42 -0
- package/test-env/components/icon/assets/product_robot.js +44 -0
- package/test-env/components/icon/icon_map.js +3 -0
- package/test-env/components/key_pad_menu/key_pad_menu_item.js +1 -1
- package/test-env/components/link/external_link_icon.js +6 -3
- package/test-env/components/list_group/list_group.js +2 -2
- package/test-env/components/list_group/list_group_item.js +2 -2
- package/test-env/components/list_group/list_group_item_extra_action.js +1 -1
- package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
- package/test-env/components/loading/loading_logo.js +1 -1
- package/test-env/components/markdown_editor/markdown_editor.js +1 -1
- package/test-env/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
- package/test-env/components/markdown_editor/markdown_editor_footer.js +1 -1
- package/test-env/components/markdown_editor/markdown_editor_toolbar.js +1 -1
- package/test-env/components/page/page_header/page_header_content.js +2 -2
- package/test-env/components/pagination/pagination_button.js +1 -1
- package/test-env/components/search_bar/search_bar.js +1 -1
- package/test-env/components/selectable/selectable_list/selectable_list.js +1 -1
- package/test-env/components/selectable/selectable_list/selectable_list_item.js +1 -1
- package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
- package/test-env/components/spacer/spacer.js +1 -1
- package/test-env/components/table/table_header_cell.js +1 -1
- package/test-env/components/timeline/timeline_item_icon.js +1 -1
- package/test-env/components/toast/global_toast_list.js +1 -1
- package/test-env/components/toast/toast.js +1 -1
- package/test-env/components/tool_tip/icon_tip.js +1 -1
- package/test-env/components/tour/tour_step_indicator.js +8 -3
- package/test-env/global_styling/mixins/_button.js +29 -10
- package/test-env/global_styling/mixins/_container_query.js +112 -0
- package/test-env/global_styling/mixins/index.js +11 -0
- package/test-env/services/container_query/container_query_hook.js +65 -0
- package/test-env/services/container_query/index.js +16 -0
- package/test-env/services/container_query/match_container.js +231 -0
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ContainerQueryListChangeEvent = exports.ContainerQueryList = void 0;
|
|
7
|
+
exports.matchContainer = matchContainer;
|
|
8
|
+
var _uuid = require("uuid");
|
|
9
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
10
|
+
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
11
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
12
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
13
|
+
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
14
|
+
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
15
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
16
|
+
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
17
|
+
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
18
|
+
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
19
|
+
function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
|
|
20
|
+
function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); }
|
|
21
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
22
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
23
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
24
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
25
|
+
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
26
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
27
|
+
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
28
|
+
function _wrapNativeSuper(t) { var r = "function" == typeof Map ? new Map() : void 0; return _wrapNativeSuper = function _wrapNativeSuper(t) { if (null === t || !_isNativeFunction(t)) return t; if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function"); if (void 0 !== r) { if (r.has(t)) return r.get(t); r.set(t, Wrapper); } function Wrapper() { return _construct(t, arguments, _getPrototypeOf(this).constructor); } return Wrapper.prototype = Object.create(t.prototype, { constructor: { value: Wrapper, enumerable: !1, writable: !0, configurable: !0 } }), _setPrototypeOf(Wrapper, t); }, _wrapNativeSuper(t); }
|
|
29
|
+
function _construct(t, e, r) { if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments); var o = [null]; o.push.apply(o, e); var p = new (t.bind.apply(t, o))(); return r && _setPrototypeOf(p, r.prototype), p; }
|
|
30
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
31
|
+
function _isNativeFunction(t) { try { return -1 !== Function.toString.call(t).indexOf("[native code]"); } catch (n) { return "function" == typeof t; } }
|
|
32
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
33
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
34
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
35
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
36
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /*
|
|
37
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
38
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
39
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
40
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
41
|
+
* Side Public License, v 1.
|
|
42
|
+
*/ /**
|
|
43
|
+
* @license MIT License
|
|
44
|
+
*
|
|
45
|
+
* Copyright (c) 2025 Martin Winkler
|
|
46
|
+
*
|
|
47
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
48
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
49
|
+
* in the Software without restriction, including without limitation the rights
|
|
50
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
51
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
52
|
+
* furnished to do so, subject to the following conditions:
|
|
53
|
+
*
|
|
54
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
55
|
+
* copies or substantial portions of the Software.
|
|
56
|
+
*
|
|
57
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
58
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
59
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
60
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
61
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
62
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
63
|
+
* SOFTWARE.
|
|
64
|
+
*
|
|
65
|
+
* @see {@link https://github.com/teetotum/match-container/blob/main/matchContainer.js}
|
|
66
|
+
*/
|
|
67
|
+
/**
|
|
68
|
+
* Listen for changes on a container query.
|
|
69
|
+
* Just like `window.matchMedia`.
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* ```js
|
|
73
|
+
* const cql = matchContainer(element, '(width > 42rem)');
|
|
74
|
+
* cql.addEventListener('change', ({ matches }) {
|
|
75
|
+
* // ..
|
|
76
|
+
* })
|
|
77
|
+
* ```
|
|
78
|
+
*
|
|
79
|
+
* @param element
|
|
80
|
+
* @param containerQueryString e.g. (width > 42rem)
|
|
81
|
+
* @returns ContainerQueryList
|
|
82
|
+
*/
|
|
83
|
+
function matchContainer(element, containerQueryString) {
|
|
84
|
+
return new ContainerQueryList(element, containerQueryString);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* `change` event dispatched by instances of {@link ContainerQueryList}
|
|
89
|
+
* whenever the value of `matches` changes
|
|
90
|
+
*/
|
|
91
|
+
var ContainerQueryListChangeEvent = exports.ContainerQueryListChangeEvent = /*#__PURE__*/function (_Event) {
|
|
92
|
+
function ContainerQueryListChangeEvent(matches, container) {
|
|
93
|
+
var _this;
|
|
94
|
+
_classCallCheck(this, ContainerQueryListChangeEvent);
|
|
95
|
+
_this = _callSuper(this, ContainerQueryListChangeEvent, ['change']);
|
|
96
|
+
/** Whether the container query matches */
|
|
97
|
+
_defineProperty(_this, "matches", void 0);
|
|
98
|
+
/** A string representation of the container query list e.g. "(width > 1000px)" */
|
|
99
|
+
_defineProperty(_this, "container", void 0);
|
|
100
|
+
_this.matches = matches;
|
|
101
|
+
_this.container = container;
|
|
102
|
+
return _this;
|
|
103
|
+
}
|
|
104
|
+
_inherits(ContainerQueryListChangeEvent, _Event);
|
|
105
|
+
return _createClass(ContainerQueryListChangeEvent);
|
|
106
|
+
}( /*#__PURE__*/_wrapNativeSuper(Event));
|
|
107
|
+
/**
|
|
108
|
+
* A hacky implementation of a possible native `ContainerQueryList`
|
|
109
|
+
* based on the teetotum/match-container polyfill:
|
|
110
|
+
* - based on a API proposal in W3C CSS WG {@link https://github.com/w3c/csswg-drafts/issues/6205})
|
|
111
|
+
* - mimicking MediaQueryList {@link https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList}
|
|
112
|
+
*
|
|
113
|
+
* Not meant to be used directly, but rather call `matchContainer`.
|
|
114
|
+
*
|
|
115
|
+
* It works by listening on a `transitionrun` event on the element,
|
|
116
|
+
* that gets triggered by a container query changing a custom property.
|
|
117
|
+
* Setting `transition-behavior: allow-discrete` is what makes it possible
|
|
118
|
+
* to have a CSS `transition` for a custom property.
|
|
119
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/transition-behavior}
|
|
120
|
+
*/
|
|
121
|
+
var _matches = /*#__PURE__*/new WeakMap();
|
|
122
|
+
var ContainerQueryList = exports.ContainerQueryList = /*#__PURE__*/function (_EventTarget) {
|
|
123
|
+
function ContainerQueryList(element, containerQueryString) {
|
|
124
|
+
var _this2;
|
|
125
|
+
_classCallCheck(this, ContainerQueryList);
|
|
126
|
+
_this2 = _callSuper(this, ContainerQueryList);
|
|
127
|
+
_defineProperty(_this2, "element", null);
|
|
128
|
+
_defineProperty(_this2, "styleSheet", null);
|
|
129
|
+
_defineProperty(_this2, "markerAttributeName", '');
|
|
130
|
+
_defineProperty(_this2, "sentinelPropertyName", '');
|
|
131
|
+
_defineProperty(_this2, "computedStyle", null);
|
|
132
|
+
_defineProperty(_this2, "transitionRunListener", null);
|
|
133
|
+
_classPrivateFieldInitSpec(_this2, _matches, false);
|
|
134
|
+
/**
|
|
135
|
+
* A string representation of the container query list e.g. "(width > 1000px)"
|
|
136
|
+
* (the name is weird but it is so for consistency with mediaQueryList.media)
|
|
137
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList/media}
|
|
138
|
+
* */
|
|
139
|
+
_defineProperty(_this2, "container", void 0);
|
|
140
|
+
_this2.container = containerQueryString;
|
|
141
|
+
_this2.element = element;
|
|
142
|
+
// we call this only once to try to avoid any impact on performance
|
|
143
|
+
_this2.computedStyle = getComputedStyle(_this2.element);
|
|
144
|
+
var uniqueName = "container-query-observer-".concat((0, _uuid.v1)());
|
|
145
|
+
_this2.markerAttributeName = "data-".concat(uniqueName);
|
|
146
|
+
_this2.sentinelPropertyName = "--".concat(uniqueName);
|
|
147
|
+
|
|
148
|
+
// order is important (as in life)
|
|
149
|
+
_this2.applyMarkerAttribute();
|
|
150
|
+
_this2.createStyleSheet();
|
|
151
|
+
_classPrivateFieldSet(_matches, _this2, _this2.computedStyle.getPropertyValue(_this2.sentinelPropertyName) === '--true');
|
|
152
|
+
_this2.setupTransitionListener();
|
|
153
|
+
return _this2;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* The marker attribute is `data-container-query-observer-{UUID}`,
|
|
158
|
+
* it will be used as a selector in the container query,
|
|
159
|
+
* in the global CSS that's being added below.
|
|
160
|
+
*/
|
|
161
|
+
_inherits(ContainerQueryList, _EventTarget);
|
|
162
|
+
return _createClass(ContainerQueryList, [{
|
|
163
|
+
key: "matches",
|
|
164
|
+
get: /** Whether the container query matches */
|
|
165
|
+
function get() {
|
|
166
|
+
return _classPrivateFieldGet(_matches, this);
|
|
167
|
+
}
|
|
168
|
+
}, {
|
|
169
|
+
key: "applyMarkerAttribute",
|
|
170
|
+
value: function applyMarkerAttribute() {
|
|
171
|
+
this.element.setAttribute(this.markerAttributeName, '');
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Create a CSS custom property with values either `--true` or `--false`,
|
|
176
|
+
* and add container query targetting the element.
|
|
177
|
+
* Whenever the container query matches, the custom property will be `--true`.
|
|
178
|
+
* This styles are added globaly via `document.adoptedStyleSheets`.
|
|
179
|
+
*/
|
|
180
|
+
}, {
|
|
181
|
+
key: "createStyleSheet",
|
|
182
|
+
value: function createStyleSheet() {
|
|
183
|
+
var css = "\n @property ".concat(this.sentinelPropertyName, " {\n syntax: '<custom-ident>';\n inherits: false;\n initial-value: --false;\n }\n @container ").concat(this.container, " {\n [").concat(this.markerAttributeName, "] {\n ").concat(this.sentinelPropertyName, ": --true;\n }\n }\n ");
|
|
184
|
+
var styleSheet = new CSSStyleSheet();
|
|
185
|
+
styleSheet.replaceSync(css);
|
|
186
|
+
document.adoptedStyleSheets = [].concat(_toConsumableArray(document.adoptedStyleSheets), [styleSheet]);
|
|
187
|
+
this.styleSheet = styleSheet;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* This is the key to the hack:
|
|
192
|
+
* - a `transition` style is added for the custom property
|
|
193
|
+
* - the `transitionrun` event will fire whenever the custom property value changes
|
|
194
|
+
* because of the container query
|
|
195
|
+
* - we get the value from computed styles
|
|
196
|
+
* - the `matches` value is updated and
|
|
197
|
+
* - a ContainerQueryListChangeEvent event is dispatched
|
|
198
|
+
*/
|
|
199
|
+
}, {
|
|
200
|
+
key: "setupTransitionListener",
|
|
201
|
+
value: function setupTransitionListener() {
|
|
202
|
+
var _this3 = this;
|
|
203
|
+
var element = this.element,
|
|
204
|
+
computedStyle = this.computedStyle,
|
|
205
|
+
sentinelPropertyName = this.sentinelPropertyName;
|
|
206
|
+
if (!element) return;
|
|
207
|
+
var currentValue = computedStyle.getPropertyValue(sentinelPropertyName);
|
|
208
|
+
element.style.setProperty('transition', "".concat(sentinelPropertyName, " 0.001ms step-start"));
|
|
209
|
+
element.style.setProperty('transition-behavior', 'allow-discrete');
|
|
210
|
+
this.transitionRunListener = function (event) {
|
|
211
|
+
if (event.target !== element) return;
|
|
212
|
+
var nextValue = computedStyle.getPropertyValue(sentinelPropertyName);
|
|
213
|
+
if (nextValue === currentValue) return;
|
|
214
|
+
currentValue = nextValue;
|
|
215
|
+
_classPrivateFieldSet(_matches, _this3, nextValue === '--true');
|
|
216
|
+
_this3.dispatchEvent(new ContainerQueryListChangeEvent(_classPrivateFieldGet(_matches, _this3), _this3.container));
|
|
217
|
+
};
|
|
218
|
+
element.addEventListener('transitionrun', this.transitionRunListener);
|
|
219
|
+
}
|
|
220
|
+
}, {
|
|
221
|
+
key: "dispose",
|
|
222
|
+
value: function dispose() {
|
|
223
|
+
var _this4 = this;
|
|
224
|
+
// remove the stylesheet from adoptedStyleSheets
|
|
225
|
+
if (this.styleSheet) {
|
|
226
|
+
document.adoptedStyleSheets = document.adoptedStyleSheets.filter(function (sheet) {
|
|
227
|
+
return sheet !== _this4.styleSheet;
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
if (!this.element) return;
|
|
231
|
+
if (this.transitionRunListener) {
|
|
232
|
+
this.element.removeEventListener('transitionrun', this.transitionRunListener);
|
|
233
|
+
}
|
|
234
|
+
this.element.removeAttribute(this.markerAttributeName);
|
|
235
|
+
this.element.style.removeProperty('transition');
|
|
236
|
+
this.element.style.removeProperty('transition-behavior');
|
|
237
|
+
this.element = null;
|
|
238
|
+
this.styleSheet = null;
|
|
239
|
+
this.computedStyle = null;
|
|
240
|
+
this.transitionRunListener = null;
|
|
241
|
+
}
|
|
242
|
+
}]);
|
|
243
|
+
}( /*#__PURE__*/_wrapNativeSuper(EventTarget));
|
|
@@ -428,59 +428,40 @@ export var EuiBasicTable = /*#__PURE__*/function (_Component) {
|
|
|
428
428
|
var totalItemCount = pagination ? pagination.totalItemCount : itemCount;
|
|
429
429
|
var page = pagination ? pagination.pageIndex + 1 : 1;
|
|
430
430
|
var pageCount = pagination ? Math.ceil(pagination.totalItemCount / this.pageSize) : 1;
|
|
431
|
-
var
|
|
432
|
-
if (
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
}
|
|
442
|
-
});
|
|
443
|
-
} else {
|
|
444
|
-
captionElement = tableCaption;
|
|
445
|
-
}
|
|
446
|
-
} else {
|
|
447
|
-
if (pagination) {
|
|
448
|
-
if (pagination.totalItemCount > 0) {
|
|
449
|
-
captionElement = ___EmotionJSX(EuiI18n, {
|
|
450
|
-
token: "euiBasicTable.tableAutoCaptionWithPagination",
|
|
451
|
-
default: "This table contains {itemCount} rows out of {totalItemCount} rows; Page {page} of {pageCount}.",
|
|
452
|
-
values: {
|
|
453
|
-
totalItemCount: totalItemCount,
|
|
454
|
-
itemCount: itemCount,
|
|
455
|
-
page: page,
|
|
456
|
-
pageCount: pageCount
|
|
457
|
-
}
|
|
458
|
-
});
|
|
459
|
-
} else {
|
|
460
|
-
captionElement = ___EmotionJSX(EuiI18n, {
|
|
461
|
-
token: "euiBasicTable.tableSimpleAutoCaptionWithPagination",
|
|
462
|
-
default: "This table contains {itemCount} rows; Page {page} of {pageCount}.",
|
|
463
|
-
values: {
|
|
464
|
-
itemCount: itemCount,
|
|
465
|
-
page: page,
|
|
466
|
-
pageCount: pageCount
|
|
467
|
-
}
|
|
468
|
-
});
|
|
431
|
+
var itemCountPart = null;
|
|
432
|
+
if (!itemCount) {
|
|
433
|
+
itemCountPart = "".concat(this.props.noItemsMessage, ",");
|
|
434
|
+
} else if (pagination && totalItemCount > 0) {
|
|
435
|
+
itemCountPart = ___EmotionJSX("p", null, ___EmotionJSX(EuiI18n, {
|
|
436
|
+
token: "euiBasicTable.caption.itemCountPart.withTotalItemCount",
|
|
437
|
+
default: "Showing {itemCount} of {totalItemCount} data rows.",
|
|
438
|
+
values: {
|
|
439
|
+
itemCount: itemCount,
|
|
440
|
+
totalItemCount: totalItemCount
|
|
469
441
|
}
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
442
|
+
}));
|
|
443
|
+
}
|
|
444
|
+
var paginationPart = null;
|
|
445
|
+
if (pagination && pageCount > 1) {
|
|
446
|
+
paginationPart = ___EmotionJSX("p", null, ___EmotionJSX(EuiI18n, {
|
|
447
|
+
token: "euiBasicTable.caption.paginationPart.withPageCount",
|
|
448
|
+
default: "Page {page} of {pageCount}.",
|
|
449
|
+
values: {
|
|
450
|
+
page: page,
|
|
451
|
+
pageCount: pageCount
|
|
452
|
+
}
|
|
453
|
+
}));
|
|
479
454
|
}
|
|
480
455
|
return ___EmotionJSX(EuiScreenReaderOnly, null, ___EmotionJSX("caption", {
|
|
481
456
|
css: euiTableCaptionStyles,
|
|
482
457
|
className: "euiTableCaption"
|
|
483
|
-
}, tabularCopyMarkers.hiddenNoCopyBoundary, ___EmotionJSX(EuiDelayRender, null,
|
|
458
|
+
}, tabularCopyMarkers.hiddenNoCopyBoundary, ___EmotionJSX(EuiDelayRender, null, ___EmotionJSX("p", null, tableCaption || ___EmotionJSX(EuiI18n, {
|
|
459
|
+
token: "euiBasicTable.caption.tableName",
|
|
460
|
+
default: "Data table"
|
|
461
|
+
}), itemCount === 0 && ___EmotionJSX(React.Fragment, null, ' ', ___EmotionJSX(EuiI18n, {
|
|
462
|
+
token: "euiBasicTable.caption.emptyState",
|
|
463
|
+
default: "(empty)"
|
|
464
|
+
})), ','), itemCountPart, paginationPart), tabularCopyMarkers.hiddenNoCopyBoundary));
|
|
484
465
|
}
|
|
485
466
|
}, {
|
|
486
467
|
key: "renderTableHead",
|
|
@@ -960,7 +941,7 @@ export var EuiBasicTable = /*#__PURE__*/function (_Component) {
|
|
|
960
941
|
key: "getDerivedStateFromProps",
|
|
961
942
|
value: function getDerivedStateFromProps(nextProps, prevState) {
|
|
962
943
|
if (!nextProps.selection) {
|
|
963
|
-
// next props
|
|
944
|
+
// next props don't have a selection, reset our state
|
|
964
945
|
return {
|
|
965
946
|
selection: []
|
|
966
947
|
};
|
|
@@ -23,7 +23,7 @@ export var euiBeaconStyles = function euiBeaconStyles(euiThemeContext) {
|
|
|
23
23
|
euiBeacon: /*#__PURE__*/css("position:relative;display:flex;justify-content:center;border-radius:50%;", preventForcedColors(euiThemeContext), " svg{", logicalSizeCSS('100%'), ";}&::before,&::after{position:absolute;content:'';", logicalSizeCSS('100%'), " ", logicalCSS('left', 0), " ", logicalCSS('top', 0), " background-color:transparent;border-radius:50%;}&::before{transform:scale(1.6);opacity:0.4;}&::after{opacity:0;}", euiCanAnimate, "{&::before{animation:", euiBeaconPulseLarge, " 2.5s infinite ease-out;}&::after{animation:", euiBeaconPulseSmall, " 2.5s infinite ease-out 0.25s;}};label:euiBeacon;"),
|
|
24
24
|
subdued: /*#__PURE__*/css(_colorCSS(euiTheme.colors.textSubdued), ";label:subdued;"),
|
|
25
25
|
primary: /*#__PURE__*/css(_colorCSS(euiTheme.colors.primary), ";label:primary;"),
|
|
26
|
-
success: /*#__PURE__*/css(_colorCSS(euiTheme.colors.
|
|
26
|
+
success: /*#__PURE__*/css(_colorCSS(euiTheme.colors.success), ";label:success;"),
|
|
27
27
|
warning: /*#__PURE__*/css(_colorCSS(euiTheme.colors.warning), ";label:warning;"),
|
|
28
28
|
danger: /*#__PURE__*/css(_colorCSS(euiTheme.colors.danger), ";label:danger;"),
|
|
29
29
|
accent: /*#__PURE__*/css(_colorCSS(euiTheme.colors.accent), ";label:accent;")
|
|
@@ -9,4 +9,5 @@
|
|
|
9
9
|
export { COLORS, EuiButton } from './button';
|
|
10
10
|
export { EuiButtonEmpty } from './button_empty';
|
|
11
11
|
export { EuiButtonIcon } from './button_icon';
|
|
12
|
-
export { EuiButtonGroup } from './button_group';
|
|
12
|
+
export { EuiButtonGroup } from './button_group';
|
|
13
|
+
export { EuiSplitButton } from './split_button';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
3
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
4
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
5
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
6
|
+
* Side Public License, v 1.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
export { EuiSplitButton } from './split_button';
|
|
10
|
+
export { EuiSplitButtonActionPrimary, EuiSplitButtonActionSecondary } from './split_button_actions';
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
+
var _excluded = ["className", "children", "size", "color", "fill", "isDisabled", "hasAriaDisabled", "isLoading"];
|
|
5
|
+
/*
|
|
6
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
7
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
8
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
9
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
10
|
+
* Side Public License, v 1.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import classNames from 'classnames';
|
|
14
|
+
import React, { Children, Fragment, isValidElement, useMemo } from 'react';
|
|
15
|
+
import { useEuiMemoizedStyles, useEuiTheme, useGeneratedHtmlId } from '../../../services';
|
|
16
|
+
import { getEuiButtonColors, getEuiFilledButtonColors } from '../../../global_styling';
|
|
17
|
+
import { EuiSplitButtonContext } from './split_button_context';
|
|
18
|
+
import { EuiSplitButtonActionPrimary, EuiSplitButtonActionSecondary } from './split_button_actions';
|
|
19
|
+
import { euiSplitButtonDividerStyles, euiSplitButtonStyles } from './split_button.styles';
|
|
20
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
21
|
+
export var _EuiSplitButton = function _EuiSplitButton(_ref) {
|
|
22
|
+
var className = _ref.className,
|
|
23
|
+
children = _ref.children,
|
|
24
|
+
_ref$size = _ref.size,
|
|
25
|
+
size = _ref$size === void 0 ? 'm' : _ref$size,
|
|
26
|
+
_ref$color = _ref.color,
|
|
27
|
+
color = _ref$color === void 0 ? 'primary' : _ref$color,
|
|
28
|
+
_ref$fill = _ref.fill,
|
|
29
|
+
fill = _ref$fill === void 0 ? false : _ref$fill,
|
|
30
|
+
isDisabled = _ref.isDisabled,
|
|
31
|
+
hasAriaDisabled = _ref.hasAriaDisabled,
|
|
32
|
+
isLoading = _ref.isLoading,
|
|
33
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
34
|
+
var euiThemeContext = useEuiTheme();
|
|
35
|
+
var highContrastMode = euiThemeContext.highContrastMode;
|
|
36
|
+
var _children = _slicedToArray(children, 2),
|
|
37
|
+
primaryAction = _children[0],
|
|
38
|
+
secondaryAction = _children[1];
|
|
39
|
+
var key = useGeneratedHtmlId({
|
|
40
|
+
suffix: 'EuiSplitButton'
|
|
41
|
+
});
|
|
42
|
+
var commonProps = {
|
|
43
|
+
size: size,
|
|
44
|
+
color: color,
|
|
45
|
+
fill: fill,
|
|
46
|
+
isDisabled: isDisabled,
|
|
47
|
+
hasAriaDisabled: hasAriaDisabled,
|
|
48
|
+
isLoading: isLoading
|
|
49
|
+
};
|
|
50
|
+
var buttonFilledColors = getEuiFilledButtonColors(euiThemeContext, isDisabled ? 'disabled' : color);
|
|
51
|
+
var buttonColors = getEuiButtonColors(euiThemeContext, isDisabled ? 'disabled' : color);
|
|
52
|
+
var classes = classNames('euiSplitButton', className);
|
|
53
|
+
var styles = useEuiMemoizedStyles(euiSplitButtonStyles);
|
|
54
|
+
var cssStyles = [styles.euiSplitButton, fill && styles.fill];
|
|
55
|
+
var dividerStyles = useMemo(function () {
|
|
56
|
+
return euiSplitButtonDividerStyles(euiThemeContext, !fill ? buttonColors.borderColor : highContrastMode && fill ? buttonFilledColors.backgroundColor : 'transparent');
|
|
57
|
+
}, [euiThemeContext, highContrastMode, fill, buttonFilledColors.backgroundColor, buttonColors.borderColor]);
|
|
58
|
+
|
|
59
|
+
// NOTE: dev-mode-only runtime check to evaluate if correct child components are passed
|
|
60
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
61
|
+
var childArray = Children.toArray(children);
|
|
62
|
+
var expectedTypes = [['EuiSplitButton.ActionPrimary', 'EuiSplitButtonActionPrimary'], ['EuiSplitButton.ActionSecondary', 'EuiSplitButtonActionSecondary']];
|
|
63
|
+
childArray.forEach(function (child, index) {
|
|
64
|
+
if (! /*#__PURE__*/isValidElement(child)) return;
|
|
65
|
+
var componentName = getComponentName(child.type);
|
|
66
|
+
var expectedComponents = expectedTypes[index];
|
|
67
|
+
if (!expectedComponents.includes(componentName)) {
|
|
68
|
+
console.warn("\u26A0\uFE0F EuiSplitButton: Expected <".concat(expectedComponents[0], "> at position ").concat(index + 1, ", got <").concat(componentName, ">. You might be using a wrapper. Using e.g. React.memo() or React.lazy() is valid, other component wrappers are not and will break styling.\n To verify expected usage, please check the documentation: https://eui.elastic.co/docs/components/navigation/buttons/split-button/"));
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
return ___EmotionJSX("div", _extends({
|
|
73
|
+
role: "group",
|
|
74
|
+
className: classes,
|
|
75
|
+
css: cssStyles
|
|
76
|
+
}, rest), ___EmotionJSX(EuiSplitButtonContext.Provider, {
|
|
77
|
+
value: commonProps
|
|
78
|
+
}, ___EmotionJSX(Fragment, {
|
|
79
|
+
key: "".concat(key, "-primaryAction")
|
|
80
|
+
}, primaryAction), ___EmotionJSX("div", {
|
|
81
|
+
className: "euiSplitButton__divider",
|
|
82
|
+
css: dividerStyles.divider,
|
|
83
|
+
"aria-hidden": "true"
|
|
84
|
+
}), ___EmotionJSX(Fragment, {
|
|
85
|
+
key: "".concat(key, "-secondaryAction")
|
|
86
|
+
}, secondaryAction)));
|
|
87
|
+
};
|
|
88
|
+
export var EuiSplitButton = Object.assign(_EuiSplitButton, {
|
|
89
|
+
ActionPrimary: EuiSplitButtonActionPrimary,
|
|
90
|
+
ActionSecondary: EuiSplitButtonActionSecondary
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
/* internal utils */
|
|
94
|
+
|
|
95
|
+
var getComponentName = function getComponentName(type) {
|
|
96
|
+
if (typeof type === 'string') return type;
|
|
97
|
+
return type.displayName || type.name || 'Unknown';
|
|
98
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
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)."; }
|
|
2
|
+
/*
|
|
3
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
4
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
5
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
6
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
7
|
+
* Side Public License, v 1.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import { css } from '@emotion/react';
|
|
11
|
+
import { euiDisabledSelector, highContrastModeStyles } from '../../../global_styling';
|
|
12
|
+
export var euiSplitButtonStyles = function euiSplitButtonStyles(euiThemeContext) {
|
|
13
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
14
|
+
var primaryDisabledSelector = ".euiSplitButtonActionPrimary:is(".concat(euiDisabledSelector, ")");
|
|
15
|
+
var secondaryDisabledSelector = ".euiSplitButtonActionSecondary:is(".concat(euiDisabledSelector, ")");
|
|
16
|
+
var dividerSelector = ".euiSplitButton__divider";
|
|
17
|
+
return {
|
|
18
|
+
euiSplitButton: /*#__PURE__*/css("display:inline-flex;flex-wrap:nowrap;&:has(", primaryDisabledSelector, "):has(", secondaryDisabledSelector, "){", dividerSelector, "{", highContrastModeStyles(euiThemeContext, {
|
|
19
|
+
// When both buttons are disabled set as visual gap
|
|
20
|
+
none: "\n border-color: transparent;\n ",
|
|
21
|
+
// When both buttons are disabled set a disabled divider color
|
|
22
|
+
preferred: "\n border-color: ".concat(euiTheme.colors.borderBaseDisabled, ";\n ")
|
|
23
|
+
}), ";}};label:euiSplitButton;"),
|
|
24
|
+
// When both buttons are enabled set as visual gap
|
|
25
|
+
fill: /*#__PURE__*/css("&:not(:has(", primaryDisabledSelector, ")):not(\n :has(", secondaryDisabledSelector, ")\n ){", dividerSelector, "{border-color:transparent;}};label:fill;")
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export var euiSplitButtonActionStyles = {
|
|
29
|
+
euiSplitButtonActionPrimary: process.env.NODE_ENV === "production" ? {
|
|
30
|
+
name: "12txneb-euiSplitButtonActionPrimary",
|
|
31
|
+
styles: "z-index:0;border-inline-end:none;border-start-end-radius:0;border-end-end-radius:0;label:euiSplitButtonActionPrimary;"
|
|
32
|
+
} : {
|
|
33
|
+
name: "12txneb-euiSplitButtonActionPrimary",
|
|
34
|
+
styles: "z-index:0;border-inline-end:none;border-start-end-radius:0;border-end-end-radius:0;label:euiSplitButtonActionPrimary;",
|
|
35
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
36
|
+
},
|
|
37
|
+
euiSplitButtonActionSecondary: process.env.NODE_ENV === "production" ? {
|
|
38
|
+
name: "5uh4vx-euiSplitButtonActionSecondary",
|
|
39
|
+
styles: "border-inline-start:none;border-start-start-radius:0;border-end-start-radius:0;label:euiSplitButtonActionSecondary;"
|
|
40
|
+
} : {
|
|
41
|
+
name: "5uh4vx-euiSplitButtonActionSecondary",
|
|
42
|
+
styles: "border-inline-start:none;border-start-start-radius:0;border-end-start-radius:0;label:euiSplitButtonActionSecondary;",
|
|
43
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
export var euiSplitButtonDividerStyles = function euiSplitButtonDividerStyles(euiThemeContext, color) {
|
|
47
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
48
|
+
return {
|
|
49
|
+
divider: /*#__PURE__*/css("border-inline-start:", euiTheme.border.width.thin, " solid ", color, ";;label:divider;")
|
|
50
|
+
};
|
|
51
|
+
};
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
+
var _excluded = ["className", "isIconOnly", "tooltipProps"],
|
|
5
|
+
_excluded2 = ["fill", "isDisabled", "isLoading"],
|
|
6
|
+
_excluded3 = ["className", "popoverProps", "tooltipProps"],
|
|
7
|
+
_excluded4 = ["fill", "isDisabled", "isLoading"];
|
|
8
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
9
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10
|
+
/*
|
|
11
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
12
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
13
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
14
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
15
|
+
* Side Public License, v 1.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
import React, { useContext } from 'react';
|
|
19
|
+
import classNames from 'classnames';
|
|
20
|
+
import { EuiPopover } from '../../popover';
|
|
21
|
+
import { EuiToolTip } from '../../tool_tip';
|
|
22
|
+
import { EuiButton } from '../button';
|
|
23
|
+
import { isButtonDisabled } from '../button_display/_button_display';
|
|
24
|
+
import { EuiButtonIcon } from '../button_icon';
|
|
25
|
+
import { euiSplitButtonActionStyles } from './split_button.styles';
|
|
26
|
+
import { EuiSplitButtonContext } from './split_button_context';
|
|
27
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
28
|
+
export var EuiSplitButtonActionPrimary = function EuiSplitButtonActionPrimary(_ref) {
|
|
29
|
+
var className = _ref.className,
|
|
30
|
+
isIconOnly = _ref.isIconOnly,
|
|
31
|
+
tooltipProps = _ref.tooltipProps,
|
|
32
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
33
|
+
var _useContext = useContext(EuiSplitButtonContext),
|
|
34
|
+
fill = _useContext.fill,
|
|
35
|
+
isDisabled = _useContext.isDisabled,
|
|
36
|
+
isLoading = _useContext.isLoading,
|
|
37
|
+
sharedRest = _objectWithoutProperties(_useContext, _excluded2);
|
|
38
|
+
var _isDisabled = !!isDisabled || isButtonDisabled(rest);
|
|
39
|
+
var _isLoading = !!isLoading || !!rest.isLoading;
|
|
40
|
+
var display = fill ? 'fill' : 'base';
|
|
41
|
+
var classes = classNames('euiSplitButtonActionPrimary', className);
|
|
42
|
+
var styles = euiSplitButtonActionStyles;
|
|
43
|
+
var actionProps = _objectSpread(_objectSpread(_objectSpread({}, rest), sharedRest), {}, {
|
|
44
|
+
isDisabled: _isDisabled,
|
|
45
|
+
isLoading: _isLoading,
|
|
46
|
+
css: [styles.euiSplitButtonActionPrimary],
|
|
47
|
+
className: classes
|
|
48
|
+
});
|
|
49
|
+
var actionButtonProps = _objectSpread(_objectSpread({}, actionProps), {}, {
|
|
50
|
+
fill: fill
|
|
51
|
+
});
|
|
52
|
+
var actionIconProps = _objectSpread(_objectSpread({}, actionProps), {}, {
|
|
53
|
+
display: display
|
|
54
|
+
});
|
|
55
|
+
var button = isIconOnly ? ___EmotionJSX(EuiButtonIcon, actionIconProps) : ___EmotionJSX(EuiButton, actionButtonProps);
|
|
56
|
+
return tooltipProps ? ___EmotionJSX(EuiToolTip, tooltipProps, button) : button;
|
|
57
|
+
};
|
|
58
|
+
export var EuiSplitButtonActionSecondary = function EuiSplitButtonActionSecondary(_ref2) {
|
|
59
|
+
var className = _ref2.className,
|
|
60
|
+
popoverProps = _ref2.popoverProps,
|
|
61
|
+
tooltipProps = _ref2.tooltipProps,
|
|
62
|
+
rest = _objectWithoutProperties(_ref2, _excluded3);
|
|
63
|
+
var _useContext2 = useContext(EuiSplitButtonContext),
|
|
64
|
+
fill = _useContext2.fill,
|
|
65
|
+
isDisabled = _useContext2.isDisabled,
|
|
66
|
+
isLoading = _useContext2.isLoading,
|
|
67
|
+
sharedRest = _objectWithoutProperties(_useContext2, _excluded4);
|
|
68
|
+
var _isDisabled = !!isDisabled || isButtonDisabled(rest);
|
|
69
|
+
var _isLoading = !!isLoading || !!rest.isLoading;
|
|
70
|
+
var display = fill ? 'fill' : 'base';
|
|
71
|
+
var classes = classNames('euiSplitButtonActionSecondary', className);
|
|
72
|
+
var styles = euiSplitButtonActionStyles;
|
|
73
|
+
var actionProps = _objectSpread(_objectSpread(_objectSpread({}, rest), sharedRest), {}, {
|
|
74
|
+
display: display,
|
|
75
|
+
// enforce arrowDown icon when a popover is rendered
|
|
76
|
+
iconType: popoverProps != null ? 'arrowDown' : rest.iconType,
|
|
77
|
+
isDisabled: _isDisabled,
|
|
78
|
+
isLoading: _isLoading,
|
|
79
|
+
css: [styles.euiSplitButtonActionSecondary],
|
|
80
|
+
className: classes
|
|
81
|
+
});
|
|
82
|
+
var button = ___EmotionJSX(EuiButtonIcon, actionProps);
|
|
83
|
+
var action = tooltipProps ? ___EmotionJSX(EuiToolTip, tooltipProps, button) : button;
|
|
84
|
+
return popoverProps ? ___EmotionJSX(EuiPopover, _extends({
|
|
85
|
+
anchorPosition: "downCenter"
|
|
86
|
+
}, popoverProps, {
|
|
87
|
+
button: action
|
|
88
|
+
})) : action;
|
|
89
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
3
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
4
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
5
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
6
|
+
* Side Public License, v 1.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { createContext } from 'react';
|
|
10
|
+
export var EuiSplitButtonContext = /*#__PURE__*/createContext({
|
|
11
|
+
size: 'm',
|
|
12
|
+
color: 'primary',
|
|
13
|
+
fill: false
|
|
14
|
+
});
|
|
@@ -10,7 +10,7 @@ import { css } from '@emotion/css';
|
|
|
10
10
|
import { logicalCSS } from '../../../global_styling';
|
|
11
11
|
export var euiDataGridFullScreenStyles = function euiDataGridFullScreenStyles(euiThemeContext) {
|
|
12
12
|
var euiTheme = euiThemeContext.euiTheme;
|
|
13
|
-
var fullScreenZIndex = Number(euiTheme.levels.header) -
|
|
13
|
+
var fullScreenZIndex = Number(euiTheme.levels.header) - 2;
|
|
14
14
|
return {
|
|
15
15
|
'euiDataGrid--fullScreen': /*#__PURE__*/css("z-index:", fullScreenZIndex, ";position:fixed;inset:0;background-color:", euiTheme.colors.emptyShade, ";;label:euiDataGrid--fullScreen;"),
|
|
16
16
|
// This is a vanilla className applied to the <body> when fullscreen is enabled.
|
|
@@ -107,7 +107,7 @@ export var EuiEmptyPrompt = function EuiEmptyPrompt(_ref) {
|
|
|
107
107
|
}, title && ___EmotionJSX(EuiTitle, {
|
|
108
108
|
size: titleSize
|
|
109
109
|
}, title), title && body && ___EmotionJSX(EuiSpacer, {
|
|
110
|
-
size: "
|
|
110
|
+
size: "s"
|
|
111
111
|
}), body && ___EmotionJSX(EuiText, {
|
|
112
112
|
color: "subdued"
|
|
113
113
|
}, body), actionsNode && (body || title) && ___EmotionJSX(EuiSpacer, {
|