refactor: move Checkmark, Avatar, Chip and Tooltip to twenty-ui (#4946)
Split from https://github.com/twentyhq/twenty/pull/4518 Part of #4766
This commit is contained in:
@ -107,7 +107,7 @@ Handles overflowing text and displays a tooltip when the text overflows.
|
||||
|
||||
|
||||
<SandpackEditor
|
||||
availableComponentPaths={['@/ui/display/tooltip/OverflowingTextWithTooltip']}
|
||||
availableComponentPaths={['twenty-ui']}
|
||||
componentCode={overflowingTextWithTooltipCode}
|
||||
/>
|
||||
|
||||
|
||||
@ -17,7 +17,7 @@ Represents a successful or completed action.
|
||||
<TabItem value="usage" label="Usage" default>
|
||||
|
||||
<SandpackEditor
|
||||
availableComponentPaths={['@/ui/display/checkmark/components/Checkmark']}
|
||||
availableComponentPaths={['twenty-ui']}
|
||||
componentCode={checkmarkCode}
|
||||
/>
|
||||
|
||||
@ -40,7 +40,7 @@ Represents a checkmark icon with the added feature of animation.
|
||||
<TabItem value="usage" label="Usage" default>
|
||||
|
||||
<SandpackEditor
|
||||
availableComponentPaths={['@/ui/display/checkmark/components/AnimatedCheckmark']}
|
||||
availableComponentPaths={['twenty-ui']}
|
||||
componentCode={animatedCheckmarkCode}
|
||||
/>
|
||||
|
||||
|
||||
@ -18,7 +18,7 @@ A visual element that you can use as a clickable or non-clickable container with
|
||||
<TabItem value="usage" label="Usage" default>
|
||||
|
||||
<SandpackEditor
|
||||
availableComponentPaths={['@/ui/display/chip/components/Chip']}
|
||||
availableComponentPaths={['twenty-ui']}
|
||||
componentCode={chipCode}
|
||||
/>
|
||||
</TabItem>
|
||||
@ -117,8 +117,8 @@ A visual element that you can use as a clickable or non-clickable container with
|
||||
### Transparent Disabled Chip
|
||||
|
||||
<SandpackEditor
|
||||
availableComponentPaths={['@/ui/display/chip/components/Chip']}
|
||||
componentCode={`import { Chip } from "@/ui/display/chip/components/Chip";
|
||||
availableComponentPaths={['twenty-ui']}
|
||||
componentCode={`import { Chip } from "twenty-ui";
|
||||
|
||||
export const MyComponent = () => {
|
||||
return (
|
||||
@ -144,8 +144,8 @@ export const MyComponent = () => {
|
||||
### Disabled Chip with Tooltip
|
||||
|
||||
<SandpackEditor
|
||||
availableComponentPaths={['@/ui/display/chip/components/Chip']}
|
||||
componentCode={`import { Chip } from "@/ui/display/chip/components/Chip";
|
||||
availableComponentPaths={['twenty-ui']}
|
||||
componentCode={`import { Chip } from "twenty-ui";
|
||||
|
||||
export const MyComponent = () => {
|
||||
return (
|
||||
@ -176,7 +176,7 @@ A Chip-like element to display information about an entity.
|
||||
<TabItem value="usage" label="Usage" default>
|
||||
|
||||
<SandpackEditor
|
||||
availableComponentPaths={['@/ui/display/chip/components/EntityChip', 'twenty-ui']}
|
||||
availableComponentPaths={['twenty-ui']}
|
||||
componentCode={entityChipCode}
|
||||
/>
|
||||
</TabItem >
|
||||
|
||||
Reference in New Issue
Block a user