@gpichot/spectacle-deck 1.10.1 → 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/index.cjs +148 -88
- package/index.d.ts +7 -0
- package/index.mjs +148 -88
- 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,
|
|
@@ -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,7 +1609,8 @@ 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
1616
|
// src/SkipStepsShortcut.tsx
|
|
@@ -1588,7 +1644,7 @@ function SkipStepsShortcut() {
|
|
|
1588
1644
|
}
|
|
1589
1645
|
|
|
1590
1646
|
// src/SlideWrapper.tsx
|
|
1591
|
-
var
|
|
1647
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
1592
1648
|
function SlideWrapper({
|
|
1593
1649
|
children,
|
|
1594
1650
|
frontmatter
|
|
@@ -1602,22 +1658,22 @@ function SlideWrapper({
|
|
|
1602
1658
|
);
|
|
1603
1659
|
}
|
|
1604
1660
|
if (Layout) {
|
|
1605
|
-
return /* @__PURE__ */ (0,
|
|
1661
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Layout, { ...frontmatter, children });
|
|
1606
1662
|
}
|
|
1607
|
-
return /* @__PURE__ */ (0,
|
|
1663
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_jsx_runtime19.Fragment, { children });
|
|
1608
1664
|
}
|
|
1609
1665
|
|
|
1610
1666
|
// src/template.tsx
|
|
1611
1667
|
var import_spectacle7 = require("spectacle");
|
|
1612
|
-
var
|
|
1668
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
1613
1669
|
var template = ({
|
|
1614
1670
|
slideNumber,
|
|
1615
1671
|
numberOfSlides
|
|
1616
1672
|
}) => {
|
|
1617
1673
|
const percentage = slideNumber / numberOfSlides * 100;
|
|
1618
|
-
return /* @__PURE__ */ (0,
|
|
1619
|
-
/* @__PURE__ */ (0,
|
|
1620
|
-
/* @__PURE__ */ (0,
|
|
1674
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { style: { position: "absolute", bottom: 0, left: 0, right: 0 }, children: [
|
|
1675
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_spectacle7.Box, { padding: "0 0 0.5em 0.7em", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_spectacle7.FullScreen, {}) }),
|
|
1676
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { style: { width: "100%", height: "4px", background: "#ffffff11" }, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1621
1677
|
"div",
|
|
1622
1678
|
{
|
|
1623
1679
|
style: {
|
|
@@ -1712,7 +1768,7 @@ function useInView() {
|
|
|
1712
1768
|
}
|
|
1713
1769
|
|
|
1714
1770
|
// src/components/animations/AnimatedCounter.tsx
|
|
1715
|
-
var
|
|
1771
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
1716
1772
|
function AnimatedCounter({
|
|
1717
1773
|
to,
|
|
1718
1774
|
from = 0,
|
|
@@ -1728,12 +1784,12 @@ function AnimatedCounter({
|
|
|
1728
1784
|
delay: isInView ? delay : 0,
|
|
1729
1785
|
config: { duration }
|
|
1730
1786
|
});
|
|
1731
|
-
return /* @__PURE__ */ (0,
|
|
1787
|
+
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
1788
|
}
|
|
1733
1789
|
|
|
1734
1790
|
// src/components/animations/FadeIn.tsx
|
|
1735
1791
|
var import_web2 = require("@react-spring/web");
|
|
1736
|
-
var
|
|
1792
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
1737
1793
|
function FadeIn({
|
|
1738
1794
|
children,
|
|
1739
1795
|
direction = "up",
|
|
@@ -1755,12 +1811,12 @@ function FadeIn({
|
|
|
1755
1811
|
delay: isInView ? delay : 0,
|
|
1756
1812
|
config: { duration }
|
|
1757
1813
|
});
|
|
1758
|
-
return /* @__PURE__ */ (0,
|
|
1814
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_web2.animated.div, { ref, style: styles, children });
|
|
1759
1815
|
}
|
|
1760
1816
|
|
|
1761
1817
|
// src/components/animations/ProgressRing.tsx
|
|
1762
1818
|
var import_web3 = require("@react-spring/web");
|
|
1763
|
-
var
|
|
1819
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
1764
1820
|
function ProgressRing({
|
|
1765
1821
|
value,
|
|
1766
1822
|
size = 120,
|
|
@@ -1780,7 +1836,7 @@ function ProgressRing({
|
|
|
1780
1836
|
delay: isInView ? delay : 0,
|
|
1781
1837
|
config: { duration }
|
|
1782
1838
|
});
|
|
1783
|
-
return /* @__PURE__ */ (0,
|
|
1839
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
1784
1840
|
"div",
|
|
1785
1841
|
{
|
|
1786
1842
|
ref,
|
|
@@ -1793,14 +1849,14 @@ function ProgressRing({
|
|
|
1793
1849
|
justifyContent: "center"
|
|
1794
1850
|
},
|
|
1795
1851
|
children: [
|
|
1796
|
-
/* @__PURE__ */ (0,
|
|
1852
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
1797
1853
|
"svg",
|
|
1798
1854
|
{
|
|
1799
1855
|
width: size,
|
|
1800
1856
|
height: size,
|
|
1801
1857
|
style: { position: "absolute", transform: "rotate(-90deg)" },
|
|
1802
1858
|
children: [
|
|
1803
|
-
/* @__PURE__ */ (0,
|
|
1859
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1804
1860
|
"circle",
|
|
1805
1861
|
{
|
|
1806
1862
|
cx: size / 2,
|
|
@@ -1811,7 +1867,7 @@ function ProgressRing({
|
|
|
1811
1867
|
strokeWidth
|
|
1812
1868
|
}
|
|
1813
1869
|
),
|
|
1814
|
-
/* @__PURE__ */ (0,
|
|
1870
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1815
1871
|
import_web3.animated.circle,
|
|
1816
1872
|
{
|
|
1817
1873
|
cx: size / 2,
|
|
@@ -1828,7 +1884,7 @@ function ProgressRing({
|
|
|
1828
1884
|
]
|
|
1829
1885
|
}
|
|
1830
1886
|
),
|
|
1831
|
-
children && /* @__PURE__ */ (0,
|
|
1887
|
+
children && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1832
1888
|
"div",
|
|
1833
1889
|
{
|
|
1834
1890
|
style: {
|
|
@@ -1846,7 +1902,7 @@ function ProgressRing({
|
|
|
1846
1902
|
|
|
1847
1903
|
// src/components/animations/ScaleIn.tsx
|
|
1848
1904
|
var import_web4 = require("@react-spring/web");
|
|
1849
|
-
var
|
|
1905
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
1850
1906
|
function ScaleIn({
|
|
1851
1907
|
children,
|
|
1852
1908
|
from = 0,
|
|
@@ -1860,12 +1916,12 @@ function ScaleIn({
|
|
|
1860
1916
|
delay: isInView ? delay : 0,
|
|
1861
1917
|
config: { duration }
|
|
1862
1918
|
});
|
|
1863
|
-
return /* @__PURE__ */ (0,
|
|
1919
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_web4.animated.div, { ref, style: styles, children });
|
|
1864
1920
|
}
|
|
1865
1921
|
|
|
1866
1922
|
// src/components/animations/Spotlight.tsx
|
|
1867
1923
|
var import_styled_components13 = __toESM(require("styled-components"));
|
|
1868
|
-
var
|
|
1924
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
1869
1925
|
var Overlay2 = import_styled_components13.default.div`
|
|
1870
1926
|
position: fixed;
|
|
1871
1927
|
inset: 0;
|
|
@@ -1883,16 +1939,16 @@ function Spotlight({
|
|
|
1883
1939
|
active = true,
|
|
1884
1940
|
dimOpacity = 0.7
|
|
1885
1941
|
}) {
|
|
1886
|
-
return /* @__PURE__ */ (0,
|
|
1887
|
-
/* @__PURE__ */ (0,
|
|
1888
|
-
/* @__PURE__ */ (0,
|
|
1942
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_jsx_runtime25.Fragment, { children: [
|
|
1943
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Overlay2, { $active: active, $dimOpacity: dimOpacity }),
|
|
1944
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Content, { $active: active, children })
|
|
1889
1945
|
] });
|
|
1890
1946
|
}
|
|
1891
1947
|
|
|
1892
1948
|
// src/components/animations/StaggerChildren.tsx
|
|
1893
1949
|
var import_web5 = require("@react-spring/web");
|
|
1894
1950
|
var import_react11 = __toESM(require("react"));
|
|
1895
|
-
var
|
|
1951
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
1896
1952
|
function StaggerChildren({
|
|
1897
1953
|
children,
|
|
1898
1954
|
stagger = 100,
|
|
@@ -1919,12 +1975,12 @@ function StaggerChildren({
|
|
|
1919
1975
|
config: { duration }
|
|
1920
1976
|
}))
|
|
1921
1977
|
);
|
|
1922
|
-
return /* @__PURE__ */ (0,
|
|
1978
|
+
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
1979
|
}
|
|
1924
1980
|
|
|
1925
1981
|
// src/components/animations/TypeWriter.tsx
|
|
1926
1982
|
var import_react12 = __toESM(require("react"));
|
|
1927
|
-
var
|
|
1983
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
1928
1984
|
function extractText(node) {
|
|
1929
1985
|
if (typeof node === "string") return node;
|
|
1930
1986
|
if (typeof node === "number") return String(node);
|
|
@@ -1965,9 +2021,9 @@ function TypeWriter({
|
|
|
1965
2021
|
}, delay);
|
|
1966
2022
|
return () => clearTimeout(timeout);
|
|
1967
2023
|
}, [text, speed, delay, isInView]);
|
|
1968
|
-
return /* @__PURE__ */ (0,
|
|
2024
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("span", { ref, style: { fontFamily: "var(--font-family)" }, children: [
|
|
1969
2025
|
displayed,
|
|
1970
|
-
cursor && /* @__PURE__ */ (0,
|
|
2026
|
+
cursor && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1971
2027
|
"span",
|
|
1972
2028
|
{
|
|
1973
2029
|
style: {
|
|
@@ -1975,7 +2031,7 @@ function TypeWriter({
|
|
|
1975
2031
|
marginLeft: 1,
|
|
1976
2032
|
animation: done ? "pestacle-blink 1s step-end infinite" : "none"
|
|
1977
2033
|
},
|
|
1978
|
-
children: /* @__PURE__ */ (0,
|
|
2034
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("style", { children: `@keyframes pestacle-blink { 50% { opacity: 0; } }` })
|
|
1979
2035
|
}
|
|
1980
2036
|
)
|
|
1981
2037
|
] });
|
|
@@ -1983,7 +2039,7 @@ function TypeWriter({
|
|
|
1983
2039
|
|
|
1984
2040
|
// src/components/DocumentationItem.tsx
|
|
1985
2041
|
var import_styled_components14 = __toESM(require("styled-components"));
|
|
1986
|
-
var
|
|
2042
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
1987
2043
|
var DocWrapper = import_styled_components14.default.div`
|
|
1988
2044
|
position: absolute;
|
|
1989
2045
|
bottom: 0;
|
|
@@ -2035,18 +2091,18 @@ function Doc({
|
|
|
2035
2091
|
link,
|
|
2036
2092
|
children
|
|
2037
2093
|
}) {
|
|
2038
|
-
return /* @__PURE__ */ (0,
|
|
2039
|
-
children && /* @__PURE__ */ (0,
|
|
2040
|
-
/* @__PURE__ */ (0,
|
|
2094
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(DocWrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(DocContainer, { children: [
|
|
2095
|
+
children && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(DocContent, { children }),
|
|
2096
|
+
/* @__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
2097
|
] }) });
|
|
2042
2098
|
}
|
|
2043
2099
|
function DocItem({ label, link }) {
|
|
2044
|
-
return /* @__PURE__ */ (0,
|
|
2100
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(DocLinkItem, { target: "_blank", rel: "noopener noreferrer", href: link, children: label });
|
|
2045
2101
|
}
|
|
2046
2102
|
|
|
2047
2103
|
// src/components/FilePane.tsx
|
|
2048
2104
|
var import_react13 = __toESM(require("react"));
|
|
2049
|
-
var
|
|
2105
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
2050
2106
|
function FilePane({
|
|
2051
2107
|
name,
|
|
2052
2108
|
children,
|
|
@@ -2060,7 +2116,7 @@ function FilePane({
|
|
|
2060
2116
|
name
|
|
2061
2117
|
}) : children;
|
|
2062
2118
|
if (minWidth) {
|
|
2063
|
-
return /* @__PURE__ */ (0,
|
|
2119
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { ...divProps, style: { minWidth, ...divProps.style }, children: content });
|
|
2064
2120
|
}
|
|
2065
2121
|
return content;
|
|
2066
2122
|
}
|
|
@@ -2071,7 +2127,7 @@ var import_web6 = require("@react-spring/web");
|
|
|
2071
2127
|
var import_react14 = __toESM(require("react"));
|
|
2072
2128
|
var import_spectacle9 = require("spectacle");
|
|
2073
2129
|
var import_styled_components15 = __toESM(require("styled-components"));
|
|
2074
|
-
var
|
|
2130
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
2075
2131
|
var Container = import_styled_components15.default.div`
|
|
2076
2132
|
display: grid;
|
|
2077
2133
|
grid-gap: 2rem;
|
|
@@ -2081,7 +2137,7 @@ function HorizontalList({
|
|
|
2081
2137
|
columns = 3
|
|
2082
2138
|
}) {
|
|
2083
2139
|
const items = import_react14.default.Children.toArray(children);
|
|
2084
|
-
return /* @__PURE__ */ (0,
|
|
2140
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_spectacle9.Stepper, { values: items, children: (_, step) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2085
2141
|
Container,
|
|
2086
2142
|
{
|
|
2087
2143
|
style: {
|
|
@@ -2102,11 +2158,11 @@ function HorizontalList({
|
|
|
2102
2158
|
) });
|
|
2103
2159
|
}
|
|
2104
2160
|
function Pill({ position }) {
|
|
2105
|
-
return /* @__PURE__ */ (0,
|
|
2161
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2106
2162
|
"div",
|
|
2107
2163
|
{
|
|
2108
2164
|
style: { width: 48, transform: "translate(-25%, -25%)", opacity: 0.9 },
|
|
2109
|
-
children: /* @__PURE__ */ (0,
|
|
2165
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
|
2110
2166
|
"svg",
|
|
2111
2167
|
{
|
|
2112
2168
|
width: "48",
|
|
@@ -2115,14 +2171,14 @@ function Pill({ position }) {
|
|
|
2115
2171
|
fill: "none",
|
|
2116
2172
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2117
2173
|
children: [
|
|
2118
|
-
/* @__PURE__ */ (0,
|
|
2174
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2119
2175
|
"path",
|
|
2120
2176
|
{
|
|
2121
2177
|
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
2178
|
fill: "#ffffff"
|
|
2123
2179
|
}
|
|
2124
2180
|
),
|
|
2125
|
-
/* @__PURE__ */ (0,
|
|
2181
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2126
2182
|
"text",
|
|
2127
2183
|
{
|
|
2128
2184
|
x: "9",
|
|
@@ -2134,7 +2190,7 @@ function Pill({ position }) {
|
|
|
2134
2190
|
children: position
|
|
2135
2191
|
}
|
|
2136
2192
|
),
|
|
2137
|
-
/* @__PURE__ */ (0,
|
|
2193
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2138
2194
|
"path",
|
|
2139
2195
|
{
|
|
2140
2196
|
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 +2244,18 @@ function HorizontalListItem({
|
|
|
2188
2244
|
const opacityStyles = (0, import_web6.useSpring)({
|
|
2189
2245
|
opacity: getItemOpacity({ isVisible, isLast })
|
|
2190
2246
|
});
|
|
2191
|
-
return /* @__PURE__ */ (0,
|
|
2192
|
-
/* @__PURE__ */ (0,
|
|
2193
|
-
/* @__PURE__ */ (0,
|
|
2194
|
-
/* @__PURE__ */ (0,
|
|
2247
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(Item, { style: opacityStyles, children: [
|
|
2248
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(ItemHead, { children: [
|
|
2249
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Pill, { position }),
|
|
2250
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { children: title })
|
|
2195
2251
|
] }),
|
|
2196
|
-
/* @__PURE__ */ (0,
|
|
2252
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(ItemContent, { children })
|
|
2197
2253
|
] });
|
|
2198
2254
|
}
|
|
2199
2255
|
|
|
2200
2256
|
// src/components/IconBox.tsx
|
|
2201
2257
|
var import_styled_components16 = __toESM(require("styled-components"));
|
|
2202
|
-
var
|
|
2258
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
2203
2259
|
var IconBoxContent = import_styled_components16.default.div`
|
|
2204
2260
|
* {
|
|
2205
2261
|
margin: 0.2rem !important;
|
|
@@ -2210,7 +2266,7 @@ function IconBox({
|
|
|
2210
2266
|
children,
|
|
2211
2267
|
icon
|
|
2212
2268
|
}) {
|
|
2213
|
-
return /* @__PURE__ */ (0,
|
|
2269
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
|
|
2214
2270
|
"div",
|
|
2215
2271
|
{
|
|
2216
2272
|
style: {
|
|
@@ -2220,8 +2276,8 @@ function IconBox({
|
|
|
2220
2276
|
padding: "1rem 0"
|
|
2221
2277
|
},
|
|
2222
2278
|
children: [
|
|
2223
|
-
/* @__PURE__ */ (0,
|
|
2224
|
-
/* @__PURE__ */ (0,
|
|
2279
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { style: { fontSize: 60 }, children: icon }),
|
|
2280
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(IconBoxContent, { children })
|
|
2225
2281
|
]
|
|
2226
2282
|
}
|
|
2227
2283
|
);
|
|
@@ -2232,11 +2288,11 @@ var import_web7 = require("@react-spring/web");
|
|
|
2232
2288
|
var import_react15 = __toESM(require("react"));
|
|
2233
2289
|
var import_spectacle10 = require("spectacle");
|
|
2234
2290
|
var import_styled_components17 = __toESM(require("styled-components"));
|
|
2235
|
-
var
|
|
2291
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
2236
2292
|
function ItemsColumn(divProps) {
|
|
2237
2293
|
const { style: style2, children, ...props } = divProps;
|
|
2238
2294
|
const childrenArray = import_react15.default.Children.toArray(children);
|
|
2239
|
-
return /* @__PURE__ */ (0,
|
|
2295
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_spectacle10.Stepper, { values: childrenArray, children: (_value, step) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2240
2296
|
"div",
|
|
2241
2297
|
{
|
|
2242
2298
|
style: {
|
|
@@ -2254,7 +2310,7 @@ function ItemsColumn(divProps) {
|
|
|
2254
2310
|
if (!import_react15.default.isValidElement(child)) {
|
|
2255
2311
|
return child;
|
|
2256
2312
|
}
|
|
2257
|
-
return /* @__PURE__ */ (0,
|
|
2313
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(ItemColumnWrapper, { isVisible, children: child }, index);
|
|
2258
2314
|
})
|
|
2259
2315
|
}
|
|
2260
2316
|
) });
|
|
@@ -2272,7 +2328,7 @@ function ItemColumnWrapper({
|
|
|
2272
2328
|
...props
|
|
2273
2329
|
}) {
|
|
2274
2330
|
const styles = (0, import_web7.useSpring)({ opacity: isVisible ? 1 : 0 });
|
|
2275
|
-
return /* @__PURE__ */ (0,
|
|
2331
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(ItemColumnWrapperStyled, { style: styles, ...props, children });
|
|
2276
2332
|
}
|
|
2277
2333
|
|
|
2278
2334
|
// src/components/Timeline.tsx
|
|
@@ -2305,7 +2361,7 @@ var TimelineItemTitle = import_styled_components18.default.div`
|
|
|
2305
2361
|
`;
|
|
2306
2362
|
|
|
2307
2363
|
// src/components/Timeline.tsx
|
|
2308
|
-
var
|
|
2364
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
2309
2365
|
var TimelineItemStyled = (0, import_styled_components19.default)(import_web8.animated.div)`
|
|
2310
2366
|
flex: 1;
|
|
2311
2367
|
flex-flow: column nowrap;
|
|
@@ -2354,7 +2410,7 @@ function Timeline(props) {
|
|
|
2354
2410
|
const { activeIndex, ...rest } = props;
|
|
2355
2411
|
const children = import_react16.default.Children.toArray(rest.children);
|
|
2356
2412
|
if (activeIndex != null) {
|
|
2357
|
-
return /* @__PURE__ */ (0,
|
|
2413
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { ...rest, style: { ...style, ...rest.style }, children: children.map((child, index) => {
|
|
2358
2414
|
if (!import_react16.default.isValidElement(child)) {
|
|
2359
2415
|
return child;
|
|
2360
2416
|
}
|
|
@@ -2365,7 +2421,7 @@ function Timeline(props) {
|
|
|
2365
2421
|
});
|
|
2366
2422
|
}) });
|
|
2367
2423
|
}
|
|
2368
|
-
return /* @__PURE__ */ (0,
|
|
2424
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2369
2425
|
import_spectacle11.Stepper,
|
|
2370
2426
|
{
|
|
2371
2427
|
...rest,
|
|
@@ -2404,7 +2460,7 @@ function TimelineItem(props) {
|
|
|
2404
2460
|
opacity: getItemOpacity2({ isPhantom, isLast })
|
|
2405
2461
|
});
|
|
2406
2462
|
const colorStyles = (0, import_web8.useSpring)({ opacity: isPhantom || isLast ? 1 : 0.15 });
|
|
2407
|
-
return /* @__PURE__ */ (0,
|
|
2463
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
|
|
2408
2464
|
TimelineItemStyled,
|
|
2409
2465
|
{
|
|
2410
2466
|
...rest,
|
|
@@ -2412,24 +2468,24 @@ function TimelineItem(props) {
|
|
|
2412
2468
|
...appearStyles
|
|
2413
2469
|
},
|
|
2414
2470
|
children: [
|
|
2415
|
-
/* @__PURE__ */ (0,
|
|
2416
|
-
/* @__PURE__ */ (0,
|
|
2417
|
-
/* @__PURE__ */ (0,
|
|
2471
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(TimelineItemContentPhantom, { children: [
|
|
2472
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(TimelineItemTitle, { children: title }),
|
|
2473
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(TimelineItemBody, { children })
|
|
2418
2474
|
] }),
|
|
2419
|
-
/* @__PURE__ */ (0,
|
|
2420
|
-
/* @__PURE__ */ (0,
|
|
2421
|
-
/* @__PURE__ */ (0,
|
|
2475
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(TimelineItemGuide, { style: colorStyles, children: [
|
|
2476
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Hexagon, {}),
|
|
2477
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(TimelineItemGuideLine, { style: guideLineProps })
|
|
2422
2478
|
] }),
|
|
2423
|
-
/* @__PURE__ */ (0,
|
|
2424
|
-
/* @__PURE__ */ (0,
|
|
2425
|
-
/* @__PURE__ */ (0,
|
|
2479
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(TimelineItemContent, { children: [
|
|
2480
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(TimelineItemTitle, { children: title }),
|
|
2481
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(TimelineItemBody, { children })
|
|
2426
2482
|
] })
|
|
2427
2483
|
]
|
|
2428
2484
|
}
|
|
2429
2485
|
);
|
|
2430
2486
|
}
|
|
2431
2487
|
function Hexagon() {
|
|
2432
|
-
return /* @__PURE__ */ (0,
|
|
2488
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
|
|
2433
2489
|
"svg",
|
|
2434
2490
|
{
|
|
2435
2491
|
width: "18",
|
|
@@ -2438,14 +2494,14 @@ function Hexagon() {
|
|
|
2438
2494
|
fill: "none",
|
|
2439
2495
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2440
2496
|
children: [
|
|
2441
|
-
/* @__PURE__ */ (0,
|
|
2497
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2442
2498
|
"path",
|
|
2443
2499
|
{
|
|
2444
2500
|
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
2501
|
fill: "#F49676"
|
|
2446
2502
|
}
|
|
2447
2503
|
),
|
|
2448
|
-
/* @__PURE__ */ (0,
|
|
2504
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2449
2505
|
"path",
|
|
2450
2506
|
{
|
|
2451
2507
|
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 +2514,9 @@ function Hexagon() {
|
|
|
2458
2514
|
}
|
|
2459
2515
|
|
|
2460
2516
|
// src/index.tsx
|
|
2461
|
-
var
|
|
2517
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
2462
2518
|
function PassThrough({ children }) {
|
|
2463
|
-
return /* @__PURE__ */ (0,
|
|
2519
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_jsx_runtime34.Fragment, { children });
|
|
2464
2520
|
}
|
|
2465
2521
|
var layouts = layouts_default;
|
|
2466
2522
|
var componentsMap2 = {
|
|
@@ -2496,22 +2552,22 @@ function Deck({
|
|
|
2496
2552
|
}
|
|
2497
2553
|
`;
|
|
2498
2554
|
}, [theme, mergedTheme]);
|
|
2499
|
-
return /* @__PURE__ */ (0,
|
|
2500
|
-
/* @__PURE__ */ (0,
|
|
2501
|
-
/* @__PURE__ */ (0,
|
|
2555
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_react18.default.StrictMode, { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(PestacleProvider, { layouts: layouts2, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_react17.MDXProvider, { components: componentsMap2, children: [
|
|
2556
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(GlobalStyle, {}),
|
|
2557
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
2502
2558
|
import_spectacle12.Deck,
|
|
2503
2559
|
{
|
|
2504
2560
|
theme: mergedTheme,
|
|
2505
2561
|
template,
|
|
2506
2562
|
transition: resolveTransition(transition),
|
|
2507
2563
|
children: [
|
|
2508
|
-
/* @__PURE__ */ (0,
|
|
2564
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SkipStepsShortcut, {}),
|
|
2509
2565
|
deck.slides.map((slide, i) => {
|
|
2510
2566
|
var _a;
|
|
2511
2567
|
const Component = slide.slideComponent;
|
|
2512
2568
|
const slideTransitionName = (_a = slide.metadata) == null ? void 0 : _a.transition;
|
|
2513
2569
|
const slideTransition2 = resolveTransition(slideTransitionName);
|
|
2514
|
-
return /* @__PURE__ */ (0,
|
|
2570
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_spectacle12.Slide, { transition: slideTransition2, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Component, {}) }, i);
|
|
2515
2571
|
})
|
|
2516
2572
|
]
|
|
2517
2573
|
}
|
|
@@ -2519,26 +2575,30 @@ function Deck({
|
|
|
2519
2575
|
] }) }) });
|
|
2520
2576
|
}
|
|
2521
2577
|
function Danger({ children }) {
|
|
2522
|
-
return /* @__PURE__ */ (0,
|
|
2578
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { style: { color: "red" }, children });
|
|
2523
2579
|
}
|
|
2524
2580
|
function Information({ children }) {
|
|
2525
|
-
return /* @__PURE__ */ (0,
|
|
2581
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { style: { color: "orange" }, children });
|
|
2526
2582
|
}
|
|
2527
2583
|
function Success({ children }) {
|
|
2528
|
-
return /* @__PURE__ */ (0,
|
|
2584
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { style: { color: "green" }, children });
|
|
2529
2585
|
}
|
|
2530
2586
|
function Warning({ children }) {
|
|
2531
|
-
return /* @__PURE__ */ (0,
|
|
2587
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { style: { color: "yellow" }, children });
|
|
2532
2588
|
}
|
|
2533
2589
|
function Side({ children }) {
|
|
2534
|
-
return /* @__PURE__ */ (0,
|
|
2590
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { children });
|
|
2535
2591
|
}
|
|
2536
2592
|
Side.mdxType = "Side";
|
|
2593
|
+
function Column({ children }) {
|
|
2594
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { children });
|
|
2595
|
+
}
|
|
2596
|
+
Column.mdxType = "Column";
|
|
2537
2597
|
function Documentation({ children }) {
|
|
2538
|
-
return /* @__PURE__ */ (0,
|
|
2598
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { children });
|
|
2539
2599
|
}
|
|
2540
2600
|
function Box2({ children }) {
|
|
2541
|
-
return /* @__PURE__ */ (0,
|
|
2601
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { children });
|
|
2542
2602
|
}
|
|
2543
2603
|
|
|
2544
2604
|
// <stdin>
|
package/index.d.ts
CHANGED
|
@@ -46,6 +46,7 @@ export declare const layouts: {
|
|
|
46
46
|
section: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
47
47
|
fullImage: typeof import("./layouts/FullImageLayout").FullImageLayout;
|
|
48
48
|
bigNumber: typeof import("./layouts/BigNumberLayout").BigNumberLayout;
|
|
49
|
+
twoColumn: typeof import("./layouts/TwoColumnLayout").TwoColumnLayout;
|
|
49
50
|
};
|
|
50
51
|
interface ThemeOptions {
|
|
51
52
|
themeTokens: {
|
|
@@ -81,6 +82,12 @@ export declare function Side({ children }: {
|
|
|
81
82
|
export declare namespace Side {
|
|
82
83
|
var mdxType: string;
|
|
83
84
|
}
|
|
85
|
+
export declare function Column({ children }: {
|
|
86
|
+
children: React.ReactNode;
|
|
87
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
88
|
+
export declare namespace Column {
|
|
89
|
+
var mdxType: string;
|
|
90
|
+
}
|
|
84
91
|
export declare function Documentation({ children }: {
|
|
85
92
|
children: React.ReactNode;
|
|
86
93
|
}): import("react/jsx-runtime").JSX.Element;
|
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,7 +1550,8 @@ 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
1557
|
// src/SkipStepsShortcut.tsx
|
|
@@ -1530,7 +1585,7 @@ function SkipStepsShortcut() {
|
|
|
1530
1585
|
}
|
|
1531
1586
|
|
|
1532
1587
|
// src/SlideWrapper.tsx
|
|
1533
|
-
import { Fragment, jsx as
|
|
1588
|
+
import { Fragment, jsx as jsx19 } from "react/jsx-runtime";
|
|
1534
1589
|
function SlideWrapper({
|
|
1535
1590
|
children,
|
|
1536
1591
|
frontmatter
|
|
@@ -1544,22 +1599,22 @@ function SlideWrapper({
|
|
|
1544
1599
|
);
|
|
1545
1600
|
}
|
|
1546
1601
|
if (Layout) {
|
|
1547
|
-
return /* @__PURE__ */
|
|
1602
|
+
return /* @__PURE__ */ jsx19(Layout, { ...frontmatter, children });
|
|
1548
1603
|
}
|
|
1549
|
-
return /* @__PURE__ */
|
|
1604
|
+
return /* @__PURE__ */ jsx19(Fragment, { children });
|
|
1550
1605
|
}
|
|
1551
1606
|
|
|
1552
1607
|
// src/template.tsx
|
|
1553
1608
|
import { Box, FullScreen } from "spectacle";
|
|
1554
|
-
import { jsx as
|
|
1609
|
+
import { jsx as jsx20, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
1555
1610
|
var template = ({
|
|
1556
1611
|
slideNumber,
|
|
1557
1612
|
numberOfSlides
|
|
1558
1613
|
}) => {
|
|
1559
1614
|
const percentage = slideNumber / numberOfSlides * 100;
|
|
1560
|
-
return /* @__PURE__ */
|
|
1561
|
-
/* @__PURE__ */
|
|
1562
|
-
/* @__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(
|
|
1563
1618
|
"div",
|
|
1564
1619
|
{
|
|
1565
1620
|
style: {
|
|
@@ -1657,7 +1712,7 @@ function useInView() {
|
|
|
1657
1712
|
}
|
|
1658
1713
|
|
|
1659
1714
|
// src/components/animations/AnimatedCounter.tsx
|
|
1660
|
-
import { jsx as
|
|
1715
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
1661
1716
|
function AnimatedCounter({
|
|
1662
1717
|
to,
|
|
1663
1718
|
from = 0,
|
|
@@ -1673,12 +1728,12 @@ function AnimatedCounter({
|
|
|
1673
1728
|
delay: isInView ? delay : 0,
|
|
1674
1729
|
config: { duration }
|
|
1675
1730
|
});
|
|
1676
|
-
return /* @__PURE__ */
|
|
1731
|
+
return /* @__PURE__ */ jsx21(animated.span, { ref, style: { fontFamily: "var(--font-family)" }, children: value.to((v) => `${prefix}${v.toFixed(decimals)}${suffix}`) });
|
|
1677
1732
|
}
|
|
1678
1733
|
|
|
1679
1734
|
// src/components/animations/FadeIn.tsx
|
|
1680
1735
|
import { animated as animated2, useSpring as useSpring2 } from "@react-spring/web";
|
|
1681
|
-
import { jsx as
|
|
1736
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
1682
1737
|
function FadeIn({
|
|
1683
1738
|
children,
|
|
1684
1739
|
direction = "up",
|
|
@@ -1700,12 +1755,12 @@ function FadeIn({
|
|
|
1700
1755
|
delay: isInView ? delay : 0,
|
|
1701
1756
|
config: { duration }
|
|
1702
1757
|
});
|
|
1703
|
-
return /* @__PURE__ */
|
|
1758
|
+
return /* @__PURE__ */ jsx22(animated2.div, { ref, style: styles, children });
|
|
1704
1759
|
}
|
|
1705
1760
|
|
|
1706
1761
|
// src/components/animations/ProgressRing.tsx
|
|
1707
1762
|
import { animated as animated3, useSpring as useSpring3 } from "@react-spring/web";
|
|
1708
|
-
import { jsx as
|
|
1763
|
+
import { jsx as jsx23, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
1709
1764
|
function ProgressRing({
|
|
1710
1765
|
value,
|
|
1711
1766
|
size = 120,
|
|
@@ -1725,7 +1780,7 @@ function ProgressRing({
|
|
|
1725
1780
|
delay: isInView ? delay : 0,
|
|
1726
1781
|
config: { duration }
|
|
1727
1782
|
});
|
|
1728
|
-
return /* @__PURE__ */
|
|
1783
|
+
return /* @__PURE__ */ jsxs16(
|
|
1729
1784
|
"div",
|
|
1730
1785
|
{
|
|
1731
1786
|
ref,
|
|
@@ -1738,14 +1793,14 @@ function ProgressRing({
|
|
|
1738
1793
|
justifyContent: "center"
|
|
1739
1794
|
},
|
|
1740
1795
|
children: [
|
|
1741
|
-
/* @__PURE__ */
|
|
1796
|
+
/* @__PURE__ */ jsxs16(
|
|
1742
1797
|
"svg",
|
|
1743
1798
|
{
|
|
1744
1799
|
width: size,
|
|
1745
1800
|
height: size,
|
|
1746
1801
|
style: { position: "absolute", transform: "rotate(-90deg)" },
|
|
1747
1802
|
children: [
|
|
1748
|
-
/* @__PURE__ */
|
|
1803
|
+
/* @__PURE__ */ jsx23(
|
|
1749
1804
|
"circle",
|
|
1750
1805
|
{
|
|
1751
1806
|
cx: size / 2,
|
|
@@ -1756,7 +1811,7 @@ function ProgressRing({
|
|
|
1756
1811
|
strokeWidth
|
|
1757
1812
|
}
|
|
1758
1813
|
),
|
|
1759
|
-
/* @__PURE__ */
|
|
1814
|
+
/* @__PURE__ */ jsx23(
|
|
1760
1815
|
animated3.circle,
|
|
1761
1816
|
{
|
|
1762
1817
|
cx: size / 2,
|
|
@@ -1773,7 +1828,7 @@ function ProgressRing({
|
|
|
1773
1828
|
]
|
|
1774
1829
|
}
|
|
1775
1830
|
),
|
|
1776
|
-
children && /* @__PURE__ */
|
|
1831
|
+
children && /* @__PURE__ */ jsx23(
|
|
1777
1832
|
"div",
|
|
1778
1833
|
{
|
|
1779
1834
|
style: {
|
|
@@ -1791,7 +1846,7 @@ function ProgressRing({
|
|
|
1791
1846
|
|
|
1792
1847
|
// src/components/animations/ScaleIn.tsx
|
|
1793
1848
|
import { animated as animated4, useSpring as useSpring4 } from "@react-spring/web";
|
|
1794
|
-
import { jsx as
|
|
1849
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
1795
1850
|
function ScaleIn({
|
|
1796
1851
|
children,
|
|
1797
1852
|
from = 0,
|
|
@@ -1805,12 +1860,12 @@ function ScaleIn({
|
|
|
1805
1860
|
delay: isInView ? delay : 0,
|
|
1806
1861
|
config: { duration }
|
|
1807
1862
|
});
|
|
1808
|
-
return /* @__PURE__ */
|
|
1863
|
+
return /* @__PURE__ */ jsx24(animated4.div, { ref, style: styles, children });
|
|
1809
1864
|
}
|
|
1810
1865
|
|
|
1811
1866
|
// src/components/animations/Spotlight.tsx
|
|
1812
1867
|
import styled13 from "styled-components";
|
|
1813
|
-
import { Fragment as Fragment2, jsx as
|
|
1868
|
+
import { Fragment as Fragment2, jsx as jsx25, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
1814
1869
|
var Overlay2 = styled13.div`
|
|
1815
1870
|
position: fixed;
|
|
1816
1871
|
inset: 0;
|
|
@@ -1828,16 +1883,16 @@ function Spotlight({
|
|
|
1828
1883
|
active = true,
|
|
1829
1884
|
dimOpacity = 0.7
|
|
1830
1885
|
}) {
|
|
1831
|
-
return /* @__PURE__ */
|
|
1832
|
-
/* @__PURE__ */
|
|
1833
|
-
/* @__PURE__ */
|
|
1886
|
+
return /* @__PURE__ */ jsxs17(Fragment2, { children: [
|
|
1887
|
+
/* @__PURE__ */ jsx25(Overlay2, { $active: active, $dimOpacity: dimOpacity }),
|
|
1888
|
+
/* @__PURE__ */ jsx25(Content, { $active: active, children })
|
|
1834
1889
|
] });
|
|
1835
1890
|
}
|
|
1836
1891
|
|
|
1837
1892
|
// src/components/animations/StaggerChildren.tsx
|
|
1838
1893
|
import { animated as animated5, useSprings } from "@react-spring/web";
|
|
1839
1894
|
import React10 from "react";
|
|
1840
|
-
import { jsx as
|
|
1895
|
+
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
1841
1896
|
function StaggerChildren({
|
|
1842
1897
|
children,
|
|
1843
1898
|
stagger = 100,
|
|
@@ -1864,12 +1919,12 @@ function StaggerChildren({
|
|
|
1864
1919
|
config: { duration }
|
|
1865
1920
|
}))
|
|
1866
1921
|
);
|
|
1867
|
-
return /* @__PURE__ */
|
|
1922
|
+
return /* @__PURE__ */ jsx26("div", { ref, children: springs.map((style2, i) => /* @__PURE__ */ jsx26(animated5.div, { style: style2, children: items[i] }, i)) });
|
|
1868
1923
|
}
|
|
1869
1924
|
|
|
1870
1925
|
// src/components/animations/TypeWriter.tsx
|
|
1871
1926
|
import React11 from "react";
|
|
1872
|
-
import { jsx as
|
|
1927
|
+
import { jsx as jsx27, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
1873
1928
|
function extractText(node) {
|
|
1874
1929
|
if (typeof node === "string") return node;
|
|
1875
1930
|
if (typeof node === "number") return String(node);
|
|
@@ -1910,9 +1965,9 @@ function TypeWriter({
|
|
|
1910
1965
|
}, delay);
|
|
1911
1966
|
return () => clearTimeout(timeout);
|
|
1912
1967
|
}, [text, speed, delay, isInView]);
|
|
1913
|
-
return /* @__PURE__ */
|
|
1968
|
+
return /* @__PURE__ */ jsxs18("span", { ref, style: { fontFamily: "var(--font-family)" }, children: [
|
|
1914
1969
|
displayed,
|
|
1915
|
-
cursor && /* @__PURE__ */
|
|
1970
|
+
cursor && /* @__PURE__ */ jsx27(
|
|
1916
1971
|
"span",
|
|
1917
1972
|
{
|
|
1918
1973
|
style: {
|
|
@@ -1920,7 +1975,7 @@ function TypeWriter({
|
|
|
1920
1975
|
marginLeft: 1,
|
|
1921
1976
|
animation: done ? "pestacle-blink 1s step-end infinite" : "none"
|
|
1922
1977
|
},
|
|
1923
|
-
children: /* @__PURE__ */
|
|
1978
|
+
children: /* @__PURE__ */ jsx27("style", { children: `@keyframes pestacle-blink { 50% { opacity: 0; } }` })
|
|
1924
1979
|
}
|
|
1925
1980
|
)
|
|
1926
1981
|
] });
|
|
@@ -1928,7 +1983,7 @@ function TypeWriter({
|
|
|
1928
1983
|
|
|
1929
1984
|
// src/components/DocumentationItem.tsx
|
|
1930
1985
|
import styled14 from "styled-components";
|
|
1931
|
-
import { jsx as
|
|
1986
|
+
import { jsx as jsx28, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
1932
1987
|
var DocWrapper = styled14.div`
|
|
1933
1988
|
position: absolute;
|
|
1934
1989
|
bottom: 0;
|
|
@@ -1980,18 +2035,18 @@ function Doc({
|
|
|
1980
2035
|
link,
|
|
1981
2036
|
children
|
|
1982
2037
|
}) {
|
|
1983
|
-
return /* @__PURE__ */
|
|
1984
|
-
children && /* @__PURE__ */
|
|
1985
|
-
/* @__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 }) })
|
|
1986
2041
|
] }) });
|
|
1987
2042
|
}
|
|
1988
2043
|
function DocItem({ label, link }) {
|
|
1989
|
-
return /* @__PURE__ */
|
|
2044
|
+
return /* @__PURE__ */ jsx28(DocLinkItem, { target: "_blank", rel: "noopener noreferrer", href: link, children: label });
|
|
1990
2045
|
}
|
|
1991
2046
|
|
|
1992
2047
|
// src/components/FilePane.tsx
|
|
1993
2048
|
import React12 from "react";
|
|
1994
|
-
import { jsx as
|
|
2049
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
1995
2050
|
function FilePane({
|
|
1996
2051
|
name,
|
|
1997
2052
|
children,
|
|
@@ -2005,7 +2060,7 @@ function FilePane({
|
|
|
2005
2060
|
name
|
|
2006
2061
|
}) : children;
|
|
2007
2062
|
if (minWidth) {
|
|
2008
|
-
return /* @__PURE__ */
|
|
2063
|
+
return /* @__PURE__ */ jsx29("div", { ...divProps, style: { minWidth, ...divProps.style }, children: content });
|
|
2009
2064
|
}
|
|
2010
2065
|
return content;
|
|
2011
2066
|
}
|
|
@@ -2016,7 +2071,7 @@ import { animated as animated6, useSpring as useSpring5 } from "@react-spring/we
|
|
|
2016
2071
|
import React13 from "react";
|
|
2017
2072
|
import { Stepper as Stepper2 } from "spectacle";
|
|
2018
2073
|
import styled15 from "styled-components";
|
|
2019
|
-
import { jsx as
|
|
2074
|
+
import { jsx as jsx30, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
2020
2075
|
var Container = styled15.div`
|
|
2021
2076
|
display: grid;
|
|
2022
2077
|
grid-gap: 2rem;
|
|
@@ -2026,7 +2081,7 @@ function HorizontalList({
|
|
|
2026
2081
|
columns = 3
|
|
2027
2082
|
}) {
|
|
2028
2083
|
const items = React13.Children.toArray(children);
|
|
2029
|
-
return /* @__PURE__ */
|
|
2084
|
+
return /* @__PURE__ */ jsx30(Stepper2, { values: items, children: (_, step) => /* @__PURE__ */ jsx30(
|
|
2030
2085
|
Container,
|
|
2031
2086
|
{
|
|
2032
2087
|
style: {
|
|
@@ -2047,11 +2102,11 @@ function HorizontalList({
|
|
|
2047
2102
|
) });
|
|
2048
2103
|
}
|
|
2049
2104
|
function Pill({ position }) {
|
|
2050
|
-
return /* @__PURE__ */
|
|
2105
|
+
return /* @__PURE__ */ jsx30(
|
|
2051
2106
|
"div",
|
|
2052
2107
|
{
|
|
2053
2108
|
style: { width: 48, transform: "translate(-25%, -25%)", opacity: 0.9 },
|
|
2054
|
-
children: /* @__PURE__ */
|
|
2109
|
+
children: /* @__PURE__ */ jsxs20(
|
|
2055
2110
|
"svg",
|
|
2056
2111
|
{
|
|
2057
2112
|
width: "48",
|
|
@@ -2060,14 +2115,14 @@ function Pill({ position }) {
|
|
|
2060
2115
|
fill: "none",
|
|
2061
2116
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2062
2117
|
children: [
|
|
2063
|
-
/* @__PURE__ */
|
|
2118
|
+
/* @__PURE__ */ jsx30(
|
|
2064
2119
|
"path",
|
|
2065
2120
|
{
|
|
2066
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",
|
|
2067
2122
|
fill: "#ffffff"
|
|
2068
2123
|
}
|
|
2069
2124
|
),
|
|
2070
|
-
/* @__PURE__ */
|
|
2125
|
+
/* @__PURE__ */ jsx30(
|
|
2071
2126
|
"text",
|
|
2072
2127
|
{
|
|
2073
2128
|
x: "9",
|
|
@@ -2079,7 +2134,7 @@ function Pill({ position }) {
|
|
|
2079
2134
|
children: position
|
|
2080
2135
|
}
|
|
2081
2136
|
),
|
|
2082
|
-
/* @__PURE__ */
|
|
2137
|
+
/* @__PURE__ */ jsx30(
|
|
2083
2138
|
"path",
|
|
2084
2139
|
{
|
|
2085
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",
|
|
@@ -2133,18 +2188,18 @@ function HorizontalListItem({
|
|
|
2133
2188
|
const opacityStyles = useSpring5({
|
|
2134
2189
|
opacity: getItemOpacity({ isVisible, isLast })
|
|
2135
2190
|
});
|
|
2136
|
-
return /* @__PURE__ */
|
|
2137
|
-
/* @__PURE__ */
|
|
2138
|
-
/* @__PURE__ */
|
|
2139
|
-
/* @__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 })
|
|
2140
2195
|
] }),
|
|
2141
|
-
/* @__PURE__ */
|
|
2196
|
+
/* @__PURE__ */ jsx30(ItemContent, { children })
|
|
2142
2197
|
] });
|
|
2143
2198
|
}
|
|
2144
2199
|
|
|
2145
2200
|
// src/components/IconBox.tsx
|
|
2146
2201
|
import styled16 from "styled-components";
|
|
2147
|
-
import { jsx as
|
|
2202
|
+
import { jsx as jsx31, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
2148
2203
|
var IconBoxContent = styled16.div`
|
|
2149
2204
|
* {
|
|
2150
2205
|
margin: 0.2rem !important;
|
|
@@ -2155,7 +2210,7 @@ function IconBox({
|
|
|
2155
2210
|
children,
|
|
2156
2211
|
icon
|
|
2157
2212
|
}) {
|
|
2158
|
-
return /* @__PURE__ */
|
|
2213
|
+
return /* @__PURE__ */ jsxs21(
|
|
2159
2214
|
"div",
|
|
2160
2215
|
{
|
|
2161
2216
|
style: {
|
|
@@ -2165,8 +2220,8 @@ function IconBox({
|
|
|
2165
2220
|
padding: "1rem 0"
|
|
2166
2221
|
},
|
|
2167
2222
|
children: [
|
|
2168
|
-
/* @__PURE__ */
|
|
2169
|
-
/* @__PURE__ */
|
|
2223
|
+
/* @__PURE__ */ jsx31("div", { style: { fontSize: 60 }, children: icon }),
|
|
2224
|
+
/* @__PURE__ */ jsx31(IconBoxContent, { children })
|
|
2170
2225
|
]
|
|
2171
2226
|
}
|
|
2172
2227
|
);
|
|
@@ -2177,11 +2232,11 @@ import { animated as animated7, useSpring as useSpring6 } from "@react-spring/we
|
|
|
2177
2232
|
import React14 from "react";
|
|
2178
2233
|
import { Stepper as Stepper3 } from "spectacle";
|
|
2179
2234
|
import styled17 from "styled-components";
|
|
2180
|
-
import { jsx as
|
|
2235
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
2181
2236
|
function ItemsColumn(divProps) {
|
|
2182
2237
|
const { style: style2, children, ...props } = divProps;
|
|
2183
2238
|
const childrenArray = React14.Children.toArray(children);
|
|
2184
|
-
return /* @__PURE__ */
|
|
2239
|
+
return /* @__PURE__ */ jsx32(Stepper3, { values: childrenArray, children: (_value, step) => /* @__PURE__ */ jsx32(
|
|
2185
2240
|
"div",
|
|
2186
2241
|
{
|
|
2187
2242
|
style: {
|
|
@@ -2199,7 +2254,7 @@ function ItemsColumn(divProps) {
|
|
|
2199
2254
|
if (!React14.isValidElement(child)) {
|
|
2200
2255
|
return child;
|
|
2201
2256
|
}
|
|
2202
|
-
return /* @__PURE__ */
|
|
2257
|
+
return /* @__PURE__ */ jsx32(ItemColumnWrapper, { isVisible, children: child }, index);
|
|
2203
2258
|
})
|
|
2204
2259
|
}
|
|
2205
2260
|
) });
|
|
@@ -2217,7 +2272,7 @@ function ItemColumnWrapper({
|
|
|
2217
2272
|
...props
|
|
2218
2273
|
}) {
|
|
2219
2274
|
const styles = useSpring6({ opacity: isVisible ? 1 : 0 });
|
|
2220
|
-
return /* @__PURE__ */
|
|
2275
|
+
return /* @__PURE__ */ jsx32(ItemColumnWrapperStyled, { style: styles, ...props, children });
|
|
2221
2276
|
}
|
|
2222
2277
|
|
|
2223
2278
|
// src/components/Timeline.tsx
|
|
@@ -2250,7 +2305,7 @@ var TimelineItemTitle = styled18.div`
|
|
|
2250
2305
|
`;
|
|
2251
2306
|
|
|
2252
2307
|
// src/components/Timeline.tsx
|
|
2253
|
-
import { jsx as
|
|
2308
|
+
import { jsx as jsx33, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
2254
2309
|
var TimelineItemStyled = styled19(animated8.div)`
|
|
2255
2310
|
flex: 1;
|
|
2256
2311
|
flex-flow: column nowrap;
|
|
@@ -2299,7 +2354,7 @@ function Timeline(props) {
|
|
|
2299
2354
|
const { activeIndex, ...rest } = props;
|
|
2300
2355
|
const children = React15.Children.toArray(rest.children);
|
|
2301
2356
|
if (activeIndex != null) {
|
|
2302
|
-
return /* @__PURE__ */
|
|
2357
|
+
return /* @__PURE__ */ jsx33("div", { ...rest, style: { ...style, ...rest.style }, children: children.map((child, index) => {
|
|
2303
2358
|
if (!React15.isValidElement(child)) {
|
|
2304
2359
|
return child;
|
|
2305
2360
|
}
|
|
@@ -2310,7 +2365,7 @@ function Timeline(props) {
|
|
|
2310
2365
|
});
|
|
2311
2366
|
}) });
|
|
2312
2367
|
}
|
|
2313
|
-
return /* @__PURE__ */
|
|
2368
|
+
return /* @__PURE__ */ jsx33(
|
|
2314
2369
|
Stepper4,
|
|
2315
2370
|
{
|
|
2316
2371
|
...rest,
|
|
@@ -2349,7 +2404,7 @@ function TimelineItem(props) {
|
|
|
2349
2404
|
opacity: getItemOpacity2({ isPhantom, isLast })
|
|
2350
2405
|
});
|
|
2351
2406
|
const colorStyles = useSpring7({ opacity: isPhantom || isLast ? 1 : 0.15 });
|
|
2352
|
-
return /* @__PURE__ */
|
|
2407
|
+
return /* @__PURE__ */ jsxs22(
|
|
2353
2408
|
TimelineItemStyled,
|
|
2354
2409
|
{
|
|
2355
2410
|
...rest,
|
|
@@ -2357,24 +2412,24 @@ function TimelineItem(props) {
|
|
|
2357
2412
|
...appearStyles
|
|
2358
2413
|
},
|
|
2359
2414
|
children: [
|
|
2360
|
-
/* @__PURE__ */
|
|
2361
|
-
/* @__PURE__ */
|
|
2362
|
-
/* @__PURE__ */
|
|
2415
|
+
/* @__PURE__ */ jsxs22(TimelineItemContentPhantom, { children: [
|
|
2416
|
+
/* @__PURE__ */ jsx33(TimelineItemTitle, { children: title }),
|
|
2417
|
+
/* @__PURE__ */ jsx33(TimelineItemBody, { children })
|
|
2363
2418
|
] }),
|
|
2364
|
-
/* @__PURE__ */
|
|
2365
|
-
/* @__PURE__ */
|
|
2366
|
-
/* @__PURE__ */
|
|
2419
|
+
/* @__PURE__ */ jsxs22(TimelineItemGuide, { style: colorStyles, children: [
|
|
2420
|
+
/* @__PURE__ */ jsx33(Hexagon, {}),
|
|
2421
|
+
/* @__PURE__ */ jsx33(TimelineItemGuideLine, { style: guideLineProps })
|
|
2367
2422
|
] }),
|
|
2368
|
-
/* @__PURE__ */
|
|
2369
|
-
/* @__PURE__ */
|
|
2370
|
-
/* @__PURE__ */
|
|
2423
|
+
/* @__PURE__ */ jsxs22(TimelineItemContent, { children: [
|
|
2424
|
+
/* @__PURE__ */ jsx33(TimelineItemTitle, { children: title }),
|
|
2425
|
+
/* @__PURE__ */ jsx33(TimelineItemBody, { children })
|
|
2371
2426
|
] })
|
|
2372
2427
|
]
|
|
2373
2428
|
}
|
|
2374
2429
|
);
|
|
2375
2430
|
}
|
|
2376
2431
|
function Hexagon() {
|
|
2377
|
-
return /* @__PURE__ */
|
|
2432
|
+
return /* @__PURE__ */ jsxs22(
|
|
2378
2433
|
"svg",
|
|
2379
2434
|
{
|
|
2380
2435
|
width: "18",
|
|
@@ -2383,14 +2438,14 @@ function Hexagon() {
|
|
|
2383
2438
|
fill: "none",
|
|
2384
2439
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2385
2440
|
children: [
|
|
2386
|
-
/* @__PURE__ */
|
|
2441
|
+
/* @__PURE__ */ jsx33(
|
|
2387
2442
|
"path",
|
|
2388
2443
|
{
|
|
2389
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",
|
|
2390
2445
|
fill: "#F49676"
|
|
2391
2446
|
}
|
|
2392
2447
|
),
|
|
2393
|
-
/* @__PURE__ */
|
|
2448
|
+
/* @__PURE__ */ jsx33(
|
|
2394
2449
|
"path",
|
|
2395
2450
|
{
|
|
2396
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",
|
|
@@ -2403,9 +2458,9 @@ function Hexagon() {
|
|
|
2403
2458
|
}
|
|
2404
2459
|
|
|
2405
2460
|
// src/index.tsx
|
|
2406
|
-
import { Fragment as Fragment3, jsx as
|
|
2461
|
+
import { Fragment as Fragment3, jsx as jsx34, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
2407
2462
|
function PassThrough({ children }) {
|
|
2408
|
-
return /* @__PURE__ */
|
|
2463
|
+
return /* @__PURE__ */ jsx34(Fragment3, { children });
|
|
2409
2464
|
}
|
|
2410
2465
|
var layouts = layouts_default;
|
|
2411
2466
|
var componentsMap2 = {
|
|
@@ -2441,22 +2496,22 @@ function Deck({
|
|
|
2441
2496
|
}
|
|
2442
2497
|
`;
|
|
2443
2498
|
}, [theme, mergedTheme]);
|
|
2444
|
-
return /* @__PURE__ */
|
|
2445
|
-
/* @__PURE__ */
|
|
2446
|
-
/* @__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(
|
|
2447
2502
|
SpectacleDeck,
|
|
2448
2503
|
{
|
|
2449
2504
|
theme: mergedTheme,
|
|
2450
2505
|
template,
|
|
2451
2506
|
transition: resolveTransition(transition),
|
|
2452
2507
|
children: [
|
|
2453
|
-
/* @__PURE__ */
|
|
2508
|
+
/* @__PURE__ */ jsx34(SkipStepsShortcut, {}),
|
|
2454
2509
|
deck.slides.map((slide, i) => {
|
|
2455
2510
|
var _a;
|
|
2456
2511
|
const Component = slide.slideComponent;
|
|
2457
2512
|
const slideTransitionName = (_a = slide.metadata) == null ? void 0 : _a.transition;
|
|
2458
2513
|
const slideTransition2 = resolveTransition(slideTransitionName);
|
|
2459
|
-
return /* @__PURE__ */
|
|
2514
|
+
return /* @__PURE__ */ jsx34(Slide, { transition: slideTransition2, children: /* @__PURE__ */ jsx34(Component, {}) }, i);
|
|
2460
2515
|
})
|
|
2461
2516
|
]
|
|
2462
2517
|
}
|
|
@@ -2464,30 +2519,35 @@ function Deck({
|
|
|
2464
2519
|
] }) }) });
|
|
2465
2520
|
}
|
|
2466
2521
|
function Danger({ children }) {
|
|
2467
|
-
return /* @__PURE__ */
|
|
2522
|
+
return /* @__PURE__ */ jsx34("div", { style: { color: "red" }, children });
|
|
2468
2523
|
}
|
|
2469
2524
|
function Information({ children }) {
|
|
2470
|
-
return /* @__PURE__ */
|
|
2525
|
+
return /* @__PURE__ */ jsx34("div", { style: { color: "orange" }, children });
|
|
2471
2526
|
}
|
|
2472
2527
|
function Success({ children }) {
|
|
2473
|
-
return /* @__PURE__ */
|
|
2528
|
+
return /* @__PURE__ */ jsx34("div", { style: { color: "green" }, children });
|
|
2474
2529
|
}
|
|
2475
2530
|
function Warning({ children }) {
|
|
2476
|
-
return /* @__PURE__ */
|
|
2531
|
+
return /* @__PURE__ */ jsx34("div", { style: { color: "yellow" }, children });
|
|
2477
2532
|
}
|
|
2478
2533
|
function Side({ children }) {
|
|
2479
|
-
return /* @__PURE__ */
|
|
2534
|
+
return /* @__PURE__ */ jsx34("div", { children });
|
|
2480
2535
|
}
|
|
2481
2536
|
Side.mdxType = "Side";
|
|
2537
|
+
function Column({ children }) {
|
|
2538
|
+
return /* @__PURE__ */ jsx34("div", { children });
|
|
2539
|
+
}
|
|
2540
|
+
Column.mdxType = "Column";
|
|
2482
2541
|
function Documentation({ children }) {
|
|
2483
|
-
return /* @__PURE__ */
|
|
2542
|
+
return /* @__PURE__ */ jsx34("div", { children });
|
|
2484
2543
|
}
|
|
2485
2544
|
function Box2({ children }) {
|
|
2486
|
-
return /* @__PURE__ */
|
|
2545
|
+
return /* @__PURE__ */ jsx34("div", { children });
|
|
2487
2546
|
}
|
|
2488
2547
|
export {
|
|
2489
2548
|
AnimatedCounter,
|
|
2490
2549
|
Box2 as Box,
|
|
2550
|
+
Column,
|
|
2491
2551
|
Danger,
|
|
2492
2552
|
Deck,
|
|
2493
2553
|
Doc,
|
package/layouts/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { FullImageLayout } from "./FullImageLayout";
|
|
|
3
3
|
import { QuoteLayout } from "./QuoteLayout";
|
|
4
4
|
import { SidedCodeLayout } from "./SideCodeLayout";
|
|
5
5
|
import { SideLayout } from "./SideLayout";
|
|
6
|
+
import { TwoColumnLayout } from "./TwoColumnLayout";
|
|
6
7
|
declare const _default: {
|
|
7
8
|
mainSection: ({ children, }: {
|
|
8
9
|
children: React.ReactNode;
|
|
@@ -25,5 +26,6 @@ declare const _default: {
|
|
|
25
26
|
section: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
26
27
|
fullImage: typeof FullImageLayout;
|
|
27
28
|
bigNumber: typeof BigNumberLayout;
|
|
29
|
+
twoColumn: typeof TwoColumnLayout;
|
|
28
30
|
};
|
|
29
31
|
export default _default;
|