|
@@ -125,8 +125,8 @@ const Panel = (props: PanelProps) => {
|
|
|
})
|
|
|
|
|
|
return (
|
|
|
- <div className='relative w-full bg-white rounded-lg border-[0.5px] border-gray-200'>
|
|
|
- <div className='p-2 border-b-[0.5px] border-black/5'>
|
|
|
+ <div className='relative w-full bg-components-input-bg-hover rounded-lg border-[0.5px] border-components-panel-border'>
|
|
|
+ <div className='p-2 border-b-[0.5px] border-divider-regular'>
|
|
|
<Input
|
|
|
showLeftIcon
|
|
|
showClearIcon
|
|
@@ -138,9 +138,9 @@ const Panel = (props: PanelProps) => {
|
|
|
</div>
|
|
|
{keywords && notExisted && (
|
|
|
<div className='p-1'>
|
|
|
- <div className='flex items-center gap-2 pl-3 py-[6px] pr-2 rounded-lg cursor-pointer hover:bg-gray-100' onClick={createNewTag}>
|
|
|
- <RiAddLine className='h-4 w-4 text-gray-500' />
|
|
|
- <div className='grow text-sm text-gray-700 leading-5 truncate'>
|
|
|
+ <div className='flex items-center gap-2 pl-3 py-[6px] pr-2 rounded-lg cursor-pointer hover:bg-state-base-hover' onClick={createNewTag}>
|
|
|
+ <RiAddLine className='h-4 w-4 text-text-tertiary' />
|
|
|
+ <div className='grow text-sm text-text-secondary leading-5 truncate'>
|
|
|
{`${t('common.tag.create')} `}
|
|
|
<span className='font-medium'>{`"${keywords}"`}</span>
|
|
|
</div>
|
|
@@ -155,7 +155,7 @@ const Panel = (props: PanelProps) => {
|
|
|
{filteredSelectedTagList.map(tag => (
|
|
|
<div
|
|
|
key={tag.id}
|
|
|
- className='flex items-center gap-2 pl-3 py-[6px] pr-2 rounded-lg cursor-pointer hover:bg-gray-100'
|
|
|
+ className='flex items-center gap-2 pl-3 py-[6px] pr-2 rounded-lg cursor-pointer hover:bg-state-base-hover'
|
|
|
onClick={() => selectTag(tag)}
|
|
|
>
|
|
|
<Checkbox
|
|
@@ -163,13 +163,13 @@ const Panel = (props: PanelProps) => {
|
|
|
checked={selectedTagIDs.includes(tag.id)}
|
|
|
onCheck={() => { }}
|
|
|
/>
|
|
|
- <div title={tag.name} className='grow text-sm text-gray-700 leading-5 truncate'>{tag.name}</div>
|
|
|
+ <div title={tag.name} className='grow text-sm text-text-secondary leading-5 truncate'>{tag.name}</div>
|
|
|
</div>
|
|
|
))}
|
|
|
{filteredTagList.map(tag => (
|
|
|
<div
|
|
|
key={tag.id}
|
|
|
- className='flex items-center gap-2 pl-3 py-[6px] pr-2 rounded-lg cursor-pointer hover:bg-gray-100'
|
|
|
+ className='flex items-center gap-2 pl-3 py-[6px] pr-2 rounded-lg cursor-pointer hover:bg-state-base-hover'
|
|
|
onClick={() => selectTag(tag)}
|
|
|
>
|
|
|
<Checkbox
|
|
@@ -177,7 +177,7 @@ const Panel = (props: PanelProps) => {
|
|
|
checked={selectedTagIDs.includes(tag.id)}
|
|
|
onCheck={() => { }}
|
|
|
/>
|
|
|
- <div title={tag.name} className='grow text-sm text-gray-700 leading-5 truncate'>{tag.name}</div>
|
|
|
+ <div title={tag.name} className='grow text-sm text-text-secondary leading-5 truncate'>{tag.name}</div>
|
|
|
</div>
|
|
|
))}
|
|
|
</div>
|
|
@@ -185,16 +185,16 @@ const Panel = (props: PanelProps) => {
|
|
|
{!keywords && !filteredTagList.length && !filteredSelectedTagList.length && (
|
|
|
<div className='p-1'>
|
|
|
<div className='p-3 flex flex-col items-center gap-1'>
|
|
|
- <Tag03 className='h-6 w-6 text-gray-300' />
|
|
|
- <div className='text-gray-500 text-xs leading-[14px]'>{t('common.tag.noTag')}</div>
|
|
|
+ <Tag03 className='h-6 w-6 text-text-quaternary' />
|
|
|
+ <div className='text-text-tertiary text-xs leading-[14px]'>{t('common.tag.noTag')}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
)}
|
|
|
<Divider className='!h-[1px] !my-0' />
|
|
|
<div className='p-1'>
|
|
|
- <div className='flex items-center gap-2 pl-3 py-[6px] pr-2 rounded-lg cursor-pointer hover:bg-gray-100' onClick={() => setShowTagManagementModal(true)}>
|
|
|
- <Tag03 className='h-4 w-4 text-gray-500' />
|
|
|
- <div className='grow text-sm text-gray-700 leading-5 truncate'>
|
|
|
+ <div className='flex items-center gap-2 pl-3 py-[6px] pr-2 rounded-lg cursor-pointer hover:bg-state-base-hover' onClick={() => setShowTagManagementModal(true)}>
|
|
|
+ <Tag03 className='h-4 w-4 text-text-tertiary' />
|
|
|
+ <div className='grow text-sm text-text-secondary leading-5 truncate'>
|
|
|
{t('common.tag.manageTags')}
|
|
|
</div>
|
|
|
</div>
|
|
@@ -232,7 +232,7 @@ const TagSelector: FC<TagSelectorProps> = ({
|
|
|
const Trigger = () => {
|
|
|
return (
|
|
|
<div className={cn(
|
|
|
- 'group/tip relative w-full flex items-center gap-1 px-2 py-[7px] rounded-md cursor-pointer hover:bg-gray-100',
|
|
|
+ 'group/tip relative w-full flex items-center gap-1 px-2 py-[7px] rounded-md cursor-pointer hover:bg-state-base-hover',
|
|
|
)}>
|
|
|
<Tag01 className='shrink-0 w-3 h-3' />
|
|
|
<div className='grow text-xs text-start leading-[18px] font-normal truncate'>
|
|
@@ -261,8 +261,8 @@ const TagSelector: FC<TagSelectorProps> = ({
|
|
|
btnElement={<Trigger />}
|
|
|
btnClassName={open =>
|
|
|
cn(
|
|
|
- open ? '!bg-gray-100 !text-gray-700' : '!bg-transparent',
|
|
|
- '!w-full !p-0 !border-0 !text-gray-500 hover:!bg-gray-100 hover:!text-gray-700',
|
|
|
+ open ? '!bg-state-base-hover !text-text-secondary' : '!bg-transparent',
|
|
|
+ '!w-full !p-0 !border-0 !text-text-tertiary hover:!bg-state-base-hover hover:!text-text-secondary',
|
|
|
)
|
|
|
}
|
|
|
popupClassName='!w-full !ring-0'
|