@gpichot/spectacle-deck 1.0.8 → 1.1.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/dist/components/DocumentationItem.d.ts +10 -0
- package/{index.cjs → dist/index.cjs} +288 -141
- package/{index.d.ts → dist/index.d.ts} +4 -6
- package/{index.mjs → dist/index.mjs} +287 -140
- package/dist/layouts/QuoteLayout.d.ts +6 -0
- package/{layouts → dist/layouts}/index.d.ts +2 -0
- package/dist/package.json +30 -0
- package/package.json +20 -16
- package/scripts/bundle.ts +84 -0
- package/src/components/CodeStepper/CodeStepper.tsx +223 -0
- package/src/components/CodeStepper/code-directives.test.ts +58 -0
- package/src/components/CodeStepper/code-directives.ts +129 -0
- package/src/components/DocumentationItem.tsx +85 -0
- package/src/components/FilePane.tsx +18 -0
- package/src/components/HorizontalList.tsx +140 -0
- package/src/components/IconBox.tsx +31 -0
- package/src/components/Image.tsx +34 -0
- package/src/components/ItemsColumn.tsx +56 -0
- package/src/components/Timeline.styled.tsx +24 -0
- package/src/components/Timeline.tsx +157 -0
- package/src/components/map.tsx +115 -0
- package/src/components/styled.tsx +73 -0
- package/src/front.png +0 -0
- package/src/index.tsx +109 -0
- package/src/layouts/CenteredLayout.tsx +40 -0
- package/src/layouts/Default3Layout.tsx +159 -0
- package/src/layouts/MainSectionLayout.tsx +31 -0
- package/src/layouts/QuoteLayout.tsx +99 -0
- package/src/layouts/SectionLayout.tsx +14 -0
- package/src/layouts/SideCodeLayout.tsx +44 -0
- package/src/layouts/SideImageLayout.tsx +72 -0
- package/src/layouts/SideLayout.tsx +31 -0
- package/src/layouts/columns.tsx +56 -0
- package/src/layouts/index.tsx +19 -0
- package/src/layouts/styled.ts +7 -0
- package/src/layouts/utils.ts +65 -0
- package/src/node.d.ts +5 -0
- package/src/style.d.ts +10 -0
- package/src/template.tsx +25 -0
- package/src/theme.ts +24 -0
- package/test.js +106 -0
- package/tsconfig.json +29 -0
- /package/{components → dist/components}/CodeStepper/CodeStepper.d.ts +0 -0
- /package/{components → dist/components}/CodeStepper/code-directives.d.ts +0 -0
- /package/{components → dist/components}/FilePane.d.ts +0 -0
- /package/{components → dist/components}/HorizontalList.d.ts +0 -0
- /package/{components → dist/components}/IconBox.d.ts +0 -0
- /package/{components → dist/components}/Image.d.ts +0 -0
- /package/{components → dist/components}/ItemsColumn.d.ts +0 -0
- /package/{components → dist/components}/Timeline.d.ts +0 -0
- /package/{components → dist/components}/Timeline.styled.d.ts +0 -0
- /package/{components → dist/components}/map.d.ts +0 -0
- /package/{components → dist/components}/styled.d.ts +0 -0
- /package/{layouts → dist/layouts}/CenteredLayout.d.ts +0 -0
- /package/{layouts → dist/layouts}/Default3Layout.d.ts +0 -0
- /package/{layouts → dist/layouts}/MainSectionLayout.d.ts +0 -0
- /package/{layouts → dist/layouts}/SectionLayout.d.ts +0 -0
- /package/{layouts → dist/layouts}/SideCodeLayout.d.ts +0 -0
- /package/{layouts → dist/layouts}/SideImageLayout.d.ts +0 -0
- /package/{layouts → dist/layouts}/SideLayout.d.ts +0 -0
- /package/{layouts → dist/layouts}/columns.d.ts +0 -0
- /package/{layouts → dist/layouts}/styled.d.ts +0 -0
- /package/{layouts → dist/layouts}/utils.d.ts +0 -0
- /package/{template.d.ts → dist/template.d.ts} +0 -0
- /package/{theme.d.ts → dist/theme.d.ts} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/index.tsx
|
|
2
|
-
import
|
|
2
|
+
import React21 from "react";
|
|
3
3
|
import { MDXProvider } from "@mdx-js/react";
|
|
4
4
|
import { Deck as SpectacleDeck, Slide } from "spectacle";
|
|
5
5
|
|
|
@@ -352,9 +352,97 @@ var MainSectionLayout = ({
|
|
|
352
352
|
);
|
|
353
353
|
};
|
|
354
354
|
|
|
355
|
-
// src/layouts/
|
|
355
|
+
// src/layouts/QuoteLayout.tsx
|
|
356
|
+
import React5 from "react";
|
|
356
357
|
import styled3 from "styled-components";
|
|
357
|
-
|
|
358
|
+
function invariant(condition, message) {
|
|
359
|
+
if (!condition) {
|
|
360
|
+
throw new Error(message);
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
var QuoteBaseLayout = styled3.div`
|
|
364
|
+
.blockquote > * {
|
|
365
|
+
border-left: 0;
|
|
366
|
+
}
|
|
367
|
+
.blockquote {
|
|
368
|
+
position: relative;
|
|
369
|
+
}
|
|
370
|
+
.blockquote > :first-child {
|
|
371
|
+
&:before {
|
|
372
|
+
content: "“";
|
|
373
|
+
position: absolute;
|
|
374
|
+
font-size: 16rem;
|
|
375
|
+
left: -9rem;
|
|
376
|
+
font-family: serif;
|
|
377
|
+
top: 2rem;
|
|
378
|
+
color: #ffffff22;
|
|
379
|
+
}
|
|
380
|
+
&:after {
|
|
381
|
+
content: "”";
|
|
382
|
+
position: absolute;
|
|
383
|
+
font-size: 16rem;
|
|
384
|
+
right: 3rem;
|
|
385
|
+
bottom: -5rem;
|
|
386
|
+
font-family: serif;
|
|
387
|
+
color: #ffffff22;
|
|
388
|
+
pointer-events: none;
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
.blockquote * {
|
|
392
|
+
line-height: 3.5rem !important;
|
|
393
|
+
font-size: 2.5rem;
|
|
394
|
+
}
|
|
395
|
+
.source {
|
|
396
|
+
font-family: Bitter, "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
397
|
+
box-sizing: border-box;
|
|
398
|
+
width: 100%;
|
|
399
|
+
margin-top: 4rem;
|
|
400
|
+
text-align: right;
|
|
401
|
+
font-size: 2rem;
|
|
402
|
+
a {
|
|
403
|
+
text-decoration: none;
|
|
404
|
+
color: #ffffff77;
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
`;
|
|
408
|
+
function QuoteLayout({
|
|
409
|
+
children,
|
|
410
|
+
author,
|
|
411
|
+
url
|
|
412
|
+
}) {
|
|
413
|
+
const [blockquote, rest] = getMatchingMdxType(children, "blockquote");
|
|
414
|
+
invariant(rest, "QuoteLayout can only have one blockquote");
|
|
415
|
+
return /* @__PURE__ */ React5.createElement(QuoteBaseLayout, null, /* @__PURE__ */ React5.createElement(
|
|
416
|
+
"div",
|
|
417
|
+
{
|
|
418
|
+
style: {
|
|
419
|
+
display: "flex",
|
|
420
|
+
flexDirection: "column",
|
|
421
|
+
alignItems: "flex-start",
|
|
422
|
+
justifyContent: "center",
|
|
423
|
+
textAlign: "center",
|
|
424
|
+
margin: "0 10%"
|
|
425
|
+
}
|
|
426
|
+
},
|
|
427
|
+
/* @__PURE__ */ React5.createElement(
|
|
428
|
+
"div",
|
|
429
|
+
{
|
|
430
|
+
style: {
|
|
431
|
+
flex: 1,
|
|
432
|
+
padding: "0 8rem 0 0",
|
|
433
|
+
boxSizing: "border-box"
|
|
434
|
+
},
|
|
435
|
+
className: "blockquote"
|
|
436
|
+
},
|
|
437
|
+
blockquote
|
|
438
|
+
),
|
|
439
|
+
/* @__PURE__ */ React5.createElement("div", { className: "source", style: { flex: 1, padding: "0 2rem" } }, /* @__PURE__ */ React5.createElement("a", { href: url, target: "_blank", rel: "noopener noreferrer" }, author))
|
|
440
|
+
));
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
// src/layouts/SectionLayout.tsx
|
|
444
|
+
import styled4 from "styled-components";
|
|
445
|
+
var SectionLayout = styled4.div`
|
|
358
446
|
display: flex;
|
|
359
447
|
flex-direction: row;
|
|
360
448
|
align-items: center;
|
|
@@ -368,12 +456,12 @@ var SectionLayout = styled3.div`
|
|
|
368
456
|
`;
|
|
369
457
|
|
|
370
458
|
// src/layouts/SideCodeLayout.tsx
|
|
371
|
-
import
|
|
459
|
+
import React7 from "react";
|
|
372
460
|
|
|
373
461
|
// src/layouts/columns.tsx
|
|
374
|
-
import
|
|
375
|
-
import
|
|
376
|
-
var DivWithHeading =
|
|
462
|
+
import React6 from "react";
|
|
463
|
+
import styled5 from "styled-components";
|
|
464
|
+
var DivWithHeading = styled5.div`
|
|
377
465
|
h2 {
|
|
378
466
|
margin-top: 0;
|
|
379
467
|
}
|
|
@@ -382,7 +470,7 @@ var DivWithHeading = styled4.div`
|
|
|
382
470
|
font-weight: 400;
|
|
383
471
|
}
|
|
384
472
|
`;
|
|
385
|
-
var ColumnsContainer =
|
|
473
|
+
var ColumnsContainer = styled5(DivWithHeading)`
|
|
386
474
|
display: flex;
|
|
387
475
|
flex-direction: row;
|
|
388
476
|
position: absolute;
|
|
@@ -396,15 +484,15 @@ function ColumnsLayout({
|
|
|
396
484
|
children,
|
|
397
485
|
reverse
|
|
398
486
|
}) {
|
|
399
|
-
const childrenArray =
|
|
400
|
-
return /* @__PURE__ */
|
|
487
|
+
const childrenArray = React6.Children.toArray(children);
|
|
488
|
+
return /* @__PURE__ */ React6.createElement(
|
|
401
489
|
ColumnsContainer,
|
|
402
490
|
{
|
|
403
491
|
style: {
|
|
404
492
|
flexDirection: reverse ? "row-reverse" : "row"
|
|
405
493
|
}
|
|
406
494
|
},
|
|
407
|
-
childrenArray.map((child, i) => /* @__PURE__ */
|
|
495
|
+
childrenArray.map((child, i) => /* @__PURE__ */ React6.createElement(
|
|
408
496
|
"div",
|
|
409
497
|
{
|
|
410
498
|
key: i,
|
|
@@ -423,8 +511,8 @@ function ColumnsLayout({
|
|
|
423
511
|
}
|
|
424
512
|
|
|
425
513
|
// src/layouts/SideCodeLayout.tsx
|
|
426
|
-
import
|
|
427
|
-
var CodeSide =
|
|
514
|
+
import styled6 from "styled-components";
|
|
515
|
+
var CodeSide = styled6.div`
|
|
428
516
|
pre {
|
|
429
517
|
font-size: 0.9rem;
|
|
430
518
|
}
|
|
@@ -434,7 +522,7 @@ function SidedCodeLayout({
|
|
|
434
522
|
position = "right"
|
|
435
523
|
}) {
|
|
436
524
|
const [code, rest] = getCodeChildren(children);
|
|
437
|
-
return /* @__PURE__ */
|
|
525
|
+
return /* @__PURE__ */ React7.createElement(ColumnsLayout, { reverse: position === "left" }, /* @__PURE__ */ React7.createElement(
|
|
438
526
|
"div",
|
|
439
527
|
{
|
|
440
528
|
style: {
|
|
@@ -443,7 +531,7 @@ function SidedCodeLayout({
|
|
|
443
531
|
}
|
|
444
532
|
},
|
|
445
533
|
rest
|
|
446
|
-
), /* @__PURE__ */
|
|
534
|
+
), /* @__PURE__ */ React7.createElement(
|
|
447
535
|
CodeSide,
|
|
448
536
|
{
|
|
449
537
|
style: {
|
|
@@ -459,15 +547,15 @@ function SidedCodeLayout({
|
|
|
459
547
|
}
|
|
460
548
|
|
|
461
549
|
// src/layouts/SideImageLayout.tsx
|
|
462
|
-
import
|
|
463
|
-
import
|
|
550
|
+
import React9 from "react";
|
|
551
|
+
import styled8 from "styled-components";
|
|
464
552
|
|
|
465
553
|
// src/components/Image.tsx
|
|
466
|
-
import
|
|
554
|
+
import React8 from "react";
|
|
467
555
|
|
|
468
556
|
// src/layouts/styled.ts
|
|
469
|
-
import
|
|
470
|
-
var SVGObject =
|
|
557
|
+
import styled7 from "styled-components";
|
|
558
|
+
var SVGObject = styled7.object`
|
|
471
559
|
padding: 3rem 2rem;
|
|
472
560
|
box-sizing: border-box;
|
|
473
561
|
background-color: white;
|
|
@@ -477,7 +565,7 @@ var SVGObject = styled6.object`
|
|
|
477
565
|
function Image(props) {
|
|
478
566
|
const { src, height } = props;
|
|
479
567
|
if (!(src == null ? void 0 : src.endsWith(".svg"))) {
|
|
480
|
-
return /* @__PURE__ */
|
|
568
|
+
return /* @__PURE__ */ React8.createElement(
|
|
481
569
|
"img",
|
|
482
570
|
{
|
|
483
571
|
src,
|
|
@@ -490,7 +578,7 @@ function Image(props) {
|
|
|
490
578
|
}
|
|
491
579
|
);
|
|
492
580
|
}
|
|
493
|
-
return /* @__PURE__ */
|
|
581
|
+
return /* @__PURE__ */ React8.createElement(
|
|
494
582
|
SVGObject,
|
|
495
583
|
{
|
|
496
584
|
type: "image/svg+xml",
|
|
@@ -506,7 +594,7 @@ function Image(props) {
|
|
|
506
594
|
Image.mdxType = "Image";
|
|
507
595
|
|
|
508
596
|
// src/layouts/SideImageLayout.tsx
|
|
509
|
-
var DivWithHeading2 =
|
|
597
|
+
var DivWithHeading2 = styled8.div`
|
|
510
598
|
h2 {
|
|
511
599
|
margin-top: 0;
|
|
512
600
|
}
|
|
@@ -527,7 +615,7 @@ var SidedImageLayout = ({
|
|
|
527
615
|
console.error("No image provided for SidedImageLayout");
|
|
528
616
|
return null;
|
|
529
617
|
}
|
|
530
|
-
return /* @__PURE__ */
|
|
618
|
+
return /* @__PURE__ */ React9.createElement(
|
|
531
619
|
DivWithHeading2,
|
|
532
620
|
{
|
|
533
621
|
style: {
|
|
@@ -540,7 +628,7 @@ var SidedImageLayout = ({
|
|
|
540
628
|
top: 0
|
|
541
629
|
}
|
|
542
630
|
},
|
|
543
|
-
/* @__PURE__ */
|
|
631
|
+
/* @__PURE__ */ React9.createElement(
|
|
544
632
|
"div",
|
|
545
633
|
{
|
|
546
634
|
style: {
|
|
@@ -553,7 +641,7 @@ var SidedImageLayout = ({
|
|
|
553
641
|
},
|
|
554
642
|
rest
|
|
555
643
|
),
|
|
556
|
-
/* @__PURE__ */
|
|
644
|
+
/* @__PURE__ */ React9.createElement(
|
|
557
645
|
"div",
|
|
558
646
|
{
|
|
559
647
|
style: {
|
|
@@ -565,19 +653,19 @@ var SidedImageLayout = ({
|
|
|
565
653
|
backgroundColor: "white"
|
|
566
654
|
}
|
|
567
655
|
},
|
|
568
|
-
component || /* @__PURE__ */
|
|
656
|
+
component || /* @__PURE__ */ React9.createElement(Image, { src: image })
|
|
569
657
|
)
|
|
570
658
|
);
|
|
571
659
|
};
|
|
572
660
|
|
|
573
661
|
// src/layouts/SideLayout.tsx
|
|
574
|
-
import
|
|
662
|
+
import React10 from "react";
|
|
575
663
|
function SideLayout({
|
|
576
664
|
children,
|
|
577
665
|
position = "right"
|
|
578
666
|
}) {
|
|
579
667
|
const [side, rest] = getMatchingMdxType(children, "Side");
|
|
580
|
-
return /* @__PURE__ */
|
|
668
|
+
return /* @__PURE__ */ React10.createElement(ColumnsLayout, { reverse: position === "left" }, /* @__PURE__ */ React10.createElement("div", { style: { marginLeft: Margins.horizontal } }, rest), /* @__PURE__ */ React10.createElement(
|
|
581
669
|
"div",
|
|
582
670
|
{
|
|
583
671
|
style: {
|
|
@@ -599,6 +687,7 @@ var layouts_default = {
|
|
|
599
687
|
mainSection: MainSectionLayout,
|
|
600
688
|
centered: CenteredLayout,
|
|
601
689
|
default3: Default3Layout,
|
|
690
|
+
quote: QuoteLayout,
|
|
602
691
|
sidedCode: SidedCodeLayout,
|
|
603
692
|
sidedImage: SidedImageLayout,
|
|
604
693
|
side: SideLayout,
|
|
@@ -631,11 +720,11 @@ var theme_default = {
|
|
|
631
720
|
};
|
|
632
721
|
|
|
633
722
|
// src/template.tsx
|
|
634
|
-
import
|
|
723
|
+
import React11 from "react";
|
|
635
724
|
import { Box, FullScreen } from "spectacle";
|
|
636
725
|
var template = ({ slideNumber, numberOfSlides }) => {
|
|
637
726
|
const percentage = slideNumber / numberOfSlides * 100;
|
|
638
|
-
return /* @__PURE__ */
|
|
727
|
+
return /* @__PURE__ */ React11.createElement("div", { style: { position: "absolute", bottom: 0, left: 0, right: 0 } }, /* @__PURE__ */ React11.createElement(Box, { padding: "0 0 0.5em 0.7em" }, /* @__PURE__ */ React11.createElement(FullScreen, null)), /* @__PURE__ */ React11.createElement("div", { style: { width: "100%", height: "4px", background: "#ffffff11" } }, /* @__PURE__ */ React11.createElement(
|
|
639
728
|
"div",
|
|
640
729
|
{
|
|
641
730
|
style: {
|
|
@@ -649,31 +738,31 @@ var template = ({ slideNumber, numberOfSlides }) => {
|
|
|
649
738
|
};
|
|
650
739
|
|
|
651
740
|
// src/components/map.tsx
|
|
652
|
-
import
|
|
741
|
+
import React14 from "react";
|
|
653
742
|
import { mdxComponentMap } from "spectacle";
|
|
654
743
|
|
|
655
744
|
// src/components/styled.tsx
|
|
656
|
-
import
|
|
745
|
+
import React12 from "react";
|
|
657
746
|
import {
|
|
658
747
|
Link as SpectacleLink,
|
|
659
748
|
Image as SpectacleImage,
|
|
660
749
|
Heading,
|
|
661
750
|
FlexBox as FlexBox2
|
|
662
751
|
} from "spectacle";
|
|
663
|
-
import
|
|
664
|
-
var StyledImage =
|
|
752
|
+
import styled9 from "styled-components";
|
|
753
|
+
var StyledImage = styled9(SpectacleImage)`
|
|
665
754
|
object-fit: contain;
|
|
666
755
|
max-height: 30vh;
|
|
667
756
|
max-width: 70vw;
|
|
668
757
|
`;
|
|
669
|
-
var Image2 = (props) => /* @__PURE__ */
|
|
670
|
-
var CustomHeading =
|
|
758
|
+
var Image2 = (props) => /* @__PURE__ */ React12.createElement(FlexBox2, { margin: "0 0", padding: "0 0" }, /* @__PURE__ */ React12.createElement(StyledImage, { ...props }));
|
|
759
|
+
var CustomHeading = styled9(Heading)`
|
|
671
760
|
strong {
|
|
672
761
|
color: #f49676;
|
|
673
762
|
font-weight: 500;
|
|
674
763
|
}
|
|
675
764
|
`;
|
|
676
|
-
var CustomQuote =
|
|
765
|
+
var CustomQuote = styled9.blockquote`
|
|
677
766
|
margin: 1rem 0;
|
|
678
767
|
padding-left: 1.5rem;
|
|
679
768
|
padding-top: 0;
|
|
@@ -684,7 +773,7 @@ var CustomQuote = styled8.blockquote`
|
|
|
684
773
|
padding: 0 !important;
|
|
685
774
|
}
|
|
686
775
|
`;
|
|
687
|
-
var InlineCode =
|
|
776
|
+
var InlineCode = styled9.code`
|
|
688
777
|
filter: brightness(1.05);
|
|
689
778
|
zoom: 1.1;
|
|
690
779
|
&:before,
|
|
@@ -693,12 +782,12 @@ var InlineCode = styled8.code`
|
|
|
693
782
|
font-size: 0.8em;
|
|
694
783
|
}
|
|
695
784
|
`;
|
|
696
|
-
var HeadingTwo =
|
|
785
|
+
var HeadingTwo = styled9.h2`
|
|
697
786
|
font-family: Bitter, \"Helvetica Neue\", Helvetica, Arial, sans-serif;
|
|
698
787
|
font-size: 55px;
|
|
699
788
|
font-weight: 400;
|
|
700
789
|
`;
|
|
701
|
-
var HeadingThree =
|
|
790
|
+
var HeadingThree = styled9.h3`
|
|
702
791
|
font-family: Bitter, \"Helvetica Neue\", Helvetica, Arial, sans-serif;
|
|
703
792
|
font-size: 40px;
|
|
704
793
|
font-weight: 400;
|
|
@@ -711,12 +800,12 @@ var HeadingThree = styled8.h3`
|
|
|
711
800
|
`;
|
|
712
801
|
|
|
713
802
|
// src/components/CodeStepper/CodeStepper.tsx
|
|
714
|
-
import
|
|
803
|
+
import React13 from "react";
|
|
715
804
|
import ReactIs from "react-is";
|
|
716
805
|
import { Prism as SyntaxHighlighter } from "react-syntax-highlighter";
|
|
717
806
|
import { gruvboxDark } from "react-syntax-highlighter/dist/esm/styles/prism";
|
|
718
807
|
import { Stepper } from "spectacle";
|
|
719
|
-
import
|
|
808
|
+
import styled10 from "styled-components";
|
|
720
809
|
|
|
721
810
|
// src/components/CodeStepper/code-directives.ts
|
|
722
811
|
function range(start, end) {
|
|
@@ -780,7 +869,7 @@ function parseStepDirectives(directives) {
|
|
|
780
869
|
|
|
781
870
|
// src/components/CodeStepper/CodeStepper.tsx
|
|
782
871
|
var Highlighter = SyntaxHighlighter;
|
|
783
|
-
var CodeContainer =
|
|
872
|
+
var CodeContainer = styled10.div`
|
|
784
873
|
pre {
|
|
785
874
|
padding: 1rem 0rem !important;
|
|
786
875
|
background-color: transparent !important;
|
|
@@ -801,7 +890,7 @@ var CodeContainer = styled9.div`
|
|
|
801
890
|
}
|
|
802
891
|
`;
|
|
803
892
|
function useCodeSteps(code) {
|
|
804
|
-
return
|
|
893
|
+
return React13.useMemo(() => {
|
|
805
894
|
const prefixes = code.match(/(?:\/\/|<!--) @.*\n/g) || [];
|
|
806
895
|
const prefixesLength = prefixes.reduce(
|
|
807
896
|
(acc, prefix) => acc + prefix.length,
|
|
@@ -821,8 +910,8 @@ function useCodeSteps(code) {
|
|
|
821
910
|
}, [code]);
|
|
822
911
|
}
|
|
823
912
|
function getCodeDetails(children) {
|
|
824
|
-
const child =
|
|
825
|
-
if (!
|
|
913
|
+
const child = React13.Children.toArray(children)[0];
|
|
914
|
+
if (!React13.isValidElement(child)) {
|
|
826
915
|
return {
|
|
827
916
|
language: "",
|
|
828
917
|
code: ReactIs.isFragment(child) ? "" : String(child || "")
|
|
@@ -840,7 +929,7 @@ function CodeWrapper({
|
|
|
840
929
|
hasName,
|
|
841
930
|
children
|
|
842
931
|
}) {
|
|
843
|
-
return /* @__PURE__ */
|
|
932
|
+
return /* @__PURE__ */ React13.createElement(
|
|
844
933
|
"div",
|
|
845
934
|
{
|
|
846
935
|
style: {
|
|
@@ -850,7 +939,7 @@ function CodeWrapper({
|
|
|
850
939
|
borderRadius: "4px"
|
|
851
940
|
}
|
|
852
941
|
},
|
|
853
|
-
name && /* @__PURE__ */
|
|
942
|
+
name && /* @__PURE__ */ React13.createElement(
|
|
854
943
|
"span",
|
|
855
944
|
{
|
|
856
945
|
style: {
|
|
@@ -867,7 +956,7 @@ function CodeWrapper({
|
|
|
867
956
|
name
|
|
868
957
|
),
|
|
869
958
|
children,
|
|
870
|
-
hasName && /* @__PURE__ */
|
|
959
|
+
hasName && /* @__PURE__ */ React13.createElement(
|
|
871
960
|
"span",
|
|
872
961
|
{
|
|
873
962
|
style: {
|
|
@@ -882,7 +971,7 @@ function CodeWrapper({
|
|
|
882
971
|
fontStyle: "italic"
|
|
883
972
|
}
|
|
884
973
|
},
|
|
885
|
-
stepName || /* @__PURE__ */
|
|
974
|
+
stepName || /* @__PURE__ */ React13.createElement("span", { style: { visibility: "hidden" } }, "Step")
|
|
886
975
|
)
|
|
887
976
|
);
|
|
888
977
|
}
|
|
@@ -891,7 +980,7 @@ function CodeStepper({
|
|
|
891
980
|
name,
|
|
892
981
|
...props
|
|
893
982
|
}) {
|
|
894
|
-
const { language, code } =
|
|
983
|
+
const { language, code } = React13.useMemo(() => {
|
|
895
984
|
return getCodeDetails(props.children);
|
|
896
985
|
}, [props.children]);
|
|
897
986
|
const {
|
|
@@ -901,21 +990,21 @@ function CodeStepper({
|
|
|
901
990
|
hasSteps,
|
|
902
991
|
hasName
|
|
903
992
|
} = useCodeSteps(code);
|
|
904
|
-
return /* @__PURE__ */
|
|
993
|
+
return /* @__PURE__ */ React13.createElement(CodeContainer, null, import.meta.env.DEV && Boolean(prefixes == null ? void 0 : prefixes.length) && /* @__PURE__ */ React13.createElement("div", { style: { position: "absolute", top: 0, opacity: 0.5, left: 0 } }, /* @__PURE__ */ React13.createElement(Highlighter, { language, style: gruvboxDark }, prefixes.join(""))), /* @__PURE__ */ React13.createElement(
|
|
905
994
|
Stepper,
|
|
906
995
|
{
|
|
907
996
|
values: steps,
|
|
908
997
|
alwaysVisible: !hasSteps,
|
|
909
998
|
priority: priority ? priority + 1 : void 0
|
|
910
999
|
},
|
|
911
|
-
(step, _, isActive) => /* @__PURE__ */
|
|
1000
|
+
(step, _, isActive) => /* @__PURE__ */ React13.createElement(
|
|
912
1001
|
CodeWrapper,
|
|
913
1002
|
{
|
|
914
1003
|
name,
|
|
915
1004
|
stepName: step == null ? void 0 : step.name,
|
|
916
1005
|
hasName
|
|
917
1006
|
},
|
|
918
|
-
/* @__PURE__ */
|
|
1007
|
+
/* @__PURE__ */ React13.createElement(
|
|
919
1008
|
Highlighter,
|
|
920
1009
|
{
|
|
921
1010
|
language,
|
|
@@ -965,7 +1054,7 @@ CodeStepper.mdxType = "CodeStepper";
|
|
|
965
1054
|
// src/components/map.tsx
|
|
966
1055
|
var componentsMap = {
|
|
967
1056
|
...mdxComponentMap,
|
|
968
|
-
inlineCode: (props) => /* @__PURE__ */
|
|
1057
|
+
inlineCode: (props) => /* @__PURE__ */ React14.createElement(
|
|
969
1058
|
InlineCode,
|
|
970
1059
|
{
|
|
971
1060
|
...props,
|
|
@@ -975,7 +1064,7 @@ var componentsMap = {
|
|
|
975
1064
|
}
|
|
976
1065
|
}
|
|
977
1066
|
),
|
|
978
|
-
table: (props) => /* @__PURE__ */
|
|
1067
|
+
table: (props) => /* @__PURE__ */ React14.createElement(
|
|
979
1068
|
"table",
|
|
980
1069
|
{
|
|
981
1070
|
...props,
|
|
@@ -986,7 +1075,7 @@ var componentsMap = {
|
|
|
986
1075
|
}
|
|
987
1076
|
}
|
|
988
1077
|
),
|
|
989
|
-
tr: (props) => /* @__PURE__ */
|
|
1078
|
+
tr: (props) => /* @__PURE__ */ React14.createElement(
|
|
990
1079
|
"tr",
|
|
991
1080
|
{
|
|
992
1081
|
...props,
|
|
@@ -998,7 +1087,7 @@ var componentsMap = {
|
|
|
998
1087
|
}
|
|
999
1088
|
}
|
|
1000
1089
|
),
|
|
1001
|
-
td: (props) => /* @__PURE__ */
|
|
1090
|
+
td: (props) => /* @__PURE__ */ React14.createElement(
|
|
1002
1091
|
"td",
|
|
1003
1092
|
{
|
|
1004
1093
|
...props,
|
|
@@ -1011,7 +1100,7 @@ var componentsMap = {
|
|
|
1011
1100
|
}
|
|
1012
1101
|
}
|
|
1013
1102
|
),
|
|
1014
|
-
h1: (props) => /* @__PURE__ */
|
|
1103
|
+
h1: (props) => /* @__PURE__ */ React14.createElement(
|
|
1015
1104
|
CustomHeading,
|
|
1016
1105
|
{
|
|
1017
1106
|
fontSize: "h1",
|
|
@@ -1027,15 +1116,15 @@ var componentsMap = {
|
|
|
1027
1116
|
},
|
|
1028
1117
|
props.children
|
|
1029
1118
|
),
|
|
1030
|
-
h2: (props) => /* @__PURE__ */
|
|
1031
|
-
h3: (props) => /* @__PURE__ */
|
|
1032
|
-
img: (props) => /* @__PURE__ */
|
|
1119
|
+
h2: (props) => /* @__PURE__ */ React14.createElement(HeadingTwo, null, props.children),
|
|
1120
|
+
h3: (props) => /* @__PURE__ */ React14.createElement(HeadingThree, { ...props }),
|
|
1121
|
+
img: (props) => /* @__PURE__ */ React14.createElement(Image2, { ...props }),
|
|
1033
1122
|
pre: CodeStepper,
|
|
1034
|
-
li: (props) => /* @__PURE__ */
|
|
1035
|
-
Side: (props) => /* @__PURE__ */
|
|
1123
|
+
li: (props) => /* @__PURE__ */ React14.createElement("li", { ...props, style: { margin: "24px 0" } }),
|
|
1124
|
+
Side: (props) => /* @__PURE__ */ React14.createElement("div", { ...props }),
|
|
1036
1125
|
p: (props) => {
|
|
1037
1126
|
const Text = mdxComponentMap.p;
|
|
1038
|
-
return /* @__PURE__ */
|
|
1127
|
+
return /* @__PURE__ */ React14.createElement(
|
|
1039
1128
|
Text,
|
|
1040
1129
|
{
|
|
1041
1130
|
style: { margin: "8px 0", padding: "8px 0", lineHeight: "2rem" },
|
|
@@ -1043,10 +1132,10 @@ var componentsMap = {
|
|
|
1043
1132
|
}
|
|
1044
1133
|
);
|
|
1045
1134
|
},
|
|
1046
|
-
blockquote: (props) => /* @__PURE__ */
|
|
1135
|
+
blockquote: (props) => /* @__PURE__ */ React14.createElement(CustomQuote, { ...props }),
|
|
1047
1136
|
a: ({ children, ...props }) => {
|
|
1048
1137
|
const domain = new URL(props.href || "").hostname;
|
|
1049
|
-
return /* @__PURE__ */
|
|
1138
|
+
return /* @__PURE__ */ React14.createElement("a", { ...props, style: { color: "#f49676", textDecoration: "none" } }, children, " ", /* @__PURE__ */ React14.createElement(
|
|
1050
1139
|
"small",
|
|
1051
1140
|
{
|
|
1052
1141
|
style: {
|
|
@@ -1062,14 +1151,14 @@ var componentsMap = {
|
|
|
1062
1151
|
var map_default = componentsMap;
|
|
1063
1152
|
|
|
1064
1153
|
// src/components/FilePane.tsx
|
|
1065
|
-
import
|
|
1154
|
+
import React15 from "react";
|
|
1066
1155
|
function FilePane({
|
|
1067
1156
|
name,
|
|
1068
1157
|
children,
|
|
1069
1158
|
priority,
|
|
1070
1159
|
...divProps
|
|
1071
1160
|
}) {
|
|
1072
|
-
return
|
|
1161
|
+
return React15.isValidElement(children) ? React15.cloneElement(children, {
|
|
1073
1162
|
// @ts-expect-error cloning
|
|
1074
1163
|
priority,
|
|
1075
1164
|
name
|
|
@@ -1078,14 +1167,14 @@ function FilePane({
|
|
|
1078
1167
|
FilePane.mdxType = "FilePane";
|
|
1079
1168
|
|
|
1080
1169
|
// src/components/ItemsColumn.tsx
|
|
1081
|
-
import
|
|
1170
|
+
import React16 from "react";
|
|
1082
1171
|
import { Stepper as Stepper2 } from "spectacle";
|
|
1083
|
-
import
|
|
1172
|
+
import styled11 from "styled-components";
|
|
1084
1173
|
import { useSpring, animated } from "react-spring";
|
|
1085
1174
|
function ItemsColumn(divProps) {
|
|
1086
1175
|
const { style: style2, children, ...props } = divProps;
|
|
1087
|
-
const childrenArray =
|
|
1088
|
-
return /* @__PURE__ */
|
|
1176
|
+
const childrenArray = React16.Children.toArray(children);
|
|
1177
|
+
return /* @__PURE__ */ React16.createElement(Stepper2, { values: childrenArray }, (value, step) => /* @__PURE__ */ React16.createElement(
|
|
1089
1178
|
"div",
|
|
1090
1179
|
{
|
|
1091
1180
|
style: {
|
|
@@ -1099,14 +1188,14 @@ function ItemsColumn(divProps) {
|
|
|
1099
1188
|
},
|
|
1100
1189
|
childrenArray.map((child, index) => {
|
|
1101
1190
|
const isVisible = index <= step;
|
|
1102
|
-
if (!
|
|
1191
|
+
if (!React16.isValidElement(child)) {
|
|
1103
1192
|
return child;
|
|
1104
1193
|
}
|
|
1105
|
-
return /* @__PURE__ */
|
|
1194
|
+
return /* @__PURE__ */ React16.createElement(ItemColumnWrapper, { key: index, isVisible }, child);
|
|
1106
1195
|
})
|
|
1107
1196
|
));
|
|
1108
1197
|
}
|
|
1109
|
-
var ItemColumnWrapperStyled =
|
|
1198
|
+
var ItemColumnWrapperStyled = styled11(animated.div)`
|
|
1110
1199
|
* {
|
|
1111
1200
|
text-align: center !important;
|
|
1112
1201
|
}
|
|
@@ -1117,15 +1206,75 @@ function ItemColumnWrapper({
|
|
|
1117
1206
|
...props
|
|
1118
1207
|
}) {
|
|
1119
1208
|
const styles = useSpring({ opacity: isVisible ? 1 : 0 });
|
|
1120
|
-
return /* @__PURE__ */
|
|
1209
|
+
return /* @__PURE__ */ React16.createElement(ItemColumnWrapperStyled, { style: styles, ...props }, children);
|
|
1210
|
+
}
|
|
1211
|
+
|
|
1212
|
+
// src/components/DocumentationItem.tsx
|
|
1213
|
+
import React17 from "react";
|
|
1214
|
+
import styled12 from "styled-components";
|
|
1215
|
+
var DocWrapper = styled12.div`
|
|
1216
|
+
position: absolute;
|
|
1217
|
+
bottom: 0;
|
|
1218
|
+
right: 0;
|
|
1219
|
+
z-index: 10000;
|
|
1220
|
+
|
|
1221
|
+
.docContent {
|
|
1222
|
+
display: none;
|
|
1223
|
+
}
|
|
1224
|
+
|
|
1225
|
+
&:hover .docContent {
|
|
1226
|
+
display: flex;
|
|
1227
|
+
}
|
|
1228
|
+
`;
|
|
1229
|
+
var DocContainer = styled12.div`
|
|
1230
|
+
margin: 2rem 1rem;
|
|
1231
|
+
background-color: #333;
|
|
1232
|
+
border: 1px solid #333;
|
|
1233
|
+
padding: 0.5rem 1rem;
|
|
1234
|
+
border-radius: 1.5rem;
|
|
1235
|
+
`;
|
|
1236
|
+
var DocLink = styled12.a`
|
|
1237
|
+
text-decoration: none;
|
|
1238
|
+
font-weight: normal;
|
|
1239
|
+
font-family: Bitter, "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
1240
|
+
color: #f49676;
|
|
1241
|
+
`;
|
|
1242
|
+
var DocLinkItem = styled12(DocLink)`
|
|
1243
|
+
width: fit-content;
|
|
1244
|
+
display: inline-block;
|
|
1245
|
+
background-color: #333;
|
|
1246
|
+
border: 1px solid #333;
|
|
1247
|
+
padding: 0.5rem 1rem;
|
|
1248
|
+
border-radius: 1.5rem;
|
|
1249
|
+
margin: 0.25rem 0;
|
|
1250
|
+
`;
|
|
1251
|
+
var DocContent = styled12.div`
|
|
1252
|
+
display: flex;
|
|
1253
|
+
flex-flow: column-reverse nowrap;
|
|
1254
|
+
position: absolute;
|
|
1255
|
+
right: 1rem;
|
|
1256
|
+
bottom: 4.5rem;
|
|
1257
|
+
text-align: right;
|
|
1258
|
+
border-radius: 0.5rem;
|
|
1259
|
+
align-items: flex-end;
|
|
1260
|
+
`;
|
|
1261
|
+
function Doc({
|
|
1262
|
+
label,
|
|
1263
|
+
link,
|
|
1264
|
+
children
|
|
1265
|
+
}) {
|
|
1266
|
+
return /* @__PURE__ */ React17.createElement(DocWrapper, null, /* @__PURE__ */ React17.createElement(DocContainer, null, children && /* @__PURE__ */ React17.createElement(DocContent, null, children), /* @__PURE__ */ React17.createElement("div", null, /* @__PURE__ */ React17.createElement(DocLink, { target: "_blank", rel: "noopener noreferrer", href: link }, label))));
|
|
1267
|
+
}
|
|
1268
|
+
function DocItem({ label, link }) {
|
|
1269
|
+
return /* @__PURE__ */ React17.createElement(DocLinkItem, { target: "_blank", rel: "noopener noreferrer", href: link }, label);
|
|
1121
1270
|
}
|
|
1122
1271
|
|
|
1123
1272
|
// src/components/HorizontalList.tsx
|
|
1124
|
-
import
|
|
1273
|
+
import React18 from "react";
|
|
1125
1274
|
import { animated as animated2, useSpring as useSpring2 } from "react-spring";
|
|
1126
1275
|
import { Stepper as Stepper3 } from "spectacle";
|
|
1127
|
-
import
|
|
1128
|
-
var Container =
|
|
1276
|
+
import styled13 from "styled-components";
|
|
1277
|
+
var Container = styled13.div`
|
|
1129
1278
|
display: grid;
|
|
1130
1279
|
grid-gap: 2rem;
|
|
1131
1280
|
`;
|
|
@@ -1133,8 +1282,8 @@ function HorizontalList({
|
|
|
1133
1282
|
children,
|
|
1134
1283
|
columns = 3
|
|
1135
1284
|
}) {
|
|
1136
|
-
const items =
|
|
1137
|
-
return /* @__PURE__ */
|
|
1285
|
+
const items = React18.Children.toArray(children);
|
|
1286
|
+
return /* @__PURE__ */ React18.createElement(Stepper3, { values: items }, (_, step) => /* @__PURE__ */ React18.createElement(
|
|
1138
1287
|
Container,
|
|
1139
1288
|
{
|
|
1140
1289
|
style: {
|
|
@@ -1142,10 +1291,10 @@ function HorizontalList({
|
|
|
1142
1291
|
}
|
|
1143
1292
|
},
|
|
1144
1293
|
items.map((item, k) => {
|
|
1145
|
-
if (!
|
|
1294
|
+
if (!React18.isValidElement(item)) {
|
|
1146
1295
|
return item;
|
|
1147
1296
|
}
|
|
1148
|
-
return
|
|
1297
|
+
return React18.cloneElement(item, {
|
|
1149
1298
|
// @ts-expect-error cloning
|
|
1150
1299
|
position: k + 1,
|
|
1151
1300
|
isVisible: k <= step,
|
|
@@ -1155,12 +1304,12 @@ function HorizontalList({
|
|
|
1155
1304
|
));
|
|
1156
1305
|
}
|
|
1157
1306
|
function Pill({ position }) {
|
|
1158
|
-
return /* @__PURE__ */
|
|
1307
|
+
return /* @__PURE__ */ React18.createElement(
|
|
1159
1308
|
"div",
|
|
1160
1309
|
{
|
|
1161
1310
|
style: { width: 48, transform: "translate(-25%, -25%)", opacity: 0.9 }
|
|
1162
1311
|
},
|
|
1163
|
-
/* @__PURE__ */
|
|
1312
|
+
/* @__PURE__ */ React18.createElement(
|
|
1164
1313
|
"svg",
|
|
1165
1314
|
{
|
|
1166
1315
|
width: "48",
|
|
@@ -1169,14 +1318,14 @@ function Pill({ position }) {
|
|
|
1169
1318
|
fill: "none",
|
|
1170
1319
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1171
1320
|
},
|
|
1172
|
-
/* @__PURE__ */
|
|
1321
|
+
/* @__PURE__ */ React18.createElement(
|
|
1173
1322
|
"path",
|
|
1174
1323
|
{
|
|
1175
1324
|
d: "M8.64717 20L0 15.0094V5.00134L8.64717 0L17.289 5.00134V15.0094L8.64717 20ZM1.48222 14.141L8.64717 18.2846L15.8068 14.141V5.85902L8.64717 1.71536L1.48222 5.85902V14.141Z",
|
|
1176
1325
|
fill: "#ffffff"
|
|
1177
1326
|
}
|
|
1178
1327
|
),
|
|
1179
|
-
/* @__PURE__ */
|
|
1328
|
+
/* @__PURE__ */ React18.createElement(
|
|
1180
1329
|
"text",
|
|
1181
1330
|
{
|
|
1182
1331
|
x: "9",
|
|
@@ -1188,7 +1337,7 @@ function Pill({ position }) {
|
|
|
1188
1337
|
},
|
|
1189
1338
|
position
|
|
1190
1339
|
),
|
|
1191
|
-
/* @__PURE__ */
|
|
1340
|
+
/* @__PURE__ */ React18.createElement(
|
|
1192
1341
|
"path",
|
|
1193
1342
|
{
|
|
1194
1343
|
d: "M 8.758 16.01 L 3.549 13.004 L 3.549 6.975 L 8.758 3.963 L 13.964 6.975 L 13.964 13.004 L 8.758 16.01 Z",
|
|
@@ -1198,12 +1347,12 @@ function Pill({ position }) {
|
|
|
1198
1347
|
)
|
|
1199
1348
|
);
|
|
1200
1349
|
}
|
|
1201
|
-
var Item =
|
|
1350
|
+
var Item = styled13(animated2.div)`
|
|
1202
1351
|
display: flex;
|
|
1203
1352
|
flex-direction: column;
|
|
1204
1353
|
font-family: Bitter, "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
1205
1354
|
`;
|
|
1206
|
-
var ItemHead =
|
|
1355
|
+
var ItemHead = styled13.div`
|
|
1207
1356
|
display: flex;
|
|
1208
1357
|
flex-direction: row;
|
|
1209
1358
|
font-size: 1.3rem;
|
|
@@ -1213,7 +1362,7 @@ var ItemHead = styled11.div`
|
|
|
1213
1362
|
margin: 0;
|
|
1214
1363
|
}
|
|
1215
1364
|
`;
|
|
1216
|
-
var ItemContent =
|
|
1365
|
+
var ItemContent = styled13.div`
|
|
1217
1366
|
> * {
|
|
1218
1367
|
font-size: 1rem;
|
|
1219
1368
|
padding: 4px !important;
|
|
@@ -1241,31 +1390,31 @@ function HorizontalListItem({
|
|
|
1241
1390
|
const opacityStyles = useSpring2({
|
|
1242
1391
|
opacity: getItemOpacity({ isVisible, isLast })
|
|
1243
1392
|
});
|
|
1244
|
-
return /* @__PURE__ */
|
|
1393
|
+
return /* @__PURE__ */ React18.createElement(Item, { style: opacityStyles }, /* @__PURE__ */ React18.createElement(ItemHead, null, /* @__PURE__ */ React18.createElement(Pill, { position }), /* @__PURE__ */ React18.createElement("p", null, title)), /* @__PURE__ */ React18.createElement(ItemContent, null, children));
|
|
1245
1394
|
}
|
|
1246
1395
|
|
|
1247
1396
|
// src/components/Timeline.tsx
|
|
1248
|
-
import
|
|
1397
|
+
import React19 from "react";
|
|
1249
1398
|
import { animated as animated3, useSpring as useSpring3 } from "react-spring";
|
|
1250
1399
|
import { Stepper as Stepper4 } from "spectacle";
|
|
1251
1400
|
|
|
1252
1401
|
// src/components/Timeline.styled.tsx
|
|
1253
|
-
import
|
|
1254
|
-
var TimelineItemContent =
|
|
1402
|
+
import styled14 from "styled-components";
|
|
1403
|
+
var TimelineItemContent = styled14.div`
|
|
1255
1404
|
display: flex;
|
|
1256
1405
|
padding: 0.7rem 0 1rem 12px;
|
|
1257
1406
|
`;
|
|
1258
|
-
var TimelineItemContentPhantom =
|
|
1407
|
+
var TimelineItemContentPhantom = styled14(TimelineItemContent)`
|
|
1259
1408
|
opacity: 0;
|
|
1260
1409
|
`;
|
|
1261
|
-
var TimelineItemBody =
|
|
1410
|
+
var TimelineItemBody = styled14.div`
|
|
1262
1411
|
&,
|
|
1263
1412
|
& > * {
|
|
1264
1413
|
font-size: 1.3rem !important;
|
|
1265
1414
|
color: #ffffff !important;
|
|
1266
1415
|
}
|
|
1267
1416
|
`;
|
|
1268
|
-
var TimelineItemTitle =
|
|
1417
|
+
var TimelineItemTitle = styled14.div`
|
|
1269
1418
|
font-family: Bitter, "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
1270
1419
|
font-size: 1rem;
|
|
1271
1420
|
font-weight: bold;
|
|
@@ -1273,8 +1422,8 @@ var TimelineItemTitle = styled12.div`
|
|
|
1273
1422
|
`;
|
|
1274
1423
|
|
|
1275
1424
|
// src/components/Timeline.tsx
|
|
1276
|
-
import
|
|
1277
|
-
var TimelineItemStyled =
|
|
1425
|
+
import styled15 from "styled-components";
|
|
1426
|
+
var TimelineItemStyled = styled15(animated3.div)`
|
|
1278
1427
|
flex: 1;
|
|
1279
1428
|
flex-flow: column nowrap;
|
|
1280
1429
|
display: inline-flex;
|
|
@@ -1292,7 +1441,7 @@ var TimelineItemStyled = styled13(animated3.div)`
|
|
|
1292
1441
|
}
|
|
1293
1442
|
}
|
|
1294
1443
|
`;
|
|
1295
|
-
var TimelineItemGuide =
|
|
1444
|
+
var TimelineItemGuide = styled15(animated3.div)`
|
|
1296
1445
|
width: 100%;
|
|
1297
1446
|
padding-top: 2px;
|
|
1298
1447
|
display: flex;
|
|
@@ -1308,7 +1457,7 @@ var TimelineItemGuide = styled13(animated3.div)`
|
|
|
1308
1457
|
margin-right: 4px;
|
|
1309
1458
|
}
|
|
1310
1459
|
`;
|
|
1311
|
-
var TimelineItemGuideLine =
|
|
1460
|
+
var TimelineItemGuideLine = styled15(animated3.div)`
|
|
1312
1461
|
border-top: 4px solid #ffffff;
|
|
1313
1462
|
margin-right: 4px;
|
|
1314
1463
|
`;
|
|
@@ -1319,8 +1468,8 @@ var style = {
|
|
|
1319
1468
|
alignItems: "center"
|
|
1320
1469
|
};
|
|
1321
1470
|
function Timeline(props) {
|
|
1322
|
-
const children =
|
|
1323
|
-
return /* @__PURE__ */
|
|
1471
|
+
const children = React19.Children.toArray(props.children);
|
|
1472
|
+
return /* @__PURE__ */ React19.createElement(
|
|
1324
1473
|
Stepper4,
|
|
1325
1474
|
{
|
|
1326
1475
|
...props,
|
|
@@ -1330,10 +1479,10 @@ function Timeline(props) {
|
|
|
1330
1479
|
},
|
|
1331
1480
|
(value, step) => {
|
|
1332
1481
|
return children.map((child, index) => {
|
|
1333
|
-
if (!
|
|
1482
|
+
if (!React19.isValidElement(child)) {
|
|
1334
1483
|
return child;
|
|
1335
1484
|
}
|
|
1336
|
-
return
|
|
1485
|
+
return React19.cloneElement(child, {
|
|
1337
1486
|
// @ts-expect-error cloning
|
|
1338
1487
|
isPhantom: step < index,
|
|
1339
1488
|
isLast: step === index
|
|
@@ -1361,7 +1510,7 @@ function TimelineItem(props) {
|
|
|
1361
1510
|
opacity: getItemOpacity2({ isPhantom, isLast })
|
|
1362
1511
|
});
|
|
1363
1512
|
const colorStyles = useSpring3({ opacity: isPhantom || isLast ? 1 : 0.15 });
|
|
1364
|
-
return /* @__PURE__ */
|
|
1513
|
+
return /* @__PURE__ */ React19.createElement(
|
|
1365
1514
|
TimelineItemStyled,
|
|
1366
1515
|
{
|
|
1367
1516
|
...rest,
|
|
@@ -1369,13 +1518,13 @@ function TimelineItem(props) {
|
|
|
1369
1518
|
...appearStyles
|
|
1370
1519
|
}
|
|
1371
1520
|
},
|
|
1372
|
-
/* @__PURE__ */
|
|
1373
|
-
/* @__PURE__ */
|
|
1374
|
-
/* @__PURE__ */
|
|
1521
|
+
/* @__PURE__ */ React19.createElement(TimelineItemContentPhantom, null, /* @__PURE__ */ React19.createElement(TimelineItemTitle, null, title), /* @__PURE__ */ React19.createElement(TimelineItemBody, null, children)),
|
|
1522
|
+
/* @__PURE__ */ React19.createElement(TimelineItemGuide, { style: colorStyles }, /* @__PURE__ */ React19.createElement(Hexagon, null), /* @__PURE__ */ React19.createElement(TimelineItemGuideLine, { style: guideLineProps })),
|
|
1523
|
+
/* @__PURE__ */ React19.createElement(TimelineItemContent, null, /* @__PURE__ */ React19.createElement(TimelineItemTitle, null, title), /* @__PURE__ */ React19.createElement(TimelineItemBody, null, children))
|
|
1375
1524
|
);
|
|
1376
1525
|
}
|
|
1377
1526
|
function Hexagon() {
|
|
1378
|
-
return /* @__PURE__ */
|
|
1527
|
+
return /* @__PURE__ */ React19.createElement(
|
|
1379
1528
|
"svg",
|
|
1380
1529
|
{
|
|
1381
1530
|
width: "18",
|
|
@@ -1384,14 +1533,14 @@ function Hexagon() {
|
|
|
1384
1533
|
fill: "none",
|
|
1385
1534
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1386
1535
|
},
|
|
1387
|
-
/* @__PURE__ */
|
|
1536
|
+
/* @__PURE__ */ React19.createElement(
|
|
1388
1537
|
"path",
|
|
1389
1538
|
{
|
|
1390
1539
|
d: "M8.64717 20L0 15.0094V5.00134L8.64717 0L17.289 5.00134V15.0094L8.64717 20ZM1.48222 14.141L8.64717 18.2846L15.8068 14.141V5.85902L8.64717 1.71536L1.48222 5.85902V14.141Z",
|
|
1391
1540
|
fill: "#F49676"
|
|
1392
1541
|
}
|
|
1393
1542
|
),
|
|
1394
|
-
/* @__PURE__ */
|
|
1543
|
+
/* @__PURE__ */ React19.createElement(
|
|
1395
1544
|
"path",
|
|
1396
1545
|
{
|
|
1397
1546
|
d: "M 8.758 16.01 L 3.549 13.004 L 3.549 6.975 L 8.758 3.963 L 13.964 6.975 L 13.964 13.004 L 8.758 16.01 Z",
|
|
@@ -1402,9 +1551,9 @@ function Hexagon() {
|
|
|
1402
1551
|
}
|
|
1403
1552
|
|
|
1404
1553
|
// src/components/IconBox.tsx
|
|
1405
|
-
import
|
|
1406
|
-
import
|
|
1407
|
-
var IconBoxContent =
|
|
1554
|
+
import React20 from "react";
|
|
1555
|
+
import styled16 from "styled-components";
|
|
1556
|
+
var IconBoxContent = styled16.div`
|
|
1408
1557
|
* {
|
|
1409
1558
|
margin: 0.2rem !important;
|
|
1410
1559
|
padding: 0 !important;
|
|
@@ -1414,7 +1563,7 @@ function IconBox({
|
|
|
1414
1563
|
children,
|
|
1415
1564
|
icon
|
|
1416
1565
|
}) {
|
|
1417
|
-
return /* @__PURE__ */
|
|
1566
|
+
return /* @__PURE__ */ React20.createElement(
|
|
1418
1567
|
"div",
|
|
1419
1568
|
{
|
|
1420
1569
|
style: {
|
|
@@ -1424,14 +1573,14 @@ function IconBox({
|
|
|
1424
1573
|
padding: "1rem 0"
|
|
1425
1574
|
}
|
|
1426
1575
|
},
|
|
1427
|
-
/* @__PURE__ */
|
|
1428
|
-
/* @__PURE__ */
|
|
1576
|
+
/* @__PURE__ */ React20.createElement("div", { style: { fontSize: 60 } }, icon),
|
|
1577
|
+
/* @__PURE__ */ React20.createElement(IconBoxContent, null, children)
|
|
1429
1578
|
);
|
|
1430
1579
|
}
|
|
1431
1580
|
|
|
1432
1581
|
// src/index.tsx
|
|
1433
1582
|
function PassThrough({ children }) {
|
|
1434
|
-
return /* @__PURE__ */
|
|
1583
|
+
return /* @__PURE__ */ React21.createElement(React21.Fragment, null, children);
|
|
1435
1584
|
}
|
|
1436
1585
|
function Layout({
|
|
1437
1586
|
children,
|
|
@@ -1443,47 +1592,44 @@ function Layout({
|
|
|
1443
1592
|
console.warn(`Layout ${layout} not found`);
|
|
1444
1593
|
}
|
|
1445
1594
|
if (Layout2) {
|
|
1446
|
-
return /* @__PURE__ */
|
|
1595
|
+
return /* @__PURE__ */ React21.createElement(Layout2, { ...frontmatter }, children);
|
|
1447
1596
|
}
|
|
1448
|
-
return /* @__PURE__ */
|
|
1597
|
+
return /* @__PURE__ */ React21.createElement(React21.Fragment, null, children);
|
|
1449
1598
|
}
|
|
1450
1599
|
var componentsMap2 = {
|
|
1451
1600
|
...map_default,
|
|
1452
1601
|
wrapper: Layout
|
|
1453
1602
|
};
|
|
1454
1603
|
function Deck({ deck }) {
|
|
1455
|
-
|
|
1604
|
+
React21.useEffect(() => {
|
|
1456
1605
|
document.title = deck.metadata.title || "Untitled";
|
|
1457
1606
|
}, [deck.metadata.title]);
|
|
1458
|
-
return /* @__PURE__ */
|
|
1607
|
+
return /* @__PURE__ */ React21.createElement(React21.StrictMode, null, /* @__PURE__ */ React21.createElement(MDXProvider, { components: componentsMap2 }, /* @__PURE__ */ React21.createElement(SpectacleDeck, { theme: theme_default, template }, deck.slides.map((slide, i) => {
|
|
1459
1608
|
const Component = slide.slideComponent;
|
|
1460
|
-
return /* @__PURE__ */
|
|
1609
|
+
return /* @__PURE__ */ React21.createElement(Slide, { key: i }, /* @__PURE__ */ React21.createElement(Component, null));
|
|
1461
1610
|
}))));
|
|
1462
1611
|
}
|
|
1463
1612
|
function Danger({ children }) {
|
|
1464
|
-
return /* @__PURE__ */
|
|
1465
|
-
}
|
|
1466
|
-
function Doc({ children }) {
|
|
1467
|
-
return /* @__PURE__ */ React19.createElement("div", { style: { color: "blue" } }, children);
|
|
1613
|
+
return /* @__PURE__ */ React21.createElement("div", { style: { color: "red" } }, children);
|
|
1468
1614
|
}
|
|
1469
1615
|
function Information({ children }) {
|
|
1470
|
-
return /* @__PURE__ */
|
|
1616
|
+
return /* @__PURE__ */ React21.createElement("div", { style: { color: "orange" } }, children);
|
|
1471
1617
|
}
|
|
1472
1618
|
function Success({ children }) {
|
|
1473
|
-
return /* @__PURE__ */
|
|
1619
|
+
return /* @__PURE__ */ React21.createElement("div", { style: { color: "green" } }, children);
|
|
1620
|
+
}
|
|
1621
|
+
function Warning({ children }) {
|
|
1622
|
+
return /* @__PURE__ */ React21.createElement("div", { style: { color: "yellow" } }, children);
|
|
1474
1623
|
}
|
|
1475
1624
|
function Side({ children }) {
|
|
1476
|
-
return /* @__PURE__ */
|
|
1625
|
+
return /* @__PURE__ */ React21.createElement("div", null, children);
|
|
1477
1626
|
}
|
|
1478
1627
|
Side.mdxType = "Side";
|
|
1479
1628
|
function Documentation({ children }) {
|
|
1480
|
-
return /* @__PURE__ */
|
|
1481
|
-
}
|
|
1482
|
-
function DocItem({ children }) {
|
|
1483
|
-
return /* @__PURE__ */ React19.createElement("div", null, children);
|
|
1629
|
+
return /* @__PURE__ */ React21.createElement("div", null, children);
|
|
1484
1630
|
}
|
|
1485
1631
|
function Box2({ children }) {
|
|
1486
|
-
return /* @__PURE__ */
|
|
1632
|
+
return /* @__PURE__ */ React21.createElement("div", null, children);
|
|
1487
1633
|
}
|
|
1488
1634
|
export {
|
|
1489
1635
|
Box2 as Box,
|
|
@@ -1504,5 +1650,6 @@ export {
|
|
|
1504
1650
|
Side,
|
|
1505
1651
|
Success,
|
|
1506
1652
|
Timeline,
|
|
1507
|
-
TimelineItem
|
|
1653
|
+
TimelineItem,
|
|
1654
|
+
Warning
|
|
1508
1655
|
};
|