@adia-ai/a2ui-corpus 0.7.19 → 0.7.21
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 +8208 -4773
- package/chunks/admin-shell-rounded-borderless.json +280 -0
- package/chunks/admin-shell-standard.json +303 -0
- package/chunks/agent-artifact-stub-card.json +115 -0
- package/chunks/agent-citations-source-chips.json +78 -0
- package/chunks/agent-pipeline-status-stages.json +69 -0
- package/chunks/agent-tool-call-accordion.json +109 -0
- package/chunks/avatar-stack-overflow.json +124 -0
- package/chunks/billing-cancel-subscription-danger.json +61 -0
- package/chunks/billing-invoice-history-table.json +75 -0
- package/chunks/billing-payment-method-card-on-file.json +157 -0
- package/chunks/bulk-selection-actions-bar.json +161 -0
- package/chunks/business-address-form.json +950 -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/chat-empty-state-hero.json +102 -0
- package/chunks/chat-message-assistant-byline.json +85 -0
- package/chunks/chat-message-user-byline.json +84 -0
- package/chunks/checkout-order-summary-card.json +140 -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/contact-form-card.json +197 -0
- package/chunks/contact-support-form.json +699 -0
- package/chunks/cta-banner-centered.json +102 -0
- package/chunks/data-import-wizard.json +12 -3
- package/chunks/departments-checkbox-form.json +387 -0
- package/chunks/drawer-record-detail.json +44 -0
- package/chunks/drawer-with-create-form.json +43 -0
- package/chunks/editor-statusbar-ready.json +99 -0
- package/chunks/editor-toolbar-import-export.json +195 -0
- package/chunks/extended-profile-form.json +509 -0
- package/chunks/feature-grid-three-cards.json +187 -0
- package/chunks/feature-toggle-switch-grid.json +213 -0
- package/chunks/file-upload-field.json +97 -0
- package/chunks/file-upload-form.json +248 -0
- package/chunks/form-field-with-error.json +151 -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/image-thumbnail-grid.json +77 -0
- package/chunks/integrations-api-keys-card-list.json +475 -0
- package/chunks/integrations-connect-form.json +547 -0
- package/chunks/integrations-webhooks-empty-state.json +66 -0
- package/chunks/key-value-detail-list.json +172 -0
- package/chunks/library-browser-search-filter.json +109 -0
- package/chunks/login-form-card.json +207 -0
- package/chunks/logo-cloud-trusted-by.json +235 -0
- package/chunks/map-with-location-list.json +291 -0
- package/chunks/marketing-page-shell.json +45 -11
- package/chunks/members-active-table-search-filter.json +184 -0
- package/chunks/members-pending-invites-cards.json +251 -0
- package/chunks/members-roles-permissions-list.json +104 -0
- package/chunks/multi-field-form-validation.json +391 -0
- package/chunks/order-confirmation-success-card.json +177 -0
- package/chunks/payment-checkout-form.json +338 -0
- package/chunks/plan-selection-form.json +526 -0
- package/chunks/rating-stars-review-summary.json +258 -0
- package/chunks/reg-step-shell.json +12 -3
- 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/schedule-meeting-form-card.json +229 -0
- package/chunks/searchable-picker-modal.json +164 -0
- package/chunks/security-active-sessions-devices.json +287 -0
- package/chunks/security-change-password-form.json +102 -0
- package/chunks/security-delete-account-danger.json +79 -0
- package/chunks/settings-admin-page.json +61 -34
- package/chunks/settings-danger-zone-delete-workspace.json +93 -0
- package/chunks/settings-notification-activity-checkboxes.json +108 -0
- package/chunks/settings-notification-channels-switches.json +101 -0
- package/chunks/signup-form-card.json +218 -0
- package/chunks/signup-team-size-form.json +256 -0
- package/chunks/single-select-card-form.json +228 -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/team-invite-form.json +377 -0
- package/chunks/testimonial-pull-quote.json +129 -0
- package/chunks/url-import-form.json +725 -0
- package/chunks/usage-quota-meter-card.json +217 -0
- package/package.json +1 -1
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "form-field-with-error",
|
|
3
|
+
"kind": "block",
|
|
4
|
+
"primary": "card-ui",
|
|
5
|
+
"page": "/catalog/ui-patterns/v050-form-blocks/v050-form-blocks.contents.html",
|
|
6
|
+
"slots": [],
|
|
7
|
+
"nested": [],
|
|
8
|
+
"attrs": {},
|
|
9
|
+
"html": "<card-ui>\n <header>\n <h3>Validation states</h3>\n <p slot=\"description\">Error messages live on the control via the error attribute.</p>\n </header>\n <section>\n <col-ui gap=\"4\">\n <field-ui label=\"Email\" required>\n <input-ui type=\"email\" name=\"email\" value=\"jane@\" error=\"Enter a valid email address.\" required></input-ui>\n </field-ui>\n <field-ui label=\"Username\" hint=\"Letters, numbers, and underscores only.\">\n <input-ui name=\"username\" value=\"jane_doe\" autocomplete=\"username\"></input-ui>\n </field-ui>\n <field-ui label=\"Password\" required>\n <input-ui type=\"password\" name=\"password\" value=\"abc\" error=\"Password must be at least 8 characters.\" required></input-ui>\n </field-ui>\n </col-ui>\n </section>\n <footer>\n <button-ui text=\"Save changes\" variant=\"primary\" type=\"submit\" stretch></button-ui>\n </footer>\n </card-ui>",
|
|
10
|
+
"source": "catalog/ui-patterns/v050-form-blocks/v050-form-blocks.contents.html",
|
|
11
|
+
"metadata": {
|
|
12
|
+
"domain": "forms",
|
|
13
|
+
"description": "Form fields showing the canonical validation-error shape — a field-ui whose slotted input-ui carries an `error` message (the error renders below the control in danger style, NOT as a sibling element), shown next to a valid field with a hint for contrast. Use for 'form with validation errors', 'invalid field state', 'form field error message'.",
|
|
14
|
+
"keywords": [
|
|
15
|
+
"form",
|
|
16
|
+
"field",
|
|
17
|
+
"validation",
|
|
18
|
+
"error",
|
|
19
|
+
"invalid",
|
|
20
|
+
"danger",
|
|
21
|
+
"message",
|
|
22
|
+
"hint",
|
|
23
|
+
"required",
|
|
24
|
+
"input",
|
|
25
|
+
"field-ui",
|
|
26
|
+
"error-state",
|
|
27
|
+
"inline-error",
|
|
28
|
+
"feedback",
|
|
29
|
+
"aria",
|
|
30
|
+
"validation-message",
|
|
31
|
+
"canonical"
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
"captured_at": "2026-06-10T14:28:57.979Z",
|
|
35
|
+
"template": [
|
|
36
|
+
{
|
|
37
|
+
"id": "text",
|
|
38
|
+
"component": "Text",
|
|
39
|
+
"variant": "heading",
|
|
40
|
+
"textContent": "Validation states"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"id": "text-2",
|
|
44
|
+
"component": "Text",
|
|
45
|
+
"variant": "body",
|
|
46
|
+
"slot": "description",
|
|
47
|
+
"textContent": "Error messages live on the control via the error attribute."
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"id": "header",
|
|
51
|
+
"component": "Header",
|
|
52
|
+
"children": [
|
|
53
|
+
"text",
|
|
54
|
+
"text-2"
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"id": "email",
|
|
59
|
+
"component": "Input",
|
|
60
|
+
"type": "email",
|
|
61
|
+
"required": true,
|
|
62
|
+
"error": "Enter a valid email address.",
|
|
63
|
+
"name": "email",
|
|
64
|
+
"value": "jane@"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"id": "field",
|
|
68
|
+
"component": "Field",
|
|
69
|
+
"required": true,
|
|
70
|
+
"label": "Email",
|
|
71
|
+
"children": [
|
|
72
|
+
"email"
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"id": "username",
|
|
77
|
+
"component": "Input",
|
|
78
|
+
"autocomplete": "username",
|
|
79
|
+
"name": "username",
|
|
80
|
+
"value": "jane_doe"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"id": "field-2",
|
|
84
|
+
"component": "Field",
|
|
85
|
+
"hint": "Letters, numbers, and underscores only.",
|
|
86
|
+
"label": "Username",
|
|
87
|
+
"children": [
|
|
88
|
+
"username"
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"id": "password",
|
|
93
|
+
"component": "Input",
|
|
94
|
+
"type": "password",
|
|
95
|
+
"required": true,
|
|
96
|
+
"error": "Password must be at least 8 characters.",
|
|
97
|
+
"name": "password",
|
|
98
|
+
"value": "abc"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"id": "field-3",
|
|
102
|
+
"component": "Field",
|
|
103
|
+
"required": true,
|
|
104
|
+
"label": "Password",
|
|
105
|
+
"children": [
|
|
106
|
+
"password"
|
|
107
|
+
]
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"id": "column",
|
|
111
|
+
"component": "Column",
|
|
112
|
+
"gap": "4",
|
|
113
|
+
"children": [
|
|
114
|
+
"field",
|
|
115
|
+
"field-2",
|
|
116
|
+
"field-3"
|
|
117
|
+
]
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"id": "section",
|
|
121
|
+
"component": "Section",
|
|
122
|
+
"children": [
|
|
123
|
+
"column"
|
|
124
|
+
]
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"id": "button",
|
|
128
|
+
"component": "Button",
|
|
129
|
+
"type": "submit",
|
|
130
|
+
"stretch": true,
|
|
131
|
+
"text": "Save changes",
|
|
132
|
+
"variant": "primary"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"id": "footer",
|
|
136
|
+
"component": "Footer",
|
|
137
|
+
"children": [
|
|
138
|
+
"button"
|
|
139
|
+
]
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"id": "root",
|
|
143
|
+
"component": "Card",
|
|
144
|
+
"children": [
|
|
145
|
+
"header",
|
|
146
|
+
"section",
|
|
147
|
+
"footer"
|
|
148
|
+
]
|
|
149
|
+
}
|
|
150
|
+
]
|
|
151
|
+
}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "grid-2col-entry-cards",
|
|
3
|
+
"kind": "block",
|
|
4
|
+
"primary": "div",
|
|
5
|
+
"page": "/packages/web-components/components/grid/grid.examples.html",
|
|
6
|
+
"slots": [],
|
|
7
|
+
"nested": [],
|
|
8
|
+
"attrs": {
|
|
9
|
+
"data-artifact-item": "",
|
|
10
|
+
"data-artifact-label": "2-column entry cards"
|
|
11
|
+
},
|
|
12
|
+
"html": "<grid-ui columns=\"1 2@sm\" gap=\"4\">\n <card-ui>\n <header>\n <h3>Quick start</h3>\n <tag-ui slot=\"action\" size=\"sm\" variant=\"success\">~1 min</tag-ui>\n </header>\n <section><p>Paste 3 lines into any HTML file. No install required.</p></section>\n </card-ui>\n <card-ui>\n <header>\n <h3>npm + Vite</h3>\n <tag-ui slot=\"action\" size=\"sm\" variant=\"info\">~5 min</tag-ui>\n </header>\n <section><p>Install the package and configure for production builds.</p></section>\n </card-ui>\n </grid-ui>",
|
|
13
|
+
"source": "packages/web-components/components/grid/grid.examples.html",
|
|
14
|
+
"metadata": {
|
|
15
|
+
"domain": "layout",
|
|
16
|
+
"description": "2-column entry card grid — feature cards in a 2-up grid. Common on landing pages and onboarding flows.",
|
|
17
|
+
"keywords": [
|
|
18
|
+
"grid",
|
|
19
|
+
"2-column",
|
|
20
|
+
"cards",
|
|
21
|
+
"features",
|
|
22
|
+
"options",
|
|
23
|
+
"entry",
|
|
24
|
+
"landing",
|
|
25
|
+
"onboarding",
|
|
26
|
+
"layout"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
"captured_at": "2026-06-10T20:25:14.783Z",
|
|
30
|
+
"template": [
|
|
31
|
+
{
|
|
32
|
+
"id": "text",
|
|
33
|
+
"component": "Text",
|
|
34
|
+
"variant": "heading",
|
|
35
|
+
"textContent": "Quick start"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"id": "text-2",
|
|
39
|
+
"component": "Text",
|
|
40
|
+
"textContent": "~1 min",
|
|
41
|
+
"variant": "body"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"id": "tag",
|
|
45
|
+
"component": "Tag",
|
|
46
|
+
"slot": "action",
|
|
47
|
+
"size": "sm",
|
|
48
|
+
"variant": "success",
|
|
49
|
+
"children": [
|
|
50
|
+
"text-2"
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"id": "header",
|
|
55
|
+
"component": "Header",
|
|
56
|
+
"children": [
|
|
57
|
+
"text",
|
|
58
|
+
"tag"
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"id": "text-3",
|
|
63
|
+
"component": "Text",
|
|
64
|
+
"variant": "body",
|
|
65
|
+
"textContent": "Paste 3 lines into any HTML file. No install required."
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"id": "section",
|
|
69
|
+
"component": "Section",
|
|
70
|
+
"children": [
|
|
71
|
+
"column"
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"id": "column",
|
|
76
|
+
"component": "Column",
|
|
77
|
+
"children": [
|
|
78
|
+
"text-3"
|
|
79
|
+
]
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"id": "card",
|
|
83
|
+
"component": "Card",
|
|
84
|
+
"children": [
|
|
85
|
+
"header",
|
|
86
|
+
"section"
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"id": "text-4",
|
|
91
|
+
"component": "Text",
|
|
92
|
+
"variant": "heading",
|
|
93
|
+
"textContent": "npm + Vite"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"id": "text-5",
|
|
97
|
+
"component": "Text",
|
|
98
|
+
"textContent": "~5 min",
|
|
99
|
+
"variant": "body"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"id": "tag-2",
|
|
103
|
+
"component": "Tag",
|
|
104
|
+
"slot": "action",
|
|
105
|
+
"size": "sm",
|
|
106
|
+
"variant": "info",
|
|
107
|
+
"children": [
|
|
108
|
+
"text-5"
|
|
109
|
+
]
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"id": "header-2",
|
|
113
|
+
"component": "Header",
|
|
114
|
+
"children": [
|
|
115
|
+
"text-4",
|
|
116
|
+
"tag-2"
|
|
117
|
+
]
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"id": "text-6",
|
|
121
|
+
"component": "Text",
|
|
122
|
+
"variant": "body",
|
|
123
|
+
"textContent": "Install the package and configure for production builds."
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"id": "section-2",
|
|
127
|
+
"component": "Section",
|
|
128
|
+
"children": [
|
|
129
|
+
"column-2"
|
|
130
|
+
]
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"id": "column-2",
|
|
134
|
+
"component": "Column",
|
|
135
|
+
"children": [
|
|
136
|
+
"text-6"
|
|
137
|
+
]
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"id": "card-2",
|
|
141
|
+
"component": "Card",
|
|
142
|
+
"children": [
|
|
143
|
+
"header-2",
|
|
144
|
+
"section-2"
|
|
145
|
+
]
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"id": "root",
|
|
149
|
+
"component": "Grid",
|
|
150
|
+
"columns": "1 2@sm",
|
|
151
|
+
"gap": "4",
|
|
152
|
+
"children": [
|
|
153
|
+
"card",
|
|
154
|
+
"card-2"
|
|
155
|
+
]
|
|
156
|
+
}
|
|
157
|
+
]
|
|
158
|
+
}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "grid-kpi-4col",
|
|
3
|
+
"kind": "block",
|
|
4
|
+
"primary": "div",
|
|
5
|
+
"page": "/packages/web-components/components/grid/grid.examples.html",
|
|
6
|
+
"slots": [],
|
|
7
|
+
"nested": [],
|
|
8
|
+
"attrs": {
|
|
9
|
+
"data-artifact-item": "",
|
|
10
|
+
"data-artifact-label": "KPI 4-column grid"
|
|
11
|
+
},
|
|
12
|
+
"html": "<grid-ui columns=\"4\" gap=\"3\">\n <card-ui><section><stat-ui label=\"Revenue\" value=\"$12,400\" change=\"+8.4%\" trend=\"up\" icon=\"currency-dollar\"></stat-ui></section></card-ui>\n <card-ui><section><stat-ui label=\"Users\" value=\"2,840\" change=\"+12%\" trend=\"up\" icon=\"users\"></stat-ui></section></card-ui>\n <card-ui><section><stat-ui label=\"Conversion\" value=\"3.2%\" change=\"-0.3%\" trend=\"down\" icon=\"chart-line\"></stat-ui></section></card-ui>\n <card-ui><section><stat-ui label=\"Avg. Order\" value=\"$87\" change=\"+$4\" trend=\"up\" icon=\"receipt\"></stat-ui></section></card-ui>\n </grid-ui>",
|
|
13
|
+
"source": "packages/web-components/components/grid/grid.examples.html",
|
|
14
|
+
"metadata": {
|
|
15
|
+
"domain": "data",
|
|
16
|
+
"description": "4-column KPI grid — stat cards in a fixed grid layout for dashboard metrics.",
|
|
17
|
+
"keywords": [
|
|
18
|
+
"grid",
|
|
19
|
+
"kpi",
|
|
20
|
+
"stat",
|
|
21
|
+
"card",
|
|
22
|
+
"dashboard",
|
|
23
|
+
"metrics",
|
|
24
|
+
"4-column",
|
|
25
|
+
"fixed",
|
|
26
|
+
"layout"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
"captured_at": "2026-06-10T20:25:14.783Z",
|
|
30
|
+
"template": [
|
|
31
|
+
{
|
|
32
|
+
"id": "stat",
|
|
33
|
+
"component": "Stat",
|
|
34
|
+
"change": "+8.4%",
|
|
35
|
+
"icon": "currency-dollar",
|
|
36
|
+
"label": "Revenue",
|
|
37
|
+
"trend": "up",
|
|
38
|
+
"value": "$12,400"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"id": "section",
|
|
42
|
+
"component": "Section",
|
|
43
|
+
"children": [
|
|
44
|
+
"column"
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"id": "column",
|
|
49
|
+
"component": "Column",
|
|
50
|
+
"children": [
|
|
51
|
+
"stat"
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"id": "card",
|
|
56
|
+
"component": "Card",
|
|
57
|
+
"children": [
|
|
58
|
+
"section"
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"id": "stat-2",
|
|
63
|
+
"component": "Stat",
|
|
64
|
+
"change": "+12%",
|
|
65
|
+
"icon": "users",
|
|
66
|
+
"label": "Users",
|
|
67
|
+
"trend": "up",
|
|
68
|
+
"value": "2,840"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"id": "section-2",
|
|
72
|
+
"component": "Section",
|
|
73
|
+
"children": [
|
|
74
|
+
"column-2"
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"id": "column-2",
|
|
79
|
+
"component": "Column",
|
|
80
|
+
"children": [
|
|
81
|
+
"stat-2"
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"id": "card-2",
|
|
86
|
+
"component": "Card",
|
|
87
|
+
"children": [
|
|
88
|
+
"section-2"
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"id": "stat-3",
|
|
93
|
+
"component": "Stat",
|
|
94
|
+
"change": "-0.3%",
|
|
95
|
+
"icon": "chart-line",
|
|
96
|
+
"label": "Conversion",
|
|
97
|
+
"trend": "down",
|
|
98
|
+
"value": "3.2%"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"id": "section-3",
|
|
102
|
+
"component": "Section",
|
|
103
|
+
"children": [
|
|
104
|
+
"column-3"
|
|
105
|
+
]
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"id": "column-3",
|
|
109
|
+
"component": "Column",
|
|
110
|
+
"children": [
|
|
111
|
+
"stat-3"
|
|
112
|
+
]
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"id": "card-3",
|
|
116
|
+
"component": "Card",
|
|
117
|
+
"children": [
|
|
118
|
+
"section-3"
|
|
119
|
+
]
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"id": "stat-4",
|
|
123
|
+
"component": "Stat",
|
|
124
|
+
"change": "+$4",
|
|
125
|
+
"icon": "receipt",
|
|
126
|
+
"label": "Avg. Order",
|
|
127
|
+
"trend": "up",
|
|
128
|
+
"value": "$87"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"id": "section-4",
|
|
132
|
+
"component": "Section",
|
|
133
|
+
"children": [
|
|
134
|
+
"column-4"
|
|
135
|
+
]
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"id": "column-4",
|
|
139
|
+
"component": "Column",
|
|
140
|
+
"children": [
|
|
141
|
+
"stat-4"
|
|
142
|
+
]
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"id": "card-4",
|
|
146
|
+
"component": "Card",
|
|
147
|
+
"children": [
|
|
148
|
+
"section-4"
|
|
149
|
+
]
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"id": "root",
|
|
153
|
+
"component": "Grid",
|
|
154
|
+
"columns": "4",
|
|
155
|
+
"gap": "3",
|
|
156
|
+
"children": [
|
|
157
|
+
"card",
|
|
158
|
+
"card-2",
|
|
159
|
+
"card-3",
|
|
160
|
+
"card-4"
|
|
161
|
+
]
|
|
162
|
+
}
|
|
163
|
+
]
|
|
164
|
+
}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "grid-responsive-kpi",
|
|
3
|
+
"kind": "block",
|
|
4
|
+
"primary": "div",
|
|
5
|
+
"page": "/packages/web-components/components/grid/grid.examples.html",
|
|
6
|
+
"slots": [],
|
|
7
|
+
"nested": [],
|
|
8
|
+
"attrs": {
|
|
9
|
+
"data-artifact-item": "",
|
|
10
|
+
"data-artifact-label": "responsive 1→2→4 grid"
|
|
11
|
+
},
|
|
12
|
+
"html": "<grid-ui columns=\"1 2@sm 4@lg\" gap=\"3 4@md\">\n <card-ui><section><stat-ui label=\"Revenue\" value=\"$12,400\" change=\"+8.4%\" trend=\"up\"></stat-ui></section></card-ui>\n <card-ui><section><stat-ui label=\"Users\" value=\"2,840\" change=\"+12%\" trend=\"up\"></stat-ui></section></card-ui>\n <card-ui><section><stat-ui label=\"Sessions\" value=\"48k\" change=\"+5%\" trend=\"up\"></stat-ui></section></card-ui>\n <card-ui><section><stat-ui label=\"Bounce rate\" value=\"38%\" change=\"-2%\" trend=\"up\"></stat-ui></section></card-ui>\n </grid-ui>",
|
|
13
|
+
"source": "packages/web-components/components/grid/grid.examples.html",
|
|
14
|
+
"metadata": {
|
|
15
|
+
"domain": "layout",
|
|
16
|
+
"description": "Responsive KPI grid — 1 column on mobile, 2 on tablet, 4 on desktop using @bp notation.",
|
|
17
|
+
"keywords": [
|
|
18
|
+
"grid",
|
|
19
|
+
"responsive",
|
|
20
|
+
"breakpoint",
|
|
21
|
+
"columns",
|
|
22
|
+
"kpi",
|
|
23
|
+
"card",
|
|
24
|
+
"layout",
|
|
25
|
+
"1",
|
|
26
|
+
"2",
|
|
27
|
+
"4",
|
|
28
|
+
"mobile",
|
|
29
|
+
"tablet",
|
|
30
|
+
"desktop",
|
|
31
|
+
"@bp"
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
"captured_at": "2026-06-10T20:25:14.783Z",
|
|
35
|
+
"template": [
|
|
36
|
+
{
|
|
37
|
+
"id": "stat",
|
|
38
|
+
"component": "Stat",
|
|
39
|
+
"change": "+8.4%",
|
|
40
|
+
"label": "Revenue",
|
|
41
|
+
"trend": "up",
|
|
42
|
+
"value": "$12,400"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"id": "section",
|
|
46
|
+
"component": "Section",
|
|
47
|
+
"children": [
|
|
48
|
+
"column"
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"id": "column",
|
|
53
|
+
"component": "Column",
|
|
54
|
+
"children": [
|
|
55
|
+
"stat"
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"id": "card",
|
|
60
|
+
"component": "Card",
|
|
61
|
+
"children": [
|
|
62
|
+
"section"
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"id": "stat-2",
|
|
67
|
+
"component": "Stat",
|
|
68
|
+
"change": "+12%",
|
|
69
|
+
"label": "Users",
|
|
70
|
+
"trend": "up",
|
|
71
|
+
"value": "2,840"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"id": "section-2",
|
|
75
|
+
"component": "Section",
|
|
76
|
+
"children": [
|
|
77
|
+
"column-2"
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"id": "column-2",
|
|
82
|
+
"component": "Column",
|
|
83
|
+
"children": [
|
|
84
|
+
"stat-2"
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"id": "card-2",
|
|
89
|
+
"component": "Card",
|
|
90
|
+
"children": [
|
|
91
|
+
"section-2"
|
|
92
|
+
]
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"id": "stat-3",
|
|
96
|
+
"component": "Stat",
|
|
97
|
+
"change": "+5%",
|
|
98
|
+
"label": "Sessions",
|
|
99
|
+
"trend": "up",
|
|
100
|
+
"value": "48k"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"id": "section-3",
|
|
104
|
+
"component": "Section",
|
|
105
|
+
"children": [
|
|
106
|
+
"column-3"
|
|
107
|
+
]
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"id": "column-3",
|
|
111
|
+
"component": "Column",
|
|
112
|
+
"children": [
|
|
113
|
+
"stat-3"
|
|
114
|
+
]
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"id": "card-3",
|
|
118
|
+
"component": "Card",
|
|
119
|
+
"children": [
|
|
120
|
+
"section-3"
|
|
121
|
+
]
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"id": "stat-4",
|
|
125
|
+
"component": "Stat",
|
|
126
|
+
"change": "-2%",
|
|
127
|
+
"label": "Bounce rate",
|
|
128
|
+
"trend": "up",
|
|
129
|
+
"value": "38%"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"id": "section-4",
|
|
133
|
+
"component": "Section",
|
|
134
|
+
"children": [
|
|
135
|
+
"column-4"
|
|
136
|
+
]
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"id": "column-4",
|
|
140
|
+
"component": "Column",
|
|
141
|
+
"children": [
|
|
142
|
+
"stat-4"
|
|
143
|
+
]
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"id": "card-4",
|
|
147
|
+
"component": "Card",
|
|
148
|
+
"children": [
|
|
149
|
+
"section-4"
|
|
150
|
+
]
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"id": "root",
|
|
154
|
+
"component": "Grid",
|
|
155
|
+
"columns": "1 2@sm 4@lg",
|
|
156
|
+
"gap": "3 4@md",
|
|
157
|
+
"children": [
|
|
158
|
+
"card",
|
|
159
|
+
"card-2",
|
|
160
|
+
"card-3",
|
|
161
|
+
"card-4"
|
|
162
|
+
]
|
|
163
|
+
}
|
|
164
|
+
]
|
|
165
|
+
}
|