@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.
Files changed (80) hide show
  1. package/.turbo/turbo-build.log +4 -0
  2. package/.turbo/turbo-dev.log +4 -0
  3. package/dist/SlideWrapper.d.ts +7 -0
  4. package/dist/colors.d.ts +14 -0
  5. package/dist/components/QRCode.d.ts +6 -0
  6. package/dist/components/Timeline.styled.d.ts +7 -0
  7. package/{components → dist/components}/map.d.ts +2 -0
  8. package/dist/components/styled.d.ts +12 -0
  9. package/dist/context.d.ts +11 -0
  10. package/{index.cjs → dist/index.cjs} +321 -200
  11. package/{index.d.ts → dist/index.d.ts} +30 -7
  12. package/{index.mjs → dist/index.mjs} +312 -191
  13. package/{layouts → dist/layouts}/BaseLayout.d.ts +1 -1
  14. package/dist/layouts/SectionLayout.d.ts +2 -0
  15. package/{layouts → dist/layouts}/index.d.ts +1 -1
  16. package/dist/layouts/styled.d.ts +2 -0
  17. package/package.json +29 -23
  18. package/publish.sh +7 -0
  19. package/scripts/bundle.ts +84 -0
  20. package/src/SlideWrapper.tsx +25 -0
  21. package/src/colors.ts +42 -0
  22. package/src/components/CodeStepper/CodeStepper.tsx +228 -0
  23. package/src/components/CodeStepper/code-directives.test.ts +58 -0
  24. package/src/components/CodeStepper/code-directives.ts +129 -0
  25. package/src/components/DocumentationItem.tsx +85 -0
  26. package/src/components/FilePane.tsx +18 -0
  27. package/src/components/HorizontalList.tsx +141 -0
  28. package/src/components/IconBox.tsx +31 -0
  29. package/src/components/Image.tsx +39 -0
  30. package/src/components/ItemsColumn.tsx +60 -0
  31. package/src/components/QRCode.tsx +55 -0
  32. package/src/components/Timeline.styled.tsx +24 -0
  33. package/src/components/Timeline.tsx +159 -0
  34. package/src/components/map.tsx +128 -0
  35. package/src/components/styled.tsx +73 -0
  36. package/src/context.tsx +33 -0
  37. package/src/front.png +0 -0
  38. package/src/index.tsx +127 -0
  39. package/src/layouts/BaseLayout.tsx +52 -0
  40. package/src/layouts/CenteredLayout.tsx +40 -0
  41. package/src/layouts/Default3Layout.tsx +159 -0
  42. package/src/layouts/MainSectionLayout.tsx +31 -0
  43. package/src/layouts/QuoteLayout.tsx +107 -0
  44. package/src/layouts/SectionLayout.tsx +14 -0
  45. package/src/layouts/SideCodeLayout.tsx +44 -0
  46. package/src/layouts/SideImageLayout.tsx +82 -0
  47. package/src/layouts/SideLayout.tsx +31 -0
  48. package/src/layouts/columns.tsx +56 -0
  49. package/src/layouts/index.tsx +19 -0
  50. package/src/layouts/styled.ts +7 -0
  51. package/src/layouts/utils.ts +66 -0
  52. package/src/node.d.ts +5 -0
  53. package/src/style.d.ts +10 -0
  54. package/src/template.tsx +25 -0
  55. package/src/theme.ts +28 -0
  56. package/tsconfig.json +29 -0
  57. package/components/Timeline.styled.d.ts +0 -7
  58. package/components/styled.d.ts +0 -12
  59. package/layouts/SectionLayout.d.ts +0 -2
  60. package/layouts/styled.d.ts +0 -2
  61. /package/{components → dist/components}/CodeStepper/CodeStepper.d.ts +0 -0
  62. /package/{components → dist/components}/CodeStepper/code-directives.d.ts +0 -0
  63. /package/{components → dist/components}/DocumentationItem.d.ts +0 -0
  64. /package/{components → dist/components}/FilePane.d.ts +0 -0
  65. /package/{components → dist/components}/HorizontalList.d.ts +0 -0
  66. /package/{components → dist/components}/IconBox.d.ts +0 -0
  67. /package/{components → dist/components}/Image.d.ts +0 -0
  68. /package/{components → dist/components}/ItemsColumn.d.ts +0 -0
  69. /package/{components → dist/components}/Timeline.d.ts +0 -0
  70. /package/{layouts → dist/layouts}/CenteredLayout.d.ts +0 -0
  71. /package/{layouts → dist/layouts}/Default3Layout.d.ts +0 -0
  72. /package/{layouts → dist/layouts}/MainSectionLayout.d.ts +0 -0
  73. /package/{layouts → dist/layouts}/QuoteLayout.d.ts +0 -0
  74. /package/{layouts → dist/layouts}/SideCodeLayout.d.ts +0 -0
  75. /package/{layouts → dist/layouts}/SideImageLayout.d.ts +0 -0
  76. /package/{layouts → dist/layouts}/SideLayout.d.ts +0 -0
  77. /package/{layouts → dist/layouts}/columns.d.ts +0 -0
  78. /package/{layouts → dist/layouts}/utils.d.ts +0 -0
  79. /package/{template.d.ts → dist/template.d.ts} +0 -0
  80. /package/{theme.d.ts → dist/theme.d.ts} +0 -0
@@ -1,5 +1,6 @@
1
1
  import React from "react";
2
- export * from 'spectacle';
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 function Layout({ children, frontmatter, }: {
24
- children: React.ReactNode;
25
- frontmatter: {
26
- layout?: string;
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
- }): React.JSX.Element;
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;