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
@@ -393,26 +393,10 @@ interface UsaPressElement extends UsaElement {
393
393
  readonly pressed: boolean;
394
394
  }
395
395
 
396
- /**
397
- * `<usa-toggle>` — an accessible switch whose knob stretches while pressed
398
- * and glides across (the Windows 11 / iOS toggle). `role="switch"`,
399
- * keyboard (Space / Enter), and form-associated where `ElementInternals`
400
- * exists (submits `value`, default `"on"`, under `name` when checked).
401
- *
402
- * Attributes: `checked`, `disabled`, `name`, `value`, `label`
403
- * (accessible name if there is no `aria-label` / `<label>`). Events:
404
- * `change` and `usa:change` (`detail.checked`). Reduced motion: no glide.
405
- */
406
- interface UsaToggleElement extends UsaElement {
407
- checked: boolean;
408
- disabled: boolean;
409
- toggle(force?: boolean): void;
410
- }
411
-
412
396
  /**
413
397
  * motionary/components/interaction — micro-interactions.
414
398
  * `<usa-ripple>`, `<usa-magnetic>`, `<usa-tilt>`, `<usa-spotlight>`,
415
- * `<usa-press>`, `<usa-toggle>`.
399
+ * `<usa-press>`.
416
400
  */
417
401
 
418
402
  declare global {
@@ -422,7 +406,6 @@ declare global {
422
406
  'usa-tilt': UsaTiltElement;
423
407
  'usa-spotlight': UsaSpotlightElement;
424
408
  'usa-press': UsaPressElement;
425
- 'usa-toggle': UsaToggleElement;
426
409
  }
427
410
  }
428
411
 
@@ -1152,19 +1135,6 @@ interface UsaRatingElement extends UsaElement {
1152
1135
  value: number;
1153
1136
  }
1154
1137
 
1155
- /**
1156
- * `<usa-tooltip text="…">` — a tooltip for the element it wraps, shown on
1157
- * hover (after `delay` ms, 300) and on keyboard focus, hidden on Esc / blur.
1158
- * It springs in from its placement side and flips to stay on screen; the
1159
- * trigger gets `aria-describedby`.
1160
- * Attributes: `text`, `placement` (`top` default, `bottom`, `left`, `right`),
1161
- * `delay`, `variant`. Reduced motion: fades only.
1162
- */
1163
- interface UsaTooltipElement extends UsaElement {
1164
- show(): void;
1165
- hide(): void;
1166
- }
1167
-
1168
1138
  /**
1169
1139
  * `<usa-popover>` — a click-to-open popover: the first element child is the
1170
1140
  * trigger, `[data-popover]` is the content. Springs open from the trigger,
@@ -1203,7 +1173,7 @@ interface UsaAvatarStackElement extends UsaElement {
1203
1173
  * motionary/components/ui — animated UI components + style variants (v2.6).
1204
1174
  * `<usa-tabs>`, `<usa-drawer>`, `<usa-bottom-sheet>`, `<usa-pull-refresh>`,
1205
1175
  * `<usa-fab>`, `<usa-navbar>`, `<usa-slider>`, `<usa-rating>`,
1206
- * `<usa-tooltip>`, `<usa-popover>`, `<usa-badge>`, `<usa-avatar-stack>`,
1176
+ * `<usa-popover>`, `<usa-badge>`, `<usa-avatar-stack>`,
1207
1177
  * and `variant="minimal | neon | glass | brutalist | fluent | material"`
1208
1178
  * design tokens (`setVariant()`, `VARIANTS`).
1209
1179
  */
