motionary 6.8.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 (174) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/README.md +2 -2
  3. package/README_ja.md +2 -2
  4. package/README_zh.md +2 -2
  5. package/bin/usa-codemod-7.mjs +91 -0
  6. package/dist/chunks/{gpu-CsP2ZB3x.js → gpu-Bkw605Ds.js} +183 -5
  7. package/dist/chunks/gpu-Bkw605Ds.js.map +1 -0
  8. package/dist/chunks/{gpu-BBRLgEzM.cjs → gpu-Dx0H875w.cjs} +187 -4
  9. package/dist/chunks/gpu-Dx0H875w.cjs.map +1 -0
  10. package/dist/chunks/{index-tags-wv0R_vkO.cjs → index-tags-BTMwrfgV.cjs} +3 -3
  11. package/dist/chunks/index-tags-BTMwrfgV.cjs.map +1 -0
  12. package/dist/chunks/{index-tags-DucKMQr_.js → index-tags-C04JP8g4.js} +3 -3
  13. package/dist/chunks/index-tags-C04JP8g4.js.map +1 -0
  14. package/dist/chunks/player-C-TwEEy6.js +516 -0
  15. package/dist/chunks/player-C-TwEEy6.js.map +1 -0
  16. package/dist/chunks/player-PS6_FzNw.cjs +525 -0
  17. package/dist/chunks/player-PS6_FzNw.cjs.map +1 -0
  18. package/dist/components/a11y.cjs +1 -1
  19. package/dist/components/a11y.d.cts +2 -2
  20. package/dist/components/a11y.d.ts +2 -2
  21. package/dist/components/a11y.js +1 -1
  22. package/dist/components/angular.cjs +2 -2
  23. package/dist/components/angular.cjs.map +1 -1
  24. package/dist/components/angular.d.cts +5 -36
  25. package/dist/components/angular.d.ts +5 -36
  26. package/dist/components/angular.js +2 -2
  27. package/dist/components/angular.js.map +1 -1
  28. package/dist/components/effects.cjs +13 -522
  29. package/dist/components/effects.cjs.map +1 -1
  30. package/dist/components/effects.js +5 -513
  31. package/dist/components/effects.js.map +1 -1
  32. package/dist/components/fx-3d.cjs +2 -2
  33. package/dist/components/fx-3d.cjs.map +1 -1
  34. package/dist/components/fx-3d.d.cts +2 -2
  35. package/dist/components/fx-3d.d.ts +2 -2
  36. package/dist/components/fx-3d.js +2 -2
  37. package/dist/components/fx-3d.js.map +1 -1
  38. package/dist/components/fx-focus.cjs +125 -0
  39. package/dist/components/fx-focus.cjs.map +1 -0
  40. package/dist/components/fx-focus.d.cts +65 -0
  41. package/dist/components/fx-focus.d.ts +65 -0
  42. package/dist/components/fx-focus.js +122 -0
  43. package/dist/components/fx-focus.js.map +1 -0
  44. package/dist/components/fx-gpu.cjs +2 -2
  45. package/dist/components/fx-gpu.d.cts +2 -2
  46. package/dist/components/fx-gpu.d.ts +2 -2
  47. package/dist/components/fx-gpu.js +1 -1
  48. package/dist/components/fx-light.cjs +2 -2
  49. package/dist/components/fx-light.cjs.map +1 -1
  50. package/dist/components/fx-light.d.cts +2 -2
  51. package/dist/components/fx-light.d.ts +2 -2
  52. package/dist/components/fx-light.js +2 -2
  53. package/dist/components/fx-light.js.map +1 -1
  54. package/dist/components/fx-morph.cjs +2 -2
  55. package/dist/components/fx-morph.cjs.map +1 -1
  56. package/dist/components/fx-morph.d.cts +2 -2
  57. package/dist/components/fx-morph.d.ts +2 -2
  58. package/dist/components/fx-morph.js +2 -2
  59. package/dist/components/fx-morph.js.map +1 -1
  60. package/dist/components/fx-physics.cjs +2 -2
  61. package/dist/components/fx-physics.cjs.map +1 -1
  62. package/dist/components/fx-physics.d.cts +2 -2
  63. package/dist/components/fx-physics.d.ts +2 -2
  64. package/dist/components/fx-physics.js +2 -2
  65. package/dist/components/fx-physics.js.map +1 -1
  66. package/dist/components/fx-text.cjs +2 -2
  67. package/dist/components/fx-text.cjs.map +1 -1
  68. package/dist/components/fx-text.d.cts +2 -2
  69. package/dist/components/fx-text.d.ts +2 -2
  70. package/dist/components/fx-text.js +2 -2
  71. package/dist/components/fx-text.js.map +1 -1
  72. package/dist/components/fx-transitions.cjs +2 -2
  73. package/dist/components/fx-transitions.cjs.map +1 -1
  74. package/dist/components/fx-transitions.d.cts +2 -2
  75. package/dist/components/fx-transitions.d.ts +2 -2
  76. package/dist/components/fx-transitions.js +2 -2
  77. package/dist/components/fx-transitions.js.map +1 -1
  78. package/dist/components/fx-weather.cjs +2 -2
  79. package/dist/components/fx-weather.cjs.map +1 -1
  80. package/dist/components/fx-weather.d.cts +2 -2
  81. package/dist/components/fx-weather.d.ts +2 -2
  82. package/dist/components/fx-weather.js +2 -2
  83. package/dist/components/fx-weather.js.map +1 -1
  84. package/dist/components/fx2.cjs +37 -22
  85. package/dist/components/fx2.cjs.map +1 -1
  86. package/dist/components/fx2.d.cts +135 -14
  87. package/dist/components/fx2.d.ts +135 -14
  88. package/dist/components/fx2.js +25 -21
  89. package/dist/components/fx2.js.map +1 -1
  90. package/dist/components/interaction.cjs +11 -94
  91. package/dist/components/interaction.cjs.map +1 -1
  92. package/dist/components/interaction.css +0 -1
  93. package/dist/components/interaction.d.cts +3 -21
  94. package/dist/components/interaction.d.ts +3 -21
  95. package/dist/components/interaction.js +12 -94
  96. package/dist/components/interaction.js.map +1 -1
  97. package/dist/components/jsx.d.cts +2 -2
  98. package/dist/components/jsx.d.ts +2 -2
  99. package/dist/components/lazy.cjs +1 -1
  100. package/dist/components/lazy.d.cts +2 -2
  101. package/dist/components/lazy.d.ts +2 -2
  102. package/dist/components/lazy.js +1 -1
  103. package/dist/components/lite.cjs +115 -256
  104. package/dist/components/lite.cjs.map +1 -1
  105. package/dist/components/lite.js +116 -255
  106. package/dist/components/lite.js.map +1 -1
  107. package/dist/components/marketplace.cjs +82 -0
  108. package/dist/components/marketplace.cjs.map +1 -0
  109. package/dist/components/marketplace.d.cts +108 -0
  110. package/dist/components/marketplace.d.ts +108 -0
  111. package/dist/components/marketplace.js +77 -0
  112. package/dist/components/marketplace.js.map +1 -0
  113. package/dist/components/perf.cjs +1 -1
  114. package/dist/components/perf.d.cts +2 -2
  115. package/dist/components/perf.d.ts +2 -2
  116. package/dist/components/perf.js +1 -1
  117. package/dist/components/react.cjs +2 -2
  118. package/dist/components/react.cjs.map +1 -1
  119. package/dist/components/react.js +2 -2
  120. package/dist/components/react.js.map +1 -1
  121. package/dist/components/solid.cjs +2 -2
  122. package/dist/components/solid.cjs.map +1 -1
  123. package/dist/components/solid.d.cts +4 -35
  124. package/dist/components/solid.d.ts +4 -35
  125. package/dist/components/solid.js +2 -2
  126. package/dist/components/solid.js.map +1 -1
  127. package/dist/components/svelte.cjs +2 -2
  128. package/dist/components/svelte.cjs.map +1 -1
  129. package/dist/components/svelte.d.cts +5 -36
  130. package/dist/components/svelte.d.ts +5 -36
  131. package/dist/components/svelte.js +2 -2
  132. package/dist/components/svelte.js.map +1 -1
  133. package/dist/components/ui.cjs +16 -74
  134. package/dist/components/ui.cjs.map +1 -1
  135. package/dist/components/ui.css +0 -1
  136. package/dist/components/ui.d.cts +3 -18
  137. package/dist/components/ui.d.ts +3 -18
  138. package/dist/components/ui.js +17 -74
  139. package/dist/components/ui.js.map +1 -1
  140. package/dist/components/vue.cjs +2 -2
  141. package/dist/components/vue.cjs.map +1 -1
  142. package/dist/components/vue.d.cts +5 -36
  143. package/dist/components/vue.d.ts +5 -36
  144. package/dist/components/vue.js +2 -2
  145. package/dist/components/vue.js.map +1 -1
  146. package/dist/components/widgets.cjs +622 -53
  147. package/dist/components/widgets.cjs.map +1 -1
  148. package/dist/components/widgets.d.cts +106 -2
  149. package/dist/components/widgets.d.ts +106 -2
  150. package/dist/components/widgets.js +615 -54
  151. package/dist/components/widgets.js.map +1 -1
  152. package/dist/components.cjs +1 -3
  153. package/dist/components.cjs.map +1 -1
  154. package/dist/components.css +0 -2
  155. package/dist/components.d.cts +6 -39
  156. package/dist/components.d.ts +6 -39
  157. package/dist/components.js +3 -3
  158. package/dist/components.umd.js +2 -2
  159. package/dist/components.umd.js.map +1 -1
  160. package/dist/widgets.umd.js +1 -1
  161. package/dist/widgets.umd.js.map +1 -1
  162. package/docs/ROADMAP.md +12 -12
  163. package/docs/accessibility.md +2 -2
  164. package/docs/components.md +41 -2
  165. package/docs/deprecations.md +4 -0
  166. package/docs/frameworks-ssr.md +4 -4
  167. package/docs/hybrid-apps.md +2 -2
  168. package/docs/upgrading-7.md +43 -0
  169. package/docs/windows-apps.md +1 -1
  170. package/package.json +133 -2
  171. package/dist/chunks/gpu-BBRLgEzM.cjs.map +0 -1
  172. package/dist/chunks/gpu-CsP2ZB3x.js.map +0 -1
  173. package/dist/chunks/index-tags-DucKMQr_.js.map +0 -1
  174. 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,94 +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
