@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.mjs
CHANGED
|
@@ -1070,8 +1070,10 @@ function FullImageLayout({
|
|
|
1070
1070
|
backgroundSize: fit,
|
|
1071
1071
|
backgroundPosition: "center",
|
|
1072
1072
|
backgroundRepeat: "no-repeat",
|
|
1073
|
+
backgroundOrigin: padding ? "content-box" : void 0,
|
|
1073
1074
|
backgroundColor,
|
|
1074
|
-
margin
|
|
1075
|
+
margin,
|
|
1076
|
+
padding
|
|
1075
1077
|
}
|
|
1076
1078
|
}
|
|
1077
1079
|
),
|
|
@@ -1485,6 +1487,58 @@ function SideLayout({
|
|
|
1485
1487
|
] });
|
|
1486
1488
|
}
|
|
1487
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
|
+
|
|
1488
1542
|
// src/layouts/index.tsx
|
|
1489
1543
|
var layouts_default = {
|
|
1490
1544
|
mainSection: MainSectionLayout,
|
|
@@ -1496,19 +1550,67 @@ var layouts_default = {
|
|
|
1496
1550
|
side: SideLayout,
|
|
1497
1551
|
section: SectionLayout,
|
|
1498
1552
|
fullImage: FullImageLayout,
|
|
1499
|
-
bigNumber: BigNumberLayout
|
|
1553
|
+
bigNumber: BigNumberLayout,
|
|
1554
|
+
twoColumn: TwoColumnLayout
|
|
1500
1555
|
};
|
|
1501
1556
|
|
|
1502
|
-
// src/
|
|
1503
|
-
import { useContext as useContext2 } from "react";
|
|
1557
|
+
// src/RemoteControllerShortcut.tsx
|
|
1558
|
+
import { useContext as useContext2, useEffect } from "react";
|
|
1504
1559
|
import { DeckContext as DeckContext2, useMousetrap } from "spectacle";
|
|
1505
|
-
function
|
|
1560
|
+
function RemoteControllerShortcut() {
|
|
1506
1561
|
const {
|
|
1507
1562
|
skipTo,
|
|
1508
1563
|
activeView: { slideIndex },
|
|
1509
1564
|
slideCount
|
|
1510
1565
|
} = useContext2(DeckContext2);
|
|
1511
1566
|
useMousetrap(
|
|
1567
|
+
{
|
|
1568
|
+
pagedown: () => {
|
|
1569
|
+
document.dispatchEvent(
|
|
1570
|
+
new KeyboardEvent("keydown", { key: "ArrowRight", bubbles: true })
|
|
1571
|
+
);
|
|
1572
|
+
},
|
|
1573
|
+
pageup: () => {
|
|
1574
|
+
document.dispatchEvent(
|
|
1575
|
+
new KeyboardEvent("keydown", { key: "ArrowLeft", bubbles: true })
|
|
1576
|
+
);
|
|
1577
|
+
}
|
|
1578
|
+
},
|
|
1579
|
+
[slideIndex, slideCount]
|
|
1580
|
+
);
|
|
1581
|
+
useEffect(() => {
|
|
1582
|
+
function handleKeyDown(e) {
|
|
1583
|
+
if (e.key === "AudioVolumeUp") {
|
|
1584
|
+
e.preventDefault();
|
|
1585
|
+
if (slideIndex < slideCount - 1) {
|
|
1586
|
+
skipTo({ slideIndex: slideIndex + 1, stepIndex: 0 });
|
|
1587
|
+
}
|
|
1588
|
+
} else if (e.key === "AudioVolumeDown") {
|
|
1589
|
+
e.preventDefault();
|
|
1590
|
+
if (slideIndex > 0) {
|
|
1591
|
+
skipTo({
|
|
1592
|
+
slideIndex: slideIndex - 1,
|
|
1593
|
+
stepIndex: null
|
|
1594
|
+
});
|
|
1595
|
+
}
|
|
1596
|
+
}
|
|
1597
|
+
}
|
|
1598
|
+
document.addEventListener("keydown", handleKeyDown);
|
|
1599
|
+
return () => document.removeEventListener("keydown", handleKeyDown);
|
|
1600
|
+
}, [slideIndex, slideCount, skipTo]);
|
|
1601
|
+
return null;
|
|
1602
|
+
}
|
|
1603
|
+
|
|
1604
|
+
// src/SkipStepsShortcut.tsx
|
|
1605
|
+
import { useContext as useContext3 } from "react";
|
|
1606
|
+
import { DeckContext as DeckContext3, useMousetrap as useMousetrap2 } from "spectacle";
|
|
1607
|
+
function SkipStepsShortcut() {
|
|
1608
|
+
const {
|
|
1609
|
+
skipTo,
|
|
1610
|
+
activeView: { slideIndex },
|
|
1611
|
+
slideCount
|
|
1612
|
+
} = useContext3(DeckContext3);
|
|
1613
|
+
useMousetrap2(
|
|
1512
1614
|
{
|
|
1513
1615
|
"shift+right": () => {
|
|
1514
1616
|
if (slideIndex < slideCount - 1) {
|
|
@@ -1530,7 +1632,7 @@ function SkipStepsShortcut() {
|
|
|
1530
1632
|
}
|
|
1531
1633
|
|
|
1532
1634
|
// src/SlideWrapper.tsx
|
|
1533
|
-
import { Fragment, jsx as
|
|
1635
|
+
import { Fragment, jsx as jsx19 } from "react/jsx-runtime";
|
|
1534
1636
|
function SlideWrapper({
|
|
1535
1637
|
children,
|
|
1536
1638
|
frontmatter
|
|
@@ -1544,22 +1646,22 @@ function SlideWrapper({
|
|
|
1544
1646
|
);
|
|
1545
1647
|
}
|
|
1546
1648
|
if (Layout) {
|
|
1547
|
-
return /* @__PURE__ */
|
|
1649
|
+
return /* @__PURE__ */ jsx19(Layout, { ...frontmatter, children });
|
|
1548
1650
|
}
|
|
1549
|
-
return /* @__PURE__ */
|
|
1651
|
+
return /* @__PURE__ */ jsx19(Fragment, { children });
|
|
1550
1652
|
}
|
|
1551
1653
|
|
|
1552
1654
|
// src/template.tsx
|
|
1553
1655
|
import { Box, FullScreen } from "spectacle";
|
|
1554
|
-
import { jsx as
|
|
1656
|
+
import { jsx as jsx20, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
1555
1657
|
var template = ({
|
|
1556
1658
|
slideNumber,
|
|
1557
1659
|
numberOfSlides
|
|
1558
1660
|
}) => {
|
|
1559
1661
|
const percentage = slideNumber / numberOfSlides * 100;
|
|
1560
|
-
return /* @__PURE__ */
|
|
1561
|
-
/* @__PURE__ */
|
|
1562
|
-
/* @__PURE__ */
|
|
1662
|
+
return /* @__PURE__ */ jsxs15("div", { style: { position: "absolute", bottom: 0, left: 0, right: 0 }, children: [
|
|
1663
|
+
/* @__PURE__ */ jsx20(Box, { padding: "0 0 0.5em 0.7em", children: /* @__PURE__ */ jsx20(FullScreen, {}) }),
|
|
1664
|
+
/* @__PURE__ */ jsx20("div", { style: { width: "100%", height: "4px", background: "#ffffff11" }, children: /* @__PURE__ */ jsx20(
|
|
1563
1665
|
"div",
|
|
1564
1666
|
{
|
|
1565
1667
|
style: {
|
|
@@ -1657,7 +1759,7 @@ function useInView() {
|
|
|
1657
1759
|
}
|
|
1658
1760
|
|
|
1659
1761
|
// src/components/animations/AnimatedCounter.tsx
|
|
1660
|
-
import { jsx as
|
|
1762
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
1661
1763
|
function AnimatedCounter({
|
|
1662
1764
|
to,
|
|
1663
1765
|
from = 0,
|
|
@@ -1673,12 +1775,12 @@ function AnimatedCounter({
|
|
|
1673
1775
|
delay: isInView ? delay : 0,
|
|
1674
1776
|
config: { duration }
|
|
1675
1777
|
});
|
|
1676
|
-
return /* @__PURE__ */
|
|
1778
|
+
return /* @__PURE__ */ jsx21(animated.span, { ref, style: { fontFamily: "var(--font-family)" }, children: value.to((v) => `${prefix}${v.toFixed(decimals)}${suffix}`) });
|
|
1677
1779
|
}
|
|
1678
1780
|
|
|
1679
1781
|
// src/components/animations/FadeIn.tsx
|
|
1680
1782
|
import { animated as animated2, useSpring as useSpring2 } from "@react-spring/web";
|
|
1681
|
-
import { jsx as
|
|
1783
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
1682
1784
|
function FadeIn({
|
|
1683
1785
|
children,
|
|
1684
1786
|
direction = "up",
|
|
@@ -1700,12 +1802,12 @@ function FadeIn({
|
|
|
1700
1802
|
delay: isInView ? delay : 0,
|
|
1701
1803
|
config: { duration }
|
|
1702
1804
|
});
|
|
1703
|
-
return /* @__PURE__ */
|
|
1805
|
+
return /* @__PURE__ */ jsx22(animated2.div, { ref, style: styles, children });
|
|
1704
1806
|
}
|
|
1705
1807
|
|
|
1706
1808
|
// src/components/animations/ProgressRing.tsx
|
|
1707
1809
|
import { animated as animated3, useSpring as useSpring3 } from "@react-spring/web";
|
|
1708
|
-
import { jsx as
|
|
1810
|
+
import { jsx as jsx23, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
1709
1811
|
function ProgressRing({
|
|
1710
1812
|
value,
|
|
1711
1813
|
size = 120,
|
|
@@ -1725,7 +1827,7 @@ function ProgressRing({
|
|
|
1725
1827
|
delay: isInView ? delay : 0,
|
|
1726
1828
|
config: { duration }
|
|
1727
1829
|
});
|
|
1728
|
-
return /* @__PURE__ */
|
|
1830
|
+
return /* @__PURE__ */ jsxs16(
|
|
1729
1831
|
"div",
|
|
1730
1832
|
{
|
|
1731
1833
|
ref,
|
|
@@ -1738,14 +1840,14 @@ function ProgressRing({
|
|
|
1738
1840
|
justifyContent: "center"
|
|
1739
1841
|
},
|
|
1740
1842
|
children: [
|
|
1741
|
-
/* @__PURE__ */
|
|
1843
|
+
/* @__PURE__ */ jsxs16(
|
|
1742
1844
|
"svg",
|
|
1743
1845
|
{
|
|
1744
1846
|
width: size,
|
|
1745
1847
|
height: size,
|
|
1746
1848
|
style: { position: "absolute", transform: "rotate(-90deg)" },
|
|
1747
1849
|
children: [
|
|
1748
|
-
/* @__PURE__ */
|
|
1850
|
+
/* @__PURE__ */ jsx23(
|
|
1749
1851
|
"circle",
|
|
1750
1852
|
{
|
|
1751
1853
|
cx: size / 2,
|
|
@@ -1756,7 +1858,7 @@ function ProgressRing({
|
|
|
1756
1858
|
strokeWidth
|
|
1757
1859
|
}
|
|
1758
1860
|
),
|
|
1759
|
-
/* @__PURE__ */
|
|
1861
|
+
/* @__PURE__ */ jsx23(
|
|
1760
1862
|
animated3.circle,
|
|
1761
1863
|
{
|
|
1762
1864
|
cx: size / 2,
|
|
@@ -1773,7 +1875,7 @@ function ProgressRing({
|
|
|
1773
1875
|
]
|
|
1774
1876
|
}
|
|
1775
1877
|
),
|
|
1776
|
-
children && /* @__PURE__ */
|
|
1878
|
+
children && /* @__PURE__ */ jsx23(
|
|
1777
1879
|
"div",
|
|
1778
1880
|
{
|
|
1779
1881
|
style: {
|
|
@@ -1791,7 +1893,7 @@ function ProgressRing({
|
|
|
1791
1893
|
|
|
1792
1894
|
// src/components/animations/ScaleIn.tsx
|
|
1793
1895
|
import { animated as animated4, useSpring as useSpring4 } from "@react-spring/web";
|
|
1794
|
-
import { jsx as
|
|
1896
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
1795
1897
|
function ScaleIn({
|
|
1796
1898
|
children,
|
|
1797
1899
|
from = 0,
|
|
@@ -1805,12 +1907,12 @@ function ScaleIn({
|
|
|
1805
1907
|
delay: isInView ? delay : 0,
|
|
1806
1908
|
config: { duration }
|
|
1807
1909
|
});
|
|
1808
|
-
return /* @__PURE__ */
|
|
1910
|
+
return /* @__PURE__ */ jsx24(animated4.div, { ref, style: styles, children });
|
|
1809
1911
|
}
|
|
1810
1912
|
|
|
1811
1913
|
// src/components/animations/Spotlight.tsx
|
|
1812
1914
|
import styled13 from "styled-components";
|
|
1813
|
-
import { Fragment as Fragment2, jsx as
|
|
1915
|
+
import { Fragment as Fragment2, jsx as jsx25, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
1814
1916
|
var Overlay2 = styled13.div`
|
|
1815
1917
|
position: fixed;
|
|
1816
1918
|
inset: 0;
|
|
@@ -1828,16 +1930,16 @@ function Spotlight({
|
|
|
1828
1930
|
active = true,
|
|
1829
1931
|
dimOpacity = 0.7
|
|
1830
1932
|
}) {
|
|
1831
|
-
return /* @__PURE__ */
|
|
1832
|
-
/* @__PURE__ */
|
|
1833
|
-
/* @__PURE__ */
|
|
1933
|
+
return /* @__PURE__ */ jsxs17(Fragment2, { children: [
|
|
1934
|
+
/* @__PURE__ */ jsx25(Overlay2, { $active: active, $dimOpacity: dimOpacity }),
|
|
1935
|
+
/* @__PURE__ */ jsx25(Content, { $active: active, children })
|
|
1834
1936
|
] });
|
|
1835
1937
|
}
|
|
1836
1938
|
|
|
1837
1939
|
// src/components/animations/StaggerChildren.tsx
|
|
1838
1940
|
import { animated as animated5, useSprings } from "@react-spring/web";
|
|
1839
1941
|
import React10 from "react";
|
|
1840
|
-
import { jsx as
|
|
1942
|
+
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
1841
1943
|
function StaggerChildren({
|
|
1842
1944
|
children,
|
|
1843
1945
|
stagger = 100,
|
|
@@ -1864,12 +1966,12 @@ function StaggerChildren({
|
|
|
1864
1966
|
config: { duration }
|
|
1865
1967
|
}))
|
|
1866
1968
|
);
|
|
1867
|
-
return /* @__PURE__ */
|
|
1969
|
+
return /* @__PURE__ */ jsx26("div", { ref, children: springs.map((style2, i) => /* @__PURE__ */ jsx26(animated5.div, { style: style2, children: items[i] }, i)) });
|
|
1868
1970
|
}
|
|
1869
1971
|
|
|
1870
1972
|
// src/components/animations/TypeWriter.tsx
|
|
1871
1973
|
import React11 from "react";
|
|
1872
|
-
import { jsx as
|
|
1974
|
+
import { jsx as jsx27, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
1873
1975
|
function extractText(node) {
|
|
1874
1976
|
if (typeof node === "string") return node;
|
|
1875
1977
|
if (typeof node === "number") return String(node);
|
|
@@ -1910,9 +2012,9 @@ function TypeWriter({
|
|
|
1910
2012
|
}, delay);
|
|
1911
2013
|
return () => clearTimeout(timeout);
|
|
1912
2014
|
}, [text, speed, delay, isInView]);
|
|
1913
|
-
return /* @__PURE__ */
|
|
2015
|
+
return /* @__PURE__ */ jsxs18("span", { ref, style: { fontFamily: "var(--font-family)" }, children: [
|
|
1914
2016
|
displayed,
|
|
1915
|
-
cursor && /* @__PURE__ */
|
|
2017
|
+
cursor && /* @__PURE__ */ jsx27(
|
|
1916
2018
|
"span",
|
|
1917
2019
|
{
|
|
1918
2020
|
style: {
|
|
@@ -1920,7 +2022,7 @@ function TypeWriter({
|
|
|
1920
2022
|
marginLeft: 1,
|
|
1921
2023
|
animation: done ? "pestacle-blink 1s step-end infinite" : "none"
|
|
1922
2024
|
},
|
|
1923
|
-
children: /* @__PURE__ */
|
|
2025
|
+
children: /* @__PURE__ */ jsx27("style", { children: `@keyframes pestacle-blink { 50% { opacity: 0; } }` })
|
|
1924
2026
|
}
|
|
1925
2027
|
)
|
|
1926
2028
|
] });
|
|
@@ -1928,7 +2030,7 @@ function TypeWriter({
|
|
|
1928
2030
|
|
|
1929
2031
|
// src/components/DocumentationItem.tsx
|
|
1930
2032
|
import styled14 from "styled-components";
|
|
1931
|
-
import { jsx as
|
|
2033
|
+
import { jsx as jsx28, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
1932
2034
|
var DocWrapper = styled14.div`
|
|
1933
2035
|
position: absolute;
|
|
1934
2036
|
bottom: 0;
|
|
@@ -1980,18 +2082,18 @@ function Doc({
|
|
|
1980
2082
|
link,
|
|
1981
2083
|
children
|
|
1982
2084
|
}) {
|
|
1983
|
-
return /* @__PURE__ */
|
|
1984
|
-
children && /* @__PURE__ */
|
|
1985
|
-
/* @__PURE__ */
|
|
2085
|
+
return /* @__PURE__ */ jsx28(DocWrapper, { children: /* @__PURE__ */ jsxs19(DocContainer, { children: [
|
|
2086
|
+
children && /* @__PURE__ */ jsx28(DocContent, { children }),
|
|
2087
|
+
/* @__PURE__ */ jsx28("div", { children: /* @__PURE__ */ jsx28(DocLink, { target: "_blank", rel: "noopener noreferrer", href: link, children: label }) })
|
|
1986
2088
|
] }) });
|
|
1987
2089
|
}
|
|
1988
2090
|
function DocItem({ label, link }) {
|
|
1989
|
-
return /* @__PURE__ */
|
|
2091
|
+
return /* @__PURE__ */ jsx28(DocLinkItem, { target: "_blank", rel: "noopener noreferrer", href: link, children: label });
|
|
1990
2092
|
}
|
|
1991
2093
|
|
|
1992
2094
|
// src/components/FilePane.tsx
|
|
1993
2095
|
import React12 from "react";
|
|
1994
|
-
import { jsx as
|
|
2096
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
1995
2097
|
function FilePane({
|
|
1996
2098
|
name,
|
|
1997
2099
|
children,
|
|
@@ -2005,7 +2107,7 @@ function FilePane({
|
|
|
2005
2107
|
name
|
|
2006
2108
|
}) : children;
|
|
2007
2109
|
if (minWidth) {
|
|
2008
|
-
return /* @__PURE__ */
|
|
2110
|
+
return /* @__PURE__ */ jsx29("div", { ...divProps, style: { minWidth, ...divProps.style }, children: content });
|
|
2009
2111
|
}
|
|
2010
2112
|
return content;
|
|
2011
2113
|
}
|
|
@@ -2016,7 +2118,7 @@ import { animated as animated6, useSpring as useSpring5 } from "@react-spring/we
|
|
|
2016
2118
|
import React13 from "react";
|
|
2017
2119
|
import { Stepper as Stepper2 } from "spectacle";
|
|
2018
2120
|
import styled15 from "styled-components";
|
|
2019
|
-
import { jsx as
|
|
2121
|
+
import { jsx as jsx30, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
2020
2122
|
var Container = styled15.div`
|
|
2021
2123
|
display: grid;
|
|
2022
2124
|
grid-gap: 2rem;
|
|
@@ -2026,7 +2128,7 @@ function HorizontalList({
|
|
|
2026
2128
|
columns = 3
|
|
2027
2129
|
}) {
|
|
2028
2130
|
const items = React13.Children.toArray(children);
|
|
2029
|
-
return /* @__PURE__ */
|
|
2131
|
+
return /* @__PURE__ */ jsx30(Stepper2, { values: items, children: (_, step) => /* @__PURE__ */ jsx30(
|
|
2030
2132
|
Container,
|
|
2031
2133
|
{
|
|
2032
2134
|
style: {
|
|
@@ -2047,11 +2149,11 @@ function HorizontalList({
|
|
|
2047
2149
|
) });
|
|
2048
2150
|
}
|
|
2049
2151
|
function Pill({ position }) {
|
|
2050
|
-
return /* @__PURE__ */
|
|
2152
|
+
return /* @__PURE__ */ jsx30(
|
|
2051
2153
|
"div",
|
|
2052
2154
|
{
|
|
2053
2155
|
style: { width: 48, transform: "translate(-25%, -25%)", opacity: 0.9 },
|
|
2054
|
-
children: /* @__PURE__ */
|
|
2156
|
+
children: /* @__PURE__ */ jsxs20(
|
|
2055
2157
|
"svg",
|
|
2056
2158
|
{
|
|
2057
2159
|
width: "48",
|
|
@@ -2060,14 +2162,14 @@ function Pill({ position }) {
|
|
|
2060
2162
|
fill: "none",
|
|
2061
2163
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2062
2164
|
children: [
|
|
2063
|
-
/* @__PURE__ */
|
|
2165
|
+
/* @__PURE__ */ jsx30(
|
|
2064
2166
|
"path",
|
|
2065
2167
|
{
|
|
2066
2168
|
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",
|
|
2067
2169
|
fill: "#ffffff"
|
|
2068
2170
|
}
|
|
2069
2171
|
),
|
|
2070
|
-
/* @__PURE__ */
|
|
2172
|
+
/* @__PURE__ */ jsx30(
|
|
2071
2173
|
"text",
|
|
2072
2174
|
{
|
|
2073
2175
|
x: "9",
|
|
@@ -2079,7 +2181,7 @@ function Pill({ position }) {
|
|
|
2079
2181
|
children: position
|
|
2080
2182
|
}
|
|
2081
2183
|
),
|
|
2082
|
-
/* @__PURE__ */
|
|
2184
|
+
/* @__PURE__ */ jsx30(
|
|
2083
2185
|
"path",
|
|
2084
2186
|
{
|
|
2085
2187
|
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",
|
|
@@ -2133,18 +2235,18 @@ function HorizontalListItem({
|
|
|
2133
2235
|
const opacityStyles = useSpring5({
|
|
2134
2236
|
opacity: getItemOpacity({ isVisible, isLast })
|
|
2135
2237
|
});
|
|
2136
|
-
return /* @__PURE__ */
|
|
2137
|
-
/* @__PURE__ */
|
|
2138
|
-
/* @__PURE__ */
|
|
2139
|
-
/* @__PURE__ */
|
|
2238
|
+
return /* @__PURE__ */ jsxs20(Item, { style: opacityStyles, children: [
|
|
2239
|
+
/* @__PURE__ */ jsxs20(ItemHead, { children: [
|
|
2240
|
+
/* @__PURE__ */ jsx30(Pill, { position }),
|
|
2241
|
+
/* @__PURE__ */ jsx30("p", { children: title })
|
|
2140
2242
|
] }),
|
|
2141
|
-
/* @__PURE__ */
|
|
2243
|
+
/* @__PURE__ */ jsx30(ItemContent, { children })
|
|
2142
2244
|
] });
|
|
2143
2245
|
}
|
|
2144
2246
|
|
|
2145
2247
|
// src/components/IconBox.tsx
|
|
2146
2248
|
import styled16 from "styled-components";
|
|
2147
|
-
import { jsx as
|
|
2249
|
+
import { jsx as jsx31, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
2148
2250
|
var IconBoxContent = styled16.div`
|
|
2149
2251
|
* {
|
|
2150
2252
|
margin: 0.2rem !important;
|
|
@@ -2155,7 +2257,7 @@ function IconBox({
|
|
|
2155
2257
|
children,
|
|
2156
2258
|
icon
|
|
2157
2259
|
}) {
|
|
2158
|
-
return /* @__PURE__ */
|
|
2260
|
+
return /* @__PURE__ */ jsxs21(
|
|
2159
2261
|
"div",
|
|
2160
2262
|
{
|
|
2161
2263
|
style: {
|
|
@@ -2165,8 +2267,8 @@ function IconBox({
|
|
|
2165
2267
|
padding: "1rem 0"
|
|
2166
2268
|
},
|
|
2167
2269
|
children: [
|
|
2168
|
-
/* @__PURE__ */
|
|
2169
|
-
/* @__PURE__ */
|
|
2270
|
+
/* @__PURE__ */ jsx31("div", { style: { fontSize: 60 }, children: icon }),
|
|
2271
|
+
/* @__PURE__ */ jsx31(IconBoxContent, { children })
|
|
2170
2272
|
]
|
|
2171
2273
|
}
|
|
2172
2274
|
);
|
|
@@ -2177,11 +2279,11 @@ import { animated as animated7, useSpring as useSpring6 } from "@react-spring/we
|
|
|
2177
2279
|
import React14 from "react";
|
|
2178
2280
|
import { Stepper as Stepper3 } from "spectacle";
|
|
2179
2281
|
import styled17 from "styled-components";
|
|
2180
|
-
import { jsx as
|
|
2282
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
2181
2283
|
function ItemsColumn(divProps) {
|
|
2182
2284
|
const { style: style2, children, ...props } = divProps;
|
|
2183
2285
|
const childrenArray = React14.Children.toArray(children);
|
|
2184
|
-
return /* @__PURE__ */
|
|
2286
|
+
return /* @__PURE__ */ jsx32(Stepper3, { values: childrenArray, children: (_value, step) => /* @__PURE__ */ jsx32(
|
|
2185
2287
|
"div",
|
|
2186
2288
|
{
|
|
2187
2289
|
style: {
|
|
@@ -2199,7 +2301,7 @@ function ItemsColumn(divProps) {
|
|
|
2199
2301
|
if (!React14.isValidElement(child)) {
|
|
2200
2302
|
return child;
|
|
2201
2303
|
}
|
|
2202
|
-
return /* @__PURE__ */
|
|
2304
|
+
return /* @__PURE__ */ jsx32(ItemColumnWrapper, { isVisible, children: child }, index);
|
|
2203
2305
|
})
|
|
2204
2306
|
}
|
|
2205
2307
|
) });
|
|
@@ -2217,7 +2319,7 @@ function ItemColumnWrapper({
|
|
|
2217
2319
|
...props
|
|
2218
2320
|
}) {
|
|
2219
2321
|
const styles = useSpring6({ opacity: isVisible ? 1 : 0 });
|
|
2220
|
-
return /* @__PURE__ */
|
|
2322
|
+
return /* @__PURE__ */ jsx32(ItemColumnWrapperStyled, { style: styles, ...props, children });
|
|
2221
2323
|
}
|
|
2222
2324
|
|
|
2223
2325
|
// src/components/Timeline.tsx
|
|
@@ -2250,7 +2352,7 @@ var TimelineItemTitle = styled18.div`
|
|
|
2250
2352
|
`;
|
|
2251
2353
|
|
|
2252
2354
|
// src/components/Timeline.tsx
|
|
2253
|
-
import { jsx as
|
|
2355
|
+
import { jsx as jsx33, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
2254
2356
|
var TimelineItemStyled = styled19(animated8.div)`
|
|
2255
2357
|
flex: 1;
|
|
2256
2358
|
flex-flow: column nowrap;
|
|
@@ -2299,7 +2401,7 @@ function Timeline(props) {
|
|
|
2299
2401
|
const { activeIndex, ...rest } = props;
|
|
2300
2402
|
const children = React15.Children.toArray(rest.children);
|
|
2301
2403
|
if (activeIndex != null) {
|
|
2302
|
-
return /* @__PURE__ */
|
|
2404
|
+
return /* @__PURE__ */ jsx33("div", { ...rest, style: { ...style, ...rest.style }, children: children.map((child, index) => {
|
|
2303
2405
|
if (!React15.isValidElement(child)) {
|
|
2304
2406
|
return child;
|
|
2305
2407
|
}
|
|
@@ -2310,7 +2412,7 @@ function Timeline(props) {
|
|
|
2310
2412
|
});
|
|
2311
2413
|
}) });
|
|
2312
2414
|
}
|
|
2313
|
-
return /* @__PURE__ */
|
|
2415
|
+
return /* @__PURE__ */ jsx33(
|
|
2314
2416
|
Stepper4,
|
|
2315
2417
|
{
|
|
2316
2418
|
...rest,
|
|
@@ -2349,7 +2451,7 @@ function TimelineItem(props) {
|
|
|
2349
2451
|
opacity: getItemOpacity2({ isPhantom, isLast })
|
|
2350
2452
|
});
|
|
2351
2453
|
const colorStyles = useSpring7({ opacity: isPhantom || isLast ? 1 : 0.15 });
|
|
2352
|
-
return /* @__PURE__ */
|
|
2454
|
+
return /* @__PURE__ */ jsxs22(
|
|
2353
2455
|
TimelineItemStyled,
|
|
2354
2456
|
{
|
|
2355
2457
|
...rest,
|
|
@@ -2357,24 +2459,24 @@ function TimelineItem(props) {
|
|
|
2357
2459
|
...appearStyles
|
|
2358
2460
|
},
|
|
2359
2461
|
children: [
|
|
2360
|
-
/* @__PURE__ */
|
|
2361
|
-
/* @__PURE__ */
|
|
2362
|
-
/* @__PURE__ */
|
|
2462
|
+
/* @__PURE__ */ jsxs22(TimelineItemContentPhantom, { children: [
|
|
2463
|
+
/* @__PURE__ */ jsx33(TimelineItemTitle, { children: title }),
|
|
2464
|
+
/* @__PURE__ */ jsx33(TimelineItemBody, { children })
|
|
2363
2465
|
] }),
|
|
2364
|
-
/* @__PURE__ */
|
|
2365
|
-
/* @__PURE__ */
|
|
2366
|
-
/* @__PURE__ */
|
|
2466
|
+
/* @__PURE__ */ jsxs22(TimelineItemGuide, { style: colorStyles, children: [
|
|
2467
|
+
/* @__PURE__ */ jsx33(Hexagon, {}),
|
|
2468
|
+
/* @__PURE__ */ jsx33(TimelineItemGuideLine, { style: guideLineProps })
|
|
2367
2469
|
] }),
|
|
2368
|
-
/* @__PURE__ */
|
|
2369
|
-
/* @__PURE__ */
|
|
2370
|
-
/* @__PURE__ */
|
|
2470
|
+
/* @__PURE__ */ jsxs22(TimelineItemContent, { children: [
|
|
2471
|
+
/* @__PURE__ */ jsx33(TimelineItemTitle, { children: title }),
|
|
2472
|
+
/* @__PURE__ */ jsx33(TimelineItemBody, { children })
|
|
2371
2473
|
] })
|
|
2372
2474
|
]
|
|
2373
2475
|
}
|
|
2374
2476
|
);
|
|
2375
2477
|
}
|
|
2376
2478
|
function Hexagon() {
|
|
2377
|
-
return /* @__PURE__ */
|
|
2479
|
+
return /* @__PURE__ */ jsxs22(
|
|
2378
2480
|
"svg",
|
|
2379
2481
|
{
|
|
2380
2482
|
width: "18",
|
|
@@ -2383,14 +2485,14 @@ function Hexagon() {
|
|
|
2383
2485
|
fill: "none",
|
|
2384
2486
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2385
2487
|
children: [
|
|
2386
|
-
/* @__PURE__ */
|
|
2488
|
+
/* @__PURE__ */ jsx33(
|
|
2387
2489
|
"path",
|
|
2388
2490
|
{
|
|
2389
2491
|
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",
|
|
2390
2492
|
fill: "#F49676"
|
|
2391
2493
|
}
|
|
2392
2494
|
),
|
|
2393
|
-
/* @__PURE__ */
|
|
2495
|
+
/* @__PURE__ */ jsx33(
|
|
2394
2496
|
"path",
|
|
2395
2497
|
{
|
|
2396
2498
|
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",
|
|
@@ -2403,9 +2505,9 @@ function Hexagon() {
|
|
|
2403
2505
|
}
|
|
2404
2506
|
|
|
2405
2507
|
// src/index.tsx
|
|
2406
|
-
import { Fragment as Fragment3, jsx as
|
|
2508
|
+
import { Fragment as Fragment3, jsx as jsx34, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
2407
2509
|
function PassThrough({ children }) {
|
|
2408
|
-
return /* @__PURE__ */
|
|
2510
|
+
return /* @__PURE__ */ jsx34(Fragment3, { children });
|
|
2409
2511
|
}
|
|
2410
2512
|
var layouts = layouts_default;
|
|
2411
2513
|
var componentsMap2 = {
|
|
@@ -2441,22 +2543,23 @@ function Deck({
|
|
|
2441
2543
|
}
|
|
2442
2544
|
`;
|
|
2443
2545
|
}, [theme, mergedTheme]);
|
|
2444
|
-
return /* @__PURE__ */
|
|
2445
|
-
/* @__PURE__ */
|
|
2446
|
-
/* @__PURE__ */
|
|
2546
|
+
return /* @__PURE__ */ jsx34(React16.StrictMode, { children: /* @__PURE__ */ jsx34(PestacleProvider, { layouts: layouts2, children: /* @__PURE__ */ jsxs23(MDXProvider, { components: componentsMap2, children: [
|
|
2547
|
+
/* @__PURE__ */ jsx34(GlobalStyle, {}),
|
|
2548
|
+
/* @__PURE__ */ jsxs23(
|
|
2447
2549
|
SpectacleDeck,
|
|
2448
2550
|
{
|
|
2449
2551
|
theme: mergedTheme,
|
|
2450
2552
|
template,
|
|
2451
2553
|
transition: resolveTransition(transition),
|
|
2452
2554
|
children: [
|
|
2453
|
-
/* @__PURE__ */
|
|
2555
|
+
/* @__PURE__ */ jsx34(SkipStepsShortcut, {}),
|
|
2556
|
+
/* @__PURE__ */ jsx34(RemoteControllerShortcut, {}),
|
|
2454
2557
|
deck.slides.map((slide, i) => {
|
|
2455
2558
|
var _a;
|
|
2456
2559
|
const Component = slide.slideComponent;
|
|
2457
2560
|
const slideTransitionName = (_a = slide.metadata) == null ? void 0 : _a.transition;
|
|
2458
2561
|
const slideTransition2 = resolveTransition(slideTransitionName);
|
|
2459
|
-
return /* @__PURE__ */
|
|
2562
|
+
return /* @__PURE__ */ jsx34(Slide, { transition: slideTransition2, children: /* @__PURE__ */ jsx34(Component, {}) }, i);
|
|
2460
2563
|
})
|
|
2461
2564
|
]
|
|
2462
2565
|
}
|
|
@@ -2464,30 +2567,35 @@ function Deck({
|
|
|
2464
2567
|
] }) }) });
|
|
2465
2568
|
}
|
|
2466
2569
|
function Danger({ children }) {
|
|
2467
|
-
return /* @__PURE__ */
|
|
2570
|
+
return /* @__PURE__ */ jsx34("div", { style: { color: "red" }, children });
|
|
2468
2571
|
}
|
|
2469
2572
|
function Information({ children }) {
|
|
2470
|
-
return /* @__PURE__ */
|
|
2573
|
+
return /* @__PURE__ */ jsx34("div", { style: { color: "orange" }, children });
|
|
2471
2574
|
}
|
|
2472
2575
|
function Success({ children }) {
|
|
2473
|
-
return /* @__PURE__ */
|
|
2576
|
+
return /* @__PURE__ */ jsx34("div", { style: { color: "green" }, children });
|
|
2474
2577
|
}
|
|
2475
2578
|
function Warning({ children }) {
|
|
2476
|
-
return /* @__PURE__ */
|
|
2579
|
+
return /* @__PURE__ */ jsx34("div", { style: { color: "yellow" }, children });
|
|
2477
2580
|
}
|
|
2478
2581
|
function Side({ children }) {
|
|
2479
|
-
return /* @__PURE__ */
|
|
2582
|
+
return /* @__PURE__ */ jsx34("div", { children });
|
|
2480
2583
|
}
|
|
2481
2584
|
Side.mdxType = "Side";
|
|
2585
|
+
function Column({ children }) {
|
|
2586
|
+
return /* @__PURE__ */ jsx34("div", { children });
|
|
2587
|
+
}
|
|
2588
|
+
Column.mdxType = "Column";
|
|
2482
2589
|
function Documentation({ children }) {
|
|
2483
|
-
return /* @__PURE__ */
|
|
2590
|
+
return /* @__PURE__ */ jsx34("div", { children });
|
|
2484
2591
|
}
|
|
2485
2592
|
function Box2({ children }) {
|
|
2486
|
-
return /* @__PURE__ */
|
|
2593
|
+
return /* @__PURE__ */ jsx34("div", { children });
|
|
2487
2594
|
}
|
|
2488
2595
|
export {
|
|
2489
2596
|
AnimatedCounter,
|
|
2490
2597
|
Box2 as Box,
|
|
2598
|
+
Column,
|
|
2491
2599
|
Danger,
|
|
2492
2600
|
Deck,
|
|
2493
2601
|
Doc,
|