@@ -1218,7 +1188,6 @@ declare global {
1218
1188
  'usa-navbar': UsaNavbarElement;
1219
1189
  'usa-slider': UsaSliderElement;
1220
1190
  'usa-rating': UsaRatingElement;
1221
- 'usa-tooltip': UsaTooltipElement;
1222
1191
  'usa-popover': UsaPopoverElement;
1223
1192
  'usa-badge': UsaBadgeElement;
1224
1193
  'usa-avatar-stack': UsaAvatarStackElement;
@@ -1638,14 +1607,14 @@ declare global {
1638
1607
  declare const COMPONENT_CATEGORIES: {
1639
1608
  readonly reveal: readonly ["usa-reveal", "usa-stagger", "usa-scroll-progress", "usa-scrolly"];
1640
1609
  readonly text: readonly ["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"];
1641
- readonly interaction: readonly ["usa-ripple", "usa-magnetic", "usa-tilt", "usa-spotlight", "usa-press", "usa-toggle"];
1610
+ readonly interaction: readonly ["usa-ripple", "usa-magnetic", "usa-tilt", "usa-spotlight", "usa-press"];
1642
1611
  readonly feedback: readonly ["usa-spinner", "usa-skeleton", "usa-progress", "usa-toaster", "usa-check"];
1643
1612
  readonly background: readonly ["usa-aurora", "usa-particles", "usa-grain", "usa-marquee", "usa-acrylic", "usa-grid-glow", "usa-blobs", "usa-water-ripple", "usa-dot-network"];
1644
1613
  readonly transitions: readonly ["usa-dialog", "usa-accordion", "usa-view-switch"];
1645
1614
  readonly physics: readonly ["usa-spring", "usa-draggable", "usa-overscroll"];
1646
1615
  readonly cards: readonly ["usa-card", "usa-card-stack", "usa-sticky-stack", "usa-carousel-3d"];
1647
1616
  readonly click: readonly ["usa-click", "usa-button", "usa-icon-morph", "usa-like", "usa-hold", "usa-double-tap", "usa-checkbox"];
1648
- readonly ui: readonly ["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"];
1617
+ readonly ui: readonly ["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"];
1649
1618
  readonly page: readonly ["usa-cursor", "usa-fullpage", "usa-loading-bar", "usa-back-to-top", "usa-ambient", "usa-splash", "usa-auto-skeleton", "usa-motion-switch"];
1650
1619
  readonly timeline: readonly ["usa-timeline"];
1651
1620
  readonly gesture: readonly ["usa-swipeable", "usa-pinch-zoom"];
@@ -393,26 +393,10 @@ interface UsaPressElement extends UsaElement {
393
393
  readonly pressed: boolean;
394
394
  }
395
395
 
396
- /**
397
- * `<usa-toggle>` — an accessible switch whose knob stretches while pressed
398
- * and glides across (the Windows 11 / iOS toggle). `role="switch"`,
399
- * keyboard (Space / Enter), and form-associated where `ElementInternals`
400
- * exists (submits `value`, default `"on"`, under `name` when checked).
401
- *
402
- * Attributes: `checked`, `disabled`, `name`, `value`, `label`
403
- * (accessible name if there is no `aria-label` / `<label>`). Events:
404
- * `change` and `usa:change` (`detail.checked`). Reduced motion: no glide.
405
- */
406
- interface UsaToggleElement extends UsaElement {
407
- checked: boolean;
408
- disabled: boolean;
409
- toggle(force?: boolean): void;
410
- }
411
-
412
396
  /**
413
397
  * motionary/components/interaction — micro-interactions.
414
398
  * `<usa-ripple>`, `<usa-magnetic>`, `<usa-tilt>`, `<usa-spotlight>`,
415
- * `<usa-press>`, `<usa-toggle>`.
399
+ * `<usa-press>`.
416
400
  */
417
401
 
418
402
  declare global {
@@ -422,7 +406,6 @@ declare global {
422
406
  'usa-tilt': UsaTiltElement;
423
407
  'usa-spotlight': UsaSpotlightElement;
424
408
  'usa-press': UsaPressElement;
425
- 'usa-toggle': UsaToggleElement;
426
409
  }
427
410
  }
428
411
 
@@ -1152,19 +1135,6 @@ interface UsaRatingElement extends UsaElement {
1152
1135
  value: number;
1153
1136
  }
1154
1137
 
1155
- /**
1156
- * `<usa-tooltip text="…">` — a tooltip for the element it wraps, shown on
1157
- * hover (after `delay` ms, 300) and on keyboard focus, hidden on Esc / blur.
1158
- * It springs in from its placement side and flips to stay on screen; the
1159
- * trigger gets `aria-describedby`.
1160
- * Attributes: `text`, `placement` (`top` default, `bottom`, `left`, `right`),
1161
- * `delay`, `variant`. Reduced motion: fades only.
1162
- */
1163
- interface UsaTooltipElement extends UsaElement {
1164
- show(): void;
1165
- hide(): void;
1166
- }
1167
-
1168
1138
  /**
1169
1139
  * `<usa-popover>` — a click-to-open popover: the first element child is the
1170
1140
  * trigger, `[data-popover]` is the content. Springs open from the trigger,
@@ -1203,7 +1173,7 @@ interface UsaAvatarStackElement extends UsaElement {
1203
1173
  * motionary/components/ui — animated UI components + style variants (v2.6).
1204
1174
  * `<usa-tabs>`, `<usa-drawer>`, `<usa-bottom-sheet>`, `<usa-pull-refresh>`,
1205
1175
  * `<usa-fab>`, `<usa-navbar>`, `<usa-slider>`, `<usa-rating>`,
1206
- * `<usa-tooltip>`, `<usa-popover>`, `<usa-badge>`, `<usa-avatar-stack>`,
1176
+ * `<usa-popover>`, `<usa-badge>`, `<usa-avatar-stack>`,
1207
1177
  * and `variant="minimal | neon | glass | brutalist | fluent | material"`
1208
1178
  * design tokens (`setVariant()`, `VARIANTS`).
1209
1179
  */
@@ -1218,7 +1188,6 @@ declare global {
1218
1188
  'usa-navbar': UsaNavbarElement;
1219
1189
  'usa-slider': UsaSliderElement;
1220
1190
  'usa-rating': UsaRatingElement;
1221
- 'usa-tooltip': UsaTooltipElement;
1222
1191
  'usa-popover': UsaPopoverElement;
1223
1192
  'usa-badge': UsaBadgeElement;
1224
1193
  'usa-avatar-stack': UsaAvatarStackElement;
@@ -1638,14 +1607,14 @@ declare global {
1638
1607
  declare const COMPONENT_CATEGORIES: {
1639
1608
  readonly reveal: readonly ["usa-reveal", "usa-stagger", "usa-scroll-progress", "usa-scrolly"];
1640
1609
  readonly text: readonly ["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"];
1641
- readonly interaction: readonly ["usa-ripple", "usa-magnetic", "usa-tilt", "usa-spotlight", "usa-press", "usa-toggle"];
1610
+ readonly interaction: readonly ["usa-ripple", "usa-magnetic", "usa-tilt", "usa-spotlight", "usa-press"];
1642
1611
  readonly feedback: readonly ["usa-spinner", "usa-skeleton", "usa-progress", "usa-toaster", "usa-check"];
1643
1612
  readonly background: readonly ["usa-aurora", "usa-particles", "usa-grain", "usa-marquee", "usa-acrylic", "usa-grid-glow", "usa-blobs", "usa-water-ripple", "usa-dot-network"];
1644
1613
  readonly transitions: readonly ["usa-dialog", "usa-accordion", "usa-view-switch"];
1645
1614
  readonly physics: readonly ["usa-spring", "usa-draggable", "usa-overscroll"];
1646
1615
  readonly cards: readonly ["usa-card", "usa-card-stack", "usa-sticky-stack", "usa-carousel-3d"];
1647
1616
  readonly click: readonly ["usa-click", "usa-button", "usa-icon-morph", "usa-like", "usa-hold", "usa-double-tap", "usa-checkbox"];
1648
- readonly ui: readonly ["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"];
1617
+ readonly ui: readonly ["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"];
1649
1618
  readonly page: readonly ["usa-cursor", "usa-fullpage", "usa-loading-bar", "usa-back-to-top", "usa-ambient", "usa-splash", "usa-auto-skeleton", "usa-motion-switch"];
1650
1619
  readonly timeline: readonly ["usa-timeline"];
1651
1620
  readonly gesture: readonly ["usa-swipeable", "usa-pinch-zoom"];
@@ -30,14 +30,14 @@ import './packs.js';
30
30
  import './fx.js';
31
31
  import '../chunks/registry-D23neB4M.js';
32
32
  import './a11y.js';
33
- import '../chunks/index-tags-DucKMQr_.js';
33
+ import '../chunks/index-tags-C04JP8g4.js';
34
34
  import './perf.js';
35
35
  import './bridge.js';
36
36
 
37
37
  /**
38
38
  * motionary/components/solid — Solid integration (v3.8).
39
39
  * Solid renders custom elements natively: set properties with `prop:` and
40
- * listen with `on:` (`<usa-toggle prop:checked={on()} on:usa:change={…}>`).
40
+ * listen with `on:` (`<usa-switch prop:checked={on()} on:usa:change={…}>`).
41
41
  * This entry adds `defineUsa()` (client only, SolidStart-safe), a `usa`
42
42
  * directive for `use:usa={{ props, on }}`, and JSX types.
43
43
  *
@@ -1 +1 @@
1
- {"version":3,"file":"solid.js","sources":["../../src/components/frameworks/solid.ts"],"sourcesContent":["/**\n * motionary/components/solid — Solid integration (v3.8).\n * Solid renders custom elements natively: set properties with `prop:` and\n * listen with `on:` (`<usa-toggle prop:checked={on()} on:usa:change={…}>`).\n * This entry adds `defineUsa()` (client only, SolidStart-safe), a `usa`\n * directive for `use:usa={{ props, on }}`, and JSX types.\n *\n * ```tsx\n * import { defineUsa, usa } from 'motionary/components/solid';\n * import type {} from 'motionary/components/solid'; // JSX types\n * onMount(() => defineUsa());\n * false && usa; // keep the directive import (Solid convention)\n * <usa-card use:usa={{ on: { flip: (e) => console.log(e.detail) } }} effect=\"flip\">…</usa-card>\n * ```\n */\nimport { createRenderEffect, onCleanup } from 'solid-js';\nimport { defineComponents, type ComponentCategory } from '../index';\nimport { bindUsa, type UsaBinding } from './bind';\nimport type { UsaIntrinsicElements } from './jsx';\n\nexport { bindUsa, usaEventName } from './bind';\nexport type { UsaBinding } from './bind';\n\n/**\n * Solid directive (`use:usa`). Solid calls it with the element and an\n * accessor; since 4.0.1 the binding is tracked with `createRenderEffect`, so\n * signals read inside `{{ props, on }}` update the element automatically and\n * the listeners are removed on cleanup. `refresh()` is kept for code that\n * calls the directive outside a reactive owner.\n */\nexport function usa(el: HTMLElement, accessor: () => UsaBinding | undefined): { refresh(): void; destroy(): void } {\n let b: ReturnType<typeof bindUsa> | null = null;\n const run = () => {\n const v = accessor() || {};\n if (b) b.update(v);\n else b = bindUsa(el, v);\n };\n createRenderEffect(run);\n if (!b) run();\n const destroy = () => b?.destroy();\n onCleanup(destroy);\n return { refresh: run, destroy };\n}\n\n/** Register the elements (all, or some categories) — call from `onMount` in SSR apps. */\nexport function defineUsa(categories?: ComponentCategory[]): void {\n if (typeof window !== 'undefined') defineComponents(categories);\n}\n\n/** JSX intrinsic elements for Solid (same attribute types as the React/Preact ones). */\nexport type SolidUsaIntrinsicElements = UsaIntrinsicElements;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;AAcG;AASH;;;;;;AAMG;AACG,SAAU,GAAG,CAAC,EAAe,EAAE,QAAsC,EAAA;IACzE,IAAI,CAAC,GAAsC,IAAI;IAC/C,MAAM,GAAG,GAAG,MAAK;AACf,QAAA,MAAM,CAAC,GAAG,QAAQ,EAAE,IAAI,EAAE;AAC1B,QAAA,IAAI,CAAC;AAAE,YAAA,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;;AACb,YAAA,CAAC,GAAG,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC;AACzB,IAAA,CAAC;IACD,kBAAkB,CAAC,GAAG,CAAC;AACvB,IAAA,IAAI,CAAC,CAAC;AAAE,QAAA,GAAG,EAAE;IACb,MAAM,OAAO,GAAG,MAAM,CAAC,EAAE,OAAO,EAAE;IAClC,SAAS,CAAC,OAAO,CAAC;AAClB,IAAA,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE;AAClC;AAEA;AACM,SAAU,SAAS,CAAC,UAAgC,EAAA;IACxD,IAAI,OAAO,MAAM,KAAK,WAAW;QAAE,gBAAgB,CAAC,UAAU,CAAC;AACjE;;;;"}
1
+ {"version":3,"file":"solid.js","sources":["../../src/components/frameworks/solid.ts"],"sourcesContent":["/**\n * motionary/components/solid — Solid integration (v3.8).\n * Solid renders custom elements natively: set properties with `prop:` and\n * listen with `on:` (`<usa-switch prop:checked={on()} on:usa:change={…}>`).\n * This entry adds `defineUsa()` (client only, SolidStart-safe), a `usa`\n * directive for `use:usa={{ props, on }}`, and JSX types.\n *\n * ```tsx\n * import { defineUsa, usa } from 'motionary/components/solid';\n * import type {} from 'motionary/components/solid'; // JSX types\n * onMount(() => defineUsa());\n * false && usa; // keep the directive import (Solid convention)\n * <usa-card use:usa={{ on: { flip: (e) => console.log(e.detail) } }} effect=\"flip\">…</usa-card>\n * ```\n */\nimport { createRenderEffect, onCleanup } from 'solid-js';\nimport { defineComponents, type ComponentCategory } from '../index';\nimport { bindUsa, type UsaBinding } from './bind';\nimport type { UsaIntrinsicElements } from './jsx';\n\nexport { bindUsa, usaEventName } from './bind';\nexport type { UsaBinding } from './bind';\n\n/**\n * Solid directive (`use:usa`). Solid calls it with the element and an\n * accessor; since 4.0.1 the binding is tracked with `createRenderEffect`, so\n * signals read inside `{{ props, on }}` update the element automatically and\n * the listeners are removed on cleanup. `refresh()` is kept for code that\n * calls the directive outside a reactive owner.\n */\nexport function usa(el: HTMLElement, accessor: () => UsaBinding | undefined): { refresh(): void; destroy(): void } {\n let b: ReturnType<typeof bindUsa> | null = null;\n const run = () => {\n const v = accessor() || {};\n if (b) b.update(v);\n else b = bindUsa(el, v);\n };\n createRenderEffect(run);\n if (!b) run();\n const destroy = () => b?.destroy();\n onCleanup(destroy);\n return { refresh: run, destroy };\n}\n\n/** Register the elements (all, or some categories) — call from `onMount` in SSR apps. */\nexport function defineUsa(categories?: ComponentCategory[]): void {\n if (typeof window !== 'undefined') defineComponents(categories);\n}\n\n/** JSX intrinsic elements for Solid (same attribute types as the React/Preact ones). */\nexport type SolidUsaIntrinsicElements = UsaIntrinsicElements;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;AAcG;AASH;;;;;;AAMG;AACG,SAAU,GAAG,CAAC,EAAe,EAAE,QAAsC,EAAA;IACzE,IAAI,CAAC,GAAsC,IAAI;IAC/C,MAAM,GAAG,GAAG,MAAK;AACf,QAAA,MAAM,CAAC,GAAG,QAAQ,EAAE,IAAI,EAAE;AAC1B,QAAA,IAAI,CAAC;AAAE,YAAA,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;;AACb,YAAA,CAAC,GAAG,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC;AACzB,IAAA,CAAC;IACD,kBAAkB,CAAC,GAAG,CAAC;AACvB,IAAA,IAAI,CAAC,CAAC;AAAE,QAAA,GAAG,EAAE;IACb,MAAM,OAAO,GAAG,MAAM,CAAC,EAAE,OAAO,EAAE;IAClC,SAAS,CAAC,OAAO,CAAC;AAClB,IAAA,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE;AAClC;AAEA;AACM,SAAU,SAAS,CAAC,UAAgC,EAAA;IACxD,IAAI,OAAO,MAAM,KAAK,WAAW;QAAE,gBAAgB,CAAC,UAAU,CAAC;AACjE;;;;"}
@@ -30,7 +30,7 @@ require('./packs.cjs');
30
30
  require('./fx.cjs');
31
31
  require('../chunks/registry-DehBVRDV.cjs');
32
32
  require('./a11y.cjs');
33
- require('../chunks/index-tags-wv0R_vkO.cjs');
33
+ require('../chunks/index-tags-BTMwrfgV.cjs');
34
34
  require('./perf.cjs');
35
35
  require('./bridge.cjs');
36
36
 
@@ -47,7 +47,7 @@ require('./bridge.cjs');
47
47
  * onMount(() => defineUsa(['click', 'ui']));
48
48
  * let on = false;
49
49
  * </script>
50
- * <usa-toggle use:usa={{ props: { checked: on }, on: { change: (e) => (on = e.detail.checked) } }}></usa-toggle>
50
+ * <usa-switch use:usa={{ props: { checked: on }, on: { change: (e) => (on = e.detail.checked) } }}></usa-switch>
51
51
  * ```
52
52
  * Plain `on:usa:change` does not compile in Svelte 3/4 (colon); use the action or `onusa:change` in Svelte 5.
53
53
  */
@@ -1 +1 @@
1
- {"version":3,"file":"svelte.cjs","sources":["../../src/components/frameworks/svelte.ts"],"sourcesContent":["/**\n * motionary/components/svelte — Svelte integration (v3.8).\n * Svelte (3, 4, 5) renders `<usa-*>` tags natively; `use:usa` sets\n * **properties** and `usa:*` listeners in one place, and `defineUsa()`\n * registers the elements on the client only (safe in SvelteKit SSR).\n *\n * ```svelte\n * <script>\n * import { usa, defineUsa } from 'motionary/components/svelte';\n * import { onMount } from 'svelte';\n * onMount(() => defineUsa(['click', 'ui']));\n * let on = false;\n * </script>\n * <usa-toggle use:usa={{ props: { checked: on }, on: { change: (e) => (on = e.detail.checked) } }}></usa-toggle>\n * ```\n * Plain `on:usa:change` does not compile in Svelte 3/4 (colon); use the action or `onusa:change` in Svelte 5.\n */\nimport { defineComponents, type ComponentCategory } from '../index';\nimport { bindUsa, type UsaBinding } from './bind';\n\nexport { bindUsa, usaEventName } from './bind';\nexport type { UsaBinding } from './bind';\n\n/** Svelte action: `use:usa={{ props, on }}`. */\nexport function usa(node: HTMLElement, binding: UsaBinding = {}): { update(b: UsaBinding): void; destroy(): void } {\n return bindUsa(node, binding);\n}\n\n/** Register the elements (all, or some categories) — call from `onMount` for SSR apps. */\nexport function defineUsa(categories?: ComponentCategory[]): void {\n if (typeof window !== 'undefined') defineComponents(categories);\n}\n"],"names":["bindUsa","defineComponents"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;AAgBG;AAOH;SACgB,GAAG,CAAC,IAAiB,EAAE,UAAsB,EAAE,EAAA;AAC7D,IAAA,OAAOA,YAAO,CAAC,IAAI,EAAE,OAAO,CAAC;AAC/B;AAEA;AACM,SAAU,SAAS,CAAC,UAAgC,EAAA;IACxD,IAAI,OAAO,MAAM,KAAK,WAAW;QAAEC,2BAAgB,CAAC,UAAU,CAAC;AACjE;;;;;;;"}
1
+ {"version":3,"file":"svelte.cjs","sources":["../../src/components/frameworks/svelte.ts"],"sourcesContent":["/**\n * motionary/components/svelte — Svelte integration (v3.8).\n * Svelte (3, 4, 5) renders `<usa-*>` tags natively; `use:usa` sets\n * **properties** and `usa:*` listeners in one place, and `defineUsa()`\n * registers the elements on the client only (safe in SvelteKit SSR).\n *\n * ```svelte\n * <script>\n * import { usa, defineUsa } from 'motionary/components/svelte';\n * import { onMount } from 'svelte';\n * onMount(() => defineUsa(['click', 'ui']));\n * let on = false;\n * </script>\n * <usa-switch use:usa={{ props: { checked: on }, on: { change: (e) => (on = e.detail.checked) } }}></usa-switch>\n * ```\n * Plain `on:usa:change` does not compile in Svelte 3/4 (colon); use the action or `onusa:change` in Svelte 5.\n */\nimport { defineComponents, type ComponentCategory } from '../index';\nimport { bindUsa, type UsaBinding } from './bind';\n\nexport { bindUsa, usaEventName } from './bind';\nexport type { UsaBinding } from './bind';\n\n/** Svelte action: `use:usa={{ props, on }}`. */\nexport function usa(node: HTMLElement, binding: UsaBinding = {}): { update(b: UsaBinding): void; destroy(): void } {\n return bindUsa(node, binding);\n}\n\n/** Register the elements (all, or some categories) — call from `onMount` for SSR apps. */\nexport function defineUsa(categories?: ComponentCategory[]): void {\n if (typeof window !== 'undefined') defineComponents(categories);\n}\n"],"names":["bindUsa","defineComponents"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;AAgBG;AAOH;SACgB,GAAG,CAAC,IAAiB,EAAE,UAAsB,EAAE,EAAA;AAC7D,IAAA,OAAOA,YAAO,CAAC,IAAI,EAAE,OAAO,CAAC;AAC/B;AAEA;AACM,SAAU,SAAS,CAAC,UAAgC,EAAA;IACxD,IAAI,OAAO,MAAM,KAAK,WAAW;QAAEC,2BAAgB,CAAC,UAAU,CAAC;AACjE;;;;;;;"}
@@ -393,26 +393,10 @@ interface UsaPressElement extends UsaElement {
393
393
  readonly pressed: boolean;
394
394
  }
395
395
 
396
- /**
397
- * `<usa-toggle>` — an accessible switch whose knob stretches while pressed
398
- * and glides across (the Windows 11 / iOS toggle). `role="switch"`,
399
- * keyboard (Space / Enter), and form-associated where `ElementInternals`
400
- * exists (submits `value`, default `"on"`, under `name` when checked).
401
- *
402
- * Attributes: `checked`, `disabled`, `name`, `value`, `label`
403
- * (accessible name if there is no `aria-label` / `<label>`). Events:
404
- * `change` and `usa:change` (`detail.checked`). Reduced motion: no glide.
405
- */
406
- interface UsaToggleElement extends UsaElement {
407
- checked: boolean;
408
- disabled: boolean;
409
- toggle(force?: boolean): void;
410
- }
411
-
412
396
  /**
413
397
  * motionary/components/interaction — micro-interactions.
414
398
  * `<usa-ripple>`, `<usa-magnetic>`, `<usa-tilt>`, `<usa-spotlight>`,
415
- * `<usa-press>`, `<usa-toggle>`.
399
+ * `<usa-press>`.
416
400
  */
417
401
 
418
402
  declare global {
@@ -422,7 +406,6 @@ declare global {
422
406
  'usa-tilt': UsaTiltElement;
423
407
  'usa-spotlight': UsaSpotlightElement;
424
408
  'usa-press': UsaPressElement;
425
- 'usa-toggle': UsaToggleElement;
426
409
  }
427
410
  }
428
411
 
@@ -1152,19 +1135,6 @@ interface UsaRatingElement extends UsaElement {
1152
1135
  value: number;
1153
1136
  }
1154
1137
 
1155
- /**
1156
- * `<usa-tooltip text="…">` — a tooltip for the element it wraps, shown on
1157
- * hover (after `delay` ms, 300) and on keyboard focus, hidden on Esc / blur.
1158
- * It springs in from its placement side and flips to stay on screen; the
1159
- * trigger gets `aria-describedby`.
1160
- * Attributes: `text`, `placement` (`top` default, `bottom`, `left`, `right`),
1161
- * `delay`, `variant`. Reduced motion: fades only.
1162
- */
1163
- interface UsaTooltipElement extends UsaElement {
1164
- show(): void;
1165
- hide(): void;
1166
- }
1167
-
1168
1138
  /**
1169
1139
  * `<usa-popover>` — a click-to-open popover: the first element child is the
1170
1140
  * trigger, `[data-popover]` is the content. Springs open from the trigger,
@@ -1203,7 +1173,7 @@ interface UsaAvatarStackElement extends UsaElement {
1203
1173
  * motionary/components/ui — animated UI components + style variants (v2.6).
1204
1174
  * `<usa-tabs>`, `<usa-drawer>`, `<usa-bottom-sheet>`, `<usa-pull-refresh>`,
1205
1175
  * `<usa-fab>`, `<usa-navbar>`, `<usa-slider>`, `<usa-rating>`,
1206
- * `<usa-tooltip>`, `<usa-popover>`, `<usa-badge>`, `<usa-avatar-stack>`,
1176
+ * `<usa-popover>`, `<usa-badge>`, `<usa-avatar-stack>`,
1207
1177
  * and `variant="minimal | neon | glass | brutalist | fluent | material"`
1208
1178
  * design tokens (`setVariant()`, `VARIANTS`).
1209
1179
  */
@@ -1218,7 +1188,6 @@ declare global {
1218
1188
  'usa-navbar': UsaNavbarElement;
1219
1189
  'usa-slider': UsaSliderElement;
1220
1190
  'usa-rating': UsaRatingElement;
1221
- 'usa-tooltip': UsaTooltipElement;
1222
1191
  'usa-popover': UsaPopoverElement;
1223
1192
  'usa-badge': UsaBadgeElement;
1224
1193
  'usa-avatar-stack': UsaAvatarStackElement;
@@ -1638,14 +1607,14 @@ declare global {
1638
1607
  declare const COMPONENT_CATEGORIES: {
1639
1608
  readonly reveal: readonly ["usa-reveal", "usa-stagger", "usa-scroll-progress", "usa-scrolly"];
1640
1609
  readonly text: readonly ["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"];
1641
- readonly interaction: readonly ["usa-ripple", "usa-magnetic", "usa-tilt", "usa-spotlight", "usa-press", "usa-toggle"];
1610
+ readonly interaction: readonly ["usa-ripple", "usa-magnetic", "usa-tilt", "usa-spotlight", "usa-press"];
1642
1611
  readonly feedback: readonly ["usa-spinner", "usa-skeleton", "usa-progress", "usa-toaster", "usa-check"];
1643
1612
  readonly background: readonly ["usa-aurora", "usa-particles", "usa-grain", "usa-marquee", "usa-acrylic", "usa-grid-glow", "usa-blobs", "usa-water-ripple", "usa-dot-network"];
1644
1613
  readonly transitions: readonly ["usa-dialog", "usa-accordion", "usa-view-switch"];
1645
1614
  readonly physics: readonly ["usa-spring", "usa-draggable", "usa-overscroll"];
1646
1615
  readonly cards: readonly ["usa-card", "usa-card-stack", "usa-sticky-stack", "usa-carousel-3d"];
1647
1616
  readonly click: readonly ["usa-click", "usa-button", "usa-icon-morph", "usa-like", "usa-hold", "usa-double-tap", "usa-checkbox"];
1648
- readonly ui: readonly ["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"];
1617
+ readonly ui: readonly ["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"];
1649
1618
  readonly page: readonly ["usa-cursor", "usa-fullpage", "usa-loading-bar", "usa-back-to-top", "usa-ambient", "usa-splash", "usa-auto-skeleton", "usa-motion-switch"];
1650
1619
  readonly timeline: readonly ["usa-timeline"];
1651
1620
  readonly gesture: readonly ["usa-swipeable", "usa-pinch-zoom"];
@@ -1716,7 +1685,7 @@ declare function bindUsa(el: HTMLElement, binding?: UsaBinding): {
1716
1685
  * onMount(() => defineUsa(['click', 'ui']));
1717
1686
  * let on = false;
1718
1687
  * </script>
1719
- * <usa-toggle use:usa={{ props: { checked: on }, on: { change: (e) => (on = e.detail.checked) } }}></usa-toggle>
1688
+ * <usa-switch use:usa={{ props: { checked: on }, on: { change: (e) => (on = e.detail.checked) } }}></usa-switch>
1720
1689
  * ```
1721
1690
  * Plain `on:usa:change` does not compile in Svelte 3/4 (colon); use the action or `onusa:change` in Svelte 5.
1722
1691
  */
@@ -393,26 +393,10 @@ interface UsaPressElement extends UsaElement {
393
393
  readonly pressed: boolean;
394
394
  }
395
395
 
396
- /**
397
- * `<usa-toggle>` — an accessible switch whose knob stretches while pressed
398
- * and glides across (the Windows 11 / iOS toggle). `role="switch"`,
399
- * keyboard (Space / Enter), and form-associated where `ElementInternals`
400
- * exists (submits `value`, default `"on"`, under `name` when checked).
401
- *
402
- * Attributes: `checked`, `disabled`, `name`, `value`, `label`
403
- * (accessible name if there is no `aria-label` / `<label>`). Events:
404
- * `change` and `usa:change` (`detail.checked`). Reduced motion: no glide.
405
- */
406
- interface UsaToggleElement extends UsaElement {
407
- checked: boolean;
408
- disabled: boolean;
409
- toggle(force?: boolean): void;
410
- }
411
-
412
396
  /**
413
397
  * motionary/components/interaction — micro-interactions.
414
398
  * `<usa-ripple>`, `<usa-magnetic>`, `<usa-tilt>`, `<usa-spotlight>`,
415
- * `<usa-press>`, `<usa-toggle>`.
399
+ * `<usa-press>`.
416
400
  */
417
401
 
418
402
  declare global {
@@ -422,7 +406,6 @@ declare global {
422
406
  'usa-tilt': UsaTiltElement;
423
407
  'usa-spotlight': UsaSpotlightElement;
424
408
  'usa-press': UsaPressElement;
425
- 'usa-toggle': UsaToggleElement;
426
409
  }
427
410
  }
428
411
 
@@ -1152,19 +1135,6 @@ interface UsaRatingElement extends UsaElement {
1152
1135
  value: number;
1153
1136
  }
1154
1137
 
1155
- /**
1156
- * `<usa-tooltip text="…">` — a tooltip for the element it wraps, shown on
1157
- * hover (after `delay` ms, 300) and on keyboard focus, hidden on Esc / blur.
1158
- * It springs in from its placement side and flips to stay on screen; the
1159
- * trigger gets `aria-describedby`.
1160
- * Attributes: `text`, `placement` (`top` default, `bottom`, `left`, `right`),
1161
- * `delay`, `variant`. Reduced motion: fades only.
1162
- */
1163
- interface UsaTooltipElement extends UsaElement {
1164
- show(): void;
1165
- hide(): void;
1166
- }
1167
-
1168
1138
  /**
1169
1139
  * `<usa-popover>` — a click-to-open popover: the first element child is the
1170
1140
  * trigger, `[data-popover]` is the content. Springs open from the trigger,
@@ -1203,7 +1173,7 @@ interface UsaAvatarStackElement extends UsaElement {
1203
1173
  * motionary/components/ui — animated UI components + style variants (v2.6).
1204
1174
  * `<usa-tabs>`, `<usa-drawer>`, `<usa-bottom-sheet>`, `<usa-pull-refresh>`,
1205
1175
  * `<usa-fab>`, `<usa-navbar>`, `<usa-slider>`, `<usa-rating>`,
1206
- * `<usa-tooltip>`, `<usa-popover>`, `<usa-badge>`, `<usa-avatar-stack>`,
1176
+ * `<usa-popover>`, `<usa-badge>`, `<usa-avatar-stack>`,
1207
1177
  * and `variant="minimal | neon | glass | brutalist | fluent | material"`
1208
1178
  * design tokens (`setVariant()`, `VARIANTS`).
1209
1179
  */
@@ -1218,7 +1188,6 @@ declare global {
1218
1188
  'usa-navbar': UsaNavbarElement;
1219
1189
  'usa-slider': UsaSliderElement;
1220
1190
  'usa-rating': UsaRatingElement;
1221
- 'usa-tooltip': UsaTooltipElement;
1222
1191
  'usa-popover': UsaPopoverElement;
1223
1192
  'usa-badge': UsaBadgeElement;
1224
1193
  'usa-avatar-stack': UsaAvatarStackElement;
@@ -1638,14 +1607,14 @@ declare global {
1638
1607
  declare const COMPONENT_CATEGORIES: {
1639
1608
  readonly reveal: readonly ["usa-reveal", "usa-stagger", "usa-scroll-progress", "usa-scrolly"];
1640
1609
  readonly text: readonly ["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"];
1641
- readonly interaction: readonly ["usa-ripple", "usa-magnetic", "usa-tilt", "usa-spotlight", "usa-press", "usa-toggle"];
1610
+ readonly interaction: readonly ["usa-ripple", "usa-magnetic", "usa-tilt", "usa-spotlight", "usa-press"];
1642
1611
  readonly feedback: readonly ["usa-spinner", "usa-skeleton", "usa-progress", "usa-toaster", "usa-check"];
1643
1612
  readonly background: readonly ["usa-aurora", "usa-particles", "usa-grain", "usa-marquee", "usa-acrylic", "usa-grid-glow", "usa-blobs", "usa-water-ripple", "usa-dot-network"];
1644
1613
  readonly transitions: readonly ["usa-dialog", "usa-accordion", "usa-view-switch"];
1645
1614
  readonly physics: readonly ["usa-spring", "usa-draggable", "usa-overscroll"];
1646
1615
  readonly cards: readonly ["usa-card", "usa-card-stack", "usa-sticky-stack", "usa-carousel-3d"];
1647
1616
  readonly click: readonly ["usa-click", "usa-button", "usa-icon-morph", "usa-like", "usa-hold", "usa-double-tap", "usa-checkbox"];
1648
- readonly ui: readonly ["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"];
1617
+ readonly ui: readonly ["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"];
1649
1618
  readonly page: readonly ["usa-cursor", "usa-fullpage", "usa-loading-bar", "usa-back-to-top", "usa-ambient", "usa-splash", "usa-auto-skeleton", "usa-motion-switch"];
1650
1619
  readonly timeline: readonly ["usa-timeline"];
1651
1620
  readonly gesture: readonly ["usa-swipeable", "usa-pinch-zoom"];
@@ -1716,7 +1685,7 @@ declare function bindUsa(el: HTMLElement, binding?: UsaBinding): {
1716
1685
  * onMount(() => defineUsa(['click', 'ui']));
1717
1686
  * let on = false;
1718
1687
  * </script>
1719
- * <usa-toggle use:usa={{ props: { checked: on }, on: { change: (e) => (on = e.detail.checked) } }}></usa-toggle>
1688
+ * <usa-switch use:usa={{ props: { checked: on }, on: { change: (e) => (on = e.detail.checked) } }}></usa-switch>
1720
1689
  * ```
1721
1690
  * Plain `on:usa:change` does not compile in Svelte 3/4 (colon); use the action or `onusa:change` in Svelte 5.
1722
1691
  */
@@ -29,7 +29,7 @@ import './packs.js';
29
29
  import './fx.js';
30
30
  import '../chunks/registry-D23neB4M.js';
31
31
  import './a11y.js';
32
- import '../chunks/index-tags-DucKMQr_.js';
32
+ import '../chunks/index-tags-C04JP8g4.js';
33
33
  import './perf.js';
34
34
  import './bridge.js';
35
35
 
@@ -46,7 +46,7 @@ import './bridge.js';
46
46
  * onMount(() => defineUsa(['click', 'ui']));
47
47
  * let on = false;
48
48
  * </script>
49
- * <usa-toggle use:usa={{ props: { checked: on }, on: { change: (e) => (on = e.detail.checked) } }}></usa-toggle>
49
+ * <usa-switch use:usa={{ props: { checked: on }, on: { change: (e) => (on = e.detail.checked) } }}></usa-switch>
50
50
  * ```
51
51
  * Plain `on:usa:change` does not compile in Svelte 3/4 (colon); use the action or `onusa:change` in Svelte 5.
52
52
  */
@@ -1 +1 @@
1
- {"version":3,"file":"svelte.js","sources":["../../src/components/frameworks/svelte.ts"],"sourcesContent":["/**\n * motionary/components/svelte — Svelte integration (v3.8).\n * Svelte (3, 4, 5) renders `<usa-*>` tags natively; `use:usa` sets\n * **properties** and `usa:*` listeners in one place, and `defineUsa()`\n * registers the elements on the client only (safe in SvelteKit SSR).\n *\n * ```svelte\n * <script>\n * import { usa, defineUsa } from 'motionary/components/svelte';\n * import { onMount } from 'svelte';\n * onMount(() => defineUsa(['click', 'ui']));\n * let on = false;\n * </script>\n * <usa-toggle use:usa={{ props: { checked: on }, on: { change: (e) => (on = e.detail.checked) } }}></usa-toggle>\n * ```\n * Plain `on:usa:change` does not compile in Svelte 3/4 (colon); use the action or `onusa:change` in Svelte 5.\n */\nimport { defineComponents, type ComponentCategory } from '../index';\nimport { bindUsa, type UsaBinding } from './bind';\n\nexport { bindUsa, usaEventName } from './bind';\nexport type { UsaBinding } from './bind';\n\n/** Svelte action: `use:usa={{ props, on }}`. */\nexport function usa(node: HTMLElement, binding: UsaBinding = {}): { update(b: UsaBinding): void; destroy(): void } {\n return bindUsa(node, binding);\n}\n\n/** Register the elements (all, or some categories) — call from `onMount` for SSR apps. */\nexport function defineUsa(categories?: ComponentCategory[]): void {\n if (typeof window !== 'undefined') defineComponents(categories);\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;AAgBG;AAOH;SACgB,GAAG,CAAC,IAAiB,EAAE,UAAsB,EAAE,EAAA;AAC7D,IAAA,OAAO,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC;AAC/B;AAEA;AACM,SAAU,SAAS,CAAC,UAAgC,EAAA;IACxD,IAAI,OAAO,MAAM,KAAK,WAAW;QAAE,gBAAgB,CAAC,UAAU,CAAC;AACjE;;;;"}
1
+ {"version":3,"file":"svelte.js","sources":["../../src/components/frameworks/svelte.ts"],"sourcesContent":["/**\n * motionary/components/svelte — Svelte integration (v3.8).\n * Svelte (3, 4, 5) renders `<usa-*>` tags natively; `use:usa` sets\n * **properties** and `usa:*` listeners in one place, and `defineUsa()`\n * registers the elements on the client only (safe in SvelteKit SSR).\n *\n * ```svelte\n * <script>\n * import { usa, defineUsa } from 'motionary/components/svelte';\n * import { onMount } from 'svelte';\n * onMount(() => defineUsa(['click', 'ui']));\n * let on = false;\n * </script>\n * <usa-switch use:usa={{ props: { checked: on }, on: { change: (e) => (on = e.detail.checked) } }}></usa-switch>\n * ```\n * Plain `on:usa:change` does not compile in Svelte 3/4 (colon); use the action or `onusa:change` in Svelte 5.\n */\nimport { defineComponents, type ComponentCategory } from '../index';\nimport { bindUsa, type UsaBinding } from './bind';\n\nexport { bindUsa, usaEventName } from './bind';\nexport type { UsaBinding } from './bind';\n\n/** Svelte action: `use:usa={{ props, on }}`. */\nexport function usa(node: HTMLElement, binding: UsaBinding = {}): { update(b: UsaBinding): void; destroy(): void } {\n return bindUsa(node, binding);\n}\n\n/** Register the elements (all, or some categories) — call from `onMount` for SSR apps. */\nexport function defineUsa(categories?: ComponentCategory[]): void {\n if (typeof window !== 'undefined') defineComponents(categories);\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;AAgBG;AAOH;SACgB,GAAG,CAAC,IAAiB,EAAE,UAAsB,EAAE,EAAA;AAC7D,IAAA,OAAO,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC;AAC/B;AAEA;AACM,SAAU,SAAS,CAAC,UAAgC,EAAA;IACxD,IAAI,OAAO,MAAM,KAAK,WAAW;QAAE,gBAAgB,CAAC,UAAU,CAAC;AACjE;;;;"}