Skip to content

A local-first personal finance app

:recycle: (components) moving select component to component library (#4556)

Matiss Janis Aboltins9a45d6707dee
diff --git a/packages/component-library/package.json b/packages/component-library/package.json
index 315efdb62c..e4dc7c331f 100644
--- a/packages/component-library/package.json
+++ b/packages/component-library/package.json
@@ -32,6 +32,7 @@
"./menu": "./src/Menu.tsx",
"./paragraph": "./src/Paragraph.tsx",
"./popover": "./src/Popover.tsx",
+ "./select": "./src/Select.tsx",
"./space-between": "./src/SpaceBetween.tsx",
"./stack": "./src/Stack.tsx",
"./styles": "./src/styles.ts",
diff --git a/packages/desktop-client/src/components/common/Select.tsx b/packages/component-library/src/Select.tsx
similarity index 93%
rename from packages/desktop-client/src/components/common/Select.tsx
rename to packages/component-library/src/Select.tsx
index 7f438eccc0..547e84e867 100644
--- a/packages/desktop-client/src/components/common/Select.tsx
+++ b/packages/component-library/src/Select.tsx
@@ -1,11 +1,10 @@
import { useRef, useState, type CSSProperties } from 'react';
-import { Button } from '@actual-app/components/button';
-import { Menu } from '@actual-app/components/menu';
-import { Popover } from '@actual-app/components/popover';
-import { View } from '@actual-app/components/view';
-
-import { SvgExpandArrow } from '../../icons/v0';
+import { Button } from './Button';
+import { SvgExpandArrow } from './icons/v0';
+import { Menu } from './Menu';
+import { Popover } from './Popover';
+import { View } from './View';
function isValueOption<Value>(
option: readonly [Value, string] | typeof Menu.line,
diff --git a/packages/desktop-client/src/components/banksync/FieldMapping.tsx b/packages/desktop-client/src/components/banksync/FieldMapping.tsx
index ddf0975cbc..05b1165771 100644
--- a/packages/desktop-client/src/components/banksync/FieldMapping.tsx
+++ b/packages/desktop-client/src/components/banksync/FieldMapping.tsx
@@ -1,12 +1,12 @@
import React from 'react';
import { Trans, useTranslation } from 'react-i18next';
+import { SvgRightArrow2 } from '@actual-app/components/icons/v0';
+import { SvgEquals } from '@actual-app/components/icons/v1';
+import { Select } from '@actual-app/components/select';
import { Text } from '@actual-app/components/text';
+import { theme } from '@actual-app/components/theme';
-import { SvgRightArrow2 } from '../../icons/v0';
-import { SvgEquals } from '../../icons/v1';
-import { theme } from '../../style';
-import { Select } from '../common/Select';
import { Row, Cell, TableHeader } from '../table';
import {
diff --git a/packages/desktop-client/src/components/filters/FiltersMenu.jsx b/packages/desktop-client/src/components/filters/FiltersMenu.jsx
index 941bf94949..1bf03b8b4b 100644
--- a/packages/desktop-client/src/components/filters/FiltersMenu.jsx
+++ b/packages/desktop-client/src/components/filters/FiltersMenu.jsx
@@ -7,9 +7,11 @@ import { Trans, useTranslation } from 'react-i18next';
import { Button } from '@actual-app/components/button';
import { Menu } from '@actual-app/components/menu';
import { Popover } from '@actual-app/components/popover';
+import { Select } from '@actual-app/components/select';
import { Stack } from '@actual-app/components/stack';
import { styles } from '@actual-app/components/styles';
import { Text } from '@actual-app/components/text';
+import { theme } from '@actual-app/components/theme';
import { Tooltip } from '@actual-app/components/tooltip';
import { View } from '@actual-app/components/view';
import {
@@ -32,8 +34,6 @@ import {
import { titleFirst } from 'loot-core/shared/util';
import { useDateFormat } from '../../hooks/useDateFormat';
-import { theme } from '../../style';
-import { Select } from '../common/Select';
import { GenericInput } from '../util/GenericInput';
import { CompactFiltersButton } from './CompactFiltersButton';
diff --git a/packages/desktop-client/src/components/manager/subscribe/Login.tsx b/packages/desktop-client/src/components/manager/subscribe/Login.tsx
index df5de6965a..34c2ad0bd9 100644
--- a/packages/desktop-client/src/components/manager/subscribe/Login.tsx
+++ b/packages/desktop-client/src/components/manager/subscribe/Login.tsx
@@ -4,9 +4,12 @@ import { Trans, useTranslation } from 'react-i18next';
import { useSearchParams } from 'react-router-dom';
import { Button, ButtonWithLoading } from '@actual-app/components/button';
+import { AnimatedLoading } from '@actual-app/components/icons/AnimatedLoading';
import { Label } from '@actual-app/components/label';
+import { Select } from '@actual-app/components/select';
import { styles } from '@actual-app/components/styles';
import { Text } from '@actual-app/components/text';
+import { theme } from '@actual-app/components/theme';
import { View } from '@actual-app/components/view';
import { loggedIn } from 'loot-core/client/actions/user';
@@ -15,12 +18,9 @@ import { isElectron } from 'loot-core/shared/environment';
import { type OpenIdConfig } from 'loot-core/types/models/openid';
import { useNavigate } from '../../../hooks/useNavigate';
-import { AnimatedLoading } from '../../../icons/AnimatedLoading';
import { useDispatch } from '../../../redux';
-import { theme } from '../../../style';
import { BigInput } from '../../common/Input';
import { Link } from '../../common/Link';
-import { Select } from '../../common/Select';
import { useResponsive } from '../../responsive/ResponsiveProvider';
import { useAvailableLoginMethods, useLoginMethod } from '../../ServerContext';
diff --git a/packages/desktop-client/src/components/manager/subscribe/OpenIdForm.tsx b/packages/desktop-client/src/components/manager/subscribe/OpenIdForm.tsx
index 2b2572bbf0..234d0df7db 100644
--- a/packages/desktop-client/src/components/manager/subscribe/OpenIdForm.tsx
+++ b/packages/desktop-client/src/components/manager/subscribe/OpenIdForm.tsx
@@ -4,9 +4,11 @@ import { useLocation, type Location } from 'react-router-dom';
import { ButtonWithLoading } from '@actual-app/components/button';
import { Menu } from '@actual-app/components/menu';
+import { Select } from '@actual-app/components/select';
import { Stack } from '@actual-app/components/stack';
import { styles } from '@actual-app/components/styles';
import { Text } from '@actual-app/components/text';
+import { theme } from '@actual-app/components/theme';
import { View } from '@actual-app/components/view';
import { addNotification } from 'loot-core/client/notifications/notificationsSlice';
@@ -15,10 +17,8 @@ import { type Handlers } from 'loot-core/types/handlers';
import { type OpenIdConfig } from 'loot-core/types/models/openid';
import { useDispatch } from '../../../redux';
-import { theme } from '../../../style';
import { Input } from '../../common/Input';
import { Link } from '../../common/Link';
-import { Select } from '../../common/Select';
import { FormField, FormLabel } from '../../forms';
import { useServerURL } from '../../ServerContext';
diff --git a/packages/desktop-client/src/components/modals/EditAccess.tsx b/packages/desktop-client/src/components/modals/EditAccess.tsx
index 2c56cda0b5..40ec611ae5 100644
--- a/packages/desktop-client/src/components/modals/EditAccess.tsx
+++ b/packages/desktop-client/src/components/modals/EditAccess.tsx
@@ -2,9 +2,11 @@ import { useEffect, useState } from 'react';
import { Trans, useTranslation } from 'react-i18next';
import { Button } from '@actual-app/components/button';
+import { Select } from '@actual-app/components/select';
import { Stack } from '@actual-app/components/stack';
import { styles } from '@actual-app/components/styles';
import { Text } from '@actual-app/components/text';
+import { theme } from '@actual-app/components/theme';
import { View } from '@actual-app/components/view';
import { signOut } from 'loot-core/client/actions';
@@ -17,9 +19,7 @@ import { send } from 'loot-core/platform/client/fetch';
import { getUserAccessErrors } from 'loot-core/shared/errors';
import { useDispatch } from '../../redux';
-import { theme } from '../../style';
import { Modal, ModalCloseButton, ModalHeader } from '../common/Modal';
-import { Select } from '../common/Select';
import { FormField, FormLabel } from '../forms';
type EditUserAccessProps = Extract<
diff --git a/packages/desktop-client/src/components/modals/EditRuleModal.jsx b/packages/desktop-client/src/components/modals/EditRuleModal.jsx
index 8c8b2b7139..bbc68d0b73 100644
--- a/packages/desktop-client/src/components/modals/EditRuleModal.jsx
+++ b/packages/desktop-client/src/components/modals/EditRuleModal.jsx
@@ -2,10 +2,22 @@ import React, { useState, useEffect, useRef, useMemo } from 'react';
import { useTranslation, Trans } from 'react-i18next';
import { Button } from '@actual-app/components/button';
+import {
+ SvgDelete,
+ SvgAdd,
+ SvgSubtract,
+} from '@actual-app/components/icons/v0';
+import {
+ SvgAlignLeft,
+ SvgCode,
+ SvgInformationOutline,
+} from '@actual-app/components/icons/v1';
import { Menu } from '@actual-app/components/menu';
+import { Select } from '@actual-app/components/select';
import { Stack } from '@actual-app/components/stack';
import { styles } from '@actual-app/components/styles';
import { Text } from '@actual-app/components/text';
+import { theme } from '@actual-app/components/theme';
import { Tooltip } from '@actual-app/components/tooltip';
import { View } from '@actual-app/components/view';
import { css } from '@emotion/css';
@@ -39,12 +51,8 @@ import {
import { useDateFormat } from '../../hooks/useDateFormat';
import { useFeatureFlag } from '../../hooks/useFeatureFlag';
import { useSelected, SelectedProvider } from '../../hooks/useSelected';
-import { SvgDelete, SvgAdd, SvgSubtract } from '../../icons/v0';
-import { SvgAlignLeft, SvgCode, SvgInformationOutline } from '../../icons/v1';
import { useDispatch } from '../../redux';
-import { theme } from '../../style';
import { Modal, ModalCloseButton, ModalHeader } from '../common/Modal';
-import { Select } from '../common/Select';
import { StatusBadge } from '../schedules/StatusBadge';
import { SimpleTransactionsTable } from '../transactions/SimpleTransactionsTable';
import { BetweenAmountInput } from '../util/AmountInput';
diff --git a/packages/desktop-client/src/components/modals/EditUser.tsx b/packages/desktop-client/src/components/modals/EditUser.tsx
index 458f1f48ba..c12f57a2c0 100644
--- a/packages/desktop-client/src/components/modals/EditUser.tsx
+++ b/packages/desktop-client/src/components/modals/EditUser.tsx
@@ -2,9 +2,11 @@ import { useState } from 'react';
import { Trans, useTranslation } from 'react-i18next';
import { Button } from '@actual-app/components/button';
+import { Select } from '@actual-app/components/select';
import { Stack } from '@actual-app/components/stack';
import { styles } from '@actual-app/components/styles';
import { Text } from '@actual-app/components/text';
+import { theme } from '@actual-app/components/theme';
import { View } from '@actual-app/components/view';
import { signOut } from 'loot-core/client/actions';
@@ -21,10 +23,8 @@ import {
} from 'loot-core/types/models/user';
import { useDispatch } from '../../redux';
-import { theme } from '../../style';
import { Input } from '../common/Input';
import { Modal, ModalCloseButton, ModalHeader } from '../common/Modal';
-import { Select } from '../common/Select';
import { Checkbox, FormField, FormLabel } from '../forms';
type User = UserEntity;
diff --git a/packages/desktop-client/src/components/modals/ImportTransactionsModal/DateFormatSelect.tsx b/packages/desktop-client/src/components/modals/ImportTransactionsModal/DateFormatSelect.tsx
index 5e543568c3..a7fe7ac735 100644
--- a/packages/desktop-client/src/components/modals/ImportTransactionsModal/DateFormatSelect.tsx
+++ b/packages/desktop-client/src/components/modals/ImportTransactionsModal/DateFormatSelect.tsx
@@ -1,8 +1,8 @@
import React from 'react';
+import { Select } from '@actual-app/components/select';
import { View } from '@actual-app/components/view';
-import { Select } from '../../common/Select';
import { SectionLabel } from '../../forms';
import {
diff --git a/packages/desktop-client/src/components/modals/ImportTransactionsModal/ImportTransactionsModal.jsx b/packages/desktop-client/src/components/modals/ImportTransactionsModal/ImportTransactionsModal.jsx
index eba118bd8a..6dd3a04f2d 100644
--- a/packages/desktop-client/src/components/modals/ImportTransactionsModal/ImportTransactionsModal.jsx
+++ b/packages/desktop-client/src/components/modals/ImportTransactionsModal/ImportTransactionsModal.jsx
@@ -2,8 +2,10 @@ import React, { useState, useEffect, useCallback } from 'react';
import { useTranslation } from 'react-i18next';
import { Button, ButtonWithLoading } from '@actual-app/components/button';
+import { Select } from '@actual-app/components/select';
import { Stack } from '@actual-app/components/stack';
import { Text } from '@actual-app/components/text';
+import { theme } from '@actual-app/components/theme';
import { View } from '@actual-app/components/view';
import deepEqual from 'deep-equal';
@@ -19,10 +21,8 @@ import { useCategories } from '../../../hooks/useCategories';
import { useDateFormat } from '../../../hooks/useDateFormat';
import { useSyncedPrefs } from '../../../hooks/useSyncedPrefs';
import { useDispatch } from '../../../redux';
-import { theme } from '../../../style';
import { Input } from '../../common/Input';
import { Modal, ModalCloseButton, ModalHeader } from '../../common/Modal';
-import { Select } from '../../common/Select';
import { SectionLabel } from '../../forms';
import { TableHeader, TableWithNavigator } from '../../table';
diff --git a/packages/desktop-client/src/components/modals/ImportTransactionsModal/SelectField.tsx b/packages/desktop-client/src/components/modals/ImportTransactionsModal/SelectField.tsx
index 6de27e5b76..7061f8150a 100644
--- a/packages/desktop-client/src/components/modals/ImportTransactionsModal/SelectField.tsx
+++ b/packages/desktop-client/src/components/modals/ImportTransactionsModal/SelectField.tsx
@@ -1,6 +1,6 @@
import React, { type CSSProperties } from 'react';
-import { Select } from '../../common/Select';
+import { Select } from '@actual-app/components/select';
type SelectFieldProps = {
style?: CSSProperties;
diff --git a/packages/desktop-client/src/components/modals/TransferOwnership.tsx b/packages/desktop-client/src/components/modals/TransferOwnership.tsx
index ac075b9bd6..9a4a1741e2 100644
--- a/packages/desktop-client/src/components/modals/TransferOwnership.tsx
+++ b/packages/desktop-client/src/components/modals/TransferOwnership.tsx
@@ -2,9 +2,11 @@ import { useEffect, useState } from 'react';
import { Trans, useTranslation } from 'react-i18next';
import { Button } from '@actual-app/components/button';
+import { Select } from '@actual-app/components/select';
import { Stack } from '@actual-app/components/stack';
import { styles } from '@actual-app/components/styles';
import { Text } from '@actual-app/components/text';
+import { theme } from '@actual-app/components/theme';
import { View } from '@actual-app/components/view';
import { closeAndLoadBudget } from 'loot-core/client/budgets/budgetsSlice';
@@ -21,9 +23,7 @@ import { type Handlers } from 'loot-core/types/handlers';
import { useMetadataPref } from '../../hooks/useMetadataPref';
import { useDispatch, useSelector } from '../../redux';
-import { theme } from '../../style';
import { Modal, ModalCloseButton, ModalHeader } from '../common/Modal';
-import { Select } from '../common/Select';
import { FormField, FormLabel } from '../forms';
type TransferOwnershipProps = Extract<
diff --git a/packages/desktop-client/src/components/reports/Header.tsx b/packages/desktop-client/src/components/reports/Header.tsx
index b6896abf25..f2256c68f0 100644
--- a/packages/desktop-client/src/components/reports/Header.tsx
+++ b/packages/desktop-client/src/components/reports/Header.tsx
@@ -2,6 +2,7 @@ import { type ComponentProps, type ReactNode } from 'react';
import { useTranslation } from 'react-i18next';
import { Button } from '@actual-app/components/button';
+import { Select } from '@actual-app/components/select';
import { SpaceBetween } from '@actual-app/components/space-between';
import { View } from '@actual-app/components/view';
@@ -13,7 +14,6 @@ import {
import { type SyncedPrefs } from 'loot-core/types/prefs';
import { useLocale } from '../../hooks/useLocale';
-import { Select } from '../common/Select';
import { AppliedFilters } from '../filters/AppliedFilters';
import { FilterButton } from '../filters/FiltersMenu';
import { useResponsive } from '../responsive/ResponsiveProvider';
diff --git a/packages/desktop-client/src/components/reports/ReportSidebar.tsx b/packages/desktop-client/src/components/reports/ReportSidebar.tsx
index 60a2bcd870..ddecaa41dc 100644
--- a/packages/desktop-client/src/components/reports/ReportSidebar.tsx
+++ b/packages/desktop-client/src/components/reports/ReportSidebar.tsx
@@ -4,9 +4,11 @@ import { useTranslation } from 'react-i18next';
import { Button } from '@actual-app/components/button';
import { Menu } from '@actual-app/components/menu';
import { Popover } from '@actual-app/components/popover';
+import { Select, type SelectOption } from '@actual-app/components/select';
import { SpaceBetween } from '@actual-app/components/space-between';
import { styles } from '@actual-app/components/styles';
import { Text } from '@actual-app/components/text';
+import { theme } from '@actual-app/components/theme';
import { Tooltip } from '@actual-app/components/tooltip';
import { View } from '@actual-app/components/view';
@@ -20,9 +22,7 @@ import {
} from 'loot-core/types/models/reports';
import { type SyncedPrefs } from 'loot-core/types/prefs';
-import { theme } from '../../style/theme';
import { Information } from '../alerts';
-import { Select, type SelectOption } from '../common/Select';
import { CategorySelector } from './CategorySelector';
import { defaultsList, disabledList } from './disabledList';
diff --git a/packages/desktop-client/src/components/reports/reports/Spending.tsx b/packages/desktop-client/src/components/reports/reports/Spending.tsx
index 326ed9caeb..4b38d857a1 100644
--- a/packages/desktop-client/src/components/reports/reports/Spending.tsx
+++ b/packages/desktop-client/src/components/reports/reports/Spending.tsx
@@ -6,6 +6,7 @@ import { AlignedText } from '@actual-app/components/aligned-text';
import { Block } from '@actual-app/components/block';
import { Button } from '@actual-app/components/button';
import { Paragraph } from '@actual-app/components/paragraph';
+import { Select } from '@actual-app/components/select';
import { SpaceBetween } from '@actual-app/components/space-between';
import { styles } from '@actual-app/components/styles';
import { Text } from '@actual-app/components/text';
@@ -26,7 +27,6 @@ import { useFilters } from '../../../hooks/useFilters';
import { useLocale } from '../../../hooks/useLocale';
import { useNavigate } from '../../../hooks/useNavigate';
import { useDispatch } from '../../../redux';
-import { Select } from '../../common/Select';
import { EditablePageHeaderTitle } from '../../EditablePageHeaderTitle';
import { AppliedFilters } from '../../filters/AppliedFilters';
import { FilterButton } from '../../filters/FiltersMenu';
diff --git a/packages/desktop-client/src/components/schedules/CustomUpcomingLength.tsx b/packages/desktop-client/src/components/schedules/CustomUpcomingLength.tsx
index d84b50c529..1d5a073802 100644
--- a/packages/desktop-client/src/components/schedules/CustomUpcomingLength.tsx
+++ b/packages/desktop-client/src/components/schedules/CustomUpcomingLength.tsx
@@ -1,8 +1,9 @@
import React, { useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
+import { Select } from '@actual-app/components/select';
+
import { Input } from '../common/Input';
-import { Select } from '../common/Select';
type CustomUpcomingLengthProps = {
onChange: (value: string) => void;
diff --git a/packages/desktop-client/src/components/schedules/UpcomingLength.tsx b/packages/desktop-client/src/components/schedules/UpcomingLength.tsx
index e263b32b24..bc428515ea 100644
--- a/packages/desktop-client/src/components/schedules/UpcomingLength.tsx
+++ b/packages/desktop-client/src/components/schedules/UpcomingLength.tsx
@@ -3,13 +3,13 @@ import { Trans, useTranslation } from 'react-i18next';
import { Button } from '@actual-app/components/button';
import { Paragraph } from '@actual-app/components/paragraph';
+import { Select } from '@actual-app/components/select';
import { View } from '@actual-app/components/view';
import { type SyncedPrefs } from 'loot-core/types/prefs';
import { useSyncedPref } from '../../hooks/useSyncedPref';
import { Modal, ModalCloseButton, ModalHeader } from '../common/Modal';
-import { Select } from '../common/Select';
import { CustomUpcomingLength } from './CustomUpcomingLength';
diff --git a/packages/desktop-client/src/components/select/RecurringSchedulePicker.tsx b/packages/desktop-client/src/components/select/RecurringSchedulePicker.tsx
index 3e5adfff56..d28f667375 100644
--- a/packages/desktop-client/src/components/select/RecurringSchedulePicker.tsx
+++ b/packages/desktop-client/src/components/select/RecurringSchedulePicker.tsx
@@ -10,11 +10,14 @@ import {
import { useTranslation, Trans } from 'react-i18next';
import { Button } from '@actual-app/components/button';
+import { SvgAdd, SvgSubtract } from '@actual-app/components/icons/v0';
import { InitialFocus } from '@actual-app/components/initial-focus';
import { Menu } from '@actual-app/components/menu';
import { Popover } from '@actual-app/components/popover';
+import { Select } from '@actual-app/components/select';
import { Stack } from '@actual-app/components/stack';
import { Text } from '@actual-app/components/text';
+import { theme } from '@actual-app/components/theme';
import { View } from '@actual-app/components/view';
import { sendCatch } from 'loot-core/platform/client/fetch';
@@ -28,10 +31,7 @@ import {
import { useDateFormat } from '../../hooks/useDateFormat';
import { useLocale } from '../../hooks/useLocale';
-import { SvgAdd, SvgSubtract } from '../../icons/v0';
-import { theme } from '../../style';
import { Input } from '../common/Input';
-import { Select } from '../common/Select';
import { Checkbox } from '../forms';
import { DateSelect } from './DateSelect';
diff --git a/packages/desktop-client/src/components/settings/Format.tsx b/packages/desktop-client/src/components/settings/Format.tsx
index 79cd84cbf4..0258622c75 100644
--- a/packages/desktop-client/src/components/settings/Format.tsx
+++ b/packages/desktop-client/src/components/settings/Format.tsx
@@ -2,7 +2,9 @@
import React, { type ReactNode } from 'react';
import { useTranslation, Trans } from 'react-i18next';
+import { Select } from '@actual-app/components/select';
import { Text } from '@actual-app/components/text';
+import { theme } from '@actual-app/components/theme';
import { View } from '@actual-app/components/view';
import { css } from '@emotion/css';
@@ -11,9 +13,7 @@ import { type SyncedPrefs } from 'loot-core/types/prefs';
import { useDateFormat } from '../../hooks/useDateFormat';
import { useSyncedPref } from '../../hooks/useSyncedPref';
-import { theme } from '../../style';
import { tokens } from '../../tokens';
-import { Select } from '../common/Select';
import { Checkbox } from '../forms';
import { useSidebar } from '../sidebar/SidebarProvider';
diff --git a/packages/desktop-client/src/components/settings/LanguageSettings.tsx b/packages/desktop-client/src/components/settings/LanguageSettings.tsx
index 60b5d785e0..2c04986a95 100644
--- a/packages/desktop-client/src/components/settings/LanguageSettings.tsx
+++ b/packages/desktop-client/src/components/settings/LanguageSettings.tsx
@@ -2,13 +2,13 @@ import React from 'react';
import { Trans, useTranslation } from 'react-i18next';
import { Menu } from '@actual-app/components/menu';
+import { Select, type SelectOption } from '@actual-app/components/select';
import { Text } from '@actual-app/components/text';
import { type TFunction } from 'i18next';
import { useGlobalPref } from '../../hooks/useGlobalPref';
import { availableLanguages, setI18NextLanguage } from '../../i18n';
import { Link } from '../common/Link';
-import { Select, type SelectOption } from '../common/Select';
import { Setting } from './UI';
diff --git a/packages/desktop-client/src/components/settings/Themes.tsx b/packages/desktop-client/src/components/settings/Themes.tsx
index 8da67b3641..a2c6dfd132 100644
--- a/packages/desktop-client/src/components/settings/Themes.tsx
+++ b/packages/desktop-client/src/components/settings/Themes.tsx
@@ -1,7 +1,9 @@
import React, { type ReactNode } from 'react';
import { useTranslation, Trans } from 'react-i18next';
+import { Select } from '@actual-app/components/select';
import { Text } from '@actual-app/components/text';
+import { theme as themeStyle } from '@actual-app/components/theme';
import { View } from '@actual-app/components/view';
import { css } from '@emotion/css';
@@ -10,12 +12,10 @@ import { type DarkTheme, type Theme } from 'loot-core/types/prefs';
import {
themeOptions,
useTheme,
- theme as themeStyle,
usePreferredDarkTheme,
darkThemeOptions,
} from '../../style';
import { tokens } from '../../tokens';
-import { Select } from '../common/Select';
import { useSidebar } from '../sidebar/SidebarProvider';
import { Setting } from './UI';
diff --git a/upcoming-release-notes/4556.md b/upcoming-release-notes/4556.md
new file mode 100644
index 0000000000..eae95e16a3
--- /dev/null
+++ b/upcoming-release-notes/4556.md
@@ -0,0 +1,6 @@
+---
+category: Maintenance
+authors: [MatissJanis]
+---
+
+Moving `Select` component to `@actual-app/components` package.