Interface : icônes Papicons et couleurs d'Excalicloud
Aligne Up And Down sur Excalicloud pour que les deux outils se ressemblent. - Icônes : jeu Papicons 0.2.3 (formes pleines) repris d'Excalicloud (papicons.ts, icons.tsx, folderIcons.tsx) ; icônes propres à Up And Down (types de fichiers, verrou, clé, utilisateurs, nuage, etc.) redessinées dans le même esprit. - Couleurs : thème clair sur la palette d'Excalidraw 0.18 comme Excalicloud (accent #6965db, surfaces #ececf4) ; dossiers dans la couleur d'accent. Thème sombre inchangé (déjà commun aux deux outils). - Ergonomie : rayons 8/6 px, barre du haut 48 px, boutons sur fond surface-low sans bordure, champs au même fond. - Avis tiers et README : Papicons (MIT). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LNfwm4sxyNKUC5XjUyrD88
This commit is contained in:
1 parent
819ac94f60
commit
e93280eb18
6 files changed
+538
-458
No files matched your search
@@ -1,8 +1,11 @@
|
||||
// Icônes proposées pour les dossiers (jeu Tabler, comme icons.tsx). Le nom est
|
||||
// Icônes proposées pour les dossiers : Papicons quand le jeu a l'équivalent, sinon
|
||||
// tracé au trait (dessins Tabler). Le nom est
|
||||
// enregistré côté serveur (.meta.json) : ne pas renommer une clé existante.
|
||||
import { FolderIcon, icon } from "./icons";
|
||||
import type { ComponentType } from "react";
|
||||
import { FolderIcon, icon, pap } from "./icons";
|
||||
import * as P from "./papicons";
|
||||
|
||||
type Icon = ReturnType<typeof icon>;
|
||||
type Icon = ComponentType<{ size?: number }>;
|
||||
|
||||
export const FOLDER_ICONS: { name: string; label: string; Icon: Icon }[] = [
|
||||
{
|
||||
@@ -106,12 +109,7 @@ export const FOLDER_ICONS: { name: string; label: string; Icon: Icon }[] = [
|
||||
{
|
||||
name: "world",
|
||||
label: "Internet",
|
||||
Icon: icon(
|
||||
<>
|
||||
<circle cx="12" cy="12" r="9" />
|
||||
<path d="M3.6 9h16.8M3.6 15h16.8M11.5 3a17 17 0 0 0 0 18M12.5 3a17 17 0 0 1 0 18" />
|
||||
</>,
|
||||
),
|
||||
Icon: pap(P.Globe),
|
||||
},
|
||||
{
|
||||
name: "shield",
|
||||
@@ -121,13 +119,7 @@ export const FOLDER_ICONS: { name: string; label: string; Icon: Icon }[] = [
|
||||
{
|
||||
name: "lock",
|
||||
label: "Confidentiel",
|
||||
Icon: icon(
|
||||
<>
|
||||
<rect x="5" y="11" width="14" height="10" rx="2" />
|
||||
<circle cx="12" cy="16" r="1" />
|
||||
<path d="M8 11V7a4 4 0 1 1 8 0v4" />
|
||||
</>,
|
||||
),
|
||||
Icon: pap(P.Lock),
|
||||
},
|
||||
{
|
||||
name: "desktop",
|
||||
@@ -142,7 +134,7 @@ export const FOLDER_ICONS: { name: string; label: string; Icon: Icon }[] = [
|
||||
{
|
||||
name: "code",
|
||||
label: "Code",
|
||||
Icon: icon(<path d="M7 8l-4 4 4 4M17 8l4 4-4 4M14 4l-4 16" />),
|
||||
Icon: pap(P.Code),
|
||||
},
|
||||
{
|
||||
name: "tool",
|
||||
@@ -152,12 +144,7 @@ export const FOLDER_ICONS: { name: string; label: string; Icon: Icon }[] = [
|
||||
{
|
||||
name: "file-text",
|
||||
label: "Documents",
|
||||
Icon: icon(
|
||||
<>
|
||||
<path d="M14 3v4a1 1 0 0 0 1 1h4" />
|
||||
<path d="M17 21H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7l5 5v11a2 2 0 0 1-2 2zM9 9h1M9 13h6M9 17h6" />
|
||||
</>,
|
||||
),
|
||||
Icon: pap(P.Paper),
|
||||
},
|
||||
{
|
||||
name: "book",
|
||||
@@ -172,21 +159,12 @@ export const FOLDER_ICONS: { name: string; label: string; Icon: Icon }[] = [
|
||||
{
|
||||
name: "chart",
|
||||
label: "Indicateurs",
|
||||
Icon: icon(
|
||||
<>
|
||||
<rect x="3" y="12" width="6" height="8" rx="1" />
|
||||
<rect x="9" y="8" width="6" height="12" rx="1" />
|
||||
<rect x="15" y="4" width="6" height="16" rx="1" />
|
||||
<path d="M4 20h14" />
|
||||
</>,
|
||||
),
|
||||
Icon: pap(P.Pie),
|
||||
},
|
||||
{
|
||||
name: "bulb",
|
||||
label: "Idées",
|
||||
Icon: icon(
|
||||
<path d="M3 12h1m8-9v1m8 8h1M5.6 5.6l.7.7m12.1-.7-.7.7M9 16a5 5 0 1 1 6 0 3.5 3.5 0 0 0-1 3 2 2 0 0 1-4 0 3.5 3.5 0 0 0-1-3M9.7 17h4.6" />,
|
||||
),
|
||||
Icon: pap(P.Sparkles),
|
||||
},
|
||||
{
|
||||
name: "users",
|
||||
@@ -208,22 +186,12 @@ export const FOLDER_ICONS: { name: string; label: string; Icon: Icon }[] = [
|
||||
{
|
||||
name: "calendar",
|
||||
label: "Planning",
|
||||
Icon: icon(
|
||||
<>
|
||||
<rect x="4" y="5" width="16" height="16" rx="2" />
|
||||
<path d="M16 3v4M8 3v4M4 11h16" />
|
||||
</>,
|
||||
),
|
||||
Icon: pap(P.Calendar),
|
||||
},
|
||||
{
|
||||
name: "photo",
|
||||
label: "Images",
|
||||
Icon: icon(
|
||||
<>
|
||||
<rect x="3" y="3" width="18" height="18" rx="3" />
|
||||
<path d="M15 8h.01M3 16l5-5c.93-.89 2.07-.89 3 0l5 5M14 14l1-1c.93-.89 2.07-.89 3 0l3 3" />
|
||||
</>,
|
||||
),
|
||||
Icon: pap(P.Gallery),
|
||||
},
|
||||
{
|
||||
name: "flag",
|
||||
@@ -233,12 +201,7 @@ export const FOLDER_ICONS: { name: string; label: string; Icon: Icon }[] = [
|
||||
{
|
||||
name: "archive",
|
||||
label: "Archives",
|
||||
Icon: icon(
|
||||
<>
|
||||
<rect x="3" y="4" width="18" height="4" rx="2" />
|
||||
<path d="M5 8v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8M10 12h4" />
|
||||
</>,
|
||||
),
|
||||
Icon: pap(P.Archive),
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
+328
-378
@@ -1,440 +1,390 @@
|
||||
// Icônes au trait, dans le style d'Excalidraw (jeu Tabler, trait fin, couleur héritée).
|
||||
import type { ReactNode } from "react";
|
||||
// Icônes de l'interface : jeu Papicons (formes pleines, couleur héritée via currentColor),
|
||||
// identique à celui d'Excalicloud (frontend/src/icons.tsx) pour que les deux outils se ressemblent.
|
||||
// Les tracés Papicons sont dans papicons.ts ; les quelques icônes absentes du jeu sont
|
||||
// dessinées ici dans le même esprit (formes pleines arrondies, ou trait épais à bouts ronds).
|
||||
import { useId, type ReactNode } from "react";
|
||||
import * as P from "./papicons";
|
||||
import type { PapPath } from "./papicons";
|
||||
|
||||
export const icon = (paths: ReactNode) =>
|
||||
function Icon({ size = 16, className }: { size?: number; className?: string }) {
|
||||
type IconProps = { size?: number; className?: string };
|
||||
|
||||
/** Identifiant de masque SVG unique et sûr dans url(#…). */
|
||||
function useMaskId() {
|
||||
return "m" + useId().replace(/[^a-zA-Z0-9_-]/g, "");
|
||||
}
|
||||
|
||||
function Svg({ size = 16, className, children }: IconProps & { children: ReactNode }) {
|
||||
return (
|
||||
<svg width={size} height={size} viewBox="0 0 24 24" fill="currentColor" className={className} aria-hidden>
|
||||
{children}
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
|
||||
const paths = (p: PapPath[]) =>
|
||||
p.map((x, i) => <path key={i} d={x.d} fillRule={x.evenodd ? "evenodd" : undefined} clipRule={x.evenodd ? "evenodd" : undefined} />);
|
||||
|
||||
/** Icône Papicons telle quelle. */
|
||||
export const pap = (p: PapPath[], transform?: string) =>
|
||||
function Icon({ size, className }: IconProps) {
|
||||
return (
|
||||
<Svg size={size} className={className}>
|
||||
<g transform={transform}>{paths(p)}</g>
|
||||
</Svg>
|
||||
);
|
||||
};
|
||||
|
||||
/** Icône au trait, pour les icônes de dossiers sans équivalent Papicons (trait 2, plus appuyé que Tabler). */
|
||||
export const icon = (children: ReactNode) =>
|
||||
function Icon({ size = 16, className }: IconProps) {
|
||||
return (
|
||||
<svg width={size} height={size} viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth={2} strokeLinecap="round" strokeLinejoin="round" className={className} aria-hidden>
|
||||
{children}
|
||||
</svg>
|
||||
);
|
||||
};
|
||||
|
||||
/** Icône pleine dessinée ici. */
|
||||
const solid = (children: ReactNode) =>
|
||||
function Icon({ size, className }: IconProps) {
|
||||
return <Svg size={size} className={className}>{children}</Svg>;
|
||||
};
|
||||
|
||||
/** Icône au trait épais (graisse des flèches Papicons), pour les symboles absents du jeu. */
|
||||
const line = (children: ReactNode) =>
|
||||
function Icon({ size = 16, className }: IconProps) {
|
||||
return (
|
||||
<svg
|
||||
className={className}
|
||||
width={size}
|
||||
height={size}
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
strokeWidth={1.5}
|
||||
strokeWidth={2.5}
|
||||
strokeLinecap="round"
|
||||
strokeLinejoin="round"
|
||||
className={className}
|
||||
aria-hidden
|
||||
>
|
||||
{paths}
|
||||
{children}
|
||||
</svg>
|
||||
);
|
||||
};
|
||||
|
||||
export const SunIcon = icon(
|
||||
/** Icône Papicons avec une pastille en bas à droite (le fond est évidé autour de la pastille). */
|
||||
const badged = (base: PapPath[], badge: PapPath[]) =>
|
||||
function Icon({ size }: IconProps) {
|
||||
const id = useMaskId();
|
||||
return (
|
||||
<Svg size={size}>
|
||||
<mask id={id}>
|
||||
<rect width="24" height="24" fill="#fff" />
|
||||
<circle cx="18" cy="18" r="7" fill="#000" />
|
||||
</mask>
|
||||
<g mask={`url(#${id})`}>{paths(base)}</g>
|
||||
<g transform="translate(18 18) scale(0.5) translate(-12 -12)">{paths(badge)}</g>
|
||||
</Svg>
|
||||
);
|
||||
};
|
||||
|
||||
// Thème, barre du haut, panneaux.
|
||||
/** Soleil dessiné ici : celui de Papicons ressemble trop à la roue dentée des Paramètres. */
|
||||
export const SunIcon = solid(
|
||||
<>
|
||||
<circle cx="12" cy="12" r="4" />
|
||||
<path d="M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.41-1.41M17.66 6.34l1.41-1.41" />
|
||||
<circle cx="12" cy="12" r="4.5" />
|
||||
<path
|
||||
d="M12 2.5v1.5M12 20v1.5M2.5 12H4M20 12h1.5M5.3 5.3l1.05 1.05M17.65 17.65l1.05 1.05M5.3 18.7l1.05-1.05M17.65 6.35l1.05-1.05"
|
||||
stroke="currentColor"
|
||||
strokeWidth={2.5}
|
||||
strokeLinecap="round"
|
||||
/>
|
||||
</>,
|
||||
);
|
||||
export const MoonIcon = pap(P.Moon);
|
||||
export const SettingsIcon = pap(P.Gears);
|
||||
export const MenuIcon = pap(P.Menu);
|
||||
export const CloseIcon = pap(P.Cross);
|
||||
export const UpdateIcon = pap(P.Sparkles);
|
||||
export const UserIcon = pap(P.User);
|
||||
export const LogoutIcon = pap(P.Logout);
|
||||
export const InfoIcon = pap(P.Info);
|
||||
export const LinkIcon = pap(P.Link);
|
||||
export const SearchIcon = pap(P.Search);
|
||||
|
||||
export const MoonIcon = icon(<path d="M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9z" />);
|
||||
// Fichiers et dossiers.
|
||||
export const FolderIcon = pap(P.Folder);
|
||||
export const FileIcon = pap(P.Paper);
|
||||
export const FilePlusIcon = badged(P.Paper, P.Add);
|
||||
export const FolderPlusIcon = badged(P.Folder, P.Add);
|
||||
export const FolderUploadIcon = badged(P.Folder, P.ArrowUpBox);
|
||||
export const MoveIcon = badged(P.Folder, P.ArrowRightBox);
|
||||
export const UploadIcon = pap(P.ArrowUpBox);
|
||||
export const DownloadIcon = pap(P.ArrowDownBox);
|
||||
/** Dossier parent (« .. »). */
|
||||
export const UpIcon = pap(P.ArrowLeftUp);
|
||||
export const EditIcon = pap(P.PenAlt);
|
||||
export const SelectAllIcon = pap(P.Tasks);
|
||||
export const DeselectIcon = pap(P.Placeholder);
|
||||
/** Menu d'actions « … » : points à l'horizontale. */
|
||||
export const DotsIcon = pap(P.Dots, "rotate(90 12 12)");
|
||||
|
||||
export const SettingsIcon = icon(
|
||||
<>
|
||||
<path d="M10.33 4.32c.43-1.76 2.93-1.76 3.35 0a1.72 1.72 0 0 0 2.57 1.07c1.54-.94 3.31.83 2.37 2.37a1.72 1.72 0 0 0 1.07 2.57c1.76.43 1.76 2.93 0 3.35a1.72 1.72 0 0 0-1.07 2.57c.94 1.54-.83 3.31-2.37 2.37a1.72 1.72 0 0 0-2.57 1.07c-.43 1.76-2.93 1.76-3.35 0a1.72 1.72 0 0 0-2.57-1.07c-1.54.94-3.31-.83-2.37-2.37a1.72 1.72 0 0 0-1.07-2.57c-1.76-.43-1.76-2.93 0-3.35a1.72 1.72 0 0 0 1.07-2.57c-.94-1.54.83-3.31 2.37-2.37 1 .61 2.3.07 2.57-1.07z" />
|
||||
<circle cx="12" cy="12" r="3" />
|
||||
</>,
|
||||
);
|
||||
// Vues de l'explorateur.
|
||||
export const ListIcon = pap(P.List);
|
||||
export const GridIcon = pap(P.Grid);
|
||||
export const GalleryIcon = pap(P.Gallery);
|
||||
|
||||
export const MenuIcon = icon(<path d="M4 6h16M4 12h16M4 18h16" />);
|
||||
|
||||
export const CloseIcon = icon(<path d="M18 6 6 18M6 6l12 12" />);
|
||||
|
||||
export const FilePlusIcon = icon(
|
||||
<>
|
||||
<path d="M14 3v4a1 1 0 0 0 1 1h4" />
|
||||
<path d="M17 21H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7l5 5v11a2 2 0 0 1-2 2z" />
|
||||
<path d="M12 11v6M9 14h6" />
|
||||
</>,
|
||||
);
|
||||
|
||||
export const FolderPlusIcon = icon(
|
||||
<>
|
||||
<path d="M12 19H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h4l3 3h7a2 2 0 0 1 2 2v3.5" />
|
||||
<path d="M16 19h6M19 16v6" />
|
||||
</>,
|
||||
);
|
||||
|
||||
export const UploadIcon = icon(
|
||||
<>
|
||||
<path d="M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2" />
|
||||
<path d="M7 9l5-5 5 5M12 4v12" />
|
||||
</>,
|
||||
);
|
||||
|
||||
export const FolderUploadIcon = icon(
|
||||
<>
|
||||
<path d="M12 19H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h4l3 3h7a2 2 0 0 1 2 2v3" />
|
||||
<path d="M19 22v-6M22 19l-3-3-3 3" />
|
||||
</>,
|
||||
);
|
||||
|
||||
export const FolderIcon = icon(
|
||||
<path d="M5 4h4l3 3h7a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2" />,
|
||||
);
|
||||
|
||||
export const UpIcon = icon(<path d="M18 18h-6a3 3 0 0 1-3-3V5M13 10 9 6 5 10" />);
|
||||
|
||||
export const SearchIcon = icon(
|
||||
<>
|
||||
<circle cx="10" cy="10" r="7" />
|
||||
<path d="m21 21-6-6" />
|
||||
</>,
|
||||
);
|
||||
|
||||
export const ListIcon = icon(<path d="M9 6h11M9 12h11M9 18h11M5 6v.01M5 12v.01M5 18v.01" />);
|
||||
|
||||
export const GridIcon = icon(
|
||||
<>
|
||||
<rect x="4" y="4" width="6" height="6" rx="1" />
|
||||
<rect x="14" y="4" width="6" height="6" rx="1" />
|
||||
<rect x="4" y="14" width="6" height="6" rx="1" />
|
||||
<rect x="14" y="14" width="6" height="6" rx="1" />
|
||||
</>,
|
||||
);
|
||||
|
||||
export const RefreshIcon = icon(
|
||||
<>
|
||||
<path d="M20 11A8.1 8.1 0 0 0 4.5 9M4 5v4h4" />
|
||||
<path d="M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4" />
|
||||
</>,
|
||||
);
|
||||
|
||||
export const DotsIcon = icon(
|
||||
<>
|
||||
<circle cx="5" cy="12" r="1" />
|
||||
<circle cx="12" cy="12" r="1" />
|
||||
<circle cx="19" cy="12" r="1" />
|
||||
</>,
|
||||
);
|
||||
|
||||
export const TrashIcon = icon(
|
||||
<path d="M4 7h16M10 11v6M14 11v6M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2l1-12M9 7V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3" />,
|
||||
);
|
||||
|
||||
/** Poubelle qui contient des éléments : une feuille et une boule de papier dépassent du bord. */
|
||||
export const TrashFullIcon = icon(
|
||||
<>
|
||||
<path d="M4 10h16M5 10l1 9a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2l1-9M10 14v3M14 14v3" />
|
||||
<path d="M7.5 10 9 3.5l4.5 1-1.2 5.5M10.2 6.5l2 .5" />
|
||||
<circle cx="16" cy="7.8" r="2.2" />
|
||||
</>,
|
||||
);
|
||||
|
||||
export const RestoreIcon = icon(<path d="M9 14l-4-4 4-4M5 10h11a4 4 0 1 1 0 8h-1" />);
|
||||
|
||||
export const FileIcon = icon(
|
||||
<>
|
||||
<path d="M14 3v4a1 1 0 0 0 1 1h4" />
|
||||
<path d="M17 21H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7l5 5v11a2 2 0 0 1-2 2z" />
|
||||
</>,
|
||||
);
|
||||
|
||||
export const SelectAllIcon = icon(
|
||||
<>
|
||||
<rect x="4" y="4" width="16" height="16" rx="2" />
|
||||
<path d="m9 12 2 2 4-4" />
|
||||
</>,
|
||||
);
|
||||
|
||||
export const DeselectIcon = icon(<rect x="4" y="4" width="16" height="16" rx="2" />);
|
||||
|
||||
export const MoveIcon = icon(
|
||||
<>
|
||||
<path d="M12 19H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h4l3 3h7a2 2 0 0 1 2 2v3" />
|
||||
<path d="M16 19h6M19 16l3 3-3 3" />
|
||||
</>,
|
||||
);
|
||||
|
||||
export const SaveIcon = icon(
|
||||
<>
|
||||
<path d="M6 4h10l4 4v10a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2" />
|
||||
<circle cx="12" cy="14" r="2" />
|
||||
<path d="M14 4v4H8V4" />
|
||||
</>,
|
||||
);
|
||||
|
||||
export const UpdateIcon = icon(
|
||||
<>
|
||||
<circle cx="12" cy="12" r="9" />
|
||||
<path d="M12 16V8M8.5 11.5 12 8l3.5 3.5" />
|
||||
</>,
|
||||
);
|
||||
|
||||
export const CopyIcon = icon(
|
||||
<>
|
||||
<rect x="8" y="8" width="12" height="12" rx="2" />
|
||||
<path d="M16 8V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h2" />
|
||||
</>,
|
||||
);
|
||||
|
||||
export const EditIcon = icon(<path d="M4 20h4L18.5 9.5a2.83 2.83 0 0 0-4-4L4 16v4M13.5 6.5l4 4" />);
|
||||
|
||||
export const HistoryIcon = icon(
|
||||
<>
|
||||
<path d="M12 8v4l2 2" />
|
||||
<path d="M3.05 11a9 9 0 1 1 .5 4m-.5 5v-5h5" />
|
||||
</>,
|
||||
);
|
||||
|
||||
export const DownloadIcon = icon(
|
||||
<>
|
||||
<path d="M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2" />
|
||||
<path d="M7 11l5 5 5-5M12 4v12" />
|
||||
</>,
|
||||
);
|
||||
|
||||
export const StarIcon = icon(
|
||||
<path d="M12 17.75l-6.17 3.24 1.18-6.87-5-4.86 6.9-1 3.09-6.26 3.09 6.26 6.9 1-5 4.86 1.18 6.87z" />,
|
||||
);
|
||||
|
||||
/** Étoile pleine (favori). */
|
||||
export function StarFilledIcon({ size = 16 }: { size?: number }) {
|
||||
// Poubelle.
|
||||
export const TrashIcon = pap(P.Trash);
|
||||
/** Poubelle qui contient des éléments : pastille pleine sur le couvercle. */
|
||||
export function TrashFullIcon({ size }: IconProps) {
|
||||
const id = useMaskId();
|
||||
return (
|
||||
<svg width={size} height={size} viewBox="0 0 24 24" fill="currentColor" stroke="currentColor" strokeWidth={1.5} strokeLinejoin="round" aria-hidden>
|
||||
<path d="M12 17.75l-6.17 3.24 1.18-6.87-5-4.86 6.9-1 3.09-6.26 3.09 6.26 6.9 1-5 4.86 1.18 6.87z" />
|
||||
</svg>
|
||||
<Svg size={size}>
|
||||
<mask id={id}>
|
||||
<rect width="24" height="24" fill="#fff" />
|
||||
<circle cx="19.5" cy="4.5" r="4.5" fill="#000" />
|
||||
</mask>
|
||||
<g mask={`url(#${id})`}>{paths(P.Trash)}</g>
|
||||
<circle cx="19.5" cy="4.5" r="3" />
|
||||
</Svg>
|
||||
);
|
||||
}
|
||||
|
||||
export const TagIcon = icon(
|
||||
// Favoris : étoile pleine (favori) ou évidée (pas favori), même silhouette.
|
||||
export const StarFilledIcon = pap(P.Star);
|
||||
export function StarIcon({ size }: IconProps) {
|
||||
const id = useMaskId();
|
||||
return (
|
||||
<Svg size={size}>
|
||||
<mask id={id}>
|
||||
<rect width="24" height="24" fill="#fff" />
|
||||
<g fill="#000" transform="translate(12 13) scale(0.45) translate(-12 -13)">
|
||||
{paths(P.Star)}
|
||||
</g>
|
||||
</mask>
|
||||
<g mask={`url(#${id})`}>{paths(P.Star)}</g>
|
||||
</Svg>
|
||||
);
|
||||
}
|
||||
|
||||
// Actions sans équivalent dans Papicons.
|
||||
export const RefreshIcon = line(
|
||||
<>
|
||||
<circle cx="8.5" cy="8.5" r="1" />
|
||||
<path d="M4 7v3.86a2 2 0 0 0 .59 1.41l7.71 7.71a2.4 2.4 0 0 0 3.4 0l4.27-4.27a2.4 2.4 0 0 0 0-3.4L12.26 4.59A2 2 0 0 0 10.85 4H7a3 3 0 0 0-3 3z" />
|
||||
<path d="M19.5 10.5A7.8 7.8 0 0 0 5 8.5M4.5 4.5v4h4" />
|
||||
<path d="M4.5 13.5A7.8 7.8 0 0 0 19 15.5m.5 4v-4h-4" />
|
||||
</>,
|
||||
);
|
||||
|
||||
export const ShareIcon = icon(
|
||||
export const RestoreIcon = line(<path d="M9 14.5 4.5 10 9 5.5M4.5 10h11a4.5 4.5 0 1 1 0 9H14" />);
|
||||
|
||||
export const HistoryIcon = line(
|
||||
<>
|
||||
<circle cx="6" cy="12" r="3" />
|
||||
<circle cx="18" cy="6" r="3" />
|
||||
<circle cx="18" cy="18" r="3" />
|
||||
<path d="M8.7 10.7l6.6-3.4M8.7 13.3l6.6 3.4" />
|
||||
<path d="M12 8v4l2.5 2" />
|
||||
<path d="M3.5 11a8.6 8.6 0 1 1 .6 4M3.5 20v-5h5" />
|
||||
</>,
|
||||
);
|
||||
|
||||
export const EyeIcon = icon(
|
||||
export const SortIcon = line(<path d="M4 6h9M4 12h7M4 18h5M17.5 4.5v15M14.5 16.5l3 3 3-3" />);
|
||||
|
||||
export const CopyIcon = function CopyIcon({ size }: IconProps) {
|
||||
const id = useMaskId();
|
||||
return (
|
||||
<Svg size={size}>
|
||||
<mask id={id}>
|
||||
<rect width="24" height="24" fill="#fff" />
|
||||
<rect x="7" y="7" width="16" height="16" rx="5" fill="#000" />
|
||||
</mask>
|
||||
<rect x="3" y="3" width="12.5" height="12.5" rx="3.5" mask={`url(#${id})`} />
|
||||
<rect x="9" y="9" width="12" height="12" rx="3.5" />
|
||||
</Svg>
|
||||
);
|
||||
};
|
||||
|
||||
export const SaveIcon = function SaveIcon({ size }: IconProps) {
|
||||
const id = useMaskId();
|
||||
return (
|
||||
<Svg size={size}>
|
||||
<mask id={id}>
|
||||
<rect width="24" height="24" fill="#fff" />
|
||||
<rect x="7.5" y="1" width="7.5" height="6.5" rx="1.5" fill="#000" />
|
||||
<circle cx="12" cy="15" r="2.75" fill="#000" />
|
||||
</mask>
|
||||
<path mask={`url(#${id})`} d="M7 3h8.2c.8 0 1.56.32 2.12.88l2.8 2.8c.56.56.88 1.32.88 2.12V17a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V7a4 4 0 0 1 4-4z" />
|
||||
</Svg>
|
||||
);
|
||||
};
|
||||
|
||||
export const TagIcon = solid(
|
||||
<path
|
||||
fillRule="evenodd"
|
||||
clipRule="evenodd"
|
||||
d="M3 6a3 3 0 0 1 3-3h4.76a3 3 0 0 1 2.12.88l7.9 7.9a3 3 0 0 1 0 4.24l-4.76 4.76a3 3 0 0 1-4.24 0l-7.9-7.9A3 3 0 0 1 3 10.76zm5 .25a1.75 1.75 0 1 0 0 3.5 1.75 1.75 0 0 0 0-3.5z"
|
||||
/>,
|
||||
);
|
||||
|
||||
export const ShareIcon = solid(
|
||||
<>
|
||||
<circle cx="12" cy="12" r="2" />
|
||||
<path d="M22 12c-2.67 4.67-6 7-10 7s-7.33-2.33-10-7c2.67-4.67 6-7 10-7s7.33 2.33 10 7" />
|
||||
<path d="M6 12 17.5 5.5M6 12l11.5 6.5" fill="none" stroke="currentColor" strokeWidth={2.5} strokeLinecap="round" />
|
||||
<circle cx="6" cy="12" r="3.25" />
|
||||
<circle cx="17.5" cy="5.5" r="3.25" />
|
||||
<circle cx="17.5" cy="18.5" r="3.25" />
|
||||
</>,
|
||||
);
|
||||
|
||||
/** Punaise : panneau épinglé ou flottant (comme le bouton d'ancrage des panneaux d'Excalidraw). */
|
||||
export const PinIcon = icon(<path d="M15 4.5l-4 4-4 1.5-1.5 1.5 7 7 1.5-1.5 1.5-4 4-4M9 15l-4.5 4.5M14.5 4 20 9.5" />);
|
||||
export const EyeIcon = solid(
|
||||
<path
|
||||
fillRule="evenodd"
|
||||
clipRule="evenodd"
|
||||
d="M12 5c4.3 0 7.6 2.7 9.5 6.1.3.56.3 1.24 0 1.8C19.6 16.3 16.3 19 12 19s-7.6-2.7-9.5-6.1a1.9 1.9 0 0 1 0-1.8C4.4 7.7 7.7 5 12 5m0 3.5a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7m0 2a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3"
|
||||
/>,
|
||||
);
|
||||
|
||||
/** Espace personnel de l'utilisateur. */
|
||||
export const UserIcon = icon(
|
||||
/** Punaise : panneau épinglé ou flottant. */
|
||||
export const PinIcon = solid(
|
||||
<g transform="rotate(35 12 12)">
|
||||
<path d="M8.5 3h7a1.5 1.5 0 0 1 0 3H15v4l2.6 2.4c.95.88.33 2.6-1 2.6H7.4c-1.33 0-1.95-1.72-1-2.6L9 10V6h-.5a1.5 1.5 0 0 1 0-3z" />
|
||||
<path d="M12 15v6" stroke="currentColor" strokeWidth={2.5} strokeLinecap="round" />
|
||||
</g>,
|
||||
);
|
||||
|
||||
// Métadonnées des schémas (vue Galerie, panneau Détails).
|
||||
export const ClockIcon = pap(P.Clock);
|
||||
export const TextIcon = pap(P.Font);
|
||||
export const PhotoIcon = pap(P.Camera);
|
||||
export const ArrowIcon = pap(P.ArrowRightUp);
|
||||
/** Taille du fichier. */
|
||||
export const SizeIcon = pap(P.Archive);
|
||||
|
||||
export const ShapesIcon = solid(
|
||||
<>
|
||||
<circle cx="12" cy="8" r="4" />
|
||||
<path d="M6 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2" />
|
||||
<rect x="3" y="3" width="8.5" height="8.5" rx="2.5" />
|
||||
<circle cx="17" cy="17" r="4.25" />
|
||||
<path d="M15.7 3.75a1.5 1.5 0 0 1 2.6 0l3.2 5.5A1.5 1.5 0 0 1 20.2 11.5h-6.4a1.5 1.5 0 0 1-1.3-2.25z" />
|
||||
</>,
|
||||
);
|
||||
|
||||
export const LogoutIcon = icon(
|
||||
export const FrameIcon = line(<path d="M4 7.5h16M4 16.5h16M7.5 4v16M16.5 4v16" />);
|
||||
|
||||
// --- Propres à Up And Down : types de fichiers, aperçu, comptes ----------------------
|
||||
// Même esprit : Papicons quand l'équivalent existe, sinon formes pleines ou trait épais.
|
||||
|
||||
/** Feuille Papicons dont un motif est évidé (types de fichiers). */
|
||||
const page = (glyph: ReactNode) =>
|
||||
function Icon({ size, className }: IconProps) {
|
||||
const id = useMaskId();
|
||||
return (
|
||||
<Svg size={size} className={className}>
|
||||
<mask id={id}>
|
||||
<rect width="24" height="24" fill="#fff" />
|
||||
<g fill="none" stroke="#000" strokeWidth={1.6} strokeLinecap="round" strokeLinejoin="round">
|
||||
{glyph}
|
||||
</g>
|
||||
</mask>
|
||||
<g mask={`url(#${id})`}>{paths(P.Paper)}</g>
|
||||
</Svg>
|
||||
);
|
||||
};
|
||||
|
||||
export const FileTextIcon = page(<path d="M8.5 14.5h7M8.5 17.5h5" />);
|
||||
export const FileCodeIcon = page(<path d="M10.5 13.5l-2 2.25 2 2.25M13.5 13.5l2 2.25-2 2.25" />);
|
||||
export const FileZipIcon = page(
|
||||
<>
|
||||
<path d="M14 8V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2-2v-2" />
|
||||
<path d="M9 12h12l-3-3M18 15l3-3" />
|
||||
<path d="M8.5 7h1.5M8.5 9.5h1.5M8.5 12h1.5" />
|
||||
<rect x="8" y="14.5" width="3.5" height="4" rx="1" />
|
||||
</>,
|
||||
);
|
||||
export const FileMusicIcon = page(
|
||||
<>
|
||||
<circle cx="10.5" cy="17.5" r="1.4" />
|
||||
<path d="M11.9 17.5V13.5l2.6 1" />
|
||||
</>,
|
||||
);
|
||||
export const FileVideoIcon = page(<path d="M10.5 13.5v5l4-2.5z" fill="#000" />);
|
||||
export const FilePdfIcon = page(
|
||||
<path d="M8.5 18.5v-4.5h1.3a1.3 1.3 0 0 1 0 2.6H8.5M12.7 14v4.5M12.7 14h.8a1.6 1.6 0 0 1 1.6 1.6v1.3a1.6 1.6 0 0 1-1.6 1.6h-.8" />,
|
||||
);
|
||||
export const FileSheetIcon = page(<path d="M8.5 14h7M8.5 17h7M12 13v6" />);
|
||||
export const FileSlidesIcon = page(<path d="M9 18.5v-2M12 18.5v-4.5M15 18.5v-3" />);
|
||||
export const FileImageIcon = page(
|
||||
<>
|
||||
<circle cx="9.75" cy="14" r="1" fill="#000" />
|
||||
<path d="M8.5 18.5l2.75-2.5 1.75 1.5 2.5-2.5" />
|
||||
</>,
|
||||
);
|
||||
|
||||
// Vue Galerie et ses métadonnées.
|
||||
export const GalleryIcon = icon(
|
||||
export const PlayIcon = solid(<path d="M7 5.1v13.8a1.3 1.3 0 0 0 2 1.1l11-6.9a1.3 1.3 0 0 0 0-2.2L9 4a1.3 1.3 0 0 0-2 1.1z" />);
|
||||
|
||||
export const ChevronLeftIcon = line(<path d="M15 5.5 8.5 12l6.5 6.5" />);
|
||||
export const ChevronRightIcon = line(<path d="M9 5.5 15.5 12 9 18.5" />);
|
||||
export const ChevronDownIcon = line(<path d="M5.5 9 12 15.5 18.5 9" />);
|
||||
|
||||
export const LockIcon = pap(P.Lock);
|
||||
|
||||
export const KeyIcon = line(
|
||||
<>
|
||||
<rect x="3" y="4" width="8" height="7" rx="1.5" />
|
||||
<rect x="13" y="4" width="8" height="7" rx="1.5" />
|
||||
<path d="M3 15h8M3 19h5M13 15h8M13 19h5" />
|
||||
<circle cx="8" cy="15.5" r="3.75" />
|
||||
<path d="M10.75 12.75 19 4.5M16.5 7l2.5 2.5M14 9.5l2 2" />
|
||||
</>,
|
||||
);
|
||||
|
||||
export const ClockIcon = icon(
|
||||
export const UsersIcon = solid(
|
||||
<>
|
||||
<circle cx="12" cy="12" r="9" />
|
||||
<path d="M12 7v5l3 3" />
|
||||
<circle cx="9" cy="7.75" r="3.75" />
|
||||
<path d="M2.5 19a5.5 5.5 0 0 1 5.5-5.5h2a5.5 5.5 0 0 1 5.5 5.5v.5a1.5 1.5 0 0 1-1.5 1.5H4a1.5 1.5 0 0 1-1.5-1.5z" />
|
||||
<circle cx="16.5" cy="7.25" r="3" />
|
||||
<path d="M17 13.5h.5A4.5 4.5 0 0 1 22 18v1a1.5 1.5 0 0 1-1.5 1.5h-3.2c.13-.33.2-.69.2-1.07V19c0-2.1-.9-4-2.3-5.3.6-.13 1.2-.2 1.8-.2z" />
|
||||
</>,
|
||||
);
|
||||
|
||||
export const ShapesIcon = icon(
|
||||
export const ShieldIcon = solid(
|
||||
<path d="M11.3 2.7a2 2 0 0 1 1.4 0l6.5 2.4c.8.3 1.3 1 1.3 1.9V12c0 4.6-3.3 8.4-8 9.4a2.4 2.4 0 0 1-1 0c-4.7-1-8-4.8-8-9.4V7c0-.9.5-1.6 1.3-1.9z" />,
|
||||
);
|
||||
|
||||
export const CheckIcon = line(<path d="M5 12.5l4.5 4.5L19 7.5" />);
|
||||
|
||||
export const PlusIcon = pap(P.Add);
|
||||
|
||||
export const HomeIcon = solid(
|
||||
<path d="M10.6 3.6a2 2 0 0 1 2.8 0l7 6.6c.4.38.6.9.6 1.45V18a3 3 0 0 1-3 3h-3v-5a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v5H6a3 3 0 0 1-3-3v-6.35c0-.55.22-1.07.6-1.45z" />,
|
||||
);
|
||||
|
||||
export const TableIcon = line(
|
||||
<>
|
||||
<rect x="3" y="3" width="8" height="8" rx="1" />
|
||||
<circle cx="17" cy="17" r="4" />
|
||||
<path d="M17 3l4 7h-8z" />
|
||||
<rect x="3.5" y="4.5" width="17" height="15" rx="3" />
|
||||
<path d="M3.5 10h17M10 10v9.5" />
|
||||
</>,
|
||||
);
|
||||
|
||||
export const TextIcon = icon(<path d="M6 4h12M12 4v16M9 20h6" />);
|
||||
const cloud = "M7 19.5a5 5 0 0 1-.6-9.96 6.5 6.5 0 0 1 12.4 1.56A4.25 4.25 0 0 1 17.5 19.5z";
|
||||
export const CloudIcon = solid(<path d={cloud} />);
|
||||
/** Nuage avec une flèche vers le haut évidée : logo par défaut. */
|
||||
export function CloudUpIcon({ size, className }: IconProps) {
|
||||
const id = useMaskId();
|
||||
return (
|
||||
<Svg size={size} className={className}>
|
||||
<mask id={id}>
|
||||
<rect width="24" height="24" fill="#fff" />
|
||||
<path d="M12 17v-5.5M9.25 14 12 11.25 14.75 14" fill="none" stroke="#000" strokeWidth={2.25} strokeLinecap="round" strokeLinejoin="round" />
|
||||
</mask>
|
||||
<path d={cloud} mask={`url(#${id})`} />
|
||||
</Svg>
|
||||
);
|
||||
}
|
||||
|
||||
export const PhotoIcon = icon(
|
||||
<>
|
||||
<rect x="3" y="4" width="18" height="16" rx="2" />
|
||||
<circle cx="9" cy="10" r="1.5" />
|
||||
<path d="M21 16l-5-5-8 9" />
|
||||
</>,
|
||||
);
|
||||
export const ExpandIcon = line(<path d="M4.5 9.5v-5h5M19.5 9.5v-5h-5M4.5 14.5v5h5M19.5 14.5v5h-5" />);
|
||||
|
||||
export const FrameIcon = icon(<path d="M4 7h16M4 17h16M7 4v16M17 4v16" />);
|
||||
export const CopyLinkIcon = CopyIcon;
|
||||
|
||||
export const ArrowIcon = icon(<path d="M5 19 19 5M10 5h9v9" />);
|
||||
|
||||
export const SizeIcon = icon(
|
||||
<>
|
||||
<path d="M6 4h10l4 4v10a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z" />
|
||||
<path d="M8 4v5h7V4M8 20v-6h8v6" />
|
||||
</>,
|
||||
);
|
||||
|
||||
export const SortIcon = icon(<path d="M4 6h9M4 12h7M4 18h5M17 4v16M14 17l3 3 3-3" />);
|
||||
|
||||
export const InfoIcon = icon(
|
||||
<>
|
||||
<circle cx="12" cy="12" r="9" />
|
||||
<path d="M12 8v.01M11 12h1v4h1" />
|
||||
</>,
|
||||
);
|
||||
|
||||
export const LinkIcon = icon(
|
||||
<path d="M9 15l6-6M11 6l.46-.54a5 5 0 0 1 7.07 7.07l-.53.47M13 18l-.4.53a5 5 0 0 1-7.07-7.07L6 11" />,
|
||||
);
|
||||
|
||||
// --- Types de fichiers, aperçu, comptes ---------------------------------------------
|
||||
|
||||
const page = <path d="M14 3v4a1 1 0 0 0 1 1h4M17 21H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7l5 5v11a2 2 0 0 1-2 2z" />;
|
||||
|
||||
export const FileTextIcon = icon(
|
||||
<>
|
||||
{page}
|
||||
<path d="M9 9h1M9 13h6M9 17h6" />
|
||||
</>,
|
||||
);
|
||||
|
||||
export const FileCodeIcon = icon(
|
||||
<>
|
||||
{page}
|
||||
<path d="M10 13l-2 2 2 2M14 13l2 2-2 2" />
|
||||
</>,
|
||||
);
|
||||
|
||||
export const FileZipIcon = icon(
|
||||
<>
|
||||
{page}
|
||||
<path d="M11 4h2M11 7h2M11 10h2M11 13h2" />
|
||||
<rect x="10" y="15" width="4" height="4" rx="1" />
|
||||
</>,
|
||||
);
|
||||
|
||||
export const FileMusicIcon = icon(
|
||||
<>
|
||||
{page}
|
||||
<circle cx="10" cy="17" r="1.5" />
|
||||
<path d="M11.5 17v-5l3 1" />
|
||||
</>,
|
||||
);
|
||||
|
||||
export const FileVideoIcon = icon(
|
||||
<>
|
||||
{page}
|
||||
<path d="M10 12.5v5l4-2.5z" />
|
||||
</>,
|
||||
);
|
||||
|
||||
export const FilePdfIcon = icon(
|
||||
<>
|
||||
{page}
|
||||
<path d="M8 17v-4h1.5a1.2 1.2 0 0 1 0 2.4H8M12.5 13v4M12.5 13h1a1.5 1.5 0 0 1 1.5 1.5v1a1.5 1.5 0 0 1-1.5 1.5h-1" />
|
||||
</>,
|
||||
);
|
||||
|
||||
export const FileSheetIcon = icon(
|
||||
<>
|
||||
{page}
|
||||
<path d="M8 12h8M8 15h8M8 18h8M11 12v6" />
|
||||
</>,
|
||||
);
|
||||
|
||||
export const FileSlidesIcon = icon(
|
||||
<>
|
||||
{page}
|
||||
<path d="M8 18v-3M12 18v-6M16 18v-4" />
|
||||
</>,
|
||||
);
|
||||
|
||||
export const FileImageIcon = icon(
|
||||
<>
|
||||
{page}
|
||||
<circle cx="10" cy="12" r="1.2" />
|
||||
<path d="M17 17l-3-3-5 4" />
|
||||
</>,
|
||||
);
|
||||
|
||||
export const PlayIcon = icon(<path d="M7 4v16l13-8z" />);
|
||||
|
||||
export const ChevronLeftIcon = icon(<path d="M15 6l-6 6 6 6" />);
|
||||
export const ChevronRightIcon = icon(<path d="M9 6l6 6-6 6" />);
|
||||
export const ChevronDownIcon = icon(<path d="M6 9l6 6 6-6" />);
|
||||
|
||||
export const LockIcon = icon(
|
||||
<>
|
||||
<rect x="5" y="11" width="14" height="10" rx="2" />
|
||||
<path d="M8 11V7a4 4 0 0 1 8 0v4M12 15v2" />
|
||||
</>,
|
||||
);
|
||||
|
||||
export const KeyIcon = icon(
|
||||
<>
|
||||
<circle cx="8" cy="15" r="4" />
|
||||
<path d="M10.85 12.15L19 4M18 5l2 2M15 8l2 2" />
|
||||
</>,
|
||||
);
|
||||
|
||||
export const UsersIcon = icon(
|
||||
<>
|
||||
<circle cx="9" cy="8" r="3.5" />
|
||||
<path d="M3 20v-1a5 5 0 0 1 5-5h2a5 5 0 0 1 5 5v1M16 4.6a3.5 3.5 0 0 1 0 6.8M21 20v-1a5 5 0 0 0-3.5-4.7" />
|
||||
</>,
|
||||
);
|
||||
|
||||
export const ShieldIcon = icon(<path d="M12 3l8 3v6c0 4.5-3.2 8-8 9-4.8-1-8-4.5-8-9V6z" />);
|
||||
|
||||
export const CheckIcon = icon(<path d="M5 12l5 5L20 7" />);
|
||||
|
||||
export const PlusIcon = icon(<path d="M12 5v14M5 12h14" />);
|
||||
|
||||
export const HomeIcon = icon(
|
||||
<>
|
||||
<path d="M5 12H3l9-9 9 9h-2" />
|
||||
<path d="M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-7M9 21v-6a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v6" />
|
||||
</>,
|
||||
);
|
||||
|
||||
export const TableIcon = icon(
|
||||
<>
|
||||
<rect x="3" y="4" width="18" height="16" rx="2" />
|
||||
<path d="M3 10h18M3 15h18M10 4v16" />
|
||||
</>,
|
||||
);
|
||||
|
||||
export const CloudIcon = icon(<path d="M7 18a4.5 4.5 0 0 1-.5-9 6 6 0 0 1 11.4 1.5A3.5 3.5 0 0 1 17.5 18z" />);
|
||||
|
||||
export const CloudUpIcon = icon(
|
||||
<>
|
||||
<path d="M7 18a4.5 4.5 0 0 1-.5-9 6 6 0 0 1 11.4 1.5A3.5 3.5 0 0 1 17.5 18" />
|
||||
<path d="M9 14l3-3 3 3M12 11v9" />
|
||||
</>,
|
||||
);
|
||||
|
||||
export const ExpandIcon = icon(<path d="M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5" />);
|
||||
|
||||
export const CopyLinkIcon = icon(
|
||||
<>
|
||||
<rect x="9" y="9" width="11" height="11" rx="2" />
|
||||
<path d="M5 15V6a2 2 0 0 1 2-2h9" />
|
||||
</>,
|
||||
);
|
||||
|
||||
export const WarningIcon = icon(
|
||||
<>
|
||||
<path d="M12 3l10 18H2z" />
|
||||
<path d="M12 10v5M12 18v.01" />
|
||||
</>,
|
||||
);
|
||||
export function WarningIcon({ size, className }: IconProps) {
|
||||
const id = useMaskId();
|
||||
return (
|
||||
<Svg size={size} className={className}>
|
||||
<mask id={id}>
|
||||
<rect width="24" height="24" fill="#fff" />
|
||||
<path d="M12 9.5v4" stroke="#000" strokeWidth={2.25} strokeLinecap="round" />
|
||||
<circle cx="12" cy="17" r="1.25" fill="#000" />
|
||||
</mask>
|
||||
<path mask={`url(#${id})`} d="M10.27 3.98a2 2 0 0 1 3.46 0l8.02 13.9A2 2 0 0 1 20.02 21H3.98a2 2 0 0 1-1.73-3.12z" />
|
||||
</Svg>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,156 @@
|
||||
// Tracés extraits de Papicons 0.2.3 (@getpapillon/papicons, https://github.com/PapillonApp/papicons),
|
||||
// icônes de Tom Things pour Papillon. Licence MIT, (c) 2025 Association Papillon : voir THIRD_PARTY_NOTICES.md.
|
||||
// Grille 24 x 24, formes pleines. Seules les icônes utilisées par Excalicloud sont reprises.
|
||||
|
||||
export type PapPath = { d: string; evenodd?: boolean };
|
||||
|
||||
export const Add: PapPath[] = [
|
||||
{ d: "M20.414 10.515c.375.374.586.916.586 1.485s-.21 1.112-.585 1.486a1.8 1.8 0 0 1-1.415.515l-.35-.025-5.035-.36.36 5.035.026.349c.038.53-.14 1.04-.515 1.415-.374.375-.917.585-1.486.585s-1.111-.211-1.485-.586A1.79 1.79 0 0 1 10 19.001l.026-.35.36-5.036-5.037.36L5 14a1.79 1.79 0 0 1-1.413-.515C3.21 13.111 3 12.57 3 12s.21-1.112.585-1.486A1.8 1.8 0 0 1 5 10l.35.024 5.034.36L10 5c-.039-.53.138-1.04.514-1.415C10.888 3.21 11.431 3 12 3s1.111.211 1.485.586c.376.375.553.883.515 1.413l-.026.35-.359 5.036 5.036-.36L19 10a1.79 1.79 0 0 1 1.413.515" },
|
||||
];
|
||||
|
||||
export const Archive: PapPath[] = [
|
||||
{ d: "M12.935 9.076c3.192-.1 4.79-.15 5.381.368.066.057.089.08.148.144.536.576.536 1.92.536 4.605 0 2.641 0 3.962-.774 4.819a3 3 0 0 1-.214.214c-.857.774-2.178.774-4.819.774h-2.386c-2.641 0-3.962 0-4.819-.774a3 3 0 0 1-.214-.214C5 18.155 5 16.834 5 14.193c0-2.686 0-4.03.536-4.605.06-.064.082-.087.148-.144.592-.517 2.189-.468 5.381-.368a30 30 0 0 0 1.87 0M12 12c-.713 0-1.275.017-1.695.037C9.668 12.068 9 12.363 9 13s.668.932 1.305.963c.42.02.982.037 1.695.037s1.275-.017 1.695-.037C14.332 13.932 15 13.637 15 13s-.668-.932-1.305-.963A35 35 0 0 0 12 12m6.65-8c.745 0 1.35.605 1.35 1.35 0 .663-.48 1.224-1.138 1.297C17.547 6.795 15.151 7 12 7c-3.15 0-5.546-.205-6.862-.353A1.29 1.29 0 0 1 4 5.351C4 4.605 4.605 4 5.35 4z" },
|
||||
];
|
||||
|
||||
export const ArrowDownBox: PapPath[] = [
|
||||
{ d: "M21 12c0 1.483-.072 2.748-.178 3.805-.274 2.723-2.293 4.743-5.016 5.016a38 38 0 0 1-3.806.18c-1.483 0-2.748-.073-3.805-.18-2.723-.273-4.742-2.293-5.016-5.016A38 38 0 0 1 3 12c0-1.483.073-2.749.179-3.806.274-2.722 2.294-4.741 5.016-5.015A38 38 0 0 1 12 3c1.483 0 2.75.073 3.806.179 2.723.274 4.742 2.293 5.016 5.015C20.928 9.251 21 10.517 21 12m-4.122.828a1 1 0 1 0-1.414-1.414l-2.366 2.367.268-5.228.017-.322a1.23 1.23 0 0 0-.355-.944c-.25-.25-.606-.39-.978-.39s-.728.14-.978.39-.373.59-.355.944l.017.322.26 5.046-2.185-2.185a1 1 0 0 0-1.414 1.414l4.034 4.035c.39.39 1.024.39 1.415 0z", evenodd: true },
|
||||
];
|
||||
|
||||
export const ArrowLeftUp: PapPath[] = [
|
||||
{ d: "M4.5 15a1.5 1.5 0 0 0 3 0V9.621l9.44 9.44a1.5 1.5 0 1 0 2.12-2.122L9.622 7.5h5.38a1.5 1.5 0 0 0 0-3H6A1.5 1.5 0 0 0 4.5 6z" },
|
||||
];
|
||||
|
||||
export const ArrowRightBox: PapPath[] = [
|
||||
{ d: "M12 3c1.483 0 2.748.073 3.805.179 2.723.274 4.743 2.293 5.017 5.015C20.928 9.251 21 10.517 21 12s-.072 2.748-.178 3.805c-.274 2.723-2.294 4.743-5.017 5.016a38 38 0 0 1-3.805.18c-1.483 0-2.749-.073-3.805-.18-2.723-.274-4.742-2.293-5.016-5.016A38 38 0 0 1 3 12c0-1.483.073-2.749.179-3.806.274-2.722 2.293-4.741 5.016-5.015A38 38 0 0 1 12 3m.828 4.122a1 1 0 1 0-1.414 1.414l2.367 2.367-5.228-.27-.322-.016a1.23 1.23 0 0 0-.944.356c-.25.25-.39.606-.39.977 0 .372.14.728.39.978s.59.374.944.355l.322-.016 5.046-.261-2.185 2.185a1 1 0 0 0 1.414 1.415l4.035-4.035c.391-.39.391-1.024 0-1.415z", evenodd: true },
|
||||
];
|
||||
|
||||
export const ArrowRightUp: PapPath[] = [
|
||||
{ d: "M19.5 15a1.5 1.5 0 0 1-3 0V9.621l-9.44 9.44a1.5 1.5 0 1 1-2.12-2.122L14.378 7.5H9a1.5 1.5 0 1 1 0-3h9A1.5 1.5 0 0 1 19.5 6z" },
|
||||
];
|
||||
|
||||
export const ArrowUpBox: PapPath[] = [
|
||||
{ d: "M21 12c0-1.483-.072-2.748-.178-3.805-.274-2.722-2.293-4.742-5.016-5.016A38 38 0 0 0 12 3c-1.483 0-2.748.073-3.805.179-2.723.274-4.742 2.293-5.016 5.016A38 38 0 0 0 3 12c0 1.483.073 2.75.179 3.806.274 2.723 2.294 4.742 5.016 5.015 1.057.107 2.322.18 3.805.18a38 38 0 0 0 3.806-.18c2.723-.274 4.742-2.292 5.016-5.015.106-1.057.178-2.323.178-3.806m-4.122-.828a1 1 0 0 1-1.414 1.414l-2.366-2.367.268 5.228.017.323c.018.353-.105.693-.355.943s-.606.39-.978.39-.728-.14-.978-.39-.373-.59-.355-.943l.017-.323.26-5.045-2.185 2.184a1 1 0 0 1-1.414-1.414l4.034-4.035c.39-.39 1.024-.39 1.415 0z", evenodd: true },
|
||||
];
|
||||
|
||||
export const Calendar: PapPath[] = [
|
||||
{ d: "M3 6.125C3 4.399 4.4 3 6.125 3h11.75C19.601 3 21 4.4 21 6.125 21 7.161 20.16 8 19.125 8H4.875A1.875 1.875 0 0 1 3 6.125M18.174 10.005a3 3 0 0 1 2.821 2.821c.003.048.002.101.002.174H17a4 4 0 0 0-4 4v3.99c-.373.009-.804.01-1.313.01h-2.4c-2.133 0-3.2 0-4.022-.396a4 4 0 0 1-1.869-1.869C3 17.913 3 16.846 3 14.714c0-1.6 0-2.399.297-3.016a3 3 0 0 1 1.401-1.401C5.315 10 6.115 10 7.714 10h10.065c.205 0 .308 0 .395.005" },
|
||||
{ d: "M17 15h3.64c-.181.397-.426.766-.73 1.089-.04.042-.083.084-.168.169l-2.4 2.4c-1.087 1.087-1.665 1.66-2.342 1.978V17a2 2 0 0 1 1.796-1.99z" },
|
||||
];
|
||||
|
||||
export const Camera: PapPath[] = [
|
||||
{ d: "M12 11a2 2 0 1 1 0 4 2 2 0 0 1 0-4" },
|
||||
{ d: "M12 4c1.73 0 3.103.853 3.963 2.153l-.102-.01c2.674.213 4.812 2.038 5.048 4.71A24 24 0 0 1 21 13a24 24 0 0 1-.09 2.148c-.237 2.671-2.375 4.496-5.049 4.708A49 49 0 0 1 12 20c-1.51 0-2.793-.058-3.861-.144-2.674-.213-4.812-2.037-5.048-4.709A24 24 0 0 1 3 13c0-.796.035-1.51.09-2.148.237-2.671 2.375-4.496 5.049-4.708q-.052.003-.103.01C8.896 4.851 10.27 4 12 4m0 5a4 4 0 1 0 0 8 4 4 0 0 0 0-8", evenodd: true },
|
||||
];
|
||||
|
||||
export const Clock: PapPath[] = [
|
||||
{ d: "M12 3a9 9 0 1 1 0 18 9 9 0 0 1 0-18m0 3a1 1 0 0 0-1 1v3.93c0 .334-.167.647-.445.832l-2.11 1.406a1 1 0 0 0 1.11 1.665l2.11-1.407A3 3 0 0 0 13 10.93V7a1 1 0 0 0-1-1", evenodd: true },
|
||||
];
|
||||
|
||||
export const Code: PapPath[] = [
|
||||
{ d: "M7.898 4.009c.52-.104 1.088.021 1.56.336s.806.79.91 1.31-.03 1.043-.355 1.463l-.221.286-3.553 4.605 3.553 4.604.22.287c.326.42.46.942.355 1.462-.103.52-.437.996-.909 1.31-.472.316-1.04.441-1.56.337a1.8 1.8 0 0 1-1.213-.89l-.18-.314q-1.612-2.826-3.226-5.65l-.178-.314a1.44 1.44 0 0 1-.182-.615v-.436a1.44 1.44 0 0 1 .182-.613l.178-.314 3.226-5.65.18-.313a1.8 1.8 0 0 1 1.213-.891M13.94 4.345c.472-.315 1.04-.44 1.559-.336.52.104.95.429 1.214.89l.18.314 3.225 5.65.179.314c.141.248.2.54.181.83.02.293-.04.585-.181.834l-.179.313-3.225 5.65-.18.314a1.8 1.8 0 0 1-1.214.89c-.52.105-1.087-.02-1.56-.335-.472-.315-.805-.791-.909-1.31-.104-.52.03-1.043.355-1.463l.22-.287 3.553-4.604-3.553-4.605-.22-.286a1.8 1.8 0 0 1-.355-1.463c.104-.52.437-.995.91-1.31" },
|
||||
];
|
||||
|
||||
export const Cross: PapPath[] = [
|
||||
{ d: "M17.958 3.958c.53 0 1.059.23 1.456.628.397.397.628.926.628 1.456s-.23 1.02-.628 1.372l-.317.282L14.253 12l4.844 4.304.317.282c.397.353.628.841.628 1.372 0 .53-.23 1.059-.628 1.456-.397.397-.926.628-1.456.628s-1.02-.23-1.372-.628l-.282-.317L12 14.253l-4.304 4.844-.282.317a1.82 1.82 0 0 1-1.372.628c-.53 0-1.059-.23-1.456-.628-.398-.397-.628-.926-.628-1.456s.23-1.02.628-1.372l.317-.282L9.746 12 4.903 7.696l-.317-.282a1.82 1.82 0 0 1-.628-1.372c0-.53.23-1.059.628-1.456.397-.398.926-.628 1.456-.628s1.02.23 1.372.628l.282.317L12 9.746l4.304-4.843.282-.317a1.82 1.82 0 0 1 1.372-.628" },
|
||||
];
|
||||
|
||||
export const Dots: PapPath[] = [
|
||||
{ d: "M10 12a2 2 0 1 1 4 0 2 2 0 0 1-4 0M10 6a2 2 0 1 1 4 0 2 2 0 0 1-4 0M10 18a2 2 0 1 1 4 0 2 2 0 0 1-4 0" },
|
||||
];
|
||||
|
||||
export const Folder: PapPath[] = [
|
||||
{ d: "M18.295 12c1.462 0 2.194 0 2.618.373.19.166.334.378.42.614.193.531-.073 1.213-.603 2.575-.71 1.822-1.066 2.733-1.725 3.353a4 4 0 0 1-1.018.695c-.816.39-1.795.39-3.75.39H9.831c-1.945 0-2.917 0-3.727-.382a4 4 0 0 1-1.12-.787c-.634-.633-.964-1.548-1.624-3.378-.468-1.3-.702-1.952-.521-2.459a1.5 1.5 0 0 1 .458-.651C3.714 12 4.405 12 5.788 12zM8.7 4c.484 0 .726 0 .947.05a2 2 0 0 1 1.063.638c.148.171.262.385.49.812s.341.64.49.812a2 2 0 0 0 1.063.637c.22.05.463.051.947.051H17a3 3 0 0 1 3 3H4V8.571c0-1.464 0-2.197.25-2.77A3 3 0 0 1 5.8 4.25C6.374 4 7.106 4 8.57 4z" },
|
||||
];
|
||||
|
||||
export const Font: PapPath[] = [
|
||||
{ d: "M8.303 5.71c1.362-3.297 6.032-3.297 7.394 0l2.29 5.542 2.817 5.885a2 2 0 1 1-3.608 1.726l-.878-1.834H7.682l-.878 1.834a2 2 0 1 1-3.608-1.726l2.816-5.885zm1.39 7.112-.022.051-.024.049-.051.107h4.808l-.052-.107-.023-.049-.021-.05L12 7.236z" },
|
||||
];
|
||||
|
||||
export const Gallery: PapPath[] = [
|
||||
{ d: "M12 3c1.483 0 2.748.072 3.805.179 2.723.273 4.743 2.293 5.016 5.016C20.927 9.252 21 10.517 21 12s-.073 2.748-.179 3.805c-.274 2.723-2.293 4.743-5.016 5.016A38 38 0 0 1 12 21c-1.483 0-2.748-.073-3.805-.179-2.723-.274-4.743-2.293-5.016-5.016A38 38 0 0 1 3 12c0-1.483.072-2.748.179-3.805.273-2.723 2.293-4.743 5.016-5.016A38 38 0 0 1 12 3M9.842 13.212a2 2 0 0 0-2.683 0l-1.628 1.47a1.1 1.1 0 0 0-.362.923c.179 1.777 1.45 3.047 3.226 3.226.988.1 2.187.169 3.605.169s2.617-.07 3.605-.169c1.217-.122 2.195-.758 2.747-1.717.357-.617.082-1.366-.447-1.844l-.063-.058a2 2 0 0 0-2.683 0l-.212.191a2 2 0 0 1-2.681 0zM15 7a2 2 0 1 0 0 4 2 2 0 0 0 0-4" },
|
||||
];
|
||||
|
||||
export const Gears: PapPath[] = [
|
||||
{ d: "M12 3c.593 0 1.309.202 1.892.412.66.238.99.948.822 1.63l-.183.746c-.098.4.114.809.47 1.016.357.207.814.184 1.112-.102l.555-.531c.508-.486 1.287-.557 1.824-.104.473.4 1.006.92 1.302 1.433.297.514.48 1.235.59 1.845.124.69-.328 1.33-1.002 1.527l-.739.215c-.396.115-.643.5-.643.913 0 .412.246.797.642.913l.741.216c.674.197 1.125.835 1 1.526-.11.61-.292 1.331-.589 1.845-.296.514-.829 1.032-1.302 1.433-.537.453-1.316.383-1.824-.103l-.555-.532c-.298-.286-.754-.31-1.112-.103-.356.207-.569.616-.47 1.016l.183.747c.167.682-.161 1.393-.822 1.63-.583.21-1.3.412-1.892.412-.594 0-1.309-.201-1.892-.411-.66-.238-.99-.949-.822-1.631l.182-.748c.098-.4-.114-.809-.47-1.015-.358-.206-.814-.183-1.112.103l-.554.532c-.508.486-1.288.556-1.824.103-.473-.4-1.006-.92-1.302-1.433-.297-.514-.48-1.235-.59-1.845-.125-.69.327-1.33 1-1.526l.74-.216c.396-.115.644-.5.644-.913 0-.412-.248-.798-.644-.913l-.74-.215c-.673-.196-1.124-.836-1-1.527.11-.61.293-1.331.59-1.845.296-.514.829-1.032 1.302-1.433.537-.453 1.316-.382 1.824.104l.554.531c.298.285.754.309 1.112.102.356-.207.568-.615.47-1.016l-.182-.746c-.167-.682.161-1.392.822-1.63.583-.21 1.298-.412 1.891-.412m0 6a3 3 0 1 0 0 6 3 3 0 0 0 0-6", evenodd: true },
|
||||
];
|
||||
|
||||
export const Globe: PapPath[] = [
|
||||
{ d: "M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2M4.74 9a.24.24 0 0 0-.22.16A8 8 0 0 0 12 20c.509 0 1-.328 1-.837a1.837 1.837 0 0 0-1.837-1.836H8.826a1.044 1.044 0 0 1 0-2.087h.043c.6 0 1.087-.486 1.087-1.087v-.51c0-.881-.714-1.596-1.596-1.596h-.358a1.523 1.523 0 0 1-1.523-1.524C6.479 9.683 5.796 9 4.955 9zm7.778-1.774a1.703 1.703 0 0 0 1.185 2.925h1.873A2.425 2.425 0 0 1 18 12.576v.924c0 .294.084.567.23.798.457.723 1.428.168 1.602-.669q.166-.79.168-1.629a7.99 7.99 0 0 0-3.654-6.717c-.679-.44-1.556-.262-2.136.3z", evenodd: true },
|
||||
];
|
||||
|
||||
export const Grid: PapPath[] = [
|
||||
{ d: "M7 13c.552 0 1.036.023 1.454.058 1.364.114 2.374 1.124 2.488 2.488.035.418.058.902.058 1.454s-.023 1.036-.058 1.454c-.114 1.363-1.124 2.374-2.488 2.488C8.036 20.977 7.552 21 7 21s-1.036-.023-1.454-.058c-1.364-.114-2.374-1.125-2.488-2.488A17 17 0 0 1 3 17c0-.552.023-1.036.058-1.454.114-1.364 1.124-2.374 2.488-2.488C5.964 13.023 6.448 13 7 13M17 13c.552 0 1.036.023 1.454.058 1.363.114 2.374 1.124 2.488 2.488.035.418.058.902.058 1.454s-.023 1.036-.058 1.454c-.114 1.363-1.125 2.374-2.488 2.488-.418.035-.902.058-1.454.058s-1.036-.023-1.454-.058c-1.364-.114-2.374-1.125-2.488-2.488A18 18 0 0 1 13 17c0-.552.023-1.036.058-1.454.114-1.364 1.124-2.374 2.488-2.488.418-.035.902-.058 1.454-.058M7 3c.552 0 1.036.023 1.454.058 1.364.114 2.374 1.124 2.488 2.488.035.418.058.902.058 1.454s-.023 1.036-.058 1.454c-.114 1.364-1.124 2.374-2.488 2.488C8.036 10.977 7.552 11 7 11s-1.036-.023-1.454-.058c-1.364-.114-2.374-1.124-2.488-2.488A17 17 0 0 1 3 7c0-.552.023-1.036.058-1.454.114-1.364 1.124-2.374 2.488-2.488C5.964 3.023 6.448 3 7 3M17 3c.552 0 1.036.023 1.454.058 1.363.114 2.374 1.124 2.488 2.488.035.418.058.902.058 1.454s-.023 1.036-.058 1.454c-.114 1.364-1.125 2.374-2.488 2.488-.418.035-.902.058-1.454.058s-1.036-.023-1.454-.058c-1.364-.114-2.374-1.124-2.488-2.488A18 18 0 0 1 13 7c0-.552.023-1.036.058-1.454.114-1.364 1.124-2.374 2.488-2.488C15.964 3.023 16.448 3 17 3" },
|
||||
];
|
||||
|
||||
export const Info: PapPath[] = [
|
||||
{ d: "M12 3c1.483 0 2.748.073 3.805.179 2.723.274 4.743 2.293 5.017 5.015C20.928 9.251 21 10.517 21 12s-.072 2.748-.178 3.805c-.274 2.723-2.294 4.743-5.017 5.016a38 38 0 0 1-3.805.18c-1.483 0-2.749-.073-3.805-.18-2.723-.274-4.742-2.293-5.016-5.016A38 38 0 0 1 3 12c0-1.483.073-2.749.179-3.806.274-2.722 2.293-4.741 5.016-5.015A38 38 0 0 1 12 3m0 8a1 1 0 0 0-1 1v5a1 1 0 1 0 2 0v-5a1 1 0 0 0-1-1m0-4a1 1 0 1 0 0 2 1 1 0 0 0 0-2", evenodd: true },
|
||||
];
|
||||
|
||||
export const Link: PapPath[] = [
|
||||
{ d: "M9.415 10.429a1.5 1.5 0 0 1 2.12 2.12 10 10 0 0 0-.223.231c-.56.6-.606 1.602.24 2.546q.528.593 1.276 1.344.476.475.888.86c1.203 1.123 2.568 1.096 3.232.432.606-.606.867-1.051.975-1.33.1-.258.075-.384.067-.42a.3.3 0 0 0-.092-.155l-.007-.008.012.01.017.011.012.01q.003.001.006.004l.005.002a1.5 1.5 0 0 1 1.653-2.503l-.58.882c.553-.84.58-.88.582-.881l.002.002.005.003.01.006q.008.007.02.014l.05.037q.057.041.134.105a3.32 3.32 0 0 1 1.09 1.775c.327 1.389-.222 2.94-1.839 4.557-2.274 2.274-5.565 1.352-7.4-.36a39 39 0 0 1-2.354-2.396c-1.571-1.755-2.108-4.55-.194-6.597q.139-.149.293-.301" },
|
||||
{ d: "M5.981 4.112c2.274-2.274 5.566-1.35 7.4.362a39 39 0 0 1 2.353 2.395c1.572 1.755 2.11 4.55.196 6.596q-.14.15-.293.303a1.5 1.5 0 0 1-2.122-2.122q.119-.117.224-.23c.561-.6.606-1.602-.24-2.546a35.758 35.758 0 0 0-2.165-2.203c-1.203-1.123-2.566-1.097-3.23-.433-.606.606-.867 1.051-.975 1.33-.1.257-.076.383-.068.42a.3.3 0 0 0 .092.156l.007.008q0-.001-.012-.01l-.016-.013-.013-.008-.006-.005-.005-.002a1.5 1.5 0 0 1-1.653 2.502l.58-.881c-.552.837-.58.88-.582.881l-.002-.002-.005-.002-.009-.007-.02-.014-.051-.036a3.263 3.263 0 0 1-.496-.462A3.3 3.3 0 0 1 4.14 8.67c-.325-1.389.223-2.94 1.84-4.558" },
|
||||
];
|
||||
|
||||
export const List: PapPath[] = [
|
||||
{ d: "M12 3c1.483 0 2.748.073 3.805.179 2.723.273 4.742 2.293 5.016 5.015C20.927 9.251 21 10.517 21 12s-.073 2.748-.179 3.805c-.274 2.723-2.293 4.743-5.016 5.016A38 38 0 0 1 12 21c-1.483 0-2.749-.073-3.806-.179-2.722-.274-4.742-2.293-5.015-5.016A38 38 0 0 1 3 12c0-1.483.072-2.749.179-3.806.274-2.722 2.293-4.741 5.015-5.015A38 38 0 0 1 12 3m-.5 12c-1.31 0-2.281.025-2.937.052C7.86 15.08 7 15.298 7 16s.86.92 1.563.948c.656.027 1.626.052 2.937.052s2.281-.025 2.938-.052C15.139 16.92 16 16.702 16 16s-.86-.92-1.562-.948A74 74 0 0 0 11.5 15m-1-4c-.91 0-1.609.02-2.111.043-.657.03-1.389.3-1.389.957 0 .658.732.927 1.389.957C8.89 12.98 9.59 13 10.5 13s1.609-.02 2.111-.043c.657-.03 1.389-.3 1.389-.957 0-.658-.732-.927-1.389-.957A46 46 0 0 0 10.5 11M12 7a90 90 0 0 0-3.347.055C7.927 7.082 7 7.274 7 8s.927.918 1.653.945C9.383 8.973 10.487 9 12 9s2.617-.027 3.347-.055C16.073 8.918 17 8.726 17 8s-.927-.918-1.653-.945A90 90 0 0 0 12 7" },
|
||||
];
|
||||
|
||||
export const Lock: PapPath[] = [
|
||||
{ d: "M12.324 3.866c3.316.171 5.504 2.964 5.636 6.349q.029.78.035 1.68c.656.043 1.117.14 1.505.364a3 3 0 0 1 1.098 1.098c.402.696.402 1.63.402 3.5s0 2.804-.402 3.5a3 3 0 0 1-1.098 1.098c-.696.402-1.63.402-3.5.402H8c-1.87 0-2.804 0-3.5-.402a3 3 0 0 1-1.098-1.098C3 19.661 3 18.727 3 16.857s0-2.804.402-3.5A3 3 0 0 1 4.5 12.26c.387-.223.849-.32 1.504-.365q.002-.336.007-.655l.029-1.024C6.176 6.72 8.503 3.857 12 3.857zM12 6.857c-1.497 0-2.872 1.172-2.962 3.474q-.026.707-.033 1.526h5.99a51 51 0 0 0-.033-1.526c-.09-2.302-1.465-3.474-2.962-3.474", evenodd: true },
|
||||
];
|
||||
|
||||
export const Logout: PapPath[] = [
|
||||
{ d: "M7.5 3c1.272 0 2.281.143 3.045.321 1.234.288 2.004 1.367 2.15 2.626q.069.582.131 1.346c.065.811-.634 1.47-1.443 1.38L11 8.634c-.884-.098-1.732.167-2.357.794-.626.623-.976 1.557-.976 2.539s.35 1.916.976 2.539c.625.626 1.473.891 2.357.794l.382-.041c.81-.089 1.512.568 1.448 1.382a38 38 0 0 1-.136 1.413c-.146 1.259-.916 2.338-2.15 2.626C9.78 20.857 8.772 21 7.5 21s-2.282-.143-3.045-.321c-1.234-.288-2.004-1.367-2.15-2.626C2.152 16.74 2 14.743 2 12s.152-4.74.305-6.053c.146-1.259.916-2.338 2.15-2.626C5.218 3.143 6.228 3 7.5 3m8.396 4.384a1 1 0 0 1 1.414 0l3.773 3.773a1 1 0 0 1 0 1.414l-3.773 3.773a1 1 0 0 1-1.414-1.414L17.824 13l-6.442.281L11 13.3a1.25 1.25 0 0 1-.943-.361c-.25-.25-.39-.603-.39-.972 0-.37.14-.722.39-.972s.59-.377.943-.361l.382.016 6.655.29-2.141-2.141a1 1 0 0 1 0-1.414" },
|
||||
];
|
||||
|
||||
export const Menu: PapPath[] = [
|
||||
{ d: "M12 17c2.472 0 3.263.043 4.429.085 1.114.04 2.571.3 2.571 1.415s-1.457 1.375-2.571 1.415C15.263 19.957 14.472 20 12 20s-3.263-.043-4.429-.085C6.457 19.875 5 19.615 5 18.5s1.457-1.375 2.571-1.415C8.737 17.043 9.528 17 12 17M12 11c2.472 0 2.263.043 3.429.085 1.114.04 2.571.3 2.571 1.415s-1.457 1.375-2.571 1.415c-1.166.042-.957.085-3.429.085s-2.263-.043-3.429-.085C7.457 13.875 6 13.615 6 12.5s1.457-1.375 2.571-1.415C9.737 11.043 9.528 11 12 11M12 5c2.472 0 4.263.043 5.429.085 1.114.04 2.571.3 2.571 1.415s-1.457 1.375-2.571 1.415A152 152 0 0 1 12 8c-2.472 0-4.263-.043-5.429-.085C5.457 7.875 4 7.615 4 6.5s1.457-1.375 2.571-1.415C7.737 5.043 9.528 5 12 5" },
|
||||
];
|
||||
|
||||
export const Moon: PapPath[] = [
|
||||
{ d: "M11 3.857c.79 0 1 1.185.464 1.764a5.5 5.5 0 0 0 7.77 7.772c.58-.536 1.766-.325 1.766.464.003 4.97-4.03 8-9 8a9 9 0 0 1-9-9c0-4.97 3.03-9 8-9" },
|
||||
];
|
||||
|
||||
export const Paper: PapPath[] = [
|
||||
{ d: "M12 7.828a4 4 0 0 0 4 4c.932 0 1.398 0 1.765.152a2 2 0 0 1 1.083 1.082c.152.368.152.834.152 1.766V15c0 2.828 0 4.243-.879 5.122S15.828 21 13 21h-2c-2.828 0-4.242 0-5.121-.878C5 19.242 5 17.828 5 14.999v-4c0-2.808 0-4.212.674-5.221a4 4 0 0 1 1.103-1.104c.39-.26.837-.42 1.402-.518 1.538-.267 2.307-.401 2.99.09.073.053.165.13.23.193C12 5.028 12 5.961 12 7.828" },
|
||||
{ d: "M14 6.365c0-1.004 0-1.506.304-1.636s.666.219 1.39.915l2.792 2.688c.316.304.501.701.507 1.14.003.186-.147.356-.334.356H16l-.204-.011A2 2 0 0 1 14 7.827z" },
|
||||
];
|
||||
|
||||
export const PenAlt: PapPath[] = [
|
||||
{ d: "M19.145 14.688a.4.4 0 0 1 .157.054c.229.125.343 1.145.573 3.184l.029.26c.122 1.088.184 1.633-.128 1.966q-.027.029-.057.055c-.337.308-.887.247-1.988.127l-.263-.029c-2.065-.226-3.097-.34-3.223-.566a.4.4 0 0 1-.055-.154c-.044-.254.746-1.036 2.327-2.598s2.371-2.343 2.628-2.299M12.326 8.006a1.19 1.19 0 0 1 1.676-.012c1.7 1.68 2.692 2.933 3.205 3.65.307.43.366.974.111 1.437-.332.602-.958 1.53-2.082 2.64s-2.062 1.729-2.672 2.057c-.468.252-1.018.194-1.454-.11-.725-.507-1.994-1.487-3.694-3.166a1.163 1.163 0 0 1 .012-1.656zM8.494 4.923c.681-.413 1.51-.325 2.151.147.552.406.585 1.207.098 1.688l-4.58 4.526c-.49.484-1.292.451-1.706-.099-.478-.634-.567-1.452-.149-2.126.365-.586.951-1.374 1.873-2.285s1.72-1.49 2.313-1.85" },
|
||||
];
|
||||
|
||||
export const Pie: PapPath[] = [
|
||||
{ d: "M11 12a1 1 0 0 0 1 1h4.477c2.117 0 3.175 0 3.736 1.074s.1 1.738-.824 3.065A9 9 0 1 1 6.862 4.612c1.326-.924 1.99-1.386 3.064-.825S11 5.407 11 7.523z" },
|
||||
{ d: "M13 7.247c0-1.777 0-2.665.823-3.264.112-.082.336-.203.466-.252.95-.362 1.507 0 2.62.726a9.05 9.05 0 0 1 2.634 2.634c.726 1.113 1.088 1.67.726 2.62-.049.13-.17.354-.252.466-.599.823-1.487.823-3.264.823-1.647 0-2.47 0-3.024-.455a2 2 0 0 1-.274-.274C13 9.717 13 8.894 13 7.247" },
|
||||
];
|
||||
|
||||
export const Placeholder: PapPath[] = [
|
||||
{ d: "M4 17.357a1.5 1.5 0 0 1 1.5 1.5v.5H6a1.5 1.5 0 0 1 0 3H5a2.5 2.5 0 0 1-2.5-2.5v-1a1.5 1.5 0 0 1 1.5-1.5M13 19.357a1.5 1.5 0 0 1 0 3h-2a1.5 1.5 0 0 1 0-3zM20 17.357a1.5 1.5 0 0 1 1.5 1.5v1a2.5 2.5 0 0 1-2.5 2.5h-1a1.5 1.5 0 0 1 0-3h.5v-.5a1.5 1.5 0 0 1 1.5-1.5M4 10.357a1.5 1.5 0 0 1 1.5 1.5v2a1.5 1.5 0 0 1-3 0v-2a1.5 1.5 0 0 1 1.5-1.5M20 10.357a1.5 1.5 0 0 1 1.5 1.5v2a1.5 1.5 0 0 1-3 0v-2a1.5 1.5 0 0 1 1.5-1.5M6 3.357a1.5 1.5 0 1 1 0 3h-.5v.5a1.5 1.5 0 0 1-3 0v-1a2.5 2.5 0 0 1 2.5-2.5zM19 3.357a2.5 2.5 0 0 1 2.5 2.5v1a1.5 1.5 0 0 1-3 0v-.5H18a1.5 1.5 0 0 1 0-3zM13 3.357a1.5 1.5 0 0 1 0 3h-2a1.5 1.5 0 0 1 0-3z" },
|
||||
];
|
||||
|
||||
export const Search: PapPath[] = [
|
||||
{ d: "M10 3a7 7 0 0 1 5.573 11.232l4.078 3.548c1.28 1.114.492 3.22-1.205 3.22a1.84 1.84 0 0 1-1.43-.685l-3.453-4.29A7 7 0 1 1 10 3m0 3a4 4 0 1 0 0 8 4 4 0 0 0 0-8", evenodd: true },
|
||||
];
|
||||
|
||||
export const Sparkles: PapPath[] = [
|
||||
{ d: "M12.647 16.859c-1.087 2.185-1.63 3.278-2.412 3.543a2 2 0 0 1-1.284 0c-.782-.265-1.325-1.358-2.412-3.543-1.156-.202-1.735-.302-1.876-.35-1.888-.626-1.801-3.326.123-3.831.144-.038.68-.097 1.753-.213 1.064-2.252 1.596-3.378 2.365-3.66a2 2 0 0 1 1.378 0c.77.282 1.301 1.408 2.365 3.66 1.176.114 1.765.172 1.91.208 1.958.49 2.038 3.246.11 3.849-.142.044-.768.142-2.02.337M14.294 9.114l-.25-.14c-.944-.531-1.416-.796-1.549-1.114a1 1 0 0 1 .081-.925c.186-.29.697-.47 1.718-.827.768-1.43 1.152-2.146 1.682-2.343a1.5 1.5 0 0 1 1.047 0c.53.197.915.912 1.683 2.343 1.021.358 1.532.537 1.718.827a1 1 0 0 1 .08.925c-.132.318-.604.583-1.547 1.113l-.251.141c-.79 1.39-1.184 2.085-1.726 2.269a1.5 1.5 0 0 1-.96 0c-.542-.183-.937-.879-1.726-2.269" },
|
||||
];
|
||||
|
||||
export const Star: PapPath[] = [
|
||||
{ d: "m7.82 8.84-1.563 5.203L12 17.68l5.744-3.637L16.18 8.84z" },
|
||||
{ d: "M12 17.68c2.723 2.55 4.084 3.826 5.08 3.639a2 2 0 0 0 1.091-.6c.693-.74.347-2.573-.345-6.239l-.082-.437z" },
|
||||
{ d: "m16.18 8.84 1.564 5.203c2.305-1.066 3.459-1.599 3.76-2a2 2 0 0 0-.651-2.965c-.443-.238-1.713-.238-4.254-.238zM7.82 8.84h8.36l-.564-1.192C14.05 4.335 13.266 2.68 12 2.68s-2.05 1.656-3.616 4.97zM6.174 14.48c-.692 3.666-1.038 5.499-.345 6.24a2 2 0 0 0 1.09.599c.997.187 2.359-1.088 5.081-3.639l-5.743-3.637zM6.257 14.043 7.82 8.84h-.419c-2.54 0-3.81 0-4.254.238a2 2 0 0 0-.652 2.965c.302.401 1.455.934 3.762 2" },
|
||||
];
|
||||
|
||||
export const Tasks: PapPath[] = [
|
||||
{ d: "M12 3c1.483 0 2.748.073 3.805.179 2.723.274 4.743 2.293 5.017 5.015C20.928 9.251 21 10.517 21 12s-.072 2.748-.178 3.805c-.274 2.723-2.294 4.743-5.017 5.016a38 38 0 0 1-3.805.18c-1.483 0-2.749-.073-3.805-.18-2.723-.274-4.742-2.293-5.016-5.016A38 38 0 0 1 3 12c0-1.483.073-2.749.179-3.806.274-2.722 2.293-4.741 5.016-5.015A38 38 0 0 1 12 3m5.63 4.223a1 1 0 0 0-1.407.148l-5.773 7.136-2.213-2.214-.077-.068a1 1 0 0 0-1.338 1.482l2.214 2.214a2 2 0 0 0 2.97-.156l5.772-7.136a1 1 0 0 0-.149-1.406", evenodd: true },
|
||||
];
|
||||
|
||||
export const Trash: PapPath[] = [
|
||||
{ d: "M14.876 10.29c2.406-.085 3.608-.127 4.233.586.626.713.433 1.87.047 4.187l-.321 1.923c-.4 2.395-.598 3.592-1.437 4.303S15.344 22 12.917 22h-1.835c-2.427 0-3.641 0-4.48-.71-.84-.712-1.039-1.91-1.438-4.304l-.32-1.924c-.386-2.315-.58-3.473.046-4.186.625-.713 1.828-.67 4.234-.587.934.033 1.917.054 2.876.054s1.942-.021 2.876-.054M8.5 12a1 1 0 0 0-1 1v6a1 1 0 0 0 2 0v-6a1 1 0 0 0-1-1m3.5 0a1 1 0 0 0-1 1v6a1 1 0 1 0 2 0v-6a1 1 0 0 0-1-1m3.5 0a1 1 0 0 0-1 1v6a1 1 0 1 0 2 0v-6a1 1 0 0 0-1-1M12 2c1.275 0 2.271.276 2.97.854.722.597.978 1.388 1.022 2.083.024.376-.013.74-.073 1.063h2.73C19.395 6 20 6.605 20 7.35c0 .663-.48 1.224-1.138 1.297C17.547 8.795 15.151 9 12 9c-3.15 0-5.546-.205-6.862-.353A1.29 1.29 0 0 1 4 7.351C4 6.605 4.605 6 5.35 6h2.731a4.3 4.3 0 0 1-.073-1.063c.044-.695.3-1.486 1.021-2.083C9.73 2.276 10.725 2 12 2m0 2c-1.018 0-1.488.224-1.696.396-.186.153-.28.362-.3.667-.02.302.043.638.133.937h3.726c.09-.3.152-.635.133-.937-.02-.305-.114-.514-.3-.667C13.488 4.224 13.018 4 12 4" },
|
||||
];
|
||||
|
||||
export const User: PapPath[] = [
|
||||
{ d: "M17 8A5 5 0 1 1 7 8a5 5 0 0 1 10 0M4.345 18.582c.052-.358.077-.537.094-.628.41-2.155 2.06-3.414 4.247-3.24.091.008.35.04.868.105.85.107 1.705.181 2.446.181s1.595-.073 2.446-.18c.518-.066.777-.098.868-.106 2.187-.174 3.837 1.085 4.247 3.24.017.09.042.27.094.628.017.124.026.185.03.236a2 2 0 0 1-1.89 2.18c-.05.002-.113.002-.238.002H6.444c-.125 0-.188 0-.238-.003a2 2 0 0 1-1.89-2.18c.004-.05.013-.111.03-.235" },
|
||||
];
|
||||
+36
-26
@@ -1,29 +1,31 @@
|
||||
/* Up And Down : interface de gestion de fichiers.
|
||||
Jetons de couleur en tête, clair et sombre ; mise en page responsive (la barre
|
||||
latérale devient un tiroir sous 860 px). */
|
||||
Jetons de couleur en tête, clair et sombre, alignés sur Excalicloud : en clair la
|
||||
palette de l'interface d'Excalidraw 0.18, en sombre la palette commune aux deux outils.
|
||||
Mise en page responsive (la barre latérale devient un tiroir sous 860 px). */
|
||||
:root {
|
||||
--bg: #f6f7fb;
|
||||
--bg: #ffffff;
|
||||
--panel: #ffffff;
|
||||
--panel-2: #f1f3f9;
|
||||
--hover: #eef1f8;
|
||||
--fg: #1a1d29;
|
||||
--muted: #6b7185;
|
||||
--border: #e3e6ef;
|
||||
--accent: #2f6fed;
|
||||
--accent-hover: #2159d1;
|
||||
--accent-soft: #e4ecff;
|
||||
--panel-2: #ececf4; /* --color-surface-low : boutons, champs */
|
||||
--hover: #f1f0ff; /* --color-surface-high */
|
||||
--fg: #1b1b1f;
|
||||
--muted: #7a7a7a;
|
||||
--border: #ebebeb;
|
||||
--accent: #6965db;
|
||||
--accent-hover: #5753d0;
|
||||
--accent-soft: #e0dfff;
|
||||
--accent-fg: #ffffff;
|
||||
--danger: #c92a2a;
|
||||
--danger-soft: #ffe3e3;
|
||||
--ok: #2b8a3e;
|
||||
--warn: #e67700;
|
||||
--folder: #f0b429;
|
||||
--shadow: 0 1px 2px rgb(20 25 50 / 0.06), 0 4px 14px rgb(20 25 50 / 0.06);
|
||||
--shadow-lg: 0 20px 50px rgb(20 25 50 / 0.22);
|
||||
--radius: 10px;
|
||||
--radius-sm: 7px;
|
||||
--folder: var(--accent); /* dossiers dans la couleur d'accent, comme Excalicloud */
|
||||
--shadow: 0 0 0.93px 0 rgb(0 0 0 / 0.17), 0 0 3.13px 0 rgb(0 0 0 / 0.08), 0 7px 14px 0 rgb(0 0 0 / 0.05);
|
||||
--shadow-lg: 0 100px 80px rgb(0 0 0 / 0.07), 0 41.8px 33.4px rgb(0 0 0 / 0.05), 0 22.3px 17.9px rgb(0 0 0 / 0.042),
|
||||
0 12.5px 10px rgb(0 0 0 / 0.035), 0 6.65px 5.3px rgb(0 0 0 / 0.028), 0 2.77px 2.2px rgb(0 0 0 / 0.02);
|
||||
--radius: 0.5rem;
|
||||
--radius-sm: 0.375rem;
|
||||
--btn: 2.25rem;
|
||||
--topbar-h: 52px;
|
||||
--topbar-h: 48px;
|
||||
--sidebar-w: 248px;
|
||||
--font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
||||
--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
|
||||
@@ -46,7 +48,7 @@
|
||||
--danger-soft: #4a1d1d;
|
||||
--ok: #69db7c;
|
||||
--warn: #ffa94d;
|
||||
--folder: #f5c14a;
|
||||
--folder: var(--accent);
|
||||
--shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 4px 14px rgb(0 0 0 / 0.3);
|
||||
--shadow-lg: 0 20px 50px rgb(0 0 0 / 0.6);
|
||||
color-scheme: dark;
|
||||
@@ -112,14 +114,14 @@ button,
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 0.45rem;
|
||||
gap: 0.5rem;
|
||||
height: var(--btn);
|
||||
padding: 0 0.8rem;
|
||||
padding: 0 0.75rem;
|
||||
font: 500 13px/1 var(--font);
|
||||
color: var(--fg);
|
||||
background: var(--panel);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-sm);
|
||||
background: var(--panel-2);
|
||||
border: 1px solid transparent;
|
||||
border-radius: var(--radius);
|
||||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
white-space: nowrap;
|
||||
@@ -140,6 +142,10 @@ select:focus-visible {
|
||||
outline: 2px solid var(--accent);
|
||||
outline-offset: 1px;
|
||||
}
|
||||
button:active:not(:disabled),
|
||||
.ex-btn:active {
|
||||
border-color: var(--accent-hover);
|
||||
}
|
||||
button:disabled {
|
||||
opacity: 0.45;
|
||||
cursor: default;
|
||||
@@ -180,7 +186,7 @@ button.big,
|
||||
padding: 0;
|
||||
background: transparent;
|
||||
border-color: transparent;
|
||||
color: var(--muted);
|
||||
color: var(--fg);
|
||||
text-decoration: none;
|
||||
}
|
||||
.icon-btn:hover:not(:disabled) {
|
||||
@@ -218,11 +224,15 @@ select {
|
||||
padding: 0 0.7rem;
|
||||
font: 14px var(--font);
|
||||
color: var(--fg);
|
||||
background: var(--panel);
|
||||
background: var(--panel-2);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-sm);
|
||||
border-radius: var(--radius);
|
||||
min-width: 0;
|
||||
}
|
||||
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):hover,
|
||||
select:hover {
|
||||
border-color: var(--accent-hover);
|
||||
}
|
||||
input:focus,
|
||||
select:focus {
|
||||
border-color: var(--accent);
|
||||
|
||||
Reference in new issue
Block a user