@gpichot/spectacle-deck 1.2.11 → 1.5.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.
Files changed (45) hide show
  1. package/SlideWrapper.d.ts +2 -2
  2. package/components/CodeStepper/CodeStepper.d.ts +1 -1
  3. package/components/DocumentationItem.d.ts +3 -3
  4. package/components/FilePane.d.ts +1 -1
  5. package/components/HorizontalList.d.ts +2 -2
  6. package/components/IconBox.d.ts +2 -2
  7. package/components/Image.d.ts +2 -2
  8. package/components/ItemsColumn.d.ts +1 -1
  9. package/components/Mermaid.d.ts +5 -0
  10. package/components/QRCode.d.ts +1 -2
  11. package/components/Timeline.d.ts +2 -2
  12. package/components/Timeline.styled.d.ts +1 -4
  13. package/components/animations/AnimatedCounter.d.ts +18 -0
  14. package/components/animations/FadeIn.d.ts +14 -0
  15. package/components/animations/ProgressRing.d.ts +21 -0
  16. package/components/animations/ScaleIn.d.ts +12 -0
  17. package/components/animations/Spotlight.d.ts +10 -0
  18. package/components/animations/StaggerChildren.d.ts +16 -0
  19. package/components/animations/TypeWriter.d.ts +13 -0
  20. package/components/animations/index.d.ts +7 -0
  21. package/components/animations/useInView.d.ts +10 -0
  22. package/components/map.d.ts +15 -181
  23. package/components/styled.d.ts +4 -4
  24. package/context.d.ts +1 -1
  25. package/index.cjs +2000 -1388
  26. package/index.d.ts +30 -19
  27. package/index.mjs +2001 -1386
  28. package/layouts/BigNumberLayout.d.ts +5 -0
  29. package/layouts/CenteredLayout.d.ts +2 -2
  30. package/layouts/Default3Layout.d.ts +2 -2
  31. package/layouts/FullImageLayout.d.ts +7 -0
  32. package/layouts/MainSectionLayout.d.ts +2 -2
  33. package/layouts/QuoteLayout.d.ts +2 -2
  34. package/layouts/SectionLayout.d.ts +0 -1
  35. package/layouts/SideCodeLayout.d.ts +2 -2
  36. package/layouts/SideImageLayout.d.ts +2 -2
  37. package/layouts/SideLayout.d.ts +2 -2
  38. package/layouts/columns.d.ts +1 -1
  39. package/layouts/index.d.ts +11 -8
  40. package/layouts/styled.d.ts +0 -1
  41. package/layouts/utils.d.ts +6 -4
  42. package/package.json +11 -10
  43. package/template.d.ts +4 -5
  44. package/transitions.d.ts +14 -0
  45. package/layouts/BaseLayout.d.ts +0 -5
package/SlideWrapper.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import React from "react";
1
+ import type React from "react";
2
2
  export declare function SlideWrapper({ children, frontmatter, }: {
3
3
  children: React.ReactNode;
4
4
  frontmatter: {
5
5
  layout?: string;
6
6
  };
7
- }): React.JSX.Element;
7
+ }): import("react/jsx-runtime").JSX.Element;
@@ -2,7 +2,7 @@ import React from "react";
2
2
  declare function CodeStepper({ priority, name, ...props }: React.ComponentProps<"pre"> & {
3
3
  priority?: number;
4
4
  name?: string;
5
- }): React.JSX.Element;
5
+ }): import("react/jsx-runtime").JSX.Element;
6
6
  declare namespace CodeStepper {
7
7
  var mdxType: string;
8
8
  }
@@ -1,10 +1,10 @@
1
- import React from "react";
1
+ import type React from "react";
2
2
  export declare function Doc({ label, link, children, }: {
3
3
  label: string;
4
4
  link: string;
5
5
  children: React.ReactNode;
6
- }): React.JSX.Element;
6
+ }): import("react/jsx-runtime").JSX.Element;
7
7
  export declare function DocItem({ label, link }: {
8
8
  label: string;
9
9
  link: string;
10
- }): React.JSX.Element;
10
+ }): import("react/jsx-runtime").JSX.Element;
@@ -2,7 +2,7 @@ import React from "react";
2
2
  declare function FilePane({ name, children, priority, ...divProps }: React.ComponentProps<"div"> & {
3
3
  name: string;
4
4
  priority?: number;
5
- }): string | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode>;
5
+ }): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode>> | React.DetailedReactHTMLElement<unknown, HTMLElement>;
6
6
  declare namespace FilePane {
7
7
  var mdxType: string;
8
8
  }
