@elastic/eui 120.0.0 → 121.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eui-icons.json +29 -28
- package/dist/svgs/table_sparkles.svg +6 -0
- 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 +4 -4
- package/es/components/basic_table/in_memory_table.js +4 -4
- 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 +7 -4
- package/es/components/button/button_group/button_group.styles.js +22 -33
- package/es/components/button/button_group/button_group_button.js +9 -15
- package/es/components/button/button_group/button_group_button.styles.js +27 -66
- package/es/components/button/button_icon/button_icon.js +1 -1
- package/es/components/button/split_button/split_button.styles.js +6 -5
- package/es/components/button/use_button_common_props.js +1 -1
- package/es/components/call_out/call_out.js +2 -2
- 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/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 +24 -24
- package/es/components/datagrid/body/data_grid_body.js +13 -13
- package/es/components/datagrid/body/data_grid_body_custom.js +13 -13
- package/es/components/datagrid/body/data_grid_body_virtualized.js +13 -13
- package/es/components/datagrid/body/header/data_grid_header_cell.js +12 -12
- package/es/components/datagrid/controls/column_sorting.js +13 -13
- package/es/components/datagrid/controls/column_sorting.styles.js +1 -1
- package/es/components/datagrid/controls/column_sorting_draggable.js +42 -23
- package/es/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
- package/es/components/datagrid/controls/display_selector.js +56 -44
- package/es/components/datagrid/utils/in_memory.js +12 -12
- package/es/components/date_picker/date_picker.js +2 -2
- package/es/components/date_picker/date_picker_range.js +1 -1
- package/es/components/date_picker/super_date_picker/time_window_buttons.js +38 -50
- package/es/components/empty_prompt/empty_prompt.js +1 -1
- package/es/components/filter_group/filter_button.js +24 -15
- package/es/components/filter_group/filter_button.styles.js +40 -15
- package/es/components/filter_group/filter_group.js +34 -5
- package/es/components/filter_group/filter_group.styles.js +9 -15
- package/es/components/filter_group/filter_group_context.js +13 -0
- package/es/components/flyout/flyout.component.js +5 -1
- package/es/components/flyout/flyout.styles.js +4 -3
- package/es/components/flyout/flyout_body.styles.js +1 -1
- package/es/components/flyout/flyout_footer.styles.js +1 -1
- package/es/components/flyout/flyout_header.styles.js +4 -4
- package/es/components/flyout/flyout_menu/action_button.js +11 -2
- package/es/components/flyout/flyout_menu/flyout_menu.js +52 -10
- 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/append_prepend/form_append_prepend.js +2 -2
- package/es/components/form/form_control_layout/form_control_layout.js +2 -2
- package/es/components/form/form_control_layout/form_control_layout.styles.js +1 -1
- package/es/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
- package/es/components/form/text_area/text_area.js +2 -2
- package/es/components/header/header.a11y.js +0 -1
- package/es/components/header/header.styles.js +1 -1
- 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/elastic_logo_full.js +75 -0
- package/es/components/header/header_logo/header_logo.js +23 -28
- package/es/components/header/header_logo/header_logo.styles.js +1 -3
- package/es/components/header/header_section/header_section_item_button.js +1 -1
- package/es/components/icon/assets/table_sparkles.js +43 -0
- package/es/components/icon/icon.js +1 -1
- package/es/components/icon/icon_map.js +5 -0
- package/es/components/icon/svgs/table_sparkles.svg +6 -0
- package/es/components/key_pad_menu/key_pad_menu_item.js +1 -1
- 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 +1 -1
- package/es/components/pagination/pagination_button.js +1 -1
- package/es/components/popover/popover_footer.styles.js +2 -2
- package/es/components/popover/popover_title.styles.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/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 +2 -2
- package/es/components/toast/toast.js +2 -2
- package/es/components/tool_tip/icon_tip.js +1 -1
- package/es/global_styling/mixins/_button.js +8 -0
- package/eui.d.ts +251 -192
- package/i18ntokens.json +594 -576
- 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 +4 -4
- package/lib/components/basic_table/in_memory_table.js +4 -4
- 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 +7 -4
- package/lib/components/button/button_group/button_group.styles.js +22 -33
- package/lib/components/button/button_group/button_group_button.js +8 -14
- package/lib/components/button/button_group/button_group_button.styles.js +26 -65
- package/lib/components/button/button_icon/button_icon.js +1 -1
- package/lib/components/button/split_button/split_button.styles.js +6 -5
- package/lib/components/button/use_button_common_props.js +1 -1
- package/lib/components/call_out/call_out.js +2 -2
- 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/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 +24 -24
- package/lib/components/datagrid/body/data_grid_body.js +13 -13
- package/lib/components/datagrid/body/data_grid_body_custom.js +13 -13
- package/lib/components/datagrid/body/data_grid_body_virtualized.js +13 -13
- package/lib/components/datagrid/body/header/data_grid_header_cell.js +12 -12
- package/lib/components/datagrid/controls/column_sorting.js +13 -13
- package/lib/components/datagrid/controls/column_sorting.styles.js +1 -1
- package/lib/components/datagrid/controls/column_sorting_draggable.js +40 -21
- package/lib/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
- package/lib/components/datagrid/controls/display_selector.js +55 -43
- package/lib/components/datagrid/utils/in_memory.js +12 -12
- package/lib/components/date_picker/date_picker.js +2 -2
- package/lib/components/date_picker/date_picker_range.js +1 -1
- package/lib/components/date_picker/super_date_picker/time_window_buttons.js +37 -49
- package/lib/components/empty_prompt/empty_prompt.js +1 -1
- package/lib/components/filter_group/filter_button.js +25 -16
- package/lib/components/filter_group/filter_button.styles.js +39 -14
- package/lib/components/filter_group/filter_group.js +37 -5
- package/lib/components/filter_group/filter_group.styles.js +8 -14
- package/lib/components/filter_group/filter_group_context.js +19 -0
- package/lib/components/flyout/flyout.component.js +5 -1
- package/lib/components/flyout/flyout.styles.js +3 -2
- package/lib/components/flyout/flyout_body.styles.js +1 -1
- package/lib/components/flyout/flyout_footer.styles.js +1 -1
- package/lib/components/flyout/flyout_header.styles.js +4 -4
- package/lib/components/flyout/flyout_menu/action_button.js +11 -2
- package/lib/components/flyout/flyout_menu/flyout_menu.js +52 -10
- 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/append_prepend/form_append_prepend.js +2 -2
- package/lib/components/form/form_control_layout/form_control_layout.js +2 -2
- package/lib/components/form/form_control_layout/form_control_layout.styles.js +1 -1
- package/lib/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
- package/lib/components/form/text_area/text_area.js +2 -2
- package/lib/components/header/header.a11y.js +0 -1
- package/lib/components/header/header.styles.js +1 -1
- 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/elastic_logo_full.js +84 -0
- package/lib/components/header/header_logo/header_logo.js +22 -27
- package/lib/components/header/header_logo/header_logo.styles.js +1 -3
- package/lib/components/header/header_section/header_section_item_button.js +1 -1
- package/lib/components/icon/assets/table_sparkles.js +50 -0
- package/lib/components/icon/icon.js +1 -1
- package/lib/components/icon/icon_map.js +7 -0
- package/lib/components/icon/svgs/table_sparkles.svg +6 -0
- package/lib/components/key_pad_menu/key_pad_menu_item.js +1 -1
- 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 +1 -1
- package/lib/components/pagination/pagination_button.js +1 -1
- package/lib/components/popover/popover_footer.styles.js +2 -2
- package/lib/components/popover/popover_title.styles.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/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 +2 -2
- package/lib/components/toast/toast.js +2 -2
- package/lib/components/tool_tip/icon_tip.js +1 -1
- package/lib/global_styling/mixins/_button.js +8 -0
- package/optimize/es/components/button/button_group/button_group.js +4 -3
- package/optimize/es/components/button/button_group/button_group.styles.js +22 -33
- package/optimize/es/components/button/button_group/button_group_button.js +9 -15
- package/optimize/es/components/button/button_group/button_group_button.styles.js +27 -66
- package/optimize/es/components/button/split_button/split_button.styles.js +6 -5
- package/optimize/es/components/button/use_button_common_props.js +1 -1
- package/optimize/es/components/datagrid/controls/column_sorting.styles.js +1 -1
- package/optimize/es/components/datagrid/controls/column_sorting_draggable.js +41 -22
- package/optimize/es/components/datagrid/controls/display_selector.js +56 -44
- package/optimize/es/components/date_picker/super_date_picker/time_window_buttons.js +38 -50
- package/optimize/es/components/filter_group/filter_button.js +23 -15
- package/optimize/es/components/filter_group/filter_button.styles.js +40 -15
- package/optimize/es/components/filter_group/filter_group.js +21 -4
- package/optimize/es/components/filter_group/filter_group.styles.js +9 -15
- package/optimize/es/components/filter_group/filter_group_context.js +13 -0
- package/optimize/es/components/flyout/flyout.component.js +5 -1
- package/optimize/es/components/flyout/flyout.styles.js +4 -3
- package/optimize/es/components/flyout/flyout_body.styles.js +1 -1
- package/optimize/es/components/flyout/flyout_footer.styles.js +1 -1
- package/optimize/es/components/flyout/flyout_header.styles.js +4 -4
- package/optimize/es/components/flyout/flyout_menu/action_button.js +11 -2
- package/optimize/es/components/form/form_control_layout/form_control_layout.styles.js +1 -1
- package/optimize/es/components/header/header.a11y.js +0 -1
- package/optimize/es/components/header/header.styles.js +1 -1
- package/optimize/es/components/header/header_logo/elastic_logo_full.js +74 -0
- package/optimize/es/components/header/header_logo/header_logo.js +23 -12
- package/optimize/es/components/header/header_logo/header_logo.styles.js +1 -3
- package/optimize/es/components/icon/assets/table_sparkles.js +42 -0
- package/optimize/es/components/icon/icon_map.js +5 -0
- package/optimize/es/components/icon/svgs/table_sparkles.svg +6 -0
- package/optimize/es/components/popover/popover_footer.styles.js +2 -2
- package/optimize/es/components/popover/popover_title.styles.js +1 -1
- package/optimize/es/global_styling/mixins/_button.js +8 -0
- package/optimize/lib/components/button/button_group/button_group.js +4 -3
- package/optimize/lib/components/button/button_group/button_group.styles.js +22 -33
- package/optimize/lib/components/button/button_group/button_group_button.js +8 -14
- package/optimize/lib/components/button/button_group/button_group_button.styles.js +26 -65
- package/optimize/lib/components/button/split_button/split_button.styles.js +6 -5
- package/optimize/lib/components/button/use_button_common_props.js +1 -1
- package/optimize/lib/components/datagrid/controls/column_sorting.styles.js +1 -1
- package/optimize/lib/components/datagrid/controls/column_sorting_draggable.js +39 -20
- package/optimize/lib/components/datagrid/controls/display_selector.js +55 -43
- package/optimize/lib/components/date_picker/super_date_picker/time_window_buttons.js +37 -49
- package/optimize/lib/components/filter_group/filter_button.js +24 -16
- package/optimize/lib/components/filter_group/filter_button.styles.js +39 -14
- package/optimize/lib/components/filter_group/filter_group.js +24 -4
- package/optimize/lib/components/filter_group/filter_group.styles.js +8 -14
- package/optimize/lib/components/filter_group/filter_group_context.js +19 -0
- package/optimize/lib/components/flyout/flyout.component.js +5 -1
- package/optimize/lib/components/flyout/flyout.styles.js +3 -2
- package/optimize/lib/components/flyout/flyout_body.styles.js +1 -1
- package/optimize/lib/components/flyout/flyout_footer.styles.js +1 -1
- package/optimize/lib/components/flyout/flyout_header.styles.js +4 -4
- package/optimize/lib/components/flyout/flyout_menu/action_button.js +11 -2
- package/optimize/lib/components/form/form_control_layout/form_control_layout.styles.js +1 -1
- package/optimize/lib/components/header/header.a11y.js +0 -1
- package/optimize/lib/components/header/header.styles.js +1 -1
- package/optimize/lib/components/header/header_logo/elastic_logo_full.js +84 -0
- package/optimize/lib/components/header/header_logo/header_logo.js +22 -11
- package/optimize/lib/components/header/header_logo/header_logo.styles.js +1 -3
- package/optimize/lib/components/icon/assets/table_sparkles.js +50 -0
- package/optimize/lib/components/icon/icon_map.js +7 -0
- package/optimize/lib/components/icon/svgs/table_sparkles.svg +6 -0
- package/optimize/lib/components/popover/popover_footer.styles.js +2 -2
- package/optimize/lib/components/popover/popover_title.styles.js +1 -1
- package/optimize/lib/global_styling/mixins/_button.js +8 -0
- package/package.json +2 -1
- 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 +4 -4
- package/test-env/components/basic_table/in_memory_table.js +4 -4
- 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 +7 -4
- package/test-env/components/button/button_group/button_group.styles.js +22 -33
- package/test-env/components/button/button_group/button_group_button.js +8 -14
- package/test-env/components/button/button_group/button_group_button.styles.js +26 -65
- package/test-env/components/button/button_icon/button_icon.js +1 -1
- package/test-env/components/button/split_button/split_button.styles.js +6 -5
- package/test-env/components/button/use_button_common_props.js +1 -1
- package/test-env/components/call_out/call_out.js +2 -2
- 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/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 +24 -24
- package/test-env/components/datagrid/body/data_grid_body.js +13 -13
- package/test-env/components/datagrid/body/data_grid_body_custom.js +13 -13
- package/test-env/components/datagrid/body/data_grid_body_virtualized.js +13 -13
- package/test-env/components/datagrid/body/header/data_grid_header_cell.js +12 -12
- package/test-env/components/datagrid/controls/column_sorting.js +13 -13
- package/test-env/components/datagrid/controls/column_sorting.styles.js +1 -1
- package/test-env/components/datagrid/controls/column_sorting_draggable.js +40 -21
- package/test-env/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
- package/test-env/components/datagrid/controls/display_selector.js +55 -43
- package/test-env/components/datagrid/utils/in_memory.js +12 -12
- 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/date_picker/super_date_picker/time_window_buttons.js +37 -49
- package/test-env/components/empty_prompt/empty_prompt.js +1 -1
- package/test-env/components/filter_group/filter_button.js +25 -16
- package/test-env/components/filter_group/filter_button.styles.js +39 -14
- package/test-env/components/filter_group/filter_group.js +37 -5
- package/test-env/components/filter_group/filter_group.styles.js +8 -14
- package/test-env/components/filter_group/filter_group_context.js +19 -0
- package/test-env/components/flyout/flyout.component.js +5 -1
- package/test-env/components/flyout/flyout.styles.js +3 -2
- package/test-env/components/flyout/flyout_body.styles.js +1 -1
- package/test-env/components/flyout/flyout_footer.styles.js +1 -1
- package/test-env/components/flyout/flyout_header.styles.js +4 -4
- package/test-env/components/flyout/flyout_menu/action_button.js +11 -2
- package/test-env/components/flyout/flyout_menu/flyout_menu.js +52 -10
- 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/append_prepend/form_append_prepend.js +2 -2
- 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.styles.js +1 -1
- package/test-env/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
- package/test-env/components/form/text_area/text_area.js +2 -2
- package/test-env/components/header/header.a11y.js +0 -1
- package/test-env/components/header/header.styles.js +1 -1
- 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/elastic_logo_full.js +84 -0
- package/test-env/components/header/header_logo/header_logo.js +22 -27
- package/test-env/components/header/header_logo/header_logo.styles.js +1 -3
- package/test-env/components/header/header_section/header_section_item_button.js +1 -1
- package/test-env/components/icon/assets/table_sparkles.js +50 -0
- package/test-env/components/icon/icon_map.js +7 -0
- package/test-env/components/key_pad_menu/key_pad_menu_item.js +1 -1
- 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 +1 -1
- package/test-env/components/pagination/pagination_button.js +1 -1
- package/test-env/components/popover/popover_footer.styles.js +2 -2
- package/test-env/components/popover/popover_title.styles.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/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 +2 -2
- package/test-env/components/toast/toast.js +2 -2
- package/test-env/components/tool_tip/icon_tip.js +1 -1
- package/test-env/global_styling/mixins/_button.js +8 -0
|
@@ -10,7 +10,6 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
10
10
|
import { css } from '@emotion/react';
|
|
11
11
|
import { euiButtonSizeMap, euiDisabledSelector, euiShadowXSmall, logicalCSS, mathWithUnits } from '../../../global_styling';
|
|
12
12
|
import { highContrastModeStyles, preventForcedColors } from '../../../global_styling/functions/high_contrast';
|
|
13
|
-
import { euiFormVariables } from '../../form/form.styles';
|
|
14
13
|
var hasButtonOnlySelector = ':not(:has(.euiButtonIcon))';
|
|
15
14
|
var hasButtonIconOnlySelector = ':not(:has(.euiButton, .euiButtonEmpty))';
|
|
16
15
|
var buttonItemSelector = '.euiButtonGroup__item, .euiToolTipAnchor, .euiPopover, .euiButton';
|
|
@@ -31,14 +30,9 @@ export var euiButtonGroupButtonsStyles = function euiButtonGroupButtonsStyles(eu
|
|
|
31
30
|
var euiTheme = euiThemeContext.euiTheme;
|
|
32
31
|
var buttonSizeMap = euiButtonSizeMap(euiThemeContext);
|
|
33
32
|
var containerPadding = euiTheme.size.xs;
|
|
34
|
-
var splitPadding = mathWithUnits(containerPadding, function (x) {
|
|
33
|
+
var splitPadding = mathWithUnits([containerPadding], function (x) {
|
|
35
34
|
return x / 2;
|
|
36
35
|
});
|
|
37
|
-
var insetSize = function insetSize(height) {
|
|
38
|
-
return mathWithUnits([height, containerPadding], function (x, y) {
|
|
39
|
-
return x - y * 2;
|
|
40
|
-
});
|
|
41
|
-
};
|
|
42
36
|
var buttonGroupVariables = {
|
|
43
37
|
gap: {
|
|
44
38
|
regular: euiTheme.size.xs,
|
|
@@ -46,25 +40,21 @@ export var euiButtonGroupButtonsStyles = function euiButtonGroupButtonsStyles(eu
|
|
|
46
40
|
return x + y;
|
|
47
41
|
})
|
|
48
42
|
},
|
|
49
|
-
// TODO: use from buttonSizeMap once added via EuiSplitButton:
|
|
50
|
-
// https://github.com/elastic/eui/pull/9865
|
|
51
43
|
radius: {
|
|
52
44
|
outer: euiTheme.border.radius.medium,
|
|
53
|
-
inner:
|
|
45
|
+
inner: buttonSizeMap.s.radiusInset
|
|
54
46
|
},
|
|
55
47
|
size: {
|
|
56
|
-
s:
|
|
57
|
-
m:
|
|
58
|
-
}
|
|
48
|
+
s: buttonSizeMap.s.getInsetHeight(buttonSizeMap.s.height, containerPadding),
|
|
49
|
+
m: buttonSizeMap.m.getInsetHeight(buttonSizeMap.m.height, containerPadding)
|
|
50
|
+
},
|
|
51
|
+
backgroundColor: euiTheme.colors.backgroundBasePlain
|
|
59
52
|
};
|
|
60
53
|
var dividerOffset = mathWithUnits([buttonGroupVariables.gap.dividers, euiTheme.border.width.thin], function (x, y) {
|
|
61
54
|
return (x + y) / 2;
|
|
62
55
|
});
|
|
63
|
-
var
|
|
64
|
-
|
|
65
|
-
controlCompressedBorderRadius = _euiFormVariables.controlCompressedBorderRadius,
|
|
66
|
-
backgroundColor = _euiFormVariables.backgroundColor,
|
|
67
|
-
borderColor = _euiFormVariables.borderColor;
|
|
56
|
+
var containerBorderStyles = "\n &::after {\n content: '';\n position: absolute;\n inset: 0;\n /* keep the border under any related content */\n z-index: -1;\n border: ".concat(euiTheme.border.width.thin, " solid\n ").concat(euiTheme.colors.borderBasePlain, ";\n border-radius: inherit;\n pointer-events: none;\n }\n ");
|
|
57
|
+
var containerCommonStyles = "\n position: relative;\n display: inline-flex;\n align-items: center;\n gap: ".concat(buttonGroupVariables.gap.regular, ";\n max-inline-size: 100%;\n padding: ").concat(splitPadding, ";\n overflow: hidden;\n ");
|
|
68
58
|
var dividerStyles = "\n gap: ".concat(buttonGroupVariables.gap.dividers, ";\n\n .euiButtonGroup__item {\n position: relative;\n\n /* block border */\n &::before {\n content: '';\n position: absolute;\n inset-block-start: -").concat(dividerOffset, ";\n inset-inline-start: -").concat(mathWithUnits(containerPadding, function (x) {
|
|
69
59
|
return x / 2;
|
|
70
60
|
}), ";\n inline-size: calc(\n 100% + ").concat(mathWithUnits(containerPadding, function (x) {
|
|
@@ -75,25 +65,24 @@ export var euiButtonGroupButtonsStyles = function euiButtonGroupButtonsStyles(eu
|
|
|
75
65
|
var segmentedChildrenStyles = "\n /* Buttons are used inset and shouldn't have their own borders */\n .euiButton,\n .euiButtonIcon {\n border: none;\n pointer-events: auto; /* Ensure buttons are still clickable in jsdom */\n\n &::before {\n border-radius: inherit;\n }\n\n &:focus-visible {\n outline-offset: 0;\n }\n }\n\n /* Adjust children for inset behavior */\n ".concat(buttonItemSelector, ",\n .euiButtonIcon {\n display: inline-flex;\n align-items: center;\n block-size: var(--euiButtonGroupButtonInsetSize);\n border-radius: ").concat(buttonGroupVariables.radius.inner, ";\n }\n\n .euiButtonIcon {\n inline-size: var(--euiButtonGroupButtonInsetSize);\n }\n\n /* Only non-icon buttons auto-grow/shrink */\n .euiButton,\n ").concat(buttonOnlyItemSelector, " {\n flex: 1;\n min-inline-size: auto;\n }\n ");
|
|
76
66
|
return {
|
|
77
67
|
// Base
|
|
78
|
-
euiButtonGroup__container: /*#__PURE__*/css("&:where(", segmentedStyledSelector, " &){position:relative;display:inline-flex;align-items:center;max-inline-size:100%;padding:", splitPadding, ";border-radius:", buttonGroupVariables.radius.outer, ";background-color:", euiTheme.colors.backgroundBasePlain, ";&:where([data-size='s'] &){--euiButtonGroupButtonInsetSize:", buttonGroupVariables.size.s, ";min-block-size:", buttonSizeMap.s.height, ";}&:where([data-size='m'] &){--euiButtonGroupButtonInsetSize:", buttonGroupVariables.size.m, ";min-block-size:", buttonSizeMap.m.height, ";}
|
|
79
|
-
euiButtonGroup__buttons: /*#__PURE__*/css(logicalCSS('max-width', '100%'), " display:flex;align-items:center;&:where([data-variant='default'] &){flex-wrap:wrap;}&:where(", segmentedStyledSelector, " &){
|
|
68
|
+
euiButtonGroup__container: /*#__PURE__*/css("&:where(", segmentedStyledSelector, " &){position:relative;display:inline-flex;align-items:center;max-inline-size:100%;z-index:", euiTheme.levels.content, ";padding:", splitPadding, ";border-radius:", buttonGroupVariables.radius.outer, ";background-color:", euiTheme.colors.backgroundBasePlain, ";", containerBorderStyles, ";&:where([data-size='s'] &){--euiButtonGroupButtonInsetSize:", buttonGroupVariables.size.s, ";min-block-size:", buttonSizeMap.s.height, ";}&:where([data-size='m'] &){--euiButtonGroupButtonInsetSize:", buttonGroupVariables.size.m, ";min-block-size:", buttonSizeMap.m.height, ";}}&:where([data-variant='selection'][data-display='inverse'] &){background-color:", euiTheme.colors.backgroundBaseSubdued, ";};label:euiButtonGroup__container;"),
|
|
69
|
+
euiButtonGroup__buttons: /*#__PURE__*/css(logicalCSS('max-width', '100%'), " display:flex;align-items:center;z-index:", euiTheme.levels.content, ";&:where(.euiButtonGroup:not([data-variant]) &){", containerCommonStyles, " padding:", containerPadding, ";border-radius:", buttonGroupVariables.radius.outer, ";background-color:", euiTheme.colors.backgroundBasePlain, ";", containerBorderStyles, ";}&:where([data-variant='default'] &){flex-wrap:wrap;}&:where(", segmentedStyledSelector, " &){flex-wrap:wrap;", containerCommonStyles, " ", segmentedChildrenStyles, " *:where(.euiButton, .euiButtonIcon){&:where(:is(", euiDisabledSelector, "):not([aria-pressed='true'])){background-color:transparent;}}&:where([data-dividers='true'] &){", dividerStyles, ";}&:where([data-layout='vertical'] &){flex-direction:column;.euiButtonGroup__item{justify-content:center;}}}&:where([data-variant='segmented'] &){*:where(.euiButton, .euiButtonIcon):is(", euiDisabledSelector, "){background-color:transparent;}}&:where([data-variant='selection'] &){*:where(.euiButton, .euiButtonIcon){&:is(", euiDisabledSelector, "){", highContrastModeStyles(euiThemeContext, {
|
|
80
70
|
forced: "\n opacity: 0.5;\n "
|
|
81
71
|
}), ";}&:is([aria-pressed='true']){", highContrastModeStyles(euiThemeContext, {
|
|
82
72
|
forced: "\n --highContrastHoverIndicatorColor: ".concat(euiTheme.colors.textInverse, ";\n ").concat(preventForcedColors(euiThemeContext), "\n background-color: ").concat(euiTheme.colors.fullShade, ";\n color: ").concat(euiTheme.colors.emptyShade, ";\n ")
|
|
83
|
-
}), ";}&:is([aria-pressed='false']){background-color:transparent;}}}&:where([data-variant='selection'][data-display='regular'] &){*:where(.euiButton, .euiButtonIcon):is([aria-pressed='true']){background-color:", euiTheme.colors.backgroundLightText, ";", highContrastModeStyles(euiThemeContext, {
|
|
84
|
-
none: "\n
|
|
85
|
-
preferred: "\n
|
|
86
|
-
forced: "\n
|
|
87
|
-
}), ";}}&:where([data-variant='selection'][data-display='inverse'] &){*:where(.euiButton, .euiButtonIcon):is([aria-pressed='true']){", euiShadowXSmall(euiThemeContext), " ", highContrastModeStyles(euiThemeContext, {
|
|
73
|
+
}), ";}&:is([aria-pressed='false']){background-color:transparent;}}}&:where([data-variant='selection'][data-display='regular'] &){*:where(.euiButton, .euiButtonIcon):is([aria-pressed='true']){&:not(:is(", euiDisabledSelector, ")){background-color:", euiTheme.colors.backgroundLightText, ";", highContrastModeStyles(euiThemeContext, {
|
|
74
|
+
none: "\n background-color: ".concat(euiTheme.colors.backgroundLightText, ";\n "),
|
|
75
|
+
preferred: "\n border: ".concat(euiTheme.border.thin, ";\n "),
|
|
76
|
+
forced: "\n background-color: ".concat(euiTheme.colors.fullShade, ";\n border: none;\n ")
|
|
77
|
+
}), ";}}}&:where([data-variant='selection'][data-display='inverse'] &){*:where(.euiButton, .euiButtonIcon):is([aria-pressed='true']){", euiShadowXSmall(euiThemeContext), " ", highContrastModeStyles(euiThemeContext, {
|
|
88
78
|
forced: "\n border: none;\n "
|
|
89
|
-
}), ";}};label:euiButtonGroup__buttons;"),
|
|
79
|
+
}), ";}*:where(.euiButton, .euiButtonIcon):is(", euiDisabledSelector, "){background-color:transparent;}};label:euiButtonGroup__buttons;"),
|
|
90
80
|
noWrap: /*#__PURE__*/css("&:where(", segmentedStyledSelector, " &){flex-wrap:nowrap;", buttonOnlyItemSelector, "{flex:0 1 auto;min-inline-size:0;.euiButton .eui-textTruncate{min-inline-size:0;}}&", hasButtonIconOnlySelector, "{overflow-inline:auto;}};label:noWrap;"),
|
|
91
81
|
fullWidth: /*#__PURE__*/css(logicalCSS('width', '100%'), " .euiButtonGroupButton,.euiButtonGroup__tooltipWrapper{flex:1;", logicalCSS('width', '100%'), ";}&:where([data-variant='default'] &){.euiButton{flex-grow:1;inline-size:auto;}.euiButtonEmpty{flex-shrink:0;}}&:where(", segmentedStyledSelector, " &){&", hasButtonIconOnlySelector, "{inline-size:auto;}&", hasButtonOnlySelector, "{.euiButtonGroup__buttons{inline-size:100%;}", buttonOnlyItemSelector, "{flex-grow:1;}}};label:fullWidth;"),
|
|
92
|
-
//
|
|
82
|
+
// Options API sizes
|
|
93
83
|
size: {
|
|
94
|
-
m: /*#__PURE__*/css("border-radius:",
|
|
95
|
-
s: /*#__PURE__*/css("border-radius:",
|
|
96
|
-
compressed: /*#__PURE__*/css(logicalCSS('height', controlCompressedHeight), " background-color:", backgroundColor, ";border:", euiTheme.border.width.thin, " solid ", borderColor, ";border-radius:", controlCompressedBorderRadius, ";", _highContrastStyles(euiThemeContext, true), ";;label:compressed;")
|
|
84
|
+
m: /*#__PURE__*/css(logicalCSS('height', buttonSizeMap.m.height), " --euiButtonGroupButtonInsetSize:", buttonGroupVariables.size.m, ";background-color:", buttonGroupVariables.backgroundColor, ";border-radius:", buttonGroupVariables.radius.outer, ";", _highContrastStyles(euiThemeContext), ";;label:m;"),
|
|
85
|
+
s: /*#__PURE__*/css(logicalCSS('height', buttonSizeMap.s.height), " --euiButtonGroupButtonInsetSize:", buttonGroupVariables.size.s, ";background-color:", buttonGroupVariables.backgroundColor, ";border-radius:", buttonGroupVariables.radius.outer, ";", _highContrastStyles(euiThemeContext), ";;label:s;")
|
|
97
86
|
},
|
|
98
87
|
gutterSize: {
|
|
99
88
|
xs: /*#__PURE__*/css("gap:", euiTheme.size.xs, ";;label:xs;"),
|
|
@@ -104,10 +93,10 @@ export var euiButtonGroupButtonsStyles = function euiButtonGroupButtonsStyles(eu
|
|
|
104
93
|
}
|
|
105
94
|
};
|
|
106
95
|
};
|
|
107
|
-
var _highContrastStyles = function _highContrastStyles(euiThemeContext
|
|
96
|
+
var _highContrastStyles = function _highContrastStyles(euiThemeContext) {
|
|
108
97
|
var euiTheme = euiThemeContext.euiTheme;
|
|
109
98
|
return highContrastModeStyles(euiThemeContext, {
|
|
110
|
-
preferred:
|
|
111
|
-
forced: "\n .euiButtonGroupButton-isSelected {\n ".concat(preventForcedColors(euiThemeContext), "\n color: ").concat(euiTheme.colors.emptyShade, ";\n background-color: ").concat(euiTheme.colors.fullShade, ";\n\n &:is(:hover, :focus):not(").concat(euiDisabledSelector, ") {\n &::before {\n border-color: ").concat(euiTheme.colors.textInverse, ";\n }\n }\n }\n\n .euiButtonGroupButton:is(").concat(euiDisabledSelector, ") {\n opacity: 0.5;\n }\n ")
|
|
99
|
+
preferred: "\n .euiButtonGroupButton {\n border: none;\n }\n ",
|
|
100
|
+
forced: "\n .euiButtonGroupButton-isSelected {\n ".concat(preventForcedColors(euiThemeContext), "\n color: ").concat(euiTheme.colors.emptyShade, ";\n background-color: ").concat(euiTheme.colors.fullShade, ";\n\n &:is(:hover, :focus):not(:is(").concat(euiDisabledSelector, ")) {\n &::before {\n border-color: ").concat(euiTheme.colors.textInverse, ";\n }\n }\n }\n\n .euiButtonGroupButton:is(").concat(euiDisabledSelector, ") {\n opacity: 0.5;\n }\n ")
|
|
112
101
|
});
|
|
113
102
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
5
5
|
var _excluded = ["className", "id", "isDisabled", "isIconOnly", "isSelected", "label", "value", "size", "color", "toolTipContent", "toolTipProps", "contentProps"];
|
|
@@ -19,7 +19,7 @@ import { useEuiMemoizedStyles } from '../../../services';
|
|
|
19
19
|
import { useEuiButtonColorCSS } from '../../../global_styling/mixins/_button';
|
|
20
20
|
import { useInnerText } from '../../inner_text';
|
|
21
21
|
import { EuiButtonDisplay } from '../button_display/_button_display';
|
|
22
|
-
import { euiButtonGroupButtonStyles
|
|
22
|
+
import { euiButtonGroupButtonStyles } from './button_group_button.styles';
|
|
23
23
|
import { EuiToolTip } from '../../../components/tool_tip';
|
|
24
24
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
25
25
|
export var EuiButtonGroupButton = function EuiButtonGroupButton(_ref) {
|
|
@@ -30,26 +30,22 @@ export var EuiButtonGroupButton = function EuiButtonGroupButton(_ref) {
|
|
|
30
30
|
isSelected = _ref.isSelected,
|
|
31
31
|
label = _ref.label,
|
|
32
32
|
value = _ref.value,
|
|
33
|
-
|
|
33
|
+
_size = _ref.size,
|
|
34
34
|
_ref$color = _ref.color,
|
|
35
35
|
_color = _ref$color === void 0 ? 'primary' : _ref$color,
|
|
36
36
|
toolTipContent = _ref.toolTipContent,
|
|
37
37
|
toolTipProps = _ref.toolTipProps,
|
|
38
38
|
contentProps = _ref.contentProps,
|
|
39
39
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
40
|
-
var
|
|
40
|
+
var size = _size === 'compressed' ? 's' : _size;
|
|
41
41
|
var color = isDisabled ? 'disabled' : _color;
|
|
42
|
-
var
|
|
43
|
-
var display = isSelected ? 'fill' : isCompressed || hasBorder ? 'empty' : 'base';
|
|
44
|
-
var hasToolTip = !!toolTipContent;
|
|
42
|
+
var display = isSelected && color !== 'text' ? 'fill' : 'empty';
|
|
45
43
|
var styles = useEuiMemoizedStyles(euiButtonGroupButtonStyles);
|
|
46
|
-
var focusColorStyles = useEuiMemoizedStyles(_compressedButtonFocusColors);
|
|
47
44
|
var buttonColorStyles = useEuiButtonColorCSS({
|
|
48
45
|
display: display
|
|
49
46
|
})[color];
|
|
50
|
-
var cssStyles = [styles.euiButtonGroupButton, isIconOnly && styles.iconOnly.iconOnly, isIconOnly && styles.iconOnly[size],
|
|
51
|
-
var tooltipWrapperStyles = [styles.tooltipWrapper
|
|
52
|
-
var contentStyles = [styles.content.euiButtonGroupButton__content, isCompressed && styles.content.compressed];
|
|
47
|
+
var cssStyles = [styles.euiButtonGroupButton, isIconOnly && styles.iconOnly.iconOnly, isIconOnly && styles.iconOnly[size], styles[size], isSelected && color === 'text' && styles.isSelected, isDisabled && isSelected ? styles.disabledAndSelected : buttonColorStyles];
|
|
48
|
+
var tooltipWrapperStyles = [styles.tooltipWrapper];
|
|
53
49
|
var textStyles = [isIconOnly ? styles.text.euiButtonGroupButton__iconOnly : styles.text.euiButtonGroupButton__text];
|
|
54
50
|
var buttonClasses = classNames('euiButtonGroupButton', {
|
|
55
51
|
'euiButtonGroupButton-isSelected': isSelected,
|
|
@@ -74,10 +70,8 @@ export var EuiButtonGroupButton = function EuiButtonGroupButton(_ref) {
|
|
|
74
70
|
css: cssStyles,
|
|
75
71
|
className: buttonClasses,
|
|
76
72
|
isDisabled: isDisabled,
|
|
77
|
-
size: size
|
|
78
|
-
contentProps:
|
|
79
|
-
css: [contentStyles, contentProps === null || contentProps === void 0 ? void 0 : contentProps.css]
|
|
80
|
-
}),
|
|
73
|
+
size: size,
|
|
74
|
+
contentProps: contentProps,
|
|
81
75
|
textProps: {
|
|
82
76
|
css: textStyles,
|
|
83
77
|
ref: buttonTextRef,
|
|
@@ -12,94 +12,55 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
14
|
import { css } from '@emotion/react';
|
|
15
|
-
import {
|
|
15
|
+
import { logicalCSS, euiTextShift, euiOutline, preventForcedColors, highContrastModeStyles, euiDisabledSelector } from '../../../global_styling';
|
|
16
16
|
import { BUTTON_COLORS, euiButtonSizeMap } from '../../../global_styling/mixins/_button';
|
|
17
17
|
import { euiScreenReaderOnly } from '../../accessibility';
|
|
18
18
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
19
|
-
name: "
|
|
20
|
-
styles: "
|
|
19
|
+
name: "1ockoqy-tooltipWrapper",
|
|
20
|
+
styles: "min-inline-size:0;&:has(:focus-visible){z-index:1;};label:tooltipWrapper;"
|
|
21
21
|
} : {
|
|
22
|
-
name: "
|
|
23
|
-
styles: "
|
|
24
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
25
|
-
};
|
|
26
|
-
var _ref2 = process.env.NODE_ENV === "production" ? {
|
|
27
|
-
name: "1u3o7zy-hasToolTip",
|
|
28
|
-
styles: "border-radius:inherit;label:hasToolTip;"
|
|
29
|
-
} : {
|
|
30
|
-
name: "1u3o7zy-hasToolTip",
|
|
31
|
-
styles: "border-radius:inherit;label:hasToolTip;",
|
|
22
|
+
name: "1ockoqy-tooltipWrapper",
|
|
23
|
+
styles: "min-inline-size:0;&:has(:focus-visible){z-index:1;};label:tooltipWrapper;",
|
|
32
24
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
33
25
|
};
|
|
34
26
|
export var euiButtonGroupButtonStyles = function euiButtonGroupButtonStyles(euiThemeContext) {
|
|
35
27
|
var euiTheme = euiThemeContext.euiTheme,
|
|
36
28
|
highContrastMode = euiThemeContext.highContrastMode;
|
|
37
|
-
var
|
|
38
|
-
var
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
29
|
+
var buttonSizeMap = euiButtonSizeMap(euiThemeContext);
|
|
30
|
+
var buttonSizes = {
|
|
31
|
+
s: {
|
|
32
|
+
height: buttonSizeMap.s.getInsetHeight(buttonSizeMap.s.height, euiTheme.size.xs),
|
|
33
|
+
radius: buttonSizeMap.s.radiusInset
|
|
34
|
+
},
|
|
35
|
+
m: {
|
|
36
|
+
height: buttonSizeMap.m.getInsetHeight(buttonSizeMap.m.height, euiTheme.size.xs),
|
|
37
|
+
radius: buttonSizeMap.m.radiusInset
|
|
38
|
+
}
|
|
44
39
|
};
|
|
40
|
+
var selectedSelectors = '.euiButtonGroupButton-isSelected, .euiButtonGroup__tooltipWrapper-isSelected';
|
|
45
41
|
return {
|
|
46
42
|
// Base
|
|
47
|
-
euiButtonGroupButton: /*#__PURE__*/css(logicalCSS('min-width', 0), " flex-shrink:1;flex-grow:0;
|
|
43
|
+
euiButtonGroupButton: /*#__PURE__*/css(logicalCSS('min-width', 0), " flex-shrink:1;flex-grow:0;border:none;border-radius:", buttonSizes.s.radius, ";font-weight:", euiTheme.font.weight.medium, ";&:is(", selectedSelectors, "):not(", euiDisabledSelector, "){", highContrastModeStyles(euiThemeContext, {
|
|
48
44
|
forced: "\n --highContrastHoverIndicatorColor: ".concat(euiTheme.colors.textInverse, ";\n border: none;\n\n /* styles the content manually instead of the button itself to preserve the system\n focus style, as otherwise preventForcedColors() would require manual styling */\n > [class*=\"euiButtonDisplayContent\"] {\n ").concat(preventForcedColors(euiThemeContext), "\n color: ").concat(euiTheme.colors.emptyShade, ";\n border: none;\n }\n ")
|
|
49
|
-
}), ";};label:euiButtonGroupButton;"),
|
|
45
|
+
}), ";}&:is(", selectedSelectors, ":where(", euiDisabledSelector, ")){border:none;}&:focus-visible{outline-offset:0;};label:euiButtonGroupButton;"),
|
|
50
46
|
iconOnly: {
|
|
51
47
|
// used only as classname, sizes are added separately
|
|
52
48
|
iconOnly: /*#__PURE__*/css(";label:iconOnly;"),
|
|
53
49
|
s: "\n ".concat(logicalCSS('width', buttonSizes.s.height), "\n "),
|
|
54
|
-
m: "\n ".concat(logicalCSS('width', buttonSizes.m.height), "\n ")
|
|
55
|
-
compressed: "\n ".concat(logicalCSS('width', compressedButtonHeight), "\n ")
|
|
50
|
+
m: "\n ".concat(logicalCSS('width', buttonSizes.m.height), "\n ")
|
|
56
51
|
},
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
uncompressed: /*#__PURE__*/css("&:focus-visible{", euiOutline(euiThemeContext, 'inset', euiTheme.components.buttonGroupFocusColor), ";}&:is(", selectedSelectors, "):not(", euiDisabledSelector, "){z-index:1;border:", euiTheme.border.width.thin, " solid transparent;", highContrastModeStyles(euiThemeContext, {
|
|
60
|
-
forced: "\n /* use inset focus outline to ensure visibility, same as custom hover.\n NOTE: temp solution - this will be revisited once we handle global focus styles */\n &:focus-visible {\n outline-color: ".concat(euiTheme.colors.textInverse, ";\n /* has to be inset due to overflow: hidden */\n outline-offset: -").concat(mathWithUnits(euiTheme.border.width.thin, function (x) {
|
|
61
|
-
return x * 4;
|
|
62
|
-
}), ";\n }\n ")
|
|
63
|
-
}), ";};label:uncompressed;"),
|
|
64
|
-
get borders() {
|
|
65
|
-
// We use pseudo elements to avoid affecing button width, and to allow
|
|
66
|
-
// inheriting high contrast border colors
|
|
67
|
-
var selectors = selectedSelectors;
|
|
68
|
-
var selectedColor = highContrastMode ? euiTheme.colors.emptyShade : euiTheme.components.buttonGroupBorderColorSelected;
|
|
69
|
-
var unselectedColor = highContrastMode ? 'inherit' : euiTheme.components.buttonGroupBorderColor;
|
|
70
|
-
var borderWidth = euiTheme.border.width.thin;
|
|
71
|
-
|
|
72
|
-
// "Borders" between buttons should be present between two of the same colored buttons,
|
|
73
|
-
// and absent between selected vs non-selected buttons (different colors)
|
|
74
|
-
return "\n position: relative;\n\n &:not(:first-child) {\n margin-inline-start: -".concat(borderWidth, ";\n }\n\n &:is(").concat(selectors, ") {\n &::before {\n position: absolute;\n z-index: 1;\n ").concat(logicalCSS('left', 0), "\n ").concat(logicalCSS('vertical', "-".concat(euiTheme.border.width.thin)), "\n ").concat(logicalCSS('border-left-style', 'solid'), "\n ").concat(logicalCSS('border-left-width', euiTheme.border.width.thin), "\n pointer-events: none;\n\n ").concat(preventForcedColors(euiThemeContext), "\n }\n }\n\n &:not(").concat(selectors, ") + *:not(").concat(selectors, ") {\n &::before {\n content: '';\n border-color: ").concat(unselectedColor, ";\n inset-inline-start: -").concat(borderWidth, ";\n }\n }\n\n &:is(").concat(selectors, ") + *:is(").concat(selectors, ") {\n &::before {\n content: '';\n border-color: ").concat(selectedColor, ";\n inset-inline-start: -").concat(borderWidth, ";\n }\n }\n ");
|
|
75
|
-
},
|
|
76
|
-
get s() {
|
|
77
|
-
return /*#__PURE__*/css(this.borders, " ", uncompressedBorderRadii(euiTheme.border.radius.small), ";;label:s;");
|
|
78
|
-
},
|
|
79
|
-
get m() {
|
|
80
|
-
var radius = euiTheme.border.radius.small;
|
|
81
|
-
return /*#__PURE__*/css(this.borders, " ", uncompressedBorderRadii(radius), ";;label:m;");
|
|
82
|
-
},
|
|
83
|
-
hasToolTip: _ref2
|
|
84
|
-
},
|
|
85
|
-
compressed: /*#__PURE__*/css(logicalCSS('height', compressedButtonHeight), " line-height:", compressedButtonHeight, ";font-weight:", euiTheme.font.weight.medium, ";padding:0;margin:", euiTheme.size.xxs, ";border-radius:", mathWithUnits(euiTheme.border.radius.small, function (x) {
|
|
86
|
-
return x / 2;
|
|
87
|
-
}), ";&+.euiButtonGroupButton{", logicalCSS('margin-left', '0'), ";}&:is(", selectedSelectors, "):not(", euiDisabledSelector, "){border:none;", highContrastModeStyles(euiThemeContext, {
|
|
88
|
-
forced: "\n /* use inset focus outline to ensure visibility, same as custom hover.\n NOTE: temp solution - this will be revisited once we handle global focus styles */\n &:focus-visible {\n outline-color: ".concat(euiTheme.colors.textInverse, ";\n /* has to be inset due to overflow: hidden */\n outline-offset: -").concat(mathWithUnits(euiTheme.border.width.thin, function (x) {
|
|
89
|
-
return x * 3;
|
|
90
|
-
}), ";\n }\n ")
|
|
91
|
-
}), ";};label:compressed;"),
|
|
52
|
+
s: /*#__PURE__*/css(logicalCSS('height', buttonSizes.s.height), " line-height:", buttonSizes.s.height, ";;label:s;"),
|
|
53
|
+
m: /*#__PURE__*/css(logicalCSS('height', buttonSizes.m.height), " line-height:", buttonSizes.m.height, ";;label:m;"),
|
|
92
54
|
// States
|
|
55
|
+
isSelected: /*#__PURE__*/css("background-color:", euiTheme.colors.backgroundLightText, ";&:is(", selectedSelectors, "):not(", euiDisabledSelector, "){", highContrastModeStyles(euiThemeContext, {
|
|
56
|
+
preferred: "\n border: ".concat(euiTheme.border.width.thin, " solid currentColor;\n "),
|
|
57
|
+
forced: "\n border: none;\n "
|
|
58
|
+
}), ";}&:is(", selectedSelectors, ":where(", euiDisabledSelector, ")){", highContrastModeStyles(euiThemeContext, {
|
|
59
|
+
preferred: "\n border: ".concat(euiTheme.border.thin, ";\n ")
|
|
60
|
+
}), ";};label:isSelected;"),
|
|
93
61
|
disabledAndSelected: /*#__PURE__*/css("color:", euiTheme.colors.textDisabled, ";background-color:", euiTheme.components.buttonGroupBackgroundDisabledSelected, ";border:", highContrastMode ? "".concat(euiTheme.border.width.thin, " solid ").concat(euiTheme.components.buttonGroupBackgroundDisabledSelected) : "".concat(euiTheme.border.width.thin, " solid ").concat(euiTheme.colors.borderBasePlain), ";;label:disabledAndSelected;"),
|
|
94
|
-
// Skip css`` to avoid generating a className
|
|
95
|
-
hasBorder: "\n border: ".concat(euiTheme.border.width.thin, " solid\n ").concat(euiTheme.colors.borderBasePlain, ";\n "),
|
|
96
62
|
// Tooltip anchor wrapper
|
|
97
63
|
tooltipWrapper: _ref,
|
|
98
|
-
// Content wrapper
|
|
99
|
-
content: {
|
|
100
|
-
euiButtonGroupButton__content: /*#__PURE__*/css(";label:euiButtonGroupButton__content;"),
|
|
101
|
-
compressed: /*#__PURE__*/css("padding-inline:", euiTheme.size.s, ";;label:compressed;")
|
|
102
|
-
},
|
|
103
64
|
// Text wrapper
|
|
104
65
|
text: {
|
|
105
66
|
euiButtonGroupButton__text: /*#__PURE__*/css(euiTextShift('bold', 'data-text', euiTheme), ";;label:euiButtonGroupButton__text;"),
|
|
@@ -10,6 +10,7 @@ import { css } from '@emotion/react';
|
|
|
10
10
|
import { euiButtonSizeMap, euiDisabledSelector, highContrastModeStyles, logicalCSS } from '../../../global_styling';
|
|
11
11
|
var primaryDisabledSelector = ".euiSplitButtonActionPrimary:is(".concat(euiDisabledSelector, ")");
|
|
12
12
|
var secondaryDisabledSelector = ".euiSplitButtonActionSecondary:is(".concat(euiDisabledSelector, ")");
|
|
13
|
+
var hasAllDisabledActionsSelector = ":has(".concat(primaryDisabledSelector, "):has(").concat(secondaryDisabledSelector, ")");
|
|
13
14
|
export var euiSplitButtonStyles = function euiSplitButtonStyles(euiThemeContext, backgroundColor) {
|
|
14
15
|
var euiTheme = euiThemeContext.euiTheme;
|
|
15
16
|
var buttonSizeMap = euiButtonSizeMap(euiThemeContext);
|
|
@@ -17,10 +18,10 @@ export var euiSplitButtonStyles = function euiSplitButtonStyles(euiThemeContext,
|
|
|
17
18
|
return "\n &::after {\n content: '';\n position: absolute;\n inset: 0;\n border: ".concat(euiTheme.border.width.thin, " solid ").concat(color, ";\n border-radius: ").concat(euiTheme.border.radius.small, ";\n pointer-events: none;\n }\n ");
|
|
18
19
|
};
|
|
19
20
|
return {
|
|
20
|
-
euiSplitButton: /*#__PURE__*/css("position:relative;display:inline-flex;align-items:center;flex-wrap:nowrap;max-inline-size:fit-content;padding:", euiTheme.size.xs, ";border-radius:", euiTheme.border.radius.small, ";background-color:", backgroundColor, ";&:where([data-size='s']){block-size:", buttonSizeMap.s.height, ";}&:where([data-size='m']){block-size:", buttonSizeMap.m.height, ";}&:
|
|
21
|
+
euiSplitButton: /*#__PURE__*/css("position:relative;display:inline-flex;align-items:center;flex-wrap:nowrap;max-inline-size:fit-content;padding:", euiTheme.size.xs, ";border-radius:", euiTheme.border.radius.small, ";background-color:", backgroundColor, ";&:where([data-size='s']){block-size:", buttonSizeMap.s.height, ";}&:where([data-size='m']){block-size:", buttonSizeMap.m.height, ";}&:where(", hasAllDisabledActionsSelector, "){background-color:", euiTheme.colors.backgroundBaseDisabled, ";};label:euiSplitButton;"),
|
|
21
22
|
hasBorder: /*#__PURE__*/css(highContrastModeStyles(euiThemeContext, {
|
|
22
|
-
none: "\n &:where(:not([data-fill])):not(
|
|
23
|
-
preferred: "\n &:where(:not([data-fill])) {\n ".concat(borderStyles("var(--euiSplitButtonBorderColor)"), "\n\n &:
|
|
23
|
+
none: "\n &:where(:not([data-fill])):not(".concat(hasAllDisabledActionsSelector, ") {\n ").concat(borderStyles("var(--euiSplitButtonBorderColor)"), "\n }\n "),
|
|
24
|
+
preferred: "\n &:where(:not([data-fill])) {\n ".concat(borderStyles("var(--euiSplitButtonBorderColor)"), "\n\n &:where(").concat(hasAllDisabledActionsSelector, ") {\n ").concat(borderStyles(euiTheme.colors.borderBaseDisabled), "\n }\n }\n\n &:where([data-fill]").concat(hasAllDisabledActionsSelector, ") {\n ").concat(borderStyles(euiTheme.colors.borderBaseDisabled), "\n }\n "),
|
|
24
25
|
forced: "\n ".concat(borderStyles("var(--euiSplitButtonBorderColor)"), "\n ")
|
|
25
26
|
}), ";;label:hasBorder;")
|
|
26
27
|
};
|
|
@@ -33,7 +34,7 @@ export var euiSplitButtonActionStyles = function euiSplitButtonActionStyles(euiT
|
|
|
33
34
|
var buttonSize = size === 's' ? buttonSizeMap.xs.height : buttonSizeMap.s.height;
|
|
34
35
|
var buttonMinWidth = size === 's' ? buttonSizeMap.xs.minWidth : buttonSizeMap.s.minWidth;
|
|
35
36
|
var buttonRadius = size === 's' ? buttonSizeMap.xs.radiusInset : buttonSizeMap.s.radiusInset;
|
|
36
|
-
var commonStyles = "\n block-size: ".concat(buttonSize, ";\n border-radius: ").concat(buttonRadius, ";\n /* prevent issues in jsdom where pointer-events: none is inherited from the pseudo element */\n pointer-events: auto;\n
|
|
37
|
+
var commonStyles = "\n block-size: ".concat(buttonSize, ";\n border-radius: ").concat(buttonRadius, ";\n /* prevent issues in jsdom where pointer-events: none is inherited from the pseudo element */\n pointer-events: auto;\n border: none;\n ");
|
|
37
38
|
return {
|
|
38
39
|
euiSplitButtonActionPrimary: /*#__PURE__*/css(commonStyles, " z-index:", euiTheme.levels.content, ";&:not(.euiButtonIcon){min-inline-size:", buttonMinWidth, "px;}&.euiButtonIcon{inline-size:", buttonSize, ";};label:euiSplitButtonActionPrimary;"),
|
|
39
40
|
euiSplitButtonActionSecondary: /*#__PURE__*/css(commonStyles, " inline-size:", buttonSize, ";;label:euiSplitButtonActionSecondary;")
|
|
@@ -42,6 +43,6 @@ export var euiSplitButtonActionStyles = function euiSplitButtonActionStyles(euiT
|
|
|
42
43
|
export var euiSplitButtonDividerStyles = function euiSplitButtonDividerStyles(euiThemeContext, color) {
|
|
43
44
|
var euiTheme = euiThemeContext.euiTheme;
|
|
44
45
|
return {
|
|
45
|
-
divider: /*#__PURE__*/css("block-size:calc(100% - ", euiTheme.size.s, ");border-inline-start:", euiTheme.border.width.thin, " solid ", color, ";", logicalCSS('margin-horizontal', euiTheme.size.xs), ";&:where(\n ", primaryDisabledSelector, " +
|
|
46
|
+
divider: /*#__PURE__*/css("block-size:calc(100% - ", euiTheme.size.s, ");border-inline-start:", euiTheme.border.width.thin, " solid ", color, ";", logicalCSS('margin-horizontal', euiTheme.size.xs), ";&:where(\n :is(", primaryDisabledSelector, " + &):has(\n ~ ", secondaryDisabledSelector, "\n )\n ){border-color:", euiTheme.colors.borderBaseDisabled, ";};label:divider;")
|
|
46
47
|
};
|
|
47
48
|
};
|
|
@@ -34,7 +34,7 @@ export function useEuiButtonCommonProps(_ref) {
|
|
|
34
34
|
isDisabled: ((_groupContext$isDisab = groupContext.isDisabled) !== null && _groupContext$isDisab !== void 0 ? _groupContext$isDisab : _isDisabled) || disabled,
|
|
35
35
|
isLoading: isLoading
|
|
36
36
|
});
|
|
37
|
-
var selectionProps = id != null ? (_groupContext$getSele = groupContext.getSelectionProps) === null || _groupContext$getSele === void 0 ? void 0 : _groupContext$getSele.call(groupContext, id) : undefined;
|
|
37
|
+
var selectionProps = id != null ? (_groupContext$getSele = groupContext.getSelectionProps) === null || _groupContext$getSele === void 0 ? void 0 : _groupContext$getSele.call(groupContext, id, isDisabled) : undefined;
|
|
38
38
|
var onClick = selectionProps ? function (event) {
|
|
39
39
|
selectionProps.onSelect();
|
|
40
40
|
_onClick === null || _onClick === void 0 || _onClick(event);
|
|
@@ -27,7 +27,7 @@ export var euiDataGridColumnSortingStyles = function euiDataGridColumnSortingSty
|
|
|
27
27
|
euiDataGridColumnSorting__order: /*#__PURE__*/css(euiMinBreakpoint(euiThemeContext, 'm'), "{", logicalCSS('min-width', mathWithUnits(euiTheme.size.xxl, function (x) {
|
|
28
28
|
return x * 5;
|
|
29
29
|
})), ";}.euiButtonGroup__buttons{border:none;}.euiButtonGroupButton{font-size:", euiFontSize(euiThemeContext, 'xs').fontSize, ";};label:euiDataGridColumnSorting__order;"),
|
|
30
|
-
euiDataGridColumnSorting__dragHandle: /*#__PURE__*/css(
|
|
30
|
+
euiDataGridColumnSorting__dragHandle: /*#__PURE__*/css("&+.euiDataGridColumnSorting__dragHandle{margin-block-start:", euiTheme.size.xxs, ";};label:euiDataGridColumnSorting__dragHandle;"),
|
|
31
31
|
/**
|
|
32
32
|
* 'Pick fields to sort by' popover
|
|
33
33
|
*/
|
|
@@ -10,11 +10,11 @@ var _excluded = ["id", "display", "direction", "index", "sorting", "schema", "sc
|
|
|
10
10
|
* Side Public License, v 1.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import React, { useCallback } from 'react';
|
|
13
|
+
import React, { useCallback, useMemo } from 'react';
|
|
14
14
|
import classNames from 'classnames';
|
|
15
15
|
import { useEuiMemoizedStyles } from '../../../services';
|
|
16
16
|
import { EuiScreenReaderOnly } from '../../accessibility';
|
|
17
|
-
import { EuiButtonGroup, EuiButtonIcon } from '../../button';
|
|
17
|
+
import { EuiButton, EuiButtonGroup, EuiButtonIcon } from '../../button';
|
|
18
18
|
import { EuiDraggable } from '../../drag_and_drop';
|
|
19
19
|
import { EuiFlexGroup, EuiFlexItem } from '../../flex';
|
|
20
20
|
import { EuiI18n, useEuiI18n } from '../../i18n';
|
|
@@ -44,17 +44,19 @@ export var EuiDataGridColumnSortingDraggable = function EuiDataGridColumnSorting
|
|
|
44
44
|
var schemaDetails = schema.hasOwnProperty(id) && schema[id].columnType != null ? getDetailsForSchema(schemaDetectors, schema[id].columnType) : null;
|
|
45
45
|
var textSortAsc = schemaDetails != null ? schemaDetails.sortTextAsc : defaultSortAscLabel;
|
|
46
46
|
var textSortDesc = schemaDetails != null ? schemaDetails.sortTextDesc : defaultSortDescLabel;
|
|
47
|
-
var toggleOptions =
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
47
|
+
var toggleOptions = useMemo(function () {
|
|
48
|
+
return [{
|
|
49
|
+
id: "".concat(id, "Asc"),
|
|
50
|
+
value: 'asc',
|
|
51
|
+
label: textSortAsc,
|
|
52
|
+
'data-test-subj': "euiDataGridColumnSorting-sortColumn-".concat(id, "-asc")
|
|
53
|
+
}, {
|
|
54
|
+
id: "".concat(id, "Desc"),
|
|
55
|
+
value: 'desc',
|
|
56
|
+
label: textSortDesc,
|
|
57
|
+
'data-test-subj': "euiDataGridColumnSorting-sortColumn-".concat(id, "-desc")
|
|
58
|
+
}];
|
|
59
|
+
}, [id, textSortAsc, textSortDesc]);
|
|
58
60
|
var dragHandleAriaLabel = useEuiI18n('euiColumnSortingDraggable.dragHandleAriaLabel', 'Drag handle');
|
|
59
61
|
var removeSort = useCallback(function () {
|
|
60
62
|
var nextColumns = _toConsumableArray(sorting.columns);
|
|
@@ -65,25 +67,32 @@ export var EuiDataGridColumnSortingDraggable = function EuiDataGridColumnSorting
|
|
|
65
67
|
nextColumns.splice(columnIndex, 1);
|
|
66
68
|
sorting.onSort(nextColumns);
|
|
67
69
|
}, [id, sorting]);
|
|
68
|
-
var toggleLegendHandler = useCallback(function (
|
|
70
|
+
var toggleLegendHandler = useCallback(function (selectedId) {
|
|
71
|
+
var _ref3;
|
|
72
|
+
var selectedOption = toggleOptions.find(function (option) {
|
|
73
|
+
return option.id === selectedId;
|
|
74
|
+
});
|
|
75
|
+
var direction = (_ref3 = selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value) !== null && _ref3 !== void 0 ? _ref3 : 'asc';
|
|
69
76
|
var nextColumns = _toConsumableArray(sorting.columns);
|
|
70
|
-
var columnIndex = nextColumns.map(function (
|
|
71
|
-
var
|
|
72
|
-
return
|
|
77
|
+
var columnIndex = nextColumns.map(function (_ref4) {
|
|
78
|
+
var colId = _ref4.id;
|
|
79
|
+
return colId;
|
|
73
80
|
}).indexOf(id);
|
|
74
81
|
nextColumns.splice(columnIndex, 1, {
|
|
75
82
|
id: id,
|
|
76
83
|
direction: direction
|
|
77
84
|
});
|
|
78
85
|
sorting.onSort(nextColumns);
|
|
79
|
-
}, [id, sorting]);
|
|
86
|
+
}, [id, sorting, toggleOptions]);
|
|
80
87
|
var styles = useEuiMemoizedStyles(euiDataGridColumnSortingStyles);
|
|
81
88
|
return ___EmotionJSX(EuiDraggable, _extends({
|
|
82
89
|
draggableId: id,
|
|
83
90
|
index: index,
|
|
84
91
|
hasInteractiveChildren: true,
|
|
85
92
|
customDragHandle: true,
|
|
86
|
-
usePortal: true
|
|
93
|
+
usePortal: true,
|
|
94
|
+
className: "euiDataGridColumnSorting__dragHandle",
|
|
95
|
+
css: styles.euiDataGridColumnSorting__dragHandle
|
|
87
96
|
}, rest), function (provided, state) {
|
|
88
97
|
return ___EmotionJSX(EuiFlexGroup, {
|
|
89
98
|
css: styles.euiDataGridColumnSorting__item,
|
|
@@ -148,13 +157,23 @@ export var EuiDataGridColumnSortingDraggable = function EuiDataGridColumnSorting
|
|
|
148
157
|
return ___EmotionJSX(EuiButtonGroup, {
|
|
149
158
|
legend: toggleLegend,
|
|
150
159
|
isFullWidth: true,
|
|
151
|
-
|
|
152
|
-
buttonSize: "
|
|
160
|
+
variant: "selection",
|
|
161
|
+
buttonSize: "s",
|
|
162
|
+
wrap: false,
|
|
153
163
|
css: styles.euiDataGridColumnSorting__order,
|
|
154
164
|
className: "euiDataGridColumnSorting__order",
|
|
155
165
|
idSelected: direction === 'asc' ? "".concat(id, "Asc") : "".concat(id, "Desc"),
|
|
156
166
|
onChange: toggleLegendHandler
|
|
157
|
-
})
|
|
167
|
+
}, toggleOptions.map(function (_ref5) {
|
|
168
|
+
var id = _ref5.id,
|
|
169
|
+
label = _ref5.label,
|
|
170
|
+
dataTestSubj = _ref5['data-test-subj'];
|
|
171
|
+
return ___EmotionJSX(EuiButton, {
|
|
172
|
+
key: id,
|
|
173
|
+
id: id,
|
|
174
|
+
"data-test-subj": dataTestSubj
|
|
175
|
+
}, label);
|
|
176
|
+
}));
|
|
158
177
|
})), ___EmotionJSX(EuiFlexItem, _extends({
|
|
159
178
|
grow: false
|
|
160
179
|
}, provided.dragHandleProps, {
|