use-scroll-animate 4.3.0 → 4.5.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.
Files changed (147) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/chunks/{base-BPG5zvex.js → base-CZiIAMBc.js} +140 -13
  3. package/dist/chunks/base-CZiIAMBc.js.map +1 -0
  4. package/dist/chunks/{base-CXx7jZ-o.cjs → base-CxYU2NK_.cjs} +148 -12
  5. package/dist/chunks/base-CxYU2NK_.cjs.map +1 -0
  6. package/dist/chunks/{core-LkGRmgES.js → core-CJHJeMI_.js} +2 -2
  7. package/dist/chunks/{core-LkGRmgES.js.map → core-CJHJeMI_.js.map} +1 -1
  8. package/dist/chunks/{core-eXX8rB_b.js → core-COi3DrLx.js} +2 -2
  9. package/dist/chunks/{core-eXX8rB_b.js.map → core-COi3DrLx.js.map} +1 -1
  10. package/dist/chunks/{core-IaorbTdu.cjs → core-CctNfzuP.cjs} +2 -2
  11. package/dist/chunks/{core-IaorbTdu.cjs.map → core-CctNfzuP.cjs.map} +1 -1
  12. package/dist/chunks/{core-BRIIoKeS.cjs → core-HLqH3qkA.cjs} +2 -2
  13. package/dist/chunks/{core-BRIIoKeS.cjs.map → core-HLqH3qkA.cjs.map} +1 -1
  14. package/dist/chunks/{spring-BziPsW3r.js → spring-BS5tg6aK.js} +2 -2
  15. package/dist/chunks/{spring-BziPsW3r.js.map → spring-BS5tg6aK.js.map} +1 -1
  16. package/dist/chunks/{spring-2OTnYCzm.cjs → spring-Dkpygsuj.cjs} +2 -2
  17. package/dist/chunks/{spring-2OTnYCzm.cjs.map → spring-Dkpygsuj.cjs.map} +1 -1
  18. package/dist/chunks/{variants-BNIrn4ch.cjs → variants-CfJzrzMh.cjs} +2 -2
  19. package/dist/chunks/{variants-BNIrn4ch.cjs.map → variants-CfJzrzMh.cjs.map} +1 -1
  20. package/dist/chunks/{variants-BVYMcxRv.js → variants-D9n-3x27.js} +2 -2
  21. package/dist/chunks/{variants-BVYMcxRv.js.map → variants-D9n-3x27.js.map} +1 -1
  22. package/dist/components/a11y.cjs +239 -0
  23. package/dist/components/a11y.cjs.map +1 -0
  24. package/dist/components/a11y.d.cts +120 -0
  25. package/dist/components/a11y.d.ts +120 -0
  26. package/dist/components/a11y.js +224 -0
  27. package/dist/components/a11y.js.map +1 -0
  28. package/dist/components/angular.cjs +7 -5
  29. package/dist/components/angular.cjs.map +1 -1
  30. package/dist/components/angular.js +7 -5
  31. package/dist/components/angular.js.map +1 -1
  32. package/dist/components/background.cjs +2 -2
  33. package/dist/components/background.d.cts +10 -0
  34. package/dist/components/background.d.ts +10 -0
  35. package/dist/components/background.js +3 -3
  36. package/dist/components/cards.cjs +2 -2
  37. package/dist/components/cards.d.cts +10 -0
  38. package/dist/components/cards.d.ts +10 -0
  39. package/dist/components/cards.js +3 -3
  40. package/dist/components/click.cjs +2 -2
  41. package/dist/components/click.d.cts +10 -0
  42. package/dist/components/click.d.ts +10 -0
  43. package/dist/components/click.js +3 -3
  44. package/dist/components/depth.cjs +3 -3
  45. package/dist/components/depth.d.cts +10 -0
  46. package/dist/components/depth.d.ts +10 -0
  47. package/dist/components/depth.js +4 -4
  48. package/dist/components/feedback.cjs +1 -1
  49. package/dist/components/feedback.d.cts +10 -0
  50. package/dist/components/feedback.d.ts +10 -0
  51. package/dist/components/feedback.js +2 -2
  52. package/dist/components/gesture.cjs +3 -3
  53. package/dist/components/gesture.d.cts +10 -0
  54. package/dist/components/gesture.d.ts +10 -0
  55. package/dist/components/gesture.js +5 -5
  56. package/dist/components/interaction.cjs +1 -1
  57. package/dist/components/interaction.d.cts +10 -0
  58. package/dist/components/interaction.d.ts +10 -0
  59. package/dist/components/interaction.js +2 -2
  60. package/dist/components/layout.cjs +1 -1
  61. package/dist/components/layout.d.cts +10 -0
  62. package/dist/components/layout.d.ts +10 -0
  63. package/dist/components/layout.js +2 -2
  64. package/dist/components/lite.cjs +10398 -0
  65. package/dist/components/lite.cjs.map +1 -0
  66. package/dist/components/lite.d.cts +4 -0
  67. package/dist/components/lite.d.ts +4 -0
  68. package/dist/components/lite.js +10161 -0
  69. package/dist/components/lite.js.map +1 -0
  70. package/dist/components/packs.cjs +1 -1
  71. package/dist/components/packs.d.cts +10 -0
  72. package/dist/components/packs.d.ts +10 -0
  73. package/dist/components/packs.js +2 -2
  74. package/dist/components/page.cjs +6 -3
  75. package/dist/components/page.cjs.map +1 -1
  76. package/dist/components/page.d.cts +10 -0
  77. package/dist/components/page.d.ts +10 -0
  78. package/dist/components/page.js +7 -4
  79. package/dist/components/page.js.map +1 -1
  80. package/dist/components/perf.cjs +121 -0
  81. package/dist/components/perf.cjs.map +1 -0
  82. package/dist/components/perf.d.cts +97 -0
  83. package/dist/components/perf.d.ts +97 -0
  84. package/dist/components/perf.js +111 -0
  85. package/dist/components/perf.js.map +1 -0
  86. package/dist/components/physics.cjs +2 -2
  87. package/dist/components/physics.d.cts +10 -0
  88. package/dist/components/physics.d.ts +10 -0
  89. package/dist/components/physics.js +4 -4
  90. package/dist/components/reveal.cjs +1 -1
  91. package/dist/components/reveal.d.cts +10 -0
  92. package/dist/components/reveal.d.ts +10 -0
  93. package/dist/components/reveal.js +2 -2
  94. package/dist/components/solid.cjs +7 -5
  95. package/dist/components/solid.cjs.map +1 -1
  96. package/dist/components/solid.js +7 -5
  97. package/dist/components/solid.js.map +1 -1
  98. package/dist/components/svelte.cjs +7 -5
  99. package/dist/components/svelte.cjs.map +1 -1
  100. package/dist/components/svelte.js +7 -5
  101. package/dist/components/svelte.js.map +1 -1
  102. package/dist/components/svg.cjs +1 -1
  103. package/dist/components/svg.d.cts +10 -0
  104. package/dist/components/svg.d.ts +10 -0
  105. package/dist/components/svg.js +2 -2
  106. package/dist/components/text.cjs +2 -2
  107. package/dist/components/text.d.cts +10 -0
  108. package/dist/components/text.d.ts +10 -0
  109. package/dist/components/text.js +3 -3
  110. package/dist/components/timeline.cjs +2 -2
  111. package/dist/components/timeline.d.cts +10 -0
  112. package/dist/components/timeline.d.ts +10 -0
  113. package/dist/components/timeline.js +4 -4
  114. package/dist/components/transitions.cjs +1 -1
  115. package/dist/components/transitions.d.cts +10 -0
  116. package/dist/components/transitions.d.ts +10 -0
  117. package/dist/components/transitions.js +2 -2
  118. package/dist/components/ui.cjs +3 -3
  119. package/dist/components/ui.d.cts +10 -0
  120. package/dist/components/ui.d.ts +10 -0
  121. package/dist/components/ui.js +5 -5
  122. package/dist/components/vue.cjs +7 -5
  123. package/dist/components/vue.cjs.map +1 -1
  124. package/dist/components/vue.js +7 -5
  125. package/dist/components/vue.js.map +1 -1
  126. package/dist/components/webgl.cjs +1 -1
  127. package/dist/components/webgl.d.cts +10 -0
  128. package/dist/components/webgl.d.ts +10 -0
  129. package/dist/components/webgl.js +2 -2
  130. package/dist/components.cjs +32 -5
  131. package/dist/components.cjs.map +1 -1
  132. package/dist/components.d.cts +176 -2
  133. package/dist/components.d.ts +176 -2
  134. package/dist/components.js +9 -7
  135. package/dist/components.js.map +1 -1
  136. package/dist/components.umd.js +2 -2
  137. package/dist/components.umd.js.map +1 -1
  138. package/dist/index.cjs +2 -2
  139. package/dist/index.js +2 -2
  140. package/dist/index.umd.js +2 -2
  141. package/dist/index.umd.js.map +1 -1
  142. package/docs/ROADMAP.md +2 -2
  143. package/docs/accessibility.md +28 -0
  144. package/docs/performance.md +24 -0
  145. package/package.json +31 -1
  146. package/dist/chunks/base-BPG5zvex.js.map +0 -1
  147. package/dist/chunks/base-CXx7jZ-o.cjs.map +0 -1
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var base = require('../chunks/base-CXx7jZ-o.cjs');
4
- var core = require('../chunks/core-BRIIoKeS.cjs');
3
+ var base = require('../chunks/base-CxYU2NK_.cjs');
4
+ var core = require('../chunks/core-HLqH3qkA.cjs');
5
5
  require('./tokens.cjs');