@@ -2,11 +2,11 @@ import React from "react";
2
2
  export default function HorizontalList({ children, columns, }: {
3
3
  columns?: number;
4
4
  children: React.ReactNode;
5
- }): React.JSX.Element;
5
+ }): import("react/jsx-runtime").JSX.Element;
6
6
  export declare function HorizontalListItem({ title, children, position, isVisible, isLast, }: {
7
7
  title: string;
8
8
  position: number;
9
9
  isVisible?: boolean;
10
10
  isLast?: boolean;
11
11
  children: React.ReactNode;
12
- }): React.JSX.Element;
12
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
- import React from "react";
1
+ import type React from "react";
2
2
  export declare function IconBox({ children, icon, }: {
3
3
  children: React.ReactNode;
4
4
  icon: React.ReactNode;
5
- }): React.JSX.Element;
5
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
- import React from "react";
1
+ import type React from "react";
2
2
  export interface ImageProps extends React.ComponentProps<"img"> {
3
3
  }
4
- export declare function Image(props: ImageProps): React.JSX.Element;
4
+ export declare function Image(props: ImageProps): import("react/jsx-runtime").JSX.Element;
5
5
  export declare namespace Image {
6
6
  var mdxType: string;
7
7
  }
@@ -1,2 +1,2 @@
1
1
  import React from "react";
