@walkeros/explorer 4.8.0-next-1791441510508 → 4.8.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/CHANGELOG.md +38 -5
- package/README.md +5 -5
- package/dist/design/base.css +11 -12
- package/dist/design/check.mjs +183 -10
- package/dist/design/components/index.cjs +494 -248
- package/dist/design/components/index.cjs.map +1 -1
- package/dist/design/components/index.d.cts +63 -6
- package/dist/design/components/index.d.ts +63 -6
- package/dist/design/components/index.mjs +490 -244
- package/dist/design/components/index.mjs.map +1 -1
- package/dist/design/index.cjs +67 -5
- package/dist/design/index.cjs.map +1 -1
- package/dist/design/index.d.cts +243 -12
- package/dist/design/index.d.ts +243 -12
- package/dist/design/index.mjs +67 -5
- package/dist/design/index.mjs.map +1 -1
- package/dist/design/tailwind.css +19 -0
- package/dist/design/tokens.css +35 -5
- package/dist/index.d.cts +160 -27
- package/dist/index.d.ts +160 -27
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +890 -62
- package/package.json +7 -7
|
@@ -22,6 +22,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
22
22
|
var components_exports = {};
|
|
23
23
|
__export(components_exports, {
|
|
24
24
|
ArticleTeaserTracking: () => ArticleTeaserTracking,
|
|
25
|
+
BrowserFrame: () => BrowserFrame,
|
|
25
26
|
Button: () => Button,
|
|
26
27
|
Card: () => Card,
|
|
27
28
|
CardGrid: () => CardGrid,
|
|
@@ -39,8 +40,10 @@ __export(components_exports, {
|
|
|
39
40
|
Icon: () => Icon,
|
|
40
41
|
InlineCode: () => InlineCode,
|
|
41
42
|
InstallCommand: () => InstallCommand,
|
|
43
|
+
PhotoPlaceholder: () => PhotoPlaceholder,
|
|
42
44
|
PlanCard: () => PlanCard,
|
|
43
45
|
ProblemCard: () => ProblemCard,
|
|
46
|
+
QuickstartSteps: () => QuickstartSteps,
|
|
44
47
|
Section: () => Section,
|
|
45
48
|
SectionHeading: () => SectionHeading,
|
|
46
49
|
Split: () => Split,
|
|
@@ -147,49 +150,129 @@ function EventLegend({ parts, className, ...rest }) {
|
|
|
147
150
|
|
|
148
151
|
// src/design/components/atoms/Icon.tsx
|
|
149
152
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
"
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
width: size,
|
|
156
|
-
height: size,
|
|
157
|
-
className: cx("elb-icon", `elb-icon--${name}`, className)
|
|
158
|
-
};
|
|
159
|
-
return name === "check" ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("svg", { ...svg, viewBox: "0 0 16 16", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
160
|
-
"path",
|
|
161
|
-
{
|
|
162
|
-
d: "M3 8.5l3 3 7-7",
|
|
163
|
-
fill: "none",
|
|
164
|
-
stroke: "currentColor",
|
|
165
|
-
strokeWidth: 2,
|
|
166
|
-
strokeLinecap: "round",
|
|
167
|
-
strokeLinejoin: "round"
|
|
168
|
-
}
|
|
169
|
-
) }) : /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("svg", { ...svg, viewBox: "0 0 24 24", children: [
|
|
170
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
171
|
-
"rect",
|
|
153
|
+
var GLYPHS = {
|
|
154
|
+
check: {
|
|
155
|
+
viewBox: "0 0 16 16",
|
|
156
|
+
strokes: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
157
|
+
"path",
|
|
172
158
|
{
|
|
173
|
-
|
|
174
|
-
y: 9,
|
|
175
|
-
width: 12,
|
|
176
|
-
height: 12,
|
|
177
|
-
rx: 2,
|
|
159
|
+
d: "M3 8.5l3 3 7-7",
|
|
178
160
|
fill: "none",
|
|
179
161
|
stroke: "currentColor",
|
|
180
|
-
strokeWidth: 2
|
|
162
|
+
strokeWidth: 2,
|
|
163
|
+
strokeLinecap: "round",
|
|
164
|
+
strokeLinejoin: "round"
|
|
181
165
|
}
|
|
182
|
-
)
|
|
183
|
-
|
|
166
|
+
)
|
|
167
|
+
},
|
|
168
|
+
copy: {
|
|
169
|
+
viewBox: "0 0 24 24",
|
|
170
|
+
strokes: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
171
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
172
|
+
"rect",
|
|
173
|
+
{
|
|
174
|
+
x: 9,
|
|
175
|
+
y: 9,
|
|
176
|
+
width: 12,
|
|
177
|
+
height: 12,
|
|
178
|
+
rx: 2,
|
|
179
|
+
fill: "none",
|
|
180
|
+
stroke: "currentColor",
|
|
181
|
+
strokeWidth: 2
|
|
182
|
+
}
|
|
183
|
+
),
|
|
184
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
185
|
+
"path",
|
|
186
|
+
{
|
|
187
|
+
d: "M5 15V5a2 2 0 0 1 2-2h10",
|
|
188
|
+
fill: "none",
|
|
189
|
+
stroke: "currentColor",
|
|
190
|
+
strokeWidth: 2
|
|
191
|
+
}
|
|
192
|
+
)
|
|
193
|
+
] })
|
|
194
|
+
},
|
|
195
|
+
lock: {
|
|
196
|
+
viewBox: "0 0 24 24",
|
|
197
|
+
strokes: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
198
|
+
"g",
|
|
199
|
+
{
|
|
200
|
+
fill: "none",
|
|
201
|
+
stroke: "currentColor",
|
|
202
|
+
strokeWidth: 2,
|
|
203
|
+
strokeLinecap: "round",
|
|
204
|
+
strokeLinejoin: "round",
|
|
205
|
+
children: [
|
|
206
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: 5, y: 11, width: 14, height: 10, rx: 2 }),
|
|
207
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M8 11V7a4 4 0 0 1 8 0v4" })
|
|
208
|
+
]
|
|
209
|
+
}
|
|
210
|
+
)
|
|
211
|
+
},
|
|
212
|
+
reload: {
|
|
213
|
+
viewBox: "0 0 24 24",
|
|
214
|
+
strokes: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
215
|
+
"g",
|
|
216
|
+
{
|
|
217
|
+
fill: "none",
|
|
218
|
+
stroke: "currentColor",
|
|
219
|
+
strokeWidth: 2,
|
|
220
|
+
strokeLinecap: "round",
|
|
221
|
+
strokeLinejoin: "round",
|
|
222
|
+
children: [
|
|
223
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M21 4v6h-6" }),
|
|
224
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M20.5 15a9 9 0 1 1-2.1-9.4L21 10" })
|
|
225
|
+
]
|
|
226
|
+
}
|
|
227
|
+
)
|
|
228
|
+
},
|
|
229
|
+
bookmark: {
|
|
230
|
+
viewBox: "0 0 24 24",
|
|
231
|
+
strokes: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
184
232
|
"path",
|
|
185
233
|
{
|
|
186
|
-
d: "
|
|
234
|
+
d: "M6 3h12v18l-6-4-6 4z",
|
|
187
235
|
fill: "none",
|
|
188
236
|
stroke: "currentColor",
|
|
189
|
-
strokeWidth: 2
|
|
237
|
+
strokeWidth: 2,
|
|
238
|
+
strokeLinejoin: "round"
|
|
190
239
|
}
|
|
191
240
|
)
|
|
192
|
-
|
|
241
|
+
},
|
|
242
|
+
warning: {
|
|
243
|
+
viewBox: "0 0 24 24",
|
|
244
|
+
strokes: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
245
|
+
"g",
|
|
246
|
+
{
|
|
247
|
+
fill: "none",
|
|
248
|
+
stroke: "currentColor",
|
|
249
|
+
strokeWidth: 2,
|
|
250
|
+
strokeLinecap: "round",
|
|
251
|
+
strokeLinejoin: "round",
|
|
252
|
+
children: [
|
|
253
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M10.3 3.9 2.4 18a2 2 0 0 0 1.7 3h15.8a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z" }),
|
|
254
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M12 9v4" }),
|
|
255
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M12 17h.01" })
|
|
256
|
+
]
|
|
257
|
+
}
|
|
258
|
+
)
|
|
259
|
+
}
|
|
260
|
+
};
|
|
261
|
+
function Icon({ name, size = 16, className, ...rest }) {
|
|
262
|
+
const { viewBox, strokes } = GLYPHS[name];
|
|
263
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
264
|
+
"svg",
|
|
265
|
+
{
|
|
266
|
+
"aria-hidden": true,
|
|
267
|
+
focusable: false,
|
|
268
|
+
...rest,
|
|
269
|
+
width: size,
|
|
270
|
+
height: size,
|
|
271
|
+
className: cx("elb-icon", `elb-icon--${name}`, className),
|
|
272
|
+
viewBox,
|
|
273
|
+
children: strokes
|
|
274
|
+
}
|
|
275
|
+
);
|
|
193
276
|
}
|
|
194
277
|
|
|
195
278
|
// src/design/components/atoms/Eyebrow.tsx
|
|
@@ -379,8 +462,29 @@ function InstallCommand({
|
|
|
379
462
|
] });
|
|
380
463
|
}
|
|
381
464
|
|
|
382
|
-
// src/design/components/
|
|
465
|
+
// src/design/components/atoms/PhotoPlaceholder.tsx
|
|
383
466
|
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
467
|
+
function PhotoPlaceholder({
|
|
468
|
+
label = "photo",
|
|
469
|
+
tone = "theme",
|
|
470
|
+
className,
|
|
471
|
+
...rest
|
|
472
|
+
}) {
|
|
473
|
+
const named = rest.role !== void 0 || rest["aria-label"] !== void 0 || rest["aria-labelledby"] !== void 0;
|
|
474
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
475
|
+
"div",
|
|
476
|
+
{
|
|
477
|
+
"aria-hidden": named ? void 0 : true,
|
|
478
|
+
...rest,
|
|
479
|
+
className: cx("elb-photo", tone === "viz" && "elb-photo--viz", className),
|
|
480
|
+
...tone === "viz" ? { "data-theme": "dark" } : {},
|
|
481
|
+
children: label
|
|
482
|
+
}
|
|
483
|
+
);
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
// src/design/components/molecules/CheckList.tsx
|
|
487
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
384
488
|
function CheckList({
|
|
385
489
|
items,
|
|
386
490
|
layout = "inline",
|
|
@@ -389,7 +493,7 @@ function CheckList({
|
|
|
389
493
|
...rest
|
|
390
494
|
}) {
|
|
391
495
|
const stack = layout === "stack";
|
|
392
|
-
return /* @__PURE__ */ (0,
|
|
496
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
393
497
|
"ul",
|
|
394
498
|
{
|
|
395
499
|
...rest,
|
|
@@ -399,8 +503,8 @@ function CheckList({
|
|
|
399
503
|
align === "center" && "elb-checklist--center",
|
|
400
504
|
className
|
|
401
505
|
),
|
|
402
|
-
children: items.map((item, index) => /* @__PURE__ */ (0,
|
|
403
|
-
/* @__PURE__ */ (0,
|
|
506
|
+
children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("li", { className: "elb-checklist__item", children: [
|
|
507
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Icon, { name: "check", size: stack ? 14 : 16 }),
|
|
404
508
|
item
|
|
405
509
|
] }, index))
|
|
406
510
|
}
|
|
@@ -408,7 +512,7 @@ function CheckList({
|
|
|
408
512
|
}
|
|
409
513
|
|
|
410
514
|
// src/design/components/molecules/SectionHeading.tsx
|
|
411
|
-
var
|
|
515
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
412
516
|
function SectionHeading({
|
|
413
517
|
title,
|
|
414
518
|
eyebrow,
|
|
@@ -421,7 +525,7 @@ function SectionHeading({
|
|
|
421
525
|
...rest
|
|
422
526
|
}) {
|
|
423
527
|
const hero = level === 1;
|
|
424
|
-
return /* @__PURE__ */ (0,
|
|
528
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
|
|
425
529
|
"div",
|
|
426
530
|
{
|
|
427
531
|
...rest,
|
|
@@ -431,22 +535,22 @@ function SectionHeading({
|
|
|
431
535
|
className
|
|
432
536
|
),
|
|
433
537
|
children: [
|
|
434
|
-
eyebrow !== void 0 && /* @__PURE__ */ (0,
|
|
435
|
-
hero ? /* @__PURE__ */ (0,
|
|
538
|
+
eyebrow !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Eyebrow, { children: eyebrow }),
|
|
539
|
+
hero ? /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("h1", { className: "elb-sh__title elb-sh__title--display", children: [
|
|
436
540
|
title,
|
|
437
|
-
highlight !== void 0 && /* @__PURE__ */ (0,
|
|
541
|
+
highlight !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_jsx_runtime13.Fragment, { children: [
|
|
438
542
|
" ",
|
|
439
|
-
/* @__PURE__ */ (0,
|
|
543
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "elb-sh__highlight", children: highlight })
|
|
440
544
|
] })
|
|
441
|
-
] }) : /* @__PURE__ */ (0,
|
|
442
|
-
lead !== void 0 && /* @__PURE__ */ (0,
|
|
545
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("h2", { className: cx("elb-sh__title", `elb-sh__title--${size}`), children: title }),
|
|
546
|
+
lead !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("p", { className: cx("elb-sh__lead", hero && "elb-sh__lead--hero"), children: lead })
|
|
443
547
|
]
|
|
444
548
|
}
|
|
445
549
|
);
|
|
446
550
|
}
|
|
447
551
|
|
|
448
552
|
// src/design/components/molecules/ProblemCard.tsx
|
|
449
|
-
var
|
|
553
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
450
554
|
function ProblemCard({
|
|
451
555
|
number,
|
|
452
556
|
title,
|
|
@@ -454,7 +558,7 @@ function ProblemCard({
|
|
|
454
558
|
className,
|
|
455
559
|
...rest
|
|
456
560
|
}) {
|
|
457
|
-
return /* @__PURE__ */ (0,
|
|
561
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
458
562
|
Card,
|
|
459
563
|
{
|
|
460
564
|
...rest,
|
|
@@ -462,18 +566,18 @@ function ProblemCard({
|
|
|
462
566
|
hover: true,
|
|
463
567
|
className: cx("elb-problem-card", className),
|
|
464
568
|
children: [
|
|
465
|
-
/* @__PURE__ */ (0,
|
|
466
|
-
/* @__PURE__ */ (0,
|
|
569
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("h3", { className: "elb-problem-card__title", children: [
|
|
570
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "elb-problem-card__number", children: number }),
|
|
467
571
|
title
|
|
468
572
|
] }),
|
|
469
|
-
/* @__PURE__ */ (0,
|
|
573
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { className: "elb-problem-card__text", children })
|
|
470
574
|
]
|
|
471
575
|
}
|
|
472
576
|
);
|
|
473
577
|
}
|
|
474
578
|
|
|
475
579
|
// src/design/components/molecules/FeatureItem.tsx
|
|
476
|
-
var
|
|
580
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
477
581
|
function FeatureItem({
|
|
478
582
|
title,
|
|
479
583
|
children,
|
|
@@ -484,12 +588,12 @@ function FeatureItem({
|
|
|
484
588
|
className,
|
|
485
589
|
...rest
|
|
486
590
|
}) {
|
|
487
|
-
return /* @__PURE__ */ (0,
|
|
488
|
-
/* @__PURE__ */ (0,
|
|
489
|
-
/* @__PURE__ */ (0,
|
|
490
|
-
/* @__PURE__ */ (0,
|
|
491
|
-
/* @__PURE__ */ (0,
|
|
492
|
-
href !== void 0 && /* @__PURE__ */ (0,
|
|
591
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { ...rest, className: cx("elb-feature", className), children: [
|
|
592
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Icon, { name: "check", size: 20 }),
|
|
593
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { children: [
|
|
594
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("h3", { className: "elb-feature__title", children: title }),
|
|
595
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("p", { className: "elb-feature__text", children }),
|
|
596
|
+
href !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
493
597
|
TextLink,
|
|
494
598
|
{
|
|
495
599
|
...linkAttributes,
|
|
@@ -506,7 +610,7 @@ function FeatureItem({
|
|
|
506
610
|
|
|
507
611
|
// src/design/components/molecules/FaqItem.tsx
|
|
508
612
|
var import_react2 = require("react");
|
|
509
|
-
var
|
|
613
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
510
614
|
function FaqItem({
|
|
511
615
|
question,
|
|
512
616
|
children,
|
|
@@ -514,16 +618,16 @@ function FaqItem({
|
|
|
514
618
|
...rest
|
|
515
619
|
}) {
|
|
516
620
|
const parts = Array.isArray(children) ? children : [children];
|
|
517
|
-
return /* @__PURE__ */ (0,
|
|
518
|
-
/* @__PURE__ */ (0,
|
|
519
|
-
/* @__PURE__ */ (0,
|
|
520
|
-
(part, index) => typeof part === "string" ? /* @__PURE__ */ (0,
|
|
621
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("details", { ...rest, className: cx("elb-faq", className), children: [
|
|
622
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("summary", { className: "elb-faq__question", children: question }),
|
|
623
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "elb-faq__answer", children: parts.map(
|
|
624
|
+
(part, index) => typeof part === "string" ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("p", { children: part }, index) : /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react2.Fragment, { children: part }, index)
|
|
521
625
|
) })
|
|
522
626
|
] });
|
|
523
627
|
}
|
|
524
628
|
|
|
525
629
|
// src/design/components/molecules/PlanCard.tsx
|
|
526
|
-
var
|
|
630
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
527
631
|
function PlanCard({
|
|
528
632
|
label,
|
|
529
633
|
title,
|
|
@@ -535,7 +639,7 @@ function PlanCard({
|
|
|
535
639
|
className,
|
|
536
640
|
...rest
|
|
537
641
|
}) {
|
|
538
|
-
return /* @__PURE__ */ (0,
|
|
642
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
539
643
|
Card,
|
|
540
644
|
{
|
|
541
645
|
...rest,
|
|
@@ -543,11 +647,11 @@ function PlanCard({
|
|
|
543
647
|
highlight,
|
|
544
648
|
className: cx("elb-plan", className),
|
|
545
649
|
children: [
|
|
546
|
-
/* @__PURE__ */ (0,
|
|
547
|
-
/* @__PURE__ */ (0,
|
|
548
|
-
/* @__PURE__ */ (0,
|
|
549
|
-
features && /* @__PURE__ */ (0,
|
|
550
|
-
cta && /* @__PURE__ */ (0,
|
|
650
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Eyebrow, { variant: "label", tone: highlight ? "link" : "muted", children: label }),
|
|
651
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("h3", { className: "elb-plan__title", children: title }),
|
|
652
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("p", { className: "elb-plan__text", children }),
|
|
653
|
+
features && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(CheckList, { items: features, layout: "stack" }),
|
|
654
|
+
cta && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
551
655
|
Button,
|
|
552
656
|
{
|
|
553
657
|
...cta.attributes,
|
|
@@ -564,7 +668,7 @@ function PlanCard({
|
|
|
564
668
|
}
|
|
565
669
|
|
|
566
670
|
// src/design/components/molecules/CaseCard.tsx
|
|
567
|
-
var
|
|
671
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
568
672
|
function CaseCard({
|
|
569
673
|
label,
|
|
570
674
|
title,
|
|
@@ -573,16 +677,16 @@ function CaseCard({
|
|
|
573
677
|
className,
|
|
574
678
|
...rest
|
|
575
679
|
}) {
|
|
576
|
-
return /* @__PURE__ */ (0,
|
|
577
|
-
/* @__PURE__ */ (0,
|
|
578
|
-
/* @__PURE__ */ (0,
|
|
579
|
-
/* @__PURE__ */ (0,
|
|
580
|
-
/* @__PURE__ */ (0,
|
|
680
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(Card, { ...rest, padding: "md", className: cx("elb-case-card", className), children: [
|
|
681
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Eyebrow, { variant: "label", children: label }),
|
|
682
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("h3", { className: "elb-case-card__title", children: title }),
|
|
683
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "elb-case-card__text", children }),
|
|
684
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "elb-case-card__stats", children: stats.map((stat, index) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Stat, { value: stat.value, children: stat.label }, index)) })
|
|
581
685
|
] });
|
|
582
686
|
}
|
|
583
687
|
|
|
584
688
|
// src/design/components/molecules/HighlightCard.tsx
|
|
585
|
-
var
|
|
689
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
586
690
|
function HighlightCard({
|
|
587
691
|
label,
|
|
588
692
|
title,
|
|
@@ -592,7 +696,7 @@ function HighlightCard({
|
|
|
592
696
|
className,
|
|
593
697
|
...rest
|
|
594
698
|
}) {
|
|
595
|
-
return /* @__PURE__ */ (0,
|
|
699
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
|
|
596
700
|
Card,
|
|
597
701
|
{
|
|
598
702
|
...rest,
|
|
@@ -602,10 +706,10 @@ function HighlightCard({
|
|
|
602
706
|
glow: true,
|
|
603
707
|
className: cx("elb-highlight-card", className),
|
|
604
708
|
children: [
|
|
605
|
-
/* @__PURE__ */ (0,
|
|
606
|
-
/* @__PURE__ */ (0,
|
|
607
|
-
/* @__PURE__ */ (0,
|
|
608
|
-
/* @__PURE__ */ (0,
|
|
709
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Eyebrow, { variant: "label", children: label }),
|
|
710
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("h3", { className: "elb-highlight-card__title", children: title }),
|
|
711
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("p", { className: "elb-highlight-card__text", children }),
|
|
712
|
+
cta && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
609
713
|
Button,
|
|
610
714
|
{
|
|
611
715
|
...cta.attributes,
|
|
@@ -622,15 +726,146 @@ function HighlightCard({
|
|
|
622
726
|
);
|
|
623
727
|
}
|
|
624
728
|
|
|
729
|
+
// src/design/components/molecules/BrowserFrame.tsx
|
|
730
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
731
|
+
function BrowserFrame({
|
|
732
|
+
url,
|
|
733
|
+
bookmarks,
|
|
734
|
+
onNavigate,
|
|
735
|
+
onReload,
|
|
736
|
+
actions,
|
|
737
|
+
children,
|
|
738
|
+
className,
|
|
739
|
+
...rest
|
|
740
|
+
}) {
|
|
741
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { ...rest, className: cx("elb-browser", className), children: [
|
|
742
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "elb-browser__bar", children: [
|
|
743
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("span", { className: "elb-browser__dots", "aria-hidden": "true", children: [
|
|
744
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", {}),
|
|
745
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", {}),
|
|
746
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", {})
|
|
747
|
+
] }),
|
|
748
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "elb-browser__address", title: url, children: [
|
|
749
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Icon, { name: "lock", size: 14 }),
|
|
750
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "elb-browser__url", children: url })
|
|
751
|
+
] }),
|
|
752
|
+
onReload && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
753
|
+
"button",
|
|
754
|
+
{
|
|
755
|
+
type: "button",
|
|
756
|
+
className: "elb-browser__reload",
|
|
757
|
+
"aria-label": "Reload",
|
|
758
|
+
onClick: onReload,
|
|
759
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Icon, { name: "reload", size: 16 })
|
|
760
|
+
}
|
|
761
|
+
),
|
|
762
|
+
actions && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "elb-browser__actions", children: actions })
|
|
763
|
+
] }),
|
|
764
|
+
bookmarks && bookmarks.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("nav", { className: "elb-browser__bookmarks", "aria-label": "Bookmarks", children: bookmarks.map((bookmark) => {
|
|
765
|
+
const current = bookmark.url === url;
|
|
766
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
767
|
+
"button",
|
|
768
|
+
{
|
|
769
|
+
type: "button",
|
|
770
|
+
className: cx(
|
|
771
|
+
"elb-browser__bookmark",
|
|
772
|
+
current && "elb-browser__bookmark--active"
|
|
773
|
+
),
|
|
774
|
+
"aria-current": current ? "page" : void 0,
|
|
775
|
+
disabled: !onNavigate,
|
|
776
|
+
onClick: () => onNavigate?.(bookmark.url),
|
|
777
|
+
children: [
|
|
778
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Icon, { name: "bookmark", size: 14 }),
|
|
779
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { children: bookmark.label })
|
|
780
|
+
]
|
|
781
|
+
},
|
|
782
|
+
bookmark.url
|
|
783
|
+
);
|
|
784
|
+
}) }),
|
|
785
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "elb-browser__viewport", children })
|
|
786
|
+
] });
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
// src/design/components/molecules/QuickstartSteps.tsx
|
|
790
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
791
|
+
var ARROWS = [
|
|
792
|
+
{
|
|
793
|
+
kind: "wave",
|
|
794
|
+
paths: [
|
|
795
|
+
"M4 26 C 18 6, 34 6, 40 20 S 58 34, 70 16",
|
|
796
|
+
"M62 20 L70 16 L69.5 25"
|
|
797
|
+
]
|
|
798
|
+
},
|
|
799
|
+
{
|
|
800
|
+
kind: "loop",
|
|
801
|
+
paths: [
|
|
802
|
+
"M4 28 C 20 30, 26 8, 38 10 C 50 12, 44 28, 36 24 C 28 20, 44 6, 72 14",
|
|
803
|
+
"M65.7 7.6 L72 14 L63.3 16.2"
|
|
804
|
+
]
|
|
805
|
+
}
|
|
806
|
+
];
|
|
807
|
+
function Arrow({ kind, paths }) {
|
|
808
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
809
|
+
"li",
|
|
810
|
+
{
|
|
811
|
+
className: cx("elb-quickstart__arrow", `elb-quickstart__arrow--${kind}`),
|
|
812
|
+
"aria-hidden": "true",
|
|
813
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
814
|
+
"svg",
|
|
815
|
+
{
|
|
816
|
+
width: "76",
|
|
817
|
+
height: "40",
|
|
818
|
+
viewBox: "0 0 76 40",
|
|
819
|
+
fill: "none",
|
|
820
|
+
stroke: "currentColor",
|
|
821
|
+
strokeWidth: "2.2",
|
|
822
|
+
strokeLinecap: "round",
|
|
823
|
+
strokeLinejoin: "round",
|
|
824
|
+
children: paths.map((d) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("path", { d }, d))
|
|
825
|
+
}
|
|
826
|
+
)
|
|
827
|
+
}
|
|
828
|
+
);
|
|
829
|
+
}
|
|
830
|
+
function QuickstartSteps({
|
|
831
|
+
steps,
|
|
832
|
+
children,
|
|
833
|
+
className,
|
|
834
|
+
...rest
|
|
835
|
+
}) {
|
|
836
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { ...rest, className: cx("elb-quickstart", className), children: [
|
|
837
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("ol", { className: "elb-quickstart__steps", children: steps.flatMap((step, index) => {
|
|
838
|
+
const item = /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("li", { className: "elb-quickstart__step", children: [
|
|
839
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "elb-quickstart__head", children: [
|
|
840
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "elb-quickstart__num", "aria-hidden": "true", children: index + 1 }),
|
|
841
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("h3", { className: "elb-quickstart__title", children: step.title })
|
|
842
|
+
] }),
|
|
843
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "elb-quickstart__copy", children: step.text })
|
|
844
|
+
] }, step.title);
|
|
845
|
+
return index < steps.length - 1 ? [
|
|
846
|
+
item,
|
|
847
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
848
|
+
Arrow,
|
|
849
|
+
{
|
|
850
|
+
...ARROWS[index % ARROWS.length]
|
|
851
|
+
},
|
|
852
|
+
`arrow-${index}`
|
|
853
|
+
)
|
|
854
|
+
] : [item];
|
|
855
|
+
}) }),
|
|
856
|
+
children
|
|
857
|
+
] });
|
|
858
|
+
}
|
|
859
|
+
|
|
625
860
|
// src/design/components/layout/Section.tsx
|
|
626
|
-
var
|
|
861
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
627
862
|
function Section({
|
|
628
863
|
children,
|
|
629
864
|
tone = "default",
|
|
630
865
|
className,
|
|
631
866
|
...rest
|
|
632
867
|
}) {
|
|
633
|
-
return /* @__PURE__ */ (0,
|
|
868
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
634
869
|
"section",
|
|
635
870
|
{
|
|
636
871
|
...rest,
|
|
@@ -639,13 +874,13 @@ function Section({
|
|
|
639
874
|
tone === "alt" && "elb-section--alt",
|
|
640
875
|
className
|
|
641
876
|
),
|
|
642
|
-
children: /* @__PURE__ */ (0,
|
|
877
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "elb-section__inner", children })
|
|
643
878
|
}
|
|
644
879
|
);
|
|
645
880
|
}
|
|
646
881
|
|
|
647
882
|
// src/design/components/layout/CardGrid.tsx
|
|
648
|
-
var
|
|
883
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
649
884
|
function CardGrid({
|
|
650
885
|
children,
|
|
651
886
|
min,
|
|
@@ -653,7 +888,7 @@ function CardGrid({
|
|
|
653
888
|
className,
|
|
654
889
|
...rest
|
|
655
890
|
}) {
|
|
656
|
-
return /* @__PURE__ */ (0,
|
|
891
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
657
892
|
"div",
|
|
658
893
|
{
|
|
659
894
|
...rest,
|
|
@@ -669,7 +904,7 @@ function CardGrid({
|
|
|
669
904
|
}
|
|
670
905
|
|
|
671
906
|
// src/design/components/layout/Split.tsx
|
|
672
|
-
var
|
|
907
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
673
908
|
function Split({
|
|
674
909
|
start,
|
|
675
910
|
end,
|
|
@@ -677,7 +912,7 @@ function Split({
|
|
|
677
912
|
className,
|
|
678
913
|
...rest
|
|
679
914
|
}) {
|
|
680
|
-
return /* @__PURE__ */ (0,
|
|
915
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
681
916
|
"div",
|
|
682
917
|
{
|
|
683
918
|
...rest,
|
|
@@ -687,23 +922,24 @@ function Split({
|
|
|
687
922
|
className
|
|
688
923
|
),
|
|
689
924
|
children: [
|
|
690
|
-
/* @__PURE__ */ (0,
|
|
691
|
-
/* @__PURE__ */ (0,
|
|
925
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "elb-split__start", children: start }),
|
|
926
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "elb-split__end", children: end })
|
|
692
927
|
]
|
|
693
928
|
}
|
|
694
929
|
);
|
|
695
930
|
}
|
|
696
931
|
|
|
697
932
|
// src/design/components/layout/Cluster.tsx
|
|
698
|
-
var
|
|
933
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
699
934
|
function Cluster({
|
|
700
935
|
children,
|
|
701
936
|
gap = "actions",
|
|
702
937
|
align = "start",
|
|
938
|
+
separated = false,
|
|
703
939
|
className,
|
|
704
940
|
...rest
|
|
705
941
|
}) {
|
|
706
|
-
return /* @__PURE__ */ (0,
|
|
942
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
707
943
|
"div",
|
|
708
944
|
{
|
|
709
945
|
...rest,
|
|
@@ -711,6 +947,7 @@ function Cluster({
|
|
|
711
947
|
"elb-cluster",
|
|
712
948
|
gap === "links" && "elb-cluster--links",
|
|
713
949
|
align === "center" && "elb-cluster--center",
|
|
950
|
+
separated && "elb-cluster--separated",
|
|
714
951
|
className
|
|
715
952
|
),
|
|
716
953
|
children
|
|
@@ -719,7 +956,7 @@ function Cluster({
|
|
|
719
956
|
}
|
|
720
957
|
|
|
721
958
|
// src/design/components/layout/Hero.tsx
|
|
722
|
-
var
|
|
959
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
723
960
|
function Hero({
|
|
724
961
|
eyebrow,
|
|
725
962
|
title,
|
|
@@ -731,8 +968,8 @@ function Hero({
|
|
|
731
968
|
className,
|
|
732
969
|
...rest
|
|
733
970
|
}) {
|
|
734
|
-
return /* @__PURE__ */ (0,
|
|
735
|
-
/* @__PURE__ */ (0,
|
|
971
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("section", { ...rest, className: cx("elb-hero", className), children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "elb-hero__inner", children: [
|
|
972
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
736
973
|
SectionHeading,
|
|
737
974
|
{
|
|
738
975
|
level: 1,
|
|
@@ -742,9 +979,9 @@ function Hero({
|
|
|
742
979
|
lead
|
|
743
980
|
}
|
|
744
981
|
),
|
|
745
|
-
/* @__PURE__ */ (0,
|
|
746
|
-
proof !== void 0 && /* @__PURE__ */ (0,
|
|
747
|
-
children !== void 0 && /* @__PURE__ */ (0,
|
|
982
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "elb-hero__actions", children: actions }),
|
|
983
|
+
proof !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "elb-hero__proof", children: proof }),
|
|
984
|
+
children !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "elb-hero__demo", children })
|
|
748
985
|
] }) });
|
|
749
986
|
}
|
|
750
987
|
|
|
@@ -1117,12 +1354,12 @@ var MAPPING_EVENTS = [
|
|
|
1117
1354
|
];
|
|
1118
1355
|
|
|
1119
1356
|
// src/design/components/viz/parts/CodeTokens.tsx
|
|
1120
|
-
var
|
|
1357
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
1121
1358
|
function CodeTokens({
|
|
1122
1359
|
tokens,
|
|
1123
1360
|
active = false
|
|
1124
1361
|
}) {
|
|
1125
|
-
return /* @__PURE__ */ (0,
|
|
1362
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_jsx_runtime27.Fragment, { children: tokens.map((token, index) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1126
1363
|
"span",
|
|
1127
1364
|
{
|
|
1128
1365
|
className: cx(
|
|
@@ -1136,16 +1373,16 @@ function CodeTokens({
|
|
|
1136
1373
|
)) });
|
|
1137
1374
|
}
|
|
1138
1375
|
function CodeLine({ number, bar, className, children }) {
|
|
1139
|
-
return /* @__PURE__ */ (0,
|
|
1140
|
-
/* @__PURE__ */ (0,
|
|
1376
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: cx("elb-viz-line", className), children: [
|
|
1377
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1141
1378
|
"span",
|
|
1142
1379
|
{
|
|
1143
1380
|
className: cx("elb-viz-line__bar", bar && `elb-viz-line__bar--${bar}`),
|
|
1144
1381
|
"aria-hidden": "true"
|
|
1145
1382
|
}
|
|
1146
1383
|
),
|
|
1147
|
-
number !== void 0 && /* @__PURE__ */ (0,
|
|
1148
|
-
/* @__PURE__ */ (0,
|
|
1384
|
+
number !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "elb-viz-line__number", children: number }),
|
|
1385
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "elb-viz-line__code", children })
|
|
1149
1386
|
] });
|
|
1150
1387
|
}
|
|
1151
1388
|
|
|
@@ -1255,26 +1492,26 @@ function tokenizeCode(line, highlight) {
|
|
|
1255
1492
|
}
|
|
1256
1493
|
|
|
1257
1494
|
// src/design/components/viz/parts/VizFrame.tsx
|
|
1258
|
-
var
|
|
1495
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
1259
1496
|
function VizFrame({
|
|
1260
1497
|
variant,
|
|
1261
1498
|
children,
|
|
1262
1499
|
className,
|
|
1263
1500
|
...rest
|
|
1264
1501
|
}) {
|
|
1265
|
-
return /* @__PURE__ */ (0,
|
|
1502
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1266
1503
|
"div",
|
|
1267
1504
|
{
|
|
1268
1505
|
...rest,
|
|
1269
1506
|
"data-theme": "dark",
|
|
1270
1507
|
className: cx("elb-viz", `elb-viz--${variant}`, className),
|
|
1271
|
-
children: /* @__PURE__ */ (0,
|
|
1508
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "elb-viz__body", children })
|
|
1272
1509
|
}
|
|
1273
1510
|
);
|
|
1274
1511
|
}
|
|
1275
1512
|
|
|
1276
1513
|
// src/design/components/viz/DestinationMappingViz.tsx
|
|
1277
|
-
var
|
|
1514
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
1278
1515
|
function DestinationMappingViz({
|
|
1279
1516
|
initialEvent = 0,
|
|
1280
1517
|
caption = MAPPING_CAPTION,
|
|
@@ -1283,10 +1520,10 @@ function DestinationMappingViz({
|
|
|
1283
1520
|
const [index, setIndex] = (0, import_react3.useState)(initialEvent);
|
|
1284
1521
|
const event = MAPPING_EVENTS[index];
|
|
1285
1522
|
const name = `${event.entity} ${event.action}`;
|
|
1286
|
-
return /* @__PURE__ */ (0,
|
|
1287
|
-
/* @__PURE__ */ (0,
|
|
1288
|
-
/* @__PURE__ */ (0,
|
|
1289
|
-
/* @__PURE__ */ (0,
|
|
1523
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(VizFrame, { ...rest, variant: "mapping", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "elb-viz-mapping", children: [
|
|
1524
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "elb-viz-mapping__pick", children: [
|
|
1525
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "elb-viz-mapping__label", children: "Pick an event" }),
|
|
1526
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "elb-viz-mapping__chips", children: MAPPING_EVENTS.map((item, position) => /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
1290
1527
|
"button",
|
|
1291
1528
|
{
|
|
1292
1529
|
type: "button",
|
|
@@ -1298,21 +1535,21 @@ function DestinationMappingViz({
|
|
|
1298
1535
|
),
|
|
1299
1536
|
onClick: () => setIndex(position),
|
|
1300
1537
|
children: [
|
|
1301
|
-
/* @__PURE__ */ (0,
|
|
1302
|
-
/* @__PURE__ */ (0,
|
|
1538
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "elb-viz-mapping__chip-entity", children: item.entity }),
|
|
1539
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "elb-viz-mapping__chip-action", children: item.action })
|
|
1303
1540
|
]
|
|
1304
1541
|
},
|
|
1305
1542
|
`${item.entity} ${item.action}`
|
|
1306
1543
|
)) })
|
|
1307
1544
|
] }),
|
|
1308
|
-
/* @__PURE__ */ (0,
|
|
1309
|
-
/* @__PURE__ */ (0,
|
|
1310
|
-
/* @__PURE__ */ (0,
|
|
1311
|
-
/* @__PURE__ */ (0,
|
|
1312
|
-
/* @__PURE__ */ (0,
|
|
1313
|
-
/* @__PURE__ */ (0,
|
|
1314
|
-
/* @__PURE__ */ (0,
|
|
1315
|
-
/* @__PURE__ */ (0,
|
|
1545
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "elb-viz-mapping__event", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(CodeTokens, { tokens: tokenizeCode(formatElb(event), name), active: true }) }),
|
|
1546
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "elb-viz-mapping__body", children: [
|
|
1547
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "elb-viz-mapping__comment", children: "// same event, four destinations, zero app code touched" }),
|
|
1548
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "elb-viz-mapping__cards", children: event.destinations.map((destination) => /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "elb-viz-mapping__card", children: [
|
|
1549
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "elb-viz-mapping__name", children: destination.label }),
|
|
1550
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "elb-viz-mapping__row", children: [
|
|
1551
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "elb-viz-mapping__tag", children: "mapping" }),
|
|
1552
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "elb-viz-mapping__rule", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1316
1553
|
CodeTokens,
|
|
1317
1554
|
{
|
|
1318
1555
|
tokens: tokenizeCode(
|
|
@@ -1327,9 +1564,9 @@ function DestinationMappingViz({
|
|
|
1327
1564
|
}
|
|
1328
1565
|
) })
|
|
1329
1566
|
] }),
|
|
1330
|
-
/* @__PURE__ */ (0,
|
|
1331
|
-
/* @__PURE__ */ (0,
|
|
1332
|
-
/* @__PURE__ */ (0,
|
|
1567
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "elb-viz-mapping__row elb-viz-mapping__row--sends", children: [
|
|
1568
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "elb-viz-mapping__tag", children: "sends" }),
|
|
1569
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "elb-viz-mapping__calls", children: destination.calls.flatMap((call) => formatCall(call)).map((line, position) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "elb-viz-mapping__line", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1333
1570
|
CodeTokens,
|
|
1334
1571
|
{
|
|
1335
1572
|
tokens: tokenizeCode(line, destination.rule.name),
|
|
@@ -1339,7 +1576,7 @@ function DestinationMappingViz({
|
|
|
1339
1576
|
] })
|
|
1340
1577
|
] }, destination.id)) })
|
|
1341
1578
|
] }),
|
|
1342
|
-
caption !== "" && /* @__PURE__ */ (0,
|
|
1579
|
+
caption !== "" && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("p", { className: "elb-viz-mapping__caption", children: caption })
|
|
1343
1580
|
] }) });
|
|
1344
1581
|
}
|
|
1345
1582
|
|
|
@@ -1624,38 +1861,38 @@ function vizStyle(vars) {
|
|
|
1624
1861
|
}
|
|
1625
1862
|
|
|
1626
1863
|
// src/design/components/viz/parts/EventsTable.tsx
|
|
1627
|
-
var
|
|
1864
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
1628
1865
|
var SKELETON_ROWS = 6;
|
|
1629
1866
|
function EventsTable({ rows }) {
|
|
1630
1867
|
const skeletons = Math.max(0, SKELETON_ROWS - rows.length);
|
|
1631
|
-
return /* @__PURE__ */ (0,
|
|
1632
|
-
/* @__PURE__ */ (0,
|
|
1633
|
-
/* @__PURE__ */ (0,
|
|
1634
|
-
/* @__PURE__ */ (0,
|
|
1868
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "elb-viz-table", children: [
|
|
1869
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "elb-viz-table__head", children: [
|
|
1870
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("span", { className: "elb-viz-table__query", children: [
|
|
1871
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "elb-viz-table__keyword", children: "SELECT" }),
|
|
1635
1872
|
" *",
|
|
1636
1873
|
" ",
|
|
1637
|
-
/* @__PURE__ */ (0,
|
|
1874
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "elb-viz-table__keyword", children: "FROM" }),
|
|
1638
1875
|
" ",
|
|
1639
|
-
/* @__PURE__ */ (0,
|
|
1876
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "elb-viz-table__source", children: "walkerOS.events" })
|
|
1640
1877
|
] }),
|
|
1641
|
-
/* @__PURE__ */ (0,
|
|
1642
|
-
/* @__PURE__ */ (0,
|
|
1878
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("span", { className: "elb-viz-table__live", children: [
|
|
1879
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "elb-viz-table__dot", "aria-hidden": "true" }),
|
|
1643
1880
|
"live"
|
|
1644
1881
|
] })
|
|
1645
1882
|
] }),
|
|
1646
|
-
/* @__PURE__ */ (0,
|
|
1647
|
-
/* @__PURE__ */ (0,
|
|
1648
|
-
/* @__PURE__ */ (0,
|
|
1649
|
-
/* @__PURE__ */ (0,
|
|
1883
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "elb-viz-table__body", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "elb-viz-table__scroll", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "elb-viz-table__rows", children: [
|
|
1884
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "elb-viz-table__row elb-viz-table__row--header", children: [
|
|
1885
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "elb-viz-table__cell elb-viz-table__cell--n", children: "Row" }),
|
|
1886
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("span", { className: "elb-viz-table__cell", children: [
|
|
1650
1887
|
"name",
|
|
1651
|
-
/* @__PURE__ */ (0,
|
|
1888
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "elb-viz-table__type", children: "STRING" })
|
|
1652
1889
|
] }),
|
|
1653
|
-
/* @__PURE__ */ (0,
|
|
1890
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("span", { className: "elb-viz-table__cell", children: [
|
|
1654
1891
|
"data",
|
|
1655
|
-
/* @__PURE__ */ (0,
|
|
1892
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "elb-viz-table__type", children: "JSON" })
|
|
1656
1893
|
] })
|
|
1657
1894
|
] }),
|
|
1658
|
-
rows.map((row, index) => /* @__PURE__ */ (0,
|
|
1895
|
+
rows.map((row, index) => /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
|
1659
1896
|
"div",
|
|
1660
1897
|
{
|
|
1661
1898
|
className: "elb-viz-table__row elb-viz-table__row--event",
|
|
@@ -1665,15 +1902,15 @@ function EventsTable({ rows }) {
|
|
|
1665
1902
|
"--elb-viz-row-shift": (1 - ease(clamp(row.age / 500))) * -80
|
|
1666
1903
|
}),
|
|
1667
1904
|
children: [
|
|
1668
|
-
/* @__PURE__ */ (0,
|
|
1669
|
-
/* @__PURE__ */ (0,
|
|
1670
|
-
/* @__PURE__ */ (0,
|
|
1905
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "elb-viz-table__cell elb-viz-table__cell--n", children: index + 1 }),
|
|
1906
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "elb-viz-table__cell", children: row.name }),
|
|
1907
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("span", { className: "elb-viz-table__cell elb-viz-table__json", children: [
|
|
1671
1908
|
"{",
|
|
1672
|
-
Object.entries(row.data).map(([key, value], position) => /* @__PURE__ */ (0,
|
|
1909
|
+
Object.entries(row.data).map(([key, value], position) => /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_react4.Fragment, { children: [
|
|
1673
1910
|
position === 0 ? '"' : ',"',
|
|
1674
|
-
/* @__PURE__ */ (0,
|
|
1911
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "elb-viz-table__json-key", children: key }),
|
|
1675
1912
|
'":"',
|
|
1676
|
-
/* @__PURE__ */ (0,
|
|
1913
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "elb-viz-table__json-value", children: value }),
|
|
1677
1914
|
'"'
|
|
1678
1915
|
] }, key)),
|
|
1679
1916
|
"}"
|
|
@@ -1682,15 +1919,15 @@ function EventsTable({ rows }) {
|
|
|
1682
1919
|
},
|
|
1683
1920
|
row.key
|
|
1684
1921
|
)),
|
|
1685
|
-
Array.from({ length: skeletons }, (_, index) => /* @__PURE__ */ (0,
|
|
1922
|
+
Array.from({ length: skeletons }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
|
1686
1923
|
"div",
|
|
1687
1924
|
{
|
|
1688
1925
|
className: "elb-viz-table__row elb-viz-table__row--skeleton",
|
|
1689
1926
|
"aria-hidden": "true",
|
|
1690
1927
|
children: [
|
|
1691
|
-
/* @__PURE__ */ (0,
|
|
1692
|
-
/* @__PURE__ */ (0,
|
|
1693
|
-
/* @__PURE__ */ (0,
|
|
1928
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "elb-viz-table__cell elb-viz-table__cell--n", children: rows.length + index + 1 }),
|
|
1929
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "elb-viz-table__cell", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "elb-viz-table__bar" }) }),
|
|
1930
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "elb-viz-table__cell", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "elb-viz-table__bar" }) })
|
|
1694
1931
|
]
|
|
1695
1932
|
},
|
|
1696
1933
|
`skeleton-${index}`
|
|
@@ -1739,14 +1976,14 @@ function useReducedMotion() {
|
|
|
1739
1976
|
}
|
|
1740
1977
|
|
|
1741
1978
|
// src/design/components/viz/parts/Pill.tsx
|
|
1742
|
-
var
|
|
1979
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
1743
1980
|
function Pill({
|
|
1744
1981
|
part,
|
|
1745
1982
|
variant = "solid",
|
|
1746
1983
|
className,
|
|
1747
1984
|
children
|
|
1748
1985
|
}) {
|
|
1749
|
-
return /* @__PURE__ */ (0,
|
|
1986
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
1750
1987
|
"span",
|
|
1751
1988
|
{
|
|
1752
1989
|
className: cx(
|
|
@@ -1761,7 +1998,7 @@ function Pill({
|
|
|
1761
1998
|
}
|
|
1762
1999
|
|
|
1763
2000
|
// src/design/components/viz/parts/Thumb.tsx
|
|
1764
|
-
var
|
|
2001
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
1765
2002
|
var BUG_LINES = [
|
|
1766
2003
|
"M36 46 L28 42",
|
|
1767
2004
|
"M35 54 L27 56",
|
|
@@ -1779,9 +2016,9 @@ var BUG_SPOTS = [
|
|
|
1779
2016
|
[67, 56, 2.8]
|
|
1780
2017
|
];
|
|
1781
2018
|
function Bug() {
|
|
1782
|
-
return /* @__PURE__ */ (0,
|
|
1783
|
-
/* @__PURE__ */ (0,
|
|
1784
|
-
/* @__PURE__ */ (0,
|
|
2019
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
|
|
2020
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("rect", { className: "elb-viz-thumb__ground", width: 112, height: 86 }),
|
|
2021
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1785
2022
|
"ellipse",
|
|
1786
2023
|
{
|
|
1787
2024
|
className: "elb-viz-thumb__shadow",
|
|
@@ -1791,18 +2028,18 @@ function Bug() {
|
|
|
1791
2028
|
ry: 6
|
|
1792
2029
|
}
|
|
1793
2030
|
),
|
|
1794
|
-
/* @__PURE__ */ (0,
|
|
2031
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1795
2032
|
"g",
|
|
1796
2033
|
{
|
|
1797
2034
|
className: "elb-viz-thumb__legs",
|
|
1798
2035
|
strokeWidth: 2.4,
|
|
1799
2036
|
strokeLinecap: "round",
|
|
1800
|
-
children: BUG_LINES.map((d) => /* @__PURE__ */ (0,
|
|
2037
|
+
children: BUG_LINES.map((d) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("path", { d }, d))
|
|
1801
2038
|
}
|
|
1802
2039
|
),
|
|
1803
|
-
/* @__PURE__ */ (0,
|
|
1804
|
-
/* @__PURE__ */ (0,
|
|
1805
|
-
/* @__PURE__ */ (0,
|
|
2040
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("circle", { className: "elb-viz-thumb__ink", cx: 42, cy: 16, r: 2 }),
|
|
2041
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("circle", { className: "elb-viz-thumb__ink", cx: 70, cy: 16, r: 2 }),
|
|
2042
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1806
2043
|
"ellipse",
|
|
1807
2044
|
{
|
|
1808
2045
|
className: "elb-viz-thumb__ink",
|
|
@@ -1812,9 +2049,9 @@ function Bug() {
|
|
|
1812
2049
|
ry: 7.5
|
|
1813
2050
|
}
|
|
1814
2051
|
),
|
|
1815
|
-
/* @__PURE__ */ (0,
|
|
1816
|
-
/* @__PURE__ */ (0,
|
|
1817
|
-
/* @__PURE__ */ (0,
|
|
2052
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("circle", { className: "elb-viz-thumb__eye", cx: 52, cy: 29, r: 1.6 }),
|
|
2053
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("circle", { className: "elb-viz-thumb__eye", cx: 60, cy: 29, r: 1.6 }),
|
|
2054
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1818
2055
|
"ellipse",
|
|
1819
2056
|
{
|
|
1820
2057
|
className: "elb-viz-thumb__shell",
|
|
@@ -1824,8 +2061,8 @@ function Bug() {
|
|
|
1824
2061
|
ry: 18
|
|
1825
2062
|
}
|
|
1826
2063
|
),
|
|
1827
|
-
/* @__PURE__ */ (0,
|
|
1828
|
-
BUG_SPOTS.map(([x, y, r]) => /* @__PURE__ */ (0,
|
|
2064
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("path", { className: "elb-viz-thumb__seam", d: "M56 33 L56 68", strokeWidth: 2 }),
|
|
2065
|
+
BUG_SPOTS.map(([x, y, r]) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1829
2066
|
"circle",
|
|
1830
2067
|
{
|
|
1831
2068
|
className: "elb-viz-thumb__ink",
|
|
@@ -1835,7 +2072,7 @@ function Bug() {
|
|
|
1835
2072
|
},
|
|
1836
2073
|
`${x}-${y}`
|
|
1837
2074
|
)),
|
|
1838
|
-
/* @__PURE__ */ (0,
|
|
2075
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1839
2076
|
"path",
|
|
1840
2077
|
{
|
|
1841
2078
|
className: "elb-viz-thumb__shine",
|
|
@@ -1847,9 +2084,9 @@ function Bug() {
|
|
|
1847
2084
|
] });
|
|
1848
2085
|
}
|
|
1849
2086
|
function Tech() {
|
|
1850
|
-
return /* @__PURE__ */ (0,
|
|
1851
|
-
/* @__PURE__ */ (0,
|
|
1852
|
-
/* @__PURE__ */ (0,
|
|
2087
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
|
|
2088
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("rect", { className: "elb-viz-thumb__ground", width: 112, height: 86 }),
|
|
2089
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1853
2090
|
"rect",
|
|
1854
2091
|
{
|
|
1855
2092
|
className: "elb-viz-thumb__badge",
|
|
@@ -1860,8 +2097,8 @@ function Tech() {
|
|
|
1860
2097
|
rx: 8
|
|
1861
2098
|
}
|
|
1862
2099
|
),
|
|
1863
|
-
/* @__PURE__ */ (0,
|
|
1864
|
-
/* @__PURE__ */ (0,
|
|
2100
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("circle", { className: "elb-viz-thumb__dot", cx: 47, cy: 52, r: 3.2 }),
|
|
2101
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1865
2102
|
"path",
|
|
1866
2103
|
{
|
|
1867
2104
|
className: "elb-viz-thumb__wave",
|
|
@@ -1870,7 +2107,7 @@ function Tech() {
|
|
|
1870
2107
|
strokeLinecap: "round"
|
|
1871
2108
|
}
|
|
1872
2109
|
),
|
|
1873
|
-
/* @__PURE__ */ (0,
|
|
2110
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1874
2111
|
"path",
|
|
1875
2112
|
{
|
|
1876
2113
|
className: "elb-viz-thumb__wave",
|
|
@@ -1882,9 +2119,9 @@ function Tech() {
|
|
|
1882
2119
|
] });
|
|
1883
2120
|
}
|
|
1884
2121
|
function Food() {
|
|
1885
|
-
return /* @__PURE__ */ (0,
|
|
1886
|
-
/* @__PURE__ */ (0,
|
|
1887
|
-
/* @__PURE__ */ (0,
|
|
2122
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
|
|
2123
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("rect", { className: "elb-viz-thumb__ground", width: 112, height: 86 }),
|
|
2124
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1888
2125
|
"ellipse",
|
|
1889
2126
|
{
|
|
1890
2127
|
className: "elb-viz-thumb__plate",
|
|
@@ -1894,7 +2131,7 @@ function Food() {
|
|
|
1894
2131
|
ry: 10
|
|
1895
2132
|
}
|
|
1896
2133
|
),
|
|
1897
|
-
/* @__PURE__ */ (0,
|
|
2134
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1898
2135
|
"ellipse",
|
|
1899
2136
|
{
|
|
1900
2137
|
className: "elb-viz-thumb__loaf",
|
|
@@ -1904,7 +2141,7 @@ function Food() {
|
|
|
1904
2141
|
ry: 19
|
|
1905
2142
|
}
|
|
1906
2143
|
),
|
|
1907
|
-
/* @__PURE__ */ (0,
|
|
2144
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1908
2145
|
"ellipse",
|
|
1909
2146
|
{
|
|
1910
2147
|
className: "elb-viz-thumb__crust",
|
|
@@ -1914,7 +2151,7 @@ function Food() {
|
|
|
1914
2151
|
ry: 13
|
|
1915
2152
|
}
|
|
1916
2153
|
),
|
|
1917
|
-
/* @__PURE__ */ (0,
|
|
2154
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1918
2155
|
"path",
|
|
1919
2156
|
{
|
|
1920
2157
|
className: "elb-viz-thumb__score",
|
|
@@ -1923,7 +2160,7 @@ function Food() {
|
|
|
1923
2160
|
strokeLinecap: "round"
|
|
1924
2161
|
}
|
|
1925
2162
|
),
|
|
1926
|
-
/* @__PURE__ */ (0,
|
|
2163
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1927
2164
|
"path",
|
|
1928
2165
|
{
|
|
1929
2166
|
className: "elb-viz-thumb__score",
|
|
@@ -1935,7 +2172,7 @@ function Food() {
|
|
|
1935
2172
|
] });
|
|
1936
2173
|
}
|
|
1937
2174
|
function Thumb({ kind }) {
|
|
1938
|
-
return /* @__PURE__ */ (0,
|
|
2175
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1939
2176
|
"svg",
|
|
1940
2177
|
{
|
|
1941
2178
|
className: cx("elb-viz-thumb", `elb-viz-thumb--${kind}`),
|
|
@@ -1943,13 +2180,13 @@ function Thumb({ kind }) {
|
|
|
1943
2180
|
preserveAspectRatio: "xMidYMid slice",
|
|
1944
2181
|
"aria-hidden": "true",
|
|
1945
2182
|
focusable: "false",
|
|
1946
|
-
children: kind === "bug" ? /* @__PURE__ */ (0,
|
|
2183
|
+
children: kind === "bug" ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Bug, {}) : kind === "tech" ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Tech, {}) : /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Food, {})
|
|
1947
2184
|
}
|
|
1948
2185
|
);
|
|
1949
2186
|
}
|
|
1950
2187
|
|
|
1951
2188
|
// src/design/components/viz/HeroTaggingViz.tsx
|
|
1952
|
-
var
|
|
2189
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
1953
2190
|
var MAX_STEP = 64;
|
|
1954
2191
|
function HeroTaggingViz({
|
|
1955
2192
|
playing = true,
|
|
@@ -1976,22 +2213,22 @@ function HeroTaggingViz({
|
|
|
1976
2213
|
return () => cancelAnimationFrame(frame);
|
|
1977
2214
|
}, [animate, speed]);
|
|
1978
2215
|
const { article, lines, fade: fade2, caretOn, card, cursor, rows } = heroFrame(time);
|
|
1979
|
-
return /* @__PURE__ */ (0,
|
|
1980
|
-
/* @__PURE__ */ (0,
|
|
1981
|
-
/* @__PURE__ */ (0,
|
|
1982
|
-
/* @__PURE__ */ (0,
|
|
1983
|
-
/* @__PURE__ */ (0,
|
|
1984
|
-
/* @__PURE__ */ (0,
|
|
1985
|
-
/* @__PURE__ */ (0,
|
|
2216
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(VizFrame, { ...rest, variant: "hero", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "elb-viz-hero", children: [
|
|
2217
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { ref: paneRef, className: "elb-viz-hero__pane", children: [
|
|
2218
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "elb-viz-hero__bar", children: [
|
|
2219
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("span", { className: "elb-viz-hero__dots", "aria-hidden": "true", children: [
|
|
2220
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", {}),
|
|
2221
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", {}),
|
|
2222
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", {})
|
|
1986
2223
|
] }),
|
|
1987
|
-
/* @__PURE__ */ (0,
|
|
2224
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "elb-viz-hero__file", children: "ArticleTeaser.html" })
|
|
1988
2225
|
] }),
|
|
1989
|
-
/* @__PURE__ */ (0,
|
|
2226
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
1990
2227
|
"div",
|
|
1991
2228
|
{
|
|
1992
2229
|
className: "elb-viz-hero__code",
|
|
1993
2230
|
style: vizStyle({ "--elb-viz-fade": fade2 }),
|
|
1994
|
-
children: lines.map((line) => /* @__PURE__ */ (0,
|
|
2231
|
+
children: lines.map((line) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
1995
2232
|
CodeLine,
|
|
1996
2233
|
{
|
|
1997
2234
|
number: line.n,
|
|
@@ -2000,23 +2237,23 @@ function HeroTaggingViz({
|
|
|
2000
2237
|
"elb-viz-hero__line",
|
|
2001
2238
|
line.on && "elb-viz-hero__line--on"
|
|
2002
2239
|
),
|
|
2003
|
-
children: line.caret === null ? /* @__PURE__ */ (0,
|
|
2004
|
-
/* @__PURE__ */ (0,
|
|
2005
|
-
/* @__PURE__ */ (0,
|
|
2240
|
+
children: line.caret === null ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(CodeTokens, { tokens: line.tokens }) : /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_jsx_runtime33.Fragment, { children: [
|
|
2241
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(CodeTokens, { tokens: line.tokens.slice(0, line.caret) }),
|
|
2242
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2006
2243
|
"span",
|
|
2007
2244
|
{
|
|
2008
2245
|
className: "elb-viz-caret",
|
|
2009
2246
|
style: vizStyle({ "--elb-viz-caret": caretOn ? 1 : 0 })
|
|
2010
2247
|
}
|
|
2011
2248
|
),
|
|
2012
|
-
/* @__PURE__ */ (0,
|
|
2249
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(CodeTokens, { tokens: line.tokens.slice(line.caret) })
|
|
2013
2250
|
] })
|
|
2014
2251
|
},
|
|
2015
2252
|
line.id
|
|
2016
2253
|
))
|
|
2017
2254
|
}
|
|
2018
2255
|
),
|
|
2019
|
-
/* @__PURE__ */ (0,
|
|
2256
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "elb-viz-hero__stage", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
|
|
2020
2257
|
"div",
|
|
2021
2258
|
{
|
|
2022
2259
|
className: cx(
|
|
@@ -2028,13 +2265,13 @@ function HeroTaggingViz({
|
|
|
2028
2265
|
"--elb-viz-card-offset": card.offset
|
|
2029
2266
|
}),
|
|
2030
2267
|
children: [
|
|
2031
|
-
/* @__PURE__ */ (0,
|
|
2032
|
-
card.entity && /* @__PURE__ */ (0,
|
|
2033
|
-
card.impression && /* @__PURE__ */ (0,
|
|
2268
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "elb-viz-hero__pills", children: [
|
|
2269
|
+
card.entity && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Pill, { part: "entity", children: "article" }),
|
|
2270
|
+
card.impression && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Pill, { part: "action", children: "impression" })
|
|
2034
2271
|
] }),
|
|
2035
|
-
/* @__PURE__ */ (0,
|
|
2036
|
-
/* @__PURE__ */ (0,
|
|
2037
|
-
/* @__PURE__ */ (0,
|
|
2272
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "elb-viz-hero__thumb", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Thumb, { kind: article.thumb }) }),
|
|
2273
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "elb-viz-hero__text", children: [
|
|
2274
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2038
2275
|
"span",
|
|
2039
2276
|
{
|
|
2040
2277
|
className: cx(
|
|
@@ -2044,7 +2281,7 @@ function HeroTaggingViz({
|
|
|
2044
2281
|
children: article.kicker
|
|
2045
2282
|
}
|
|
2046
2283
|
),
|
|
2047
|
-
/* @__PURE__ */ (0,
|
|
2284
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "elb-viz-hero__title", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2048
2285
|
"span",
|
|
2049
2286
|
{
|
|
2050
2287
|
className: cx(
|
|
@@ -2054,7 +2291,7 @@ function HeroTaggingViz({
|
|
|
2054
2291
|
children: article.title
|
|
2055
2292
|
}
|
|
2056
2293
|
) }),
|
|
2057
|
-
/* @__PURE__ */ (0,
|
|
2294
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "elb-viz-hero__foot", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
|
|
2058
2295
|
"span",
|
|
2059
2296
|
{
|
|
2060
2297
|
className: cx(
|
|
@@ -2063,7 +2300,7 @@ function HeroTaggingViz({
|
|
|
2063
2300
|
),
|
|
2064
2301
|
children: [
|
|
2065
2302
|
"Open \u2192",
|
|
2066
|
-
/* @__PURE__ */ (0,
|
|
2303
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
|
|
2067
2304
|
"span",
|
|
2068
2305
|
{
|
|
2069
2306
|
className: "elb-viz-hero__cursor",
|
|
@@ -2077,8 +2314,8 @@ function HeroTaggingViz({
|
|
|
2077
2314
|
"--elb-viz-press": cursor.pressed ? 0.8 : 1
|
|
2078
2315
|
}),
|
|
2079
2316
|
children: [
|
|
2080
|
-
/* @__PURE__ */ (0,
|
|
2081
|
-
/* @__PURE__ */ (0,
|
|
2317
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "elb-viz-hero__ring" }),
|
|
2318
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "elb-viz-hero__pointer" })
|
|
2082
2319
|
]
|
|
2083
2320
|
}
|
|
2084
2321
|
)
|
|
@@ -2090,7 +2327,7 @@ function HeroTaggingViz({
|
|
|
2090
2327
|
}
|
|
2091
2328
|
) })
|
|
2092
2329
|
] }),
|
|
2093
|
-
/* @__PURE__ */ (0,
|
|
2330
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(EventsTable, { rows })
|
|
2094
2331
|
] }) });
|
|
2095
2332
|
}
|
|
2096
2333
|
|
|
@@ -2358,7 +2595,7 @@ function teaserAdvance(n) {
|
|
|
2358
2595
|
}
|
|
2359
2596
|
|
|
2360
2597
|
// src/design/components/viz/ArticleTeaserTracking.tsx
|
|
2361
|
-
var
|
|
2598
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
2362
2599
|
var FIRST_DELAY = 800;
|
|
2363
2600
|
var JUMP_DELAY = 250;
|
|
2364
2601
|
var SCROLL_DELAY = 400;
|
|
@@ -2371,7 +2608,7 @@ function TeaserCard({
|
|
|
2371
2608
|
seen,
|
|
2372
2609
|
ahead
|
|
2373
2610
|
}) {
|
|
2374
|
-
return /* @__PURE__ */ (0,
|
|
2611
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
2375
2612
|
"div",
|
|
2376
2613
|
{
|
|
2377
2614
|
className: cx(
|
|
@@ -2380,9 +2617,9 @@ function TeaserCard({
|
|
|
2380
2617
|
ahead && "elb-viz-teaser__card--ahead"
|
|
2381
2618
|
),
|
|
2382
2619
|
children: [
|
|
2383
|
-
/* @__PURE__ */ (0,
|
|
2384
|
-
/* @__PURE__ */ (0,
|
|
2385
|
-
/* @__PURE__ */ (0,
|
|
2620
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("span", { className: "elb-viz-teaser__pills", children: [
|
|
2621
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Pill, { part: "entity", className: fade(seen.has("entity")), children: TEASER_ENTITY }),
|
|
2622
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
2386
2623
|
Pill,
|
|
2387
2624
|
{
|
|
2388
2625
|
part: "property",
|
|
@@ -2392,8 +2629,14 @@ function TeaserCard({
|
|
|
2392
2629
|
}
|
|
2393
2630
|
)
|
|
2394
2631
|
] }),
|
|
2395
|
-
/* @__PURE__ */ (0,
|
|
2396
|
-
|
|
2632
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
2633
|
+
PhotoPlaceholder,
|
|
2634
|
+
{
|
|
2635
|
+
tone: "viz",
|
|
2636
|
+
className: cx("elb-viz-teaser__photo", fade(seen.has("image")))
|
|
2637
|
+
}
|
|
2638
|
+
),
|
|
2639
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
2397
2640
|
"span",
|
|
2398
2641
|
{
|
|
2399
2642
|
className: cx(
|
|
@@ -2404,7 +2647,7 @@ function TeaserCard({
|
|
|
2404
2647
|
children: article.kicker
|
|
2405
2648
|
}
|
|
2406
2649
|
),
|
|
2407
|
-
/* @__PURE__ */ (0,
|
|
2650
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
2408
2651
|
"span",
|
|
2409
2652
|
{
|
|
2410
2653
|
className: cx(
|
|
@@ -2415,7 +2658,7 @@ function TeaserCard({
|
|
|
2415
2658
|
children: article.title
|
|
2416
2659
|
}
|
|
2417
2660
|
),
|
|
2418
|
-
/* @__PURE__ */ (0,
|
|
2661
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
2419
2662
|
"span",
|
|
2420
2663
|
{
|
|
2421
2664
|
className: cx(
|
|
@@ -2439,7 +2682,7 @@ function TeaserGroup({
|
|
|
2439
2682
|
const globalsOn = seen.has(page.globalsEffect);
|
|
2440
2683
|
const listOn = seen.has(page.listEffect);
|
|
2441
2684
|
const reached = page.step <= current;
|
|
2442
|
-
return /* @__PURE__ */ (0,
|
|
2685
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
2443
2686
|
"div",
|
|
2444
2687
|
{
|
|
2445
2688
|
className: cx(
|
|
@@ -2448,7 +2691,7 @@ function TeaserGroup({
|
|
|
2448
2691
|
!reached && !lead && "elb-viz-teaser__page--ahead"
|
|
2449
2692
|
),
|
|
2450
2693
|
children: [
|
|
2451
|
-
/* @__PURE__ */ (0,
|
|
2694
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "elb-viz-teaser__page-pill", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
2452
2695
|
Pill,
|
|
2453
2696
|
{
|
|
2454
2697
|
part: "globals",
|
|
@@ -2456,7 +2699,7 @@ function TeaserGroup({
|
|
|
2456
2699
|
children: `pagetype:${page.pagetype}`
|
|
2457
2700
|
}
|
|
2458
2701
|
) }),
|
|
2459
|
-
/* @__PURE__ */ (0,
|
|
2702
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
2460
2703
|
"div",
|
|
2461
2704
|
{
|
|
2462
2705
|
className: cx(
|
|
@@ -2464,14 +2707,14 @@ function TeaserGroup({
|
|
|
2464
2707
|
listOn && "elb-viz-teaser__list--on"
|
|
2465
2708
|
),
|
|
2466
2709
|
children: [
|
|
2467
|
-
/* @__PURE__ */ (0,
|
|
2468
|
-
/* @__PURE__ */ (0,
|
|
2469
|
-
/* @__PURE__ */ (0,
|
|
2470
|
-
page.heading !== void 0 && /* @__PURE__ */ (0,
|
|
2710
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: cx("elb-viz-teaser__list-head", fade(listOn)), children: [
|
|
2711
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("span", { className: "elb-viz-teaser__list-label", children: [
|
|
2712
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "elb-viz-teaser__list-name", children: page.header }),
|
|
2713
|
+
page.heading !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "elb-viz-teaser__list-heading", children: page.heading })
|
|
2471
2714
|
] }),
|
|
2472
|
-
/* @__PURE__ */ (0,
|
|
2715
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Pill, { part: "context", children: `list:${page.list}` })
|
|
2473
2716
|
] }),
|
|
2474
|
-
/* @__PURE__ */ (0,
|
|
2717
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "elb-viz-teaser__cards", children: page.articles.map((article, index) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
2475
2718
|
TeaserCard,
|
|
2476
2719
|
{
|
|
2477
2720
|
article,
|
|
@@ -2501,7 +2744,9 @@ function ArticleTeaserTracking({
|
|
|
2501
2744
|
() => initialStep ? teaserStepEnd(initialStep) : 0
|
|
2502
2745
|
);
|
|
2503
2746
|
const [delay, setDelay] = (0, import_react7.useState)(FIRST_DELAY);
|
|
2747
|
+
const [pinned, setPinned] = (0, import_react7.useState)(null);
|
|
2504
2748
|
const playing = autoplay && inView && !reduced;
|
|
2749
|
+
const end = pinned === null ? TEASER_ITEMS.length : teaserStepEnd(pinned);
|
|
2505
2750
|
(0, import_react7.useEffect)(() => {
|
|
2506
2751
|
if (reduced) setShown(TEASER_ITEMS.length);
|
|
2507
2752
|
}, [reduced]);
|
|
@@ -2514,10 +2759,10 @@ function ArticleTeaserTracking({
|
|
|
2514
2759
|
return;
|
|
2515
2760
|
}
|
|
2516
2761
|
setShown(advance.next);
|
|
2517
|
-
setDelay(advance.delay);
|
|
2762
|
+
setDelay(advance.next < end ? advance.delay : null);
|
|
2518
2763
|
}, delay / speed);
|
|
2519
2764
|
return () => clearTimeout(timer);
|
|
2520
|
-
}, [playing, delay, shown, speed]);
|
|
2765
|
+
}, [playing, delay, shown, speed, end]);
|
|
2521
2766
|
(0, import_react7.useEffect)(() => {
|
|
2522
2767
|
const pane = codeRef.current;
|
|
2523
2768
|
if (!pane || shown === 0 || typeof pane.scrollTo !== "function")
|
|
@@ -2533,6 +2778,7 @@ function ArticleTeaserTracking({
|
|
|
2533
2778
|
return () => clearTimeout(timer);
|
|
2534
2779
|
}, [shown, reduced]);
|
|
2535
2780
|
const jump = (step) => {
|
|
2781
|
+
setPinned(step);
|
|
2536
2782
|
if (autoplay && !reduced) {
|
|
2537
2783
|
setShown(teaserStepStart(step));
|
|
2538
2784
|
setDelay(JUMP_DELAY);
|
|
@@ -2563,15 +2809,15 @@ function ArticleTeaserTracking({
|
|
|
2563
2809
|
separated && "elb-viz-teaser__file--separated"
|
|
2564
2810
|
);
|
|
2565
2811
|
separated = true;
|
|
2566
|
-
return /* @__PURE__ */ (0,
|
|
2567
|
-
/* @__PURE__ */ (0,
|
|
2568
|
-
/* @__PURE__ */ (0,
|
|
2812
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { "data-line": index, className: lineClass, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: fileClass, children: [
|
|
2813
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "elb-viz-teaser__file-name", children: item.name }),
|
|
2814
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "elb-viz-teaser__file-level", children: item.level })
|
|
2569
2815
|
] }) }, index);
|
|
2570
2816
|
}
|
|
2571
2817
|
lineNumber += 1;
|
|
2572
2818
|
const reached = index < count;
|
|
2573
2819
|
const isCurrent = index === count - 1 && item.effect !== void 0;
|
|
2574
|
-
return /* @__PURE__ */ (0,
|
|
2820
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { "data-line": index, className: lineClass, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
2575
2821
|
CodeLine,
|
|
2576
2822
|
{
|
|
2577
2823
|
number: lineNumber,
|
|
@@ -2580,13 +2826,13 @@ function ArticleTeaserTracking({
|
|
|
2580
2826
|
"elb-viz-teaser__code",
|
|
2581
2827
|
isCurrent && `elb-viz-teaser__code--current-${item.part ?? "plain"}`
|
|
2582
2828
|
),
|
|
2583
|
-
children: /* @__PURE__ */ (0,
|
|
2829
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(CodeTokens, { tokens: item.tokens, active: reached })
|
|
2584
2830
|
}
|
|
2585
2831
|
) }, index);
|
|
2586
2832
|
});
|
|
2587
|
-
return /* @__PURE__ */ (0,
|
|
2588
|
-
/* @__PURE__ */ (0,
|
|
2589
|
-
/* @__PURE__ */ (0,
|
|
2833
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(VizFrame, { ...rest, variant: "teaser", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "elb-viz-teaser", children: [
|
|
2834
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "elb-viz-teaser__header", children: [
|
|
2835
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "elb-viz-teaser__steps", children: TEASER_STEPS.map(({ step, label }) => /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
2590
2836
|
"button",
|
|
2591
2837
|
{
|
|
2592
2838
|
type: "button",
|
|
@@ -2599,18 +2845,18 @@ function ArticleTeaserTracking({
|
|
|
2599
2845
|
),
|
|
2600
2846
|
onClick: () => jump(step),
|
|
2601
2847
|
children: [
|
|
2602
|
-
/* @__PURE__ */ (0,
|
|
2603
|
-
/* @__PURE__ */ (0,
|
|
2848
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "elb-viz-teaser__step-number", children: step }),
|
|
2849
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { children: label })
|
|
2604
2850
|
]
|
|
2605
2851
|
},
|
|
2606
2852
|
step
|
|
2607
2853
|
)) }),
|
|
2608
|
-
/* @__PURE__ */ (0,
|
|
2854
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "elb-viz-teaser__legend", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(EventLegend, {}) })
|
|
2609
2855
|
] }),
|
|
2610
|
-
/* @__PURE__ */ (0,
|
|
2611
|
-
/* @__PURE__ */ (0,
|
|
2612
|
-
/* @__PURE__ */ (0,
|
|
2613
|
-
/* @__PURE__ */ (0,
|
|
2856
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: "elb-viz-teaser__caption", children: TEASER_CAPTIONS[current] }),
|
|
2857
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "elb-viz-teaser__body", children: [
|
|
2858
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "elb-viz-teaser__pane", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { ref: codeRef, className: "elb-viz-teaser__scroll", children: lines }) }),
|
|
2859
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "elb-viz-teaser__pages", children: TEASER_PAGE_IDS.map((id, index) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
2614
2860
|
TeaserGroup,
|
|
2615
2861
|
{
|
|
2616
2862
|
page: TEASER_PAGES[id],
|