Skip to content

Commit f5591ff

Browse files
Halleck45Kocal
authored andcommitted
[Toolkit] Adds first components
1 parent 6f53d2b commit f5591ff

File tree

101 files changed

+1657
-1
lines changed

Some content is hidden

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

101 files changed

+1657
-1
lines changed

biome.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,14 @@
1515
"src/*/src/Bridge/*/assets/src/**",
1616
"src/*/src/Bridge/*/assets/test/**"
1717
],
18-
"ignore": ["**/composer.json", "**/vendor", "**/package.json", "**/node_modules", "**/var"]
18+
"ignore": [
19+
"**/composer.json",
20+
"**/vendor",
21+
"**/package.json",
22+
"**/node_modules",
23+
"**/var",
24+
"**/registry/default/**"
25+
]
1926
},
2027
"linter": {
2128
"rules": {
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"name": "Alert",
3+
"manifest": "components/Alert.json",
4+
"theme": "",
5+
"type": "component",
6+
"code": "<div {{ attributes.without('class') }}\n class=\"{{ (' ' ~ attributes.render('class'))|tailwind_merge }}\"\n>\n <twig:Button>Dependency test</twig:Button>\n {% block content %}Alert{% endblock %}\n</div>\n",
7+
"fingerprint": "9d173046a7c64cfc696f1a89aaac82a6",
8+
"dependencies": [
9+
"Button"
10+
]
11+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"name": "AspectRatio",
3+
"manifest": "components/AspectRatio.json",
4+
"theme": "",
5+
"type": "component",
6+
"code": "{%- props ratio = (4/3) -%}\n<div \n style=\"width:100%; position: relative; padding-bottom: calc((1/({{ ratio }})) * 100%);\"\n {{ attributes.defaults({}).without('style') }}\n>\n <div style=\"position: absolute; left:0; right:0; top:0; bottom: 0\">\n {% block content %}{% endblock %}\n </div>\n</div>\n",
7+
"fingerprint": "3241c112cedbdd34c8e60f79c955c097",
8+
"dependencies": []
9+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"name": "Avatar",
3+
"manifest": "components/Avatar.json",
4+
"theme": "",
5+
"type": "component",
6+
"code": "{%- props -%}\n{%- set style = html_cva(\n base: 'relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full',\n variants: {},\n compoundVariants: []\n) -%}\n\n<span\n class=\"{{ style.apply({}, attributes.render('class'))|tailwind_merge }}\"\n {{ attributes.defaults({}).without('class') }}\n>\n {% block content %}{% endblock %}\n</span>\n",
7+
"fingerprint": "c9bce3df7db54997fefe722308dcd098",
8+
"dependencies": [
9+
"AvatarFallback",
10+
"AvatarImage"
11+
]
12+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"name": "AvatarFallback",
3+
"manifest": "components/Avatar/AvatarFallback.json",
4+
"theme": "",
5+
"type": "component",
6+
"code": "{%- props -%}\n{%- set style = html_cva(\n base: 'flex h-full w-full items-center justify-center rounded-full bg-muted',\n variants: {},\n compoundVariants: []\n) -%}\n\n<span\n class=\"{{ style.apply({}, attributes.render('class'))|tailwind_merge }}\"\n {{ attributes.defaults({}).without('class') }}\n>\n {% block content %}{% endblock %}\n</span>\n",
7+
"fingerprint": "0170d9f5db25ece504dde4646320a3e1",
8+
"dependencies": [],
9+
"parentName": "Avatar"
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"name": "AvatarImage",
3+
"manifest": "components/Avatar/AvatarImage.json",
4+
"theme": "",
5+
"type": "component",
6+
"code": "{%- props -%}\n{%- set style = html_cva(\n base: 'aspect-square h-full w-full',\n variants: {},\n compoundVariants: []\n) -%}\n\n<img\n class=\"{{ style.apply({}, attributes.render('class'))|tailwind_merge }}\"\n {{ attributes.defaults({}).without('class') }}\n/>",
7+
"fingerprint": "0b34d0e7f0f6eeffea6dabaa5b84d908",
8+
"dependencies": [],
9+
"parentName": "Avatar"
10+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"name": "Badge",
3+
"manifest": "components/Badge.json",
4+
"theme": "",
5+
"type": "component",
6+
"code": "{%- props variant = 'default', outline = false -%}\n{%- set style = html_cva(\n base: 'inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2',\n variants: {\n variant: {\n default: \"border-transparent bg-primary text-primary-foreground hover:bg-primary/80\",\n secondary: \"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80\",\n destructive: \"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80\",\n },\n outline: {\n true: \"text-foreground bg-white\",\n }\n },\n compoundVariants: [{\n variant: ['default'],\n outline: ['true'],\n class: 'border-primary',\n }, {\n variant: ['secondary'],\n outline: ['true'],\n class: 'border-secondary',\n }, {\n variant: ['destructive'],\n outline: ['true'],\n class: 'border-destructive',\n },]\n) -%}\n\n<div\n class=\"{{ style.apply({variant, outline}, attributes.render('class'))|tailwind_merge }}\"\n {{ attributes.defaults({}).without('class') }}\n>\n {% block content %}{% endblock %}\n</div>\n",
7+
"fingerprint": "60d4bcc6f49889e80835dae477d51a11",
8+
"dependencies": []
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"name": "Blank",
3+
"manifest": "components/Blank.json",
4+
"theme": "",
5+
"type": "component",
6+
"code": "{%- props -%}\n{%- set style = html_cva(\n base: '',\n variants: {},\n compoundVariants: []\n) -%}\n\n<span\n class=\"{{ style.apply({}, attributes.render('class'))|tailwind_merge }}\"\n {{ attributes.defaults({}).without('class') }}\n>\n {% block content %}{% endblock %}\n</span>\n",
7+
"fingerprint": "9beffd90dfda5a86065ea9382f2b48d8",
8+
"dependencies": []
9+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "Breadcrumb",
3+
"manifest": "components/Breadcrumb.json",
4+
"theme": "",
5+
"type": "component",
6+
"code": "{%- props -%}\n{%- set style = html_cva(\n base: '',\n variants: {},\n compoundVariants: []\n) -%}\n\n<span\n class=\"{{ style.apply({}, attributes.render('class'))|tailwind_merge }}\"\n {{ attributes.defaults({}).without('class') }}\n>\n {% block content %}{% endblock %}\n</span>\n",
7+
"fingerprint": "9beffd90dfda5a86065ea9382f2b48d8",
8+
"dependencies": [
9+
"BreadcrumbEllipsis",
10+
"BreadcrumbItem",
11+
"BreadcrumbLink",
12+
"BreadcrumbList",
13+
"BreadcrumbPage",
14+
"BreadcrumbSeparator"
15+
]
16+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"name": "BreadcrumbEllipsis",
3+
"manifest": "components/Breadcrumb/BreadcrumbEllipsis.json",
4+
"theme": "",
5+
"type": "component",
6+
"code": "{%- props -%}\n{%- set style = html_cva(\n base: 'flex h-9 w-9 items-center justify-center',\n variants: {},\n compoundVariants: []\n) -%}\n\n<span\n class=\"{{ style.apply({}, attributes.render('class'))|tailwind_merge }}\"\n {{ attributes.defaults({}).without('class') }}\n role=\"presentation\"\n aria-hidden=\"true\"\n>\n {% set _block = block('content') %}\n {% if content is defined and content is not empty %}\n {% block content %}{% endblock %}\n {% else %}\n <span class=\"h-4 w-4\">...</span>\n {% endif %}\n</span>\n",
7+
"fingerprint": "c1725f1ef14bef095bdc4db7ab29d75f",
8+
"dependencies": [],
9+
"parentName": "Breadcrumb"
10+
}

0 commit comments

Comments
 (0)