@mkbabb/glass-ui 4.0.1 → 4.1.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 (459) hide show
  1. package/dist/{CardAction-CW7a0m8M.js → CardAction-8whJrLWt.js} +23 -8
  2. package/dist/{CommandShortcut-DvZNQ_HF.js → CommandShortcut-D3yxgHNn.js} +23 -12
  3. package/dist/{ConfiguratorRow-BR4l-ixA.js → ConfiguratorRow-CaP7U3ZA.js} +11 -11
  4. package/dist/ContextMenuContent-B3ZsheLV.js +90 -0
  5. package/dist/{ContextMenuSubContent-xol4sD2q.js → ContextMenuSubContent-DDRID3qC.js} +15 -15
  6. package/dist/{DataTable-CuKwF7wr.js → DataTable-Bc9kUtu_.js} +2 -2
  7. package/dist/{DialogContent-DcKK8k9i.js → DialogContent-6JtTB5x2.js} +8 -5
  8. package/dist/DialogFooter-9phqcRIS.js +80 -0
  9. package/dist/DialogScrollContent-TTuovQst.js +93 -0
  10. package/dist/HoverCardContent-Bel1gdLZ.js +88 -0
  11. package/dist/{IconChip-BTD-nay5.js → IconChip-DhbdGdFQ.js} +1 -1
  12. package/dist/{IconTooltip-Bl8gFZ8d.js → IconTooltip-B0zimd2H.js} +1 -1
  13. package/dist/Input-Cg9DF62r.js +57 -0
  14. package/dist/{Notification-VUwexFUf.js → Notification-CphK7AAm.js} +3 -3
  15. package/dist/NumberFieldContent-D8cXeyO4.js +140 -0
  16. package/dist/PagerDots-Cjx96la-.js +98 -0
  17. package/dist/{SelectScrollDownButton-CrA8F0iV.js → SelectScrollDownButton-DAKCBEdW.js} +62 -57
  18. package/dist/{SelectSeparator-DXswVdRz.js → SelectSeparator-C2UGOkXF.js} +1 -1
  19. package/dist/Separator-DQcwC2TR.js +44 -0
  20. package/dist/Switch-B8RscmRu.js +49 -0
  21. package/dist/{Toaster-Bw4xR8xV.js → Toaster-D9qIHjBI.js} +1 -1
  22. package/dist/{ToggleGroupItem-pEM9vIhs.js → ToggleGroupItem-BLtr3TJq.js} +2 -2
  23. package/dist/TooltipProvider-BJ_Y5EGX.js +109 -0
  24. package/dist/animated-digit.js +1 -1
  25. package/dist/api/index.d.ts +15 -32
  26. package/dist/api/types-extra.d.ts +31 -0
  27. package/dist/api.js +1 -1
  28. package/dist/aurora.js +579 -251
  29. package/dist/border-progress.js +49 -57
  30. package/dist/{button-DYCUa-tH.js → button-5dY1Dvhd.js} +13 -14
  31. package/dist/button.js +1 -1
  32. package/dist/canvas.js +2 -3
  33. package/dist/card.js +1 -1
  34. package/dist/carousel.js +20 -20
  35. package/dist/color-Cs0-oxYL.js +116 -0
  36. package/dist/color.js +2 -2
  37. package/dist/command.js +1 -1
  38. package/dist/completion-seal.d.ts +1 -0
  39. package/dist/completion-seal.js +89 -0
  40. package/dist/components/custom/aurora/Aurora.vue.d.ts +10 -5
  41. package/dist/components/custom/aurora/composables/color.d.ts +13 -0
  42. package/dist/components/custom/aurora/composables/frameLoop.d.ts +9 -0
  43. package/dist/components/custom/aurora/composables/runtime.d.ts +12 -0
  44. package/dist/components/custom/aurora/composables/uniformBridgeWGPU.d.ts +11 -2
  45. package/dist/components/custom/aurora/composables/wgpuSetup.d.ts +8 -0
  46. package/dist/components/custom/aurora/constants/presets.d.ts +18 -0
  47. package/dist/components/custom/aurora/constants/renderMode.d.ts +16 -8
  48. package/dist/components/custom/aurora/constants/shaders/aurora-mediums.wgsl.d.ts +1 -0
  49. package/dist/components/custom/aurora/constants/shaders/aurora.wgsl.d.ts +1 -1
  50. package/dist/components/custom/border-progress/composables/spectrum-walk.d.ts +25 -0
  51. package/dist/components/custom/border-progress/composables/useBorderSpectrum.d.ts +14 -18
  52. package/dist/components/custom/border-progress/index.d.ts +1 -1
  53. package/dist/components/custom/completion-seal/CompletionSeal.vue.d.ts +21 -0
  54. package/dist/components/custom/completion-seal/composables/useCompletionSeal.d.ts +37 -0
  55. package/dist/components/custom/completion-seal/constants.d.ts +46 -0
  56. package/dist/components/custom/completion-seal/index.d.ts +4 -0
  57. package/dist/components/custom/concentric/composables/concentricGLSetup.d.ts +7 -0
  58. package/dist/components/custom/concentric/composables/concentricWGPUSetup.d.ts +9 -0
  59. package/dist/components/custom/concentric/composables/ringField.d.ts +57 -16
  60. package/dist/components/custom/concentric/composables/uniformBridgeWGPU.d.ts +2 -1
  61. package/dist/components/custom/concentric/composables/useConcentric.d.ts +4 -4
  62. package/dist/components/custom/concentric/constants.d.ts +30 -6
  63. package/dist/components/custom/concentric/index.d.ts +2 -2
  64. package/dist/components/custom/concentric/shaders/concentric.glsl.d.ts +2 -2
  65. package/dist/components/custom/concentric/shaders/concentric.wgsl.d.ts +1 -1
  66. package/dist/components/custom/confirm-dialog/ConfirmDialog.vue.d.ts +3 -3
  67. package/dist/components/custom/constellation/Constellation.vue.d.ts +5 -4
  68. package/dist/components/custom/constellation/composables/constellationGLSetup.d.ts +10 -0
  69. package/dist/components/custom/constellation/composables/constellationWGPUSetup.d.ts +19 -0
  70. package/dist/components/custom/constellation/composables/uniformBridgeWGPU.d.ts +66 -0
  71. package/dist/components/custom/constellation/composables/useConstellation.d.ts +3 -10
  72. package/dist/components/custom/constellation/constants.d.ts +33 -0
  73. package/dist/components/custom/constellation/constellationField.d.ts +31 -1
  74. package/dist/components/custom/constellation/constellationInteraction.d.ts +23 -14
  75. package/dist/components/custom/constellation/constellationRender.d.ts +25 -0
  76. package/dist/components/custom/constellation/constellationTypes.d.ts +38 -0
  77. package/dist/components/custom/constellation/constellationWell.d.ts +15 -0
  78. package/dist/components/custom/constellation/index.d.ts +5 -5
  79. package/dist/components/custom/constellation/shaders/constellation-lines.glsl.d.ts +2 -0
  80. package/dist/components/custom/constellation/shaders/constellation-lines.wgsl.d.ts +1 -0
  81. package/dist/components/custom/constellation/shaders/constellation-points.glsl.d.ts +2 -0
  82. package/dist/components/custom/constellation/shaders/constellation-points.wgsl.d.ts +1 -0
  83. package/dist/components/custom/deck/DeckPager.vue.d.ts +29 -0
  84. package/dist/components/custom/deck/composables/useDeck.d.ts +27 -0
  85. package/dist/components/custom/deck/composables/useDeckKeyboard.d.ts +25 -0
  86. package/dist/components/custom/deck/composables/useDeckSpring.d.ts +22 -0
  87. package/dist/components/custom/deck/constants.d.ts +14 -0
  88. package/dist/components/custom/deck/index.d.ts +8 -0
  89. package/dist/components/custom/dock/DockIconButton.vue.d.ts +12 -0
  90. package/dist/components/custom/dock/DockStack.vue.d.ts +65 -0
  91. package/dist/components/custom/dock/GlassDock.vue.d.ts +4 -2
  92. package/dist/components/custom/dock/composables/dockMorphMeasure.d.ts +80 -0
  93. package/dist/components/custom/dock/composables/index.d.ts +2 -0
  94. package/dist/components/custom/dock/composables/useDockSearch.d.ts +85 -0
  95. package/dist/components/custom/dock/composables/useDockShellProps.d.ts +11 -0
  96. package/dist/components/custom/dock/constants.d.ts +18 -14
  97. package/dist/components/custom/dock/index.d.ts +5 -2
  98. package/dist/components/custom/dot-flow-field/DotFlowField.vue.d.ts +15 -11
  99. package/dist/components/custom/dot-flow-field/composables/flowField.d.ts +48 -6
  100. package/dist/components/custom/dot-flow-field/composables/uniformBridgeWGPU.d.ts +23 -8
  101. package/dist/components/custom/dot-flow-field/composables/useDotFlowField.d.ts +6 -5
  102. package/dist/components/custom/dot-flow-field/composables/useFlowParticles.d.ts +18 -5
  103. package/dist/components/custom/dot-flow-field/constants.d.ts +42 -21
  104. package/dist/components/custom/dot-flow-field/index.d.ts +2 -2
  105. package/dist/components/custom/dot-flow-field/shaders/flow-field.compute.wgsl.d.ts +1 -1
  106. package/dist/components/custom/dot-flow-field/shaders/flow-field.glsl.d.ts +4 -20
  107. package/dist/components/custom/dot-flow-field/shaders/flow-field.render.wgsl.d.ts +1 -1
  108. package/dist/components/custom/dot-matrix/DotMatrix.vue.d.ts +43 -0
  109. package/dist/components/custom/dot-matrix/composables/dotMatrixField.d.ts +89 -0
  110. package/dist/components/custom/dot-matrix/composables/uniformBridgeWGPU.d.ts +52 -0
  111. package/dist/components/custom/dot-matrix/composables/useDotMatrix.d.ts +34 -0
  112. package/dist/components/custom/dot-matrix/composables/useDotSphere.d.ts +27 -0
  113. package/dist/components/custom/dot-matrix/constants.d.ts +58 -0
  114. package/dist/components/custom/dot-matrix/index.d.ts +5 -0
  115. package/dist/components/custom/dot-matrix/shaders/dot-matrix.glsl.d.ts +4 -0
  116. package/dist/components/custom/dot-matrix/shaders/dot-matrix.wgsl.d.ts +1 -0
  117. package/dist/components/custom/easing/EasingPicker.vue.d.ts +2 -2
  118. package/dist/components/custom/easing/composables/useEasingPicker.d.ts +5 -0
  119. package/dist/components/custom/expandable-container/ExpandableContainer.vue.d.ts +11 -0
  120. package/dist/components/custom/fourier-field/FourierField.vue.d.ts +40 -47
  121. package/dist/components/custom/fourier-field/composables/fourierFieldGLSetup.d.ts +15 -0
  122. package/dist/components/custom/fourier-field/composables/fourierFieldWGPUSetup.d.ts +20 -0
  123. package/dist/components/custom/fourier-field/composables/uniformBridgeWGPU.d.ts +41 -0
  124. package/dist/components/custom/fourier-field/composables/useFourierField.d.ts +40 -37
  125. package/dist/components/custom/fourier-field/constants.d.ts +61 -4
  126. package/dist/components/custom/fourier-field/index.d.ts +23 -18
  127. package/dist/components/custom/fourier-field/shaders/fourier-field.compute.wgsl.d.ts +1 -0
  128. package/dist/components/custom/fourier-field/shaders/fourier-field.glsl.d.ts +4 -0
  129. package/dist/components/custom/fourier-field/shaders/fourier-field.render.wgsl.d.ts +1 -0
  130. package/dist/components/custom/goo-blob/GooBlob.vue.d.ts +9 -1
  131. package/dist/components/custom/goo-blob/constants.d.ts +1 -1
  132. package/dist/components/custom/goo-blob/index.d.ts +1 -1
  133. package/dist/components/custom/goo-blob/shaders/metaball-noise.wgsl.d.ts +1 -0
  134. package/dist/components/custom/goo-blob/shaders/metaball-palette.wgsl.d.ts +1 -0
  135. package/dist/components/custom/goo-blob/shaders/metaball-uniforms.glsl.d.ts +1 -1
  136. package/dist/components/custom/goo-blob/shaders/metaball.wgsl.d.ts +1 -1
  137. package/dist/components/custom/goo-blob/types.d.ts +36 -0
  138. package/dist/components/custom/goo-dot-matrix/GooDotMatrix.vue.d.ts +49 -0
  139. package/dist/components/custom/goo-dot-matrix/composables/gooDotLattice.d.ts +24 -0
  140. package/dist/components/custom/goo-dot-matrix/composables/gooDotSetup.d.ts +50 -0
  141. package/dist/components/custom/goo-dot-matrix/composables/uniformBridgeWGPU.d.ts +35 -0
  142. package/dist/components/custom/goo-dot-matrix/composables/useGooDotMatrix.d.ts +31 -0
  143. package/dist/components/custom/goo-dot-matrix/constants.d.ts +76 -0
  144. package/dist/components/custom/goo-dot-matrix/index.d.ts +5 -0
  145. package/dist/components/custom/goo-dot-matrix/shaders/goo-dot.frag.d.ts +11 -0
  146. package/dist/components/custom/goo-dot-matrix/shaders/goo-dot.wgsl.d.ts +3 -0
  147. package/dist/components/custom/labeled-field/LabeledField.vue.d.ts +21 -2
  148. package/dist/components/custom/metric-stack/MetricRow.vue.d.ts +15 -0
  149. package/dist/components/custom/pager-dots/PagerDots.vue.d.ts +9 -0
  150. package/dist/components/custom/pager-dots/index.d.ts +2 -0
  151. package/dist/components/custom/pager-dots/pagerWindow.d.ts +9 -0
  152. package/dist/components/custom/paper-grid/PaperGrid.vue.d.ts +42 -0
  153. package/dist/components/custom/paper-grid/composables/paperGrid.d.ts +90 -0
  154. package/dist/components/custom/paper-grid/composables/paperGridGLSetup.d.ts +16 -0
  155. package/dist/components/custom/paper-grid/composables/paperGridWGPUSetup.d.ts +19 -0
  156. package/dist/components/custom/paper-grid/composables/uniformBridgeWGPU.d.ts +16 -0
  157. package/dist/components/custom/paper-grid/composables/usePaperGrid.d.ts +31 -0
  158. package/dist/components/custom/paper-grid/constants.d.ts +57 -0
  159. package/dist/components/custom/paper-grid/index.d.ts +5 -0
  160. package/dist/components/custom/paper-grid/shaders/paper-grid.glsl.d.ts +4 -0
  161. package/dist/components/custom/paper-grid/shaders/paper-grid.wgsl.d.ts +1 -0
  162. package/dist/components/custom/search/FuzzySearch.vue.d.ts +8 -2
  163. package/dist/components/custom/search/SearchBar.vue.d.ts +8 -0
  164. package/dist/components/custom/search/index.d.ts +2 -0
  165. package/dist/components/custom/search/searchVariants.d.ts +19 -0
  166. package/dist/components/custom/selectable-chip/SelectableChip.vue.d.ts +50 -0
  167. package/dist/components/custom/selectable-chip/index.d.ts +2 -0
  168. package/dist/components/custom/selectable-chip/selectableChipVariants.d.ts +23 -0
  169. package/dist/components/custom/split-chars/SplitChars.vue.d.ts +39 -0
  170. package/dist/components/custom/split-chars/index.d.ts +1 -0
  171. package/dist/components/custom/tabs/SegmentedTabs.vue.d.ts +8 -6
  172. package/dist/components/custom/tabs/constants.d.ts +20 -2
  173. package/dist/components/custom/watercolor-dot/WatercolorDot.vue.d.ts +29 -16
  174. package/dist/components/custom/watercolor-dot/useWatercolorBlob.d.ts +10 -5
  175. package/dist/components/ui/_shared/index.d.ts +2 -0
  176. package/dist/components/ui/_shared/useControlSize.d.ts +46 -0
  177. package/dist/components/ui/button/index.d.ts +1 -1
  178. package/dist/components/ui/card/Card.vue.d.ts +45 -0
  179. package/dist/components/ui/card/index.d.ts +1 -1
  180. package/dist/components/ui/carousel/CarouselNext.vue.d.ts +1 -1
  181. package/dist/components/ui/carousel/CarouselPrevious.vue.d.ts +1 -1
  182. package/dist/components/ui/command/CommandDialog.vue.d.ts +9 -3
  183. package/dist/components/ui/command/CommandList.vue.d.ts +3 -0
  184. package/dist/components/ui/context-menu/ContextMenuContent.vue.d.ts +5 -1
  185. package/dist/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +4 -0
  186. package/dist/components/ui/hover-card/HoverCardContent.vue.d.ts +3 -0
  187. package/dist/components/ui/input/Input.vue.d.ts +3 -0
  188. package/dist/components/ui/number-field/NumberFieldInput.vue.d.ts +6 -1
  189. package/dist/components/ui/select/SelectContent.vue.d.ts +3 -0
  190. package/dist/components/ui/switch/Switch.vue.d.ts +2 -0
  191. package/dist/components/ui/textarea/Textarea.vue.d.ts +3 -0
  192. package/dist/components/ui/tooltip/TooltipContent.vue.d.ts +3 -0
  193. package/dist/composables/color/index.d.ts +2 -0
  194. package/dist/composables/color/useAccentTone.d.ts +34 -0
  195. package/dist/composables/glass/useVizChoreography.d.ts +123 -0
  196. package/dist/composables/glass/webgl/createCanvasLifecycle.d.ts +10 -0
  197. package/dist/composables/glass/webgl/shaders/flow.wgsl.d.ts +1 -0
  198. package/dist/composables/glass/webgpu/index.d.ts +1 -1
  199. package/dist/composables/glass/webgpu/useGpuSubstrate.d.ts +28 -7
  200. package/dist/composables/glass/webgpu/useWebGPUCanvas.d.ts +1 -0
  201. package/dist/composables/glass/webgpu/webgpuDevice.d.ts +42 -0
  202. package/dist/composables/motion/core/index.d.ts +3 -0
  203. package/dist/composables/motion/scrollReader.d.ts +25 -0
  204. package/dist/composables/motion/springPresets.d.ts +20 -1
  205. package/dist/composables/motion/useCharStagger.d.ts +44 -0
  206. package/dist/composables/motion/useDockCtaReceive.d.ts +31 -6
  207. package/dist/composables/motion/useScrollChrome.d.ts +58 -0
  208. package/dist/composables/motion/useScrollTrigger.d.ts +67 -0
  209. package/dist/composables/motion/useSpringPress.d.ts +5 -5
  210. package/dist/composables/motion/useStaggerReveal.d.ts +24 -0
  211. package/dist/composables/sidebar/index.d.ts +4 -1
  212. package/dist/composables/sidebar/types.d.ts +68 -3
  213. package/dist/composables/sidebar/useClickDelegate.d.ts +4 -0
  214. package/dist/composables/sidebar/useLazyLoader.d.ts +5 -0
  215. package/dist/composables/sidebar/useScrollTo.d.ts +5 -0
  216. package/dist/composables/virtual/index.d.ts +4 -0
  217. package/dist/composables/virtual/useVirtualSectionWindow.d.ts +72 -0
  218. package/dist/composables/virtual/useWindowedStore.d.ts +43 -0
  219. package/dist/composables/virtual/virtualSectionLayout.d.ts +103 -0
  220. package/dist/concentric.js +495 -221
  221. package/dist/configurator.js +2 -2
  222. package/dist/confirm-dialog.js +62 -47
  223. package/dist/constellation.js +635 -235
  224. package/dist/context-menu.js +2 -2
  225. package/dist/controls.js +1 -1
  226. package/dist/createCanvasLifecycle-Gh45Ce-p.js +93 -0
  227. package/dist/dark.js +1 -1
  228. package/dist/data-table.js +1 -1
  229. package/dist/deck.d.ts +1 -0
  230. package/dist/deck.js +105 -0
  231. package/dist/dialog.js +4 -3
  232. package/dist/dock.js +602 -458
  233. package/dist/dot-flow-field.js +580 -290
  234. package/dist/dot-matrix.d.ts +1 -0
  235. package/dist/dot-matrix.js +630 -0
  236. package/dist/dotMatrixField-D_x9_1qq.js +48 -0
  237. package/dist/{dropdown-menu-CofSZuk8.js → dropdown-menu-aJmV5SqE.js} +83 -79
  238. package/dist/dropdown-menu.js +1 -1
  239. package/dist/easing.js +188 -176
  240. package/dist/expandable-container.js +42 -20
  241. package/dist/fading-scroll.js +1 -1
  242. package/dist/flow.glsl-B2P7e0MT.js +4 -0
  243. package/dist/forms.js +62 -60
  244. package/dist/fourier-field.js +825 -178
  245. package/dist/fourier-math.js +1 -1
  246. package/dist/glass-ui.css +1 -1
  247. package/dist/glass-ui.js +145 -104
  248. package/dist/goo-blob.js +171 -1228
  249. package/dist/goo-dot-matrix.d.ts +1 -0
  250. package/dist/goo-dot-matrix.js +591 -0
  251. package/dist/handmark.js +1 -1
  252. package/dist/hover-card.js +1 -1
  253. package/dist/hover-popover.js +1 -1
  254. package/dist/icon-chip.js +1 -1
  255. package/dist/icon-tooltip.js +1 -1
  256. package/dist/index.d.ts +2 -0
  257. package/dist/instrument-chassis.js +1 -1
  258. package/dist/keyboard.js +1 -1
  259. package/dist/labeled-field.js +70 -60
  260. package/dist/metric-cell.js +1 -1
  261. package/dist/metric-stack.js +11 -2
  262. package/dist/motion-core.js +54 -32
  263. package/dist/motion-curves.js +11 -1
  264. package/dist/motion.js +46 -111
  265. package/dist/notification.js +1 -1
  266. package/dist/number-field.js +1 -1
  267. package/dist/pager-dots.js +2 -91
  268. package/dist/paper-backdrop.js +1 -1
  269. package/dist/paper-grid.d.ts +1 -0
  270. package/dist/paper-grid.js +788 -0
  271. package/dist/{presets-BW2b-fr1.js → presets-CvOUqtdY.js} +3 -3
  272. package/dist/{procedural-color.glsl-CIFsJhwI.js → procedural-color.wgsl-m7Zgv35j.js} +2 -2
  273. package/dist/progress.js +1 -1
  274. package/dist/pulse.js +1 -1
  275. package/dist/reactive.js +1 -1
  276. package/dist/{useCanvas2D-B8w_E3Rr.js → resolveCanvasColor-yPyIpJt9.js} +12 -2
  277. package/dist/scrollReader-DI1NWxUw.js +42 -0
  278. package/dist/scrolling-text.js +1 -1
  279. package/dist/search.js +160 -304
  280. package/dist/select.js +3 -3
  281. package/dist/selectable-chip.d.ts +1 -0
  282. package/dist/selectable-chip.js +65 -0
  283. package/dist/separator.js +1 -1
  284. package/dist/{sheet-tZMg0E0w.js → sheet-B2flBfLH.js} +2 -2
  285. package/dist/sheet.js +1 -1
  286. package/dist/sidebar.js +216 -114
  287. package/dist/slider.js +1 -1
  288. package/dist/sortable-list.js +1 -1
  289. package/dist/spectrum-walk-BVzA7Biz.js +33 -0
  290. package/dist/{springPresets-CFQGQfdl.js → springPresets-Ce7OYCm9.js} +12 -6
  291. package/dist/styles/animations.css +13 -3
  292. package/dist/styles/cards.css +69 -0
  293. package/dist/styles/completion-seal.css +131 -0
  294. package/dist/styles/components.css +2 -3
  295. package/dist/styles/configurator.css +55 -0
  296. package/dist/styles/critical-partition.mjs +33 -11
  297. package/dist/styles/deferred.css +2 -0
  298. package/dist/styles/dock/cta-seat.css +87 -0
  299. package/dist/styles/dock/density.css +153 -0
  300. package/dist/styles/dock/layers.css +55 -7
  301. package/dist/styles/dock/morph-bridge.css +54 -18
  302. package/dist/styles/dock/morph.css +41 -33
  303. package/dist/styles/dock/overflow.css +12 -0
  304. package/dist/styles/dock/search.css +68 -0
  305. package/dist/styles/dock/shape.css +124 -0
  306. package/dist/styles/dock/shell.css +23 -5
  307. package/dist/styles/dock/stack-rail.css +264 -0
  308. package/dist/styles/dock-controls/dark-mode-toggle.css +17 -4
  309. package/dist/styles/dock-controls/icon-button.css +14 -0
  310. package/dist/styles/dock.css +11 -1
  311. package/dist/styles/glass/accent-tone.css +66 -0
  312. package/dist/styles/glass/control-surfaces.css +167 -0
  313. package/dist/styles/glass/ladder.css +67 -17
  314. package/dist/styles/glass/rim.css +19 -9
  315. package/dist/styles/glass/surfaces.css +69 -148
  316. package/dist/styles/glass.css +10 -0
  317. package/dist/styles/index.css +15 -0
  318. package/dist/styles/scroll-chrome.css +123 -0
  319. package/dist/styles/scroll-driven.css +38 -0
  320. package/dist/styles/segmented-tabs.css +50 -14
  321. package/dist/styles/theme/bridges.css +22 -0
  322. package/dist/styles/theme/radius.css +18 -1
  323. package/dist/styles/tokens/color-radius.css +13 -3
  324. package/dist/styles/tokens/dark-arm.css +39 -6
  325. package/dist/styles/tokens/glass-deep.css +28 -3
  326. package/dist/styles/tokens/glass-fx.css +44 -1
  327. package/dist/styles/tokens/glass.css +91 -31
  328. package/dist/styles/tokens/light-dark.css +1 -1
  329. package/dist/styles/tokens/offsets.css +27 -0
  330. package/dist/styles/tokens/property-regs.css +133 -0
  331. package/dist/styles/tokens/scale-paper.css +73 -29
  332. package/dist/styles/tokens/scheme-motion.css +44 -6
  333. package/dist/styles/tokens/sizing-config.css +110 -0
  334. package/dist/styles/tokens/sizing.css +55 -104
  335. package/dist/styles/tokens.css +5 -0
  336. package/dist/styles/typography/semantic.css +18 -5
  337. package/dist/styles/utilities/a11y-overrides.css +20 -5
  338. package/dist/styles/utilities/base-misc.css +52 -0
  339. package/dist/styles/utilities/btn.css +14 -3
  340. package/dist/styles/utilities/components.css +31 -6
  341. package/dist/styles/utilities/metal.css +26 -0
  342. package/dist/switch.js +1 -1
  343. package/dist/tabs.js +8 -8
  344. package/dist/timeline.js +1 -1
  345. package/dist/toast.js +1 -1
  346. package/dist/toggle-chip.js +10 -10
  347. package/dist/toggle-group.js +1 -1
  348. package/dist/tooltip.js +1 -1
  349. package/dist/typewriter.js +1 -1
  350. package/dist/uniformBridgeWGPU-CtAKl45L.js +1204 -0
  351. package/dist/{useAnimatedNumber-BfUq2bUM.js → useAnimatedNumber-CLrxicG9.js} +1 -1
  352. package/dist/{useConfiguratorState-DNlOh6c8.js → useConfiguratorState-4xblKfwd.js} +25 -24
  353. package/dist/useControlSize-SH1UmJCi.js +9 -0
  354. package/dist/useDockCtaReceive-DfFkmgL1.js +82 -0
  355. package/dist/{useDragMorph-DgxnsVJz.js → useDragMorph-BUgAC-zK.js} +4 -4
  356. package/dist/useFuzzySearch-DIhcYtcw.js +177 -0
  357. package/dist/useGpuSubstrate-4pTcp6mX.js +294 -0
  358. package/dist/{useLiquidPress-kfb4KX79.js → useLiquidPress-BooG97RY.js} +2 -2
  359. package/dist/usePointerVelocityField-QLsy3_kv.js +91 -0
  360. package/dist/useScrollChrome-D66AVP7C.js +258 -0
  361. package/dist/{useSpringMount-q1amq1SJ.js → useSpringMount-BWDnKIwh.js} +1 -1
  362. package/dist/useSpringPress-B1-Czp-V.js +36 -0
  363. package/dist/useViewTransition-CUI1nAgn.js +95 -0
  364. package/dist/{vendor-CKmzio-i.js → vendor-B2qOlYY3.js} +24 -11
  365. package/dist/virtual.d.ts +1 -0
  366. package/dist/virtual.js +225 -0
  367. package/dist/watercolor-dot.js +116 -73
  368. package/package.json +127 -7
  369. package/src/styles/animations.css +13 -3
  370. package/src/styles/cards.css +69 -0
  371. package/src/styles/completion-seal.css +131 -0
  372. package/src/styles/configurator.css +55 -0
  373. package/src/styles/critical-partition.mjs +33 -11
  374. package/src/styles/dock/cta-seat.css +87 -0
  375. package/src/styles/dock/density.css +153 -0
  376. package/src/styles/dock/layers.css +55 -7
  377. package/src/styles/dock/morph-bridge.css +54 -18
  378. package/src/styles/dock/morph.css +41 -33
  379. package/src/styles/dock/overflow.css +12 -0
  380. package/src/styles/dock/search.css +68 -0
  381. package/src/styles/dock/shape.css +124 -0
  382. package/src/styles/dock/shell.css +23 -5
  383. package/src/styles/dock/stack-rail.css +264 -0
  384. package/src/styles/dock-controls/dark-mode-toggle.css +17 -4
  385. package/src/styles/dock-controls/icon-button.css +14 -0
  386. package/src/styles/dock.css +11 -1
  387. package/src/styles/glass/accent-tone.css +66 -0
  388. package/src/styles/glass/control-surfaces.css +167 -0
  389. package/src/styles/glass/ladder.css +67 -17
  390. package/src/styles/glass/rim.css +19 -9
  391. package/src/styles/glass/surfaces.css +69 -148
  392. package/src/styles/glass.css +10 -0
  393. package/src/styles/index.css +15 -0
  394. package/src/styles/scroll-chrome.css +123 -0
  395. package/src/styles/scroll-driven.css +38 -0
  396. package/src/styles/segmented-tabs.css +50 -14
  397. package/src/styles/theme/bridges.css +22 -0
  398. package/src/styles/theme/radius.css +18 -1
  399. package/src/styles/tokens/color-radius.css +13 -3
  400. package/src/styles/tokens/dark-arm.css +39 -6
  401. package/src/styles/tokens/glass-deep.css +28 -3
  402. package/src/styles/tokens/glass-fx.css +44 -1
  403. package/src/styles/tokens/glass.css +91 -31
  404. package/src/styles/tokens/light-dark.css +1 -1
  405. package/src/styles/tokens/offsets.css +27 -0
  406. package/src/styles/tokens/property-regs.css +133 -0
  407. package/src/styles/tokens/scale-paper.css +73 -29
  408. package/src/styles/tokens/scheme-motion.css +44 -6
  409. package/src/styles/tokens/sizing-config.css +110 -0
  410. package/src/styles/tokens/sizing.css +55 -104
  411. package/src/styles/tokens.css +5 -0
  412. package/src/styles/typography/semantic.css +18 -5
  413. package/src/styles/utilities/a11y-overrides.css +20 -5
  414. package/src/styles/utilities/base-misc.css +52 -0
  415. package/src/styles/utilities/btn.css +14 -3
  416. package/src/styles/utilities/components.css +31 -6
  417. package/src/styles/utilities/metal.css +26 -0
  418. package/dist/ContextMenuContent-uWnVxDab.js +0 -85
  419. package/dist/DialogFooter-BZNX5aVr.js +0 -165
  420. package/dist/HoverCardContent-b2uaAMRR.js +0 -83
  421. package/dist/Input-h9v5LeXf.js +0 -55
  422. package/dist/NumberFieldContent-Cq7EzX-U.js +0 -138
  423. package/dist/Separator-pKF0oA4M.js +0 -37
  424. package/dist/Switch-CwYNf8bo.js +0 -47
  425. package/dist/TooltipProvider-rzvnXz60.js +0 -104
  426. package/dist/color-DweYl7pE.js +0 -86
  427. package/dist/components/custom/constellation/composables/useConstellationPointer.d.ts +0 -35
  428. package/dist/components/custom/constellation/constellationDraw.d.ts +0 -30
  429. package/dist/components/custom/dock/DockRail.vue.d.ts +0 -89
  430. package/dist/createCanvasLifecycle-CHD5XrDW.js +0 -82
  431. package/dist/procedural-color.wgsl-CToRHugY.js +0 -224
  432. package/dist/resolveCanvasColor-CUyHr5Uu.js +0 -11
  433. package/dist/styles/dock/rail-extend.css +0 -397
  434. package/dist/usePointerVelocityField-JbRd5CrM.js +0 -137
  435. package/dist/useRAFLoop-UYa4zoiN.js +0 -109
  436. package/dist/useSpringPress-BsqPr7FJ.js +0 -34
  437. package/src/styles/dock/rail-extend.css +0 -397
  438. /package/dist/{FadingScroll-DI6hQhT9.js → FadingScroll-DLRbH5Xr.js} +0 -0
  439. /package/dist/{HoverPopover-CbqbNwgU.js → HoverPopover-BcIxvyqZ.js} +0 -0
  440. /package/dist/{InstrumentChassis-Bx0F_q5g.js → InstrumentChassis-CxsHSyMj.js} +0 -0
  441. /package/dist/{PaperBackdrop-Vf3tlpvd.js → PaperBackdrop-CqwjnfLv.js} +0 -0
  442. /package/dist/{Progress-DctG61iZ.js → Progress-CnqB7gLm.js} +0 -0
  443. /package/dist/{ScrollingText-yOpBzFYq.js → ScrollingText-CTZbA_cG.js} +0 -0
  444. /package/dist/{SelectGroup-DwwjicPY.js → SelectGroup-BFiod7X2.js} +0 -0
  445. /package/dist/{compile-CQEFRTmx.js → compile-nZ1xVYTp.js} +0 -0
  446. /package/dist/{constants-BPOqYJAm.js → constants--C2DkLW8.js} +0 -0
  447. /package/dist/{math-BINYmg5z.js → math-Eb0w3LqU.js} +0 -0
  448. /package/dist/{prng-Za0Rmgag.js → prng-B-d9eYX8.js} +0 -0
  449. /package/dist/{slider-DVb4HXU-.js → slider-2A0rPn79.js} +0 -0
  450. /package/dist/{useGlobalDark-C28t0VWJ.js → useGlobalDark-CmjB9E32.js} +0 -0
  451. /package/dist/{useIntersectionPause-Bj4sPkMh.js → useIntersectionPause-Dbozzjgm.js} +0 -0
  452. /package/dist/{useInterval-CvK1mL92.js → useInterval-CNdua40W.js} +0 -0
  453. /package/dist/{useKeyboardShortcuts-BXWXOZ-9.js → useKeyboardShortcuts-BPRp33Im.js} +0 -0
  454. /package/dist/{useLiquidFlex-mZPMiNXh.js → useLiquidFlex-UmA6LMZu.js} +0 -0
  455. /package/dist/{useScrollProgress-D7bYU2RK.js → useScrollProgress-c3yxmH6a.js} +0 -0
  456. /package/dist/{useSortable-DHjtZSEd.js → useSortable-BVqlJRBR.js} +0 -0
  457. /package/dist/{useTextHighlight-CWEi25hf.js → useTextHighlight-NmBM5V_4.js} +0 -0
  458. /package/dist/{vReveal-Czsb7zQC.js → vReveal-D9k0jADx.js} +0 -0
  459. /package/dist/{vSpecular-CQFmLNzA.js → vSpecular-EX7loENl.js} +0 -0
