@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,95 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "card-with-stat-kpi",
|
|
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 KPI stat"
|
|
11
|
+
},
|
|
12
|
+
"html": "<card-ui style=\"max-width:260px\">\n <header>\n <h3>Revenue</h3>\n <tag-ui slot=\"action\" size=\"sm\" variant=\"success\">↑ 8.4%</tag-ui>\n </header>\n <section>\n <stat-ui label=\"This month\" value=\"$12,400\" change=\"+$960\" trend=\"up\" icon=\"currency-dollar\"></stat-ui>\n </section>\n </card-ui>",
|
|
13
|
+
"source": "packages/web-components/components/card/card.examples.html",
|
|
14
|
+
"metadata": {
|
|
15
|
+
"domain": "data",
|
|
16
|
+
"description": "KPI card — card containing a stat-ui metric with label, value, trend indicator, and optional icon.",
|
|
17
|
+
"keywords": [
|
|
18
|
+
"card",
|
|
19
|
+
"stat",
|
|
20
|
+
"kpi",
|
|
21
|
+
"metric",
|
|
22
|
+
"value",
|
|
23
|
+
"trend",
|
|
24
|
+
"dashboard",
|
|
25
|
+
"analytics",
|
|
26
|
+
"revenue",
|
|
27
|
+
"users",
|
|
28
|
+
"conversion"
|
|
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": "Revenue"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"id": "text-2",
|
|
41
|
+
"component": "Text",
|
|
42
|
+
"textContent": "↑ 8.4%",
|
|
43
|
+
"variant": "body"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"id": "tag",
|
|
47
|
+
"component": "Tag",
|
|
48
|
+
"slot": "action",
|
|
49
|
+
"size": "sm",
|
|
50
|
+
"variant": "success",
|
|
51
|
+
"children": [
|
|
52
|
+
"text-2"
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"id": "header",
|
|
57
|
+
"component": "Header",
|
|
58
|
+
"children": [
|
|
59
|
+
"text",
|
|
60
|
+
"tag"
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"id": "stat",
|
|
65
|
+
"component": "Stat",
|
|
66
|
+
"change": "+$960",
|
|
67
|
+
"icon": "currency-dollar",
|
|
68
|
+
"label": "This month",
|
|
69
|
+
"trend": "up",
|
|
70
|
+
"value": "$12,400"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"id": "section",
|
|
74
|
+
"component": "Section",
|
|
75
|
+
"children": [
|
|
76
|
+
"column"
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"id": "column",
|
|
81
|
+
"component": "Column",
|
|
82
|
+
"children": [
|
|
83
|
+
"stat"
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"id": "root",
|
|
88
|
+
"component": "Card",
|
|
89
|
+
"children": [
|
|
90
|
+
"header",
|
|
91
|
+
"section"
|
|
92
|
+
]
|
|
93
|
+
}
|
|
94
|
+
]
|
|
95
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "col-form-stack",
|
|
3
|
+
"kind": "block",
|
|
4
|
+
"primary": "div",
|
|
5
|
+
"page": "/packages/web-components/components/col/col.examples.html",
|
|
6
|
+
"slots": [],
|
|
7
|
+
"nested": [],
|
|
8
|
+
"attrs": {
|
|
9
|
+
"data-artifact-item": "",
|
|
10
|
+
"data-artifact-label": "form field stack"
|
|
11
|
+
},
|
|
12
|
+
"html": "<col-ui gap=\"3\">\n <field-ui label=\"Full name\">\n <input-ui placeholder=\"Maya Chen\"></input-ui>\n </field-ui>\n <field-ui label=\"Email\">\n <input-ui type=\"email\" placeholder=\"maya@example.com\"></input-ui>\n </field-ui>\n <field-ui label=\"Role\">\n <select-ui value=\"member\">\n <option value=\"admin\">Admin</option>\n <option value=\"member\">Member</option>\n </select-ui>\n </field-ui>\n </col-ui>",
|
|
13
|
+
"source": "packages/web-components/components/col/col.examples.html",
|
|
14
|
+
"metadata": {
|
|
15
|
+
"domain": "forms",
|
|
16
|
+
"description": "Vertical form field stack — col-ui wrapping labeled inputs with consistent gap. The canonical form layout.",
|
|
17
|
+
"keywords": [
|
|
18
|
+
"col",
|
|
19
|
+
"column",
|
|
20
|
+
"form",
|
|
21
|
+
"fields",
|
|
22
|
+
"stack",
|
|
23
|
+
"vertical",
|
|
24
|
+
"gap",
|
|
25
|
+
"input",
|
|
26
|
+
"layout",
|
|
27
|
+
"stacked"
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"captured_at": "2026-06-10T20:25:14.783Z",
|
|
31
|
+
"template": [
|
|
32
|
+
{
|
|
33
|
+
"id": "input",
|
|
34
|
+
"component": "Input",
|
|
35
|
+
"placeholder": "Maya Chen"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"id": "field",
|
|
39
|
+
"component": "Field",
|
|
40
|
+
"label": "Full name",
|
|
41
|
+
"children": [
|
|
42
|
+
"input"
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"id": "input-2",
|
|
47
|
+
"component": "Input",
|
|
48
|
+
"type": "email",
|
|
49
|
+
"placeholder": "maya@example.com"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"id": "field-2",
|
|
53
|
+
"component": "Field",
|
|
54
|
+
"label": "Email",
|
|
55
|
+
"children": [
|
|
56
|
+
"input-2"
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"id": "choice-picker",
|
|
61
|
+
"component": "ChoicePicker",
|
|
62
|
+
"value": "member",
|
|
63
|
+
"options": [
|
|
64
|
+
{
|
|
65
|
+
"value": "admin",
|
|
66
|
+
"label": "Admin"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"value": "member",
|
|
70
|
+
"label": "Member"
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"id": "field-3",
|
|
76
|
+
"component": "Field",
|
|
77
|
+
"label": "Role",
|
|
78
|
+
"children": [
|
|
79
|
+
"choice-picker"
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"id": "root",
|
|
84
|
+
"component": "Column",
|
|
85
|
+
"gap": "3",
|
|
86
|
+
"children": [
|
|
87
|
+
"field",
|
|
88
|
+
"field-2",
|
|
89
|
+
"field-3"
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
]
|
|
93
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "col-heading-body-action",
|
|
3
|
+
"kind": "block",
|
|
4
|
+
"primary": "div",
|
|
5
|
+
"page": "/packages/web-components/components/col/col.examples.html",
|
|
6
|
+
"slots": [],
|
|
7
|
+
"nested": [],
|
|
8
|
+
"attrs": {
|
|
9
|
+
"data-artifact-item": "",
|
|
10
|
+
"data-artifact-label": "heading + body + action stack"
|
|
11
|
+
},
|
|
12
|
+
"html": "<col-ui gap=\"3\">\n <text-ui variant=\"heading\">Confirm deletion</text-ui>\n <text-ui>This will permanently delete the record and all associated data. This action cannot be undone.</text-ui>\n <row-ui gap=\"2\" justify=\"end\">\n <button-ui text=\"Cancel\" variant=\"ghost\"></button-ui>\n <button-ui text=\"Delete\" variant=\"primary\" color=\"danger\"></button-ui>\n </row-ui>\n </col-ui>",
|
|
13
|
+
"source": "packages/web-components/components/col/col.examples.html",
|
|
14
|
+
"metadata": {
|
|
15
|
+
"domain": "layout",
|
|
16
|
+
"description": "Content stack — heading, body text, and CTA button stacked vertically. Common inside cards, modals, and empty states.",
|
|
17
|
+
"keywords": [
|
|
18
|
+
"col",
|
|
19
|
+
"column",
|
|
20
|
+
"heading",
|
|
21
|
+
"body",
|
|
22
|
+
"text",
|
|
23
|
+
"action",
|
|
24
|
+
"cta",
|
|
25
|
+
"button",
|
|
26
|
+
"content",
|
|
27
|
+
"stack",
|
|
28
|
+
"vertical",
|
|
29
|
+
"card"
|
|
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": "Confirm deletion"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"id": "text-2",
|
|
42
|
+
"component": "Text",
|
|
43
|
+
"textContent": "This will permanently delete the record and all associated data. This action cannot be undone."
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"id": "button",
|
|
47
|
+
"component": "Button",
|
|
48
|
+
"text": "Cancel",
|
|
49
|
+
"variant": "ghost"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"id": "button-2",
|
|
53
|
+
"component": "Button",
|
|
54
|
+
"color": "danger",
|
|
55
|
+
"text": "Delete",
|
|
56
|
+
"variant": "primary"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"id": "row",
|
|
60
|
+
"component": "Row",
|
|
61
|
+
"gap": "2",
|
|
62
|
+
"justify": "end",
|
|
63
|
+
"children": [
|
|
64
|
+
"button",
|
|
65
|
+
"button-2"
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"id": "root",
|
|
70
|
+
"component": "Column",
|
|
71
|
+
"gap": "3",
|
|
72
|
+
"children": [
|
|
73
|
+
"text",
|
|
74
|
+
"text-2",
|
|
75
|
+
"row"
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
]
|
|
79
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "col-stat-label",
|
|
3
|
+
"kind": "block",
|
|
4
|
+
"primary": "div",
|
|
5
|
+
"page": "/packages/web-components/components/col/col.examples.html",
|
|
6
|
+
"slots": [],
|
|
7
|
+
"nested": [],
|
|
8
|
+
"attrs": {
|
|
9
|
+
"data-artifact-item": "",
|
|
10
|
+
"data-artifact-label": "stat + label stack"
|
|
11
|
+
},
|
|
12
|
+
"html": "<col-ui gap=\"1\" align=\"center\">\n <text-ui variant=\"display\">$12,400</text-ui>\n <text-ui variant=\"caption\">Monthly revenue</text-ui>\n <tag-ui size=\"sm\" variant=\"success\">↑ 8.4%</tag-ui>\n </col-ui>",
|
|
13
|
+
"source": "packages/web-components/components/col/col.examples.html",
|
|
14
|
+
"metadata": {
|
|
15
|
+
"domain": "data",
|
|
16
|
+
"description": "KPI stack — metric value above label. Used in stat cards, dashboard widgets, and analytics tiles.",
|
|
17
|
+
"keywords": [
|
|
18
|
+
"col",
|
|
19
|
+
"column",
|
|
20
|
+
"stat",
|
|
21
|
+
"kpi",
|
|
22
|
+
"metric",
|
|
23
|
+
"value",
|
|
24
|
+
"label",
|
|
25
|
+
"number",
|
|
26
|
+
"analytics",
|
|
27
|
+
"dashboard",
|
|
28
|
+
"widget"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"captured_at": "2026-06-10T20:25:14.783Z",
|
|
32
|
+
"template": [
|
|
33
|
+
{
|
|
34
|
+
"id": "text",
|
|
35
|
+
"component": "Text",
|
|
36
|
+
"variant": "display",
|
|
37
|
+
"textContent": "$12,400"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"id": "text-2",
|
|
41
|
+
"component": "Text",
|
|
42
|
+
"variant": "caption",
|
|
43
|
+
"textContent": "Monthly revenue"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"id": "text-3",
|
|
47
|
+
"component": "Text",
|
|
48
|
+
"textContent": "↑ 8.4%",
|
|
49
|
+
"variant": "body"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"id": "tag",
|
|
53
|
+
"component": "Tag",
|
|
54
|
+
"size": "sm",
|
|
55
|
+
"variant": "success",
|
|
56
|
+
"children": [
|
|
57
|
+
"text-3"
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"id": "root",
|
|
62
|
+
"component": "Column",
|
|
63
|
+
"align": "center",
|
|
64
|
+
"gap": "1",
|
|
65
|
+
"children": [
|
|
66
|
+
"text",
|
|
67
|
+
"text-2",
|
|
68
|
+
"tag"
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "cta-banner-centered",
|
|
3
|
+
"kind": "block",
|
|
4
|
+
"primary": "card-ui",
|
|
5
|
+
"page": "/catalog/page-shells/app/marketing-page/marketing-page.contents.html",
|
|
6
|
+
"slots": [],
|
|
7
|
+
"nested": [],
|
|
8
|
+
"attrs": {
|
|
9
|
+
"raw": "",
|
|
10
|
+
"align": "center"
|
|
11
|
+
},
|
|
12
|
+
"html": "<card-ui raw align=\"center\">\n <section>\n <col-ui align=\"center\" gap=\"3\">\n <h2>Ready to ship?</h2>\n <text-ui color=\"subtle\">Start building in minutes</text-ui>\n <button-ui text=\"Start free trial\" variant=\"primary\" size=\"lg\"></button-ui>\n </col-ui>\n </section>\n </card-ui>",
|
|
13
|
+
"source": "catalog/page-shells/app/marketing-page/marketing-page.contents.html",
|
|
14
|
+
"metadata": {
|
|
15
|
+
"domain": "marketing",
|
|
16
|
+
"description": "Centered call-to-action banner — a borderless full-width card with a centered closing headline, a one-line supporting subtitle, and a single primary action button. The 'Ready to ship? / Get started today' conversion banner that closes a marketing or landing page.",
|
|
17
|
+
"keywords": [
|
|
18
|
+
"cta",
|
|
19
|
+
"call",
|
|
20
|
+
"to",
|
|
21
|
+
"action",
|
|
22
|
+
"banner",
|
|
23
|
+
"centered",
|
|
24
|
+
"closing",
|
|
25
|
+
"conversion",
|
|
26
|
+
"sign",
|
|
27
|
+
"up",
|
|
28
|
+
"get",
|
|
29
|
+
"started",
|
|
30
|
+
"ready",
|
|
31
|
+
"to",
|
|
32
|
+
"ship",
|
|
33
|
+
"trial",
|
|
34
|
+
"headline",
|
|
35
|
+
"subtitle",
|
|
36
|
+
"primary",
|
|
37
|
+
"button",
|
|
38
|
+
"bottom",
|
|
39
|
+
"of",
|
|
40
|
+
"page",
|
|
41
|
+
"footer",
|
|
42
|
+
"cta",
|
|
43
|
+
"marketing",
|
|
44
|
+
"landing",
|
|
45
|
+
"conversion",
|
|
46
|
+
"strip",
|
|
47
|
+
"prompt",
|
|
48
|
+
"encourage",
|
|
49
|
+
"signup",
|
|
50
|
+
"final",
|
|
51
|
+
"push"
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
"captured_at": "2026-06-10T19:45:40.486Z",
|
|
55
|
+
"template": [
|
|
56
|
+
{
|
|
57
|
+
"id": "text",
|
|
58
|
+
"component": "Text",
|
|
59
|
+
"variant": "title",
|
|
60
|
+
"textContent": "Ready to ship?"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"id": "text-2",
|
|
64
|
+
"component": "Text",
|
|
65
|
+
"color": "subtle",
|
|
66
|
+
"textContent": "Start building in minutes"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"id": "button",
|
|
70
|
+
"component": "Button",
|
|
71
|
+
"size": "lg",
|
|
72
|
+
"text": "Start free trial",
|
|
73
|
+
"variant": "primary"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"id": "column",
|
|
77
|
+
"component": "Column",
|
|
78
|
+
"align": "center",
|
|
79
|
+
"gap": "3",
|
|
80
|
+
"children": [
|
|
81
|
+
"text",
|
|
82
|
+
"text-2",
|
|
83
|
+
"button"
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"id": "section",
|
|
88
|
+
"component": "Section",
|
|
89
|
+
"children": [
|
|
90
|
+
"column"
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"id": "root",
|
|
95
|
+
"component": "Card",
|
|
96
|
+
"raw": true,
|
|
97
|
+
"children": [
|
|
98
|
+
"section"
|
|
99
|
+
]
|
|
100
|
+
}
|
|
101
|
+
]
|
|
102
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "drawer-record-detail",
|
|
3
|
+
"kind": "block",
|
|
4
|
+
"primary": "div",
|
|
5
|
+
"page": "/packages/web-components/components/drawer/drawer.examples.html",
|
|
6
|
+
"slots": [],
|
|
7
|
+
"nested": [],
|
|
8
|
+
"attrs": {
|
|
9
|
+
"data-artifact-item": "",
|
|
10
|
+
"data-artifact-label": "record detail drawer"
|
|
11
|
+
},
|
|
12
|
+
"html": "<button-ui text=\"View record\" icon=\"user\" variant=\"outline\" onclick=\"this.nextElementSibling.open=true\"></button-ui>\n <drawer-ui side=\"right\" size=\"sm\" text=\"Maya Chen\">\n <section slot=\"body\">\n <col-ui gap=\"4\">\n <description-list-ui>\n <dt>Email</dt><dd>maya@example.com</dd>\n <dt>Role</dt><dd>Designer</dd>\n <dt>Status</dt><dd><tag-ui size=\"sm\" variant=\"success\">Active</tag-ui></dd>\n <dt>Joined</dt><dd>March 12, 2026</dd>\n <dt>Last active</dt><dd>Today</dd>\n </description-list-ui>\n </col-ui>\n </section>\n <footer slot=\"footer\">\n <row-ui gap=\"2\">\n <button-ui text=\"Edit\" variant=\"outline\" stretch></button-ui>\n <button-ui text=\"Remove\" variant=\"ghost\" color=\"danger\" stretch></button-ui>\n </row-ui>\n </footer>\n </drawer-ui>",
|
|
13
|
+
"source": "packages/web-components/components/drawer/drawer.examples.html",
|
|
14
|
+
"metadata": {
|
|
15
|
+
"domain": "data",
|
|
16
|
+
"description": "Record detail drawer — read-only view of a record's fields in a right-side drawer. Common for list rows that reveal detail on click.",
|
|
17
|
+
"keywords": [
|
|
18
|
+
"drawer",
|
|
19
|
+
"detail",
|
|
20
|
+
"record",
|
|
21
|
+
"view",
|
|
22
|
+
"inspect",
|
|
23
|
+
"side",
|
|
24
|
+
"panel",
|
|
25
|
+
"fields",
|
|
26
|
+
"label",
|
|
27
|
+
"value",
|
|
28
|
+
"read-only",
|
|
29
|
+
"table",
|
|
30
|
+
"list",
|
|
31
|
+
"row",
|
|
32
|
+
"click"
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
"captured_at": "2026-06-10T20:25:14.783Z",
|
|
36
|
+
"template": [
|
|
37
|
+
{
|
|
38
|
+
"id": "root",
|
|
39
|
+
"component": "Text",
|
|
40
|
+
"textContent": "Email maya@example.com Role Designer Status Active Joined March 12, 2026 Last active Today",
|
|
41
|
+
"variant": "body"
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "drawer-with-create-form",
|
|
3
|
+
"kind": "block",
|
|
4
|
+
"primary": "div",
|
|
5
|
+
"page": "/packages/web-components/components/drawer/drawer.examples.html",
|
|
6
|
+
"slots": [],
|
|
7
|
+
"nested": [],
|
|
8
|
+
"attrs": {
|
|
9
|
+
"data-artifact-item": "",
|
|
10
|
+
"data-artifact-label": "form drawer — create"
|
|
11
|
+
},
|
|
12
|
+
"html": "<button-ui text=\"+ New project\" variant=\"outline\" size=\"sm\" onclick=\"this.nextElementSibling.open=true\"></button-ui>\n <drawer-ui side=\"right\" size=\"md\" text=\"New project\">\n <section slot=\"body\">\n <col-ui gap=\"3\">\n <field-ui label=\"Project name\" required>\n <input-ui placeholder=\"My awesome project\"></input-ui>\n </field-ui>\n <field-ui label=\"Description\">\n <textarea-ui placeholder=\"Optional description…\" rows=\"3\"></textarea-ui>\n </field-ui>\n <field-ui label=\"Status\">\n <select-ui value=\"active\">\n <option value=\"active\">Active</option>\n <option value=\"draft\">Draft</option>\n <option value=\"archived\">Archived</option>\n </select-ui>\n </field-ui>\n <check-ui label=\"Notify team members\" checked></check-ui>\n </col-ui>\n </section>\n <footer slot=\"footer\">\n <row-ui gap=\"2\" justify=\"end\">\n <button-ui text=\"Cancel\" variant=\"ghost\" onclick=\"this.closest('drawer-ui').open=false\"></button-ui>\n <button-ui text=\"Create project\" variant=\"primary\"></button-ui>\n </row-ui>\n </footer>\n </drawer-ui>",
|
|
13
|
+
"source": "packages/web-components/components/drawer/drawer.examples.html",
|
|
14
|
+
"metadata": {
|
|
15
|
+
"domain": "forms",
|
|
16
|
+
"description": "Create form drawer — drawer with labeled form fields and sticky footer Cancel/Save actions. Standard shape for '+ New X' triggers.",
|
|
17
|
+
"keywords": [
|
|
18
|
+
"drawer",
|
|
19
|
+
"form",
|
|
20
|
+
"create",
|
|
21
|
+
"new",
|
|
22
|
+
"fields",
|
|
23
|
+
"input",
|
|
24
|
+
"footer",
|
|
25
|
+
"actions",
|
|
26
|
+
"cancel",
|
|
27
|
+
"save",
|
|
28
|
+
"sticky",
|
|
29
|
+
"scrollable",
|
|
30
|
+
"side",
|
|
31
|
+
"panel"
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
"captured_at": "2026-06-10T20:25:14.783Z",
|
|
35
|
+
"template": [
|
|
36
|
+
{
|
|
37
|
+
"id": "root",
|
|
38
|
+
"component": "Text",
|
|
39
|
+
"textContent": "Active Draft Archived",
|
|
40
|
+
"variant": "body"
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
}
|