@elastic/eui 84.0.0 → 85.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_theme_dark.css +0 -150
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +0 -150
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/accessibility/screen_reader_only/screen_reader_only.js +1 -1
- 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 +1 -1
- package/es/components/basic_table/collapsed_item_actions.js +1 -1
- package/es/components/basic_table/in_memory_table.js +1 -1
- package/es/components/button/button_display/_button_display.js +1 -1
- package/es/components/button/button_display/_button_display_content.js +1 -1
- package/es/components/button/button_empty/button_empty.js +1 -1
- package/es/components/button/button_group/button_group.js +1 -1
- package/es/components/button/button_group/button_group_button.js +1 -1
- package/es/components/button/button_icon/button_icon.js +1 -1
- package/es/components/call_out/call_out.js +1 -1
- package/es/components/card/card.js +2 -3
- 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/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/data_grid_cell.js +24 -24
- package/es/components/datagrid/body/header/data_grid_header_cell.js +12 -12
- package/es/components/datagrid/body/header/data_grid_header_row.js +13 -13
- package/es/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/es/components/datagrid/data_grid.js +13 -13
- package/es/components/datagrid/utils/grid_height_width.js +18 -11
- 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/empty_prompt/empty_prompt.js +1 -1
- package/es/components/facet/facet_button.js +2 -3
- package/es/components/filter_group/filter_button.js +29 -18
- package/es/components/filter_group/filter_button.styles.js +93 -0
- package/es/components/filter_group/filter_group.js +8 -5
- package/es/components/filter_group/filter_group.styles.js +55 -0
- package/es/components/form/field_number/field_number.js +1 -1
- package/es/components/form/field_text/field_text.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_custom_icon.js +1 -1
- package/es/components/form/form_control_layout/form_control_layout_icons.js +2 -2
- package/es/components/header/header_links/header_link.js +1 -1
- package/es/components/header/header_links/header_links.js +1 -5
- package/es/components/header/header_logo/header_logo.js +1 -1
- package/es/components/icon/assets/at.js +34 -0
- package/es/components/icon/assets/key.js +36 -0
- package/es/components/icon/icon.js +1 -1
- package/es/components/icon/icon_map.js +2 -0
- package/es/components/key_pad_menu/key_pad_menu_item.js +1 -1
- package/es/components/list_group/list_group.js +3 -4
- package/es/components/list_group/list_group_item.js +3 -4
- 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/notification/notification_event.js +2 -2
- package/es/components/notification/notification_event_meta.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/input_popover.js +4 -3
- package/es/components/popover/popover.js +3 -10
- package/es/components/provider/nested/index.js +9 -0
- package/es/components/provider/nested/nested_context.js +27 -0
- package/es/components/provider/provider.js +10 -2
- package/es/components/search_bar/filters/field_value_selection_filter.js +37 -31
- 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/steps/step_horizontal.js +7 -2
- package/es/components/steps/step_horizontal.styles.js +9 -3
- package/es/components/steps/steps_horizontal.js +7 -2
- package/es/components/suggest/suggest.js +1 -1
- package/es/components/suggest/suggest_item.js +1 -1
- package/es/components/table/table_header_button.js +1 -1
- package/es/components/tabs/tab.js +1 -1
- package/es/components/tabs/tab.styles.js +13 -25
- package/es/components/text/text_align.js +1 -1
- package/es/components/text/text_color.js +1 -2
- package/es/components/timeline/timeline_item_icon.js +1 -1
- package/es/components/title/title.js +1 -2
- package/es/components/toast/global_toast_list.js +1 -1
- package/es/components/toast/global_toast_list_item.js +1 -2
- package/es/components/toast/toast.js +1 -1
- package/es/components/tool_tip/icon_tip.js +1 -1
- package/es/components/tour/tour_step.js +0 -4
- package/es/services/{theme → emotion}/clone_element.js +0 -2
- package/es/services/emotion/index.js +9 -0
- package/es/services/index.js +1 -0
- package/es/services/theme/emotion.js +29 -0
- package/es/services/theme/hooks.js +3 -15
- package/es/services/theme/index.js +2 -1
- package/es/services/theme/provider.js +2 -8
- package/es/services/theme/warning.js +32 -0
- package/eui.d.ts +1125 -1017
- package/i18ntokens.json +12 -12
- package/lib/components/accessibility/screen_reader_only/screen_reader_only.js +2 -2
- 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 +1 -1
- package/lib/components/basic_table/collapsed_item_actions.js +1 -1
- package/lib/components/basic_table/in_memory_table.js +1 -1
- package/lib/components/button/button_display/_button_display.js +1 -1
- package/lib/components/button/button_display/_button_display_content.js +1 -1
- package/lib/components/button/button_empty/button_empty.js +1 -1
- package/lib/components/button/button_group/button_group.js +1 -1
- package/lib/components/button/button_group/button_group_button.js +1 -1
- package/lib/components/button/button_icon/button_icon.js +1 -1
- package/lib/components/call_out/call_out.js +1 -1
- package/lib/components/card/card.js +2 -3
- 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/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/data_grid_cell.js +24 -24
- package/lib/components/datagrid/body/header/data_grid_header_cell.js +12 -12
- package/lib/components/datagrid/body/header/data_grid_header_row.js +13 -13
- package/lib/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/lib/components/datagrid/data_grid.js +13 -13
- package/lib/components/datagrid/utils/grid_height_width.js +18 -11
- 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/empty_prompt/empty_prompt.js +1 -1
- package/lib/components/facet/facet_button.js +2 -3
- package/lib/components/filter_group/filter_button.js +29 -20
- package/lib/components/filter_group/filter_button.styles.js +100 -0
- package/lib/components/filter_group/filter_group.js +8 -5
- package/lib/components/filter_group/filter_group.styles.js +60 -0
- package/lib/components/form/field_number/field_number.js +1 -1
- package/lib/components/form/field_text/field_text.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_custom_icon.js +1 -1
- package/lib/components/form/form_control_layout/form_control_layout_icons.js +2 -2
- package/lib/components/header/header_links/header_link.js +1 -1
- package/lib/components/header/header_links/header_links.js +1 -5
- package/lib/components/header/header_logo/header_logo.js +1 -1
- package/lib/components/icon/assets/at.js +42 -0
- package/lib/components/icon/assets/key.js +44 -0
- package/lib/components/icon/icon.js +1 -1
- package/lib/components/icon/icon_map.js +2 -0
- package/lib/components/icon/svgs/at.svg +3 -0
- package/lib/components/icon/svgs/key.svg +4 -0
- package/lib/components/key_pad_menu/key_pad_menu_item.js +1 -1
- package/lib/components/list_group/list_group.js +3 -4
- package/lib/components/list_group/list_group_item.js +3 -4
- 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/notification/notification_event.js +2 -2
- package/lib/components/notification/notification_event_meta.js +1 -1
- package/lib/components/page/page_header/page_header_content.js +1 -1
- package/lib/components/popover/input_popover.js +4 -3
- package/lib/components/popover/popover.js +3 -10
- package/lib/components/provider/nested/index.js +16 -0
- package/lib/components/provider/nested/nested_context.js +39 -0
- package/lib/components/provider/provider.js +10 -2
- package/lib/components/search_bar/filters/field_value_selection_filter.js +37 -31
- 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/steps/step_horizontal.js +7 -2
- package/lib/components/steps/step_horizontal.styles.js +9 -3
- package/lib/components/steps/steps_horizontal.js +9 -3
- package/lib/components/suggest/suggest.js +1 -1
- package/lib/components/suggest/suggest_item.js +1 -1
- package/lib/components/table/table_header_button.js +1 -1
- package/lib/components/tabs/tab.js +1 -1
- package/lib/components/tabs/tab.styles.js +12 -24
- package/lib/components/text/text_align.js +2 -2
- package/lib/components/text/text_color.js +1 -2
- package/lib/components/timeline/timeline_item_icon.js +1 -1
- package/lib/components/title/title.js +1 -2
- package/lib/components/toast/global_toast_list.js +1 -1
- package/lib/components/toast/global_toast_list_item.js +1 -2
- package/lib/components/toast/toast.js +1 -1
- package/lib/components/tool_tip/icon_tip.js +1 -1
- package/lib/services/{theme → emotion}/clone_element.js +0 -2
- package/lib/services/emotion/index.js +16 -0
- package/lib/services/index.js +12 -0
- package/lib/services/theme/emotion.js +35 -0
- package/lib/services/theme/hooks.js +3 -15
- package/lib/services/theme/index.js +3 -2
- package/lib/services/theme/provider.js +3 -11
- package/lib/services/theme/warning.js +41 -0
- package/optimize/es/components/accessibility/screen_reader_only/screen_reader_only.js +1 -1
- package/optimize/es/components/card/card.js +1 -2
- package/optimize/es/components/datagrid/utils/grid_height_width.js +18 -11
- package/optimize/es/components/facet/facet_button.js +1 -2
- package/optimize/es/components/filter_group/filter_button.js +29 -18
- package/optimize/es/components/filter_group/filter_button.styles.js +93 -0
- package/optimize/es/components/filter_group/filter_group.js +8 -5
- package/optimize/es/components/filter_group/filter_group.styles.js +55 -0
- package/optimize/es/components/icon/assets/at.js +33 -0
- package/optimize/es/components/icon/assets/key.js +35 -0
- package/optimize/es/components/icon/icon_map.js +2 -0
- package/optimize/es/components/list_group/list_group.js +1 -2
- package/optimize/es/components/list_group/list_group_item.js +1 -2
- package/optimize/es/components/popover/input_popover.js +4 -3
- package/optimize/es/components/popover/popover.js +3 -6
- package/optimize/es/components/provider/nested/index.js +9 -0
- package/optimize/es/components/provider/nested/nested_context.js +27 -0
- package/optimize/es/components/provider/provider.js +10 -2
- package/optimize/es/components/search_bar/filters/field_value_selection_filter.js +37 -31
- package/optimize/es/components/steps/step_horizontal.js +6 -2
- package/optimize/es/components/steps/step_horizontal.styles.js +9 -3
- package/optimize/es/components/steps/steps_horizontal.js +6 -2
- package/optimize/es/components/tabs/tab.js +1 -1
- package/optimize/es/components/tabs/tab.styles.js +13 -25
- package/optimize/es/components/text/text_align.js +1 -1
- package/optimize/es/components/text/text_color.js +1 -2
- package/optimize/es/components/title/title.js +1 -2
- package/optimize/es/components/toast/global_toast_list_item.js +1 -2
- package/optimize/es/services/{theme → emotion}/clone_element.js +0 -2
- package/optimize/es/services/emotion/index.js +9 -0
- package/optimize/es/services/index.js +1 -0
- package/optimize/es/services/theme/emotion.js +29 -0
- package/optimize/es/services/theme/hooks.js +3 -15
- package/optimize/es/services/theme/index.js +2 -1
- package/optimize/es/services/theme/provider.js +2 -8
- package/optimize/es/services/theme/warning.js +32 -0
- package/optimize/lib/components/accessibility/screen_reader_only/screen_reader_only.js +2 -2
- package/optimize/lib/components/card/card.js +1 -2
- package/optimize/lib/components/datagrid/utils/grid_height_width.js +18 -11
- package/optimize/lib/components/facet/facet_button.js +1 -2
- package/optimize/lib/components/filter_group/filter_button.js +29 -21
- package/optimize/lib/components/filter_group/filter_button.styles.js +100 -0
- package/optimize/lib/components/filter_group/filter_group.js +8 -5
- package/optimize/lib/components/filter_group/filter_group.styles.js +60 -0
- package/optimize/lib/components/icon/assets/at.js +42 -0
- package/optimize/lib/components/icon/assets/key.js +44 -0
- package/optimize/lib/components/icon/icon_map.js +2 -0
- package/optimize/lib/components/icon/svgs/at.svg +3 -0
- package/optimize/lib/components/icon/svgs/key.svg +4 -0
- package/optimize/lib/components/list_group/list_group.js +1 -2
- package/optimize/lib/components/list_group/list_group_item.js +1 -2
- package/optimize/lib/components/popover/input_popover.js +4 -3
- package/optimize/lib/components/popover/popover.js +3 -6
- package/optimize/lib/components/provider/nested/index.js +16 -0
- package/optimize/lib/components/provider/nested/nested_context.js +39 -0
- package/optimize/lib/components/provider/provider.js +10 -2
- package/optimize/lib/components/search_bar/filters/field_value_selection_filter.js +37 -31
- package/optimize/lib/components/steps/step_horizontal.js +6 -2
- package/optimize/lib/components/steps/step_horizontal.styles.js +9 -3
- package/optimize/lib/components/steps/steps_horizontal.js +8 -3
- package/optimize/lib/components/tabs/tab.js +1 -1
- package/optimize/lib/components/tabs/tab.styles.js +12 -24
- package/optimize/lib/components/text/text_align.js +2 -2
- package/optimize/lib/components/text/text_color.js +1 -2
- package/optimize/lib/components/title/title.js +1 -2
- package/optimize/lib/components/toast/global_toast_list_item.js +1 -2
- package/{test-env/services/theme → optimize/lib/services/emotion}/clone_element.js +0 -2
- package/optimize/lib/services/emotion/index.js +16 -0
- package/optimize/lib/services/index.js +12 -0
- package/optimize/lib/services/theme/emotion.js +35 -0
- package/optimize/lib/services/theme/hooks.js +3 -15
- package/optimize/lib/services/theme/index.js +3 -2
- package/optimize/lib/services/theme/provider.js +3 -11
- package/optimize/lib/services/theme/warning.js +41 -0
- package/package.json +1 -1
- package/src/components/filter_group/_index.scss +0 -2
- package/src/themes/amsterdam/overrides/_index.scss +0 -1
- package/test-env/components/accessibility/screen_reader_only/screen_reader_only.js +2 -2
- 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 +1 -1
- package/test-env/components/basic_table/collapsed_item_actions.js +1 -1
- package/test-env/components/basic_table/in_memory_table.js +1 -1
- package/test-env/components/button/button_display/_button_display.js +1 -1
- package/test-env/components/button/button_display/_button_display_content.js +1 -1
- package/test-env/components/button/button_empty/button_empty.js +1 -1
- package/test-env/components/button/button_group/button_group.js +1 -1
- package/test-env/components/button/button_group/button_group_button.js +1 -1
- package/test-env/components/button/button_icon/button_icon.js +1 -1
- package/test-env/components/call_out/call_out.js +1 -1
- package/test-env/components/card/card.js +2 -3
- 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/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/data_grid_cell.js +24 -24
- package/test-env/components/datagrid/body/header/data_grid_header_cell.js +12 -12
- package/test-env/components/datagrid/body/header/data_grid_header_row.js +13 -13
- package/test-env/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/test-env/components/datagrid/data_grid.js +13 -13
- package/test-env/components/datagrid/utils/grid_height_width.js +18 -11
- 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/empty_prompt/empty_prompt.js +1 -1
- package/test-env/components/facet/facet_button.js +2 -3
- package/test-env/components/filter_group/filter_button.js +29 -21
- package/test-env/components/filter_group/filter_button.styles.js +100 -0
- package/test-env/components/filter_group/filter_group.js +8 -5
- package/test-env/components/filter_group/filter_group.styles.js +60 -0
- package/test-env/components/form/field_number/field_number.js +1 -1
- package/test-env/components/form/field_text/field_text.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_custom_icon.js +1 -1
- package/test-env/components/form/form_control_layout/form_control_layout_icons.js +2 -2
- package/test-env/components/header/header_links/header_link.js +1 -1
- package/test-env/components/header/header_links/header_links.js +1 -5
- package/test-env/components/header/header_logo/header_logo.js +1 -1
- package/test-env/components/icon/assets/at.js +42 -0
- package/test-env/components/icon/assets/key.js +44 -0
- package/test-env/components/icon/icon_map.js +2 -0
- package/test-env/components/key_pad_menu/key_pad_menu_item.js +1 -1
- package/test-env/components/list_group/list_group.js +3 -4
- package/test-env/components/list_group/list_group_item.js +3 -4
- 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/notification/notification_event.js +2 -2
- package/test-env/components/notification/notification_event_meta.js +1 -1
- package/test-env/components/page/page_header/page_header_content.js +1 -1
- package/test-env/components/popover/input_popover.js +4 -3
- package/test-env/components/popover/popover.js +3 -10
- package/test-env/components/provider/nested/index.js +16 -0
- package/test-env/components/provider/nested/nested_context.js +39 -0
- package/test-env/components/provider/provider.js +10 -2
- package/test-env/components/search_bar/filters/field_value_selection_filter.js +37 -31
- 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/steps/step_horizontal.js +7 -2
- package/test-env/components/steps/step_horizontal.styles.js +9 -3
- package/test-env/components/steps/steps_horizontal.js +9 -3
- package/test-env/components/suggest/suggest.js +1 -1
- package/test-env/components/suggest/suggest_item.js +1 -1
- package/test-env/components/table/table_header_button.js +1 -1
- package/test-env/components/tabs/tab.js +1 -1
- package/test-env/components/tabs/tab.styles.js +12 -24
- package/test-env/components/text/text_align.js +2 -2
- package/test-env/components/text/text_color.js +1 -2
- package/test-env/components/timeline/timeline_item_icon.js +1 -1
- package/test-env/components/title/title.js +1 -2
- package/test-env/components/toast/global_toast_list.js +1 -1
- package/test-env/components/toast/global_toast_list_item.js +1 -2
- package/test-env/components/toast/toast.js +1 -1
- package/test-env/components/tool_tip/icon_tip.js +1 -1
- package/{optimize/lib/services/theme → test-env/services/emotion}/clone_element.js +0 -2
- package/test-env/services/emotion/index.js +16 -0
- package/test-env/services/index.js +12 -0
- package/test-env/services/theme/emotion.js +35 -0
- package/test-env/services/theme/hooks.js +3 -15
- package/test-env/services/theme/index.js +3 -2
- package/test-env/services/theme/provider.js +3 -11
- package/test-env/services/theme/warning.js +41 -0
- package/src/components/filter_group/_filter_button.scss +0 -61
- package/src/components/filter_group/_filter_group.scss +0 -59
- package/src/themes/amsterdam/overrides/_filter_group.scss +0 -27
|
@@ -84,7 +84,7 @@ Object.defineProperty(exports, "getComputed", {
|
|
|
84
84
|
Object.defineProperty(exports, "getEuiDevProviderWarning", {
|
|
85
85
|
enumerable: true,
|
|
86
86
|
get: function get() {
|
|
87
|
-
return
|
|
87
|
+
return _warning.getEuiDevProviderWarning;
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
90
|
Object.defineProperty(exports, "getOn", {
|
|
@@ -108,7 +108,7 @@ Object.defineProperty(exports, "mergeDeep", {
|
|
|
108
108
|
Object.defineProperty(exports, "setEuiDevProviderWarning", {
|
|
109
109
|
enumerable: true,
|
|
110
110
|
get: function get() {
|
|
111
|
-
return
|
|
111
|
+
return _warning.setEuiDevProviderWarning;
|
|
112
112
|
}
|
|
113
113
|
});
|
|
114
114
|
Object.defineProperty(exports, "setOn", {
|
|
@@ -132,5 +132,6 @@ Object.defineProperty(exports, "withEuiTheme", {
|
|
|
132
132
|
var _context = require("./context");
|
|
133
133
|
var _hooks = require("./hooks");
|
|
134
134
|
var _provider = require("./provider");
|
|
135
|
+
var _warning = require("./warning");
|
|
135
136
|
var _utils = require("./utils");
|
|
136
137
|
var _types = require("./types");
|
|
@@ -4,12 +4,13 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.
|
|
7
|
+
exports.EuiThemeProvider = void 0;
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
10
|
var _css = require("@emotion/css");
|
|
11
11
|
var _isEqual = _interopRequireDefault(require("lodash/isEqual"));
|
|
12
12
|
var _context = require("./context");
|
|
13
|
+
var _emotion = require("./emotion");
|
|
13
14
|
var _utils = require("./utils");
|
|
14
15
|
var _react2 = require("@emotion/react");
|
|
15
16
|
var _excluded = ["cloneElement", "className"];
|
|
@@ -36,15 +37,6 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } /*
|
|
|
36
37
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
37
38
|
* Side Public License, v 1.
|
|
38
39
|
*/
|
|
39
|
-
var providerWarning = undefined;
|
|
40
|
-
var setEuiDevProviderWarning = function setEuiDevProviderWarning(level) {
|
|
41
|
-
return providerWarning = level;
|
|
42
|
-
};
|
|
43
|
-
exports.setEuiDevProviderWarning = setEuiDevProviderWarning;
|
|
44
|
-
var getEuiDevProviderWarning = function getEuiDevProviderWarning() {
|
|
45
|
-
return providerWarning;
|
|
46
|
-
};
|
|
47
|
-
exports.getEuiDevProviderWarning = getEuiDevProviderWarning;
|
|
48
40
|
var EuiThemeProvider = function EuiThemeProvider(_ref) {
|
|
49
41
|
var _system = _ref.theme,
|
|
50
42
|
_colorMode = _ref.colorMode,
|
|
@@ -149,6 +141,6 @@ var EuiThemeProvider = function EuiThemeProvider(_ref) {
|
|
|
149
141
|
value: theme
|
|
150
142
|
}, (0, _react2.jsx)(_context.EuiNestedThemeContext.Provider, {
|
|
151
143
|
value: nestedThemeContext
|
|
152
|
-
}, renderedChildren)))));
|
|
144
|
+
}, (0, _react2.jsx)(_emotion.EuiEmotionThemeProvider, null, renderedChildren))))));
|
|
153
145
|
};
|
|
154
146
|
exports.EuiThemeProvider = EuiThemeProvider;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.setEuiDevProviderWarning = exports.getEuiDevProviderWarning = exports.emitEuiProviderWarning = void 0;
|
|
7
|
+
/*
|
|
8
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
9
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
10
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
11
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
12
|
+
* Side Public License, v 1.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
var providerWarning = undefined;
|
|
16
|
+
var setEuiDevProviderWarning = function setEuiDevProviderWarning(level) {
|
|
17
|
+
return providerWarning = level;
|
|
18
|
+
};
|
|
19
|
+
exports.setEuiDevProviderWarning = setEuiDevProviderWarning;
|
|
20
|
+
var getEuiDevProviderWarning = function getEuiDevProviderWarning() {
|
|
21
|
+
return providerWarning;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
// Not a public top-level EUI export, currently for internal use
|
|
25
|
+
exports.getEuiDevProviderWarning = getEuiDevProviderWarning;
|
|
26
|
+
var emitEuiProviderWarning = function emitEuiProviderWarning(providerMessage) {
|
|
27
|
+
switch (providerWarning) {
|
|
28
|
+
case 'log':
|
|
29
|
+
console.log(providerMessage);
|
|
30
|
+
break;
|
|
31
|
+
case 'warn':
|
|
32
|
+
console.warn(providerMessage);
|
|
33
|
+
break;
|
|
34
|
+
case 'error':
|
|
35
|
+
throw new Error(providerMessage);
|
|
36
|
+
case undefined:
|
|
37
|
+
default:
|
|
38
|
+
break;
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
exports.emitEuiProviderWarning = emitEuiProviderWarning;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import classNames from 'classnames';
|
|
10
|
-
import { cloneElementWithCss } from '../../../services
|
|
10
|
+
import { cloneElementWithCss } from '../../../services';
|
|
11
11
|
import { euiScreenReaderOnlyStyles } from './screen_reader_only.styles';
|
|
12
12
|
export var EuiScreenReaderOnly = function EuiScreenReaderOnly(_ref) {
|
|
13
13
|
var children = _ref.children,
|
|
@@ -15,8 +15,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
15
15
|
|
|
16
16
|
import React, { isValidElement } from 'react';
|
|
17
17
|
import classNames from 'classnames';
|
|
18
|
-
import { getSecureRelForTarget, useEuiTheme } from '../../services';
|
|
19
|
-
import { cloneElementWithCss } from '../../services/theme/clone_element';
|
|
18
|
+
import { getSecureRelForTarget, useEuiTheme, cloneElementWithCss } from '../../services';
|
|
20
19
|
import { EuiText } from '../text';
|
|
21
20
|
import { EuiTitle } from '../title';
|
|
22
21
|
import { EuiBetaBadge } from '../badge/beta_badge';
|
|
@@ -36,22 +36,29 @@ export var useFinalGridDimensions = function useFinalGridDimensions(_ref) {
|
|
|
36
36
|
|
|
37
37
|
// Set the wrapper height on load, whenever the grid wrapper resizes, and whenever rowCount changes
|
|
38
38
|
useEffect(function () {
|
|
39
|
-
|
|
39
|
+
if (!wrapperRef.current) return;
|
|
40
|
+
var wrapperHeight = wrapperRef.current.getBoundingClientRect().height;
|
|
40
41
|
if (isFullScreen) {
|
|
41
|
-
setFullScreenHeight(
|
|
42
|
+
setFullScreenHeight(wrapperHeight);
|
|
42
43
|
} else {
|
|
43
|
-
|
|
44
|
-
|
|
44
|
+
// NOTE: Math.round() is necessary here to account for browser zoom level
|
|
45
|
+
// Otherwise, both `wrapperHeight` and `unconstrainedHeight` can return values
|
|
46
|
+
// that are slightly off by small decimal rounding, which are essentially
|
|
47
|
+
// equivalent but causes the wrapper height to get set when it shouldn't
|
|
48
|
+
if (Math.round(wrapperHeight) !== Math.round(unconstrainedHeight)) {
|
|
49
|
+
setHeight(wrapperHeight);
|
|
45
50
|
}
|
|
46
51
|
}
|
|
47
|
-
|
|
48
|
-
|
|
52
|
+
}, [rowCount, isFullScreen, wrapperDimensions.height, unconstrainedHeight, wrapperRef]);
|
|
53
|
+
|
|
54
|
+
// Set the wrapper width on load and whenever the grid wrapper resizes
|
|
55
|
+
useEffect(function () {
|
|
56
|
+
if (!wrapperRef.current) return;
|
|
57
|
+
var wrapperWidth = wrapperRef.current.getBoundingClientRect().width;
|
|
58
|
+
if (wrapperWidth !== unconstrainedWidth) {
|
|
59
|
+
setWidth(wrapperWidth);
|
|
49
60
|
}
|
|
50
|
-
}, [
|
|
51
|
-
// Effects that should cause recalculations
|
|
52
|
-
rowCount, isFullScreen, wrapperDimensions,
|
|
53
|
-
// Dependencies
|
|
54
|
-
wrapperRef, unconstrainedHeight, unconstrainedWidth]);
|
|
61
|
+
}, [wrapperDimensions.width, unconstrainedWidth, wrapperRef]);
|
|
55
62
|
var finalHeight = isFullScreen ? fullScreenHeight : height || unconstrainedHeight;
|
|
56
63
|
var finalWidth = width || unconstrainedWidth;
|
|
57
64
|
return IS_JEST_ENVIRONMENT ? {
|
|
@@ -14,8 +14,7 @@ import classNames from 'classnames';
|
|
|
14
14
|
import { EuiNotificationBadge } from '../badge';
|
|
15
15
|
import { EuiLoadingSpinner } from '../loading';
|
|
16
16
|
import { EuiInnerText } from '../inner_text';
|
|
17
|
-
import { cloneElementWithCss } from '../../services
|
|
18
|
-
import { useEuiTheme } from '../../services';
|
|
17
|
+
import { useEuiTheme, cloneElementWithCss } from '../../services';
|
|
19
18
|
import { euiFacetButtonStyles, euiFacetButtonTextStyles, euiFacetButtonIconStyles, euiFacetButtonQuantityStyles, euiFacetButtonLoadingSpinnerStyles } from './facet_button.styles';
|
|
20
19
|
import { EuiButtonDisplay, isButtonDisabled } from '../button/button_display/_button_display';
|
|
21
20
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
5
|
-
var _excluded = ["children", "className", "iconType", "iconSide", "color", "badgeColor", "hasActiveFilters", "numFilters", "numActiveFilters", "isDisabled", "isSelected", "type", "grow", "withNext", "textProps"];
|
|
5
|
+
var _excluded = ["children", "className", "iconType", "iconSide", "color", "badgeColor", "hasActiveFilters", "numFilters", "numActiveFilters", "isDisabled", "isSelected", "type", "grow", "withNext", "textProps", "contentProps"];
|
|
6
6
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
7
7
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
8
8
|
/*
|
|
@@ -13,12 +13,14 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
13
13
|
* Side Public License, v 1.
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
|
-
import React
|
|
16
|
+
import React from 'react';
|
|
17
17
|
import classNames from 'classnames';
|
|
18
|
+
import { useEuiTheme } from '../../services';
|
|
18
19
|
import { useEuiI18n } from '../i18n';
|
|
20
|
+
import { useInnerText } from '../inner_text';
|
|
19
21
|
import { EuiNotificationBadge } from '../badge';
|
|
20
22
|
import { EuiButtonEmpty } from '../button/button_empty';
|
|
21
|
-
import {
|
|
23
|
+
import { euiFilterButtonStyles, euiFilterButtonChildStyles } from './filter_button.styles';
|
|
22
24
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
23
25
|
export var EuiFilterButton = function EuiFilterButton(_ref) {
|
|
24
26
|
var children = _ref.children,
|
|
@@ -41,20 +43,22 @@ export var EuiFilterButton = function EuiFilterButton(_ref) {
|
|
|
41
43
|
grow = _ref$grow === void 0 ? true : _ref$grow,
|
|
42
44
|
withNext = _ref.withNext,
|
|
43
45
|
textProps = _ref.textProps,
|
|
46
|
+
contentProps = _ref.contentProps,
|
|
44
47
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
45
48
|
var numFiltersDefined = numFilters != null; // != instead of !== to allow for null and undefined
|
|
46
49
|
var numActiveFiltersDefined = numActiveFilters != null && numActiveFilters > 0;
|
|
50
|
+
var euiTheme = useEuiTheme();
|
|
51
|
+
var styles = euiFilterButtonStyles(euiTheme);
|
|
52
|
+
var cssStyles = [styles.euiFilterButton, withNext && styles.withNext, !grow && styles.noGrow, hasActiveFilters && styles.hasActiveFilters, numFiltersDefined && styles.hasNotification];
|
|
53
|
+
var _euiFilterButtonChild = euiFilterButtonChildStyles(euiTheme),
|
|
54
|
+
contentStyles = _euiFilterButtonChild.content,
|
|
55
|
+
textStyles = _euiFilterButtonChild.text,
|
|
56
|
+
notificationStyles = _euiFilterButtonChild.notification;
|
|
47
57
|
var classes = classNames('euiFilterButton', {
|
|
48
58
|
'euiFilterButton-isSelected': isSelected,
|
|
49
59
|
'euiFilterButton-hasActiveFilters': hasActiveFilters,
|
|
50
|
-
'euiFilterButton-hasNotification': numFiltersDefined
|
|
51
|
-
'euiFilterButton--hasIcon': iconType,
|
|
52
|
-
'euiFilterButton--noGrow': !grow,
|
|
53
|
-
'euiFilterButton--withNext': withNext
|
|
60
|
+
'euiFilterButton-hasNotification': numFiltersDefined
|
|
54
61
|
}, className);
|
|
55
|
-
var buttonTextClassNames = classNames({
|
|
56
|
-
'euiFilterButton__text-hasNotification': numFiltersDefined || numActiveFilters
|
|
57
|
-
}, textProps && textProps.className);
|
|
58
62
|
var showBadge = numFiltersDefined || numActiveFiltersDefined;
|
|
59
63
|
var badgeCount = numActiveFilters || numFilters;
|
|
60
64
|
var activeBadgeLabel = useEuiI18n('euiFilterButton.filterBadgeActiveAriaLabel', '{count} active filters', {
|
|
@@ -63,35 +67,42 @@ export var EuiFilterButton = function EuiFilterButton(_ref) {
|
|
|
63
67
|
var availableBadgeLabel = useEuiI18n('euiFilterButton.filterBadgeAvailableAriaLabel', '{count} available filters', {
|
|
64
68
|
count: badgeCount
|
|
65
69
|
});
|
|
70
|
+
var buttonTextClassNames = classNames('euiFilterButton__text', {
|
|
71
|
+
'euiFilterButton__text-hasNotification': showBadge
|
|
72
|
+
}, textProps === null || textProps === void 0 ? void 0 : textProps.className);
|
|
66
73
|
var badgeContent = showBadge && ___EmotionJSX(EuiNotificationBadge, {
|
|
67
74
|
className: "euiFilterButton__notification",
|
|
75
|
+
css: [notificationStyles.euiFilterButton__notification, isDisabled && notificationStyles.disabled, ";label:badgeContent;"],
|
|
68
76
|
"aria-label": hasActiveFilters ? activeBadgeLabel : availableBadgeLabel,
|
|
69
77
|
color: isDisabled || !hasActiveFilters ? 'subdued' : badgeColor,
|
|
70
78
|
role: "marquee" // https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/marquee_role
|
|
71
79
|
}, badgeCount);
|
|
72
|
-
var dataText;
|
|
73
|
-
if (typeof children === 'string') {
|
|
74
|
-
dataText = children;
|
|
75
|
-
}
|
|
76
80
|
var _useInnerText = useInnerText(),
|
|
77
81
|
_useInnerText2 = _slicedToArray(_useInnerText, 2),
|
|
78
82
|
ref = _useInnerText2[0],
|
|
79
83
|
innerText = _useInnerText2[1];
|
|
80
|
-
var
|
|
84
|
+
var dataText = children && typeof children === 'string' ? children : innerText;
|
|
85
|
+
var buttonContents = ___EmotionJSX(React.Fragment, null, ___EmotionJSX("span", {
|
|
81
86
|
ref: ref,
|
|
82
87
|
className: "euiFilterButton__textShift",
|
|
83
|
-
|
|
84
|
-
|
|
88
|
+
css: textStyles.euiFilterButton__textShift,
|
|
89
|
+
"data-text": dataText,
|
|
90
|
+
title: dataText
|
|
85
91
|
}, children), badgeContent);
|
|
86
92
|
return ___EmotionJSX(EuiButtonEmpty, _extends({
|
|
87
93
|
className: classes,
|
|
94
|
+
css: cssStyles,
|
|
88
95
|
color: color,
|
|
89
96
|
isDisabled: isDisabled,
|
|
90
97
|
iconSide: iconSide,
|
|
91
98
|
iconType: iconType,
|
|
92
99
|
type: type,
|
|
93
100
|
textProps: _objectSpread(_objectSpread({}, textProps), {}, {
|
|
94
|
-
className: buttonTextClassNames
|
|
101
|
+
className: buttonTextClassNames,
|
|
102
|
+
css: [textStyles.euiFilterButton__text, showBadge && textStyles.hasNotification, textProps === null || textProps === void 0 ? void 0 : textProps.css]
|
|
103
|
+
}),
|
|
104
|
+
contentProps: _objectSpread(_objectSpread({}, contentProps), {}, {
|
|
105
|
+
css: [contentStyles.euiFilterButton__content, iconType && contentStyles.hasIcon, contentProps === null || contentProps === void 0 ? void 0 : contentProps.css]
|
|
95
106
|
})
|
|
96
107
|
}, rest), buttonContents);
|
|
97
108
|
};
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
2
|
+
/*
|
|
3
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
4
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
5
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
6
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
7
|
+
* Side Public License, v 1.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import { css } from '@emotion/react';
|
|
11
|
+
import { logicalCSS, mathWithUnits, euiTextShift, euiTextTruncate } from '../../global_styling';
|
|
12
|
+
import { euiFormVariables } from '../form/form.styles';
|
|
13
|
+
export var euiFilterButtonDisplay = function euiFilterButtonDisplay(_ref5) {
|
|
14
|
+
var euiTheme = _ref5.euiTheme;
|
|
15
|
+
return {
|
|
16
|
+
flex: '1 1 auto',
|
|
17
|
+
minInlineSize: mathWithUnits(euiTheme.size.base, function (x) {
|
|
18
|
+
return x * 3;
|
|
19
|
+
})
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
var _ref4 = process.env.NODE_ENV === "production" ? {
|
|
23
|
+
name: "jkp921-noGrow",
|
|
24
|
+
styles: "flex-grow:0;label:noGrow;"
|
|
25
|
+
} : {
|
|
26
|
+
name: "jkp921-noGrow",
|
|
27
|
+
styles: "flex-grow:0;label:noGrow;",
|
|
28
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
29
|
+
};
|
|
30
|
+
export var euiFilterButtonStyles = function euiFilterButtonStyles(euiThemeContext) {
|
|
31
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
32
|
+
var _euiFormVariables = euiFormVariables(euiThemeContext),
|
|
33
|
+
controlHeight = _euiFormVariables.controlHeight,
|
|
34
|
+
borderColor = _euiFormVariables.borderColor;
|
|
35
|
+
|
|
36
|
+
// Box shadow simulates borders without affecting width
|
|
37
|
+
var leftBoxShadow = "-".concat(euiTheme.border.width.thin, " 0 0 0 ").concat(borderColor);
|
|
38
|
+
// Bottom borders are needed for responsive flex-wrap behavior
|
|
39
|
+
var bottomBoxShadow = "0 ".concat(euiTheme.border.width.thin, " 0 0 ").concat(borderColor);
|
|
40
|
+
return {
|
|
41
|
+
euiFilterButton: /*#__PURE__*/css(euiFilterButtonDisplay(euiThemeContext), " ", logicalCSS('height', controlHeight), " border-radius:0;box-shadow:", leftBoxShadow, ",", bottomBoxShadow, ";&:hover:not(:disabled),&:focus:not(:disabled){text-decoration:none;.euiFilterButton__textShift{text-decoration:underline;}}&:focus-visible{outline-offset:-", euiTheme.focus.width, ";};label:euiFilterButton;"),
|
|
42
|
+
withNext: /*#__PURE__*/css("&+.euiFilterButton{", logicalCSS('margin-left', "-".concat(euiTheme.size.xs)), "box-shadow:", bottomBoxShadow, ";};label:withNext;"),
|
|
43
|
+
noGrow: _ref4,
|
|
44
|
+
hasNotification: /*#__PURE__*/css(logicalCSS('min-width', mathWithUnits(euiTheme.size.base, function (x) {
|
|
45
|
+
return x * 6;
|
|
46
|
+
})), ";;label:hasNotification;"),
|
|
47
|
+
hasActiveFilters: /*#__PURE__*/css("font-weight:", euiTheme.font.weight.bold, ";;label:hasActiveFilters;")
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
var _ref = process.env.NODE_ENV === "production" ? {
|
|
51
|
+
name: "1w3amc7-disabled",
|
|
52
|
+
styles: "opacity:0.5;label:disabled;"
|
|
53
|
+
} : {
|
|
54
|
+
name: "1w3amc7-disabled",
|
|
55
|
+
styles: "opacity:0.5;label:disabled;",
|
|
56
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
57
|
+
};
|
|
58
|
+
var _ref2 = process.env.NODE_ENV === "production" ? {
|
|
59
|
+
name: "nd1u8j-euiFilterButton__notification",
|
|
60
|
+
styles: "cursor:inherit;label:euiFilterButton__notification;"
|
|
61
|
+
} : {
|
|
62
|
+
name: "nd1u8j-euiFilterButton__notification",
|
|
63
|
+
styles: "cursor:inherit;label:euiFilterButton__notification;",
|
|
64
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
65
|
+
};
|
|
66
|
+
var _ref3 = process.env.NODE_ENV === "production" ? {
|
|
67
|
+
name: "f0jxzj-hasIcon",
|
|
68
|
+
styles: "justify-content:space-between;label:hasIcon;"
|
|
69
|
+
} : {
|
|
70
|
+
name: "f0jxzj-hasIcon",
|
|
71
|
+
styles: "justify-content:space-between;label:hasIcon;",
|
|
72
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
73
|
+
};
|
|
74
|
+
export var euiFilterButtonChildStyles = function euiFilterButtonChildStyles(_ref6) {
|
|
75
|
+
var euiTheme = _ref6.euiTheme;
|
|
76
|
+
return {
|
|
77
|
+
content: {
|
|
78
|
+
euiFilterButton__content: /*#__PURE__*/css(";label:euiFilterButton__content;"),
|
|
79
|
+
hasIcon: _ref3
|
|
80
|
+
},
|
|
81
|
+
text: {
|
|
82
|
+
euiFilterButton__text: /*#__PURE__*/css(";label:euiFilterButton__text;"),
|
|
83
|
+
hasNotification: /*#__PURE__*/css("display:flex;align-items:center;gap:", euiTheme.size.s, ";;label:hasNotification;"),
|
|
84
|
+
euiFilterButton__textShift: /*#__PURE__*/css(euiTextShift('bold', 'data-text', euiTheme), " ", euiTextTruncate(), " ", logicalCSS('min-width', mathWithUnits(euiTheme.size.base, function (x) {
|
|
85
|
+
return x * 3;
|
|
86
|
+
})), ";;label:euiFilterButton__textShift;")
|
|
87
|
+
},
|
|
88
|
+
notification: {
|
|
89
|
+
euiFilterButton__notification: _ref2,
|
|
90
|
+
disabled: _ref
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
};
|
|
@@ -11,6 +11,8 @@ var _excluded = ["children", "className", "fullWidth", "compressed"];
|
|
|
11
11
|
|
|
12
12
|
import React from 'react';
|
|
13
13
|
import classNames from 'classnames';
|
|
14
|
+
import { useEuiTheme } from '../../services';
|
|
15
|
+
import { euiFilterGroupStyles } from './filter_group.styles';
|
|
14
16
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
15
17
|
export var EuiFilterGroup = function EuiFilterGroup(_ref) {
|
|
16
18
|
var children = _ref.children,
|
|
@@ -19,11 +21,12 @@ export var EuiFilterGroup = function EuiFilterGroup(_ref) {
|
|
|
19
21
|
fullWidth = _ref$fullWidth === void 0 ? false : _ref$fullWidth,
|
|
20
22
|
compressed = _ref.compressed,
|
|
21
23
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
22
|
-
var
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
var euiTheme = useEuiTheme();
|
|
25
|
+
var styles = euiFilterGroupStyles(euiTheme);
|
|
26
|
+
var cssStyles = [styles.euiFilterGroup, fullWidth && styles.fullWidth, compressed ? styles.compressed : styles.uncompressed];
|
|
27
|
+
var classes = classNames('euiFilterGroup', className);
|
|
26
28
|
return ___EmotionJSX("div", _extends({
|
|
27
|
-
className: classes
|
|
29
|
+
className: classes,
|
|
30
|
+
css: cssStyles
|
|
28
31
|
}, rest), children);
|
|
29
32
|
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
2
|
+
/*
|
|
3
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
4
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
5
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
6
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
7
|
+
* Side Public License, v 1.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import { css } from '@emotion/react';
|
|
11
|
+
import { logicalCSS, mathWithUnits, euiMaxBreakpoint } from '../../global_styling';
|
|
12
|
+
import { euiFormVariables } from '../form/form.styles';
|
|
13
|
+
import { euiFilterButtonDisplay } from './filter_button.styles';
|
|
14
|
+
var _ref = process.env.NODE_ENV === "production" ? {
|
|
15
|
+
name: "ejknuq-fullWidth",
|
|
16
|
+
styles: "display:flex;label:fullWidth;"
|
|
17
|
+
} : {
|
|
18
|
+
name: "ejknuq-fullWidth",
|
|
19
|
+
styles: "display:flex;label:fullWidth;",
|
|
20
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
21
|
+
};
|
|
22
|
+
export var euiFilterGroupStyles = function euiFilterGroupStyles(euiThemeContext) {
|
|
23
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
24
|
+
var _euiFormVariables = euiFormVariables(euiThemeContext),
|
|
25
|
+
backgroundColor = _euiFormVariables.backgroundColor,
|
|
26
|
+
borderColor = _euiFormVariables.borderColor,
|
|
27
|
+
controlBorderRadius = _euiFormVariables.controlBorderRadius,
|
|
28
|
+
controlCompressedBorderRadius = _euiFormVariables.controlCompressedBorderRadius,
|
|
29
|
+
controlCompressedHeight = _euiFormVariables.controlCompressedHeight;
|
|
30
|
+
return {
|
|
31
|
+
euiFilterGroup: /*#__PURE__*/css("display:inline-flex;", logicalCSS('max-width', '100%'), " overflow:hidden;background-color:", backgroundColor, ";box-shadow:inset 0 0 0 ", euiTheme.border.width.thin, " ", borderColor, ";>*:not(.euiFilterButton){", euiFilterButtonDisplay(euiThemeContext), ";}.euiPopover__anchor{display:block;.euiFilterButton{", logicalCSS('width', '100%'), ";}}", euiMaxBreakpoint(euiThemeContext, 's'), "{flex-wrap:wrap;}", euiMaxBreakpoint(euiThemeContext, 'xs'), "{display:flex;.euiFilterButton{flex-grow:1;}};label:euiFilterGroup;"),
|
|
32
|
+
fullWidth: _ref,
|
|
33
|
+
uncompressed: /*#__PURE__*/css("border-radius:", controlBorderRadius, ";", buttonChildrenBorderRadii(controlBorderRadius), ";;label:uncompressed;"),
|
|
34
|
+
compressed: /*#__PURE__*/css("border-radius:", controlCompressedBorderRadius, ";", buttonChildrenBorderRadii(controlCompressedBorderRadius), " .euiFilterButton{", logicalCSS('height', controlCompressedHeight), ";};label:compressed;"),
|
|
35
|
+
/**
|
|
36
|
+
* Not used in EuiFilterGroup directly, but used by EuiSearchBar and consumers
|
|
37
|
+
* A fixed width is required because of the shift in widths that can be caused
|
|
38
|
+
* by the loading animation that precedes the results.
|
|
39
|
+
*/
|
|
40
|
+
euiFilterGroup__popoverPanel: /*#__PURE__*/css(logicalCSS('width', mathWithUnits(euiTheme.size.base, function (x) {
|
|
41
|
+
return x * 18;
|
|
42
|
+
})), ";;label:euiFilterGroup__popoverPanel;")
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Small util for manually rounding the borders of the first and last EuiFilterButtons
|
|
48
|
+
* - this makes their focus rings appear nicely instead of being cutt off.
|
|
49
|
+
* 2nd selector accounts for EuiFilterButtons nested within popover/tooltip wrappers.
|
|
50
|
+
*
|
|
51
|
+
* NOTE: Do not use `logicalShorthandCSS()` here, as that will cause single buttons to not be rounded
|
|
52
|
+
*/
|
|
53
|
+
var buttonChildrenBorderRadii = function buttonChildrenBorderRadii(radiusSize) {
|
|
54
|
+
return "\n > :first-child,\n > :first-child .euiFilterButton {\n ".concat(logicalCSS('border-top-left-radius', radiusSize), "\n ").concat(logicalCSS('border-bottom-left-radius', radiusSize), "\n }\n\n > :last-child,\n > :last-child .euiFilterButton {\n ").concat(logicalCSS('border-top-right-radius', radiusSize), "\n ").concat(logicalCSS('border-bottom-right-radius', radiusSize), "\n }\n");
|
|
55
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["title", "titleId"];
|
|
4
|
+
/*
|
|
5
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
6
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
7
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
8
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
9
|
+
* Side Public License, v 1.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
// THIS IS A GENERATED FILE. DO NOT MODIFY MANUALLY. @see scripts/compile-icons.js
|
|
13
|
+
|
|
14
|
+
import * as React from 'react';
|
|
15
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
16
|
+
var EuiIconAt = function EuiIconAt(_ref) {
|
|
17
|
+
var title = _ref.title,
|
|
18
|
+
titleId = _ref.titleId,
|
|
19
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
20
|
+
return ___EmotionJSX("svg", _extends({
|
|
21
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
22
|
+
width: 16,
|
|
23
|
+
height: 16,
|
|
24
|
+
viewBox: "0 0 16 16",
|
|
25
|
+
"aria-labelledby": titleId
|
|
26
|
+
}, props), title ? ___EmotionJSX("title", {
|
|
27
|
+
id: titleId
|
|
28
|
+
}, title) : null, ___EmotionJSX("path", {
|
|
29
|
+
fillRule: "evenodd",
|
|
30
|
+
d: "M3 8a5 5 0 1 1 9.812 1.364.78.78 0 0 1-.341.476c-.16.1-.382.16-.659.16-.507 0-.668-.18-.73-.274a.53.53 0 0 1-.082-.23V5h-1v.764a3 3 0 1 0 .146 4.333c.028.057.06.117.1.177.267.407.761.726 1.566.726.412 0 .83-.088 1.189-.311.367-.23.64-.583.773-1.053a6 6 0 1 0-2.501 3.393l-.546-.837A5 5 0 0 1 3 8Zm7 0a2 2 0 1 0-4 0 2 2 0 0 0 4 0Z"
|
|
31
|
+
}));
|
|
32
|
+
};
|
|
33
|
+
export var icon = EuiIconAt;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["title", "titleId"];
|
|
4
|
+
/*
|
|
5
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
6
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
7
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
8
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
9
|
+
* Side Public License, v 1.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
// THIS IS A GENERATED FILE. DO NOT MODIFY MANUALLY. @see scripts/compile-icons.js
|
|
13
|
+
|
|
14
|
+
import * as React from 'react';
|
|
15
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
16
|
+
var EuiIconKey = function EuiIconKey(_ref) {
|
|
17
|
+
var title = _ref.title,
|
|
18
|
+
titleId = _ref.titleId,
|
|
19
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
20
|
+
return ___EmotionJSX("svg", _extends({
|
|
21
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
22
|
+
width: 16,
|
|
23
|
+
height: 16,
|
|
24
|
+
viewBox: "0 0 16 16",
|
|
25
|
+
"aria-labelledby": titleId
|
|
26
|
+
}, props), title ? ___EmotionJSX("title", {
|
|
27
|
+
id: titleId
|
|
28
|
+
}, title) : null, ___EmotionJSX("path", {
|
|
29
|
+
fillRule: "evenodd",
|
|
30
|
+
d: "M14 5a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm-1 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"
|
|
31
|
+
}), ___EmotionJSX("path", {
|
|
32
|
+
d: "M6 6a5 5 0 1 1 3.086 4.62l-1.232 1.234A.5.5 0 0 1 7.5 12H6v1.5a.5.5 0 0 1-.5.5H4v1.5a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3a.5.5 0 0 1 .175-.38l5.932-5.085A5.019 5.019 0 0 1 6 6Zm5-4a4 4 0 0 0-3.853 5.08.5.5 0 0 1-.156.515L1 12.73V15h2v-1.5a.5.5 0 0 1 .5-.5H5v-1.5a.5.5 0 0 1 .5-.5h1.793l.877-.877a5.033 5.033 0 0 1-.503-.396.5.5 0 1 1 .666-.745A3.983 3.983 0 0 0 11 10h.005A4 4 0 0 0 11 2Z"
|
|
33
|
+
}));
|
|
34
|
+
};
|
|
35
|
+
export var icon = EuiIconKey;
|
|
@@ -26,6 +26,7 @@ export var typeToPathMap = {
|
|
|
26
26
|
arrowEnd: 'arrowEnd',
|
|
27
27
|
article: 'article',
|
|
28
28
|
asterisk: 'asterisk',
|
|
29
|
+
at: 'at',
|
|
29
30
|
auditbeatApp: 'app_auditbeat',
|
|
30
31
|
beaker: 'beaker',
|
|
31
32
|
bell: 'bell',
|
|
@@ -186,6 +187,7 @@ export var typeToPathMap = {
|
|
|
186
187
|
inspect: 'inspect',
|
|
187
188
|
invert: 'invert',
|
|
188
189
|
ip: 'ip',
|
|
190
|
+
key: 'key',
|
|
189
191
|
keyboard: 'keyboard',
|
|
190
192
|
kqlField: 'kql_field',
|
|
191
193
|
kqlFunction: 'kql_function',
|
|
@@ -15,8 +15,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
15
15
|
import React from 'react';
|
|
16
16
|
import classNames from 'classnames';
|
|
17
17
|
import { EuiListGroupItem } from './list_group_item';
|
|
18
|
-
import { useEuiTheme } from '../../services';
|
|
19
|
-
import { cloneElementWithCss } from '../../services/theme/clone_element';
|
|
18
|
+
import { useEuiTheme, cloneElementWithCss } from '../../services';
|
|
20
19
|
import { logicalStyle } from '../../global_styling';
|
|
21
20
|
import { euiListGroupStyles } from './list_group.styles';
|
|
22
21
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
@@ -17,8 +17,7 @@ import { EuiIcon } from '../icon';
|
|
|
17
17
|
import { EuiToolTip } from '../tool_tip';
|
|
18
18
|
import { useInnerText } from '../inner_text';
|
|
19
19
|
import { EuiListGroupItemExtraAction } from './list_group_item_extra_action';
|
|
20
|
-
import { getSecureRelForTarget, useEuiTheme } from '../../services';
|
|
21
|
-
import { cloneElementWithCss } from '../../services/theme/clone_element';
|
|
20
|
+
import { getSecureRelForTarget, useEuiTheme, cloneElementWithCss } from '../../services';
|
|
22
21
|
import { validateHref } from '../../services/security/href_validator';
|
|
23
22
|
import { euiListGroupItemStyles, euiListGroupItemIconStyles, euiListGroupItemInnerStyles, euiListGroupItemTooltipStyles, euiListGroupItemLabelStyles } from './list_group_item.styles';
|
|
24
23
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
-
var _excluded = ["children", "className", "disableFocusTrap", "input", "fullWidth", "onPanelResize", "inputRef", "panelRef"];
|
|
4
|
+
var _excluded = ["children", "className", "disableFocusTrap", "focusTrapProps", "input", "fullWidth", "onPanelResize", "inputRef", "panelRef"];
|
|
5
5
|
/*
|
|
6
6
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
7
7
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -26,6 +26,7 @@ export var EuiInputPopover = function EuiInputPopover(_ref) {
|
|
|
26
26
|
className = _ref.className,
|
|
27
27
|
_ref$disableFocusTrap = _ref.disableFocusTrap,
|
|
28
28
|
disableFocusTrap = _ref$disableFocusTrap === void 0 ? false : _ref$disableFocusTrap,
|
|
29
|
+
focusTrapProps = _ref.focusTrapProps,
|
|
29
30
|
input = _ref.input,
|
|
30
31
|
_ref$fullWidth = _ref.fullWidth,
|
|
31
32
|
fullWidth = _ref$fullWidth === void 0 ? false : _ref$fullWidth,
|
|
@@ -97,10 +98,10 @@ export var EuiInputPopover = function EuiInputPopover(_ref) {
|
|
|
97
98
|
buttonRef: inputRef,
|
|
98
99
|
panelRef: panelRef,
|
|
99
100
|
className: classes
|
|
100
|
-
}, props), ___EmotionJSX(EuiFocusTrap, {
|
|
101
|
+
}, props), ___EmotionJSX(EuiFocusTrap, _extends({
|
|
101
102
|
clickOutsideDisables: true,
|
|
102
103
|
disabled: disableFocusTrap
|
|
103
|
-
}, ___EmotionJSX("div", {
|
|
104
|
+
}, focusTrapProps), ___EmotionJSX("div", {
|
|
104
105
|
onKeyDown: onKeyDown
|
|
105
106
|
}, children)));
|
|
106
107
|
};
|