2
- export declare function ItemsColumn(divProps: React.ComponentProps<"div">): React.JSX.Element;
2
+ export declare function ItemsColumn(divProps: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ export interface MermaidProps {
2
+ chart: string;
3
+ width?: string;
4
+ }
5
+ export declare function Mermaid({ chart, width }: MermaidProps): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,5 @@
1
- import React from "react";
2
1
  export interface QRCodeProps {
3
2
  url: string;
4
3
  size?: "xs" | "sm" | "md" | "lg";
5
4
  }
6
- export declare function QRCode({ url, size }: QRCodeProps): React.JSX.Element;
5
+ export declare function QRCode({ url, size }: QRCodeProps): import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,8 @@
1
1
  import React from "react";
2
- export default function Timeline(props: React.ComponentPropsWithoutRef<"div">): React.JSX.Element;
2
+ export default function Timeline(props: React.ComponentPropsWithoutRef<"div">): import("react/jsx-runtime").JSX.Element;
3
3
  export declare function TimelineItem(props: React.ComponentPropsWithoutRef<"div"> & {
4
4
  isPhantom?: boolean;
5
5
  isLast?: boolean;
6
6
  isOdd?: boolean;
7
7
  isEven?: boolean;
8
- }): React.JSX.Element;
8
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,4 @@
1
- /// <reference types="react" />
2
1
  export declare const TimelineItemContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
3
- export declare const TimelineItemContentPhantom: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, "ref"> & {
4
- ref?: import("react").Ref<HTMLDivElement>;
5
- }, never>> & string;
2
+ export declare const TimelineItemContentPhantom: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, never>> & string;
6
3
  export declare const TimelineItemBody: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
7
4
  export declare const TimelineItemTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -0,0 +1,18 @@
1
+ interface AnimatedCounterProps {
2
+ /** Target number to count to */
3
+ to: number;
4
+ /** Starting number. Default: 0 */
5
+ from?: number;
6
+ /** Duration in milliseconds. Default: 1500 */
7
+ duration?: number;
8
+ /** Delay before starting in milliseconds. Default: 0 */
9
+ delay?: number;
10
+ /** Number of decimal places. Default: 0 */
11
+ decimals?: number;
12
+ /** Prefix string (e.g. "$"). Default: "" */
13
+ prefix?: string;
14
+ /** Suffix string (e.g. "%"). Default: "" */
15
+ suffix?: string;
16
+ }
17
+ export declare function AnimatedCounter({ to, from, duration, delay, decimals, prefix, suffix, }: AnimatedCounterProps): import("react/jsx-runtime").JSX.Element;
18
+ export {};
@@ -0,0 +1,14 @@
1
+ import type React from "react";
2
+ interface FadeInProps {
3
+ children: React.ReactNode;
4
+ /** Direction to fade in from. Default: "up" */
5
+ direction?: "up" | "down" | "left" | "right" | "none";
6
+ /** Distance in pixels for the translate. Default: 20 */
7
+ distance?: number;
8
+ /** Delay in milliseconds before animation starts. Default: 0 */
9
+ delay?: number;
10
+ /** Duration in milliseconds. Default: 400 */
11
+ duration?: number;
12
+ }
13
+ export declare function FadeIn({ children, direction, distance, delay, duration, }: FadeInProps): import("react/jsx-runtime").JSX.Element;
14
+ export {};
@@ -0,0 +1,21 @@
1
+ import type React from "react";
2
+ interface ProgressRingProps {
3
+ /** Progress value from 0 to 100 */
4
+ value: number;
5
+ /** Ring size in pixels. Default: 120 */
6
+ size?: number;
7
+ /** Stroke width in pixels. Default: 8 */
8
+ strokeWidth?: number;
9
+ /** Ring color. Default: "var(--color-secondary)" */
10
+ color?: string;
11
+ /** Track color. Default: "rgba(255,255,255,0.1)" */
12
+ trackColor?: string;
13
+ /** Duration in milliseconds. Default: 1000 */
14
+ duration?: number;
15
+ /** Delay before animating in milliseconds. Default: 0 */
16
+ delay?: number;
17
+ /** Content to display in center */
18
+ children?: React.ReactNode;
19
+ }
20
+ export declare function ProgressRing({ value, size, strokeWidth, color, trackColor, duration, delay, children, }: ProgressRingProps): import("react/jsx-runtime").JSX.Element;
21
+ export {};
@@ -0,0 +1,12 @@
1
+ import type React from "react";
2
+ interface ScaleInProps {
3
+ children: React.ReactNode;
4
+ /** Initial scale. Default: 0 */
5
+ from?: number;
6
+ /** Delay in milliseconds. Default: 0 */
7
+ delay?: number;
8
+ /** Duration in milliseconds. Default: 400 */
9
+ duration?: number;
10
+ }
11
+ export declare function ScaleIn({ children, from, delay, duration, }: ScaleInProps): import("react/jsx-runtime").JSX.Element;
12
+ export {};
@@ -0,0 +1,10 @@
1
+ import type React from "react";
2
+ interface SpotlightProps {
3
+ children: React.ReactNode;
4
+ /** Whether the spotlight is active. Default: true */
5
+ active?: boolean;
6
+ /** Opacity of the dimmed overlay. Default: 0.7 */
7
+ dimOpacity?: number;
8
+ }
9
+ export declare function Spotlight({ children, active, dimOpacity, }: SpotlightProps): import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -0,0 +1,16 @@
1
+ import React from "react";
2
+ interface StaggerChildrenProps {
3
+ children: React.ReactNode;
4
+ /** Delay between each child in milliseconds. Default: 100 */
5
+ stagger?: number;
6
+ /** Initial delay before first child animates. Default: 0 */
7
+ delay?: number;
8
+ /** Animation duration per child in milliseconds. Default: 400 */
9
+ duration?: number;
10
+ /** Direction to fade in from. Default: "up" */
11
+ direction?: "up" | "down" | "left" | "right" | "none";
12
+ /** Distance in pixels for the translate. Default: 20 */
13
+ distance?: number;
14
+ }
15
+ export declare function StaggerChildren({ children, stagger, delay, duration, direction, distance, }: StaggerChildrenProps): import("react/jsx-runtime").JSX.Element;
16
+ export {};
@@ -0,0 +1,13 @@
1
+ import React from "react";
2
+ interface TypeWriterProps {
3
+ /** The text to type out. Accepts React children (text is extracted). */
4
+ children: React.ReactNode;
5
+ /** Typing speed in milliseconds per character. Default: 50 */
6
+ speed?: number;
7
+ /** Delay before typing starts in milliseconds. Default: 0 */
8
+ delay?: number;
9
+ /** Whether to show a blinking cursor. Default: true */
10
+ cursor?: boolean;
11
+ }
12
+ export declare function TypeWriter({ children, speed, delay, cursor, }: TypeWriterProps): import("react/jsx-runtime").JSX.Element;
13
+ export {};
@@ -0,0 +1,7 @@
1
+ export { AnimatedCounter } from "./AnimatedCounter";
2
+ export { FadeIn } from "./FadeIn";
3
+ export { ProgressRing } from "./ProgressRing";
4
+ export { ScaleIn } from "./ScaleIn";
5
+ export { Spotlight } from "./Spotlight";
6
+ export { StaggerChildren } from "./StaggerChildren";
7
+ export { TypeWriter } from "./TypeWriter";
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ /**
3
+ * Hook that detects when an element becomes visible in the viewport.
4
+ * Used to defer animations until the slide is actually shown
5
+ * (Spectacle pre-mounts all slides in the DOM).
6
+ */
7
+ export declare function useInView<T extends HTMLElement = HTMLDivElement>(): [
8
+ React.RefObject<T | null>,
9
+ boolean
10
+ ];
@@ -1,187 +1,21 @@
1
1
  import React from "react";
2
- import { Image } from "./styled";
3
2
  import CodeStepper from "./CodeStepper/CodeStepper";
3
+ import { Image } from "./styled";
4
4
  declare const componentsMap: {
5
- readonly inlineCode: (props: React.ComponentPropsWithoutRef<"code">) => React.JSX.Element;
6
- readonly table: (props: React.ComponentPropsWithoutRef<"table">) => React.JSX.Element;
7
- readonly tr: (props: React.ComponentPropsWithoutRef<"tr">) => React.JSX.Element;
8
- readonly td: (props: React.ComponentPropsWithoutRef<"td">) => React.JSX.Element;
9
- readonly h1: (props: React.ComponentProps<"h1">) => React.JSX.Element;
10
- readonly h2: (props: React.ComponentProps<"h2">) => React.JSX.Element;
11
- readonly h3: (props: React.ComponentPropsWithoutRef<"h3">) => React.JSX.Element;
12
- readonly img: (props: React.ComponentProps<typeof Image>) => React.JSX.Element;
5
+ readonly inlineCode: (props: React.ComponentPropsWithoutRef<"code">) => import("react/jsx-runtime").JSX.Element;
6
+ readonly table: (props: React.ComponentPropsWithoutRef<"table">) => import("react/jsx-runtime").JSX.Element;
7
+ readonly tr: (props: React.ComponentPropsWithoutRef<"tr">) => import("react/jsx-runtime").JSX.Element;
8
+ readonly td: (props: React.ComponentPropsWithoutRef<"td">) => import("react/jsx-runtime").JSX.Element;
9
+ readonly h1: (props: React.ComponentProps<"h1">) => import("react/jsx-runtime").JSX.Element;
10
+ readonly h2: (props: React.ComponentProps<"h2">) => import("react/jsx-runtime").JSX.Element;
11
+ readonly h3: (props: React.ComponentPropsWithoutRef<"h3">) => import("react/jsx-runtime").JSX.Element;
12
+ readonly img: (props: React.ComponentProps<typeof Image>) => import("react/jsx-runtime").JSX.Element;
13
13
  readonly pre: typeof CodeStepper;
14
- readonly li: (props: React.ComponentProps<"li">) => React.JSX.Element;
15
- readonly Side: (props: React.ComponentProps<"div">) => React.JSX.Element;
16
- readonly p: (props: React.ComponentProps<"p">) => React.JSX.Element;
17
- readonly blockquote: (props: React.ComponentProps<"blockquote">) => React.JSX.Element;
18
- readonly a: ({ children, ...props }: React.ComponentProps<"a">) => React.JSX.Element;
19
- readonly directive: (props: React.ComponentProps<"div">) => React.JSX.Element;
20
- readonly symbol?: React.ElementType;
21
- readonly object?: React.ElementType;
22
- readonly map?: React.ElementType;
23
- readonly filter?: React.ElementType;
24
- readonly code?: React.ElementType;
25
- readonly div?: React.ElementType;
26
- readonly abbr?: React.ElementType;
27
- readonly address?: React.ElementType;
28
- readonly area?: React.ElementType;
29
- readonly article?: React.ElementType;
30
- readonly aside?: React.ElementType;
31
- readonly audio?: React.ElementType;
32
- readonly b?: React.ElementType;
33
- readonly base?: React.ElementType;
34
- readonly bdi?: React.ElementType;
35
- readonly bdo?: React.ElementType;
36
- readonly big?: React.ElementType;
37
- readonly body?: React.ElementType;
38
- readonly br?: React.ElementType;
39
- readonly button?: React.ElementType;
40
- readonly canvas?: React.ElementType;
41
- readonly caption?: React.ElementType;
42
- readonly center?: React.ElementType;
43
- readonly cite?: React.ElementType;
44
- readonly col?: React.ElementType;
45
- readonly colgroup?: React.ElementType;
46
- readonly data?: React.ElementType;
47
- readonly datalist?: React.ElementType;
48
- readonly dd?: React.ElementType;
49
- readonly del?: React.ElementType;
50
- readonly details?: React.ElementType;
51
- readonly dfn?: React.ElementType;
52
- readonly dialog?: React.ElementType;
53
- readonly dl?: React.ElementType;
54
- readonly dt?: React.ElementType;
55
- readonly em?: React.ElementType;
56
- readonly embed?: React.ElementType;
57
- readonly fieldset?: React.ElementType;
58
- readonly figcaption?: React.ElementType;
59
- readonly figure?: React.ElementType;
60
- readonly footer?: React.ElementType;
61
- readonly form?: React.ElementType;
62
- readonly h4?: React.ElementType;
63
- readonly h5?: React.ElementType;
64
- readonly h6?: React.ElementType;
65
- readonly head?: React.ElementType;
66
- readonly header?: React.ElementType;
67
- readonly hgroup?: React.ElementType;
68
- readonly hr?: React.ElementType;
69
- readonly html?: React.ElementType;
70
- readonly i?: React.ElementType;
71
- readonly iframe?: React.ElementType;
72
- readonly input?: React.ElementType;
73
- readonly ins?: React.ElementType;
74
- readonly kbd?: React.ElementType;
75
- readonly keygen?: React.ElementType;
76
- readonly label?: React.ElementType;
77
- readonly legend?: React.ElementType;
78
- readonly link?: React.ElementType;
79
- readonly main?: React.ElementType;
80
- readonly mark?: React.ElementType;
81
- readonly menu?: React.ElementType;
82
- readonly menuitem?: React.ElementType;
83
- readonly meta?: React.ElementType;
84
- readonly meter?: React.ElementType;
85
- readonly nav?: React.ElementType;
86
- readonly noindex?: React.ElementType;
87
- readonly noscript?: React.ElementType;
88
- readonly ol?: React.ElementType;
89
- readonly optgroup?: React.ElementType;
90
- readonly option?: React.ElementType;
91
- readonly output?: React.ElementType;
92
- readonly param?: React.ElementType;
93
- readonly picture?: React.ElementType;
94
- readonly progress?: React.ElementType;
95
- readonly q?: React.ElementType;
96
- readonly rp?: React.ElementType;
97
- readonly rt?: React.ElementType;
98
- readonly ruby?: React.ElementType;
99
- readonly s?: React.ElementType;
100
- readonly samp?: React.ElementType;
101
- readonly search?: React.ElementType;
102
- readonly slot?: React.ElementType;
103
- readonly script?: React.ElementType;
104
- readonly section?: React.ElementType;
105
- readonly select?: React.ElementType;
106
- readonly small?: React.ElementType;
107
- readonly source?: React.ElementType;
108
- readonly span?: React.ElementType;
109
- readonly strong?: React.ElementType;
110
- readonly style?: React.ElementType;
111
- readonly sub?: React.ElementType;
112
- readonly summary?: React.ElementType;
113
- readonly sup?: React.ElementType;
114
- readonly template?: React.ElementType;
115
- readonly tbody?: React.ElementType;
116
- readonly textarea?: React.ElementType;
117
- readonly tfoot?: React.ElementType;
118
- readonly th?: React.ElementType;
119
- readonly thead?: React.ElementType;
120
- readonly time?: React.ElementType;
121
- readonly title?: React.ElementType;
122
- readonly track?: React.ElementType;
123
- readonly u?: React.ElementType;
124
- readonly ul?: React.ElementType;
125
- readonly var?: React.ElementType;
126
- readonly video?: React.ElementType;
127
- readonly wbr?: React.ElementType;
128
- readonly webview?: React.ElementType;
129
- readonly svg?: React.ElementType;
130
- readonly animate?: React.ElementType;
131
- readonly animateMotion?: React.ElementType;
132
- readonly animateTransform?: React.ElementType;
133
- readonly circle?: React.ElementType;
134
- readonly clipPath?: React.ElementType;
135
- readonly defs?: React.ElementType;
136
- readonly desc?: React.ElementType;
137
- readonly ellipse?: React.ElementType;
138
- readonly feBlend?: React.ElementType;
139
- readonly feColorMatrix?: React.ElementType;
140
- readonly feComponentTransfer?: React.ElementType;
141
- readonly feComposite?: React.ElementType;
142
- readonly feConvolveMatrix?: React.ElementType;
143
- readonly feDiffuseLighting?: React.ElementType;
144
- readonly feDisplacementMap?: React.ElementType;
145
- readonly feDistantLight?: React.ElementType;
146
- readonly feDropShadow?: React.ElementType;
147
- readonly feFlood?: React.ElementType;
148
- readonly feFuncA?: React.ElementType;
149
- readonly feFuncB?: React.ElementType;
150
- readonly feFuncG?: React.ElementType;
151
- readonly feFuncR?: React.ElementType;
152
- readonly feGaussianBlur?: React.ElementType;
153
- readonly feImage?: React.ElementType;
154
- readonly feMerge?: React.ElementType;
155
- readonly feMergeNode?: React.ElementType;
156
- readonly feMorphology?: React.ElementType;
157
- readonly feOffset?: React.ElementType;
158
- readonly fePointLight?: React.ElementType;
159
- readonly feSpecularLighting?: React.ElementType;
160
- readonly feSpotLight?: React.ElementType;
161
- readonly feTile?: React.ElementType;
162
- readonly feTurbulence?: React.ElementType;
163
- readonly foreignObject?: React.ElementType;
164
- readonly g?: React.ElementType;
165
- readonly image?: React.ElementType;
166
- readonly line?: React.ElementType;
167
- readonly linearGradient?: React.ElementType;
168
- readonly marker?: React.ElementType;
169
- readonly mask?: React.ElementType;
170
- readonly metadata?: React.ElementType;
171
- readonly mpath?: React.ElementType;
172
- readonly path?: React.ElementType;
173
- readonly pattern?: React.ElementType;
174
- readonly polygon?: React.ElementType;
175
- readonly polyline?: React.ElementType;
176
- readonly radialGradient?: React.ElementType;
177
- readonly rect?: React.ElementType;
178
- readonly set?: React.ElementType;
179
- readonly stop?: React.ElementType;
180
- readonly switch?: React.ElementType;
181
- readonly text?: React.ElementType;
182
- readonly textPath?: React.ElementType;
183
- readonly tspan?: React.ElementType;
184
- readonly use?: React.ElementType;
185
- readonly view?: React.ElementType;
14
+ readonly li: (props: React.ComponentProps<"li">) => import("react/jsx-runtime").JSX.Element;
15
+ readonly Side: (props: React.ComponentProps<"div">) => import("react/jsx-runtime").JSX.Element;
16
+ readonly p: (props: React.ComponentProps<"p">) => import("react/jsx-runtime").JSX.Element;
17
+ readonly blockquote: (props: React.ComponentProps<"blockquote">) => import("react/jsx-runtime").JSX.Element;
18
+ readonly a: ({ children, ...props }: React.ComponentProps<"a">) => import("react/jsx-runtime").JSX.Element;
19
+ readonly directive: (props: React.ComponentProps<"div">) => import("react/jsx-runtime").JSX.Element;
186
20
  };
187
21
  export default componentsMap;
@@ -1,11 +1,11 @@
1
- import React from "react";
1
+ import type React from "react";
2
2
  import { Image as SpectacleImage } from "spectacle";
3
3
  export declare const Link: (props: {
4
4
  href: string;
5
5
  children: React.ReactNode;
6
- }) => React.JSX.Element;
7
- export declare const Image: (props: React.ComponentProps<typeof SpectacleImage>) => React.JSX.Element;
8
- export declare const CustomHeading: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<any, never>> & string & (import("styled-components/dist/types").BaseObject | Omit<styled_components.StyledComponent<"div", any, any, never>, keyof React.Component<any, {}, any>>);
6
+ }) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const Image: (props: React.ComponentProps<typeof SpectacleImage>) => import("react/jsx-runtime").JSX.Element;
8
+ export declare const CustomHeading: import("styled-components/dist/types").IStyledComponentBase<"web", any> & (string | (string & Omit<styled_components.StyledComponent<"div", any, any, never>, keyof React.Component<any, {}, any>>));
9
9
  export declare const CustomQuote: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.BlockquoteHTMLAttributes<HTMLQuoteElement>, HTMLQuoteElement>, never>> & string;
10
10
  export declare const InlineCode: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
11
11
  export declare const HeadingTwo: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>> & string;
package/context.d.ts CHANGED
@@ -8,4 +8,4 @@ export declare function usePestacle(): IPestacleContext;
8
8
  export declare function PestacleProvider({ children, layouts, }: {
9
9
  children: React.ReactNode;
10
10
  layouts: Record<string, LayoutComponent>;
11
- }): React.JSX.Element;
11
+ }): import("react/jsx-runtime").JSX.Element;