@elastic/eui 88.2.0 → 88.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/dist/eui_theme_dark.css +0 -25
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +0 -25
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/accordion/accordion.js +35 -208
- package/es/components/accordion/accordion.styles.js +3 -95
- package/es/components/accordion/accordion_children/accordion_children.js +101 -0
- package/es/components/accordion/accordion_children/accordion_children.styles.js +39 -0
- package/es/components/accordion/accordion_children/accordion_children_loading.js +31 -0
- package/es/components/accordion/accordion_children/index.js +9 -0
- package/es/components/accordion/accordion_trigger/accordion_arrow.js +41 -0
- package/es/components/accordion/accordion_trigger/accordion_arrow.styles.js +46 -0
- package/es/components/accordion/accordion_trigger/accordion_button.js +51 -0
- package/es/components/accordion/accordion_trigger/accordion_button.styles.js +26 -0
- package/es/components/accordion/accordion_trigger/accordion_trigger.js +87 -0
- package/es/components/accordion/accordion_trigger/index.js +9 -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 +1 -1
- package/es/components/basic_table/collapsed_item_actions.js +1 -1
- package/es/components/basic_table/in_memory_table.js +1 -1
- package/es/components/button/button_display/_button_display.js +1 -1
- package/es/components/button/button_display/_button_display_content.js +1 -1
- package/es/components/button/button_empty/button_empty.js +1 -1
- package/es/components/button/button_group/button_group.js +1 -1
- package/es/components/button/button_group/button_group_button.js +1 -1
- package/es/components/button/button_icon/button_icon.js +1 -1
- package/es/components/call_out/call_out.js +1 -1
- package/es/components/card/card.js +1 -1
- package/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
- package/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +1 -1
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +2 -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 +3 -3
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.js +2 -2
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.styles.js +1 -1
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +3 -3
- package/es/components/comment_list/comment.js +2 -2
- package/es/components/comment_list/comment_event.js +1 -1
- package/es/components/comment_list/comment_list.js +2 -2
- package/es/components/comment_list/comment_timeline.js +1 -1
- package/es/components/datagrid/body/data_grid_body.js +13 -13
- package/es/components/datagrid/body/data_grid_body_custom.js +13 -13
- package/es/components/datagrid/body/data_grid_body_virtualized.js +13 -13
- package/es/components/datagrid/body/data_grid_cell.js +24 -24
- package/es/components/datagrid/body/header/data_grid_header_cell.js +12 -12
- package/es/components/datagrid/body/header/data_grid_header_row.js +13 -13
- package/es/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/es/components/datagrid/data_grid.js +13 -13
- package/es/components/datagrid/utils/in_memory.js +12 -12
- package/es/components/date_picker/date_picker.js +2 -2
- package/es/components/date_picker/date_picker_range.js +1 -1
- package/es/components/empty_prompt/empty_prompt.js +1 -1
- package/es/components/facet/facet_button.js +1 -1
- package/es/components/form/field_number/field_number.js +1 -1
- package/es/components/form/field_text/field_text.js +2 -2
- package/es/components/form/form_control_layout/form_control_layout.js +2 -2
- package/es/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
- package/es/components/form/form_control_layout/form_control_layout_icons.js +2 -2
- package/es/components/header/header_links/header_link.js +1 -1
- package/es/components/header/header_links/header_links.js +1 -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/grabOmnidirectional.js +33 -0
- package/es/components/icon/assets/transitionLeftIn.js +36 -0
- package/es/components/icon/assets/transitionLeftOut.js +36 -0
- package/es/components/icon/assets/transitionTopIn.js +36 -0
- package/es/components/icon/assets/transitionTopOut.js +36 -0
- package/es/components/icon/icon.js +1 -1
- package/es/components/icon/icon_map.js +5 -0
- package/es/components/inline_edit/inline_edit_form.js +49 -13
- package/es/components/inline_edit/inline_edit_text.js +22 -23
- package/es/components/inline_edit/inline_edit_title.js +22 -23
- 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 +3 -3
- package/es/components/list_group/list_group_item_extra_action.js +1 -1
- package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
- package/es/components/loading/loading_logo.js +1 -1
- package/es/components/markdown_editor/markdown_editor.js +1 -1
- package/es/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
- package/es/components/markdown_editor/markdown_editor_footer.js +1 -1
- package/es/components/markdown_editor/markdown_editor_toolbar.js +1 -1
- package/es/components/notification/notification_event.js +2 -2
- package/es/components/notification/notification_event_meta.js +1 -1
- package/es/components/page/page_header/page_header_content.js +1 -1
- package/es/components/pagination/pagination_button.js +1 -1
- package/es/components/panel/split_panel/split_panel.js +9 -7
- package/es/components/panel/split_panel/split_panel.styles.js +40 -0
- 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/suggest/suggest.js +1 -1
- package/es/components/suggest/suggest_item.js +1 -1
- package/es/components/table/table_header_button.js +1 -1
- package/es/components/text_truncate/utils.js +1 -1
- package/es/components/timeline/timeline_item_icon.js +1 -1
- package/es/components/toast/global_toast_list.js +51 -3
- package/es/components/toast/global_toast_list.styles.js +3 -2
- package/es/components/toast/toast.js +1 -1
- package/es/components/tool_tip/icon_tip.js +1 -1
- package/eui.d.ts +194 -44
- package/i18ntokens.json +60 -24
- package/lib/components/accordion/accordion.js +34 -207
- package/lib/components/accordion/accordion.styles.js +12 -109
- package/lib/components/accordion/accordion_children/accordion_children.js +111 -0
- package/lib/components/accordion/accordion_children/accordion_children.styles.js +45 -0
- package/lib/components/accordion/accordion_children/accordion_children_loading.js +38 -0
- package/lib/components/accordion/accordion_children/index.js +12 -0
- package/lib/components/accordion/accordion_trigger/accordion_arrow.js +48 -0
- package/lib/components/accordion/accordion_trigger/accordion_arrow.styles.js +51 -0
- package/lib/components/accordion/accordion_trigger/accordion_button.js +58 -0
- package/lib/components/accordion/accordion_trigger/accordion_button.styles.js +33 -0
- package/lib/components/accordion/accordion_trigger/accordion_trigger.js +93 -0
- package/lib/components/accordion/accordion_trigger/index.js +12 -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 +1 -1
- package/lib/components/basic_table/collapsed_item_actions.js +1 -1
- package/lib/components/basic_table/in_memory_table.js +1 -1
- package/lib/components/button/button_display/_button_display.js +1 -1
- package/lib/components/button/button_display/_button_display_content.js +1 -1
- package/lib/components/button/button_empty/button_empty.js +1 -1
- package/lib/components/button/button_group/button_group.js +1 -1
- package/lib/components/button/button_group/button_group_button.js +1 -1
- package/lib/components/button/button_icon/button_icon.js +1 -1
- package/lib/components/call_out/call_out.js +1 -1
- package/lib/components/card/card.js +1 -1
- package/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
- package/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +1 -1
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +2 -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 +3 -3
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.js +2 -2
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.styles.js +1 -1
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +3 -3
- package/lib/components/comment_list/comment.js +2 -2
- package/lib/components/comment_list/comment_event.js +1 -1
- package/lib/components/comment_list/comment_list.js +2 -2
- package/lib/components/comment_list/comment_timeline.js +1 -1
- package/lib/components/datagrid/body/data_grid_body.js +13 -13
- package/lib/components/datagrid/body/data_grid_body_custom.js +13 -13
- package/lib/components/datagrid/body/data_grid_body_virtualized.js +13 -13
- package/lib/components/datagrid/body/data_grid_cell.js +24 -24
- package/lib/components/datagrid/body/header/data_grid_header_cell.js +12 -12
- package/lib/components/datagrid/body/header/data_grid_header_row.js +13 -13
- package/lib/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/lib/components/datagrid/data_grid.js +13 -13
- package/lib/components/datagrid/utils/in_memory.js +12 -12
- package/lib/components/date_picker/date_picker.js +2 -2
- package/lib/components/date_picker/date_picker_range.js +1 -1
- package/lib/components/empty_prompt/empty_prompt.js +1 -1
- package/lib/components/facet/facet_button.js +1 -1
- package/lib/components/form/field_number/field_number.js +1 -1
- package/lib/components/form/field_text/field_text.js +2 -2
- package/lib/components/form/form_control_layout/form_control_layout.js +2 -2
- package/lib/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
- package/lib/components/form/form_control_layout/form_control_layout_icons.js +2 -2
- package/lib/components/header/header_links/header_link.js +1 -1
- package/lib/components/header/header_links/header_links.js +1 -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/grabOmnidirectional.js +41 -0
- package/lib/components/icon/assets/transitionLeftIn.js +44 -0
- package/lib/components/icon/assets/transitionLeftOut.js +44 -0
- package/lib/components/icon/assets/transitionTopIn.js +44 -0
- package/lib/components/icon/assets/transitionTopOut.js +44 -0
- package/lib/components/icon/icon.js +1 -1
- package/lib/components/icon/icon_map.js +5 -0
- package/lib/components/icon/svgs/grabOmnidirectional.svg +3 -0
- package/lib/components/icon/svgs/transitionLeftIn.svg +4 -0
- package/lib/components/icon/svgs/transitionLeftOut.svg +4 -0
- package/lib/components/icon/svgs/transitionTopIn.svg +4 -0
- package/lib/components/icon/svgs/transitionTopOut.svg +4 -0
- package/lib/components/inline_edit/inline_edit_form.js +58 -20
- package/lib/components/inline_edit/inline_edit_text.js +22 -23
- package/lib/components/inline_edit/inline_edit_title.js +22 -23
- 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 +3 -3
- package/lib/components/list_group/list_group_item_extra_action.js +1 -1
- package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
- package/lib/components/loading/loading_logo.js +1 -1
- package/lib/components/markdown_editor/markdown_editor.js +1 -1
- package/lib/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
- package/lib/components/markdown_editor/markdown_editor_footer.js +1 -1
- package/lib/components/markdown_editor/markdown_editor_toolbar.js +1 -1
- package/lib/components/notification/notification_event.js +2 -2
- package/lib/components/notification/notification_event_meta.js +1 -1
- package/lib/components/page/page_header/page_header_content.js +1 -1
- package/lib/components/panel/split_panel/split_panel.js +9 -7
- package/lib/components/panel/split_panel/split_panel.styles.js +46 -0
- 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/suggest/suggest.js +1 -1
- package/lib/components/suggest/suggest_item.js +1 -1
- package/lib/components/table/table_header_button.js +1 -1
- package/lib/components/text_truncate/utils.js +1 -1
- package/lib/components/timeline/timeline_item_icon.js +1 -1
- package/lib/components/toast/global_toast_list.js +53 -4
- package/lib/components/toast/global_toast_list.styles.js +3 -2
- package/lib/components/toast/toast.js +1 -1
- package/lib/components/tool_tip/icon_tip.js +1 -1
- package/optimize/es/components/accordion/accordion.js +35 -203
- package/optimize/es/components/accordion/accordion.styles.js +3 -95
- package/optimize/es/components/accordion/accordion_children/accordion_children.js +91 -0
- package/optimize/es/components/accordion/accordion_children/accordion_children.styles.js +39 -0
- package/optimize/es/components/accordion/accordion_children/accordion_children_loading.js +31 -0
- package/optimize/es/components/accordion/accordion_children/index.js +9 -0
- package/optimize/es/components/accordion/accordion_trigger/accordion_arrow.js +36 -0
- package/optimize/es/components/accordion/accordion_trigger/accordion_arrow.styles.js +46 -0
- package/optimize/es/components/accordion/accordion_trigger/accordion_button.js +45 -0
- package/optimize/es/components/accordion/accordion_trigger/accordion_button.styles.js +26 -0
- package/optimize/es/components/accordion/accordion_trigger/accordion_trigger.js +80 -0
- package/optimize/es/components/accordion/accordion_trigger/index.js +9 -0
- package/optimize/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +1 -1
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.styles.js +1 -1
- package/optimize/es/components/icon/assets/grabOmnidirectional.js +32 -0
- package/optimize/es/components/icon/assets/transitionLeftIn.js +35 -0
- package/optimize/es/components/icon/assets/transitionLeftOut.js +35 -0
- package/optimize/es/components/icon/assets/transitionTopIn.js +35 -0
- package/optimize/es/components/icon/assets/transitionTopOut.js +35 -0
- package/optimize/es/components/icon/icon_map.js +5 -0
- package/optimize/es/components/inline_edit/inline_edit_form.js +32 -12
- package/optimize/es/components/inline_edit/inline_edit_text.js +6 -22
- package/optimize/es/components/inline_edit/inline_edit_title.js +6 -22
- package/optimize/es/components/list_group/list_group_item.js +1 -1
- package/optimize/es/components/panel/split_panel/split_panel.js +9 -7
- package/optimize/es/components/panel/split_panel/split_panel.styles.js +40 -0
- package/optimize/es/components/text_truncate/utils.js +1 -1
- package/optimize/es/components/toast/global_toast_list.js +39 -2
- package/optimize/es/components/toast/global_toast_list.styles.js +3 -2
- package/optimize/lib/components/accordion/accordion.js +34 -202
- package/optimize/lib/components/accordion/accordion.styles.js +12 -109
- package/optimize/lib/components/accordion/accordion_children/accordion_children.js +101 -0
- package/optimize/lib/components/accordion/accordion_children/accordion_children.styles.js +45 -0
- package/optimize/lib/components/accordion/accordion_children/accordion_children_loading.js +38 -0
- package/optimize/lib/components/accordion/accordion_children/index.js +12 -0
- package/optimize/lib/components/accordion/accordion_trigger/accordion_arrow.js +43 -0
- package/optimize/lib/components/accordion/accordion_trigger/accordion_arrow.styles.js +51 -0
- package/optimize/lib/components/accordion/accordion_trigger/accordion_button.js +52 -0
- package/optimize/lib/components/accordion/accordion_trigger/accordion_button.styles.js +33 -0
- package/optimize/lib/components/accordion/accordion_trigger/accordion_trigger.js +86 -0
- package/optimize/lib/components/accordion/accordion_trigger/index.js +12 -0
- package/optimize/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +1 -1
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.styles.js +1 -1
- package/optimize/lib/components/icon/assets/grabOmnidirectional.js +41 -0
- package/optimize/lib/components/icon/assets/transitionLeftIn.js +44 -0
- package/optimize/lib/components/icon/assets/transitionLeftOut.js +44 -0
- package/optimize/lib/components/icon/assets/transitionTopIn.js +44 -0
- package/optimize/lib/components/icon/assets/transitionTopOut.js +44 -0
- package/optimize/lib/components/icon/icon_map.js +5 -0
- package/optimize/lib/components/icon/svgs/grabOmnidirectional.svg +3 -0
- package/optimize/lib/components/icon/svgs/transitionLeftIn.svg +4 -0
- package/optimize/lib/components/icon/svgs/transitionLeftOut.svg +4 -0
- package/optimize/lib/components/icon/svgs/transitionTopIn.svg +4 -0
- package/optimize/lib/components/icon/svgs/transitionTopOut.svg +4 -0
- package/optimize/lib/components/inline_edit/inline_edit_form.js +33 -16
- package/optimize/lib/components/inline_edit/inline_edit_text.js +6 -22
- package/optimize/lib/components/inline_edit/inline_edit_title.js +6 -22
- package/optimize/lib/components/list_group/list_group_item.js +1 -1
- package/optimize/lib/components/panel/split_panel/split_panel.js +9 -7
- package/optimize/lib/components/panel/split_panel/split_panel.styles.js +46 -0
- package/optimize/lib/components/text_truncate/utils.js +1 -1
- package/optimize/lib/components/toast/global_toast_list.js +41 -3
- package/optimize/lib/components/toast/global_toast_list.styles.js +3 -2
- package/package.json +3 -3
- package/src/components/index.scss +0 -1
- package/test-env/components/accordion/accordion.js +34 -202
- package/test-env/components/accordion/accordion.styles.js +12 -109
- package/test-env/components/accordion/accordion_children/accordion_children.js +105 -0
- package/test-env/components/accordion/accordion_children/accordion_children.styles.js +45 -0
- package/test-env/components/accordion/accordion_children/accordion_children_loading.js +38 -0
- package/test-env/components/accordion/accordion_children/index.js +12 -0
- package/test-env/components/accordion/accordion_trigger/accordion_arrow.js +47 -0
- package/test-env/components/accordion/accordion_trigger/accordion_arrow.styles.js +51 -0
- package/test-env/components/accordion/accordion_trigger/accordion_button.js +52 -0
- package/test-env/components/accordion/accordion_trigger/accordion_button.styles.js +33 -0
- package/test-env/components/accordion/accordion_trigger/accordion_trigger.js +93 -0
- package/test-env/components/accordion/accordion_trigger/index.js +12 -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 +1 -1
- package/test-env/components/basic_table/collapsed_item_actions.js +1 -1
- package/test-env/components/basic_table/in_memory_table.js +1 -1
- package/test-env/components/button/button_display/_button_display.js +1 -1
- package/test-env/components/button/button_display/_button_display_content.js +1 -1
- package/test-env/components/button/button_empty/button_empty.js +1 -1
- package/test-env/components/button/button_group/button_group.js +1 -1
- package/test-env/components/button/button_group/button_group_button.js +1 -1
- package/test-env/components/button/button_icon/button_icon.js +1 -1
- package/test-env/components/call_out/call_out.js +1 -1
- package/test-env/components/card/card.js +1 -1
- package/test-env/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
- package/test-env/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +1 -1
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +2 -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 +3 -3
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.js +2 -2
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.styles.js +1 -1
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +3 -3
- package/test-env/components/comment_list/comment.js +2 -2
- package/test-env/components/comment_list/comment_event.js +1 -1
- package/test-env/components/comment_list/comment_list.js +2 -2
- package/test-env/components/comment_list/comment_timeline.js +1 -1
- package/test-env/components/datagrid/body/data_grid_body.js +13 -13
- package/test-env/components/datagrid/body/data_grid_body_custom.js +13 -13
- package/test-env/components/datagrid/body/data_grid_body_virtualized.js +13 -13
- package/test-env/components/datagrid/body/data_grid_cell.js +24 -24
- package/test-env/components/datagrid/body/header/data_grid_header_cell.js +12 -12
- package/test-env/components/datagrid/body/header/data_grid_header_row.js +13 -13
- package/test-env/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/test-env/components/datagrid/data_grid.js +13 -13
- package/test-env/components/datagrid/utils/in_memory.js +12 -12
- package/test-env/components/date_picker/date_picker.js +2 -2
- package/test-env/components/date_picker/date_picker_range.js +1 -1
- package/test-env/components/empty_prompt/empty_prompt.js +1 -1
- package/test-env/components/facet/facet_button.js +1 -1
- package/test-env/components/form/field_number/field_number.js +1 -1
- package/test-env/components/form/field_text/field_text.js +2 -2
- package/test-env/components/form/form_control_layout/form_control_layout.js +2 -2
- package/test-env/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
- package/test-env/components/form/form_control_layout/form_control_layout_icons.js +2 -2
- package/test-env/components/header/header_links/header_link.js +1 -1
- package/test-env/components/header/header_links/header_links.js +1 -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/grabOmnidirectional.js +41 -0
- package/test-env/components/icon/assets/transitionLeftIn.js +44 -0
- package/test-env/components/icon/assets/transitionLeftOut.js +44 -0
- package/test-env/components/icon/assets/transitionTopIn.js +44 -0
- package/test-env/components/icon/assets/transitionTopOut.js +44 -0
- package/test-env/components/icon/icon_map.js +5 -0
- package/test-env/components/inline_edit/inline_edit_form.js +49 -17
- package/test-env/components/inline_edit/inline_edit_text.js +22 -23
- package/test-env/components/inline_edit/inline_edit_title.js +22 -23
- 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 +3 -3
- package/test-env/components/list_group/list_group_item_extra_action.js +1 -1
- package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
- package/test-env/components/loading/loading_logo.js +1 -1
- package/test-env/components/markdown_editor/markdown_editor.js +1 -1
- package/test-env/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
- package/test-env/components/markdown_editor/markdown_editor_footer.js +1 -1
- package/test-env/components/markdown_editor/markdown_editor_toolbar.js +1 -1
- package/test-env/components/notification/notification_event.js +2 -2
- package/test-env/components/notification/notification_event_meta.js +1 -1
- package/test-env/components/page/page_header/page_header_content.js +1 -1
- package/test-env/components/panel/split_panel/split_panel.js +9 -7
- package/test-env/components/panel/split_panel/split_panel.styles.js +46 -0
- 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/suggest/suggest.js +1 -1
- package/test-env/components/suggest/suggest_item.js +1 -1
- package/test-env/components/table/table_header_button.js +1 -1
- package/test-env/components/text_truncate/utils.js +1 -1
- package/test-env/components/timeline/timeline_item_icon.js +1 -1
- package/test-env/components/toast/global_toast_list.js +53 -4
- package/test-env/components/toast/global_toast_list.styles.js +3 -2
- package/test-env/components/toast/toast.js +1 -1
- package/test-env/components/tool_tip/icon_tip.js +1 -1
- package/src/components/panel/_index.scss +0 -1
- package/src/components/panel/_panel.scss +0 -9
- package/src/components/panel/split_panel/_index.scss +0 -1
- package/src/components/panel/split_panel/_split_panel.scss +0 -21
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
var _excluded = ["title", "titleId"];
|
|
2
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5
|
+
/*
|
|
6
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
7
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
8
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
9
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
10
|
+
* Side Public License, v 1.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
// THIS IS A GENERATED FILE. DO NOT MODIFY MANUALLY. @see scripts/compile-icons.js
|
|
14
|
+
|
|
15
|
+
import * as React from 'react';
|
|
16
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
17
|
+
var EuiIconTransitionLeftIn = function EuiIconTransitionLeftIn(_ref) {
|
|
18
|
+
var title = _ref.title,
|
|
19
|
+
titleId = _ref.titleId,
|
|
20
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
21
|
+
return ___EmotionJSX("svg", _extends({
|
|
22
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
23
|
+
width: 16,
|
|
24
|
+
height: 16,
|
|
25
|
+
viewBox: "0 0 16 16",
|
|
26
|
+
"aria-labelledby": titleId
|
|
27
|
+
}, props), title ? ___EmotionJSX("title", {
|
|
28
|
+
id: titleId
|
|
29
|
+
}, title) : null, ___EmotionJSX("path", {
|
|
30
|
+
d: "M10.146 5.854a.5.5 0 0 1 .708-.708l2 2a.5.5 0 0 1 0 .708l-2 2a.5.5 0 0 1-.708-.708L11.293 8H7.5a.5.5 0 0 1 0-1h3.793l-1.147-1.146Z"
|
|
31
|
+
}), ___EmotionJSX("path", {
|
|
32
|
+
fillRule: "evenodd",
|
|
33
|
+
d: "M2 0h11a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2Zm2.707 1H5v1.293l-4 4V4.707L4.707 1ZM6 14V1h7a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1H6Zm-1-1.293V14H3.707L5 12.707Zm0-3v1.586L2.293 14H2a1 1 0 0 1-.838-.454L5 9.707Zm0-3v1.586l-4 4v-1.586l4-4Zm0-3v1.586l-4 4V7.707l4-4ZM3.293 1H2a1 1 0 0 0-1 1v1.293L3.293 1Z"
|
|
34
|
+
}));
|
|
35
|
+
};
|
|
36
|
+
export var icon = EuiIconTransitionLeftIn;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
var _excluded = ["title", "titleId"];
|
|
2
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5
|
+
/*
|
|
6
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
7
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
8
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
9
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
10
|
+
* Side Public License, v 1.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
// THIS IS A GENERATED FILE. DO NOT MODIFY MANUALLY. @see scripts/compile-icons.js
|
|
14
|
+
|
|
15
|
+
import * as React from 'react';
|
|
16
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
17
|
+
var EuiIconTransitionLeftOut = function EuiIconTransitionLeftOut(_ref) {
|
|
18
|
+
var title = _ref.title,
|
|
19
|
+
titleId = _ref.titleId,
|
|
20
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
21
|
+
return ___EmotionJSX("svg", _extends({
|
|
22
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
23
|
+
width: 16,
|
|
24
|
+
height: 16,
|
|
25
|
+
viewBox: "0 0 16 16",
|
|
26
|
+
"aria-labelledby": titleId
|
|
27
|
+
}, props), title ? ___EmotionJSX("title", {
|
|
28
|
+
id: titleId
|
|
29
|
+
}, title) : null, ___EmotionJSX("path", {
|
|
30
|
+
d: "M9.854 5.854a.5.5 0 0 0-.708-.708l-2 2a.5.5 0 0 0 0 .708l2 2a.5.5 0 0 0 .708-.708L8.707 8H12.5a.5.5 0 0 0 0-1H8.707l1.147-1.146Z"
|
|
31
|
+
}), ___EmotionJSX("path", {
|
|
32
|
+
fillRule: "evenodd",
|
|
33
|
+
d: "M2 0h11a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2Zm2.707 1H5v1.293l-4 4V4.707L4.707 1ZM6 14V1h7a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1H6Zm-1-1.293V14H3.707L5 12.707Zm0-3v1.586L2.293 14H2a1 1 0 0 1-.838-.454L5 9.707Zm0-3v1.586l-4 4v-1.586l4-4Zm0-3v1.586l-4 4V7.707l4-4ZM3.293 1H2a1 1 0 0 0-1 1v1.293L3.293 1Z"
|
|
34
|
+
}));
|
|
35
|
+
};
|
|
36
|
+
export var icon = EuiIconTransitionLeftOut;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
var _excluded = ["title", "titleId"];
|
|
2
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5
|
+
/*
|
|
6
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
7
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
8
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
9
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
10
|
+
* Side Public License, v 1.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
// THIS IS A GENERATED FILE. DO NOT MODIFY MANUALLY. @see scripts/compile-icons.js
|
|
14
|
+
|
|
15
|
+
import * as React from 'react';
|
|
16
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
17
|
+
var EuiIconTransitionTopIn = function EuiIconTransitionTopIn(_ref) {
|
|
18
|
+
var title = _ref.title,
|
|
19
|
+
titleId = _ref.titleId,
|
|
20
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
21
|
+
return ___EmotionJSX("svg", _extends({
|
|
22
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
23
|
+
width: 16,
|
|
24
|
+
height: 16,
|
|
25
|
+
viewBox: "0 0 16 16",
|
|
26
|
+
"aria-labelledby": titleId
|
|
27
|
+
}, props), title ? ___EmotionJSX("title", {
|
|
28
|
+
id: titleId
|
|
29
|
+
}, title) : null, ___EmotionJSX("path", {
|
|
30
|
+
d: "M9.146 10.146a.5.5 0 0 1 .708.708l-2 2a.5.5 0 0 1-.708 0l-2-2a.5.5 0 0 1 .708-.708L7 11.293V7.5a.5.5 0 0 1 1 0v3.793l1.146-1.147Z"
|
|
31
|
+
}), ___EmotionJSX("path", {
|
|
32
|
+
fillRule: "evenodd",
|
|
33
|
+
d: "M15 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2Zm-1 2.707V5h-1.293l-4-4h1.586L14 4.707ZM1 6h13v7a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V6Zm1.293-1H1V3.707L2.293 5Zm3 0H3.707L1 2.293V2a1 1 0 0 1 .455-.838L5.293 5Zm3 0H6.707l-4-4h1.586l4 4Zm3 0H9.707l-4-4h1.586l4 4ZM14 3.293V2a1 1 0 0 0-1-1h-1.293L14 3.293Z"
|
|
34
|
+
}));
|
|
35
|
+
};
|
|
36
|
+
export var icon = EuiIconTransitionTopIn;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
var _excluded = ["title", "titleId"];
|
|
2
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5
|
+
/*
|
|
6
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
7
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
8
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
9
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
10
|
+
* Side Public License, v 1.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
// THIS IS A GENERATED FILE. DO NOT MODIFY MANUALLY. @see scripts/compile-icons.js
|
|
14
|
+
|
|
15
|
+
import * as React from 'react';
|
|
16
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
17
|
+
var EuiIconTransitionTopOut = function EuiIconTransitionTopOut(_ref) {
|
|
18
|
+
var title = _ref.title,
|
|
19
|
+
titleId = _ref.titleId,
|
|
20
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
21
|
+
return ___EmotionJSX("svg", _extends({
|
|
22
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
23
|
+
width: 16,
|
|
24
|
+
height: 16,
|
|
25
|
+
viewBox: "0 0 16 16",
|
|
26
|
+
"aria-labelledby": titleId
|
|
27
|
+
}, props), title ? ___EmotionJSX("title", {
|
|
28
|
+
id: titleId
|
|
29
|
+
}, title) : null, ___EmotionJSX("path", {
|
|
30
|
+
d: "M9.146 9.854a.5.5 0 0 0 .708-.708l-2-2a.5.5 0 0 0-.708 0l-2 2a.5.5 0 1 0 .708.708L7 8.707V12.5a.5.5 0 0 0 1 0V8.707l1.146 1.147Z"
|
|
31
|
+
}), ___EmotionJSX("path", {
|
|
32
|
+
fillRule: "evenodd",
|
|
33
|
+
d: "M15 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2Zm-1 2.707V5h-1.293l-4-4h1.586L14 4.707ZM1 6h13v7a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V6Zm1.293-1H1V3.707L2.293 5Zm3 0H3.707L1 2.293V2a1 1 0 0 1 .455-.838L5.293 5Zm3 0H6.707l-4-4h1.586l4 4Zm3 0H9.707l-4-4h1.586l4 4ZM14 3.293V2a1 1 0 0 0-1-1h-1.293L14 3.293Z"
|
|
34
|
+
}));
|
|
35
|
+
};
|
|
36
|
+
export var icon = EuiIconTransitionTopOut;
|
|
@@ -262,7 +262,7 @@ EuiIconClass.propTypes = {
|
|
|
262
262
|
/**
|
|
263
263
|
* `Enum` is any of the named icons listed in the docs, `string` is usually a URL to an SVG file, and `elementType` is any React SVG component
|
|
264
264
|
*/
|
|
265
|
-
type: PropTypes.oneOfType([PropTypes.oneOf(["accessibility", "addDataApp", "advancedSettingsApp", "agentApp", "aggregate", "analyzeEvent", "annotation", "apmApp", "apmTrace", "appSearchApp", "apps", "arrowDown", "arrowLeft", "arrowRight", "arrowUp", "arrowStart", "arrowEnd", "article", "asterisk", "at", "auditbeatApp", "beaker", "bell", "bellSlash", "beta", "bolt", "boxesHorizontal", "boxesVertical", "branch", "branchUser", "broom", "brush", "bug", "bullseye", "calendar", "canvasApp", "casesApp", "check", "checkInCircleFilled", "cheer", "classificationJob", "clock", "cloudDrizzle", "cloudStormy", "cloudSunny", "cluster", "codeApp", "color", "compute", "console", "consoleApp", "container", "continuityAbove", "continuityAboveBelow", "continuityBelow", "continuityWithin", "controlsHorizontal", "controlsVertical", "copy", "copyClipboard", "createAdvancedJob", "createMultiMetricJob", "createPopulationJob", "createSingleMetricJob", "cross", "crossClusterReplicationApp", "crosshairs", "currency", "cut", "dashboardApp", "dataVisualizer", "database", "desktop", "devToolsApp", "discoverApp", "discuss", "document", "documentEdit", "documentation", "documents", "dot", "dotInCircle", "doubleArrowLeft", "doubleArrowRight", "download", "editorAlignCenter", "editorAlignLeft", "editorAlignRight", "editorBold", "editorChecklist", "editorCodeBlock", "editorComment", "editorDistributeHorizontal", "editorDistributeVertical", "editorHeading", "editorItalic", "editorItemAlignBottom", "editorItemAlignCenter", "editorItemAlignLeft", "editorItemAlignMiddle", "editorItemAlignRight", "editorItemAlignTop", "editorLink", "editorOrderedList", "editorPositionBottomLeft", "editorPositionBottomRight", "editorPositionTopLeft", "editorPositionTopRight", "editorRedo", "editorStrike", "editorTable", "editorUnderline", "editorUndo", "editorUnorderedList", "email", "empty", "emsApp", "eql", "eraser", "error", "exit", "expand", "expandMini", "exportAction", "eye", "eyeClosed", "faceHappy", "faceNeutral", "faceSad", "filebeatApp", "filter", "filterExclude", "filterIgnore", "filterInclude", "filterInCircle", "flag", "fleetApp", "fold", "folderCheck", "folderClosed", "folderExclamation", "folderOpen", "frameNext", "framePrevious", "fullScreen", "fullScreenExit", "function", "gear", "gisApp", "glasses", "globe", "grab", "grabHorizontal", "graphApp", "grid", "grokApp", "heart", "heartbeatApp", "heatmap", "help", "home", "iInCircle", "image", "importAction", "indexClose", "indexEdit", "indexFlush", "indexManagementApp", "indexMapping", "indexOpen", "indexPatternApp", "indexRollupApp", "indexRuntime", "indexSettings", "indexTemporary", "infinity", "inputOutput", "inspect", "invert", "ip", "key", "keyboard", "kqlField", "kqlFunction", "kqlOperand", "kqlSelector", "kqlValue", "kubernetesNode", "kubernetesPod", "launch", "layers", "lensApp", "lettering", "lineDashed", "lineDotted", "lineSolid", "link", "list", "listAdd", "lock", "lockOpen", "logoAWS", "logoAWSMono", "logoAerospike", "logoApache", "logoAppSearch", "logoAzure", "logoAzureMono", "logoBeats", "logoBusinessAnalytics", "logoCeph", "logoCloud", "logoCloudEnterprise", "logoCode", "logoCodesandbox", "logoCouchbase", "logoDocker", "logoDropwizard", "logoElastic", "logoElasticStack", "logoElasticsearch", "logoEnterpriseSearch", "logoEtcd", "logoGCP", "logoGCPMono", "logoGithub", "logoGmail", "logoGolang", "logoGoogleG", "logoHAproxy", "logoIBM", "logoIBMMono", "logoKafka", "logoKibana", "logoKubernetes", "logoLogging", "logoLogstash", "logoMaps", "logoMemcached", "logoMetrics", "logoMongodb", "logoMySQL", "logoNginx", "logoObservability", "logoOsquery", "logoPhp", "logoPostgres", "logoPrometheus", "logoRabbitmq", "logoRedis", "logoSecurity", "logoSiteSearch", "logoSketch", "logoSlack", "logoUptime", "logoVulnerabilityManagement", "logoWebhook", "logoWindows", "logoWorkplaceSearch", "logsApp", "logstashFilter", "logstashIf", "logstashInput", "logstashOutput", "logstashQueue", "machineLearningApp", "magnet", "magnifyWithExclamation", "magnifyWithMinus", "magnifyWithPlus", "managementApp", "mapMarker", "memory", "menu", "menuDown", "menuLeft", "menuRight", "menuUp", "merge", "metricbeatApp", "metricsApp", "minimize", "minus", "minusInCircle", "minusInCircleFilled", "mobile", "monitoringApp", "moon", "namespace", "nested", "node", "notebookApp", "number", "offline", "online", "outlierDetectionJob", "package", "packetbeatApp", "pageSelect", "pagesSelect", "paperClip", "partial", "pause", "payment", "pencil", "percent", "pin", "pinFilled", "pipelineApp", "pivot", "play", "playFilled", "plus", "plusInCircle", "plusInCircleFilled", "popout", "push", "questionInCircle", "quote", "recentlyViewedApp", "refresh", "regressionJob", "reporter", "reportingApp", "returnKey", "save", "savedObjectsApp", "scale", "search", "searchProfilerApp", "securityAnalyticsApp", "securityApp", "securitySignal", "securitySignalDetected", "securitySignalResolved", "sessionViewer", "shard", "share", "snowflake", "sortAscending", "sortDescending", "sortDown", "sortLeft", "sortRight", "sortUp", "sortable", "spaces", "spacesApp", "sparkles", "sqlApp", "starEmpty", "starEmptySpace", "starFilled", "starFilledSpace", "starMinusEmpty", "starMinusFilled", "starPlusEmpty", "starPlusFilled", "stats", "stop", "stopFilled", "stopSlash", "storage", "string", "submodule", "sun", "swatchInput", "symlink", "tableDensityCompact", "tableDensityExpanded", "tableDensityNormal", "tableOfContents", "tag", "tear", "temperature", "timeline", "timelineWithArrow", "timelionApp", "timeRefresh", "timeslider", "training", "trash", "unfold", "unlink", "upgradeAssistantApp", "uptimeApp", "user", "userAvatar", "users", "usersRolesApp", "vector", "videoPlayer", "visArea", "visAreaStacked", "visBarHorizontal", "visBarHorizontalStacked", "visBarVertical", "visBarVerticalStacked", "visGauge", "visGoal", "visLine", "visMapCoordinate", "visMapRegion", "visMetric", "visPie", "visTable", "visTagCloud", "visText", "visTimelion", "visVega", "visVisualBuilder", "visualizeApp", "vulnerabilityManagementApp", "warning", "alert", "watchesApp", "wordWrap", "wordWrapDisabled", "workplaceSearchApp", "wrench", "tokenAlias", "tokenAnnotation", "tokenArray", "tokenBinary", "tokenBoolean", "tokenClass", "tokenCompletionSuggester", "tokenConstant", "tokenDate", "tokenDenseVector", "tokenElement", "tokenEnum", "tokenEnumMember", "tokenEvent", "tokenException", "tokenField", "tokenFile", "tokenFlattened", "tokenFunction", "tokenGeo", "tokenHistogram", "tokenInterface", "tokenIP", "tokenJoin", "tokenKey", "tokenKeyword", "tokenMethod", "tokenMetricCounter", "tokenMetricGauge", "tokenModule", "tokenNamespace", "tokenNested", "tokenNull", "tokenNumber", "tokenObject", "tokenOperator", "tokenPackage", "tokenParameter", "tokenPercolator", "tokenProperty", "tokenRange", "tokenRankFeature", "tokenRankFeatures", "tokenRepo", "tokenSearchType", "tokenShape", "tokenString", "tokenStruct", "tokenSymbol", "tokenTag", "tokenText", "tokenTokenCount", "tokenVariable"]).isRequired, PropTypes.string.isRequired, PropTypes.elementType.isRequired]).isRequired,
|
|
265
|
+
type: PropTypes.oneOfType([PropTypes.oneOf(["accessibility", "addDataApp", "advancedSettingsApp", "agentApp", "aggregate", "analyzeEvent", "annotation", "apmApp", "apmTrace", "appSearchApp", "apps", "arrowDown", "arrowLeft", "arrowRight", "arrowUp", "arrowStart", "arrowEnd", "article", "asterisk", "at", "auditbeatApp", "beaker", "bell", "bellSlash", "beta", "bolt", "boxesHorizontal", "boxesVertical", "branch", "branchUser", "broom", "brush", "bug", "bullseye", "calendar", "canvasApp", "casesApp", "check", "checkInCircleFilled", "cheer", "classificationJob", "clock", "cloudDrizzle", "cloudStormy", "cloudSunny", "cluster", "codeApp", "color", "compute", "console", "consoleApp", "container", "continuityAbove", "continuityAboveBelow", "continuityBelow", "continuityWithin", "controlsHorizontal", "controlsVertical", "copy", "copyClipboard", "createAdvancedJob", "createMultiMetricJob", "createPopulationJob", "createSingleMetricJob", "cross", "crossClusterReplicationApp", "crosshairs", "currency", "cut", "dashboardApp", "dataVisualizer", "database", "desktop", "devToolsApp", "discoverApp", "discuss", "document", "documentEdit", "documentation", "documents", "dot", "dotInCircle", "doubleArrowLeft", "doubleArrowRight", "download", "editorAlignCenter", "editorAlignLeft", "editorAlignRight", "editorBold", "editorChecklist", "editorCodeBlock", "editorComment", "editorDistributeHorizontal", "editorDistributeVertical", "editorHeading", "editorItalic", "editorItemAlignBottom", "editorItemAlignCenter", "editorItemAlignLeft", "editorItemAlignMiddle", "editorItemAlignRight", "editorItemAlignTop", "editorLink", "editorOrderedList", "editorPositionBottomLeft", "editorPositionBottomRight", "editorPositionTopLeft", "editorPositionTopRight", "editorRedo", "editorStrike", "editorTable", "editorUnderline", "editorUndo", "editorUnorderedList", "email", "empty", "emsApp", "eql", "eraser", "error", "exit", "expand", "expandMini", "exportAction", "eye", "eyeClosed", "faceHappy", "faceNeutral", "faceSad", "filebeatApp", "filter", "filterExclude", "filterIgnore", "filterInclude", "filterInCircle", "flag", "fleetApp", "fold", "folderCheck", "folderClosed", "folderExclamation", "folderOpen", "frameNext", "framePrevious", "fullScreen", "fullScreenExit", "function", "gear", "gisApp", "glasses", "globe", "grab", "grabHorizontal", "grabOmnidirectional", "graphApp", "grid", "grokApp", "heart", "heartbeatApp", "heatmap", "help", "home", "iInCircle", "image", "importAction", "indexClose", "indexEdit", "indexFlush", "indexManagementApp", "indexMapping", "indexOpen", "indexPatternApp", "indexRollupApp", "indexRuntime", "indexSettings", "indexTemporary", "infinity", "inputOutput", "inspect", "invert", "ip", "key", "keyboard", "kqlField", "kqlFunction", "kqlOperand", "kqlSelector", "kqlValue", "kubernetesNode", "kubernetesPod", "launch", "layers", "lensApp", "lettering", "lineDashed", "lineDotted", "lineSolid", "link", "list", "listAdd", "lock", "lockOpen", "logoAWS", "logoAWSMono", "logoAerospike", "logoApache", "logoAppSearch", "logoAzure", "logoAzureMono", "logoBeats", "logoBusinessAnalytics", "logoCeph", "logoCloud", "logoCloudEnterprise", "logoCode", "logoCodesandbox", "logoCouchbase", "logoDocker", "logoDropwizard", "logoElastic", "logoElasticStack", "logoElasticsearch", "logoEnterpriseSearch", "logoEtcd", "logoGCP", "logoGCPMono", "logoGithub", "logoGmail", "logoGolang", "logoGoogleG", "logoHAproxy", "logoIBM", "logoIBMMono", "logoKafka", "logoKibana", "logoKubernetes", "logoLogging", "logoLogstash", "logoMaps", "logoMemcached", "logoMetrics", "logoMongodb", "logoMySQL", "logoNginx", "logoObservability", "logoOsquery", "logoPhp", "logoPostgres", "logoPrometheus", "logoRabbitmq", "logoRedis", "logoSecurity", "logoSiteSearch", "logoSketch", "logoSlack", "logoUptime", "logoVulnerabilityManagement", "logoWebhook", "logoWindows", "logoWorkplaceSearch", "logsApp", "logstashFilter", "logstashIf", "logstashInput", "logstashOutput", "logstashQueue", "machineLearningApp", "magnet", "magnifyWithExclamation", "magnifyWithMinus", "magnifyWithPlus", "managementApp", "mapMarker", "memory", "menu", "menuDown", "menuLeft", "menuRight", "menuUp", "merge", "metricbeatApp", "metricsApp", "minimize", "minus", "minusInCircle", "minusInCircleFilled", "mobile", "monitoringApp", "moon", "namespace", "nested", "node", "notebookApp", "number", "offline", "online", "outlierDetectionJob", "package", "packetbeatApp", "pageSelect", "pagesSelect", "paperClip", "partial", "pause", "payment", "pencil", "percent", "pin", "pinFilled", "pipelineApp", "pivot", "play", "playFilled", "plus", "plusInCircle", "plusInCircleFilled", "popout", "push", "questionInCircle", "quote", "recentlyViewedApp", "refresh", "regressionJob", "reporter", "reportingApp", "returnKey", "save", "savedObjectsApp", "scale", "search", "searchProfilerApp", "securityAnalyticsApp", "securityApp", "securitySignal", "securitySignalDetected", "securitySignalResolved", "sessionViewer", "shard", "share", "snowflake", "sortAscending", "sortDescending", "sortDown", "sortLeft", "sortRight", "sortUp", "sortable", "spaces", "spacesApp", "sparkles", "sqlApp", "starEmpty", "starEmptySpace", "starFilled", "starFilledSpace", "starMinusEmpty", "starMinusFilled", "starPlusEmpty", "starPlusFilled", "stats", "stop", "stopFilled", "stopSlash", "storage", "string", "submodule", "sun", "swatchInput", "symlink", "tableDensityCompact", "tableDensityExpanded", "tableDensityNormal", "tableOfContents", "tag", "tear", "temperature", "timeline", "timelineWithArrow", "timelionApp", "timeRefresh", "timeslider", "training", "transitionLeftIn", "transitionLeftOut", "transitionTopIn", "transitionTopOut", "trash", "unfold", "unlink", "upgradeAssistantApp", "uptimeApp", "user", "userAvatar", "users", "usersRolesApp", "vector", "videoPlayer", "visArea", "visAreaStacked", "visBarHorizontal", "visBarHorizontalStacked", "visBarVertical", "visBarVerticalStacked", "visGauge", "visGoal", "visLine", "visMapCoordinate", "visMapRegion", "visMetric", "visPie", "visTable", "visTagCloud", "visText", "visTimelion", "visVega", "visVisualBuilder", "visualizeApp", "vulnerabilityManagementApp", "warning", "alert", "watchesApp", "wordWrap", "wordWrapDisabled", "workplaceSearchApp", "wrench", "tokenAlias", "tokenAnnotation", "tokenArray", "tokenBinary", "tokenBoolean", "tokenClass", "tokenCompletionSuggester", "tokenConstant", "tokenDate", "tokenDenseVector", "tokenElement", "tokenEnum", "tokenEnumMember", "tokenEvent", "tokenException", "tokenField", "tokenFile", "tokenFlattened", "tokenFunction", "tokenGeo", "tokenHistogram", "tokenInterface", "tokenIP", "tokenJoin", "tokenKey", "tokenKeyword", "tokenMethod", "tokenMetricCounter", "tokenMetricGauge", "tokenModule", "tokenNamespace", "tokenNested", "tokenNull", "tokenNumber", "tokenObject", "tokenOperator", "tokenPackage", "tokenParameter", "tokenPercolator", "tokenProperty", "tokenRange", "tokenRankFeature", "tokenRankFeatures", "tokenRepo", "tokenSearchType", "tokenShape", "tokenString", "tokenStruct", "tokenSymbol", "tokenTag", "tokenText", "tokenTokenCount", "tokenVariable"]).isRequired, PropTypes.string.isRequired, PropTypes.elementType.isRequired]).isRequired,
|
|
266
266
|
/**
|
|
267
267
|
* One of EUI's color palette or a valid CSS color value https://developer.mozilla.org/en-US/docs/Web/CSS/color_value.
|
|
268
268
|
* Note that coloring only works if your SVG is removed of fill attributes.
|
|
@@ -160,6 +160,7 @@ export var typeToPathMap = {
|
|
|
160
160
|
globe: 'globe',
|
|
161
161
|
grab: 'grab',
|
|
162
162
|
grabHorizontal: 'grab_horizontal',
|
|
163
|
+
grabOmnidirectional: 'grabOmnidirectional',
|
|
163
164
|
graphApp: 'app_graph',
|
|
164
165
|
grid: 'grid',
|
|
165
166
|
grokApp: 'app_grok',
|
|
@@ -389,6 +390,10 @@ export var typeToPathMap = {
|
|
|
389
390
|
timeRefresh: 'timeRefresh',
|
|
390
391
|
timeslider: 'timeslider',
|
|
391
392
|
training: 'training',
|
|
393
|
+
transitionLeftIn: 'transitionLeftIn',
|
|
394
|
+
transitionLeftOut: 'transitionLeftOut',
|
|
395
|
+
transitionTopIn: 'transitionTopIn',
|
|
396
|
+
transitionTopOut: 'transitionTopOut',
|
|
392
397
|
trash: 'trash',
|
|
393
398
|
unfold: 'unfold',
|
|
394
399
|
unlink: 'unlink',
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
var _excluded = ["className", "children", "sizes", "defaultValue", "value", "onChange", "onCancel", "placeholder", "inputAriaLabel", "startWithEditOpen", "readModeProps", "editModeProps", "isLoading", "isInvalid", "onSave", "isReadOnly"];
|
|
2
3
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
4
|
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
4
5
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
@@ -9,6 +10,8 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
9
10
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
10
11
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
11
12
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
14
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12
15
|
/*
|
|
13
16
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
14
17
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -17,7 +20,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
17
20
|
* Side Public License, v 1.
|
|
18
21
|
*/
|
|
19
22
|
|
|
20
|
-
import React, { useState, useRef, useEffect } from 'react';
|
|
23
|
+
import React, { useState, useRef, useEffect, useMemo } from 'react';
|
|
21
24
|
import PropTypes from "prop-types";
|
|
22
25
|
import classNames from 'classnames';
|
|
23
26
|
import { EuiFormRow, EuiFieldText } from '../form';
|
|
@@ -49,8 +52,14 @@ export var EuiInlineEditForm = function EuiInlineEditForm(_ref) {
|
|
|
49
52
|
var className = _ref.className,
|
|
50
53
|
children = _ref.children,
|
|
51
54
|
sizes = _ref.sizes,
|
|
52
|
-
defaultValue = _ref.defaultValue,
|
|
53
|
-
|
|
55
|
+
_ref$defaultValue = _ref.defaultValue,
|
|
56
|
+
defaultValue = _ref$defaultValue === void 0 ? '' : _ref$defaultValue,
|
|
57
|
+
_ref$value = _ref.value,
|
|
58
|
+
controlledValue = _ref$value === void 0 ? '' : _ref$value,
|
|
59
|
+
_onChange = _ref.onChange,
|
|
60
|
+
onCancel = _ref.onCancel,
|
|
61
|
+
_ref$placeholder = _ref.placeholder,
|
|
62
|
+
placeholder = _ref$placeholder === void 0 ? '' : _ref$placeholder,
|
|
54
63
|
inputAriaLabel = _ref.inputAriaLabel,
|
|
55
64
|
startWithEditOpen = _ref.startWithEditOpen,
|
|
56
65
|
readModeProps = _ref.readModeProps,
|
|
@@ -59,7 +68,8 @@ export var EuiInlineEditForm = function EuiInlineEditForm(_ref) {
|
|
|
59
68
|
isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading,
|
|
60
69
|
isInvalid = _ref.isInvalid,
|
|
61
70
|
onSave = _ref.onSave,
|
|
62
|
-
isReadOnly = _ref.isReadOnly
|
|
71
|
+
isReadOnly = _ref.isReadOnly,
|
|
72
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
63
73
|
var classes = classNames('euiInlineEdit', className);
|
|
64
74
|
var euiTheme = useEuiTheme();
|
|
65
75
|
var _euiFormVariables = euiFormVariables(euiTheme),
|
|
@@ -86,10 +96,19 @@ export var EuiInlineEditForm = function EuiInlineEditForm(_ref) {
|
|
|
86
96
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
87
97
|
editModeValue = _useState4[0],
|
|
88
98
|
setEditModeValue = _useState4[1];
|
|
89
|
-
|
|
99
|
+
|
|
100
|
+
// readModeValue accepts controlledValue here to provide a reliable backup for the onCancel callback
|
|
101
|
+
var _useState5 = useState(controlledValue || defaultValue),
|
|
90
102
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
91
103
|
readModeValue = _useState6[0],
|
|
92
104
|
setReadModeValue = _useState6[1];
|
|
105
|
+
var value = useMemo(function () {
|
|
106
|
+
if (controlledValue) {
|
|
107
|
+
return controlledValue;
|
|
108
|
+
} else {
|
|
109
|
+
return isEditing ? editModeValue : readModeValue || placeholder;
|
|
110
|
+
}
|
|
111
|
+
}, [controlledValue, editModeValue, readModeValue, isEditing, placeholder]);
|
|
93
112
|
var readModeStyles = euiInlineEditReadModeStyles(euiTheme);
|
|
94
113
|
var readModeCssStyles = [readModeStyles.euiInlineEditReadMode, isReadOnly && readModeStyles.isReadOnly, placeholder && !readModeValue && readModeStyles.hasPlaceholder];
|
|
95
114
|
var activateEditMode = function activateEditMode() {
|
|
@@ -102,6 +121,7 @@ export var EuiInlineEditForm = function EuiInlineEditForm(_ref) {
|
|
|
102
121
|
};
|
|
103
122
|
var cancelInlineEdit = function cancelInlineEdit() {
|
|
104
123
|
setEditModeValue(readModeValue);
|
|
124
|
+
onCancel === null || onCancel === void 0 ? void 0 : onCancel(readModeValue);
|
|
105
125
|
setIsEditing(false);
|
|
106
126
|
requestAnimationFrame(function () {
|
|
107
127
|
var _readModeFocusRef$cur;
|
|
@@ -118,7 +138,7 @@ export var EuiInlineEditForm = function EuiInlineEditForm(_ref) {
|
|
|
118
138
|
_context.next = 12;
|
|
119
139
|
break;
|
|
120
140
|
}
|
|
121
|
-
onSaveReturn = onSave(
|
|
141
|
+
onSaveReturn = onSave(value);
|
|
122
142
|
if (!(onSaveReturn instanceof Promise)) {
|
|
123
143
|
_context.next = 8;
|
|
124
144
|
break;
|
|
@@ -182,18 +202,19 @@ export var EuiInlineEditForm = function EuiInlineEditForm(_ref) {
|
|
|
182
202
|
error: isInvalid && (editModeProps === null || editModeProps === void 0 ? void 0 : (_editModeProps$formRo = editModeProps.formRowProps) === null || _editModeProps$formRo === void 0 ? void 0 : _editModeProps$formRo.error)
|
|
183
203
|
}, editModeProps === null || editModeProps === void 0 ? void 0 : editModeProps.formRowProps), ___EmotionJSX(EuiFieldText, _extends({
|
|
184
204
|
fullWidth: true,
|
|
185
|
-
value:
|
|
205
|
+
value: value,
|
|
186
206
|
"aria-label": inputAriaLabel,
|
|
187
207
|
compressed: sizes.compressed,
|
|
188
208
|
isInvalid: isInvalid,
|
|
189
209
|
isLoading: isLoading,
|
|
190
210
|
"data-test-subj": "euiInlineEditModeInput",
|
|
191
|
-
placeholder: placeholder
|
|
211
|
+
placeholder: placeholder || undefined // Opt not to render the prop entirely if an empty string is passed
|
|
192
212
|
}, editModeProps === null || editModeProps === void 0 ? void 0 : editModeProps.inputProps, {
|
|
193
213
|
inputRef: setEditModeRefs,
|
|
194
214
|
onChange: function onChange(e) {
|
|
195
215
|
var _editModeProps$inputP2, _editModeProps$inputP3;
|
|
196
216
|
setEditModeValue(e.target.value);
|
|
217
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange(e);
|
|
197
218
|
editModeProps === null || editModeProps === void 0 ? void 0 : (_editModeProps$inputP2 = editModeProps.inputProps) === null || _editModeProps$inputP2 === void 0 ? void 0 : (_editModeProps$inputP3 = _editModeProps$inputP2.onChange) === null || _editModeProps$inputP3 === void 0 ? void 0 : _editModeProps$inputP3.call(_editModeProps$inputP2, e);
|
|
198
219
|
},
|
|
199
220
|
onKeyDown: function onKeyDown(e) {
|
|
@@ -267,7 +288,7 @@ export var EuiInlineEditForm = function EuiInlineEditForm(_ref) {
|
|
|
267
288
|
"data-test-subj": "euiInlineReadModeButton",
|
|
268
289
|
disabled: isReadOnly,
|
|
269
290
|
css: readModeCssStyles,
|
|
270
|
-
title:
|
|
291
|
+
title: value
|
|
271
292
|
}, readModeProps, {
|
|
272
293
|
buttonRef: setReadModeRefs,
|
|
273
294
|
"aria-describedby": classNames(readModeDescribedById, readModeProps === null || readModeProps === void 0 ? void 0 : readModeProps['aria-describedby']),
|
|
@@ -276,23 +297,22 @@ export var EuiInlineEditForm = function EuiInlineEditForm(_ref) {
|
|
|
276
297
|
activateEditMode();
|
|
277
298
|
readModeProps === null || readModeProps === void 0 ? void 0 : (_readModeProps$onClic = readModeProps.onClick) === null || _readModeProps$onClic === void 0 ? void 0 : _readModeProps$onClic.call(readModeProps, e);
|
|
278
299
|
}
|
|
279
|
-
}), children(
|
|
300
|
+
}), children(value)), ___EmotionJSX("span", {
|
|
280
301
|
id: readModeDescribedById,
|
|
281
302
|
hidden: true
|
|
282
303
|
}, !isReadOnly && ___EmotionJSX(EuiI18n, {
|
|
283
304
|
token: "euiInlineEditForm.activateEditModeDescription",
|
|
284
305
|
default: "Click to edit this text inline."
|
|
285
306
|
})));
|
|
286
|
-
return ___EmotionJSX("div", {
|
|
307
|
+
return ___EmotionJSX("div", _extends({
|
|
287
308
|
className: classes
|
|
288
|
-
}, isEditing ? editModeForm : readModeElement);
|
|
309
|
+
}, rest), isEditing ? editModeForm : readModeElement);
|
|
289
310
|
};
|
|
290
311
|
EuiInlineEditForm.propTypes = {
|
|
291
312
|
className: PropTypes.string,
|
|
292
313
|
"aria-label": PropTypes.string,
|
|
293
314
|
"data-test-subj": PropTypes.string,
|
|
294
315
|
css: PropTypes.any,
|
|
295
|
-
defaultValue: PropTypes.string.isRequired,
|
|
296
316
|
placeholder: PropTypes.string,
|
|
297
317
|
/**
|
|
298
318
|
* Callback that fires when a user clicks the save button.
|
|
@@ -340,6 +360,22 @@ EuiInlineEditForm.propTypes = {
|
|
|
340
360
|
* Locks inline edit in read mode and displays the text value
|
|
341
361
|
*/
|
|
342
362
|
isReadOnly: PropTypes.bool,
|
|
363
|
+
/**
|
|
364
|
+
* Initial inline edit text value
|
|
365
|
+
*/
|
|
366
|
+
defaultValue: PropTypes.string,
|
|
367
|
+
/**
|
|
368
|
+
* To use inline edit as a controlled component, continuously pass the value via this prop
|
|
369
|
+
*/
|
|
370
|
+
value: PropTypes.string,
|
|
371
|
+
/**
|
|
372
|
+
* Callback required to receive and update `value` based on user input
|
|
373
|
+
*/
|
|
374
|
+
onChange: PropTypes.func,
|
|
375
|
+
/**
|
|
376
|
+
* Callback required to reset `value` to the previous read mode text value.
|
|
377
|
+
*/
|
|
378
|
+
onCancel: PropTypes.func,
|
|
343
379
|
/**
|
|
344
380
|
* Form sizes
|
|
345
381
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
var _excluded = ["className", "size", "
|
|
2
|
+
var _excluded = ["className", "size", "readModeProps", "isReadOnly"];
|
|
3
3
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
4
|
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; }
|
|
5
5
|
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; }
|
|
@@ -28,14 +28,7 @@ export var EuiInlineEditText = function EuiInlineEditText(_ref) {
|
|
|
28
28
|
var className = _ref.className,
|
|
29
29
|
_ref$size = _ref.size,
|
|
30
30
|
size = _ref$size === void 0 ? 'm' : _ref$size,
|
|
31
|
-
defaultValue = _ref.defaultValue,
|
|
32
|
-
placeholder = _ref.placeholder,
|
|
33
|
-
inputAriaLabel = _ref.inputAriaLabel,
|
|
34
|
-
startWithEditOpen = _ref.startWithEditOpen,
|
|
35
31
|
_readModeProps = _ref.readModeProps,
|
|
36
|
-
editModeProps = _ref.editModeProps,
|
|
37
|
-
isLoading = _ref.isLoading,
|
|
38
|
-
isInvalid = _ref.isInvalid,
|
|
39
32
|
isReadOnly = _ref.isReadOnly,
|
|
40
33
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
41
34
|
var classes = classNames('euiInlineEditText', className);
|
|
@@ -50,22 +43,13 @@ export var EuiInlineEditText = function EuiInlineEditText(_ref) {
|
|
|
50
43
|
role: 'paragraph'
|
|
51
44
|
});
|
|
52
45
|
}, [_readModeProps, isReadOnly]);
|
|
53
|
-
var formProps = {
|
|
54
|
-
sizes: sizes,
|
|
55
|
-
defaultValue: defaultValue,
|
|
56
|
-
placeholder: placeholder,
|
|
57
|
-
inputAriaLabel: inputAriaLabel,
|
|
58
|
-
startWithEditOpen: startWithEditOpen,
|
|
59
|
-
readModeProps: readModeProps,
|
|
60
|
-
editModeProps: editModeProps,
|
|
61
|
-
isLoading: isLoading,
|
|
62
|
-
isInvalid: isInvalid,
|
|
63
|
-
isReadOnly: isReadOnly
|
|
64
|
-
};
|
|
65
46
|
return ___EmotionJSX(EuiInlineEditForm, _extends({
|
|
66
47
|
className: classes,
|
|
67
|
-
css: cssStyles
|
|
68
|
-
|
|
48
|
+
css: cssStyles,
|
|
49
|
+
readModeProps: readModeProps,
|
|
50
|
+
isReadOnly: isReadOnly,
|
|
51
|
+
sizes: sizes
|
|
52
|
+
}, rest), function (textReadModeValue) {
|
|
69
53
|
return ___EmotionJSX(EuiText, {
|
|
70
54
|
size: size,
|
|
71
55
|
className: "eui-textTruncate"
|
|
@@ -77,7 +61,6 @@ EuiInlineEditText.propTypes = {
|
|
|
77
61
|
"aria-label": PropTypes.string,
|
|
78
62
|
"data-test-subj": PropTypes.string,
|
|
79
63
|
css: PropTypes.any,
|
|
80
|
-
defaultValue: PropTypes.string.isRequired,
|
|
81
64
|
placeholder: PropTypes.string,
|
|
82
65
|
/**
|
|
83
66
|
* Callback that fires when a user clicks the save button.
|
|
@@ -125,6 +108,22 @@ EuiInlineEditText.propTypes = {
|
|
|
125
108
|
* Locks inline edit in read mode and displays the text value
|
|
126
109
|
*/
|
|
127
110
|
isReadOnly: PropTypes.bool,
|
|
111
|
+
/**
|
|
112
|
+
* Initial inline edit text value
|
|
113
|
+
*/
|
|
114
|
+
defaultValue: PropTypes.string,
|
|
115
|
+
/**
|
|
116
|
+
* To use inline edit as a controlled component, continuously pass the value via this prop
|
|
117
|
+
*/
|
|
118
|
+
value: PropTypes.string,
|
|
119
|
+
/**
|
|
120
|
+
* Callback required to receive and update `value` based on user input
|
|
121
|
+
*/
|
|
122
|
+
onChange: PropTypes.func,
|
|
123
|
+
/**
|
|
124
|
+
* Callback required to reset `value` to the previous read mode text value.
|
|
125
|
+
*/
|
|
126
|
+
onCancel: PropTypes.func,
|
|
128
127
|
/**
|
|
129
128
|
* Text size level
|
|
130
129
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
var _excluded = ["className", "size", "heading", "
|
|
2
|
+
var _excluded = ["className", "size", "heading", "readModeProps", "isReadOnly"];
|
|
3
3
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
4
|
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; }
|
|
5
5
|
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; }
|
|
@@ -30,14 +30,7 @@ export var EuiInlineEditTitle = function EuiInlineEditTitle(_ref) {
|
|
|
30
30
|
_ref$size = _ref.size,
|
|
31
31
|
size = _ref$size === void 0 ? 'm' : _ref$size,
|
|
32
32
|
heading = _ref.heading,
|
|
33
|
-
defaultValue = _ref.defaultValue,
|
|
34
|
-
placeholder = _ref.placeholder,
|
|
35
|
-
inputAriaLabel = _ref.inputAriaLabel,
|
|
36
|
-
startWithEditOpen = _ref.startWithEditOpen,
|
|
37
33
|
_readModeProps = _ref.readModeProps,
|
|
38
|
-
editModeProps = _ref.editModeProps,
|
|
39
|
-
isLoading = _ref.isLoading,
|
|
40
|
-
isInvalid = _ref.isInvalid,
|
|
41
34
|
isReadOnly = _ref.isReadOnly,
|
|
42
35
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
43
36
|
var classes = classNames('euiInlineEditTitle', className);
|
|
@@ -57,22 +50,13 @@ export var EuiInlineEditTitle = function EuiInlineEditTitle(_ref) {
|
|
|
57
50
|
role: 'paragraph'
|
|
58
51
|
});
|
|
59
52
|
}, [_readModeProps, isReadOnly, heading]);
|
|
60
|
-
var formProps = {
|
|
61
|
-
sizes: sizes,
|
|
62
|
-
defaultValue: defaultValue,
|
|
63
|
-
placeholder: placeholder,
|
|
64
|
-
inputAriaLabel: inputAriaLabel,
|
|
65
|
-
startWithEditOpen: startWithEditOpen,
|
|
66
|
-
readModeProps: readModeProps,
|
|
67
|
-
editModeProps: editModeProps,
|
|
68
|
-
isLoading: isLoading,
|
|
69
|
-
isInvalid: isInvalid,
|
|
70
|
-
isReadOnly: isReadOnly
|
|
71
|
-
};
|
|
72
53
|
return ___EmotionJSX(EuiInlineEditForm, _extends({
|
|
73
54
|
css: cssStyles,
|
|
74
|
-
className: classes
|
|
75
|
-
|
|
55
|
+
className: classes,
|
|
56
|
+
readModeProps: readModeProps,
|
|
57
|
+
isReadOnly: isReadOnly,
|
|
58
|
+
sizes: sizes
|
|
59
|
+
}, rest), function (titleReadModeValue) {
|
|
76
60
|
return ___EmotionJSX(EuiTitle, {
|
|
77
61
|
size: size,
|
|
78
62
|
className: "eui-textTruncate"
|
|
@@ -86,7 +70,6 @@ EuiInlineEditTitle.propTypes = {
|
|
|
86
70
|
"aria-label": PropTypes.string,
|
|
87
71
|
"data-test-subj": PropTypes.string,
|
|
88
72
|
css: PropTypes.any,
|
|
89
|
-
defaultValue: PropTypes.string.isRequired,
|
|
90
73
|
placeholder: PropTypes.string,
|
|
91
74
|
/**
|
|
92
75
|
* Callback that fires when a user clicks the save button.
|
|
@@ -134,6 +117,22 @@ EuiInlineEditTitle.propTypes = {
|
|
|
134
117
|
* Locks inline edit in read mode and displays the text value
|
|
135
118
|
*/
|
|
136
119
|
isReadOnly: PropTypes.bool,
|
|
120
|
+
/**
|
|
121
|
+
* Initial inline edit text value
|
|
122
|
+
*/
|
|
123
|
+
defaultValue: PropTypes.string,
|
|
124
|
+
/**
|
|
125
|
+
* To use inline edit as a controlled component, continuously pass the value via this prop
|
|
126
|
+
*/
|
|
127
|
+
value: PropTypes.string,
|
|
128
|
+
/**
|
|
129
|
+
* Callback required to receive and update `value` based on user input
|
|
130
|
+
*/
|
|
131
|
+
onChange: PropTypes.func,
|
|
132
|
+
/**
|
|
133
|
+
* Callback required to reset `value` to the previous read mode text value.
|
|
134
|
+
*/
|
|
135
|
+
onCancel: PropTypes.func,
|
|
137
136
|
/**
|
|
138
137
|
* Title size level
|
|
139
138
|
*/
|