@gpichot/spectacle-deck 1.1.4 → 1.1.6

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