Skip to content

Commit d42b322

Browse files
author
Jean-François Lépine
committed
fails installation when fingerprint is incorrect
1 parent 8ccb3fc commit d42b322

File tree

18 files changed

+89
-27
lines changed

18 files changed

+89
-27
lines changed
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
{
22
"name": "Alert",
3+
"manifest": "components/Alert.json",
34
"theme": "",
45
"type": "component",
56
"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",
67
"fingerprint": "9d173046a7c64cfc696f1a89aaac82a6",
7-
"dependencies": []
8+
"dependencies": [
9+
"Button"
10+
]
811
}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
22
"name": "Badge",
3-
"theme": "default",
3+
"manifest": "components/Badge.json",
4+
"theme": "",
45
"type": "component",
56
"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",
68
"dependencies": []
79
}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
22
"name": "Button",
3-
"theme": "default",
3+
"manifest": "components/Button.json",
4+
"theme": "",
45
"type": "component",
56
"code": "<button {{ attributes.without('class') }}\n class=\"{{ (' ' ~ attributes.render('class'))|tailwind_merge }}\"\n>\n {% block content %}Button{% endblock %}\n</button>\n",
7+
"fingerprint": "33a53115165083b116334ea7c448cc3f",
68
"dependencies": []
79
}

src/Toolkit/registry/default/components/Card.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "Card",
3+
"manifest": "components/Card.json",
34
"theme": "",
45
"type": "component",
56
"code": "<div {{ attributes.without('class') }}\n class=\"{{ (' ' ~ attributes.render('class'))|tailwind_merge }}\"\n>\n {% block content %}{% endblock %}\n</div>\n",

src/Toolkit/registry/default/components/Navbar.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "Navbar",
3+
"manifest": "components/Navbar.json",
34
"theme": "",
45
"type": "component",
56
"code": "<nav {{ attributes.without('class') }}\n class=\"{{ (' ' ~ attributes.render('class'))|tailwind_merge }}\"\n>\n {% block content %}{% endblock %}\n</nav>\n",
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
{
22
"name": "Table",
3+
"manifest": "components/Table.json",
34
"theme": "",
45
"type": "component",
56
"code": "{# ux:with{Row, Button} #}\n<table {{ attributes.without('class') }}\n class=\"{{ (' ' ~ attributes.render('class'))|tailwind_merge }}\"\n>\n {% block content %}{% endblock %}\n</table>\n",
67
"fingerprint": "60ec2663e1ba9c92b59d57935e565b2e",
7-
"dependencies": ["Row"]
8+
"dependencies": [
9+
"Row"
10+
]
811
}

src/Toolkit/registry/default/components/Table/Row.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "Row",
3+
"manifest": "components/Table/Row.json",
34
"theme": "",
45
"type": "component",
56
"code": "<tr {{ attributes.without('class') }}\n class=\"{{ (' ' ~ attributes.render('class'))|tailwind_merge }}\"\n>\n {% block content %}Row{% endblock %}\n</tr>\n",

src/Toolkit/registry/default/examples/Badge.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "Badge",
3+
"manifest": "examples/Badge.json",
34
"theme": "",
45
"type": "example",
56
"code": "<twig:Badge>Badge</twig:Badge>\n",

src/Toolkit/registry/default/examples/BadgeOutline.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "BadgeOutline",
3+
"manifest": "examples/BadgeOutline.json",
34
"theme": "",
45
"type": "example",
56
"code": "<twig:Badge outline>Badge</twig:Badge>\n<twig:Badge variant=\"primary\" outline>Badge</twig:Badge>\n<twig:Badge variant=\"secondary\" outline>Badge</twig:Badge>\n",

src/Toolkit/registry/default/examples/Button.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "Button",
3+
"manifest": "examples/Button.json",
34
"theme": "",
45
"type": "example",
56
"code": "<twig:Button>Click me</twig:Button>\n",

0 commit comments

Comments
 (0)