- if (!this.querySelector(':scope > .usa-toggle-track')) {
2647
- const track = document.createElement('span');
2648
- track.className = 'usa-toggle-track';
2649
- track.setAttribute('aria-hidden', 'true');
2650
- const knob = document.createElement('span');
2651
- knob.className = 'usa-toggle-knob';
2652
- track.append(knob);
2653
- this.prepend(track);
2654
- }
2655
- this.setAttribute('role', 'switch');
2656
- this.sync();
2657
- this.listen(this, 'click', () => this.toggle());
2658
- this.listen(this, 'keydown', (e) => {
2659
- if (e.key === ' ' || e.key === 'Enter') {
2660
- e.preventDefault();
2661
- if (!e.repeat)
2662
- this.toggle();
2663
- }
2664
- });
2665
- this.listen(this, 'pointerdown', () => !this.disabled && this.setAttribute('data-pressed', ''));
2666
- for (const t of ['pointerup', 'pointerleave', 'pointercancel'])
2667
- this.listen(this, t, () => this.removeAttribute('data-pressed'));
2668
- }
2669
- toggle(force) {
2670
- if (this.disabled)
2671
- return;
2672
- const next = force === undefined ? !this.checked : force;
2673
- if (next === this.checked)
2674
- return;
2675
- this.checked = next;
2676
- this.sync();
2677
- this.dispatchEvent(new Event('change', { bubbles: true }));
2678
- this.emit('change', { checked: next });
2679
- }
2680
- },
2681
- _a.formAssociated = true,
2682
- _a; }, { id: 'toggle', text: css$U });
2601
+ }, { id: 'press', text: css$T });
2683
2602
  }
