motionary 9.9.0 → 10.1.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/CHANGELOG.md +41 -0
- package/README.md +45 -0
- package/bin/create-motionary-plugin.mjs +124 -0
- package/dist/chunks/{audio-C1uFaOKQ.js → audio-D95jwlOh.js} +3 -3
- package/dist/chunks/{audio-C1uFaOKQ.js.map → audio-D95jwlOh.js.map} +1 -1
- package/dist/chunks/{base-DWYNLg6P.js → base-BnRyfuyM.js} +2 -2
- package/dist/chunks/{base-DWYNLg6P.js.map → base-BnRyfuyM.js.map} +1 -1
- package/dist/chunks/{builtins-DoCY96r9.js → builtins-CqIq1zBv.js} +3 -3
- package/dist/chunks/{builtins-DoCY96r9.js.map → builtins-CqIq1zBv.js.map} +1 -1
- package/dist/chunks/{core-DoR4w-E4.js → core-DsGoL9EY.js} +2 -2
- package/dist/chunks/{core-DoR4w-E4.js.map → core-DsGoL9EY.js.map} +1 -1
- package/dist/chunks/{core-BhuojMcL.js → core-XA2yhn1b.js} +2 -2
- package/dist/chunks/{core-BhuojMcL.js.map → core-XA2yhn1b.js.map} +1 -1
- package/dist/chunks/{fx-XBDr7-dH.js → fx-CtnrFEg9.js} +2 -2
- package/dist/chunks/{fx-XBDr7-dH.js.map → fx-CtnrFEg9.js.map} +1 -1
- package/dist/chunks/{gpu-DvLHwLxy.js → gpu-CDcXiNA8.js} +2 -2
- package/dist/chunks/{gpu-DvLHwLxy.js.map → gpu-CDcXiNA8.js.map} +1 -1
- package/dist/chunks/keyframes-CyH_abhI.js +183 -0
- package/dist/chunks/keyframes-CyH_abhI.js.map +1 -0
- package/dist/chunks/keyframes-cUdsXSXQ.cjs +187 -0
- package/dist/chunks/keyframes-cUdsXSXQ.cjs.map +1 -0
- package/dist/chunks/{manifest-BDpbuI-9.js → manifest-D58HXVY-.js} +2 -2
- package/dist/chunks/{manifest-BDpbuI-9.js.map → manifest-D58HXVY-.js.map} +1 -1
- package/dist/chunks/{player-CYGvna09.js → player-48Zy_NBG.js} +4 -4
- package/dist/chunks/{player-CYGvna09.js.map → player-48Zy_NBG.js.map} +1 -1
- package/dist/chunks/registry-C0xLNq3-.cjs +81 -0
- package/dist/chunks/registry-C0xLNq3-.cjs.map +1 -0
- package/dist/chunks/{registry-BRM2BRRY.js → registry-gFJRpPES.js} +2 -2
- package/dist/chunks/{registry-BRM2BRRY.js.map → registry-gFJRpPES.js.map} +1 -1
- package/dist/chunks/registry-jF8VIA_9.js +69 -0
- package/dist/chunks/registry-jF8VIA_9.js.map +1 -0
- package/dist/chunks/{spring-CAlkc1co.js → spring-CZDNyqWp.js} +2 -2
- package/dist/chunks/{spring-CAlkc1co.js.map → spring-CZDNyqWp.js.map} +1 -1
- package/dist/chunks/tween-DDObu9iA.js +542 -0
- package/dist/chunks/tween-DDObu9iA.js.map +1 -0
- package/dist/chunks/tween-JEthWrjo.cjs +554 -0
- package/dist/chunks/tween-JEthWrjo.cjs.map +1 -0
- package/dist/chunks/{variants-BBfyVPYm.js → variants-GU3yIL4F.js} +2 -2
- package/dist/chunks/{variants-BBfyVPYm.js.map → variants-GU3yIL4F.js.map} +1 -1
- package/dist/components/a11y.js +2 -2
- package/dist/components/angular.js +8 -8
- package/dist/components/background.js +2 -2
- package/dist/components/bridge.js +1 -1
- package/dist/components/cards.js +2 -2
- package/dist/components/click.js +3 -3
- package/dist/components/core.cjs +219 -0
- package/dist/components/core.cjs.map +1 -0
- package/dist/components/core.d.cts +81 -0
- package/dist/components/core.d.ts +81 -0
- package/dist/components/core.js +214 -0
- package/dist/components/core.js.map +1 -0
- package/dist/components/depth.js +3 -3
- package/dist/components/design.js +3 -3
- package/dist/components/dsl.js +2 -2
- package/dist/components/effects.js +9 -9
- package/dist/components/engine.js +2 -2
- package/dist/components/feedback.js +1 -1
- package/dist/components/fx-3d.js +2 -2
- package/dist/components/fx-ai.js +2 -2
- package/dist/components/fx-chart.js +2 -2
- package/dist/components/fx-cinema.js +2 -2
- package/dist/components/fx-cyber.js +2 -2
- package/dist/components/fx-festival.js +2 -2
- package/dist/components/fx-focus.js +2 -2
- package/dist/components/fx-form.js +2 -2
- package/dist/components/fx-game.js +2 -2
- package/dist/components/fx-genart.js +2 -2
- package/dist/components/fx-geo.js +2 -2
- package/dist/components/fx-gesture.js +2 -2
- package/dist/components/fx-gpu.js +3 -3
- package/dist/components/fx-light.js +2 -2
- package/dist/components/fx-lottie.js +2 -2
- package/dist/components/fx-morph.js +2 -2
- package/dist/components/fx-music.js +3 -3
- package/dist/components/fx-organic.js +2 -2
- package/dist/components/fx-paper.js +2 -2
- package/dist/components/fx-perf.js +2 -2
- package/dist/components/fx-physics.js +2 -2
- package/dist/components/fx-retro.js +2 -2
- package/dist/components/fx-safe.js +2 -2
- package/dist/components/fx-shop.js +2 -2
- package/dist/components/fx-social.js +2 -2
- package/dist/components/fx-spatial.js +2 -2
- package/dist/components/fx-surface.js +2 -2
- package/dist/components/fx-text.js +2 -2
- package/dist/components/fx-transitions.js +3 -3
- package/dist/components/fx-video.js +2 -2
- package/dist/components/fx-weather.js +2 -2
- package/dist/components/fx.js +6 -6
- package/dist/components/fx2.cjs +1 -10
- package/dist/components/fx2.cjs.map +1 -1
- package/dist/components/fx2.d.cts +1 -6
- package/dist/components/fx2.d.ts +1 -6
- package/dist/components/fx2.js +7 -15
- package/dist/components/fx2.js.map +1 -1
- package/dist/components/gesture.js +4 -4
- package/dist/components/interaction.js +1 -1
- package/dist/components/layout.js +1 -1
- package/dist/components/marketplace.cjs +104 -0
- package/dist/components/marketplace.cjs.map +1 -1
- package/dist/components/marketplace.d.cts +33 -2
- package/dist/components/marketplace.d.ts +33 -2
- package/dist/components/marketplace.js +105 -5
- package/dist/components/marketplace.js.map +1 -1
- package/dist/components/native.js +3 -3
- package/dist/components/packs.js +1 -1
- package/dist/components/page.js +3 -3
- package/dist/components/perf.js +2 -2
- package/dist/components/physics.js +3 -3
- package/dist/components/plugins.cjs +138 -0
- package/dist/components/plugins.cjs.map +1 -0
- package/dist/components/plugins.d.cts +120 -0
- package/dist/components/plugins.d.ts +120 -0
- package/dist/components/plugins.js +105 -0
- package/dist/components/plugins.js.map +1 -0
- package/dist/components/reveal.js +1 -1
- package/dist/components/solid.js +8 -8
- package/dist/components/svelte.js +8 -8
- package/dist/components/svg.js +1 -1
- package/dist/components/text.js +2 -2
- package/dist/components/timeline.js +3 -3
- package/dist/components/transitions.js +1 -1
- package/dist/components/ui.js +4 -4
- package/dist/components/vue.js +8 -8
- package/dist/components/webgl.js +1 -1
- package/dist/components/widgets.cjs +420 -199
- package/dist/components/widgets.cjs.map +1 -1
- package/dist/components/widgets.d.cts +42 -2
- package/dist/components/widgets.d.ts +42 -2
- package/dist/components/widgets.js +428 -209
- package/dist/components/widgets.js.map +1 -1
- package/dist/components.js +10 -10
- package/dist/index.js +2 -2
- package/dist/llms-full.txt +3018 -0
- package/dist/llms.txt +207 -0
- package/dist/manifest.json +7562 -0
- package/dist/manifest.schema.json +85 -0
- package/dist/runtime/format-css.cjs +184 -0
- package/dist/runtime/format-css.cjs.map +1 -0
- package/dist/runtime/format-css.d.cts +174 -0
- package/dist/runtime/format-css.d.ts +174 -0
- package/dist/runtime/format-css.iife.js +2 -0
- package/dist/runtime/format-css.iife.js.map +1 -0
- package/dist/runtime/format-css.js +176 -0
- package/dist/runtime/format-css.js.map +1 -0
- package/dist/runtime/format-motion.cjs +138 -0
- package/dist/runtime/format-motion.cjs.map +1 -0
- package/dist/runtime/format-motion.d.cts +208 -0
- package/dist/runtime/format-motion.d.ts +208 -0
- package/dist/runtime/format-motion.iife.js +2 -0
- package/dist/runtime/format-motion.iife.js.map +1 -0
- package/dist/runtime/format-motion.js +132 -0
- package/dist/runtime/format-motion.js.map +1 -0
- package/dist/runtime.cjs +78 -0
- package/dist/runtime.cjs.map +1 -0
- package/dist/runtime.d.cts +236 -0
- package/dist/runtime.d.ts +236 -0
- package/dist/runtime.iife.js +2 -0
- package/dist/runtime.iife.js.map +1 -0
- package/dist/runtime.js +54 -0
- package/dist/runtime.js.map +1 -0
- package/dist/widgets.umd.js +1 -1
- package/dist/widgets.umd.js.map +1 -1
- package/docs/ROADMAP.md +85 -14
- package/docs/components.md +66 -0
- package/docs/core.md +47 -0
- package/docs/deprecations.md +1 -1
- package/docs/runtime/core.md +55 -0
- package/docs/runtime/format-css.md +59 -0
- package/docs/runtime/format-motion.md +56 -0
- package/docs/upgrading-10.md +1 -1
- package/package.json +88 -6
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
type MotionSensitivity = 'full' | 'gentle' | 'minimal' | 'static';
|
|
2
|
+
type Cleanup = () => void;
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* 5.0 — unified plugin-style effect registration. Every effect (built-in or
|
|
6
|
+
* yours) is a plain object registered once and played the same way:
|
|
7
|
+
* `playEffect(el, name)`, `bindEffect(el, name, { trigger })` or
|
|
8
|
+
* `<usa-fx effect="name" trigger="click">`. Effects get a context that
|
|
9
|
+
* already applies reduced motion, motion sensitivity, intensity and the
|
|
10
|
+
* animation budget.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
declare const EFFECT_KINDS: readonly ["enter", "exit", "attention", "click", "hover", "card", "loop", "page", "background", "text", "cursor", "scroll"];
|
|
14
|
+
type EffectKind = (typeof EFFECT_KINDS)[number];
|
|
15
|
+
interface EffectContext {
|
|
16
|
+
/** Reduced motion applies (OS setting, `minimal` / `static` sensitivity). */
|
|
17
|
+
readonly reduced: boolean;
|
|
18
|
+
readonly sensitivity: MotionSensitivity;
|
|
19
|
+
/** The triggering event (pointer position for click effects), if any. */
|
|
20
|
+
readonly event?: Event;
|
|
21
|
+
/** `el.animate()` with the library's motion rules (may return `null`). */
|
|
22
|
+
animate(el: Element, keyframes: Keyframe[], options: KeyframeAnimationOptions): Animation | null;
|
|
23
|
+
/** Register teardown for long-running effects (loops, listeners). */
|
|
24
|
+
onCleanup(fn: Cleanup): void;
|
|
25
|
+
}
|
|
26
|
+
interface EffectDefinition<O extends Record<string, unknown> = Record<string, any>> {
|
|
27
|
+
/** Unique, kebab-case. */
|
|
28
|
+
name: string;
|
|
29
|
+
kind: EffectKind;
|
|
30
|
+
/** One line for docs and the gallery. */
|
|
31
|
+
description?: string;
|
|
32
|
+
/** Option defaults (merged under the caller's options). */
|
|
33
|
+
defaults?: Partial<O>;
|
|
34
|
+
/**
|
|
35
|
+
* Under reduced motion: `'skip'` (do nothing — default for loop, background
|
|
36
|
+
* and cursor effects) or `'run'` (run with `ctx.reduced === true`, the
|
|
37
|
+
* effect degrades itself — default for everything else).
|
|
38
|
+
*/
|
|
39
|
+
reduced?: 'skip' | 'run';
|
|
40
|
+
/** Play the effect. Return an Animation / Promise to be awaited, or a cleanup. */
|
|
41
|
+
run(el: HTMLElement, options: O, ctx: EffectContext): void | Cleanup | Animation | null | Promise<unknown>;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* `motionary/plugins` (10.0) — every built-in effect pack as a plugin for
|
|
46
|
+
* `createMotion().use(…)` (`motionary/core`) or `usePlugins(…)` (`motionary/fx2`).
|
|
47
|
+
* Import only the ones you use; each pulls in just its own pack.
|
|
48
|
+
*/
|
|
49
|
+
|
|
50
|
+
interface EffectPlugin {
|
|
51
|
+
name: string;
|
|
52
|
+
effects: EffectDefinition[];
|
|
53
|
+
}
|
|
54
|
+
/** The `gpu` pack. */
|
|
55
|
+
declare const gpu: EffectPlugin;
|
|
56
|
+
/** The `text` pack. */
|
|
57
|
+
declare const text: EffectPlugin;
|
|
58
|
+
/** The `light` pack. */
|
|
59
|
+
declare const light: EffectPlugin;
|
|
60
|
+
/** The `depth` pack. */
|
|
61
|
+
declare const depth: EffectPlugin;
|
|
62
|
+
/** The `morph` pack. */
|
|
63
|
+
declare const morph: EffectPlugin;
|
|
64
|
+
/** The `transitions` pack. */
|
|
65
|
+
declare const transitions: EffectPlugin;
|
|
66
|
+
/** The `weather` pack. */
|
|
67
|
+
declare const weather: EffectPlugin;
|
|
68
|
+
/** The `physics` pack. */
|
|
69
|
+
declare const physics: EffectPlugin;
|
|
70
|
+
/** The `focus` pack. */
|
|
71
|
+
declare const focus: EffectPlugin;
|
|
72
|
+
/** The `music` pack. */
|
|
73
|
+
declare const music: EffectPlugin;
|
|
74
|
+
/** The `chart` pack. */
|
|
75
|
+
declare const chart: EffectPlugin;
|
|
76
|
+
/** The `shop` pack. */
|
|
77
|
+
declare const shop: EffectPlugin;
|
|
78
|
+
/** The `social` pack. */
|
|
79
|
+
declare const social: EffectPlugin;
|
|
80
|
+
/** The `game` pack. */
|
|
81
|
+
declare const game: EffectPlugin;
|
|
82
|
+
/** The `geo` pack. */
|
|
83
|
+
declare const geo: EffectPlugin;
|
|
84
|
+
/** The `form` pack. */
|
|
85
|
+
declare const form: EffectPlugin;
|
|
86
|
+
/** The `ai` pack. */
|
|
87
|
+
declare const ai: EffectPlugin;
|
|
88
|
+
/** The `festival` pack. */
|
|
89
|
+
declare const festival: EffectPlugin;
|
|
90
|
+
/** The `retro` pack. */
|
|
91
|
+
declare const retro: EffectPlugin;
|
|
92
|
+
/** The `organic` pack. */
|
|
93
|
+
declare const organic: EffectPlugin;
|
|
94
|
+
/** The `cyber` pack. */
|
|
95
|
+
declare const cyber: EffectPlugin;
|
|
96
|
+
/** The `paper` pack. */
|
|
97
|
+
declare const paper: EffectPlugin;
|
|
98
|
+
/** The `surface` pack. */
|
|
99
|
+
declare const surface: EffectPlugin;
|
|
100
|
+
/** The `gesture3` pack. */
|
|
101
|
+
declare const gesture3: EffectPlugin;
|
|
102
|
+
/** The `spatial` pack. */
|
|
103
|
+
declare const spatial: EffectPlugin;
|
|
104
|
+
/** The `cinema` pack. */
|
|
105
|
+
declare const cinema: EffectPlugin;
|
|
106
|
+
/** The `lottie` pack. */
|
|
107
|
+
declare const lottie: EffectPlugin;
|
|
108
|
+
/** The `genart` pack. */
|
|
109
|
+
declare const genart: EffectPlugin;
|
|
110
|
+
/** The `video` pack. */
|
|
111
|
+
declare const video: EffectPlugin;
|
|
112
|
+
/** The `safe` pack. */
|
|
113
|
+
declare const safe: EffectPlugin;
|
|
114
|
+
/** The `perf3` pack. */
|
|
115
|
+
declare const perf3: EffectPlugin;
|
|
116
|
+
/** Every built-in plugin. */
|
|
117
|
+
declare const ALL_PLUGINS: EffectPlugin[];
|
|
118
|
+
|
|
119
|
+
export { ALL_PLUGINS, ai, chart, cinema, cyber, depth, festival, focus, form, game, genart, geo, gesture3, gpu, light, lottie, morph, music, organic, paper, perf3, physics, retro, safe, shop, social, spatial, surface, text, transitions, video, weather };
|
|
120
|
+
export type { EffectPlugin };
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { G as GPU_FX } from '../chunks/gpu-CDcXiNA8.js';
|
|
2
|
+
import { TEXT3_FX } from './fx-text.js';
|
|
3
|
+
import { LIGHT_FX } from './fx-light.js';
|
|
4
|
+
import { DEPTH3_FX } from './fx-3d.js';
|
|
5
|
+
import { MORPH2_FX } from './fx-morph.js';
|
|
6
|
+
import { TRANSITIONS2_FX } from './fx-transitions.js';
|
|
7
|
+
import { WEATHER_FX } from './fx-weather.js';
|
|
8
|
+
import { PHYSICS2_FX } from './fx-physics.js';
|
|
9
|
+
import { FOCUS_FX } from './fx-focus.js';
|
|
10
|
+
import { MUSIC_FX } from './fx-music.js';
|
|
11
|
+
import { CHART_FX } from './fx-chart.js';
|
|
12
|
+
import { SHOP_FX } from './fx-shop.js';
|
|
13
|
+
import { SOCIAL_FX } from './fx-social.js';
|
|
14
|
+
import { GAME_FX } from './fx-game.js';
|
|
15
|
+
import { GEO_FX } from './fx-geo.js';
|
|
16
|
+
import { FORM_FX } from './fx-form.js';
|
|
17
|
+
import { AI_FX } from './fx-ai.js';
|
|
18
|
+
import { FESTIVAL_FX } from './fx-festival.js';
|
|
19
|
+
import { RETRO_FX } from './fx-retro.js';
|
|
20
|
+
import { ORGANIC_FX } from './fx-organic.js';
|
|
21
|
+
import { CYBER_FX } from './fx-cyber.js';
|
|
22
|
+
import { PAPER_FX } from './fx-paper.js';
|
|
23
|
+
import { SURFACE_FX } from './fx-surface.js';
|
|
24
|
+
import { GESTURE3_FX } from './fx-gesture.js';
|
|
25
|
+
import { SPATIAL_FX } from './fx-spatial.js';
|
|
26
|
+
import { CINEMA_FX } from './fx-cinema.js';
|
|
27
|
+
import { LOTTIE_FX } from './fx-lottie.js';
|
|
28
|
+
import { GENART_FX } from './fx-genart.js';
|
|
29
|
+
import { VIDEO_FX } from './fx-video.js';
|
|
30
|
+
import { SAFE_FX } from './fx-safe.js';
|
|
31
|
+
import { PERF3_FX } from './fx-perf.js';
|
|
32
|
+
import '../chunks/registry-gFJRpPES.js';
|
|
33
|
+
import '../chunks/base-BnRyfuyM.js';
|
|
34
|
+
import '../chunks/generative-2LhxG5BJ.js';
|
|
35
|
+
import '../chunks/shared-CkKHWrtJ.js';
|
|
36
|
+
import '../chunks/audio-D95jwlOh.js';
|
|
37
|
+
|
|
38
|
+
const P = (name, effects) => ({ name, effects });
|
|
39
|
+
/** The `gpu` pack. */
|
|
40
|
+
const gpu = P('gpu', GPU_FX);
|
|
41
|
+
/** The `text` pack. */
|
|
42
|
+
const text = P('text', TEXT3_FX);
|
|
43
|
+
/** The `light` pack. */
|
|
44
|
+
const light = P('light', LIGHT_FX);
|
|
45
|
+
/** The `depth` pack. */
|
|
46
|
+
const depth = P('depth', DEPTH3_FX);
|
|
47
|
+
/** The `morph` pack. */
|
|
48
|
+
const morph = P('morph', MORPH2_FX);
|
|
49
|
+
/** The `transitions` pack. */
|
|
50
|
+
const transitions = P('transitions', TRANSITIONS2_FX);
|
|
51
|
+
/** The `weather` pack. */
|
|
52
|
+
const weather = P('weather', WEATHER_FX);
|
|
53
|
+
/** The `physics` pack. */
|
|
54
|
+
const physics = P('physics', PHYSICS2_FX);
|
|
55
|
+
/** The `focus` pack. */
|
|
56
|
+
const focus = P('focus', FOCUS_FX);
|
|
57
|
+
/** The `music` pack. */
|
|
58
|
+
const music = P('music', MUSIC_FX);
|
|
59
|
+
/** The `chart` pack. */
|
|
60
|
+
const chart = P('chart', CHART_FX);
|
|
61
|
+
/** The `shop` pack. */
|
|
62
|
+
const shop = P('shop', SHOP_FX);
|
|
63
|
+
/** The `social` pack. */
|
|
64
|
+
const social = P('social', SOCIAL_FX);
|
|
65
|
+
/** The `game` pack. */
|
|
66
|
+
const game = P('game', GAME_FX);
|
|
67
|
+
/** The `geo` pack. */
|
|
68
|
+
const geo = P('geo', GEO_FX);
|
|
69
|
+
/** The `form` pack. */
|
|
70
|
+
const form = P('form', FORM_FX);
|
|
71
|
+
/** The `ai` pack. */
|
|
72
|
+
const ai = P('ai', AI_FX);
|
|
73
|
+
/** The `festival` pack. */
|
|
74
|
+
const festival = P('festival', FESTIVAL_FX);
|
|
75
|
+
/** The `retro` pack. */
|
|
76
|
+
const retro = P('retro', RETRO_FX);
|
|
77
|
+
/** The `organic` pack. */
|
|
78
|
+
const organic = P('organic', ORGANIC_FX);
|
|
79
|
+
/** The `cyber` pack. */
|
|
80
|
+
const cyber = P('cyber', CYBER_FX);
|
|
81
|
+
/** The `paper` pack. */
|
|
82
|
+
const paper = P('paper', PAPER_FX);
|
|
83
|
+
/** The `surface` pack. */
|
|
84
|
+
const surface = P('surface', SURFACE_FX);
|
|
85
|
+
/** The `gesture3` pack. */
|
|
86
|
+
const gesture3 = P('gesture3', GESTURE3_FX);
|
|
87
|
+
/** The `spatial` pack. */
|
|
88
|
+
const spatial = P('spatial', SPATIAL_FX);
|
|
89
|
+
/** The `cinema` pack. */
|
|
90
|
+
const cinema = P('cinema', CINEMA_FX);
|
|
91
|
+
/** The `lottie` pack. */
|
|
92
|
+
const lottie = P('lottie', LOTTIE_FX);
|
|
93
|
+
/** The `genart` pack. */
|
|
94
|
+
const genart = P('genart', GENART_FX);
|
|
95
|
+
/** The `video` pack. */
|
|
96
|
+
const video = P('video', VIDEO_FX);
|
|
97
|
+
/** The `safe` pack. */
|
|
98
|
+
const safe = P('safe', SAFE_FX);
|
|
99
|
+
/** The `perf3` pack. */
|
|
100
|
+
const perf3 = P('perf3', PERF3_FX);
|
|
101
|
+
/** Every built-in plugin. */
|
|
102
|
+
const ALL_PLUGINS = [gpu, text, light, depth, morph, transitions, weather, physics, focus, music, chart, shop, social, game, geo, form, ai, festival, retro, organic, cyber, paper, surface, gesture3, spatial, cinema, lottie, genart, video, safe, perf3];
|
|
103
|
+
|
|
104
|
+
export { ALL_PLUGINS, ai, chart, cinema, cyber, depth, festival, focus, form, game, genart, geo, gesture3, gpu, light, lottie, morph, music, organic, paper, perf3, physics, retro, safe, shop, social, spatial, surface, text, transitions, video, weather };
|
|
105
|
+
//# sourceMappingURL=plugins.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugins.js","sources":["../../src/components/plugins/index.ts"],"sourcesContent":["/**\n * `motionary/plugins` (10.0) — every built-in effect pack as a plugin for\n * `createMotion().use(…)` (`motionary/core`) or `usePlugins(…)` (`motionary/fx2`).\n * Import only the ones you use; each pulls in just its own pack.\n */\nimport type { EffectDefinition } from '../fx/registry';\nimport { GPU_FX } from '../fx2/gpu';\nimport { TEXT3_FX } from '../fx2/text3';\nimport { LIGHT_FX } from '../fx2/light';\nimport { DEPTH3_FX } from '../fx2/depth3';\nimport { MORPH2_FX } from '../fx2/morph2';\nimport { TRANSITIONS2_FX } from '../fx2/transitions2';\nimport { WEATHER_FX } from '../fx2/weather';\nimport { PHYSICS2_FX } from '../fx2/physics2';\nimport { FOCUS_FX } from '../fx2/focus';\nimport { MUSIC_FX } from '../fx2/music';\nimport { CHART_FX } from '../fx2/chart';\nimport { SHOP_FX } from '../fx2/shop';\nimport { SOCIAL_FX } from '../fx2/social';\nimport { GAME_FX } from '../fx2/game';\nimport { GEO_FX } from '../fx2/geo';\nimport { FORM_FX } from '../fx2/form';\nimport { AI_FX } from '../fx2/ai';\nimport { FESTIVAL_FX } from '../fx2/festival';\nimport { RETRO_FX } from '../fx2/retro2';\nimport { ORGANIC_FX } from '../fx2/organic';\nimport { CYBER_FX } from '../fx2/cyber';\nimport { PAPER_FX } from '../fx2/paper';\nimport { SURFACE_FX } from '../fx2/themefx';\nimport { GESTURE3_FX } from '../fx2/gesture3';\nimport { SPATIAL_FX } from '../fx2/spatial';\nimport { CINEMA_FX } from '../fx2/cinema';\nimport { LOTTIE_FX } from '../fx2/lottie';\nimport { GENART_FX } from '../fx2/genart';\nimport { VIDEO_FX } from '../fx2/video';\nimport { SAFE_FX } from '../fx2/safemotion';\nimport { PERF3_FX } from '../fx2/perf3';\n\nexport interface EffectPlugin {\n name: string;\n effects: EffectDefinition[];\n}\nconst P = (name: string, effects: EffectDefinition[]): EffectPlugin => ({ name, effects });\n\n/** The `gpu` pack. */\nexport const gpu = P('gpu', GPU_FX);\n/** The `text` pack. */\nexport const text = P('text', TEXT3_FX);\n/** The `light` pack. */\nexport const light = P('light', LIGHT_FX);\n/** The `depth` pack. */\nexport const depth = P('depth', DEPTH3_FX);\n/** The `morph` pack. */\nexport const morph = P('morph', MORPH2_FX);\n/** The `transitions` pack. */\nexport const transitions = P('transitions', TRANSITIONS2_FX);\n/** The `weather` pack. */\nexport const weather = P('weather', WEATHER_FX);\n/** The `physics` pack. */\nexport const physics = P('physics', PHYSICS2_FX);\n/** The `focus` pack. */\nexport const focus = P('focus', FOCUS_FX);\n/** The `music` pack. */\nexport const music = P('music', MUSIC_FX);\n/** The `chart` pack. */\nexport const chart = P('chart', CHART_FX);\n/** The `shop` pack. */\nexport const shop = P('shop', SHOP_FX);\n/** The `social` pack. */\nexport const social = P('social', SOCIAL_FX);\n/** The `game` pack. */\nexport const game = P('game', GAME_FX);\n/** The `geo` pack. */\nexport const geo = P('geo', GEO_FX);\n/** The `form` pack. */\nexport const form = P('form', FORM_FX);\n/** The `ai` pack. */\nexport const ai = P('ai', AI_FX);\n/** The `festival` pack. */\nexport const festival = P('festival', FESTIVAL_FX);\n/** The `retro` pack. */\nexport const retro = P('retro', RETRO_FX);\n/** The `organic` pack. */\nexport const organic = P('organic', ORGANIC_FX);\n/** The `cyber` pack. */\nexport const cyber = P('cyber', CYBER_FX);\n/** The `paper` pack. */\nexport const paper = P('paper', PAPER_FX);\n/** The `surface` pack. */\nexport const surface = P('surface', SURFACE_FX);\n/** The `gesture3` pack. */\nexport const gesture3 = P('gesture3', GESTURE3_FX);\n/** The `spatial` pack. */\nexport const spatial = P('spatial', SPATIAL_FX);\n/** The `cinema` pack. */\nexport const cinema = P('cinema', CINEMA_FX);\n/** The `lottie` pack. */\nexport const lottie = P('lottie', LOTTIE_FX);\n/** The `genart` pack. */\nexport const genart = P('genart', GENART_FX);\n/** The `video` pack. */\nexport const video = P('video', VIDEO_FX);\n/** The `safe` pack. */\nexport const safe = P('safe', SAFE_FX);\n/** The `perf3` pack. */\nexport const perf3 = P('perf3', PERF3_FX);\n\n/** Every built-in plugin. */\nexport const ALL_PLUGINS: EffectPlugin[] = [gpu, text, light, depth, morph, transitions, weather, physics, focus, music, chart, shop, social, game, geo, form, ai, festival, retro, organic, cyber, paper, surface, gesture3, spatial, cinema, lottie, genart, video, safe, perf3];\n"],"names":[],"mappings":"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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as defineElement, D as EASE_OUT, l as caf, r as raf, k as clamp } from '../chunks/base-
|
|
1
|
+
import { u as defineElement, D as EASE_OUT, l as caf, r as raf, k as clamp } from '../chunks/base-BnRyfuyM.js';
|
|
2
2
|
|
|
3
3
|
/** Entrance effects shared by `<usa-reveal>` and `<usa-stagger>` (transform / opacity / filter only). */
|
|
4
4
|
const REVEAL_EFFECTS = [
|
package/dist/components/solid.js
CHANGED
|
@@ -3,33 +3,33 @@ import { defineComponents } from '../components.js';
|
|
|
3
3
|
import { b as bindUsa } from '../chunks/bind-B_CTL6Qn.js';
|
|
4
4
|
export { u as usaEventName } from '../chunks/bind-B_CTL6Qn.js';
|
|
5
5
|
import './reveal.js';
|
|
6
|
-
import '../chunks/base-
|
|
6
|
+
import '../chunks/base-BnRyfuyM.js';
|
|
7
7
|
import './text.js';
|
|
8
|
-
import '../chunks/core-
|
|
8
|
+
import '../chunks/core-DsGoL9EY.js';
|
|
9
9
|
import './tokens.js';
|
|
10
10
|
import './interaction.js';
|
|
11
11
|
import './feedback.js';
|
|
12
12
|
import './background.js';
|
|
13
|
-
import '../chunks/variants-
|
|
13
|
+
import '../chunks/variants-GU3yIL4F.js';
|
|
14
14
|
import './transitions.js';
|
|
15
15
|
import './physics.js';
|
|
16
|
-
import '../chunks/spring-
|
|
16
|
+
import '../chunks/spring-CZDNyqWp.js';
|
|
17
17
|
import './cards.js';
|
|
18
18
|
import './click.js';
|
|
19
|
-
import '../chunks/fx-
|
|
19
|
+
import '../chunks/fx-CtnrFEg9.js';
|
|
20
20
|
import './ui.js';
|
|
21
21
|
import './page.js';
|
|
22
22
|
import './timeline.js';
|
|
23
23
|
import './gesture.js';
|
|
24
|
-
import '../chunks/core-
|
|
24
|
+
import '../chunks/core-XA2yhn1b.js';
|
|
25
25
|
import './svg.js';
|
|
26
26
|
import './webgl.js';
|
|
27
27
|
import './depth.js';
|
|
28
28
|
import './layout.js';
|
|
29
29
|
import './packs.js';
|
|
30
30
|
import './fx.js';
|
|
31
|
-
import '../chunks/registry-
|
|
32
|
-
import '../chunks/builtins-
|
|
31
|
+
import '../chunks/registry-gFJRpPES.js';
|
|
32
|
+
import '../chunks/builtins-CqIq1zBv.js';
|
|
33
33
|
import './a11y.js';
|
|
34
34
|
import '../chunks/index-tags-B-JBecYg.js';
|
|
35
35
|
import './perf.js';
|
|
@@ -2,33 +2,33 @@ import { defineComponents } from '../components.js';
|
|
|
2
2
|
import { b as bindUsa } from '../chunks/bind-B_CTL6Qn.js';
|
|
3
3
|
export { u as usaEventName } from '../chunks/bind-B_CTL6Qn.js';
|
|
4
4
|
import './reveal.js';
|
|
5
|
-
import '../chunks/base-
|
|
5
|
+
import '../chunks/base-BnRyfuyM.js';
|
|
6
6
|
import './text.js';
|
|
7
|
-
import '../chunks/core-
|
|
7
|
+
import '../chunks/core-DsGoL9EY.js';
|
|
8
8
|
import './tokens.js';
|
|
9
9
|
import './interaction.js';
|
|
10
10
|
import './feedback.js';
|
|
11
11
|
import './background.js';
|
|
12
|
-
import '../chunks/variants-
|
|
12
|
+
import '../chunks/variants-GU3yIL4F.js';
|
|
13
13
|
import './transitions.js';
|
|
14
14
|
import './physics.js';
|
|
15
|
-
import '../chunks/spring-
|
|
15
|
+
import '../chunks/spring-CZDNyqWp.js';
|
|
16
16
|
import './cards.js';
|
|
17
17
|
import './click.js';
|
|
18
|
-
import '../chunks/fx-
|
|
18
|
+
import '../chunks/fx-CtnrFEg9.js';
|
|
19
19
|
import './ui.js';
|
|
20
20
|
import './page.js';
|
|
21
21
|
import './timeline.js';
|
|
22
22
|
import './gesture.js';
|
|
23
|
-
import '../chunks/core-
|
|
23
|
+
import '../chunks/core-XA2yhn1b.js';
|
|
24
24
|
import './svg.js';
|
|
25
25
|
import './webgl.js';
|
|
26
26
|
import './depth.js';
|
|
27
27
|
import './layout.js';
|
|
28
28
|
import './packs.js';
|
|
29
29
|
import './fx.js';
|
|
30
|
-
import '../chunks/registry-
|
|
31
|
-
import '../chunks/builtins-
|
|
30
|
+
import '../chunks/registry-gFJRpPES.js';
|
|
31
|
+
import '../chunks/builtins-CqIq1zBv.js';
|
|
32
32
|
import './a11y.js';
|
|
33
33
|
import '../chunks/index-tags-B-JBecYg.js';
|
|
34
34
|
import './perf.js';
|
package/dist/components/svg.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { k as clamp, m as motionScale, l as caf, p as prefersReducedMotion, q as now, r as raf, u as defineElement, D as EASE_OUT } from '../chunks/base-
|
|
1
|
+
import { k as clamp, m as motionScale, l as caf, p as prefersReducedMotion, q as now, r as raf, u as defineElement, D as EASE_OUT } from '../chunks/base-BnRyfuyM.js';
|
|
2
2
|
|
|
3
3
|
const NUM = /-?(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?/gi;
|
|
4
4
|
/** `true` when two path strings share the same commands (so their numbers can be interpolated). */
|
package/dist/components/text.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as defineElement,
|
|
2
|
-
import { t as timeline } from '../chunks/core-
|
|
1
|
+
import { u as defineElement, A as srText, l as caf, q as now, r as raf, D as EASE_OUT, E as EASE_SPRING, k as clamp } from '../chunks/base-BnRyfuyM.js';
|
|
2
|
+
import { t as timeline } from '../chunks/core-DsGoL9EY.js';
|
|
3
3
|
import './tokens.js';
|
|
4
4
|
|
|
5
5
|
var css$5 = "usa-typewriter{white-space:pre-wrap}usa-typewriter .usa-tw-caret{display:inline-block;width:var(--usa-caret-width,0.08em);height:1.05em;margin-left:0.06em;vertical-align:-0.12em;background:var(--usa-caret-color,currentColor);animation:usa-caret 1.06s steps(1) infinite}usa-typewriter[data-typing] .usa-tw-caret{animation:none}usa-typewriter[data-no-cursor] .usa-tw-caret{display:none}@keyframes usa-caret{50%{opacity:0}}@media (prefers-reduced-motion:reduce){usa-typewriter .usa-tw-caret,usa-shimmer-text{animation:none}}";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as defineElement } from '../chunks/base-
|
|
2
|
-
import { t as timeline, T as TIMELINE_PRESETS } from '../chunks/core-
|
|
3
|
-
export { r as resolvePosition, s as supportsNativeScrub } from '../chunks/core-
|
|
1
|
+
import { u as defineElement } from '../chunks/base-BnRyfuyM.js';
|
|
2
|
+
import { t as timeline, T as TIMELINE_PRESETS } from '../chunks/core-DsGoL9EY.js';
|
|
3
|
+
export { r as resolvePosition, s as supportsNativeScrub } from '../chunks/core-DsGoL9EY.js';
|
|
4
4
|
import './tokens.js';
|
|
5
5
|
|
|
6
6
|
var css = "usa-timeline{display:block}usa-timeline[scrub]{position:relative}@media (prefers-reduced-motion:reduce){usa-timeline [data-tl]{opacity:1 !important;transform:none !important;filter:none !important;clip-path:none !important}}";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as defineElement, F as kindOf, G as shadowStyles, D as EASE_OUT, H as FLUENT_DECELERATE, p as prefersReducedMotion } from '../chunks/base-
|
|
1
|
+
import { u as defineElement, F as kindOf, G as shadowStyles, D as EASE_OUT, H as FLUENT_DECELERATE, p as prefersReducedMotion } from '../chunks/base-BnRyfuyM.js';
|
|
2
2
|
|
|
3
3
|
var shadowCss = ":host{display:contents}dialog{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;color:inherit;overflow:hidden}dialog:not([open]){display:none}dialog::backdrop{background:transparent}[part=\"backdrop\"]{position:absolute;inset:0;background:var(--usa-dialog-backdrop,rgb(0 0 0 / 0.42))}[part=\"panel\"]{position:absolute;left:50%;top:50%;translate:-50% -50%;box-sizing:border-box;width:min(var(--usa-dialog-width,480px),calc(100vw - 32px));max-height:calc(100vh - 32px);overflow:auto;padding:var(--usa-dialog-padding,24px);border-radius:var(--usa-dialog-radius,12px);background:var(--usa-dialog-bg,Canvas);color:var(--usa-dialog-fg,CanvasText);box-shadow:0 32px 64px -12px rgb(0 0 0 / 0.45),0 0 0 1px rgb(127 127 127 / 0.18)}dialog[data-kind^=\"drawer\"] [part=\"panel\"]{top:0;bottom:0;translate:none;max-height:none;height:100%;border-radius:0;width:min(var(--usa-dialog-width,380px),88vw)}dialog[data-kind=\"drawer-start\"] [part=\"panel\"]{left:0}dialog[data-kind=\"drawer-end\"] [part=\"panel\"]{left:auto;right:0}dialog[data-kind=\"drawer-bottom\"] [part=\"panel\"],dialog[data-kind=\"sheet\"] [part=\"panel\"]{top:auto;bottom:0;left:0;right:0;translate:none;width:100%;height:auto;max-height:85vh;border-radius:var(--usa-dialog-radius,16px) var(--usa-dialog-radius,16px) 0 0}dialog[data-kind=\"sheet\"] [part=\"panel\"]{left:50%;translate:-50% 0;width:min(var(--usa-dialog-width,560px),100vw)}";
|
|
4
4
|
|
package/dist/components/ui.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { u as defineElement, k as clamp, l as caf, r as raf } from '../chunks/base-
|
|
2
|
-
import { d as springEasing, c as createSpring, p as projectInertia, s as snapTo, a as rubberBand } from '../chunks/spring-
|
|
3
|
-
import { a as adoptVariants } from '../chunks/variants-
|
|
4
|
-
export { V as VARIANTS, s as setVariant } from '../chunks/variants-
|
|
1
|
+
import { u as defineElement, k as clamp, l as caf, r as raf } from '../chunks/base-BnRyfuyM.js';
|
|
2
|
+
import { d as springEasing, c as createSpring, p as projectInertia, s as snapTo, a as rubberBand } from '../chunks/spring-CZDNyqWp.js';
|
|
3
|
+
import { a as adoptVariants } from '../chunks/variants-GU3yIL4F.js';
|
|
4
|
+
export { V as VARIANTS, s as setVariant } from '../chunks/variants-GU3yIL4F.js';
|
|
5
5
|
|
|
6
6
|
/** Position a fixed `floating` element next to `anchor`, flipping when it would leave the viewport. */
|
|
7
7
|
function place(floating, anchor, placement = 'top', gap = 8) {
|
package/dist/components/vue.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { defineComponents } from '../components.js';
|
|
2
2
|
import './reveal.js';
|
|
3
|
-
import '../chunks/base-
|
|
3
|
+
import '../chunks/base-BnRyfuyM.js';
|
|
4
4
|
import './text.js';
|
|
5
|
-
import '../chunks/core-
|
|
5
|
+
import '../chunks/core-DsGoL9EY.js';
|
|
6
6
|
import './tokens.js';
|
|
7
7
|
import './interaction.js';
|
|
8
8
|
import './feedback.js';
|
|
9
9
|
import './background.js';
|
|
10
|
-
import '../chunks/variants-
|
|
10
|
+
import '../chunks/variants-GU3yIL4F.js';
|
|
11
11
|
import './transitions.js';
|
|
12
12
|
import './physics.js';
|
|
13
|
-
import '../chunks/spring-
|
|
13
|
+
import '../chunks/spring-CZDNyqWp.js';
|
|
14
14
|
import './cards.js';
|
|
15
15
|
import './click.js';
|
|
16
|
-
import '../chunks/fx-
|
|
16
|
+
import '../chunks/fx-CtnrFEg9.js';
|
|
17
17
|
import './ui.js';
|
|
18
18
|
import './page.js';
|
|
19
19
|
import './timeline.js';
|
|
20
20
|
import './gesture.js';
|
|
21
|
-
import '../chunks/core-
|
|
21
|
+
import '../chunks/core-XA2yhn1b.js';
|
|
22
22
|
import './svg.js';
|
|
23
23
|
import './webgl.js';
|
|
24
24
|
import './depth.js';
|
|
25
25
|
import './layout.js';
|
|
26
26
|
import './packs.js';
|
|
27
27
|
import './fx.js';
|
|
28
|
-
import '../chunks/registry-
|
|
29
|
-
import '../chunks/builtins-
|
|
28
|
+
import '../chunks/registry-gFJRpPES.js';
|
|
29
|
+
import '../chunks/builtins-CqIq1zBv.js';
|
|
30
30
|
import './a11y.js';
|
|
31
31
|
import '../chunks/index-tags-B-JBecYg.js';
|
|
32
32
|
import './perf.js';
|
package/dist/components/webgl.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as defineElement, q as now, k as clamp, l as caf, r as raf } from '../chunks/base-
|
|
1
|
+
import { u as defineElement, q as now, k as clamp, l as caf, r as raf } from '../chunks/base-BnRyfuyM.js';
|
|
2
2
|
|
|
3
3
|
/** Minimal WebGL runner: one full-canvas quad, one fragment shader, optional image texture. */
|
|
4
4
|
const VERTEX = 'attribute vec2 p;varying vec2 v_uv;void main(){v_uv=p*.5+.5;gl_Position=vec4(p,0.,1.);}';
|