@mkbabb/glass-ui 3.12.0 → 4.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 (436) hide show
  1. package/dist/CardAction-XH4YBVEK.js +158 -0
  2. package/dist/{CommandShortcut-CefCj5mt.js → CommandShortcut-DdtWXxOK.js} +58 -53
  3. package/dist/{ContextMenuSubContent-Bhg4f5jX.js → ContextMenuSubContent-B0Vs6atR.js} +4 -4
  4. package/dist/{DataTable-CUHMukiQ.js → DataTable-C464Zbqd.js} +99 -97
  5. package/dist/DialogContent-DDE6pQBU.js +103 -0
  6. package/dist/{DialogFooter-Gprw8H_A.js → DialogFooter-8eZbdmPc.js} +2 -2
  7. package/dist/FadingScroll-DwNnvKMs.js +76 -0
  8. package/dist/{HoverPopover-2LOIW34a.js → HoverPopover-Dpzwvc4t.js} +1 -1
  9. package/dist/IconChip-BDw1j5mu.js +54 -0
  10. package/dist/{IconTooltip-Cus0fvK0.js → IconTooltip-DSjasZIt.js} +1 -1
  11. package/dist/MetricBadge-BpC0R_Ec.js +79 -0
  12. package/dist/{Notification-DLMhblXR.js → Notification-DKjKsQq8.js} +10 -10
  13. package/dist/{NumberFieldContent-BbLOh8RU.js → NumberFieldContent-1VtwDSgf.js} +3 -3
  14. package/dist/PopoverContent-BTorlp--.js +127 -0
  15. package/dist/{Progress-iEuD9pxG.js → Progress-hAT4gqGH.js} +97 -77
  16. package/dist/{ScrollingText-BPP84wKo.js → ScrollingText-CUVFTWk2.js} +2 -2
  17. package/dist/{SelectScrollDownButton-T32cVFeM.js → SelectScrollDownButton-C1jb3b3K.js} +24 -8
  18. package/dist/{Switch-Ch-k3Rv-.js → Switch-Dr--uLGH.js} +2 -2
  19. package/dist/{Toaster-1rYWrmAm.js → Toaster-Bm_HQSpc.js} +55 -52
  20. package/dist/{ToggleGroupItem-COu_4IW4.js → ToggleGroupItem-Dzk9hWsF.js} +18 -22
  21. package/dist/animated-digit.js +3 -3
  22. package/dist/api/index.d.ts +10 -4
  23. package/dist/api.js +1 -1
  24. package/dist/aurora.js +113 -98
  25. package/dist/{badge-CaoFJzRb.js → badge-UILT_3pZ.js} +1 -1
  26. package/dist/badge.js +1 -1
  27. package/dist/{button-DN39cGqL.js → button-BNDWhAZb.js} +12 -12
  28. package/dist/button.js +1 -1
  29. package/dist/card.js +1 -1
  30. package/dist/carousel.d.ts +1 -1
  31. package/dist/carousel.js +101 -145
  32. package/dist/{check-BBKKKSTf.js → check-njhk-vfu.js} +1 -1
  33. package/dist/{chevron-down-BSkTP2aL.js → chevron-down-DKkxb4VV.js} +1 -1
  34. package/dist/{chevron-right-sDM0Yvrf.js → chevron-right-CPXbqQQz.js} +1 -1
  35. package/dist/{chevron-up-CCOD_FTz.js → chevron-up-n_24SqI-.js} +1 -1
  36. package/dist/coalesceMetric-5qIeZnTx.js +13 -0
  37. package/dist/collapsible.js +1 -1
  38. package/dist/{color-C5ls_QF7.js → color-DweYl7pE.js} +9 -7
  39. package/dist/color-swatch.d.ts +1 -0
  40. package/dist/color-swatch.js +47 -0
  41. package/dist/color.js +1 -1
  42. package/dist/command.js +1 -1
  43. package/dist/components/custom/animated-digit/AnimatedDigit.vue.d.ts +8 -0
  44. package/dist/components/custom/aurora/constants/presets.d.ts +16 -45
  45. package/dist/components/custom/aurora/constants/renderMode.d.ts +2 -0
  46. package/dist/components/custom/aurora/constants/shaders/mediums.glsl.d.ts +1 -1
  47. package/dist/components/custom/aurora/constants/shaders/vangogh-medium.glsl.d.ts +1 -0
  48. package/dist/components/custom/color-swatch/ColorSwatch.vue.d.ts +22 -0
  49. package/dist/components/custom/color-swatch/index.d.ts +1 -0
  50. package/dist/components/custom/configurator/Configurator.vue.d.ts +19 -8
  51. package/dist/components/custom/configurator/ConfiguratorRow.vue.d.ts +16 -0
  52. package/dist/components/custom/constellation/Constellation.vue.d.ts +23 -143
  53. package/dist/components/custom/constellation/composables/createConstellationField.d.ts +41 -0
  54. package/dist/components/custom/constellation/composables/useConstellation.d.ts +26 -0
  55. package/dist/components/custom/constellation/composables/useConstellationPointer.d.ts +35 -0
  56. package/dist/components/custom/constellation/constants.d.ts +61 -0
  57. package/dist/components/custom/constellation/constellationDraw.d.ts +30 -0
  58. package/dist/components/custom/constellation/constellationField.d.ts +3 -403
  59. package/dist/components/custom/constellation/constellationInteraction.d.ts +132 -0
  60. package/dist/components/custom/constellation/constellationTypes.d.ts +369 -0
  61. package/dist/components/custom/constellation/index.d.ts +5 -2
  62. package/dist/components/custom/controls/DarkModeToggle.vue.d.ts +11 -0
  63. package/dist/components/custom/dock/DockRail.vue.d.ts +89 -0
  64. package/dist/components/custom/dock/DockSection.vue.d.ts +69 -0
  65. package/dist/components/custom/dock/DockSeparator.vue.d.ts +49 -1
  66. package/dist/components/custom/dock/DockTabButton.vue.d.ts +5 -6
  67. package/dist/components/custom/dock/GlassDock.vue.d.ts +5 -118
  68. package/dist/components/custom/dock/composables/dockMorphContext.d.ts +36 -0
  69. package/dist/components/custom/dock/composables/index.d.ts +1 -0
  70. package/dist/components/custom/dock/composables/useDockClickIntegrity.d.ts +23 -0
  71. package/dist/components/custom/dock/composables/useDockMorphWindow.d.ts +15 -0
  72. package/dist/components/custom/dock/composables/useDockOrientationMorph.d.ts +44 -0
  73. package/dist/components/custom/dock/composables/useDockShellProps.d.ts +165 -0
  74. package/dist/components/custom/dock/composables/useLayerTransition.d.ts +44 -0
  75. package/dist/components/custom/dock/constants.d.ts +83 -0
  76. package/dist/components/custom/dock/index.d.ts +5 -0
  77. package/dist/components/custom/expandable-container/ExpandableContainer.vue.d.ts +15 -37
  78. package/dist/components/custom/fading-scroll/FadingScroll.vue.d.ts +25 -0
  79. package/dist/components/custom/fading-scroll/composables/useFadingScroll.d.ts +31 -0
  80. package/dist/components/custom/fading-scroll/constants.d.ts +19 -0
  81. package/dist/components/custom/fading-scroll/index.d.ts +2 -0
  82. package/dist/components/custom/fourier-field/FourierField.vue.d.ts +7 -0
  83. package/dist/components/custom/fourier-field/index.d.ts +1 -1
  84. package/dist/components/custom/fourier-field/math.d.ts +34 -0
  85. package/dist/components/custom/fourier-field/presets.d.ts +54 -0
  86. package/dist/components/custom/glass-panel/GlassPanel.vue.d.ts +8 -0
  87. package/dist/components/custom/goo-blob/composables/buildMetaballProgram.d.ts +18 -0
  88. package/dist/components/custom/goo-blob/composables/uploadBlobUniforms.d.ts +41 -0
  89. package/dist/components/custom/goo-blob/composables/useBlobPointer.d.ts +4 -3
  90. package/dist/components/custom/goo-blob/composables/useMetaballRenderer.d.ts +21 -8
  91. package/dist/components/custom/goo-blob/constants.d.ts +57 -0
  92. package/dist/components/custom/goo-blob/shaders/metaball-uniforms.glsl.d.ts +1 -0
  93. package/dist/components/custom/handmark/brush.d.ts +33 -6
  94. package/dist/components/custom/handmark/{useHandMark.d.ts → composables/useHandMark.d.ts} +6 -4
  95. package/dist/components/custom/handmark/constants.d.ts +39 -0
  96. package/dist/components/custom/handmark/geometry.d.ts +14 -12
  97. package/dist/components/custom/handmark/index.d.ts +8 -2
  98. package/dist/components/custom/handmark/types.d.ts +9 -0
  99. package/dist/components/custom/icon-chip/IconChip.vue.d.ts +4 -0
  100. package/dist/components/custom/icon-chip/index.d.ts +2 -0
  101. package/dist/components/custom/icon-chip/types.d.ts +72 -0
  102. package/dist/components/custom/instrument-chassis/InstrumentChassis.vue.d.ts +17 -4
  103. package/dist/components/custom/labeled-field/LabeledField.vue.d.ts +37 -0
  104. package/dist/components/custom/labeled-field/LabeledSelect.vue.d.ts +6 -0
  105. package/dist/components/custom/labeled-field/LabeledSlider.vue.d.ts +6 -0
  106. package/dist/components/custom/labeled-field/LabeledSwitch.vue.d.ts +6 -0
  107. package/dist/components/custom/metric-badge/MetricBadge.vue.d.ts +11 -18
  108. package/dist/components/custom/metric-badge/index.d.ts +1 -0
  109. package/dist/components/custom/metric-cell/MetricCell.vue.d.ts +15 -4
  110. package/dist/components/custom/metric-stack/MetricRow.vue.d.ts +6 -4
  111. package/dist/components/custom/pager-dots/PagerDots.vue.d.ts +39 -0
  112. package/dist/components/custom/pager-dots/index.d.ts +2 -0
  113. package/dist/components/custom/tabs/SegmentedTabs.vue.d.ts +20 -25
  114. package/dist/components/custom/tabs/composables/useTabIndicator.d.ts +30 -21
  115. package/dist/components/custom/tabs/constants.d.ts +18 -0
  116. package/dist/components/custom/tabs/index.d.ts +1 -1
  117. package/dist/components/custom/watercolor-dot/WatercolorDot.vue.d.ts +14 -0
  118. package/dist/components/ui/_shared/index.d.ts +2 -0
  119. package/dist/components/ui/_shared/menuItemVariants.d.ts +19 -0
  120. package/dist/components/ui/_shared/useSurfaceAxis.d.ts +41 -0
  121. package/dist/components/ui/card/Card.vue.d.ts +16 -4
  122. package/dist/components/ui/carousel/index.d.ts +0 -1
  123. package/dist/components/ui/command/Command.vue.d.ts +3 -0
  124. package/dist/components/ui/dialog/DialogContent.vue.d.ts +8 -3
  125. package/dist/components/ui/drawer/Drawer.vue.d.ts +1 -0
  126. package/dist/components/ui/drawer/DrawerContent.vue.d.ts +5 -0
  127. package/dist/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +2 -2
  128. package/dist/components/ui/index.d.ts +0 -1
  129. package/dist/components/ui/metric-pill/MetricPill.vue.d.ts +6 -3
  130. package/dist/components/ui/popover/PopoverContent.vue.d.ts +3 -0
  131. package/dist/components/ui/progress/ProgressSectioned.vue.d.ts +14 -3
  132. package/dist/components/ui/select/SelectTrigger.vue.d.ts +27 -4
  133. package/dist/components/ui/sheet/SheetContent.vue.d.ts +6 -0
  134. package/dist/components/ui/skeleton/Skeleton.vue.d.ts +3 -0
  135. package/dist/components/ui/slider/index.d.ts +22 -19
  136. package/dist/components/ui/tabs/TabsIndicator.vue.d.ts +4 -1
  137. package/dist/components/ui/toast/use-toast.d.ts +2 -2
  138. package/dist/components/ui/toggle/Toggle.vue.d.ts +1 -1
  139. package/dist/components/ui/toggle/index.d.ts +1 -1
  140. package/dist/components/ui/toggle-group/ToggleGroup.vue.d.ts +1 -7
  141. package/dist/components/ui/toggle-group/ToggleGroupItem.vue.d.ts +1 -3
  142. package/dist/components/ui/toggle-group/toggleGroupContext.d.ts +0 -13
  143. package/dist/composables/color/index.d.ts +12 -0
  144. package/dist/composables/dark/useGlobalDark.d.ts +14 -12
  145. package/dist/composables/glass/index.d.ts +0 -1
  146. package/dist/composables/glass/useGlassBackdropLuminance.d.ts +59 -0
  147. package/dist/composables/glass/useSpecularTracking.d.ts +12 -3
  148. package/dist/composables/motion/core/index.d.ts +1 -1
  149. package/dist/composables/motion/curves.d.ts +48 -0
  150. package/dist/composables/motion/index.d.ts +2 -0
  151. package/dist/composables/motion/springPresets.d.ts +33 -0
  152. package/dist/composables/motion/suite.d.ts +2 -0
  153. package/dist/composables/motion/useLiquidFlex.d.ts +85 -0
  154. package/dist/composables/motion/useSpringMount.d.ts +1 -1
  155. package/dist/composables/motion/useViewTransition.d.ts +36 -1
  156. package/dist/configurator.js +1 -1
  157. package/dist/confirm-dialog.js +3 -3
  158. package/dist/constellation.js +373 -261
  159. package/dist/context-menu.js +2 -2
  160. package/dist/controls.js +48 -14
  161. package/dist/dark.js +1 -1
  162. package/dist/data-table.js +1 -1
  163. package/dist/dialog.js +2 -2
  164. package/dist/dock.js +901 -372
  165. package/dist/dockContext-Bu1Avy-a.js +17 -0
  166. package/dist/dom.js +5 -5
  167. package/dist/{dropdown-menu-D77jX6Df.js → dropdown-menu-BJ7E9js_.js} +11 -8
  168. package/dist/dropdown-menu.js +1 -1
  169. package/dist/expandable-container.js +44 -81
  170. package/dist/fading-scroll.d.ts +1 -0
  171. package/dist/fading-scroll.js +2 -0
  172. package/dist/forms.js +5 -5
  173. package/dist/fourier-field.js +140 -104
  174. package/dist/fourier-math.js +2 -2
  175. package/dist/glass-panel.js +90 -21
  176. package/dist/glass-ui.css +1 -1
  177. package/dist/glass-ui.js +230 -236
  178. package/dist/goo-blob.js +264 -228
  179. package/dist/handmark.js +203 -159
  180. package/dist/header-ribbon.js +1 -1
  181. package/dist/hover-card.js +1 -1
  182. package/dist/hover-popover.js +1 -1
  183. package/dist/icon-chip.d.ts +1 -0
  184. package/dist/icon-chip.js +2 -0
  185. package/dist/icon-tooltip.js +1 -1
  186. package/dist/index.d.ts +3 -5
  187. package/dist/instrument-chassis.js +1 -1
  188. package/dist/keyboard.js +1 -1
  189. package/dist/label.js +1 -1
  190. package/dist/labeled-field.js +28 -18
  191. package/dist/{math-DTpRVC0e.js → math-DeuJwLFx.js} +26 -2
  192. package/dist/{menuItemVariants-CCoBNkU5.js → menuItemVariants-DWRQXBxJ.js} +10 -4
  193. package/dist/metric-badge.js +1 -1
  194. package/dist/metric-cell.js +29 -22
  195. package/dist/metric-stack.js +35 -34
  196. package/dist/{minimize-2-lcXOuc6V.js → minimize-2-BV31Ob_h.js} +1 -1
  197. package/dist/motion-core.js +32 -136
  198. package/dist/motion-curves.d.ts +1 -0
  199. package/dist/motion-curves.js +130 -0
  200. package/dist/motion.js +38 -37
  201. package/dist/notification.js +1 -1
  202. package/dist/number-field.js +1 -1
  203. package/dist/pager-dots.d.ts +1 -0
  204. package/dist/pager-dots.js +91 -0
  205. package/dist/paper-backdrop.js +1 -1
  206. package/dist/popover.js +1 -1
  207. package/dist/progress.js +1 -1
  208. package/dist/pulse.js +1 -1
  209. package/dist/reactive.js +2 -2
  210. package/dist/scrolling-text.js +1 -1
  211. package/dist/{search-nbkvr2dC.js → search-BSGrf2Sk.js} +1 -1
  212. package/dist/search.js +10 -10
  213. package/dist/select.js +3 -3
  214. package/dist/separator.js +1 -1
  215. package/dist/sheet-CquRYOAw.js +218 -0
  216. package/dist/sheet.js +1 -1
  217. package/dist/{slider-ClgpP7EB.js → slider-DQ95MET2.js} +8 -8
  218. package/dist/slider.js +1 -1
  219. package/dist/sortable-list.js +3 -3
  220. package/dist/springPresets-WXaLbu8u.js +40 -0
  221. package/dist/stacked-icons.js +6 -6
  222. package/dist/styles/animations.css +25 -125
  223. package/dist/styles/cards.css +55 -0
  224. package/dist/styles/components.css +4 -1
  225. package/dist/styles/configurator.css +77 -0
  226. package/dist/styles/dock/density.css +19 -0
  227. package/dist/styles/dock/layer-group.css +83 -25
  228. package/dist/styles/dock/layers.css +23 -1
  229. package/dist/styles/dock/morph-bridge.css +123 -0
  230. package/dist/styles/dock/morph.css +175 -45
  231. package/dist/styles/dock/overflow.css +66 -1
  232. package/dist/styles/dock/rail-extend.css +397 -0
  233. package/dist/styles/dock/section.css +59 -0
  234. package/dist/styles/dock/shell.css +97 -110
  235. package/dist/styles/dock-controls/dark-mode-toggle.css +109 -0
  236. package/dist/styles/dock-controls/icon-button.css +143 -0
  237. package/dist/styles/dock-controls/tab-button.css +143 -0
  238. package/dist/styles/dock-controls/touch-floor.css +94 -0
  239. package/dist/styles/dock-controls/triggers.css +135 -0
  240. package/dist/styles/dock-controls.css +30 -595
  241. package/dist/styles/dock.css +8 -3
  242. package/dist/styles/drawer.css +48 -0
  243. package/dist/styles/feedback-tone.css +104 -0
  244. package/dist/styles/floating-panel.css +17 -0
  245. package/dist/styles/glass/a11y-fallback.css +245 -0
  246. package/dist/styles/glass/ladder.css +383 -0
  247. package/dist/styles/glass/material.css +238 -0
  248. package/dist/styles/glass/progress-rail.css +78 -0
  249. package/dist/styles/glass/squircle.css +66 -0
  250. package/dist/styles/glass/surface-axis.css +113 -0
  251. package/dist/styles/glass/surfaces.css +382 -0
  252. package/dist/styles/glass-refract.css +2 -0
  253. package/dist/styles/glass.css +34 -1188
  254. package/dist/styles/hover-popover.css +2 -0
  255. package/dist/styles/icon-chip.css +149 -0
  256. package/dist/styles/index.css +94 -18
  257. package/dist/styles/instrument-chassis.css +46 -0
  258. package/dist/styles/menu.css +127 -0
  259. package/dist/styles/paper.css +2 -68
  260. package/dist/styles/segmented-tabs.css +346 -0
  261. package/dist/styles/select.css +50 -0
  262. package/dist/styles/theme/bridges.css +347 -0
  263. package/dist/styles/theme/dark.css +7 -0
  264. package/dist/styles/theme/literals.css +94 -0
  265. package/dist/styles/theme/radius.css +95 -0
  266. package/dist/styles/theme.css +26 -529
  267. package/dist/styles/tokens/color-radius.css +287 -0
  268. package/dist/styles/tokens/dark-arm.css +308 -0
  269. package/dist/styles/tokens/glass.css +500 -0
  270. package/dist/styles/tokens/light-dark.css +187 -0
  271. package/dist/styles/tokens/offsets-sizing.css +562 -0
  272. package/dist/styles/tokens/property-regs.css +162 -0
  273. package/dist/styles/tokens/scale-paper.css +409 -0
  274. package/dist/styles/tokens/scheme-motion.css +352 -0
  275. package/dist/styles/tokens/shadow.css +166 -0
  276. package/dist/styles/tokens.css +22 -2360
  277. package/dist/styles/transitions.css +7 -7
  278. package/dist/styles/typography/scale.css +153 -0
  279. package/dist/styles/typography/semantic.css +220 -0
  280. package/dist/styles/typography/utilities.css +159 -0
  281. package/dist/styles/typography.css +23 -453
  282. package/dist/styles/utilities/a11y-overrides.css +169 -0
  283. package/dist/styles/utilities/animate.css +26 -0
  284. package/dist/styles/utilities/base.css +541 -0
  285. package/dist/styles/utilities/btn.css +218 -0
  286. package/dist/styles/utilities/components.css +317 -0
  287. package/dist/styles/utilities.css +19 -1318
  288. package/dist/styles/view-transition.css +4 -52
  289. package/dist/switch.js +1 -1
  290. package/dist/tabs.js +161 -181
  291. package/dist/timeline.js +2 -2
  292. package/dist/toast.js +1 -1
  293. package/dist/toggle-chip.js +3 -1
  294. package/dist/toggle-group.js +1 -1
  295. package/dist/tooltip.js +1 -1
  296. package/dist/typewriter.js +1 -1
  297. package/dist/{useAnimatedNumber-Bcpy5Etf.js → useAnimatedNumber-C_3wZLx4.js} +1 -1
  298. package/dist/useConfiguratorState-kiIlun8I.js +303 -0
  299. package/dist/useLiquidFlex-C12hXwOZ.js +30 -0
  300. package/dist/useRAFLoop-CdwJ7284.js +109 -0
  301. package/dist/{useScrollProgress-CffFGLa5.js → useScrollProgress-D7bYU2RK.js} +1 -1
  302. package/dist/useSpecularTracking-Bo5su68i.js +32 -0
  303. package/dist/useSpringMount-CvopqiFr.js +108 -0
  304. package/dist/useSurfaceAxis-CMnF2zHb.js +7 -0
  305. package/dist/{useTouchGate-WFyJYsth.js → useTouchGate-28Tk2-t2.js} +1 -1
  306. package/dist/useViewTransition-COsPjQVZ.js +47 -0
  307. package/dist/utils/coalesceMetric.d.ts +29 -0
  308. package/dist/utils/index.d.ts +1 -0
  309. package/dist/vReveal-D9k0jADx.js +10 -0
  310. package/dist/watercolor-dot.js +22 -13
  311. package/dist/{x-Dfsegz9Y.js → x-BUwTKe50.js} +1 -1
  312. package/package.json +134 -50
  313. package/src/styles/animations.css +25 -125
  314. package/src/styles/cards.css +53 -0
  315. package/src/styles/configurator.css +77 -0
  316. package/src/styles/dock/density.css +19 -0
  317. package/src/styles/dock/layer-group.css +83 -25
  318. package/src/styles/dock/layers.css +23 -1
  319. package/src/styles/dock/morph-bridge.css +123 -0
  320. package/src/styles/dock/morph.css +175 -45
  321. package/src/styles/dock/overflow.css +66 -1
  322. package/src/styles/dock/rail-extend.css +397 -0
  323. package/src/styles/dock/section.css +59 -0
  324. package/src/styles/dock/shell.css +97 -110
  325. package/src/styles/dock-controls/dark-mode-toggle.css +109 -0
  326. package/src/styles/dock-controls/icon-button.css +143 -0
  327. package/src/styles/dock-controls/tab-button.css +143 -0
  328. package/src/styles/dock-controls/touch-floor.css +94 -0
  329. package/src/styles/dock-controls/triggers.css +135 -0
  330. package/src/styles/dock-controls.css +30 -595
  331. package/src/styles/dock.css +8 -3
  332. package/src/styles/drawer.css +42 -0
  333. package/src/styles/feedback-tone.css +104 -0
  334. package/src/styles/floating-panel.css +15 -0
  335. package/src/styles/glass/a11y-fallback.css +245 -0
  336. package/src/styles/glass/ladder.css +383 -0
  337. package/src/styles/glass/material.css +238 -0
  338. package/src/styles/glass/progress-rail.css +78 -0
  339. package/src/styles/glass/squircle.css +66 -0
  340. package/src/styles/glass/surface-axis.css +113 -0
  341. package/src/styles/glass/surfaces.css +382 -0
  342. package/src/styles/glass.css +34 -1188
  343. package/src/styles/icon-chip.css +149 -0
  344. package/src/styles/index.css +93 -17
  345. package/src/styles/instrument-chassis.css +42 -0
  346. package/src/styles/menu.css +127 -0
  347. package/src/styles/paper.css +2 -68
  348. package/src/styles/segmented-tabs.css +340 -0
  349. package/src/styles/select.css +50 -0
  350. package/src/styles/theme/bridges.css +347 -0
  351. package/src/styles/theme/dark.css +7 -0
  352. package/src/styles/theme/literals.css +94 -0
  353. package/src/styles/theme/radius.css +95 -0
  354. package/src/styles/theme.css +26 -529
  355. package/src/styles/tokens/color-radius.css +287 -0
  356. package/src/styles/tokens/dark-arm.css +308 -0
  357. package/src/styles/tokens/glass.css +500 -0
  358. package/src/styles/tokens/light-dark.css +187 -0
  359. package/src/styles/tokens/offsets-sizing.css +562 -0
  360. package/src/styles/tokens/property-regs.css +162 -0
  361. package/src/styles/tokens/scale-paper.css +409 -0
  362. package/src/styles/tokens/scheme-motion.css +352 -0
  363. package/src/styles/tokens/shadow.css +166 -0
  364. package/src/styles/tokens.css +22 -2360
  365. package/src/styles/transitions.css +7 -7
  366. package/src/styles/typography/scale.css +153 -0
  367. package/src/styles/typography/semantic.css +220 -0
  368. package/src/styles/typography/utilities.css +159 -0
  369. package/src/styles/typography.css +23 -453
  370. package/src/styles/utilities/a11y-overrides.css +169 -0
  371. package/src/styles/utilities/animate.css +26 -0
  372. package/src/styles/utilities/base.css +541 -0
  373. package/src/styles/utilities/btn.css +218 -0
  374. package/src/styles/utilities/components.css +317 -0
  375. package/src/styles/utilities.css +19 -1318
  376. package/src/styles/view-transition.css +4 -52
  377. package/dist/CardAction-DuArVky-.js +0 -157
  378. package/dist/DeckProgress-Dmk4_AKN.js +0 -23
  379. package/dist/DialogContent-BRkT1cjP.js +0 -100
  380. package/dist/InstrumentRail-CUJ05YVG.js +0 -44
  381. package/dist/MetricBadge-BZVWIxNy.js +0 -80
  382. package/dist/PopoverContent-BId6ggf_.js +0 -121
  383. package/dist/TabsList-B8CVOQPC.js +0 -101
  384. package/dist/components/custom/deck-progress/DeckProgress.vue.d.ts +0 -27
  385. package/dist/components/custom/deck-progress/index.d.ts +0 -2
  386. package/dist/components/custom/dialog-native/GlassDialogNative.vue.d.ts +0 -57
  387. package/dist/components/custom/dialog-native/index.d.ts +0 -1
  388. package/dist/components/custom/instrument-rail/InstrumentRail.vue.d.ts +0 -91
  389. package/dist/components/custom/instrument-rail/index.d.ts +0 -2
  390. package/dist/components/ui/carousel/CarouselDots.vue.d.ts +0 -4
  391. package/dist/composables/motion/useRouteTransition.d.ts +0 -42
  392. package/dist/deck-progress.d.ts +0 -1
  393. package/dist/deck-progress.js +0 -2
  394. package/dist/dockContext-BKeIMmNk.js +0 -9
  395. package/dist/instrument-rail.d.ts +0 -1
  396. package/dist/instrument-rail.js +0 -2
  397. package/dist/sheet-VZEtNFvO.js +0 -214
  398. package/dist/styles/instrument-rail.css +0 -127
  399. package/dist/useConfiguratorState-DxAqksK6.js +0 -287
  400. package/dist/useGlassRenderer-D7YGOYiM.js +0 -69
  401. package/dist/useSpecularTracking-BVRZsRHA.js +0 -26
  402. package/dist/useSpringMount-BJSHcLl3.js +0 -113
  403. package/dist/useViewTransition-DaN5Zrox.js +0 -21
  404. package/dist/vReveal-zUIQk-rJ.js +0 -53
  405. package/src/styles/instrument-rail.css +0 -127
  406. /package/dist/{CollapsibleContent-CP9qF1v4.js → CollapsibleContent-C_s6fG7r.js} +0 -0
  407. /package/dist/{ContextMenuContent-DDa0v27s.js → ContextMenuContent-ON3x7cuk.js} +0 -0
  408. /package/dist/{HoverCardContent-B6CcQ8He.js → HoverCardContent-DkMaQzH5.js} +0 -0
  409. /package/dist/{Input-xuDwALQR.js → Input-DVG_J0ne.js} +0 -0
  410. /package/dist/{InstrumentChassis-C2f6cBaQ.js → InstrumentChassis-UUJX0-mW.js} +0 -0
  411. /package/dist/{Label-zRfbQdCn.js → Label-Ck9SWEKM.js} +0 -0
  412. /package/dist/{ModalOverlay-B1GkAjNb.js → ModalOverlay-CkPRRgl_.js} +0 -0
  413. /package/dist/{PaperBackdrop-CqwjnfLv.js → PaperBackdrop-nBKe0vkB.js} +0 -0
  414. /package/dist/{SelectGroup-BFiod7X2.js → SelectGroup-Dcczq44n.js} +0 -0
  415. /package/dist/{SelectSeparator-C4Ql0gzV.js → SelectSeparator-DK2y1Bun.js} +0 -0
  416. /package/dist/{Separator-D7sD7RKj.js → Separator-BArl4OaB.js} +0 -0
  417. /package/dist/{TooltipProvider-CmZzCuaG.js → TooltipProvider-B3MkB_8P.js} +0 -0
  418. /package/dist/{_plugin-vue_export-helper-ok8pgSl5.js → _plugin-vue_export-helper-CBt_VvXa.js} +0 -0
  419. /package/dist/{compile-BOXjLUxu.js → compile-EXXzEr1q.js} +0 -0
  420. /package/dist/{constants-yKeKnE84.js → constants-BPOqYJAm.js} +0 -0
  421. /package/dist/{createContext-B44Sah_H.js → createContext-B2RaZ-b8.js} +0 -0
  422. /package/dist/{createLucideIcon-B6uNAU9G.js → createLucideIcon-DydS2qgk.js} +0 -0
  423. /package/dist/{presets-BP_ALM0m.js → presets-BW2b-fr1.js} +0 -0
  424. /package/dist/{prng-D27-B3tK.js → prng-Cg22zv8g.js} +0 -0
  425. /package/dist/{supportsCssTimeline-C5oe0lnD.js → supportsCssTimeline-BWenxvHU.js} +0 -0
  426. /package/dist/{useGlobalDark-CAhOXNLO.js → useGlobalDark-C28t0VWJ.js} +0 -0
  427. /package/dist/{useIntersectionPause-Cck5Uxk8.js → useIntersectionPause-Bj4sPkMh.js} +0 -0
  428. /package/dist/{useInterval-Dsmqwi03.js → useInterval-CNdua40W.js} +0 -0
  429. /package/dist/{useKeyboardShortcuts-CyIYrndH.js → useKeyboardShortcuts-BXWXOZ-9.js} +0 -0
  430. /package/dist/{useResizeObserver-CWCbk5Px.js → useResizeObserver-V6nq5gJb.js} +0 -0
  431. /package/dist/{useResolveTokenColor-r9pnNjqK.js → useResolveTokenColor-NUG2zYAW.js} +0 -0
  432. /package/dist/{useSortable-C8ReQ50P.js → useSortable-BVqlJRBR.js} +0 -0
  433. /package/dist/{useTextHighlight-CWEi25hf.js → useTextHighlight-NmBM5V_4.js} +0 -0
  434. /package/dist/{useTimer-3xqf_54b.js → useTimer-B_PAasDL.js} +0 -0
  435. /package/dist/{useUserInvalidAria-DoJKMZ3s.js → useUserInvalidAria-CDfJuakL.js} +0 -0
  436. /package/dist/{useViewportReady-RIr5Wgkh.js → useViewportReady-CvBcCYDf.js} +0 -0
