@adia-ai/a2ui-corpus 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +101 -20
- package/catalog-a2ui_0_9.json +804 -41
- package/exemplars/_shell.css +88 -0
- package/exemplars/prose/auth-login/index.html +35 -26
- package/exemplars/prose/cta/a2ui.json +1 -1
- package/exemplars/prose/cta/chunks/prose-cta-card-1.json +1 -1
- package/exemplars/prose/cta/index.html +15 -33
- package/exemplars/prose/feature-grid/index.html +7 -17
- package/exemplars/prose/footer/index.html +8 -9
- package/exemplars/prose/hero/index.html +14 -24
- package/exemplars/prose/pricing/index.html +7 -17
- package/exemplars/prose/steps/index.html +8 -5
- package/exemplars/prose/testimonials/index.html +19 -16
- package/exemplars/ui/auth-login/index.html +27 -34
- package/package.json +1 -1
- package/patterns/_components.json +2 -2
- package/patterns/_index.json +131 -41
- package/patterns/data/chart-card-with-trend-footer.json +102 -0
- package/patterns/data/chart-card-with-trend-footer.yaml +56 -0
- package/patterns/data/chart-grid-with-kpis.json +314 -0
- package/patterns/data/chart-grid-with-kpis.yaml +63 -0
- package/patterns/data/chart-with-filter-pills.json +127 -0
- package/patterns/data/chart-with-filter-pills.yaml +76 -0
- package/patterns/data/stat-with-sparkline.json +67 -0
- package/patterns/data/stat-with-sparkline.yaml +51 -0
- package/fragments/content/chart-legend.json +0 -122
- package/fragments/form/rating-row.json +0 -31
- package/fragments/form/rating-row.yaml +0 -40
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "../_schema.json",
|
|
3
|
-
"name": "chart-legend",
|
|
4
|
-
"version": 1,
|
|
5
|
-
"kind": "fragment",
|
|
6
|
-
"semantic_role": "chart-annotation",
|
|
7
|
-
"description": "Horizontal chart legend — a Row of Badges with icon=\"dot\" leading marker. Each badge's variant supplies the dot color (accent / success / warning / info / danger). This is the canonical legend shape: NEVER nest Badge[text=\"●\"] + Text inside per-item Rows; that produces rows-of-rows markup. Use one Badge with icon=\"dot\" per series instead.",
|
|
8
|
-
"shape": "Row(Badge,Badge,Badge,Badge)",
|
|
9
|
-
"tags": {
|
|
10
|
-
"purpose": [
|
|
11
|
-
"chart-annotation",
|
|
12
|
-
"legend"
|
|
13
|
-
],
|
|
14
|
-
"layout": "row"
|
|
15
|
-
},
|
|
16
|
-
"keywords": [
|
|
17
|
-
"chart legend",
|
|
18
|
-
"legend",
|
|
19
|
-
"series labels",
|
|
20
|
-
"color key",
|
|
21
|
-
"data legend",
|
|
22
|
-
"chart key"
|
|
23
|
-
],
|
|
24
|
-
"related": [
|
|
25
|
-
"chart-dashboard",
|
|
26
|
-
"bar-chart-card",
|
|
27
|
-
"stat-cards"
|
|
28
|
-
],
|
|
29
|
-
"slots": [
|
|
30
|
-
{
|
|
31
|
-
"name": "label1",
|
|
32
|
-
"targetId": "cl-i1",
|
|
33
|
-
"attribute": "text",
|
|
34
|
-
"required": true
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"name": "variant1",
|
|
38
|
-
"targetId": "cl-i1",
|
|
39
|
-
"attribute": "variant",
|
|
40
|
-
"defaultValue": "accent"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"name": "label2",
|
|
44
|
-
"targetId": "cl-i2",
|
|
45
|
-
"attribute": "text"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"name": "variant2",
|
|
49
|
-
"targetId": "cl-i2",
|
|
50
|
-
"attribute": "variant",
|
|
51
|
-
"defaultValue": "success"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"name": "label3",
|
|
55
|
-
"targetId": "cl-i3",
|
|
56
|
-
"attribute": "text"
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
"name": "variant3",
|
|
60
|
-
"targetId": "cl-i3",
|
|
61
|
-
"attribute": "variant",
|
|
62
|
-
"defaultValue": "warning"
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
"name": "label4",
|
|
66
|
-
"targetId": "cl-i4",
|
|
67
|
-
"attribute": "text"
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
"name": "variant4",
|
|
71
|
-
"targetId": "cl-i4",
|
|
72
|
-
"attribute": "variant",
|
|
73
|
-
"defaultValue": "info"
|
|
74
|
-
}
|
|
75
|
-
],
|
|
76
|
-
"template": [
|
|
77
|
-
{
|
|
78
|
-
"id": "cl-root",
|
|
79
|
-
"component": "Row",
|
|
80
|
-
"gap": "3",
|
|
81
|
-
"align": "center",
|
|
82
|
-
"children": [
|
|
83
|
-
"cl-i1",
|
|
84
|
-
"cl-i2",
|
|
85
|
-
"cl-i3",
|
|
86
|
-
"cl-i4"
|
|
87
|
-
]
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
"id": "cl-i1",
|
|
91
|
-
"component": "Badge",
|
|
92
|
-
"icon": "dot",
|
|
93
|
-
"text": "Series A",
|
|
94
|
-
"variant": "accent",
|
|
95
|
-
"size": "sm"
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
"id": "cl-i2",
|
|
99
|
-
"component": "Badge",
|
|
100
|
-
"icon": "dot",
|
|
101
|
-
"text": "Series B",
|
|
102
|
-
"variant": "success",
|
|
103
|
-
"size": "sm"
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
"id": "cl-i3",
|
|
107
|
-
"component": "Badge",
|
|
108
|
-
"icon": "dot",
|
|
109
|
-
"text": "Series C",
|
|
110
|
-
"variant": "warning",
|
|
111
|
-
"size": "sm"
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
"id": "cl-i4",
|
|
115
|
-
"component": "Badge",
|
|
116
|
-
"icon": "dot",
|
|
117
|
-
"text": "Series D",
|
|
118
|
-
"variant": "info",
|
|
119
|
-
"size": "sm"
|
|
120
|
-
}
|
|
121
|
-
]
|
|
122
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "../_schema.json",
|
|
3
|
-
"name": "rating-row",
|
|
4
|
-
"version": 1,
|
|
5
|
-
"kind": "fragment",
|
|
6
|
-
"semantic_role": "rating-with-label",
|
|
7
|
-
"description": "Star rating paired with an inline label — for review forms, product cards, testimonial summaries. Defaults to 5-star scale with half-step precision.",
|
|
8
|
-
"shape": "Row(Text[v=body],Rating)",
|
|
9
|
-
"tags": {
|
|
10
|
-
"purpose": ["rating-row", "review", "feedback"],
|
|
11
|
-
"layout": "inline"
|
|
12
|
-
},
|
|
13
|
-
"keywords": ["rating", "stars", "review", "score", "feedback"],
|
|
14
|
-
"slots": [
|
|
15
|
-
{ "name": "label", "targetId": "rr-label", "attribute": "textContent", "required": true, "defaultValue": "Rating" },
|
|
16
|
-
{ "name": "value", "targetId": "rr-rating", "attribute": "value", "required": true, "defaultValue": 0 },
|
|
17
|
-
{ "name": "max", "targetId": "rr-rating", "attribute": "max", "required": false, "defaultValue": 5 },
|
|
18
|
-
{ "name": "readonly", "targetId": "rr-rating", "attribute": "readonly", "required": false, "defaultValue": false }
|
|
19
|
-
],
|
|
20
|
-
"template": [
|
|
21
|
-
{ "id": "rr-root", "component": "Row", "children": ["rr-label", "rr-rating"], "gap": "3", "align": "center" },
|
|
22
|
-
{ "id": "rr-label", "component": "Text", "variant": "body", "textContent": "Rating" },
|
|
23
|
-
{ "id": "rr-rating", "component": "Rating", "value": 0, "max": 5 }
|
|
24
|
-
],
|
|
25
|
-
"links": {
|
|
26
|
-
"uses_components": ["Row", "Text", "Rating"],
|
|
27
|
-
"used_by": [],
|
|
28
|
-
"related": []
|
|
29
|
-
},
|
|
30
|
-
"metrics": { "leverage": 4.0, "pattern_count": 1, "instance_count": 1 }
|
|
31
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
# Generated by scripts/generate-yaml-scaffolds.mjs
|
|
2
|
-
# Narrative doc — JSON sibling remains the canonical machine source.
|
|
3
|
-
# Fill in TODO sections by hand.
|
|
4
|
-
|
|
5
|
-
$schema: ../../../../../scripts/schemas/fragment.yaml.schema.json
|
|
6
|
-
kind: fragment
|
|
7
|
-
name: rating-row
|
|
8
|
-
description: >-
|
|
9
|
-
Star rating paired with an inline label — for review forms, product cards, testimonial summaries. Defaults to 5-star scale with half-step precision.
|
|
10
|
-
keywords:
|
|
11
|
-
- rating
|
|
12
|
-
- stars
|
|
13
|
-
- review
|
|
14
|
-
- score
|
|
15
|
-
- feedback
|
|
16
|
-
slots:
|
|
17
|
-
label:
|
|
18
|
-
required: true
|
|
19
|
-
target: rr-label.textContent
|
|
20
|
-
description: "TODO: describe 'label' slot"
|
|
21
|
-
value:
|
|
22
|
-
required: true
|
|
23
|
-
target: rr-rating.value
|
|
24
|
-
description: "TODO: describe 'value' slot"
|
|
25
|
-
max:
|
|
26
|
-
required: false
|
|
27
|
-
target: rr-rating.max
|
|
28
|
-
description: "TODO: describe 'max' slot"
|
|
29
|
-
readonly:
|
|
30
|
-
required: false
|
|
31
|
-
target: rr-rating.readonly
|
|
32
|
-
description: "TODO: describe 'readonly' slot"
|
|
33
|
-
leverage: 0
|
|
34
|
-
used_by: []
|
|
35
|
-
use-cases:
|
|
36
|
-
- "TODO: describe when to reach for this fragment"
|
|
37
|
-
components:
|
|
38
|
-
- Row
|
|
39
|
-
- Text
|
|
40
|
-
- Rating
|