@gpichot/spectacle-deck 1.1.7 → 1.2.1
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/.turbo/turbo-build.log +4 -0
- package/.turbo/turbo-dev.log +4 -0
- package/dist/SlideWrapper.d.ts +7 -0
- package/dist/colors.d.ts +14 -0
- package/dist/components/QRCode.d.ts +6 -0
- package/dist/components/Timeline.styled.d.ts +7 -0
- package/{components → dist/components}/map.d.ts +2 -0
- package/dist/components/styled.d.ts +12 -0
- package/dist/context.d.ts +11 -0
- package/{index.cjs → dist/index.cjs} +321 -200
- package/{index.d.ts → dist/index.d.ts} +30 -7
- package/{index.mjs → dist/index.mjs} +312 -191
- package/{layouts → dist/layouts}/BaseLayout.d.ts +1 -1
- package/dist/layouts/SectionLayout.d.ts +2 -0
- package/{layouts → dist/layouts}/index.d.ts +1 -1
- package/dist/layouts/styled.d.ts +2 -0
- package/package.json +29 -23
- package/publish.sh +7 -0
- package/scripts/bundle.ts +84 -0
- package/src/SlideWrapper.tsx +25 -0
- package/src/colors.ts +42 -0
- package/src/components/CodeStepper/CodeStepper.tsx +228 -0
- package/src/components/CodeStepper/code-directives.test.ts +58 -0
- package/src/components/CodeStepper/code-directives.ts +129 -0
- package/src/components/DocumentationItem.tsx +85 -0
- package/src/components/FilePane.tsx +18 -0
- package/src/components/HorizontalList.tsx +141 -0
- package/src/components/IconBox.tsx +31 -0
- package/src/components/Image.tsx +39 -0
- package/src/components/ItemsColumn.tsx +60 -0
- package/src/components/QRCode.tsx +55 -0
- package/src/components/Timeline.styled.tsx +24 -0
- package/src/components/Timeline.tsx +159 -0
- package/src/components/map.tsx +128 -0
- package/src/components/styled.tsx +73 -0
- package/src/context.tsx +33 -0
- package/src/front.png +0 -0
- package/src/index.tsx +127 -0
- package/src/layouts/BaseLayout.tsx +52 -0
- package/src/layouts/CenteredLayout.tsx +40 -0
- package/src/layouts/Default3Layout.tsx +159 -0
- package/src/layouts/MainSectionLayout.tsx +31 -0
- package/src/layouts/QuoteLayout.tsx +107 -0
- package/src/layouts/SectionLayout.tsx +14 -0
- package/src/layouts/SideCodeLayout.tsx +44 -0
- package/src/layouts/SideImageLayout.tsx +82 -0
- package/src/layouts/SideLayout.tsx +31 -0
- package/src/layouts/columns.tsx +56 -0
- package/src/layouts/index.tsx +19 -0
- package/src/layouts/styled.ts +7 -0
- package/src/layouts/utils.ts +66 -0
- package/src/node.d.ts +5 -0
- package/src/style.d.ts +10 -0
- package/src/template.tsx +25 -0
- package/src/theme.ts +28 -0
- package/tsconfig.json +29 -0
- package/components/Timeline.styled.d.ts +0 -7
- package/components/styled.d.ts +0 -12
- package/layouts/SectionLayout.d.ts +0 -2
- package/layouts/styled.d.ts +0 -2
- /package/{components → dist/components}/CodeStepper/CodeStepper.d.ts +0 -0
- /package/{components → dist/components}/CodeStepper/code-directives.d.ts +0 -0
- /package/{components → dist/components}/DocumentationItem.d.ts +0 -0
- /package/{components → dist/components}/FilePane.d.ts +0 -0
- /package/{components → dist/components}/HorizontalList.d.ts +0 -0
- /package/{components → dist/components}/IconBox.d.ts +0 -0
- /package/{components → dist/components}/Image.d.ts +0 -0
- /package/{components → dist/components}/ItemsColumn.d.ts +0 -0
- /package/{components → dist/components}/Timeline.d.ts +0 -0
- /package/{layouts → dist/layouts}/CenteredLayout.d.ts +0 -0
- /package/{layouts → dist/layouts}/Default3Layout.d.ts +0 -0
- /package/{layouts → dist/layouts}/MainSectionLayout.d.ts +0 -0
- /package/{layouts → dist/layouts}/QuoteLayout.d.ts +0 -0
- /package/{layouts → dist/layouts}/SideCodeLayout.d.ts +0 -0
- /package/{layouts → dist/layouts}/SideImageLayout.d.ts +0 -0
- /package/{layouts → dist/layouts}/SideLayout.d.ts +0 -0
- /package/{layouts → dist/layouts}/columns.d.ts +0 -0
- /package/{layouts → dist/layouts}/utils.d.ts +0 -0
- /package/{template.d.ts → dist/template.d.ts} +0 -0
- /package/{theme.d.ts → dist/theme.d.ts} +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
2
|
+
import { LayoutComponent } from "./context";
|
|
3
|
+
export * from "spectacle";
|
|
3
4
|
export { default as FilePane } from "./components/FilePane";
|
|
4
5
|
export { ItemsColumn } from "./components/ItemsColumn";
|
|
5
6
|
export { Doc, DocItem } from "./components/DocumentationItem";
|
|
@@ -20,14 +21,36 @@ export type DeckType = {
|
|
|
20
21
|
export declare function PassThrough({ children }: {
|
|
21
22
|
children: React.ReactNode;
|
|
22
23
|
}): React.JSX.Element;
|
|
23
|
-
export declare
|
|
24
|
-
children:
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
export declare const layouts: {
|
|
25
|
+
mainSection: ({ children, }: {
|
|
26
|
+
children: React.ReactNode;
|
|
27
|
+
}) => React.JSX.Element;
|
|
28
|
+
centered: (props: Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">) => React.JSX.Element;
|
|
29
|
+
default3: ({ children, position, }: {
|
|
30
|
+
children: React.ReactNode;
|
|
31
|
+
position?: "left" | "right";
|
|
32
|
+
}) => React.JSX.Element;
|
|
33
|
+
quote: typeof import("./layouts/QuoteLayout").QuoteLayout;
|
|
34
|
+
sidedCode: typeof import("./layouts/SideCodeLayout").SidedCodeLayout;
|
|
35
|
+
sidedImage: ({ children, image, position, height, ratio: ratioProp, }: {
|
|
36
|
+
children: React.ReactNode;
|
|
37
|
+
image?: string;
|
|
38
|
+
position?: "left" | "right";
|
|
39
|
+
ratio?: string;
|
|
40
|
+
height?: number;
|
|
41
|
+
}) => React.JSX.Element;
|
|
42
|
+
side: typeof import("./layouts/SideLayout").SideLayout;
|
|
43
|
+
section: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
44
|
+
};
|
|
45
|
+
interface ThemeOptions {
|
|
46
|
+
themeTokens: {
|
|
47
|
+
colors: Record<string, string>;
|
|
27
48
|
};
|
|
28
|
-
}
|
|
29
|
-
export declare function Deck({ deck }: {
|
|
49
|
+
}
|
|
50
|
+
export declare function Deck({ deck, theme, layouts, }: {
|
|
30
51
|
deck: DeckType;
|
|
52
|
+
theme: ThemeOptions;
|
|
53
|
+
layouts?: Record<string, LayoutComponent>;
|
|
31
54
|
}): React.JSX.Element;
|
|
32
55
|
export declare function Danger({ children }: {
|
|
33
56
|
children: React.ReactNode;
|