2684
2603
 
2685
2604
  /**
2686
2605
  * motionary/components/interaction — micro-interactions.
2687
2606
  * `<usa-ripple>`, `<usa-magnetic>`, `<usa-tilt>`, `<usa-spotlight>`,
2688
- * `<usa-press>`, `<usa-toggle>`.
2607
+ * `<usa-press>`.
2689
2608
  */
2690
2609
  /** Register every component of this category under its default tag. */
2691
2610
  function defineInteractionComponents() {
@@ -2694,10 +2613,9 @@ function defineInteractionComponents() {
2694
2613
  defineTilt();
2695
2614
  defineSpotlight();
2696
2615
  definePress();
2697
- defineToggle();
2698
2616
  }
2699
2617
 
2700
- var css$T = "";
2618
+ var css$S = "";
2701
2619
 
2702
2620
  const SPINNER_VARIANTS = ['fluent', 'windows', 'ring', 'dots', 'pulse', 'bars'];
2703
2621
  function markup(variant) {
@@ -2743,10 +2661,10 @@ function defineSpinner(tag = 'usa-spinner') {
2743
2661
  if (!this.hasAttribute('aria-label') || this.hasAttribute('label'))
2744
2662
  this.setAttribute('aria-label', this.str('label', 'Loading'));
2745
2663
  }
2746
- }, { id: 'spinner', text: css$T });
2664
+ }, { id: 'spinner', text: css$S });
2747
2665
  }
2748
2666
 
2749
- var css$S = "";
2667
+ var css$R = "";
2750
2668
 
2751
2669
  function defineSkeleton(tag = 'usa-skeleton') {
2752
2670
  return defineElement(tag, (Base) => class UsaSkeleton extends Base {
@@ -2826,10 +2744,10 @@ function defineSkeleton(tag = 'usa-skeleton') {
2826
2744
  }
2827
2745
  this.emit('loaded');
2828
2746
  }
2829
- }, { id: 'skeleton', text: css$S });
2747
+ }, { id: 'skeleton', text: css$R });
2830
2748
  }
2831
2749
 
2832
- var css$R = "";
2750
+ var css$Q = "";
2833
2751
 
2834
2752
  function defineProgress(tag = 'usa-progress') {
2835
2753
  return defineElement(tag, (Base) => class UsaProgress extends Base {
@@ -2892,10 +2810,10 @@ function defineProgress(tag = 'usa-progress') {
2892
2810
  if (ratio === 1)
2893
2811
  this.emit('complete');
2894
2812
  }
2895
- }, { id: 'progress', text: css$R });
2813
+ }, { id: 'progress', text: css$Q });
2896
2814
  }
2897
2815
 
2898
- var css$Q = "";
2816
+ var css$P = "";
2899
2817
 
2900
2818
  const ICONS = {
2901
2819
  info: '<path d="M12 8h.01M11 12h1v5h1"/>',
@@ -3011,7 +2929,7 @@ function defineToaster(tag = 'usa-toaster') {
3011
2929
  clear() {
3012
2930
  this.querySelectorAll('.usa-toast').forEach((t) => t._close?.());
3013
2931
  }
3014
- }, { id: 'toast', text: css$Q });
2932
+ }, { id: 'toast', text: css$P });
3015
2933
  }
