@elastic/eui 64.0.0 → 65.0.1
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 +330 -330
- package/dist/eui_charts_theme.js.map +1 -1
- package/dist/eui_theme_dark.css +217 -1614
- package/dist/eui_theme_dark.json +0 -32
- package/dist/eui_theme_dark.json.d.ts +0 -32
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +244 -1641
- package/dist/eui_theme_light.json +0 -32
- package/dist/eui_theme_light.json.d.ts +0 -32
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/accessibility/screen_reader_only/screen_reader_only.styles.js +2 -1
- package/es/components/accessibility/skip_link/skip_link.js +4 -54
- package/es/components/accordion/accordion.js +2 -1
- package/es/components/accordion/accordion.styles.js +17 -27
- package/es/components/badge/beta_badge/beta_badge.js +16 -3
- package/es/components/basic_table/basic_table.js +1 -1
- package/es/components/basic_table/collapsed_item_actions.js +2 -3
- package/es/components/basic_table/in_memory_table.js +1 -1
- package/es/components/beacon/beacon.styles.js +2 -2
- package/es/components/breadcrumbs/breadcrumb.styles.js +2 -2
- package/es/components/button/button.js +112 -215
- package/es/components/button/button_display/_button_display.js +90 -40
- package/es/components/button/button_display/_button_display.styles.js +7 -16
- package/es/components/button/button_display/_button_display_content.js +6 -3
- package/es/components/button/button_display/_button_display_content.styles.js +7 -17
- package/es/components/button/button_empty/button_empty.js +63 -53
- package/es/components/button/button_empty/index.js +1 -1
- package/es/components/button/button_group/button_group.js +4 -12
- package/es/components/button/button_group/button_group_button.js +14 -4
- package/es/components/button/button_icon/button_icon.js +61 -42
- package/es/components/call_out/call_out.styles.js +2 -1
- package/es/components/card/card.js +173 -89
- package/es/components/card/card.styles.js +136 -0
- package/es/components/card/card_select/card_select.js +133 -0
- package/es/components/card/card_select/card_select.styles.js +25 -0
- package/es/components/card/card_select/index.js +8 -0
- package/es/components/card/checkable_card/checkable_card.js +14 -9
- package/es/components/card/checkable_card/checkable_card.styles.js +22 -0
- package/es/components/comment_list/comment_event.styles.js +1 -1
- package/es/components/datagrid/body/data_grid_body.js +7 -6
- package/es/components/datagrid/body/data_grid_cell.js +13 -12
- package/es/components/datagrid/body/header/data_grid_header_cell.js +7 -6
- package/es/components/datagrid/body/header/data_grid_header_row.js +7 -6
- package/es/components/datagrid/data_grid.js +7 -6
- package/es/components/datagrid/utils/in_memory.js +7 -6
- package/es/components/date_picker/auto_refresh/auto_refresh.js +3 -2
- package/es/components/date_picker/super_date_picker/super_date_picker.js +17 -1
- package/es/components/date_picker/super_date_picker/super_update_button.js +11 -1
- package/es/components/description_list/description_list_title.js +1 -1
- package/es/components/expression/expression.styles.js +13 -31
- package/es/components/facet/facet_button.js +5 -4
- package/es/components/header/header_links/header_link.js +5 -3
- package/es/components/image/image_button.styles.js +1 -1
- package/es/components/image/image_wrapper.styles.js +3 -3
- package/es/components/link/link.styles.js +7 -6
- package/es/components/list_group/list_group.js +2 -1
- package/es/components/list_group/list_group_item.js +2 -1
- package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +3 -2
- package/es/components/loading/loading_chart.styles.js +16 -26
- package/es/components/loading/loading_content.styles.js +2 -2
- package/es/components/loading/loading_logo.styles.js +4 -4
- package/es/components/loading/loading_spinner.styles.js +6 -6
- package/es/components/markdown_editor/markdown_editor_toolbar.js +2 -0
- package/es/components/modal/confirm_modal.js +1 -1
- package/es/components/notification/notification_event.js +5 -3
- package/es/components/notification/notification_event_read_button.js +2 -1
- package/es/components/page/page_template.js +2 -2
- package/es/components/page_template/inner/page_inner.styles.js +2 -2
- package/es/components/page_template/outer/page_outer.styles.js +3 -1
- package/es/components/pagination/pagination_button.js +5 -3
- package/es/components/panel/panel.js +1 -1
- package/es/components/panel/{panel.style.js → panel.styles.js} +2 -2
- package/es/components/progress/progress.styles.js +2 -2
- package/es/components/text/text.styles.js +1 -1
- package/es/components/title/title.styles.js +2 -2
- package/es/components/toast/global_toast_list.styles.js +2 -2
- package/es/components/toast/toast.styles.js +4 -4
- package/es/components/tool_tip/icon_tip.js +11 -1
- package/es/components/tool_tip/tool_tip.js +18 -6
- package/es/global_styling/functions/logicals.js +16 -72
- package/es/global_styling/functions/typography.js +2 -1
- package/es/global_styling/mixins/_color.js +1 -1
- package/es/global_styling/mixins/_helpers.js +18 -5
- package/es/global_styling/mixins/_states.js +3 -4
- package/es/global_styling/mixins/_typography.js +3 -1
- package/es/global_styling/reset/global_styles.js +2 -1
- package/es/global_styling/utility/utility.js +10 -2
- package/es/themes/amsterdam/global_styling/mixins/button.js +165 -16
- package/eui.d.ts +1156 -1013
- package/i18ntokens.json +19 -19
- package/lib/components/accessibility/screen_reader_only/screen_reader_only.styles.js +3 -1
- package/lib/components/accessibility/skip_link/skip_link.js +4 -54
- package/lib/components/accordion/accordion.js +3 -1
- package/lib/components/accordion/accordion.styles.js +17 -26
- package/lib/components/badge/beta_badge/beta_badge.js +16 -3
- package/lib/components/basic_table/basic_table.js +1 -1
- package/lib/components/basic_table/collapsed_item_actions.js +2 -3
- package/lib/components/basic_table/in_memory_table.js +1 -1
- package/lib/components/beacon/beacon.styles.js +1 -1
- package/lib/components/breadcrumbs/breadcrumb.styles.js +2 -2
- package/lib/components/button/button.js +124 -229
- package/lib/components/button/button_display/_button_display.js +94 -33
- package/lib/components/button/button_display/_button_display.styles.js +7 -16
- package/lib/components/button/button_display/_button_display_content.js +7 -3
- package/lib/components/button/button_display/_button_display_content.styles.js +7 -17
- package/lib/components/button/button_empty/button_empty.js +64 -54
- package/lib/components/button/button_empty/index.js +0 -6
- package/lib/components/button/button_group/button_group.js +4 -12
- package/lib/components/button/button_group/button_group_button.js +15 -4
- package/lib/components/button/button_icon/button_icon.js +61 -43
- package/lib/components/call_out/call_out.styles.js +2 -1
- package/lib/components/card/card.js +174 -88
- package/lib/components/card/card.styles.js +146 -0
- package/lib/components/card/card_select/card_select.js +144 -0
- package/lib/components/card/card_select/card_select.styles.js +27 -0
- package/lib/components/card/card_select/index.js +19 -0
- package/lib/components/card/checkable_card/checkable_card.js +16 -9
- package/lib/components/card/checkable_card/checkable_card.styles.js +33 -0
- package/lib/components/comment_list/comment_event.styles.js +1 -1
- package/lib/components/datagrid/body/data_grid_body.js +7 -6
- package/lib/components/datagrid/body/data_grid_cell.js +13 -12
- package/lib/components/datagrid/body/header/data_grid_header_cell.js +7 -6
- package/lib/components/datagrid/body/header/data_grid_header_row.js +7 -6
- package/lib/components/datagrid/data_grid.js +7 -6
- package/lib/components/datagrid/utils/in_memory.js +7 -6
- package/lib/components/date_picker/auto_refresh/auto_refresh.js +3 -2
- package/lib/components/date_picker/super_date_picker/super_date_picker.js +17 -1
- package/lib/components/date_picker/super_date_picker/super_update_button.js +11 -1
- package/lib/components/description_list/description_list_title.js +1 -1
- package/lib/components/expression/expression.styles.js +12 -30
- package/lib/components/facet/facet_button.js +4 -3
- package/lib/components/header/header_links/header_link.js +5 -3
- package/lib/components/image/image_button.styles.js +1 -1
- package/lib/components/image/image_wrapper.styles.js +2 -2
- package/lib/components/link/link.styles.js +6 -5
- package/lib/components/list_group/list_group.js +2 -1
- package/lib/components/list_group/list_group_item.js +2 -1
- package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +3 -2
- package/lib/components/loading/loading_chart.styles.js +16 -25
- package/lib/components/loading/loading_content.styles.js +1 -1
- package/lib/components/loading/loading_logo.styles.js +4 -4
- package/lib/components/loading/loading_spinner.styles.js +5 -5
- package/lib/components/markdown_editor/markdown_editor_toolbar.js +2 -0
- package/lib/components/modal/confirm_modal.js +1 -1
- package/lib/components/notification/notification_event.js +5 -3
- package/lib/components/notification/notification_event_read_button.js +2 -1
- package/lib/components/page/page_template.js +1 -1
- package/lib/components/page_template/inner/page_inner.styles.js +2 -2
- package/lib/components/page_template/outer/page_outer.styles.js +4 -1
- package/lib/components/panel/panel.js +1 -1
- package/{optimize/lib/components/panel/panel.style.js → lib/components/panel/panel.styles.js} +1 -1
- package/lib/components/progress/progress.styles.js +2 -2
- package/lib/components/text/text.styles.js +1 -1
- package/lib/components/title/title.styles.js +1 -1
- package/lib/components/toast/global_toast_list.styles.js +1 -1
- package/lib/components/toast/toast.styles.js +4 -4
- package/lib/components/tool_tip/icon_tip.js +11 -1
- package/lib/components/tool_tip/tool_tip.js +18 -6
- package/lib/global_styling/functions/logicals.js +22 -74
- package/lib/global_styling/functions/typography.js +3 -1
- package/lib/global_styling/mixins/_color.js +1 -1
- package/lib/global_styling/mixins/_helpers.js +24 -6
- package/lib/global_styling/mixins/_states.js +3 -4
- package/lib/global_styling/mixins/_typography.js +4 -1
- package/lib/global_styling/reset/global_styles.js +3 -1
- package/lib/global_styling/utility/utility.js +16 -3
- package/lib/themes/amsterdam/global_styling/mixins/button.js +178 -24
- package/optimize/es/components/accessibility/screen_reader_only/screen_reader_only.styles.js +2 -1
- package/optimize/es/components/accordion/accordion.js +2 -1
- package/optimize/es/components/accordion/accordion.styles.js +17 -27
- package/optimize/es/components/badge/beta_badge/beta_badge.js +6 -3
- package/optimize/es/components/basic_table/collapsed_item_actions.js +1 -2
- package/optimize/es/components/beacon/beacon.styles.js +2 -2
- package/optimize/es/components/breadcrumbs/breadcrumb.styles.js +2 -2
- package/optimize/es/components/button/button.js +88 -100
- package/optimize/es/components/button/button_display/_button_display.js +67 -32
- package/optimize/es/components/button/button_display/_button_display.styles.js +7 -16
- package/optimize/es/components/button/button_display/_button_display_content.js +5 -2
- package/optimize/es/components/button/button_display/_button_display_content.styles.js +7 -17
- package/optimize/es/components/button/button_empty/button_empty.js +55 -47
- package/optimize/es/components/button/button_empty/index.js +1 -1
- package/optimize/es/components/button/button_group/button_group.js +2 -10
- package/optimize/es/components/button/button_group/button_group_button.js +13 -3
- package/optimize/es/components/button/button_icon/button_icon.js +54 -41
- package/optimize/es/components/call_out/call_out.styles.js +2 -1
- package/optimize/es/components/card/card.js +97 -31
- package/optimize/es/components/card/card.styles.js +136 -0
- package/optimize/es/components/card/{card_select.js → card_select/card_select.js} +16 -14
- package/optimize/es/components/card/card_select/card_select.styles.js +25 -0
- package/optimize/es/components/card/card_select/index.js +8 -0
- package/optimize/es/components/card/checkable_card/checkable_card.js +14 -9
- package/optimize/es/components/card/checkable_card/checkable_card.styles.js +22 -0
- package/optimize/es/components/comment_list/comment_event.styles.js +1 -1
- package/optimize/es/components/description_list/description_list_title.js +1 -1
- package/optimize/es/components/expression/expression.styles.js +13 -31
- package/optimize/es/components/facet/facet_button.js +5 -3
- package/optimize/es/components/image/image_button.styles.js +1 -1
- package/optimize/es/components/image/image_wrapper.styles.js +3 -3
- package/optimize/es/components/link/link.styles.js +7 -6
- package/optimize/es/components/loading/loading_chart.styles.js +16 -26
- package/optimize/es/components/loading/loading_content.styles.js +2 -2
- package/optimize/es/components/loading/loading_logo.styles.js +4 -4
- package/optimize/es/components/loading/loading_spinner.styles.js +6 -6
- package/optimize/es/components/markdown_editor/markdown_editor_toolbar.js +2 -0
- package/optimize/es/components/page/page_template.js +2 -2
- package/optimize/es/components/page_template/inner/page_inner.styles.js +2 -2
- package/optimize/es/components/page_template/outer/page_outer.styles.js +3 -1
- package/optimize/es/components/panel/panel.js +1 -1
- package/optimize/es/components/panel/{panel.style.js → panel.styles.js} +2 -2
- package/optimize/es/components/progress/progress.styles.js +2 -2
- package/optimize/es/components/text/text.styles.js +1 -1
- package/optimize/es/components/title/title.styles.js +2 -2
- package/optimize/es/components/toast/global_toast_list.styles.js +2 -2
- package/optimize/es/components/toast/toast.styles.js +4 -4
- package/optimize/es/components/tool_tip/tool_tip.js +7 -5
- package/optimize/es/global_styling/functions/logicals.js +16 -72
- package/optimize/es/global_styling/functions/typography.js +2 -1
- package/optimize/es/global_styling/mixins/_color.js +1 -1
- package/optimize/es/global_styling/mixins/_helpers.js +18 -5
- package/optimize/es/global_styling/mixins/_states.js +3 -4
- package/optimize/es/global_styling/mixins/_typography.js +3 -1
- package/optimize/es/global_styling/reset/global_styles.js +2 -1
- package/optimize/es/global_styling/utility/utility.js +10 -2
- package/optimize/es/themes/amsterdam/global_styling/mixins/button.js +155 -16
- package/optimize/lib/components/accessibility/screen_reader_only/screen_reader_only.styles.js +3 -1
- package/optimize/lib/components/accordion/accordion.js +3 -1
- package/optimize/lib/components/accordion/accordion.styles.js +17 -26
- package/optimize/lib/components/badge/beta_badge/beta_badge.js +6 -3
- package/optimize/lib/components/basic_table/collapsed_item_actions.js +1 -2
- package/optimize/lib/components/beacon/beacon.styles.js +1 -1
- package/optimize/lib/components/breadcrumbs/breadcrumb.styles.js +2 -2
- package/optimize/lib/components/button/button.js +92 -103
- package/optimize/lib/components/button/button_display/_button_display.js +71 -25
- package/optimize/lib/components/button/button_display/_button_display.styles.js +7 -16
- package/optimize/lib/components/button/button_display/_button_display_content.js +6 -2
- package/optimize/lib/components/button/button_display/_button_display_content.styles.js +7 -17
- package/optimize/lib/components/button/button_empty/button_empty.js +59 -50
- package/optimize/lib/components/button/button_empty/index.js +0 -6
- package/optimize/lib/components/button/button_group/button_group.js +2 -10
- package/optimize/lib/components/button/button_group/button_group_button.js +15 -3
- package/optimize/lib/components/button/button_icon/button_icon.js +54 -41
- package/optimize/lib/components/call_out/call_out.styles.js +2 -1
- package/optimize/lib/components/card/card.js +97 -30
- package/optimize/lib/components/card/card.styles.js +146 -0
- package/optimize/lib/components/card/{card_select.js → card_select/card_select.js} +16 -14
- package/optimize/lib/components/card/card_select/card_select.styles.js +27 -0
- package/optimize/lib/components/card/card_select/index.js +19 -0
- package/optimize/lib/components/card/checkable_card/checkable_card.js +16 -9
- package/optimize/lib/components/card/checkable_card/checkable_card.styles.js +33 -0
- package/optimize/lib/components/comment_list/comment_event.styles.js +1 -1
- package/optimize/lib/components/description_list/description_list_title.js +1 -1
- package/optimize/lib/components/expression/expression.styles.js +12 -30
- package/optimize/lib/components/facet/facet_button.js +4 -2
- package/optimize/lib/components/image/image_button.styles.js +1 -1
- package/optimize/lib/components/image/image_wrapper.styles.js +2 -2
- package/optimize/lib/components/link/link.styles.js +6 -5
- package/optimize/lib/components/loading/loading_chart.styles.js +16 -25
- package/optimize/lib/components/loading/loading_content.styles.js +1 -1
- package/optimize/lib/components/loading/loading_logo.styles.js +4 -4
- package/optimize/lib/components/loading/loading_spinner.styles.js +5 -5
- package/optimize/lib/components/markdown_editor/markdown_editor_toolbar.js +2 -0
- package/optimize/lib/components/page/page_template.js +1 -1
- package/optimize/lib/components/page_template/inner/page_inner.styles.js +2 -2
- package/optimize/lib/components/page_template/outer/page_outer.styles.js +4 -1
- package/optimize/lib/components/panel/panel.js +1 -1
- package/{test-env/components/panel/panel.style.js → optimize/lib/components/panel/panel.styles.js} +1 -1
- package/optimize/lib/components/progress/progress.styles.js +2 -2
- package/optimize/lib/components/text/text.styles.js +1 -1
- package/optimize/lib/components/title/title.styles.js +1 -1
- package/optimize/lib/components/toast/global_toast_list.styles.js +1 -1
- package/optimize/lib/components/toast/toast.styles.js +4 -4
- package/optimize/lib/components/tool_tip/tool_tip.js +7 -5
- package/optimize/lib/global_styling/functions/logicals.js +28 -74
- package/optimize/lib/global_styling/functions/typography.js +3 -1
- package/optimize/lib/global_styling/mixins/_color.js +1 -1
- package/optimize/lib/global_styling/mixins/_helpers.js +24 -6
- package/optimize/lib/global_styling/mixins/_states.js +3 -4
- package/optimize/lib/global_styling/mixins/_typography.js +4 -1
- package/optimize/lib/global_styling/reset/global_styles.js +3 -1
- package/optimize/lib/global_styling/utility/utility.js +16 -3
- package/optimize/lib/themes/amsterdam/global_styling/mixins/button.js +170 -17
- package/package.json +2 -2
- package/src/components/badge/beta_badge/_beta_badge.scss +5 -1
- package/src/components/button/_index.scss +0 -1
- package/src/components/button/button_empty/_button_empty.scss +4 -48
- package/src/components/button/button_group/_button_group.scss +0 -1
- package/src/components/button/button_group/_button_group_button.scss +55 -83
- package/src/components/button/button_icon/_button_icon.scss +3 -103
- package/src/components/control_bar/_control_bar.scss +2 -6
- package/src/components/flyout/_flyout.scss +4 -1
- package/src/components/index.scss +0 -1
- package/src/global_styling/mixins/_button.scss +55 -11
- package/src/global_styling/mixins/_helpers.scss +9 -0
- package/src/global_styling/mixins/_index.scss +0 -1
- package/src/global_styling/utility/_utility.scss +0 -127
- package/src/themes/amsterdam/global_styling/mixins/_index.scss +0 -2
- package/src/themes/amsterdam/overrides/_header.scss +0 -2
- package/src/themes/amsterdam/overrides/_index.scss +0 -4
- package/test-env/components/accessibility/screen_reader_only/screen_reader_only.styles.js +3 -1
- package/test-env/components/accessibility/skip_link/skip_link.js +4 -54
- package/test-env/components/accordion/accordion.js +3 -1
- package/test-env/components/accordion/accordion.styles.js +17 -26
- package/test-env/components/badge/beta_badge/beta_badge.js +16 -3
- package/test-env/components/basic_table/basic_table.js +1 -1
- package/test-env/components/basic_table/collapsed_item_actions.js +2 -3
- package/test-env/components/basic_table/in_memory_table.js +1 -1
- package/test-env/components/beacon/beacon.styles.js +1 -1
- package/test-env/components/breadcrumbs/breadcrumb.styles.js +2 -2
- package/test-env/components/button/button.js +111 -225
- package/test-env/components/button/button_display/_button_display.js +93 -32
- package/test-env/components/button/button_display/_button_display.styles.js +7 -16
- package/test-env/components/button/button_display/_button_display_content.js +7 -3
- package/test-env/components/button/button_display/_button_display_content.styles.js +7 -17
- package/test-env/components/button/button_empty/button_empty.js +64 -53
- package/test-env/components/button/button_empty/index.js +0 -6
- package/test-env/components/button/button_group/button_group.js +4 -12
- package/test-env/components/button/button_group/button_group_button.js +16 -4
- package/test-env/components/button/button_icon/button_icon.js +61 -42
- package/test-env/components/call_out/call_out.styles.js +2 -1
- package/test-env/components/card/card.js +172 -88
- package/test-env/components/card/card.styles.js +146 -0
- package/test-env/components/card/card_select/card_select.js +141 -0
- package/test-env/components/card/card_select/card_select.styles.js +27 -0
- package/test-env/components/card/card_select/index.js +19 -0
- package/test-env/components/card/checkable_card/checkable_card.js +16 -9
- package/test-env/components/card/checkable_card/checkable_card.styles.js +33 -0
- package/test-env/components/comment_list/comment_event.styles.js +1 -1
- package/test-env/components/datagrid/body/data_grid_body.js +7 -6
- package/test-env/components/datagrid/body/data_grid_cell.js +13 -12
- package/test-env/components/datagrid/body/header/data_grid_header_cell.js +7 -6
- package/test-env/components/datagrid/body/header/data_grid_header_row.js +7 -6
- package/test-env/components/datagrid/data_grid.js +7 -6
- package/test-env/components/datagrid/utils/in_memory.js +7 -6
- package/test-env/components/date_picker/auto_refresh/auto_refresh.js +3 -2
- package/test-env/components/date_picker/super_date_picker/super_date_picker.js +17 -1
- package/test-env/components/date_picker/super_date_picker/super_update_button.js +11 -1
- package/test-env/components/description_list/description_list_title.js +1 -1
- package/test-env/components/expression/expression.styles.js +12 -30
- package/test-env/components/facet/facet_button.js +4 -3
- package/test-env/components/header/header_links/header_link.js +5 -3
- package/test-env/components/image/image_button.styles.js +1 -1
- package/test-env/components/image/image_wrapper.styles.js +2 -2
- package/test-env/components/link/link.styles.js +6 -5
- package/test-env/components/list_group/list_group.js +2 -1
- package/test-env/components/list_group/list_group_item.js +2 -1
- package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +3 -2
- package/test-env/components/loading/loading_chart.styles.js +16 -25
- package/test-env/components/loading/loading_content.styles.js +1 -1
- package/test-env/components/loading/loading_logo.styles.js +4 -4
- package/test-env/components/loading/loading_spinner.styles.js +5 -5
- package/test-env/components/markdown_editor/markdown_editor_toolbar.js +2 -0
- package/test-env/components/modal/confirm_modal.js +1 -1
- package/test-env/components/notification/notification_event.js +5 -3
- package/test-env/components/notification/notification_event_read_button.js +2 -1
- package/test-env/components/page/page_template.js +1 -1
- package/test-env/components/page_template/inner/page_inner.styles.js +2 -2
- package/test-env/components/page_template/outer/page_outer.styles.js +4 -1
- package/test-env/components/panel/panel.js +1 -1
- package/{lib/components/panel/panel.style.js → test-env/components/panel/panel.styles.js} +1 -1
- package/test-env/components/progress/progress.styles.js +2 -2
- package/test-env/components/text/text.styles.js +1 -1
- package/test-env/components/title/title.styles.js +1 -1
- package/test-env/components/toast/global_toast_list.styles.js +1 -1
- package/test-env/components/toast/toast.styles.js +4 -4
- package/test-env/components/tool_tip/icon_tip.js +11 -1
- package/test-env/components/tool_tip/tool_tip.js +18 -6
- package/test-env/global_styling/functions/logicals.js +28 -74
- package/test-env/global_styling/functions/typography.js +3 -1
- package/test-env/global_styling/mixins/_color.js +1 -1
- package/test-env/global_styling/mixins/_helpers.js +24 -6
- package/test-env/global_styling/mixins/_states.js +3 -4
- package/test-env/global_styling/mixins/_typography.js +4 -1
- package/test-env/global_styling/reset/global_styles.js +3 -1
- package/test-env/global_styling/utility/utility.js +16 -3
- package/test-env/themes/amsterdam/global_styling/mixins/button.js +170 -17
- package/es/components/card/card_select.js +0 -176
- package/lib/components/card/card_select.js +0 -187
- package/src/components/button/_button.scss +0 -143
- package/src/components/button/button_icon/_variables.scss +0 -11
- package/src/components/card/_card.scss +0 -239
- package/src/components/card/_card_select.scss +0 -21
- package/src/components/card/_index.scss +0 -5
- package/src/components/card/_mixins.scss +0 -11
- package/src/components/card/_variables.scss +0 -25
- package/src/components/card/checkable_card/_checkable_card.scss +0 -29
- package/src/components/card/checkable_card/_index.scss +0 -1
- package/src/global_styling/mixins/_beta_badge.scss +0 -30
- package/src/themes/amsterdam/global_styling/mixins/_button.scss +0 -60
- package/src/themes/amsterdam/overrides/_button.scss +0 -119
- package/src/themes/amsterdam/overrides/_button_empty.scss +0 -20
- package/src/themes/amsterdam/overrides/_button_group.scss +0 -91
- package/src/themes/amsterdam/overrides/_card.scss +0 -6
- package/test-env/components/card/card_select.js +0 -184
package/eui.d.ts
CHANGED
|
@@ -9,72 +9,6 @@ declare module '@elastic/eui/src/services/theme/clone_element' {
|
|
|
9
9
|
*/
|
|
10
10
|
export const cloneElementWithCss: (element: any, props: any) => React.ReactElement;
|
|
11
11
|
|
|
12
|
-
}
|
|
13
|
-
declare module '@elastic/eui/src/components/accessibility/screen_reader_only/screen_reader_only.styles' {
|
|
14
|
-
export const euiScreenReaderOnly: () => string;
|
|
15
|
-
export const euiScreenReaderOnlyStyles: (showOnFocus?: boolean | undefined) => {
|
|
16
|
-
euiScreenReaderOnly: import("@emotion/utils").SerializedStyles;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
declare module '@elastic/eui/src/components/accessibility/screen_reader_only/screen_reader_only' {
|
|
21
|
-
import { ReactElement, FunctionComponent } from 'react';
|
|
22
|
-
export interface EuiScreenReaderOnlyProps {
|
|
23
|
-
/**
|
|
24
|
-
* ReactElement to render as this component's content
|
|
25
|
-
*/
|
|
26
|
-
children: ReactElement;
|
|
27
|
-
/**
|
|
28
|
-
* For keyboard navigation, force content to display visually upon focus.
|
|
29
|
-
*/
|
|
30
|
-
showOnFocus?: boolean;
|
|
31
|
-
className?: string;
|
|
32
|
-
}
|
|
33
|
-
export const EuiScreenReaderOnly: FunctionComponent<EuiScreenReaderOnlyProps>;
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
declare module '@elastic/eui/src/components/accessibility/screen_reader_only' {
|
|
37
|
-
export type { EuiScreenReaderOnlyProps } from '@elastic/eui/src/components/accessibility/screen_reader_only/screen_reader_only';
|
|
38
|
-
export { EuiScreenReaderOnly } from '@elastic/eui/src/components/accessibility/screen_reader_only/screen_reader_only';
|
|
39
|
-
export { euiScreenReaderOnly } from '@elastic/eui/src/components/accessibility/screen_reader_only/screen_reader_only.styles';
|
|
40
|
-
|
|
41
|
-
}
|
|
42
|
-
declare module '@elastic/eui/src/components/accessibility/screen_reader_live/screen_reader_live' {
|
|
43
|
-
import { AriaAttributes, HTMLAttributes, FunctionComponent, ReactNode } from 'react';
|
|
44
|
-
export interface EuiScreenReaderLiveProps {
|
|
45
|
-
/**
|
|
46
|
-
* Whether to make screen readers aware of the content
|
|
47
|
-
*/
|
|
48
|
-
isActive?: boolean;
|
|
49
|
-
/**
|
|
50
|
-
* Content for screen readers to announce
|
|
51
|
-
*/
|
|
52
|
-
children?: ReactNode;
|
|
53
|
-
/**
|
|
54
|
-
* `role` attribute for both live regions.
|
|
55
|
-
*
|
|
56
|
-
* https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Live_Regions#roles_with_implicit_live_region_attributes
|
|
57
|
-
*/
|
|
58
|
-
role?: HTMLAttributes<HTMLDivElement>['role'];
|
|
59
|
-
/**
|
|
60
|
-
* `aria-live` attribute for both live regions
|
|
61
|
-
*/
|
|
62
|
-
'aria-live'?: AriaAttributes['aria-live'];
|
|
63
|
-
/**
|
|
64
|
-
* On `children`/text change, the region will auto-focus itself, causing screen readers
|
|
65
|
-
* to automatically read out the text content. This prop should primarily be used for
|
|
66
|
-
* navigation or page changes, where programmatically resetting focus location back to
|
|
67
|
-
* a certain part of the page is desired.
|
|
68
|
-
*/
|
|
69
|
-
focusRegionOnTextChange?: boolean;
|
|
70
|
-
}
|
|
71
|
-
export const EuiScreenReaderLive: FunctionComponent<EuiScreenReaderLiveProps>;
|
|
72
|
-
|
|
73
|
-
}
|
|
74
|
-
declare module '@elastic/eui/src/components/accessibility/screen_reader_live' {
|
|
75
|
-
export { EuiScreenReaderLive } from '@elastic/eui/src/components/accessibility/screen_reader_live/screen_reader_live';
|
|
76
|
-
export type { EuiScreenReaderLiveProps } from '@elastic/eui/src/components/accessibility/screen_reader_live/screen_reader_live';
|
|
77
|
-
|
|
78
12
|
}
|
|
79
13
|
declare module '@elastic/eui/src/services/keys' {
|
|
80
14
|
export const ENTER = "Enter";
|
|
@@ -1476,574 +1410,136 @@ declare module '@elastic/eui/src/components/icon/named_colors' {
|
|
|
1476
1410
|
export function isNamedColor(name: string): boolean;
|
|
1477
1411
|
|
|
1478
1412
|
}
|
|
1479
|
-
declare module '@elastic/eui/src/
|
|
1413
|
+
declare module '@elastic/eui/src/components/icon/icon.styles' {
|
|
1480
1414
|
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
1481
|
-
export const
|
|
1482
|
-
export
|
|
1483
|
-
|
|
1484
|
-
/**
|
|
1485
|
-
* Use `opaque` for containers of unknown content.
|
|
1486
|
-
* Use `transparent` for interactive states like hover and focus.
|
|
1487
|
-
*/
|
|
1488
|
-
method?: 'opaque' | 'transparent';
|
|
1489
|
-
}
|
|
1490
|
-
export const euiBackgroundColor: ({ euiTheme, colorMode }: UseEuiTheme, color: _EuiBackgroundColor, { method }?: _EuiBackgroundColorOptions) => string;
|
|
1491
|
-
export const useEuiBackgroundColor: (color: _EuiBackgroundColor, { method }?: _EuiBackgroundColorOptions) => string;
|
|
1492
|
-
export const useEuiBackgroundColorCSS: () => {
|
|
1493
|
-
transparent: import("@emotion/utils").SerializedStyles;
|
|
1494
|
-
plain: import("@emotion/utils").SerializedStyles;
|
|
1495
|
-
subdued: import("@emotion/utils").SerializedStyles;
|
|
1415
|
+
export const iconLoadingOpacity = 0.05;
|
|
1416
|
+
export const euiIconStyles: ({ euiTheme }: UseEuiTheme) => {
|
|
1417
|
+
euiIcon: import("@emotion/utils").SerializedStyles;
|
|
1496
1418
|
accent: import("@emotion/utils").SerializedStyles;
|
|
1419
|
+
danger: import("@emotion/utils").SerializedStyles;
|
|
1420
|
+
ghost: import("@emotion/utils").SerializedStyles;
|
|
1497
1421
|
primary: import("@emotion/utils").SerializedStyles;
|
|
1498
1422
|
success: import("@emotion/utils").SerializedStyles;
|
|
1423
|
+
subdued: import("@emotion/utils").SerializedStyles;
|
|
1424
|
+
text: import("@emotion/utils").SerializedStyles;
|
|
1499
1425
|
warning: import("@emotion/utils").SerializedStyles;
|
|
1500
|
-
|
|
1426
|
+
inherit: import("@emotion/utils").SerializedStyles;
|
|
1427
|
+
default: import("@emotion/utils").SerializedStyles;
|
|
1428
|
+
customColor: import("@emotion/utils").SerializedStyles;
|
|
1429
|
+
logoElasticOutline: import("@emotion/utils").SerializedStyles;
|
|
1430
|
+
original: import("@emotion/utils").SerializedStyles;
|
|
1431
|
+
s: import("@emotion/utils").SerializedStyles;
|
|
1432
|
+
m: import("@emotion/utils").SerializedStyles;
|
|
1433
|
+
l: import("@emotion/utils").SerializedStyles;
|
|
1434
|
+
xl: import("@emotion/utils").SerializedStyles;
|
|
1435
|
+
xxl: import("@emotion/utils").SerializedStyles;
|
|
1436
|
+
app: import("@emotion/utils").SerializedStyles;
|
|
1437
|
+
logo: import("@emotion/utils").SerializedStyles;
|
|
1438
|
+
isLoading: import("@emotion/utils").SerializedStyles;
|
|
1439
|
+
isLoaded: import("@emotion/utils").SerializedStyles;
|
|
1501
1440
|
};
|
|
1502
1441
|
|
|
1503
1442
|
}
|
|
1504
|
-
declare module '@elastic/eui/src/
|
|
1505
|
-
import {
|
|
1506
|
-
import {
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
export
|
|
1512
|
-
|
|
1513
|
-
|
|
1443
|
+
declare module '@elastic/eui/src/components/icon/icon' {
|
|
1444
|
+
import React, { PureComponent, ComponentType, SVGAttributes } from 'react';
|
|
1445
|
+
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
1446
|
+
import { typeToPathMap } from '@elastic/eui/src/components/icon/icon_map';
|
|
1447
|
+
import { WithEuiThemeProps } from '@elastic/eui/src/services';
|
|
1448
|
+
export { COLORS } from '@elastic/eui/src/components/icon/named_colors';
|
|
1449
|
+
import { NamedColor } from '@elastic/eui/src/components/icon/named_colors';
|
|
1450
|
+
export const TYPES: ("string" | "number" | "function" | "link" | "menu" | "filter" | "image" | "stop" | "search" | "temperature" | "color" | "accessibility" | "aggregate" | "alert" | "analyzeEvent" | "annotation" | "apps" | "arrowStart" | "arrowEnd" | "asterisk" | "beaker" | "bell" | "bellSlash" | "bolt" | "branch" | "branchUser" | "broom" | "brush" | "bug" | "bullseye" | "calendar" | "check" | "checkInCircleFilled" | "cheer" | "clock" | "cloudDrizzle" | "cloudStormy" | "cloudSunny" | "cluster" | "compute" | "console" | "container" | "continuityAbove" | "continuityAboveBelow" | "continuityBelow" | "continuityWithin" | "copy" | "cross" | "crossInACircleFilled" | "crosshairs" | "currency" | "cut" | "database" | "desktop" | "document" | "documentEdit" | "documentation" | "documents" | "dot" | "doubleArrowLeft" | "doubleArrowRight" | "download" | "editorDistributeHorizontal" | "editorDistributeVertical" | "editorItemAlignBottom" | "editorItemAlignCenter" | "editorItemAlignLeft" | "editorItemAlignMiddle" | "editorItemAlignRight" | "editorItemAlignTop" | "editorPositionBottomLeft" | "editorPositionBottomRight" | "editorPositionTopLeft" | "editorPositionTopRight" | "email" | "empty" | "eql" | "eraser" | "exit" | "expand" | "expandMini" | "eye" | "flag" | "fold" | "frameNext" | "framePrevious" | "fullScreenExit" | "gear" | "glasses" | "globe" | "grab" | "grid" | "heart" | "heatmap" | "help" | "home" | "iInCircle" | "inputOutput" | "inspect" | "invert" | "ip" | "keyboard" | "kubernetesNode" | "kubernetesPod" | "layers" | "lettering" | "lineDashed" | "lineDotted" | "lineSolid" | "list" | "lock" | "lockOpen" | "magnet" | "magnifyWithExclamation" | "magnifyWithMinus" | "magnifyWithPlus" | "memory" | "menuDown" | "menuLeft" | "menuRight" | "menuUp" | "merge" | "minimize" | "minus" | "mobile" | "moon" | "namespace" | "nested" | "node" | "offline" | "online" | "package" | "pageSelect" | "pagesSelect" | "partial" | "pause" | "payment" | "pencil" | "percent" | "pin" | "play" | "playFilled" | "plus" | "popout" | "push" | "quote" | "refresh" | "reporter" | "save" | "scale" | "securitySignal" | "securitySignalDetected" | "securitySignalResolved" | "sessionViewer" | "shard" | "share" | "snowflake" | "sortLeft" | "sortRight" | "sortable" | "starPlusEmpty" | "starPlusFilled" | "stats" | "storage" | "submodule" | "sun" | "symlink" | "tableOfContents" | "tag" | "tear" | "timeline" | "timeRefresh" | "timeslider" | "training" | "trash" | "unfold" | "unlink" | "user" | "userAvatar" | "users" | "vector" | "videoPlayer" | "wordWrap" | "wordWrapDisabled" | "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" | "addDataApp" | "advancedSettingsApp" | "agentApp" | "apmApp" | "apmTrace" | "appSearchApp" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowUp" | "auditbeatApp" | "boxesHorizontal" | "boxesVertical" | "canvasApp" | "casesApp" | "classificationJob" | "codeApp" | "consoleApp" | "controlsHorizontal" | "controlsVertical" | "copyClipboard" | "createAdvancedJob" | "createMultiMetricJob" | "createPopulationJob" | "createSingleMetricJob" | "crossClusterReplicationApp" | "dashboardApp" | "dataVisualizer" | "devToolsApp" | "discoverApp" | "editorAlignCenter" | "editorAlignLeft" | "editorAlignRight" | "editorBold" | "editorChecklist" | "editorCodeBlock" | "editorComment" | "editorHeading" | "editorItalic" | "editorLink" | "editorOrderedList" | "editorRedo" | "editorStrike" | "editorTable" | "editorUnderline" | "editorUndo" | "editorUnorderedList" | "emsApp" | "exportAction" | "eyeClosed" | "faceHappy" | "faceNeutral" | "faceSad" | "filebeatApp" | "fleetApp" | "folderCheck" | "folderClosed" | "folderExclamation" | "folderOpen" | "fullScreen" | "gisApp" | "grabHorizontal" | "graphApp" | "grokApp" | "heartbeatApp" | "importAction" | "indexClose" | "indexEdit" | "indexFlush" | "indexManagementApp" | "indexMapping" | "indexOpen" | "indexPatternApp" | "indexRollupApp" | "indexRuntime" | "indexSettings" | "kqlField" | "kqlFunction" | "kqlOperand" | "kqlSelector" | "kqlValue" | "lensApp" | "listAdd" | "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" | "logoWebhook" | "logoWindows" | "logoWorkplaceSearch" | "logsApp" | "logstashFilter" | "logstashIf" | "logstashInput" | "logstashOutput" | "logstashQueue" | "machineLearningApp" | "managementApp" | "mapMarker" | "metricbeatApp" | "metricsApp" | "minusInCircle" | "minusInCircleFilled" | "monitoringApp" | "notebookApp" | "outlierDetectionJob" | "packetbeatApp" | "paperClip" | "pinFilled" | "pipelineApp" | "plusInCircle" | "plusInCircleFilled" | "questionInCircle" | "recentlyViewedApp" | "regressionJob" | "reportingApp" | "returnKey" | "savedObjectsApp" | "searchProfilerApp" | "securityAnalyticsApp" | "securityApp" | "sortDown" | "sortUp" | "spacesApp" | "sqlApp" | "starEmpty" | "starEmptySpace" | "starFilled" | "starFilledSpace" | "starMinusEmpty" | "starMinusFilled" | "stopFilled" | "stopSlash" | "swatchInput" | "tableDensityCompact" | "tableDensityExpanded" | "tableDensityNormal" | "timelionApp" | "upgradeAssistantApp" | "uptimeApp" | "usersRolesApp" | "visArea" | "visAreaStacked" | "visBarHorizontal" | "visBarHorizontalStacked" | "visBarVertical" | "visBarVerticalStacked" | "visGauge" | "visGoal" | "visLine" | "visMapCoordinate" | "visMapRegion" | "visMetric" | "visPie" | "visTable" | "visTagCloud" | "visText" | "visTimelion" | "visVega" | "visVisualBuilder" | "visualizeApp" | "watchesApp" | "workplaceSearchApp")[];
|
|
1451
|
+
export type EuiIconType = keyof typeof typeToPathMap;
|
|
1452
|
+
export type IconType = EuiIconType | string | ComponentType;
|
|
1453
|
+
export type IconColor = string | NamedColor;
|
|
1454
|
+
export const SIZES: readonly ["original", "s", "m", "l", "xl", "xxl"];
|
|
1455
|
+
export type IconSize = typeof SIZES[number];
|
|
1456
|
+
export type EuiIconProps = CommonProps & Omit<SVGAttributes<SVGElement>, 'type' | 'color' | 'size'> & {
|
|
1514
1457
|
/**
|
|
1515
|
-
*
|
|
1458
|
+
* `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
|
|
1516
1459
|
*/
|
|
1517
|
-
|
|
1460
|
+
type: IconType;
|
|
1518
1461
|
/**
|
|
1519
|
-
*
|
|
1462
|
+
* One of EUI's color palette or a valid CSS color value https://developer.mozilla.org/en-US/docs/Web/CSS/color_value.
|
|
1463
|
+
* Note that coloring only works if your SVG is removed of fill attributes.
|
|
1520
1464
|
*/
|
|
1521
|
-
|
|
1465
|
+
color?: IconColor;
|
|
1522
1466
|
/**
|
|
1523
|
-
*
|
|
1524
|
-
* are used as an inset border and therefore a smaller corner size means a larger thumb
|
|
1467
|
+
* Note that every size other than `original` assumes the provided SVG sits on a square viewbox.
|
|
1525
1468
|
*/
|
|
1526
|
-
|
|
1469
|
+
size?: IconSize;
|
|
1470
|
+
/**
|
|
1471
|
+
* Descriptive title for naming the icon based on its use
|
|
1472
|
+
*/
|
|
1473
|
+
title?: string;
|
|
1474
|
+
/**
|
|
1475
|
+
* A unique identifier for the title element
|
|
1476
|
+
*/
|
|
1477
|
+
titleId?: string;
|
|
1478
|
+
/**
|
|
1479
|
+
* Its value should be one or more element IDs
|
|
1480
|
+
*/
|
|
1481
|
+
'aria-labelledby'?: string;
|
|
1482
|
+
/**
|
|
1483
|
+
* Callback when the icon has been loaded & rendered
|
|
1484
|
+
*/
|
|
1485
|
+
onIconLoad?: () => void;
|
|
1486
|
+
};
|
|
1487
|
+
interface State {
|
|
1488
|
+
icon: undefined | ComponentType | string;
|
|
1489
|
+
iconTitle: undefined | string;
|
|
1490
|
+
isLoading: boolean;
|
|
1491
|
+
neededLoading: boolean;
|
|
1527
1492
|
}
|
|
1528
|
-
export const
|
|
1529
|
-
export const
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1493
|
+
export const clearIconComponentCache: (iconType?: "string" | "number" | "function" | "link" | "menu" | "filter" | "image" | "stop" | "search" | "temperature" | "color" | "accessibility" | "aggregate" | "alert" | "analyzeEvent" | "annotation" | "apps" | "arrowStart" | "arrowEnd" | "asterisk" | "beaker" | "bell" | "bellSlash" | "bolt" | "branch" | "branchUser" | "broom" | "brush" | "bug" | "bullseye" | "calendar" | "check" | "checkInCircleFilled" | "cheer" | "clock" | "cloudDrizzle" | "cloudStormy" | "cloudSunny" | "cluster" | "compute" | "console" | "container" | "continuityAbove" | "continuityAboveBelow" | "continuityBelow" | "continuityWithin" | "copy" | "cross" | "crossInACircleFilled" | "crosshairs" | "currency" | "cut" | "database" | "desktop" | "document" | "documentEdit" | "documentation" | "documents" | "dot" | "doubleArrowLeft" | "doubleArrowRight" | "download" | "editorDistributeHorizontal" | "editorDistributeVertical" | "editorItemAlignBottom" | "editorItemAlignCenter" | "editorItemAlignLeft" | "editorItemAlignMiddle" | "editorItemAlignRight" | "editorItemAlignTop" | "editorPositionBottomLeft" | "editorPositionBottomRight" | "editorPositionTopLeft" | "editorPositionTopRight" | "email" | "empty" | "eql" | "eraser" | "exit" | "expand" | "expandMini" | "eye" | "flag" | "fold" | "frameNext" | "framePrevious" | "fullScreenExit" | "gear" | "glasses" | "globe" | "grab" | "grid" | "heart" | "heatmap" | "help" | "home" | "iInCircle" | "inputOutput" | "inspect" | "invert" | "ip" | "keyboard" | "kubernetesNode" | "kubernetesPod" | "layers" | "lettering" | "lineDashed" | "lineDotted" | "lineSolid" | "list" | "lock" | "lockOpen" | "magnet" | "magnifyWithExclamation" | "magnifyWithMinus" | "magnifyWithPlus" | "memory" | "menuDown" | "menuLeft" | "menuRight" | "menuUp" | "merge" | "minimize" | "minus" | "mobile" | "moon" | "namespace" | "nested" | "node" | "offline" | "online" | "package" | "pageSelect" | "pagesSelect" | "partial" | "pause" | "payment" | "pencil" | "percent" | "pin" | "play" | "playFilled" | "plus" | "popout" | "push" | "quote" | "refresh" | "reporter" | "save" | "scale" | "securitySignal" | "securitySignalDetected" | "securitySignalResolved" | "sessionViewer" | "shard" | "share" | "snowflake" | "sortLeft" | "sortRight" | "sortable" | "starPlusEmpty" | "starPlusFilled" | "stats" | "storage" | "submodule" | "sun" | "symlink" | "tableOfContents" | "tag" | "tear" | "timeline" | "timeRefresh" | "timeslider" | "training" | "trash" | "unfold" | "unlink" | "user" | "userAvatar" | "users" | "vector" | "videoPlayer" | "wordWrap" | "wordWrapDisabled" | "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" | "addDataApp" | "advancedSettingsApp" | "agentApp" | "apmApp" | "apmTrace" | "appSearchApp" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowUp" | "auditbeatApp" | "boxesHorizontal" | "boxesVertical" | "canvasApp" | "casesApp" | "classificationJob" | "codeApp" | "consoleApp" | "controlsHorizontal" | "controlsVertical" | "copyClipboard" | "createAdvancedJob" | "createMultiMetricJob" | "createPopulationJob" | "createSingleMetricJob" | "crossClusterReplicationApp" | "dashboardApp" | "dataVisualizer" | "devToolsApp" | "discoverApp" | "editorAlignCenter" | "editorAlignLeft" | "editorAlignRight" | "editorBold" | "editorChecklist" | "editorCodeBlock" | "editorComment" | "editorHeading" | "editorItalic" | "editorLink" | "editorOrderedList" | "editorRedo" | "editorStrike" | "editorTable" | "editorUnderline" | "editorUndo" | "editorUnorderedList" | "emsApp" | "exportAction" | "eyeClosed" | "faceHappy" | "faceNeutral" | "faceSad" | "filebeatApp" | "fleetApp" | "folderCheck" | "folderClosed" | "folderExclamation" | "folderOpen" | "fullScreen" | "gisApp" | "grabHorizontal" | "graphApp" | "grokApp" | "heartbeatApp" | "importAction" | "indexClose" | "indexEdit" | "indexFlush" | "indexManagementApp" | "indexMapping" | "indexOpen" | "indexPatternApp" | "indexRollupApp" | "indexRuntime" | "indexSettings" | "kqlField" | "kqlFunction" | "kqlOperand" | "kqlSelector" | "kqlValue" | "lensApp" | "listAdd" | "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" | "logoWebhook" | "logoWindows" | "logoWorkplaceSearch" | "logsApp" | "logstashFilter" | "logstashIf" | "logstashInput" | "logstashOutput" | "logstashQueue" | "machineLearningApp" | "managementApp" | "mapMarker" | "metricbeatApp" | "metricsApp" | "minusInCircle" | "minusInCircleFilled" | "monitoringApp" | "notebookApp" | "outlierDetectionJob" | "packetbeatApp" | "paperClip" | "pinFilled" | "pipelineApp" | "plusInCircle" | "plusInCircleFilled" | "questionInCircle" | "recentlyViewedApp" | "regressionJob" | "reportingApp" | "returnKey" | "savedObjectsApp" | "searchProfilerApp" | "securityAnalyticsApp" | "securityApp" | "sortDown" | "sortUp" | "spacesApp" | "sqlApp" | "starEmpty" | "starEmptySpace" | "starFilled" | "starFilledSpace" | "starMinusEmpty" | "starMinusFilled" | "stopFilled" | "stopSlash" | "swatchInput" | "tableDensityCompact" | "tableDensityExpanded" | "tableDensityNormal" | "timelionApp" | "upgradeAssistantApp" | "uptimeApp" | "usersRolesApp" | "visArea" | "visAreaStacked" | "visBarHorizontal" | "visBarHorizontalStacked" | "visBarVertical" | "visBarVerticalStacked" | "visGauge" | "visGoal" | "visLine" | "visMapCoordinate" | "visMapRegion" | "visMetric" | "visPie" | "visTable" | "visTagCloud" | "visText" | "visTimelion" | "visVega" | "visVisualBuilder" | "visualizeApp" | "watchesApp" | "workplaceSearchApp" | undefined) => void;
|
|
1494
|
+
export const appendIconComponentCache: (iconTypeToIconComponentMap: {
|
|
1495
|
+
[iconType: string]: React.ComponentType<{}>;
|
|
1496
|
+
}) => void;
|
|
1497
|
+
export class EuiIconClass extends PureComponent<EuiIconProps & WithEuiThemeProps, State> {
|
|
1498
|
+
isMounted: boolean;
|
|
1499
|
+
constructor(props: EuiIconProps & WithEuiThemeProps);
|
|
1500
|
+
componentDidMount(): void;
|
|
1501
|
+
componentDidUpdate(prevProps: EuiIconProps): void;
|
|
1502
|
+
componentWillUnmount(): void;
|
|
1503
|
+
loadIconComponent: (iconType: EuiIconType) => void;
|
|
1504
|
+
onIconLoad: () => void;
|
|
1505
|
+
render(): JSX.Element;
|
|
1537
1506
|
}
|
|
1538
|
-
export const
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
export
|
|
1543
|
-
export
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1507
|
+
export const EuiIcon: React.ForwardRefExoticComponent<Omit<EuiIconProps, "theme"> & React.RefAttributes<Omit<EuiIconProps, "theme">>>;
|
|
1508
|
+
|
|
1509
|
+
}
|
|
1510
|
+
declare module '@elastic/eui/src/components/icon' {
|
|
1511
|
+
export type { EuiIconProps, IconColor, IconSize, IconType } from '@elastic/eui/src/components/icon/icon';
|
|
1512
|
+
export { EuiIcon, TYPES as ICON_TYPES, SIZES as ICON_SIZES, COLORS as ICON_COLORS, } from '@elastic/eui/src/components/icon/icon';
|
|
1513
|
+
|
|
1514
|
+
}
|
|
1515
|
+
declare module '@elastic/eui/src/components/context/context' {
|
|
1516
|
+
import React, { Context, FunctionComponent, ReactChild, ReactNode } from 'react';
|
|
1517
|
+
export interface RenderableValues {
|
|
1518
|
+
[key: string]: ReactChild | undefined;
|
|
1549
1519
|
}
|
|
1550
|
-
export
|
|
1551
|
-
export
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
}
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
export
|
|
1573
|
-
'border-horizontal': string;
|
|
1574
|
-
'border-horizontal-color': string;
|
|
1575
|
-
'border-horizontal-width': string;
|
|
1576
|
-
'border-horizontal-style': string;
|
|
1577
|
-
'border-vertical': string;
|
|
1578
|
-
'border-vertical-color': string;
|
|
1579
|
-
'border-vertical-width': string;
|
|
1580
|
-
'border-vertical-style': string;
|
|
1581
|
-
'border-bottom': string;
|
|
1582
|
-
'border-bottom-color': string;
|
|
1583
|
-
'border-bottom-style': string;
|
|
1584
|
-
'border-bottom-width': string;
|
|
1585
|
-
'border-top': string;
|
|
1586
|
-
'border-top-color': string;
|
|
1587
|
-
'border-top-style': string;
|
|
1588
|
-
'border-top-width': string;
|
|
1589
|
-
'border-right': string;
|
|
1590
|
-
'border-right-color': string;
|
|
1591
|
-
'border-right-style': string;
|
|
1592
|
-
'border-right-width': string;
|
|
1593
|
-
'border-left': string;
|
|
1594
|
-
'border-left-color': string;
|
|
1595
|
-
'border-left-style': string;
|
|
1596
|
-
'border-left-width': string;
|
|
1597
|
-
'border-top-left-radius': string;
|
|
1598
|
-
'border-top-right-radius': string;
|
|
1599
|
-
'border-bottom-left-radius': string;
|
|
1600
|
-
'border-bottom-right-radius': string;
|
|
1601
|
-
'overflow-x': string;
|
|
1602
|
-
'overflow-y': string;
|
|
1603
|
-
height: string;
|
|
1604
|
-
width: string;
|
|
1605
|
-
'max-height': string;
|
|
1606
|
-
'max-width': string;
|
|
1607
|
-
'min-height': string;
|
|
1608
|
-
'min-width': string;
|
|
1609
|
-
top: string;
|
|
1610
|
-
right: string;
|
|
1611
|
-
bottom: string;
|
|
1612
|
-
left: string;
|
|
1613
|
-
horizontal: string;
|
|
1614
|
-
vertical: string;
|
|
1615
|
-
inset: string;
|
|
1616
|
-
'padding-left': string;
|
|
1617
|
-
'padding-right': string;
|
|
1618
|
-
'padding-top': string;
|
|
1619
|
-
'padding-bottom': string;
|
|
1620
|
-
'padding-horizontal': string;
|
|
1621
|
-
'padding-vertical': string;
|
|
1622
|
-
'margin-left': string;
|
|
1623
|
-
'margin-right': string;
|
|
1624
|
-
'margin-top': string;
|
|
1625
|
-
'margin-bottom': string;
|
|
1626
|
-
'margin-horizontal': string;
|
|
1627
|
-
'margin-vertical': string;
|
|
1628
|
-
};
|
|
1629
|
-
export const LOGICAL_PROPERTIES: ("left" | "right" | "inset" | "top" | "width" | "height" | "bottom" | "horizontal" | "vertical" | "border-horizontal" | "border-horizontal-color" | "border-horizontal-width" | "border-horizontal-style" | "border-vertical" | "border-vertical-color" | "border-vertical-width" | "border-vertical-style" | "border-bottom" | "border-bottom-color" | "border-bottom-style" | "border-bottom-width" | "border-top" | "border-top-color" | "border-top-style" | "border-top-width" | "border-right" | "border-right-color" | "border-right-style" | "border-right-width" | "border-left" | "border-left-color" | "border-left-style" | "border-left-width" | "border-top-left-radius" | "border-top-right-radius" | "border-bottom-left-radius" | "border-bottom-right-radius" | "overflow-x" | "overflow-y" | "max-height" | "max-width" | "min-height" | "min-width" | "padding-left" | "padding-right" | "padding-top" | "padding-bottom" | "padding-horizontal" | "padding-vertical" | "margin-left" | "margin-right" | "margin-top" | "margin-bottom" | "margin-horizontal" | "margin-vertical")[];
|
|
1630
|
-
export type LogicalProperties = typeof LOGICAL_PROPERTIES[number];
|
|
1631
|
-
/**
|
|
1632
|
-
*
|
|
1633
|
-
* @param property A string that is a valid CSS logical property
|
|
1634
|
-
* @param value String to output as the property value
|
|
1635
|
-
* @returns `string` Returns the logical CSS property version for the given `property: value` pair
|
|
1636
|
-
*/
|
|
1637
|
-
export const logicalCSS: (property: LogicalProperties, value?: any) => string;
|
|
1638
|
-
/**
|
|
1639
|
-
*
|
|
1640
|
-
* @param property A string that is a valid CSS logical property
|
|
1641
|
-
* @param value String to output as the property value
|
|
1642
|
-
* @returns `object` Returns the logical CSS property version for the given `property: value` pair
|
|
1643
|
-
*/
|
|
1644
|
-
export const logicalStyle: (property: LogicalProperties, value?: any) => {
|
|
1645
|
-
[x: string]: any;
|
|
1646
|
-
};
|
|
1647
|
-
/**
|
|
1648
|
-
*
|
|
1649
|
-
* @param width A string value for the LTR width
|
|
1650
|
-
* @param height A string value for the LTR height
|
|
1651
|
-
* @returns `string` Returns the logical CSS properties for height and width
|
|
1652
|
-
*/
|
|
1653
|
-
export const logicalSizeCSS: (width: any, height: any) => string;
|
|
1654
|
-
/**
|
|
1655
|
-
*
|
|
1656
|
-
* @param width A string value for the LTR width
|
|
1657
|
-
* @param height A string value for the LTR height
|
|
1658
|
-
* @returns `object` Returns the logical CSS properties for height and width
|
|
1659
|
-
*/
|
|
1660
|
-
export const logicalSizeStyle: (width: any, height: any) => {
|
|
1661
|
-
[x: string]: any;
|
|
1662
|
-
};
|
|
1663
|
-
export const logicalText: {
|
|
1664
|
-
'text-align': {
|
|
1665
|
-
left: string;
|
|
1666
|
-
center: string;
|
|
1667
|
-
right: string;
|
|
1668
|
-
};
|
|
1669
|
-
};
|
|
1670
|
-
export const LOGICAL_TEXT_ALIGNMENT: ("left" | "right" | "center")[];
|
|
1671
|
-
export type LogicalText = typeof LOGICAL_TEXT_ALIGNMENT[number];
|
|
1672
|
-
/**
|
|
1673
|
-
*
|
|
1674
|
-
* @param property A string that is a valid CSS logical property
|
|
1675
|
-
* @param value String to output as the property value
|
|
1676
|
-
* @returns `string` Returns the logical CSS property version for the given `property: value` pair
|
|
1677
|
-
*/
|
|
1678
|
-
export const logicalTextAlignCSS: (value: LogicalText) => string;
|
|
1679
|
-
/**
|
|
1680
|
-
*
|
|
1681
|
-
* @param property A string that is a valid CSS logical property
|
|
1682
|
-
* @param value String to output as the property value
|
|
1683
|
-
* @returns `object` Returns the logical CSS property version for the given `property: value` pair
|
|
1684
|
-
*/
|
|
1685
|
-
export const logicalTextAlignStyle: (value: LogicalText) => {
|
|
1686
|
-
textAlign: string;
|
|
1687
|
-
};
|
|
1688
|
-
|
|
1689
|
-
}
|
|
1690
|
-
declare module '@elastic/eui/src/global_styling/functions/size' {
|
|
1691
|
-
/**
|
|
1692
|
-
* Calculates the `px` value based on a scale multiplier
|
|
1693
|
-
* @param scale - The font scale multiplier
|
|
1694
|
-
* *
|
|
1695
|
-
* @param themeOrBase - Theme base value
|
|
1696
|
-
* *
|
|
1697
|
-
* @returns string - Rem unit aligned to baseline
|
|
1698
|
-
*/
|
|
1699
|
-
export const sizeToPixel: (scale?: number) => (themeOrBase: number | {
|
|
1700
|
-
[key: string]: any;
|
|
1701
|
-
base: number;
|
|
1702
|
-
}) => string;
|
|
1703
|
-
|
|
1704
|
-
}
|
|
1705
|
-
declare module '@elastic/eui/src/services/theme/hooks' {
|
|
1706
|
-
import React from 'react';
|
|
1707
|
-
import { EuiThemeColorModeStandard, EuiThemeModifications, EuiThemeComputed } from '@elastic/eui/src/services/theme/types';
|
|
1708
|
-
export interface UseEuiTheme<T extends {} = {}> {
|
|
1709
|
-
euiTheme: EuiThemeComputed<T>;
|
|
1710
|
-
colorMode: EuiThemeColorModeStandard;
|
|
1711
|
-
modifications: EuiThemeModifications<T>;
|
|
1712
|
-
}
|
|
1713
|
-
export const useEuiTheme: <T extends {} = {}>() => UseEuiTheme<T>;
|
|
1714
|
-
export interface WithEuiThemeProps<P = {}> {
|
|
1715
|
-
theme: UseEuiTheme<P>;
|
|
1716
|
-
}
|
|
1717
|
-
export const withEuiTheme: <T extends {} = {}, U extends {} = {}>(Component: React.ComponentType<T & WithEuiThemeProps<U>>) => React.ForwardRefExoticComponent<React.PropsWithoutRef<Omit<T, "theme">> & React.RefAttributes<Omit<T, "theme">>>;
|
|
1718
|
-
|
|
1719
|
-
}
|
|
1720
|
-
declare module '@elastic/eui/src/global_styling/functions/typography' {
|
|
1721
|
-
import { _EuiThemeFontScale, _EuiThemeFontSizeMeasurement } from '@elastic/eui/src/global_styling/variables/typography';
|
|
1722
|
-
import { UseEuiTheme } from '@elastic/eui/src/services/theme/hooks';
|
|
1723
|
-
export interface _FontScaleOptions {
|
|
1724
|
-
/**
|
|
1725
|
-
* The returned string measurement
|
|
1726
|
-
*/
|
|
1727
|
-
measurement?: _EuiThemeFontSizeMeasurement;
|
|
1728
|
-
/**
|
|
1729
|
-
* An additional custom scale multiplier to use against the current scale
|
|
1730
|
-
* This parameter can be used (e.g. by EuiText sizes) to get sizes of text smaller than the default
|
|
1731
|
-
*/
|
|
1732
|
-
customScale?: _EuiThemeFontScale;
|
|
1733
|
-
}
|
|
1734
|
-
/**
|
|
1735
|
-
* Calculates the font-size value based on the provided scale key
|
|
1736
|
-
* @param scale - The font scale key
|
|
1737
|
-
* @param theme - Requires the `base` and `font` keys
|
|
1738
|
-
* @param options - Optional parameters - see _FontScaleOptions
|
|
1739
|
-
*
|
|
1740
|
-
* @returns string - Calculated font-size value
|
|
1741
|
-
*/
|
|
1742
|
-
export function euiFontSizeFromScale(scale: _EuiThemeFontScale, { base, font }: UseEuiTheme['euiTheme'], { measurement, customScale }?: _FontScaleOptions): string;
|
|
1743
|
-
/**
|
|
1744
|
-
* Calculates the line-height to the closest multiple of the baseline
|
|
1745
|
-
* EX: A proper line-height for text is 1.5 times the font-size.
|
|
1746
|
-
* If our base font size (euiFontSize) is 16, and our baseline is 4. To ensure the
|
|
1747
|
-
* text stays on the baseline, we pass a multiplier to calculate a line-height.
|
|
1748
|
-
* @param scale - The font scale key
|
|
1749
|
-
* @param theme - Requires the `base` and `font` keys
|
|
1750
|
-
* @param options - Optional parameters - see _FontScaleOptions
|
|
1751
|
-
*
|
|
1752
|
-
* @returns string - Calculated line-height value aligned to baseline
|
|
1753
|
-
*/
|
|
1754
|
-
export function euiLineHeightFromBaseline(scale: _EuiThemeFontScale, { base, font }: UseEuiTheme['euiTheme'], { measurement, customScale }?: _FontScaleOptions): string;
|
|
1755
|
-
/**
|
|
1756
|
-
* Text weight shifting
|
|
1757
|
-
*
|
|
1758
|
-
* When changing the font-weight based on the state of the component,
|
|
1759
|
-
* this mixin will ensure that the sizing is dependent on the boldest
|
|
1760
|
-
* weight so it doesn't shift sibling content.
|
|
1761
|
-
*/
|
|
1762
|
-
export const euiTextShift: (fontWeight: "bold" | "medium" | "light" | "regular" | "semiBold" | undefined, attribute: string | undefined, euiTheme: UseEuiTheme['euiTheme']) => string;
|
|
1763
|
-
|
|
1764
|
-
}
|
|
1765
|
-
declare module '@elastic/eui/src/global_styling/functions' {
|
|
1766
|
-
export * from '@elastic/eui/src/global_styling/functions/logicals';
|
|
1767
|
-
export * from '@elastic/eui/src/global_styling/functions/size';
|
|
1768
|
-
export * from '@elastic/eui/src/global_styling/functions/typography';
|
|
1769
|
-
|
|
1770
|
-
}
|
|
1771
|
-
declare module '@elastic/eui/src/global_styling/mixins/_padding' {
|
|
1772
|
-
import { UseEuiTheme } from '@elastic/eui/src/services/theme';
|
|
1773
|
-
export const PADDING_SIZES: readonly ["none", "xs", "s", "m", "l", "xl"];
|
|
1774
|
-
export type EuiPaddingSize = typeof PADDING_SIZES[number];
|
|
1775
|
-
export const euiPaddingSize: ({ euiTheme }: UseEuiTheme, size: EuiPaddingSize) => string | null;
|
|
1776
|
-
export const useEuiPaddingSize: (size: EuiPaddingSize) => string | null;
|
|
1777
|
-
export const useEuiPaddingCSS: (side?: "left" | "right" | "top" | "bottom" | "horizontal" | "vertical" | undefined) => {
|
|
1778
|
-
none: null;
|
|
1779
|
-
xs: import("@emotion/utils").SerializedStyles;
|
|
1780
|
-
s: import("@emotion/utils").SerializedStyles;
|
|
1781
|
-
m: import("@emotion/utils").SerializedStyles;
|
|
1782
|
-
l: import("@emotion/utils").SerializedStyles;
|
|
1783
|
-
xl: import("@emotion/utils").SerializedStyles;
|
|
1784
|
-
};
|
|
1785
|
-
|
|
1786
|
-
}
|
|
1787
|
-
declare module '@elastic/eui/src/global_styling/mixins/_states' {
|
|
1788
|
-
import { CSSProperties } from 'react';
|
|
1789
|
-
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
1790
|
-
export type _EuiFocusRingOffset = 'inset' | 'outset' | 'center' | CSSProperties['outlineOffset'];
|
|
1791
|
-
/**
|
|
1792
|
-
* It is best practice to utilize the browser's default `outline` property for handling focus rings.
|
|
1793
|
-
* However, some components need to be forced to have the same behavior, or adjust the display.
|
|
1794
|
-
* This function re-applies the same default outline with a couple parameters
|
|
1795
|
-
* @param euiTheme UseEuiTheme.euiTheme
|
|
1796
|
-
* @param offset Accepts a specific measurement or 'inset', 'outset' or 'center' to adjust outline position
|
|
1797
|
-
* @param color Accepts any CSS color, **Note: only works in -webkit-**
|
|
1798
|
-
*/
|
|
1799
|
-
export const euiFocusRing: (euiTheme: UseEuiTheme['euiTheme'], offset?: _EuiFocusRingOffset, options?: {
|
|
1800
|
-
color?: CSSProperties['outlineColor'];
|
|
1801
|
-
} | undefined) => string;
|
|
1802
|
-
export const useEuiFocusRing: (offset?: _EuiFocusRingOffset, color?: CSSProperties['outlineColor']) => string;
|
|
1803
|
-
|
|
1804
|
-
}
|
|
1805
|
-
declare module '@elastic/eui/src/global_styling/mixins/_typography' {
|
|
1806
|
-
import { CSSProperties } from 'react';
|
|
1807
|
-
import { _FontScaleOptions } from '@elastic/eui/src/global_styling/functions/typography';
|
|
1808
|
-
import { UseEuiTheme } from '@elastic/eui/src/services/theme/hooks';
|
|
1809
|
-
import { _EuiThemeFontScale } from '@elastic/eui/src/global_styling/variables/typography';
|
|
1810
|
-
export type EuiThemeFontSize = {
|
|
1811
|
-
fontSize: CSSProperties['fontSize'];
|
|
1812
|
-
lineHeight: CSSProperties['lineHeight'];
|
|
1813
|
-
};
|
|
1814
|
-
/**
|
|
1815
|
-
* Returns font-size and line-height
|
|
1816
|
-
*/
|
|
1817
|
-
export const euiFontSize: ({ euiTheme }: UseEuiTheme, scale: _EuiThemeFontScale, options?: _FontScaleOptions | undefined) => EuiThemeFontSize;
|
|
1818
|
-
export const useEuiFontSize: (scale: _EuiThemeFontScale, options?: _FontScaleOptions | undefined) => EuiThemeFontSize;
|
|
1819
|
-
/**
|
|
1820
|
-
* Force text to wrap on natural word breaks (e.g. spaces & hyphens)
|
|
1821
|
-
* https://css-tricks.com/snippets/css/prevent-long-urls-from-breaking-out-of-container/
|
|
1822
|
-
*/
|
|
1823
|
-
export const euiTextBreakWord: () => string;
|
|
1824
|
-
/**
|
|
1825
|
-
* Prevent text from wrapping onto multiple lines, and truncate with an ellipsis.
|
|
1826
|
-
*/
|
|
1827
|
-
export const euiTextTruncate: (maxWidth?: CSSProperties['maxWidth']) => string;
|
|
1828
|
-
/**
|
|
1829
|
-
* Fixed-width numbers for tabular data
|
|
1830
|
-
*/
|
|
1831
|
-
export const euiNumberFormat: ({ euiTheme }: UseEuiTheme) => string;
|
|
1832
|
-
export const useEuiNumberFormat: () => string;
|
|
1833
|
-
|
|
1834
|
-
}
|
|
1835
|
-
declare module '@elastic/eui/src/services/breakpoint/_sorting' {
|
|
1836
|
-
import { _EuiThemeBreakpoints } from '@elastic/eui/src/global_styling/variables/breakpoint';
|
|
1837
|
-
export const sortMapByLargeToSmallValues: (breakpointsMap: _EuiThemeBreakpoints) => {
|
|
1838
|
-
[k: string]: number;
|
|
1839
|
-
};
|
|
1840
|
-
export const sortMapBySmallToLargeValues: (breakpointsMap: _EuiThemeBreakpoints) => {
|
|
1841
|
-
[k: string]: number;
|
|
1842
|
-
};
|
|
1843
|
-
|
|
1844
|
-
}
|
|
1845
|
-
declare module '@elastic/eui/src/global_styling/variables/shadow' {
|
|
1846
|
-
export const EuiThemeShadowSizes: readonly ["xs", "s", "m", "l", "xl"];
|
|
1847
|
-
export type _EuiThemeShadowSize = typeof EuiThemeShadowSizes[number];
|
|
1848
|
-
/**
|
|
1849
|
-
* Shadow t-shirt sizes descriptions
|
|
1850
|
-
*/
|
|
1851
|
-
export const _EuiShadowSizesDescriptions: Record<_EuiThemeShadowSize, string>;
|
|
1852
|
-
export interface _EuiThemeShadowCustomColor {
|
|
1853
|
-
color?: string;
|
|
1854
|
-
property?: 'box-shadow' | 'filter';
|
|
1855
|
-
}
|
|
1856
|
-
|
|
1857
|
-
}
|
|
1858
|
-
declare module '@elastic/eui/src/global_styling/variables' {
|
|
1859
|
-
export * from '@elastic/eui/src/global_styling/variables/animations';
|
|
1860
|
-
export * from '@elastic/eui/src/global_styling/variables/borders';
|
|
1861
|
-
export * from '@elastic/eui/src/global_styling/variables/breakpoint';
|
|
1862
|
-
export * from '@elastic/eui/src/global_styling/variables/colors';
|
|
1863
|
-
export * from '@elastic/eui/src/global_styling/variables/levels';
|
|
1864
|
-
export * from '@elastic/eui/src/global_styling/variables/size';
|
|
1865
|
-
export * from '@elastic/eui/src/global_styling/variables/shadow';
|
|
1866
|
-
export * from '@elastic/eui/src/global_styling/variables/states';
|
|
1867
|
-
export * from '@elastic/eui/src/global_styling/variables/typography';
|
|
1868
|
-
|
|
1869
|
-
}
|
|
1870
|
-
declare module '@elastic/eui/src/global_styling/mixins/_responsive' {
|
|
1871
|
-
import { UseEuiTheme } from '@elastic/eui/src/services/theme/hooks';
|
|
1872
|
-
import { _EuiThemeBreakpoint } from '@elastic/eui/src/global_styling/variables';
|
|
1873
|
-
/**
|
|
1874
|
-
* Generates a CSS media query rule string based on the input breakpoint ranges.
|
|
1875
|
-
* Examples with default theme breakpoints:
|
|
1876
|
-
*
|
|
1877
|
-
* euiBreakpoint(['s']) becomes `@media only screen and (min-width: 575px) and (max-width: 767px)`
|
|
1878
|
-
* euiBreakpoint(['s', 'l']) becomes `@media only screen and (min-width: 575px) and (max-width: 1199px)`
|
|
1879
|
-
*
|
|
1880
|
-
* Use the smallest and largest sizes to generate media queries with only min/max-width.
|
|
1881
|
-
* Examples with default theme breakpoints:
|
|
1882
|
-
*
|
|
1883
|
-
* euiBreakpoint(['xs', 'm']) becomes `@media only screen and (max-width: 991px)`
|
|
1884
|
-
* euiBreakpoint(['l', 'xl']) becomes `@media only screen and (min-width: 992px)`
|
|
1885
|
-
*/
|
|
1886
|
-
export const euiBreakpoint: ({ euiTheme }: UseEuiTheme, sizes: [_EuiThemeBreakpoint, ..._EuiThemeBreakpoint[]]) => string;
|
|
1887
|
-
export const useEuiBreakpoint: (sizes: [_EuiThemeBreakpoint, ..._EuiThemeBreakpoint[]]) => string;
|
|
1888
|
-
|
|
1889
|
-
}
|
|
1890
|
-
declare module '@elastic/eui/src/global_styling/mixins' {
|
|
1891
|
-
export * from '@elastic/eui/src/global_styling/mixins/_color';
|
|
1892
|
-
export * from '@elastic/eui/src/global_styling/mixins/_helpers';
|
|
1893
|
-
export * from '@elastic/eui/src/global_styling/mixins/_padding';
|
|
1894
|
-
export * from '@elastic/eui/src/global_styling/mixins/_states';
|
|
1895
|
-
export * from '@elastic/eui/src/global_styling/mixins/_typography';
|
|
1896
|
-
export * from '@elastic/eui/src/global_styling/mixins/_responsive';
|
|
1897
|
-
|
|
1898
|
-
}
|
|
1899
|
-
declare module '@elastic/eui/src/global_styling/reset/reset' {
|
|
1900
|
-
export const resetStyles = "\n/* // Adapted from Eric Meyer's reset (http://meyerweb.com/eric/tools/css/reset/, v2.0 | 20110126). */\n\n\n*, *:before, *:after {\n box-sizing: border-box;\n}\n\nhtml, body, div, span, applet, object, iframe,\nh1, h2, h3, h4, h5, h6, p, blockquote, pre,\na, abbr, acronym, address, big, cite, code,\ndel, dfn, em, img, ins, kbd, q, s, samp,\nsmall, strike, strong, sub, sup, tt, var,\nb, u, i, center,\ndl, dt, dd, ol, ul, li,\nfieldset, form, label, legend,\ntable, caption, tbody, tfoot, thead, tr, th, td,\narticle, aside, canvas, details, embed,\nfigure, figcaption, footer, header, hgroup,\nmenu, nav, output, ruby, section, summary,\ntime, mark, audio, video {\n margin: 0;\n padding: 0;\n border: none;\n vertical-align: baseline;\n}\n\nh1, h2, h3, h4, h5, h6, p {\n font-family: inherit;\n font-weight: inherit;\n font-size: inherit;\n}\n\n/* HTML5 display-role reset for older browsers */\narticle, aside, details, figcaption, figure,\nfooter, header, hgroup, menu, nav, section {\n display: block;\n}\n\na[href],\nbutton,\n[role='button'] {\n cursor: pointer;\n}\n\nbutton {\n background: none;\n border: none;\n padding: 0;\n margin: 0;\n color: inherit;\n border-radius: 0;\n font-size: inherit;\n}\n\ninput {\n margin: 0;\n padding: 0;\n}\n\ninput:disabled {\n opacity: 1; /* required on iOS */\n}\n\nol,\nul {\n list-style: none;\n}\n\nblockquote,\nq {\n quotes: none;\n}\n\nblockquote:before,\nblockquote:after,\nq:before,\nq:after {\n content: '';\n}\n\ntable {\n border-collapse: collapse;\n border-spacing: 0;\n}\n\nhr {\n margin: 0;\n}\n\nfieldset {\n min-inline-size: auto;\n}\n\n/* Chrome has an issue around RTL languages in SVGs when letter-spacing is negative\n * https://bugs.chromium.org/p/chromium/issues/detail?id=966480\n */\nsvg text {\n letter-spacing: normal !important;\n}";
|
|
1901
|
-
|
|
1902
|
-
}
|
|
1903
|
-
declare module '@elastic/eui/src/global_styling/reset/global_styles' {
|
|
1904
|
-
|
|
1905
|
-
export interface EuiGlobalStylesProps {
|
|
1906
|
-
}
|
|
1907
|
-
export const EuiGlobalStyles: ({}: EuiGlobalStylesProps) => JSX.Element;
|
|
1908
|
-
|
|
1909
|
-
}
|
|
1910
|
-
declare module '@elastic/eui/src/global_styling' {
|
|
1911
|
-
export * from '@elastic/eui/src/global_styling/reset/global_styles';
|
|
1912
|
-
export * from '@elastic/eui/src/global_styling/functions';
|
|
1913
|
-
export * from '@elastic/eui/src/global_styling/variables';
|
|
1914
|
-
export * from '@elastic/eui/src/global_styling/mixins';
|
|
1915
|
-
|
|
1916
|
-
}
|
|
1917
|
-
declare module '@elastic/eui/src/components/icon/icon.styles' {
|
|
1918
|
-
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
1919
|
-
export const iconLoadingOpacity = 0.05;
|
|
1920
|
-
export const euiIconStyles: ({ euiTheme }: UseEuiTheme) => {
|
|
1921
|
-
euiIcon: import("@emotion/utils").SerializedStyles;
|
|
1922
|
-
accent: import("@emotion/utils").SerializedStyles;
|
|
1923
|
-
danger: import("@emotion/utils").SerializedStyles;
|
|
1924
|
-
ghost: import("@emotion/utils").SerializedStyles;
|
|
1925
|
-
primary: import("@emotion/utils").SerializedStyles;
|
|
1926
|
-
success: import("@emotion/utils").SerializedStyles;
|
|
1927
|
-
subdued: import("@emotion/utils").SerializedStyles;
|
|
1928
|
-
text: import("@emotion/utils").SerializedStyles;
|
|
1929
|
-
warning: import("@emotion/utils").SerializedStyles;
|
|
1930
|
-
inherit: import("@emotion/utils").SerializedStyles;
|
|
1931
|
-
default: import("@emotion/utils").SerializedStyles;
|
|
1932
|
-
customColor: import("@emotion/utils").SerializedStyles;
|
|
1933
|
-
logoElasticOutline: import("@emotion/utils").SerializedStyles;
|
|
1934
|
-
original: import("@emotion/utils").SerializedStyles;
|
|
1935
|
-
s: import("@emotion/utils").SerializedStyles;
|
|
1936
|
-
m: import("@emotion/utils").SerializedStyles;
|
|
1937
|
-
l: import("@emotion/utils").SerializedStyles;
|
|
1938
|
-
xl: import("@emotion/utils").SerializedStyles;
|
|
1939
|
-
xxl: import("@emotion/utils").SerializedStyles;
|
|
1940
|
-
app: import("@emotion/utils").SerializedStyles;
|
|
1941
|
-
logo: import("@emotion/utils").SerializedStyles;
|
|
1942
|
-
isLoading: import("@emotion/utils").SerializedStyles;
|
|
1943
|
-
isLoaded: import("@emotion/utils").SerializedStyles;
|
|
1944
|
-
};
|
|
1945
|
-
|
|
1946
|
-
}
|
|
1947
|
-
declare module '@elastic/eui/src/components/icon/icon' {
|
|
1948
|
-
import React, { PureComponent, ComponentType, SVGAttributes } from 'react';
|
|
1949
|
-
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
1950
|
-
import { typeToPathMap } from '@elastic/eui/src/components/icon/icon_map';
|
|
1951
|
-
import { WithEuiThemeProps } from '@elastic/eui/src/services';
|
|
1952
|
-
export { COLORS } from '@elastic/eui/src/components/icon/named_colors';
|
|
1953
|
-
import { NamedColor } from '@elastic/eui/src/components/icon/named_colors';
|
|
1954
|
-
export const TYPES: ("string" | "number" | "function" | "link" | "menu" | "filter" | "image" | "stop" | "alert" | "document" | "grid" | "list" | "search" | "temperature" | "color" | "accessibility" | "aggregate" | "analyzeEvent" | "annotation" | "apps" | "arrowStart" | "arrowEnd" | "asterisk" | "beaker" | "bell" | "bellSlash" | "bolt" | "branch" | "branchUser" | "broom" | "brush" | "bug" | "bullseye" | "calendar" | "check" | "checkInCircleFilled" | "cheer" | "clock" | "cloudDrizzle" | "cloudStormy" | "cloudSunny" | "cluster" | "compute" | "console" | "container" | "continuityAbove" | "continuityAboveBelow" | "continuityBelow" | "continuityWithin" | "copy" | "cross" | "crossInACircleFilled" | "crosshairs" | "currency" | "cut" | "database" | "desktop" | "documentEdit" | "documentation" | "documents" | "dot" | "doubleArrowLeft" | "doubleArrowRight" | "download" | "editorDistributeHorizontal" | "editorDistributeVertical" | "editorItemAlignBottom" | "editorItemAlignCenter" | "editorItemAlignLeft" | "editorItemAlignMiddle" | "editorItemAlignRight" | "editorItemAlignTop" | "editorPositionBottomLeft" | "editorPositionBottomRight" | "editorPositionTopLeft" | "editorPositionTopRight" | "email" | "empty" | "eql" | "eraser" | "exit" | "expand" | "expandMini" | "eye" | "flag" | "fold" | "frameNext" | "framePrevious" | "fullScreenExit" | "gear" | "glasses" | "globe" | "grab" | "heart" | "heatmap" | "help" | "home" | "iInCircle" | "inputOutput" | "inspect" | "invert" | "ip" | "keyboard" | "kubernetesNode" | "kubernetesPod" | "layers" | "lettering" | "lineDashed" | "lineDotted" | "lineSolid" | "lock" | "lockOpen" | "magnet" | "magnifyWithExclamation" | "magnifyWithMinus" | "magnifyWithPlus" | "memory" | "menuDown" | "menuLeft" | "menuRight" | "menuUp" | "merge" | "minimize" | "minus" | "mobile" | "moon" | "namespace" | "nested" | "node" | "offline" | "online" | "package" | "pageSelect" | "pagesSelect" | "partial" | "pause" | "payment" | "pencil" | "percent" | "pin" | "play" | "playFilled" | "plus" | "popout" | "push" | "quote" | "refresh" | "reporter" | "save" | "scale" | "securitySignal" | "securitySignalDetected" | "securitySignalResolved" | "sessionViewer" | "shard" | "share" | "snowflake" | "sortLeft" | "sortRight" | "sortable" | "starPlusEmpty" | "starPlusFilled" | "stats" | "storage" | "submodule" | "sun" | "symlink" | "tableOfContents" | "tag" | "tear" | "timeline" | "timeRefresh" | "timeslider" | "training" | "trash" | "unfold" | "unlink" | "user" | "userAvatar" | "users" | "vector" | "videoPlayer" | "wordWrap" | "wordWrapDisabled" | "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" | "addDataApp" | "advancedSettingsApp" | "agentApp" | "apmApp" | "apmTrace" | "appSearchApp" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowUp" | "auditbeatApp" | "boxesHorizontal" | "boxesVertical" | "canvasApp" | "casesApp" | "classificationJob" | "codeApp" | "consoleApp" | "controlsHorizontal" | "controlsVertical" | "copyClipboard" | "createAdvancedJob" | "createMultiMetricJob" | "createPopulationJob" | "createSingleMetricJob" | "crossClusterReplicationApp" | "dashboardApp" | "dataVisualizer" | "devToolsApp" | "discoverApp" | "editorAlignCenter" | "editorAlignLeft" | "editorAlignRight" | "editorBold" | "editorChecklist" | "editorCodeBlock" | "editorComment" | "editorHeading" | "editorItalic" | "editorLink" | "editorOrderedList" | "editorRedo" | "editorStrike" | "editorTable" | "editorUnderline" | "editorUndo" | "editorUnorderedList" | "emsApp" | "exportAction" | "eyeClosed" | "faceHappy" | "faceNeutral" | "faceSad" | "filebeatApp" | "fleetApp" | "folderCheck" | "folderClosed" | "folderExclamation" | "folderOpen" | "fullScreen" | "gisApp" | "grabHorizontal" | "graphApp" | "grokApp" | "heartbeatApp" | "importAction" | "indexClose" | "indexEdit" | "indexFlush" | "indexManagementApp" | "indexMapping" | "indexOpen" | "indexPatternApp" | "indexRollupApp" | "indexRuntime" | "indexSettings" | "kqlField" | "kqlFunction" | "kqlOperand" | "kqlSelector" | "kqlValue" | "lensApp" | "listAdd" | "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" | "logoWebhook" | "logoWindows" | "logoWorkplaceSearch" | "logsApp" | "logstashFilter" | "logstashIf" | "logstashInput" | "logstashOutput" | "logstashQueue" | "machineLearningApp" | "managementApp" | "mapMarker" | "metricbeatApp" | "metricsApp" | "minusInCircle" | "minusInCircleFilled" | "monitoringApp" | "notebookApp" | "outlierDetectionJob" | "packetbeatApp" | "paperClip" | "pinFilled" | "pipelineApp" | "plusInCircle" | "plusInCircleFilled" | "questionInCircle" | "recentlyViewedApp" | "regressionJob" | "reportingApp" | "returnKey" | "savedObjectsApp" | "searchProfilerApp" | "securityAnalyticsApp" | "securityApp" | "sortDown" | "sortUp" | "spacesApp" | "sqlApp" | "starEmpty" | "starEmptySpace" | "starFilled" | "starFilledSpace" | "starMinusEmpty" | "starMinusFilled" | "stopFilled" | "stopSlash" | "swatchInput" | "tableDensityCompact" | "tableDensityExpanded" | "tableDensityNormal" | "timelionApp" | "upgradeAssistantApp" | "uptimeApp" | "usersRolesApp" | "visArea" | "visAreaStacked" | "visBarHorizontal" | "visBarHorizontalStacked" | "visBarVertical" | "visBarVerticalStacked" | "visGauge" | "visGoal" | "visLine" | "visMapCoordinate" | "visMapRegion" | "visMetric" | "visPie" | "visTable" | "visTagCloud" | "visText" | "visTimelion" | "visVega" | "visVisualBuilder" | "visualizeApp" | "watchesApp" | "workplaceSearchApp")[];
|
|
1955
|
-
export type EuiIconType = keyof typeof typeToPathMap;
|
|
1956
|
-
export type IconType = EuiIconType | string | ComponentType;
|
|
1957
|
-
export type IconColor = string | NamedColor;
|
|
1958
|
-
export const SIZES: readonly ["original", "s", "m", "l", "xl", "xxl"];
|
|
1959
|
-
export type IconSize = typeof SIZES[number];
|
|
1960
|
-
export type EuiIconProps = CommonProps & Omit<SVGAttributes<SVGElement>, 'type' | 'color' | 'size'> & {
|
|
1961
|
-
/**
|
|
1962
|
-
* `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
|
|
1963
|
-
*/
|
|
1964
|
-
type: IconType;
|
|
1965
|
-
/**
|
|
1966
|
-
* One of EUI's color palette or a valid CSS color value https://developer.mozilla.org/en-US/docs/Web/CSS/color_value.
|
|
1967
|
-
* Note that coloring only works if your SVG is removed of fill attributes.
|
|
1968
|
-
*/
|
|
1969
|
-
color?: IconColor;
|
|
1970
|
-
/**
|
|
1971
|
-
* Note that every size other than `original` assumes the provided SVG sits on a square viewbox.
|
|
1972
|
-
*/
|
|
1973
|
-
size?: IconSize;
|
|
1974
|
-
/**
|
|
1975
|
-
* Descriptive title for naming the icon based on its use
|
|
1976
|
-
*/
|
|
1977
|
-
title?: string;
|
|
1978
|
-
/**
|
|
1979
|
-
* A unique identifier for the title element
|
|
1980
|
-
*/
|
|
1981
|
-
titleId?: string;
|
|
1982
|
-
/**
|
|
1983
|
-
* Its value should be one or more element IDs
|
|
1984
|
-
*/
|
|
1985
|
-
'aria-labelledby'?: string;
|
|
1986
|
-
/**
|
|
1987
|
-
* Callback when the icon has been loaded & rendered
|
|
1988
|
-
*/
|
|
1989
|
-
onIconLoad?: () => void;
|
|
1990
|
-
};
|
|
1991
|
-
interface State {
|
|
1992
|
-
icon: undefined | ComponentType | string;
|
|
1993
|
-
iconTitle: undefined | string;
|
|
1994
|
-
isLoading: boolean;
|
|
1995
|
-
neededLoading: boolean;
|
|
1996
|
-
}
|
|
1997
|
-
export const clearIconComponentCache: (iconType?: "string" | "number" | "function" | "link" | "menu" | "filter" | "image" | "stop" | "alert" | "document" | "grid" | "list" | "search" | "temperature" | "color" | "accessibility" | "aggregate" | "analyzeEvent" | "annotation" | "apps" | "arrowStart" | "arrowEnd" | "asterisk" | "beaker" | "bell" | "bellSlash" | "bolt" | "branch" | "branchUser" | "broom" | "brush" | "bug" | "bullseye" | "calendar" | "check" | "checkInCircleFilled" | "cheer" | "clock" | "cloudDrizzle" | "cloudStormy" | "cloudSunny" | "cluster" | "compute" | "console" | "container" | "continuityAbove" | "continuityAboveBelow" | "continuityBelow" | "continuityWithin" | "copy" | "cross" | "crossInACircleFilled" | "crosshairs" | "currency" | "cut" | "database" | "desktop" | "documentEdit" | "documentation" | "documents" | "dot" | "doubleArrowLeft" | "doubleArrowRight" | "download" | "editorDistributeHorizontal" | "editorDistributeVertical" | "editorItemAlignBottom" | "editorItemAlignCenter" | "editorItemAlignLeft" | "editorItemAlignMiddle" | "editorItemAlignRight" | "editorItemAlignTop" | "editorPositionBottomLeft" | "editorPositionBottomRight" | "editorPositionTopLeft" | "editorPositionTopRight" | "email" | "empty" | "eql" | "eraser" | "exit" | "expand" | "expandMini" | "eye" | "flag" | "fold" | "frameNext" | "framePrevious" | "fullScreenExit" | "gear" | "glasses" | "globe" | "grab" | "heart" | "heatmap" | "help" | "home" | "iInCircle" | "inputOutput" | "inspect" | "invert" | "ip" | "keyboard" | "kubernetesNode" | "kubernetesPod" | "layers" | "lettering" | "lineDashed" | "lineDotted" | "lineSolid" | "lock" | "lockOpen" | "magnet" | "magnifyWithExclamation" | "magnifyWithMinus" | "magnifyWithPlus" | "memory" | "menuDown" | "menuLeft" | "menuRight" | "menuUp" | "merge" | "minimize" | "minus" | "mobile" | "moon" | "namespace" | "nested" | "node" | "offline" | "online" | "package" | "pageSelect" | "pagesSelect" | "partial" | "pause" | "payment" | "pencil" | "percent" | "pin" | "play" | "playFilled" | "plus" | "popout" | "push" | "quote" | "refresh" | "reporter" | "save" | "scale" | "securitySignal" | "securitySignalDetected" | "securitySignalResolved" | "sessionViewer" | "shard" | "share" | "snowflake" | "sortLeft" | "sortRight" | "sortable" | "starPlusEmpty" | "starPlusFilled" | "stats" | "storage" | "submodule" | "sun" | "symlink" | "tableOfContents" | "tag" | "tear" | "timeline" | "timeRefresh" | "timeslider" | "training" | "trash" | "unfold" | "unlink" | "user" | "userAvatar" | "users" | "vector" | "videoPlayer" | "wordWrap" | "wordWrapDisabled" | "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" | "addDataApp" | "advancedSettingsApp" | "agentApp" | "apmApp" | "apmTrace" | "appSearchApp" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowUp" | "auditbeatApp" | "boxesHorizontal" | "boxesVertical" | "canvasApp" | "casesApp" | "classificationJob" | "codeApp" | "consoleApp" | "controlsHorizontal" | "controlsVertical" | "copyClipboard" | "createAdvancedJob" | "createMultiMetricJob" | "createPopulationJob" | "createSingleMetricJob" | "crossClusterReplicationApp" | "dashboardApp" | "dataVisualizer" | "devToolsApp" | "discoverApp" | "editorAlignCenter" | "editorAlignLeft" | "editorAlignRight" | "editorBold" | "editorChecklist" | "editorCodeBlock" | "editorComment" | "editorHeading" | "editorItalic" | "editorLink" | "editorOrderedList" | "editorRedo" | "editorStrike" | "editorTable" | "editorUnderline" | "editorUndo" | "editorUnorderedList" | "emsApp" | "exportAction" | "eyeClosed" | "faceHappy" | "faceNeutral" | "faceSad" | "filebeatApp" | "fleetApp" | "folderCheck" | "folderClosed" | "folderExclamation" | "folderOpen" | "fullScreen" | "gisApp" | "grabHorizontal" | "graphApp" | "grokApp" | "heartbeatApp" | "importAction" | "indexClose" | "indexEdit" | "indexFlush" | "indexManagementApp" | "indexMapping" | "indexOpen" | "indexPatternApp" | "indexRollupApp" | "indexRuntime" | "indexSettings" | "kqlField" | "kqlFunction" | "kqlOperand" | "kqlSelector" | "kqlValue" | "lensApp" | "listAdd" | "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" | "logoWebhook" | "logoWindows" | "logoWorkplaceSearch" | "logsApp" | "logstashFilter" | "logstashIf" | "logstashInput" | "logstashOutput" | "logstashQueue" | "machineLearningApp" | "managementApp" | "mapMarker" | "metricbeatApp" | "metricsApp" | "minusInCircle" | "minusInCircleFilled" | "monitoringApp" | "notebookApp" | "outlierDetectionJob" | "packetbeatApp" | "paperClip" | "pinFilled" | "pipelineApp" | "plusInCircle" | "plusInCircleFilled" | "questionInCircle" | "recentlyViewedApp" | "regressionJob" | "reportingApp" | "returnKey" | "savedObjectsApp" | "searchProfilerApp" | "securityAnalyticsApp" | "securityApp" | "sortDown" | "sortUp" | "spacesApp" | "sqlApp" | "starEmpty" | "starEmptySpace" | "starFilled" | "starFilledSpace" | "starMinusEmpty" | "starMinusFilled" | "stopFilled" | "stopSlash" | "swatchInput" | "tableDensityCompact" | "tableDensityExpanded" | "tableDensityNormal" | "timelionApp" | "upgradeAssistantApp" | "uptimeApp" | "usersRolesApp" | "visArea" | "visAreaStacked" | "visBarHorizontal" | "visBarHorizontalStacked" | "visBarVertical" | "visBarVerticalStacked" | "visGauge" | "visGoal" | "visLine" | "visMapCoordinate" | "visMapRegion" | "visMetric" | "visPie" | "visTable" | "visTagCloud" | "visText" | "visTimelion" | "visVega" | "visVisualBuilder" | "visualizeApp" | "watchesApp" | "workplaceSearchApp" | undefined) => void;
|
|
1998
|
-
export const appendIconComponentCache: (iconTypeToIconComponentMap: {
|
|
1999
|
-
[iconType: string]: React.ComponentType<{}>;
|
|
2000
|
-
}) => void;
|
|
2001
|
-
export class EuiIconClass extends PureComponent<EuiIconProps & WithEuiThemeProps, State> {
|
|
2002
|
-
isMounted: boolean;
|
|
2003
|
-
constructor(props: EuiIconProps & WithEuiThemeProps);
|
|
2004
|
-
componentDidMount(): void;
|
|
2005
|
-
componentDidUpdate(prevProps: EuiIconProps): void;
|
|
2006
|
-
componentWillUnmount(): void;
|
|
2007
|
-
loadIconComponent: (iconType: EuiIconType) => void;
|
|
2008
|
-
onIconLoad: () => void;
|
|
2009
|
-
render(): JSX.Element;
|
|
2010
|
-
}
|
|
2011
|
-
export const EuiIcon: React.ForwardRefExoticComponent<Omit<EuiIconProps, "theme"> & React.RefAttributes<Omit<EuiIconProps, "theme">>>;
|
|
2012
|
-
|
|
2013
|
-
}
|
|
2014
|
-
declare module '@elastic/eui/src/components/icon' {
|
|
2015
|
-
export type { EuiIconProps, IconColor, IconSize, IconType } from '@elastic/eui/src/components/icon/icon';
|
|
2016
|
-
export { EuiIcon, TYPES as ICON_TYPES, SIZES as ICON_SIZES, COLORS as ICON_COLORS, } from '@elastic/eui/src/components/icon/icon';
|
|
2017
|
-
|
|
2018
|
-
}
|
|
2019
|
-
declare module '@elastic/eui/src/components/context/context' {
|
|
2020
|
-
import React, { Context, FunctionComponent, ReactChild, ReactNode } from 'react';
|
|
2021
|
-
export interface RenderableValues {
|
|
2022
|
-
[key: string]: ReactChild | undefined;
|
|
2023
|
-
}
|
|
2024
|
-
export type Renderable<T> = ReactChild | ((values: T) => ReactChild);
|
|
2025
|
-
export interface I18nShape {
|
|
2026
|
-
mapping?: {
|
|
2027
|
-
[key: string]: Renderable<object>;
|
|
2028
|
-
};
|
|
2029
|
-
mappingFunc?: (value: string) => string;
|
|
2030
|
-
/**
|
|
2031
|
-
* Some browsers' translation features don't work with a rendered `<Fragment>` component.
|
|
2032
|
-
* The `render` function allows you to pass in another component instead, e.g. `<div>`
|
|
2033
|
-
*/
|
|
2034
|
-
render?: (children: any) => FunctionComponent;
|
|
2035
|
-
formatNumber?: (x: number) => string;
|
|
2036
|
-
formatDateTime?: (x: Date) => string;
|
|
2037
|
-
locale?: string;
|
|
2038
|
-
} const I18nContext: Context<I18nShape>; const EuiI18nConsumer: React.Consumer<I18nShape>;
|
|
2039
|
-
export interface EuiContextProps {
|
|
2040
|
-
i18n: I18nShape;
|
|
2041
|
-
/**
|
|
2042
|
-
* ReactNode to render as this component's content
|
|
2043
|
-
*/
|
|
2044
|
-
children: ReactNode;
|
|
2045
|
-
} const EuiContext: FunctionComponent<EuiContextProps>;
|
|
2046
|
-
export { EuiContext, EuiI18nConsumer, I18nContext };
|
|
1520
|
+
export type Renderable<T> = ReactChild | ((values: T) => ReactChild);
|
|
1521
|
+
export interface I18nShape {
|
|
1522
|
+
mapping?: {
|
|
1523
|
+
[key: string]: Renderable<object>;
|
|
1524
|
+
};
|
|
1525
|
+
mappingFunc?: (value: string) => string;
|
|
1526
|
+
/**
|
|
1527
|
+
* Some browsers' translation features don't work with a rendered `<Fragment>` component.
|
|
1528
|
+
* The `render` function allows you to pass in another component instead, e.g. `<div>`
|
|
1529
|
+
*/
|
|
1530
|
+
render?: (children: any) => FunctionComponent;
|
|
1531
|
+
formatNumber?: (x: number) => string;
|
|
1532
|
+
formatDateTime?: (x: Date) => string;
|
|
1533
|
+
locale?: string;
|
|
1534
|
+
} const I18nContext: Context<I18nShape>; const EuiI18nConsumer: React.Consumer<I18nShape>;
|
|
1535
|
+
export interface EuiContextProps {
|
|
1536
|
+
i18n: I18nShape;
|
|
1537
|
+
/**
|
|
1538
|
+
* ReactNode to render as this component's content
|
|
1539
|
+
*/
|
|
1540
|
+
children: ReactNode;
|
|
1541
|
+
} const EuiContext: FunctionComponent<EuiContextProps>;
|
|
1542
|
+
export { EuiContext, EuiI18nConsumer, I18nContext };
|
|
2047
1543
|
|
|
2048
1544
|
}
|
|
2049
1545
|
declare module '@elastic/eui/src/components/context' {
|
|
@@ -2254,49 +1750,174 @@ declare module '@elastic/eui/src/components/loading/loading_logo.styles' {
|
|
|
2254
1750
|
};
|
|
2255
1751
|
|
|
2256
1752
|
}
|
|
2257
|
-
declare module '@elastic/eui/src/components/loading/loading_logo' {
|
|
2258
|
-
import { HTMLAttributes, FunctionComponent } from 'react';
|
|
2259
|
-
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
2260
|
-
import { IconType } from '@elastic/eui/src/components/icon';
|
|
2261
|
-
export const SIZES: readonly ["m", "l", "xl"];
|
|
2262
|
-
export type EuiLoadingLogoSize = typeof SIZES[number];
|
|
2263
|
-
export type EuiLoadingLogoProps = CommonProps & HTMLAttributes<HTMLDivElement> & {
|
|
2264
|
-
size?: EuiLoadingLogoSize;
|
|
2265
|
-
/**
|
|
2266
|
-
* While this component should be restricted to using logo icons, it works with any IconType
|
|
2267
|
-
*/
|
|
2268
|
-
logo?: IconType;
|
|
1753
|
+
declare module '@elastic/eui/src/components/loading/loading_logo' {
|
|
1754
|
+
import { HTMLAttributes, FunctionComponent } from 'react';
|
|
1755
|
+
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
1756
|
+
import { IconType } from '@elastic/eui/src/components/icon';
|
|
1757
|
+
export const SIZES: readonly ["m", "l", "xl"];
|
|
1758
|
+
export type EuiLoadingLogoSize = typeof SIZES[number];
|
|
1759
|
+
export type EuiLoadingLogoProps = CommonProps & HTMLAttributes<HTMLDivElement> & {
|
|
1760
|
+
size?: EuiLoadingLogoSize;
|
|
1761
|
+
/**
|
|
1762
|
+
* While this component should be restricted to using logo icons, it works with any IconType
|
|
1763
|
+
*/
|
|
1764
|
+
logo?: IconType;
|
|
1765
|
+
};
|
|
1766
|
+
export const EuiLoadingLogo: FunctionComponent<EuiLoadingLogoProps>;
|
|
1767
|
+
|
|
1768
|
+
}
|
|
1769
|
+
declare module '@elastic/eui/src/components/loading' {
|
|
1770
|
+
export type { EuiLoadingElasticProps } from '@elastic/eui/src/components/loading/loading_elastic';
|
|
1771
|
+
export { EuiLoadingElastic } from '@elastic/eui/src/components/loading/loading_elastic';
|
|
1772
|
+
export type { EuiLoadingChartProps } from '@elastic/eui/src/components/loading/loading_chart';
|
|
1773
|
+
export { EuiLoadingChart } from '@elastic/eui/src/components/loading/loading_chart';
|
|
1774
|
+
export type { EuiLoadingContentProps } from '@elastic/eui/src/components/loading/loading_content';
|
|
1775
|
+
export { EuiLoadingContent } from '@elastic/eui/src/components/loading/loading_content';
|
|
1776
|
+
export type { EuiLoadingSpinnerProps } from '@elastic/eui/src/components/loading/loading_spinner';
|
|
1777
|
+
export { EuiLoadingSpinner } from '@elastic/eui/src/components/loading/loading_spinner';
|
|
1778
|
+
export type { EuiLoadingLogoProps } from '@elastic/eui/src/components/loading/loading_logo';
|
|
1779
|
+
export { EuiLoadingLogo } from '@elastic/eui/src/components/loading/loading_logo';
|
|
1780
|
+
|
|
1781
|
+
}
|
|
1782
|
+
declare module '@elastic/eui/src/components/button/_button_content_deprecated' {
|
|
1783
|
+
import { HTMLAttributes, FunctionComponent, Ref } from 'react';
|
|
1784
|
+
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
1785
|
+
import { IconType } from '@elastic/eui/src/components/icon';
|
|
1786
|
+
export type ButtonContentIconSide = 'left' | 'right';
|
|
1787
|
+
export const ICON_SIDES: ButtonContentIconSide[];
|
|
1788
|
+
export type EuiButtonContentType = HTMLAttributes<HTMLSpanElement>;
|
|
1789
|
+
/**
|
|
1790
|
+
* *INTERNAL ONLY / DEPRECATED*
|
|
1791
|
+
* This component is simply a helper component for reuse within other button components
|
|
1792
|
+
* This component has been deprecated in favor of the new EuiButtonDisplayContent
|
|
1793
|
+
* that can be found in `src/components/button/button_display/_button_display_content.tsx`.
|
|
1794
|
+
*/
|
|
1795
|
+
export interface EuiButtonContentProps extends CommonProps {
|
|
1796
|
+
/**
|
|
1797
|
+
* Any `type` accepted by EuiIcon
|
|
1798
|
+
*/
|
|
1799
|
+
iconType?: IconType;
|
|
1800
|
+
/**
|
|
1801
|
+
* Can only be one side `left` or `right`
|
|
1802
|
+
*/
|
|
1803
|
+
iconSide?: ButtonContentIconSide;
|
|
1804
|
+
isLoading?: boolean;
|
|
1805
|
+
/**
|
|
1806
|
+
* Object of props passed to the <span/> wrapping the content's text (only if the children is a `string`)
|
|
1807
|
+
* It doesn't apply to the icon.
|
|
1808
|
+
*/
|
|
1809
|
+
textProps?: HTMLAttributes<HTMLSpanElement> & CommonProps & {
|
|
1810
|
+
ref?: Ref<HTMLSpanElement>;
|
|
1811
|
+
'data-text'?: string;
|
|
1812
|
+
};
|
|
1813
|
+
iconSize?: 's' | 'm';
|
|
1814
|
+
}
|
|
1815
|
+
export const EuiButtonContentDeprecated: FunctionComponent<EuiButtonContentType & EuiButtonContentProps>;
|
|
1816
|
+
|
|
1817
|
+
}
|
|
1818
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/mixins/button' {
|
|
1819
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
1820
|
+
export const BUTTON_COLORS: readonly ["text", "accent", "primary", "success", "warning", "danger"];
|
|
1821
|
+
export type _EuiButtonColor = typeof BUTTON_COLORS[number];
|
|
1822
|
+
export type _EuiButtonDisplay = 'base' | 'fill' | 'empty';
|
|
1823
|
+
export interface _EuiButtonOptions {
|
|
1824
|
+
display?: _EuiButtonDisplay;
|
|
1825
|
+
}
|
|
1826
|
+
/**
|
|
1827
|
+
* Creates the `base` version of button styles with proper text contrast.
|
|
1828
|
+
* @param euiThemeContext
|
|
1829
|
+
* @param color One of the named button colors or 'disabled'
|
|
1830
|
+
* @returns Style object `{ backgroundColor, color }`
|
|
1831
|
+
*/
|
|
1832
|
+
export const euiButtonColor: (euiThemeContext: UseEuiTheme, color: _EuiButtonColor | 'disabled') => {
|
|
1833
|
+
color: string;
|
|
1834
|
+
backgroundColor: string;
|
|
1835
|
+
};
|
|
1836
|
+
/**
|
|
1837
|
+
* Creates the `fill` version of buttons styles with proper text contrast.
|
|
1838
|
+
* @param euiThemeContext
|
|
1839
|
+
* @param color One of the named button colors or 'disabled'
|
|
1840
|
+
* @returns Style object `{ backgroundColor, color }`
|
|
1841
|
+
*/
|
|
1842
|
+
export const euiButtonFillColor: (euiThemeContext: UseEuiTheme, color: _EuiButtonColor | 'disabled') => {
|
|
1843
|
+
color: string;
|
|
1844
|
+
backgroundColor: string;
|
|
1845
|
+
};
|
|
1846
|
+
/**
|
|
1847
|
+
* Creates the `empty` version of button styles using the text-variant and adding interactive styles.
|
|
1848
|
+
* @param euiThemeContext
|
|
1849
|
+
* @param color One of the named button colors or 'disabled'
|
|
1850
|
+
* @returns Style object `{ backgroundColor, color }` where `background` is typically used for interactive states
|
|
1851
|
+
*/
|
|
1852
|
+
export const euiButtonEmptyColor: (euiThemeContext: UseEuiTheme, color: _EuiButtonColor | 'disabled') => {
|
|
1853
|
+
color: string;
|
|
1854
|
+
backgroundColor: string;
|
|
1855
|
+
};
|
|
1856
|
+
/**
|
|
1857
|
+
* Given the button display type, returns the Emotion based color keys.
|
|
1858
|
+
* @param options Button display type
|
|
1859
|
+
* @returns An object of `_EuiButtonColor` keys including `disabled`
|
|
1860
|
+
*/
|
|
1861
|
+
export const useEuiButtonColorCSS: (options?: _EuiButtonOptions) => {
|
|
1862
|
+
text: import("@emotion/utils").SerializedStyles;
|
|
1863
|
+
accent: import("@emotion/utils").SerializedStyles;
|
|
1864
|
+
primary: import("@emotion/utils").SerializedStyles;
|
|
1865
|
+
success: import("@emotion/utils").SerializedStyles;
|
|
1866
|
+
warning: import("@emotion/utils").SerializedStyles;
|
|
1867
|
+
danger: import("@emotion/utils").SerializedStyles;
|
|
1868
|
+
disabled: import("@emotion/utils").SerializedStyles;
|
|
1869
|
+
};
|
|
1870
|
+
/**
|
|
1871
|
+
* Based on the button size, creates the style properties.
|
|
1872
|
+
* @returns An object of button size keys with Emption styles for `border-radius`
|
|
1873
|
+
*/
|
|
1874
|
+
export const useEuiButtonRadiusCSS: () => {
|
|
1875
|
+
xs: import("@emotion/utils").SerializedStyles;
|
|
1876
|
+
s: import("@emotion/utils").SerializedStyles;
|
|
1877
|
+
m: import("@emotion/utils").SerializedStyles;
|
|
1878
|
+
};
|
|
1879
|
+
/**
|
|
1880
|
+
* Creates the translate animation when button is in focus.
|
|
1881
|
+
* @returns string
|
|
1882
|
+
*/
|
|
1883
|
+
export const useEuiButtonFocusCSS: () => string;
|
|
1884
|
+
|
|
1885
|
+
}
|
|
1886
|
+
declare module '@elastic/eui/src/components/button/button_display/_button_display.styles' {
|
|
1887
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
1888
|
+
export const euiButtonBaseCSS: () => string;
|
|
1889
|
+
export const euiButtonDisplayStyles: (euiThemeContext: UseEuiTheme, minWidth: string) => {
|
|
1890
|
+
euiButtonDisplay: import("@emotion/utils").SerializedStyles;
|
|
1891
|
+
isDisabled: import("@emotion/utils").SerializedStyles;
|
|
1892
|
+
fullWidth: import("@emotion/utils").SerializedStyles;
|
|
1893
|
+
xs: import("@emotion/utils").SerializedStyles;
|
|
1894
|
+
s: import("@emotion/utils").SerializedStyles;
|
|
1895
|
+
m: import("@emotion/utils").SerializedStyles;
|
|
1896
|
+
};
|
|
1897
|
+
|
|
1898
|
+
}
|
|
1899
|
+
declare module '@elastic/eui/src/components/button/button_display/_button_display_content.styles' {
|
|
1900
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
1901
|
+
export const euiButtonDisplayContentStyles: ({ euiTheme }: UseEuiTheme) => {
|
|
1902
|
+
euiButtonDisplayContent: import("@emotion/utils").SerializedStyles;
|
|
1903
|
+
left: import("@emotion/utils").SerializedStyles;
|
|
1904
|
+
right: import("@emotion/utils").SerializedStyles;
|
|
1905
|
+
euiButtonDisplayContent__spinner: import("@emotion/utils").SerializedStyles;
|
|
1906
|
+
euiButtonDisplayContent__icon: import("@emotion/utils").SerializedStyles;
|
|
2269
1907
|
};
|
|
2270
|
-
export const EuiLoadingLogo: FunctionComponent<EuiLoadingLogoProps>;
|
|
2271
|
-
|
|
2272
|
-
}
|
|
2273
|
-
declare module '@elastic/eui/src/components/loading' {
|
|
2274
|
-
export type { EuiLoadingElasticProps } from '@elastic/eui/src/components/loading/loading_elastic';
|
|
2275
|
-
export { EuiLoadingElastic } from '@elastic/eui/src/components/loading/loading_elastic';
|
|
2276
|
-
export type { EuiLoadingChartProps } from '@elastic/eui/src/components/loading/loading_chart';
|
|
2277
|
-
export { EuiLoadingChart } from '@elastic/eui/src/components/loading/loading_chart';
|
|
2278
|
-
export type { EuiLoadingContentProps } from '@elastic/eui/src/components/loading/loading_content';
|
|
2279
|
-
export { EuiLoadingContent } from '@elastic/eui/src/components/loading/loading_content';
|
|
2280
|
-
export type { EuiLoadingSpinnerProps } from '@elastic/eui/src/components/loading/loading_spinner';
|
|
2281
|
-
export { EuiLoadingSpinner } from '@elastic/eui/src/components/loading/loading_spinner';
|
|
2282
|
-
export type { EuiLoadingLogoProps } from '@elastic/eui/src/components/loading/loading_logo';
|
|
2283
|
-
export { EuiLoadingLogo } from '@elastic/eui/src/components/loading/loading_logo';
|
|
2284
1908
|
|
|
2285
1909
|
}
|
|
2286
|
-
declare module '@elastic/eui/src/components/button/
|
|
1910
|
+
declare module '@elastic/eui/src/components/button/button_display/_button_display_content' {
|
|
2287
1911
|
import { HTMLAttributes, FunctionComponent, Ref } from 'react';
|
|
2288
1912
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
2289
1913
|
import { IconType } from '@elastic/eui/src/components/icon';
|
|
2290
|
-
export type ButtonContentIconSide = 'left' | 'right';
|
|
2291
|
-
export
|
|
2292
|
-
export type EuiButtonContentType = HTMLAttributes<HTMLSpanElement>;
|
|
1914
|
+
export type ButtonContentIconSide = 'left' | 'right' | undefined;
|
|
1915
|
+
export type EuiButtonDisplayContentType = HTMLAttributes<HTMLSpanElement>;
|
|
2293
1916
|
/**
|
|
2294
|
-
* *INTERNAL ONLY
|
|
2295
|
-
* This component is simply a helper component for reuse within other button components
|
|
2296
|
-
* This component has been deprecated in favor of the new EuiButtonDisplayContent
|
|
2297
|
-
* that can be found in `src/components/button/button_display/_button_display_content.tsx`.
|
|
1917
|
+
* *INTERNAL ONLY*
|
|
1918
|
+
* This component is simply a helper component for reuse within other button components.
|
|
2298
1919
|
*/
|
|
2299
|
-
export interface
|
|
1920
|
+
export interface EuiButtonDisplayContentProps extends CommonProps {
|
|
2300
1921
|
/**
|
|
2301
1922
|
* Any `type` accepted by EuiIcon
|
|
2302
1923
|
*/
|
|
@@ -2307,58 +1928,108 @@ declare module '@elastic/eui/src/components/button/_button_content_deprecated' {
|
|
|
2307
1928
|
iconSide?: ButtonContentIconSide;
|
|
2308
1929
|
isLoading?: boolean;
|
|
2309
1930
|
/**
|
|
2310
|
-
* Object of props passed to the <span/> wrapping the content's text
|
|
2311
|
-
* It doesn't apply to the icon.
|
|
1931
|
+
* Object of props passed to the <span/> wrapping the content's text/children only (not icon)
|
|
2312
1932
|
*/
|
|
2313
1933
|
textProps?: HTMLAttributes<HTMLSpanElement> & CommonProps & {
|
|
2314
1934
|
ref?: Ref<HTMLSpanElement>;
|
|
2315
1935
|
'data-text'?: string;
|
|
2316
1936
|
};
|
|
2317
1937
|
iconSize?: 's' | 'm';
|
|
1938
|
+
isDisabled?: boolean;
|
|
2318
1939
|
}
|
|
2319
|
-
export const
|
|
1940
|
+
export const EuiButtonDisplayContent: FunctionComponent<EuiButtonDisplayContentType & EuiButtonDisplayContentProps>;
|
|
2320
1941
|
|
|
2321
1942
|
}
|
|
2322
1943
|
declare module '@elastic/eui/src/services/security/href_validator' {
|
|
2323
1944
|
export function validateHref(href: string): boolean;
|
|
2324
1945
|
|
|
2325
1946
|
}
|
|
2326
|
-
declare module '@elastic/eui/src/
|
|
2327
|
-
import
|
|
1947
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/functions/shadows' {
|
|
1948
|
+
import { EuiThemeColorModeStandard } from '@elastic/eui/src/services/theme/types';
|
|
1949
|
+
export const getShadowColor: (color: string, opacity: number, colorMode: EuiThemeColorModeStandard) => string;
|
|
1950
|
+
|
|
1951
|
+
}
|
|
1952
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/functions' {
|
|
1953
|
+
export * from '@elastic/eui/src/themes/amsterdam/global_styling/functions/shadows';
|
|
1954
|
+
|
|
1955
|
+
}
|
|
1956
|
+
declare module '@elastic/eui/src/global_styling/variables/shadow' {
|
|
1957
|
+
export const EuiThemeShadowSizes: readonly ["xs", "s", "m", "l", "xl"];
|
|
1958
|
+
export type _EuiThemeShadowSize = typeof EuiThemeShadowSizes[number];
|
|
1959
|
+
/**
|
|
1960
|
+
* Shadow t-shirt sizes descriptions
|
|
1961
|
+
*/
|
|
1962
|
+
export const _EuiShadowSizesDescriptions: Record<_EuiThemeShadowSize, string>;
|
|
1963
|
+
export interface _EuiThemeShadowCustomColor {
|
|
1964
|
+
color?: string;
|
|
1965
|
+
property?: 'box-shadow' | 'filter';
|
|
1966
|
+
}
|
|
1967
|
+
|
|
1968
|
+
}
|
|
1969
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/mixins/shadow' {
|
|
1970
|
+
import { UseEuiTheme } from '@elastic/eui/src/services/theme';
|
|
1971
|
+
import { _EuiThemeShadowSize, _EuiThemeShadowCustomColor } from '@elastic/eui/src/global_styling/variables/shadow';
|
|
1972
|
+
export interface EuiShadowCustomColor {
|
|
1973
|
+
color?: string;
|
|
1974
|
+
}
|
|
1975
|
+
/**
|
|
1976
|
+
* euiSlightShadow
|
|
1977
|
+
*/
|
|
1978
|
+
export const euiShadowXSmall: ({ euiTheme, colorMode }: UseEuiTheme, { color: _color }?: _EuiThemeShadowCustomColor) => string;
|
|
1979
|
+
/**
|
|
1980
|
+
* bottomShadowSmall
|
|
1981
|
+
*/
|
|
1982
|
+
export const euiShadowSmall: ({ euiTheme, colorMode }: UseEuiTheme, { color: _color }?: _EuiThemeShadowCustomColor) => string;
|
|
1983
|
+
/**
|
|
1984
|
+
* bottomShadowMedium
|
|
1985
|
+
*/
|
|
1986
|
+
export const euiShadowMedium: ({ euiTheme, colorMode }: UseEuiTheme, { color: _color, property }?: _EuiThemeShadowCustomColor) => string;
|
|
1987
|
+
/**
|
|
1988
|
+
* bottomShadow
|
|
1989
|
+
*/
|
|
1990
|
+
export const euiShadowLarge: ({ euiTheme, colorMode }: UseEuiTheme, { color: _color }?: _EuiThemeShadowCustomColor) => string;
|
|
1991
|
+
/**
|
|
1992
|
+
* bottomShadowLarge
|
|
1993
|
+
*/
|
|
1994
|
+
export interface EuiShadowXLarge extends _EuiThemeShadowCustomColor {
|
|
1995
|
+
reverse?: boolean;
|
|
1996
|
+
}
|
|
1997
|
+
export const euiShadowXLarge: ({ euiTheme, colorMode }: UseEuiTheme, { color: _color, reverse }?: EuiShadowXLarge) => string;
|
|
1998
|
+
/**
|
|
1999
|
+
* slightShadowHover
|
|
2000
|
+
* TODO: I think this is only used by panels/cards in the Amsterdam theme, move there
|
|
2001
|
+
*/
|
|
2002
|
+
export const euiSlightShadowHover: ({ euiTheme, colorMode }: UseEuiTheme, { color: _color }?: _EuiThemeShadowCustomColor) => string;
|
|
2003
|
+
export const useEuiSlightShadowHover: (color?: _EuiThemeShadowCustomColor['color']) => string;
|
|
2004
|
+
/**
|
|
2005
|
+
* bottomShadowFlat
|
|
2006
|
+
*
|
|
2007
|
+
* Similar to shadow medium but without the bottom depth.
|
|
2008
|
+
* Useful for popovers that drop UP rather than DOWN.
|
|
2009
|
+
*/
|
|
2010
|
+
export const euiShadowFlat: ({ euiTheme, colorMode }: UseEuiTheme, { color: _color }?: _EuiThemeShadowCustomColor) => string;
|
|
2011
|
+
export const useEuiShadowFlat: (color?: _EuiThemeShadowCustomColor['color']) => string;
|
|
2012
|
+
export const euiShadow: (euiThemeContext: UseEuiTheme, size?: _EuiThemeShadowSize, { color }?: _EuiThemeShadowCustomColor) => string;
|
|
2013
|
+
export const useEuiShadow: (size?: _EuiThemeShadowSize, color?: _EuiThemeShadowCustomColor['color']) => string;
|
|
2014
|
+
|
|
2015
|
+
}
|
|
2016
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/mixins' {
|
|
2017
|
+
export * from '@elastic/eui/src/themes/amsterdam/global_styling/mixins/button';
|
|
2018
|
+
export * from '@elastic/eui/src/themes/amsterdam/global_styling/mixins/shadow';
|
|
2019
|
+
|
|
2020
|
+
}
|
|
2021
|
+
declare module '@elastic/eui/src/components/button/button_display/_button_display' {
|
|
2022
|
+
import React, { CSSProperties, ReactNode, Ref } from 'react';
|
|
2328
2023
|
import { CommonProps, ExclusiveUnion, PropsForAnchor, PropsForButton } from '@elastic/eui/src/components/common';
|
|
2329
|
-
import {
|
|
2330
|
-
export type
|
|
2331
|
-
export type ButtonSize = 's' | 'm';
|
|
2332
|
-
export const colorToClassNameMap: {
|
|
2333
|
-
[color in ButtonColor]: string;
|
|
2334
|
-
};
|
|
2335
|
-
export const COLORS: ButtonColor[];
|
|
2336
|
-
export const sizeToClassNameMap: {
|
|
2337
|
-
[size in ButtonSize]: string | null;
|
|
2338
|
-
};
|
|
2339
|
-
export const SIZES: ButtonSize[];
|
|
2024
|
+
import { EuiButtonDisplayContentProps, EuiButtonDisplayContentType } from '@elastic/eui/src/components/button/button_display/_button_display_content'; const SIZES: readonly ["xs", "s", "m"];
|
|
2025
|
+
export type EuiButtonDisplaySizes = typeof SIZES[number];
|
|
2340
2026
|
/**
|
|
2341
|
-
* Extends
|
|
2027
|
+
* Extends EuiButtonDisplayContentProps which provides
|
|
2342
2028
|
* `iconType`, `iconSide`, and `textProps`
|
|
2343
2029
|
*/
|
|
2344
|
-
export interface
|
|
2030
|
+
export interface EuiButtonDisplayCommonProps extends EuiButtonDisplayContentProps, CommonProps {
|
|
2345
2031
|
children?: ReactNode;
|
|
2346
|
-
|
|
2347
|
-
* Make button a solid color for prominence
|
|
2348
|
-
*/
|
|
2349
|
-
fill?: boolean;
|
|
2350
|
-
/**
|
|
2351
|
-
* Any of our named colors.
|
|
2352
|
-
*/
|
|
2353
|
-
color?: ButtonColor;
|
|
2354
|
-
/**
|
|
2355
|
-
* Use size `s` in confined spaces
|
|
2356
|
-
*/
|
|
2357
|
-
size?: ButtonSize;
|
|
2358
|
-
/**
|
|
2359
|
-
* `disabled` is also allowed
|
|
2360
|
-
*/
|
|
2361
|
-
isDisabled?: boolean;
|
|
2032
|
+
size?: EuiButtonDisplaySizes;
|
|
2362
2033
|
/**
|
|
2363
2034
|
* Applies the boolean state as the `aria-pressed` property to create a toggle button.
|
|
2364
2035
|
* *Only use when the readable text does not change between states.*
|
|
@@ -2379,9 +2050,69 @@ declare module '@elastic/eui/src/components/button/button' {
|
|
|
2379
2050
|
/**
|
|
2380
2051
|
* Object of props passed to the <span/> wrapping the button's content
|
|
2381
2052
|
*/
|
|
2382
|
-
contentProps?:
|
|
2053
|
+
contentProps?: EuiButtonDisplayContentType;
|
|
2383
2054
|
style?: CSSProperties;
|
|
2384
2055
|
}
|
|
2056
|
+
export type EuiButtonDisplayPropsForAnchor = PropsForAnchor<EuiButtonDisplayCommonProps, {
|
|
2057
|
+
buttonRef?: Ref<HTMLAnchorElement>;
|
|
2058
|
+
}>;
|
|
2059
|
+
export type EuiButtonDisplayPropsForButton = PropsForButton<EuiButtonDisplayCommonProps, {
|
|
2060
|
+
buttonRef?: Ref<HTMLButtonElement>;
|
|
2061
|
+
}>;
|
|
2062
|
+
export type EuiButtonDisplayProps = ExclusiveUnion<EuiButtonDisplayPropsForAnchor, EuiButtonDisplayPropsForButton>;
|
|
2063
|
+
export function isButtonDisabled({ href, isDisabled, isLoading, }: {
|
|
2064
|
+
href?: string;
|
|
2065
|
+
isDisabled?: boolean;
|
|
2066
|
+
isLoading?: boolean;
|
|
2067
|
+
}): boolean;
|
|
2068
|
+
/**
|
|
2069
|
+
* EuiButtonDisplay is an internal-only component used for displaying
|
|
2070
|
+
* any element as a button.
|
|
2071
|
+
*/
|
|
2072
|
+
export const EuiButtonDisplay: React.ForwardRefExoticComponent<((import ("@elastic/eui/src/components/common").DisambiguateSet<EuiButtonDisplayPropsForAnchor, EuiButtonDisplayPropsForButton> & EuiButtonDisplayCommonProps & {
|
|
2073
|
+
onClick?: React.MouseEventHandler<HTMLButtonElement> | undefined;
|
|
2074
|
+
} & React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
2075
|
+
buttonRef?: React.Ref<HTMLButtonElement> | undefined;
|
|
2076
|
+
}) | (import ("@elastic/eui/src/components/common").DisambiguateSet<EuiButtonDisplayPropsForButton, EuiButtonDisplayPropsForAnchor> & EuiButtonDisplayCommonProps & {
|
|
2077
|
+
href?: string | undefined;
|
|
2078
|
+
onClick?: React.MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
2079
|
+
} & React.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
2080
|
+
buttonRef?: React.Ref<HTMLAnchorElement> | undefined;
|
|
2081
|
+
})) & React.RefAttributes<HTMLElement>>;
|
|
2082
|
+
export {};
|
|
2083
|
+
|
|
2084
|
+
}
|
|
2085
|
+
declare module '@elastic/eui/src/components/button/button' {
|
|
2086
|
+
import React, { FunctionComponent, Ref, HTMLAttributes, ReactNode } from 'react';
|
|
2087
|
+
import { CommonProps, ExclusiveUnion, PropsForAnchor, PropsForButton } from '@elastic/eui/src/components/common';
|
|
2088
|
+
import { _EuiButtonColor } from '@elastic/eui/src/themes/amsterdam/global_styling/mixins/button';
|
|
2089
|
+
import { EuiButtonDisplayCommonProps } from '@elastic/eui/src/components/button/button_display/_button_display';
|
|
2090
|
+
export const COLORS: readonly ["text", "accent", "primary", "success", "warning", "danger", "ghost"];
|
|
2091
|
+
export type EuiButtonColor = _EuiButtonColor | 'ghost';
|
|
2092
|
+
export const SIZES: readonly ["s", "m"];
|
|
2093
|
+
export type EuiButtonSize = typeof SIZES[number];
|
|
2094
|
+
interface BaseProps {
|
|
2095
|
+
children?: ReactNode;
|
|
2096
|
+
/**
|
|
2097
|
+
* Make button a solid color for prominence
|
|
2098
|
+
*/
|
|
2099
|
+
fill?: boolean;
|
|
2100
|
+
/**
|
|
2101
|
+
* Any of the named color palette options.
|
|
2102
|
+
* **`'ghost'` is set for deprecation. Use EuiThemeProvide.colorMode = 'dark' instead.**
|
|
2103
|
+
*/
|
|
2104
|
+
color?: EuiButtonColor;
|
|
2105
|
+
/**
|
|
2106
|
+
* Use size `s` in confined spaces
|
|
2107
|
+
*/
|
|
2108
|
+
size?: EuiButtonSize;
|
|
2109
|
+
/**
|
|
2110
|
+
* `disabled` is also allowed
|
|
2111
|
+
*/
|
|
2112
|
+
isDisabled?: boolean;
|
|
2113
|
+
}
|
|
2114
|
+
export interface EuiButtonProps extends BaseProps, Omit<EuiButtonDisplayCommonProps, 'size'>, CommonProps {
|
|
2115
|
+
}
|
|
2385
2116
|
export type EuiButtonPropsForAnchor = PropsForAnchor<EuiButtonProps, {
|
|
2386
2117
|
buttonRef?: Ref<HTMLAnchorElement>;
|
|
2387
2118
|
}>;
|
|
@@ -2404,6 +2135,12 @@ declare module '@elastic/eui/src/components/button/button' {
|
|
|
2404
2135
|
*/
|
|
2405
2136
|
baseClassName: string;
|
|
2406
2137
|
};
|
|
2138
|
+
export const sizeToClassNameMap: {
|
|
2139
|
+
[size in EuiButtonSize]: string | null;
|
|
2140
|
+
};
|
|
2141
|
+
export const colorToClassNameMap: {
|
|
2142
|
+
[color in EuiButtonColor]: string | null;
|
|
2143
|
+
};
|
|
2407
2144
|
/**
|
|
2408
2145
|
* *DEPRECATED*
|
|
2409
2146
|
* EuiButtonDisplay is an internal-only component used for displaying
|
|
@@ -2424,14 +2161,14 @@ declare module '@elastic/eui/src/components/button/button' {
|
|
|
2424
2161
|
*/
|
|
2425
2162
|
baseClassName: string;
|
|
2426
2163
|
} & React.RefAttributes<HTMLElement>>;
|
|
2164
|
+
export {};
|
|
2427
2165
|
|
|
2428
2166
|
}
|
|
2429
2167
|
declare module '@elastic/eui/src/components/button/button_empty/button_empty' {
|
|
2430
2168
|
import { FunctionComponent, Ref } from 'react';
|
|
2431
2169
|
import { CommonProps, ExclusiveUnion, PropsForAnchor, PropsForButton } from '@elastic/eui/src/components/common';
|
|
2432
2170
|
import { EuiButtonContentProps, EuiButtonContentType } from '@elastic/eui/src/components/button/_button_content_deprecated';
|
|
2433
|
-
|
|
2434
|
-
export const COLORS: EuiButtonEmptyColor[]; const sizeToClassNameMap: {
|
|
2171
|
+
import { _EuiButtonColor } from '@elastic/eui/src/themes/amsterdam/global_styling/mixins/button'; const sizeToClassNameMap: {
|
|
2435
2172
|
xs: string;
|
|
2436
2173
|
s: string;
|
|
2437
2174
|
m: null;
|
|
@@ -2449,9 +2186,10 @@ declare module '@elastic/eui/src/components/button/button_empty/button_empty' {
|
|
|
2449
2186
|
*/
|
|
2450
2187
|
export interface CommonEuiButtonEmptyProps extends EuiButtonContentProps, CommonProps {
|
|
2451
2188
|
/**
|
|
2452
|
-
* Any of
|
|
2189
|
+
* Any of the named color palette options.
|
|
2190
|
+
* **`'ghost'` is set for deprecation. Use EuiThemeProvide.colorMode = 'dark' instead.**
|
|
2453
2191
|
*/
|
|
2454
|
-
color?:
|
|
2192
|
+
color?: _EuiButtonColor | 'ghost';
|
|
2455
2193
|
size?: EuiButtonEmptySizes;
|
|
2456
2194
|
/**
|
|
2457
2195
|
* Ensure the text of the button sits flush to the left, right, or both sides of its container
|
|
@@ -2486,16 +2224,15 @@ declare module '@elastic/eui/src/components/button/button_empty/button_empty' {
|
|
|
2486
2224
|
|
|
2487
2225
|
}
|
|
2488
2226
|
declare module '@elastic/eui/src/components/button/button_empty' {
|
|
2489
|
-
export type {
|
|
2490
|
-
export {
|
|
2227
|
+
export type { EuiButtonEmptyProps, EuiButtonEmptySizes } from '@elastic/eui/src/components/button/button_empty/button_empty';
|
|
2228
|
+
export { EuiButtonEmpty } from '@elastic/eui/src/components/button/button_empty/button_empty';
|
|
2491
2229
|
|
|
2492
2230
|
}
|
|
2493
2231
|
declare module '@elastic/eui/src/components/button/button_icon/button_icon' {
|
|
2494
2232
|
import { FunctionComponent, Ref } from 'react';
|
|
2495
2233
|
import { CommonProps, ExclusiveUnion, PropsForAnchor, PropsForButton } from '@elastic/eui/src/components/common';
|
|
2496
2234
|
import { IconType, IconSize } from '@elastic/eui/src/components/icon';
|
|
2497
|
-
import {
|
|
2498
|
-
export type EuiButtonIconColor = ButtonColor; const displayToClassNameMap: {
|
|
2235
|
+
import { _EuiButtonColor } from '@elastic/eui/src/themes/amsterdam/global_styling/mixins/button'; const displayToClassNameMap: {
|
|
2499
2236
|
base: null;
|
|
2500
2237
|
empty: string;
|
|
2501
2238
|
fill: string;
|
|
@@ -2505,8 +2242,9 @@ declare module '@elastic/eui/src/components/button/button_icon/button_icon' {
|
|
|
2505
2242
|
iconType: IconType;
|
|
2506
2243
|
/**
|
|
2507
2244
|
* Any of the named color palette options.
|
|
2245
|
+
* **`'ghost'` is set for deprecation. Use EuiThemeProvide.colorMode = 'dark' instead.**
|
|
2508
2246
|
*/
|
|
2509
|
-
color?:
|
|
2247
|
+
color?: _EuiButtonColor | 'ghost';
|
|
2510
2248
|
'aria-label'?: string;
|
|
2511
2249
|
'aria-labelledby'?: string;
|
|
2512
2250
|
isDisabled?: boolean;
|
|
@@ -2546,8 +2284,7 @@ declare module '@elastic/eui/src/components/button/button_icon/button_icon' {
|
|
|
2546
2284
|
type?: 'submit' | 'reset' | 'button';
|
|
2547
2285
|
} & PropsForButton<EuiButtonIconProps, {
|
|
2548
2286
|
buttonRef?: Ref<HTMLButtonElement>;
|
|
2549
|
-
}>; type Props = ExclusiveUnion<EuiButtonIconPropsForAnchor, EuiButtonIconPropsForButton>;
|
|
2550
|
-
export const COLORS: ButtonColor[]; const sizeToClassNameMap: {
|
|
2287
|
+
}>; type Props = ExclusiveUnion<EuiButtonIconPropsForAnchor, EuiButtonIconPropsForButton>; const sizeToClassNameMap: {
|
|
2551
2288
|
xs: string;
|
|
2552
2289
|
s: string;
|
|
2553
2290
|
m: string;
|
|
@@ -2559,7 +2296,7 @@ declare module '@elastic/eui/src/components/button/button_icon/button_icon' {
|
|
|
2559
2296
|
|
|
2560
2297
|
}
|
|
2561
2298
|
declare module '@elastic/eui/src/components/button/button_icon' {
|
|
2562
|
-
export type {
|
|
2299
|
+
export type { EuiButtonIconProps, EuiButtonIconPropsForButton, EuiButtonIconPropsForAnchor, } from '@elastic/eui/src/components/button/button_icon/button_icon';
|
|
2563
2300
|
export { EuiButtonIcon } from '@elastic/eui/src/components/button/button_icon/button_icon';
|
|
2564
2301
|
|
|
2565
2302
|
}
|
|
@@ -2630,9 +2367,9 @@ declare module '@elastic/eui/src/components/button/button_group/button_group_but
|
|
|
2630
2367
|
}
|
|
2631
2368
|
declare module '@elastic/eui/src/components/button/button_group/button_group' {
|
|
2632
2369
|
import { FunctionComponent, HTMLAttributes, ReactNode } from 'react';
|
|
2633
|
-
import { ButtonColor } from '@elastic/eui/src/components/button/button';
|
|
2634
2370
|
import { EuiButtonContentProps } from '@elastic/eui/src/components/button/_button_content_deprecated';
|
|
2635
2371
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
2372
|
+
import { _EuiButtonColor } from '@elastic/eui/src/themes/amsterdam/global_styling/mixins';
|
|
2636
2373
|
export interface EuiButtonGroupOptionProps extends EuiButtonContentProps, CommonProps {
|
|
2637
2374
|
/**
|
|
2638
2375
|
* Each option must have a unique `id` for maintaining selection
|
|
@@ -2673,9 +2410,9 @@ declare module '@elastic/eui/src/components/button/button_group/button_group' {
|
|
|
2673
2410
|
*/
|
|
2674
2411
|
legend: string;
|
|
2675
2412
|
/**
|
|
2676
|
-
*
|
|
2413
|
+
* Any of the named color palette options.
|
|
2677
2414
|
*/
|
|
2678
|
-
color?:
|
|
2415
|
+
color?: _EuiButtonColor;
|
|
2679
2416
|
/**
|
|
2680
2417
|
* Actual type is `'single' | 'multi'`.
|
|
2681
2418
|
* Determines how the selection of the group should be handled.
|
|
@@ -2733,11 +2470,11 @@ declare module '@elastic/eui/src/components/button/button_group' {
|
|
|
2733
2470
|
|
|
2734
2471
|
}
|
|
2735
2472
|
declare module '@elastic/eui/src/components/button' {
|
|
2736
|
-
export type {
|
|
2473
|
+
export type { EuiButtonColor, EuiButtonSize, EuiButtonProps } from '@elastic/eui/src/components/button/button';
|
|
2737
2474
|
export { COLORS, EuiButton } from '@elastic/eui/src/components/button/button';
|
|
2738
|
-
export type {
|
|
2475
|
+
export type { EuiButtonEmptyProps, EuiButtonEmptySizes } from '@elastic/eui/src/components/button/button_empty';
|
|
2739
2476
|
export { EuiButtonEmpty } from '@elastic/eui/src/components/button/button_empty';
|
|
2740
|
-
export type {
|
|
2477
|
+
export type { EuiButtonIconProps, EuiButtonIconPropsForButton, } from '@elastic/eui/src/components/button/button_icon';
|
|
2741
2478
|
export { EuiButtonIcon } from '@elastic/eui/src/components/button/button_icon';
|
|
2742
2479
|
export type { EuiButtonGroupOptionProps, EuiButtonGroupProps, } from '@elastic/eui/src/components/button/button_group';
|
|
2743
2480
|
export { EuiButtonGroup } from '@elastic/eui/src/components/button/button_group';
|
|
@@ -2918,8 +2655,8 @@ declare module '@elastic/eui/src/components/link/link.styles' {
|
|
|
2918
2655
|
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
2919
2656
|
export const euiLinkHoverCSS: () => string;
|
|
2920
2657
|
export const euiLinkFocusCSS: (euiTheme: UseEuiTheme['euiTheme']) => string;
|
|
2921
|
-
export const euiLinkCSS: (
|
|
2922
|
-
export const euiLinkStyles: (
|
|
2658
|
+
export const euiLinkCSS: (euiThemeContext: UseEuiTheme) => string;
|
|
2659
|
+
export const euiLinkStyles: (euiThemeContext: UseEuiTheme) => {
|
|
2923
2660
|
euiLink: import("@emotion/utils").SerializedStyles;
|
|
2924
2661
|
disabled: import("@emotion/utils").SerializedStyles;
|
|
2925
2662
|
primary: import("@emotion/utils").SerializedStyles;
|
|
@@ -3080,7 +2817,7 @@ declare module '@elastic/eui/src/components/flex/flex_group' {
|
|
|
3080
2817
|
l: string;
|
|
3081
2818
|
xl: string;
|
|
3082
2819
|
};
|
|
3083
|
-
export const GUTTER_SIZES: ("s" | "
|
|
2820
|
+
export const GUTTER_SIZES: ("s" | "xs" | "m" | "l" | "xl" | "none")[];
|
|
3084
2821
|
export type EuiFlexGroupGutterSize = keyof typeof gutterSizeToClassNameMap; const alignItemsToClassNameMap: {
|
|
3085
2822
|
stretch: null;
|
|
3086
2823
|
flexStart: string;
|
|
@@ -3779,114 +3516,37 @@ declare module '@elastic/eui/src/components/form/file_picker/file_picker' {
|
|
|
3779
3516
|
*/
|
|
3780
3517
|
display?: EuiFilePickerDisplay;
|
|
3781
3518
|
fullWidth?: boolean;
|
|
3782
|
-
isInvalid?: boolean;
|
|
3783
|
-
isLoading?: boolean;
|
|
3784
|
-
disabled?: boolean;
|
|
3785
|
-
}
|
|
3786
|
-
export class EuiFilePicker extends Component<EuiFilePickerProps> {
|
|
3787
|
-
static defaultProps: {
|
|
3788
|
-
initialPromptText: JSX.Element;
|
|
3789
|
-
compressed: boolean;
|
|
3790
|
-
display: string;
|
|
3791
|
-
};
|
|
3792
|
-
state: {
|
|
3793
|
-
promptText: null;
|
|
3794
|
-
isHoveringDrop: boolean;
|
|
3795
|
-
};
|
|
3796
|
-
fileInput: HTMLInputElement | null;
|
|
3797
|
-
generatedId: string;
|
|
3798
|
-
handleChange: () => void;
|
|
3799
|
-
removeFiles: (e?: React.MouseEvent<HTMLButtonElement, MouseEvent> | undefined) => void;
|
|
3800
|
-
showDrop: () => void;
|
|
3801
|
-
hideDrop: () => void;
|
|
3802
|
-
render(): JSX.Element;
|
|
3803
|
-
}
|
|
3804
|
-
export {};
|
|
3805
|
-
|
|
3806
|
-
}
|
|
3807
|
-
declare module '@elastic/eui/src/components/form/file_picker' {
|
|
3808
|
-
export type { EuiFilePickerProps } from '@elastic/eui/src/components/form/file_picker/file_picker';
|
|
3809
|
-
export { EuiFilePicker } from '@elastic/eui/src/components/form/file_picker/file_picker';
|
|
3810
|
-
|
|
3811
|
-
}
|
|
3812
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/mixins/button' {
|
|
3813
|
-
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
3814
|
-
export const BUTTON_COLORS: readonly ["text", "accent", "primary", "success", "warning", "danger", "disabled"];
|
|
3815
|
-
export type _EuiButtonColor = typeof BUTTON_COLORS[number];
|
|
3816
|
-
export const euiButtonColor: (color: _EuiButtonColor, { euiTheme, colorMode }: UseEuiTheme) => string;
|
|
3817
|
-
export const useEuiButtonColorCSS: () => {
|
|
3818
|
-
text: import("@emotion/utils").SerializedStyles;
|
|
3819
|
-
accent: import("@emotion/utils").SerializedStyles;
|
|
3820
|
-
primary: import("@emotion/utils").SerializedStyles;
|
|
3821
|
-
success: import("@emotion/utils").SerializedStyles;
|
|
3822
|
-
warning: import("@emotion/utils").SerializedStyles;
|
|
3823
|
-
danger: import("@emotion/utils").SerializedStyles;
|
|
3824
|
-
disabled: import("@emotion/utils").SerializedStyles;
|
|
3825
|
-
};
|
|
3826
|
-
|
|
3827
|
-
}
|
|
3828
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/functions/shadows' {
|
|
3829
|
-
import { EuiThemeColorModeStandard } from '@elastic/eui/src/services/theme/types';
|
|
3830
|
-
export const getShadowColor: (color: string, opacity: number, colorMode: EuiThemeColorModeStandard) => string;
|
|
3831
|
-
|
|
3832
|
-
}
|
|
3833
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/functions' {
|
|
3834
|
-
export * from '@elastic/eui/src/themes/amsterdam/global_styling/functions/shadows';
|
|
3835
|
-
|
|
3836
|
-
}
|
|
3837
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/mixins/shadow' {
|
|
3838
|
-
import { UseEuiTheme } from '@elastic/eui/src/services/theme';
|
|
3839
|
-
import { _EuiThemeShadowSize, _EuiThemeShadowCustomColor } from '@elastic/eui/src/global_styling/variables/shadow';
|
|
3840
|
-
export interface EuiShadowCustomColor {
|
|
3841
|
-
color?: string;
|
|
3519
|
+
isInvalid?: boolean;
|
|
3520
|
+
isLoading?: boolean;
|
|
3521
|
+
disabled?: boolean;
|
|
3842
3522
|
}
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
* bottomShadowLarge
|
|
3861
|
-
*/
|
|
3862
|
-
export interface EuiShadowXLarge extends _EuiThemeShadowCustomColor {
|
|
3863
|
-
reverse?: boolean;
|
|
3523
|
+
export class EuiFilePicker extends Component<EuiFilePickerProps> {
|
|
3524
|
+
static defaultProps: {
|
|
3525
|
+
initialPromptText: JSX.Element;
|
|
3526
|
+
compressed: boolean;
|
|
3527
|
+
display: string;
|
|
3528
|
+
};
|
|
3529
|
+
state: {
|
|
3530
|
+
promptText: null;
|
|
3531
|
+
isHoveringDrop: boolean;
|
|
3532
|
+
};
|
|
3533
|
+
fileInput: HTMLInputElement | null;
|
|
3534
|
+
generatedId: string;
|
|
3535
|
+
handleChange: () => void;
|
|
3536
|
+
removeFiles: (e?: React.MouseEvent<HTMLButtonElement, MouseEvent> | undefined) => void;
|
|
3537
|
+
showDrop: () => void;
|
|
3538
|
+
hideDrop: () => void;
|
|
3539
|
+
render(): JSX.Element;
|
|
3864
3540
|
}
|
|
3865
|
-
export
|
|
3866
|
-
/**
|
|
3867
|
-
* slightShadowHover
|
|
3868
|
-
* TODO: I think this is only used by panels/cards in the Amsterdam theme, move there
|
|
3869
|
-
*/
|
|
3870
|
-
export const euiSlightShadowHover: ({ euiTheme, colorMode }: UseEuiTheme, { color: _color }?: _EuiThemeShadowCustomColor) => string;
|
|
3871
|
-
export const useEuiSlightShadowHover: (color?: _EuiThemeShadowCustomColor['color']) => string;
|
|
3872
|
-
/**
|
|
3873
|
-
* bottomShadowFlat
|
|
3874
|
-
*
|
|
3875
|
-
* Similar to shadow medium but without the bottom depth.
|
|
3876
|
-
* Useful for popovers that drop UP rather than DOWN.
|
|
3877
|
-
*/
|
|
3878
|
-
export const euiShadowFlat: ({ euiTheme, colorMode }: UseEuiTheme, { color: _color }?: _EuiThemeShadowCustomColor) => string;
|
|
3879
|
-
export const useEuiShadowFlat: (color?: _EuiThemeShadowCustomColor['color']) => string;
|
|
3880
|
-
export const euiShadow: (euiThemeContext: UseEuiTheme, size?: _EuiThemeShadowSize, { color }?: _EuiThemeShadowCustomColor) => string;
|
|
3881
|
-
export const useEuiShadow: (size?: _EuiThemeShadowSize, color?: _EuiThemeShadowCustomColor['color']) => string;
|
|
3541
|
+
export {};
|
|
3882
3542
|
|
|
3883
3543
|
}
|
|
3884
|
-
declare module '@elastic/eui/src/
|
|
3885
|
-
export
|
|
3886
|
-
export
|
|
3544
|
+
declare module '@elastic/eui/src/components/form/file_picker' {
|
|
3545
|
+
export type { EuiFilePickerProps } from '@elastic/eui/src/components/form/file_picker/file_picker';
|
|
3546
|
+
export { EuiFilePicker } from '@elastic/eui/src/components/form/file_picker/file_picker';
|
|
3887
3547
|
|
|
3888
3548
|
}
|
|
3889
|
-
declare module '@elastic/eui/src/components/panel/panel.
|
|
3549
|
+
declare module '@elastic/eui/src/components/panel/panel.styles' {
|
|
3890
3550
|
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
3891
3551
|
export const euiPanelStyles: (euiThemeContext: UseEuiTheme) => {
|
|
3892
3552
|
euiPanel: import("@emotion/utils").SerializedStyles;
|
|
@@ -3905,7 +3565,7 @@ declare module '@elastic/eui/src/components/panel/panel' {
|
|
|
3905
3565
|
import { ButtonHTMLAttributes, FunctionComponent, HTMLAttributes, Ref } from 'react';
|
|
3906
3566
|
import { _EuiBackgroundColor, EuiPaddingSize } from '@elastic/eui/src/global_styling';
|
|
3907
3567
|
import { CommonProps, ExclusiveUnion } from '@elastic/eui/src/components/common';
|
|
3908
|
-
export const SIZES: readonly ["none", "xs", "s", "m", "l", "xl"]; const _SIZES: ("s" | "
|
|
3568
|
+
export const SIZES: readonly ["none", "xs", "s", "m", "l", "xl"]; const _SIZES: ("s" | "xs" | "m" | "l" | "xl" | "none")[];
|
|
3909
3569
|
export type PanelPaddingSize = typeof _SIZES[number];
|
|
3910
3570
|
export const BORDER_RADII: readonly ["none", "m"];
|
|
3911
3571
|
export type PanelBorderRadius = typeof BORDER_RADII[number];
|
|
@@ -4105,7 +3765,7 @@ declare module '@elastic/eui/src/components/form/form_row/form_row' {
|
|
|
4105
3765
|
centerCompressed: string;
|
|
4106
3766
|
columnCompressedSwitch: string;
|
|
4107
3767
|
};
|
|
4108
|
-
export const DISPLAYS: ("
|
|
3768
|
+
export const DISPLAYS: ("center" | "row" | "rowCompressed" | "columnCompressed" | "centerCompressed" | "columnCompressedSwitch")[];
|
|
4109
3769
|
export type EuiFormRowDisplayKeys = keyof typeof displayToClassNameMap;
|
|
4110
3770
|
interface EuiFormRowState {
|
|
4111
3771
|
isFocused: boolean;
|
|
@@ -5600,7 +5260,8 @@ declare module '@elastic/eui/src/components/tool_tip/tool_tip_popover' {
|
|
|
5600
5260
|
|
|
5601
5261
|
}
|
|
5602
5262
|
declare module '@elastic/eui/src/components/tool_tip/tool_tip' {
|
|
5603
|
-
import { Component, ReactElement, ReactNode, MouseEvent as ReactMouseEvent } from 'react';
|
|
5263
|
+
import { Component, ReactElement, ReactNode, MouseEvent as ReactMouseEvent, HTMLAttributes } from 'react';
|
|
5264
|
+
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
5604
5265
|
export type ToolTipPositions = 'top' | 'right' | 'bottom' | 'left';
|
|
5605
5266
|
export const POSITIONS: ToolTipPositions[];
|
|
5606
5267
|
export type ToolTipDelay = 'regular' | 'long';
|
|
@@ -5616,9 +5277,13 @@ declare module '@elastic/eui/src/components/tool_tip/tool_tip' {
|
|
|
5616
5277
|
};
|
|
5617
5278
|
export interface EuiToolTipProps {
|
|
5618
5279
|
/**
|
|
5619
|
-
* Passes onto the the trigger.
|
|
5280
|
+
* Passes onto the span wrapping the trigger.
|
|
5620
5281
|
*/
|
|
5621
5282
|
anchorClassName?: string;
|
|
5283
|
+
/**
|
|
5284
|
+
* Passes onto the span wrapping the trigger.
|
|
5285
|
+
*/
|
|
5286
|
+
anchorProps?: CommonProps & HTMLAttributes<HTMLSpanElement>;
|
|
5622
5287
|
/**
|
|
5623
5288
|
* The in-view trigger for your tooltip.
|
|
5624
5289
|
*/
|
|
@@ -6539,11 +6204,249 @@ declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_anim
|
|
|
6539
6204
|
export const animation_ease: _EuiThemeAnimationEasings;
|
|
6540
6205
|
export const animation: _EuiThemeAnimation;
|
|
6541
6206
|
|
|
6207
|
+
}
|
|
6208
|
+
declare module '@elastic/eui/src/global_styling/variables' {
|
|
6209
|
+
export * from '@elastic/eui/src/global_styling/variables/animations';
|
|
6210
|
+
export * from '@elastic/eui/src/global_styling/variables/borders';
|
|
6211
|
+
export * from '@elastic/eui/src/global_styling/variables/breakpoint';
|
|
6212
|
+
export * from '@elastic/eui/src/global_styling/variables/colors';
|
|
6213
|
+
export * from '@elastic/eui/src/global_styling/variables/levels';
|
|
6214
|
+
export * from '@elastic/eui/src/global_styling/variables/size';
|
|
6215
|
+
export * from '@elastic/eui/src/global_styling/variables/shadow';
|
|
6216
|
+
export * from '@elastic/eui/src/global_styling/variables/states';
|
|
6217
|
+
export * from '@elastic/eui/src/global_styling/variables/typography';
|
|
6218
|
+
|
|
6542
6219
|
}
|
|
6543
6220
|
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_breakpoint' {
|
|
6544
6221
|
import { _EuiThemeBreakpoints } from '@elastic/eui/src/global_styling/variables';
|
|
6545
6222
|
export const breakpoint: _EuiThemeBreakpoints;
|
|
6546
6223
|
|
|
6224
|
+
}
|
|
6225
|
+
declare module '@elastic/eui/src/global_styling/functions/logicals' {
|
|
6226
|
+
/**
|
|
6227
|
+
* EUI utilizes logical CSS properties to enable directional writing-modes.
|
|
6228
|
+
* To encourage use of logical properties, we provide a few helper utilities to
|
|
6229
|
+
* convert certain directional properties to logical properties.
|
|
6230
|
+
* https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties
|
|
6231
|
+
*/
|
|
6232
|
+
export const logicalSide: {
|
|
6233
|
+
left: string;
|
|
6234
|
+
right: string;
|
|
6235
|
+
top: string;
|
|
6236
|
+
bottom: string;
|
|
6237
|
+
horizontal: string;
|
|
6238
|
+
vertical: string;
|
|
6239
|
+
};
|
|
6240
|
+
export const LOGICAL_SIDES: ("left" | "right" | "top" | "bottom" | "horizontal" | "vertical")[];
|
|
6241
|
+
export type LogicalSides = typeof LOGICAL_SIDES[number];
|
|
6242
|
+
export const logicals: {
|
|
6243
|
+
height: string;
|
|
6244
|
+
width: string;
|
|
6245
|
+
"max-height": string;
|
|
6246
|
+
"max-width": string;
|
|
6247
|
+
"min-height": string;
|
|
6248
|
+
"min-width": string;
|
|
6249
|
+
top: string;
|
|
6250
|
+
right: string;
|
|
6251
|
+
bottom: string;
|
|
6252
|
+
left: string;
|
|
6253
|
+
horizontal: string;
|
|
6254
|
+
vertical: string;
|
|
6255
|
+
"margin-left": string;
|
|
6256
|
+
"margin-right": string;
|
|
6257
|
+
"margin-top": string;
|
|
6258
|
+
"margin-bottom": string;
|
|
6259
|
+
"margin-horizontal": string;
|
|
6260
|
+
"margin-vertical": string;
|
|
6261
|
+
"padding-left": string;
|
|
6262
|
+
"padding-right": string;
|
|
6263
|
+
"padding-top": string;
|
|
6264
|
+
"padding-bottom": string;
|
|
6265
|
+
"padding-horizontal": string;
|
|
6266
|
+
"padding-vertical": string;
|
|
6267
|
+
"overflow-x": string;
|
|
6268
|
+
"overflow-y": string;
|
|
6269
|
+
"border-horizontal": string;
|
|
6270
|
+
"border-horizontal-color": string;
|
|
6271
|
+
"border-horizontal-width": string;
|
|
6272
|
+
"border-horizontal-style": string;
|
|
6273
|
+
"border-vertical": string;
|
|
6274
|
+
"border-vertical-color": string;
|
|
6275
|
+
"border-vertical-width": string;
|
|
6276
|
+
"border-vertical-style": string;
|
|
6277
|
+
"border-bottom": string;
|
|
6278
|
+
"border-bottom-color": string;
|
|
6279
|
+
"border-bottom-style": string;
|
|
6280
|
+
"border-bottom-width": string;
|
|
6281
|
+
"border-top": string;
|
|
6282
|
+
"border-top-color": string;
|
|
6283
|
+
"border-top-style": string;
|
|
6284
|
+
"border-top-width": string;
|
|
6285
|
+
"border-right": string;
|
|
6286
|
+
"border-right-color": string;
|
|
6287
|
+
"border-right-style": string;
|
|
6288
|
+
"border-right-width": string;
|
|
6289
|
+
"border-left": string;
|
|
6290
|
+
"border-left-color": string;
|
|
6291
|
+
"border-left-style": string;
|
|
6292
|
+
"border-left-width": string;
|
|
6293
|
+
"border-top-left-radius": string;
|
|
6294
|
+
"border-top-right-radius": string;
|
|
6295
|
+
"border-bottom-left-radius": string;
|
|
6296
|
+
"border-bottom-right-radius": string;
|
|
6297
|
+
};
|
|
6298
|
+
export const LOGICAL_PROPERTIES: ("left" | "right" | "top" | "width" | "height" | "max-height" | "max-width" | "min-height" | "min-width" | "bottom" | "horizontal" | "vertical" | "margin-left" | "margin-right" | "margin-top" | "margin-bottom" | "margin-horizontal" | "margin-vertical" | "padding-left" | "padding-right" | "padding-top" | "padding-bottom" | "padding-horizontal" | "padding-vertical" | "overflow-x" | "overflow-y" | "border-horizontal" | "border-horizontal-color" | "border-horizontal-width" | "border-horizontal-style" | "border-vertical" | "border-vertical-color" | "border-vertical-width" | "border-vertical-style" | "border-bottom" | "border-bottom-color" | "border-bottom-style" | "border-bottom-width" | "border-top" | "border-top-color" | "border-top-style" | "border-top-width" | "border-right" | "border-right-color" | "border-right-style" | "border-right-width" | "border-left" | "border-left-color" | "border-left-style" | "border-left-width" | "border-top-left-radius" | "border-top-right-radius" | "border-bottom-left-radius" | "border-bottom-right-radius")[];
|
|
6299
|
+
export type LogicalProperties = typeof LOGICAL_PROPERTIES[number];
|
|
6300
|
+
/**
|
|
6301
|
+
*
|
|
6302
|
+
* @param property A string that is a valid CSS logical property
|
|
6303
|
+
* @param value String to output as the property value
|
|
6304
|
+
* @returns `string` Returns the logical CSS property version for the given `property: value` pair
|
|
6305
|
+
*/
|
|
6306
|
+
export const logicalCSS: (property: LogicalProperties, value?: any) => string;
|
|
6307
|
+
/**
|
|
6308
|
+
* Some logical properties are not yet fully supported by all browsers.
|
|
6309
|
+
* For those cases, we should use the old property as a fallback for
|
|
6310
|
+
* browsers missing support, while allowing supporting browsers to use
|
|
6311
|
+
* the logical properties.
|
|
6312
|
+
*
|
|
6313
|
+
* Examples:
|
|
6314
|
+
* https://caniuse.com/?search=overflow-block
|
|
6315
|
+
* https://caniuse.com/mdn-css_properties_float_flow_relative_values
|
|
6316
|
+
*/
|
|
6317
|
+
export const logicalCSSWithFallback: (property: LogicalProperties, value?: any) => string;
|
|
6318
|
+
/**
|
|
6319
|
+
*
|
|
6320
|
+
* @param property A string that is a valid CSS logical property
|
|
6321
|
+
* @param value String to output as the property value
|
|
6322
|
+
* @returns `object` Returns the logical CSS property version for the given `property: value` pair
|
|
6323
|
+
*/
|
|
6324
|
+
export const logicalStyle: (property: LogicalProperties, value?: any) => {
|
|
6325
|
+
[x: string]: any;
|
|
6326
|
+
};
|
|
6327
|
+
/**
|
|
6328
|
+
*
|
|
6329
|
+
* @param width A string value for the LTR width
|
|
6330
|
+
* @param height A string value for the LTR height
|
|
6331
|
+
* @returns `string` Returns the logical CSS properties for height and width
|
|
6332
|
+
*/
|
|
6333
|
+
export const logicalSizeCSS: (width: any, height: any) => string;
|
|
6334
|
+
/**
|
|
6335
|
+
*
|
|
6336
|
+
* @param width A string value for the LTR width
|
|
6337
|
+
* @param height A string value for the LTR height
|
|
6338
|
+
* @returns `object` Returns the logical CSS properties for height and width
|
|
6339
|
+
*/
|
|
6340
|
+
export const logicalSizeStyle: (width: any, height: any) => {
|
|
6341
|
+
[x: string]: any;
|
|
6342
|
+
};
|
|
6343
|
+
export const logicalText: {
|
|
6344
|
+
'text-align': {
|
|
6345
|
+
left: string;
|
|
6346
|
+
center: string;
|
|
6347
|
+
right: string;
|
|
6348
|
+
};
|
|
6349
|
+
};
|
|
6350
|
+
export const LOGICAL_TEXT_ALIGNMENT: ("left" | "right" | "center")[];
|
|
6351
|
+
export type LogicalText = typeof LOGICAL_TEXT_ALIGNMENT[number];
|
|
6352
|
+
/**
|
|
6353
|
+
*
|
|
6354
|
+
* @param property A string that is a valid CSS logical property
|
|
6355
|
+
* @param value String to output as the property value
|
|
6356
|
+
* @returns `string` Returns the logical CSS property version for the given `property: value` pair
|
|
6357
|
+
*/
|
|
6358
|
+
export const logicalTextAlignCSS: (value: LogicalText) => string;
|
|
6359
|
+
/**
|
|
6360
|
+
*
|
|
6361
|
+
* @param property A string that is a valid CSS logical property
|
|
6362
|
+
* @param value String to output as the property value
|
|
6363
|
+
* @returns `object` Returns the logical CSS property version for the given `property: value` pair
|
|
6364
|
+
*/
|
|
6365
|
+
export const logicalTextAlignStyle: (value: LogicalText) => {
|
|
6366
|
+
textAlign: string;
|
|
6367
|
+
};
|
|
6368
|
+
|
|
6369
|
+
}
|
|
6370
|
+
declare module '@elastic/eui/src/global_styling/functions/size' {
|
|
6371
|
+
/**
|
|
6372
|
+
* Calculates the `px` value based on a scale multiplier
|
|
6373
|
+
* @param scale - The font scale multiplier
|
|
6374
|
+
* *
|
|
6375
|
+
* @param themeOrBase - Theme base value
|
|
6376
|
+
* *
|
|
6377
|
+
* @returns string - Rem unit aligned to baseline
|
|
6378
|
+
*/
|
|
6379
|
+
export const sizeToPixel: (scale?: number) => (themeOrBase: number | {
|
|
6380
|
+
[key: string]: any;
|
|
6381
|
+
base: number;
|
|
6382
|
+
}) => string;
|
|
6383
|
+
|
|
6384
|
+
}
|
|
6385
|
+
declare module '@elastic/eui/src/services/theme/hooks' {
|
|
6386
|
+
import React from 'react';
|
|
6387
|
+
import { EuiThemeColorModeStandard, EuiThemeModifications, EuiThemeComputed } from '@elastic/eui/src/services/theme/types';
|
|
6388
|
+
export interface UseEuiTheme<T extends {} = {}> {
|
|
6389
|
+
euiTheme: EuiThemeComputed<T>;
|
|
6390
|
+
colorMode: EuiThemeColorModeStandard;
|
|
6391
|
+
modifications: EuiThemeModifications<T>;
|
|
6392
|
+
}
|
|
6393
|
+
export const useEuiTheme: <T extends {} = {}>() => UseEuiTheme<T>;
|
|
6394
|
+
export interface WithEuiThemeProps<P = {}> {
|
|
6395
|
+
theme: UseEuiTheme<P>;
|
|
6396
|
+
}
|
|
6397
|
+
export const withEuiTheme: <T extends {} = {}, U extends {} = {}>(Component: React.ComponentType<T & WithEuiThemeProps<U>>) => React.ForwardRefExoticComponent<React.PropsWithoutRef<Omit<T, "theme">> & React.RefAttributes<Omit<T, "theme">>>;
|
|
6398
|
+
|
|
6399
|
+
}
|
|
6400
|
+
declare module '@elastic/eui/src/global_styling/functions/typography' {
|
|
6401
|
+
import { _EuiThemeFontScale, _EuiThemeFontSizeMeasurement } from '@elastic/eui/src/global_styling/variables/typography';
|
|
6402
|
+
import { UseEuiTheme } from '@elastic/eui/src/services/theme/hooks';
|
|
6403
|
+
export interface _FontScaleOptions {
|
|
6404
|
+
/**
|
|
6405
|
+
* The returned string measurement
|
|
6406
|
+
*/
|
|
6407
|
+
measurement?: _EuiThemeFontSizeMeasurement;
|
|
6408
|
+
/**
|
|
6409
|
+
* An additional custom scale multiplier to use against the current scale
|
|
6410
|
+
* This parameter can be used (e.g. by EuiText sizes) to get sizes of text smaller than the default
|
|
6411
|
+
*/
|
|
6412
|
+
customScale?: _EuiThemeFontScale;
|
|
6413
|
+
}
|
|
6414
|
+
/**
|
|
6415
|
+
* Calculates the font-size value based on the provided scale key
|
|
6416
|
+
* @param scale - The font scale key
|
|
6417
|
+
* @param theme - Requires the `base` and `font` keys
|
|
6418
|
+
* @param options - Optional parameters - see _FontScaleOptions
|
|
6419
|
+
*
|
|
6420
|
+
* @returns string - Calculated font-size value
|
|
6421
|
+
*/
|
|
6422
|
+
export function euiFontSizeFromScale(scale: _EuiThemeFontScale, { base, font }: UseEuiTheme['euiTheme'], { measurement, customScale }?: _FontScaleOptions): string;
|
|
6423
|
+
/**
|
|
6424
|
+
* Calculates the line-height to the closest multiple of the baseline
|
|
6425
|
+
* EX: A proper line-height for text is 1.5 times the font-size.
|
|
6426
|
+
* If our base font size (euiFontSize) is 16, and our baseline is 4. To ensure the
|
|
6427
|
+
* text stays on the baseline, we pass a multiplier to calculate a line-height.
|
|
6428
|
+
* @param scale - The font scale key
|
|
6429
|
+
* @param theme - Requires the `base` and `font` keys
|
|
6430
|
+
* @param options - Optional parameters - see _FontScaleOptions
|
|
6431
|
+
*
|
|
6432
|
+
* @returns string - Calculated line-height value aligned to baseline
|
|
6433
|
+
*/
|
|
6434
|
+
export function euiLineHeightFromBaseline(scale: _EuiThemeFontScale, { base, font }: UseEuiTheme['euiTheme'], { measurement, customScale }?: _FontScaleOptions): string;
|
|
6435
|
+
/**
|
|
6436
|
+
* Text weight shifting
|
|
6437
|
+
*
|
|
6438
|
+
* When changing the font-weight based on the state of the component,
|
|
6439
|
+
* this mixin will ensure that the sizing is dependent on the boldest
|
|
6440
|
+
* weight so it doesn't shift sibling content.
|
|
6441
|
+
*/
|
|
6442
|
+
export const euiTextShift: (fontWeight: "bold" | "medium" | "light" | "regular" | "semiBold" | undefined, attribute: string | undefined, euiTheme: UseEuiTheme['euiTheme']) => string;
|
|
6443
|
+
|
|
6444
|
+
}
|
|
6445
|
+
declare module '@elastic/eui/src/global_styling/functions' {
|
|
6446
|
+
export * from '@elastic/eui/src/global_styling/functions/logicals';
|
|
6447
|
+
export * from '@elastic/eui/src/global_styling/functions/size';
|
|
6448
|
+
export * from '@elastic/eui/src/global_styling/functions/typography';
|
|
6449
|
+
|
|
6547
6450
|
}
|
|
6548
6451
|
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_size' {
|
|
6549
6452
|
import { _EuiThemeBase, _EuiThemeSizes } from '@elastic/eui/src/global_styling/variables';
|
|
@@ -6620,6 +6523,16 @@ declare module '@elastic/eui/src/services/theme' {
|
|
|
6620
6523
|
declare module '@elastic/eui/src/services/throttle' {
|
|
6621
6524
|
export const throttle: (fn: (...args: any[]) => void, wait?: number) => (...args: any[]) => void;
|
|
6622
6525
|
|
|
6526
|
+
}
|
|
6527
|
+
declare module '@elastic/eui/src/services/breakpoint/_sorting' {
|
|
6528
|
+
import { _EuiThemeBreakpoints } from '@elastic/eui/src/global_styling/variables/breakpoint';
|
|
6529
|
+
export const sortMapByLargeToSmallValues: (breakpointsMap: _EuiThemeBreakpoints) => {
|
|
6530
|
+
[k: string]: number;
|
|
6531
|
+
};
|
|
6532
|
+
export const sortMapBySmallToLargeValues: (breakpointsMap: _EuiThemeBreakpoints) => {
|
|
6533
|
+
[k: string]: number;
|
|
6534
|
+
};
|
|
6535
|
+
|
|
6623
6536
|
}
|
|
6624
6537
|
declare module '@elastic/eui/src/services/breakpoint/current_breakpoint' {
|
|
6625
6538
|
import React, { FunctionComponent } from 'react';
|
|
@@ -7089,56 +7002,318 @@ declare module '@elastic/eui/src/services/hooks/useLatest' {
|
|
|
7089
7002
|
export function useLatest<Value>(value: Value): MutableRefObject<Value | null>;
|
|
7090
7003
|
|
|
7091
7004
|
}
|
|
7092
|
-
declare module '@elastic/eui/src/services/hooks/useMouseMove' {
|
|
7093
|
-
import { MouseEvent, TouchEvent } from 'react';
|
|
7094
|
-
export function isMouseEvent<T = HTMLDivElement>(event: MouseEvent<T> | TouchEvent<T>): event is MouseEvent<T>;
|
|
7095
|
-
export function useMouseMove<T = HTMLDivElement>(handleChange: (location: {
|
|
7096
|
-
x: number;
|
|
7097
|
-
y: number;
|
|
7098
|
-
}, isFirstInteraction?: boolean) => void, interactionConditional?: any): [
|
|
7099
|
-
(e: MouseEvent<T>) => void,
|
|
7100
|
-
(e: MouseEvent<T> | TouchEvent<T>, isFirstInteraction?: boolean) => void
|
|
7101
|
-
];
|
|
7005
|
+
declare module '@elastic/eui/src/services/hooks/useMouseMove' {
|
|
7006
|
+
import { MouseEvent, TouchEvent } from 'react';
|
|
7007
|
+
export function isMouseEvent<T = HTMLDivElement>(event: MouseEvent<T> | TouchEvent<T>): event is MouseEvent<T>;
|
|
7008
|
+
export function useMouseMove<T = HTMLDivElement>(handleChange: (location: {
|
|
7009
|
+
x: number;
|
|
7010
|
+
y: number;
|
|
7011
|
+
}, isFirstInteraction?: boolean) => void, interactionConditional?: any): [
|
|
7012
|
+
(e: MouseEvent<T>) => void,
|
|
7013
|
+
(e: MouseEvent<T> | TouchEvent<T>, isFirstInteraction?: boolean) => void
|
|
7014
|
+
];
|
|
7015
|
+
|
|
7016
|
+
}
|
|
7017
|
+
declare module '@elastic/eui/src/services/hooks' {
|
|
7018
|
+
export * from '@elastic/eui/src/services/hooks/useDependentState';
|
|
7019
|
+
export * from '@elastic/eui/src/services/hooks/useCombinedRefs';
|
|
7020
|
+
export * from '@elastic/eui/src/services/hooks/useForceRender';
|
|
7021
|
+
export * from '@elastic/eui/src/services/hooks/useLatest';
|
|
7022
|
+
export * from '@elastic/eui/src/services/hooks/useMouseMove';
|
|
7023
|
+
export * from '@elastic/eui/src/services/hooks/useUpdateEffect';
|
|
7024
|
+
|
|
7025
|
+
}
|
|
7026
|
+
declare module '@elastic/eui/src/services' {
|
|
7027
|
+
import * as keys from '@elastic/eui/src/services/keys';
|
|
7028
|
+
export { keys };
|
|
7029
|
+
export { accessibleClickKeys, cascadingMenuKeys, comboBoxKeys, htmlIdGenerator, useGeneratedHtmlId, } from '@elastic/eui/src/services/accessibility';
|
|
7030
|
+
export type { HorizontalAlignment } from '@elastic/eui/src/services/alignment';
|
|
7031
|
+
export { LEFT_ALIGNMENT, RIGHT_ALIGNMENT, CENTER_ALIGNMENT } from '@elastic/eui/src/services/alignment';
|
|
7032
|
+
export type { EuiBreakpointSize } from '@elastic/eui/src/services/breakpoint';
|
|
7033
|
+
export { useIsWithinBreakpoints, useIsWithinMaxBreakpoint, useIsWithinMinBreakpoint, CurrentEuiBreakpointContext, CurrentEuiBreakpointProvider, useCurrentEuiBreakpoint, } from '@elastic/eui/src/services/breakpoint';
|
|
7034
|
+
export type { HSV } from '@elastic/eui/src/services/color';
|
|
7035
|
+
export { isColorDark, isValidHex, calculateContrast, calculateLuminance, hexToHsv, hexToRgb, hsvToHex, hsvToRgb, rgbToHex, rgbToHsv, VISUALIZATION_COLORS, DEFAULT_VISUALIZATION_COLOR, colorPalette, euiPaletteForLightBackground, euiPaletteForDarkBackground, euiPaletteColorBlind, euiPaletteColorBlindBehindText, euiPaletteForStatus, euiPaletteForTemperature, euiPaletteComplimentary, euiPaletteNegative, euiPalettePositive, euiPaletteCool, euiPaletteWarm, euiPaletteGray, getSteppedGradient, transparentize, tint, shade, tintOrShade, shadeOrTint, saturate, desaturate, lightness, makeHighContrastColor, makeDisabledContrastColor, } from '@elastic/eui/src/services/color';
|
|
7036
|
+
export type { EuiSetColorMethod } from '@elastic/eui/src/services/color_picker';
|
|
7037
|
+
export { useColorPickerState, useColorStopsState } from '@elastic/eui/src/services/color_picker';
|
|
7038
|
+
export * from '@elastic/eui/src/services/console';
|
|
7039
|
+
export { copyToClipboard } from '@elastic/eui/src/services/copy_to_clipboard';
|
|
7040
|
+
export * from '@elastic/eui/src/services/findElement';
|
|
7041
|
+
export { formatAuto, formatBoolean, formatDate, formatNumber, formatText, dateFormatAliases, } from '@elastic/eui/src/services/format';
|
|
7042
|
+
export { isEvenlyDivisibleBy, isWithinRange } from '@elastic/eui/src/services/number';
|
|
7043
|
+
export { Pager } from '@elastic/eui/src/services/paging';
|
|
7044
|
+
export { Random } from '@elastic/eui/src/services/random';
|
|
7045
|
+
export { getSecureRelForTarget } from '@elastic/eui/src/services/security';
|
|
7046
|
+
export { toSentenceCase, toInitials, slugify } from '@elastic/eui/src/services/string';
|
|
7047
|
+
export type { PropertySort, Direction } from '@elastic/eui/src/services/sort';
|
|
7048
|
+
export { PropertySortType, SortDirectionType, SortDirection, SortableProperties, Comparators, } from '@elastic/eui/src/services/sort';
|
|
7049
|
+
export { calculatePopoverPosition, findPopoverPosition } from '@elastic/eui/src/services/popover';
|
|
7050
|
+
export { getDurationAndPerformOnFrame, getTransitionTimings, getWaitDuration, performOnFrame, } from '@elastic/eui/src/services/transition';
|
|
7051
|
+
export { EuiWindowEvent } from '@elastic/eui/src/services/window_event';
|
|
7052
|
+
export * from '@elastic/eui/src/services/hooks';
|
|
7053
|
+
export { throttle } from '@elastic/eui/src/services/throttle';
|
|
7054
|
+
export * from '@elastic/eui/src/services/theme';
|
|
7055
|
+
|
|
7056
|
+
}
|
|
7057
|
+
declare module '@elastic/eui/src/global_styling/mixins/_color' {
|
|
7058
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
7059
|
+
export const BACKGROUND_COLORS: readonly ["transparent", "plain", "subdued", "accent", "primary", "success", "warning", "danger"];
|
|
7060
|
+
export type _EuiBackgroundColor = typeof BACKGROUND_COLORS[number];
|
|
7061
|
+
export interface _EuiBackgroundColorOptions {
|
|
7062
|
+
/**
|
|
7063
|
+
* Use `opaque` for containers of unknown content.
|
|
7064
|
+
* Use `transparent` for interactive states like hover and focus.
|
|
7065
|
+
*/
|
|
7066
|
+
method?: 'opaque' | 'transparent';
|
|
7067
|
+
}
|
|
7068
|
+
export const euiBackgroundColor: ({ euiTheme, colorMode }: UseEuiTheme, color: _EuiBackgroundColor, { method }?: _EuiBackgroundColorOptions) => string;
|
|
7069
|
+
export const useEuiBackgroundColor: (color: _EuiBackgroundColor, { method }?: _EuiBackgroundColorOptions) => string;
|
|
7070
|
+
export const useEuiBackgroundColorCSS: () => {
|
|
7071
|
+
transparent: import("@emotion/utils").SerializedStyles;
|
|
7072
|
+
plain: import("@emotion/utils").SerializedStyles;
|
|
7073
|
+
subdued: import("@emotion/utils").SerializedStyles;
|
|
7074
|
+
accent: import("@emotion/utils").SerializedStyles;
|
|
7075
|
+
primary: import("@emotion/utils").SerializedStyles;
|
|
7076
|
+
success: import("@emotion/utils").SerializedStyles;
|
|
7077
|
+
warning: import("@emotion/utils").SerializedStyles;
|
|
7078
|
+
danger: import("@emotion/utils").SerializedStyles;
|
|
7079
|
+
};
|
|
7080
|
+
|
|
7081
|
+
}
|
|
7082
|
+
declare module '@elastic/eui/src/global_styling/mixins/_helpers' {
|
|
7083
|
+
import { CSSProperties } from 'react';
|
|
7084
|
+
import { UseEuiTheme } from '@elastic/eui/src/services/theme';
|
|
7085
|
+
/**
|
|
7086
|
+
* Set scroll bar appearance on Chrome (and firefox).
|
|
7087
|
+
* All parameters are optional and default to specific global settings.
|
|
7088
|
+
*/
|
|
7089
|
+
export interface EuiScrollBarStyles {
|
|
7090
|
+
thumbColor?: CSSProperties['backgroundColor'];
|
|
7091
|
+
trackColor?: CSSProperties['backgroundColor'];
|
|
7092
|
+
/**
|
|
7093
|
+
* Defaults to `thin`. Use `auto` only for large page scrollbars
|
|
7094
|
+
*/
|
|
7095
|
+
width?: CSSProperties['scrollbarWidth'];
|
|
7096
|
+
/**
|
|
7097
|
+
* Overall width (height for horizontal scrollbars)
|
|
7098
|
+
*/
|
|
7099
|
+
size?: CSSProperties['width'];
|
|
7100
|
+
/**
|
|
7101
|
+
* Corner sizes are usually determined by `width` and
|
|
7102
|
+
* are used as an inset border and therefore a smaller corner size means a larger thumb
|
|
7103
|
+
*/
|
|
7104
|
+
corner?: CSSProperties['borderWidth'];
|
|
7105
|
+
}
|
|
7106
|
+
export const euiScrollBarStyles: ({ euiTheme: { colors, size } }: UseEuiTheme, { thumbColor: _thumbColor, trackColor, width, size: _size, corner: _corner, }?: EuiScrollBarStyles) => string;
|
|
7107
|
+
export const useEuiScrollBar: (options?: EuiScrollBarStyles | undefined) => string;
|
|
7108
|
+
/**
|
|
7109
|
+
* 1. Focus rings shouldn't be visible on scrollable regions, but a11y requires them to be focusable.
|
|
7110
|
+
* Browser's supporting `:focus-visible` will still show outline on keyboard focus only.
|
|
7111
|
+
* Others like Safari, won't show anything at all.
|
|
7112
|
+
*/
|
|
7113
|
+
interface _EuiYScroll {
|
|
7114
|
+
height?: CSSProperties['height'];
|
|
7115
|
+
}
|
|
7116
|
+
export const euiYScroll: (euiTheme: UseEuiTheme, { height }?: _EuiYScroll) => string;
|
|
7117
|
+
export const useEuiYScroll: ({ height }?: _EuiYScroll) => string;
|
|
7118
|
+
export const euiYScrollWithShadows: (euiTheme: UseEuiTheme, { height }?: _EuiYScroll) => string;
|
|
7119
|
+
export const useEuiYScrollWithShadows: ({ height }?: _EuiYScroll) => string;
|
|
7120
|
+
export const euiXScroll: (euiTheme: UseEuiTheme) => string;
|
|
7121
|
+
export const useEuiXScroll: () => string;
|
|
7122
|
+
export const euiXScrollWithShadows: (euiTheme: UseEuiTheme) => string;
|
|
7123
|
+
export const useEuiXScrollWithShadows: () => string;
|
|
7124
|
+
interface EuiScrollOverflowStyles {
|
|
7125
|
+
direction?: 'y' | 'x';
|
|
7126
|
+
mask?: boolean;
|
|
7127
|
+
}
|
|
7128
|
+
export const euiOverflowScroll: (euiTheme: UseEuiTheme, { direction, mask }?: EuiScrollOverflowStyles) => string;
|
|
7129
|
+
export const useEuiOverflowScroll: (direction: EuiScrollOverflowStyles['direction'], mask?: EuiScrollOverflowStyles['mask']) => string;
|
|
7130
|
+
/**
|
|
7131
|
+
* For quickly applying a full-height element whether using flex or not
|
|
7132
|
+
*/
|
|
7133
|
+
export const euiFullHeight: () => string;
|
|
7134
|
+
/**
|
|
7135
|
+
* A constant storing the support for the `:has()` selector through a
|
|
7136
|
+
* media query that will only apply the content it is supported.
|
|
7137
|
+
*/
|
|
7138
|
+
export const euiSupportsHas = "@supports(selector(:has(p)))";
|
|
7139
|
+
export {};
|
|
7140
|
+
|
|
7141
|
+
}
|
|
7142
|
+
declare module '@elastic/eui/src/global_styling/mixins/_padding' {
|
|
7143
|
+
import { UseEuiTheme } from '@elastic/eui/src/services/theme';
|
|
7144
|
+
export const PADDING_SIZES: readonly ["none", "xs", "s", "m", "l", "xl"];
|
|
7145
|
+
export type EuiPaddingSize = typeof PADDING_SIZES[number];
|
|
7146
|
+
export const euiPaddingSize: ({ euiTheme }: UseEuiTheme, size: EuiPaddingSize) => string | null;
|
|
7147
|
+
export const useEuiPaddingSize: (size: EuiPaddingSize) => string | null;
|
|
7148
|
+
export const useEuiPaddingCSS: (side?: "left" | "right" | "top" | "bottom" | "horizontal" | "vertical" | undefined) => {
|
|
7149
|
+
none: null;
|
|
7150
|
+
xs: import("@emotion/utils").SerializedStyles;
|
|
7151
|
+
s: import("@emotion/utils").SerializedStyles;
|
|
7152
|
+
m: import("@emotion/utils").SerializedStyles;
|
|
7153
|
+
l: import("@emotion/utils").SerializedStyles;
|
|
7154
|
+
xl: import("@emotion/utils").SerializedStyles;
|
|
7155
|
+
};
|
|
7156
|
+
|
|
7157
|
+
}
|
|
7158
|
+
declare module '@elastic/eui/src/global_styling/mixins/_states' {
|
|
7159
|
+
import { CSSProperties } from 'react';
|
|
7160
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
7161
|
+
export type _EuiFocusRingOffset = 'inset' | 'outset' | 'center' | CSSProperties['outlineOffset'];
|
|
7162
|
+
/**
|
|
7163
|
+
* It is best practice to utilize the browser's default `outline` property for handling focus rings.
|
|
7164
|
+
* However, some components need to be forced to have the same behavior, or adjust the display.
|
|
7165
|
+
* This function re-applies the same default outline with a couple parameters
|
|
7166
|
+
* @param euiTheme UseEuiTheme.euiTheme
|
|
7167
|
+
* @param offset Accepts a specific measurement or 'inset', 'outset' or 'center' to adjust outline position
|
|
7168
|
+
* @param color Accepts any CSS color, **Note: only works in -webkit-**
|
|
7169
|
+
*/
|
|
7170
|
+
export const euiFocusRing: ({ euiTheme }: UseEuiTheme, offset?: _EuiFocusRingOffset, options?: {
|
|
7171
|
+
color?: CSSProperties['outlineColor'];
|
|
7172
|
+
} | undefined) => string;
|
|
7173
|
+
export const useEuiFocusRing: (offset?: _EuiFocusRingOffset, color?: CSSProperties['outlineColor']) => string;
|
|
7174
|
+
|
|
7175
|
+
}
|
|
7176
|
+
declare module '@elastic/eui/src/global_styling/mixins/_typography' {
|
|
7177
|
+
import { CSSProperties } from 'react';
|
|
7178
|
+
import { _FontScaleOptions } from '@elastic/eui/src/global_styling/functions/typography';
|
|
7179
|
+
import { UseEuiTheme } from '@elastic/eui/src/services/theme/hooks';
|
|
7180
|
+
import { _EuiThemeFontScale } from '@elastic/eui/src/global_styling/variables/typography';
|
|
7181
|
+
export type EuiThemeFontSize = {
|
|
7182
|
+
fontSize: CSSProperties['fontSize'];
|
|
7183
|
+
lineHeight: CSSProperties['lineHeight'];
|
|
7184
|
+
};
|
|
7185
|
+
/**
|
|
7186
|
+
* Returns font-size and line-height
|
|
7187
|
+
*/
|
|
7188
|
+
export const euiFontSize: ({ euiTheme }: UseEuiTheme, scale: _EuiThemeFontScale, options?: _FontScaleOptions | undefined) => EuiThemeFontSize;
|
|
7189
|
+
export const useEuiFontSize: (scale: _EuiThemeFontScale, options?: _FontScaleOptions | undefined) => EuiThemeFontSize;
|
|
7190
|
+
/**
|
|
7191
|
+
* Force text to wrap on natural word breaks (e.g. spaces & hyphens)
|
|
7192
|
+
* https://css-tricks.com/snippets/css/prevent-long-urls-from-breaking-out-of-container/
|
|
7193
|
+
*/
|
|
7194
|
+
export const euiTextBreakWord: () => string;
|
|
7195
|
+
/**
|
|
7196
|
+
* Prevent text from wrapping onto multiple lines, and truncate with an ellipsis.
|
|
7197
|
+
*/
|
|
7198
|
+
export const euiTextTruncate: (maxWidth?: CSSProperties['maxWidth']) => string;
|
|
7199
|
+
/**
|
|
7200
|
+
* Fixed-width numbers for tabular data
|
|
7201
|
+
*/
|
|
7202
|
+
export const euiNumberFormat: ({ euiTheme }: UseEuiTheme) => string;
|
|
7203
|
+
export const useEuiNumberFormat: () => string;
|
|
7204
|
+
|
|
7205
|
+
}
|
|
7206
|
+
declare module '@elastic/eui/src/global_styling/mixins/_responsive' {
|
|
7207
|
+
import { UseEuiTheme } from '@elastic/eui/src/services/theme/hooks';
|
|
7208
|
+
import { _EuiThemeBreakpoint } from '@elastic/eui/src/global_styling/variables';
|
|
7209
|
+
/**
|
|
7210
|
+
* Generates a CSS media query rule string based on the input breakpoint ranges.
|
|
7211
|
+
* Examples with default theme breakpoints:
|
|
7212
|
+
*
|
|
7213
|
+
* euiBreakpoint(['s']) becomes `@media only screen and (min-width: 575px) and (max-width: 767px)`
|
|
7214
|
+
* euiBreakpoint(['s', 'l']) becomes `@media only screen and (min-width: 575px) and (max-width: 1199px)`
|
|
7215
|
+
*
|
|
7216
|
+
* Use the smallest and largest sizes to generate media queries with only min/max-width.
|
|
7217
|
+
* Examples with default theme breakpoints:
|
|
7218
|
+
*
|
|
7219
|
+
* euiBreakpoint(['xs', 'm']) becomes `@media only screen and (max-width: 991px)`
|
|
7220
|
+
* euiBreakpoint(['l', 'xl']) becomes `@media only screen and (min-width: 992px)`
|
|
7221
|
+
*/
|
|
7222
|
+
export const euiBreakpoint: ({ euiTheme }: UseEuiTheme, sizes: [_EuiThemeBreakpoint, ..._EuiThemeBreakpoint[]]) => string;
|
|
7223
|
+
export const useEuiBreakpoint: (sizes: [_EuiThemeBreakpoint, ..._EuiThemeBreakpoint[]]) => string;
|
|
7224
|
+
|
|
7225
|
+
}
|
|
7226
|
+
declare module '@elastic/eui/src/global_styling/mixins' {
|
|
7227
|
+
export * from '@elastic/eui/src/global_styling/mixins/_color';
|
|
7228
|
+
export * from '@elastic/eui/src/global_styling/mixins/_helpers';
|
|
7229
|
+
export * from '@elastic/eui/src/global_styling/mixins/_padding';
|
|
7230
|
+
export * from '@elastic/eui/src/global_styling/mixins/_states';
|
|
7231
|
+
export * from '@elastic/eui/src/global_styling/mixins/_typography';
|
|
7232
|
+
export * from '@elastic/eui/src/global_styling/mixins/_responsive';
|
|
7233
|
+
|
|
7234
|
+
}
|
|
7235
|
+
declare module '@elastic/eui/src/global_styling/reset/reset' {
|
|
7236
|
+
export const resetStyles = "\n/* // Adapted from Eric Meyer's reset (http://meyerweb.com/eric/tools/css/reset/, v2.0 | 20110126). */\n\n\n*, *:before, *:after {\n box-sizing: border-box;\n}\n\nhtml, body, div, span, applet, object, iframe,\nh1, h2, h3, h4, h5, h6, p, blockquote, pre,\na, abbr, acronym, address, big, cite, code,\ndel, dfn, em, img, ins, kbd, q, s, samp,\nsmall, strike, strong, sub, sup, tt, var,\nb, u, i, center,\ndl, dt, dd, ol, ul, li,\nfieldset, form, label, legend,\ntable, caption, tbody, tfoot, thead, tr, th, td,\narticle, aside, canvas, details, embed,\nfigure, figcaption, footer, header, hgroup,\nmenu, nav, output, ruby, section, summary,\ntime, mark, audio, video {\n margin: 0;\n padding: 0;\n border: none;\n vertical-align: baseline;\n}\n\nh1, h2, h3, h4, h5, h6, p {\n font-family: inherit;\n font-weight: inherit;\n font-size: inherit;\n}\n\n/* HTML5 display-role reset for older browsers */\narticle, aside, details, figcaption, figure,\nfooter, header, hgroup, menu, nav, section {\n display: block;\n}\n\na[href],\nbutton,\n[role='button'] {\n cursor: pointer;\n}\n\nbutton {\n background: none;\n border: none;\n padding: 0;\n margin: 0;\n color: inherit;\n border-radius: 0;\n font-size: inherit;\n}\n\ninput {\n margin: 0;\n padding: 0;\n}\n\ninput:disabled {\n opacity: 1; /* required on iOS */\n}\n\nol,\nul {\n list-style: none;\n}\n\nblockquote,\nq {\n quotes: none;\n}\n\nblockquote:before,\nblockquote:after,\nq:before,\nq:after {\n content: '';\n}\n\ntable {\n border-collapse: collapse;\n border-spacing: 0;\n}\n\nhr {\n margin: 0;\n}\n\nfieldset {\n min-inline-size: auto;\n}\n\n/* Chrome has an issue around RTL languages in SVGs when letter-spacing is negative\n * https://bugs.chromium.org/p/chromium/issues/detail?id=966480\n */\nsvg text {\n letter-spacing: normal !important;\n}";
|
|
7237
|
+
|
|
7238
|
+
}
|
|
7239
|
+
declare module '@elastic/eui/src/global_styling/reset/global_styles' {
|
|
7240
|
+
|
|
7241
|
+
export interface EuiGlobalStylesProps {
|
|
7242
|
+
}
|
|
7243
|
+
export const EuiGlobalStyles: ({}: EuiGlobalStylesProps) => JSX.Element;
|
|
7244
|
+
|
|
7245
|
+
}
|
|
7246
|
+
declare module '@elastic/eui/src/global_styling' {
|
|
7247
|
+
export * from '@elastic/eui/src/global_styling/reset/global_styles';
|
|
7248
|
+
export * from '@elastic/eui/src/global_styling/functions';
|
|
7249
|
+
export * from '@elastic/eui/src/global_styling/variables';
|
|
7250
|
+
export * from '@elastic/eui/src/global_styling/mixins';
|
|
7251
|
+
|
|
7252
|
+
}
|
|
7253
|
+
declare module '@elastic/eui/src/components/accessibility/screen_reader_only/screen_reader_only.styles' {
|
|
7254
|
+
export const euiScreenReaderOnly: () => string;
|
|
7255
|
+
export const euiScreenReaderOnlyStyles: (showOnFocus?: boolean | undefined) => {
|
|
7256
|
+
euiScreenReaderOnly: import("@emotion/utils").SerializedStyles;
|
|
7257
|
+
};
|
|
7258
|
+
|
|
7259
|
+
}
|
|
7260
|
+
declare module '@elastic/eui/src/components/accessibility/screen_reader_only/screen_reader_only' {
|
|
7261
|
+
import { ReactElement, FunctionComponent } from 'react';
|
|
7262
|
+
export interface EuiScreenReaderOnlyProps {
|
|
7263
|
+
/**
|
|
7264
|
+
* ReactElement to render as this component's content
|
|
7265
|
+
*/
|
|
7266
|
+
children: ReactElement;
|
|
7267
|
+
/**
|
|
7268
|
+
* For keyboard navigation, force content to display visually upon focus.
|
|
7269
|
+
*/
|
|
7270
|
+
showOnFocus?: boolean;
|
|
7271
|
+
className?: string;
|
|
7272
|
+
}
|
|
7273
|
+
export const EuiScreenReaderOnly: FunctionComponent<EuiScreenReaderOnlyProps>;
|
|
7274
|
+
|
|
7275
|
+
}
|
|
7276
|
+
declare module '@elastic/eui/src/components/accessibility/screen_reader_only' {
|
|
7277
|
+
export type { EuiScreenReaderOnlyProps } from '@elastic/eui/src/components/accessibility/screen_reader_only/screen_reader_only';
|
|
7278
|
+
export { EuiScreenReaderOnly } from '@elastic/eui/src/components/accessibility/screen_reader_only/screen_reader_only';
|
|
7279
|
+
export { euiScreenReaderOnly } from '@elastic/eui/src/components/accessibility/screen_reader_only/screen_reader_only.styles';
|
|
7102
7280
|
|
|
7103
7281
|
}
|
|
7104
|
-
declare module '@elastic/eui/src/
|
|
7105
|
-
|
|
7106
|
-
export
|
|
7107
|
-
|
|
7108
|
-
|
|
7109
|
-
|
|
7110
|
-
|
|
7282
|
+
declare module '@elastic/eui/src/components/accessibility/screen_reader_live/screen_reader_live' {
|
|
7283
|
+
import { AriaAttributes, HTMLAttributes, FunctionComponent, ReactNode } from 'react';
|
|
7284
|
+
export interface EuiScreenReaderLiveProps {
|
|
7285
|
+
/**
|
|
7286
|
+
* Whether to make screen readers aware of the content
|
|
7287
|
+
*/
|
|
7288
|
+
isActive?: boolean;
|
|
7289
|
+
/**
|
|
7290
|
+
* Content for screen readers to announce
|
|
7291
|
+
*/
|
|
7292
|
+
children?: ReactNode;
|
|
7293
|
+
/**
|
|
7294
|
+
* `role` attribute for both live regions.
|
|
7295
|
+
*
|
|
7296
|
+
* https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Live_Regions#roles_with_implicit_live_region_attributes
|
|
7297
|
+
*/
|
|
7298
|
+
role?: HTMLAttributes<HTMLDivElement>['role'];
|
|
7299
|
+
/**
|
|
7300
|
+
* `aria-live` attribute for both live regions
|
|
7301
|
+
*/
|
|
7302
|
+
'aria-live'?: AriaAttributes['aria-live'];
|
|
7303
|
+
/**
|
|
7304
|
+
* On `children`/text change, the region will auto-focus itself, causing screen readers
|
|
7305
|
+
* to automatically read out the text content. This prop should primarily be used for
|
|
7306
|
+
* navigation or page changes, where programmatically resetting focus location back to
|
|
7307
|
+
* a certain part of the page is desired.
|
|
7308
|
+
*/
|
|
7309
|
+
focusRegionOnTextChange?: boolean;
|
|
7310
|
+
}
|
|
7311
|
+
export const EuiScreenReaderLive: FunctionComponent<EuiScreenReaderLiveProps>;
|
|
7111
7312
|
|
|
7112
7313
|
}
|
|
7113
|
-
declare module '@elastic/eui/src/
|
|
7114
|
-
|
|
7115
|
-
export {
|
|
7116
|
-
export { accessibleClickKeys, cascadingMenuKeys, comboBoxKeys, htmlIdGenerator, useGeneratedHtmlId, } from '@elastic/eui/src/services/accessibility';
|
|
7117
|
-
export type { HorizontalAlignment } from '@elastic/eui/src/services/alignment';
|
|
7118
|
-
export { LEFT_ALIGNMENT, RIGHT_ALIGNMENT, CENTER_ALIGNMENT } from '@elastic/eui/src/services/alignment';
|
|
7119
|
-
export type { EuiBreakpointSize } from '@elastic/eui/src/services/breakpoint';
|
|
7120
|
-
export { useIsWithinBreakpoints, useIsWithinMaxBreakpoint, useIsWithinMinBreakpoint, CurrentEuiBreakpointContext, CurrentEuiBreakpointProvider, useCurrentEuiBreakpoint, } from '@elastic/eui/src/services/breakpoint';
|
|
7121
|
-
export type { HSV } from '@elastic/eui/src/services/color';
|
|
7122
|
-
export { isColorDark, isValidHex, calculateContrast, calculateLuminance, hexToHsv, hexToRgb, hsvToHex, hsvToRgb, rgbToHex, rgbToHsv, VISUALIZATION_COLORS, DEFAULT_VISUALIZATION_COLOR, colorPalette, euiPaletteForLightBackground, euiPaletteForDarkBackground, euiPaletteColorBlind, euiPaletteColorBlindBehindText, euiPaletteForStatus, euiPaletteForTemperature, euiPaletteComplimentary, euiPaletteNegative, euiPalettePositive, euiPaletteCool, euiPaletteWarm, euiPaletteGray, getSteppedGradient, transparentize, tint, shade, tintOrShade, shadeOrTint, saturate, desaturate, lightness, makeHighContrastColor, makeDisabledContrastColor, } from '@elastic/eui/src/services/color';
|
|
7123
|
-
export type { EuiSetColorMethod } from '@elastic/eui/src/services/color_picker';
|
|
7124
|
-
export { useColorPickerState, useColorStopsState } from '@elastic/eui/src/services/color_picker';
|
|
7125
|
-
export * from '@elastic/eui/src/services/console';
|
|
7126
|
-
export { copyToClipboard } from '@elastic/eui/src/services/copy_to_clipboard';
|
|
7127
|
-
export * from '@elastic/eui/src/services/findElement';
|
|
7128
|
-
export { formatAuto, formatBoolean, formatDate, formatNumber, formatText, dateFormatAliases, } from '@elastic/eui/src/services/format';
|
|
7129
|
-
export { isEvenlyDivisibleBy, isWithinRange } from '@elastic/eui/src/services/number';
|
|
7130
|
-
export { Pager } from '@elastic/eui/src/services/paging';
|
|
7131
|
-
export { Random } from '@elastic/eui/src/services/random';
|
|
7132
|
-
export { getSecureRelForTarget } from '@elastic/eui/src/services/security';
|
|
7133
|
-
export { toSentenceCase, toInitials, slugify } from '@elastic/eui/src/services/string';
|
|
7134
|
-
export type { PropertySort, Direction } from '@elastic/eui/src/services/sort';
|
|
7135
|
-
export { PropertySortType, SortDirectionType, SortDirection, SortableProperties, Comparators, } from '@elastic/eui/src/services/sort';
|
|
7136
|
-
export { calculatePopoverPosition, findPopoverPosition } from '@elastic/eui/src/services/popover';
|
|
7137
|
-
export { getDurationAndPerformOnFrame, getTransitionTimings, getWaitDuration, performOnFrame, } from '@elastic/eui/src/services/transition';
|
|
7138
|
-
export { EuiWindowEvent } from '@elastic/eui/src/services/window_event';
|
|
7139
|
-
export * from '@elastic/eui/src/services/hooks';
|
|
7140
|
-
export { throttle } from '@elastic/eui/src/services/throttle';
|
|
7141
|
-
export * from '@elastic/eui/src/services/theme';
|
|
7314
|
+
declare module '@elastic/eui/src/components/accessibility/screen_reader_live' {
|
|
7315
|
+
export { EuiScreenReaderLive } from '@elastic/eui/src/components/accessibility/screen_reader_live/screen_reader_live';
|
|
7316
|
+
export type { EuiScreenReaderLiveProps } from '@elastic/eui/src/components/accessibility/screen_reader_live/screen_reader_live';
|
|
7142
7317
|
|
|
7143
7318
|
}
|
|
7144
7319
|
declare module '@elastic/eui/src/components/accessibility/skip_link/skip_link.styles' {
|
|
@@ -7247,7 +7422,7 @@ declare module '@elastic/eui/src/components/accordion/accordion' {
|
|
|
7247
7422
|
l: string;
|
|
7248
7423
|
xl: string;
|
|
7249
7424
|
};
|
|
7250
|
-
export const PADDING_SIZES: ("s" | "
|
|
7425
|
+
export const PADDING_SIZES: ("s" | "xs" | "m" | "l" | "xl" | "none")[];
|
|
7251
7426
|
export type EuiAccordionSize = keyof typeof paddingSizeToClassNameMap;
|
|
7252
7427
|
export type EuiAccordionProps = CommonProps & Omit<HTMLAttributes<HTMLElement>, 'id'> & {
|
|
7253
7428
|
id: string;
|
|
@@ -7537,7 +7712,7 @@ declare module '@elastic/eui/src/components/badge/badge' {
|
|
|
7537
7712
|
declare module '@elastic/eui/src/components/badge/beta_badge/beta_badge' {
|
|
7538
7713
|
import { AriaAttributes, FunctionComponent, HTMLAttributes, MouseEventHandler, ReactNode } from 'react';
|
|
7539
7714
|
import { CommonProps, ExclusiveUnion } from '@elastic/eui/src/components/common';
|
|
7540
|
-
import { ToolTipPositions } from '@elastic/eui/src/components/tool_tip';
|
|
7715
|
+
import { EuiToolTipProps, ToolTipPositions } from '@elastic/eui/src/components/tool_tip';
|
|
7541
7716
|
import { IconType } from '@elastic/eui/src/components/icon'; const colorToClassMap: {
|
|
7542
7717
|
accent: string;
|
|
7543
7718
|
subdued: string;
|
|
@@ -7592,6 +7767,10 @@ declare module '@elastic/eui/src/components/badge/beta_badge/beta_badge' {
|
|
|
7592
7767
|
* Custom position of the tooltip
|
|
7593
7768
|
*/
|
|
7594
7769
|
tooltipPosition?: ToolTipPositions;
|
|
7770
|
+
/**
|
|
7771
|
+
* Passes onto the span wrapping the badge
|
|
7772
|
+
*/
|
|
7773
|
+
anchorProps?: EuiToolTipProps['anchorProps'];
|
|
7595
7774
|
/**
|
|
7596
7775
|
* Optional title will be supplied as tooltip title or title attribute
|
|
7597
7776
|
* otherwise the label will be used
|
|
@@ -7650,7 +7829,7 @@ declare module '@elastic/eui/src/components/badge/badge_group/badge_group' {
|
|
|
7650
7829
|
xs: string;
|
|
7651
7830
|
s: string;
|
|
7652
7831
|
};
|
|
7653
|
-
export const GUTTER_SIZES: ("s" | "
|
|
7832
|
+
export const GUTTER_SIZES: ("s" | "xs" | "none")[]; type BadgeGroupGutterSize = keyof typeof gutterSizeToClassNameMap;
|
|
7654
7833
|
export interface EuiBadgeGroupProps {
|
|
7655
7834
|
/**
|
|
7656
7835
|
* Space between badges
|
|
@@ -7957,18 +8136,90 @@ declare module '@elastic/eui/src/components/breadcrumbs' {
|
|
|
7957
8136
|
export { EuiBreadcrumbs } from '@elastic/eui/src/components/breadcrumbs/breadcrumbs';
|
|
7958
8137
|
|
|
7959
8138
|
}
|
|
7960
|
-
declare module '@elastic/eui/src/components/card/card_select' {
|
|
7961
|
-
|
|
7962
|
-
|
|
7963
|
-
export type EuiCardSelectProps = EuiButtonEmptyProps & {
|
|
7964
|
-
/**
|
|
7965
|
-
* Is in the selected state
|
|
7966
|
-
*/
|
|
7967
|
-
isSelected?: boolean;
|
|
7968
|
-
isDisabled?: boolean;
|
|
8139
|
+
declare module '@elastic/eui/src/components/card/card_select/card_select.styles' {
|
|
8140
|
+
export const euiCardSelectStyles: () => {
|
|
8141
|
+
euiCardSelect: import("@emotion/utils").SerializedStyles;
|
|
7969
8142
|
};
|
|
8143
|
+
|
|
8144
|
+
}
|
|
8145
|
+
declare module '@elastic/eui/src/components/card/card_select/card_select' {
|
|
8146
|
+
import { FunctionComponent } from 'react';
|
|
8147
|
+
import { Props } from '@elastic/eui/src/components/button/button';
|
|
8148
|
+
export type EuiCardSelectProps = Props;
|
|
7970
8149
|
export const EuiCardSelect: FunctionComponent<EuiCardSelectProps>;
|
|
7971
|
-
export function euiCardSelectableColor(color:
|
|
8150
|
+
export function euiCardSelectableColor(color: Props['color'], isSelected: boolean | undefined): Props['color'];
|
|
8151
|
+
|
|
8152
|
+
}
|
|
8153
|
+
declare module '@elastic/eui/src/components/card/card_select' {
|
|
8154
|
+
export type { EuiCardSelectProps } from '@elastic/eui/src/components/card/card_select/card_select';
|
|
8155
|
+
export { EuiCardSelect, euiCardSelectableColor } from '@elastic/eui/src/components/card/card_select/card_select';
|
|
8156
|
+
|
|
8157
|
+
}
|
|
8158
|
+
declare module '@elastic/eui/src/components/card/card.styles' {
|
|
8159
|
+
import { EuiCardProps } from '@elastic/eui/src/components';
|
|
8160
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
8161
|
+
/**
|
|
8162
|
+
* 1. Footer is always at the bottom.
|
|
8163
|
+
* 3. Horizontal layouts should always top left align no matter the textAlign prop
|
|
8164
|
+
* 4. Ensures the contents always stretch no matter the flex layout
|
|
8165
|
+
*/
|
|
8166
|
+
export const euiCardStyles: (euiThemeContext: UseEuiTheme, paddingSize: EuiCardProps['paddingSize'], color: EuiCardProps['display']) => {
|
|
8167
|
+
card: {
|
|
8168
|
+
euiCard: import("@emotion/utils").SerializedStyles;
|
|
8169
|
+
aligned: {
|
|
8170
|
+
center: import("@emotion/utils").SerializedStyles;
|
|
8171
|
+
left: import("@emotion/utils").SerializedStyles;
|
|
8172
|
+
right: import("@emotion/utils").SerializedStyles;
|
|
8173
|
+
};
|
|
8174
|
+
layout: {
|
|
8175
|
+
vertical: import("@emotion/utils").SerializedStyles;
|
|
8176
|
+
horizontal: import("@emotion/utils").SerializedStyles;
|
|
8177
|
+
};
|
|
8178
|
+
disabled: import("@emotion/utils").SerializedStyles;
|
|
8179
|
+
};
|
|
8180
|
+
content: {
|
|
8181
|
+
euiCard__content: import("@emotion/utils").SerializedStyles;
|
|
8182
|
+
layout: {
|
|
8183
|
+
vertical: import("@emotion/utils").SerializedStyles;
|
|
8184
|
+
horizontal: import("@emotion/utils").SerializedStyles;
|
|
8185
|
+
};
|
|
8186
|
+
};
|
|
8187
|
+
euiCard__children: import("@emotion/utils").SerializedStyles;
|
|
8188
|
+
euiCard__description: import("@emotion/utils").SerializedStyles;
|
|
8189
|
+
euiCard__footer: import("@emotion/utils").SerializedStyles;
|
|
8190
|
+
top: {
|
|
8191
|
+
euiCard__top: import("@emotion/utils").SerializedStyles;
|
|
8192
|
+
layout: {
|
|
8193
|
+
vertical: import("@emotion/utils").SerializedStyles;
|
|
8194
|
+
horizontal: import("@emotion/utils").SerializedStyles;
|
|
8195
|
+
};
|
|
8196
|
+
disabled: import("@emotion/utils").SerializedStyles;
|
|
8197
|
+
};
|
|
8198
|
+
euiCard__image: import("@emotion/utils").SerializedStyles;
|
|
8199
|
+
icon: {
|
|
8200
|
+
euiCard__icon: import("@emotion/utils").SerializedStyles;
|
|
8201
|
+
withImage: import("@emotion/utils").SerializedStyles;
|
|
8202
|
+
layout: {
|
|
8203
|
+
vertical: import("@emotion/utils").SerializedStyles;
|
|
8204
|
+
horizontal: import("@emotion/utils").SerializedStyles;
|
|
8205
|
+
};
|
|
8206
|
+
};
|
|
8207
|
+
};
|
|
8208
|
+
export const euiCardTextStyles: (euiThemeContext: UseEuiTheme) => {
|
|
8209
|
+
euiCard__text: import("@emotion/utils").SerializedStyles;
|
|
8210
|
+
interactive: import("@emotion/utils").SerializedStyles;
|
|
8211
|
+
aligned: {
|
|
8212
|
+
center: import("@emotion/utils").SerializedStyles;
|
|
8213
|
+
left: import("@emotion/utils").SerializedStyles;
|
|
8214
|
+
right: import("@emotion/utils").SerializedStyles;
|
|
8215
|
+
};
|
|
8216
|
+
disabled: import("@emotion/utils").SerializedStyles;
|
|
8217
|
+
};
|
|
8218
|
+
export const euiCardBetaBadgeStyles: (euiThemeContext: UseEuiTheme, paddingSize: EuiCardProps['paddingSize']) => {
|
|
8219
|
+
hasBetaBadge: import("@emotion/utils").SerializedStyles;
|
|
8220
|
+
euiCard__betaBadgeAnchor: import("@emotion/utils").SerializedStyles;
|
|
8221
|
+
euiCard__betaBadge: import("@emotion/utils").SerializedStyles;
|
|
8222
|
+
};
|
|
7972
8223
|
|
|
7973
8224
|
}
|
|
7974
8225
|
declare module '@elastic/eui/src/components/card/card' {
|
|
@@ -8008,7 +8259,7 @@ declare module '@elastic/eui/src/components/card/card' {
|
|
|
8008
8259
|
/**
|
|
8009
8260
|
* Determines the title's heading element
|
|
8010
8261
|
*/
|
|
8011
|
-
titleElement?: 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'span';
|
|
8262
|
+
titleElement?: 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'span' | 'p';
|
|
8012
8263
|
/**
|
|
8013
8264
|
* Determines the title's size, matching that of EuiTitle.
|
|
8014
8265
|
* Though, card titles can't be too large or small relative to the description text.
|
|
@@ -8038,7 +8289,7 @@ declare module '@elastic/eui/src/components/card/card' {
|
|
|
8038
8289
|
* Adds a badge to top of the card to label it as "Beta" or other non-GA state.
|
|
8039
8290
|
* Accepts all the props of [EuiBetaBadge](#/display/badge#beta-badge-type), where `label` is required.
|
|
8040
8291
|
*/
|
|
8041
|
-
betaBadgeProps?:
|
|
8292
|
+
betaBadgeProps?: EuiBetaBadgeProps;
|
|
8042
8293
|
/**
|
|
8043
8294
|
* Matches to the color property of EuiPanel. If defined, removes any border & shadow.
|
|
8044
8295
|
* Leave as `undefined` to display as a default panel.
|
|
@@ -8057,15 +8308,23 @@ declare module '@elastic/eui/src/components/card/card' {
|
|
|
8057
8308
|
* Use a border style of card instead of shadow
|
|
8058
8309
|
*/
|
|
8059
8310
|
hasBorder?: EuiPanelProps['hasBorder'];
|
|
8060
|
-
}
|
|
8061
|
-
description?: NonNullable<ReactNode>;
|
|
8062
|
-
children: ReactNode;
|
|
8063
|
-
} | {
|
|
8064
|
-
description: NonNullable<ReactNode>;
|
|
8065
|
-
});
|
|
8311
|
+
};
|
|
8066
8312
|
export const EuiCard: FunctionComponent<EuiCardProps>;
|
|
8067
8313
|
export {};
|
|
8068
8314
|
|
|
8315
|
+
}
|
|
8316
|
+
declare module '@elastic/eui/src/components/card/checkable_card/checkable_card.styles' {
|
|
8317
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
8318
|
+
export const euiCheckableCardStyles: (euiThemeContext: UseEuiTheme) => {
|
|
8319
|
+
euiCheckableCard: import("@emotion/utils").SerializedStyles;
|
|
8320
|
+
isChecked: import("@emotion/utils").SerializedStyles;
|
|
8321
|
+
label: {
|
|
8322
|
+
euiCheckableCard__label: import("@emotion/utils").SerializedStyles;
|
|
8323
|
+
isDisabled: import("@emotion/utils").SerializedStyles;
|
|
8324
|
+
};
|
|
8325
|
+
euiCheckableCard__children: import("@emotion/utils").SerializedStyles;
|
|
8326
|
+
};
|
|
8327
|
+
|
|
8069
8328
|
}
|
|
8070
8329
|
declare module '@elastic/eui/src/components/card/checkable_card/checkable_card' {
|
|
8071
8330
|
import { FunctionComponent, ReactNode } from 'react';
|
|
@@ -8369,7 +8628,7 @@ declare module '@elastic/eui/src/components/flyout/flyout' {
|
|
|
8369
8628
|
export const SIDES: ("left" | "right")[]; type _EuiFlyoutSide = typeof SIDES[number];
|
|
8370
8629
|
export const SIZES: ("s" | "m" | "l")[];
|
|
8371
8630
|
export type EuiFlyoutSize = typeof SIZES[number];
|
|
8372
|
-
export const PADDING_SIZES: ("s" | "
|
|
8631
|
+
export const PADDING_SIZES: ("s" | "m" | "l" | "none")[]; type _EuiFlyoutPaddingSize = typeof PADDING_SIZES[number];
|
|
8373
8632
|
interface _EuiFlyoutProps {
|
|
8374
8633
|
onClose: (event: MouseEvent | TouchEvent | KeyboardEvent) => void;
|
|
8375
8634
|
/**
|
|
@@ -13077,7 +13336,7 @@ declare module '@elastic/eui/src/components/empty_prompt/empty_prompt' {
|
|
|
13077
13336
|
import { EuiTitleSize } from '@elastic/eui/src/components/title';
|
|
13078
13337
|
import { IconColor, IconType } from '@elastic/eui/src/components/icon';
|
|
13079
13338
|
import { _EuiPanelDivlike } from '@elastic/eui/src/components/panel/panel';
|
|
13080
|
-
export const PADDING_SIZES: ("s" | "
|
|
13339
|
+
export const PADDING_SIZES: ("s" | "m" | "l" | "none")[];
|
|
13081
13340
|
export type PaddingSize = typeof PADDING_SIZES[number];
|
|
13082
13341
|
export type EuiEmptyPromptProps = CommonProps & Omit<_EuiPanelDivlike, 'borderRadius' | 'grow' | 'panelRef' | 'paddingSize' | 'title'> & {
|
|
13083
13342
|
iconType?: IconType;
|
|
@@ -13295,128 +13554,11 @@ declare module '@elastic/eui/src/components/facet/facet_button.styles' {
|
|
|
13295
13554
|
isDisabled: import("@emotion/utils").SerializedStyles;
|
|
13296
13555
|
};
|
|
13297
13556
|
|
|
13298
|
-
}
|
|
13299
|
-
declare module '@elastic/eui/src/components/button/button_display/_button_display.styles' {
|
|
13300
|
-
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
13301
|
-
export const euiButtonBaseCSS: () => string;
|
|
13302
|
-
export const euiButtonDisplayStyles: (euiThemeContext: UseEuiTheme, minWidth: string) => {
|
|
13303
|
-
euiButtonDisplay: import("@emotion/utils").SerializedStyles;
|
|
13304
|
-
isDisabled: import("@emotion/utils").SerializedStyles;
|
|
13305
|
-
fullWidth: import("@emotion/utils").SerializedStyles;
|
|
13306
|
-
xs: import("@emotion/utils").SerializedStyles;
|
|
13307
|
-
s: import("@emotion/utils").SerializedStyles;
|
|
13308
|
-
m: import("@emotion/utils").SerializedStyles;
|
|
13309
|
-
};
|
|
13310
|
-
|
|
13311
|
-
}
|
|
13312
|
-
declare module '@elastic/eui/src/components/button/button_display/_button_display_content.styles' {
|
|
13313
|
-
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
13314
|
-
export const euiButtonDisplayContentStyles: ({ euiTheme }: UseEuiTheme) => {
|
|
13315
|
-
euiButtonDisplayContent: import("@emotion/utils").SerializedStyles;
|
|
13316
|
-
left: import("@emotion/utils").SerializedStyles;
|
|
13317
|
-
right: import("@emotion/utils").SerializedStyles;
|
|
13318
|
-
euiButtonDisplayContent__spinner: import("@emotion/utils").SerializedStyles;
|
|
13319
|
-
euiButtonDisplayContent__icon: import("@emotion/utils").SerializedStyles;
|
|
13320
|
-
isDisabled: import("@emotion/utils").SerializedStyles;
|
|
13321
|
-
};
|
|
13322
|
-
|
|
13323
|
-
}
|
|
13324
|
-
declare module '@elastic/eui/src/components/button/button_display/_button_display_content' {
|
|
13325
|
-
import { HTMLAttributes, FunctionComponent, Ref } from 'react';
|
|
13326
|
-
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
13327
|
-
import { IconType } from '@elastic/eui/src/components/icon';
|
|
13328
|
-
export type ButtonContentIconSide = 'left' | 'right' | undefined;
|
|
13329
|
-
export type EuiButtonDisplayContentType = HTMLAttributes<HTMLSpanElement>;
|
|
13330
|
-
/**
|
|
13331
|
-
* *INTERNAL ONLY*
|
|
13332
|
-
* This component is simply a helper component for reuse within other button components.
|
|
13333
|
-
*/
|
|
13334
|
-
export interface EuiButtonDisplayContentProps extends CommonProps {
|
|
13335
|
-
/**
|
|
13336
|
-
* Any `type` accepted by EuiIcon
|
|
13337
|
-
*/
|
|
13338
|
-
iconType?: IconType;
|
|
13339
|
-
/**
|
|
13340
|
-
* Can only be one side `left` or `right`
|
|
13341
|
-
*/
|
|
13342
|
-
iconSide?: ButtonContentIconSide;
|
|
13343
|
-
isLoading?: boolean;
|
|
13344
|
-
/**
|
|
13345
|
-
* Object of props passed to the <span/> wrapping the content's text/children only (not icon)
|
|
13346
|
-
*/
|
|
13347
|
-
textProps?: HTMLAttributes<HTMLSpanElement> & CommonProps & {
|
|
13348
|
-
ref?: Ref<HTMLSpanElement>;
|
|
13349
|
-
'data-text'?: string;
|
|
13350
|
-
};
|
|
13351
|
-
iconSize?: 's' | 'm';
|
|
13352
|
-
isDisabled: boolean;
|
|
13353
|
-
}
|
|
13354
|
-
export const EuiButtonDisplayContent: FunctionComponent<EuiButtonDisplayContentType & EuiButtonDisplayContentProps>;
|
|
13355
|
-
|
|
13356
|
-
}
|
|
13357
|
-
declare module '@elastic/eui/src/components/button/button_display/_button_display' {
|
|
13358
|
-
import React, { CSSProperties, HTMLAttributes, ReactNode, Ref } from 'react';
|
|
13359
|
-
import { CommonProps, ExclusiveUnion, PropsForAnchor, PropsForButton } from '@elastic/eui/src/components/common';
|
|
13360
|
-
import { EuiButtonDisplayContentProps, EuiButtonDisplayContentType } from '@elastic/eui/src/components/button/button_display/_button_display_content';
|
|
13361
|
-
/**
|
|
13362
|
-
* Extends EuiButtonDisplayContentProps which provides
|
|
13363
|
-
* `iconType`, `iconSide`, and `textProps`
|
|
13364
|
-
*/
|
|
13365
|
-
export interface EuiButtonDisplayCommonProps extends EuiButtonDisplayContentProps, CommonProps {
|
|
13366
|
-
children?: ReactNode;
|
|
13367
|
-
size?: 'xs' | 's' | 'm';
|
|
13368
|
-
/**
|
|
13369
|
-
* Applies the boolean state as the `aria-pressed` property to create a toggle button.
|
|
13370
|
-
* *Only use when the readable text does not change between states.*
|
|
13371
|
-
*/
|
|
13372
|
-
isSelected?: boolean;
|
|
13373
|
-
/**
|
|
13374
|
-
* Extends the button to 100% width
|
|
13375
|
-
*/
|
|
13376
|
-
fullWidth?: boolean;
|
|
13377
|
-
/**
|
|
13378
|
-
* Override the default minimum width
|
|
13379
|
-
*/
|
|
13380
|
-
minWidth?: CSSProperties['minWidth'];
|
|
13381
|
-
/**
|
|
13382
|
-
* Force disables the button and changes the icon to a loading spinner
|
|
13383
|
-
*/
|
|
13384
|
-
isLoading?: boolean;
|
|
13385
|
-
/**
|
|
13386
|
-
* Object of props passed to the <span/> wrapping the button's content
|
|
13387
|
-
*/
|
|
13388
|
-
contentProps?: EuiButtonDisplayContentType;
|
|
13389
|
-
style?: CSSProperties;
|
|
13390
|
-
}
|
|
13391
|
-
export type EuiButtonDisplayPropsForAnchor = PropsForAnchor<EuiButtonDisplayCommonProps, {
|
|
13392
|
-
buttonRef?: Ref<HTMLAnchorElement>;
|
|
13393
|
-
}>;
|
|
13394
|
-
export type EuiButtonDisplayPropsForButton = PropsForButton<EuiButtonDisplayCommonProps, {
|
|
13395
|
-
buttonRef?: Ref<HTMLButtonElement>;
|
|
13396
|
-
}>;
|
|
13397
|
-
export type Props = ExclusiveUnion<EuiButtonDisplayPropsForAnchor, EuiButtonDisplayPropsForButton>;
|
|
13398
|
-
export type EuiButtonDisplayProps = EuiButtonDisplayCommonProps & HTMLAttributes<HTMLElement> & {
|
|
13399
|
-
/**
|
|
13400
|
-
* Provide a valid element to render the element as
|
|
13401
|
-
*/
|
|
13402
|
-
element?: 'a' | 'button' | 'span' | 'label';
|
|
13403
|
-
};
|
|
13404
|
-
/**
|
|
13405
|
-
* EuiButtonDisplay is an internal-only component used for displaying
|
|
13406
|
-
* any element as a button.
|
|
13407
|
-
*/
|
|
13408
|
-
export const EuiButtonDisplay: React.ForwardRefExoticComponent<EuiButtonDisplayCommonProps & React.HTMLAttributes<HTMLElement> & {
|
|
13409
|
-
/**
|
|
13410
|
-
* Provide a valid element to render the element as
|
|
13411
|
-
*/
|
|
13412
|
-
element?: "a" | "button" | "label" | "span" | undefined;
|
|
13413
|
-
} & React.RefAttributes<HTMLElement>>;
|
|
13414
|
-
|
|
13415
13557
|
}
|
|
13416
13558
|
declare module '@elastic/eui/src/components/facet/facet_button' {
|
|
13417
|
-
import { FunctionComponent, HTMLAttributes,
|
|
13559
|
+
import { FunctionComponent, HTMLAttributes, ReactNode, RefCallback } from 'react';
|
|
13418
13560
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
13419
|
-
export interface EuiFacetButtonProps extends CommonProps,
|
|
13561
|
+
export interface EuiFacetButtonProps extends CommonProps, HTMLAttributes<HTMLButtonElement> {
|
|
13420
13562
|
buttonRef?: RefCallback<HTMLButtonElement>;
|
|
13421
13563
|
/**
|
|
13422
13564
|
* ReactNode to render as this component's content
|
|
@@ -13435,7 +13577,6 @@ declare module '@elastic/eui/src/components/facet/facet_button' {
|
|
|
13435
13577
|
* Changes visual of button to indicate it's currently selected
|
|
13436
13578
|
*/
|
|
13437
13579
|
isSelected?: boolean;
|
|
13438
|
-
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
13439
13580
|
/**
|
|
13440
13581
|
* Adds a notification indicator for displaying the quantity provided
|
|
13441
13582
|
*/
|
|
@@ -14518,7 +14659,7 @@ declare module '@elastic/eui/src/components/modal/modal_body' {
|
|
|
14518
14659
|
declare module '@elastic/eui/src/components/modal/confirm_modal' {
|
|
14519
14660
|
import React, { FunctionComponent, ReactNode } from 'react';
|
|
14520
14661
|
import { EuiModalProps } from '@elastic/eui/src/components/modal/modal';
|
|
14521
|
-
import {
|
|
14662
|
+
import { EuiButtonColor } from '@elastic/eui/src/components/button';
|
|
14522
14663
|
export interface EuiConfirmModalProps extends Omit<EuiModalProps, 'children' | 'initialFocus' | 'onClose' | 'title'> {
|
|
14523
14664
|
/**
|
|
14524
14665
|
* ReactNode to render as this component's content
|
|
@@ -14532,7 +14673,7 @@ declare module '@elastic/eui/src/components/modal/confirm_modal' {
|
|
|
14532
14673
|
confirmButtonDisabled?: boolean;
|
|
14533
14674
|
className?: string;
|
|
14534
14675
|
defaultFocusedButton?: typeof CONFIRM_BUTTON | typeof CANCEL_BUTTON;
|
|
14535
|
-
buttonColor?:
|
|
14676
|
+
buttonColor?: EuiButtonColor;
|
|
14536
14677
|
/**
|
|
14537
14678
|
* Sets the max-width of the modal.
|
|
14538
14679
|
* Set to `true` to use the default (`euiBreakpoints 'm'`),
|
|
@@ -14997,7 +15138,7 @@ declare module '@elastic/eui/src/components/page/page_content/page_content_body'
|
|
|
14997
15138
|
import { FunctionComponent, HTMLAttributes } from 'react';
|
|
14998
15139
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
14999
15140
|
import { _EuiPageRestrictWidth } from '@elastic/eui/src/components/page/_restrict_width';
|
|
15000
|
-
export const PADDING_SIZES: ("s" | "
|
|
15141
|
+
export const PADDING_SIZES: ("s" | "m" | "l" | "none")[];
|
|
15001
15142
|
export interface EuiPageContentBodyProps extends CommonProps, HTMLAttributes<HTMLDivElement>, _EuiPageRestrictWidth {
|
|
15002
15143
|
/**
|
|
15003
15144
|
* Adjust the padding.
|
|
@@ -15286,7 +15427,7 @@ declare module '@elastic/eui/src/components/page/page_section' {
|
|
|
15286
15427
|
declare module '@elastic/eui/src/components/page/page_side_bar/page_side_bar' {
|
|
15287
15428
|
import { FunctionComponent, HTMLAttributes } from 'react';
|
|
15288
15429
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
15289
|
-
export const PADDING_SIZES: ("s" | "
|
|
15430
|
+
export const PADDING_SIZES: ("s" | "m" | "l" | "none")[];
|
|
15290
15431
|
export interface EuiPageSideBarProps extends CommonProps, HTMLAttributes<HTMLDivElement> {
|
|
15291
15432
|
/**
|
|
15292
15433
|
* Adds `position: sticky`
|
|
@@ -15619,6 +15760,8 @@ declare module '@elastic/eui/src/components/page_template' {
|
|
|
15619
15760
|
}
|
|
15620
15761
|
declare module '@elastic/eui/src/global_styling/utility/utility' {
|
|
15621
15762
|
|
|
15763
|
+
import { UseEuiTheme } from '@elastic/eui/src/services/theme/hooks';
|
|
15764
|
+
export const globalStyles: (euiThemeContext: UseEuiTheme) => import("@emotion/utils").SerializedStyles;
|
|
15622
15765
|
export const EuiUtilityClasses: () => JSX.Element;
|
|
15623
15766
|
|
|
15624
15767
|
}
|
|
@@ -18217,9 +18360,9 @@ declare module '@elastic/eui/src/components/tour' {
|
|
|
18217
18360
|
declare module '@elastic/eui/src/components/basic_table/action_types' {
|
|
18218
18361
|
import { ReactElement, ReactNode } from 'react';
|
|
18219
18362
|
import { EuiIconType } from '@elastic/eui/src/components/icon/icon';
|
|
18220
|
-
import {
|
|
18221
|
-
import {
|
|
18222
|
-
import { ExclusiveUnion } from '@elastic/eui/src/components/common'; type IconFunction<T> = (item: T) => EuiIconType; type ButtonColor =
|
|
18363
|
+
import { EuiButtonIconProps } from '@elastic/eui/src/components/button/button_icon/button_icon';
|
|
18364
|
+
import { EuiButtonEmptyProps } from '@elastic/eui/src/components/button/button_empty';
|
|
18365
|
+
import { ExclusiveUnion } from '@elastic/eui/src/components/common'; type IconFunction<T> = (item: T) => EuiIconType; type ButtonColor = EuiButtonIconProps['color'] | EuiButtonEmptyProps['color']; type EuiButtonIconColorFunction<T> = (item: T) => ButtonColor;
|
|
18223
18366
|
export interface DefaultItemActionBase<T> {
|
|
18224
18367
|
/**
|
|
18225
18368
|
* The display name of the action (will be the button caption)
|
|
@@ -18251,7 +18394,7 @@ declare module '@elastic/eui/src/components/basic_table/action_types' {
|
|
|
18251
18394
|
* The type of action
|
|
18252
18395
|
*/
|
|
18253
18396
|
type?: 'button';
|
|
18254
|
-
color?:
|
|
18397
|
+
color?: EuiButtonEmptyProps['color'] | EuiButtonIconColorFunction<T>;
|
|
18255
18398
|
}
|
|
18256
18399
|
export interface DefaultItemIconButtonAction<T> extends DefaultItemActionBase<T> {
|
|
18257
18400
|
type: 'icon';
|
|
@@ -18262,7 +18405,7 @@ declare module '@elastic/eui/src/components/basic_table/action_types' {
|
|
|
18262
18405
|
/**
|
|
18263
18406
|
* Defines the color of the button
|
|
18264
18407
|
*/
|
|
18265
|
-
color?:
|
|
18408
|
+
color?: EuiButtonIconProps['color'] | EuiButtonIconColorFunction<T>;
|
|
18266
18409
|
}
|
|
18267
18410
|
export type DefaultItemAction<T> = ExclusiveUnion<DefaultItemEmptyButtonAction<T>, DefaultItemIconButtonAction<T>>;
|
|
18268
18411
|
export interface CustomItemAction<T> {
|
|
@@ -18506,7 +18649,7 @@ declare module '@elastic/eui/src/components/basic_table/collapsed_item_actions'
|
|
|
18506
18649
|
togglePopover: () => void;
|
|
18507
18650
|
closePopover: () => void;
|
|
18508
18651
|
onPopoverBlur: () => void;
|
|
18509
|
-
registerPopoverDiv: (popoverDiv: HTMLDivElement) => void;
|
|
18652
|
+
registerPopoverDiv: (popoverDiv: HTMLDivElement | null) => void;
|
|
18510
18653
|
componentWillUnmount(): void;
|
|
18511
18654
|
onClickItem: (onClickAction: (() => void) | undefined) => void;
|
|
18512
18655
|
render(): JSX.Element;
|