diff --git a/src/Toolkit/kits/shadcn/AlertDialog/EXAMPLES.md b/src/Toolkit/kits/shadcn/alert-dialog/EXAMPLES.md
similarity index 100%
rename from src/Toolkit/kits/shadcn/AlertDialog/EXAMPLES.md
rename to src/Toolkit/kits/shadcn/alert-dialog/EXAMPLES.md
diff --git a/src/Toolkit/kits/shadcn/AlertDialog/assets/controllers/alert_dialog_controller.js b/src/Toolkit/kits/shadcn/alert-dialog/assets/controllers/alert_dialog_controller.js
similarity index 100%
rename from src/Toolkit/kits/shadcn/AlertDialog/assets/controllers/alert_dialog_controller.js
rename to src/Toolkit/kits/shadcn/alert-dialog/assets/controllers/alert_dialog_controller.js
diff --git a/src/Toolkit/kits/shadcn/AlertDialog/manifest.json b/src/Toolkit/kits/shadcn/alert-dialog/manifest.json
similarity index 94%
rename from src/Toolkit/kits/shadcn/AlertDialog/manifest.json
rename to src/Toolkit/kits/shadcn/alert-dialog/manifest.json
index 1bf3a78dfb8..f710c361a90 100644
--- a/src/Toolkit/kits/shadcn/AlertDialog/manifest.json
+++ b/src/Toolkit/kits/shadcn/alert-dialog/manifest.json
@@ -8,7 +8,7 @@
"templates/": "templates/"
},
"dependencies": {
- "recipe": ["Button"],
+ "recipe": ["button"],
"composer": ["twig/extra-bundle", "twig/html-extra:^3.12.0", "tales-from-a-dev/twig-tailwind-extra"],
"npm": ["el-transition"],
"importmap": ["el-transition"]
diff --git a/src/Toolkit/kits/shadcn/AlertDialog/templates/components/AlertDialog.html.twig b/src/Toolkit/kits/shadcn/alert-dialog/templates/components/AlertDialog.html.twig
similarity index 100%
rename from src/Toolkit/kits/shadcn/AlertDialog/templates/components/AlertDialog.html.twig
rename to src/Toolkit/kits/shadcn/alert-dialog/templates/components/AlertDialog.html.twig
diff --git a/src/Toolkit/kits/shadcn/AlertDialog/templates/components/AlertDialog/Action.html.twig b/src/Toolkit/kits/shadcn/alert-dialog/templates/components/AlertDialog/Action.html.twig
similarity index 72%
rename from src/Toolkit/kits/shadcn/AlertDialog/templates/components/AlertDialog/Action.html.twig
rename to src/Toolkit/kits/shadcn/alert-dialog/templates/components/AlertDialog/Action.html.twig
index 560ae0a0abf..cc4ed5b61d9 100644
--- a/src/Toolkit/kits/shadcn/AlertDialog/templates/components/AlertDialog/Action.html.twig
+++ b/src/Toolkit/kits/shadcn/alert-dialog/templates/components/AlertDialog/Action.html.twig
@@ -1,4 +1,4 @@
{% props variant = 'default' %}
- {{ block(outerBlocks.content) }}
+ {{- block(outerBlocks.content) -}}
diff --git a/src/Toolkit/kits/shadcn/AlertDialog/templates/components/AlertDialog/Cancel.html.twig b/src/Toolkit/kits/shadcn/alert-dialog/templates/components/AlertDialog/Cancel.html.twig
similarity index 100%
rename from src/Toolkit/kits/shadcn/AlertDialog/templates/components/AlertDialog/Cancel.html.twig
rename to src/Toolkit/kits/shadcn/alert-dialog/templates/components/AlertDialog/Cancel.html.twig
diff --git a/src/Toolkit/kits/shadcn/AlertDialog/templates/components/AlertDialog/Content.html.twig b/src/Toolkit/kits/shadcn/alert-dialog/templates/components/AlertDialog/Content.html.twig
similarity index 100%
rename from src/Toolkit/kits/shadcn/AlertDialog/templates/components/AlertDialog/Content.html.twig
rename to src/Toolkit/kits/shadcn/alert-dialog/templates/components/AlertDialog/Content.html.twig
diff --git a/src/Toolkit/kits/shadcn/AlertDialog/templates/components/AlertDialog/Description.html.twig b/src/Toolkit/kits/shadcn/alert-dialog/templates/components/AlertDialog/Description.html.twig
similarity index 100%
rename from src/Toolkit/kits/shadcn/AlertDialog/templates/components/AlertDialog/Description.html.twig
rename to src/Toolkit/kits/shadcn/alert-dialog/templates/components/AlertDialog/Description.html.twig
diff --git a/src/Toolkit/kits/shadcn/AlertDialog/templates/components/AlertDialog/Footer.html.twig b/src/Toolkit/kits/shadcn/alert-dialog/templates/components/AlertDialog/Footer.html.twig
similarity index 100%
rename from src/Toolkit/kits/shadcn/AlertDialog/templates/components/AlertDialog/Footer.html.twig
rename to src/Toolkit/kits/shadcn/alert-dialog/templates/components/AlertDialog/Footer.html.twig
diff --git a/src/Toolkit/kits/shadcn/AlertDialog/templates/components/AlertDialog/Header.html.twig b/src/Toolkit/kits/shadcn/alert-dialog/templates/components/AlertDialog/Header.html.twig
similarity index 100%
rename from src/Toolkit/kits/shadcn/AlertDialog/templates/components/AlertDialog/Header.html.twig
rename to src/Toolkit/kits/shadcn/alert-dialog/templates/components/AlertDialog/Header.html.twig
diff --git a/src/Toolkit/kits/shadcn/AlertDialog/templates/components/AlertDialog/Title.html.twig b/src/Toolkit/kits/shadcn/alert-dialog/templates/components/AlertDialog/Title.html.twig
similarity index 100%
rename from src/Toolkit/kits/shadcn/AlertDialog/templates/components/AlertDialog/Title.html.twig
rename to src/Toolkit/kits/shadcn/alert-dialog/templates/components/AlertDialog/Title.html.twig
diff --git a/src/Toolkit/kits/shadcn/AlertDialog/templates/components/AlertDialog/Trigger.html.twig b/src/Toolkit/kits/shadcn/alert-dialog/templates/components/AlertDialog/Trigger.html.twig
similarity index 100%
rename from src/Toolkit/kits/shadcn/AlertDialog/templates/components/AlertDialog/Trigger.html.twig
rename to src/Toolkit/kits/shadcn/alert-dialog/templates/components/AlertDialog/Trigger.html.twig
diff --git a/src/Toolkit/kits/shadcn/Alert/EXAMPLES.md b/src/Toolkit/kits/shadcn/alert/EXAMPLES.md
similarity index 100%
rename from src/Toolkit/kits/shadcn/Alert/EXAMPLES.md
rename to src/Toolkit/kits/shadcn/alert/EXAMPLES.md
diff --git a/src/Toolkit/kits/shadcn/Alert/manifest.json b/src/Toolkit/kits/shadcn/alert/manifest.json
similarity index 100%
rename from src/Toolkit/kits/shadcn/Alert/manifest.json
rename to src/Toolkit/kits/shadcn/alert/manifest.json
diff --git a/src/Toolkit/kits/shadcn/Alert/templates/components/Alert.html.twig b/src/Toolkit/kits/shadcn/alert/templates/components/Alert.html.twig
similarity index 100%
rename from src/Toolkit/kits/shadcn/Alert/templates/components/Alert.html.twig
rename to src/Toolkit/kits/shadcn/alert/templates/components/Alert.html.twig
diff --git a/src/Toolkit/kits/shadcn/Alert/templates/components/Alert/Description.html.twig b/src/Toolkit/kits/shadcn/alert/templates/components/Alert/Description.html.twig
similarity index 100%
rename from src/Toolkit/kits/shadcn/Alert/templates/components/Alert/Description.html.twig
rename to src/Toolkit/kits/shadcn/alert/templates/components/Alert/Description.html.twig
diff --git a/src/Toolkit/kits/shadcn/Alert/templates/components/Alert/Title.html.twig b/src/Toolkit/kits/shadcn/alert/templates/components/Alert/Title.html.twig
similarity index 100%
rename from src/Toolkit/kits/shadcn/Alert/templates/components/Alert/Title.html.twig
rename to src/Toolkit/kits/shadcn/alert/templates/components/Alert/Title.html.twig
diff --git a/src/Toolkit/kits/shadcn/AspectRatio/EXAMPLES.md b/src/Toolkit/kits/shadcn/aspect-ratio/EXAMPLES.md
similarity index 100%
rename from src/Toolkit/kits/shadcn/AspectRatio/EXAMPLES.md
rename to src/Toolkit/kits/shadcn/aspect-ratio/EXAMPLES.md
diff --git a/src/Toolkit/kits/shadcn/AspectRatio/manifest.json b/src/Toolkit/kits/shadcn/aspect-ratio/manifest.json
similarity index 100%
rename from src/Toolkit/kits/shadcn/AspectRatio/manifest.json
rename to src/Toolkit/kits/shadcn/aspect-ratio/manifest.json
diff --git a/src/Toolkit/kits/shadcn/AspectRatio/templates/components/AspectRatio.html.twig b/src/Toolkit/kits/shadcn/aspect-ratio/templates/components/AspectRatio.html.twig
similarity index 100%
rename from src/Toolkit/kits/shadcn/AspectRatio/templates/components/AspectRatio.html.twig
rename to src/Toolkit/kits/shadcn/aspect-ratio/templates/components/AspectRatio.html.twig
diff --git a/src/Toolkit/kits/shadcn/Avatar/EXAMPLES.md b/src/Toolkit/kits/shadcn/avatar/EXAMPLES.md
similarity index 100%
rename from src/Toolkit/kits/shadcn/Avatar/EXAMPLES.md
rename to src/Toolkit/kits/shadcn/avatar/EXAMPLES.md
diff --git a/src/Toolkit/kits/shadcn/Avatar/manifest.json b/src/Toolkit/kits/shadcn/avatar/manifest.json
similarity index 100%
rename from src/Toolkit/kits/shadcn/Avatar/manifest.json
rename to src/Toolkit/kits/shadcn/avatar/manifest.json
diff --git a/src/Toolkit/kits/shadcn/Avatar/templates/components/Avatar.html.twig b/src/Toolkit/kits/shadcn/avatar/templates/components/Avatar.html.twig
similarity index 100%
rename from src/Toolkit/kits/shadcn/Avatar/templates/components/Avatar.html.twig
rename to src/Toolkit/kits/shadcn/avatar/templates/components/Avatar.html.twig
diff --git a/src/Toolkit/kits/shadcn/Avatar/templates/components/Avatar/Image.html.twig b/src/Toolkit/kits/shadcn/avatar/templates/components/Avatar/Image.html.twig
similarity index 100%
rename from src/Toolkit/kits/shadcn/Avatar/templates/components/Avatar/Image.html.twig
rename to src/Toolkit/kits/shadcn/avatar/templates/components/Avatar/Image.html.twig
diff --git a/src/Toolkit/kits/shadcn/Avatar/templates/components/Avatar/Text.html.twig b/src/Toolkit/kits/shadcn/avatar/templates/components/Avatar/Text.html.twig
similarity index 100%
rename from src/Toolkit/kits/shadcn/Avatar/templates/components/Avatar/Text.html.twig
rename to src/Toolkit/kits/shadcn/avatar/templates/components/Avatar/Text.html.twig
diff --git a/src/Toolkit/kits/shadcn/Badge/EXAMPLES.md b/src/Toolkit/kits/shadcn/badge/EXAMPLES.md
similarity index 100%
rename from src/Toolkit/kits/shadcn/Badge/EXAMPLES.md
rename to src/Toolkit/kits/shadcn/badge/EXAMPLES.md
diff --git a/src/Toolkit/kits/shadcn/Badge/manifest.json b/src/Toolkit/kits/shadcn/badge/manifest.json
similarity index 100%
rename from src/Toolkit/kits/shadcn/Badge/manifest.json
rename to src/Toolkit/kits/shadcn/badge/manifest.json
diff --git a/src/Toolkit/kits/shadcn/Badge/templates/components/Badge.html.twig b/src/Toolkit/kits/shadcn/badge/templates/components/Badge.html.twig
similarity index 100%
rename from src/Toolkit/kits/shadcn/Badge/templates/components/Badge.html.twig
rename to src/Toolkit/kits/shadcn/badge/templates/components/Badge.html.twig
diff --git a/src/Toolkit/kits/shadcn/Breadcrumb/EXAMPLES.md b/src/Toolkit/kits/shadcn/breadcrumb/EXAMPLES.md
similarity index 100%
rename from src/Toolkit/kits/shadcn/Breadcrumb/EXAMPLES.md
rename to src/Toolkit/kits/shadcn/breadcrumb/EXAMPLES.md
diff --git a/src/Toolkit/kits/shadcn/Breadcrumb/manifest.json b/src/Toolkit/kits/shadcn/breadcrumb/manifest.json
similarity index 100%
rename from src/Toolkit/kits/shadcn/Breadcrumb/manifest.json
rename to src/Toolkit/kits/shadcn/breadcrumb/manifest.json
diff --git a/src/Toolkit/kits/shadcn/Breadcrumb/templates/components/Breadcrumb.html.twig b/src/Toolkit/kits/shadcn/breadcrumb/templates/components/Breadcrumb.html.twig
similarity index 100%
rename from src/Toolkit/kits/shadcn/Breadcrumb/templates/components/Breadcrumb.html.twig
rename to src/Toolkit/kits/shadcn/breadcrumb/templates/components/Breadcrumb.html.twig
diff --git a/src/Toolkit/kits/shadcn/Breadcrumb/templates/components/Breadcrumb/Ellipsis.html.twig b/src/Toolkit/kits/shadcn/breadcrumb/templates/components/Breadcrumb/Ellipsis.html.twig
similarity index 100%
rename from src/Toolkit/kits/shadcn/Breadcrumb/templates/components/Breadcrumb/Ellipsis.html.twig
rename to src/Toolkit/kits/shadcn/breadcrumb/templates/components/Breadcrumb/Ellipsis.html.twig
diff --git a/src/Toolkit/kits/shadcn/Breadcrumb/templates/components/Breadcrumb/Item.html.twig b/src/Toolkit/kits/shadcn/breadcrumb/templates/components/Breadcrumb/Item.html.twig
similarity index 100%
rename from src/Toolkit/kits/shadcn/Breadcrumb/templates/components/Breadcrumb/Item.html.twig
rename to src/Toolkit/kits/shadcn/breadcrumb/templates/components/Breadcrumb/Item.html.twig
diff --git a/src/Toolkit/kits/shadcn/Breadcrumb/templates/components/Breadcrumb/Link.html.twig b/src/Toolkit/kits/shadcn/breadcrumb/templates/components/Breadcrumb/Link.html.twig
similarity index 100%
rename from src/Toolkit/kits/shadcn/Breadcrumb/templates/components/Breadcrumb/Link.html.twig
rename to src/Toolkit/kits/shadcn/breadcrumb/templates/components/Breadcrumb/Link.html.twig
diff --git a/src/Toolkit/kits/shadcn/Breadcrumb/templates/components/Breadcrumb/List.html.twig b/src/Toolkit/kits/shadcn/breadcrumb/templates/components/Breadcrumb/List.html.twig
similarity index 100%
rename from src/Toolkit/kits/shadcn/Breadcrumb/templates/components/Breadcrumb/List.html.twig
rename to src/Toolkit/kits/shadcn/breadcrumb/templates/components/Breadcrumb/List.html.twig
diff --git a/src/Toolkit/kits/shadcn/Breadcrumb/templates/components/Breadcrumb/Page.html.twig b/src/Toolkit/kits/shadcn/breadcrumb/templates/components/Breadcrumb/Page.html.twig
similarity index 100%
rename from src/Toolkit/kits/shadcn/Breadcrumb/templates/components/Breadcrumb/Page.html.twig
rename to src/Toolkit/kits/shadcn/breadcrumb/templates/components/Breadcrumb/Page.html.twig
diff --git a/src/Toolkit/kits/shadcn/Breadcrumb/templates/components/Breadcrumb/Separator.html.twig b/src/Toolkit/kits/shadcn/breadcrumb/templates/components/Breadcrumb/Separator.html.twig
similarity index 100%
rename from src/Toolkit/kits/shadcn/Breadcrumb/templates/components/Breadcrumb/Separator.html.twig
rename to src/Toolkit/kits/shadcn/breadcrumb/templates/components/Breadcrumb/Separator.html.twig
diff --git a/src/Toolkit/kits/shadcn/Button/EXAMPLES.md b/src/Toolkit/kits/shadcn/button/EXAMPLES.md
similarity index 100%
rename from src/Toolkit/kits/shadcn/Button/EXAMPLES.md
rename to src/Toolkit/kits/shadcn/button/EXAMPLES.md
diff --git a/src/Toolkit/kits/shadcn/Button/manifest.json b/src/Toolkit/kits/shadcn/button/manifest.json
similarity index 100%
rename from src/Toolkit/kits/shadcn/Button/manifest.json
rename to src/Toolkit/kits/shadcn/button/manifest.json
diff --git a/src/Toolkit/kits/shadcn/Button/templates/components/Button.html.twig b/src/Toolkit/kits/shadcn/button/templates/components/Button.html.twig
similarity index 100%
rename from src/Toolkit/kits/shadcn/Button/templates/components/Button.html.twig
rename to src/Toolkit/kits/shadcn/button/templates/components/Button.html.twig
diff --git a/src/Toolkit/kits/shadcn/Card/EXAMPLES.md b/src/Toolkit/kits/shadcn/card/EXAMPLES.md
similarity index 100%
rename from src/Toolkit/kits/shadcn/Card/EXAMPLES.md
rename to src/Toolkit/kits/shadcn/card/EXAMPLES.md
diff --git a/src/Toolkit/kits/shadcn/Card/manifest.json b/src/Toolkit/kits/shadcn/card/manifest.json
similarity index 100%
rename from src/Toolkit/kits/shadcn/Card/manifest.json
rename to src/Toolkit/kits/shadcn/card/manifest.json
diff --git a/src/Toolkit/kits/shadcn/Card/templates/components/Card.html.twig b/src/Toolkit/kits/shadcn/card/templates/components/Card.html.twig
similarity index 100%
rename from src/Toolkit/kits/shadcn/Card/templates/components/Card.html.twig
rename to src/Toolkit/kits/shadcn/card/templates/components/Card.html.twig
diff --git a/src/Toolkit/kits/shadcn/Card/templates/components/Card/Content.html.twig b/src/Toolkit/kits/shadcn/card/templates/components/Card/Content.html.twig
similarity index 100%
rename from src/Toolkit/kits/shadcn/Card/templates/components/Card/Content.html.twig
rename to src/Toolkit/kits/shadcn/card/templates/components/Card/Content.html.twig
diff --git a/src/Toolkit/kits/shadcn/Card/templates/components/Card/Description.html.twig b/src/Toolkit/kits/shadcn/card/templates/components/Card/Description.html.twig
similarity index 100%
rename from src/Toolkit/kits/shadcn/Card/templates/components/Card/Description.html.twig
rename to src/Toolkit/kits/shadcn/card/templates/components/Card/Description.html.twig
diff --git a/src/Toolkit/kits/shadcn/Card/templates/components/Card/Footer.html.twig b/src/Toolkit/kits/shadcn/card/templates/components/Card/Footer.html.twig
similarity index 100%
rename from src/Toolkit/kits/shadcn/Card/templates/components/Card/Footer.html.twig
rename to src/Toolkit/kits/shadcn/card/templates/components/Card/Footer.html.twig
diff --git a/src/Toolkit/kits/shadcn/Card/templates/components/Card/Header.html.twig b/src/Toolkit/kits/shadcn/card/templates/components/Card/Header.html.twig
similarity index 100%
rename from src/Toolkit/kits/shadcn/Card/templates/components/Card/Header.html.twig
rename to src/Toolkit/kits/shadcn/card/templates/components/Card/Header.html.twig
diff --git a/src/Toolkit/kits/shadcn/Card/templates/components/Card/Title.html.twig b/src/Toolkit/kits/shadcn/card/templates/components/Card/Title.html.twig
similarity index 100%
rename from src/Toolkit/kits/shadcn/Card/templates/components/Card/Title.html.twig
rename to src/Toolkit/kits/shadcn/card/templates/components/Card/Title.html.twig
diff --git a/src/Toolkit/kits/shadcn/Checkbox/EXAMPLES.md b/src/Toolkit/kits/shadcn/checkbox/EXAMPLES.md
similarity index 100%
rename from src/Toolkit/kits/shadcn/Checkbox/EXAMPLES.md
rename to src/Toolkit/kits/shadcn/checkbox/EXAMPLES.md
diff --git a/src/Toolkit/kits/shadcn/Checkbox/manifest.json b/src/Toolkit/kits/shadcn/checkbox/manifest.json
similarity index 100%
rename from src/Toolkit/kits/shadcn/Checkbox/manifest.json
rename to src/Toolkit/kits/shadcn/checkbox/manifest.json
diff --git a/src/Toolkit/kits/shadcn/Checkbox/templates/components/Checkbox.html.twig b/src/Toolkit/kits/shadcn/checkbox/templates/components/Checkbox.html.twig
similarity index 100%
rename from src/Toolkit/kits/shadcn/Checkbox/templates/components/Checkbox.html.twig
rename to src/Toolkit/kits/shadcn/checkbox/templates/components/Checkbox.html.twig
diff --git a/src/Toolkit/kits/shadcn/Input/EXAMPLES.md b/src/Toolkit/kits/shadcn/input/EXAMPLES.md
similarity index 100%
rename from src/Toolkit/kits/shadcn/Input/EXAMPLES.md
rename to src/Toolkit/kits/shadcn/input/EXAMPLES.md
diff --git a/src/Toolkit/kits/shadcn/Input/manifest.json b/src/Toolkit/kits/shadcn/input/manifest.json
similarity index 100%
rename from src/Toolkit/kits/shadcn/Input/manifest.json
rename to src/Toolkit/kits/shadcn/input/manifest.json
diff --git a/src/Toolkit/kits/shadcn/Input/templates/components/Input.html.twig b/src/Toolkit/kits/shadcn/input/templates/components/Input.html.twig
similarity index 100%
rename from src/Toolkit/kits/shadcn/Input/templates/components/Input.html.twig
rename to src/Toolkit/kits/shadcn/input/templates/components/Input.html.twig
diff --git a/src/Toolkit/kits/shadcn/Label/EXAMPLES.md b/src/Toolkit/kits/shadcn/label/EXAMPLES.md
similarity index 100%
rename from src/Toolkit/kits/shadcn/Label/EXAMPLES.md
rename to src/Toolkit/kits/shadcn/label/EXAMPLES.md
diff --git a/src/Toolkit/kits/shadcn/Label/manifest.json b/src/Toolkit/kits/shadcn/label/manifest.json
similarity index 100%
rename from src/Toolkit/kits/shadcn/Label/manifest.json
rename to src/Toolkit/kits/shadcn/label/manifest.json
diff --git a/src/Toolkit/kits/shadcn/Label/templates/components/Label.html.twig b/src/Toolkit/kits/shadcn/label/templates/components/Label.html.twig
similarity index 100%
rename from src/Toolkit/kits/shadcn/Label/templates/components/Label.html.twig
rename to src/Toolkit/kits/shadcn/label/templates/components/Label.html.twig
diff --git a/src/Toolkit/kits/shadcn/Pagination/EXAMPLES.md b/src/Toolkit/kits/shadcn/pagination/EXAMPLES.md
similarity index 100%
rename from src/Toolkit/kits/shadcn/Pagination/EXAMPLES.md
rename to src/Toolkit/kits/shadcn/pagination/EXAMPLES.md
diff --git a/src/Toolkit/kits/shadcn/Pagination/manifest.json b/src/Toolkit/kits/shadcn/pagination/manifest.json
similarity index 100%
rename from src/Toolkit/kits/shadcn/Pagination/manifest.json
rename to src/Toolkit/kits/shadcn/pagination/manifest.json
diff --git a/src/Toolkit/kits/shadcn/Pagination/templates/components/Pagination.html.twig b/src/Toolkit/kits/shadcn/pagination/templates/components/Pagination.html.twig
similarity index 100%
rename from src/Toolkit/kits/shadcn/Pagination/templates/components/Pagination.html.twig
rename to src/Toolkit/kits/shadcn/pagination/templates/components/Pagination.html.twig
diff --git a/src/Toolkit/kits/shadcn/Pagination/templates/components/Pagination/Content.html.twig b/src/Toolkit/kits/shadcn/pagination/templates/components/Pagination/Content.html.twig
similarity index 100%
rename from src/Toolkit/kits/shadcn/Pagination/templates/components/Pagination/Content.html.twig
rename to src/Toolkit/kits/shadcn/pagination/templates/components/Pagination/Content.html.twig
diff --git a/src/Toolkit/kits/shadcn/Pagination/templates/components/Pagination/Ellipsis.html.twig b/src/Toolkit/kits/shadcn/pagination/templates/components/Pagination/Ellipsis.html.twig
similarity index 100%
rename from src/Toolkit/kits/shadcn/Pagination/templates/components/Pagination/Ellipsis.html.twig
rename to src/Toolkit/kits/shadcn/pagination/templates/components/Pagination/Ellipsis.html.twig
diff --git a/src/Toolkit/kits/shadcn/Pagination/templates/components/Pagination/Item.html.twig b/src/Toolkit/kits/shadcn/pagination/templates/components/Pagination/Item.html.twig
similarity index 100%
rename from src/Toolkit/kits/shadcn/Pagination/templates/components/Pagination/Item.html.twig
rename to src/Toolkit/kits/shadcn/pagination/templates/components/Pagination/Item.html.twig
diff --git a/src/Toolkit/kits/shadcn/Pagination/templates/components/Pagination/Link.html.twig b/src/Toolkit/kits/shadcn/pagination/templates/components/Pagination/Link.html.twig
similarity index 100%
rename from src/Toolkit/kits/shadcn/Pagination/templates/components/Pagination/Link.html.twig
rename to src/Toolkit/kits/shadcn/pagination/templates/components/Pagination/Link.html.twig
diff --git a/src/Toolkit/kits/shadcn/Pagination/templates/components/Pagination/Next.html.twig b/src/Toolkit/kits/shadcn/pagination/templates/components/Pagination/Next.html.twig
similarity index 100%
rename from src/Toolkit/kits/shadcn/Pagination/templates/components/Pagination/Next.html.twig
rename to src/Toolkit/kits/shadcn/pagination/templates/components/Pagination/Next.html.twig
diff --git a/src/Toolkit/kits/shadcn/Pagination/templates/components/Pagination/Previous.html.twig b/src/Toolkit/kits/shadcn/pagination/templates/components/Pagination/Previous.html.twig
similarity index 100%
rename from src/Toolkit/kits/shadcn/Pagination/templates/components/Pagination/Previous.html.twig
rename to src/Toolkit/kits/shadcn/pagination/templates/components/Pagination/Previous.html.twig
diff --git a/src/Toolkit/kits/shadcn/Progress/EXAMPLES.md b/src/Toolkit/kits/shadcn/progress/EXAMPLES.md
similarity index 100%
rename from src/Toolkit/kits/shadcn/Progress/EXAMPLES.md
rename to src/Toolkit/kits/shadcn/progress/EXAMPLES.md
diff --git a/src/Toolkit/kits/shadcn/Progress/manifest.json b/src/Toolkit/kits/shadcn/progress/manifest.json
similarity index 100%
rename from src/Toolkit/kits/shadcn/Progress/manifest.json
rename to src/Toolkit/kits/shadcn/progress/manifest.json
diff --git a/src/Toolkit/kits/shadcn/Progress/templates/components/Progress.html.twig b/src/Toolkit/kits/shadcn/progress/templates/components/Progress.html.twig
similarity index 100%
rename from src/Toolkit/kits/shadcn/Progress/templates/components/Progress.html.twig
rename to src/Toolkit/kits/shadcn/progress/templates/components/Progress.html.twig
diff --git a/src/Toolkit/kits/shadcn/Select/EXAMPLES.md b/src/Toolkit/kits/shadcn/select/EXAMPLES.md
similarity index 100%
rename from src/Toolkit/kits/shadcn/Select/EXAMPLES.md
rename to src/Toolkit/kits/shadcn/select/EXAMPLES.md
diff --git a/src/Toolkit/kits/shadcn/Select/manifest.json b/src/Toolkit/kits/shadcn/select/manifest.json
similarity index 100%
rename from src/Toolkit/kits/shadcn/Select/manifest.json
rename to src/Toolkit/kits/shadcn/select/manifest.json
diff --git a/src/Toolkit/kits/shadcn/Select/templates/components/Select.html.twig b/src/Toolkit/kits/shadcn/select/templates/components/Select.html.twig
similarity index 100%
rename from src/Toolkit/kits/shadcn/Select/templates/components/Select.html.twig
rename to src/Toolkit/kits/shadcn/select/templates/components/Select.html.twig
diff --git a/src/Toolkit/kits/shadcn/Separator/EXAMPLES.md b/src/Toolkit/kits/shadcn/separator/EXAMPLES.md
similarity index 100%
rename from src/Toolkit/kits/shadcn/Separator/EXAMPLES.md
rename to src/Toolkit/kits/shadcn/separator/EXAMPLES.md
diff --git a/src/Toolkit/kits/shadcn/Separator/manifest.json b/src/Toolkit/kits/shadcn/separator/manifest.json
similarity index 100%
rename from src/Toolkit/kits/shadcn/Separator/manifest.json
rename to src/Toolkit/kits/shadcn/separator/manifest.json
diff --git a/src/Toolkit/kits/shadcn/Separator/templates/components/Separator.html.twig b/src/Toolkit/kits/shadcn/separator/templates/components/Separator.html.twig
similarity index 100%
rename from src/Toolkit/kits/shadcn/Separator/templates/components/Separator.html.twig
rename to src/Toolkit/kits/shadcn/separator/templates/components/Separator.html.twig
diff --git a/src/Toolkit/kits/shadcn/Skeleton/EXAMPLES.md b/src/Toolkit/kits/shadcn/skeleton/EXAMPLES.md
similarity index 100%
rename from src/Toolkit/kits/shadcn/Skeleton/EXAMPLES.md
rename to src/Toolkit/kits/shadcn/skeleton/EXAMPLES.md
diff --git a/src/Toolkit/kits/shadcn/Skeleton/manifest.json b/src/Toolkit/kits/shadcn/skeleton/manifest.json
similarity index 100%
rename from src/Toolkit/kits/shadcn/Skeleton/manifest.json
rename to src/Toolkit/kits/shadcn/skeleton/manifest.json
diff --git a/src/Toolkit/kits/shadcn/Skeleton/templates/components/Skeleton.html.twig b/src/Toolkit/kits/shadcn/skeleton/templates/components/Skeleton.html.twig
similarity index 100%
rename from src/Toolkit/kits/shadcn/Skeleton/templates/components/Skeleton.html.twig
rename to src/Toolkit/kits/shadcn/skeleton/templates/components/Skeleton.html.twig
diff --git a/src/Toolkit/kits/shadcn/Switch/EXAMPLES.md b/src/Toolkit/kits/shadcn/switch/EXAMPLES.md
similarity index 100%
rename from src/Toolkit/kits/shadcn/Switch/EXAMPLES.md
rename to src/Toolkit/kits/shadcn/switch/EXAMPLES.md
diff --git a/src/Toolkit/kits/shadcn/Switch/manifest.json b/src/Toolkit/kits/shadcn/switch/manifest.json
similarity index 100%
rename from src/Toolkit/kits/shadcn/Switch/manifest.json
rename to src/Toolkit/kits/shadcn/switch/manifest.json
diff --git a/src/Toolkit/kits/shadcn/Switch/templates/components/Switch.html.twig b/src/Toolkit/kits/shadcn/switch/templates/components/Switch.html.twig
similarity index 100%
rename from src/Toolkit/kits/shadcn/Switch/templates/components/Switch.html.twig
rename to src/Toolkit/kits/shadcn/switch/templates/components/Switch.html.twig
diff --git a/src/Toolkit/kits/shadcn/Table/EXAMPLES.md b/src/Toolkit/kits/shadcn/table/EXAMPLES.md
similarity index 100%
rename from src/Toolkit/kits/shadcn/Table/EXAMPLES.md
rename to src/Toolkit/kits/shadcn/table/EXAMPLES.md
diff --git a/src/Toolkit/kits/shadcn/Table/manifest.json b/src/Toolkit/kits/shadcn/table/manifest.json
similarity index 100%
rename from src/Toolkit/kits/shadcn/Table/manifest.json
rename to src/Toolkit/kits/shadcn/table/manifest.json
diff --git a/src/Toolkit/kits/shadcn/Table/templates/components/Table.html.twig b/src/Toolkit/kits/shadcn/table/templates/components/Table.html.twig
similarity index 100%
rename from src/Toolkit/kits/shadcn/Table/templates/components/Table.html.twig
rename to src/Toolkit/kits/shadcn/table/templates/components/Table.html.twig
diff --git a/src/Toolkit/kits/shadcn/Table/templates/components/Table/Body.html.twig b/src/Toolkit/kits/shadcn/table/templates/components/Table/Body.html.twig
similarity index 100%
rename from src/Toolkit/kits/shadcn/Table/templates/components/Table/Body.html.twig
rename to src/Toolkit/kits/shadcn/table/templates/components/Table/Body.html.twig
diff --git a/src/Toolkit/kits/shadcn/Table/templates/components/Table/Caption.html.twig b/src/Toolkit/kits/shadcn/table/templates/components/Table/Caption.html.twig
similarity index 100%
rename from src/Toolkit/kits/shadcn/Table/templates/components/Table/Caption.html.twig
rename to src/Toolkit/kits/shadcn/table/templates/components/Table/Caption.html.twig
diff --git a/src/Toolkit/kits/shadcn/Table/templates/components/Table/Cell.html.twig b/src/Toolkit/kits/shadcn/table/templates/components/Table/Cell.html.twig
similarity index 100%
rename from src/Toolkit/kits/shadcn/Table/templates/components/Table/Cell.html.twig
rename to src/Toolkit/kits/shadcn/table/templates/components/Table/Cell.html.twig
diff --git a/src/Toolkit/kits/shadcn/Table/templates/components/Table/Footer.html.twig b/src/Toolkit/kits/shadcn/table/templates/components/Table/Footer.html.twig
similarity index 100%
rename from src/Toolkit/kits/shadcn/Table/templates/components/Table/Footer.html.twig
rename to src/Toolkit/kits/shadcn/table/templates/components/Table/Footer.html.twig
diff --git a/src/Toolkit/kits/shadcn/Table/templates/components/Table/Head.html.twig b/src/Toolkit/kits/shadcn/table/templates/components/Table/Head.html.twig
similarity index 100%
rename from src/Toolkit/kits/shadcn/Table/templates/components/Table/Head.html.twig
rename to src/Toolkit/kits/shadcn/table/templates/components/Table/Head.html.twig
diff --git a/src/Toolkit/kits/shadcn/Table/templates/components/Table/Header.html.twig b/src/Toolkit/kits/shadcn/table/templates/components/Table/Header.html.twig
similarity index 100%
rename from src/Toolkit/kits/shadcn/Table/templates/components/Table/Header.html.twig
rename to src/Toolkit/kits/shadcn/table/templates/components/Table/Header.html.twig
diff --git a/src/Toolkit/kits/shadcn/Table/templates/components/Table/Row.html.twig b/src/Toolkit/kits/shadcn/table/templates/components/Table/Row.html.twig
similarity index 100%
rename from src/Toolkit/kits/shadcn/Table/templates/components/Table/Row.html.twig
rename to src/Toolkit/kits/shadcn/table/templates/components/Table/Row.html.twig
diff --git a/src/Toolkit/kits/shadcn/Textarea/EXAMPLES.md b/src/Toolkit/kits/shadcn/textarea/EXAMPLES.md
similarity index 100%
rename from src/Toolkit/kits/shadcn/Textarea/EXAMPLES.md
rename to src/Toolkit/kits/shadcn/textarea/EXAMPLES.md
diff --git a/src/Toolkit/kits/shadcn/Textarea/manifest.json b/src/Toolkit/kits/shadcn/textarea/manifest.json
similarity index 100%
rename from src/Toolkit/kits/shadcn/Textarea/manifest.json
rename to src/Toolkit/kits/shadcn/textarea/manifest.json
diff --git a/src/Toolkit/kits/shadcn/Textarea/templates/components/Textarea.html.twig b/src/Toolkit/kits/shadcn/textarea/templates/components/Textarea.html.twig
similarity index 100%
rename from src/Toolkit/kits/shadcn/Textarea/templates/components/Textarea.html.twig
rename to src/Toolkit/kits/shadcn/textarea/templates/components/Textarea.html.twig
diff --git a/src/Toolkit/src/Command/DebugKitCommand.php b/src/Toolkit/src/Command/DebugKitCommand.php
index b71e18f0f16..78963c2a1cd 100644
--- a/src/Toolkit/src/Command/DebugKitCommand.php
+++ b/src/Toolkit/src/Command/DebugKitCommand.php
@@ -78,7 +78,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$io->section('Recipes');
foreach ($kit->getRecipes() as $recipe) {
(new Table($io))
- ->setHeaderTitle(\sprintf('Recipe: "%s"', $recipe->manifest->name))
+ ->setHeaderTitle(\sprintf('Recipe: "%s"', $recipe->name))
->setHorizontal()
->setHeaders([
'File(s)',
diff --git a/src/Toolkit/src/Command/InstallCommand.php b/src/Toolkit/src/Command/InstallCommand.php
index a4909c6afd3..4770f252318 100644
--- a/src/Toolkit/src/Command/InstallCommand.php
+++ b/src/Toolkit/src/Command/InstallCommand.php
@@ -51,8 +51,8 @@ public function __construct(
protected function configure(): void
{
$this
- ->addArgument('recipe', InputArgument::OPTIONAL, 'The recipe name (Ex: Button)')
- ->addOption('kit', 'k', InputOption::VALUE_OPTIONAL, 'The kit name (Ex: "shadcn", or "github.com/user/my-ux-toolkit-kit")')
+ ->addArgument('recipe', InputArgument::OPTIONAL, 'The recipe name (ex: "button")')
+ ->addOption('kit', 'k', InputOption::VALUE_OPTIONAL, 'The kit name (ex: "shadcn", or "github.com/user/my-ux-toolkit-kit")')
->addOption(
'destination',
'd',
@@ -67,13 +67,13 @@ protected function configure(): void
To install a recipe, use:
- php %command.full_name% Button
+ php %command.full_name% button
To install a recipe from a specific Kit (either official or external), use the --kit option:
- php %command.full_name% Button --kit=shadcn
- php %command.full_name% Button --kit=https://github.com/user/my-kit
- php %command.full_name% Button --kit=https://github.com/user/my-kit:branch
+ php %command.full_name% button --kit=shadcn
+ php %command.full_name% button --kit=https://github.com/user/my-kit
+ php %command.full_name% button --kit=https://github.com/user/my-kit:branch
EOF
);
}
@@ -150,7 +150,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
return Command::FAILURE;
}
} elseif ($alternativeRecipesCount > 0) {
- $io->warning(\sprintf('%s'."\n".'Possible alternatives: "%s"', $message, implode('", "', array_map(fn (Recipe $c) => $c->manifest->name, $alternativeRecipes))));
+ $io->warning(\sprintf('%s'."\n".'Possible alternatives: "%s"', $message, implode('", "', array_map(fn (Recipe $r) => $r->name, $alternativeRecipes))));
return Command::FAILURE;
} else {
@@ -160,7 +160,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
}
}
- $io->writeln(\sprintf('Installing recipe %s> from the %s> kit...', $recipe->manifest->name, $kit->manifest->name));
+ $io->writeln(\sprintf('Installing recipe "%s>" from the %s> kit...', $recipe->name, $kit->manifest->name));
$installer = new Installer($this->filesystem, fn (string $question) => $this->io->confirm($question, $input->isInteractive()));
$installationReport = $installer->installRecipe($kit, $recipe, $destinationPath = $input->getOption('destination'), $input->getOption('force'));
@@ -220,13 +220,13 @@ private function getAlternativeRecipes(Kit $kit, string $recipeName): array
$alternativeRecipes = [];
foreach ($kit->getRecipes() as $recipe) {
- $lev = levenshtein($recipeName, $recipe->manifest->name, 2, 5, 10);
- if ($lev <= 8 || str_contains($recipe->manifest->name, $recipeName)) {
+ $lev = levenshtein($recipeName, $recipe->name, 2, 5, 10);
+ if ($lev <= 8 || str_contains($recipe->name, $recipeName)) {
$alternativeRecipes[] = $recipe;
}
}
- usort($alternativeRecipes, fn (Recipe $recipeA, Recipe $recipeB) => strcmp($recipeA->manifest->name, $recipeB->manifest->name));
+ usort($alternativeRecipes, fn (Recipe $recipeA, Recipe $recipeB) => strcmp($recipeA->name, $recipeB->name));
return $alternativeRecipes;
}
diff --git a/src/Toolkit/src/Installer/PoolResolver.php b/src/Toolkit/src/Installer/PoolResolver.php
index f69e983da73..f33861e037f 100644
--- a/src/Toolkit/src/Installer/PoolResolver.php
+++ b/src/Toolkit/src/Installer/PoolResolver.php
@@ -58,7 +58,7 @@ public function resolveForRecipe(Kit $kit, Recipe $recipe): Pool
$pool->addImportmapPackageDependency($dependency);
} elseif ($dependency instanceof RecipeDependency) {
if (null === $recipeDependency = $kit->getRecipe($dependency->name)) {
- throw new \LogicException(\sprintf('The recipe "%s" has a dependency on unregistered recipe "%s".', $currentRecipe->manifest->name, $dependency->name));
+ throw new \LogicException(\sprintf('The recipe "%s" has a dependency on unregistered recipe "%s".', $currentRecipe->name, $dependency->name));
}
$recipesStack[] = $recipeDependency;
diff --git a/src/Toolkit/src/Kit/Kit.php b/src/Toolkit/src/Kit/Kit.php
index 04b326c507a..d614f35d995 100644
--- a/src/Toolkit/src/Kit/Kit.php
+++ b/src/Toolkit/src/Kit/Kit.php
@@ -23,7 +23,7 @@
final class Kit
{
/**
- * @var list
+ * @var array
*/
private array $recipes = [];
@@ -44,13 +44,11 @@ public function __construct(
public function addRecipe(Recipe $recipe): void
{
- foreach ($this->recipes as $existingRecipe) {
- if ($existingRecipe->manifest->name === $recipe->manifest->name) {
- throw new \InvalidArgumentException(\sprintf('Recipe "%s" is already registered in the kit.', $recipe->manifest->name));
- }
+ if (\array_key_exists($recipe->name, $this->recipes)) {
+ throw new \InvalidArgumentException(\sprintf('Recipe "%s" is already registered in the kit.', $recipe->manifest->name));
}
- $this->recipes[] = $recipe;
+ $this->recipes[$recipe->name] = $recipe;
}
/**
@@ -67,12 +65,14 @@ public function getRecipes(?RecipeType $type = null): array
public function getRecipe(string $name, ?RecipeType $type = null): ?Recipe
{
- foreach ($this->recipes as $recipe) {
- if ($recipe->manifest->name === $name && (null === $type || $recipe->manifest->type === $type)) {
- return $recipe;
- }
+ if (null === $recipe = $this->recipes[$name] ?? null) {
+ return null;
}
- return null;
+ if (null !== $type && $recipe->manifest->type !== $type) {
+ return null;
+ }
+
+ return $recipe;
}
}
diff --git a/src/Toolkit/src/Recipe/Recipe.php b/src/Toolkit/src/Recipe/Recipe.php
index c0504fa3970..de76c35e863 100644
--- a/src/Toolkit/src/Recipe/Recipe.php
+++ b/src/Toolkit/src/Recipe/Recipe.php
@@ -23,9 +23,11 @@
final class Recipe
{
/**
+ * @param non-empty-string $name
* @param non-empty-string $absolutePath
*/
public function __construct(
+ public readonly string $name,
public readonly string $absolutePath,
public readonly RecipeManifest $manifest,
) {
diff --git a/src/Toolkit/src/Recipe/RecipeSynchronizer.php b/src/Toolkit/src/Recipe/RecipeSynchronizer.php
index d3e06a970bb..26299e89a4d 100644
--- a/src/Toolkit/src/Recipe/RecipeSynchronizer.php
+++ b/src/Toolkit/src/Recipe/RecipeSynchronizer.php
@@ -30,6 +30,7 @@ public function synchronizeRecipe(Kit $kit, SplFileInfo $manifestFile): void
}
$recipe = new Recipe(
+ name: $manifestFile->getPathInfo()->getBasename(),
absolutePath: $manifestFile->getPath(),
manifest: $manifest,
);
diff --git a/src/Toolkit/tests/Command/DebugKitCommandTest.php b/src/Toolkit/tests/Command/DebugKitCommandTest.php
index 29723c625f8..5d42ca1197b 100644
--- a/src/Toolkit/tests/Command/DebugKitCommandTest.php
+++ b/src/Toolkit/tests/Command/DebugKitCommandTest.php
@@ -32,7 +32,7 @@ public function testShouldBeAbleToDebugShadcnKit()
->assertOutputContains('License MIT')
// Components details
->assertOutputContains(implode(\PHP_EOL, [
- '+--------------+------------------------ Recipe: "Avatar" ----------------------------------------+',
+ '+--------------+------------------------ Recipe: "avatar" ----------------------------------------+',
'| File(s) | templates/components/Avatar.html.twig |',
'| | templates/components/Avatar/Image.html.twig |',
'| | templates/components/Avatar/Text.html.twig |',
@@ -40,7 +40,7 @@ public function testShouldBeAbleToDebugShadcnKit()
'+--------------+----------------------------------------------------------------------------------+',
]))
->assertOutputContains(implode(\PHP_EOL, [
- '+--------------+------------------------- Recipe: "Table" ----------------------------------------+',
+ '+--------------+------------------------- Recipe: "table" ----------------------------------------+',
'| File(s) | templates/components/Table.html.twig |',
'| | templates/components/Table/Body.html.twig |',
'| | templates/components/Table/Caption.html.twig |',
@@ -66,9 +66,9 @@ public function testShouldBeAbleToDebugFixtureKitWithManyDependencies()
->assertOutputContains('License MIT')
// Components details
->assertOutputContains(implode(\PHP_EOL, [
- '+--------------+------------------------- Recipe: "Alert" ----------------------------------------+',
+ '+--------------+------------------------- Recipe: "alert" ----------------------------------------+',
'| File(s) | N/A |',
- '| Dependencies | Button |',
+ '| Dependencies | button |',
'| | twig/html-extra:^3.12.0 |',
'| | tales-from-a-dev/twig-tailwind-extra |',
'| | tailwindcss:^4.0.0 |',
@@ -77,7 +77,7 @@ public function testShouldBeAbleToDebugFixtureKitWithManyDependencies()
'+--------------+----------------------------------------------------------------------------------+',
]))
->assertOutputContains(implode(\PHP_EOL, [
- '+--------------+------------------------ Recipe: "Button" ----------------------------------------+',
+ '+--------------+------------------------ Recipe: "button" ----------------------------------------+',
'| File(s) | N/A |',
'| Dependencies | twig/html-extra:^3.12.0 |',
'| | another/php-package:^2.0 |',
diff --git a/src/Toolkit/tests/Command/InstallCommandTest.php b/src/Toolkit/tests/Command/InstallCommandTest.php
index f2501242f67..16525cab4e1 100644
--- a/src/Toolkit/tests/Command/InstallCommandTest.php
+++ b/src/Toolkit/tests/Command/InstallCommandTest.php
@@ -37,24 +37,24 @@ protected function setUp(): void
public function testShouldAbleToInstallComponentTableAndItsDependencies()
{
$expectedFiles = [
- 'Table/templates/components/Table.html.twig' => Path::normalize($this->tmpDir.'/templates/components/Table.html.twig'),
- 'Table/templates/components/Table/Body.html.twig' => Path::normalize($this->tmpDir.'/templates/components/Table/Body.html.twig'),
- 'Table/templates/components/Table/Caption.html.twig' => Path::normalize($this->tmpDir.'/templates/components/Table/Caption.html.twig'),
- 'Table/templates/components/Table/Cell.html.twig' => Path::normalize($this->tmpDir.'/templates/components/Table/Cell.html.twig'),
- 'Table/templates/components/Table/Footer.html.twig' => Path::normalize($this->tmpDir.'/templates/components/Table/Footer.html.twig'),
- 'Table/templates/components/Table/Head.html.twig' => Path::normalize($this->tmpDir.'/templates/components/Table/Head.html.twig'),
- 'Table/templates/components/Table/Header.html.twig' => Path::normalize($this->tmpDir.'/templates/components/Table/Header.html.twig'),
- 'Table/templates/components/Table/Row.html.twig' => Path::normalize($this->tmpDir.'/templates/components/Table/Row.html.twig'),
+ 'table/templates/components/Table.html.twig' => Path::normalize($this->tmpDir.'/templates/components/Table.html.twig'),
+ 'table/templates/components/Table/Body.html.twig' => Path::normalize($this->tmpDir.'/templates/components/Table/Body.html.twig'),
+ 'table/templates/components/Table/Caption.html.twig' => Path::normalize($this->tmpDir.'/templates/components/Table/Caption.html.twig'),
+ 'table/templates/components/Table/Cell.html.twig' => Path::normalize($this->tmpDir.'/templates/components/Table/Cell.html.twig'),
+ 'table/templates/components/Table/Footer.html.twig' => Path::normalize($this->tmpDir.'/templates/components/Table/Footer.html.twig'),
+ 'table/templates/components/Table/Head.html.twig' => Path::normalize($this->tmpDir.'/templates/components/Table/Head.html.twig'),
+ 'table/templates/components/Table/Header.html.twig' => Path::normalize($this->tmpDir.'/templates/components/Table/Header.html.twig'),
+ 'table/templates/components/Table/Row.html.twig' => Path::normalize($this->tmpDir.'/templates/components/Table/Row.html.twig'),
];
foreach ($expectedFiles as $expectedFile) {
$this->assertFileDoesNotExist($expectedFile);
}
- $testCommand = $this->consoleCommand(\sprintf('ux:install Table --destination="%s"', str_replace('\\', '\\\\', $this->tmpDir)))
+ $testCommand = $this->consoleCommand(\sprintf('ux:install table --destination="%s"', str_replace('\\', '\\\\', $this->tmpDir)))
->execute()
->assertSuccessful()
- ->assertOutputContains('Installing recipe Table from the Shadcn UI kit...')
+ ->assertOutputContains('Installing recipe "table" from the Shadcn UI kit...')
->assertOutputContains('[OK] The recipe has been installed.')
;
@@ -72,11 +72,11 @@ public function testShouldFailAndSuggestAlternativeRecipesWhenKitIsExplicit()
mkdir($destination);
$this->bootKernel();
- $this->consoleCommand('ux:install A --kit=shadcn --destination='.$destination)
+ $this->consoleCommand('ux:install a --kit=shadcn --destination='.$destination)
->execute()
->assertFaulty()
- ->assertOutputContains('[WARNING] The recipe "A" does not exist')
- ->assertOutputContains('Possible alternatives: "Alert", "Alert Dialog", "Aspect Ratio"')
+ ->assertOutputContains('[WARNING] The recipe "a" does not exist')
+ ->assertOutputContains('Possible alternatives: "alert", "alert-dialog", "aspect-ratio"')
;
}
@@ -86,10 +86,10 @@ public function testShouldFailWhenComponentDoesNotExist()
mkdir($destination);
$this->bootKernel();
- $this->consoleCommand('ux:install Unknown --destination='.$destination)
+ $this->consoleCommand('ux:install unknown --destination='.$destination)
->execute()
->assertFaulty()
- ->assertOutputContains('The recipe "Unknown" does not exist');
+ ->assertOutputContains('The recipe "unknown" does not exist');
}
public function testShouldWarnWhenComponentFileAlreadyExistsInNonInteractiveMode()
@@ -98,11 +98,11 @@ public function testShouldWarnWhenComponentFileAlreadyExistsInNonInteractiveMode
mkdir($destination);
$this->bootKernel();
- $this->consoleCommand('ux:install Badge --destination='.$destination)
+ $this->consoleCommand('ux:install badge --destination='.$destination)
->execute()
->assertSuccessful();
- $this->consoleCommand('ux:install Badge --destination='.$destination)
+ $this->consoleCommand('ux:install badge --destination='.$destination)
->execute()
->assertFaulty()
->assertOutputContains('[WARNING] The recipe has not been installed.')
diff --git a/src/Toolkit/tests/Fixtures/kits/with-circular-components-dependencies/A/manifest.json b/src/Toolkit/tests/Fixtures/kits/with-circular-components-dependencies/a/manifest.json
similarity index 90%
rename from src/Toolkit/tests/Fixtures/kits/with-circular-components-dependencies/A/manifest.json
rename to src/Toolkit/tests/Fixtures/kits/with-circular-components-dependencies/a/manifest.json
index aa062da576f..ef01bd25970 100644
--- a/src/Toolkit/tests/Fixtures/kits/with-circular-components-dependencies/A/manifest.json
+++ b/src/Toolkit/tests/Fixtures/kits/with-circular-components-dependencies/a/manifest.json
@@ -7,6 +7,6 @@
"templates/": "templates/"
},
"dependencies": {
- "recipe": ["B"]
+ "recipe": ["b"]
}
}
diff --git a/src/Toolkit/tests/Fixtures/kits/with-circular-components-dependencies/A/templates/components/A.html.twig b/src/Toolkit/tests/Fixtures/kits/with-circular-components-dependencies/a/templates/components/A.html.twig
similarity index 100%
rename from src/Toolkit/tests/Fixtures/kits/with-circular-components-dependencies/A/templates/components/A.html.twig
rename to src/Toolkit/tests/Fixtures/kits/with-circular-components-dependencies/a/templates/components/A.html.twig
diff --git a/src/Toolkit/tests/Fixtures/kits/with-circular-components-dependencies/B/manifest.json b/src/Toolkit/tests/Fixtures/kits/with-circular-components-dependencies/b/manifest.json
similarity index 90%
rename from src/Toolkit/tests/Fixtures/kits/with-circular-components-dependencies/B/manifest.json
rename to src/Toolkit/tests/Fixtures/kits/with-circular-components-dependencies/b/manifest.json
index 3b37d54ebbf..e56e21ae8d5 100644
--- a/src/Toolkit/tests/Fixtures/kits/with-circular-components-dependencies/B/manifest.json
+++ b/src/Toolkit/tests/Fixtures/kits/with-circular-components-dependencies/b/manifest.json
@@ -7,6 +7,6 @@
"templates/": "templates/"
},
"dependencies": {
- "recipe": ["C"]
+ "recipe": ["c"]
}
}
diff --git a/src/Toolkit/tests/Fixtures/kits/with-circular-components-dependencies/B/templates/components/B.html.twig b/src/Toolkit/tests/Fixtures/kits/with-circular-components-dependencies/b/templates/components/B.html.twig
similarity index 100%
rename from src/Toolkit/tests/Fixtures/kits/with-circular-components-dependencies/B/templates/components/B.html.twig
rename to src/Toolkit/tests/Fixtures/kits/with-circular-components-dependencies/b/templates/components/B.html.twig
diff --git a/src/Toolkit/tests/Fixtures/kits/with-circular-components-dependencies/C/manifest.json b/src/Toolkit/tests/Fixtures/kits/with-circular-components-dependencies/c/manifest.json
similarity index 90%
rename from src/Toolkit/tests/Fixtures/kits/with-circular-components-dependencies/C/manifest.json
rename to src/Toolkit/tests/Fixtures/kits/with-circular-components-dependencies/c/manifest.json
index 7b899ab889b..efa37889929 100644
--- a/src/Toolkit/tests/Fixtures/kits/with-circular-components-dependencies/C/manifest.json
+++ b/src/Toolkit/tests/Fixtures/kits/with-circular-components-dependencies/c/manifest.json
@@ -7,6 +7,6 @@
"templates/": "templates/"
},
"dependencies": {
- "recipe": ["A"]
+ "recipe": ["a"]
}
}
diff --git a/src/Toolkit/tests/Fixtures/kits/with-circular-components-dependencies/C/templates/components/C.html.twig b/src/Toolkit/tests/Fixtures/kits/with-circular-components-dependencies/c/templates/components/C.html.twig
similarity index 100%
rename from src/Toolkit/tests/Fixtures/kits/with-circular-components-dependencies/C/templates/components/C.html.twig
rename to src/Toolkit/tests/Fixtures/kits/with-circular-components-dependencies/c/templates/components/C.html.twig
diff --git a/src/Toolkit/tests/Fixtures/kits/with-many-dependencies/Alert/manifest.json b/src/Toolkit/tests/Fixtures/kits/with-many-dependencies/alert/manifest.json
similarity index 92%
rename from src/Toolkit/tests/Fixtures/kits/with-many-dependencies/Alert/manifest.json
rename to src/Toolkit/tests/Fixtures/kits/with-many-dependencies/alert/manifest.json
index 6a4c3f47775..f158671114f 100644
--- a/src/Toolkit/tests/Fixtures/kits/with-many-dependencies/Alert/manifest.json
+++ b/src/Toolkit/tests/Fixtures/kits/with-many-dependencies/alert/manifest.json
@@ -4,7 +4,7 @@
"name": "Alert",
"description": "Component Alert",
"dependencies": {
- "recipe": ["Button"],
+ "recipe": ["button"],
"composer": ["twig/html-extra:^3.12.0", "tales-from-a-dev/twig-tailwind-extra"],
"npm": ["tailwindcss@^4.0.0", "@tailwindplus/elements@1"],
"importmap": ["@hotwired/stimulus"]
diff --git a/src/Toolkit/tests/Fixtures/kits/with-many-dependencies/Button/manifest.json b/src/Toolkit/tests/Fixtures/kits/with-many-dependencies/button/manifest.json
similarity index 100%
rename from src/Toolkit/tests/Fixtures/kits/with-many-dependencies/Button/manifest.json
rename to src/Toolkit/tests/Fixtures/kits/with-many-dependencies/button/manifest.json
diff --git a/src/Toolkit/tests/Functional/ComponentsRenderingTest.php b/src/Toolkit/tests/Functional/ComponentsRenderingTest.php
index 636c07346ec..e170fdeb3b2 100644
--- a/src/Toolkit/tests/Functional/ComponentsRenderingTest.php
+++ b/src/Toolkit/tests/Functional/ComponentsRenderingTest.php
@@ -54,7 +54,7 @@ public static function provideTestComponentRendering(): iterable
}
foreach ($codeBlockMatches['code'] as $i => $code) {
- yield \sprintf('Kit %s, component %s, code #%d', $kitName, $recipe->manifest->name, $i + 1) => [$kitName, $recipe->manifest->name, $code];
+ yield \sprintf('Kit %s, component %s, code #%d', $kitName, $recipe->name, $i + 1) => [$kitName, $recipe->name, $code];
}
}
}
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Alert, code 1__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component alert, code 1__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Alert, code 1__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component alert, code 1__1.html
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Alert, code 2__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component alert, code 2__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Alert, code 2__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component alert, code 2__1.html
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Alert Dialog, code 1__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component alert-dialog, code 1__1.html
similarity index 99%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Alert Dialog, code 1__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component alert-dialog, code 1__1.html
index e81d8943311..f632e6e6cb6 100644
--- a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Alert Dialog, code 1__1.html
+++ b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component alert-dialog, code 1__1.html
@@ -36,8 +36,7 @@
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Alert Dialog, code 2__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component alert-dialog, code 2__1.html
similarity index 99%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Alert Dialog, code 2__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component alert-dialog, code 2__1.html
index 419ff3a1517..5106bae0f0d 100644
--- a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Alert Dialog, code 2__1.html
+++ b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component alert-dialog, code 2__1.html
@@ -36,8 +36,7 @@
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Aspect Ratio, code 1__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component aspect-ratio, code 1__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Aspect Ratio, code 1__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component aspect-ratio, code 1__1.html
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Aspect Ratio, code 2__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component aspect-ratio, code 2__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Aspect Ratio, code 2__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component aspect-ratio, code 2__1.html
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Aspect Ratio, code 3__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component aspect-ratio, code 3__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Aspect Ratio, code 3__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component aspect-ratio, code 3__1.html
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Avatar, code 1__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component avatar, code 1__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Avatar, code 1__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component avatar, code 1__1.html
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Avatar, code 2__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component avatar, code 2__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Avatar, code 2__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component avatar, code 2__1.html
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Avatar, code 3__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component avatar, code 3__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Avatar, code 3__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component avatar, code 3__1.html
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Badge, code 1__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component badge, code 1__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Badge, code 1__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component badge, code 1__1.html
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Badge, code 2__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component badge, code 2__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Badge, code 2__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component badge, code 2__1.html
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Badge, code 3__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component badge, code 3__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Badge, code 3__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component badge, code 3__1.html
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Badge, code 4__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component badge, code 4__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Badge, code 4__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component badge, code 4__1.html
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Badge, code 5__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component badge, code 5__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Badge, code 5__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component badge, code 5__1.html
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Breadcrumb, code 1__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component breadcrumb, code 1__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Breadcrumb, code 1__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component breadcrumb, code 1__1.html
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Breadcrumb, code 2__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component breadcrumb, code 2__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Breadcrumb, code 2__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component breadcrumb, code 2__1.html
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Button, code 10__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component button, code 10__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Button, code 10__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component button, code 10__1.html
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Button, code 1__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component button, code 1__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Button, code 1__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component button, code 1__1.html
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Button, code 2__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component button, code 2__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Button, code 2__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component button, code 2__1.html
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Button, code 3__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component button, code 3__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Button, code 3__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component button, code 3__1.html
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Button, code 4__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component button, code 4__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Button, code 4__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component button, code 4__1.html
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Button, code 5__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component button, code 5__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Button, code 5__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component button, code 5__1.html
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Button, code 6__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component button, code 6__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Button, code 6__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component button, code 6__1.html
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Button, code 7__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component button, code 7__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Button, code 7__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component button, code 7__1.html
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Button, code 8__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component button, code 8__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Button, code 8__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component button, code 8__1.html
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Button, code 9__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component button, code 9__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Button, code 9__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component button, code 9__1.html
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Card, code 1__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component card, code 1__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Card, code 1__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component card, code 1__1.html
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Card, code 2__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component card, code 2__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Card, code 2__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component card, code 2__1.html
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Checkbox, code 1__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component checkbox, code 1__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Checkbox, code 1__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component checkbox, code 1__1.html
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Checkbox, code 2__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component checkbox, code 2__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Checkbox, code 2__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component checkbox, code 2__1.html
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Checkbox, code 3__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component checkbox, code 3__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Checkbox, code 3__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component checkbox, code 3__1.html
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Input, code 1__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component input, code 1__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Input, code 1__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component input, code 1__1.html
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Input, code 2__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component input, code 2__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Input, code 2__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component input, code 2__1.html
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Input, code 3__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component input, code 3__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Input, code 3__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component input, code 3__1.html
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Input, code 4__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component input, code 4__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Input, code 4__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component input, code 4__1.html
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Input, code 5__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component input, code 5__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Input, code 5__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component input, code 5__1.html
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Label, code 1__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component label, code 1__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Label, code 1__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component label, code 1__1.html
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Label, code 2__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component label, code 2__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Label, code 2__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component label, code 2__1.html
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Label, code 3__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component label, code 3__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Label, code 3__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component label, code 3__1.html
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Pagination, code 1__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component pagination, code 1__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Pagination, code 1__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component pagination, code 1__1.html
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Pagination, code 2__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component pagination, code 2__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Pagination, code 2__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component pagination, code 2__1.html
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Progress, code 1__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component progress, code 1__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Progress, code 1__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component progress, code 1__1.html
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Progress, code 2__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component progress, code 2__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Progress, code 2__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component progress, code 2__1.html
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Progress, code 3__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component progress, code 3__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Progress, code 3__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component progress, code 3__1.html
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Select, code 1__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component select, code 1__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Select, code 1__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component select, code 1__1.html
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Select, code 2__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component select, code 2__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Select, code 2__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component select, code 2__1.html
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Select, code 3__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component select, code 3__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Select, code 3__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component select, code 3__1.html
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Separator, code 1__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component separator, code 1__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Separator, code 1__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component separator, code 1__1.html
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Separator, code 2__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component separator, code 2__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Separator, code 2__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component separator, code 2__1.html
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Skeleton, code 1__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component skeleton, code 1__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Skeleton, code 1__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component skeleton, code 1__1.html
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Skeleton, code 2__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component skeleton, code 2__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Skeleton, code 2__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component skeleton, code 2__1.html
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Switch, code 1__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component switch, code 1__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Switch, code 1__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component switch, code 1__1.html
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Switch, code 2__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component switch, code 2__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Switch, code 2__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component switch, code 2__1.html
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Table, code 1__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component table, code 1__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Table, code 1__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component table, code 1__1.html
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Textarea, code 1__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component textarea, code 1__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Textarea, code 1__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component textarea, code 1__1.html
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Textarea, code 2__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component textarea, code 2__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Textarea, code 2__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component textarea, code 2__1.html
diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Textarea, code 3__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component textarea, code 3__1.html
similarity index 100%
rename from src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Textarea, code 3__1.html
rename to src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component textarea, code 3__1.html
diff --git a/src/Toolkit/tests/Installer/InstallerTest.php b/src/Toolkit/tests/Installer/InstallerTest.php
index 85e62f5261f..9377e4c6207 100644
--- a/src/Toolkit/tests/Installer/InstallerTest.php
+++ b/src/Toolkit/tests/Installer/InstallerTest.php
@@ -40,7 +40,7 @@ public function testCanInstallComponent()
$this->assertFileDoesNotExist($this->tmpDir.'/Button.html.twig');
- $recipe = $kit->getRecipe('Button');
+ $recipe = $kit->getRecipe('button');
$this->assertNotNull($recipe);
$installer->installRecipe($kit, $recipe, $this->tmpDir, false);
@@ -59,7 +59,7 @@ public function testShouldAskIfFileAlreadyExists()
});
$kit = $this->createKit('shadcn');
- $recipe = $kit->getRecipe('Button');
+ $recipe = $kit->getRecipe('button');
$this->assertNotNull($recipe);
$installer->installRecipe($kit, $recipe, $this->tmpDir, false);
@@ -77,7 +77,7 @@ public function testCanInstallComponentIfForced()
$installer = new Installer(self::getContainer()->get('filesystem'), fn () => throw new \BadFunctionCallException('The installer should not ask for confirmation since the file does not exist.'));
$kit = $this->createKit('shadcn');
- $recipe = $kit->getRecipe('Button');
+ $recipe = $kit->getRecipe('button');
$this->assertNotNull($recipe);
$installer->installRecipe($kit, $recipe, $this->tmpDir, false);
@@ -113,9 +113,9 @@ public function testCanInstallComponentAndItsComponentDependencies()
$this->assertFileDoesNotExist($expectedFile);
}
- $installer->installRecipe($kit, $kit->getRecipe('Table'), $this->tmpDir, false);
- $installer->installRecipe($kit, $kit->getRecipe('Button'), $this->tmpDir, false);
- $installer->installRecipe($kit, $kit->getRecipe('Input'), $this->tmpDir, false);
+ $installer->installRecipe($kit, $kit->getRecipe('table'), $this->tmpDir, false);
+ $installer->installRecipe($kit, $kit->getRecipe('button'), $this->tmpDir, false);
+ $installer->installRecipe($kit, $kit->getRecipe('input'), $this->tmpDir, false);
foreach ($expectedFiles as $expectedFile) {
$this->assertFileExists($expectedFile);
diff --git a/src/Toolkit/tests/Installer/PoolResolverTest.php b/src/Toolkit/tests/Installer/PoolResolverTest.php
index 10796693328..8f304842dc0 100644
--- a/src/Toolkit/tests/Installer/PoolResolverTest.php
+++ b/src/Toolkit/tests/Installer/PoolResolverTest.php
@@ -37,14 +37,14 @@ public function testCanResolveDependencies()
$poolResolver = new PoolResolver();
- $pool = $poolResolver->resolveForRecipe($kit, $recipeButton = $kit->getRecipe('Button'));
+ $pool = $poolResolver->resolveForRecipe($kit, $recipeButton = $kit->getRecipe('button'));
$this->assertEquals([
'templates/components/Button.html.twig',
], array_keys($pool->getFiles()[$recipeButton->absolutePath]));
$this->assertCount(3, $pool->getPhpPackageDependencies());
- $pool = $poolResolver->resolveForRecipe($kit, $recipeTable = $kit->getRecipe('Table'));
+ $pool = $poolResolver->resolveForRecipe($kit, $recipeTable = $kit->getRecipe('table'));
$this->assertEquals([
'templates/components/Table.html.twig',
@@ -67,13 +67,13 @@ public function testCanHandleCircularRecipeDependencies()
$poolResolver = new PoolResolver();
- $recipeA = $kit->getRecipe('A');
- $recipeB = $kit->getRecipe('B');
- $recipeC = $kit->getRecipe('C');
+ $recipeA = $kit->getRecipe('a');
+ $recipeB = $kit->getRecipe('b');
+ $recipeC = $kit->getRecipe('c');
- $this->assertEquals([new RecipeDependency('B')], $recipeA->manifest->dependencies);
- $this->assertEquals([new RecipeDependency('C')], $recipeB->manifest->dependencies);
- $this->assertEquals([new RecipeDependency('A')], $recipeC->manifest->dependencies);
+ $this->assertEquals([new RecipeDependency('b')], $recipeA->manifest->dependencies);
+ $this->assertEquals([new RecipeDependency('c')], $recipeB->manifest->dependencies);
+ $this->assertEquals([new RecipeDependency('a')], $recipeC->manifest->dependencies);
$pool = $poolResolver->resolveForRecipe($kit, $recipeA);
@@ -92,11 +92,11 @@ public function testCanHandleAllPossibleDependencies()
$poolResolver = new PoolResolver();
- $recipeAlert = $kit->getRecipe('Alert');
- $recipeButton = $kit->getRecipe('Button');
+ $recipeAlert = $kit->getRecipe('alert');
+ $recipeButton = $kit->getRecipe('button');
$this->assertEquals([
- new RecipeDependency('Button'),
+ new RecipeDependency('button'),
new PhpPackageDependency('twig/html-extra', new ConstraintVersion('^3.12.0')),
new PhpPackageDependency('tales-from-a-dev/twig-tailwind-extra'),
new NpmPackageDependency('tailwindcss', new ConstraintVersion('^4.0.0')),
diff --git a/src/Toolkit/tests/Installer/PoolTest.php b/src/Toolkit/tests/Installer/PoolTest.php
index f378b73859d..a552736c1cf 100644
--- a/src/Toolkit/tests/Installer/PoolTest.php
+++ b/src/Toolkit/tests/Installer/PoolTest.php
@@ -32,9 +32,9 @@ public function testCanAddFiles()
$this->assertCount(0, $pool->getFiles());
- $recipe = new Recipe(__DIR__, new RecipeManifest(
+ $recipe = new Recipe('test-recipe', __DIR__, new RecipeManifest(
type: RecipeType::Component,
- name: 'test-recipe',
+ name: 'Test Recipe',
description: 'A test recipe',
copyFiles: [],
));
@@ -49,9 +49,9 @@ public function testCantAddSameFileTwice()
{
$pool = new Pool();
- $recipe = new Recipe(__DIR__, new RecipeManifest(
+ $recipe = new Recipe('test-recipe', __DIR__, new RecipeManifest(
type: RecipeType::Component,
- name: 'test-recipe',
+ name: 'Test Recipe',
description: 'A test recipe',
copyFiles: [],
));
diff --git a/src/Toolkit/tests/Kit/KitSynchronizerTest.php b/src/Toolkit/tests/Kit/KitSynchronizerTest.php
index 311a58f5346..be1605c704b 100644
--- a/src/Toolkit/tests/Kit/KitSynchronizerTest.php
+++ b/src/Toolkit/tests/Kit/KitSynchronizerTest.php
@@ -41,6 +41,6 @@ public function testCanResolveDependencies()
new PhpPackageDependency('twig/extra-bundle'),
new PhpPackageDependency('twig/html-extra', new ConstraintVersion('^3.12.0')),
new PhpPackageDependency('tales-from-a-dev/twig-tailwind-extra'),
- ], $kit->getRecipe('Button')->manifest->dependencies);
+ ], $kit->getRecipe('button')->manifest->dependencies);
}
}
diff --git a/src/Toolkit/tests/Kit/KitTest.php b/src/Toolkit/tests/Kit/KitTest.php
index 00a815f1c8a..ffd0d34b7e3 100644
--- a/src/Toolkit/tests/Kit/KitTest.php
+++ b/src/Toolkit/tests/Kit/KitTest.php
@@ -40,11 +40,13 @@ public function testCanAddRecipesToTheKit()
{
$kit = new Kit(__DIR__, new KitManifest('foo', 'Description', 'MIT', 'https://example.com'));
$kit->addRecipe(new Recipe(
- __DIR__.'/Alert',
+ 'alert',
+ __DIR__.'/alert',
new RecipeManifest(RecipeType::Component, 'Alert', 'Description', []),
));
$kit->addRecipe(new Recipe(
- __DIR__.'/Table',
+ 'table',
+ __DIR__.'/table',
new RecipeManifest(RecipeType::Component, 'Table', 'Description', []),
));
@@ -59,11 +61,13 @@ public function testShouldFailIfComponentIsAlreadyRegisteredInTheKit()
$kit = new Kit(__DIR__, new KitManifest('foo', 'Description', 'MIT', 'https://example.com'));
$kit->addRecipe(new Recipe(
- __DIR__.'/Alert',
+ 'alert',
+ __DIR__.'/alert',
new RecipeManifest(RecipeType::Component, 'Alert', 'Description', []),
));
$kit->addRecipe(new Recipe(
- __DIR__.'/Alert',
+ 'alert',
+ __DIR__.'/alert',
new RecipeManifest(RecipeType::Component, 'Alert', 'Description', []),
));
}
@@ -72,22 +76,24 @@ public function testCanGetRecipeByName()
{
$kit = new Kit(__DIR__, new KitManifest('foo', 'Description', 'MIT', 'https://example.com'));
$kit->addRecipe(new Recipe(
+ 'alert',
__DIR__.'/Alert',
new RecipeManifest(RecipeType::Component, 'Alert', 'Description', []),
));
$kit->addRecipe(new Recipe(
+ 'table',
__DIR__.'/Table',
new RecipeManifest(RecipeType::Component, 'Table', 'Description', []),
));
- $this->assertSame('Table', $kit->getRecipe('Table')->manifest->name);
- $this->assertSame('Alert', $kit->getRecipe('Alert')->manifest->name);
+ $this->assertSame('Table', $kit->getRecipe('table')->manifest->name);
+ $this->assertSame('Alert', $kit->getRecipe('alert')->manifest->name);
}
public function testShouldReturnNullIfRecipeIsNotFound()
{
$kit = new Kit(__DIR__, new KitManifest('foo', 'Description', 'MIT', 'https://example.com'));
- $this->assertNull($kit->getRecipe('Table'));
+ $this->assertNull($kit->getRecipe('table'));
}
}
diff --git a/src/Toolkit/tests/Recipe/RecipeSynchronizerTest.php b/src/Toolkit/tests/Recipe/RecipeSynchronizerTest.php
index c64d422cb5d..e3b70315897 100644
--- a/src/Toolkit/tests/Recipe/RecipeSynchronizerTest.php
+++ b/src/Toolkit/tests/Recipe/RecipeSynchronizerTest.php
@@ -28,9 +28,9 @@ public function testSynchronize()
$this->assertEmpty($kit->getRecipes());
- $recipeSynchronizer->synchronizeRecipe($kit, new SplFileInfo(__DIR__.'/../../kits/shadcn/Alert/manifest.json', 'Alert', 'Alert/manifest.json'));
+ $recipeSynchronizer->synchronizeRecipe($kit, new SplFileInfo(__DIR__.'/../../kits/shadcn/alert/manifest.json', 'alert', 'alert/manifest.json'));
- $recipeAlert = $kit->getRecipe('Alert');
+ $recipeAlert = $kit->getRecipe('alert');
$this->assertNotNull($recipeAlert);
$this->assertEquals('Alert', $recipeAlert->manifest->name);
$this->assertEquals('A notification component that displays important messages with an icon, title, and description.', $recipeAlert->manifest->description);
diff --git a/src/Toolkit/tests/Recipe/RecipeTest.php b/src/Toolkit/tests/Recipe/RecipeTest.php
index 61e2ec55652..8b9a873ca2f 100644
--- a/src/Toolkit/tests/Recipe/RecipeTest.php
+++ b/src/Toolkit/tests/Recipe/RecipeTest.php
@@ -26,9 +26,9 @@ public function testShouldFailWhenPathIsNotAbsolute()
$this->expectException(\InvalidArgumentException::class);
$this->expectExceptionMessage('Kit path "relative/path" is not absolute.');
- new Recipe('relative/path', new RecipeManifest(
+ new Recipe('test-recipe', 'relative/path', new RecipeManifest(
type: RecipeType::Component,
- name: 'test-recipe',
+ name: 'Test Recipe',
description: 'A test recipe',
copyFiles: [],
));
@@ -39,9 +39,9 @@ public function testShouldFailWhenInvalidCopyFiles()
$this->expectException(\InvalidArgumentException::class);
$this->expectExceptionMessage('Copy file destination "/" must be a relative path.');
- new Recipe(__DIR__.'/../../kits/shadcn/Table', new RecipeManifest(
+ new Recipe('test-recipe', __DIR__.'/../../kits/shadcn/Table', new RecipeManifest(
type: RecipeType::Component,
- name: 'test-recipe',
+ name: 'Test Recipe',
description: 'A test recipe',
copyFiles: [
'templates/' => '/',
@@ -51,9 +51,9 @@ public function testShouldFailWhenInvalidCopyFiles()
public function testGetCopyFiles()
{
- $recipe = new Recipe(__DIR__.'/../../kits/shadcn/Table', new RecipeManifest(
+ $recipe = new Recipe('test-recipe', __DIR__.'/../../kits/shadcn/table', new RecipeManifest(
type: RecipeType::Component,
- name: 'test-recipe',
+ name: 'Test Recipe',
description: 'A test recipe',
copyFiles: [
'templates/' => 'templates/',
@@ -74,9 +74,9 @@ public function testGetCopyFiles()
public function testGetCopyFilesWithDifferentDestDir()
{
- $recipe = new Recipe(__DIR__.'/../../kits/shadcn/Table', new RecipeManifest(
+ $recipe = new Recipe('test-recipe', __DIR__.'/../../kits/shadcn/table', new RecipeManifest(
type: RecipeType::Component,
- name: 'test-recipe',
+ name: 'Test Recipe',
description: 'A test recipe',
copyFiles: [
'templates/' => 'dest-templates/',
diff --git a/src/Toolkit/tests/Registry/GitHubRegistryTest.php b/src/Toolkit/tests/Registry/GitHubRegistryTest.php
index 792b094af20..5fa569398a3 100644
--- a/src/Toolkit/tests/Registry/GitHubRegistryTest.php
+++ b/src/Toolkit/tests/Registry/GitHubRegistryTest.php
@@ -67,7 +67,7 @@ public function testCanGetKitFromGithub()
$this->assertSame('Shadcn UI', $kit->manifest->name);
$this->assertNotEmpty($kit->getRecipes());
$this->assertFileExists($kit->absolutePath);
- $this->assertFileExists(Path::join($kit->absolutePath, 'Button/templates/components/Button.html.twig'));
+ $this->assertFileExists(Path::join($kit->absolutePath, 'button/templates/components/Button.html.twig'));
}
public function testShouldThrowExceptionIfKitNotFound()
diff --git a/ux.symfony.com/assets/toolkit-shadcn.js b/ux.symfony.com/assets/toolkit-shadcn.js
index 8a1d16de416..53624491104 100644
--- a/ux.symfony.com/assets/toolkit-shadcn.js
+++ b/ux.symfony.com/assets/toolkit-shadcn.js
@@ -1,6 +1,6 @@
import './styles/toolkit-shadcn.css';
import { startStimulusApp } from '@symfony/stimulus-bundle';
-import AlertDialog from '@symfony/ux-toolkit/kits/shadcn/AlertDialog/assets/controllers/alert_dialog_controller.js';
+import AlertDialog from '@symfony/ux-toolkit/kits/shadcn/alert-dialog/assets/controllers/alert_dialog_controller.js';
const app = startStimulusApp();
app.register('alert-dialog', AlertDialog);
diff --git a/ux.symfony.com/importmap.php b/ux.symfony.com/importmap.php
index 635d1ed3a63..36eac5a6451 100644
--- a/ux.symfony.com/importmap.php
+++ b/ux.symfony.com/importmap.php
@@ -204,8 +204,8 @@
'@symfony/ux-leaflet-map' => [
'path' => './vendor/symfony/ux-leaflet-map/assets/dist/map_controller.js',
],
- '@symfony/ux-toolkit/kits/shadcn/AlertDialog/assets/controllers/alert_dialog_controller.js' => [
- 'path' => './vendor/symfony/ux-toolkit/kits/shadcn/AlertDialog/assets/controllers/alert_dialog_controller.js',
+ '@symfony/ux-toolkit/kits/shadcn/alert-dialog/assets/controllers/alert_dialog_controller.js' => [
+ 'path' => './vendor/symfony/ux-toolkit/kits/shadcn/alert-dialog/assets/controllers/alert_dialog_controller.js',
],
'el-transition' => [
'version' => '0.0.7',
diff --git a/ux.symfony.com/src/Service/CommonMark/Extension/CodeBlockRenderer/CodeBlockRenderer.php b/ux.symfony.com/src/Service/CommonMark/Extension/CodeBlockRenderer/CodeBlockRenderer.php
index 522bd4a4d8d..25a838349f8 100644
--- a/ux.symfony.com/src/Service/CommonMark/Extension/CodeBlockRenderer/CodeBlockRenderer.php
+++ b/ux.symfony.com/src/Service/CommonMark/Extension/CodeBlockRenderer/CodeBlockRenderer.php
@@ -18,6 +18,10 @@
use League\CommonMark\Renderer\ChildNodeRendererInterface;
use League\CommonMark\Renderer\NodeRendererInterface;
use Tempest\Highlight\Highlighter;
+use Tempest\Highlight\Injection;
+use Tempest\Highlight\Language;
+use Tempest\Highlight\Languages\Base\Injections\DeletionInjection;
+use Tempest\Highlight\Languages\Twig\TwigLanguage;
use Tempest\Highlight\WebTheme;
final readonly class CodeBlockRenderer implements NodeRendererInterface
@@ -53,11 +57,23 @@ public static function highlightCode(string $language, string $code, string $sty
{
$highlighter = new Highlighter();
+ // https://github.com/tempestphp/highlight/issues/182
+ if ('twig' === $language) {
+ $language = new class extends TwigLanguage {
+ public function getInjections(): array
+ {
+ return array_filter(parent::getInjections(), static function (Injection $injection) {
+ return !$injection instanceof DeletionInjection;
+ });
+ }
+ };
+ }
+
$theme = $highlighter->getTheme();
$parsed = $highlighter->parse($code, $language);
$output = $theme instanceof WebTheme
? $theme->preBefore($highlighter).$parsed.$theme->preAfter($highlighter)
- : '
'.$parsed.'
';
+ : '
'.$parsed.'
';
return <<
diff --git a/ux.symfony.com/src/Service/Toolkit/ToolkitService.php b/ux.symfony.com/src/Service/Toolkit/ToolkitService.php
index c2e710b63ec..4b6ba540522 100644
--- a/ux.symfony.com/src/Service/Toolkit/ToolkitService.php
+++ b/ux.symfony.com/src/Service/Toolkit/ToolkitService.php
@@ -80,10 +80,10 @@ public function renderComponentPreviewCodeTabs(ToolkitKitId $kitId, string $code
]);
}
- public function renderInstallationSteps(ToolkitKitId $kitId, Recipe $component): string
+ public function renderInstallationSteps(ToolkitKitId $kitId, Recipe $recipe): string
{
$kit = $this->getKit($kitId);
- $pool = (new PoolResolver())->resolveForRecipe($kit, $component);
+ $pool = (new PoolResolver())->resolveForRecipe($kit, $recipe);
$manual = '
The UX Toolkit is not mandatory to install a component. You can install it manually by following the next steps:
';
$manual .= '';
@@ -136,7 +136,7 @@ public function renderInstallationSteps(ToolkitKitId $kitId, Recipe $component):
'Automatic' => \sprintf(
'
Ensure the Symfony UX Toolkit is installed in your Symfony app:
%s
Then, run the following command to install the component and its dependencies: