@elastic/eui 122.0.0 → 122.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/dist/eui-icons.json +84 -84
- package/dist/svgs/table_sparkles.svg +2 -4
- package/es/components/avatar/avatar.styles.js +1 -1
- package/es/components/badge/notification_badge/badge_notification.styles.js +5 -7
- package/es/components/banner/banner.styles.js +1 -1
- package/es/components/basic_table/basic_table.js +5 -0
- package/es/components/basic_table/basic_table.styles.js +1 -1
- package/es/components/basic_table/default_item_action.js +1 -1
- package/es/components/basic_table/in_memory_table.js +5 -0
- package/es/components/basic_table/pagination_bar.styles.js +1 -1
- package/es/components/basic_table/panel.styles.js +1 -1
- package/es/components/breadcrumbs/_breadcrumb_content.js +5 -2
- package/es/components/breadcrumbs/_breadcrumb_content.styles.js +5 -5
- package/es/components/breadcrumbs/breadcrumb.styles.js +4 -4
- package/es/components/breadcrumbs/breadcrumbs.js +5 -2
- package/es/components/button/button_display/_button_display.js +2 -1
- package/es/components/button/button_group/button_group.styles.js +2 -2
- package/es/components/button/split_button/split_button.styles.js +2 -2
- package/es/components/call_out/call_out.styles.js +8 -4
- package/es/components/card/card.js +1 -1
- package/es/components/card/card.styles.js +3 -3
- package/es/components/code/code.styles.js +1 -1
- package/es/components/code/code_block.styles.js +1 -1
- package/es/components/color_picker/color_picker_swatch.styles.js +2 -4
- package/es/components/color_picker/saturation.styles.js +1 -1
- package/es/components/comment_list/comment_event.js +3 -1
- package/es/components/comment_list/comment_event.styles.js +1 -1
- package/es/components/context_menu/context_menu.styles.js +1 -1
- package/es/components/datagrid/body/cell/data_grid_cell.styles.js +1 -1
- package/es/components/datagrid/body/cell/data_grid_cell_actions.js +4 -4
- package/es/components/date_picker/react_date_picker.styles.js +6 -6
- package/es/components/date_picker/super_date_picker/super_date_picker.styles.js +1 -1
- package/es/components/description_list/description_list_description.js +1 -1
- package/es/components/description_list/description_list_description.styles.js +2 -1
- package/es/components/description_list/description_list_title.js +4 -1
- package/es/components/description_list/description_list_title.styles.js +4 -2
- package/es/components/drag_and_drop/draggable.js +2 -1
- package/es/components/drag_and_drop/draggable.styles.js +21 -16
- package/es/components/empty_prompt/empty_prompt.js +7 -4
- package/es/components/facet/facet_button.styles.js +1 -1
- package/es/components/filter_group/filter_button.styles.js +1 -1
- package/es/components/flyout/flyout_body.styles.js +1 -1
- package/es/components/form/checkbox/checkbox.styles.js +1 -1
- package/es/components/form/checkbox/checkbox_control.styles.js +1 -1
- package/es/components/form/form.styles.js +6 -6
- package/es/components/form/form_control_layout/form_control_layout.js +1 -1
- package/es/components/form/form_control_layout/form_control_layout.styles.js +2 -1
- package/es/components/form/form_control_layout/form_control_layout_delimited.styles.js +1 -1
- package/es/components/form/range/range.styles.js +1 -1
- package/es/components/form/range/range_ticks.styles.js +1 -1
- package/es/components/form/range/range_tooltip.styles.js +1 -1
- package/es/components/header/header_breadcrumbs/header_breadcrumbs.js +5 -2
- package/es/components/header/header_links/header_links.js +5 -2
- package/es/components/header/header_logo/header_logo.styles.js +1 -1
- package/es/components/icon/assets/table_sparkles.js +2 -8
- package/es/components/icon/icon.styles.js +1 -1
- package/es/components/icon/svgs/table_sparkles.svg +2 -4
- package/es/components/key_pad_menu/key_pad_menu_item.styles.js +4 -2
- package/es/components/link/link.js +3 -1
- package/es/components/link/link.styles.js +9 -8
- package/es/components/list_group/list_group.styles.js +1 -1
- package/es/components/list_item_layout/_list_item_layout.styles.js +5 -3
- package/es/components/markdown_editor/markdown_editor.styles.js +1 -1
- package/es/components/modal/modal.styles.js +2 -2
- package/es/components/page/page_header/page_header_content.js +5 -2
- package/es/components/panel/panel.js +22 -12
- package/es/components/panel/panel.styles.js +1 -1
- package/es/components/panel/split_panel/split_panel.js +3 -1
- package/es/components/popover/popover.js +8 -3
- package/es/components/popover/popover_footer.styles.js +1 -1
- package/es/components/popover/popover_panel/_popover_panel.js +5 -2
- package/es/components/popover/popover_title.styles.js +1 -1
- package/es/components/progress/progress.styles.js +1 -1
- package/es/components/resizable_container/resizable_panel.js +14 -6
- package/es/components/selectable/selectable_list/selectable_list.styles.js +1 -1
- package/es/components/selectable/selectable_message/selectable_message.styles.js +1 -1
- package/es/components/skeleton/skeleton_rectangle.styles.js +2 -2
- package/es/components/skeleton/skeleton_text.styles.js +1 -1
- package/es/components/skeleton/skeleton_title.styles.js +2 -2
- package/es/components/table/sticky_header/sticky_header.js +2 -0
- package/es/components/table/sticky_scrollbar/sticky_scrollbar.styles.js +1 -1
- package/es/components/table/table.js +1 -0
- package/es/components/table/table_header_cell.js +2 -1
- package/es/components/table/table_row.styles.js +1 -1
- package/es/components/tabs/tab.styles.js +3 -3
- package/es/components/text/text.js +2 -1
- package/es/components/text/text.styles.js +1 -1
- package/es/components/title/title.styles.js +2 -1
- package/es/components/toast/toast.styles.js +23 -8
- package/es/components/token/token.styles.js +3 -3
- package/es/components/tool_tip/tool_tip.js +6 -3
- package/es/components/tool_tip/tool_tip.styles.js +5 -5
- package/es/components/tour/_tour_footer.styles.js +1 -1
- package/es/components/tour/tour_step.js +5 -2
- package/es/components/tree_view/tree_view_item.styles.js +2 -2
- package/es/global_styling/mixins/_button.js +8 -6
- package/es/services/popover/popover_arrow.styles.js +1 -1
- package/es/services/popover/popover_positioning.js +20 -0
- package/eui.d.ts +26 -6
- package/lib/components/avatar/avatar.styles.js +1 -1
- package/lib/components/badge/notification_badge/badge_notification.styles.js +5 -7
- package/lib/components/banner/banner.styles.js +1 -1
- package/lib/components/basic_table/basic_table.js +5 -0
- package/lib/components/basic_table/basic_table.styles.js +1 -1
- package/lib/components/basic_table/default_item_action.js +1 -1
- package/lib/components/basic_table/in_memory_table.js +5 -0
- package/lib/components/basic_table/pagination_bar.styles.js +1 -1
- package/lib/components/basic_table/panel.styles.js +1 -1
- package/lib/components/breadcrumbs/_breadcrumb_content.js +5 -2
- package/lib/components/breadcrumbs/_breadcrumb_content.styles.js +5 -5
- package/lib/components/breadcrumbs/breadcrumb.styles.js +4 -4
- package/lib/components/button/button_display/_button_display.js +2 -1
- package/lib/components/button/button_group/button_group.styles.js +2 -2
- package/lib/components/button/split_button/split_button.styles.js +2 -2
- package/lib/components/call_out/call_out.styles.js +8 -4
- package/lib/components/card/card.js +1 -1
- package/lib/components/card/card.styles.js +2 -2
- package/lib/components/code/code.styles.js +1 -1
- package/lib/components/code/code_block.styles.js +1 -1
- package/lib/components/color_picker/color_picker_swatch.styles.js +1 -3
- package/lib/components/color_picker/saturation.styles.js +1 -1
- package/lib/components/comment_list/comment_event.js +3 -1
- package/lib/components/comment_list/comment_event.styles.js +1 -1
- package/lib/components/context_menu/context_menu.styles.js +1 -1
- package/lib/components/datagrid/body/cell/data_grid_cell.styles.js +1 -1
- package/lib/components/datagrid/body/cell/data_grid_cell_actions.js +4 -4
- package/lib/components/date_picker/react_date_picker.styles.js +6 -6
- package/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +1 -1
- package/lib/components/description_list/description_list_description.js +1 -1
- package/lib/components/description_list/description_list_description.styles.js +2 -1
- package/lib/components/description_list/description_list_title.js +4 -1
- package/lib/components/description_list/description_list_title.styles.js +4 -2
- package/lib/components/drag_and_drop/draggable.js +2 -1
- package/lib/components/drag_and_drop/draggable.styles.js +21 -16
- package/lib/components/empty_prompt/empty_prompt.js +7 -4
- package/lib/components/facet/facet_button.styles.js +1 -1
- package/lib/components/filter_group/filter_button.styles.js +1 -1
- package/lib/components/flyout/flyout_body.styles.js +1 -1
- package/lib/components/form/checkbox/checkbox.styles.js +1 -1
- package/lib/components/form/checkbox/checkbox_control.styles.js +1 -1
- package/lib/components/form/form.styles.js +6 -6
- package/lib/components/form/form_control_layout/form_control_layout.js +1 -1
- package/lib/components/form/form_control_layout/form_control_layout.styles.js +2 -1
- package/lib/components/form/form_control_layout/form_control_layout_delimited.styles.js +1 -1
- package/lib/components/form/range/range.styles.js +1 -1
- package/lib/components/form/range/range_ticks.styles.js +1 -1
- package/lib/components/form/range/range_tooltip.styles.js +1 -1
- package/lib/components/header/header_logo/header_logo.styles.js +1 -1
- package/lib/components/icon/assets/table_sparkles.js +2 -8
- package/lib/components/icon/icon.styles.js +1 -1
- package/lib/components/icon/svgs/table_sparkles.svg +2 -4
- package/lib/components/key_pad_menu/key_pad_menu_item.styles.js +4 -2
- package/lib/components/link/link.js +3 -1
- package/lib/components/link/link.styles.js +9 -8
- package/lib/components/list_group/list_group.styles.js +1 -1
- package/lib/components/list_item_layout/_list_item_layout.styles.js +5 -3
- package/lib/components/markdown_editor/markdown_editor.styles.js +1 -1
- package/lib/components/modal/modal.styles.js +2 -2
- package/lib/components/panel/panel.js +22 -12
- package/lib/components/panel/panel.styles.js +1 -1
- package/lib/components/panel/split_panel/split_panel.js +3 -1
- package/lib/components/popover/popover.js +3 -1
- package/lib/components/popover/popover_footer.styles.js +1 -1
- package/lib/components/popover/popover_title.styles.js +1 -1
- package/lib/components/progress/progress.styles.js +1 -1
- package/lib/components/resizable_container/resizable_panel.js +14 -6
- package/lib/components/selectable/selectable_list/selectable_list.styles.js +1 -1
- package/lib/components/selectable/selectable_message/selectable_message.styles.js +1 -1
- package/lib/components/skeleton/skeleton_rectangle.styles.js +2 -2
- package/lib/components/skeleton/skeleton_text.styles.js +1 -1
- package/lib/components/skeleton/skeleton_title.styles.js +2 -2
- package/lib/components/table/sticky_header/sticky_header.js +2 -0
- package/lib/components/table/sticky_scrollbar/sticky_scrollbar.styles.js +1 -1
- package/lib/components/table/table.js +1 -0
- package/lib/components/table/table_header_cell.js +2 -1
- package/lib/components/table/table_row.styles.js +1 -1
- package/lib/components/tabs/tab.styles.js +3 -3
- package/lib/components/text/text.js +2 -1
- package/lib/components/text/text.styles.js +1 -1
- package/lib/components/title/title.styles.js +2 -1
- package/lib/components/toast/toast.styles.js +22 -7
- package/lib/components/token/token.styles.js +3 -3
- package/lib/components/tool_tip/tool_tip.js +5 -2
- package/lib/components/tool_tip/tool_tip.styles.js +5 -5
- package/lib/components/tour/_tour_footer.styles.js +1 -1
- package/lib/components/tree_view/tree_view_item.styles.js +2 -2
- package/lib/global_styling/mixins/_button.js +8 -6
- package/lib/services/popover/popover_arrow.styles.js +1 -1
- package/lib/services/popover/popover_positioning.js +20 -0
- package/optimize/es/components/avatar/avatar.styles.js +1 -1
- package/optimize/es/components/badge/notification_badge/badge_notification.styles.js +5 -7
- package/optimize/es/components/banner/banner.styles.js +1 -1
- package/optimize/es/components/basic_table/basic_table.styles.js +1 -1
- package/optimize/es/components/basic_table/default_item_action.js +1 -1
- package/optimize/es/components/basic_table/pagination_bar.styles.js +1 -1
- package/optimize/es/components/basic_table/panel.styles.js +1 -1
- package/optimize/es/components/breadcrumbs/_breadcrumb_content.styles.js +5 -5
- package/optimize/es/components/breadcrumbs/breadcrumb.styles.js +4 -4
- package/optimize/es/components/button/button_display/_button_display.js +2 -1
- package/optimize/es/components/button/button_group/button_group.styles.js +2 -2
- package/optimize/es/components/button/split_button/split_button.styles.js +2 -2
- package/optimize/es/components/call_out/call_out.styles.js +8 -4
- package/optimize/es/components/card/card.js +1 -1
- package/optimize/es/components/card/card.styles.js +3 -3
- package/optimize/es/components/code/code.styles.js +1 -1
- package/optimize/es/components/code/code_block.styles.js +1 -1
- package/optimize/es/components/color_picker/color_picker_swatch.styles.js +2 -4
- package/optimize/es/components/color_picker/saturation.styles.js +1 -1
- package/optimize/es/components/comment_list/comment_event.js +3 -1
- package/optimize/es/components/comment_list/comment_event.styles.js +1 -1
- package/optimize/es/components/context_menu/context_menu.styles.js +1 -1
- package/optimize/es/components/datagrid/body/cell/data_grid_cell.styles.js +1 -1
- package/optimize/es/components/datagrid/body/cell/data_grid_cell_actions.js +4 -4
- package/optimize/es/components/date_picker/react_date_picker.styles.js +6 -6
- package/optimize/es/components/date_picker/super_date_picker/super_date_picker.styles.js +1 -1
- package/optimize/es/components/description_list/description_list_description.js +1 -1
- package/optimize/es/components/description_list/description_list_description.styles.js +2 -1
- package/optimize/es/components/description_list/description_list_title.js +4 -1
- package/optimize/es/components/description_list/description_list_title.styles.js +4 -2
- package/optimize/es/components/drag_and_drop/draggable.js +2 -1
- package/optimize/es/components/drag_and_drop/draggable.styles.js +21 -16
- package/optimize/es/components/empty_prompt/empty_prompt.js +2 -1
- package/optimize/es/components/facet/facet_button.styles.js +1 -1
- package/optimize/es/components/filter_group/filter_button.styles.js +1 -1
- package/optimize/es/components/flyout/flyout_body.styles.js +1 -1
- package/optimize/es/components/form/checkbox/checkbox.styles.js +1 -1
- package/optimize/es/components/form/checkbox/checkbox_control.styles.js +1 -1
- package/optimize/es/components/form/form.styles.js +6 -6
- package/optimize/es/components/form/form_control_layout/form_control_layout.js +1 -1
- package/optimize/es/components/form/form_control_layout/form_control_layout.styles.js +2 -1
- package/optimize/es/components/form/form_control_layout/form_control_layout_delimited.styles.js +1 -1
- package/optimize/es/components/form/range/range.styles.js +1 -1
- package/optimize/es/components/form/range/range_ticks.styles.js +1 -1
- package/optimize/es/components/form/range/range_tooltip.styles.js +1 -1
- package/optimize/es/components/header/header_logo/header_logo.styles.js +1 -1
- package/optimize/es/components/icon/assets/table_sparkles.js +2 -8
- package/optimize/es/components/icon/icon.styles.js +1 -1
- package/optimize/es/components/icon/svgs/table_sparkles.svg +2 -4
- package/optimize/es/components/key_pad_menu/key_pad_menu_item.styles.js +4 -2
- package/optimize/es/components/link/link.js +1 -1
- package/optimize/es/components/link/link.styles.js +9 -8
- package/optimize/es/components/list_group/list_group.styles.js +1 -1
- package/optimize/es/components/list_item_layout/_list_item_layout.styles.js +5 -3
- package/optimize/es/components/markdown_editor/markdown_editor.styles.js +1 -1
- package/optimize/es/components/modal/modal.styles.js +2 -2
- package/optimize/es/components/panel/panel.js +2 -2
- package/optimize/es/components/panel/panel.styles.js +1 -1
- package/optimize/es/components/popover/popover.js +3 -1
- package/optimize/es/components/popover/popover_footer.styles.js +1 -1
- package/optimize/es/components/popover/popover_title.styles.js +1 -1
- package/optimize/es/components/progress/progress.styles.js +1 -1
- package/optimize/es/components/resizable_container/resizable_panel.js +4 -1
- package/optimize/es/components/selectable/selectable_list/selectable_list.styles.js +1 -1
- package/optimize/es/components/selectable/selectable_message/selectable_message.styles.js +1 -1
- package/optimize/es/components/skeleton/skeleton_rectangle.styles.js +2 -2
- package/optimize/es/components/skeleton/skeleton_text.styles.js +1 -1
- package/optimize/es/components/skeleton/skeleton_title.styles.js +2 -2
- package/optimize/es/components/table/sticky_header/sticky_header.js +2 -0
- package/optimize/es/components/table/sticky_scrollbar/sticky_scrollbar.styles.js +1 -1
- package/optimize/es/components/table/table.js +1 -0
- package/optimize/es/components/table/table_header_cell.js +2 -1
- package/optimize/es/components/table/table_row.styles.js +1 -1
- package/optimize/es/components/tabs/tab.styles.js +3 -3
- package/optimize/es/components/text/text.js +1 -1
- package/optimize/es/components/text/text.styles.js +1 -1
- package/optimize/es/components/title/title.styles.js +2 -1
- package/optimize/es/components/toast/toast.styles.js +23 -8
- package/optimize/es/components/token/token.styles.js +3 -3
- package/optimize/es/components/tool_tip/tool_tip.js +6 -3
- package/optimize/es/components/tool_tip/tool_tip.styles.js +5 -5
- package/optimize/es/components/tour/_tour_footer.styles.js +1 -1
- package/optimize/es/components/tree_view/tree_view_item.styles.js +2 -2
- package/optimize/es/global_styling/mixins/_button.js +8 -6
- package/optimize/es/services/popover/popover_arrow.styles.js +1 -1
- package/optimize/es/services/popover/popover_positioning.js +20 -0
- package/optimize/lib/components/avatar/avatar.styles.js +1 -1
- package/optimize/lib/components/badge/notification_badge/badge_notification.styles.js +5 -7
- package/optimize/lib/components/banner/banner.styles.js +1 -1
- package/optimize/lib/components/basic_table/basic_table.styles.js +1 -1
- package/optimize/lib/components/basic_table/default_item_action.js +1 -1
- package/optimize/lib/components/basic_table/pagination_bar.styles.js +1 -1
- package/optimize/lib/components/basic_table/panel.styles.js +1 -1
- package/optimize/lib/components/breadcrumbs/_breadcrumb_content.styles.js +5 -5
- package/optimize/lib/components/breadcrumbs/breadcrumb.styles.js +4 -4
- package/optimize/lib/components/button/button_display/_button_display.js +2 -1
- package/optimize/lib/components/button/button_group/button_group.styles.js +2 -2
- package/optimize/lib/components/button/split_button/split_button.styles.js +2 -2
- package/optimize/lib/components/call_out/call_out.styles.js +8 -4
- package/optimize/lib/components/card/card.js +1 -1
- package/optimize/lib/components/card/card.styles.js +2 -2
- package/optimize/lib/components/code/code.styles.js +1 -1
- package/optimize/lib/components/code/code_block.styles.js +1 -1
- package/optimize/lib/components/color_picker/color_picker_swatch.styles.js +1 -3
- package/optimize/lib/components/color_picker/saturation.styles.js +1 -1
- package/optimize/lib/components/comment_list/comment_event.js +3 -1
- package/optimize/lib/components/comment_list/comment_event.styles.js +1 -1
- package/optimize/lib/components/context_menu/context_menu.styles.js +1 -1
- package/optimize/lib/components/datagrid/body/cell/data_grid_cell.styles.js +1 -1
- package/optimize/lib/components/datagrid/body/cell/data_grid_cell_actions.js +4 -4
- package/optimize/lib/components/date_picker/react_date_picker.styles.js +6 -6
- package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +1 -1
- package/optimize/lib/components/description_list/description_list_description.js +1 -1
- package/optimize/lib/components/description_list/description_list_description.styles.js +2 -1
- package/optimize/lib/components/description_list/description_list_title.js +4 -1
- package/optimize/lib/components/description_list/description_list_title.styles.js +4 -2
- package/optimize/lib/components/drag_and_drop/draggable.js +2 -1
- package/optimize/lib/components/drag_and_drop/draggable.styles.js +21 -16
- package/optimize/lib/components/empty_prompt/empty_prompt.js +2 -1
- package/optimize/lib/components/facet/facet_button.styles.js +1 -1
- package/optimize/lib/components/filter_group/filter_button.styles.js +1 -1
- package/optimize/lib/components/flyout/flyout_body.styles.js +1 -1
- package/optimize/lib/components/form/checkbox/checkbox.styles.js +1 -1
- package/optimize/lib/components/form/checkbox/checkbox_control.styles.js +1 -1
- package/optimize/lib/components/form/form.styles.js +6 -6
- package/optimize/lib/components/form/form_control_layout/form_control_layout.js +1 -1
- package/optimize/lib/components/form/form_control_layout/form_control_layout.styles.js +2 -1
- package/optimize/lib/components/form/form_control_layout/form_control_layout_delimited.styles.js +1 -1
- package/optimize/lib/components/form/range/range.styles.js +1 -1
- package/optimize/lib/components/form/range/range_ticks.styles.js +1 -1
- package/optimize/lib/components/form/range/range_tooltip.styles.js +1 -1
- package/optimize/lib/components/header/header_logo/header_logo.styles.js +1 -1
- package/optimize/lib/components/icon/assets/table_sparkles.js +2 -8
- package/optimize/lib/components/icon/icon.styles.js +1 -1
- package/optimize/lib/components/icon/svgs/table_sparkles.svg +2 -4
- package/optimize/lib/components/key_pad_menu/key_pad_menu_item.styles.js +4 -2
- package/optimize/lib/components/link/link.js +1 -1
- package/optimize/lib/components/link/link.styles.js +9 -8
- package/optimize/lib/components/list_group/list_group.styles.js +1 -1
- package/optimize/lib/components/list_item_layout/_list_item_layout.styles.js +5 -3
- package/optimize/lib/components/markdown_editor/markdown_editor.styles.js +1 -1
- package/optimize/lib/components/modal/modal.styles.js +2 -2
- package/optimize/lib/components/panel/panel.js +2 -2
- package/optimize/lib/components/panel/panel.styles.js +1 -1
- package/optimize/lib/components/popover/popover.js +3 -1
- package/optimize/lib/components/popover/popover_footer.styles.js +1 -1
- package/optimize/lib/components/popover/popover_title.styles.js +1 -1
- package/optimize/lib/components/progress/progress.styles.js +1 -1
- package/optimize/lib/components/resizable_container/resizable_panel.js +4 -1
- package/optimize/lib/components/selectable/selectable_list/selectable_list.styles.js +1 -1
- package/optimize/lib/components/selectable/selectable_message/selectable_message.styles.js +1 -1
- package/optimize/lib/components/skeleton/skeleton_rectangle.styles.js +2 -2
- package/optimize/lib/components/skeleton/skeleton_text.styles.js +1 -1
- package/optimize/lib/components/skeleton/skeleton_title.styles.js +2 -2
- package/optimize/lib/components/table/sticky_header/sticky_header.js +2 -0
- package/optimize/lib/components/table/sticky_scrollbar/sticky_scrollbar.styles.js +1 -1
- package/optimize/lib/components/table/table.js +1 -0
- package/optimize/lib/components/table/table_header_cell.js +2 -1
- package/optimize/lib/components/table/table_row.styles.js +1 -1
- package/optimize/lib/components/tabs/tab.styles.js +3 -3
- package/optimize/lib/components/text/text.js +1 -1
- package/optimize/lib/components/text/text.styles.js +1 -1
- package/optimize/lib/components/title/title.styles.js +2 -1
- package/optimize/lib/components/toast/toast.styles.js +22 -7
- package/optimize/lib/components/token/token.styles.js +3 -3
- package/optimize/lib/components/tool_tip/tool_tip.js +5 -2
- package/optimize/lib/components/tool_tip/tool_tip.styles.js +5 -5
- package/optimize/lib/components/tour/_tour_footer.styles.js +1 -1
- package/optimize/lib/components/tree_view/tree_view_item.styles.js +2 -2
- package/optimize/lib/global_styling/mixins/_button.js +8 -6
- package/optimize/lib/services/popover/popover_arrow.styles.js +1 -1
- package/optimize/lib/services/popover/popover_positioning.js +20 -0
- package/package.json +6 -5
- package/test-env/components/avatar/avatar.styles.js +1 -1
- package/test-env/components/badge/notification_badge/badge_notification.styles.js +5 -7
- package/test-env/components/banner/banner.styles.js +1 -1
- package/test-env/components/basic_table/basic_table.js +5 -0
- package/test-env/components/basic_table/basic_table.styles.js +1 -1
- package/test-env/components/basic_table/default_item_action.js +1 -1
- package/test-env/components/basic_table/in_memory_table.js +5 -0
- package/test-env/components/basic_table/pagination_bar.styles.js +1 -1
- package/test-env/components/basic_table/panel.styles.js +1 -1
- package/test-env/components/breadcrumbs/_breadcrumb_content.js +5 -2
- package/test-env/components/breadcrumbs/_breadcrumb_content.styles.js +5 -5
- package/test-env/components/breadcrumbs/breadcrumb.styles.js +4 -4
- package/test-env/components/button/button_display/_button_display.js +2 -1
- package/test-env/components/button/button_group/button_group.styles.js +2 -2
- package/test-env/components/button/split_button/split_button.styles.js +2 -2
- package/test-env/components/call_out/call_out.styles.js +8 -4
- package/test-env/components/card/card.js +1 -1
- package/test-env/components/card/card.styles.js +2 -2
- package/test-env/components/code/code.styles.js +1 -1
- package/test-env/components/code/code_block.styles.js +1 -1
- package/test-env/components/color_picker/color_picker_swatch.styles.js +1 -3
- package/test-env/components/color_picker/saturation.styles.js +1 -1
- package/test-env/components/comment_list/comment_event.js +3 -1
- package/test-env/components/comment_list/comment_event.styles.js +1 -1
- package/test-env/components/context_menu/context_menu.styles.js +1 -1
- package/test-env/components/datagrid/body/cell/data_grid_cell.styles.js +1 -1
- package/test-env/components/datagrid/body/cell/data_grid_cell_actions.js +4 -4
- package/test-env/components/date_picker/react_date_picker.styles.js +6 -6
- package/test-env/components/date_picker/super_date_picker/super_date_picker.styles.js +1 -1
- package/test-env/components/description_list/description_list_description.js +1 -1
- package/test-env/components/description_list/description_list_description.styles.js +2 -1
- package/test-env/components/description_list/description_list_title.js +4 -1
- package/test-env/components/description_list/description_list_title.styles.js +4 -2
- package/test-env/components/drag_and_drop/draggable.js +2 -1
- package/test-env/components/drag_and_drop/draggable.styles.js +21 -16
- package/test-env/components/empty_prompt/empty_prompt.js +7 -4
- package/test-env/components/facet/facet_button.styles.js +1 -1
- package/test-env/components/filter_group/filter_button.styles.js +1 -1
- package/test-env/components/flyout/flyout_body.styles.js +1 -1
- package/test-env/components/form/checkbox/checkbox.styles.js +1 -1
- package/test-env/components/form/checkbox/checkbox_control.styles.js +1 -1
- package/test-env/components/form/form.styles.js +6 -6
- package/test-env/components/form/form_control_layout/form_control_layout.js +1 -1
- package/test-env/components/form/form_control_layout/form_control_layout.styles.js +2 -1
- package/test-env/components/form/form_control_layout/form_control_layout_delimited.styles.js +1 -1
- package/test-env/components/form/range/range.styles.js +1 -1
- package/test-env/components/form/range/range_ticks.styles.js +1 -1
- package/test-env/components/form/range/range_tooltip.styles.js +1 -1
- package/test-env/components/header/header_logo/header_logo.styles.js +1 -1
- package/test-env/components/icon/assets/table_sparkles.js +2 -8
- package/test-env/components/icon/icon.styles.js +1 -1
- package/test-env/components/key_pad_menu/key_pad_menu_item.styles.js +4 -2
- package/test-env/components/link/link.js +3 -1
- package/test-env/components/link/link.styles.js +9 -8
- package/test-env/components/list_group/list_group.styles.js +1 -1
- package/test-env/components/list_item_layout/_list_item_layout.styles.js +5 -3
- package/test-env/components/markdown_editor/markdown_editor.styles.js +1 -1
- package/test-env/components/modal/modal.styles.js +2 -2
- package/test-env/components/panel/panel.js +22 -12
- package/test-env/components/panel/panel.styles.js +1 -1
- package/test-env/components/panel/split_panel/split_panel.js +3 -1
- package/test-env/components/popover/popover.js +3 -1
- package/test-env/components/popover/popover_footer.styles.js +1 -1
- package/test-env/components/popover/popover_title.styles.js +1 -1
- package/test-env/components/progress/progress.styles.js +1 -1
- package/test-env/components/resizable_container/resizable_panel.js +14 -6
- package/test-env/components/selectable/selectable_list/selectable_list.styles.js +1 -1
- package/test-env/components/selectable/selectable_message/selectable_message.styles.js +1 -1
- package/test-env/components/skeleton/skeleton_rectangle.styles.js +2 -2
- package/test-env/components/skeleton/skeleton_text.styles.js +1 -1
- package/test-env/components/skeleton/skeleton_title.styles.js +2 -2
- package/test-env/components/table/sticky_header/sticky_header.js +2 -0
- package/test-env/components/table/sticky_scrollbar/sticky_scrollbar.styles.js +1 -1
- package/test-env/components/table/table.js +1 -0
- package/test-env/components/table/table_header_cell.js +2 -1
- package/test-env/components/table/table_row.styles.js +1 -1
- package/test-env/components/tabs/tab.styles.js +3 -3
- package/test-env/components/text/text.js +2 -1
- package/test-env/components/text/text.styles.js +1 -1
- package/test-env/components/title/title.styles.js +2 -1
- package/test-env/components/toast/toast.styles.js +22 -7
- package/test-env/components/token/token.styles.js +3 -3
- package/test-env/components/tool_tip/tool_tip.js +5 -2
- package/test-env/components/tool_tip/tool_tip.styles.js +5 -5
- package/test-env/components/tour/_tour_footer.styles.js +1 -1
- package/test-env/components/tree_view/tree_view_item.styles.js +2 -2
- package/test-env/global_styling/mixins/_button.js +8 -6
- package/test-env/services/popover/popover_arrow.styles.js +1 -1
- package/test-env/services/popover/popover_positioning.js +20 -0
|
@@ -54,9 +54,9 @@ export var EuiPanel = function EuiPanel(_ref) {
|
|
|
54
54
|
_ref$color = _ref.color,
|
|
55
55
|
color = _ref$color === void 0 ? 'plain' : _ref$color,
|
|
56
56
|
_ref$hasShadow = _ref.hasShadow,
|
|
57
|
-
hasShadow = _ref$hasShadow === void 0 ?
|
|
57
|
+
hasShadow = _ref$hasShadow === void 0 ? false : _ref$hasShadow,
|
|
58
58
|
_ref$hasBorder = _ref.hasBorder,
|
|
59
|
-
hasBorder = _ref$hasBorder === void 0 ?
|
|
59
|
+
hasBorder = _ref$hasBorder === void 0 ? true : _ref$hasBorder,
|
|
60
60
|
_ref$grow = _ref.grow,
|
|
61
61
|
grow = _ref$grow === void 0 ? true : _ref$grow,
|
|
62
62
|
panelRef = _ref.panelRef,
|
|
@@ -95,35 +95,45 @@ export var EuiPanel = function EuiPanel(_ref) {
|
|
|
95
95
|
EuiPanel.propTypes = {
|
|
96
96
|
element: PropTypes.oneOfType([PropTypes.oneOf(["button"]), PropTypes.oneOf(["div"])]),
|
|
97
97
|
/**
|
|
98
|
-
* Adds a medium shadow to the panel
|
|
99
|
-
* Only
|
|
98
|
+
* Adds a medium shadow to the panel.
|
|
99
|
+
* Only applies when `color="plain"` and `hasBorder={false}`.
|
|
100
|
+
* @default false
|
|
100
101
|
*/
|
|
101
102
|
/**
|
|
102
|
-
* Adds a medium shadow to the panel
|
|
103
|
-
* Only
|
|
103
|
+
* Adds a medium shadow to the panel.
|
|
104
|
+
* Only applies when `color="plain"` and `hasBorder={false}`.
|
|
105
|
+
* @default false
|
|
104
106
|
*/
|
|
105
107
|
hasShadow: PropTypes.bool,
|
|
106
108
|
/**
|
|
107
109
|
* Adds a slight 1px border on all edges.
|
|
108
|
-
* Only
|
|
110
|
+
* Only applies when `color="plain | transparent"`.
|
|
111
|
+
* @default true
|
|
109
112
|
*/
|
|
110
113
|
/**
|
|
111
114
|
* Adds a slight 1px border on all edges.
|
|
112
|
-
* Only
|
|
115
|
+
* Only applies when `color="plain | transparent"`.
|
|
116
|
+
* @default true
|
|
113
117
|
*/
|
|
114
118
|
hasBorder: PropTypes.bool,
|
|
115
119
|
/**
|
|
116
|
-
* Padding for all four sides
|
|
120
|
+
* Padding for all four sides.
|
|
121
|
+
* Do not use `xs` and `xl` values, they will be removed in the future.
|
|
122
|
+
* @default m
|
|
117
123
|
*/
|
|
118
124
|
/**
|
|
119
|
-
* Padding for all four sides
|
|
125
|
+
* Padding for all four sides.
|
|
126
|
+
* Do not use `xs` and `xl` values, they will be removed in the future.
|
|
127
|
+
* @default m
|
|
120
128
|
*/
|
|
121
129
|
paddingSize: PropTypes.any,
|
|
122
130
|
/**
|
|
123
|
-
* Corner border radius
|
|
131
|
+
* Corner border radius.
|
|
132
|
+
* @default m
|
|
124
133
|
*/
|
|
125
134
|
/**
|
|
126
|
-
* Corner border radius
|
|
135
|
+
* Corner border radius.
|
|
136
|
+
* @default m
|
|
127
137
|
*/
|
|
128
138
|
borderRadius: PropTypes.any,
|
|
129
139
|
/**
|
|
@@ -50,7 +50,7 @@ export var euiPanelStyles = function euiPanelStyles(euiThemeContext) {
|
|
|
50
50
|
}), ";;label:hasBorder;"),
|
|
51
51
|
radius: {
|
|
52
52
|
none: /*#__PURE__*/css(";label:none;"),
|
|
53
|
-
m: /*#__PURE__*/css("border-radius:", euiTheme.border.radius.
|
|
53
|
+
m: /*#__PURE__*/css("border-radius:", euiTheme.border.radius.panel, ";;label:m;")
|
|
54
54
|
},
|
|
55
55
|
// Setup interactive behavior
|
|
56
56
|
isClickable: /*#__PURE__*/css(euiCanAnimate, "{transition:box-shadow ", euiTheme.animation.fast, " ", euiTheme.animation.resistance, ";}&:enabled{display:block;", logicalCSS('width', '100%'), " ", logicalTextAlignCSS('left'), ";}&:hover,&:focus{", highContrastModeStyles(euiThemeContext, {
|
|
@@ -51,7 +51,9 @@ export var _EuiSplitPanelInner = function _EuiSplitPanelInner(_ref) {
|
|
|
51
51
|
};
|
|
52
52
|
_EuiSplitPanelInner.propTypes = {
|
|
53
53
|
/**
|
|
54
|
-
* Padding for all four sides
|
|
54
|
+
* Padding for all four sides.
|
|
55
|
+
* Do not use `xs` and `xl` values, they will be removed in the future.
|
|
56
|
+
* @default m
|
|
55
57
|
*/
|
|
56
58
|
paddingSize: PropTypes.any,
|
|
57
59
|
/**
|
|
@@ -259,7 +259,8 @@ export var EuiPopover = /*#__PURE__*/function (_Component) {
|
|
|
259
259
|
offset: _this.props.attachToAnchor ? offset : _this.props.hasArrow ? 16 + offset : 8 + offset,
|
|
260
260
|
arrowConfig: _this.props.hasArrow ? {
|
|
261
261
|
arrowWidth: 16,
|
|
262
|
-
arrowBuffer: 10
|
|
262
|
+
arrowBuffer: 10,
|
|
263
|
+
borderRadius: 12
|
|
263
264
|
} : {
|
|
264
265
|
arrowWidth: 0,
|
|
265
266
|
arrowBuffer: 0
|
|
@@ -509,6 +510,7 @@ export var EuiPopover = /*#__PURE__*/function (_Component) {
|
|
|
509
510
|
isAttached: attachToAnchor,
|
|
510
511
|
className: classNames(panelClassName, panelProps === null || panelProps === void 0 ? void 0 : panelProps.className),
|
|
511
512
|
hasShadow: false,
|
|
513
|
+
hasBorder: false,
|
|
512
514
|
paddingSize: panelPaddingSize,
|
|
513
515
|
tabIndex: tabIndex,
|
|
514
516
|
"aria-live": ariaLive,
|
|
@@ -673,11 +675,14 @@ EuiPopover.propTypes = {
|
|
|
673
675
|
panelProps: PropTypes.shape({
|
|
674
676
|
element: PropTypes.oneOf(["div"]),
|
|
675
677
|
/**
|
|
676
|
-
* Padding for all four sides
|
|
678
|
+
* Padding for all four sides.
|
|
679
|
+
* Do not use `xs` and `xl` values, they will be removed in the future.
|
|
680
|
+
* @default m
|
|
677
681
|
*/
|
|
678
682
|
paddingSize: PropTypes.any,
|
|
679
683
|
/**
|
|
680
|
-
* Corner border radius
|
|
684
|
+
* Corner border radius.
|
|
685
|
+
* @default m
|
|
681
686
|
*/
|
|
682
687
|
borderRadius: PropTypes.any,
|
|
683
688
|
/**
|
|
@@ -13,7 +13,7 @@ export var euiPopoverFooterStyles = function euiPopoverFooterStyles(euiThemeCont
|
|
|
13
13
|
highContrastMode = euiThemeContext.highContrastMode;
|
|
14
14
|
return {
|
|
15
15
|
// Base
|
|
16
|
-
euiPopoverFooter: /*#__PURE__*/css(euiFontSize(euiThemeContext, 's'), " ", logicalCSS('border-top', "".concat(euiTheme.border.width.thin, " solid ").concat(highContrastMode ? euiTheme.border.color : euiTheme.components.popoverFooterBorderColor)), logicalCSS('border-bottom-left-radius', euiTheme.border.radius.
|
|
16
|
+
euiPopoverFooter: /*#__PURE__*/css(euiFontSize(euiThemeContext, 's'), " ", logicalCSS('border-top', "".concat(euiTheme.border.width.thin, " solid ").concat(highContrastMode ? euiTheme.border.color : euiTheme.components.popoverFooterBorderColor)), logicalCSS('border-bottom-left-radius', euiTheme.border.radius.panel), " ", logicalCSS('border-bottom-right-radius', euiTheme.border.radius.panel), ";;label:euiPopoverFooter;"),
|
|
17
17
|
// If the popover's containing panel has padding applied,
|
|
18
18
|
// ensure the footer expands to cover that padding via negative margins
|
|
19
19
|
panelPaddingSizes: {
|
|
@@ -57,11 +57,14 @@ export var EuiPopoverPanel = function EuiPopoverPanel(_ref) {
|
|
|
57
57
|
EuiPopoverPanel.propTypes = {
|
|
58
58
|
element: PropTypes.oneOf(["div"]),
|
|
59
59
|
/**
|
|
60
|
-
* Padding for all four sides
|
|
60
|
+
* Padding for all four sides.
|
|
61
|
+
* Do not use `xs` and `xl` values, they will be removed in the future.
|
|
62
|
+
* @default m
|
|
61
63
|
*/
|
|
62
64
|
paddingSize: PropTypes.any,
|
|
63
65
|
/**
|
|
64
|
-
* Corner border radius
|
|
66
|
+
* Corner border radius.
|
|
67
|
+
* @default m
|
|
65
68
|
*/
|
|
66
69
|
borderRadius: PropTypes.any,
|
|
67
70
|
/**
|
|
@@ -13,7 +13,7 @@ export var euiPopoverTitleStyles = function euiPopoverTitleStyles(euiThemeContex
|
|
|
13
13
|
var euiTheme = euiThemeContext.euiTheme;
|
|
14
14
|
return {
|
|
15
15
|
// Base
|
|
16
|
-
euiPopoverTitle: /*#__PURE__*/css(euiTitle(euiThemeContext, 'xxs'), " ", logicalCSS('border-bottom', euiTheme.border.thin), logicalCSS('border-top-left-radius', euiTheme.border.radius.
|
|
16
|
+
euiPopoverTitle: /*#__PURE__*/css(euiTitle(euiThemeContext, 'xxs'), " ", logicalCSS('border-bottom', euiTheme.border.thin), logicalCSS('border-top-left-radius', euiTheme.border.radius.panel), " ", logicalCSS('border-top-right-radius', euiTheme.border.radius.panel), ";;label:euiPopoverTitle;"),
|
|
17
17
|
// If the popover's containing panel has padding applied,
|
|
18
18
|
// ensure the title expands to cover that padding via negative margins
|
|
19
19
|
panelPaddingSizes: {
|
|
@@ -109,7 +109,7 @@ export var euiProgressStyles = function euiProgressStyles(euiThemeContext, isNat
|
|
|
109
109
|
},
|
|
110
110
|
// Positioning
|
|
111
111
|
fixed: /*#__PURE__*/css("position:fixed;z-index:", Number(euiTheme.levels.header) + 1, ";", nonStaticPositioning(isNative), ";;label:fixed;"),
|
|
112
|
-
absolute: /*#__PURE__*/css("position:absolute;", nonStaticPositioning(isNative), " ", logicalCSS('border-top-left-radius', 'inherit'), " ", logicalCSS('border-top-right-radius', 'inherit'), ";;label:absolute;"),
|
|
112
|
+
absolute: /*#__PURE__*/css("position:absolute;z-index:", Number(euiTheme.levels.content) + 1, ";", nonStaticPositioning(isNative), " ", logicalCSS('border-top-left-radius', 'inherit'), " ", logicalCSS('border-top-right-radius', 'inherit'), ";;label:absolute;"),
|
|
113
113
|
static: _ref2,
|
|
114
114
|
// Colors
|
|
115
115
|
primary: /*#__PURE__*/css(nativeVsIndeterminateColor(euiTheme.colors.primary, isNative, highContrastMode), ";;label:primary;"),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["children", "className", "css", "id", "isHorizontal", "size", "initialSize", "minSize", "scrollable", "mode", "registration", "onToggleCollapsed", "onToggleCollapsedInternal", "wrapperProps", "hasShadow", "borderRadius", "color", "paddingSize", "wrapperPadding"];
|
|
1
|
+
var _excluded = ["children", "className", "css", "id", "isHorizontal", "size", "initialSize", "minSize", "scrollable", "mode", "registration", "onToggleCollapsed", "onToggleCollapsedInternal", "wrapperProps", "hasShadow", "hasBorder", "borderRadius", "color", "paddingSize", "wrapperPadding"];
|
|
2
2
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
3
|
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
4
4
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
|
|
@@ -66,6 +66,8 @@ export var EuiResizablePanel = function EuiResizablePanel(_ref) {
|
|
|
66
66
|
wrapperProps = _ref.wrapperProps,
|
|
67
67
|
_ref$hasShadow = _ref.hasShadow,
|
|
68
68
|
hasShadow = _ref$hasShadow === void 0 ? false : _ref$hasShadow,
|
|
69
|
+
_ref$hasBorder = _ref.hasBorder,
|
|
70
|
+
hasBorder = _ref$hasBorder === void 0 ? false : _ref$hasBorder,
|
|
69
71
|
_ref$borderRadius = _ref.borderRadius,
|
|
70
72
|
borderRadius = _ref$borderRadius === void 0 ? 'none' : _ref$borderRadius,
|
|
71
73
|
_ref$color = _ref.color,
|
|
@@ -223,6 +225,7 @@ export var EuiResizablePanel = function EuiResizablePanel(_ref) {
|
|
|
223
225
|
css: contentCssStyles,
|
|
224
226
|
className: panelClasses,
|
|
225
227
|
hasShadow: hasShadow,
|
|
228
|
+
hasBorder: hasBorder,
|
|
226
229
|
borderRadius: borderRadius,
|
|
227
230
|
color: color,
|
|
228
231
|
paddingSize: isCollapsed ? 'none' : paddingSize
|
|
@@ -289,21 +292,26 @@ EuiResizablePanel.propTypes = {
|
|
|
289
292
|
*/
|
|
290
293
|
wrapperPadding: PropTypes.any,
|
|
291
294
|
/**
|
|
292
|
-
* Adds a medium shadow to the panel
|
|
293
|
-
* Only
|
|
295
|
+
* Adds a medium shadow to the panel.
|
|
296
|
+
* Only applies when `color="plain"` and `hasBorder={false}`.
|
|
297
|
+
* @default false
|
|
294
298
|
*/
|
|
295
299
|
hasShadow: PropTypes.bool,
|
|
296
300
|
/**
|
|
297
301
|
* Adds a slight 1px border on all edges.
|
|
298
|
-
* Only
|
|
302
|
+
* Only applies when `color="plain | transparent"`.
|
|
303
|
+
* @default true
|
|
299
304
|
*/
|
|
300
305
|
hasBorder: PropTypes.bool,
|
|
301
306
|
/**
|
|
302
|
-
* Padding for all four sides
|
|
307
|
+
* Padding for all four sides.
|
|
308
|
+
* Do not use `xs` and `xl` values, they will be removed in the future.
|
|
309
|
+
* @default m
|
|
303
310
|
*/
|
|
304
311
|
paddingSize: PropTypes.any,
|
|
305
312
|
/**
|
|
306
|
-
* Corner border radius
|
|
313
|
+
* Corner border radius.
|
|
314
|
+
* @default m
|
|
307
315
|
*/
|
|
308
316
|
borderRadius: PropTypes.any,
|
|
309
317
|
/**
|
|
@@ -28,7 +28,7 @@ export var euiSelectableListStyles = function euiSelectableListStyles(euiThemeCo
|
|
|
28
28
|
return {
|
|
29
29
|
euiSelectableList: /*#__PURE__*/css("&:has(:focus-visible){", euiFocusRing(euiThemeContext, 'outset'), ";};label:euiSelectableList;"),
|
|
30
30
|
fullHeight: _ref,
|
|
31
|
-
bordered: /*#__PURE__*/css("overflow:hidden;border:", euiTheme.border.thin, ";border-radius:", euiTheme.border.radius.
|
|
31
|
+
bordered: /*#__PURE__*/css("overflow:hidden;border:", euiTheme.border.thin, ";border-radius:", euiTheme.border.radius.panel, ";;label:bordered;"),
|
|
32
32
|
paddingSize: {
|
|
33
33
|
s: /*#__PURE__*/css("padding:", euiTheme.size.s, ";;label:s;")
|
|
34
34
|
},
|
|
@@ -12,6 +12,6 @@ export var euiSelectableMessageStyles = function euiSelectableMessageStyles(euiT
|
|
|
12
12
|
return {
|
|
13
13
|
euiSelectableMessage: /*#__PURE__*/css("display:flex;flex-direction:column;justify-content:center;align-items:center;padding:", euiTheme.size.s, ";text-align:center;word-wrap:break-word;;label:euiSelectableMessage;"),
|
|
14
14
|
// Match border from selectable_list
|
|
15
|
-
bordered: /*#__PURE__*/css("overflow:hidden;border:", euiTheme.border.thin, ";border-radius:", euiTheme.border.radius.
|
|
15
|
+
bordered: /*#__PURE__*/css("overflow:hidden;border:", euiTheme.border.thin, ";border-radius:", euiTheme.border.radius.panel, ";;label:bordered;")
|
|
16
16
|
};
|
|
17
17
|
};
|
|
@@ -26,8 +26,8 @@ export var euiSkeletonRectangleStyles = function euiSkeletonRectangleStyles(euiT
|
|
|
26
26
|
gradientSize: '400%'
|
|
27
27
|
}), " ", preventForcedColors(euiThemeContext), ";;label:euiSkeletonRectangle;"),
|
|
28
28
|
// Border radius
|
|
29
|
-
s: /*#__PURE__*/css("border-radius:", euiTheme.border.radius.
|
|
30
|
-
m: /*#__PURE__*/css("border-radius:", euiTheme.border.radius.
|
|
29
|
+
s: /*#__PURE__*/css("border-radius:", euiTheme.border.radius.inline, ";;label:s;"),
|
|
30
|
+
m: /*#__PURE__*/css("border-radius:", euiTheme.border.radius.inline, ";;label:m;"),
|
|
31
31
|
none: _ref
|
|
32
32
|
};
|
|
33
33
|
};
|
|
@@ -23,7 +23,7 @@ var calculateLineSize = function calculateLineSize(euiThemeContext, size) {
|
|
|
23
23
|
export var euiSkeletonTextStyles = function euiSkeletonTextStyles(euiThemeContext) {
|
|
24
24
|
var euiTheme = euiThemeContext.euiTheme;
|
|
25
25
|
return {
|
|
26
|
-
euiSkeletonText: /*#__PURE__*/css("display:block;", logicalCSS('width', '100%'), " border-radius:", euiTheme.border.radius.
|
|
26
|
+
euiSkeletonText: /*#__PURE__*/css("display:block;", logicalCSS('width', '100%'), " border-radius:", euiTheme.border.radius.inline, ";", euiSkeletonGradientAnimation(euiThemeContext), " ", preventForcedColors(euiThemeContext), "transform:translateY(-25%);&:last-child:not(:only-child){", logicalCSS('width', '75%'), ";};label:euiSkeletonText;"),
|
|
27
27
|
// Sizes
|
|
28
28
|
m: /*#__PURE__*/css(calculateLineSize(euiThemeContext, 'm'), ";;label:m;"),
|
|
29
29
|
s: /*#__PURE__*/css(calculateLineSize(euiThemeContext, 's'), ";;label:s;"),
|
|
@@ -14,13 +14,13 @@ import { euiSkeletonGradientAnimation } from './utils';
|
|
|
14
14
|
export var euiSkeletonTitleStyles = function euiSkeletonTitleStyles(euiThemeContext) {
|
|
15
15
|
var euiTheme = euiThemeContext.euiTheme;
|
|
16
16
|
return {
|
|
17
|
-
euiSkeletonTitle: /*#__PURE__*/css("display:block;", logicalCSS('width', '45%'), " border-radius:", euiTheme.border.radius.
|
|
17
|
+
euiSkeletonTitle: /*#__PURE__*/css("display:block;", logicalCSS('width', '45%'), " border-radius:", euiTheme.border.radius.inline, ";", euiSkeletonGradientAnimation(euiThemeContext), " ", preventForcedColors(euiThemeContext), ";;label:euiSkeletonTitle;"),
|
|
18
18
|
// Sizes
|
|
19
19
|
l: /*#__PURE__*/css(logicalCSS('height', euiTitle(euiThemeContext, 'l').lineHeight), ";;label:l;"),
|
|
20
20
|
m: /*#__PURE__*/css(logicalCSS('height', euiTitle(euiThemeContext, 'm').lineHeight), ";;label:m;"),
|
|
21
21
|
s: /*#__PURE__*/css(logicalCSS('height', euiTitle(euiThemeContext, 's').lineHeight), ";;label:s;"),
|
|
22
22
|
xs: /*#__PURE__*/css(logicalCSS('height', euiTitle(euiThemeContext, 'xs').lineHeight), ";;label:xs;"),
|
|
23
23
|
xxs: /*#__PURE__*/css(logicalCSS('height', euiTitle(euiThemeContext, 'xxs').lineHeight), ";;label:xxs;"),
|
|
24
|
-
xxxs: /*#__PURE__*/css(logicalCSS('height', euiTitle(euiThemeContext, 'xxxs').lineHeight), " border-radius:", euiTheme.border.radius.
|
|
24
|
+
xxxs: /*#__PURE__*/css(logicalCSS('height', euiTitle(euiThemeContext, 'xxxs').lineHeight), " border-radius:", euiTheme.border.radius.inline, ";;label:xxxs;")
|
|
25
25
|
};
|
|
26
26
|
};
|
|
@@ -128,12 +128,14 @@ export var EuiTableStickyHeader = function EuiTableStickyHeader(_ref) {
|
|
|
128
128
|
css: styles.wrapper,
|
|
129
129
|
"aria-hidden": "true"
|
|
130
130
|
}, ___EmotionJSX("div", {
|
|
131
|
+
className: "euiTableStickyHeader__container",
|
|
131
132
|
css: [
|
|
132
133
|
// This CSS container is needed to feed `<EuiTableHeaderCell>`
|
|
133
134
|
// with `sticky` prop set the necessary scroll state
|
|
134
135
|
euiContainerCSS('normal', EUI_TABLE_CSS_CONTAINER_NAME, true), styles.innerWrapper, ";label:EuiTableStickyHeader;"],
|
|
135
136
|
ref: stickyTableWrapperRef
|
|
136
137
|
}, ___EmotionJSX("table", {
|
|
138
|
+
className: "euiTableStickyHeader",
|
|
137
139
|
css: tableStyles,
|
|
138
140
|
ref: stickyTableRef
|
|
139
141
|
}, ___EmotionJSX(EuiTableHeader, {
|
|
@@ -22,6 +22,6 @@ export var euiTableStickyScrollbarStyles = function euiTableStickyScrollbarStyle
|
|
|
22
22
|
return {
|
|
23
23
|
wrapper: /*#__PURE__*/css("block-size:", euiTheme.size.base, ";padding:", euiTheme.size.xs, ";position:sticky;background:", euiTheme.components.scrollbarTrackColor, ";inset-block-end:var(--euiTableStickyScrollbarOffsetBottom, 0);z-index:var(--euiTableStickyScrollbarZIndex, 0);;label:wrapper;"),
|
|
24
24
|
wrapperHidden: _ref,
|
|
25
|
-
track: /*#__PURE__*/css("block-size:100%;background:", transparentize(euiTheme.colors.darkShade, 0.5), ";border-radius:", euiTheme.border.radius.
|
|
25
|
+
track: /*#__PURE__*/css("block-size:100%;background:", transparentize(euiTheme.colors.darkShade, 0.5), ";border-radius:", euiTheme.border.radius.inline, ";;label:track;")
|
|
26
26
|
};
|
|
27
27
|
};
|
|
@@ -55,7 +55,8 @@ var CellContents = function CellContents(_ref) {
|
|
|
55
55
|
position: "top",
|
|
56
56
|
iconProps: _objectSpread({
|
|
57
57
|
role: 'button'
|
|
58
|
-
}, tooltipProps.iconProps)
|
|
58
|
+
}, tooltipProps.iconProps),
|
|
59
|
+
display: "flex"
|
|
59
60
|
}, tooltipProps.tooltipProps)) : null;
|
|
60
61
|
return ___EmotionJSX(EuiTableCellContent, {
|
|
61
62
|
className: className,
|
|
@@ -38,7 +38,7 @@ export var euiTableRowStyles = function euiTableRowStyles(euiThemeContext) {
|
|
|
38
38
|
checkboxOffset: /*#__PURE__*/css("&>.euiTableRowCell:first-child{", logicalCSS('padding-left', checkboxSize), ";};label:checkboxOffset;")
|
|
39
39
|
},
|
|
40
40
|
mobile: {
|
|
41
|
-
mobile: /*#__PURE__*/css("position:relative;display:flex;flex-wrap:wrap;padding:", cellContentPadding, ";", logicalCSS('margin-bottom', cellContentPadding), " border-radius:", euiTheme.border.radius.
|
|
41
|
+
mobile: /*#__PURE__*/css("position:relative;display:flex;flex-wrap:wrap;padding:", cellContentPadding, ";", logicalCSS('margin-bottom', cellContentPadding), " border-radius:", euiTheme.border.radius.panel, ";", cssSupportsHasWithNextSibling("\n &:has(+ .euiTableRow-isExpandedRow) {\n ".concat(logicalCSS('border-bottom-left-radius', 0), "\n ").concat(logicalCSS('border-bottom-right-radius', 0), "\n }\n ")), ";;label:mobile;"),
|
|
42
42
|
/* Omitting adding a class via css here as it's a default style on mobile, not a standalone prop-related style.
|
|
43
43
|
Adding it separate allows better appliance control via props without the need to override the styles. */
|
|
44
44
|
hasBorder: "\n ".concat(highContrastModeStyles(euiThemeContext, {
|
|
@@ -24,10 +24,10 @@ export var euiTabStyles = function euiTabStyles(euiThemeContext) {
|
|
|
24
24
|
return x * 2;
|
|
25
25
|
}) : euiTheme.border.width.thick;
|
|
26
26
|
return {
|
|
27
|
-
euiTab: /*#__PURE__*/css("position:relative;display:flex;cursor:pointer;flex-direction:row;align-items:center;gap:", euiTheme.size.s, ";", logicalCSS('padding-vertical', 0), " ", logicalCSS('padding-horizontal', euiTheme.
|
|
27
|
+
euiTab: /*#__PURE__*/css("position:relative;display:flex;cursor:pointer;flex-direction:row;align-items:center;gap:", euiTheme.size.s, ";", logicalCSS('padding-vertical', 0), " ", logicalCSS('padding-horizontal', 0), " border-radius:", euiTheme.border.radius.control, ";font-weight:", euiTheme.font.weight.semiBold, ";color:", euiTheme.colors.textSubdued, ";&:focus{outline-offset:-", euiTheme.focus.width, ";}&::after{position:absolute;", logicalCSS('bottom', 0), " ", logicalCSS('horizontal', 0), " ", logicalCSS('border-bottom-style', 'solid'), " ", logicalCSS('border-bottom-width', selectedUnderlineSize), " pointer-events:none;};label:euiTab;"),
|
|
28
28
|
// variations
|
|
29
29
|
expanded: _ref,
|
|
30
|
-
selected: /*#__PURE__*/css("color:", euiTheme.colors.
|
|
30
|
+
selected: /*#__PURE__*/css("color:", euiTheme.colors.textHeading, ";&::after{content:'';border-color:", euiTheme.colors.primary, ";};label:selected;"),
|
|
31
31
|
disabled: {
|
|
32
32
|
disabled: /*#__PURE__*/css("cursor:not-allowed;color:", euiTheme.colors.textDisabled, ";;label:disabled;"),
|
|
33
33
|
selected: /*#__PURE__*/css("&::after{content:'';border-color:", euiTheme.colors.textDisabled, ";};label:selected;")
|
|
@@ -37,7 +37,7 @@ export var euiTabStyles = function euiTabStyles(euiThemeContext) {
|
|
|
37
37
|
export var euiTabContentStyles = function euiTabContentStyles(euiThemeContext) {
|
|
38
38
|
var euiTheme = euiThemeContext.euiTheme;
|
|
39
39
|
return {
|
|
40
|
-
euiTab__content: /*#__PURE__*/css("font-weight:", euiTheme.font.weight
|
|
40
|
+
euiTab__content: /*#__PURE__*/css("font-weight:", euiTheme.font.weight.semiBold, ";;label:euiTab__content;"),
|
|
41
41
|
// sizes
|
|
42
42
|
s: /*#__PURE__*/css("font-size:", euiFontSize(euiThemeContext, 'xs').fontSize, ";line-height:", euiTheme.size.xl, ";;label:s;"),
|
|
43
43
|
m: /*#__PURE__*/css("font-size:", euiFontSize(euiThemeContext, 's').fontSize, ";line-height:", euiTheme.size.xxl, ";;label:m;"),
|
|
@@ -26,7 +26,7 @@ export var EuiText = function EuiText(_ref) {
|
|
|
26
26
|
var _ref$component = _ref.component,
|
|
27
27
|
component = _ref$component === void 0 ? 'div' : _ref$component,
|
|
28
28
|
_ref$size = _ref.size,
|
|
29
|
-
size = _ref$size === void 0 ? '
|
|
29
|
+
size = _ref$size === void 0 ? 's' : _ref$size,
|
|
30
30
|
color = _ref.color,
|
|
31
31
|
_ref$grow = _ref.grow,
|
|
32
32
|
grow = _ref$grow === void 0 ? true : _ref$grow,
|
|
@@ -84,6 +84,7 @@ EuiText.propTypes = {
|
|
|
84
84
|
textAlign: PropTypes.any,
|
|
85
85
|
/**
|
|
86
86
|
* Determines the text size. Choose `relative` to control the `font-size` based on the value of a parent container.
|
|
87
|
+
* @default 's'
|
|
87
88
|
*/
|
|
88
89
|
size: PropTypes.any,
|
|
89
90
|
grow: PropTypes.bool
|
|
@@ -74,7 +74,7 @@ export var euiTextStyles = function euiTextStyles(euiThemeContext) {
|
|
|
74
74
|
return {
|
|
75
75
|
euiText: /*#__PURE__*/css(euiText(euiTheme, true), "clear:both;a:not([class]){", euiLinkCSS(euiThemeContext), ";}ul{list-style:disc;}ol{list-style:decimal;}blockquote{border-inline-start-color:", euiTheme.border.color, ";border-inline-start-style:solid;}blockquote:not(.euiMarkdownFormat__blockquote){color:", euiTheme.colors.textSubdued, ";}h1{", euiTitle(euiThemeContext, 'l'), ";}h2{", euiTitle(euiThemeContext, 'm'), ";}h3{", euiTitle(euiThemeContext, 's'), ";}h4,dt{", euiTitle(euiThemeContext, 'xs'), ";}h5{", euiTitle(euiThemeContext, 'xxs'), ";}h6{", euiTitle(euiThemeContext, 'xxxs'), ";}h1,h2,h3,h4,h5,h6,dt{color:inherit;}pre:not(.euiCodeBlock > pre){white-space:pre-wrap;background-color:", codeColors.backgroundColor, ";color:", codeColors.color, ";", highContrastModeStyles(euiThemeContext, {
|
|
76
76
|
preferred: "border: ".concat(euiTheme.border.thin)
|
|
77
|
-
}), ";}pre:not(.euiCodeBlock__pre),pre:not(.euiCodeBlock__pre) code{display:block;}>:last-child{", logicalCSS('margin-bottom', '0 !important'), ";}kbd{position:relative;display:inline-block;", logicalCSS('padding-vertical', euiTheme.size.xxs), " ", logicalCSS('padding-horizontal', euiTheme.size.xs), " line-height:1;border:", euiTheme.border.width.thin, " solid ", euiTheme.colors.textParagraph, ";border-radius:", mathWithUnits(euiTheme.border.radius.
|
|
77
|
+
}), ";}pre:not(.euiCodeBlock__pre),pre:not(.euiCodeBlock__pre) code{display:block;}>:last-child{", logicalCSS('margin-bottom', '0 !important'), ";}kbd{position:relative;display:inline-block;", logicalCSS('padding-vertical', euiTheme.size.xxs), " ", logicalCSS('padding-horizontal', euiTheme.size.xs), " line-height:1;border:", euiTheme.border.width.thin, " solid ", euiTheme.colors.textParagraph, ";border-radius:", mathWithUnits(euiTheme.border.radius.inline, function (x) {
|
|
78
78
|
return x / 2;
|
|
79
79
|
}), ";", highContrastModeStyles(euiThemeContext, {
|
|
80
80
|
// Fixes an odd border issue in Windows high contrast themes
|
|
@@ -34,7 +34,8 @@ export var euiTitle = function euiTitle(euiThemeContext) {
|
|
|
34
34
|
};
|
|
35
35
|
return _objectSpread(_objectSpread({}, euiFontSize(euiThemeContext, titleScaleToFontSizeScaleMap[scale], options)), {}, {
|
|
36
36
|
fontWeight: euiTheme.font.weight[euiTheme.font.title.weight],
|
|
37
|
-
color: euiTheme.colors.textHeading
|
|
37
|
+
color: euiTheme.colors.textHeading,
|
|
38
|
+
letterSpacing: euiTheme.font.title.letterSpacing
|
|
38
39
|
});
|
|
39
40
|
};
|
|
40
41
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _templateObject;
|
|
1
|
+
var _templateObject, _templateObject2;
|
|
2
2
|
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
3
3
|
/*
|
|
4
4
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
@@ -11,17 +11,27 @@ function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.fre
|
|
|
11
11
|
import { css, keyframes } from '@emotion/react';
|
|
12
12
|
import { euiCanAnimate, euiShadowLarge, mathWithUnits } from '@elastic/eui-theme-common';
|
|
13
13
|
import { euiTextBreakWord, logicalCSS } from '../../global_styling';
|
|
14
|
-
import { preventForcedColors } from '../../global_styling/functions/high_contrast';
|
|
14
|
+
import { highContrastModeStyles, preventForcedColors } from '../../global_styling/functions/high_contrast';
|
|
15
15
|
import { euiTitle } from '../title/title.styles';
|
|
16
16
|
import { euiPanelBorderStyles } from '../panel/panel.styles';
|
|
17
17
|
var TEXT_MAX_WIDTH = 1200;
|
|
18
18
|
var CONTAINER_NAME = 'euiToast';
|
|
19
19
|
var CQC_BREAKPOINT_NARROWEST = '(max-width: 320px)';
|
|
20
|
-
var
|
|
20
|
+
var decorClipSize = '9px'; // the height of the decor clip that includes the border rounding
|
|
21
|
+
var decorClipPath = "polygon(0 0, 100% 0, 100% ".concat(decorClipSize, ", 0 ").concat(decorClipSize, ")");
|
|
22
|
+
var euiToastAnimation = keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n from {\n clip-path: ", ";\n }\n to {\n clip-path: polygon(0 0, 0% 0, 0% ", ", 0 ", ");\n }\n"])), decorClipPath, decorClipSize, decorClipSize);
|
|
23
|
+
var euiToastAnimationRTL = keyframes(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n from {\n clip-path: ", ";\n }\n to {\n clip-path: polygon(100% 0, 100% 0, 100% ", ", 100% ", ");\n }\n"])), decorClipPath, decorClipSize, decorClipSize);
|
|
21
24
|
export var euiToastStyles = function euiToastStyles(euiThemeContext) {
|
|
22
|
-
var euiTheme = euiThemeContext.euiTheme
|
|
25
|
+
var euiTheme = euiThemeContext.euiTheme,
|
|
26
|
+
highContrastMode = euiThemeContext.highContrastMode;
|
|
27
|
+
var borderRadius = euiTheme.border.radius.panel;
|
|
28
|
+
var decorLevel = Number(euiTheme.levels.content) + 1;
|
|
23
29
|
var highlightSize = mathWithUnits([euiTheme.border.width.thin, euiTheme.border.width.thick], function (x, y) {
|
|
24
|
-
return x + y;
|
|
30
|
+
return highContrastMode ? x * 2 + y : x + y;
|
|
31
|
+
});
|
|
32
|
+
var highlightOffset = euiTheme.border.width.thin;
|
|
33
|
+
var highlightSizeOffset = mathWithUnits([highlightOffset], function (x) {
|
|
34
|
+
return x * 2;
|
|
25
35
|
});
|
|
26
36
|
var paddingTop = mathWithUnits([euiTheme.size.base, highlightSize], function (x, y) {
|
|
27
37
|
return x + y;
|
|
@@ -29,12 +39,17 @@ export var euiToastStyles = function euiToastStyles(euiThemeContext) {
|
|
|
29
39
|
var offsetTop = mathWithUnits([euiTheme.size.s, highlightSize], function (x, y) {
|
|
30
40
|
return x + y;
|
|
31
41
|
});
|
|
42
|
+
var decorCommonStyles = "\n content: '';\n position: absolute;\n inset-block-start: 0;\n inset-inline-start: 0;\n block-size: 100%;\n inline-size: 100%;\n border-radius: ".concat(euiTheme.border.radius.panel, ";\n border-end-start-radius: 0;\n border-block-start: ").concat(highlightSize, " solid;\n clip-path: ").concat(decorClipPath, ";\n pointer-events: none;\n\n ").concat(highContrastModeStyles(euiThemeContext, {
|
|
43
|
+
preferred: "\n inset-block-start: -".concat(highlightOffset, ";\n inset-inline-start: -").concat(highlightOffset, ";\n inline-size: calc(100% + ").concat(highlightSizeOffset, ");\n ")
|
|
44
|
+
}), "\n ");
|
|
32
45
|
return {
|
|
33
46
|
// Base
|
|
34
|
-
euiToast: /*#__PURE__*/css("container-type:inline-size;container-name:", CONTAINER_NAME, ";position:relative;border-radius:",
|
|
47
|
+
euiToast: /*#__PURE__*/css("container-type:inline-size;container-name:", CONTAINER_NAME, ";position:relative;border-radius:", borderRadius, ";", euiShadowLarge(euiThemeContext, {
|
|
35
48
|
borderAllInHighContrastMode: true
|
|
36
49
|
}), " ", logicalCSS('padding-top', paddingTop), " ", logicalCSS('padding-bottom', euiTheme.size.base), " ", logicalCSS('padding-horizontal', euiTheme.size.base), " background-color:", euiTheme.colors.backgroundBasePlain, ";", logicalCSS('width', '100%'), " ", euiTextBreakWord(), euiPanelBorderStyles(euiThemeContext), ";;label:euiToast;"),
|
|
37
|
-
decor: /*#__PURE__*/css("position:absolute;
|
|
50
|
+
decor: /*#__PURE__*/css("position:absolute;inset:0;pointer-events:none;", preventForcedColors(euiThemeContext), " ", highContrastModeStyles(euiThemeContext, {
|
|
51
|
+
preferred: "\n --euiToastTypeBackgroundColor: ".concat(euiTheme.colors.borderBasePlain, ";\n ")
|
|
52
|
+
}), " &::before{", decorCommonStyles, " z-index:", decorLevel, ";border-block-start-color:var(--euiToastTypeBackgroundColor);}&::after{", decorCommonStyles, "z-index:", decorLevel + 1, ";border-block-start-color:var(--euiToastTypeColor);};label:decor;"),
|
|
38
53
|
// handles content + actions layout
|
|
39
54
|
wrapper: /*#__PURE__*/css("display:flex;flex-direction:column;gap:", euiTheme.size.m, ";inline-size:100%;;label:wrapper;"),
|
|
40
55
|
// handles icon + text layout
|
|
@@ -45,7 +60,7 @@ export var euiToastStyles = function euiToastStyles(euiThemeContext) {
|
|
|
45
60
|
icon: /*#__PURE__*/css("grid-area:icon;position:relative;", logicalCSS('margin-vertical', euiTheme.size.xxs), ";;label:icon;"),
|
|
46
61
|
actions: /*#__PURE__*/css("grid-area:actions;display:flex;gap:", euiTheme.size.s, ";", logicalCSS('margin-left', euiTheme.size.xl), "@container ", CONTAINER_NAME, " ", CQC_BREAKPOINT_NARROWEST, "{flex-wrap:wrap;>*{inline-size:100%;}};label:actions;"),
|
|
47
62
|
dismissButton: /*#__PURE__*/css("position:absolute;", logicalCSS('top', offsetTop), ";", logicalCSS('right', euiTheme.size.s), ";;label:dismissButton;"),
|
|
48
|
-
hasAnimation: /*#__PURE__*/css("&::
|
|
63
|
+
hasAnimation: /*#__PURE__*/css("&::after{", euiCanAnimate, "{will-change:clip-path;animation:", euiToastAnimation, " var(--euiToastAnimationMs) linear forwards;[dir='rtl'] &{animation:", euiToastAnimationRTL, " var(--euiToastAnimationMs) linear forwards;}}};label:hasAnimation;")
|
|
49
64
|
};
|
|
50
65
|
};
|
|
51
66
|
export var euiToastHeaderStyles = function euiToastHeaderStyles(euiThemeContext) {
|
|
@@ -67,10 +67,10 @@ export var euiTokenStyles = function euiTokenStyles(euiThemeContext, fill) {
|
|
|
67
67
|
euiToken: /*#__PURE__*/css("display:inline-flex;align-items:center;justify-content:center;svg{", logicalCSS('height', '100%'), " margin:auto;};label:euiToken;"),
|
|
68
68
|
// Shapes
|
|
69
69
|
circle: _ref,
|
|
70
|
-
square: /*#__PURE__*/css("border-radius:", euiTheme.border.radius.
|
|
71
|
-
rectangle: /*#__PURE__*/css("box-sizing:content-box;border-radius:", euiTheme.border.radius.
|
|
70
|
+
square: /*#__PURE__*/css("border-radius:", euiTheme.border.radius.inline, ";;label:square;"),
|
|
71
|
+
rectangle: /*#__PURE__*/css("box-sizing:content-box;border-radius:", euiTheme.border.radius.inline, ";;label:rectangle;"),
|
|
72
72
|
// Sizes
|
|
73
|
-
xs: /*#__PURE__*/css(logicalSizeCSS(euiTheme.size.s), " &[class*='-square'],&[class*='-rectangle']{border-radius:", mathWithUnits(euiTheme.border.radius.
|
|
73
|
+
xs: /*#__PURE__*/css(logicalSizeCSS(euiTheme.size.s), " &[class*='-square'],&[class*='-rectangle']{border-radius:", mathWithUnits(euiTheme.border.radius.inline, function (x) {
|
|
74
74
|
return x / 2;
|
|
75
75
|
}), ";}&[class*='-rectangle']{", logicalCSS('padding-vertical', '1px'), " ", logicalCSS('padding-horizontal', euiTheme.size.xs), ";};label:xs;"),
|
|
76
76
|
s: /*#__PURE__*/css(logicalSizeCSS(euiTheme.size.base), " &[class*='-rectangle']{", logicalCSS('padding-horizontal', euiTheme.size.xs), ";};label:s;"),
|
|
@@ -25,7 +25,7 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
|
|
|
25
25
|
import React, { forwardRef, useCallback, useContext, useEffect, useImperativeHandle, useRef, useState } from 'react';
|
|
26
26
|
import PropTypes from "prop-types";
|
|
27
27
|
import classNames from 'classnames';
|
|
28
|
-
import { findPopoverPosition, useGeneratedHtmlId, keys } from '../../services';
|
|
28
|
+
import { findPopoverPosition, useEuiTheme, useGeneratedHtmlId, keys } from '../../services';
|
|
29
29
|
import { getRepositionOnScroll } from '../../services/popover/reposition_on_scroll';
|
|
30
30
|
import { EuiResizeObserver } from '../observer/resize_observer';
|
|
31
31
|
import { EuiPortal } from '../portal';
|
|
@@ -84,6 +84,8 @@ export var EuiToolTip = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
84
84
|
onMouseOutProp = _ref.onMouseOut,
|
|
85
85
|
onBlurProp = _ref.onBlur,
|
|
86
86
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
87
|
+
var _useEuiTheme = useEuiTheme(),
|
|
88
|
+
euiTheme = _useEuiTheme.euiTheme;
|
|
87
89
|
var componentDefaultsContext = useContext(EuiComponentDefaultsContext);
|
|
88
90
|
var _useState = useState(false),
|
|
89
91
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -124,7 +126,8 @@ export var EuiToolTip = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
124
126
|
offset: offset !== null && offset !== void 0 ? offset : DEFAULT_TOOLTIP_OFFSET,
|
|
125
127
|
arrowConfig: {
|
|
126
128
|
arrowWidth: 12,
|
|
127
|
-
arrowBuffer: 4
|
|
129
|
+
arrowBuffer: 4,
|
|
130
|
+
borderRadius: euiTheme.border.radius.control ? parseFloat(String(euiTheme.border.radius.control)) : undefined
|
|
128
131
|
}
|
|
129
132
|
}),
|
|
130
133
|
position = _findPopoverPosition.position,
|
|
@@ -148,7 +151,7 @@ export var EuiToolTip = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
148
151
|
setCalculatedPosition(position);
|
|
149
152
|
setToolTipStyles(newToolTipStyles);
|
|
150
153
|
setArrowStyles(arrow);
|
|
151
|
-
}, [positionProp, offset]);
|
|
154
|
+
}, [euiTheme, positionProp, offset]);
|
|
152
155
|
var setAnchorRef = useCallback(function (el) {
|
|
153
156
|
anchorRef.current = el;
|
|
154
157
|
}, []);
|
|
@@ -29,7 +29,7 @@ export var euiToolTipStyles = function euiToolTipStyles(euiThemeContext) {
|
|
|
29
29
|
var arrowStyles = _popoverArrowStyles(euiThemeContext, arrowSize);
|
|
30
30
|
return {
|
|
31
31
|
// Base
|
|
32
|
-
euiToolTip: /*#__PURE__*/css(hasShadow ? euiShadow(euiThemeContext) : '', " border-radius:", euiTheme.border.radius.
|
|
32
|
+
euiToolTip: /*#__PURE__*/css(hasShadow ? euiShadow(euiThemeContext) : '', " border-radius:", euiTheme.border.radius.control, ";background-color:", euiToolTipBackgroundColor(euiTheme), ";color:", euiTheme.colors.textGhost, ";z-index:", euiTheme.levels.toast, ";", logicalCSS('max-width', '256px'), " overflow-wrap:break-word;padding:", euiTheme.size.s, ";", euiFontSize(euiThemeContext, 'xs'), " position:absolute;pointer-events:none;", euiPanelBorderStyles(euiThemeContext), " [class*='euiHorizontalRule']{background-color:", euiToolTipBorderColor(euiTheme), ";}", euiCanAnimate, "{animation:", euiToolTipAnimation, " ", euiTheme.animation.extraFast, " ease-out ", euiTheme.animation.fast, " both;};label:euiToolTip;"),
|
|
33
33
|
// Positions - kept for component compatibility. Animation is in the base style.
|
|
34
34
|
top: /*#__PURE__*/css(";label:top;"),
|
|
35
35
|
bottom: /*#__PURE__*/css(";label:bottom;"),
|
|
@@ -67,11 +67,11 @@ var _ref3 = process.env.NODE_ENV === "production" ? {
|
|
|
67
67
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
68
68
|
};
|
|
69
69
|
var _ref4 = process.env.NODE_ENV === "production" ? {
|
|
70
|
-
name: "
|
|
71
|
-
styles: "*[disabled]{pointer-events:none;};label:euiToolTipAnchor;"
|
|
70
|
+
name: "rwadfc-euiToolTipAnchor",
|
|
71
|
+
styles: "*[disabled],*[aria-disabled='true']{pointer-events:none;};label:euiToolTipAnchor;"
|
|
72
72
|
} : {
|
|
73
|
-
name: "
|
|
74
|
-
styles: "*[disabled]{pointer-events:none;};label:euiToolTipAnchor;",
|
|
73
|
+
name: "rwadfc-euiToolTipAnchor",
|
|
74
|
+
styles: "*[disabled],*[aria-disabled='true']{pointer-events:none;};label:euiToolTipAnchor;",
|
|
75
75
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
76
76
|
};
|
|
77
77
|
export var euiToolTipAnchorStyles = function euiToolTipAnchorStyles() {
|
|
@@ -16,6 +16,6 @@ export var euiTourFooterStyles = function euiTourFooterStyles(euiThemeContext) {
|
|
|
16
16
|
var euiTheme = euiThemeContext.euiTheme;
|
|
17
17
|
return {
|
|
18
18
|
// Base
|
|
19
|
-
euiTourFooter: /*#__PURE__*/css("background-color:", _tourFooterBgColor(euiThemeContext), ";", logicalCSS('border-bottom-left-radius', euiTheme.border.radius.
|
|
19
|
+
euiTourFooter: /*#__PURE__*/css("background-color:", _tourFooterBgColor(euiThemeContext), ";", logicalCSS('border-bottom-left-radius', euiTheme.border.radius.panel), " ", logicalCSS('border-bottom-right-radius', euiTheme.border.radius.panel), ";;label:euiTourFooter;")
|
|
20
20
|
};
|
|
21
21
|
};
|
|
@@ -216,11 +216,14 @@ EuiTourStep.propTypes = {
|
|
|
216
216
|
panelProps: PropTypes.shape({
|
|
217
217
|
element: PropTypes.oneOf(["div"]),
|
|
218
218
|
/**
|
|
219
|
-
* Padding for all four sides
|
|
219
|
+
* Padding for all four sides.
|
|
220
|
+
* Do not use `xs` and `xl` values, they will be removed in the future.
|
|
221
|
+
* @default m
|
|
220
222
|
*/
|
|
221
223
|
paddingSize: PropTypes.any,
|
|
222
224
|
/**
|
|
223
|
-
* Corner border radius
|
|
225
|
+
* Corner border radius.
|
|
226
|
+
* @default m
|
|
224
227
|
*/
|
|
225
228
|
borderRadius: PropTypes.any,
|
|
226
229
|
/**
|