@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,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.EuiSplitButtonContext = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
/*
|
|
9
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
10
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
11
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
12
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
13
|
+
* Side Public License, v 1.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
var EuiSplitButtonContext = exports.EuiSplitButtonContext = /*#__PURE__*/(0, _react.createContext)({
|
|
17
|
+
size: 'm',
|
|
18
|
+
color: 'primary',
|
|
19
|
+
fill: false
|
|
20
|
+
});
|
|
@@ -16,7 +16,7 @@ var _global_styling = require("../../../global_styling");
|
|
|
16
16
|
|
|
17
17
|
var euiDataGridFullScreenStyles = exports.euiDataGridFullScreenStyles = function euiDataGridFullScreenStyles(euiThemeContext) {
|
|
18
18
|
var euiTheme = euiThemeContext.euiTheme;
|
|
19
|
-
var fullScreenZIndex = Number(euiTheme.levels.header) -
|
|
19
|
+
var fullScreenZIndex = Number(euiTheme.levels.header) - 2;
|
|
20
20
|
return {
|
|
21
21
|
'euiDataGrid--fullScreen': /*#__PURE__*/(0, _css.css)("z-index:", fullScreenZIndex, ";position:fixed;inset:0;background-color:", euiTheme.colors.emptyShade, ";;label:euiDataGrid--fullScreen;"),
|
|
22
22
|
// This is a vanilla className applied to the <body> when fullscreen is enabled.
|
|
@@ -116,7 +116,7 @@ var EuiEmptyPrompt = exports.EuiEmptyPrompt = function EuiEmptyPrompt(_ref) {
|
|
|
116
116
|
}, title && (0, _react2.jsx)(_title.EuiTitle, {
|
|
117
117
|
size: titleSize
|
|
118
118
|
}, title), title && body && (0, _react2.jsx)(_spacer.EuiSpacer, {
|
|
119
|
-
size: "
|
|
119
|
+
size: "s"
|
|
120
120
|
}), body && (0, _react2.jsx)(_text.EuiText, {
|
|
121
121
|
color: "subdued"
|
|
122
122
|
}, body), actionsNode && (body || title) && (0, _react2.jsx)(_spacer.EuiSpacer, {
|
|
@@ -32,7 +32,7 @@ var EuiFlexGroupInternal = function EuiFlexGroupInternal(_ref, ref) {
|
|
|
32
32
|
_ref$component = _ref.component,
|
|
33
33
|
component = _ref$component === void 0 ? 'div' : _ref$component,
|
|
34
34
|
_ref$gutterSize = _ref.gutterSize,
|
|
35
|
-
gutterSize = _ref$gutterSize === void 0 ? '
|
|
35
|
+
gutterSize = _ref$gutterSize === void 0 ? 'm' : _ref$gutterSize,
|
|
36
36
|
_ref$alignItems = _ref.alignItems,
|
|
37
37
|
alignItems = _ref$alignItems === void 0 ? 'stretch' : _ref$alignItems,
|
|
38
38
|
_ref$responsive = _ref.responsive,
|
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.maxedFlyoutWidth = exports.euiFlyoutStyles = exports.euiFlyoutSlideOutRight = exports.euiFlyoutSlideOutLeft = exports.euiFlyoutSlideInRight = exports.euiFlyoutSlideInLeft = exports.composeFlyoutSizing = exports.composeFlyoutInlineStyles = exports.FLYOUT_BREAKPOINT = void 0;
|
|
7
|
+
exports.maxedFlyoutWidth = exports.euiFlyoutStyles = exports.euiFlyoutSlideOutRight = exports.euiFlyoutSlideOutLeft = exports.euiFlyoutSlideInRight = exports.euiFlyoutSlideInLeft = exports.composeFlyoutSizing = exports.composeFlyoutInlineStyles = exports.FLYOUT_BREAKPOINT = exports.EUI_FLYOUT_CONTAINER_NAME = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
10
10
|
var _react = require("@emotion/react");
|
|
@@ -22,6 +22,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
22
22
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
23
23
|
* Side Public License, v 1.
|
|
24
24
|
*/
|
|
25
|
+
var EUI_FLYOUT_CONTAINER_NAME = exports.EUI_FLYOUT_CONTAINER_NAME = 'euiFlyout';
|
|
25
26
|
var FLYOUT_BREAKPOINT = exports.FLYOUT_BREAKPOINT = 'm';
|
|
26
27
|
var euiFlyoutSlideInRight = exports.euiFlyoutSlideInRight = (0, _react.keyframes)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n from {\n opacity: 0;\n transform: translateX(100%);\n }\n to {\n opacity: 1;\n transform: translateX(0%);\n }\n"])));
|
|
27
28
|
var euiFlyoutSlideOutRight = exports.euiFlyoutSlideOutRight = (0, _react.keyframes)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n from {\n opacity: 1;\n transform: translateX(0%);\n }\n to {\n opacity: 0;\n transform: translateX(100%);\n }\n"])));
|
|
@@ -27,7 +27,7 @@ var EuiHorizontalRule = exports.EuiHorizontalRule = function EuiHorizontalRule(_
|
|
|
27
27
|
_ref$size = _ref.size,
|
|
28
28
|
size = _ref$size === void 0 ? 'full' : _ref$size,
|
|
29
29
|
_ref$margin = _ref.margin,
|
|
30
|
-
margin = _ref$margin === void 0 ? '
|
|
30
|
+
margin = _ref$margin === void 0 ? 'm' : _ref$margin,
|
|
31
31
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
32
32
|
var classes = (0, _classnames.default)('euiHorizontalRule', className);
|
|
33
33
|
var styles = (0, _services.useEuiMemoizedStyles)(_horizontal_rule.euiHorizontalRuleStyles);
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.icon = void 0;
|
|
9
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
|
+
var React = _interopRequireWildcard(require("react"));
|
|
12
|
+
var _react2 = require("@emotion/react");
|
|
13
|
+
var _excluded = ["title", "titleId"];
|
|
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
|
+
// THIS IS A GENERATED FILE. DO NOT MODIFY MANUALLY. @see scripts/compile-icons.js
|
|
22
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
23
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
24
|
+
var EuiIconAgentBuilderRobot = function EuiIconAgentBuilderRobot(_ref) {
|
|
25
|
+
var title = _ref.title,
|
|
26
|
+
titleId = _ref.titleId,
|
|
27
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
28
|
+
return (0, _react2.jsx)("svg", (0, _extends2.default)({
|
|
29
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
30
|
+
width: 16,
|
|
31
|
+
height: 16,
|
|
32
|
+
viewBox: "0 0 16 16",
|
|
33
|
+
"aria-labelledby": titleId
|
|
34
|
+
}, props), title ? (0, _react2.jsx)("title", {
|
|
35
|
+
id: titleId
|
|
36
|
+
}, title) : null, (0, _react2.jsx)("path", {
|
|
37
|
+
d: "M9.208 11.23a.446.446 0 0 1 .642.616l-.015.017a1.373 1.373 0 0 1-.127.11 2.326 2.326 0 0 1-.355.227c-.31.163-.763.319-1.353.319a2.89 2.89 0 0 1-1.352-.319 2.325 2.325 0 0 1-.452-.31l-.029-.027-.016-.017a.446.446 0 0 1 .643-.617l.005.005.045.039c.045.035.118.086.219.139.199.104.51.216.937.216.428 0 .74-.112.94-.216a1.417 1.417 0 0 0 .263-.179l.005-.004ZM5.964 8a1.019 1.019 0 1 1 0 2.038 1.019 1.019 0 0 1 0-2.038Zm4.073 0a1.018 1.018 0 1 1 0 2.037 1.018 1.018 0 0 1 0-2.037Z"
|
|
38
|
+
}), (0, _react2.jsx)("path", {
|
|
39
|
+
fillRule: "evenodd",
|
|
40
|
+
d: "M8 1a1.4 1.4 0 0 1 .446 2.726V5h1.845C11.767 5 13 6.27 13 7.746V8h1.11c.491 0 .89.526.89 1.018v3.055c0 .492-.399.927-.89.927L13 12.99v1.11c0 .491-.435.9-.927.9H3.928C3.436 15 3 14.601 3 14.11V13H1.89c-.46 0-.84-.386-.886-.835L1 12.072V9.018C1 8.527 1.4 8 1.89 8H3v-.254C3 6.27 4.234 5 5.71 5h1.845V3.726A1.4 1.4 0 0 1 8 1ZM5.72 6C4.734 6 4 6.762 4 7.746V14h8V7.746C12 6.762 11.285 6 10.301 6H5.719ZM2 12h1V9H2v3Zm11 0h1l-.005-3h-1L13 12ZM8 1.89a.51.51 0 1 0 .001 1.02.51.51 0 0 0 0-1.02Z",
|
|
41
|
+
clipRule: "evenodd"
|
|
42
|
+
}));
|
|
43
|
+
};
|
|
44
|
+
var icon = exports.icon = EuiIconAgentBuilderRobot;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.icon = void 0;
|
|
9
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
|
+
var React = _interopRequireWildcard(require("react"));
|
|
12
|
+
var _react2 = require("@emotion/react");
|
|
13
|
+
var _excluded = ["title", "titleId"];
|
|
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
|
+
// THIS IS A GENERATED FILE. DO NOT MODIFY MANUALLY. @see scripts/compile-icons.js
|
|
22
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
23
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
24
|
+
var EuiIconCrossProjectSearch = function EuiIconCrossProjectSearch(_ref) {
|
|
25
|
+
var title = _ref.title,
|
|
26
|
+
titleId = _ref.titleId,
|
|
27
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
28
|
+
return (0, _react2.jsx)("svg", (0, _extends2.default)({
|
|
29
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
30
|
+
width: 16,
|
|
31
|
+
height: 16,
|
|
32
|
+
viewBox: "0 0 16 16",
|
|
33
|
+
"aria-labelledby": titleId
|
|
34
|
+
}, props), title ? (0, _react2.jsx)("title", {
|
|
35
|
+
id: titleId
|
|
36
|
+
}, title) : null, (0, _react2.jsx)("path", {
|
|
37
|
+
fillRule: "evenodd",
|
|
38
|
+
d: "M8.5 9h4a1 1 0 0 1 1 1v2.065A1.999 1.999 0 1 1 11 14a2 2 0 0 1 1.5-1.935V10h-4v2.065A1.999 1.999 0 1 1 6 14a2 2 0 0 1 1.5-1.935V10h-4v2.065A1.999 1.999 0 1 1 1 14a2 2 0 0 1 1.5-1.935V10a1 1 0 0 1 1-1h4V7h1v2ZM3 13a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm5 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm5 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2ZM7 0a3 3 0 0 1 3 3c0 .648-.208 1.246-.557 1.736l1.91 1.91-.707.708-1.91-1.91A3 3 0 1 1 7 0Zm0 1a2 2 0 1 0 0 4 2 2 0 0 0 0-4Z",
|
|
39
|
+
clipRule: "evenodd"
|
|
40
|
+
}));
|
|
41
|
+
};
|
|
42
|
+
var icon = exports.icon = EuiIconCrossProjectSearch;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.icon = void 0;
|
|
9
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
|
+
var React = _interopRequireWildcard(require("react"));
|
|
12
|
+
var _react2 = require("@emotion/react");
|
|
13
|
+
var _excluded = ["title", "titleId"];
|
|
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
|
+
// THIS IS A GENERATED FILE. DO NOT MODIFY MANUALLY. @see scripts/compile-icons.js
|
|
22
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
23
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
24
|
+
var EuiIconDashedCircle = function EuiIconDashedCircle(_ref) {
|
|
25
|
+
var title = _ref.title,
|
|
26
|
+
titleId = _ref.titleId,
|
|
27
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
28
|
+
return (0, _react2.jsx)("svg", (0, _extends2.default)({
|
|
29
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
30
|
+
width: 16,
|
|
31
|
+
height: 16,
|
|
32
|
+
viewBox: "0 0 16 16",
|
|
33
|
+
"aria-labelledby": titleId
|
|
34
|
+
}, props), title ? (0, _react2.jsx)("title", {
|
|
35
|
+
id: titleId
|
|
36
|
+
}, title) : null, (0, _react2.jsx)("path", {
|
|
37
|
+
d: "M7.014 14.222c.06-.381.419-.638.805-.625.06.002.12.003.182.003V15c-.134 0-.268-.004-.4-.012-.386-.022-.647-.384-.587-.766Zm1.973 0c.06.382-.202.744-.587.766A6.944 6.944 0 0 1 8 15v-1.4c.061 0 .122-.001.182-.003.386-.012.745.244.805.626Zm-5.8-2.236c.123-.303.536-.357.762-.12.088.092.18.181.273.268.257.234.322.626.117.907l-.039.052-.274-.49c-.06-.108-.226-.065-.226.06 0 .098-.113.155-.194.1-.279-.192-.177-.091-.378-.382a.41.41 0 0 1-.045-.386l.004-.01Zm9.911-.284c.312.227.383.667.126.955-.178.2-.367.388-.566.566-.288.257-.727.186-.954-.126-.228-.312-.156-.746.126-1.01.089-.084.175-.17.258-.258.264-.282.698-.354 1.01-.127ZM1.012 7.601c.022-.387.383-.648.765-.588.382.06.64.42.628.806-.004.12-.004.24 0 .36.012.388-.246.747-.628.806-.382.06-.743-.201-.765-.587a7.278 7.278 0 0 1 0-.797Zm13.976.797c-.021.386-.382.647-.764.587-.382-.06-.639-.418-.627-.804.004-.121.004-.242 0-.363-.012-.386.245-.745.627-.805.381-.06.743.201.764.587.014.265.014.533 0 .798ZM4.298 2.901c.227.313.155.748-.127 1.012a5.656 5.656 0 0 0-.256.257c-.265.282-.7.354-1.012.126-.312-.227-.384-.667-.126-.956.177-.198.366-.387.565-.565.288-.257.728-.186.955.126Zm7.405 0c.228-.311.668-.383.956-.126.199.178.387.367.565.566.257.288.186.727-.126.955-.312.228-.747.156-1.01-.126a5.655 5.655 0 0 0-.258-.257c-.282-.264-.354-.699-.127-1.011ZM8.4 1.012c.386.021.647.383.588.764-.06.383-.42.64-.806.628a5.873 5.873 0 0 0-.361 0c-.387.012-.746-.245-.806-.627-.06-.382.202-.744.588-.765.265-.014.532-.014.797 0Z"
|
|
38
|
+
}), (0, _react2.jsx)("path", {
|
|
39
|
+
d: "M3.376 13.178a7.036 7.036 0 0 1-.566-.567c-.257-.287-.186-.727.126-.954.312-.227.746-.155 1.01.127.084.088.17.174.258.257.282.264.354.699.127 1.01-.227.312-.667.383-.955.127Z"
|
|
40
|
+
}));
|
|
41
|
+
};
|
|
42
|
+
var icon = exports.icon = EuiIconDashedCircle;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.icon = void 0;
|
|
9
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
|
+
var React = _interopRequireWildcard(require("react"));
|
|
12
|
+
var _react2 = require("@emotion/react");
|
|
13
|
+
var _excluded = ["title", "titleId"];
|
|
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
|
+
// THIS IS A GENERATED FILE. DO NOT MODIFY MANUALLY. @see scripts/compile-icons.js
|
|
22
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
23
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
24
|
+
var EuiIconProductRobot = function EuiIconProductRobot(_ref) {
|
|
25
|
+
var title = _ref.title,
|
|
26
|
+
titleId = _ref.titleId,
|
|
27
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
28
|
+
return (0, _react2.jsx)("svg", (0, _extends2.default)({
|
|
29
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
30
|
+
width: 16,
|
|
31
|
+
height: 16,
|
|
32
|
+
viewBox: "0 0 16 16",
|
|
33
|
+
"aria-labelledby": titleId
|
|
34
|
+
}, props), title ? (0, _react2.jsx)("title", {
|
|
35
|
+
id: titleId
|
|
36
|
+
}, title) : null, (0, _react2.jsx)("path", {
|
|
37
|
+
d: "M9.208 11.23a.446.446 0 0 1 .642.616l-.015.017a1.373 1.373 0 0 1-.127.11 2.326 2.326 0 0 1-.355.227c-.31.163-.763.319-1.353.319a2.89 2.89 0 0 1-1.352-.319 2.325 2.325 0 0 1-.452-.31l-.029-.027-.016-.017a.446.446 0 0 1 .643-.617l.005.005.045.039c.045.035.118.086.219.139.199.104.51.216.937.216.428 0 .74-.112.94-.216a1.417 1.417 0 0 0 .263-.179l.005-.004ZM5.964 8a1.019 1.019 0 1 1 0 2.038 1.019 1.019 0 0 1 0-2.038Zm4.073 0a1.018 1.018 0 1 1 0 2.037 1.018 1.018 0 0 1 0-2.037Z"
|
|
38
|
+
}), (0, _react2.jsx)("path", {
|
|
39
|
+
fillRule: "evenodd",
|
|
40
|
+
d: "M8 1a1.4 1.4 0 0 1 .446 2.726V5h1.845C11.767 5 13 6.27 13 7.746V8h1.11c.491 0 .89.526.89 1.018v3.055c0 .492-.399.927-.89.927L13 12.99v1.11c0 .491-.435.9-.927.9H3.928C3.436 15 3 14.601 3 14.11V13H1.89c-.46 0-.84-.386-.886-.835L1 12.072V9.018C1 8.527 1.4 8 1.89 8H3v-.254C3 6.27 4.234 5 5.71 5h1.845V3.726A1.4 1.4 0 0 1 8 1ZM5.72 6C4.734 6 4 6.762 4 7.746V14h8V7.746C12 6.762 11.285 6 10.301 6H5.719ZM2 12h1V9H2v3Zm11 0h1l-.005-3h-1L13 12ZM8 1.89a.51.51 0 1 0 .001 1.02.51.51 0 0 0 0-1.02Z",
|
|
41
|
+
clipRule: "evenodd"
|
|
42
|
+
}));
|
|
43
|
+
};
|
|
44
|
+
var icon = exports.icon = EuiIconProductRobot;
|
|
@@ -93,6 +93,7 @@ var typeToPathMap = exports.typeToPathMap = {
|
|
|
93
93
|
copy: 'copy',
|
|
94
94
|
copyClipboard: 'copy',
|
|
95
95
|
// NOTE: To be deprecated in favor of `copy`
|
|
96
|
+
crossProjectSearch: 'cross_project_search',
|
|
96
97
|
createAdvancedJob: 'ml_create_advanced_job',
|
|
97
98
|
createGenericJob: 'ml_create_generic_job',
|
|
98
99
|
createGeoJob: 'ml_create_geo_job',
|
|
@@ -106,6 +107,7 @@ var typeToPathMap = exports.typeToPathMap = {
|
|
|
106
107
|
currency: 'currency',
|
|
107
108
|
cut: 'cut',
|
|
108
109
|
dashboardApp: 'app_dashboard',
|
|
110
|
+
dashedCircle: 'dashed_circle',
|
|
109
111
|
dataVisualizer: 'ml_data_visualizer',
|
|
110
112
|
database: 'database',
|
|
111
113
|
desktop: 'desktop',
|
|
@@ -390,6 +392,7 @@ var typeToPathMap = exports.typeToPathMap = {
|
|
|
390
392
|
// NOTE: To be deprecated in favor of `plus_in_circle`
|
|
391
393
|
plusInSquare: 'plus_in_square',
|
|
392
394
|
popout: 'popout',
|
|
395
|
+
productRobot: 'product_robot',
|
|
393
396
|
push: 'push',
|
|
394
397
|
question: 'question',
|
|
395
398
|
quote: 'quote',
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
|
|
2
|
+
<path fill-rule="evenodd" d="M8.5 9h4a1 1 0 0 1 1 1v2.065A1.999 1.999 0 1 1 11 14c0-.932.638-1.712 1.5-1.935V10h-4v2.065A1.999 1.999 0 1 1 6 14c0-.932.638-1.712 1.5-1.935V10h-4v2.065A1.999 1.999 0 1 1 1 14c0-.932.638-1.712 1.5-1.935V10a1 1 0 0 1 1-1h4V7h1v2ZM3 13a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm5 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm5 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2ZM7 0a3 3 0 0 1 3 3c0 .648-.208 1.246-.557 1.736l1.91 1.91-.707.708-1.91-1.91A3 3 0 1 1 7 0Zm0 1a2 2 0 1 0 0 4 2 2 0 0 0 0-4Z" clip-rule="evenodd"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
|
|
2
|
+
<path d="M7.01436 14.2223C7.07439 13.8407 7.43288 13.5844 7.81903 13.5968C7.87934 13.5987 7.93993 13.5997 8.00079 13.5997V14.9997C7.86663 14.9997 7.73337 14.9958 7.6011 14.9882C7.2153 14.966 6.95433 14.6041 7.01436 14.2223ZM8.98662 14.2229C9.04624 14.6044 8.78531 14.9659 8.39982 14.9882C8.26777 14.9958 8.13473 14.9997 8.00079 14.9997V13.5997C8.06147 13.5997 8.1219 13.5987 8.18204 13.5968C8.56837 13.5845 8.92694 13.841 8.98662 14.2229ZM3.18685 11.9856C3.3096 11.6826 3.72315 11.6293 3.94885 11.8657C4.03695 11.958 4.12817 12.0473 4.22233 12.1335C4.47896 12.3682 4.5436 12.7598 4.3386 13.0408L4.30044 13.0931L4.02614 12.6036C3.96532 12.4951 3.79997 12.5383 3.79997 12.6627C3.79997 12.7614 3.6873 12.8183 3.60589 12.7625C3.32703 12.571 3.42905 12.6718 3.22829 12.3808C3.15007 12.2674 3.13141 12.1224 3.18314 11.9947L3.18685 11.9856ZM13.0981 11.7022C13.4098 11.9294 13.4809 12.3689 13.2241 12.6567C13.0463 12.8561 12.8573 13.0451 12.658 13.2229C12.3701 13.4797 11.9306 13.4086 11.7035 13.0969C11.4761 12.7849 11.5484 12.3505 11.83 12.0865C11.9186 12.0034 12.0046 11.9174 12.0877 11.8288C12.3517 11.5471 12.7861 11.4749 13.0981 11.7022ZM1.01235 7.60061C1.03355 7.21443 1.39518 6.9531 1.77726 7.01313C2.15933 7.07316 2.41656 7.4321 2.40464 7.81868C2.40093 7.93898 2.40093 8.05965 2.40463 8.17995C2.41652 8.5667 2.15895 8.92573 1.77666 8.98542C1.39483 9.04503 1.03367 8.78374 1.01243 8.39786C0.997838 8.13288 0.997808 7.86559 1.01235 7.60061ZM14.9878 8.39845C14.9665 8.78398 14.6056 9.04502 14.2241 8.9854C13.8423 8.92572 13.585 8.56706 13.5969 8.18072C13.6007 8.05991 13.6006 7.93872 13.5969 7.81791C13.5849 7.43174 13.8419 7.07317 14.2235 7.01314C14.6053 6.95311 14.9666 7.21418 14.9878 7.60003C15.0024 7.8654 15.0024 8.13308 14.9878 8.39845ZM4.29736 2.90146C4.52515 3.21386 4.45279 3.64893 4.17078 3.91342C4.08269 3.99604 3.99726 4.08147 3.91464 4.16956C3.65015 4.45157 3.21508 4.52393 2.90268 4.29614C2.59064 4.06862 2.5195 3.62857 2.77664 3.34044C2.95412 3.14157 3.14279 2.9529 3.34166 2.77542C3.62979 2.51828 4.06984 2.58942 4.29736 2.90146ZM11.7032 2.90186C11.9305 2.58965 12.3705 2.51831 12.6586 2.77545C12.8577 2.95312 13.0465 3.14201 13.2242 3.34113C13.481 3.62896 13.4101 4.06849 13.0985 4.29592C12.7864 4.52379 12.3514 4.45159 12.0871 4.1697C12.0042 4.08134 11.9185 3.99566 11.8301 3.91281C11.5484 3.64864 11.4759 3.21412 11.7032 2.90186ZM8.39908 1.01121C8.78496 1.03245 9.04625 1.3936 8.98664 1.77544C8.92695 2.15773 8.56792 2.4153 8.18117 2.40341C8.06087 2.39971 7.9402 2.39971 7.8199 2.40342C7.43332 2.41534 7.07438 2.15811 7.01435 1.77604C6.95432 1.39396 7.21565 1.03233 7.60183 1.01113C7.86681 0.996587 8.13411 0.996618 8.39908 1.01121Z" />
|
|
3
|
+
<path d="M3.37618 13.1777C3.17687 12.9999 2.98782 12.8108 2.81 12.6115C2.55322 12.3237 2.62433 11.8842 2.93604 11.657C3.24803 11.4296 3.68242 11.5019 3.94647 11.7835C4.02956 11.8722 4.11551 11.9581 4.20414 12.0412C4.48578 12.3053 4.55807 12.7397 4.33069 13.0516C4.10351 13.3633 3.664 13.4345 3.37618 13.1777Z" />
|
|
4
|
+
</svg>
|
|
5
|
+
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
|
|
2
|
+
<path d="M9.208 11.23a.446.446 0 0 1 .642.616l-.015.017a1.373 1.373 0 0 1-.127.11 2.326 2.326 0 0 1-.355.227c-.31.163-.763.319-1.353.319a2.89 2.89 0 0 1-1.352-.319 2.325 2.325 0 0 1-.452-.31l-.029-.027-.016-.017a.446.446 0 0 1 .643-.617l.005.005.045.039c.045.035.118.086.219.139.199.104.51.216.937.216.428 0 .74-.112.94-.216a1.417 1.417 0 0 0 .263-.179l.005-.004ZM5.964 8a1.019 1.019 0 1 1 0 2.038 1.019 1.019 0 0 1 0-2.038Zm4.073 0a1.018 1.018 0 1 1 0 2.037 1.018 1.018 0 0 1 0-2.037Z"/>
|
|
3
|
+
<path fill-rule="evenodd" d="M8 1a1.4 1.4 0 0 1 .446 2.726V5h1.845C11.767 5 13 6.27 13 7.746V8h1.11c.491 0 .89.526.89 1.018v3.055c0 .492-.399.927-.89.927L13 12.99v1.11c0 .491-.435.9-.927.9H3.928C3.436 15 3 14.601 3 14.11V13H1.89c-.46 0-.84-.386-.886-.835L1 12.072V9.018C1 8.527 1.4 8 1.89 8H3v-.254C3 6.27 4.234 5 5.71 5h1.845V3.726A1.4 1.4 0 0 1 8 1ZM5.72 6C4.734 6 4 6.762 4 7.746V14h8V7.746C12 6.762 11.285 6 10.301 6H5.719ZM2 12h1V9H2v3Zm11 0h1l-.005-3h-1L13 12ZM8 1.89a.51.51 0 1 0 .001 1.02.51.51 0 0 0 0-1.02Z" clip-rule="evenodd"/>
|
|
4
|
+
</svg>
|
|
@@ -36,7 +36,10 @@ var EuiExternalLinkIcon = exports.EuiExternalLinkIcon = function EuiExternalLink
|
|
|
36
36
|
rest = (0, _objectWithoutProperties2.default)(_ref2, _excluded);
|
|
37
37
|
var iconCssStyle = (0, _services.useEuiMemoizedStyles)(iconStyle);
|
|
38
38
|
var showExternalLinkIcon = target === '_blank' && external !== false || external === true;
|
|
39
|
-
|
|
39
|
+
if (!showExternalLinkIcon) {
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
return (0, _react2.jsx)(_react.default.Fragment, null, (0, _react2.jsx)(_icon.EuiIcon, (0, _extends2.default)({
|
|
40
43
|
css: iconCssStyle,
|
|
41
44
|
size: "s",
|
|
42
45
|
type: "popout",
|
|
@@ -44,8 +47,8 @@ var EuiExternalLinkIcon = exports.EuiExternalLinkIcon = function EuiExternalLink
|
|
|
44
47
|
}, rest)), target === '_blank' ? (0, _react2.jsx)(_accessibility.EuiScreenReaderOnly, null, (0, _react2.jsx)("span", null, (0, _react2.jsx)(_i18n.EuiI18n, {
|
|
45
48
|
token: "euiExternalLinkIcon.newTarget.screenReaderOnlyText",
|
|
46
49
|
default: "(external, opens in a new tab or window)"
|
|
47
|
-
}))) : (0, _react2.jsx)(
|
|
50
|
+
}))) : (0, _react2.jsx)(_accessibility.EuiScreenReaderOnly, null, (0, _react2.jsx)("span", null, (0, _react2.jsx)(_i18n.EuiI18n, {
|
|
48
51
|
token: "euiExternalLinkIcon.externalTarget.screenReaderOnlyText",
|
|
49
52
|
default: "(external)"
|
|
50
|
-
}))))
|
|
53
|
+
}))));
|
|
51
54
|
};
|
|
@@ -146,7 +146,7 @@ var EuiPageHeaderContent = exports.EuiPageHeaderContent = function EuiPageHeader
|
|
|
146
146
|
})) === null || _tabs$find === void 0 ? void 0 : _tabs$find.label));
|
|
147
147
|
tabsNode = (0, _react2.jsx)(_react.default.Fragment, null, pageTitleNode && (0, _react2.jsx)(_spacer.EuiSpacer, null), screenReaderPageTitle, (0, _react2.jsx)(_tabs.EuiTabs, (0, _extends2.default)({}, tabsProps, {
|
|
148
148
|
bottomBorder: false,
|
|
149
|
-
size: "
|
|
149
|
+
size: "m"
|
|
150
150
|
}), renderTabs()));
|
|
151
151
|
}
|
|
152
152
|
var childrenNode = children && (0, _react2.jsx)(_react.default.Fragment, null, (0, _react2.jsx)(_spacer.EuiSpacer, null), children);
|
|
@@ -206,7 +206,7 @@ var EuiSearchBar = exports.EuiSearchBar = /*#__PURE__*/function (_Component) {
|
|
|
206
206
|
var isHintVisible = (_hint$popoverProps$is = hint === null || hint === void 0 || (_hint$popoverProps = hint.popoverProps) === null || _hint$popoverProps === void 0 ? void 0 : _hint$popoverProps.isOpen) !== null && _hint$popoverProps$is !== void 0 ? _hint$popoverProps$is : isHintVisibleState;
|
|
207
207
|
return (0, _react2.jsx)(_services.RenderWithEuiTheme, null, function (euiTheme) {
|
|
208
208
|
return (0, _react2.jsx)(_flex.EuiFlexGroup, {
|
|
209
|
-
gutterSize: "
|
|
209
|
+
gutterSize: "s",
|
|
210
210
|
alignItems: "center",
|
|
211
211
|
wrap: true
|
|
212
212
|
}, toolsLeftEl, (0, _react2.jsx)(_flex.EuiFlexItem, {
|
|
@@ -25,7 +25,7 @@ var SIZES = exports.SIZES = ['xs', 's', 'm', 'l', 'xl', 'xxl'];
|
|
|
25
25
|
var EuiSpacer = exports.EuiSpacer = function EuiSpacer(_ref) {
|
|
26
26
|
var className = _ref.className,
|
|
27
27
|
_ref$size = _ref.size,
|
|
28
|
-
size = _ref$size === void 0 ? '
|
|
28
|
+
size = _ref$size === void 0 ? 'm' : _ref$size,
|
|
29
29
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
30
30
|
var styles = (0, _services.useEuiMemoizedStyles)(_spacer.euiSpacerStyles);
|
|
31
31
|
var classes = (0, _classnames.default)('euiSpacer', (0, _defineProperty2.default)({}, "euiSpacer--".concat(size), size), className);
|
|
@@ -10,6 +10,7 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
12
12
|
var _react2 = require("@emotion/react");
|
|
13
|
+
var _services = require("../../services");
|
|
13
14
|
var _icon = require("../icon");
|
|
14
15
|
var _i18n = require("../i18n");
|
|
15
16
|
var _excluded = ["className", "number", "status"];
|
|
@@ -33,7 +34,11 @@ var EuiTourStepIndicator = exports.EuiTourStepIndicator = function EuiTourStepIn
|
|
|
33
34
|
number = _ref2.number,
|
|
34
35
|
status = _ref2.status,
|
|
35
36
|
rest = (0, _objectWithoutProperties2.default)(_ref2, _excluded);
|
|
37
|
+
var _useEuiTheme = (0, _services.useEuiTheme)(),
|
|
38
|
+
euiTheme = _useEuiTheme.euiTheme;
|
|
36
39
|
var classes = (0, _classnames.default)('euiTourStepIndicator', className);
|
|
40
|
+
var inactiveColor = euiTheme.components.tourStepIndicatorInactiveColor;
|
|
41
|
+
var activeColor = euiTheme.components.tourStepIndicatorActiveColor;
|
|
37
42
|
var indicatorIcon;
|
|
38
43
|
if (status === 'active') {
|
|
39
44
|
indicatorIcon = (0, _react2.jsx)(_i18n.EuiI18n, {
|
|
@@ -43,7 +48,7 @@ var EuiTourStepIndicator = exports.EuiTourStepIndicator = function EuiTourStepIn
|
|
|
43
48
|
return (0, _react2.jsx)(_icon.EuiIcon, {
|
|
44
49
|
type: "dot",
|
|
45
50
|
"aria-label": isActive,
|
|
46
|
-
color:
|
|
51
|
+
color: activeColor,
|
|
47
52
|
"aria-current": "step"
|
|
48
53
|
});
|
|
49
54
|
});
|
|
@@ -55,7 +60,7 @@ var EuiTourStepIndicator = exports.EuiTourStepIndicator = function EuiTourStepIn
|
|
|
55
60
|
return (0, _react2.jsx)(_icon.EuiIcon, {
|
|
56
61
|
type: "dot",
|
|
57
62
|
"aria-label": isComplete,
|
|
58
|
-
color:
|
|
63
|
+
color: inactiveColor
|
|
59
64
|
});
|
|
60
65
|
});
|
|
61
66
|
} else if (status === 'incomplete') {
|
|
@@ -66,7 +71,7 @@ var EuiTourStepIndicator = exports.EuiTourStepIndicator = function EuiTourStepIn
|
|
|
66
71
|
return (0, _react2.jsx)(_icon.EuiIcon, {
|
|
67
72
|
type: "dot",
|
|
68
73
|
"aria-label": isIncomplete,
|
|
69
|
-
color:
|
|
74
|
+
color: inactiveColor
|
|
70
75
|
});
|
|
71
76
|
});
|
|
72
77
|
}
|
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.useEuiButtonFocusCSS = exports.useEuiButtonColorCSS = exports.highContrastHoverIndicatorStyles = exports.euiButtonSizeMap = exports.euiButtonFillColor = exports.euiButtonEmptyColor = exports.euiButtonColor = exports.SEVERITY_COLORS = exports.EXTENDED_BUTTON_COLORS = exports.BUTTON_DISPLAYS = exports.BUTTON_COLORS = void 0;
|
|
7
|
+
exports.useEuiButtonFocusCSS = exports.useEuiButtonColorCSS = exports.highContrastHoverIndicatorStyles = exports.getEuiFilledButtonColors = exports.getEuiButtonColors = exports.euiButtonSizeMap = exports.euiButtonFillColor = exports.euiButtonEmptyColor = exports.euiButtonColor = exports.SEVERITY_COLORS = exports.EXTENDED_BUTTON_COLORS = exports.BUTTON_DISPLAYS = exports.BUTTON_COLORS = void 0;
|
|
8
8
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
9
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
10
|
var _react = require("@emotion/react");
|
|
@@ -40,7 +40,18 @@ var getButtonVariantTokenValues = function getButtonVariantTokenValues(_ref, col
|
|
|
40
40
|
color: foreground,
|
|
41
41
|
background: euiTheme.components.buttons[backgroundTokenName],
|
|
42
42
|
backgroundHover: euiTheme.components.buttons[backgroundHoverTokenName],
|
|
43
|
-
backgroundActive: euiTheme.components.buttons[backgroundActiveTokenName]
|
|
43
|
+
backgroundActive: euiTheme.components.buttons[backgroundActiveTokenName],
|
|
44
|
+
borderColor: highContrastMode ? foreground : color === 'text' ? euiTheme.colors.borderBasePlain : 'transparent'
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
var getEuiButtonColors = exports.getEuiButtonColors = function getEuiButtonColors(euiThemeContext, color) {
|
|
48
|
+
var buttonColors = getButtonVariantTokenValues(euiThemeContext, color, 'base');
|
|
49
|
+
var foreground = buttonColors.color;
|
|
50
|
+
var background = buttonColors.background;
|
|
51
|
+
return {
|
|
52
|
+
color: background === 'transparent' || color === 'disabled' ? foreground : (0, _services.makeHighContrastColor)(foreground)(background),
|
|
53
|
+
backgroundColor: background,
|
|
54
|
+
borderColor: buttonColors.borderColor
|
|
44
55
|
};
|
|
45
56
|
};
|
|
46
57
|
|
|
@@ -51,13 +62,21 @@ var getButtonVariantTokenValues = function getButtonVariantTokenValues(_ref, col
|
|
|
51
62
|
* @returns Style object `{ backgroundColor, color }`
|
|
52
63
|
*/
|
|
53
64
|
var euiButtonColor = exports.euiButtonColor = function euiButtonColor(euiThemeContext, color) {
|
|
54
|
-
var buttonColors =
|
|
65
|
+
var buttonColors = getEuiButtonColors(euiThemeContext, color);
|
|
66
|
+
return _objectSpread({
|
|
67
|
+
color: buttonColors.color,
|
|
68
|
+
backgroundColor: buttonColors.backgroundColor
|
|
69
|
+
}, _highContrastBorder(euiThemeContext, buttonColors.borderColor));
|
|
70
|
+
};
|
|
71
|
+
var getEuiFilledButtonColors = exports.getEuiFilledButtonColors = function getEuiFilledButtonColors(euiThemeContext, color) {
|
|
72
|
+
var buttonColors = getButtonVariantTokenValues(euiThemeContext, color, 'filled');
|
|
55
73
|
var foreground = buttonColors.color;
|
|
56
74
|
var background = buttonColors.background;
|
|
57
|
-
return
|
|
58
|
-
color:
|
|
59
|
-
backgroundColor: background
|
|
60
|
-
|
|
75
|
+
return {
|
|
76
|
+
color: foreground,
|
|
77
|
+
backgroundColor: background,
|
|
78
|
+
borderColor: color === 'disabled' ? foreground : background
|
|
79
|
+
};
|
|
61
80
|
};
|
|
62
81
|
|
|
63
82
|
/**
|
|
@@ -67,13 +86,13 @@ var euiButtonColor = exports.euiButtonColor = function euiButtonColor(euiThemeCo
|
|
|
67
86
|
* @returns Style object `{ backgroundColor, color }`
|
|
68
87
|
*/
|
|
69
88
|
var euiButtonFillColor = exports.euiButtonFillColor = function euiButtonFillColor(euiThemeContext, color) {
|
|
70
|
-
var buttonColors =
|
|
89
|
+
var buttonColors = getEuiFilledButtonColors(euiThemeContext, color);
|
|
71
90
|
var foreground = buttonColors.color;
|
|
72
|
-
var background = buttonColors.
|
|
91
|
+
var background = buttonColors.backgroundColor;
|
|
73
92
|
return _objectSpread({
|
|
74
93
|
color: foreground,
|
|
75
94
|
backgroundColor: background
|
|
76
|
-
}, _highContrastBorder(euiThemeContext,
|
|
95
|
+
}, _highContrastBorder(euiThemeContext, buttonColors.borderColor // The border is necessary for Windows high contrast themes, which ignore background-color
|
|
77
96
|
));
|
|
78
97
|
};
|
|
79
98
|
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.euiContainerQuery = exports.euiContainerCSS = exports.euiContainer = void 0;
|
|
7
|
+
var _react = require("@emotion/react");
|
|
8
|
+
/*
|
|
9
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
10
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
11
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
12
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
13
|
+
* Side Public License, v 1.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
var CONTAINER_TYPES = ['normal', 'size', 'inline-size'];
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Type of container context used in container queries.
|
|
20
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/container-type}
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Establish element as a query container.
|
|
25
|
+
* The scroll state is applied through the `scrollState` argument
|
|
26
|
+
* and not the `type` argument.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* // Export container name to use across the application
|
|
30
|
+
* export const PAGE_CONTENT_CONTAINER_NAME = 'my-app-page-content';
|
|
31
|
+
* const pageContentStyles = css`
|
|
32
|
+
* ${euiContainer('inline-size', PAGE_CONTENT_CONTAINER_NAME)}
|
|
33
|
+
* margin: 0 auto;
|
|
34
|
+
* `;
|
|
35
|
+
*
|
|
36
|
+
* @returns A style string to be used inside Emotion's `css` template literal
|
|
37
|
+
* @beta
|
|
38
|
+
*/
|
|
39
|
+
var euiContainer = exports.euiContainer = function euiContainer(type, name, scrollState) {
|
|
40
|
+
var finalType = '';
|
|
41
|
+
if (type !== 'normal') {
|
|
42
|
+
finalType += type;
|
|
43
|
+
}
|
|
44
|
+
if (scrollState) {
|
|
45
|
+
if (finalType.length) {
|
|
46
|
+
finalType += ' ';
|
|
47
|
+
}
|
|
48
|
+
finalType += 'scroll-state';
|
|
49
|
+
}
|
|
50
|
+
return [!!name && "container-name: ".concat(name), !!finalType && "container-type: ".concat(finalType)].filter(Boolean).join(';');
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Establish element as a query container.
|
|
55
|
+
* The scroll state is applied through the `scrollState` argument
|
|
56
|
+
* and not the `type` argument.
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* // Export container name to use across the application
|
|
60
|
+
* export const PAGE_CONTENT_CONTAINER_NAME = 'my-app-page-content';
|
|
61
|
+
* const PageContent = ({ children }: PropsWithChildren) => (
|
|
62
|
+
* <main css={euiContainerCSS('inline-size', PAGE_CONTENT_CONTAINER_NAME)}>
|
|
63
|
+
* {children}
|
|
64
|
+
* </main>
|
|
65
|
+
* );
|
|
66
|
+
* @returns Emotion's `SerializedStyles` object to be passed to the `css` prop
|
|
67
|
+
* of a React component.
|
|
68
|
+
* @beta
|
|
69
|
+
*/
|
|
70
|
+
var euiContainerCSS = exports.euiContainerCSS = function euiContainerCSS(type, name, scrollState) {
|
|
71
|
+
return /*#__PURE__*/(0, _react.css)(euiContainer(type, name, scrollState), ";label:euiContainerCSS;");
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Get a @container rule for given conditions and an optional container name.
|
|
76
|
+
*
|
|
77
|
+
* Container queries can be used to apply conditional styles based on container
|
|
78
|
+
* size, its scroll state or even its styles.
|
|
79
|
+
*
|
|
80
|
+
* It's hugely useful to conditionally show or hide information based
|
|
81
|
+
* on the **container** dimensions instead of the **viewport** dimensions.
|
|
82
|
+
*
|
|
83
|
+
* When container name is provided, it will be used to target the containment
|
|
84
|
+
* context. When skipped, it will target the nearest ancestor with containment.
|
|
85
|
+
*
|
|
86
|
+
* @example
|
|
87
|
+
* const itemDetailsStyles = css`
|
|
88
|
+
* background: red;
|
|
89
|
+
*
|
|
90
|
+
* ${euiContainerQuery('(width > 250px)')} {
|
|
91
|
+
* background: blue;
|
|
92
|
+
* }
|
|
93
|
+
* `;
|
|
94
|
+
*
|
|
95
|
+
* @param conditions one or many conditions to query the container with.
|
|
96
|
+
* Similarly to media queries, you can use
|
|
97
|
+
* size queries (e.g., `(width > 300px)`),
|
|
98
|
+
* scroll state queries (e.g., `(scroll-state(scrollable: top))`),
|
|
99
|
+
* or even style queries.
|
|
100
|
+
* You can use the `and`, `or` and `not` logical keywords to define container
|
|
101
|
+
* conditions. Note that all conditions must be wrapped in parentheses.
|
|
102
|
+
*
|
|
103
|
+
* @param containerName When provided, it will be used to target
|
|
104
|
+
* the containment context and run queries against it. Otherwise, the nearest
|
|
105
|
+
* ancestor with containment will be queried instead.
|
|
106
|
+
*
|
|
107
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/At-rules/@container}
|
|
108
|
+
* @beta
|
|
109
|
+
*/
|
|
110
|
+
var euiContainerQuery = exports.euiContainerQuery = function euiContainerQuery(conditions, containerName) {
|
|
111
|
+
return "@container ".concat(containerName !== null && containerName !== void 0 ? containerName : '').concat(containerName ? ' ' : '').concat(conditions);
|
|
112
|
+
};
|
|
@@ -14,6 +14,17 @@ Object.keys(_color).forEach(function (key) {
|
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
});
|
|
17
|
+
var _container_query = require("./_container_query");
|
|
18
|
+
Object.keys(_container_query).forEach(function (key) {
|
|
19
|
+
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _container_query[key]) return;
|
|
21
|
+
Object.defineProperty(exports, key, {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function get() {
|
|
24
|
+
return _container_query[key];
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
});
|
|
17
28
|
var _helpers = require("./_helpers");
|
|
18
29
|
Object.keys(_helpers).forEach(function (key) {
|
|
19
30
|
if (key === "default" || key === "__esModule") return;
|