[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="currentFill" xmlns="http://www.w3.org/2000/svg">
<rect width="24" height="24" rx="3" fill="none"/>
<g clip-path="url(#clip0_36855_127138)">
<rect x="0.75" y="0.75" width="22.5" height="22.5" rx="2.25" fill="none"/>
<path d="M15.4792 7.99748C15.4098 7.00534 14.9491 6.08139 14.1985 5.4289C13.4479 4.77641 12.4688 4.44882 11.4767 4.5182C10.4846 4.58758 9.56062 5.04824 8.90813 5.79884C8.25564 6.54945 7.92805 7.52851 7.99743 8.52065L8.06282 9.45587C8.1322 10.448 8.59286 11.3719 9.34347 12.0244C10.0941 12.6769 11.0731 13.0045 12.0653 12.9351C13.0574 12.8658 13.9814 12.4051 14.6338 11.6545C15.2863 10.9039 15.6139 9.92483 15.5446 8.93269" fill="#E8EFFD"/>
<path d="M8.5206 16.0024C8.58998 16.9945 9.05064 17.9185 9.80124 18.571C10.5518 19.2234 11.5309 19.551 12.5231 19.4817C13.5152 19.4123 14.4391 18.9516 15.0916 18.201C15.7441 17.4504 16.0717 16.4713 16.0023 15.4792L15.4792 7.99748" fill="none"/>
<path d="M15.5446 8.93269C15.6139 9.92483 15.2863 10.9039 14.6338 11.6545C13.9814 12.4051 13.0574 12.8658 12.0653 12.9351C11.0731 13.0045 10.0941 12.6769 9.34347 12.0244C8.59286 11.3719 8.1322 10.448 8.06282 9.45587L7.99743 8.52065C7.92805 7.52851 8.25564 6.54945 8.90813 5.79884C9.56062 5.04824 10.4846 4.58758 11.4767 4.5182C12.4688 4.44882 13.4479 4.77641 14.1985 5.4289C14.9491 6.08139 15.4098 7.00534 15.4792 7.99748L16.0023 15.4792C16.0717 16.4713 15.7441 17.4504 15.0916 18.201C14.4391 18.9516 13.5152 19.4123 12.5231 19.4817C11.5309 19.551 10.5518 19.2234 9.80124 18.571C9.05064 17.9185 8.58998 16.9945 8.5206 16.0024" stroke="currentColor" stroke-width="1.49625" stroke-linecap="round" stroke-linejoin="round"/>
</g>
<defs>
<clipPath id="clip0_36855_127138">
<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.8 KiB