From: stanislavh Date: Thu, 2 May 2024 15:29:48 +0000 (+0200) Subject: SONAR-22168 Align InputSelect X-Git-Tag: 10.6.0.92116~141 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=422081485bf8e9646921f48d7b1f8d54b9854bd7;p=sonarqube.git SONAR-22168 Align InputSelect --- diff --git a/server/sonar-web/design-system/src/components/input/DatePickerCustomCalendarNavigation.tsx b/server/sonar-web/design-system/src/components/input/DatePickerCustomCalendarNavigation.tsx index ac651e16c34..467fdab81a4 100644 --- a/server/sonar-web/design-system/src/components/input/DatePickerCustomCalendarNavigation.tsx +++ b/server/sonar-web/design-system/src/components/input/DatePickerCustomCalendarNavigation.tsx @@ -33,9 +33,9 @@ import { useDayPicker, } from 'react-day-picker'; import { useIntl } from 'react-intl'; +import { InputSelect } from '../../sonar-aligned/components/input'; import { InteractiveIcon } from '../InteractiveIcon'; import { ChevronLeftIcon, ChevronRightIcon } from '../icons'; -import { InputSelect } from './InputSelect'; const YEARS_TO_DISPLAY = 10; const MONTHS_IN_A_YEAR = 12; 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 13b6068c3fa..6981cefffc5 100644 --- a/server/sonar-web/design-system/src/components/input/DiscreetSelect.tsx +++ b/server/sonar-web/design-system/src/components/input/DiscreetSelect.tsx @@ -18,44 +18,30 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import styled from '@emotion/styled'; +import { GroupBase, OnChangeValue } from 'react-select'; import tw from 'twin.macro'; import { themeBorder, themeColor, themeContrast } from '../../helpers/theme'; -import { InputSizeKeys } from '../../types/theme'; -import { InputSelect, LabelValueSelectOption } from './InputSelect'; +import { InputSelect, SelectProps } from '../../sonar-aligned/components/input'; -interface Props { - className?: string; - components?: Parameters[0]['components']; +type DiscreetProps< + Option, + IsMulti extends boolean = false, + Group extends GroupBase