@gpichot/spectacle-deck 1.10.1 → 1.12.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/RemoteControllerShortcut.d.ts +6 -0
- package/index.cjs +239 -131
- package/index.d.ts +7 -0
- package/index.mjs +199 -91
- package/layouts/TwoColumnLayout.d.ts +4 -0
- package/layouts/index.d.ts +2 -0
- package/package.json +1 -1
package/index.cjs
CHANGED
|
@@ -31,6 +31,7 @@ var src_exports = {};
|
|
|
31
31
|
__export(src_exports, {
|
|
32
32
|
AnimatedCounter: () => AnimatedCounter,
|
|
33
33
|
Box: () => Box2,
|
|
34
|
+
Column: () => Column,
|
|
34
35
|
Danger: () => Danger,
|
|
35
36
|
Deck: () => Deck,
|
|
36
37
|
Doc: () => Doc,
|
|
@@ -61,9 +62,9 @@ __export(src_exports, {
|
|
|
61
62
|
noneTransition: () => noneTransition,
|
|
62
63
|
resolveTransition: () => resolveTransition
|
|
63
64
|
});
|
|
64
|
-
var
|
|
65
|
-
var
|
|
66
|
-
var
|
|
65
|
+
var import_react18 = require("@mdx-js/react");
|
|
66
|
+
var import_react19 = __toESM(require("react"));
|
|
67
|
+
var import_spectacle13 = require("spectacle");
|
|
67
68
|
var import_styled_components20 = require("styled-components");
|
|
68
69
|
|
|
69
70
|
// src/colors.ts
|
|
@@ -1128,8 +1129,10 @@ function FullImageLayout({
|
|
|
1128
1129
|
backgroundSize: fit,
|
|
1129
1130
|
backgroundPosition: "center",
|
|
1130
1131
|
backgroundRepeat: "no-repeat",
|
|
1132
|
+
backgroundOrigin: padding ? "content-box" : void 0,
|
|
1131
1133
|
backgroundColor,
|
|
1132
|
-
margin
|
|
1134
|
+
margin,
|
|
1135
|
+
padding
|
|
1133
1136
|
}
|
|
1134
1137
|
}
|
|
1135
1138
|
),
|
|
@@ -1543,6 +1546,58 @@ function SideLayout({
|
|
|
1543
1546
|
] });
|
|
1544
1547
|
}
|
|
1545
1548
|
|
|
1549
|
+
// src/layouts/TwoColumnLayout.tsx
|
|
1550
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
1551
|
+
function TwoColumnLayout({ children }) {
|
|
1552
|
+
const [heading, rest] = getHeading(children);
|
|
1553
|
+
const [columnContent, leftContent] = getMatchingMdxType(rest, "Column");
|
|
1554
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
1555
|
+
"div",
|
|
1556
|
+
{
|
|
1557
|
+
style: {
|
|
1558
|
+
position: "absolute",
|
|
1559
|
+
top: 0,
|
|
1560
|
+
right: 0,
|
|
1561
|
+
bottom: 0,
|
|
1562
|
+
left: 0,
|
|
1563
|
+
display: "flex",
|
|
1564
|
+
flexDirection: "column",
|
|
1565
|
+
marginBottom: "5rem"
|
|
1566
|
+
},
|
|
1567
|
+
children: [
|
|
1568
|
+
heading && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1569
|
+
"div",
|
|
1570
|
+
{
|
|
1571
|
+
style: {
|
|
1572
|
+
backgroundColor: "#ffffff11",
|
|
1573
|
+
padding: "2rem 5rem",
|
|
1574
|
+
marginBottom: "1rem"
|
|
1575
|
+
},
|
|
1576
|
+
children: heading
|
|
1577
|
+
}
|
|
1578
|
+
),
|
|
1579
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
1580
|
+
"div",
|
|
1581
|
+
{
|
|
1582
|
+
style: {
|
|
1583
|
+
display: "flex",
|
|
1584
|
+
flexDirection: "row",
|
|
1585
|
+
flex: 1,
|
|
1586
|
+
gap: "2rem",
|
|
1587
|
+
padding: `0 ${Margins.horizontal}`,
|
|
1588
|
+
alignItems: "center"
|
|
1589
|
+
},
|
|
1590
|
+
children: [
|
|
1591
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { style: { flex: 1 }, children: leftContent }),
|
|
1592
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { style: { flex: 1 }, children: columnContent })
|
|
1593
|
+
]
|
|
1594
|
+
}
|
|
1595
|
+
)
|
|
1596
|
+
]
|
|
1597
|
+
}
|
|
1598
|
+
);
|
|
1599
|
+
}
|
|
1600
|
+
|
|
1546
1601
|
// src/layouts/index.tsx
|
|
1547
1602
|
var layouts_default = {
|
|
1548
1603
|
mainSection: MainSectionLayout,
|
|
@@ -1554,19 +1609,67 @@ var layouts_default = {
|
|
|
1554
1609
|
side: SideLayout,
|
|
1555
1610
|
section: SectionLayout,
|
|
1556
1611
|
fullImage: FullImageLayout,
|
|
1557
|
-
bigNumber: BigNumberLayout
|
|
1612
|
+
bigNumber: BigNumberLayout,
|
|
1613
|
+
twoColumn: TwoColumnLayout
|
|
1558
1614
|
};
|
|
1559
1615
|
|
|
1560
|
-
// src/
|
|
1616
|
+
// src/RemoteControllerShortcut.tsx
|
|
1561
1617
|
var import_react9 = require("react");
|
|
1562
1618
|
var import_spectacle6 = require("spectacle");
|
|
1563
|
-
function
|
|
1619
|
+
function RemoteControllerShortcut() {
|
|
1564
1620
|
const {
|
|
1565
1621
|
skipTo,
|
|
1566
1622
|
activeView: { slideIndex },
|
|
1567
1623
|
slideCount
|
|
1568
1624
|
} = (0, import_react9.useContext)(import_spectacle6.DeckContext);
|
|
1569
1625
|
(0, import_spectacle6.useMousetrap)(
|
|
1626
|
+
{
|
|
1627
|
+
pagedown: () => {
|
|
1628
|
+
document.dispatchEvent(
|
|
1629
|
+
new KeyboardEvent("keydown", { key: "ArrowRight", bubbles: true })
|
|
1630
|
+
);
|
|
1631
|
+
},
|
|
1632
|
+
pageup: () => {
|
|
1633
|
+
document.dispatchEvent(
|
|
1634
|
+
new KeyboardEvent("keydown", { key: "ArrowLeft", bubbles: true })
|
|
1635
|
+
);
|
|
1636
|
+
}
|
|
1637
|
+
},
|
|
1638
|
+
[slideIndex, slideCount]
|
|
1639
|
+
);
|
|
1640
|
+
(0, import_react9.useEffect)(() => {
|
|
1641
|
+
function handleKeyDown(e) {
|
|
1642
|
+
if (e.key === "AudioVolumeUp") {
|
|
1643
|
+
e.preventDefault();
|
|
1644
|
+
if (slideIndex < slideCount - 1) {
|
|
1645
|
+
skipTo({ slideIndex: slideIndex + 1, stepIndex: 0 });
|
|
1646
|
+
}
|
|
1647
|
+
} else if (e.key === "AudioVolumeDown") {
|
|
1648
|
+
e.preventDefault();
|
|
1649
|
+
if (slideIndex > 0) {
|
|
1650
|
+
skipTo({
|
|
1651
|
+
slideIndex: slideIndex - 1,
|
|
1652
|
+
stepIndex: null
|
|
1653
|
+
});
|
|
1654
|
+
}
|
|
1655
|
+
}
|
|
1656
|
+
}
|
|
1657
|
+
document.addEventListener("keydown", handleKeyDown);
|
|
1658
|
+
return () => document.removeEventListener("keydown", handleKeyDown);
|
|
1659
|
+
}, [slideIndex, slideCount, skipTo]);
|
|
1660
|
+
return null;
|
|
1661
|
+
}
|
|
1662
|
+
|
|
1663
|
+
// src/SkipStepsShortcut.tsx
|
|
1664
|
+
var import_react10 = require("react");
|
|
1665
|
+
var import_spectacle7 = require("spectacle");
|
|
1666
|
+
function SkipStepsShortcut() {
|
|
1667
|
+
const {
|
|
1668
|
+
skipTo,
|
|
1669
|
+
activeView: { slideIndex },
|
|
1670
|
+
slideCount
|
|
1671
|
+
} = (0, import_react10.useContext)(import_spectacle7.DeckContext);
|
|
1672
|
+
(0, import_spectacle7.useMousetrap)(
|
|
1570
1673
|
{
|
|
1571
1674
|
"shift+right": () => {
|
|
1572
1675
|
if (slideIndex < slideCount - 1) {
|
|
@@ -1588,7 +1691,7 @@ function SkipStepsShortcut() {
|
|
|
1588
1691
|
}
|
|
1589
1692
|
|
|
1590
1693
|
// src/SlideWrapper.tsx
|
|
1591
|
-
var
|
|
1694
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
1592
1695
|
function SlideWrapper({
|
|
1593
1696
|
children,
|
|
1594
1697
|
frontmatter
|
|
@@ -1602,22 +1705,22 @@ function SlideWrapper({
|
|
|
1602
1705
|
);
|
|
1603
1706
|
}
|
|
1604
1707
|
if (Layout) {
|
|
1605
|
-
return /* @__PURE__ */ (0,
|
|
1708
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Layout, { ...frontmatter, children });
|
|
1606
1709
|
}
|
|
1607
|
-
return /* @__PURE__ */ (0,
|
|
1710
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_jsx_runtime19.Fragment, { children });
|
|
1608
1711
|
}
|
|
1609
1712
|
|
|
1610
1713
|
// src/template.tsx
|
|
1611
|
-
var
|
|
1612
|
-
var
|
|
1714
|
+
var import_spectacle8 = require("spectacle");
|
|
1715
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
1613
1716
|
var template = ({
|
|
1614
1717
|
slideNumber,
|
|
1615
1718
|
numberOfSlides
|
|
1616
1719
|
}) => {
|
|
1617
1720
|
const percentage = slideNumber / numberOfSlides * 100;
|
|
1618
|
-
return /* @__PURE__ */ (0,
|
|
1619
|
-
/* @__PURE__ */ (0,
|
|
1620
|
-
/* @__PURE__ */ (0,
|
|
1721
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { style: { position: "absolute", bottom: 0, left: 0, right: 0 }, children: [
|
|
1722
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_spectacle8.Box, { padding: "0 0 0.5em 0.7em", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_spectacle8.FullScreen, {}) }),
|
|
1723
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { style: { width: "100%", height: "4px", background: "#ffffff11" }, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1621
1724
|
"div",
|
|
1622
1725
|
{
|
|
1623
1726
|
style: {
|
|
@@ -1660,7 +1763,7 @@ var theme_default = {
|
|
|
1660
1763
|
};
|
|
1661
1764
|
|
|
1662
1765
|
// src/transitions.ts
|
|
1663
|
-
var
|
|
1766
|
+
var import_spectacle9 = require("spectacle");
|
|
1664
1767
|
var dropTransition = {
|
|
1665
1768
|
from: { transform: "translateY(-100%)", opacity: 0 },
|
|
1666
1769
|
enter: { transform: "translateY(0%)", opacity: 1 },
|
|
@@ -1672,8 +1775,8 @@ var noneTransition = {
|
|
|
1672
1775
|
leave: { opacity: 0 }
|
|
1673
1776
|
};
|
|
1674
1777
|
var transitionMap = {
|
|
1675
|
-
fade:
|
|
1676
|
-
slide:
|
|
1778
|
+
fade: import_spectacle9.fadeTransition,
|
|
1779
|
+
slide: import_spectacle9.slideTransition,
|
|
1677
1780
|
drop: dropTransition,
|
|
1678
1781
|
none: noneTransition
|
|
1679
1782
|
};
|
|
@@ -1689,11 +1792,11 @@ __reExport(src_exports, require("spectacle"));
|
|
|
1689
1792
|
var import_web = require("@react-spring/web");
|
|
1690
1793
|
|
|
1691
1794
|
// src/components/animations/useInView.ts
|
|
1692
|
-
var
|
|
1795
|
+
var import_react11 = __toESM(require("react"));
|
|
1693
1796
|
function useInView() {
|
|
1694
|
-
const ref =
|
|
1695
|
-
const [isInView, setIsInView] =
|
|
1696
|
-
|
|
1797
|
+
const ref = import_react11.default.useRef(null);
|
|
1798
|
+
const [isInView, setIsInView] = import_react11.default.useState(false);
|
|
1799
|
+
import_react11.default.useEffect(() => {
|
|
1697
1800
|
const el = ref.current;
|
|
1698
1801
|
if (!el) return;
|
|
1699
1802
|
const observer = new IntersectionObserver(
|
|
@@ -1712,7 +1815,7 @@ function useInView() {
|
|
|
1712
1815
|
}
|
|
1713
1816
|
|
|
1714
1817
|
// src/components/animations/AnimatedCounter.tsx
|
|
1715
|
-
var
|
|
1818
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
1716
1819
|
function AnimatedCounter({
|
|
1717
1820
|
to,
|
|
1718
1821
|
from = 0,
|
|
@@ -1728,12 +1831,12 @@ function AnimatedCounter({
|
|
|
1728
1831
|
delay: isInView ? delay : 0,
|
|
1729
1832
|
config: { duration }
|
|
1730
1833
|
});
|
|
1731
|
-
return /* @__PURE__ */ (0,
|
|
1834
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_web.animated.span, { ref, style: { fontFamily: "var(--font-family)" }, children: value.to((v) => `${prefix}${v.toFixed(decimals)}${suffix}`) });
|
|
1732
1835
|
}
|
|
1733
1836
|
|
|
1734
1837
|
// src/components/animations/FadeIn.tsx
|
|
1735
1838
|
var import_web2 = require("@react-spring/web");
|
|
1736
|
-
var
|
|
1839
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
1737
1840
|
function FadeIn({
|
|
1738
1841
|
children,
|
|
1739
1842
|
direction = "up",
|
|
@@ -1755,12 +1858,12 @@ function FadeIn({
|
|
|
1755
1858
|
delay: isInView ? delay : 0,
|
|
1756
1859
|
config: { duration }
|
|
1757
1860
|
});
|
|
1758
|
-
return /* @__PURE__ */ (0,
|
|
1861
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_web2.animated.div, { ref, style: styles, children });
|
|
1759
1862
|
}
|
|
1760
1863
|
|
|
1761
1864
|
// src/components/animations/ProgressRing.tsx
|
|
1762
1865
|
var import_web3 = require("@react-spring/web");
|
|
1763
|
-
var
|
|
1866
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
1764
1867
|
function ProgressRing({
|
|
1765
1868
|
value,
|
|
1766
1869
|
size = 120,
|
|
@@ -1780,7 +1883,7 @@ function ProgressRing({
|
|
|
1780
1883
|
delay: isInView ? delay : 0,
|
|
1781
1884
|
config: { duration }
|
|
1782
1885
|
});
|
|
1783
|
-
return /* @__PURE__ */ (0,
|
|
1886
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
1784
1887
|
"div",
|
|
1785
1888
|
{
|
|
1786
1889
|
ref,
|
|
@@ -1793,14 +1896,14 @@ function ProgressRing({
|
|
|
1793
1896
|
justifyContent: "center"
|
|
1794
1897
|
},
|
|
1795
1898
|
children: [
|
|
1796
|
-
/* @__PURE__ */ (0,
|
|
1899
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
1797
1900
|
"svg",
|
|
1798
1901
|
{
|
|
1799
1902
|
width: size,
|
|
1800
1903
|
height: size,
|
|
1801
1904
|
style: { position: "absolute", transform: "rotate(-90deg)" },
|
|
1802
1905
|
children: [
|
|
1803
|
-
/* @__PURE__ */ (0,
|
|
1906
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1804
1907
|
"circle",
|
|
1805
1908
|
{
|
|
1806
1909
|
cx: size / 2,
|
|
@@ -1811,7 +1914,7 @@ function ProgressRing({
|
|
|
1811
1914
|
strokeWidth
|
|
1812
1915
|
}
|
|
1813
1916
|
),
|
|
1814
|
-
/* @__PURE__ */ (0,
|
|
1917
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1815
1918
|
import_web3.animated.circle,
|
|
1816
1919
|
{
|
|
1817
1920
|
cx: size / 2,
|
|
@@ -1828,7 +1931,7 @@ function ProgressRing({
|
|
|
1828
1931
|
]
|
|
1829
1932
|
}
|
|
1830
1933
|
),
|
|
1831
|
-
children && /* @__PURE__ */ (0,
|
|
1934
|
+
children && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1832
1935
|
"div",
|
|
1833
1936
|
{
|
|
1834
1937
|
style: {
|
|
@@ -1846,7 +1949,7 @@ function ProgressRing({
|
|
|
1846
1949
|
|
|
1847
1950
|
// src/components/animations/ScaleIn.tsx
|
|
1848
1951
|
var import_web4 = require("@react-spring/web");
|
|
1849
|
-
var
|
|
1952
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
1850
1953
|
function ScaleIn({
|
|
1851
1954
|
children,
|
|
1852
1955
|
from = 0,
|
|
@@ -1860,12 +1963,12 @@ function ScaleIn({
|
|
|
1860
1963
|
delay: isInView ? delay : 0,
|
|
1861
1964
|
config: { duration }
|
|
1862
1965
|
});
|
|
1863
|
-
return /* @__PURE__ */ (0,
|
|
1966
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_web4.animated.div, { ref, style: styles, children });
|
|
1864
1967
|
}
|
|
1865
1968
|
|
|
1866
1969
|
// src/components/animations/Spotlight.tsx
|
|
1867
1970
|
var import_styled_components13 = __toESM(require("styled-components"));
|
|
1868
|
-
var
|
|
1971
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
1869
1972
|
var Overlay2 = import_styled_components13.default.div`
|
|
1870
1973
|
position: fixed;
|
|
1871
1974
|
inset: 0;
|
|
@@ -1883,16 +1986,16 @@ function Spotlight({
|
|
|
1883
1986
|
active = true,
|
|
1884
1987
|
dimOpacity = 0.7
|
|
1885
1988
|
}) {
|
|
1886
|
-
return /* @__PURE__ */ (0,
|
|
1887
|
-
/* @__PURE__ */ (0,
|
|
1888
|
-
/* @__PURE__ */ (0,
|
|
1989
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_jsx_runtime25.Fragment, { children: [
|
|
1990
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Overlay2, { $active: active, $dimOpacity: dimOpacity }),
|
|
1991
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Content, { $active: active, children })
|
|
1889
1992
|
] });
|
|
1890
1993
|
}
|
|
1891
1994
|
|
|
1892
1995
|
// src/components/animations/StaggerChildren.tsx
|
|
1893
1996
|
var import_web5 = require("@react-spring/web");
|
|
1894
|
-
var
|
|
1895
|
-
var
|
|
1997
|
+
var import_react12 = __toESM(require("react"));
|
|
1998
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
1896
1999
|
function StaggerChildren({
|
|
1897
2000
|
children,
|
|
1898
2001
|
stagger = 100,
|
|
@@ -1902,7 +2005,7 @@ function StaggerChildren({
|
|
|
1902
2005
|
distance = 20
|
|
1903
2006
|
}) {
|
|
1904
2007
|
const [ref, isInView] = useInView();
|
|
1905
|
-
const items =
|
|
2008
|
+
const items = import_react12.default.Children.toArray(children);
|
|
1906
2009
|
const translateMap = {
|
|
1907
2010
|
up: `translateY(${distance}px)`,
|
|
1908
2011
|
down: `translateY(-${distance}px)`,
|
|
@@ -1919,18 +2022,18 @@ function StaggerChildren({
|
|
|
1919
2022
|
config: { duration }
|
|
1920
2023
|
}))
|
|
1921
2024
|
);
|
|
1922
|
-
return /* @__PURE__ */ (0,
|
|
2025
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { ref, children: springs.map((style2, i) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_web5.animated.div, { style: style2, children: items[i] }, i)) });
|
|
1923
2026
|
}
|
|
1924
2027
|
|
|
1925
2028
|
// src/components/animations/TypeWriter.tsx
|
|
1926
|
-
var
|
|
1927
|
-
var
|
|
2029
|
+
var import_react13 = __toESM(require("react"));
|
|
2030
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
1928
2031
|
function extractText(node) {
|
|
1929
2032
|
if (typeof node === "string") return node;
|
|
1930
2033
|
if (typeof node === "number") return String(node);
|
|
1931
2034
|
if (!node) return "";
|
|
1932
2035
|
if (Array.isArray(node)) return node.map(extractText).join("");
|
|
1933
|
-
if (
|
|
2036
|
+
if (import_react13.default.isValidElement(node)) {
|
|
1934
2037
|
const props = node.props;
|
|
1935
2038
|
return extractText(props.children);
|
|
1936
2039
|
}
|
|
@@ -1944,9 +2047,9 @@ function TypeWriter({
|
|
|
1944
2047
|
}) {
|
|
1945
2048
|
const text = extractText(children);
|
|
1946
2049
|
const [ref, isInView] = useInView();
|
|
1947
|
-
const [displayed, setDisplayed] =
|
|
1948
|
-
const [done, setDone] =
|
|
1949
|
-
|
|
2050
|
+
const [displayed, setDisplayed] = import_react13.default.useState("");
|
|
2051
|
+
const [done, setDone] = import_react13.default.useState(false);
|
|
2052
|
+
import_react13.default.useEffect(() => {
|
|
1950
2053
|
if (!isInView) return;
|
|
1951
2054
|
let index = 0;
|
|
1952
2055
|
setDisplayed("");
|
|
@@ -1965,9 +2068,9 @@ function TypeWriter({
|
|
|
1965
2068
|
}, delay);
|
|
1966
2069
|
return () => clearTimeout(timeout);
|
|
1967
2070
|
}, [text, speed, delay, isInView]);
|
|
1968
|
-
return /* @__PURE__ */ (0,
|
|
2071
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("span", { ref, style: { fontFamily: "var(--font-family)" }, children: [
|
|
1969
2072
|
displayed,
|
|
1970
|
-
cursor && /* @__PURE__ */ (0,
|
|
2073
|
+
cursor && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1971
2074
|
"span",
|
|
1972
2075
|
{
|
|
1973
2076
|
style: {
|
|
@@ -1975,7 +2078,7 @@ function TypeWriter({
|
|
|
1975
2078
|
marginLeft: 1,
|
|
1976
2079
|
animation: done ? "pestacle-blink 1s step-end infinite" : "none"
|
|
1977
2080
|
},
|
|
1978
|
-
children: /* @__PURE__ */ (0,
|
|
2081
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("style", { children: `@keyframes pestacle-blink { 50% { opacity: 0; } }` })
|
|
1979
2082
|
}
|
|
1980
2083
|
)
|
|
1981
2084
|
] });
|
|
@@ -1983,7 +2086,7 @@ function TypeWriter({
|
|
|
1983
2086
|
|
|
1984
2087
|
// src/components/DocumentationItem.tsx
|
|
1985
2088
|
var import_styled_components14 = __toESM(require("styled-components"));
|
|
1986
|
-
var
|
|
2089
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
1987
2090
|
var DocWrapper = import_styled_components14.default.div`
|
|
1988
2091
|
position: absolute;
|
|
1989
2092
|
bottom: 0;
|
|
@@ -2035,18 +2138,18 @@ function Doc({
|
|
|
2035
2138
|
link,
|
|
2036
2139
|
children
|
|
2037
2140
|
}) {
|
|
2038
|
-
return /* @__PURE__ */ (0,
|
|
2039
|
-
children && /* @__PURE__ */ (0,
|
|
2040
|
-
/* @__PURE__ */ (0,
|
|
2141
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(DocWrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(DocContainer, { children: [
|
|
2142
|
+
children && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(DocContent, { children }),
|
|
2143
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(DocLink, { target: "_blank", rel: "noopener noreferrer", href: link, children: label }) })
|
|
2041
2144
|
] }) });
|
|
2042
2145
|
}
|
|
2043
2146
|
function DocItem({ label, link }) {
|
|
2044
|
-
return /* @__PURE__ */ (0,
|
|
2147
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(DocLinkItem, { target: "_blank", rel: "noopener noreferrer", href: link, children: label });
|
|
2045
2148
|
}
|
|
2046
2149
|
|
|
2047
2150
|
// src/components/FilePane.tsx
|
|
2048
|
-
var
|
|
2049
|
-
var
|
|
2151
|
+
var import_react14 = __toESM(require("react"));
|
|
2152
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
2050
2153
|
function FilePane({
|
|
2051
2154
|
name,
|
|
2052
2155
|
children,
|
|
@@ -2054,13 +2157,13 @@ function FilePane({
|
|
|
2054
2157
|
minWidth,
|
|
2055
2158
|
...divProps
|
|
2056
2159
|
}) {
|
|
2057
|
-
const content =
|
|
2160
|
+
const content = import_react14.default.isValidElement(children) ? import_react14.default.cloneElement(children, {
|
|
2058
2161
|
// @ts-expect-error cloning
|
|
2059
2162
|
priority,
|
|
2060
2163
|
name
|
|
2061
2164
|
}) : children;
|
|
2062
2165
|
if (minWidth) {
|
|
2063
|
-
return /* @__PURE__ */ (0,
|
|
2166
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { ...divProps, style: { minWidth, ...divProps.style }, children: content });
|
|
2064
2167
|
}
|
|
2065
2168
|
return content;
|
|
2066
2169
|
}
|
|
@@ -2068,10 +2171,10 @@ FilePane.mdxType = "FilePane";
|
|
|
2068
2171
|
|
|
2069
2172
|
// src/components/HorizontalList.tsx
|
|
2070
2173
|
var import_web6 = require("@react-spring/web");
|
|
2071
|
-
var
|
|
2072
|
-
var
|
|
2174
|
+
var import_react15 = __toESM(require("react"));
|
|
2175
|
+
var import_spectacle10 = require("spectacle");
|
|
2073
2176
|
var import_styled_components15 = __toESM(require("styled-components"));
|
|
2074
|
-
var
|
|
2177
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
2075
2178
|
var Container = import_styled_components15.default.div`
|
|
2076
2179
|
display: grid;
|
|
2077
2180
|
grid-gap: 2rem;
|
|
@@ -2080,18 +2183,18 @@ function HorizontalList({
|
|
|
2080
2183
|
children,
|
|
2081
2184
|
columns = 3
|
|
2082
2185
|
}) {
|
|
2083
|
-
const items =
|
|
2084
|
-
return /* @__PURE__ */ (0,
|
|
2186
|
+
const items = import_react15.default.Children.toArray(children);
|
|
2187
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_spectacle10.Stepper, { values: items, children: (_, step) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2085
2188
|
Container,
|
|
2086
2189
|
{
|
|
2087
2190
|
style: {
|
|
2088
2191
|
gridTemplateColumns: `repeat(${columns}, 1fr)`
|
|
2089
2192
|
},
|
|
2090
2193
|
children: items.map((item, k) => {
|
|
2091
|
-
if (!
|
|
2194
|
+
if (!import_react15.default.isValidElement(item)) {
|
|
2092
2195
|
return item;
|
|
2093
2196
|
}
|
|
2094
|
-
return
|
|
2197
|
+
return import_react15.default.cloneElement(item, {
|
|
2095
2198
|
// @ts-expect-error cloning
|
|
2096
2199
|
position: k + 1,
|
|
2097
2200
|
isVisible: k <= step,
|
|
@@ -2102,11 +2205,11 @@ function HorizontalList({
|
|
|
2102
2205
|
) });
|
|
2103
2206
|
}
|
|
2104
2207
|
function Pill({ position }) {
|
|
2105
|
-
return /* @__PURE__ */ (0,
|
|
2208
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2106
2209
|
"div",
|
|
2107
2210
|
{
|
|
2108
2211
|
style: { width: 48, transform: "translate(-25%, -25%)", opacity: 0.9 },
|
|
2109
|
-
children: /* @__PURE__ */ (0,
|
|
2212
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
|
2110
2213
|
"svg",
|
|
2111
2214
|
{
|
|
2112
2215
|
width: "48",
|
|
@@ -2115,14 +2218,14 @@ function Pill({ position }) {
|
|
|
2115
2218
|
fill: "none",
|
|
2116
2219
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2117
2220
|
children: [
|
|
2118
|
-
/* @__PURE__ */ (0,
|
|
2221
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2119
2222
|
"path",
|
|
2120
2223
|
{
|
|
2121
2224
|
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",
|
|
2122
2225
|
fill: "#ffffff"
|
|
2123
2226
|
}
|
|
2124
2227
|
),
|
|
2125
|
-
/* @__PURE__ */ (0,
|
|
2228
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2126
2229
|
"text",
|
|
2127
2230
|
{
|
|
2128
2231
|
x: "9",
|
|
@@ -2134,7 +2237,7 @@ function Pill({ position }) {
|
|
|
2134
2237
|
children: position
|
|
2135
2238
|
}
|
|
2136
2239
|
),
|
|
2137
|
-
/* @__PURE__ */ (0,
|
|
2240
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2138
2241
|
"path",
|
|
2139
2242
|
{
|
|
2140
2243
|
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",
|
|
@@ -2188,18 +2291,18 @@ function HorizontalListItem({
|
|
|
2188
2291
|
const opacityStyles = (0, import_web6.useSpring)({
|
|
2189
2292
|
opacity: getItemOpacity({ isVisible, isLast })
|
|
2190
2293
|
});
|
|
2191
|
-
return /* @__PURE__ */ (0,
|
|
2192
|
-
/* @__PURE__ */ (0,
|
|
2193
|
-
/* @__PURE__ */ (0,
|
|
2194
|
-
/* @__PURE__ */ (0,
|
|
2294
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(Item, { style: opacityStyles, children: [
|
|
2295
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(ItemHead, { children: [
|
|
2296
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Pill, { position }),
|
|
2297
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { children: title })
|
|
2195
2298
|
] }),
|
|
2196
|
-
/* @__PURE__ */ (0,
|
|
2299
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(ItemContent, { children })
|
|
2197
2300
|
] });
|
|
2198
2301
|
}
|
|
2199
2302
|
|
|
2200
2303
|
// src/components/IconBox.tsx
|
|
2201
2304
|
var import_styled_components16 = __toESM(require("styled-components"));
|
|
2202
|
-
var
|
|
2305
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
2203
2306
|
var IconBoxContent = import_styled_components16.default.div`
|
|
2204
2307
|
* {
|
|
2205
2308
|
margin: 0.2rem !important;
|
|
@@ -2210,7 +2313,7 @@ function IconBox({
|
|
|
2210
2313
|
children,
|
|
2211
2314
|
icon
|
|
2212
2315
|
}) {
|
|
2213
|
-
return /* @__PURE__ */ (0,
|
|
2316
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
|
|
2214
2317
|
"div",
|
|
2215
2318
|
{
|
|
2216
2319
|
style: {
|
|
@@ -2220,8 +2323,8 @@ function IconBox({
|
|
|
2220
2323
|
padding: "1rem 0"
|
|
2221
2324
|
},
|
|
2222
2325
|
children: [
|
|
2223
|
-
/* @__PURE__ */ (0,
|
|
2224
|
-
/* @__PURE__ */ (0,
|
|
2326
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { style: { fontSize: 60 }, children: icon }),
|
|
2327
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(IconBoxContent, { children })
|
|
2225
2328
|
]
|
|
2226
2329
|
}
|
|
2227
2330
|
);
|
|
@@ -2229,14 +2332,14 @@ function IconBox({
|
|
|
2229
2332
|
|
|
2230
2333
|
// src/components/ItemsColumn.tsx
|
|
2231
2334
|
var import_web7 = require("@react-spring/web");
|
|
2232
|
-
var
|
|
2233
|
-
var
|
|
2335
|
+
var import_react16 = __toESM(require("react"));
|
|
2336
|
+
var import_spectacle11 = require("spectacle");
|
|
2234
2337
|
var import_styled_components17 = __toESM(require("styled-components"));
|
|
2235
|
-
var
|
|
2338
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
2236
2339
|
function ItemsColumn(divProps) {
|
|
2237
2340
|
const { style: style2, children, ...props } = divProps;
|
|
2238
|
-
const childrenArray =
|
|
2239
|
-
return /* @__PURE__ */ (0,
|
|
2341
|
+
const childrenArray = import_react16.default.Children.toArray(children);
|
|
2342
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_spectacle11.Stepper, { values: childrenArray, children: (_value, step) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2240
2343
|
"div",
|
|
2241
2344
|
{
|
|
2242
2345
|
style: {
|
|
@@ -2251,10 +2354,10 @@ function ItemsColumn(divProps) {
|
|
|
2251
2354
|
...props,
|
|
2252
2355
|
children: childrenArray.map((child, index) => {
|
|
2253
2356
|
const isVisible = index <= step;
|
|
2254
|
-
if (!
|
|
2357
|
+
if (!import_react16.default.isValidElement(child)) {
|
|
2255
2358
|
return child;
|
|
2256
2359
|
}
|
|
2257
|
-
return /* @__PURE__ */ (0,
|
|
2360
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(ItemColumnWrapper, { isVisible, children: child }, index);
|
|
2258
2361
|
})
|
|
2259
2362
|
}
|
|
2260
2363
|
) });
|
|
@@ -2272,13 +2375,13 @@ function ItemColumnWrapper({
|
|
|
2272
2375
|
...props
|
|
2273
2376
|
}) {
|
|
2274
2377
|
const styles = (0, import_web7.useSpring)({ opacity: isVisible ? 1 : 0 });
|
|
2275
|
-
return /* @__PURE__ */ (0,
|
|
2378
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(ItemColumnWrapperStyled, { style: styles, ...props, children });
|
|
2276
2379
|
}
|
|
2277
2380
|
|
|
2278
2381
|
// src/components/Timeline.tsx
|
|
2279
2382
|
var import_web8 = require("@react-spring/web");
|
|
2280
|
-
var
|
|
2281
|
-
var
|
|
2383
|
+
var import_react17 = __toESM(require("react"));
|
|
2384
|
+
var import_spectacle12 = require("spectacle");
|
|
2282
2385
|
var import_styled_components19 = __toESM(require("styled-components"));
|
|
2283
2386
|
|
|
2284
2387
|
// src/components/Timeline.styled.tsx
|
|
@@ -2305,7 +2408,7 @@ var TimelineItemTitle = import_styled_components18.default.div`
|
|
|
2305
2408
|
`;
|
|
2306
2409
|
|
|
2307
2410
|
// src/components/Timeline.tsx
|
|
2308
|
-
var
|
|
2411
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
2309
2412
|
var TimelineItemStyled = (0, import_styled_components19.default)(import_web8.animated.div)`
|
|
2310
2413
|
flex: 1;
|
|
2311
2414
|
flex-flow: column nowrap;
|
|
@@ -2352,21 +2455,21 @@ var style = {
|
|
|
2352
2455
|
};
|
|
2353
2456
|
function Timeline(props) {
|
|
2354
2457
|
const { activeIndex, ...rest } = props;
|
|
2355
|
-
const children =
|
|
2458
|
+
const children = import_react17.default.Children.toArray(rest.children);
|
|
2356
2459
|
if (activeIndex != null) {
|
|
2357
|
-
return /* @__PURE__ */ (0,
|
|
2358
|
-
if (!
|
|
2460
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { ...rest, style: { ...style, ...rest.style }, children: children.map((child, index) => {
|
|
2461
|
+
if (!import_react17.default.isValidElement(child)) {
|
|
2359
2462
|
return child;
|
|
2360
2463
|
}
|
|
2361
|
-
return
|
|
2464
|
+
return import_react17.default.cloneElement(child, {
|
|
2362
2465
|
// @ts-expect-error cloning
|
|
2363
2466
|
isPhantom: activeIndex < index,
|
|
2364
2467
|
isLast: activeIndex === index
|
|
2365
2468
|
});
|
|
2366
2469
|
}) });
|
|
2367
2470
|
}
|
|
2368
|
-
return /* @__PURE__ */ (0,
|
|
2369
|
-
|
|
2471
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2472
|
+
import_spectacle12.Stepper,
|
|
2370
2473
|
{
|
|
2371
2474
|
...rest,
|
|
2372
2475
|
values: children,
|
|
@@ -2374,10 +2477,10 @@ function Timeline(props) {
|
|
|
2374
2477
|
inactiveStyle: style,
|
|
2375
2478
|
children: (_value, step) => {
|
|
2376
2479
|
return children.map((child, index) => {
|
|
2377
|
-
if (!
|
|
2480
|
+
if (!import_react17.default.isValidElement(child)) {
|
|
2378
2481
|
return child;
|
|
2379
2482
|
}
|
|
2380
|
-
return
|
|
2483
|
+
return import_react17.default.cloneElement(child, {
|
|
2381
2484
|
// @ts-expect-error cloning
|
|
2382
2485
|
isPhantom: step < index,
|
|
2383
2486
|
isLast: step === index
|
|
@@ -2404,7 +2507,7 @@ function TimelineItem(props) {
|
|
|
2404
2507
|
opacity: getItemOpacity2({ isPhantom, isLast })
|
|
2405
2508
|
});
|
|
2406
2509
|
const colorStyles = (0, import_web8.useSpring)({ opacity: isPhantom || isLast ? 1 : 0.15 });
|
|
2407
|
-
return /* @__PURE__ */ (0,
|
|
2510
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
|
|
2408
2511
|
TimelineItemStyled,
|
|
2409
2512
|
{
|
|
2410
2513
|
...rest,
|
|
@@ -2412,24 +2515,24 @@ function TimelineItem(props) {
|
|
|
2412
2515
|
...appearStyles
|
|
2413
2516
|
},
|
|
2414
2517
|
children: [
|
|
2415
|
-
/* @__PURE__ */ (0,
|
|
2416
|
-
/* @__PURE__ */ (0,
|
|
2417
|
-
/* @__PURE__ */ (0,
|
|
2518
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(TimelineItemContentPhantom, { children: [
|
|
2519
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(TimelineItemTitle, { children: title }),
|
|
2520
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(TimelineItemBody, { children })
|
|
2418
2521
|
] }),
|
|
2419
|
-
/* @__PURE__ */ (0,
|
|
2420
|
-
/* @__PURE__ */ (0,
|
|
2421
|
-
/* @__PURE__ */ (0,
|
|
2522
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(TimelineItemGuide, { style: colorStyles, children: [
|
|
2523
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Hexagon, {}),
|
|
2524
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(TimelineItemGuideLine, { style: guideLineProps })
|
|
2422
2525
|
] }),
|
|
2423
|
-
/* @__PURE__ */ (0,
|
|
2424
|
-
/* @__PURE__ */ (0,
|
|
2425
|
-
/* @__PURE__ */ (0,
|
|
2526
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(TimelineItemContent, { children: [
|
|
2527
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(TimelineItemTitle, { children: title }),
|
|
2528
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(TimelineItemBody, { children })
|
|
2426
2529
|
] })
|
|
2427
2530
|
]
|
|
2428
2531
|
}
|
|
2429
2532
|
);
|
|
2430
2533
|
}
|
|
2431
2534
|
function Hexagon() {
|
|
2432
|
-
return /* @__PURE__ */ (0,
|
|
2535
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
|
|
2433
2536
|
"svg",
|
|
2434
2537
|
{
|
|
2435
2538
|
width: "18",
|
|
@@ -2438,14 +2541,14 @@ function Hexagon() {
|
|
|
2438
2541
|
fill: "none",
|
|
2439
2542
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2440
2543
|
children: [
|
|
2441
|
-
/* @__PURE__ */ (0,
|
|
2544
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2442
2545
|
"path",
|
|
2443
2546
|
{
|
|
2444
2547
|
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",
|
|
2445
2548
|
fill: "#F49676"
|
|
2446
2549
|
}
|
|
2447
2550
|
),
|
|
2448
|
-
/* @__PURE__ */ (0,
|
|
2551
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2449
2552
|
"path",
|
|
2450
2553
|
{
|
|
2451
2554
|
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",
|
|
@@ -2458,9 +2561,9 @@ function Hexagon() {
|
|
|
2458
2561
|
}
|
|
2459
2562
|
|
|
2460
2563
|
// src/index.tsx
|
|
2461
|
-
var
|
|
2564
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
2462
2565
|
function PassThrough({ children }) {
|
|
2463
|
-
return /* @__PURE__ */ (0,
|
|
2566
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_jsx_runtime34.Fragment, { children });
|
|
2464
2567
|
}
|
|
2465
2568
|
var layouts = layouts_default;
|
|
2466
2569
|
var componentsMap2 = {
|
|
@@ -2473,10 +2576,10 @@ function Deck({
|
|
|
2473
2576
|
layouts: layouts2 = layouts_default,
|
|
2474
2577
|
transition
|
|
2475
2578
|
}) {
|
|
2476
|
-
|
|
2579
|
+
import_react19.default.useEffect(() => {
|
|
2477
2580
|
document.title = deck.metadata.title || "Untitled";
|
|
2478
2581
|
}, [deck.metadata.title]);
|
|
2479
|
-
const mergedTheme =
|
|
2582
|
+
const mergedTheme = import_react19.default.useMemo(() => {
|
|
2480
2583
|
const fonts = {
|
|
2481
2584
|
...theme_default.fonts,
|
|
2482
2585
|
...theme.themeTokens.fonts ?? {}
|
|
@@ -2487,7 +2590,7 @@ function Deck({
|
|
|
2487
2590
|
fonts
|
|
2488
2591
|
};
|
|
2489
2592
|
}, [theme]);
|
|
2490
|
-
const GlobalStyle =
|
|
2593
|
+
const GlobalStyle = import_react19.default.useMemo(() => {
|
|
2491
2594
|
const cssVariables = createCssVariables(theme.themeTokens.colors);
|
|
2492
2595
|
return import_styled_components20.createGlobalStyle`
|
|
2493
2596
|
:root {
|
|
@@ -2496,22 +2599,23 @@ function Deck({
|
|
|
2496
2599
|
}
|
|
2497
2600
|
`;
|
|
2498
2601
|
}, [theme, mergedTheme]);
|
|
2499
|
-
return /* @__PURE__ */ (0,
|
|
2500
|
-
/* @__PURE__ */ (0,
|
|
2501
|
-
/* @__PURE__ */ (0,
|
|
2502
|
-
|
|
2602
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_react19.default.StrictMode, { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(PestacleProvider, { layouts: layouts2, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_react18.MDXProvider, { components: componentsMap2, children: [
|
|
2603
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(GlobalStyle, {}),
|
|
2604
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
2605
|
+
import_spectacle13.Deck,
|
|
2503
2606
|
{
|
|
2504
2607
|
theme: mergedTheme,
|
|
2505
2608
|
template,
|
|
2506
2609
|
transition: resolveTransition(transition),
|
|
2507
2610
|
children: [
|
|
2508
|
-
/* @__PURE__ */ (0,
|
|
2611
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SkipStepsShortcut, {}),
|
|
2612
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(RemoteControllerShortcut, {}),
|
|
2509
2613
|
deck.slides.map((slide, i) => {
|
|
2510
2614
|
var _a;
|
|
2511
2615
|
const Component = slide.slideComponent;
|
|
2512
2616
|
const slideTransitionName = (_a = slide.metadata) == null ? void 0 : _a.transition;
|
|
2513
2617
|
const slideTransition2 = resolveTransition(slideTransitionName);
|
|
2514
|
-
return /* @__PURE__ */ (0,
|
|
2618
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_spectacle13.Slide, { transition: slideTransition2, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Component, {}) }, i);
|
|
2515
2619
|
})
|
|
2516
2620
|
]
|
|
2517
2621
|
}
|
|
@@ -2519,26 +2623,30 @@ function Deck({
|
|
|
2519
2623
|
] }) }) });
|
|
2520
2624
|
}
|
|
2521
2625
|
function Danger({ children }) {
|
|
2522
|
-
return /* @__PURE__ */ (0,
|
|
2626
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { style: { color: "red" }, children });
|
|
2523
2627
|
}
|
|
2524
2628
|
function Information({ children }) {
|
|
2525
|
-
return /* @__PURE__ */ (0,
|
|
2629
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { style: { color: "orange" }, children });
|
|
2526
2630
|
}
|
|
2527
2631
|
function Success({ children }) {
|
|
2528
|
-
return /* @__PURE__ */ (0,
|
|
2632
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { style: { color: "green" }, children });
|
|
2529
2633
|
}
|
|
2530
2634
|
function Warning({ children }) {
|
|
2531
|
-
return /* @__PURE__ */ (0,
|
|
2635
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { style: { color: "yellow" }, children });
|
|
2532
2636
|
}
|
|
2533
2637
|
function Side({ children }) {
|
|
2534
|
-
return /* @__PURE__ */ (0,
|
|
2638
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { children });
|
|
2535
2639
|
}
|
|
2536
2640
|
Side.mdxType = "Side";
|
|
2641
|
+
function Column({ children }) {
|
|
2642
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { children });
|
|
2643
|
+
}
|
|
2644
|
+
Column.mdxType = "Column";
|
|
2537
2645
|
function Documentation({ children }) {
|
|
2538
|
-
return /* @__PURE__ */ (0,
|
|
2646
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { children });
|
|
2539
2647
|
}
|
|
2540
2648
|
function Box2({ children }) {
|
|
2541
|
-
return /* @__PURE__ */ (0,
|
|
2649
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { children });
|
|
2542
2650
|
}
|
|
2543
2651
|
|
|
2544
2652
|
// <stdin>
|