diff --git a/elastic_eui_flyout_system.tgz b/elastic_eui_flyout_system.tgz
new file mode 100644
index 0000000000000..16a259e0c8848
Binary files /dev/null and b/elastic_eui_flyout_system.tgz differ
diff --git a/elastic_eui_theme_borealis_flyout_system.tgz b/elastic_eui_theme_borealis_flyout_system.tgz
new file mode 100644
index 0000000000000..9a69c8f74a1f9
Binary files /dev/null and b/elastic_eui_theme_borealis_flyout_system.tgz differ
diff --git a/elastic_eui_theme_common_flyout_system.tgz b/elastic_eui_theme_common_flyout_system.tgz
new file mode 100644
index 0000000000000..172c7bab59810
Binary files /dev/null and b/elastic_eui_theme_common_flyout_system.tgz differ
diff --git a/package.json b/package.json
index 985808d4b1b4f..319388aa9df7e 100644
--- a/package.json
+++ b/package.json
@@ -129,8 +129,9 @@
"@elastic/ecs": "^9.0.0",
"@elastic/elasticsearch": "9.1.1",
"@elastic/ems-client": "8.6.3",
- "@elastic/eui": "107.0.1",
- "@elastic/eui-theme-borealis": "3.6.0",
+ "@elastic/eui": "file:./elastic_eui_flyout_system.tgz",
+ "@elastic/eui-theme-borealis": "file:./elastic_eui_theme_borealis_flyout_system.tgz",
+ "@elastic/eui-theme-common": "file:./elastic_eui_theme_common_flyout_system.tgz",
"@elastic/filesaver": "1.1.2",
"@elastic/kibana-d3-color": "npm:@elastic/kibana-d3-color@2.0.1",
"@elastic/monaco-esql": "^3.1.11",
diff --git a/packages/kbn-dependency-ownership/src/rule.ts b/packages/kbn-dependency-ownership/src/rule.ts
index a720ba1f01ad0..7d17ef626bbab 100644
--- a/packages/kbn-dependency-ownership/src/rule.ts
+++ b/packages/kbn-dependency-ownership/src/rule.ts
@@ -50,6 +50,7 @@ export function packageFilter(pkg: string) {
// The EUI team owns the EUI packages, and are not covered by renovate
pkg !== '@elastic/eui' &&
pkg !== '@elastic/eui-theme-borealis' &&
+ pkg !== '@elastic/eui-theme-common' &&
// Operations owns node, and is not covered by renovate
pkg !== '@types/node'
);
diff --git a/packages/kbn-optimizer/README.mdx b/packages/kbn-optimizer/README.mdx
index d95b1b735ea55..d03f02e5416fe 100644
--- a/packages/kbn-optimizer/README.mdx
+++ b/packages/kbn-optimizer/README.mdx
@@ -51,16 +51,16 @@ Any import in a bundle which resolves into another bundles "context" directory,
## Themes
-SASS imports in bundles are automatically converted to CSS for one or more themes. In development we build the `v8light` and `v8dark` themes by default to improve build performance. When producing distributable bundles the default shifts to `*` so that the distributable bundles will include all themes, preventing the bundles from needing to be rebuilt when users change the active theme in Kibana's advanced settings.
+SASS imports in bundles are automatically converted to CSS for one or more themes. In development we build the `borealislight` and `borealisdark` themes by default to improve build performance. When producing distributable bundles the default shifts to `*` so that the distributable bundles will include all themes, preventing the bundles from needing to be rebuilt when users change the active theme in Kibana's advanced settings.
To customize the themes that are built for development you can specify the `KBN_OPTIMIZER_THEMES` environment variable to one or more theme tags, or use `*` to build styles for all themes. Unfortunately building more than one theme significantly impacts build performance, so try to be strategic about which themes you build.
-Currently supported theme tags: `v8light`, `v8dark`
+Currently supported theme tags: `borealislight`, `borealisdark`
Examples:
```sh
# start Kibana with only a single theme
-KBN_OPTIMIZER_THEMES=v8light yarn start
+KBN_OPTIMIZER_THEMES=borealislight yarn start
# start Kibana with all the themes
KBN_OPTIMIZER_THEMES=* yarn start
diff --git a/src/core/packages/i18n/browser-internal/src/__snapshots__/i18n_service.test.tsx.snap b/src/core/packages/i18n/browser-internal/src/__snapshots__/i18n_service.test.tsx.snap
index 6c40441f3d1b0..4a618cbc18ee0 100644
--- a/src/core/packages/i18n/browser-internal/src/__snapshots__/i18n_service.test.tsx.snap
+++ b/src/core/packages/i18n/browser-internal/src/__snapshots__/i18n_service.test.tsx.snap
@@ -127,6 +127,8 @@ exports[`#start() returns \`Context\` component 1`] = `
\\"euiFlyout.screenReaderModalDialog\\": \\"You are in a modal dialog. Press Escape or tap/click outside the dialog on the shadowed overlay to close.\\",
\\"euiFlyout.screenReaderNonModalDialog\\": \\"You are in a non-modal dialog. To close the dialog, press Escape.\\",
\\"euiFlyout.screenReaderFocusTrapShards\\": \\"You can still continue tabbing through other global page landmarks.\\",
+ \\"euiFlyoutMenu.back\\": \\"Back\\",
+ \\"euiFlyoutMenu.history\\": \\"History\\",
\\"euiForm.addressFormErrors\\": \\"Please address the highlighted errors.\\",
\\"euiFormControlLayoutClearButton.label\\": \\"Clear input\\",
\\"euiFormControlLayoutDelimited.delimiterLabel\\": \\"to\\",
diff --git a/src/core/packages/i18n/browser-internal/src/i18n_eui_mapping.tsx b/src/core/packages/i18n/browser-internal/src/i18n_eui_mapping.tsx
index 25f0d1c9705fb..57471e3b7e7a4 100644
--- a/src/core/packages/i18n/browser-internal/src/i18n_eui_mapping.tsx
+++ b/src/core/packages/i18n/browser-internal/src/i18n_eui_mapping.tsx
@@ -799,6 +799,12 @@ export const getEuiContextMapping = (): EuiTokensObject => {
defaultMessage: 'You can still continue tabbing through other global page landmarks.',
}
),
+ 'euiFlyoutMenu.back': i18n.translate('core.euiFlyoutMenu.back', {
+ defaultMessage: 'Back',
+ }),
+ 'euiFlyoutMenu.history': i18n.translate('core.euiFlyoutMenu.history', {
+ defaultMessage: 'History',
+ }),
'euiForm.addressFormErrors': i18n.translate('core.euiForm.addressFormErrors', {
defaultMessage: 'Please address the highlighted errors.',
}),
diff --git a/src/core/packages/injected-metadata/browser-mocks/src/injected_metadata_service.mock.ts b/src/core/packages/injected-metadata/browser-mocks/src/injected_metadata_service.mock.ts
index 437bc7c15042e..032b3819ee7bd 100644
--- a/src/core/packages/injected-metadata/browser-mocks/src/injected_metadata_service.mock.ts
+++ b/src/core/packages/injected-metadata/browser-mocks/src/injected_metadata_service.mock.ts
@@ -43,7 +43,7 @@ const createSetupContractMock = () => {
} as any),
getTheme: jest.fn().mockReturnValue({
darkMode: false,
- name: 'amsterdam',
+ name: 'borealis',
version: 'v8',
stylesheetPaths: {
default: ['light-1.css'],
diff --git a/src/core/packages/notifications/browser-internal/src/toasts/__snapshots__/error_toast.test.tsx.snap b/src/core/packages/notifications/browser-internal/src/toasts/__snapshots__/error_toast.test.tsx.snap
index e24dff447febf..8a3f032f3d298 100644
--- a/src/core/packages/notifications/browser-internal/src/toasts/__snapshots__/error_toast.test.tsx.snap
+++ b/src/core/packages/notifications/browser-internal/src/toasts/__snapshots__/error_toast.test.tsx.snap
@@ -1,3 +1,3 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
-exports[`renders matching snapshot 1`] = `"
This is the toast message
"`;
+exports[`renders matching snapshot 1`] = `"
This is the toast message
"`;
diff --git a/src/core/packages/rendering/server-internal/src/bootstrap/__snapshots__/render_template.test.ts.snap b/src/core/packages/rendering/server-internal/src/bootstrap/__snapshots__/render_template.test.ts.snap
index 7d03a25563705..5279d90abee23 100644
--- a/src/core/packages/rendering/server-internal/src/bootstrap/__snapshots__/render_template.test.ts.snap
+++ b/src/core/packages/rendering/server-internal/src/bootstrap/__snapshots__/render_template.test.ts.snap
@@ -180,7 +180,7 @@ var kbnCsp = JSON.parse(document.querySelector('kbn-csp').getAttribute('data'));
var kbnHardenPrototypes = JSON.parse(document.querySelector('kbn-prototype-hardening').getAttribute('data'));
window.__kbnHardenPrototypes__ = kbnHardenPrototypes.hardenPrototypes;
window.__kbnStrictCsp__ = kbnCsp.strictCsp;
-window.__kbnThemeTag__ = 'v8light';
+window.__kbnThemeTag__ = 'borealislight';
window.__kbnPublicPath__ = {\\"foo\\": \\"bar\\"};
window.__kbnBundles__ = kbnBundlesLoader();
diff --git a/src/core/packages/rendering/server-internal/src/bootstrap/bootstrap_renderer.test.ts b/src/core/packages/rendering/server-internal/src/bootstrap/bootstrap_renderer.test.ts
index 40d031cc9cd75..02c2b75b76b83 100644
--- a/src/core/packages/rendering/server-internal/src/bootstrap/bootstrap_renderer.test.ts
+++ b/src/core/packages/rendering/server-internal/src/bootstrap/bootstrap_renderer.test.ts
@@ -395,7 +395,7 @@ describe('bootstrapRenderer', () => {
})
);
- themeName$.next('amsterdam');
+ themeName$.next('borealis');
await renderer({
request,
uiSettingsClient,
@@ -403,7 +403,7 @@ describe('bootstrapRenderer', () => {
expect(renderTemplateMock).toHaveBeenCalledWith(
expect.objectContaining({
- themeTagName: 'v8',
+ themeTagName: 'borealis',
})
);
});
diff --git a/src/core/packages/rendering/server-internal/src/bootstrap/bootstrap_renderer.ts b/src/core/packages/rendering/server-internal/src/bootstrap/bootstrap_renderer.ts
index cf20a3709ed2c..7d717858a23ba 100644
--- a/src/core/packages/rendering/server-internal/src/bootstrap/bootstrap_renderer.ts
+++ b/src/core/packages/rendering/server-internal/src/bootstrap/bootstrap_renderer.ts
@@ -83,9 +83,7 @@ export const bootstrapRendererFactory: BootstrapRendererFactory = ({
}
const colorMode = darkMode === false ? 'light' : darkMode === true ? 'dark' : 'system';
- // Amsterdam theme is called `v8` internally
- // and should be kept this way for compatibility reasons.
- const themeTagName = themeName === 'amsterdam' ? 'v8' : themeName;
+ const themeTagName = themeName;
const bundlesHref = getBundlesHref(baseHref);
const bundlePaths = getPluginsBundlePaths({
diff --git a/src/core/packages/rendering/server-internal/src/bootstrap/render_template.test.ts b/src/core/packages/rendering/server-internal/src/bootstrap/render_template.test.ts
index 926e15c912bc9..a4894a4c246e4 100644
--- a/src/core/packages/rendering/server-internal/src/bootstrap/render_template.test.ts
+++ b/src/core/packages/rendering/server-internal/src/bootstrap/render_template.test.ts
@@ -11,7 +11,7 @@ import { renderTemplate } from './render_template';
function mockParams() {
return {
- themeTagName: 'v8',
+ themeTagName: 'borealis',
colorMode: 'light',
jsDependencyPaths: ['/js-1', '/js-2'],
styleSheetPaths: ['/style-1', '/style-2'],
diff --git a/src/core/packages/rendering/server-internal/src/render_utils.ts b/src/core/packages/rendering/server-internal/src/render_utils.ts
index 876baaea315b0..f0baab119ab43 100644
--- a/src/core/packages/rendering/server-internal/src/render_utils.ts
+++ b/src/core/packages/rendering/server-internal/src/render_utils.ts
@@ -42,11 +42,7 @@ export const getScriptPaths = ({
themeName: ThemeName;
}) => {
if (darkMode === 'system') {
- return [
- `${baseHref}/ui/bootstrap_system_theme_${
- themeName === 'borealis' ? 'borealis' : 'amsterdam'
- }.js`,
- ];
+ return [`${baseHref}/ui/bootstrap_system_theme_borealis.js`];
} else {
return [];
}
diff --git a/src/core/packages/rendering/server-internal/src/rendering_service.test.ts b/src/core/packages/rendering/server-internal/src/rendering_service.test.ts
index 71356e29bd6ec..dd195757daa80 100644
--- a/src/core/packages/rendering/server-internal/src/rendering_service.test.ts
+++ b/src/core/packages/rendering/server-internal/src/rendering_service.test.ts
@@ -605,7 +605,7 @@ describe('RenderingService', () => {
});
describe('start()', () => {
- it('subscribes to the featureFlags.setStringValue$ observable and updates theme name accordingly', async () => {
+ it('subscribes to the featureFlags.setStringValue$', async () => {
// setup and render added to assert the current theme name
const { render } = await service.setup(mockRenderingSetupDeps);
const themeName$ = new BehaviorSubject(DEFAULT_THEME_NAME);
@@ -631,15 +631,11 @@ describe('RenderingService', () => {
globalClient: uiSettingsServiceMock.createClient(),
};
- getIsThemeBundledMock.mockImplementation((name) => ['borealis', 'amsterdam'].includes(name));
+ getIsThemeBundledMock.mockImplementation((name) => name === 'borealis');
- let renderResult = await render(createKibanaRequest(), uiSettings);
+ const renderResult = await render(createKibanaRequest(), uiSettings);
expect(getIsThemeBundledMock).toHaveBeenCalledWith('borealis');
expect(renderResult).toContain(',"name":"borealis"');
-
- themeName$.next('amsterdam');
- renderResult = await render(createKibanaRequest(), uiSettings);
- expect(renderResult).toContain(',"name":"amsterdam"');
});
it('falls back to the default theme if theme is not bundled', async () => {
diff --git a/src/core/packages/rendering/server-internal/src/theme.test.ts b/src/core/packages/rendering/server-internal/src/theme.test.ts
index e7a95548d84b4..c17205dfac860 100644
--- a/src/core/packages/rendering/server-internal/src/theme.test.ts
+++ b/src/core/packages/rendering/server-internal/src/theme.test.ts
@@ -10,24 +10,6 @@
import { getThemeTag, isThemeBundled } from './theme';
describe('getThemeTag', () => {
- it('returns the correct value for name:amsterdam and darkMode:false', () => {
- expect(
- getThemeTag({
- name: 'v8',
- darkMode: false,
- })
- ).toEqual('v8light');
- });
-
- it('returns the correct value for name:amsterdam and darkMode:true', () => {
- expect(
- getThemeTag({
- name: 'v8',
- darkMode: true,
- })
- ).toEqual('v8dark');
- });
-
it('returns the correct value for other other theme names and darkMode:false', () => {
expect(
getThemeTag({
@@ -59,14 +41,12 @@ describe('isThemeBundled', () => {
});
it('returns true when both light and dark mode theme tags are included in KBN_OPTIMIZER_THEMES', () => {
- process.env.KBN_OPTIMIZER_THEMES = 'v8light,v8dark,borealislight,borealisdark';
- expect(isThemeBundled('amsterdam')).toEqual(true);
+ process.env.KBN_OPTIMIZER_THEMES = 'borealislight,borealisdark';
expect(isThemeBundled('borealis')).toEqual(true);
});
it('returns false when either theme tag is missing in KBN_OPTIMIZER_THEMES for given theme name', () => {
- process.env.KBN_OPTIMIZER_THEMES = 'v8light,borealisdark,borealisdark';
- expect(isThemeBundled('amsterdam')).toEqual(false);
+ process.env.KBN_OPTIMIZER_THEMES = 'borealisdark,borealisdark';
expect(isThemeBundled('borealis')).toEqual(false);
});
diff --git a/src/core/packages/rendering/server-internal/src/theme.ts b/src/core/packages/rendering/server-internal/src/theme.ts
index 7577944780cb1..22acd7a24d6c1 100644
--- a/src/core/packages/rendering/server-internal/src/theme.ts
+++ b/src/core/packages/rendering/server-internal/src/theme.ts
@@ -11,12 +11,6 @@ import type { ThemeName, ThemeTag } from '@kbn/core-ui-settings-common';
import { parseThemeTags } from '@kbn/core-ui-settings-common';
export const getThemeTag = ({ name, darkMode }: { name: string; darkMode: boolean }) => {
- // Amsterdam theme is called `v8` internally
- // and should be kept this way for compatibility reasons.
- if (name === 'amsterdam') {
- name = 'v8';
- }
-
return `${name}${darkMode ? 'dark' : 'light'}`;
};
diff --git a/src/core/packages/rendering/server-internal/src/views/fonts.tsx b/src/core/packages/rendering/server-internal/src/views/fonts.tsx
index 7eca4cfbd2a72..943d2d3e1ea3f 100644
--- a/src/core/packages/rendering/server-internal/src/views/fonts.tsx
+++ b/src/core/packages/rendering/server-internal/src/views/fonts.tsx
@@ -28,7 +28,7 @@ interface FontFace {
}
/**
- * `Inter` is the latest version of `Inter UI` and used specifically in v8 of Kibana from EUI Amsterdam
+ * `Inter` is the latest version of `Inter UI`
*/
const getInter = (url: string): FontFace => {
return {
diff --git a/src/core/packages/theme/browser-internal/src/theme_service.test.ts b/src/core/packages/theme/browser-internal/src/theme_service.test.ts
index 575d98fe40c8d..ab3a81dc9017c 100644
--- a/src/core/packages/theme/browser-internal/src/theme_service.test.ts
+++ b/src/core/packages/theme/browser-internal/src/theme_service.test.ts
@@ -45,7 +45,7 @@ describe('ThemeService', () => {
beforeEach(() => {
injectedMetadata.getTheme.mockReturnValue({
version: 'v8',
- name: 'amsterdam',
+ name: 'borealis',
darkMode: false,
stylesheetPaths: {
dark: ['dark-1.css'],
@@ -59,13 +59,13 @@ describe('ThemeService', () => {
const theme = await firstValueFrom(theme$);
expect(theme).toEqual({
darkMode: false,
- name: 'amsterdam',
+ name: 'borealis',
});
});
it('sets __kbnThemeTag__ to the correct value', async () => {
themeService.setup({ injectedMetadata });
- expect(window.__kbnThemeTag__).toEqual('v8light');
+ expect(window.__kbnThemeTag__).toEqual('borealislight');
});
it('calls createStyleSheet with the correct parameters', async () => {
@@ -90,7 +90,7 @@ describe('ThemeService', () => {
beforeEach(() => {
injectedMetadata.getTheme.mockReturnValue({
version: 'v8',
- name: 'amsterdam',
+ name: 'borealis',
darkMode: true,
stylesheetPaths: {
dark: ['dark-1.css'],
@@ -104,13 +104,13 @@ describe('ThemeService', () => {
const theme = await firstValueFrom(theme$);
expect(theme).toEqual({
darkMode: true,
- name: 'amsterdam',
+ name: 'borealis',
});
});
it('sets __kbnThemeTag__ to the correct value', async () => {
themeService.setup({ injectedMetadata });
- expect(window.__kbnThemeTag__).toEqual('v8dark');
+ expect(window.__kbnThemeTag__).toEqual('borealisdark');
});
it('calls createStyleSheet with the correct parameters', async () => {
@@ -135,7 +135,7 @@ describe('ThemeService', () => {
beforeEach(() => {
injectedMetadata.getTheme.mockReturnValue({
version: 'v8',
- name: 'amsterdam',
+ name: 'borealis',
darkMode: 'system',
stylesheetPaths: {
dark: ['dark-1.css'],
@@ -155,10 +155,10 @@ describe('ThemeService', () => {
expect(theme).toEqual({
darkMode: false,
- name: 'amsterdam',
+ name: 'borealis',
});
- expect(window.__kbnThemeTag__).toEqual('v8light');
+ expect(window.__kbnThemeTag__).toEqual('borealislight');
expect(setDarkModeMock).toHaveBeenCalledTimes(1);
expect(setDarkModeMock).toHaveBeenCalledWith(false);
@@ -183,10 +183,10 @@ describe('ThemeService', () => {
expect(theme).toEqual({
darkMode: false,
- name: 'amsterdam',
+ name: 'borealis',
});
- expect(window.__kbnThemeTag__).toEqual('v8light');
+ expect(window.__kbnThemeTag__).toEqual('borealislight');
expect(setDarkModeMock).toHaveBeenCalledTimes(1);
expect(setDarkModeMock).toHaveBeenCalledWith(false);
@@ -203,10 +203,10 @@ describe('ThemeService', () => {
expect(theme).toEqual({
darkMode: true,
- name: 'amsterdam',
+ name: 'borealis',
});
- expect(window.__kbnThemeTag__).toEqual('v8dark');
+ expect(window.__kbnThemeTag__).toEqual('borealisdark');
expect(setDarkModeMock).toHaveBeenCalledTimes(1);
expect(setDarkModeMock).toHaveBeenCalledWith(true);
@@ -229,14 +229,14 @@ describe('ThemeService', () => {
expect(await firstValueFrom(theme$)).toEqual({
darkMode: false,
});
- expect(window.__kbnThemeTag__).toEqual('v8light');
+ expect(window.__kbnThemeTag__).toEqual('borealislight');
handler!(true);
expect(await firstValueFrom(theme$)).toEqual({
darkMode: true,
});
- expect(window.__kbnThemeTag__).toEqual('v8dark');
+ expect(window.__kbnThemeTag__).toEqual('borealisdark');
});
});
});
@@ -252,7 +252,7 @@ describe('ThemeService', () => {
it('exposes a `theme$` observable with the values provided by the injected metadata', async () => {
injectedMetadata.getTheme.mockReturnValue({
version: 'v8',
- name: 'amsterdam',
+ name: 'borealis',
darkMode: true,
stylesheetPaths: {
dark: [],
@@ -264,7 +264,7 @@ describe('ThemeService', () => {
const theme = await firstValueFrom(theme$);
expect(theme).toEqual({
darkMode: true,
- name: 'amsterdam',
+ name: 'borealis',
});
});
});
diff --git a/src/core/packages/theme/browser-internal/src/theme_service.ts b/src/core/packages/theme/browser-internal/src/theme_service.ts
index e79a19550bb8d..edbccebcc36ed 100644
--- a/src/core/packages/theme/browser-internal/src/theme_service.ts
+++ b/src/core/packages/theme/browser-internal/src/theme_service.ts
@@ -83,8 +83,6 @@ export class ThemeService {
}
const updateKbnThemeTag = (theme: CoreTheme) => {
- const name = theme.name === 'amsterdam' ? 'v8' : theme.name;
-
const globals: any = typeof window === 'undefined' ? {} : window;
- globals.__kbnThemeTag__ = `${name}${theme.darkMode ? 'dark' : 'light'}`;
+ globals.__kbnThemeTag__ = `${theme.name}${theme.darkMode ? 'dark' : 'light'}`;
};
diff --git a/src/core/packages/ui-settings/common/src/theme.ts b/src/core/packages/ui-settings/common/src/theme.ts
index d51d415b4b85b..99882275149e6 100644
--- a/src/core/packages/ui-settings/common/src/theme.ts
+++ b/src/core/packages/ui-settings/common/src/theme.ts
@@ -8,15 +8,10 @@
*/
export const DEFAULT_THEME_NAME = 'borealis';
-export const SUPPORTED_THEME_NAMES = ['amsterdam', 'borealis'] as const;
+export const SUPPORTED_THEME_NAMES = ['borealis'] as const;
export type ThemeName = (typeof SUPPORTED_THEME_NAMES)[number];
-/**
- * Theme tags of the Amsterdam theme
- */
-export const ThemeAmsterdamTags = ['v8light', 'v8dark'] as const;
-
/**
* Theme tags of the experimental Borealis theme
*/
@@ -26,7 +21,7 @@ export const ThemeBorealisTags = ['borealislight', 'borealisdark'] as const;
* An array of all theme tags supported by Kibana. Note that this list doesn't
* reflect what theme tags are available in a Kibana build.
*/
-export const SUPPORTED_THEME_TAGS = [...ThemeAmsterdamTags, ...ThemeBorealisTags] as const;
+export const SUPPORTED_THEME_TAGS = [...ThemeBorealisTags] as const;
export type ThemeTag = (typeof SUPPORTED_THEME_TAGS)[number];
export type ThemeTags = readonly ThemeTag[];
diff --git a/src/core/packages/ui-settings/server-internal/src/settings/theme.test.ts b/src/core/packages/ui-settings/server-internal/src/settings/theme.test.ts
index c18a11fda10db..5dabca4b8a5c4 100644
--- a/src/core/packages/ui-settings/server-internal/src/settings/theme.test.ts
+++ b/src/core/packages/ui-settings/server-internal/src/settings/theme.test.ts
@@ -41,9 +41,6 @@ describe('theme settings', () => {
const validate = getValidationFn(themeSettings['theme:name']);
it('should only accept expected values', () => {
- // TODO: Remove amsterdam theme
- // https://github.com/elastic/eui-private/issues/170
- expect(() => validate('amsterdam')).not.toThrow();
expect(() => validate('borealis')).not.toThrow();
expect(() => validate(true)).toThrow();
@@ -84,9 +81,9 @@ describe('theme settings', () => {
expect(
getThemeSettings({
...defaultOptions,
- defaultTheme: 'amsterdam',
+ defaultTheme: 'borealis',
})['theme:name'].value
- ).toBe('amsterdam');
+ ).toBe('borealis');
});
});
});
@@ -94,17 +91,17 @@ describe('theme settings', () => {
describe('process.env.KBN_OPTIMIZER_THEMES handling', () => {
it('defaults to properties of first tag', () => {
- process.env.KBN_OPTIMIZER_THEMES = 'v8dark,v8light';
+ process.env.KBN_OPTIMIZER_THEMES = 'borealisdark,borealislight';
let settings = getThemeSettings({ ...defaultOptions, isDist: false });
expect(settings['theme:darkMode'].value).toBe('enabled');
- process.env.KBN_OPTIMIZER_THEMES = 'v8light,v8dark';
+ process.env.KBN_OPTIMIZER_THEMES = 'borealislight,borealisdark';
settings = getThemeSettings({ ...defaultOptions, isDist: false });
expect(settings['theme:darkMode'].value).toBe('disabled');
});
it('ignores the value when isDist is true', () => {
- process.env.KBN_OPTIMIZER_THEMES = 'v8dark';
+ process.env.KBN_OPTIMIZER_THEMES = 'borealisdark';
const settings = getThemeSettings({ ...defaultOptions, isDist: true });
expect(settings['theme:darkMode'].value).toBe('disabled');
});
diff --git a/src/core/packages/ui-settings/server-internal/src/settings/theme.ts b/src/core/packages/ui-settings/server-internal/src/settings/theme.ts
index 87551111bf91c..44ebf09a4a1d9 100644
--- a/src/core/packages/ui-settings/server-internal/src/settings/theme.ts
+++ b/src/core/packages/ui-settings/server-internal/src/settings/theme.ts
@@ -115,9 +115,6 @@ export const getThemeSettings = (
// Cast to a mutable array to satisfy the `UiSettingsParams.options` type
options: SUPPORTED_THEME_NAMES as Writable,
optionLabels: {
- amsterdam: i18n.translate('core.ui_settings.params.themeName.options.amsterdam', {
- defaultMessage: 'Amsterdam',
- }),
borealis: i18n.translate('core.ui_settings.params.themeName.options.borealis', {
defaultMessage: 'Borealis',
}),
diff --git a/src/core/packages/ui-settings/server-internal/src/ui_settings_config.ts b/src/core/packages/ui-settings/server-internal/src/ui_settings_config.ts
index b3c125ec5e174..59be3bc7c1165 100644
--- a/src/core/packages/ui-settings/server-internal/src/ui_settings_config.ts
+++ b/src/core/packages/ui-settings/server-internal/src/ui_settings_config.ts
@@ -19,9 +19,6 @@ const deprecations: ConfigDeprecationProvider = ({ unused, renameFromRoot }) =>
];
export const defaultThemeSchema = schema.oneOf([
- // TODO: Remove amsterdam theme
- // https://github.com/elastic/eui-private/issues/170
- schema.literal('amsterdam'),
schema.literal('borealis'),
// Allow experimental themes
schema.string(),
diff --git a/src/core/public/styles/core_app/_globals_v8dark.scss b/src/core/public/styles/core_app/_globals_v8dark.scss
deleted file mode 100644
index 9a2fca26223f4..0000000000000
--- a/src/core/public/styles/core_app/_globals_v8dark.scss
+++ /dev/null
@@ -1,8 +0,0 @@
-// v8dark global scope
-//
-// prepended to all .scss imports (from JS, when v8dark theme selected)
-
-@import '@elastic/eui/src/themes/amsterdam/colors_dark';
-@import '@elastic/eui/src/themes/amsterdam/globals';
-
-$kbnThemeVersion: 'v8dark';
diff --git a/src/core/public/styles/core_app/_globals_v8light.scss b/src/core/public/styles/core_app/_globals_v8light.scss
deleted file mode 100644
index 9ce3638096246..0000000000000
--- a/src/core/public/styles/core_app/_globals_v8light.scss
+++ /dev/null
@@ -1,8 +0,0 @@
-// v8light global scope
-//
-// prepended to all .scss imports (from JS, when v8light theme selected)
-
-@import '@elastic/eui/src/themes/amsterdam/colors_light';
-@import '@elastic/eui/src/themes/amsterdam/globals';
-
-$kbnThemeVersion: 'v8light';
diff --git a/src/dev/build/tasks/generate_packages_optimized_assets.ts b/src/dev/build/tasks/generate_packages_optimized_assets.ts
index 9a0c292f39697..64b8747185e5e 100644
--- a/src/dev/build/tasks/generate_packages_optimized_assets.ts
+++ b/src/dev/build/tasks/generate_packages_optimized_assets.ts
@@ -123,8 +123,8 @@ function categorizeAssets(assetDirs: string[]) {
for (const { path, category } of assets) {
if (category === 'euiTheme') {
- // only track v8.light theme
- if (path.includes('v8.light')) {
+ // only track borealis.light theme
+ if (path.includes('borealis.light')) {
add('css', path);
}
continue;
diff --git a/src/dev/license_checker/config.ts b/src/dev/license_checker/config.ts
index 9ffb1361cc70e..db6875d593abd 100644
--- a/src/dev/license_checker/config.ts
+++ b/src/dev/license_checker/config.ts
@@ -91,8 +91,8 @@ export const LICENSE_OVERRIDES = {
'jsts@1.6.2': ['Eclipse Distribution License - v 1.0'], // cf. https://github.com/bjornharrtell/jsts
'@mapbox/jsonlint-lines-primitives@2.0.2': ['MIT'], // license in readme https://github.com/tmcw/jsonlint
'@elastic/ems-client@8.6.3': ['Elastic License 2.0'],
- '@elastic/eui@107.0.1': ['Elastic License 2.0 OR AGPL-3.0-only OR SSPL-1.0'],
- '@elastic/eui-theme-borealis@3.6.0': ['Elastic License 2.0 OR AGPL-3.0-only OR SSPL-1.0'],
+ '@elastic/eui@108.0.0': ['Elastic License 2.0 OR AGPL-3.0-only OR SSPL-1.0'],
+ '@elastic/eui-theme-borealis@4.0.0': ['Elastic License 2.0 OR AGPL-3.0-only OR SSPL-1.0'],
'language-subtag-registry@0.3.21': ['CC-BY-4.0'], // retired ODC‑By license https://github.com/mattcg/language-subtag-registry
'buffers@0.1.1': ['MIT'], // license in importing module https://www.npmjs.com/package/binary
'@bufbuild/protobuf@2.5.2': ['Apache-2.0'], // license (Apache-2.0 AND BSD-3-Clause)
diff --git a/src/platform/packages/private/kbn-ui-shared-deps-npm/webpack.config.js b/src/platform/packages/private/kbn-ui-shared-deps-npm/webpack.config.js
index f688da51dae39..ebf822d6a4955 100644
--- a/src/platform/packages/private/kbn-ui-shared-deps-npm/webpack.config.js
+++ b/src/platform/packages/private/kbn-ui-shared-deps-npm/webpack.config.js
@@ -63,10 +63,8 @@ module.exports = (_, argv) => {
'@elastic/eui',
'@elastic/eui/optimize/es/components/provider/nested',
'@elastic/eui/optimize/es/services/theme/warning',
- '@elastic/eui/dist/eui_theme_amsterdam_light.json',
- '@elastic/eui/dist/eui_theme_amsterdam_dark.json',
- '@elastic/eui/dist/eui_theme_borealis_light.json',
- '@elastic/eui/dist/eui_theme_borealis_dark.json',
+ '@elastic/eui-theme-borealis/lib/eui_theme_borealis_light.json',
+ '@elastic/eui-theme-borealis/lib/eui_theme_borealis_dark.json',
'@elastic/eui-theme-borealis',
'@elastic/numeral',
'@emotion/cache',
diff --git a/src/platform/packages/shared/kbn-data-grid-in-table-search/src/get_highlight_colors.ts b/src/platform/packages/shared/kbn-data-grid-in-table-search/src/get_highlight_colors.ts
index 2bb3a2f6cdd23..2b9f3f46c3670 100644
--- a/src/platform/packages/shared/kbn-data-grid-in-table-search/src/get_highlight_colors.ts
+++ b/src/platform/packages/shared/kbn-data-grid-in-table-search/src/get_highlight_colors.ts
@@ -9,26 +9,12 @@
import type { EuiThemeComputed } from '@elastic/eui';
-const AMSTERDAM_HIGHLIGHT_COLOR = '#e5ffc0';
-const AMSTERDAM_ACTIVE_HIGHLIGHT_COLOR = '#ffc30e';
-
export const getHighlightColors = (euiTheme: EuiThemeComputed<{}>) => {
- // FIXME: remove once Amsterdam theme is removed
- const isAmsterdamTheme = euiTheme.themeName.toLowerCase().includes('amsterdam');
-
return {
- highlightColor: isAmsterdamTheme ? euiTheme.colors.plainDark : euiTheme.colors.textAccent,
- highlightBackgroundColor: isAmsterdamTheme
- ? AMSTERDAM_HIGHLIGHT_COLOR
- : euiTheme.colors.backgroundLightAccent,
- activeHighlightColor: isAmsterdamTheme
- ? euiTheme.colors.plainDark
- : euiTheme.colors.textInverse,
- activeHighlightBackgroundColor: isAmsterdamTheme
- ? AMSTERDAM_ACTIVE_HIGHLIGHT_COLOR
- : euiTheme.colors.backgroundFilledAccent,
- activeHighlightBorderColor: isAmsterdamTheme
- ? AMSTERDAM_ACTIVE_HIGHLIGHT_COLOR
- : euiTheme.colors.borderStrongAccent,
+ highlightColor: euiTheme.colors.textAccent,
+ highlightBackgroundColor: euiTheme.colors.backgroundLightAccent,
+ activeHighlightColor: euiTheme.colors.textInverse,
+ activeHighlightBackgroundColor: euiTheme.colors.backgroundFilledAccent,
+ activeHighlightBorderColor: euiTheme.colors.borderStrongAccent,
};
};
diff --git a/src/platform/packages/shared/kbn-management/settings/application/__snapshots__/query_input.test.tsx.snap b/src/platform/packages/shared/kbn-management/settings/application/__snapshots__/query_input.test.tsx.snap
index 86e6a754bf394..96fee0d79aee1 100644
--- a/src/platform/packages/shared/kbn-management/settings/application/__snapshots__/query_input.test.tsx.snap
+++ b/src/platform/packages/shared/kbn-management/settings/application/__snapshots__/query_input.test.tsx.snap
@@ -49,7 +49,7 @@ exports[`Search should render normally 1`] = `
class="euiPopover emotion-euiPopover-inline-block"
>