aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/design-system/src/components/input
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/design-system/src/components/input')
-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.tsx4
-rw-r--r--server/sonar-web/design-system/src/components/input/SearchSelectDropdown.tsx4
-rw-r--r--server/sonar-web/design-system/src/components/input/SearchSelectDropdownControl.tsx4
4 files changed, 12 insertions, 5 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 43a188ce701..c4211cee8e3 100644
--- a/server/sonar-web/design-system/src/components/input/DiscreetSelect.tsx
+++ b/server/sonar-web/design-system/src/components/input/DiscreetSelect.tsx
@@ -18,6 +18,7 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
import styled from '@emotion/styled';
+import Echoes from '@sonarsource/echoes-react';
import { GroupBase, OnChangeValue } from 'react-select';
import tw from 'twin.macro';
import { themeBorder, themeColor, themeContrast } from '../../helpers/theme';
@@ -33,9 +34,9 @@ type DiscreetProps<
};
/**
- * @deprecated Use Select or SelectAsync from Echoes instead.
+ * @deprecated Use {@link Echoes.Select | Select} or {@link Echoes.SelectAsync | SelectAsync} from Echoes instead, and use the {@link Echoes.SelectHighlight.Ghost | SelectHighlight.Ghost} highlight property.
*
- * Use the `highlight` prop value `SelectHighlight.Ghost` to make it "discreet"
+ * See the [Migration Guide](https://xtranet-sonarsource.atlassian.net/wiki/x/K4AYxw)
*/
export function DiscreetSelect<
Option,
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 1f8d4c34650..37b471f9f82 100644
--- a/server/sonar-web/design-system/src/components/input/SearchSelect.tsx
+++ b/server/sonar-web/design-system/src/components/input/SearchSelect.tsx
@@ -17,6 +17,7 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+import Echoes from '@sonarsource/echoes-react';
import classNames from 'classnames';
import { omit } from 'lodash';
import React from 'react';
@@ -34,7 +35,8 @@ type SearchSelectProps<
> = SelectProps<Option, IsMulti, Group> & AsyncProps<Option, IsMulti, Group>;
/**
- * @deprecated Use Select or SelectAsync from Echoes instead.
+ * @deprecated Use {@link Echoes.Select | Select} or {@link Echoes.SelectAsync | SelectAsync} from Echoes instead.
+ * See the [Migration Guide](https://xtranet-sonarsource.atlassian.net/wiki/x/K4AYxw)
*/
export function SearchSelect<
Option,
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 79489d4a295..9ec3d122000 100644
--- a/server/sonar-web/design-system/src/components/input/SearchSelectDropdown.tsx
+++ b/server/sonar-web/design-system/src/components/input/SearchSelectDropdown.tsx
@@ -18,6 +18,7 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
import styled from '@emotion/styled';
+import Echoes from '@sonarsource/echoes-react';
import React from 'react';
import {
ActionMeta,
@@ -64,7 +65,8 @@ interface SearchSelectDropdownProps<
}
/**
- * @deprecated Use Select or SelectAsync from Echoes instead.
+ * @deprecated Use {@link Echoes.Select | Select} or {@link Echoes.SelectAsync | SelectAsync} from Echoes instead.
+ * See the [Migration Guide](https://xtranet-sonarsource.atlassian.net/wiki/x/K4AYxw)
*/
export function SearchSelectDropdown<
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 ef6a9b6c179..ed383415eea 100644
--- a/server/sonar-web/design-system/src/components/input/SearchSelectDropdownControl.tsx
+++ b/server/sonar-web/design-system/src/components/input/SearchSelectDropdownControl.tsx
@@ -18,6 +18,7 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
import styled from '@emotion/styled';
+import Echoes from '@sonarsource/echoes-react';
import classNames from 'classnames';
import { useIntl } from 'react-intl';
import tw from 'twin.macro';
@@ -41,7 +42,8 @@ interface SearchSelectDropdownControlProps {
}
/**
- * @deprecated Use Select or SelectAsync from Echoes instead.
+ * @deprecated Use {@link Echoes.Select | Select} or {@link Echoes.SelectAsync | SelectAsync} from Echoes instead.
+ * See the [Migration Guide](https://xtranet-sonarsource.atlassian.net/wiki/x/K4AYxw)
*/
export function SearchSelectDropdownControl(props: SearchSelectDropdownControlProps) {
const {