6
6
 
7
7
  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}}";
@@ -27,7 +27,17 @@ interface ComponentsConfig {
27
27
  * 1.25) on `<html>` for your own CSS. See `setMotionIntensity()`.
28
28
  */
29
29
  motionIntensity?: MotionIntensity;
30
+ /**
31
+ * Motion-sensitivity level (v4.4), finer than reduced motion:
32
+ * `'full'` (default) · `'gentle'` (no spins, zooms, skews or parallax —
33
+ * translations and fades only, safe for vestibular disorders) ·
34
+ * `'minimal'` (fades only; components use their reduced-motion variants) ·
35
+ * `'static'` (no animation: every component shows its static alternative).
36
+ * See `setMotionSensitivity()` in `use-scroll-animate/components/a11y`.
37
+ */
38
+ motionSensitivity?: MotionSensitivity;
30
39
  }
40
+ type MotionSensitivity = 'full' | 'gentle' | 'minimal' | 'static';
31
41
  type MotionIntensity = 'off' | 'low' | 'normal' | 'high';
32
42
  /** Change global component settings (call before `define*()` for `injectStyles`). */
33
43
  declare function configureComponents(options: ComponentsConfig): void;
@@ -27,7 +27,17 @@ interface ComponentsConfig {
27
27
  * 1.25) on `<html>` for your own CSS. See `setMotionIntensity()`.
28
28
  */
29
29
  motionIntensity?: MotionIntensity;
30
+ /**
31
+ * Motion-sensitivity level (v4.4), finer than reduced motion:
32
+ * `'full'` (default) · `'gentle'` (no spins, zooms, skews or parallax —
33
+ * translations and fades only, safe for vestibular disorders) ·
34
+ * `'minimal'` (fades only; components use their reduced-motion variants) ·
35
+ * `'static'` (no animation: every component shows its static alternative).
36
+ * See `setMotionSensitivity()` in `use-scroll-animate/components/a11y`.
37
+ */
38
+ motionSensitivity?: MotionSensitivity;
30
39
  }
40
+ type MotionSensitivity = 'full' | 'gentle' | 'minimal' | 'static';
31
41
  type MotionIntensity = 'off' | 'low' | 'normal' | 'high';
32
42
  /** Change global component settings (call before `define*()` for `injectStyles`). */
33
43
  declare function configureComponents(options: ComponentsConfig): void;
@@ -1,6 +1,6 @@
1
- import { h as defineElement, j as srText, d as caf, n as now, r as raf, i as EASE_OUT, E as EASE_SPRING, b as clamp } from '../chunks/base-BPG5zvex.js';
2
- export { a as configureComponents, p as prefersReducedMotion } from '../chunks/base-BPG5zvex.js';
3
- import { t as timeline } from '../chunks/core-LkGRmgES.js';
1
+ import { u as defineElement, y as srText, k as caf, n as now, r as raf, v as EASE_OUT, E as EASE_SPRING, j as clamp } from '../chunks/base-CZiIAMBc.js';
2
+ export { f as configureComponents, p as prefersReducedMotion } from '../chunks/base-CZiIAMBc.js';
3
+ import { t as timeline } from '../chunks/core-CJHJeMI_.js';
4
4
  import './tokens.js';
5
5
 
6
6
  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,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var base = require('../chunks/base-CXx7jZ-o.cjs');
4
- var core = require('../chunks/core-BRIIoKeS.cjs');
3
+ var base = require('../chunks/base-CxYU2NK_.cjs');
4
+ var core = require('../chunks/core-HLqH3qkA.cjs');
5
5
  require('./tokens.cjs');
6
6
 
7
7
  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}}";
@@ -27,7 +27,17 @@ interface ComponentsConfig {
27
27
  * 1.25) on `<html>` for your own CSS. See `setMotionIntensity()`.
28
28
  */
29
29
  motionIntensity?: MotionIntensity;
30
+ /**
31
+ * Motion-sensitivity level (v4.4), finer than reduced motion:
32
+ * `'full'` (default) · `'gentle'` (no spins, zooms, skews or parallax —
33
+ * translations and fades only, safe for vestibular disorders) ·
34
+ * `'minimal'` (fades only; components use their reduced-motion variants) ·
35
+ * `'static'` (no animation: every component shows its static alternative).
36
+ * See `setMotionSensitivity()` in `use-scroll-animate/components/a11y`.
37
+ */
38
+ motionSensitivity?: MotionSensitivity;
30
39
  }
40
+ type MotionSensitivity = 'full' | 'gentle' | 'minimal' | 'static';
31
41
  type MotionIntensity = 'off' | 'low' | 'normal' | 'high';
32
42
  /** Change global component settings (call before `define*()` for `injectStyles`). */
33
43
  declare function configureComponents(options: ComponentsConfig): void;
@@ -27,7 +27,17 @@ interface ComponentsConfig {
27
27
  * 1.25) on `<html>` for your own CSS. See `setMotionIntensity()`.
28
28
  */
29
29
  motionIntensity?: MotionIntensity;
