[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:
Paul Rastoin
2025-04-03 11:47:55 +02:00
committed by GitHub
parent 8c9fcfe5a4
commit 4a4e65fe4a
1009 changed files with 5757 additions and 2828 deletions

View File

@ -0,0 +1,14 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="24" height="24" rx="3" fill="none"/>
<g clip-path="url(#clip0_36855_127259)">
<rect x="0.75" y="0.75" width="22.5" height="22.5" rx="2.25" fill="none"/>
<path d="M3.25579 7.91194C3.2211 7.41587 3.3849 6.92633 3.71115 6.55103C4.03739 6.17573 4.49936 5.9454 4.99543 5.91071L18.0885 4.99516C18.5845 4.96047 19.0741 5.12426 19.4494 5.45051C19.8247 5.77675 20.055 6.23873 20.0897 6.7348L20.7437 16.087C20.7783 16.583 20.6145 17.0726 20.2883 17.4479C19.9621 17.8232 19.5001 18.0535 19.004 18.0882L5.91099 19.0037C5.41492 19.0384 4.92538 18.8746 4.55008 18.5484C4.17478 18.2221 3.94445 17.7602 3.90976 17.2641L3.25579 7.91194Z" fill="#E8EFFD"/>
<path d="M3.25579 7.91194L12.0651 12.9347L20.0897 6.7348" fill="#E8EFFD"/>
<path d="M3.25579 7.91194C3.2211 7.41587 3.3849 6.92633 3.71115 6.55103C4.03739 6.17573 4.49936 5.9454 4.99543 5.91071L18.0885 4.99516C18.5845 4.96047 19.0741 5.12426 19.4494 5.45051C19.8247 5.77675 20.055 6.23873 20.0897 6.7348M3.25579 7.91194L3.90976 17.2641C3.94445 17.7602 4.17478 18.2221 4.55008 18.5484C4.92538 18.8746 5.41492 19.0384 5.91099 19.0037L19.004 18.0882C19.5001 18.0535 19.9621 17.8232 20.2883 17.4479C20.6145 17.0726 20.7783 16.583 20.7437 16.087L20.0897 6.7348M3.25579 7.91194L12.0651 12.9347L20.0897 6.7348" stroke="currentColor" stroke-width="1.49625" stroke-linecap="round" stroke-linejoin="round"/>
</g>
<defs>
<clipPath id="clip0_36855_127259">
<rect x="0.75" y="0.75" width="22.5" height="22.5" rx="2.25" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 1.6 KiB