[UI] Extract our ColorSample and Tag components from twenty-front to twenty-ui. (#5543)

Two more components extracted out of twenty-front: `ColorSample` and
`Tag`.
This commit is contained in:
Abdullah
2024-05-23 10:46:31 +05:00
committed by GitHub
parent 6b1d4e0744
commit b8eef21343
21 changed files with 66 additions and 65 deletions

View File

@ -1,7 +1,6 @@
import styled from '@emotion/styled';
import { IconComponent } from 'twenty-ui';
import { IconComponent, Tag } from 'twenty-ui';
import { Tag } from '@/ui/display/tag/components/Tag';
import { Checkbox } from '@/ui/input/components/Checkbox';
import { MenuItemLeftContent } from '@/ui/navigation/menu-item/internals/components/MenuItemLeftContent';
import { ThemeColor } from '@/ui/theme/constants/MainColorNames';

View File

@ -1,4 +1,5 @@
import { Tag } from '@/ui/display/tag/components/Tag';
import { Tag } from 'twenty-ui';
import {
Checkbox,
CheckboxShape,

View File

@ -1,10 +1,6 @@
import { useTheme } from '@emotion/react';
import { IconCheck } from 'twenty-ui';
import { ColorSample, ColorSampleVariant, IconCheck } from 'twenty-ui';
import {
ColorSample,
ColorSampleVariant,
} from '@/ui/display/color/components/ColorSample';
import { ThemeColor } from '@/ui/theme/constants/MainColorNames';
import {

View File

@ -1,7 +1,6 @@
import { useTheme } from '@emotion/react';
import { IconCheck } from 'twenty-ui';
import { IconCheck, Tag } from 'twenty-ui';
import { Tag } from '@/ui/display/tag/components/Tag';
import { ThemeColor } from '@/ui/theme/constants/MainColorNames';
import { StyledMenuItemLeftContent } from '../internals/components/StyledMenuItemBase';

View File

@ -4,10 +4,10 @@ import {
CatalogDimension,
CatalogOptions,
CatalogStory,
ColorSampleVariant,
ComponentDecorator,
} from 'twenty-ui';
import { ColorSampleVariant } from '@/ui/display/color/components/ColorSample';
import {
MAIN_COLOR_NAMES,
ThemeColor,