motionary 9.6.0 → 9.8.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 +31 -0
- package/dist/chunks/{audio-cgWbDkoY.cjs → audio-BpU-A1m1.cjs} +3 -3
- package/dist/chunks/{audio-cgWbDkoY.cjs.map → audio-BpU-A1m1.cjs.map} +1 -1
- package/dist/chunks/{audio-CynhhWDi.js → audio-D95jwlOh.js} +3 -3
- package/dist/chunks/{audio-CynhhWDi.js.map → audio-D95jwlOh.js.map} +1 -1
- package/dist/chunks/{base-CLuqlLfG.js → base-BnRyfuyM.js} +2 -2
- package/dist/chunks/base-BnRyfuyM.js.map +1 -0
- package/dist/chunks/{base-DoRUZBy-.cjs → base-DBheNxJu.cjs} +2 -2
- package/dist/chunks/base-DBheNxJu.cjs.map +1 -0
- package/dist/chunks/{builtins-ClXshqj-.cjs → builtins-CKKZNR95.cjs} +3 -3
- package/dist/chunks/{builtins-ClXshqj-.cjs.map → builtins-CKKZNR95.cjs.map} +1 -1
- package/dist/chunks/{builtins-Bs4smevg.js → builtins-CqIq1zBv.js} +3 -3
- package/dist/chunks/{builtins-Bs4smevg.js.map → builtins-CqIq1zBv.js.map} +1 -1
- package/dist/chunks/{core-O4grKHSa.cjs → core-D74Fz-dL.cjs} +2 -2
- package/dist/chunks/{core-O4grKHSa.cjs.map → core-D74Fz-dL.cjs.map} +1 -1
- package/dist/chunks/{core-CiN5sqxB.js → core-DsGoL9EY.js} +2 -2
- package/dist/chunks/{core-CiN5sqxB.js.map → core-DsGoL9EY.js.map} +1 -1
- package/dist/chunks/{core-CwO835Wm.cjs → core-MQlXZKUG.cjs} +2 -2
- package/dist/chunks/{core-CwO835Wm.cjs.map → core-MQlXZKUG.cjs.map} +1 -1
- package/dist/chunks/{core-C3Taz-ew.js → core-XA2yhn1b.js} +2 -2
- package/dist/chunks/{core-C3Taz-ew.js.map → core-XA2yhn1b.js.map} +1 -1
- package/dist/chunks/{fx-C-XjLOTc.cjs → fx-B_pbhpDp.cjs} +2 -2
- package/dist/chunks/{fx-C-XjLOTc.cjs.map → fx-B_pbhpDp.cjs.map} +1 -1
- package/dist/chunks/{fx-CQv3IxMf.js → fx-CtnrFEg9.js} +2 -2
- package/dist/chunks/{fx-CQv3IxMf.js.map → fx-CtnrFEg9.js.map} +1 -1
- package/dist/chunks/{gpu-CB8frFOD.js → gpu-CDcXiNA8.js} +2 -2
- package/dist/chunks/{gpu-CB8frFOD.js.map → gpu-CDcXiNA8.js.map} +1 -1
- package/dist/chunks/{gpu-CcdA2D2i.cjs → gpu-cUixt7kT.cjs} +2 -2
- package/dist/chunks/{gpu-CcdA2D2i.cjs.map → gpu-cUixt7kT.cjs.map} +1 -1
- package/dist/chunks/{manifest-PJ0h8RS_.js → manifest-D58HXVY-.js} +2 -2
- package/dist/chunks/{manifest-PJ0h8RS_.js.map → manifest-D58HXVY-.js.map} +1 -1
- package/dist/chunks/{manifest-B08-vo9G.cjs → manifest-PaF9B8Vt.cjs} +2 -2
- package/dist/chunks/{manifest-B08-vo9G.cjs.map → manifest-PaF9B8Vt.cjs.map} +1 -1
- package/dist/chunks/{player-YzQGkKaW.js → player-48Zy_NBG.js} +4 -4
- package/dist/chunks/{player-YzQGkKaW.js.map → player-48Zy_NBG.js.map} +1 -1
- package/dist/chunks/{player-C2n17sdH.cjs → player-C4y4jXSv.cjs} +4 -4
- package/dist/chunks/{player-C2n17sdH.cjs.map → player-C4y4jXSv.cjs.map} +1 -1
- package/dist/chunks/{registry-CnO7ZVPK.js → registry-gFJRpPES.js} +2 -2
- package/dist/chunks/{registry-CnO7ZVPK.js.map → registry-gFJRpPES.js.map} +1 -1
- package/dist/chunks/{registry-BVklOepd.cjs → registry-xQZnSqqV.cjs} +2 -2
- package/dist/chunks/{registry-BVklOepd.cjs.map → registry-xQZnSqqV.cjs.map} +1 -1
- package/dist/chunks/{spring-uQMVJTj9.cjs → spring-BlTQD2AV.cjs} +2 -2
- package/dist/chunks/{spring-uQMVJTj9.cjs.map → spring-BlTQD2AV.cjs.map} +1 -1
- package/dist/chunks/{spring-BFKNHmfl.js → spring-CZDNyqWp.js} +2 -2
- package/dist/chunks/{spring-BFKNHmfl.js.map → spring-CZDNyqWp.js.map} +1 -1
- package/dist/chunks/{variants-DagykrKH.cjs → variants-CrDDJoYK.cjs} +2 -2
- package/dist/chunks/{variants-DagykrKH.cjs.map → variants-CrDDJoYK.cjs.map} +1 -1
- package/dist/chunks/{variants-B-zKORvt.js → variants-GU3yIL4F.js} +2 -2
- package/dist/chunks/{variants-B-zKORvt.js.map → variants-GU3yIL4F.js.map} +1 -1
- package/dist/components/a11y.cjs +1 -1
- package/dist/components/a11y.js +2 -2
- package/dist/components/angular.cjs +8 -8
- package/dist/components/angular.js +8 -8
- package/dist/components/background.cjs +2 -2
- package/dist/components/background.js +2 -2
- package/dist/components/bridge.cjs +1 -1
- package/dist/components/bridge.js +1 -1
- package/dist/components/cards.cjs +2 -2
- package/dist/components/cards.js +2 -2
- package/dist/components/click.cjs +3 -3
- package/dist/components/click.js +3 -3
- package/dist/components/depth.cjs +3 -3
- package/dist/components/depth.js +3 -3
- package/dist/components/design.cjs +117 -0
- package/dist/components/design.cjs.map +1 -0
- package/dist/components/design.d.cts +82 -0
- package/dist/components/design.d.ts +82 -0
- package/dist/components/design.js +112 -0
- package/dist/components/design.js.map +1 -0
- package/dist/components/dsl.cjs +2 -2
- package/dist/components/dsl.js +2 -2
- package/dist/components/effects.cjs +7 -7
- package/dist/components/effects.js +9 -9
- package/dist/components/engine.cjs +1 -1
- package/dist/components/engine.js +2 -2
- package/dist/components/feedback.cjs +1 -1
- package/dist/components/feedback.js +1 -1
- package/dist/components/fx-3d.cjs +2 -2
- package/dist/components/fx-3d.js +2 -2
- package/dist/components/fx-ai.cjs +2 -2
- package/dist/components/fx-ai.js +2 -2
- package/dist/components/fx-chart.cjs +2 -2
- package/dist/components/fx-chart.js +2 -2
- package/dist/components/fx-cinema.cjs +2 -2
- package/dist/components/fx-cinema.js +2 -2
- package/dist/components/fx-cyber.cjs +2 -2
- package/dist/components/fx-cyber.js +2 -2
- package/dist/components/fx-festival.cjs +2 -2
- package/dist/components/fx-festival.js +2 -2
- package/dist/components/fx-focus.cjs +2 -2
- package/dist/components/fx-focus.js +2 -2
- package/dist/components/fx-form.cjs +2 -2
- package/dist/components/fx-form.js +2 -2
- package/dist/components/fx-game.cjs +2 -2
- package/dist/components/fx-game.js +2 -2
- package/dist/components/fx-genart.cjs +2 -2
- package/dist/components/fx-genart.js +2 -2
- package/dist/components/fx-geo.cjs +2 -2
- package/dist/components/fx-geo.js +2 -2
- package/dist/components/fx-gesture.cjs +2 -2
- package/dist/components/fx-gesture.js +2 -2
- package/dist/components/fx-gpu.cjs +3 -3
- package/dist/components/fx-gpu.js +3 -3
- package/dist/components/fx-light.cjs +2 -2
- package/dist/components/fx-light.js +2 -2
- package/dist/components/fx-lottie.cjs +2 -2
- package/dist/components/fx-lottie.js +2 -2
- package/dist/components/fx-morph.cjs +2 -2
- package/dist/components/fx-morph.js +2 -2
- package/dist/components/fx-music.cjs +3 -3
- package/dist/components/fx-music.js +3 -3
- package/dist/components/fx-organic.cjs +2 -2
- package/dist/components/fx-organic.js +2 -2
- package/dist/components/fx-paper.cjs +2 -2
- package/dist/components/fx-paper.js +2 -2
- package/dist/components/fx-perf.cjs +2 -2
- package/dist/components/fx-perf.js +2 -2
- package/dist/components/fx-physics.cjs +2 -2
- package/dist/components/fx-physics.js +2 -2
- package/dist/components/fx-retro.cjs +2 -2
- package/dist/components/fx-retro.js +2 -2
- package/dist/components/fx-safe.cjs +2 -2
- package/dist/components/fx-safe.js +2 -2
- package/dist/components/fx-shop.cjs +2 -2
- package/dist/components/fx-shop.js +2 -2
- package/dist/components/fx-social.cjs +2 -2
- package/dist/components/fx-social.js +2 -2
- package/dist/components/fx-spatial.cjs +2 -2
- package/dist/components/fx-spatial.js +2 -2
- package/dist/components/fx-surface.cjs +2 -2
- package/dist/components/fx-surface.js +2 -2
- package/dist/components/fx-text.cjs +2 -2
- package/dist/components/fx-text.js +2 -2
- package/dist/components/fx-transitions.cjs +3 -3
- package/dist/components/fx-transitions.js +3 -3
- package/dist/components/fx-video.cjs +2 -2
- package/dist/components/fx-video.js +2 -2
- package/dist/components/fx-weather.cjs +2 -2
- package/dist/components/fx-weather.js +2 -2
- package/dist/components/fx.cjs +5 -5
- package/dist/components/fx.js +6 -6
- package/dist/components/fx2.cjs +5 -5
- package/dist/components/fx2.js +6 -6
- package/dist/components/gesture.cjs +3 -3
- package/dist/components/gesture.js +4 -4
- package/dist/components/interaction.cjs +1 -1
- package/dist/components/interaction.js +1 -1
- package/dist/components/layout.cjs +1 -1
- package/dist/components/layout.js +1 -1
- package/dist/components/lite.cjs +1 -1
- package/dist/components/lite.cjs.map +1 -1
- package/dist/components/lite.js +1 -1
- package/dist/components/lite.js.map +1 -1
- package/dist/components/marketplace.cjs +3 -3
- package/dist/components/marketplace.js +4 -4
- package/dist/components/native.cjs +148 -0
- package/dist/components/native.cjs.map +1 -0
- package/dist/components/native.d.cts +94 -0
- package/dist/components/native.d.ts +94 -0
- package/dist/components/native.js +142 -0
- package/dist/components/native.js.map +1 -0
- package/dist/components/packs.cjs +1 -1
- package/dist/components/packs.js +1 -1
- package/dist/components/page.cjs +2 -2
- package/dist/components/page.js +3 -3
- package/dist/components/perf.cjs +1 -1
- package/dist/components/perf.js +2 -2
- package/dist/components/physics.cjs +2 -2
- package/dist/components/physics.js +3 -3
- package/dist/components/reveal.cjs +1 -1
- package/dist/components/reveal.js +1 -1
- package/dist/components/solid.cjs +8 -8
- package/dist/components/solid.js +8 -8
- package/dist/components/svelte.cjs +8 -8
- package/dist/components/svelte.js +8 -8
- package/dist/components/svg.cjs +1 -1
- package/dist/components/svg.js +1 -1
- package/dist/components/text.cjs +2 -2
- package/dist/components/text.js +2 -2
- package/dist/components/timeline.cjs +2 -2
- package/dist/components/timeline.js +3 -3
- package/dist/components/transitions.cjs +1 -1
- package/dist/components/transitions.js +1 -1
- package/dist/components/ui.cjs +3 -3
- package/dist/components/ui.js +4 -4
- package/dist/components/vue.cjs +8 -8
- package/dist/components/vue.js +8 -8
- package/dist/components/webgl.cjs +1 -1
- package/dist/components/webgl.js +1 -1
- package/dist/components/widgets.cjs +375 -239
- package/dist/components/widgets.cjs.map +1 -1
- package/dist/components/widgets.d.cts +33 -2
- package/dist/components/widgets.d.ts +33 -2
- package/dist/components/widgets.js +374 -240
- package/dist/components/widgets.js.map +1 -1
- package/dist/components.cjs +8 -8
- package/dist/components.js +10 -10
- package/dist/components.umd.js +1 -1
- package/dist/components.umd.js.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +2 -2
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/widgets.umd.js +1 -1
- package/dist/widgets.umd.js.map +1 -1
- package/docs/ROADMAP.md +2 -2
- package/docs/components.md +29 -0
- package/figma-plugin/README.md +9 -0
- package/figma-plugin/code.js +26 -0
- package/figma-plugin/manifest.json +9 -0
- package/figma-plugin/ui.html +10 -0
- package/package.json +43 -2
- package/dist/chunks/base-CLuqlLfG.js.map +0 -1
- package/dist/chunks/base-DoRUZBy-.cjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { registerEffects } from '../chunks/registry-
|
|
2
|
-
import { p as prefersReducedMotion, o as onFrame } from '../chunks/base-
|
|
1
|
+
import { registerEffects } from '../chunks/registry-gFJRpPES.js';
|
|
2
|
+
import { p as prefersReducedMotion, o as onFrame } from '../chunks/base-BnRyfuyM.js';
|
|
3
3
|
|
|
4
4
|
/** Scroll progress of `el` through the viewport: 0 entering at the bottom → 1 leaving at the top (9.4). */
|
|
5
5
|
function scrollProgress(el) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var registry = require('../chunks/registry-
|
|
3
|
+
var registry = require('../chunks/registry-xQZnSqqV.cjs');
|
|
4
4
|
var generative = require('../chunks/generative-BHIj-NU0.cjs');
|
|
5
5
|
var shared = require('../chunks/shared-jkgRH-Hx.cjs');
|
|
6
|
-
require('../chunks/base-
|
|
6
|
+
require('../chunks/base-DBheNxJu.cjs');
|
|
7
7
|
|
|
8
8
|
const bg = (name, description, defaults, spec) => ({
|
|
9
9
|
name,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { registerEffects } from '../chunks/registry-
|
|
1
|
+
import { registerEffects } from '../chunks/registry-gFJRpPES.js';
|
|
2
2
|
import { c as canvasBackground } from '../chunks/generative-2LhxG5BJ.js';
|
|
3
3
|
import { r as rand } from '../chunks/shared-CkKHWrtJ.js';
|
|
4
|
-
import '../chunks/base-
|
|
4
|
+
import '../chunks/base-BnRyfuyM.js';
|
|
5
5
|
|
|
6
6
|
const bg = (name, description, defaults, spec) => ({
|
|
7
7
|
name,
|
package/dist/components/fx.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var base = require('../chunks/base-
|
|
4
|
-
var registry = require('../chunks/registry-
|
|
5
|
-
var builtins = require('../chunks/builtins-
|
|
6
|
-
require('../chunks/core-
|
|
3
|
+
var base = require('../chunks/base-DBheNxJu.cjs');
|
|
4
|
+
var registry = require('../chunks/registry-xQZnSqqV.cjs');
|
|
5
|
+
var builtins = require('../chunks/builtins-CKKZNR95.cjs');
|
|
6
|
+
require('../chunks/core-MQlXZKUG.cjs');
|
|
7
7
|
require('./tokens.cjs');
|
|
8
|
-
require('../chunks/fx-
|
|
8
|
+
require('../chunks/fx-B_pbhpDp.cjs');
|
|
9
9
|
|
|
10
10
|
function defineFx(tag = 'usa-fx') {
|
|
11
11
|
return base.defineElement(tag, (Base) => class UsaFx extends Base {
|
package/dist/components/fx.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { u as defineElement } from '../chunks/base-
|
|
2
|
-
import { playEffect, bindEffect, EFFECT_TRIGGERS, registerEffects } from '../chunks/registry-
|
|
3
|
-
export { EFFECT_KINDS, getEffect, hasEffect, listEffects, registerEffect } from '../chunks/registry-
|
|
4
|
-
import { B as BUILTIN_EFFECTS } from '../chunks/builtins-
|
|
5
|
-
import '../chunks/core-
|
|
1
|
+
import { u as defineElement } from '../chunks/base-BnRyfuyM.js';
|
|
2
|
+
import { playEffect, bindEffect, EFFECT_TRIGGERS, registerEffects } from '../chunks/registry-gFJRpPES.js';
|
|
3
|
+
export { EFFECT_KINDS, getEffect, hasEffect, listEffects, registerEffect } from '../chunks/registry-gFJRpPES.js';
|
|
4
|
+
import { B as BUILTIN_EFFECTS } from '../chunks/builtins-CqIq1zBv.js';
|
|
5
|
+
import '../chunks/core-DsGoL9EY.js';
|
|
6
6
|
import './tokens.js';
|
|
7
|
-
import '../chunks/fx-
|
|
7
|
+
import '../chunks/fx-CtnrFEg9.js';
|
|
8
8
|
|
|
9
9
|
function defineFx(tag = 'usa-fx') {
|
|
10
10
|
return defineElement(tag, (Base) => class UsaFx extends Base {
|
package/dist/components/fx2.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var manifest = require('../chunks/manifest-
|
|
4
|
-
var components_fxGpu = require('../chunks/gpu-
|
|
3
|
+
var manifest = require('../chunks/manifest-PaF9B8Vt.cjs');
|
|
4
|
+
var components_fxGpu = require('../chunks/gpu-cUixt7kT.cjs');
|
|
5
5
|
var components_fxText = require('./fx-text.cjs');
|
|
6
6
|
var components_fxLight = require('./fx-light.cjs');
|
|
7
7
|
var components_fx3d = require('./fx-3d.cjs');
|
|
@@ -32,11 +32,11 @@ var components_fxGenart = require('./fx-genart.cjs');
|
|
|
32
32
|
var components_fxVideo = require('./fx-video.cjs');
|
|
33
33
|
var components_fxSafe = require('./fx-safe.cjs');
|
|
34
34
|
var components_fxPerf = require('./fx-perf.cjs');
|
|
35
|
-
require('../chunks/registry-
|
|
36
|
-
require('../chunks/base-
|
|
35
|
+
require('../chunks/registry-xQZnSqqV.cjs');
|
|
36
|
+
require('../chunks/base-DBheNxJu.cjs');
|
|
37
37
|
require('../chunks/generative-BHIj-NU0.cjs');
|
|
38
38
|
require('../chunks/shared-jkgRH-Hx.cjs');
|
|
39
|
-
require('../chunks/audio-
|
|
39
|
+
require('../chunks/audio-BpU-A1m1.cjs');
|
|
40
40
|
|
|
41
41
|
/** The 6.x effect packs by name. */
|
|
42
42
|
const EFFECT_PACKS = {
|
package/dist/components/fx2.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { E as EFFECT_PACK_FORMAT, l as loadEffectPack, p as packManifest, v as validateManifest } from '../chunks/manifest-
|
|
2
|
-
import { G as GPU_FX, r as registerGpuPack } from '../chunks/gpu-
|
|
3
|
-
export { a as GLSL_HEAD, W as WGSL_HEAD, f as fieldFallback, g as glslToWgsl, s as shaderBackground, b as supportsWebGL2, c as supportsWebGPU, w as webgpuBackground, d as wgslModule } from '../chunks/gpu-
|
|
1
|
+
export { E as EFFECT_PACK_FORMAT, l as loadEffectPack, p as packManifest, v as validateManifest } from '../chunks/manifest-D58HXVY-.js';
|
|
2
|
+
import { G as GPU_FX, r as registerGpuPack } from '../chunks/gpu-CDcXiNA8.js';
|
|
3
|
+
export { a as GLSL_HEAD, W as WGSL_HEAD, f as fieldFallback, g as glslToWgsl, s as shaderBackground, b as supportsWebGL2, c as supportsWebGPU, w as webgpuBackground, d as wgslModule } from '../chunks/gpu-CDcXiNA8.js';
|
|
4
4
|
import { TEXT3_FX, registerTextPack } from './fx-text.js';
|
|
5
5
|
export { splitChars } from './fx-text.js';
|
|
6
6
|
import { LIGHT_FX, registerLightPack } from './fx-light.js';
|
|
@@ -59,11 +59,11 @@ import { SAFE_FX, registerSafePack } from './fx-safe.js';
|
|
|
59
59
|
export { DEFAULT_MOTION_PREFS, MOTION_PREFS_KEY, applyMotionPreferences, flashCount, isFlashSafe, loadMotionPreferences, vestibularSafe } from './fx-safe.js';
|
|
60
60
|
import { PERF3_FX, registerPerf3Pack } from './fx-perf.js';
|
|
61
61
|
export { fpsMeter, offscreenRender, runInWorker } from './fx-perf.js';
|
|
62
|
-
import '../chunks/registry-
|
|
63
|
-
import '../chunks/base-
|
|
62
|
+
import '../chunks/registry-gFJRpPES.js';
|
|
63
|
+
import '../chunks/base-BnRyfuyM.js';
|
|
64
64
|
import '../chunks/generative-2LhxG5BJ.js';
|
|
65
65
|
import '../chunks/shared-CkKHWrtJ.js';
|
|
66
|
-
import '../chunks/audio-
|
|
66
|
+
import '../chunks/audio-D95jwlOh.js';
|
|
67
67
|
|
|
68
68
|
/** The 6.x effect packs by name. */
|
|
69
69
|
const EFFECT_PACKS = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var base = require('../chunks/base-
|
|
4
|
-
var spring = require('../chunks/spring-
|
|
5
|
-
var core = require('../chunks/core-
|
|
3
|
+
var base = require('../chunks/base-DBheNxJu.cjs');
|
|
4
|
+
var spring = require('../chunks/spring-BlTQD2AV.cjs');
|
|
5
|
+
var core = require('../chunks/core-D74Fz-dL.cjs');
|
|
6
6
|
|
|
7
7
|
var css = "usa-swipeable{display:block;touch-action:pan-y;user-select:none;-webkit-user-select:none}usa-swipeable[axis=\"y\"]{touch-action:pan-x}usa-swipeable>*{transform:translate3d(var(--usa-swipe,0px),0,0);opacity:calc(1 - var(--usa-swipe-p,0) * 0.5)}usa-swipeable[axis=\"y\"]>*{transform:translate3d(0,var(--usa-swipe,0px),0)}usa-swipeable:focus-visible{outline:2px solid currentColor;outline-offset:2px}usa-pinch-zoom{display:block;overflow:hidden;touch-action:none;position:relative}usa-pinch-zoom>*{transform:translate3d(var(--usa-zoom-x,0px),var(--usa-zoom-y,0px),0) scale(var(--usa-zoom,1));transform-origin:50% 50%}usa-pinch-zoom[data-zoomed]{cursor:grab}usa-pinch-zoom:focus-visible{outline:2px solid currentColor;outline-offset:2px}";
|
|
8
8
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { u as defineElement, k as clamp } from '../chunks/base-
|
|
2
|
-
import { c as createSpring } from '../chunks/spring-
|
|
3
|
-
import { g as gesture } from '../chunks/core-
|
|
4
|
-
export { p as pinchScale, s as swipeDirection } from '../chunks/core-
|
|
1
|
+
import { u as defineElement, k as clamp } from '../chunks/base-BnRyfuyM.js';
|
|
2
|
+
import { c as createSpring } from '../chunks/spring-CZDNyqWp.js';
|
|
3
|
+
import { g as gesture } from '../chunks/core-XA2yhn1b.js';
|
|
4
|
+
export { p as pinchScale, s as swipeDirection } from '../chunks/core-XA2yhn1b.js';
|
|
5
5
|
|
|
6
6
|
var css = "usa-swipeable{display:block;touch-action:pan-y;user-select:none;-webkit-user-select:none}usa-swipeable[axis=\"y\"]{touch-action:pan-x}usa-swipeable>*{transform:translate3d(var(--usa-swipe,0px),0,0);opacity:calc(1 - var(--usa-swipe-p,0) * 0.5)}usa-swipeable[axis=\"y\"]>*{transform:translate3d(0,var(--usa-swipe,0px),0)}usa-swipeable:focus-visible{outline:2px solid currentColor;outline-offset:2px}usa-pinch-zoom{display:block;overflow:hidden;touch-action:none;position:relative}usa-pinch-zoom>*{transform:translate3d(var(--usa-zoom-x,0px),var(--usa-zoom-y,0px),0) scale(var(--usa-zoom,1));transform-origin:50% 50%}usa-pinch-zoom[data-zoomed]{cursor:grab}usa-pinch-zoom:focus-visible{outline:2px solid currentColor;outline-offset:2px}";
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var base = require('../chunks/base-
|
|
3
|
+
var base = require('../chunks/base-DBheNxJu.cjs');
|
|
4
4
|
|
|
5
5
|
var css$4 = "usa-ripple{position:relative;display:inline-block;overflow:hidden;isolation:isolate;border-radius:inherit;-webkit-tap-highlight-color:transparent}usa-ripple[block]{display:block}usa-ripple .usa-ripple-wave{position:absolute;border-radius:50%;pointer-events:none;transform:scale(0);z-index:-1;will-change:transform,opacity}";
|
|
6
6
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as defineElement, D as EASE_OUT, r as raf, l as caf, k as clamp, E as EASE_SPRING } from '../chunks/base-
|
|
1
|
+
import { u as defineElement, D as EASE_OUT, r as raf, l as caf, k as clamp, E as EASE_SPRING } from '../chunks/base-BnRyfuyM.js';
|
|
2
2
|
|
|
3
3
|
var css$4 = "usa-ripple{position:relative;display:inline-block;overflow:hidden;isolation:isolate;border-radius:inherit;-webkit-tap-highlight-color:transparent}usa-ripple[block]{display:block}usa-ripple .usa-ripple-wave{position:absolute;border-radius:50%;pointer-events:none;transform:scale(0);z-index:-1;will-change:transform,opacity}";
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as prefersReducedMotion, D as EASE_OUT, m as motionScale, u as defineElement } from '../chunks/base-
|
|
1
|
+
import { p as prefersReducedMotion, D as EASE_OUT, m as motionScale, u as defineElement } from '../chunks/base-BnRyfuyM.js';
|
|
2
2
|
|
|
3
3
|
/** FLIP keyframes from a previous box to the current one (pure). */
|
|
4
4
|
function flipFrames(from, to, scale = true) {
|
package/dist/components/lite.cjs
CHANGED
|
@@ -88,7 +88,7 @@ function prefersReducedMotion() {
|
|
|
88
88
|
return true;
|
|
89
89
|
if (config.reducedMotion === 'reduce')
|
|
90
90
|
return true;
|
|
91
|
-
return typeof matchMedia === 'function' && !!matchMedia('(prefers-reduced-motion: reduce)')
|
|
91
|
+
return typeof matchMedia === 'function' && !!matchMedia('(prefers-reduced-motion: reduce)')?.matches;
|
|
92
92
|
}
|
|
93
93
|
const injected = new Set();
|
|
94
94
|
/** Add a component's stylesheet to the document once. */
|