remove all references to v7 theme (#113570)

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Spencer 2021-10-29 12:28:42 -05:00 committed by GitHub
parent b481bff349
commit 30872e9063
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
89 changed files with 164 additions and 657 deletions

View file

@ -6,6 +6,10 @@
* Side Public License, v 1.
*/
/**
* @typedef {'v8'} ThemeVersion
*/
const Path = require('path');
/**
@ -25,23 +29,27 @@ exports.dllFilename = 'kbn-ui-shared-deps-npm.dll.js';
/**
* Filename of the light-theme css file in the distributable directory
* @param {ThemeVersion} themeVersion
*/
exports.lightCssDistFilename = 'kbn-ui-shared-deps-npm.v7.light.css';
exports.lightCssDistFilename = (themeVersion) => {
if (themeVersion !== 'v8') {
throw new Error(`unsupported theme version [${themeVersion}]`);
}
/**
* Filename of the light-theme css file in the distributable directory
*/
exports.lightV8CssDistFilename = 'kbn-ui-shared-deps-npm.v8.light.css';
return 'kbn-ui-shared-deps-npm.v8.light.css';
};
/**
* Filename of the dark-theme css file in the distributable directory
* @param {ThemeVersion} themeVersion
*/
exports.darkCssDistFilename = 'kbn-ui-shared-deps-npm.v7.dark.css';
exports.darkCssDistFilename = (themeVersion) => {
if (themeVersion !== 'v8') {
throw new Error(`unsupported theme version [${themeVersion}]`);
}
/**
* Filename of the dark-theme css file in the distributable directory
*/
exports.darkV8CssDistFilename = 'kbn-ui-shared-deps-npm.v8.dark.css';
return 'kbn-ui-shared-deps-npm.v8.dark.css';
};
/**
* Webpack loader for configuring the public path lookup from `window.__kbnPublicPath__`.

View file

@ -44,8 +44,6 @@ module.exports = (_, argv) => {
'@elastic/eui/dist/eui_charts_theme',
'@elastic/eui/lib/services',
'@elastic/eui/lib/services/format',
'@elastic/eui/dist/eui_theme_light.json',
'@elastic/eui/dist/eui_theme_dark.json',
'@elastic/eui/dist/eui_theme_amsterdam_light.json',
'@elastic/eui/dist/eui_theme_amsterdam_dark.json',
'@elastic/numeral',
@ -71,8 +69,6 @@ module.exports = (_, argv) => {
'styled-components',
'tslib',
],
'kbn-ui-shared-deps-npm.v7.dark': ['@elastic/eui/dist/eui_theme_dark.css'],
'kbn-ui-shared-deps-npm.v7.light': ['@elastic/eui/dist/eui_theme_light.css'],
'kbn-ui-shared-deps-npm.v8.dark': ['@elastic/eui/dist/eui_theme_amsterdam_dark.css'],
'kbn-ui-shared-deps-npm.v8.light': ['@elastic/eui/dist/eui_theme_amsterdam_light.css'],
},