motionary 6.9.0 → 7.0.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 (186) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +2 -2
  3. package/README_ja.md +2 -2
  4. package/README_zh.md +2 -2
  5. package/dist/chunks/{base-D5MHqeDd.js → base-DchG4q_S.js} +2 -2
  6. package/dist/chunks/{base-D5MHqeDd.js.map → base-DchG4q_S.js.map} +1 -1
  7. package/dist/chunks/{core-ZGo4hOEk.js → core-D2vF8kZb.js} +2 -2
  8. package/dist/chunks/{core-ZGo4hOEk.js.map → core-D2vF8kZb.js.map} +1 -1
  9. package/dist/chunks/{core-DyJu5r5a.js → core-DVyTlo9Q.js} +2 -2
  10. package/dist/chunks/{core-DyJu5r5a.js.map → core-DVyTlo9Q.js.map} +1 -1
  11. package/dist/chunks/{fx-DlGRMJ-Z.js → fx-DUMVKSvg.js} +2 -2
  12. package/dist/chunks/{fx-DlGRMJ-Z.js.map → fx-DUMVKSvg.js.map} +1 -1
  13. package/dist/chunks/{gpu-DPhMkJq6.js → gpu-Bkw605Ds.js} +183 -11
  14. package/dist/chunks/gpu-Bkw605Ds.js.map +1 -0
  15. package/dist/chunks/{gpu-C2D4T9Q-.cjs → gpu-Dx0H875w.cjs} +185 -9
  16. package/dist/chunks/gpu-Dx0H875w.cjs.map +1 -0
  17. package/dist/chunks/{index-tags-wv0R_vkO.cjs → index-tags-BTMwrfgV.cjs} +3 -3
  18. package/dist/chunks/index-tags-BTMwrfgV.cjs.map +1 -0
  19. package/dist/chunks/{index-tags-DucKMQr_.js → index-tags-C04JP8g4.js} +3 -3
  20. package/dist/chunks/index-tags-C04JP8g4.js.map +1 -0
  21. package/dist/chunks/{player-DH3TIz-t.js → player-C-TwEEy6.js} +4 -4
  22. package/dist/chunks/{player-DH3TIz-t.js.map → player-C-TwEEy6.js.map} +1 -1
  23. package/dist/chunks/{registry-CTLWeg-J.js → registry-D23neB4M.js} +2 -2
  24. package/dist/chunks/{registry-CTLWeg-J.js.map → registry-D23neB4M.js.map} +1 -1
  25. package/dist/chunks/{spring-B-9MZOrW.js → spring-BhoT09Qb.js} +2 -2
  26. package/dist/chunks/{spring-B-9MZOrW.js.map → spring-BhoT09Qb.js.map} +1 -1
  27. package/dist/chunks/{variants-CoZn3k_5.js → variants-C_hv_s23.js} +2 -2
  28. package/dist/chunks/{variants-CoZn3k_5.js.map → variants-C_hv_s23.js.map} +1 -1
  29. package/dist/components/a11y.cjs +1 -1
  30. package/dist/components/a11y.d.cts +2 -2
  31. package/dist/components/a11y.d.ts +2 -2
  32. package/dist/components/a11y.js +3 -3
  33. package/dist/components/angular.cjs +2 -2
  34. package/dist/components/angular.cjs.map +1 -1
  35. package/dist/components/angular.d.cts +5 -36
  36. package/dist/components/angular.d.ts +5 -36
  37. package/dist/components/angular.js +9 -9
  38. package/dist/components/angular.js.map +1 -1
  39. package/dist/components/background.js +2 -2
  40. package/dist/components/bridge.js +1 -1
  41. package/dist/components/cards.js +2 -2
  42. package/dist/components/click.js +3 -3
  43. package/dist/components/depth.js +3 -3
  44. package/dist/components/effects.js +6 -6
  45. package/dist/components/feedback.js +1 -1
  46. package/dist/components/fx-3d.cjs +1 -7
  47. package/dist/components/fx-3d.cjs.map +1 -1
  48. package/dist/components/fx-3d.d.cts +1 -3
  49. package/dist/components/fx-3d.d.ts +1 -3
  50. package/dist/components/fx-3d.js +3 -8
  51. package/dist/components/fx-3d.js.map +1 -1
  52. package/dist/components/fx-focus.js +2 -2
  53. package/dist/components/fx-gpu.cjs +2 -3
  54. package/dist/components/fx-gpu.cjs.map +1 -1
  55. package/dist/components/fx-gpu.d.cts +1 -3
  56. package/dist/components/fx-gpu.d.ts +1 -3
  57. package/dist/components/fx-gpu.js +3 -3
  58. package/dist/components/fx-light.cjs +1 -7
  59. package/dist/components/fx-light.cjs.map +1 -1
  60. package/dist/components/fx-light.d.cts +1 -3
  61. package/dist/components/fx-light.d.ts +1 -3
  62. package/dist/components/fx-light.js +3 -8
  63. package/dist/components/fx-light.js.map +1 -1
  64. package/dist/components/fx-morph.cjs +1 -7
  65. package/dist/components/fx-morph.cjs.map +1 -1
  66. package/dist/components/fx-morph.d.cts +1 -3
  67. package/dist/components/fx-morph.d.ts +1 -3
  68. package/dist/components/fx-morph.js +3 -8
  69. package/dist/components/fx-morph.js.map +1 -1
  70. package/dist/components/fx-physics.cjs +1 -7
  71. package/dist/components/fx-physics.cjs.map +1 -1
  72. package/dist/components/fx-physics.d.cts +1 -3
  73. package/dist/components/fx-physics.d.ts +1 -3
  74. package/dist/components/fx-physics.js +3 -8
  75. package/dist/components/fx-physics.js.map +1 -1
  76. package/dist/components/fx-text.cjs +1 -7
  77. package/dist/components/fx-text.cjs.map +1 -1
  78. package/dist/components/fx-text.d.cts +1 -3
  79. package/dist/components/fx-text.d.ts +1 -3
  80. package/dist/components/fx-text.js +3 -8
  81. package/dist/components/fx-text.js.map +1 -1
  82. package/dist/components/fx-transitions.cjs +1 -7
  83. package/dist/components/fx-transitions.cjs.map +1 -1
  84. package/dist/components/fx-transitions.d.cts +1 -3
  85. package/dist/components/fx-transitions.d.ts +1 -3
  86. package/dist/components/fx-transitions.js +4 -9
  87. package/dist/components/fx-transitions.js.map +1 -1
  88. package/dist/components/fx-weather.cjs +1 -7
  89. package/dist/components/fx-weather.cjs.map +1 -1
  90. package/dist/components/fx-weather.d.cts +1 -3
  91. package/dist/components/fx-weather.d.ts +1 -3
  92. package/dist/components/fx-weather.js +3 -8
  93. package/dist/components/fx-weather.js.map +1 -1
  94. package/dist/components/fx.js +5 -5
  95. package/dist/components/fx2.cjs +7 -19
  96. package/dist/components/fx2.cjs.map +1 -1
  97. package/dist/components/fx2.d.cts +39 -22
  98. package/dist/components/fx2.d.ts +39 -22
  99. package/dist/components/fx2.js +11 -19
  100. package/dist/components/fx2.js.map +1 -1
  101. package/dist/components/gesture.js +4 -4
  102. package/dist/components/interaction.cjs +11 -95
  103. package/dist/components/interaction.cjs.map +1 -1
  104. package/dist/components/interaction.css +0 -1
  105. package/dist/components/interaction.d.cts +3 -21
  106. package/dist/components/interaction.d.ts +3 -21
  107. package/dist/components/interaction.js +13 -96
  108. package/dist/components/interaction.js.map +1 -1
  109. package/dist/components/jsx.d.cts +2 -2
  110. package/dist/components/jsx.d.ts +2 -2
  111. package/dist/components/layout.js +1 -1
  112. package/dist/components/lazy.cjs +1 -1
  113. package/dist/components/lazy.d.cts +2 -2
  114. package/dist/components/lazy.d.ts +2 -2
  115. package/dist/components/lazy.js +1 -1
  116. package/dist/components/lite.cjs +115 -258
  117. package/dist/components/lite.cjs.map +1 -1
  118. package/dist/components/lite.js +116 -257
  119. package/dist/components/lite.js.map +1 -1
  120. package/dist/components/marketplace.js +2 -2
  121. package/dist/components/packs.js +1 -1
  122. package/dist/components/page.js +3 -3
  123. package/dist/components/perf.cjs +1 -1
  124. package/dist/components/perf.d.cts +2 -2
  125. package/dist/components/perf.d.ts +2 -2
  126. package/dist/components/perf.js +3 -3
  127. package/dist/components/physics.js +3 -3
  128. package/dist/components/react.cjs +2 -2
  129. package/dist/components/react.cjs.map +1 -1
  130. package/dist/components/react.js +2 -2
  131. package/dist/components/react.js.map +1 -1
  132. package/dist/components/reveal.js +1 -1
  133. package/dist/components/solid.cjs +2 -2
  134. package/dist/components/solid.cjs.map +1 -1
  135. package/dist/components/solid.d.cts +4 -35
  136. package/dist/components/solid.d.ts +4 -35
  137. package/dist/components/solid.js +9 -9
  138. package/dist/components/solid.js.map +1 -1
  139. package/dist/components/svelte.cjs +2 -2
  140. package/dist/components/svelte.cjs.map +1 -1
  141. package/dist/components/svelte.d.cts +5 -36
  142. package/dist/components/svelte.d.ts +5 -36
  143. package/dist/components/svelte.js +9 -9
  144. package/dist/components/svelte.js.map +1 -1
  145. package/dist/components/svg.js +1 -1
  146. package/dist/components/text.js +2 -2
  147. package/dist/components/timeline.js +3 -3
  148. package/dist/components/transitions.js +1 -1
  149. package/dist/components/ui.cjs +16 -75
  150. package/dist/components/ui.cjs.map +1 -1
  151. package/dist/components/ui.css +0 -1
  152. package/dist/components/ui.d.cts +3 -18
  153. package/dist/components/ui.d.ts +3 -18
  154. package/dist/components/ui.js +21 -79
  155. package/dist/components/ui.js.map +1 -1
  156. package/dist/components/vue.cjs +2 -2
  157. package/dist/components/vue.cjs.map +1 -1
  158. package/dist/components/vue.d.cts +5 -36
  159. package/dist/components/vue.d.ts +5 -36
  160. package/dist/components/vue.js +9 -9
  161. package/dist/components/vue.js.map +1 -1
  162. package/dist/components/webgl.js +1 -1
  163. package/dist/components/widgets.js +5 -5
  164. package/dist/components.cjs +1 -3
  165. package/dist/components.cjs.map +1 -1
  166. package/dist/components.css +0 -2
  167. package/dist/components.d.cts +6 -39
  168. package/dist/components.d.ts +6 -39
  169. package/dist/components.js +12 -12
  170. package/dist/components.umd.js +2 -2
  171. package/dist/components.umd.js.map +1 -1
  172. package/dist/index.js +2 -2
  173. package/dist/widgets.umd.js +1 -1
  174. package/dist/widgets.umd.js.map +1 -1
  175. package/docs/ROADMAP.md +12 -12
  176. package/docs/accessibility.md +2 -2
  177. package/docs/components.md +13 -2
  178. package/docs/frameworks-ssr.md +4 -4
  179. package/docs/hybrid-apps.md +2 -2
  180. package/docs/upgrading-7.md +11 -1
  181. package/docs/windows-apps.md +1 -1
  182. package/package.json +111 -1
  183. package/dist/chunks/gpu-C2D4T9Q-.cjs.map +0 -1
  184. package/dist/chunks/gpu-DPhMkJq6.js.map +0 -1
  185. package/dist/chunks/index-tags-DucKMQr_.js.map +0 -1
  186. package/dist/chunks/index-tags-wv0R_vkO.cjs.map +0 -1