@@ -1,41 +1,36 @@
1
1
  import { t as e } from "./cn-DJXf4yaB.js";
2
2
  import { t } from "./useCanvas2D-ClrQuZtp.js";
3
- import { t as n } from "./_plugin-vue_export-helper-ok8pgSl5.js";
4
- import { n as r, t as i } from "./prng-D27-B3tK.js";
3
+ import { t as n } from "./_plugin-vue_export-helper-CBt_VvXa.js";
4
+ import { n as r, t as i } from "./prng-Cg22zv8g.js";
5
5
  import { computed as a, createElementBlock as o, createElementVNode as s, defineComponent as c, getCurrentInstance as l, normalizeClass as u, onMounted as d, openBlock as f, ref as p, unref as m, useTemplateRef as h } from "vue";
6
- //#region src/components/custom/constellation/constellationField.ts
7
- var g = 1280, _ = 8e3, v = 8e3, y = {
6
+ //#region src/components/custom/constellation/constants.ts
7
+ var g = 1280, _ = {
8
8
  node: "#b4afa3",
9
9
  nodeDim: "#cdc8bd",
10
10
  line: "#1c1714",
11
11
  edgeAlpha: .22,
12
12
  edgeFocusAlpha: .34,
13
- alpha: .84
14
- };
15
- function b(e) {
16
- if (typeof window > "u") return { ...y };
17
- let t = getComputedStyle(e), n = (e, n) => t.getPropertyValue(e).trim() || n, r = (e, n) => {
18
- let r = t.getPropertyValue(e).trim();
19
- if (!r) return n;
20
- let i = Number.parseFloat(r);
21
- return Number.isFinite(i) ? i : n;
22
- };
23
- return {
24
- node: n("--constellation-node", y.node),
25
- nodeDim: n("--constellation-node-dim", y.nodeDim),
26
- line: n("--constellation-line", y.line),
27
- edgeAlpha: r("--constellation-edge-alpha", y.edgeAlpha),
28
- edgeFocusAlpha: r("--constellation-edge-focus-alpha", y.edgeFocusAlpha),
29
- alpha: r("--constellation-alpha", y.alpha)
30
- };
31
- }
32
- function x(e) {
13
+ alpha: .8,
14
+ accent: "#b35030",
15
+ edgeFloor: 0,
16
+ edgeAccentAlpha: .3
17
+ }, v = .55, y = 1, b = {
18
+ gain: 14e3,
19
+ reach: 340,
20
+ ramp: 4,
21
+ maxSpeed: 4,
22
+ soften: 8,
23
+ holdMs: 140
24
+ }, x = 8e3, S = 8e3, C = .14, w = 2600, T = 6e3, E = 8e3, D = .72;
25
+ //#endregion
26
+ //#region src/components/custom/constellation/constellationInteraction.ts
27
+ function O(e) {
33
28
  let t = {
34
- response: A,
29
+ response: v,
35
30
  zeta: 1
36
- }, n = { ...N }, r = {
37
- minIdle: _,
38
- jitter: v
31
+ }, n = { ...b }, r = {
32
+ minIdle: x,
33
+ jitter: S
39
34
  };
40
35
  if (typeof window > "u") return {
41
36
  warp: t,
@@ -48,62 +43,21 @@ function x(e) {
48
43
  let r = Number.parseFloat(n);
49
44
  return Number.isFinite(r) ? r : t;
50
45
  };
51
- return t.response = a("--constellation-warp-response", A), t.zeta = a("--constellation-warp-zeta", 1), n.gain = a("--constellation-well-gain", N.gain), n.reach = a("--constellation-well-reach", N.reach), n.ramp = a("--constellation-well-ramp", N.ramp), n.maxSpeed = a("--constellation-well-max-speed", N.maxSpeed), n.holdMs = a("--constellation-well-hold-ms", N.holdMs), r.minIdle = a("--constellation-wander-idle", _), r.jitter = a("--constellation-wander-jitter", v), {
46
+ return t.response = a("--constellation-warp-response", v), t.zeta = a("--constellation-warp-zeta", 1), n.gain = a("--constellation-well-gain", b.gain), n.reach = a("--constellation-well-reach", b.reach), n.ramp = a("--constellation-well-ramp", b.ramp), n.maxSpeed = a("--constellation-well-max-speed", b.maxSpeed), n.holdMs = a("--constellation-well-hold-ms", b.holdMs), r.minIdle = a("--constellation-wander-idle", x), r.jitter = a("--constellation-wander-jitter", S), {
52
47
  warp: t,
53
48
  well: n,
54
49
  wander: r
55
50
  };
56
51
  }
57
- function S(e, t, n, r, i) {
58
- let a = [];
59
- for (let o = 0; o < t; o++) {
60
- let t = e() * Math.PI * 2;
61
- a.push({
62
- x: e() * n,
63
- y: e() * r,
64
- vx: Math.cos(t) * i,
65
- vy: Math.sin(t) * i,
66
- r: 1.6 + e() * 1.6,
67
- dim: e() < .45
68
- });
69
- }
70
- return a;
71
- }
72
- function C(e, t, n) {
73
- if (!(t > 0) || !(n > 0) || t === e.w && n === e.h) return;
74
- let r = e.w / t, i = e.h / n;
75
- for (let t of e.nodes) t.x *= r, t.y *= i;
76
- e.warp.x *= r, e.warp.y *= i;
77
- }
78
- function w(e, t, n, r, i = 0, a = 0, o = Math.random) {
79
- let { nodes: s, w: c, h: l } = e;
80
- for (let e = 0; e < s.length; e++) {
81
- let n = s[e];
82
- n.x += n.vx * t, n.y += n.vy * t, n.x < 0 ? (n.x = 0, n.vx *= -1) : n.x > c && (n.x = c, n.vx *= -1), n.y < 0 ? (n.y = 0, n.vy *= -1) : n.y > l && (n.y = l, n.vy *= -1);
83
- }
84
- if (r && r.x >= 0) {
85
- let e = 180 * t;
86
- for (let t = 0; t < s.length; t++) {
87
- let i = s[t], a = r.x - i.x, o = r.y - i.y, c = Math.hypot(a, o);
88
- if (c > .5 && c < e) {
89
- let t = Math.hypot(i.vx, i.vy) || n, r = (1 - c / e) * .08, s = i.vx + a / c * r * t, l = i.vy + o / c * r * t, u = Math.hypot(s, l) || 1;
90
- i.vx = s / u * t, i.vy = l / u * t;
91
- }
92
- }
93
- }
94
- if (k(e, t, n, i), F(e, i), e.wander && a > 0) {
95
- let t = e.wander;
96
- t.nextAt < 0 ? t.nextAt = a + t.minIdle + o() * t.jitter : a >= t.nextAt && z(e) && (I(e, B(e, o)), t.nextAt = a + t.minIdle + o() * t.jitter);
97
- }
98
- }
99
- var T = .001, E = 1.5, D = 7, O = 22;
100
- function k(e, t, n, r) {
52
+ var k = .001, A = 1.5, j = 7, M = 22;
53
+ function N(e, t, n, r) {
101
54
  let i = e.well;
102
55
  if (!i || !(r > 0)) return;
103
- let a = Math.min(r, M), o = i.cfg, s = i.target > 0 ? o.ramp : O, c = Math.min(s * a, 1);
104
- i.strength += (i.target - i.strength) * c, i.strength < T && (i.strength = i.target <= 0 ? 0 : i.strength);
105
- let { nodes: l } = e, u = o.reach * t, d = u * u, f = o.maxSpeed * t, p = i.target > 0 ? E : D, m = Math.min(p * a, 1), h = i.strength > T && i.x >= 0;
56
+ let a = Math.min(r, P), o = i.cfg, s = i.target > 0 ? o.ramp : M, c = Math.min(s * a, 1);
57
+ i.strength += (i.target - i.strength) * c, i.strength < k && (i.strength = i.target <= 0 ? 0 : i.strength);
58
+ let { nodes: l } = e, u = o.reach * t, d = u * u, f = o.maxSpeed * t, p = i.target > 0 ? A : j, m = Math.min(p * a, 1), h = i.strength > k && i.x >= 0, g = e.pinnedIndex;
106
59
  for (let e = 0; e < l.length; e++) {
60
+ if (e === g) continue;
107
61
  let t = l[e];
108
62
  if (h) {
109
63
  let e = i.x - t.x, n = i.y - t.y, r = e * e + n * n;
@@ -119,15 +73,8 @@ function k(e, t, n, r) {
119
73
  }
120
74
  }
121
75
  }
122
- var A = .55, j = 1, M = .05, N = {
123
- gain: 14e3,
124
- reach: 340,
125
- ramp: 4,
126
- maxSpeed: 4,
127
- soften: 8,
128
- holdMs: 140
129
- };
130
- function P(e, t, n, r = -1) {
76
+ var P = .05;
77
+ function F(e, t, n, r = -1) {
131
78
  let { nodes: i } = e, a = -1, o = Infinity;
132
79
  for (let e = 0; e < i.length; e++) {
133
80
  if (e === r) continue;
@@ -136,13 +83,13 @@ function P(e, t, n, r = -1) {
136
83
  }
137
84
  return a;
138
85
  }
139
- function F(e, t) {
86
+ function I(e, t) {
140
87
  let { warp: n, nodes: r } = e;
141
88
  if (!n || n.targetIdx < 0 || n.targetIdx >= r.length || !(t > 0)) return;
142
- let i = Math.min(t, M), a = e.warpCfg?.response ?? .55, o = e.warpCfg?.zeta ?? 1, s = 2 * Math.PI / a, c = r[n.targetIdx], l = -2 * o * s * n.vx - s * s * (n.x - c.x), u = -2 * o * s * n.vy - s * s * (n.y - c.y);
89
+ let i = Math.min(t, P), a = e.warpCfg?.response ?? .55, o = e.warpCfg?.zeta ?? 1, s = 2 * Math.PI / a, c = r[n.targetIdx], l = -2 * o * s * n.vx - s * s * (n.x - c.x), u = -2 * o * s * n.vy - s * s * (n.y - c.y);
143
90
  n.vx += l * i, n.vy += u * i, n.x += n.vx * i, n.y += n.vy * i;
144
91
  }
145
- function I(e, t) {
92
+ function L(e, t) {
146
93
  let { warp: n, nodes: r } = e;
147
94
  if (t < 0 || t >= r.length) {
148
95
  n.targetIdx = -1, e.focalIndex = -1;
@@ -150,20 +97,20 @@ function I(e, t) {
150
97
  }
151
98
  e.focalIndex = t, n.targetIdx = t;
152
99
  }
153
- function L(e, t, n) {
154
- let r = P(e, t, n, -1);
100
+ function R(e, t, n) {
101
+ let r = F(e, t, n, -1);
155
102
  if (r >= 0 && r === e.focalIndex) return e.focalIndex;
156
- let i = P(e, t, n, e.focalIndex);
157
- return i < 0 ? -1 : (I(e, i), i);
103
+ let i = F(e, t, n, e.focalIndex);
104
+ return i < 0 ? -1 : (L(e, i), i);
158
105
  }
159
- var R = 24;
160
- function z(e) {
106
+ var z = 24;
107
+ function B(e) {
161
108
  let { warp: t, nodes: n } = e;
162
109
  if (!t || t.targetIdx < 0 || t.targetIdx >= n.length) return !0;
163
110
  let r = n[t.targetIdx];
164
- return Math.hypot(t.x - r.x, t.y - r.y) < R;
111
+ return Math.hypot(t.x - r.x, t.y - r.y) < z;
165
112
  }
166
- function B(e, t) {
113
+ function V(e, t) {
167
114
  let n = e.nodes.length;
168
115
  if (n <= 1) return e.focalIndex;
169
116
  let r = e.focalIndex;
@@ -171,58 +118,336 @@ function B(e, t) {
171
118
  let i = Math.floor(t() * (n - 1));
172
119
  return i < r ? i : i + 1;
173
120
  }
174
- function V(e, t, n, r) {
175
- let { nodes: i, k: a } = t, o = n * a, s = o * o, c = r.edgeAlpha * r.alpha;
176
- e.strokeStyle = r.line, e.lineWidth = 1 * a;
177
- for (let t = 0; t < i.length; t++) {
178
- let n = i[t];
179
- for (let r = t + 1; r < i.length; r++) {
180
- let t = i[r], a = n.x - t.x, o = n.y - t.y, l = a * a + o * o;
181
- l > s || (e.globalAlpha = c * (1 - l / s), e.beginPath(), e.moveTo(n.x, n.y), e.lineTo(t.x, t.y), e.stroke());
121
+ function H(e = {}) {
122
+ return {
123
+ anchorX: 0,
124
+ anchorY: 0,
125
+ nextAt: -1,
126
+ legStart: -1,
127
+ fromX: 0,
128
+ fromY: 0,
129
+ toX: 0,
130
+ toY: 0,
131
+ wanderFrac: e.wanderFrac ?? .14,
132
+ durMs: e.durMs ?? 2600,
133
+ minIdle: e.minIdle ?? 6e3,
134
+ jitter: e.jitter ?? 8e3
135
+ };
136
+ }
137
+ function U(e) {
138
+ return e < .5 ? 2 * e * e : 1 - (-2 * e + 2) ** 2 / 2;
139
+ }
140
+ function W(e, t, n) {
141
+ let r = e.pinnedDrift;
142
+ if (!r || e.pinnedIndex < 0 || e.pinnedIndex >= e.nodes.length || !(t > 0)) return;
143
+ let i = e.nodes[e.pinnedIndex];
144
+ if (r.nextAt < 0) {
145
+ r.anchorX = i.x, r.anchorY = i.y, r.nextAt = t + r.minIdle + n() * r.jitter;
146
+ return;
147
+ }
148
+ if (r.legStart < 0) {
149
+ if (t < r.nextAt) return;
150
+ r.fromX = i.x, r.fromY = i.y;
151
+ let a = r.wanderFrac, o = r.anchorX + (n() * 2 - 1) * a * e.w, s = r.anchorY + (n() * 2 - 1) * a * e.h;
152
+ r.toX = Math.max(.04 * e.w, Math.min(.96 * e.w, o)), r.toY = Math.max(.04 * e.h, Math.min(.96 * e.h, s)), r.legStart = t;
153
+ }
154
+ let a = Math.min((t - r.legStart) / r.durMs, 1), o = U(a);
155
+ i.x = r.fromX + (r.toX - r.fromX) * o, i.y = r.fromY + (r.toY - r.fromY) * o, a >= 1 && (r.legStart = -1, r.nextAt = t + r.minIdle + n() * r.jitter);
156
+ }
157
+ //#endregion
158
+ //#region src/components/custom/constellation/constellationField.ts
159
+ function G(e, t, n, r, i) {
160
+ let a = [];
161
+ for (let o = 0; o < t; o++) {
162
+ let t = e() * Math.PI * 2;
163
+ a.push({
164
+ x: e() * n,
165
+ y: e() * r,
166
+ vx: Math.cos(t) * i,
167
+ vy: Math.sin(t) * i,
168
+ r: 1.6 + e() * 1.6,
169
+ dim: e() < .45
170
+ });
171
+ }
172
+ return a;
173
+ }
174
+ function K(e, t, n) {
175
+ if (!(t > 0) || !(n > 0) || t === e.w && n === e.h) return;
176
+ let r = e.w / t, i = e.h / n;
177
+ for (let t of e.nodes) t.x *= r, t.y *= i;
178
+ e.warp.x *= r, e.warp.y *= i;
179
+ }
180
+ function q(e, t, n, r, i = 0, a = 0, o = Math.random) {
181
+ let { nodes: s, w: c, h: l } = e, u = e.pinnedIndex;
182
+ for (let e = 0; e < s.length; e++) {
183
+ if (e === u) continue;
184
+ let n = s[e];
185
+ n.x += n.vx * t, n.y += n.vy * t, n.x < 0 ? (n.x = 0, n.vx *= -1) : n.x > c && (n.x = c, n.vx *= -1), n.y < 0 ? (n.y = 0, n.vy *= -1) : n.y > l && (n.y = l, n.vy *= -1);
186
+ }
187
+ if (r && r.x >= 0) {
188
+ let e = 180 * t;
189
+ for (let t = 0; t < s.length; t++) {
190
+ if (t === u) continue;
191
+ let i = s[t], a = r.x - i.x, o = r.y - i.y, c = Math.hypot(a, o);
192
+ if (c > .5 && c < e) {
193
+ let t = Math.hypot(i.vx, i.vy) || n, r = (1 - c / e) * .08, s = i.vx + a / c * r * t, l = i.vy + o / c * r * t, u = Math.hypot(s, l) || 1;
194
+ i.vx = s / u * t, i.vy = l / u * t;
195
+ }
196
+ }
197
+ }
198
+ if (N(e, t, n, i), W(e, a, o), I(e, i), e.warpAutoRelease && e.warp.targetIdx >= 0 && B(e) && (e.warp.targetIdx = -1), e.wander && a > 0) {
199
+ let t = e.wander;
200
+ t.nextAt < 0 ? t.nextAt = a + t.minIdle + o() * t.jitter : a >= t.nextAt && B(e) && (L(e, V(e, o)), t.nextAt = a + t.minIdle + o() * t.jitter);
201
+ }
202
+ }
203
+ //#endregion
204
+ //#region src/components/custom/constellation/constellationDraw.ts
205
+ function J(e) {
206
+ return Math.max(e.k, e.kFloor ?? .72);
207
+ }
208
+ function Y(e) {
209
+ if (typeof window > "u") return { ..._ };
210
+ let t = getComputedStyle(e), n = (e, n) => t.getPropertyValue(e).trim() || n, r = (e, n) => {
211
+ let r = t.getPropertyValue(e).trim();
212
+ if (!r) return n;
213
+ let i = Number.parseFloat(r);
214
+ return Number.isFinite(i) ? i : n;
215
+ };
216
+ return {
217
+ node: n("--constellation-node", _.node),
218
+ nodeDim: n("--constellation-node-dim", _.nodeDim),
219
+ line: n("--constellation-line", _.line),
220
+ edgeAlpha: r("--constellation-edge-alpha", _.edgeAlpha),
221
+ edgeFocusAlpha: r("--constellation-edge-focus-alpha", _.edgeFocusAlpha),
222
+ alpha: r("--constellation-alpha", _.alpha),
223
+ accent: n("--constellation-accent", _.accent),
224
+ edgeFloor: r("--constellation-edge-floor", _.edgeFloor),
225
+ edgeAccentAlpha: r("--constellation-edge-accent-alpha", _.edgeAccentAlpha)
226
+ };
227
+ }
228
+ function X(e, t, n, r, i = 1, a = -1) {
229
+ let { nodes: o, k: s } = t, c = J(t), l = n * s, u = l * l, d = r.alpha * i, f = r.edgeAccentAlpha * d;
230
+ for (let t = 0; t < o.length; t++) {
231
+ let n = o[t];
232
+ for (let i = t + 1; i < o.length; i++) {
233
+ let s = o[i], l = n.x - s.x, p = n.y - s.y, m = l * l + p * p;
234
+ if (m > u) continue;
235
+ let h = 1 - m / u;
236
+ a >= 0 && (t === a || i === a) ? (e.strokeStyle = r.accent, e.lineWidth = 1.1 * c, e.globalAlpha = f * h) : (e.strokeStyle = r.line, e.lineWidth = 1 * c, e.globalAlpha = (r.edgeAlpha * h + r.edgeFloor) * d), e.beginPath(), e.moveTo(n.x, n.y), e.lineTo(s.x, s.y), e.stroke();
182
237
  }
183
238
  }
184
239
  e.globalAlpha = 1;
185
240
  }
186
- function H(e, t, n) {
187
- let { nodes: r, k: i } = t;
188
- for (let t = 0; t < r.length; t++) {
189
- let a = r[t];
190
- e.fillStyle = a.dim ? n.nodeDim : n.node, e.beginPath(), e.arc(a.x, a.y, a.r * i, 0, Math.PI * 2), e.fill();
241
+ function Z(e, t, n, r = 1) {
242
+ let { nodes: i } = t, a = J(t);
243
+ e.globalAlpha = r;
244
+ for (let t = 0; t < i.length; t++) {
245
+ let r = i[t];
246
+ e.fillStyle = r.dim ? n.nodeDim : n.node, e.beginPath(), e.arc(r.x, r.y, r.r * a, 0, Math.PI * 2), e.fill();
191
247
  }
248
+ e.globalAlpha = 1;
192
249
  }
193
- function U(e, t, n, r, i) {
250
+ function Q(e, t, n, r, i, a = 1) {
194
251
  if (!i || i.x < 0) return;
195
- let { nodes: a, k: o } = t, s = n * o, c = s * s, l = r.edgeFocusAlpha * r.alpha;
196
- e.strokeStyle = r.line, e.lineWidth = 1 * o;
197
- for (let t of a) {
252
+ let { nodes: o, k: s } = t, c = J(t), l = n * s, u = l * l, d = r.edgeFocusAlpha * r.alpha * a;
253
+ e.strokeStyle = r.line, e.lineWidth = 1 * c;
254
+ for (let t of o) {
198
255
  let n = t.x - i.x, r = t.y - i.y, a = n * n + r * r;
199
- a > c || (e.globalAlpha = (1 - a / c) * l, e.beginPath(), e.moveTo(i.x, i.y), e.lineTo(t.x, t.y), e.stroke());
256
+ a > u || (e.globalAlpha = (1 - a / u) * d, e.beginPath(), e.moveTo(i.x, i.y), e.lineTo(t.x, t.y), e.stroke());
200
257
  }
201
- e.globalAlpha = .55, e.fillStyle = r.node, e.beginPath(), e.arc(i.x, i.y, 2.6 * o, 0, Math.PI * 2), e.fill(), e.globalAlpha = 1;
258
+ e.globalAlpha = .55 * a, e.fillStyle = r.node, e.beginPath(), e.arc(i.x, i.y, 2.6 * c, 0, Math.PI * 2), e.fill(), e.globalAlpha = 1;
202
259
  }
203
- function W(e, t, n, r, i) {
204
- let { k: a } = t;
260
+ function $(e, t, n, r, i, a = 1) {
261
+ let o = J(t);
205
262
  e.strokeStyle = i.line;
206
263
  for (let t = r.length - 1; t >= 0; t--) {
207
264
  let i = r[t];
208
265
  i.start < 0 && (i.start = n);
209
- let o = (n - i.start) / 900;
210
- if (o >= 1) {
266
+ let s = (n - i.start) / 900;
267
+ if (s >= 1) {
211
268
  r.splice(t, 1);
212
269
  continue;
213
270
  }
214
- e.globalAlpha = (1 - o) * .5, e.lineWidth = 1.4 * a, e.beginPath(), e.arc(i.x, i.y, (8 + o * 130) * a, 0, Math.PI * 2), e.stroke();
271
+ e.globalAlpha = (1 - s) * .5 * a, e.lineWidth = 1.4 * o, e.beginPath(), e.arc(i.x, i.y, (8 + s * 130) * o, 0, Math.PI * 2), e.stroke();
215
272
  }
216
273
  e.globalAlpha = 1;
217
274
  }
218
275
  //#endregion
219
- //#region src/components/custom/constellation/Constellation.vue?vue&type=script&setup=true&lang.ts
220
- var G = 0, K = /* @__PURE__ */ n(/* @__PURE__ */ c({
276
+ //#region src/components/custom/constellation/composables/useConstellationPointer.ts
277
+ function ee(e) {
278
+ let { host: t, canvas: n, field: r, pointer: i, ripples: a, handle: o, toLocalRef: s, pointerReactive: c, warpOnClick: l, gravityWell: u, isFrozen: d } = e, f = (e) => {
279
+ let t = n.getBoundingClientRect();
280
+ if (!t.width || !t.height) return null;
281
+ let i = (e.clientX - t.left) / t.width, a = (e.clientY - t.top) / t.height;
282
+ return i < 0 || a < 0 || i > 1 || a > 1 ? null : {
283
+ x: i * r.w,
284
+ y: a * r.h
285
+ };
286
+ };
287
+ if (s.value = f, c && t && !d && !o.reducedMotion && (t.addEventListener("pointermove", (e) => {
288
+ let t = f(e);
289
+ t ? (i.x = t.x, i.y = t.y) : (i.x = -1, i.y = -1), o.wake();
290
+ }), t.addEventListener("pointerleave", () => {
291
+ i.x = -1, i.y = -1;
292
+ }), t.addEventListener("pointerdown", (e) => {
293
+ let t = f(e);
294
+ t && a.push({
295
+ x: t.x,
296
+ y: t.y,
297
+ start: -1
298
+ }), o.wake();
299
+ })), l && t && !d && !o.reducedMotion && t.addEventListener("pointerdown", (e) => {
300
+ let t = f(e);
301
+ t && (R(r, t.x, t.y), o.wake());
302
+ }), u && t && r.well && !d && !o.reducedMotion) {
303
+ let e = r.well, n, i = (t) => {
304
+ let r = f(t);
305
+ r && (e.x = r.x, e.y = r.y, n = window.setTimeout(() => {
306
+ e.target = 1, o.wake();
307
+ }, e.cfg.holdMs), o.wake());
308
+ }, a = (t) => {
309
+ if (e.target > 0) {
310
+ let n = f(t);
311
+ n && (e.x = n.x, e.y = n.y);
312
+ }
313
+ }, s = () => {
314
+ n !== void 0 && (clearTimeout(n), n = void 0), e.target = 0, o.wake();
315
+ };
316
+ t.addEventListener("pointerdown", i), t.addEventListener("pointermove", a), t.addEventListener("pointerup", s), t.addEventListener("pointerleave", s), t.addEventListener("pointercancel", s);
317
+ }
318
+ }
319
+ //#endregion
320
+ //#region src/components/custom/constellation/composables/createConstellationField.ts
321
+ function te(e, t, n = !1, r = !1, i = !1) {
322
+ let a = {
323
+ nodes: [],
324
+ canvas: null,
325
+ w: 0,
326
+ h: 0,
327
+ k: 1,
328
+ dpr: 1,
329
+ focalIndex: -1,
330
+ warp: {
331
+ x: 0,
332
+ y: 0,
333
+ vx: 0,
334
+ vy: 0,
335
+ targetIdx: -1
336
+ },
337
+ pinnedIndex: n === !1 ? -1 : n === !0 ? 0 : Math.max(0, Math.trunc(n)),
338
+ warpAutoRelease: !!i
339
+ };
340
+ a.pinnedDrift = r ? H(r === !0 ? {} : r) : void 0;
341
+ let o = e && e !== !0 ? e : {};
342
+ a.wander = e ? {
343
+ nextAt: -1,
344
+ minIdle: o.minIdle ?? 8e3,
345
+ jitter: o.jitter ?? 8e3
346
+ } : void 0;
347
+ let s = t && t !== !0 ? t : {};
348
+ return a.well = t ? {
349
+ x: -1,
350
+ y: -1,
351
+ strength: 0,
352
+ target: 0,
353
+ cfg: {
354
+ ...b,
355
+ ...s
356
+ }
357
+ } : void 0, {
358
+ field: a,
359
+ wanderOverride: o,
360
+ wellOverride: s
361
+ };
362
+ }
363
+ //#endregion
364
+ //#region src/components/custom/constellation/composables/useConstellation.ts
365
+ function ne(e, n, o) {
366
+ let s = e.count ?? 64, c = e.link ?? 132, u = e.speed ?? .16, f = e.seed, m = e.warpOnClick ?? !1, h = e.wander ?? !1, v = e.gravityWell ?? !1, y = e.pinned ?? !1, b = e.pinnedDrift ?? !1, x = e.warpAutoRelease ?? !1, S = a(() => f === void 0 ? Math.random : r(typeof f == "string" ? i(f) : f)), C = () => typeof window < "u" && /[?&](export|print|freeze)\b/.test(window.location.search), w = l()?.vnode.props?.freeze, T = a(() => w === void 0 ? C() : w === !0 || w === ""), { field: E, wanderOverride: D, wellOverride: k } = te(h, v, y, b, x), A = {
367
+ x: -1,
368
+ y: -1
369
+ }, j = [], M = { ..._ }, N = -1, P = !1, F = p(null);
370
+ return d(() => {
371
+ let r = o.value;
372
+ if (!r) return;
373
+ let i = t({
374
+ canvas: o,
375
+ setup: () => ({ render(t, n) {
376
+ let a = r.clientWidth || r.offsetWidth || 1280, o = r.clientHeight || r.offsetHeight || 720, l = a / g;
377
+ E.canvas = r;
378
+ let d = parseFloat(getComputedStyle(r).getPropertyValue("--constellation-k-floor"));
379
+ if (E.kFloor = Number.isFinite(d) ? d : void 0, E.dpr = Math.min(typeof window < "u" && window.devicePixelRatio || 1, 2), E.w !== a || E.h !== o) {
380
+ let e = E.w, t = E.h;
381
+ if (E.w = a, E.h = o, E.k = l, E.nodes.length ? K(E, e, t) : (E.nodes = G(S.value, s, a, o, u), E.warp.x = a / 2, E.warp.y = o / 2), M = Y(r), !P) {
382
+ P = !0;
383
+ let e = O(r);
384
+ E.warpCfg = e.warp, E.well && (E.well.cfg = {
385
+ ...e.well,
386
+ ...k
387
+ }), E.wander && (E.wander.minIdle = D.minIdle ?? e.wander.minIdle, E.wander.jitter = D.jitter ?? e.wander.jitter);
388
+ }
389
+ }
390
+ E.k = l;
391
+ let f = N < 0 ? 0 : (n - N) / 1e3;
392
+ N = n;
393
+ let p = T.value || i.reducedMotion;
394
+ p && E.well && (E.well.strength = 0, E.well.target = 0, E.well.x = -1, E.well.y = -1);
395
+ let m = e.pointerReactive ?? !0, h = e.opacityCeiling ?? 1, _ = e.accentEdges ?? !1, v = e.drawOverlay;
396
+ p || q(E, l, u, m ? A : null, f, n, S.value), t.clearRect(0, 0, a, o);
397
+ let y = _ ? E.pinnedIndex >= 0 ? E.pinnedIndex : E.focalIndex : -1;
398
+ X(t, E, c, M, h, y), Z(t, E, M, h), m && !p && (Q(t, E, c, M, A, h), $(t, E, n, j, M, h)), v?.(t, E, p ? 0 : n);
399
+ } })
400
+ });
401
+ ee({
402
+ host: n.value,
403
+ canvas: r,
404
+ field: E,
405
+ pointer: A,
406
+ ripples: j,
407
+ handle: i,
408
+ toLocalRef: F,
409
+ pointerReactive: e.pointerReactive ?? !0,
410
+ warpOnClick: m,
411
+ gravityWell: !!v,
412
+ isFrozen: T.value
413
+ });
414
+ }), {
415
+ field: E,
416
+ isFrozen: T,
417
+ warpTo(e, t) {
418
+ if (typeof e == "number" && typeof t == "number") {
419
+ let n = F.value?.({
420
+ clientX: e,
421
+ clientY: t
422
+ });
423
+ return n ? R(E, n.x, n.y) : -1;
424
+ }
425
+ let n = e;
426
+ return R(E, n.x, n.y);
427
+ },
428
+ holdWellAt(e, t) {
429
+ return E.well ? (E.well.x = e, E.well.y = t, E.well.target = 1, !0) : !1;
430
+ },
431
+ releaseWell() {
432
+ E.well && (E.well.target = 0);
433
+ },
434
+ warpSettled() {
435
+ return B(E);
436
+ },
437
+ pinNode(e) {
438
+ E.pinnedIndex = e, E.pinnedDrift && (E.pinnedDrift.nextAt = -1);
439
+ }
440
+ };
441
+ }
442
+ //#endregion
443
+ //#region src/components/custom/constellation/Constellation.vue
444
+ var re = /* @__PURE__ */ n(/* @__PURE__ */ c({
221
445
  __name: "Constellation",
222
446
  props: {
223
447
  count: { default: 64 },
224
448
  link: { default: 132 },
225
449
  speed: { default: .16 },
450
+ opacityCeiling: { default: 1 },
226
451
  seed: {},
227
452
  pointerReactive: {
228
453
  type: Boolean,
@@ -240,152 +465,39 @@ var G = 0, K = /* @__PURE__ */ n(/* @__PURE__ */ c({
240
465
  type: [Boolean, Object],
241
466
  default: !1
242
467
  },
468
+ pinned: {
469
+ type: [Boolean, Number],
470
+ default: !1
471
+ },
472
+ accentEdges: {
473
+ type: Boolean,
474
+ default: !1
475
+ },
476
+ pinnedDrift: {
477
+ type: [Boolean, Object],
478
+ default: !1
479
+ },
480
+ warpAutoRelease: {
481
+ type: Boolean,
482
+ default: !1
483
+ },
243
484
  freeze: { type: Boolean },
244
- class: { type: [
245
- Boolean,
246
- null,
247
- String,
248
- Object,
249
- Array
250
- ] },
251
- drawOverlay: { type: Function }
485
+ class: {},
486
+ drawOverlay: {}
252
487
  },
253
- setup(n, { expose: c }) {
254
- let _ = h("hostRef"), v = h("canvasRef"), T = a(() => n.seed === void 0 ? Math.random : r(typeof n.seed == "string" ? i(n.seed) : n.seed)), E = () => typeof window < "u" && /[?&](export|print|freeze)\b/.test(window.location.search), D = l()?.vnode.props?.freeze, O = a(() => D === void 0 ? E() : D === !0 || D === ""), k = {
255
- nodes: [],
256
- canvas: null,
257
- w: 0,
258
- h: 0,
259
- k: 1,
260
- dpr: 1,
261
- focalIndex: -1,
262
- warp: {
263
- x: 0,
264
- y: 0,
265
- vx: 0,
266
- vy: 0,
267
- targetIdx: -1
268
- }
269
- }, A = n.wander && n.wander !== !0 ? n.wander : {};
270
- k.wander = n.wander ? {
271
- nextAt: -1,
272
- minIdle: A.minIdle ?? 8e3,
273
- jitter: A.jitter ?? 8e3
274
- } : void 0;
275
- let j = n.gravityWell && n.gravityWell !== !0 ? n.gravityWell : {};
276
- k.well = n.gravityWell ? {
277
- x: -1,
278
- y: -1,
279
- strength: 0,
280
- target: 0,
281
- cfg: {
282
- ...N,
283
- ...j
284
- }
285
- } : void 0;
286
- let M = {
287
- x: -1,
288
- y: -1
289
- }, P = [], F = { ...y }, I = -1, R = !1, z = p(null);
290
- return d(() => {
291
- let e = v.value;
292
- if (!e) return;
293
- let r = t({
294
- canvas: v,
295
- setup: (t) => ({ render(t, i) {
296
- let a = e.clientWidth || e.offsetWidth || 1280, o = e.clientHeight || e.offsetHeight || 720, s = a / g;
297
- if (k.canvas = e, k.dpr = Math.min(typeof window < "u" && window.devicePixelRatio || 1, 2), k.w !== a || k.h !== o) {
298
- let t = k.w, r = k.h;
299
- if (k.w = a, k.h = o, k.k = s, k.nodes.length ? C(k, t, r) : (k.nodes = S(T.value, n.count, a, o, n.speed), k.warp.x = a / 2, k.warp.y = o / 2), F = b(e), !R) {
300
- R = !0;
301
- let t = x(e);
302
- k.warpCfg = t.warp, k.well && (k.well.cfg = {
303
- ...t.well,
304
- ...j
305
- }), k.wander && (k.wander.minIdle = A.minIdle ?? t.wander.minIdle, k.wander.jitter = A.jitter ?? t.wander.jitter);
306
- }
307
- }
308
- k.k = s;
309
- let c = I < 0 ? 0 : (i - I) / 1e3;
310
- I = i;
311
- let l = O.value || r.reducedMotion;
312
- if (l && k.well && (k.well.strength = 0, k.well.target = 0, k.well.x = -1, k.well.y = -1), !l) {
313
- let e = n.pointerReactive ? M : null;
314
- w(k, s, n.speed, e, c, i, T.value);
315
- }
316
- t.clearRect(0, 0, a, o), V(t, k, n.link, F), H(t, k, F), n.pointerReactive && !l && (U(t, k, n.link, F, M), W(t, k, i, P, F)), n.drawOverlay?.(t, k, l ? G : i);
317
- } })
318
- }), i = _.value, a = (t) => {
319
- let n = e.getBoundingClientRect();
320
- if (!n.width || !n.height) return null;
321
- let r = (t.clientX - n.left) / n.width, i = (t.clientY - n.top) / n.height;
322
- return r < 0 || i < 0 || r > 1 || i > 1 ? null : {
323
- x: r * k.w,
324
- y: i * k.h
325
- };
326
- };
327
- if (z.value = a, n.pointerReactive && i && !O.value && !r.reducedMotion && (i.addEventListener("pointermove", (e) => {
328
- let t = a(e);
329
- t ? (M.x = t.x, M.y = t.y) : (M.x = -1, M.y = -1), r.wake();
330
- }), i.addEventListener("pointerleave", () => {
331
- M.x = -1, M.y = -1;
332
- }), i.addEventListener("pointerdown", (e) => {
333
- let t = a(e);
334
- t && P.push({
335
- x: t.x,
336
- y: t.y,
337
- start: -1
338
- }), r.wake();
339
- })), n.warpOnClick && i && !O.value && !r.reducedMotion && i.addEventListener("pointerdown", (e) => {
340
- let t = a(e);
341
- t && (L(k, t.x, t.y), r.wake());
342
- }), n.gravityWell && i && k.well && !O.value && !r.reducedMotion) {
343
- let e = k.well, t, n = (n) => {
344
- let i = a(n);
345
- i && (e.x = i.x, e.y = i.y, t = window.setTimeout(() => {
346
- e.target = 1, r.wake();
347
- }, e.cfg.holdMs), r.wake());
348
- }, o = (t) => {
349
- if (e.target > 0) {
350
- let n = a(t);
351
- n && (e.x = n.x, e.y = n.y);
352
- }
353
- }, s = () => {
354
- t !== void 0 && (clearTimeout(t), t = void 0), e.target = 0, r.wake();
355
- };
356
- i.addEventListener("pointerdown", n), i.addEventListener("pointermove", o), i.addEventListener("pointerup", s), i.addEventListener("pointerleave", s), i.addEventListener("pointercancel", s);
357
- }
358
- }), c({
359
- field: k,
360
- isFrozen: O,
361
- warpTo(e, t) {
362
- if (typeof e == "number" && typeof t == "number") {
363
- let n = z.value?.({
364
- clientX: e,
365
- clientY: t
366
- });
367
- return n ? L(k, n.x, n.y) : -1;
368
- }
369
- let n = e;
370
- return L(k, n.x, n.y);
371
- },
372
- holdWellAt(e, t) {
373
- return k.well ? (k.well.x = e, k.well.y = t, k.well.target = 1, !0) : !1;
374
- },
375
- releaseWell() {
376
- k.well && (k.well.target = 0);
377
- }
378
- }), (t, r) => (f(), o("div", {
488
+ setup(t, { expose: n }) {
489
+ let r = t, i = h("hostRef"), a = h("canvasRef");
490
+ return n(ne(r, i, a)), (t, n) => (f(), o("div", {
379
491
  ref_key: "hostRef",
380
- ref: _,
381
- class: u(m(e)("constellation", n.class))
492
+ ref: i,
493
+ class: u(m(e)("constellation", r.class))
382
494
  }, [s("canvas", {
383
495
  ref_key: "canvasRef",
384
- ref: v,
496
+ ref: a,
385
497
  class: "constellation-canvas",
386
498
  "aria-hidden": "true"
387
499
  }, null, 512)], 2));
388
500
  }
389
- }), [["__scopeId", "data-v-a8ae86fe"]]);
501
+ }), [["__scopeId", "data-v-2ada60ff"]]);
390
502
  //#endregion
391
- export { g as BASE_WIDTH, K as Constellation, y as DEFAULT_PALETTE, _ as DEFAULT_WANDER_IDLE, v as DEFAULT_WANDER_JITTER, N as DEFAULT_WELL_CONFIG, A as WARP_RESPONSE, j as WARP_ZETA, V as drawEdges, H as drawNodes, U as drawPointerWeb, W as drawRipples, P as nearestNode, B as pickWanderTarget, x as readInteractionConfig, b as readPalette, C as refitField, S as seedField, I as setWarpTarget, w as stepField, k as stepWell, z as warpSettled, F as warpStep, L as warpTo };
503
+ export { g as BASE_WIDTH, re as Constellation, D as DEFAULT_K_FLOOR, _ as DEFAULT_PALETTE, w as DEFAULT_PINNED_DRIFT_DUR, C as DEFAULT_PINNED_DRIFT_FRAC, T as DEFAULT_PINNED_DRIFT_IDLE, E as DEFAULT_PINNED_DRIFT_JITTER, x as DEFAULT_WANDER_IDLE, S as DEFAULT_WANDER_JITTER, b as DEFAULT_WELL_CONFIG, v as WARP_RESPONSE, y as WARP_ZETA, X as drawEdges, Z as drawNodes, Q as drawPointerWeb, $ as drawRipples, J as kVisOf, H as makePinnedDrift, F as nearestNode, V as pickWanderTarget, O as readInteractionConfig, Y as readPalette, K as refitField, G as seedField, L as setWarpTarget, q as stepField, W as stepPinnedDrift, N as stepWell, B as warpSettled, I as warpStep, R as warpTo };