/** * ========================================================================= * PLATEFORME ECO-PANNEAU.FR - VERSION 1.0.0 * Socle UI (2/4) - Identité visuelle, Icônes et QR Code * ========================================================================= */ // ========================================================================= // 1. LOGO SVG ET TEXT LOGO // ========================================================================= window.LogoSVG = ({ size = 32, className = '' }) => ( ); window.TextLogo = ({ className = "", colorEco = "text-slate-800" }) => ( eco-panneau.fr ); window.SiteLogo = ({ size = 32, className = "" }) => { const isRiverainOrScan = typeof window !== 'undefined' && (new URLSearchParams(window.location.search).has('scan') || new URLSearchParams(window.location.search).has('thread')); const Wrapper = isRiverainOrScan ? 'div' : 'a'; const props = isRiverainOrScan ? {} : { href: 'https://eco-panneau.fr', title: "Retour à l'accueil" }; const ecoColor = className.includes('text-white') ? 'text-white' : 'text-slate-800'; return ( ); }; // ========================================================================= // 2. GÉNÉRATEUR D'ICÔNES DYNAMIQUES ET LOADER // ========================================================================= window.LoaderIcon = ({ size = 24, className = '' }) => ( ); const createIconFromString = (htmlString) => ({ size = 24, className = '', style, onClick, ...props }) => { const svgContent = `${htmlString}`; return ; }; if (window.svgPaths) { for (const [name, pathStr] of Object.entries(window.svgPaths)) { window[`${name}Icon`] = createIconFromString(pathStr); } } // ========================================================================= // 3. GÉNÉRATEUR DE QR CODE // ========================================================================= window.NativeQRCode = ({ value, size = 128, padding = 4 }) => { if (!window.QRCode) return null; const svgStr = new window.QRCode({ content: value, padding, width: size, height: size, join: true }).svg(); return
; }; /* EOF ========== [_react/_ui_icons.jsx] */