diff --git a/src/plugins/kibana_react/common/index.ts b/src/plugins/kibana_react/common/index.ts index eb8059df235da..6686209e56c36 100644 --- a/src/plugins/kibana_react/common/index.ts +++ b/src/plugins/kibana_react/common/index.ts @@ -6,7 +6,13 @@ * Side Public License, v 1. */ -// TODO: https://github.com/elastic/kibana/issues/109898 -/* eslint-disable @kbn/eslint/no_export_all */ - -export * from './eui_styled_components'; +export { + createGlobalStyle, + css, + euiStyled, + EuiTheme, + EuiThemeProvider, + EuiThemeProviderDecorator, + keyframes, + withTheme, +} from './eui_styled_components'; diff --git a/src/plugins/kibana_react/public/index.ts b/src/plugins/kibana_react/public/index.ts index 2b39a6aa0e1fb..e5f8e7c6e7a8a 100644 --- a/src/plugins/kibana_react/public/index.ts +++ b/src/plugins/kibana_react/public/index.ts @@ -6,29 +6,83 @@ * Side Public License, v 1. */ -// TODO: https://github.com/elastic/kibana/issues/109898 -/* eslint-disable @kbn/eslint/no_export_all */ - -export * from './code_editor'; -export * from './url_template_editor'; -export * from './exit_full_screen_button'; -export * from './context'; -export * from './overview_page'; -export * from './overlays'; -export * from './ui_settings'; -export * from './table_list_view'; -export * from './toolbar_button'; -export * from './split_panel'; -export * from './react_router_navigate'; -export * from './page_template'; +export { + CodeEditorProps, + CodeEditor, + CodeEditorField, + CssLang, + MarkdownLang, + YamlLang, + HandlebarsLang, + HJsonLang, +} from './code_editor'; + +export { + UrlTemplateEditorVariable, + UrlTemplateEditorProps, + UrlTemplateEditor, +} from './url_template_editor'; + +export { ExitFullScreenButtonProps, ExitFullScreenButton } from './exit_full_screen_button'; + +export type { KibanaReactContext, KibanaReactContextValue, KibanaServices } from './context'; +export { + context, + createKibanaReactContext, + KibanaContextProvider, + useKibana, + withKibana, +} from './context'; + +export { overviewPageActions, OverviewPageFooter } from './overview_page'; + +export type { KibanaReactOverlays } from './overlays'; +export { createReactOverlays } from './overlays'; + +export { useUiSetting, useUiSetting$ } from './ui_settings'; + +export type { TableListViewProps, TableListViewState } from './table_list_view'; +export { TableListView } from './table_list_view'; + +export type { ToolbarButtonProps } from './toolbar_button'; +export { POSITIONS, WEIGHTS, TOOLBAR_BUTTON_SIZES, ToolbarButton } from './toolbar_button'; + +export { Panel, PanelsContainer } from './split_panel'; + +export { reactRouterNavigate, reactRouterOnClickHandler } from './react_router_navigate'; + +export type { + KibanaPageTemplateProps, + NoDataPageActions, + NoDataPageActionsProps, + NoDataPageProps, + ElasticAgentCardProps, +} from './page_template'; +export { + KibanaPageTemplate, + KibanaPageTemplateSolutionNavAvatar, + NO_DATA_PAGE_MAX_WIDTH, + NO_DATA_PAGE_TEMPLATE_PROPS, + NO_DATA_RECOMMENDED, + NoDataPage, + ElasticAgentCard, + NoDataCard, +} from './page_template'; + export type { Value } from './validated_range'; export { ValidatedDualRange } from './validated_range'; -export * from './notifications'; + +export { ToastInput, KibanaReactNotifications, createNotifications } from './notifications'; + export { Markdown, MarkdownSimple } from './markdown'; + export { reactToUiComponent, uiToReactComponent } from './adapters'; + export { toMountPoint, MountPointPortal } from './util'; export type { ToMountPointOptions } from './util'; + export { RedirectAppLinks } from './app_links'; + export { wrapWithTheme, KibanaThemeProvider } from './theme'; /** dummy plugin, we just want kibanaReact to have its own bundle */