aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/design-system
diff options
context:
space:
mode:
authorJeremy Davis <jeremy.davis@sonarsource.com>2024-07-08 15:28:45 +0200
committersonartech <sonartech@sonarsource.com>2024-07-10 20:02:38 +0000
commit648fe4fb7d7a76d64327a8b11003f72a7876bff2 (patch)
tree8e19eeeecb2f7bf0d498b9741cebfbf0287c53f8 /server/sonar-web/design-system
parent7e5833607f8421731661cb524e4c428f4f0e9361 (diff)
downloadsonarqube-648fe4fb7d7a76d64327a8b11003f72a7876bff2.tar.gz
sonarqube-648fe4fb7d7a76d64327a8b11003f72a7876bff2.zip
SONAR-22418 Add depreaction notices
Diffstat (limited to 'server/sonar-web/design-system')
-rw-r--r--server/sonar-web/design-system/src/components/input/DiscreetSelect.tsx5
-rw-r--r--server/sonar-web/design-system/src/components/input/SearchSelect.tsx6
-rw-r--r--server/sonar-web/design-system/src/components/input/SearchSelectDropdown.tsx5
-rw-r--r--server/sonar-web/design-system/src/components/input/SearchSelectDropdownControl.tsx5
-rw-r--r--server/sonar-web/design-system/src/sonar-aligned/components/input/InputSelect.tsx3
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<Option, IsMulti>) => 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<Option> = GroupBase<Option>,
> = SelectProps<Option, IsMulti, Group> & AsyncProps<Option, IsMulti, Group>;
+/**
+ * @deprecated Use Select or SelectAsync from Echoes instead.
+ */
export function SearchSelect<
Option,
IsMulti extends boolean = false,
@@ -72,6 +75,9 @@ export function SearchSelect<
);
}
+/**
+ * @deprecated Use Select or SelectAsync from Echoes instead.
+ */
export function SearchSelectInput<
Option,
IsMulti extends boolean = false,
diff --git a/server/sonar-web/design-system/src/components/input/SearchSelectDropdown.tsx b/server/sonar-web/design-system/src/components/input/SearchSelectDropdown.tsx
index e103e3e4b5d..79489d4a295 100644
--- a/server/sonar-web/design-system/src/components/input/SearchSelectDropdown.tsx
+++ b/server/sonar-web/design-system/src/components/input/SearchSelectDropdown.tsx
@@ -47,7 +47,7 @@ declare module 'react-select/dist/declarations/src/Select' {
}
}
-export interface SearchSelectDropdownProps<
+interface SearchSelectDropdownProps<
V,
Option extends LabelValueSelectOption<V>,
IsMulti extends boolean = false,
@@ -63,6 +63,9 @@ export interface SearchSelectDropdownProps<
zLevel?: PopupZLevel;
}
+/**
+ * @deprecated Use Select or SelectAsync from Echoes instead.
+ */
export function SearchSelectDropdown<
V,
Option extends LabelValueSelectOption<V>,
diff --git a/server/sonar-web/design-system/src/components/input/SearchSelectDropdownControl.tsx b/server/sonar-web/design-system/src/components/input/SearchSelectDropdownControl.tsx
index cdcc44caf00..ef6a9b6c179 100644
--- a/server/sonar-web/design-system/src/components/input/SearchSelectDropdownControl.tsx
+++ b/server/sonar-web/design-system/src/components/input/SearchSelectDropdownControl.tsx
@@ -40,6 +40,9 @@ interface SearchSelectDropdownControlProps {
size?: InputSizeKeys;
}
+/**
+ * @deprecated Use Select or SelectAsync from Echoes instead.
+ */
export function SearchSelectDropdownControl(props: SearchSelectDropdownControlProps) {
const {
className,
@@ -103,7 +106,7 @@ export function SearchSelectDropdownControl(props: SearchSelectDropdownControlPr
);
}
-export const StyledControl = styled.div`
+const StyledControl = styled.div`
color: ${themeContrast('inputBackground')};
background: ${themeColor('inputBackground')};
border: ${themeBorder('default', 'inputBorder')};
diff --git a/server/sonar-web/design-system/src/sonar-aligned/components/input/InputSelect.tsx b/server/sonar-web/design-system/src/sonar-aligned/components/input/InputSelect.tsx
index 58d1d499ccf..a0cc703296d 100644
--- a/server/sonar-web/design-system/src/sonar-aligned/components/input/InputSelect.tsx
+++ b/server/sonar-web/design-system/src/sonar-aligned/components/input/InputSelect.tsx
@@ -30,6 +30,9 @@ import {
selectStyle,
} from './SelectCommon';
+/**
+ * @deprecated Use Select or SelectAsync from Echoes instead.
+ */
export function InputSelect<
Option,
IsMulti extends boolean = false,