@gpichot/spectacle-deck 1.0.4 → 1.0.7
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 +13 -4
- package/index.d.ts +6 -0
- package/index.mjs +11 -2
- package/package.json +1 -1
package/index.cjs
CHANGED
|
@@ -31,6 +31,8 @@ __export(src_exports, {
|
|
|
31
31
|
Danger: () => Danger,
|
|
32
32
|
Deck: () => Deck,
|
|
33
33
|
Doc: () => Doc,
|
|
34
|
+
DocItem: () => DocItem,
|
|
35
|
+
Documentation: () => Documentation,
|
|
34
36
|
FilePane: () => FilePane,
|
|
35
37
|
HorizontalList: () => HorizontalList,
|
|
36
38
|
HorizontalListItem: () => HorizontalListItem,
|
|
@@ -755,7 +757,7 @@ var HeadingThree = import_styled_components8.default.h3`
|
|
|
755
757
|
var import_react12 = __toESM(require("react"));
|
|
756
758
|
var import_react_is = __toESM(require("react-is"));
|
|
757
759
|
var import_react_syntax_highlighter = require("react-syntax-highlighter");
|
|
758
|
-
var
|
|
760
|
+
var import_prism = require("react-syntax-highlighter/dist/esm/styles/prism");
|
|
759
761
|
var import_spectacle4 = require("spectacle");
|
|
760
762
|
var import_styled_components9 = __toESM(require("styled-components"));
|
|
761
763
|
|
|
@@ -943,7 +945,7 @@ function CodeStepper({
|
|
|
943
945
|
hasSteps,
|
|
944
946
|
hasName
|
|
945
947
|
} = useCodeSteps(code);
|
|
946
|
-
return /* @__PURE__ */ import_react12.default.createElement(CodeContainer, null, import_meta.env.DEV && Boolean(prefixes == null ? void 0 : prefixes.length) && /* @__PURE__ */ import_react12.default.createElement("div", { style: { position: "absolute", top: 0, opacity: 0.5, left: 0 } }, /* @__PURE__ */ import_react12.default.createElement(Highlighter, { language, style:
|
|
948
|
+
return /* @__PURE__ */ import_react12.default.createElement(CodeContainer, null, import_meta.env.DEV && Boolean(prefixes == null ? void 0 : prefixes.length) && /* @__PURE__ */ import_react12.default.createElement("div", { style: { position: "absolute", top: 0, opacity: 0.5, left: 0 } }, /* @__PURE__ */ import_react12.default.createElement(Highlighter, { language, style: import_prism.gruvboxDark }, prefixes.join(""))), /* @__PURE__ */ import_react12.default.createElement(
|
|
947
949
|
import_spectacle4.Stepper,
|
|
948
950
|
{
|
|
949
951
|
values: steps,
|
|
@@ -963,7 +965,7 @@ function CodeStepper({
|
|
|
963
965
|
language,
|
|
964
966
|
wrapLines: true,
|
|
965
967
|
showLineNumbers: true,
|
|
966
|
-
style:
|
|
968
|
+
style: import_prism.gruvboxDark,
|
|
967
969
|
lineNumberStyle: (lineNumber) => {
|
|
968
970
|
const { highlight = [] } = step || {};
|
|
969
971
|
const isHighlighted = highlight.includes(lineNumber);
|
|
@@ -1057,9 +1059,10 @@ var componentsMap = {
|
|
|
1057
1059
|
CustomHeading,
|
|
1058
1060
|
{
|
|
1059
1061
|
fontSize: "h1",
|
|
1060
|
-
fontWeight: 400,
|
|
1061
1062
|
color: "white",
|
|
1062
1063
|
style: {
|
|
1064
|
+
fontWeight: 500,
|
|
1065
|
+
fontFamily: 'Bitter,"Helvetica Neue",Helvetica,Arial,sans-serif',
|
|
1063
1066
|
fontSize: 67,
|
|
1064
1067
|
flex: "0 1 65vw",
|
|
1065
1068
|
maxWidth: "65%",
|
|
@@ -1517,6 +1520,12 @@ function Side({ children }) {
|
|
|
1517
1520
|
return /* @__PURE__ */ import_react19.default.createElement("div", null, children);
|
|
1518
1521
|
}
|
|
1519
1522
|
Side.mdxType = "Side";
|
|
1523
|
+
function Documentation({ children }) {
|
|
1524
|
+
return /* @__PURE__ */ import_react19.default.createElement("div", null, children);
|
|
1525
|
+
}
|
|
1526
|
+
function DocItem({ children }) {
|
|
1527
|
+
return /* @__PURE__ */ import_react19.default.createElement("div", null, children);
|
|
1528
|
+
}
|
|
1520
1529
|
|
|
1521
1530
|
// <stdin>
|
|
1522
1531
|
module.exports = src_exports;
|
package/index.d.ts
CHANGED
|
@@ -45,3 +45,9 @@ export declare function Side({ children }: {
|
|
|
45
45
|
export declare namespace Side {
|
|
46
46
|
var mdxType: string;
|
|
47
47
|
}
|
|
48
|
+
export declare function Documentation({ children }: {
|
|
49
|
+
children: React.ReactNode;
|
|
50
|
+
}): React.JSX.Element;
|
|
51
|
+
export declare function DocItem({ children }: {
|
|
52
|
+
children: React.ReactNode;
|
|
53
|
+
}): React.JSX.Element;
|
package/index.mjs
CHANGED
|
@@ -714,7 +714,7 @@ var HeadingThree = styled8.h3`
|
|
|
714
714
|
import React12 from "react";
|
|
715
715
|
import ReactIs from "react-is";
|
|
716
716
|
import { Prism as SyntaxHighlighter } from "react-syntax-highlighter";
|
|
717
|
-
import gruvboxDark from "react-syntax-highlighter/dist/
|
|
717
|
+
import { gruvboxDark } from "react-syntax-highlighter/dist/esm/styles/prism";
|
|
718
718
|
import { Stepper } from "spectacle";
|
|
719
719
|
import styled9 from "styled-components";
|
|
720
720
|
|
|
@@ -1015,9 +1015,10 @@ var componentsMap = {
|
|
|
1015
1015
|
CustomHeading,
|
|
1016
1016
|
{
|
|
1017
1017
|
fontSize: "h1",
|
|
1018
|
-
fontWeight: 400,
|
|
1019
1018
|
color: "white",
|
|
1020
1019
|
style: {
|
|
1020
|
+
fontWeight: 500,
|
|
1021
|
+
fontFamily: 'Bitter,"Helvetica Neue",Helvetica,Arial,sans-serif',
|
|
1021
1022
|
fontSize: 67,
|
|
1022
1023
|
flex: "0 1 65vw",
|
|
1023
1024
|
maxWidth: "65%",
|
|
@@ -1475,10 +1476,18 @@ function Side({ children }) {
|
|
|
1475
1476
|
return /* @__PURE__ */ React19.createElement("div", null, children);
|
|
1476
1477
|
}
|
|
1477
1478
|
Side.mdxType = "Side";
|
|
1479
|
+
function Documentation({ children }) {
|
|
1480
|
+
return /* @__PURE__ */ React19.createElement("div", null, children);
|
|
1481
|
+
}
|
|
1482
|
+
function DocItem({ children }) {
|
|
1483
|
+
return /* @__PURE__ */ React19.createElement("div", null, children);
|
|
1484
|
+
}
|
|
1478
1485
|
export {
|
|
1479
1486
|
Danger,
|
|
1480
1487
|
Deck,
|
|
1481
1488
|
Doc,
|
|
1489
|
+
DocItem,
|
|
1490
|
+
Documentation,
|
|
1482
1491
|
FilePane,
|
|
1483
1492
|
HorizontalList,
|
|
1484
1493
|
HorizontalListItem,
|