3016
2934
  /**
3017
2935
  * Show a toast. Defines `<usa-toaster>` and adds one to `<body>` if the
@@ -3032,7 +2950,7 @@ function toast(message, options = {}) {
3032
2950
  return host.show(message, options);
3033
2951
  }
3034
2952
 
3035
- var css$P = "";
2953
+ var css$O = "";
3036
2954
 
3037
2955
  const PATHS = {
3038
2956
  success: 'M15 27 l7 7 l14 -15',
@@ -3109,7 +3027,7 @@ function defineCheck(tag = 'usa-check') {
3109
3027
  done();
3110
3028
  });
3111
3029
  }
3112
- }, { id: 'check', text: css$P });
3030
+ }, { id: 'check', text: css$O });
3113
3031
  }
3114
3032
 
3115
3033
  /**
@@ -3126,7 +3044,7 @@ function defineFeedbackComponents() {
3126
3044
  defineCheck();
3127
3045
  }
3128
3046
 
3129
- var css$O = "";
3047
+ var css$N = "";
3130
3048
 
3131
3049
  function defineAurora(tag = 'usa-aurora') {
3132
3050
  return defineElement(tag, (Base) => class UsaAurora extends Base {
@@ -3154,10 +3072,10 @@ function defineAurora(tag = 'usa-aurora') {
3154
3072
  this.style.setProperty('--usa-aurora-opacity', String(this.num('intensity', 0.7)));
3155
3073
  this.inView((v) => this.toggleAttribute('data-offscreen', !v));
3156
3074
  }
3157
- }, { id: 'aurora', text: css$O });
3075
+ }, { id: 'aurora', text: css$N });
3158
3076
  }
3159
3077
 
3160
- var css$N = "";
3078
+ var css$M = "";
3161
3079
 
3162
3080
  function defineParticles(tag = 'usa-particles') {
3163
3081
  return defineElement(tag, (Base) => class UsaParticles extends Base {
@@ -3316,10 +3234,10 @@ function defineParticles(tag = 'usa-particles') {
3316
3234
  }
3317
3235
  ctx.globalAlpha = 1;
3318
3236
  }
3319
- }, { id: 'particles', text: css$N });
3237
+ }, { id: 'particles', text: css$M });
3320
3238
  }
3321
3239
 
3322
- var css$M = "";
3240
+ var css$L = "";
3323
3241
 
3324
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")`;
3325
3243
  function defineGrain(tag = 'usa-grain') {
@@ -3344,10 +3262,10 @@ function defineGrain(tag = 'usa-grain') {
3344
3262
  s.opacity = String(this.num('opacity', 0.12));
3345
3263
  s.mixBlendMode = this.str('blend', 'overlay');
3346
3264
  }
3347
- }, { id: 'grain', text: css$M });
3265
+ }, { id: 'grain', text: css$L });
3348
3266
  }
3349
3267
 
3350
- var css$L = "";
3268
+ var css$K = "";
3351
3269
 
3352
3270
  function defineMarquee(tag = 'usa-marquee') {
3353
3271
  return defineElement(tag, (Base) => class UsaMarquee extends Base {
@@ -3467,10 +3385,10 @@ function defineMarquee(tag = 'usa-marquee') {
3467
3385
  else
3468
3386
  super.changed(name);
3469
3387
  }
3470
- }, { id: 'marquee', text: css$L });
3388
+ }, { id: 'marquee', text: css$K });
3471
3389
  }
3472
3390
 
3473
- var css$K = "";
3391
+ var css$J = "";
3474
3392
 
3475
3393
  function defineAcrylic(tag = 'usa-acrylic') {
3476
3394
  return defineElement(tag, (Base) => class UsaAcrylic extends Base {
@@ -3491,10 +3409,10 @@ function defineAcrylic(tag = 'usa-acrylic') {
3491
3409
  this.setAttribute('data-shine', '');
3492
3410
  }
3493
3411
  }
3494
- }, { id: 'acrylic', text: css$K });
3412
+ }, { id: 'acrylic', text: css$J });
3495
3413
  }
3496
3414
 
3497
- var css$J = "";
3415
+ var css$I = "";
3498
3416
 
3499
3417
  /** Shared canvas setup: DPR ≤ 2, resize with the host, run only while visible & tab shown. */
3500
3418
  function canvasLoop(host, draw, still) {
@@ -3569,7 +3487,7 @@ function defineGridGlow(tag = 'usa-grid-glow') {
3569
3487
  });
3570
3488
  this.onCleanup(() => caf(f));
3571
3489
  }
3572
- }, { id: 'bg-fx', text: css$J });
3490
+ }, { id: 'bg-fx', text: css$I });
3573
3491
  }
3574
3492
  function defineBlobs(tag = 'usa-blobs') {
3575
3493
  return defineElement(tag, (Base) => class extends Base {
@@ -3584,7 +3502,7 @@ function defineBlobs(tag = 'usa-blobs') {
3584
3502
  this.style.setProperty('--usa-blobs-speed', String(this.num('speed', 1)));
3585
3503
  this.style.setProperty('--usa-blobs-blur', `${this.num('blur', 60)}px`);
3586
3504
  }
3587
- }, { id: 'bg-fx', text: css$J });
3505
+ }, { id: 'bg-fx', text: css$I });
3588
3506
  }
3589
3507
  function defineWaterRipple(tag = 'usa-water-ripple') {
3590
3508
  return defineElement(tag, (Base) => class extends Base {
@@ -3646,7 +3564,7 @@ function defineWaterRipple(tag = 'usa-water-ripple') {
3646
3564
  this.drop(e.clientX - r.left, e.clientY - r.top, 1.5);
3647
3565
  });
3648
3566
  }
3649
- }, { id: 'bg-fx', text: css$J });
3567
+ }, { id: 'bg-fx', text: css$I });
3650
3568
  }
3651
3569
  function defineDotNetwork(tag = 'usa-dot-network') {
3652
3570
  return defineElement(tag, (Base) => class extends Base {
@@ -3689,10 +3607,10 @@ function defineDotNetwork(tag = 'usa-dot-network') {
3689
3607
  }
3690
3608
  }, this.reduced);
3691
3609
  }
3692
- }, { id: 'bg-fx', text: css$J });
3610
+ }, { id: 'bg-fx', text: css$I });
3693
3611
  }
3694
3612
 
3695
- var css$I = "";
3613
+ var css$H = "";
3696
3614
 
