Fix tabler icons load (#10782)

As per
https://github.com/tabler/tabler-icons/issues/1233#issuecomment-2428245119
This commit is contained in:
Charles Bochet
2025-03-11 18:01:28 +01:00
committed by GitHub
parent ddeba39a2c
commit d9817d6b9c
6 changed files with 28 additions and 53 deletions

View File

@ -1,8 +1,8 @@
import { import {
IconComponent,
Icon24Hours,
IconTimeDuration60,
IconClockPlay, IconClockPlay,
IconComponent,
IconHours24,
IconTimeDuration60,
} from 'twenty-ui'; } from 'twenty-ui';
export type CronTriggerInterval = 'HOURS' | 'MINUTES' | 'CUSTOM'; export type CronTriggerInterval = 'HOURS' | 'MINUTES' | 'CUSTOM';
@ -15,7 +15,7 @@ export const CRON_TRIGGER_INTERVAL_OPTIONS: Array<{
{ {
label: 'Hours', label: 'Hours',
value: 'HOURS', value: 'HOURS',
Icon: Icon24Hours, Icon: IconHours24,
}, },
{ {
label: 'Minutes', label: 'Minutes',

View File

@ -93,7 +93,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
id: "8047b613-2dc9-4d77-bccc-8a3f54ba3fd4", id: "8047b613-2dc9-4d77-bccc-8a3f54ba3fd4",
type: "BOOLEAN", type: "BOOLEAN",
name: "isFullDay", name: "isFullDay",
icon: "Icon24Hours", icon: "IconHours24",
isCustom: false, isCustom: false,
isActive: true, isActive: true,
isSystem: false, isSystem: false,

View File

@ -168,6 +168,9 @@ export default defineConfig(({ command, mode }) => {
resolve: { resolve: {
alias: { alias: {
path: 'rollup-plugin-node-polyfills/polyfills/path', path: 'rollup-plugin-node-polyfills/polyfills/path',
// https://github.com/twentyhq/twenty/pull/10782/files
// This will likely be migrated to twenty-ui package when built separately
'@tabler/icons-react': '@tabler/icons-react/dist/esm/icons/index.mjs',
}, },
}, },
}; };

View File

@ -57,7 +57,7 @@ export class CalendarEventWorkspaceEntity extends BaseWorkspaceEntity {
type: FieldMetadataType.BOOLEAN, type: FieldMetadataType.BOOLEAN,
label: msg`Is Full Day`, label: msg`Is Full Day`,
description: msg`Is Full Day`, description: msg`Is Full Day`,
icon: 'Icon24Hours', icon: 'IconHours24',
defaultValue: false, defaultValue: false,
}) })
isFullDay: boolean; isFullDay: boolean;

View File

@ -1,22 +1,21 @@
/* eslint-disable no-restricted-imports */ /* eslint-disable no-restricted-imports */
export { export {
Icon123, IconNumber123 as Icon123,
Icon24Hours,
IconAlertCircle, IconAlertCircle,
IconAlertTriangle, IconAlertTriangle,
IconApi, IconApi,
IconApps,
IconAppWindow, IconAppWindow,
IconApps,
IconArchive, IconArchive,
IconArchiveOff, IconArchiveOff,
IconArrowBackUp, IconArrowBackUp,
IconArrowDown, IconArrowDown,
IconArrowLeft, IconArrowLeft,
IconArrowRight, IconArrowRight,
IconArrowsDiagonal,
IconArrowsVertical,
IconArrowUp, IconArrowUp,
IconArrowUpRight, IconArrowUpRight,
IconArrowsDiagonal,
IconArrowsVertical,
IconAt, IconAt,
IconBaselineDensitySmall, IconBaselineDensitySmall,
IconBell, IconBell,
@ -47,8 +46,8 @@ export {
IconChevronDown, IconChevronDown,
IconChevronLeft, IconChevronLeft,
IconChevronRight, IconChevronRight,
IconChevronsRight,
IconChevronUp, IconChevronUp,
IconChevronsRight,
IconCircleDot, IconCircleDot,
IconCircleOff, IconCircleOff,
IconCirclePlus, IconCirclePlus,
@ -166,6 +165,7 @@ export {
IconHistory, IconHistory,
IconHistoryToggle, IconHistoryToggle,
IconHome, IconHome,
IconHours24,
IconInbox, IconInbox,
IconInfoCircle, IconInfoCircle,
IconJson, IconJson,

View File

@ -1,13 +1,6 @@
/* eslint-disable no-restricted-imports */ /* eslint-disable no-restricted-imports */
import { import {
Icon123, IconNumber123 as Icon123,
Icon24Hours,
Icon2fa,
Icon360,
Icon360View,
Icon3dCubeSphere,
Icon3dCubeSphereOff,
Icon3dRotate,
IconAB, IconAB,
IconAB2, IconAB2,
IconABOff, IconABOff,
@ -310,6 +303,7 @@ import {
IconAugmentedReality, IconAugmentedReality,
IconAugmentedReality2, IconAugmentedReality2,
IconAugmentedRealityOff, IconAugmentedRealityOff,
IconAuth2fa,
IconAward, IconAward,
IconAwardOff, IconAwardOff,
IconAxe, IconAxe,
@ -528,7 +522,6 @@ import {
IconBoxMultiple9, IconBoxMultiple9,
IconBoxOff, IconBoxOff,
IconBoxPadding, IconBoxPadding,
IconBoxSeam,
IconBraces, IconBraces,
IconBracesOff, IconBracesOff,
IconBrackets, IconBrackets,
@ -1304,7 +1297,6 @@ import {
IconClover2, IconClover2,
IconClubs, IconClubs,
IconCode, IconCode,
IconCodeAsterix,
IconCodeCircle, IconCodeCircle,
IconCodeCircle2, IconCodeCircle2,
IconCodeDots, IconCodeDots,
@ -1409,6 +1401,8 @@ import {
IconCrystalBall, IconCrystalBall,
IconCsv, IconCsv,
IconCube, IconCube,
IconCube3dSphere,
IconCube3dSphereOff,
IconCubeOff, IconCubeOff,
IconCubePlus, IconCubePlus,
IconCubeSend, IconCubeSend,
@ -1757,9 +1751,6 @@ import {
IconDiscGolf, IconDiscGolf,
IconDiscOff, IconDiscOff,
IconDiscount, IconDiscount,
IconDiscount2,
IconDiscount2Off,
IconDiscountCheck,
IconDiscountOff, IconDiscountOff,
IconDivide, IconDivide,
IconDna, IconDna,
@ -2205,7 +2196,6 @@ import {
IconHandMove, IconHandMove,
IconHandOff, IconHandOff,
IconHandRingFinger, IconHandRingFinger,
IconHandRock,
IconHandSanitizer, IconHandSanitizer,
IconHandStop, IconHandStop,
IconHandThreeFingers, IconHandThreeFingers,
@ -2360,6 +2350,7 @@ import {
IconHourglassHigh, IconHourglassHigh,
IconHourglassLow, IconHourglassLow,
IconHourglassOff, IconHourglassOff,
IconHours24,
IconHtml, IconHtml,
IconHttpConnect, IconHttpConnect,
IconHttpDelete, IconHttpDelete,
@ -2423,7 +2414,6 @@ import {
IconJumpRope, IconJumpRope,
IconKarate, IconKarate,
IconKayak, IconKayak,
IconKering,
IconKey, IconKey,
IconKeyOff, IconKeyOff,
IconKeyboard, IconKeyboard,
@ -2784,7 +2774,6 @@ import {
IconMessageChatbot, IconMessageChatbot,
IconMessageCheck, IconMessageCheck,
IconMessageCircle, IconMessageCircle,
IconMessageCircle2,
IconMessageCircleBolt, IconMessageCircleBolt,
IconMessageCircleCancel, IconMessageCircleCancel,
IconMessageCircleCheck, IconMessageCircleCheck,
@ -2891,7 +2880,6 @@ import {
IconMoodSmile, IconMoodSmile,
IconMoodSmileBeam, IconMoodSmileBeam,
IconMoodSmileDizzy, IconMoodSmileDizzy,
IconMoodSuprised,
IconMoodTongue, IconMoodTongue,
IconMoodTongueWink, IconMoodTongueWink,
IconMoodTongueWink2, IconMoodTongueWink2,
@ -3360,6 +3348,7 @@ import {
IconRotate, IconRotate,
IconRotate2, IconRotate2,
IconRotate360, IconRotate360,
IconRotate3d,
IconRotateClockwise, IconRotateClockwise,
IconRotateClockwise2, IconRotateClockwise2,
IconRotateDot, IconRotateDot,
@ -3426,8 +3415,6 @@ import {
IconSearchOff, IconSearchOff,
IconSection, IconSection,
IconSectionSign, IconSectionSign,
IconSeeding,
IconSeedingOff,
IconSelect, IconSelect,
IconSelectAll, IconSelectAll,
IconSelector, IconSelector,
@ -3476,7 +3463,6 @@ import {
IconShare2, IconShare2,
IconShare3, IconShare3,
IconShareOff, IconShareOff,
IconShiJumping,
IconShield, IconShield,
IconShieldBolt, IconShieldBolt,
IconShieldCancel, IconShieldCancel,
@ -4199,14 +4185,14 @@ import {
} from '@tabler/icons-react'; } from '@tabler/icons-react';
export const ALL_ICONS = { export const ALL_ICONS = {
Icon2fa, IconAuth2fa,
Icon3dCubeSphere, IconCube3dSphere,
Icon3dCubeSphereOff, IconCube3dSphereOff,
Icon3dRotate, IconRotate3d,
Icon24Hours, IconHours24,
Icon123, Icon123,
Icon360, IconRotate360,
Icon360View, IconView360,
IconAB, IconAB,
IconAB2, IconAB2,
IconAbacus, IconAbacus,
@ -4727,7 +4713,6 @@ export const ALL_ICONS = {
IconBoxMultiple9, IconBoxMultiple9,
IconBoxOff, IconBoxOff,
IconBoxPadding, IconBoxPadding,
IconBoxSeam,
IconBraces, IconBraces,
IconBracesOff, IconBracesOff,
IconBrackets, IconBrackets,
@ -5502,7 +5487,6 @@ export const ALL_ICONS = {
IconClover2, IconClover2,
IconClubs, IconClubs,
IconCode, IconCode,
IconCodeAsterix,
IconCodeCircle, IconCodeCircle,
IconCodeCircle2, IconCodeCircle2,
IconCodeDots, IconCodeDots,
@ -5955,9 +5939,6 @@ export const ALL_ICONS = {
IconDiscGolf, IconDiscGolf,
IconDiscOff, IconDiscOff,
IconDiscount, IconDiscount,
IconDiscount2,
IconDiscount2Off,
IconDiscountCheck,
IconDiscountOff, IconDiscountOff,
IconDivide, IconDivide,
IconDna, IconDna,
@ -6403,7 +6384,6 @@ export const ALL_ICONS = {
IconHandMove, IconHandMove,
IconHandOff, IconHandOff,
IconHandRingFinger, IconHandRingFinger,
IconHandRock,
IconHandSanitizer, IconHandSanitizer,
IconHandStop, IconHandStop,
IconHandThreeFingers, IconHandThreeFingers,
@ -6621,7 +6601,6 @@ export const ALL_ICONS = {
IconJumpRope, IconJumpRope,
IconKarate, IconKarate,
IconKayak, IconKayak,
IconKering,
IconKey, IconKey,
IconKeyboard, IconKeyboard,
IconKeyboardHide, IconKeyboardHide,
@ -6982,7 +6961,6 @@ export const ALL_ICONS = {
IconMessageChatbot, IconMessageChatbot,
IconMessageCheck, IconMessageCheck,
IconMessageCircle, IconMessageCircle,
IconMessageCircle2,
IconMessageCircleBolt, IconMessageCircleBolt,
IconMessageCircleCancel, IconMessageCircleCancel,
IconMessageCircleCheck, IconMessageCircleCheck,
@ -7089,7 +7067,6 @@ export const ALL_ICONS = {
IconMoodSmile, IconMoodSmile,
IconMoodSmileBeam, IconMoodSmileBeam,
IconMoodSmileDizzy, IconMoodSmileDizzy,
IconMoodSuprised,
IconMoodTongue, IconMoodTongue,
IconMoodTongueWink, IconMoodTongueWink,
IconMoodTongueWink2, IconMoodTongueWink2,
@ -7557,7 +7534,6 @@ export const ALL_ICONS = {
IconRosetteNumber9, IconRosetteNumber9,
IconRotate, IconRotate,
IconRotate2, IconRotate2,
IconRotate360,
IconRotateClockwise, IconRotateClockwise,
IconRotateClockwise2, IconRotateClockwise2,
IconRotateDot, IconRotateDot,
@ -7620,8 +7596,6 @@ export const ALL_ICONS = {
IconSearchOff, IconSearchOff,
IconSection, IconSection,
IconSectionSign, IconSectionSign,
IconSeeding,
IconSeedingOff,
IconSelect, IconSelect,
IconSelectAll, IconSelectAll,
IconSelector, IconSelector,
@ -7695,7 +7669,6 @@ export const ALL_ICONS = {
IconShieldStar, IconShieldStar,
IconShieldUp, IconShieldUp,
IconShieldX, IconShieldX,
IconShiJumping,
IconShip, IconShip,
IconShipOff, IconShipOff,
IconShirt, IconShirt,
@ -8238,7 +8211,6 @@ export const ALL_ICONS = {
IconVideoMinus, IconVideoMinus,
IconVideoOff, IconVideoOff,
IconVideoPlus, IconVideoPlus,
IconView360,
IconView360Off, IconView360Off,
IconViewfinder, IconViewfinder,
IconViewfinderOff, IconViewfinderOff,