The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Move IconsProvider out of twenty-ui/icon so icon imports don't ship every icon (#29386)
Félix Malfait478aa420d42a
diff --git a/packages/twenty-agent-skills/references/develop-app/front-components.md b/packages/twenty-agent-skills/references/develop-app/front-components.mdindex f7f21d3d98b..5e4baa4bcb6 100644--- a/packages/twenty-agent-skills/references/develop-app/front-components.md+++ b/packages/twenty-agent-skills/references/develop-app/front-components.md@@ -54,7 +54,7 @@ Read theme tokens with the `useTheme()` hook from `twenty-ui/theme` inside the cPrefer Twenty UI icons from `twenty-ui/icon` when one exists. Use inline SVG only for app-specific marks or icons that are not available from `twenty-ui/icon`.-Import individual icons, not `IconsProvider` or `useIcons`, which bundle the dynamic icon catalog. Use `themeCssVariables` only for CSS values inside render-time code. In front components, `useTheme()` also returns CSS reference strings by default, including for tokens typed as numbers. Do not perform arithmetic on those references or pass them to APIs requiring resolved numbers.+Import individual icons, not `twenty-ui/icon/provider` (`IconsProvider`, `useIcons`, by-name `Icon`), which bundles the dynamic icon catalog. Use `themeCssVariables` only for CSS values inside render-time code. In front components, `useTheme()` also returns CSS reference strings by default, including for tokens typed as numbers. Do not perform arithmetic on those references or pass them to APIs requiring resolved numbers.## Host UI And Runtime Constraintsdiff --git a/packages/twenty-cli/app-template/example/files/AGENTS.md b/packages/twenty-cli/app-template/example/files/AGENTS.mdindex ff4acf1dd8d..ede98411fa4 100644--- a/packages/twenty-cli/app-template/example/files/AGENTS.md+++ b/packages/twenty-cli/app-template/example/files/AGENTS.md@@ -42,7 +42,7 @@For front component work, follow the official `develop-app` skill when installed. Install the official skills with `npx skills add https://github.com/twentyhq/twenty/tree/agent-skills --skill '*'`. Apply these essentials even when no skills are installed:- For every visible front component, use `twenty-ui` components by default. Reuse an equivalent Twenty UI control before writing a custom control or adding another UI library. Plain HTML is appropriate for layout containers and content without a Twenty UI equivalent.-- Import from public family subpaths: `twenty-ui/components/input` for `MainButton` and `LightButton`, `twenty-ui/primitives/input` for foundational controls, `twenty-ui/primitives/typography` for text, and the matching family for other components. Import individual icons from `twenty-ui/icon`, never `IconsProvider` or `useIcons`. Keep `twenty-ui`, `twenty-sdk` and `twenty-client-sdk` pinned to the same version in `devDependencies`.+- Import from public family subpaths: `twenty-ui/components/input` for `MainButton` and `LightButton`, `twenty-ui/primitives/input` for foundational controls, `twenty-ui/primitives/typography` for text, and the matching family for other components. Import individual icons from `twenty-ui/icon`, never from `twenty-ui/icon/provider`. Keep `twenty-ui`, `twenty-sdk` and `twenty-client-sdk` pinned to the same version in `devDependencies`.- The renderer supplies styles and the workspace theme. Use `useTheme()` from `twenty-ui/theme` inside the component for spacing, colors, typography and radii. Do not add a root `ThemeProvider`, force a color scheme, or copy standalone stylesheet setup into a front component. Never dereference theme tokens at module top level, since entity files also run during manifest extraction.- Use component props before custom styles. Keep layouts compact and responsive to widget width, give inputs visible labels and icon-only actions accessible names, and handle loading, empty, error, disabled and saving states. Verify light and dark themes, narrow widths and long values.- Use `openCommandConfirmationModal` or `CommandModal` from `twenty-sdk/front-component` for confirmation dialogs and `enqueueSnackbar` for notifications. Do not render `Dialog`, `AlertDialog`, native `dialog` elements or native browser popovers directly. Use Twenty UI `Dropdown` for menus and pickers.diff --git a/packages/twenty-docs/developers/extend/apps/layout/front-components.mdx b/packages/twenty-docs/developers/extend/apps/layout/front-components.mdxindex aff4bcdad4c..88144105520 100644--- a/packages/twenty-docs/developers/extend/apps/layout/front-components.mdx+++ b/packages/twenty-docs/developers/extend/apps/layout/front-components.mdx@@ -1046,7 +1046,7 @@ Import individual icons from `twenty-ui/icon`:import { IconBox, IconCheck } from 'twenty-ui/icon';```-Each named icon is tree-shaken, so importing a handful adds little to your bundle. Avoid `IconsProvider` and `useIcons` in front components. Front components are bundled without code splitting, so the provider's dynamic icon catalog (the full Tabler set, roughly 2 MB minified) ends up in your bundle. See the [icon reference](/ui/icons) for available exports and supported props.+Each named icon is tree-shaken, so importing a handful adds little to your bundle. Avoid `twenty-ui/icon/provider` (`IconsProvider`, `useIcons` and the by-name `Icon`) in front components. Front components are bundled without code splitting, so the provider's dynamic icon catalog (the full Tabler set, roughly 2 MB minified) ends up in your bundle. See the [icon reference](/ui/icons) for available exports and supported props.### Theming and theme tokensdiff --git a/packages/twenty-docs/ui/icons.mdx b/packages/twenty-docs/ui/icons.mdxindex 16d70518841..b619421d3d6 100644--- a/packages/twenty-docs/ui/icons.mdx+++ b/packages/twenty-docs/ui/icons.mdx@@ -36,10 +36,10 @@ Exported icons keep their requested width in flex layouts, including inside butt## Dynamic icon names-Use `IconsProvider` and `Icon` when names are chosen at runtime. The provider loads the complete icon map asynchronously; bundles built without code splitting, such as front components, include the whole map. Before loading completes, and for unknown names, `Icon` renders `Icon123`. The dynamic map differs from the named export catalog; do not assume every brand or illustration export can be resolved by name.+Use `IconsProvider` and `Icon` from `twenty-ui/icon/provider` when names are chosen at runtime. The provider loads the complete icon map asynchronously; bundles built without code splitting, such as front components, include the whole map. `twenty-ui/icon` does not include the provider, so importing named icons never pulls in the map. Before loading completes, and for unknown names, `Icon` renders `Icon123`. The dynamic map differs from the named export catalog; do not assume every brand or illustration export can be resolved by name.```tsx-import { Icon, IconsProvider } from 'twenty-ui/icon';+import { Icon, IconsProvider } from 'twenty-ui/icon/provider';import { Button } from 'twenty-ui/primitives/input';export const DynamicAction = ({ iconName }: { iconName: string }) => (diff --git a/packages/twenty-front/src/modules/activities/timeline-activities/rows/components/EventIconDynamicComponent.tsx b/packages/twenty-front/src/modules/activities/timeline-activities/rows/components/EventIconDynamicComponent.tsxindex cc066703d84..f9d907d2f1a 100644--- a/packages/twenty-front/src/modules/activities/timeline-activities/rows/components/EventIconDynamicComponent.tsx+++ b/packages/twenty-front/src/modules/activities/timeline-activities/rows/components/EventIconDynamicComponent.tsx@@ -1,7 +1,7 @@import { ObjectMetadataIcon } from '@/object-metadata/components/ObjectMetadataIcon';import { type EnrichedObjectMetadataItem } from '@/object-metadata/types/EnrichedObjectMetadataItem';import { isDefined } from 'twenty-shared/utils';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { useTheme } from 'twenty-ui/theme';export const EventIconDynamicComponent = ({diff --git a/packages/twenty-front/src/modules/activities/timeline-activities/rows/main-object/components/EventFieldDiffLabel.tsx b/packages/twenty-front/src/modules/activities/timeline-activities/rows/main-object/components/EventFieldDiffLabel.tsxindex d15ba228ae7..27fd450ce0d 100644--- a/packages/twenty-front/src/modules/activities/timeline-activities/rows/main-object/components/EventFieldDiffLabel.tsx+++ b/packages/twenty-front/src/modules/activities/timeline-activities/rows/main-object/components/EventFieldDiffLabel.tsx@@ -1,7 +1,8 @@import { styled } from '@linaria/react';import { type FieldMetadataItem } from '@/object-metadata/types/FieldMetadataItem';-import { Icon123, useIcons } from 'twenty-ui/icon';+import { Icon123 } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { themeCssVariables, useTheme } from 'twenty-ui/theme';type EventFieldDiffLabelProps = {diff --git a/packages/twenty-front/src/modules/ai/components/AiChatAddMenuSkillsPage.tsx b/packages/twenty-front/src/modules/ai/components/AiChatAddMenuSkillsPage.tsxindex 3ca9fbf5274..8e4459d7ede 100644--- a/packages/twenty-front/src/modules/ai/components/AiChatAddMenuSkillsPage.tsx+++ b/packages/twenty-front/src/modules/ai/components/AiChatAddMenuSkillsPage.tsx@@ -6,7 +6,8 @@ import { useId, useState } from 'react';import { SettingsPath } from 'twenty-shared/types';import { isDefined } from 'twenty-shared/utils';import { Dropdown, useDropdownPage } from 'twenty-ui/components/navigation';-import { IconPlus, useIcons } from 'twenty-ui/icon';+import { IconPlus } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { useIsMobile } from 'twenty-ui/utilities';import { useHasPermissionFlag } from '@/settings/roles/hooks/useHasPermissionFlag';diff --git a/packages/twenty-front/src/modules/ai/components/NavigationDrawerAiChatChannelRolesSubmenu.tsx b/packages/twenty-front/src/modules/ai/components/NavigationDrawerAiChatChannelRolesSubmenu.tsxindex 81585544dff..3e451cf2fc5 100644--- a/packages/twenty-front/src/modules/ai/components/NavigationDrawerAiChatChannelRolesSubmenu.tsx+++ b/packages/twenty-front/src/modules/ai/components/NavigationDrawerAiChatChannelRolesSubmenu.tsx@@ -2,7 +2,8 @@ import { useQuery } from '@apollo/client/react';import { useLingui } from '@lingui/react/macro';import { useState } from 'react';import { Dropdown } from 'twenty-ui/components/navigation';-import { IconLock, useIcons } from 'twenty-ui/icon';+import { IconLock } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { GetAgentChatChannelRolesDocument } from '~/generated-metadata/graphql';diff --git a/packages/twenty-front/src/modules/ai/components/ToolRecordsWidget.tsx b/packages/twenty-front/src/modules/ai/components/ToolRecordsWidget.tsxindex 970f42dc241..d36a90fb330 100644--- a/packages/twenty-front/src/modules/ai/components/ToolRecordsWidget.tsx+++ b/packages/twenty-front/src/modules/ai/components/ToolRecordsWidget.tsx@@ -6,7 +6,7 @@ import { LinkChip } from '@/ui/navigation/link/components/LinkChip/LinkChip';import { type ToolRecordReference } from 'twenty-shared/ai';import { AppPath } from 'twenty-shared/types';import { getAppPath, isDefined } from 'twenty-shared/utils';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { themeCssVariables } from 'twenty-ui/theme';import { useObjectMetadataItems } from '@/object-metadata/hooks/useObjectMetadataItems';diff --git a/packages/twenty-front/src/modules/ai/hooks/useAgentChatChannelIcon.ts b/packages/twenty-front/src/modules/ai/hooks/useAgentChatChannelIcon.tsindex 0a3bbd0b53a..dc31a84fcaa 100644--- a/packages/twenty-front/src/modules/ai/hooks/useAgentChatChannelIcon.ts+++ b/packages/twenty-front/src/modules/ai/hooks/useAgentChatChannelIcon.ts@@ -1,5 +1,6 @@import { isDefined } from 'twenty-shared/utils';-import { IconHash, useIcons } from 'twenty-ui/icon';+import { IconHash } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';// The icon set loads lazily, so the default stands in until it hasexport const useAgentChatChannelIcon = (icon: string | null | undefined) => {diff --git a/packages/twenty-front/src/modules/ai/hooks/useChatReferenceTarget.tsx b/packages/twenty-front/src/modules/ai/hooks/useChatReferenceTarget.tsxindex e299b7a3f8c..d91efd20c7d 100644--- a/packages/twenty-front/src/modules/ai/hooks/useChatReferenceTarget.tsx+++ b/packages/twenty-front/src/modules/ai/hooks/useChatReferenceTarget.tsx@@ -7,7 +7,8 @@ import {getSettingsPath,isDefined,} from 'twenty-shared/utils';-import { IconApps, IconLock, useIcons } from 'twenty-ui/icon';+import { IconApps, IconLock } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { Avatar } from 'twenty-ui/primitives/data-display';import { useTheme } from 'twenty-ui/theme';diff --git a/packages/twenty-front/src/modules/app/components/App.tsx b/packages/twenty-front/src/modules/app/components/App.tsxindex c2e59edeaab..30a5cc6f7e7 100644--- a/packages/twenty-front/src/modules/app/components/App.tsx+++ b/packages/twenty-front/src/modules/app/components/App.tsx@@ -12,7 +12,7 @@ import { i18n } from '@lingui/core';import { I18nProvider } from '@lingui/react';import { Provider as JotaiProvider } from 'jotai';import { ToastProvider } from 'twenty-ui/components/feedback';-import { IconsProvider } from 'twenty-ui/icon';+import { IconsProvider } from 'twenty-ui/icon/provider';import { initialI18nActivate } from '~/utils/i18n/initialI18nActivate';initialI18nActivate();diff --git a/packages/twenty-front/src/modules/command-menu-item/display/components/PinnedCommandMenuItemsInlineMeasurements.tsx b/packages/twenty-front/src/modules/command-menu-item/display/components/PinnedCommandMenuItemsInlineMeasurements.tsxindex 45827fd2d06..7750b8f8963 100644--- a/packages/twenty-front/src/modules/command-menu-item/display/components/PinnedCommandMenuItemsInlineMeasurements.tsx+++ b/packages/twenty-front/src/modules/command-menu-item/display/components/PinnedCommandMenuItemsInlineMeasurements.tsx@@ -9,7 +9,7 @@ import { COMMAND_MENU_DEFAULT_ICON } from '@/workflow/workflow-trigger/constantsimport { styled } from '@linaria/react';import { Fragment, useContext } from 'react';import { isDefined } from 'twenty-shared/utils';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { type CommandMenuItemFieldsFragment } from '~/generated-metadata/graphql';type ElementDimensions = {diff --git a/packages/twenty-front/src/modules/command-menu-item/display/hooks/useCommandMenuItemCurrentViewSectionContext.tsx b/packages/twenty-front/src/modules/command-menu-item/display/hooks/useCommandMenuItemCurrentViewSectionContext.tsxindex cefb6abd870..129ce4840e7 100644--- a/packages/twenty-front/src/modules/command-menu-item/display/hooks/useCommandMenuItemCurrentViewSectionContext.tsx+++ b/packages/twenty-front/src/modules/command-menu-item/display/hooks/useCommandMenuItemCurrentViewSectionContext.tsx@@ -1,5 +1,5 @@import { isDefined } from 'twenty-shared/utils';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { useTheme } from 'twenty-ui/theme';import { type CommandMenuItemSectionContext } from '@/command-menu-item/types/CommandMenuItemSectionContext';diff --git a/packages/twenty-front/src/modules/command-menu-item/display/hooks/useCommandMenuItemDisplay.ts b/packages/twenty-front/src/modules/command-menu-item/display/hooks/useCommandMenuItemDisplay.tsindex aea2e714054..332b9a2db83 100644--- a/packages/twenty-front/src/modules/command-menu-item/display/hooks/useCommandMenuItemDisplay.ts+++ b/packages/twenty-front/src/modules/command-menu-item/display/hooks/useCommandMenuItemDisplay.ts@@ -4,7 +4,7 @@ import { useCommandMenuItemClick } from '@/command-menu-item/hooks/useCommandMenimport { type CommandMenuItemDefinition } from '@/command-menu-item/types/CommandMenuItemDefinition';import { COMMAND_MENU_DEFAULT_ICON } from '@/workflow/workflow-trigger/constants/CommandMenuDefaultIcon';import { useContext } from 'react';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';export const useCommandMenuItemDisplay = (item: CommandMenuItemDefinition) => {const { commandMenuContextApi } = useContext(CommandMenuContext);diff --git a/packages/twenty-front/src/modules/command-menu-item/edit/components/SidePanelCommandMenuItemEditPage.tsx b/packages/twenty-front/src/modules/command-menu-item/edit/components/SidePanelCommandMenuItemEditPage.tsxindex 975491b035b..ba870af473f 100644--- a/packages/twenty-front/src/modules/command-menu-item/edit/components/SidePanelCommandMenuItemEditPage.tsx+++ b/packages/twenty-front/src/modules/command-menu-item/edit/components/SidePanelCommandMenuItemEditPage.tsx@@ -26,12 +26,8 @@ import { ContextStorePageType } from 'twenty-shared/types';import { isDefined } from 'twenty-shared/utils';import { LightIconButton } from 'twenty-ui/components/input';import { ListItem } from 'twenty-ui/primitives/navigation';-import {- IconDotsVertical,- IconPin,- IconPinnedOff,- useIcons,-} from 'twenty-ui/icon';+import { IconDotsVertical, IconPin, IconPinnedOff } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { ButtonGroup } from 'twenty-ui/primitives/input';import { themeCssVariables } from 'twenty-ui/theme';import { type CommandMenuItemFieldsFragment } from '~/generated-metadata/graphql';diff --git a/packages/twenty-front/src/modules/command-menu/hooks/__tests__/useWorkflowCommandMenu.test.tsx b/packages/twenty-front/src/modules/command-menu/hooks/__tests__/useWorkflowCommandMenu.test.tsxindex 6a6eeb421b7..8f1920e6269 100644--- a/packages/twenty-front/src/modules/command-menu/hooks/__tests__/useWorkflowCommandMenu.test.tsx+++ b/packages/twenty-front/src/modules/command-menu/hooks/__tests__/useWorkflowCommandMenu.test.tsx@@ -13,7 +13,8 @@ import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useimport { t } from '@lingui/core/macro';import { act } from 'react';import { SidePanelPages } from 'twenty-shared/types';-import { IconBolt, IconSettingsAutomation, useIcons } from 'twenty-ui/icon';+import { IconBolt, IconSettingsAutomation } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { getJestMetadataAndApolloMocksAndCommandMenuWrapper } from '~/testing/jest/getJestMetadataAndApolloMocksAndCommandMenuWrapper';import { getTestEnrichedObjectMetadataItemsMock } from '~/testing/utils/getTestEnrichedObjectMetadataItemsMock';diff --git a/packages/twenty-front/src/modules/front-components/hooks/__tests__/useFrontComponentExecutionContext.test.tsx b/packages/twenty-front/src/modules/front-components/hooks/__tests__/useFrontComponentExecutionContext.test.tsxindex 9cacfe3107d..61b6c945171 100644--- a/packages/twenty-front/src/modules/front-components/hooks/__tests__/useFrontComponentExecutionContext.test.tsx+++ b/packages/twenty-front/src/modules/front-components/hooks/__tests__/useFrontComponentExecutionContext.test.tsx@@ -151,7 +151,7 @@ jest.mock('@/side-panel/hooks/useSidePanelMenu', () => ({}),}));-jest.mock('twenty-ui/icon', () => ({+jest.mock('twenty-ui/icon/provider', () => ({useIcons: () => ({getIcon: mockGetIcon,}),diff --git a/packages/twenty-front/src/modules/front-components/hooks/useFrontComponentExecutionContext.ts b/packages/twenty-front/src/modules/front-components/hooks/useFrontComponentExecutionContext.tsindex 2464802e778..71be19c2dc3 100644--- a/packages/twenty-front/src/modules/front-components/hooks/useFrontComponentExecutionContext.ts+++ b/packages/twenty-front/src/modules/front-components/hooks/useFrontComponentExecutionContext.ts@@ -56,7 +56,7 @@ import { useStore } from 'jotai';import { CustomError, getAppPath, isDefined } from 'twenty-shared/utils';import { doNotTranslate } from 'twenty-shared/i18n';import { useToast } from 'twenty-ui/components/feedback';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { useIsMobile } from 'twenty-ui/utilities';import { FileFolder } from '~/generated-metadata/graphql';import { useCopyToClipboard } from '~/hooks/useCopyToClipboard';diff --git a/packages/twenty-front/src/modules/log-console/components/LogConsoleRecordChangeDetail.tsx b/packages/twenty-front/src/modules/log-console/components/LogConsoleRecordChangeDetail.tsxindex 9abbc672a2e..6a21a91af1a 100644--- a/packages/twenty-front/src/modules/log-console/components/LogConsoleRecordChangeDetail.tsx+++ b/packages/twenty-front/src/modules/log-console/components/LogConsoleRecordChangeDetail.tsx@@ -5,7 +5,8 @@ import { ErrorBoundary } from 'react-error-boundary';import { FieldMetadataType } from 'twenty-shared/types';import { isDefined, isNonEmptyArray } from 'twenty-shared/utils';import { Section } from 'twenty-ui/components/layout';-import { IconArrowUpRight, useIcons } from 'twenty-ui/icon';+import { IconArrowUpRight } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { Button } from 'twenty-ui/primitives/input';import { themeCssVariables } from 'twenty-ui/theme';diff --git a/packages/twenty-front/src/modules/navigation-menu-item/display/components/NavigationMenuItemIcon.tsx b/packages/twenty-front/src/modules/navigation-menu-item/display/components/NavigationMenuItemIcon.tsxindex 165214e1cb8..f2b31b00ffc 100644--- a/packages/twenty-front/src/modules/navigation-menu-item/display/components/NavigationMenuItemIcon.tsx+++ b/packages/twenty-front/src/modules/navigation-menu-item/display/components/NavigationMenuItemIcon.tsx@@ -4,7 +4,8 @@ import { ColoredIcon } from '@/ui/icon/components/ColoredIcon';import { NavigationMenuItemType } from 'twenty-shared/types';import { isDefined, isSafeInternalPath } from 'twenty-shared/utils';import { getIconTileColorShades } from 'twenty-ui/components/data-display';-import { IconLink, IconPerspective, IconWorld, useIcons } from 'twenty-ui/icon';+import { IconLink, IconPerspective, IconWorld } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { Avatar } from 'twenty-ui/primitives/data-display';import { themeCssVariables } from 'twenty-ui/theme';import { type NavigationMenuItem } from '~/generated-metadata/graphql';diff --git a/packages/twenty-front/src/modules/navigation-menu-item/display/folder/components/NavigationMenuItemFolder.tsx b/packages/twenty-front/src/modules/navigation-menu-item/display/folder/components/NavigationMenuItemFolder.tsxindex ec219f374be..ce85b963a24 100644--- a/packages/twenty-front/src/modules/navigation-menu-item/display/folder/components/NavigationMenuItemFolder.tsx+++ b/packages/twenty-front/src/modules/navigation-menu-item/display/folder/components/NavigationMenuItemFolder.tsx@@ -3,7 +3,7 @@ import { ColoredIcon } from '@/ui/icon/components/ColoredIcon';import { NavigationMenuItemFolderChevron } from '@/navigation-menu-item/display/folder/components/NavigationMenuItemFolderChevron';import { getFolderNavigationMenuItemLabel } from '@/navigation-menu-item/display/folder/utils/getFolderNavigationMenuItemLabel';import { Suspense, lazy } from 'react';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { useIsMobile } from 'twenty-ui/utilities';import { type NavigationMenuItem } from '~/generated-metadata/graphql';diff --git a/packages/twenty-front/src/modules/navigation-menu-item/display/folder/components/NavigationMenuItemFolderDnd.tsx b/packages/twenty-front/src/modules/navigation-menu-item/display/folder/components/NavigationMenuItemFolderDnd.tsxindex f1b61f83972..ffd0564454a 100644--- a/packages/twenty-front/src/modules/navigation-menu-item/display/folder/components/NavigationMenuItemFolderDnd.tsx+++ b/packages/twenty-front/src/modules/navigation-menu-item/display/folder/components/NavigationMenuItemFolderDnd.tsx@@ -11,7 +11,8 @@ import React, { Fragment, useContext } from 'react';import { createPortal } from 'react-dom';import { isDefined } from 'twenty-shared/utils';import { LightIconButton } from 'twenty-ui/components/input';-import { IconHeartOff, IconPlus, useIcons } from 'twenty-ui/icon';+import { IconHeartOff, IconPlus } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { themeCssVariables } from 'twenty-ui/theme';import { useIsMobile } from 'twenty-ui/utilities';import { type NavigationMenuItem } from '~/generated-metadata/graphql';diff --git a/packages/twenty-front/src/modules/navigation-menu-item/display/object/components/NavigationDrawerItemForObjectMetadataItem.tsx b/packages/twenty-front/src/modules/navigation-menu-item/display/object/components/NavigationDrawerItemForObjectMetadataItem.tsxindex 307aeb72d55..e4d821a3ce2 100644--- a/packages/twenty-front/src/modules/navigation-menu-item/display/object/components/NavigationDrawerItemForObjectMetadataItem.tsx+++ b/packages/twenty-front/src/modules/navigation-menu-item/display/object/components/NavigationDrawerItemForObjectMetadataItem.tsx@@ -28,7 +28,8 @@ import {} from 'twenty-shared/types';import { isDefined } from 'twenty-shared/utils';import { Avatar } from 'twenty-ui/primitives/data-display';-import { IconLock, useIcons } from 'twenty-ui/icon';+import { IconLock } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { useTheme, themeCssVariables } from 'twenty-ui/theme';import { type NavigationMenuItem } from '~/generated-metadata/graphql';import { getAbsoluteImageUrl } from '~/utils/image/getAbsoluteImageUrl';diff --git a/packages/twenty-front/src/modules/navigation-menu-item/edit/components/NavigationMenuItemActions.tsx b/packages/twenty-front/src/modules/navigation-menu-item/edit/components/NavigationMenuItemActions.tsxindex 613978e2968..f6e66d11563 100644--- a/packages/twenty-front/src/modules/navigation-menu-item/edit/components/NavigationMenuItemActions.tsx+++ b/packages/twenty-front/src/modules/navigation-menu-item/edit/components/NavigationMenuItemActions.tsx@@ -8,12 +8,12 @@ import {IconChevronUp,IconChevronDown,IconHierarchy2,- useIcons,IconFolderSymlink,IconRowInsertTop,IconRowInsertBottom,IconTrash,} from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { ColoredIcon } from '@/ui/icon/components/ColoredIcon';import { type NavigationMenuItem } from '~/generated-metadata/graphql';import { useNavigationMenuItemMoveRemove } from '@/navigation-menu-item/edit/hooks/useNavigationMenuItemMoveRemove';diff --git a/packages/twenty-front/src/modules/navigation-menu-item/edit/components/NavigationMenuItemInlineEditor.tsx b/packages/twenty-front/src/modules/navigation-menu-item/edit/components/NavigationMenuItemInlineEditor.tsxindex 0b86c3f80ad..5575c2323d5 100644--- a/packages/twenty-front/src/modules/navigation-menu-item/edit/components/NavigationMenuItemInlineEditor.tsx+++ b/packages/twenty-front/src/modules/navigation-menu-item/edit/components/NavigationMenuItemInlineEditor.tsx@@ -1,7 +1,7 @@import { navigationMenuItemIdToRenameState } from '@/navigation-menu-item/common/states/navigationMenuItemIdToRenameState';import { getLinkNavigationMenuItemLabel } from '@/navigation-menu-item/display/link/utils/getLinkNavigationMenuItemLabel';import { ColoredIcon } from '@/ui/icon/components/ColoredIcon';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { NavigationMenuItemNameInputFocusEffect } from '@/navigation-menu-item/edit/effect-components/NavigationMenuItemNameInputFocusEffect';import { useState, type ReactNode } from 'react';import { styled } from '@linaria/react';diff --git a/packages/twenty-front/src/modules/navigation-menu-item/edit/components/NavigationMenuItemInsertionPreview.tsx b/packages/twenty-front/src/modules/navigation-menu-item/edit/components/NavigationMenuItemInsertionPreview.tsxindex bbb95a4c358..6b2ffc67e3a 100644--- a/packages/twenty-front/src/modules/navigation-menu-item/edit/components/NavigationMenuItemInsertionPreview.tsx+++ b/packages/twenty-front/src/modules/navigation-menu-item/edit/components/NavigationMenuItemInsertionPreview.tsx@@ -9,7 +9,7 @@ import { NavigationDrawerItem } from '@/ui/navigation/navigation-drawer/componenimport { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';import { styled } from '@linaria/react';import { useLingui } from '@lingui/react/macro';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { themeCssVariables } from 'twenty-ui/theme';type NavigationMenuItemInsertionPreviewProps = {diff --git a/packages/twenty-front/src/modules/navigation-menu-item/edit/hooks/useNavigationMenuItemAddOptions.tsx b/packages/twenty-front/src/modules/navigation-menu-item/edit/hooks/useNavigationMenuItemAddOptions.tsxindex 197b34563e9..93cd5526c75 100644--- a/packages/twenty-front/src/modules/navigation-menu-item/edit/hooks/useNavigationMenuItemAddOptions.tsx+++ b/packages/twenty-front/src/modules/navigation-menu-item/edit/hooks/useNavigationMenuItemAddOptions.tsx@@ -10,8 +10,8 @@ import {IconLink,IconPerspective,IconTable,- useIcons,} from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { Avatar } from 'twenty-ui/primitives/data-display';import { useTheme } from 'twenty-ui/theme';import {diff --git a/packages/twenty-front/src/modules/object-core/agents/components/CoreAgentFormContent.tsx b/packages/twenty-front/src/modules/object-core/agents/components/CoreAgentFormContent.tsxindex 0bfb858a182..2a6c4ddc3ac 100644--- a/packages/twenty-front/src/modules/object-core/agents/components/CoreAgentFormContent.tsx+++ b/packages/twenty-front/src/modules/object-core/agents/components/CoreAgentFormContent.tsx@@ -3,13 +3,8 @@ import { t } from '@lingui/core/macro';import { useState } from 'react';import { isDefined } from 'twenty-shared/utils';import { Section } from 'twenty-ui/components/layout';-import {- IconBolt,- IconLock,- IconSettings,- IconTerminal,- useIcons,-} from 'twenty-ui/icon';+import { IconBolt, IconLock, IconSettings, IconTerminal } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { useTheme, themeCssVariables } from 'twenty-ui/theme';import { SettingsPageContainer } from '@/settings/components/SettingsPageContainer';diff --git a/packages/twenty-front/src/modules/object-core/agents/components/CoreAgentNameCell.tsx b/packages/twenty-front/src/modules/object-core/agents/components/CoreAgentNameCell.tsxindex 6bb41b08724..0741dda3821 100644--- a/packages/twenty-front/src/modules/object-core/agents/components/CoreAgentNameCell.tsx+++ b/packages/twenty-front/src/modules/object-core/agents/components/CoreAgentNameCell.tsx@@ -1,5 +1,5 @@import { isNonEmptyString } from '@sniptt/guards';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { CoreObjectNameCell } from '@/object-core/components/cells/CoreObjectNameCell';import { type CoreAgent } from '@/object-core/agents/types/CoreAgent';diff --git a/packages/twenty-front/src/modules/object-metadata/components/ObjectMetadataIcon.tsx b/packages/twenty-front/src/modules/object-metadata/components/ObjectMetadataIcon.tsxindex 0a3ddacac4c..2bc6ab8b943 100644--- a/packages/twenty-front/src/modules/object-metadata/components/ObjectMetadataIcon.tsx+++ b/packages/twenty-front/src/modules/object-metadata/components/ObjectMetadataIcon.tsx@@ -1,7 +1,7 @@import { ColoredIcon } from '@/ui/icon/components/ColoredIcon';import { type EnrichedObjectMetadataItem } from '@/object-metadata/types/EnrichedObjectMetadataItem';import { getObjectColorWithFallback } from '@/object-metadata/utils/getObjectColorWithFallback';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';export type ObjectMetadataIconInput = Pick<EnrichedObjectMetadataItem,diff --git a/packages/twenty-front/src/modules/object-metadata/hooks/useObjectMetadataSelectHelpers.ts b/packages/twenty-front/src/modules/object-metadata/hooks/useObjectMetadataSelectHelpers.tsindex be14d6b6ec4..1af1360ab3a 100644--- a/packages/twenty-front/src/modules/object-metadata/hooks/useObjectMetadataSelectHelpers.ts+++ b/packages/twenty-front/src/modules/object-metadata/hooks/useObjectMetadataSelectHelpers.ts@@ -1,4 +1,5 @@-import { type IconComponent, useIcons } from 'twenty-ui/icon';+import { type IconComponent } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { type ThemeColor } from 'twenty-ui/theme';import { type EnrichedObjectMetadataItem } from '@/object-metadata/types/EnrichedObjectMetadataItem';diff --git a/packages/twenty-front/src/modules/object-record/advanced-filter/components/AdvancedFilterCompositeSubFieldSelectMenu.tsx b/packages/twenty-front/src/modules/object-record/advanced-filter/components/AdvancedFilterCompositeSubFieldSelectMenu.tsxindex ea9b1948614..4a72463aea9 100644--- a/packages/twenty-front/src/modules/object-record/advanced-filter/components/AdvancedFilterCompositeSubFieldSelectMenu.tsx+++ b/packages/twenty-front/src/modules/object-record/advanced-filter/components/AdvancedFilterCompositeSubFieldSelectMenu.tsx@@ -11,7 +11,7 @@ import { SelectOptionIcon } from '@/ui/input/components/SelectOptionIcon';import { t } from '@lingui/core/macro';import { getFilterTypeFromFieldType } from 'twenty-shared/utils';import { Dropdown } from 'twenty-ui/components/navigation';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { OverflowingTextWithTooltip } from 'twenty-ui/primitives/typography';type AdvancedFilterCompositeSubFieldSelectMenuProps = {diff --git a/packages/twenty-front/src/modules/object-record/advanced-filter/components/AdvancedFilterFieldSelectMenu.tsx b/packages/twenty-front/src/modules/object-record/advanced-filter/components/AdvancedFilterFieldSelectMenu.tsxindex ace96d277f8..a4877a0674c 100644--- a/packages/twenty-front/src/modules/object-record/advanced-filter/components/AdvancedFilterFieldSelectMenu.tsx+++ b/packages/twenty-front/src/modules/object-record/advanced-filter/components/AdvancedFilterFieldSelectMenu.tsx@@ -12,7 +12,7 @@ import { useLingui } from '@lingui/react/macro';import { Fragment, useContext } from 'react';import { isDefined, isNonEmptyArray } from 'twenty-shared/utils';import { Dropdown, useDropdownPage } from 'twenty-ui/components/navigation';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';type AdvancedFilterFieldSelectMenuProps = {recordFilterId: string;diff --git a/packages/twenty-front/src/modules/object-record/advanced-filter/components/AdvancedFilterRelationTargetFieldSelectMenu.tsx b/packages/twenty-front/src/modules/object-record/advanced-filter/components/AdvancedFilterRelationTargetFieldSelectMenu.tsxindex 0a78821f8c5..90eac19f6ce 100644--- a/packages/twenty-front/src/modules/object-record/advanced-filter/components/AdvancedFilterRelationTargetFieldSelectMenu.tsx+++ b/packages/twenty-front/src/modules/object-record/advanced-filter/components/AdvancedFilterRelationTargetFieldSelectMenu.tsx@@ -9,7 +9,8 @@ import { SelectOptionIcon } from '@/ui/input/components/SelectOptionIcon';import { t } from '@lingui/core/macro';import { CoreObjectNameSingular } from 'twenty-shared/types';import { Dropdown } from 'twenty-ui/components/navigation';-import { IconUserCircle, useIcons } from 'twenty-ui/icon';+import { IconUserCircle } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';type AdvancedFilterRelationTargetFieldSelectMenuProps = {recordFilterId: string;diff --git a/packages/twenty-front/src/modules/object-record/advanced-filter/hooks/useRecordFilterField.ts b/packages/twenty-front/src/modules/object-record/advanced-filter/hooks/useRecordFilterField.tsindex 660173291c9..3fc89ec78d7 100644--- a/packages/twenty-front/src/modules/object-record/advanced-filter/hooks/useRecordFilterField.ts+++ b/packages/twenty-front/src/modules/object-record/advanced-filter/hooks/useRecordFilterField.ts@@ -6,7 +6,7 @@ import { isValidSubFieldName } from '@/settings/data-model/utils/isValidSubFieldimport { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';import { isNonEmptyString } from '@sniptt/guards';import { isDefined } from 'twenty-shared/utils';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';export const useRecordFilterField = (recordFilterId: string) => {const currentRecordFilters = useAtomComponentStateValue(diff --git a/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownCalendarFieldsContent.tsx b/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownCalendarFieldsContent.tsxindex 667a4c25418..beb77a4638b 100644--- a/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownCalendarFieldsContent.tsx+++ b/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownCalendarFieldsContent.tsx@@ -14,7 +14,8 @@ import { useUpdateCurrentView } from '@/views/hooks/useUpdateCurrentView';import { useGetAvailableFieldsForCalendar } from '@/views/view-picker/hooks/useGetAvailableFieldsForCalendar';import { useLingui } from '@lingui/react/macro';import { useState } from 'react';-import { IconChevronLeft, IconSettings, useIcons } from 'twenty-ui/icon';+import { IconChevronLeft, IconSettings } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';export const ObjectOptionsDropdownCalendarFieldsContent = () => {const { t } = useLingui();diff --git a/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownDefaultView.tsx b/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownDefaultView.tsxindex d5d330824e6..8e38585ea25 100644--- a/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownDefaultView.tsx+++ b/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownDefaultView.tsx@@ -20,8 +20,8 @@ import {IconLayout,IconListDetails,IconLock,- useIcons,} from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { useCopyToClipboard } from '~/hooks/useCopyToClipboard';import { doNotTranslate } from 'twenty-shared/i18n';diff --git a/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownMenuViewName.tsx b/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownMenuViewName.tsxindex 219148445d8..42d37499146 100644--- a/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownMenuViewName.tsx+++ b/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownMenuViewName.tsx@@ -12,7 +12,7 @@ import { viewPickerSelectedIconComponentState } from '@/views/view-picker/statesimport { styled } from '@linaria/react';import { useEffect, useRef, useState } from 'react';import { OverflowingTextWithTooltip } from 'twenty-ui/primitives/typography';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { useTheme, themeCssVariables } from 'twenty-ui/theme';const StyledDropdownMenuIconAndNameContainer = styled.div`diff --git a/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownRecordGroupFieldsContent.tsx b/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownRecordGroupFieldsContent.tsxindex 23c6becc157..6d86d393d64 100644--- a/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownRecordGroupFieldsContent.tsx+++ b/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownRecordGroupFieldsContent.tsx@@ -24,7 +24,8 @@ import { useEffect } from 'react';import { useLocation } from 'react-router-dom';import { SettingsPath } from 'twenty-shared/types';import { getSettingsPath, isDefined } from 'twenty-shared/utils';-import { IconChevronLeft, IconSettings, useIcons } from 'twenty-ui/icon';+import { IconChevronLeft, IconSettings } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { ListItem } from 'twenty-ui/primitives/navigation';import { FieldMetadataType } from '~/generated-metadata/graphql';diff --git a/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/__tests__/ObjectOptionsDropdownCalendarViewContent.test.tsx b/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/__tests__/ObjectOptionsDropdownCalendarViewContent.test.tsxindex 09f087f84d7..1322b6b8bae 100644--- a/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/__tests__/ObjectOptionsDropdownCalendarViewContent.test.tsx+++ b/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/__tests__/ObjectOptionsDropdownCalendarViewContent.test.tsx@@ -22,8 +22,8 @@ jest.mock('@/views/view-picker/hooks/useGetAvailableFieldsForCalendar', () => ({jest.mock('@/ui/utilities/state/jotai/hooks/useAtomComponentState', () => ({useAtomComponentState: () => ['date-field', mockSetCalendarField],}));-jest.mock('twenty-ui/icon', () => ({- ...jest.requireActual('twenty-ui/icon'),+jest.mock('twenty-ui/icon/provider', () => ({+ ...jest.requireActual('twenty-ui/icon/provider'),useIcons: () => ({ getIcon: () => () => null }),}));diff --git a/packages/twenty-front/src/modules/object-record/object-sort-dropdown/components/ObjectSortDropdownButton.tsx b/packages/twenty-front/src/modules/object-record/object-sort-dropdown/components/ObjectSortDropdownButton.tsxindex ede53995d37..8324bf272f8 100644--- a/packages/twenty-front/src/modules/object-record/object-sort-dropdown/components/ObjectSortDropdownButton.tsx+++ b/packages/twenty-front/src/modules/object-record/object-sort-dropdown/components/ObjectSortDropdownButton.tsx@@ -23,7 +23,7 @@ import { useSetAtomComponentState } from '@/ui/utilities/state/jotai/hooks/useSeimport { Trans, useLingui } from '@lingui/react/macro';import { findByProperty, isNonEmptyArray } from 'twenty-shared/utils';import { LightButton } from 'twenty-ui/components/input';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { v4 } from 'uuid';import { ViewSortDirection } from '~/generated-metadata/graphql';diff --git a/packages/twenty-front/src/modules/object-record/record-group/components/RecordGroupAggregateDropdownFieldsContent.tsx b/packages/twenty-front/src/modules/object-record/record-group/components/RecordGroupAggregateDropdownFieldsContent.tsxindex c948c1097a9..0eb0ab27bde 100644--- a/packages/twenty-front/src/modules/object-record/record-group/components/RecordGroupAggregateDropdownFieldsContent.tsx+++ b/packages/twenty-front/src/modules/object-record/record-group/components/RecordGroupAggregateDropdownFieldsContent.tsx@@ -9,7 +9,8 @@ import { recordIndexGroupAggregateOperationComponentState } from '@/object-recorimport { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';import { useUpdateViewAggregate } from '@/views/hooks/useUpdateViewAggregate';import { isDefined } from 'twenty-shared/utils';-import { Icon123, useIcons } from 'twenty-ui/icon';+import { Icon123 } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';type RecordGroupAggregateDropdownFieldsContentProps = {objectMetadataItem: EnrichedObjectMetadataItem;diff --git a/packages/twenty-front/src/modules/object-record/record-inline-cell/components/RecordInlineCell.tsx b/packages/twenty-front/src/modules/object-record/record-inline-cell/components/RecordInlineCell.tsxindex f83f84e6eb8..98531806072 100644--- a/packages/twenty-front/src/modules/object-record/record-inline-cell/components/RecordInlineCell.tsx+++ b/packages/twenty-front/src/modules/object-record/record-inline-cell/components/RecordInlineCell.tsx@@ -7,7 +7,7 @@ import { useGetButtonIcon } from '@/object-record/record-field/ui/hooks/useGetBuimport { useIsFieldInputOnly } from '@/object-record/record-field/ui/hooks/useIsFieldInputOnly';import { useOpenFieldInputEditMode } from '@/object-record/record-field/ui/hooks/useOpenFieldInputEditMode';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { RecordInlineCellContainer } from './RecordInlineCellContainer';import {RecordInlineCellContext,diff --git a/packages/twenty-front/src/modules/object-record/record-inline-cell/components/RecordInlineCellAnchoredPortalContext.tsx b/packages/twenty-front/src/modules/object-record/record-inline-cell/components/RecordInlineCellAnchoredPortalContext.tsxindex 70ec052a864..4ca2bd398a5 100644--- a/packages/twenty-front/src/modules/object-record/record-inline-cell/components/RecordInlineCellAnchoredPortalContext.tsx+++ b/packages/twenty-front/src/modules/object-record/record-inline-cell/components/RecordInlineCellAnchoredPortalContext.tsx@@ -6,7 +6,7 @@ import {type RecordInlineCellContextProps,} from '@/object-record/record-inline-cell/components/RecordInlineCellContext';import { useContext, type ReactNode } from 'react';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';type RecordInlineCellAnchoredPortalContextProps = {children: ReactNode;diff --git a/packages/twenty-front/src/modules/object-record/record-list/components/RecordListFieldTooltip.tsx b/packages/twenty-front/src/modules/object-record/record-list/components/RecordListFieldTooltip.tsxindex 61d8458f6da..6ad7de75d3c 100644--- a/packages/twenty-front/src/modules/object-record/record-list/components/RecordListFieldTooltip.tsx+++ b/packages/twenty-front/src/modules/object-record/record-list/components/RecordListFieldTooltip.tsx@@ -1,7 +1,7 @@import { useRecordIndexContextOrThrow } from '@/object-record/record-index/contexts/RecordIndexContext';import { type ReactNode } from 'react';import { isDefined } from 'twenty-shared/utils';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { Tooltip } from 'twenty-ui/primitives/surfaces';type RecordListFieldTooltipProps = {diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableColumnHead.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableColumnHead.tsxindex 4ab4b02b7a2..a1a3699bfe9 100644--- a/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableColumnHead.tsx+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableColumnHead.tsx@@ -5,7 +5,7 @@ import { fieldMetadataItemByIdSelector } from '@/object-metadata/states/fieldMetimport { type RecordField } from '@/object-record/record-field/types/RecordField';import { RECORD_TABLE_CELL_CONTENT_CLASS_NAME } from '@/object-record/record-table/constants/RecordTableCellContentClassName';import { useAtomFamilySelectorValue } from '@/ui/utilities/state/jotai/hooks/useAtomFamilySelectorValue';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { useTheme, themeCssVariables } from 'twenty-ui/theme';const StyledTitle = styled.div`diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeaderPlusButtonContent.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeaderPlusButtonContent.tsxindex 20448aa6ac1..fc969f2ba3e 100644--- a/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeaderPlusButtonContent.tsx+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeaderPlusButtonContent.tsx@@ -13,7 +13,8 @@ import { Link, useLocation } from 'react-router-dom';import { SettingsPath } from 'twenty-shared/types';import { getSettingsPath, isNonEmptyArray } from 'twenty-shared/utils';import { Dropdown } from 'twenty-ui/components/navigation';-import { IconSettings, useIcons } from 'twenty-ui/icon';+import { IconSettings } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';export const RecordTableHeaderPlusButtonContent = () => {const { t } = useLingui();diff --git a/packages/twenty-front/src/modules/object-record/spreadsheet-import/hooks/__tests__/useBuildSpreadSheetImportFields.test.tsx b/packages/twenty-front/src/modules/object-record/spreadsheet-import/hooks/__tests__/useBuildSpreadSheetImportFields.test.tsxindex 22d513b3232..795b9b27926 100644--- a/packages/twenty-front/src/modules/object-record/spreadsheet-import/hooks/__tests__/useBuildSpreadSheetImportFields.test.tsx+++ b/packages/twenty-front/src/modules/object-record/spreadsheet-import/hooks/__tests__/useBuildSpreadSheetImportFields.test.tsx@@ -2,7 +2,7 @@ import { i18n } from '@lingui/core';import { renderHook } from '@testing-library/react';import { Provider as JotaiProvider } from 'jotai';import { type ReactNode } from 'react';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { JestObjectMetadataItemSetter } from '~/testing/jest/JestObjectMetadataItemSetter';import { jotaiStore } from '@/ui/utilities/state/jotai/jotaiStore';@@ -23,7 +23,7 @@ const Wrapper = ({ children }: { children: ReactNode }) => {);};-jest.mock('twenty-ui/icon', () => ({+jest.mock('twenty-ui/icon/provider', () => ({useIcons: jest.fn(),}));diff --git a/packages/twenty-front/src/modules/object-record/spreadsheet-import/hooks/useBuildSpreadSheetImportFields.ts b/packages/twenty-front/src/modules/object-record/spreadsheet-import/hooks/useBuildSpreadSheetImportFields.tsindex 1b460012bc1..632dbd2c159 100644--- a/packages/twenty-front/src/modules/object-record/spreadsheet-import/hooks/useBuildSpreadSheetImportFields.ts+++ b/packages/twenty-front/src/modules/object-record/spreadsheet-import/hooks/useBuildSpreadSheetImportFields.ts@@ -23,7 +23,7 @@ import {getUniqueConstraintsFields,isDefined,} from 'twenty-shared/utils';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { FieldMetadataType, RelationType } from '~/generated-metadata/graphql';const getSourceLocaleAlternateMatches = ({diff --git a/packages/twenty-front/src/modules/page-layout/components/PageLayoutTabList.tsx b/packages/twenty-front/src/modules/page-layout/components/PageLayoutTabList.tsxindex 2fc10de7148..356befa0d4f 100644--- a/packages/twenty-front/src/modules/page-layout/components/PageLayoutTabList.tsx+++ b/packages/twenty-front/src/modules/page-layout/components/PageLayoutTabList.tsx@@ -4,7 +4,8 @@ import { styled } from '@linaria/react';import { useLingui } from '@lingui/react/macro';import { useCallback, useMemo, useRef } from 'react';import { useLocation, useNavigate } from 'react-router-dom';-import { IconPlus, useIcons } from 'twenty-ui/icon';+import { IconPlus } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { Dropdown, TabButton } from 'twenty-ui/components/navigation';import { isPageLayoutTabDraggingComponentState } from '@/page-layout/states/isPageLayoutTabDraggingComponentState';diff --git a/packages/twenty-front/src/modules/page-layout/components/PageLayoutTabListNewTabDropdownContent.tsx b/packages/twenty-front/src/modules/page-layout/components/PageLayoutTabListNewTabDropdownContent.tsxindex df054e30845..5c7567f5c86 100644--- a/packages/twenty-front/src/modules/page-layout/components/PageLayoutTabListNewTabDropdownContent.tsx+++ b/packages/twenty-front/src/modules/page-layout/components/PageLayoutTabListNewTabDropdownContent.tsx@@ -12,7 +12,8 @@ import { useLingui } from '@lingui/react/macro';import { useCallback } from 'react';import { SidePanelPages } from 'twenty-shared/types';import { isDefined, isNonEmptyArray } from 'twenty-shared/utils';-import { IconPlus, useIcons } from 'twenty-ui/icon';+import { IconPlus } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';type PageLayoutTabListNewTabDropdownContentProps = {onCreate: () => void;diff --git a/packages/twenty-front/src/modules/page-layout/widgets/fields/components/FieldsConfigurationFieldEditor.tsx b/packages/twenty-front/src/modules/page-layout/widgets/fields/components/FieldsConfigurationFieldEditor.tsxindex 2f4347d4955..88e8f9f4b96 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/fields/components/FieldsConfigurationFieldEditor.tsx+++ b/packages/twenty-front/src/modules/page-layout/widgets/fields/components/FieldsConfigurationFieldEditor.tsx@@ -4,7 +4,8 @@ import { type FieldMetadataItem } from '@/object-metadata/types/FieldMetadataIteimport { type FieldsConfigurationFieldItem } from '@/page-layout/types/FieldsConfiguration';import { t } from '@lingui/core/macro';import { LightIconButton } from 'twenty-ui/components/input';-import { IconEye, IconEyeOff, useIcons } from 'twenty-ui/icon';+import { IconEye, IconEyeOff } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';type FieldsConfigurationFieldEditorProps = {field: FieldsConfigurationFieldItem;diff --git a/packages/twenty-front/src/modules/page-layout/widgets/timeline/components/WidgetActionTimelineFilter.tsx b/packages/twenty-front/src/modules/page-layout/widgets/timeline/components/WidgetActionTimelineFilter.tsxindex b0c2cfd86e6..e33a5e1feec 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/timeline/components/WidgetActionTimelineFilter.tsx+++ b/packages/twenty-front/src/modules/page-layout/widgets/timeline/components/WidgetActionTimelineFilter.tsx@@ -11,7 +11,8 @@ import { useLingui } from '@lingui/react/macro';import { useState } from 'react';import { isDefined, isNonEmptyArray } from 'twenty-shared/utils';import { Dropdown } from 'twenty-ui/components/navigation';-import { IconFilter, IconFilterOff, useIcons } from 'twenty-ui/icon';+import { IconFilter, IconFilterOff } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { normalizeSearchText } from 'twenty-ui/utilities';export const WidgetActionTimelineFilter = () => {diff --git a/packages/twenty-front/src/modules/related-record-paths/components/SettingsObjectRelatedRecordPathPicker.tsx b/packages/twenty-front/src/modules/related-record-paths/components/SettingsObjectRelatedRecordPathPicker.tsxindex 58791ca43b2..1185360b193 100644--- a/packages/twenty-front/src/modules/related-record-paths/components/SettingsObjectRelatedRecordPathPicker.tsx+++ b/packages/twenty-front/src/modules/related-record-paths/components/SettingsObjectRelatedRecordPathPicker.tsx@@ -4,7 +4,8 @@ import { useState } from 'react';import { isDefined, isNonEmptyArray } from 'twenty-shared/utils';import { LightIconButton } from 'twenty-ui/components/input';import { Dropdown } from 'twenty-ui/components/navigation';-import { IconChevronLeft, useIcons } from 'twenty-ui/icon';+import { IconChevronLeft } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { normalizeSearchText } from 'twenty-ui/utilities';import { useObjectMetadataItems } from '@/object-metadata/hooks/useObjectMetadataItems';diff --git a/packages/twenty-front/src/modules/related-record-paths/components/SettingsObjectRelatedRecordPathTableRow.tsx b/packages/twenty-front/src/modules/related-record-paths/components/SettingsObjectRelatedRecordPathTableRow.tsxindex 1f3708dc3b1..fa24d47581b 100644--- a/packages/twenty-front/src/modules/related-record-paths/components/SettingsObjectRelatedRecordPathTableRow.tsx+++ b/packages/twenty-front/src/modules/related-record-paths/components/SettingsObjectRelatedRecordPathTableRow.tsx@@ -2,7 +2,8 @@ import { styled } from '@linaria/react';import { useLingui } from '@lingui/react/macro';import { Fragment } from 'react';import { LightIconButton } from 'twenty-ui/components/input';-import { IconChevronRight, IconTrash, useIcons } from 'twenty-ui/icon';+import { IconChevronRight, IconTrash } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { OverflowingTextWithTooltip } from 'twenty-ui/primitives/typography';import { themeCssVariables, useTheme } from 'twenty-ui/theme';diff --git a/packages/twenty-front/src/modules/settings/data-model/fields/preview/components/SettingsDataModelFieldPreview.tsx b/packages/twenty-front/src/modules/settings/data-model/fields/preview/components/SettingsDataModelFieldPreview.tsxindex 4965d79bb96..67ee1573a3b 100644--- a/packages/twenty-front/src/modules/settings/data-model/fields/preview/components/SettingsDataModelFieldPreview.tsx+++ b/packages/twenty-front/src/modules/settings/data-model/fields/preview/components/SettingsDataModelFieldPreview.tsx@@ -11,7 +11,7 @@ import { SettingsDataModelLabelIdentifierPreviewContextWrapper } from '@/settingimport { SettingsDataModelSetFieldValueEffect } from '@/settings/data-model/fields/preview/components/SettingsDataModelSetFieldValueEffect';import { SettingsDataModelSetLabelIdentifierRecordEffect } from '@/settings/data-model/fields/preview/components/SettingsDataModelSetLabelIdentifierRecordEffect';import { useFieldPreviewValue } from '@/settings/data-model/fields/preview/hooks/useFieldPreviewValue';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { useTheme, themeCssVariables } from 'twenty-ui/theme';import { FieldMetadataType } from '~/generated-metadata/graphql';diff --git a/packages/twenty-front/src/modules/settings/data-model/fields/preview/components/SettingsDataModelRelationFieldPreview.tsx b/packages/twenty-front/src/modules/settings/data-model/fields/preview/components/SettingsDataModelRelationFieldPreview.tsxindex 91c96e65f9c..8686bb5cdd5 100644--- a/packages/twenty-front/src/modules/settings/data-model/fields/preview/components/SettingsDataModelRelationFieldPreview.tsx+++ b/packages/twenty-front/src/modules/settings/data-model/fields/preview/components/SettingsDataModelRelationFieldPreview.tsx@@ -9,7 +9,7 @@ import { FieldContext } from '@/object-record/record-field/ui/contexts/FieldContimport { RecordFieldComponentInstanceContext } from '@/object-record/record-field/ui/states/contexts/RecordFieldComponentInstanceContext';import { SettingsDataModelSetFieldValueEffect } from '@/settings/data-model/fields/preview/components/SettingsDataModelSetFieldValueEffect';import { useFieldPreviewValue } from '@/settings/data-model/fields/preview/hooks/useFieldPreviewValue';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { useTheme, themeCssVariables } from 'twenty-ui/theme';import { v4 } from 'uuid';import { FieldMetadataType } from '~/generated-metadata/graphql';diff --git a/packages/twenty-front/src/modules/settings/data-model/graph-overview/components/SettingsDataModelOverviewFieldWithoutRelation.tsx b/packages/twenty-front/src/modules/settings/data-model/graph-overview/components/SettingsDataModelOverviewFieldWithoutRelation.tsxindex 781e080561c..3601d28b3c9 100644--- a/packages/twenty-front/src/modules/settings/data-model/graph-overview/components/SettingsDataModelOverviewFieldWithoutRelation.tsx+++ b/packages/twenty-front/src/modules/settings/data-model/graph-overview/components/SettingsDataModelOverviewFieldWithoutRelation.tsx@@ -2,7 +2,7 @@ import { isDefined } from 'twenty-shared/utils';import { styled } from '@linaria/react';import { type FieldMetadataItem } from '@/object-metadata/types/FieldMetadataItem';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { useTheme, themeCssVariables } from 'twenty-ui/theme';type ObjectFieldRowWithoutRelationProps = {diff --git a/packages/twenty-front/src/modules/settings/data-model/indexes/forms/components/SettingsObjectIndexFieldsForm.tsx b/packages/twenty-front/src/modules/settings/data-model/indexes/forms/components/SettingsObjectIndexFieldsForm.tsxindex 527b5b4a58e..21086f1c42e 100644--- a/packages/twenty-front/src/modules/settings/data-model/indexes/forms/components/SettingsObjectIndexFieldsForm.tsx+++ b/packages/twenty-front/src/modules/settings/data-model/indexes/forms/components/SettingsObjectIndexFieldsForm.tsx@@ -7,7 +7,8 @@ import { styled } from '@linaria/react';import { useLingui } from '@lingui/react/macro';import { useMemo } from 'react';import { Controller, useFormContext } from 'react-hook-form';-import { IconTrash, useIcons } from 'twenty-ui/icon';+import { IconTrash } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { type SelectOption } from 'twenty-ui/primitives/input';import { IconButton } from 'twenty-ui/components/input';import { themeCssVariables } from 'twenty-ui/theme';diff --git a/packages/twenty-front/src/modules/settings/data-model/object-details/components/SettingsObjectFieldItemTableRow.tsx b/packages/twenty-front/src/modules/settings/data-model/object-details/components/SettingsObjectFieldItemTableRow.tsxindex 3e05baf68e1..d1def2b1146 100644--- a/packages/twenty-front/src/modules/settings/data-model/object-details/components/SettingsObjectFieldItemTableRow.tsx+++ b/packages/twenty-front/src/modules/settings/data-model/object-details/components/SettingsObjectFieldItemTableRow.tsx@@ -23,12 +23,8 @@ import { useMemo } from 'react';import { FieldMetadataType, SettingsPath } from 'twenty-shared/types';import { getSettingsPath, isDefined } from 'twenty-shared/utils';import { LightIconButton } from 'twenty-ui/components/input';-import {- IconChevronRight,- IconMinus,- IconPlus,- useIcons,-} from 'twenty-ui/icon';+import { IconChevronRight, IconMinus, IconPlus } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { Tooltip } from 'twenty-ui/primitives/surfaces';import { useTheme, themeCssVariables } from 'twenty-ui/theme';import { RelationType } from '~/generated-metadata/graphql';diff --git a/packages/twenty-front/src/modules/settings/data-model/object-details/components/SettingsObjectRelationItemTableRow.tsx b/packages/twenty-front/src/modules/settings/data-model/object-details/components/SettingsObjectRelationItemTableRow.tsxindex 2c50eddae70..99468a3d00e 100644--- a/packages/twenty-front/src/modules/settings/data-model/object-details/components/SettingsObjectRelationItemTableRow.tsx+++ b/packages/twenty-front/src/modules/settings/data-model/object-details/components/SettingsObjectRelationItemTableRow.tsx@@ -20,11 +20,8 @@ import { useLingui } from '@lingui/react/macro';import { type MouseEvent, useMemo } from 'react';import { FieldMetadataType, SettingsPath } from 'twenty-shared/types';import { getSettingsPath, isDefined } from 'twenty-shared/utils';-import {- IconChevronRight,- IconRelationManyToMany,- useIcons,-} from 'twenty-ui/icon';+import { IconChevronRight, IconRelationManyToMany } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { useTheme, themeCssVariables } from 'twenty-ui/theme';import { useNavigateSettings } from '~/hooks/useNavigateSettings';diff --git a/packages/twenty-front/src/modules/settings/data-model/object-details/components/tabs/SettingsObjectSearchSection.tsx b/packages/twenty-front/src/modules/settings/data-model/object-details/components/tabs/SettingsObjectSearchSection.tsxindex 345668b7401..e59714e7fa9 100644--- a/packages/twenty-front/src/modules/settings/data-model/object-details/components/tabs/SettingsObjectSearchSection.tsx+++ b/packages/twenty-front/src/modules/settings/data-model/object-details/components/tabs/SettingsObjectSearchSection.tsx@@ -22,13 +22,8 @@ import { useMemo, useState } from 'react';import { useToast } from 'twenty-ui/components/feedback';import { LightIconButton } from 'twenty-ui/components/input';import { Dropdown } from 'twenty-ui/components/navigation';-import {- IconEye,- IconPlus,- IconSearch,- IconTrash,- useIcons,-} from 'twenty-ui/icon';+import { IconEye, IconPlus, IconSearch, IconTrash } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { Button } from 'twenty-ui/primitives/input';import { Card } from 'twenty-ui/primitives/surfaces';import { useTheme, themeCssVariables } from 'twenty-ui/theme';diff --git a/packages/twenty-front/src/modules/settings/data-model/object-details/components/tabs/SettingsObjectValidationRulesSection.tsx b/packages/twenty-front/src/modules/settings/data-model/object-details/components/tabs/SettingsObjectValidationRulesSection.tsxindex cf3c5a49aa8..6ce03335c0a 100644--- a/packages/twenty-front/src/modules/settings/data-model/object-details/components/tabs/SettingsObjectValidationRulesSection.tsx+++ b/packages/twenty-front/src/modules/settings/data-model/object-details/components/tabs/SettingsObjectValidationRulesSection.tsx@@ -3,7 +3,8 @@ import { useLingui } from '@lingui/react/macro';import { SettingsPath } from 'twenty-shared/types';import { getSettingsPath, isDefined } from 'twenty-shared/utils';import { useToast } from 'twenty-ui/components/feedback';-import { IconChevronRight, IconPlus, useIcons } from 'twenty-ui/icon';+import { IconChevronRight, IconPlus } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { Button } from 'twenty-ui/primitives/input';import { Status } from 'twenty-ui/primitives/data-display';import { themeCssVariables, useTheme } from 'twenty-ui/theme';diff --git a/packages/twenty-front/src/modules/settings/data-model/objects/forms/components/SettingsDataModelObjectIdentifiersForm.tsx b/packages/twenty-front/src/modules/settings/data-model/objects/forms/components/SettingsDataModelObjectIdentifiersForm.tsxindex 48e452ca799..2436643d949 100644--- a/packages/twenty-front/src/modules/settings/data-model/objects/forms/components/SettingsDataModelObjectIdentifiersForm.tsx+++ b/packages/twenty-front/src/modules/settings/data-model/objects/forms/components/SettingsDataModelObjectIdentifiersForm.tsx@@ -18,7 +18,8 @@ import {isLabelIdentifierFieldMetadataTypes,isSearchableFieldType,} from 'twenty-shared/utils';-import { IconCircleOff, IconPlus, useIcons } from 'twenty-ui/icon';+import { IconCircleOff, IconPlus } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { type SelectOption } from 'twenty-ui/primitives/input';import { themeCssVariables } from 'twenty-ui/theme';import { type z } from 'zod';diff --git a/packages/twenty-front/src/modules/settings/developers/components/SettingsDevelopersRoleSelector.tsx b/packages/twenty-front/src/modules/settings/developers/components/SettingsDevelopersRoleSelector.tsxindex d87cccda661..a11eb73d911 100644--- a/packages/twenty-front/src/modules/settings/developers/components/SettingsDevelopersRoleSelector.tsx+++ b/packages/twenty-front/src/modules/settings/developers/components/SettingsDevelopersRoleSelector.tsx@@ -1,6 +1,7 @@import { Select } from '@/ui/input/components/Select';import { type Role } from '~/generated-metadata/graphql';-import { type IconComponent, useIcons } from 'twenty-ui/icon';+import { type IconComponent } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';type ApiKeyAssignableRole = Pick<Role,diff --git a/packages/twenty-front/src/modules/settings/event-logs/components/EventLogFilters.tsx b/packages/twenty-front/src/modules/settings/event-logs/components/EventLogFilters.tsxindex b36077d4124..9388af4e44e 100644--- a/packages/twenty-front/src/modules/settings/event-logs/components/EventLogFilters.tsx+++ b/packages/twenty-front/src/modules/settings/event-logs/components/EventLogFilters.tsx@@ -7,7 +7,8 @@ import { InputLabel } from '@/ui/input/components/internal/InputLabel/InputLabelimport { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';import { styled } from '@linaria/react';import { useLingui } from '@lingui/react/macro';-import { IconBox, IconUser, useIcons } from 'twenty-ui/icon';+import { IconBox, IconUser } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { type SelectOption } from 'twenty-ui/primitives/input';import { themeCssVariables } from 'twenty-ui/theme';import { EventLogTable } from '~/generated-metadata/graphql';diff --git a/packages/twenty-front/src/modules/settings/lab/components/SettingsLabContent.tsx b/packages/twenty-front/src/modules/settings/lab/components/SettingsLabContent.tsxindex d55c617dcfc..290d0a9b29b 100644--- a/packages/twenty-front/src/modules/settings/lab/components/SettingsLabContent.tsx+++ b/packages/twenty-front/src/modules/settings/lab/components/SettingsLabContent.tsx@@ -5,7 +5,7 @@ import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateimport { styled } from '@linaria/react';import { isNonEmptyString } from '@sniptt/guards';import { useState } from 'react';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { Card } from 'twenty-ui/primitives/surfaces';import { themeCssVariables } from 'twenty-ui/theme';import { type FeatureFlagKey } from '~/generated-metadata/graphql';diff --git a/packages/twenty-front/src/modules/settings/members/components/MemberPermissionsTab.tsx b/packages/twenty-front/src/modules/settings/members/components/MemberPermissionsTab.tsxindex ef9b3675af9..6966ce01af3 100644--- a/packages/twenty-front/src/modules/settings/members/components/MemberPermissionsTab.tsx+++ b/packages/twenty-front/src/modules/settings/members/components/MemberPermissionsTab.tsx@@ -12,7 +12,8 @@ import { SettingsPath } from 'twenty-shared/types';import { isDefined } from 'twenty-shared/utils';import { useToast } from 'twenty-ui/components/feedback';import { Section } from 'twenty-ui/components/layout';-import { IconArrowUpRight, IconUser, useIcons } from 'twenty-ui/icon';+import { IconArrowUpRight, IconUser } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { Button } from 'twenty-ui/primitives/input';import { themeCssVariables } from 'twenty-ui/theme';import { UpdateWorkspaceMemberRoleDocument } from '~/generated-metadata/graphql';diff --git a/packages/twenty-front/src/modules/settings/roles/components/SettingsRolesDefaultRole.tsx b/packages/twenty-front/src/modules/settings/roles/components/SettingsRolesDefaultRole.tsxindex 334e74cbb34..c455cac75ab 100644--- a/packages/twenty-front/src/modules/settings/roles/components/SettingsRolesDefaultRole.tsx+++ b/packages/twenty-front/src/modules/settings/roles/components/SettingsRolesDefaultRole.tsx@@ -9,7 +9,8 @@ import { useAtomState } from '@/ui/utilities/state/jotai/hooks/useAtomState';import { t } from '@lingui/core/macro';import { isDefined } from 'twenty-shared/utils';import { Section } from 'twenty-ui/components/layout';-import { IconUserPin, useIcons } from 'twenty-ui/icon';+import { IconUserPin } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { Card } from 'twenty-ui/primitives/surfaces';import { useMutation } from '@apollo/client/react';import {diff --git a/packages/twenty-front/src/modules/settings/roles/components/SettingsRolesTableRow.tsx b/packages/twenty-front/src/modules/settings/roles/components/SettingsRolesTableRow.tsxindex 9314e977c99..408d92a7878 100644--- a/packages/twenty-front/src/modules/settings/roles/components/SettingsRolesTableRow.tsx+++ b/packages/twenty-front/src/modules/settings/roles/components/SettingsRolesTableRow.tsx@@ -8,7 +8,8 @@ import { styled } from '@linaria/react';import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';import { SettingsPath } from 'twenty-shared/types';import { getSettingsPath } from 'twenty-shared/utils';-import { IconChevronRight, IconLock, useIcons } from 'twenty-ui/icon';+import { IconChevronRight, IconLock } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { useTheme, themeCssVariables } from 'twenty-ui/theme';import { WorkspaceMemberAvatarStack } from '@/workspace-member/components/WorkspaceMemberAvatarStack';diff --git a/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignmentTableRow.tsx b/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignmentTableRow.tsxindex a67c8642497..16701e5d6a6 100644--- a/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignmentTableRow.tsx+++ b/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignmentTableRow.tsx@@ -8,7 +8,8 @@ import { styled } from '@linaria/react';import { t } from '@lingui/core/macro';import { useContext } from 'react';import { OverflowingTextWithTooltip } from 'twenty-ui/primitives/typography';-import { IconKey, useIcons } from 'twenty-ui/icon';+import { IconKey } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { Avatar } from 'twenty-ui/primitives/data-display';import { useTheme, themeCssVariables } from 'twenty-ui/theme';import { type FlatAgent } from '@/metadata-store/types/FlatAgent';diff --git a/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/field-permissions/components/SettingsRolePermissionsObjectLevelObjectFieldPermissionTableRow.tsx b/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/field-permissions/components/SettingsRolePermissionsObjectLevelObjectFieldPermissionTableRow.tsxindex 3a5ea246bc6..be20b839382 100644--- a/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/field-permissions/components/SettingsRolePermissionsObjectLevelObjectFieldPermissionTableRow.tsx+++ b/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/field-permissions/components/SettingsRolePermissionsObjectLevelObjectFieldPermissionTableRow.tsx@@ -12,7 +12,7 @@ import { TableRow } from '@/ui/layout/table/components/TableRow';import { styled } from '@linaria/react';import { useMemo } from 'react';import { isDefined } from 'twenty-shared/utils';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { useTheme, themeCssVariables } from 'twenty-ui/theme';import { v4 } from 'uuid';import {diff --git a/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/record-level-permissions/components/SettingsRolePermissionsObjectLevelRecordLevelPermissionFieldSelectFieldMenu.tsx b/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/record-level-permissions/components/SettingsRolePermissionsObjectLevelRecordLevelPermissionFieldSelectFieldMenu.tsxindex 8870b50b590..17b3988716e 100644--- a/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/record-level-permissions/components/SettingsRolePermissionsObjectLevelRecordLevelPermissionFieldSelectFieldMenu.tsx+++ b/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/record-level-permissions/components/SettingsRolePermissionsObjectLevelRecordLevelPermissionFieldSelectFieldMenu.tsx@@ -6,7 +6,7 @@ import {isNonEmptyArray,} from 'twenty-shared/utils';import { Dropdown, useDropdownPage } from 'twenty-ui/components/navigation';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { SelectOptionIcon } from '@/ui/input/components/SelectOptionIcon';import { CoreObjectNameSingular, FieldMetadataType } from 'twenty-shared/types';diff --git a/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/record-level-permissions/components/SettingsRolePermissionsObjectLevelRecordLevelPermissionFieldSelectSubFieldMenu.tsx b/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/record-level-permissions/components/SettingsRolePermissionsObjectLevelRecordLevelPermissionFieldSelectSubFieldMenu.tsxindex ba3e2a246c0..dcad67d502b 100644--- a/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/record-level-permissions/components/SettingsRolePermissionsObjectLevelRecordLevelPermissionFieldSelectSubFieldMenu.tsx+++ b/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/record-level-permissions/components/SettingsRolePermissionsObjectLevelRecordLevelPermissionFieldSelectSubFieldMenu.tsx@@ -7,7 +7,7 @@ import {} from 'twenty-shared/types';import { getFilterTypeFromFieldType } from 'twenty-shared/utils';import { Dropdown } from 'twenty-ui/components/navigation';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { type FieldMetadataItem } from '@/object-metadata/types/FieldMetadataItem';import { useApplyAdvancedFilterCompositeSubField } from '@/object-record/advanced-filter/hooks/useApplyAdvancedFilterCompositeSubField';diff --git a/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/record-level-permissions/components/SettingsRolePermissionsObjectLevelRecordLevelPermissionMeValueSelect.tsx b/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/record-level-permissions/components/SettingsRolePermissionsObjectLevelRecordLevelPermissionMeValueSelect.tsxindex d7deafb8d36..e3b3d8857b2 100644--- a/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/record-level-permissions/components/SettingsRolePermissionsObjectLevelRecordLevelPermissionMeValueSelect.tsx+++ b/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/record-level-permissions/components/SettingsRolePermissionsObjectLevelRecordLevelPermissionMeValueSelect.tsx@@ -6,7 +6,8 @@ import { t } from '@lingui/core/macro';import { isNonEmptyString } from '@sniptt/guards';import { useState } from 'react';import { Dropdown } from 'twenty-ui/components/navigation';-import { IconUserCircle, useIcons } from 'twenty-ui/icon';+import { IconUserCircle } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { Field } from 'twenty-ui/primitives/input';import {CoreObjectNameSingular,diff --git a/packages/twenty-front/src/modules/settings/roles/role-permissions/permission-flags/hooks/useRolePermissionFlagConfig.ts b/packages/twenty-front/src/modules/settings/roles/role-permissions/permission-flags/hooks/useRolePermissionFlagConfig.tsindex 5c59724f699..3b17d8dcab2 100644--- a/packages/twenty-front/src/modules/settings/roles/role-permissions/permission-flags/hooks/useRolePermissionFlagConfig.ts+++ b/packages/twenty-front/src/modules/settings/roles/role-permissions/permission-flags/hooks/useRolePermissionFlagConfig.ts@@ -1,7 +1,7 @@import { settingsPermissionFlagDefinitionsState } from '@/settings/roles/states/settingsPermissionFlagDefinitionsState';import { type SettingsRolePermissionsSettingPermission } from '@/settings/roles/role-permissions/permission-flags/types/SettingsRolePermissionsSettingPermission';import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { type PermissionFlagPermissionType } from 'twenty-shared/application';import { PermissionFlagType } from '~/generated-metadata/graphql';diff --git a/packages/twenty-front/src/modules/side-panel/components/SidePanelPageLayoutInfo.tsx b/packages/twenty-front/src/modules/side-panel/components/SidePanelPageLayoutInfo.tsxindex eb245be303c..d317d01c516 100644--- a/packages/twenty-front/src/modules/side-panel/components/SidePanelPageLayoutInfo.tsx+++ b/packages/twenty-front/src/modules/side-panel/components/SidePanelPageLayoutInfo.tsx@@ -19,7 +19,7 @@ import { isNonEmptyString } from '@sniptt/guards';import { useState } from 'react';import { SidePanelPages } from 'twenty-shared/types';import { isDefined } from 'twenty-shared/utils';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { useTheme } from 'twenty-ui/theme';import { HeaderIdentifier } from '@/ui/layout/page/components/HeaderIdentifier';diff --git a/packages/twenty-front/src/modules/side-panel/components/SidePanelWorkflowStepInfo.tsx b/packages/twenty-front/src/modules/side-panel/components/SidePanelWorkflowStepInfo.tsxindex 3295a699689..47ccbe82a7f 100644--- a/packages/twenty-front/src/modules/side-panel/components/SidePanelWorkflowStepInfo.tsx+++ b/packages/twenty-front/src/modules/side-panel/components/SidePanelWorkflowStepInfo.tsx@@ -27,7 +27,7 @@ import { useState } from 'react';import { SidePanelPages } from 'twenty-shared/types';import { isDefined } from 'twenty-shared/utils';import { TRIGGER_STEP_ID } from 'twenty-shared/workflow';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { HeaderIdentifier } from '@/ui/layout/page/components/HeaderIdentifier';import { useTheme } from 'twenty-ui/theme';diff --git a/packages/twenty-front/src/modules/side-panel/components/hooks/usePageLayoutHeaderInfo.ts b/packages/twenty-front/src/modules/side-panel/components/hooks/usePageLayoutHeaderInfo.tsindex d868d355477..0a4b7f69cc4 100644--- a/packages/twenty-front/src/modules/side-panel/components/hooks/usePageLayoutHeaderInfo.ts+++ b/packages/twenty-front/src/modules/side-panel/components/hooks/usePageLayoutHeaderInfo.ts@@ -16,8 +16,8 @@ import {IconPlus,IconTable,type IconComponent,- useIcons,} from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { useTheme } from 'twenty-ui/theme';type PageLayoutHeaderInfo = {diff --git a/packages/twenty-front/src/modules/side-panel/hooks/__tests__/useNavigateSidePanel.test.tsx b/packages/twenty-front/src/modules/side-panel/hooks/__tests__/useNavigateSidePanel.test.tsxindex 76783072bb8..c937a1e3cd5 100644--- a/packages/twenty-front/src/modules/side-panel/hooks/__tests__/useNavigateSidePanel.test.tsx+++ b/packages/twenty-front/src/modules/side-panel/hooks/__tests__/useNavigateSidePanel.test.tsx@@ -7,7 +7,8 @@ import { sidePanelNavigationStackState } from '@/side-panel/states/sidePanelNaviimport { jotaiStore } from '@/ui/utilities/state/jotai/jotaiStore';import { ContextStoreViewType } from '@/context-store/types/ContextStoreViewType';import { SidePanelPages } from 'twenty-shared/types';-import { Icon123, useIcons } from 'twenty-ui/icon';+import { Icon123 } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { getJestMetadataAndApolloMocksAndCommandMenuWrapper } from '~/testing/jest/getJestMetadataAndApolloMocksAndCommandMenuWrapper';import { getTestEnrichedObjectMetadataItemsMock } from '~/testing/utils/getTestEnrichedObjectMetadataItemsMock';diff --git a/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/dropdown-content/ChartFieldSelectionForAggregateOperationDropdownContent.tsx b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/dropdown-content/ChartFieldSelectionForAggregateOperationDropdownContent.tsxindex 00876b1633c..3e5ecf5cba9 100644--- a/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/dropdown-content/ChartFieldSelectionForAggregateOperationDropdownContent.tsx+++ b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/dropdown-content/ChartFieldSelectionForAggregateOperationDropdownContent.tsx@@ -11,7 +11,8 @@ import { isFieldRelation } from '@/object-record/record-field/ui/types/guards/isimport { getChartAggregateDropdownPageId } from '@/side-panel/pages/page-layout/utils/getChartAggregateDropdownPageId';import { t } from '@lingui/core/macro';import { Fragment, useState } from 'react';-import { IconCheck, useIcons } from 'twenty-ui/icon';+import { IconCheck } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { Dropdown } from 'twenty-ui/components/navigation';import { isNonEmptyArray } from 'twenty-shared/utils';import { filterBySearchQuery } from '~/utils/filterBySearchQuery';diff --git a/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/dropdown-content/ChartGroupByFieldSelectionCompositeFieldView.tsx b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/dropdown-content/ChartGroupByFieldSelectionCompositeFieldView.tsxindex ac0de653ecb..7314678cbf0 100644--- a/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/dropdown-content/ChartGroupByFieldSelectionCompositeFieldView.tsx+++ b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/dropdown-content/ChartGroupByFieldSelectionCompositeFieldView.tsx@@ -12,7 +12,7 @@ import {isDefined,} from 'twenty-shared/utils';import { Dropdown } from 'twenty-ui/components/navigation';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';type ChartGroupByFieldSelectionCompositeFieldViewProps = {pageId: string;diff --git a/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/dropdown-content/ChartGroupByFieldSelectionDropdownContentBase.tsx b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/dropdown-content/ChartGroupByFieldSelectionDropdownContentBase.tsxindex f7501050e08..aff636994d1 100644--- a/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/dropdown-content/ChartGroupByFieldSelectionDropdownContentBase.tsx+++ b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/dropdown-content/ChartGroupByFieldSelectionDropdownContentBase.tsx@@ -18,7 +18,7 @@ import {isNonEmptyArray,} from 'twenty-shared/utils';import { Dropdown } from 'twenty-ui/components/navigation';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { normalizeSearchText } from 'twenty-ui/utilities';import { RelationType } from '~/generated-metadata/graphql';import { filterBySearchQuery } from '~/utils/filterBySearchQuery';diff --git a/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/dropdown-content/ChartGroupByFieldSelectionMorphRelationFieldView.tsx b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/dropdown-content/ChartGroupByFieldSelectionMorphRelationFieldView.tsxindex 76770f3c6ff..f731e3dcec8 100644--- a/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/dropdown-content/ChartGroupByFieldSelectionMorphRelationFieldView.tsx+++ b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/dropdown-content/ChartGroupByFieldSelectionMorphRelationFieldView.tsx@@ -7,7 +7,7 @@ import { t } from '@lingui/core/macro';import { useMemo } from 'react';import { isDefined, isNonEmptyArray } from 'twenty-shared/utils';import { Dropdown } from 'twenty-ui/components/navigation';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { RelationType } from '~/generated-metadata/graphql';type ChartGroupByFieldSelectionMorphRelationFieldViewProps = {diff --git a/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/dropdown-content/ChartGroupByFieldSelectionTargetObjectFieldsView.tsx b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/dropdown-content/ChartGroupByFieldSelectionTargetObjectFieldsView.tsxindex 495ee3fd7f5..f5f94e17c64 100644--- a/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/dropdown-content/ChartGroupByFieldSelectionTargetObjectFieldsView.tsx+++ b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/dropdown-content/ChartGroupByFieldSelectionTargetObjectFieldsView.tsx@@ -9,7 +9,7 @@ import { t } from '@lingui/core/macro';import { useState } from 'react';import { isDefined, isNonEmptyArray } from 'twenty-shared/utils';import { Dropdown } from 'twenty-ui/components/navigation';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { normalizeSearchText } from 'twenty-ui/utilities';import { filterBySearchQuery } from '~/utils/filterBySearchQuery';diff --git a/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/dropdown-content/FieldWidgetFieldDropdownContent.tsx b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/dropdown-content/FieldWidgetFieldDropdownContent.tsxindex b0e41fe1fbf..4c27d7f9f8f 100644--- a/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/dropdown-content/FieldWidgetFieldDropdownContent.tsx+++ b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/dropdown-content/FieldWidgetFieldDropdownContent.tsx@@ -21,7 +21,7 @@ import { ChartSettingsDropdownSection } from '@/side-panel/pages/page-layout/comimport { t } from '@lingui/core/macro';import { useMemo, useState } from 'react';import { isDefined, isNonEmptyArray } from 'twenty-shared/utils';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { Dropdown } from 'twenty-ui/components/navigation';import { FieldDisplayMode } from '~/generated-metadata/graphql';import { filterBySearchQuery } from '~/utils/filterBySearchQuery';diff --git a/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/dropdown-content/FieldWidgetNestedFieldDropdownContent.tsx b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/dropdown-content/FieldWidgetNestedFieldDropdownContent.tsxindex 0d2b773964b..9fa19b00ef0 100644--- a/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/dropdown-content/FieldWidgetNestedFieldDropdownContent.tsx+++ b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/dropdown-content/FieldWidgetNestedFieldDropdownContent.tsx@@ -2,7 +2,7 @@ import { type FieldMetadataItem } from '@/object-metadata/types/FieldMetadataIteimport { ChartSettingsDropdownSection } from '@/side-panel/pages/page-layout/components/chart-settings/ChartSettingsDropdownSection';import { SelectOptionIcon } from '@/ui/input/components/SelectOptionIcon';import { Dropdown } from 'twenty-ui/components/navigation';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';type FieldWidgetNestedFieldDropdownContentProps = {drillInFieldMetadataItem: FieldMetadataItem;diff --git a/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/RecordTableCalendarFieldDropdownContent.tsx b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/RecordTableCalendarFieldDropdownContent.tsxindex 01aaed0dcd5..abe726bd39f 100644--- a/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/RecordTableCalendarFieldDropdownContent.tsx+++ b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/RecordTableCalendarFieldDropdownContent.tsx@@ -4,7 +4,7 @@ import { SelectOptionIcon } from '@/ui/input/components/SelectOptionIcon';import { useObjectMetadataItems } from '@/object-metadata/hooks/useObjectMetadataItems';import { useRecordTableWidgetLayoutCallbacks } from '@/page-layout/widgets/record-table/hooks/useRecordTableWidgetLayoutCallbacks';import { isFieldMetadataItemAvailableAsCalendarField } from '@/object-record/record-calendar/utils/isFieldMetadataItemAvailableAsCalendarField';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { Dropdown } from 'twenty-ui/components/navigation';type RecordTableCalendarFieldDropdownContentProps = {diff --git a/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/RecordTableFieldsDropdownHiddenFieldsContent.tsx b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/RecordTableFieldsDropdownHiddenFieldsContent.tsxindex 6df5bb2d97f..62658eb3bcd 100644--- a/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/RecordTableFieldsDropdownHiddenFieldsContent.tsx+++ b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/RecordTableFieldsDropdownHiddenFieldsContent.tsx@@ -11,7 +11,8 @@ import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useimport { t } from '@lingui/core/macro';import { isDefined } from 'twenty-shared/utils';import { LightIconButton } from 'twenty-ui/components/input';-import { IconEye, useIcons } from 'twenty-ui/icon';+import { IconEye } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { ListItem } from 'twenty-ui/primitives/navigation';import { v4 } from 'uuid';import { sortByProperty } from '~/utils/array/sortByProperty';diff --git a/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/RecordTableFieldsDropdownVisibleFieldsContent.tsx b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/RecordTableFieldsDropdownVisibleFieldsContent.tsxindex 1f76d964528..0986ea1a7b6 100644--- a/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/RecordTableFieldsDropdownVisibleFieldsContent.tsx+++ b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/RecordTableFieldsDropdownVisibleFieldsContent.tsx@@ -16,7 +16,8 @@ import { t } from '@lingui/core/macro';import { isDefined, isNonEmptyArray } from 'twenty-shared/utils';import { LightIconButton } from 'twenty-ui/components/input';import { Dropdown } from 'twenty-ui/components/navigation';-import { IconEyeOff, useIcons } from 'twenty-ui/icon';+import { IconEyeOff } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { sortByProperty } from '~/utils/array/sortByProperty';type RecordTableFieldsDropdownVisibleFieldsContentProps = {diff --git a/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/RecordTableGroupByDropdownContent.tsx b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/RecordTableGroupByDropdownContent.tsxindex 1dcc9f09091..787c9b8964e 100644--- a/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/RecordTableGroupByDropdownContent.tsx+++ b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/RecordTableGroupByDropdownContent.tsx@@ -6,7 +6,7 @@ import { isFieldMetadataItemAvailableAsWidgetGroupByField } from '@/page-layout/import { t } from '@lingui/core/macro';import { useState } from 'react';import { isNonEmptyArray } from 'twenty-shared/utils';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { Dropdown } from 'twenty-ui/components/navigation';import { filterBySearchQuery } from '~/utils/filterBySearchQuery';diff --git a/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/RecordTableSettingsFieldVisibility.tsx b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/RecordTableSettingsFieldVisibility.tsxindex 04e807edb04..166290e4ee6 100644--- a/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/RecordTableSettingsFieldVisibility.tsx+++ b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/RecordTableSettingsFieldVisibility.tsx@@ -10,7 +10,8 @@ import { styled } from '@linaria/react';import { t } from '@lingui/core/macro';import { useMemo } from 'react';import { LightIconButton } from 'twenty-ui/components/input';-import { IconEye, IconEyeOff, useIcons } from 'twenty-ui/icon';+import { IconEye, IconEyeOff } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { themeCssVariables } from 'twenty-ui/theme';const StyledFieldListContainer = styled.div`diff --git a/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/RecordTableSettingsSorts.tsx b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/RecordTableSettingsSorts.tsxindex 5c149decea2..4d81bb0902f 100644--- a/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/RecordTableSettingsSorts.tsx+++ b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/RecordTableSettingsSorts.tsx@@ -10,7 +10,7 @@ import { InputLabel } from '@/ui/input/components/internal/InputLabel/InputLabelimport { styled } from '@linaria/react';import { t } from '@lingui/core/macro';import { isDefined } from 'twenty-shared/utils';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { type SelectOption } from 'twenty-ui/primitives/input';import { themeCssVariables } from 'twenty-ui/theme';import { ViewSortDirection } from '~/generated-metadata/graphql';diff --git a/packages/twenty-front/src/modules/side-panel/pages/record-creation-form-settings/components/SidePanelRecordCreationFormSettingsPage.tsx b/packages/twenty-front/src/modules/side-panel/pages/record-creation-form-settings/components/SidePanelRecordCreationFormSettingsPage.tsxindex e98b63615bc..2d01fd9bd59 100644--- a/packages/twenty-front/src/modules/side-panel/pages/record-creation-form-settings/components/SidePanelRecordCreationFormSettingsPage.tsx+++ b/packages/twenty-front/src/modules/side-panel/pages/record-creation-form-settings/components/SidePanelRecordCreationFormSettingsPage.tsx@@ -23,7 +23,8 @@ import { useLingui } from '@lingui/react/macro';import { useState } from 'react';import { isDefined } from 'twenty-shared/utils';import { LightIconButton } from 'twenty-ui/components/input';-import { IconEye, IconEyeOff, useIcons } from 'twenty-ui/icon';+import { IconEye, IconEyeOff } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { Button } from 'twenty-ui/primitives/input';import { themeCssVariables } from 'twenty-ui/theme';import { moveArrayItem } from '~/utils/array/moveArrayItem';diff --git a/packages/twenty-front/src/modules/side-panel/pages/search/components/SidePanelSearchRecordPreviewCard.tsx b/packages/twenty-front/src/modules/side-panel/pages/search/components/SidePanelSearchRecordPreviewCard.tsxindex 5403ae81a7b..0a2f3368bc1 100644--- a/packages/twenty-front/src/modules/side-panel/pages/search/components/SidePanelSearchRecordPreviewCard.tsx+++ b/packages/twenty-front/src/modules/side-panel/pages/search/components/SidePanelSearchRecordPreviewCard.tsx@@ -19,7 +19,7 @@ import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateimport { styled } from '@linaria/react';import { useState } from 'react';import { SKELETON_HEIGHT_SIZES } from 'twenty-ui/primitives/feedback';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { themeCssVariables } from 'twenty-ui/theme';import { getAbsoluteImageUrl } from '~/utils/image/getAbsoluteImageUrl';diff --git a/packages/twenty-front/src/modules/side-panel/pages/workflow/action/components/WorkflowActionMenuItems.tsx b/packages/twenty-front/src/modules/side-panel/pages/workflow/action/components/WorkflowActionMenuItems.tsxindex 093d0d60d14..87500cfc7ad 100644--- a/packages/twenty-front/src/modules/side-panel/pages/workflow/action/components/WorkflowActionMenuItems.tsx+++ b/packages/twenty-front/src/modules/side-panel/pages/workflow/action/components/WorkflowActionMenuItems.tsx@@ -4,7 +4,7 @@ import { getActionIconColorOrThrow } from '@/workflow/workflow-steps/workflow-acimport { type MessageDescriptor } from '@lingui/core';import { useLingui } from '@lingui/react/macro';import { ListItemButton } from 'twenty-ui/components/navigation';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';type Action = {defaultLabel: MessageDescriptor;diff --git a/packages/twenty-front/src/modules/side-panel/pages/workflow/step/create/components/SidePanelWorkflowCreateStepContent.tsx b/packages/twenty-front/src/modules/side-panel/pages/workflow/step/create/components/SidePanelWorkflowCreateStepContent.tsxindex c10835f9a8b..0006b8da3be 100644--- a/packages/twenty-front/src/modules/side-panel/pages/workflow/step/create/components/SidePanelWorkflowCreateStepContent.tsx+++ b/packages/twenty-front/src/modules/side-panel/pages/workflow/step/create/components/SidePanelWorkflowCreateStepContent.tsx@@ -22,7 +22,7 @@ import { getActionIcon } from '@/workflow/workflow-steps/workflow-actions/utils/import { useSetAtomState } from '@/ui/utilities/state/jotai/hooks/useSetAtomState';import { isDefined } from 'twenty-shared/utils';import { doNotTranslate } from 'twenty-shared/i18n';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';export const SidePanelWorkflowCreateStepContent = () => {const { getIcon } = useIcons();diff --git a/packages/twenty-front/src/modules/side-panel/pages/workflow/step/edit/components/SidePanelWorkflowEditStepTypeContent.tsx b/packages/twenty-front/src/modules/side-panel/pages/workflow/step/edit/components/SidePanelWorkflowEditStepTypeContent.tsxindex 9fcae497941..7e8be93ff86 100644--- a/packages/twenty-front/src/modules/side-panel/pages/workflow/step/edit/components/SidePanelWorkflowEditStepTypeContent.tsx+++ b/packages/twenty-front/src/modules/side-panel/pages/workflow/step/edit/components/SidePanelWorkflowEditStepTypeContent.tsx@@ -19,7 +19,7 @@ import { getActionIcon } from '@/workflow/workflow-steps/workflow-actions/utils/import { useSetAtomState } from '@/ui/utilities/state/jotai/hooks/useSetAtomState';import { isDefined } from 'twenty-shared/utils';import { doNotTranslate } from 'twenty-shared/i18n';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';export const SidePanelWorkflowEditStepTypeContent = () => {const { getIcon } = useIcons();diff --git a/packages/twenty-front/src/modules/side-panel/pages/workflow/trigger-type/components/SidePanelWorkflowSelectTriggerTypeContent.tsx b/packages/twenty-front/src/modules/side-panel/pages/workflow/trigger-type/components/SidePanelWorkflowSelectTriggerTypeContent.tsxindex 402a635d805..f1d990ebe04 100644--- a/packages/twenty-front/src/modules/side-panel/pages/workflow/trigger-type/components/SidePanelWorkflowSelectTriggerTypeContent.tsx+++ b/packages/twenty-front/src/modules/side-panel/pages/workflow/trigger-type/components/SidePanelWorkflowSelectTriggerTypeContent.tsx@@ -20,7 +20,7 @@ import { t } from '@lingui/core/macro';import { isDefined } from 'twenty-shared/utils';import { TRIGGER_STEP_ID } from 'twenty-shared/workflow';import { ListItemButton } from 'twenty-ui/components/navigation';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { useTheme } from 'twenty-ui/theme';export const SidePanelWorkflowSelectTriggerTypeContent = () => {diff --git a/packages/twenty-front/src/modules/sign-in-background-mock/components/BackgroundMockTable.tsx b/packages/twenty-front/src/modules/sign-in-background-mock/components/BackgroundMockTable.tsxindex 5ee794a9d96..74aa2321cb8 100644--- a/packages/twenty-front/src/modules/sign-in-background-mock/components/BackgroundMockTable.tsx+++ b/packages/twenty-front/src/modules/sign-in-background-mock/components/BackgroundMockTable.tsx@@ -6,7 +6,8 @@ import { BACKGROUND_MOCK_COLUMNS } from '@/sign-in-background-mock/constants/Bacimport { BACKGROUND_MOCK_COMPANIES } from '@/sign-in-background-mock/constants/BackgroundMockCompanies';import { BACKGROUND_MOCK_TABLE_DIMENSIONS } from '@/sign-in-background-mock/constants/BackgroundMockTableDimensions';import { OverflowingTextWithTooltip } from 'twenty-ui/primitives/typography';-import { IconChevronDown, IconPlus, useIcons } from 'twenty-ui/icon';+import { IconChevronDown, IconPlus } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { Checkbox } from 'twenty-ui/primitives/input';import { useTheme, themeCssVariables } from 'twenty-ui/theme';diff --git a/packages/twenty-front/src/modules/skill-suggestion/components/SkillReferenceChip.tsx b/packages/twenty-front/src/modules/skill-suggestion/components/SkillReferenceChip.tsxindex 76b2dbd4d7c..c170c1644bc 100644--- a/packages/twenty-front/src/modules/skill-suggestion/components/SkillReferenceChip.tsx+++ b/packages/twenty-front/src/modules/skill-suggestion/components/SkillReferenceChip.tsx@@ -2,7 +2,7 @@ import { getChipLabel } from '@/ui/field/display/utils/getChipLabel';import { LinkChip } from '@/ui/navigation/link/components/LinkChip/LinkChip';import { SettingsPath } from 'twenty-shared/types';import { getSettingsPath } from 'twenty-shared/utils';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { useTheme } from 'twenty-ui/theme';import { DEFAULT_SKILL_ICON } from '@/skill-suggestion/constants/DefaultSkillIcon';diff --git a/packages/twenty-front/src/modules/skill-suggestion/components/SkillSuggestionMenuItem.tsx b/packages/twenty-front/src/modules/skill-suggestion/components/SkillSuggestionMenuItem.tsxindex c46369a325c..d70a7b9ab09 100644--- a/packages/twenty-front/src/modules/skill-suggestion/components/SkillSuggestionMenuItem.tsx+++ b/packages/twenty-front/src/modules/skill-suggestion/components/SkillSuggestionMenuItem.tsx@@ -1,5 +1,5 @@import { SuggestionListItem } from '@/ui/suggestion/components/SuggestionListItem';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { DEFAULT_SKILL_ICON } from '@/skill-suggestion/constants/DefaultSkillIcon';import type { SkillSuggestionItem } from '@/skill-suggestion/types/SkillSuggestionItem';diff --git a/packages/twenty-front/src/modules/skill-suggestion/components/SkillSuggestionPreviewCard.tsx b/packages/twenty-front/src/modules/skill-suggestion/components/SkillSuggestionPreviewCard.tsxindex 75744ffba37..a508bbcc2ca 100644--- a/packages/twenty-front/src/modules/skill-suggestion/components/SkillSuggestionPreviewCard.tsx+++ b/packages/twenty-front/src/modules/skill-suggestion/components/SkillSuggestionPreviewCard.tsx@@ -1,6 +1,6 @@import { styled } from '@linaria/react';import { isNonEmptyString } from '@sniptt/guards';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { themeCssVariables, useTheme } from 'twenty-ui/theme';import { DEFAULT_SKILL_ICON } from '@/skill-suggestion/constants/DefaultSkillIcon';diff --git a/packages/twenty-front/src/modules/spreadsheet-import/components/MatchColumnSelectFieldSelectDropdownContent.tsx b/packages/twenty-front/src/modules/spreadsheet-import/components/MatchColumnSelectFieldSelectDropdownContent.tsxindex 30cca5da484..3f2e3aeef57 100644--- a/packages/twenty-front/src/modules/spreadsheet-import/components/MatchColumnSelectFieldSelectDropdownContent.tsx+++ b/packages/twenty-front/src/modules/spreadsheet-import/components/MatchColumnSelectFieldSelectDropdownContent.tsx@@ -9,7 +9,8 @@ import { useLingui } from '@lingui/react/macro';import { useState } from 'react';import { isNonEmptyArray } from 'twenty-shared/utils';import { Dropdown, useDropdownPage } from 'twenty-ui/components/navigation';-import { IconForbid, useIcons } from 'twenty-ui/icon';+import { IconForbid } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { type SelectOption } from 'twenty-ui/primitives/input';import { type ReadonlyDeep } from 'type-fest';import { normalizeSearchText } from 'twenty-ui/utilities';diff --git a/packages/twenty-front/src/modules/ui/input/components/IconPicker.tsx b/packages/twenty-front/src/modules/ui/input/components/IconPicker.tsxindex 1a5ac007b0f..385a8bc8a64 100644--- a/packages/twenty-front/src/modules/ui/input/components/IconPicker.tsx+++ b/packages/twenty-front/src/modules/ui/input/components/IconPicker.tsx@@ -6,7 +6,8 @@ import { isDefined } from 'twenty-shared/utils';import { getIconTileColorShades } from 'twenty-ui/components/data-display';import { IconButton, LightIconButton } from 'twenty-ui/components/input';import { Dropdown } from 'twenty-ui/components/navigation';-import { IconApps, type IconComponent, useIcons } from 'twenty-ui/icon';+import { IconApps, type IconComponent } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { ColorSample } from 'twenty-ui/primitives/data-display';import {type ButtonSize,diff --git a/packages/twenty-front/src/modules/validation-rules/components/SettingsValidationRuleFieldChip.tsx b/packages/twenty-front/src/modules/validation-rules/components/SettingsValidationRuleFieldChip.tsxindex 21f499046ca..bfa1bef6634 100644--- a/packages/twenty-front/src/modules/validation-rules/components/SettingsValidationRuleFieldChip.tsx+++ b/packages/twenty-front/src/modules/validation-rules/components/SettingsValidationRuleFieldChip.tsx@@ -1,6 +1,6 @@import { getChipLabel } from '@/ui/field/display/utils/getChipLabel';import { styled } from '@linaria/react';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { Chip } from 'twenty-ui/primitives/data-display';import { themeCssVariables, useTheme } from 'twenty-ui/theme';diff --git a/packages/twenty-front/src/modules/validation-rules/components/SettingsValidationRuleForm.tsx b/packages/twenty-front/src/modules/validation-rules/components/SettingsValidationRuleForm.tsxindex 224df4d3e67..d7f9a6ec368 100644--- a/packages/twenty-front/src/modules/validation-rules/components/SettingsValidationRuleForm.tsx+++ b/packages/twenty-front/src/modules/validation-rules/components/SettingsValidationRuleForm.tsx@@ -2,7 +2,8 @@ import { styled } from '@linaria/react';import { useLingui } from '@lingui/react/macro';import { type ValidationRuleFieldDescriptor } from 'twenty-shared/types';import { Section } from 'twenty-ui/components/layout';-import { IconAddressBook, useIcons } from 'twenty-ui/icon';+import { IconAddressBook } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { themeCssVariables } from 'twenty-ui/theme';import { type EnrichedObjectMetadataItem } from '@/object-metadata/types/EnrichedObjectMetadataItem';diff --git a/packages/twenty-front/src/modules/validation-rules/components/SettingsValidationRuleHelperDetails.tsx b/packages/twenty-front/src/modules/validation-rules/components/SettingsValidationRuleHelperDetails.tsxindex 5db5ac30277..6df137d7c0d 100644--- a/packages/twenty-front/src/modules/validation-rules/components/SettingsValidationRuleHelperDetails.tsx+++ b/packages/twenty-front/src/modules/validation-rules/components/SettingsValidationRuleHelperDetails.tsx@@ -1,7 +1,7 @@import { styled } from '@linaria/react';import { useLingui } from '@lingui/react/macro';import { isDefined } from 'twenty-shared/utils';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { Tag } from 'twenty-ui/primitives/data-display';import { themeCssVariables, useTheme } from 'twenty-ui/theme';diff --git a/packages/twenty-front/src/modules/validation-rules/components/SettingsValidationRuleHelperPanel.tsx b/packages/twenty-front/src/modules/validation-rules/components/SettingsValidationRuleHelperPanel.tsxindex 3738f73cd3a..d8b9cf5a94e 100644--- a/packages/twenty-front/src/modules/validation-rules/components/SettingsValidationRuleHelperPanel.tsx+++ b/packages/twenty-front/src/modules/validation-rules/components/SettingsValidationRuleHelperPanel.tsx@@ -2,7 +2,7 @@ import { styled } from '@linaria/react';import { useLingui } from '@lingui/react/macro';import { isDefined } from 'twenty-shared/utils';import { ListItem } from 'twenty-ui/primitives/navigation';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { themeCssVariables } from 'twenty-ui/theme';import { SettingsValidationRuleHelperDetails } from '@/validation-rules/components/SettingsValidationRuleHelperDetails';diff --git a/packages/twenty-front/src/modules/validation-rules/components/SettingsValidationRulePreview.tsx b/packages/twenty-front/src/modules/validation-rules/components/SettingsValidationRulePreview.tsxindex ba7570cfeb4..8bc418ac6ba 100644--- a/packages/twenty-front/src/modules/validation-rules/components/SettingsValidationRulePreview.tsx+++ b/packages/twenty-front/src/modules/validation-rules/components/SettingsValidationRulePreview.tsx@@ -12,7 +12,8 @@ import {} from 'twenty-shared/utils';import { InlineBanner } from 'twenty-ui/components/feedback';import { LightIconButton } from 'twenty-ui/components/input';-import { IconChevronDown, IconChevronUp, useIcons } from 'twenty-ui/icon';+import { IconChevronDown, IconChevronUp } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { Status } from 'twenty-ui/primitives/data-display';import { Card, Tooltip } from 'twenty-ui/primitives/surfaces';import { themeCssVariables, useTheme } from 'twenty-ui/theme';diff --git a/packages/twenty-front/src/modules/views/components/SoftDeleteFilterChip.tsx b/packages/twenty-front/src/modules/views/components/SoftDeleteFilterChip.tsxindex dac735f0fd8..e108c8811c6 100644--- a/packages/twenty-front/src/modules/views/components/SoftDeleteFilterChip.tsx+++ b/packages/twenty-front/src/modules/views/components/SoftDeleteFilterChip.tsx@@ -3,7 +3,7 @@ import { type RecordFilter } from '@/object-record/record-filter/types/RecordFilimport { isSoftDeleteFilterActiveComponentState } from '@/object-record/record-table/states/isSoftDeleteFilterActiveComponentState';import { useSetAtomComponentState } from '@/ui/utilities/state/jotai/hooks/useSetAtomComponentState';import { SortOrFilterChip } from '@/views/components/SortOrFilterChip';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';type SoftDeleteFilterChipProps = {recordFilter: RecordFilter;diff --git a/packages/twenty-front/src/modules/views/components/ViewBarFilterDropdownFieldSelectMenuItem.tsx b/packages/twenty-front/src/modules/views/components/ViewBarFilterDropdownFieldSelectMenuItem.tsxindex 82ef6c4f15f..cc459ca40a8 100644--- a/packages/twenty-front/src/modules/views/components/ViewBarFilterDropdownFieldSelectMenuItem.tsx+++ b/packages/twenty-front/src/modules/views/components/ViewBarFilterDropdownFieldSelectMenuItem.tsx@@ -6,7 +6,7 @@ import { useSelectableList } from '@/ui/layout/selectable-list/hooks/useSelectabimport { isSelectedItemIdComponentFamilyState } from '@/ui/layout/selectable-list/states/isSelectedItemIdComponentFamilyState';import { useAtomComponentFamilyStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentFamilyStateValue';import { useInitializeFilterOnFieldMetadataItemFromViewBarFilterDropdown } from '@/views/hooks/useInitializeFilterOnFieldMetadataItemFromViewBarFilterDropdown';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';export type ViewBarFilterDropdownFieldSelectMenuItemProps = {fieldMetadataItemToSelect: FieldMetadataItem;diff --git a/packages/twenty-front/src/modules/views/components/ViewFieldsHiddenDropdownSection.tsx b/packages/twenty-front/src/modules/views/components/ViewFieldsHiddenDropdownSection.tsxindex 8f3f438c34b..4ff5a9d4548 100644--- a/packages/twenty-front/src/modules/views/components/ViewFieldsHiddenDropdownSection.tsx+++ b/packages/twenty-front/src/modules/views/components/ViewFieldsHiddenDropdownSection.tsx@@ -10,7 +10,8 @@ import { ViewType } from '@/views/types/ViewType';import { t } from '@lingui/core/macro';import { useContext } from 'react';import { LightIconButton } from 'twenty-ui/components/input';-import { IconEye, useIcons } from 'twenty-ui/icon';+import { IconEye } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { ListItem } from 'twenty-ui/primitives/navigation';export const ViewFieldsHiddenDropdownSection = () => {diff --git a/packages/twenty-front/src/modules/views/components/ViewFieldsSearchDropdownSection.tsx b/packages/twenty-front/src/modules/views/components/ViewFieldsSearchDropdownSection.tsxindex 261e93a5d33..7725b1d1d35 100644--- a/packages/twenty-front/src/modules/views/components/ViewFieldsSearchDropdownSection.tsx+++ b/packages/twenty-front/src/modules/views/components/ViewFieldsSearchDropdownSection.tsx@@ -11,7 +11,8 @@ import { ViewType } from '@/views/types/ViewType';import { useLingui } from '@lingui/react/macro';import { useContext } from 'react';import { LightIconButton } from 'twenty-ui/components/input';-import { IconEye, IconEyeOff, useIcons } from 'twenty-ui/icon';+import { IconEye, IconEyeOff } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { ListItem } from 'twenty-ui/primitives/navigation';type ViewFieldsSearchDropdownSectionProps = {diff --git a/packages/twenty-front/src/modules/views/components/ViewFieldsVisibleDropdownSection.tsx b/packages/twenty-front/src/modules/views/components/ViewFieldsVisibleDropdownSection.tsxindex be05a54ff10..e04586810e8 100644--- a/packages/twenty-front/src/modules/views/components/ViewFieldsVisibleDropdownSection.tsx+++ b/packages/twenty-front/src/modules/views/components/ViewFieldsVisibleDropdownSection.tsx@@ -17,7 +17,8 @@ import { t } from '@lingui/core/macro';import { useContext } from 'react';import { isDefined } from 'twenty-shared/utils';import { LightIconButton } from 'twenty-ui/components/input';-import { IconEyeOff, useIcons } from 'twenty-ui/icon';+import { IconEyeOff } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { sortByProperty } from '~/utils/array/sortByProperty';export const ViewFieldsVisibleDropdownSection = () => {diff --git a/packages/twenty-front/src/modules/views/editable-chip/components/EditableFilterChip.tsx b/packages/twenty-front/src/modules/views/editable-chip/components/EditableFilterChip.tsxindex 5a93e54b1b5..ddf6fff4b02 100644--- a/packages/twenty-front/src/modules/views/editable-chip/components/EditableFilterChip.tsx+++ b/packages/twenty-front/src/modules/views/editable-chip/components/EditableFilterChip.tsx@@ -7,7 +7,7 @@ import { SortOrFilterChip } from '@/views/components/SortOrFilterChip';import { useGetRecordFilterChipLabelValue } from '@/views/hooks/useGetRecordFilterChipLabelValue';import { isNonEmptyString } from '@sniptt/guards';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { FieldMetadataType } from '~/generated-metadata/graphql';type EditableFilterChipProps = {diff --git a/packages/twenty-front/src/modules/views/editable-chip/components/EditableRelationFilterChip.tsx b/packages/twenty-front/src/modules/views/editable-chip/components/EditableRelationFilterChip.tsxindex b066ce8b9b4..05ce3de5aa7 100644--- a/packages/twenty-front/src/modules/views/editable-chip/components/EditableRelationFilterChip.tsx+++ b/packages/twenty-front/src/modules/views/editable-chip/components/EditableRelationFilterChip.tsx@@ -2,7 +2,7 @@ import { useFieldMetadataItemByIdOrThrow } from '@/object-metadata/hooks/useFielimport { type RecordFilter } from '@/object-record/record-filter/types/RecordFilter';import { SortOrFilterChip } from '@/views/components/SortOrFilterChip';import { useComputeRecordRelationFilterLabelValue } from '@/views/hooks/useComputeRecordRelationFilterLabelValue';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';type EditableRelationFilterChipProps = {recordFilter: RecordFilter;diff --git a/packages/twenty-front/src/modules/views/view-picker/components/ViewPickerDropdown.tsx b/packages/twenty-front/src/modules/views/view-picker/components/ViewPickerDropdown.tsxindex 15bbc92d4e4..737d603420e 100644--- a/packages/twenty-front/src/modules/views/view-picker/components/ViewPickerDropdown.tsx+++ b/packages/twenty-front/src/modules/views/view-picker/components/ViewPickerDropdown.tsx@@ -17,7 +17,8 @@ import { styled } from '@linaria/react';import { t } from '@lingui/core/macro';import { isDefined } from 'twenty-shared/utils';import { OverflowingTextWithTooltip } from 'twenty-ui/primitives/typography';-import { IconChevronDown, IconList, useIcons } from 'twenty-ui/icon';+import { IconChevronDown, IconList } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { MOBILE_VIEWPORT, useTheme, themeCssVariables } from 'twenty-ui/theme';const StyledIconContainer = styled.span`diff --git a/packages/twenty-front/src/modules/views/view-picker/components/ViewPickerOptionDropdown.tsx b/packages/twenty-front/src/modules/views/view-picker/components/ViewPickerOptionDropdown.tsxindex 84cc3ac9750..9efd24d2621 100644--- a/packages/twenty-front/src/modules/views/view-picker/components/ViewPickerOptionDropdown.tsx+++ b/packages/twenty-front/src/modules/views/view-picker/components/ViewPickerOptionDropdown.tsx@@ -20,8 +20,8 @@ import {IconLock,IconPencil,IconTrash,- useIcons,} from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import {PermissionFlagType,ViewVisibility,diff --git a/packages/twenty-front/src/modules/workflow/components/WorkflowEditUpdateEventFieldsMultiSelect.tsx b/packages/twenty-front/src/modules/workflow/components/WorkflowEditUpdateEventFieldsMultiSelect.tsxindex 02f373575a5..1ca5ca6a2e0 100644--- a/packages/twenty-front/src/modules/workflow/components/WorkflowEditUpdateEventFieldsMultiSelect.tsx+++ b/packages/twenty-front/src/modules/workflow/components/WorkflowEditUpdateEventFieldsMultiSelect.tsx@@ -7,7 +7,7 @@ import { shouldDisplayFormField } from '@/workflow/workflow-steps/workflow-actioimport { t } from '@lingui/core/macro';import { isDefined } from 'twenty-shared/utils';import { doNotTranslate } from 'twenty-shared/i18n';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { RelationType } from '~/generated-metadata/graphql';export const WorkflowFieldsMultiSelect = ({diff --git a/packages/twenty-front/src/modules/workflow/hooks/useRunWorkflowRunOpeningInSidePanelEffects.ts b/packages/twenty-front/src/modules/workflow/hooks/useRunWorkflowRunOpeningInSidePanelEffects.tsindex 6a9a50da23f..fd04e1a5bd7 100644--- a/packages/twenty-front/src/modules/workflow/hooks/useRunWorkflowRunOpeningInSidePanelEffects.ts+++ b/packages/twenty-front/src/modules/workflow/hooks/useRunWorkflowRunOpeningInSidePanelEffects.ts@@ -15,7 +15,7 @@ import { generateWorkflowRunDiagram } from '@/workflow/workflow-diagram/utils/geimport { getWorkflowNodeIconKey } from '@/workflow/workflow-diagram/utils/getWorkflowNodeIconKey';import { useCallback } from 'react';import { isDefined } from 'twenty-shared/utils';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { useStore } from 'jotai';export const useRunWorkflowRunOpeningInSidePanelEffects = () => {diff --git a/packages/twenty-front/src/modules/workflow/workflow-diagram/components/WorkflowRunVisualizerEffect.tsx b/packages/twenty-front/src/modules/workflow/workflow-diagram/components/WorkflowRunVisualizerEffect.tsxindex e13c2d2ebb1..ae803c87a03 100644--- a/packages/twenty-front/src/modules/workflow/workflow-diagram/components/WorkflowRunVisualizerEffect.tsx+++ b/packages/twenty-front/src/modules/workflow/workflow-diagram/components/WorkflowRunVisualizerEffect.tsx@@ -22,7 +22,7 @@ import { useCallback, useContext, useEffect } from 'react';import { isDefined } from 'twenty-shared/utils';import { doNotTranslate } from 'twenty-shared/i18n';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';export const WorkflowRunVisualizerEffect = ({workflowRunId,diff --git a/packages/twenty-front/src/modules/workflow/workflow-diagram/workflow-nodes/components/WorkflowDiagramEmptyTriggerReadonly.tsx b/packages/twenty-front/src/modules/workflow/workflow-diagram/workflow-nodes/components/WorkflowDiagramEmptyTriggerReadonly.tsxindex b9890268d7e..1045bfa93cb 100644--- a/packages/twenty-front/src/modules/workflow/workflow-diagram/workflow-nodes/components/WorkflowDiagramEmptyTriggerReadonly.tsx+++ b/packages/twenty-front/src/modules/workflow/workflow-diagram/workflow-nodes/components/WorkflowDiagramEmptyTriggerReadonly.tsx@@ -19,7 +19,7 @@ import { useContext } from 'react';import { isDefined } from 'twenty-shared/utils';import { doNotTranslate } from 'twenty-shared/i18n';import { TRIGGER_STEP_ID } from 'twenty-shared/workflow';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';export const WorkflowDiagramEmptyTriggerReadonly = ({ id }: { id: string }) => {const { getIcon } = useIcons();diff --git a/packages/twenty-front/src/modules/workflow/workflow-diagram/workflow-nodes/components/WorkflowDiagramStepNodeEditable.tsx b/packages/twenty-front/src/modules/workflow/workflow-diagram/workflow-nodes/components/WorkflowDiagramStepNodeEditable.tsxindex ca2dec1650e..2e8d5b44150 100644--- a/packages/twenty-front/src/modules/workflow/workflow-diagram/workflow-nodes/components/WorkflowDiagramStepNodeEditable.tsx+++ b/packages/twenty-front/src/modules/workflow/workflow-diagram/workflow-nodes/components/WorkflowDiagramStepNodeEditable.tsx@@ -14,7 +14,7 @@ import { useDeleteStep } from '@/workflow/workflow-steps/hooks/useDeleteStep';import { useDuplicateStep } from '@/workflow/workflow-steps/hooks/useDuplicateStep';import { useContext } from 'react';import { isDefined } from 'twenty-shared/utils';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';export const WorkflowDiagramStepNodeEditable = ({id,diff --git a/packages/twenty-front/src/modules/workflow/workflow-diagram/workflow-nodes/components/WorkflowDiagramStepNodeIcon.tsx b/packages/twenty-front/src/modules/workflow/workflow-diagram/workflow-nodes/components/WorkflowDiagramStepNodeIcon.tsxindex 91dbc64c468..8cb24eae1f1 100644--- a/packages/twenty-front/src/modules/workflow/workflow-diagram/workflow-nodes/components/WorkflowDiagramStepNodeIcon.tsx+++ b/packages/twenty-front/src/modules/workflow/workflow-diagram/workflow-nodes/components/WorkflowDiagramStepNodeIcon.tsx@@ -5,7 +5,7 @@ import { getWorkflowNodeIconKey } from '@/workflow/workflow-diagram/utils/getWorimport { WorkflowDiagramStepNodeLogicFunctionIcon } from '@/workflow/workflow-diagram/workflow-nodes/components/WorkflowDiagramStepNodeLogicFunctionIcon';import { getActionIconColorOrThrow } from '@/workflow/workflow-steps/workflow-actions/utils/getActionIconColorOrThrow';import { getTriggerIconColor } from '@/workflow/workflow-trigger/utils/getTriggerIconColor';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { useTheme } from 'twenty-ui/theme';export const WorkflowDiagramStepNodeIcon = ({diff --git a/packages/twenty-front/src/modules/workflow/workflow-diagram/workflow-nodes/components/WorkflowDiagramStepNodeLogicFunctionIcon.tsx b/packages/twenty-front/src/modules/workflow/workflow-diagram/workflow-nodes/components/WorkflowDiagramStepNodeLogicFunctionIcon.tsxindex 731c92b6d79..40fee9b0dba 100644--- a/packages/twenty-front/src/modules/workflow/workflow-diagram/workflow-nodes/components/WorkflowDiagramStepNodeLogicFunctionIcon.tsx+++ b/packages/twenty-front/src/modules/workflow/workflow-diagram/workflow-nodes/components/WorkflowDiagramStepNodeLogicFunctionIcon.tsx@@ -5,7 +5,7 @@ import { getActionIconStrokeOrThrow } from '@/workflow/workflow-steps/workflow-aimport { getActionIconColorOrThrow } from '@/workflow/workflow-steps/workflow-actions/utils/getActionIconColorOrThrow';import { getActionIcon } from '@/workflow/workflow-steps/workflow-actions/utils/getActionIcon';import { isDefined } from 'twenty-shared/utils';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { useTheme } from 'twenty-ui/theme';export const WorkflowDiagramStepNodeLogicFunctionIcon = ({diff --git a/packages/twenty-front/src/modules/workflow/workflow-diagram/workflow-nodes/components/WorkflowDiagramStepNodeReadonly.tsx b/packages/twenty-front/src/modules/workflow/workflow-diagram/workflow-nodes/components/WorkflowDiagramStepNodeReadonly.tsxindex 027b2649a15..200b5869f37 100644--- a/packages/twenty-front/src/modules/workflow/workflow-diagram/workflow-nodes/components/WorkflowDiagramStepNodeReadonly.tsx+++ b/packages/twenty-front/src/modules/workflow/workflow-diagram/workflow-nodes/components/WorkflowDiagramStepNodeReadonly.tsx@@ -26,7 +26,7 @@ import { Position } from '@xyflow/react';import { useContext } from 'react';import { isDefined } from 'twenty-shared/utils';import { doNotTranslate } from 'twenty-shared/i18n';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';export const WorkflowDiagramStepNodeReadonly = ({id,diff --git a/packages/twenty-front/src/modules/workflow/workflow-diagram/workflow-nodes/components/WorkflowRunDiagramStepNode.tsx b/packages/twenty-front/src/modules/workflow/workflow-diagram/workflow-nodes/components/WorkflowRunDiagramStepNode.tsxindex 3536a43ed6f..cf85f451dc7 100644--- a/packages/twenty-front/src/modules/workflow/workflow-diagram/workflow-nodes/components/WorkflowRunDiagramStepNode.tsx+++ b/packages/twenty-front/src/modules/workflow/workflow-diagram/workflow-nodes/components/WorkflowRunDiagramStepNode.tsx@@ -30,7 +30,8 @@ import { useContext } from 'react';import { isDefined } from 'twenty-shared/utils';import { doNotTranslate } from 'twenty-shared/i18n';import { StepStatus } from 'twenty-shared/workflow';-import { IconCheck, IconX, useIcons } from 'twenty-ui/icon';+import { IconCheck, IconX } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { Loader } from 'twenty-ui/primitives/feedback';import { themeCssVariables } from 'twenty-ui/theme';diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/components/WorkflowDropdownStepOutputItems.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/components/WorkflowDropdownStepOutputItems.tsxindex fc7513071ce..1b59e19a8ed 100644--- a/packages/twenty-front/src/modules/workflow/workflow-steps/components/WorkflowDropdownStepOutputItems.tsx+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/components/WorkflowDropdownStepOutputItems.tsx@@ -18,7 +18,8 @@ import { useLingui } from '@lingui/react/macro';import { isNonEmptyString } from '@sniptt/guards';import { type StepFilter } from 'twenty-shared/types';import { isDefined, isNonEmptyArray } from 'twenty-shared/utils';-import { IconChevronLeft, useIcons } from 'twenty-ui/icon';+import { IconChevronLeft } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { LightIconButton } from 'twenty-ui/components/input';import { Dropdown } from 'twenty-ui/components/navigation';diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/filters/components/WorkflowStepFilterFieldSelect.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/filters/components/WorkflowStepFilterFieldSelect.tsxindex 3e8ddb017ff..54040ce6324 100644--- a/packages/twenty-front/src/modules/workflow/workflow-steps/filters/components/WorkflowStepFilterFieldSelect.tsx+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/filters/components/WorkflowStepFilterFieldSelect.tsx@@ -28,7 +28,7 @@ import {extractRawVariableNamePart,isStandaloneVariableString,} from 'twenty-shared/workflow';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { FieldMetadataType } from '~/generated-metadata/graphql';type WorkflowStepFilterFieldSelectProps = {diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/find-records-action/components/WorkflowFindRecordsSorts.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/find-records-action/components/WorkflowFindRecordsSorts.tsxindex 4d97eb9f269..940856f07a7 100644--- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/find-records-action/components/WorkflowFindRecordsSorts.tsx+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/find-records-action/components/WorkflowFindRecordsSorts.tsx@@ -4,7 +4,8 @@ import { type RecordSort } from '@/object-record/record-sort/types/RecordSort';import { Select } from '@/ui/input/components/Select';import { styled } from '@linaria/react';import { useLingui } from '@lingui/react/macro';-import { IconArrowsSort, IconTrash, useIcons } from 'twenty-ui/icon';+import { IconArrowsSort, IconTrash } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { Button, type SelectOption } from 'twenty-ui/primitives/input';import { v4 as uuidv4 } from 'uuid';import { ViewSortDirection } from '~/generated-metadata/graphql';diff --git a/packages/twenty-front/src/modules/workflow/workflow-trigger/components/WorkflowEditTriggerManual.tsx b/packages/twenty-front/src/modules/workflow/workflow-trigger/components/WorkflowEditTriggerManual.tsxindex e48a87db5ca..d04d508f2a4 100644--- a/packages/twenty-front/src/modules/workflow/workflow-trigger/components/WorkflowEditTriggerManual.tsx+++ b/packages/twenty-front/src/modules/workflow/workflow-trigger/components/WorkflowEditTriggerManual.tsx@@ -15,7 +15,7 @@ import { useLingui } from '@lingui/react/macro';import { QUERY_MAX_RECORDS } from 'twenty-shared/constants';import { isDefined } from 'twenty-shared/utils';import { TRIGGER_STEP_ID } from 'twenty-shared/workflow';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { type SelectOption } from 'twenty-ui/primitives/input';import { themeCssVariables } from 'twenty-ui/theme';diff --git a/packages/twenty-front/src/modules/workflow/workflow-variables/components/WorkflowVariableSearchResultItems.tsx b/packages/twenty-front/src/modules/workflow/workflow-variables/components/WorkflowVariableSearchResultItems.tsxindex 9e6840442af..9e8de7c8d20 100644--- a/packages/twenty-front/src/modules/workflow/workflow-variables/components/WorkflowVariableSearchResultItems.tsx+++ b/packages/twenty-front/src/modules/workflow/workflow-variables/components/WorkflowVariableSearchResultItems.tsx@@ -1,6 +1,6 @@import { SelectOptionIcon } from '@/ui/input/components/SelectOptionIcon';import { type WorkflowVariableSearchResult } from '@/workflow/workflow-variables/types/WorkflowVariableSearchResult';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { Dropdown } from 'twenty-ui/components/navigation';type WorkflowVariableSearchResultItemsProps = {diff --git a/packages/twenty-front/src/modules/workflow/workflow-variables/components/WorkflowVariablesDropdownStepItems.tsx b/packages/twenty-front/src/modules/workflow/workflow-variables/components/WorkflowVariablesDropdownStepItems.tsxindex d668816926e..e7823efc045 100644--- a/packages/twenty-front/src/modules/workflow/workflow-variables/components/WorkflowVariablesDropdownStepItems.tsx+++ b/packages/twenty-front/src/modules/workflow/workflow-variables/components/WorkflowVariablesDropdownStepItems.tsx@@ -19,7 +19,8 @@ import {import { useLingui } from '@lingui/react/macro';import { isNonEmptyString } from '@sniptt/guards';import { isDefined, isNonEmptyArray } from 'twenty-shared/utils';-import { IconChevronLeft, useIcons } from 'twenty-ui/icon';+import { IconChevronLeft } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { LightIconButton } from 'twenty-ui/components/input';import { Dropdown } from 'twenty-ui/components/navigation';diff --git a/packages/twenty-front/src/modules/workflow/workflow-variables/components/WorkflowVariablesDropdownSteps.tsx b/packages/twenty-front/src/modules/workflow/workflow-variables/components/WorkflowVariablesDropdownSteps.tsxindex 7482909e29e..b2d7fa3b86c 100644--- a/packages/twenty-front/src/modules/workflow/workflow-variables/components/WorkflowVariablesDropdownSteps.tsx+++ b/packages/twenty-front/src/modules/workflow/workflow-variables/components/WorkflowVariablesDropdownSteps.tsx@@ -13,7 +13,7 @@ import { t } from '@lingui/core/macro';import { isNonEmptyString } from '@sniptt/guards';import { useState } from 'react';import { isNonEmptyArray } from 'twenty-shared/utils';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { Dropdown } from 'twenty-ui/components/navigation';type WorkflowVariablesDropdownStepsProps = {diff --git a/packages/twenty-front/src/modules/workflow/workflow-variables/hooks/useOpenWorkflowStepTestTab.ts b/packages/twenty-front/src/modules/workflow/workflow-variables/hooks/useOpenWorkflowStepTestTab.tsindex daf2645edcb..064ee8ffde9 100644--- a/packages/twenty-front/src/modules/workflow/workflow-variables/hooks/useOpenWorkflowStepTestTab.ts+++ b/packages/twenty-front/src/modules/workflow/workflow-variables/hooks/useOpenWorkflowStepTestTab.ts@@ -12,7 +12,7 @@ import { WORKFLOW_STEP_TEST_TAB_LIST_COMPONENT_ID_BY_STEP_TYPE } from '@/workfloimport { type StepOutputSchemaV2 } from '@/workflow/workflow-variables/types/StepOutputSchemaV2';import { doNotTranslate } from 'twenty-shared/i18n';import { isDefined } from 'twenty-shared/utils';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';export const useOpenWorkflowStepTestTab = () => {const { getIcon } = useIcons();diff --git a/packages/twenty-front/src/modules/workspace/components/WorkspaceInviteTeam.tsx b/packages/twenty-front/src/modules/workspace/components/WorkspaceInviteTeam.tsxindex 40f5bff82cb..aad5c31cf61 100644--- a/packages/twenty-front/src/modules/workspace/components/WorkspaceInviteTeam.tsx+++ b/packages/twenty-front/src/modules/workspace/components/WorkspaceInviteTeam.tsx@@ -19,9 +19,9 @@ import {IconLock,IconSend,IconUser,- useIcons,type IconComponent,} from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { Button } from 'twenty-ui/primitives/input';import { MOBILE_VIEWPORT, themeCssVariables } from 'twenty-ui/theme';diff --git a/packages/twenty-front/src/pages/object-core/AgentCoreShowPage.tsx b/packages/twenty-front/src/pages/object-core/AgentCoreShowPage.tsxindex 44a279c658d..610825067ff 100644--- a/packages/twenty-front/src/pages/object-core/AgentCoreShowPage.tsx+++ b/packages/twenty-front/src/pages/object-core/AgentCoreShowPage.tsx@@ -3,7 +3,7 @@ import { t } from '@lingui/core/macro';import { useParams } from 'react-router-dom';import { isDefined } from 'twenty-shared/utils';import { Section } from 'twenty-ui/components/layout';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { useTheme } from 'twenty-ui/theme';import { getCoreAgentBreadcrumbLinks } from '@/object-core/agents/utils/getCoreAgentBreadcrumbLinks';diff --git a/packages/twenty-front/src/pages/page-layout/StandalonePageHeader.tsx b/packages/twenty-front/src/pages/page-layout/StandalonePageHeader.tsxindex a72c2f596d9..d39d0579fad 100644--- a/packages/twenty-front/src/pages/page-layout/StandalonePageHeader.tsx+++ b/packages/twenty-front/src/pages/page-layout/StandalonePageHeader.tsx@@ -5,7 +5,7 @@ import { SidePanelToggleButton } from '@/side-panel/components/SidePanelToggleBuimport { PageCardHeader } from '@/ui/layout/page/components/PageCardHeader';import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';import { isDefined } from 'twenty-shared/utils';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { useTheme } from 'twenty-ui/theme';type StandalonePageHeaderProps = {diff --git a/packages/twenty-front/src/pages/settings/accounts/SettingsApplicationPreferencesDetail.tsx b/packages/twenty-front/src/pages/settings/accounts/SettingsApplicationPreferencesDetail.tsxindex a7c1d0a0950..73d95801c9a 100644--- a/packages/twenty-front/src/pages/settings/accounts/SettingsApplicationPreferencesDetail.tsx+++ b/packages/twenty-front/src/pages/settings/accounts/SettingsApplicationPreferencesDetail.tsx@@ -19,12 +19,8 @@ import {isDefined,isNonEmptyArray,} from 'twenty-shared/utils';-import {- IconDeviceFloppy,- IconSettings,- IconVariable,- useIcons,-} from 'twenty-ui/icon';+import { IconDeviceFloppy, IconSettings, IconVariable } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { Button } from 'twenty-ui/primitives/input';import {ApplicationVariableScope,diff --git a/packages/twenty-front/src/pages/settings/ai/SettingsSkillForm.tsx b/packages/twenty-front/src/pages/settings/ai/SettingsSkillForm.tsxindex fff723e0daa..94e866f447b 100644--- a/packages/twenty-front/src/pages/settings/ai/SettingsSkillForm.tsx+++ b/packages/twenty-front/src/pages/settings/ai/SettingsSkillForm.tsx@@ -3,7 +3,7 @@ import { t } from '@lingui/core/macro';import { useParams } from 'react-router-dom';import { isDefined } from 'twenty-shared/utils';import { Section } from 'twenty-ui/components/layout';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { useTheme } from 'twenty-ui/theme';import { SettingsPageContainer } from '@/settings/components/SettingsPageContainer';diff --git a/packages/twenty-front/src/pages/settings/ai/components/SettingsSkillFormContent.tsx b/packages/twenty-front/src/pages/settings/ai/components/SettingsSkillFormContent.tsxindex 78d9970febf..9f30218147e 100644--- a/packages/twenty-front/src/pages/settings/ai/components/SettingsSkillFormContent.tsx+++ b/packages/twenty-front/src/pages/settings/ai/components/SettingsSkillFormContent.tsx@@ -4,7 +4,8 @@ import { useState } from 'react';import { SettingsPath } from 'twenty-shared/types';import { isDefined } from 'twenty-shared/utils';import { Section } from 'twenty-ui/components/layout';-import { IconInfoCircle, IconRefresh, useIcons } from 'twenty-ui/icon';+import { IconInfoCircle, IconRefresh } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { Collapsible } from 'twenty-ui/primitives/layout';import { Card, Tooltip } from 'twenty-ui/primitives/surfaces';import { useTheme, themeCssVariables } from 'twenty-ui/theme';diff --git a/packages/twenty-front/src/pages/settings/ai/components/SettingsSkillTableRow.tsx b/packages/twenty-front/src/pages/settings/ai/components/SettingsSkillTableRow.tsxindex 5614351e167..973829e5921 100644--- a/packages/twenty-front/src/pages/settings/ai/components/SettingsSkillTableRow.tsx+++ b/packages/twenty-front/src/pages/settings/ai/components/SettingsSkillTableRow.tsx@@ -5,7 +5,7 @@ import { SettingsItemTypeTag } from '@/settings/components/SettingsItemTypeTag';import { TableCell } from '@/ui/layout/table/components/TableCell';import { TableRow } from '@/ui/layout/table/components/TableRow';import { OverflowingTextWithTooltip } from 'twenty-ui/primitives/typography';-import { useIcons } from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { useTheme, themeCssVariables } from 'twenty-ui/theme';import { type Skill } from '~/generated-metadata/graphql';diff --git a/packages/twenty-front/src/pages/settings/ai/components/SettingsToolIcon.tsx b/packages/twenty-front/src/pages/settings/ai/components/SettingsToolIcon.tsxindex d6a0dfc4444..310f6b79367 100644--- a/packages/twenty-front/src/pages/settings/ai/components/SettingsToolIcon.tsx+++ b/packages/twenty-front/src/pages/settings/ai/components/SettingsToolIcon.tsx@@ -10,9 +10,9 @@ import {IconSearch,IconTool,IconTrash,- useIcons,type IconComponent,} from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { Avatar } from 'twenty-ui/primitives/data-display';import { useTheme, themeCssVariables } from 'twenty-ui/theme';import { type SettingsAgentToolApplication } from '~/pages/settings/ai/types/SettingsAgentToolApplication';diff --git a/packages/twenty-front/src/pages/settings/applications/SettingsApplicationDetails.tsx b/packages/twenty-front/src/pages/settings/applications/SettingsApplicationDetails.tsxindex e073e8c0071..e49f93f76e6 100644--- a/packages/twenty-front/src/pages/settings/applications/SettingsApplicationDetails.tsx+++ b/packages/twenty-front/src/pages/settings/applications/SettingsApplicationDetails.tsx@@ -26,8 +26,8 @@ import {IconDeviceFloppy,IconSettings,IconVariable,- useIcons,} from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { Button } from 'twenty-ui/primitives/input';import {ApplicationRegistrationSourceType,diff --git a/packages/twenty-front/src/pages/settings/applications/components/SettingsApplicationRegistrationInstallStats.tsx b/packages/twenty-front/src/pages/settings/applications/components/SettingsApplicationRegistrationInstallStats.tsxindex ccfb4c85f95..2c8ef38f8ac 100644--- a/packages/twenty-front/src/pages/settings/applications/components/SettingsApplicationRegistrationInstallStats.tsx+++ b/packages/twenty-front/src/pages/settings/applications/components/SettingsApplicationRegistrationInstallStats.tsx@@ -21,8 +21,8 @@ import {IconRefresh,type IconComponent,IconVersions,- useIcons,} from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { Tooltip } from 'twenty-ui/primitives/surfaces';import { OverflowingTextWithTooltip } from 'twenty-ui/primitives/typography';import { FindAdminApplicationRegistrationStatsDocument } from '~/generated-admin/graphql';diff --git a/packages/twenty-front/src/pages/settings/community/SettingsCommunity.tsx b/packages/twenty-front/src/pages/settings/community/SettingsCommunity.tsxindex a4c3ff61f92..e01efa249ae 100644--- a/packages/twenty-front/src/pages/settings/community/SettingsCommunity.tsx+++ b/packages/twenty-front/src/pages/settings/community/SettingsCommunity.tsx@@ -11,8 +11,8 @@ import {IconBriefcase,IconTransform,type IconComponent,- useIcons,} from 'twenty-ui/icon';+import { useIcons } from 'twenty-ui/icon/provider';import { SettingsPath } from 'twenty-shared/types';import { getSettingsPath } from 'twenty-shared/utils';import { MOBILE_VIEWPORT, useTheme, themeCssVariables } from 'twenty-ui/theme';diff --git a/packages/twenty-front/src/testing/decorators/IconsProviderDecorator.tsx b/packages/twenty-front/src/testing/decorators/IconsProviderDecorator.tsxindex f6f8b437fb6..b95e9d19dd4 100644--- a/packages/twenty-front/src/testing/decorators/IconsProviderDecorator.tsx+++ b/packages/twenty-front/src/testing/decorators/IconsProviderDecorator.tsx@@ -1,5 +1,5 @@import { type Decorator } from '@storybook/react-vite';-import { IconsProvider } from 'twenty-ui/icon';+import { IconsProvider } from 'twenty-ui/icon/provider';export const IconsProviderDecorator: Decorator = (Story) => {return (diff --git a/packages/twenty-front/src/testing/decorators/PageDecorator.tsx b/packages/twenty-front/src/testing/decorators/PageDecorator.tsxindex 761566dc373..d4860e3dbca 100644--- a/packages/twenty-front/src/testing/decorators/PageDecorator.tsx+++ b/packages/twenty-front/src/testing/decorators/PageDecorator.tsx@@ -30,7 +30,7 @@ import { i18n } from '@lingui/core';import { I18nProvider } from '@lingui/react';import { SOURCE_LOCALE } from 'twenty-shared/translations';import { ToastProvider } from 'twenty-ui/components/feedback';-import { IconsProvider } from 'twenty-ui/icon';+import { IconsProvider } from 'twenty-ui/icon/provider';import { FullHeightStorybookLayout } from '~/testing/FullHeightStorybookLayout';import { dynamicActivate } from '~/utils/i18n/dynamicActivate';diff --git a/packages/twenty-ui/.size-limit.json b/packages/twenty-ui/.size-limit.jsonindex 3aa43cafd89..c03b33f76e6 100644--- a/packages/twenty-ui/.size-limit.json+++ b/packages/twenty-ui/.size-limit.json@@ -85,6 +85,11 @@{"name": "icon","path": "dist/icon.mjs",+ "limit": "70 kB"+ },+ {+ "name": "icon/provider",+ "path": "dist/icon/provider.mjs","limit": "290 kB"},{diff --git a/packages/twenty-ui/CHANGELOG.md b/packages/twenty-ui/CHANGELOG.mdindex 6133f1f64dc..947169c9496 100644--- a/packages/twenty-ui/CHANGELOG.md+++ b/packages/twenty-ui/CHANGELOG.md@@ -4,6 +4,8 @@### Breaking changes+`IconsProvider`, `useIcons`, `Icon` (the by-name icon) and `IconProps` moved from `twenty-ui/icon` (and the root `twenty-ui` entry) to `twenty-ui/icon/provider`. The provider loads the full Tabler catalog, so `twenty-ui/icon` now ships only the named icons and icon types. Change `import { IconsProvider, useIcons } from 'twenty-ui/icon'` to `import { IconsProvider, useIcons } from 'twenty-ui/icon/provider'`.+`Text` and `OverflowingTextWithTooltip` now offer optional theme `size`, `weight` and `color` props. Omitted props preserve inherited typography. Native `color` strings must move to `style={{ color: customColor }}`; `color` accepts `primary`, `secondary`, `tertiary` and `light`.`OverflowingTextWithTooltip.size` now means font size (`xxs` through `xxl`). The previously removed `small`/`large` height options are not aliases; replace the old `large` 16px height with a native style when needed.diff --git a/packages/twenty-ui/README.md b/packages/twenty-ui/README.mdindex ce9748ecce2..8913e1a315c 100644--- a/packages/twenty-ui/README.md+++ b/packages/twenty-ui/README.md@@ -54,7 +54,7 @@ Component styles and the reset use the `twenty-ui` cascade layer. Unlayered applPrimitives provide foundational controls, including compound controls such as Select, Popover, and Dialog. Shared components compose them into presets such as `MainButton`, `LightButton`, `Dropdown`, and `Toaster`. Both layers receive data, labels, and callbacks from the application.-Prefer the matching public subpath for focused imports. The root entry point also re-exports primitives, shared components, icons, theme tokens, and utilities. Assets, testing helpers, and the optional code editor have separate entry points.+Prefer the matching public subpath for focused imports. The root entry point also re-exports primitives, shared components, icons, theme tokens, and utilities. Assets, testing helpers, the optional code editor, and the icon provider have separate entry points.| Subpath | Contents || ------------------------------------ | ------------------------------------------------------------------- |@@ -67,7 +67,8 @@ Prefer the matching public subpath for focused imports. The root entry point als| `twenty-ui/components/navigation` | Dropdowns, menu compositions, and tab actions || `twenty-ui/components/settings` | Settings rows with labeled controls || `twenty-ui/components/code-editor` | Code editor, editor header, and editor theme helpers |-| `twenty-ui/icon` | Icon components and the icon provider |+| `twenty-ui/icon` | Named icon components and icon types |+| `twenty-ui/icon/provider` | Icon provider, `useIcons`, and the by-name `Icon` component || `twenty-ui/primitives` | All primitive families || `twenty-ui/primitives/accessibility` | Hidden elements and keyboard interaction helpers || `twenty-ui/primitives/data-display` | Avatars, badges, chips, tags, color samples, and status indicators |@@ -81,7 +82,7 @@ Prefer the matching public subpath for focused imports. The root entry point als| `twenty-ui/theme` | Theme provider, hooks, types, and tokens || `twenty-ui/utilities` | Hooks and shared utilities |-Import icons such as `IconCheck` from `twenty-ui/icon`. The dynamic icon provider includes the full catalog, so use it when icons need to be looked up at runtime.+Import icons such as `IconCheck` from `twenty-ui/icon`. Import `IconsProvider`, `useIcons`, and `Icon` from `twenty-ui/icon/provider` only when icons need to be looked up by name at runtime: the provider loads the full catalog.## Themingdiff --git a/packages/twenty-ui/docs/components.ts b/packages/twenty-ui/docs/components.tsindex 2b12280bbad..6c69e4a2b43 100644--- a/packages/twenty-ui/docs/components.ts+++ b/packages/twenty-ui/docs/components.ts@@ -1126,15 +1126,15 @@ export const DOCUMENTED_COMPONENTS = [},{name: 'Icon',- source: 'icon/components/Icon.tsx',- entryPoint: 'twenty-ui/icon',+ source: 'icon/provider/components/Icon.tsx',+ entryPoint: 'twenty-ui/icon/provider',slug: 'icon/icon',propDescriptions: ICON_PROP_DESCRIPTIONS,},{name: 'IconsProvider',- source: 'icon/providers/IconsProvider.tsx',- entryPoint: 'twenty-ui/icon',+ source: 'icon/provider/IconsProvider.tsx',+ entryPoint: 'twenty-ui/icon/provider',slug: 'icon/icons-provider',propDescriptions: ICONS_PROVIDER_PROP_DESCRIPTIONS,},diff --git a/packages/twenty-ui/docs/iconPropDescriptions.ts b/packages/twenty-ui/docs/iconPropDescriptions.tsindex 22d915b9b85..4355b2f87e8 100644--- a/packages/twenty-ui/docs/iconPropDescriptions.ts+++ b/packages/twenty-ui/docs/iconPropDescriptions.ts@@ -1,6 +1,6 @@import { type ComponentProps } from 'react';-import { type Icon } from '../src/icon/components/Icon';+import { type Icon } from '../src/icon/provider/components/Icon';export const ICON_PROP_DESCRIPTIONS = {name: 'Icon name resolved through IconsProvider. Unknown names fall back to Icon123.',diff --git a/packages/twenty-ui/docs/iconsProviderPropDescriptions.ts b/packages/twenty-ui/docs/iconsProviderPropDescriptions.tsindex 3889f3c48f9..647b7393ff3 100644--- a/packages/twenty-ui/docs/iconsProviderPropDescriptions.ts+++ b/packages/twenty-ui/docs/iconsProviderPropDescriptions.ts@@ -1,6 +1,6 @@import { type ComponentProps } from 'react';-import { type IconsProvider } from '../src/icon/providers/IconsProvider';+import { type IconsProvider } from '../src/icon/provider/IconsProvider';export const ICONS_PROVIDER_PROP_DESCRIPTIONS = {children:diff --git a/packages/twenty-ui/docs/public-exports.json b/packages/twenty-ui/docs/public-exports.jsonindex bbd24416496..34b89c1e398 100644--- a/packages/twenty-ui/docs/public-exports.json+++ b/packages/twenty-ui/docs/public-exports.json@@ -210,7 +210,6 @@"icon": {"reExports": [],"values": {- "Icon": "icon/components/Icon","Icon123": "icon/components/TablerIcons","IconAddressBook": "icon/components/IconAddressBook","IconAdjustments": "icon/components/TablerIcons",@@ -616,7 +615,6 @@"IconSortZA": "icon/components/TablerIcons","IconSparkle2": "icon/components/IconSparkle2","IconSparkles": "icon/components/TablerIcons",- "IconsProvider": "icon/providers/IconsProvider","IconSpy": "icon/components/TablerIcons","IconSql": "icon/components/TablerIcons","IconSquare": "icon/components/TablerIcons",@@ -720,18 +718,27 @@"ThinkingOrbitLoaderIcon": "icon/components/ThinkingOrbitLoaderIcon","TWENTY_ICON_DICTIONARY": "icon/constants/TwentyIconDictionary","TWENTY_ICON_DICTIONARY_CATEGORIES": "icon/constants/TwentyIconDictionary",- "TWENTY_ICON_DICTIONARY_FIGMA_URL": "icon/constants/TwentyIconDictionary",- "useIcons": "icon/hooks/useIcons"+ "TWENTY_ICON_DICTIONARY_FIGMA_URL": "icon/constants/TwentyIconDictionary"},"types": {"IconComponent": "icon/types/IconComponent","IconComponentProps": "icon/types/IconComponent",- "IconProps": "icon/components/Icon","TablerIconsProps": "icon/components/TablerIcons","TwentyIconDictionaryCategory": "icon/constants/TwentyIconDictionary","TwentyIconDictionaryEntry": "icon/constants/TwentyIconDictionary"}},+ "icon/provider": {+ "reExports": [],+ "values": {+ "Icon": "icon/provider/components/Icon",+ "IconsProvider": "icon/provider/IconsProvider",+ "useIcons": "icon/provider/hooks/useIcons"+ },+ "types": {+ "IconProps": "icon/provider/components/Icon"+ }+ },"primitives": {"reExports": ["primitives/accessibility",diff --git a/packages/twenty-ui/generated/components.docs.json b/packages/twenty-ui/generated/components.docs.jsonindex c6c0b082696..6a1214a583f 100644--- a/packages/twenty-ui/generated/components.docs.json+++ b/packages/twenty-ui/generated/components.docs.json@@ -15653,7 +15653,7 @@},{"name": "Icon",- "entryPoint": "twenty-ui/icon",+ "entryPoint": "twenty-ui/icon/provider","slug": "icon/icon","props": [{@@ -15709,7 +15709,7 @@},{"name": "IconsProvider",- "entryPoint": "twenty-ui/icon",+ "entryPoint": "twenty-ui/icon/provider","slug": "icon/icons-provider","props": [{diff --git a/packages/twenty-ui/package.json b/packages/twenty-ui/package.jsonindex 2490eb17ccc..08e6793cdb8 100644--- a/packages/twenty-ui/package.json+++ b/packages/twenty-ui/package.json@@ -160,6 +160,11 @@"import": "./dist/icon.mjs","require": "./dist/icon.cjs"},+ "./icon/provider": {+ "types": "./dist/icon/provider/index.d.ts",+ "import": "./dist/icon/provider.mjs",+ "require": "./dist/icon/provider.cjs"+ },"./primitives": {"types": "./dist/primitives/index.d.ts","import": "./dist/primitives.mjs",@@ -258,6 +263,9 @@"icon": ["dist/icon/index.d.ts"],+ "icon/provider": [+ "dist/icon/provider/index.d.ts"+ ],"primitives": ["dist/primitives/index.d.ts"],diff --git a/packages/twenty-ui/scripts/__tests__/generateBarrels.test.ts b/packages/twenty-ui/scripts/__tests__/generateBarrels.test.tsindex f88958f013c..932367d8487 100644--- a/packages/twenty-ui/scripts/__tests__/generateBarrels.test.ts+++ b/packages/twenty-ui/scripts/__tests__/generateBarrels.test.ts@@ -28,6 +28,7 @@ const createFixture = () => {'styles','testing','components/code-editor',+ 'icon/provider','primitives/input','utilities',]) {diff --git a/packages/twenty-ui/scripts/generateBarrels.ts b/packages/twenty-ui/scripts/generateBarrels.tsindex 31cbeaa4cae..cacd1b67377 100644--- a/packages/twenty-ui/scripts/generateBarrels.ts+++ b/packages/twenty-ui/scripts/generateBarrels.ts@@ -35,6 +35,7 @@ const SRC_PATH = path.resolve(`${PACKAGE_PATH}/src`);const STANDALONE_MODULES = ['assets','components/code-editor',+ 'icon/provider','styles','testing',];diff --git a/packages/twenty-ui/src/icon/__tests__/TwentyIconDictionary.test.ts b/packages/twenty-ui/src/icon/__tests__/TwentyIconDictionary.test.tsindex cc474328eba..75839156dc2 100644--- a/packages/twenty-ui/src/icon/__tests__/TwentyIconDictionary.test.ts+++ b/packages/twenty-ui/src/icon/__tests__/TwentyIconDictionary.test.ts@@ -36,7 +36,7 @@ describe('TwentyIconDictionary', () => {it('references icons available to string-based icon resolution', () => {const dynamicIconCatalog = readFileSync(- resolve(TEST_DIRECTORY, '../providers/internal/AllIcons.ts'),+ resolve(TEST_DIRECTORY, '../provider/internal/AllIcons.ts'),'utf8',);diff --git a/packages/twenty-ui/src/icon/index.ts b/packages/twenty-ui/src/icon/index.tsindex 6a77d21b1dc..c857e5058a2 100644--- a/packages/twenty-ui/src/icon/index.ts+++ b/packages/twenty-ui/src/icon/index.ts@@ -7,8 +7,6 @@* |___/*/-export type { IconProps } from './components/Icon';-export { Icon } from './components/Icon';export { IconAddressBook } from './components/IconAddressBook';export { IconBrandAnthropic } from './components/IconBrandAnthropic';export { IconBrandGemini } from './components/IconBrandGemini';@@ -527,6 +525,4 @@ export {TWENTY_ICON_DICTIONARY_CATEGORIES,TWENTY_ICON_DICTIONARY,} from './constants/TwentyIconDictionary';-export { useIcons } from './hooks/useIcons';-export { IconsProvider } from './providers/IconsProvider';export type { IconComponentProps, IconComponent } from './types/IconComponent';diff --git a/packages/twenty-ui/src/icon/providers/IconsProvider.tsx b/packages/twenty-ui/src/icon/provider/IconsProvider.tsxsimilarity index 88%rename from packages/twenty-ui/src/icon/providers/IconsProvider.tsxrename to packages/twenty-ui/src/icon/provider/IconsProvider.tsxindex cf85d7df4ec..a8fa5f5a87f 100644--- a/packages/twenty-ui/src/icon/providers/IconsProvider.tsx+++ b/packages/twenty-ui/src/icon/provider/IconsProvider.tsx@@ -1,6 +1,6 @@import { type JSX, useEffect, useState } from 'react';-import { IconsContext } from '@ui/icon/internal/IconsContext';+import { IconsContext } from '@ui/icon/provider/internal/IconsContext';import { type IconComponent } from '@ui/icon/types/IconComponent';type IconsProviderProps = {diff --git a/packages/twenty-ui/src/icon/__tests__/AllIcons.test.ts b/packages/twenty-ui/src/icon/provider/__tests__/AllIcons.test.tssimilarity index 82%rename from packages/twenty-ui/src/icon/__tests__/AllIcons.test.tsrename to packages/twenty-ui/src/icon/provider/__tests__/AllIcons.test.tsindex fb3ac1c8835..5fb237833f8 100644--- a/packages/twenty-ui/src/icon/__tests__/AllIcons.test.ts+++ b/packages/twenty-ui/src/icon/provider/__tests__/AllIcons.test.ts@@ -1,4 +1,4 @@-import { ALL_ICONS } from '@ui/icon/providers/internal/AllIcons';+import { ALL_ICONS } from '@ui/icon/provider/internal/AllIcons';const DYNAMIC_ICON_NAMES = ['IconCopyPlus',diff --git a/packages/twenty-ui/src/icon/components/Icon.tsx b/packages/twenty-ui/src/icon/provider/components/Icon.tsxsimilarity index 89%rename from packages/twenty-ui/src/icon/components/Icon.tsxrename to packages/twenty-ui/src/icon/provider/components/Icon.tsxindex 7507fe2b449..7d485629c1d 100644--- a/packages/twenty-ui/src/icon/components/Icon.tsx+++ b/packages/twenty-ui/src/icon/provider/components/Icon.tsx@@ -1,4 +1,4 @@-import { useIcons } from '@ui/icon/hooks/useIcons';+import { useIcons } from '@ui/icon/provider/hooks/useIcons';import { type IconComponentProps } from '@ui/icon/types/IconComponent';export type IconProps = IconComponentProps & {diff --git a/packages/twenty-ui/src/icon/components/__stories__/Icon.stories.tsx b/packages/twenty-ui/src/icon/provider/components/__stories__/Icon.stories.tsxsimilarity index 98%rename from packages/twenty-ui/src/icon/components/__stories__/Icon.stories.tsxrename to packages/twenty-ui/src/icon/provider/components/__stories__/Icon.stories.tsxindex 550d7e253e9..ad087dd5ecb 100644--- a/packages/twenty-ui/src/icon/components/__stories__/Icon.stories.tsx+++ b/packages/twenty-ui/src/icon/provider/components/__stories__/Icon.stories.tsx@@ -10,7 +10,7 @@ import { Button } from '@ui/primitives/input/Button/Button';import { Chip } from '@ui/primitives/data-display/Chip/Chip';import { Text } from '@ui/primitives/typography/Text/Text';-import { IconsProvider } from '@ui/icon/providers/IconsProvider';+import { IconsProvider } from '@ui/icon/provider/IconsProvider';import { ComponentDecorator } from '@ui/testing/decorators/ComponentDecorator';import { Icon } from '../Icon';diff --git a/packages/twenty-ui/src/icon/hooks/__tests__/useIcons.test.tsx b/packages/twenty-ui/src/icon/provider/hooks/__tests__/useIcons.test.tsxsimilarity index 91%rename from packages/twenty-ui/src/icon/hooks/__tests__/useIcons.test.tsxrename to packages/twenty-ui/src/icon/provider/hooks/__tests__/useIcons.test.tsxindex 17d9bb1c135..3422105f843 100644--- a/packages/twenty-ui/src/icon/hooks/__tests__/useIcons.test.tsx+++ b/packages/twenty-ui/src/icon/provider/hooks/__tests__/useIcons.test.tsx@@ -6,8 +6,8 @@ import {IconBuildingSkyscraper,IconUser,} from '@ui/icon/components/TablerIcons';-import { IconsContext } from '@ui/icon/internal/IconsContext';-import { useIcons } from '@ui/icon/hooks/useIcons';+import { IconsContext } from '@ui/icon/provider/internal/IconsContext';+import { useIcons } from '@ui/icon/provider/hooks/useIcons';const mockedStateIcons = {IconUser,diff --git a/packages/twenty-ui/src/icon/hooks/useIcons.ts b/packages/twenty-ui/src/icon/provider/hooks/useIcons.tssimilarity index 86%rename from packages/twenty-ui/src/icon/hooks/useIcons.tsrename to packages/twenty-ui/src/icon/provider/hooks/useIcons.tsindex e5c48bb86ae..02acdead98a 100644--- a/packages/twenty-ui/src/icon/hooks/useIcons.ts+++ b/packages/twenty-ui/src/icon/provider/hooks/useIcons.ts@@ -1,7 +1,7 @@import { useContext } from 'react';import { Icon123 } from '@ui/icon/components/TablerIcons';-import { IconsContext } from '@ui/icon/internal/IconsContext';+import { IconsContext } from '@ui/icon/provider/internal/IconsContext';export const useIcons = () => {const icons = useContext(IconsContext);diff --git a/packages/twenty-ui/src/icon/provider/index.ts b/packages/twenty-ui/src/icon/provider/index.tsnew file mode 100644index 00000000000..d4117cdb40d--- /dev/null+++ b/packages/twenty-ui/src/icon/provider/index.ts@@ -0,0 +1,13 @@+/*+ * _____ _+ *|_ _|_ _____ _ __ | |_ _ _+ * | | \ \ /\ / / _ \ '_ \| __| | | | Auto-generated file+ * | | \ V V / __/ | | | |_| |_| | Any edits to this will be overridden+ * |_| \_/\_/ \___|_| |_|\__|\__, |+ * |___/+ */++export type { IconProps } from './components/Icon';+export { Icon } from './components/Icon';+export { useIcons } from './hooks/useIcons';+export { IconsProvider } from './IconsProvider';diff --git a/packages/twenty-ui/src/icon/providers/internal/AllIcons.ts b/packages/twenty-ui/src/icon/provider/internal/AllIcons.tssimilarity index 100%rename from packages/twenty-ui/src/icon/providers/internal/AllIcons.tsrename to packages/twenty-ui/src/icon/provider/internal/AllIcons.tsdiff --git a/packages/twenty-ui/src/icon/internal/IconsContext.ts b/packages/twenty-ui/src/icon/provider/internal/IconsContext.tssimilarity index 100%rename from packages/twenty-ui/src/icon/internal/IconsContext.tsrename to packages/twenty-ui/src/icon/provider/internal/IconsContext.ts