3697
3615
  /**
3698
3616
  * Style variants (v2.6): `variant="minimal | neon | glass | brutalist |
@@ -3710,7 +3628,7 @@ var css$I = "";
3710
3628
  const VARIANTS = ['minimal', 'neon', 'glass', 'brutalist', 'fluent', 'material'];
3711
3629
  /** Inject the variant token sheet (done automatically by every `ui` component). */
3712
3630
  function adoptVariants() {
3713
- adoptStyles('variants', css$I);
3631
+ adoptStyles('variants', css$H);
3714
3632
  }
3715
3633
  /** Apply a variant to the whole page (or `root`); `null` removes it. */
3716
3634
  function setVariant(variant, root = typeof document !== 'undefined' ? document.documentElement : null) {
@@ -3723,7 +3641,7 @@ function setVariant(variant, root = typeof document !== 'undefined' ? document.d
3723
3641
  root.removeAttribute('data-usa-variant');
3724
3642
  }
3725
3643
 
3726
- var css$H = "";
3644
+ var css$G = "";
3727
3645
 
3728
3646
  /**
3729
3647
  * Windows 11 **Fluent preset** (v2.8): applies the `fluent` variant
@@ -3738,7 +3656,7 @@ function fluentPreset(options = {}) {
3738
3656
  if (typeof document === 'undefined')
3739
3657
  return () => undefined;
3740
3658
  const root = options.root || document.documentElement;
3741
- adoptStyles('fluent-preset', css$H);
3659
+ adoptStyles('fluent-preset', css$G);
3742
3660
  setVariant('fluent', root);
3743
3661
  root.classList.add('usa-fluent');
3744
3662
  if (options.mica !== false)
@@ -3801,7 +3719,7 @@ function defineBackgroundComponents() {
3801
3719
 
3802
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)}";
3803
3721
 
3804
- var css$G = "";
3722
+ var css$F = "";
3805
3723
 
3806
3724
  const FROM = {
3807
3725
  modal: 'scale(0.94)',
@@ -3956,10 +3874,10 @@ function defineDialog(tag = 'usa-dialog') {
3956
3874
  const b = this._backdrop ? this.motion(this._backdrop, backdrop, { duration, easing: 'linear', fill }) : null;
3957
3875
  return Promise.all([a?.finished, b?.finished].map((p) => p?.catch(() => undefined))).then(() => undefined);
3958
3876
  }
3959
- }, { id: 'dialog', text: css$G });
3877
+ }, { id: 'dialog', text: css$F });
3960
3878
  }
3961
3879
 
3962
- var css$F = "";
3880
+ var css$E = "";
3963
3881
 
3964
3882
  function defineAccordion(tag = 'usa-accordion') {
3965
3883
  return defineElement(tag, (Base) => class UsaAccordion extends Base {
@@ -4025,10 +3943,10 @@ function defineAccordion(tag = 'usa-accordion') {
4025
3943
  d.removeAttribute('data-closing');
4026
3944
  }
4027
3945
  }
4028
- }, { id: 'accordion', text: css$F });
3946
+ }, { id: 'accordion', text: css$E });
4029
3947
  }
4030
3948
 
4031
- var css$E = "";
3949
+ var css$D = "";
4032
3950
 
4033
3951
  function defineViewSwitch(tag = 'usa-view-switch') {
4034
3952
  return defineElement(tag, (Base) => class UsaViewSwitch extends Base {
@@ -4121,7 +4039,7 @@ function defineViewSwitch(tag = 'usa-view-switch') {
4121
4039
  this.setVisible(from, false);
4122
4040
  a?.cancel();
4123
4041
  }
4124
- }, { id: 'view-switch', text: css$E });
4042
+ }, { id: 'view-switch', text: css$D });
4125
4043
  }
4126
4044
 
4127
4045
  /**
@@ -4433,7 +4351,7 @@ function rubberBand(distance, dimension, constant = 0.55) {
4433
4351
  return sign * (1 - 1 / ((d * constant) / dimension + 1)) * dimension;
4434
4352
  }
4435
4353
 
4436
- var css$D = "";
4354
+ var css$C = "";
4437
4355
 
4438
4356
  const SPRING_EFFECTS = ['bounce-in', 'pop', 'drop', 'jelly', 'rubber-band'];
4439
4357
  /** Entrance effects start hidden; attention effects (jelly, rubber-band) play on visible content. */
@@ -4548,10 +4466,10 @@ function defineSpring(tag = 'usa-spring') {
4548
4466
  this.setAttribute('data-state', 'done');
4549
4467
  this.emit('complete', { effect });
4550
4468
  }
4551
- }, { id: 'spring', text: css$D });
4469
+ }, { id: 'spring', text: css$C });
4552
4470
  }
4553
4471
 
4554
- var css$C = "";
4472
+ var css$B = "";
4555
4473
 
4556
4474
  const parseSnap = (s) => {
4557
4475
  if (!s.trim())
@@ -4748,10 +4666,10 @@ function defineDraggable(tag = 'usa-draggable') {
4748
4666
  reset() {
4749
4667
  this.go(0, 0);
4750
4668
  }
4751
- }, { id: 'draggable', text: css$C });
4669
+ }, { id: 'draggable', text: css$B });
4752
4670
  }
4753
4671
 
4754
- var css$B = "";
4672
+ var css$A = "";
4755
4673
 
4756
4674
  function defineOverscroll(tag = 'usa-overscroll') {
4757
4675
  return defineElement(tag, (Base) => class UsaOverscroll extends Base {
@@ -4840,7 +4758,7 @@ function defineOverscroll(tag = 'usa-overscroll') {
4840
4758
  this._spring?.stop();
4841
4759
  this.set(0);
4842
4760
  }
4843
- }, { id: 'overscroll', text: css$B });
4761
+ }, { id: 'overscroll', text: css$A });
4844
4762
  }