@@ -408,14 +408,14 @@ const clamp = (v, min, max) => Math.min(max, Math.max(min, v));
408
408
  const COMPONENT_CATEGORIES = {
409
409
  reveal: ['usa-reveal', 'usa-stagger', 'usa-scroll-progress', 'usa-scrolly'],
410
410
  text: ['usa-typewriter', 'usa-split-text', 'usa-scramble', 'usa-counter', 'usa-shimmer-text', 'usa-text-rotate', 'usa-wave-text', 'usa-glitch', 'usa-gradient-text', 'usa-handwriting', 'usa-scroll-highlight'],
411
- interaction: ['usa-ripple', 'usa-magnetic', 'usa-tilt', 'usa-spotlight', 'usa-press', 'usa-toggle'],
411
+ interaction: ['usa-ripple', 'usa-magnetic', 'usa-tilt', 'usa-spotlight', 'usa-press'],
412
412
  feedback: ['usa-spinner', 'usa-skeleton', 'usa-progress', 'usa-toaster', 'usa-check'],
413
413
  background: ['usa-aurora', 'usa-particles', 'usa-grain', 'usa-marquee', 'usa-acrylic', 'usa-grid-glow', 'usa-blobs', 'usa-water-ripple', 'usa-dot-network'],
414
414
  transitions: ['usa-dialog', 'usa-accordion', 'usa-view-switch'],
415
415
  physics: ['usa-spring', 'usa-draggable', 'usa-overscroll'],
416
416
  cards: ['usa-card', 'usa-card-stack', 'usa-sticky-stack', 'usa-carousel-3d'],
417
417
  click: ['usa-click', 'usa-button', 'usa-icon-morph', 'usa-like', 'usa-hold', 'usa-double-tap', 'usa-checkbox'],
418
- ui: ['usa-tabs', 'usa-drawer', 'usa-bottom-sheet', 'usa-pull-refresh', 'usa-fab', 'usa-navbar', 'usa-slider', 'usa-rating', 'usa-tooltip', 'usa-popover', 'usa-badge', 'usa-avatar-stack'],
418
+ ui: ['usa-tabs', 'usa-drawer', 'usa-bottom-sheet', 'usa-pull-refresh', 'usa-fab', 'usa-navbar', 'usa-slider', 'usa-rating', 'usa-popover', 'usa-badge', 'usa-avatar-stack'],
419
419
  page: ['usa-cursor', 'usa-fullpage', 'usa-loading-bar', 'usa-back-to-top', 'usa-ambient', 'usa-splash', 'usa-auto-skeleton', 'usa-motion-switch'],
420
420
  timeline: ['usa-timeline'],
421
421
  gesture: ['usa-swipeable', 'usa-pinch-zoom'],
@@ -598,7 +598,7 @@ function revealKeyframes(effect, distance) {
598
598
  return [from, to];
599
599
  }
600
600
 
601
- var css$16 = "";
601
+ var css$14 = "";
602
602
 
603
603
  function defineReveal(tag = 'usa-reveal') {
604
604
  return defineElement(tag, (Base) => class UsaReveal extends Base {
@@ -673,7 +673,7 @@ function defineReveal(tag = 'usa-reveal') {
673
673
  if (!this.reduced)
674
674
  this.setAttribute('data-state', 'hidden');
675
675
  }
676
- }, { id: 'reveal', text: css$16 });
676
+ }, { id: 'reveal', text: css$14 });
677
677
  }
678
678
 
679
679
  function defineStagger(tag = 'usa-stagger') {
@@ -739,10 +739,10 @@ function defineStagger(tag = 'usa-stagger') {
739
739
  if (!this.reduced)
740
740
  this.setAttribute('data-state', 'hidden');
741
741
  }
742
- }, { id: 'reveal', text: css$16 });
742
+ }, { id: 'reveal', text: css$14 });
743
743
  }
744
744
 
745
- var css$15 = "";
745
+ var css$13 = "";
746
746
 
