@alea-design/motion 0.1.0 → 0.2.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.
- package/package.json +2 -1
- package/dist/index.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alea-design/motion",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Alea Motion: a motion system for interfaces. Tokens, named patterns, microinteractions and effects in CSS for any stack, plus small React helpers. Reduced motion built in.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"motion",
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
],
|
|
41
41
|
"files": [
|
|
42
42
|
"dist",
|
|
43
|
+
"!dist/**/*.map",
|
|
43
44
|
"src/*.css",
|
|
44
45
|
"LICENSE",
|
|
45
46
|
"README.md"
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/react.tsx"],"sourcesContent":["import {\n Children, cloneElement, createElement, isValidElement, useCallback, useEffect, useLayoutEffect, useRef, useState,\n type CSSProperties, type ElementType, type PointerEvent as ReactPointerEvent, type ReactElement, type ReactNode,\n} from 'react';\n\nconst useIsoLayoutEffect = typeof window === 'undefined' ? useEffect : useLayoutEffect;\n\n// ------------------------------------------------------------------ the motion prop\n\n/** The enter/exit presets. Each maps to the keyframes alea-m-<preset>-in and -out in motion.css. */\nexport type MotionPreset = 'fade' | 'scale' | 'pop' | 'rise' | 'drop' | 'slide-up' | 'slide-down' | 'slide-left' | 'slide-right' | 'blur' | 'zoom' | 'flip' | 'morph' | 'none';\n/** The easing tokens, or any CSS easing. */\nexport type MotionEasing = 'out' | 'in' | 'in-out' | 'standard' | 'emphasized' | 'spring' | (string & {});\nexport interface MotionOptions {\n /** How it comes in. */\n enter?: MotionPreset;\n /** How it goes out. Default: the same preset as enter. */\n exit?: MotionPreset;\n /** Enter duration in ms. */\n duration?: number;\n /** Exit duration in ms. Default 60% of duration. */\n exitDuration?: number;\n easing?: MotionEasing;\n /** Delay before entering, in ms. */\n delay?: number;\n}\n/** What a component's motion prop takes: a preset name, false for none, or options. Leave it out for the component's default. */\nexport type MotionProp = MotionPreset | false | MotionOptions;\n\nconst EASINGS = ['out', 'in', 'in-out', 'standard', 'emphasized', 'spring'];\nconst ease = (e: MotionEasing) => (EASINGS.includes(e) ? `var(--alea-motion-${e === 'spring' ? 'spring' : 'ease-' + e})` : e);\nconst kf = (p: MotionPreset, dir: 'in' | 'out') => (p === 'none' ? 'none' : `alea-m-${p}-${dir}`);\n\n/** The inline style for a motion prop: sets --alea-enter, --alea-exit and their timing on that one element (they don't inherit). */\nexport function motionStyle(motion: MotionProp | undefined): CSSProperties | undefined {\n if (motion === undefined) return undefined;\n const o: MotionOptions = motion === false ? { enter: 'none' } : typeof motion === 'string' ? { enter: motion } : motion;\n const s: Record<string, string> = {};\n if (o.enter) { s['--alea-enter'] = kf(o.enter, 'in'); s['--alea-exit'] = kf(o.exit || o.enter, 'out'); }\n else if (o.exit) s['--alea-exit'] = kf(o.exit, 'out');\n if (o.duration != null) { s['--alea-enter-duration'] = `${o.duration}ms`; s['--alea-exit-duration'] = `${o.exitDuration ?? Math.round(o.duration * 0.6)}ms`; }\n else if (o.exitDuration != null) s['--alea-exit-duration'] = `${o.exitDuration}ms`;\n if (o.easing) { s['--alea-enter-ease'] = ease(o.easing); }\n if (o.delay != null) s['--alea-enter-delay'] = `${o.delay}ms`;\n return s as CSSProperties;\n}\n\n/** Merges a motion prop into a style prop (style props that are functions of the state are wrapped). */\nexport function withMotionStyle<S>(style: S, motion: MotionProp | undefined): S {\n const m = motionStyle(motion);\n if (!m) return style;\n if (typeof style === 'function') return ((v: unknown) => ({ ...m, ...(style as (v: unknown) => CSSProperties)(v) })) as S;\n return { ...m, ...(style as CSSProperties | undefined) } as S;\n}\n\n// ------------------------------------------------------------------ global configuration\n\n/** Components whose default motion can be changed for the whole app. */\nexport type MotionComponent = 'popover' | 'select' | 'menu' | 'tooltip' | 'dialog' | 'drawer' | 'toast' | 'command' | 'hovercard' | 'datepicker' | 'tour';\nexport const MOTION_SELECTORS: Record<MotionComponent, string> = {\n popover: '.alea-popover', select: '.alea-select-popover', menu: '.alea-menu-popover', tooltip: '.alea-tooltip', dialog: '.alea-modal',\n drawer: '.alea-drawer', toast: '.alea-toast', command: '.alea-command', hovercard: '.alea-hovercard', datepicker: '.alea-cal-popover', tour: '.alea-tour-card',\n};\nexport interface MotionConfig {\n /** expressive (default), productive (shorter and quieter, for dense apps), reduced (fades only) or off (no animation). */\n mode?: 'expressive' | 'productive' | 'reduced' | 'off';\n /** Follow the OS reduced motion setting (system, default), always reduce, or never (only when you offer your own switch). */\n reduced?: 'system' | 'always' | 'never';\n /** Multiplies every duration: 0.8 is snappier, 1.2 calmer. */\n speed?: number;\n /** Multiplies distances, scales and blur: 0 is fades only, 1 the default, 1.5 bolder. */\n intensity?: number;\n /** The default motion per component type, for the whole app. */\n components?: Partial<Record<MotionComponent, MotionProp>>;\n}\n\nconst DUR: Record<string, number> = { instant: 120, fast: 200, base: 320, slow: 480, slower: 720 };\nconst DIST: Record<string, number> = { sm: 8, md: 12, lg: 24 };\nconst BLUR: Record<string, number> = { sm: 4, md: 8, lg: 16 };\n/** The token overrides for speed and intensity (set them on the root or a wrapper). */\nexport function motionVariables(c: MotionConfig = {}): Record<string, string> {\n const v: Record<string, string> = {};\n const sp = c.speed, it = c.intensity;\n if (sp != null && sp !== 1) for (const [k, ms] of Object.entries(DUR)) v[`--alea-motion-duration-${k}`] = `${Math.round(ms * sp)}ms`;\n if (it != null && it !== 1) {\n for (const [k, px] of Object.entries(DIST)) v[`--alea-motion-distance-${k}`] = `${+(px * it).toFixed(2)}px`;\n for (const [k, px] of Object.entries(BLUR)) v[`--alea-motion-blur-${k}`] = `${+(px * it).toFixed(2)}px`;\n v['--alea-motion-scale-from'] = String(+(1 - 0.08 * it).toFixed(3));\n v['--alea-motion-scale-press'] = String(+(1 - 0.04 * it).toFixed(3));\n v['--alea-motion-lift'] = `${+(-4 * it).toFixed(2)}px`;\n }\n return v;\n}\n/** The attributes for a root: data-alea-motion and data-alea-reduced. */\nexport function motionAttributes(c: MotionConfig = {}): Record<string, string> {\n const a: Record<string, string> = {};\n if (c.mode && c.mode !== 'expressive') a['data-alea-motion'] = c.mode;\n if (c.reduced && c.reduced !== 'system') a['data-alea-reduced'] = c.reduced;\n return a;\n}\n/** CSS for per-component defaults, scoped under a selector (\":root\" for the page). */\nexport function motionComponentCss(components: MotionConfig['components'] = {}, scope = ':root'): string {\n return Object.entries(components).map(([k, m]) => {\n const style = motionStyle(m as MotionProp) as Record<string, string> | undefined;\n const sel = MOTION_SELECTORS[k as MotionComponent];\n if (!style || !sel) return '';\n return `${scope} ${sel} { ${Object.entries(style).map(([p, val]) => `${p}: ${val};`).join(' ')} }`;\n }).filter(Boolean).join('\\n');\n}\n\n// ------------------------------------------------------------------ hooks\n\n/** True when motion should be reduced: the OS setting, or data-alea-motion / data-alea-reduced on <html>. */\nexport function useReducedMotion(): boolean {\n const [reduced, setReduced] = useState(false);\n useEffect(() => {\n if (typeof window === 'undefined') return;\n const mq = window.matchMedia?.('(prefers-reduced-motion: reduce)');\n const read = () => {\n const r = document.documentElement;\n const forced = r.getAttribute('data-alea-reduced');\n const mode = r.getAttribute('data-alea-motion');\n setReduced(mode === 'off' || mode === 'reduced' || forced === 'always' || (forced !== 'never' && !!mq?.matches));\n };\n read();\n mq?.addEventListener?.('change', read);\n const mo = new MutationObserver(read);\n mo.observe(document.documentElement, { attributes: true, attributeFilter: ['data-alea-motion', 'data-alea-reduced'] });\n return () => { mq?.removeEventListener?.('change', read); mo.disconnect(); };\n }, []);\n return reduced;\n}\n\n/** Whether an element is on screen (IntersectionObserver). With once, it stays true after the first time. */\nexport function useInView<T extends Element>(options: { once?: boolean; margin?: string; threshold?: number } = {}) {\n const { once = true, margin = '0px 0px -10% 0px', threshold = 0.1 } = options;\n const ref = useRef<T | null>(null);\n const [inView, setInView] = useState(false);\n useEffect(() => {\n const el = ref.current;\n if (!el || typeof IntersectionObserver === 'undefined') { setInView(true); return; }\n const io = new IntersectionObserver(([e]) => {\n if (e.isIntersecting) { setInView(true); if (once) io.disconnect(); } else if (!once) setInView(false);\n }, { rootMargin: margin, threshold });\n io.observe(el);\n return () => io.disconnect();\n }, [once, margin, threshold]);\n return [ref, inView] as const;\n}\n\nlet offscreenObserver: IntersectionObserver | null = null;\n/** Marks the element data-alea-offscreen while it is out of view, which pauses every animation inside it (motion.css). One IntersectionObserver is shared by all. Returns the cleanup. */\nexport function pauseWhenOffscreen(el: Element): () => void {\n if (typeof IntersectionObserver === 'undefined') return () => {};\n offscreenObserver ??= new IntersectionObserver(entries => { for (const e of entries) e.target.toggleAttribute('data-alea-offscreen', !e.isIntersecting); }, { rootMargin: '64px' });\n offscreenObserver.observe(el);\n return () => { offscreenObserver?.unobserve(el); el.removeAttribute('data-alea-offscreen'); };\n}\n\n/** A ref for a looping decoration (an aurora, a marquee, meteors, orbs): its animations pause while it is off screen and resume when it comes back. */\nexport function useOffscreenPause<T extends Element = HTMLElement>() {\n const ref = useRef<T | null>(null);\n useEffect(() => (ref.current ? pauseWhenOffscreen(ref.current) : undefined), []);\n return ref;\n}\n\n/** 'up' or 'down' as the page scrolls (after a small threshold), for headers that hide on scroll. */\nexport function useScrollDirection(threshold = 8): 'up' | 'down' {\n const [dir, setDir] = useState<'up' | 'down'>('up');\n useEffect(() => {\n let last = window.scrollY;\n const on = () => {\n const y = window.scrollY;\n if (Math.abs(y - last) < threshold) return;\n setDir(y > last && y > 64 ? 'down' : 'up');\n last = y;\n };\n window.addEventListener('scroll', on, { passive: true });\n return () => window.removeEventListener('scroll', on);\n }, [threshold]);\n return dir;\n}\n\n/** Ripple: spread the returned props on any element; a ripple grows from the pointer on press. */\nexport function useRipple<T extends HTMLElement>() {\n const onPointerDown = useCallback((e: ReactPointerEvent<T>) => {\n const host = e.currentTarget;\n const r = host.getBoundingClientRect();\n const size = Math.hypot(Math.max(e.clientX - r.left, r.right - e.clientX), Math.max(e.clientY - r.top, r.bottom - e.clientY)) * 2;\n const span = document.createElement('span');\n span.className = 'alea-ripple';\n span.setAttribute('aria-hidden', 'true');\n span.style.setProperty('--alea-ripple-x', `${e.clientX - r.left}px`);\n span.style.setProperty('--alea-ripple-y', `${e.clientY - r.top}px`);\n span.style.setProperty('--alea-ripple-size', `${size}px`);\n host.appendChild(span);\n span.addEventListener('animationend', () => span.remove());\n window.setTimeout(() => span.remove(), 1200);\n }, []);\n return { onPointerDown, className: 'alea-ripple-host' };\n}\n\n/** Runs a DOM update inside a view transition when the browser has them (the route pattern). */\nexport function startViewTransition(update: () => void | Promise<void>) {\n const d = typeof document !== 'undefined' ? (document as Document & { startViewTransition?: (cb: () => void | Promise<void>) => unknown }) : null;\n if (d?.startViewTransition) d.startViewTransition(update); else void update();\n}\n\n// ------------------------------------------------------------------ components\n\ntype AsProps = { as?: ElementType; className?: string; style?: CSSProperties; children?: ReactNode; [key: string]: unknown };\n\n/** Content that enters when it scrolls into view (once). Without JavaScript it is simply shown. */\nexport function Reveal({ as = 'div', motion = 'rise', delay, once = true, stagger, className, style, children, ...rest }: AsProps & {\n /** The enter preset. Default rise. */\n motion?: MotionPreset | MotionOptions;\n /** Delay in ms. */\n delay?: number;\n /** Plays only the first time it enters the view. Default true. */\n once?: boolean;\n /** Children enter one after another instead of the whole block. */\n stagger?: boolean;\n}) {\n const [ref, inView] = useInView<HTMLElement>({ once });\n const [pending, setPending] = useState(false);\n // Hidden only once JavaScript runs and only if it starts below the fold, so server HTML and no-JS stay visible.\n useIsoLayoutEffect(() => {\n const el = ref.current;\n if (el && el.getBoundingClientRect().top > window.innerHeight) setPending(true);\n }, []);\n const m = typeof motion === 'string' ? { enter: motion } : motion;\n const state = pending && !inView ? 'pending' : pending ? 'in' : undefined;\n return createElement(as, {\n ...rest, ref, className, 'data-reveal': state, 'data-stagger': stagger ? 'reveal' : undefined,\n style: { ...(stagger ? {} : motionStyle({ ...m, delay: delay ?? m.delay })), ...style },\n }, children);\n}\n\n/** Keeps a child mounted while it plays its exit (the dissolve preset by default), then unmounts it. */\nexport function Presence({ show, exitClassName = 'alea-dissolve-out', children }: { /** Whether the child is there; false plays the exit, then unmounts it. */ show: boolean; /** The class that plays the exit. Default alea-dissolve-out. */ exitClassName?: string; children: ReactElement<{ className?: string; ref?: unknown }> }) {\n const [mounted, setMounted] = useState(show);\n const [leaving, setLeaving] = useState(false);\n const ref = useRef<HTMLElement | null>(null);\n useEffect(() => {\n if (show) { setMounted(true); setLeaving(false); return; }\n if (!mounted) return;\n setLeaving(true);\n const el = ref.current;\n const done = () => { setMounted(false); setLeaving(false); };\n const anims = el?.getAnimations?.() || [];\n if (!el || !anims.length) { const t = window.setTimeout(done, 0); return () => window.clearTimeout(t); }\n Promise.all(anims.map(a => a.finished.catch(() => {}))).then(done);\n }, [show]); // eslint-disable-line react-hooks/exhaustive-deps\n useEffect(() => { if (leaving && ref.current && !ref.current.getAnimations?.().length) { setMounted(false); setLeaving(false); } }, [leaving]);\n if (!mounted || !isValidElement(children)) return null;\n return cloneElement(children, { ref, className: [children.props.className, leaving && exitClassName].filter(Boolean).join(' ') } as never);\n}\n\n/** Text or an icon that changes with a short blur crossfade (the swap pattern). Give it a key-able value. */\nexport function TextSwap({ children, as = 'span', className, direction = 'up', variant = 'blur' }: { children: ReactNode; as?: ElementType; className?: string; /** Which way the new text enters. Default up. */ direction?: 'up' | 'down'; /** blur (text) or scale (icons). */ variant?: 'blur' | 'scale' }) {\n const [items, setItems] = useState<Array<{ id: number; node: ReactNode; out?: boolean }>>([{ id: 0, node: children }]);\n const last = useRef(children);\n const id = useRef(0);\n const sig = (n: ReactNode) => (typeof n === 'string' || typeof n === 'number' ? String(n) : isValidElement(n) ? String(n.key ?? '') + JSON.stringify((n.props as { children?: unknown })?.children ?? '') : '');\n useEffect(() => {\n if (sig(children) === sig(last.current)) { setItems(list => list.map(i => (i.out ? i : { ...i, node: children }))); return; }\n last.current = children;\n id.current += 1;\n setItems(list => [...list.filter(i => !i.out).map(i => ({ ...i, out: true })), { id: id.current, node: children }]);\n }, [children]); // eslint-disable-line react-hooks/exhaustive-deps\n return createElement(as, { className: ['alea-swap', className].filter(Boolean).join(' '), 'data-variant': variant === 'scale' ? 'scale' : undefined, style: { '--alea-swap-dir': direction === 'up' ? 1 : -1 } as CSSProperties, 'aria-live': 'polite' },\n items.map(i => <span key={i.id} className={i.id === 0 && !i.out ? undefined : i.out ? 'alea-swap-out' : 'alea-swap-in'} aria-hidden={i.out || undefined} onAnimationEnd={i.out ? () => setItems(list => list.filter(x => x.id !== i.id)) : undefined}>{i.node}</span>));\n}\n\n/** A number whose digits roll to the new value (the roll pattern). Screen readers get the formatted value once. */\nexport function NumberRoll({ value, format, locale, className }: { /** The number; each change rolls the digits that changed. */ value: number; /** Intl.NumberFormat options: currency, percent, compact. */ format?: Intl.NumberFormatOptions; /** A BCP 47 locale. Default the browser's. */ locale?: string; className?: string }) {\n const text = new Intl.NumberFormat(locale, format).format(value);\n return (\n <span className={['alea-roll', className].filter(Boolean).join(' ')}>\n <span className=\"alea-visually-hidden\" aria-live=\"polite\">{text}</span>\n <span aria-hidden=\"true\" style={{ display: 'inline-flex' }}>\n {[...text].map((ch, i) => /\\d/.test(ch)\n ? <span key={text.length - i} className=\"alea-roll-digit\"><span className=\"alea-roll-strip\" style={{ '--alea-roll-n': ch } as CSSProperties}>{'0123456789'.split('').map(d => <span key={d}>{d}</span>)}</span></span>\n : <span key={`s${text.length - i}`}>{ch}</span>)}\n </span>\n </span>\n );\n}\n\n/** Animates its height when its content changes size (the resize pattern). */\nexport function AutoHeight({ children, className, as = 'div' }: { children: ReactNode; className?: string; as?: ElementType }) {\n const inner = useRef<HTMLDivElement>(null);\n const [h, setH] = useState<number | undefined>(undefined);\n useEffect(() => {\n const el = inner.current;\n if (!el || typeof ResizeObserver === 'undefined') return;\n const ro = new ResizeObserver(() => setH(el.offsetHeight));\n ro.observe(el);\n return () => ro.disconnect();\n }, []);\n return createElement(as, { className: ['alea-autoheight', className].filter(Boolean).join(' '), style: h != null ? { height: h } : undefined }, <div ref={inner}>{children}</div>);\n}\n\n/** A thin bar at the top that fills as the page scrolls (CSS scroll timeline where supported). */\nexport function ScrollProgress({ className }: { className?: string }) {\n const ref = useRef<HTMLDivElement>(null);\n const [css, setCss] = useState(false);\n useEffect(() => {\n if (typeof CSS !== 'undefined' && CSS.supports?.('animation-timeline: scroll()')) { setCss(true); return; }\n const on = () => {\n const max = document.documentElement.scrollHeight - window.innerHeight;\n ref.current?.style.setProperty('--alea-scroll', String(max > 0 ? Math.min(1, window.scrollY / max) : 0));\n };\n on();\n window.addEventListener('scroll', on, { passive: true });\n window.addEventListener('resize', on);\n return () => { window.removeEventListener('scroll', on); window.removeEventListener('resize', on); };\n }, []);\n return <div ref={ref} className={['alea-scroll-progress', className].filter(Boolean).join(' ')} data-css={css || undefined} aria-hidden=\"true\" />;\n}\n\n/** Text that arrives in chunks (AI answers): new chunks fade in, a caret shows while streaming. */\nexport function StreamingText({ chunks, streaming = false, className, as = 'p' }: { /** The text so far, in the pieces it arrived in; new pieces fade in. */ chunks: string[]; /** Shows a caret while more is coming. */ streaming?: boolean; className?: string; as?: ElementType }) {\n return createElement(as, { className: ['alea-stream', className].filter(Boolean).join(' '), 'data-streaming': streaming || undefined, 'aria-busy': streaming || undefined },\n Children.toArray(chunks.map((c, i) => <span key={i} className=\"alea-stream-chunk\">{c}</span>)));\n}\n\n// ------------------------------------------------------------------ morph (shared element)\n\n// The last box of every morph id on the page, in page coordinates, so the next element with that id can grow from it.\nconst morphBoxes = new Map<string, { x: number; y: number; w: number; h: number; radius: string; time: number }>();\nconst readBox = (el: HTMLElement) => {\n const r = el.getBoundingClientRect();\n return { x: r.left + window.scrollX, y: r.top + window.scrollY, w: r.width, h: r.height, radius: getComputedStyle(el).borderRadius, time: performance.now() };\n};\n\nexport interface MorphProps {\n /** Elements with the same id morph into each other: when one replaces the other, the new one grows from the old one's box. */\n id: string;\n /** The element to render. Default div. */\n as?: ElementType;\n /** Duration in ms. Default the slow motion token (480). */\n duration?: number;\n /** Easing. Default a strong deceleration with no overshoot. */\n easing?: string;\n /** Fades the content in after the box has moved (default true), so text never looks stretched. */\n fadeContent?: boolean;\n className?: string;\n style?: CSSProperties;\n children?: ReactNode;\n [key: string]: unknown;\n}\n\n/** A shared element: give two elements the same id and, when one replaces the other (a card that opens into its detail, a button that becomes a panel), the new one morphs from the old one's position, size and corners. Works without View Transitions; respects reduced motion. */\nexport function Morph({ id, as = 'div', duration, easing, fadeContent = true, className, style, children, ...rest }: MorphProps) {\n const ref = useRef<HTMLElement>(null);\n const reduced = useReducedMotion();\n useIsoLayoutEffect(() => {\n const el = ref.current;\n if (!el) return;\n const prev = morphBoxes.get(id);\n const next = readBox(el);\n // only morph from a box seen recently (a swap), not from a stale one\n if (prev && !reduced && performance.now() - prev.time < 1500 && (prev.w !== next.w || prev.h !== next.h || prev.x !== next.x || prev.y !== next.y) && typeof el.animate === 'function') {\n const ms = duration ?? (parseFloat(getComputedStyle(el).getPropertyValue('--alea-motion-duration-slow')) || 480);\n const curve = easing ?? 'cubic-bezier(0.2, 0, 0, 1)';\n const sx = prev.w / Math.max(1, next.w), sy = prev.h / Math.max(1, next.h);\n el.animate([\n { transformOrigin: '0 0', transform: `translate(${prev.x - next.x}px, ${prev.y - next.y}px) scale(${sx}, ${sy})`, borderRadius: prev.radius },\n { transformOrigin: '0 0', transform: 'none', borderRadius: next.radius },\n ], { duration: ms, easing: curve });\n if (fadeContent) for (const c of Array.from(el.children)) (c as HTMLElement).animate([{ opacity: 0 }, { opacity: 0, offset: 0.35 }, { opacity: 1 }], { duration: ms, easing: 'ease-out' });\n }\n morphBoxes.set(id, next);\n // keep the box current while it lives, so a swap starts from where it really is\n const save = () => { if (el.isConnected) morphBoxes.set(id, readBox(el)); };\n window.addEventListener('scroll', save, { passive: true });\n const ro = typeof ResizeObserver !== 'undefined' ? new ResizeObserver(save) : null;\n ro?.observe(el);\n return () => { save(); morphBoxes.set(id, { ...(morphBoxes.get(id) || next), time: performance.now() }); window.removeEventListener('scroll', save); ro?.disconnect(); };\n }, [id]);\n return createElement(as, { ...rest, ref, className, style, 'data-morph': id }, children);\n}\n\n/** Two icons that morph into each other: the active one turns and grows in while the other blurs out (play and pause, menu and close, copy and check). */\nexport function MorphIcon({ from, to, active, className }: { /** The icon while inactive. */ from: ReactNode; /** The icon while active. */ to: ReactNode; /** Shows the to icon. */ active: boolean; className?: string }) {\n return (\n <span className={['alea-morph-icon', className].filter(Boolean).join(' ')} data-active={active || undefined} aria-hidden=\"true\">\n <span className=\"alea-morph-icon-a\">{from}</span>\n <span className=\"alea-morph-icon-b\">{to}</span>\n </span>\n );\n}\n\n// ------------------------------------------------------------------ any pattern on any element\n\n/** The named patterns you can put on your own elements (the CSS behind them is .alea-m in utilities.css). */\nexport type MotionPattern = 'fade' | 'pop' | 'rise' | 'drop' | 'scale' | 'zoom' | 'blur' | 'flip' | 'slide-up' | 'slide-down' | 'slide-left' | 'slide-right'\n | 'badge' | 'nudge' | 'pulse' | 'draw' | 'lift' | 'press' | 'tint' | 'glow' | 'hint' | 'stagger';\n/** When a pattern plays: on mount (default), while hovered, pressed or focused, when it scrolls into view, each time a value changes, or in a loop. */\nexport type MotionTrigger = 'mount' | 'hover' | 'press' | 'focus' | 'visible' | 'change' | 'loop';\nexport interface UseMotionOptions {\n /** When it plays. Default 'mount'. */\n on?: MotionTrigger;\n /** With on=\"change\": the value that replays the pattern each time it changes (not on the first render). */\n value?: unknown;\n /** Wait before playing, in ms. */\n delay?: number;\n /** How long it takes, in ms. Default the pattern's token. */\n duration?: number;\n /** With on=\"visible\": play only the first time (default) or each time it scrolls in. */\n once?: boolean;\n}\n// hover and press patterns are transitions, kept as the utility classes\nconst UTILITY: Partial<Record<MotionPattern, string>> = { lift: 'alea-hover-lift', press: 'alea-press', tint: 'alea-hover-tint', glow: 'alea-hover-glow', hint: 'alea-hint' };\n\n/** Any Alea Motion pattern on your own element: spread the result on it (it carries a ref, a class and data attributes). */\nexport function useMotion<T extends HTMLElement = HTMLElement>(pattern: MotionPattern, { on = 'mount', value, delay, duration, once = true }: UseMotionOptions = {}) {\n const ref = useRef<T>(null);\n useEffect(() => {\n const el = ref.current;\n if (on !== 'visible' || !el) return;\n if (typeof IntersectionObserver === 'undefined') { el.setAttribute('data-m-in', ''); return; }\n const io = new IntersectionObserver(entries => {\n for (const e of entries) {\n if (e.isIntersecting) { el.setAttribute('data-m-in', ''); if (once) io.disconnect(); }\n else if (!once) el.removeAttribute('data-m-in');\n }\n }, { rootMargin: '0px 0px -8% 0px' });\n io.observe(el);\n return () => io.disconnect();\n }, [on, once]);\n // replays only when the value really changed (compared with the last one seen, so StrictMode's double run is harmless)\n const prev = useRef(value);\n useEffect(() => {\n if (on !== 'change' || Object.is(prev.current, value)) return;\n prev.current = value;\n const el = ref.current; if (!el) return;\n // replay: drop the attribute, let the browser notice, put it back\n el.removeAttribute('data-m-run'); void el.offsetWidth; el.setAttribute('data-m-run', '');\n }, [on, value]);\n const style: CSSProperties = {};\n if (delay != null) (style as Record<string, string>)['--alea-m-delay'] = `${delay}ms`;\n if (duration != null) (style as Record<string, string>)['--alea-m-duration'] = `${duration}ms`;\n if (pattern === 'stagger') return { ref, 'data-stagger': '', style };\n const util = UTILITY[pattern];\n if (util) return { ref, className: util, style };\n return { ref, className: 'alea-m', 'data-m': pattern, 'data-m-on': on, ...(on === 'loop' ? { 'data-alea-loop': '' } : {}), style };\n}\n\nexport interface MotionProps extends UseMotionOptions {\n /** The pattern: pop, rise, nudge, pulse, badge, lift, press… */\n pattern: MotionPattern;\n /** One element (any Alea component or your own): it gets the pattern, no wrapper is added. */\n children: ReactElement;\n}\n/** Puts an Alea Motion pattern on its child, with no wrapper: <Motion pattern=\"pop\" on=\"change\" value={count}><Badge>{count}</Badge></Motion>. */\nexport function Motion({ pattern, children, ...options }: MotionProps) {\n const m = useMotion(pattern, options) as { ref: { current: HTMLElement | null }; className?: string; style: CSSProperties } & Record<string, unknown>;\n const child = Children.only(children) as ReactElement<{ className?: string; style?: CSSProperties; ref?: unknown }>;\n if (!isValidElement(child)) return children;\n const own = child.props.ref as ((n: HTMLElement | null) => void) | { current: HTMLElement | null } | undefined;\n const ref = (node: HTMLElement | null) => {\n m.ref.current = node;\n if (typeof own === 'function') own(node); else if (own && typeof own === 'object') own.current = node;\n };\n const { ref: _r, className, style, ...attrs } = m;\n return cloneElement(child, { ...attrs, ref, className: [child.props.className, className].filter(Boolean).join(' ') || undefined, style: { ...child.props.style, ...style } } as Record<string, unknown>);\n}\n\n// ------------------------------------------------------------------ parallax\n/** A box whose layers drift with the pointer (and, with scroll, with the page): the hero pattern. Layers are\n * ParallaxLayer children with a depth; a depth of 1 moves the full strength, 0.3 a third of it. Nothing moves\n * with reduced motion, and without JavaScript the layers simply sit still. */\nexport function Parallax({ as = 'div', strength = 16, scroll = false, className, style, children, ...rest }: AsProps & {\n /** How far a depth-1 layer travels, in px. Default 16. */\n strength?: number;\n /** Also drift vertically as the box crosses the viewport. Default false. */\n scroll?: boolean;\n}) {\n const ref = useRef<HTMLElement>(null);\n const reduced = useReducedMotion();\n useEffect(() => {\n const el = ref.current;\n if (!el || reduced || typeof window === 'undefined') return;\n const fine = window.matchMedia?.('(pointer: fine)').matches;\n const set = (x: number, y: number) => { el.style.setProperty('--alea-par-x', x.toFixed(3)); el.style.setProperty('--alea-par-y', y.toFixed(3)); };\n const onMove = (e: PointerEvent) => { const r = el.getBoundingClientRect(); set(((e.clientX - r.left) / r.width - 0.5) * 2, ((e.clientY - r.top) / r.height - 0.5) * 2); };\n const onLeave = () => set(0, 0);\n let raf = 0;\n const onScroll = () => { cancelAnimationFrame(raf); raf = requestAnimationFrame(() => { const r = el.getBoundingClientRect(); const mid = r.top + r.height / 2 - window.innerHeight / 2; el.style.setProperty('--alea-par-s', Math.max(-1, Math.min(1, mid / window.innerHeight)).toFixed(3)); }); };\n if (fine) { el.addEventListener('pointermove', onMove); el.addEventListener('pointerleave', onLeave); }\n if (scroll) { window.addEventListener('scroll', onScroll, { passive: true }); onScroll(); }\n return () => { el.removeEventListener('pointermove', onMove); el.removeEventListener('pointerleave', onLeave); window.removeEventListener('scroll', onScroll); cancelAnimationFrame(raf); };\n }, [reduced, scroll]);\n return createElement(as, { ...rest, ref, className: ['alea-parallax', className].filter(Boolean).join(' '), style: { '--alea-par-strength': `${strength}px`, ...style } as CSSProperties }, children);\n}\n\n/** One layer of a Parallax: depth 1 moves the full strength, 0 stays put; negative depths move the other way. */\nexport function ParallaxLayer({ as = 'div', depth = 0.5, className, style, children, ...rest }: AsProps & { depth?: number }) {\n return createElement(as, { ...rest, className: ['alea-parallax-layer', className].filter(Boolean).join(' '), style: { '--alea-depth': depth, ...style } as CSSProperties }, children);\n}\n"],"names":["useIsoLayoutEffect","useEffect","useLayoutEffect","EASINGS","ease","e","kf","p","dir","motionStyle","motion","o","s","withMotionStyle","style","m","v","MOTION_SELECTORS","DUR","DIST","BLUR","motionVariables","c","sp","it","k","ms","px","motionAttributes","a","motionComponentCss","components","scope","sel","val","useReducedMotion","reduced","setReduced","useState","mq","_a","read","r","forced","mode","_b","mo","useInView","options","once","margin","threshold","ref","useRef","inView","setInView","el","io","offscreenObserver","pauseWhenOffscreen","entries","useOffscreenPause","useScrollDirection","setDir","last","on","y","useRipple","useCallback","host","size","span","startViewTransition","update","d","Reveal","as","delay","stagger","className","children","rest","pending","setPending","createElement","Presence","show","exitClassName","mounted","setMounted","leaving","setLeaving","done","anims","t","isValidElement","cloneElement","TextSwap","direction","variant","items","setItems","id","sig","n","list","i","x","NumberRoll","value","format","locale","text","jsxs","jsx","ch","AutoHeight","inner","h","setH","ro","ScrollProgress","css","setCss","max","StreamingText","chunks","streaming","Children","morphBoxes","readBox","Morph","duration","easing","fadeContent","prev","next","curve","sx","sy","save","MorphIcon","from","to","active","UTILITY","useMotion","pattern","util","Motion","child","own","node","_r","attrs","Parallax","strength","scroll","fine","set","onMove","onLeave","raf","onScroll","mid","ParallaxLayer","depth"],"mappings":";;;AAKA,MAAMA,IAAqB,OAAO,SAAW,MAAcC,IAAYC,GAwBjEC,IAAU,CAAC,OAAO,MAAM,UAAU,YAAY,cAAc,QAAQ,GACpEC,IAAO,CAACC,MAAqBF,EAAQ,SAASE,CAAC,IAAI,qBAAqBA,MAAM,WAAW,WAAW,UAAUA,CAAC,MAAMA,GACrHC,IAAK,CAACC,GAAiBC,MAAuBD,MAAM,SAAS,SAAS,UAAUA,CAAC,IAAIC,CAAG;AAGvF,SAASC,EAAYC,GAA2D;AACrF,MAAIA,MAAW,OAAW;AAC1B,QAAMC,IAAmBD,MAAW,KAAQ,EAAE,OAAO,OAAA,IAAW,OAAOA,KAAW,WAAW,EAAE,OAAOA,MAAWA,GAC3GE,IAA4B,CAAA;AAClC,SAAID,EAAE,SAASC,EAAE,cAAc,IAAIN,EAAGK,EAAE,OAAO,IAAI,GAAGC,EAAE,aAAa,IAAIN,EAAGK,EAAE,QAAQA,EAAE,OAAO,KAAK,KAC3FA,EAAE,SAAMC,EAAE,aAAa,IAAIN,EAAGK,EAAE,MAAM,KAAK,IAChDA,EAAE,YAAY,QAAQC,EAAE,uBAAuB,IAAI,GAAGD,EAAE,QAAQ,MAAMC,EAAE,sBAAsB,IAAI,GAAGD,EAAE,gBAAgB,KAAK,MAAMA,EAAE,WAAW,GAAG,CAAC,QAC9IA,EAAE,gBAAgB,WAAQ,sBAAsB,IAAI,GAAGA,EAAE,YAAY,OAC1EA,EAAE,WAAUC,EAAE,mBAAmB,IAAIR,EAAKO,EAAE,MAAM,IAClDA,EAAE,SAAS,SAAMC,EAAE,oBAAoB,IAAI,GAAGD,EAAE,KAAK,OAClDC;AACT;AAGO,SAASC,EAAmBC,GAAUJ,GAAmC;AAC9E,QAAMK,IAAIN,EAAYC,CAAM;AAC5B,SAAKK,IACD,OAAOD,KAAU,cAAoB,CAACE,OA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