30
+ /**
31
+ * Motion-sensitivity level (v4.4), finer than reduced motion:
32
+ * `'full'` (default) · `'gentle'` (no spins, zooms, skews or parallax —
33
+ * translations and fades only, safe for vestibular disorders) ·
34
+ * `'minimal'` (fades only; components use their reduced-motion variants) ·
35
+ * `'static'` (no animation: every component shows its static alternative).
36
+ * See `setMotionSensitivity()` in `use-scroll-animate/components/a11y`.
37
+ */
38
+ motionSensitivity?: MotionSensitivity;
30
39
  }
40
+ type MotionSensitivity = 'full' | 'gentle' | 'minimal' | 'static';
31
41
  type MotionIntensity = 'off' | 'low' | 'normal' | 'high';
32
42
  /** Change global component settings (call before `define*()` for `injectStyles`). */
33
43
  declare function configureComponents(options: ComponentsConfig): void;
@@ -1,7 +1,7 @@
1
- import { h as defineElement } from '../chunks/base-BPG5zvex.js';
2
- export { a as configureComponents, p as prefersReducedMotion } from '../chunks/base-BPG5zvex.js';
3
- import { t as timeline, T as TIMELINE_PRESETS } from '../chunks/core-LkGRmgES.js';
4
- export { r as resolvePosition, s as supportsNativeScrub } from '../chunks/core-LkGRmgES.js';
1
+ import { u as defineElement } from '../chunks/base-CZiIAMBc.js';
2
+ export { f as configureComponents, p as prefersReducedMotion } from '../chunks/base-CZiIAMBc.js';
3
+ import { t as timeline, T as TIMELINE_PRESETS } from '../chunks/core-CJHJeMI_.js';
4
+ export { r as resolvePosition, s as supportsNativeScrub } from '../chunks/core-CJHJeMI_.js';
5
5
  import './tokens.js';
6
6
 
7
7
  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,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var base = require('../chunks/base-CXx7jZ-o.cjs');
3
+ var base = require('../chunks/base-CxYU2NK_.cjs');
4
4
 
5
5
  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)}";
6
6
 
@@ -27,7 +27,17 @@ interface ComponentsConfig {
27
27
  * 1.25) on `<html>` for your own CSS. See `setMotionIntensity()`.
28
28
  */
29
29
  motionIntensity?: MotionIntensity;
30
+ /**
31
+ * Motion-sensitivity level (v4.4), finer than reduced motion:
32
+ * `'full'` (default) · `'gentle'` (no spins, zooms, skews or parallax —
33
+ * translations and fades only, safe for vestibular disorders) ·
34
+ * `'minimal'` (fades only; components use their reduced-motion variants) ·
35
+ * `'static'` (no animation: every component shows its static alternative).
36
+ * See `setMotionSensitivity()` in `use-scroll-animate/components/a11y`.
37
+ */
38
+ motionSensitivity?: MotionSensitivity;
30
39
  }
40
+ type MotionSensitivity = 'full' | 'gentle' | 'minimal' | 'static';
31
41
  type MotionIntensity = 'off' | 'low' | 'normal' | 'high';
32
42
  /** Change global component settings (call before `define*()` for `injectStyles`). */
33
43
  declare function configureComponents(options: ComponentsConfig): void;
@@ -27,7 +27,17 @@ interface ComponentsConfig {
27
27
  * 1.25) on `<html>` for your own CSS. See `setMotionIntensity()`.
28
28
  */
29
29
  motionIntensity?: MotionIntensity;
30
+ /**
31
+ * Motion-sensitivity level (v4.4), finer than reduced motion:
32
+ * `'full'` (default) · `'gentle'` (no spins, zooms, skews or parallax —
33
+ * translations and fades only, safe for vestibular disorders) ·
34
+ * `'minimal'` (fades only; components use their reduced-motion variants) ·
35
+ * `'static'` (no animation: every component shows its static alternative).
36
+ * See `setMotionSensitivity()` in `use-scroll-animate/components/a11y`.
37
+ */
38
+ motionSensitivity?: MotionSensitivity;
30
39
  }
40
+ type MotionSensitivity = 'full' | 'gentle' | 'minimal' | 'static';
31
41
  type MotionIntensity = 'off' | 'low' | 'normal' | 'high';
32
42
  /** Change global component settings (call before `define*()` for `injectStyles`). */
33
43
  declare function configureComponents(options: ComponentsConfig): void;
@@ -1,5 +1,5 @@
1
- import { h as defineElement, k as kindOf, s as shadowStyles, i as EASE_OUT, F as FLUENT_DECELERATE, p as prefersReducedMotion } from '../chunks/base-BPG5zvex.js';
2
- export { a as configureComponents } from '../chunks/base-BPG5zvex.js';
1
+ import { u as defineElement, w as kindOf, x as shadowStyles, v as EASE_OUT, F as FLUENT_DECELERATE, p as prefersReducedMotion } from '../chunks/base-CZiIAMBc.js';
2
+ export { f as configureComponents } from '../chunks/base-CZiIAMBc.js';
3
3
 
4
4
  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)}";
5
5
 
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var base = require('../chunks/base-CXx7jZ-o.cjs');
4
- var spring = require('../chunks/spring-2OTnYCzm.cjs');
5
- var variants = require('../chunks/variants-BNIrn4ch.cjs');
3
+ var base = require('../chunks/base-CxYU2NK_.cjs');
4
+ var spring = require('../chunks/spring-Dkpygsuj.cjs');
5
+ var variants = require('../chunks/variants-CfJzrzMh.cjs');
6
6
 
7
7
  /** Position a fixed `floating` element next to `anchor`, flipping when it would leave the viewport. */
8
8
  function place(floating, anchor, placement = 'top', gap = 8) {
@@ -27,7 +27,17 @@ interface ComponentsConfig {
27
27
  * 1.25) on `<html>` for your own CSS. See `setMotionIntensity()`.
28
28
  */
29
29
  motionIntensity?: MotionIntensity;
30
+ /**
31
+ * Motion-sensitivity level (v4.4), finer than reduced motion:
32
+ * `'full'` (default) · `'gentle'` (no spins, zooms, skews or parallax —
33
+ * translations and fades only, safe for vestibular disorders) ·
34
+ * `'minimal'` (fades only; components use their reduced-motion variants) ·
35
+ * `'static'` (no animation: every component shows its static alternative).
36
+ * See `setMotionSensitivity()` in `use-scroll-animate/components/a11y`.
37
+ */
38
+ motionSensitivity?: MotionSensitivity;
30
39
  }
40
+ type MotionSensitivity = 'full' | 'gentle' | 'minimal' | 'static';
31
41
  type MotionIntensity = 'off' | 'low' | 'normal' | 'high';
32
42
  /** Change global component settings (call before `define*()` for `injectStyles`). */
33
43
  declare function configureComponents(options: ComponentsConfig): void;
@@ -27,7 +27,17 @@ interface ComponentsConfig {
27
27
  * 1.25) on `<html>` for your own CSS. See `setMotionIntensity()`.
28
28
  */
29
29
  motionIntensity?: MotionIntensity;
30
+ /**
31
+ * Motion-sensitivity level (v4.4), finer than reduced motion:
32
+ * `'full'` (default) · `'gentle'` (no spins, zooms, skews or parallax —
33
+ * translations and fades only, safe for vestibular disorders) ·
34
+ * `'minimal'` (fades only; components use their reduced-motion variants) ·
35
+ * `'static'` (no animation: every component shows its static alternative).
36
+ * See `setMotionSensitivity()` in `use-scroll-animate/components/a11y`.
37
+ */
38
+ motionSensitivity?: MotionSensitivity;
30
39
  }