747
747
  /** Progress (0–1) of `target` scrolling through the viewport, or of the page. */
748
748
  function readScrollProgress(target) {
@@ -810,10 +810,10 @@ function defineScrollProgress(tag = 'usa-scroll-progress') {
810
810
  this.setAttribute('aria-valuenow', pct);
811
811
  this.emit('progress', { progress: p });
812
812
  }
813
- }, { id: 'scroll-progress', text: css$15 });
813
+ }, { id: 'scroll-progress', text: css$13 });
814
814
  }
815
815
 
816
- var css$14 = "";
816
+ var css$12 = "";
817
817
 
818
818
  function defineScrolly(tag = 'usa-scrolly') {
819
819
  return defineElement(tag, (Base) => class UsaScrolly extends Base {
@@ -865,7 +865,7 @@ function defineScrolly(tag = 'usa-scrolly') {
865
865
  if (!silent)
866
866
  this.emit('step', { index, step, name: step.dataset.step || '' });
867
867
  }
868
- }, { id: 'scrolly', text: css$14 });
868
+ }, { id: 'scrolly', text: css$12 });
869
869
  }
870
870
 
871
871
  /**
@@ -880,7 +880,7 @@ function defineRevealComponents() {
880
880
  defineScrolly();
881
881
  }
882
882
 
883
- var css$13 = "";
883
+ var css$11 = "";
884
884
 
885
885
  function defineTypewriter(tag = 'usa-typewriter') {
886
886
  return defineElement(tag, (Base) => class UsaTypewriter extends Base {
@@ -994,10 +994,10 @@ function defineTypewriter(tag = 'usa-typewriter') {
994
994
  };
995
995
  this._timer = setTimeout(tick, this.num('delay', 0));
996
996
  }
997
- }, { id: 'typewriter', text: css$13 });
997
+ }, { id: 'typewriter', text: css$11 });
998
998
  }
999
999
 
1000
- var css$12 = "";
1000
+ var css$10 = "";
1001
1001
 
1002
1002
  /**
1003
1003
  * motionary/components/tokens — motion design tokens (4.2).
@@ -1811,7 +1811,7 @@ function defineSplitText(tag = 'usa-split-text') {
1811
1811
  clearTimeout(this._timer);
1812
1812
  this.setAttribute('data-state', this.reduced ? 'shown' : 'hidden');
1813
1813
  }
1814
- }, { id: 'split-text', text: css$12 });
1814
+ }, { id: 'split-text', text: css$10 });
1815
1815
  }
1816
1816
 
1817
1817
  const GLYPHS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789#%&*+=<>/\\?!';
@@ -1905,7 +1905,7 @@ function defineScramble(tag = 'usa-scramble') {
1905
1905
  }, undefined);
1906
1906
  }
1907
1907
 
1908
- var css$11 = "";
1908
+ var css$$ = "";
1909
1909
 
1910
1910
  /** easeOutExpo */
1911
1911
  const easeOutExpo = (t) => (t >= 1 ? 1 : 1 - Math.pow(2, -10 * t));
@@ -2005,10 +2005,10 @@ function defineCounter(tag = 'usa-counter') {
2005
2005
  this._frame = raf(step);
2006
2006
  });
2007
2007
  }
2008
- }, { id: 'counter', text: css$11 });
2008
+ }, { id: 'counter', text: css$$ });
2009
2009
  }
2010
2010
 
2011
- var css$10 = "";
2011
+ var css$_ = "";
2012
2012
 
2013
2013
  function defineShimmerText(tag = 'usa-shimmer-text') {
2014
2014
  return defineElement(tag, (Base) => class UsaShimmerText extends Base {
@@ -2028,10 +2028,10 @@ function defineShimmerText(tag = 'usa-shimmer-text') {
2028
2028
  set('shine', '--usa-shimmer-shine');
2029
2029
  set('angle', '--usa-shimmer-angle', 'deg');
2030
2030
  }
2031
- }, { id: 'shimmer-text', text: css$10 });
2031
+ }, { id: 'shimmer-text', text: css$_ });
2032
2032
  }
2033
2033
 
2034
- var css$$ = "";
2034
+ var css$Z = "";
2035
2035
 
2036
2036
  function defineTextRotate(tag = 'usa-text-rotate') {
2037
2037
  return defineElement(tag, (Base) => class UsaTextRotate extends Base {
@@ -2103,10 +2103,10 @@ function defineTextRotate(tag = 'usa-text-rotate') {
2103
2103
  this.motion(cur, [inFrom, pick(inFrom)], { duration: 520, easing: effect === 'slide' ? EASE_SPRING : EASE_OUT });
2104
2104
  this.emit('change', { index: this._index, word: cur.textContent });
2105
2105
  }
2106
- }, { id: 'text-rotate', text: css$$ });
2106
+ }, { id: 'text-rotate', text: css$Z });
2107
2107
  }
2108
2108
 
2109
- var css$_ = "";
2109
+ var css$Y = "";
2110
2110
 
2111
2111
  /** Split `text` into per-character spans (words never break). The animated copy is aria-hidden. */
2112
2112
  function splitChars(host, text) {
@@ -2143,7 +2143,7 @@ function defineWaveText(tag = 'usa-wave-text') {
2143
2143
  this.style.setProperty('--usa-wave-s', `${this.num('speed', 1.6)}s`);
2144
2144
  this.style.setProperty('--usa-wave-d', `${this.num('stagger', 0.06)}s`);
2145
2145
  }
2146
- }, { id: 'text-fx', text: css$_ });
2146
+ }, { id: 'text-fx', text: css$Y });
2147
2147
  }
2148
2148
  function defineGlitch(tag = 'usa-glitch') {
2149
2149
  return defineElement(tag, (Base) => class extends Base {
@@ -2155,7 +2155,7 @@ function defineGlitch(tag = 'usa-glitch') {
2155
2155
  if (!this.firstChild)
2156
2156
  this.textContent = t;
2157
2157
  }
2158
- }, { id: 'text-fx', text: css$_ });
2158
+ }, { id: 'text-fx', text: css$Y });
2159
2159
  }
2160
2160
  function defineGradientText(tag = 'usa-gradient-text') {
2161
2161
  return defineElement(tag, (Base) => class extends Base {
@@ -2165,7 +2165,7 @@ function defineGradientText(tag = 'usa-gradient-text') {
2165
2165
  this.style.setProperty('--usa-grad', `linear-gradient(${this.num('angle', 90)}deg, ${[...c, c[0]].join(', ')})`);
2166
2166
  this.style.setProperty('--usa-grad-s', `${this.num('speed', 6)}s`);
2167
2167
  }
2168
- }, { id: 'text-fx', text: css$_ });
2168
+ }, { id: 'text-fx', text: css$Y });
2169
2169
  }
2170
2170
  function defineHandwriting(tag = 'usa-handwriting') {
2171
2171
  return defineElement(tag, (Base) => class extends Base {
@@ -2198,7 +2198,7 @@ function defineHandwriting(tag = 'usa-handwriting') {
2198
2198
  this.emit('complete');
2199
2199
  }, this.reduced ? 0 : this.num('duration', 2400));
2200
2200
  }
2201
- }, { id: 'text-fx', text: css$_ });
2201
+ }, { id: 'text-fx', text: css$Y });
2202
2202
  }
2203
2203
  function defineScrollHighlight(tag = 'usa-scroll-highlight') {
2204
2204
  return defineElement(tag, (Base) => class extends Base {
@@ -2262,7 +2262,7 @@ function defineScrollHighlight(tag = 'usa-scroll-highlight') {
2262
2262
  caf(this._f);
2263
2263
  this._f = 0;
2264
2264
  }
2265
- }, { id: 'text-fx', text: css$_ });
2265
+ }, { id: 'text-fx', text: css$Y });
2266
2266
  }
2267
2267
 
