@adminide-stack/clock-tik-browser 12.0.26 → 12.0.28-alpha.0
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/lib/components/navbar/ProductMegaMenu.d.ts +10 -0
- package/lib/components/navbar/ProductMegaMenu.d.ts.map +1 -0
- package/lib/components/navbar/ProductMegaMenu.js +364 -0
- package/lib/components/navbar/ProductMegaMenu.js.map +1 -0
- package/lib/components/navbar/index.d.ts.map +1 -1
- package/lib/components/navbar/index.js +5 -314
- package/lib/components/navbar/index.js.map +1 -1
- package/lib/components/navbar/marketplaceLogos.d.ts +14 -0
- package/lib/components/navbar/marketplaceLogos.d.ts.map +1 -0
- package/lib/components/navbar/marketplaceLogos.js +126 -0
- package/lib/components/navbar/marketplaceLogos.js.map +1 -0
- package/lib/components/navbar/menuData.d.ts +353 -0
- package/lib/components/navbar/menuData.d.ts.map +1 -0
- package/lib/components/navbar/menuData.js +413 -0
- package/lib/components/navbar/menuData.js.map +1 -0
- package/lib/hooks/usePrefersReducedMotion.d.ts +9 -0
- package/lib/hooks/usePrefersReducedMotion.d.ts.map +1 -0
- package/lib/hooks/usePrefersReducedMotion.js +23 -0
- package/lib/hooks/usePrefersReducedMotion.js.map +1 -0
- package/lib/pages/ProductLandingPage/ProductBlocks.d.ts +10 -0
- package/lib/pages/ProductLandingPage/ProductBlocks.d.ts.map +1 -0
- package/lib/pages/ProductLandingPage/ProductBlocks.js +1123 -0
- package/lib/pages/ProductLandingPage/ProductBlocks.js.map +1 -0
- package/lib/pages/ProductLandingPage/ProductSpecimen.d.ts +11 -0
- package/lib/pages/ProductLandingPage/ProductSpecimen.d.ts.map +1 -0
- package/lib/pages/ProductLandingPage/ProductSpecimen.js +705 -0
- package/lib/pages/ProductLandingPage/ProductSpecimen.js.map +1 -0
- package/lib/pages/ProductLandingPage/Reveal.d.ts +21 -0
- package/lib/pages/ProductLandingPage/Reveal.d.ts.map +1 -0
- package/lib/pages/ProductLandingPage/Reveal.js +94 -0
- package/lib/pages/ProductLandingPage/Reveal.js.map +1 -0
- package/lib/pages/ProductLandingPage/blockTypes.d.ts +213 -0
- package/lib/pages/ProductLandingPage/blockTypes.d.ts.map +1 -0
- package/lib/pages/ProductLandingPage/demoVideos.d.ts +17 -0
- package/lib/pages/ProductLandingPage/demoVideos.d.ts.map +1 -0
- package/lib/pages/ProductLandingPage/demoVideos.js +65 -0
- package/lib/pages/ProductLandingPage/demoVideos.js.map +1 -0
- package/lib/pages/ProductLandingPage/derivePage.d.ts +6 -0
- package/lib/pages/ProductLandingPage/derivePage.d.ts.map +1 -0
- package/lib/pages/ProductLandingPage/derivePage.js +306 -0
- package/lib/pages/ProductLandingPage/derivePage.js.map +1 -0
- package/lib/pages/ProductLandingPage/index.d.ts.map +1 -1
- package/lib/pages/ProductLandingPage/index.js +52 -1
- package/lib/pages/ProductLandingPage/index.js.map +1 -1
- package/lib/pages/ProductLandingPage/productPages.d.ts +6 -0
- package/lib/pages/ProductLandingPage/productPages.d.ts.map +1 -0
- package/lib/pages/ProductLandingPage/productPages.js +412 -0
- package/lib/pages/ProductLandingPage/productPages.js.map +1 -0
- package/lib/pages/ProductLandingPage/realProductPages.d.ts +4 -0
- package/lib/pages/ProductLandingPage/realProductPages.d.ts.map +1 -0
- package/lib/pages/ProductLandingPage/realProductPages.js +475 -0
- package/lib/pages/ProductLandingPage/realProductPages.js.map +1 -0
- package/lib/pages/ProductLandingPage/specimenData.d.ts +11 -0
- package/lib/pages/ProductLandingPage/specimenData.d.ts.map +1 -0
- package/lib/pages/ProductLandingPage/specimenData.js +1715 -0
- package/lib/pages/ProductLandingPage/specimenData.js.map +1 -0
- package/lib/pages/ProductLandingPage/specimenTypes.d.ts +170 -0
- package/lib/pages/ProductLandingPage/specimenTypes.d.ts.map +1 -0
- package/lib/pages/ProductLandingPage/workflowTemplates.d.ts +19 -0
- package/lib/pages/ProductLandingPage/workflowTemplates.d.ts.map +1 -0
- package/lib/pages/ProductLandingPage/workflowTemplates.js +278 -0
- package/lib/pages/ProductLandingPage/workflowTemplates.js.map +1 -0
- package/lib/pages/productCatalog.d.ts.map +1 -1
- package/lib/pages/productCatalog.js +177 -0
- package/lib/pages/productCatalog.js.map +1 -1
- package/lib/pages/productIcons.d.ts.map +1 -1
- package/lib/pages/productIcons.js +8 -2
- package/lib/pages/productIcons.js.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,705 @@
|
|
|
1
|
+
import {jsxs,jsx}from'react/jsx-runtime';import {Check,Loader2,X,Circle}from'lucide-react';const MONO = 'ui-monospace, "SF Mono", Menlo, Consolas, monospace';
|
|
2
|
+
const TONE = {
|
|
3
|
+
ok: 'border-emerald-400/25 bg-emerald-400/10 text-emerald-200',
|
|
4
|
+
warn: 'border-amber-400/25 bg-amber-400/10 text-amber-200',
|
|
5
|
+
info: 'border-sky-400/25 bg-sky-400/10 text-sky-200',
|
|
6
|
+
alert: 'border-rose-400/25 bg-rose-400/10 text-rose-200',
|
|
7
|
+
muted: 'border-white/10 bg-white/5 text-white/55',
|
|
8
|
+
accent: 'border-violet-400/25 bg-violet-400/10 text-violet-200'
|
|
9
|
+
};
|
|
10
|
+
const BAR_TONE = 'bg-emerald-400/70';
|
|
11
|
+
function StatusPill({
|
|
12
|
+
pill
|
|
13
|
+
}) {
|
|
14
|
+
return jsx("span", {
|
|
15
|
+
className: `inline-flex shrink-0 items-center rounded-full border px-2 py-0.5 text-[0.65rem] font-medium ${TONE[pill.tone]}`,
|
|
16
|
+
children: pill.label
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
/* ------------------------------------------------------------------ renderers */
|
|
20
|
+
function Artboard({
|
|
21
|
+
spec
|
|
22
|
+
}) {
|
|
23
|
+
return jsxs("div", {
|
|
24
|
+
className: "grid gap-3 lg:grid-cols-[150px_minmax(0,1fr)_56px]",
|
|
25
|
+
children: [jsxs("div", {
|
|
26
|
+
className: "rounded-xl border border-white/10 bg-white/[0.03] p-3",
|
|
27
|
+
children: [jsx("div", {
|
|
28
|
+
className: "text-[0.6rem] uppercase tracking-[0.18em] text-white/40",
|
|
29
|
+
style: {
|
|
30
|
+
fontFamily: MONO
|
|
31
|
+
},
|
|
32
|
+
children: "Layers"
|
|
33
|
+
}), jsx("div", {
|
|
34
|
+
className: "mt-2.5 space-y-1.5",
|
|
35
|
+
children: spec.layers.map(layer => jsxs("div", {
|
|
36
|
+
className: "flex items-center justify-between gap-2",
|
|
37
|
+
children: [jsx("span", {
|
|
38
|
+
className: "truncate text-[0.72rem] text-white/75",
|
|
39
|
+
children: layer.name
|
|
40
|
+
}), jsx("span", {
|
|
41
|
+
className: "shrink-0 text-[0.6rem] text-white/35",
|
|
42
|
+
style: {
|
|
43
|
+
fontFamily: MONO
|
|
44
|
+
},
|
|
45
|
+
children: layer.locked ? 'lock' : layer.type
|
|
46
|
+
})]
|
|
47
|
+
}, layer.name))
|
|
48
|
+
})]
|
|
49
|
+
}), jsx("div", {
|
|
50
|
+
className: "rounded-xl border border-white/10 bg-[#0b1413] p-3",
|
|
51
|
+
children: jsx("div", {
|
|
52
|
+
className: "grid grid-cols-12 gap-2",
|
|
53
|
+
children: spec.blocks.map(block => jsx("div", {
|
|
54
|
+
className: "flex items-end rounded-lg border border-white/10 p-2",
|
|
55
|
+
style: {
|
|
56
|
+
gridColumn: `span ${block.span} / span ${block.span}`,
|
|
57
|
+
height: block.height,
|
|
58
|
+
backgroundColor: block.fill
|
|
59
|
+
},
|
|
60
|
+
children: jsx("span", {
|
|
61
|
+
className: "text-[0.6rem] font-medium text-black/70",
|
|
62
|
+
style: {
|
|
63
|
+
fontFamily: MONO
|
|
64
|
+
},
|
|
65
|
+
children: block.label
|
|
66
|
+
})
|
|
67
|
+
}, block.label))
|
|
68
|
+
})
|
|
69
|
+
}), jsx("div", {
|
|
70
|
+
className: "flex gap-2 rounded-xl border border-white/10 bg-white/[0.03] p-2 lg:flex-col",
|
|
71
|
+
children: spec.swatches.map(swatch => jsx("div", {
|
|
72
|
+
className: "h-8 w-8 shrink-0 rounded-md border border-white/15",
|
|
73
|
+
style: {
|
|
74
|
+
backgroundColor: swatch
|
|
75
|
+
},
|
|
76
|
+
title: swatch
|
|
77
|
+
}, swatch))
|
|
78
|
+
})]
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
function Timeline({
|
|
82
|
+
spec
|
|
83
|
+
}) {
|
|
84
|
+
return jsxs("div", {
|
|
85
|
+
className: "space-y-2",
|
|
86
|
+
children: [jsxs("div", {
|
|
87
|
+
className: "flex items-center justify-between text-[0.62rem] text-white/40",
|
|
88
|
+
style: {
|
|
89
|
+
fontFamily: MONO
|
|
90
|
+
},
|
|
91
|
+
children: [jsx("span", {
|
|
92
|
+
children: "00:00"
|
|
93
|
+
}), jsx("span", {
|
|
94
|
+
children: spec.duration
|
|
95
|
+
})]
|
|
96
|
+
}), spec.tracks.map(track => jsxs("div", {
|
|
97
|
+
className: "grid grid-cols-[84px_minmax(0,1fr)] items-center gap-3",
|
|
98
|
+
children: [jsx("span", {
|
|
99
|
+
className: "truncate text-[0.68rem] text-white/55",
|
|
100
|
+
style: {
|
|
101
|
+
fontFamily: MONO
|
|
102
|
+
},
|
|
103
|
+
children: track.name
|
|
104
|
+
}), jsx("div", {
|
|
105
|
+
className: "relative h-9 rounded-lg border border-white/10 bg-white/[0.03]",
|
|
106
|
+
children: track.clips.map(clip => jsx("div", {
|
|
107
|
+
className: `absolute inset-y-1 flex items-center overflow-hidden rounded-md border px-2 text-[0.62rem] ${TONE[clip.tone]}`,
|
|
108
|
+
style: {
|
|
109
|
+
left: `${clip.start}%`,
|
|
110
|
+
width: `${clip.width}%`
|
|
111
|
+
},
|
|
112
|
+
children: jsx("span", {
|
|
113
|
+
className: "truncate",
|
|
114
|
+
children: clip.label
|
|
115
|
+
})
|
|
116
|
+
}, clip.label))
|
|
117
|
+
})]
|
|
118
|
+
}, track.name))]
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
function Editor({
|
|
122
|
+
spec
|
|
123
|
+
}) {
|
|
124
|
+
const lineTone = tone => {
|
|
125
|
+
if (tone === 'comment') return 'text-white/35';
|
|
126
|
+
if (tone === 'accent') return 'text-emerald-200';
|
|
127
|
+
if (tone === 'muted') return 'text-white/45';
|
|
128
|
+
return 'text-white/80';
|
|
129
|
+
};
|
|
130
|
+
return jsxs("div", {
|
|
131
|
+
className: `grid gap-3 ${spec.aside ? 'lg:grid-cols-[minmax(0,1fr)_200px]' : ''}`,
|
|
132
|
+
children: [jsxs("div", {
|
|
133
|
+
className: "overflow-x-auto rounded-xl border border-white/10 bg-[#0b1413] p-3",
|
|
134
|
+
children: [jsx("div", {
|
|
135
|
+
className: "mb-2 text-[0.6rem] uppercase tracking-[0.18em] text-white/35",
|
|
136
|
+
style: {
|
|
137
|
+
fontFamily: MONO
|
|
138
|
+
},
|
|
139
|
+
children: spec.language
|
|
140
|
+
}), jsx("pre", {
|
|
141
|
+
className: "text-[0.72rem] leading-6",
|
|
142
|
+
style: {
|
|
143
|
+
fontFamily: MONO
|
|
144
|
+
},
|
|
145
|
+
children: spec.lines.map((line, index) => jsxs("div", {
|
|
146
|
+
className: "flex gap-3",
|
|
147
|
+
children: [jsx("span", {
|
|
148
|
+
className: "w-5 shrink-0 select-none text-right text-white/20",
|
|
149
|
+
children: index + 1
|
|
150
|
+
}), jsx("span", {
|
|
151
|
+
className: lineTone(line.tone),
|
|
152
|
+
children: line.text || ' '
|
|
153
|
+
})]
|
|
154
|
+
}, `${index}-${line.text}`))
|
|
155
|
+
})]
|
|
156
|
+
}), spec.aside && jsxs("div", {
|
|
157
|
+
className: "rounded-xl border border-white/10 bg-white/[0.03] p-3",
|
|
158
|
+
children: [jsx("div", {
|
|
159
|
+
className: "text-[0.6rem] uppercase tracking-[0.18em] text-white/40",
|
|
160
|
+
style: {
|
|
161
|
+
fontFamily: MONO
|
|
162
|
+
},
|
|
163
|
+
children: spec.aside.title
|
|
164
|
+
}), jsx("ul", {
|
|
165
|
+
className: "mt-2.5 space-y-2",
|
|
166
|
+
children: spec.aside.items.map(item => jsx("li", {
|
|
167
|
+
className: "text-[0.72rem] leading-5 text-white/65",
|
|
168
|
+
children: item
|
|
169
|
+
}, item))
|
|
170
|
+
})]
|
|
171
|
+
})]
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
function Terminal({
|
|
175
|
+
spec
|
|
176
|
+
}) {
|
|
177
|
+
const icon = status => {
|
|
178
|
+
if (status === 'done') return jsx(Check, {
|
|
179
|
+
className: "h-3.5 w-3.5 text-emerald-300"
|
|
180
|
+
});
|
|
181
|
+
if (status === 'running') return jsx(Loader2, {
|
|
182
|
+
className: "h-3.5 w-3.5 animate-spin text-sky-300"
|
|
183
|
+
});
|
|
184
|
+
if (status === 'failed') return jsx(X, {
|
|
185
|
+
className: "h-3.5 w-3.5 text-rose-300"
|
|
186
|
+
});
|
|
187
|
+
return jsx(Circle, {
|
|
188
|
+
className: "h-3 w-3 text-white/25"
|
|
189
|
+
});
|
|
190
|
+
};
|
|
191
|
+
return jsxs("div", {
|
|
192
|
+
className: "rounded-xl border border-white/10 bg-[#0b1413] p-4",
|
|
193
|
+
style: {
|
|
194
|
+
fontFamily: MONO
|
|
195
|
+
},
|
|
196
|
+
children: [jsxs("div", {
|
|
197
|
+
className: "text-[0.74rem] text-emerald-200",
|
|
198
|
+
children: [jsx("span", {
|
|
199
|
+
className: "text-white/35",
|
|
200
|
+
children: "$ "
|
|
201
|
+
}), spec.command]
|
|
202
|
+
}), jsx("div", {
|
|
203
|
+
className: "mt-3 space-y-2",
|
|
204
|
+
children: spec.steps.map(step => jsxs("div", {
|
|
205
|
+
className: "flex items-start gap-2.5",
|
|
206
|
+
children: [jsx("span", {
|
|
207
|
+
className: "mt-0.5 flex h-4 w-4 shrink-0 items-center justify-center",
|
|
208
|
+
children: icon(step.status)
|
|
209
|
+
}), jsx("span", {
|
|
210
|
+
className: `text-[0.72rem] ${step.status === 'queued' ? 'text-white/35' : 'text-white/75'}`,
|
|
211
|
+
children: step.label
|
|
212
|
+
}), step.detail && jsx("span", {
|
|
213
|
+
className: "ml-auto shrink-0 text-[0.66rem] text-white/35",
|
|
214
|
+
children: step.detail
|
|
215
|
+
})]
|
|
216
|
+
}, step.label))
|
|
217
|
+
}), spec.result && jsx("div", {
|
|
218
|
+
className: "mt-3 border-t border-white/10 pt-3 text-[0.72rem] text-emerald-200",
|
|
219
|
+
children: spec.result
|
|
220
|
+
})]
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
function Thread({
|
|
224
|
+
spec
|
|
225
|
+
}) {
|
|
226
|
+
const roleStyle = role => {
|
|
227
|
+
if (role === 'customer') return 'border-white/10 bg-white/[0.04] text-white/80';
|
|
228
|
+
if (role === 'ai') return 'border-violet-400/20 bg-violet-400/10 text-violet-100';
|
|
229
|
+
if (role === 'system') return 'border-white/10 bg-transparent text-white/45';
|
|
230
|
+
return 'border-emerald-400/20 bg-emerald-400/10 text-emerald-50';
|
|
231
|
+
};
|
|
232
|
+
return jsxs("div", {
|
|
233
|
+
className: "rounded-xl border border-white/10 bg-white/[0.02] p-3",
|
|
234
|
+
children: [jsx("div", {
|
|
235
|
+
className: "mb-3 border-b border-white/10 pb-2 text-[0.62rem] uppercase tracking-[0.18em] text-white/40",
|
|
236
|
+
style: {
|
|
237
|
+
fontFamily: MONO
|
|
238
|
+
},
|
|
239
|
+
children: spec.channel
|
|
240
|
+
}), jsx("div", {
|
|
241
|
+
className: "space-y-2.5",
|
|
242
|
+
children: spec.messages.map(message => jsxs("div", {
|
|
243
|
+
className: `rounded-xl border px-3 py-2 ${roleStyle(message.role)} ${message.role === 'agent' || message.role === 'ai' ? 'ml-6' : 'mr-6'}`,
|
|
244
|
+
children: [jsxs("div", {
|
|
245
|
+
className: "flex items-baseline justify-between gap-3",
|
|
246
|
+
children: [jsx("span", {
|
|
247
|
+
className: "text-[0.68rem] font-semibold",
|
|
248
|
+
children: message.from
|
|
249
|
+
}), jsx("span", {
|
|
250
|
+
className: "shrink-0 text-[0.6rem] text-white/35",
|
|
251
|
+
style: {
|
|
252
|
+
fontFamily: MONO
|
|
253
|
+
},
|
|
254
|
+
children: message.time
|
|
255
|
+
})]
|
|
256
|
+
}), jsx("p", {
|
|
257
|
+
className: "mt-1 text-[0.76rem] leading-5",
|
|
258
|
+
children: message.text
|
|
259
|
+
})]
|
|
260
|
+
}, `${message.from}-${message.time}-${message.text.slice(0, 12)}`))
|
|
261
|
+
}), spec.composer && jsx("div", {
|
|
262
|
+
className: "mt-3 rounded-lg border border-dashed border-white/15 px-3 py-2 text-[0.72rem] text-white/35",
|
|
263
|
+
children: spec.composer
|
|
264
|
+
})]
|
|
265
|
+
});
|
|
266
|
+
}
|
|
267
|
+
function Board({
|
|
268
|
+
spec
|
|
269
|
+
}) {
|
|
270
|
+
return jsx("div", {
|
|
271
|
+
className: "grid gap-3 sm:grid-cols-2 lg:grid-cols-4",
|
|
272
|
+
children: spec.columns.map(column => jsxs("div", {
|
|
273
|
+
className: "rounded-xl border border-white/10 bg-white/[0.03] p-3",
|
|
274
|
+
children: [jsxs("div", {
|
|
275
|
+
className: "flex items-baseline justify-between gap-2",
|
|
276
|
+
children: [jsx("span", {
|
|
277
|
+
className: "text-[0.72rem] font-semibold text-white/80",
|
|
278
|
+
children: column.title
|
|
279
|
+
}), jsx("span", {
|
|
280
|
+
className: "shrink-0 text-[0.62rem] text-white/40",
|
|
281
|
+
style: {
|
|
282
|
+
fontFamily: MONO
|
|
283
|
+
},
|
|
284
|
+
children: column.badge
|
|
285
|
+
})]
|
|
286
|
+
}), jsx("div", {
|
|
287
|
+
className: "mt-2.5 space-y-2",
|
|
288
|
+
children: column.cards.map(card => jsxs("div", {
|
|
289
|
+
className: "rounded-lg border border-white/10 bg-[#0b1413] p-2.5",
|
|
290
|
+
children: [jsx("div", {
|
|
291
|
+
className: "text-[0.74rem] font-medium leading-5 text-white/85",
|
|
292
|
+
children: card.title
|
|
293
|
+
}), jsxs("div", {
|
|
294
|
+
className: "mt-1.5 flex items-center justify-between gap-2",
|
|
295
|
+
children: [jsx("span", {
|
|
296
|
+
className: "truncate text-[0.62rem] text-white/40",
|
|
297
|
+
style: {
|
|
298
|
+
fontFamily: MONO
|
|
299
|
+
},
|
|
300
|
+
children: card.meta
|
|
301
|
+
}), card.pill && jsx(StatusPill, {
|
|
302
|
+
pill: card.pill
|
|
303
|
+
})]
|
|
304
|
+
})]
|
|
305
|
+
}, card.title))
|
|
306
|
+
})]
|
|
307
|
+
}, column.title))
|
|
308
|
+
});
|
|
309
|
+
}
|
|
310
|
+
function Table({
|
|
311
|
+
spec
|
|
312
|
+
}) {
|
|
313
|
+
return jsxs("div", {
|
|
314
|
+
className: "overflow-x-auto rounded-xl border border-white/10 bg-white/[0.02]",
|
|
315
|
+
children: [jsxs("table", {
|
|
316
|
+
className: "w-full min-w-[520px] border-collapse text-left",
|
|
317
|
+
children: [jsx("thead", {
|
|
318
|
+
children: jsxs("tr", {
|
|
319
|
+
className: "border-b border-white/10",
|
|
320
|
+
children: [spec.columns.map(column => jsx("th", {
|
|
321
|
+
className: "px-3 py-2 text-[0.6rem] font-medium uppercase tracking-[0.16em] text-white/40",
|
|
322
|
+
style: {
|
|
323
|
+
fontFamily: MONO
|
|
324
|
+
},
|
|
325
|
+
children: column
|
|
326
|
+
}, column)), jsx("th", {
|
|
327
|
+
className: "px-3 py-2"
|
|
328
|
+
})]
|
|
329
|
+
})
|
|
330
|
+
}), jsx("tbody", {
|
|
331
|
+
children: spec.rows.map(row => jsxs("tr", {
|
|
332
|
+
className: "border-b border-white/5 last:border-0",
|
|
333
|
+
children: [row.cells.map((cell, index) => jsx("td", {
|
|
334
|
+
className: `px-3 py-2.5 text-[0.74rem] ${index === 0 ? 'font-medium text-white/85' : 'text-white/60'}`,
|
|
335
|
+
style: index > 0 ? {
|
|
336
|
+
fontFamily: MONO
|
|
337
|
+
} : undefined,
|
|
338
|
+
children: cell
|
|
339
|
+
}, `${cell}-${index}`)), jsx("td", {
|
|
340
|
+
className: "px-3 py-2.5 text-right",
|
|
341
|
+
children: jsx(StatusPill, {
|
|
342
|
+
pill: row.status
|
|
343
|
+
})
|
|
344
|
+
})]
|
|
345
|
+
}, row.cells.join('|')))
|
|
346
|
+
})]
|
|
347
|
+
}), spec.footer && jsx("div", {
|
|
348
|
+
className: "border-t border-white/10 px-3 py-2 text-[0.68rem] text-white/50",
|
|
349
|
+
style: {
|
|
350
|
+
fontFamily: MONO
|
|
351
|
+
},
|
|
352
|
+
children: spec.footer
|
|
353
|
+
})]
|
|
354
|
+
});
|
|
355
|
+
}
|
|
356
|
+
function Metrics({
|
|
357
|
+
spec
|
|
358
|
+
}) {
|
|
359
|
+
const peak = Math.max(...spec.chart.bars.map(bar => bar.value), 1);
|
|
360
|
+
return jsxs("div", {
|
|
361
|
+
className: "grid gap-3 lg:grid-cols-[minmax(0,1fr)_minmax(0,1.1fr)]",
|
|
362
|
+
children: [jsx("div", {
|
|
363
|
+
className: "grid grid-cols-2 gap-2.5",
|
|
364
|
+
children: spec.tiles.map(tile => jsxs("div", {
|
|
365
|
+
className: "rounded-xl border border-white/10 bg-white/[0.03] p-3",
|
|
366
|
+
children: [jsx("div", {
|
|
367
|
+
className: "text-[0.62rem] uppercase tracking-[0.14em] text-white/40",
|
|
368
|
+
children: tile.label
|
|
369
|
+
}), jsx("div", {
|
|
370
|
+
className: "mt-1.5 text-xl font-semibold text-white",
|
|
371
|
+
children: tile.value
|
|
372
|
+
}), tile.delta && jsx("div", {
|
|
373
|
+
className: `mt-1 inline-flex text-[0.66rem] ${TONE[tile.tone ?? 'ok']} rounded-full border px-1.5 py-0.5`,
|
|
374
|
+
children: tile.delta
|
|
375
|
+
})]
|
|
376
|
+
}, tile.label))
|
|
377
|
+
}), jsxs("div", {
|
|
378
|
+
className: "rounded-xl border border-white/10 bg-white/[0.03] p-3",
|
|
379
|
+
children: [jsxs("div", {
|
|
380
|
+
className: "flex items-baseline justify-between",
|
|
381
|
+
children: [jsx("span", {
|
|
382
|
+
className: "text-[0.72rem] text-white/70",
|
|
383
|
+
children: spec.chart.label
|
|
384
|
+
}), jsx("span", {
|
|
385
|
+
className: "text-[0.62rem] text-white/35",
|
|
386
|
+
style: {
|
|
387
|
+
fontFamily: MONO
|
|
388
|
+
},
|
|
389
|
+
children: spec.chart.unit
|
|
390
|
+
})]
|
|
391
|
+
}), jsx("div", {
|
|
392
|
+
className: "mt-4 flex h-[120px] items-end gap-2",
|
|
393
|
+
children: spec.chart.bars.map(bar => jsxs("div", {
|
|
394
|
+
className: "flex flex-1 flex-col items-center gap-1.5",
|
|
395
|
+
children: [jsx("div", {
|
|
396
|
+
className: `w-full rounded-t ${BAR_TONE}`,
|
|
397
|
+
style: {
|
|
398
|
+
height: `${Math.max(bar.value / peak * 100, 4)}%`
|
|
399
|
+
},
|
|
400
|
+
title: `${bar.label}: ${bar.value}`
|
|
401
|
+
}), jsx("span", {
|
|
402
|
+
className: "text-[0.58rem] text-white/35",
|
|
403
|
+
style: {
|
|
404
|
+
fontFamily: MONO
|
|
405
|
+
},
|
|
406
|
+
children: bar.label
|
|
407
|
+
})]
|
|
408
|
+
}, bar.label))
|
|
409
|
+
})]
|
|
410
|
+
})]
|
|
411
|
+
});
|
|
412
|
+
}
|
|
413
|
+
function DocumentPreview({
|
|
414
|
+
spec
|
|
415
|
+
}) {
|
|
416
|
+
return jsxs("div", {
|
|
417
|
+
className: "rounded-xl border border-white/10 bg-[#0b1413] p-4 sm:p-5",
|
|
418
|
+
children: [jsxs("div", {
|
|
419
|
+
className: "border-b border-white/10 pb-3",
|
|
420
|
+
children: [jsx("div", {
|
|
421
|
+
className: "text-base font-semibold text-white",
|
|
422
|
+
children: spec.title
|
|
423
|
+
}), jsx("div", {
|
|
424
|
+
className: "mt-1.5 flex flex-wrap gap-x-4 gap-y-1",
|
|
425
|
+
children: spec.meta.map(item => jsx("span", {
|
|
426
|
+
className: "text-[0.66rem] text-white/40",
|
|
427
|
+
style: {
|
|
428
|
+
fontFamily: MONO
|
|
429
|
+
},
|
|
430
|
+
children: item
|
|
431
|
+
}, item))
|
|
432
|
+
})]
|
|
433
|
+
}), jsx("div", {
|
|
434
|
+
className: "mt-3 space-y-3",
|
|
435
|
+
children: spec.clauses.map(clause => jsxs("div", {
|
|
436
|
+
children: [jsxs("div", {
|
|
437
|
+
className: "flex items-center justify-between gap-3",
|
|
438
|
+
children: [jsx("span", {
|
|
439
|
+
className: "text-[0.74rem] font-semibold text-white/85",
|
|
440
|
+
children: clause.heading
|
|
441
|
+
}), clause.pill && jsx(StatusPill, {
|
|
442
|
+
pill: clause.pill
|
|
443
|
+
})]
|
|
444
|
+
}), jsx("p", {
|
|
445
|
+
className: "mt-1 text-[0.74rem] leading-6 text-white/55",
|
|
446
|
+
children: clause.body
|
|
447
|
+
})]
|
|
448
|
+
}, clause.heading))
|
|
449
|
+
}), spec.footer && jsx("div", {
|
|
450
|
+
className: "mt-4 border-t border-dashed border-white/15 pt-3 text-[0.68rem] text-white/45",
|
|
451
|
+
style: {
|
|
452
|
+
fontFamily: MONO
|
|
453
|
+
},
|
|
454
|
+
children: spec.footer
|
|
455
|
+
})]
|
|
456
|
+
});
|
|
457
|
+
}
|
|
458
|
+
function Grid({
|
|
459
|
+
spec
|
|
460
|
+
}) {
|
|
461
|
+
return jsx("div", {
|
|
462
|
+
className: "grid gap-3 sm:grid-cols-2 lg:grid-cols-4",
|
|
463
|
+
children: spec.items.map(item => jsxs("div", {
|
|
464
|
+
className: "flex flex-col rounded-xl border border-white/10 bg-white/[0.03] p-3",
|
|
465
|
+
children: [jsxs("div", {
|
|
466
|
+
className: "flex items-start justify-between gap-2",
|
|
467
|
+
children: [jsx("span", {
|
|
468
|
+
className: "text-[0.78rem] font-medium leading-5 text-white/85",
|
|
469
|
+
children: item.title
|
|
470
|
+
}), jsx(StatusPill, {
|
|
471
|
+
pill: item.pill
|
|
472
|
+
})]
|
|
473
|
+
}), jsx("span", {
|
|
474
|
+
className: "mt-1.5 text-[0.66rem] text-white/40",
|
|
475
|
+
style: {
|
|
476
|
+
fontFamily: MONO
|
|
477
|
+
},
|
|
478
|
+
children: item.meta
|
|
479
|
+
}), jsx("span", {
|
|
480
|
+
className: "mt-3 text-base font-semibold text-white",
|
|
481
|
+
children: item.value
|
|
482
|
+
})]
|
|
483
|
+
}, item.title))
|
|
484
|
+
});
|
|
485
|
+
}
|
|
486
|
+
function Calendar({
|
|
487
|
+
spec
|
|
488
|
+
}) {
|
|
489
|
+
const peak = Math.max(...spec.rows.flatMap(row => row.hours), 1);
|
|
490
|
+
return jsx("div", {
|
|
491
|
+
className: "overflow-x-auto rounded-xl border border-white/10 bg-white/[0.02] p-3",
|
|
492
|
+
children: jsxs("div", {
|
|
493
|
+
className: "min-w-[520px]",
|
|
494
|
+
children: [jsxs("div", {
|
|
495
|
+
className: "grid gap-2 border-b border-white/10 pb-2 text-[0.6rem] uppercase tracking-[0.16em] text-white/40",
|
|
496
|
+
style: {
|
|
497
|
+
gridTemplateColumns: `150px repeat(${spec.days.length}, minmax(0,1fr))`,
|
|
498
|
+
fontFamily: MONO
|
|
499
|
+
},
|
|
500
|
+
children: [jsx("span", {
|
|
501
|
+
children: "Project"
|
|
502
|
+
}), spec.days.map(day => jsx("span", {
|
|
503
|
+
className: "text-center",
|
|
504
|
+
children: day
|
|
505
|
+
}, day))]
|
|
506
|
+
}), spec.rows.map(row => jsxs("div", {
|
|
507
|
+
className: "grid items-center gap-2 border-b border-white/5 py-2 last:border-0",
|
|
508
|
+
style: {
|
|
509
|
+
gridTemplateColumns: `150px repeat(${spec.days.length}, minmax(0,1fr))`
|
|
510
|
+
},
|
|
511
|
+
children: [jsxs("div", {
|
|
512
|
+
className: "min-w-0",
|
|
513
|
+
children: [jsx("div", {
|
|
514
|
+
className: "truncate text-[0.74rem] font-medium text-white/85",
|
|
515
|
+
children: row.label
|
|
516
|
+
}), jsx("div", {
|
|
517
|
+
className: "truncate text-[0.62rem] text-white/40",
|
|
518
|
+
style: {
|
|
519
|
+
fontFamily: MONO
|
|
520
|
+
},
|
|
521
|
+
children: row.client
|
|
522
|
+
})]
|
|
523
|
+
}), row.hours.map((hours, index) => jsx("div", {
|
|
524
|
+
className: "flex h-9 items-end",
|
|
525
|
+
children: hours > 0 ? jsx("div", {
|
|
526
|
+
className: "w-full rounded border border-emerald-400/25 bg-emerald-400/15 text-center text-[0.6rem] leading-[1.6] text-emerald-100",
|
|
527
|
+
style: {
|
|
528
|
+
height: `${Math.max(hours / peak * 100, 26)}%`,
|
|
529
|
+
fontFamily: MONO
|
|
530
|
+
},
|
|
531
|
+
children: hours
|
|
532
|
+
}) : jsx("div", {
|
|
533
|
+
className: "h-1.5 w-full rounded bg-white/5"
|
|
534
|
+
})
|
|
535
|
+
}, `${row.label}-${index}`))]
|
|
536
|
+
}, row.label)), jsx("div", {
|
|
537
|
+
className: "pt-2 text-[0.68rem] text-white/50",
|
|
538
|
+
style: {
|
|
539
|
+
fontFamily: MONO
|
|
540
|
+
},
|
|
541
|
+
children: spec.footer
|
|
542
|
+
})]
|
|
543
|
+
})
|
|
544
|
+
});
|
|
545
|
+
}
|
|
546
|
+
function Wallet({
|
|
547
|
+
spec
|
|
548
|
+
}) {
|
|
549
|
+
return jsxs("div", {
|
|
550
|
+
className: "grid gap-3 lg:grid-cols-[240px_minmax(0,1fr)]",
|
|
551
|
+
children: [jsxs("div", {
|
|
552
|
+
className: "flex flex-col justify-between rounded-2xl border border-emerald-400/20 bg-gradient-to-br from-emerald-500/20 via-emerald-400/5 to-transparent p-4",
|
|
553
|
+
children: [jsxs("div", {
|
|
554
|
+
className: "flex items-start justify-between",
|
|
555
|
+
children: [jsx("span", {
|
|
556
|
+
className: "text-[0.62rem] uppercase tracking-[0.18em] text-white/50",
|
|
557
|
+
children: spec.card.label
|
|
558
|
+
}), jsx("span", {
|
|
559
|
+
className: "h-5 w-7 rounded border border-white/20 bg-white/10"
|
|
560
|
+
})]
|
|
561
|
+
}), jsxs("div", {
|
|
562
|
+
className: "mt-8",
|
|
563
|
+
children: [jsxs("div", {
|
|
564
|
+
className: "text-lg text-white",
|
|
565
|
+
style: {
|
|
566
|
+
fontFamily: MONO
|
|
567
|
+
},
|
|
568
|
+
children: ["\u2022\u2022\u2022\u2022 \u2022\u2022\u2022\u2022 \u2022\u2022\u2022\u2022 ", spec.card.last4]
|
|
569
|
+
}), jsxs("div", {
|
|
570
|
+
className: "mt-2 flex items-baseline justify-between",
|
|
571
|
+
children: [jsx("span", {
|
|
572
|
+
className: "text-[0.7rem] text-white/60",
|
|
573
|
+
children: spec.card.holder
|
|
574
|
+
}), jsxs("span", {
|
|
575
|
+
className: "text-[0.66rem] text-white/45",
|
|
576
|
+
style: {
|
|
577
|
+
fontFamily: MONO
|
|
578
|
+
},
|
|
579
|
+
children: [spec.card.balance, " / ", spec.card.limit]
|
|
580
|
+
})]
|
|
581
|
+
})]
|
|
582
|
+
})]
|
|
583
|
+
}), jsx("div", {
|
|
584
|
+
className: "rounded-xl border border-white/10 bg-white/[0.02]",
|
|
585
|
+
children: spec.transactions.map(transaction => jsxs("div", {
|
|
586
|
+
className: "flex items-center gap-3 border-b border-white/5 px-3 py-2.5 last:border-0",
|
|
587
|
+
children: [jsxs("div", {
|
|
588
|
+
className: "min-w-0 flex-1",
|
|
589
|
+
children: [jsx("div", {
|
|
590
|
+
className: "truncate text-[0.76rem] font-medium text-white/85",
|
|
591
|
+
children: transaction.merchant
|
|
592
|
+
}), jsx("div", {
|
|
593
|
+
className: "truncate text-[0.62rem] text-white/40",
|
|
594
|
+
style: {
|
|
595
|
+
fontFamily: MONO
|
|
596
|
+
},
|
|
597
|
+
children: transaction.category
|
|
598
|
+
})]
|
|
599
|
+
}), jsx("span", {
|
|
600
|
+
className: "shrink-0 text-[0.76rem] text-white/80",
|
|
601
|
+
style: {
|
|
602
|
+
fontFamily: MONO
|
|
603
|
+
},
|
|
604
|
+
children: transaction.amount
|
|
605
|
+
}), jsx(StatusPill, {
|
|
606
|
+
pill: transaction.status
|
|
607
|
+
})]
|
|
608
|
+
}, transaction.merchant))
|
|
609
|
+
})]
|
|
610
|
+
});
|
|
611
|
+
}
|
|
612
|
+
/* ------------------------------------------------------------------ frame */
|
|
613
|
+
function renderSpecimen(spec) {
|
|
614
|
+
switch (spec.kind) {
|
|
615
|
+
case 'artboard':
|
|
616
|
+
return jsx(Artboard, {
|
|
617
|
+
spec: spec
|
|
618
|
+
});
|
|
619
|
+
case 'timeline':
|
|
620
|
+
return jsx(Timeline, {
|
|
621
|
+
spec: spec
|
|
622
|
+
});
|
|
623
|
+
case 'editor':
|
|
624
|
+
return jsx(Editor, {
|
|
625
|
+
spec: spec
|
|
626
|
+
});
|
|
627
|
+
case 'terminal':
|
|
628
|
+
return jsx(Terminal, {
|
|
629
|
+
spec: spec
|
|
630
|
+
});
|
|
631
|
+
case 'thread':
|
|
632
|
+
return jsx(Thread, {
|
|
633
|
+
spec: spec
|
|
634
|
+
});
|
|
635
|
+
case 'board':
|
|
636
|
+
return jsx(Board, {
|
|
637
|
+
spec: spec
|
|
638
|
+
});
|
|
639
|
+
case 'table':
|
|
640
|
+
return jsx(Table, {
|
|
641
|
+
spec: spec
|
|
642
|
+
});
|
|
643
|
+
case 'metrics':
|
|
644
|
+
return jsx(Metrics, {
|
|
645
|
+
spec: spec
|
|
646
|
+
});
|
|
647
|
+
case 'document':
|
|
648
|
+
return jsx(DocumentPreview, {
|
|
649
|
+
spec: spec
|
|
650
|
+
});
|
|
651
|
+
case 'grid':
|
|
652
|
+
return jsx(Grid, {
|
|
653
|
+
spec: spec
|
|
654
|
+
});
|
|
655
|
+
case 'calendar':
|
|
656
|
+
return jsx(Calendar, {
|
|
657
|
+
spec: spec
|
|
658
|
+
});
|
|
659
|
+
case 'wallet':
|
|
660
|
+
return jsx(Wallet, {
|
|
661
|
+
spec: spec
|
|
662
|
+
});
|
|
663
|
+
default:
|
|
664
|
+
return null;
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
/**
|
|
668
|
+
* The worked example on a product page: a real screen from the product, built from that
|
|
669
|
+
* product's own data rather than a shared placeholder.
|
|
670
|
+
*/
|
|
671
|
+
function ProductSpecimen({
|
|
672
|
+
spec
|
|
673
|
+
}) {
|
|
674
|
+
return jsxs("div", {
|
|
675
|
+
className: "overflow-hidden rounded-[24px] border border-white/10 bg-[#0f1a19] shadow-[0_28px_70px_rgba(0,0,0,0.28)]",
|
|
676
|
+
children: [jsxs("div", {
|
|
677
|
+
className: "flex flex-wrap items-center gap-3 border-b border-white/10 px-4 py-3",
|
|
678
|
+
children: [jsxs("span", {
|
|
679
|
+
className: "flex gap-1.5",
|
|
680
|
+
children: [jsx("span", {
|
|
681
|
+
className: "h-2.5 w-2.5 rounded-full bg-white/15"
|
|
682
|
+
}), jsx("span", {
|
|
683
|
+
className: "h-2.5 w-2.5 rounded-full bg-white/15"
|
|
684
|
+
}), jsx("span", {
|
|
685
|
+
className: "h-2.5 w-2.5 rounded-full bg-white/15"
|
|
686
|
+
})]
|
|
687
|
+
}), jsx("span", {
|
|
688
|
+
className: "text-[0.7rem] text-white/60",
|
|
689
|
+
style: {
|
|
690
|
+
fontFamily: MONO
|
|
691
|
+
},
|
|
692
|
+
children: spec.file
|
|
693
|
+
}), jsx("span", {
|
|
694
|
+
className: "ml-auto text-[0.66rem] text-white/35",
|
|
695
|
+
style: {
|
|
696
|
+
fontFamily: MONO
|
|
697
|
+
},
|
|
698
|
+
children: spec.trail
|
|
699
|
+
})]
|
|
700
|
+
}), jsx("div", {
|
|
701
|
+
className: "p-4 sm:p-5",
|
|
702
|
+
children: renderSpecimen(spec)
|
|
703
|
+
})]
|
|
704
|
+
});
|
|
705
|
+
}export{ProductSpecimen,ProductSpecimen as default};//# sourceMappingURL=ProductSpecimen.js.map
|