@gpichot/spectacle-deck 1.1.3 → 1.1.5

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