From 43d7ca1117ee08693e5df8e261ec57e5e3d5a1ca Mon Sep 17 00:00:00 2001 From: Hugo Alliaume Date: Sat, 31 May 2025 16:51:21 +0200 Subject: [PATCH] [Toolkit] Remove `Kit::$uxIcon`, make icons internal to the website --- src/Toolkit/kits/shadcn/manifest.json | 3 +-- src/Toolkit/src/Kit/KitFactory.php | 1 - .../{simple-icons/shadcnui.svg => toolkit/shadcn.svg} | 2 +- ux.symfony.com/templates/ux_packages/toolkit.html.twig | 8 +++----- 4 files changed, 5 insertions(+), 9 deletions(-) rename ux.symfony.com/assets/icons/{simple-icons/shadcnui.svg => toolkit/shadcn.svg} (98%) diff --git a/src/Toolkit/kits/shadcn/manifest.json b/src/Toolkit/kits/shadcn/manifest.json index 0c8a4c4d353..467d20a2786 100644 --- a/src/Toolkit/kits/shadcn/manifest.json +++ b/src/Toolkit/kits/shadcn/manifest.json @@ -2,6 +2,5 @@ "name": "Shadcn UI", "description": "Component based on the Shadcn UI library, one of the most popular design systems in JavaScript world.", "license": "MIT", - "homepage": "https://ux.symfony.com/components", - "ux-icon": "simple-icons:shadcnui" + "homepage": "https://ux.symfony.com/components" } diff --git a/src/Toolkit/src/Kit/KitFactory.php b/src/Toolkit/src/Kit/KitFactory.php index 039258c2077..3e20df1c6ca 100644 --- a/src/Toolkit/src/Kit/KitFactory.php +++ b/src/Toolkit/src/Kit/KitFactory.php @@ -53,7 +53,6 @@ public function createKitFromAbsolutePath(string $absolutePath): Kit homepage: $manifest['homepage'] ?? throw new \InvalidArgumentException('Manifest file is missing "homepage" key.'), license: $manifest['license'] ?? throw new \InvalidArgumentException('Manifest file is missing "license" key.'), description: $manifest['description'] ?? null, - uxIcon: $manifest['ux-icon'] ?? null, ); $this->kitSynchronizer->synchronize($kit); diff --git a/ux.symfony.com/assets/icons/simple-icons/shadcnui.svg b/ux.symfony.com/assets/icons/toolkit/shadcn.svg similarity index 98% rename from ux.symfony.com/assets/icons/simple-icons/shadcnui.svg rename to ux.symfony.com/assets/icons/toolkit/shadcn.svg index 467a4e74148..79512199f0e 100644 --- a/ux.symfony.com/assets/icons/simple-icons/shadcnui.svg +++ b/ux.symfony.com/assets/icons/toolkit/shadcn.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/ux.symfony.com/templates/ux_packages/toolkit.html.twig b/ux.symfony.com/templates/ux_packages/toolkit.html.twig index 5d06a5b8d02..7f78a815f39 100644 --- a/ux.symfony.com/templates/ux_packages/toolkit.html.twig +++ b/ux.symfony.com/templates/ux_packages/toolkit.html.twig @@ -64,11 +64,9 @@ tree templates/components
{% for kit_id, kit in kits %}
- {% if kit.uxIcon %} - - {% endif %} +