2268
2268
  /**
@@ -2285,7 +2285,7 @@ function defineTextComponents() {
2285
2285
  defineScrollHighlight();
2286
2286
  }
2287
2287
 
2288
- var css$Z = "";
2288
+ var css$X = "";
2289
2289
 
2290
2290
  function defineRipple(tag = 'usa-ripple') {
2291
2291
  return defineElement(tag, (Base) => class UsaRipple extends Base {
@@ -2332,10 +2332,10 @@ function defineRipple(tag = 'usa-ripple') {
2332
2332
  else
2333
2333
  setTimeout(() => wave.remove(), 0);
2334
2334
  }
2335
- }, { id: 'ripple', text: css$Z });
2335
+ }, { id: 'ripple', text: css$X });
2336
2336
  }
2337
2337
 
2338
- var css$Y = "";
2338
+ var css$W = "";
2339
2339
 
2340
2340
  function defineMagnetic(tag = 'usa-magnetic') {
2341
2341
  return defineElement(tag, (Base) => class UsaMagnetic extends Base {
@@ -2392,10 +2392,10 @@ function defineMagnetic(tag = 'usa-magnetic') {
2392
2392
  this._frame = 0;
2393
2393
  this.release();
2394
2394
  }
2395
- }, { id: 'magnetic', text: css$Y });
2395
+ }, { id: 'magnetic', text: css$W });
2396
2396
  }
2397
2397
 
2398
- var css$X = "";
2398
+ var css$V = "";
2399
2399
 
2400
2400
  function defineTilt(tag = 'usa-tilt') {
2401
2401
  return defineElement(tag, (Base) => class UsaTilt extends Base {
@@ -2464,10 +2464,10 @@ function defineTilt(tag = 'usa-tilt') {
2464
2464
  unmount() {
2465
2465
  this.reset();
2466
2466
  }
2467
- }, { id: 'tilt', text: css$X });
2467
+ }, { id: 'tilt', text: css$V });
2468
2468
  }
2469
2469
 
2470
- var css$W = "";
2470
+ var css$U = "";
2471
2471
 
2472
2472
  function defineSpotlight(tag = 'usa-spotlight') {
2473
2473
  return defineElement(tag, (Base) => class UsaSpotlight extends Base {
@@ -2529,10 +2529,10 @@ function defineSpotlight(tag = 'usa-spotlight') {
2529
2529
  this._frame = 0;
2530
2530
  this.removeAttribute('data-lit');
2531
2531
  }
2532
- }, { id: 'spotlight', text: css$W });
2532
+ }, { id: 'spotlight', text: css$U });
2533
2533
  }
2534
2534
 
2535
- var css$V = "";
2535
+ var css$T = "";
2536
2536
 
2537
2537
  function definePress(tag = 'usa-press') {
2538
2538
  return defineElement(tag, (Base) => class UsaPress extends Base {
@@ -2598,95 +2598,13 @@ function definePress(tag = 'usa-press') {
2598
2598
  this._anim = null;
2599
2599
  this._down = false;
2600
2600
  }
2601
- }, { id: 'press', text: css$V });
2602
- }
2603
-
2604
- var css$U = "";
2605
-
2606
- function defineToggle(tag = 'usa-toggle') {
2607
- return defineElement(tag, (Base) => { var _a; return _a = class UsaToggle extends Base {
2608
- static get observedAttributes() {
2609
- return ['checked', 'disabled', 'label'];
2610
- }
2611
- constructor() {
2612
- super();
2613
- this._internals = null;
2614
- try {
2615
- this._internals = typeof this.attachInternals === 'function' ? this.attachInternals() : null;
2616
- }
2617
- catch {
2618
- this._internals = null;
2619
- }
2620
- }
2621
- get checked() {
2622
- return this.hasAttribute('checked');
2623
- }
2624
- set checked(v) {
2625
- this.toggleAttribute('checked', !!v);
2626
- }
2627
- get disabled() {
2628
- return this.hasAttribute('disabled');
2629
- }
2630
- set disabled(v) {
2631
- this.toggleAttribute('disabled', !!v);
2632
- }
2633
- changed() {
2634
- this.sync();
2635
- }
2636
- sync() {
2637
- this.setAttribute('aria-checked', String(this.checked));
2638
- this.setAttribute('aria-disabled', String(this.disabled));
2639
- this.tabIndex = this.disabled ? -1 : 0;
2640
- const label = this.getAttribute('label');
2641
- if (label && !this.hasAttribute('aria-label'))
2642
- this.setAttribute('aria-label', label);
2643
- this._internals?.setFormValue?.(this.checked ? this.str('value', 'on') : null);
2644
- }
2645
- mount() {
2646
- deprecate('usa-toggle', '<usa-toggle> is deprecated since 6.9 and removed in 7.0 — use <usa-switch> (motionary/components/widgets; npx usa-codemod-7).');
2647
- if (!this.querySelector(':scope > .usa-toggle-track')) {
2648
- const track = document.createElement('span');
2649
- track.className = 'usa-toggle-track';
2650
- track.setAttribute('aria-hidden', 'true');
2651
- const knob = document.createElement('span');
2652
- knob.className = 'usa-toggle-knob';
2653
- track.append(knob);
2654
- this.prepend(track);
2655
- }
2656
- this.setAttribute('role', 'switch');
2657
- this.sync();
2658
- this.listen(this, 'click', () => this.toggle());
2659
- this.listen(this, 'keydown', (e) => {
2660
- if (e.key === ' ' || e.key === 'Enter') {
2661
- e.preventDefault();
2662
- if (!e.repeat)
2663
- this.toggle();
2664
- }
2665
- });
2666
- this.listen(this, 'pointerdown', () => !this.disabled && this.setAttribute('data-pressed', ''));
2667
- for (const t of ['pointerup', 'pointerleave', 'pointercancel'])
2668
- this.listen(this, t, () => this.removeAttribute('data-pressed'));
2669
- }
2670
- toggle(force) {
2671
- if (this.disabled)
2672
- return;
2673
- const next = force === undefined ? !this.checked : force;
2674
- if (next === this.checked)
2675
- return;
2676
- this.checked = next;
2677
- this.sync();
2678
- this.dispatchEvent(new Event('change', { bubbles: true }));
2679
- this.emit('change', { checked: next });
2680
- }
2681
- },
2682
- _a.formAssociated = true,
2683
- _a; }, { id: 'toggle', text: css$U });
2601
+ }, { id: 'press', text: css$T });
2684
2602
  }
2685
2603
 
2686
2604
  /**
2687
2605
  * motionary/components/interaction — micro-interactions.
2688
2606
  * `<usa-ripple>`, `<usa-magnetic>`, `<usa-tilt>`, `<usa-spotlight>`,
2689
- * `<usa-press>`, `<usa-toggle>`.
2607
+ * `<usa-press>`.
2690
2608
  */
2691
2609
  /** Register every component of this category under its default tag. */
2692
2610
  function defineInteractionComponents() {
@@ -2695,10 +2613,9 @@ function defineInteractionComponents() {
2695
2613
  defineTilt();
2696
2614
  defineSpotlight();
2697
2615
  definePress();
2698
- defineToggle();
2699
2616
  }
2700
2617
 
2701
- var css$T = "";
2618
+ var css$S = "";
2702
2619
 
2703
2620
  const SPINNER_VARIANTS = ['fluent', 'windows', 'ring', 'dots', 'pulse', 'bars'];
2704
2621
  function markup(variant) {
@@ -2744,10 +2661,10 @@ function defineSpinner(tag = 'usa-spinner') {
2744
2661
  if (!this.hasAttribute('aria-label') || this.hasAttribute('label'))
2745
2662
  this.setAttribute('aria-label', this.str('label', 'Loading'));
2746
2663
  }
2747
- }, { id: 'spinner', text: css$T });
2664
+ }, { id: 'spinner', text: css$S });
2748
2665
  }
2749
2666
 
2750
- var css$S = "";
2667
+ var css$R = "";
2751
2668
 
