[REFACTOR] Twenty UI multi barrel (#11301)
# Introduction closes https://github.com/twentyhq/core-team-issues/issues/591 Same than for `twenty-shared` made in https://github.com/twentyhq/twenty/pull/11083. ## TODO - [x] Manual migrate twenty-website twenty-ui imports ## What's next: - Generate barrel and migration script factorization within own package + tests - Refactoring using preconstruct ? TimeBox - Lint circular dependencies - Lint import from barrel and forbid them ### Preconstruct We need custom rollup plugins addition, but preconstruct does not expose its rollup configuration. It might be possible to handle this using the babel overrides. But was a big tunnel. We could give it a try afterwards ! ( allowing cjs interop and stuff like that ) Stuck to vite lib app Closed related PRs: - https://github.com/twentyhq/twenty/pull/11294 - https://github.com/twentyhq/twenty/pull/11203
This commit is contained in:
@ -1,67 +1,392 @@
|
||||
export * from './avatar-chip/components/AvatarChip';
|
||||
export * from './avatar-chip/components/AvatarChipLeftComponent';
|
||||
export * from './avatar-chip/components/LinkAvatarChip';
|
||||
export * from './avatar-chip/types/AvatarChipsCommonProps.type';
|
||||
export * from './avatar-chip/types/AvatarChipsVariant.type';
|
||||
export * from './avatar/components/Avatar';
|
||||
export * from './avatar/components/AvatarGroup';
|
||||
export * from './avatar/components/states/isInvalidAvatarUrlState';
|
||||
export * from './avatar/constants/AvatarPropertiesBySize';
|
||||
export * from './avatar/types/AvatarSize';
|
||||
export * from './avatar/types/AvatarType';
|
||||
export * from './banner/components/Banner';
|
||||
export * from './checkmark/components/AnimatedCheckmark';
|
||||
export * from './checkmark/components/Checkmark';
|
||||
export * from './chip/components/Chip';
|
||||
export * from './chip/components/LinkChip';
|
||||
export * from './color/components/ColorSample';
|
||||
export * from './icon/components/IconAddressBook';
|
||||
export * from './icon/components/IconGmail';
|
||||
export * from './icon/components/IconGoogle';
|
||||
export * from './icon/components/IconGoogleCalendar';
|
||||
export * from './icon/components/IconLock';
|
||||
export * from './icon/components/IconMicrosoft';
|
||||
export * from './icon/components/IconMicrosoftCalendar';
|
||||
export * from './icon/components/IconMicrosoftOutlook';
|
||||
export * from './icon/components/IconRelationManyToOne';
|
||||
export * from './icon/components/IconTwentyStar';
|
||||
export * from './icon/components/IconTwentyStarFilled';
|
||||
export * from './icon/components/IllustrationIconArray';
|
||||
export * from './icon/components/IllustrationIconCalendarEvent';
|
||||
export * from './icon/components/IllustrationIconCalendarTime';
|
||||
export * from './icon/components/IllustrationIconCurrency';
|
||||
export * from './icon/components/IllustrationIconJson';
|
||||
export * from './icon/components/IllustrationIconLink';
|
||||
export * from './icon/components/IllustrationIconMail';
|
||||
export * from './icon/components/IllustrationIconManyToMany';
|
||||
export * from './icon/components/IllustrationIconMap';
|
||||
export * from './icon/components/IllustrationIconNumbers';
|
||||
export * from './icon/components/IllustrationIconOneToMany';
|
||||
export * from './icon/components/IllustrationIconOneToOne';
|
||||
export * from './icon/components/IllustrationIconPhone';
|
||||
export * from './icon/components/IllustrationIconSetting';
|
||||
export * from './icon/components/IllustrationIconStar';
|
||||
export * from './icon/components/IllustrationIconTag';
|
||||
export * from './icon/components/IllustrationIconTags';
|
||||
export * from './icon/components/IllustrationIconText';
|
||||
export * from './icon/components/IllustrationIconToggle';
|
||||
export * from './icon/components/IllustrationIconUid';
|
||||
export * from './icon/components/IllustrationIconUser';
|
||||
export * from './icon/components/IllustrationIconWrapper';
|
||||
export * from './icon/components/TablerIcons';
|
||||
export * from './icon/hooks/useIcons';
|
||||
export * from './icon/providers/IconsProvider';
|
||||
export * from './icon/states/iconsState';
|
||||
export * from './icon/types/IconComponent';
|
||||
export * from './info/components/Info';
|
||||
export * from './status/components/Status';
|
||||
export * from './tag/components/Tag';
|
||||
export * from './text/components/HorizontalSeparator';
|
||||
export * from './text/components/SeparatorLineText';
|
||||
export * from './tooltip/AppTooltip';
|
||||
export * from './tooltip/OverflowingTextWithTooltip';
|
||||
export * from './typography/components/H1Title';
|
||||
export * from './typography/components/H2Title';
|
||||
export * from './typography/components/H3Title';
|
||||
export * from './typography/components/Label';
|
||||
export * from './typography/components/StyledText';
|
||||
/*
|
||||
* _____ _
|
||||
*|_ _|_ _____ _ __ | |_ _ _
|
||||
* | | \ \ /\ / / _ \ '_ \| __| | | | Auto-generated file
|
||||
* | | \ V V / __/ | | | |_| |_| | Any edits to this will be overridden
|
||||
* |_| \_/\_/ \___|_| |_|\__|\__, |
|
||||
* |___/
|
||||
*/
|
||||
|
||||
export type { AvatarProps } from './avatar/components/Avatar';
|
||||
export { Avatar } from './avatar/components/Avatar';
|
||||
export type { AvatarGroupProps } from './avatar/components/AvatarGroup';
|
||||
export { AvatarGroup } from './avatar/components/AvatarGroup';
|
||||
export { invalidAvatarUrlsState } from './avatar/components/states/isInvalidAvatarUrlState';
|
||||
export { AVATAR_PROPERTIES_BY_SIZE } from './avatar/constants/AvatarPropertiesBySize';
|
||||
export type { AvatarSize } from './avatar/types/AvatarSize';
|
||||
export type { AvatarType } from './avatar/types/AvatarType';
|
||||
export type { BannerVariant } from './banner/components/Banner';
|
||||
export { Banner } from './banner/components/Banner';
|
||||
export type { AnimatedCheckmarkProps } from './checkmark/components/AnimatedCheckmark';
|
||||
export { AnimatedCheckmark } from './checkmark/components/AnimatedCheckmark';
|
||||
export type { CheckmarkProps } from './checkmark/components/Checkmark';
|
||||
export { Checkmark } from './checkmark/components/Checkmark';
|
||||
export type {
|
||||
ColorSampleVariant,
|
||||
ColorSampleProps,
|
||||
} from './color/components/ColorSample';
|
||||
export { ColorSample } from './color/components/ColorSample';
|
||||
export { IconAddressBook } from './icon/components/IconAddressBook';
|
||||
export { IconGmail } from './icon/components/IconGmail';
|
||||
export { IconGoogle } from './icon/components/IconGoogle';
|
||||
export { IconGoogleCalendar } from './icon/components/IconGoogleCalendar';
|
||||
export { IconLockCustom } from './icon/components/IconLock';
|
||||
export { IconMicrosoft } from './icon/components/IconMicrosoft';
|
||||
export { IconMicrosoftCalendar } from './icon/components/IconMicrosoftCalendar';
|
||||
export { IconMicrosoftOutlook } from './icon/components/IconMicrosoftOutlook';
|
||||
export { IconRelationManyToOne } from './icon/components/IconRelationManyToOne';
|
||||
export { IconTwentyStar } from './icon/components/IconTwentyStar';
|
||||
export { IconTwentyStarFilled } from './icon/components/IconTwentyStarFilled';
|
||||
export { IllustrationIconArray } from './icon/components/IllustrationIconArray';
|
||||
export { IllustrationIconCalendarEvent } from './icon/components/IllustrationIconCalendarEvent';
|
||||
export { IllustrationIconCalendarTime } from './icon/components/IllustrationIconCalendarTime';
|
||||
export { IllustrationIconCurrency } from './icon/components/IllustrationIconCurrency';
|
||||
export { IllustrationIconJson } from './icon/components/IllustrationIconJson';
|
||||
export { IllustrationIconLink } from './icon/components/IllustrationIconLink';
|
||||
export { IllustrationIconMail } from './icon/components/IllustrationIconMail';
|
||||
export { IllustrationIconManyToMany } from './icon/components/IllustrationIconManyToMany';
|
||||
export { IllustrationIconMap } from './icon/components/IllustrationIconMap';
|
||||
export { IllustrationIconNumbers } from './icon/components/IllustrationIconNumbers';
|
||||
export { IllustrationIconOneToMany } from './icon/components/IllustrationIconOneToMany';
|
||||
export { IllustrationIconOneToOne } from './icon/components/IllustrationIconOneToOne';
|
||||
export { IllustrationIconPhone } from './icon/components/IllustrationIconPhone';
|
||||
export { IllustrationIconSetting } from './icon/components/IllustrationIconSetting';
|
||||
export { IllustrationIconStar } from './icon/components/IllustrationIconStar';
|
||||
export { IllustrationIconTag } from './icon/components/IllustrationIconTag';
|
||||
export { IllustrationIconTags } from './icon/components/IllustrationIconTags';
|
||||
export { IllustrationIconText } from './icon/components/IllustrationIconText';
|
||||
export { IllustrationIconToggle } from './icon/components/IllustrationIconToggle';
|
||||
export { IllustrationIconUid } from './icon/components/IllustrationIconUid';
|
||||
export { IllustrationIconUser } from './icon/components/IllustrationIconUser';
|
||||
export { IllustrationIconWrapper } from './icon/components/IllustrationIconWrapper';
|
||||
export type { TablerIconsProps } from './icon/components/TablerIcons';
|
||||
export {
|
||||
Icon123,
|
||||
IconAlertCircle,
|
||||
IconAlertTriangle,
|
||||
IconApi,
|
||||
IconAppWindow,
|
||||
IconApps,
|
||||
IconArchive,
|
||||
IconArchiveOff,
|
||||
IconArrowBackUp,
|
||||
IconArrowDown,
|
||||
IconArrowLeft,
|
||||
IconArrowRight,
|
||||
IconArrowUp,
|
||||
IconArrowUpRight,
|
||||
IconArrowsDiagonal,
|
||||
IconArrowsVertical,
|
||||
IconAt,
|
||||
IconBaselineDensitySmall,
|
||||
IconBell,
|
||||
IconBolt,
|
||||
IconBook2,
|
||||
IconBookmark,
|
||||
IconBookmarkPlus,
|
||||
IconBox,
|
||||
IconBrackets,
|
||||
IconBracketsAngle,
|
||||
IconBracketsContain,
|
||||
IconBrandDaysCounter,
|
||||
IconBrandGithub,
|
||||
IconBrandGoogle,
|
||||
IconBrandGraphql,
|
||||
IconBrandLinkedin,
|
||||
IconBrandX,
|
||||
IconBriefcase,
|
||||
IconBrowserMaximize,
|
||||
IconBuildingSkyscraper,
|
||||
IconCalendar,
|
||||
IconCalendarDue,
|
||||
IconCalendarEvent,
|
||||
IconCalendarTime,
|
||||
IconCalendarX,
|
||||
IconChartCandle,
|
||||
IconCheck,
|
||||
IconCheckbox,
|
||||
IconChevronDown,
|
||||
IconChevronLeft,
|
||||
IconChevronRight,
|
||||
IconChevronUp,
|
||||
IconChevronsRight,
|
||||
IconCircleDot,
|
||||
IconCircleOff,
|
||||
IconCirclePlus,
|
||||
IconCircleX,
|
||||
IconClick,
|
||||
IconClockHour8,
|
||||
IconClockPlay,
|
||||
IconClockShare,
|
||||
IconCode,
|
||||
IconCodeCircle,
|
||||
IconCoins,
|
||||
IconColorSwatch,
|
||||
IconComment,
|
||||
IconCopy,
|
||||
IconCreativeCommonsSa,
|
||||
IconCreditCard,
|
||||
IconCsv,
|
||||
IconCube,
|
||||
IconCurrencyAfghani,
|
||||
IconCurrencyBahraini,
|
||||
IconCurrencyBaht,
|
||||
IconCurrencyDinar,
|
||||
IconCurrencyDirham,
|
||||
IconCurrencyDollar,
|
||||
IconCurrencyDollarAustralian,
|
||||
IconCurrencyDollarBrunei,
|
||||
IconCurrencyDollarCanadian,
|
||||
IconCurrencyDollarGuyanese,
|
||||
IconCurrencyDollarSingapore,
|
||||
IconCurrencyDong,
|
||||
IconCurrencyDram,
|
||||
IconCurrencyEuro,
|
||||
IconCurrencyFlorin,
|
||||
IconCurrencyForint,
|
||||
IconCurrencyFrank,
|
||||
IconCurrencyGuarani,
|
||||
IconCurrencyHryvnia,
|
||||
IconCurrencyIranianRial,
|
||||
IconCurrencyKip,
|
||||
IconCurrencyKroneCzech,
|
||||
IconCurrencyKroneDanish,
|
||||
IconCurrencyKroneSwedish,
|
||||
IconCurrencyLari,
|
||||
IconCurrencyLeu,
|
||||
IconCurrencyLira,
|
||||
IconCurrencyLyd,
|
||||
IconCurrencyManat,
|
||||
IconCurrencyNaira,
|
||||
IconCurrencyPaanga,
|
||||
IconCurrencyPeso,
|
||||
IconCurrencyPound,
|
||||
IconCurrencyQuetzal,
|
||||
IconCurrencyReal,
|
||||
IconCurrencyRenminbi,
|
||||
IconCurrencyRiyal,
|
||||
IconCurrencyRubel,
|
||||
IconCurrencyRufiyaa,
|
||||
IconCurrencyRupee,
|
||||
IconCurrencyRupeeNepalese,
|
||||
IconCurrencyShekel,
|
||||
IconCurrencySom,
|
||||
IconCurrencyTaka,
|
||||
IconCurrencyTenge,
|
||||
IconCurrencyTugrik,
|
||||
IconCurrencyWon,
|
||||
IconCurrencyYen,
|
||||
IconCurrencyYuan,
|
||||
IconCurrencyZloty,
|
||||
IconDatabase,
|
||||
IconDatabaseExport,
|
||||
IconDecimal,
|
||||
IconDeviceFloppy,
|
||||
IconDoorEnter,
|
||||
IconDotsVertical,
|
||||
IconDownload,
|
||||
IconEditCircle,
|
||||
IconExternalLink,
|
||||
IconEye,
|
||||
IconEyeOff,
|
||||
IconEyeShare,
|
||||
IconFile,
|
||||
IconFileCheck,
|
||||
IconFileExport,
|
||||
IconFileImport,
|
||||
IconFilePencil,
|
||||
IconFileText,
|
||||
IconFileUpload,
|
||||
IconFileZip,
|
||||
IconFilter,
|
||||
IconFilterCog,
|
||||
IconFilterOff,
|
||||
IconFlag,
|
||||
IconFlask,
|
||||
IconFocusCentered,
|
||||
IconFolder,
|
||||
IconFolderOpen,
|
||||
IconFolderPlus,
|
||||
IconFolderRoot,
|
||||
IconForbid,
|
||||
IconFunction,
|
||||
IconGauge,
|
||||
IconGitCommit,
|
||||
IconGripVertical,
|
||||
IconH1,
|
||||
IconH2,
|
||||
IconH3,
|
||||
IconHandClick,
|
||||
IconHandMove,
|
||||
IconHeadphones,
|
||||
IconHeart,
|
||||
IconHeartOff,
|
||||
IconHeartRateMonitor,
|
||||
IconHelpCircle,
|
||||
IconHierarchy,
|
||||
IconHierarchy2,
|
||||
IconHistory,
|
||||
IconHistoryToggle,
|
||||
IconHome,
|
||||
IconHours24,
|
||||
IconId,
|
||||
IconInbox,
|
||||
IconInfoCircle,
|
||||
IconJson,
|
||||
IconKey,
|
||||
IconLanguage,
|
||||
IconLayersLinked,
|
||||
IconLayout,
|
||||
IconLayoutKanban,
|
||||
IconLayoutList,
|
||||
IconLayoutNavbar,
|
||||
IconLayoutSidebarLeftCollapse,
|
||||
IconLayoutSidebarRight,
|
||||
IconLayoutSidebarRightCollapse,
|
||||
IconLayoutSidebarRightExpand,
|
||||
IconLibraryPlus,
|
||||
IconLifebuoy,
|
||||
IconLink,
|
||||
IconLinkOff,
|
||||
IconList,
|
||||
IconListCheck,
|
||||
IconListDetails,
|
||||
IconListNumbers,
|
||||
IconLoader,
|
||||
IconLock,
|
||||
IconLockOpen,
|
||||
IconLogin2,
|
||||
IconLogout,
|
||||
IconMail,
|
||||
IconMailCog,
|
||||
IconMap,
|
||||
IconMaximize,
|
||||
IconMessage,
|
||||
IconMinus,
|
||||
IconMoneybag,
|
||||
IconMoodSmile,
|
||||
IconMoon,
|
||||
IconMouse2,
|
||||
IconNorthStar,
|
||||
IconNoteOff,
|
||||
IconNotes,
|
||||
IconNumber9,
|
||||
IconNumbers,
|
||||
IconPaperclip,
|
||||
IconPassword,
|
||||
IconPencil,
|
||||
IconPercentage,
|
||||
IconPhone,
|
||||
IconPhoto,
|
||||
IconPhotoUp,
|
||||
IconPilcrow,
|
||||
IconPlayerPause,
|
||||
IconPlayerPlay,
|
||||
IconPlayerStop,
|
||||
IconPlaylistAdd,
|
||||
IconPlaystationSquare,
|
||||
IconPlug,
|
||||
IconPlus,
|
||||
IconPoint,
|
||||
IconPower,
|
||||
IconPresentation,
|
||||
IconPrinter,
|
||||
IconProgressCheck,
|
||||
IconPuzzle,
|
||||
IconQuestionMark,
|
||||
IconRefresh,
|
||||
IconRefreshDot,
|
||||
IconRelationManyToMany,
|
||||
IconRelationOneToMany,
|
||||
IconRelationOneToOne,
|
||||
IconReload,
|
||||
IconRepeat,
|
||||
IconRestore,
|
||||
IconRobot,
|
||||
IconRocket,
|
||||
IconRotate,
|
||||
IconRotate2,
|
||||
IconSearch,
|
||||
IconSend,
|
||||
IconServer,
|
||||
IconServer2,
|
||||
IconSettings,
|
||||
IconSettings2,
|
||||
IconSettingsAutomation,
|
||||
IconSlash,
|
||||
IconSortAZ,
|
||||
IconSortDescending,
|
||||
IconSortZA,
|
||||
IconSparkles,
|
||||
IconSql,
|
||||
IconSquare,
|
||||
IconSquareKey,
|
||||
IconSquareRoundedCheck,
|
||||
IconSquareRoundedX,
|
||||
IconStatusChange,
|
||||
IconStepInto,
|
||||
IconSun,
|
||||
IconSunMoon,
|
||||
IconSwitchHorizontal,
|
||||
IconTable,
|
||||
IconTag,
|
||||
IconTags,
|
||||
IconTarget,
|
||||
IconTargetArrow,
|
||||
IconTestPipe,
|
||||
IconTextSize,
|
||||
IconTextWrap,
|
||||
IconTimeDuration30,
|
||||
IconTimeDuration60,
|
||||
IconTimelineEvent,
|
||||
IconTool,
|
||||
IconTrash,
|
||||
IconTrashX,
|
||||
IconTypography,
|
||||
IconUnlink,
|
||||
IconUpload,
|
||||
IconUser,
|
||||
IconUserCircle,
|
||||
IconUserCog,
|
||||
IconUserPin,
|
||||
IconUserPlus,
|
||||
IconUsers,
|
||||
IconVariable,
|
||||
IconVariablePlus,
|
||||
IconVersions,
|
||||
IconVersionsOff,
|
||||
IconVideo,
|
||||
IconWand,
|
||||
IconWebhook,
|
||||
IconWorld,
|
||||
IconX,
|
||||
} from './icon/components/TablerIcons';
|
||||
export { useIcons } from './icon/hooks/useIcons';
|
||||
export { IconsProvider } from './icon/providers/IconsProvider';
|
||||
export { iconsState } from './icon/states/iconsState';
|
||||
export type {
|
||||
IconComponentProps,
|
||||
IconComponent,
|
||||
} from './icon/types/IconComponent';
|
||||
export type { InfoAccent, InfoProps } from './info/components/Info';
|
||||
export { Info } from './info/components/Info';
|
||||
export { Status } from './status/components/Status';
|
||||
export { HorizontalSeparator } from './text/components/HorizontalSeparator';
|
||||
export { SeparatorLineText } from './text/components/SeparatorLineText';
|
||||
export type { AppTooltipProps } from './tooltip/AppTooltip';
|
||||
export {
|
||||
TooltipPosition,
|
||||
TooltipDelay,
|
||||
AppTooltip,
|
||||
} from './tooltip/AppTooltip';
|
||||
export { OverflowingTextWithTooltip } from './tooltip/OverflowingTextWithTooltip';
|
||||
export { H1TitleFontColor, H1Title } from './typography/components/H1Title';
|
||||
export { H2Title } from './typography/components/H2Title';
|
||||
export { H3Title } from './typography/components/H3Title';
|
||||
export type { LabelVariant } from './typography/components/Label';
|
||||
export { Label } from './typography/components/Label';
|
||||
export {
|
||||
StyledTextContent,
|
||||
StyledTextWrapper,
|
||||
StyledText,
|
||||
} from './typography/components/StyledText';
|
||||
|
||||
Reference in New Issue
Block a user