@gpichot/spectacle-deck 1.4.0 → 1.6.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.
@@ -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
+ ];