2752
2669
  function defineSkeleton(tag = 'usa-skeleton') {
2753
2670
  return defineElement(tag, (Base) => class UsaSkeleton extends Base {
@@ -2827,10 +2744,10 @@ function defineSkeleton(tag = 'usa-skeleton') {
2827
2744
  }
2828
2745
  this.emit('loaded');
2829
2746
  }
2830
- }, { id: 'skeleton', text: css$S });
2747
+ }, { id: 'skeleton', text: css$R });
2831
2748
  }
2832
2749
 
2833
- var css$R = "";
2750
+ var css$Q = "";
2834
2751
 
2835
2752
  function defineProgress(tag = 'usa-progress') {
2836
2753
  return defineElement(tag, (Base) => class UsaProgress extends Base {
@@ -2893,10 +2810,10 @@ function defineProgress(tag = 'usa-progress') {
2893
2810
  if (ratio === 1)
2894
2811
  this.emit('complete');
2895
2812
  }
2896
- }, { id: 'progress', text: css$R });
2813
+ }, { id: 'progress', text: css$Q });
2897
2814
  }
2898
2815
 
2899
- var css$Q = "";
2816
+ var css$P = "";
2900
2817
 
2901
2818
  const ICONS = {
2902
2819
  info: '<path d="M12 8h.01M11 12h1v5h1"/>',
@@ -3012,7 +2929,7 @@ function defineToaster(tag = 'usa-toaster') {
3012
2929
  clear() {
3013
2930
  this.querySelectorAll('.usa-toast').forEach((t) => t._close?.());
3014
2931
  }
3015
- }, { id: 'toast', text: css$Q });
2932
+ }, { id: 'toast', text: css$P });
3016
2933
  }
3017
2934
  /**
3018
2935
  * Show a toast. Defines `<usa-toaster>` and adds one to `<body>` if the
@@ -3033,7 +2950,7 @@ function toast(message, options = {}) {
3033
2950
  return host.show(message, options);
3034
2951
  }
3035
2952
 
3036
- var css$P = "";
2953
+ var css$O = "";
3037
2954
 
3038
2955
  const PATHS = {
3039
2956
  success: 'M15 27 l7 7 l14 -15',
@@ -3110,7 +3027,7 @@ function defineCheck(tag = 'usa-check') {
3110
3027
  done();
3111
3028
  });
3112
3029
  }
3113
- }, { id: 'check', text: css$P });
3030
+ }, { id: 'check', text: css$O });
3114
3031
  }
3115
3032
 
3116
3033
  /**
@@ -3127,7 +3044,7 @@ function defineFeedbackComponents() {
3127
3044
  defineCheck();
3128
3045
  }
3129
3046
 
3130
- var css$O = "";
3047
+ var css$N = "";
3131
3048
 
3132
3049
  function defineAurora(tag = 'usa-aurora') {
3133
3050
  return defineElement(tag, (Base) => class UsaAurora extends Base {
@@ -3155,10 +3072,10 @@ function defineAurora(tag = 'usa-aurora') {
3155
3072
  this.style.setProperty('--usa-aurora-opacity', String(this.num('intensity', 0.7)));
3156
3073
  this.inView((v) => this.toggleAttribute('data-offscreen', !v));
3157
3074
  }
3158
- }, { id: 'aurora', text: css$O });
3075
+ }, { id: 'aurora', text: css$N });
3159
3076
  }
3160
3077
 
3161
- var css$N = "";
3078
+ var css$M = "";
3162
3079
 
3163
3080
  function defineParticles(tag = 'usa-particles') {
3164
3081
  return defineElement(tag, (Base) => class UsaParticles extends Base {
@@ -3317,10 +3234,10 @@ function defineParticles(tag = 'usa-particles') {
3317
3234
  }
3318
3235
  ctx.globalAlpha = 1;
3319
3236
  }
3320
- }, { id: 'particles', text: css$N });
3237
+ }, { id: 'particles', text: css$M });
3321
3238
  }
3322
3239
 
3323
- var css$M = "";
3240
+ var css$L = "";
3324
3241
 
3325
3242
  const noise = (freq) => `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='${freq}' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 1.6 -0.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")`;
3326
3243
  function defineGrain(tag = 'usa-grain') {
@@ -3345,10 +3262,10 @@ function defineGrain(tag = 'usa-grain') {
3345
3262
  s.opacity = String(this.num('opacity', 0.12));
3346
3263
  s.mixBlendMode = this.str('blend', 'overlay');
3347
3264
  }
3348
- }, { id: 'grain', text: css$M });
3265
+ }, { id: 'grain', text: css$L });
3349
3266
  }
3350
3267
 
3351
- var css$L = "";
3268
+ var css$K = "";
3352
3269
 
3353
3270
  function defineMarquee(tag = 'usa-marquee') {
3354
3271
  return defineElement(tag, (Base) => class UsaMarquee extends Base {
@@ -3468,10 +3385,10 @@ function defineMarquee(tag = 'usa-marquee') {
3468
3385
  else
3469
3386
  super.changed(name);
3470
3387
  }
3471
- }, { id: 'marquee', text: css$L });
3388
+ }, { id: 'marquee', text: css$K });
3472
3389
  }
3473
3390
 
3474
- var css$K = "";
3391
+ var css$J = "";
3475
3392
 
3476
3393
  function defineAcrylic(tag = 'usa-acrylic') {
3477
3394
  return defineElement(tag, (Base) => class UsaAcrylic extends Base {
@@ -3492,10 +3409,10 @@ function defineAcrylic(tag = 'usa-acrylic') {
3492
3409
  this.setAttribute('data-shine', '');
3493
3410
  }
3494
3411
  }
3495
- }, { id: 'acrylic', text: css$K });
3412
+ }, { id: 'acrylic', text: css$J });
3496
3413
  }
3497
3414
 
3498
- var css$J = "";
3415
+ var css$I = "";
3499
3416
 
3500
3417
  /** Shared canvas setup: DPR ≤ 2, resize with the host, run only while visible & tab shown. */
3501
3418
  function canvasLoop(host, draw, still) {
@@ -3570,7 +3487,7 @@ function defineGridGlow(tag = 'usa-grid-glow') {
3570
3487
  });
3571
3488
  this.onCleanup(() => caf(f));
3572
3489
  }
3573
- }, { id: 'bg-fx', text: css$J });
3490
+ }, { id: 'bg-fx', text: css$I });
3574
3491
  }
3575
3492
  function defineBlobs(tag = 'usa-blobs') {
3576
3493
  return defineElement(tag, (Base) => class extends Base {
@@ -3585,7 +3502,7 @@ function defineBlobs(tag = 'usa-blobs') {
3585
3502
  this.style.setProperty('--usa-blobs-speed', String(this.num('speed', 1)));
3586
3503
  this.style.setProperty('--usa-blobs-blur', `${this.num('blur', 60)}px`);
3587
3504
  }
3588
- }, { id: 'bg-fx', text: css$J });
3505
+ }, { id: 'bg-fx', text: css$I });
3589
3506
  }
3590
3507
  function defineWaterRipple(tag = 'usa-water-ripple') {
3591
3508
  return defineElement(tag, (Base) => class extends Base {
@@ -3647,7 +3564,7 @@ function defineWaterRipple(tag = 'usa-water-ripple') {
3647
3564
  this.drop(e.clientX - r.left, e.clientY - r.top, 1.5);
3648
3565
  });
3649
3566
  }
3650
- }, { id: 'bg-fx', text: css$J });
3567
+ }, { id: 'bg-fx', text: css$I });
3651
3568
  }
3652
3569
  function defineDotNetwork(tag = 'usa-dot-network') {
3653
3570
  return defineElement(tag, (Base) => class extends Base {
@@ -3690,10 +3607,10 @@ function defineDotNetwork(tag = 'usa-dot-network') {
3690
3607
  }
3691
3608
  }, this.reduced);
3692
3609
  }
3693
- }, { id: 'bg-fx', text: css$J });
3610
+ }, { id: 'bg-fx', text: css$I });
3694
3611
  }
