From b1b70279867f69fe6bee74561bcb311ffc8261f1 Mon Sep 17 00:00:00 2001 From: Cee Chen <549407+cee-chen@users.noreply.github.com> Date: Tue, 4 Jun 2024 03:16:27 -0700 Subject: [PATCH] June deprecations (#7808) --- packages/eui/changelogs/upcoming/7808.md | 3 +++ packages/eui/src-docs/src/views/flyout/flyout_example.js | 1 - packages/eui/src/services/color/eui_palettes.ts | 8 -------- packages/eui/src/services/color/index.ts | 2 -- packages/eui/src/services/index.ts | 2 -- 5 files changed, 3 insertions(+), 13 deletions(-) create mode 100644 packages/eui/changelogs/upcoming/7808.md diff --git a/packages/eui/changelogs/upcoming/7808.md b/packages/eui/changelogs/upcoming/7808.md new file mode 100644 index 00000000000..5fc45bb05b2 --- /dev/null +++ b/packages/eui/changelogs/upcoming/7808.md @@ -0,0 +1,3 @@ +**Breaking changes** + +- Removed deprecated `euiPalettePositive` and `euiPaletteNegative`. Use `euiPaletteGreen` and `euiPaletteRed` instead diff --git a/packages/eui/src-docs/src/views/flyout/flyout_example.js b/packages/eui/src-docs/src/views/flyout/flyout_example.js index 2a894039a23..fbe28aa1633 100644 --- a/packages/eui/src-docs/src/views/flyout/flyout_example.js +++ b/packages/eui/src-docs/src/views/flyout/flyout_example.js @@ -402,7 +402,6 @@ export const FlyoutExample = { }, { title: 'Resizable flyouts', - isBeta: true, source: [ { type: GuideSectionTypes.JS, diff --git a/packages/eui/src/services/color/eui_palettes.ts b/packages/eui/src/services/color/eui_palettes.ts index 681584c98c6..c44a3bbfb0a 100644 --- a/packages/eui/src/services/color/eui_palettes.ts +++ b/packages/eui/src/services/color/eui_palettes.ts @@ -203,10 +203,6 @@ export const euiPaletteRed = function (steps: number): EuiPalette { return euiPalette(['white', redColor], steps); }; -/** - * @deprecated - use `euiPaletteRed` instead - */ -export const euiPaletteNegative = euiPaletteRed; export const euiPaletteGreen = function (steps: number): EuiPalette { if (steps === 1) { @@ -215,10 +211,6 @@ export const euiPaletteGreen = function (steps: number): EuiPalette { return euiPalette(['white', greenColor], steps); }; -/** - * @deprecated - use `euiPaletteGreen` instead - */ -export const euiPalettePositive = euiPaletteGreen; export const euiPaletteCool = function (steps: number): EuiPalette { if (steps === 1) { diff --git a/packages/eui/src/services/color/index.ts b/packages/eui/src/services/color/index.ts index 803f0f81a46..574c5ffb0b7 100644 --- a/packages/eui/src/services/color/index.ts +++ b/packages/eui/src/services/color/index.ts @@ -33,8 +33,6 @@ export { euiPaletteComplementary, euiPaletteRed, euiPaletteGreen, - euiPaletteNegative, - euiPalettePositive, euiPaletteCool, euiPaletteWarm, euiPaletteGray, diff --git a/packages/eui/src/services/index.ts b/packages/eui/src/services/index.ts index 4816f7235bf..a8501828e8c 100644 --- a/packages/eui/src/services/index.ts +++ b/packages/eui/src/services/index.ts @@ -40,8 +40,6 @@ export { euiPaletteGray, euiPaletteRed, euiPaletteGreen, - euiPalettePositive, - euiPaletteNegative, euiPaletteWarm, getSteppedGradient, hexToHsv,