package/dist/easing.js CHANGED
@@ -1,111 +1,114 @@
1
- import { f as e, x as t } from "./vendor-CKmzio-i.js";
2
- import { a as n, i as r, o as i, r as a, s as o } from "./SelectScrollDownButton-CrA8F0iV.js";
3
- import { n as s, t as c } from "./ConfiguratorRow-BR4l-ixA.js";
4
- import { Fragment as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createTextVNode as h, createVNode as g, defineComponent as _, isRef as v, mergeModels as y, onUnmounted as ee, openBlock as b, ref as x, renderList as S, renderSlot as te, toDisplayString as C, unref as w, useModel as T, useTemplateRef as ne, vModelText as re, watch as E, withCtx as D, withDirectives as ie } from "vue";
5
- import { CSSCubicBezier as O, bezierPresets as k, jumpTerms as A, steppedEase as j } from "@mkbabb/value.js";
1
+ import { S as e, p as t } from "./vendor-B2qOlYY3.js";
2
+ import { a as n, i as r, o as i, r as a, s as o } from "./SelectScrollDownButton-DAKCBEdW.js";
3
+ import { n as s } from "./slider-2A0rPn79.js";
4
+ import { n as c, t as l } from "./ConfiguratorRow-CaP7U3ZA.js";
5
+ import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createTextVNode as g, createVNode as _, defineComponent as v, mergeModels as y, onUnmounted as b, openBlock as x, ref as S, renderList as C, renderSlot as ee, toDisplayString as w, unref as T, useModel as E, useTemplateRef as te, watch as D, withCtx as O } from "vue";
6
+ import { CSSCubicBezier as k, bezierPresets as A, jumpTerms as j, parseSteps as M, steppedEase as N } from "@mkbabb/value.js";
6
7
  //#region src/components/custom/easing/constants.ts