4845
4763
 
4846
4764
  /**
@@ -4857,7 +4775,7 @@ function definePhysicsComponents() {
4857
4775
  defineOverscroll();
4858
4776
  }
4859
4777
 
4860
- var css$A = "";
4778
+ var css$z = "";
4861
4779
 
4862
4780
  const CARD_EFFECTS = ['flip', 'holo', 'glass', 'border-glow', 'conic-border', 'lift', 'spotlight', 'sheen', 'parallax-layers', 'expand'];
4863
4781
  /** Effects that follow the pointer (they share one rAF-throttled tracker). */
@@ -5062,7 +4980,7 @@ function defineCard(tag = 'usa-card') {
5062
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 });
5063
4981
  await a?.finished.catch(() => undefined);
5064
4982
  }
5065
- }, { id: 'card', text: css$A });
4983
+ }, { id: 'card', text: css$z });
5066
4984
  }
5067
4985
  function deco(cls) {
5068
4986
  const s = document.createElement('span');
@@ -5076,7 +4994,7 @@ function interactive(t, host) {
5076
4994
  return !!el && el !== host && host.contains(el);
5077
4995
  }
5078
4996
 
5079
- var css$z = "";
4997
+ var css$y = "";
5080
4998
 
5081
4999
  function defineCardStack(tag = 'usa-card-stack') {
5082
5000
  return defineElement(tag, (Base) => class UsaCardStack extends Base {
@@ -5199,10 +5117,10 @@ function defineCardStack(tag = 'usa-card-stack') {
5199
5117
  if (!this.top)
5200
5118
  this.emit('empty');
5201
5119
  }
5202
- }, { id: 'card-stack', text: css$z });
5120
+ }, { id: 'card-stack', text: css$y });
5203
5121
  }
5204
5122
 
5205
- var css$y = "";
5123
+ var css$x = "";
5206
5124
 
5207
5125
  function defineStickyStack(tag = 'usa-sticky-stack') {
5208
5126
  return defineElement(tag, (Base) => class UsaStickyStack extends Base {
@@ -5266,10 +5184,10 @@ function defineStickyStack(tag = 'usa-sticky-stack') {
5266
5184
  c.style.filter = covered > 0.001 ? `brightness(${(1 - Math.min(0.35, covered * 0.12)).toFixed(3)})` : '';
5267
5185
  });
5268
5186
  }
5269
- }, { id: 'sticky-stack', text: css$y });
5187
+ }, { id: 'sticky-stack', text: css$x });
5270
5188
  }
5271
5189
 
5272
- var css$x = "";
5190
+ var css$w = "";
5273
5191
 
5274
5192
  function defineCarousel3d(tag = 'usa-carousel-3d') {
5275
5193
  return defineElement(tag, (Base) => class UsaCarousel3d extends Base {
@@ -5388,7 +5306,7 @@ function defineCarousel3d(tag = 'usa-carousel-3d') {
5388
5306
  prev() {
5389
5307
  this.goTo(this._i - 1);
5390
5308
  }
5391
- }, { id: 'carousel-3d', text: css$x });
5309
+ }, { id: 'carousel-3d', text: css$w });
5392
5310
  }
5393
5311
 