3695
3612
 
3696
- var css$I = "";
3613
+ var css$H = "";
3697
3614
 
3698
3615
  /**
3699
3616
  * Style variants (v2.6): `variant="minimal | neon | glass | brutalist |
@@ -3711,7 +3628,7 @@ var css$I = "";
3711
3628
  const VARIANTS = ['minimal', 'neon', 'glass', 'brutalist', 'fluent', 'material'];
3712
3629
  /** Inject the variant token sheet (done automatically by every `ui` component). */
3713
3630
  function adoptVariants() {
3714
- adoptStyles('variants', css$I);
3631
+ adoptStyles('variants', css$H);
3715
3632
  }
3716
3633
  /** Apply a variant to the whole page (or `root`); `null` removes it. */
3717
3634
  function setVariant(variant, root = typeof document !== 'undefined' ? document.documentElement : null) {
@@ -3724,7 +3641,7 @@ function setVariant(variant, root = typeof document !== 'undefined' ? document.d
3724
3641
  root.removeAttribute('data-usa-variant');
3725
3642
  }
3726
3643
 
3727
- var css$H = "";
3644
+ var css$G = "";
3728
3645
 
3729
3646
  /**
3730
3647
  * Windows 11 **Fluent preset** (v2.8): applies the `fluent` variant
@@ -3739,7 +3656,7 @@ function fluentPreset(options = {}) {
3739
3656
  if (typeof document === 'undefined')
3740
3657
  return () => undefined;
3741
3658
  const root = options.root || document.documentElement;
3742
- adoptStyles('fluent-preset', css$H);
3659
+ adoptStyles('fluent-preset', css$G);
3743
3660
  setVariant('fluent', root);
3744
3661
  root.classList.add('usa-fluent');
3745
3662
  if (options.mica !== false)
@@ -3802,7 +3719,7 @@ function defineBackgroundComponents() {
3802
3719
 
3803
3720
  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)}";
3804
3721
 
3805
- var css$G = "";
3722
+ var css$F = "";
3806
3723
 
3807
3724
  const FROM = {
3808
3725
  modal: 'scale(0.94)',
@@ -3957,10 +3874,10 @@ function defineDialog(tag = 'usa-dialog') {
3957
3874
  const b = this._backdrop ? this.motion(this._backdrop, backdrop, { duration, easing: 'linear', fill }) : null;
3958
3875
  return Promise.all([a?.finished, b?.finished].map((p) => p?.catch(() => undefined))).then(() => undefined);
3959
3876
  }
3960
- }, { id: 'dialog', text: css$G });
3877
+ }, { id: 'dialog', text: css$F });
3961
3878
  }
3962
3879
 
3963
- var css$F = "";
3880
+ var css$E = "";
3964
3881
 
3965
3882
  function defineAccordion(tag = 'usa-accordion') {
3966
3883
  return defineElement(tag, (Base) => class UsaAccordion extends Base {
@@ -4026,10 +3943,10 @@ function defineAccordion(tag = 'usa-accordion') {
4026
3943
  d.removeAttribute('data-closing');
4027
3944
  }
4028
3945
  }
4029
- }, { id: 'accordion', text: css$F });
3946
+ }, { id: 'accordion', text: css$E });
4030
3947
  }
4031
3948
 
4032
- var css$E = "";
3949
+ var css$D = "";
4033
3950
 
4034
3951
  function defineViewSwitch(tag = 'usa-view-switch') {
4035
3952
  return defineElement(tag, (Base) => class UsaViewSwitch extends Base {
@@ -4122,7 +4039,7 @@ function defineViewSwitch(tag = 'usa-view-switch') {
4122
4039
  this.setVisible(from, false);
4123
4040
  a?.cancel();
4124
4041
  }
4125
- }, { id: 'view-switch', text: css$E });
4042
+ }, { id: 'view-switch', text: css$D });
4126
4043
  }
4127
4044
 
4128
4045
  /**
@@ -4434,7 +4351,7 @@ function rubberBand(distance, dimension, constant = 0.55) {
4434
4351
  return sign * (1 - 1 / ((d * constant) / dimension + 1)) * dimension;
4435
4352
  }
4436
4353
 
4437
- var css$D = "";
4354
+ var css$C = "";
4438
4355
 
4439
4356
  const SPRING_EFFECTS = ['bounce-in', 'pop', 'drop', 'jelly', 'rubber-band'];
4440
4357
  /** Entrance effects start hidden; attention effects (jelly, rubber-band) play on visible content. */
@@ -4549,10 +4466,10 @@ function defineSpring(tag = 'usa-spring') {
4549
4466
  this.setAttribute('data-state', 'done');
4550
4467
  this.emit('complete', { effect });
4551
4468
  }
4552
- }, { id: 'spring', text: css$D });
4469
+ }, { id: 'spring', text: css$C });
4553
4470
  }
4554
4471
 
4555
- var css$C = "";
4472
+ var css$B = "";
4556
4473
 
4557
4474
  const parseSnap = (s) => {
4558
4475
  if (!s.trim())
@@ -4749,10 +4666,10 @@ function defineDraggable(tag = 'usa-draggable') {
4749
4666
  reset() {
4750
4667
  this.go(0, 0);
4751
4668
  }
4752
- }, { id: 'draggable', text: css$C });
4669
+ }, { id: 'draggable', text: css$B });
4753
4670
  }
4754
4671
 
4755
- var css$B = "";
4672
+ var css$A = "";
4756
4673
 
4757
4674
  function defineOverscroll(tag = 'usa-overscroll') {
4758
4675
  return defineElement(tag, (Base) => class UsaOverscroll extends Base {
@@ -4841,7 +4758,7 @@ function defineOverscroll(tag = 'usa-overscroll') {
4841
4758
  this._spring?.stop();
4842
4759
  this.set(0);
4843
4760
  }
4844
- }, { id: 'overscroll', text: css$B });
4761
+ }, { id: 'overscroll', text: css$A });
4845
4762
  }
4846
4763
 
4847
4764
  /**
@@ -4858,7 +4775,7 @@ function definePhysicsComponents() {
4858
4775
  defineOverscroll();
4859
4776
  }
4860
4777
 
4861
- var css$A = "";
4778
+ var css$z = "";
4862
4779
 
4863
4780
  const CARD_EFFECTS = ['flip', 'holo', 'glass', 'border-glow', 'conic-border', 'lift', 'spotlight', 'sheen', 'parallax-layers', 'expand'];
4864
4781
  /** Effects that follow the pointer (they share one rAF-throttled tracker). */
@@ -5063,7 +4980,7 @@ function defineCard(tag = 'usa-card') {
5063
4980
  const a = this.motion(this, [{ transformOrigin: '0 0', transform: `translate(${dx}px, ${dy}px) scale(${sx}, ${sy})` }, { transformOrigin: '0 0', transform: 'none' }], { duration: Math.min(duration, 900), easing: easing || EASE_OUT });
5064
4981
  await a?.finished.catch(() => undefined);
5065
4982
  }
5066
- }, { id: 'card', text: css$A });
4983
+ }, { id: 'card', text: css$z });
5067
4984
  }
5068
4985
  function deco(cls) {
5069
4986
  const s = document.createElement('span');
@@ -5077,7 +4994,7 @@ function interactive(t, host) {
5077
4994
  return !!el && el !== host && host.contains(el);
5078
4995
  }
5079
4996
 
5080
- var css$z = "";
4997
+ var css$y = "";
5081
4998
 
5082
4999
  function defineCardStack(tag = 'usa-card-stack') {
5083
5000
  return defineElement(tag, (Base) => class UsaCardStack extends Base {
@@ -5200,10 +5117,10 @@ function defineCardStack(tag = 'usa-card-stack') {
5200
5117
  if (!this.top)
5201
5118
  this.emit('empty');
5202
5119
  }
5203
- }, { id: 'card-stack', text: css$z });
5120
+ }, { id: 'card-stack', text: css$y });
5204
5121
  }
