@adia-ai/a2ui-corpus 0.7.20 → 0.7.22
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 +17 -0
- package/chunk-embeddings.json +1 -1
- package/chunks/_index.json +2130 -807
- package/chunks/admin-shell-rounded-borderless.json +280 -0
- package/chunks/admin-shell-standard.json +303 -0
- package/chunks/avatar-stack-overflow.json +124 -0
- package/chunks/bulk-selection-actions-bar.json +161 -0
- package/chunks/card-with-empty-state.json +96 -0
- package/chunks/card-with-form.json +143 -0
- package/chunks/card-with-sparkline.json +90 -0
- package/chunks/card-with-stat-kpi.json +95 -0
- package/chunks/col-form-stack.json +93 -0
- package/chunks/col-heading-body-action.json +79 -0
- package/chunks/col-stat-label.json +72 -0
- package/chunks/cta-banner-centered.json +102 -0
- package/chunks/drawer-record-detail.json +44 -0
- package/chunks/drawer-with-create-form.json +43 -0
- package/chunks/feature-grid-three-cards.json +187 -0
- package/chunks/grid-2col-entry-cards.json +158 -0
- package/chunks/grid-kpi-4col.json +164 -0
- package/chunks/grid-responsive-kpi.json +165 -0
- package/chunks/key-value-detail-list.json +172 -0
- package/chunks/logo-cloud-trusted-by.json +235 -0
- package/chunks/marketing-page-shell.json +45 -11
- package/chunks/order-confirmation-success-card.json +177 -0
- package/chunks/rating-stars-review-summary.json +258 -0
- package/chunks/responsive-shell-sidebar.json +79 -0
- package/chunks/row-action-cluster.json +54 -0
- package/chunks/row-avatar-name-role.json +71 -0
- package/chunks/row-icon-label.json +52 -0
- package/chunks/row-spread-label-value.json +54 -0
- package/chunks/row-wrap-tags.json +112 -0
- package/chunks/stack-avatar-badge-overlay.json +53 -0
- package/chunks/stack-image-shimmer.json +51 -0
- package/chunks/stats-band-big-numbers.json +175 -0
- package/chunks/subscription-status-renewal-card.json +229 -0
- package/chunks/table-empty-state.json +116 -0
- package/chunks/table-toolbar-no-search.json +38 -0
- package/chunks/table-toolbar-with-table.json +231 -0
- package/chunks/table-with-toolbar-card.json +76 -0
- package/chunks/testimonial-pull-quote.json +129 -0
- package/chunks/usage-quota-meter-card.json +217 -0
- package/package.json +1 -1
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "avatar-stack-overflow",
|
|
3
|
+
"kind": "block",
|
|
4
|
+
"primary": "section",
|
|
5
|
+
"page": "/catalog/ui-patterns/v050-content-blocks/v050-content-blocks.contents.html",
|
|
6
|
+
"slots": [],
|
|
7
|
+
"nested": [],
|
|
8
|
+
"attrs": {},
|
|
9
|
+
"html": "<section>\n <row-ui gap=\"3\" align=\"center\">\n <avatar-group-ui max=\"4\" size=\"sm\">\n <avatar-ui text=\"Marco Rossi\"></avatar-ui>\n <avatar-ui text=\"June Chen\"></avatar-ui>\n <avatar-ui text=\"Diana Singh\"></avatar-ui>\n <avatar-ui text=\"Aaron Tan\"></avatar-ui>\n <avatar-ui text=\"Bea Lopez\"></avatar-ui>\n <avatar-ui text=\"Sam Park\"></avatar-ui>\n <avatar-ui text=\"Tariq Idris\"></avatar-ui>\n </avatar-group-ui>\n <text-ui size=\"sm\" color=\"subtle\">7 collaborators</text-ui>\n </row-ui>\n </section>",
|
|
10
|
+
"source": "catalog/ui-patterns/v050-content-blocks/v050-content-blocks.contents.html",
|
|
11
|
+
"metadata": {
|
|
12
|
+
"domain": "display",
|
|
13
|
+
"description": "Avatar stack with overflow — a row of overlapping member avatars capped at a maximum, with a +N counter for the rest, beside a short 'who's on this' label. The compact 'shared with / collaborators / participants' presence cluster.",
|
|
14
|
+
"keywords": [
|
|
15
|
+
"avatar",
|
|
16
|
+
"stack",
|
|
17
|
+
"group",
|
|
18
|
+
"overlap",
|
|
19
|
+
"overflow",
|
|
20
|
+
"members",
|
|
21
|
+
"collaborators",
|
|
22
|
+
"participants",
|
|
23
|
+
"people",
|
|
24
|
+
"team",
|
|
25
|
+
"shared",
|
|
26
|
+
"with",
|
|
27
|
+
"assignees",
|
|
28
|
+
"attendees",
|
|
29
|
+
"presence",
|
|
30
|
+
"faces",
|
|
31
|
+
"avatar",
|
|
32
|
+
"group",
|
|
33
|
+
"plus",
|
|
34
|
+
"n",
|
|
35
|
+
"more",
|
|
36
|
+
"count",
|
|
37
|
+
"roster",
|
|
38
|
+
"contributors",
|
|
39
|
+
"who",
|
|
40
|
+
"is",
|
|
41
|
+
"here",
|
|
42
|
+
"facepile",
|
|
43
|
+
"overlapping",
|
|
44
|
+
"avatars"
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
"captured_at": "2026-06-10T19:45:40.486Z",
|
|
48
|
+
"template": [
|
|
49
|
+
{
|
|
50
|
+
"id": "avatar",
|
|
51
|
+
"component": "Avatar",
|
|
52
|
+
"text": "Marco Rossi"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"id": "avatar-2",
|
|
56
|
+
"component": "Avatar",
|
|
57
|
+
"text": "June Chen"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"id": "avatar-3",
|
|
61
|
+
"component": "Avatar",
|
|
62
|
+
"text": "Diana Singh"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"id": "avatar-4",
|
|
66
|
+
"component": "Avatar",
|
|
67
|
+
"text": "Aaron Tan"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"id": "avatar-5",
|
|
71
|
+
"component": "Avatar",
|
|
72
|
+
"text": "Bea Lopez"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"id": "avatar-6",
|
|
76
|
+
"component": "Avatar",
|
|
77
|
+
"text": "Sam Park"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"id": "avatar-7",
|
|
81
|
+
"component": "Avatar",
|
|
82
|
+
"text": "Tariq Idris"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"id": "avatar-group",
|
|
86
|
+
"component": "AvatarGroup",
|
|
87
|
+
"max": 4,
|
|
88
|
+
"size": "sm",
|
|
89
|
+
"children": [
|
|
90
|
+
"avatar",
|
|
91
|
+
"avatar-2",
|
|
92
|
+
"avatar-3",
|
|
93
|
+
"avatar-4",
|
|
94
|
+
"avatar-5",
|
|
95
|
+
"avatar-6",
|
|
96
|
+
"avatar-7"
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"id": "text",
|
|
101
|
+
"component": "Text",
|
|
102
|
+
"color": "subtle",
|
|
103
|
+
"size": "sm",
|
|
104
|
+
"textContent": "7 collaborators"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"id": "row",
|
|
108
|
+
"component": "Row",
|
|
109
|
+
"align": "center",
|
|
110
|
+
"gap": "3",
|
|
111
|
+
"children": [
|
|
112
|
+
"avatar-group",
|
|
113
|
+
"text"
|
|
114
|
+
]
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"id": "root",
|
|
118
|
+
"component": "Section",
|
|
119
|
+
"children": [
|
|
120
|
+
"row"
|
|
121
|
+
]
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bulk-selection-actions-bar",
|
|
3
|
+
"kind": "block",
|
|
4
|
+
"primary": "section",
|
|
5
|
+
"page": "/catalog/ui-patterns/v050-data-blocks/v050-data-blocks.contents.html",
|
|
6
|
+
"slots": [],
|
|
7
|
+
"nested": [],
|
|
8
|
+
"attrs": {},
|
|
9
|
+
"html": "<section>\n <card-ui raw>\n <section>\n <row-ui gap=\"3\" align=\"center\" justify=\"between\">\n <row-ui gap=\"2\" align=\"center\">\n <button-ui icon=\"x\" variant=\"ghost\" size=\"sm\"></button-ui>\n <text-ui strong size=\"sm\">12 selected</text-ui>\n </row-ui>\n <row-ui gap=\"2\">\n <button-ui text=\"Export\" icon=\"download-simple\" variant=\"outline\" size=\"sm\"></button-ui>\n <button-ui text=\"Move\" icon=\"folder\" variant=\"outline\" size=\"sm\"></button-ui>\n <button-ui text=\"Tag\" icon=\"tag\" variant=\"outline\" size=\"sm\"></button-ui>\n <button-ui text=\"Delete\" icon=\"trash\" variant=\"outline\" size=\"sm\" color=\"danger\"></button-ui>\n </row-ui>\n </row-ui>\n </section>\n </card-ui>\n </section>",
|
|
10
|
+
"source": "catalog/ui-patterns/v050-data-blocks/v050-data-blocks.contents.html",
|
|
11
|
+
"metadata": {
|
|
12
|
+
"domain": "data-management",
|
|
13
|
+
"description": "Bulk selection actions bar — a highlighted toolbar that appears when rows are selected, showing the selected-count on the left and a cluster of bulk operations (Export, Move, Tag, Delete) on the right. The 'N selected — do something to all of them' batch-action strip above a data table.",
|
|
14
|
+
"keywords": [
|
|
15
|
+
"bulk",
|
|
16
|
+
"selection",
|
|
17
|
+
"actions",
|
|
18
|
+
"bar",
|
|
19
|
+
"batch",
|
|
20
|
+
"operations",
|
|
21
|
+
"selected",
|
|
22
|
+
"rows",
|
|
23
|
+
"toolbar",
|
|
24
|
+
"multi-select",
|
|
25
|
+
"export",
|
|
26
|
+
"move",
|
|
27
|
+
"tag",
|
|
28
|
+
"delete",
|
|
29
|
+
"archive",
|
|
30
|
+
"count",
|
|
31
|
+
"clear",
|
|
32
|
+
"selection",
|
|
33
|
+
"data",
|
|
34
|
+
"management",
|
|
35
|
+
"table",
|
|
36
|
+
"bulk",
|
|
37
|
+
"edit",
|
|
38
|
+
"mass",
|
|
39
|
+
"action",
|
|
40
|
+
"apply",
|
|
41
|
+
"to",
|
|
42
|
+
"all",
|
|
43
|
+
"batch",
|
|
44
|
+
"toolbar",
|
|
45
|
+
"selected",
|
|
46
|
+
"items",
|
|
47
|
+
"deselect"
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
"captured_at": "2026-06-10T19:45:40.486Z",
|
|
51
|
+
"template": [
|
|
52
|
+
{
|
|
53
|
+
"id": "button",
|
|
54
|
+
"component": "Button",
|
|
55
|
+
"icon": "x",
|
|
56
|
+
"size": "sm",
|
|
57
|
+
"variant": "ghost"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"id": "text",
|
|
61
|
+
"component": "Text",
|
|
62
|
+
"size": "sm",
|
|
63
|
+
"strong": true,
|
|
64
|
+
"textContent": "12 selected"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"id": "row-2",
|
|
68
|
+
"component": "Row",
|
|
69
|
+
"align": "center",
|
|
70
|
+
"gap": "2",
|
|
71
|
+
"children": [
|
|
72
|
+
"button",
|
|
73
|
+
"text"
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"id": "button-2",
|
|
78
|
+
"component": "Button",
|
|
79
|
+
"icon": "download-simple",
|
|
80
|
+
"size": "sm",
|
|
81
|
+
"text": "Export",
|
|
82
|
+
"variant": "outline"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"id": "button-3",
|
|
86
|
+
"component": "Button",
|
|
87
|
+
"icon": "folder",
|
|
88
|
+
"size": "sm",
|
|
89
|
+
"text": "Move",
|
|
90
|
+
"variant": "outline"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"id": "button-4",
|
|
94
|
+
"component": "Button",
|
|
95
|
+
"icon": "tag",
|
|
96
|
+
"size": "sm",
|
|
97
|
+
"text": "Tag",
|
|
98
|
+
"variant": "outline"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"id": "button-5",
|
|
102
|
+
"component": "Button",
|
|
103
|
+
"color": "danger",
|
|
104
|
+
"icon": "trash",
|
|
105
|
+
"size": "sm",
|
|
106
|
+
"text": "Delete",
|
|
107
|
+
"variant": "outline"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"id": "row-3",
|
|
111
|
+
"component": "Row",
|
|
112
|
+
"gap": "2",
|
|
113
|
+
"children": [
|
|
114
|
+
"button-2",
|
|
115
|
+
"button-3",
|
|
116
|
+
"button-4",
|
|
117
|
+
"button-5"
|
|
118
|
+
]
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"id": "row",
|
|
122
|
+
"component": "Row",
|
|
123
|
+
"align": "center",
|
|
124
|
+
"gap": "3",
|
|
125
|
+
"justify": "between",
|
|
126
|
+
"children": [
|
|
127
|
+
"row-2",
|
|
128
|
+
"row-3"
|
|
129
|
+
]
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"id": "section",
|
|
133
|
+
"component": "Section",
|
|
134
|
+
"children": [
|
|
135
|
+
"column"
|
|
136
|
+
]
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"id": "column",
|
|
140
|
+
"component": "Column",
|
|
141
|
+
"children": [
|
|
142
|
+
"row"
|
|
143
|
+
]
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"id": "card",
|
|
147
|
+
"component": "Card",
|
|
148
|
+
"raw": true,
|
|
149
|
+
"children": [
|
|
150
|
+
"section"
|
|
151
|
+
]
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"id": "root",
|
|
155
|
+
"component": "Section",
|
|
156
|
+
"children": [
|
|
157
|
+
"card"
|
|
158
|
+
]
|
|
159
|
+
}
|
|
160
|
+
]
|
|
161
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "card-with-empty-state",
|
|
3
|
+
"kind": "block",
|
|
4
|
+
"primary": "div",
|
|
5
|
+
"page": "/packages/web-components/components/card/card.examples.html",
|
|
6
|
+
"slots": [],
|
|
7
|
+
"nested": [],
|
|
8
|
+
"attrs": {
|
|
9
|
+
"data-artifact-item": "",
|
|
10
|
+
"data-artifact-label": "card with empty state"
|
|
11
|
+
},
|
|
12
|
+
"html": "<card-ui style=\"max-width:400px\">\n <header>\n <h3>Recent transactions</h3>\n <button-ui slot=\"action\" text=\"+ Add\" variant=\"outline\" size=\"sm\"></button-ui>\n </header>\n <section>\n <empty-state-ui\n icon=\"receipt\"\n label=\"No transactions yet\"\n description=\"Transactions will appear here once your first payment is processed.\">\n <button-ui slot=\"action\" text=\"Set up payments\" variant=\"primary\"></button-ui>\n </empty-state-ui>\n </section>\n </card-ui>",
|
|
13
|
+
"source": "packages/web-components/components/card/card.examples.html",
|
|
14
|
+
"metadata": {
|
|
15
|
+
"domain": "data",
|
|
16
|
+
"description": "Empty state card — card showing no-data placeholder with icon, message, and CTA. Use when a data table or list has no rows.",
|
|
17
|
+
"keywords": [
|
|
18
|
+
"card",
|
|
19
|
+
"empty",
|
|
20
|
+
"state",
|
|
21
|
+
"no",
|
|
22
|
+
"data",
|
|
23
|
+
"placeholder",
|
|
24
|
+
"icon",
|
|
25
|
+
"cta",
|
|
26
|
+
"button",
|
|
27
|
+
"list",
|
|
28
|
+
"table",
|
|
29
|
+
"zero",
|
|
30
|
+
"rows"
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
"captured_at": "2026-06-10T20:25:14.783Z",
|
|
34
|
+
"template": [
|
|
35
|
+
{
|
|
36
|
+
"id": "text",
|
|
37
|
+
"component": "Text",
|
|
38
|
+
"variant": "heading",
|
|
39
|
+
"textContent": "Recent transactions"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"id": "button",
|
|
43
|
+
"component": "Button",
|
|
44
|
+
"slot": "action",
|
|
45
|
+
"size": "sm",
|
|
46
|
+
"text": "+ Add",
|
|
47
|
+
"variant": "outline"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"id": "header",
|
|
51
|
+
"component": "Header",
|
|
52
|
+
"children": [
|
|
53
|
+
"text",
|
|
54
|
+
"button"
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"id": "button-2",
|
|
59
|
+
"component": "Button",
|
|
60
|
+
"slot": "action",
|
|
61
|
+
"text": "Set up payments",
|
|
62
|
+
"variant": "primary"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"id": "empty-state",
|
|
66
|
+
"component": "EmptyState",
|
|
67
|
+
"description": "Transactions will appear here once your first payment is processed.",
|
|
68
|
+
"icon": "receipt",
|
|
69
|
+
"children": [
|
|
70
|
+
"button-2"
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"id": "section",
|
|
75
|
+
"component": "Section",
|
|
76
|
+
"children": [
|
|
77
|
+
"column"
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"id": "column",
|
|
82
|
+
"component": "Column",
|
|
83
|
+
"children": [
|
|
84
|
+
"empty-state"
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"id": "root",
|
|
89
|
+
"component": "Card",
|
|
90
|
+
"children": [
|
|
91
|
+
"header",
|
|
92
|
+
"section"
|
|
93
|
+
]
|
|
94
|
+
}
|
|
95
|
+
]
|
|
96
|
+
}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "card-with-form",
|
|
3
|
+
"kind": "block",
|
|
4
|
+
"primary": "div",
|
|
5
|
+
"page": "/packages/web-components/components/card/card.examples.html",
|
|
6
|
+
"slots": [],
|
|
7
|
+
"nested": [],
|
|
8
|
+
"attrs": {
|
|
9
|
+
"data-artifact-item": "",
|
|
10
|
+
"data-artifact-label": "card with form fields"
|
|
11
|
+
},
|
|
12
|
+
"html": "<card-ui style=\"max-width:400px\">\n <header>\n <h3>Edit profile</h3>\n </header>\n <section>\n <col-ui gap=\"3\">\n <field-ui label=\"Full name\">\n <input-ui value=\"Maya Chen\" placeholder=\"Full name\"></input-ui>\n </field-ui>\n <field-ui label=\"Role\">\n <select-ui value=\"designer\">\n <option value=\"designer\">Designer</option>\n <option value=\"engineer\">Engineer</option>\n <option value=\"product\">Product</option>\n </select-ui>\n </field-ui>\n </col-ui>\n </section>\n <footer>\n <row-ui gap=\"2\" justify=\"end\">\n <button-ui text=\"Cancel\" variant=\"ghost\"></button-ui>\n <button-ui text=\"Save changes\" variant=\"primary\"></button-ui>\n </row-ui>\n </footer>\n </card-ui>",
|
|
13
|
+
"source": "packages/web-components/components/card/card.examples.html",
|
|
14
|
+
"metadata": {
|
|
15
|
+
"domain": "forms",
|
|
16
|
+
"description": "Form card — card containing labeled form fields with a footer action row. Standard shape for settings forms and quick-edit surfaces.",
|
|
17
|
+
"keywords": [
|
|
18
|
+
"card",
|
|
19
|
+
"form",
|
|
20
|
+
"fields",
|
|
21
|
+
"input",
|
|
22
|
+
"select",
|
|
23
|
+
"label",
|
|
24
|
+
"footer",
|
|
25
|
+
"actions",
|
|
26
|
+
"save",
|
|
27
|
+
"cancel",
|
|
28
|
+
"settings",
|
|
29
|
+
"quick-edit"
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
"captured_at": "2026-06-10T20:25:14.783Z",
|
|
33
|
+
"template": [
|
|
34
|
+
{
|
|
35
|
+
"id": "text",
|
|
36
|
+
"component": "Text",
|
|
37
|
+
"variant": "heading",
|
|
38
|
+
"textContent": "Edit profile"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"id": "header",
|
|
42
|
+
"component": "Header",
|
|
43
|
+
"children": [
|
|
44
|
+
"text"
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"id": "input",
|
|
49
|
+
"component": "Input",
|
|
50
|
+
"placeholder": "Full name",
|
|
51
|
+
"value": "Maya Chen"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"id": "field",
|
|
55
|
+
"component": "Field",
|
|
56
|
+
"label": "Full name",
|
|
57
|
+
"children": [
|
|
58
|
+
"input"
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"id": "choice-picker",
|
|
63
|
+
"component": "ChoicePicker",
|
|
64
|
+
"value": "designer",
|
|
65
|
+
"options": [
|
|
66
|
+
{
|
|
67
|
+
"value": "designer",
|
|
68
|
+
"label": "Designer"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"value": "engineer",
|
|
72
|
+
"label": "Engineer"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"value": "product",
|
|
76
|
+
"label": "Product"
|
|
77
|
+
}
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"id": "field-2",
|
|
82
|
+
"component": "Field",
|
|
83
|
+
"label": "Role",
|
|
84
|
+
"children": [
|
|
85
|
+
"choice-picker"
|
|
86
|
+
]
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"id": "column",
|
|
90
|
+
"component": "Column",
|
|
91
|
+
"gap": "3",
|
|
92
|
+
"children": [
|
|
93
|
+
"field",
|
|
94
|
+
"field-2"
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"id": "section",
|
|
99
|
+
"component": "Section",
|
|
100
|
+
"children": [
|
|
101
|
+
"column"
|
|
102
|
+
]
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"id": "button",
|
|
106
|
+
"component": "Button",
|
|
107
|
+
"text": "Cancel",
|
|
108
|
+
"variant": "ghost"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"id": "button-2",
|
|
112
|
+
"component": "Button",
|
|
113
|
+
"text": "Save changes",
|
|
114
|
+
"variant": "primary"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"id": "row",
|
|
118
|
+
"component": "Row",
|
|
119
|
+
"gap": "2",
|
|
120
|
+
"justify": "end",
|
|
121
|
+
"children": [
|
|
122
|
+
"button",
|
|
123
|
+
"button-2"
|
|
124
|
+
]
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"id": "footer",
|
|
128
|
+
"component": "Footer",
|
|
129
|
+
"children": [
|
|
130
|
+
"row"
|
|
131
|
+
]
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"id": "root",
|
|
135
|
+
"component": "Card",
|
|
136
|
+
"children": [
|
|
137
|
+
"header",
|
|
138
|
+
"section",
|
|
139
|
+
"footer"
|
|
140
|
+
]
|
|
141
|
+
}
|
|
142
|
+
]
|
|
143
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "card-with-sparkline",
|
|
3
|
+
"kind": "block",
|
|
4
|
+
"primary": "div",
|
|
5
|
+
"page": "/packages/web-components/components/card/card.examples.html",
|
|
6
|
+
"slots": [],
|
|
7
|
+
"nested": [],
|
|
8
|
+
"attrs": {
|
|
9
|
+
"data-artifact-item": "",
|
|
10
|
+
"data-artifact-label": "card with sparkline chart"
|
|
11
|
+
},
|
|
12
|
+
"html": "<card-ui style=\"max-width:320px\">\n <header>\n <h3>Weekly signups</h3>\n <text-ui slot=\"description\">Last 7 days</text-ui>\n </header>\n <section>\n <col-ui gap=\"2\">\n <text-ui variant=\"display\">284</text-ui>\n <chart-ui type=\"line\" height=\"60\"\n data-stream-src=\"\"\n style=\"--chart-line-color:var(--a-primary)\">\n </chart-ui>\n </col-ui>\n </section>\n </card-ui>",
|
|
13
|
+
"source": "packages/web-components/components/card/card.examples.html",
|
|
14
|
+
"metadata": {
|
|
15
|
+
"domain": "data",
|
|
16
|
+
"description": "Sparkline card — KPI metric above a compact line chart. Standard dashboard widget for time-series summaries.",
|
|
17
|
+
"keywords": [
|
|
18
|
+
"card",
|
|
19
|
+
"sparkline",
|
|
20
|
+
"chart",
|
|
21
|
+
"line",
|
|
22
|
+
"metric",
|
|
23
|
+
"kpi",
|
|
24
|
+
"dashboard",
|
|
25
|
+
"widget",
|
|
26
|
+
"time-series",
|
|
27
|
+
"trend",
|
|
28
|
+
"mini-chart"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"captured_at": "2026-06-10T20:25:14.783Z",
|
|
32
|
+
"template": [
|
|
33
|
+
{
|
|
34
|
+
"id": "text",
|
|
35
|
+
"component": "Text",
|
|
36
|
+
"variant": "heading",
|
|
37
|
+
"textContent": "Weekly signups"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"id": "text-2",
|
|
41
|
+
"component": "Text",
|
|
42
|
+
"slot": "description",
|
|
43
|
+
"textContent": "Last 7 days"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"id": "header",
|
|
47
|
+
"component": "Header",
|
|
48
|
+
"children": [
|
|
49
|
+
"text",
|
|
50
|
+
"text-2"
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"id": "text-3",
|
|
55
|
+
"component": "Text",
|
|
56
|
+
"variant": "display",
|
|
57
|
+
"textContent": "284"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"id": "chart",
|
|
61
|
+
"component": "Chart",
|
|
62
|
+
"type": "line",
|
|
63
|
+
"data-stream-src": ""
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"id": "column",
|
|
67
|
+
"component": "Column",
|
|
68
|
+
"gap": "2",
|
|
69
|
+
"children": [
|
|
70
|
+
"text-3",
|
|
71
|
+
"chart"
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"id": "section",
|
|
76
|
+
"component": "Section",
|
|
77
|
+
"children": [
|
|
78
|
+
"column"
|
|
79
|
+
]
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"id": "root",
|
|
83
|
+
"component": "Card",
|
|
84
|
+
"children": [
|
|
85
|
+
"header",
|
|
86
|
+
"section"
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
}
|