narraleaf-react 0.10.1 → 0.12.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.
@@ -0,0 +1,30 @@
1
+ import { CSSProps } from "../../../../elements/transition/type";
2
+ import { TransformDefinitions } from "../../../../elements/transform/type";
3
+ /**
4
+ * Shared, side-effect-free helpers for the mask/gradient driven image
5
+ * transitions ({@link SoftWipe}, {@link Blinds}, {@link SoftIris},
6
+ * {@link ThroughColor}). Kept internal — not exported from the package barrel.
7
+ */
8
+ /** Orientation of {@link Blinds} slats / {@link ThroughColor} blinds pattern. */
9
+ export type BlindsOrientation = "horizontal" | "vertical";
10
+ /** Clamp a value into the `[0, 1]` range. */
11
+ export declare function clamp01(value: number): number;
12
+ /** The `mask-image` triplet, mirrored to the `-webkit-` prefix for WebKit. */
13
+ export declare function maskStyle(image: string): CSSProps;
14
+ /** Full-bleed positioning for a synthetic colour overlay layer. */
15
+ export declare function overlayBase(color: string): CSSProps;
16
+ /** CSS gradient direction keyword for a wipe travelling toward `direction`. */
17
+ export declare function wipeGradientDir(direction: TransformDefinitions.WipeDirection): string;
18
+ /** Gradient axis for blinds slats of a given orientation. */
19
+ export declare function blindsAxis(orientation: BlindsOrientation): string;
20
+ /**
21
+ * Feathered linear wipe mask. `progress` 0 → fully hidden, 1 → fully covered;
22
+ * the opaque edge sweeps with a soft transition band of width `feather` (%).
23
+ */
24
+ export declare function linearWipeMask(direction: TransformDefinitions.WipeDirection, feather: number, progress: number): string;
25
+ /** Venetian slats mask. `progress` 0 → open (hidden), 1 → shut (covered). */
26
+ export declare function blindsCoverMask(orientation: BlindsOrientation, slats: number, progress: number): string;
27
+ /** Iris that *covers* from the rim inward. `progress` 0 → hidden, 1 → covered. */
28
+ export declare function irisCoverMask(center: string, feather: number, progress: number): string;
29
+ /** Iris that *reveals* from the centre out. `progress` 0 → hidden, 1 → shown. */
30
+ export declare function irisRevealMask(center: string, feather: number, progress: number): string;