From 4afe334c6b5eff0db97657c8ce3669cea2ba0b7c Mon Sep 17 00:00:00 2001 From: Hyko Date: Sun, 26 Apr 2026 10:50:52 -0400 Subject: [PATCH] feat(icons): add business icon set and improve devkit icon copy behavior - add `src/shared/icons/business.js` with new business-related icons - move `Wallet03Icon` from `index.js` to `business.js` - update `index.js` to export icons from business module - add shift+click to copy JSX snippet in icons devkit page - update icon button tooltip to hint shift shortcut - document apostrophe escaping rule in icons README --- src/features/admin/devkit/IconsPage.client.js | 15 +- src/shared/icons/README.md | 3 + src/shared/icons/business.js | 3229 +++++++++++++++++ src/shared/icons/index.js | 41 - 4 files changed, 3242 insertions(+), 46 deletions(-) create mode 100644 src/shared/icons/business.js diff --git a/src/features/admin/devkit/IconsPage.client.js b/src/features/admin/devkit/IconsPage.client.js index d02b0a1..2656efd 100644 --- a/src/features/admin/devkit/IconsPage.client.js +++ b/src/features/admin/devkit/IconsPage.client.js @@ -34,9 +34,14 @@ export default function IconsPage() { ); }, [query, selectedCategory]); - const handleCopy = (name) => { - navigator.clipboard.writeText(`<${name} className="w-5 h-5" />`); - toast.success(`${name} copié`); + const handleCopy = (name, e) => { + if (e.shiftKey) { + navigator.clipboard.writeText(`<${name} className="w-5 h-5" />`); + toast.success(`JSX de ${name} copié`); + } else { + navigator.clipboard.writeText(name); + toast.success(`${name} copié`); + } }; const hasSidebar = categories.length > 0; @@ -81,8 +86,8 @@ export default function IconsPage() { {filtered.map(([name, IconComponent]) => (