Files
CoHaiSe-CLOUD/frontend/src/components/icons.tsx
T
Gitea ActionsandEsiah 9dd1ad72e0
CD — Déploiement / deploy (push) Failing after 25s
feat: logo et favicon, confirmation modale, fil d'ariane, e-mails sombres (#4)
- logo embarque dans les e-mails (CID) et gabarit repense en mode sombre
- favicon multi-tailles + icone PNG, logo a gauche du titre (app et auth)
- modale de confirmation animee a la place de window.confirm
- bouton retour et fil d'ariane dans l'explorateur

---------

Co-authored-by: xEsiah <[email protected]>
Reviewed-on: #4
Reviewed-by: Esiah <[email protected]>
Co-authored-by: Gitea Actions <-[email protected]>
2026-10-16 11:08:47 +00:00

167 lines
4.8 KiB
TypeScript

import type { SVGProps } from "react";
type IconProps = SVGProps<SVGSVGElement>;
const base = (props: IconProps) => ({
viewBox: "0 0 24 24",
fill: "none",
stroke: "currentColor",
strokeWidth: 1.6,
strokeLinecap: "round" as const,
strokeLinejoin: "round" as const,
"aria-hidden": true,
...props,
});
export const FolderIcon = (props: IconProps) => (
<svg {...base(props)}>
<path d="M3 7.5A1.5 1.5 0 0 1 4.5 6h4l2 2.5h7A1.5 1.5 0 0 1 19 10v7.5A1.5 1.5 0 0 1 17.5 19h-13A1.5 1.5 0 0 1 3 17.5Z" />
</svg>
);
export const FileIcon = (props: IconProps) => (
<svg {...base(props)}>
<path d="M6 3.5h7l5 5v12A1.5 1.5 0 0 1 16.5 22h-10A1.5 1.5 0 0 1 5 20.5v-16A1.5 1.5 0 0 1 6 3Z" />
<path d="M13 3.5v5h5" />
</svg>
);
export const ImageIcon = (props: IconProps) => (
<svg {...base(props)}>
<rect x="3" y="4" width="18" height="16" rx="2" />
<circle cx="8.5" cy="9.5" r="1.5" />
<path d="m4 17 4.5-4.5a1.5 1.5 0 0 1 2.1 0L15 17m1.5-2 1.2-1.2a1.5 1.5 0 0 1 2.1 0L21 15" />
</svg>
);
export const UploadIcon = (props: IconProps) => (
<svg {...base(props)}>
<path d="M12 16V4m0 0L7.5 8.5M12 4l4.5 4.5M4 17v1.5A1.5 1.5 0 0 0 5.5 20h13a1.5 1.5 0 0 0 1.5-1.5V17" />
</svg>
);
export const DownloadIcon = (props: IconProps) => (
<svg {...base(props)}>
<path d="M12 4v12m0 0-4.5-4.5M12 16l4.5-4.5M4 17v1.5A1.5 1.5 0 0 0 5.5 20h13a1.5 1.5 0 0 0 1.5-1.5V17" />
</svg>
);
export const PlusIcon = (props: IconProps) => (
<svg {...base(props)}>
<path d="M12 5v14M5 12h14" />
</svg>
);
export const TrashIcon = (props: IconProps) => (
<svg {...base(props)}>
<path d="M4 7h16M9 7V5.5A1.5 1.5 0 0 1 10.5 4h3A1.5 1.5 0 0 1 15 5.5V7m-8 0 .7 11.1A1.5 1.5 0 0 0 9.2 19.6h5.6a1.5 1.5 0 0 0 1.5-1.5L17 7" />
</svg>
);
export const RestoreIcon = (props: IconProps) => (
<svg {...base(props)}>
<path d="M4 12a8 8 0 1 0 2.3-5.6M4 4v4h4" />
</svg>
);
export const StarIcon = ({ filled, ...props }: IconProps & { filled?: boolean }) => (
<svg {...base(props)} fill={filled ? "currentColor" : "none"}>
<path d="m12 3.5 2.6 5.3 5.9.9-4.2 4.1 1 5.8L12 20.8l-5.3 2.8 1-5.8L3.5 14l5.9-.9Z" />
</svg>
);
export const SearchIcon = (props: IconProps) => (
<svg {...base(props)}>
<circle cx="11" cy="11" r="7" />
<path d="m20 20-3.5-3.5" />
</svg>
);
export const UsersIcon = (props: IconProps) => (
<svg {...base(props)}>
<circle cx="9" cy="8" r="3.5" />
<path d="M3.5 20a5.5 5.5 0 0 1 11 0M16 5.5a3 3 0 0 1 0 6M16.5 20a5.5 1.5 0 0 0-2.2-4.3" />
</svg>
);
export const SettingsIcon = (props: IconProps) => (
<svg {...base(props)}>
<circle cx="12" cy="12" r="3" />
<path d="M19.4 15a1.7 1.7 0 0 0 .3 1.9l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-2.9 1.2 2 2 0 1 1-4 0 1.7 1.7 0 0 0-2.9-1.2l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1A1.7 1.7 0 0 0 2.6 15a2 2 0 1 1 0-4 1.7 1.7 0 0 0 1.2-2.9l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1A1.7 1.7 0 0 0 9 4.6a2 2 0 1 1 4 0 1.7 1.7 0 0 0 2.9 1.2l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0 1.2 2.9 2 2 0 1 1 0 4 1.7 1.7 0 0 0-1.5 1Z" />
</svg>
);
export const LogoutIcon = (props: IconProps) => (
<svg {...base(props)}>
<path d="M15 4h2.5A1.5 1.5 0 0 1 19 5.5v13a1.5 1.5 0 0 1-1.5 1.5H15M10 8l-4 4 4 4M6 12h9" />
</svg>
);
export const ShieldIcon = (props: IconProps) => (
<svg {...base(props)}>
<path d="M12 3 5 6v5c0 4.3 3 8.2 7 9.5 4-1.3 7-5.2 7-9.5V6Z" />
<path d="m9 12 2 2 4-4" />
</svg>
);
export const HardDriveIcon = (props: IconProps) => (
<svg {...base(props)}>
<rect x="3" y="4" width="18" height="16" rx="2" />
<path d="M3 14h18M7 17h.01M11 17h.01" />
</svg>
);
export const ActivityIcon = (props: IconProps) => (
<svg {...base(props)}>
<path d="M3 12h4l3 8 4-16 3 8h4" />
</svg>
);
export const SearchNavIcon = (props: IconProps) => (
<svg {...base(props)}>
<circle cx="11" cy="11" r="7" />
<path d="m20 20-3.5-3.5" />
</svg>
);
export const ShareIcon = (props: IconProps) => (
<svg {...base(props)}>
<circle cx="18" cy="5" r="2.5" />
<circle cx="6" cy="12" r="2.5" />
<circle cx="18" cy="19" r="2.5" />
<path d="m8.2 10.8 7.6-4.6M8.2 13.2l7.6 4.6" />
</svg>
);
export const MenuIcon = (props: IconProps) => (
<svg {...base(props)}>
<path d="M4 7h16M4 12h16M4 17h16" />
</svg>
);
export const CloseIcon = (props: IconProps) => (
<svg {...base(props)}>
<path d="M6 6l12 12M18 6 6 18" />
</svg>
);
export const ArrowLeftIcon = (props: IconProps) => (
<svg {...base(props)}>
<path d="M19 12H5M11 18l-6-6 6-6" />
</svg>
);
export const PenIcon = (props: IconProps) => (
<svg {...base(props)}>
<path d="M4 20h4L18.5 9.5a2.1 2.1 0 0 0-3-3L5 17v3Z" />
<path d="m13.5 6.5 3 3" />
</svg>
);
export const MoveIcon = (props: IconProps) => (
<svg {...base(props)}>
<path d="M12 4v16M4 12h16" />
<path d="m9 7 3-3 3 3M9 17l3 3 3-3M7 9l-3 3 3 3M17 9l3 3-3 3" />
</svg>
);