@elastic/eui 94.2.1 → 94.4.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_charts_theme.js +1519 -1519
- package/dist/eui_charts_theme.js.map +1 -1
- package/dist/eui_theme_dark.css +46 -499
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +46 -499
- package/dist/eui_theme_light.min.css +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/in_memory_table.js +1 -1
- 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 +1 -1
- 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 +6 -2
- 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_input/combo_box_input.js +19 -1
- package/es/components/combo_box/combo_box_input/combo_box_pill.js +16 -0
- package/es/components/combo_box/combo_box_options_list/combo_box_option.js +16 -0
- package/es/components/combo_box/combo_box_options_list/combo_box_options_list.js +26 -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/cell/data_grid_cell.js +12 -12
- package/es/components/datagrid/body/data_grid_body.js +7 -7
- package/es/components/datagrid/body/data_grid_body_custom.js +7 -7
- package/es/components/datagrid/body/data_grid_body_virtualized.js +7 -7
- package/es/components/datagrid/body/header/data_grid_header_cell.js +6 -6
- package/es/components/datagrid/controls/column_sorting.js +7 -7
- package/es/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/es/components/datagrid/controls/data_grid_toolbar.js +1 -1
- package/es/components/datagrid/controls/data_grid_toolbar_control.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/date_picker/super_date_picker/date_popover/absolute_tab.js +25 -11
- 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 +46 -4
- package/es/components/flex/flex_group.js +0 -2
- package/es/components/flex/flex_item.js +0 -2
- package/es/components/form/field_number/field_number.js +2 -2
- package/es/components/form/field_text/field_text.js +2 -2
- package/es/components/form/form.styles.js +26 -3
- package/es/components/form/form_control_layout/form_control_layout.js +2 -2
- package/es/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
- package/es/components/form/form_control_layout/form_control_layout_icons.js +2 -2
- package/es/components/form/text_area/text_area.js +2 -2
- package/es/components/header/header_links/header_link.js +1 -1
- package/es/components/header/header_links/header_links.js +1 -1
- package/es/components/header/header_logo/header_logo.js +1 -1
- package/es/components/header/header_section/header_section_item_button.js +1 -1
- package/es/components/icon/assets/clickLeft.js +38 -0
- package/es/components/icon/assets/clickRight.js +38 -0
- package/es/components/icon/assets/clockCounter.js +35 -0
- package/es/components/icon/assets/error.js +3 -1
- package/es/components/icon/assets/errorFilled.js +34 -0
- package/es/components/icon/assets/launch.js +5 -3
- package/es/components/icon/assets/tokenDimension.js +36 -0
- package/es/components/icon/assets/tokenMetricCounter.js +4 -1
- package/es/components/icon/assets/tokenMetricGauge.js +4 -1
- package/es/components/icon/assets/warningFilled.js +34 -0
- package/es/components/icon/icon.js +1 -1
- package/es/components/icon/icon_map.js +6 -0
- package/es/components/key_pad_menu/key_pad_menu_item.js +1 -1
- package/es/components/list_group/list_group.js +2 -2
- package/es/components/list_group/list_group_item.js +2 -2
- package/es/components/list_group/list_group_item_extra_action.js +1 -1
- package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
- package/es/components/loading/loading_logo.js +1 -1
- package/es/components/markdown_editor/markdown_editor.js +13 -9
- package/es/components/markdown_editor/markdown_editor.styles.js +29 -0
- package/es/components/markdown_editor/markdown_editor_drop_zone.js +23 -10
- package/es/components/markdown_editor/markdown_editor_drop_zone.styles.js +33 -0
- package/es/components/markdown_editor/markdown_editor_footer.js +12 -3
- package/es/components/markdown_editor/markdown_editor_footer.styles.js +26 -0
- package/es/components/markdown_editor/markdown_editor_text_area.js +6 -1
- package/es/components/markdown_editor/markdown_editor_text_area.styles.js +22 -0
- package/es/components/markdown_editor/markdown_editor_toolbar.js +11 -3
- package/es/components/markdown_editor/markdown_editor_toolbar.styles.js +21 -0
- package/es/components/markdown_editor/markdown_format.js +9 -6
- package/es/components/markdown_editor/markdown_format.styles.js +25 -10
- package/es/components/markdown_editor/plugins/markdown_checkbox/renderer.js +9 -3
- package/es/components/markdown_editor/plugins/markdown_tooltip/renderer.js +13 -2
- 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 +20 -14
- package/es/components/selectable/selectable.js +10 -2
- package/es/components/selectable/selectable_list/selectable_list.js +96 -43
- package/es/components/selectable/selectable_list/selectable_list_item.js +235 -205
- package/es/components/selectable/selectable_option.js +9 -1
- package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +11 -3
- package/es/components/text/text_color.js +4 -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/global_toast_list_item.js +5 -5
- package/es/components/toast/toast.js +1 -1
- package/es/components/token/token_map.js +4 -0
- package/es/components/tool_tip/icon_tip.js +1 -1
- package/eui.d.ts +435 -243
- package/i18ntokens.json +138 -120
- 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/in_memory_table.js +1 -1
- 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 +1 -1
- 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 +6 -2
- 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_input/combo_box_input.js +19 -1
- package/lib/components/combo_box/combo_box_input/combo_box_pill.js +16 -0
- package/lib/components/combo_box/combo_box_options_list/combo_box_option.js +16 -0
- package/lib/components/combo_box/combo_box_options_list/combo_box_options_list.js +26 -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/cell/data_grid_cell.js +12 -12
- package/lib/components/datagrid/body/data_grid_body.js +7 -7
- package/lib/components/datagrid/body/data_grid_body_custom.js +7 -7
- package/lib/components/datagrid/body/data_grid_body_virtualized.js +7 -7
- package/lib/components/datagrid/body/header/data_grid_header_cell.js +6 -6
- package/lib/components/datagrid/controls/column_sorting.js +7 -7
- package/lib/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/lib/components/datagrid/controls/data_grid_toolbar.js +2 -1
- package/lib/components/datagrid/controls/data_grid_toolbar_control.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/date_picker/super_date_picker/date_popover/absolute_tab.js +25 -11
- 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 +45 -3
- package/lib/components/flex/flex_group.js +0 -2
- package/lib/components/flex/flex_item.js +0 -2
- package/lib/components/form/field_number/field_number.js +2 -2
- package/lib/components/form/field_text/field_text.js +2 -2
- package/lib/components/form/form.styles.js +30 -4
- package/lib/components/form/form_control_layout/form_control_layout.js +2 -2
- package/lib/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
- package/lib/components/form/form_control_layout/form_control_layout_icons.js +2 -2
- package/lib/components/form/text_area/text_area.js +2 -2
- package/lib/components/header/header_links/header_link.js +1 -1
- package/lib/components/header/header_links/header_links.js +1 -1
- package/lib/components/header/header_logo/header_logo.js +1 -1
- package/lib/components/header/header_section/header_section_item_button.js +1 -1
- package/lib/components/icon/assets/clickLeft.js +46 -0
- package/lib/components/icon/assets/clickRight.js +46 -0
- package/lib/components/icon/assets/clockCounter.js +43 -0
- package/lib/components/icon/assets/error.js +3 -1
- package/lib/components/icon/assets/errorFilled.js +42 -0
- package/lib/components/icon/assets/launch.js +5 -3
- package/lib/components/icon/assets/tokenDimension.js +44 -0
- package/lib/components/icon/assets/tokenMetricCounter.js +4 -1
- package/lib/components/icon/assets/tokenMetricGauge.js +4 -1
- package/lib/components/icon/assets/warningFilled.js +42 -0
- package/lib/components/icon/icon.js +1 -1
- package/lib/components/icon/icon_map.js +6 -0
- package/lib/components/icon/svgs/clickLeft.svg +5 -0
- package/lib/components/icon/svgs/clickRight.svg +5 -0
- package/lib/components/icon/svgs/clockCounter.svg +4 -0
- package/lib/components/icon/svgs/error.svg +2 -1
- package/lib/components/icon/svgs/errorFilled.svg +3 -0
- package/lib/components/icon/svgs/launch.svg +5 -5
- package/lib/components/icon/svgs/tokens/tokenDimension.svg +4 -0
- package/lib/components/icon/svgs/tokens/tokenMetricCounter.svg +2 -1
- package/lib/components/icon/svgs/tokens/tokenMetricGauge.svg +2 -1
- package/lib/components/icon/svgs/warningFilled.svg +3 -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 +13 -9
- package/lib/components/markdown_editor/markdown_editor.styles.js +37 -0
- package/lib/components/markdown_editor/markdown_editor_drop_zone.js +21 -9
- package/lib/components/markdown_editor/markdown_editor_drop_zone.styles.js +38 -0
- package/lib/components/markdown_editor/markdown_editor_footer.js +11 -2
- package/lib/components/markdown_editor/markdown_editor_footer.styles.js +33 -0
- package/lib/components/markdown_editor/markdown_editor_text_area.js +6 -1
- package/lib/components/markdown_editor/markdown_editor_text_area.styles.js +29 -0
- package/lib/components/markdown_editor/markdown_editor_toolbar.js +11 -3
- package/lib/components/markdown_editor/markdown_editor_toolbar.styles.js +28 -0
- package/lib/components/markdown_editor/markdown_format.js +8 -5
- package/lib/components/markdown_editor/markdown_format.styles.js +25 -10
- package/lib/components/markdown_editor/plugins/markdown_checkbox/renderer.js +9 -4
- package/lib/components/markdown_editor/plugins/markdown_tooltip/renderer.js +19 -10
- package/lib/components/page/page_header/page_header_content.js +1 -1
- package/lib/components/pagination/pagination_button.js +1 -1
- package/lib/components/popover/input_popover.js +20 -14
- package/lib/components/selectable/selectable.js +10 -2
- package/lib/components/selectable/selectable_list/selectable_list.js +96 -43
- package/lib/components/selectable/selectable_list/selectable_list_item.js +242 -211
- package/lib/components/selectable/selectable_option.js +12 -1
- package/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +11 -3
- package/lib/components/text/text_color.js +6 -2
- package/lib/components/timeline/timeline_item_icon.js +1 -1
- package/lib/components/toast/global_toast_list.js +1 -1
- package/lib/components/toast/global_toast_list_item.js +5 -5
- package/lib/components/toast/toast.js +1 -1
- package/lib/components/token/token_map.js +4 -0
- package/lib/components/tool_tip/icon_tip.js +1 -1
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +5 -1
- package/optimize/es/components/combo_box/combo_box_input/combo_box_input.js +3 -1
- package/optimize/es/components/combo_box/combo_box_options_list/combo_box_options_list.js +2 -1
- package/optimize/es/components/datagrid/controls/data_grid_toolbar.js +1 -1
- package/optimize/es/components/date_picker/super_date_picker/date_popover/absolute_tab.js +25 -11
- package/optimize/es/components/filter_group/filter_select_item.js +44 -4
- package/optimize/es/components/flex/flex_group.js +0 -2
- package/optimize/es/components/flex/flex_item.js +0 -2
- package/optimize/es/components/form/form.styles.js +26 -3
- package/optimize/es/components/icon/assets/clickLeft.js +37 -0
- package/optimize/es/components/icon/assets/clickRight.js +37 -0
- package/optimize/es/components/icon/assets/clockCounter.js +34 -0
- package/optimize/es/components/icon/assets/error.js +3 -1
- package/optimize/es/components/icon/assets/errorFilled.js +33 -0
- package/optimize/es/components/icon/assets/launch.js +5 -3
- package/optimize/es/components/icon/assets/tokenDimension.js +35 -0
- package/optimize/es/components/icon/assets/tokenMetricCounter.js +4 -1
- package/optimize/es/components/icon/assets/tokenMetricGauge.js +4 -1
- package/optimize/es/components/icon/assets/warningFilled.js +33 -0
- package/optimize/es/components/icon/icon_map.js +6 -0
- package/optimize/es/components/markdown_editor/markdown_editor.js +12 -8
- package/optimize/es/components/markdown_editor/markdown_editor.styles.js +29 -0
- package/optimize/es/components/markdown_editor/markdown_editor_drop_zone.js +19 -9
- package/optimize/es/components/markdown_editor/markdown_editor_drop_zone.styles.js +33 -0
- package/optimize/es/components/markdown_editor/markdown_editor_footer.js +11 -2
- package/optimize/es/components/markdown_editor/markdown_editor_footer.styles.js +26 -0
- package/optimize/es/components/markdown_editor/markdown_editor_text_area.js +6 -1
- package/optimize/es/components/markdown_editor/markdown_editor_text_area.styles.js +22 -0
- package/optimize/es/components/markdown_editor/markdown_editor_toolbar.js +10 -2
- package/optimize/es/components/markdown_editor/markdown_editor_toolbar.styles.js +21 -0
- package/optimize/es/components/markdown_editor/markdown_format.js +9 -6
- package/optimize/es/components/markdown_editor/markdown_format.styles.js +25 -10
- package/optimize/es/components/markdown_editor/plugins/markdown_checkbox/renderer.js +9 -3
- package/optimize/es/components/markdown_editor/plugins/markdown_tooltip/renderer.js +13 -2
- package/optimize/es/components/popover/input_popover.js +20 -14
- package/optimize/es/components/selectable/selectable_list/selectable_list.js +81 -38
- package/optimize/es/components/selectable/selectable_list/selectable_list_item.js +217 -198
- package/optimize/es/components/selectable/selectable_option.js +9 -1
- package/optimize/es/components/text/text_color.js +4 -1
- package/optimize/es/components/token/token_map.js +4 -0
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +5 -1
- package/optimize/lib/components/combo_box/combo_box_input/combo_box_input.js +3 -1
- package/optimize/lib/components/combo_box/combo_box_options_list/combo_box_options_list.js +2 -1
- package/optimize/lib/components/datagrid/controls/data_grid_toolbar.js +2 -1
- package/optimize/lib/components/date_picker/super_date_picker/date_popover/absolute_tab.js +25 -11
- package/optimize/lib/components/filter_group/filter_select_item.js +43 -3
- package/optimize/lib/components/flex/flex_group.js +0 -2
- package/optimize/lib/components/flex/flex_item.js +0 -2
- package/optimize/lib/components/form/form.styles.js +30 -4
- package/optimize/lib/components/icon/assets/clickLeft.js +46 -0
- package/optimize/lib/components/icon/assets/clickRight.js +46 -0
- package/optimize/lib/components/icon/assets/clockCounter.js +43 -0
- package/optimize/lib/components/icon/assets/error.js +3 -1
- package/optimize/lib/components/icon/assets/errorFilled.js +42 -0
- package/optimize/lib/components/icon/assets/launch.js +5 -3
- package/optimize/lib/components/icon/assets/tokenDimension.js +44 -0
- package/optimize/lib/components/icon/assets/tokenMetricCounter.js +4 -1
- package/optimize/lib/components/icon/assets/tokenMetricGauge.js +4 -1
- package/optimize/lib/components/icon/assets/warningFilled.js +42 -0
- package/optimize/lib/components/icon/icon_map.js +6 -0
- package/optimize/lib/components/icon/svgs/clickLeft.svg +5 -0
- package/optimize/lib/components/icon/svgs/clickRight.svg +5 -0
- package/optimize/lib/components/icon/svgs/clockCounter.svg +4 -0
- package/optimize/lib/components/icon/svgs/error.svg +2 -1
- package/optimize/lib/components/icon/svgs/errorFilled.svg +3 -0
- package/optimize/lib/components/icon/svgs/launch.svg +5 -5
- package/optimize/lib/components/icon/svgs/tokens/tokenDimension.svg +4 -0
- package/optimize/lib/components/icon/svgs/tokens/tokenMetricCounter.svg +2 -1
- package/optimize/lib/components/icon/svgs/tokens/tokenMetricGauge.svg +2 -1
- package/optimize/lib/components/icon/svgs/warningFilled.svg +3 -0
- package/optimize/lib/components/markdown_editor/markdown_editor.js +12 -8
- package/optimize/lib/components/markdown_editor/markdown_editor.styles.js +37 -0
- package/optimize/lib/components/markdown_editor/markdown_editor_drop_zone.js +24 -16
- package/optimize/lib/components/markdown_editor/markdown_editor_drop_zone.styles.js +38 -0
- package/optimize/lib/components/markdown_editor/markdown_editor_footer.js +10 -1
- package/optimize/lib/components/markdown_editor/markdown_editor_footer.styles.js +33 -0
- package/optimize/lib/components/markdown_editor/markdown_editor_text_area.js +6 -1
- package/optimize/lib/components/markdown_editor/markdown_editor_text_area.styles.js +29 -0
- package/optimize/lib/components/markdown_editor/markdown_editor_toolbar.js +10 -2
- package/optimize/lib/components/markdown_editor/markdown_editor_toolbar.styles.js +28 -0
- package/optimize/lib/components/markdown_editor/markdown_format.js +8 -5
- package/optimize/lib/components/markdown_editor/markdown_format.styles.js +25 -10
- package/optimize/lib/components/markdown_editor/plugins/markdown_checkbox/renderer.js +9 -4
- package/optimize/lib/components/markdown_editor/plugins/markdown_tooltip/renderer.js +19 -10
- package/optimize/lib/components/popover/input_popover.js +20 -14
- package/optimize/lib/components/selectable/selectable_list/selectable_list.js +81 -38
- package/optimize/lib/components/selectable/selectable_list/selectable_list_item.js +224 -204
- package/optimize/lib/components/selectable/selectable_option.js +12 -1
- package/optimize/lib/components/text/text_color.js +6 -2
- package/optimize/lib/components/token/token_map.js +4 -0
- package/package.json +5 -12
- package/src/components/datagrid/body/header/_data_grid_header_row.scss +6 -1
- package/src/components/date_picker/react-datepicker/LICENSE +21 -0
- package/src/components/date_picker/react-datepicker/README.md +168 -0
- package/src/components/date_picker/super_date_picker/date_popover/_absolute_tab.scss +13 -18
- package/src/components/form/checkbox/_checkbox.scss +23 -6
- package/src/components/index.scss +0 -1
- package/src/components/selectable/selectable_list/_selectable_list_item.scss +4 -0
- package/src/components/selectable/selectable_templates/_selectable_template_sitewide_option.scss +5 -1
- package/src/services/theme/README.md +153 -0
- package/src/test/README.md +44 -0
- package/src/themes/amsterdam/overrides/_index.scss +0 -1
- package/test-env/components/avatar/avatar.js +1 -1
- package/test-env/components/badge/badge.js +1 -1
- package/test-env/components/badge/beta_badge/beta_badge.js +1 -1
- package/test-env/components/basic_table/basic_table.js +1 -1
- package/test-env/components/basic_table/in_memory_table.js +1 -1
- 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 +1 -1
- 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 +6 -2
- 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_input/combo_box_input.js +19 -1
- package/test-env/components/combo_box/combo_box_input/combo_box_pill.js +16 -0
- package/test-env/components/combo_box/combo_box_options_list/combo_box_option.js +16 -0
- package/test-env/components/combo_box/combo_box_options_list/combo_box_options_list.js +26 -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/cell/data_grid_cell.js +12 -12
- package/test-env/components/datagrid/body/data_grid_body.js +7 -7
- package/test-env/components/datagrid/body/data_grid_body_custom.js +7 -7
- package/test-env/components/datagrid/body/data_grid_body_virtualized.js +7 -7
- package/test-env/components/datagrid/body/header/data_grid_header_cell.js +6 -6
- package/test-env/components/datagrid/controls/column_sorting.js +7 -7
- package/test-env/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/test-env/components/datagrid/controls/data_grid_toolbar.js +2 -1
- package/test-env/components/datagrid/controls/data_grid_toolbar_control.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/date_picker/super_date_picker/date_popover/absolute_tab.js +25 -11
- 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 +45 -3
- package/test-env/components/flex/flex_group.js +0 -2
- package/test-env/components/flex/flex_item.js +0 -2
- package/test-env/components/form/field_number/field_number.js +2 -2
- package/test-env/components/form/field_text/field_text.js +2 -2
- package/test-env/components/form/form.styles.js +30 -4
- package/test-env/components/form/form_control_layout/form_control_layout.js +2 -2
- package/test-env/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
- package/test-env/components/form/form_control_layout/form_control_layout_icons.js +2 -2
- package/test-env/components/form/text_area/text_area.js +2 -2
- package/test-env/components/header/header_links/header_link.js +1 -1
- package/test-env/components/header/header_links/header_links.js +1 -1
- package/test-env/components/header/header_logo/header_logo.js +1 -1
- package/test-env/components/header/header_section/header_section_item_button.js +1 -1
- package/test-env/components/icon/assets/clickLeft.js +46 -0
- package/test-env/components/icon/assets/clickRight.js +46 -0
- package/test-env/components/icon/assets/clockCounter.js +43 -0
- package/test-env/components/icon/assets/error.js +3 -1
- package/test-env/components/icon/assets/errorFilled.js +42 -0
- package/test-env/components/icon/assets/launch.js +5 -3
- package/test-env/components/icon/assets/tokenDimension.js +44 -0
- package/test-env/components/icon/assets/tokenMetricCounter.js +4 -1
- package/test-env/components/icon/assets/tokenMetricGauge.js +4 -1
- package/test-env/components/icon/assets/warningFilled.js +42 -0
- package/test-env/components/icon/icon_map.js +6 -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 +13 -9
- package/test-env/components/markdown_editor/markdown_editor.styles.js +37 -0
- package/test-env/components/markdown_editor/markdown_editor_drop_zone.js +25 -17
- package/test-env/components/markdown_editor/markdown_editor_drop_zone.styles.js +38 -0
- package/test-env/components/markdown_editor/markdown_editor_footer.js +11 -2
- package/test-env/components/markdown_editor/markdown_editor_footer.styles.js +33 -0
- package/test-env/components/markdown_editor/markdown_editor_text_area.js +6 -1
- package/test-env/components/markdown_editor/markdown_editor_text_area.styles.js +29 -0
- package/test-env/components/markdown_editor/markdown_editor_toolbar.js +11 -3
- package/test-env/components/markdown_editor/markdown_editor_toolbar.styles.js +28 -0
- package/test-env/components/markdown_editor/markdown_format.js +8 -5
- package/test-env/components/markdown_editor/markdown_format.styles.js +25 -10
- package/test-env/components/markdown_editor/plugins/markdown_checkbox/renderer.js +9 -4
- package/test-env/components/markdown_editor/plugins/markdown_tooltip/renderer.js +19 -10
- package/test-env/components/page/page_header/page_header_content.js +1 -1
- package/test-env/components/pagination/pagination_button.js +1 -1
- package/test-env/components/popover/input_popover.js +20 -14
- package/test-env/components/selectable/selectable.js +10 -2
- package/test-env/components/selectable/selectable_list/selectable_list.js +96 -43
- package/test-env/components/selectable/selectable_list/selectable_list_item.js +234 -206
- package/test-env/components/selectable/selectable_option.js +12 -1
- package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +11 -3
- package/test-env/components/text/text_color.js +6 -2
- 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/global_toast_list_item.js +5 -5
- package/test-env/components/toast/toast.js +1 -1
- package/test-env/components/token/token_map.js +4 -0
- package/test-env/components/tool_tip/icon_tip.js +1 -1
- package/LICENSE.txt +0 -6
- package/NOTICE.txt +0 -54
- package/README.md +0 -66
- package/licenses/ELASTIC-LICENSE-2.0.md +0 -93
- package/licenses/SSPL-LICENSE.md +0 -557
- package/src/components/markdown_editor/_index.scss +0 -9
- package/src/components/markdown_editor/_markdown_editor.scss +0 -22
- package/src/components/markdown_editor/_markdown_editor_drop_zone.scss +0 -58
- package/src/components/markdown_editor/_markdown_editor_footer.scss +0 -42
- package/src/components/markdown_editor/_markdown_editor_preview.scss +0 -20
- package/src/components/markdown_editor/_markdown_editor_text_area.scss +0 -43
- package/src/components/markdown_editor/_markdown_editor_toolbar.scss +0 -29
- package/src/components/markdown_editor/_markdown_format.scss +0 -78
- package/src/components/markdown_editor/_variables.scss +0 -1
- package/src/components/markdown_editor/plugins/markdown_tooltip.scss +0 -4
- package/src/themes/amsterdam/overrides/_markdown_editor.scss +0 -18
|
@@ -7,7 +7,9 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
7
7
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
8
8
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
9
9
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
10
|
-
var _excluded = ["theme", "children", "className", "disabled", "checked", "isFocused", "showIcons"];
|
|
10
|
+
var _excluded = ["theme", "children", "className", "disabled", "checked", "isFocused", "showIcons", "toolTipContent", "toolTipProps", "style"];
|
|
11
|
+
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; }
|
|
12
|
+
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; }
|
|
11
13
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
12
14
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
13
15
|
/*
|
|
@@ -18,10 +20,11 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
18
20
|
* Side Public License, v 1.
|
|
19
21
|
*/
|
|
20
22
|
|
|
21
|
-
import React, { Component } from 'react';
|
|
23
|
+
import React, { Component, createRef } from 'react';
|
|
22
24
|
import classNames from 'classnames';
|
|
23
25
|
import { withEuiTheme } from '../../services';
|
|
24
26
|
import { EuiFlexGroup, EuiFlexItem } from '../flex';
|
|
27
|
+
import { EuiToolTip } from '../tool_tip';
|
|
25
28
|
import { EuiIcon } from '../icon';
|
|
26
29
|
import { euiFilterSelectItemStyles } from './filter_select_item.styles';
|
|
27
30
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
@@ -57,6 +60,7 @@ export var EuiFilterSelectItemClass = /*#__PURE__*/function (_Component) {
|
|
|
57
60
|
}
|
|
58
61
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
59
62
|
_defineProperty(_assertThisInitialized(_this), "buttonRef", null);
|
|
63
|
+
_defineProperty(_assertThisInitialized(_this), "tooltipRef", /*#__PURE__*/createRef());
|
|
60
64
|
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
61
65
|
hasFocus: false
|
|
62
66
|
});
|
|
@@ -65,6 +69,15 @@ export var EuiFilterSelectItemClass = /*#__PURE__*/function (_Component) {
|
|
|
65
69
|
_this.buttonRef.focus();
|
|
66
70
|
}
|
|
67
71
|
});
|
|
72
|
+
_defineProperty(_assertThisInitialized(_this), "toggleToolTip", function (isFocused) {
|
|
73
|
+
if (isFocused) {
|
|
74
|
+
var _this$tooltipRef, _this$tooltipRef$curr;
|
|
75
|
+
(_this$tooltipRef = _this.tooltipRef) === null || _this$tooltipRef === void 0 ? void 0 : (_this$tooltipRef$curr = _this$tooltipRef.current) === null || _this$tooltipRef$curr === void 0 ? void 0 : _this$tooltipRef$curr.showToolTip();
|
|
76
|
+
} else {
|
|
77
|
+
var _this$tooltipRef2, _this$tooltipRef2$cur;
|
|
78
|
+
(_this$tooltipRef2 = _this.tooltipRef) === null || _this$tooltipRef2 === void 0 ? void 0 : (_this$tooltipRef2$cur = _this$tooltipRef2.current) === null || _this$tooltipRef2$cur === void 0 ? void 0 : _this$tooltipRef2$cur.hideToolTip();
|
|
79
|
+
}
|
|
80
|
+
});
|
|
68
81
|
_defineProperty(_assertThisInitialized(_this), "hasFocus", function () {
|
|
69
82
|
return _this.state.hasFocus;
|
|
70
83
|
});
|
|
@@ -82,10 +95,28 @@ export var EuiFilterSelectItemClass = /*#__PURE__*/function (_Component) {
|
|
|
82
95
|
checked = _this$props.checked,
|
|
83
96
|
isFocused = _this$props.isFocused,
|
|
84
97
|
showIcons = _this$props.showIcons,
|
|
98
|
+
toolTipContent = _this$props.toolTipContent,
|
|
99
|
+
toolTipProps = _this$props.toolTipProps,
|
|
100
|
+
style = _this$props.style,
|
|
85
101
|
rest = _objectWithoutProperties(_this$props, _excluded);
|
|
86
102
|
var styles = euiFilterSelectItemStyles(theme);
|
|
87
103
|
var cssStyles = [styles.euiFilterSelectItem, isFocused && styles.isFocused];
|
|
88
104
|
var classes = classNames('euiFilterSelectItem', className);
|
|
105
|
+
var hasToolTip =
|
|
106
|
+
// we're using isValidElement here as EuiToolTipAnchor uses
|
|
107
|
+
// cloneElement to enhance the element with required attributes
|
|
108
|
+
/*#__PURE__*/React.isValidElement(children) && !disabled && toolTipContent;
|
|
109
|
+
var anchorProps = undefined;
|
|
110
|
+
if (hasToolTip) {
|
|
111
|
+
var _toolTipProps$anchorP, _toolTipProps$anchorP2;
|
|
112
|
+
var anchorStyles = toolTipProps !== null && toolTipProps !== void 0 && (_toolTipProps$anchorP = toolTipProps.anchorProps) !== null && _toolTipProps$anchorP !== void 0 && _toolTipProps$anchorP.style ? _objectSpread(_objectSpread({}, toolTipProps === null || toolTipProps === void 0 ? void 0 : (_toolTipProps$anchorP2 = toolTipProps.anchorProps) === null || _toolTipProps$anchorP2 === void 0 ? void 0 : _toolTipProps$anchorP2.style), style) : style;
|
|
113
|
+
anchorProps = toolTipProps !== null && toolTipProps !== void 0 && toolTipProps.anchorProps ? _objectSpread(_objectSpread({}, toolTipProps.anchorProps), {}, {
|
|
114
|
+
style: anchorStyles
|
|
115
|
+
}) : {
|
|
116
|
+
style: style
|
|
117
|
+
};
|
|
118
|
+
this.toggleToolTip(isFocused !== null && isFocused !== void 0 ? isFocused : false);
|
|
119
|
+
}
|
|
89
120
|
var iconNode;
|
|
90
121
|
if (showIcons) {
|
|
91
122
|
var _resolveIconAndColor = resolveIconAndColor(checked),
|
|
@@ -98,7 +129,7 @@ export var EuiFilterSelectItemClass = /*#__PURE__*/function (_Component) {
|
|
|
98
129
|
type: icon
|
|
99
130
|
}));
|
|
100
131
|
}
|
|
101
|
-
|
|
132
|
+
var optionItem = ___EmotionJSX("button", _extends({
|
|
102
133
|
ref: function ref(_ref) {
|
|
103
134
|
return _this2.buttonRef = _ref;
|
|
104
135
|
},
|
|
@@ -108,7 +139,8 @@ export var EuiFilterSelectItemClass = /*#__PURE__*/function (_Component) {
|
|
|
108
139
|
className: classes,
|
|
109
140
|
css: cssStyles,
|
|
110
141
|
disabled: disabled,
|
|
111
|
-
"aria-disabled": disabled
|
|
142
|
+
"aria-disabled": disabled,
|
|
143
|
+
style: !hasToolTip ? style : undefined
|
|
112
144
|
}, rest), ___EmotionJSX(EuiFlexGroup, {
|
|
113
145
|
alignItems: "center",
|
|
114
146
|
gutterSize: "s",
|
|
@@ -118,6 +150,14 @@ export var EuiFilterSelectItemClass = /*#__PURE__*/function (_Component) {
|
|
|
118
150
|
className: "euiFilterSelectItem__content eui-textTruncate",
|
|
119
151
|
component: "span"
|
|
120
152
|
}, children)));
|
|
153
|
+
return hasToolTip ? ___EmotionJSX(EuiToolTip, _extends({
|
|
154
|
+
ref: this.tooltipRef,
|
|
155
|
+
display: "block",
|
|
156
|
+
content: toolTipContent,
|
|
157
|
+
position: "left"
|
|
158
|
+
}, toolTipProps, {
|
|
159
|
+
anchorProps: anchorProps
|
|
160
|
+
}), optionItem) : optionItem;
|
|
121
161
|
}
|
|
122
162
|
}]);
|
|
123
163
|
return EuiFilterSelectItemClass;
|
|
@@ -53,6 +53,4 @@ var EuiFlexGroupInternal = function EuiFlexGroupInternal(_ref, ref) {
|
|
|
53
53
|
// Cast forwardRef return type to work with the generic TComponent type
|
|
54
54
|
// and not fallback to implicit any typing
|
|
55
55
|
export var EuiFlexGroup = /*#__PURE__*/forwardRef(EuiFlexGroupInternal);
|
|
56
|
-
|
|
57
|
-
// Cast is required here because of the cast above
|
|
58
56
|
EuiFlexGroup.displayName = 'EuiFlexGroup';
|
|
@@ -44,6 +44,4 @@ var EuiFlexItemInternal = function EuiFlexItemInternal(_ref, ref) {
|
|
|
44
44
|
// Cast forwardRef return type to work with the generic TComponent type
|
|
45
45
|
// and not fallback to implicit any typing
|
|
46
46
|
export var EuiFlexItem = /*#__PURE__*/forwardRef(EuiFlexItemInternal);
|
|
47
|
-
|
|
48
|
-
// Cast is required here because of the cast above
|
|
49
47
|
EuiFlexItem.displayName = 'EuiFlexItem';
|
|
@@ -10,7 +10,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
import { shade, tint, darken, transparentize, makeHighContrastColor } from '../../services';
|
|
13
|
-
import { mathWithUnits, euiCanAnimate } from '../../global_styling';
|
|
13
|
+
import { mathWithUnits, euiCanAnimate, euiFontSize } from '../../global_styling';
|
|
14
14
|
export var euiFormVariables = function euiFormVariables(euiThemeContext) {
|
|
15
15
|
var euiTheme = euiThemeContext.euiTheme,
|
|
16
16
|
colorMode = euiThemeContext.colorMode;
|
|
@@ -65,7 +65,9 @@ export var euiFormVariables = function euiFormVariables(euiThemeContext) {
|
|
|
65
65
|
xxl: euiTheme.size.xxl
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
|
-
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, sizes), colors), customControlColors), iconSizes), controlLayout)
|
|
68
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, sizes), colors), customControlColors), iconSizes), controlLayout), {}, {
|
|
69
|
+
animationTiming: "".concat(euiTheme.animation.fast, " ease-in")
|
|
70
|
+
});
|
|
69
71
|
};
|
|
70
72
|
export var euiFormControlSize = function euiFormControlSize(euiThemeContext) {
|
|
71
73
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
@@ -99,5 +101,26 @@ export var euiCustomControl = function euiCustomControl(euiThemeContext) {
|
|
|
99
101
|
} else if (type === 'square') {
|
|
100
102
|
borderRadiusStyle = "border-radius: ".concat(form.controlCompressedBorderRadius, ";");
|
|
101
103
|
}
|
|
102
|
-
return "\n ".concat(padddingStyle, "\n ").concat(borderRadiusStyle, "\n border: ").concat(euiTheme.border.width.thin, " solid ").concat(form.customControlBorderColor, ";\n background: ").concat(euiTheme.colors.emptyShade, " no-repeat center;\n\n ").concat(euiCanAnimate, " {\n transition: background-color ").concat(
|
|
104
|
+
return "\n ".concat(padddingStyle, "\n ").concat(borderRadiusStyle, "\n border: ").concat(euiTheme.border.width.thin, " solid ").concat(form.customControlBorderColor, ";\n background: ").concat(euiTheme.colors.emptyShade, " no-repeat center;\n\n ").concat(euiCanAnimate, " {\n transition: background-color ").concat(form.animationTiming, ",\n border-color ").concat(form.animationTiming, ";\n }\n ");
|
|
105
|
+
};
|
|
106
|
+
export var euiFormControlText = function euiFormControlText(euiThemeContext) {
|
|
107
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
108
|
+
var _euiFontSize = euiFontSize(euiThemeContext, 's'),
|
|
109
|
+
fontSize = _euiFontSize.fontSize;
|
|
110
|
+
var _euiFormVariables = euiFormVariables(euiThemeContext),
|
|
111
|
+
controlPlaceholderText = _euiFormVariables.controlPlaceholderText;
|
|
112
|
+
return "\n font-family: ".concat(euiTheme.font.family, ";\n font-size: ").concat(fontSize, ";\n color: ").concat(euiTheme.colors.text, ";\n\n ").concat(euiPlaceholderPerBrowser("color: ".concat(controlPlaceholderText)), "\n ");
|
|
113
|
+
};
|
|
114
|
+
export var euiFormControlDefaultShadow = function euiFormControlDefaultShadow(euiThemeContext) {
|
|
115
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
116
|
+
var form = euiFormVariables(euiThemeContext);
|
|
117
|
+
return "\n box-shadow: inset 0 0 0 1px ".concat(form.borderColor, ";\n background-color: ").concat(form.backgroundColor, ";\n\n background-repeat: no-repeat;\n background-size: 0% 100%;\n background-image: linear-gradient(to top,\n var(--euiFormStateColor),\n var(--euiFormStateColor) ").concat(euiTheme.border.width.thick, ",\n transparent ").concat(euiTheme.border.width.thick, ",\n transparent 100%\n );\n\n ").concat(euiCanAnimate, " {\n transition:\n box-shadow ").concat(form.animationTiming, ",\n background-image ").concat(form.animationTiming, ",\n background-size ").concat(form.animationTiming, ",\n background-color ").concat(form.animationTiming, ";\n }\n ");
|
|
118
|
+
};
|
|
119
|
+
export var euiFormControlFocusStyles = function euiFormControlFocusStyles(_ref) {
|
|
120
|
+
var euiTheme = _ref.euiTheme,
|
|
121
|
+
colorMode = _ref.colorMode;
|
|
122
|
+
return "\n --euiFormStateColor: ".concat(euiTheme.colors.primary, ";\n background-color: ").concat(colorMode === 'DARK' ? shade(euiTheme.colors.emptyShade, 0.4) : euiTheme.colors.emptyShade, ";\n background-size: 100% 100%;\n outline: none; /* Remove all outlines and rely on our own bottom border gradient */\n");
|
|
123
|
+
};
|
|
124
|
+
var euiPlaceholderPerBrowser = function euiPlaceholderPerBrowser(content) {
|
|
125
|
+
return "\n &::-webkit-input-placeholder { ".concat(content, "; opacity: 1; }\n &::-moz-placeholder { ").concat(content, "; opacity: 1; }\n &:-ms-input-placeholder { ").concat(content, "; opacity: 1; }\n &:-moz-placeholder { ").concat(content, "; opacity: 1; }\n &::placeholder { ").concat(content, "; opacity: 1; }\n");
|
|
103
126
|
};
|
|
@@ -0,0 +1,37 @@
|
|
|
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 EuiIconClickLeft = function EuiIconClickLeft(_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
|
+
d: "M5 .5a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0v-1Zm-3.146.646a.5.5 0 1 0-.708.708l1 1a.5.5 0 1 0 .708-.708l-1-1Z"
|
|
30
|
+
}), ___EmotionJSX("path", {
|
|
31
|
+
fillRule: "evenodd",
|
|
32
|
+
d: "M13 7A5 5 0 0 0 3 7v4a5 5 0 0 0 10 0V7Zm-1 0a4 4 0 0 0-4-4v5a1 1 0 0 1-1 1H4v2a4 4 0 0 0 8 0V7Z"
|
|
33
|
+
}), ___EmotionJSX("path", {
|
|
34
|
+
d: "M0 4.5A.5.5 0 0 1 .5 4h1a.5.5 0 0 1 0 1h-1a.5.5 0 0 1-.5-.5Z"
|
|
35
|
+
}));
|
|
36
|
+
};
|
|
37
|
+
export var icon = EuiIconClickLeft;
|
|
@@ -0,0 +1,37 @@
|
|
|
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 EuiIconClickRight = function EuiIconClickRight(_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
|
+
d: "M11 .5a.5.5 0 0 1 1 0v1a.5.5 0 0 1-1 0v-1Zm3.146.646a.5.5 0 0 1 .708.708l-1 1a.5.5 0 0 1-.708-.708l1-1Z"
|
|
30
|
+
}), ___EmotionJSX("path", {
|
|
31
|
+
fillRule: "evenodd",
|
|
32
|
+
d: "M3 7a5 5 0 0 1 10 0v4a5 5 0 0 1-10 0V7Zm1 0a4 4 0 0 1 4-4v5a1 1 0 0 0 1 1h3v2a4 4 0 0 1-8 0V7Z"
|
|
33
|
+
}), ___EmotionJSX("path", {
|
|
34
|
+
d: "M16 4.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0 0 1h1a.5.5 0 0 0 .5-.5Z"
|
|
35
|
+
}));
|
|
36
|
+
};
|
|
37
|
+
export var icon = EuiIconClickRight;
|
|
@@ -0,0 +1,34 @@
|
|
|
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 EuiIconClockCounter = function EuiIconClockCounter(_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
|
+
d: "M11.39 3.61a5.5 5.5 0 0 0-7.78 7.78l.562.56v-1.622a.5.5 0 0 1 1 0v2.829a.5.5 0 0 1-.5.5H1.843a.5.5 0 0 1 0-1h1.621l-.56-.56A6.5 6.5 0 1 1 7.5 14a.5.5 0 0 1 0-1 5.5 5.5 0 0 0 3.89-9.39Z"
|
|
30
|
+
}), ___EmotionJSX("path", {
|
|
31
|
+
d: "M7.5 3a.5.5 0 0 1 .5.5V7h2.5a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5v-4a.5.5 0 0 1 .5-.5Z"
|
|
32
|
+
}));
|
|
33
|
+
};
|
|
34
|
+
export var icon = EuiIconClockCounter;
|
|
@@ -26,8 +26,10 @@ var EuiIconError = function EuiIconError(_ref) {
|
|
|
26
26
|
}, props), title ? ___EmotionJSX("title", {
|
|
27
27
|
id: titleId
|
|
28
28
|
}, title) : null, ___EmotionJSX("path", {
|
|
29
|
+
d: "M4.854 5.146a.5.5 0 1 0-.708.708L6.793 8.5l-2.647 2.646a.5.5 0 0 0 .708.708L7.5 9.207l2.646 2.647a.5.5 0 0 0 .708-.708L8.207 8.5l2.647-2.646a.5.5 0 0 0-.708-.708L7.5 7.793 4.854 5.146Z"
|
|
30
|
+
}), ___EmotionJSX("path", {
|
|
29
31
|
fillRule: "evenodd",
|
|
30
|
-
d: "
|
|
32
|
+
d: "M5 1a1 1 0 0 0-.707.293l-4 4A1 1 0 0 0 0 6v5a1 1 0 0 0 .293.707l4 4A1 1 0 0 0 5 16h5a1 1 0 0 0 .707-.293l4-4A1 1 0 0 0 15 11V6a1 1 0 0 0-.293-.707l-4-4A1 1 0 0 0 10 1H5Zm5 1H5L1 6v5l4 4h5l4-4V6l-4-4Z"
|
|
31
33
|
}));
|
|
32
34
|
};
|
|
33
35
|
export var icon = EuiIconError;
|
|
@@ -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 EuiIconErrorFilled = function EuiIconErrorFilled(_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: "M10 1a1 1 0 0 1 .707.293l4 4A1 1 0 0 1 15 6v5a1 1 0 0 1-.293.707l-4 4A1 1 0 0 1 10 16H5a1 1 0 0 1-.707-.293l-4-4A1 1 0 0 1 0 11V6a1 1 0 0 1 .293-.707l4-4A1 1 0 0 1 5 1h5ZM4.146 5.146a.5.5 0 0 1 .708 0L7.5 7.793l2.646-2.647a.5.5 0 0 1 .708.708L8.207 8.5l2.647 2.646a.5.5 0 0 1-.708.708L7.5 9.207l-2.646 2.647a.5.5 0 0 1-.708-.708L6.793 8.5 4.146 5.854a.5.5 0 0 1 0-.708Z"
|
|
31
|
+
}));
|
|
32
|
+
};
|
|
33
|
+
export var icon = EuiIconErrorFilled;
|
|
@@ -27,13 +27,15 @@ var EuiIconLaunch = function EuiIconLaunch(_ref) {
|
|
|
27
27
|
}, props), title ? ___EmotionJSX("title", {
|
|
28
28
|
id: titleId
|
|
29
29
|
}, title) : null, ___EmotionJSX("path", {
|
|
30
|
-
|
|
30
|
+
fillRule: "evenodd",
|
|
31
|
+
d: "M10 4a2 2 0 1 0 0 4 2 2 0 0 0 0-4ZM9 6a1 1 0 1 1 2 0 1 1 0 0 1-2 0Z",
|
|
32
|
+
clipRule: "evenodd"
|
|
31
33
|
}), ___EmotionJSX("path", {
|
|
32
34
|
fillRule: "evenodd",
|
|
33
|
-
d: "
|
|
35
|
+
d: "M6.679 12.967c.353-.136.697-.3 1.033-.475l1.36 2.265a.5.5 0 0 0 .828.043l3-4a.5.5 0 0 0-.046-.654l-.886-.886C13.604 7.456 15 4.913 15 1.5a.5.5 0 0 0-.5-.5c-3.413 0-5.956 1.395-7.76 3.033l-.886-.887A.5.5 0 0 0 5.2 3.1l-4 3a.5.5 0 0 0 .043.829l2.264 1.358a9.59 9.59 0 0 0-.475 1.036v.001a.5.5 0 0 0 .114.53l3 3c.139.138.35.182.533.113ZM4.09 9.384l2.525 2.525a14.616 14.616 0 0 0 3.555-2.285c1.841-1.612 3.657-4.076 3.818-7.612-3.537.16-6.001 1.976-7.613 3.817A14.617 14.617 0 0 0 4.09 9.384Zm-.096-1.97a15.616 15.616 0 0 1 2.03-2.682l-.572-.572-3.058 2.294 1.6.96Zm5.551 6.191-.96-1.6a15.617 15.617 0 0 0 2.682-2.03l.572.572-2.294 3.058Z",
|
|
34
36
|
clipRule: "evenodd"
|
|
35
37
|
}), ___EmotionJSX("path", {
|
|
36
|
-
d: "
|
|
38
|
+
d: "M3.854 12.146a.5.5 0 0 1 0 .708l-2 2a.5.5 0 0 1-.708-.708l2-2a.5.5 0 0 1 .708 0Zm2 1.708a.5.5 0 0 0-.708-.708l-1 1a.5.5 0 0 0 .708.708l1-1Zm-3-3.708a.5.5 0 0 1 0 .708l-1 1a.5.5 0 0 1-.708-.708l1-1a.5.5 0 0 1 .708 0Z"
|
|
37
39
|
}));
|
|
38
40
|
};
|
|
39
41
|
export var icon = EuiIconLaunch;
|
|
@@ -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 EuiIconTokenDimension = function EuiIconTokenDimension(_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
|
+
d: "M12 10.5a.5.5 0 0 0-1 0v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 0-1H12v-.5Z"
|
|
30
|
+
}), ___EmotionJSX("path", {
|
|
31
|
+
fillRule: "evenodd",
|
|
32
|
+
d: "M3 12h3.078c.728 0 1.37-.127 1.924-.383a3.5 3.5 0 1 0 2.053-3.306c.005-.101.008-.205.008-.311 0-.833-.165-1.548-.493-2.145A3.309 3.309 0 0 0 8.18 4.48C7.58 4.16 6.87 4 6.047 4H3v8Zm6.787-2.321A2.5 2.5 0 0 0 11.5 14a2.5 2.5 0 1 0-1.713-4.321ZM6 10.156h-.828V5.844h.766c.416 0 .768.064 1.054.191.29.128.508.348.656.66.151.313.227.748.227 1.305 0 .557-.074.992-.223 1.305a1.29 1.29 0 0 1-.64.66c-.279.127-.616.191-1.012.191Z"
|
|
33
|
+
}));
|
|
34
|
+
};
|
|
35
|
+
export var icon = EuiIconTokenDimension;
|
|
@@ -26,7 +26,10 @@ var EuiIconTokenMetricCounter = function EuiIconTokenMetricCounter(_ref) {
|
|
|
26
26
|
}, props), title ? ___EmotionJSX("title", {
|
|
27
27
|
id: titleId
|
|
28
28
|
}, title) : null, ___EmotionJSX("path", {
|
|
29
|
-
d: "
|
|
29
|
+
d: "M12 10.5a.5.5 0 0 0-1 0v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 0-1H12v-.5Z"
|
|
30
|
+
}), ___EmotionJSX("path", {
|
|
31
|
+
fillRule: "evenodd",
|
|
32
|
+
d: "M8 3h4v5.035A3.5 3.5 0 1 1 8.337 13H2V9h3V6h3V3Zm1.05 9a2.5 2.5 0 1 1 4.902-1 2.5 2.5 0 0 1-4.902 1ZM11 8.035a3.49 3.49 0 0 0-2 1.016V4h2v4.035ZM8 12H6V7h2v5Zm-3 0v-2H3v2h2Z"
|
|
30
33
|
}));
|
|
31
34
|
};
|
|
32
35
|
export var icon = EuiIconTokenMetricCounter;
|
|
@@ -26,7 +26,10 @@ var EuiIconTokenMetricGauge = function EuiIconTokenMetricGauge(_ref) {
|
|
|
26
26
|
}, props), title ? ___EmotionJSX("title", {
|
|
27
27
|
id: titleId
|
|
28
28
|
}, title) : null, ___EmotionJSX("path", {
|
|
29
|
-
d: "
|
|
29
|
+
d: "M12 10.5a.5.5 0 0 0-1 0v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 0-1H12v-.5Z"
|
|
30
|
+
}), ___EmotionJSX("path", {
|
|
31
|
+
fillRule: "evenodd",
|
|
32
|
+
d: "M6 3H2v10h6.337A3.5 3.5 0 1 0 12 8.035V5H8v2H6V3Zm5 5.035V6H9v3.05a3.49 3.49 0 0 1 2-1.015ZM9 11.5a2.5 2.5 0 1 1 5.002 0A2.5 2.5 0 0 1 9 11.5ZM8 8H6v4h2V8ZM5 4H3v8h2V4Z"
|
|
30
33
|
}));
|
|
31
34
|
};
|
|
32
35
|
export var icon = EuiIconTokenMetricGauge;
|
|
@@ -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 EuiIconWarningFilled = function EuiIconWarningFilled(_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: "M8 1a1 1 0 0 1 .864.496l7 12A1 1 0 0 1 15 15H1a1 1 0 0 1-.864-1.504l7-12A1 1 0 0 1 8 1Zm.9 4.995-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995a.905.905 0 1 1 1.8 0ZM8 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"
|
|
31
|
+
}));
|
|
32
|
+
};
|
|
33
|
+
export var icon = EuiIconWarningFilled;
|
|
@@ -48,7 +48,10 @@ export var typeToPathMap = {
|
|
|
48
48
|
checkInCircleFilled: 'checkInCircleFilled',
|
|
49
49
|
cheer: 'cheer',
|
|
50
50
|
classificationJob: 'ml_classification_job',
|
|
51
|
+
clickLeft: 'clickLeft',
|
|
52
|
+
clickRight: 'clickRight',
|
|
51
53
|
clock: 'clock',
|
|
54
|
+
clockCounter: 'clockCounter',
|
|
52
55
|
cloudDrizzle: 'cloudDrizzle',
|
|
53
56
|
cloudStormy: 'cloudStormy',
|
|
54
57
|
cloudSunny: 'cloudSunny',
|
|
@@ -129,6 +132,7 @@ export var typeToPathMap = {
|
|
|
129
132
|
eql: 'eql',
|
|
130
133
|
eraser: 'eraser',
|
|
131
134
|
error: 'error',
|
|
135
|
+
errorFilled: 'errorFilled',
|
|
132
136
|
esqlVis: 'esqlVis',
|
|
133
137
|
exit: 'exit',
|
|
134
138
|
expand: 'expand',
|
|
@@ -436,6 +440,7 @@ export var typeToPathMap = {
|
|
|
436
440
|
visualizeApp: 'app_visualize',
|
|
437
441
|
vulnerabilityManagementApp: 'app_vulnerability_management',
|
|
438
442
|
warning: 'warning',
|
|
443
|
+
warningFilled: 'warningFilled',
|
|
439
444
|
alert: 'warning',
|
|
440
445
|
// NOTE: This is an undocumented alias for `warning`, added for legacy compatability with Elastic Charts
|
|
441
446
|
watchesApp: 'app_watches',
|
|
@@ -453,6 +458,7 @@ export var typeToPathMap = {
|
|
|
453
458
|
tokenCompletionSuggester: 'tokenCompletionSuggester',
|
|
454
459
|
tokenConstant: 'tokenConstant',
|
|
455
460
|
tokenDate: 'tokenDate',
|
|
461
|
+
tokenDimension: 'tokenDimension',
|
|
456
462
|
tokenElement: 'tokenElement',
|
|
457
463
|
tokenEnum: 'tokenEnum',
|
|
458
464
|
tokenEnumMember: 'tokenEnumMember',
|
|
@@ -17,17 +17,18 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
17
17
|
import React, { createElement, useEffect, useImperativeHandle, useMemo, useState, useCallback, useRef, forwardRef } from 'react';
|
|
18
18
|
import unified from 'unified';
|
|
19
19
|
import classNames from 'classnames';
|
|
20
|
+
import { useEuiMemoizedStyles, useGeneratedHtmlId } from '../../services';
|
|
21
|
+
import { EuiModal } from '../modal';
|
|
22
|
+
import { EuiResizeObserver } from '../observer/resize_observer';
|
|
20
23
|
import MarkdownActions, { insertText as _insertText } from './markdown_actions';
|
|
21
24
|
import { EuiMarkdownEditorToolbar } from './markdown_editor_toolbar';
|
|
22
25
|
import { EuiMarkdownEditorTextArea } from './markdown_editor_text_area';
|
|
23
26
|
import { EuiMarkdownFormat } from './markdown_format';
|
|
24
27
|
import { EuiMarkdownEditorDropZone } from './markdown_editor_drop_zone';
|
|
25
|
-
import { useGeneratedHtmlId } from '../../services';
|
|
26
28
|
import { MODE_EDITING, MODE_VIEWING } from './markdown_modes';
|
|
27
|
-
import { EuiModal } from '../modal';
|
|
28
29
|
import { EuiMarkdownContext } from './markdown_context';
|
|
29
30
|
import { defaultParsingPlugins, defaultProcessingPlugins, defaultUiPlugins } from './plugins/markdown_default_plugins';
|
|
30
|
-
import {
|
|
31
|
+
import { euiMarkdownEditorStyles } from './markdown_editor.styles';
|
|
31
32
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
32
33
|
// TODO I wanted to use the useCombinedRefs
|
|
33
34
|
// but I can't because it's not allowed to use react hooks
|
|
@@ -240,10 +241,10 @@ export var EuiMarkdownEditor = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
240
241
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
241
242
|
editorToolbarHeight = _useState12[0],
|
|
242
243
|
setEditorToolbarHeight = _useState12[1];
|
|
244
|
+
var styles = useEuiMemoizedStyles(euiMarkdownEditorStyles);
|
|
245
|
+
var cssStyles = [styles.euiMarkdownEditor, height === 'full' && styles.fullHeight];
|
|
243
246
|
var classes = classNames('euiMarkdownEditor', {
|
|
244
|
-
'euiMarkdownEditor
|
|
245
|
-
}, {
|
|
246
|
-
'euiMarkdownEditor--isPreviewing': isPreviewing
|
|
247
|
+
'euiMarkdownEditor-isPreviewing': isPreviewing
|
|
247
248
|
}, className);
|
|
248
249
|
var classesPreview = classNames('euiMarkdownEditorPreview', {
|
|
249
250
|
'euiMarkdownEditorPreview-isReadOnly': readOnly
|
|
@@ -282,7 +283,8 @@ export var EuiMarkdownEditor = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
282
283
|
return ___EmotionJSX(EuiMarkdownContext.Provider, {
|
|
283
284
|
value: contextValue
|
|
284
285
|
}, ___EmotionJSX("div", _extends({
|
|
285
|
-
className: classes
|
|
286
|
+
className: classes,
|
|
287
|
+
css: cssStyles
|
|
286
288
|
}, rest), ___EmotionJSX(EuiMarkdownEditorToolbar, {
|
|
287
289
|
ref: editorToolbarRef,
|
|
288
290
|
selectedNode: selectedNode,
|
|
@@ -295,6 +297,7 @@ export var EuiMarkdownEditor = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
295
297
|
}), isPreviewing && ___EmotionJSX("div", {
|
|
296
298
|
ref: previewRef,
|
|
297
299
|
className: classesPreview,
|
|
300
|
+
css: styles.euiMarkdownEditorPreview,
|
|
298
301
|
style: {
|
|
299
302
|
height: previewHeight
|
|
300
303
|
}
|
|
@@ -304,7 +307,8 @@ export var EuiMarkdownEditor = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
304
307
|
}, markdownFormatProps), value)), ___EmotionJSX("div", {
|
|
305
308
|
className: "euiMarkdownEditor__toggleContainer",
|
|
306
309
|
style: {
|
|
307
|
-
height: editorToggleContainerHeight
|
|
310
|
+
height: editorToggleContainerHeight,
|
|
311
|
+
display: isPreviewing ? 'none' : undefined
|
|
308
312
|
}
|
|
309
313
|
}, ___EmotionJSX(EuiMarkdownEditorDropZone, {
|
|
310
314
|
setEditorFooterHeight: setEditorFooterHeight,
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
3
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
4
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
5
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
6
|
+
* Side Public License, v 1.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { css } from '@emotion/react';
|
|
10
|
+
import { logicalCSS, logicalCSSWithFallback, logicalBorderRadiusCSS, euiScrollBarStyles } from '../../global_styling';
|
|
11
|
+
export var euiMarkdownEditorVariables = function euiMarkdownEditorVariables(_ref) {
|
|
12
|
+
var euiTheme = _ref.euiTheme;
|
|
13
|
+
return {
|
|
14
|
+
minHeight: '150px',
|
|
15
|
+
borderRadius: euiTheme.border.radius.medium,
|
|
16
|
+
barsBackgroundColor: euiTheme.colors.lightestShade
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export var euiMarkdownEditorStyles = function euiMarkdownEditorStyles(euiThemeContext) {
|
|
20
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
21
|
+
var _euiMarkdownEditorVar = euiMarkdownEditorVariables(euiThemeContext),
|
|
22
|
+
minHeight = _euiMarkdownEditorVar.minHeight,
|
|
23
|
+
borderRadius = _euiMarkdownEditorVar.borderRadius;
|
|
24
|
+
return {
|
|
25
|
+
euiMarkdownEditor: /*#__PURE__*/css("display:flex;flex-direction:column;.euiMarkdownEditorToolbar{", logicalBorderRadiusCSS("".concat(borderRadius, " ").concat(borderRadius, " 0 0"), true), ";}.euiMarkdownEditorPreview,.euiMarkdownEditorFooter{", logicalBorderRadiusCSS("0 0 ".concat(borderRadius, " ").concat(borderRadius), true), ";};label:euiMarkdownEditor;"),
|
|
26
|
+
fullHeight: /*#__PURE__*/css(logicalCSS('height', '100%'), " .euiMarkdownEditorTextArea{resize:none;}.euiMarkdownEditorDropZone{", logicalCSS('height', '100%'), ";};label:fullHeight;"),
|
|
27
|
+
euiMarkdownEditorPreview: /*#__PURE__*/css(logicalCSS('min-height', minHeight), " ", logicalCSSWithFallback('overflow-y', 'auto'), " ", euiScrollBarStyles(euiThemeContext), " padding:", euiTheme.size.m, ";border:", euiTheme.border.thin, ";background-color:", euiTheme.colors.emptyShade, ";;label:euiMarkdownEditorPreview;")
|
|
28
|
+
};
|
|
29
|
+
};
|