7
- var M = "custom", N = "ease-out-back", P = (e) => 1 - e, F = .1, I = .6, ae = .1, oe = .15, L = 1200, se = 1400, R = Object.keys(k);
8
- function z(e = {}) {
9
- let t = x(e.initialMode ?? "bezier"), n = x(e.initialPreset ?? "ease-out-back"), r = x([...k[n.value in k ? n.value : N]]);
8
+ var P = "custom", F = "ease-out-back", I = (e) => 1 - e, L = .1, R = .6, ne = .1, re = .15, z = 1200, ie = 1400, B = Object.keys(A);
9
+ function V(e = {}) {
10
+ let t = S(e.initialMode ?? "bezier"), n = S(e.initialPreset ?? "ease-out-back"), r = S([...A[n.value in A ? n.value : F]]);
10
11
  function i(e) {
11
12
  n.value = e;
12
- let t = k[e];
13
+ let t = A[e];
13
14
  t && (r.value = [...t]);
14
15
  }
15
16
  function a(e, t, i) {
16
- let a = Math.max(0, Math.min(1, t)), o = Math.max(-I, Math.min(1 + I, i)), s = [...r.value];
17
- s[e * 2] = +a.toFixed(3), s[e * 2 + 1] = +o.toFixed(3), r.value = s, n.value = M;
17
+ let a = Math.max(0, Math.min(1, t)), o = Math.max(-R, Math.min(1 + R, i)), s = [...r.value];
18
+ s[e * 2] = +a.toFixed(3), s[e * 2 + 1] = +o.toFixed(3), r.value = s, n.value = P;
18
19
  }
19
- let o = x(e.initialSteps ?? 4), s = x(e.initialTerm ?? "end"), c = u(() => {
20
- if (t.value === "steps") return j(o.value, s.value) ?? ((e) => e);
20
+ let o = S(e.initialSteps ?? 4), s = S(e.initialTerm ?? "end"), c = d(() => {
21
+ if (t.value === "steps") return N(o.value, s.value) ?? ((e) => e);
21
22
  let [e, n, i, a] = r.value;
22
- return O(e, n, i, a);
23
- }), l = u(() => {
23
+ return k(e, n, i, a);
24
+ }), l = d(() => {
24
25
  if (t.value === "steps") return `steps(${o.value}, ${s.value})`;
25
26
  let [e, n, i, a] = r.value.map((e) => +e.toFixed(3));
26
27
  return `cubic-bezier(${e}, ${n}, ${i}, ${a})`;
27
- }), d = u(() => ({
28
+ }), u = d(() => {
29
+ if (t.value !== "steps") return !0;
30
+ let e = M(l.value);
31
+ return e != null && e.count === o.value && e.jumpTerm === s.value;
32
+ }), f = d(() => ({
28
33
  mode: t.value,
29
34
  css: l.value,
30
35
  fn: c.value,
31
36
  points: [...r.value],
32
37
  steps: o.value,
33
38
  term: s.value
34
- })), f = u(() => {
39
+ })), p = d(() => {
35
40
  let [e, t, n, i] = r.value;
36
41
  return [{
37
42
  x: e,
38
- y: P(t)
43
+ y: I(t)
39
44
  }, {
40
45
  x: n,
41
- y: P(i)
46
+ y: I(i)
42
47
  }];
43
- }), p = u(() => {
44
- let [e, t] = f.value;
48
+ }), m = d(() => {
49
+ let [e, t] = p.value;
45
50
  return `M 0 1 C ${e.x} ${e.y}, ${t.x} ${t.y}, 1 0`;
46
- }), m = u(() => {
51
+ }), h = d(() => {
47
52
  let e = c.value, t = "";
48
53
  for (let n = 0; n <= 240; n++) {
49
- let r = n / 240, i = P(e(r));
54
+ let r = n / 240, i = I(e(r));
50
55
  t += n === 0 ? `M ${r} ${i}` : ` L ${r} ${i}`;
51
56
  }
52
57
  return t;
53
- }), h = u(() => {
58
+ }), g = d(() => {
54
59
  let e = [
55
60
  0,
56
61
  1,
57
- f.value[0].y,
58
- f.value[1].y
62
+ p.value[0].y,
63
+ p.value[1].y
59
64
  ];
60
- for (let t = 0; t <= 16; t++) e.push(P(c.value(t / 16)));
61
- let t = Math.max(Math.min(...e), -I) - F;
65
+ for (let t = 0; t <= 16; t++) e.push(I(c.value(t / 16)));
66
+ let t = Math.max(Math.min(...e), -R) - L;
62
67
  return {
63
68
  minY: t,
64
- height: Math.min(Math.max(...e), 1 + I) + F - t
69
+ height: Math.min(Math.max(...e), 1 + R) + L - t
65
70
  };
66
- }), g = x(0), _ = 0;
67
- function v() {
68
- _ && cancelAnimationFrame(_), _ = 0;
69
- }
71
+ }), _ = S(0), v = 0;
70
72
  function y() {
71
- v();
73
+ v && cancelAnimationFrame(v), v = 0;
74
+ }
75
+ function b() {
76
+ y();
72
77
  let e = performance.now(), t = (n) => {
73
- let r = Math.min(1, (n - e) / L);
74
- g.value = r, _ = r < 1 ? requestAnimationFrame(t) : 0;
78
+ let r = Math.min(1, (n - e) / z);
79
+ _.value = r, v = r < 1 ? requestAnimationFrame(t) : 0;
75
80
  };
76
- _ = requestAnimationFrame(t);
81
+ v = requestAnimationFrame(t);
77
82
  }
78
83
  return {
79
84
  mode: t,
80
85
  preset: n,
81
86
  points: r,
82
- presetNames: R,
87
+ presetNames: B,
83
88
  selectPreset: i,
84
89
  setHandle: a,
85
90
  steps: o,
86
91
  term: s,
87
- terms: A,
92
+ terms: j,
88
93
  easingFn: c,
89
94
  readout: l,
90
- value: d,
91
- handlesSvg: f,
92
- bezierPathD: p,
93
- stepPathD: m,
94
- viewBox: h,
95
- progress: g,
96
- playTravel: y,
97
- stopTravel: v
95
+ reparseOk: u,
96
+ value: f,
97
+ handlesSvg: p,
98
+ bezierPathD: m,
99
+ stepPathD: h,
100
+ viewBox: g,
101
+ progress: _,
102
+ playTravel: b,
103
+ stopTravel: y
98
104
  };
99
105
  }
100
106
  //#endregion
101
107
  //#region src/components/custom/easing/EasingPicker.vue?vue&type=script&setup=true&lang.ts
102
- var ce = ["data-mode"], le = { class: "glass-card relative overflow-hidden rounded-card p-3" }, ue = ["viewBox", "aria-label"], de = ["x1", "x2"], B = ["y1", "y2"], V = ["x2", "y2"], H = ["x2", "y2"], fe = ["d"], pe = ["d"], me = ["cx", "cy"], he = ["cx", "cy"], ge = ["cx", "cy"], _e = { class: "flex flex-col gap-4" }, ve = {
108
+ var ae = ["data-mode"], oe = { class: "glass-card relative overflow-hidden rounded-card p-3" }, se = ["viewBox", "aria-label"], ce = ["x1", "x2"], le = ["y1", "y2"], ue = ["x2", "y2"], de = ["x2", "y2"], fe = ["d"], pe = ["d"], me = ["cx", "cy"], he = ["cx", "cy"], ge = ["cx", "cy"], _e = { class: "flex flex-col gap-4" }, ve = {
103
109
  key: 0,
104
110
  class: "flex flex-col gap-2"
105
- }, ye = { class: "flex flex-col gap-2" }, be = { class: "text-mono-caption text-muted-foreground" }, xe = ["min", "max"], Se = { class: "flex flex-col gap-2" }, U = {
106
- key: 2,
107
- class: "glass-card flex items-center gap-2 rounded-card px-3 py-2"
108
- }, Ce = ["title"], we = ["aria-label"], W = /* @__PURE__ */ _({
111
+ }, ye = { class: "flex flex-col gap-2" }, be = { class: "text-mono-caption text-muted-foreground" }, xe = { class: "flex flex-col gap-2" }, Se = ["data-reparse-ok"], Ce = ["title"], we = ["aria-label"], H = /* @__PURE__ */ v({
109
112
  __name: "EasingPicker",
110
113
  props: /* @__PURE__ */ y({
111
114
  mode: { default: "bezier" },
@@ -126,19 +129,19 @@ var ce = ["data-mode"], le = { class: "glass-card relative overflow-hidden round
126
129
  modelModifiers: {}
127
130
  }),
128
131
  emits: ["update:modelValue"],
129
- setup(s) {
130
- let c = s, _ = T(s, "modelValue"), { mode: y, preset: O, points: k, presetNames: A, selectPreset: j, setHandle: M, steps: N, term: F, terms: I, easingFn: L, readout: R, value: W, handlesSvg: G, bezierPathD: Te, stepPathD: Ee, viewBox: K, progress: q, playTravel: J, stopTravel: De } = z({
131
- initialMode: c.mode,
132
- initialPreset: c.preset,
133
- initialSteps: c.steps,
134
- initialTerm: c.term
132
+ setup(c) {
133
+ let l = c, v = E(c, "modelValue"), { mode: y, preset: k, points: A, presetNames: j, selectPreset: M, setHandle: N, steps: P, term: F, terms: L, easingFn: R, readout: z, reparseOk: B, value: H, handlesSvg: U, bezierPathD: Te, stepPathD: Ee, viewBox: W, progress: G, playTravel: K, stopTravel: q } = V({
134
+ initialMode: l.mode,
135
+ initialPreset: l.preset,
136
+ initialSteps: l.steps,
137
+ initialTerm: l.term
135
138
  });
136
- E(() => c.mode, (e) => {
139
+ D(() => l.mode, (e) => {
137
140
  y.value = e;
138
- }), E(W, (e) => _.value = e, { immediate: !0 }), ee(De);
139
- let Y = ne("svgEl"), X = x(null);
140
- function Z(e) {
141
- let t = Y.value;
141
+ }), D(H, (e) => v.value = e, { immediate: !0 }), b(q);
142
+ let J = te("svgEl"), Y = S(null);
143
+ function X(e) {
144
+ let t = J.value;
142
145
  if (!t) return {
143
146
  x: 0,
144
147
  y: 0
@@ -151,63 +154,68 @@ var ce = ["data-mode"], le = { class: "glass-card relative overflow-hidden round
151
154
  let r = n.inverse();
152
155
  return {
153
156
  x: r.a * e.clientX + r.c * e.clientY + r.e,
154
- y: P(r.b * e.clientX + r.d * e.clientY + r.f)
157
+ y: I(r.b * e.clientX + r.d * e.clientY + r.f)
155
158
  };
156
159
  }
157
- function Oe(e) {
160
+ function De(e) {
158
161
  if (y.value !== "bezier") return;
159
- let { x: t, y: n } = Z(e), r = e.pointerType === "touch" ? oe : ae, i = [{
160
- x: k.value[0],
161
- y: k.value[1]
162
+ let { x: t, y: n } = X(e), r = e.pointerType === "touch" ? re : ne, i = [{
163
+ x: A.value[0],
164
+ y: A.value[1]
162
165
  }, {
163
- x: k.value[2],
164
- y: k.value[3]
166
+ x: A.value[2],
167
+ y: A.value[3]
165
168
  }], a = null, o = Infinity;
166
169
  for (let e = 0; e < 2; e++) {
167
170
  let s = Math.hypot(i[e].x - t, i[e].y - n);
168
171
  s < r && s < o && (o = s, a = e);
169
172
  }
170
- a !== null && (e.preventDefault(), X.value = a, e.currentTarget.setPointerCapture(e.pointerId));
173
+ a !== null && (e.preventDefault(), Y.value = a, e.currentTarget.setPointerCapture(e.pointerId));
171
174
  }
172
- function ke(e) {
173
- if (X.value === null) return;
174
- let { x: t, y: n } = Z(e);
175
- M(X.value, t, n);
175
+ function Oe(e) {
176
+ if (Y.value === null) return;
177
+ let { x: t, y: n } = X(e);
178
+ N(Y.value, t, n);
176
179
  }
177
- function Q() {
178
- X.value = null;
180
+ function Z() {
181
+ Y.value = null;
179
182
  }
180
- let $ = x(!1);
181
- async function Ae() {
183
+ let Q = S(!1);
184
+ async function ke() {
182
185
  try {
183
- await navigator.clipboard.writeText(R.value), $.value = !0, setTimeout(() => $.value = !1, se);
186
+ await navigator.clipboard.writeText(z.value), Q.value = !0, setTimeout(() => Q.value = !1, ie);
184
187
  } catch {}
185
188
  }
186
- let je = u(() => y.value === "bezier" ? `0 ${K.value.minY} 1 ${K.value.height}` : "-0.05 -0.1 1.1 1.2");
187
- return (c, u) => (b(), p("div", {
189
+ let Ae = d(() => y.value === "bezier" ? `0 ${W.value.minY} 1 ${W.value.height}` : "-0.05 -0.1 1.1 1.2"), $ = d({
190
+ get: () => [P.value],
191
+ set: (e) => {
192
+ P.value = e[0] ?? P.value;
193
+ }
194
+ });
195
+ return (l, d) => (x(), m("div", {
188
196
  class: "grid gap-4 lg:grid-cols-[1fr_18rem]",
189
- "data-mode": w(y),
197
+ "data-mode": T(y),
190
198
  "data-testid": "easing-picker",
191
199
  style: { "--easing-curve-accent": "var(--motion-accent, var(--viz-legendre))" }
192
- }, [m("div", le, [(b(), p("svg", {
200
+ }, [h("div", oe, [(x(), m("svg", {
193
201
  ref_key: "svgEl",
194
- ref: Y,
202
+ ref: J,
195
203
  class: "block w-full touch-none select-none",
196
- viewBox: je.value,
204
+ viewBox: Ae.value,
197
205
  preserveAspectRatio: "xMidYMid meet",
198
206
  style: {
199
207
  "aspect-ratio": "1",
200
208
  "block-size": "clamp(200px, 38cqi, 320px)",
201
209
  "margin-inline": "auto"
202
210
  },
203
- "aria-label": s.label,
211
+ "aria-label": c.label,
204
212
  role: "img",
205
- onPointerdown: Oe,
206
- onPointermove: ke,
207
- onPointerup: Q,
208
- onPointercancel: Q
213
+ onPointerdown: De,
214
+ onPointermove: Oe,
215
+ onPointerup: Z,
216
+ onPointercancel: Z
209
217
  }, [
210
- u[4] ||= m("rect", {
218
+ d[4] ||= h("rect", {
211
219
  x: "0",
212
220
  y: "0",
213
221
  width: "1",
@@ -216,7 +224,7 @@ var ce = ["data-mode"], le = { class: "glass-card relative overflow-hidden round
216
224
  class: "stroke-border",
217
225
  "stroke-width": "0.012"
218
226
  }, null, -1),
219
- u[5] ||= m("line", {
227
+ d[5] ||= h("line", {
220
228
  x1: "0",
221
229
  y1: "1",
222
230
  x2: "1",
@@ -225,11 +233,11 @@ var ce = ["data-mode"], le = { class: "glass-card relative overflow-hidden round
225
233
  "stroke-width": "0.006",
226
234
  "stroke-dasharray": "0.02 0.015"
227
235
  }, null, -1),
228
- (b(), p(l, null, S([
236
+ (x(), m(u, null, C([
229
237
  .25,
230
238
  .5,
231
239
  .75
232
- ], (e) => m("line", {
240
+ ], (e) => h("line", {
233
241
  key: "gx" + e,
234
242
  x1: e,
235
243
  y1: "0",
@@ -237,12 +245,12 @@ var ce = ["data-mode"], le = { class: "glass-card relative overflow-hidden round
237
245
  y2: "1",
238
246
  class: "stroke-border/40",
239
247
  "stroke-width": "0.006"
240
- }, null, 8, de)), 64)),
241
- (b(), p(l, null, S([
248
+ }, null, 8, ce)), 64)),
249
+ (x(), m(u, null, C([
242
250
  .25,
243
251
  .5,
244
252
  .75
245
- ], (e) => m("line", {
253
+ ], (e) => h("line", {
246
254
  key: "gy" + e,
247
255
  x1: "0",
248
256
  y1: e,
@@ -250,8 +258,8 @@ var ce = ["data-mode"], le = { class: "glass-card relative overflow-hidden round
250
258
  y2: e,
251
259
  class: "stroke-border/40",
252
260
  "stroke-width": "0.006"
253
- }, null, 8, B)), 64)),
254
- u[6] ||= m("text", {
261
+ }, null, 8, le)), 64)),
262
+ d[6] ||= h("text", {
255
263
  x: "0.05",
256
264
  y: "0.95",
257
265
  class: "fill-muted-foreground/60",
@@ -261,7 +269,7 @@ var ce = ["data-mode"], le = { class: "glass-card relative overflow-hidden round
261
269
  },
262
270
  "text-anchor": "start"
263
271
  }, "0", -1),
264
- u[7] ||= m("text", {
272
+ d[7] ||= h("text", {
265
273
  x: "0.95",
266
274
  y: "0.12",
267
275
  class: "fill-muted-foreground/60",
@@ -271,151 +279,155 @@ var ce = ["data-mode"], le = { class: "glass-card relative overflow-hidden round
271
279
  },
272
280
  "text-anchor": "end"
273
281
  }, "1", -1),
274
- w(y) === "bezier" ? (b(), p(l, { key: 0 }, [
275
- m("line", {
282
+ T(y) === "bezier" ? (x(), m(u, { key: 0 }, [
283
+ h("line", {
276
284
  x1: 0,
277
285
  y1: 1,
278
- x2: w(G)[0].x,
279
- y2: w(G)[0].y,
286
+ x2: T(U)[0].x,
287
+ y2: T(U)[0].y,
280
288
  class: "stroke-muted-foreground/50",
281
289
  "stroke-width": "0.02",
282
290
  "stroke-dasharray": "0.03 0.02"
283
- }, null, 8, V),
284
- m("line", {
291
+ }, null, 8, ue),
292
+ h("line", {
285
293
  x1: 1,
286
294
  y1: 0,
287
- x2: w(G)[1].x,
288
- y2: w(G)[1].y,
295
+ x2: T(U)[1].x,
296
+ y2: T(U)[1].y,
289
297
  class: "stroke-muted-foreground/50",
290
298
  "stroke-width": "0.02",
291
299
  "stroke-dasharray": "0.03 0.02"
292
- }, null, 8, H),
293
- m("path", {
294
- d: w(Te),
300
+ }, null, 8, de),
301
+ h("path", {
302
+ d: T(Te),
295
303
  fill: "none",
296
304
  class: "stroke-(--easing-curve-accent)",
297
305
  "stroke-width": "0.035",
298
306
  "stroke-linecap": "round"
299
307
  }, null, 8, fe)
300
- ], 64)) : (b(), p("path", {
308
+ ], 64)) : (x(), m("path", {
301
309
  key: 1,
302
- d: w(Ee),
310
+ d: T(Ee),
303
311
  fill: "none",
304
312
  class: "stroke-(--easing-curve-accent)",
305
313
  "stroke-width": "0.025",
306
314
  "stroke-linejoin": "miter",
307
315
  "stroke-linecap": "butt"
308
316
  }, null, 8, pe)),
309
- u[8] ||= m("circle", {
317
+ d[8] ||= h("circle", {
310
318
  cx: "0",
311
319
  cy: "1",
312
320
  r: "0.018",
313
321
  class: "fill-muted-foreground/50"
314
322
  }, null, -1),
315
- u[9] ||= m("circle", {
323
+ d[9] ||= h("circle", {
316
324
  cx: "1",
317
325
  cy: "0",
318
326
  r: "0.018",
319
327
  class: "fill-muted-foreground/50"
320
328
  }, null, -1),
321
- w(y) === "bezier" ? (b(), p(l, { key: 2 }, [m("circle", {
322
- cx: w(G)[0].x,
323
- cy: w(G)[0].y,
329
+ T(y) === "bezier" ? (x(), m(u, { key: 2 }, [h("circle", {
330
+ cx: T(U)[0].x,
331
+ cy: T(U)[0].y,
324
332
  r: "0.04",
325
333
  class: "fill-foreground stroke-background",
326
334
  "stroke-width": "0.02",
327
335
  style: { cursor: "move" }
328
- }, null, 8, me), m("circle", {
329
- cx: w(G)[1].x,
330
- cy: w(G)[1].y,
336
+ }, null, 8, me), h("circle", {
337
+ cx: T(U)[1].x,
338
+ cy: T(U)[1].y,
331
339
  r: "0.04",
332
340
  class: "fill-foreground stroke-background",
333
341
  "stroke-width": "0.02",
334
342
  style: { cursor: "move" }
335
- }, null, 8, he)], 64)) : f("", !0),
336
- s.playback ? (b(), p("circle", {
343
+ }, null, 8, he)], 64)) : p("", !0),
344
+ c.playback ? (x(), m("circle", {
337
345
  key: 3,
338
- cx: w(q),
339
- cy: 1 - w(L)(w(q)),
346
+ cx: T(G),
347
+ cy: 1 - T(R)(T(G)),
340
348
  r: "0.03",
341
349
  class: "fill-(--easing-curve-accent)"
342
- }, null, 8, ge)) : f("", !0)
343
- ], 40, ue))]), m("div", _e, [
344
- w(y) === "bezier" ? (b(), p("div", ve, [u[10] ||= m("span", { class: "text-mono-caption text-muted-foreground" }, "Preset", -1), g(w(o), {
345
- "model-value": w(O),
346
- "onUpdate:modelValue": u[0] ||= (e) => w(j)(String(e))
350
+ }, null, 8, ge)) : p("", !0)
351
+ ], 40, se))]), h("div", _e, [
352
+ T(y) === "bezier" ? (x(), m("div", ve, [d[10] ||= h("span", { class: "text-mono-caption text-muted-foreground" }, "Preset", -1), _(T(o), {
353
+ "model-value": T(k),
354
+ "onUpdate:modelValue": d[0] ||= (e) => T(M)(String(e))
347
355
  }, {
348
- default: D(() => [g(w(n), null, {
349
- default: D(() => [g(w(i), { placeholder: "Pick a curve" })]),
356
+ default: O(() => [_(T(n), null, {
357
+ default: O(() => [_(T(i), { placeholder: "Pick a curve" })]),
350
358
  _: 1
351
- }), g(w(r), null, {
352
- default: D(() => [(b(!0), p(l, null, S(w(A), (e) => (b(), d(w(a), {
359
+ }), _(T(r), null, {
360
+ default: O(() => [(x(!0), m(u, null, C(T(j), (e) => (x(), f(T(a), {
353
361
  key: e,
354
362
  value: e
355
363
  }, {
356
- default: D(() => [h(C(e), 1)]),
364
+ default: O(() => [g(w(e), 1)]),
357
365
  _: 2
358
366
  }, 1032, ["value"]))), 128))]),
359
367
  _: 1
360
368
  })]),
361
369
  _: 1
362
- }, 8, ["model-value"])])) : (b(), p(l, { key: 1 }, [m("div", ye, [m("span", be, "Steps (n) — " + C(w(N)), 1), ie(m("input", {
363
- "onUpdate:modelValue": u[1] ||= (e) => v(N) ? N.value = e : null,
364
- type: "range",
365
- min: w(1),
366
- max: w(12),
367
- step: "1",
368
- class: "w-full accent-(--easing-curve-accent)",
369
- "aria-label": "Step count"
370
- }, null, 8, xe), [[
371
- re,
372
- w(N),
373
- void 0,
374
- { number: !0 }
375
- ]])]), m("div", Se, [u[11] ||= m("span", { class: "text-mono-caption text-muted-foreground" }, "Jump term", -1), g(w(o), {
376
- "model-value": w(F),
377
- "onUpdate:modelValue": u[2] ||= (e) => F.value = String(e)
370
+ }, 8, ["model-value"])])) : (x(), m(u, { key: 1 }, [h("div", ye, [h("span", be, "Steps (n) — " + w(T(P)), 1), _(T(s), {
371
+ modelValue: $.value,
372
+ "onUpdate:modelValue": d[1] ||= (e) => $.value = e,
373
+ min: T(1),
374
+ max: T(12),
375
+ step: 1,
376
+ "aria-label": "Step count",
377
+ "data-testid": "easing-steps-n"
378
+ }, null, 8, [
379
+ "modelValue",
380
+ "min",
381
+ "max"
382
+ ])]), h("div", xe, [d[11] ||= h("span", { class: "text-mono-caption text-muted-foreground" }, "Jump term", -1), _(T(o), {
383
+ "model-value": T(F),
384
+ "onUpdate:modelValue": d[2] ||= (e) => F.value = String(e)
378
385
  }, {
379
- default: D(() => [g(w(n), null, {
380
- default: D(() => [g(w(i), { placeholder: "Pick a jump term" })]),
386
+ default: O(() => [_(T(n), { "aria-label": "Jump term" }, {
387
+ default: O(() => [_(T(i), { placeholder: "Pick a jump term" })]),
381
388
  _: 1
382
- }), g(w(r), null, {
383
- default: D(() => [(b(!0), p(l, null, S(w(I), (e) => (b(), d(w(a), {
389
+ }), _(T(r), null, {
390
+ default: O(() => [(x(!0), m(u, null, C(T(L), (e) => (x(), f(T(a), {
384
391
  key: e,
385
392
  value: e
386
393
  }, {
387
- default: D(() => [h(C(e), 1)]),
394
+ default: O(() => [g(w(e), 1)]),
388
395
  _: 2
389
396
  }, 1032, ["value"]))), 128))]),
390
397
  _: 1
391
398
  })]),
392
399
  _: 1
393
400
  }, 8, ["model-value"])])], 64)),
394
- s.readout ? (b(), p("div", U, [m("code", {
401
+ c.readout ? (x(), m("div", {
402
+ key: 2,
403
+ class: "glass-card flex items-center gap-2 rounded-card px-3 py-2",
404
+ "data-reparse-ok": T(B),
405
+ "data-testid": "easing-readout"
406
+ }, [h("code", {
395
407
  class: "min-w-0 flex-1 truncate text-xs text-foreground",
396
- title: w(R)
397
- }, C(w(R)), 9, Ce), m("button", {
408
+ title: T(z)
409
+ }, w(T(z)), 9, Ce), h("button", {
398
410
  type: "button",
399
411
  class: "shrink-0 rounded-pill p-1.5 text-muted-foreground transition-colors hover:bg-(--surface-tint-8) hover:text-foreground",
400
- "aria-label": $.value ? "Copied" : "Copy curve literal",
401
- onClick: Ae
402
- }, [$.value ? (b(), d(w(t), {
412
+ "aria-label": Q.value ? "Copied" : "Copy curve literal",
413
+ onClick: ke
414
+ }, [Q.value ? (x(), f(T(e), {
403
415
  key: 0,
404
416
  class: "size-4 text-(--easing-curve-accent)"
405
- })) : (b(), d(w(e), {
417
+ })) : (x(), f(T(t), {
406
418
  key: 1,
407
419
  class: "size-4"
408
- }))], 8, we)])) : f("", !0),
409
- s.playback ? (b(), p("button", {
420
+ }))], 8, we)], 8, Se)) : p("", !0),
421
+ c.playback ? (x(), m("button", {
410
422
  key: 3,
411
423
  type: "button",
412
424
  class: "btn-pill glass-btn rounded-pill px-3 py-2 text-sm text-foreground",
413
- onClick: u[3] ||= (...e) => w(J) && w(J)(...e)
414
- }, C(w(y) === "steps" ? "Climb the staircase" : "Trace the curve"), 1)) : f("", !0),
415
- te(c.$slots, "footer", { value: w(W) })
416
- ])], 8, ce));
425
+ onClick: d[3] ||= (...e) => T(K) && T(K)(...e)
426
+ }, w(T(y) === "steps" ? "Climb the staircase" : "Trace the curve"), 1)) : p("", !0),
427
+ ee(l.$slots, "footer", { value: T(H) })
428
+ ])], 8, ae));
417
429
  }
418
- }), G = /* @__PURE__ */ _({
430
+ }), U = /* @__PURE__ */ v({
419
431
  __name: "EasingConfigurator",
420
432
  props: /* @__PURE__ */ y({
421
433
  label: { default: "Easing" },
@@ -430,16 +442,16 @@ var ce = ["data-mode"], le = { class: "glass-card relative overflow-hidden round
430
442
  }),
431
443
  emits: ["update:modelValue"],
432
444
  setup(e) {
433
- let t = T(e, "modelValue");
434
- return (n, r) => (b(), d(w(s), {
445
+ let t = E(e, "modelValue");
446
+ return (n, r) => (x(), f(T(c), {
435
447
  label: e.label,
436
448
  sub: e.name
437
449
  }, {
438
- default: D(() => [g(w(c), {
450
+ default: O(() => [_(T(l), {
439
451
  label: "Curve",
440
452
  name: t.value?.css
441
453
  }, {
442
- default: D(() => [g(W, {
454
+ default: O(() => [_(H, {
443
455
  modelValue: t.value,
444
456
  "onUpdate:modelValue": r[0] ||= (e) => t.value = e,
445
457
  mode: e.mode,
@@ -460,4 +472,4 @@ var ce = ["data-mode"], le = { class: "glass-card relative overflow-hidden round
460
472
  }
461
473
  });
462
474
  //#endregion
463
- export { G as EasingConfigurator, W as EasingPicker, z as useEasingPicker };
475
+ export { U as EasingConfigurator, H as EasingPicker, V as useEasingPicker };