@elastic/eui 106.2.0 → 106.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/accessibility/index.js +2 -1
- package/es/components/accessibility/live_announcer/index.js +9 -0
- package/es/components/accessibility/live_announcer/live_announcer.js +84 -0
- package/es/components/accessibility/screen_reader_live/screen_reader_live.js +7 -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.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 +14 -4
- package/es/components/card/card.js +2 -2
- package/es/components/card/card_select/card_select.js +1 -1
- package/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
- package/es/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +1 -1
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +1 -1
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +2 -2
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +2 -2
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +4 -4
- package/es/components/combo_box/combo_box.a11y.js +97 -81
- package/es/components/combo_box/combo_box.js +3 -2
- package/es/components/combo_box/combo_box_options_list/combo_box_options_list.js +50 -25
- package/es/components/combo_box/combo_box_options_list/combo_box_options_list.styles.js +6 -2
- package/es/components/comment_list/comment.js +2 -2
- package/es/components/comment_list/comment_event.js +1 -1
- package/es/components/comment_list/comment_list.js +2 -2
- package/es/components/comment_list/comment_timeline.js +1 -1
- package/es/components/context_menu/context_menu_item.js +1 -1
- package/es/components/datagrid/body/cell/data_grid_cell.js +12 -12
- package/es/components/datagrid/body/cell/focus_utils.js +10 -2
- package/es/components/datagrid/body/data_grid_body.js +7 -7
- package/es/components/datagrid/body/data_grid_body_custom.js +7 -7
- package/es/components/datagrid/body/data_grid_body_virtualized.js +7 -7
- package/es/components/datagrid/body/header/data_grid_header_cell.js +6 -6
- package/es/components/datagrid/controls/column_sorting.js +7 -7
- package/es/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/es/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
- package/es/components/datagrid/data_grid.styles.js +1 -1
- package/es/components/datagrid/utils/in_memory.js +6 -6
- package/es/components/date_picker/date_picker.js +2 -2
- package/es/components/date_picker/date_picker_range.js +1 -1
- package/es/components/empty_prompt/empty_prompt.js +1 -1
- package/es/components/facet/facet_button.js +1 -1
- package/es/components/filter_group/filter_select_item.js +16 -3
- package/es/components/form/field_number/field_number.js +3 -3
- package/es/components/form/field_password/field_password.styles.js +1 -0
- package/es/components/form/field_text/field_text.js +2 -2
- package/es/components/form/form.styles.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/form_control_layout/form_control_layout_icons.js +2 -2
- package/es/components/form/range/range.styles.js +2 -2
- package/es/components/form/text_area/text_area.js +2 -2
- package/es/components/header/header_links/header_link.js +1 -1
- package/es/components/header/header_links/header_links.js +1 -1
- package/es/components/header/header_logo/header_logo.js +1 -1
- package/es/components/header/header_section/header_section_item_button.js +1 -1
- package/es/components/icon/assets/thumbDown.js +37 -0
- package/es/components/icon/assets/thumbUp.js +37 -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 +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/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 +1 -1
- package/es/components/toast/toast.js +1 -1
- package/es/components/tool_tip/icon_tip.js +1 -1
- package/es/global_styling/mixins/_button.js +1 -1
- package/es/services/emotion/prefixer.js +116 -22
- package/eui.d.ts +175 -97
- package/i18ntokens.json +2012 -1994
- package/lib/components/accessibility/index.js +8 -1
- package/lib/components/accessibility/live_announcer/index.js +16 -0
- package/lib/components/accessibility/live_announcer/live_announcer.js +93 -0
- package/lib/components/accessibility/screen_reader_live/screen_reader_live.js +7 -0
- 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.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 +14 -4
- package/lib/components/card/card.js +2 -2
- package/lib/components/card/card_select/card_select.js +1 -1
- package/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
- package/lib/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +1 -1
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +1 -1
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +2 -2
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +2 -2
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +4 -4
- package/lib/components/combo_box/combo_box.a11y.js +97 -81
- package/lib/components/combo_box/combo_box.js +3 -2
- package/lib/components/combo_box/combo_box_options_list/combo_box_options_list.js +50 -25
- package/lib/components/combo_box/combo_box_options_list/combo_box_options_list.styles.js +5 -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 +12 -12
- package/lib/components/datagrid/body/cell/focus_utils.js +10 -2
- package/lib/components/datagrid/body/data_grid_body.js +7 -7
- package/lib/components/datagrid/body/data_grid_body_custom.js +7 -7
- package/lib/components/datagrid/body/data_grid_body_virtualized.js +7 -7
- package/lib/components/datagrid/body/header/data_grid_header_cell.js +6 -6
- package/lib/components/datagrid/controls/column_sorting.js +7 -7
- package/lib/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/lib/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
- package/lib/components/datagrid/data_grid.styles.js +1 -1
- package/lib/components/datagrid/utils/in_memory.js +6 -6
- package/lib/components/date_picker/date_picker.js +2 -2
- package/lib/components/date_picker/date_picker_range.js +1 -1
- package/lib/components/empty_prompt/empty_prompt.js +1 -1
- package/lib/components/facet/facet_button.js +1 -1
- package/lib/components/filter_group/filter_select_item.js +16 -3
- package/lib/components/form/field_number/field_number.js +3 -3
- package/lib/components/form/field_password/field_password.styles.js +1 -0
- package/lib/components/form/field_text/field_text.js +2 -2
- package/lib/components/form/form.styles.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/form_control_layout/form_control_layout_icons.js +2 -2
- package/lib/components/form/range/range.styles.js +2 -2
- package/lib/components/form/text_area/text_area.js +2 -2
- package/lib/components/header/header_links/header_link.js +1 -1
- package/lib/components/header/header_links/header_links.js +1 -1
- package/lib/components/header/header_logo/header_logo.js +1 -1
- package/lib/components/header/header_section/header_section_item_button.js +1 -1
- package/lib/components/icon/assets/thumbDown.js +44 -0
- package/lib/components/icon/assets/thumbUp.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/thumbDown.svg +4 -0
- package/lib/components/icon/svgs/thumbUp.svg +4 -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/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 +1 -1
- package/lib/components/toast/toast.js +1 -1
- package/lib/components/tool_tip/icon_tip.js +1 -1
- package/lib/global_styling/mixins/_button.js +1 -1
- package/lib/services/emotion/prefixer.js +116 -22
- package/optimize/es/components/accessibility/index.js +2 -1
- package/optimize/es/components/accessibility/live_announcer/index.js +9 -0
- package/optimize/es/components/accessibility/live_announcer/live_announcer.js +68 -0
- package/optimize/es/components/accessibility/screen_reader_live/screen_reader_live.js +1 -0
- package/optimize/es/components/call_out/call_out.js +5 -2
- package/optimize/es/components/combo_box/combo_box.a11y.js +97 -81
- package/optimize/es/components/combo_box/combo_box_options_list/combo_box_options_list.js +49 -24
- package/optimize/es/components/combo_box/combo_box_options_list/combo_box_options_list.styles.js +6 -2
- package/optimize/es/components/datagrid/body/cell/focus_utils.js +10 -2
- package/optimize/es/components/datagrid/data_grid.styles.js +1 -1
- package/optimize/es/components/filter_group/filter_select_item.js +15 -3
- package/optimize/es/components/form/field_number/field_number.js +1 -1
- package/optimize/es/components/form/field_password/field_password.styles.js +1 -0
- package/optimize/es/components/form/form.styles.js +2 -2
- package/optimize/es/components/form/form_control_layout/form_control_layout.styles.js +1 -1
- package/optimize/es/components/form/range/range.styles.js +2 -2
- package/optimize/es/components/icon/assets/thumbDown.js +36 -0
- package/optimize/es/components/icon/assets/thumbUp.js +36 -0
- package/optimize/es/components/icon/icon_map.js +2 -0
- package/optimize/es/global_styling/mixins/_button.js +1 -1
- package/optimize/es/services/emotion/prefixer.js +116 -22
- package/optimize/lib/components/accessibility/index.js +8 -1
- package/optimize/lib/components/accessibility/live_announcer/index.js +16 -0
- package/optimize/lib/components/accessibility/live_announcer/live_announcer.js +77 -0
- package/optimize/lib/components/accessibility/screen_reader_live/screen_reader_live.js +1 -0
- package/optimize/lib/components/call_out/call_out.js +5 -2
- package/optimize/lib/components/combo_box/combo_box.a11y.js +97 -81
- package/optimize/lib/components/combo_box/combo_box_options_list/combo_box_options_list.js +49 -24
- package/optimize/lib/components/combo_box/combo_box_options_list/combo_box_options_list.styles.js +5 -1
- package/optimize/lib/components/datagrid/body/cell/focus_utils.js +10 -2
- package/optimize/lib/components/datagrid/data_grid.styles.js +1 -1
- package/optimize/lib/components/filter_group/filter_select_item.js +15 -3
- package/optimize/lib/components/form/field_number/field_number.js +1 -1
- package/optimize/lib/components/form/field_password/field_password.styles.js +1 -0
- package/optimize/lib/components/form/form.styles.js +2 -2
- package/optimize/lib/components/form/form_control_layout/form_control_layout.styles.js +1 -1
- package/optimize/lib/components/form/range/range.styles.js +2 -2
- package/optimize/lib/components/icon/assets/thumbDown.js +44 -0
- package/optimize/lib/components/icon/assets/thumbUp.js +44 -0
- package/optimize/lib/components/icon/icon_map.js +2 -0
- package/optimize/lib/components/icon/svgs/thumbDown.svg +4 -0
- package/optimize/lib/components/icon/svgs/thumbUp.svg +4 -0
- package/optimize/lib/global_styling/mixins/_button.js +1 -1
- package/optimize/lib/services/emotion/prefixer.js +116 -22
- package/package.json +4 -4
- package/src/components/date_picker/react-datepicker/src/stylesheets/datepicker.scss +6 -7
- package/src/global_styling/mixins/_typography.scss +0 -1
- package/src/themes/amsterdam/global_styling/mixins/_typography.scss +0 -1
- package/test-env/components/accessibility/index.js +8 -1
- package/test-env/components/accessibility/live_announcer/index.js +16 -0
- package/test-env/components/accessibility/live_announcer/live_announcer.js +87 -0
- package/test-env/components/accessibility/screen_reader_live/screen_reader_live.js +7 -0
- 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.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 +14 -4
- package/test-env/components/card/card.js +2 -2
- package/test-env/components/card/card_select/card_select.js +1 -1
- package/test-env/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
- package/test-env/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +1 -1
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +1 -1
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +2 -2
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +2 -2
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +4 -4
- package/test-env/components/combo_box/combo_box.a11y.js +97 -81
- package/test-env/components/combo_box/combo_box.js +3 -2
- package/test-env/components/combo_box/combo_box_options_list/combo_box_options_list.js +50 -25
- package/test-env/components/combo_box/combo_box_options_list/combo_box_options_list.styles.js +5 -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 +12 -12
- package/test-env/components/datagrid/body/cell/focus_utils.js +10 -2
- package/test-env/components/datagrid/body/data_grid_body.js +7 -7
- package/test-env/components/datagrid/body/data_grid_body_custom.js +7 -7
- package/test-env/components/datagrid/body/data_grid_body_virtualized.js +7 -7
- package/test-env/components/datagrid/body/header/data_grid_header_cell.js +6 -6
- package/test-env/components/datagrid/controls/column_sorting.js +7 -7
- package/test-env/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/test-env/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
- package/test-env/components/datagrid/data_grid.styles.js +1 -1
- package/test-env/components/datagrid/utils/in_memory.js +6 -6
- package/test-env/components/date_picker/date_picker.js +2 -2
- package/test-env/components/date_picker/date_picker_range.js +1 -1
- package/test-env/components/empty_prompt/empty_prompt.js +1 -1
- package/test-env/components/facet/facet_button.js +1 -1
- package/test-env/components/filter_group/filter_select_item.js +16 -3
- package/test-env/components/form/field_number/field_number.js +3 -3
- package/test-env/components/form/field_password/field_password.styles.js +1 -0
- package/test-env/components/form/field_text/field_text.js +2 -2
- package/test-env/components/form/form.styles.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/form_control_layout/form_control_layout_icons.js +2 -2
- package/test-env/components/form/range/range.styles.js +2 -2
- package/test-env/components/form/text_area/text_area.js +2 -2
- package/test-env/components/header/header_links/header_link.js +1 -1
- package/test-env/components/header/header_links/header_links.js +1 -1
- package/test-env/components/header/header_logo/header_logo.js +1 -1
- package/test-env/components/header/header_section/header_section_item_button.js +1 -1
- package/test-env/components/icon/assets/thumbDown.js +44 -0
- package/test-env/components/icon/assets/thumbUp.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 +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/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 +1 -1
- package/test-env/components/toast/toast.js +1 -1
- package/test-env/components/tool_tip/icon_tip.js +1 -1
- package/test-env/global_styling/mixins/_button.js +1 -1
- package/test-env/services/emotion/prefixer.js +116 -22
|
@@ -68,12 +68,7 @@ var EuiComboBoxOptionsList = exports.EuiComboBoxOptionsList = /*#__PURE__*/funct
|
|
|
68
68
|
(0, _defineProperty2.default)(_this, "ListInnerElement", function (_ref) {
|
|
69
69
|
var children = _ref.children,
|
|
70
70
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
71
|
-
return (0, _react2.jsx)("div", (0, _extends2.default)({}, rest,
|
|
72
|
-
"aria-label": _this.props.listboxAriaLabel,
|
|
73
|
-
id: _this.props.rootId('listbox'),
|
|
74
|
-
role: "listbox",
|
|
75
|
-
tabIndex: "0"
|
|
76
|
-
}), children);
|
|
71
|
+
return (0, _react2.jsx)("div", (0, _extends2.default)({}, rest, _this.getListInnerElementProps()), children);
|
|
77
72
|
});
|
|
78
73
|
(0, _defineProperty2.default)(_this, "ListRow", function (_ref2) {
|
|
79
74
|
var _option$key;
|
|
@@ -98,7 +93,8 @@ var EuiComboBoxOptionsList = exports.EuiComboBoxOptionsList = /*#__PURE__*/funct
|
|
|
98
93
|
searchValue = _this$props.searchValue,
|
|
99
94
|
rootId = _this$props.rootId,
|
|
100
95
|
matchingOptions = _this$props.matchingOptions,
|
|
101
|
-
setListOptionRefs = _this$props.setListOptionRefs
|
|
96
|
+
setListOptionRefs = _this$props.setListOptionRefs,
|
|
97
|
+
rowHeight = _this$props.rowHeight;
|
|
102
98
|
var optionIndex = matchingOptions.indexOf(option);
|
|
103
99
|
var hasTruncationProps = _this.props.truncationProps || _truncationProps;
|
|
104
100
|
var truncationProps = hasTruncationProps ? // Individual truncation settings should override component prop
|
|
@@ -126,6 +122,7 @@ var EuiComboBoxOptionsList = exports.EuiComboBoxOptionsList = /*#__PURE__*/funct
|
|
|
126
122
|
isFocused: optionIsFocused,
|
|
127
123
|
checked: checked,
|
|
128
124
|
showIcons: singleSelection ? true : false,
|
|
125
|
+
truncateContent: rowHeight !== 'auto',
|
|
129
126
|
id: rootId("_option-".concat(index)),
|
|
130
127
|
title: label,
|
|
131
128
|
"aria-setsize": matchingOptions.length,
|
|
@@ -140,8 +137,16 @@ var EuiComboBoxOptionsList = exports.EuiComboBoxOptionsList = /*#__PURE__*/funct
|
|
|
140
137
|
classNamePrefix: "euiComboBoxOption",
|
|
141
138
|
marginSize: "s"
|
|
142
139
|
}, (0, _react2.jsx)("span", {
|
|
143
|
-
className:
|
|
144
|
-
}, renderOption ? renderOption(option, searchValue, 'euiComboBoxOption__renderOption') : _this.renderTruncatedOption(label, truncationProps))), optionIsFocused && !optionIsDisabled ? hitEnterBadge : null));
|
|
140
|
+
className: (0, _classnames.default)('euiComboBoxOption__content', rowHeight !== 'auto' && 'eui-textTruncate')
|
|
141
|
+
}, renderOption ? renderOption(option, searchValue, 'euiComboBoxOption__renderOption') : rowHeight === 'auto' ? _this.renderVariableHeightOption(label) : _this.renderTruncatedOption(label, truncationProps))), optionIsFocused && !optionIsDisabled ? hitEnterBadge : null));
|
|
142
|
+
});
|
|
143
|
+
(0, _defineProperty2.default)(_this, "getListInnerElementProps", function () {
|
|
144
|
+
return {
|
|
145
|
+
'aria-label': _this.props.listboxAriaLabel,
|
|
146
|
+
id: _this.props.rootId('listbox'),
|
|
147
|
+
role: 'listbox',
|
|
148
|
+
tabIndex: 0
|
|
149
|
+
};
|
|
145
150
|
});
|
|
146
151
|
(0, _defineProperty2.default)(_this, "optionWidth", void 0);
|
|
147
152
|
(0, _defineProperty2.default)(_this, "setOptionWidth", function (width) {
|
|
@@ -174,22 +179,32 @@ var EuiComboBoxOptionsList = exports.EuiComboBoxOptionsList = /*#__PURE__*/funct
|
|
|
174
179
|
truncationPosition: searchPositionCenter,
|
|
175
180
|
text: text
|
|
176
181
|
}), function (text) {
|
|
177
|
-
return
|
|
178
|
-
search: searchValue,
|
|
179
|
-
strict: _this.props.isCaseSensitive
|
|
180
|
-
}, text) :
|
|
181
|
-
// If the available truncated text is shorter than the full search string,
|
|
182
|
-
// just highlight the entire truncated text
|
|
183
|
-
(0, _react2.jsx)(_mark.EuiMark, null, text));
|
|
182
|
+
return _this.renderHighlightedOptionText(text, searchValue);
|
|
184
183
|
});
|
|
185
184
|
});
|
|
185
|
+
(0, _defineProperty2.default)(_this, "renderVariableHeightOption", function (text) {
|
|
186
|
+
var searchValue = _this.props.searchValue.trim();
|
|
187
|
+
if (!searchValue) {
|
|
188
|
+
return text;
|
|
189
|
+
}
|
|
190
|
+
return _this.renderHighlightedOptionText(text, searchValue);
|
|
191
|
+
});
|
|
192
|
+
(0, _defineProperty2.default)(_this, "renderHighlightedOptionText", function (text, searchValue) {
|
|
193
|
+
return (0, _react2.jsx)(_react.default.Fragment, null, text.length >= searchValue.length ? (0, _react2.jsx)(_highlight.EuiHighlight, {
|
|
194
|
+
search: searchValue,
|
|
195
|
+
strict: _this.props.isCaseSensitive
|
|
196
|
+
}, text) :
|
|
197
|
+
// If the available truncated text is shorter than the full search string,
|
|
198
|
+
// just highlight the entire truncated text
|
|
199
|
+
(0, _react2.jsx)(_mark.EuiMark, null, text));
|
|
200
|
+
});
|
|
186
201
|
return _this;
|
|
187
202
|
}
|
|
188
203
|
(0, _inherits2.default)(EuiComboBoxOptionsList, _Component);
|
|
189
204
|
return (0, _createClass2.default)(EuiComboBoxOptionsList, [{
|
|
190
205
|
key: "componentDidUpdate",
|
|
191
206
|
value: function componentDidUpdate(prevProps) {
|
|
192
|
-
if (this.listRef && typeof this.props.activeOptionIndex !== 'undefined' && this.props.activeOptionIndex !== prevProps.activeOptionIndex) {
|
|
207
|
+
if (this.listRef && typeof this.props.activeOptionIndex !== 'undefined' && this.props.activeOptionIndex !== prevProps.activeOptionIndex && this.props.rowHeight !== 'auto') {
|
|
193
208
|
this.listRef.scrollToItem(this.props.activeOptionIndex, 'auto');
|
|
194
209
|
}
|
|
195
210
|
}
|
|
@@ -316,15 +331,17 @@ var EuiComboBoxOptionsList = exports.EuiComboBoxOptionsList = /*#__PURE__*/funct
|
|
|
316
331
|
default: "You've selected all available options"
|
|
317
332
|
}));
|
|
318
333
|
}
|
|
319
|
-
var
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
334
|
+
var boundedHeight = _combo_box_options_list.LIST_MAX_HEIGHT;
|
|
335
|
+
if (rowHeight !== 'auto') {
|
|
336
|
+
var numVisibleOptions = matchingOptions.length < 7 ? matchingOptions.length : 7;
|
|
337
|
+
var height = numVisibleOptions * (rowHeight + 1); // Add one for the border
|
|
338
|
+
// bounded by max-height of .euiComboBoxOptionsList
|
|
339
|
+
boundedHeight = height > _combo_box_options_list.LIST_MAX_HEIGHT ? _combo_box_options_list.LIST_MAX_HEIGHT : height;
|
|
340
|
+
}
|
|
324
341
|
return (0, _react2.jsx)(_services.RenderWithEuiStylesMemoizer, null, function (stylesMemoizer) {
|
|
325
342
|
var styles = stylesMemoizer(_combo_box_options_list.euiComboBoxOptionListStyles);
|
|
326
343
|
return (0, _react2.jsx)("div", (0, _extends2.default)({
|
|
327
|
-
css: styles.euiComboBoxOptionList,
|
|
344
|
+
css: [styles.euiComboBoxOptionList, rowHeight === 'auto' && styles.hasRowHeightAuto, ";label:render;"],
|
|
328
345
|
className: "euiComboBoxOptionsList",
|
|
329
346
|
"data-test-subj": (0, _classnames.default)('comboBoxOptionsList', dataTestSubj),
|
|
330
347
|
ref: listRef
|
|
@@ -332,7 +349,15 @@ var EuiComboBoxOptionsList = exports.EuiComboBoxOptionsList = /*#__PURE__*/funct
|
|
|
332
349
|
size: "xs",
|
|
333
350
|
css: styles.euiComboBoxOptionsList__empty,
|
|
334
351
|
className: "euiComboBoxOptionsList__empty"
|
|
335
|
-
}, emptyStateContent) : (0, _react2.jsx)(
|
|
352
|
+
}, emptyStateContent) : rowHeight === 'auto' ? (0, _react2.jsx)("div", _this2.getListInnerElementProps(), matchingOptions.map(function (_, index) {
|
|
353
|
+
return (0, _react2.jsx)(_this2.ListRow, {
|
|
354
|
+
data: matchingOptions,
|
|
355
|
+
index: index,
|
|
356
|
+
key: index // same as FixedSizeList's default
|
|
357
|
+
,
|
|
358
|
+
style: {}
|
|
359
|
+
});
|
|
360
|
+
})) : (0, _react2.jsx)(_reactWindow.FixedSizeList, {
|
|
336
361
|
css: styles.euiComboBoxOptionList__virtualization,
|
|
337
362
|
className: "euiComboBoxOptionsList__virtualization",
|
|
338
363
|
height: boundedHeight,
|
package/optimize/lib/components/combo_box/combo_box_options_list/combo_box_options_list.styles.js
CHANGED
|
@@ -19,9 +19,13 @@ var LIST_MAX_HEIGHT = exports.LIST_MAX_HEIGHT = 200;
|
|
|
19
19
|
var euiComboBoxOptionListStyles = exports.euiComboBoxOptionListStyles = function euiComboBoxOptionListStyles(euiThemeContext) {
|
|
20
20
|
var euiTheme = euiThemeContext.euiTheme;
|
|
21
21
|
return {
|
|
22
|
-
euiComboBoxOptionList: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('max-height', "".concat(LIST_MAX_HEIGHT, "px")), " overflow:hidden;.euiTextTruncate{pointer-events:none;}.euiComboBoxOption__contentWrapper{display:flex;align-items:center;}.euiComboBoxOption__content{flex:1;text-align:start;
|
|
22
|
+
euiComboBoxOptionList: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('max-height', "".concat(LIST_MAX_HEIGHT, "px")), " overflow:hidden;.euiTextTruncate{pointer-events:none;}.euiComboBoxOption__contentWrapper{display:flex;align-items:center;}.euiComboBoxOption__content{flex:1;text-align:start;}.euiComboBoxOption__emptyStateText{flex:1;text-align:start;", (0, _global_styling.logicalCSS)('margin-bottom', 0), ";}.euiComboBoxOption__enterBadge{", (0, _global_styling.logicalCSS)('margin-left', euiTheme.size.xs), ";}.euiComboBoxTitle{display:flex;", (0, _global_styling.logicalCSS)('padding-horizontal', euiTheme.size.s), (0, _global_styling.logicalCSS)('padding-top', (0, _global_styling.mathWithUnits)(euiTheme.size.s, function (x) {
|
|
23
23
|
return x + 1;
|
|
24
24
|
})), " ", (0, _global_styling.logicalCSS)('padding-bottom', euiTheme.size.xs), " ", (0, _title.euiTitle)(euiThemeContext, 'xxxs'), ";};label:euiComboBoxOptionList;"),
|
|
25
|
+
/* eslint-disable local/css-logical-properties */
|
|
26
|
+
hasRowHeightAuto: /*#__PURE__*/(0, _react.css)("overflow-y:auto;.euiComboBoxOption__contentWrapper{align-items:flex-start;}", (0, _global_styling.euiScrollBarStyles)(euiThemeContext), ";;label:hasRowHeightAuto;"),
|
|
27
|
+
/* eslint-enable local/css-logical-properties */
|
|
28
|
+
|
|
25
29
|
euiComboBoxOptionList__virtualization: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiScrollBarStyles)(euiThemeContext), ";;label:euiComboBoxOptionList__virtualization;"),
|
|
26
30
|
euiComboBoxOptionsList__empty: /*#__PURE__*/(0, _react.css)("padding:", euiTheme.size.s, ";text-align:center;", (0, _global_styling.euiTextBreakWord)(), ";;label:euiComboBoxOptionsList__empty;")
|
|
27
31
|
};
|
|
@@ -15,6 +15,7 @@ var _services = require("../../../../services");
|
|
|
15
15
|
var _utils = require("../../../../utils");
|
|
16
16
|
var _focus_trap = require("../../../focus_trap");
|
|
17
17
|
var _i18n = require("../../../i18n");
|
|
18
|
+
var _accessibility = require("../../../accessibility");
|
|
18
19
|
var _react2 = require("@emotion/react");
|
|
19
20
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
20
21
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -186,6 +187,13 @@ var FocusTrappedChildren = exports.FocusTrappedChildren = function FocusTrappedC
|
|
|
186
187
|
, {
|
|
187
188
|
token: "euiDataGridCell.focusTrapEnterPrompt",
|
|
188
189
|
default: "Press the Enter key to interact with this cell's contents."
|
|
190
|
+
})), (0, _react2.jsx)(_accessibility.EuiLiveAnnouncer, {
|
|
191
|
+
clearAfterMs: 1000
|
|
192
|
+
}, isCellEntered && (0, _react2.jsx)(_i18n.EuiI18n
|
|
193
|
+
// eslint-disable-next-line local/i18n
|
|
194
|
+
, {
|
|
195
|
+
token: "euiDataGridCell.focusTrapEnteredExitPrompt",
|
|
196
|
+
default: "Press the Escape key to exit the cell."
|
|
189
197
|
})));
|
|
190
198
|
};
|
|
191
199
|
|
|
@@ -197,14 +205,14 @@ var disableInteractives = function disableInteractives(cell) {
|
|
|
197
205
|
var interactives = (0, _tabbable.tabbable)(cell);
|
|
198
206
|
interactives.forEach(function (element) {
|
|
199
207
|
element.setAttribute('data-euigrid-tab-managed', 'true');
|
|
200
|
-
element.setAttribute('
|
|
208
|
+
element.setAttribute('tabindex', '-1');
|
|
201
209
|
});
|
|
202
210
|
return interactives;
|
|
203
211
|
};
|
|
204
212
|
var enableAndFocusInteractives = function enableAndFocusInteractives(cell) {
|
|
205
213
|
var interactives = cell.querySelectorAll('[data-euigrid-tab-managed]');
|
|
206
214
|
interactives.forEach(function (element, i) {
|
|
207
|
-
element.setAttribute('
|
|
215
|
+
element.setAttribute('tabindex', '0');
|
|
208
216
|
// focus the first element only if we're on the cell and not inside of it
|
|
209
217
|
if (i === 0 && !cell.contains(document.activeElement)) {
|
|
210
218
|
element.focus();
|
|
@@ -58,7 +58,7 @@ var euiDataGridStyles = exports.euiDataGridStyles = function euiDataGridStyles(e
|
|
|
58
58
|
};
|
|
59
59
|
var border = "".concat(euiTheme.border.width.thin, " solid ").concat(borderColors.default);
|
|
60
60
|
return {
|
|
61
|
-
euiDataGrid: /*#__PURE__*/(0, _react.css)("display:flex;flex-direction:column;align-items:stretch;", (0, _global_styling.logicalCSS)('height', '100%'), " overflow:hidden;*:where(& .euiDataGridRow){background-color:", euiTheme.components.dataGridRowBackground, ";}*:where(&.euiDataGrid--rowHoverHighlight .euiDataGridRow:hover){background-color:", euiTheme.components.dataGridRowBackgroundHover, ";}*:where(
|
|
61
|
+
euiDataGrid: /*#__PURE__*/(0, _react.css)("display:flex;flex-direction:column;align-items:stretch;", (0, _global_styling.logicalCSS)('height', '100%'), " overflow:hidden;*:where(& .euiDataGridRow){background-color:", euiTheme.components.dataGridRowBackground, ";}*:where(&.euiDataGrid--rowHoverHighlight .euiDataGridRow:hover){background-color:", euiTheme.components.dataGridRowBackgroundHover, ";}*:where(&:not(.euiDataGrid--stripes) .euiDataGridRow--selected){background-color:", euiTheme.components.dataGridRowBackgroundSelect, ";}*:where(& .euiDataGridRow--marked){background-color:", euiTheme.components.dataGridRowBackgroundMarked, ";.euiDataGridRowCell.euiDataGridRowCell{", outlineSelectors.marked, "{", (0, _data_grid_cell.euiDataGridCellOutlineStyles)(euiThemeContext).markedStyles, ";}}}*:where(&:not(.euiDataGrid--stripes) .euiDataGridRow--marked){&:hover{background-color:", euiTheme.components.dataGridRowBackgroundMarkedHover, ";}}*:where(\n &.euiDataGrid--rowHoverHighlight .euiDataGridRow--selected:hover\n ){background-color:", euiTheme.components.dataGridRowBackgroundSelectHover, ";}*:where(&.euiDataGrid--stripes .euiDataGridRow){background-color:", euiTheme.components.dataGridRowStripesBackground, ";}*:where(&.euiDataGrid--stripes .euiDataGridRow--striped){background-color:", euiTheme.components.dataGridRowStripesBackgroundStriped, ";}*:where(\n &.euiDataGrid--stripes.euiDataGrid--rowHoverHighlight\n .euiDataGridRow:hover\n ){background-color:", euiTheme.components.dataGridRowStripesBackgroundHover, ";}*:where(\n &.euiDataGrid--stripes.euiDataGrid--rowHoverHighlight\n .euiDataGridRow--striped:hover\n ){background-color:", euiTheme.components.dataGridRowStripesBackgroundStripedHover, ";}*:where(&.euiDataGrid--stripes .euiDataGridRow--selected){background-color:", euiTheme.components.dataGridRowStripesBackgroundSelect, ";}*:where(&.euiDataGrid--stripes .euiDataGridRow--marked){background-color:", euiTheme.components.dataGridRowBackgroundMarked, ";}*:where(\n &.euiDataGrid--stripes.euiDataGrid--rowHoverHighlight\n .euiDataGridRow--selected:hover\n ){background-color:", euiTheme.components.dataGridRowStripesBackgroundSelectHover, ";}*:where(&.euiDataGrid--rowHoverHighlight .euiDataGridRow)::before{content:'';position:absolute;z-index:-1;pointer-events:none;inset:0;background-color:", euiTheme.components.dataGridRowBackground, ";};label:euiDataGrid;"),
|
|
62
62
|
cellPadding: {
|
|
63
63
|
cellPadding: function cellPadding(size) {
|
|
64
64
|
return /*#__PURE__*/(0, _react.css)(".euiDataGridHeaderCell,.euiDataGridRowCell__content{padding:", _cellPadding[size], ";}.euiDataGridRowCell__content--lineCountHeight,.euiDataGridRowCell__content--autoBelowLineCountHeight{", (0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
|
|
@@ -22,7 +22,7 @@ var _tool_tip = require("../tool_tip");
|
|
|
22
22
|
var _icon = require("../icon");
|
|
23
23
|
var _filter_select_item = require("./filter_select_item.styles");
|
|
24
24
|
var _react2 = require("@emotion/react");
|
|
25
|
-
var _excluded = ["theme", "children", "className", "disabled", "checked", "isFocused", "showIcons", "toolTipContent", "toolTipProps", "style", "forwardRef"];
|
|
25
|
+
var _excluded = ["theme", "children", "className", "disabled", "checked", "isFocused", "showIcons", "toolTipContent", "toolTipProps", "style", "truncateContent", "forwardRef"];
|
|
26
26
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
27
27
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
28
28
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -95,6 +95,16 @@ var EuiFilterSelectItemClass = exports.EuiFilterSelectItemClass = /*#__PURE__*/f
|
|
|
95
95
|
}
|
|
96
96
|
(0, _inherits2.default)(EuiFilterSelectItemClass, _Component);
|
|
97
97
|
return (0, _createClass2.default)(EuiFilterSelectItemClass, [{
|
|
98
|
+
key: "componentDidUpdate",
|
|
99
|
+
value: function componentDidUpdate(prevProps) {
|
|
100
|
+
if (this.props.isFocused && !prevProps.isFocused) {
|
|
101
|
+
var _this$buttonRef, _this$buttonRef$scrol;
|
|
102
|
+
(_this$buttonRef = this.buttonRef) === null || _this$buttonRef === void 0 || (_this$buttonRef$scrol = _this$buttonRef.scrollIntoView) === null || _this$buttonRef$scrol === void 0 || _this$buttonRef$scrol.call(_this$buttonRef, {
|
|
103
|
+
block: 'nearest'
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}, {
|
|
98
108
|
key: "render",
|
|
99
109
|
value: function render() {
|
|
100
110
|
var _this$props2 = this.props,
|
|
@@ -108,6 +118,7 @@ var EuiFilterSelectItemClass = exports.EuiFilterSelectItemClass = /*#__PURE__*/f
|
|
|
108
118
|
toolTipContent = _this$props2.toolTipContent,
|
|
109
119
|
toolTipProps = _this$props2.toolTipProps,
|
|
110
120
|
style = _this$props2.style,
|
|
121
|
+
truncateContent = _this$props2.truncateContent,
|
|
111
122
|
forwardRef = _this$props2.forwardRef,
|
|
112
123
|
rest = (0, _objectWithoutProperties2.default)(_this$props2, _excluded);
|
|
113
124
|
var styles = (0, _filter_select_item.euiFilterSelectItemStyles)(theme);
|
|
@@ -156,7 +167,7 @@ var EuiFilterSelectItemClass = exports.EuiFilterSelectItemClass = /*#__PURE__*/f
|
|
|
156
167
|
component: "span",
|
|
157
168
|
responsive: false
|
|
158
169
|
}, iconNode, (0, _react2.jsx)(_flex.EuiFlexItem, {
|
|
159
|
-
className:
|
|
170
|
+
className: (0, _classnames.default)('euiFilterSelectItem__content', this.props.truncateContent && 'eui-textTruncate'),
|
|
160
171
|
component: "span"
|
|
161
172
|
}, children)));
|
|
162
173
|
return hasToolTip ? (0, _react2.jsx)(_tool_tip.EuiToolTip, (0, _extends2.default)({
|
|
@@ -174,6 +185,7 @@ var EuiFilterSelectItemClass = exports.EuiFilterSelectItemClass = /*#__PURE__*/f
|
|
|
174
185
|
* @deprecated - Use EuiSelectable instead
|
|
175
186
|
*/
|
|
176
187
|
(0, _defineProperty2.default)(EuiFilterSelectItemClass, "defaultProps", {
|
|
177
|
-
showIcons: true
|
|
188
|
+
showIcons: true,
|
|
189
|
+
truncateContent: true
|
|
178
190
|
});
|
|
179
191
|
var EuiFilterSelectItem = exports.EuiFilterSelectItem = (0, _services.withEuiTheme)(EuiFilterSelectItemClass);
|
|
@@ -76,7 +76,7 @@ var EuiFieldNumber = exports.EuiFieldNumber = function EuiFieldNumber(props) {
|
|
|
76
76
|
if (_inputRef.current) {
|
|
77
77
|
checkNativeValidity(_inputRef.current);
|
|
78
78
|
}
|
|
79
|
-
}, [value, min, max, step, checkNativeValidity]);
|
|
79
|
+
}, [isInvalid, value, min, max, step, checkNativeValidity]);
|
|
80
80
|
var classes = (0, _classnames.default)('euiFieldNumber', className, {
|
|
81
81
|
'euiFieldNumber-isLoading': isLoading
|
|
82
82
|
});
|
|
@@ -26,6 +26,7 @@ var euiFieldPasswordStyles = exports.euiFieldPasswordStyles = function euiFieldP
|
|
|
26
26
|
return {
|
|
27
27
|
euiFieldPassword: /*#__PURE__*/(0, _react.css)(formStyles.shared, " &:invalid{", formStyles.invalid, ";}&:focus{", formStyles.focus, ";}&:disabled{", formStyles.disabled, ";}&[readOnly]{", formStyles.readOnly, ";}&:autofill{", formStyles.autoFill, ";};label:euiFieldPassword;"),
|
|
28
28
|
// Only remove Edge's internal reveal button if we're providing a custom one
|
|
29
|
+
// This pseudo-element is still supported in Chromium-based Edge.
|
|
29
30
|
withToggle: _ref,
|
|
30
31
|
// Skip the css() on the default height to avoid generating a className
|
|
31
32
|
uncompressed: formStyles.uncompressed,
|
|
@@ -176,7 +176,7 @@ var euiFormControlInvalidStyles = exports.euiFormControlInvalidStyles = function
|
|
|
176
176
|
var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'formVariant');
|
|
177
177
|
var form = euiFormVariables(euiThemeContext);
|
|
178
178
|
var invalidColor = euiTheme.colors.danger;
|
|
179
|
-
return isRefreshVariant ? "\n --euiFormControlStateColor: ".concat(form.borderInvalid, ";\n --euiFormControlStateHoverColor: ").concat(form.borderInvalidHovered, ";\n --euiFormControlStateWidth: ").concat(highContrastMode === 'preferred' ? euiTheme.border.width.thick : euiTheme.border.width.thin, ";\n
|
|
179
|
+
return isRefreshVariant ? "\n --euiFormControlStateColor: ".concat(form.borderInvalid, ";\n --euiFormControlStateHoverColor: ").concat(form.borderInvalidHovered, ";\n --euiFormControlStateWidth: ").concat(highContrastMode === 'preferred' ? euiTheme.border.width.thick : euiTheme.border.width.thin, ";\n\n ").concat(euiFormControlHighlightBorderStyles, "\n ").concat(euiFormControlShowBackgroundLine(euiThemeContext, invalidColor), "\n ") : "\n --euiFormControlStateColor: ".concat(invalidColor, ";\n ").concat(euiFormControlShowBackgroundLine(euiThemeContext, invalidColor), "\n ");
|
|
180
180
|
};
|
|
181
181
|
var euiFormControlDisabledStyles = exports.euiFormControlDisabledStyles = function euiFormControlDisabledStyles(euiThemeContext) {
|
|
182
182
|
var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'formVariant');
|
|
@@ -245,7 +245,7 @@ var euiFormControlShowBackgroundLine = exports.euiFormControlShowBackgroundLine
|
|
|
245
245
|
}), ");\n background-position: ").concat(euiTheme.border.width.thin, ";\n background-image: url(\"").concat(refreshInlineSVG, "\");\n ") : "\n background-size: 100% ".concat(stateUnderlineHeight, ";\n background-image: url(\"").concat(inlineSVG, "\");\n ");
|
|
246
246
|
};
|
|
247
247
|
var euiPlaceholderPerBrowser = function euiPlaceholderPerBrowser(content) {
|
|
248
|
-
return "\n &::-webkit-input-placeholder { ".concat(content, " }\n &::-moz-placeholder { ").concat(content, " }\n &:-
|
|
248
|
+
return "\n &::-webkit-input-placeholder { ".concat(content, " }\n &::-moz-placeholder { ").concat(content, " }\n &:-moz-placeholder { ").concat(content, " }\n &::placeholder { ").concat(content, " }\n");
|
|
249
249
|
};
|
|
250
250
|
|
|
251
251
|
/**
|
|
@@ -77,7 +77,7 @@ var euiFormControlLayoutSideNodeStyles = exports.euiFormControlLayoutSideNodeSty
|
|
|
77
77
|
var appendStyles = "\n position: relative;\n ".concat((0, _global_styling.logicalCSS)('margin-left', "-".concat(euiTheme.border.width.thin)), "\n\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n pointer-events: none;\n border-inline-start: \n ").concat(euiTheme.border.width.thin, " solid ").concat(form.borderColor, ";\n }\n ");
|
|
78
78
|
var prependStyles = "\n position: relative;\n ".concat((0, _global_styling.logicalCSS)('margin-right', "-".concat(euiTheme.border.width.thin)), "\n\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n z-index: 1;\n pointer-events: none;\n border-inline-end: \n ").concat(euiTheme.border.width.thin, " solid ").concat(form.borderColor, ";\n }\n ");
|
|
79
79
|
return {
|
|
80
|
-
euiFormControlLayout__side: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', '100%'), " ", (0, _global_styling.euiTextTruncate)('50%'), " flex-shrink:0;display:flex;align-items:center;gap:", euiTheme.size.xs, ";background-color:", form.appendPrependBackground, ";", buttons, "{transform:none!important
|
|
80
|
+
euiFormControlLayout__side: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', '100%'), " ", (0, _global_styling.euiTextTruncate)('50%'), " flex-shrink:0;display:flex;align-items:center;gap:", euiTheme.size.xs, ";background-color:", form.appendPrependBackground, ";", buttons, "{transform:none!important;&:focus-visible{outline-offset:-", euiTheme.focus.width, ";}}", text, "{cursor:default;overflow:hidden;text-overflow:ellipsis;}&:not(:has(> ", buttons, ":first-child, > *:first-child > ", buttons, ")){", (0, _global_styling.logicalCSS)('padding-left', euiTheme.size.s), ";}&:not(:has(> ", buttons, ":last-child, > *:last-child > ", buttons, ")){", (0, _global_styling.logicalCSS)('padding-right', euiTheme.size.s), ";};label:euiFormControlLayout__side;"),
|
|
81
81
|
append: /*#__PURE__*/(0, _react.css)((0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
|
|
82
82
|
none: "\n ".concat(isRefreshVariant && appendStyles, "\n "),
|
|
83
83
|
preferred: (0, _global_styling.logicalCSS)('border-left', euiTheme.border.thin)
|
|
@@ -64,7 +64,7 @@ var euiRangeVariables = exports.euiRangeVariables = function euiRangeVariables(e
|
|
|
64
64
|
};
|
|
65
65
|
};
|
|
66
66
|
var euiRangeTrackPerBrowser = exports.euiRangeTrackPerBrowser = function euiRangeTrackPerBrowser(content) {
|
|
67
|
-
return "\n &::-webkit-slider-runnable-track { ".concat(content, "; }\n &::-moz-range-track { ").concat(content, "; }\n
|
|
67
|
+
return "\n &::-webkit-slider-runnable-track { ".concat(content, "; }\n &::-moz-range-track { ").concat(content, "; }\n ");
|
|
68
68
|
};
|
|
69
69
|
var euiRangeThumbBorder = exports.euiRangeThumbBorder = function euiRangeThumbBorder(euiThemeContext) {
|
|
70
70
|
var range = euiRangeVariables(euiThemeContext);
|
|
@@ -98,7 +98,7 @@ var euiRangeThumbStyle = exports.euiRangeThumbStyle = function euiRangeThumbStyl
|
|
|
98
98
|
});
|
|
99
99
|
};
|
|
100
100
|
var euiRangeThumbPerBrowser = exports.euiRangeThumbPerBrowser = function euiRangeThumbPerBrowser(content) {
|
|
101
|
-
return "\n &::-webkit-slider-thumb { ".concat(content, "; }\n &::-moz-range-thumb { ").concat(content, "; }\n
|
|
101
|
+
return "\n &::-webkit-slider-thumb { ".concat(content, "; }\n &::-moz-range-thumb { ").concat(content, "; }\n ");
|
|
102
102
|
};
|
|
103
103
|
var euiRangeThumbFocus = exports.euiRangeThumbFocus = function euiRangeThumbFocus(euiThemeContext) {
|
|
104
104
|
var range = euiRangeVariables(euiThemeContext);
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.icon = void 0;
|
|
9
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
|
+
var React = _interopRequireWildcard(require("react"));
|
|
12
|
+
var _react2 = require("@emotion/react");
|
|
13
|
+
var _excluded = ["title", "titleId"];
|
|
14
|
+
/*
|
|
15
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
16
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
17
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
18
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
19
|
+
* Side Public License, v 1.
|
|
20
|
+
*/
|
|
21
|
+
// THIS IS A GENERATED FILE. DO NOT MODIFY MANUALLY. @see scripts/compile-icons.js
|
|
22
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
23
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
24
|
+
var EuiIconThumbDown = function EuiIconThumbDown(_ref) {
|
|
25
|
+
var title = _ref.title,
|
|
26
|
+
titleId = _ref.titleId,
|
|
27
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
28
|
+
return (0, _react2.jsx)("svg", (0, _extends2.default)({
|
|
29
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
30
|
+
width: 16,
|
|
31
|
+
height: 16,
|
|
32
|
+
viewBox: "0 0 16 16",
|
|
33
|
+
"aria-labelledby": titleId
|
|
34
|
+
}, props), title ? (0, _react2.jsx)("title", {
|
|
35
|
+
id: titleId
|
|
36
|
+
}, title) : null, (0, _react2.jsx)("path", {
|
|
37
|
+
d: "M12 7h1v2h-1V7Z"
|
|
38
|
+
}), (0, _react2.jsx)("path", {
|
|
39
|
+
fillRule: "evenodd",
|
|
40
|
+
d: "M7.8 14.22a1.135 1.135 0 0 1-1.89.437 3.221 3.221 0 0 1-.655-3.519l.484-1.132H3.001a2 2 0 0 1-1.977-2.308L1.74 3.12a2.5 2.5 0 0 1 2.47-2.114h2.988c.995 0 1.972.23 2.859.666a.999.999 0 0 1 .941-.666h3a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1h-3a1 1 0 0 1-.943-.67A5.012 5.012 0 0 0 8.268 12.8L7.8 14.22Zm6.198-12.214h-3v8h3v-8ZM6.626 13.958c.07.073.193.044.225-.051l.467-1.42a6.012 6.012 0 0 1 2.68-3.309V2.78a5.472 5.472 0 0 0-2.8-.774H4.21a1.5 1.5 0 0 0-1.483 1.269l-.714 4.577A1 1 0 0 0 3 9.006h3.497a.5.5 0 0 1 .46.697l-.784 1.829a2.222 2.222 0 0 0 .452 2.426Z",
|
|
41
|
+
clipRule: "evenodd"
|
|
42
|
+
}));
|
|
43
|
+
};
|
|
44
|
+
var icon = exports.icon = EuiIconThumbDown;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.icon = void 0;
|
|
9
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
|
+
var React = _interopRequireWildcard(require("react"));
|
|
12
|
+
var _react2 = require("@emotion/react");
|
|
13
|
+
var _excluded = ["title", "titleId"];
|
|
14
|
+
/*
|
|
15
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
16
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
17
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
18
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
19
|
+
* Side Public License, v 1.
|
|
20
|
+
*/
|
|
21
|
+
// THIS IS A GENERATED FILE. DO NOT MODIFY MANUALLY. @see scripts/compile-icons.js
|
|
22
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
23
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
24
|
+
var EuiIconThumbUp = function EuiIconThumbUp(_ref) {
|
|
25
|
+
var title = _ref.title,
|
|
26
|
+
titleId = _ref.titleId,
|
|
27
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
28
|
+
return (0, _react2.jsx)("svg", (0, _extends2.default)({
|
|
29
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
30
|
+
width: 16,
|
|
31
|
+
height: 16,
|
|
32
|
+
viewBox: "0 0 16 16",
|
|
33
|
+
"aria-labelledby": titleId
|
|
34
|
+
}, props), title ? (0, _react2.jsx)("title", {
|
|
35
|
+
id: titleId
|
|
36
|
+
}, title) : null, (0, _react2.jsx)("path", {
|
|
37
|
+
d: "M4 13H3v-2h1v2Z"
|
|
38
|
+
}), (0, _react2.jsx)("path", {
|
|
39
|
+
fillRule: "evenodd",
|
|
40
|
+
d: "M8.197 1.787a1.135 1.135 0 0 1 1.89-.438 3.222 3.222 0 0 1 .656 3.519L10.26 6h2.738a2 2 0 0 1 1.977 2.308l-.716 4.578A2.5 2.5 0 0 1 11.788 15H8.803a6.457 6.457 0 0 1-2.86-.67A.999.999 0 0 1 5 15H2a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h3a1 1 0 0 1 .943.67A5.012 5.012 0 0 0 7.73 3.206l.467-1.42ZM2 14h3V6H2v8ZM9.372 2.048a.135.135 0 0 0-.225.051L8.68 3.52A6.012 6.012 0 0 1 6 6.827v6.392c.846.507 1.813.78 2.803.78h2.985a1.5 1.5 0 0 0 1.482-1.269l.715-4.577A1 1 0 0 0 12.997 7H9.5a.5.5 0 0 1-.46-.697l.784-1.829a2.222 2.222 0 0 0-.452-2.426Z",
|
|
41
|
+
clipRule: "evenodd"
|
|
42
|
+
}));
|
|
43
|
+
};
|
|
44
|
+
var icon = exports.icon = EuiIconThumbUp;
|
|
@@ -436,6 +436,8 @@ var typeToPathMap = exports.typeToPathMap = {
|
|
|
436
436
|
tag: 'tag',
|
|
437
437
|
tear: 'tear',
|
|
438
438
|
temperature: 'temperature',
|
|
439
|
+
thumbDown: 'thumbDown',
|
|
440
|
+
thumbUp: 'thumbUp',
|
|
439
441
|
timeline: 'timeline',
|
|
440
442
|
timelineWithArrow: 'timelineWithArrow',
|
|
441
443
|
timelionApp: 'app_timelion',
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M11.9999 7.00037L12.9999 7.00037V9.00037L11.9999 9.00037V7.00037Z" />
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M7.80071 14.2191C7.53408 15.0278 6.50475 15.266 5.91008 14.6566C5.00031 13.7241 4.74169 12.3355 5.25481 11.1381L5.73918 10.0062H3.0009C1.77338 10.0062 0.835103 8.91041 1.02434 7.69763L1.74016 3.12048C1.93031 1.90355 2.97818 1.00623 4.20989 1.00623L7.19817 1.00623C8.19291 1.00623 9.17042 1.23623 10.0566 1.67224C10.1941 1.28431 10.5629 1.00623 10.998 1.00623L13.998 1.00623C14.5503 1.00623 14.998 1.45394 14.998 2.00623L14.998 10.0062C14.9978 10.5584 14.5502 11.0062 13.998 11.0062H10.998C10.5615 11.0062 10.1911 10.7261 10.0546 10.3363C9.22335 10.9492 8.59491 11.8072 8.2675 12.8002L7.80071 14.2191ZM13.998 2.00623L10.998 2.00623L10.998 10.0062H13.998L13.998 2.00623ZM6.6259 13.9584C6.69661 14.0306 6.81865 14.0025 6.85051 13.9066L7.31829 12.4877C7.77871 11.0911 8.73405 9.91584 9.99797 9.1781L9.99797 2.77966C9.15214 2.27594 8.18583 2.00623 7.19817 2.00623L4.20989 2.00623C3.47087 2.00623 2.84155 2.54462 2.72747 3.27478L2.01262 7.85193C1.91807 8.45828 2.38717 9.00623 3.0009 9.00623H6.49797C6.66598 9.00623 6.82243 9.09062 6.91497 9.23083C7.00736 9.37098 7.02387 9.54817 6.95793 9.70251L6.17375 11.5316C5.81986 12.3574 5.9985 13.3153 6.6259 13.9584Z" />
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M4 13.0007H3V11.0007H4V13.0007Z" />
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M8.19727 1.78682C8.46389 0.978178 9.49322 0.739976 10.0879 1.34932C10.9977 2.28184 11.2563 3.6704 10.7432 4.86788L10.2588 5.99971H12.9971C14.2246 5.99971 15.1629 7.09552 14.9736 8.3083L14.2578 12.8855C14.0677 14.1024 13.0198 14.9997 11.7881 14.9997H8.80273C7.80683 14.9997 6.82863 14.7687 5.94238 14.3308C5.80568 14.7202 5.43616 14.9997 5 14.9997H2C1.44772 14.9997 1 14.552 1 13.9997V5.99971C1.00013 5.44754 1.4478 4.99971 2 4.99971H5C5.43644 4.99971 5.80686 5.2798 5.94336 5.66963C6.77462 5.05676 7.40306 4.19871 7.73047 3.20577L8.19727 1.78682ZM2 13.9997H5V5.99971H2V13.9997ZM9.37207 2.04756C9.30136 1.97537 9.17932 2.00344 9.14746 2.09932L8.67969 3.51827C8.21927 4.91487 7.26392 6.0901 6 6.82784V13.2204C6.8459 13.7275 7.81328 13.9997 8.80273 13.9997H11.7881C12.5271 13.9997 13.1564 13.4613 13.2705 12.7312L13.9854 8.15401C14.0799 7.54766 13.6108 6.99971 12.9971 6.99971H9.5C9.33199 6.99971 9.17554 6.91532 9.08301 6.7751C8.99062 6.63496 8.97411 6.45776 9.04004 6.30342L9.82422 4.47432C10.1781 3.64852 9.99947 2.69065 9.37207 2.04756Z" />
|
|
4
|
+
</svg>
|
|
@@ -191,7 +191,7 @@ var euiButtonSizeMap = exports.euiButtonSizeMap = function euiButtonSizeMap(euiT
|
|
|
191
191
|
minWidth: euiTheme.base * (isRefreshVariant ? 6 : 7),
|
|
192
192
|
height: euiTheme.size.l,
|
|
193
193
|
radius: euiTheme.border.radius.small,
|
|
194
|
-
fontScale:
|
|
194
|
+
fontScale: 'xs'
|
|
195
195
|
},
|
|
196
196
|
s: {
|
|
197
197
|
minWidth: euiTheme.base * (isRefreshVariant ? 6 : 7),
|