From 648fe4fb7d7a76d64327a8b11003f72a7876bff2 Mon Sep 17 00:00:00 2001 From: Jeremy Davis Date: Mon, 8 Jul 2024 15:28:45 +0200 Subject: [PATCH] SONAR-22418 Add depreaction notices --- .../design-system/src/components/input/DiscreetSelect.tsx | 5 +++++ .../design-system/src/components/input/SearchSelect.tsx | 6 ++++++ .../src/components/input/SearchSelectDropdown.tsx | 5 ++++- .../src/components/input/SearchSelectDropdownControl.tsx | 5 ++++- .../src/sonar-aligned/components/input/InputSelect.tsx | 3 +++ 5 files changed, 22 insertions(+), 2 deletions(-) diff --git a/server/sonar-web/design-system/src/components/input/DiscreetSelect.tsx b/server/sonar-web/design-system/src/components/input/DiscreetSelect.tsx index 6981cefffc5..43a188ce701 100644 --- a/server/sonar-web/design-system/src/components/input/DiscreetSelect.tsx +++ b/server/sonar-web/design-system/src/components/input/DiscreetSelect.tsx @@ -32,6 +32,11 @@ type DiscreetProps< setValue: (value: OnChangeValue) => void; }; +/** + * @deprecated Use Select or SelectAsync from Echoes instead. + * + * Use the `highlight` prop value `SelectHighlight.Ghost` to make it "discreet" + */ export function DiscreetSelect< Option, IsMulti extends boolean = false, diff --git a/server/sonar-web/design-system/src/components/input/SearchSelect.tsx b/server/sonar-web/design-system/src/components/input/SearchSelect.tsx index 009dbb9d712..1f8d4c34650 100644 --- a/server/sonar-web/design-system/src/components/input/SearchSelect.tsx +++ b/server/sonar-web/design-system/src/components/input/SearchSelect.tsx @@ -33,6 +33,9 @@ type SearchSelectProps< Group extends GroupBase