5205
5122
 
5206
- var css$y = "";
5123
+ var css$x = "";
5207
5124
 
5208
5125
  function defineStickyStack(tag = 'usa-sticky-stack') {
5209
5126
  return defineElement(tag, (Base) => class UsaStickyStack extends Base {
@@ -5267,10 +5184,10 @@ function defineStickyStack(tag = 'usa-sticky-stack') {
5267
5184
  c.style.filter = covered > 0.001 ? `brightness(${(1 - Math.min(0.35, covered * 0.12)).toFixed(3)})` : '';
5268
5185
  });
5269
5186
  }
5270
- }, { id: 'sticky-stack', text: css$y });
5187
+ }, { id: 'sticky-stack', text: css$x });
5271
5188
  }
5272
5189
 
5273
- var css$x = "";
5190
+ var css$w = "";
5274
5191
 
5275
5192
  function defineCarousel3d(tag = 'usa-carousel-3d') {
5276
5193
  return defineElement(tag, (Base) => class UsaCarousel3d extends Base {
@@ -5389,7 +5306,7 @@ function defineCarousel3d(tag = 'usa-carousel-3d') {
5389
5306
  prev() {
5390
5307
  this.goTo(this._i - 1);
5391
5308
  }
5392
- }, { id: 'carousel-3d', text: css$x });
5309
+ }, { id: 'carousel-3d', text: css$w });
5393
5310
  }
5394
5311
 
5395
5312
  /**
@@ -5512,7 +5429,7 @@ function haptic(pattern = 10) {
5512
5429
  }
5513
5430
  }
5514
5431
 
5515
- var css$w = "";
5432
+ var css$v = "";
5516
5433
 
5517
5434
  const CLICK_EFFECTS = ['ripple', 'burst', 'confetti', 'squish', 'press-spring', 'shake'];
5518
5435
  function defineClick(tag = 'usa-click') {
@@ -5636,10 +5553,10 @@ function defineClick(tag = 'usa-click') {
5636
5553
  : [{ transform: from }, { transform: 'none' }];
5637
5554
  this._press = this.motion(this, frames, fx.includes('squish') ? { duration: 520, easing: 'ease-out' } : springEasing('bouncy'));
5638
5555
  }
5639
- }, { id: 'click', text: css$w });
5556
+ }, { id: 'click', text: css$v });
5640
5557
  }
5641
5558
 
5642
- var css$v = "";
5559
+ var css$u = "";
5643
5560
 
5644
5561
  const BUTTON_DEFORMS = ['squash', 'wobble', 'gooey', 'dent'];
5645
5562
  let gooInjected = false;
@@ -5906,10 +5823,10 @@ function defineButton(tag = 'usa-button') {
5906
5823
  }
5907
5824
  this.emit('state', { state: s });
5908
5825
  }
5909
- }, { id: 'button', text: css$v });
5826
+ }, { id: 'button', text: css$u });
5910
5827
  }
5911
5828
 
5912
- var css$u = "";
5829
+ var css$t = "";
5913
5830
 
5914
5831
  const C = [[12, 12], [12, 12], [12, 12], [12, 12]];
5915
5832
  /**
@@ -6017,10 +5934,10 @@ function defineIconMorph(tag = 'usa-icon-morph') {
6017
5934
  next() {
6018
5935
  this.show(this._i + 1);
6019
5936
  }
6020
- }, { id: 'icon-morph', text: css$u });
5937
+ }, { id: 'icon-morph', text: css$t });
6021
5938
  }
6022
5939
 
6023
- var css$t = "";
5940
+ var css$s = "";
6024
5941
 
6025
5942
  const HEART = 'M12 21s-7.5-4.6-9.6-9.2C.9 8.4 3 4.5 6.7 4.5c2.1 0 3.6 1.2 5.3 3.2 1.7-2 3.2-3.2 5.3-3.2 3.7 0 5.8 3.9 4.3 7.3C19.5 16.4 12 21 12 21z';
6026
5943
  function defineLike(tag = 'usa-like') {
@@ -6096,10 +6013,10 @@ function defineLike(tag = 'usa-like') {
6096
6013
  this.dispatchEvent(new Event('change', { bubbles: true }));
6097
6014
  this.emit('change', { liked: next, count: this.count });
6098
6015
  }
6099
- }, { id: 'like', text: css$t });
6016
+ }, { id: 'like', text: css$s });
6100
6017
  }
6101
6018
 
6102
- var css$s = "";
6019
+ var css$r = "";
6103
6020
 
6104
6021
  function defineHold(tag = 'usa-hold') {
6105
6022
  return defineElement(tag, (Base) => class UsaHold extends Base {
@@ -6210,10 +6127,10 @@ function defineHold(tag = 'usa-hold') {
6210
6127
  cancel() {
6211
6128
  this.stop();
6212
6129
  }
6213
- }, { id: 'hold', text: css$s });
6130
+ }, { id: 'hold', text: css$r });
6214
6131
  }
6215
6132
 
6216
- var css$r = "";
6133
+ var css$q = "";
6217
6134
 
6218
6135
  function defineDoubleTap(tag = 'usa-double-tap') {
6219
6136
  return defineElement(tag, (Base) => class UsaDoubleTap extends Base {
@@ -6271,10 +6188,10 @@ function defineDoubleTap(tag = 'usa-double-tap') {
6271
6188
  haptic(15);
6272
6189
  this.emit('double-tap', { x: x - r.left, y: y - r.top });
6273
6190
  }
6274
- }, { id: 'double-tap', text: css$r });
6191
+ }, { id: 'double-tap', text: css$q });
6275
6192
  }
6276
6193
 
6277
- var css$q = "";
6194
+ var css$p = "";
6278
6195
 
6279
6196
  function defineCheckbox(tag = 'usa-checkbox') {
6280
6197
  return defineElement(tag, (Base) => {
@@ -6346,7 +6263,7 @@ function defineCheckbox(tag = 'usa-checkbox') {
6346
6263
  }
6347
6264
  UsaCheckbox.formAssociated = true;
6348
6265
  return UsaCheckbox;
6349
- }, { id: 'checkbox', text: css$q });
6266
+ }, { id: 'checkbox', text: css$p });
6350
6267
  }
6351
6268
 
6352
6269
  /**
@@ -6401,7 +6318,7 @@ function place(floating, anchor, placement = 'top', gap = 8) {
6401
6318
  let uid = 0;
6402
6319
  const nextId = (prefix) => `${prefix}-${++uid}`;
6403
6320
 
6404
- var css$p = "";
6321
+ var css$o = "";
6405
6322
 
6406
6323
  function defineTabs(tag = 'usa-tabs') {
6407
6324
  adoptVariants();
@@ -6504,10 +6421,10 @@ function defineTabs(tag = 'usa-tabs') {
6504
6421
  this.motion(p, [{ opacity: 0, transform: `translateX(${i > prev ? 16 : -16}px)` }, { opacity: 1, transform: 'none' }], { duration: 280, easing: 'cubic-bezier(0.22, 1, 0.36, 1)' });
6505
6422
  this.emit('change', { index: i });
6506
6423
  }
6507
- }, { id: 'tabs', text: css$p });
6424
+ }, { id: 'tabs', text: css$o });
6508
6425
  }
6509
6426
 
6510
- var css$o = "";
6427
+ var css$n = "";
6511
6428
 
6512
6429
  /** Shared machinery of `<usa-drawer>` and `<usa-bottom-sheet>`: backdrop, focus, Esc, drag-to-dismiss. */
