@gpichot/spectacle-deck 1.1.2 → 1.1.4
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/index.cjs +201 -148
- package/index.mjs +200 -147
- package/layouts/BaseLayout.d.ts +5 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/index.tsx
|
|
2
|
-
import
|
|
2
|
+
import React22 from "react";
|
|
3
3
|
import { MDXProvider } from "@mdx-js/react";
|
|
4
4
|
import { Deck as SpectacleDeck, Slide } from "spectacle";
|
|
5
5
|
|
|
@@ -353,14 +353,66 @@ var MainSectionLayout = ({
|
|
|
353
353
|
};
|
|
354
354
|
|
|
355
355
|
// src/layouts/QuoteLayout.tsx
|
|
356
|
+
import React6 from "react";
|
|
357
|
+
import styled4 from "styled-components";
|
|
358
|
+
|
|
359
|
+
// src/layouts/BaseLayout.tsx
|
|
356
360
|
import React5 from "react";
|
|
357
361
|
import styled3 from "styled-components";
|
|
362
|
+
var DefaultLayoutHeading = styled3.div`
|
|
363
|
+
background-color: #ffffff11;
|
|
364
|
+
padding: 2rem 5rem;
|
|
365
|
+
margin-bottom: 1rem;
|
|
366
|
+
|
|
367
|
+
h2 {
|
|
368
|
+
margin: 0;
|
|
369
|
+
}
|
|
370
|
+
`;
|
|
371
|
+
var BaseLayout = ({
|
|
372
|
+
children,
|
|
373
|
+
title,
|
|
374
|
+
...otherProps
|
|
375
|
+
}) => {
|
|
376
|
+
return /* @__PURE__ */ React5.createElement(
|
|
377
|
+
"div",
|
|
378
|
+
{
|
|
379
|
+
...otherProps,
|
|
380
|
+
style: {
|
|
381
|
+
position: "absolute",
|
|
382
|
+
top: 0,
|
|
383
|
+
right: 0,
|
|
384
|
+
bottom: 0,
|
|
385
|
+
left: 0,
|
|
386
|
+
display: "flex",
|
|
387
|
+
flexDirection: "column",
|
|
388
|
+
marginBottom: "5rem"
|
|
389
|
+
}
|
|
390
|
+
},
|
|
391
|
+
title && /* @__PURE__ */ React5.createElement(DefaultLayoutHeading, null, title),
|
|
392
|
+
/* @__PURE__ */ React5.createElement(
|
|
393
|
+
"div",
|
|
394
|
+
{
|
|
395
|
+
style: {
|
|
396
|
+
display: "flex",
|
|
397
|
+
flexDirection: "column",
|
|
398
|
+
justifyContent: "center",
|
|
399
|
+
height: "100%",
|
|
400
|
+
padding: "0 4rem",
|
|
401
|
+
flex: 1
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
children
|
|
405
|
+
)
|
|
406
|
+
);
|
|
407
|
+
};
|
|
408
|
+
|
|
409
|
+
// src/layouts/QuoteLayout.tsx
|
|
358
410
|
function invariant(condition, message) {
|
|
359
411
|
if (!condition) {
|
|
360
412
|
throw new Error(message);
|
|
361
413
|
}
|
|
362
414
|
}
|
|
363
|
-
var QuoteBaseLayout =
|
|
415
|
+
var QuoteBaseLayout = styled4(BaseLayout)`
|
|
364
416
|
.blockquote > * {
|
|
365
417
|
border-left: 0;
|
|
366
418
|
}
|
|
@@ -410,9 +462,10 @@ function QuoteLayout({
|
|
|
410
462
|
author,
|
|
411
463
|
url
|
|
412
464
|
}) {
|
|
465
|
+
console.log(children);
|
|
413
466
|
const [blockquote, rest] = getMatchingMdxType(children, "blockquote");
|
|
414
467
|
invariant(rest, "QuoteLayout can only have one blockquote");
|
|
415
|
-
return /* @__PURE__ */
|
|
468
|
+
return /* @__PURE__ */ React6.createElement(QuoteBaseLayout, null, /* @__PURE__ */ React6.createElement(
|
|
416
469
|
"div",
|
|
417
470
|
{
|
|
418
471
|
style: {
|
|
@@ -424,7 +477,7 @@ function QuoteLayout({
|
|
|
424
477
|
margin: "0 10%"
|
|
425
478
|
}
|
|
426
479
|
},
|
|
427
|
-
/* @__PURE__ */
|
|
480
|
+
/* @__PURE__ */ React6.createElement(
|
|
428
481
|
"div",
|
|
429
482
|
{
|
|
430
483
|
style: {
|
|
@@ -436,13 +489,13 @@ function QuoteLayout({
|
|
|
436
489
|
},
|
|
437
490
|
blockquote
|
|
438
491
|
),
|
|
439
|
-
/* @__PURE__ */
|
|
492
|
+
/* @__PURE__ */ React6.createElement("div", { className: "source", style: { flex: 1, padding: "0 2rem" } }, /* @__PURE__ */ React6.createElement("a", { href: url, target: "_blank", rel: "noopener noreferrer" }, author))
|
|
440
493
|
));
|
|
441
494
|
}
|
|
442
495
|
|
|
443
496
|
// src/layouts/SectionLayout.tsx
|
|
444
|
-
import
|
|
445
|
-
var SectionLayout =
|
|
497
|
+
import styled5 from "styled-components";
|
|
498
|
+
var SectionLayout = styled5.div`
|
|
446
499
|
display: flex;
|
|
447
500
|
flex-direction: row;
|
|
448
501
|
align-items: center;
|
|
@@ -456,12 +509,12 @@ var SectionLayout = styled4.div`
|
|
|
456
509
|
`;
|
|
457
510
|
|
|
458
511
|
// src/layouts/SideCodeLayout.tsx
|
|
459
|
-
import
|
|
512
|
+
import React8 from "react";
|
|
460
513
|
|
|
461
514
|
// src/layouts/columns.tsx
|
|
462
|
-
import
|
|
463
|
-
import
|
|
464
|
-
var DivWithHeading =
|
|
515
|
+
import React7 from "react";
|
|
516
|
+
import styled6 from "styled-components";
|
|
517
|
+
var DivWithHeading = styled6.div`
|
|
465
518
|
h2 {
|
|
466
519
|
margin-top: 0;
|
|
467
520
|
}
|
|
@@ -470,7 +523,7 @@ var DivWithHeading = styled5.div`
|
|
|
470
523
|
font-weight: 400;
|
|
471
524
|
}
|
|
472
525
|
`;
|
|
473
|
-
var ColumnsContainer =
|
|
526
|
+
var ColumnsContainer = styled6(DivWithHeading)`
|
|
474
527
|
display: flex;
|
|
475
528
|
flex-direction: row;
|
|
476
529
|
position: absolute;
|
|
@@ -484,15 +537,15 @@ function ColumnsLayout({
|
|
|
484
537
|
children,
|
|
485
538
|
reverse
|
|
486
539
|
}) {
|
|
487
|
-
const childrenArray =
|
|
488
|
-
return /* @__PURE__ */
|
|
540
|
+
const childrenArray = React7.Children.toArray(children);
|
|
541
|
+
return /* @__PURE__ */ React7.createElement(
|
|
489
542
|
ColumnsContainer,
|
|
490
543
|
{
|
|
491
544
|
style: {
|
|
492
545
|
flexDirection: reverse ? "row-reverse" : "row"
|
|
493
546
|
}
|
|
494
547
|
},
|
|
495
|
-
childrenArray.map((child, i) => /* @__PURE__ */
|
|
548
|
+
childrenArray.map((child, i) => /* @__PURE__ */ React7.createElement(
|
|
496
549
|
"div",
|
|
497
550
|
{
|
|
498
551
|
key: i,
|
|
@@ -511,8 +564,8 @@ function ColumnsLayout({
|
|
|
511
564
|
}
|
|
512
565
|
|
|
513
566
|
// src/layouts/SideCodeLayout.tsx
|
|
514
|
-
import
|
|
515
|
-
var CodeSide =
|
|
567
|
+
import styled7 from "styled-components";
|
|
568
|
+
var CodeSide = styled7.div`
|
|
516
569
|
pre {
|
|
517
570
|
font-size: 0.9rem;
|
|
518
571
|
}
|
|
@@ -522,7 +575,7 @@ function SidedCodeLayout({
|
|
|
522
575
|
position = "right"
|
|
523
576
|
}) {
|
|
524
577
|
const [code, rest] = getCodeChildren(children);
|
|
525
|
-
return /* @__PURE__ */
|
|
578
|
+
return /* @__PURE__ */ React8.createElement(ColumnsLayout, { reverse: position === "left" }, /* @__PURE__ */ React8.createElement(
|
|
526
579
|
"div",
|
|
527
580
|
{
|
|
528
581
|
style: {
|
|
@@ -531,7 +584,7 @@ function SidedCodeLayout({
|
|
|
531
584
|
}
|
|
532
585
|
},
|
|
533
586
|
rest
|
|
534
|
-
), /* @__PURE__ */
|
|
587
|
+
), /* @__PURE__ */ React8.createElement(
|
|
535
588
|
CodeSide,
|
|
536
589
|
{
|
|
537
590
|
style: {
|
|
@@ -547,15 +600,15 @@ function SidedCodeLayout({
|
|
|
547
600
|
}
|
|
548
601
|
|
|
549
602
|
// src/layouts/SideImageLayout.tsx
|
|
550
|
-
import
|
|
551
|
-
import
|
|
603
|
+
import React10 from "react";
|
|
604
|
+
import styled9 from "styled-components";
|
|
552
605
|
|
|
553
606
|
// src/components/Image.tsx
|
|
554
|
-
import
|
|
607
|
+
import React9 from "react";
|
|
555
608
|
|
|
556
609
|
// src/layouts/styled.ts
|
|
557
|
-
import
|
|
558
|
-
var SVGObject =
|
|
610
|
+
import styled8 from "styled-components";
|
|
611
|
+
var SVGObject = styled8.object`
|
|
559
612
|
padding: 3rem 2rem;
|
|
560
613
|
box-sizing: border-box;
|
|
561
614
|
background-color: white;
|
|
@@ -565,7 +618,7 @@ var SVGObject = styled7.object`
|
|
|
565
618
|
function Image(props) {
|
|
566
619
|
const { src, height } = props;
|
|
567
620
|
if (!(src == null ? void 0 : src.endsWith(".svg"))) {
|
|
568
|
-
return /* @__PURE__ */
|
|
621
|
+
return /* @__PURE__ */ React9.createElement(
|
|
569
622
|
"img",
|
|
570
623
|
{
|
|
571
624
|
src,
|
|
@@ -578,7 +631,7 @@ function Image(props) {
|
|
|
578
631
|
}
|
|
579
632
|
);
|
|
580
633
|
}
|
|
581
|
-
return /* @__PURE__ */
|
|
634
|
+
return /* @__PURE__ */ React9.createElement(
|
|
582
635
|
SVGObject,
|
|
583
636
|
{
|
|
584
637
|
type: "image/svg+xml",
|
|
@@ -594,7 +647,7 @@ function Image(props) {
|
|
|
594
647
|
Image.mdxType = "Image";
|
|
595
648
|
|
|
596
649
|
// src/layouts/SideImageLayout.tsx
|
|
597
|
-
var DivWithHeading2 =
|
|
650
|
+
var DivWithHeading2 = styled9.div`
|
|
598
651
|
h2 {
|
|
599
652
|
margin-top: 0;
|
|
600
653
|
}
|
|
@@ -615,7 +668,7 @@ var SidedImageLayout = ({
|
|
|
615
668
|
console.error("No image provided for SidedImageLayout");
|
|
616
669
|
return null;
|
|
617
670
|
}
|
|
618
|
-
return /* @__PURE__ */
|
|
671
|
+
return /* @__PURE__ */ React10.createElement(
|
|
619
672
|
DivWithHeading2,
|
|
620
673
|
{
|
|
621
674
|
style: {
|
|
@@ -628,7 +681,7 @@ var SidedImageLayout = ({
|
|
|
628
681
|
top: 0
|
|
629
682
|
}
|
|
630
683
|
},
|
|
631
|
-
/* @__PURE__ */
|
|
684
|
+
/* @__PURE__ */ React10.createElement(
|
|
632
685
|
"div",
|
|
633
686
|
{
|
|
634
687
|
style: {
|
|
@@ -641,7 +694,7 @@ var SidedImageLayout = ({
|
|
|
641
694
|
},
|
|
642
695
|
rest
|
|
643
696
|
),
|
|
644
|
-
/* @__PURE__ */
|
|
697
|
+
/* @__PURE__ */ React10.createElement(
|
|
645
698
|
"div",
|
|
646
699
|
{
|
|
647
700
|
style: {
|
|
@@ -653,19 +706,19 @@ var SidedImageLayout = ({
|
|
|
653
706
|
backgroundColor: "white"
|
|
654
707
|
}
|
|
655
708
|
},
|
|
656
|
-
component || /* @__PURE__ */
|
|
709
|
+
component || /* @__PURE__ */ React10.createElement(Image, { src: image })
|
|
657
710
|
)
|
|
658
711
|
);
|
|
659
712
|
};
|
|
660
713
|
|
|
661
714
|
// src/layouts/SideLayout.tsx
|
|
662
|
-
import
|
|
715
|
+
import React11 from "react";
|
|
663
716
|
function SideLayout({
|
|
664
717
|
children,
|
|
665
718
|
position = "right"
|
|
666
719
|
}) {
|
|
667
720
|
const [side, rest] = getMatchingMdxType(children, "Side");
|
|
668
|
-
return /* @__PURE__ */
|
|
721
|
+
return /* @__PURE__ */ React11.createElement(ColumnsLayout, { reverse: position === "left" }, /* @__PURE__ */ React11.createElement("div", { style: { marginLeft: Margins.horizontal } }, rest), /* @__PURE__ */ React11.createElement(
|
|
669
722
|
"div",
|
|
670
723
|
{
|
|
671
724
|
style: {
|
|
@@ -720,11 +773,11 @@ var theme_default = {
|
|
|
720
773
|
};
|
|
721
774
|
|
|
722
775
|
// src/template.tsx
|
|
723
|
-
import
|
|
776
|
+
import React12 from "react";
|
|
724
777
|
import { Box, FullScreen } from "spectacle";
|
|
725
778
|
var template = ({ slideNumber, numberOfSlides }) => {
|
|
726
779
|
const percentage = slideNumber / numberOfSlides * 100;
|
|
727
|
-
return /* @__PURE__ */
|
|
780
|
+
return /* @__PURE__ */ React12.createElement("div", { style: { position: "absolute", bottom: 0, left: 0, right: 0 } }, /* @__PURE__ */ React12.createElement(Box, { padding: "0 0 0.5em 0.7em" }, /* @__PURE__ */ React12.createElement(FullScreen, null)), /* @__PURE__ */ React12.createElement("div", { style: { width: "100%", height: "4px", background: "#ffffff11" } }, /* @__PURE__ */ React12.createElement(
|
|
728
781
|
"div",
|
|
729
782
|
{
|
|
730
783
|
style: {
|
|
@@ -738,31 +791,31 @@ var template = ({ slideNumber, numberOfSlides }) => {
|
|
|
738
791
|
};
|
|
739
792
|
|
|
740
793
|
// src/components/map.tsx
|
|
741
|
-
import
|
|
794
|
+
import React15 from "react";
|
|
742
795
|
import { mdxComponentMap } from "spectacle";
|
|
743
796
|
|
|
744
797
|
// src/components/styled.tsx
|
|
745
|
-
import
|
|
798
|
+
import React13 from "react";
|
|
746
799
|
import {
|
|
747
800
|
Link as SpectacleLink,
|
|
748
801
|
Image as SpectacleImage,
|
|
749
802
|
Heading,
|
|
750
803
|
FlexBox as FlexBox2
|
|
751
804
|
} from "spectacle";
|
|
752
|
-
import
|
|
753
|
-
var StyledImage =
|
|
805
|
+
import styled10 from "styled-components";
|
|
806
|
+
var StyledImage = styled10(SpectacleImage)`
|
|
754
807
|
object-fit: contain;
|
|
755
808
|
max-height: 30vh;
|
|
756
809
|
max-width: 70vw;
|
|
757
810
|
`;
|
|
758
|
-
var Image2 = (props) => /* @__PURE__ */
|
|
759
|
-
var CustomHeading =
|
|
811
|
+
var Image2 = (props) => /* @__PURE__ */ React13.createElement(FlexBox2, { margin: "0 0", padding: "0 0" }, /* @__PURE__ */ React13.createElement(StyledImage, { ...props }));
|
|
812
|
+
var CustomHeading = styled10(Heading)`
|
|
760
813
|
strong {
|
|
761
814
|
color: #f49676;
|
|
762
815
|
font-weight: 500;
|
|
763
816
|
}
|
|
764
817
|
`;
|
|
765
|
-
var CustomQuote =
|
|
818
|
+
var CustomQuote = styled10.blockquote`
|
|
766
819
|
margin: 1rem 0;
|
|
767
820
|
padding-left: 1.5rem;
|
|
768
821
|
padding-top: 0;
|
|
@@ -773,7 +826,7 @@ var CustomQuote = styled9.blockquote`
|
|
|
773
826
|
padding: 0 !important;
|
|
774
827
|
}
|
|
775
828
|
`;
|
|
776
|
-
var InlineCode =
|
|
829
|
+
var InlineCode = styled10.code`
|
|
777
830
|
filter: brightness(1.05);
|
|
778
831
|
zoom: 1.1;
|
|
779
832
|
&:before,
|
|
@@ -782,12 +835,12 @@ var InlineCode = styled9.code`
|
|
|
782
835
|
font-size: 0.8em;
|
|
783
836
|
}
|
|
784
837
|
`;
|
|
785
|
-
var HeadingTwo =
|
|
838
|
+
var HeadingTwo = styled10.h2`
|
|
786
839
|
font-family: Bitter, \"Helvetica Neue\", Helvetica, Arial, sans-serif;
|
|
787
840
|
font-size: 55px;
|
|
788
841
|
font-weight: 400;
|
|
789
842
|
`;
|
|
790
|
-
var HeadingThree =
|
|
843
|
+
var HeadingThree = styled10.h3`
|
|
791
844
|
font-family: Bitter, \"Helvetica Neue\", Helvetica, Arial, sans-serif;
|
|
792
845
|
font-size: 40px;
|
|
793
846
|
font-weight: 400;
|
|
@@ -800,12 +853,12 @@ var HeadingThree = styled9.h3`
|
|
|
800
853
|
`;
|
|
801
854
|
|
|
802
855
|
// src/components/CodeStepper/CodeStepper.tsx
|
|
803
|
-
import
|
|
856
|
+
import React14 from "react";
|
|
804
857
|
import ReactIs from "react-is";
|
|
805
858
|
import { Prism as SyntaxHighlighter } from "react-syntax-highlighter";
|
|
806
859
|
import { gruvboxDark } from "react-syntax-highlighter/dist/esm/styles/prism";
|
|
807
860
|
import { Stepper } from "spectacle";
|
|
808
|
-
import
|
|
861
|
+
import styled11 from "styled-components";
|
|
809
862
|
|
|
810
863
|
// src/components/CodeStepper/code-directives.ts
|
|
811
864
|
function range(start, end) {
|
|
@@ -869,7 +922,7 @@ function parseStepDirectives(directives) {
|
|
|
869
922
|
|
|
870
923
|
// src/components/CodeStepper/CodeStepper.tsx
|
|
871
924
|
var Highlighter = SyntaxHighlighter;
|
|
872
|
-
var CodeContainer =
|
|
925
|
+
var CodeContainer = styled11.div`
|
|
873
926
|
pre {
|
|
874
927
|
padding: 1rem 0rem !important;
|
|
875
928
|
background-color: transparent !important;
|
|
@@ -890,7 +943,7 @@ var CodeContainer = styled10.div`
|
|
|
890
943
|
}
|
|
891
944
|
`;
|
|
892
945
|
function useCodeSteps(code) {
|
|
893
|
-
return
|
|
946
|
+
return React14.useMemo(() => {
|
|
894
947
|
const prefixes = code.match(/(?:\/\/|<!--) @.*\n/g) || [];
|
|
895
948
|
const prefixesLength = prefixes.reduce(
|
|
896
949
|
(acc, prefix) => acc + prefix.length,
|
|
@@ -910,8 +963,8 @@ function useCodeSteps(code) {
|
|
|
910
963
|
}, [code]);
|
|
911
964
|
}
|
|
912
965
|
function getCodeDetails(children) {
|
|
913
|
-
const child =
|
|
914
|
-
if (!
|
|
966
|
+
const child = React14.Children.toArray(children)[0];
|
|
967
|
+
if (!React14.isValidElement(child)) {
|
|
915
968
|
return {
|
|
916
969
|
language: "",
|
|
917
970
|
code: ReactIs.isFragment(child) ? "" : String(child || "")
|
|
@@ -929,7 +982,7 @@ function CodeWrapper({
|
|
|
929
982
|
hasName,
|
|
930
983
|
children
|
|
931
984
|
}) {
|
|
932
|
-
return /* @__PURE__ */
|
|
985
|
+
return /* @__PURE__ */ React14.createElement(
|
|
933
986
|
"div",
|
|
934
987
|
{
|
|
935
988
|
style: {
|
|
@@ -939,7 +992,7 @@ function CodeWrapper({
|
|
|
939
992
|
borderRadius: "4px"
|
|
940
993
|
}
|
|
941
994
|
},
|
|
942
|
-
name && /* @__PURE__ */
|
|
995
|
+
name && /* @__PURE__ */ React14.createElement(
|
|
943
996
|
"span",
|
|
944
997
|
{
|
|
945
998
|
style: {
|
|
@@ -956,7 +1009,7 @@ function CodeWrapper({
|
|
|
956
1009
|
name
|
|
957
1010
|
),
|
|
958
1011
|
children,
|
|
959
|
-
hasName && /* @__PURE__ */
|
|
1012
|
+
hasName && /* @__PURE__ */ React14.createElement(
|
|
960
1013
|
"span",
|
|
961
1014
|
{
|
|
962
1015
|
style: {
|
|
@@ -971,7 +1024,7 @@ function CodeWrapper({
|
|
|
971
1024
|
fontStyle: "italic"
|
|
972
1025
|
}
|
|
973
1026
|
},
|
|
974
|
-
stepName || /* @__PURE__ */
|
|
1027
|
+
stepName || /* @__PURE__ */ React14.createElement("span", { style: { visibility: "hidden" } }, "Step")
|
|
975
1028
|
)
|
|
976
1029
|
);
|
|
977
1030
|
}
|
|
@@ -980,7 +1033,7 @@ function CodeStepper({
|
|
|
980
1033
|
name,
|
|
981
1034
|
...props
|
|
982
1035
|
}) {
|
|
983
|
-
const { language, code } =
|
|
1036
|
+
const { language, code } = React14.useMemo(() => {
|
|
984
1037
|
return getCodeDetails(props.children);
|
|
985
1038
|
}, [props.children]);
|
|
986
1039
|
const {
|
|
@@ -990,21 +1043,21 @@ function CodeStepper({
|
|
|
990
1043
|
hasSteps,
|
|
991
1044
|
hasName
|
|
992
1045
|
} = useCodeSteps(code);
|
|
993
|
-
return /* @__PURE__ */
|
|
1046
|
+
return /* @__PURE__ */ React14.createElement(CodeContainer, null, import.meta.env.DEV && Boolean(prefixes == null ? void 0 : prefixes.length) && /* @__PURE__ */ React14.createElement("div", { style: { position: "absolute", top: 0, opacity: 0.5, left: 0 } }, /* @__PURE__ */ React14.createElement(Highlighter, { language, style: gruvboxDark }, prefixes.join(""))), /* @__PURE__ */ React14.createElement(
|
|
994
1047
|
Stepper,
|
|
995
1048
|
{
|
|
996
1049
|
values: steps,
|
|
997
1050
|
alwaysVisible: !hasSteps,
|
|
998
1051
|
priority: priority ? priority + 1 : void 0
|
|
999
1052
|
},
|
|
1000
|
-
(step, _, isActive) => /* @__PURE__ */
|
|
1053
|
+
(step, _, isActive) => /* @__PURE__ */ React14.createElement(
|
|
1001
1054
|
CodeWrapper,
|
|
1002
1055
|
{
|
|
1003
1056
|
name,
|
|
1004
1057
|
stepName: step == null ? void 0 : step.name,
|
|
1005
1058
|
hasName
|
|
1006
1059
|
},
|
|
1007
|
-
/* @__PURE__ */
|
|
1060
|
+
/* @__PURE__ */ React14.createElement(
|
|
1008
1061
|
Highlighter,
|
|
1009
1062
|
{
|
|
1010
1063
|
language,
|
|
@@ -1054,7 +1107,7 @@ CodeStepper.mdxType = "CodeStepper";
|
|
|
1054
1107
|
// src/components/map.tsx
|
|
1055
1108
|
var componentsMap = {
|
|
1056
1109
|
...mdxComponentMap,
|
|
1057
|
-
inlineCode: (props) => /* @__PURE__ */
|
|
1110
|
+
inlineCode: (props) => /* @__PURE__ */ React15.createElement(
|
|
1058
1111
|
InlineCode,
|
|
1059
1112
|
{
|
|
1060
1113
|
...props,
|
|
@@ -1064,7 +1117,7 @@ var componentsMap = {
|
|
|
1064
1117
|
}
|
|
1065
1118
|
}
|
|
1066
1119
|
),
|
|
1067
|
-
table: (props) => /* @__PURE__ */
|
|
1120
|
+
table: (props) => /* @__PURE__ */ React15.createElement(
|
|
1068
1121
|
"table",
|
|
1069
1122
|
{
|
|
1070
1123
|
...props,
|
|
@@ -1075,7 +1128,7 @@ var componentsMap = {
|
|
|
1075
1128
|
}
|
|
1076
1129
|
}
|
|
1077
1130
|
),
|
|
1078
|
-
tr: (props) => /* @__PURE__ */
|
|
1131
|
+
tr: (props) => /* @__PURE__ */ React15.createElement(
|
|
1079
1132
|
"tr",
|
|
1080
1133
|
{
|
|
1081
1134
|
...props,
|
|
@@ -1087,7 +1140,7 @@ var componentsMap = {
|
|
|
1087
1140
|
}
|
|
1088
1141
|
}
|
|
1089
1142
|
),
|
|
1090
|
-
td: (props) => /* @__PURE__ */
|
|
1143
|
+
td: (props) => /* @__PURE__ */ React15.createElement(
|
|
1091
1144
|
"td",
|
|
1092
1145
|
{
|
|
1093
1146
|
...props,
|
|
@@ -1100,7 +1153,7 @@ var componentsMap = {
|
|
|
1100
1153
|
}
|
|
1101
1154
|
}
|
|
1102
1155
|
),
|
|
1103
|
-
h1: (props) => /* @__PURE__ */
|
|
1156
|
+
h1: (props) => /* @__PURE__ */ React15.createElement(
|
|
1104
1157
|
CustomHeading,
|
|
1105
1158
|
{
|
|
1106
1159
|
fontSize: "h1",
|
|
@@ -1116,15 +1169,15 @@ var componentsMap = {
|
|
|
1116
1169
|
},
|
|
1117
1170
|
props.children
|
|
1118
1171
|
),
|
|
1119
|
-
h2: (props) => /* @__PURE__ */
|
|
1120
|
-
h3: (props) => /* @__PURE__ */
|
|
1121
|
-
img: (props) => /* @__PURE__ */
|
|
1172
|
+
h2: (props) => /* @__PURE__ */ React15.createElement(HeadingTwo, null, props.children),
|
|
1173
|
+
h3: (props) => /* @__PURE__ */ React15.createElement(HeadingThree, { ...props }),
|
|
1174
|
+
img: (props) => /* @__PURE__ */ React15.createElement(Image2, { ...props }),
|
|
1122
1175
|
pre: CodeStepper,
|
|
1123
|
-
li: (props) => /* @__PURE__ */
|
|
1124
|
-
Side: (props) => /* @__PURE__ */
|
|
1176
|
+
li: (props) => /* @__PURE__ */ React15.createElement("li", { ...props, style: { margin: "24px 0" } }),
|
|
1177
|
+
Side: (props) => /* @__PURE__ */ React15.createElement("div", { ...props }),
|
|
1125
1178
|
p: (props) => {
|
|
1126
1179
|
const Text = mdxComponentMap.p;
|
|
1127
|
-
return /* @__PURE__ */
|
|
1180
|
+
return /* @__PURE__ */ React15.createElement(
|
|
1128
1181
|
Text,
|
|
1129
1182
|
{
|
|
1130
1183
|
style: { margin: "8px 0", padding: "8px 0", lineHeight: "2rem" },
|
|
@@ -1132,10 +1185,10 @@ var componentsMap = {
|
|
|
1132
1185
|
}
|
|
1133
1186
|
);
|
|
1134
1187
|
},
|
|
1135
|
-
blockquote: (props) => /* @__PURE__ */
|
|
1188
|
+
blockquote: (props) => /* @__PURE__ */ React15.createElement(CustomQuote, { ...props }),
|
|
1136
1189
|
a: ({ children, ...props }) => {
|
|
1137
1190
|
const domain = new URL(props.href || "").hostname;
|
|
1138
|
-
return /* @__PURE__ */
|
|
1191
|
+
return /* @__PURE__ */ React15.createElement("a", { ...props, style: { color: "#f49676", textDecoration: "none" } }, children, " ", /* @__PURE__ */ React15.createElement(
|
|
1139
1192
|
"small",
|
|
1140
1193
|
{
|
|
1141
1194
|
style: {
|
|
@@ -1151,14 +1204,14 @@ var componentsMap = {
|
|
|
1151
1204
|
var map_default = componentsMap;
|
|
1152
1205
|
|
|
1153
1206
|
// src/components/FilePane.tsx
|
|
1154
|
-
import
|
|
1207
|
+
import React16 from "react";
|
|
1155
1208
|
function FilePane({
|
|
1156
1209
|
name,
|
|
1157
1210
|
children,
|
|
1158
1211
|
priority,
|
|
1159
1212
|
...divProps
|
|
1160
1213
|
}) {
|
|
1161
|
-
return
|
|
1214
|
+
return React16.isValidElement(children) ? React16.cloneElement(children, {
|
|
1162
1215
|
// @ts-expect-error cloning
|
|
1163
1216
|
priority,
|
|
1164
1217
|
name
|
|
@@ -1167,14 +1220,14 @@ function FilePane({
|
|
|
1167
1220
|
FilePane.mdxType = "FilePane";
|
|
1168
1221
|
|
|
1169
1222
|
// src/components/ItemsColumn.tsx
|
|
1170
|
-
import
|
|
1223
|
+
import React17 from "react";
|
|
1171
1224
|
import { Stepper as Stepper2 } from "spectacle";
|
|
1172
|
-
import
|
|
1225
|
+
import styled12 from "styled-components";
|
|
1173
1226
|
import { useSpring, animated } from "react-spring";
|
|
1174
1227
|
function ItemsColumn(divProps) {
|
|
1175
1228
|
const { style: style2, children, ...props } = divProps;
|
|
1176
|
-
const childrenArray =
|
|
1177
|
-
return /* @__PURE__ */
|
|
1229
|
+
const childrenArray = React17.Children.toArray(children);
|
|
1230
|
+
return /* @__PURE__ */ React17.createElement(Stepper2, { values: childrenArray }, (value, step) => /* @__PURE__ */ React17.createElement(
|
|
1178
1231
|
"div",
|
|
1179
1232
|
{
|
|
1180
1233
|
style: {
|
|
@@ -1188,14 +1241,14 @@ function ItemsColumn(divProps) {
|
|
|
1188
1241
|
},
|
|
1189
1242
|
childrenArray.map((child, index) => {
|
|
1190
1243
|
const isVisible = index <= step;
|
|
1191
|
-
if (!
|
|
1244
|
+
if (!React17.isValidElement(child)) {
|
|
1192
1245
|
return child;
|
|
1193
1246
|
}
|
|
1194
|
-
return /* @__PURE__ */
|
|
1247
|
+
return /* @__PURE__ */ React17.createElement(ItemColumnWrapper, { key: index, isVisible }, child);
|
|
1195
1248
|
})
|
|
1196
1249
|
));
|
|
1197
1250
|
}
|
|
1198
|
-
var ItemColumnWrapperStyled =
|
|
1251
|
+
var ItemColumnWrapperStyled = styled12(animated.div)`
|
|
1199
1252
|
* {
|
|
1200
1253
|
text-align: center !important;
|
|
1201
1254
|
}
|
|
@@ -1206,13 +1259,13 @@ function ItemColumnWrapper({
|
|
|
1206
1259
|
...props
|
|
1207
1260
|
}) {
|
|
1208
1261
|
const styles = useSpring({ opacity: isVisible ? 1 : 0 });
|
|
1209
|
-
return /* @__PURE__ */
|
|
1262
|
+
return /* @__PURE__ */ React17.createElement(ItemColumnWrapperStyled, { style: styles, ...props }, children);
|
|
1210
1263
|
}
|
|
1211
1264
|
|
|
1212
1265
|
// src/components/DocumentationItem.tsx
|
|
1213
|
-
import
|
|
1214
|
-
import
|
|
1215
|
-
var DocWrapper =
|
|
1266
|
+
import React18 from "react";
|
|
1267
|
+
import styled13 from "styled-components";
|
|
1268
|
+
var DocWrapper = styled13.div`
|
|
1216
1269
|
position: absolute;
|
|
1217
1270
|
bottom: 0;
|
|
1218
1271
|
right: 0;
|
|
@@ -1226,20 +1279,20 @@ var DocWrapper = styled12.div`
|
|
|
1226
1279
|
display: flex;
|
|
1227
1280
|
}
|
|
1228
1281
|
`;
|
|
1229
|
-
var DocContainer =
|
|
1282
|
+
var DocContainer = styled13.div`
|
|
1230
1283
|
margin: 2rem 1rem;
|
|
1231
1284
|
background-color: #333;
|
|
1232
1285
|
border: 1px solid #333;
|
|
1233
1286
|
padding: 0.5rem 1rem;
|
|
1234
1287
|
border-radius: 1.5rem;
|
|
1235
1288
|
`;
|
|
1236
|
-
var DocLink =
|
|
1289
|
+
var DocLink = styled13.a`
|
|
1237
1290
|
text-decoration: none;
|
|
1238
1291
|
font-weight: normal;
|
|
1239
1292
|
font-family: Bitter, "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
1240
1293
|
color: #f49676;
|
|
1241
1294
|
`;
|
|
1242
|
-
var DocLinkItem =
|
|
1295
|
+
var DocLinkItem = styled13(DocLink)`
|
|
1243
1296
|
width: fit-content;
|
|
1244
1297
|
display: inline-block;
|
|
1245
1298
|
background-color: #333;
|
|
@@ -1248,7 +1301,7 @@ var DocLinkItem = styled12(DocLink)`
|
|
|
1248
1301
|
border-radius: 1.5rem;
|
|
1249
1302
|
margin: 0.25rem 0;
|
|
1250
1303
|
`;
|
|
1251
|
-
var DocContent =
|
|
1304
|
+
var DocContent = styled13.div`
|
|
1252
1305
|
display: flex;
|
|
1253
1306
|
flex-flow: column-reverse nowrap;
|
|
1254
1307
|
position: absolute;
|
|
@@ -1263,18 +1316,18 @@ function Doc({
|
|
|
1263
1316
|
link,
|
|
1264
1317
|
children
|
|
1265
1318
|
}) {
|
|
1266
|
-
return /* @__PURE__ */
|
|
1319
|
+
return /* @__PURE__ */ React18.createElement(DocWrapper, null, /* @__PURE__ */ React18.createElement(DocContainer, null, children && /* @__PURE__ */ React18.createElement(DocContent, null, children), /* @__PURE__ */ React18.createElement("div", null, /* @__PURE__ */ React18.createElement(DocLink, { target: "_blank", rel: "noopener noreferrer", href: link }, label))));
|
|
1267
1320
|
}
|
|
1268
1321
|
function DocItem({ label, link }) {
|
|
1269
|
-
return /* @__PURE__ */
|
|
1322
|
+
return /* @__PURE__ */ React18.createElement(DocLinkItem, { target: "_blank", rel: "noopener noreferrer", href: link }, label);
|
|
1270
1323
|
}
|
|
1271
1324
|
|
|
1272
1325
|
// src/components/HorizontalList.tsx
|
|
1273
|
-
import
|
|
1326
|
+
import React19 from "react";
|
|
1274
1327
|
import { animated as animated2, useSpring as useSpring2 } from "react-spring";
|
|
1275
1328
|
import { Stepper as Stepper3 } from "spectacle";
|
|
1276
|
-
import
|
|
1277
|
-
var Container =
|
|
1329
|
+
import styled14 from "styled-components";
|
|
1330
|
+
var Container = styled14.div`
|
|
1278
1331
|
display: grid;
|
|
1279
1332
|
grid-gap: 2rem;
|
|
1280
1333
|
`;
|
|
@@ -1282,8 +1335,8 @@ function HorizontalList({
|
|
|
1282
1335
|
children,
|
|
1283
1336
|
columns = 3
|
|
1284
1337
|
}) {
|
|
1285
|
-
const items =
|
|
1286
|
-
return /* @__PURE__ */
|
|
1338
|
+
const items = React19.Children.toArray(children);
|
|
1339
|
+
return /* @__PURE__ */ React19.createElement(Stepper3, { values: items }, (_, step) => /* @__PURE__ */ React19.createElement(
|
|
1287
1340
|
Container,
|
|
1288
1341
|
{
|
|
1289
1342
|
style: {
|
|
@@ -1291,10 +1344,10 @@ function HorizontalList({
|
|
|
1291
1344
|
}
|
|
1292
1345
|
},
|
|
1293
1346
|
items.map((item, k) => {
|
|
1294
|
-
if (!
|
|
1347
|
+
if (!React19.isValidElement(item)) {
|
|
1295
1348
|
return item;
|
|
1296
1349
|
}
|
|
1297
|
-
return
|
|
1350
|
+
return React19.cloneElement(item, {
|
|
1298
1351
|
// @ts-expect-error cloning
|
|
1299
1352
|
position: k + 1,
|
|
1300
1353
|
isVisible: k <= step,
|
|
@@ -1304,12 +1357,12 @@ function HorizontalList({
|
|
|
1304
1357
|
));
|
|
1305
1358
|
}
|
|
1306
1359
|
function Pill({ position }) {
|
|
1307
|
-
return /* @__PURE__ */
|
|
1360
|
+
return /* @__PURE__ */ React19.createElement(
|
|
1308
1361
|
"div",
|
|
1309
1362
|
{
|
|
1310
1363
|
style: { width: 48, transform: "translate(-25%, -25%)", opacity: 0.9 }
|
|
1311
1364
|
},
|
|
1312
|
-
/* @__PURE__ */
|
|
1365
|
+
/* @__PURE__ */ React19.createElement(
|
|
1313
1366
|
"svg",
|
|
1314
1367
|
{
|
|
1315
1368
|
width: "48",
|
|
@@ -1318,14 +1371,14 @@ function Pill({ position }) {
|
|
|
1318
1371
|
fill: "none",
|
|
1319
1372
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1320
1373
|
},
|
|
1321
|
-
/* @__PURE__ */
|
|
1374
|
+
/* @__PURE__ */ React19.createElement(
|
|
1322
1375
|
"path",
|
|
1323
1376
|
{
|
|
1324
1377
|
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",
|
|
1325
1378
|
fill: "#ffffff"
|
|
1326
1379
|
}
|
|
1327
1380
|
),
|
|
1328
|
-
/* @__PURE__ */
|
|
1381
|
+
/* @__PURE__ */ React19.createElement(
|
|
1329
1382
|
"text",
|
|
1330
1383
|
{
|
|
1331
1384
|
x: "9",
|
|
@@ -1337,7 +1390,7 @@ function Pill({ position }) {
|
|
|
1337
1390
|
},
|
|
1338
1391
|
position
|
|
1339
1392
|
),
|
|
1340
|
-
/* @__PURE__ */
|
|
1393
|
+
/* @__PURE__ */ React19.createElement(
|
|
1341
1394
|
"path",
|
|
1342
1395
|
{
|
|
1343
1396
|
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",
|
|
@@ -1347,12 +1400,12 @@ function Pill({ position }) {
|
|
|
1347
1400
|
)
|
|
1348
1401
|
);
|
|
1349
1402
|
}
|
|
1350
|
-
var Item =
|
|
1403
|
+
var Item = styled14(animated2.div)`
|
|
1351
1404
|
display: flex;
|
|
1352
1405
|
flex-direction: column;
|
|
1353
1406
|
font-family: Bitter, "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
1354
1407
|
`;
|
|
1355
|
-
var ItemHead =
|
|
1408
|
+
var ItemHead = styled14.div`
|
|
1356
1409
|
display: flex;
|
|
1357
1410
|
flex-direction: row;
|
|
1358
1411
|
font-size: 1.3rem;
|
|
@@ -1362,7 +1415,7 @@ var ItemHead = styled13.div`
|
|
|
1362
1415
|
margin: 0;
|
|
1363
1416
|
}
|
|
1364
1417
|
`;
|
|
1365
|
-
var ItemContent =
|
|
1418
|
+
var ItemContent = styled14.div`
|
|
1366
1419
|
> * {
|
|
1367
1420
|
font-size: 1rem;
|
|
1368
1421
|
padding: 4px !important;
|
|
@@ -1390,31 +1443,31 @@ function HorizontalListItem({
|
|
|
1390
1443
|
const opacityStyles = useSpring2({
|
|
1391
1444
|
opacity: getItemOpacity({ isVisible, isLast })
|
|
1392
1445
|
});
|
|
1393
|
-
return /* @__PURE__ */
|
|
1446
|
+
return /* @__PURE__ */ React19.createElement(Item, { style: opacityStyles }, /* @__PURE__ */ React19.createElement(ItemHead, null, /* @__PURE__ */ React19.createElement(Pill, { position }), /* @__PURE__ */ React19.createElement("p", null, title)), /* @__PURE__ */ React19.createElement(ItemContent, null, children));
|
|
1394
1447
|
}
|
|
1395
1448
|
|
|
1396
1449
|
// src/components/Timeline.tsx
|
|
1397
|
-
import
|
|
1450
|
+
import React20 from "react";
|
|
1398
1451
|
import { animated as animated3, useSpring as useSpring3 } from "react-spring";
|
|
1399
1452
|
import { Stepper as Stepper4 } from "spectacle";
|
|
1400
1453
|
|
|
1401
1454
|
// src/components/Timeline.styled.tsx
|
|
1402
|
-
import
|
|
1403
|
-
var TimelineItemContent =
|
|
1455
|
+
import styled15 from "styled-components";
|
|
1456
|
+
var TimelineItemContent = styled15.div`
|
|
1404
1457
|
display: flex;
|
|
1405
1458
|
padding: 0.7rem 0 1rem 12px;
|
|
1406
1459
|
`;
|
|
1407
|
-
var TimelineItemContentPhantom =
|
|
1460
|
+
var TimelineItemContentPhantom = styled15(TimelineItemContent)`
|
|
1408
1461
|
opacity: 0;
|
|
1409
1462
|
`;
|
|
1410
|
-
var TimelineItemBody =
|
|
1463
|
+
var TimelineItemBody = styled15.div`
|
|
1411
1464
|
&,
|
|
1412
1465
|
& > * {
|
|
1413
1466
|
font-size: 1.3rem !important;
|
|
1414
1467
|
color: #ffffff !important;
|
|
1415
1468
|
}
|
|
1416
1469
|
`;
|
|
1417
|
-
var TimelineItemTitle =
|
|
1470
|
+
var TimelineItemTitle = styled15.div`
|
|
1418
1471
|
font-family: Bitter, "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
1419
1472
|
font-size: 1rem;
|
|
1420
1473
|
font-weight: bold;
|
|
@@ -1422,8 +1475,8 @@ var TimelineItemTitle = styled14.div`
|
|
|
1422
1475
|
`;
|
|
1423
1476
|
|
|
1424
1477
|
// src/components/Timeline.tsx
|
|
1425
|
-
import
|
|
1426
|
-
var TimelineItemStyled =
|
|
1478
|
+
import styled16 from "styled-components";
|
|
1479
|
+
var TimelineItemStyled = styled16(animated3.div)`
|
|
1427
1480
|
flex: 1;
|
|
1428
1481
|
flex-flow: column nowrap;
|
|
1429
1482
|
display: inline-flex;
|
|
@@ -1441,7 +1494,7 @@ var TimelineItemStyled = styled15(animated3.div)`
|
|
|
1441
1494
|
}
|
|
1442
1495
|
}
|
|
1443
1496
|
`;
|
|
1444
|
-
var TimelineItemGuide =
|
|
1497
|
+
var TimelineItemGuide = styled16(animated3.div)`
|
|
1445
1498
|
width: 100%;
|
|
1446
1499
|
padding-top: 2px;
|
|
1447
1500
|
display: flex;
|
|
@@ -1457,7 +1510,7 @@ var TimelineItemGuide = styled15(animated3.div)`
|
|
|
1457
1510
|
margin-right: 4px;
|
|
1458
1511
|
}
|
|
1459
1512
|
`;
|
|
1460
|
-
var TimelineItemGuideLine =
|
|
1513
|
+
var TimelineItemGuideLine = styled16(animated3.div)`
|
|
1461
1514
|
border-top: 4px solid #ffffff;
|
|
1462
1515
|
margin-right: 4px;
|
|
1463
1516
|
`;
|
|
@@ -1468,8 +1521,8 @@ var style = {
|
|
|
1468
1521
|
alignItems: "center"
|
|
1469
1522
|
};
|
|
1470
1523
|
function Timeline(props) {
|
|
1471
|
-
const children =
|
|
1472
|
-
return /* @__PURE__ */
|
|
1524
|
+
const children = React20.Children.toArray(props.children);
|
|
1525
|
+
return /* @__PURE__ */ React20.createElement(
|
|
1473
1526
|
Stepper4,
|
|
1474
1527
|
{
|
|
1475
1528
|
...props,
|
|
@@ -1479,10 +1532,10 @@ function Timeline(props) {
|
|
|
1479
1532
|
},
|
|
1480
1533
|
(value, step) => {
|
|
1481
1534
|
return children.map((child, index) => {
|
|
1482
|
-
if (!
|
|
1535
|
+
if (!React20.isValidElement(child)) {
|
|
1483
1536
|
return child;
|
|
1484
1537
|
}
|
|
1485
|
-
return
|
|
1538
|
+
return React20.cloneElement(child, {
|
|
1486
1539
|
// @ts-expect-error cloning
|
|
1487
1540
|
isPhantom: step < index,
|
|
1488
1541
|
isLast: step === index
|
|
@@ -1510,7 +1563,7 @@ function TimelineItem(props) {
|
|
|
1510
1563
|
opacity: getItemOpacity2({ isPhantom, isLast })
|
|
1511
1564
|
});
|
|
1512
1565
|
const colorStyles = useSpring3({ opacity: isPhantom || isLast ? 1 : 0.15 });
|
|
1513
|
-
return /* @__PURE__ */
|
|
1566
|
+
return /* @__PURE__ */ React20.createElement(
|
|
1514
1567
|
TimelineItemStyled,
|
|
1515
1568
|
{
|
|
1516
1569
|
...rest,
|
|
@@ -1518,13 +1571,13 @@ function TimelineItem(props) {
|
|
|
1518
1571
|
...appearStyles
|
|
1519
1572
|
}
|
|
1520
1573
|
},
|
|
1521
|
-
/* @__PURE__ */
|
|
1522
|
-
/* @__PURE__ */
|
|
1523
|
-
/* @__PURE__ */
|
|
1574
|
+
/* @__PURE__ */ React20.createElement(TimelineItemContentPhantom, null, /* @__PURE__ */ React20.createElement(TimelineItemTitle, null, title), /* @__PURE__ */ React20.createElement(TimelineItemBody, null, children)),
|
|
1575
|
+
/* @__PURE__ */ React20.createElement(TimelineItemGuide, { style: colorStyles }, /* @__PURE__ */ React20.createElement(Hexagon, null), /* @__PURE__ */ React20.createElement(TimelineItemGuideLine, { style: guideLineProps })),
|
|
1576
|
+
/* @__PURE__ */ React20.createElement(TimelineItemContent, null, /* @__PURE__ */ React20.createElement(TimelineItemTitle, null, title), /* @__PURE__ */ React20.createElement(TimelineItemBody, null, children))
|
|
1524
1577
|
);
|
|
1525
1578
|
}
|
|
1526
1579
|
function Hexagon() {
|
|
1527
|
-
return /* @__PURE__ */
|
|
1580
|
+
return /* @__PURE__ */ React20.createElement(
|
|
1528
1581
|
"svg",
|
|
1529
1582
|
{
|
|
1530
1583
|
width: "18",
|
|
@@ -1533,14 +1586,14 @@ function Hexagon() {
|
|
|
1533
1586
|
fill: "none",
|
|
1534
1587
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1535
1588
|
},
|
|
1536
|
-
/* @__PURE__ */
|
|
1589
|
+
/* @__PURE__ */ React20.createElement(
|
|
1537
1590
|
"path",
|
|
1538
1591
|
{
|
|
1539
1592
|
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",
|
|
1540
1593
|
fill: "#F49676"
|
|
1541
1594
|
}
|
|
1542
1595
|
),
|
|
1543
|
-
/* @__PURE__ */
|
|
1596
|
+
/* @__PURE__ */ React20.createElement(
|
|
1544
1597
|
"path",
|
|
1545
1598
|
{
|
|
1546
1599
|
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",
|
|
@@ -1551,9 +1604,9 @@ function Hexagon() {
|
|
|
1551
1604
|
}
|
|
1552
1605
|
|
|
1553
1606
|
// src/components/IconBox.tsx
|
|
1554
|
-
import
|
|
1555
|
-
import
|
|
1556
|
-
var IconBoxContent =
|
|
1607
|
+
import React21 from "react";
|
|
1608
|
+
import styled17 from "styled-components";
|
|
1609
|
+
var IconBoxContent = styled17.div`
|
|
1557
1610
|
* {
|
|
1558
1611
|
margin: 0.2rem !important;
|
|
1559
1612
|
padding: 0 !important;
|
|
@@ -1563,7 +1616,7 @@ function IconBox({
|
|
|
1563
1616
|
children,
|
|
1564
1617
|
icon
|
|
1565
1618
|
}) {
|
|
1566
|
-
return /* @__PURE__ */
|
|
1619
|
+
return /* @__PURE__ */ React21.createElement(
|
|
1567
1620
|
"div",
|
|
1568
1621
|
{
|
|
1569
1622
|
style: {
|
|
@@ -1573,14 +1626,14 @@ function IconBox({
|
|
|
1573
1626
|
padding: "1rem 0"
|
|
1574
1627
|
}
|
|
1575
1628
|
},
|
|
1576
|
-
/* @__PURE__ */
|
|
1577
|
-
/* @__PURE__ */
|
|
1629
|
+
/* @__PURE__ */ React21.createElement("div", { style: { fontSize: 60 } }, icon),
|
|
1630
|
+
/* @__PURE__ */ React21.createElement(IconBoxContent, null, children)
|
|
1578
1631
|
);
|
|
1579
1632
|
}
|
|
1580
1633
|
|
|
1581
1634
|
// src/index.tsx
|
|
1582
1635
|
function PassThrough({ children }) {
|
|
1583
|
-
return /* @__PURE__ */
|
|
1636
|
+
return /* @__PURE__ */ React22.createElement(React22.Fragment, null, children);
|
|
1584
1637
|
}
|
|
1585
1638
|
function Layout({
|
|
1586
1639
|
children,
|
|
@@ -1592,44 +1645,44 @@ function Layout({
|
|
|
1592
1645
|
console.warn(`Layout ${layout} not found`);
|
|
1593
1646
|
}
|
|
1594
1647
|
if (Layout2) {
|
|
1595
|
-
return /* @__PURE__ */
|
|
1648
|
+
return /* @__PURE__ */ React22.createElement(Layout2, { ...frontmatter }, children);
|
|
1596
1649
|
}
|
|
1597
|
-
return /* @__PURE__ */
|
|
1650
|
+
return /* @__PURE__ */ React22.createElement(React22.Fragment, null, children);
|
|
1598
1651
|
}
|
|
1599
1652
|
var componentsMap2 = {
|
|
1600
1653
|
...map_default,
|
|
1601
1654
|
wrapper: Layout
|
|
1602
1655
|
};
|
|
1603
1656
|
function Deck({ deck }) {
|
|
1604
|
-
|
|
1657
|
+
React22.useEffect(() => {
|
|
1605
1658
|
document.title = deck.metadata.title || "Untitled";
|
|
1606
1659
|
}, [deck.metadata.title]);
|
|
1607
|
-
return /* @__PURE__ */
|
|
1660
|
+
return /* @__PURE__ */ React22.createElement(React22.StrictMode, null, /* @__PURE__ */ React22.createElement(MDXProvider, { components: componentsMap2 }, /* @__PURE__ */ React22.createElement(SpectacleDeck, { theme: theme_default, template }, deck.slides.map((slide, i) => {
|
|
1608
1661
|
const Component = slide.slideComponent;
|
|
1609
|
-
return /* @__PURE__ */
|
|
1662
|
+
return /* @__PURE__ */ React22.createElement(Slide, { key: i }, /* @__PURE__ */ React22.createElement(Component, null));
|
|
1610
1663
|
}))));
|
|
1611
1664
|
}
|
|
1612
1665
|
function Danger({ children }) {
|
|
1613
|
-
return /* @__PURE__ */
|
|
1666
|
+
return /* @__PURE__ */ React22.createElement("div", { style: { color: "red" } }, children);
|
|
1614
1667
|
}
|
|
1615
1668
|
function Information({ children }) {
|
|
1616
|
-
return /* @__PURE__ */
|
|
1669
|
+
return /* @__PURE__ */ React22.createElement("div", { style: { color: "orange" } }, children);
|
|
1617
1670
|
}
|
|
1618
1671
|
function Success({ children }) {
|
|
1619
|
-
return /* @__PURE__ */
|
|
1672
|
+
return /* @__PURE__ */ React22.createElement("div", { style: { color: "green" } }, children);
|
|
1620
1673
|
}
|
|
1621
1674
|
function Warning({ children }) {
|
|
1622
|
-
return /* @__PURE__ */
|
|
1675
|
+
return /* @__PURE__ */ React22.createElement("div", { style: { color: "yellow" } }, children);
|
|
1623
1676
|
}
|
|
1624
1677
|
function Side({ children }) {
|
|
1625
|
-
return /* @__PURE__ */
|
|
1678
|
+
return /* @__PURE__ */ React22.createElement("div", null, children);
|
|
1626
1679
|
}
|
|
1627
1680
|
Side.mdxType = "Side";
|
|
1628
1681
|
function Documentation({ children }) {
|
|
1629
|
-
return /* @__PURE__ */
|
|
1682
|
+
return /* @__PURE__ */ React22.createElement("div", null, children);
|
|
1630
1683
|
}
|
|
1631
1684
|
function Box2({ children }) {
|
|
1632
|
-
return /* @__PURE__ */
|
|
1685
|
+
return /* @__PURE__ */ React22.createElement("div", null, children);
|
|
1633
1686
|
}
|
|
1634
1687
|
export {
|
|
1635
1688
|
Box2 as Box,
|