@gpichot/spectacle-deck 1.8.0 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/SkipStepsShortcut.d.ts +5 -0
- package/index.cjs +240 -139
- package/index.d.ts +7 -0
- package/index.mjs +199 -98
- package/layouts/FullImageLayout.d.ts +2 -1
- package/layouts/TwoColumnLayout.d.ts +4 -0
- package/layouts/index.d.ts +2 -0
- package/package.json +9 -1
package/index.mjs
CHANGED
|
@@ -1022,7 +1022,7 @@ var Overlay = styled6.div`
|
|
|
1022
1022
|
display: flex;
|
|
1023
1023
|
flex-flow: column nowrap;
|
|
1024
1024
|
justify-content: flex-end;
|
|
1025
|
-
padding: 4rem 6rem;
|
|
1025
|
+
padding: ${(props) => props.$padding || "4rem 6rem"};
|
|
1026
1026
|
z-index: 1;
|
|
1027
1027
|
|
|
1028
1028
|
h1,
|
|
@@ -1038,10 +1038,11 @@ function FullImageLayout({
|
|
|
1038
1038
|
children,
|
|
1039
1039
|
image,
|
|
1040
1040
|
position = "bottom",
|
|
1041
|
-
dim = 0
|
|
1041
|
+
dim = 0,
|
|
1042
1042
|
fit = "cover",
|
|
1043
1043
|
backgroundColor,
|
|
1044
|
-
margin
|
|
1044
|
+
margin,
|
|
1045
|
+
padding
|
|
1045
1046
|
}) {
|
|
1046
1047
|
const [images, rest] = getMatchingMdxType(children, "Image");
|
|
1047
1048
|
const firstImage = images[0];
|
|
@@ -1069,12 +1070,14 @@ function FullImageLayout({
|
|
|
1069
1070
|
backgroundSize: fit,
|
|
1070
1071
|
backgroundPosition: "center",
|
|
1071
1072
|
backgroundRepeat: "no-repeat",
|
|
1073
|
+
backgroundOrigin: padding ? "content-box" : void 0,
|
|
1072
1074
|
backgroundColor,
|
|
1073
|
-
margin
|
|
1075
|
+
margin,
|
|
1076
|
+
padding
|
|
1074
1077
|
}
|
|
1075
1078
|
}
|
|
1076
1079
|
),
|
|
1077
|
-
/* @__PURE__ */ jsx10(
|
|
1080
|
+
dim > 0 && /* @__PURE__ */ jsx10(
|
|
1078
1081
|
"div",
|
|
1079
1082
|
{
|
|
1080
1083
|
style: {
|
|
@@ -1084,7 +1087,14 @@ function FullImageLayout({
|
|
|
1084
1087
|
}
|
|
1085
1088
|
}
|
|
1086
1089
|
),
|
|
1087
|
-
/* @__PURE__ */ jsx10(
|
|
1090
|
+
/* @__PURE__ */ jsx10(
|
|
1091
|
+
Overlay,
|
|
1092
|
+
{
|
|
1093
|
+
$padding: padding,
|
|
1094
|
+
style: { justifyContent: justifyMap[position] },
|
|
1095
|
+
children: firstImage ? rest : children
|
|
1096
|
+
}
|
|
1097
|
+
)
|
|
1088
1098
|
]
|
|
1089
1099
|
}
|
|
1090
1100
|
);
|
|
@@ -1477,6 +1487,58 @@ function SideLayout({
|
|
|
1477
1487
|
] });
|
|
1478
1488
|
}
|
|
1479
1489
|
|
|
1490
|
+
// src/layouts/TwoColumnLayout.tsx
|
|
1491
|
+
import { jsx as jsx18, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1492
|
+
function TwoColumnLayout({ children }) {
|
|
1493
|
+
const [heading, rest] = getHeading(children);
|
|
1494
|
+
const [columnContent, leftContent] = getMatchingMdxType(rest, "Column");
|
|
1495
|
+
return /* @__PURE__ */ jsxs14(
|
|
1496
|
+
"div",
|
|
1497
|
+
{
|
|
1498
|
+
style: {
|
|
1499
|
+
position: "absolute",
|
|
1500
|
+
top: 0,
|
|
1501
|
+
right: 0,
|
|
1502
|
+
bottom: 0,
|
|
1503
|
+
left: 0,
|
|
1504
|
+
display: "flex",
|
|
1505
|
+
flexDirection: "column",
|
|
1506
|
+
marginBottom: "5rem"
|
|
1507
|
+
},
|
|
1508
|
+
children: [
|
|
1509
|
+
heading && /* @__PURE__ */ jsx18(
|
|
1510
|
+
"div",
|
|
1511
|
+
{
|
|
1512
|
+
style: {
|
|
1513
|
+
backgroundColor: "#ffffff11",
|
|
1514
|
+
padding: "2rem 5rem",
|
|
1515
|
+
marginBottom: "1rem"
|
|
1516
|
+
},
|
|
1517
|
+
children: heading
|
|
1518
|
+
}
|
|
1519
|
+
),
|
|
1520
|
+
/* @__PURE__ */ jsxs14(
|
|
1521
|
+
"div",
|
|
1522
|
+
{
|
|
1523
|
+
style: {
|
|
1524
|
+
display: "flex",
|
|
1525
|
+
flexDirection: "row",
|
|
1526
|
+
flex: 1,
|
|
1527
|
+
gap: "2rem",
|
|
1528
|
+
padding: `0 ${Margins.horizontal}`,
|
|
1529
|
+
alignItems: "center"
|
|
1530
|
+
},
|
|
1531
|
+
children: [
|
|
1532
|
+
/* @__PURE__ */ jsx18("div", { style: { flex: 1 }, children: leftContent }),
|
|
1533
|
+
/* @__PURE__ */ jsx18("div", { style: { flex: 1 }, children: columnContent })
|
|
1534
|
+
]
|
|
1535
|
+
}
|
|
1536
|
+
)
|
|
1537
|
+
]
|
|
1538
|
+
}
|
|
1539
|
+
);
|
|
1540
|
+
}
|
|
1541
|
+
|
|
1480
1542
|
// src/layouts/index.tsx
|
|
1481
1543
|
var layouts_default = {
|
|
1482
1544
|
mainSection: MainSectionLayout,
|
|
@@ -1488,11 +1550,42 @@ var layouts_default = {
|
|
|
1488
1550
|
side: SideLayout,
|
|
1489
1551
|
section: SectionLayout,
|
|
1490
1552
|
fullImage: FullImageLayout,
|
|
1491
|
-
bigNumber: BigNumberLayout
|
|
1553
|
+
bigNumber: BigNumberLayout,
|
|
1554
|
+
twoColumn: TwoColumnLayout
|
|
1492
1555
|
};
|
|
1493
1556
|
|
|
1557
|
+
// src/SkipStepsShortcut.tsx
|
|
1558
|
+
import { useContext as useContext2 } from "react";
|
|
1559
|
+
import { DeckContext as DeckContext2, useMousetrap } from "spectacle";
|
|
1560
|
+
function SkipStepsShortcut() {
|
|
1561
|
+
const {
|
|
1562
|
+
skipTo,
|
|
1563
|
+
activeView: { slideIndex },
|
|
1564
|
+
slideCount
|
|
1565
|
+
} = useContext2(DeckContext2);
|
|
1566
|
+
useMousetrap(
|
|
1567
|
+
{
|
|
1568
|
+
"shift+right": () => {
|
|
1569
|
+
if (slideIndex < slideCount - 1) {
|
|
1570
|
+
skipTo({ slideIndex: slideIndex + 1, stepIndex: 0 });
|
|
1571
|
+
}
|
|
1572
|
+
},
|
|
1573
|
+
"shift+left": () => {
|
|
1574
|
+
if (slideIndex > 0) {
|
|
1575
|
+
skipTo({
|
|
1576
|
+
slideIndex: slideIndex - 1,
|
|
1577
|
+
stepIndex: null
|
|
1578
|
+
});
|
|
1579
|
+
}
|
|
1580
|
+
}
|
|
1581
|
+
},
|
|
1582
|
+
[slideIndex, slideCount, skipTo]
|
|
1583
|
+
);
|
|
1584
|
+
return null;
|
|
1585
|
+
}
|
|
1586
|
+
|
|
1494
1587
|
// src/SlideWrapper.tsx
|
|
1495
|
-
import { Fragment, jsx as
|
|
1588
|
+
import { Fragment, jsx as jsx19 } from "react/jsx-runtime";
|
|
1496
1589
|
function SlideWrapper({
|
|
1497
1590
|
children,
|
|
1498
1591
|
frontmatter
|
|
@@ -1506,22 +1599,22 @@ function SlideWrapper({
|
|
|
1506
1599
|
);
|
|
1507
1600
|
}
|
|
1508
1601
|
if (Layout) {
|
|
1509
|
-
return /* @__PURE__ */
|
|
1602
|
+
return /* @__PURE__ */ jsx19(Layout, { ...frontmatter, children });
|
|
1510
1603
|
}
|
|
1511
|
-
return /* @__PURE__ */
|
|
1604
|
+
return /* @__PURE__ */ jsx19(Fragment, { children });
|
|
1512
1605
|
}
|
|
1513
1606
|
|
|
1514
1607
|
// src/template.tsx
|
|
1515
1608
|
import { Box, FullScreen } from "spectacle";
|
|
1516
|
-
import { jsx as
|
|
1609
|
+
import { jsx as jsx20, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
1517
1610
|
var template = ({
|
|
1518
1611
|
slideNumber,
|
|
1519
1612
|
numberOfSlides
|
|
1520
1613
|
}) => {
|
|
1521
1614
|
const percentage = slideNumber / numberOfSlides * 100;
|
|
1522
|
-
return /* @__PURE__ */
|
|
1523
|
-
/* @__PURE__ */
|
|
1524
|
-
/* @__PURE__ */
|
|
1615
|
+
return /* @__PURE__ */ jsxs15("div", { style: { position: "absolute", bottom: 0, left: 0, right: 0 }, children: [
|
|
1616
|
+
/* @__PURE__ */ jsx20(Box, { padding: "0 0 0.5em 0.7em", children: /* @__PURE__ */ jsx20(FullScreen, {}) }),
|
|
1617
|
+
/* @__PURE__ */ jsx20("div", { style: { width: "100%", height: "4px", background: "#ffffff11" }, children: /* @__PURE__ */ jsx20(
|
|
1525
1618
|
"div",
|
|
1526
1619
|
{
|
|
1527
1620
|
style: {
|
|
@@ -1619,7 +1712,7 @@ function useInView() {
|
|
|
1619
1712
|
}
|
|
1620
1713
|
|
|
1621
1714
|
// src/components/animations/AnimatedCounter.tsx
|
|
1622
|
-
import { jsx as
|
|
1715
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
1623
1716
|
function AnimatedCounter({
|
|
1624
1717
|
to,
|
|
1625
1718
|
from = 0,
|
|
@@ -1635,12 +1728,12 @@ function AnimatedCounter({
|
|
|
1635
1728
|
delay: isInView ? delay : 0,
|
|
1636
1729
|
config: { duration }
|
|
1637
1730
|
});
|
|
1638
|
-
return /* @__PURE__ */
|
|
1731
|
+
return /* @__PURE__ */ jsx21(animated.span, { ref, style: { fontFamily: "var(--font-family)" }, children: value.to((v) => `${prefix}${v.toFixed(decimals)}${suffix}`) });
|
|
1639
1732
|
}
|
|
1640
1733
|
|
|
1641
1734
|
// src/components/animations/FadeIn.tsx
|
|
1642
1735
|
import { animated as animated2, useSpring as useSpring2 } from "@react-spring/web";
|
|
1643
|
-
import { jsx as
|
|
1736
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
1644
1737
|
function FadeIn({
|
|
1645
1738
|
children,
|
|
1646
1739
|
direction = "up",
|
|
@@ -1662,12 +1755,12 @@ function FadeIn({
|
|
|
1662
1755
|
delay: isInView ? delay : 0,
|
|
1663
1756
|
config: { duration }
|
|
1664
1757
|
});
|
|
1665
|
-
return /* @__PURE__ */
|
|
1758
|
+
return /* @__PURE__ */ jsx22(animated2.div, { ref, style: styles, children });
|
|
1666
1759
|
}
|
|
1667
1760
|
|
|
1668
1761
|
// src/components/animations/ProgressRing.tsx
|
|
1669
1762
|
import { animated as animated3, useSpring as useSpring3 } from "@react-spring/web";
|
|
1670
|
-
import { jsx as
|
|
1763
|
+
import { jsx as jsx23, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
1671
1764
|
function ProgressRing({
|
|
1672
1765
|
value,
|
|
1673
1766
|
size = 120,
|
|
@@ -1687,7 +1780,7 @@ function ProgressRing({
|
|
|
1687
1780
|
delay: isInView ? delay : 0,
|
|
1688
1781
|
config: { duration }
|
|
1689
1782
|
});
|
|
1690
|
-
return /* @__PURE__ */
|
|
1783
|
+
return /* @__PURE__ */ jsxs16(
|
|
1691
1784
|
"div",
|
|
1692
1785
|
{
|
|
1693
1786
|
ref,
|
|
@@ -1700,14 +1793,14 @@ function ProgressRing({
|
|
|
1700
1793
|
justifyContent: "center"
|
|
1701
1794
|
},
|
|
1702
1795
|
children: [
|
|
1703
|
-
/* @__PURE__ */
|
|
1796
|
+
/* @__PURE__ */ jsxs16(
|
|
1704
1797
|
"svg",
|
|
1705
1798
|
{
|
|
1706
1799
|
width: size,
|
|
1707
1800
|
height: size,
|
|
1708
1801
|
style: { position: "absolute", transform: "rotate(-90deg)" },
|
|
1709
1802
|
children: [
|
|
1710
|
-
/* @__PURE__ */
|
|
1803
|
+
/* @__PURE__ */ jsx23(
|
|
1711
1804
|
"circle",
|
|
1712
1805
|
{
|
|
1713
1806
|
cx: size / 2,
|
|
@@ -1718,7 +1811,7 @@ function ProgressRing({
|
|
|
1718
1811
|
strokeWidth
|
|
1719
1812
|
}
|
|
1720
1813
|
),
|
|
1721
|
-
/* @__PURE__ */
|
|
1814
|
+
/* @__PURE__ */ jsx23(
|
|
1722
1815
|
animated3.circle,
|
|
1723
1816
|
{
|
|
1724
1817
|
cx: size / 2,
|
|
@@ -1735,7 +1828,7 @@ function ProgressRing({
|
|
|
1735
1828
|
]
|
|
1736
1829
|
}
|
|
1737
1830
|
),
|
|
1738
|
-
children && /* @__PURE__ */
|
|
1831
|
+
children && /* @__PURE__ */ jsx23(
|
|
1739
1832
|
"div",
|
|
1740
1833
|
{
|
|
1741
1834
|
style: {
|
|
@@ -1753,7 +1846,7 @@ function ProgressRing({
|
|
|
1753
1846
|
|
|
1754
1847
|
// src/components/animations/ScaleIn.tsx
|
|
1755
1848
|
import { animated as animated4, useSpring as useSpring4 } from "@react-spring/web";
|
|
1756
|
-
import { jsx as
|
|
1849
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
1757
1850
|
function ScaleIn({
|
|
1758
1851
|
children,
|
|
1759
1852
|
from = 0,
|
|
@@ -1767,12 +1860,12 @@ function ScaleIn({
|
|
|
1767
1860
|
delay: isInView ? delay : 0,
|
|
1768
1861
|
config: { duration }
|
|
1769
1862
|
});
|
|
1770
|
-
return /* @__PURE__ */
|
|
1863
|
+
return /* @__PURE__ */ jsx24(animated4.div, { ref, style: styles, children });
|
|
1771
1864
|
}
|
|
1772
1865
|
|
|
1773
1866
|
// src/components/animations/Spotlight.tsx
|
|
1774
1867
|
import styled13 from "styled-components";
|
|
1775
|
-
import { Fragment as Fragment2, jsx as
|
|
1868
|
+
import { Fragment as Fragment2, jsx as jsx25, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
1776
1869
|
var Overlay2 = styled13.div`
|
|
1777
1870
|
position: fixed;
|
|
1778
1871
|
inset: 0;
|
|
@@ -1790,16 +1883,16 @@ function Spotlight({
|
|
|
1790
1883
|
active = true,
|
|
1791
1884
|
dimOpacity = 0.7
|
|
1792
1885
|
}) {
|
|
1793
|
-
return /* @__PURE__ */
|
|
1794
|
-
/* @__PURE__ */
|
|
1795
|
-
/* @__PURE__ */
|
|
1886
|
+
return /* @__PURE__ */ jsxs17(Fragment2, { children: [
|
|
1887
|
+
/* @__PURE__ */ jsx25(Overlay2, { $active: active, $dimOpacity: dimOpacity }),
|
|
1888
|
+
/* @__PURE__ */ jsx25(Content, { $active: active, children })
|
|
1796
1889
|
] });
|
|
1797
1890
|
}
|
|
1798
1891
|
|
|
1799
1892
|
// src/components/animations/StaggerChildren.tsx
|
|
1800
1893
|
import { animated as animated5, useSprings } from "@react-spring/web";
|
|
1801
1894
|
import React10 from "react";
|
|
1802
|
-
import { jsx as
|
|
1895
|
+
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
1803
1896
|
function StaggerChildren({
|
|
1804
1897
|
children,
|
|
1805
1898
|
stagger = 100,
|
|
@@ -1826,12 +1919,12 @@ function StaggerChildren({
|
|
|
1826
1919
|
config: { duration }
|
|
1827
1920
|
}))
|
|
1828
1921
|
);
|
|
1829
|
-
return /* @__PURE__ */
|
|
1922
|
+
return /* @__PURE__ */ jsx26("div", { ref, children: springs.map((style2, i) => /* @__PURE__ */ jsx26(animated5.div, { style: style2, children: items[i] }, i)) });
|
|
1830
1923
|
}
|
|
1831
1924
|
|
|
1832
1925
|
// src/components/animations/TypeWriter.tsx
|
|
1833
1926
|
import React11 from "react";
|
|
1834
|
-
import { jsx as
|
|
1927
|
+
import { jsx as jsx27, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
1835
1928
|
function extractText(node) {
|
|
1836
1929
|
if (typeof node === "string") return node;
|
|
1837
1930
|
if (typeof node === "number") return String(node);
|
|
@@ -1872,9 +1965,9 @@ function TypeWriter({
|
|
|
1872
1965
|
}, delay);
|
|
1873
1966
|
return () => clearTimeout(timeout);
|
|
1874
1967
|
}, [text, speed, delay, isInView]);
|
|
1875
|
-
return /* @__PURE__ */
|
|
1968
|
+
return /* @__PURE__ */ jsxs18("span", { ref, style: { fontFamily: "var(--font-family)" }, children: [
|
|
1876
1969
|
displayed,
|
|
1877
|
-
cursor && /* @__PURE__ */
|
|
1970
|
+
cursor && /* @__PURE__ */ jsx27(
|
|
1878
1971
|
"span",
|
|
1879
1972
|
{
|
|
1880
1973
|
style: {
|
|
@@ -1882,7 +1975,7 @@ function TypeWriter({
|
|
|
1882
1975
|
marginLeft: 1,
|
|
1883
1976
|
animation: done ? "pestacle-blink 1s step-end infinite" : "none"
|
|
1884
1977
|
},
|
|
1885
|
-
children: /* @__PURE__ */
|
|
1978
|
+
children: /* @__PURE__ */ jsx27("style", { children: `@keyframes pestacle-blink { 50% { opacity: 0; } }` })
|
|
1886
1979
|
}
|
|
1887
1980
|
)
|
|
1888
1981
|
] });
|
|
@@ -1890,7 +1983,7 @@ function TypeWriter({
|
|
|
1890
1983
|
|
|
1891
1984
|
// src/components/DocumentationItem.tsx
|
|
1892
1985
|
import styled14 from "styled-components";
|
|
1893
|
-
import { jsx as
|
|
1986
|
+
import { jsx as jsx28, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
1894
1987
|
var DocWrapper = styled14.div`
|
|
1895
1988
|
position: absolute;
|
|
1896
1989
|
bottom: 0;
|
|
@@ -1942,18 +2035,18 @@ function Doc({
|
|
|
1942
2035
|
link,
|
|
1943
2036
|
children
|
|
1944
2037
|
}) {
|
|
1945
|
-
return /* @__PURE__ */
|
|
1946
|
-
children && /* @__PURE__ */
|
|
1947
|
-
/* @__PURE__ */
|
|
2038
|
+
return /* @__PURE__ */ jsx28(DocWrapper, { children: /* @__PURE__ */ jsxs19(DocContainer, { children: [
|
|
2039
|
+
children && /* @__PURE__ */ jsx28(DocContent, { children }),
|
|
2040
|
+
/* @__PURE__ */ jsx28("div", { children: /* @__PURE__ */ jsx28(DocLink, { target: "_blank", rel: "noopener noreferrer", href: link, children: label }) })
|
|
1948
2041
|
] }) });
|
|
1949
2042
|
}
|
|
1950
2043
|
function DocItem({ label, link }) {
|
|
1951
|
-
return /* @__PURE__ */
|
|
2044
|
+
return /* @__PURE__ */ jsx28(DocLinkItem, { target: "_blank", rel: "noopener noreferrer", href: link, children: label });
|
|
1952
2045
|
}
|
|
1953
2046
|
|
|
1954
2047
|
// src/components/FilePane.tsx
|
|
1955
2048
|
import React12 from "react";
|
|
1956
|
-
import { jsx as
|
|
2049
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
1957
2050
|
function FilePane({
|
|
1958
2051
|
name,
|
|
1959
2052
|
children,
|
|
@@ -1967,7 +2060,7 @@ function FilePane({
|
|
|
1967
2060
|
name
|
|
1968
2061
|
}) : children;
|
|
1969
2062
|
if (minWidth) {
|
|
1970
|
-
return /* @__PURE__ */
|
|
2063
|
+
return /* @__PURE__ */ jsx29("div", { ...divProps, style: { minWidth, ...divProps.style }, children: content });
|
|
1971
2064
|
}
|
|
1972
2065
|
return content;
|
|
1973
2066
|
}
|
|
@@ -1978,7 +2071,7 @@ import { animated as animated6, useSpring as useSpring5 } from "@react-spring/we
|
|
|
1978
2071
|
import React13 from "react";
|
|
1979
2072
|
import { Stepper as Stepper2 } from "spectacle";
|
|
1980
2073
|
import styled15 from "styled-components";
|
|
1981
|
-
import { jsx as
|
|
2074
|
+
import { jsx as jsx30, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
1982
2075
|
var Container = styled15.div`
|
|
1983
2076
|
display: grid;
|
|
1984
2077
|
grid-gap: 2rem;
|
|
@@ -1988,7 +2081,7 @@ function HorizontalList({
|
|
|
1988
2081
|
columns = 3
|
|
1989
2082
|
}) {
|
|
1990
2083
|
const items = React13.Children.toArray(children);
|
|
1991
|
-
return /* @__PURE__ */
|
|
2084
|
+
return /* @__PURE__ */ jsx30(Stepper2, { values: items, children: (_, step) => /* @__PURE__ */ jsx30(
|
|
1992
2085
|
Container,
|
|
1993
2086
|
{
|
|
1994
2087
|
style: {
|
|
@@ -2009,11 +2102,11 @@ function HorizontalList({
|
|
|
2009
2102
|
) });
|
|
2010
2103
|
}
|
|
2011
2104
|
function Pill({ position }) {
|
|
2012
|
-
return /* @__PURE__ */
|
|
2105
|
+
return /* @__PURE__ */ jsx30(
|
|
2013
2106
|
"div",
|
|
2014
2107
|
{
|
|
2015
2108
|
style: { width: 48, transform: "translate(-25%, -25%)", opacity: 0.9 },
|
|
2016
|
-
children: /* @__PURE__ */
|
|
2109
|
+
children: /* @__PURE__ */ jsxs20(
|
|
2017
2110
|
"svg",
|
|
2018
2111
|
{
|
|
2019
2112
|
width: "48",
|
|
@@ -2022,14 +2115,14 @@ function Pill({ position }) {
|
|
|
2022
2115
|
fill: "none",
|
|
2023
2116
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2024
2117
|
children: [
|
|
2025
|
-
/* @__PURE__ */
|
|
2118
|
+
/* @__PURE__ */ jsx30(
|
|
2026
2119
|
"path",
|
|
2027
2120
|
{
|
|
2028
2121
|
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",
|
|
2029
2122
|
fill: "#ffffff"
|
|
2030
2123
|
}
|
|
2031
2124
|
),
|
|
2032
|
-
/* @__PURE__ */
|
|
2125
|
+
/* @__PURE__ */ jsx30(
|
|
2033
2126
|
"text",
|
|
2034
2127
|
{
|
|
2035
2128
|
x: "9",
|
|
@@ -2041,7 +2134,7 @@ function Pill({ position }) {
|
|
|
2041
2134
|
children: position
|
|
2042
2135
|
}
|
|
2043
2136
|
),
|
|
2044
|
-
/* @__PURE__ */
|
|
2137
|
+
/* @__PURE__ */ jsx30(
|
|
2045
2138
|
"path",
|
|
2046
2139
|
{
|
|
2047
2140
|
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",
|
|
@@ -2095,18 +2188,18 @@ function HorizontalListItem({
|
|
|
2095
2188
|
const opacityStyles = useSpring5({
|
|
2096
2189
|
opacity: getItemOpacity({ isVisible, isLast })
|
|
2097
2190
|
});
|
|
2098
|
-
return /* @__PURE__ */
|
|
2099
|
-
/* @__PURE__ */
|
|
2100
|
-
/* @__PURE__ */
|
|
2101
|
-
/* @__PURE__ */
|
|
2191
|
+
return /* @__PURE__ */ jsxs20(Item, { style: opacityStyles, children: [
|
|
2192
|
+
/* @__PURE__ */ jsxs20(ItemHead, { children: [
|
|
2193
|
+
/* @__PURE__ */ jsx30(Pill, { position }),
|
|
2194
|
+
/* @__PURE__ */ jsx30("p", { children: title })
|
|
2102
2195
|
] }),
|
|
2103
|
-
/* @__PURE__ */
|
|
2196
|
+
/* @__PURE__ */ jsx30(ItemContent, { children })
|
|
2104
2197
|
] });
|
|
2105
2198
|
}
|
|
2106
2199
|
|
|
2107
2200
|
// src/components/IconBox.tsx
|
|
2108
2201
|
import styled16 from "styled-components";
|
|
2109
|
-
import { jsx as
|
|
2202
|
+
import { jsx as jsx31, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
2110
2203
|
var IconBoxContent = styled16.div`
|
|
2111
2204
|
* {
|
|
2112
2205
|
margin: 0.2rem !important;
|
|
@@ -2117,7 +2210,7 @@ function IconBox({
|
|
|
2117
2210
|
children,
|
|
2118
2211
|
icon
|
|
2119
2212
|
}) {
|
|
2120
|
-
return /* @__PURE__ */
|
|
2213
|
+
return /* @__PURE__ */ jsxs21(
|
|
2121
2214
|
"div",
|
|
2122
2215
|
{
|
|
2123
2216
|
style: {
|
|
@@ -2127,8 +2220,8 @@ function IconBox({
|
|
|
2127
2220
|
padding: "1rem 0"
|
|
2128
2221
|
},
|
|
2129
2222
|
children: [
|
|
2130
|
-
/* @__PURE__ */
|
|
2131
|
-
/* @__PURE__ */
|
|
2223
|
+
/* @__PURE__ */ jsx31("div", { style: { fontSize: 60 }, children: icon }),
|
|
2224
|
+
/* @__PURE__ */ jsx31(IconBoxContent, { children })
|
|
2132
2225
|
]
|
|
2133
2226
|
}
|
|
2134
2227
|
);
|
|
@@ -2139,11 +2232,11 @@ import { animated as animated7, useSpring as useSpring6 } from "@react-spring/we
|
|
|
2139
2232
|
import React14 from "react";
|
|
2140
2233
|
import { Stepper as Stepper3 } from "spectacle";
|
|
2141
2234
|
import styled17 from "styled-components";
|
|
2142
|
-
import { jsx as
|
|
2235
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
2143
2236
|
function ItemsColumn(divProps) {
|
|
2144
2237
|
const { style: style2, children, ...props } = divProps;
|
|
2145
2238
|
const childrenArray = React14.Children.toArray(children);
|
|
2146
|
-
return /* @__PURE__ */
|
|
2239
|
+
return /* @__PURE__ */ jsx32(Stepper3, { values: childrenArray, children: (_value, step) => /* @__PURE__ */ jsx32(
|
|
2147
2240
|
"div",
|
|
2148
2241
|
{
|
|
2149
2242
|
style: {
|
|
@@ -2161,7 +2254,7 @@ function ItemsColumn(divProps) {
|
|
|
2161
2254
|
if (!React14.isValidElement(child)) {
|
|
2162
2255
|
return child;
|
|
2163
2256
|
}
|
|
2164
|
-
return /* @__PURE__ */
|
|
2257
|
+
return /* @__PURE__ */ jsx32(ItemColumnWrapper, { isVisible, children: child }, index);
|
|
2165
2258
|
})
|
|
2166
2259
|
}
|
|
2167
2260
|
) });
|
|
@@ -2179,7 +2272,7 @@ function ItemColumnWrapper({
|
|
|
2179
2272
|
...props
|
|
2180
2273
|
}) {
|
|
2181
2274
|
const styles = useSpring6({ opacity: isVisible ? 1 : 0 });
|
|
2182
|
-
return /* @__PURE__ */
|
|
2275
|
+
return /* @__PURE__ */ jsx32(ItemColumnWrapperStyled, { style: styles, ...props, children });
|
|
2183
2276
|
}
|
|
2184
2277
|
|
|
2185
2278
|
// src/components/Timeline.tsx
|
|
@@ -2212,7 +2305,7 @@ var TimelineItemTitle = styled18.div`
|
|
|
2212
2305
|
`;
|
|
2213
2306
|
|
|
2214
2307
|
// src/components/Timeline.tsx
|
|
2215
|
-
import { jsx as
|
|
2308
|
+
import { jsx as jsx33, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
2216
2309
|
var TimelineItemStyled = styled19(animated8.div)`
|
|
2217
2310
|
flex: 1;
|
|
2218
2311
|
flex-flow: column nowrap;
|
|
@@ -2261,7 +2354,7 @@ function Timeline(props) {
|
|
|
2261
2354
|
const { activeIndex, ...rest } = props;
|
|
2262
2355
|
const children = React15.Children.toArray(rest.children);
|
|
2263
2356
|
if (activeIndex != null) {
|
|
2264
|
-
return /* @__PURE__ */
|
|
2357
|
+
return /* @__PURE__ */ jsx33("div", { ...rest, style: { ...style, ...rest.style }, children: children.map((child, index) => {
|
|
2265
2358
|
if (!React15.isValidElement(child)) {
|
|
2266
2359
|
return child;
|
|
2267
2360
|
}
|
|
@@ -2272,7 +2365,7 @@ function Timeline(props) {
|
|
|
2272
2365
|
});
|
|
2273
2366
|
}) });
|
|
2274
2367
|
}
|
|
2275
|
-
return /* @__PURE__ */
|
|
2368
|
+
return /* @__PURE__ */ jsx33(
|
|
2276
2369
|
Stepper4,
|
|
2277
2370
|
{
|
|
2278
2371
|
...rest,
|
|
@@ -2311,7 +2404,7 @@ function TimelineItem(props) {
|
|
|
2311
2404
|
opacity: getItemOpacity2({ isPhantom, isLast })
|
|
2312
2405
|
});
|
|
2313
2406
|
const colorStyles = useSpring7({ opacity: isPhantom || isLast ? 1 : 0.15 });
|
|
2314
|
-
return /* @__PURE__ */
|
|
2407
|
+
return /* @__PURE__ */ jsxs22(
|
|
2315
2408
|
TimelineItemStyled,
|
|
2316
2409
|
{
|
|
2317
2410
|
...rest,
|
|
@@ -2319,24 +2412,24 @@ function TimelineItem(props) {
|
|
|
2319
2412
|
...appearStyles
|
|
2320
2413
|
},
|
|
2321
2414
|
children: [
|
|
2322
|
-
/* @__PURE__ */
|
|
2323
|
-
/* @__PURE__ */
|
|
2324
|
-
/* @__PURE__ */
|
|
2415
|
+
/* @__PURE__ */ jsxs22(TimelineItemContentPhantom, { children: [
|
|
2416
|
+
/* @__PURE__ */ jsx33(TimelineItemTitle, { children: title }),
|
|
2417
|
+
/* @__PURE__ */ jsx33(TimelineItemBody, { children })
|
|
2325
2418
|
] }),
|
|
2326
|
-
/* @__PURE__ */
|
|
2327
|
-
/* @__PURE__ */
|
|
2328
|
-
/* @__PURE__ */
|
|
2419
|
+
/* @__PURE__ */ jsxs22(TimelineItemGuide, { style: colorStyles, children: [
|
|
2420
|
+
/* @__PURE__ */ jsx33(Hexagon, {}),
|
|
2421
|
+
/* @__PURE__ */ jsx33(TimelineItemGuideLine, { style: guideLineProps })
|
|
2329
2422
|
] }),
|
|
2330
|
-
/* @__PURE__ */
|
|
2331
|
-
/* @__PURE__ */
|
|
2332
|
-
/* @__PURE__ */
|
|
2423
|
+
/* @__PURE__ */ jsxs22(TimelineItemContent, { children: [
|
|
2424
|
+
/* @__PURE__ */ jsx33(TimelineItemTitle, { children: title }),
|
|
2425
|
+
/* @__PURE__ */ jsx33(TimelineItemBody, { children })
|
|
2333
2426
|
] })
|
|
2334
2427
|
]
|
|
2335
2428
|
}
|
|
2336
2429
|
);
|
|
2337
2430
|
}
|
|
2338
2431
|
function Hexagon() {
|
|
2339
|
-
return /* @__PURE__ */
|
|
2432
|
+
return /* @__PURE__ */ jsxs22(
|
|
2340
2433
|
"svg",
|
|
2341
2434
|
{
|
|
2342
2435
|
width: "18",
|
|
@@ -2345,14 +2438,14 @@ function Hexagon() {
|
|
|
2345
2438
|
fill: "none",
|
|
2346
2439
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2347
2440
|
children: [
|
|
2348
|
-
/* @__PURE__ */
|
|
2441
|
+
/* @__PURE__ */ jsx33(
|
|
2349
2442
|
"path",
|
|
2350
2443
|
{
|
|
2351
2444
|
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",
|
|
2352
2445
|
fill: "#F49676"
|
|
2353
2446
|
}
|
|
2354
2447
|
),
|
|
2355
|
-
/* @__PURE__ */
|
|
2448
|
+
/* @__PURE__ */ jsx33(
|
|
2356
2449
|
"path",
|
|
2357
2450
|
{
|
|
2358
2451
|
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",
|
|
@@ -2365,9 +2458,9 @@ function Hexagon() {
|
|
|
2365
2458
|
}
|
|
2366
2459
|
|
|
2367
2460
|
// src/index.tsx
|
|
2368
|
-
import { Fragment as Fragment3, jsx as
|
|
2461
|
+
import { Fragment as Fragment3, jsx as jsx34, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
2369
2462
|
function PassThrough({ children }) {
|
|
2370
|
-
return /* @__PURE__ */
|
|
2463
|
+
return /* @__PURE__ */ jsx34(Fragment3, { children });
|
|
2371
2464
|
}
|
|
2372
2465
|
var layouts = layouts_default;
|
|
2373
2466
|
var componentsMap2 = {
|
|
@@ -2403,50 +2496,58 @@ function Deck({
|
|
|
2403
2496
|
}
|
|
2404
2497
|
`;
|
|
2405
2498
|
}, [theme, mergedTheme]);
|
|
2406
|
-
return /* @__PURE__ */
|
|
2407
|
-
/* @__PURE__ */
|
|
2408
|
-
/* @__PURE__ */
|
|
2499
|
+
return /* @__PURE__ */ jsx34(React16.StrictMode, { children: /* @__PURE__ */ jsx34(PestacleProvider, { layouts: layouts2, children: /* @__PURE__ */ jsxs23(MDXProvider, { components: componentsMap2, children: [
|
|
2500
|
+
/* @__PURE__ */ jsx34(GlobalStyle, {}),
|
|
2501
|
+
/* @__PURE__ */ jsxs23(
|
|
2409
2502
|
SpectacleDeck,
|
|
2410
2503
|
{
|
|
2411
2504
|
theme: mergedTheme,
|
|
2412
2505
|
template,
|
|
2413
2506
|
transition: resolveTransition(transition),
|
|
2414
|
-
children:
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2507
|
+
children: [
|
|
2508
|
+
/* @__PURE__ */ jsx34(SkipStepsShortcut, {}),
|
|
2509
|
+
deck.slides.map((slide, i) => {
|
|
2510
|
+
var _a;
|
|
2511
|
+
const Component = slide.slideComponent;
|
|
2512
|
+
const slideTransitionName = (_a = slide.metadata) == null ? void 0 : _a.transition;
|
|
2513
|
+
const slideTransition2 = resolveTransition(slideTransitionName);
|
|
2514
|
+
return /* @__PURE__ */ jsx34(Slide, { transition: slideTransition2, children: /* @__PURE__ */ jsx34(Component, {}) }, i);
|
|
2515
|
+
})
|
|
2516
|
+
]
|
|
2421
2517
|
}
|
|
2422
2518
|
)
|
|
2423
2519
|
] }) }) });
|
|
2424
2520
|
}
|
|
2425
2521
|
function Danger({ children }) {
|
|
2426
|
-
return /* @__PURE__ */
|
|
2522
|
+
return /* @__PURE__ */ jsx34("div", { style: { color: "red" }, children });
|
|
2427
2523
|
}
|
|
2428
2524
|
function Information({ children }) {
|
|
2429
|
-
return /* @__PURE__ */
|
|
2525
|
+
return /* @__PURE__ */ jsx34("div", { style: { color: "orange" }, children });
|
|
2430
2526
|
}
|
|
2431
2527
|
function Success({ children }) {
|
|
2432
|
-
return /* @__PURE__ */
|
|
2528
|
+
return /* @__PURE__ */ jsx34("div", { style: { color: "green" }, children });
|
|
2433
2529
|
}
|
|
2434
2530
|
function Warning({ children }) {
|
|
2435
|
-
return /* @__PURE__ */
|
|
2531
|
+
return /* @__PURE__ */ jsx34("div", { style: { color: "yellow" }, children });
|
|
2436
2532
|
}
|
|
2437
2533
|
function Side({ children }) {
|
|
2438
|
-
return /* @__PURE__ */
|
|
2534
|
+
return /* @__PURE__ */ jsx34("div", { children });
|
|
2439
2535
|
}
|
|
2440
2536
|
Side.mdxType = "Side";
|
|
2537
|
+
function Column({ children }) {
|
|
2538
|
+
return /* @__PURE__ */ jsx34("div", { children });
|
|
2539
|
+
}
|
|
2540
|
+
Column.mdxType = "Column";
|
|
2441
2541
|
function Documentation({ children }) {
|
|
2442
|
-
return /* @__PURE__ */
|
|
2542
|
+
return /* @__PURE__ */ jsx34("div", { children });
|
|
2443
2543
|
}
|
|
2444
2544
|
function Box2({ children }) {
|
|
2445
|
-
return /* @__PURE__ */
|
|
2545
|
+
return /* @__PURE__ */ jsx34("div", { children });
|
|
2446
2546
|
}
|
|
2447
2547
|
export {
|
|
2448
2548
|
AnimatedCounter,
|
|
2449
2549
|
Box2 as Box,
|
|
2550
|
+
Column,
|
|
2450
2551
|
Danger,
|
|
2451
2552
|
Deck,
|
|
2452
2553
|
Doc,
|