Skip to content

Commit 56e3c46

Browse files
committed
[Toolkit] Create Component Meta files
1 parent 4882187 commit 56e3c46

Some content is hidden

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

47 files changed

+709
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"$schema": "../../../../schemas/component.json",
3+
"name": "Alert",
4+
"description": "A notification component that displays important messages with an icon, title, and description",
5+
"props": {
6+
"variant": {
7+
"type": "string",
8+
"default": "default",
9+
"description": "The visual style variant of the alert",
10+
"options": ["default", "destructive"]
11+
}
12+
},
13+
"dependencies": [
14+
{
15+
"type": "php",
16+
"package": "twig/extra-bundle"
17+
},
18+
{
19+
"type": "php",
20+
"package": "twig/html-extra:^3.12.0"
21+
},
22+
{
23+
"type": "php",
24+
"package": "tales-from-a-dev/twig-tailwind-extra"
25+
}
26+
]
27+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "../../../../../schemas/component.json",
3+
"name": "Alert:Description",
4+
"description": "A description component for alerts",
5+
"props": {},
6+
"dependencies": [
7+
{
8+
"type": "php",
9+
"package": "tales-from-a-dev/twig-tailwind-extra"
10+
}
11+
]
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "../../../../../schemas/component.json",
3+
"name": "Alert:Title",
4+
"description": "A title component for alerts",
5+
"props": {},
6+
"dependencies": [
7+
{
8+
"type": "php",
9+
"package": "tales-from-a-dev/twig-tailwind-extra"
10+
}
11+
]
12+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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+
"props": {
6+
"ratio": {
7+
"type": "string",
8+
"description": "The aspect ratio to maintain (e.g. '16/9', '4/3')"
9+
},
10+
"style": {
11+
"type": "string",
12+
"default": "",
13+
"description": "Additional inline styles to apply"
14+
}
15+
},
16+
"dependencies": []
17+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "../../../../schemas/component.json",
3+
"name": "Avatar",
4+
"description": "A circular element that displays a user's profile image or initials as a fallback",
5+
"props": {},
6+
"dependencies": [
7+
{
8+
"type": "php",
9+
"package": "tales-from-a-dev/twig-tailwind-extra"
10+
}
11+
]
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "../../../../../schemas/component.json",
3+
"name": "Avatar:Image",
4+
"description": "An image component for avatars",
5+
"props": {},
6+
"dependencies": [
7+
{
8+
"type": "php",
9+
"package": "tales-from-a-dev/twig-tailwind-extra"
10+
}
11+
]
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "../../../../../schemas/component.json",
3+
"name": "Avatar:Text",
4+
"description": "A text component for avatars",
5+
"props": {},
6+
"dependencies": [
7+
{
8+
"type": "php",
9+
"package": "tales-from-a-dev/twig-tailwind-extra"
10+
}
11+
]
12+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"$schema": "../../../../schemas/component.json",
3+
"name": "Badge",
4+
"description": "A small element that displays status, counts, or labels with optional icons",
5+
"props": {
6+
"variant": {
7+
"type": "string",
8+
"default": "default",
9+
"description": "The visual style variant of the badge",
10+
"options": ["default", "secondary", "destructive", "outline"]
11+
},
12+
"outline": {
13+
"type": "boolean",
14+
"default": false,
15+
"description": "Whether to use the outline variant"
16+
}
17+
},
18+
"dependencies": [
19+
{
20+
"type": "php",
21+
"package": "twig/extra-bundle"
22+
},
23+
{
24+
"type": "php",
25+
"package": "twig/html-extra:^3.12.0"
26+
},
27+
{
28+
"type": "php",
29+
"package": "tales-from-a-dev/twig-tailwind-extra"
30+
}
31+
]
32+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"$schema": "../../../../schemas/component.json",
3+
"name": "Breadcrumb",
4+
"description": "A navigation element that shows the current page's location in the site hierarchy with clickable links",
5+
"props": {},
6+
"dependencies": []
7+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "../../../../../schemas/component.json",
3+
"name": "Breadcrumb:Ellipsis",
4+
"description": "An ellipsis component for breadcrumb navigation",
5+
"props": {},
6+
"dependencies": [
7+
{
8+
"type": "php",
9+
"package": "tales-from-a-dev/twig-tailwind-extra"
10+
}
11+
]
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "../../../../../schemas/component.json",
3+
"name": "Breadcrumb:Item",
4+
"description": "An item component for breadcrumb navigation",
5+
"props": {},
6+
"dependencies": [
7+
{
8+
"type": "php",
9+
"package": "tales-from-a-dev/twig-tailwind-extra"
10+
}
11+
]
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "../../../../../schemas/component.json",
3+
"name": "Breadcrumb:Link",
4+
"description": "A link component for breadcrumb navigation",
5+
"props": {},
6+
"dependencies": [
7+
{
8+
"type": "php",
9+
"package": "tales-from-a-dev/twig-tailwind-extra"
10+
}
11+
]
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "../../../../../schemas/component.json",
3+
"name": "Breadcrumb:List",
4+
"description": "A list component for breadcrumb navigation",
5+
"props": {},
6+
"dependencies": [
7+
{
8+
"type": "php",
9+
"package": "tales-from-a-dev/twig-tailwind-extra"
10+
}
11+
]
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "../../../../../schemas/component.json",
3+
"name": "Breadcrumb:Page",
4+
"description": "A page component for breadcrumb navigation",
5+
"props": {},
6+
"dependencies": [
7+
{
8+
"type": "php",
9+
"package": "tales-from-a-dev/twig-tailwind-extra"
10+
}
11+
]
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "../../../../../schemas/component.json",
3+
"name": "Breadcrumb:Separator",
4+
"description": "A separator component for breadcrumb navigation",
5+
"props": {},
6+
"dependencies": [
7+
{
8+
"type": "php",
9+
"package": "tales-from-a-dev/twig-tailwind-extra"
10+
}
11+
]
12+
}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"$schema": "../../../../schemas/component.json",
3+
"name": "Button",
4+
"description": "A clickable element that triggers actions or events, supporting various styles and states",
5+
"props": {
6+
"variant": {
7+
"type": "string",
8+
"default": "default",
9+
"description": "The visual style variant of the button",
10+
"options": ["default", "secondary", "destructive", "outline", "ghost", "link"]
11+
},
12+
"outline": {
13+
"type": "boolean",
14+
"default": false,
15+
"description": "Whether to use the outline variant"
16+
},
17+
"size": {
18+
"type": "string",
19+
"default": "default",
20+
"description": "The size of the button",
21+
"options": ["default", "sm", "lg", "icon"]
22+
},
23+
"as": {
24+
"type": "string",
25+
"default": "button",
26+
"description": "The HTML element to render the button as"
27+
}
28+
},
29+
"dependencies": [
30+
{
31+
"type": "php",
32+
"package": "twig/extra-bundle"
33+
},
34+
{
35+
"type": "php",
36+
"package": "twig/html-extra:^3.12.0"
37+
},
38+
{
39+
"type": "php",
40+
"package": "tales-from-a-dev/twig-tailwind-extra"
41+
}
42+
]
43+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "../../../../schemas/component.json",
3+
"name": "Card",
4+
"description": "A container that groups related content and actions into a box with optional header, content, and footer sections",
5+
"props": {},
6+
"dependencies": [
7+
{
8+
"type": "php",
9+
"package": "tales-from-a-dev/twig-tailwind-extra"
10+
}
11+
]
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "../../../../../schemas/component.json",
3+
"name": "Card:Content",
4+
"description": "A content section component for cards",
5+
"props": {},
6+
"dependencies": [
7+
{
8+
"type": "php",
9+
"package": "tales-from-a-dev/twig-tailwind-extra"
10+
}
11+
]
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "../../../../../schemas/component.json",
3+
"name": "Card:Description",
4+
"description": "A description component for cards",
5+
"props": {},
6+
"dependencies": [
7+
{
8+
"type": "php",
9+
"package": "tales-from-a-dev/twig-tailwind-extra"
10+
}
11+
]
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "../../../../../schemas/component.json",
3+
"name": "Card:Footer",
4+
"description": "A footer section component for cards",
5+
"props": {},
6+
"dependencies": [
7+
{
8+
"type": "php",
9+
"package": "tales-from-a-dev/twig-tailwind-extra"
10+
}
11+
]
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "../../../../../schemas/component.json",
3+
"name": "Card:Header",
4+
"description": "A header section component for cards",
5+
"props": {},
6+
"dependencies": [
7+
{
8+
"type": "php",
9+
"package": "tales-from-a-dev/twig-tailwind-extra"
10+
}
11+
]
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "../../../../../schemas/component.json",
3+
"name": "Card:Title",
4+
"description": "A title component for cards",
5+
"props": {},
6+
"dependencies": [
7+
{
8+
"type": "php",
9+
"package": "tales-from-a-dev/twig-tailwind-extra"
10+
}
11+
]
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "../../../../schemas/component.json",
3+
"name": "Checkbox",
4+
"description": "A form control that allows the user to toggle between checked and unchecked states",
5+
"props": {},
6+
"dependencies": [
7+
{
8+
"type": "php",
9+
"package": "tales-from-a-dev/twig-tailwind-extra"
10+
}
11+
]
12+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"$schema": "../../../../schemas/component.json",
3+
"name": "Input",
4+
"description": "A form control that allows users to enter text, numbers, or select files",
5+
"props": {
6+
"type": {
7+
"type": "string",
8+
"default": "text",
9+
"description": "The HTML input type"
10+
}
11+
},
12+
"dependencies": [
13+
{
14+
"type": "php",
15+
"package": "tales-from-a-dev/twig-tailwind-extra"
16+
}
17+
]
18+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "../../../../schemas/component.json",
3+
"name": "Label",
4+
"description": "A text element that identifies form controls and other content",
5+
"props": {},
6+
"dependencies": [
7+
{
8+
"type": "php",
9+
"package": "tales-from-a-dev/twig-tailwind-extra"
10+
}
11+
]
12+
}

0 commit comments

Comments
 (0)