5394
5312
  /**
@@ -5511,7 +5429,7 @@ function haptic(pattern = 10) {
5511
5429
  }
5512
5430
  }
5513
5431
 
5514
- var css$w = "";
5432
+ var css$v = "";
5515
5433
 
5516
5434
  const CLICK_EFFECTS = ['ripple', 'burst', 'confetti', 'squish', 'press-spring', 'shake'];
5517
5435
  function defineClick(tag = 'usa-click') {
@@ -5635,10 +5553,10 @@ function defineClick(tag = 'usa-click') {
5635
5553
  : [{ transform: from }, { transform: 'none' }];
5636
5554
  this._press = this.motion(this, frames, fx.includes('squish') ? { duration: 520, easing: 'ease-out' } : springEasing('bouncy'));
5637
5555
  }
5638
- }, { id: 'click', text: css$w });
5556
+ }, { id: 'click', text: css$v });
5639
5557
  }
5640
5558
 
5641
- var css$v = "";
5559
+ var css$u = "";
5642
5560
 
5643
5561
  const BUTTON_DEFORMS = ['squash', 'wobble', 'gooey', 'dent'];
5644
5562
  let gooInjected = false;
@@ -5905,10 +5823,10 @@ function defineButton(tag = 'usa-button') {
5905
5823
  }
5906
5824
  this.emit('state', { state: s });
5907
5825
  }
5908
- }, { id: 'button', text: css$v });
5826
+ }, { id: 'button', text: css$u });
5909
5827
  }
5910
5828
 
5911
- var css$u = "";
5829
+ var css$t = "";
5912
5830
 
5913
5831
  const C = [[12, 12], [12, 12], [12, 12], [12, 12]];
5914
5832
  /**
@@ -6016,10 +5934,10 @@ function defineIconMorph(tag = 'usa-icon-morph') {
6016
5934
  next() {
6017
5935
  this.show(this._i + 1);
6018
5936
  }
6019
- }, { id: 'icon-morph', text: css$u });
5937
+ }, { id: 'icon-morph', text: css$t });
6020
5938
  }
6021
5939
 
6022
- var css$t = "";
5940
+ var css$s = "";
6023
5941
 
6024
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';
6025
5943
  function defineLike(tag = 'usa-like') {
@@ -6095,10 +6013,10 @@ function defineLike(tag = 'usa-like') {
6095
6013
  this.dispatchEvent(new Event('change', { bubbles: true }));
6096
6014
  this.emit('change', { liked: next, count: this.count });
6097
6015
  }
6098
- }, { id: 'like', text: css$t });
6016
+ }, { id: 'like', text: css$s });
6099
6017
  }
6100
6018
 
6101
- var css$s = "";
6019
+ var css$r = "";
6102
6020
 
6103
6021
  function defineHold(tag = 'usa-hold') {
6104
6022
  return defineElement(tag, (Base) => class UsaHold extends Base {
@@ -6209,10 +6127,10 @@ function defineHold(tag = 'usa-hold') {
6209
6127
  cancel() {
6210
6128
  this.stop();
6211
6129
  }
6212
- }, { id: 'hold', text: css$s });
6130
+ }, { id: 'hold', text: css$r });
6213
6131
  }
6214
6132
 
6215
- var css$r = "";
6133
+ var css$q = "";
6216
6134
 
6217
6135
  function defineDoubleTap(tag = 'usa-double-tap') {
6218
6136
  return defineElement(tag, (Base) => class UsaDoubleTap extends Base {
@@ -6270,10 +6188,10 @@ function defineDoubleTap(tag = 'usa-double-tap') {
6270
6188
  haptic(15);
6271
6189
  this.emit('double-tap', { x: x - r.left, y: y - r.top });
6272
6190
  }
6273
- }, { id: 'double-tap', text: css$r });
6191
+ }, { id: 'double-tap', text: css$q });
6274
6192
  }
6275
6193
 
6276
- var css$q = "";
6194
+ var css$p = "";
6277
6195
 
6278
6196
  function defineCheckbox(tag = 'usa-checkbox') {
6279
6197
  return defineElement(tag, (Base) => {
@@ -6345,7 +6263,7 @@ function defineCheckbox(tag = 'usa-checkbox') {
6345
6263
  }
6346
6264
  UsaCheckbox.formAssociated = true;
6347
6265
  return UsaCheckbox;
6348
- }, { id: 'checkbox', text: css$q });
6266
+ }, { id: 'checkbox', text: css$p });
6349
6267
  }
6350
6268
 
6351
6269
  /**
@@ -6400,7 +6318,7 @@ function place(floating, anchor, placement = 'top', gap = 8) {
6400
6318
  let uid = 0;
6401
6319
  const nextId = (prefix) => `${prefix}-${++uid}`;
6402
6320
 
6403
- var css$p = "";
6321
+ var css$o = "";
6404
6322
 
6405
6323
  function defineTabs(tag = 'usa-tabs') {
6406
6324
  adoptVariants();
@@ -6503,10 +6421,10 @@ function defineTabs(tag = 'usa-tabs') {
6503
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)' });
6504
6422
  this.emit('change', { index: i });
6505
6423
  }
6506
- }, { id: 'tabs', text: css$p });
6424
+ }, { id: 'tabs', text: css$o });
6507
6425
  }
6508
6426
 
6509
- var css$o = "";
6427
+ var css$n = "";
6510
6428
 
6511
6429
  /** Shared machinery of `<usa-drawer>` and `<usa-bottom-sheet>`: backdrop, focus, Esc, drag-to-dismiss. */
6512
6430
  function makePanel(Base, kind) {
@@ -6663,7 +6581,7 @@ function makePanel(Base, kind) {
6663
6581
  }
6664
6582
  function defineDrawer(tag = 'usa-drawer') {
6665
6583
  adoptVariants();
6666
- 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 });
6667
6585
  }
6668
6586
  function defineBottomSheet(tag = 'usa-bottom-sheet') {
6669
6587
  adoptVariants();
@@ -6706,10 +6624,10 @@ function defineBottomSheet(tag = 'usa-bottom-sheet') {
6706
6624
  super.render(v);
6707
6625
  }
6708
6626
  };
6709
- }, { id: 'sheet', text: css$o });
6627
+ }, { id: 'sheet', text: css$n });
6710
6628
  }
6711
6629
 
6712
- var css$n = "";
6630
+ var css$m = "";
6713
6631
 
6714
6632
  function definePullRefresh(tag = 'usa-pull-refresh') {
6715
6633
  adoptVariants();
@@ -6808,10 +6726,10 @@ function definePullRefresh(tag = 'usa-pull-refresh') {
6808
6726
  Promise.resolve(fn(ev)).then(done, done);
6809
6727
  });
6810
6728
  }
6811
- }, { id: 'pull-refresh', text: css$n });
6729
+ }, { id: 'pull-refresh', text: css$m });
6812
6730
  }
6813
6731
 
6814
- var css$m = "";
6732
+ var css$l = "";
6815
6733
 
6816
6734
  function defineFab(tag = 'usa-fab') {
6817
6735
  adoptVariants();
@@ -6897,10 +6815,10 @@ function defineFab(tag = 'usa-fab') {
6897
6815
  this.apply(true);
6898
6816
  this.emit('toggle', { open: next });
6899
6817
  }
6900
- }, { id: 'fab', text: css$m });
6818
+ }, { id: 'fab', text: css$l });
6901
6819
  }
6902
6820
 
6903
- var css$l = "";
6821
+ var css$k = "";
6904
6822
 