40
+ type MotionSensitivity = 'full' | 'gentle' | 'minimal' | 'static';
31
41
  type MotionIntensity = 'off' | 'low' | 'normal' | 'high';
32
42
  /** Change global component settings (call before `define*()` for `injectStyles`). */
33
43
  declare function configureComponents(options: ComponentsConfig): void;
@@ -1,8 +1,8 @@
1
- import { h as defineElement, b as clamp, d as caf, r as raf } from '../chunks/base-BPG5zvex.js';
2
- export { a as configureComponents, p as prefersReducedMotion } from '../chunks/base-BPG5zvex.js';
3
- import { d as springEasing, c as createSpring, p as projectInertia, s as snapTo, a as rubberBand } from '../chunks/spring-BziPsW3r.js';
4
- import { a as adoptVariants } from '../chunks/variants-BVYMcxRv.js';
5
- export { V as VARIANTS, s as setVariant } from '../chunks/variants-BVYMcxRv.js';
1
+ import { u as defineElement, j as clamp, k as caf, r as raf } from '../chunks/base-CZiIAMBc.js';
2
+ export { f as configureComponents, p as prefersReducedMotion } from '../chunks/base-CZiIAMBc.js';
3
+ import { d as springEasing, c as createSpring, p as projectInertia, s as snapTo, a as rubberBand } from '../chunks/spring-BS5tg6aK.js';
4
+ import { a as adoptVariants } from '../chunks/variants-D9n-3x27.js';
5
+ export { V as VARIANTS, s as setVariant } from '../chunks/variants-D9n-3x27.js';
6
6
 
7
7
  /** Position a fixed `floating` element next to `anchor`, flipping when it would leave the viewport. */
