@gpichot/spectacle-deck 1.6.0 → 1.7.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/components/FilePane.d.ts +3 -2
- package/components/Timeline.d.ts +3 -1
- package/index.cjs +70 -51
- package/index.mjs +61 -42
- package/package.json +1 -1
package/components/FilePane.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
declare function FilePane({ name, children, priority, ...divProps }: React.ComponentProps<"div"> & {
|
|
2
|
+
declare function FilePane({ name, children, priority, minWidth, ...divProps }: React.ComponentProps<"div"> & {
|
|
3
3
|
name: string;
|
|
4
4
|
priority?: number;
|
|
5
|
-
|
|
5
|
+
minWidth?: string;
|
|
6
|
+
}): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode>> | import("react/jsx-runtime").JSX.Element;
|
|
6
7
|
declare namespace FilePane {
|
|
7
8
|
var mdxType: string;
|
|
8
9
|
}
|
package/components/Timeline.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
export default function Timeline(props: React.ComponentPropsWithoutRef<"div">
|
|
2
|
+
export default function Timeline(props: React.ComponentPropsWithoutRef<"div"> & {
|
|
3
|
+
activeIndex?: number;
|
|
4
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
3
5
|
export declare function TimelineItem(props: React.ComponentPropsWithoutRef<"div"> & {
|
|
4
6
|
isPhantom?: boolean;
|
|
5
7
|
isLast?: boolean;
|
package/index.cjs
CHANGED
|
@@ -2002,17 +2002,23 @@ function DocItem({ label, link }) {
|
|
|
2002
2002
|
|
|
2003
2003
|
// src/components/FilePane.tsx
|
|
2004
2004
|
var import_react12 = __toESM(require("react"));
|
|
2005
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
2005
2006
|
function FilePane({
|
|
2006
2007
|
name,
|
|
2007
2008
|
children,
|
|
2008
2009
|
priority,
|
|
2010
|
+
minWidth,
|
|
2009
2011
|
...divProps
|
|
2010
2012
|
}) {
|
|
2011
|
-
|
|
2013
|
+
const content = import_react12.default.isValidElement(children) ? import_react12.default.cloneElement(children, {
|
|
2012
2014
|
// @ts-expect-error cloning
|
|
2013
2015
|
priority,
|
|
2014
2016
|
name
|
|
2015
2017
|
}) : children;
|
|
2018
|
+
if (minWidth) {
|
|
2019
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { ...divProps, style: { minWidth, ...divProps.style }, children: content });
|
|
2020
|
+
}
|
|
2021
|
+
return content;
|
|
2016
2022
|
}
|
|
2017
2023
|
FilePane.mdxType = "FilePane";
|
|
2018
2024
|
|
|
@@ -2021,7 +2027,7 @@ var import_web6 = require("@react-spring/web");
|
|
|
2021
2027
|
var import_react13 = __toESM(require("react"));
|
|
2022
2028
|
var import_spectacle8 = require("spectacle");
|
|
2023
2029
|
var import_styled_components15 = __toESM(require("styled-components"));
|
|
2024
|
-
var
|
|
2030
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
2025
2031
|
var Container = import_styled_components15.default.div`
|
|
2026
2032
|
display: grid;
|
|
2027
2033
|
grid-gap: 2rem;
|
|
@@ -2031,7 +2037,7 @@ function HorizontalList({
|
|
|
2031
2037
|
columns = 3
|
|
2032
2038
|
}) {
|
|
2033
2039
|
const items = import_react13.default.Children.toArray(children);
|
|
2034
|
-
return /* @__PURE__ */ (0,
|
|
2040
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_spectacle8.Stepper, { values: items, children: (_, step) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2035
2041
|
Container,
|
|
2036
2042
|
{
|
|
2037
2043
|
style: {
|
|
@@ -2052,11 +2058,11 @@ function HorizontalList({
|
|
|
2052
2058
|
) });
|
|
2053
2059
|
}
|
|
2054
2060
|
function Pill({ position }) {
|
|
2055
|
-
return /* @__PURE__ */ (0,
|
|
2061
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2056
2062
|
"div",
|
|
2057
2063
|
{
|
|
2058
2064
|
style: { width: 48, transform: "translate(-25%, -25%)", opacity: 0.9 },
|
|
2059
|
-
children: /* @__PURE__ */ (0,
|
|
2065
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
2060
2066
|
"svg",
|
|
2061
2067
|
{
|
|
2062
2068
|
width: "48",
|
|
@@ -2065,14 +2071,14 @@ function Pill({ position }) {
|
|
|
2065
2071
|
fill: "none",
|
|
2066
2072
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2067
2073
|
children: [
|
|
2068
|
-
/* @__PURE__ */ (0,
|
|
2074
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2069
2075
|
"path",
|
|
2070
2076
|
{
|
|
2071
2077
|
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",
|
|
2072
2078
|
fill: "#ffffff"
|
|
2073
2079
|
}
|
|
2074
2080
|
),
|
|
2075
|
-
/* @__PURE__ */ (0,
|
|
2081
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2076
2082
|
"text",
|
|
2077
2083
|
{
|
|
2078
2084
|
x: "9",
|
|
@@ -2084,7 +2090,7 @@ function Pill({ position }) {
|
|
|
2084
2090
|
children: position
|
|
2085
2091
|
}
|
|
2086
2092
|
),
|
|
2087
|
-
/* @__PURE__ */ (0,
|
|
2093
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2088
2094
|
"path",
|
|
2089
2095
|
{
|
|
2090
2096
|
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",
|
|
@@ -2138,18 +2144,18 @@ function HorizontalListItem({
|
|
|
2138
2144
|
const opacityStyles = (0, import_web6.useSpring)({
|
|
2139
2145
|
opacity: getItemOpacity({ isVisible, isLast })
|
|
2140
2146
|
});
|
|
2141
|
-
return /* @__PURE__ */ (0,
|
|
2142
|
-
/* @__PURE__ */ (0,
|
|
2143
|
-
/* @__PURE__ */ (0,
|
|
2144
|
-
/* @__PURE__ */ (0,
|
|
2147
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(Item, { style: opacityStyles, children: [
|
|
2148
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(ItemHead, { children: [
|
|
2149
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Pill, { position }),
|
|
2150
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("p", { children: title })
|
|
2145
2151
|
] }),
|
|
2146
|
-
/* @__PURE__ */ (0,
|
|
2152
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(ItemContent, { children })
|
|
2147
2153
|
] });
|
|
2148
2154
|
}
|
|
2149
2155
|
|
|
2150
2156
|
// src/components/IconBox.tsx
|
|
2151
2157
|
var import_styled_components16 = __toESM(require("styled-components"));
|
|
2152
|
-
var
|
|
2158
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
2153
2159
|
var IconBoxContent = import_styled_components16.default.div`
|
|
2154
2160
|
* {
|
|
2155
2161
|
margin: 0.2rem !important;
|
|
@@ -2160,7 +2166,7 @@ function IconBox({
|
|
|
2160
2166
|
children,
|
|
2161
2167
|
icon
|
|
2162
2168
|
}) {
|
|
2163
|
-
return /* @__PURE__ */ (0,
|
|
2169
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
|
2164
2170
|
"div",
|
|
2165
2171
|
{
|
|
2166
2172
|
style: {
|
|
@@ -2170,8 +2176,8 @@ function IconBox({
|
|
|
2170
2176
|
padding: "1rem 0"
|
|
2171
2177
|
},
|
|
2172
2178
|
children: [
|
|
2173
|
-
/* @__PURE__ */ (0,
|
|
2174
|
-
/* @__PURE__ */ (0,
|
|
2179
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { style: { fontSize: 60 }, children: icon }),
|
|
2180
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(IconBoxContent, { children })
|
|
2175
2181
|
]
|
|
2176
2182
|
}
|
|
2177
2183
|
);
|
|
@@ -2182,11 +2188,11 @@ var import_web7 = require("@react-spring/web");
|
|
|
2182
2188
|
var import_react14 = __toESM(require("react"));
|
|
2183
2189
|
var import_spectacle9 = require("spectacle");
|
|
2184
2190
|
var import_styled_components17 = __toESM(require("styled-components"));
|
|
2185
|
-
var
|
|
2191
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
2186
2192
|
function ItemsColumn(divProps) {
|
|
2187
2193
|
const { style: style2, children, ...props } = divProps;
|
|
2188
2194
|
const childrenArray = import_react14.default.Children.toArray(children);
|
|
2189
|
-
return /* @__PURE__ */ (0,
|
|
2195
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_spectacle9.Stepper, { values: childrenArray, children: (_value, step) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2190
2196
|
"div",
|
|
2191
2197
|
{
|
|
2192
2198
|
style: {
|
|
@@ -2204,7 +2210,7 @@ function ItemsColumn(divProps) {
|
|
|
2204
2210
|
if (!import_react14.default.isValidElement(child)) {
|
|
2205
2211
|
return child;
|
|
2206
2212
|
}
|
|
2207
|
-
return /* @__PURE__ */ (0,
|
|
2213
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(ItemColumnWrapper, { isVisible, children: child }, index);
|
|
2208
2214
|
})
|
|
2209
2215
|
}
|
|
2210
2216
|
) });
|
|
@@ -2222,7 +2228,7 @@ function ItemColumnWrapper({
|
|
|
2222
2228
|
...props
|
|
2223
2229
|
}) {
|
|
2224
2230
|
const styles = (0, import_web7.useSpring)({ opacity: isVisible ? 1 : 0 });
|
|
2225
|
-
return /* @__PURE__ */ (0,
|
|
2231
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(ItemColumnWrapperStyled, { style: styles, ...props, children });
|
|
2226
2232
|
}
|
|
2227
2233
|
|
|
2228
2234
|
// src/components/Timeline.tsx
|
|
@@ -2255,7 +2261,7 @@ var TimelineItemTitle = import_styled_components18.default.div`
|
|
|
2255
2261
|
`;
|
|
2256
2262
|
|
|
2257
2263
|
// src/components/Timeline.tsx
|
|
2258
|
-
var
|
|
2264
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
2259
2265
|
var TimelineItemStyled = (0, import_styled_components19.default)(import_web8.animated.div)`
|
|
2260
2266
|
flex: 1;
|
|
2261
2267
|
flex-flow: column nowrap;
|
|
@@ -2301,11 +2307,24 @@ var style = {
|
|
|
2301
2307
|
alignItems: "center"
|
|
2302
2308
|
};
|
|
2303
2309
|
function Timeline(props) {
|
|
2304
|
-
const
|
|
2305
|
-
|
|
2310
|
+
const { activeIndex, ...rest } = props;
|
|
2311
|
+
const children = import_react15.default.Children.toArray(rest.children);
|
|
2312
|
+
if (activeIndex != null) {
|
|
2313
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { ...rest, style: { ...style, ...rest.style }, children: children.map((child, index) => {
|
|
2314
|
+
if (!import_react15.default.isValidElement(child)) {
|
|
2315
|
+
return child;
|
|
2316
|
+
}
|
|
2317
|
+
return import_react15.default.cloneElement(child, {
|
|
2318
|
+
// @ts-expect-error cloning
|
|
2319
|
+
isPhantom: activeIndex < index,
|
|
2320
|
+
isLast: activeIndex === index
|
|
2321
|
+
});
|
|
2322
|
+
}) });
|
|
2323
|
+
}
|
|
2324
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2306
2325
|
import_spectacle10.Stepper,
|
|
2307
2326
|
{
|
|
2308
|
-
...
|
|
2327
|
+
...rest,
|
|
2309
2328
|
values: children,
|
|
2310
2329
|
activeStyle: style,
|
|
2311
2330
|
inactiveStyle: style,
|
|
@@ -2341,7 +2360,7 @@ function TimelineItem(props) {
|
|
|
2341
2360
|
opacity: getItemOpacity2({ isPhantom, isLast })
|
|
2342
2361
|
});
|
|
2343
2362
|
const colorStyles = (0, import_web8.useSpring)({ opacity: isPhantom || isLast ? 1 : 0.15 });
|
|
2344
|
-
return /* @__PURE__ */ (0,
|
|
2363
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
2345
2364
|
TimelineItemStyled,
|
|
2346
2365
|
{
|
|
2347
2366
|
...rest,
|
|
@@ -2349,24 +2368,24 @@ function TimelineItem(props) {
|
|
|
2349
2368
|
...appearStyles
|
|
2350
2369
|
},
|
|
2351
2370
|
children: [
|
|
2352
|
-
/* @__PURE__ */ (0,
|
|
2353
|
-
/* @__PURE__ */ (0,
|
|
2354
|
-
/* @__PURE__ */ (0,
|
|
2371
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(TimelineItemContentPhantom, { children: [
|
|
2372
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(TimelineItemTitle, { children: title }),
|
|
2373
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(TimelineItemBody, { children })
|
|
2355
2374
|
] }),
|
|
2356
|
-
/* @__PURE__ */ (0,
|
|
2357
|
-
/* @__PURE__ */ (0,
|
|
2358
|
-
/* @__PURE__ */ (0,
|
|
2375
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(TimelineItemGuide, { style: colorStyles, children: [
|
|
2376
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Hexagon, {}),
|
|
2377
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(TimelineItemGuideLine, { style: guideLineProps })
|
|
2359
2378
|
] }),
|
|
2360
|
-
/* @__PURE__ */ (0,
|
|
2361
|
-
/* @__PURE__ */ (0,
|
|
2362
|
-
/* @__PURE__ */ (0,
|
|
2379
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(TimelineItemContent, { children: [
|
|
2380
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(TimelineItemTitle, { children: title }),
|
|
2381
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(TimelineItemBody, { children })
|
|
2363
2382
|
] })
|
|
2364
2383
|
]
|
|
2365
2384
|
}
|
|
2366
2385
|
);
|
|
2367
2386
|
}
|
|
2368
2387
|
function Hexagon() {
|
|
2369
|
-
return /* @__PURE__ */ (0,
|
|
2388
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
2370
2389
|
"svg",
|
|
2371
2390
|
{
|
|
2372
2391
|
width: "18",
|
|
@@ -2375,14 +2394,14 @@ function Hexagon() {
|
|
|
2375
2394
|
fill: "none",
|
|
2376
2395
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2377
2396
|
children: [
|
|
2378
|
-
/* @__PURE__ */ (0,
|
|
2397
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2379
2398
|
"path",
|
|
2380
2399
|
{
|
|
2381
2400
|
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",
|
|
2382
2401
|
fill: "#F49676"
|
|
2383
2402
|
}
|
|
2384
2403
|
),
|
|
2385
|
-
/* @__PURE__ */ (0,
|
|
2404
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2386
2405
|
"path",
|
|
2387
2406
|
{
|
|
2388
2407
|
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",
|
|
@@ -2395,9 +2414,9 @@ function Hexagon() {
|
|
|
2395
2414
|
}
|
|
2396
2415
|
|
|
2397
2416
|
// src/index.tsx
|
|
2398
|
-
var
|
|
2417
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
2399
2418
|
function PassThrough({ children }) {
|
|
2400
|
-
return /* @__PURE__ */ (0,
|
|
2419
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_jsx_runtime33.Fragment, { children });
|
|
2401
2420
|
}
|
|
2402
2421
|
var layouts = layouts_default;
|
|
2403
2422
|
var componentsMap2 = {
|
|
@@ -2433,9 +2452,9 @@ function Deck({
|
|
|
2433
2452
|
}
|
|
2434
2453
|
`;
|
|
2435
2454
|
}, [theme, mergedTheme]);
|
|
2436
|
-
return /* @__PURE__ */ (0,
|
|
2437
|
-
/* @__PURE__ */ (0,
|
|
2438
|
-
/* @__PURE__ */ (0,
|
|
2455
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react17.default.StrictMode, { children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(PestacleProvider, { layouts: layouts2, children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_react16.MDXProvider, { components: componentsMap2, children: [
|
|
2456
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(GlobalStyle, {}),
|
|
2457
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2439
2458
|
import_spectacle11.Deck,
|
|
2440
2459
|
{
|
|
2441
2460
|
theme: mergedTheme,
|
|
@@ -2446,33 +2465,33 @@ function Deck({
|
|
|
2446
2465
|
const Component = slide.slideComponent;
|
|
2447
2466
|
const slideTransitionName = (_a = slide.metadata) == null ? void 0 : _a.transition;
|
|
2448
2467
|
const slideTransition2 = resolveTransition(slideTransitionName);
|
|
2449
|
-
return /* @__PURE__ */ (0,
|
|
2468
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_spectacle11.Slide, { transition: slideTransition2, children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Component, {}) }, i);
|
|
2450
2469
|
})
|
|
2451
2470
|
}
|
|
2452
2471
|
)
|
|
2453
2472
|
] }) }) });
|
|
2454
2473
|
}
|
|
2455
2474
|
function Danger({ children }) {
|
|
2456
|
-
return /* @__PURE__ */ (0,
|
|
2475
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { style: { color: "red" }, children });
|
|
2457
2476
|
}
|
|
2458
2477
|
function Information({ children }) {
|
|
2459
|
-
return /* @__PURE__ */ (0,
|
|
2478
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { style: { color: "orange" }, children });
|
|
2460
2479
|
}
|
|
2461
2480
|
function Success({ children }) {
|
|
2462
|
-
return /* @__PURE__ */ (0,
|
|
2481
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { style: { color: "green" }, children });
|
|
2463
2482
|
}
|
|
2464
2483
|
function Warning({ children }) {
|
|
2465
|
-
return /* @__PURE__ */ (0,
|
|
2484
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { style: { color: "yellow" }, children });
|
|
2466
2485
|
}
|
|
2467
2486
|
function Side({ children }) {
|
|
2468
|
-
return /* @__PURE__ */ (0,
|
|
2487
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { children });
|
|
2469
2488
|
}
|
|
2470
2489
|
Side.mdxType = "Side";
|
|
2471
2490
|
function Documentation({ children }) {
|
|
2472
|
-
return /* @__PURE__ */ (0,
|
|
2491
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { children });
|
|
2473
2492
|
}
|
|
2474
2493
|
function Box2({ children }) {
|
|
2475
|
-
return /* @__PURE__ */ (0,
|
|
2494
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { children });
|
|
2476
2495
|
}
|
|
2477
2496
|
|
|
2478
2497
|
// <stdin>
|
package/index.mjs
CHANGED
|
@@ -1947,17 +1947,23 @@ function DocItem({ label, link }) {
|
|
|
1947
1947
|
|
|
1948
1948
|
// src/components/FilePane.tsx
|
|
1949
1949
|
import React12 from "react";
|
|
1950
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
1950
1951
|
function FilePane({
|
|
1951
1952
|
name,
|
|
1952
1953
|
children,
|
|
1953
1954
|
priority,
|
|
1955
|
+
minWidth,
|
|
1954
1956
|
...divProps
|
|
1955
1957
|
}) {
|
|
1956
|
-
|
|
1958
|
+
const content = React12.isValidElement(children) ? React12.cloneElement(children, {
|
|
1957
1959
|
// @ts-expect-error cloning
|
|
1958
1960
|
priority,
|
|
1959
1961
|
name
|
|
1960
1962
|
}) : children;
|
|
1963
|
+
if (minWidth) {
|
|
1964
|
+
return /* @__PURE__ */ jsx28("div", { ...divProps, style: { minWidth, ...divProps.style }, children: content });
|
|
1965
|
+
}
|
|
1966
|
+
return content;
|
|
1961
1967
|
}
|
|
1962
1968
|
FilePane.mdxType = "FilePane";
|
|
1963
1969
|
|
|
@@ -1966,7 +1972,7 @@ import { animated as animated6, useSpring as useSpring5 } from "@react-spring/we
|
|
|
1966
1972
|
import React13 from "react";
|
|
1967
1973
|
import { Stepper as Stepper2 } from "spectacle";
|
|
1968
1974
|
import styled15 from "styled-components";
|
|
1969
|
-
import { jsx as
|
|
1975
|
+
import { jsx as jsx29, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
1970
1976
|
var Container = styled15.div`
|
|
1971
1977
|
display: grid;
|
|
1972
1978
|
grid-gap: 2rem;
|
|
@@ -1976,7 +1982,7 @@ function HorizontalList({
|
|
|
1976
1982
|
columns = 3
|
|
1977
1983
|
}) {
|
|
1978
1984
|
const items = React13.Children.toArray(children);
|
|
1979
|
-
return /* @__PURE__ */
|
|
1985
|
+
return /* @__PURE__ */ jsx29(Stepper2, { values: items, children: (_, step) => /* @__PURE__ */ jsx29(
|
|
1980
1986
|
Container,
|
|
1981
1987
|
{
|
|
1982
1988
|
style: {
|
|
@@ -1997,7 +2003,7 @@ function HorizontalList({
|
|
|
1997
2003
|
) });
|
|
1998
2004
|
}
|
|
1999
2005
|
function Pill({ position }) {
|
|
2000
|
-
return /* @__PURE__ */
|
|
2006
|
+
return /* @__PURE__ */ jsx29(
|
|
2001
2007
|
"div",
|
|
2002
2008
|
{
|
|
2003
2009
|
style: { width: 48, transform: "translate(-25%, -25%)", opacity: 0.9 },
|
|
@@ -2010,14 +2016,14 @@ function Pill({ position }) {
|
|
|
2010
2016
|
fill: "none",
|
|
2011
2017
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2012
2018
|
children: [
|
|
2013
|
-
/* @__PURE__ */
|
|
2019
|
+
/* @__PURE__ */ jsx29(
|
|
2014
2020
|
"path",
|
|
2015
2021
|
{
|
|
2016
2022
|
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",
|
|
2017
2023
|
fill: "#ffffff"
|
|
2018
2024
|
}
|
|
2019
2025
|
),
|
|
2020
|
-
/* @__PURE__ */
|
|
2026
|
+
/* @__PURE__ */ jsx29(
|
|
2021
2027
|
"text",
|
|
2022
2028
|
{
|
|
2023
2029
|
x: "9",
|
|
@@ -2029,7 +2035,7 @@ function Pill({ position }) {
|
|
|
2029
2035
|
children: position
|
|
2030
2036
|
}
|
|
2031
2037
|
),
|
|
2032
|
-
/* @__PURE__ */
|
|
2038
|
+
/* @__PURE__ */ jsx29(
|
|
2033
2039
|
"path",
|
|
2034
2040
|
{
|
|
2035
2041
|
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",
|
|
@@ -2085,16 +2091,16 @@ function HorizontalListItem({
|
|
|
2085
2091
|
});
|
|
2086
2092
|
return /* @__PURE__ */ jsxs19(Item, { style: opacityStyles, children: [
|
|
2087
2093
|
/* @__PURE__ */ jsxs19(ItemHead, { children: [
|
|
2088
|
-
/* @__PURE__ */
|
|
2089
|
-
/* @__PURE__ */
|
|
2094
|
+
/* @__PURE__ */ jsx29(Pill, { position }),
|
|
2095
|
+
/* @__PURE__ */ jsx29("p", { children: title })
|
|
2090
2096
|
] }),
|
|
2091
|
-
/* @__PURE__ */
|
|
2097
|
+
/* @__PURE__ */ jsx29(ItemContent, { children })
|
|
2092
2098
|
] });
|
|
2093
2099
|
}
|
|
2094
2100
|
|
|
2095
2101
|
// src/components/IconBox.tsx
|
|
2096
2102
|
import styled16 from "styled-components";
|
|
2097
|
-
import { jsx as
|
|
2103
|
+
import { jsx as jsx30, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
2098
2104
|
var IconBoxContent = styled16.div`
|
|
2099
2105
|
* {
|
|
2100
2106
|
margin: 0.2rem !important;
|
|
@@ -2115,8 +2121,8 @@ function IconBox({
|
|
|
2115
2121
|
padding: "1rem 0"
|
|
2116
2122
|
},
|
|
2117
2123
|
children: [
|
|
2118
|
-
/* @__PURE__ */
|
|
2119
|
-
/* @__PURE__ */
|
|
2124
|
+
/* @__PURE__ */ jsx30("div", { style: { fontSize: 60 }, children: icon }),
|
|
2125
|
+
/* @__PURE__ */ jsx30(IconBoxContent, { children })
|
|
2120
2126
|
]
|
|
2121
2127
|
}
|
|
2122
2128
|
);
|
|
@@ -2127,11 +2133,11 @@ import { animated as animated7, useSpring as useSpring6 } from "@react-spring/we
|
|
|
2127
2133
|
import React14 from "react";
|
|
2128
2134
|
import { Stepper as Stepper3 } from "spectacle";
|
|
2129
2135
|
import styled17 from "styled-components";
|
|
2130
|
-
import { jsx as
|
|
2136
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
2131
2137
|
function ItemsColumn(divProps) {
|
|
2132
2138
|
const { style: style2, children, ...props } = divProps;
|
|
2133
2139
|
const childrenArray = React14.Children.toArray(children);
|
|
2134
|
-
return /* @__PURE__ */
|
|
2140
|
+
return /* @__PURE__ */ jsx31(Stepper3, { values: childrenArray, children: (_value, step) => /* @__PURE__ */ jsx31(
|
|
2135
2141
|
"div",
|
|
2136
2142
|
{
|
|
2137
2143
|
style: {
|
|
@@ -2149,7 +2155,7 @@ function ItemsColumn(divProps) {
|
|
|
2149
2155
|
if (!React14.isValidElement(child)) {
|
|
2150
2156
|
return child;
|
|
2151
2157
|
}
|
|
2152
|
-
return /* @__PURE__ */
|
|
2158
|
+
return /* @__PURE__ */ jsx31(ItemColumnWrapper, { isVisible, children: child }, index);
|
|
2153
2159
|
})
|
|
2154
2160
|
}
|
|
2155
2161
|
) });
|
|
@@ -2167,7 +2173,7 @@ function ItemColumnWrapper({
|
|
|
2167
2173
|
...props
|
|
2168
2174
|
}) {
|
|
2169
2175
|
const styles = useSpring6({ opacity: isVisible ? 1 : 0 });
|
|
2170
|
-
return /* @__PURE__ */
|
|
2176
|
+
return /* @__PURE__ */ jsx31(ItemColumnWrapperStyled, { style: styles, ...props, children });
|
|
2171
2177
|
}
|
|
2172
2178
|
|
|
2173
2179
|
// src/components/Timeline.tsx
|
|
@@ -2200,7 +2206,7 @@ var TimelineItemTitle = styled18.div`
|
|
|
2200
2206
|
`;
|
|
2201
2207
|
|
|
2202
2208
|
// src/components/Timeline.tsx
|
|
2203
|
-
import { jsx as
|
|
2209
|
+
import { jsx as jsx32, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
2204
2210
|
var TimelineItemStyled = styled19(animated8.div)`
|
|
2205
2211
|
flex: 1;
|
|
2206
2212
|
flex-flow: column nowrap;
|
|
@@ -2246,11 +2252,24 @@ var style = {
|
|
|
2246
2252
|
alignItems: "center"
|
|
2247
2253
|
};
|
|
2248
2254
|
function Timeline(props) {
|
|
2249
|
-
const
|
|
2250
|
-
|
|
2255
|
+
const { activeIndex, ...rest } = props;
|
|
2256
|
+
const children = React15.Children.toArray(rest.children);
|
|
2257
|
+
if (activeIndex != null) {
|
|
2258
|
+
return /* @__PURE__ */ jsx32("div", { ...rest, style: { ...style, ...rest.style }, children: children.map((child, index) => {
|
|
2259
|
+
if (!React15.isValidElement(child)) {
|
|
2260
|
+
return child;
|
|
2261
|
+
}
|
|
2262
|
+
return React15.cloneElement(child, {
|
|
2263
|
+
// @ts-expect-error cloning
|
|
2264
|
+
isPhantom: activeIndex < index,
|
|
2265
|
+
isLast: activeIndex === index
|
|
2266
|
+
});
|
|
2267
|
+
}) });
|
|
2268
|
+
}
|
|
2269
|
+
return /* @__PURE__ */ jsx32(
|
|
2251
2270
|
Stepper4,
|
|
2252
2271
|
{
|
|
2253
|
-
...
|
|
2272
|
+
...rest,
|
|
2254
2273
|
values: children,
|
|
2255
2274
|
activeStyle: style,
|
|
2256
2275
|
inactiveStyle: style,
|
|
@@ -2295,16 +2314,16 @@ function TimelineItem(props) {
|
|
|
2295
2314
|
},
|
|
2296
2315
|
children: [
|
|
2297
2316
|
/* @__PURE__ */ jsxs21(TimelineItemContentPhantom, { children: [
|
|
2298
|
-
/* @__PURE__ */
|
|
2299
|
-
/* @__PURE__ */
|
|
2317
|
+
/* @__PURE__ */ jsx32(TimelineItemTitle, { children: title }),
|
|
2318
|
+
/* @__PURE__ */ jsx32(TimelineItemBody, { children })
|
|
2300
2319
|
] }),
|
|
2301
2320
|
/* @__PURE__ */ jsxs21(TimelineItemGuide, { style: colorStyles, children: [
|
|
2302
|
-
/* @__PURE__ */
|
|
2303
|
-
/* @__PURE__ */
|
|
2321
|
+
/* @__PURE__ */ jsx32(Hexagon, {}),
|
|
2322
|
+
/* @__PURE__ */ jsx32(TimelineItemGuideLine, { style: guideLineProps })
|
|
2304
2323
|
] }),
|
|
2305
2324
|
/* @__PURE__ */ jsxs21(TimelineItemContent, { children: [
|
|
2306
|
-
/* @__PURE__ */
|
|
2307
|
-
/* @__PURE__ */
|
|
2325
|
+
/* @__PURE__ */ jsx32(TimelineItemTitle, { children: title }),
|
|
2326
|
+
/* @__PURE__ */ jsx32(TimelineItemBody, { children })
|
|
2308
2327
|
] })
|
|
2309
2328
|
]
|
|
2310
2329
|
}
|
|
@@ -2320,14 +2339,14 @@ function Hexagon() {
|
|
|
2320
2339
|
fill: "none",
|
|
2321
2340
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2322
2341
|
children: [
|
|
2323
|
-
/* @__PURE__ */
|
|
2342
|
+
/* @__PURE__ */ jsx32(
|
|
2324
2343
|
"path",
|
|
2325
2344
|
{
|
|
2326
2345
|
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",
|
|
2327
2346
|
fill: "#F49676"
|
|
2328
2347
|
}
|
|
2329
2348
|
),
|
|
2330
|
-
/* @__PURE__ */
|
|
2349
|
+
/* @__PURE__ */ jsx32(
|
|
2331
2350
|
"path",
|
|
2332
2351
|
{
|
|
2333
2352
|
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",
|
|
@@ -2340,9 +2359,9 @@ function Hexagon() {
|
|
|
2340
2359
|
}
|
|
2341
2360
|
|
|
2342
2361
|
// src/index.tsx
|
|
2343
|
-
import { Fragment as Fragment3, jsx as
|
|
2362
|
+
import { Fragment as Fragment3, jsx as jsx33, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
2344
2363
|
function PassThrough({ children }) {
|
|
2345
|
-
return /* @__PURE__ */
|
|
2364
|
+
return /* @__PURE__ */ jsx33(Fragment3, { children });
|
|
2346
2365
|
}
|
|
2347
2366
|
var layouts = layouts_default;
|
|
2348
2367
|
var componentsMap2 = {
|
|
@@ -2378,9 +2397,9 @@ function Deck({
|
|
|
2378
2397
|
}
|
|
2379
2398
|
`;
|
|
2380
2399
|
}, [theme, mergedTheme]);
|
|
2381
|
-
return /* @__PURE__ */
|
|
2382
|
-
/* @__PURE__ */
|
|
2383
|
-
/* @__PURE__ */
|
|
2400
|
+
return /* @__PURE__ */ jsx33(React16.StrictMode, { children: /* @__PURE__ */ jsx33(PestacleProvider, { layouts: layouts2, children: /* @__PURE__ */ jsxs22(MDXProvider, { components: componentsMap2, children: [
|
|
2401
|
+
/* @__PURE__ */ jsx33(GlobalStyle, {}),
|
|
2402
|
+
/* @__PURE__ */ jsx33(
|
|
2384
2403
|
SpectacleDeck,
|
|
2385
2404
|
{
|
|
2386
2405
|
theme: mergedTheme,
|
|
@@ -2391,33 +2410,33 @@ function Deck({
|
|
|
2391
2410
|
const Component = slide.slideComponent;
|
|
2392
2411
|
const slideTransitionName = (_a = slide.metadata) == null ? void 0 : _a.transition;
|
|
2393
2412
|
const slideTransition2 = resolveTransition(slideTransitionName);
|
|
2394
|
-
return /* @__PURE__ */
|
|
2413
|
+
return /* @__PURE__ */ jsx33(Slide, { transition: slideTransition2, children: /* @__PURE__ */ jsx33(Component, {}) }, i);
|
|
2395
2414
|
})
|
|
2396
2415
|
}
|
|
2397
2416
|
)
|
|
2398
2417
|
] }) }) });
|
|
2399
2418
|
}
|
|
2400
2419
|
function Danger({ children }) {
|
|
2401
|
-
return /* @__PURE__ */
|
|
2420
|
+
return /* @__PURE__ */ jsx33("div", { style: { color: "red" }, children });
|
|
2402
2421
|
}
|
|
2403
2422
|
function Information({ children }) {
|
|
2404
|
-
return /* @__PURE__ */
|
|
2423
|
+
return /* @__PURE__ */ jsx33("div", { style: { color: "orange" }, children });
|
|
2405
2424
|
}
|
|
2406
2425
|
function Success({ children }) {
|
|
2407
|
-
return /* @__PURE__ */
|
|
2426
|
+
return /* @__PURE__ */ jsx33("div", { style: { color: "green" }, children });
|
|
2408
2427
|
}
|
|
2409
2428
|
function Warning({ children }) {
|
|
2410
|
-
return /* @__PURE__ */
|
|
2429
|
+
return /* @__PURE__ */ jsx33("div", { style: { color: "yellow" }, children });
|
|
2411
2430
|
}
|
|
2412
2431
|
function Side({ children }) {
|
|
2413
|
-
return /* @__PURE__ */
|
|
2432
|
+
return /* @__PURE__ */ jsx33("div", { children });
|
|
2414
2433
|
}
|
|
2415
2434
|
Side.mdxType = "Side";
|
|
2416
2435
|
function Documentation({ children }) {
|
|
2417
|
-
return /* @__PURE__ */
|
|
2436
|
+
return /* @__PURE__ */ jsx33("div", { children });
|
|
2418
2437
|
}
|
|
2419
2438
|
function Box2({ children }) {
|
|
2420
|
-
return /* @__PURE__ */
|
|
2439
|
+
return /* @__PURE__ */ jsx33("div", { children });
|
|
2421
2440
|
}
|
|
2422
2441
|
export {
|
|
2423
2442
|
AnimatedCounter,
|