6905
6823
  function defineNavbar(tag = 'usa-navbar') {
6906
6824
  adoptVariants();
@@ -6953,10 +6871,10 @@ function defineNavbar(tag = 'usa-navbar') {
6953
6871
  this.removeAttribute('data-hidden');
6954
6872
  this.emit('show');
6955
6873
  }
6956
- }, { id: 'navbar', text: css$l });
6874
+ }, { id: 'navbar', text: css$k });
6957
6875
  }
6958
6876
 
6959
- var css$k = "";
6877
+ var css$j = "";
6960
6878
 
6961
6879
  function defineSlider(tag = 'usa-slider') {
6962
6880
  adoptVariants();
@@ -7077,10 +6995,10 @@ function defineSlider(tag = 'usa-slider') {
7077
6995
  }
7078
6996
  UsaSlider.formAssociated = true;
7079
6997
  return UsaSlider;
7080
- }, { id: 'slider', text: css$k });
6998
+ }, { id: 'slider', text: css$j });
7081
6999
  }
7082
7000
 
7083
- var css$j = "";
7001
+ var css$i = "";
7084
7002
 
7085
7003
  function defineRating(tag = 'usa-rating') {
7086
7004
  adoptVariants();
@@ -7165,63 +7083,7 @@ function defineRating(tag = 'usa-rating') {
7165
7083
  }
7166
7084
  UsaRating.formAssociated = true;
7167
7085
  return UsaRating;
7168
- }, { id: 'rating', text: css$j });
7169
- }
7170
-
7171
- var css$i = "";
7172
-
7173
- function defineTooltip(tag = 'usa-tooltip') {
7174
- adoptVariants();
7175
- return defineElement(tag, (Base) => class UsaTooltip extends Base {
7176
- constructor() {
7177
- super(...arguments);
7178
- this._tip = null;
7179
- }
7180
- static get observedAttributes() {
7181
- return ['text'];
7182
- }
7183
- mount() {
7184
- const trigger = this.firstElementChild || this;
7185
- const tip = document.createElement('span');
7186
- tip.className = 'usa-tooltip-bubble usa-surface';
7187
- tip.setAttribute('role', 'tooltip');
7188
- tip.id = nextId('usa-tip');
7189
- tip.textContent = this.str('text');
7190
- tip.hidden = true;
7191
- this.append(tip);
7192
- this._tip = tip;
7193
- trigger.setAttribute('aria-describedby', tip.id);
7194
- const later = () => {
7195
- clearTimeout(this._t);
7196
- this._t = setTimeout(() => this.show(), this.num('delay', 300));
7197
- };
7198
- this.listen(this, 'pointerenter', later);
7199
- this.listen(this, 'pointerleave', () => this.hide());
7200
- this.listen(this, 'focusin', () => this.show());
7201
- this.listen(this, 'focusout', () => this.hide());
7202
- this.listen(document, 'keydown', (e) => e.key === 'Escape' && this.hide());
7203
- this.onCleanup(() => {
7204
- clearTimeout(this._t);
7205
- tip.remove();
7206
- trigger.removeAttribute('aria-describedby');
7207
- });
7208
- }
7209
- show() {
7210
- const tip = this._tip;
7211
- if (!tip || !tip.hidden || !this.str('text'))
7212
- return;
7213
- clearTimeout(this._t);
7214
- tip.hidden = false;
7215
- const p = place(tip, this.firstElementChild || this, this.str('placement', 'top'));
7216
- const d = { top: [0, 6], bottom: [0, -6], left: [6, 0], right: [-6, 0] }[p];
7217
- 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'));
7218
- }
7219
- hide() {
7220
- clearTimeout(this._t);
7221
- if (this._tip)
7222
- this._tip.hidden = true;
7223
- }
7224
- }, { id: 'tooltip', text: css$i });
7086
+ }, { id: 'rating', text: css$i });
7225
7087
  }
7226
7088
 
7227
7089
  var css$h = "";
@@ -7375,7 +7237,7 @@ function defineAvatarStack(tag = 'usa-avatar-stack') {
7375
7237
  * motionary/components/ui — animated UI components + style variants (v2.6).
7376
7238
  * `<usa-tabs>`, `<usa-drawer>`, `<usa-bottom-sheet>`, `<usa-pull-refresh>`,
7377
7239
  * `<usa-fab>`, `<usa-navbar>`, `<usa-slider>`, `<usa-rating>`,
7378
- * `<usa-tooltip>`, `<usa-popover>`, `<usa-badge>`, `<usa-avatar-stack>`,
7240
+ * `<usa-popover>`, `<usa-badge>`, `<usa-avatar-stack>`,
7379
7241
  * and `variant="minimal | neon | glass | brutalist | fluent | material"`
7380
7242
  * design tokens (`setVariant()`, `VARIANTS`).
7381
7243
  */
@@ -7389,7 +7251,6 @@ function defineUiComponents() {
7389
7251
  defineNavbar();
7390
7252
  defineSlider();
7391
7253
  defineRating();
7392
- defineTooltip();
7393
7254
  definePopover();
7394
7255
  defineBadge();
7395
7256
  defineAvatarStack();
@@ -10981,8 +10842,6 @@ exports.defineTilt = defineTilt;
10981
10842
  exports.defineTimeline = defineTimeline;
10982
10843
  exports.defineTimelineComponents = defineTimelineComponents;
10983
10844
  exports.defineToaster = defineToaster;
10984
- exports.defineToggle = defineToggle;
10985
- exports.defineTooltip = defineTooltip;
10986
10845
  exports.defineTransitionComponents = defineTransitionComponents;
10987
10846
  exports.defineTypewriter = defineTypewriter;
10988
10847
  exports.defineUiComponents = defineUiComponents;