diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 31bcc2356bb28..ebe311c57f01e 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -772,7 +772,6 @@ src/plugins/ui_actions_enhanced @elastic/appex-sharedux examples/ui_action_examples @elastic/appex-sharedux examples/ui_actions_explorer @elastic/appex-sharedux src/plugins/ui_actions @elastic/appex-sharedux -packages/kbn-ui-framework @elastic/kibana-design test/plugin_functional/plugins/ui_settings_plugin @elastic/kibana-core packages/kbn-ui-shared-deps-npm @elastic/kibana-operations packages/kbn-ui-shared-deps-src @elastic/kibana-operations diff --git a/docs/developer/getting-started/monorepo-packages.asciidoc b/docs/developer/getting-started/monorepo-packages.asciidoc index a9dc912ab58e4..50095f8b7018f 100644 --- a/docs/developer/getting-started/monorepo-packages.asciidoc +++ b/docs/developer/getting-started/monorepo-packages.asciidoc @@ -90,7 +90,6 @@ yarn kbn watch - @kbn/test - @kbn/test-subj-selector - @kbn/tinymath -- @kbn/ui-framework - @kbn/ui-shared-deps-npm - @kbn/ui-shared-deps-src - @kbn/utility-types diff --git a/package.json b/package.json index bdfa73e8a9426..4a42e8a4424a0 100644 --- a/package.json +++ b/package.json @@ -764,7 +764,6 @@ "@kbn/ui-actions-examples-plugin": "link:examples/ui_action_examples", "@kbn/ui-actions-explorer-plugin": "link:examples/ui_actions_explorer", "@kbn/ui-actions-plugin": "link:src/plugins/ui_actions", - "@kbn/ui-framework": "link:packages/kbn-ui-framework", "@kbn/ui-settings-plugin": "link:test/plugin_functional/plugins/ui_settings_plugin", "@kbn/ui-shared-deps-npm": "link:packages/kbn-ui-shared-deps-npm", "@kbn/ui-shared-deps-src": "link:packages/kbn-ui-shared-deps-src", diff --git a/packages/core/apps/core-apps-server-internal/src/core_app.ts b/packages/core/apps/core-apps-server-internal/src/core_app.ts index 4d303d24d37a1..3de295874d3fe 100644 --- a/packages/core/apps/core-apps-server-internal/src/core_app.ts +++ b/packages/core/apps/core-apps-server-internal/src/core_app.ts @@ -271,10 +271,5 @@ export class CoreAppsService { '/ui/{path*}', fromRoot('node_modules/@kbn/core-apps-server-internal/assets') ); - - core.http.registerStaticDir( - '/node_modules/@kbn/ui-framework/dist/{path*}', - fromRoot('node_modules/@kbn/ui-framework/dist') - ); } } diff --git a/packages/core/rendering/core-rendering-server-internal/src/render_utils.test.ts b/packages/core/rendering/core-rendering-server-internal/src/render_utils.test.ts index b8acdfb96e367..7fa091d6381fb 100644 --- a/packages/core/rendering/core-rendering-server-internal/src/render_utils.test.ts +++ b/packages/core/rendering/core-rendering-server-internal/src/render_utils.test.ts @@ -23,7 +23,6 @@ describe('getStylesheetPaths', () => { Array [ "/base-path/17/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.v8.dark.css", "/base-path/17/bundles/kbn-ui-shared-deps-src/kbn-ui-shared-deps-src.css", - "/base-path/node_modules/@kbn/ui-framework/dist/kui_dark.min.css", "/base-path/ui/legacy_dark_theme.min.css", ] `); @@ -44,7 +43,6 @@ describe('getStylesheetPaths', () => { Array [ "/base-path/69/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.v8.light.css", "/base-path/69/bundles/kbn-ui-shared-deps-src/kbn-ui-shared-deps-src.css", - "/base-path/node_modules/@kbn/ui-framework/dist/kui_light.min.css", "/base-path/ui/legacy_light_theme.min.css", ] `); diff --git a/packages/core/rendering/core-rendering-server-internal/src/render_utils.ts b/packages/core/rendering/core-rendering-server-internal/src/render_utils.ts index 5d8eca5b201e2..01c96570bd09b 100644 --- a/packages/core/rendering/core-rendering-server-internal/src/render_utils.ts +++ b/packages/core/rendering/core-rendering-server-internal/src/render_utils.ts @@ -41,7 +41,6 @@ export const getStylesheetPaths = ({ themeVersion )}`, `${regularBundlePath}/kbn-ui-shared-deps-src/${UiSharedDepsSrc.cssDistFilename}`, - `${basePath}/node_modules/@kbn/ui-framework/dist/kui_dark.min.css`, `${basePath}/ui/legacy_dark_theme.min.css`, ] : [ @@ -49,7 +48,6 @@ export const getStylesheetPaths = ({ themeVersion )}`, `${regularBundlePath}/kbn-ui-shared-deps-src/${UiSharedDepsSrc.cssDistFilename}`, - `${basePath}/node_modules/@kbn/ui-framework/dist/kui_light.min.css`, `${basePath}/ui/legacy_light_theme.min.css`, ]), ]; diff --git a/packages/kbn-ui-framework/README.md b/packages/kbn-ui-framework/README.md deleted file mode 100644 index 820b272cd65cb..0000000000000 --- a/packages/kbn-ui-framework/README.md +++ /dev/null @@ -1,27 +0,0 @@ -# Deprecation notice - -This package is set for deprecation and is actively being removed from Kibana. - -The Kibana UI framework is a collection of React elements and Sass styles used to build legacy layouts in Kibana. It was -primarily used during the 5.x and 6.x versions and is replaced by the [Elastic UI framework](https://elastic.github.io/eui/). -Portions of Kibana still utilize this package and until it is fully removed you can still compile and view the -documentation using the instructions below. - -## Compiling KUI and viewing the docs - -Compile the CSS with `./node_modules/grunt/bin/grunt uiFramework:compileCss` (OS X) or -`.\node_modules\grunt\bin\grunt uiFramework:compileCss` (Windows). - -You can view interactive documentation by running `yarn uiFramework:start` and then visiting -[http://localhost:8020/](http://localhost:8020/). This will also start watching the SCSS files, and will recompile the CSS -automatically for you when you make changes. - -You can run `node scripts/jest --watch` to watch for changes and run the tests as you code. - -You can run `node scripts/jest --coverage` to generate a code coverage report to see how -fully-tested the code is. - -You can run `node scripts/jest --config path/to/plugin/jest.config.js --coverage` to generate -a code coverage report for a single plugin. - -See the documentation in [`scripts/jest.js`](../scripts/jest.js) for more options. \ No newline at end of file diff --git a/packages/kbn-ui-framework/dist/kui_dark.css b/packages/kbn-ui-framework/dist/kui_dark.css deleted file mode 100644 index aa16bcdb34d36..0000000000000 --- a/packages/kbn-ui-framework/dist/kui_dark.css +++ /dev/null @@ -1,2470 +0,0 @@ -/* 1 */ -/* 1 */ -/** - * 1. Extend beta badges to at least 40% of the container's width - * 2. Fix for IE to ensure badges are visible outside of a