@auscera/design-labs 0.0.0-stage → 0.1.1
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/apps/workspace/.skills/design-labs/SKILL.md +63 -0
- package/apps/workspace/.skills/design-labs/references/commands.md +38 -0
- package/apps/workspace/AGENTS.md +9 -0
- package/apps/workspace/app/(lab)/compare/page.tsx +2 -0
- package/apps/workspace/app/(lab)/lab.css +412 -0
- package/apps/workspace/app/(lab)/layout.tsx +21 -0
- package/apps/workspace/app/(lab)/page.tsx +2 -0
- package/apps/workspace/app/api/annotations/route.ts +94 -0
- package/apps/workspace/app/api/versions/events/route.ts +63 -0
- package/apps/workspace/app/api/versions/route.ts +7 -0
- package/apps/workspace/components/animated-icons.tsx +72 -0
- package/apps/workspace/components/dotmatrix-loader.css +1228 -0
- package/apps/workspace/components/glass-controls.tsx +47 -0
- package/apps/workspace/components/lab-providers.tsx +17 -0
- package/apps/workspace/components/molecules/brand-lockup.tsx +13 -0
- package/apps/workspace/components/molecules/pane-url-popover.css +92 -0
- package/apps/workspace/components/molecules/pane-url-popover.tsx +191 -0
- package/apps/workspace/components/pane-preferences.tsx +75 -0
- package/apps/workspace/components/pane-viewport.css +34 -0
- package/apps/workspace/components/pane-viewport.tsx +199 -0
- package/apps/workspace/components/preview-pane.css +293 -0
- package/apps/workspace/components/preview-pane.tsx +662 -0
- package/apps/workspace/components/ui/dotm-triangle-11.tsx +170 -0
- package/apps/workspace/components/ui/dotmatrix-core.tsx +1649 -0
- package/apps/workspace/components/ui/dotmatrix-hooks.ts +224 -0
- package/apps/workspace/components/version-select.tsx +220 -0
- package/apps/workspace/components/workspace.tsx +313 -0
- package/apps/workspace/eslint.config.mjs +3 -0
- package/apps/workspace/lab.config.json +1 -0
- package/apps/workspace/lib/annotation-export.ts +28 -0
- package/apps/workspace/lib/annotation-types.ts +38 -0
- package/apps/workspace/lib/device-presets.ts +103 -0
- package/apps/workspace/lib/use-annotation-bridge.ts +130 -0
- package/apps/workspace/lib/version-types.ts +12 -0
- package/apps/workspace/lib/website-url.ts +78 -0
- package/apps/workspace/next-env.d.ts +6 -0
- package/apps/workspace/next.config.mjs +1 -0
- package/apps/workspace/package.json +35 -0
- package/apps/workspace/public/apple-touch-icon.png +0 -0
- package/apps/workspace/public/brand/design-labs-script.LICENSE.txt +93 -0
- package/apps/workspace/public/brand/design-labs-script.woff2 +0 -0
- package/apps/workspace/public/brand/logo.webp +0 -0
- package/apps/workspace/public/brand/wordmark.css +42 -0
- package/apps/workspace/public/favicon.ico +0 -0
- package/apps/workspace/public/icon-192.png +0 -0
- package/apps/workspace/public/icon-512.png +0 -0
- package/apps/workspace/public/preview-bridge.js +411 -0
- package/apps/workspace/public/site.webmanifest +1 -0
- package/apps/workspace/scripts/annotation-store.mjs +308 -0
- package/apps/workspace/scripts/lab.mjs +414 -0
- package/apps/workspace/scripts/migrate.mjs +2 -0
- package/apps/workspace/scripts/prepare-preview.mjs +203 -0
- package/apps/workspace/tsconfig.json +24 -0
- package/package.json +13 -3
- package/scripts/install.mjs +71 -0
- package/scripts/update.mjs +155 -0
- package/README.md +0 -3
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
/* Pane tools share the monochrome glass tokens; red identifies an active exit. */
|
|
2
|
+
:root {
|
|
3
|
+
--lab-mode-active: #e55363;
|
|
4
|
+
--lab-mode-surface: rgba(229, 83, 99, 0.14);
|
|
5
|
+
}
|
|
6
|
+
.pane-body {
|
|
7
|
+
position: relative;
|
|
8
|
+
display: flex;
|
|
9
|
+
flex: 1;
|
|
10
|
+
min-width: 0;
|
|
11
|
+
min-height: 0;
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
container-type: inline-size;
|
|
14
|
+
}
|
|
15
|
+
.pane-actions {
|
|
16
|
+
flex-wrap: wrap;
|
|
17
|
+
}
|
|
18
|
+
.pane-actions button.mode-active,
|
|
19
|
+
.pane-actions button.mode-active:hover,
|
|
20
|
+
.annotation-tools .button.mode-active,
|
|
21
|
+
.annotation-tools .button.mode-active:hover {
|
|
22
|
+
color: var(--lab-mode-active);
|
|
23
|
+
border-color: var(--lab-mode-active);
|
|
24
|
+
background: var(--lab-mode-surface);
|
|
25
|
+
}
|
|
26
|
+
.pane-actions .mode-active {
|
|
27
|
+
gap: 2px;
|
|
28
|
+
}
|
|
29
|
+
.button:disabled,
|
|
30
|
+
.pane-actions button:disabled {
|
|
31
|
+
opacity: 0.45;
|
|
32
|
+
cursor: default;
|
|
33
|
+
transform: none;
|
|
34
|
+
}
|
|
35
|
+
.annotation-tools {
|
|
36
|
+
position: absolute;
|
|
37
|
+
z-index: 10;
|
|
38
|
+
top: 12px;
|
|
39
|
+
right: 12px;
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
gap: 5px;
|
|
43
|
+
max-width: calc(100% - 24px);
|
|
44
|
+
padding: 5px;
|
|
45
|
+
border: 1px solid var(--lab-pill-border);
|
|
46
|
+
border-radius: 9999px;
|
|
47
|
+
background: var(--lab-panel);
|
|
48
|
+
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
|
|
49
|
+
}
|
|
50
|
+
.annotation-tools .button,
|
|
51
|
+
.review-panel .button {
|
|
52
|
+
min-height: 30px;
|
|
53
|
+
padding: 6px 10px;
|
|
54
|
+
gap: 6px;
|
|
55
|
+
font-size: 11px;
|
|
56
|
+
font-weight: 500;
|
|
57
|
+
white-space: nowrap;
|
|
58
|
+
}
|
|
59
|
+
.annotation-tools .button > span {
|
|
60
|
+
color: var(--lab-muted);
|
|
61
|
+
font-variant-numeric: tabular-nums;
|
|
62
|
+
}
|
|
63
|
+
.bridge-status,
|
|
64
|
+
.annotation-notice {
|
|
65
|
+
position: absolute;
|
|
66
|
+
z-index: 11;
|
|
67
|
+
top: 65px;
|
|
68
|
+
right: 12px;
|
|
69
|
+
max-width: calc(100% - 24px);
|
|
70
|
+
padding: 9px 12px;
|
|
71
|
+
border-radius: 12px;
|
|
72
|
+
border: 1px solid var(--lab-line);
|
|
73
|
+
background: var(--lab-panel);
|
|
74
|
+
color: var(--lab-muted);
|
|
75
|
+
font-size: 11px;
|
|
76
|
+
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
|
|
77
|
+
}
|
|
78
|
+
.annotation-notice {
|
|
79
|
+
top: auto;
|
|
80
|
+
bottom: 12px;
|
|
81
|
+
display: flex;
|
|
82
|
+
gap: 10px;
|
|
83
|
+
align-items: center;
|
|
84
|
+
}
|
|
85
|
+
.annotation-notice button {
|
|
86
|
+
background: none;
|
|
87
|
+
color: var(--lab-text);
|
|
88
|
+
border: 0;
|
|
89
|
+
cursor: pointer;
|
|
90
|
+
padding: 3px;
|
|
91
|
+
display: inline-flex;
|
|
92
|
+
}
|
|
93
|
+
.review-panel {
|
|
94
|
+
position: absolute;
|
|
95
|
+
z-index: 12;
|
|
96
|
+
top: 65px;
|
|
97
|
+
right: 12px;
|
|
98
|
+
width: min(400px, calc(100% - 24px));
|
|
99
|
+
max-height: calc(100% - 77px);
|
|
100
|
+
display: flex;
|
|
101
|
+
flex-direction: column;
|
|
102
|
+
gap: 12px;
|
|
103
|
+
overflow: auto;
|
|
104
|
+
padding: 16px;
|
|
105
|
+
border: 1px solid var(--lab-pill-border);
|
|
106
|
+
border-radius: 18px;
|
|
107
|
+
background: var(--lab-panel);
|
|
108
|
+
color: var(--lab-text);
|
|
109
|
+
box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
|
|
110
|
+
scrollbar-width: thin;
|
|
111
|
+
}
|
|
112
|
+
.review-panel-heading {
|
|
113
|
+
display: flex;
|
|
114
|
+
align-items: center;
|
|
115
|
+
gap: 8px;
|
|
116
|
+
justify-content: space-between;
|
|
117
|
+
}
|
|
118
|
+
.review-panel-heading strong {
|
|
119
|
+
min-width: 0;
|
|
120
|
+
overflow: hidden;
|
|
121
|
+
text-overflow: ellipsis;
|
|
122
|
+
white-space: nowrap;
|
|
123
|
+
font-size: 12px;
|
|
124
|
+
}
|
|
125
|
+
.review-panel p {
|
|
126
|
+
margin: 0;
|
|
127
|
+
color: var(--lab-muted);
|
|
128
|
+
font-size: 12px;
|
|
129
|
+
}
|
|
130
|
+
.review-panel code {
|
|
131
|
+
font:
|
|
132
|
+
10px/1.5 ui-monospace,
|
|
133
|
+
monospace;
|
|
134
|
+
color: var(--lab-muted);
|
|
135
|
+
overflow-wrap: anywhere;
|
|
136
|
+
}
|
|
137
|
+
.review-panel small {
|
|
138
|
+
color: var(--lab-muted);
|
|
139
|
+
font-size: 10px;
|
|
140
|
+
}
|
|
141
|
+
.review-panel textarea {
|
|
142
|
+
width: 100%;
|
|
143
|
+
min-height: 120px;
|
|
144
|
+
flex: none;
|
|
145
|
+
padding: 12px;
|
|
146
|
+
resize: vertical;
|
|
147
|
+
border: 1px solid var(--lab-line);
|
|
148
|
+
border-radius: 12px;
|
|
149
|
+
background: var(--lab-canvas);
|
|
150
|
+
color: var(--lab-text);
|
|
151
|
+
font: inherit;
|
|
152
|
+
font-size: 12px;
|
|
153
|
+
line-height: 1.6;
|
|
154
|
+
}
|
|
155
|
+
.review-panel textarea::placeholder {
|
|
156
|
+
color: var(--lab-muted);
|
|
157
|
+
}
|
|
158
|
+
.review-panel-actions {
|
|
159
|
+
display: flex;
|
|
160
|
+
align-items: center;
|
|
161
|
+
justify-content: flex-end;
|
|
162
|
+
gap: 7px;
|
|
163
|
+
flex-wrap: wrap;
|
|
164
|
+
}
|
|
165
|
+
.annotation-list {
|
|
166
|
+
display: flex;
|
|
167
|
+
flex-direction: column;
|
|
168
|
+
gap: 7px;
|
|
169
|
+
}
|
|
170
|
+
.annotation-list-item {
|
|
171
|
+
display: flex;
|
|
172
|
+
align-items: flex-start;
|
|
173
|
+
gap: 8px;
|
|
174
|
+
border: 1px solid var(--lab-line);
|
|
175
|
+
border-radius: 12px;
|
|
176
|
+
padding: 9px;
|
|
177
|
+
}
|
|
178
|
+
.annotation-list-item > input {
|
|
179
|
+
flex: none;
|
|
180
|
+
margin: 5px 0 0;
|
|
181
|
+
accent-color: var(--lab-text);
|
|
182
|
+
}
|
|
183
|
+
.annotation-item-content {
|
|
184
|
+
display: flex;
|
|
185
|
+
flex: 1;
|
|
186
|
+
min-width: 0;
|
|
187
|
+
flex-direction: column;
|
|
188
|
+
gap: 5px;
|
|
189
|
+
text-align: left;
|
|
190
|
+
background: none;
|
|
191
|
+
border: 0;
|
|
192
|
+
padding: 0;
|
|
193
|
+
color: var(--lab-text);
|
|
194
|
+
cursor: pointer;
|
|
195
|
+
}
|
|
196
|
+
.annotation-item-content strong {
|
|
197
|
+
font-size: 12px;
|
|
198
|
+
font-weight: 500;
|
|
199
|
+
white-space: pre-wrap;
|
|
200
|
+
overflow-wrap: anywhere;
|
|
201
|
+
}
|
|
202
|
+
.annotation-list-item > .button {
|
|
203
|
+
flex: none;
|
|
204
|
+
padding: 6px;
|
|
205
|
+
}
|
|
206
|
+
.review-select-all {
|
|
207
|
+
display: flex;
|
|
208
|
+
align-items: center;
|
|
209
|
+
gap: 7px;
|
|
210
|
+
font-size: 11px;
|
|
211
|
+
color: var(--lab-muted);
|
|
212
|
+
}
|
|
213
|
+
.review-select-all input {
|
|
214
|
+
accent-color: var(--lab-text);
|
|
215
|
+
}
|
|
216
|
+
.annotation-item-content .target-missing {
|
|
217
|
+
color: var(--lab-mode-active);
|
|
218
|
+
}
|
|
219
|
+
.annotation-pin {
|
|
220
|
+
position: absolute;
|
|
221
|
+
z-index: 6;
|
|
222
|
+
display: grid;
|
|
223
|
+
place-items: center;
|
|
224
|
+
width: 25px;
|
|
225
|
+
height: 25px;
|
|
226
|
+
border: 1px solid var(--lab-pill-bevel);
|
|
227
|
+
border-radius: 9999px;
|
|
228
|
+
background: var(--lab-mode-active);
|
|
229
|
+
color: var(--lab-text);
|
|
230
|
+
font: 600 11px/1 system-ui;
|
|
231
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
|
|
232
|
+
cursor: pointer;
|
|
233
|
+
}
|
|
234
|
+
@container (max-width:420px) {
|
|
235
|
+
.annotation-tools {
|
|
236
|
+
right: 8px;
|
|
237
|
+
left: 8px;
|
|
238
|
+
top: 8px;
|
|
239
|
+
gap: 3px;
|
|
240
|
+
justify-content: center;
|
|
241
|
+
}
|
|
242
|
+
.annotation-tools .button {
|
|
243
|
+
padding: 5px 8px;
|
|
244
|
+
}
|
|
245
|
+
.review-panel {
|
|
246
|
+
top: 60px;
|
|
247
|
+
right: 8px;
|
|
248
|
+
width: calc(100% - 16px);
|
|
249
|
+
max-height: calc(100% - 68px);
|
|
250
|
+
padding: 12px;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/* Source and device controls occupy one interchangeable slot in the main bar. */
|
|
255
|
+
.pane-source-switch {
|
|
256
|
+
flex: 0 1 auto;
|
|
257
|
+
min-width: 0;
|
|
258
|
+
max-width: 100%;
|
|
259
|
+
}
|
|
260
|
+
.pane-source-state {
|
|
261
|
+
display: flex;
|
|
262
|
+
align-items: center;
|
|
263
|
+
min-width: 0;
|
|
264
|
+
max-width: 100%;
|
|
265
|
+
width: max-content;
|
|
266
|
+
}
|
|
267
|
+
.pane-source-state .device-controls {
|
|
268
|
+
max-width: 100%;
|
|
269
|
+
}
|
|
270
|
+
.pane-source-state .version-select {
|
|
271
|
+
max-width: 100%;
|
|
272
|
+
}
|
|
273
|
+
.version-url-edit {
|
|
274
|
+
display: flex;
|
|
275
|
+
width: 100%;
|
|
276
|
+
margin-top: 5px;
|
|
277
|
+
gap: 7px;
|
|
278
|
+
min-height: 34px;
|
|
279
|
+
font-size: 12px;
|
|
280
|
+
}
|
|
281
|
+
.version-option > span {
|
|
282
|
+
flex: 1;
|
|
283
|
+
}
|
|
284
|
+
.pane-preview > .empty-state {
|
|
285
|
+
display: flex;
|
|
286
|
+
height: 100%;
|
|
287
|
+
align-items: center;
|
|
288
|
+
justify-content: center;
|
|
289
|
+
flex-direction: column;
|
|
290
|
+
gap: 12px;
|
|
291
|
+
text-align: center;
|
|
292
|
+
padding: 20px;
|
|
293
|
+
}
|