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