Skip to content

Commit 7014713

Browse files
committed
[Toolkit] Rework kits architecture
1 parent 1145c9d commit 7014713

File tree

178 files changed

+553
-1537
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

178 files changed

+553
-1537
lines changed

src/Toolkit/doc/index.rst

Lines changed: 3 additions & 2 deletions
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<twig:Alert class="max-w-lg">
2+
<twig:ux:icon name="tabler:terminal" class="h-4 w-4" />
3+
<twig:Alert:Title>Heads up!</twig:Alert:Title>
4+
<twig:Alert:Description>
5+
You can add components to your app using the cli.
6+
</twig:Alert:Description>
7+
</twig:Alert>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<twig:Alert variant="destructive" class="max-w-lg">
2+
<twig:ux:icon name="tabler:alert-circle" class="h-4 w-4" />
3+
<twig:Alert:Title>Error</twig:Alert:Title>
4+
<twig:Alert:Description>
5+
Your session has expired. Please log in again.
6+
</twig:Alert:Description>
7+
</twig:Alert>

src/Toolkit/kits/shadcn/templates/components/Separator.meta.json renamed to src/Toolkit/kits/shadcn/Alert/manifest.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
2-
"$schema": "../../../../schemas/component.json",
2+
"$schema": "../../../schemas/component.json",
3+
"name": "Alert",
4+
"description": "A notification component that displays important messages with an icon, title, and description.",
35
"dependencies": [
46
{
57
"type": "php",
@@ -14,4 +16,4 @@
1416
"package": "tales-from-a-dev/twig-tailwind-extra"
1517
}
1618
]
17-
}
19+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "../../../schemas/component.json",
3+
"name": "AspectRatio",
4+
"description": "A container that maintains a specific width-to-height ratio for its content.",
5+
"dependencies": [
6+
{
7+
"type": "php",
8+
"package": "twig/extra-bundle"
9+
}
10+
]
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<div class="flex -space-x-2">
2+
<twig:Avatar>
3+
<twig:Avatar:Image src="https://github.com/symfony.png" alt="@symfony" />
4+
</twig:Avatar>
5+
<twig:Avatar>
6+
<twig:Avatar:Text>FP</twig:Avatar:Text>
7+
</twig:Avatar>
8+
<twig:Avatar>
9+
<twig:Avatar:Text class="bg-red-500 text-red-50">FP</twig:Avatar:Text>
10+
</twig:Avatar>
11+
</div>

0 commit comments

Comments
 (0)