refactor: Extract folder assignment logic into a new SelectionFolderMenu component, adding new icons and updating related styles.

This commit is contained in:
2025-11-28 19:28:12 +01:00
parent 970490d9c8
commit 34604c5842
4 changed files with 407 additions and 340 deletions
+37
View File
@@ -20,6 +20,7 @@ import {
IconTextScan2,
IconFolderPlus,
IconFolder,
IconFolderUp,
IconFolders,
IconFoldersOff,
IconRefresh,
@@ -567,6 +568,40 @@ export const ChevronDownIcon: TablerIconComponent = ({ className, size = '1em',
/>
);
export const FolderUpIcon: TablerIconComponent = ({ className, size = '1em', stroke = 1.6, ...rest }) => (
<IconFolderUp
className={composeClassName('icon', className)}
size={size}
stroke={stroke}
{...rest}
/>
);
export const FolderMoveIcon: TablerIconComponent = ({ className, size = '1em', stroke = 1.6, ...rest }) => (
<svg
xmlns="http://www.w3.org/2000/svg"
width={size}
height={size}
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
strokeWidth={stroke}
strokeLinecap="round"
strokeLinejoin="round"
className={composeClassName('icon', className)}
{...rest}
>
<g transform="translate(2, 0)">
<path d="M5 4h4l3 3h7a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-2m0 -6v-3a2 2 0 0 1 2 -2" />
</g>
<g transform="translate(-4, 0)">
<path d="M5 12l11 0"></path>
<path d="M13 16l4 -4"></path>
<path d="M13 8l4 4"></path>
</g>
</svg>
);
export default {
ChevronIcon,
TrashIcon,
@@ -589,6 +624,8 @@ export default {
MinusVerticalIcon,
LogoutIcon,
ChevronDownIcon,
FolderUpIcon,
FolderMoveIcon,
};
export const TextScanIcon: TablerIconComponent = ({ className, size = '1em', stroke = 1.6, ...rest }) => (