8
8
  function place(floating, anchor, placement = 'top', gap = 8) {
@@ -2,30 +2,32 @@
2
2
 
3
3
  var components = require('../components.cjs');
4
4
  require('./reveal.cjs');
5
- require('../chunks/base-CXx7jZ-o.cjs');
5
+ require('../chunks/base-CxYU2NK_.cjs');
6
6
  require('./text.cjs');
7
- require('../chunks/core-BRIIoKeS.cjs');
7
+ require('../chunks/core-HLqH3qkA.cjs');
8
8
  require('./tokens.cjs');
9
9
  require('./interaction.cjs');
10
10
  require('./feedback.cjs');
11
11
  require('./background.cjs');
12
- require('../chunks/variants-BNIrn4ch.cjs');
12
+ require('../chunks/variants-CfJzrzMh.cjs');
13
13
  require('./transitions.cjs');
14
14
  require('./physics.cjs');
15
- require('../chunks/spring-2OTnYCzm.cjs');
15
+ require('../chunks/spring-Dkpygsuj.cjs');
16
16
  require('./cards.cjs');
17
17
  require('./click.cjs');
18
18
  require('./ui.cjs');
19
19
  require('./page.cjs');
20
20
  require('./timeline.cjs');
21
21
  require('./gesture.cjs');
22
- require('../chunks/core-IaorbTdu.cjs');
22
+ require('../chunks/core-CctNfzuP.cjs');
23
23
  require('./svg.cjs');
24
24
  require('./webgl.cjs');
25
25
  require('./depth.cjs');
26
26
  require('./layout.cjs');
27
27
  require('./packs.cjs');
28
+ require('./a11y.cjs');
28
29
  require('../chunks/index-tags-BQh_uGqH.cjs');
30
+ require('./perf.cjs');
29
31
 
30
32
  /**
31
33
  * use-scroll-animate/components/vue — Vue integration (v2.9).
@@ -1 +1 @@
1
- {"version":3,"file":"vue.cjs","sources":["../../src/components/frameworks/vue.ts"],"sourcesContent":["/**\n * use-scroll-animate/components/vue — Vue integration (v2.9).\n *\n * ```js\n * // vite.config.js\n * import vue from '@vitejs/plugin-vue';\n * import { isUsaElement } from 'use-scroll-animate/components/vue';\n * export default { plugins: [vue({ template: { compilerOptions: { isCustomElement: isUsaElement } } })] };\n *\n * // main.js\n * import { UsaPlugin } from 'use-scroll-animate/components/vue';\n * app.use(UsaPlugin, { categories: ['click', 'cards'] });\n * ```\n * In templates, listen with `@usa:change=\"…\"` and bind properties with\n * `.prop`: `<usa-toggle :checked.prop=\"on\" @usa:change=\"on = $event.detail.checked\">`.\n */\nimport { defineComponents, type ComponentCategory } from '../index';\n\n/** `compilerOptions.isCustomElement` predicate for every `<usa-*>` tag. */\nexport const isUsaElement = (tag: string): boolean => tag.startsWith('usa-');\n\nexport interface UsaPluginOptions {\n /** Only register these categories (default: all). */\n categories?: ComponentCategory[];\n}\n\n/** Vue plugin: registers the `<usa-*>` elements (client only) and sets `isCustomElement` at runtime. */\nexport const UsaPlugin = {\n install(app: { config: { compilerOptions?: { isCustomElement?: (t: string) => boolean } } }, options: UsaPluginOptions = {}): void {\n const co = (app.config.compilerOptions ||= {});\n const prev = co.isCustomElement;\n co.isCustomElement = (t: string) => isUsaElement(t) || !!prev?.(t);\n defineComponents(options.categories);\n },\n};\n"],"names":["defineComponents"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;AAeG;AAGH;AACO,MAAM,YAAY,GAAG,CAAC,GAAW,KAAc,GAAG,CAAC,UAAU,CAAC,MAAM;AAO3E;AACO,MAAM,SAAS,GAAG;AACvB,IAAA,OAAO,CAAC,GAAmF,EAAE,OAAA,GAA4B,EAAE,EAAA;;AACzH,QAAA,MAAM,EAAE,IAAG,CAAA,EAAA,GAAC,GAAG,CAAC,MAAM,EAAC,eAAe,KAAA,EAAA,CAAf,eAAe,GAAK,EAAE,EAAC;AAC9C,QAAA,MAAM,IAAI,GAAG,EAAE,CAAC,eAAe;QAC/B,EAAE,CAAC,eAAe,GAAG,CAAC,CAAS,KAAK,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC;AAClE,QAAAA,2BAAgB,CAAC,OAAO,CAAC,UAAU,CAAC;IACtC,CAAC;;;;;;"}
1
+ {"version":3,"file":"vue.cjs","sources":["../../src/components/frameworks/vue.ts"],"sourcesContent":["/**\n * use-scroll-animate/components/vue — Vue integration (v2.9).\n *\n * ```js\n * // vite.config.js\n * import vue from '@vitejs/plugin-vue';\n * import { isUsaElement } from 'use-scroll-animate/components/vue';\n * export default { plugins: [vue({ template: { compilerOptions: { isCustomElement: isUsaElement } } })] };\n *\n * // main.js\n * import { UsaPlugin } from 'use-scroll-animate/components/vue';\n * app.use(UsaPlugin, { categories: ['click', 'cards'] });\n * ```\n * In templates, listen with `@usa:change=\"…\"` and bind properties with\n * `.prop`: `<usa-toggle :checked.prop=\"on\" @usa:change=\"on = $event.detail.checked\">`.\n */\nimport { defineComponents, type ComponentCategory } from '../index';\n\n/** `compilerOptions.isCustomElement` predicate for every `<usa-*>` tag. */\nexport const isUsaElement = (tag: string): boolean => tag.startsWith('usa-');\n\nexport interface UsaPluginOptions {\n /** Only register these categories (default: all). */\n categories?: ComponentCategory[];\n}\n\n/** Vue plugin: registers the `<usa-*>` elements (client only) and sets `isCustomElement` at runtime. */\nexport const UsaPlugin = {\n install(app: { config: { compilerOptions?: { isCustomElement?: (t: string) => boolean } } }, options: UsaPluginOptions = {}): void {\n const co = (app.config.compilerOptions ||= {});\n const prev = co.isCustomElement;\n co.isCustomElement = (t: string) => isUsaElement(t) || !!prev?.(t);\n defineComponents(options.categories);\n },\n};\n"],"names":["defineComponents"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;AAeG;AAGH;AACO,MAAM,YAAY,GAAG,CAAC,GAAW,KAAc,GAAG,CAAC,UAAU,CAAC,MAAM;AAO3E;AACO,MAAM,SAAS,GAAG;AACvB,IAAA,OAAO,CAAC,GAAmF,EAAE,OAAA,GAA4B,EAAE,EAAA;;AACzH,QAAA,MAAM,EAAE,IAAG,CAAA,EAAA,GAAC,GAAG,CAAC,MAAM,EAAC,eAAe,KAAA,EAAA,CAAf,eAAe,GAAK,EAAE,EAAC;AAC9C,QAAA,MAAM,IAAI,GAAG,EAAE,CAAC,eAAe;QAC/B,EAAE,CAAC,eAAe,GAAG,CAAC,CAAS,KAAK,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC;AAClE,QAAAA,2BAAgB,CAAC,OAAO,CAAC,UAAU,CAAC;IACtC,CAAC;;;;;;"}
@@ -1,29 +1,31 @@
1
1
  import { defineComponents } from '../components.js';
2
2
  import './reveal.js';
3
- import '../chunks/base-BPG5zvex.js';
3
+ import '../chunks/base-CZiIAMBc.js';
4
4
  import './text.js';
5
- import '../chunks/core-LkGRmgES.js';
5
+ import '../chunks/core-CJHJeMI_.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-BVYMcxRv.js';
10
+ import '../chunks/variants-D9n-3x27.js';
11
11
  import './transitions.js';
12
12
  import './physics.js';
13
- import '../chunks/spring-BziPsW3r.js';
13
+ import '../chunks/spring-BS5tg6aK.js';
14
14
  import './cards.js';
15
15
  import './click.js';
16
16
  import './ui.js';
17
17
  import './page.js';
18
18
  import './timeline.js';
19
19
  import './gesture.js';
20
- import '../chunks/core-eXX8rB_b.js';
20
+ import '../chunks/core-COi3DrLx.js';
21
21
  import './svg.js';
22
22
  import './webgl.js';
23
23
  import './depth.js';
24
24
  import './layout.js';
25
25
  import './packs.js';
26
+ import './a11y.js';
26
27
  import '../chunks/index-tags-43Xtd01A.js';
28
+ import './perf.js';
27
29
 
28
30
  /**
29
31
  * use-scroll-animate/components/vue — Vue integration (v2.9).
@@ -1 +1 @@
1
- {"version":3,"file":"vue.js","sources":["../../src/components/frameworks/vue.ts"],"sourcesContent":["/**\n * use-scroll-animate/components/vue — Vue integration (v2.9).\n *\n * ```js\n * // vite.config.js\n * import vue from '@vitejs/plugin-vue';\n * import { isUsaElement } from 'use-scroll-animate/components/vue';\n * export default { plugins: [vue({ template: { compilerOptions: { isCustomElement: isUsaElement } } })] };\n *\n * // main.js\n * import { UsaPlugin } from 'use-scroll-animate/components/vue';\n * app.use(UsaPlugin, { categories: ['click', 'cards'] });\n * ```\n * In templates, listen with `@usa:change=\"…\"` and bind properties with\n * `.prop`: `<usa-toggle :checked.prop=\"on\" @usa:change=\"on = $event.detail.checked\">`.\n */\nimport { defineComponents, type ComponentCategory } from '../index';\n\n/** `compilerOptions.isCustomElement` predicate for every `<usa-*>` tag. */\nexport const isUsaElement = (tag: string): boolean => tag.startsWith('usa-');\n\nexport interface UsaPluginOptions {\n /** Only register these categories (default: all). */\n categories?: ComponentCategory[];\n}\n\n/** Vue plugin: registers the `<usa-*>` elements (client only) and sets `isCustomElement` at runtime. */\nexport const UsaPlugin = {\n install(app: { config: { compilerOptions?: { isCustomElement?: (t: string) => boolean } } }, options: UsaPluginOptions = {}): void {\n const co = (app.config.compilerOptions ||= {});\n const prev = co.isCustomElement;\n co.isCustomElement = (t: string) => isUsaElement(t) || !!prev?.(t);\n defineComponents(options.categories);\n },\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;AAeG;AAGH;AACO,MAAM,YAAY,GAAG,CAAC,GAAW,KAAc,GAAG,CAAC,UAAU,CAAC,MAAM;AAO3E;AACO,MAAM,SAAS,GAAG;AACvB,IAAA,OAAO,CAAC,GAAmF,EAAE,OAAA,GAA4B,EAAE,EAAA;;AACzH,QAAA,MAAM,EAAE,IAAG,CAAA,EAAA,GAAC,GAAG,CAAC,MAAM,EAAC,eAAe,KAAA,EAAA,CAAf,eAAe,GAAK,EAAE,EAAC;AAC9C,QAAA,MAAM,IAAI,GAAG,EAAE,CAAC,eAAe;QAC/B,EAAE,CAAC,eAAe,GAAG,CAAC,CAAS,KAAK,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC;AAClE,QAAA,gBAAgB,CAAC,OAAO,CAAC,UAAU,CAAC;IACtC,CAAC;;;;;"}
1
+ {"version":3,"file":"vue.js","sources":["../../src/components/frameworks/vue.ts"],"sourcesContent":["/**\n * use-scroll-animate/components/vue — Vue integration (v2.9).\n *\n * ```js\n * // vite.config.js\n * import vue from '@vitejs/plugin-vue';\n * import { isUsaElement } from 'use-scroll-animate/components/vue';\n * export default { plugins: [vue({ template: { compilerOptions: { isCustomElement: isUsaElement } } })] };\n *\n * // main.js\n * import { UsaPlugin } from 'use-scroll-animate/components/vue';\n * app.use(UsaPlugin, { categories: ['click', 'cards'] });\n * ```\n * In templates, listen with `@usa:change=\"…\"` and bind properties with\n * `.prop`: `<usa-toggle :checked.prop=\"on\" @usa:change=\"on = $event.detail.checked\">`.\n */\nimport { defineComponents, type ComponentCategory } from '../index';\n\n/** `compilerOptions.isCustomElement` predicate for every `<usa-*>` tag. */\nexport const isUsaElement = (tag: string): boolean => tag.startsWith('usa-');\n\nexport interface UsaPluginOptions {\n /** Only register these categories (default: all). */\n categories?: ComponentCategory[];\n}\n\n/** Vue plugin: registers the `<usa-*>` elements (client only) and sets `isCustomElement` at runtime. */\nexport const UsaPlugin = {\n install(app: { config: { compilerOptions?: { isCustomElement?: (t: string) => boolean } } }, options: UsaPluginOptions = {}): void {\n const co = (app.config.compilerOptions ||= {});\n const prev = co.isCustomElement;\n co.isCustomElement = (t: string) => isUsaElement(t) || !!prev?.(t);\n defineComponents(options.categories);\n },\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;AAeG;AAGH;AACO,MAAM,YAAY,GAAG,CAAC,GAAW,KAAc,GAAG,CAAC,UAAU,CAAC,MAAM;AAO3E;AACO,MAAM,SAAS,GAAG;AACvB,IAAA,OAAO,CAAC,GAAmF,EAAE,OAAA,GAA4B,EAAE,EAAA;;AACzH,QAAA,MAAM,EAAE,IAAG,CAAA,EAAA,GAAC,GAAG,CAAC,MAAM,EAAC,eAAe,KAAA,EAAA,CAAf,eAAe,GAAK,EAAE,EAAC;AAC9C,QAAA,MAAM,IAAI,GAAG,EAAE,CAAC,eAAe;QAC/B,EAAE,CAAC,eAAe,GAAG,CAAC,CAAS,KAAK,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC;AAClE,QAAA,gBAAgB,CAAC,OAAO,CAAC,UAAU,CAAC;IACtC,CAAC;;;;;"}
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var base = require('../chunks/base-CXx7jZ-o.cjs');
3
+ var base = require('../chunks/base-CxYU2NK_.cjs');
4
4
 
5
5
  /** Minimal WebGL runner: one full-canvas quad, one fragment shader, optional image texture. */
6
6
  const VERTEX = 'attribute vec2 p;varying vec2 v_uv;void main(){v_uv=p*.5+.5;gl_Position=vec4(p,0.,1.);}';
@@ -27,7 +27,17 @@ interface ComponentsConfig {
27
27
  * 1.25) on `<html>` for your own CSS. See `setMotionIntensity()`.
28
28
  */
29
29
  motionIntensity?: MotionIntensity;
30
+ /**
31
+ * Motion-sensitivity level (v4.4), finer than reduced motion:
32
+ * `'full'` (default) · `'gentle'` (no spins, zooms, skews or parallax —
33
+ * translations and fades only, safe for vestibular disorders) ·
34
+ * `'minimal'` (fades only; components use their reduced-motion variants) ·
35
+ * `'static'` (no animation: every component shows its static alternative).
36
+ * See `setMotionSensitivity()` in `use-scroll-animate/components/a11y`.
37
+ */
38
+ motionSensitivity?: MotionSensitivity;
30
39
  }
40
+ type MotionSensitivity = 'full' | 'gentle' | 'minimal' | 'static';
31
41
  type MotionIntensity = 'off' | 'low' | 'normal' | 'high';
32
42
  /** Change global component settings (call before `define*()` for `injectStyles`). */
33
43
  declare function configureComponents(options: ComponentsConfig): void;
@@ -27,7 +27,17 @@ interface ComponentsConfig {
27
27
  * 1.25) on `<html>` for your own CSS. See `setMotionIntensity()`.
28
28
  */
29
29
  motionIntensity?: MotionIntensity;
30
+ /**
31
+ * Motion-sensitivity level (v4.4), finer than reduced motion:
32
+ * `'full'` (default) · `'gentle'` (no spins, zooms, skews or parallax —
33
+ * translations and fades only, safe for vestibular disorders) ·
34
+ * `'minimal'` (fades only; components use their reduced-motion variants) ·
35
+ * `'static'` (no animation: every component shows its static alternative).
36
+ * See `setMotionSensitivity()` in `use-scroll-animate/components/a11y`.
37
+ */
38
+ motionSensitivity?: MotionSensitivity;
30
39
  }
40
+ type MotionSensitivity = 'full' | 'gentle' | 'minimal' | 'static';
31
41
  type MotionIntensity = 'off' | 'low' | 'normal' | 'high';
32
42
  /** Change global component settings (call before `define*()` for `injectStyles`). */
33
43
  declare function configureComponents(options: ComponentsConfig): void;
@@ -1,5 +1,5 @@
1
- import { h as defineElement, n as now, d as caf, b as clamp, r as raf } from '../chunks/base-BPG5zvex.js';
2
- export { a as configureComponents, p as prefersReducedMotion } from '../chunks/base-BPG5zvex.js';
1
+ import { u as defineElement, n as now, k as caf, j as clamp, r as raf } from '../chunks/base-CZiIAMBc.js';
2
+ export { f as configureComponents, p as prefersReducedMotion } from '../chunks/base-CZiIAMBc.js';
3
3
 
4
4
  /** Minimal WebGL runner: one full-canvas quad, one fragment shader, optional image texture. */
5
5
  const VERTEX = 'attribute vec2 p;varying vec2 v_uv;void main(){v_uv=p*.5+.5;gl_Position=vec4(p,0.,1.);}';
@@ -18,13 +18,15 @@ var components_webgl = require('./components/webgl.cjs');
18
18
  var components_depth = require('./components/depth.cjs');
19
19
  var components_layout = require('./components/layout.cjs');
20
20
  var components_packs = require('./components/packs.cjs');
21
- var variants = require('./chunks/variants-BNIrn4ch.cjs');
22
- var base = require('./chunks/base-CXx7jZ-o.cjs');
21
+ var variants = require('./chunks/variants-CfJzrzMh.cjs');
22
+ var base = require('./chunks/base-CxYU2NK_.cjs');
23
23
  var components_tokens = require('./components/tokens.cjs');
24
+ var components_a11y = require('./components/a11y.cjs');
25
+ var components_perf = require('./components/perf.cjs');
24
26
  var indexTags = require('./chunks/index-tags-BQh_uGqH.cjs');
25
- var spring = require('./chunks/spring-2OTnYCzm.cjs');
26
- var core = require('./chunks/core-BRIIoKeS.cjs');
27
- var core$1 = require('./chunks/core-IaorbTdu.cjs');
27
+ var spring = require('./chunks/spring-Dkpygsuj.cjs');
28
+ var core = require('./chunks/core-HLqH3qkA.cjs');
29
+ var core$1 = require('./chunks/core-CctNfzuP.cjs');
28
30
 
29
31
  /**
30
32
  * use-scroll-animate/components
@@ -247,9 +249,17 @@ exports.VARIANTS = variants.VARIANTS;
247
249
  exports.adoptVariants = variants.adoptVariants;
248
250
  exports.setVariant = variants.setVariant;
249
251
  exports.MOTION_SCALE = base.MOTION_SCALE;
252
+ exports.MOTION_SENSITIVITY_LEVELS = base.MOTION_SENSITIVITY_LEVELS;
253
+ exports.activeAnimations = base.activeAnimations;
254
+ exports.adaptKeyframes = base.adaptKeyframes;
255
+ exports.animationBudget = base.animationBudget;
250
256
  exports.configureComponents = base.configureComponents;
251
257
  exports.getMotionIntensity = base.getMotionIntensity;
258
+ exports.getMotionSensitivity = base.getMotionSensitivity;
259
+ exports.onFrame = base.onFrame;
252
260
  exports.prefersReducedMotion = base.prefersReducedMotion;
261
+ exports.schedulerStats = base.schedulerStats;
262
+ exports.setAnimationBudget = base.setAnimationBudget;
253
263
  exports.MOTION_TOKENS = components_tokens.MOTION_TOKENS;
254
264
  exports.applyMotionTokens = components_tokens.applyMotionTokens;
255
265
  exports.getMotionTokens = components_tokens.getMotionTokens;
@@ -264,6 +274,23 @@ exports.parseDuration = components_tokens.parseDuration;
264
274
  exports.parseEasing = components_tokens.parseEasing;
265
275
  exports.resolveDurationToken = components_tokens.resolveDurationToken;
266
276
  exports.resolveEasingToken = components_tokens.resolveEasingToken;
277
+ exports.ALL_TAGS = components_a11y.ALL_TAGS;
278
+ exports.LIVE_REGION_IDS = components_a11y.LIVE_REGION_IDS;
279
+ exports.MOTION_SENSITIVITY = components_a11y.MOTION_SENSITIVITY;
280
+ exports.SENSITIVITY_CSS = components_a11y.SENSITIVITY_CSS;
281
+ exports.STATIC_ALTERNATIVES = components_a11y.STATIC_ALTERNATIVES;
282
+ exports.announce = components_a11y.announce;
283
+ exports.auditMotionA11y = components_a11y.auditMotionA11y;
284
+ exports.liveRegion = components_a11y.liveRegion;
285
+ exports.motionAllowed = components_a11y.motionAllowed;
286
+ exports.restoreMotionSensitivity = components_a11y.restoreMotionSensitivity;
287
+ exports.setMotionSensitivity = components_a11y.setMotionSensitivity;
288
+ exports.staticAlternative = components_a11y.staticAlternative;
289
+ exports.autoDegrade = components_perf.autoDegrade;
290
+ exports.categoryOf = components_perf.categoryOf;
291
+ exports.loadCategoryStyles = components_perf.loadCategoryStyles;
292
+ exports.loadedStyles = components_perf.loadedStyles;
293
+ exports.onDemandStyles = components_perf.onDemandStyles;
267
294
  exports.COMPONENT_CATEGORIES = indexTags.COMPONENT_CATEGORIES;
268
295
  exports.SPRING_PRESETS = spring.SPRING_PRESETS;
269
296
  exports.createSpring = spring.createSpring;
@@ -1 +1 @@
1
- {"version":3,"file":"components.cjs","sources":["../src/components/index.ts"],"sourcesContent":["/**\n * use-scroll-animate/components\n *\n * Framework-agnostic, dependency-free animated UI components built on\n * Custom Elements + CSS + the Web Animations API. They run in any browser\n * and in Windows desktop apps that render with a web view: Electron, Tauri\n * (WebView2), WinUI 3 / WPF / WinForms with WebView2, and installed PWAs.\n *\n * ```js\n * import { defineComponents } from 'use-scroll-animate/components';\n * defineComponents(); // registers every <usa-*> element\n * // or only what you use (tree-shakable):\n * import { defineTypewriter } from 'use-scroll-animate/components/text';\n * ```\n *\n * Importing has no side effects and is SSR-safe; nothing is registered\n * until a `define*()` function runs in a browser.\n *\n * @license MIT\n */\nimport { defineRevealComponents } from './reveal/index';\nimport { defineTextComponents } from './text/index';\nimport { defineInteractionComponents } from './interaction/index';\nimport { defineFeedbackComponents } from './feedback/index';\nimport { defineBackgroundComponents } from './background/index';\nimport { defineTransitionComponents } from './transitions/index';\nimport { definePhysicsComponents } from './physics/index';\nimport { defineCardComponents } from './cards/index';\nimport { defineClickComponents } from './click/index';\nimport { defineUiComponents } from './ui/index';\nimport { definePageComponents } from './page/index';\nimport { defineTimelineComponents } from './timeline/index';\nimport { defineGestureComponents } from './gesture/index';\nimport { defineSvgComponents } from './svg/index';\nimport { defineWebglComponents } from './webgl/index';\nimport { defineDepthComponents } from './depth/index';\nimport { defineLayoutComponents } from './layout/index';\nimport { definePacksComponents } from './packs/index';\nimport { adoptVariants } from './ui/variants';\nimport { canDefine } from './base';\n\nexport * from './reveal/index';\nexport * from './text/index';\nexport * from './interaction/index';\nexport * from './feedback/index';\nexport * from './background/index';\nexport * from './transitions/index';\nexport * from './physics/index';\nexport * from './cards/index';\nexport * from './click/index';\nexport * from './ui/index';\nexport * from './page/index';\nexport * from './timeline/index';\nexport * from './gesture/index';\nexport * from './svg/index';\nexport * from './webgl/index';\nexport * from './depth/index';\nexport * from './layout/index';\nexport * from './packs/index';\nexport * from './tokens/index';\n\nexport { COMPONENT_CATEGORIES } from './index-tags';\nexport type { ComponentCategory } from './index-tags';\nimport { COMPONENT_CATEGORIES, type ComponentCategory } from './index-tags';\n\nconst BY_CATEGORY: Record<ComponentCategory, () => void> = {\n reveal: defineRevealComponents,\n text: defineTextComponents,\n interaction: defineInteractionComponents,\n feedback: defineFeedbackComponents,\n background: defineBackgroundComponents,\n transitions: defineTransitionComponents,\n physics: definePhysicsComponents,\n cards: defineCardComponents,\n click: defineClickComponents,\n ui: defineUiComponents,\n page: definePageComponents,\n timeline: defineTimelineComponents,\n gesture: defineGestureComponents,\n svg: defineSvgComponents,\n webgl: defineWebglComponents,\n depth: defineDepthComponents,\n layout: defineLayoutComponents,\n packs: definePacksComponents,\n};\n\n/**\n * Register every `<usa-*>` component (or only the given categories).\n * Safe to call more than once and on the server (no-op without DOM).\n */\nexport function defineComponents(categories?: ComponentCategory[]): void {\n if (canDefine()) adoptVariants();\n (categories || (Object.keys(BY_CATEGORY) as ComponentCategory[])).forEach((c) => BY_CATEGORY[c]?.());\n}\n"],"names":["defineRevealComponents","defineTextComponents","defineInteractionComponents","defineFeedbackComponents","defineBackgroundComponents","defineTransitionComponents","definePhysicsComponents","defineCardComponents","defineClickComponents","defineUiComponents","definePageComponents","defineTimelineComponents","defineGestureComponents","defineSvgComponents","defineWebglComponents","defineDepthComponents","defineLayoutComponents","definePacksComponents","canDefine","adoptVariants"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;AAmBG;AA8CH,MAAM,WAAW,GAA0C;AACzD,IAAA,MAAM,EAAEA,wCAAsB;AAC9B,IAAA,IAAI,EAAEC,oCAAoB;AAC1B,IAAA,WAAW,EAAEC,kDAA2B;AACxC,IAAA,QAAQ,EAAEC,4CAAwB;AAClC,IAAA,UAAU,EAAEC,gDAA0B;AACtC,IAAA,WAAW,EAAEC,iDAA0B;AACvC,IAAA,OAAO,EAAEC,0CAAuB;AAChC,IAAA,KAAK,EAAEC,qCAAoB;AAC3B,IAAA,KAAK,EAAEC,sCAAqB;AAC5B,IAAA,EAAE,EAAEC,gCAAkB;AACtB,IAAA,IAAI,EAAEC,oCAAoB;AAC1B,IAAA,QAAQ,EAAEC,4CAAwB;AAClC,IAAA,OAAO,EAAEC,0CAAuB;AAChC,IAAA,GAAG,EAAEC,kCAAmB;AACxB,IAAA,KAAK,EAAEC,sCAAqB;AAC5B,IAAA,KAAK,EAAEC,sCAAqB;AAC5B,IAAA,MAAM,EAAEC,wCAAsB;AAC9B,IAAA,KAAK,EAAEC,sCAAqB;CAC7B;AAED;;;AAGG;AACG,SAAU,gBAAgB,CAAC,UAAgC,EAAA;AAC/D,IAAA,IAAIC,cAAS,EAAE;AAAE,QAAAC,sBAAa,EAAE;IAChC,CAAC,UAAU,IAAK,MAAM,CAAC,IAAI,CAAC,WAAW,CAAyB,EAAE,OAAO,CAAC,CAAC,CAAC,KAAK,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC;AACtG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"components.cjs","sources":["../src/components/index.ts"],"sourcesContent":["/**\n * use-scroll-animate/components\n *\n * Framework-agnostic, dependency-free animated UI components built on\n * Custom Elements + CSS + the Web Animations API. They run in any browser\n * and in Windows desktop apps that render with a web view: Electron, Tauri\n * (WebView2), WinUI 3 / WPF / WinForms with WebView2, and installed PWAs.\n *\n * ```js\n * import { defineComponents } from 'use-scroll-animate/components';\n * defineComponents(); // registers every <usa-*> element\n * // or only what you use (tree-shakable):\n * import { defineTypewriter } from 'use-scroll-animate/components/text';\n * ```\n *\n * Importing has no side effects and is SSR-safe; nothing is registered\n * until a `define*()` function runs in a browser.\n *\n * @license MIT\n */\nimport { defineRevealComponents } from './reveal/index';\nimport { defineTextComponents } from './text/index';\nimport { defineInteractionComponents } from './interaction/index';\nimport { defineFeedbackComponents } from './feedback/index';\nimport { defineBackgroundComponents } from './background/index';\nimport { defineTransitionComponents } from './transitions/index';\nimport { definePhysicsComponents } from './physics/index';\nimport { defineCardComponents } from './cards/index';\nimport { defineClickComponents } from './click/index';\nimport { defineUiComponents } from './ui/index';\nimport { definePageComponents } from './page/index';\nimport { defineTimelineComponents } from './timeline/index';\nimport { defineGestureComponents } from './gesture/index';\nimport { defineSvgComponents } from './svg/index';\nimport { defineWebglComponents } from './webgl/index';\nimport { defineDepthComponents } from './depth/index';\nimport { defineLayoutComponents } from './layout/index';\nimport { definePacksComponents } from './packs/index';\nimport { adoptVariants } from './ui/variants';\nimport { canDefine } from './base';\n\nexport * from './reveal/index';\nexport * from './text/index';\nexport * from './interaction/index';\nexport * from './feedback/index';\nexport * from './background/index';\nexport * from './transitions/index';\nexport * from './physics/index';\nexport * from './cards/index';\nexport * from './click/index';\nexport * from './ui/index';\nexport * from './page/index';\nexport * from './timeline/index';\nexport * from './gesture/index';\nexport * from './svg/index';\nexport * from './webgl/index';\nexport * from './depth/index';\nexport * from './layout/index';\nexport * from './packs/index';\nexport * from './tokens/index';\nexport * from './a11y/index';\nexport * from './perf/index';\n\nexport { COMPONENT_CATEGORIES } from './index-tags';\nexport type { ComponentCategory } from './index-tags';\nimport { COMPONENT_CATEGORIES, type ComponentCategory } from './index-tags';\n\nconst BY_CATEGORY: Record<ComponentCategory, () => void> = {\n reveal: defineRevealComponents,\n text: defineTextComponents,\n interaction: defineInteractionComponents,\n feedback: defineFeedbackComponents,\n background: defineBackgroundComponents,\n transitions: defineTransitionComponents,\n physics: definePhysicsComponents,\n cards: defineCardComponents,\n click: defineClickComponents,\n ui: defineUiComponents,\n page: definePageComponents,\n timeline: defineTimelineComponents,\n gesture: defineGestureComponents,\n svg: defineSvgComponents,\n webgl: defineWebglComponents,\n depth: defineDepthComponents,\n layout: defineLayoutComponents,\n packs: definePacksComponents,\n};\n\n/**\n * Register every `<usa-*>` component (or only the given categories).\n * Safe to call more than once and on the server (no-op without DOM).\n */\nexport function defineComponents(categories?: ComponentCategory[]): void {\n if (canDefine()) adoptVariants();\n (categories || (Object.keys(BY_CATEGORY) as ComponentCategory[])).forEach((c) => BY_CATEGORY[c]?.());\n}\n"],"names":["defineRevealComponents","defineTextComponents","defineInteractionComponents","defineFeedbackComponents","defineBackgroundComponents","defineTransitionComponents","definePhysicsComponents","defineCardComponents","defineClickComponents","defineUiComponents","definePageComponents","defineTimelineComponents","defineGestureComponents","defineSvgComponents","defineWebglComponents","defineDepthComponents","defineLayoutComponents","definePacksComponents","canDefine","adoptVariants"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;AAmBG;AAgDH,MAAM,WAAW,GAA0C;AACzD,IAAA,MAAM,EAAEA,wCAAsB;AAC9B,IAAA,IAAI,EAAEC,oCAAoB;AAC1B,IAAA,WAAW,EAAEC,kDAA2B;AACxC,IAAA,QAAQ,EAAEC,4CAAwB;AAClC,IAAA,UAAU,EAAEC,gDAA0B;AACtC,IAAA,WAAW,EAAEC,iDAA0B;AACvC,IAAA,OAAO,EAAEC,0CAAuB;AAChC,IAAA,KAAK,EAAEC,qCAAoB;AAC3B,IAAA,KAAK,EAAEC,sCAAqB;AAC5B,IAAA,EAAE,EAAEC,gCAAkB;AACtB,IAAA,IAAI,EAAEC,oCAAoB;AAC1B,IAAA,QAAQ,EAAEC,4CAAwB;AAClC,IAAA,OAAO,EAAEC,0CAAuB;AAChC,IAAA,GAAG,EAAEC,kCAAmB;AACxB,IAAA,KAAK,EAAEC,sCAAqB;AAC5B,IAAA,KAAK,EAAEC,sCAAqB;AAC5B,IAAA,MAAM,EAAEC,wCAAsB;AAC9B,IAAA,KAAK,EAAEC,sCAAqB;CAC7B;AAED;;;AAGG;AACG,SAAU,gBAAgB,CAAC,UAAgC,EAAA;AAC/D,IAAA,IAAIC,cAAS,EAAE;AAAE,QAAAC,sBAAa,EAAE;IAChC,CAAC,UAAU,IAAK,MAAM,CAAC,IAAI,CAAC,WAAW,CAAyB,EAAE,OAAO,CAAC,CAAC,CAAC,KAAK,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC;AACtG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}