Repository Public
1// Icônes propres à la rédaction (24×24, trait 1.75, même famille que ui/kit.tsx) ; les autres viennent de la carte commune.2const PATHS = {3 bold: "M7.5 5h5.25a3.5 3.5 0 0 1 0 7H7.5V5Zm0 7h6a3.5 3.5 0 0 1 0 7h-6v-7Z",4 italic: "M10 5h8M6 19h8M14 5l-4 14",5 underline: "M7 4.5v6.5a5 5 0 0 0 10 0V4.5M5.5 20h13",6 strike: "M4 12h16M16.5 8A3.6 3.6 0 0 0 13 5h-2a3.5 3.5 0 0 0-3.4 4.4M7.5 16a3.6 3.6 0 0 0 3.5 3h2a3.5 3.5 0 0 0 3.2-5",7 h1: "M4 6v12M11 6v12M4 12h7M15.5 9.5 18 8v10m-2.5 0h5",8 h2: "M4 6v12M11 6v12M4 12h7M15 10.2A2.6 2.6 0 0 1 17.6 8c1.5 0 2.6 1 2.6 2.4 0 1-.5 1.8-1.5 2.8L15 18h5.5",9 ol: "M10 6h10M10 12h10M10 18h10M4 5l1.5-1v4.5M4 15.6c.3-.8 1-1.1 1.6-1.1.8 0 1.4.5 1.4 1.3 0 .6-.3 1-.9 1.6L4 19.5h3.2",10 indent: "M4 6h16M11 12h9M4 18h16M4 9.5l3 2.5-3 2.5",11 outdent: "M4 6h16M11 12h9M4 18h16M7 9.5 4 12l3 2.5",12 quote: "M5 17c2.2-.8 3.5-2.6 3.5-5.2V7H4v5h3.2M14.5 17c2.2-.8 3.5-2.6 3.5-5.2V7h-4.5v5h3.2",13 link: "M10 14.2a4 4 0 0 0 5.6 0l3-3a4 4 0 0 0-5.6-5.6l-1.2 1.1M14 9.8a4 4 0 0 0-5.6 0l-3 3a4 4 0 0 0 5.6 5.6l1.2-1.1",14 unlink: "M10 14.2a4 4 0 0 0 5.6 0l3-3a4 4 0 0 0-5.6-5.6l-1.2 1.1M14 9.8a4 4 0 0 0-5.6 0l-3 3a4 4 0 0 0 5.6 5.6l1.2-1.1M4 4l16 16",15 clear: "M6 5h11l-.6 2.5M11 5 8.5 18.5M5 18.5h7M15.5 14.5l5 5m0-5-5 5",16 undo: "M8.5 7 4 11.5 8.5 16M4 11.5h10.5a5 5 0 0 1 0 10H12",17 redo: "M15.5 7 20 11.5 15.5 16M20 11.5H9.5a5 5 0 0 0 0 10H12",18 minimize: "M6 18h12",19 expand: "M14 4h6v6M10 20H4v-6M20 4l-7 7M4 20l7-7",20 shrink: "M20 10h-6V4M4 14h6v6M14 10l6-6M10 14l-6 6",21 up: "m8 14 4-4 4 4",22 bell: "M6 16.5V11a6 6 0 1 1 12 0v5.500l1.500 2h-15l1.500-2Zm4.500 2.500a1.500 1.500 0 0 0 3 0",23 signature: "M4 17c2.500-5 4.500-9 6.200-9 1.300 0 .800 3.500-.200 6-.700 1.800.300 2.300 1.300.700l1.200-1.900c.600-.900 1.400-.600 1.400.400 0 1.300 1 1.400 2 .600L20 12M4 20h16",24 group: "M9 11a3.500 3.500 0 1 0 0-7 3.500 3.500 0 0 0 0 7Zm-6.500 8a6.500 6.500 0 0 1 13 0M16 4.500a3.500 3.500 0 0 1 0 6.500M18 14a6 6 0 0 1 3.500 5",25 grip: "M9 6h.01M15 6h.01M9 12h.01M15 12h.01M9 18h.01M15 18h.01",26 alignLeft: "M4 6h16M4 12h10M4 18h13",27 alignCenter: "M4 6h16M7 12h10M5.500 18h13",28 alignRight: "M4 6h16M10 12h10M7 18h13",29} as const30export type CmpIconName = keyof typeof PATHS3132export function CmpIcon({ name, small }: { name: CmpIconName; small?: boolean }) {33 return (34 <svg className={`icon${small ? " s" : ""}`} viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.75" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true" focusable="false">35 <path d={PATHS[name]} />36 </svg>37 )38}39