6513
6430
  function makePanel(Base, kind) {
@@ -6664,7 +6581,7 @@ function makePanel(Base, kind) {
6664
6581
  }
6665
6582
  function defineDrawer(tag = 'usa-drawer') {
6666
6583
  adoptVariants();
6667
- return defineElement(tag, (Base) => makePanel(Base, 'drawer'), { id: 'sheet', text: css$o });
6584
+ return defineElement(tag, (Base) => makePanel(Base, 'drawer'), { id: 'sheet', text: css$n });
6668
6585
  }
6669
6586
  function defineBottomSheet(tag = 'usa-bottom-sheet') {
6670
6587
  adoptVariants();
@@ -6707,10 +6624,10 @@ function defineBottomSheet(tag = 'usa-bottom-sheet') {
6707
6624
  super.render(v);
6708
6625
  }
6709
6626
  };
6710
- }, { id: 'sheet', text: css$o });
6627
+ }, { id: 'sheet', text: css$n });
6711
6628
  }
6712
6629
 
6713
- var css$n = "";
6630
+ var css$m = "";
6714
6631
 
6715
6632
  function definePullRefresh(tag = 'usa-pull-refresh') {
6716
6633
  adoptVariants();
@@ -6809,10 +6726,10 @@ function definePullRefresh(tag = 'usa-pull-refresh') {
6809
6726
  Promise.resolve(fn(ev)).then(done, done);
6810
6727
  });
6811
6728
  }
6812
- }, { id: 'pull-refresh', text: css$n });
6729
+ }, { id: 'pull-refresh', text: css$m });
6813
6730
  }
6814
6731
 
6815
- var css$m = "";
6732
+ var css$l = "";
6816
6733
 
6817
6734
  function defineFab(tag = 'usa-fab') {
6818
6735
  adoptVariants();
@@ -6898,10 +6815,10 @@ function defineFab(tag = 'usa-fab') {
6898
6815
  this.apply(true);
6899
6816
  this.emit('toggle', { open: next });
6900
6817
  }
6901
- }, { id: 'fab', text: css$m });
6818
+ }, { id: 'fab', text: css$l });
6902
6819
  }
6903
6820
 
6904
- var css$l = "";
6821
+ var css$k = "";
6905
6822
 
6906
6823
  function defineNavbar(tag = 'usa-navbar') {
6907
6824
  adoptVariants();
@@ -6954,10 +6871,10 @@ function defineNavbar(tag = 'usa-navbar') {
6954
6871
  this.removeAttribute('data-hidden');
6955
6872
  this.emit('show');
6956
6873
  }
6957
- }, { id: 'navbar', text: css$l });
6874
+ }, { id: 'navbar', text: css$k });
6958
6875
  }
6959
6876
 
6960
- var css$k = "";
6877
+ var css$j = "";
6961
6878
 
6962
6879
  function defineSlider(tag = 'usa-slider') {
6963
6880
  adoptVariants();
@@ -7078,10 +6995,10 @@ function defineSlider(tag = 'usa-slider') {
7078
6995
  }
7079
6996
  UsaSlider.formAssociated = true;
7080
6997
  return UsaSlider;
7081
- }, { id: 'slider', text: css$k });
6998
+ }, { id: 'slider', text: css$j });
7082
6999
  }
7083
7000
 
7084
- var css$j = "";
7001
+ var css$i = "";
7085
7002
 
7086
7003
  function defineRating(tag = 'usa-rating') {
7087
7004
  adoptVariants();
@@ -7166,64 +7083,7 @@ function defineRating(tag = 'usa-rating') {
7166
7083
  }
7167
7084
  UsaRating.formAssociated = true;
7168
7085
  return UsaRating;
7169
- }, { id: 'rating', text: css$j });
7170
- }
7171
-
7172
- var css$i = "";
7173
-
7174
- function defineTooltip(tag = 'usa-tooltip') {
7175
- adoptVariants();
7176
- return defineElement(tag, (Base) => class UsaTooltip extends Base {
7177
- constructor() {
7178
- super(...arguments);
7179
- this._tip = null;
7180
- }
7181
- static get observedAttributes() {
7182
- return ['text'];
7183
- }
7184
- mount() {
7185
- deprecate('usa-tooltip', '<usa-tooltip> is deprecated since 6.9 and removed in 7.0 — use <usa-tip> (motionary/components/widgets; npx usa-codemod-7).');
7186
- const trigger = this.firstElementChild || this;
7187
- const tip = document.createElement('span');
7188
- tip.className = 'usa-tooltip-bubble usa-surface';
7189
- tip.setAttribute('role', 'tooltip');
7190
- tip.id = nextId('usa-tip');
7191
- tip.textContent = this.str('text');
7192
- tip.hidden = true;
7193
- this.append(tip);
7194
- this._tip = tip;
7195
- trigger.setAttribute('aria-describedby', tip.id);
7196
- const later = () => {
7197
- clearTimeout(this._t);
7198
- this._t = setTimeout(() => this.show(), this.num('delay', 300));
7199
- };
7200
- this.listen(this, 'pointerenter', later);
7201
- this.listen(this, 'pointerleave', () => this.hide());
7202
- this.listen(this, 'focusin', () => this.show());
7203
- this.listen(this, 'focusout', () => this.hide());
7204
- this.listen(document, 'keydown', (e) => e.key === 'Escape' && this.hide());
7205
- this.onCleanup(() => {
7206
- clearTimeout(this._t);
7207
- tip.remove();
7208
- trigger.removeAttribute('aria-describedby');
7209
- });
7210
- }
7211
- show() {
7212
- const tip = this._tip;
7213
- if (!tip || !tip.hidden || !this.str('text'))
7214
- return;
7215
- clearTimeout(this._t);
7216
- tip.hidden = false;
7217
- const p = place(tip, this.firstElementChild || this, this.str('placement', 'top'));
7218
- const d = { top: [0, 6], bottom: [0, -6], left: [6, 0], right: [-6, 0] }[p];
7219
- this.motion(tip, this.reduced ? [{ opacity: 0 }, { opacity: 1 }] : [{ opacity: 0, transform: `translate(${d[0]}px, ${d[1]}px) scale(0.85)` }, { opacity: 1, transform: 'none' }], this.reduced ? { duration: 120 } : springEasing('stiff'));
7220
- }
7221
- hide() {
7222
- clearTimeout(this._t);
7223
- if (this._tip)
7224
- this._tip.hidden = true;
7225
- }
7226
- }, { id: 'tooltip', text: css$i });
7086
+ }, { id: 'rating', text: css$i });
7227
7087
  }
7228
7088
 
7229
7089
  var css$h = "";
@@ -7377,7 +7237,7 @@ function defineAvatarStack(tag = 'usa-avatar-stack') {
7377
7237
  * motionary/components/ui — animated UI components + style variants (v2.6).
7378
7238
  * `<usa-tabs>`, `<usa-drawer>`, `<usa-bottom-sheet>`, `<usa-pull-refresh>`,
7379
7239
  * `<usa-fab>`, `<usa-navbar>`, `<usa-slider>`, `<usa-rating>`,
7380
- * `<usa-tooltip>`, `<usa-popover>`, `<usa-badge>`, `<usa-avatar-stack>`,
7240
+ * `<usa-popover>`, `<usa-badge>`, `<usa-avatar-stack>`,
7381
7241
  * and `variant="minimal | neon | glass | brutalist | fluent | material"`
7382
7242
  * design tokens (`setVariant()`, `VARIANTS`).
7383
7243
  */
@@ -7391,7 +7251,6 @@ function defineUiComponents() {
7391
7251
  defineNavbar();
7392
7252
  defineSlider();
7393
7253
  defineRating();
7394
- defineTooltip();
7395
7254
  definePopover();
7396
7255
  defineBadge();
7397
7256
  defineAvatarStack();
@@ -10983,8 +10842,6 @@ exports.defineTilt = defineTilt;
10983
10842
  exports.defineTimeline = defineTimeline;
10984
10843
  exports.defineTimelineComponents = defineTimelineComponents;
10985
10844
  exports.defineToaster = defineToaster;
10986
- exports.defineToggle = defineToggle;
10987
- exports.defineTooltip = defineTooltip;
10988
10845
  exports.defineTransitionComponents = defineTransitionComponents;
10989
10846
  exports.defineTypewriter = defineTypewriter;
10990
10847
  exports.defineUiComponents = defineUiComponents;