Skip to content

Commit 18c94f6

Browse files
Add 29 example layouts for the v0.9 basic catalog (#761)
1 parent 5ee1c5b commit 18c94f6

29 files changed

Lines changed: 4980 additions & 0 deletions
Lines changed: 204 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,204 @@
1+
[
2+
{
3+
"version": "v0.9",
4+
"createSurface": {
5+
"surfaceId": "gallery-flight-status",
6+
"catalogId": "https://a2ui.org/specification/v0_9/basic_catalog.json",
7+
"sendDataModel": true
8+
}
9+
},
10+
{
11+
"version": "v0.9",
12+
"updateComponents": {
13+
"surfaceId": "gallery-flight-status",
14+
"components": [
15+
{
16+
"id": "root",
17+
"component": "Card",
18+
"child": "main-column"
19+
},
20+
{
21+
"id": "main-column",
22+
"component": "Column",
23+
"children": [
24+
"header-row",
25+
"route-row",
26+
"divider",
27+
"times-row"
28+
],
29+
"align": "stretch"
30+
},
31+
{
32+
"id": "header-row",
33+
"component": "Row",
34+
"children": [
35+
"header-left",
36+
"date"
37+
],
38+
"justify": "spaceBetween",
39+
"align": "center"
40+
},
41+
{
42+
"id": "header-left",
43+
"component": "Row",
44+
"children": [
45+
"flight-indicator",
46+
"flight-number"
47+
],
48+
"align": "center"
49+
},
50+
{
51+
"id": "flight-indicator",
52+
"component": "Icon",
53+
"name": "flight"
54+
},
55+
{
56+
"id": "flight-number",
57+
"component": "Text",
58+
"text": {
59+
"path": "/flightNumber"
60+
},
61+
"variant": "h3"
62+
},
63+
{
64+
"id": "date",
65+
"component": "Text",
66+
"text": {
67+
"path": "/date"
68+
},
69+
"variant": "caption"
70+
},
71+
{
72+
"id": "route-row",
73+
"component": "Row",
74+
"children": [
75+
"origin",
76+
"arrow",
77+
"destination"
78+
],
79+
"align": "center"
80+
},
81+
{
82+
"id": "origin",
83+
"component": "Text",
84+
"text": {
85+
"path": "/origin"
86+
},
87+
"variant": "h2"
88+
},
89+
{
90+
"id": "arrow",
91+
"component": "Text",
92+
"text": "",
93+
"variant": "h2"
94+
},
95+
{
96+
"id": "destination",
97+
"component": "Text",
98+
"text": {
99+
"path": "/destination"
100+
},
101+
"variant": "h2"
102+
},
103+
{
104+
"id": "divider",
105+
"component": "Divider"
106+
},
107+
{
108+
"id": "times-row",
109+
"component": "Row",
110+
"children": [
111+
"departure-col",
112+
"status-col",
113+
"arrival-col"
114+
],
115+
"justify": "spaceBetween"
116+
},
117+
{
118+
"id": "departure-col",
119+
"component": "Column",
120+
"children": [
121+
"departure-label",
122+
"departure-time"
123+
],
124+
"align": "start"
125+
},
126+
{
127+
"id": "departure-label",
128+
"component": "Text",
129+
"text": "Departs",
130+
"variant": "caption"
131+
},
132+
{
133+
"id": "departure-time",
134+
"component": "Text",
135+
"text": {
136+
"path": "/departureTime"
137+
},
138+
"variant": "h3"
139+
},
140+
{
141+
"id": "status-col",
142+
"component": "Column",
143+
"children": [
144+
"status-label",
145+
"status-value"
146+
],
147+
"align": "center"
148+
},
149+
{
150+
"id": "status-label",
151+
"component": "Text",
152+
"text": "Status",
153+
"variant": "caption"
154+
},
155+
{
156+
"id": "status-value",
157+
"component": "Text",
158+
"text": {
159+
"path": "/status"
160+
},
161+
"variant": "body"
162+
},
163+
{
164+
"id": "arrival-col",
165+
"component": "Column",
166+
"children": [
167+
"arrival-label",
168+
"arrival-time"
169+
],
170+
"align": "end"
171+
},
172+
{
173+
"id": "arrival-label",
174+
"component": "Text",
175+
"text": "Arrives",
176+
"variant": "caption"
177+
},
178+
{
179+
"id": "arrival-time",
180+
"component": "Text",
181+
"text": {
182+
"path": "/arrivalTime"
183+
},
184+
"variant": "h3"
185+
}
186+
]
187+
}
188+
},
189+
{
190+
"version": "v0.9",
191+
"updateDataModel": {
192+
"surfaceId": "gallery-flight-status",
193+
"value": {
194+
"flightNumber": "OS 87",
195+
"date": "Mon, Dec 15",
196+
"origin": "Vienna",
197+
"destination": "New York",
198+
"departureTime": "10:15 AM",
199+
"status": "On Time",
200+
"arrivalTime": "2:30 PM"
201+
}
202+
}
203+
}
204+
]

0 commit comments

Comments
 (0)